vendor: 11,485 bytes, lines 1-2
1/*! For license information please see LICENSES */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{1:function(t,e,r){"use strict";r.d(e,"b",(function(){return en})),r.d(e,"a",(function(){return en}));var n=r(36);r(534),r(537),r(12),r(538),r(102),r(25),r(22),r(69),r(20),r(101),r(299),r(51),r(215),r(61),r(39),r(50),r(117),r(99),r(173),r(68),r(302),r(30),r(286);function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var c,h,f,d,m,y,v,_,w,x,C,S,k,T,D,E,O,A,P,F,I,M,j,R,L,N,B,z,U={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},V={duration:.5,overwrite:!1,delay:0},W=1e8,H=1e-8,Y=2*Math.PI,X=Y/4,G=0,Q=Math.sqrt,$=Math.cos,K=Math.sin,J=function(t){return"string"==typeof t},Z=function(t){return"function"==typeof t},tt=function(t){return"number"==typeof t},et=function(t){return void 0===t},it=function(t){return"object"===Object(n.a)(t)},nt=function(t){return!1!==t},ot=function(){return"undefined"!=typeof window},st=function(t){return Z(t)||J(t)},at="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},lt=Array.isArray,ut=/(?:-?\.?\d|\.)+/gi,ct=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ht=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ft=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pt=/[+-]=-?[.\d]+/,gt=/[^,'"\[\]\s]+/gi,mt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,yt={},vt={},bt=function(t){return(vt=Ht(t,yt))&&Nr},_t=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},wt=function(t,e){return!e&&console.warn(t)},xt=function(t,e){return t&&(yt[t]=e)&&vt&&(vt[t]=e)||yt},Ct=function(){return 0},St={},kt=[],Tt={},Dt={},Et={},Ot=30,At=[],Pt="",Ft=function(t){var e,i,r=t[0];if(it(r)||Z(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(i=At.length;i--&&!At[i].targetTest(r););e=At[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new or(t[i],e)))||t.splice(i,1);return t},It=function(t){return t._gsap||Ft(Ce(t))[0]._gsap},Mt=function(t,e,r){return(r=t[e])&&Z(r)?t[e]():et(r)&&t.getAttribute&&t.getAttribute(e)||r},jt=function(t,e){return(t=t.split(",")).forEach(e)||t},Rt=function(t){return Math.round(1e5*t)/1e5||0},Lt=function(t){return Math.round(1e7*t)/1e7||0},Nt=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+n:"-"===r?t-n:"*"===r?t*n:t/n},Bt=function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r},zt=function(){var i,t,e=kt.length,a=kt.slice(0);for(Tt={},kt.length=0,i=0;i<e;i++)(t=a[i])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},Ut=function(t,time,e,r){kt.length&&zt(),t.render(time,e,r),kt.length&&zt()},Vt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(gt).length<2?e:J(t)?t.trim():t},qt=function(p){return p},Wt=function(t,e){for(var p in e)p in t||(t[p]=e[p]);return t},Ht=function(base,t){for(var p in t)base[p]=t[p];return base},Yt=function t(base,e){for(var p in e)"__proto__"!==p&&"constructor"!==p&&"prototype"!==p&&(base[p]=it(e[p])?t(base[p]||(base[p]={}),e[p]):e[p]);return base},Xt=function(t,e){var p,r={};for(p in t)p in e||(r[p]=t[p]);return r},Gt=function(t){var e,r=t.parent||h,n=t.keyframes?(e=lt(t.keyframes),function(t,r){for(var p in r)p in t||"duration"===p&&e||"ease"===p||(t[p]=r[p])}):Wt;if(nt(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Qt=function(t,e,r,n,o){void 0===r&&(r="_first"),void 0===n&&(n="_last");var l,c=t[n];if(o)for(l=e[o];c&&c[o]>l;)c=c._prev;return c?(e._next=c._next,c._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=c,e.parent=e._dp=t,e},$t=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var o=e._prev,l=e._next;o?o._next=l:t[r]===e&&(t[r]=l),l?l._prev=o:t[n]===e&&(t[n]=o),e._next=e._prev=e.parent=null},Kt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},Jt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var a=t;a;)a._dirty=1,a=a.parent;return t},Zt=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},te=function t(e){return!e||e._ts&&t(e.parent)},ee=function(t){return t._repeat?re(t._tTime,t=t.duration()+t._rDelay)*t:0},re=function(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},ie=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ne=function(t){return t._end=Lt(t._start+(t._tDur/Math.abs(t._ts||t._rts||H)||0))},oe=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Lt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ne(t),r._dirty||Jt(r,t)),t},se=function(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=ie(t.rawTime(),e),(!e._dur||ve(0,e.totalDuration(),r)-e._tTime>H)&&e.render(r,!0)),Jt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},ae=function(t,e,r,n){return e.parent&&Kt(e),e._start=Lt((tt(r)?r:r||t!==h?ge(t,r,e):t._time)+e._delay),e._end=Lt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Qt(t,e,"_first","_last",t._sort?"_start":0),he(e)||(t._recent=e),n||se(t,e),t},le=function(t,e){return(yt.ScrollTrigger||_t("scrollTrigger",e))&&yt.ScrollTrigger.create(e,t)},ue=function(t,e,r,n){return pr(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&v!==He.frame?(kt.push(t),t._lazy=[e,n],1):void 0:1},ce=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},he=function(t){var data=t.data;return"isFromStart"===data||"isStart"===data},fe=function(t,e,r,n){var o=t._repeat,l=Lt(e)||0,c=t._tTime/t._tDur;return c&&!n&&(t._time*=l/t._dur),t._dur=l,t._tDur=o?o<0?1e10:Lt(l*(o+1)+t._rDelay*o):l,c>0&&!n?oe(t,t._tTime=t._tDur*c):t.parent&&ne(t),r||Jt(t.parent,t),t},de=function(t){return t instanceof ar?Jt(t):fe(t,t._dur)},pe={_start:0,endTime:Ct,totalDuration:Ct},ge=function t(e,r,n){var i,o,l,c=e.labels,h=e._recent||pe,f=e.duration()>=W?h.endTime(!1):e._dur;return J(r)&&(isNaN(r)||r in c)?(o=r.charAt(0),l="%"===r.substr(-1),i=r.indexOf("="),"<"===o||">"===o?(i>=0&&(r=r.replace(/=/,"")),("<"===o?h._start:h.endTime(h._repeat>=0))+(parseFloat(r.substr(1))||0)*(l?(i<0?h:n).totalDuration()/100:1)):i<0?(r in c||(c[r]=f),c[r]):(o=parseFloat(r.charAt(i-1)+r.substr(i+1)),l&&n&&(o=o/100*(lt(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+o:f+o)):null==r?f:+r},me=function(t,e,r){var n,o,l=tt(e[1]),c=(l?2:1)+(t<2?0:1),h=e[c];if(l&&(h.duration=e[1]),h.parent=r,t){for(n=h,o=r;o&&!("immediateRender"in n);)n=o.vars.defaults||{},o=nt(o.vars.inherit)&&o.parent;h.immediateRender=nt(n.immediateRender),t<2?h.runBackwards=1:h.startAt=e[c-1]}return new _r(e[0],h,e[c+1])},ye=function(t,e){return t||0===t?e(t):e},ve=function(t,e,r){return r<t?t:r>e?e:r},be=function(t,e){return J(t)&&(e=mt.exec(t))?e[1]:""},_e=[].slice,we=function(t,e){return t&&it(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&it(t[0]))&&!t.nodeType&&t!==f},xe=function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var n;return J(t)&&!e||we(t,1)?(n=r).push.apply(n,Ce(t)):r.push(t)}))||r},Ce=function(t,e,r){return!J(t)||r||!d&&Ye()?lt(t)?xe(t,r):we(t)?_e.call(t,0):t?[t]:[]:_e.call((e||m).querySelectorAll(t),0)},Se=function(a){return a.sort((function(){return.5-Math.random()}))},ke=function(t){if(Z(t))return t;var e=it(t)?t:{each:t},r=Ze(e.ease),n=e.from||0,base=parseFloat(e.base)||0,o={},l=n>0&&n<1,c=isNaN(n)||l,h=e.axis,f=n,d=n;return J(n)?f=d={center:.5,edges:.5,end:1}[n]||0:!l&&c&&(f=n[0],d=n[1]),function(i,t,a){var l,m,y,v,_,w,x,C,S,k=(a||e).length,T=o[k];if(!T){if(!(S="auto"===e.grid?0:(e.grid||[1,W])[1])){for(x=-W;x<(x=a[S++].getBoundingClientRect().left)&&S<k;);S--}for(T=o[k]=[],l=c?Math.min(S,k)*f-.5:n%S,m=S===W?0:c?k*d/S-.5:n/S|0,x=0,C=W,w=0;w<k;w++)y=w%S-l,v=m-(w/S|0),T[w]=_=h?Math.abs("y"===h?v:y):Q(y*y+v*v),_>x&&(x=_),_<C&&(C=_);"random"===n&&Se(T),T.max=x-C,T.min=C,T.v=k=(parseFloat(e.amount)||parseFloat(e.each)*(S>k?k-1:h?"y"===h?k/S:S:Math.max(S,k/S))||0)*("edges"===n?-1:1),T.b=k<0?base-k:base,T.u=be(e.amount||e.each)||0,r=r&&k<0?Ke(r):r}return k=(T[i]-T.min)/T.max||0,Lt(T.b+(r?r(k):k)*T.v)+T.u}},Te=function(t){var p=Math.pow(10,((t+"").split(".")[1]||"").length);return function(e){var r=Math.round(parseFloat(e)/t)*t*p;return(r-r%1)/p+(tt(e)?0:be(e))}},De=function(t,e){var r,n,o=lt(t);return!o&&it(t)&&(r=o=t.radius||W,t.values?(t=Ce(t.values),(n=!tt(t[0]))&&(r*=r)):t=Te(t.increment)),ye(e,o?Z(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var o,l,c=parseFloat(n?e.x:e),h=parseFloat(n?e.y:0),f=W,d=0,i=t.length;i--;)(o=n?(o=t[i].x-c)*o+(l=t[i].y-h)*l:Math.abs(t[i]-c))<f&&(f=o,d=i);return d=!r||f<=r?t[d]:e,n||d===e||tt(e)?d:d+be(e)}:Te(t))},Ee=function(t,e,r,n){return ye(lt(t)?!e:!0===r?!!(r=0):!n,(function(){return lt(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*n)/n}))},Oe=function(a,t,e){return ye(e,(function(e){return a[~~t(e)]}))},Ae=function(t){for(var i,e,r,n,o=0,s="";~(i=t.indexOf("random(",o));)r=t.indexOf(")",i),n="["===t.charAt(i+7),e=t.substr(i+7,r-i-7).match(n?gt:ut),s+=t.substr(o,i-o)+Ee(n?e:+e[0],n?0:+e[1],+e[2]||1e-5),o=r+1;return s+t.substr(o,t.length-o)},Pe=function(t,e,r,n,o){var l=e-t,c=n-r;return ye(o,(function(e){return r+((e-t)/l*c||0)}))},Fe=function(t,e,r){var p,n,label,o=t.labels,l=W;for(p in o)(n=o[p]-e)<0==!!r&&n&&l>(n=Math.abs(n))&&(label=p,l=n);return label},Ie=function(t,e,r){var n,o,l=t.vars,c=l[e];if(c)return n=l[e+"Params"],o=l.callbackScope||t,r&&kt.length&&zt(),n?c.apply(o,n):c.call(o)},Me=function(t){return Kt(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&Ie(t,"onInterrupt"),t},je=function(t){var e=(t=!t.name&&t.default||t).name,r=Z(t),n=e&&!r&&t.init?function(){this._props=[]}:t,o={init:Ct,render:Or,add:fr,kill:Pr,modifier:Ar,rawVars:0},l={targetTest:0,get:0,getSetter:kr,aliases:{},register:0};if(Ye(),t!==n){if(Dt[e])return;Wt(n,Wt(Xt(t,o),l)),Ht(n.prototype,Ht(o,Xt(t,l))),Dt[n.prop=e]=n,t.targetTest&&(At.push(n),St[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}xt(e,n),t.register&&t.register(Nr,n,Mr)},Re=255,Le={aqua:[0,Re,Re],lime:[0,Re,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Re],navy:[0,0,128],white:[Re,Re,Re],olive:[128,128,0],yellow:[Re,Re,0],orange:[Re,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Re,0,0],pink:[Re,192,203],cyan:[0,Re,Re],transparent:[Re,Re,Re,0]},Ne=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*Re+.5|0},Be=function(t,e,r){var n,g,b,o,s,l,c,h,f,d,a=t?tt(t)?[t>>16,t>>8&Re,t&Re]:0:Le.black;if(!a){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Le[t])a=Le[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),g=t.charAt(2),b=t.charAt(3),t="#"+n+n+g+g+b+b+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(a=parseInt(t.substr(1,6),16))>>16,a>>8&Re,a&Re,parseInt(t.substr(7),16)/255];a=[(t=parseInt(t.substr(1),16))>>16,t>>8&Re,t&Re]}else if("hsl"===t.substr(0,3))if(a=d=t.match(ut),e){if(~t.indexOf("="))return a=t.match(ct),r&&a.length<4&&(a[3]=1),a}else o=+a[0]%360/360,s=+a[1]/100,n=2*(l=+a[2]/100)-(g=l<=.5?l*(s+1):l+s-l*s),a.length>3&&(a[3]*=1),a[0]=Ne(o+1/3,n,g),a[1]=Ne(o,n,g),a[2]=Ne(o-1/3,n,g);else a=t.match(ut)||Le.transparent;a=a.map(Number)}
vendor: 5,034 bytes, line 2
2return e&&!d&&(n=a[0]/Re,g=a[1]/Re,b=a[2]/Re,l=((c=Math.max(n,g,b))+(h=Math.min(n,g,b)))/2,c===h?o=s=0:(f=c-h,s=l>.5?f/(2-c-h):f/(c+h),o=c===n?(g-b)/f+(g<b?6:0):c===g?(b-n)/f+2:(n-g)/f+4,o*=60),a[0]=~~(o+.5),a[1]=~~(100*s+.5),a[2]=~~(100*l+.5)),r&&a.length<4&&(a[3]=1),a},ze=function(t){var e=[],r=[],i=-1;return t.split(Ve).forEach((function(t){var a=t.match(ht)||[];e.push.apply(e,a),r.push(i+=a.length+1)})),e.c=r,e},Ue=function(s,t,e){var r,n,o,l,c="",h=(s+c).match(Ve),f=t?"hsla(":"rgba(",i=0;if(!h)return s;if(h=h.map((function(e){return(e=Be(e,t,1))&&f+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"})),e&&(o=ze(s),(r=e.c).join(c)!==o.c.join(c)))for(l=(n=s.replace(Ve,"1").split(ht)).length-1;i<l;i++)c+=n[i]+(~r.indexOf(i)?h.shift()||f+"0,0,0,0)":(o.length?o:h.length?h:e).shift());if(!n)for(l=(n=s.split(Ve)).length-1;i<l;i++)c+=n[i]+h[i];return c+n[l]},Ve=function(){var p,s="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(p in Le)s+="|"+p+"\\b";return new RegExp(s+")","gi")}(),qe=/hsl[a]?\(/,We=function(a){var t,e=a.join(" ");if(Ve.lastIndex=0,Ve.test(e))return t=qe.test(e),a[1]=Ue(a[1],t),a[0]=Ue(a[0],t,ze(a[1])),!0},He=(E=Date.now,O=500,A=33,P=E(),F=P,M=I=1e3/240,R=function t(e){var r,n,time,o,l=E()-F,c=!0===e;if(l>O&&(P+=l-A),((r=(time=(F+=l)-P)-M)>0||c)&&(o=++k.frame,T=time-1e3*k.time,k.time=time/=1e3,M+=r+(r>=I?4:I-r),n=1),c||(x=C(t)),n)for(D=0;D<j.length;D++)j[D](time,T,o,e)},k={time:0,frame:0,tick:function(){R(!0)},deltaRatio:function(t){return T/(1e3/(t||60))},wake:function(){y&&(!d&&ot()&&(f=d=window,m=f.document||{},yt.gsap=Nr,(f.gsapVersions||(f.gsapVersions=[])).push(Nr.version),bt(vt||f.GreenSockGlobals||!f.gsap&&f||{}),S=f.requestAnimationFrame),x&&k.sleep(),C=S||function(t){return setTimeout(t,M-1e3*k.time+1|0)},w=1,R(2))},sleep:function(){(S?f.cancelAnimationFrame:clearTimeout)(x),w=0,C=Ct},lagSmoothing:function(t,e){O=t||1e8,A=Math.min(e,O,0)},fps:function(t){I=1e3/(t||240),M=1e3*k.time+I},add:function(t,e,r){var n=e?function(e,r,o,l){t(e,r,o,l),k.remove(n)}:t;return k.remove(t),j[r?"unshift":"push"](n),Ye(),n},remove:function(t,i){~(i=j.indexOf(t))&&j.splice(i,1)&&D>=i&&D--},_listeners:j=[]}),Ye=function(){return!w&&He.wake()},Xe={},Ge=/^[\d.\-M][\d.\-,\s]/,Qe=/["']/g,$e=function(t){for(var e,r,n,o={},l=t.substr(1,t.length-3).split(":"),c=l[0],i=1,h=l.length;i<h;i++)r=l[i],e=i!==h-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),o[c]=isNaN(n)?n.replace(Qe,"").trim():+n,c=r.substr(e+1).trim();return o},Ke=function(t){return function(p){return 1-t(1-p)}},Je=function t(e,r){for(var n,o=e._first;o;)o instanceof ar?t(o,r):!o.vars.yoyoEase||o._yoyo&&o._repeat||o._yoyo===r||(o.timeline?t(o.timeline,r):(n=o._ease,o._ease=o._yEase,o._yEase=n,o._yoyo=r)),o=o._next},Ze=function(t,e){return t&&(Z(t)?t:Xe[t]||function(t){var e=(t+"").split("("),r=Xe[e[0]];return r&&e.length>1&&r.config?r.config.apply(null,~t.indexOf("{")?[$e(e[1])]:function(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),n=t.indexOf("(",e);return t.substring(e,~n&&n<r?t.indexOf(")",r+1):r)}(t).split(",").map(Vt)):Xe._CE&&Ge.test(t)?Xe._CE("",t):r}(t))||e},er=function(t,e,r,n){void 0===r&&(r=function(p){return 1-e(1-p)}),void 0===n&&(n=function(p){return p<.5?e(2*p)/2:1-e(2*(1-p))/2});var o,l={easeIn:e,easeOut:r,easeInOut:n};return jt(t,(function(t){for(var p in Xe[t]=yt[t]=l,Xe[o=t.toLowerCase()]=r,l)Xe[o+("easeIn"===p?".in":"easeOut"===p?".out":".inOut")]=Xe[t+"."+p]=l[p]})),l},rr=function(t){return function(p){return p<.5?(1-t(1-2*p))/2:.5+t(2*(p-.5))/2}},ir=function t(e,r,n){var o=r>=1?r:1,l=(n||(e?.3:.45))/(r<1?r:1),c=l/Y*(Math.asin(1/o)||0),h=function(p){return 1===p?1:o*Math.pow(2,-10*p)*K((p-c)*l)+1},f="out"===e?h:"in"===e?function(p){return 1-h(1-p)}:rr(h);return l=Y/l,f.config=function(r,n){return t(e,r,n)},f},nr=function t(e,r){void 0===r&&(r=1.70158);var n=function(p){return p?--p*p*((r+1)*p+r)+1:0},o="out"===e?n:"in"===e?function(p){return 1-n(1-p)}:rr(n);return o.config=function(r){return t(e,r)},o};jt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,i){var e=i<5?i+1:i;er(t+",Power"+(e-1),i?function(p){return Math.pow(p,e)}:function(p){return p},(function(p){return 1-Math.pow(1-p,e)}),(function(p){return p<.5?Math.pow(2*p,e)/2:1-Math.pow(2*(1-p),e)/2}))})),Xe.Linear.easeNone=Xe.none=Xe.Linear.easeIn,er("Elastic",ir("in"),ir("out"),ir()),L=7.5625,B=1/(N=2.75),er("Bounce",(function(p){return 1-z(1-p)}),z=function(p){return p<B?L*p*p:p<.7272727272727273?L*Math.pow(p-1.5/N,2)+.75:p<.9090909090909092?L*(p-=2.25/N)*p+.9375:L*Math.pow(p-2.625/N,2)+.984375}),er("Expo",(function(p){return p?Math.pow(2,10*(p-1)):0})),er("Circ",(function(p){return-(Q(1-p*p)-1)})),er("Sine",(function(p){return 1===p?1:1-$(p*X)})),er("Back",nr("in"),nr("out"),nr()),Xe.SteppedEase=Xe.steps=yt.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),o=e?1:0;return function(p){return((n*ve(0,.99999999,p)|0)+o)*r}}},V.ease=Xe["quad.out"],jt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Pt+=t+","+t+"Param
2s,"}));var or=function(t,e){this.id=G++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Mt,this.set=e?e.getSetter:kr},sr=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,fe(this,+t.duration,1,1),this.data=t.data,w||He.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,fe(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ye(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(oe(this,t),!r._dp||r.parent||se(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&ae(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===H||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Ut(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+ee(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+ee(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?re(this._tTime,r)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?ie(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ve(-this._delay,this._tDur,e),!0),ne(this),Zt(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ye(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==H&&(this._tTime-=H)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&ae(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(nt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ie(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,time=arguments.length?t:e.rawTime();e;)time=e._start+time/(e._ts||1),e=e._dp;return time},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,de(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var time=this._time;return this._rDelay=t,de(this),time?this.time(time):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(ge(this,t),nt(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,nt(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0}
vendor: 10,512 bytes, line 2
2,e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-H))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(r){var n=Z(t)?t:qt,o=function(){var t=e.then;e.then=null,Z(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?o():e._prom=o}))},e.kill=function(){Me(this)},t}();Wt(sr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var ar=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=nt(e.sortChildren),h&&ae(e.parent||h,o(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&le(o(n),e.scrollTrigger),n}l(e,t);var r=e.prototype;return r.to=function(t,e,r){return me(0,arguments,this),this},r.from=function(t,e,r){return me(1,arguments,this),this},r.fromTo=function(t,e,r,n){return me(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,Gt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new _r(t,e,ge(this,r),1),this},r.call=function(t,e,r){return ae(this,_r.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,n,o,l,c){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=l,r.onCompleteParams=c,r.parent=this,new _r(t,r,ge(this,o)),this},r.staggerFrom=function(t,e,r,n,o,l,c){return r.runBackwards=1,Gt(r).immediateRender=nt(r.immediateRender),this.staggerTo(t,e,r,n,o,l,c)},r.staggerFromTo=function(t,e,r,n,o,l,c,h){return n.startAt=r,Gt(n).immediateRender=nt(n.immediateRender),this.staggerTo(t,e,n,o,l,c,h)},r.render=function(t,e,r){var time,n,o,l,c,f,d,m,y,v,_,w,x=this._time,C=this._dirty?this.totalDuration():this._tDur,S=this._dur,k=t<=0?0:Lt(t),T=this._zTime<0!=t<0&&(this._initted||!S);if(this!==h&&k>C&&t>=0&&(k=C),k!==this._tTime||r||T){if(x!==this._time&&S&&(k+=this._time-x,t+=this._time-x),time=k,y=this._start,f=!(m=this._ts),T&&(S||(x=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(_=this._yoyo,c=S+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*c+t,e,r);if(time=Lt(k%c),k===C?(l=this._repeat,time=S):((l=~~(k/c))&&l===k/c&&(time=S,l--),time>S&&(time=S)),v=re(this._tTime,c),!x&&this._tTime&&v!==l&&(v=l),_&&1&l&&(time=S-time,w=1),l!==v&&!this._lock){var D=_&&1&v,E=D===(_&&1&l);if(l<v&&(D=!D),x=D?0:S,this._lock=1,this.render(x||(w?0:Lt(l*c)),e,!S)._lock=0,this._tTime=k,!e&&this.parent&&Ie(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1),x&&x!==this._time||f!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(S=this._dur,C=this._tDur,E&&(this._lock=2,x=D?S:-1e-4,this.render(x,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!f)return this;Je(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(d=function(t,e,time){var r;if(time>e)for(r=t._first;r&&r._start<=time;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=time;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,Lt(x),Lt(time)),d&&(k-=time-(time=d._start))),this._tTime=k,this._time=time,this._act=!m,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,x=0),!x&&time&&!e&&(Ie(this,"onStart"),this._tTime!==k))return this;if(time>=x&&t>=0)for(n=this._first;n;){if(o=n._next,(n._act||time>=n._start)&&n._ts&&d!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(n._ts>0?(time-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(time-n._start)*n._ts,e,r),time!==this._time||!this._ts&&!f){d=0,o&&(k+=this._zTime=-1e-8);break}}n=o}else{n=this._last;for(var O=t<0?t:time;n;){if(o=n._prev,(n._act||O<=n._end)&&n._ts&&d!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(n._ts>0?(O-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(O-n._start)*n._ts,e,r),time!==this._time||!this._ts&&!f){d=0,o&&(k+=this._zTime=O?-1e-8:H);break}}n=o}}if(d&&!e&&(this.pause(),d.render(time>=x?0:-1e-8)._zTime=time>=x?1:-1,this._ts))return this._start=y,ne(this),this.render(t,e,r);this._onUpdate&&!e&&Ie(this,"onUpdate",!0),(k===C&&this._tTime>=this.totalDuration()||!k&&x)&&(y!==this._start&&Math.abs(m)===Math.abs(this._ts)||this._lock||((t||!S)&&(k===C&&this._ts>0||!k&&this._ts<0)&&Kt(this,1),e||t<0&&!x||!k&&!x&&C||(Ie(this,k===C&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(k<C&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(tt(e)||(e=ge(this,e,t)),!(t instanceof sr)){if(lt(t))return t.forEach((function(t){return r.add(t,e)})),this;if(J(t))return this.addLabel(t,e);if(!Z(t))return this;t=_r.delayedCall(0,t)}return this!==t?ae(this,t,e):this},r.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-W);for(var a=[],o=this._first;o;)o._start>=n&&(o instanceof _r?e&&a.push(o):(r&&a.push(o),t&&a.push.apply(a,o.getChildren(!0,e,r)))),o=o._next;return a},r.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},r.remove=function(t){return J(t)?this.removeLabel(t):Z(t)?this.killTweensOf(t):($t(this,t),t===this._recent&&(this._recent=this._last),Jt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Lt(He.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(label,t){return this.labels[label]=ge(this,t),this},r.removeLabel=function(label){return delete this.labels[label],this},r.addPause=function(t,e,r){var n=_r.delayedCall(0,e||Ct,r);return n.data="isPause",this._hasPause=1,ae(this,n,ge(this,t))},r.removePause=function(t){var e=this._first;for(t=ge(this,t);e;)e._start===t&&"isPause"===e.data&&Kt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)lr!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,a=[],n=Ce(t),o=this._first,l=tt(e);o;)o instanceof _r?Bt(o._targets,n)&&(l?(!lr||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&a.push(o):(r=o.getTweensOf(n,e)).length&&a.push.apply(a,r),o=o._next;return a},r.tweenTo=function(t,e){e=e||{};var r,n=this,o=ge(n,t),l=e,c=l.startAt,h=l.onStart,f=l.onStartParams,d=l.immediateRender,m=_r.to(n,Wt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:e.duration||Math.abs((o-(c&&"time"in c?c.time:n._time))/n.timeScale())||H,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((o-(c&&"time"in c?c.time:n._time))/n.timeScale());m._dur!==t&&fe(m,t,0,1).render(m._time,!0,!0),r=1}h&&h.apply(m,f||[])}},e));return d?m.render(0):m},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,Wt({startAt:{time:ge(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),Fe(this,ge(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),Fe(this,ge(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+H)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var p,n=this._first,o=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(p in o)o[p]>=r&&(o[p]+=t);return Jt(this)},r.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Jt(this)},r.totalDuration=function(t){var e,r,n,o=0,l=this,c=l._last,f=W;if(arguments.length)return l.timeScale((l._repeat<0?l.duration():l.totalDuration())/(l.reversed()?-t:t));if(l._dirty){for(n=l.parent;c;)e=c._prev,c._dirty&&c.totalDuration(),(r=c._start)>f&&l._sort&&c._ts&&!l._lock?(l._lock=1,ae(l,c,r-c._delay,1)._lock=0):f=r,r<0&&c._ts&&(o-=r,(!n&&!l._dp||n&&n.smoothChildTiming)&&(l._start+=r/l._ts,l._time-=r,l._tTime-=r),l.shiftChildren(-r,!1,-Infinity),f=0),c._end>o&&c._ts&&(o=c._end),c=e;fe(l,l===h&&l._time>o?l._time:o,1,1),l._dirty=0}return l._tDur},e.updateRoot=function(time){if(h._ts&&(Ut(h,ie(time,h)),v=He.frame),He.frame>=Ot){Ot+=U.autoSleep||120;var t=h._first;if((!t||!t._ts)&&U.autoSleep&&He._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||He.sleep()}}},e}(sr);Wt(ar.prototype,{_lock:0,_hasPause:0,_forcing:0});var lr,ur,cr=function(t,e,r,n,o,l,c){var h,f,d,m,y,v,_,a,w=new Mr(this._pt,t,e,0,1,Er,null,o),x=0,C=0;for(w.b=r,w.e=n,r+="",(_=~(n+="").indexOf("random("))&&(n=Ae(n)),l&&(l(a=[r,n],t,e),r=a[0],n=a[1]),f=r.match(ft)||[];h=ft.exec(n);)m=h[0],y=n.substring(x,h.index),d?d=(d+1)%5:"rgba("===y.substr(-5)&&(d=1),m!==f[C++]&&(v=parseFloat(f[C-1])||0,w._pt={_next:w._pt,p:y||1===C?y:",",s:v,c:"="===m.charAt(1)?Nt(v,m)-v:parseFloat(m)-v,m:d&&d<4?Math.round:0},x=ft.lastIndex);return w.c=x<n.length?n.substring(x,n.length):"",w.fp=c,(pt.test(n)||_)&&(w.e=0),this._pt=w,w},fr=function(t,e,r,n,o,l,c,h,f){Z(n)&&(n=n(o||0,t,l));var d,m=t[e],y="get"!==r?r:Z(m)?f?t[e.indexOf("set")||!Z(t["get"+e.substr(3)])?e:"get"+e.substr(3)](f):t[e]():m,v=Z(m)?f?Cr:xr:wr;if(J(n)&&(~n.indexOf("random(")&&(n=Ae(n)),"="===n.charAt(1)&&((d=Nt(y,n)+(be(y)||0))||0===d)&&(n=d)),y!==n||ur)return isNaN(y*n)||""===n?(!m&&!(e in t)&&_t(e,n),cr.call(this,t,e,y,n,v,h||U.stringFilter,f)):(d=new Mr(this._pt,t,e,+y||0,n-(y||0),"boolean"==typeof m?Dr:Tr,0,v),f&&(d.fp=f),c&&d.modifier(c,this,t),this._pt=d)},dr=function(t,e,r,n,o,l){var c,h,f,i;if(Dt[t]&&!1!==(c=new Dt[t]).init(o,c.rawVars?e[t]:function(t,e,r,n,o){if(Z(t)&&(t=mr(t,o,e,r,n)),!it(t)||t.style&&t.nodeType||lt(t)||at(t))return J(t)?mr(t,o,e,r,n):t;var p,l={};for(p in t)l[p]=mr(t[p],o,e,r,n);return l}(e[t],n,o,l,r),r,n,l)&&(r._pt=h=new Mr(r._pt,o,t,0,1,c.render,c,0,c.priority),r!==_))for(f=r._ptLookup[r._targets.indexOf(o)],i=c._props.length;i--;)f[c._props[i]]=h;return c},pr=function t(e,time){var r,i,p,n,o,l,f,d,m,y,v,_,w,x=e.vars,C=x.ease,S=x.startAt,k=x.immediateRender,T=x.lazy,D=x.onUp
vendor: 3,377 bytes, line 2
2date,E=x.onUpdateParams,O=x.callbackScope,A=x.runBackwards,P=x.yoyoEase,F=x.keyframes,I=x.autoRevert,M=e._dur,j=e._startAt,R=e._targets,L=e.parent,N=L&&"nested"===L.data?L.parent._targets:R,B="auto"===e._overwrite&&!c,z=e.timeline;if(z&&(!F||!C)&&(C="none"),e._ease=Ze(C,V.ease),e._yEase=P?Ke(Ze(!0===P?C:P,V.ease)):0,P&&e._yoyo&&!e._repeat&&(P=e._yEase,e._yEase=e._ease,e._ease=P),e._from=!z&&!!x.runBackwards,!z||F&&!x.stagger){if(_=(d=R[0]?It(R[0]).harness:0)&&x[d.prop],r=Xt(x,St),j&&(Kt(j.render(-1,!0)),j._lazy=0),S)if(Kt(e._startAt=_r.set(R,Wt({data:"isStart",overwrite:!1,parent:L,immediateRender:!0,lazy:nt(T),startAt:null,delay:0,onUpdate:D,onUpdateParams:E,callbackScope:O,stagger:0},S))),time<0&&!k&&!I&&e._startAt.render(-1,!0),k){if(time>0&&!I&&(e._startAt=0),M&&time<=0)return void(time&&(e._zTime=time))}else!1===I&&(e._startAt=0);else if(A&&M)if(j)!I&&(e._startAt=0);else if(time&&(k=!1),p=Wt({overwrite:!1,data:"isFromStart",lazy:k&&nt(T),immediateRender:k,stagger:0,parent:L},r),_&&(p[d.prop]=_),Kt(e._startAt=_r.set(R,p)),time<0&&e._startAt.render(-1,!0),e._zTime=time,k){if(!time)return}else t(e._startAt,H);for(e._pt=e._ptCache=0,T=M&&nt(T)||T&&!M,i=0;i<R.length;i++){if(f=(o=R[i])._gsap||Ft(R)[i]._gsap,e._ptLookup[i]=y={},Tt[f.id]&&kt.length&&zt(),v=N===R?i:N.indexOf(o),d&&!1!==(m=new d).init(o,_||r,e,v,N)&&(e._pt=n=new Mr(e._pt,o,m.name,0,1,m.render,m,0,m.priority),m._props.forEach((function(t){y[t]=n})),m.priority&&(l=1)),!d||_)for(p in r)Dt[p]&&(m=dr(p,r,e,v,o,N))?m.priority&&(l=1):y[p]=n=fr.call(e,o,p,"get",r[p],v,N,0,x.stringFilter);e._op&&e._op[i]&&e.kill(o,e._op[i]),B&&e._pt&&(lr=e,h.killTweensOf(o,y,e.globalTime(time)),w=!e.parent,lr=0),e._pt&&T&&(Tt[f.id]=1)}l&&Ir(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!w,F&&time<=0&&z.render(W,!0,!0)},gr=function(t,e,r,n){var p,a,o=e.ease||n||"power1.inOut";if(lt(e))a=r[t]||(r[t]=[]),e.forEach((function(t,i){return a.push({t:i/(e.length-1)*100,v:t,e:o})}));else for(p in e)a=r[p]||(r[p]=[]),"ease"===p||a.push({t:parseFloat(t),v:e[p],e:o})},mr=function(t,e,i,r,n){return Z(t)?t.call(e,i,r,n):J(t)&&~t.indexOf("random(")?Ae(t):t},yr=Pt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",vr={};jt(yr+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return vr[t]=1}));var _r=function(t){function e(e,r,n,l){var f;"number"==typeof r&&(n.duration=r,r=n,n=null);var d,i,m,y,p,v,_,w,x=(f=t.call(this,l?r:Gt(r))||this).vars,C=x.duration,S=x.delay,k=x.immediateRender,T=x.stagger,D=x.overwrite,E=x.keyframes,O=x.defaults,A=x.scrollTrigger,P=x.yoyoEase,F=r.parent||h,I=(lt(e)||at(e)?tt(e[0]):"length"in r)?[e]:Ce(e);if(f._targets=I.length?Ft(I):wt("GSAP target "+e+" not found. https://greensock.com",!U.nullTargetWarn)||[],f._ptLookup=[],f._overwrite=D,E||T||st(C)||st(S)){if(r=f.vars,(d=f.timeline=new ar({data:"nested",defaults:O||{}})).kill(),d.parent=d._dp=o(f),d._start=0,T||st(C)||st(S)){if(y=I.length,_=T&&ke(T),it(T))for(p in T)~yr.indexOf(p)&&(w||(w={}),w[p]=T[p]);for(i=0;i<y;i++)(m=Xt(r,vr)).stagger=0,P&&(m.yoyoEase=P),w&&Ht(m,w),v=I[i],m.duration=+mr(C,o(f),i,v,I),m.delay=(+mr(S,o(f),i,v,I)||0)-f._delay,!T&&1===y&&m.delay&&(f._delay=S=m.delay,f._start+=S,m.delay=0),d.to(v,m,_?_(i,v,I):0),d._ease=Xe.none;d.duration()?C=S=0:f.timeline=0}else if(E){Gt(Wt(d.vars.defaults,{ease:"none"})),d._ease=Ze(E.ease||r.ease||"none");var a,M,j,time=0;
vendor: 8,582 bytes, line 2
2if(lt(E))E.forEach((function(t){return d.to(I,t,">")}));else{for(p in m={},E)"ease"===p||"easeEach"===p||gr(p,E[p],m,E.easeEach);for(p in m)for(a=m[p].sort((function(a,b){return a.t-b.t})),time=0,i=0;i<a.length;i++)(j={ease:(M=a[i]).e,duration:(M.t-(i?a[i-1].t:0))/100*C})[p]=M.v,d.to(I,j,time),time+=j.duration;d.duration()<C&&d.to({},{duration:C-d.duration()})}}C||f.duration(C=d.duration())}else f.timeline=0;return!0!==D||c||(lr=o(f),h.killTweensOf(I),lr=0),ae(F,o(f),n),r.reversed&&f.reverse(),r.paused&&f.paused(!0),(k||!C&&!E&&f._start===Lt(F._time)&&nt(k)&&te(o(f))&&"nested"!==F.data)&&(f._tTime=-1e-8,f.render(Math.max(0,-S))),A&&le(o(f),A),f}l(e,t);var r=e.prototype;return r.render=function(t,e,r){var time,n,o,l,c,h,f,d,m,y=this._time,v=this._tDur,_=this._dur,w=t>v-H&&t>=0?v:t<H?0:t;if(_){if(w!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(time=w,d=this.timeline,this._repeat){if(l=_+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,r);if(time=Lt(w%l),w===v?(o=this._repeat,time=_):((o=~~(w/l))&&o===w/l&&(time=_,o--),time>_&&(time=_)),(h=this._yoyo&&1&o)&&(m=this._yEase,time=_-time),c=re(this._tTime,l),time===y&&!r&&this._initted)return this._tTime=w,this;o!==c&&(d&&this._yEase&&Je(d,h),!this.vars.repeatRefresh||h||this._lock||(this._lock=r=1,this.render(Lt(l*o),!0).invalidate()._lock=0))}if(!this._initted){if(ue(this,t<0?t:time,r,e))return this._tTime=0,this;if(y!==this._time)return this;if(_!==this._dur)return this.render(t,e,r)}if(this._tTime=w,this._time=time,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=f=(m||this._ease)(time/_),this._from&&(this.ratio=f=1-f),time&&!y&&!e&&(Ie(this,"onStart"),this._tTime!==w))return this;for(n=this._pt;n;)n.r(f,n.d),n=n._next;d&&d.render(t<0?t:!time&&h?-1e-8:d._dur*d._ease(time/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),Ie(this,"onUpdate")),this._repeat&&o!==c&&this.vars.onRepeat&&!e&&this.parent&&Ie(this,"onRepeat"),w!==this._tDur&&w||this._tTime!==w||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!_)&&(w===this._tDur&&this._ts>0||!w&&this._ts<0)&&Kt(this,1),e||t<0&&!y||!w&&!y||(Ie(this,w===v?"onComplete":"onReverseComplete",!0),this._prom&&!(w<v&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var o,l,c,h=t.ratio,f=e<0||!e&&(!t._start&&ce(t)&&(t._initted||!he(t))||(t._ts<0||t._dp._ts<0)&&!he(t))?0:1,d=t._rDelay,m=0;if(d&&t._repeat&&(m=ve(0,t._tDur,e),l=re(m,d),t._yoyo&&1&l&&(f=1-f),l!==re(t._tTime,d)&&(h=1-f,t.vars.repeatRefresh&&t._initted&&t.invalidate())),f!==h||n||t._zTime===H||!e&&t._zTime){if(!t._initted&&ue(t,e,n,r))return;for(c=t._zTime,t._zTime=e||(r?H:0),r||(r=e&&!c),t.ratio=f,t._from&&(f=1-f),t._time=0,t._tTime=m,o=t._pt;o;)o.r(f,o.d),o=o._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!r&&Ie(t,"onUpdate"),m&&t._repeat&&!r&&t.parent&&Ie(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===f&&(f&&Kt(t,1),r||(Ie(t,f?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},r.resetTo=function(t,e,r,n){w||He.wake(),this._ts||this.play();var time=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||pr(this,time),function(t,e,r,n,o,l,time){var c,h,i,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],h=t._ptLookup,i=t._targets.length;i--;){if((c=h[i][e])&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==e;)c=c._next;if(!c)return ur=1,t.vars[e]="+=0",pr(t,time),ur=0,1;f.push(c)}for(i=f.length;i--;)(c=f[i]).s=!n&&0!==n||o?c.s+(n||0)+l*c.c:n,c.c=r-c.s,c.e&&(c.e=Rt(r)+be(c.e)),c.b&&(c.b=c.s+be(c.b))}(this,t,e,r,n,this._ease(time/this._dur),time)?this.resetTo(t,e,r,n):(oe(this,0),this.parent||Qt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Me(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,lr&&!0!==lr.vars.overwrite)._first||Me(this),this.parent&&r!==this.timeline.totalDuration()&&fe(this,this._dur*this.timeline._tDur/r,0,1),this}var n,o,l,c,p,h,i,f=this._targets,d=t?Ce(t):f,m=this._ptLookup,y=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0}(f,d))return"all"===e&&(this._pt=0),Me(this);for(n=this._op=this._op||[],"all"!==e&&(J(e)&&(p={},jt(e,(function(t){return p[t]=1})),e=p),e=function(t,e){var r,p,i,n,o=t[0]?It(t[0]).harness:0,l=o&&o.aliases;if(!l)return e;for(p in r=Ht({},e),l)if(p in r)for(i=(n=l[p].split(",")).length;i--;)r[n[i]]=r[p];return r}(f,e)),i=f.length;i--;)if(~d.indexOf(f[i]))for(p in o=m[i],"all"===e?(n[i]=e,c=o,l={}):(l=n[i]=n[i]||{},c=e),c)(h=o&&o[p])&&("kill"in h.d&&!0!==h.d.kill(p)||$t(this,h,"_pt"),delete o[p]),"all"!==l&&(l[p]=1);return this._initted&&!this._pt&&y&&Me(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return me(1,arguments)},e.delayedCall=function(t,r,n,o){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:o})},e.fromTo=function(t,e,r){return me(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return h.killTweensOf(t,e,r)},e}(sr);Wt(_r.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),jt("staggerTo,staggerFrom,staggerFromTo",(function(t){_r[t]=function(){var e=new ar,r=_e.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var wr=function(t,e,r){return t[e]=r},xr=function(t,e,r){return t[e](r)},Cr=function(t,e,r,data){return t[e](data.fp,r)},Sr=function(t,e,r){return t.setAttribute(e,r)},kr=function(t,e){return Z(t[e])?xr:et(t[e])&&t.setAttribute?Sr:wr},Tr=function(t,data){return data.set(data.t,data.p,Math.round(1e6*(data.s+data.c*t))/1e6,data)},Dr=function(t,data){return data.set(data.t,data.p,!!(data.s+data.c*t),data)},Er=function(t,data){var e=data._pt,s="";if(!t&&data.b)s=data.b;else if(1===t&&data.e)s=data.e;else{for(;e;)s=e.p+(e.m?e.m(e.s+e.c*t):Math.round(1e4*(e.s+e.c*t))/1e4)+s,e=e._next;s+=data.c}data.set(data.t,data.p,s,data)},Or=function(t,data){for(var e=data._pt;e;)e.r(t,e.d),e=e._next},Ar=function(t,e,r,n){for(var o,l=this._pt;l;)o=l._next,l.p===n&&l.modifier(t,e,r),l=o},Pr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?$t(this,n,"_pt"):n.dep||(e=1),n=r;return!e},Fr=function(t,e,r,data){data.mSet(t,e,data.m.call(data.tween,r,data.mt),data)},Ir=function(t){for(var e,r,n,o,l=t._pt;l;){for(e=l._next,r=n;r&&r.pr>l.pr;)r=r._next;(l._prev=r?r._prev:o)?l._prev._next=l:n=l,(l._next=r)?r._prev=l:o=l,l=e}t._pt=n},Mr=function(){function t(t,e,r,n,o,l,data,c,h){this.t=e,this.s=n,this.c=o,this.p=r,this.r=l||Tr,this.d=data||this,this.set=c||wr,this.pr=h||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=Fr,this.m=t,this.mt=r,this.tween=e},t}();jt(Pt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return St[t]=1})),yt.TweenMax=yt.TweenLite=_r,yt.TimelineLite=yt.TimelineMax=ar,h=new ar({sortChildren:!1,defaults:V,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),U.stringFilter=We;var jr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach((function(t){return je(t)}))},timeline:function(t){return new ar(t)},getTweensOf:function(t,e){return h.getTweensOf(t,e)},getProperty:function(t,e,r,n){J(t)&&(t=Ce(t)[0]);var o=It(t||{}).get,l=r?qt:Vt;return"native"===r&&(r=""),t?e?l((Dt[e]&&Dt[e].get||o)(t,e,r,n)):function(e,r,n){return l((Dt[e]&&Dt[e].get||o)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=Ce(t)).length>1){var n=t.map((function(t){return Nr.quickSetter(t,e,r)})),o=n.length;return function(t){for(var i=o;i--;)n[i](t)}}t=t[0]||{};var l=Dt[e],c=It(t),p=c.harness&&(c.harness.aliases||{})[e]||e,h=l?function(e){var p=new l;_._pt=0,p.init(t,r?e+r:e,_,0,[t]),p.render(1,p),_._pt&&Or(1,_)}:c.set(t,p);
vendor: 5,883 bytes, line 2
2return l?h:function(e){return h(t,p,r?e+r:e,c,1)}},quickTo:function(t,e,r){var n,o=Nr.to(t,Ht(((n={})[e]="+=0.1",n.paused=!0,n),r||{})),l=function(t,r,n){return o.resetTo(e,t,r,n)};return l.tween=o,l},isTweening:function(t){return h.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ze(t.ease,V.ease)),Yt(V,t||{})},config:function(t){return Yt(U,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,o=t.defaults,l=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!Dt[t]&&!yt[t]&&wt(e+" effect requires "+t+" plugin.")})),Et[e]=function(t,e,n){return r(Ce(t),Wt(e||{},o),n)},l&&(ar.prototype[e]=function(t,r,n){return this.add(Et[e](t,it(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Xe[t]=Ze(e)},parseEase:function(t,e){return arguments.length?Ze(t,e):Xe},getById:function(t){return h.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,o=new ar(t);for(o.smoothChildTiming=nt(t.smoothChildTiming),h.remove(o),o._dp=0,o._time=o._tTime=h._time,r=h._first;r;)n=r._next,!e&&!r._dur&&r instanceof _r&&r.vars.onComplete===r._targets[0]||ae(o,r,r._start-r._delay),r=n;return ae(h,o,0),o},utils:{wrap:function t(e,r,n){var o=r-e;return lt(e)?Oe(e,t(0,e.length),r):ye(n,(function(t){return(o+(t-e)%o)%o+e}))},wrapYoyo:function t(e,r,n){var o=r-e,l=2*o;return lt(e)?Oe(e,t(0,e.length-1),r):ye(n,(function(t){return e+((t=(l+(t-e)%l)%l||0)>o?l-t:t)}))},distribute:ke,random:Ee,snap:De,normalize:function(t,e,r){return Pe(t,e,0,1,r)},getUnit:be,clamp:function(t,e,r){return ye(r,(function(r){return ve(t,e,r)}))},splitColor:Be,toArray:Ce,selector:function(t){return t=Ce(t)[0]||wt("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return Ce(e,r.querySelectorAll?r:r===t?wt("Invalid scope")||m.createElement("div"):t)}},mapRange:Pe,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(r){return t(parseFloat(r))+(e||be(r))}},interpolate:function t(e,r,progress,n){var o=isNaN(e+r)?0:function(p){return(1-p)*e+p*r};if(!o){var p,i,l,c,h,f=J(e),d={};if(!0===progress&&(n=1)&&(progress=null),f)e={p:e},r={p:r};else if(lt(e)&&!lt(r)){for(l=[],c=e.length,h=c-2,i=1;i<c;i++)l.push(t(e[i-1],e[i]));c--,o=function(p){p*=c;var i=Math.min(h,~~p);return l[i](p-i)},progress=r}else n||(e=Ht(lt(e)?[]:{},e));if(!l){for(p in r)fr.call(d,e,p,"get",r[p]);o=function(p){return Or(p,d)||(f?e.p:e)}}}return ye(progress,o)},shuffle:Se},install:bt,effects:Et,ticker:He,updateRoot:ar.updateRoot,plugins:Dt,globalTimeline:h,core:{PropTween:Mr,globals:xt,Tween:_r,Timeline:ar,Animation:sr,getCache:It,_removeLinkedListItem:$t,suppressOverwrites:function(t){return c=t}}};jt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return jr[t]=_r[t]})),He.add(ar.updateRoot),_=jr.to({},{duration:0});var Rr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Lr=function(t,e){return{name:t,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,p;if(J(r)&&(n={},jt(r,(function(t){return n[t]=1})),r=n),e){for(p in n={},r)n[p]=e(r[p]);r=n}!function(t,e){var p,i,r,n=t._targets;for(p in e)for(i=n.length;i--;)(r=t._ptLookup[i][p])&&(r=r.d)&&(r._pt&&(r=Rr(r,p)),r&&r.modifier&&r.modifier(e[p],t,n[i],p))}(t,r)}}}},Nr=jr.registerPlugin({name:"attr",init:function(t,e,r,n,o){var p,l;for(p in e)(l=this.add(t,"setAttribute",(t.getAttribute(p)||0)+"",e[p],n,o,0,0,p))&&(l.op=p),this._props.push(p)}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i])}},Lr("roundProps",Te),Lr("modifiers"),Lr("snap",De))||jr;_r.version=ar.version=Nr.version="3.10.4",y=1,ot()&&Ye();Xe.Power0,Xe.Power1,Xe.Power2,Xe.Power3,Xe.Power4,Xe.Linear,Xe.Quad,Xe.Cubic,Xe.Quart,Xe.Quint,Xe.Strong,Xe.Elastic,Xe.Back,Xe.SteppedEase,Xe.Bounce,Xe.Sine,Xe.Expo,Xe.Circ;var Br,zr,Ur,Vr,qr,Wr,Hr,Yr={},Xr=180/Math.PI,Gr=Math.PI/180,Qr=Math.atan2,$r=/([A-Z])/g,Kr=/(left|right|width|margin|padding|x)/i,Jr=/[\s,\(]\S/,Zr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ti=function(t,data){return data.set(data.t,data.p,Math.round(1e4*(data.s+data.c*t))/1e4+data.u,data)},ei=function(t,data){return data.set(data.t,data.p,1===t?data.e:Math.round(1e4*(data.s+data.c*t))/1e4+data.u,data)},ri=function(t,data){return data.set(data.t,data.p,t?Math.round(1e4*(data.s+data.c*t))/1e4+data.u:data.b,data)},ii=function(t,data){var e=data.s+data.c*t;data.set(data.t,data.p,~~(e+(e<0?-.5:.5))+data.u,data)},ni=function(t,data){return data.set(data.t,data.p,t?data.e:data.b,data)},oi=function(t,data){return data.set(data.t,data.p,1!==t?data.b:data.e,data)},si=function(t,e,r){return t.style[e]=r},ai=function(t,e,r){return t.style.setProperty(e,r)},ui=function(t,e,r){return t._gsap[e]=r},ci=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},hi=function(t,e,r,data,n){var o=t._gsap;o.scaleX=o.scaleY=r,o.renderTransform(n,o)},fi=function(t,e,r,data,n){var o=t._gsap;o[e]=r,o.renderTransform(n,o)},di="transform",pi=di+"Origin",gi=function(t,e){var r=zr.createElementNS?zr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):zr.createElement(t);return r.style?r:zr.createElement(t)},mi=function t(e,r,n){var o=getComputedStyle(e);return o[r]||o.getPropertyValue(r.replace($r,"-$1").toLowerCase())||o.getPropertyValue(r)||!n&&t(e,vi(r)||r,1)||""},yi="O,Moz,ms,Ms,Webkit".split(","),vi=function(t,element,e){var s=(element||qr).style,i=5;if(t in s&&!e)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(yi[i]+t in s););return i<0?null:(3===i?"ms":i>=0?yi[i]:"")+t},bi=function(){"undefined"!=typeof window&&window.document&&(Br=window,zr=Br.document,Ur=zr.documentElement,qr=gi("div")||{style:{}},gi("div"),di=vi(di),pi=di+"Origin",qr.style.cssText="border-width:0;line-height:0;position:absolute;
2padding:0",Hr=!!vi("perspective"),Vr=1)},_i=function t(e){var r,svg=gi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,o=this.nextSibling,l=this.style.cssText;if(Ur.appendChild(svg),svg.appendChild(this),this.style.display="block",e)try{r=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(r=this._gsapBBox());return n&&(o?n.insertBefore(this,o):n.appendChild(this)),Ur.removeChild(svg),this.style.cssText=l,r},wi=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},xi=function(t){var e;try{e=t.getBBox()}catch(r){e=_i.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===_i||(e=_i.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+wi(t,["x","cx","x1"])||0,y:+wi(t,["y","cy","y1"])||0,width:0,height:0}},Ci=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!xi(t))},Si=function(t,e){if(e){var style=t.style;e in Yr&&e!==pi&&(e=di),style.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),style.removeProperty(e.replace($r,"-$1").toLowerCase())):style.removeAttribute(e)}},ki=function(t,e,r,n,o,l){var c=new Mr(t._pt,e,r,0,1,l?oi:ni);return t._pt=c,c.b=n,c.e=o,t._props.push(r),c},Ti={deg:1,rad:1,turn:1},Di=function t(e,r,n,o){var l,c,h,f,d=parseFloat(n)||0,m=(n+"").trim().substr((d+"").length)||"px",style=qr.style,y=Kr.test(r),v="svg"===e.tagName.toLowerCase(),_=(v?"client":"offset")+(y?"Width":"Height"),w=100,x="px"===o,C="%"===o;return o===m||!d||Ti[o]||Ti[m]?d:("px"!==m&&!x&&(d=t(e,r,n,"px")),f=e.getCTM&&Ci(e),!C&&"%"!==m||!Yr[r]&&!~r.indexOf("adius")?(style[y?"width":"height"]=w+(x?m:o),c=~r.indexOf("adius")||"em"===o&&e.appendChild&&!v?e:e.parentNode,f&&(c=(e.ownerSVGElement||{}).parentNode),c&&c!==zr&&c.appendChild||(c=zr.body),(h=c._gsap)&&C&&h.width&&y&&h.time===He.time?Rt(d/h.width*w):((C||"%"===m)&&(style.position=mi(e,"position")),c===e&&(style.position="static"),c.appendChild(qr),l=qr[_],c.removeChild(qr),style.position="absolute",y&&C&&((h=It(c)).time=He.time,h.width=c[_]),Rt(x?l*d/w:l&&d?w/l*d:0))):(l=f?e.getBBox()[y?"width":"height"]:e[_],Rt(C?d/l*w:d/100*l)))},Ei=function(t,e,r,n){var o;return Vr||bi(),e in Zr&&"transform"!==e&&~(e=Zr[e]).indexOf(",")&&(e=e.split(",")[0]),Yr[e]&&"transform"!==e?(o=Bi(t,n),o="transformOrigin"!==e?o[e]:o.svg?o.origin:zi(mi(t,pi))+" "+o.zOrigin+"px"):(!(o=t.style[e])||"auto"===o||n||~(o+"").indexOf("calc("))&&(o=Fi[e]&&Fi[e](t,e,r)||mi(t,e)||Mt(t,e)||("opacity"===e?1:0)),r&&!~(o+"").trim().indexOf(" ")?Di(t,e,o,r)+r:o},Oi=function(t,e,r,n){if(!r||"none"===r){var p=vi(e,t,1),s=p&&mi(t,p,1);s&&s!==r?(e=p,r=s):"borderColor"===e&&(r=mi(t,"borderTopColor"))}var a,o,l,c,h,f,d,m,y,v,_,w=new Mr(this._pt,t.style,e,0,1,Er),x=0,C=0;if(w.b=r,w.e=n,r+="","auto"===(n+="")&&(t.style[e]=n,n=mi(t,e)||n,t.style[e]=r),We(a=[r,n]),n=a[1],l=(r=a[0]).match(ht)||[],(n.match(ht)||[]).length){for(;o=ht.exec(n);)d=o[0],y=n.substring(x,o.index),h?h=(h+1)%5:"rgba("!==y.substr(-5)&&"hsla("!==y.substr(-5)||(h=1),d!==(f=l[C++]||"")&&(c=parseFloat(f)||0,_=f.substr((c+"").length),"="===d.charAt(1)&&(d=Nt(c,d)+_),m=parseFloat(d),v=d.substr((m+"").length),x=ht.lastIndex-v.length,v||(v=v||U.units[e]||_,x===n.length&&(n+=v,w.e+=v)),_!==v&&(c=Di(t,e,f,v)||0),w._pt={_next:w._pt,p:y||1===C?y:",",s:c,c:m-c,m:h&&h<4||"zIndex"===e?Math.round:0});w.c=x<n.length?n.substring(x,n.length):""}else w.r="display"===e&&"none"===n?oi:ni;return pt.test(n)&&(w.e=0),this._pt=w,w},Ai={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Pi=function(t,data){if(data.tween&&data.tween._time===data.tween._dur){var e,r,i,n=data.t,style=n.style,o=data.u,l=n._gsap;if("all"===o||!0===o)style.cssText="",r=1;else for(i=(o=o.split(",")).length;--i>-1;)e=o[i],Yr[e]&&(r=1,e="transformOrigin"===e?pi:di),Si(n,e);r&&(Si(n,di),l&&(l.svg&&n.removeAttribute("transform"),Bi(n,1),l.uncache=1))}},Fi={clearProps:function(t,e,r,n,o){if("isFromStart"!==o.data){var l=t._pt=new Mr(t._pt,e,r,0,0,Pi);return l.u=n,l.pr=-10,l.tween=o,t._props.push(r),1}}},Ii=[1,0,0,1,0,0],Mi={},ji=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Ri=function(t){var e=mi(t,di);return ji(e)?Ii:e.substr(7).match(ct).map(Rt)},Li=function(t,e){var r,n,o,l,c=t._gsap||It(t),style=t.style,h=Ri(t);return c.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(h=[(o=t.transform.baseVal.consolidate().matrix).a,o.b,o.
vendor: 2,049 bytes, line 2
2c,o.d,o.e,o.f]).join(",")?Ii:h:(h!==Ii||t.offsetParent||t===Ur||c.svg||(o=style.display,style.display="block",(r=t.parentNode)&&t.offsetParent||(l=1,n=t.nextSibling,Ur.appendChild(t)),h=Ri(t),o?style.display=o:Si(t,"display"),l&&(n?r.insertBefore(t,n):r?r.appendChild(t):Ur.removeChild(t))),e&&h.length>6?[h[0],h[1],h[4],h[5],h[12],h[13]]:h)},Ni=function(t,e,r,n,o,l){var c,h,f,d=t._gsap,m=o||Li(t,!0),y=d.xOrigin||0,v=d.yOrigin||0,_=d.xOffset||0,w=d.yOffset||0,a=m[0],b=m[1],x=m[2],C=m[3],S=m[4],k=m[5],T=e.split(" "),D=parseFloat(T[0])||0,E=parseFloat(T[1])||0;r?m!==Ii&&(h=a*C-b*x)&&(f=D*(-b/h)+E*(a/h)-(a*k-b*S)/h,D=D*(C/h)+E*(-x/h)+(x*k-C*S)/h,E=f):(D=(c=xi(t)).x+(~T[0].indexOf("%")?D/100*c.width:D),E=c.y+(~(T[1]||T[0]).indexOf("%")?E/100*c.height:E)),n||!1!==n&&d.smooth?(S=D-y,k=E-v,d.xOffset=_+(S*a+k*x)-S,d.yOffset=w+(S*b+k*C)-k):d.xOffset=d.yOffset=0,d.xOrigin=D,d.yOrigin=E,d.smooth=!!n,d.origin=e,d.originIsAbsolute=!!r,t.style[pi]="0px 0px",l&&(ki(l,d,"xOrigin",y,D),ki(l,d,"yOrigin",v,E),ki(l,d,"xOffset",_,d.xOffset),ki(l,d,"yOffset",w,d.yOffset)),t.setAttribute("data-svg-origin",D+" "+E)},Bi=function(t,e){var r=t._gsap||new or(t);if("x"in r&&!e&&!r.uncache)return r;var n,o,l,c,h,f,d,m,y,v,_,w,x,C,S,k,T,a,b,D,E,O,A,P,F,I,M,j,R,L,N,B,style=t.style,z=r.scaleX<0,V="px",W="deg",H=mi(t,pi)||"0";return n=o=l=f=d=m=y=v=_=0,c=h=1,r.svg=!(!t.getCTM||!Ci(t)),C=Li(t,r.svg),r.svg&&(P=(!r.uncache||"0px 0px"===H)&&!e&&t.getAttribute("data-svg-origin"),Ni(t,P||H,!!P||r.originIsAbsolute,!1!==r.smooth,C)),w=r.xOrigin||0,x=r.yOrigin||0,C!==Ii&&(a=C[0],b=C[1],D=C[2],E=C[3],n=O=C[4],o=A=C[5],6===C.length?(c=Math.sqrt(a*a+b*b),h=Math.sqrt(E*E+D*D),f=a||b?Qr(b,a)*Xr:0,(y=D||E?Qr(D,E)*Xr+f:0)&&(h*=Math.abs(Math.cos(y*Gr))),r.svg&&(n-=w-(w*a+x*D),o-=x-(w*b+x*E))):(B=C[6],L=C[7],M=C[8],j=C[9],R=C[10],N=C[11],n=C[12],o=C[13],l=C[14],d=(S=Qr(B,R))*Xr,S&&(P=O*(k=Math.cos(-S))+M*(T=Math.sin(-S)),F=A*k+j*T,I=B*k+R*T,M=O*-T+M*k,j=A*-T+j*k,R=B*-T+R*k,N=L*-T+N*k,O=P,A=F,B=I),m=(S=Qr(-D,R))*Xr,S&&(k=Math.cos(-S),N=E*(T=Math.sin(-S))+N*k,a=P=a*k-M
vendor: 5,078 bytes, line 2
2*T,b=F=b*k-j*T,D=I=D*k-R*T),f=(S=Qr(b,a))*Xr,S&&(P=a*(k=Math.cos(S))+b*(T=Math.sin(S)),F=O*k+A*T,b=b*k-a*T,A=A*k-O*T,a=P,O=F),d&&Math.abs(d)+Math.abs(f)>359.9&&(d=f=0,m=180-m),c=Rt(Math.sqrt(a*a+b*b+D*D)),h=Rt(Math.sqrt(A*A+B*B)),S=Qr(O,A),y=Math.abs(S)>2e-4?S*Xr:0,_=N?1/(N<0?-N:N):0),r.svg&&(P=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!ji(mi(t,di)),P&&t.setAttribute("transform",P))),Math.abs(y)>90&&Math.abs(y)<270&&(z?(c*=-1,y+=f<=0?180:-180,f+=f<=0?180:-180):(h*=-1,y+=y<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+V,r.y=o-((r.yPercent=o&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-o)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+V,r.z=l+V,r.scaleX=Rt(c),r.scaleY=Rt(h),r.rotation=Rt(f)+W,r.rotationX=Rt(d)+W,r.rotationY=Rt(m)+W,r.skewX=y+W,r.skewY=v+W,r.transformPerspective=_+V,(r.zOrigin=parseFloat(H.split(" ")[2])||0)&&(style[pi]=zi(H)),r.xOffset=r.yOffset=0,r.force3D=U.force3D,r.renderTransform=r.svg?Xi:Hr?Yi:Vi,r.uncache=0,r},zi=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ui=function(t,e,r){var n=be(e);return Rt(parseFloat(e)+parseFloat(Di(t,"x",r+"px",n)))+n},Vi=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Yi(t,e)},qi="0deg",Wi="0px",Hi=") ",Yi=function(t,e){var r=e||this,n=r.xPercent,o=r.yPercent,l=r.x,c=r.y,h=r.z,f=r.rotation,d=r.rotationY,m=r.rotationX,y=r.skewX,v=r.skewY,_=r.scaleX,w=r.scaleY,x=r.transformPerspective,C=r.force3D,S=r.target,k=r.zOrigin,T="",D="auto"===C&&t&&1!==t||!0===C;if(k&&(m!==qi||d!==qi)){var E,O=parseFloat(d)*Gr,A=Math.sin(O),P=Math.cos(O);O=parseFloat(m)*Gr,E=Math.cos(O),l=Ui(S,l,A*E*-k),c=Ui(S,c,-Math.sin(O)*-k),h=Ui(S,h,P*E*-k+k)}x!==Wi&&(T+="perspective("+x+Hi),(n||o)&&(T+="translate("+n+"%, "+o+"%) "),(D||l!==Wi||c!==Wi||h!==Wi)&&(T+=h!==Wi||D?"translate3d("+l+", "+c+", "+h+") ":"translate("+l+", "+c+Hi),f!==qi&&(T+="rotate("+f+Hi),d!==qi&&(T+="rotateY("+d+Hi),m!==qi&&(T+="rotateX("+m+Hi),y===qi&&v===qi||(T+="skew("+y+", "+v+Hi),1===_&&1===w||(T+="scale("+_+", "+w+Hi),S.style[di]=T||"translate(0, 0)"},Xi=function(t,e){var r,n,o,l,c,h=e||this,f=h.xPercent,d=h.yPercent,m=h.x,y=h.y,v=h.rotation,_=h.skewX,w=h.skewY,x=h.scaleX,C=h.scaleY,S=h.target,k=h.xOrigin,T=h.yOrigin,D=h.xOffset,E=h.yOffset,O=h.forceCSS,A=parseFloat(m),P=parseFloat(y);v=parseFloat(v),_=parseFloat(_),(w=parseFloat(w))&&(_+=w=parseFloat(w),v+=w),v||_?(v*=Gr,_*=Gr,r=Math.cos(v)*x,n=Math.sin(v)*x,o=Math.sin(v-_)*-C,l=Math.cos(v-_)*C,_&&(w*=Gr,c=Math.tan(_-w),o*=c=Math.sqrt(1+c*c),l*=c,w&&(c=Math.tan(w),r*=c=Math.sqrt(1+c*c),n*=c)),r=Rt(r),n=Rt(n),o=Rt(o),l=Rt(l)):(r=x,l=C,n=o=0),(A&&!~(m+"").indexOf("px")||P&&!~(y+"").indexOf("px"))&&(A=Di(S,"x",m,"px"),P=Di(S,"y",y,"px")),(k||T||D||E)&&(A=Rt(A+k-(k*r+T*o)+D),P=Rt(P+T-(k*n+T*l)+E)),(f||d)&&(c=S.getBBox(),A=Rt(A+f/100*c.width),P=Rt(P+d/100*c.height)),c="matrix("+r+","+n+","+o+","+l+","+A+","+P+")",S.setAttribute("transform",c),O&&(S.style[di]=c)},Gi=function(t,e,r,n,o){var l,c,h=360,f=J(o),d=parseFloat(o)*(f&&~o.indexOf("rad")?Xr:1)-n,m=n+d+"deg";return f&&("short"===(l=o.split("_")[1])&&(d%=h)!==d%180&&(d+=d<0?h:-360),"cw"===l&&d<0?d=(d+36e9)%h-~~(d/h)*h:"ccw"===l&&d>0&&(d=(d-36e9)%h-~~(d/h)*h)),t._pt=c=new Mr(t._pt,e,r,n,d,ei),c.e=m,c.u="deg",t._props.push(r),c},Qi=function(t,source){for(var p in source)t[p]=source[p];return t},$i=function(t,e,r){var n,p,o,l,c,h,f,d=Qi({},r._gsap),style=r.style;for(p in d.svg?(o=r.getAttribute("transform"),r.setAttribute("transform",""),style[di]=e,n=Bi(r,1),Si(r,di),r.setAttribute("transform",o)):(o=getComputedStyle(r)[di],style[di]=e,n=Bi(r,1),style[di]=o),Yr)(o=d[p])!==(l=n[p])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(p)<0&&(c=be(o)!==(f=be(l))?Di(r,p,o,f):parseFloat(o),h=parseFloat(l),t._pt=new Mr(t._pt,n,p,c,h-c,ti),t._pt.u=f||0,t._props.push(p));Qi(n,d)};jt("padding,margin,Width,Radius",(function(t,e){var r="Top",n="Right",b="Bottom",o="Left",l=(e<3?[r,n,b,o]:[r+o,r+n,b+n,b+o]).map((function(r){return e<2?t+r:"border"+r+t}));Fi[e>1?"border"+t:t]=function(t,e,r,n,o){var a,c;if(arguments.length<4)return a=l.map((function(e){return Ei(t,e,r)})),5===(c=a.join(" ")).split(a[0]).length?a[0]:c;a=(n+"").split(" "),c={},l.forEach((function(t,i){return c[t]=a[i]=a[i]||a[(i-1)/2|0]})),t.init(e,c,o)}}));var Ki,Ji,Zi,tn={name:"css",register:bi,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,o,l){var c,h,f,d,m,y,p,v,_,w,x,C,S,k,T,D,E,O,A,P=this._props,style=t.style,F=r.vars.startAt;for(p in Vr||bi(),e)if("autoRound"!==p&&(h=e[p],!Dt[p]||!dr(p,e,r,o,t,l)))if(m=Object(n.a)(h),y=Fi[p],"function"===m&&(h=h.call(r,o,t,l),m=Object(n.a)(h)),"string"===m&&~h.indexOf("random(")&&(h=Ae(h)),y)y(this,t,p,h,r)&&(T=1);else if("--"===p.substr(0,2))c=(getComputedStyle(t).getPropertyValue(p)+"").trim(),h+="",Ve.lastIndex=0,Ve.test(c)||(v=be(c),_=be(h)),_?v!==_&&(c=Di(t,p,c,_)+_):v&&(h+=v),this.add(style,"setProperty",c,h,o,l,0,0,p),P.push(p);else if("undefined"!==m){if(F&&p in F?(c="function"==typeof F[p]?F[p].c
2all(r,o,t,l):F[p],J(c)&&~c.indexOf("random(")&&(c=Ae(c)),be(c+"")||(c+=U.units[p]||be(Ei(t,p))||""),"="===(c+"").charAt(1)&&(c=Ei(t,p))):c=Ei(t,p),d=parseFloat(c),(w="string"===m&&"="===h.charAt(1)&&h.substr(0,2))&&(h=h.substr(2)),f=parseFloat(h),p in Zr&&("autoAlpha"===p&&(1===d&&"hidden"===Ei(t,"visibility")&&f&&(d=0),ki(this,style,"visibility",d?"inherit":"hidden",f?"inherit":"hidden",!f)),"scale"!==p&&"transform"!==p&&~(p=Zr[p]).indexOf(",")&&(p=p.split(",")[0])),x=p in Yr)if(C||((S=t._gsap).renderTransform&&!e.parseTransform||Bi(t,e.parseTransform),k=!1!==e.smoothOrigin&&S.smooth,(C=this._pt=new Mr(this._pt,style,di,0,1,S.renderTransform,S,0,-1)).dep=1),"scale"===p)this._pt=new Mr(this._pt,S,"scaleY",S.scaleY,(w?Nt(S.scaleY,w+f):f)-S.scaleY||0),P.push("scaleY",p),p+="X";else{if("transformOrigin"===p){E=void 0,O=void 0,A=void 0,E=(D=h).split(" "),O=E[0],A=E[1]||"50%","top"!==O&&"bottom"!==O&&"left"!==A&&"right"!==A||(D=O,O=A,A=D),E[0]=Ai[O]||O,E[1]=Ai[A]||A,h=E.join(" "),S.svg?Ni(t,h,0,k,0,this):((_=parseFloat(h.split(" ")[2])||0)!==S.zOrigin&&ki(this,S,"zOrigin",S.zOrigin,_),ki(this,style,p,zi(c),zi(h)));continue}if("svgOrigin"===p){Ni(t,h,1,k,0,this);continue}if(p in Mi){Gi(this,S,p,d,w?Nt(d,w+h):h);continue}if("smoothOrigin"===p){ki(this,S,"smooth",S.smooth,h);continue}if("force3D"===p){S[p]=h;continue}if("transform"===p){$i(this,h,t);continue}}else p in style||(p=vi(p)||p);if(x||(f||0===f)&&(d||0===d)&&!Jr.test(h)&&p in style)f||(f=0),(v=(c+"").substr((d+"").length))!==(_=be(h)||(p in U.units?U.units[p]:v))&&(d=Di(t,p,c,_)),this._pt=new Mr(this._pt,x?S:style,p,d,(w?Nt(d,w+f):f)-d,x||"px"!==_&&"zIndex"!==p||!1===e.autoRound?ti:ii),this._pt.u=_||0,v!==_&&"%"!==_&&(this._pt.b=c,this._pt.r=ri);else if(p in style)Oi.call(this,t,p,c,w?w+h:h);else{if(!(p in t)){_t(p,h);continue}this.add(t,p,c||t[p],w?w+h:h,o,l)}P.push(p)}T&&Ir(this)},get:Ei,aliases:Zr,getSetter:function(t,e,r){var p=Zr[e];return p&&p.indexOf(",")<0&&(e=p),e in Yr&&e!==pi&&(t._gsap.x||Ei(t,"x"))?r&&Wr===r?"scale"===e?ci:ui:(Wr=r||{})&&("scale"===e?hi:fi):t.style&&!et(t.style[e])?si:~e.indexOf("-")?ai:kr(t,e)},core:{_removeProperty:Si,_getMatrix:Li}};Nr.utils.checkPrefix=vi,Zi=jt((Ki="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Ji="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Yr[t]=1})),jt(Ji,(function(t){U.units[t]="deg",Mi[t]=1})),Zr[Zi[13]]=Ki+","+Ji,jt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Zr[e[1]]=Zi[e[0]]})),jt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){U.units[t]="px"})),Nr.registerPlugin(tn);var en=Nr.registerPlugin(tn)||Nr;en.core.Tween},10:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return h})),r.d(e,"b",(function(){return f}));var n=r(477),o="Invariant Violation",l=Object.setPrototypeOf,c=void 0===l?function(t,e){return t.__proto__=e,t}:l,h=function(t){function e(r){void 0===r&&(r=o);var n=t.call(this,"number"==typeof r?o+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=o,c(n,e.prototype),n}return Object(n.a)(e,t),e}(Error);function f(t,e){if(!t)throw new h(e)}function d(t){return function(){return console[t].apply(console,arguments)}}!function(t){t.warn=d("warn"),t.error=d("error")}(f||(f={}));var m={env:{}};if("object"==typeof t)m=t;else try{Function("stub","process = stub")(m)}catch(t){}}).call(this,r(100))},103:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},104:function(t,e,r){"use strict";var n=r(176),o=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=y;var l=Object.create(r(138));l.inherits=r(103);var c=r(308),h=r(218);l.inherits(y,c);for(var f=o(h.prototype),d=0;d<f.length;
vendor: 1,070 bytes, line 2
2d++){var m=f[d];y.prototype[m]||(y.prototype[m]=h.prototype[m])}function y(t){if(!(this instanceof y))return new y(t);c.call(this,t),h.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",v)}function v(){this.allowHalfOpen||this._writableState.ended||n.nextTick(_,this)}function _(t){t.end()}Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),y.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},105:function(t,e,r){"use strict";r.d(e,"a",(function(){return bt})),r.d(e,"b",(function(){return et}));
vendor: 8,233 bytes, line 2
2var n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},n(t,b)};function o(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var l=function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},l.apply(this,arguments)};var c=r(4);function h(t){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:f(t)}]}}function f(t){if("number"==typeof t||"boolean"==typeof t||"string"==typeof t||null==t)return null;if(Array.isArray(t))return f(t[0]);var e=[];return Object.keys(t).forEach((function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:f(t[r])||void 0};e.push(n)})),{kind:"SelectionSet",selections:e}}var d,m={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},y=function(){function t(){}return t.prototype.transformDocument=function(t){return t},t.prototype.transformForLink=function(t){return t},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.read({query:t.query,variables:t.variables,optimistic:e})},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.read({query:Object(c.getFragmentQueryDocument)(t.fragment,t.fragmentName),variables:t.variables,rootId:t.id,optimistic:e})},t.prototype.writeQuery=function(t){this.write({dataId:"ROOT_QUERY",result:t.data,query:t.query,variables:t.variables})},t.prototype.writeFragment=function(t){this.write({dataId:t.id,result:t.data,variables:t.variables,query:Object(c.getFragmentQueryDocument)(t.fragment,t.fragmentName)})},t.prototype.writeData=function(t){var e,r,n=t.id,data=t.data;if(void 0!==n){var o=null;try{o=this.read({rootId:n,optimistic:!1,query:m})}catch(t){}var l=o&&o.__typename||"__ClientData",c=Object.assign({__typename:l},data);this.writeFragment({id:n,fragment:(e=c,r=l,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:f(e)}]}),data:c})}else this.writeQuery({query:h(data),data:data})},t}();d||(d={});var v=r(434),_=null,w={},x=1,C="@wry/context:Slot",S=Array,k=S[C]||function(){var t=function(){function t(){this.id=["slot",x++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var t=_;t;t=t.parent)if(this.id in t.slots){var e=t.slots[this.id];if(e===w)break;return t!==_&&(_.slots[this.id]=e),!0}return _&&(_.slots[this.id]=w),!1},t.prototype.getValue=function(){if(this.hasValue())return _.slots[this.id]},t.prototype.withValue=function(t,e,r,n){var o,l=((o={__proto__:null})[this.id]=t,o),c=_;_={parent:c,slots:l};try{return e.apply(n,r)}finally{_=c}},t.bind=function(t){var e=_;return function(){var r=_;try{return _=e,t.apply(this,arguments)}finally{_=r}}},t.noContext=function(t,e,r){if(!_)return t.apply(r,e);var n=_;try{return _=null,t.apply(r,e)}finally{_=n}},t}();try{Object.defineProperty(S,C,{value:S[C]=t,enumerable:!1,writable:!1,configurable:!1})}finally{return t}}();k.bind,k.noContext;function T(){}var D=function(){function t(t,e){void 0===t&&(t=1/0),void 0===e&&(e=T),this.max=t,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}return t.prototype.has=function(t){return this.map.has(t)},t.prototype.get=function(t){var e=this.getEntry(t);return e&&e.value},t.prototype.getEntry=function(t){var e=this.map.get(t);if(e&&e!==this.newest){var r=e.older,n=e.newer;n&&(n.older=r),r&&(r.newer=n),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=n)}return e},t.prototype.set=function(t,e){var r=this.getEntry(t);return r?r.value=e:(r={key:t,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)},t.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},t.prototype.delete=function(t){var e=this.map.get(t);return!!e&&(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(t),this.dispose(e.value,t),!0)},t}(),E=new k,O=[],A=[];function P(t,e){if(!t)throw new Error(e||"assertion failure")}function F(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}var I=function(){function t(e,r){this.fn=e,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++t.count}return t.prototype.recompute=function(){if(P(!this.recomputing,"already recomputing"),function(t){var e=E.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),j(t)?N(e,t):B(e,t),e}(this)||!U(this))return j(this)?function(t){var e=V(t);E.withValue(t,M,[t]),function(t){if("function"==typeof t.subscribe)try{H(t),t.unsubscribe=t.subscribe.apply(null,t.args)}catch(e){return t.setDirty(),!1}return!0}(t)&&function(t){if(t.dirty=!1,j(t))return;L(t)}(t);return e.forEach(U),F(t.value)}(this):F(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,R(this),H(this))},t.prototype.dispose=function(){var t=this;V(this).forEach(U),H(this),this.parents.forEach((function(e){e.setDirty(),W(e,t)}))},t.count=0,t}();function M(t){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,t.args)}catch(e){t.value[1]=e}t.recomputing=!1}function j(t){return t.dirty||!(!t.dirtyChildren||!t.dirtyChildren.size)}function R(t){t.parents.forEach((function(e){return N(e,t)}))}function L(t){t.parents.forEach((function(e){return B(e,t)}))}function N(t,e){if(P(t.childValues.has(e)),P(j(e)),t.dirtyChildren){if(t.dirtyChildren.has(e))return}else t.dirtyChildren=A.pop()||new Set;t.dirtyChildren.add(e),R(t)}function B(t,e){P(t.childValues.has(e)),P(!j(e));var a,b,r,n=t.childValues.get(e);0===n.length?t.childValues.set(e,e.value.slice(0)):(a=n,b=e.value,(r=a.length)>0&&r===b.length&&a[r-1]===b[r-1]||t.setDirty()),z(t,e),j(t)||L(t)}function z(t,e){var r=t.dirtyChildren;r&&(r.delete(e),0===r.size&&(A.length<100&&A.push(r),t.dirtyChildren=null))}function U(t){return 0===t.parents.size&&"function"==typeof t.reportOrphan&&!0===t.reportOrphan()}function V(t){var e=O;return t.childValues.size>0&&(e=[],t.childValues.forEach((function(r,n){W(t,n),e.push(n)}))),P(null===t.dirtyChildren),e}function W(t,e){e.parents.delete(t),t.childValues.delete(e),z(t,e)}function H(t){var e=t.unsubscribe;"function"==typeof e&&(t.unsubscribe=void 0,e())}var Y=function(){function t(t){this.weakness=t}return t.prototype.lookup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.lookupArray(t)},t.prototype.lookupArray=function(t){var e=this;return t.forEach((function(t){return e=e.getChildTrie(t)})),e.data||(e.data=Object.create(null))},t.prototype.getChildTrie=function(e){var map=this.weakness&&function(t){switch(typeof t){case"object":if(null===t)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=map.get(e);return r||map.set(e,r=new t(this.weakness)),r},t}();var X=new Y("function"==typeof WeakMap);function G(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return X.lookupArray(t)}var Q=new Set;function $(t,e){void 0===e&&(e=Object.create(null));var r=new D(e.max||Math.pow(2,16),(function(t){return t.dispose()})),n=!!e.disposable,o=e.makeCacheKey||G;function l(){if(!n||E.hasValue()){var l=o.apply(null,arguments);if(void 0===l)return t.apply(null,arguments);var c=Array.prototype.slice.call(arguments),h=r.get(l);h?h.args=c:(h=new I(t,c),r.set(l,h),h.subscribe=e.subscribe,n&&(h.reportOrphan=function(){return r.delete(l)}));var f=h.recompute();
2return r.set(l,h),Q.add(r),E.hasValue()||(Q.forEach((function(t){return t.clean()})),Q.clear()),n?void 0:f}}return l.dirty=function(){var t=o.apply(null,arguments),e=void 0!==t&&r.get(t);e&&e.setDirty()},l}var K=r(10),J=!1;function Z(){var t=!J;return Object(c.isTest)()||(J=!0),t}var tt=function(){function t(){}return t.prototype.ensureReady=function(){return Promise.resolve()},t.prototype.canBypassInit=function(){return!0},t.prototype.match=function(t,e,r){var n=r.store.get(t.id),o="ROOT_QUERY"===t.id;if(!n)return o;var l=n.__typename,c=void 0===l?o&&"Query":l;return c&&c===e||(Z(),"heuristic")},t}(),et=function(){function t(t){t&&t.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(t.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return t.prototype.match=function(t,e,r){Object(K.b)(this.isReady,1);var n=r.store.get(t.id),o="ROOT_QUERY"===t.id;if(!n)return o;var l=n.__typename,c=void 0===l?o&&"Query":l;if(Object(K.b)(c,2),c===e)return!0;var h=this.possibleTypesMap[e];return!!(c&&h&&h.indexOf(c)>-1)},t.prototype.parseIntrospectionResult=function(t){var e={};return t.__schema.types.forEach((function(t){"UNION"!==t.kind&&"INTERFACE"!==t.kind||(e[t.name]=t.possibleTypes.map((function(t){return t.name})))})),e},t}(),it=Object.prototype.hasOwnProperty,nt=function(){function t(data){var t=this;void 0===data&&(data=Object.create(null)),this.data=data,this.depend=$((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(t){return t}})}return t.prototype.toObject=function(){return this.data},t.prototype.get=function(t){return this.depend(t),this.data[t]},t.prototype.set=function(t,e){e!==this.data[t]&&(this.data[t]=e,this.depend.dirty(t))},t.prototype.delete=function(t){it.call(this.data,t)&&(delete this.data[t],this.depend.dirty(t))},t.prototype.clear=function(){this.replace(null)},t.prototype.replace=function(t){var e=this;t?(Object.keys(t).forEach((function(r){e.set(r,t[r])})),Object.keys(this.data).forEach((function(r){it.call(t,r)||e.delete(r)}))):Object.keys(this.data).forEach((function(t){e.delete(t)}))},t}();function ot(t){return new nt(t)}var st=function(){function t(t){var e=this,r=void 0===t?{}:t,n=r.cacheKeyRoot,o=void 0===n?new Y(c.canUseWeakMap):n,l=r.freezeResults,h=void 0!==l&&l,f=this,d=f.executeStoreQuery,m=f.executeSelectionSet,y=f.executeSubSelectedArray;this.freezeResults=h,this.executeStoreQuery=$((function(t){return d.call(e,t)}),{makeCacheKey:function(t){var e=t.query,r=t.rootValue,n=t.contextValue,l=t.variableValues,c=t.fragmentMatcher;if(n.store instanceof nt)return o.lookup(n.store,e,c,JSON.stringify(l),r.id)}}),this.executeSelectionSet=$((function(t){return m.call(e,t)}),{makeCacheKey:function(t){var e=t.selectionSet,r=t.rootValue,n=t.execContext;if(n.contextValue.store instanceof nt)return o.lookup(n.contextValue.store,e,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=$((function(t){return y.call(e,t)}),{makeCacheKey:function(t){var e=t.field,r=t.array,n=t.execContext;if(n.contextValue.store instanceof nt)return o.lookup(n.contextValue.store,e,r,JSON.stringify(n.variableValues))}})}return t.prototype.readQueryFromStore=function(t){return this.diffQueryAgainstStore(l(l({},t),{returnPartialData:!1})).result},t.prototype.diffQueryAgainstStore=function(t){var e=t.store,r=t.query,n=t.variables,o=t.previousResult,l=t.returnPartialData,h=void 0===l||l,f=t.rootId,d=void 0===f?"ROOT_QUERY":f,m=t.fragmentMatcherFunction,y=t.config,_=Object(c.getQueryDefinition)(r);n=Object(c.assign)({},Object(c.getDefaultValues)(_),n);var w={store:e,dataIdFromObject:y&&y.dataIdFromObject,cacheRedirects:y&&y.cacheRedirects||{}},x=this.executeStoreQuery({query:r,rootValue:{type:"id",id:d,generated:!0,typename:"Query"},contextValue:w,variableValues:n,fragmentMatcher:m}),C=x.missing&&x.missing.length>0;return C&&!h&&x.missing.forEach((function(t){if(!t.tolerable)throw new K.a(8)})),o&&Object(v.a)(o,x.result)&&(x.result=o),{result:x.result,complete:!C}},t.prototype.executeStoreQuery=function(t){var e=t.query,r=t.rootValue,n=t.contextValue,o=t.variableValues,l=t.fragmentMatcher,h=void 0===l?lt:l,f=Object(c.getMainDefinition)(e),d=Object(c.getFragmentDefinitions)(e),m={query:e,fragmentMap:Object(c.createFragmentMap)(d),contextValue:n,variableValues:o,fragmentMatcher:h};return this.executeSelectionSet({selectionSet:f.selectionSet,rootValue:r,execContext:m})},t.prototype.executeSelectionSet=function(t){var e=this,r=t.selectionSet,n=t.rootValue,o=t.execContext,h=o.fragmentMap,f=o.contextValue,d=o.variableValues,m={result:null},y=[],object=f.store.get(n.id),v=object&&object.__typename||"ROOT_QUERY"===n.id&&"Query"||void 0;function _(t){var e;return t.missing&&(m.missing=m.missing||[],(e=m.missing).push.apply(e,t.missing)),t.result}return r.selections.forEach((function(t){var r;if(Object(c.shouldInclude)(t,d))if(Object(c.isField)(t)){var m=_(e.executeField(object,v,t,o));void 0!==m&&y.push(((r={})[Object(c.resultKeyNameFromField)(t)]=m,r))}else{var w=void 0;if(Object(c.isInlineFragment)(t))w=t;else if(!(w=h[t.name.value]))throw new K.a(9);var x=w.typeCondition&&w.typeCondition.name.value,C=!x||o.fragmentMatcher(n,x,f);if(C){var S=e.executeSelectionSet({selectionSet:w.selectionSet,rootValue:n,execContext:o});"heuristic"===C&&S.missing&&(S=l(l({},S),{missing:S.missing.map((function(t){return l(l({},t),{tolerable:!0})}
2))})),y.push(_(S))}}})),m.result=Object(c.mergeDeepArray)(y),this.freezeResults,m},t.prototype.executeField=function(object,t,e,r){var n=r.variableValues,o=r.contextValue,l=function(object,t,e,r,n,o){o.resultKey;var l=o.directives,h=e;(r||l)&&(h=Object(c.getStoreKeyName)(h,r,l));var f=void 0;if(object&&void 0===(f=object[h])&&n.cacheRedirects&&"string"==typeof t){var d=n.cacheRedirects[t];if(d){var m=d[e];m&&(f=m(object,r,{getCacheKey:function(t){var e=n.dataIdFromObject(t);return e&&Object(c.toIdValue)({id:e,typename:t.__typename})}}))}}if(void 0===f)return{result:f,missing:[{object:object,fieldName:h,tolerable:!1}]};Object(c.isJsonValue)(f)&&(f=f.json);return{result:f}}(object,t,e.name.value,Object(c.argumentsObjectFromField)(e,n),o,{resultKey:Object(c.resultKeyNameFromField)(e),directives:Object(c.getDirectiveInfoFromField)(e,n)});return Array.isArray(l.result)?this.combineExecResults(l,this.executeSubSelectedArray({field:e,array:l.result,execContext:r})):e.selectionSet?null==l.result?l:this.combineExecResults(l,this.executeSelectionSet({selectionSet:e.selectionSet,rootValue:l.result,execContext:r})):(at(e,l.result),this.freezeResults,l)},t.prototype.combineExecResults=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.forEach((function(e){e.missing&&(t=t||[]).push.apply(t,e.missing)})),{result:e.pop().result,missing:t}},t.prototype.executeSubSelectedArray=function(t){var e,r=this,n=t.field,o=t.array,l=t.execContext;function c(t){return t.missing&&(e=e||[]).push.apply(e,t.missing),t.result}return o=o.map((function(t){return null===t?null:Array.isArray(t)?c(r.executeSubSelectedArray({field:n,array:t,execContext:l})):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,rootValue:t,execContext:l})):(at(n,t),t)})),this.freezeResults,{result:o,missing:e}},t}();function at(t,e){if(!t.selectionSet&&Object(c.isIdValue)(e))throw new K.a(10)}function lt(){return!0}var ut=function(){function t(data){void 0===data&&(data=Object.create(null)),this.data=data}return t.prototype.toObject=function(){return this.data},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){this.data[t]=e},t.prototype.delete=function(t){this.data[t]=void 0},t.prototype.clear=function(){this.data=Object.create(null)},t.prototype.replace=function(t){this.data=t||Object.create(null)},t}();var ct=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="WriteError",e}return o(e,t),e}(Error);var ht=function(){function t(){}return t.prototype.writeQueryToStore=function(t){var e=t.query,r=t.result,n=t.store,o=void 0===n?ot():n,l=t.variables,c=t.dataIdFromObject,h=t.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:r,document:e,store:o,variables:l,dataIdFromObject:c,fragmentMatcherFunction:h})},t.prototype.writeResultToStore=function(t){var e=t.dataId,r=t.result,n=t.document,o=t.store,l=void 0===o?ot():o,h=t.variables,f=t.dataIdFromObject,d=t.fragmentMatcherFunction,m=Object(c.getOperationDefinition)(n);try{return this.writeSelectionSetToStore({result:r,dataId:e,selectionSet:m.selectionSet,context:{store:l,processedData:{},variables:Object(c.assign)({},Object(c.getDefaultValues)(m),h),dataIdFromObject:f,fragmentMap:Object(c.createFragmentMap)(Object(c.getFragmentDefinitions)(n)),fragmentMatcherFunction:d}})}catch(t){throw function(t,e){var r=new ct("Error writing result to store for query:\n "+JSON.stringify(e));return r.message+="\n"+t.message,r.stack=t.stack,r}(t,n)}},t.prototype.writeSelectionSetToStore=function(t){var e=this,r=t.result,n=t.dataId,o=t.selectionSet,l=t.context,h=l.variables,f=l.store,d=l.fragmentMap;return o.selections.forEach((function(t){var o;if(Object(c.shouldInclude)(t,h))if(Object(c.isField)(t)){var f=Object(c.resultKeyNameFromField)(t),m=r[f];if(void 0!==m)e.writeFieldToStore({dataId:n,value:m,field:t,context:l});else{var y=!1,v=!1;t.directives&&t.directives.length&&(y=t.directives.some((function(t){return t.name&&"defer"===t.name.value})),v=t.directives.some((function(t){return t.name&&"client"===t.name.value}))),!y&&!v&&l.fragmentMatcherFunction}}else{var _=void 0;Object(c.isInlineFragment)(t)?_=t:(_=(d||{}
2)[t.name.value],Object(K.b)(_,3));var w=!0;if(l.fragmentMatcherFunction&&_.typeCondition){var x=n||"self",C=Object(c.toIdValue)({id:x,typename:void 0}),S={store:new ut((o={},o[x]=r,o)),cacheRedirects:{}},k=l.fragmentMatcherFunction(C,_.typeCondition.name.value,S);Object(c.isProduction)(),w=!!k}w&&e.writeSelectionSetToStore({result:r,selectionSet:_.selectionSet,dataId:n,context:l})}})),f},t.prototype.writeFieldToStore=function(t){var e,r,n,o=t.field,h=t.value,f=t.dataId,d=t.context,m=d.variables,y=d.dataIdFromObject,_=d.store,w=Object(c.storeKeyNameFromField)(o,m);if(o.selectionSet&&null!==h)if(Array.isArray(h)){var x=f+"."+w;r=this.processArrayValue(h,x,o.selectionSet,d)}else{var C=f+"."+w,S=!0;if(ft(C)||(C="$"+C),y){var k=y(h);Object(K.b)(!k||!ft(k),4),(k||"number"==typeof k&&0===k)&&(C=k,S=!1)}gt(C,o,d.processedData)||this.writeSelectionSetToStore({dataId:C,result:h,selectionSet:o.selectionSet,context:d});var T=h.__typename;r=Object(c.toIdValue)({id:C,typename:T},S);var D=(n=_.get(f))&&n[w];if(D!==r&&Object(c.isIdValue)(D)){var E=void 0!==D.typename,O=void 0!==T,A=E&&O&&D.typename!==T;Object(K.b)(!S||D.generated||A,5),Object(K.b)(!E||O,6),D.generated&&(A?S||_.delete(D.id):pt(D.id,r.id,_))}}else r=null!=h&&"object"==typeof h?{type:"json",json:h}:h;(n=_.get(f))&&Object(v.a)(r,n[w])||_.set(f,l(l({},n),((e={})[w]=r,e)))},t.prototype.processArrayValue=function(t,e,r,n){var o=this;return t.map((function(t,l){if(null===t)return null;var h=e+"."+l;if(Array.isArray(t))return o.processArrayValue(t,h,r,n);var f=!0;if(n.dataIdFromObject){var d=n.dataIdFromObject(t);d&&(h=d,f=!1)}return gt(h,r,n.processedData)||o.writeSelectionSetToStore({dataId:h,result:t,selectionSet:r,context:n}),Object(c.toIdValue)({id:h,typename:t.__typename},f)}))},t}();function ft(t){return"$"===t[0]}function pt(t,e,r){if(t===e)return!1;var n=r.get(t),o=r.get(e),h=!1;Object.keys(n).forEach((function(t){var e=n[t],l=o[t];Object(c.isIdValue)(e)&&ft(e.id)&&Object(c.isIdValue)(l)&&!Object(v.a)(e,l)&&pt(e.id,l.id,r)&&(h=!0)})),r.delete(t);var f=l(l({},n),o);return Object(v.a)(f,o)?h:(r.set(e,f),!0)}function gt(t,e,r){if(!r)return!1;if(r[t]){if(r[t].indexOf(e)>=0)return!0;r[t].push(e)}else r[t]=[e];return!1}var mt={fragmentMatcher:new tt,dataIdFromObject:function(t){if(t.__typename){if(void 0!==t.id)return t.__typename+":"+t.id;if(void 0!==t._id)return t.__typename+":"+t._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var yt=Object.prototype.hasOwnProperty,vt=function(t){function e(e,r,n){var o=t.call(this,Object.create(null))||this;return o.optimisticId=e,o.parent=r,o.transaction=n,o}return o(e,t),e.prototype.toObject=function(){return l(l({},this.parent.toObject()),this.data)},e.prototype.get=function(t){return yt.call(this.data,t)?this.data[t]:this.parent.get(t)},e}(ut),bt=function(t){function e(e){void 0===e&&(e={});var r=t.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new Y(c.canUseWeakMap),r.silenceBroadcast=!1,r.config=l(l({},mt),e),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new nt:new ut,r.optimisticData=r.data,r.storeWriter=new ht,r.storeReader=new st({cacheKeyRoot:r.cacheKeyRoot,freezeResults:e.freezeResults});var n=r,o=n.maybeBroadcastWatch;return r.maybeBroadcastWatch=$((function(t){return o.call(r,t)}),{makeCacheKey:function(t){if(!t.optimistic&&!t.previousResult)return n.data instanceof nt?n.cacheKeyRoot.lookup(t.query,JSON.stringify(t.variables)):void 0}}),r}return o(e,t),e.prototype.restore=function(data){return data&&this.data.replace(data),this},e.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).toObject()},e.prototype.read=function(t){if("string"==typeof t.rootId&&void 0===this.data.get(t.rootId))return null;var e=this.config.fragmentMatcher,r=e&&e.match;return this.storeReader.readQueryFromStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,rootId:t.rootId,fragmentMatcherFunction:r,previousResult:t.previousResult,config:this.config})||null},e.prototype.write=function(t){var e=this.config.fragmentMatcher,r=e&&e.match;this.storeWriter.writeResultToStore({dataId:t.dataId,result:t.result,variables:t.variables,document:this.transformDocument(t.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},e.prototype.diff=function(t){var e=this.config.fragmentMatcher,r=e&&e.match;return this.storeReader.diffQueryAgainstStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,returnPartialData:t.returnPartialData,previousResult:t.previousResult,fragmentMatcherFunction:r,config:this.config})},e.prototype.watch=function(t){var e=this;
2return this.watches.add(t),function(){e.watches.delete(t)}},e.prototype.evict=function(t){throw new K.a(7)},e.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){for(var e=[],r=0,n=this.optimisticData;n instanceof vt;)n.optimisticId===t?++r:e.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;e.length>0;){var o=e.pop();this.performTransaction(o.transaction,o.optimisticId)}this.broadcastWatches()}},e.prototype.performTransaction=function(t,e){var data=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof e&&(this.data=this.optimisticData=new vt(e,this.optimisticData,t));try{t(this)}finally{this.silenceBroadcast=r,this.data=data}this.broadcastWatches()},e.prototype.recordOptimisticTransaction=function(t,e){return this.performTransaction(t,e)},e.prototype.transformDocument=function(t){if(this.addTypename){var e=this.typenameDocumentCache.get(t);return e||(e=Object(c.addTypenameToDocument)(t),this.typenameDocumentCache.set(t,e),this.typenameDocumentCache.set(e,e)),e}return t},e.prototype.broadcastWatches=function(){var t=this;this.silenceBroadcast||this.watches.forEach((function(e){return t.maybeBroadcastWatch(e)}))},e.prototype.maybeBroadcastWatch=function(t){t.callback(this.diff({query:t.query,variables:t.variables,previousResult:t.previousResult&&t.previousResult(),optimistic:t.optimistic}))},e}(y)},11:function(t,e,r){"use strict";let n;r.d(e,"a",(function(){return n})),function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},123:function(t,e,r){"use strict";function n(t,e){if(!Boolean(t))throw new Error(e)}r.d(e,"a",(function(){return n}))},125:function(t,e,r){"use strict";var n={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var r=e.parent,n=e.slots,o=e.props,l=n(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return r._isMounted?c:(r.$once("hook:mounted",(function(){r.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=n},138:function(t,e,r){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(89).Buffer.isBuffer},139:function(t,e,r){"use strict";
2t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},144:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));function n(t){return o(t,[])}function o(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,e){if(null===t)return"null";if(e.includes(t))return"[Circular]";const r=[...e,t];if(function(t){return"function"==typeof t.toJSON}(t)){const e=t.toJSON();if(e!==t)return"string"==typeof e?e:o(e,r)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";const r=Math.min(10,t.length),n=t.length-r,l=[];for(let i=0;i<r;++i)l.push(o(t[i],e));1===n?l.push("... 1 more item"):n>1&&l.push(`... ${n} more items`);return"["+l.join(", ")+"]"}(t,r);return function(object,t){const e=Object.entries(object);if(0===e.length)return"{}";if(t.length>2)return"["+function(object){const t=Object.prototype.toString.call(object).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof object.constructor){const t=object.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(object)+"]";const r=e.map((([e,r])=>e+": "+o(r,t)));return"{ "+r.join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}},145:function(t,e,r){"use strict";r.r(e),r.d(e,"print",(function(){return f}));var n=r(190);const o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function l(t){return c[t.charCodeAt(0)]}const c=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var h=r(64);function f(t){return Object(h.b)(t,d)}const d={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>m(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=v("(",m(t.variableDefinitions,", "),")"),r=m([t.operation,m([t.name,e]),m(t.directives," ")]," ");return("query"===r?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+v(" = ",r)+v(" ",m(n," "))},SelectionSet:{leave:({selections:t})=>y(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:o}){const l=v("",t,": ")+e;let c=l+v("(",m(r,", "),")");return c.length>80&&(c=l+v("(\n",_(m(r,"\n")),"\n)")),m([c,m(n," "),o]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+v(" ",m(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>m(["...",v("on ",t),m(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:o})=>`fragment ${t}${v("(",m(r,", "),")")} on ${e} ${v("",m(n," ")," ")}`+o},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?Object(n.b)(t):`"${t.replace(o,l)}"`},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+m(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+m(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+v("(",m(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>v("",t,"\n")+m(["schema",m(e," "),y(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>v("",t,"\n")+m(["scalar",e,m(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:o})=>v("",t,"\n")+m(["type",e,v("implements ",m(r," & ")),m(n," "),y(o)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:o})=>v("",t,"\n")+e+(w(r)?v("(\n",_(m(r,"\n")),"\n)"):v("(",m(r,", "),")"))+": "+n+v(" ",m(o," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:o})=>v("",t,"\n")+m([e+": "+r,v("= ",n),m(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:o})=>v("",t,"\n")+m(["interface",e,v("implements ",m(r," & ")),m(n," "),y(o)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:n})=>v("",t,"\n")+m(["union",e,m(r," "),v("= ",m(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:n})=>v("",t,"\n")+m(["enum",e,m(r," "),y(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>v("",t,"\n")+m([e,m(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>v("",t,"\n")+m(["input",e,m(r," "),y(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:n,locations:o})=>v("",t,"\n")+"directive @"+e+(w(r)?v("(\n",_(m(r,"\n")),"\n)"):v("(",m(r,", "),")"))+(n?" repeatable":"")+" on "+m(o," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>m(["extend schema",m(t," "),y(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>m(["extend scalar",t,m(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>m(["extend type",t,v("implements ",m(e," & ")),m(r," "),y(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>m(["extend interface",t,v("implements ",m(e," & ")),m(r," "),y(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>m(["extend union",t,m(e," "),v("= ",m(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>m(["extend enum",t,m(e," "),y(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>
vendor: 5,359 bytes, line 2
2m(["extend input",t,m(e," "),y(r)]," ")}};function m(t,e=""){var r;return null!==(r=null==t?void 0:t.filter((t=>t)).join(e))&&void 0!==r?r:""}function y(t){return v("{\n",_(m(t,"\n")),"\n}")}function v(t,e,r=""){return null!=e&&""!==e?t+e+r:""}function _(t){return v(" ",t.replace(/\n/g,"\n "))}function w(t){var e;return null!==(e=null==t?void 0:t.some((t=>t.includes("\n"))))&&void 0!==e&&e}},148:function(t,e,r){"use strict";(function(t){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},n.apply(this,arguments)},o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,l){function c(t){try{f(n.next(t))}catch(t){l(t)}}function h(t){try{f(n.throw(t))}catch(t){l(t)}}function f(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,h)}f((n=n.apply(t,e||[])).next())}))},l=this&&this.__generator||function(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function l(l){return function(c){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){o.label=l[1];break}if(6===l[0]&&o.label<n[1]){o.label=n[1],n=l;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(l);break}n[2]&&o.ops.pop(),o.trys.pop();continue}l=body.call(t,o)}catch(t){l=[6,t],r=0}finally{e=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}},c=this&&this.__spreadArrays||function(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),r=0;for(i=0;i<t;i++)for(var a=arguments[i],n=0,o=a.length;n<o;n++,r++)e[r]=a[n];return e};Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionClient=void 0;var h=void 0!==t?t:"undefined"!=typeof window?window:{},f=h.WebSocket||h.MozWebSocket,d=r(865),m=r(866),y=r(867),v=r(868),_=r(145),w=r(869),x=r(233),C=r(871),S=r(872),k=r(234),T=function(){function t(t,e,r,n){var o=e||{},l=o.connectionCallback,c=void 0===l?void 0:l,h=o.connectionParams,y=void 0===h?{}:h,v=o.minTimeout,_=void 0===v?S.MIN_WS_TIMEOUT:v,w=o.timeout,x=void 0===w?S.WS_TIMEOUT:w,k=o.reconnect,T=void 0!==k&&k,D=o.reconnectionAttempts,E=void 0===D?1/0:D,O=o.lazy,A=void 0!==O&&O,P=o.inactivityTimeout,F=void 0===P?0:P,I=o.wsOptionArguments,M=void 0===I?[]:I;if(this.wsImpl=r||f,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=n||C.GRAPHQL_WS,this.connectionCallback=c,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=_,this.wsTimeout=x,this.unsentMessagesQueue=[],this.reconnect=T,this.reconnecting=!1,this.reconnectionAttempts=E,this.lazy=!!A,this.inactivityTimeout=F,this.closedByUser=!1,this.backoff=new d({jitter:.5}),this.eventEmitter=new m.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(y),this.wsOptionArguments=M,this.lazy||this.connect()}return Object.defineProperty(t.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),t.prototype.close=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=e,t&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,k.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),t||this.tryReconnect())},t.prototype.request=function(t){var e,r,n=this.getObserver.bind(this),o=this.executeOperation.bind(this),l=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[x.default]=function(){return this},e.subscribe=function(e,c,h){var f=n(e,c,h);return r=o(t,(function(t,e){null===t&&null===e?f.complete&&f.complete():t?f.error&&f.error(t[0]):f.next&&f.next(e)})),{unsubscribe:function(){r&&(l(r),r=null)}}},e},t.prototype.on=function(t,e,r){var n=this.eventEmitter.on(t,e,r);return function(){n.off(t,e,r)}},t.prototype.onConnected=function(t,e){return this.on("connected",t,e)},t.prototype.onConnecting=function(t,e){return this.on("connecting",t,e)},t.prototype.onDisconnected=function(t,e){return this.on("disconnected",t,e)},t.prototype.onReconnected=function(t,e){return this.on("reconnected",t,e)},t.prototype.onReconnecting=function(t,e){return this.on("reconnecting",t,e)},t.prototype.onError=function(t,e){return this.on("error",t,e)},t.prototype.unsubscribeAll=function(){var t=this;
vendor: 5,464 bytes, line 2
2Object.keys(this.operations).forEach((function(e){t.unsubscribe(e)}))},t.prototype.applyMiddlewares=function(t){var e=this;return new Promise((function(r,n){var o,l,h;o=c(e.middlewares),l=e,(h=function(e){if(e)n(e);else if(o.length>0){var c=o.shift();c&&c.applyMiddleware.apply(l,[t,h])}else r(t)})()}))},t.prototype.use=function(t){var e=this;return t.map((function(t){if("function"!=typeof t.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");e.middlewares.push(t)})),this},t.prototype.getConnectionParams=function(t){return function(){return new Promise((function(e,r){if("function"==typeof t)try{return e(t.call(null))}catch(t){return r(t)}e(t)}))}},t.prototype.executeOperation=function(t,e){var r=this;null===this.client&&this.connect();var n=this.generateOperationId();return this.operations[n]={options:t,handler:e},this.applyMiddlewares(t).then((function(t){r.checkOperationOptions(t,e),r.operations[n]&&(r.operations[n]={options:t,handler:e},r.sendMessage(n,k.default.GQL_START,t))})).catch((function(t){r.unsubscribe(n),e(r.formatErrors(t))})),n},t.prototype.getObserver=function(t,e,r){return"function"==typeof t?{next:function(e){return t(e)},error:function(t){return e&&e(t)},complete:function(){return r&&r()}}:t},t.prototype.createMaxConnectTimeGenerator=function(){var t=this.minWsTimeout,e=this.wsTimeout;return new d({min:t,max:e,factor:1.2})},t.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},t.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},t.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},t.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},t.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(t.operations).length&&t.close()}),this.inactivityTimeout))},t.prototype.checkOperationOptions=function(t,e){var r=t.query,n=t.variables,o=t.operationName;if(!r)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!y.default(r)&&!w.getOperationAST(r,o)||o&&!y.default(o)||n&&!v.default(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},t.prototype.buildMessage=function(t,e,r){return{id:t,type:e,payload:r&&r.query?n(n({},r),{query:"string"==typeof r.query?r.query:_.print(r.query)}):r}},t.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},t.prototype.sendMessage=function(t,e,r){this.sendMessageRaw(this.buildMessage(t,e,r))},t.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch(e){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},t.prototype.generateOperationId=function(){return String(++this.nextOperationId)},t.prototype.tryReconnect=function(){var t=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(e){t.unsentMessagesQueue.push(t.buildMessage(e,k.default.GQL_START,t.operations[e].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var e=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){t.connect()}),e)}},t.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach((function(e){t.sendMessageRaw(e)})),this.unsentMessagesQueue=[]},t.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},t.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},t.prototype.connect=function(){var t,e=this;this.client=new((t=this.wsImpl).bind.apply(t,c([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return o(e,void 0,void 0,(function(){var t,e;return l(this,(function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return t=r.sent(),this.sendMessage(void 0,k.default.GQL_CONNECTION_INIT,t),this.flushUnsentMessagesQueue(),[3,4];case 3:return e=r.sent(),this.sendMessage(void 0,k.default.GQL_CONNECTION_ERROR,e),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}
2))}))},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(t){e.eventEmitter.emit("error",t)},this.client.onmessage=function(t){var data=t.data;e.processReceivedData(data)}},t.prototype.processReceivedData=function(t){var e,r;try{r=(e=JSON.parse(t)).id}catch(e){throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[k.default.GQL_DATA,k.default.GQL_COMPLETE,k.default.GQL_ERROR].indexOf(e.type)||this.operations[r])switch(e.type){case k.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case k.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case k.default.GQL_COMPLETE:var o=this.operations[r].handler;delete this.operations[r],o.call(this,null,null);break;case k.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(e.payload),null),delete this.operations[r];break;case k.default.GQL_DATA:var l=e.payload.errors?n(n({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[r].handler(null,l);break;case k.default.GQL_CONNECTION_KEEP_ALIVE:var c=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,c&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(r)},t.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,k.default.GQL_STOP,void 0))},t}();e.SubscriptionClient=T}).call(this,r(48))},175:function(t,e,r){"use strict";var n,o="object"==typeof Reflect?Reflect:null,l=o&&"function"==typeof o.apply?o.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var c=Number.isNaN||function(t){return t!=t};function h(){h.init.call(this)}t.exports=h,t.exports.once=function(t,e){return new Promise((function(r,n){function o(r){t.removeListener(e,l),n(r)}function l(){"function"==typeof t.removeListener&&t.removeListener("error",o),r([].slice.call(arguments))}S(t,e,l,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&S(t,"error",e,r)}(t,o,{once:!0})}))},h.EventEmitter=h,h.prototype._events=void 0,h.prototype._eventsCount=0,h.prototype._maxListeners=void 0;var f=10;function d(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function m(t){return void 0===t._maxListeners?h.defaultMaxListeners:t._maxListeners}function y(t,e,r,n){var o,l,c,h;if(d(r),void 0===(l=t._events)?(l=t._events=Object.create(null),t._eventsCount=0):(void 0!==l.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),l=t._events),c=l[e]),void 0===c)c=l[e]=r,++t._eventsCount;else if("function"==typeof c?c=l[e]=n?[r,c]:[c,r]:n?c.unshift(r):c.push(r),(o=m(t))>0&&c.length>o&&!c.warned){c.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=c.length,h=f,console&&console.warn&&console.warn(h)}return t}function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=v.bind(n);return o.listener=r,n.wrapFn=o,o}function w(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(o):C(o,o.length)}function x(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function C(t,e){for(var r=new Array(e),i=0;i<e;++i)r[i]=t[i];return r}function S(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function o(l){n.once&&t.removeEventListener(e,o),r(l)}))}}Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return f},set:function(t){if("number"!=typeof t||t<0||c(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");f=t}}),h.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},h.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||c(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},h.prototype.getMaxListeners=function(){return m(this)},h.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var r="error"===t,n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var c=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw c.context=o,c}var h=n[t];if(void 0===h)return!1;if("function"==typeof h)l(h,this,e);else{var f=h.length,d=C(h,f);for(i=0;i<f;++i)l(d[i],this,e)}return!0},h.prototype.addListener=function(t,e){return y(this,t,e,!1)},h.prototype.on=h.prototype.addListener,h.prototype.prependListener=function(t,e){return y(this,t,e,!0)},h.prototype.once=function(t,e){return d(e),this.on(t,_(this,t,e)),this},h.prototype.prependOnceListener=function(t,e){return d(e),this.prependListener(t,_(this,t,e)),this},h.prototype.removeListener=function(t,e){var r,n,o,i,l;if(d(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit
2("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){l=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,o),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,l||e)}return this},h.prototype.off=h.prototype.removeListener,h.prototype.removeAllListeners=function(t){var e,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var n,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},h.prototype.listeners=function(t){return w(this,t,!0)},h.prototype.rawListeners=function(t){return w(this,t,!1)},h.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):x.call(t,e)},h.prototype.listenerCount=x,h.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},176:function(t,e,r){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var l,i,c=arguments.length;switch(c){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,o)}));default:for(l=new Array(c-1),i=0;i<l.length;)l[i++]=arguments[i];return e.nextTick((function(){t.apply(null,l)}))}}}:t.exports=e}).call(this,r(100))},190:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return c}));var n=r(75);function o(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let i=0;i<t.length;++i){var c;const line=t[i],e=l(line);e!==line.length&&(n=null!==(c=n)&&void 0!==c?c:i,o=i,0!==i&&e<r&&(r=e))}return t.map(((line,i)=>0===i?line:line.slice(r))).slice(null!==(e=n)&&void 0!==e?e:0,o+1)}function l(t){let i=0;for(;i<t.length&&Object(n.d)(t.charCodeAt(i));)++i;return i}function c(t,e){const r=t.replace(/"""/g,'\\"""'),o=r.split(/\r\n|[\n\r]/g),l=1===o.length,c=o.length>1&&o.slice(1).every((line=>0===line.length||Object(n.d)(line.charCodeAt(0)))),h=r.endsWith('\\"""'),f=t.endsWith('"')&&!h,d=t.endsWith("\\"),m=f||d,y=!(null!=e&&e.minimize)&&(!l||t.length>70||m||c||h);let v="";const _=l&&Object(n.d)(t.charCodeAt(0));return(y&&!_||c)&&(v+="\n"),v+=r,(y||m)&&(v+="\n"),'"""'+v+'"""'}},198:function(t,e,r){"use strict";r.d(e,"a",(function(){return ht})),r.d(e,"b",(function(){return ft}));
vendor: 7,294 bytes, line 2
2var n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},n(t,b)};function o(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var l=function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},l.apply(this,arguments)};function c(t,e,r,n){return new(r||(r=Promise))((function(o,l){function c(t){try{f(n.next(t))}catch(t){l(t)}}function h(t){try{f(n.throw(t))}catch(t){l(t)}}function f(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,h)}f((n=n.apply(t,e||[])).next())}))}function h(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function l(l){return function(c){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){o.label=l[1];break}if(6===l[0]&&o.label<n[1]){o.label=n[1],n=l;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(l);break}n[2]&&o.ops.pop(),o.trys.pop();continue}l=body.call(t,o)}catch(t){l=[6,t],r=0}finally{e=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}var f,d=r(4),m=r(434),y=r(57),v=r(47),_=r(233),w=r(10),x=r(64);function C(t){return t<7}!function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"}(f||(f={}));var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype[_.default]=function(){return this},e.prototype["@@observable"]=function(){return this},e}(y.a);function k(t){return Array.isArray(t)&&t.length>0}var T,D=function(t){function e(r){var n,o,l=r.graphQLErrors,c=r.networkError,h=r.errorMessage,f=r.extraInfo,d=t.call(this,h)||this;return d.graphQLErrors=l||[],d.networkError=c||null,d.message=h||(o="",k((n=d).graphQLErrors)&&n.graphQLErrors.forEach((function(t){var e=t?t.message:"Error message not found.";o+="GraphQL error: "+e+"\n"})),n.networkError&&(o+="Network error: "+n.networkError.message+"\n"),o=o.replace(/\n$/,"")),d.extraInfo=f,d.__proto__=e.prototype,d}return o(e,t),e}(Error);!function(t){t[t.normal=1]="normal",t[t.refetch=2]="refetch",t[t.poll=3]="poll"}(T||(T={}));var E=function(t){function e(e){var r=e.queryManager,n=e.options,o=e.shouldSubscribe,l=void 0===o||o,c=t.call(this,(function(t){return c.onSubscribe(t)}))||this;c.observers=new Set,c.subscriptions=new Set,c.isTornDown=!1,c.options=n,c.variables=n.variables||{},c.queryId=r.generateQueryId(),c.shouldSubscribe=l;var h=Object(d.getOperationDefinition)(n.query);return c.queryName=h&&h.name&&h.name.value,c.queryManager=r,c}return o(e,t),e.prototype.result=function(){var t=this;return new Promise((function(e,r){var n={next:function(r){e(r),t.observers.delete(n),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout((function(){o.unsubscribe()}),0)},error:r},o=t.subscribe(n)}))},e.prototype.currentResult=function(){var t=this.getCurrentResult();return void 0===t.data&&(t.data={}),t},e.prototype.getCurrentResult=function(){if(this.isTornDown){var t=this.lastResult;return{data:!this.lastError&&t&&t.data||void 0,error:this.lastError,loading:!1,networkStatus:f.error}}var e,r,n,o=this.queryManager.getCurrentQueryResult(this),data=o.data,c=o.partial,h=this.queryManager.queryStore.get(this.queryId),d=this.options.fetchPolicy,m="network-only"===d||"no-cache"===d;if(h){var y=h.networkStatus;if(r=h,void 0===(n=this.options.errorPolicy)&&(n="none"),r&&(r.networkError||"none"===n&&k(r.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:y,error:new D({graphQLErrors:h.graphQLErrors,networkError:h.networkError})};h.variables&&(this.options.variables=l(l({},this.options.variables),h.variables),this.variables=this.options.variables),e={data:data,loading:C(y),networkStatus:y},h.graphQLErrors&&"all"===this.options.errorPolicy&&(e.errors=h.graphQLErrors)}else{var v=m||c&&"cache-only"!==d;e={data:data,loading:v,networkStatus:v?f.loading:f.ready}}return c||this.updateLastResult(l(l({},e),{stale:!1})),l(l({},e),{partial:c})},e.prototype.isDifferentFromLastResult=function(t){var e=this.lastResultSnapshot;return!(e&&t&&e.networkStatus===t.networkStatus&&e.stale===t.stale&&Object(m.a)(e.data,t.data))},e.prototype.getLastResult=function(){return this.lastResult},e.prototype.getLastError=function(){return this.lastError},e.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){var t=this.queryManager.queryStore.get(this.queryId);t&&(t.networkError=null,t.graphQLErrors=[])},e.prototype.refetch=function(t){var e=this.options.fetchPolicy;return"cache-only"===e?Promise.reject(new w.a(1)):("no-cache"!==e&&"cache-and-network"!==e&&(e="network-only"),Object(m.a)(this.variables,t)||(this.variables=l(l({},this.variables),t)),Object(m.a)(this.options.variables,this.variables)||(this.options.variables=l(l({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,l(l({},this.options),{fetchPolicy:e}),T.refetch))},e.prototype.fetchMore=function(t){var e=this;Object(w.b)(t.updateQuery,2);var r=l(l({},t.query?t:l(l(l({},this.options),t),{variables:l(l({},this.variables),t.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,T.normal,this.queryId).then((function(o){return e.updateQuery((function(e){return t.updateQuery(e,{fetchMoreResult:o.data,variables:r.variables})})),e.queryManager.stopQuery(n),o}),(function(t){throw e.queryManager.stopQuery(n),t}))},e.prototype.subscribeToMore=function(t){var e=this,r=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables}).subscribe({next:function(r){var n=t.updateQuery;n&&e.updateQuery((function(t,e){var o=e.variables;return n(t,{subscriptionData:r,variables:o})}))},error:function(e){t.onError&&t.onError(e)}});return this.subscriptions.add(r),function(){e.subscriptions.delete(r)&&r.unsubscribe()}},e.prototype.setOptions=function(t){var e=this.options.fetchPolicy;this.options=l(l({},this.options),t),t.pollInterval?this.startPolling(t.pollInterval):0===t.pollInterval&&this.stopPolling();var r=t.fetchPolicy;return this.setVariables(this.options.variables,e!==r&&("cache-only"===e||"standby"===e||"network-only"===r),t.fetchResults)},e.prototype.setVariables=function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!0),this.isTornDown=!1,t=t||this.variables,!e&&Ob
vendor: 6,115 bytes, line 2
2ject(m.a)(t,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=t,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},e.prototype.updateQuery=function(t){var e=this.queryManager,r=e.getQueryWithPreviousResult(this.queryId),n=r.previousResult,o=r.variables,l=r.document,c=Object(d.tryFunctionOrLogError)((function(){return t(n,{variables:o})}));c&&(e.dataStore.markUpdateQueryResult(l,o,c),e.broadcastQueries())},e.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},e.prototype.startPolling=function(t){P(this),this.options.pollInterval=t,this.queryManager.startPollingQuery(this.options,this.queryId)},e.prototype.updateLastResult=function(t){var e=this.lastResult;return this.lastResult=t,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?t:Object(d.cloneDeep)(t),e},e.prototype.onSubscribe=function(t){var e=this;try{var r=t._subscription._observer;r&&!r.error&&(r.error=O)}catch(t){}var n=!this.observers.size;return this.observers.add(t),t.next&&this.lastResult&&t.next(this.lastResult),t.error&&this.lastError&&t.error(this.lastError),n&&this.setUpQuery(),function(){e.observers.delete(t)&&!e.observers.size&&e.tearDownQuery()}},e.prototype.setUpQuery=function(){var t=this,e=this.queryManager,r=this.queryId;this.shouldSubscribe&&e.addObservableQuery(r,this),this.options.pollInterval&&(P(this),e.startPollingQuery(this.options,r));var n=function(e){t.updateLastResult(l(l({},t.lastResult),{errors:e.graphQLErrors,networkStatus:f.error,loading:!1})),A(t.observers,"error",t.lastError=e)};e.observeQuery(r,this.options,{next:function(r){if(t.lastError||t.isDifferentFromLastResult(r)){var n=t.updateLastResult(r),o=t.options,l=o.query,c=o.variables,h=o.fetchPolicy;e.transform(l).hasClientExports?e.getLocalState().addExportedVariables(l,c).then((function(o){var c=t.variables;t.variables=t.options.variables=o,!r.loading&&n&&"cache-only"!==h&&e.transform(l).serverQuery&&!Object(m.a)(c,o)?t.refetch():A(t.observers,"next",r)})):A(t.observers,"next",r)}},error:n}).catch(n)},e.prototype.tearDownQuery=function(){var t=this.queryManager;this.isTornDown=!0,t.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(sub){return sub.unsubscribe()})),this.subscriptions.clear(),t.removeObservableQuery(this.queryId),t.stopQuery(this.queryId),this.observers.clear()},e}(S);function O(t){}function A(t,e,r){var n=[];t.forEach((function(t){return t[e]&&n.push(t)})),n.forEach((function(t){return t[e](r)}))}function P(t){var e=t.options.fetchPolicy;Object(w.b)("cache-first"!==e&&"cache-only"!==e,3)}var F=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initMutation=function(t,e,r){this.store[t]={mutation:e,variables:r||{},loading:!0,error:null}},t.prototype.markMutationError=function(t,e){var r=this.store[t];r&&(r.loading=!1,r.error=e)},t.prototype.markMutationResult=function(t){var e=this.store[t];e&&(e.loading=!1,e.error=null)},t.prototype.reset=function(){this.store={}},t}(),I=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initQuery=function(t){var e=this.store[t.queryId];Object(w.b)(!e||e.document===t.document||Object(m.a)(e.document,t.document),19);var r,n=!1,o=null;t.storePreviousVariables&&e&&e.networkStatus!==f.loading&&(Object(m.a)(e.variables,t.variables)||(n=!0,o=e.variables)),r=n?f.setVariables:t.isPoll?f.poll:t.isRefetch?f.refetch:f.loading;var l=[];e&&e.graphQLErrors&&(l=e.graphQLErrors),this.store[t.queryId]={document:t.document,variables:t.variables,previousVariables:o,networkError:null,graphQLErrors:l,networkStatus:r,metadata:t.metadata},"string"==typeof t.fetchMoreForQueryId&&this.store[t.fetchMoreForQueryId]&&(this.store[t.fetchMoreForQueryId].networkStatus=f.fetchMore)},t.prototype.markQueryResult=function(t,e,r){this.store&&this.store[t]&&(this.store[t].networkError=null,this.store[t].graphQLErrors=k(e.errors)?e.errors:[],this.store[t].previousVariables=null,this.store[t].networkStatus=f.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=f.ready))},t.prototype.markQueryError=function(t,e,r){this.store&&this.store[t]&&(this.store[t].networkError=e,this.store[t].networkStatus=f.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},t.prototype.markQueryResultClient=function(t,e){var r=this.store&&this.store[t];r&&(r.networkError=null,r.previousVariables=null,e&&(r.networkStatus=f.ready))},t.prototype.stopQuery=function(t){delete this.store[t]},t.prototype.reset=function(t){var e=this;Object.keys(this.store).forEach((function(r){t.indexOf(r)<0?e.stopQuery(r):e.store[r].networkStatus=f.loading}))},t}();var M=function(){function t(t){var e=t.cache,r=t.client,n=t.resolvers,o=t.fragmentMatcher;this.cache=e,r&&(this.client=r),n&&this.addResolvers(n),o&&this.setFragmentMatcher(o)}return t.prototype.addResolvers=function(t){var e=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach((function(t){e.resolvers=Object(d.mergeDeep)(e.resolvers,t)})):this.resolvers=Object(d.mergeDeep)(this.resolvers,t)},t.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(t){var e=t.document,r=t.remoteResult,n=t.context,o=t.variables,f=t.onlyRunForcedResolvers,d=void 0!==f&&f;return c(this,void 0,void 0,(function(){return h(this,(function(t){return e?[2,this.resolveDocument(e,r.data,n,o,this.fragmentMatcher,d).then((function(t){return l(l({},r),{data:t.result})}))]:[2,r]}))}))},t.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(t){return Object(d.hasDirectives)(["client"],t)&&this.resolvers?t:null},t.prototype.serverQuery=function(t){return this.resolvers?Object(d.removeClientSet
2sFromDocument)(t):t},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.cache;return l(l({},t),{cache:e,getCacheKey:function(t){if(e.config)return e.config.dataIdFromObject(t);Object(w.b)(!1,6)}})},t.prototype.addExportedVariables=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),c(this,void 0,void 0,(function(){return h(this,(function(n){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,e)||{},this.prepareContext(r),e).then((function(data){return l(l({},e),data.exportedVariables)}))]:[2,l({},e)]}))}))},t.prototype.shouldForceResolvers=function(t){var e=!1;return Object(x.b)(t,{Directive:{enter:function(t){if("client"===t.name.value&&t.arguments&&(e=t.arguments.some((function(t){return"always"===t.name.value&&"BooleanValue"===t.value.kind&&!0===t.value.value}))))return x.a}}}),e},t.prototype.buildRootValueFromCache=function(t,e){return this.cache.diff({query:Object(d.buildQueryFromSelectionSet)(t),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(t,e,r,n,o,f){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=function(){return!0}),void 0===f&&(f=!1),c(this,void 0,void 0,(function(){var c,m,y,v,_,w,x,C,S;return h(this,(function(h){var k;return c=Object(d.getMainDefinition)(t),m=Object(d.getFragmentDefinitions)(t),y=Object(d.createFragmentMap)(m),v=c.operation,_=v?(k=v).charAt(0).toUpperCase()+k.slice(1):"Query",x=(w=this).cache,C=w.client,S={fragmentMap:y,context:l(l({},r),{cache:x,client:C}),variables:n,fragmentMatcher:o,defaultOperationType:_,exportedVariables:{},onlyRunForcedResolvers:f},[2,this.resolveSelectionSet(c.selectionSet,e,S).then((function(t){return{result:t,exportedVariables:S.exportedVariables}}))]}))}))},t.prototype.resolveSelectionSet=function(t,e,r){return c(this,void 0,void 0,(function(){var n,o,l,f,m,y=this;return h(this,(function(v){return n=r.fragmentMap,o=r.context,l=r.variables,f=[e],m=function(t){return c(y,void 0,void 0,(function(){var c,m;return h(this,(function(h){return Object(d.shouldInclude)(t,l)?Object(d.isField)(t)?[2,this.resolveField(t,e,r).then((function(e){var r;void 0!==e&&f.push(((r={})[Object(d.resultKeyNameFromField)(t)]=e,r))}))]:(Object(d.isInlineFragment)(t)?c=t:(c=n[t.name.value],Object(w.b)(c,7)),c&&c.typeCondition&&(m=c.typeCondition.name.value,r.fragmentMatcher(e,m,o))?[2,this.resolveSelectionSet(c.selectionSet,e,r).then((function(t){f.push(t)}))]:[2]):[2]}))}))},[2,Promise.all(t.selections.map(m)).then((function(){return Object(d.mergeDeepArray)(f)}))]}))}))},t.prototype.resolveField=function(t,e,r){return c(this,void 0,void 0,(function(){var n,o,l,c,f,m,y,v,_,w=this;return h(this,(function(h){return n=r.variables,o=t.name.value,l=Object(d.resultKeyNameFromField)(t),c=o!==l,f=e[l]||e[o],m=Promise.resolve(f),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(t)||(y=e.__typename||r.defaultOperationType,(v=this.resolvers&&this.resolvers[y])&&(_=v[c?o:l])&&(m=Promise.resolve(_(e,Object(d.argumentsObjectFromField)(t,n),r.context,{field:t,fragmentMap:r.fragmentMap})))),[2,m.then((function(e){return void 0===e&&(e=f),t.directives&&t.directives.forEach((function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach((function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(r.exportedVariables[t.value.value]=e)}))})),t.selectionSet?null==e?e:Array.isArray(e)?w.resolveSubSelectedArray(t,e,r):t.selectionSet?w.resolveSelectionSet(t.selectionSet,e,r):void 0:e}))]}))}))},t.prototype.resolveSubSelectedArray=function(t,e,r){var n=this;return Promise.all(e.map((function(e){return null===e?null:Array.isArray(e)?n.resolveSubSelectedArray(t,e,r):t.selectionSet?n.resolveSelectionSet(t.selectionSet,e,r):void 0})))},t}();function j(t){var e=new Set,sub=null;return new S((function(r){return e.add(r),sub=sub||t.subscribe({next:function(t){e.forEach((function(e){return e.next&&e.next(t)}))},error:function(t){e.forEach((function(e){return e.error&&e.error(t)}))},complete:function(){e.forEach((function(t){return t.complete&&t.complete()}))}}),function(){e.delete(r)&&!e.size&&sub&&(sub.unsubscribe(),sub=null)}}))}var R=Object.prototype.hasOwnProperty,L=function(){function t(t){var link=t.link,e=t.queryDeduplication,r=void 0!==e&&e,n=t.store,o=t.onBroadcast,l=void 0===o?function(){}:o,c=t.ssrMode,h=void 0!==c&&c,f=t.clientAwareness,m=void 0===f?{}:f,y=t.localState,v=t.assumeImmutableResults;this.mutationStore=new F,this.queryStore=new I,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(d.canUseWeakMap?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=link,this.queryDeduplication=r,this.dataStore=n,this.onBroadcast=l,this.clientAwareness=m,this.localState=y||new M({cache:n.getCache()}),this.ssrMode=h,this.assumeImmutableResults=!!v}return t.prototype.stop=function(){var t=this;
vendor: 4,466 bytes, line 2
2this.queries.forEach((function(e,r){t.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(t){t(new w.a(8))}))},t.prototype.mutate=function(t){var e=t.mutation,r=t.variables,n=t.optimisticResponse,o=t.updateQueries,f=t.refetchQueries,m=void 0===f?[]:f,y=t.awaitRefetchQueries,v=void 0!==y&&y,_=t.update,x=t.errorPolicy,C=void 0===x?"none":x,S=t.fetchPolicy,T=t.context,E=void 0===T?{}:T;return c(this,void 0,void 0,(function(){var t,c,f,y=this;return h(this,(function(h){switch(h.label){case 0:return Object(w.b)(e,9),Object(w.b)(!S||"no-cache"===S,10),t=this.generateQueryId(),e=this.transform(e).document,this.setQuery(t,(function(){return{document:e}})),r=this.getVariables(e,r),this.transform(e).hasClientExports?[4,this.localState.addExportedVariables(e,r,E)]:[3,2];case 1:r=h.sent(),h.label=2;case 2:return c=function(){var t={};return o&&y.queries.forEach((function(e,r){var n=e.observableQuery;if(n){var l=n.queryName;l&&R.call(o,l)&&(t[r]={updater:o[l],query:y.queryStore.get(r)})}})),t},this.mutationStore.initMutation(t,e,r),this.dataStore.markMutationInit({mutationId:t,document:e,variables:r,updateQueries:c(),update:_,optimisticResponse:n}),this.broadcastQueries(),f=this,[2,new Promise((function(o,h){var y,w;f.getObservableFromLink(e,l(l({},E),{optimisticResponse:n}),r,!1).subscribe({next:function(n){Object(d.graphQLResultHasError)(n)&&"none"===C?w=new D({graphQLErrors:n.errors}):(f.mutationStore.markMutationResult(t),"no-cache"!==S&&f.dataStore.markMutationResult({mutationId:t,result:n,document:e,variables:r,updateQueries:c(),update:_}),y=n)},error:function(e){f.mutationStore.markMutationError(t,e),f.dataStore.markMutationComplete({mutationId:t,optimisticResponse:n}),f.broadcastQueries(),f.setQuery(t,(function(){return{document:null}})),h(new D({networkError:e}))},complete:function(){if(w&&f.mutationStore.markMutationError(t,w),f.dataStore.markMutationComplete({mutationId:t,optimisticResponse:n}),f.broadcastQueries(),w)h(w);else{"function"==typeof m&&(m=m(y));var e=[];k(m)&&m.forEach((function(t){if("string"==typeof t)f.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===t&&e.push(n.refetch())}));else{var r={query:t.query,variables:t.variables,fetchPolicy:"network-only"};t.context&&(r.context=t.context),e.push(f.query(r))}})),Promise.all(v?e:[]).then((function(){f.setQuery(t,(function(){return{document:null}})),"ignore"===C&&y&&Object(d.graphQLResultHasError)(y)&&delete y.errors,o(y)}))}}})}))]}}))}))},t.prototype.fetchQuery=function(t,e,r,n){return c(this,void 0,void 0,(function(){var o,c,f,m,y,v,_,w,x,C,S,k,E,O,A,P,F,I,M=this;return h(this,(function(h){switch(h.label){case 0:return o=e.metadata,c=void 0===o?null:o,f=e.fetchPolicy,m=void 0===f?"cache-first":f,y=e.context,v=void 0===y?{}:y,_=this.transform(e.query).document,w=this.getVariables(_,e.variables),this.transform(_).hasClientExports?[4,this.localState.addExportedVariables(_,w,v)]:[3,2];case 1:w=h.sent(),h.label=2;case 2:if(e=l(l({},e),{variables:w}),S=C="network-only"===m||"no-cache"===m,C||(k=this.dataStore.getCache().diff({query:_,variables:w,returnPartialData:!0,optimistic:!1}),E=k.complete,O=k.result,S=!E||"cache-and-network"===m,x=O),A=S&&"cache-only"!==m&&"standby"!==m,Object(d.hasDirectives)(["live"],_)&&(A=!0),P=this.idCounter++,F="no-cache"!==m?this.updateQueryWatch(t,_,e):void 0,this.setQuery(t,(function(){return{document:_,lastRequestId:P,invalidated:!0,cancel:F}})),this.invalidate(n),this.queryStore.initQuery({queryId:t,document:_,storePreviousVariables:A,variables:w,isPoll:r===T.poll,isRefetch:r===T.refetch,metadata:c,fetchMoreForQueryId:n}),this.broadcastQueries(),A){if(I=this.fetchRequest({requestId:P,queryId:t,document:_,options:e,fetchMoreForQueryId:n}).catch((function(e){throw e.hasOwnProperty("graphQLErrors")?e:(P>=M.getQuery(t).lastRequestId&&(M.queryStore.markQueryError(t,e,n),M.invalidate(t),M.invalidate(n),M.broadcastQueries()),new D({networkError:e}))})),"cache-and-network"!==m)return[2,I];I.catch((function(){}))}return this.queryStore.markQueryResultClient(t,!A),this.invalidate(t),this.invalidate(n),this.transform(_).hasForcedResolvers?[2,this.localState.runResolvers({document:_,remoteResult:{data:x},context:v,variables:w,onlyRunForcedResolvers:!0}).then((function(r){return M.markQueryResult(t,r,e,n),M.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:x}])}}))}))},t.prototype.markQueryResult=function(t,e,r,n){var o=r.fetchPolicy,l=r.variables,c=r.errorPolicy;
2"no-cache"===o?this.setQuery(t,(function(){return{newData:{result:e.data,complete:!0}}})):this.dataStore.markQueryResult(e,this.getQuery(t).document,l,n,"ignore"===c||"all"===c)},t.prototype.queryListenerForObserver=function(t,e,r){var n=this;function o(t,e){if(r[t])try{r[t](e)}catch(t){}}return function(r,l){if(n.invalidate(t,!1),r){var c=n.getQuery(t),h=c.observableQuery,f=c.document,d=h?h.options.fetchPolicy:e.fetchPolicy;if("standby"!==d){var m=C(r.networkStatus),y=h&&h.getLastResult(),v=!(!y||y.networkStatus===r.networkStatus),_=e.returnPartialData||!l&&r.previousVariables||v&&e.notifyOnNetworkStatusChange||"cache-only"===d||"cache-and-network"===d;if(!m||_){var w=k(r.graphQLErrors),x=h&&h.options.errorPolicy||e.errorPolicy||"none";if("none"===x&&w||r.networkError)return o("error",new D({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var data=void 0,S=void 0;if(l)"no-cache"!==d&&"network-only"!==d&&n.setQuery(t,(function(){return{newData:null}})),data=l.result,S=!l.complete;else{var T=h&&h.getLastError(),E="none"!==x&&(T&&T.graphQLErrors)!==r.graphQLErrors;if(y&&y.data&&!E)data=y.data,S=!1;else{var O=n.dataStore.getCache().diff({query:f,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});data=O.result,S=!O.complete}}var A=S&&!(e.returnPartialData||"cache-only"===d),P={data:A?y&&y.data:data,loading:m,networkStatus:r.networkStatus,stale:A};"all"===x&&w&&(P.errors=r.graphQLErrors),o("next",P)}catch(t){o("error",new D({networkError:t}))}}}}}},t.prototype.transform=function(t){var e=this.transformCache;if(!e.has(t)){var r=this.dataStore.getCache(),n=r.transformDocument(t),o=Object(d.removeConnectionDirectiveFromDocument)(r.transformForLink(n)),l=this.localState.clientQuery(n),c=this.localState.serverQuery(o),h={document:n,hasClientExports:Object(d.hasClientExports)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:l,serverQuery:c,defaultVars:Object(d.getDefaultValues)(Object(d.getOperationDefinition)(n))},f=function(t){t&&!e.has(t)&&e.set(t,h)};f(t),f(n),f(l),f(c)}return e.get(t)},t.prototype.getVariables=function(t,e){return l(l({},this.transform(t).defaultVars),e)},t.prototype.watchQuery=function(t,e){void 0===e&&(e=!0),Object(w.b)("standby"!==t.fetchPolicy,11),t.variables=this.getVariables(t.query,t.variables),void 0===t.notifyOnNetworkStatusChange&&(t.notifyOnNetworkStatusChange=!1);var r=l({},t);return new E({queryManager:this,options:r,shouldSubscribe:e})},t.prototype.query=function(t){var e=this;return Object(w.b)(t.query,12),Object(w.b)("Document"===t.query.kind,13),Object(w.b)(!t.returnPartialData,14),Object(w.b)(!t.pollInterval,15),new Promise((function(r,n){var o=e.watchQuery(t,!1);e.fetchQueryRejectFns.set("query:"+o.queryId,n),o.result().then(r,n).then((function(){return e.fetchQueryRejectFns.delete("query:"+o.queryId)}))}))},t.prototype.generateQueryId=function(){return String(this.idCounter++)},t.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(t){this.stopPollingQuery(t),this.queryStore.stopQuery(t),this.invalidate(t)},t.prototype.addQueryListener=function(t,e){this.setQuery(t,(function(t){return t.listeners.add(e),{invalidated:!1}}))},t.prototype.updateQueryWatch=function(t,e,r){var n=this,o=this.getQuery(t).cancel;o&&o();return this.dataStore.getCache().watch({query:e,variables:r.variables,optimistic:!0,previousResult:function(){var e=null,r=n.getQuery(t).observableQuery;if(r){var o=r.getLastResult();o&&(e=o.data)}return e},callback:function(e){n.setQuery(t,(function(){return{invalidated:!0,newData:e}}))}})},t.prototype.addObservableQuery=function(t,e){this.setQuery(t,(function(){return{observableQuery:e}}))},t.prototype.removeObservableQuery=function(t){var e=this.getQuery(t).cancel;this.setQuery(t,(function(){return{observableQuery:null}})),e&&e()},t.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(t){t(new w.a(16))}));var t=[];return this.queries.forEach((function(e,r){e.observableQuery&&t.push(r)})),this.queryStore.reset(t),this.mutationStore.reset(),this.dataStore.reset()},t.prototype.resetStore=function(){var t=this;return this.clearStore().then((function(){return t.reFetchObservableQueries()}))},t.prototype.reFetchObservableQueries=function(t){var e=this;void 0===t&&(t=!1);var r=[];
vendor: 4,674 bytes, line 2
2return this.queries.forEach((function(n,o){var l=n.observableQuery;if(l){var c=l.options.fetchPolicy;l.resetLastResults(),"cache-only"===c||!t&&"standby"===c||r.push(l.refetch()),e.setQuery(o,(function(){return{newData:null}})),e.invalidate(o)}})),this.broadcastQueries(),Promise.all(r)},t.prototype.observeQuery=function(t,e,r){return this.addQueryListener(t,this.queryListenerForObserver(t,e,r)),this.fetchQuery(t,e)},t.prototype.startQuery=function(t,e,r){return this.addQueryListener(t,r),this.fetchQuery(t,e).catch((function(){})),t},t.prototype.startGraphQLSubscription=function(t){var e=this,r=t.query,n=t.fetchPolicy,o=t.variables;r=this.transform(r).document,o=this.getVariables(r,o);var l=function(t){return e.getObservableFromLink(r,{},t,!1).map((function(o){if(n&&"no-cache"===n||(e.dataStore.markSubscriptionResult(o,r,t),e.broadcastQueries()),Object(d.graphQLResultHasError)(o))throw new D({graphQLErrors:o.errors});return o}))};if(this.transform(r).hasClientExports){var c=this.localState.addExportedVariables(r,o).then(l);return new S((function(t){var sub=null;return c.then((function(e){return sub=e.subscribe(t)}),t.error),function(){return sub&&sub.unsubscribe()}}))}return l(o)},t.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},t.prototype.removeQuery=function(t){this.fetchQueryRejectFns.delete("query:"+t),this.fetchQueryRejectFns.delete("fetchRequest:"+t),this.getQuery(t).subscriptions.forEach((function(t){return t.unsubscribe()})),this.queries.delete(t)},t.prototype.getCurrentQueryResult=function(t,e){void 0===e&&(e=!0);var r=t.options,n=r.variables,o=r.query,l=r.fetchPolicy,c=r.returnPartialData,h=t.getLastResult(),f=this.getQuery(t.queryId).newData;if(f&&f.complete)return{data:f.result,partial:!1};if("no-cache"===l||"network-only"===l)return{data:void 0,partial:!1};var d=this.dataStore.getCache().diff({query:o,variables:n,previousResult:h?h.data:void 0,returnPartialData:!0,optimistic:e}),m=d.result,y=d.complete;return{data:y||c?m:void 0,partial:!y}},t.prototype.getQueryWithPreviousResult=function(t){var e;if("string"==typeof t){var r=this.getQuery(t).observableQuery;Object(w.b)(r,17),e=r}else e=t;var n=e.options,o=n.variables,l=n.query;return{previousResult:this.getCurrentQueryResult(e,!1).data,variables:o,document:l}},t.prototype.broadcastQueries=function(){var t=this;this.onBroadcast(),this.queries.forEach((function(e,r){e.invalidated&&e.listeners.forEach((function(n){n&&n(t.queryStore.get(r),e.newData)}))}))},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(t,e,r,n){var o,c=this;void 0===n&&(n=this.queryDeduplication);var h=this.transform(t).serverQuery;if(h){var f=this.inFlightLinkObservables,link=this.link,m={query:h,variables:r,operationName:Object(d.getOperationName)(h)||void 0,context:this.prepareContext(l(l({},e),{forceFetch:!n}))};if(e=m.context,n){var y=f.get(h)||new Map;f.set(h,y);var _=JSON.stringify(r);if(!(o=y.get(_))){y.set(_,o=j(Object(v.execute)(link,m)));var w=function(){y.delete(_),y.size||f.delete(h),x.unsubscribe()},x=o.subscribe({next:w,error:w,complete:w})}}else o=j(Object(v.execute)(link,m))}else o=S.of({data:{}}),e=this.prepareContext(e);var C=this.transform(t).clientQuery;return C&&(o=function(t,e){return new S((function(r){var n=r.next,o=r.error,l=r.complete,c=0,h=!1,f={next:function(t){++c,new Promise((function(r){r(e(t))})).then((function(t){--c,n&&n.call(r,t),h&&f.complete()}),(function(t){--c,o&&o.call(r,t)}))},error:function(t){o&&o.call(r,t)},complete:function(){h=!0,c||l&&l.call(r)}},sub=t.subscribe(f);return function(){return sub.unsubscribe()}}))}(o,(function(t){return c.localState.runResolvers({document:C,remoteResult:t,context:e,variables:r})}))),o},t.prototype.fetchRequest=function(t){var e,r,n=this,o=t.requestId,l=t.queryId,c=t.document,h=t.options,d=t.fetchMoreForQueryId,m=h.variables,y=h.errorPolicy,v=void 0===y?"none":y,_=h.fetchPolicy;return new Promise((function(t,y){var w=n.getObservableFromLink(c,h.context,m),x="fetchRequest:"+l;n.fetchQueryRejectFns.set(x,y);var C=function(){n.fetchQueryRejectFns.delete(x),n.setQuery(l,(function(t){t.subscriptions.delete(S)}))},S=w.map((function(t){if(o>=n.getQuery(l).lastRequestId&&(n.markQueryResult(l,t,h,d),n.queryStore.markQueryResult(l,t,d),n.invalidate(l),n.invalidate(d),n.broadcastQueries()),"none"===v&&k(t.errors))return y(new D({graphQLErrors:t.errors}));if("all"===v&&(r=t.errors),d||"no-cache"===_)e=t.data;else{var f=n.dataStore.getCache().diff({variables:m,query:c,optimistic:!1,returnPartialData:!0}
2),w=f.result;(f.complete||h.returnPartialData)&&(e=w)}})).subscribe({error:function(t){C(),y(t)},complete:function(){C(),t({data:e,errors:r,loading:!1,networkStatus:f.ready,stale:!1})}});n.setQuery(l,(function(t){t.subscriptions.add(S)}))}))},t.prototype.getQuery=function(t){return this.queries.get(t)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},t.prototype.setQuery=function(t,e){var r=this.getQuery(t),n=l(l({},r),e(r));this.queries.set(t,n)},t.prototype.invalidate=function(t,e){void 0===e&&(e=!0),t&&this.setQuery(t,(function(){return{invalidated:e}}))},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.localState.prepareContext(t);return l(l({},e),{clientAwareness:this.clientAwareness})},t.prototype.checkInFlight=function(t){var e=this.queryStore.get(t);return e&&e.networkStatus!==f.ready&&e.networkStatus!==f.error},t.prototype.startPollingQuery=function(t,e,r){var n=this,o=t.pollInterval;if(Object(w.b)(o,18),!this.ssrMode){var c=this.pollingInfoByQueryId.get(e);c||this.pollingInfoByQueryId.set(e,c={}),c.interval=o,c.options=l(l({},t),{fetchPolicy:"network-only"});var h=function(){var t=n.pollingInfoByQueryId.get(e);t&&(n.checkInFlight(e)?f():n.fetchQuery(e,t.options,T.poll).then(f,f))},f=function(){var t=n.pollingInfoByQueryId.get(e);t&&(clearTimeout(t.timeout),t.timeout=setTimeout(h,t.interval))};r&&this.addQueryListener(e,r),f()}return e},t.prototype.stopPollingQuery=function(t){this.pollingInfoByQueryId.delete(t)},t}(),N=function(){function t(t){this.cache=t}return t.prototype.getCache=function(){return this.cache},t.prototype.markQueryResult=function(t,e,r,n,o){void 0===o&&(o=!1);var l=!Object(d.graphQLResultHasError)(t);o&&Object(d.graphQLResultHasError)(t)&&t.data&&(l=!0),!n&&l&&this.cache.write({result:t.data,dataId:"ROOT_QUERY",query:e,variables:r})},t.prototype.markSubscriptionResult=function(t,e,r){Object(d.graphQLResultHasError)(t)||this.cache.write({result:t.data,dataId:"ROOT_SUBSCRIPTION",query:e,variables:r})},t.prototype.markMutationInit=function(t){var e,r=this;t.optimisticResponse&&(e="function"==typeof t.optimisticResponse?t.optimisticResponse(t.variables):t.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var o=r.cache;r.cache=n;try{r.markMutationResult({mutationId:t.mutationId,result:{data:e},document:t.document,variables:t.variables,updateQueries:t.updateQueries,update:t.update})}finally{r.cache=o}}),t.mutationId))},t.prototype.markMutationResult=function(t){var e=this;if(!Object(d.graphQLResultHasError)(t.result)){var r=[{result:t.result.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}],n=t.updateQueries;n&&Object.keys(n).forEach((function(o){var l=n[o],c=l.query,h=l.updater,f=e.cache.diff({query:c.document,variables:c.variables,returnPartialData:!0,optimistic:!1}),m=f.result;if(f.complete){var y=Object(d.tryFunctionOrLogError)((function(){return h(m,{mutationResult:t.result,queryName:Object(d.getOperationName)(c.document)||void 0,queryVariables:c.variables})}));y&&r.push({result:y,dataId:"ROOT_QUERY",query:c.document,variables:c.variables})}})),this.cache.performTransaction((function(e){r.forEach((function(t){return e.write(t)}));var n=t.update;n&&Object(d.tryFunctionOrLogError)((function(){return n(e,t.result)}))}))}},t.prototype.markMutationComplete=function(t){var e=t.mutationId;t.optimisticResponse&&this.cache.removeOptimistic(e)},t.prototype.markUpdateQueryResult=function(t,e,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:e,query:t})},t.prototype.reset=function(){return this.cache.reset()},t}(),B=function(){function t(t){var e=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=t.cache,n=t.ssrMode,o=void 0!==n&&n,l=t.ssrForceFetchDelay,c=void 0===l?0:l,h=t.connectToDevTools,f=t.queryDeduplication,d=void 0===f||f,m=t.defaultOptions,y=t.assumeImmutableResults,_=void 0!==y&&y,x=t.resolvers,C=t.typeDefs,S=t.fragmentMatcher,k=t.name,T=t.version,link=t.link;if(!link&&x&&(link=v.ApolloLink.empty()),!link||!r)throw new w.a(4);this.link=link,this.cache=r,this.store=new N(r),this.disableNetworkFetches=o||c>0,this.queryDeduplication=d,this.defaultOptions=m||{},this.typeDefs=C,c&&setTimeout((function(){return e.disableNetworkFetches=!1}),c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==h&&(h&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new M({cache:r,client:this,resolvers:x,fragmentMatcher:S}),this.queryManager=new L({link:this.link,store:this.store,queryDeduplication:d,ssrMode:o,clientAwareness:{name:k,version:T},localState:this.localState,assumeImmutableResults:_,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.cache.extract(!0)})}})}return t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=l(l({},this.defaultOptions.watchQuery),t)),!this.disableNetworkFetches||"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t=l(l({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},t.prototype.query=function(t){return this.defaultOptions.query&&(t=l(l({},this.defaultOptions.query),t)),Object(w.b)("cache-and-network"!==t.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=l(l({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},t.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=l(l({},this.defaultOptions.mutate),t)),this.queryManager.mutate(t)},t.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.cache.readQuery(t,e)},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.cache.readFragment(t,e)},t.prototype.writeQuery=function(t){var e=this.cache.writeQuery(t);return this.queryManager.broadcastQueries(),e},t.prototype.writeFragment=function(t){var e=this.cache.writeFragment(t);return this.queryManager.broadcastQueries(),e},t.prototype.writeData=function(t){var e=this.cache.writeData(t);return this.queryManager.broadcastQueries(),e},t.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},t.prototype.__requestRaw=function(t){return Object(v.execute)(this.link,t)},t.prototype.initQueryManager=function(){return this.queryManager},t.prototype.resetStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.resetStoreCallbacks.map((function(t){return t()})))})).then((function(){return t.reFetchObservableQueries()}))},t.prototype.clearStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.clearStoreCallbacks.map((function(t){return t()})))}))},t.prototype.onResetStore=function(t){var e=this;return this.resetStoreCallbacks.push(t),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.onClearStore=function(t){var e=this;return this.clearStoreCallbacks.push(t),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},t.prototype.extract=function(t){return this.cache.extract(t)},t.prototype.restore=function(t){return this.cache.restore(t)},t.prototype.addResolvers=function(t){this.localState.addResolvers(t)},t.prototype.setResolvers=function(t){this.localState.setResolvers(t)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},t}(),z=r(480),U=r(105),V=r(148),W=r(234),H=r.n(W),Y=function(t,b){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},Y(t,b)};var X=function(t){function e(e){var r=t.call(this)||this;return e instanceof V.SubscriptionClient?r.subscriptionClient=e:r.subscriptionClient=new V.SubscriptionClient(e.uri,e.options,e.webSocketImpl),r}return function(t,b){function e(){this.constructor=t}Y(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}(e,t),e.prototype.request=function(t){return this.subscriptionClient.request(t)},e}(v.ApolloLink),G=r(145),Q=r(873),$={generateHash:function(t){return Q().update(Object(G.print)(t)).digest("hex")},disable:function(t){var e=t.graphQLErrors,r=t.operation;if(e&&e.some((function(t){return"PersistedQueryNotSupported"===t.message})))return!0;var n=r.getContext().response;return!(!n||!n.status||400!==n.status&&500!==n.status)},useGETForHashedQueries:!1};function K(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation}var J=Object.prototype.hasOwnProperty,Z="__createPersistedQueryLink_hashes",tt="function"==typeof Symbol?Symbol.for(Z):Z,et=0,it=function(t){void 0===t&&(t={});var e=Object.assign({},$,t),r=e.generateHash,n=e.disable,o=e.useGETForHashedQueries,l=!0,c="forLink"+et++;function h(t){if(!t||"object"!=typeof t)return r(t);J.call(t,tt)||Object.defineProperty(t,tt,{value:Object.create(null),enumerable:!1});var e=t[tt];return J.call(e,c)?e[c]:e[c]=r(t)}return new v.ApolloLink((function(t,e){if(!e)throw new Error("PersistedQueryLink cannot be the last link in the chain.");var r,c=t.query;if(l)try{t.extensions.persistedQuery={version:1,sha256Hash:h(c)}}catch(t){r=t}return new y.a((function(c){if(!r){var h,f,d=!1,m=!1,y=function(r,o){var c=r.response,y=r.networkError;if(!d&&(c&&c.errors||y)&&(d=!0,l=!n({response:c,networkError:y,operation:t,graphQLErrors:c&&c.errors||void 0}),c&&c.errors&&c.errors.some((function(t){return"PersistedQueryNotFound"===t.message}))||!l))return h&&h.unsubscribe(),t.setContext({http:{includeQuery:!0,includeExtensions:l}}),m&&t.setContext({fetchOptions:f}),void(h=e(t).subscribe(v));o()},v={next:function(t){y({response:t},(function(){return c.next(t)}))},error:function(t){y({networkError:t},(function(){return c.error(t)}))},complete:c.complete.bind(c)};return t.setContext({http:{includeQuery:!l,includeExtensions:l}}),o&&l&&function(t){return!t.query.definitions.some(K)}(t)&&(t.setContext((function(t){var e=t.fetchOptions,r=void 0===e?{}:e;return f=r,{fetchOptions:Object.assign({},r,{method:"GET"})}})),m=!0),h=e(t).subscribe(v),function(){h&&h.unsubscribe()}}c.error(r)}))}))};function nt(t){return new v.ApolloLink((function(e,r){var n=function(s,t){var e={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&t.indexOf(p)<0&&(e[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)t.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(e[p[i]]=s[p[i]])}return e}(e,[]);return new y.a((function(o){var l;return Promise.resolve(n).then((function(r){return t(r,e.getContext())})).then(e.setContext).then((function(){l=r(e).subscribe({next:o.next.bind(o),error:o.error.bind(o),c
2omplete:o.complete.bind(o)})})).catch(o.error.bind(o)),function(){l&&l.unsubscribe()}}))}))}var ot=r(479),st={test:function(t){return"client"===t.name.value},remove:!0},at=new Map;var lt=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])};return function(e,b){function r(){this.constructor=e}t(e,b),e.prototype=null===b?Object.create(b):(r.prototype=b.prototype,new r)}}(),ut=ot.graphql,ct=function(t){void 0===t&&(t={resolvers:{},defaults:{}});var e=t.defaults,r=t.cache,n=t.typeDefs,o=t.fragmentMatcher;return r&&e&&r.writeData({data:e}),new(function(l){function c(){return null!==l&&l.apply(this,arguments)||this}return lt(c,l),c.prototype.writeDefaults=function(){r&&e&&r.writeData({data:e})},c.prototype.request=function(r,l){if(void 0===l&&(l=function(){return y.a.of({data:{}})}),n){var c=function(t){return(Array.isArray(t)?t:[t]).map((function(t){return"string"==typeof t?t:Object(G.print)(t)})).map((function(t){return t.trim()})).join("\n")}(n);r.setContext((function(t){var e=t.schemas;return{schemas:(void 0===e?[]:e).concat([{definition:c,directives:"directive @client on FIELD"}])}}))}if(!Object(d.hasDirectives)(["client"],r.query))return l(r);var h,f="function"==typeof t.resolvers?t.resolvers():t.resolvers,m=function(t){var e=at.get(t);if(e)return e;Object(d.checkDocument)(t);var r=Object(d.removeDirectivesFromDocument)([st],t);return at.set(t,r),r}(r.query),v=r.query,_=(h=(Object(d.getMainDefinition)(v)||{}).operation).charAt(0).toUpperCase()+h.slice(1)||"Query",w=function(t,r,n,o,l){void 0===r&&(r={});var c=l.resultKey,h=r[c],d=r[t],m=c!==t;if(void 0!==h||void 0!==d)return h||d;var y=f[r.__typename||_];if(y){var v=y[t];if(v)return v(r,n,o,l)}return(m?h:d)||(e||{})[t]};m&&(r.query=m);var x=m&&l?l(r):y.a.of({data:{}});return new y.a((function(t){var e=!1,n=!1;x.subscribe({next:function(l){var data=l.data,c=l.errors,h=t.error.bind(t),f=r.getContext();n=!0,ut(w,v,data,f,r.variables,{fragmentMatcher:o}).then((function(r){t.next({data:r,errors:c}),e&&t.complete(),n=!1})).catch(h)},error:t.error.bind(t),complete:function(){n||t.complete(),e=!0}})}))},c}(v.ApolloLink))};function ht({clientId:t="defaultClient",httpEndpoint:e,wsEndpoint:r=null,tokenName:n="apollo-token",persisting:o=!1,ssr:l=!1,websocketsOnly:c=!1,link:link=null,preAuthLinks:h=[],defaultHttpLink:f=!0,httpLinkOptions:m={},cache:y=null,inMemoryCacheOptions:_={},apollo:w={},clientState:x=null,getAuth:C=pt,typeDefs:S,resolvers:k,onCacheInit:T}){let D,E,O;const A=c&&!l&&r;if(y||(y=new U.a(_)),!A){const t=Object(z.createUploadLink)({uri:e,...m});link?f&&(link=Object(v.from)([link,t])):link=t,E=nt((async(t,{headers:e})=>{const r=await C(n);return{headers:{...e,...r?{Authorization:r}:{}}}})),link=E.concat(link),h.length&&(link=Object(v.from)(h).concat(E))}if(!l){if("undefined"!=typeof window){const e=window.__APOLLO_STATE__;e&&e[t]&&y.restore(e[t])}if(!A){let t={};"object"==typeof o&&null!=o&&(t=o,o=!0),!0===o&&(link=it(t).concat(link))}if(r){D=new V.SubscriptionClient(r,{reconnect:!0,connectionParams:()=>{const t=C(n);return t?{Authorization:t,headers:{Authorization:t}}:{}}});const t=new X(D);link=A?link?link.concat(t):t:Object(v.split)((({query:t})=>{const{kind:e,operation:r}=Object(d.getMainDefinition)(t);return"OperationDefinition"===e&&"subscription"===r}),t,link)}}x&&(console.warn("clientState is deprecated, see https://vue-cli-plugin-apollo.netlify.com/guide/client-state.html"),O=ct({cache:y,...x}),link=Object(v.from)([O,link]));const P=new B({link:link,cache:y,...l?{ssrMode:!0}:{ssrForceFetchDelay:100,connectToDevTools:!1},typeDefs:S,resolvers:k,...w});return O&&P.onResetStore(O.writeDefaults),T&&(T(y),P.onResetStore((()=>T(y)))),{apolloClient:P,wsClient:D,stateLink:O}}function ft(t){const e=Object.assign({},t.operations);t.close(!0),t.connect(),Object.keys(e).forEach((r=>{t.sendMessage(r,H.a.GQL_START,e[r].options)}))}function pt(t){if("undefined"!=typeof window){const e=window.localStorage.getItem(t);return e?`Bearer ${e}`:""}}},2:function(t,e,r){"use strict";
vendor: 4,291 bytes, line 2
2t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=function(t,e){var content=t[1]||"",r=t[3];if(!r)return content;if(e&&"function"==typeof btoa){var n=(l=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(data," */")),o=r.sources.map((function(source){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([n]).join("\n")}var l,c,data;return[content].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var h=[].concat(t[c]);n&&o[h[0]]||(r&&(h[2]?h[2]="".concat(r," and ").concat(h[2]):h[2]=r),e.push(h))}},e}},216:function(t,e,r){(e=t.exports=r(308)).Stream=e,e.Readable=e,e.Writable=r(218),e.Duplex=r(104),e.Transform=r(312),e.PassThrough=r(567)},217:function(t,e,r){var n=r(89),o=n.Buffer;function l(t,e){for(var r in t)e[r]=t[r]}function c(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(l(n,e),e.Buffer=c),l(o,c),c.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},c.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},c.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},c.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},218:function(t,e,r){"use strict";(function(e){var n=r(176);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var o=n.callback;e.pendingcb--,o(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=C;var l,c=n.nextTick;C.WritableState=x;var h=Object.create(r(138));h.inherits=r(103);var f={deprecate:r(565)},d=r(309),m=r(217).Buffer,y=e.Uint8Array||function(){};var v,_=r(310);function w(){}function x(t,e){l=l||r(104),t=t||{};var h=e instanceof l;this.objectMode=!!t.objectMode,h&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var f=t.highWaterMark,d=t.writableHighWaterMark,m=this.objectMode?16:16384;this.highWaterMark=f||0===f?f:h&&(d||0===d)?d:m,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var y=!1===t.decodeStrings;this.decodeStrings=!y,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,o=r.sync,l=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,o,l){--e.pendingcb,r?(n.nextTick(l,o),n.nextTick(O,t,e),t._writableState.errorEmitted=!0,t.emit("error",o)):(l(o),t._writableState.errorEmitted=!0,t.emit("error",o),O(t,e))}(t,r,o,e,l);else{var h=D(r);h||r.corked||r.bufferProcessing||!r.bufferedRequest||T(t,r),o?c(k,t,r,h,l):k(t,r,h,l)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function C(t){if(l=l||r(104),!(v.call(C,this)||this instanceof l))return new C(t);this._writableState=new x(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),d.call(this)}function S(t,e,r,n,o,l,c){e.writelen=n,e.writecb=c,e.writing=!0,e.sync=!0,r?t._writev(o,e.onwrite):t._write(o,l,e.onwrite),e.sync=!1}function k(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),O(t,e)}function T(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;
vendor: 7,230 bytes, line 2
2if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,l=new Array(n),c=e.corkedRequestsFree;c.entry=r;for(var h=0,f=!0;r;)l[h]=r,r.isBuf||(f=!1),r=r.next,h+=1;l.allBuffers=f,S(t,e,!0,e.length,l,"",c.finish),e.pendingcb++,e.lastBufferedRequest=null,c.next?(e.corkedRequestsFree=c.next,c.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,m=r.encoding,y=r.callback;if(S(t,e,!1,e.objectMode?1:d.length,d,m,y),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function D(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),O(t,e)}))}function O(t,e){var r=D(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,n.nextTick(E,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}h.inherits(C,d),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(x.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(v=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(object){return!!v.call(this,object)||this===C&&(object&&object._writableState instanceof x)}})):v=function(object){return object instanceof this},C.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},C.prototype.write=function(t,e,r){var o,l=this._writableState,c=!1,h=!l.objectMode&&(o=t,m.isBuffer(o)||o instanceof y);return h&&!m.isBuffer(t)&&(t=function(t){return m.from(t)}(t)),"function"==typeof e&&(r=e,e=null),h?e="buffer":e||(e=l.defaultEncoding),"function"!=typeof r&&(r=w),l.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),n.nextTick(e,r)}(this,r):(h||function(t,e,r,o){var l=!0,c=!1;return null===r?c=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c&&(t.emit("error",c),n.nextTick(o,c),l=!1),l}(this,l,t,r))&&(l.pendingcb++,c=function(t,e,r,n,o,l){if(!r){var c=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=m.from(e,r));return e}(e,n,o);n!==c&&(r=!0,o="buffer",n=c)}var h=e.objectMode?1:n.length;e.length+=h;var f=e.length<e.highWaterMark;f||(e.needDrain=!0);if(e.writing||e.corked){var d=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:l,next:null},d?d.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else S(t,e,!1,h,n,o,l);return f}(this,l,h,t,e,r)),c},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||T(this,t))},C.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},C.prototype._writev=null,C.prototype.end=function(t,e,r){var o=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||o.finished||function(t,e,r){e.ending=!0,O(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,o,r)},Object.defineProperty(C.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),C.prototype.destroy=_.destroy,C.prototype._undestroy=_.undestroy,C.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(48))},221:function(t,e,r){"use strict";var n=r(222),o=r(103);function l(t,i){return 55296==(64512&t.charCodeAt(i))&&(!(i<0||i+1>=t.length)&&56320==(64512&t.charCodeAt(i+1)))}function c(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function h(t){return 1===t.length?"0"+t:t}function f(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var p=0,i=0;i<t.length;i++){var n=t.charCodeAt(i);n<128?r[p++]=n:n<2048?(r[p++]=n>>6|192,r[p++]=63&n|128):l(t,i)?(n=65536+((1023&n)<<10)+(1023&t.charCodeAt(++i)),r[p++]=n>>18|240,r[p++]=n>>12&63|128,r[p++]=n>>6&63|128,r[p++]=63&n|128):(r[p++]=n>>12|224,r[p++]=n>>6&63|128,r[p++]=63&n|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},e.toHex=function(t){for(var e="",i=0;i<t.length;i++)e+=h(t[i].toString(16));return e},e.htonl=c,e.toHex32=function(t,e){for(var r="",i=0;i<t.length;i++){var n=t[i];"little"===e&&(n=c(n)),r+=f(n.toString(16))}return r},e.zero2=h,e.zero8=f,e.join32=function(t,e,r,o){var l=r-e;n(l%4==0);for(var c=new Array(l/4),i=0,h=e;i<c.length;i++,h+=4){var f;f="big"===o?t[h]<<24|t[h+1]<<16|t[h+2]<<8|t[h+3]:t[h+3]<<24|t[h+2]<<16|t[h+1]<<8|t[h],c[i]=f>>>0}return c},e.split32=function(t,e){for(var r=new Array(4*t.length),i=0,n=0;i<t.length;i++,n+=4){var o=t[i];"big"===e?(r[n]=o>>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},e.rotr32=function(t,b){return t>>>b|t<<32-b},e.rotl32=function(t,b){return t<<b|t>>>32-b},e.sum32=function(a,b){return a+b>>>0},e.sum32_3=function(a,b,t){return a+b+t>>>0},e.sum32_4=function(a,b,t,e){return a+b+t+e>>>0},e.sum32_5=function(a,b,t,e,r){return a+b+t+e+r>>>0},e.sum64=function(t,e,r,n){var o=t[e],l=n+t[e+1]>>>0,c=(l<n?1:0)+r+o;t[e]=c>>>0,t[e+1]=l},e.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,o,l,c,dl){var h=0,f=e;return h+=(f=f+n>>>0)<e?1:0,h+=(f=f+l>>>0)<l?1:0,t+r+o+c+(h+=(f=f+dl>>>0)<dl?1:0)>>>0},e.sum64_4_lo=function(t,e,r,n,o,l,c,dl){return e+n+l+dl>>>0},e.sum64_5_hi=function(t,e,r,n,o,l,c,dl,h,f){var d=0,m=e;return d+=(m=m+n>>>0)<e?1:0,d+=(m=m+l>>>0)<l?1:0,d+=(m=m+dl>>>0)<dl?1:0,t+r+o+c+h+(d+=(m=m+f>>>0)<f?1:0)>>>0},e.sum64_5_lo=function(t,e,r,n,o,l,c,dl,h,f){return e+n+l+dl+f>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>
2>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},222:function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},223:function(t,e,r){"use strict";t.exports=function(t){var e=t.uri,r=t.name,n=t.type;this.uri=e,this.name=r,this.type=n}},224:function(t,e,r){"use strict";var n=r(223);t.exports=function(t){return"undefined"!=typeof File&&t instanceof File||"undefined"!=typeof Blob&&t instanceof Blob||t instanceof n}},23:function(t,e,r){"use strict";r.d(e,"a",(function(){return nr}));var n=r(36);r(215),r(20),r(12),r(25),r(22),r(69),r(50),r(62),r(51),r(102),r(44),r(30);function o(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l,c,h,f,d,m,y,v,_,w,x,C,S=function(){return l||"undefined"!=typeof window&&(l=window.gsap)&&l.registerPlugin&&l},k=1,T=[],D=[],E=[],O=Date.now,A=function(t,e){return e},P=function(element,t){return~E.indexOf(element)&&E[E.indexOf(element)+1][t]},F=function(t){return!!~w.indexOf(t)},I=function(element,t,e,r,n){return element.addEventListener(t,e,{passive:!r,capture:!!n})},M=function(element,t,e,r){return element.removeEventListener(t,e,!!r)},j="scrollLeft",R="scrollTop",L=function(){return x&&x.isPressed||D.cache++},N=function(t){return function(e){return e||0===e?(k&&(h.history.scrollRestoration="manual"),t(e),t.v=e,t.c=D.cache,x&&x.isPressed&&A("ss",e)):(D.cache!==t.c||A("ref"))&&(t.c=D.cache,t.v=t()),t.v}},B={s:j,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:N((function(t){return arguments.length?h.scrollTo(t,z.sc()):h.pageXOffset||f.scrollLeft||d.scrollLeft||m.scrollLeft||0}))},z={s:R,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:B,sc:N((function(t){return arguments.length?h.scrollTo(B.sc(),t):h.pageYOffset||f.scrollTop||d.scrollTop||m.scrollTop||0}))},U=function(t){return l.utils.toArray(t)[0]||("string"==typeof t&&!1!==l.config().nullTargetWarn?console.warn("Element not found:",t):null)},V=function(element,t){var s=t.s,e=t.sc,i=D.indexOf(element),r=e===z.sc?1:2;return!~i&&(i=D.push(element)-1),D[i+r]||(D[i+r]=P(element,s)||(F(element)?e:N((function(t){return arguments.length?element[s]=t:element[s]}))))},W=function(t,e,r){var n=t,o=t,l=O(),c=l,h=e||50,f=Math.max(500,3*h),d=function(t,e){var f=O();e||f-l>h?(o=n,n=t,c=l,l=f):r?n+=t:n=o+(t-o)/(f-c)*(l-c)};return{update:d,reset:function(){o=n=r?0:n,c=l=0},getVelocity:function(t){var e=c,h=o,m=O();return(t||0===t)&&t!==n&&d(t),l===c||m-c>f?0:(n+(r?h:-h))/((r?m:l)-e)*1e3}}},H=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Y=function(a){var t=Math.max.apply(Math,a),e=Math.min.apply(Math,a);return Math.abs(t)>=Math.abs(e)?t:e},X=function(){var t,data,e,r;(_=l.core.globals().ScrollTrigger)&&_.core&&(t=_.core,data=t.bridge||{},e=t._scrollers,r=t._proxies,e.push.apply(e,D),r.push.apply(r,E),D=e,E=r,A=function(t,e){return data[t](e)})},G=function(t){return(l=t||S())&&"undefined"!=typeof document&&document.body&&(h=window,f=document,d=f.documentElement,m=f.body,w=[h,f,d,m],l.utils.clamp,v="onpointerenter"in m?"pointer":"mouse",y=Q.isTouch=h.matchMedia&&h.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in h||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,C=Q.eventTypes=("ontouchstart"in d?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in d?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return k=0}),500),X(),c=1),c};B.op=z,D.cache=0;var Q=function(){function t(t){this.init(t)}var e,r,n;return t.prototype.init=function(t){c||G(l)||console.warn("Please gsap.registerPlugin(Observer)"),_||X();var e=t.tolerance,r=t.dragMinimum,n=t.type,o=t.target,w=t.lineHeight,S=t.debounce,k=t.preventDefault,D=t.onStop,E=t.onStopDelay,A=t.ignore,P=t.wheelSpeed,j=t.event,R=t.onDragStart,N=t.onDragEnd,Q=t.onDrag,$=t.onPress,K=t.onRelease,J=t.onRight,Z=t.onLeft,tt=t.onUp,et=t.onDown,it=t.onChangeX,nt=t.onChangeY,ot=t.onChange,st=t.onToggleX,at=t.onToggleY,lt=t.onHover,ut=t.onHoverEnd,ct=t.onMove,ht=t.ignoreCheck,ft=t.isNormalizer,pt=t.onGestureStart,gt=t.onGestureEnd,mt=t.onWheel,yt=t.onEnable,vt=t.onDisable,bt=t.onClick,_t=t.scrollSpeed,wt=t.capture,xt=t.allowClicks,Ct=t.lockAxis,St=t.onLockAxis;this.target=o=U(o)||d,this.vars=t,A&&(A=l.utils.toArray(A)),e=e||0,r=r||0,P=P||1,_t=_t||1,n=n||"wheel,touch,pointer",S=!1!==S,w||(w=parseFloat(h.getComputedStyle(m).lineHeight)||22);var kt,Tt,Dt,Et,Ot,At,Pt,Ft=this,It=0,Mt=0,jt=V(o,B),Rt=V(o,z),Lt=jt(),Nt=Rt(),Bt=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===C[0],zt=F(o),Ut=o.ownerDocument||f,Vt=[0,0,0],qt=[0,0,0],Wt=0,Ht=function(){return Wt=O()},Yt=function(t,e){return(Ft.event=t)&&A&&~A.indexOf(t.target)||e&&Bt&&"touch"!==t.pointerType||ht&&ht(t,e)},Xt=function(){var t=Ft.deltaX=Y(Vt),r=Ft.deltaY=Y(qt),n=Math.abs(t)>=e,o=Math.abs(r)>=e;ot&&(n||o)&&ot(Ft,t,r,Vt,qt),n&&(J&&Ft.deltaX>0&&J(Ft),Z&&Ft.deltaX<0&&Z(Ft),it&&it(Ft),st&&Ft.deltaX<0!=It<0&&st(Ft),It=Ft.deltaX,Vt[0]=Vt[1]=Vt[2]=0),o&&(et&&Ft.deltaY>0&&et(Ft),tt&&Ft.deltaY<0&&tt(Ft),nt&&nt(Ft),at&&Ft.deltaY<0!=Mt<0&&at(Ft),Mt=Ft.deltaY,qt[0]=qt[1]=qt[2]=0),(Et||Dt)&&(ct&&ct(Ft),St&&At&&St(Ft),Dt&&(Q(Ft),Dt=!1),Et=At=!1),Ot&&(mt(Ft),Ot=!1),kt=0},Gt=function(t,e,r){Vt[r]+=t,qt[r]+=e,Ft._vx.update(t),Ft._vy.update(e),S?kt||(kt=requestAnimationFrame(Xt)):Xt()},Qt=function(t,e){"y"!==Pt&&(Vt[2]+=t,Ft._vx.update(t,!0)),"x"!==Pt&&(qt[2]+=e,Ft._vy.update(e,!0)),Ct&&!Pt&&(Ft.axis=Pt=Math.abs(t)>Math.abs(e)?"x":"y",At=!0),S?kt||(kt=requestAnimationFrame(Xt)):Xt()}
2,$t=function(t){if(!Yt(t,1)){var e=(t=H(t,k)).clientX,n=t.clientY,o=e-Ft.x,l=n-Ft.y,c=Ft.isDragging;Ft.x=e,Ft.y=n,(c||Math.abs(Ft.startX-e)>=r||Math.abs(Ft.startY-n)>=r)&&(Q&&(Dt=!0),c||(Ft.isDragging=!0),Qt(o,l),c||R&&R(Ft))}},Kt=Ft.onPress=function(t){Yt(t,1)||(Ft.axis=Pt=null,Tt.pause(),Ft.isPressed=!0,t=H(t),It=Mt=0,Ft.startX=Ft.x=t.clientX,Ft.startY=Ft.y=t.clientY,Ft._vx.reset(),Ft._vy.reset(),I(ft?o:Ut,C[1],$t,k,wt),Ft.deltaX=Ft.deltaY=0,$&&$(Ft))},Jt=function(t){if(!Yt(t,1)){M(ft?o:Ut,C[1],$t);var e=Ft.isDragging&&(Math.abs(Ft.x-Ft.startX)>3||Math.abs(Ft.y-Ft.startY)>3),r=H(t);e||(Ft._vx.reset(),Ft._vy.reset(),k&&xt&&l.delayedCall(.08,(function(){if(O()-Wt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Ut.createEvent){var e=Ut.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,h,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),Ft.isDragging=Ft.isGesturing=Ft.isPressed=!1,D&&!ft&&Tt.restart(!0),N&&e&&N(Ft),K&&K(Ft,e)}},Zt=function(t){return t.touches&&t.touches.length>1&&(Ft.isGesturing=!0)&&pt(t,Ft.isDragging)},te=function(){return(Ft.isGesturing=!1)||gt(Ft)},ee=function(t){if(!Yt(t)){var e=jt(),r=Rt();Gt((e-Lt)*_t,(r-Nt)*_t,1),Lt=e,Nt=r,D&&Tt.restart(!0)}},re=function(t){if(!Yt(t)){t=H(t,k),mt&&(Ot=!0);var e=(1===t.deltaMode?w:2===t.deltaMode?h.innerHeight:1)*P;Gt(t.deltaX*e,t.deltaY*e,0),D&&!ft&&Tt.restart(!0)}},ie=function(t){if(!Yt(t)){var e=t.clientX,r=t.clientY,n=e-Ft.x,o=r-Ft.y;Ft.x=e,Ft.y=r,Et=!0,(n||o)&&Qt(n,o)}},ne=function(t){Ft.event=t,lt(Ft)},oe=function(t){Ft.event=t,ut(Ft)},se=function(t){return Yt(t)||H(t,k)&&bt(Ft)};Tt=Ft._dc=l.delayedCall(E||.25,(function(){Ft._vx.reset(),Ft._vy.reset(),Tt.pause(),D&&D(Ft)})).pause(),Ft.deltaX=Ft.deltaY=0,Ft._vx=W(0,50,!0),Ft._vy=W(0,50,!0),Ft.scrollX=jt,Ft.scrollY=Rt,Ft.isDragging=Ft.isGesturing=Ft.isPressed=!1,Ft.enable=function(t){return Ft.
vendor: 5,809 bytes, line 2
2isEnabled||(I(zt?Ut:o,"scroll",L),n.indexOf("scroll")>=0&&I(zt?Ut:o,"scroll",ee,k,wt),n.indexOf("wheel")>=0&&I(o,"wheel",re,k,wt),(n.indexOf("touch")>=0&&y||n.indexOf("pointer")>=0)&&(I(o,C[0],Kt,k,wt),I(Ut,C[2],Jt),I(Ut,C[3],Jt),xt&&I(o,"click",Ht,!1,!0),bt&&I(o,"click",se),pt&&I(Ut,"gesturestart",Zt),gt&&I(Ut,"gestureend",te),lt&&I(o,v+"enter",ne),ut&&I(o,v+"leave",oe),ct&&I(o,v+"move",ie)),Ft.isEnabled=!0,t&&t.type&&Kt(t),yt&&yt(Ft)),Ft},Ft.disable=function(){Ft.isEnabled&&(T.filter((function(t){return t!==Ft&&F(t.target)})).length||M(zt?Ut:o,"scroll",L),Ft.isPressed&&(Ft._vx.reset(),Ft._vy.reset(),M(ft?o:Ut,C[1],$t,wt)),M(zt?Ut:o,"scroll",ee,wt),M(o,"wheel",re,wt),M(o,C[0],Kt,wt),M(Ut,C[2],Jt),M(Ut,C[3],Jt),M(o,"click",Ht,!0),M(o,"click",se),M(Ut,"gesturestart",Zt),M(Ut,"gestureend",te),M(o,v+"enter",ne),M(o,v+"leave",oe),M(o,v+"move",ie),Ft.isEnabled=Ft.isPressed=Ft.isDragging=!1,vt&&vt(Ft))},Ft.kill=function(){Ft.disable();var i=T.indexOf(Ft);i>=0&&T.splice(i,1),x===Ft&&(x=0)},T.push(Ft),ft&&F(o)&&(x=Ft),Ft.enable(j)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&o(e.prototype,r),n&&o(e,n),t}();Q.version="3.10.4",Q.create=function(t){return new Q(t)},Q.register=G,Q.getAll=function(){return T.slice()},Q.getById=function(t){return T.filter((function(e){return e.vars.id===t}))[0]},S()&&l.registerPlugin(Q);var $,K,J,Z,tt,et,it,nt,ot,st,at,lt,ut,ct,ht,ft,pt,gt,mt,yt,vt,bt,_t,wt,xt,Ct,St,kt,Tt,Dt,Et,Ot,At=1,Pt=Date.now,Ft=Pt(),It=0,Mt=0,jt=function(){return ct=1},Rt=function(){return ct=0},Lt=function(t){return t},Nt=function(t){return Math.round(1e5*t)/1e5||0},Bt=function(){return"undefined"!=typeof window},zt=function(){return $||Bt()&&($=window.gsap)&&$.registerPlugin&&$},Ut=function(t){return!!~it.indexOf(t)},Vt=function(element){return P(element,"getBoundingClientRect")||(Ut(element)?function(){return Je.width=J.innerWidth,Je.height=J.innerHeight,Je}:function(){return he(element)})},qt=function(element,t){var s=t.s,e=t.d2,r=t.d,a=t.a;return(s="scroll"+e)&&(a=P(element,s))?a()-Vt(element)()[r]:Ut(element)?(tt[s]||et[s])-(J["inner"+e]||tt["client"+e]||et["client"+e]):element[s]-element["offset"+e]},Wt=function(t,e){for(var i=0;i<mt.length;i+=3)(!e||~e.indexOf(mt[i+1]))&&t(mt[i],mt[i+1],mt[i+2])},Ht=function(t){return"string"==typeof t},Yt=function(t){return"function"==typeof t},Xt=function(t){return"number"==typeof t},Gt=function(t){return"object"===Object(n.a)(t)},Qt=function(t){return Yt(t)&&t()},$t=function(t,e){return function(){var r=Qt(t),n=Qt(e);return function(){Qt(r),Qt(n)}}},Kt=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},Jt=function(t,e){if(t.enabled){var r=e(t);r&&r.totalTime&&(t.callbackAnimation=r)}},Zt=Math.abs,te="left",ee="right",re="bottom",ie="width",ne="height",oe="padding",se="margin",ae="Width",le="px",ue=function(element){return J.getComputedStyle(element)},ce=function(t,e){for(var p in e)p in t||(t[p]=e[p]);return t},he=function(element,t){var e=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ue(element)[ht]&&$.to(element,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=element.getBoundingClientRect();return e&&e.progress(0).kill(),r},fe=function(element,t){var e=t.d2;return element["offset"+e]||element["client"+e]||0},de=function(t){var p,a=[],e=t.labels,r=t.duration();for(p in e)a.push(e[p]/r);return a},pe=function(t){var e=$.utils.snap(t),a=Array.isArray(t)&&t.slice(0).sort((function(a,b){return a-b}));return a?function(t,r,n){var i;if(void 0===n&&(n=.001),!r)return e(t);if(r>0){for(t-=n,i=0;i<a.length;i++)if(a[i]>=t)return a[i];return a[i-1]}for(i=a.length,t+=n;i--;)if(a[i]<=t)return a[i];return a[0]}:function(r,n,o){void 0===o&&(o=.001);var l=e(r);return!n||Math.abs(l-r)<o||l-r<0==n<0?l:e(n<0?r-t:r+t)}},ge=function(t,element,e,r){return e.split(",").forEach((function(e){return t(element,e,r)}))},me=function(element,t,e,r,n){return element.addEventListener(t,e,{passive:!r,capture:!!n})},ye=function(element,t,e,r){return element.removeEventListener(t,e,!!r)},ve=function(t,e,r){return r&&r.wheelHandler&&t(e,"wheel",r)},be={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},_e={toggleActions:"play",anticipatePin:0},we={top:0,left:0,center:.5,bottom:1,right:1},xe=function(t,e){if(Ht(t)){var r=t.indexOf("="),n=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in we?we[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Ce=function(t,e,r,n,o,l,c,h){var f=o.startColor,d=o.endColor,m=o.fontSize,y=o.indent,v=o.fontWeight,_=Z.createElement("div"),w=Ut(r)||"fixed"===P(r,"pinType"),x=-1!==t.indexOf("scroller"),C=w?et:r,S=-1!==t.indexOf("start"),k=S?f:d,T="border-color:"+k+";font-size:"+m+";color:"+k+";font-weight:"+v+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return T+="position:"+((x||h)&&w?"fixed;":"absolute;"),(x||h||!w)&&(T+=(n===z?ee:re)+":"+(l+parseFloat(y))+"px;"),c&&(T+="box-sizing:border-box;text-align:left;width:"+c.offsetWidth+"px;"),_._isStart=S,_.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),_.style.cssText=T,_.innerText=e||0===e?t+"-"+e:t,C.children[0]?C.insertBefore(_,C.children[0]):C.appendChild(_),_._offset=_["offset"+n.op.d2],Se(_,0,n,S),_},Se=function(marker,t,e,r){var n={display:"block"},o=e[r?"os2":"p2"],l=e[r?"p2":"os2"];marker._isFlipped=r,n[e.a+"Percent"]=r?-100:0,n[e.a]=r?"1px":0,n["border"+o+ae]=1,n["border"+l+ae]=0,n[e.p]=t+"px",$.set(marker,n)},ke=[],Te={},De=function(){return Pt()-It>34&&He()},Ee=function(){_t&&_t.isPressed||(D.cache++,kt||(kt=requestAnimationFrame(He)),It||Re("scrollStart"),It=Pt())}
2,Oe=function(){Ct=J.innerWidth,xt=J.innerHeight},Ae=function(){D.cache++,!ut&&!bt&&!Z.fullscreenElement&&(!wt||Ct!==J.innerWidth||Math.abs(J.innerHeight-xt)>.25*J.innerHeight)&&nt.restart(!0)},Pe={},Fe=[],Ie=[],Me=function(t){var e,r=$.ticker.frame,n=[],i=0;if(Dt!==r||At){for(Be();i<Ie.length;i+=4)(e=J.matchMedia(Ie[i]).matches)!==Ie[i+3]&&(Ie[i+3]=e,e?n.push(i):Be(1,Ie[i])||Yt(Ie[i+2])&&Ie[i+2]());for(Ne(),i=0;i<n.length;i++)e=n[i],Tt=Ie[e],Ie[e+2]=Ie[e+1](t);Tt=0,K&&Ve(0,1),Dt=r,Re("matchMedia")}},je=function t(){return ye(nr,"scrollEnd",t)||Ve(!0)},Re=function(t){return Pe[t]&&Pe[t].map((function(t){return t()}))||Fe},Le=[],Ne=function(t){for(var i=0;i<Le.length;i+=5)t&&Le[i+4]!==t||(Le[i].style.cssText=Le[i+1],Le[i].getBBox&&Le[i].setAttribute("transform",Le[i+2]||""),Le[i+3].uncache=1)},Be=function(t,e){var r;for(ft=0;ft<ke.length;ft++)r=ke[ft],e&&r.media!==e||(t?r.kill(1):r.revert());e&&Ne(e),e||Re("revert")},ze=function(){return D.cache++&&D.forEach((function(t){return"function"==typeof t&&(t.rec=0)}))},Ue=0,Ve=function(t,e){if(!It||t){Et=!0;var r=Re("refreshInit");yt&&nr.sort(),e||Be(),ke.slice(0).forEach((function(t){return t.refresh()})),ke.forEach((function(t){return"max"===t.vars.end&&t.setPositions(t.start,qt(t.scroller,t._dir))})),r.forEach((function(t){return t&&t.render&&t.render(-1)})),ze(),nt.pause(),Ue++,Et=!1,Re("refresh")}else me(nr,"scrollEnd",je)},qe=0,We=1,He=function(){if(!Et){Ot&&Ot.update(0),nr.isUpdating=!0;var t=ke.length,time=Pt(),e=time-Ft>=50,r=t&&ke[0].scroll();if(We=qe>r?-1:1,qe=r,e&&(It&&!ct&&time-It>200&&(It=0,Re("scrollEnd")),at=Ft,Ft=time),We<0){for(ft=t;ft-- >0;)ke[ft]&&ke[ft].update(0,e);We=1}else for(ft=0;ft<t;ft++)ke[ft]&&ke[ft].update(0,e);nr.isUpdating=!1}kt=0},Ye=[te,"top",re,ee,"marginBottom","marginRight","marginTop","marginLeft","display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Xe=Ye.concat([ie,ne,"boxSizing","maxWidth","maxHeight","position",se,oe,"paddingTop","paddingRight","paddingBottom","paddingLeft"]),Ge=function(t,e,r,n){if(t.parentNode!==e){for(var p,i=Ye.length,o=e.style,l=t.style;i--;)o[p=Ye[i]]=r[p];o.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(o.display="inline-block"),l.bottom=l.right=o.flexBasis="auto",o.overflow="visible",o.boxSizing="border-box",o.width=fe(t,B)+le,o.height=fe(t,z)+le,o.padding=l.margin=l.top=l.left="0",$e(n),l.width=l.maxWidth=r.width,l.height=l.maxHeight=r.height,l.padding=r.padding,t.parentNode.insertBefore(e,t),e.appendChild(t)}},Qe=/([A-Z])/g,$e=function(t){if(t){var p,e,style=t.t.style,r=t.length,i=0;for((t.t._gsap||$.core.getCache(t.t)).uncache=1;i<r;i+=2)e=t[i+1],p=t[i],e?style[p]=e:style[p]&&style.removeProperty(p.replace(Qe,"-$1").toLowerCase())}},Ke=function(element){for(var t=Xe.length,style=element.style,e=[],i=0;i<t;i++)e.push(Xe[i],style[Xe[i]]);return e.t=element,e},Je={left:0,top:0},Ze=function(t,e,r,n,o,marker,l,c,h,f,d,m,y){Yt(t)&&(t=t(c)),Ht(t)&&"max"===t.substr(0,3)&&(t=m+("="===t.charAt(4)?xe("0"+t.substr(3),r):0));var v,_,element,time=y?y.time():0;if(y&&y.seek(0),Xt(t))l&&Se(l,r,n,!0);else{Yt(e)&&(e=e(c));var w,x,C,S,k=t.split(" ");element=U(e)||et,(w=he(element)||{})&&(w.left||w.top)||"none"!==ue(element).display||(S=element.style.display,element.style.display="block",w=he(element),S?element.style.display=S:element.style.removeProperty("display")),x=xe(k[0],w[n.d]),C=xe(k[1]||"0",r),t=w[n.p]-h[n.p]-f+x+o-C,l&&Se(l,C,n,r-C<20||l._isStart&&C>20),r-=r-C}if(marker){var T=t+r,D=marker._isStart;v="scroll"+n.d2,Se(marker,T,n,D&&T>20||!D&&(d?Math.max(et[v],tt[v]):marker.parentNode[v])<=T+1),d&&(h=he(l),d&&(marker.style[n.op.p]=h[n.op.p]-n.op.m-marker._offset+le))}return y&&element&&(v=he(element),y.seek(m),_=he(element),y._caScrollDist=v[n.p]-_[n.p],t=t/y._caScrollDist*m),y&&y.seek(time),y?t:Math.round(t)},er=/(webkit|moz|length|cssText|inset)/i,rr=function(element,t,e,r){if(element.parentNode!==t){var p,n,style=element.style;if(t===et){for(p in element._stOrig=style.cssText,n=ue(element))+p||er.test(p)||!n[p]||"string"!=typeof style[p]||"0"===p||(style[p]=n[p]);style.top=e,style.left=r}else style.cssText=element._stOrig;$.core.getCache(element).uncache=1,t.appendChild(element)}},ir=function(t,e){var r,n,o=V(t,e),l="_scroll"+e.p2,c=function e(c,h,f,d,m){var y=e.tween,v=h.onComplete,_={};return f=f||o(),m=d&&m||0,d=d||c-f,y&&y.kill(),r=Math.round(f),h[l]=c,h.modifiers=_,_[l]=function(t){return(t=Nt(o()))!==r&&t!==n&&Math.abs(t-r)>2&&Math.abs(t-n)>2?(y.kill(),e.tween=0):t=f+d*y.ratio+m*y.ratio*y.ratio,n=r,r=Nt(t)},h.onComplete=function(){e.tween=0,v&&v.call(y)},y=e.tween=$.to(t,h)};return t[l]=o,o.wheelHandler=function(){return c.tween&&c.tween.kill()&&(c.tween=0)},me(t,"wheel",o.wheelHandler),c},nr=function(){function t(e,r){K||t.register($)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Mt){var n,o,l,c,h,f,d,m,y,v,_,w,x,C,S,k,T,D,O,A,F,I,M,j,R,L,N,W,H,Y,X,G,Q,K,it,nt,lt,ht,pt,element,gt,mt=e=ce(Ht(e)||Xt(e)||e.nodeType?{trigger:e}:e,_e),bt=mt.onUpdate,_t=mt.toggleClass,wt=mt.id,xt=mt.onToggle,Ct=mt.onRefresh,kt=mt.scrub,Dt=mt.trigger,Ft=mt.pin,jt=mt.pinSpacing,Rt=mt.invalidateOnRefresh,Bt=mt.anticipatePin,zt=mt.onScrubComplete,Wt=mt.onSnapComplete,Qt=mt.once,$t=mt.snap,te=mt.pinReparent,ee=mt.pinSpacer,re=mt.containerAnimation,ie=mt.fastScrollEnd,ne=mt.preventOverlaps,ge=e.horizontal||e.containerAnimation&&!1!==e.horizontal?B:z,ve=!kt&&0!==kt,we=U(e.scroller||J),Se=$.core.getCache(we),De=Ut(we),Oe="fixed"===("pinType"in e?e.pinType:P(we,"pinType")||De&&"fixed"),Pe=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],Fe=ve&&e.toggleActions.split(" "),Ie="markers"in e?e.markers:_e.markers,Me=De?0:parseFloat(ue(we)["border"+ge.p2+ae])||0,Re=this,Le=e.onRefreshInit&&function(){return e.onRefreshInit(Re)},Ne=function(t,e,r){var n=r.d,o=r.d2,a=r.a;return(a=P(t,"getBoundingClientRect"))?function(){return a()[n]}:function(){return(e?J["inner"+o]:t["client"+o])||0}}(we,De,ge),Be=function(element,t){return!t||~E.indexOf(element)?Vt(element):function(){return Je}}(we,De),ze=0,Ue=0,Ve=V(we,ge);if(Re.media=Tt,Re._dir=ge,Bt*=45,Re.scroller=we,Re.scroll=re?re.time.bind(re):Ve,c=Ve(),Re.vars=e,r=r||e.animation,"refreshPriority"in e&&(yt=1,-9999===e.refreshPriority&&(Ot=Re)),Se.tweenScroll=Se.tweenScroll||{top:ir(we,z),left:ir(we,B)},Re.tweenTo=n=Se.tweenScroll[ge.p],Re.scrubDuration=function(t){(X=Xt(t)&&t)?Y?Y.duration(t):Y=$.to(r,{ease:"expo",totalProgress:"+=0.001",duration:X,paused:!0,onComplete:function(){return zt&&zt(Re)}}):(Y&&Y.progress(1).kill(),Y=0)},r&&(r.vars.lazy=!1,r._initted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.render(0,!0,!0),Re.animation=r.pause(),r.scrollTrigger=Re,Re.scrubDuration(kt),W=0,wt||(wt=r.vars.id)),ke.push(Re),$t&&(Gt($t)&&!$t.push||($t={snapTo:$t}),"scrollBehavior"in et.style&&$.set(De?[et,tt]:we,{scrollBehavior:"auto"}),l=Yt($t.snapTo)?$t.snapTo:"labels"===$t.snapTo?function(t){return function(e){return $.utils.snap(de(t),e)}}(r):"labelsDirectional"===$t.snapTo?(pt=r,function(t,e){return pe(de(pt))(t,e.direction)}):!1!==$t.directional?function(t,e){return pe($t.snapTo)(t,Pt()-Ue<500?0:e.direction)}:$.utils.snap($t.snapTo),G=$t.duration||{min:.1,max:2},G=Gt(G)?st(G.min,G.max):st(G,G),Q=$.delayedCall($t.delay||X/2||.1,(function(){var t=Ve(),e=Pt()-Ue<500,o=n.tween;
2if(!(e||Math.abs(Re.getVelocity())<10)||o||ct||ze===t)Re.isActive&&ze!==t&&Q.restart(!0);else{var progress=(t-f)/x,c=r&&!ve?r.totalProgress():progress,h=e?0:(c-H)/(Pt()-at)*1e3||0,m=$.utils.clamp(-progress,1-progress,Zt(h/2)*h/.185),y=progress+(!1===$t.inertia?0:m),v=st(0,1,l(y,Re)),_=Math.round(f+v*x),w=$t,C=w.onStart,S=w.onInterrupt,k=w.onComplete;if(t<=d&&t>=f&&_!==t){if(o&&!o._initted&&o.data<=Zt(_-t))return;!1===$t.inertia&&(m=v-progress),n(_,{duration:G(Zt(.185*Math.max(Zt(y-c),Zt(v-c))/h/.05||0)),ease:$t.ease||"power3",data:Zt(_-t),onInterrupt:function(){return Q.restart(!0)&&S&&S(Re)},onComplete:function(){Re.update(),ze=Ve(),W=H=r&&!ve?r.totalProgress():Re.progress,Wt&&Wt(Re),k&&k(Re)}},t,m*x,_-t-m*x),C&&C(Re,n.tween)}}})).pause()),wt&&(Te[wt]=Re),(ht=(Dt=Re.trigger=U(Dt||Ft))&&Dt._gsap&&Dt._gsap.stRevert)&&(ht=ht(Re)),Ft=!0===Ft?Dt:U(Ft),Ht(_t)&&(_t={targets:Dt,className:_t}),Ft&&(!1===jt||jt===se||(jt=!(!jt&&"flex"===ue(Ft.parentNode).display)&&oe),Re.pin=Ft,!1!==e.force3D&&$.set(Ft,{force3D:!0}),(o=$.core.getCache(Ft)).spacer?C=o.pinState:(ee&&((ee=U(ee))&&!ee.nodeType&&(ee=ee.current||ee.nativeElement),o.spacerIsNative=!!ee,ee&&(o.spacerState=Ke(ee))),o.spacer=T=ee||Z.createElement("div"),T.classList.add("pin-spacer"),wt&&T.classList.add("pin-spacer-"+wt),o.pinState=C=Ke(Ft)),Re.spacer=T=o.spacer,N=ue(Ft),M=N[jt+ge.os2],O=$.getProperty(Ft),A=$.quickSetter(Ft,ge.a,le),Ge(Ft,T,N),k=Ke(Ft)),Ie){w=Gt(Ie)?ce(Ie,be):be,v=Ce("scroller-start",wt,we,ge,w,0),_=Ce("scroller-end",wt,we,ge,w,0,v),D=v["offset"+ge.op.d2];var content=U(P(we,"content")||we);m=this.markerStart=Ce("start",wt,content,ge,w,D,0,re),y=this.markerEnd=Ce("end",wt,content,ge,w,D,0,re),re&&(lt=$.quickSetter([m,y],ge.a,le)),Oe||E.length&&!0===P(we,"fixedMarkers")||(gt=ue(element=De?et:we).position,element.style.position="absolute"===gt||"fixed"===gt?gt:"relative",$.set([v,_],{force3D:!0}),R=$.quickSetter(v,ge.a,le),L=$.quickSetter(_,ge.a,le))}if(re){var qe=re.vars.onUpdate,He=re.vars.onUpdateParams;re.eventCallback("onUpdate",(function(){Re.update(0,0,1),qe&&qe.apply(He||[])}))}Re.previous=function(){return ke[ke.indexOf(Re)-1]},Re.next=function(){return ke[ke.indexOf(Re)+1]},Re.revert=function(t){var e=!1!==t||!Re.enabled,n=ut;e!==Re.isReverted&&(e&&(Re.scroll.rec||!ut||!Et||(Re.scroll.rec=Ve()),it=Math.max(Ve(),Re.scroll.rec||0),K=Re.progress,nt=r&&r.progress()),m&&[m,y,v,_].forEach((function(t){return t.style.display=e?"none":"block"})),e&&(ut=1),Re.update(e),ut=n,Ft&&(e?function(t,e,r){$e(r);var n=t._gsap;if(n.spacerIsNative)$e(n.spacerState);else if(t.parentNode===e){var o=e.parentNode;o&&(o.insertBefore(t,e),o.removeChild(e))}}(Ft,T,C):(!te||!Re.isActive)&&Ge(Ft,T,ue(Ft),j)),Re.isReverted=e)},Re.refresh=function(o,l){if(!ut&&Re.enabled||l)if(Ft&&o&&It)me(t,"scrollEnd",je);else{!Et&&Le&&Le(Re),ut=1,Ue=Pt(),n.tween&&(n.tween.kill(),n.tween=0),Y&&Y.pause(),Rt&&r&&r.time(-.01,!0).invalidate(),Re.isReverted||Re.revert();for(var w,D,E,A,P,M,R,L,N,W,H=Ne(),X=Be(),G=re?re.duration():qt(we,ge),J=0,Z=0,tt=e.end,ot=e.endTrigger||Dt,st=e.start||(0!==e.start&&Dt?Ft?"0 0":"0 100%":0),at=Re.pinnedContainer=e.pinnedContainer&&U(e.pinnedContainer),lt=Dt&&Math.max(0,ke.indexOf(Re))||0,i=lt;i--;)(M=ke[i]).end||M.refresh(0,1)||(ut=1),!(R=M.pin)||R!==Dt&&R!==Ft||M.isReverted||(W||(W=[]),W.unshift(M),M.revert()),M!==ke[i]&&(lt--,i--);for(Yt(st)&&(st=st(Re)),f=Ze(st,Dt,H,ge,Ve(),m,v,Re,X,Me,Oe,G,re)||(Ft?-.001:0),Yt(tt)&&(tt=tt(Re)),Ht(tt)&&!tt.indexOf("+=")&&(~tt.indexOf(" ")?tt=(Ht(st)?st.split(" ")[0]:"")+tt:(J=xe(tt.substr(2),H),tt=Ht(st)?st:f+J,ot=Dt)),d=Math.max(f,Ze(tt||(ot?"100% 0":G),ot,H,ge,Ve()+J,y,_,Re,X,Me,Oe,G,re))||-.001,x=d-f||(f-=.01)&&.001,J=0,i=lt;i--;)(R=(M=ke[i]).pin)&&M.start-M._pinPush<f&&!re&&M.end>0&&(w=M.end-M.start,R!==Dt&&R!==at||Xt(st)||(J+=w*(1-M.progress)),R===Ft&&(Z+=w));if(f+=J,d+=J,Re._pinPush=Z,m&&J&&((w={})[ge.a]="+="+J,at&&(w[ge.p]="-="+Ve()),$.set([m,y],w)),Ft)w=ue(Ft),A=ge===z,E=Ve(),F=parseFloat(O(ge.a))+Z,!G&&d>1&&((De?et:we).style["overflow-"+ge.a]="scroll"),Ge(Ft,T,w),k=Ke(Ft),D=he(Ft,!0),L=Oe&&V(we,A?B:z)(),jt&&((j=[jt+ge.os2,x+Z+le]).t=T,(i=jt===oe?fe(Ft,ge)+x+Z:0)&&j.push(ge.d,i+le),$e(j),Oe&&Ve(it)),Oe&&((P={top:D.top+(A?E-f:L)+le,left:D.left+(A?L:E-f)+le,boxSizing:"border-box",position:"fixed"}).width=P.maxWidth=Math.ceil(D.width)+le,P.height=P.maxHeight=Math.ceil(D.height)+le,P.margin=P.marginTop=P.marginRight=P.marginBottom=P.marginLeft="0",P.padding=w.padding,P.paddingTop=w.paddingTop,P.paddingRight=w.paddingRight,P.paddingBottom=w.paddingBottom,P.paddingLeft=w.paddingLeft,S=function(t,e,r){for(var p,n=[],o=t.length,i=r?8:0;i<o;i+=2)p=t[i],n.push(p,p in e?e[p]:t[i+1]);return n.t=t.t,n}(C,P,te)),r?(N=r._initted,vt(1),r.render(r.duration(),!0,!0),I=O(ge.a)-F+x+Z,x!==I&&S.splice(S.length-2,2),r.render(0,!0,!0),N||r.invalidate(),vt(0)):I=x;else if(Dt&&Ve()&&!re)for(D=Dt.parentNode;D&&D!==et;)D._pinOffset&&(f-=D._pinOffset,d-=D._pinOffset),D=D.parentNode;W&&W.forEach((function(t){return t.revert(!1)})),Re.start=f,Re.end=d,c=h=Ve(),re||(c<it&&Ve(it),Re.scroll.rec=0),Re.revert(!1),Q&&(ze=-1,Re.isActive&&Ve(f+x*K),Q.restart(!0)),ut=0,r&&ve&&(r._initted||nt)&&r.progress()!==nt&&r.progress(nt,!0).render(r.t
2ime(),!0,!0),(K!==Re.progress||re)&&(r&&!ve&&r.totalProgress(K,!0),Re.progress=K,Re.update(0,0,1)),Ft&&jt&&(T._pinOffset=Math.round(Re.progress*I)),Ct&&Ct(Re)}},Re.getVelocity=function(){return(Ve()-h)/(Pt()-at)*1e3||0},Re.endAnimation=function(){Kt(Re.callbackAnimation),r&&(Y?Y.progress(1):r.paused()?ve||Kt(r,Re.direction<0,1):Kt(r,r.reversed()))},Re.labelToScroll=function(label){return r&&r.labels&&(f||Re.refresh()||f)+r.labels[label]/r.duration()*x||0},Re.getTrailing=function(t){var i=ke.indexOf(Re),a=Re.direction>0?ke.slice(0,i).reverse():ke.slice(i+1);return(Ht(t)?a.filter((function(e){return e.vars.preventOverlaps===t})):a).filter((function(t){return Re.direction>0?t.end<=f:t.start>=d}))},Re.update=function(t,e,o){if(!re||o||t){var l,m,y,_,w,C,D,E=Re.scroll(),p=t?0:(E-f)/x,O=p<0?0:p>1?1:p||0,P=Re.progress;if(e&&(h=c,c=re?Ve():E,$t&&(H=W,W=r&&!ve?r.totalProgress():O)),Bt&&!O&&Ft&&!ut&&!At&&It&&f<E+(E-h)/(Pt()-at)*Bt&&(O=1e-4),O!==P&&Re.enabled){if(_=(w=(l=Re.isActive=!!O&&O<1)!==(!!P&&P<1))||!!O!=!!P,Re.direction=O>P?1:-1,Re.progress=O,_&&!ut&&(m=O&&!P?0:1===O?1:1===P?2:3,ve&&(y=!w&&"none"!==Fe[m+1]&&Fe[m+1]||Fe[m],D=r&&("complete"===y||"reset"===y||y in r))),ne&&(w||D)&&(D||kt||!r)&&(Yt(ne)?ne(Re):Re.getTrailing(ne).forEach((function(t){return t.endAnimation()}))),ve||(!Y||ut||At?r&&r.totalProgress(O,!!ut):((re||Ot&&Ot!==Re)&&Y.render(Y._dp._time-Y._start),Y.resetTo?Y.resetTo("totalProgress",O,r._tTime/r._tDur):(Y.vars.totalProgress=O,Y.invalidate().restart()))),Ft)if(t&&jt&&(T.style[jt+ge.os2]=M),Oe){if(_){if(C=!t&&O>P&&d+1>E&&E+1>=qt(we,ge),te)if(t||!l&&!C)rr(Ft,T);else{var j=he(Ft,!0),N=E-f;rr(Ft,et,j.top+(ge===z?N:0)+le,j.left+(ge===z?0:N)+le)}$e(l||C?S:k),I!==x&&O<1&&l||A(F+(1!==O||C?0:I))}}else A(Nt(F+I*O));$t&&!n.tween&&!ut&&!At&&Q.restart(!0),_t&&(w||Qt&&O&&(O<1||!St))&&ot(_t.targets).forEach((function(t){return t.classList[l||Qt?"add":"remove"](_t.className)})),bt&&!ve&&!t&&bt(Re),_&&!ut?(ve&&(D&&("complete"===y?r.pause().totalProgress(1):"reset"===y?r.restart(!0).pause():"restart"===y?r.restart(!0):r[y]()),bt&&bt(Re)),!w&&St||(xt&&w&&Jt(Re,xt),Pe[m]&&Jt(Re,Pe[m]),Qt&&(1===O?Re.kill(!1,1):Pe[m]=0),w||Pe[m=1===O?1:3]&&Jt(Re,Pe[m])),ie&&!l&&Math.abs(Re.getVelocity())>(Xt(ie)?ie:2500)&&(Kt(Re.callbackAnimation),Y?Y.progress(1):Kt(r,!O,1))):ve&&bt&&!ut&&bt(Re)}if(L){var B=re?E/re.duration()*(re._caScrollDist||0):E;R(B+(v._isFlipped?1:0)),L(B)}lt&<(-E/re.duration()*(re._caScrollDist||0))}},Re.enable=function(e,r){Re.enabled||(Re.enabled=!0,me(we,"resize",Ae),me(De?Z:we,"scroll",Ee),Le&&me(t,"refreshInit",Le),!1!==e&&(Re.progress=K=0,c=h=ze=Ve()),!1!==r&&Re.refresh())},Re.getTween=function(t){return t&&n?n.tween:Y},Re.setPositions=function(t,e){Ft&&(F+=t-f,I+=e-t-x),Re.start=f=t,Re.end=d=e,x=e-t,Re.update()},Re.disable=function(e,r){if(Re.enabled&&(!1!==e&&Re.revert(),Re.enabled=Re.isActive=!1,r||Y&&Y.pause(),it=0,o&&(o.uncache=1),Le&&ye(t,"refreshInit",Le),Q&&(Q.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!De)){for(var i=ke.length;i--;)if(ke[i].scroller===we&&ke[i]!==Re)return;ye(we,"resize",Ae),ye(we,"scroll",Ee)}},Re.kill=function(t,n){Re.disable(t,n),Y&&!n&&Y.kill(),wt&&delete Te[wt];var i=ke.indexOf(Re);i>=0&&ke.splice(i,1),i===ft&&We>0&&ft--,i=0,ke.forEach((function(t){return t.scroller===Re.scroller&&(i=1)})),i||(Re.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.render(-1),n||r.kill()),m&&[m,y,v,_].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),Ot===Re&&(Ot=0),Ft&&(o&&(o.uncache=1),i=0,ke.forEach((function(t){return t.pin===Ft&&i++})),i||(o.spacer=0)),e.onKill&&e.onKill(Re)},Re.enable(!1,!1),ht&&ht(Re),r&&r.add&&!x?$.delayedCall(.01,(function(){return f||d||Re.refresh()}))&&(x=.01)&&(f=d=0):Re.refresh()}else this.update=this.refresh=this.kill=Lt},t.register=function(e){return K||($=e||zt(),Bt()&&window.document&&t.enable(),K=Mt),K},t.defaults=function(t){if(t)for(var p in t)_e[p]=t[p];return _e},t.disable=function(t,e){Mt=0,ke.forEach((function(r){return r[e?"kill":"disable"](t)})),ye(J,"wheel",Ee),ye(Z,"scroll",Ee),clearInterval(lt),ye(Z,"touchcancel",Lt),ye(et,"touchstart",Lt),ge(ye,Z,"pointerdown,touchstart,mousedown",jt),ge(ye,Z,"pointerup,touchend,mouseup",Rt),nt.kill(),Wt(ye);for(var i=0;i<D.length;
2i+=3)ve(ye,D[i],D[i+1]),ve(ye,D[i],D[i+2])},t.enable=function(){if(J=window,Z=document,tt=Z.documentElement,et=Z.body,$&&(ot=$.utils.toArray,st=$.utils.clamp,vt=$.core.suppressOverwrites||Lt,$.core.globals("ScrollTrigger",t),et)){Mt=1,Q.register($),t.isTouch=Q.isTouch,me(J,"wheel",Ee),it=[J,Z,tt,et],t.matchMedia({"(orientation: portrait)":function(){return Oe(),Oe}}),me(Z,"scroll",Ee);var e,i,r=et.style,n=r.borderTopStyle;for(r.borderTopStyle="solid",e=he(et),z.m=Math.round(e.top+z.sc())||0,B.m=Math.round(e.left+B.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),lt=setInterval(De,250),$.delayedCall(.5,(function(){return At=0})),me(Z,"touchcancel",Lt),me(et,"touchstart",Lt),ge(me,Z,"pointerdown,touchstart,mousedown",jt),ge(me,Z,"pointerup,touchend,mouseup",Rt),ht=$.utils.checkPrefix("transform"),Xe.push(ht),K=Pt(),nt=$.delayedCall(.2,Ve).pause(),mt=[Z,"visibilitychange",function(){var t=J.innerWidth,e=J.innerHeight;Z.hidden?(pt=t,gt=e):pt===t&>===e||Ae()},Z,"DOMContentLoaded",Ve,J,"load",Ve,J,"resize",Ae],Wt(me),ke.forEach((function(t){return t.enable(0,1)})),i=0;i<D.length;i+=3)ve(ye,D[i],D[i+1]),ve(ye,D[i],D[i+2])}},t.config=function(e){"limitCallbacks"in e&&(St=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(lt)||(lt=r)&&setInterval(De,r),"ignoreMobileResize"in e&&(wt=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Wt(ye)||Wt(me,e.autoRefreshEvents||"none"),bt=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=U(t),i=D.indexOf(r),n=Ut(r);~i&&D.splice(i,n?6:2),e&&(n?E.unshift(J,e,et,e,tt,e):E.unshift(r,e))},t.matchMedia=function(t){var e,p,i,r,n;for(p in t)i=Ie.indexOf(p),r=t[p],Tt=p,"all"===p?r():(e=J.matchMedia(p))&&(e.matches&&(n=r()),~i?(Ie[i+1]=$t(Ie[i+1],r),Ie[i+2]=$t(Ie[i+2],n)):(i=Ie.length,Ie.push(p,r,n),e.addListener?e.addListener(Me):e.addEventListener("change",Me)),Ie[i+3]=e.matches),Tt=0;return Ie},t.clearMatchMedia=function(t){t||(Ie.length=0),(t=Ie.indexOf(t))>=0&&Ie.splice(t,4)},t.isInViewport=function(element,t,e){var r=(Ht(element)?U(element):element).getBoundingClientRect(),n=r[e?ie:ne]*t||0;return e?r.right-n>0&&r.left+n<J.innerWidth:r.bottom-n>0&&r.top+n<J.innerHeight},t.positionInViewport=function(element,t,e){Ht(element)&&(element=U(element));var r=element.getBoundingClientRect(),n=r[e?ie:ne],o=null==t?n/2:t in we?we[t]*n:~t.indexOf("%")?parseFloat(t)*n/100:parseFloat(t)||0;return e?(r.left+o)/J.innerWidth:(r.top+o)/J.innerHeight},t}();nr.version="3.10.4",nr.saveStyles=function(t){return t?ot(t).forEach((function(t){if(t&&t.style){var i=Le.indexOf(t);i>=0&&Le.splice(i,5),Le.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),$.core.getCache(t),Tt)}})):Le},nr.revert=function(t,e){return Be(!t,e)},nr.create=function(t,e){return new nr(t,e)},nr.refresh=function(t){return t?Ae():(K||nr.register())&&Ve(!0)},nr.update=He,nr.clearScrollMemory=ze,nr.maxScroll=function(element,t){return qt(element,t?B:z)},nr.getScrollFunc=function(element,t){return V(U(element),t?B:z)},nr.getById=function(t){return Te[t]},nr.getAll=function(){return ke.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},nr.isScrolling=function(){return!!It},nr.snapDirectional=pe,nr.addEventListener=function(t,e){var a=Pe[t]||(Pe[t]=[]);~a.indexOf(e)||a.push(e)},nr.removeEventListener=function(t,e){var a=Pe[t],i=a&&a.indexOf(e);i>=0&&a.splice(i,1)},nr.batch=function(t,e){var p,r=[],n={},o=e.interval||.016,l=e.batchMax||1e9,c=function(t,e){var r=[],n=[],c=$.delayedCall(o,(function(){e(r,n),r=[],n=[]})).pause();return function(t){r.length||c.restart(!0),r.push(t.trigger),n.push(t),l<=r.length&&c.progress(1)}};for(p in e)n[p]="on"===p.substr(0,2)&&Yt(e[p])&&"onRefreshInit"!==p?c(0,e[p]):e[p];return Yt(l)&&(l=l(),me(nr,"refresh",(function(){return l=e.batchMax()}))),ot(t).forEach((function(t){var e={};for(p in n)e[p]=n[p];e.trigger=t,r.push(nr.create(e))})),r};var or,sr=function(t,e,r,n){return e>n?t(n):e<0&&t(0),r>n?(n-e)/(r-e):r<0?e/(e-r):1},ar=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"
2+r:"none",e===tt&&t(et,r)},lr={auto:1,scroll:1},ur=function(t){var e,r=t.event,n=t.target,o=t.axis,l=(r.changedTouches?r.changedTouches[0]:r).target,c=l._gsap||$.core.getCache(l),time=Pt();if(!c._isScrollT||time-c._isScrollT>2e3){for(;l&&l.scrollHeight<=l.clientHeight;)l=l.parentNode;c._isScroll=l&&!Ut(l)&&l!==n&&(lr[(e=ue(l)).overflowY]||lr[e.overflowX]),c._isScrollT=time}(c._isScroll||"x"===o)&&(r._gsapAllow=!0)},cr=function(t,e,r,n){return Q.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&ur,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&me(Z,Q.eventTypes[0],dr,!1,!0)},onDisable:function(){return ye(Z,Q.eventTypes[0],dr,!0)}})},fr=/(input|label|select|textarea)/i,dr=function(t){var e=fr.test(t.target.tagName);(e||or)&&(t._gsapAllow=!0,or=e)},pr=function(t){Gt(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,r,n,o,l,c,h,f,d=t,m=d.normalizeScrollX,y=d.momentum,v=d.allowNestedScroll,_=U(t.target)||tt,w=V(_,z),x=V(_,B),C=1,S=0,k=Yt(y)?function(){return y(e)}:function(){return y||2.8},T=cr(_,t.type,!0,v),D=function(){return n=!1},E=Lt,O=Lt,A=function(){r=qt(_,z),O=st(0,r),m&&(E=st(0,qt(_,B))),o=Ue},P=nr.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),F=function(){A(),l.isActive()&&l.vars.scrollY>r&&l.resetTo("scrollY",qt(_,z))};return t.ignoreCheck=function(t){return P&&"touchmove"===t.type&&function(){if(n)return requestAnimationFrame(D),!0;n=!0}()||C>1||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){var t=C;
2C=J.visualViewport&&J.visualViewport.scale||1,l.pause(),t!==C&&ar(_,C>1||!m&&"x"),n=!1,c=x(),h=w(),A(),o=Ue},t.onRelease=t.onGestureStart=function(t,e){if(e){var r,n,o=k();m&&(n=(r=x())+.05*o*-t.velocityX/.227/C,o*=sr(x,r,n,qt(_,B)),l.vars.scrollX=E(n)),n=(r=w())+.05*o*-t.velocityY/.227/C,o*=sr(w,r,n,qt(_,z)),l.vars.scrollY=O(n),l.invalidate().duration(o).play(.01)}else f.restart(!0)},t.onWheel=function(){l._ts&&l.pause(),Pt()-S>1e3&&(o=0,S=Pt())},t.onChange=function(t,e,r,n,l){Ue!==o&&A(),e&&m&&x(E(n[2]===e?c+(t.startX-t.x)/C:x()+e-n[1])),r&&w(O(l[2]===r?h+(t.startY-t.y)/C:w()+r-l[1])),He()},t.onEnable=function(){ar(_,!m&&"x"),me(J,"resize",F),T.enable()},t.onDisable=function(){ar(_,!0),ye(J,"resize",F),T.kill()},e=new Q(t),f=e._dc,l=$.to(e,{ease:"power4",paused:!0,scrollX:m?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:f.vars.onComplete}),e};nr.sort=function(t){return ke.sort(t||function(a,b){return-1e6*(a.vars.refreshPriority||0)+a.start-(b.start+-1e6*(b.vars.refreshPriority||0))})},nr.observe=function(t){return new Q(t)},nr.normalizeScroll=function(t){if(void 0===t)return _t;if(!0===t&&_t)return _t.enable();if(!1===t)return _t&&_t.kill();var e=t instanceof Q?t:pr(t);return _t&&_t.target===e.target&&_t.kill(),Ut(e.target)&&(_t=e),e},nr.core={_getVelocityProp:W,_inputObserver:cr,_scrollers:D,_proxies:E,bridge:{ss:function(){It||Re("scrollStart"),It=Pt()},ref:function(){return ut}}},zt()&&$.registerPlugin(nr)},233:function(t,e,r){"use strict";r.r(e),function(t,n){var o,l=r(475);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:n;var c=Object(l.a)(o);e.default=c}.call(this,r(48),r(870)(t))},234:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){throw new Error("Static Class")}return t.GQL_CONNECTION_INIT="connection_init",t.GQL_CONNECTION_ACK="connection_ack",t.GQL_CONNECTION_ERROR="connection_error",t.GQL_CONNECTION_KEEP_ALIVE="ka",t.GQL_CONNECTION_TERMINATE="connection_terminate",t.GQL_START="start",t.GQL_DATA="data",t.GQL_ERROR="error",t.GQL_COMPLETE="complete",t.GQL_STOP="stop",t.SUBSCRIPTION_START="subscription_start",t.SUBSCRIPTION_DATA="subscription_data",t.SUBSCRIPTION_SUCCESS="subscription_success",t.SUBSCRIPTION_FAIL="subscription_fail",t.SUBSCRIPTION_END="subscription_end",t.INIT="init",t.INIT_SUCCESS="init_success",t.INIT_FAIL="init_fail",t.KEEP_ALIVE="keepalive",t}();e.default=n},237:function(t,e,r){"use strict";var n={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var r=e.parent,n=e.slots,o=e.props,l=n(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return r._isMounted?c:(r.$once("hook:mounted",(function(){r.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=n},239:function(t,e,r){t.exports=r(560)},241:function(t,e,r){"use strict";r.d(e,"a",(function(){return D}));r(12),r(25),r(215),r(102),r(20),r(50),r(44),r(62),r(30);function n(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o,l,c,h,f,d,m,y,v,_,w,x,C,S=function(){return"undefined"!=typeof window},k=function(){return o||S()&&(o=window.gsap)&&o.registerPlugin&&o},T=(Date.now,function(t){var e=h.querySelector(".ScrollSmoother-wrapper");return e||((e=h.createElement("div")).classList.add("ScrollSmoother-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t)),e}),D=function(){function t(e){var r=this;l||t.register(o)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),e=this.vars=e||{},_&&_.kill(),_=this;var content,n,S,k,D,E,O,A,P,F,I,M,j,R,L=e,N=L.smoothTouch,B=L.onUpdate,z=L.onStop,U=L.smooth,V=L.onFocusIn,W=L.normalizeScroll,H=v.getScrollFunc(c),Y=1===v.isTouch?!0===N?.8:parseFloat(N)||0:0===U||!1===U?0:parseFloat(U)||.8,X=0,G=0,Q=1,$=x(0),K=function(){return $.update(-X)},J={y:0},Z=function(){return content.style.overflow="visible"}
2,tt=function(t){t.update();var e=t.getTween();e&&(e.pause(),e._time=e._dur,e._tTime=e._tDur),j=!1,t.animation.progress(t.progress,!0)},et=function(t,e){(t!==X&&!F||e)&&(Y&&(content.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+t+", 0, 1)"),G=t-X,X=t,v.isUpdating||v.update())},it=function(t){return arguments.length?(F?X=-t:et(-t),J.y=-t,j=!0,H(t),this):-X},nt=function(t){n.scrollTop=0,V&&!1===V(r,t)||(v.isInViewport(t.target)||t.target===R||r.scrollTo(t.target,!1,"center center"),R=t.target)},ot=function(t,e){var r,n,l,c;D.forEach((function(e){r=e.pins,c=e.markers,t.forEach((function(t){t.trigger!==e.trigger&&t.pinnedContainer!==e.trigger||e===t||(n=t.start,l=(n-e.start-e.offset)/e.ratio-(n-e.start),r.forEach((function(p){return l-=p.distance/e.ratio-p.distance})),t.setPositions(n+l,t.end+l),t.markerStart&&c.push(o.quickSetter([t.markerStart,t.markerEnd],"y","px")),t.pin&&t.end>0&&(l=t.end-t.start,r.push({start:t.start,end:t.end,distance:l,trig:t}),e.setPositions(e.start,e.end+l),e.vars.onRefresh(e)))}))}))},st=function(){Z(),requestAnimationFrame(Z),D&&(D.forEach((function(t){var e=t.start,r=t.auto?Math.min(v.maxScroll(t.scroller),t.end):e+(t.end-e)/t.ratio,n=(r-t.end
2)/2;e-=n,r-=n,t.offset=n||1e-4,t.pins.length=0,t.setPositions(Math.min(e,r),Math.max(e,r)),t.vars.onRefresh(t)})),ot(v.sort())),$.reset()},at=function(){return D&&D.forEach((function(t){return t.vars.onRefresh(t)}))},lt=function(){return D&&D.forEach((function(t){return t.vars.onRefreshInit(t)})),at},ut=function(t,e,r,n){return function(){var o="function"==typeof e?e(r,n):e;return o||0===o||(o=n.getAttribute("data-"+t)||("speed"===t?1:0)),n.setAttribute("data-"+t,o),"auto"===o?o:parseFloat(o)}},ct=function(t,e,r,l){var h,d,m,_,x,C,S=ut("speed",e,l,t),k=ut("lag",r,l,t),T=o.getProperty(t,"y"),E=t._gsap,O=function(){e=S(),r=k(),h=parseFloat(e)||1,x=(m="auto"===e)?0:.5,_&&_.kill(),_=r&&o.to(t,{ease:w,overwrite:!1,y:"+=0",duration:r}),d&&(d.ratio=h,d.autoSpeed=m)},A=function(){E.y=T+"px",E.renderTransform(1),O()},P=[],F=[],I=0,M=function(e){if(m){A();var r=function(t,progress){var e,r,n=t.parentNode||f,o=t.getBoundingClientRect(),l=n.getBoundingClientRect(),h=l.top-o.top,d=l.bottom-o.bottom,m=(Math.abs(h)>Math.abs(d)?h:d)/(1-progress),y=-m*progress;return m>0&&(y+=-(r=.5==(e=l.height/(c.innerHeight+l.height))?2*l.height:2*Math.min(l.height,-m*e/(2*e-1)))/2,m+=r),{change:m,offset:y}}(t,y(0,1,-e.start/(e.end-e.start)));I=r.change,C=r.offset}else I=(e.end-e.start)*(1-h),C=0;P.forEach((function(p){return I-=p.distance*(1-h)})),e.vars.onUpdate(e),_&&_.progress(1)};return O(),(1!==h||m||_)&&(M(d=v.create({trigger:m?t.parentNode:t,scroller:n,scrub:!0,refreshPriority:-999,onRefreshInit:A,onRefresh:M,onKill:function(t){var i=D.indexOf(t);i>=0&&D.splice(i,1),A()},onUpdate:function(t){var e,r,n,l,c=T+I*(t.progress-x),i=P.length,h=0;if(t.offset){if(i){for(r=-J.y,n=t.end;i--;){if((e=P[i]).trig.isActive||r>=e.start&&r<=e.end)return void(_&&(e.trig.progress+=e.trig.direction<0?.001:-.001,e.trig.update(0,0,1),_.resetTo("y",parseFloat(E.y),-G,!0),Q&&_.progress(1)));r>e.end&&(h+=e.distance),n-=e.distance}c=T+h+I*((o.utils.clamp(t.start,t.end,r)-t.start-h)/(n-t.start)-x)}l=c+C,c=Math.round(1e5*l)/1e5||0,F.length&&!m&&F.forEach((function(t){return t(c-h)})),_?(_.resetTo("y",c,-G,!0),Q&&_.progress(1)):(E.y=c+"px",E.renderTransform(1))}}})),o.core.getCache(d.trigger).stRevert=lt,d.startY=T,d.pins=P,d.markers=F,d.ratio=h,d.autoSpeed=m,t.style.willChange="transform"),d};function ht(){return S=content.clientHeight,content.style.overflow="visible",d.style.height=S+"px",S-c.innerHeight}v.addEventListener("refresh",st),o.delayedCall(.5,(function(){return Q=0})),this.scrollTop=it,this.scrollTo=function(t,e,n){var p=o.utils.clamp(0,v.maxScroll(c),isNaN(t)?r.offset(t,n):+t);
2e?F?o.to(r,{duration:Y,scrollTop:p,overwrite:"auto",ease:w}):H(p):it(p)},this.offset=function(t,e){var r,n=(t=m(t)[0]).style.cssText,l=v.create({trigger:t,start:e||"top top"});return D&&ot([l]),r=l.start,l.kill(!1),t.style.cssText=n,o.core.getCache(t).uncache=1,r},this.content=function(element){if(arguments.length){var t=m(element||"#smooth-content")[0]||d.children[0];return t!==content&&(P=(content=t).getAttribute("style")||"",o.set(content,{overflow:"visible",width:"100%",boxSizing:"border-box"})),this}return content},this.wrapper=function(element){return arguments.length?(n=m(element||"#smooth-wrapper")[0]||T(content),A=n.getAttribute("style")||"",ht(),o.set(n,Y?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):n},this.effects=function(t,e){var r;if(D||(D=[]),!t)return D.slice(0);(t=m(t)).forEach((function(t){for(var i=D.length;i--;)D[i].trigger===t&&(D[i].kill(),D.splice(i,1))}));var i,n,o=e=e||{},l=o.speed,c=o.lag,h=[];for(i=0;i<t.length;i++)(n=ct(t[i],l,c,i))&&h.push(n);return(r=D).push.apply(r,h),h},this.sections=function(t,e){var r;if(E||(E=[]),!t)return E.slice(0);var n=m(t).map((function(t){return v.create({trigger:t,start:"top 120%",end:"bottom -20%",onToggle:function(e){t.style.opacity=e.isActive?"1":"0",t.style.pointerEvents=e.isActive?"all":"none"}})}));return e&&e.add?(r=E).push.apply(r,n):E=n.slice(0),n},this.content(e.content),this.wrapper(e.wrapper),this.render=function(t){return et(t||0===t?t:X)},this.getVelocity=function(){return $.getVelocity(-X)},v.scrollerProxy(n,{scrollTop:it,scrollHeight:function(){return ht()&&d.scrollHeight},fixedMarkers:!1!==e.fixedMarkers&&!!Y,content:content,getBoundingClientRect:function(){return{top:0,left:0,width:c.innerWidth,height:c.innerHeight}}}),v.defaults({scroller:n});var ft=v.getAll().filter((function(t){return t.scroller===c||t.scroller===n}));ft.forEach((function(t){return t.revert(!0)})),k=v.create({animation:o.to(J,{y:function(){return-ht()},ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function(){var t=j;t&&(J.y=X,tt(k)),et(J.y,t),K(),B&&!F&&B(r)}}),onRefreshInit:function(){M=X,J.y=0},id:"ScrollSmoother",scroller:c,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:ht,onScrubComplete:function(){$.reset(),z&&z(r)},scrub:Y||!0,onRefresh:function(t){tt(t),J.y=-H(),et(J.y),t.animation.progress(o.utils.clamp(0,1,M/-t.end))}}),this.smooth=function(t){return Y=t,arguments.length?k.scrubDuration(t):k.getTween()?k.getTween().duration():0},k.getTween()&&(k.getTween().vars.ease=e.ease||w),this.scrollTrigger=k,e.effects&&this.effects(!0===e.effects?"[data-speed], [data-lag]":e.effects,{}),e.sections&&this.sections(!0===e.sections?"[data-section]":e.sections),ft.forEach((function(t){t.vars.scroller=n,t.init(t.vars,t.animation)})),this.paused=function(t,e){return arguments.length?(!!F!==t&&(t?(k.getTween()&&k.getTween().pause(),H(-X),$.reset(),(I=v.normalizeScroll())&&I.disable(),(F=v.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return it(-X)}})).nested=C(f,"wheel,touch,scroll",!0,!1!==e)):(F.nested.kill(),F.kill(),F=0,I&&I.enable(),k.progress=(-X-k.start)/(k.end-k.start),tt(k))),this):!!F},this.kill=function(){r.paused(!1),tt(k),k.kill();for(var t=(D||[]).concat(E||[]),i=t.length;i--;)t[i].kill();v.scrollerProxy(n),v.removeEventListener("refresh",st),d.style.removeProperty("height"),n.style.cssText=A,content.style.cssText=P;var e=v.defaults({});e&&e.scroller===n&&v.defaults({scroller:c}),r.normalizer&&v.normalizeScroll(!1),clearInterval(O),_=null,c.removeEventListener("focusin",nt)},this.refresh=function(t,e){return k.refresh(t,e)},W&&(this.normalizer=v.normalizeScroll(!0===W?{debounce:!0}:W)),v.config(e),"overscrollBehavior"in c.getComputedStyle(d)&&o.set(d,{overscrollBehavior:"none"}),c.addEventListener("focusin",nt),O=setInterval(K,250),"loading"===h.readyState||requestAnimationFrame((function(){return v.refresh()}))}var e,r,D;return t.register=function(e){return l||(o=e||k(),S()&&window.document&&(c=window,h=document,f=h.documentElement,d=h.body),o&&(m=o.utils.toArray,y=o.utils.clamp,w=o.parseEase("expo"),v=o.core.globals().ScrollTrigger,o.core.globals("ScrollSmoother",t),d&&v&&([c,h,f,d],x=v.core._getVelocityProp,C=v.core._inputObserver,t.refresh=v.refresh,l=1))),l},e=t,(r=[{key:"progress",get:function(){return this.scrollTrigger.animation._time/100}}])&&n(e.prototype,r),D&&n(e,D),t}();D.version="3.10.4",D.create=function(t){return _&&t&&_.content()===m(t.content)[0]?_:new D(t)},D.get=function(){return _},k()&&o.registerPlugin(D)},245:function(t,e,r){"use strict";(function(t){var n=r(5);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),t}function f(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function m(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
2i%2?d(Object(source),!0).forEach((function(e){f(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function _(t,p){return _=Object.setPrototypeOf||function(t,p){return t.__proto__=p,t},_(t,p)}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?w(t):e}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v(t);if(e){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return x(this,r)}}function S(t,e,r){return S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var base=function(object,t){for(;!Object.prototype.hasOwnProperty.call(object,t)&&null!==(object=v(object)););return object}(t,e);if(base){var desc=Object.getOwnPropertyDescriptor(base,e);return desc.get?desc.get.call(r):desc.value}},S(t,e,r||t)}function k(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],r=!0,n=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(r=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);r=!0);}catch(t){n=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(n)throw o}}return e}(t,i)||D(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||D(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){if(t){if("string"==typeof t)return E(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(t,e):void 0}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;function O(t,e){return t(e={exports:{}},e.exports),e.exports}var A,P=O((function(t,e){!function(t){function e(t,e,r,n){var o,l=!1,c=0;function h(){o&&clearTimeout(o)}function f(){h(),l=!0}function d(){for(var f=arguments.length,d=new Array(f),m=0;m<f;m++)d[m]=arguments[m];var y=this,v=Date.now()-c;function _(){c=Date.now(),r.apply(y,d)}function w(){o=void 0}l||(n&&!o&&_(),h(),void 0===n&&v>t?_():!0!==e&&(o=setTimeout(n?w:_,void 0===n?t-v:t)))}return"boolean"!=typeof e&&(n=r,r=e,e=void 0),d.cancel=f,d}function r(t,r,n){return void 0===n?e(t,r,!1):e(t,n,!1!==r)}t.debounce=r,t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})}(e)}));(A=P)&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")&&A.default;var F=O((function(t,e){var r=e.Globals={};function n(t){return function(e,time){return t(time,e)}}e.throttle=n(P.throttle),e.debounce=n(P.debounce),e.getMergedDefinition=function(t){return r.Vue.util.mergeOptions({},t)},e.reapply=function(t,e){for(;"function"==typeof t;)t=t.call(e);return t},e.omit=function(t,e){return Object.entries(t).filter((function(t){var r=k(t,1)[0];return!e.includes(r)})).reduce((function(t,e){var r=k(e,2),n=r[0],o=r[1];return t[n]=o,t}),{})},e.addGqlError=function(t){t.graphQLErrors&&t.graphQLErrors.length&&(t.gqlError=t.graphQLErrors[0])},e.noop=function(){}})),I=F.Globals,M=F.throttle,j=F.debounce,R=(F.getMergedDefinition,F.reapply),L=F.omit,N=F.addGqlError,B=(F.noop,{query:"_skipAllQueries",subscription:"_skipAllSubscriptions"}),z=function(){function t(e,r,n){l(this,t),f(this,"type",null),f(this,"vueApolloSpecialKeys",[]),this.vm=e,this.key=r,this.initialOptions=n,this.options=Object.assign({},n),this._skip=!1,this._pollInterval=null,this._watchers=[],this._destroyed=!1,this.lastApolloOptions=null}return h(t,[{key:"autostart",value:function(){var t=this;"function"==typeof this.options.skip?this._skipWatcher=this.vm.$watch((function(){return t.options.skip.call(t.vm,t.vm,t.key)}),this.skipChanged.bind(this),{immediate:!0,deep:this.options.deep}):this.options.skip||this.allSkip?this._skip=!0:this.start(),"function"==typeof this.options.pollInterval&&(this._pollWatcher=this.vm.$watch(this.options.pollInterval.bind(this.vm),this.pollIntervalChanged.bind(this),{immediate:!0}))}},{key:"pollIntervalChanged",value:function(t,e){t!==e&&(this.pollInterval=t,null==t?this.stopPolling():this.startPolling(t))}},{key:"skipChanged",value:function(t,e){t!==e&&(this.skip=t)}},{key:"pollInterval",get:function(){return this._pollInterval},set:function(t){this._pollInterval=t}},{key:"skip",get:function(){return this._skip},set:function(t){t||this.allSkip?this.stop():this.start(),this._skip=t}},{key:"allSkip",get:function(){return this.vm.$apollo[B[this.type]]}},{key:"refresh",value:function(){this._skip||(this.stop(),this.start())}},{key:"start",value:function(){var t=this;this.starting=!0;for(var e=function(e,r){var n=r[e];if("function"==typeof t.initialOptions[n]){var o=t.initialOptions[n].bind(t.vm);t.options[n]=o();var l=function(e){t.options[n]=e,t.refresh()};t.vm.$isServer||(l=t.options.throttle?M(l,t.options.throttle):l,l=t.options.debounce?j(l,t.options.debounce):l),t._watchers.push(t.vm.$watch(o,l,{deep:t.options.deep}))}},r=0,n=["query","document","context"];r<n.length;r++)e(r,n);if("function"==typeof this.options.variables){var o=this.executeApollo.bind(this);this.vm.$isServer||(o=this.options.throttle?M(o,this.options.throttle):o,o=this.options.debounce?j(o,this.options.debounce):o),this._watchers.push(this.vm.$watch((function(){return"function"==typeof t.options.variables?t.options.variables.call(t.vm):t.options.variables}),o,{immediate:!0,deep:this.options.deep}))}else this.executeApollo(this.options.variables)}},{key:"stop",value:function(){for(var t=0,e=this._watchers;t<e.length;t++){(0,e[t])()}this.sub&&(this.sub.unsubscribe(),this.sub=null)}},{key:"generateApolloOptions",value:function(t){var e=L(this.options,this.vueApolloSpecialKeys);return e.variables=t,this.lastApolloOptions=e,e}},{key:"executeApollo",value:function(t){this.starting=!1}},{key:"nextResult",value:function(t){var e=t.error;e&&N(e)}},{key:"callHandlers",value:function(t){for(var e=!1,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(var l=0;l<t.length;l++){var c=t[l];if(c){e=!0;var h=c.apply(this.vm,n);if(void 0!==h&&!h)break}}return e}},{key:"errorHandler",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.callHandlers.apply(this,[[this.options.error,this.vm.$apollo.error,this.vm.$apollo.provider.errorHandler]].concat(e))}},{key:"catchError",value:function(t){if(N(t),!this.errorHandler(t,this.vm,this.key,this.type,this.lastApolloOptions))if(t.graphQLErrors&&0!==t.graphQLErrors.length){console.error("GraphQL execution errors for ".concat(this.t
vendor: 16,384 bytes, line 2
2ype," '").concat(this.key,"'"));for(var e=0,r=t.graphQLErrors;e<r.length;e++){var n=r[e];console.error(n)}}else if(t.networkError)console.error("Error sending the ".concat(this.type," '").concat(this.key,"'"),t.networkError);else{var o;if(console.error("[vue-apollo] An error has occurred for ".concat(this.type," '").concat(this.key,"'")),Array.isArray(t))(o=console).error.apply(o,T(t));else console.error(t)}}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.stop(),this._skipWatcher&&this._skipWatcher())}}]),t}(),U=["variables","watch","update","result","error","loadingKey","watchLoading","skip","throttle","debounce","subscribeToMore","prefetch","manual"],V=function(t){y(r,t);var e=C(r);function r(t,n,o){var c,h=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return l(this,r),t.$data.$apolloData&&!t.$data.$apolloData.queries[n]&&t.$set(t.$data.$apolloData.queries,n,{loading:!1}),f(w(c=e.call(this,t,n,o)),"type","query"),f(w(c),"vueApolloSpecialKeys",U),f(w(c),"_loading",!1),f(w(c),"_linkedSubscriptions",[]),t.$isServer&&(c.firstRun=new Promise((function(t,e){c._firstRunResolve=t,c._firstRunReject=e}))),c.vm.$isServer&&(c.options.fetchPolicy="network-only"),o.manual||(c.hasDataField=Object.prototype.hasOwnProperty.call(c.vm.$data,n),c.hasDataField?Object.defineProperty(c.vm.$data.$apolloData.data,n,{get:function(){return c.vm.$data[n]},enumerable:!0,configurable:!0}):Object.defineProperty(c.vm.$data,n,{get:function(){return c.vm.$data.$apolloData.data[n]},enumerable:!0,configurable:!0})),h&&c.autostart(),c}return h(r,[{key:"client",get:function(){return this.vm.$apollo.getClient(this.options)}},{key:"loading",get:function(){return this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]?this.vm.$data.$apolloData.queries[this.key].loading:this._loading},set:function(t){this._loading!==t&&(this._loading=t,this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]&&(this.vm.$data.$apolloData.queries[this.key].loading=t,this.vm.$data.$apolloData.loading+=t?1:-1))}},{key:"stop",value:function(){S(v(r.prototype),"stop",this).call(this),this.loadingDone(),this.observer&&(this.observer.stopPolling(),this.observer=null)}},{key:"generateApolloOptions",value:function(t){var e=S(v(r.prototype),"generateApolloOptions",this).call(this,t);return this.vm.$isServer&&delete e.pollInterval,e}},{key:"executeApollo",value:function(t){var e=JSON.stringify(t);if(this.sub){if(e===this.previousVariablesJson)return;this.sub.unsubscribe();for(var n=0,o=this._linkedSubscriptions;n<o.length;n++){o[n].stop()}}if(this.previousVariablesJson=e,this.observer=this.vm.$apollo.watchQuery(this.generateApolloOptions(t)),this.startQuerySubscription(),"no-cache"!==this.options.fetchPolicy||this.options.notifyOnNetworkStatusChange){var l=this.retrieveCurrentResult();(this.options.notifyOnNetworkStatusChange||this.observer.getCurrentResult&&!l.loading)&&this.nextResult(l)}S(v(r.prototype),"executeApollo",this).call(this,t);for(var c=0,h=this._linkedSubscriptions;c<h.length;c++){h[c].start()}}},{key:"startQuerySubscription",value:function(){this.sub&&!this.sub.closed||(this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)}))}},{key:"retrieveCurrentResult",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult();return(t||e.loading)&&(this.loading||this.applyLoadingModifier(1),this.loading=!0),e}},{key:"nextResult",value:function(t){S(v(r.prototype),"nextResult",this).call(this,t);var data=t.data,e=t.loading,n=t.error,o=t.errors,l=o&&o.length;if((n||l)&&this.firstRunReject(n),e||this.loadingDone(),l){var c=new Error("GraphQL error: ".concat(o.map((function(t){return t.message})).join(" | ")));Object.assign(c,{graphQLErrors:o,networkError:null}),S(v(r.prototype),"catchError",this).call(this,c)}if("none"!==this.observer.options.errorPolicy||!n&&!l){var h="function"==typeof this.options.result;null==data||(this.options.manual?h||console.error("".concat(this.key," query must have a 'result' hook in manual mode")):"function"==typeof this.options.update?this.setData(this.options.update.call(this.vm,data)):void 0===data[this.key]&&Object.keys(data).length?console.error("Missing ".concat(this.key," attribute on result"),data):this.setData(data[this.key])),h&&this.options.result.call(this.vm,t,this.key)}}},{key:"setData",value:function(t){this.vm.$set(this.hasDataField?this.vm.$data:this.vm.$data.$apolloData.data,this.key,t)}},{key:"catchError",value:function(t){S(v(r.prototype),"catchError",this).call(this,t),this.firstRunReject(t),this.loadingDone(t),this.nextResult(this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult()),this.resubscribeToQuery()}},{key:"resubscribeToQuery",value:function(){var t=this.observer.getLastError(),e=this.observer.getLastResult();this.observer.resetLastResults(),this.startQuerySubscription(),Object.assign(this.observer,{lastError:t,lastResult:e})}},{key:"loadingKey",get:function(){return this.options.loadingKey||this.vm.$apollo.loadingKey}},{key:"watchLoading",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.callHandlers.apply(this,[[this.options.watchLoading,this.vm.$apollo.watchLoading,this.vm.$apollo.provider.watchLoading]].concat(e,[this]))}},{key:"applyLoadingModifier",value:function(t){var e=this.loadingKey;e&&"number"==typeof this.vm[e]&&(this.vm[e]+=t),this.watchLoading(1===t,t)}},{key:"loadingDone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.loading&&this.applyLoadingModifier(-1),this.loading=!1,t||this.firstRunResolve()}},{key:"fetchMore",value:function(){var t,e=this;if(this.observer)return this.retrieveCurrentResult(!0),(t=this.observer).fetchMore.apply(t,arguments).then((function(t){return t.loading||e.loadingDone(),t}))}},{key:"subscribeToMore",value:function(){var t;if(this.observer)return{unsubscribe:(t=this.observer).subscribeToMore.apply(t,arguments)}}},{key:"refetch",value:function(t){var e=this;if(t&&(this.options.variables=t),this.observer){var r=this.observer.refetch(t).then((function(t){return t.loading||e.loadingDone(),t}));return this.retrieveCurrentResult(),r}}},{key:"setVariables",value:function(t,e){if(this.options.variables=t,this.observer){var r=this.observer.setVariables(t,e);return this.retrieveCurrentResult(),r}}},{key:"setOptions",value:function(t){if(Object.assign(this.options,t),this.observer){var e=this.observer.setOptions(t);return this.retrieveCurrentResult(),e}}},{key:"startPolling",value:function(){var t;if(this.observer)return(t=this.observer).startPolling.apply(t,arguments)}},{key:"stopPolling",value:function(){var t;if(this.observer)return(t=this.observer).stopPolling.apply(t,arguments)}},{key:"firstRunResolve",value:function(){this._firstRunResolve&&(this._firstRunResolve(),this._firstRunResolve=null)}},{key:"firstRunReject",value:function(t){this._firstRunReject&&(this._firstRunReject(t),this._firstRunReject=null)}},{key:"destroy",value:function(){S(v(r.prototype),"destroy",this).call(this),this.loading&&this.watchLoading(!1,-1),this.loading=!1}}]),r}(z),W=function(t){y(r,t);var e=C(r);function r(t,n,o){var c,h=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return l(this,r),f(w(c=e.call(this,t,n,o)),"type","subscription"),f(w(c),"vueApolloSpecialKeys",["variables","result","error","throttle","debounce","linkedQuery"]),h&&c.autostart(),c}return h(r,[{key:"generateApolloOptions",value:function(t){var e=S(v(r.prototype),"generateApolloOptions",this).call(this,t);return e.onError=this.catchError.bind(this),e}},{key:"executeApollo",value:function(t){var e=JSON.stringify(t);if(this.sub){if(e===this.previousVariablesJson)return;this.sub.unsubscribe()}this.previousVariablesJson=e;var n=this.generateApolloOptions(t);if("function"==typeof n.updateQuery&&(n.updateQuery=n.updateQuery.bind(this.vm)),this.options.linkedQuery){if("function"==typeof this.options.result){var o=this.options.result.bind(this.vm),l=n.updateQuery&&n.updateQuery.bind(this.vm);n.updateQuery=function(){return o.apply(void 0,arguments),l&&l.apply(void 0,arguments)}}this.sub=this.options.linkedQuery.subscribeToMore(n)}else this.observer=this.vm.$apollo.subscribe(n),this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)});S(v(r.prototype),"executeApollo",this).call(this,t)}},{key:"nextResult",value:function(data){S(v(r.prototype),"nextResult",this).call(this,data),"function"==typeof this.options.result&&this.options.result.call(this.vm,data,this.key)}},{key:"catchError",value:function(t){S(v(r.prototype),"catchError",this).call(this,t),this.skip||(this.stop(),this.start())}}]),r}(z),H=function(){function t(e){l(this,t),this._apolloSubscriptions=[],this._watchers=[],this.vm=e,this.queries={},this.subscriptions={},this.client=void 0,this.loadingKey=void 0,this.error=void 0}return h(t,[{key:"provider",get:function(){return this.vm.$apolloProvider}},{key:"getClient",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t||!t.client){if("object"===o(this.client))return this.client;if(this.client){if(this.provider.clients){var e=this.provider.clients[this.client];if(!e)throw new Error("[vue-apollo] Missing client '".concat(this.client,"' in 'apolloProvider'"));return e}throw new Error("[vue-apollo] Missing 'clients' options in 'apolloProvider'")}return this.provider.defaultClient}var r=this.provider.clients[t.client];if(!r)throw new Error("[vue-apollo] Missing client '".concat(t.client,"' in 'apolloProvider'"));return r}},{key:"query",value:function(t){return this.getClient(t).query(t)}},{key:"watchQuery",value:function(t){var e=this,r=this.getClient(t).watchQuery(t),n=r.subscribe.bind(r);return r.subscribe=function(t){var sub=n(t);return e._apolloSubscriptions.push(sub),sub},r}},{key:"mutate",value:function(t){return this.getClient(t).mutate(t)}},{key:"subscribe",value:function(t){var e=this;if(!this.vm.$isServer){var r=this.getClient(t).subscribe(t),n=r.subscribe.bind(r);return r.subscribe=function(t){var sub=n(t);return e._apolloSubscriptions.push(sub),sub},r}}},{key:"loading",get:function(){return 0!==this.vm.$data.$apolloData.loading}},{key:"data",get:function(){return this.vm.$data.$apolloData.data}},{key:"addSmartQuery",value:function(t,e){var r=this,n=R(e,this.vm);n.query||(n={query:n});var o,l=this.vm.$options.apollo,c=this.provider.defaultOptions;if(c&&c.$query&&(o=c.$query),l&&l.$query&&(o=m(m({},o||{}),l.$query)),o)for(var h in o)void 0===n[h]&&(n[h]=o[h]);var f=this.queries[t]=new V(this.vm,t,n,!1);if(this.vm.$isServer&&!1===n.prefetch||f.autostart(),!this.vm.$isServer){var d=n.subscribeToMore;d&&(Array.isArray(d)?d.forEach((function(sub,e){r.addSmartSubscription("".concat(t).concat(e),m(m({},sub),{},{linkedQuery:f}))})):this.addSmartSubscription(t,m(m({},d),{},{linkedQuery:f})))}return f}},{key:"addSmartSubscription",value:function(t,e){if(!this.vm.$isServer){e=R(e,this.vm);var r=this.subscriptions[t]=new W(this.vm,t,e,!1);return r.autostart(),e.linkedQuery&&e.linkedQuery._linkedSubscriptions.push(r),r}}},{key:"defineReactiveSetter",value:function(t,e,r){var n=this;this._watchers.push(this.vm.$watch(e,(function(e){n[t]=e}),{immediate:!0,deep:r}))}},{key:"skipAllQueries",set:function(t){for(var e in this._skipAllQueries=t,this.queries)this.queries[e].skip=t}},{key:"skipAllSubscriptions",set:function(t){for(var e in this._skipAllSubscriptions=t,this.subscriptions)this.subscriptions[e].skip=t}},{key:"skipAll",set:function(t){this.skipAllQueries=t,this.skipAllSubscriptions=t}},{key:"destroy",value:function(){for(var t=0,e=this._watchers;t<e.length;t++){(0,e[t])()}for(var r in this.queries)this.queries[r].destroy();for(var n in this.subscriptions)this.subscriptions[n].destroy();this._apolloSubscriptions.forEach((function(sub){sub.unsubscribe()}))}}]),t}(),Y=function(){function t(e){if(l(this,t),!e)throw new Error("Options argument required");this.clients=e.clients||{},e.defaultClient&&(this.clients.defaultClient=this.defaultClient=e.defaultClient),this.defaultOptions=e.defaultOptions,this.watchLoading=e.watchLoading,this.errorHandler=e.errorHandler,this.prefetch=e.prefetch}return h(t,[{key:"provide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$apolloProvider";return console.warn("<ApolloProvider>.provide() is deprecated. Use the 'apolloProvider' option instead with the provider object directly."),f({},t,this)}}]),t}();var X={name:"ApolloQuery",provide:function(){return{getDollarApollo:this.getDollarApollo,getApolloQuery:this.getApolloQuery}},props:{query:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},fetchPolicy:{type:String,default:void 0},pollInterval:{type:Number,default:void 0},notifyOnNetworkStatusChange:{type:Boolean,default:void 0},context:{type:Object,default:void 0},update:{type:Function,default:function(data){return data}},skip:{type:Boolean,default:!1},debounce:{type:Number,default:0},throttle:{type:Number,default:0},clientId:{type:String,default:void 0},deep:{type:Boolean,default:void 0},tag:{type:String,default:"div"},prefetch:{type:Boolean,default:!0},options:{type:Object,default:function(){return{}}}},data:function(){return{result:{data:null,loading:!1,networkStatus:7,error:null},times:0}},watch:{fetchPolicy:function(t){this.$apollo.queries.query.setOptions({fetchPolicy:t})},pollInterval:function(t){this.$apollo.queries.query.setOptions({pollInterval:t})},notifyOnNetworkStatusChange:function(t){this.$apollo.queries.query.setOptions({notifyOnNetworkStatusChange:t})},"$data.$apolloData.loading":function(t){this.$emit("loading",!!t)}},apollo:{$client:function(){return this.clientId},query:function(){return m(m({query:function(){return"function"==typeof this.query?this.query(n.a):this.query},variables:function(){return this.variables},fetchPolicy:this.fetchPolicy,pollInterval:this.pollInterval,debounce:this.debounce,throttle:this.throttle,notifyOnNetworkStatusChange:this.notifyOnNetworkStatusChange,context:function(){return this.context},skip:function(){return this.skip},deep:this.deep,prefetch:this.prefetch},this.options),{},{manual:!0,result:function(t){var e=t,r=e.errors,n=e.loading,o=e.networkStatus,l=t.error;t=Object.assign({},t),r&&r.length&&((l=new Error("Apollo errors occurred (".concat(r.length,")"))).graphQLErrors=r);var data={};n?Object.assign(data,this.$_previousData,t.data):l?Object.assign(data,this.$apollo.queries.query.observer.getLastResult()||{},t.data):(data=t.data,this.$_previousData=t.data);var c=function(data){return data&&Object.keys(data).length>0}(data);this.result={data:c?this.update(data):void 0,fullData:c?data:void 0,loading:n,error:l,networkStatus:o},this.times=++this.$_times,this.$emit("result",this.result)},error:function(t){this.result.loading=!1,this.result.error=t,this.$emit("error",t)}})}},created:function(){this.$_times=0},methods:{getDollarApollo:function(){return this.$apollo},getApolloQuery:function(){return this.$apollo.queries.query}},render:function(t){var e=this.$scopedSlots.default({result:this.result,times:this.times,query:this.$apollo.queries.query,isLoading:this.$apolloData.loading,gqlError:this.result&&this.result.error&&this.result.error.gqlError});return e=Array.isArray(e)?e.concat(this.$slots.default):[e].concat(this.$slots.default),this.tag?t(this.tag,e):e[0]}},G=0,Q={name:"ApolloSubscribeToMore",inject:["getDollarApollo","getApolloQuery"],props:{document:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},updateQuery:{type:Function,default:void 0}},watch:{document:"refresh",variables:"refresh"},created:function(){this.$_key="sub_component_".concat(G++)},mounted:function(){this.refresh()},beforeDestroy:function(){this.destroy()},methods:{destroy:function(){this.$_sub&&this.$_sub.destroy()},refresh:function(){this.destroy();var t=this.document;"function"==typeof t&&(t=t(n.a)),this.$_sub=this.getDollarApollo().addSmartSubscription(this.$_key,{document:t,variables:this.variables,updateQuery:this.updateQuery,linkedQuery:this.getApolloQuery()})}},render:function(t){return null}},$={props:{mutation:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},optimisticResponse:{type:Object,de
2fault:void 0},update:{type:Function,default:void 0},refetchQueries:{type:Function,default:void 0},clientId:{type:String,default:void 0},tag:{type:String,default:"div"},context:{type:Object,default:void 0}},data:function(){return{loading:!1,error:null}},watch:{loading:function(t){this.$emit("loading",t)}},methods:{mutate:function(t){var e=this;this.loading=!0,this.error=null;var r=this.mutation;return"function"==typeof r&&(r=r(n.a)),this.$apollo.mutate(m({mutation:r,client:this.clientId,variables:this.variables,optimisticResponse:this.optimisticResponse,update:this.update,refetchQueries:this.refetchQueries,context:this.context},t)).then((function(t){e.$emit("done",t),e.loading=!1})).catch((function(t){N(t),e.error=t,e.$emit("error",t),e.loading=!1}))}},render:function(t){var e=this.$scopedSlots.default({mutate:this.mutate,loading:this.loading,error:this.error,gqlError:this.error&&this.error.gqlError});return e=Array.isArray(e)?e.concat(this.$slots.default):[e].concat(this.$slots.default),this.tag?t(this.tag,e):e[0]}};function K(t,e){return void 0!==t&&Object.prototype.hasOwnProperty.call(t,e)}function J(){var t=this.$options,e=t.apolloProvider;if(e)this.$apolloProvider="function"==typeof e?e():e;else if(t.parent&&t.parent.$apolloProvider)this.$apolloProvider=t.parent.$apolloProvider;else if(t.provide){var r="function"==typeof t.provide?t.provide.call(this):t.provide;r&&r.$apolloProvider&&(this.$apolloProvider=r.$apolloProvider)}}function Z(){var t=this;this.$_apolloInitData={};var e=this.$options.apollo;if(e){var r=function(r){"$"!==r.charAt(0)&&(e[r].manual||K(t.$options.props,r)||K(t.$options.computed,r)||K(t.$options.methods,r)||Object.defineProperty(t,r,{get:function(){return t.$data.$apolloData.data[r]},set:function(e){return t.$_apolloInitData[r]=e},enumerable:!0,configurable:!0}))};for(var n in e)r(n)}}function tt(){var t=this,e=this.$apolloProvider;if(!this._apolloLaunched&&e){this._apolloLaunched=!0;var r=this.$options.apollo;if(r){for(var n in this.$_apolloPromises=[],r.$init||(r.$init=!0,e.defaultOptions&&(r=this.$options.apollo=Object.assign({},e.defaultOptions,r))),et(this.$apollo,"skipAll",r.$skipAll,r.$deep),et(this.$apollo,"skipAllQueries",r.$skipAllQueries,r.$deep),et(this.$apollo,"skipAllSubscriptions",r.$skipAllSubscriptions,r.$deep),et(this.$apollo,"client",r.$client,r.$deep),et(this.$apollo,"loadingKey",r.$loadingKey,r.$deep),et(this.$apollo,"error",r.$error,r.$deep),et(this.$apollo,"watchLoading",r.$watchLoading,r.$deep),Object.defineProperty(this,"$apolloData",{get:function(){return t.$data.$apolloData},enumerable:!0,configurable:!0}),r)if("$"!==n.charAt(0)){var o=r[n],l=this.$apollo.addSmartQuery(n,o);this.$isServer&&(o=R(o,this),!1===e.prefetch||!1===o.prefetch||!1===r.$prefetch||l.skip||this.$_apolloPromises.push(l.firstRun))}if(r.subscribe&&I.Vue.util.warn("vue-apollo -> `subscribe` option is deprecated. Use the `$subscribe` option instead."),r.$subscribe)for(var c in r.$subscribe)this.$apollo.addSmartSubscription(c,r.$subscribe[c])}}}function et(t,e,r,n){void 0!==r&&("function"==typeof r?t.defineReactiveSetter(e,r,n):t[e]=r)}function it(){this.$_apollo&&this.$_apollo.destroy()}function nt(t,e){t.mixin(m(m(m({},"1"===e?{init:J}:{}),"2"===e?{data:function(){return{$apolloData:{queries:{},loading:0,data:this.$_apolloInitData}}},beforeCreate:function(){J.call(this),Z.call(this)},serverPrefetch:function(){var t=this;if(this.$_apolloPromises)return Promise.all(this.$_apolloPromises).then((function(){it.call(t)})).catch((function(e){return it.call(t),Promise.reject(e)}))}}:{}),{},{created:tt,destroyed:it}))}var ot=["$subscribe"];Y.install=function t(e,r){if(!t.installed){t.installed=!0,I.Vue=e;var n=e.version.substr(0,e.version.indexOf(".")),o=e.config.optionMergeStrategies.methods;e.config.optionMergeStrategies.apollo=function(t,e,r){if(!t)return e;if(!e)return t;for(var n=Object.assign({},L(t,ot),t.data),l=Object.assign({},L(e,ot),e.data),map={},i=0;i<ot.length;i++){var c=ot[i];map[c]=o(t[c],e[c])}return Object.assign(map,o(n,l))},Object.prototype.hasOwnProperty.call(e,"$apollo")||Object.defineProperty(e.prototype,"$apollo",{get:function(){return this.$_apollo||(this.$_apollo=new H(this)),this.$_apollo}}),nt(e,n),"2"===n&&(e.component("ApolloQuery",X),e.component("ApolloQuery",X),e.component("ApolloSubscribeToMore",Q),e.component("ApolloSubscribeToMore",Q),e.component("ApolloMutation",$),e.component("ApolloMutation",$))}},Y.version="3.1.0";var st=null;"undefined"!=typeof window?st=window.Vue:void 0!==t&&(st=t.Vue),st&&st.use(Y),e.a=Y}).call(this,r(48))},246:function(t,e,r){"use strict";r.d(e,"a",(function(){return I}));var n=r(36),o=(r(20),r(99),r(22),r(69),r(102),r(51),r(12),r(25),/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uD
2FC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/);function l(t){var e=t.nodeType,r="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)r+=l(t)}else if(3===e||4===e)return t.nodeValue;return r}var c,h,f,d=/(?:\r|\n|\t\t)/g,m=/(?:\s\s+)/g,y=function(element){return h.getComputedStyle(element)},v=Array.isArray,_=[].slice,w=function(t,e){var r;return v(t)?t:"string"===(r=Object(n.a)(t))&&!e&&t?_.call(c.querySelectorAll(t),0):t&&"object"===r&&"length"in t?_.call(t,0):t?[t]:[]},x=function(t){return"absolute"===t.position||!0===t.absolute},C=function(text,t){for(var s,i=t.length;--i>-1;)if(s=t[i],text.substr(0,s.length)===s)return s.length},S=function(t,e){void 0===t&&(t="");var r=~t.indexOf("++"),n=1;return r&&(t=t.split("++").join("")),function(){return"<"+e+" style='position:relative;display:inline-block;'"+(t?" class='"+t+(r?n++:"")+"'>":">")}},k=function t(element,e,r){var n=element.nodeType;if(1===n||9===n||11===n)for(element=element.firstChild;element;element=element.nextSibling)t(element,e,r);else 3!==n&&4!==n||(element.nodeValue=element.nodeValue.split(e).join(r))},T=function(a,t){for(var i=t.length;--i>-1;)a.push(t[i])},D=function(t,e,r){for(var n;t&&t!==e;){if(n=t._next||t.nextSibling)return n.textContent.charAt(0)===r;t=t.parentNode||t._parent}},E=function t(e){var i,r,n=w(e.childNodes),o=n.length;for(i=0;i<o;i++)(r=n[i])._isSplit?t(r):i&&r.previousSibling&&3===r.previousSibling.nodeType?(r.previousSibling.nodeValue+=3===r.nodeType?r.nodeValue:r.firstChild.nodeValue,e.removeChild(r)):3!==r.nodeType&&(e.insertBefore(r.firstChild,r),e.removeChild(r))},O=function(t,e){return parseFloat(e[t])||0},A=function(element,t,e,r,n,o,l){var i,h,f,d,m,v,_,w,style,C,S,A,P=y(element),F=O("paddingLeft",P),I=-999,M=O("borderBottomWidth",P)+O("borderTopWidth",P),j=O("borderLeftWidth",P)+O("borderRightWidth",P),R=O("paddingTop",P)+O("paddingBottom",P),L=O("paddingLeft",P)+O("paddingRight",P),N=O("fontSize",P)*(t.lineThreshold||.2),B=P.textAlign,z=[],U=[],V=[],W=t.wordDelimiter||" ",H=t.tag?t.tag:t.span?"span":"div",Y=t.type||t.split||"chars,words,lines",X=n&&~Y.indexOf("lines")?[]:null,G=~Y.indexOf("words"),Q=~Y.indexOf("chars"),$=x(t),K=t.linesClass,J=~(K||"").indexOf("++"),Z=[],tt="flex"===P.display,et=element.style.display;for(J&&(K=K.split("++").join("")),tt&&(element.style.display="block"),f=(h=element.getElementsByTagName("*")).length,m=[],i=0;i<f;i++)m[i]=h[i];if(X||$)for(i=0;i<f;i++)((v=(d=m[i]).parentNode===element)||$||Q&&!G)&&(A=d.offsetTop,X&&v&&Math.abs(A-I)>N&&("BR"!==d.nodeName||0===i)&&(_=[],X.push(_),I=A),$&&(d._x=d.offsetLeft,d._y=A,d._w=d.offsetWidth,d._h=d.offsetHeight),X&&((d._isSplit&&v||!Q&&v||G&&v||!G&&d.parentNode.parentNode===element&&!d.parentNode._isSplit)&&(_.push(d),d._x-=F,D(d,element,W)&&(d._wordEnd=!0)),"BR"===d.nodeName&&(d.nextSibling&&"BR"===d.nextSibling.nodeName||0===i)&&X.push([])));for(i=0;i<f;i++)if(v=(d=m[i]).parentNode===element,"BR"!==d.nodeName)if($&&(style=d.style,G||v||(d._x+=d.parentNode._x,d._y+=d.parentNode._y),style.left=d._x+"px",style.top=d._y+"px",style.position="absolute",style.display="block",style.width=d._w+1+"px",style.height=d._h+"px"),!G&&Q)if(d._isSplit)for(d._next=h=d.nextSibling,d.parentNode.appendChild(d);h&&3===h.nodeType&&" "===h.textContent;)d._next=h.nextSibling,d.parentNode.appendChild(h),h=h.nextSibling;else d.parentNode._isSplit?(d._parent=d.parentNode,!d.previousSibling&&d.firstChild&&(d.firstChild._isFirst=!0),d.nextSibling&&" "===d.nextSibling.textContent&&!d.nextSibling.nextSibling&&Z.push(d.nextSibling),d._next=d.nextSibling&&d.nextSibling._isFirst?null:d.nextSibling,d.parentNode.removeChild(d),m.splice(i--,1),f--):v||(A=!d.nextSibling&&D(d.parentNode,element,W),d.parentNode._parent&&d.parentNode._parent.appendChild(d),A&&d.parentNode.appendChild(c.createTextNode(" ")),"span"===H&&(d.style.display="inline"),z.push(d));else d.parentNode._isSplit&&!d._isSplit&&""!==d.innerHTML?U.push(d):Q&&!d._isSplit&&("span"===H&&(d.style.display="inline"),z.push(d));else X||$?(d.parentNode&&d.parentNode.removeChild(d),m.splice(i--,1),f--):G||element.appendChild(d);for(i=Z.length;--i>-1;)Z[i].parentNode.removeChild(Z[i]);if(X){for($&&(C=c.createElement(H),element.appendChild(C),S=C.offsetWidth+"px",A=C.offsetParent===element?0:element.offsetLeft,element.removeChild(C)),style=element.style.cssText,element.style.cssText="display:none;";element.firstChild;)element.removeChild(element.firstChild);for(w=" "===W&&(!$||!G&&!Q),i=0;i<X.length;i++){for(_=X[i],(C=c.createElement(H)).style.cssText="display:block;text-align:"+B+";position:"+($?"absolute;":"relative;"),K&&(C.className=K+(J?i+1:"")),V.push(C),f=_.length,h=0;h<f;h++)"BR"!==_[h].nodeName&&(d=_[h],C.appendChild(d),w&&d._wordEnd&&C.appendChild(c.createTextNode(" ")),$&&(0===h&&(C.style.top=d._y+"px",C.style.left=F+A+"px"),d.style.top="0px",A&&(d.style.left=d._x-A+"px")));0===f?C.innerHTML=" ":G||Q||(E(C),k(C,String.fromCharCode(160)," ")),$&&(C.style.width=S,C.style.height=d._h+"px"),element.appendChild(C)}element.style.cssText=style}$&&(l>element.clientHeight&&(element.style.height=l-R+"px",element.clientHeight<l&&(element.style.height=l+M+"px")),o>element.clientWidth&&(element.style.width=o-L+"px",element.clientWidth<o&&(element.style.width=o+j+"px"))),tt&&(et?element.style.display=et:element.style.removeProperty("display")),T(e,z),G&&T(r,U),T(n,V)},P=function(element,t,e,r){var text,n,i,h,f,y,v,_,w=t.tag?t.tag:t.span?"span":"div",S=~(t.type||t.split||"chars,words,lines").indexOf("chars"),T=x(t),D=t.wordDelimiter||" ",E=" "!==D?"":T?"­ ":" ",O="</"+w+">",A=1,P=t.specialChars?"function"==typeof t.specialChars?t.specialChars:C:null,F=c.createElement("div"),I=element.parentNode;for(I.insertBefore(F,element),F.textContent=element.nodeValue,I.removeChild(element),v=-1!==(text=l(element=F)).indexOf("<"),!1!==t.reduceWhiteSpace&&(text=text.replace(m," ").replace(d,"")),v&&(text=text.split("<").join("{{LT}}")),f=text.length,n=(" "===text.charAt(0)?E:"")+e(),i=0;i<f;i++)if(y=text.charAt(i),P&&(_=P(text.substr(i),t.specialChars)))y=text.substr(i,_||1),n+=S&&" "!==y?r()+y+"</"+w+">":y,i+=_-1;else if(y===D&&text.charAt(i-1)!==D&&i){for(n+=A?O:"",A=0;text.charAt(i+1)===D;)n+=E,i++;i===f-1?n+=E:")"!==text.charAt(i+1)&&(n+=E+e(),A=1)}else"{"===y&&"{{LT}}"===text.substr(i,6)?(n+=S?r()+"{{LT}}
vendor: 9,450 bytes, line 2
2</"+w+">":"{{LT}}",i+=5):y.charCodeAt(0)>=55296&&y.charCodeAt(0)<=56319||text.charCodeAt(i+1)>=65024&&text.charCodeAt(i+1)<=65039?(h=((text.substr(i,12).split(o)||[])[1]||"").length||2,n+=S&&" "!==y?r()+text.substr(i,h)+"</"+w+">":text.substr(i,h),i+=h-1):n+=S&&" "!==y?r()+y+"</"+w+">":y;element.outerHTML=n+(A?O:""),v&&k(I,"{{LT}}","<")},F=function t(element,e,r,n){var i,o,l=w(element.childNodes),c=l.length,h=x(e);if(3!==element.nodeType||c>1){for(e.absolute=!1,i=0;i<c;i++)(o=l[i])._next=o._isFirst=o._parent=o._wordEnd=null,(3!==o.nodeType||/\S+/.test(o.nodeValue))&&(h&&3!==o.nodeType&&"inline"===y(o).display&&(o.style.display="inline-block",o.style.position="relative"),o._isSplit=!0,t(o,e,r,n));return e.absolute=h,void(element._isSplit=!0)}P(element,e,r,n)},I=function(){function t(element,t){f||(c=document,h=window,f=1),this.elements=w(element),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=t||{},this.split(t)}var e=t.prototype;return e.split=function(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e,r,n,i=this.elements.length,o=t.tag?t.tag:t.span?"span":"div",l=S(t.wordsClass,o),c=S(t.charsClass,o);--i>-1;)n=this.elements[i],this._originals[i]=n.innerHTML,e=n.clientHeight,r=n.clientWidth,F(n,t,l,c),A(n,t,this.chars,this.words,this.lines,r,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var t=this._originals;if(!t)throw"revert() call wasn't scoped properly.";return this.elements.forEach((function(e,i){return e.innerHTML=t[i]})),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},t.create=function(element,e){return new t(element,e)},t}();I.version="3.10.4"},3:function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},i=0;i<e.length;i++){var o=e[i],l=o[0],c={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};n[l]?n[l].parts.push(c):r.push(n[l]={id:l,parts:[c]})}return r}r.r(e),r.d(e,"default",(function(){return _}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l={},head=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,h=0,f=!1,d=function(){},m=null,y="data-vue-ssr-id",v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function _(t,e,r,o){f=r,m=o||{};var c=n(t,e);return w(c),function(e){for(var r=[],i=0;i<c.length;i++){var o=c[i];(h=l[o.id]).refs--,r.push(h)}e?w(c=n(t,e)):c=[];for(i=0;i<r.length;i++){var h;if(0===(h=r[i]).refs){for(var f=0;f<h.parts.length;f++)h.parts[f]();delete l[h.id]}}}}function w(t){for(var i=0;i<t.length;i++){var e=t[i],r=l[e.id];if(r){r.refs++;for(var n=0;n<r.parts.length;n++)r.parts[n](e.parts[n]);for(;n<e.parts.length;n++)r.parts.push(C(e.parts[n]));r.parts.length>e.parts.length&&(r.parts.length=e.parts.length)}else{var o=[];for(n=0;n<e.parts.length;n++)o.push(C(e.parts[n]));l[e.id]={id:e.id,refs:1,parts:o}}}}function x(){var t=document.createElement("style");return t.type="text/css",head.appendChild(t),t}function C(t){var e,r,n=document.querySelector("style["+y+'~="'+t.id+'"]');if(n){if(f)return d;n.parentNode.removeChild(n)}if(v){var o=h++;n=c||(c=x()),e=T.bind(null,n,o,!1),r=T.bind(null,n,o,!0)}else n=x(),e=D.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}var S,k=(S=[],function(t,e){return S[t]=e,S.filter(Boolean).join("\n")});function T(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=k(e,o);else{var l=document.createTextNode(o),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(l,c[e]):t.appendChild(l)}}function D(t,e){var r=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),m.ssrId&&t.setAttribute(y,e.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},307:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},308:function(t,e,r){"use strict";(function(e,n){var o=r(176);t.exports=T;var l,c=r(307);T.ReadableState=k;r(175).EventEmitter;var h=function(t,e){return t.listeners(e).length},f=r(309),d=r(217).Buffer,m=e.Uint8Array||function(){};var y=Object.create(r(138));y.inherits=r(103);var v=r(562),_=void 0;_=v&&v.debuglog?v.debuglog("stream"):function(){};var w,x=r(563),C=r(310);y.inherits(T,f);var S=["error","close","destroy","pause","resume"];function k(t,e){t=t||{};var n=e instanceof(l=l||r(104));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,c=t.readableHighWaterMark,h=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(c||0===c)?c:h,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new x,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(w||(w=r(311).StringDecoder),this.decoder=new w(t.encoding),this.encoding=t.encoding)}function T(t){if(l=l||r(104),!(this instanceof T))return new T(t);this._readableState=new k(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),f.call(this)}function D(t,e,r,n,o){var l,c=t._readableState;null===e?(c.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,P(t)}(t,c)):(o||(l=function(t,e){var r;n=e,d.isBuffer(n)||n instanceof m||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(c,e)),l?t.emit("error",l):c.objectMode||e&&e.length>0?("string"==typeof e||c.objectMode||Object.getPrototypeOf(e)===d.prototype||(e=function(t){return d.from(t)}(e)),n?c.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):E(t,c,e,!0):c.ended?t.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,c.decoder&&!r?(e=c.decoder.write(e),c.objectMode||0!==e.length?E(t,c,e,!1):I(t,c)):E(t,c,e,!1))):n||(c.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(c)}function E(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&P(t)),I(t,e)}Object.defineProperty(T.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=C.destroy,T.prototype._undestroy=C.undestroy,T.prototype._destroy=function(t,e){this.push(null),e(t)},T.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=d.from(t,e),e=""),r=!0),D(this,t,e,!1,r)},T.prototype.unshift=function(t){return D(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){return w||(w=r(311).StringDecoder),this._readableState.decoder=new w(t),this._readableState.encoding=t,this};var O=8388608;function A(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=O?t=O:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function P(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(_("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?o.nextTick(F,t):F(t))}function F(t){_("emit readable"),t.emit("readable"),L(t)}function I(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(M,t,e))}function M(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(_("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function j(t){_("readable nexttick read 0"),t.read(0)}function R(t,e){e.reading||(_("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),L(t),e.flowing&&!e.reading&&t.read(0)}function L(t){var e=t._readableState;for(_("flow",e.flowing);e.flowing&&null!==t.read(););}function N(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var p=e.head,r=1,n=p.data;t-=n.length;for(;p=p.next;){var o=p.data,l=t>o.length?o.length:t;if(l===o.length?n+=o:n+=o.slice(0,t),0===(t-=l)){l===o.length?(++r,p.next?e.head=p.next:e.head=e.tail
vendor: 9,318 bytes, line 2
2=null):(e.head=p,p.data=o.slice(l));break}++r}return e.length-=r,n}(t,e):function(t,e){var r=d.allocUnsafe(t),p=e.head,n=1;p.data.copy(r),t-=p.data.length;for(;p=p.next;){var o=p.data,l=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,l),0===(t-=l)){l===o.length?(++n,p.next?e.head=p.next:e.head=e.tail=null):(e.head=p,p.data=o.slice(l));break}++n}return e.length-=n,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function B(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,o.nextTick(z,e,t))}function z(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function U(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}T.prototype.read=function(t){_("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return _("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?B(this):P(this),null;if(0===(t=A(t,e))&&e.ended)return 0===e.length&&B(this),null;var n,o=e.needReadable;return _("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&_("length less than watermark",o=!0),e.ended||e.reading?_("reading or ended",o=!1):o&&(_("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=A(r,e))),null===(n=t>0?N(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&B(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(t,e){var r=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=t;break;case 1:l.pipes=[l.pipes,t];break;default:l.pipes.push(t)}l.pipesCount+=1,_("pipe count=%d opts=%j",l.pipesCount,e);var f=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?m:T;function d(e,n){_("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,_("cleanup"),t.removeListener("close",S),t.removeListener("finish",k),t.removeListener("drain",y),t.removeListener("error",C),t.removeListener("unpipe",d),r.removeListener("end",m),r.removeListener("end",T),r.removeListener("data",x),v=!0,!l.awaitDrain||t._writableState&&!t._writableState.needDrain||y())}function m(){_("onend"),t.end()}l.endEmitted?o.nextTick(f):r.once("end",f),t.on("unpipe",d);var y=function(t){return function(){var e=t._readableState;_("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&h(t,"data")&&(e.flowing=!0,L(t))}}(r);t.on("drain",y);var v=!1;var w=!1;function x(e){_("ondata"),w=!1,!1!==t.write(e)||w||((1===l.pipesCount&&l.pipes===t||l.pipesCount>1&&-1!==U(l.pipes,t))&&!v&&(_("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,w=!0),r.pause())}function C(e){_("onerror",e),T(),t.removeListener("error",C),0===h(t,"error")&&t.emit("error",e)}function S(){t.removeListener("finish",k),T()}function k(){_("onfinish"),t.removeListener("close",S),T()}function T(){_("unpipe"),r.unpipe(t)}return r.on("data",x),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?c(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",C),t.once("close",S),t.once("finish",k),t.emit("pipe",r),l.flowing||(_("pipe resume"),r.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,r);return this}var l=U(e.pipes,t);return-1===l||(e.pipes.splice(l,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},T.prototype.on=function(t,e){var r=f.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&P(this):o.nextTick(j,this))}return r},T.prototype.addListener=T.prototype.on,T.prototype.resume=function(){var t=this._readableState;return t.flowing||(_("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(R,t,e))}(this,t)),this},T.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(_("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(_("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<S.length;o++)t.on(S[o],this.emit.bind(this,S[o]));return this._read=function(e){_("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),T._fromList=N}).call(this,r(48),r(100))},309:function(t,e,r){t.exports=r(175).EventEmitter},310:function(t,e,r){"use strict";var n=r(176);function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,l=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return l||c?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(o,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(o,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},311:function(t,e,r){"use strict";var n=r(566).Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function l(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=f,this.end=d,e=4;break;case"utf8":this.fillLast=h,e=4;break;case"base64":this.text=m,this.end=y,e=3;break;default:return this.write=v,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function c(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function h(t){var p=this.lastTotal-this.lastNeed,e=function(t,e,p){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==e?e:this.lastNeed<=t.length?(t.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,p,0,t.length),void(this.lastNeed-=t.length))}function f(t,i){if((t.length-i)%2==0){var e=t.toString("utf16le",i);if(e){var r=e.charCodeAt(e.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",i,t.length-1)}function d(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function m(t,i){var e=(t.length-i)%3;return 0===e?t.toString("base64",i):(this.lastNeed=3-e,this.lastTotal=3,1===e?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",i,t.length-e))}function y(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function v(t){return t.toString(this.encoding)}function _(t){return t&&t.length?this.write(t):""}e.StringDecoder=l,l.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},l.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}
vendor: 4,861 bytes, line 2
2,l.prototype.text=function(t,i){var e=function(t,e,i){var r=e.length-1;if(r<i)return 0;var n=c(e[r]);if(n>=0)return n>0&&(t.lastNeed=n-1),n;if(--r<i||-2===n)return 0;if((n=c(e[r]))>=0)return n>0&&(t.lastNeed=n-2),n;if(--r<i||-2===n)return 0;if((n=c(e[r]))>=0)return n>0&&(2===n?n=0:t.lastNeed=n-3),n;return 0}(this,t,i);if(!this.lastNeed)return t.toString("utf8",i);this.lastTotal=e;var r=t.length-(e-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",i,r)},l.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},312:function(t,e,r){"use strict";t.exports=c;var n=r(104),o=Object.create(r(138));function l(t,data){var e=this._transformState;e.transforming=!1;var r=e.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));e.writechunk=null,e.writecb=null,null!=data&&this.push(data),r(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);n.call(this,t),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"==typeof this._flush?this._flush((function(e,data){f(t,e,data)})):f(this,null,null)}function f(t,e,data){if(e)return t.emit("error",e);if(null!=data&&t.push(data),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}o.inherits=r(103),o.inherits(c,n),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},c.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},c.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))}},4:function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"addTypenameToDocument",(function(){return st})),r.d(e,"argumentsObjectFromField",(function(){return x})),r.d(e,"assign",(function(){return B})),r.d(e,"buildQueryFromSelectionSet",(function(){return mt})),r.d(e,"canUseWeakMap",(function(){return vt})),r.d(e,"checkDocument",(function(){return U})),r.d(e,"cloneDeep",(function(){return _t})),r.d(e,"createFragmentMap",(function(){return $})),r.d(e,"getDefaultValues",(function(){return K})),r.d(e,"getDirectiveInfoFromField",(function(){return P})),r.d(e,"getDirectiveNames",(function(){return I})),r.d(e,"getDirectivesFromDocument",(function(){return ht})),r.d(e,"getEnv",(function(){return xt})),r.d(e,"getFragmentDefinition",(function(){return G})),r.d(e,"getFragmentDefinitions",(function(){return Y})),r.d(e,"getFragmentQueryDocument",(function(){return N})),r.d(e,"getInclusionDirectives",(function(){return L})),r.d(e,"getMainDefinition",(function(){return Q})),r.d(e,"getMutationDefinition",(function(){return z})),r.d(e,"getOperationDefinition",(function(){return V})),r.d(e,"getOperationDefinitionOrDie",(function(){return W})),r.d(e,"getOperationName",(function(){return H})),r.d(e,"getQueryDefinition",(function(){return X})),r.d(e,"getStoreKeyName",(function(){return w})),r.d(e,"graphQLResultHasError",(function(){return Et})),r.d(e,"hasClientExports",(function(){return j})),r.d(e,"hasDirectives",(function(){return M})),r.d(e,"isDevelopment",(function(){return kt})),r.d(e,"isEnv",(function(){return Ct})),r.d(e,"isField",(function(){return S})),r.d(e,"isIdValue",(function(){return T})),r.d(e,"isInlineFragment",(function(){return k})),r.d(e,"isJsonValue",(function(){return E})),r.d(e,"isNumberValue",(function(){return m})),r.d(e,"isProduction",(function(){return St})),r.d(e,"isScalarValue",(function(){return d})),r.d(e,"isTest",(function(){return Tt})),r.d(e,"maybeDeepFreeze",(function(){return At})),r.d(e,"mergeDeep",(function(){return Ft})),r.d(e,"mergeDeepArray",(function(){return It})),r.d(e,"removeArgumentsFromDocument",(function(){return ft}
2)),r.d(e,"removeClientSetsFromDocument",(function(){return yt})),r.d(e,"removeConnectionDirectiveFromDocument",(function(){return lt})),r.d(e,"removeDirectivesFromDocument",(function(){return ot})),r.d(e,"removeFragmentSpreadFromDocument",(function(){return pt})),r.d(e,"resultKeyNameFromField",(function(){return C})),r.d(e,"shouldInclude",(function(){return F})),r.d(e,"storeKeyNameFromField",(function(){return v})),r.d(e,"stripSymbols",(function(){return Bt})),r.d(e,"toIdValue",(function(){return D})),r.d(e,"tryFunctionOrLogError",(function(){return Dt})),r.d(e,"valueFromNode",(function(){return A})),r.d(e,"valueToObjectRepresentation",(function(){return y})),r.d(e,"variablesInOperation",(function(){return J})),r.d(e,"warnOnceInDevelopment",(function(){return Nt}));var n=r(64),o=r(10),l=r(58),c=r(478),h=r.n(c),f=r(434);function d(t){return["StringValue","BooleanValue","EnumValue"].indexOf(t.kind)>-1}function m(t){return["IntValue","FloatValue"].indexOf(t.kind)>-1}function y(t,e,r,n){if(function(t){return"IntValue"===t.kind}(r)||function(t){return"FloatValue"===t.kind}(r))t[e.value]=Number(r.value);else if(function(t){return"BooleanValue"===t.kind}(r)||function(t){return"StringValue"===t.kind}(r))t[e.value]=r.value;else if(function(t){return"ObjectValue"===t.kind}(r)){var l={};r.fields.map((function(t){return y(l,t.name,t.value,n)})),t[e.value]=l}else if(function(t){return"Variable"===t.kind}(r)){var c=(n||{})[r.name.value];t[e.value]=c}else if(function(t){return"ListValue"===t.kind}(r))t[e.value]=r.values.map((function(t){var r={};return y(r,e,t,n),r[e.value]}));else if(function(t){return"EnumValue"===t.kind}(r))t[e.value]=r.value;else{if(!function(t){return"NullValue"===t.kind}(r))throw new o.a(17);t[e.value]=null}}function v(t,e){var r=null;t.directives&&(r={},t.directives.forEach((function(t){r[t.name.value]={},t.arguments&&t.arguments.forEach((function(n){var o=n.name,l=n.value;return y(r[t.name.value],o,l,e)}))})));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach((function(t){var r=t.name,o=t.value;return y(n,r,o,e)}))),w(t.name.value,n,r)}r.d(e,"isEqual",(function(){return f.a}));var _=["connection","include","skip","client","rest","export"];function w(t,e,r){if(r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var o=e,l={};return n.forEach((function(t){l[t]=o[t]})),r.connection.key+"("+JSON.stringify(l)+")"}return r.connection.key}var c=t;if(e){var f=h()(e);c+="("+f+")"}return r&&Object.keys(r).forEach((function(t){-1===_.indexOf(t)&&(r[t]&&Object.keys(r[t]).length?c+="@"+t+"("+JSON.stringify(r[t])+")":c+="@"+t)})),c}function x(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach((function(t){var n=t.name,o=t.value;return y(r,n,o,e)})),r}return null}function C(t){return t.alias?t.alias.value:t.name.value}function S(t){return"Field"===t.kind}function k(t){return"InlineFragment"===t.kind}function T(t){return t&&"id"===t.type&&"boolean"==typeof t.generated}function D(t,e){return void 0===e&&(e=!1),Object(l.a)({type:"id",generated:e},"string"==typeof t?{id:t,typename:void 0}:t)}function E(t){return null!=t&&"object"==typeof t&&"json"===t.type}function O(t){throw new o.a(18)}function A(t,e){switch(void 0===e&&(e=O),t.kind){case"Variable":return e(t);case"NullValue":return null;case"IntValue":return parseInt(t.value,10);case"FloatValue":return parseFloat(t.value);case"ListValue":return t.values.map((function(t){return A(t,e)}));case"ObjectValue":for(var r={},n=0,o=t.fields;n<o.length;n++){var l=o[n];r[l.name.value]=A(l.value,e)}return r;default:return t.value}}function P(t,e){if(t.directives&&t.directives.length){var r={};return t.directives.forEach((function(t){r[t.name.value]=x(t,e)})),r}return null}function F(t,e){return void 0===e&&(e={}),L(t.directives).every((function(t){var r=t.directive,n=t.ifArgument,l=!1;return"Variable"===n.value.kind?(l=e[n.value.name.value],Object(o.b)(void 0!==l,13)):l=n.value.value,"skip"===r.name.value?!l:l}))}function I(t){var e=[];return Object(n.b)(t,{Directive:function(t){e.push(t.name.value)}}),e}function M(t,e){return I(e).some((function(e){return t.indexOf(e)>-1}))}function j(t){return t&&M(["client"],t)&&M(["export"],t)}function R(t){var e=t.name.value;return"skip"===e||"include"===e}function L(t){return t?t.filter(R).map((function(t){var e=t.arguments;t.name.value;Object(o.b)(e&&1===e.length,14);var r=e[0];Object(o.b)(r.name&&"if"===r.name.value,15);var n=r.value;return Object(o.b)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:t,ifArgument:r}})):[]}function N(t,e){var r=e,n=[];return t.definitions.forEach((function(t){if("OperationDefinition"===t.kind)throw new o.a(11);"FragmentDefinition"===t.kind&&n.push(t)})),void 0===r&&(Object(o.b)(1===n.length,12),r=n[0].name.value),Object(l.a)(Object(l.a)({},t),{definitions:Object(l.b)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions)})}function B(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach((function(source){null!=source&&Object.keys(source).forEach((function(e){t[e]=source[e]}))})),t}function z(t){U(t);var e=t.definitions.filter((function(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation}))[0];return Object(o.b)(e,1),e}function U(t){Object(o.b)(t&&"Document"===t.kind,2);var e=t.definitions.filter((function(t){return"FragmentDefinition"!==t.kind})).map((function(t){if("OperationDefinition"!==t.kind)throw new o.a(3);return t}));return Object(o.b)(e.length<=1,4),t}function V(t){return U(t),t.definitions.filter((function(t){return"OperationDefinition"===t.kind}))[0]}function W(t){var e=V(t);return Object(o.b)(e,5),e}function H(t){return t.definitions.filter((function(t){return"OperationDefinition"===t.kind&&t.name})).map((function(t){return t.name.value}))[0]||null}function Y(t){return t.definitions.filter((function(t){return"FragmentDefinition"===t.kind}))}function X(t){var e=V(t);return Object(o.b)(e&&"query"===e.operation,6),e}
2function G(t){Object(o.b)("Document"===t.kind,7),Object(o.b)(t.definitions.length<=1,8);var e=t.definitions[0];return Object(o.b)("FragmentDefinition"===e.kind,9),e}function Q(t){var e;U(t);for(var r=0,n=t.definitions;r<n.length;r++){var l=n[r];if("OperationDefinition"===l.kind){var c=l.operation;if("query"===c||"mutation"===c||"subscription"===c)return l}"FragmentDefinition"!==l.kind||e||(e=l)}if(e)return e;throw new o.a(10)}function $(t){void 0===t&&(t=[]);var e={};return t.forEach((function(t){e[t.name.value]=t})),e}function K(t){if(t&&t.variableDefinitions&&t.variableDefinitions.length){var e=t.variableDefinitions.filter((function(t){return t.defaultValue})).map((function(t){var e=t.variable,r=t.defaultValue,n={};return y(n,e.name,r),n}));return B.apply(void 0,Object(l.b)([{}],e))}return{}}function J(t){var e=new Set;if(t.variableDefinitions)for(var r=0,n=t.variableDefinitions;r<n.length;r++){var o=n[r];e.add(o.variable.name.value)}return e}function Z(t,e,r){var n=0;return t.forEach((function(r,i){e.call(this,r,i,t)&&(t[n++]=r)}),r),t.length=n,t}var tt={kind:"Field",name:{kind:"Name",value:"__typename"}};function et(t,e){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&et(e[t.name.value],e)}))}function it(t){return et(V(t)||G(t),$(Y(t)))?null:t}function nt(t){return function(e){return t.some((function(t){return t.name&&t.name===e.name.value||t.test&&t.test(e)}))}}function ot(t,e){var r=Object.create(null),o=[],l=Object.create(null),c=[],h=it(Object(n.b)(e,{Variable:{enter:function(t,e,n){"VariableDefinition"!==n.kind&&(r[t.name.value]=!0)}},Field:{enter:function(e){if(t&&e.directives&&(t.some((function(t){return t.remove}))&&e.directives&&e.directives.some(nt(t))))return e.arguments&&e.arguments.forEach((function(t){"Variable"===t.value.kind&&o.push({name:t.value.name.value})})),e.selectionSet&>(e.selectionSet).forEach((function(t){c.push({name:t.name.value})})),null}},FragmentSpread:{enter:function(t){l[t.name.value]=!0}},Directive:{enter:function(e){if(nt(t)(e))return null}}}));return h&&Z(o,(function(t){return!r[t.name]})).length&&(h=ft(o,h)),h&&Z(c,(function(t){return!l[t.name]})).length&&(h=pt(c,h)),h}function st(t){return Object(n.b)(U(t),{SelectionSet:{enter:function(t,e,r){if(!r||"OperationDefinition"!==r.kind){var n=t.selections;if(n)if(!n.some((function(t){return S(t)&&("__typename"===t.name.value||0===t.name.value.lastIndexOf("__",0))}))){var o=r;if(!(S(o)&&o.directives&&o.directives.some((function(t){return"export"===t.name.value}))))return Object(l.a)(Object(l.a)({},t),{selections:Object(l.b)(n,[tt])})}}}}})}var at={test:function(t){var e="connection"===t.name.value;return e&&(!t.arguments||t.arguments.some((function(t){return"key"===t.name.value}))),e}};function lt(t){return ot([at],U(t))}function ut(t,e,r){return void 0===r&&(r=!0),e&&e.selections&&e.selections.some((function(e){return ct(t,e,r)}))}function ct(t,e,r){return void 0===r&&(r=!0),!S(e)||!!e.directives&&(e.directives.some(nt(t))||r&&ut(t,e.selectionSet,r))}function ht(t,e){var r;return U(e),it(Object(n.b)(e,{SelectionSet:{enter:function(e,n,o,path){var c=path.join("-");if(!r||c===r||!c.startsWith(r)){if(e.selections){var h=e.selections.filter((function(e){return ct(t,e)}));return ut(t,e,!1)&&(r=c),Object(l.a)(Object(l.a)({},e),{selections:h})}return null}}}}))}function ft(t,e){var r=function(t){return function(e){return t.some((function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))}))}}(t);return it(Object(n.b)(e,{OperationDefinition:{enter:function(e){return Object(l.a)(Object(l.a)({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return!t.some((function(t){return t.name===e.variable.name.value}))}))})}},Field:{enter:function(e){if(t.some((function(t){return t.remove}))){var n=0;if(e.arguments.forEach((function(t){r(t)&&(n+=1)})),1===n)return null}}},Argument:{enter:function(t){if(r(t))return null}}}))}function pt(t,e){function r(e){if(t.some((function(t){return t.name===e.name.value})))return null}return it(Object(n.b)(e,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function gt(t){var e=[];return t.selections.forEach((function(t){(S(t)||k(t))&&t.selectionSet?gt(t.selectionSet).forEach((function(t){return e.push(t)})):"FragmentSpread"===t.kind&&e.push(t)})),e}function mt(t){return"query"===Q(t).operation?t:Object(n.b)(t,{OperationDefinition:{enter:function(t){return Object(l.a)(Object(l.a)({},t),{operation:"query"})}}})}function yt(t){U(t);var e=ot([{test:function(t){return"client"===t.name.value},remove:!0}],t);return e&&(e=Object(n.b)(e,{FragmentDefinition:{enter:function(t){if(t.selectionSet&&t.selectionSet.selections.every((function(t){return S(t)&&"__typename"===t.name.value})))return null}}})),e}var vt="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),bt=Object.prototype.toString;function _t(t){return wt(t,new Map)}function wt(t,e){switch(bt.call(t)){case"[object Array]":if(e.has(t))return e.get(t);var r=t.slice(0);return e.set(t,r),r.forEach((function(t,i){r[i]=wt(t,e)})),r;case"[object Object]":if(e.has(t))return e.get(t);var n=Object.create(Object.getPrototypeOf(t));return e.set(t,n),Object.keys(t).forEach((function(r){n[r]=wt(t[r],e)})),n;default:return t}}
2function xt(){return void 0!==t?"production":"development"}function Ct(t){return xt()===t}function St(){return!0===Ct("production")}function kt(){return!0===Ct("development")}function Tt(){return!0===Ct("test")}function Dt(t){try{return t()}catch(t){console.error&&console.error(t)}}function Et(t){return t.errors&&t.errors.length}function Ot(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(e){null===t[e]||"object"!=typeof t[e]&&"function"!=typeof t[e]||Object.isFrozen(t[e])||Ot(t[e])})),t}function At(t){if((kt()||Tt())&&!("function"==typeof Symbol&&"string"==typeof Symbol("")))return Ot(t);return t}var Pt=Object.prototype.hasOwnProperty;function Ft(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return It(t)}function It(t){var e=t[0]||{},r=t.length;if(r>1){var n=[];e=Rt(e,n);for(var i=1;i<r;++i)e=jt(e,t[i],n)}return e}function Mt(t){return null!==t&&"object"==typeof t}function jt(t,source,e){return Mt(source)&&Mt(t)?(Object.isExtensible&&!Object.isExtensible(t)&&(t=Rt(t,e)),Object.keys(source).forEach((function(r){var n=source[r];if(Pt.call(t,r)){var o=t[r];n!==o&&(t[r]=jt(Rt(o,e),n,e))}else t[r]=n})),t):source}function Rt(t,e){return null!==t&&"object"==typeof t&&e.indexOf(t)<0&&(t=Array.isArray(t)?t.slice(0):Object(l.a)({__proto__:Object.getPrototypeOf(t)},t),e.push(t)),t}var Lt=Object.create({});function Nt(t,e){void 0===e&&(e="warn"),St()||Lt[t]||(Tt()||(Lt[t]=!0),"error"===e?console.error(t):console.warn(t))}function Bt(data){return JSON.parse(JSON.stringify(data))}}.call(this,r(100))},434:function(t,e,r){"use strict";r.d(e,"a",(function(){return h}));var n=Object.prototype,o=n.toString,l=n.hasOwnProperty,c=new Map;function h(a,b){try{return f(a,b)}finally{c.clear()}}function f(a,b){if(a===b)return!0;var t=o.call(a);if(t!==o.call(b))return!1;switch(t){case"[object Array]":if(a.length!==b.length)return!1;case"[object Object]":if(d(a,b))return!0;var e=Object.keys(a),r=Object.keys(b),n=e.length;if(n!==r.length)return!1;for(var c=0;c<n;++c)if(!l.call(b,e[c]))return!1;for(c=0;c<n;++c){var h=e[c];if(!f(a[h],b[h]))return!1}return!0;case"[object Error]":return a.name===b.name&&a.message===b.message;case"[object Number]":if(a!=a)return b!=b;case"[object Boolean]":case"[object Date]":return+a==+b;case"[object RegExp]":case"[object String]":return a==""+b;case"[object Map]":case"[object Set]":if(a.size!==b.size)return!1;if(d(a,b))return!0;for(var m=a.entries(),y="[object Map]"===t;;){var v=m.next();if(v.done)break;var _=v.value,w=_[0],x=_[1];if(!b.has(w))return!1;if(y&&!f(x,b.get(w)))return!1}return!0}return!1}function d(a,b){var t=c.get(a);if(t){if(t.has(b))return!0}else c.set(a,t=new Set);return t.add(b),!1}},435:function(t,e,r){"use strict";var n=r(224);t.exports=function t(e,path,r){var o;void 0===path&&(path=""),void 0===r&&(r=n);var l=new Map;function c(t,e){var r=l.get(e);r?r.push.apply(r,t):l.set(e,t)}if(r(e))o=null,c([path],e);else{var h=path?path+".":"";if("undefined"!=typeof FileList&&e instanceof FileList)o=Array.prototype.map.call(e,(function(t,i){return c([""+h+i],t),null}));else if(Array.isArray(e))o=e.map((function(e,i){var n=t(e,""+h+i,r);return n.files.forEach(c),n.clone}));else if(e&&e.constructor===Object)for(var i in o={},e){var f=t(e[i],""+h+i,r);f.files.forEach(c),o[i]=f.clone}else o=e}return{clone:o,files:l}}},447:function(t,e,r){"use strict";e.a=function(t,e){return e=e||{},new Promise((function(r,n){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var l in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){o.push(e=e.toLowerCase()),u.push([e,r]),i[e]=i[e]?i[e]+","+r:r})),r(a())},s.onerror=n,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(l,e.headers[l]);s.send(e.body||null)}))}},449:function(t,e,r){"use strict";var n=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function c(t,source,e){return t.concat(source).map((function(element){return l(element,e)}))}function h(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function f(object,t){try{return t in object}catch(t){return!1}}function d(t,source,e){var r={};return e.isMergeableObject(t)&&h(t).forEach((function(n){r[n]=l(t[n],e)})),h(source).forEach((function(n){(function(t,e){return f(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,n)||(f(t,n)&&e.isMergeableObject(source[n])?r[n]=function(t,e){if(!e.customMerge)return m;var r=e.customMerge(t);return"function"==typeof r?r:m}(n,e)(t[n],source[n],e):r[n]=l(source[n],e))})),r}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||c,e.isMergeableObject=e.isMergeableObject||n,e.cloneUnlessOtherwiseSpecified=l;var r=Array.isArray(source);return r===Array.isArray(t)?r?e.arrayMerge(t,source,e):d(t,source,e):l(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return m(t,r,e)}),{})};var y=m;t.exports=y},451:function(t,e,r){var n;!function(o){var l=/^\s+/,c=/\s+$/,h=0,f=o.round,d=o.min,m=o.max,y=o.random;function v(t,e){if(e=e||{},(t=t||"")instanceof v)return t;if(!(this instanceof v))return new v(t,e);var r=function(t){var e={r:0,g:0,b:0},a=1,s=null,r=null,n=null,h=!1,f=!1;"string"==typeof t&&(t=function(t){t=t.replace(l,"").replace(c,"").toLowerCase();var e,r=!1;if(L[t])t=L[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=K.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=K.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=K.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=K.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=K.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=K.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=K.hex8.exec(t))return{r:V(e[1]),g:V(e[2]),b:V(e[3]),a:X(e[4]),format:r?"name":"hex8"};if(e=K.hex6.exec(t))return{r:V(e[1]),g:V(e[2]),b:V(e[3]),format:r?"name":"hex"};if(e=K.hex4.exec(t))return{r:V(e[1]+""+e[1]),g:V(e[2]+""+e[2]),b:V(e[3]+""+e[3]),a:X(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=K.hex3.exec(t))return{r:V(e[1]+""+e[1]),g:V(e[2]+""+e[2]),b:V(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==typeof t&&(J(t.r)&&J(t.g)&&J(t.b)?(y=t.r,g=t.g,b=t.b,e={r:255*z(y,255),g:255*z(g,255),b:255*z(b,255)},h=!0,f="%"===String(t.r).substr(-1)?"prgb":"rgb"):J(t.h)&&J(t.s)&&J(t.v)?(s=H(t.s),r=H(t.v),e=function(t,s,e){t=6*z(t,360),s=z(s,100),e=z(e,100);var i=o.floor(t),r=t-i,p=e*(1-s),q=e*(1-r*s),n=e*(1-(1-r)*s),l=i%6;return{r:255*[e,q,p,p,n,e][l],g:255*[n,e,e,q,p,p][l],b:255*[p,p,n,e,e,q][l]}}(t.h,s,r),h=!0,f="hsv"):J(t.h)&&J(t.s)&&J(t.l)&&(s=H(t.s),n=H(t.l),e=function(t,s,e){var r,g,b;function n(p,q,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?p+6*(q-p)*t:t<.5?q:t<2/3?p+(q-p)*(2/3-t)*6:p}if(t=z(t,360),s=z(s,100),e=z(e,100),0===s)r=g=b=e;else{var q=e<.5?e*(1+s):e+s-e*s,p=2*e-q;r=n(p,q,t+1/3),g=n(p,q,t),b=n(p,q,t-1/3)}return{r:255*r,g:255*g,b:255*b}}(t.h,s,n),h=!0,f="hsl"),t.hasOwnProperty("a")&&(a=t.a));var y,g,b;return a=B(a),{ok:h,format:t.format||f,r:d(255,m(e.r,0)),g:d(255,m(e.g,0)),b:d(255,m(e.b,0)),a:a}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=f(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=f(this._r)),this._g<1&&(this._g=f(this._g)),this._b<1&&(this._b=f(this._b)),this._ok=r.ok,this._tc_id=h++}function _(t,g,b){t=z(t,255),g=z(g,255),b=z(b,255);var e,s,r=m(t,g,b),n=d(t,g,b),o=(r+n)/2;if(r==n)e=s=0;else{var l=r-n;switch(s=o>.5?l/(2-r-n):l/(r+n),r){case t:e=(g-b)/l+(g<b?6:0);break;case g:e=(b-t)/l+2;break;case b:e=(t-g)/l+4}e/=6}return{h:e,s:s,l:o}}function w(t,g,b){t=z(t,255),g=z(g,255),b=z(b,255);var e,s,r=m(t,g,b),n=d(t,g,b),o=r,l=r-n;if(s=0===r?0:l/r,r==n)e=0;else{switch(r){case t:e=(g-b)/l+(g<b?6:0);break;case g:e=(b-t)/l+2;break;case b:e=(t-g)/l+4}e/=6}return{h:e,s:s,v:o}}function x(t,g,b,e){var r=[W(f(t).toString(16)),W(f(g).toString(16)),W(f(b).toString(16))];return e&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function C(t,g,b,a){return[W(Y(a)),W(f(t).toString(16)),W(f(g).toString(16)),W(f(b).toString(16))].join("")}function S(t,e){e=0===e?0:e||10;var r=v(t).toHsl();return r.s-=e/100,r.s=U(r.s),v(r)}function k(t,e){e=0===e?0:e||10;var r=v(t).toHsl();return r.s+=e/100,r.s=U(r.s),v(r)}function T(t){return v(t).desaturate(100)}function D(t,e){e=0===e?0:e||10;var r=v(t).toHsl();return r.l+=e/100,r.l=U(r.l),v(r)}function E(t,e){e=0===e?0:e||10;var r=v(t).toRgb();
vendor: 6,560 bytes, line 2
2return r.r=m(0,d(255,r.r-f(-e/100*255))),r.g=m(0,d(255,r.g-f(-e/100*255))),r.b=m(0,d(255,r.b-f(-e/100*255))),v(r)}function O(t,e){e=0===e?0:e||10;var r=v(t).toHsl();return r.l-=e/100,r.l=U(r.l),v(r)}function A(t,e){var r=v(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,v(r)}function P(t){var e=v(t).toHsl();return e.h=(e.h+180)%360,v(e)}function F(t){var e=v(t).toHsl(),r=e.h;return[v(t),v({h:(r+120)%360,s:e.s,l:e.l}),v({h:(r+240)%360,s:e.s,l:e.l})]}function I(t){var e=v(t).toHsl(),r=e.h;return[v(t),v({h:(r+90)%360,s:e.s,l:e.l}),v({h:(r+180)%360,s:e.s,l:e.l}),v({h:(r+270)%360,s:e.s,l:e.l})]}function M(t){var e=v(t).toHsl(),r=e.h;return[v(t),v({h:(r+72)%360,s:e.s,l:e.l}),v({h:(r+216)%360,s:e.s,l:e.l})]}function j(t,e,r){e=e||6,r=r||30;var n=v(t).toHsl(),o=360/r,l=[v(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,l.push(v(n));return l}function R(t,e){e=e||6;for(var r=v(t).toHsv(),n=r.h,s=r.s,o=r.v,l=[],c=1/e;e--;)l.push(v({h:n,s:s,v:o})),o=(o+c)%1;return l}v.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 t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=B(t),this._roundA=f(100*this._a)/100,this},toHsv:function(){var t=w(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=w(this._r,this._g,this._b),e=f(360*t.h),s=f(100*t.s),r=f(100*t.v);return 1==this._a?"hsv("+e+", "+s+"%, "+r+"%)":"hsva("+e+", "+s+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=_(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=_(this._r,this._g,this._b),e=f(360*t.h),s=f(100*t.s),r=f(100*t.l);return 1==this._a?"hsl("+e+", "+s+"%, "+r+"%)":"hsla("+e+", "+s+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return x(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,g,b,a,e){var r=[W(f(t).toString(16)),W(f(g).toString(16)),W(f(b).toString(16)),W(Y(a))];if(e&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1))return r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0);return r.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:f(this._r),g:f(this._g),b:f(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+f(this._r)+", "+f(this._g)+", "+f(this._b)+")":"rgba("+f(this._r)+", "+f(this._g)+", "+f(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:f(100*z(this._r,255))+"%",g:f(100*z(this._g,255))+"%",b:f(100*z(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+f(100*z(this._r,255))+"%, "+f(100*z(this._g,255))+"%, "+f(100*z(this._b,255))+"%)":"rgba("+f(100*z(this._r,255))+"%, "+f(100*z(this._g,255))+"%, "+f(100*z(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[x(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+C(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var s=v(t);r="#"+C(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return v(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(P,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},v.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]="a"===i?t[i]:H(t[i]));t=r}return v(t,e)},v.equals=function(t,e){return!(!t||!e)&&v(t).toRgbString()==v(e).toRgbString()},v.random=function(){return v.fromRatio({r:y(),g:y(),b:y()})},v.mix=function(t,e,r){r=0===r?0:r||50;var n=v(t).toRgb(),o=v(e).toRgb(),p=r/100;return v({r:(o.r-n.r)*p+n.r,g:(o.g-n.g)*p+n.g,b:(o.b-n.b)*p+n.b,a:(o.a-n.a)*p+n.a})},v.readability=function(t,e){var r=v(t),n=v(e);return(o.max(r.getLuminance(),n.getLuminance())+.05)/(o.min(r.getLuminance(),n.getLuminance())+.05)},v.isReadable=function(t,e,r){var n,o,l=v.readability(t,e);switch(o=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=l>=4.5;break;case"AAlarge":o=l>=3;break;case"AAAsmall":o=l>=7}return o},v.mostReadable=function(t,e,r){var n,o,l,c,h=null,f=0;o=(r=r||{}).includeFallbackColors,l=r.level,c=r.size;
vendor: 1,583 bytes, line 2
2for(var i=0;i<e.length;i++)(n=v.readability(t,e[i]))>f&&(f=n,h=v(e[i]));return v.isReadable(t,h,{level:l,size:c})||!o?h:(r.includeFallbackColors=!1,v.mostReadable(t,["#fff","#000"],r))};var L=v.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:"90ee9
20",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"},N=v.hexNames=function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[t[i]]=i);return e}(L);function B(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function z(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=d(e,m(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),o.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function U(t){return d(1,m(0,t))}function V(t){return parseInt(t,16)}function W(t){return 1==t.length?"0"+t:""+t}function H(t){return t<=1&&(t=100*t+"%"),t}function Y(t){return o.round(255*parseFloat(t)).toString(16)}function X(t){return V(t)/255}var G,Q,$,K=(Q="[\\s|\\(]+("+(G="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",$="[\\s|\\(]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",{CSS_UNIT:new RegExp(G),rgb:new RegExp("rgb"+Q),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+Q),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+Q),hsva:new RegExp("hsva"
2+$),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 J(t){return!!K.CSS_UNIT.exec(t)}t.exports?t.exports=v:void 0===(n=function(){return v}.call(e,r,e,t))||(t.exports=n)}(Math)},457:function(t,e,r){"use strict";r.d(e,"a",(function(){return D}));var n,o,l,c,h,f,d,m=r(36),y=(r(12),function(){return"undefined"!=typeof window}),v=function(){return n||y()&&(n=window.gsap)&&n.registerPlugin&&n},_=function(t){return"string"==typeof t},w=function(t){return"function"==typeof t},x=function(element,t){var e="x"===t?"Width":"Height",r="scroll"+e,n="client"+e;return element===l||element===c||element===h?Math.max(c[r],h[r])-(l["inner"+e]||c[n]||h[n]):element[r]-element["offset"+e]},C=function(t,e){var p="scroll"+("x"===e?"Left":"Top");return t===l&&(null!=t.pageXOffset?p="page"+e.toUpperCase()+"Offset":t=null!=c[p]?c:h),function(){return t[p]}},S=function(element,t){if(!(element=f(element)[0])||!element.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var rect=element.getBoundingClientRect(),e=!t||t===l||t===h,r=e?{top:c.clientTop-(l.pageYOffset||c.scrollTop||h.scrollTop||0),left:c.clientLeft-(l.pageXOffset||c.scrollLeft||h.scrollLeft||0)}:t.getBoundingClientRect(),n={x:rect.left-r.left,y:rect.top-r.top};return!e&&t&&(n.x+=C(t,"x")(),n.y+=C(t,"y")()),n},k=function(t,e,r,n,o){return isNaN(t)||"object"===Object(m.a)(t)?_(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+n-o:"max"===t?x(e,r)-o:Math.min(x(e,r),S(t,e)[r]-o):parseFloat(t)-o},T=function(){n=v(),y()&&n&&document.body&&(l=window,h=document.body,c=document.documentElement,f=n.utils.toArray,n.config({autoKillThreshold:7}),d=n.config(),o=1)},D={version:"3.10.4",name:"scrollTo",rawVars:1,register:function(t){n=t,T()},init:function(t,e,r,c,h){o||T();var data=this,f=n.getProperty(t,"scrollSnapType");data.isWin=t===l,data.target=t,data.tween=r,e=function(t,e,r,n){if(w(t)&&(t=t(e,r,n)),"object"!==Object(m.a)(t))return _(t)&&"max"!==t&&"="!==t.charAt(1)?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var p,o={};for(p in t)o[p]="onAutoKill"!==p&&w(t[p])?t[p](e,r,n):t[p];return o}(e,c,t,h),data.vars=e,data.autoKill=!!e.autoKill,data.getX=C(t,"x"),data.getY=C(t,"y"),data.x=data.xPrev=data.getX(),data.y=data.yPrev=data.getY(),f&&"none"!==f&&(data.snap=1,data.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),null!=e.x?(data.add(data,"x",data.x,k(e.x,t,"x",data.x,e.offsetX||0),c,h),data._props.push("scrollTo_x")):data.skipX=1,null!=e.y?(data.add(data,"y",data.y,k(e.y,t,"y",data.y,e.offsetY||0),c,h),data._props.push("scrollTo_y")):data.skipY=1},render:function(t,data){for(var e,r,n,o,c,h=data._pt,f=data.target,m=data.tween,y=data.autoKill,v=data.xPrev,_=data.yPrev,w=data.isWin,C=data.snap,S=data.snapInline;h;)h.r(t,h.d),h=h._next;e=w||!data.skipX?data.getX():v,n=(r=w||!data.skipY?data.getY():_)-_,o=e-v,c=d.autoKillThreshold,data.x<0&&(data.x=0),data.y<0&&(data.y=0),y&&(!data.skipX&&(o>c||o<-c)&&e<x(f,"x")&&(data.skipX=1),!data.skipY&&(n>c||n<-c)&&r<x(f,"y")&&(data.skipY=1),data.skipX&&data.skipY&&(m.kill(),data.vars.onAutoKill&&data.vars.onAutoKill.apply(m,data.vars.onAutoKillParams||[]))),w?l.scrollTo(data.skipX?e:data.x,data.skipY?r:data.y):(data.skipY||(f.scrollTop=data.y),data.skipX||(f.scrollLeft=data.x)),!C||1!==t&&0!==t||(r=f.scrollTop,e=f.scrollLeft,S?f.style.scrollSnapType=S:f.style.removeProperty("scroll-snap-type"),f.scrollTop=r+1,f.scrollLeft=e+1,f.scrollTop=r,f.scrollLeft=e),data.xPrev=data.x,data.yPrev=data.y},kill:function(t){var e="scrollTo"===t;(e||"scrollTo_x"===t)&&(this.skipX=1),(e||"scrollTo_y"===t)&&(this.skipY=1)}};D.max=x,D.getOffset=S,D.buildGetter=C,v()&&n.registerPlugin(D)},458:function(t,e,r){(function(e,r,n,o){t.exports=function s(a,t,e){function u(n,o){if(!t[n]){if(!a[n]){if(r)return r(n,!0);var l=new Error("Cannot find module '"+n+"'");throw l.code="MODULE_NOT_FOUND",l}var i=t[n]={exports:{}};a[n][0].call(i.exports,(function(t){return u(a[n][1][t]||t)}),i,i.exports,s,a,t,e)}return t[n].exports}for(var r=!1,n=0;n<e.length;n++)u(e[n]);return u}({1:[function(t,e,r){"use strict";var n=t("./utils"),o=t("./support"),p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 6,170 bytes, line 2
2+/=";r.encode=function(t){for(var e,r,o,i,s,a,l,c=[],u=0,h=t.length,f=h,d="string"!==n.getTypeOf(t);u<t.length;)f=h-u,o=d?(e=t[u++],r=u<h?t[u++]:0,u<h?t[u++]:0):(e=t.charCodeAt(u++),r=u<h?t.charCodeAt(u++):0,u<h?t.charCodeAt(u++):0),i=e>>2,s=(3&e)<<4|r>>4,a=1<f?(15&r)<<2|o>>6:64,l=2<f?63&o:64,c.push(p.charAt(i)+p.charAt(s)+p.charAt(a)+p.charAt(l));return c.join("")},r.decode=function(t){var e,r,n,i,s,a,l=0,c=0,u="data:";if(t.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===p.charAt(64)&&f--,t.charAt(t.length-2)===p.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=o.uint8array?new Uint8Array(0|f):new Array(0|f);l<t.length;)e=p.indexOf(t.charAt(l++))<<2|(i=p.indexOf(t.charAt(l++)))>>4,r=(15&i)<<4|(s=p.indexOf(t.charAt(l++)))>>2,n=(3&s)<<6|(a=p.indexOf(t.charAt(l++))),h[c++]=e,64!==s&&(h[c++]=r),64!==a&&(h[c++]=n);return h}},{"./support":30,"./utils":32}],2:[function(t,e,r){"use strict";var n=t("./external"),i=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function o(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i}o.prototype={getContentWorker:function(){var t=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(t,e,r){return t.pipe(new s).pipe(new a("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){"use strict";var n=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){"use strict";var n=t("./utils"),o=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,e,r,n){var i=o,s=n+r;t^=-1;for(var a=n;a<s;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}(0|e,t,t.length,0):function(t,e,r,n){var i=o,s=n+r;t^=-1;for(var a=n;a<s;a++)t=t>>>8^i[255&(t^e.charCodeAt(a))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:n}},{lie:37}],7:[function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=t("pako"),s=t("./utils"),a=t("./stream/GenericWorker"),o=n?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic="\b\0",s.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(t){return new l("Deflate",t)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){"use strict";function n(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n}function o(t,e,r,o,i,s){var a,d,m=t.file,u=t.compression,y=s!==c.utf8encode,v=l.transformTo("string",s(m.name)),_=l.transformTo("string",c.utf8encode(m.name)),w=m.comment,p=l.transformTo("string",s(w)),x=l.transformTo("string",c.utf8encode(w)),C=_.length!==m.name.length,g=x.length!==w.length,b="",S="",k="",T=m.dir,D=m.date,E={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(E.crc32=t.crc32,E.compressedSize=t.compressedSize,E.uncompressedSize=t.uncompressedSize);var O=0;e&&(O|=8),y||!C&&!g||(O|=2048);var A=0,P=0;T&&(A|=16),"UNIX"===i?(P=798,A|=function(t,e){var r=t;return t||(r=e?16893:33204),(65535&r)<<16}(m.unixPermissions,T)):(P=20,A|=function(t){return 63&(t||0)}(m.dosPermissions)),a=D.getUTCHours(),a<<=6,a|=D.getUTCMinutes(),a<<=5,a|=D.getUTCSeconds()/2,d=D.getUTCFullYear()-1980,d<<=4,d|=D.getUTCMonth()+1,d<<=5,d|=D.getUTCDate(),C&&(S=n(1,1)+n(h(v),4)+_,b+="up"+n(S.length,2)+S),g&&(k=n(1,1)+n(h(p),4)+x,b+="uc"+n(k.length,2)+k);var F="";return F+="\n\0",F+=n(O,2),F+=u.magic,F+=n(a,2),F+=n(d,2),F+=n(E.crc32,4),F+=n(E.compressedSize,4),F+=n(E.uncompressedSize,4),F+=n(v.length,2),F+=n(b.length,2),{fileRecord:f.LOCAL_FILE_HEADER+F+v+b,dirRecord:f.CENTRAL_FILE_HEADER+n(P,2)+F+n(p.length,2)+"\0\0\0\0"+n(A,4)+n(o,4)+v+b+p}}var l=t("../utils"),i=t("../stream/GenericWorker"),c=t("../utf8"),h=t("../crc32"),f=t("../signature");function s(t,e,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}l.inherits(s,i),s.prototype.push=function(t){var e=t.meta.percent||0,r
vendor: 4,281 bytes, line 2
2=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,i.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},s.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=o(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},s.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=o(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:function(t){return f.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},s.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var r=this.bytesWritten-t,o=function(t,e,r,o,i){var s=l.transformTo("string",i(o));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(t,2)+n(t,2)+n(e,4)+n(r,4)+n(s.length,2)+s}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:o,meta:{percent:100}})},s.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},s.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},s.prototype.error=function(t){var e=this._sources;if(!i.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},s.prototype.lock=function(){i.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=s},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,r){"use strict";var u=t("../compressions"),n=t("./ZipFileWorker");r.generateWorker=function(t,a,e){var r=new n(a.streamFiles,e,a.platform,a.encodeFileName),o=0;try{t.forEach((function(t,e){o++;var n=function(t,e){var r=t||e,n=u[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(e.options.compression,a.compression),l=e.options.compressionOptions||a.compressionOptions||{},i=e.dir,s=e.date;e._compressWorker(n,l).withStreamInfo("file",{name:t,dir:i,date:s,comment:e.comment||"",unixPermissions:e.unixPermissions,dosPermissions:e.dosPermissions}).pipe(r)})),r.entriesCount=o}catch(t){r.error(t)}return r}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new n;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(n.prototype=t("./object")).loadAsync=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.version="3.10.1",n.loadAsync=function(t,e){return(new n).loadAsync(t,e)},n.external=t("./external"),e.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,r){"use strict";var u=t("./utils"),i=t("./external"),n=t("./utf8"),s=t("./zipEntries"),a=t("./stream/Crc32Probe"),o=t("./nodejsUtils");function l(t){return new i.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new a);n.on("error",(function(t){r(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}
vendor: 4,329 bytes, line 2
2e.exports=function(t,e){var r=this;return e=u.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),o.isNode&&o.isStream(t)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new s(e);return r.load(t),r})).then((function(t){var r=[i.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var o=0;o<n.length;o++)r.push(l(n[o]));return i.Promise.all(r)})).then((function(t){for(var n=t.shift(),o=n.files,l=0;l<o.length;l++){var i=o[l],s=i.fileNameStr,a=u.resolve(i.fileNameStr);r.file(a,i.decompressed,{binary:!0,optimizedBinaryString:!0,date:i.date,dir:i.dir,comment:i.fileCommentStr.length?i.fileCommentStr:null,unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions,createFolders:e.createFolders}),i.dir||(r.file(a).unsafeOriginalName=s)}return n.zipComment.length&&(r.comment=n.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,r){"use strict";var n=t("../utils"),i=t("../stream/GenericWorker");function s(t,e){i.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}n.inherits(s,i),s.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},s.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,r){"use strict";var i=t("readable-stream").Readable;function n(t,e,r){i.call(this,e),this._helper=t;var n=this;t.on("data",(function(t,e){n.push(t)||n._helper.pause(),r&&r(e)})).on("error",(function(t){n.emit("error",t)})).on("end",(function(){n.push(null)}))}t("../utils").inherits(n,i),n.prototype._read=function(){this._helper.resume()},e.exports=n},{"../utils":32,"readable-stream":16}],14:[function(t,r,n){"use strict";r.exports={isNode:void 0!==e,newBufferFrom:function(t,r){if(e.from&&e.from!==Uint8Array.from)return e.from(t,r);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,r)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var r=new e(t);return r.fill(0),r},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,r){"use strict";function s(t,e,r){var h,i=u.getTypeOf(e),s=u.extend(r||{},o);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(h=d(t))&&b.call(this,h,!0);var a="string"===i&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!a),(e instanceof l&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",i="string");var m=null;m=e instanceof l||e instanceof n?e:p.isNode&&p.isStream(e)?new f(t,e):u.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var y=new c(t,m,s);this.files[t]=y}var i=t("./utf8"),u=t("./utils"),n=t("./stream/GenericWorker"),a=t("./stream/StreamHelper"),o=t("./defaults"),l=t("./compressedObject"),c=t("./zipObject"),h=t("./generate"),p=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),d=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},b=function(t,e){return e=void 0!==e?e:o.createFolders,t=g(t),this.files[t]||s.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function m(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 5,112 bytes, line 2
2,forEach:function(t){var e,r,n;for(e in this.files)n=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,n)},filter:function(t){var e=[];return this.forEach((function(r,n){t(r,n)&&e.push(n)})),e},file:function(t,e,r){if(1!==arguments.length)return t=this.root+t,s.call(this,t,e,r),this;if(m(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}var i=this.files[this.root+t];return i&&!i.dir?i:null},folder:function(t){if(!t)return this;if(m(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=b.call(this,e),n=this.clone();return n.root=r.name,n},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter((function(e,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,r={};try{if((r=u.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");u.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var o=r.comment||this.comment||"";e=h.generateWorker(this,r,o)}catch(t){(e=new n("error")).error(t)}return new a(e,r.type||"string",r.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,r){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,r){"use strict";var n=t("./DataReader");function i(t){n.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(i,n),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===e&&this.data[s+1]===r&&this.data[s+2]===n&&this.data[s+3]===i)return s-this.zero;return-1},i.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),s=this.readData(4);return e===s[0]&&r===s[1]&&n===s[2]&&i===s[3]},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(t,e,r){"use strict";var n=t("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=i},{"../utils":32}],19:[function(t,e,r){"use strict";var n=t("./Uint8ArrayReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){"use strict";var n=t("./DataReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){"use strict";var n=t("./ArrayReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.readData=function(t){if(this.checkOffset(t),
vendor: 8,722 bytes, line 2
20===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){"use strict";var n=t("../utils"),i=t("../support"),s=t("./ArrayReader"),a=t("./StringReader"),o=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),"string"!==e||i.uint8array?"nodebuffer"===e?new o(t):i.uint8array?new l(n.transformTo("uint8array",t)):new s(n.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){"use strict";r.LOCAL_FILE_HEADER="PK��",r.CENTRAL_FILE_HEADER="PK��",r.CENTRAL_DIRECTORY_END="PK��",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK��",r.ZIP64_CENTRAL_DIRECTORY_END="PK��",r.DATA_DESCRIPTOR="PK�\b"},{}],24:[function(t,e,r){"use strict";var n=t("./GenericWorker"),i=t("../utils");function s(t){n.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(s,n),s.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},e.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){"use strict";var n=t("./GenericWorker"),i=t("../crc32");function s(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,n),s.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){"use strict";var n=t("../utils"),i=t("./GenericWorker");function s(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(s,i),s.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}i.prototype.processChunk.call(this,t)},e.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){"use strict";var n=t("../utils"),i=t("./GenericWorker");function s(t){i.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}n.inherits(s,i),s.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){"use strict";function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=n},{}],29:[function(t,r,n){"use strict";var o=t("../utils"),i=t("./ConvertWorker"),s=t("./GenericWorker"),u=t("../base64"),l=t("../support"),a=t("../external"),c=null;if(l.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function h(t,r){return new a.Promise((function(n,l){var c=[],i=t._internalType,s=t._outputType,a=t._mimeType;t.on("data",(function(t,e){c.push(t),r&&r(e)})).on("error",(function(t){c=[],l(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return o.newBlob(o.transformTo("arraybuffer",e),r);case"base64":return u.encode(e);default:return o.transformTo(t,e)}}(s,function(t,r){var n,o=0,i=null,s=0;for(n=0;n<r.length;n++)s+=r[n].length;switch(t){case"string":return r.join("");case"array":return Array.prototype.concat.apply([],r);case"uint8array":for(i=new Uint8Array(s),n=0;n<r.length;n++)i.set(r[n],o),o+=r[n].length;return i;case"nodebuffer":return e.concat(r);default:throw new Error("concat : unsupported type '"+t+"'")}}(i,c),a);n(t)}catch(t){l(t)}c=[]})).resume()}))}function f(t,e,r){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=r,o.checkSupport(n),this._worker=t.pipe(new i(n)),t.lock()}catch(t){this._worker=new s("error"),this._worker.error(t)}}f.prototype={accumulate:function(t){return h(this,t)},on:function(t,e){var r=this;return"data"===t?this._worker.on(t,(function(t){e.call(r,t.data,t.meta)})):this._worker.on(t,(function(){o.delay(e,arguments,r)})),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(o.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},t)}},r.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,r,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==e,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var o=new ArrayBuffer(0);try{n.blob=0===new Blob([o],{type:"application/zip"}).size}catch(t){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(o),n.blob=0===i.getBlob("application/zip").size}catch(t){n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch(t){n.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,s){"use strict";for(var r=t("./utils"),n=t("./support"),o=t("./nodejsUtils"),l=t("./stream/GenericWorker"),u=new Array(256),i=0;i<256;i++)u[i]=252<=i?6:248<=i?5:240<=i?4:224<=i?3:192<=i?2:1;function a(){l.call(this,"utf-8 decode"),this.leftOver=null}function c(){l.call(this,"utf-8 encode")}u[254]=u[254]=1,s.utf8encode=function(t){return n.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,r,o,i,s,a=t.length,l=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(o=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),l
vendor: 9,520 bytes, line 2
2+=r<128?1:r<2048?2:r<65536?3:4;for(e=n.uint8array?new Uint8Array(l):new Array(l),i=s=0;s<l;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(o=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),r<128?e[s++]=r:(r<2048?e[s++]=192|r>>>6:(r<65536?e[s++]=224|r>>>12:(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63),e[s++]=128|r>>>6&63),e[s++]=128|63&r);return e}(t)},s.utf8decode=function(t){return n.nodebuffer?r.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,o,i,s=t.length,a=new Array(2*s);for(e=n=0;e<s;)if((o=t[e++])<128)a[n++]=o;else if(4<(i=u[o]))a[n++]=65533,e+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&e<s;)o=o<<6|63&t[e++],i--;1<i?a[n++]=65533:o<65536?a[n++]=o:(o-=65536,a[n++]=55296|o>>10&1023,a[n++]=56320|1023&o)}return a.length!==n&&(a.subarray?a=a.subarray(0,n):a.length=n),r.applyFromCharCode(a)}(t=r.transformTo(n.uint8array?"uint8array":"array",t))},r.inherits(a,l),a.prototype.processChunk=function(t){var e=r.transformTo(n.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var l=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?e:r+u[t[r]]>e?r:e}(e),i=e;l!==e.length&&(n.uint8array?(i=e.subarray(0,l),this.leftOver=e.subarray(l,e.length)):(i=e.slice(0,l),this.leftOver=e.slice(l,e.length))),this.push({data:s.utf8decode(i),meta:t.meta})},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=a,r.inherits(c,l),c.prototype.processChunk=function(t){this.push({data:s.utf8encode(t.data),meta:t.meta})},s.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,a){"use strict";var n=t("./support"),o=t("./base64"),l=t("./nodejsUtils"),u=t("./external");function c(t){return t}function h(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}t("setimmediate"),a.newBlob=function(t,e){a.checkSupport("blob");try{return new Blob([t],{type:e})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(t),r.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var i={stringifyByChunk:function(t,e,r){var n=[],i=0,s=t.length;if(s<=r)return String.fromCharCode.apply(null,t);for(;i<s;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+r,s)))):n.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+r,s)))),i+=r;return n.join("")},stringifyByChar:function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,l.allocBuffer(1)).length}catch(t){return!1}}()}};function s(t){var e=65536,r=a.getTypeOf(t),n=!0;if("uint8array"===r?n=i.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=i.applyCanBeUsed.nodebuffer),n)for(;1<e;)try{return i.stringifyByChunk(t,r,e)}catch(t){e=Math.floor(e/2)}return i.stringifyByChar(t)}function f(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}a.applyFromCharCode=s;var d={};d.string={string:c,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:function(t){return h(t,l.allocBuffer(t.length))}},d.array={string:s,array:c,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return l.newBufferFrom(t)}},d.arraybuffer={string:function(t){return s(new Uint8Array(t))},array:function(t){return f(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:c,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return l.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:s,array:function(t){return f(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:c,nodebuffer:function(t){return l.newBufferFrom(t)}},d.nodebuffer={string:s,array:function(t){return f(t,new Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return f(t,new Uint8Array(t.length))},nodebuffer:c},a.transformTo=function(t,e){if(e=e||"",!t)return e;a.checkSupport(t);var r=a.getTypeOf(e);return d[r][t](e)},a.resolve=function(t){for(var e=t.split("/"),r=[],n=0;n<e.length;n++){var i=e[n];"."===i||""===i&&0!==n&&n!==e.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},a.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":n.nodebuffer&&l.isBuffer(t)?"nodebuffer":n.uint8array&&t instanceof Uint8Array?"uint8array":n.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(t){if(!n[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(t){var e,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return n},a.delay=function(t,e,n){r((function(){t.apply(n||null,e||[])}))},a.inherits=function(t,e){function r(){}r.prototype=e.prototype,t.prototype=new r},a.extend=function(){var t,e,r={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===r[e]&&(r[e]=arguments[t][e]);return r},a.prepareContent=function(t,e,r,i,s){return u.Promise.resolve(e).then((function(t){return n.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new u.Promise((function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(e){var l=a.getTypeOf(e);return l?("arraybuffer"===l?e=a.transformTo("uint8array",e):"string"===l&&(s?e=o.decode(e):r&&!0!==i&&(e=function(t){return h(t,n.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):u.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,r){"use strict";var n=t("./reader/readerFor"),i=t("./utils"),s=t("./signature"),a=t("./zipEntry"),o=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(e)+", expected "+i.pretty(t)+")")}},isSignature:function(t,e){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=o.uint8array?"uint8array":"array",r=i.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
2ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=e-r;if(0<n)this.isSignature(e,s.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(t){this.reader=n(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,r){"use strict";var n=t("./reader/readerFor"),s=t("./utils"),i=t("./compressedObject"),a=t("./crc32"),o=t("./utf8"),l=t("./compressions"),u=t("./support");function c(t,e){this.options=t,this.loadOptions=e}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&
vendor: 2,334 bytes, line 2
2(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,r,n,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[e]={id:e,length:r,value:n};t.setIndex(i)},handleUTF8:function(){var t=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=s.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=s.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=n(t.value);return 1!==e.readInt(1)||a(this.fileName)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=n(t.value);return 1!==e.readInt(1)||a(this.fileComment)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}return null}},e.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,r){"use strict";function n(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var s=t("./stream/StreamHelper"),i=t("./stream/DataWorker"),a=t("./utf8"),o=t("./compressedObject"),l=t("./stream/GenericWorker");n.prototype={internalStream:function(t){var e=null,r="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(e=e.pipe(new a.Utf8EncodeWorker)),!i&&n&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new s(e,r,"")},async:function(t,e){return this.internalStream(t).accumulate(e)}
vendor: 6,404 bytes, line 2
2,nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof o&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof l?this._data:new i(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<u.length;h++)n.prototype[u[h]]=c;e.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,r){(function(t){"use strict";var r,n,o=t.MutationObserver||t.WebKitMutationObserver;if(o){var i=0,s=new o(u),a=t.document.createTextNode("");s.observe(a,{characterData:!0}),r=function(){a.data=i=++i%2}}else if(t.setImmediate||void 0===t.MessageChannel)r="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var l=new t.MessageChannel;l.port1.onmessage=u,r=function(){l.port2.postMessage(0)}}var c=[];function u(){var t,e;n=!0;for(var r=c.length;r;){for(e=c,c=[],t=-1;++t<r;)e[t]();r=c.length}n=!1}e.exports=function(t){1!==c.push(t)||n||r()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,r){"use strict";var i=t("immediate");function u(){}var n={},s=["REJECTED"],a=["FULFILLED"],o=["PENDING"];function l(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=o,this.queue=[],this.outcome=void 0,t!==u&&d(this,t)}function c(t,e,r){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function h(t,e,r){i((function(){var o;try{o=e(r)}catch(o){return n.reject(t,o)}o===t?n.reject(t,new TypeError("Cannot resolve promise with itself")):n.resolve(t,o)}))}function f(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function d(t,e){var r=!1;function o(e){r||(r=!0,n.reject(t,e))}function i(e){r||(r=!0,n.resolve(t,e))}var s=p((function(){e(i,o)}));"error"===s.status&&o(s.value)}function p(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}(e.exports=l).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){throw r}))}))},l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===s)return this;var r=new this.constructor(u);return this.state!==o?h(r,this.state===a?t:e,this.outcome):this.queue.push(new c(r,t,e)),r},c.prototype.callFulfilled=function(t){n.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){n.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},n.resolve=function(t,e){var r=p(f,e);if("error"===r.status)return n.reject(t,r.value);var o=r.value;if(o)d(t,o);else{t.state=a,t.outcome=e;for(var i=-1,s=t.queue.length;++i<s;)t.queue[i].callFulfilled(e)}return t},n.reject=function(t,e){t.state=s,t.outcome=e;for(var r=-1,n=t.queue.length;++r<n;)t.queue[r].callRejected(e);return t},l.resolve=function(t){return t instanceof this?t:n.resolve(new this(u),t)},l.reject=function(t){var e=new this(u);return n.reject(e,t)},l.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var r=t.length,i=!1;if(!r)return this.resolve([]);for(var s=new Array(r),a=0,o=-1,l=new this(u);++o<r;)c(t[o],o);return l;function c(t,o){e.resolve(t).then((function(t){s[o]=t,++a!==r||i||(i=!0,n.resolve(l,s))}),(function(t){i||(i=!0,n.reject(l,t))}))}},l.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var r=t.length,o=!1;if(!r)return this.resolve([]);for(var a,i=-1,s=new this(u);++i<r;)a=t[i],e.resolve(a).then((function(t){o||(o=!0,n.resolve(s,t))}),(function(t){o||(o=!0,n.reject(s,t))}));return s}},{immediate:36}],38:[function(t,e,r){"use strict";var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,r){"use strict";var a=t("./zlib/deflate"),n=t("./utils/common"),o=t("./utils/strings"),i=t("./zlib/messages"),s=t("./zlib/zstream"),u=Object.prototype.toString,l=0,c=-1,h=0,f=8;function p(t){if(!(this instanceof p))return new p(t);this.options=n.assign({level:c,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=a.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==l)throw new Error(i[r]);if(e.header&&a.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=a.deflateSetDictionary(this.strm,d))!==l)throw new Error(i[r]);this._dict_set=!0}}function d(t,e){var r=new p(e);if(r.push(t,!0),r.err)throw r.msg||i[r.err];return r.result}p.prototype.push=function(t,e){var r,c,i=this.strm,s=this.options.chunkSize;if(this.ended)return!1;c=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?i.input=new
vendor: 5,516 bytes, line 2
2Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new n.Buf8(s),i.next_out=0,i.avail_out=s),1!==(r=a.deflate(i,c))&&r!==l)return this.onEnd(r),!(this.ended=!0);0!==i.avail_out&&(0!==i.avail_in||4!==c&&2!==c)||("string"===this.options.to?this.onData(o.buf2binstring(n.shrinkBuf(i.output,i.next_out))):this.onData(n.shrinkBuf(i.output,i.next_out)))}while((0<i.avail_in||0===i.avail_out)&&1!==r);return 4===c?(r=a.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l):2!==c||(this.onEnd(l),!(i.avail_out=0))},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Deflate=p,r.deflate=d,r.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},r.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,r){"use strict";var n=t("./zlib/inflate"),o=t("./utils/common"),p=t("./utils/strings"),l=t("./zlib/constants"),c=t("./zlib/messages"),i=t("./zlib/zstream"),s=t("./zlib/gzheader"),h=Object.prototype.toString;function a(t){if(!(this instanceof a))return new a(t);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==l.Z_OK)throw new Error(c[r]);this.header=new s,n.inflateGetHeader(this.strm,this.header)}function f(t,e){var r=new a(e);if(r.push(t,!0),r.err)throw r.msg||c[r.err];return r.result}a.prototype.push=function(t,e){var r,c,i,s,a,f,d=this.strm,u=this.options.chunkSize,m=this.options.dictionary,y=!1;if(this.ended)return!1;c=e===~~e?e:!0===e?l.Z_FINISH:l.Z_NO_FLUSH,"string"==typeof t?d.input=p.binstring2buf(t):"[object ArrayBuffer]"===h.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new o.Buf8(u),d.next_out=0,d.avail_out=u),(r=n.inflate(d,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&m&&(f="string"==typeof m?p.string2buf(m):"[object ArrayBuffer]"===h.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,f)),r===l.Z_BUF_ERROR&&!0===y&&(r=l.Z_OK,y=!1),r!==l.Z_STREAM_END&&r!==l.Z_OK)return this.onEnd(r),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&r!==l.Z_STREAM_END&&(0!==d.avail_in||c!==l.Z_FINISH&&c!==l.Z_SYNC_FLUSH)||("string"===this.options.to?(i=p.utf8border(d.output,d.next_out),s=d.next_out-i,a=p.buf2string(d.output,i),d.next_out=s,d.avail_out=u-s,s&&o.arraySet(d.output,d.output,i,s,0),this.onData(a)):this.onData(o.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(y=!0)}while((0<d.avail_in||0===d.avail_out)&&r!==l.Z_STREAM_END);return r===l.Z_STREAM_END&&(c=l.Z_FINISH),c===l.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l.Z_OK):c!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(d.avail_out=0))},a.prototype.onData=function(t){this.chunks.push(t)},a.prototype.onEnd=function(t){t===l.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=a,r.inflate=f,r.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},r.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}}return t},r.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var s=0;s<n;s++)t[i+s]=e[r+s]},flattenChunks:function(t){var e,r,n,i,s,a;for(e=n=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),e=i=0,r=t.length;e<r;e++)s=t[e],a.set(s,i),i+=s.length;return a}},s={arraySet:function(t,e,r,n,i){for(var s=0;s<n;s++)t[i+s]=e[r+s]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,s))},r.setTyped(n)},{}],42:[function(t,e,r){"use strict";var n=t("./common"),i=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){s=!1}for(var u=new n.Buf8(256),o=0;o<256;o++)u[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function l(t,e){if(e<65537&&(t.subarray&&s||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",o=0;o<e;o++)r+=String.fromCharCode(t[o]);return r}u[254]=u[254]=1,r.string2buf=function(t){var e,r,o,i,s,a=t.length,l=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(o=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),l
vendor: 9,966 bytes, line 2
2+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(l),i=s=0;s<l;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(o=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),r<128?e[s++]=r:(r<2048?e[s++]=192|r>>>6:(r<65536?e[s++]=224|r>>>12:(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63),e[s++]=128|r>>>6&63),e[s++]=128|63&r);return e},r.buf2binstring=function(t){return l(t,t.length)},r.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,o=e.length;r<o;r++)e[r]=t.charCodeAt(r);return e},r.buf2string=function(t,e){var r,n,i,s,a=e||t.length,o=new Array(2*a);for(r=n=0;r<a;)if((i=t[r++])<128)o[n++]=i;else if(4<(s=u[i]))o[n++]=65533,r+=s-1;else{for(i&=2===s?31:3===s?15:7;1<s&&r<a;)i=i<<6|63&t[r++],s--;1<s?o[n++]=65533:i<65536?o[n++]=i:(i-=65536,o[n++]=55296|i>>10&1023,o[n++]=56320|1023&i)}return l(o,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?e:r+u[t[r]]>e?r:e}},{"./common":41}],43:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){for(var i=65535&t|0,s=t>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;s=s+(i=i+e[n++]|0)|0,--a;);i%=65521,s%=65521}return i|s<<16|0}},{}],44:[function(t,e,r){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,r){"use strict";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,o){var i=n,s=o+r;t^=-1;for(var a=o;a<s;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}},{}],46:[function(t,e,r){"use strict";var n,o=t("../utils/common"),u=t("./trees"),l=t("./adler32"),p=t("./crc32"),c=t("./messages"),h=0,f=4,d=0,m=-2,g=-1,b=4,i=2,y=8,v=9,s=286,a=30,_=19,w=2*s+1,x=15,C=3,S=258,k=S+C+1,T=42,D=113,E=1,O=2,A=3,P=4;function F(t,e){return t.msg=c[e],e}function I(t){return(t<<1)-(4<t?9:0)}function M(t){for(var e=t.length;0<=--e;)t[e]=0}function j(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(o.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function R(t,e){u._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)}function L(t,e){t.pending_buf[t.pending++]=e}function N(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function B(t,e){var r,n,i=t.max_chain_length,s=t.strstart,a=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-k?t.strstart-(t.w_size-k):0,u=t.window,c=t.w_mask,h=t.prev,f=t.strstart+S,d=u[s+a-1],p=u[s+a];t.prev_length>=t.good_match&&(i>>=2),o>t.lookahead&&(o=t.lookahead);do{if(u[(r=e)+a]===p&&u[r+a-1]===d&&u[r]===u[s]&&u[++r]===u[s+1]){s+=2,r++;do{}while(u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&s<f);if(n=S-(f-s),s=f-S,a<n){if(t.match_start=e,o<=(a=n))break;d=u[s+a-1],p=u[s+a]}}}while((e=h[e&c])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function z(t){var e,r,n,i,s,a,c,h,u,f,d=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-k)){for(o.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;n=t.head[--e],t.head[e]=d<=n?n-d:0,--r;);for(e=r=d;n=t.prev[--e],t.prev[e]=d<=n?n-d:0,--r;);i+=d}if(0===t.strm.avail_in)break;if(a=t.strm,c=t.window,h=t.strstart+t.lookahead,f=void 0,(u=i)<(f=a.avail_in)&&(f=u),r=0===f?0:(a.avail_in-=f,o.arraySet(c,a.input,a.next_in,f,h),1===a.state.wrap?a.adler=l(a.adler,c,f,h):2===a.state.wrap&&(a.adler=p(a.adler,c,f,h)),a.next_in+=f,a.total_in+=f,f),t.lookahead+=r,t.lookahead+t.insert>=C)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+C-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<C)););}while(t.lookahead<k&&0!==t.strm.avail_in)}function U(t,e){for(var r,n;;){if(t.lookahead<k){if(z(t),t.lookahead<k&&e===h)return E;if(0===t.lookahead)break}if(r=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-k&&(t.match_length=B(t,r)),t.match_length>=C)if(n=u._tr_tally(t,t.strstart-t.match_start,t.match_length-C),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=C){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(R(t,!1),0===t.strm.avail_out))return E}return t.insert=t.strstart<C-1?t.strstart:C-1,e===f?(R(t,!0),0===t.strm.avail_out?A:P):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?E:O}function V(t,e){for(var r,n,i;;){if(t.lookahead<k){if(z(t),t.lookahead<k&&e===h)return E;if(0===t.lookahead)break}if(r=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=C-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-k&&(t.match_length=B(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===C&&4096<t.strstart-t.match_start)&&(t.match_length=C-1)),t.prev_length>=C&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-C,n=u._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-C),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=C-1,t.strstart++,n&&(R(t,!1),0===t.strm.avail_out))return E}else if(t.match_available){if((n=u._tr_tally(t,0,t.window[t.strstart-1]))&&R(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return E}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=u._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<C-1?t.strstart:C-1,e===f?(R(t,!0),0===t.strm.avail_out?A:P):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?E:O}function W(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function H(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*w),this.dyn_dtree=new o.Buf16(2*(2*a+1)),this.bl_tree=new o.Buf16(2*(2*_+1)),M(this.dyn_ltree),M(this.dyn_dtree),M(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(x+1),this.heap=new o.Buf16(2*s+1),M(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*s+1),M(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=i,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?T:D,t.adler=2===e.wrap?0:1,e.last_flush=h,u._tr_init(e),d):F(t,m)}function X(t){var e=Y(t);return e===d&&function(t){t.window_size=2*t.w_size,M(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=C-1,t.match_available=0,t.ins_h=0}(t.state),e}function G(t,e,r,n,i,s){if(!t)return m;var a=1;if(e===g&&(e=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),i<1||v<i||r!==y||n<8||15<n||e<0||9<e||s<0||b<s)return F(t,m);8===n&&(n=9);var l=new H;return(t.state=l).strm=t,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+C-1)/C),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=r,X(t)}n=[new W(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(z(t),0===t.lookahead&&e===h)return E;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,R(t,!1),0===t.strm.avail_out))return E;if(t.strstart-t.block_start>=t.w_size-k&&(R(t,!1),0===t.strm.avail_out))return E}return t.insert=0,e===f?(R(t,!0),0===t.strm.avail_out?A:P):(t.strstart>t.block_start&&(R(t,!1),t.strm.avail_out),E)}
vendor: 26,179 bytes, line 2
2)),new W(4,4,8,4,U),new W(4,5,16,8,U),new W(4,6,32,32,U),new W(4,4,16,16,V),new W(8,16,32,32,V),new W(8,16,128,128,V),new W(8,32,128,256,V),new W(32,128,258,1024,V),new W(32,258,258,4096,V)],r.deflateInit=function(t,e){return G(t,e,y,15,8,0)},r.deflateInit2=G,r.deflateReset=X,r.deflateResetKeep=Y,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,d):m},r.deflate=function(t,e){var r,o,i,s;if(!t||!t.state||5<e||e<0)return t?F(t,m):m;if(o=t.state,!t.output||!t.input&&0!==t.avail_in||666===o.status&&e!==f)return F(t,0===t.avail_out?-5:m);if(o.strm=t,r=o.last_flush,o.last_flush=e,o.status===T)if(2===o.wrap)t.adler=0,L(o,31),L(o,139),L(o,8),o.gzhead?(L(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),L(o,255&o.gzhead.time),L(o,o.gzhead.time>>8&255),L(o,o.gzhead.time>>16&255),L(o,o.gzhead.time>>24&255),L(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),L(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(L(o,255&o.gzhead.extra.length),L(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=p(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(L(o,0),L(o,0),L(o,0),L(o,0),L(o,0),L(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),L(o,3),o.status=D);else{var a=y+(o.w_bits-8<<4)<<8;a|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(a|=32),a+=31-a%31,o.status=D,N(o,a),0!==o.strstart&&(N(o,t.adler>>>16),N(o,65535&t.adler)),t.adler=1}if(69===o.status)if(o.gzhead.extra){for(i=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>i&&(t.adler=p(t.adler,o.pending_buf,o.pending-i,i)),j(t),i=o.pending,o.pending!==o.pending_buf_size));)L(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>i&&(t.adler=p(t.adler,o.pending_buf,o.pending-i,i)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){i=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>i&&(t.adler=p(t.adler,o.pending_buf,o.pending-i,i)),j(t),i=o.pending,o.pending===o.pending_buf_size)){s=1;break}s=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,L(o,s)}while(0!==s);o.gzhead.hcrc&&o.pending>i&&(t.adler=p(t.adler,o.pending_buf,o.pending-i,i)),0===s&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){i=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>i&&(t.adler=p(t.adler,o.pending_buf,o.pending-i,i)),j(t),i=o.pending,o.pending===o.pending_buf_size)){s=1;break}s=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,L(o,s)}while(0!==s);o.gzhead.hcrc&&o.pending>i&&(t.adler=p(t.adler,o.pending_buf,o.pending-i,i)),0===s&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&j(t),o.pending+2<=o.pending_buf_size&&(L(o,255&t.adler),L(o,t.adler>>8&255),t.adler=0,o.status=D)):o.status=D),0!==o.pending){if(j(t),0===t.avail_out)return o.last_flush=-1,d}else if(0===t.avail_in&&I(e)<=I(r)&&e!==f)return F(t,-5);if(666===o.status&&0!==t.avail_in)return F(t,-5);if(0!==t.avail_in||0!==o.lookahead||e!==h&&666!==o.status){var l=2===o.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(z(t),0===t.lookahead)){if(e===h)return E;break}if(t.match_length=0,r=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(R(t,!1),0===t.strm.avail_out))return E}return t.insert=0,e===f?(R(t,!0),0===t.strm.avail_out?A:P):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?E:O}(o,e):3===o.strategy?function(t,e){for(var r,n,i,s,a=t.window;;){if(t.lookahead<=S){if(z(t),t.lookahead<=S&&e===h)return E;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=C&&0<t.strstart&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){s=t.strstart+S;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);t.match_length=S-(s-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=C?(r=u._tr_tally(t,1,t.match_length-C),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(R(t,!1),0===t.strm.avail_out))return E}return t.insert=0,e===f?(R(t,!0),0===t.strm.avail_out?A:P):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?E:O}(o,e):n[o.level].func(o,e);if(l!==A&&l!==P||(o.status=666),l===E||l===A)return 0===t.avail_out&&(o.last_flush=-1),d;if(l===O&&(1===e?u._tr_align(o):5!==e&&(u._tr_stored_block(o,0,0,!1),3===e&&(M(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),j(t),0===t.avail_out))return o.last_flush=-1,d}return e!==f?d:o.wrap<=0?1:(2===o.wrap?(L(o,255&t.adler),L(o,t.adler>>8&255),L(o,t.adler>>16&255),L(o,t.adler>>24&255),L(o,255&t.total_in),L(o,t.total_in>>8&255),L(o,t.total_in>>16&255),L(o,t.total_in>>24&255)):(N(o,t.adler>>>16),N(o,65535&t.adler)),j(t),0<o.wrap&&(o.wrap=-o.wrap),0!==o.pending?d:1)},r.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==T&&69!==e&&73!==e&&91!==e&&103!==e&&e!==D&&666!==e?F(t,m):(t.state=null,e===D?F(t,-3):d):m},r.deflateSetDictionary=function(t,e){var r,n,i,s,a,c,h,u,f=e.length;if(!t||!t.state)return m;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==T||r.lookahead)return m;for(1===s&&(t.adler=l(t.adler,e,f,0)),r.wrap=0,f>=r.w_size&&(0===s&&(M(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new o.Buf8(r.w_size),o.arraySet(u,e,f-r.w_size,r.w_size,0),e=u,f=r.w_size),a=t.avail_in,c=t.next_in,h=t.input,t.avail_in=f,t.next_in=0,t.input=e,z(r);r.lookahead>=C;){for(n=r.strstart,i=r.lookahead-(C-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+C-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=C-1,z(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=C-1,r.match_available=0,t.next_in=c,t.input=h,t.avail_in=a,r.wrap=s,d},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,r){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,r){"use strict";e.exports=function(t,e){var r,n,i,s,a,o,l,u,c,h,f,d,p,m,y,g,b,v,_,w,x,C,S,k,T;r=t.state,n=t.next_in,k=t.input,i=n+(t.avail_in-5),s=t.next_out,T=t.output,a=s-(e-t.avail_out),o=s+(t.avail_out-257),l=r.dmax,u=r.wsize,c=r.whave,h=r.wnext,f=r.window,d=r.hold,p=r.bits,m=r.lencode,y=r.distcode,g=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;t:do{p<15&&(d+=k[n++]<<p,p+=8,d+=k[n++]<<p,p+=8),v=m[d&g];e:for(;;){if(d>>>=_=v>>>24,p-=_,0==(_=v>>>16&255))T[s++]=65535&v;else{if(!(16&_)){if(0==(64&_)){v=m[(65535&v)+(d&(1<<_)-1)];continue e}if(32&_){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}w=65535&v,(_&=15)&&(p<_&&(d+=k[n++]<<p,p+=8),w+=d&(1<<_)-1,d>>>=_,p-=_),p<15&&(d+=k[n++]<<p,p+=8,d+=k[n++]<<p,p+=8),v=y[d&b];r:for(;;){if(d>>>=_=v>>>24,p-=_,!(16&(_=v>>>16&255))){if(0==(64&_)){v=y[(65535&v)+(d&(1<<_)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(x=65535&v,p<(_&=15)&&(d+=k[n++]<<p,(p+=8)<_&&(d+=k[n++]<<p,p+=8)),l<(x+=d&(1<<_)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=_,p-=_,(_=s-a)<x){if(c<(_=x-_)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(S=f,(C=0)===h){if(C+=u-_,_<w){for(w-=_;T[s++]=f[C++],--_;);C=s-x,S=T}}else if(h<_){if(C+=u+h-_,(_-=h)<w){for(w-=_;T[s++]=f[C++],--_;);if(C=0,h<w){for(w-=_=h;T[s++]=f[C++],--_;);C=s-x,S=T}}}else if(C+=h-_,_<w){for(w-=_;T[s++]=f[C++],--_;);C=s-x,S=T}for(;2<w;)T[s++]=S[C++],T[s++]=S[C++],T[s++]=S[C++],w-=3;w&&(T[s++]=S[C++],1<w&&(T[s++]=S[C++]))}else{for(C=s-x;T[s++]=T[C++],T[s++]=T[C++],T[s++]=T[C++],2<(w-=3););w&&(T[s++]=T[C++],1<w&&(T[s++]=T[C++]))}break}}break}}while(n<i&&s<o);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=s,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=s<o?o-s+257:257-(s-o),r.hold=d,r.bits=p}},{}],49:[function(t,e,r){"use strict";var n=t("../utils/common"),o=t("./adler32"),l=t("./crc32"),c=t("./inffast"),h=t("./inftrees"),f=1,d=2,m=0,y=-2,v=1,_=852,i=592;function w(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function s(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=v,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(_),e.distcode=e.distdyn=new n.Buf32(i),e.sane=1,e.back=-1,m):y}function x(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,a(t)):y}function C(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?y:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,x(t))):y}function u(t,e){var r,n;return t?(n=new s,(t.state=n).window=null,(r=C(t,e))!==m&&(t.state=null),r):y}var S,k,T=!0;function D(t){if(T){var e;for(S=new n.Buf32(512),k=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(h(f,t.lens,0,288,S,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;h(d,t.lens,0,32,k,0,t.work,{bits:5}),T=!1}t.lencode=S,t.lenbits=9,t.distcode=k,t.distbits=5}function E(t,e,r,o){var i,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),o>=s.wsize?(n.arraySet(s.window,e,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(o<(i=s.wsize-s.wnext)&&(i=o),n.arraySet(s.window,e,r-o,i,s.wnext),(o-=i)?(n.arraySet(s.window,e,r-o,o,0),s.wnext=o,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}r.inflateReset=x,r.inflateReset2=C,r.inflateResetKeep=a,r.inflateInit=function(t){return u(t,15)},r.inflateInit2=u,r.inflate=function(t,e){var r,_,i,s,a,x,C,u,S,k,T,O,p,A,P,g,b,F,I,M,j,R,L,N,B=0,z=new n.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return y;12===(r=t.state).mode&&(r.mode=13),a=t.next_out,i=t.output,C=t.avail_out,s=t.next_in,_=t.input,x=t.avail_in,u=r.hold,S=r.bits,k=x,T=C,R=m;t:for(;;)switch(r.mode){case v:if(0===r.wrap){r.mode=13;break}for(;S<16;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}if(2&r.wrap&&35615===u){z[r.check=0]=255&u,z[1]=u>>>8&255,r.check=l(r.check,z,2,0),S=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&u)){t.msg="unknown compression method",r.mode=30;break}if(S-=4,j=8+(15&(u>>>=4)),0===r.wbits)r.wbits=j;else if(j>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<j,t.adler=r.check=1,r.mode=512&u?10:12,S=u=0;break;case 2:for(;S<16;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}if(r.flags=u,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=u>>8&1),512&r.flags&&(z[0]=255&u,z[1]=u>>>8&255,r.check=l(r.check,z,2,0)),S=u=0,r.mode=3;case 3:for(;S<32;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}r.head&&(r.head.time=u),512&r.flags&&(z[0]=255&u,z[1]=u>>>8&255,z[2]=u>>>16&255,z[3]=u>>>24&255,r.check=l(r.check,z,4,0)),S=u=0,r.mode=4;case 4:for(;S<16;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&(z[0]=255&u,z[1]=u>>>8&255,r.check=l(r.check,z,2,0)),S=u=0,r.mode=5;case 5:if(1024&r.flags){for(;S<16;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&(z[0]=255&u,z[1]=u>>>8&255,r.check=l(r.check,z,2,0)),S=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(x<(O=r.length)&&(O=x),O&&(r.head&&(j=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,_,s,O,j)),512&r.flags&&(r.check=l(r.check,_,O,s)),x-=O,s+=O,r.length-=O),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===x)break t;for(O=0;j=_[s+O++],r.head&&j&&r.length<65536&&(r.head.name+=String.fromCharCode(j)),j&&O<x;);if(512&r.flags&&(r.check=l(r.check,_,O,s)),x-=O,s+=O,j)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===x)break t;for(O=0;j=_[s+O++],r.head&&j&&r.length<65536&&(r.head.comment+=String.fromCharCode(j)),j&&O<x;);if(512&r.flags&&(r.check=l(r.check,_,O,s)),x-=O,s+=O,j)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;S<16;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}if(u!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}S=u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;S<32;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}t.adler=r.check=w(u),S=u=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=a,t.avail_out=C,t.next_in=s,t.avail_in=x,r.hold=u,r.bits=S,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){u>>>=7&S,S-=7&S,r.mode=27;break}for(;S<3;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}switch(r.last=1&u,S-=1,3&(u>>>=1)){case 0:r.mode=14;break;case 1:if(D(r),r.mode=20,6!==e)break;u>>>=2,S-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}u>>>=2,S-=2;break;case 14:for(u>>>=7&S,S-=7&S;S<32;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}if((65535&u)!=(u>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,S=u=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(O=r.length){if(x<O&&(O=x),C<O&&(O=C),0===O)break t;n.arraySet(i,_,s,O,a),x-=O,s+=O,C-=O,a+=O,r.length-=O;break}r.mode=12;break;case 17:for(;S<14;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}if(r.nlen=257+(31&u),u>>>=5,S-=5,r.ndist=1+(31&u),u>>>=5,S-=5,r.ncode=4+(15&u),u>>>=4,S-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;S<3;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}r.lens[U[r.have++]]=7&u,u>>>=3,S-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,L={bits:r.lenbits},R=h(0,r.lens,0,19,r.lencode,0,r.work,L),r.lenbits=L.bits,R){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;g=(B=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,b=65535&B,!((P=B>>>24)<=S);){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}if(b<16)u>>>=P,S-=P,r.lens[r.have++]=b;else{if(16===b){for(N=P+2;S<N;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}if(u>>>=P,S-=P,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}j=r.lens[r.have-1],O=3+(3&u),u>>>=2,S-=2}else if(17===b){for(N=P+3;S<N;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}S-=P,j=0,O=3+(7&(u>>>=P)),u>>>=3,S-=3}else{for(N=P+7;S<N;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}S-=P,j=0,O=11+(127&(u>>>=P)),u>>>=7,S-=7}if(r.have+O>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;O--;)r.lens[r.have++]=j}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,L={bits:r.lenbits},R=h(f,r.lens,0,r.nlen,r.lencode,0,r.work,L),r.lenbits=L.bits,R){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,L={bits:r.distbits},R=h(d,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,L),r.distbits=L.bits,R){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=x&&258<=C){t.next_out=a,t.avail_out=C,t.next_in=s,t.avail_in=x,r.hold=u,r.bits=S,c(t,T),a=t.next_out,i=t.output,C=t.avail_out,s=t.next_in,_=t.input,x=t.avail_in,u=r.hold,S=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(B=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,b=65535&B,!((P=B>>>24)<=S);){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}if(g&&0==(240&g)){for(F=P,I=g,M=b;g=(B=r.lencode[M+((u&(1<<F+I)-1)>>F)])>>>16&255,b=65535&B,!(F+(P=B>>>24)<=S);){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}u>>>=F,S-=F,r.back+=F}if(u>>>=P,S-=P,r.back+=P,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(N=r.extra;S<N;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,S-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(B=r.distcode[u&(1<<r.distbits)-1])>>>16&255,b=65535&B,!((P=B>>>24)<=S);){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}if(0==(240&g)){for(F=P,I=g,M=b;g=(B=r.distcode[M+((u&(1<<F+I)-1)>>F)])>>>16&255,b=65535&B,!(F+(P=B>>>24)<=S);){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}u>>>=F,S-=F,r.back+=F}if(u>>>=P,S-=P,r.back+=P,64&g){t.msg="invalid distance code",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(N=r.extra;S<N;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,S-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===C)break t;if(O=T-C,r.offset>O){if((O=r.offset-O)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}p=O>r.wnext?(O-=r.wnext,r.wsize-O):r.wnext-O,O>r.length&&(O=r.length),A=r.window}else A=i,p=a-r.offset,O=r.length;for(C<O&&(O=C),C-=O,r.length-=O;i[a++]=A[p++],--O;);0===r.length&&(r.mode=21);break;case 26:if(0===C)break t;i[a++]=r.length,C--,r.mode=21;break;case 27:if(r.wrap){for(;S<32;){if(0===x)break t;x--,u|=_[s++]<<S,S+=8}if(T-=C,t.total_out+=T,r.total+=T,T&&(t.adler=r.check=r.flags?l(r.check,i,T,a-T):o(r.check,i,T,a-T)),T=C,(r.flags?u:w(u))!==r.check){t.msg="incorrect data check",r.mode=30;break}S=u=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;S<32;){if(0===x)break t;x--,u+=_[s++]<<S,S+=8}if(u!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}S=u=0}r.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;default:return y}return t.next_out=a,t.avail_out=C,t.next_in=s,t.avail_in=x,r.hold=u,r.bits=S,(r.wsize||T!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&E(t,t.output,t.next_out,T-t.avail_out)?(r.mode=31,-4):(k-=t.avail_in,T-=t.avail_out,t.total_in+=k,t.total_out+=T,r.total+=T,r.wrap&&T&&(t.adler=r.check=r.flags?l(r.check,i,T,t.next_out-T):o(r.check,i,T,t.next_out-T)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==k&&0===T||4===e)&&R===m&&(R=-5),R)},r.inflateEnd=function(t){if(!t||!t.state)return y;var e=t.state;return e.window&&(e.window=null),t.state=null,m},r.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?y:((r.head=e).done=!1,m):y},r.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?y:11===r.mode&&o(1,e,n,0)!==r.check?-3:E(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,m):y},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,r){"use strict";var n=t("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,r,f,i,s,a,d){var m,u,y,v,_,w,p,x,C,g=d.bits,b=0,S=0,k=0,T=0,D=0,E=0,O=0,A=0,P=0,F=0,I=null,M=0,j=new n.Buf16(16),R=new n.Buf16(16),L=null,N=0;for(b=0;b<=15;b++)j[b]=0;for(S=0;S<f;S++)j[e[r+S]]++;for(D=g,T=15;1<=T&&0===j[T];T--);if(T<D&&(D=T),0===T)return i[s++]=20971520,i[s++]=20971520,d.bits=1,0;for(k=1;k<T&&0===j[k];k++);for(D<k&&(D=k),b=A=1;b<=15;b++)if(A<<=1,(A-=j[b])<0)return-1;if(0<A&&(0===t||1!==T))return-1;for(R[1]=0,b=1;b<15;b++)R[b+1]=R[b]+j[b];for(S=0;S<f;S++)0!==e[r+S]&&(a[R[e[r+S]]++]=S);if(w=0===t?(I=L=a,19):1===t?(I=o,M-=257,L=l,N-=257,256):(I=c,L=h,-1),b=k,_=s,O=S=F=0,y=-1,v=(P=1<<(E=D))-1,1===t&&852<P||2===t&&592<P)return 1;for(;;){for(p=b-O,C=a[S]<w?(x=0,a[S]):a[S]>w?(x=L[N+a[S]],I[M+a[S]]):(x=96,0),m=1<<b-O,k=u=1<<E;i[_+(F>>O)+(u-=m)]=p<<24|x<<16|C|0,0!==u;);for(m=1<<b-1;F&m;)m>>=1;if(0!==m?(F&=m-1,F+=m):F=0,S++,0==--j[b]){if(b===T)break;b=e[r+a[S]]}if(D<b&&(F&v)!==y){for(0===O&&(O=D),_+=k,A=1<<(E=b-O);E+O<T&&!((A-=j[E+O])<=0);)E++,A<<=1;if(P+=1<<E,1===t&&852<P||2===t&&592<P)return 1;i[y=F&v]=D<<24|E<<16|_-s|0}}return 0!==F&&(i[_+F]=b-O<<24|64<<16|0),d.bits=D,0}},{"../utils/common":41}],51:[function(t,e,r){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,r){"use strict";var i=t("../utils/common"),n=0,o=1;function l(t){for(var e=t.length;0<=--e;)t[e]=0}var s=0,a=29,u=256,c=u+1+a,h=30,f=19,d=2*c+1,g=15,m=16,p=7,y=256,b=16,v=17,_=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(c+2));l(k);var T=new Array(2*h);l(T);var D=new Array(512);l(D);var E=new Array(256);l(E);var O=new Array(a);l(O);var A,P,F,I=new Array(h);function M(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function j(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function R(t){return t<256?D[t]:D[256+(t>>>7)]}function L(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,r){t.bi_valid>m-r?(t.bi_buf|=e<<t.bi_valid&65535,L(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=r-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function B(t,e,r){N(t,r[2*e],r[2*e+1])}function z(t,e){for(var r=0;r|=1&t,t>>>=1,r<<=1,0<--e;);return r>>>1}function U(t,e,r){var n,i,s=new Array(g+1),a=0;for(n=1;n<=g;n++)s[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var o=t[2*i+1];0!==o&&(t[2*i]=z(s[o]++,o))}}function V(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<f;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*y]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function W(t){8<t.bi_valid?L(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function H(t,e,r,n){var i=2*e,s=2*r;return t[i]<t[s]||t[i]===t[s]&&n[e]<=n[r]}function Y(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&H(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!H(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function X(t,e,r){var n,i,s,a,o=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===n?B(t,i,e):(B(t,(s=E[i])+u+1,e),0!==(a=w[s])&&N(t,i-=O[s],a),B(t,s=R(--n),r),0!==(a=x[s])&&N(t,n-=I[s],a)),o<t.last_lit;);B(t,y,e)}function G(t,e){var r,n,i,s=e.dyn_tree,a=e.stat_desc.static_tree,o=e.stat_desc.has_stree,l=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=d,r=0;r<l;r++)0!==s[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):s[2*r+1]=0;for(;t.heap_len<2;)s[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,o&&(t.static_len-=a[2*i+1]);for(e.max_code=u,r=t.heap_len>>1;1<=r;r--)Y(t,s,r);for(i=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Y(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,s[2*i]=s[2*r]+s[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,s[2*r+1]=s[2*n+1]=i,t.heap[1]=i++,Y(t,s,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,s,a,o,l=e.dyn_tree,u=e.max_code,c=e.stat_desc.static_tree,h=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,p=e.stat_desc.max_length,y=0;for(s=0;s<=g;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<d;r++)p<(s=l[2*l[2*(n=t.heap[r])+1]+1]+1)&&(s=p,y++),l[2*n+1]=s,u<n||(t.bl_count[s]++,a=0,m<=n&&(a=f[n-m]),o=l[2*n],t.opt_len+=o*(s+a),h&&(t.static_len+=o*(c[2*n+1]+a)));if(0!==y){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,y-=2}while(0<y);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)u<(i=t.heap[--r])||(l[2*i+1]!==s&&(t.opt_len+=(s-l[2*i+1])*l[2*i],l[2*i+1]=s),n--)}}(t,e),U(s,u,t.bl_count)}function Q(t,e,r){var n,i,s=-1,a=e[1],o=0,l=7,u=4;for(0===a&&(l=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++o<l&&i===a||(o<u?t.bl_tree[2*i]+=o:0!==i?(i!==s&&t.bl_tree[2*i]++,t.bl_tree[2*b]++):o<=10?t.bl_tree[2*v]++:t.bl_tree[2*_]++,s=i,u=(o=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function $(t,e,r){var n,i,s=-1,a=e[1],o=0,l=7,u=4;for(0===a&&(l=138,u=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++o<l&&i===a)){if(o<u)for(;B(t,i,t.bl_tree),0!=--o;);else 0!==i?(i!==s&&(B(t,i,t.bl_tree),o--),B(t,b,t.bl_tree),N(t,o-3,2)):o<=10?(B(t,v,t.bl_tree),N(t,o-3,3)):(B(t,_,t.bl_tree),N(t,o-11,7));s=i,u=(o=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}l(I);var q=!1;function K(t,e,r,n){N(t,(s<<1)+(n?1:0),3),function(t,e,r,n){W(t),n&&(L(t,r),L(t,~r)),i.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}r._tr_init=function(t){q||(function(){var t,e,r,n,i,s=new Array(g+1);for(n=r=0;n<a-1;n++)for(O[n]=r,t=0;t<1<<w[n];t++)E[r++]=n;for(E[r-1]=n,n=i=0;n<16;n++)for(I[n]=i,t=0;t<1<<x[n];t++)D[i++]=n;for(i>>=7;n<h;n++)for(I[n]=i<<7,t=0;t<1<<x[n]-7;t++)D[256+i++]=n;for(e=0;e<=g;e++)s[e]=0;for(t=0;t<=143;)k[2*t+1]=8,t++,s[8]++;for(;t<=255;)k[2*t+1]=9,t++,s[9]++;for(;t<=279;)k[2*t+1]=7,t++,s[7]++;for(;t<=287;)k[2*t+1]=8,t++,s[8]++;for(U(k,c+1,s),t=0;t<h;t++)T[2*t+1]=5,T[2*t]=z(t,5);A=new M(k,w,u+1,c,g),P=new M(T,x,0,h,g),F=new M(new Array(0),C,0,f,p)}
2(),q=!0),t.l_desc=new j(t.dyn_ltree,A),t.d_desc=new j(t.dyn_dtree,P),t.bl_desc=new j(t.bl_tree,F),t.bi_buf=0,t.bi_valid=0,V(t)},r._tr_stored_block=K,r._tr_flush_block=function(t,e,r,l){var i,s,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return n;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<u;e++)if(0!==t.dyn_ltree[2*e])return o;return n}(t)),G(t,t.l_desc),G(t,t.d_desc),a=function(t){var e;for(Q(t,t.dyn_ltree,t.l_desc.max_code),Q(t,t.dyn_dtree,t.d_desc.max_code),G(t,t.bl_desc),e=f-1;3<=e&&0===t.bl_tree[2*S[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==e?K(t,e,r,l):4===t.strategy||s===i?(N(t,2+(l?1:0),3),X(t,k,T)):(N(t,4+(l?1:0),3),function(t,e,r,n){var i;for(N(t,e-257,5),N(t,r-1,5),N(t,n-4,4),i=0;i<n;i++)N(t,t.bl_tree[2*S[i]+1],3);$(t,t.dyn_ltree,e-1),$(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),X(t,t.dyn_ltree,t.dyn_dtree)),V(t),l&&W(t)},r._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(E[r]+u+1)]++,t.dyn_dtree[2*R(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){N(t,2,3),B(t,y,k),function(t){16===t.bi_valid?(L(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var i,s,r,a,n=1,l={},u=!1,c=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,i="[object process]"==={}.toString.call(t.process)?function(t){o.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?(a="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",m,!1):t.attachEvent("onmessage",m),function(e){t.postMessage(a+e,"*")}):t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){r.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(s=c.documentElement,function(t){var e=c.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,s.removeChild(e),e=null},s.appendChild(e)}):function(t){setTimeout(d,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var o={callback:t,args:e};return l[n]=o,i(n),n++},h.clearImmediate=f}function f(t){delete l[t]}function d(t){if(u)setTimeout(d,0,t);else{var r=l[t];if(r){u=!0;try{!function(t){var r=t.callback,n=t.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(e,n)}}(r)}finally{f(t),u=!1}}}}function m(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}).call(this,r(89).Buffer,r(287).setImmediate,r(48),r(100))},459:function(t,e,r){(function(r){var n,o,l;o=[],n=function(){"use strict";function b(a,b){return void 0===b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\ufeff",a],{type:a.type}):a}function e(a,b,t){var e=new XMLHttpRequest;e.open("GET",a),e.responseType="blob",e.onload=function(){g(e.response,b,t)},e.onerror=function(){console.error("could not download file")},e.send()}function n(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function o(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(t){var b=document.createEvent("MouseEvents");
2b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var l="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,a=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=l.saveAs||("object"!=typeof window||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,t){var i=l.URL||l.webkitURL,r=document.createElement("a");g=g||b.name||"download",r.download=g,r.rel="noopener","string"==typeof b?(r.href=b,r.origin===location.origin?o(r):n(r.href)?e(b,g,t):o(r,r.target="_blank")):(r.href=i.createObjectURL(b),setTimeout((function(){i.revokeObjectURL(r.href)}),4e4),setTimeout((function(){o(r)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,g,r){if(g=g||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(b(t,r),g);else if(n(t))e(t,g,r);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){o(i)}))}}:function(b,t,r,g){if((g=g||open("","_blank"))&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return e(b,t,r);var n="application/octet-stream"===b.type,i=/constructor/i.test(l.HTMLElement)||l.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||n&&i||a)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var a=c.result;a=o?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null},c.readAsDataURL(b)}else{var h=l.URL||l.webkitURL,f=h.createObjectURL(b);g?g.location=f:location.href=f,g=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});l.saveAs=g.saveAs=g,t.exports=g},void 0===(l="function"==typeof n?n.apply(e,o):n)||(t.exports=l)}).call(this,r(48))},47:function(t,e,r){"use strict";r.r(e),r.d(e,"Observable",(function(){return n.a})),r.d(e,"getOperationName",(function(){return h.getOperationName})),r.d(e,"ApolloLink",(function(){return D})),r.d(e,"concat",(function(){return T})),r.d(e,"createOperation",(function(){return _})),r.d(e,"empty",(function(){return C})),r.d(e,"execute",(function(){return E})),r.d(e,"from",(function(){return S})),r.d(e,"fromError",(function(){return v})),r.d(e,"fromPromise",(function(){return y})),r.d(e,"makePromise",(function(){return m})),r.d(e,"split",(function(){return k})),r.d(e,"toPromise",(function(){return d}));var n=r(57),o=r(10),l=function(t,b){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},l(t,b)};var c=function(){return c=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},c.apply(this,arguments)};var h=r(4);!function(t){function e(e,link){var r=t.call(this,e)||this;return r.link=link,r}(function(t,b){function e(){this.constructor=t}l(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)})(e,t)}(Error);function f(link){return link.request.length<=1}function d(t){var e=!1;return new Promise((function(r,n){t.subscribe({next:function(data){e||(e=!0,r(data))},error:n})}))}var m=d;function y(t){return new n.a((function(e){t.then((function(t){e.next(t),e.complete()})).catch(e.error.bind(e))}))}function v(t){return new n.a((function(e){e.error(t)}))}function _(t,e){var r=c({},t);return Object.defineProperty(e,"setContext",{enumerable:!1,value:function(t){r=c({},r,"function"==typeof t?t(r):t)}}),Object.defineProperty(e,"getContext",{enumerable:!1,value:function(){return c({},r)}}),Object.defineProperty(e,"toKey",{enumerable:!1,value:function(){return function(t){var e=t.query,r=t.variables,n=t.operationName;return JSON.stringify([n,e,r])}(e)}}),e}function w(t,e){return e?e(t):n.a.of()}function x(t){return"function"==typeof t?new D(t):t}function C(){return new D((function(){return n.a.of()}))}function S(t){return 0===t.length?C():t.map(x).reduce((function(t,e){return t.concat(e)}))}function k(t,e,r){var o=x(e),l=x(r||new D(w));return f(o)&&f(l)?new D((function(e){return t(e)?o.request(e)||n.a.of():l.request(e)||n.a.of()})):new D((function(e,r){return t(e)?o.request(e,r)||n.a.of():l.request(e,r)||n.a.of()}))}var T=function(t,e){var r=x(t);if(f(r))return r;var o=x(e);return f(o)?new D((function(t){return r.request(t,(function(t){return o.request(t)||n.a.of()}))||n.a.of()})):new D((function(t,e){return r.request(t,(function(t){return o.request(t,e)||n.a.of()}))||n.a.of()}))},D=function(){function t(t){t&&(this.request=t)}return t.prototype.split=function(e,r,n){return this.concat(k(e,r,n||new t(w)))},t.prototype.concat=function(t){return T(this,t)},t.prototype.request=function(t,e){throw new o.a(1)},t.empty=C,t.from=S,t.split=k,t.execute=E,t}();function E(link,t){return link.request(_(t.context,function(t){var e={variables:t.variables||{},extensions:t.extensions||{},operationName:t.operationName,query:t.query};return e.operationName||(e.operationName="string"!=typeof e.query?Object(h.getOperationName)(e.query):""),e}(function(t){for(var e=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(t);r<n.length;r++){var l=n[r];if(e.indexOf(l)<0)throw new o.a(2)}return t}(t))))||n.a.of()}},475:function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}r.d(e,"a",(function(){return n}))},476:function(t,e,r){t.exports=r(876).Observable},477:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}
2));var n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},n(t,b)};function o(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}},478:function(t,e,r){"use strict";t.exports=function(data,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var e,r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(e=t.cmp,function(t){return function(a,b){var r={key:a,value:t[a]},n={key:b,value:t[b]};return e(r,n)}}),o=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var i,l;if(Array.isArray(e)){for(l="[",i=0;i<e.length;i++)i&&(l+=","),l+=t(e[i])||"null";return l+"]"}if(null===e)return"null";if(-1!==o.indexOf(e)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(e)-1,h=Object.keys(e).sort(n&&n(e));for(l="",i=0;i<h.length;i++){var f=h[i],d=t(e[f]);d&&(l&&(l+=","),l+=JSON.stringify(f)+":"+d)}return o.splice(c,1),"{"+l+"}"}}(data)}},479:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(877),o=r(4),l=r(878);function c(t,e,r){return n.__awaiter(this,void 0,void 0,(function(){var f,d,m,y,v,_=this;return n.__generator(this,(function(w){switch(w.label){case 0:return f=r.fragmentMap,d=r.contextValue,m=r.variableValues,y={},v=function(t){return n.__awaiter(_,void 0,void 0,(function(){var v,_,w,x,C;return n.__generator(this,(function(n){switch(n.label){case 0:return o.shouldInclude(t,m)?o.isField(t)?[4,h(t,e,r)]:[3,2]:[2];case 1:return v=n.sent(),_=o.resultKeyNameFromField(t),void 0!==v&&(void 0===y[_]?y[_]=v:l.merge(y[_],v)),[2];case 2:if(o.isInlineFragment(t))w=t;else if(!(w=f[t.name.value]))throw new Error("No fragment named "+t.name.value);return x=w.typeCondition.name.value,r.fragmentMatcher(e,x,d)?[4,c(w.selectionSet,e,r)]:[3,4];case 3:C=n.sent(),l.merge(y,C),n.label=4;case 4:return[2]}}
2))}))},[4,Promise.all(t.selections.map(v))];case 1:return w.sent(),r.resultMapper?[2,r.resultMapper(y,e)]:[2,y]}}))}))}function h(t,e,r){return n.__awaiter(this,void 0,void 0,(function(){var l,h,d,m,y,v,_;return n.__generator(this,(function(n){switch(n.label){case 0:return l=r.variableValues,h=r.contextValue,d=r.resolver,m=t.name.value,y=o.argumentsObjectFromField(t,l),v={isLeaf:!t.selectionSet,resultKey:o.resultKeyNameFromField(t),directives:o.getDirectiveInfoFromField(t,l),field:t},[4,d(m,e,y,h,v)];case 1:return _=n.sent(),t.selectionSet?null==_?[2,_]:Array.isArray(_)?[2,f(t,_,r)]:[2,c(t.selectionSet,_,r)]:[2,_]}}))}))}function f(t,e,r){return Promise.all(e.map((function(e){return null===e?null:Array.isArray(e)?f(t,e,r):c(t.selectionSet,e,r)})))}e.graphql=function(t,e,r,n,l,h){void 0===h&&(h={});var f=o.getMainDefinition(e),d=o.getFragmentDefinitions(e),m={fragmentMap:o.createFragmentMap(d),contextValue:n,variableValues:l,resultMapper:h.resultMapper,resolver:t,fragmentMatcher:h.fragmentMatcher||function(){return!0}};return c(f.selectionSet,r,m)}},480:function(t,e,r){"use strict";var n=r(879)(r(880)),o=r(47),l=o.ApolloLink,c=o.Observable,h=r(924),f=h.selectURI,d=h.selectHttpOptionsAndBody,m=h.fallbackHttpConfig,y=h.serializeFetchParameter,v=h.createSignalIfSupported,_=h.parseAndCheckHttpResponse,w=r(881),x=w.extractFiles,C=w.isExtractableFile,S=w.ReactNativeFile;function k(t,e,r){t.append(e,r,r.name)}e.ReactNativeFile=S,e.isExtractableFile=C,e.formDataAppendFile=k,e.createUploadLink=function(t){var e=void 0===t?{}:t,r=e.uri,o=void 0===r?"/graphql":r,h=e.isExtractableFile,w=void 0===h?C:h,S=e.FormData,T=e.formDataAppendFile,D=void 0===T?k:T,E=e.fetch,O=e.fetchOptions,A=e.credentials,P=e.headers,F={http:{includeExtensions:e.includeExtensions},options:O,credentials:A,headers:P};return new l((function(t){var e=f(t,o),r=t.getContext(),l=r.clientAwareness,h=(l=void 0===l?{}:l).name,C=l.version,k=r.headers,T={http:r.http,options:r.fetchOptions,credentials:r.credentials,headers:(0,n.default)({},h&&{"apollographql-client-name":h},{},C&&{"apollographql-client-version":C},{},k)},O=d(t,m,F,T),A=O.options,body=O.body,P=x(body,"",w),I=P.clone,M=P.files,j=y(I,"Payload");if(M.size){delete A.headers["content-type"];var form=new(S||FormData);form.append("operations",j);var map={},i=0;M.forEach((function(t){map[++i]=t})),form.append("map",JSON.stringify(map)),i=0,M.forEach((function(t,e){D(form,++i,e)})),A.body=form}else A.body=j;return new c((function(r){var n;if(!A.signal){var o=v().controller;o&&(n=o,A.signal=n.signal)}return(E||fetch)(e,A).then((function(e){return t.setContext({response:e}),e})).then(_(t)).then((function(t){r.next(t),r.complete()})).catch((function(t){"AbortError"!==t.name&&(t.result&&t.result.errors&&t.result.data&&r.next(t.result),r.error(t))})),function(){n&&n.abort()}}))}))}},482:function(t,e,r){!function(e,r){var n=function(t,e,r){"use strict";var n,o;if(function(){var e,r={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in o=t.lazySizesConfig||t.lazysizesConfig||{},r)e in o||(o[e]=r[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var l=e.documentElement,c=t.HTMLPictureElement,h="addEventListener",f="getAttribute",d=t[h].bind(t),m=t.setTimeout,y=t.requestAnimationFrame||m,v=t.requestIdleCallback,_=/^picture$/i,w=["load","error","lazyincluded","_lazyloaded"],x={},C=Array.prototype.forEach,S=function(t,e){return x[e]||(x[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),x[e].test(t[f]("class")||"")&&x[e]},k=function(t,e){S(t,e)||t.setAttribute("class",(t[f]("class")||"").trim()+" "+e)},T=function(t,e){var r;(r=S(t,e))&&t.setAttribute("class",(t[f]("class")||"").replace(r," "))},D=function(t,e,r){var n=r?h:"removeEventListener";r&&D(t,e),w.forEach((function(r){t[n](r,e)}))},E=function(t,r,o,l,c){var h=e.createEvent("Event");return o||(o={}
2),o.instance=n,h.initEvent(r,!l,!c),h.detail=o,t.dispatchEvent(h),h},O=function(e,r){var n;!c&&(n=t.picturefill||o.pf)?(r&&r.src&&!e[f]("srcset")&&e.setAttribute("srcset",r.src),n({reevaluate:!0,elements:[e]})):r&&r.src&&(e.src=r.src)},A=function(t,style){return(getComputedStyle(t,null)||{})[style]},P=function(t,e,r){for(r=r||t.offsetWidth;r<o.minSize&&e&&!t._lazysizesWidth;)r=e.offsetWidth,e=e.parentNode;return r},F=(Et=[],Ot=[],At=Et,Pt=function(){var t=At;for(At=Et.length?Ot:Et,Tt=!0,Dt=!1;t.length;)t.shift()();Tt=!1},Ft=function(t,r){Tt&&!r?t.apply(this,arguments):(At.push(t),Dt||(Dt=!0,(e.hidden?m:y)(Pt)))},Ft._lsFlush=Pt,Ft),I=function(t,e){return e?function(){F(t)}:function(){var e=this,r=arguments;F((function(){t.apply(e,r)}))}},M=function(t){var e,n=0,l=o.throttleDelay,c=o.ricTimeout,h=function(){e=!1,n=r.now(),t()},f=v&&c>49?function(){v(h,{timeout:c}),c!==o.ricTimeout&&(c=o.ricTimeout)}:I((function(){m(h)}),!0);return function(t){var o;(t=!0===t)&&(c=33),e||(e=!0,(o=l-(r.now()-n))<0&&(o=0),t||o<9?f():m(f,o))}},j=function(t){var e,n,o=99,l=function(){e=null,t()},c=function(){var t=r.now()-n;t<o?m(c,o-t):(v||l)(l)};return function(){n=r.now(),e||(e=m(c,o))}},R=(it=/^img$/i,nt=/^iframe$/i,ot="onscroll"in t&&!/(gle|ing)bot/.test(navigator.userAgent),st=0,at=0,lt=0,ut=-1,ct=function(t){lt--,(!t||lt<0||!t.target)&&(lt=0)},ht=function(t){return null==et&&(et="hidden"==A(e.body,"visibility")),et||!("hidden"==A(t.parentNode,"visibility")&&"hidden"==A(t,"visibility"))},ft=function(t,r){var n,o=t,c=ht(t);for(K-=r,tt+=r,J-=r,Z+=r;c&&(o=o.offsetParent)&&o!=e.body&&o!=l;)(c=(A(o,"opacity")||1)>0)&&"visible"!=A(o,"overflow")&&(n=o.getBoundingClientRect(),c=Z>n.left&&J<n.right&&tt>n.top-1&&K<n.bottom+1);return c},pt=function(){var t,i,rect,r,c,h,d,m,y,v,_,w,x=n.elements;if((X=o.loadMode)&<<8&&(t=x.length)){for(i=0,ut++;i<t;i++)if(x[i]&&!x[i]._lazyRace)if(!ot||n.prematureUnveil&&n.prematureUnveil(x[i]))xt(x[i]);else if((m=x[i][f]("data-expand"))&&(h=1*m)||(h=at),v||(v=!o.expand||o.expand<1?l.clientHeight>500&&l.clientWidth>500?500:370:o.expand,n._defEx=v,_=v*o.expFactor,w=o.hFac,et=null,at<_&<<1&&ut>2&&X>2&&!e.hidden?(at=_,ut=0):at=X>1&&ut>1&<<6?v:st),y!==h&&(Q=innerWidth+h*w,$=innerHeight+h,d=-1*h,y=h),rect=x[i].getBoundingClientRect(),(tt=rect.bottom)>=d&&(K=rect.top)<=$&&(Z=rect.right)>=d*w&&(J=rect.left)<=Q&&(tt||Z||J||K)&&(o.loadHidden||ht(x[i]))&&(H&<<3&&!m&&(X<3||ut<4)||ft(x[i],h))){if(xt(x[i]),c=!0,lt>9)break}else!c&&H&&!r&<<4&&ut<4&&X>2&&(W[0]||o.preloadAfterLoad)&&(W[0]||!m&&(tt||Z||J||K||"auto"!=x[i][f](o.sizesAttr)))&&(r=W[0]||x[i]);r&&!c&&xt(r)}},gt=M(pt),mt=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(ct(t),k(e,o.loadedClass),T(e,o.loadingClass),D(e,vt),E(e,"lazyloaded"))},yt=I(mt),vt=function(t){yt({target:t.target})},bt=function(t,e){var r=t.getAttribute("data-load-mode")||o.iframeLoadMode;0==r?t.contentWindow.location.replace(e):1==r&&(t.src=e)},_t=function(source){var t,e=source[f](o.srcsetAttr);(t=o.customMedia[source[f]("data-media")||source[f]("media")])&&source.setAttribute("media",t),e&&source.setAttribute("srcset",e)},wt=I((function(t,e,r,n,l){var c,h,d,y,v,w;(v=E(t,"lazybeforeunveil",e)).defaultPrevented||(n&&(r?k(t,o.autosizesClass):t.setAttribute("sizes",n)),h=t[f](o.srcsetAttr),c=t[f](o.srcAttr),l&&(y=(d=t.parentNode)&&_.test(d.nodeName||"")),w=e.firesLoad||"src"in t&&(h||c||y),v={target:t},k(t,o.loadingClass),w&&(clearTimeout(Y),Y=m(ct,2500),D(t,vt,!0)),y&&C.call(d.getElementsByTagName("source"),_t),h?t.setAttribute("srcset",h):c&&!y&&(nt.test(t.nodeName)?bt(t,c):t.src=c),l&&(h||y)&&O(t,{src:c})),t._lazyRace&&delete t._lazyRace,T(t,o.lazyClass),F((function(){var e=t.complete&&t.naturalWidth>1;w&&!e||(e&&k(t,o.fastLoadedClass),mt(v),t._lazyCache=!0,m((function(){"_lazyCache"in t&&delete t._lazyCache}),9)),"lazy"==t.loading&<--}),!0)})),xt=function(t){if(!t._lazyRace){var e,r=it.test(t.nodeName),n=r&&(t[f](o.sizesAttr)||t[f]("sizes")),l="auto"==n;(!l&&H||!r||!t[f]("src")&&!t.srcset||t.complete||S(t,o.errorClass)||!S(t,o.lazyClass))&&(e=E(t,"lazyunveilread").detail,l&&L.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,lt++,wt(t,e,l,n,r))}},Ct=j((function(){o.loadMode=3,gt()}
2)),St=function(){3==o.loadMode&&(o.loadMode=2),Ct()},kt=function(){H||(r.now()-G<999?m(kt,999):(H=!0,o.loadMode=3,gt(),d("scroll",St,!0)))},{_:function(){G=r.now(),n.elements=e.getElementsByClassName(o.lazyClass),W=e.getElementsByClassName(o.lazyClass+" "+o.preloadClass),d("scroll",gt,!0),d("resize",gt,!0),d("pageshow",(function(t){if(t.persisted){var r=e.querySelectorAll("."+o.loadingClass);r.length&&r.forEach&&y((function(){r.forEach((function(img){img.complete&&xt(img)}))}))}})),t.MutationObserver?new MutationObserver(gt).observe(l,{childList:!0,subtree:!0,attributes:!0}):(l[h]("DOMNodeInserted",gt,!0),l[h]("DOMAttrModified",gt,!0),setInterval(gt,999)),d("hashchange",gt,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(t){e[h](t,gt,!0)})),/d$|^c/.test(e.readyState)?kt():(d("load",kt),e[h]("DOMContentLoaded",gt),m(kt,2e4)),n.elements.length?(pt(),F._lsFlush()):gt()},checkElems:gt,unveil:xt,_aLSL:St}),L=(z=I((function(t,e,r,n){var o,i,l;if(t._lazysizesWidth=n,n+="px",t.setAttribute("sizes",n),_.test(e.nodeName||""))for(i=0,l=(o=e.getElementsByTagName("source")).length;i<l;i++)o[i].setAttribute("sizes",n);r.detail.dataAttr||O(t,r.detail)})),U=function(t,e,r){var n,o=t.parentNode;o&&(r=P(t,o,r),(n=E(t,"lazybeforesizes",{width:r,dataAttr:!!e})).defaultPrevented||(r=n.detail.width)&&r!==t._lazysizesWidth&&z(t,o,n,r))},V=j((function(){var i,t=B.length;if(t)for(i=0;i<t;i++)U(B[i])})),{_:function(){B=e.getElementsByClassName(o.autosizesClass),d("resize",V)},checkElems:V,updateElem:U}),N=function(){!N.i&&e.getElementsByClassName&&(N.i=!0,L._(),R._())};var B,z,U,V;
2var W,H,Y,X,G,Q,$,K,J,Z,tt,et,it,nt,ot,st,at,lt,ut,ct,ht,ft,pt,gt,mt,yt,vt,bt,_t,wt,xt,Ct,St,kt;var Tt,Dt,Et,Ot,At,Pt,Ft;return m((function(){o.init&&N()})),n={cfg:o,autoSizer:L,loader:R,init:N,uP:O,aC:k,rC:T,hC:S,fire:E,gW:P,rAF:F}}(e,e.document,Date);e.lazySizes=n,t.exports&&(t.exports=n)}("undefined"!=typeof window?window:{})},483:function(t,e,r){"use strict";var n,o=(n=r(883))&&"object"==typeof n&&"default"in n?n.default:n,script={name:"VuePlyr",props:{options:{type:Object,required:!1,default:()=>({})},emit:{type:Array,required:!1,default:()=>[]}},data:()=>({player:{}}),computed:{opts(){const t=this.options;return this.options.hasOwnProperty("hideYouTubeDOMError")||(t.hideYouTubeDOMError=!0),t}},mounted(){this.player=new o(this.$el.firstChild,this.opts),this.emit.forEach((element=>{this.player.on(element,this.emitPlayerEvent)}))},beforeDestroy(){try{this.player.destroy()}catch(t){this.opts.hideYouTubeDOMError&&"The YouTube player is not attached to the DOM."===t.message||console.error(t)}},methods:{emitPlayerEvent(t){this.$emit(t.type,t)}}};"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function l(t){let e="";for(const r in t){const style=t[r];e+='<style data-vue-ssr-id="'+Array.from(style.ids).join(" ")+'"'+(style.media?' media="'+style.media+'"':"")+">"+style.css+"</style>"}return e}const c=script;var h=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",[t._t("default")],2)};h._withStripped=!0;var f=function(template,style,script,t,e,r,n,o,l,c){"boolean"!=typeof n&&(l=o,o=n,n=!1);const h="function"==typeof script?script.options:script;let f;if(template&&template.render&&(h.render=template.render,h.staticRenderFns=template.staticRenderFns,h._compiled=!0,e&&(h.functional=!0)),t&&(h._scopeId=t),r?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),style&&style.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},h._ssrRegister=f):style&&(f=n?function(t){style.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){style.call(this,o(t))}),f)if(h.functional){const t=h.render;h.render=function(e,r){return f.call(r),t(e,r)}}else{const t=h.beforeCreate;h.beforeCreate=t?[].concat(t,f):[f]}return script}({render:h,staticRenderFns:[]},(function(t){t&&t("data-v-91800632_0",{source:"@keyframes plyr-progress{to{background-position:25px 0}}@keyframes plyr-popup{0%{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:subpixel-antialiased;direction:ltr;font-family:Avenir,\"Avenir Next\",\"Helvetica Neue\",\"Segoe UI\",Helvetica,Arial,sans-serif;font-variant-numeric:tabular-nums;font-weight:500;line-height:1.7;max-width:100%;
2min-width:200px;position:relative;text-shadow:none;transition:box-shadow .3s ease}.plyr audio,.plyr video{border-radius:inherit;height:auto;vertical-align:middle;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui ::after,.plyr--full-ui ::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:#4a5764;border-radius:2px;color:#fff;font-size:9px;line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in .3s ease;bottom:0;color:#fff;display:none;font-size:14px;left:0;padding:10px;position:absolute;text-align:center;transition:transform .4s ease-in-out;width:100%}.plyr__captions .plyr__caption{background:rgba(0,0,0,.8);border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone;line-height:185%;padding:.2em .5em;white-space:pre-wrap}.plyr__captions .plyr__caption div{display:inline}.plyr__captions span:empty{display:none}@media (min-width:480px){.plyr__captions{font-size:16px;padding:20px}}@media (min-width:768px){.plyr__captions{font-size:18px}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(-40px)}.plyr__control{background:0 0;border:0;border-radius:3px;color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;position:relative;transition:all .3s ease}.plyr__control svg{display:block;fill:currentColor;height:18px;pointer-events:none;width:18px}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{box-shadow:0 0 0 5px rgba(0,179,255,.5);outline:0}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control.plyr__control--pressed .label--not-pressed,.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed{display:none}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:#00b3ff;color:#fff}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:#00b3ff;color:#fff}.plyr__control--overlaid{background:rgba(0,179,255,.8);border:0;border-radius:100%;color:#fff;display:none;left:50%;padding:15px;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:focus,.plyr__control--overlaid:hover{background:#00b3ff}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:2.5px}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:2.5px}.plyr__controls .plyr__controls__item.plyr__time{padding:0 5px}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time,.plyr__controls .plyr__controls__item.plyr__time:first-child{padding-left:0}.plyr__controls .plyr__controls__item.plyr__volume{padding-right:5px}.plyr__controls .plyr__controls__item.plyr__volume:first-child{padding-right:0}.plyr__controls:empty{display:none}.plyr--audio .plyr__controls{background:#fff;border-radius:inherit;color:#4a5764;padding:10px}.plyr--video .plyr__controls{background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.7));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:#fff;left:0;padding:20px 5px 5px;position:absolute;right:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out;z-index:3}@media (min-width:480px){.plyr--video .plyr__controls{padding:35px 10px 10px}}
2.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr [data-plyr=airplay],.plyr [data-plyr=captions],.plyr [data-plyr=fullscreen],.plyr [data-plyr=pip]{display:none}.plyr--airplay-supported [data-plyr=airplay],.plyr--captions-enabled [data-plyr=captions],.plyr--fullscreen-enabled [data-plyr=fullscreen],.plyr--pip-supported [data-plyr=pip]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform .3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup .2s ease;background:rgba(255,255,255,.9);border-radius:4px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);color:#4a5764;font-size:16px;margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.plyr__menu__container::after{border:4px solid transparent;border-top-color:rgba(255,255,255,.9);content:'';height:0;position:absolute;right:15px;top:100%;width:0}.plyr__menu__container [role=menu]{padding:7px}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:#4a5764;display:flex;font-size:14px;padding:4px 11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:4px solid transparent;content:'';position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:28px}.plyr__menu__container .plyr__control--forward::after{border-left-color:rgba(74,87,100,.8);right:5px}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:500;margin:7px;margin-bottom:3px;padding-left:28px;position:relative;width:calc(100% - 14px)}.plyr__menu__container .plyr__control--back::after{border-right-color:rgba(74,87,100,.8);left:7px}.plyr__menu__container .plyr__control--back::before{background:#c1c9d1;box-shadow:0 1px 0 #fff;content:'';height:1px;left:0;margin-top:4px;overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:7px}.plyr__menu__container .plyr__control[role=menuitemradio]::after,.plyr__menu__container .plyr__control[role=menuitemradio]::before{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0,0,0,.1);content:'';display:block;flex-shrink:0;height:16px;margin-right:10px;transition:all .3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:#00b3ff}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(0,0,0,.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:-5px;overflow:hidden;padding-left:25px;pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:0 0;border:0;border-radius:26px;color:#00b3ff;display:block;height:19px;margin:0;padding:0;
2transition:box-shadow .3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:0 0;border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;-webkit-user-select:none;user-select:none;background-image:linear-gradient(to right,currentColor var(--value,0),transparent var(--value,0))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(35,41,47,.2);height:13px;position:relative;transition:all .2s ease;width:13px;-webkit-appearance:none;margin-top:-4px}.plyr--full-ui input[type=range]::-moz-range-track{background:0 0;border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;-moz-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(35,41,47,.2);height:13px;position:relative;transition:all .2s ease;width:13px}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:2.5px;height:5px}.plyr--full-ui input[type=range]::-ms-track{background:0 0;border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:0 0;border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:0 0;border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(35,41,47,.2);height:13px;position:relative;transition:all .2s ease;width:13px;margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{box-shadow:0 0 0 5px rgba(0,179,255,.5);outline:0}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{box-shadow:0 0 0 5px rgba(0,179,255,.5);outline:0}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{box-shadow:0 0 0 5px rgba(0,179,255,.5);outline:0}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:rgba(255,255,255,.25)}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:rgba(255,255,255,.25)}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:rgba(255,255,255,.25)}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(35,41,47,.2),0 0 0 3px rgba(255,255,255,.5)}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(35,41,47,.2),0 0 0 3px rgba(255,255,255,.5)}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(35,41,47,.2),0 0 0 3px rgba(255,255,255,.5)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:rgba(193,201,209,.66)}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:rgba(193,201,209,.66)}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:rgba(193,201,209,.66)}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(35,41,47,.2),0 0 0 3px rgba(0,0,0,.1)}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(35,41,47,.2),0 0 0 3px rgba(0,0,0,.1)}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(0,0,0,.15),0 0 0 1px rgba(35,41,47,.2),0 0 0 3px rgba(0,0,0,.1)}.plyr__poster{background-color:#000;background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr__time{font-size:14px}.plyr__time+.plyr__time::before{content:'\\2044';margin-right:10px}@media (max-width:767px){.plyr__time+.plyr__time{display:none}}.plyr--video .plyr__time{text-shadow:0 1px 1px rgba(0,0,0,.15)}.plyr__tooltip{background:rgba(255,255,255,.9);border-radius:3px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);color:#4a5764;font-size:14px;font-weight:500;left:50%;line-height:1.3;margin-bottom:10px;opacity:0;padding:5px 7.5px;pointer-events:none;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s .1s ease,opacity .2s .1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(255,255,255,.9);bottom:-4px;content:'';height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr .plyr__control:hover .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%,0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0,10px) scale(.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:16px}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0,10px) scale(.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:16px;transform:translateX(50%)}.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip{transform:translate(0,0) scale(1)}.plyr--video{background:#000;overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:#000;border-radius:inherit;overflow:hidden;position:relative;z-index:0}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}
2.plyr__progress{left:6.5px;margin-right:13px;position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:-6.5px;margin-right:-6.5px;width:calc(100% + 13px)}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:14px;left:0}.plyr__progress__buffer{-webkit-appearance:none;background:0 0;border:0;border-radius:100px;height:5px;left:0;margin-top:-2.5px;padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:0 0}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:5px;transition:width .2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:5px;transition:width .2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width .2s ease}.plyr--video .plyr__progress__buffer{box-shadow:0 1px 1px rgba(0,0,0,.15);color:rgba(255,255,255,.25)}.plyr--audio .plyr__progress__buffer{color:rgba(193,201,209,.66)}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg,rgba(35,41,47,.6) 25%,transparent 25%,transparent 50%,rgba(35,41,47,.6) 50%,rgba(35,41,47,.6) 75%,transparent 75%,transparent);background-repeat:repeat-x;background-size:25px 25px;color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:rgba(255,255,255,.25)}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:rgba(193,201,209,.66)}.plyr__volume{align-items:center;display:flex;flex:1;position:relative}.plyr__volume input[type=range]{margin-left:5px;position:relative;z-index:2}@media (min-width:480px){.plyr__volume{max-width:90px}}@media (min-width:768px){.plyr__volume{max-width:110px}}.plyr--is-ios .plyr__volume{display:none!important}.plyr--is-ios.plyr--vimeo [data-plyr=mute]{display:none!important}.plyr:-webkit-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:fullscreen video{height:100%}.plyr:-webkit-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-ms-fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:-webkit-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative;top:50%;transform:translateY(-50%)}.plyr:-ms-fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative;top:50%;transform:translateY(-50%)}.plyr:fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative;top:50%;transform:translateY(-50%)}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:21px}.plyr:-ms-fullscreen .plyr__captions{font-size:21px}.plyr:fullscreen .plyr__captions{font-size:21px}}.plyr:-webkit-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-webkit-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative;top:50%;transform:translateY(-50%)}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}
2.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:21px}}.plyr:-moz-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-moz-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative;top:50%;transform:translateY(-50%)}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-moz-full-screen .plyr__captions{font-size:21px}}.plyr:-ms-fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:-ms-fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative;top:50%;transform:translateY(-50%)}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:21px}}.plyr--fullscreen-fallback{background:#000;border-radius:0!important;height:100%;margin:0;width:100%;bottom:0;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__video-wrapper{height:100%;position:static}.plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{height:0;position:relative;top:50%;transform:translateY(-50%)}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:21px}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:rgba(35,41,47,.8);border-radius:2px;bottom:10px;color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:10px;z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:5px;left:0;margin:-2.5px 0 0;opacity:.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:rgba(255,255,255,.9);border-radius:3px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);margin-bottom:10px;opacity:0;padding:3px;pointer-events:none;position:absolute;transform:translate(0,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s .1s ease,opacity .2s .1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0,0) scale(1)}.plyr__preview-thumb::before{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(255,255,255,.9);bottom:-4px;content:'';height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c9d1;border-radius:2px;overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0,0,0,.55);border-radius:2px;color:#fff;font-size:14px;padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;position:absolute;right:0;top:0;transition:opacity .3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none!important}.plyr__sr-only{clip:rect(1px,1px,1px,1px);overflow:hidden;border:0!important;height:1px!important;padding:0!important;position:absolute!important;width:1px!important}.plyr [hidden]{display:none!important}",map:void 0,media:void 0})}
2),c,undefined,!1,"data-v-91800632",!1,void 0,(function(t){return t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),t?("styles"in t||(t._styles=t._styles||{},Object.defineProperty(t,"styles",{enumerable:!0,get:()=>t._renderStyles(t._styles)}),t._renderStyles=t._renderStyles||l),(e,style)=>function(t,e,r){const n=e.media||"default",style=r._styles[n]||(r._styles[n]={ids:[],css:""});if(!style.ids.includes(t)){style.media=e.media,style.ids.push(t);let code=e.source;0,style.css+=code+"\n"}}(e,style,t)):()=>{}}),void 0);f.install=(t,e={})=>{e.plyr&&(f.props.options.default=()=>({...e.plyr})),e.emit&&(f.props.emit.default=()=>[...e.emit]),t.component(f.name,f)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(f),t.exports=f},485:function(t,e,r){"use strict";var n=r(124);function o(t,e){void 0===e&&(e={});var r=function(t){if(t&&"j"===t[0]&&":"===t[1])return t.substr(2);return t}(t);if(function(t,e){return void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]&&'"'!==t[0]),!e}(r,e.doNotParse))try{return JSON.parse(r)}catch(t){}return t}var l=function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},l.apply(this,arguments)},c=function(){function t(t,e){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(t,e){return"string"==typeof t?n.parse(t,e):"object"==typeof t&&null!==t?t:{}}(t,e),new Promise((function(){r.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return t.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=n.parse(document.cookie,t))},t.prototype._emitChange=function(t){for(var i=0;i<this.changeListeners.length;++i)this.changeListeners[i](t)},t.prototype.get=function(t,e,r){return void 0===e&&(e={}),this._updateBrowserValues(r),o(this.cookies[t],e)},t.prototype.getAll=function(t,e){void 0===t&&(t={}),this._updateBrowserValues(e);var r={};for(var n in this.cookies)r[n]=o(this.cookies[n],t);return r},t.prototype.set=function(t,e,r){var o;"object"==typeof e&&(e=JSON.stringify(e)),this.cookies=l(l({},this.cookies),((o={})[t]=e,o)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.serialize(t,e,r)),this._emitChange({name:t,value:e,options:r})},t.prototype.remove=function(t,e){var r=e=l(l({},e),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=l({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:e})},t.prototype.addChangeListener=function(t){this.changeListeners.push(t)},t.prototype.removeChangeListener=function(t){var e=this.changeListeners.indexOf(t);e>=0&&this.changeListeners.splice(e,1)},t}();e.a=c},490:function(t,e,r){(function(t){t.installComponents=function(component,t){var r="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(r.components=component.exports.options.components),r.components=r.components||{},t)r.components[i]=r.components[i]||t[i];r.functional&&function(component,t){if(component.exports[e])return;component.exports[e]=!0;var r=component.exports.render;component.exports.render=function(e,n){return r(e,Object.assign({},n,{_c:function(e,a,b){return n._c(t[e]||e,a,b)}}))}}(component,r.components)};var e="_functionalComponents"}).call(this,r(48))},5:function(t,e,r){"use strict";var n=function(){return n=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},n.apply(this,arguments)};Object.create;Object.create;function o(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}const l=/\r\n|[\n\r]/g;function c(source,t){let e=0,line=1;for(const r of source.body.matchAll(l)){if("number"==typeof r.index||o(!1),r.index>=t)break;e=r.index+r[0].length,line+=1}return{line:line,column:t+1-e}}function h(t){return f(t.source,c(t.source,t.start))}function f(source,t){const e=source.locationOffset.column-1,body="".padStart(e)+source.body,r=t.line-1,n=source.locationOffset.line-1,o=t.line+n,l=1===t.line?e:0,c=t.column+l,h=`${source.name}:${o}:${c}\n`,f=body.split(/\r\n|[\n\r]/g),m=f[r];if(m.length>120){const t=Math.floor(c/80),e=c%80,r=[];for(let i=0;i<m.length;i+=80)r.push(m.slice(i,i+80));return h+d([[`${o} |`,r[0]],...r.slice(1,t+1).map((t=>["|",t])),["|","^".padStart(e)],["|",r[t+1]]])}return h+d([[o-1+" |",f[r-1]],[`${o} |`,m],["|","^".padStart(c)],[`${o+1} |`,f[r+1]]])}function d(t){const e=t.filter((([t,line])=>void 0!==line)),r=Math.max(...e.map((([t])=>t.length)));return e.map((([t,line])=>t.padStart(r)+(line?" "+line:""))).join("\n")}
vendor: 22,203 bytes, line 2
2class m extends Error{constructor(t,...e){var r,n,o;const{nodes:l,source:source,positions:h,path:path,originalError:f,extensions:d}=function(t){const e=t[0];return null==e||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}(e);super(t),this.name="GraphQLError",this.path=null!=path?path:void 0,this.originalError=null!=f?f:void 0,this.nodes=y(Array.isArray(l)?l:l?[l]:void 0);const v=y(null===(r=this.nodes)||void 0===r?void 0:r.map((t=>t.loc)).filter((t=>null!=t)));this.source=null!=source?source:null==v||null===(n=v[0])||void 0===n?void 0:n.source,this.positions=null!=h?h:null==v?void 0:v.map((t=>t.start)),this.locations=h&&source?h.map((t=>c(source,t))):null==v?void 0:v.map((t=>c(t.source,t.start)));const _="object"==typeof(w=null==f?void 0:f.extensions)&&null!==w?null==f?void 0:f.extensions:void 0;var w;this.extensions=null!==(o=null!=d?d:_)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,m):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let output=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(output+="\n\n"+h(t.loc));else if(this.source&&this.locations)for(const t of this.locations)output+="\n\n"+f(this.source,t);return output}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function y(t){return void 0===t||0===t.length?void 0:t}function v(source,t,e){return new m(`Syntax Error: ${e}`,{source:source,positions:[t]})}var _=r(70);let w;!function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(w||(w={}));var x=r(11),C=r(190),S=r(75);let k;!function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"}(k||(k={}));class T{constructor(source){const t=new _.d(k.SOF,0,0,0,0);this.source=source,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==k.EOF)do{if(t.next)t=t.next;else{const e=I(this,t.end);t.next=e,e.prev=t,t=e}}while(t.kind===k.COMMENT);return t}}function D(code){return code>=0&&code<=55295||code>=57344&&code<=1114111}function E(body,t){return O(body.charCodeAt(t))&&A(body.charCodeAt(t+1))}function O(code){return code>=55296&&code<=56319}function A(code){return code>=56320&&code<=57343}function P(t,e){const code=t.source.body.codePointAt(e);if(void 0===code)return k.EOF;if(code>=32&&code<=126){const t=String.fromCodePoint(code);return'"'===t?"'\"'":`"${t}"`}return"U+"+code.toString(16).toUpperCase().padStart(4,"0")}function F(t,e,r,n,o){const line=t.line,col=1+r-t.lineStart;return new _.d(e,r,n,line,col,o)}function I(t,e){const body=t.source.body,r=body.length;let n=e;for(;n<r;){const code=body.charCodeAt(n);switch(code){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++t.line,t.lineStart=n;continue;case 13:10===body.charCodeAt(n+1)?n+=2:++n,++t.line,t.lineStart=n;continue;case 35:return M(t,n);case 33:return F(t,k.BANG,n,n+1);case 36:return F(t,k.DOLLAR,n,n+1);case 38:return F(t,k.AMP,n,n+1);case 40:return F(t,k.PAREN_L,n,n+1);case 41:return F(t,k.PAREN_R,n,n+1);case 46:if(46===body.charCodeAt(n+1)&&46===body.charCodeAt(n+2))return F(t,k.SPREAD,n,n+3);break;case 58:return F(t,k.COLON,n,n+1);case 61:return F(t,k.EQUALS,n,n+1);case 64:return F(t,k.AT,n,n+1);case 91:return F(t,k.BRACKET_L,n,n+1);case 93:return F(t,k.BRACKET_R,n,n+1);case 123:return F(t,k.BRACE_L,n,n+1);case 124:return F(t,k.PIPE,n,n+1);case 125:return F(t,k.BRACE_R,n,n+1);case 34:return 34===body.charCodeAt(n+1)&&34===body.charCodeAt(n+2)?W(t,n):L(t,n)}if(Object(S.a)(code)||45===code)return j(t,n,code);if(Object(S.c)(code))return H(t,n);throw v(t.source,n,39===code?"Unexpected single quote character ('), did you mean to use a double quote (\")?":D(code)||E(body,n)?`Unexpected character: ${P(t,n)}.`:`Invalid character: ${P(t,n)}.`)}return F(t,k.EOF,r,r)}function M(t,e){const body=t.source.body,r=body.length;let n=e+1;for(;n<r;){const code=body.charCodeAt(n);if(10===code||13===code)break;if(D(code))++n;else{if(!E(body,n))break;n+=2}}return F(t,k.COMMENT,e,n,body.slice(e+1,n))}function j(t,e,r){const body=t.source.body;let n=e,code=r,o=!1;if(45===code&&(code=body.charCodeAt(++n)),48===code){if(code=body.charCodeAt(++n),Object(S.a)(code))throw v(t.source,n,`Invalid number, unexpected digit after 0: ${P(t,n)}.`)}else n=R(t,n,code),code=body.charCodeAt(n);if(46===code&&(o=!0,code=body.charCodeAt(++n),n=R(t,n,code),code=body.charCodeAt(n)),69!==code&&101!==code||(o=!0,code=body.charCodeAt(++n),43!==code&&45!==code||(code=body.charCodeAt(++n)),n=R(t,n,code),code=body.charCodeAt(n)),46===code||Object(S.c)(code))throw v(t.source,n,`Invalid number, expected digit but got: ${P(t,n)}.`);return F(t,o?k.FLOAT:k.INT,e,n,body.slice(e,n))}function R(t,e,r){if(!Object(S.a)(r))throw v(t.source,e,`Invalid number, expected digit but got: ${P(t,e)}.`);const body=t.source.body;let n=e+1;for(;Object(S.a)(body.charCodeAt(n));)++n;return n}function L(t,e){const body=t.source.body,r=body.length;let n=e+1,o=n,l="";for(;n<r;){const code=body.charCodeAt(n);if(34===code)return l+=body.slice(o,n),F(t,k.STRING,e,n+1,l);if(92!==code){if(10===code||13===code)break;if(D(code))++n;else{if(!E(body,n))throw v(t.source,n,`Invalid character within String: ${P(t,n)}.`);n+=2}}else{l+=body.slice(o,n);const e=117===body.charCodeAt(n+1)?123===body.charCodeAt(n+2)?N(t,n):B(t,n):V(t,n);l+=e.value,n+=e.size,o=n}}throw v(t.source,n,"Unterminated string.")}function N(t,e){const body=t.source.body;let r=0,n=3;for(;n<12;){const code=body.charCodeAt(e+n++);if(125===code){if(n<5||!D(r))break;return{value:String.fromCodePoint(r),size:n}}if(r=r<<4|U(code),r<0)break}throw v(t.source,e,`Invalid Unicode escape sequence: "${body.slice(e,e+n)}".`)}function B(t,e){const body=t.source.body,code=z(body,e+2);if(D(code))return{value:String.fromCodePoint(code),size:6};if(O(code)&&92===body.charCodeAt(e+6)&&117===body.charCodeAt(e+7)){const t=z(body,e+8);if(A(t))return{value:String.fromCodePoint(code,t),size:12}}throw v(t.source,e,`Invalid Unicode escape sequence: "${body.slice(e,e+6)}".`)}function z(body,t){return U(body.charCodeAt(t))<<12|U(body.charCodeAt(t+1))<<8|U(body.charCodeAt(t+2))<<4|U(body.charCodeAt(t+3))}function U(code){return code>=48&&code<=57?code-48:code>=65&&code<=70?code-55:code>=97&&code<=102?code-87:-1}function V(t,e){const body=t.source.body;switch(body.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw v(t.source,e,`Invalid character escape sequence: "${body.slice(e,e+2)}".`)}function W(t,e){const body=t.source.body,r=body.length;let n=t.lineStart,o=e+3,l=o,c="";const h=[];for(;o<r;){const code=body.charCodeAt(o);if(34===code&&34===body.charCodeAt(o+1)&&34===body.charCodeAt(o+2)){c+=body.slice(l,o),h.push(c);const r=F(t,k.BLOCK_STRING,e,o+3,Object(C.a)(h).join("\n"));return t.line+=h.length-1,t.lineStart=n,r}if(92!==code||34!==body.charCodeAt(o+1)||34!==body.charCodeAt(o+2)||34!==body.charCodeAt(o+3))if(10!==code&&13!==code)if(D(code))++o;else{if(!E(body,o))throw v(t.source,o,`Invalid character within String: ${P(t,o)}.`);o+=2}else c+=body.slice(l,o),h.push(c),13===code&&10===body.charCodeAt(o+1)?o+=2:++o,c="",l=o,n=o;else c+=body.slice(l,o),l=o+1,o+=4}throw v(t.source,o,"Unterminated string.")}function H(t,e){const body=t.source.body,r=body.length;let n=e+1;for(;n<r;){const code=body.charCodeAt(n);if(!Object(S.b)(code))break;++n}return F(t,k.NAME,e,n,body.slice(e,n))}var Y=r(123),X=r(144);const G=function(t,e){return t instanceof e};class Q{constructor(body,t="GraphQL request",e={line:1,column:1}){"string"==typeof body||Object(Y.a)(!1,`Body must be a string. Received: ${Object(X.a)(body)}.`),this.body=body,this.name=t,this.locationOffset=e,this.locationOffset.line>0||Object(Y.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Object(Y.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class ${constructor(source,t){const e=function(source){return G(source,Q)}(source)?source:new Q(source);this._lexer=new T(e),this._options=t}parseName(){const t=this.expectToken(k.NAME);return this.node(t,{kind:x.a.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:x.a.DOCUMENT,definitions:this.many(k.SOF,this.parseDefinition,k.EOF)})}parseDefinition(){if(this.peek(k.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(e.kind===k.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw v(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(k.BRACE_L))return this.node(t,{kind:x.a.OPERATION_DEFINITION,operation:_.b.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseOperationType();let r;return this.peek(k.NAME)&&(r=this.parseName()),this.node(t,{kind:x.a.OPERATION_DEFINITION,operation:e,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(k.NAME);switch(t.value){case"query":return _.b.QUERY;case"mutation":return _.b.MUTATION;case"subscription":return _.b.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(k.PAREN_L,this.parseVariableDefinition,k.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:x.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(k.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(k.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(k.DOLLAR),this.node(t,{kind:x.a.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:x.a.SELECTION_SET,selections:this.many(k.BRACE_L,this.parseSelection,k.BRACE_R)})}parseSelection(){return this.peek(k.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let r,n;return this.expectOptionalToken(k.COLON)?(r=e,n=this.parseName()):n=e,this.node(t,{kind:x.a.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(k.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(k.PAREN_L,e,k.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,r=this.parseName();return this.expectToken(k.COLON),this.node(e,{kind:x.a.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(k.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(k.NAME)?this.node(t,{kind:x.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:x.a.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var t;const e=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacyFragmentVariables)?this.node(e,{kind:x.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:x.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case k.BRACKET_L:return this.parseList(t);case k.BRACE_L:return this.parseObject(t);case k.INT:return this._lexer.advance(),this.node(e,{kind:x.a.INT,value:e.value});case k.FLOAT:return this._lexer.advance(),this.node(e,{kind:x.a.FLOAT,value:e.value});case k.STRING:case k.BLOCK_STRING:return this.parseStringLiteral();case k.NAME:switch(this._lexer.advance(),e.value){case"true":return this.node(e,{kind:x.a.BOOLEAN,value:!0});case"false":return this.node(e,{kind:x.a.BOOLEAN,value:!1});case"null":return this.node(e,{kind:x.a.NULL});default:return this.node(e,{kind:x.a.ENUM,value:e.value})}case k.DOLLAR:if(t){if(this.expectToken(k.DOLLAR),this._lexer.token.kind===k.NAME){const t=this._lexer.token.value;throw v(this._lexer.source,e.start,`Unexpected variable "$${t}" in constant value.`)}throw this.unexpected(e)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this._lexer.advance(),this.node(t,{kind:x.a.STRING,value:t.value,block:t.kind===k.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:x.a.LIST,values:this.any(k.BRACKET_L,(()=>this.parseValueLiteral(t)),k.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:x.a.OBJECT,fields:this.any(k.BRACE_L,(()=>this.parseObjectField(t)),k.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,r=this.parseName();return this.expectToken(k.COLON),this.node(e,{kind:x.a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(k.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(k.AT),this.node(e,{kind:x.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(k.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(k.BRACKET_R),e=this.node(t,{kind:x.a.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(k.BANG)?this.node(t,{kind:x.a.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:x.a.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(k.STRING)||this.peek(k.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(k.BRACE_L,this.parseOperationTypeDefinition,k.BRACE_R);return this.node(t,{kind:x.a.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(k.COLON);const r=this.parseNamedType();return this.node(t,{kind:x.a.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(t,{kind:x.a.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:n})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:x.a.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:o,fields:l})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(k.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(k.BRACE_L,this.parseFieldDefinition,k.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(k.COLON);const o=this.parseTypeReference(),l=this.parseConstDirectives();return this.node(t,{kind:x.a.FIELD_DEFINITION,description:e,name:r,arguments:n,type:o,directives:l})}parseArgumentDefs(){return this.optionalMany(k.PAREN_L,this.parseInputValueDef,k.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(k.COLON);const n=this.parseTypeReference();let o;this.expectOptionalToken(k.EQUALS)&&(o=this.parseConstValueLiteral());const l=this.parseConstDirectives();return this.node(t,{kind:x.a.INPUT_VALUE_DEFINITION,description:e,name:r,type:n,defaultValue:o,directives:l})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:x.a.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:o,fields:l})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:x.a.UNION_TYPE_DEFINITION,description:e,name:r,directives:n,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(k.EQUALS)?this.delimitedMany(k.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:x.a.ENUM_TYPE_DEFINITION,description:e,name:r,directives:n,values:o})}parseEnumValuesDefinition(){return this.optionalMany(k.BRACE_L,this.parseEnumValueDefinition,k.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(t,{kind:x.a.ENUM_VALUE_DEFINITION,description:e,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw v(this._lexer.source,this._lexer.token.start,`${K(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:x.a.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:n,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(k.BRACE_L,this.parseInputValueDef,k.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===k.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),r=this.optionalMany(k.BRACE_L,this.parseOperationTypeDefinition,k.BRACE_R);if(0===e.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:x.a.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(t,{kind:x.a.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===o.length)throw this.unexpected();
2return this.node(t,{kind:x.a.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:x.a.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:x.a.UNION_TYPE_EXTENSION,name:e,directives:r,types:n})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:x.a.ENUM_TYPE_EXTENSION,name:e,directives:r,values:n})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:x.a.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:n})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(k.AT);const r=this.parseName(),n=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const l=this.parseDirectiveLocations();return this.node(t,{kind:x.a.DIRECTIVE_DEFINITION,description:e,name:r,arguments:n,repeatable:o,locations:l})}parseDirectiveLocations(){return this.delimitedMany(k.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(w,e.value))return e;throw this.unexpected(t)}node(t,e){var r;return!0!==(null===(r=this._options)||void 0===r?void 0:r.noLocation)&&(e.loc=new _.a(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e;throw v(this._lexer.source,e.start,`Expected ${J(t)}, found ${K(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this._lexer.advance(),!0)}expectKeyword(t){const e=this._lexer.token;if(e.kind!==k.NAME||e.value!==t)throw v(this._lexer.source,e.start,`Expected "${t}", found ${K(e)}.`);this._lexer.advance()}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===k.NAME&&e.value===t&&(this._lexer.advance(),!0)}unexpected(t){const e=null!=t?t:this._lexer.token;return v(this._lexer.source,e.start,`Unexpected ${K(e)}.`)}any(t,e,r){this.expectToken(t);const n=[];for(;!this.expectOptionalToken(r);)n.push(e.call(this));return n}optionalMany(t,e,r){if(this.expectOptionalToken(t)){const t=[];do{t.push(e.call(this))}while(!this.expectOptionalToken(r));return t}return[]}many(t,e,r){this.expectToken(t);const n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(t,e){this.expectOptionalToken(t);const r=[];do{r.push(e.call(this))}while(this.expectOptionalToken(t));return r}}function K(t){const e=t.value;return J(t.kind)+(null!=e?` "${e}"`:"")}function J(t){return function(t){return t===k.BANG||t===k.DOLLAR||t===k.AMP||t===k.PAREN_L||t===k.PAREN_R||t===k.SPREAD||t===k.COLON||t===k.EQUALS||t===k.AT||t===k.BRACKET_L||t===k.BRACKET_R||t===k.BRACE_L||t===k.PIPE||t===k.BRACE_R}(t)?`"${t}"`:t}var Z=new Map,tt=new Map,et=!0,it=!1;function nt(t){return t.replace(/[\s,]+/g," ").trim()}function ot(t){var e=new Set,r=[];return t.definitions.forEach((function(t){if("FragmentDefinition"===t.kind){var n=t.name.value,o=nt((c=t.loc).source.body.substring(c.start,c.end)),l=tt.get(n);l&&!l.has(o)?et&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):l||tt.set(n,l=new Set),l.add(o),e.has(o)||
2(e.add(o),r.push(t))}else r.push(t);var c})),n(n({},t),{definitions:r})}function st(source){var t=nt(source);if(!Z.has(t)){var e=function(source,t){return new $(source,t).parseDocument()}(source,{experimentalFragmentVariables:it,allowLegacyFragmentVariables:it});if(!e||"Document"!==e.kind)throw new Error("Not a valid GraphQL document.");Z.set(t,function(t){var e=new Set(t.definitions);e.forEach((function(t){t.loc&&delete t.loc,Object.keys(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&e.add(n)}))}));var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}(ot(e)))}return Z.get(t)}function at(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];"string"==typeof t&&(t=[t]);var n=t[0];return e.forEach((function(e,i){e&&"Document"===e.kind?n+=e.loc.source.body:n+=e,n+=t[i+1]})),st(n)}var lt,ut=at,ct=function(){Z.clear(),tt.clear()},ht=function(){et=!1},ft=function(){it=!0},pt=function(){it=!1};(lt=at||(at={})).gql=ut,lt.resetCaches=ct,lt.disableFragmentWarnings=ht,lt.enableExperimentalFragmentVariables=ft,lt.disableExperimentalFragmentVariables=pt,at.default=at;e.a=at},555:function(t,e,r){"use strict";e.byteLength=function(t){var e=h(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,i,r=h(t),n=r[0],c=r[1],f=new l(function(t,e,r){return 3*(e+r)/4-r}(0,n,c)),d=0,m=c>0?n-4:n;for(i=0;i<m;i+=4)e=o[t.charCodeAt(i)]<<18|o[t.charCodeAt(i+1)]<<12|o[t.charCodeAt(i+2)]<<6|o[t.charCodeAt(i+3)],f[d++]=e>>16&255,f[d++]=e>>8&255,f[d++]=255&e;2===c&&(e=o[t.charCodeAt(i)]<<2|o[t.charCodeAt(i+1)]>>4,f[d++]=255&e);1===c&&(e=o[t.charCodeAt(i)]<<10|o[t.charCodeAt(i+1)]<<4|o[t.charCodeAt(i+2)]>>2,f[d++]=e>>8&255,f[d++]=255&e);return f},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,l=[],c=16383,i=0,h=r-o;i<h;i+=c)l.push(f(t,i,i+c>h?h:i+c));1===o?(e=t[r-1],l.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],l.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return l.join("")};for(var n=[],o=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,c=code.length;i<c;++i)n[i]=code[i],o[code.charCodeAt(i)]=i;function h(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var o,l,output=[],i=e;i<r;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),output.push(n[(l=o)>>18&63]+n[l>>12&63]+n[l>>6&63]+n[63&l]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},556:function(t,e){e.read=function(t,e,r,n,o){var l,c,h=8*o-n-1,f=(1<<h)-1,d=f>>1,m=-7,i=r?o-1:0,y=r?-1:1,s=t[e+i];for(i+=y,l=s&(1<<-m)-1,s>>=-m,m+=h;m>0;l=256*l+t[e+i],i+=y,m-=8);for(c=l&(1<<-m)-1,l>>=-m,m+=n;m>0;c=256*c+t[e+i],i+=y,m-=8);if(0===l)l=1-d;else{if(l===f)return c?NaN:1/0*(s?-1:1);c+=Math.pow(2,n),l-=d}return(s?-1:1)*c*Math.pow(2,l-n)},e.write=function(t,e,r,n,o,l){var c,h,f,d=8*l-o-1,m=(1<<d)-1,y=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=n?0:l-1,v=n?1:-1,s=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(h=isNaN(e)?1:0,c=m):(c=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-c))<1&&(c--,f*=2),(e+=c+y>=1?rt/f:rt*Math.pow(2,1-y))*f>=2&&(c++,f/=2),c+y>=m?(h=0,c=m):c+y>=1?(h=(e*f-1)*Math.pow(2,o),c+=y):(h=e*Math.pow(2,y-1)*Math.pow(2,o),c=0));o>=8;t[r+i]=255&h,i+=v,h/=256,o-=8);for(c=c<<o|h,d+=o;d>0;t[r+i]=255&c,i+=v,c/=256,d-=8);t[r+i-v]|=128*s}},560:function(t,e,r){(function(e){const n=r(561),o=r(175),l=r(572),c=r(573),{OctreeQuant:h,Color:f}=r(574);class d{constructor(){this.data=[]}getData(){return e.from(this.data)}writeByte(t){this.data.push(t)}writeUTFBytes(t){for(var e=t.length,i=0;i<e;i++)this.writeByte(t.charCodeAt(i))}writeBytes(t,e,r){for(var n=r||t.length,i=e||0;i<n;i++)this.writeByte(t[i])}}t.exports=class extends o{constructor(t,e,r="neuquant",n=!1,o=0){super(),this.width=~~t,this.height=~~e,this.algorithm=r,this.useOptimizer=n,this.totalFrames=o,this.frames=1,this.threshold=90,this.indexedPixels=null,this.palSizeNeu=7,this.palSizeOct=7,this.sample=10,this.colorTab=null,this.reuseTab=null,this.colorDepth=null,this.usedEntry=new Array,this.firstFrame=!0,this.started=!1,this.image=null,this.prevImage=null,this.dispose=-1,this.repeat=0,this.delay=0,this.transparent=null,this.transIndex=0,this.readStreams=[],this.out=new d}createReadStream(t){return t||((t=new n.Readable)._read=function(){}),this.readStreams.push(t),t}emitData(){0!==this.readStreams.length&&this.out.data.length&&(this.readStreams.forEac
2h((t=>{t.push(e.from(this.out.data))})),this.out.data=[])}start(){this.out.writeUTFBytes("GIF89a"),this.started=!0,this.emitData()}end(){null!==this.readStreams.length&&(this.emitData(),this.readStreams.forEach((t=>t.push(null))),this.readStreams=[])}addFrame(input){input&&input.getImageData?this.image=input.getImageData(0,0,this.width,this.height).data:this.image=input,this.analyzePixels(),this.firstFrame&&(this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.writePalette(),this.writePixels(),this.firstFrame=!1,this.emitData(),this.totalFrames&&this.emit("progress",Math.floor(this.frames++/this.totalFrames*100))}analyzePixels(){const t=this.width,e=this.height;var data=this.image;if(this.useOptimizer&&this.prevImage){for(var r=0,n=data.length,i=0;i<n;i+=4)data[i]===this.prevImage[i]&&data[i+1]===this.prevImage[i+1]&&data[i+2]===this.prevImage[i+2]||r++;const t=100-Math.ceil(r/(data.length/4)*100);this.reuseTab=t>=this.threshold}if(this.prevImage=data,"neuquant"===this.algorithm){var o=0;this.pixels=new Uint8Array(t*e*3);for(i=0;i<e;i++)for(var l=0;l<t;l++){var b=i*t*4+4*l;this.pixels[o++]=data[b],this.pixels[o++]=data[b+1],this.pixels[o++]=data[b+2]}var d=this.pixels.length/3;this.indexedPixels=new Uint8Array(d),this.reuseTab||(this.quantizer=new c(this.pixels,this.sample),this.quantizer.buildColormap(),this.colorTab=this.quantizer.getColormap());var m=0;for(l=0;l<d;l++){var y=this.quantizer.lookupRGB(255&this.pixels[m++],255&this.pixels[m++],255&this.pixels[m++]);this.usedEntry[y]=!0,this.indexedPixels[l]=y}this.colorDepth=8,this.palSizeNeu=7,this.pixels=null}else if("octree"===this.algorithm){this.colors=[],this.reuseTab||(this.quantizer=new h);for(i=0;i<e;i++)for(l=0;l<t;l++){const e=new f(data[b=i*t*4+4*l],data[b+1],data[b+2]);
2this.colors.push(e),this.reuseTab||this.quantizer.addColor(e)}const r=this.colors.length;if(this.indexedPixels=new Uint8Array(r),!this.reuseTab){this.colorTab=[];const t=this.quantizer.makePalette(Math.pow(2,this.palSizeOct+1));for(const p of t)this.colorTab.push(p.red,p.green,p.blue)}for(i=0;i<r;i++)this.indexedPixels[i]=this.quantizer.getPaletteIndex(this.colors[i]);this.colorDepth=this.palSizeOct+1}if(null!==this.transparent){this.transIndex=this.findClosest(this.transparent);for(var v=0;v<d;v++)0==this.image[4*v+3]&&(this.indexedPixels[v]=this.transIndex)}}findClosest(t){if(null===this.colorTab)return-1;for(var e=(16711680&t)>>16,g=(65280&t)>>8,b=255&t,r=0,n=16777216,o=this.colorTab.length,i=0;i<o;){var l=i/3,c=e-(255&this.colorTab[i++]),h=g-(255&this.colorTab[i++]),f=b-(255&this.colorTab[i++]),d=c*c+h*h+f*f;this.usedEntry[l]&&d<n&&(n=d,r=l)}return r}setFrameRate(t){this.delay=Math.round(100/t)}setDelay(t){this.delay=Math.round(t/10)}setDispose(code){code>=0&&(this.dispose=code)}setRepeat(t){this.repeat=t}
2setTransparent(t){this.transparent=t}setQuality(t){t<1&&(t=1),this.quality=t}setThreshold(t){t>100?t=100:t<0&&(t=0),this.threshold=t}setPaletteSize(t){t>7?t=7:t<4&&(t=4),this.palSizeOct=t}writeLSD(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSizeNeu),this.out.writeByte(0),this.out.writeByte(0)}writeGraphicCtrlExt(){var t,e;this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4),null===this.transparent?(t=0,e=0):(t=1,e=2),this.dispose>=0&&(e=7&this.dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)}writeNetscapeExt(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)}writeImageDesc(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame?this.out.writeByte(0):this.out.writeByte(128|this.palSizeNeu)}writePalette(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,i=0;i<t;i++)this.out.writeByte(0)}writeShort(t){this.out.writeByte(255&t),this.out.writeByte(t>>8&255)}writePixels(){new l(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)}finish(){this.out.writeByte(59),this.end()}}}).call(this,r(89).Buffer)},561:function(t,e,r){t.exports=o;var n=r(175).EventEmitter;function o(){n.call(this)}r(103)(o,n),o.Readable=r(216),o.Writable=r(568),o.Duplex=r(569),o.Transform=r(570),o.PassThrough=r(571),o.Stream=o,o.prototype.pipe=function(t,e){var source=this;function r(e){t.writable&&!1===t.write(e)&&source.pause&&source.pause()}function o(){source.readable&&source.resume&&source.resume()}source.on("data",r),t.on("drain",o),t._isStdio||e&&!1===e.end||(source.on("end",c),source.on("close",h));var l=!1;function c(){l||(l=!0,t.end())}function h(){l||(l=!0,"function"==typeof t.destroy&&t.destroy())}function f(t){if(d(),0===n.listenerCount(this,"error"))throw t}function d(){source.removeListener("data",r),t.removeListener("drain",o),source.removeListener("end",c),source.removeListener("close",h),source.removeListener("error",f),t.removeListener("error",f),source.removeListener("end",d),source.removeListener("close",d),t.removeListener("close",d)}return source.on("error",f),t.on("error",f),source.on("end",d),source.on("close",d),t.on("close",d),t.emit("pipe",source),t}},563:function(t,e,r){"use strict";var n=r(217).Buffer,o=r(564);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(s){if(0===this.length)return"";for(var p=this.head,t=""+p.data;p=p.next;)t+=s+p.data;return t},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var e,r,o,l=n.allocUnsafe(t>>>0),p=this.head,i=0;p;)e=p.data,r=l,o=i,e.copy(r,o),i+=p.data.length,p=p.next;return l},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},565:function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(48))},566:function(t,e,r){var n=r(89),o=n.Buffer;function l(t,e){for(var r in t)e[r]=t[r]}function c(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(l(n,e),e.Buffer=c),c.prototype=Object.create(o.prototype),l(o,c),c.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},c.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},c.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},c.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},567:function(t,e,r){"use strict";
2t.exports=l;var n=r(312),o=Object.create(r(138));function l(t){if(!(this instanceof l))return new l(t);n.call(this,t)}o.inherits=r(103),o.inherits(l,n),l.prototype._transform=function(t,e,r){r(null,t)}},568:function(t,e,r){t.exports=r(218)},569:function(t,e,r){t.exports=r(104)},57:function(t,e,r){"use strict";var n=r(476),o=r.n(n).a;e.a=o},570:function(t,e,r){t.exports=r(216).Transform},571:function(t,e,r){t.exports=r(216).PassThrough},572:function(t,e){var r=5003,n=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];t.exports=function(t,e,o,l){var c,h,f,d,m,y,v=Math.max(2,l),_=new Uint8Array(256),w=new Int32Array(r),x=new Int32Array(r),C=0,S=0,k=!1;function T(t,e){_[h++]=t,h>=254&&O(e)}function D(t){E(r),S=m+2,k=!0,output(m,t)}function E(t){for(var i=0;i<t;++i)w[i]=-1}function O(t){h>0&&(t.writeByte(h),t.writeBytes(_,0,h),h=0)}function A(t){return(1<<t)-1}function P(){return 0===remaining?-1:(--remaining,255&o[curPixel++])}function output(code,t){for(c&=n[C],C>0?c|=code<<C:c=code,C+=n_bits;C>=8;)T(255&c,t),c>>=8,C-=8;if((S>f||k)&&(k?(f=A(n_bits=d),k=!1):(++n_bits,f=12==n_bits?4096:A(n_bits))),code==y){for(;C>0;)T(255&c,t),c>>=8,C-=8;O(t)}}this.encode=function(n){n.writeByte(v),remaining=t*e,curPixel=0,function(t,e){var n,o,i,l,c,v,_;for(d=t,k=!1,n_bits=d,f=A(n_bits),y=1+(m=1<<t-1),S=m+2,h=0,l=P(),_=0,n=r;n<65536;n*=2)++_;_=8-_,E(v=r),output(m,e);t:for(;-1!=(o=P());)if(n=(o<<12)+l,w[i=o<<_^l]!==n){if(w[i]>=0){c=v-i,0===i&&(c=1);do{if((i-=c)<0&&(i+=v),w[i]===n){l=x[i];continue t}}while(w[i]>=0)}output(l,e),l=o,S<4096?(x[i]=S++,w[i]=n):D(e)}else l=x[i];output(l,e),output(y,e)}(v+1,n),n.writeByte(0)}}},573:function(t,e){var r=256,n=1024,o=1<<18;t.exports=function(t,e){var l,c,h,f,d;function m(t,i,b,g,e){l[i][0]-=t*(l[i][0]-b)/n,l[i][1]-=t*(l[i][1]-g)/n,l[i][2]-=t*(l[i][2]-e)/n}function y(t,i,b,g,e){for(var p,a,n=Math.abs(i-t),c=Math.min(i+t,r),h=i+1,f=i-1,m=1;h<c||f>n;)a=d[m++],h<c&&((p=l[h++])[0]-=a*(p[0]-b)/o,p[1]-=a*(p[1]-g)/o,p[2]-=a*(p[2]-e)/o),f>n&&((p=l[f--])[0]-=a*(p[0]-b)/o,p[1]-=a*(p[1]-g)/o,p[2]-=a*(p[2]-e)/o)}function v(b,g,t){var i,e,n,o,c,d=~(1<<31),m=d,y=-1,v=y;for(i=0;i<r;i++)e=l[i],(n=Math.abs(e[0]-b)+Math.abs(e[1]-g)+Math.abs(e[2]-t))<d&&(d=n,y=i),(o=n-(h[i]>>12))<m&&(m=o,v=i),c=f[i]>>10,f[i]-=c,h[i]+=c<<10;return f[y]+=64,h[y]-=65536,v}this.buildColormap=function(){!function(){var i,t;for(l=[],c=new Int32Array(256),h=new Int32Array(r),f=new Int32Array(r),d=new Int32Array(32),i=0;i<r;i++)t=(i<<12)/r,l[i]=new Float64Array([t,t,t,0]),f[i]=256,h[i]=0}(),function(){var i,r,b,g,o,l,c=t.length,h=30+(e-1)/3,f=c/(3*e),_=~~(f/100),w=n,x=2048,C=x>>6;for(C<=1&&(C=0),i=0;i<C;i++)d[i]=w*(256*(C*C-i*i)/(C*C));c<1509?(e=1,r=3):r=c%499!=0?1497:c%491!=0?1473:c%487!=0?1461:1509;var S=0;for(i=0;i<f;)if(m(w,l=v(b=(255&t[S])<<4,g=(255&t[S+1])<<4,o=(255&t[S+2])<<4),b,g,o),0!==C&&y(C,l,b,g,o),(S+=r)>=c&&(S-=c),0===_&&(_=1),++i%_==0)for(w-=w/h,(C=(x-=x/30)>>6)<=1&&(C=0),l=0;l<C;l++)d[l]=w*(256*(C*C-l*l)/(C*C))}(),function(){for(var i=0;i<r;i++)l[i][0]>>=4,l[i][1]>>=4,l[i][2]>>=4,l[i][3]=i}(),function(){var i,t,p,q,e,n,o=0,h=0;for(i=0;i<r;i++){for(e=i,n=(p=l[i])[1],t=i+1;t<r;t++)(q=l[t])[1]<n&&(e=t,n=q[1]);if(q=l[e],i!=e&&(t=q[0],q[0]=p[0],p[0]=t,t=q[1],q[1]=p[1],p[1]=t,t=q[2],q[2]=p[2],p[2]=t,t=q[3],q[3]=p[3],p[3]=t),n!=o){for(c[o]=h+i>>1,t=o+1;t<n;t++)c[t]=i;o=n,h=i}}for(c[o]=h+255>>1,t=o+1;t<256;t++)c[t]=255}()},this.getColormap=function(){for(var map=[],t=[],i=0;i<r;i++)t[l[i][3]]=i;for(var e=0,n=0;n<r;n++){var o=t[n];map[e++]=l[o][0],map[e++]=l[o][1],map[e++]=l[o][2]}return map},this.lookupRGB=function(b,g,t){for(var a,p,e,n=1e3,o=-1,i=c[g],h=i-1;i<r||h>=0;)i<r&&((e=(p=l[i])[1]-g)>=n?i=r:(i++,e<0&&(e=-e),(a=p[0]-b)<0&&(a=-a),(e+=a)<n&&((a=p[2]-t)<0&&(a=-a),(e+=a)<n&&(n=e,o=p[3])))),h>=0&&((e=g-(p=l[h])[1])>=n?h=-1:(h--,e<0&&(e=-e),(a=p[0]-b)<0&&(a=-a),(e+=a)<n&&((a=p[2]-t)<0&&(a=-a),(e+=a)<n&&(n=e,o=p[3]))));return o}}},574:function(t,e){class r{constructor(t,e){this._color=new n(0,0,0),this.pixelCount=0,this.paletteIndex=0,this.children=[],this._debugColor,t<7&&e.addLevelNode(t,this)}get isLeaf(){return this.pixelCount>0}get leafNodes(){let t=[];for(let e of this.children)e&&(e.isLeaf?t.push(e):t.push(...e.leafNodes));return t}addColor(t,e,n){if(e>=8)return this._color.add(t),void this.pixelCount++;let l=o(t,e);this.children[l]||(this.children[l]=new r(e,n)),this.children[l].addColor
2(t,e+1,n)}getPaletteIndex(t,e){if(this.isLeaf)return this.paletteIndex;let r=o(t,e);if(this.children[r])return this.children[r].getPaletteIndex(t,e+1);for(let r of this.children)if(r)return r.getPaletteIndex(t,e+1)}removeLeaves(){let t=0;for(let e of this.children)e&&(this._color.add(e._color),this.pixelCount+=e.pixelCount,t++);return this.children=[],t-1}get debugColor(){if(this._debugColor)return this._debugColor;if(this.isLeaf)return this.color;let t=new n,e=0;return function r(n){for(let o of n.children)o.isLeaf?(t.add(o._color),e++):r(o)}(this),t.normalized(e)}get color(){return this._color.normalized(this.pixelCount)}}class n{constructor(t=0,e=0,r=0){this.red=t,this.green=e,this.blue=r}clone(){return new n(this.red,this.green,this.blue)}get array(){return[this.red,this.green,this.blue,this.red+this.green+this.blue]}toString(){return[this.red,this.green,this.blue].join(",")}toCSS(){return`rgb(${[this.red,this.green,this.blue].map((t=>Math.floor(t))).join(",")})`}normalized(t){return new n(this.red/t,this.green/t,this.blue/t)}add(t){this.red+=t.red,this.green+=t.green,this.blue+=t.blue}}function o(t,e){let r=0,mask=128>>e;return t.red&mask&&(r|=4),t.green&mask&&(r|=2),t.blue&mask&&(r|=1),r}t.exports={OctreeQuant:class{constructor(){this.levels=Array.from({length:8},(()=>[])),this.root=new r(0,this)}addColor(t){this.root.addColor(t,0,this)}makePalette(t){let e=[],r=0,n=this.leafNodes.length;for(let e=7;e>-1;e-=1)if(this.levels[e]){for(let r of this.levels[e])if(n-=r.removeLeaves(),n<=t)break;if(n<=t)break;this.levels[e]=[]}for(let n of this.leafNodes){if(r>=t)break;n.isLeaf&&e.push(n.color),n.paletteIndex=r,r++}return e}*makePaletteIncremental(t){let e=[],r=0,n=this.leafNodes.length;for(let e=7;e>-1;e-=1){if(this.levels[e]){for(let r of this.levels[e])if(n-=r.removeLeaves(),n<=t)break;if(n<=t)break;this.levels[e]=[]}yield}for(let n of this.leafNodes){if(r>=t)break;n.isLeaf&&e.push(n.color),n.paletteIndex=r,r++}return yield,e}get leafNodes(){return this.root.leafNodes}addLevelNode(t,e){this.levels[t].push(e)}getPaletteIndex(t){return this.root.getPaletteIndex(t,0)}},Node:r,Color:n}},58:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o}));var n=function(){return n=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},n.apply(this,arguments)};function o(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),r=0;for(i=0;i<t;i++)for(var a=arguments[i],n=0,o=a.length;n<o;n++,r++)e[r]=a[n];return e}},64:function(t,e,r){"use strict";r.d(e,"a",(function(){return h})),r.d(e,"b",(function(){return f}));var n=r(123),o=r(144),l=r(70),c=r(11);const h=Object.freeze({});function f(t,e,r=l.c){const f=new Map;for(const t of Object.values(c.a))f.set(t,d(e,t));let m,y,v,_=Array.isArray(t),w=[t],x=-1,C=[],S=t;const path=[],k=[];do{x++;const t=x===w.length,c=t&&0!==C.length;if(t){if(y=0===k.length?void 0:path[path.length-1],S=v,v=k.pop(),c)if(_){S=S.slice();let t=0;for(const[e,r]of C){const n=e-t;null===r?(S.splice(n,1),t++):S[n]=r}}else{S=Object.defineProperties({},Object.getOwnPropertyDescriptors(S));for(const[t,e]of C)S[t]=e}x=m.index,w=m.keys,C=m.edits,_=m.inArray,m=m.prev}else if(v){if(y=_?x:w[x],S=v[y],null==S)continue;path.push(y)}let d;if(!Array.isArray(S)){var T,D;Object(l.e)(S)||Object(n.a)(!1,`Invalid AST Node: ${Object(o.a)(S)}.`);const r=t?null===(T=f.get(S.kind))||void 0===T?void 0:T.leave:null===(D=f.get(S.kind))||void 0===D?void 0:D.enter;if(d=null==r?void 0:r.call(e,S,y,v,path,k),d===h)break;if(!1===d){if(!t){path.pop();continue}}else if(void 0!==d&&(C.push([y,d]),!t)){if(!Object(l.e)(d)){path.pop();continue}S=d}}var E;if(void 0===d&&c&&C.push([y,S]),t)path.pop();else m={inArray:_,index:x,keys:w,edits:C,prev:m},_=Array.isArray(S),w=_?S:null!==(E=r[S.kind])&&void 0!==E?E:[],x=-1,C=[],v&&k.push(v),v=S}while(void 0!==m);return 0!==C.length?C[C.length-1][1]:t}function d(t,e){const r=t[e];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}},7:function(t,e,r){(function(t){var n,o,l,c,h,f,d,m,y,v,_,w,x,C,S,k,T,D,E,O,A,P,F=F||{version:"5.2.1"};if(e.fabric=F,"undefined"!=typeof document&&"undefined"!=typeof window)document instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document)?F.document=document:F.document=document.implementation.createHTMLDocument(""),F.window=window;else{var I=new(r(557).JSDOM)(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;F.document=I.document,F.jsdomImplForWrapper=r(558).implForWrapper,F.nodeCanvas=r(559).Canvas,F.window=I,DOMParser=F.window.DOMParser}function M(t,e){var r=t.canvas,n=e.targetCanvas,o=n.getContext("2d");o.translate(0,n.height),o.scale(1,-1);var l=r.height-n.height;o.drawImage(r,0,l,n.width,n.height,0,0,n.width,n.height)}function j(t,e){var r=e.targetCanvas.getContext("2d"),n=e.destinationWidth,o=e.destinationHeight,l=n*o*4,c=new Uint8Array(this.imageBuffer,0,l),h=new Uint8ClampedArray(this.imageBuffer,0,l);
vendor: 5,557 bytes, line 2
2t.readPixels(0,0,n,o,t.RGBA,t.UNSIGNED_BYTE,c);var f=new ImageData(h,n,o);r.putImageData(f,0,0)}F.isTouchSupported="ontouchstart"in F.window||"ontouchstart"in F.document||F.window&&F.window.navigator&&F.window.navigator.maxTouchPoints>0,F.isLikelyNode=void 0!==t&&"undefined"==typeof window,F.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],F.DPI=96,F.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",F.commaWsp="(?:\\s+,?\\s*|,\\s*)",F.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,F.reNonWord=/[ \n\.,;!\?\-]/,F.fontPaths={},F.iMatrix=[1,0,0,1,0,0],F.svgNS="http://www.w3.org/2000/svg",F.perfLimitSizeTotal=2097152,F.maxCacheSideLimit=4096,F.minCacheSideLimit=256,F.charWidthsCache={},F.textureSize=2048,F.disableStyleCopyPaste=!1,F.enableGLFiltering=!0,F.devicePixelRatio=F.window.devicePixelRatio||F.window.webkitDevicePixelRatio||F.window.mozDevicePixelRatio||1,F.browserShadowBlurConstant=1,F.arcToSegmentsCache={},F.boundsOfCurveCache={},F.cachesBoundsOfCurve=!0,F.forceGLPutImageData=!1,F.initFilterBackend=function(){return F.enableGLFiltering&&F.isWebglSupported&&F.isWebglSupported(F.textureSize)?(console.log("max texture size: "+F.maxTextureSize),new F.WebglFilterBackend({tileSize:F.textureSize})):F.Canvas2dFilterBackend?new F.Canvas2dFilterBackend:void 0},"undefined"!=typeof document&&"undefined"!=typeof window&&(window.fabric=F),function(){function t(t,e){if(this.__eventListeners[t]){var r=this.__eventListeners[t];e?r[r.indexOf(e)]=!1:F.util.array.fill(r,!1)}}function e(t,e){var r=function(){e.apply(this,arguments),this.off(t,r)}.bind(this);this.on(t,r)}F.Observable={fire:function(t,e){if(!this.__eventListeners)return this;var r=this.__eventListeners[t];if(!r)return this;for(var i=0,n=r.length;i<n;i++)r[i]&&r[i].call(this,e||{});return this.__eventListeners[t]=r.filter((function(t){return!1!==t})),this},on:function(t,e){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var r in t)this.on(r,t[r]);else this.__eventListeners[t]||(this.__eventListeners[t]=[]),this.__eventListeners[t].push(e);return this},once:function(t,r){if(1===arguments.length)for(var n in t)e.call(this,n,t[n]);else e.call(this,t,r);return this},off:function(e,r){if(!this.__eventListeners)return this;if(0===arguments.length)for(e in this.__eventListeners)t.call(this,e);else if(1===arguments.length&&"object"==typeof arguments[0])for(var n in e)t.call(this,n,e[n]);else t.call(this,e,r);return this}}}(),F.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var i=0,t=arguments.length;i<t;i++)this._onObjectAdded(arguments[i]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(object,t,e){var r=this._objects;return e?r[t]=object:r.splice(t,0,object),this._onObjectAdded&&this._onObjectAdded(object),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var t,e=this._objects,r=!1,i=0,n=arguments.length;i<n;i++)-1!==(t=e.indexOf(arguments[i]))&&(r=!0,e.splice(t,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[i]));return this.renderOnAddRemove&&r&&this.requestRenderAll(),this},forEachObject:function(t,e){for(var r=this.getObjects(),i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);return this},getObjects:function(t){return void 0===t?this._objects.concat():this._objects.filter((function(e){return e.type===t}))},item:function(t){return this._objects[t]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(object,t){return this._objects.indexOf(object)>-1||!!t&&this._objects.some((function(t){return"function"==typeof t.contains&&t.contains(object,!0)}))},complexity:function(){return this._objects.reduce((function(t,e){return t+=e.complexity?e.complexity():0}),0)}},F.CommonMethods={_setOptions:function(t){for(var e in t)this.set(e,t[e])},_initGradient:function(t,e){!t||!t.colorStops||t instanceof F.Gradient||this.set(e,new F.Gradient(t))},_initPattern:function(t,e,r){!t||!t.source||t instanceof F.Pattern?r&&r():this.set(e,new F.Pattern(t,r))},_setObject:function(t){for(var e in t)this._set(e,t[e])},set:function(t,e){return"object"==typeof t?this._setObject(t):this._set(t,e),this},_set:function(t,e){this[t]=e},toggle:function(t){var e=this.get(t);return"boolean"==typeof e&&this.set(t,!e),this},get:function(t){return this[t]}},n=e,o=Math.sqrt,l=Math.atan2,c=Math.pow,h=Math.PI/180,f=Math.PI/2,F.util={cos:function(t){if(0===t)return 1;switch(t<0&&(t=-t),t/f){case 1:case 3:return 0;case 2:return-1}return Math.cos(t)},sin:function(t){if(0===t)return 0;var e=1;switch(t<0&&(e=-1),t/f){case 1:return e;case 2:return 0;case 3:return-e}return Math.sin(t)},removeFromArray:function(t,e){var r=t.indexOf(e);return-1!==r&&t.splice(r,1),t},getRandomInt:function(t,e){return Math.floor(Math.random()*(e-t+1))+t},degreesToRadians:function(t){return t*h},radiansToDegrees:function(t){return t/h},rotatePoint:function(t,e,r){var n=new F.Point(t.x-e.x,t.y-e.y),o=F.util.rotateVector(n,r);return new F.Point(o.x,o.y).addEquals(e)},rotateVector:function(t,e){var r=F.util.sin(e),n=F.util.cos(e);return{x:t.x*n-t.y*r,y:t.x*r+t.y*n}},createVector:function(t,e){return new F.Point(e.x-t.x,e.y-t.y)},calcAngleBetweenVectors:function(a,b){return Math.acos((a.x*b.x+a.y*b.y)
vendor: 15,050 bytes, line 2
2/(Math.hypot(a.x,a.y)*Math.hypot(b.x,b.y)))},getHatVector:function(t){return new F.Point(t.x,t.y).multiply(1/Math.hypot(t.x,t.y))},getBisector:function(t,e,r){var n=F.util.createVector(t,e),o=F.util.createVector(t,r),l=F.util.calcAngleBetweenVectors(n,o),c=l*(0===F.util.calcAngleBetweenVectors(F.util.rotateVector(n,l),o)?1:-1)/2;return{vector:F.util.getHatVector(F.util.rotateVector(n,c)),angle:l}},projectStrokeOnPoints:function(t,e,r){var n=[],s=e.strokeWidth/2,o=e.strokeUniform?new F.Point(1/e.scaleX,1/e.scaleY):new F.Point(1,1),l=function(t){var e=s/Math.hypot(t.x,t.y);return new F.Point(t.x*e*o.x,t.y*e*o.y)};return t.length<=1||t.forEach((function(p,c){var h,f,d=new F.Point(p.x,p.y);0===c?(f=t[c+1],h=r?l(F.util.createVector(f,d)).addEquals(d):t[t.length-1]):c===t.length-1?(h=t[c-1],f=r?l(F.util.createVector(h,d)).addEquals(d):t[0]):(h=t[c-1],f=t[c+1]);var m,y,v=F.util.getBisector(d,h,f),_=v.vector,w=v.angle;if("miter"===e.strokeLineJoin&&(m=-s/Math.sin(w/2),y=new F.Point(_.x*m*o.x,_.y*m*o.y),Math.hypot(y.x,y.y)/s<=e.strokeMiterLimit))return n.push(d.add(y)),void n.push(d.subtract(y));m=-s*Math.SQRT2,y=new F.Point(_.x*m*o.x,_.y*m*o.y),n.push(d.add(y)),n.push(d.subtract(y))})),n},transformPoint:function(p,t,e){return e?new F.Point(t[0]*p.x+t[2]*p.y,t[1]*p.x+t[3]*p.y):new F.Point(t[0]*p.x+t[2]*p.y+t[4],t[1]*p.x+t[3]*p.y+t[5])},makeBoundingBoxFromPoints:function(t,e){if(e)for(var i=0;i<t.length;i++)t[i]=F.util.transformPoint(t[i],e);var r=[t[0].x,t[1].x,t[2].x,t[3].x],n=F.util.array.min(r),o=F.util.array.max(r)-n,l=[t[0].y,t[1].y,t[2].y,t[3].y],c=F.util.array.min(l);return{left:n,top:c,width:o,height:F.util.array.max(l)-c}},invertTransform:function(t){var a=1/(t[0]*t[3]-t[1]*t[2]),e=[a*t[3],-a*t[1],-a*t[2],a*t[0]],r=F.util.transformPoint({x:t[4],y:t[5]},e,!0);return e[4]=-r.x,e[5]=-r.y,e},toFixed:function(t,e){return parseFloat(Number(t).toFixed(e))},parseUnit:function(t,e){var r=/\D{0,2}$/.exec(t),n=parseFloat(t);switch(e||(e=F.Text.DEFAULT_SVG_FONT_SIZE),r[0]){case"mm":return n*F.DPI/25.4;case"cm":return n*F.DPI/2.54;case"in":return n*F.DPI;case"pt":return n*F.DPI/72;case"pc":return n*F.DPI/72*12;case"em":return n*e;default:return n}},falseFunction:function(){return!1},getKlass:function(t,e){return t=F.util.string.camelize(t.charAt(0).toUpperCase()+t.slice(1)),F.util.resolveNamespace(e)[t]},getSvgAttributes:function(t){var e=["instantiated_by_use","style","id","class"];switch(t){case"linearGradient":e=e.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":e=e.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":e=e.concat(["offset","stop-color","stop-opacity"])}return e},resolveNamespace:function(t){if(!t)return F;var i,e=t.split("."),r=e.length,o=n||F.window;for(i=0;i<r;++i)o=o[e[i]];return o},loadImage:function(t,e,r,n){if(t){var img=F.util.createImage(),o=function(){e&&e.call(r,img,!1),img=img.onload=img.onerror=null};img.onload=o,img.onerror=function(){F.log("Error loading "+img.src),e&&e.call(r,null,!0),img=img.onload=img.onerror=null},0!==t.indexOf("data")&&null!=n&&(img.crossOrigin=n),"data:image/svg"===t.substring(0,14)&&(img.onload=null,F.util.loadImageInDom(img,o)),img.src=t}else e&&e.call(r,t)},loadImageInDom:function(img,t){var div=F.document.createElement("div");div.style.width=div.style.height="1px",div.style.left=div.style.top="-100%",div.style.position="absolute",div.appendChild(img),F.document.querySelector("body").appendChild(div),img.onload=function(){t(),div.parentNode.removeChild(div),div=null}},enlivenObjects:function(t,e,r,n){var o=[],l=0,c=(t=t||[]).length;function h(){++l===c&&e&&e(o.filter((function(t){return t})))}c?t.forEach((function(t,e){t&&t.type?F.util.getKlass(t.type,r).fromObject(t,(function(r,l){l||(o[e]=r),n&&n(t,r,l),h()})):h()})):e&&e(o)},enlivenObjectEnlivables:function(object,t,e){var r=F.Object.ENLIVEN_PROPS.filter((function(t){return!!object[t]}));F.util.enlivenObjects(r.map((function(t){return object[t]})),(function(n){var o={};r.forEach((function(e,r){o[e]=n[r],t&&(t[e]=n[r])})),e&&e(o)}))},enlivenPatterns:function(t,e){function r(){++o===l&&e&&e(n)}var n=[],o=0,l=(t=t||[]).length;l?t.forEach((function(p,t){p&&p.source?new F.Pattern(p,(function(pattern){n[t]=pattern,r()})):(n[t]=p,r())})):e&&e(n)},groupSVGElements:function(t,e,path){var object;return t&&1===t.length?t[0]:(e&&(e.width&&e.height?e.centerPoint={x:e.width/2,y:e.height/2}:(delete e.width,delete e.height)),object=new F.Group(t,e),void 0!==path&&(object.sourcePath=path),object)},populateWithProperties:function(source,t,e){if(e&&Array.isArray(e))for(var i=0,r=e.length;i<r;i++)e[i]in source&&(t[e[i]]=source[e[i]])},createCanvasElement:function(){return F.document.createElement("canvas")},copyCanvasElement:function(canvas){var t=F.util.createCanvasElement();return t.width=canvas.width,t.height=canvas.height,t.getContext("2d").drawImage(canvas,0,0),t},toDataURL:function(t,e,r){return t.toDataURL("image/"+e,r)},createImage:function(){return F.document.createElement("img")},multiplyTransformMatrices:function(a,b,t){return[a[0]*b[0]+a[2]*b[1],a[1]*b[0]+a[3]*b[1],a[0]*b[2]+a[2]*b[3],a[1]*b[2]+a[3]*b[3],t?0:a[0]*b[4]+a[2]*b[5]+a[4],t?0:a[1]*b[4]+a[3]*b[5]+a[5]]},qrDecompose:function(a){var t=l(a[1],a[0]),e=c(a[0],2)+c(a[1],2),r=o(e),n=(a[0]*a[3]-a[2]*a[1])/r,f=l(a[0]*a[2]+a[1]*a[3],e);return{angle:t/h,scaleX:r,scaleY:n,skewX:f/h,skewY:0,translateX:a[4],translateY:a[5]}},calcRotateMatrix:function(t){if(!t.angle)return F.iMatrix.concat();var e=F.util.degreesToRadians(t.angle),r=F.util.cos(e),n=F.util.sin(e);return[r,n,-n,r,0,0]},calcDimensionsMatrix:function(t){var e=void 0===t.scaleX?1:t.scaleX,r=void 0===t.scaleY?1:t.scaleY,n=[t.flipX?-e:e,0,0,t.flipY?-r:r,0,0],o=F.util.multiplyTransformMatrices,l=F.util.degreesToRadians;return t.skewX&&(n=o(n,[1,0,Math.tan(l(t.skewX)),1],!0)),t.skewY&&(n=o(n,[1,Math.tan(l(t.skewY)),0,1],!0)),n},composeMatrix:function(t){var e=[1,0,0,1,t.translateX||0,t.translateY||0],r=F.util.multiplyTransformMatrices;return t.angle&&(e=r(e,F.util.calcRotateMatrix(t))),(1!==t.scaleX||1!==t.scaleY||t.skewX||t.skewY||t.flipX||t.flipY)&&(e=r(e,F.util.calcDimensionsMatrix(t))),e},resetObjectTransform:function(t){t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.flipX=!1,t.flipY=!1,t.rotate(0)},saveObjectTransform:function(t){return{scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,angle:t.angle,left:t.left,flipX:t.flipX,flipY:t.flipY,top:t.top}},isTransparent:function(t,e,r,n){n>0&&(e>n?e-=n:e=0,r>n?r-=n:r=0);var i,o=!0,l=t.getImageData(e,r,2*n||1,2*n||1),c=l.data.length;for(i=3;i<c&&!1!=(o=l.data[i]<=0);i+=4);return l=null,o},parsePreserveAspectRatioAttribute:function(t){var e,r="meet",n=t.split(" ");return n&&n.length&&("meet"!==(r=n.pop())&&"slice"!==r?(e=r,r="meet"):n.length&&(e=n.pop())),{meetOrSlice:r,alignX:"none"!==e?e.slice(1,4):"none",alignY:"none"!==e?e.slice(5,8):"none"}},clearFabricFontCache:function(t){(t=(t||"").toLowerCase())?F.charWidthsCache[t]&&delete F.charWidthsCache[t]:F.charWidthsCache={}},limitDimsByArea:function(t,e){var r=Math.sqrt(e*t),n=Math.floor(e/r);return{x:Math.floor(r),y:n}},capValue:function(t,e,r){return Math.max(t,Math.min(e,r))},findScaleToFit:function(source,t){return Math.min(t.width/source.width,t.height/source.height)},findScaleToCover:function(source,t){return Math.max(t.width/source.width,t.height/source.height)},matrixToSVG:function(t){return"matrix("+t.map((function(t){return F.util.toFixed(t,F.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(object,t){var e=F.util.invertTransform(t),r=F.util.multiplyTransformMatrices(e,object.calcOwnMatrix());F.util.applyTransformToObject(object,r)},addTransformToObject:function(object,t){F.util.applyTransformToObject(object,F.util.multiplyTransformMatrices(t,object.calcOwnMatrix()))},applyTransformToObject:function(object,t){var e=F.util.qrDecompose(t),r=new F.Point(e.translateX,e.translateY);object.flipX=!1,object.flipY=!1,object.set("scaleX",e.scaleX),object.set("scaleY",e.scaleY),object.skewX=e.skewX,object.skewY=e.skewY,object.angle=e.angle,object.setPositionByOrigin(r,"center","center")},sizeAfterTransform:function(t,e,r){var n=t/2,o=e/2,l=[{x:-n,y:-o},{x:n,y:-o},{x:-n,y:o},{x:n,y:o}],c=F.util.calcDimensionsMatrix(r),h=F.util.makeBoundingBoxFromPoints(l,c);return{x:h.width,y:h.height}},mergeClipPaths:function(t,e){var a=t,b=e;a.inverted&&!b.inverted&&(a=e,b=t),F.util.applyTransformToObject(b,F.util.multiplyTransformMatrices(F.util.invertTransform(a.calcTransformMatrix()),b.calcTransformMatrix()));var r=a.inverted&&b.inverted;return r&&(a.inverted=b.inverted=!1),new F.Group([a],{clipPath:b,inverted:r})}},function(){var t=Array.prototype.join,e={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},r={m:"l",M:"L"};function n(t,e,r,n,o,l,c,h,f,d,m){var y=F.util.cos(t),v=F.util.sin(t),_=F.util.cos(e),w=F.util.sin(e),x=r*o*_-n*l*w+c,C=n*o*_+r*l*w+h;return["C",d+f*(-r*o*v-n*l*y),m+f*(-n*o*v+r*l*y),x+f*(r*o*w+n*l*_),C+f*(n*o*w-r*l*_),x,C]}function o(t,e,r,n){var o=Math.atan2(e,t),l=Math.atan2(n,r);return l>=o?l-o:2*Math.PI-(o-l)}function l(t,e,r){for(var l=r[1],c=r[2],h=r[3],f=r[4],d=r[5],m=function(t,e,r,l,c,h,f){var d=Math.PI,th=f*d/180,m=F.util.sin(th),y=F.util.cos(th),v=0,_=0,w=-y*t*.5-m*e*.5,x=-y*e*.5+m*t*.5,C=(r=Math.abs(r))*r,S=(l=Math.abs(l))*l,k=x*x,T=w*w,D=C*S-C*k-S*T,E=0;if(D<0){var s=Math.sqrt(1-D/(C*S));r*=s,l*=s}else E=(c===h?-1:1)*Math.sqrt(D/(C*k+S*T));var O=E*r*x/l,A=-E*l*w/r,P=y*O-m*A+.5*t,I=m*O+y*A+.5*e,M=o(1,0,(w-O)/r,(x-A)/l),j=o((w-O)/r,(x-A)/l,(-w-O)/r,(-x-A)/l);0===h&&j>0?j-=2*d:1===h&&j<0&&(j+=2*d);for(var R=Math.ceil(Math.abs(j/d*2)),L=[],N=j/R,B=8/3*Math.sin(N/4)*Math.sin(N/4)/Math.sin(N/2),z=M+N,i=0;i<R;i++)L[i]=n(M,z,y,m,r,l,P,I,B,v,_),v=L[i][5],_=L[i][6],M=z,z+=N;return L}(r[6]-t,r[7]-e,l,c,f,d,h),i=0,y=m.length;i<y;i++)m[i][1]+=t,m[i][2]+=e,m[i][3]+=t,m[i][4]+=e,m[i][5]+=t,m[i][6]+=e;return m}function c(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}function h(t,e,r,n,o,l,c,h){return function(f){var d,m=(d=f)*d*d,y=function(t){return 3*t*t*(1-t)}(f),v=function(t){return 3*t*(1-t)*(1-t)}(f),_=function(t){return(1-t)*(1-t)*(1-t)}(f);return{x:c*m+o*y+r*v+t*_,y:h*m+l*y+n*v+e*_}}}function f(t,e,r,n,o,l,c,h){return function(f){var d=1-f,m=3*d*d*(r-t)+6*d*f*(o-r)+3*f*f*(c-o),y=3*d*d*(n-e)+6*d*f*(l-n)+3*f*f*(h-l);return Math.atan2(y,m)}}function d(t,e,r,n,o,l){return function(c){var h,f=(h=c)*h,d=function(t){return 2*t*(1-t)}(c),m=function(t){return(1-t)*(1-t)}(c);return{x:o*f+r*d+t*m,y:l*f+n*d+e*m}}}function m(t,e,r,n,o,l){return function(c){var h=1-c,f=2*h*(r-t)+2*c*(o-r),d=2*h*(n-e)+2*c*(l-n);return Math.atan2(d,f)}}function y(t,e,r){var p,n,o={x:e,y:r},l=0;for(n=1;n<=100;n+=1)p=t(n/100),l+=c(o.x,o.y,p.x,p.y),o=p;return l}function v(t,e){for(var p,r,n,o=0,l=0,h=t.iterator,f={x:t.x,y:t.y},d=.01,m=t.angleFinder;l<e&&d>1e-4;)p=h(o),n=o,(r=c(f.x,f.y,p.x,p.y))+l>e?(o-=d,d/=2):(f=p,o+=d,l+=r);return p.angle=m(n),p}function _(path){for(var t,e,r,n,o=0,l=path.length,v=0,_=0,w=0,x=0,C=[],i=0;i<l;i++){switch(r={x:v,y:_,command:(t=path[i])[0]},t[0]){case"M":r.length=0,w=v=t[1],x=_=t[2];break;case"L":r.length=c(v,_,t[1],t[2]),v=t[1],_=t[2];break;case"C":e=h(v,_,t[1],t[2],t[3],t[4],t[5],t[6]),n=f(v,_,t[1],t[2],t[3],t[4],t[5],t[6]),r.iterator=e,r.angleFinder=n,r.length=y(e,v,_),v=t[5],_=t[6];break;case"Q":e=d(v,_,t[1],t[2],t[3],t[4]),n=m(v,_,t[1],t[2],t[3],t[4]),r.iterator=e,r.angleFinder=n,r.length=y(e,v,_),v=t[3],_=t[4];break;case"Z":case"z":r.destX=w,r.destY=x,r.length=c(v,_,w,x),v=w,_=x}o+=r.length,C.push(r)}return C.push({length:o,x:v,y:_}),C}F.util.joinPath=function(t){return t.map((function(t){return t.join(" ")})).join(" ")},F.util.parsePath=function(t){var n,o,l,c,path,h=[],f=[],d=F.rePathCommand,m="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",y="("+m+")"+F.commaWsp,v="([01])"+F.commaWsp+"?",_=new RegExp(y+"?"+y+"?"+y+v+v+y+"?("+m+")","g");if(!t||!t.match)return h;for(var w,i=0,x=(path=t.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;i<x;i++){c=(n=path[i]).slice(1).trim(),f.length=0;var C=n.charAt(0);if(w=[C],"a"===C.toLowerCase())for(var S;S=_.exec(c);)for(var k=1;k<S.length;k++)f.push(S[k]);else for(;l=d.exec(c);)f.push(l[0]);k=0;for(var T=f.length;k<T;k++)o=parseFloat(f[k]),isNaN(o)||w.push(o);var D=e[C.toLowerCase()],E=r[C]||C;if(w.length-1>D)for(var O=1,A=w.length;O<A;O+=D)h.push([C].concat(w.slice(O,O+D))),C=E;else h.push(w)}return h},F.util.makePathSimpler=function(path){var t,i,e,r,n,o,c=0,h=0,f=path.length,d=0,m=0,y=[];for(i=0;i<f;++i){switch(e=!1,(t=path[i].slice(0))[0]){case"l":t[0]="L",t[1]+=c,t[2]+=h;case"L":c=t[1],h=t[2];break;case"h":t[1]+=c;case"H":t[0]="L",t[2]=h,c=t[1];break;case"v":t[1]+=h;case"V":t[0]="L",h=t[1],t[1]=c,t[2]=h;break;case"m":t[0]="M",t[1]+=c,t[2]+=h;case"M":c=t[1],h=t[2],d=t[1],m=t[2];break;case"c":t[0]="C",t[1]+=c,t[2]+=h,t[3]+=c,t[4]+=h,t[5]+=c,t[6]+=h;case"C":n=t[3],o=t[4],c=t[5],h=t[6];break;case"s":t[0]="S",t[1]+=c,t[2]+=h,t[3]+=c,t[4]+=h;case"S":"C"===r?(n=2*c-n,o=2*h-o):(n=c,o=h),c=t[3],h=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=n,t[2]=o,n=t[3],o=t[4];break;case"q":t[0]="Q",t[1]+=c,t[2]+=h,t[3]+=c,t[4]+=h;case"Q":n=t[1],o=t[2],c=t[3],h=t[4];break;case"t":t[0]="T",t[1]+=c,t[2]+=h;case"T":"Q"===r?(n=2*c-n,o=2*h-o):(n=c,o=h),t[0]="Q",c=t[1],h=t[2],t[1]=n,t[2]=o,t[3]=c,t[4]=h;break;case"a":t[0]="A",t[6]+=c,t[7]+=h;case"A":e=!0,y=y.concat(l(c,h,t)),c=t[6],h=t[7];break;case"z":case"Z":c=d,h=m}e||y.push(t),r=t[0]}return y},F.util.getSmoothPathFromPoints=function(t,e){var i,path=[],r=new F.Point(t[0].x,t[0].y),n=new F.Point(t[1].x,t[1].y),o=t.length,l=1,c=0,h=o>2;for(e=e||0,h&&(l=t[2].x<n.x?-1:t[2].x===n.x?0:1,c=t[2].y<n.y?-1:t[2].y===n.y?0:1),path.push(["M",r.x-l*e,r.y-c*e]),i=1;i<o;i++){if(!r.eq(n)){var f=r.midPointFrom(n);path.push(["Q",r.x,r.y,f.x,f.y])}r=t[i],i+1<t.length&&(n=t[i+1])}return h&&(l=r.x>t[i-2].x?1:r.x===t[i-2].x?0:-1,c=r.y>t[i-2].y?1:r.y===t[i-2].y?0:-1),path.push(["L",r.x+l*e,r.y+c*e]),path},F.util.getPathSegmentsInfo=_,F.util.getBoundsOfCurve=function(e,r,n,o,l,c,h,f){var d;if(F.cachesBoundsOfCurve&&(d=t.call(arguments),F.boundsOfCurveCache[d]))return F.boundsOfCurveCache[d];var a,b,m,y,v,_,w,x,C=Math.sqrt,S=Math.min,k=Math.max,T=Math.abs,D=[],E=[[],[]];b=6*e-12*n+6*l,a=-3*e+9*n-9*l+3*h,m=3*n-3*e;for(var i=0;i<2;++i)if(i>0&&(b=6*r-12*o+6*c,a=-3*r+9*o-9*c+3*f,m=3*o-3*r),T(a)<1e-12){if(T(b)<1e-12)continue;0<(y=-m/b)&&y<1&&D.push(y)}else(w=b*b-4*m*a)<0||(0<(v=(-b+(x=C(w)))/(2*a))&&v<1&&D.push(v),0<(_=(-b-x)/(2*a))&&_<1&&D.push(_));for(var O,A,P,I=D.length,M=I;I--;)O=(P=1-(y=D[I]))*P*P*e+3*P*P*y*n+3*P*y*y*l+y*y*y*h,E[0][I]=O,A=P*P*P*r+3*P*P*y*o+3*P*y*y*c+y*y*y*f,E[1][I]=A;E[0][M]=e,E[1][M]=r,E[0][M+1]=h,E[1][M+1]=f;var j=[{x:S.apply(null,E[0]),y:S.apply(null,E[1])},{x:k.apply(null,E[0]),y:k.apply(null,E[1])}];return F.cachesBoundsOfCurve&&(F.boundsOfCurveCache[d]=j),j},F.util.getPointOnPath=function(path,t,e){e||(e=_(path));for(var i=0;t-e[i].length>0&&i<e.length-2;)t-=e[i].length,i++;var r,n=e[i],o=t/n.length,l=n.command,c=path[i];switch(l){case"M":return{x:n.x,y:n.y,angle:0};
vendor: 5,015 bytes, line 2
2case"Z":case"z":return(r=new F.Point(n.x,n.y).lerp(new F.Point(n.destX,n.destY),o)).angle=Math.atan2(n.destY-n.y,n.destX-n.x),r;case"L":return(r=new F.Point(n.x,n.y).lerp(new F.Point(c[1],c[2]),o)).angle=Math.atan2(c[2]-n.y,c[1]-n.x),r;case"C":case"Q":return v(n,t)}},F.util.transformPath=function(path,t,e){return e&&(t=F.util.multiplyTransformMatrices(t,[1,0,0,1,-e.x,-e.y])),path.map((function(e){for(var r=e.slice(0),n={},i=1;i<e.length-1;i+=2)n.x=e[i],n.y=e[i+1],n=F.util.transformPoint(n,t),r[i]=n.x,r[i+1]=n.y;return r}))}}(),function(){var t=Array.prototype.slice;function e(t,e,r){if(t&&0!==t.length){var i=t.length-1,n=e?t[i][e]:t[i];if(e)for(;i--;)r(t[i][e],n)&&(n=t[i][e]);else for(;i--;)r(t[i],n)&&(n=t[i]);return n}}F.util.array={fill:function(t,e){for(var r=t.length;r--;)t[r]=e;return t},invoke:function(e,r){for(var n=t.call(arguments,2),o=[],i=0,l=e.length;i<l;i++)o[i]=n.length?e[i][r].apply(e[i],n):e[i][r].call(e[i]);return o},min:function(t,r){return e(t,r,(function(t,e){return t<e}))},max:function(t,r){return e(t,r,(function(t,e){return t>=e}))}}}(),function(){function t(e,source,r){if(r)if(!F.isLikelyNode&&source instanceof Element)e=source;else if(source instanceof Array){e=[];for(var i=0,n=source.length;i<n;i++)e[i]=t({},source[i],r)}else if(source&&"object"==typeof source)for(var o in source)"canvas"===o||"group"===o?e[o]=null:source.hasOwnProperty(o)&&(e[o]=t({},source[o],r));else e=source;else for(var o in source)e[o]=source[o];return e}F.util.object={extend:t,clone:function(object,e){return t({},object,e)}},F.util.object.extend(F.util,F.Observable)}(),function(){function t(t,i){var code=t.charCodeAt(i);if(isNaN(code))return"";if(code<55296||code>57343)return t.charAt(i);if(55296<=code&&code<=56319){if(t.length<=i+1)throw"High surrogate without following low surrogate";var e=t.charCodeAt(i+1);if(56320>e||e>57343)throw"High surrogate without following low surrogate";return t.charAt(i)+t.charAt(i+1)}if(0===i)throw"Low surrogate without preceding high surrogate";var r=t.charCodeAt(i-1);if(55296>r||r>56319)throw"Low surrogate without preceding high surrogate";return!1}F.util.string={camelize:function(t){return t.replace(/-+(.)?/g,(function(t,e){return e?e.toUpperCase():""}))},capitalize:function(t,e){return t.charAt(0).toUpperCase()+(e?t.slice(1):t.slice(1).toLowerCase())},escapeXml:function(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},graphemeSplit:function(e){var r,i=0,n=[];for(i=0;i<e.length;i++)!1!==(r=t(e,i))&&n.push(r);return n}}}(),function(){var t=Array.prototype.slice,e=function(){},r=function(){for(var p in{toString:1})if("toString"===p)return!1;return!0}(),n=function(t,source,e){for(var n in source)n in t.prototype&&"function"==typeof t.prototype[n]&&(source[n]+"").indexOf("callSuper")>-1?t.prototype[n]=function(t){return function(){var r=this.constructor.superclass;this.constructor.superclass=e;var n=source[t].apply(this,arguments);if(this.constructor.superclass=r,"initialize"!==t)return n}}(n):t.prototype[n]=source[n],r&&(source.toString!==Object.prototype.toString&&(t.prototype.toString=source.toString),source.valueOf!==Object.prototype.valueOf&&(t.prototype.valueOf=source.valueOf))};function o(){}function l(e){for(var r=null,n=this;n.constructor.superclass;){var o=n.constructor.superclass.prototype[e];if(n[e]!==o){r=o;break}n=n.constructor.superclass.prototype}return r?arguments.length>1?r.apply(this,t.call(arguments,1)):r.call(this):console.log("tried to callSuper "+e+", method not found in prototype chain",this)}F.util.createClass=function(){var r=null,c=t.call(arguments,0);function h(){this.initialize.apply(this,arguments)}"function"==typeof c[0]&&(r=c.shift()),h.superclass=r,h.subclasses=[],r&&(o.prototype=r.prototype,h.prototype=new o,r.subclasses.push(h));for(var i=0,f=c.length;i<f;i++)n(h,c[i],r);return h.prototype.initialize||(h.prototype.initialize=e),h.prototype.constructor=h,h.prototype.callSuper=l,h}}(),d=!!F.document.createElement("div").attachEvent,m=["touchstart","touchmove","touchend"],F.util.addListener=function(element,t,e,r){element&&element.addEventListener(t,e,!d&&r)},F.util.removeListener=function(element,t,e,r){element&&element.removeEventListener(t,e,!d&&r)},F.util.getPointer=function(t){var element=t.target,e=F.util.getScrollLeftTop(element),r=function(t){var e=t.changedTouches;return e&&e[0]?e[0]:t}(t);return{x:r.clientX+e.left,y:r.clientY+e.top}},F.util.isTouchEvent=function(t){return m.indexOf(t.type)>-1||"touch"===t.pointerType},y=F.document.createElement("div"),v="string"==typeof y.style.opacity,_="string"==typeof y.style.filter,w=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,x=function(element){return element},v?x=function(element,t){return element.style.opacity=t,element}:_&&(x=function(element,t){var e=element.style;return element.currentStyle&&!element.currentStyle.hasLayout&&(e.zoom=1),w.test(e.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",e.filter=e.filter.replace(w,t)):e.filter+=" alph
2a(opacity="+100*t+")",element}),F.util.setStyle=function(element,t){var e=element.style;if(!e)return element;if("string"==typeof t)return element.style.cssText+=";"+t,t.indexOf("opacity")>-1?x(element,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):element;for(var r in t)"opacity"===r?x(element,t[r]):e["float"===r||"cssFloat"===r?void 0===e.styleFloat?"cssFloat":"styleFloat":r]=t[r];return element},function(){var t=Array.prototype.slice;var e,r,style,n,o=function(e){return t.call(e,0)};try{e=o(F.document.childNodes)instanceof Array}catch(t){}function l(t,e){var r=F.document.createElement(t);for(var n in e)"class"===n?r.className=e[n]:"for"===n?r.htmlFor=e[n]:r.setAttribute(n,e[n]);return r}function c(element){for(var t=0,e=0,r=F.document.documentElement,body=F.document.body||{scrollLeft:0,scrollTop:0};element&&(element.parentNode||element.host)&&((element=element.parentNode||element.host)===F.document?(t=body.scrollLeft||r.scrollLeft||0,e=body.scrollTop||r.scrollTop||0):(t+=element.scrollLeft||0,e+=element.scrollTop||0),1!==element.nodeType||"fixed"!==element.style.position););return{left:t,top:e}}e||(o=function(t){for(var e=new Array(t.length),i=t.length;i--;)e[i]=t[i];return e}),r=F.document.defaultView&&F.document.defaultView.getComputedStyle?function(element,t){var style=F.document.defaultView.getComputedStyle(element,null);return style?style[t]:void 0}:function(element,t){var e=element.style[t];return!e&&element.currentStyle&&(e=element.currentStyle[t]),e},style=F.document.documentElement.style,n="userSelect"in style?"userSelect":"MozUserSelect"in style?"MozUserSelect":"WebkitUserSelect"in style?"WebkitUserSelect":"KhtmlUserSelect"in style?"KhtmlUserSelect":"",F.util.makeElementUnselectable=function(element){return void 0!==element.onselectstart&&(element.onselectstart=F.util.falseFunction),n?element.style[n]="none":"string"==typeof element.unselectable&&(element.unselectable="on"),element},F.util.makeElementSelectable=function(element){return void 0!==element.onselectstart&&(element.onselectstart=null),n?element.style[n]="":"string"==typeof element.unselectable&&(element.unselectable=""),element},F.util.setImageSmoothing=function(t,e){t.imageSmoothingEnabled=t.imageSmoothingEnabled||t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled||t.oImageSmoothingEnabled,t.imageSmoothingEnabled=e},F.util.getById=function(t){return"string"==typeof t?F.document.getElementById(t):t},F.util.toArray=o,F.util.addClass=function(element,t){element&&-1===(" "+element.className+" ").indexOf(" "+t+" ")&&(element.className+=(element.className?" ":"")+t)},F.util.makeElement=l,F.util.wrapElement=function(element,t,e){return"string"==typeof t&&(t=l(t,e)),element.parentNode&&element.parentNode.replaceChild(t,element),t.appendChild(element),t},F.util.getScrollLeftTop=c,F.util.getElementOffset=function(element){var t,e,n=element&&element.ownerDocument,o={left:0,top:0},l={left:0,top:0},h={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!n)return l;for(var f in h)l[h[f]]+=parseInt(r(element,f),10)||0;return t=n.documentElement,void 0!==element.getBoundingClientRect&&(o=element.getBoundingClientRect()),e=c(element),{left:o.left+e.left-(t.clientLeft||0)+l.left,top:o.top+e.top-(t.clientTop||0)+l.top}},F.util.getNodeCanvas=function(element){var t=F.jsdomImplForWrapper(element);return t._canvas||t._image},F.util.cleanUpJsdomNode=function(element){if(F.isLikelyNode){var t=F.jsdomImplForWrapper(element);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}}(),function(){function t(){}F.util.request=function(e,r){r||(r={});var n=r.method?r.method.toUpperCase():"GET",o=r.onComplete||function(){},l=new F.window.XMLHttpRequest,body=r.body||r.parameters;return l.onreadystatechange=function(){4===l.readyState&&(o(l),l.onreadystatechange=t)},"GET"===n&&(body=null,"string"==typeof r.parameters&&(e=function(t,param){return t+(/\?/.test(t)?"&":"?")+param}(e,r.parameters))),l.open(n,e,!0),"POST"!==n&&"PUT"!==n||l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.send(body),l}}(),F.log=console.log,F.warn=console.warn,function(){var t=F.util.object.extend,e=F.util.object.clone,r=[];function n(){return!1}function o(t,b,e,r){return-e*Math.cos(t/r*(Math.PI/2))+e+b}F.util.object.extend(r,{cancelAll:function(){var t=this.splice(0);return t.forEach((function(t){t.cancel()})),t},cancelByCanvas:function(canvas){if(!canvas)return[];var t=this.filter((function(t){return"object"==typeof t.target&&t.target.canvas===canvas}));return t.forEach((function(t){t.cancel()})),t},cancelByTarget:function(t){var e=this.findAnimationsByTarget(t);return e.forEach((function(t){t.cancel()})),e},findAnimationIndex:function(t){return this.indexOf(this.findAnimation(t))},findAnimation:function(t){return this.find((function(e){return e.cancel===t}))},findAnimationsByTarget:function(t){return t?this.filter((function(e){return e.target===t})):[]}});var l=F.window.requestAnimationFrame||F.window.webkitRequestAnimationFrame||F.window.mozRequestAnimationFrame||F.window.oRequestAnimationFrame||F.window.msRequestAnimationFrame||function(t){return F.window.setTimeout(t,1e3/60)},c=F.window.cancelAnimationFrame||F.window.clearTimeout;function h(){return l.apply(F.window,arguments)}F.util.animate=function(r){r||(r={});var l,c=!1,f=function(){var t=F.runningAnimations.indexOf(l);return t>-1&&F.runningAnimations.splice(t,1)[0]};return l=t(e(r),{cancel:function(){return c=!0,f()},currentValue:"startValue"in r?r.startValue:0,completionRate:0,durationRate:0}),F.runningAnimations.push(l),h((function(t){var time,e=t||+new Date,d=r.duration||500,m=e+d,y=r.onChange||n,v=r.abort||n,_=r.onComplete||n,w=r.easing||o,x="startValue"in r&&r.startValue.length>0,C="startValue"in r?r.startValue:0,S="endValue"in r?r.endValue:100,k=r.byValue||(x?C.map((function(t,i){return S[i]-C[i]})):S-C);r.onStart&&r.onStart(),function t(r){var n=(time=r||+new Date)>m?d:time-e,o=n/d,T=x?C.map((function(t,i){return w(n,C[i],k[i],d)})):w(n,C,k,d),D=x?Math.abs((T[0]-C[0])/k[0]):Math.abs((T-C)/k);
vendor: 5,475 bytes, line 2
2if(l.currentValue=x?T.slice():T,l.completionRate=D,l.durationRate=o,!c){if(!v(T,D,o))return time>m?(l.currentValue=x?S.slice():S,l.completionRate=1,l.durationRate=1,y(x?S.slice():S,1,1),_(S,1,1),void f()):(y(T,D,o),void h(t));f()}}(e)})),l.cancel},F.util.requestAnimFrame=h,F.util.cancelAnimFrame=function(){return c.apply(F.window,arguments)},F.runningAnimations=r}(),function(){function t(t,e,r){var n="rgba("+parseInt(t[0]+r*(e[0]-t[0]),10)+","+parseInt(t[1]+r*(e[1]-t[1]),10)+","+parseInt(t[2]+r*(e[2]-t[2]),10);return n+=","+(t&&e?parseFloat(t[3]+r*(e[3]-t[3])):1),n+=")"}F.util.animateColor=function(e,r,n,o){var l=new F.Color(e).getSource(),c=new F.Color(r).getSource(),h=o.onComplete,f=o.onChange;return o=o||{},F.util.animate(F.util.object.extend(o,{duration:n||500,startValue:l,endValue:c,byValue:c,easing:function(e,r,n,l){return t(r,n,o.colorEasing?o.colorEasing(e,l):1-Math.cos(e/l*(Math.PI/2)))},onComplete:function(e,r,n){if(h)return h(t(c,c,0),r,n)},onChange:function(e,r,n){if(f){if(Array.isArray(e))return f(t(e,e,0),r,n);f(e,r,n)}}}))}}(),function(){function t(a,t,p,s){return a<Math.abs(t)?(a=t,s=p/4):s=0===t&&0===a?p/(2*Math.PI)*Math.asin(1):p/(2*Math.PI)*Math.asin(t/a),{a:a,c:t,p:p,s:s}}function e(t,e,r){return t.a*Math.pow(2,10*(e-=1))*Math.sin((e*r-t.s)*(2*Math.PI)/t.p)}function r(t,b,e,r){return e-n(r-t,0,e,r)+b}function n(t,b,e,r){return(t/=r)<1/2.75?e*(7.5625*t*t)+b:t<2/2.75?e*(7.5625*(t-=1.5/2.75)*t+.75)+b:t<2.5/2.75?e*(7.5625*(t-=2.25/2.75)*t+.9375)+b:e*(7.5625*(t-=2.625/2.75)*t+.984375)+b}F.util.ease={easeInQuad:function(t,b,e,r){return e*(t/=r)*t+b},easeOutQuad:function(t,b,e,r){return-e*(t/=r)*(t-2)+b},easeInOutQuad:function(t,b,e,r){return(t/=r/2)<1?e/2*t*t+b:-e/2*(--t*(t-2)-1)+b},easeInCubic:function(t,b,e,r){return e*(t/=r)*t*t+b},easeOutCubic:function(t,b,e,r){return e*((t=t/r-1)*t*t+1)+b},easeInOutCubic:function(t,b,e,r){return(t/=r/2)<1?e/2*t*t*t+b:e/2*((t-=2)*t*t+2)+b},easeInQuart:function(t,b,e,r){return e*(t/=r)*t*t*t+b},easeOutQuart:function(t,b,e,r){return-e*((t=t/r-1)*t*t*t-1)+b},easeInOutQuart:function(t,b,e,r){return(t/=r/2)<1?e/2*t*t*t*t+b:-e/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(t,b,e,r){return e*(t/=r)*t*t*t*t+b},easeOutQuint:function(t,b,e,r){return e*((t=t/r-1)*t*t*t*t+1)+b},easeInOutQuint:function(t,b,e,r){return(t/=r/2)<1?e/2*t*t*t*t*t+b:e/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(t,b,e,r){return-e*Math.cos(t/r*(Math.PI/2))+e+b},easeOutSine:function(t,b,e,r){return e*Math.sin(t/r*(Math.PI/2))+b},easeInOutSine:function(t,b,e,r){return-e/2*(Math.cos(Math.PI*t/r)-1)+b},easeInExpo:function(t,b,e,r){return 0===t?b:e*Math.pow(2,10*(t/r-1))+b},easeOutExpo:function(t,b,e,r){return t===r?b+e:e*(1-Math.pow(2,-10*t/r))+b},easeInOutExpo:function(t,b,e,r){return 0===t?b:t===r?b+e:(t/=r/2)<1?e/2*Math.pow(2,10*(t-1))+b:e/2*(2-Math.pow(2,-10*--t))+b},easeInCirc:function(t,b,e,r){return-e*(Math.sqrt(1-(t/=r)*t)-1)+b},easeOutCirc:function(t,b,e,r){return e*Math.sqrt(1-(t=t/r-1)*t)+b},easeInOutCirc:function(t,b,e,r){return(t/=r/2)<1?-e/2*(Math.sqrt(1-t*t)-1)+b:e/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(r,b,n,o){var p=0;return 0===r?b:1===(r/=o)?b+n:(p||(p=.3*o),-e(t(n,n,p,1.70158),r,o)+b)},easeOutElastic:function(e,b,r,n){var p=0;if(0===e)return b;if(1===(e/=n))return b+r;p||(p=.3*n);var o=t(r,r,p,1.70158);return o.a*Math.pow(2,-10*e)*Math.sin((e*n-o.s)*(2*Math.PI)/o.p)+o.c+b},easeInOutElastic:function(r,b,n,o){var p=0;if(0===r)return b;if(2===(r/=o/2))return b+n;p||(p=o*(.3*1.5));var l=t(n,n,p,1.70158);return r<1?-.5*e(l,r,o)+b:l.a*Math.pow(2,-10*(r-=1))*Math.sin((r*o-l.s)*(2*Math.PI)/l.p)*.5+l.c+b},easeInBack:function(t,b,e,r,s){return void 0===s&&(s=1.70158),e*(t/=r)*t*((s+1)*t-s)+b},easeOutBack:function(t,b,e,r,s){return void 0===s&&(s=1.70158),e*((t=t/r-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(t,b,e,r,s){return void 0===s&&(s=1.70158),(t/=r/2)<1?e/2*(t*t*((1+(s*=1.525))*t-s))+b:e/2*((t-=2)*t*((1+(s*=1.525))*t+s)+2)+b},easeInBounce:r,easeOutBounce:n,easeInOutBounce:function(t,b,e,o){return t<o/2?.5*r(2*t,0,e,o)+b:.5*n(2*t-o,0,e,o)+.5*e+b}}}(),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.object.extend,n=e.util.object.clone,o=e.util.toFixed,l=e.util.parseUnit,c=e.util.multiplyTransformMatrices,h={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},f={stroke:"strokeOpacity",fill:"fillOpacity"},d="font-size",m="clip-path";function y(t){return t in h?h[t]:t}function v(t,r,n,o){var h,f=Array.isArray(r);if("fill"!==t&&"stroke"!==t||"none"!==r){if("strokeUniform"===t)return"non-scaling-stroke"===r;if("strokeDashArray"===t)r="none"===r?null:r.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===t)r=n&&n.transformMatrix?c(n.transformMatrix,e.parseTransformAttribute(r)):e.parseTransformAttribute(r);
vendor: 4,416 bytes, line 2
2else if("visible"===t)r="none"!==r&&"hidden"!==r,n&&!1===n.visible&&(r=!1);else if("opacity"===t)r=parseFloat(r),n&&void 0!==n.opacity&&(r*=n.opacity);else if("textAnchor"===t)r="start"===r?"left":"end"===r?"right":"center";else if("charSpacing"===t)h=l(r,o)/o*1e3;else if("paintFirst"===t){var d=r.indexOf("fill"),m=r.indexOf("stroke");r="fill";(d>-1&&m>-1&&m<d||-1===d&&m>-1)&&(r="stroke")}else{if("href"===t||"xlink:href"===t||"font"===t)return r;if("imageSmoothing"===t)return"optimizeQuality"===r;h=f?r.map(l):l(r,o)}}else r="";return!f&&isNaN(h)?r:h}function _(t){return new RegExp("^("+t.join("|")+")\\b","i")}function w(t,e){var r,n,i,o,l=[];for(i=0,o=e.length;i<o;i++)r=e[i],n=t.getElementsByTagName(r),l=l.concat(Array.prototype.slice.call(n));return l}function x(element,t){var e,r=!0;return(e=C(element,t.pop()))&&t.length&&(r=function(element,t){var e,r=!0;for(;element.parentNode&&1===element.parentNode.nodeType&&t.length;)r&&(e=t.pop()),r=C(element=element.parentNode,e);return 0===t.length}(element,t)),e&&r&&0===t.length}function C(element,t){var e,i,r=element.nodeName,n=element.getAttribute("class"),o=element.getAttribute("id");if(e=new RegExp("^"+r,"i"),t=t.replace(e,""),o&&t.length&&(e=new RegExp("#"+o+"(?![a-zA-Z\\-]+)","i"),t=t.replace(e,"")),n&&t.length)for(i=(n=n.split(" ")).length;i--;)e=new RegExp("\\."+n[i]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(e,"");return 0===t.length}function S(t,e){var r;if(t.getElementById&&(r=t.getElementById(e)),r)return r;var n,i,o,l=t.getElementsByTagName("*");for(i=0,o=l.length;i<o;i++)if(e===(n=l[i]).getAttribute("id"))return n}e.svgValidTagNamesRegEx=_(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),e.svgViewBoxElementsRegEx=_(["symbol","image","marker","pattern","view","svg"]),e.svgInvalidAncestorsRegEx=_(["pattern","defs","symbol","metadata","clipPath","mask","desc"]),e.svgValidParentsRegEx=_(["symbol","g","a","svg","clipPath","defs"]),e.cssRules={},e.gradientDefs={},e.clipPaths={},e.parseTransformAttribute=function(){function t(t,r,n){t[n]=Math.tan(e.util.degreesToRadians(r[0]))}var r=e.iMatrix,n=e.reNum,o=e.commaWsp,l="(?:"+("(?:(matrix)\\s*\\(\\s*("+n+")"+o+"("+n+")"+o+"("+n+")"+o+"("+n+")"+o+"("+n+")"+o+"("+n+")\\s*\\))")+"|"+("(?:(translate)\\s*\\(\\s*("+n+")(?:"+o+"("+n+"))?\\s*\\))")+"|"+("(?:(scale)\\s*\\(\\s*("+n+")(?:"+o+"("+n+"))?\\s*\\))")+"|"+("(?:(rotate)\\s*\\(\\s*("+n+")(?:"+o+"("+n+")"+o+"("+n+"))?\\s*\\))")+"|"+("(?:(skewX)\\s*\\(\\s*("+n+")\\s*\\))")+"|"+("(?:(skewY)\\s*\\(\\s*("+n+")\\s*\\))")+")",c=new RegExp("^\\s*(?:"+("(?:"+l+"(?:"+o+"*"+l+")*)")+"?)\\s*$"),h=new RegExp(l,"g");return function(n){var o=r.concat(),f=[];if(!n||n&&!c.test(n))return o;n.replace(h,(function(n){var c=new RegExp(l).exec(n).filter((function(t){return!!t})),h=c[1],d=c.slice(2).map(parseFloat);switch(h){case"translate":!function(t,e){t[4]=e[0],2===e.length&&(t[5]=e[1])}(o,d);break;case"rotate":d[0]=e.util.degreesToRadians(d[0]),function(t,r){var n=e.util.cos(r[0]),o=e.util.sin(r[0]),l=0,c=0;3===r.length&&(l=r[1],c=r[2]),t[0]=n,t[1]=o,t[2]=-o,t[3]=n,t[4]=l-(n*l-o*c),t[5]=c-(o*l+n*c)}(o,d);break;case"scale":!function(t,e){var r=e[0],n=2===e.length?e[1]:e[0];t[0]=r,t[3]=n}(o,d);break;case"skewX":t(o,d,2);break;case"skewY":t(o,d,1);break;case"matrix":o=d}f.push(o.concat()),o=r.concat()}));for(var d=f[0];f.length>1;)f.shift(),d=e.util.multiplyTransformMatrices(d,f[0]);return d}}();var k=new RegExp("^\\s*("+e.reNum+"+)\\s*,?\\s*("+e.reNum+"+)\\s*,?\\s*("+e.reNum+"+)\\s*,?\\s*("+e.reNum+"+)\\s*$");function T(element){if(!e.svgViewBoxElementsRegEx.test(element.nodeName))return{};var t,r,n,o,c,h,f=element.getAttribute("viewBox"),d=1,m=1,y=element.getAttribute("width"),v=element.getAttribute("height"),_=element.getAttribute("x")||0,w=element.getAttribute("y")||0,x=element.getAttribute("preserveAspectRatio")||"",C=!f||!(f=f.match(k)),S=!y||!v||"100%"===y||"100%"===v,T=C&&S,D={},E="",O=0,A=0;if(D.width=0,D.height=0,D.toBeParsed=T,C&&(_||w)&&element.parentNode&&"#document"!==element.parentNode.nodeName&&(E=" translate("+l(_)+" "+l(w)+") ",c=(element.getAttribute("transform")||"")+E,element.setAttribute("transform",c),element.removeAttribute("x"),element.removeAttribute("y")),T)return D;if(C)return D.width=l(y),D.height=l(v),D;if(t=-parseFloat(f[1]),r=-parseFloat(f[2]),n=parseFloat(f[3]),o=parseFloat(f[4]),D.minX=t,D.minY=r,D.viewBoxWidth=n,D.viewBoxHeight=o,S?(D.width=n,D.height=o
vendor: 14,191 bytes, line 2
2):(D.width=l(y),D.height=l(v),d=D.width/n,m=D.height/o),"none"!==(x=e.util.parsePreserveAspectRatioAttribute(x)).alignX&&("meet"===x.meetOrSlice&&(m=d=d>m?m:d),"slice"===x.meetOrSlice&&(m=d=d>m?d:m),O=D.width-n*d,A=D.height-o*d,"Mid"===x.alignX&&(O/=2),"Mid"===x.alignY&&(A/=2),"Min"===x.alignX&&(O=0),"Min"===x.alignY&&(A=0)),1===d&&1===m&&0===t&&0===r&&0===_&&0===w)return D;if((_||w)&&"#document"!==element.parentNode.nodeName&&(E=" translate("+l(_)+" "+l(w)+") "),c=E+" matrix("+d+" 0 0 "+m+" "+(t*d+O)+" "+(r*m+A)+") ","svg"===element.nodeName){for(h=element.ownerDocument.createElementNS(e.svgNS,"g");element.firstChild;)h.appendChild(element.firstChild);element.appendChild(h)}else(h=element).removeAttribute("x"),h.removeAttribute("y"),c=h.getAttribute("transform")+c;return h.setAttribute("transform",c),D}function D(t,e){var r="xlink:href",n=S(t,e.getAttribute(r).slice(1));if(n&&n.getAttribute(r)&&D(t,n),["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"].forEach((function(t){n&&!e.hasAttribute(t)&&n.hasAttribute(t)&&e.setAttribute(t,n.getAttribute(t))})),!e.children.length)for(var o=n.cloneNode(!0);o.firstChild;)e.appendChild(o.firstChild);e.removeAttribute(r)}e.parseSVGDocument=function(t,r,o,l){if(t){!function(t){for(var r=w(t,["use","svg:use"]),i=0;r.length&&i<r.length;){var n=r[i],o=n.getAttribute("xlink:href")||n.getAttribute("href");if(null===o)return;var l,c,h,f,d=o.slice(1),m=n.getAttribute("x")||0,y=n.getAttribute("y")||0,v=S(t,d).cloneNode(!0),_=(v.getAttribute("transform")||"")+" translate("+m+", "+y+")",x=r.length,C=e.svgNS;if(T(v),/^svg$/i.test(v.nodeName)){var k=v.ownerDocument.createElementNS(C,"g");for(c=0,f=(h=v.attributes).length;c<f;c++)l=h.item(c),k.setAttributeNS(C,l.nodeName,l.nodeValue);for(;v.firstChild;)k.appendChild(v.firstChild);v=k}for(c=0,f=(h=n.attributes).length;c<f;c++)"x"!==(l=h.item(c)).nodeName&&"y"!==l.nodeName&&"xlink:href"!==l.nodeName&&"href"!==l.nodeName&&("transform"===l.nodeName?_=l.nodeValue+" "+_:v.setAttribute(l.nodeName,l.nodeValue));v.setAttribute("transform",_),v.setAttribute("instantiated_by_use","1"),v.removeAttribute("id"),n.parentNode.replaceChild(v,n),r.length===x&&i++}}(t);var i,c,h=e.Object.__uid++,f=T(t),d=e.util.toArray(t.getElementsByTagName("*"));if(f.crossOrigin=l&&l.crossOrigin,f.svgUid=h,0===d.length&&e.isLikelyNode){var m=[];for(i=0,c=(d=t.selectNodes('//*[name(.)!="svg"]')).length;i<c;i++)m[i]=d[i];d=m}var y=d.filter((function(t){return T(t),e.svgValidTagNamesRegEx.test(t.nodeName.replace("svg:",""))&&!function(element,t){for(;element&&(element=element.parentNode);)if(element.nodeName&&t.test(element.nodeName.replace("svg:",""))&&!element.getAttribute("instantiated_by_use"))return!0;return!1}(t,e.svgInvalidAncestorsRegEx)}));if(!y||y&&!y.length)r&&r([],{});else{var v={};d.filter((function(t){return"clipPath"===t.nodeName.replace("svg:","")})).forEach((function(t){var r=t.getAttribute("id");v[r]=e.util.toArray(t.getElementsByTagName("*")).filter((function(t){return e.svgValidTagNamesRegEx.test(t.nodeName.replace("svg:",""))}))})),e.gradientDefs[h]=e.getGradientDefs(t),e.cssRules[h]=e.getCSSRules(t),e.clipPaths[h]=v,e.parseElements(y,(function(t,n){r&&(r(t,f,n,d),delete e.gradientDefs[h],delete e.cssRules[h],delete e.clipPaths[h])}),n(f),o,l)}}};var E=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+e.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+e.reNum+"))?\\s+(.*)");r(e,{parseFontDeclaration:function(t,e){var r=t.match(E);if(r){var n=r[1],o=r[3],c=r[4],h=r[5],f=r[6];n&&(e.fontStyle=n),o&&(e.fontWeight=isNaN(parseFloat(o))?o:parseFloat(o)),c&&(e.fontSize=l(c)),f&&(e.fontFamily=f),h&&(e.lineHeight="normal"===h?1:h)}},getGradientDefs:function(t){var e,r=w(t,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),n=0,o={};for(n=r.length;n--;)(e=r[n]).getAttribute("xlink:href")&&D(t,e),o[e.getAttribute("id")]=e;return o},parseAttributes:function(element,t,n){if(element){var c,h,_,w={};void 0===n&&(n=element.getAttribute("svgUid")),element.parentNode&&e.svgValidParentsRegEx.test(element.parentNode.nodeName)&&(w=e.parseAttributes(element.parentNode,t,n));var C=t.reduce((function(t,e){return(c=element.getAttribute(e))&&(t[e]=c),t}),{}),S=r(function(element,t){var r={};for(var n in e.cssRules[t])if(x(element,n.split(" ")))for(var o in e.cssRules[t][n])r[o]=e.cssRules[t][n][o];return r}(element,n),e.parseStyleAttribute(element));C=r(C,S),S[m]&&element.setAttribute(m,S[m]),h=_=w.fontSize||e.Text.DEFAULT_SVG_FONT_SIZE,C[d]&&(C[d]=h=l(C[d],_));var k,T,D={};for(var E in C)T=v(k=y(E),C[E],w,h),D[k]=T;D&&D.font&&e.parseFontDeclaration(D.font,D);var O=r(w,D);return e.svgValidParentsRegEx.test(element.nodeName)?O:function(t){for(var r in f)if(void 0!==t[f[r]]&&""!==t[r]){if(void 0===t[r]){if(!e.Object.prototype[r])continue;t[r]=e.Object.prototype[r]}if(0!==t[r].indexOf("url(")){var n=new e.Color(t[r]);t[r]=n.setAlpha(o(n.getAlpha()*t[f[r]],2)).toRgba()}}return t}(O)}},parseElements:function(t,r,n,o,l){new e.ElementsParser(t,r,n,o,l).parse()},parseStyleAttribute:function(element){var t={},style=element.getAttribute("style");return style?("string"==typeof style?function(style,t){var e,r;style.replace(/;\s*$/,"").split(";").forEach((function(n){var o=n.split(":");e=o[0].trim().toLowerCase(),r=o[1].trim(),t[e]=r}))}(style,t):function(style,t){var e,r;for(var n in style)void 0!==style[n]&&(e=n.toLowerCase(),r=style[n],t[e]=r)}(style,t),t):t},parsePointsAttribute:function(t){if(!t)return null;var i,e,r=[];for(i=0,e=(t=(t=t.replace(/,/g," ").trim()).split(/\s+/)).length;i<e;i+=2)r.push({x:parseFloat(t[i]),y:parseFloat(t[i+1])});return r},getCSSRules:function(t){var i,r,n=t.getElementsByTagName("style"),o={};for(i=0,r=n.length;i<r;i++){var l=n[i].textContent;""!==(l=l.replace(/\/\*[\s\S]*?\*\//g,"")).trim()&&l.split("}").filter((function(t){return t.trim()})).forEach((function(t){var n=t.split("{"),l={},c=n[1].trim().split(";").filter((function(t){return t.trim()}));for(i=0,r=c.length;i<r;i++){var h=c[i].split(":"),f=h[0].trim(),d=h[1].trim();l[f]=d}(t=n[0].trim()).split(",").forEach((function(t){""!==(t=t.replace(/^svg/i,"").trim())&&(o[t]?e.util.object.extend(o[t],l):o[t]=e.util.object.clone(l))}))}))}return o},loadSVGFromURL:function(t,r,n,o){t=t.replace(/^\n\s*/,"").trim(),new e.util.request(t,{method:"get",onComplete:function(t){var l=t.responseXML;if(!l||!l.documentElement)return r&&r(null),!1;e.parseSVGDocument(l.documentElement,(function(t,e,n,o){r&&r(t,e,n,o)}),n,o)}})},loadSVGFromString:function(t,r,n,o){var l=(new e.window.DOMParser).parseFromString(t.trim(),"text/xml");e.parseSVGDocument(l.documentElement,(function(t,e,n,o){r(t,e,n,o)}),n,o)}})}(e),F.ElementsParser=function(t,e,r,n,o,l){this.elements=t,this.callback=e,this.options=r,this.reviver=n,this.svgUid=r&&r.svgUid||0,this.parsingOptions=o,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=l},(C=F.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},C.createObjects=function(){var t=this;this.elements.forEach((function(element,i){element.setAttribute("svgUid",t.svgUid),t.createObject(element,i)}))},C.findTag=function(t){return F[F.util.string.capitalize(t.tagName.replace("svg:",""))]},C.createObject=function(t,e){var r=this.findTag(t);if(r&&r.fromElement)try{r.fromElement(t,this.createCallback(e,t),this.options)}catch(t){F.log(t)}else this.checkIfDone()},C.createCallback=function(t,e){var r=this;return function(n){var o;r.resolveGradient(n,e,"fill"),r.resolveGradient(n,e,"stroke"),n instanceof F.Image&&n._originalElement&&(o=n.parsePreserveAspectRatioAttribute(e)),n._removeTransformMatrix(o),r.resolveClipPath(n,e),r.reviver&&r.reviver(e,n),r.instances[t]=n,r.checkIfDone()}},C.extractPropertyDefinition=function(t,e,r){var n=t[e],o=this.regexUrl;if(o.test(n)){o.lastIndex=0;var l=o.exec(n)[1];return o.lastIndex=0,F[r][this.svgUid][l]}},C.resolveGradient=function(t,e,r){var n=this.extractPropertyDefinition(t,r,"gradientDefs");if(n){var o=e.getAttribute(r+"-opacity"),l=F.Gradient.fromElement(n,t,o,this.options);t.set(r,l)}},C.createClipPathCallback=function(t,e){return function(t){t._removeTransformMatrix(),t.fillRule=t.clipRule,e.push(t)}},C.resolveClipPath=function(t,e){var element,r,n,o,l=this.extractPropertyDefinition(t,"clipPath","clipPaths");if(l){n=[],r=F.util.invertTransform(t.calcTransformMatrix());for(var c=l[0].parentNode,h=e;h.parentNode&&h.getAttribute("clip-path")!==t.clipPath;)h=h.parentNode;h.parentNode.appendChild(c);for(var i=0;i<l.length;i++)element=l[i],this.findTag(element).fromElement(element,this.createClipPathCallback(t,n),this.options);l=1===n.length?n[0]:new F.Group(n),o=F.util.multiplyTransformMatrices(r,l.calcTransformMatrix()),l.clipPath&&this.resolveClipPath(l,h);var f=F.util.qrDecompose(o);l.flipX=!1,l.flipY=!1,l.set("scaleX",f.scaleX),l.set("scaleY",f.scaleY),l.angle=f.angle,l.skewX=f.skewX,l.skewY=0,l.setPositionByOrigin({x:f.translateX,y:f.translateY},"center","center"),t.clipPath=l}else delete t.clipPath},C.checkIfDone=function(){0==--this.numElements&&(this.instances=this.instances.filter((function(t){return null!=t})),this.callback(this.instances,this.elements))},function(t){"use strict";var e=t.fabric||(t.fabric={});function r(t,e){this.x=t,this.y=e}e.Point?e.warn("fabric.Point is already defined"):(e.Point=r,r.prototype={type:"point",constructor:r,add:function(t){return new r(this.x+t.x,this.y+t.y)},addEquals:function(t){return this.x+=t.x,this.y+=t.y,this},scalarAdd:function(t){return new r(this.x+t,this.y+t)},scalarAddEquals:function(t){return this.x+=t,this.y+=t,this},subtract:function(t){return new r(this.x-t.x,this.y-t.y)},subtractEquals:function(t){return this.x-=t.x,this.y-=t.y,this},scalarSubtract:function(t){return new r(this.x-t,this.y-t)},scalarSubtractEquals:function(t){return this.x-=t,this.y-=t,this},multiply:function(t){return new r(this.x*t,this.y*t)},multiplyEquals:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return new r(this.x/t,this.y/t)},divideEquals:function(t){return this.x/=t,this.y/=t,this},eq:function(t){return this.x===t.x&&this.y===t.y},lt:function(t){return this.x<t.x&&this.y<t.y},lte:function(t){return this.x<=t.x&&this.y<=t.y},gt:function(t){return this.x>t.x&&this.y>t.y},gte:function(t){return this.x>=t.x&&this.y>=t.y},lerp:function(t,e){return void 0===e&&(e=.5),e=Math.max(Math.min(1,e),0),new r(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e)},distanceFrom:function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},midPointFrom:function(t){return this.lerp(t)},min:function(t){return new r(Math.min(this.x,t.x),Math.min(this.y,t.y))},max:function(t){return new r(Math.max(this.x,t.x),Math.max(this.y,t.y))},toString:function(){return this.x+","+this.y},setXY:function(t,e){return this.x=t,this.y=e,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setFromPoint:function(t){return this.x=t.x,this.y=t.y,this},swap:function(t){var e=this.x,r=this.y;this.x=t.x,this.y=t.y,t.x=e,t.y=r},clone:function(){return new r(this.x,this.y)}})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});function r(t){this.status=t,this.points=[]}e.Intersection?e.warn("fabric.Intersection is already defined"):(e.Intersection=r,e.Intersection.prototype={constructor:r,appendPoint:function(t){return this.points.push(t),this},appendPoints:function(t){return this.points=this.points.concat(t),this}},e.Intersection.intersectLineLine=function(t,n,o,l){var c,h=(l.x-o.x)*(t.y-o.y)-(l.y-o.y)*(t.x-o.x),f=(n.x-t.x)*(t.y-o.y)-(n.y-t.y)*(t.x-o.x),d=(l.y-o.y)*(n.x-t.x)-(l.x-o.x)*(n.y-t.y);if(0!==d){var m=h/d,y=f/d;0<=m&&m<=1&&0<=y&&y<=1?(c=new r("Intersection")).appendPoint(new e.Point(t.x+m*(n.x-t.x),t.y+m*(n.y-t.y))):c=new r}else c=new r(0===h||0===f?"Coincident":"Parallel");return c},e.Intersection.intersectLinePolygon=function(t,e,n){var o,l,c,i,h=new r,f=n.length;for(i=0;i<f;i++)o=n[i],l=n[(i+1)%f],c=r.intersectLineLine(t,e,o,l),h.appendPoints(c.points);return h.points.length>0&&(h.status="Intersection"),h},e.Intersection.intersectPolygonPolygon=function(t,e){var i,n=new r,o=t.length;for(i=0;i<o;i++){var l=t[i],c=t[(i+1)%o],h=r.intersectLinePolygon(l,c,e);n.appendPoints(h.points)}return n.points.length>0&&(n.status="Intersection"),n},e.Intersection.intersectPolygonRectangle=function(t,n,o){var l=n.min(o),c=n.max(o),h=new e.Point(c.x,l.y),f=new e.Point(l.x,c.y),d=r.intersectLinePolygon(l,h,t),m=r.intersectLinePolygon(h,c,t),y=r.intersectLinePolygon(c,f,t),v=r.intersectLinePolygon(f,l,t),_=new r;return _.appendPoints(d.points),_.appendPoints(m.points),_.appendPoints(y.points),_.appendPoints(v.points),_.points.length>0&&(_.status="Intersection"),_})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});function r(t){t?this._tryParsingColor(t):this.setSource([0,0,0,1])}function n(p,q,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?p+6*(q-p)*t:t<.5?q:t<2/3?p+(q-p)*(2/3-t)*6:p}e.Color?e.warn("fabric.Color is already defined."):(e.Color=r,e.Color.prototype={_tryParsingColor:function(t){var source;t in r.colorNameMap&&(t=r.colorNameMap[t]),"transparent"===t&&(source=[255,255,255,0]),source||(source=r.sourceFromHex(t)),source||(source=r.sourceFromRgb(t)),source||(source=r.sourceFromHsl(t)),source||(source=[0,0,0,1]),source&&this.setSource(source)},_rgbToHsl:function(t,g,b){t/=255,g/=255,b/=255;var r,s,n,o=e.util.array.max([t,g,b]),l=e.util.array.min([t,g,b]);if(n=(o+l)/2,o===l)r=s=0;else{var c=o-l;switch(s=n>.5?c/(2-o-l):c/(o+l),o){case t:r=(g-b)/c+(g<b?6:0);break;case g:r=(b-t)/c+2;break;case b:r=(t-g)/c+4}r/=6}return[Math.round(360*r),Math.round(100*s),Math.round(100*n)]},getSource:function(){return this._source},setSource:function(source){this._source=source},toRgb:function(){var source=this.getSource();return"rgb("+source[0]+","+source[1]+","+source[2]+")"},toRgba:function(){var source=this.getSource();return"rgba("+source[0]+","+source[1]+","+source[2]+","+source[3]+")"},toHsl:function(){var source=this.getSource(),t=this._rgbToHsl(source[0],source[1],source[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"}
vendor: 21,261 bytes, line 2
2,toHsla:function(){var source=this.getSource(),t=this._rgbToHsl(source[0],source[1],source[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+source[3]+")"},toHex:function(){var t,g,b,source=this.getSource();return t=1===(t=source[0].toString(16)).length?"0"+t:t,g=1===(g=source[1].toString(16)).length?"0"+g:g,b=1===(b=source[2].toString(16)).length?"0"+b:b,t.toUpperCase()+g.toUpperCase()+b.toUpperCase()},toHexa:function(){var a,source=this.getSource();return a=1===(a=(a=Math.round(255*source[3])).toString(16)).length?"0"+a:a,this.toHex()+a.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(t){var source=this.getSource();return source[3]=t,this.setSource(source),this},toGrayscale:function(){var source=this.getSource(),t=parseInt((.3*source[0]+.59*source[1]+.11*source[2]).toFixed(0),10),e=source[3];return this.setSource([t,t,t,e]),this},toBlackWhite:function(t){var source=this.getSource(),e=(.3*source[0]+.59*source[1]+.11*source[2]).toFixed(0),r=source[3];return t=t||127,e=Number(e)<Number(t)?0:255,this.setSource([e,e,e,r]),this},overlayWith:function(t){t instanceof r||(t=new r(t));var i,e=[],n=this.getAlpha(),source=this.getSource(),o=t.getSource();for(i=0;i<3;i++)e.push(Math.round(.5*source[i]+.5*o[i]));return e[3]=n,this.setSource(e),this}},e.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,e.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,e.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,e.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",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:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",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",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",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:"#FF0000",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:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},e.Color.fromRgb=function(t){return r.fromSource(r.sourceFromRgb(t))},e.Color.sourceFromRgb=function(t){var e=t.match(r.reRGBa);if(e){var n=parseInt(e[1],10)/(/%$/.test(e[1])?100:1)*(/%$/.test(e[1])?255:1),g=parseInt(e[2],10)/(/%$/.test(e[2])?100:1)*(/%$/.test(e[2])?255:1),b=parseInt(e[3],10)/(/%$/.test(e[3])?100:1)*(/%$/.test(e[3])?255:1);return[parseInt(n,10),parseInt(g,10),parseInt(b,10),e[4]?parseFloat(e[4]):1]}},e.Color.fromRgba=r.fromRgb,e.Color.fromHsl=function(t){return r.fromSource(r.sourceFromHsl(t))},e.Color.sourceFromHsl=function(t){var e=t.match(r.reHSLa);if(e){var o,g,b,l=(parseFloat(e[1])%360+360)%360/360,s=parseFloat(e[2])/(/%$/.test(e[2])?100:1),c=parseFloat(e[3])/(/%$/.test(e[3])?100:1);if(0===s)o=g=b=c;else{var q=c<=.5?c*(s+1):c+s-c*s,p=2*c-q;o=n(p,q,l+1/3),g=n(p,q,l),b=n(p,q,l-1/3)}return[Math.round(255*o),Math.round(255*g),Math.round(255*b),e[4]?parseFloat(e[4]):1]}},e.Color.fromHsla=r.fromHsl,e.Color.fromHex=function(t){return r.fromSource(r.sourceFromHex(t))},e.Color.sourceFromHex=function(t){if(t.match(r.reHex)){var e=t.slice(t.indexOf("#")+1),n=3===e.length||4===e.length,o=8===e.length||4===e.length,l=n?e.charAt(0)+e.charAt(0):e.substring(0,2),g=n?e.charAt(1)+e.charAt(1):e.substring(2,4),b=n?e.charAt(2)+e.charAt(2):e.substring(4,6),a=o?n?e.charAt(3)+e.charAt(3):e.substring(6,8):"FF";return[parseInt(l,16),parseInt(g,16),parseInt(b,16),parseFloat((parseInt(a,16)/255).toFixed(2))]}},e.Color.fromSource=function(source){var t=new r;return t.setSource(source),t})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=["e","se","s","sw","w","nw","n","ne","e"],n=["ns","nesw","ew","nwse"],o={},l="left",c="top",h="right",f="bottom",d="center",m={top:f,bottom:c,left:h,right:l,center:d},y=e.util.radiansToDegrees,v=Math.sign||function(t){return(t>0)-(t<0)||+t};function _(t,e){var r=t.angle+y(Math.atan2(e.y,e.x))+360;return Math.round(r%360/45)}function w(t,r){var n=r.transform.target,canvas=n.canvas,o=e.util.object.clone(r);o.target=n,canvas&&canvas.fire("object:"+t,o),n.fire(t,r)}function x(t,e){var canvas=e.canvas,r=t[canvas.uniScaleKey];return canvas.uniformScaling&&!r||!canvas.uniformScaling&&r}function C(t){return t.originX===d&&t.originY===d}function S(t,e,r){var n=t.lockScalingX,o=t.lockScalingY;return!(!n||!o)||(!(e||!n&&!o||!r)||(!(!n||"x"!==e)||!(!o||"y"!==e)))}function k(t,e,r,n){return{e:t,transform:e,pointer:{x:r,y:n}}}function T(t){return function(e,r,n,o){var l=r.target,c=l.getCenterPoint(),h=l.translateToOriginPoint(c,r.originX,r.originY),f=t(e,r,n,o);return l.setPositionByOrigin(h,r.originX,r.originY),f}}function D(t,e){return function(r,n,o,l){var c=e(r,n,o,l);return c&&w(t,k(r,n,o,l)),c}}function E(t,r,n,o,l){var c=t.target,h=c.controls[t.corner],f=c.canvas.getZoom(),d=c.padding/f,m=c.toLocalPoint(new e.Point(o,l),r,n);return m.x>=d&&(m.x-=d),m.x<=-d&&(m.x+=d),m.y>=d&&(m.y-=d),m.y<=d&&(m.y+=d),m.x-=h.offsetX,m.y-=h.offsetY,m}function O(t){return t.flipX!==t.flipY}function A(t,e,r,n,o){if(0!==t[e]){var l=o/t._getTransformedDimensions()[n]*t[r];t.set(r,l)}}function P(t,e,r,n){var o,d=e.target,m=d._getTransformedDimensions(0,d.skewY),v=E(e,e.originX,e.originY,r,n),_=Math.abs(2*v.x)-m.x,w=d.skewX;_<2?o=0:(o=y(Math.atan2(_/d.scaleX,m.y/d.scaleY)),e.originX===l&&e.originY===f&&(o=-o),e.originX===h&&e.originY===c&&(o=-o),O(d)&&(o=-o));var x=w!==o;if(x){var C=d._getTransformedDimensions().y;d.set("skewX",o),A(d,"skewY","scaleY","y",C)}return x}function F(t,e,r,n){var o,d=e.target,m=d._getTransformedDimensions(d.skewX,0),v=E(e,e.originX,e.originY,r,n),_=Math.abs(2*v.y)-m.y,w=d.skewY;_<2?o=0:(o=y(Math.atan2(_/d.scaleY,m.x/d.scaleX)),e.originX===l&&e.originY===f&&(o=-o),e.originX===h&&e.originY===c&&(o=-o),O(d)&&(o=-o));var x=w!==o;if(x){var C=d._getTransformedDimensions().x;d.set("skewY",o),A(d,"skewX","scaleX","x",C)}return x}function I(t,e,r,n,o){o=o||{};var l,c,h,f,d,y,_=e.target,w=_.lockScalingX,k=_.lockScalingY,T=o.by,D=x(t,_),O=S(_,T,D),A=e.gestureScale;if(O)return!1;if(A)c=e.scaleX*A,h=e.scaleY*A;else{if(l=E(e,e.originX,e.originY,r,n),d="y"!==T?v(l.x):1,y="x"!==T?v(l.y):1,e.signX||(e.signX=d),e.signY||(e.signY=y),_.lockScalingFlip&&(e.signX!==d||e.signY!==y))return!1;if(f=_._getTransformedDimensions(),D&&!T){var P=Math.abs(l.x)+Math.abs(l.y),F=e.original,I=P/(Math.abs(f.x*F.scaleX/_.scaleX)+Math.abs(f.y*F.scaleY/_.scaleY));c=F.scaleX*I,h=F.scaleY*I}else c=Math.abs(l.x*_.scaleX/f.x),h=Math.abs(l.y*_.scaleY/f.y);C(e)&&(c*=2,h*=2),e.signX!==d&&"y"!==T&&(e.originX=m[e.originX],c*=-1,e.signX=d),e.signY!==y&&"x"!==T&&(e.originY=m[e.originY],h*=-1,e.signY=y)}var M=_.scaleX,j=_.scaleY;return T?("x"===T&&_.set("scaleX",c),"y"===T&&_.set("scaleY",h)):(!w&&_.set("scaleX",c),!k&&_.set("scaleY",h)),M!==_.scaleX||j!==_.scaleY}o.scaleCursorStyleHandler=function(t,e,n){var o=x(t,n),l="";if(0!==e.x&&0===e.y?l="x":0===e.x&&0!==e.y&&(l="y"),S(n,l,o))return"not-allowed";var c=_(n,e);return r[c]+"-resize"},o.skewCursorStyleHandler=function(t,e,r){var o="not-allowed";if(0!==e.x&&r.lockSkewingY)return o;if(0!==e.y&&r.lockSkewingX)return o;var l=_(r,e)%4;return n[l]+"-resize"},o.scaleSkewCursorStyleHandler=function(t,e,r){return t[r.canvas.altActionKey]?o.skewCursorStyleHandler(t,e,r):o.scaleCursorStyleHandler(t,e,r)},o.rotationWithSnapping=D("rotating",T((function(t,e,r,n){var o=e,l=o.target,c=l.translateToOriginPoint(l.getCenterPoint(),o.originX,o.originY);if(l.lockRotation)return!1;var h,f=Math.atan2(o.ey-c.y,o.ex-c.x),d=Math.atan2(n-c.y,r-c.x),m=y(d-f+o.theta);if(l.snapAngle>0){var v=l.snapAngle,_=l.snapThreshold||v,w=Math.ceil(m/v)*v,x=Math.floor(m/v)*v;Math.abs(m-x)<_?m=x:Math.abs(m-w)<_&&(m=w)}return m<0&&(m=360+m),m%=360,h=l.angle!==m,l.angle=m,h}))),o.scalingEqually=D("scaling",T((function(t,e,r,n){return I(t,e,r,n)}))),o.scalingX=D("scaling",T((function(t,e,r,n){return I(t,e,r,n,{by:"x"})}))),o.scalingY=D("scaling",T((function(t,e,r,n){return I(t,e,r,n,{by:"y"})}))),o.scalingYOrSkewingX=function(t,e,r,n){return t[e.target.canvas.altActionKey]?o.skewHandlerX(t,e,r,n):o.scalingY(t,e,r,n)},o.scalingXOrSkewingY=function(t,e,r,n){return t[e.target.canvas.altActionKey]?o.skewHandlerY(t,e,r,n):o.scalingX(t,e,r,n)},o.changeWidth=D("resizing",T((function(t,e,r,n){var o=e.target,l=E(e,e.originX,e.originY,r,n),c=o.strokeWidth/(o.strokeUniform?o.scaleX:1),h=C(e)?2:1,f=o.width,d=Math.abs(l.x*h/o.scaleX)-c;return o.set("width",Math.max(d,0)),f!==d}))),o.skewHandlerX=function(t,e,r,n){var o,f=e.target,m=f.skewX,y=e.originY;return!f.lockSkewingX&&(0===m?o=E(e,d,d,r,n).x>0?l:h:(m>0&&(o=y===c?l:h),m<0&&(o=y===c?h:l),O(f)&&(o=o===l?h:l)),e.originX=o,D("skewing",T(P))(t,e,r,n))},o.skewHandlerY=function(t,e,r,n){var o,h=e.target,m=h.skewY,y=e.originX;return!h.lockSkewingY&&(0===m?o=E(e,d,d,r,n).y>0?c:f:(m>0&&(o=y===l?c:f),m<0&&(o=y===l?f:c),O(h)&&(o=o===c?f:c)),e.originY=o,D("skewing",T(F))(t,e,r,n))},o.dragHandler=function(t,e,r,n){var o=e.target,l=r-e.offsetX,c=n-e.offsetY,h=!o.get("lockMovementX")&&o.left!==l,f=!o.get("lockMovementY")&&o.top!==c;return h&&o.set("left",l),f&&o.set("top",c),(h||f)&&w("moving",k(t,e,r,n)),h||f},o.scaleOrSkewActionName=function(t,e,r){var n=t[r.canvas.altActionKey];return 0===e.x?n?"skewX":"scaleY":0===e.y?n?"skewY":"scaleX":void 0},o.rotationStyleHandler=function(t,e,r){return r.lockRotation?"not-allowed":e.cursorStyle},o.fireEvent=w,o.wrapWithFixedAnchor=T,o.wrapWithFireEvent=D,o.getLocalPoint=E,e.controlsUtils=o}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.degreesToRadians,n=e.controlsUtils;n.renderCircleControl=function(t,e,r,n,o){n=n||{};var l,c=this.sizeX||n.cornerSize||o.cornerSize,h=this.sizeY||n.cornerSize||o.cornerSize,f=void 0!==n.transparentCorners?n.transparentCorners:o.transparentCorners,d=f?"stroke":"fill",m=!f&&(n.cornerStrokeColor||o.cornerStrokeColor),y=e,v=r;t.save(),t.fillStyle=n.cornerColor||o.cornerColor,t.strokeStyle=n.cornerStrokeColor||o.cornerStrokeColor,c>h?(l=c,t.scale(1,h/c),v=r*c/h):h>c?(l=h,t.scale(c/h,1),y=e*h/c):l=c,t.lineWidth=1,t.beginPath(),t.arc(y,v,l/2,0,2*Math.PI,!1),t[d](),m&&t.stroke(),t.restore()},n.renderSquareControl=function(t,e,n,o,l){o=o||{};var c=this.sizeX||o.cornerSize||l.cornerSize,h=this.sizeY||o.cornerSize||l.cornerSize,f=void 0!==o.transparentCorners?o.transparentCorners:l.transparentCorners,d=f?"stroke":"fill",m=!f&&(o.cornerStrokeColor||l.cornerStrokeColor),y=c/2,v=h/2;t.save(),t.fillStyle=o.cornerColor||l.cornerColor,t.strokeStyle=o.cornerStrokeColor||l.cornerStrokeColor,t.lineWidth=1,t.translate(e,n),t.rotate(r(l.angle)),t[d+"Rect"](-y,-v,c,h),m&&t.strokeRect(-y,-v,c,h),t.restore()}}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});e.Control=function(t){for(var i in t)this[i]=t[i]},e.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(t,e){return e.cursorStyle},getActionName:function(t,e){return e.actionName},getVisibility:function(t,e){var r=t._controlsVisibility;return r&&void 0!==r[e]?r[e]:this.visible},setVisibility:function(t){this.visible=t},positionHandler:function(t,r){return e.util.transformPoint({x:this.x*t.x+this.offsetX,y:this.y*t.y+this.offsetY},r)},calcCornerCoords:function(t,r,n,o,l){var c,h,f,d,m=l?this.touchSizeX:this.sizeX,y=l?this.touchSizeY:this.sizeY;if(m&&y&&m!==y){var v=Math.atan2(y,m),_=Math.sqrt(m*m+y*y)/2,w=v-e.util.degreesToRadians(t),x=Math.PI/2-v-e.util.degreesToRadians(t);c=_*e.util.cos(w),h=_*e.util.sin(w),f=_*e.util.cos(x),d=_*e.util.sin(x)}else{_=.7071067812*(m&&y?m:r);w=e.util.degreesToRadians(45-t);c=f=_*e.util.cos(w),h=d=_*e.util.sin(w)}return{tl:{x:n-d,y:o-f},tr:{x:n+c,y:o-h},bl:{x:n-c,y:o+h},br:{x:n+d,y:o+f}}},render:function(t,r,n,o,l){if("circle"===((o=o||{}).cornerStyle||l.cornerStyle))e.controlsUtils.renderCircleControl.call(this,t,r,n,o,l);else e.controlsUtils.renderSquareControl.call(this,t,r,n,o,l)}}}(e),function(){function t(t,e){var r,n,o,i,style=t.getAttribute("style"),l=t.getAttribute("offset")||0;if(l=(l=parseFloat(l)/(/%$/.test(l)?100:1))<0?0:l>1?1:l,style){var c=style.split(/\s*;\s*/);for(""===c[c.length-1]&&c.pop(),i=c.length;i--;){var h=c[i].split(/\s*:\s*/),f=h[0].trim(),d=h[1].trim();"stop-color"===f?r=d:"stop-opacity"===f&&(o=d)}}return r||(r=t.getAttribute("stop-color")||"rgb(0,0,0)"),o||(o=t.getAttribute("stop-opacity")),n=(r=new F.Color(r)).getAlpha(),o=isNaN(parseFloat(o))?1:parseFloat(o),o*=n*e,{offset:l,color:r.toRgb(),opacity:o}}var e=F.util.object.clone;F.Gradient=F.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(t){t||(t={}),t.coords||(t.coords={});var e,r=this;Object.keys(t).forEach((function(option){r[option]=t[option]})),this.id?this.id+="_"+F.Object.__uid++:this.id=F.Object.__uid++,e={x1:t.coords.x1||0,y1:t.coords.y1||0,x2:t.coords.x2||0,y2:t.coords.y2||0},"radial"===this.type&&(e.r1=t.coords.r1||0,e.r2=t.coords.r2||0),this.coords=e,this.colorStops=t.colorStops.slice()},addColorStop:function(t){for(var e in t){var r=new F.Color(t[e]);this.colorStops.push({offset:parseFloat(e),color:r.toRgb(),opacity:r.getAlpha()})}return this},toObject:function(t){var object={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return F.util.populateWithProperties(this,object,t),object},toSVG:function(object,t){var i,r,n,o,l=e(this.coords,!0),c=(t=t||{},e(this.colorStops,!0)),h=l.r1>l.r2,f=this.gradientTransform?this.gradientTransform.concat():F.iMatrix.concat(),d=-this.offsetX,m=-this.offsetY,y=!!t.additionalTransform,v="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(c.sort((function(a,b){return a.offset-b.offset})),"objectBoundingBox"===v?(d/=object.width,m/=object.height):(d+=object.width/2,m+=object.height/2),"path"===object.type&&"percentage"!==this.gradientUnits&&(d-=object.pathOffset.x,m-=object.pathOffset.y),f[4]-=d,f[5]-=m,o='id="SVGID_'+this.id+'" gradientUnits="'+v+'"',o+=' gradientTransform="'+(y?t.additionalTransform+" ":"")+F.util.matrixToSVG(f)+'" ',"linear"===this.type?n=["<linearGradient ",o,' x1="',l.x1,'" y1="',l.y1,'" x2="',l.x2,'" y2="',l.y2,'">\n']:"radial"===this.type&&(n=["<radialGradient ",o,' cx="',h?l.x1:l.x2,'" cy="',h?l.y1:l.y2,'" r="',h?l.r1:l.r2,'" fx="',h?l.x2:l.x1,'" fy="',h?l.y2:l.y1,'">\n']),"radial"===this.type){if(h)for((c=c.concat()).reverse(),i=0,r=c.length;i<r;i++)c[i].offset=1-c[i].offset;var _=Math.min(l.r1,l.r2);if(_>0){var w=_/Math.max(l.r1,l.r2);for(i=0,r=c.length;i<r;i++)c[i].offset+=w*(1-c[i].offset)}}for(i=0,r=c.length;i<r;i++){var x=c[i];n.push("<stop ",'offset="',100*x.offset+"%",'" style="stop-color:',x.color,void 0!==x.opacity?";stop-opacity: "+x.opacity:";",'"/>\n')}return n.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),n.join("")},toLive:function(t){var e,i,r,n=F.util.object.clone(this.coords);if(this.type){for("linear"===this.type?e=t.createLinearGradient(n.x1,n.y1,n.x2,n.y2):"radial"===this.type&&(e=t.createRadialGradient(n.x1,n.y1,n.r1,n.x2,n.y2,n.r2)),i=0,r=this.colorStops.length;i<r;i++){var o=this.colorStops[i].color,l=this.colorStops[i].opacity,c=this.colorStops[i].offset;void 0!==l&&(o=new F.Color(o).setAlpha(l).toRgba()),e.addColorStop(c,o)}return e}}}),F.util.object.extend(F.Gradient,{fromElement:function(e,r,n,o){var l=parseFloat(n)/(/%$/.test(n)?100:1);l=l<0?0:l>1?1:l,isNaN(l)&&(l=1);var c,h,i,f,d=e.getElementsByTagName("stop"),m="userSpaceOnUse"===e.getAttribute("gradientUnits")?"pixels":"percentage",y=e.getAttribute("gradientTransform")||"",v=[],_=0,w=0;for("linearGradient"===e.nodeName||"LINEARGRADIENT"===e.nodeName?(c="linear",h=function(t){return{x1:t.getAttribute("x1")||0,y1:t.getAttribute("y1")||0,x2:t.getAttribute("x2")||"100%",y2:t.getAttribute("y2")||0}}(e)):(c="radial",h=function(t){return{x1:t.getAttribute("fx")||t.getAttribute("cx")||"50%",y1:t.getAttribute("fy")||t.getAttribute("cy")||"50%",r1:0,x2:t.getAttribute("cx")||"50%",y2:t.getAttribute("cy")||"50%",r2:t.getAttribute("r")||"50%"}}(e)),i=d.length;i--;)v.push(t(d[i],l));return f=F.parseTransformAttribute(y),function(t,e,r,n){var o,l;Object.keys(e).forEach((function(t){"Infinity"===(o=e[t])?l=1:"-Infinity"===o?l=0:(l=parseFloat(e[t],10),"string"==typeof o&&/^(\d+\.\d+)%|(\d+)%$/.test(o)&&(l*=.01,"pixels"===n&&("x1"!==t&&"x2"!==t&&"r2"!==t||(l*=r.viewBoxWidth||r.width),"y1"!==t&&"y2"!==t||(l*=r.viewBoxHeight||r.height)))),e[t]=l}))}(0,h,o,m),"pixels"===m&&(_=-r.left,w=-r.top),new F.Gradient({id:e.getAttribute("id"),type:c,coords:h,colorStops:v,gradientUnits:m,gradientTransform:f,offsetX:_,offsetY:w})}})}(),function(){"use strict";var t=F.util.toFixed;F.Pattern=F.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(t,e){if(t||(t={}),this.id=F.Object.__uid++,this.setOptions(t),!t.source||t.source&&"string"!=typeof t.source)e&&e(this);else{var r=this;this.source=F.util.createImage(),F.util.loadImage(t.source,(function(img,t){r.source=img,e&&e(r,t)}),null,this.crossOrigin)}},toObject:function(e){var source,object,r=F.Object.NUM_FRACTION_DIGITS;return"string"==typeof this.source.src?source=this.source.src:"object"==typeof this.source&&this.source.toDataURL&&(source=this.source.toDataURL()),object={type:"pattern",source:source,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:t(this.offsetX,r),offsetY:t(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},F.util.populateWithProperties(this,object,e),object},toSVG:function(object){var t="function"==typeof this.source?this.source():this.source,e=t.width/object.width,r=t.height/object.height,n=this.offsetX/object.width,o=this.offsetY/object.height,l="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(r=1,o&&(r+=Math.abs(o))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(e=1,n&&(e+=Math.abs(n))),t.src?l=t.src:t.toDataURL&&(l=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+n+'" y="'+o+'" width="'+e+'" height="'+r+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+l+'"></image>\n</pattern>\n'},setOptions:function(t){for(var e in t)this[e]=t[e]},toLive:function(t){var source=this.source;if(!source)return"";if(void 0!==source.src){if(!source.complete)return"";
vendor: 4,304 bytes, line 2
2if(0===source.naturalWidth||0===source.naturalHeight)return""}return t.createPattern(source,this.repeat)}})}(),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.toFixed;e.Shadow?e.warn("fabric.Shadow is already defined."):(e.Shadow=e.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(t){for(var r in"string"==typeof t&&(t=this._parseShadow(t)),t)this[r]=t[r];this.id=e.Object.__uid++},_parseShadow:function(shadow){var t=shadow.trim(),r=e.Shadow.reOffsetsAndBlur.exec(t)||[];return{color:(t.replace(e.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseFloat(r[1],10)||0,offsetY:parseFloat(r[2],10)||0,blur:parseFloat(r[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(object){var t=40,n=40,o=e.Object.NUM_FRACTION_DIGITS,l=e.util.rotateVector({x:this.offsetX,y:this.offsetY},e.util.degreesToRadians(-object.angle)),c=new e.Color(this.color);return object.width&&object.height&&(t=100*r((Math.abs(l.x)+this.blur)/object.width,o)+20,n=100*r((Math.abs(l.y)+this.blur)/object.height,o)+20),object.flipX&&(l.x*=-1),object.flipY&&(l.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+n+'%" height="'+(100+2*n)+'%" x="-'+t+'%" width="'+(100+2*t)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+r(this.blur?this.blur/2:0,o)+'"></feGaussianBlur>\n\t<feOffset dx="'+r(l.x,o)+'" dy="'+r(l.y,o)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+c.toRgb()+'" flood-opacity="'+c.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var t={},r=e.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(e){this[e]!==r[e]&&(t[e]=this[e])}),this),t}}),e.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(e),function(){"use strict";if(F.StaticCanvas)F.warn("fabric.StaticCanvas is already defined.");else{var t=F.util.object.extend,e=F.util.getElementOffset,r=F.util.removeFromArray,n=F.util.toFixed,o=F.util.transformPoint,l=F.util.invertTransform,c=F.util.getNodeCanvas,h=F.util.createCanvasElement,f=new Error("Could not initialize `canvas` element");F.StaticCanvas=F.util.createClass(F.CommonMethods,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:F.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(t,e){var r=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(t),this._initOptions(e),this.interactive||this._initRetinaScaling(),e.overlayImage&&this.setOverlayImage(e.overlayImage,r),e.backgroundImage&&this.setBackgroundImage(e.backgroundImage,r),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor,r),e.overlayColor&&this.setOverlayColor(e.overlayColor,r),this.calcOffset()},_isRetinaScaling:function(){return F.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,F.devicePixelRatio):1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var t=F.devicePixelRatio;this.__initRetinaScaling(t,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(t,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(t,canvas,e){canvas.setAttribute("width",this.width*t),canvas.setAttribute("height",this.height*t),e.scale(t,t)},calcOffset:function(){return this._offset=e(this.lowerCanvasEl),this},setOverlayImage:function(image,t,e){return this.__setBgOverlayImage("overlayImage",image,t,e)}
vendor: 9,989 bytes, line 2
2,setBackgroundImage:function(image,t,e){return this.__setBgOverlayImage("backgroundImage",image,t,e)},setOverlayColor:function(t,e){return this.__setBgOverlayColor("overlayColor",t,e)},setBackgroundColor:function(t,e){return this.__setBgOverlayColor("backgroundColor",t,e)},__setBgOverlayImage:function(t,image,e,r){return"string"==typeof image?F.util.loadImage(image,(function(img,n){if(img){var o=new F.Image(img,r);this[t]=o,o.canvas=this}e&&e(img,n)}),this,r&&r.crossOrigin):(r&&image.setOptions(r),this[t]=image,image&&(image.canvas=this),e&&e(image,!1)),this},__setBgOverlayColor:function(t,e,r){return this[t]=e,this._initGradient(e,t),this._initPattern(e,t,r),this},_createCanvasElement:function(){var element=h();if(!element)throw f;if(element.style||(element.style={}),void 0===element.getContext)throw f;return element},_initOptions:function(t){var e=this.lowerCanvasEl;this._setOptions(t),this.width=this.width||parseInt(e.width,10)||0,this.height=this.height||parseInt(e.height,10)||0,this.lowerCanvasEl.style&&(e.width=this.width,e.height=this.height,e.style.width=this.width+"px",e.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(t){t&&t.getContext?this.lowerCanvasEl=t:this.lowerCanvasEl=F.util.getById(t)||this._createCanvasElement(),F.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(t,e){return this.setDimensions({width:t},e)},setHeight:function(t,e){return this.setDimensions({height:t},e)},setDimensions:function(t,e){var r;for(var n in e=e||{},t)r=t[n],e.cssOnly||(this._setBackstoreDimension(n,t[n]),r+="px",this.hasLostContext=!0),e.backstoreOnly||this._setCssDimension(n,r);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),e.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(t,e){return this.lowerCanvasEl[t]=e,this.upperCanvasEl&&(this.upperCanvasEl[t]=e),this.cacheCanvasEl&&(this.cacheCanvasEl[t]=e),this[t]=e,this},_setCssDimension:function(t,e){return this.lowerCanvasEl.style[t]=e,this.upperCanvasEl&&(this.upperCanvasEl.style[t]=e),this.wrapperEl&&(this.wrapperEl.style[t]=e),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(t){var object,i,e,r=this._activeObject,n=this.backgroundImage,o=this.overlayImage;for(this.viewportTransform=t,i=0,e=this._objects.length;i<e;i++)(object=this._objects[i]).group||object.setCoords(!0);return r&&r.setCoords(),n&&n.setCoords(!0),o&&o.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(t,e){var r=t,n=this.viewportTransform.slice(0);t=o(t,l(this.viewportTransform)),n[0]=e,n[3]=e;var c=o(t,n);return n[4]+=r.x-c.x,n[5]+=r.y-c.y,this.setViewportTransform(n)},setZoom:function(t){return this.zoomToPoint(new F.Point(0,0),t),this},absolutePan:function(t){var e=this.viewportTransform.slice(0);return e[4]=-t.x,e[5]=-t.y,this.setViewportTransform(e)},relativePan:function(t){return this.absolutePan(new F.Point(-t.x-this.viewportTransform[4],-t.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(t){this.stateful&&t.setupState(),t._set("canvas",this),t.setCoords(),this.fire("object:added",{target:t}),t.fire("added")},_onObjectRemoved:function(t){this.fire("object:removed",{target:t}),t.fire("removed"),delete t.canvas},clearContext:function(t){return t.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var t=this.contextContainer;return this.renderCanvas(t,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=F.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var t={},e=this.width,r=this.height,n=l(this.viewportTransform);return t.tl=o({x:0,y:0},n),t.br=o({x:e,y:r},n),t.tr=new F.Point(t.br.x,t.tl.y),t.bl=new F.Point(t.tl.x,t.br.y),this.vptCoords=t,t},cancelRequestedRender:function(){this.isRendering&&(F.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(t,e){var r=this.viewportTransform,path=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(t),F.util.setImageSmoothing(t,this.imageSmoothingEnabled),this.fire("before:render",{ctx:t}),this._renderBackground(t),t.save(),t.transform(r[0],r[1],r[2],r[3],r[4],r[5]),this._renderObjects(t,e),t.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(t),path&&(path.canvas=this,path.shouldCache(),path._transformDone=!0,path.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(t)),this._renderOverlay(t),this.controlsAboveOverlay&&this.interactive&&this.drawControls(t),this.fire("after:render",{ctx:t})},drawClipPathOnCanvas:function(t){var e=this.viewportTransform,path=this.clipPath;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t.globalCompositeOperation="destination-in",path.transform(t),t.scale(1/path.zoomX,1/path.zoomY),t.drawImage(path._cacheCanvas,-path.cacheTranslationX,-path.cacheTranslationY),t.restore()},_renderObjects:function(t,e){var i,r;for(i=0,r=e.length;i<r;++i)e[i]&&e[i].render(t)},_renderBackgroundOrOverlay:function(t,e){var r=this[e+"Color"],object=this[e+"Image"],n=this.viewportTransform,o=this[e+"Vpt"];if(r||object){if(r){t.save(),t.beginPath(),t.moveTo(0,0),t.lineTo(this.width,0),t.lineTo(this.width,this.height),t.lineTo(0,this.height),t.closePath(),t.fillStyle=r.toLive?r.toLive(t,this):r,o&&t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.transform(1,0,0,1,r.offsetX||0,r.offsetY||0);var l=r.gradientTransform||r.patternTransform;l&&t.transform(l[0],l[1],l[2],l[3],l[4],l[5]),t.fill(),t.restore()}object&&(t.save(),o&&t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),object.render(t),t.restore())}},_renderBackground:function(t){this._renderBackgroundOrOverlay(t,"background")},_renderOverlay:function(t){this._renderBackgroundOrOverlay(t,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new F.Point(this.width/2,this.height/2)},centerObjectH:function(object){return this._centerObject(object,new F.Point(this.getCenterPoint().x,object.getCenterPoint().y))},centerObjectV:function(object){return this._centerObject(object,new F.Point(object.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(object){var t=this.getCenterPoint();return this._centerObject(object,t)},viewportCenterObject:function(object){var t=this.getVpCenter();return this._centerObject(object,t)},viewportCenterObjectH:function(object){var t=this.getVpCenter();return this._centerObject(object,new F.Point(t.x,object.getCenterPoint().y)),this},viewportCenterObjectV:function(object){var t=this.getVpCenter();return this._centerObject(object,new F.Point(object.getCenterPoint().x,t.y))},getVpCenter:function(){var t=this.getCenterPoint(),e=l(this.viewportTransform);return o(t,e)},_centerObject:function(object,t){return object.setPositionByOrigin(t,"center","center"),object.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(t){return this.toDatalessObject(t)},toObject:function(t){return this._toObjectMethod("toObject",t)},toDatalessObject:function(t){return this._toObjectMethod("toDatalessObject",t)},_toObjectMethod:function(e,r){var n=this.clipPath,data={version:F.version,objects:this._toObjects(e,r)};return n&&!n.excludeFromExport&&(data.clipPath=this._toObject(this.clipPath,e,r)),t(data,this.__serializeBgOverlay(e,r)),F.util.populateWithProperties(this,data,r),data},_toObjects:function(t,e){return this._objects.filter((function(object){return!object.excludeFromExport})).map((function(r){return this._toObject(r,t,e)}),this)},_toObject:function(t,e,r){var n;this.includeDefaultValues||(n=t.includeDefaultValues,t.includeDefaultValues=!1);var object=t[e](r);return this.includeDefaultValues||(t.includeDefaultValues=n),object},__serializeBgOverlay:function(t,e){var data={},r=this.backgroundImage,n=this.overlayImage,o=this.backgroundColor,l=this.overlayColor;return o&&o.toObject?o.excludeFromExport||(data.background=o.toObject(e)):o&&(data.background=o),l&&l.toObject?l.excludeFromExport||(data.overlay=l.toObject(e)):l&&(data.overlay=l),r&&!r.excludeFromExport&&(data.backgroundImage=this._toObject(r,t,e)),n&&!n.excludeFromExport&&(data.overlayImage=this._toObject(n,t,e)),data},svgViewportTransformation:!0,toSVG:function(t,e){t||(t={}),t.reviver=e;var r=[];return this._setSVGPreamble(r,t),this._setSVGHeader(r,t),this.clipPath&&r.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(r,"background"),this._setSVGBgOverlayImage(r,"backgroundImage",e),this._setSVGObjects(r,e),this.clipPath&&r.push("</g>\n"),this._setSVGBgOverlayColor(r,"overlay"),this._setSVGBgOverlayImage(r,"overlayImage",e),r.push("</svg>"),r.join("")},_setSVGPreamble:function(t,e){e.suppressPreamble||t.push('<?xml version="1.0" encoding="',e.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(t,e){var r,o=e.width||this.width,l=e.height||this.height,c='viewB
2ox="0 0 '+this.width+" "+this.height+'" ',h=F.Object.NUM_FRACTION_DIGITS;e.viewBox?c='viewBox="'+e.viewBox.x+" "+e.viewBox.y+" "+e.viewBox.width+" "+e.viewBox.height+'" ':this.svgViewportTransformation&&(r=this.viewportTransform,c='viewBox="'+n(-r[4]/r[0],h)+" "+n(-r[5]/r[3],h)+" "+n(this.width/r[0],h)+" "+n(this.height/r[3],h)+'" '),t.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',o,'" ','height="',l,'" ',c,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",F.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(e),"</defs>\n")},createSVGClipPathMarkup:function(t){var e=this.clipPath;return e?(e.clipPathId="CLIPPATH_"+F.Object.__uid++,'<clipPath id="'+e.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(t.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var t=this;return["background","overlay"].map((function(e){var r=t[e+"Color"];if(r&&r.toLive){var n=t[e+"Vpt"],o=t.viewportTransform,object={width:t.width/(n?o[0]:1),height:t.height/(n?o[3]:1)};return r.toSVG(object,{additionalTransform:n?F.util.matrixToSVG(o):""})}})).join("")},createSVGFontFacesMarkup:function(){var t,e,style,r,n,o,i,l,c="",h={},f=F.fontPaths,d=[];for(this._objects.forEach((function t(object){d.push(object),object._objects&&object._objects.forEach(t)})),i=0,l=d.length;i<l;i++)if(e=(t=d[i]).fontFamily,-1!==t.type.indexOf("text")&&!h[e]&&f[e]&&(h[e]=!0,t.styles))for(n in style=t.styles)for(o in r=style[n])!h[e=r[o].fontFamily]&&f[e]&&(h[e]=!0);for(var m in h)c+=["\t\t@font-face {\n","\t\t\tfont-family: '",m,"';\n","\t\t\tsrc: url('",f[m],"');\n","\t\t}\n"].join("");return c&&(c=['\t<style type="text/css">',"<![CDATA[\n",c,"]]>","</style>\n"].join("")),c},_setSVGObjects:function(t,e){var r,i,n,o=this._objects;for(i=0,n=o.length;i<n;i++)(r=o[i]).excludeFromExport||this._setSVGObject(t,r,e)},_setSVGObject:function(t,e,r){t.push(e.toSVG(r))},_setSVGBgOverlayImage:function(t,e,r){this[e]&&!this[e].excludeFromExport&&this[e].toSVG&&t.push(this[e].toSVG(r))},_setSVGBgOverlayColor:function(t,e){var r=this[e+"Color"],n=this.viewportTransform,o=this.width,l=this.height;if(r)if(r.toLive){var c=r.repeat,h=F.util.invertTransform(n),f=this[e+"Vpt"]?F.util.matrixToSVG(h):"";t.push('<rect transform="'+f+" translate(",o/2,",",l/2,')"',' x="',r.offsetX-o/2,'" y="',r.offsetY-l/2,'" ','width="',"repeat-y"===c||"no-repeat"===c?r.source.width:o,'" height="',"repeat-x"===c||"no-repeat"===c?r.source.height:l,'" fill="url(#SVGID_'+r.id+')"',"></rect>\n")}else t.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',r,'"',"></rect>\n")},sendToBack:function(object){if(!object)return this;var i,t,e,n=this._activeObject;if(object===n&&"activeSelection"===object.type)for(i=(e=n._objects).length;i--;)t=e[i],r(this._objects,t),this._objects.unshift(t);else r(this._objects,object),this._objects.unshift(object);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(object){if(!object)return this;var i,t,e,n=this._activeObject;if(object===n&&"activeSelection"===object.type)for(e=n._objects,i=0;i<e.length;i++)t=e[i],r(this._objects,t),this._objects.push(t);else r(this._objects,object),this._objects.push(object);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(object,t){if(!object)return this;var i,e,n,o,l,c=this._activeObject,h=0;if(object===c&&"activeSelection"===object.type)for(l=c._objects,i=0;i<l.length;i++)e=l[i],(n=this._objects.indexOf(e))>0+h&&(o=n-1,r(this._objects,e),this._objects.splice(o,0,e)),h++;else 0!==(n=this._objects.indexOf(object))&&(o=this._findNewLowerIndex(object,n,t),r(this._objects,object),this._objects.splice(o,0,object));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(object,t,e){var r,i;if(e)for(r=t,i=t-1;i>=0;--i){if(object.intersectsWithObject(this._objects[i])||object.isContainedWithinObject(this._objects[i])||this._objects[i].isContainedWithinObject(object)){r=i;break}}else r=t-1;return r},bringForward:function(object,t){if(!object)return this;var i,e,n,o,l,c=this._activeObject,h=0;if(object===c&&"activeSelection"===object.type)for(i=(l=c._objects).length;i--;)e=l[i],(n=this._objects.indexOf(e))<this._objects.length-1-h&&(o=n+1,r(this._objects,e),this._objects.splice(o,0,e)),h++;else(n=this._objects.indexOf(object))!==this._objects.length-1&&(o=this._findNewUpperIndex(object,n,t),r(this._objects,object),this._objects.splice(o,0,object));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(object,t,e){var r,i,n;if(e)for(r=t,i=t+1,n=this._objects.length;i<n;++i){if(object.intersectsWithObject(this._objects[i])||object.isContainedWithinObject(this._objects[i])||this._objects[i].isContainedWithinObject(object)){r=i;break}}else r=t+1;return r},moveTo:function(object,t){return r(this._objects,object),this._objects.splice(t,0,object),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(F.util.cancelAnimFrame
vendor: 19,676 bytes, line 2
2(this.isRendering),this.isRendering=0),this.forEachObject((function(object){object.dispose&&object.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),F.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),F.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),t(F.StaticCanvas.prototype,F.Observable),t(F.StaticCanvas.prototype,F.Collection),t(F.StaticCanvas.prototype,F.DataURLExporter),t(F.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(t){var e=h();if(!e||!e.getContext)return null;var r=e.getContext("2d");return r&&"setLineDash"===t?void 0!==r.setLineDash:null}}),F.StaticCanvas.prototype.toJSON=F.StaticCanvas.prototype.toObject,F.isLikelyNode&&(F.StaticCanvas.prototype.createPNGStream=function(){var t=c(this.lowerCanvasEl);return t&&t.createPNGStream()},F.StaticCanvas.prototype.createJPEGStream=function(t){var e=c(this.lowerCanvasEl);return e&&e.createJPEGStream(t)})}}(),F.BaseBrush=F.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(t){t.strokeStyle=this.color,t.lineWidth=this.width,t.lineCap=this.strokeLineCap,t.miterLimit=this.strokeMiterLimit,t.lineJoin=this.strokeLineJoin,t.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(t){var e=this.canvas.viewportTransform;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},_setShadow:function(){if(this.shadow){var canvas=this.canvas,shadow=this.shadow,t=canvas.contextTop,e=canvas.getZoom();canvas&&canvas._isRetinaScaling()&&(e*=F.devicePixelRatio),t.shadowColor=shadow.color,t.shadowBlur=shadow.blur*e,t.shadowOffsetX=shadow.offsetX*e,t.shadowOffsetY=shadow.offsetY*e}},needsFullRender:function(){return new F.Color(this.color).getAlpha()<1||!!this.shadow},_resetShadow:function(){var t=this.canvas.contextTop;t.shadowColor="",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0},_isOutSideCanvas:function(t){return t.x<0||t.x>this.canvas.getWidth()||t.y<0||t.y>this.canvas.getHeight()}}),F.PencilBrush=F.util.createClass(F.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(canvas){this.canvas=canvas,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(t,e,r){var n=e.midPointFrom(r);return t.quadraticCurveTo(e.x,e.y,n.x,n.y),n},onMouseDown:function(t,e){this.canvas._isMainEvent(e.e)&&(this.drawStraightLine=e.e[this.straightLineKey],this._prepareForDrawing(t),this._captureDrawingPath(t),this._render())},onMouseMove:function(t,e){if(this.canvas._isMainEvent(e.e)&&(this.drawStraightLine=e.e[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(t))&&this._captureDrawingPath(t)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var r=this._points,n=r.length,o=this.canvas.contextTop;this._saveAndTransform(o),this.oldEnd&&(o.beginPath(),o.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(o,r[n-2],r[n-1],!0),o.stroke(),o.restore()}},onMouseUp:function(t){return!this.canvas._isMainEvent(t.e)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(t){var p=new F.Point(t.x,t.y);this._reset(),this._addPoint(p),this.canvas.contextTop.moveTo(p.x,p.y)},_addPoint:function(t){return!(this._points.length>1&&t.eq(this._points[this._points.length-1])||(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(t),0))},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(t){var e=new F.Point(t.x,t.y);return this._addPoint(e)},_render:function(t){var i,e,r=this._points[0],n=this._points[1];if(t=t||this.canvas.contextTop,this._saveAndTransform(t),t.beginPath(),2===this._points.length&&r.x===n.x&&r.y===n.y){var o=this.width/1e3;r=new F.Point(r.x,r.y),n=new F.Point(n.x,n.y),r.x-=o,n.x+=o}for(t.moveTo(r.x,r.y),i=1,e=this._points.length;i<e;i++)this._drawSegment(t,r,n),r=this._points[i],n=this._points[i+1];t.lineTo(r.x,r.y),t.stroke(),t.restore()},convertPointsToSVGPath:function(t){var e=this.width/1e3;return F.util.getSmoothPathFromPoints(t,e)},_isEmptySVGPath:function(t){return"M 0 0 Q 0 0 0 0 L 0 0"===F.util.joinPath(t)},createPath:function(t){var path=new F.Path(t,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,path.shadow=new F.Shadow(this.shadow)),path},decimatePoints:function(t,e){if(t.length<=2)return t;var i,r=this.canvas.getZoom(),n=Math.pow(e/r,2),o=t.length-1,l=t[0],c=[l];for(i=1;i<o-1;i++)Math.pow(l.x-t[i].x,2)+Math.pow(l.y-t[i].y,2)>=n&&(l=t[i],c.push(l));return c.push(t[o]),c},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var t=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(t))this.canvas.requestRenderAll();else{var path=this.createPath(t);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:path}),this.canvas.add(path),this.canvas.requestRenderAll(),path.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:path})}}}),F.CircleBrush=F.util.createClass(F.BaseBrush,{width:10,initialize:function(canvas){this.canvas=canvas,this.points=[]},drawDot:function(t){var e=this.addPoint(t),r=this.canvas.contextTop;this._saveAndTransform(r),this.dot(r,e),r.restore()},dot:function(t,e){t.fillStyle=e.fill,t.beginPath(),t.arc(e.x,e.y,e.radius,0,2*Math.PI,!1),t.closePath(),t.fill()},onMouseDown:function(t){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(t)},_render:function(){var i,t,e=this.canvas.contextTop,r=this.points;for(this._saveAndTransform(e),i=0,t=r.length;i<t;i++)this.dot(e,r[i]);e.restore()},onMouseMove:function(t){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(t)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(t),this._render()):this.drawDot(t))},onMouseUp:function(){var i,t,e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var r=[];for(i=0,t=this.points.length;i<t;i++){var n=this.points[i],circle=new F.Circle({radius:n.radius,left:n.x,top:n.y,originX:"center",originY:"center",fill:n.fill});this.shadow&&(circle.shadow=new F.Shadow(this.shadow)),r.push(circle)}var o=new F.Group(r);o.canvas=this.canvas,this.canvas.fire("before:path:created",{path:o}),this.canvas.add(o),this.canvas.fire("path:created",{path:o}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},addPoint:function(t){var e=new F.Point(t.x,t.y),r=F.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,n=new F.Color(this.color).setAlpha(F.util.getRandomInt(0,100)/100).toRgba();return e.radius=r,e.fill=n,this.points.push(e),e}}),F.SprayBrush=F.util.createClass(F.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(canvas){this.canvas=canvas,this.sprayChunks=[]},onMouseDown:function(t){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(t),this.render(this.sprayChunkPoints)},onMouseMove:function(t){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(t)||(this.addSprayChunk(t),this.render(this.sprayChunkPoints))},onMouseUp:function(){var t=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var e=[],i=0,r=this.sprayChunks.length;i<r;i++)for(var n=this.sprayChunks[i],o=0,l=n.length;o<l;o++){var rect=new F.Rect({width:n[o].width,height:n[o].width,left:n[o].x+1,top:n[o].y+1,originX:"center",originY:"center",fill:this.color});e.push(rect)}this.optimizeOverlapping&&(e=this._getOptimizedRects(e));var c=new F.Group(e);this.shadow&&c.set("shadow",new F.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:c}),this.canvas.add(c),this.canvas.fire("path:created",{path:c}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=t,this.canvas.requestRenderAll()},_getOptimizedRects:function(t){var e,i,r,n={};for(i=0,r=t.length;i<r;i++)n[e=t[i].left+""+t[i].top]||(n[e]=t[i]);var o=[];for(e in n)o.push(n[e]);return o},render:function(t){var i,e,r=this.canvas.contextTop;for(r.fillStyle=this.color,this._saveAndTransform(r),i=0,e=t.length;i<e;i++){var n=t[i];void 0!==n.opacity&&(r.globalAlpha=n.opacity),r.fillRect(n.x,n.y,n.width,n.width)}r.restore()},_render:function(){var i,t,e=this.canvas.contextTop;for(e.fillStyle=this.color,this._saveAndTransform(e),i=0,t=this.sprayChunks.length;i<t;i++)this.render(this.sprayChunks[i]);e.restore()},addSprayChunk:function(t){this.sprayChunkPoints=[];var e,r,n,i,o=this.width/2;for(i=0;i<this.density;i++){e=F.util.getRandomInt(t.x-o,t.x+o),r=F.util.getRandomInt(t.y-o,t.y+o),n=this.dotWidthVariance?F.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var l=new F.Point(e,r);l.width=n,this.randomOpacity&&(l.opacity=F.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(l)}this.sprayChunks.push(this.sprayChunkPoints)}}),F.PatternBrush=F.util.createClass(F.PencilBrush,{getPatternSrc:function(){var t=F.util.createCanvasElement(),e=t.getContext("2d");return t.width=t.height=25,e.fillStyle=this.color,e.beginPath(),e.arc(10,10,10,0,2*Math.PI,!1),e.closePath(),e.fill(),t},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(t){return t.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(t){this.callSuper("_setBrushStyles",t),t.strokeStyle=this.getPattern(t)},createPath:function(t){var path=this.callSuper("createPath",t),e=path._getLeftTopCoords().scalarAdd(path.strokeWidth/2);return path.stroke=new F.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-e.x,offsetY:-e.y}),path}}),function(){var t=F.util.getPointer,e=F.util.degreesToRadians,r=F.util.isTouchEvent;for(var n in F.Canvas=F.util.createClass(F.StaticCanvas,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=F.PencilBrush&&new F.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var object,t,e,r=this.getActiveObjects();if(r.length>0&&!this.preserveObjectStacking){t=[],e=[];for(var i=0,n=this._objects.length;i<n;i++)object=this._objects[i],-1===r.indexOf(object)?t.push(object):e.push(object);r.length>1&&(this._activeObject._objects=e),t.push.apply(t,e)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var t=this.contextContainer;return this.renderCanvas(t,this._chooseObjectsToRender()),this},renderTopLayer:function(t){t.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(t),this.contextTopDirty=!0),t.restore()},renderTop:function(){var t=this.contextTop;return this.clearContext(t),this.renderTopLayer(t),this.fire("after:render"),this},_normalizePointer:function(object,t){var e=object.calcTransformMatrix(),r=F.util.invertTransform(e),n=this.restorePointerVpt(t);return F.util.transformPoint(n,r)},isTargetTransparent:function(t,e,r){if(t.shouldCache()&&t._cacheCanvas&&t!==this._activeObject){var n=this._normalizePointer(t,{x:e,y:r}),o=Math.max(t.cacheTranslationX+n.x*t.zoomX,0),l=Math.max(t.cacheTranslationY+n.y*t.zoomY,0);return F.util.isTransparent(t._cacheContext,Math.round(o),Math.round(l),this.targetFindTolerance)}var c=this.contextCache,h=t.selectionBackgroundColor,f=this.viewportTransform;return t.selectionBackgroundColor="",this.clearContext(c),c.save(),c.transform(f[0],f[1],f[2],f[3],f[4],f[5]),t.render(c),c.restore(),t.selectionBackgroundColor=h,F.util.isTransparent(c,e,r,this.targetFindTolerance)},_isSelectionKeyPressed:function(t){return Array.isArray(this.selectionKey)?!!this.selectionKey.find((function(e){return!0===t[e]})):t[this.selectionKey]},_shouldClearSelection:function(t,e){var r=this.getActiveObjects(),n=this._activeObject;return!e||e&&n&&r.length>1&&-1===r.indexOf(e)&&n!==e&&!this._isSelectionKeyPressed(t)||e&&!e.evented||e&&!e.selectable&&n&&n!==e},_shouldCenterTransform:function(t,e,r){var n;if(t)return"scale"===e||"scaleX"===e||"scaleY"===e||"resizing"===e?n=this.centeredScaling||t.centeredScaling:"rotate"===e&&(n=this.centeredRotation||t.centeredRotation),n?!r:r},_getOriginFromCorner:function(t,e){var r={x:t.originX,y:t.originY};return"ml"===e||"tl"===e||"bl"===e?r.x="right":"mr"!==e&&"tr"!==e&&"br"!==e||(r.x="left"),"tl"===e||"mt"===e||"tr"===e?r.y="bottom":"bl"!==e&&"mb"!==e&&"br"!==e||(r.y="top"),r},_getActionFromCorner:function(t,e,r,n){if(!e||!t)return"drag";var o=n.controls[e];return o.getActionName(r,o,n)},_setupCurrentTransform:function(t,r,n){if(r){var o=this.getPointer(t),l=r.__corner,c=r.controls[l],h=n&&l?c.getActionHandler(t,r,c):F.controlsUtils.dragHandler,f=this._getActionFromCorner(n,l,t,r),d=this._getOriginFromCorner(r,l),m=t[this.centeredKey],y={target:r,action:f,actionHandler:h,corner:l,scaleX:r.scaleX,scaleY:r.scaleY,skewX:r.skewX,skewY:r.skewY,offsetX:o.x-r.left,offsetY:o.y-r.top,originX:d.x,originY:d.y,ex:o.x,ey:o.y,lastX:o.x,lastY:o.y,theta:e(r.angle),width:r.width*r.scaleX,shiftKey:t.shiftKey,altKey:m,original:F.util.saveObjectTransform(r)};this._shouldCenterTransform(r,f,m)&&(y.originX="center",y.originY="center"),y.original.originX=d.x,y.original.originY=d.y,this._currentTransform=y,this._beforeTransform(t)}},setCursor:function(t){this.upperCanvasEl.style.cursor=t},_drawSelection:function(t){var e=this._groupSelector,r=new F.Point(e.ex,e.ey),n=F.util.transformPoint(r,this.viewportTransform),o=new F.Point(e.ex+e.left,e.ey+e.top),l=F.util.transformPoint(o,this.viewportTransform),c=Math.min(n.x,l.x),h=Math.min(n.y,l.y),f=Math.max(n.x,l.x),d=Math.max(n.y,l.y),m=this.selectionLineWidth/2;this.selectionColor&&(t.fillStyle=this.selectionColor,t.fillRect(c,h,f-c,d-h)),this.selectionLineWidth&&this.selectionBorderColor&&(t.lineWidth=this.selectionLineWidth,t.strokeStyle=this.selectionBorderColor,c+=m,h+=m,f-=m,d-=m,F.Object.prototype._setLineDash.call(this,t,this.selectionDashArray),t.strokeRect(c,h,f-c,d-h))},findTarget:function(t,e){if(!this.skipTargetFind){var n,o,l=this.getPointer(t,!0),c=this._activeObject,h=this.getActiveObjects(),f=r(t),d=h.length>1&&!e||1===h.length;if(this.targets=[],d&&c._findTargetCorner(l,f))return c;if(h.length>1&&!e&&c===this._searchPossibleTargets([c],l))return c;if(1===h.length&&c===this._searchPossibleTargets([c],l)){if(!this.preserveObjectStacking)return c;n=c,o=this.targets,this.targets=[]}var m=this._searchPossibleTargets(this._objects,l);return t[this.altSelectionKey]&&m&&n&&m!==n&&(m=n,this.targets=o),m}},_checkTarget:function(t,e,r){if(e&&e.visible&&e.evented&&e.containsPoint(t)){if(!this.perPixelTargetFind&&!e.perPixelTargetFind||e.isEditing)return!0;if(!this.isTargetTransparent(e,r.x,r.y))return!0}},_searchPossibleTargets:function(t,e){for(var r,n,i=t.length;i--;){var o=t[i],l=o.group?this._normalizePointer(o.group,e):e;if(this._checkTarget(l,o,e)){(r=t[i]).subTargetCheck&&r instanceof F.Group&&(n=this._searchPossibleTargets(r._objects,e))&&this.targets.push(n);break}}return r},restorePointerVpt:function(t){return F.util.transformPoint(t,F.util.invertTransform(this.viewportTransform))},getPointer:function(e,r){if(this._absolutePointer&&!r)return this._absolutePointer;if(this._pointer&&r)return this._pointer;var n,o=t(e),l=this.upperCanvasEl,c=l.getBoundingClientRect(),h=c.width||0,f=c.height||0;h&&f||("top"in c&&"bottom"in c&&(f=Math.abs(c.top-c.bottom)),"right"in c&&"left"in c&&(h=Math.abs(c.right-c.left))),this.calcOffset(),o.x=o.x-this._offset.left,o.y=o.y-this._offset.top,r||(o=this.restorePointerVpt(o));var d=this.getRetinaScaling();return 1!==d&&(o.x/=d,o.y/=d),n=0===h||0===f?{width:1,height:1}:{width:l.width/h,height:l.height/f},{x:o.x*n.width,y:o.y*n.height}},_createUpperCanvas:function(){var t=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),e=this.lowerCanvasEl,r=this.upperCanvasEl;r?r.className="":(r=this._createCanvasElement(),this.upperCanvasEl=r),F.util.addClass(r,"upper-canvas "+t),this.wrapperEl.appendChild(r),this._copyCanvasStyle(e,r),this._applyCanvasStyle(r),this.contextTop=r.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=F.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),F.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),F.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(element){var t=this.width||element.width,e=this.height||element.height;F.util.setStyle(element,{position:"absolute",width:t+"px",height:e+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),element.width=t,element.height=e,F.util.makeElementUnselectable(element)},_copyCanvasStyle:function(t,e){e.style.cssText=t.style.cssText},getSelectionContext:function(){return this.contextTop}
vendor: 6,145 bytes, line 2
2,getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var t=this._activeObject;return t?"activeSelection"===t.type&&t._objects?t._objects.slice(0):[t]:[]},_onObjectRemoved:function(t){t===this._activeObject&&(this.fire("before:selection:cleared",{target:t}),this._discardActiveObject(),this.fire("selection:cleared",{target:t}),t.fire("deselected")),t===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",t)},_fireSelectionEvents:function(t,e){var r=!1,n=this.getActiveObjects(),o=[],l=[];t.forEach((function(t){-1===n.indexOf(t)&&(r=!0,t.fire("deselected",{e:e,target:t}),l.push(t))})),n.forEach((function(object){-1===t.indexOf(object)&&(r=!0,object.fire("selected",{e:e,target:object}),o.push(object))})),t.length>0&&n.length>0?r&&this.fire("selection:updated",{e:e,selected:o,deselected:l}):n.length>0?this.fire("selection:created",{e:e,selected:o}):t.length>0&&this.fire("selection:cleared",{e:e,deselected:l})},setActiveObject:function(object,t){var e=this.getActiveObjects();return this._setActiveObject(object,t),this._fireSelectionEvents(e,t),this},_setActiveObject:function(object,t){return this._activeObject!==object&&(!!this._discardActiveObject(t,object)&&(!object.onSelect({e:t})&&(this._activeObject=object,!0)))},_discardActiveObject:function(t,object){var e=this._activeObject;if(e){if(e.onDeselect({e:t,object:object}))return!1;this._activeObject=null}return!0},discardActiveObject:function(t){var e=this.getActiveObjects(),r=this.getActiveObject();return e.length&&this.fire("before:selection:cleared",{target:r,e:t}),this._discardActiveObject(t),this._fireSelectionEvents(e,t),this},dispose:function(){var t=this.wrapperEl;return this.removeListeners(),t.removeChild(this.upperCanvasEl),t.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(element){F.util.cleanUpJsdomNode(this[element]),this[element]=void 0}.bind(this)),t.parentNode&&t.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,F.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(t){var e=this._activeObject;e&&e._renderControls(t)},_toObject:function(t,e,r){var n=this._realizeGroupTransformOnObject(t),object=this.callSuper("_toObject",t,e,r);return this._unwindGroupTransformOnObject(t,n),object},_realizeGroupTransformOnObject:function(t){if(t.group&&"activeSelection"===t.group.type&&this._activeObject===t.group){var e={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach((function(r){e[r]=t[r]})),F.util.addTransformToObject(t,this._activeObject.calcOwnMatrix()),e}return null},_unwindGroupTransformOnObject:function(t,e){e&&t.set(e)},_setSVGObject:function(t,e,r){var n=this._realizeGroupTransformOnObject(e);this.callSuper("_setSVGObject",t,e,r),this._unwindGroupTransformOnObject(e,n)},setViewportTransform:function(t){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),F.StaticCanvas.prototype.setViewportTransform.call(this,t)}}),F.StaticCanvas)"prototype"!==n&&(F.Canvas[n]=F.StaticCanvas[n])}(),function(){var t=F.util.addListener,e=F.util.removeListener,r={passive:!1};function n(t,e){return t.button&&t.button===e-1}F.util.object.extend(F.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(t,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(t,e){var n=this.upperCanvasEl,o=this._getEventPrefix();t(F.window,"resize",this._onResize),t(n,o+"down",this._onMouseDown),t(n,o+"move",this._onMouseMove,r),t(n,o+"out",this._onMouseOut),t(n,o+"enter",this._onMouseEnter),t(n,"wheel",this._onMouseWheel),t(n,"contextmenu",this._onContextMenu),t(n,"dblclick",this._onDoubleClick),t(n,"dragover",this._onDragOver),t(n,"dragenter",this._onDragEnter),t(n,"dragleave",this._onDragLeave),t(n,"drop",this._onDrop),this.enablePointerEvents||t(n,"touchstart",this._onTouchStart,r),"undefined"!=typeof eventjs&&e in eventjs&&(eventjs[e](n,"gesture",this._onGesture),eventjs[e](n,"drag",this._onDrag),eventjs[e](n,"orientation",this._onOrientationChange),eventjs[e](n,"shake",this._onShake),eventjs[e](n,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(e,"remove");var t=this._getEventPrefix();e(F.document,t+"up",this._onMouseUp),e(F.document,"touchend",this._onTouchEnd,r),e(F.document,t+"move",this._onMouseMove,r),e(F.document,"touchmove",this._onMouseMove,r)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(t,e){this.__onTransformGesture&&this.__onTransformGesture(t,e)},_onDrag:function(t,e){this.__onDrag&&this.__onDrag(t,e)},_onMouseWheel:function(t){this.__onMouseWheel(t)},_onMouseOut:function(t){var e=this._hoveredTarget;this.fire("mouse:out",{target:e,e:t}),this._hoveredTarget=null,e&&e.fire("mouseout",{e:t});var r=this;
vendor: 4,517 bytes, line 2
2this._hoveredTargets.forEach((function(n){r.fire("mouse:out",{target:e,e:t}),n&&e.fire("mouseout",{e:t})})),this._hoveredTargets=[],this._iTextInstances&&this._iTextInstances.forEach((function(t){t.isEditing&&t.hiddenTextarea.focus()}))},_onMouseEnter:function(t){this._currentTransform||this.findTarget(t)||(this.fire("mouse:over",{target:null,e:t}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(t,e){this.__onOrientationChange&&this.__onOrientationChange(t,e)},_onShake:function(t,e){this.__onShake&&this.__onShake(t,e)},_onLongPress:function(t,e){this.__onLongPress&&this.__onLongPress(t,e)},_onDragOver:function(t){t.preventDefault();var e=this._simpleEventHandler("dragover",t);this._fireEnterLeaveEvents(e,t)},_onDrop:function(t){return this._simpleEventHandler("drop:before",t),this._simpleEventHandler("drop",t)},_onContextMenu:function(t){return this.stopContextMenu&&(t.stopPropagation(),t.preventDefault()),!1},_onDoubleClick:function(t){this._cacheTransformEventData(t),this._handleEvent(t,"dblclick"),this._resetTransformEventData(t)},getPointerId:function(t){var e=t.changedTouches;return e?e[0]&&e[0].identifier:this.enablePointerEvents?t.pointerId:-1},_isMainEvent:function(t){return!0===t.isPrimary||!1!==t.isPrimary&&("touchend"===t.type&&0===t.touches.length||(!t.changedTouches||t.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(n){n.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(n)),this.__onMouseDown(n),this._resetTransformEventData();var o=this.upperCanvasEl,l=this._getEventPrefix();t(F.document,"touchend",this._onTouchEnd,r),t(F.document,"touchmove",this._onMouseMove,r),e(o,l+"down",this._onMouseDown)},_onMouseDown:function(n){this.__onMouseDown(n),this._resetTransformEventData();var o=this.upperCanvasEl,l=this._getEventPrefix();e(o,l+"move",this._onMouseMove,r),t(F.document,l+"up",this._onMouseUp),t(F.document,l+"move",this._onMouseMove,r)},_onTouchEnd:function(n){if(!(n.touches.length>0)){this.__onMouseUp(n),this._resetTransformEventData(),this.mainTouchId=null;var o=this._getEventPrefix();e(F.document,"touchend",this._onTouchEnd,r),e(F.document,"touchmove",this._onMouseMove,r);var l=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){t(l.upperCanvasEl,o+"down",l._onMouseDown),l._willAddMouseDown=0}),400)}},_onMouseUp:function(n){this.__onMouseUp(n),this._resetTransformEventData();var o=this.upperCanvasEl,l=this._getEventPrefix();this._isMainEvent(n)&&(e(F.document,l+"up",this._onMouseUp),e(F.document,l+"move",this._onMouseMove,r),t(o,l+"move",this._onMouseMove,r))},_onMouseMove:function(t){!this.allowTouchScrolling&&t.preventDefault&&t.preventDefault(),this.__onMouseMove(t)},_onResize:function(){this.calcOffset()},_shouldRender:function(t){var e=this._activeObject;return!!(!!e!=!!t||e&&t&&e!==t)||(e&&e.isEditing,!1)},__onMouseUp:function(t){var e,r=this._currentTransform,o=this._groupSelector,l=!1,c=!o||0===o.left&&0===o.top;if(this._cacheTransformEventData(t),e=this._target,this._handleEvent(t,"up:before"),n(t,3))this.fireRightClick&&this._handleEvent(t,"up",3,c);else{if(n(t,2))return this.fireMiddleClick&&this._handleEvent(t,"up",2,c),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(t);else if(this._isMainEvent(t)){if(r&&(this._finalizeCurrentTransform(t),l=r.actionPerformed),!c){var h=e===this._activeObject;this._maybeGroupObjects(t),l||(l=this._shouldRender(e)||!h&&e===this._activeObject)}var f,d;if(e){if(f=e._findTargetCorner(this.getPointer(t,!0),F.util.isTouchEvent(t)),e.selectable&&e!==this._activeObject&&"up"===e.activeOn)this.setActiveObject(e,t),l=!0;else{var m=e.controls[f],y=m&&m.getMouseUpHandler(t,e,m);y&&y(t,r,(d=this.getPointer(t)).x,d.y)}e.isMoving=!1}if(r&&(r.target!==e||r.corner!==f)){var v=r.target&&r.target.controls[r.corner],_=v&&v.getMouseUpHandler(t,e,m);d=d||this.getPointer(t),_&&_(t,r,d.x,d.y)}this._setCursorFromEvent(t,e),this._handleEvent(t,"up",1,c),this._groupSelector=null,this._currentTransform=null,e&&(e.__corner=0),l?this.requestRenderAll():c||this.renderTop()}}},_simpleEventHandler:function(t,e){var r=this.findTarget(e),n=this.targets,o={e:e,target:r,subTargets:n};if(this.fire(t,o),r&&r.fire(t,o),!n)return r;for(var i=0;i<n.length;i++)n[i].fire(t,o);return r},_handleEvent:function(t,e,button,r){var n=this._target,o=this.targets||[],l={e:t,target:n,subTargets:o,button:button||1,isCl
vendor: 5,065 bytes, line 2
2ick:r||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===e&&(l.currentTarget=this.findTarget(t),l.currentSubTargets=this.targets),this.fire("mouse:"+e,l),n&&n.fire("mouse"+e,l);for(var i=0;i<o.length;i++)o[i].fire("mouse"+e,l)},_finalizeCurrentTransform:function(t){var e=this._currentTransform,r=e.target,n={e:t,target:r,transform:e,action:e.action};r._scaling&&(r._scaling=!1),r.setCoords(),(e.actionPerformed||this.stateful&&r.hasStateChanged())&&this._fire("modified",n)},_onMouseDownInDrawingMode:function(t){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(t).requestRenderAll();var e=this.getPointer(t);this.freeDrawingBrush.onMouseDown(e,{e:t,pointer:e}),this._handleEvent(t,"down")},_onMouseMoveInDrawingMode:function(t){if(this._isCurrentlyDrawing){var e=this.getPointer(t);this.freeDrawingBrush.onMouseMove(e,{e:t,pointer:e})}this.setCursor(this.freeDrawingCursor),this._handleEvent(t,"move")},_onMouseUpInDrawingMode:function(t){var e=this.getPointer(t);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:t,pointer:e}),this._handleEvent(t,"up")},__onMouseDown:function(t){this._cacheTransformEventData(t),this._handleEvent(t,"down:before");var e=this._target;if(n(t,3))this.fireRightClick&&this._handleEvent(t,"down",3);else if(n(t,2))this.fireMiddleClick&&this._handleEvent(t,"down",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(t);else if(this._isMainEvent(t)&&!this._currentTransform){var r=this._pointer;this._previousPointer=r;var o=this._shouldRender(e),l=this._shouldGroup(t,e);if(this._shouldClearSelection(t,e)?this.discardActiveObject(t):l&&(this._handleGrouping(t,e),e=this._activeObject),!this.selection||e&&(e.selectable||e.isEditing||e===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),e){var c=e===this._activeObject;e.selectable&&"down"===e.activeOn&&this.setActiveObject(e,t);var h=e._findTargetCorner(this.getPointer(t,!0),F.util.isTouchEvent(t));if(e.__corner=h,e===this._activeObject&&(h||!l)){this._setupCurrentTransform(t,e,c);var f=e.controls[h],d=(r=this.getPointer(t),f&&f.getMouseDownHandler(t,e,f));d&&d(t,this._currentTransform,r.x,r.y)}}this._handleEvent(t,"down"),(o||l)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(t){this._resetTransformEventData(),this._pointer=this.getPointer(t,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(t)||null},_beforeTransform:function(t){var e=this._currentTransform;this.stateful&&e.target.saveState(),this.fire("before:transform",{e:t,transform:e})},__onMouseMove:function(t){var e,r;if(this._handleEvent(t,"move:before"),this._cacheTransformEventData(t),this.isDrawingMode)this._onMouseMoveInDrawingMode(t);else if(this._isMainEvent(t)){var n=this._groupSelector;n?(r=this._absolutePointer,n.left=r.x-n.ex,n.top=r.y-n.ey,this.renderTop()):this._currentTransform?this._transformObject(t):(e=this.findTarget(t)||null,this._setCursorFromEvent(t,e),this._fireOverOutEvents(e,t)),this._handleEvent(t,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(t,e){var r=this._hoveredTarget,n=this._hoveredTargets,o=this.targets,l=Math.max(n.length,o.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:r,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var i=0;i<l;i++)this.fireSyntheticInOutEvents(o[i],e,{oldTarget:n[i],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=t,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(t,e){var r=this._draggedoverTarget,n=this._hoveredTargets,o=this.targets,l=Math.max(n.length,o.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:r,evtOut:"dragleave",evtIn:"dragenter"});for(var i=0;i<l;i++)this.fireSyntheticInOutEvents(o[i],e,{oldTarget:n[i],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=t},fireSyntheticInOutEvents:function(t,e,r){var n,o,l,c=r.oldTarget,h=c!==t,f=r.canvasEvtIn,d=r.canvasEvtOut;h&&(n={e:e,target:t,previousTarget:c},o={e:e,target:c,nextTarget:t}),l=t&&h,c&&h&&(d&&this.fire(d,o),c.fire(r.evtOut,o)),l&&(f&&this.fire(f,n),t.fire(r.evtIn,n))},__onMouseWheel:function(t){this._cacheTransformEventData(t),this._handleEvent(t,"wheel"),this._resetTransformEventData()},_transformObject:function(t){var e=this.getPointer(t),r=this._currentTransform;r.reset=!1,r.shiftKey=t.shiftKey,r.altKey=t[this.centeredKey],this._performTransformAction(t,r,e),r.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(t,e,r){var n=r.x,o=r.y,l=e.action,c=!1,h=e.actionHandler;h&&(c=h(t,e,n,o)),"drag"===l&&c&&(e.target.isMoving=!0,this.setCursor(e.target.moveCursor||this.moveCursor)),e.actionPerformed=e.actionPerformed||c},_fire:F.controlsUtils.fireEvent,_setCursorFromEvent:function(t,e){if(!e)return this.setCursor(this.defaultCursor),!1;
vendor: 9,249 bytes, line 2
2var r=e.hoverCursor||this.hoverCursor,n=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,o=(!n||!n.contains(e))&&e._findTargetCorner(this.getPointer(t,!0));o?this.setCursor(this.getCornerCursor(o,e,t)):(e.subTargetCheck&&this.targets.concat().reverse().map((function(t){r=t.hoverCursor||r})),this.setCursor(r))},getCornerCursor:function(t,e,r){var n=e.controls[t];return n.cursorStyleHandler(r,n,e)}})}(),S=Math.min,k=Math.max,F.util.object.extend(F.Canvas.prototype,{_shouldGroup:function(t,e){var r=this._activeObject;return r&&this._isSelectionKeyPressed(t)&&e&&e.selectable&&this.selection&&(r!==e||"activeSelection"===r.type)&&!e.onSelect({e:t})},_handleGrouping:function(t,e){var r=this._activeObject;r.__corner||(e!==r||(e=this.findTarget(t,!0))&&e.selectable)&&(r&&"activeSelection"===r.type?this._updateActiveSelection(e,t):this._createActiveSelection(e,t))},_updateActiveSelection:function(t,e){var r=this._activeObject,n=r._objects.slice(0);r.contains(t)?(r.removeWithUpdate(t),this._hoveredTarget=t,this._hoveredTargets=this.targets.concat(),1===r.size()&&this._setActiveObject(r.item(0),e)):(r.addWithUpdate(t),this._hoveredTarget=r,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(n,e)},_createActiveSelection:function(t,e){var r=this.getActiveObjects(),n=this._createGroup(t);this._hoveredTarget=n,this._setActiveObject(n,e),this._fireSelectionEvents(r,e)},_createGroup:function(t){var e=this._objects,r=e.indexOf(this._activeObject)<e.indexOf(t)?[this._activeObject,t]:[t,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new F.ActiveSelection(r,{canvas:this})},_groupSelectedObjects:function(t){var e,r=this._collectObjects(t);1===r.length?this.setActiveObject(r[0],t):r.length>1&&(e=new F.ActiveSelection(r.reverse(),{canvas:this}),this.setActiveObject(e,t))},_collectObjects:function(t){for(var e,r=[],n=this._groupSelector.ex,o=this._groupSelector.ey,l=n+this._groupSelector.left,c=o+this._groupSelector.top,h=new F.Point(S(n,l),S(o,c)),f=new F.Point(k(n,l),k(o,c)),d=!this.selectionFullyContained,m=n===l&&o===c,i=this._objects.length;i--&&!((e=this._objects[i])&&e.selectable&&e.visible&&(d&&e.intersectsWithRect(h,f,!0)||e.isContainedWithinRect(h,f,!0)||d&&e.containsPoint(h,null,!0)||d&&e.containsPoint(f,null,!0))&&(r.push(e),m)););return r.length>1&&(r=r.filter((function(object){return!object.onSelect({e:t})}))),r},_maybeGroupObjects:function(t){this.selection&&this._groupSelector&&this._groupSelectedObjects(t),this.setCursor(this.defaultCursor),this._groupSelector=null}}),F.util.object.extend(F.StaticCanvas.prototype,{toDataURL:function(t){t||(t={});var e=t.format||"png",r=t.quality||1,n=(t.multiplier||1)*(t.enableRetinaScaling?this.getRetinaScaling():1),o=this.toCanvasElement(n,t);return F.util.toDataURL(o,e,r)},toCanvasElement:function(t,e){t=t||1;var r=((e=e||{}).width||this.width)*t,n=(e.height||this.height)*t,o=this.getZoom(),l=this.width,c=this.height,h=o*t,f=this.viewportTransform,d=(f[4]-(e.left||0))*t,m=(f[5]-(e.top||0))*t,y=this.interactive,v=[h,0,0,h,d,m],_=this.enableRetinaScaling,w=F.util.createCanvasElement(),x=this.contextTop;return w.width=r,w.height=n,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=v,this.width=r,this.height=n,this.calcViewportBoundaries(),this.renderCanvas(w.getContext("2d"),this._objects),this.viewportTransform=f,this.width=l,this.height=c,this.calcViewportBoundaries(),this.interactive=y,this.enableRetinaScaling=_,this.contextTop=x,w}}),F.util.object.extend(F.StaticCanvas.prototype,{loadFromJSON:function(t,e,r){if(t){var n="string"==typeof t?JSON.parse(t):F.util.object.clone(t),o=this,l=n.clipPath,c=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete n.clipPath,this._enlivenObjects(n.objects,(function(t){o.clear(),o._setBgOverlay(n,(function(){l?o._enlivenObjects([l],(function(r){o.clipPath=r[0],o.__setupCanvas.call(o,n,t,c,e)})):o.__setupCanvas.call(o,n,t,c,e)}))}),r),this}},__setupCanvas:function(t,e,r,n){var o=this;e.forEach((function(t,e){o.insertAt(t,e)})),this.renderOnAddRemove=r,delete t.objects,delete t.backgroundImage,delete t.overlayImage,delete t.background,delete t.overlay,this._setOptions(t),this.renderAll(),n&&n()},_setBgOverlay:function(t,e){var r={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(t.backgroundImage||t.overlayImage||t.background||t.overlay){var n=function(){r.backgroundImage&&r.overlayImage&&r.backgroundColor&&r.overlayColor&&e&&e()};this.__setBgOverlay("backgroundImage",t.backgroundImage,r,n),this.__setBgOverlay("overlayImage",t.overlayImage,r,n),this.__setBgOverlay("backgroundColor",t.background,r,n),this.__setBgOverlay("overlayColor",t.overlay,r,n)}else e&&e()},__setBgOverlay:function(t,e,r,n){var o=this;if(!e)return r[t]=!0,void(n&&n());"backgroundImage"===t||"overlayImage"===t?F.util.enlivenObjects([e],(function(e){o[t]=e[0],r[t]=!0,n&&n()})):this["set"+F.util.string.capitalize(t,!0)](e,(function(){r[t]=!0,n&&n()}))},_enlivenObjects:function(t,e,r){t&&0!==t.length?F.util.enlivenObjects(t,(function(t){e&&e(t)}),null,r):e&&e([])},_toDataURL:function(t,e){this.clone((function(r){e(r.toDataURL(t))}))},_toDataURLWithMultiplier:function(t,e,r){this.clone((function(n){r(n.toDataURLWithMultiplier(t,e))}))},clone:function(t,e){var data=JSON.stringify(this.toJSON(e));this.cloneWithoutData((function(e){e.loadFromJSON(data,(function(){t&&t(e)}))}))},cloneWithoutData:function(t){var e=F.util.createCanvasElement();e.width=this.width,e.height=this.height;var r=new F.Canvas(e);this.backgroundImage?(r.setBackgroundImage(this.backgroundImage.src,(function(){r.renderAll(),t&&t(r)})),r.backgroundImageOpacity=this.backgroundImageOpacity,r.backgroundImageStretch=this.backgroundImageStretch):t&&t(r)}}),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.object.extend,n=e.util.object.clone,o=e.util.toFixed,l=e.util.string.capitalize,c=e.util.degreesToRadians,h=!e.isLikelyNode;e.Object||(e.Object=e.util.createClass(e.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:h,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(t){t&&this.setOptions(t)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=e.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(t){var r=e.perfLimitSizeTotal,n=t.width,o=t.height,l=e.maxCacheSideLimit,c=e.minCacheSideLimit;if(n<=l&&o<=l&&n*o<=r)return n<c&&(t.width=c),o<c&&(t.height=c),t;var h=n/o,f=e.util.limitDimsByArea(h,r),d=e.util.capValue,m=d(c,f.x,l),y=d(c,f.y,l);return n>m&&(t.zoomX/=n/m,t.width=m,t.capped=!0),o>y&&(t.zoomY/=o/y,t.height=y,t.capped=!0),t},_getCacheCanvasDimensions:function(){var t=this.getTotalObjectScaling(),e=this._getTransformedDimensions(0,0),r=e.x*t.scaleX/this.scaleX,n=e.y*t.scaleY/this.scaleY;return{width:r+2,height:n+2,zoomX:t.scaleX,zoomY:t.scaleY,x:r,y:n}},_updateCacheCanvas:function(){var t=this.canvas;if(this.noScaleCache&&t&&t._currentTransform){var r=t._currentTransform.target,n=t._currentTransform.action;if(this===r&&n.slice&&"scale"===n.slice(0,5))return!1}var o,l,canvas=this._cacheCanvas,c=this._limitCacheSize(this._getCacheCanvasDimensions()),h=e.minCacheSideLimit,f=c.width,d=c.height,m=c.zoomX,y=c.zoomY,v=f!==this.cacheWidth||d!==this.cacheHeight,_=this.zoomX!==m||this.zoomY!==y,w=v||_,x=0,C=0,S=!1;if(v){var k=this._cacheCanvas.width,T=this._cacheCanvas.height,D=f>k||d>T;S=D||(f<.9*k||d<.9*T)&&k>h&&T>
vendor: 17,352 bytes, line 2
2h,D&&!c.capped&&(f>h||d>h)&&(x=.1*f,C=.1*d)}return this instanceof e.Text&&this.path&&(w=!0,S=!0,x+=this.getHeightOfLine(0)*this.zoomX,C+=this.getHeightOfLine(0)*this.zoomY),!!w&&(S?(canvas.width=Math.ceil(f+x),canvas.height=Math.ceil(d+C)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,canvas.width,canvas.height)),o=c.x/2,l=c.y/2,this.cacheTranslationX=Math.round(canvas.width/2-o)+o,this.cacheTranslationY=Math.round(canvas.height/2-l)+l,this.cacheWidth=f,this.cacheHeight=d,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(m,y),this.zoomX=m,this.zoomY=y,!0)},setOptions:function(t){this._setOptions(t),this._initGradient(t.fill,"fill"),this._initGradient(t.stroke,"stroke"),this._initPattern(t.fill,"fill"),this._initPattern(t.stroke,"stroke")},transform:function(t){var e=this.group&&!this.group._transformDone||this.group&&this.canvas&&t===this.canvas.contextTop,r=this.calcTransformMatrix(!e);t.transform(r[0],r[1],r[2],r[3],r[4],r[5])},toObject:function(t){var r=e.Object.NUM_FRACTION_DIGITS,object={type:this.type,version:e.version,originX:this.originX,originY:this.originY,left:o(this.left,r),top:o(this.top,r),width:o(this.width,r),height:o(this.height,r),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:o(this.strokeWidth,r),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:o(this.strokeMiterLimit,r),scaleX:o(this.scaleX,r),scaleY:o(this.scaleY,r),angle:o(this.angle,r),flipX:this.flipX,flipY:this.flipY,opacity:o(this.opacity,r),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:o(this.skewX,r),skewY:o(this.skewY,r)};return this.clipPath&&!this.clipPath.excludeFromExport&&(object.clipPath=this.clipPath.toObject(t),object.clipPath.inverted=this.clipPath.inverted,object.clipPath.absolutePositioned=this.clipPath.absolutePositioned),e.util.populateWithProperties(this,object,t),this.includeDefaultValues||(object=this._removeDefaultValues(object)),object},toDatalessObject:function(t){return this.toObject(t)},_removeDefaultValues:function(object){var t=e.util.getKlass(object.type).prototype;return t.stateProperties.forEach((function(e){"left"!==e&&"top"!==e&&(object[e]===t[e]&&delete object[e],Array.isArray(object[e])&&Array.isArray(t[e])&&0===object[e].length&&0===t[e].length&&delete object[e])})),object},toString:function(){return"#<fabric."+l(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var t=e.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(t.scaleX),scaleY:Math.abs(t.scaleY)}},getTotalObjectScaling:function(){var t=this.getObjectScaling(),e=t.scaleX,r=t.scaleY;if(this.canvas){var n=this.canvas.getZoom(),o=this.canvas.getRetinaScaling();e*=n*o,r*=n*o}return{scaleX:e,scaleY:r}},getObjectOpacity:function(){var t=this.opacity;return this.group&&(t*=this.group.getObjectOpacity()),t},_set:function(t,r){var n="scaleX"===t||"scaleY"===t,o=this[t]!==r,l=!1;return n&&(r=this._constrainScale(r)),"scaleX"===t&&r<0?(this.flipX=!this.flipX,r*=-1):"scaleY"===t&&r<0?(this.flipY=!this.flipY,r*=-1):"shadow"!==t||!r||r instanceof e.Shadow?"dirty"===t&&this.group&&this.group.set("dirty",r):r=new e.Shadow(r),this[t]=r,o&&(l=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(t)>-1?(this.dirty=!0,l&&this.group.set("dirty",!0)):l&&this.stateProperties.indexOf(t)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:e.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(t){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(t.save(),this._setupCompositeOperation(t),this.drawSelectionBackground(t),this.transform(t),this._setOpacity(t),this._setShadow(t,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(t)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(t),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),t.restore())},renderCache:function(t){t=t||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,t.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!=typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(t,r){if(t.save(),r.inverted?t.globalCompositeOperation="destination-out":t.globalCompositeOperation="destination-in",r.absolutePositioned){var n=e.util.invertTransform(this.calcTransformMatrix());t.transform(n[0],n[1],n[2],n[3],n[4],n[5])}r.transform(t),t.scale(1/r.zoomX,1/r.zoomY),t.drawImage(r._cacheCanvas,-r.cacheTranslationX,-r.cacheTranslationY),t.restore()},drawObject:function(t,e){var r=this.fill,n=this.stroke;e?(this.fill="black",this.stroke="",this._setClippingProperties(t)):this._renderBackground(t),this._render(t),this._drawClipPath(t,this.clipPath),this.fill=r,this.stroke=n},_drawClipPath:function(t,e){e&&(e.canvas=this.canvas,e.shouldCache(),e._transformDone=!0,e.renderCache({forClipping:!0}),this.drawClipPathOnCache(t,e))},drawCacheOnCanvas:function(t){t.scale(1/this.zoomX,1/this.zoomY),t.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(t){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!t&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!t){var e=this.cacheWidth/this.zoomX,r=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-e/2,-r/2,e,r)}return!0}return!1},_renderBackground:function(t){if(this.backgroundColor){var e=this._getNonTransformedDimensions();t.fillStyle=this.backgroundColor,t.fillRect(-e.x/2,-e.y/2,e.x,e.y),this._removeShadow(t)}},_setOpacity:function(t){this.group&&!this.group._transformDone?t.globalAlpha=this.getObjectOpacity():t.globalAlpha*=this.opacity},_setStrokeStyles:function(t,e){var r=e.stroke;r&&(t.lineWidth=e.strokeWidth,t.lineCap=e.strokeLineCap,t.lineDashOffset=e.strokeDashOffset,t.lineJoin=e.strokeLineJoin,t.miterLimit=e.strokeMiterLimit,r.toLive?"percentage"===r.gradientUnits||r.gradientTransform||r.patternTransform?this._applyPatternForTransformedGradient(t,r):(t.strokeStyle=r.toLive(t,this),this._applyPatternGradientTransform(t,r)):t.strokeStyle=e.stroke)},_setFillStyles:function(t,e){var r=e.fill;r&&(r.toLive?(t.fillStyle=r.toLive(t,this),this._applyPatternGradientTransform(t,e.fill)):t.fillStyle=r)},_setClippingProperties:function(t){t.globalAlpha=1,t.strokeStyle="transparent",t.fillStyle="#000000"},_setLineDash:function(t,e){e&&0!==e.length&&(1&e.length&&e.push.apply(e,e),t.setLineDash(e))},_renderControls:function(t,r){var n,o,l,h=this.getViewportTransform(),f=this.calcTransformMatrix();o=void 0!==(r=r||{}).hasBorders?r.hasBorders:this.hasBorders,l=void 0!==r.hasControls?r.hasControls:this.hasControls,f=e.util.multiplyTransformMatrices(h,f),n=e.util.qrDecompose(f),t.save(),t.translate(n.translateX,n.translateY),t.lineWidth=1*this.borderScaleFactor,this.group||(t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(n.angle-=180),t.rotate(c(this.group?n.angle:this.angle)),r.forActiveSelection||this.group?o&&this.drawBordersInGroup(t,n,r):o&&this.drawBorders(t,r),l&&this.drawControls(t,r),t.restore()},_setShadow:function(t){if(this.shadow){var r,shadow=this.shadow,canvas=this.canvas,n=canvas&&canvas.viewportTransform[0]||1,o=canvas&&canvas.viewportTransform[3]||1;r=shadow.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),canvas&&canvas._isRetinaScaling()&&(n*=e.devicePixelRatio,o*=e.devicePixelRatio),t.shadowColor=shadow.color,t.shadowBlur=shadow.blur*e.browserShadowBlurConstant*(n+o)*(r.scaleX+r.scaleY)/4,t.shadowOffsetX=shadow.offsetX*n*r.scaleX,t.shadowOffsetY=shadow.offsetY*o*r.scaleY}},_removeShadow:function(t){this.shadow&&(t.shadowColor="",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0)},_applyPatternGradientTransform:function(t,e){if(!e||!e.toLive)return{offsetX:0,offsetY:0};var r=e.gradientTransform||e.patternTransform,n=-this.width/2+e.offsetX||0,o=-this.height/2+e.offsetY||0;return"percentage"===e.gradientUnits?t.transform(this.width,0,0,this.height,n,o):t.transform(1,0,0,1,n,o),r&&t.transform(r[0],r[1],r[2],r[3],r[4],r[5]),{offsetX:n,offsetY:o}},_renderPaintInOrder:function(t){"stroke"===this.paintFirst?(this._renderStroke(t),this._renderFill(t)):(this._renderFill(t),this._renderStroke(t))},_render:function(){},_renderFill:function(t){this.fill&&(t.save(),this._setFillStyles(t,this),"evenodd"===this.fillRule?t.fill("evenodd"):t.fill(),t.restore())},_renderStroke:function(t){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(t),t.save(),this.strokeUniform&&this.group){var e=this.getObjectScaling();t.scale(1/e.scaleX,1/e.scaleY)}else this.strokeUniform&&t.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(t,this.strokeDashArray),this._setStrokeStyles(t,this),t.stroke(),t.restore()}},_applyPatternForTransformedGradient:function(t,r){var n,o=this._limitCacheSize(this._getCacheCanvasDimensions()),l=e.util.createCanvasElement(),c=this.canvas.getRetinaScaling(),h=o.x/this.scaleX/c,f=o.y/this.scaleY/c;l.width=h,l.height=f,(n=l.getContext("2d")).beginPath(),n.moveTo(0,0),n.lineTo(h,0),n.lineTo(h,f),n.lineTo(0,f),n.closePath(),n.translate(h/2,f/2),n.scale(o.zoomX/this.scaleX/c,o.zoomY/this.scaleY/c),this._applyPatternGradientTransform(n,r),n.fillStyle=r.toLive(t),n.fill(),t.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),t.scale(c*this.scaleX/o.zoomX,c*this.scaleY/o.zoomY),t.strokeStyle=n.createPattern(l,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var t=e.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",t.scaleX),this.set("scaleY",t.scaleY),this.angle=t.angle,this.skewX=t.skewX,this.skewY=0}},_removeTransformMatrix:function(t){var r=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),r=e.util.transformPoint(r,this.transformMatrix)),this.transformMatrix=null,t&&(this.scaleX*=t.scaleX,this.scaleY*=t.scaleY,this.cropX=t.cropX,this.cropY=t.cropY,r.x+=t.offsetLeft,r.y+=t.offsetTop,this.width=t.width,this.height=t.height),this.setPositionByOrigin(r,"center","center")},clone:function(t,r){var n=this.toObject(r);this.constructor.fromObject?this.constructor.fromObject(n,t):e.Object._fromObject("Object",n,t)},cloneAsImage:function(t,r){var n=this.toCanvasElement(r);return t&&t(new e.Image(n)),this},toCanvasElement:function(t){t||(t={});var r=e.util,n=r.saveObjectTransform(this),o=this.group,l=this.shadow,c=Math.abs,h=(t.multiplier||1)*(t.enableRetinaScaling?e.devicePixelRatio:1);delete this.group,t.withoutTransform&&r.resetObjectTransform(this),t.withoutShadow&&(this.shadow=null);var f,d,m,y,v=e.util.createCanvasElement(),_=this.getBoundingRect(!0,!0),shadow=this.shadow,w={x:0,y:0};shadow&&(d=shadow.blur,f=shadow.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),w.x=2*Math.round(c(shadow.offsetX)+d)*c(f.scaleX),w.y=2*Math.round(c(shadow.offsetY)+d)*c(f.scaleY)),m=_.width+w.x,y=_.height+w.y,v.width=Math.ceil(m),v.height=Math.ceil(y);var canvas=new e.StaticCanvas(v,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===t.format&&(canvas.backgroundColor="#fff"),this.setPositionByOrigin(new e.Point(canvas.width/2,canvas.height/2),"center","center");var x=this.canvas;canvas.add(this);var C=canvas.toCanvasElement(h||1,t);return this.shadow=l,this.set("canvas",x),o&&(this.group=o),this.set(n).setCoords(),canvas._objects=[],canvas.dispose(),canvas=null,C},toDataURL:function(t){return t||(t={}),e.util.toDataURL(this.toCanvasElement(t),t.format||"png",t.quality||1)},isType:function(t){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===t},complexity:function(){return 1},toJSON:function(t){return this.toObject(t)},rotate:function(t){var e=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return e&&this._setOriginToCenter(),this.set("angle",t),e&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(t,r){r=r||this.canvas.getPointer(t);var n=new e.Point(r.x,r.y),o=this._getLeftTopCoords();return this.angle&&(n=e.util.rotatePoint(n,o,c(-this.angle))),{x:n.x-o.x,y:n.y-o.y}},_setupCompositeOperation:function(t){this.globalCompositeOperation&&(t.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){e.runningAnimations&&e.runningAnimations.cancelByTarget(this)}}),e.util.createAccessors&&e.util.createAccessors(e.Object),r(e.Object.prototype,e.Observable),e.Object.NUM_FRACTION_DIGITS=2,e.Object.ENLIVEN_PROPS=["clipPath"],e.Object._fromObject=function(t,object,r,o){var l=e[t];object=n(object,!0),e.util.enlivenPatterns([object.fill,object.stroke],(function(t){void 0!==t[0]&&(object.fill=t[0]),void 0!==t[1]&&(object.stroke=t[1]),e.util.enlivenObjectEnlivables(object,object,(function(){var t=o?new l(object[o],object):new l(object);r&&r(t)}))}))},e.Object.__uid=0)}(e),T=F.util.degreesToRadians,D={left:-.5,center:0,right:.5},E={top:-.5,center:0,bottom:.5},F.util.object.extend(F.Object.prototype,{translateToGivenOrigin:function(t,e,r,n,o){var l,c,h,f=t.x,d=t.y;return"string"==typeof e?e=D[e]:e-=.5,"string"==typeof n?n=D[n]:n-=.5,"string"==typeof r?r=E[r]:r-=.5,"string"==typeof o?o=E[o]:o-=.5,c=o-r,((l=n-e)||c)&&(h=this._getTransformedDimensions(),f=t.x+l*h.x,d=t.y+c*h.y),new F.Point(f,d)},translateToCenterPoint:function(t,e,r){var p=this.translateToGivenOrigin(t,e,r,"center","center");return this.angle?F.util.rotatePoint(p,t,T(this.angle)):p},translateToOriginPoint:function(t,e,r){var p=this.translateToGivenOrigin(t,"center","center",e,r);return this.angle?F.util.rotatePoint(p,t,T(this.angle)):p},getCenterPoint:function(){var t=new F.Point(this.left,this.top);return this.translateToCenterPoint(t,this.originX,this.originY)},getPointByOrigin:function(t,e){var r=this.getCenterPoint();return this.translateToOriginPoint(r,t,e)},toLocalPoint:function(t,e,r){var p,n,o=this.getCenterPoint();return p=void 0!==e&&void 0!==r?this.translateToGivenOrigin(o,"center","center",e,r):new F.Point(this.left,this.top),n=new F.Point(t.x,t.y),this.angle&&(n=F.util.rotatePoint(n,o,-T(this.angle))),n.subtractEquals(p)},setPositionByOrigin:function(t,e,r){var n=this.translateToCenterPoint(t,e,r),o=this.translateToOriginPoint(n,this.originX,this.originY);this.set("left",o.x),this.set("top",o.y)},adjustPosition:function(t){var e,r,n=T(this.angle),o=this.getScaledWidth(),l=F.util.cos(n)*o,c=F.util.sin(n)*o;e="string"==typeof this.originX?D[this.originX]:this.originX-.5,r="string"==typeof t?D[t]:t-.5,this.left+=l*(r-e),this.top+=c*(r-e),this.setCoords(),this.originX=t},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var t=this.getCenterPoint();this.originX="center",this.originY="center",this.left=t.x,this.top=t.y},_resetOrigin:function(){var t=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=t.x,this.top=t.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}}),function(){var t=F.util,e=t.degreesToRadians,r=t.multiplyTransformMatrices,n=t.transformPoint;
vendor: 10,232 bytes, line 2
2t.object.extend(F.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(t,e){return e?t?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),t?this.aCoords:this.lineCoords)},getCoords:function(t,e){return r=this._getCoords(t,e),[new F.Point(r.tl.x,r.tl.y),new F.Point(r.tr.x,r.tr.y),new F.Point(r.br.x,r.br.y),new F.Point(r.bl.x,r.bl.y)];var r},intersectsWithRect:function(t,e,r,n){var o=this.getCoords(r,n);return"Intersection"===F.Intersection.intersectPolygonRectangle(o,t,e).status},intersectsWithObject:function(t,e,r){return"Intersection"===F.Intersection.intersectPolygonPolygon(this.getCoords(e,r),t.getCoords(e,r)).status||t.isContainedWithinObject(this,e,r)||this.isContainedWithinObject(t,e,r)},isContainedWithinObject:function(t,e,r){for(var n=this.getCoords(e,r),o=e?t.aCoords:t.lineCoords,i=0,l=t._getImageLines(o);i<4;i++)if(!t.containsPoint(n[i],l))return!1;return!0},isContainedWithinRect:function(t,e,r,n){var o=this.getBoundingRect(r,n);return o.left>=t.x&&o.left+o.width<=e.x&&o.top>=t.y&&o.top+o.height<=e.y},containsPoint:function(t,e,r,n){var o=this._getCoords(r,n),l=(e=e||this._getImageLines(o),this._findCrossPoints(t,e));return 0!==l&&l%2==1},isOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,r=this.canvas.vptCoords.br;return!!this.getCoords(!0,t).some((function(t){return t.x<=r.x&&t.x>=e.x&&t.y<=r.y&&t.y>=e.y}))||(!!this.intersectsWithRect(e,r,!0,t)||this._containsCenterOfCanvas(e,r,t))},_containsCenterOfCanvas:function(t,e,r){var n={x:(t.x+e.x)/2,y:(t.y+e.y)/2};return!!this.containsPoint(n,null,!0,r)},isPartiallyOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,r=this.canvas.vptCoords.br;return!!this.intersectsWithRect(e,r,!0,t)||this.getCoords(!0,t).every((function(t){return(t.x>=r.x||t.x<=e.x)&&(t.y>=r.y||t.y<=e.y)}))&&this._containsCenterOfCanvas(e,r,t)},_getImageLines:function(t){return{topline:{o:t.tl,d:t.tr},rightline:{o:t.tr,d:t.br},bottomline:{o:t.br,d:t.bl},leftline:{o:t.bl,d:t.tl}}},_findCrossPoints:function(t,e){var r,n,o,l=0;for(var c in e)if(!((o=e[c]).o.y<t.y&&o.d.y<t.y||o.o.y>=t.y&&o.d.y>=t.y||(o.o.x===o.d.x&&o.o.x>=t.x?n=o.o.x:(0,r=(o.d.y-o.o.y)/(o.d.x-o.o.x),n=-(t.y-0*t.x-(o.o.y-r*o.o.x))/(0-r)),n>=t.x&&(l+=1),2!==l)))break;return l},getBoundingRect:function(e,r){var n=this.getCoords(e,r);return t.makeBoundingBoxFromPoints(n)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(t){return Math.abs(t)<this.minScaleLimit?t<0?-this.minScaleLimit:this.minScaleLimit:0===t?1e-4:t},scale:function(t){return this._set("scaleX",t),this._set("scaleY",t),this.setCoords()},scaleToWidth:function(t,e){var r=this.getBoundingRect(e).width/this.getScaledWidth();return this.scale(t/this.width/r)},scaleToHeight:function(t,e){var r=this.getBoundingRect(e).height/this.getScaledHeight();return this.scale(t/this.height/r)},calcLineCoords:function(){var r=this.getViewportTransform(),o=this.padding,l=e(this.angle),c=t.cos(l)*o,h=t.sin(l)*o,f=c+h,d=c-h,m=this.calcACoords(),y={tl:n(m.tl,r),tr:n(m.tr,r),bl:n(m.bl,r),br:n(m.br,r)};return o&&(y.tl.x-=d,y.tl.y-=f,y.tr.x+=f,y.tr.y-=d,y.bl.x-=f,y.bl.y+=d,y.br.x+=d,y.br.y+=f),y},calcOCoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),n=this.getViewportTransform(),o=r(n,e),l=r(o,t),c=(l=r(l,[1/n[0],0,0,1/n[3],0,0]),this._calculateCurrentDimensions()),h={};return this.forEachControl((function(t,e,r){h[e]=t.positionHandler(c,l,r)})),h},calcACoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),o=r(e,t),l=this._getTransformedDimensions(),c=l.x/2,h=l.y/2;return{tl:n({x:-c,y:-h},o),tr:n({x:c,y:-h},o),bl:n({x:-c,y:h},o),br:n({x:c,y:h},o)}},setCoords:function(t){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),t||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return t.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var t=this.getCenterPoint();return[1,0,0,1,t.x,t.y]},transformMatrixKey:function(t){var e="_",r="";return!t&&this.group&&(r=this.group.transformMatrixKey(t)+e),r+this.top+e+this.left+e+this.scaleX+e+this.scaleY+e+this.skewX+e+this.skewY+e+this.angle+e+this.originX+e+this.originY+e+this.width+e+this.height+e+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(t){var e=this.calcOwnMatrix();if(t||!this.group)return e;var n=this.transformMatrixKey(t),o=this.matrixCache||(this.matrixCache={});return o.key===n?o.value:(this.group&&(e=r(this.group.calcTransformMatrix(!1),e)),o.key=n,o.value=e,e)},calcOwnMatrix:function(){var e=this.transformMatrixKey(!0),r=this.ownMatrixCache||(this.ownMatrixCache={});if(r.key===e)return r.value;var n=this._calcTranslateMatrix(),o={angle:this.angle,translateX:n[4],translateY:n[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return r.key=e,r.value=t.composeMatrix(o),r.value},_getNonTransformedDimensions:function(){var t=this.strokeWidth;return{x:this.width+t,y:this.height+t}},_getTransformedDimensions:function(e,r){void 0===e&&(e=this.skewX),void 0===r&&(r=this.skewY);var n,o,l,c=0===e&&0===r;if(this.strokeUniform?(o=this.width,l=this.height):(o=(n=this._getNonTransformedDimensions()).x,l=n.y),c)return this._finalizeDimensions(o*this.scaleX,l*this.scaleY);var h=t.sizeAfterTransform(o,l,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:e,skewY:r});return this._finalizeDimensions(h.x,h.y)},_finalizeDimensions:function(t,e){return this.strokeUniform?{x:t+this.strokeWidth,y:e+this.strokeWidth}:{x:t,y:e}},_calculateCurrentDimensions:function(){var t=this.getViewportTransform(),e=this._getTransformedDimensions();return n(e,t,!0).scalarAdd(2*this.padding)}})}(),F.util.object.extend(F.Object.prototype,{sendToBack:function(){return this.group?F.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?F.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(t){return this.group?F.StaticCanvas.prototype.sendBackwards.call(this.group,this,t):this.canvas&&this.canvas.sendBackwards(this,t),this},bringForward:function(t){return this.group?F.StaticCanvas.prototype.bringForward.call(this.group,this,t):this.canvas&&this.canvas.bringForward(this,t),this},moveTo:function(t){return this.group&&"activeSelection"!==this.group.type?F.StaticCanvas.prototype.moveTo.call(this.group,this,t):this.canvas&&this.canvas.moveTo(this,t),this}}),function(){function t(t,e){if(e){if(e.toLive)return t+": url(#SVGID_"+e.id+"); ";var r=new F.Color(e),n=t+": "+r.toRgb()+"; ",o=r.getAlpha();return 1!==o&&(n+=t+"-opacity: "+o.toString()+"; "),n}return t+": none; "}var e=F.util.toFixed;F.util.object.extend(F.Object.prototype,{getSvgStyles:function(e){var r=this.fillRule?this.fillRule:"nonzero",n=this.strokeWidth?this.strokeWidth:"0",o=this.strokeDashArray?this.strokeDashArray.join(" "):"none",l=this.strokeDashOffset?this.strokeDashOffset:"0",c=this.strokeLineCap?this.strokeLineCap:"butt",h=this.strokeLineJoin?this.strokeLineJoin:"miter",f=this.strokeMiterLimit?this.strokeMiterLimit:"4",d=void 0!==this.opacity?this.opacity:"1",m=this.visible?"":" visibility: hidden;",filter=e?"":this.getSvgFilter(),y=t("fill",this.fill);return[t("stroke",this.stroke),"stroke-width: ",n,"; ","stroke-dasharray: ",o,"; ","stroke-linecap: ",c,"; ","stroke-dashoffset: ",l,"; ","stroke-linejoin: ",h,"; ","stroke-miterlimit: ",f,"; ",y,"fill-rule: ",r,"; ","opacity: ",d,";",filter,m].join("")},getSvgSpanStyles:function(style,e){var r="; ",n=style.fontFamily?"font-family: "+(-1===style.fontFamily.indexOf("'")&&-1===style.fontFamily.indexOf('"')?"'"+style.fontFamily+"'":style.fontFamily)+r:"",o=style.strokeWidth?"stroke-width: "+style.strokeWidth+r:"",l=(n=n,style.fontSize?"font-size: "+style.fontSize+"px"+r:""),c=style.fontStyle?"font-style: "+style.fontStyle+r:"",h=style.fontWeight?"font-weight: "+style.fontWeight+r:"",f=style.fill?t("fill",style.fill):"",d=style.stroke?t("stroke",style.stroke):"",m=this.getSvgTextDecoration(style);return m&&(m="text-decoration: "+m+r),[d,o,n,l,c,h,m,f,style.deltaY?"baseline-shift: "+-style.deltaY+"; ":"",e?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(style){return["overline","underline","line-through"].filter((function(t){return style[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(t,e){var r=t?this.calcTransformMatrix():this.calcOwnMatrix();return'transform="'+F.util.matrixToSVG(r)+(e||"")+'" '},_setSVGBg:function(t){if(this.backgroundColor){var r=F.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',e(-this.width/2,r),'" y="',e(-this.height/2,r),'" width="',e(this.width,r),'" height="',e(this.height,r),'"></rect>\n')}},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(t),{reviver:t})},toClipPathSVG:function(t){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(t),{reviver:t})},_createBaseClipPathSVGMarkup:function(t,e){var r=(e=e||{}).reviver,n=e.additionalTransform||"",o=[this.getSvgTransform(!0,n),this.getSvgCommons()].join(""),l=t.indexOf("COMMON_PARTS");return t[l]=o,r?r(t.join("")):t.join("")},_createBaseSVGMarkup:function(t,e){var r,n,o=(e=e||{}).noStyle,l=e.reviver,c=o?"":'style="'+this.getSvgStyles()+'" ',h=e.withShadow?'style="'+this.getSvgFilter()+'" ':"",f=this.clipPath,d=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",m=f&&f.absolutePositioned,y=this.stroke,v=this.fill,shadow=this.shadow,_=[],w=t.indexOf("COMMON_PARTS"),x=e.additionalTransform;return f&&(f.clipPathId="CLIPPATH_"+F.Object.__uid++,n='<clipPath id="'+f.clipPathId+'" >\n'+f.toClipPathSVG(l)+"</clipPath>
2\n"),m&&_.push("<g ",h,this.getSvgCommons()," >\n"),_.push("<g ",this.getSvgTransform(!1),m?"":h+this.getSvgCommons()," >\n"),r=[c,d,o?"":this.addPaintOrder()," ",x?'transform="'+x+'" ':""].join(""),t[w]=r,v&&v.toLive&&_.push(v.toSVG(this)),y&&y.toLive&&_.push(y.toSVG(this)),shadow&&_.push(shadow.toSVG(this)),f&&_.push(n),_.push(t.join("")),_.push("</g>\n"),m&&_.push("</g>\n"),l?l(_.join("")):_.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var t=F.util.object.extend,e="stateProperties";function r(e,r,n){var o={};n.forEach((function(t){o[t]=e[t]})),t(e[r],o,!0)}function n(t,e,r){if(t===e)return!0;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var i=0,o=t.length;i<o;i++)if(!n(t[i],e[i]))return!1;return!0}if(t&&"object"==typeof t){var l,c=Object.keys(t);if(!e||"object"!=typeof e||!r&&c.length!==Object.keys(e).length)return!1;for(i=0,o=c.length;i<o;i++)if("canvas"!==(l=c[i])&&"group"!==l&&!n(t[l],e[l]))return!1;return!0}}F.util.object.extend(F.Object.prototype,{hasStateChanged:function(t){var r="_"+(t=t||e);return Object.keys(this[r]).length<this[t].length||!n(this[r],this,!0)},saveState:function(t){var n=t&&t.propertySet||e,o="_"+n;return this[o]?(r(this,o,this[n]),t&&t.stateProperties&&r(this,o,t.stateProperties),this):this.setupState(t)},setupState:function(t){var r=(t=t||{}).propertySet||e;return t.propertySet=r,this["_"+r]={},this.saveState(t),this}})}(),function(){var t=F.util.degreesToRadians;F.util.object.extend(F.Object.prototype,{_findTargetCorner:function(t,e){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var r,n,i,o=t.x,l=t.y,c=Object.keys(this.oCoords),h=c.length-1;for(this.__corner=0;h>=0;h--)if(i=c[h],this.isControlVisible(i)&&(n=this._getImageLines(e?this.oCoords[i].touchCorner:this.oCoords[i].corner),0!==(r=this._findCrossPoints({x:o,y:l},n))&&r%2==1))return this.__corner=i,i;return!1},forEachControl:function(t){for(var i in this.controls)t(this.controls[i],i,this)},_setCornerCoords:function(){var t=this.oCoords;for(var e in t){var r=this.controls[e];t[e].corner=r.calcCornerCoords(this.angle,this.cornerSize,t[e].x,t[e].y,!1),t[e].touchCorner=r.calcCornerCoords(this.angle,this.touchCornerSize,t[e].x,t[e].y,!0)}},drawSelectionBackground:function(e){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;e.save();var r=this.getCenterPoint(),n=this._calculateCurrentDimensions(),o=this.canvas.viewportTransform;return e.translate(r.x,r.y),e.scale(1/o[0],1/o[3]),e.rotate(t(this.angle)),e.fillStyle=this.selectionBackgroundColor,e.fillRect(-n.x/2,-n.y/2,n.x,n.y),e.restore(),this},drawBorders:function(t,e){e=e||{};var r=this._calculateCurrentDimensions(),n=this.borderScaleFactor,o=r.x+n,l=r.y+n,c=void 0!==e.hasControls?e.hasControls:this.hasControls,h=!1;return t.save(),t.strokeStyle=e.borderColor||this.borderColor,this._setLineDash(t,e.borderDashArray||this.borderDashArray),t.strokeRect(-o/2,-l/2,o,l),c&&(t.beginPath(),this.forEachControl((function(e,r,n){e.withConnection&&e.getVisibility(n,r)&&(h=!0,t.moveTo(e.x*o,e.y*l),t.lineTo(e.x*o+e.offsetX,e.y*l+e.offsetY))})),h&&t.stroke()),t.restore(),this},drawBordersInGroup:function(t,e,r){r=r||{};var n=F.util.sizeAfterTransform(this.width,this.height,e),o=this.strokeWidth,l=this.strokeUniform,c=this.borderScaleFactor,h=n.x+o*(l?this.canvas.getZoom():e.scaleX)+c,f=n.y+o*(l?this.canvas.getZoom():e.scaleY)+c;return t.save(),this._setLineDash(t,r.borderDashArray||this.borderDashArray),t.strokeStyle=r.borderColor||this.borderColor,t.strokeRect(-h/2,-f/2,h,f),t.restore(),this},drawControls:function(t,e){e=e||{},t.save();var r,p,n=this.canvas.getRetinaScaling();return t.setTransform(n,0,0,n,0,0),t.strokeStyle=t.fillStyle=e.cornerColor||this.cornerColor,this.transparentCorners||(t.strokeStyle=e.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(t,e.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(r=this.group.calcTransformMatrix()),this.forEachControl((function(n,o,l){p=l.oCoords[o],n.getVisibility(l,o)&&(r&&(p=F.util.transformPoint(p,r)),n.render(t,p.x,p.y,e,l))}
vendor: 4,946 bytes, line 2
2)),t.restore(),this},isControlVisible:function(t){return this.controls[t]&&this.controls[t].getVisibility(this,t)},setControlVisible:function(t,e){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[t]=e,this},setControlsVisibility:function(t){for(var p in t||(t={}),t)this.setControlVisible(p,t[p]);return this},onDeselect:function(){},onSelect:function(){}})}(),F.util.object.extend(F.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(object,t){var e=function(){},r=(t=t||{}).onComplete||e,n=t.onChange||e,o=this;return F.util.animate({target:this,startValue:object.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(t){object.set("left",t),o.requestRenderAll(),n()},onComplete:function(){object.setCoords(),r()}})},fxCenterObjectV:function(object,t){var e=function(){},r=(t=t||{}).onComplete||e,n=t.onChange||e,o=this;return F.util.animate({target:this,startValue:object.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(t){object.set("top",t),o.requestRenderAll(),n()},onComplete:function(){object.setCoords(),r()}})},fxRemove:function(object,t){var e=function(){},r=(t=t||{}).onComplete||e,n=t.onChange||e,o=this;return F.util.animate({target:this,startValue:object.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){object.set("opacity",t),o.requestRenderAll(),n()},onComplete:function(){o.remove(object),r()}})}}),F.util.object.extend(F.Object.prototype,{animate:function(){if(arguments[0]&&"object"==typeof arguments[0]){var t,e,r=[],n=[];for(t in arguments[0])r.push(t);for(var i=0,o=r.length;i<o;i++)t=r[i],e=i!==o-1,n.push(this._animate(t,arguments[0][t],arguments[1],e));return n}return this._animate.apply(this,arguments)},_animate:function(t,e,r,n){var o,l=this;e=e.toString(),r=r?F.util.object.clone(r):{},~t.indexOf(".")&&(o=t.split("."));var c=l.colorProperties.indexOf(t)>-1||o&&l.colorProperties.indexOf(o[1])>-1,h=o?this.get(o[0])[o[1]]:this.get(t);"from"in r||(r.from=h),c||(e=~e.indexOf("=")?h+parseFloat(e.replace("=","")):parseFloat(e));var f={target:this,startValue:r.from,endValue:e,byValue:r.by,easing:r.easing,duration:r.duration,abort:r.abort&&function(t,e,n){return r.abort.call(l,t,e,n)},onChange:function(e,c,h){o?l[o[0]][o[1]]=e:l.set(t,e),n||r.onChange&&r.onChange(e,c,h)},onComplete:function(t,e,o){n||(l.setCoords(),r.onComplete&&r.onComplete(t,e,o))}};return c?F.util.animateColor(f.startValue,f.endValue,f.duration,f):F.util.animate(f)}}),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.object.extend,n=e.util.object.clone,o={x1:1,x2:1,y1:1,y2:1};function l(t,e){var r=t.origin,n=t.axis1,o=t.axis2,l=t.dimension,c=e.nearest,h=e.center,f=e.farthest;return function(){switch(this.get(r)){case c:return Math.min(this.get(n),this.get(o));case h:return Math.min(this.get(n),this.get(o))+.5*this.get(l);case f:return Math.max(this.get(n),this.get(o))}}}e.Line?e.warn("fabric.Line is already defined"):(e.Line=e.util.createClass(e.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:e.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(t,e){t||(t=[0,0,0,0]),this.callSuper("initialize",e),this.set("x1",t[0]),this.set("y1",t[1]),this.set("x2",t[2]),this.set("y2",t[3]),this._setWidthHeight(e)},_setWidthHeight:function(t){t||(t={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in t?t.left:this._getLeftToOriginX(),this.top="top"in t?t.top:this._getTopToOriginY()},_set:function(t,e){return this.callSuper("_set",t,e),void 0!==o[t]&&this._setWidthHeight(),this},_getLeftToOriginX:l({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:l({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(t){t.beginPath();var p=this.calcLinePoints();t.moveTo(p.x1,p.y1),t.lineTo(p.x2,p.y2),t.lineWidth=this.strokeWidth;var e=t.strokeStyle;t.strokeStyle=this.stroke||t.fillStyle,this.stroke&&this._renderStroke(t),t.strokeStyle=e},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(t){return r(this.callSuper("toObject",t),this.calcLinePoints())},_getNonTransformedDimensions:function(){var t=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(t.y-=this.strokeWidth),0===this.height&&(t.x-=this.strokeWidth)),t},calcLinePoints:function(){var t=this.x1<=this.x2?-1:1,e=this.y1<=this.y2?-1:1,r=t*this.width*.5,n=e*this.height*.5;return{x1:r,x2:t*this.width*-.5,y1:n,y2:e*this.height*-.5}},_toSVG:function(){var p=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',p.x1,'" y1="',p.y1,'" x2="',p.x2,'" y2="',p.y2,'" />\n']}}),e.Line.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),e.Line.fromElement=function(element,t,n){n=n||{};
vendor: 4,658 bytes, line 2
2var o=e.parseAttributes(element,e.Line.ATTRIBUTE_NAMES),l=[o.x1||0,o.y1||0,o.x2||0,o.y2||0];t(new e.Line(l,r(o,n)))},e.Line.fromObject=function(object,t){var r=n(object,!0);r.points=[object.x1,object.y1,object.x2,object.y2],e.Object._fromObject("Line",r,(function(e){delete e.points,t&&t(e)}),"points")})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.degreesToRadians;e.Circle?e.warn("fabric.Circle is already defined."):(e.Circle=e.util.createClass(e.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:e.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(t,e){return this.callSuper("_set",t,e),"radius"===t&&this.setRadius(e),this},toObject:function(t){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(t))},_toSVG:function(){var t,n=(this.endAngle-this.startAngle)%360;if(0===n)t=["<circle ","COMMON_PARTS",'cx="0" cy="0" ','r="',this.radius,'" />\n'];else{var o=r(this.startAngle),l=r(this.endAngle),c=this.radius;t=['<path d="M '+e.util.cos(o)*c+" "+e.util.sin(o)*c," A "+c+" "+c," 0 ",+(n>180?"1":"0")+" 1"," "+e.util.cos(l)*c+" "+e.util.sin(l)*c,'" ',"COMMON_PARTS"," />\n"]}return t},_render:function(t){t.beginPath(),t.arc(0,0,this.radius,r(this.startAngle),r(this.endAngle),!1),this._renderPaintInOrder(t)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(t){return this.radius=t,this.set("width",2*t).set("height",2*t)}}),e.Circle.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),e.Circle.fromElement=function(element,t){var r,n=e.parseAttributes(element,e.Circle.ATTRIBUTE_NAMES);if(!("radius"in(r=n)&&r.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,t(new e.Circle(n))},e.Circle.fromObject=function(object,t){e.Object._fromObject("Circle",object,t)})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});e.Triangle?e.warn("fabric.Triangle is already defined"):(e.Triangle=e.util.createClass(e.Object,{type:"triangle",width:100,height:100,_render:function(t){var e=this.width/2,r=this.height/2;t.beginPath(),t.moveTo(-e,r),t.lineTo(0,-r),t.lineTo(e,r),t.closePath(),this._renderPaintInOrder(t)},_toSVG:function(){var t=this.width/2,e=this.height/2;return["<polygon ","COMMON_PARTS",'points="',[-t+" "+e,"0 "+-e,t+" "+e].join(","),'" />']}}),e.Triangle.fromObject=function(object,t){return e.Object._fromObject("Triangle",object,t)})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=2*Math.PI;e.Ellipse?e.warn("fabric.Ellipse is already defined."):(e.Ellipse=e.util.createClass(e.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(t){this.callSuper("initialize",t),this.set("rx",t&&t.rx||0),this.set("ry",t&&t.ry||0)},_set:function(t,e){switch(this.callSuper("_set",t,e),t){case"rx":this.rx=e,this.set("width",2*e);break;case"ry":this.ry=e,this.set("height",2*e)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(t){return this.callSuper("toObject",["rx","ry"].concat(t))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(t){t.beginPath(),t.save(),t.transform(1,0,0,this.ry/this.rx,0,0),t.arc(0,0,this.rx,0,r,!1),t.restore(),this._renderPaintInOrder(t)}}),e.Ellipse.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),e.Ellipse.fromElement=function(element,t){var r=e.parseAttributes(element,e.Ellipse.ATTRIBUTE_NAMES);r.left=(r.left||0)-r.rx,r.top=(r.top||0)-r.ry,t(new e.Ellipse(r))},e.Ellipse.fromObject=function(object,t){e.Object._fromObject("Ellipse",object,t)})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.object.extend;e.Rect?e.warn("fabric.Rect is already defined"):(e.Rect=e.util.createClass(e.Object,{stateProperties:e.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(t){this.callSuper("initialize",t),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(t){var e=this.rx?Math.min(this.rx,this.width/2):0,r=this.ry?Math.min(this.ry,this.height/2):0,n=this.width,o=this.height,l=-this.width/2,c=-this.height/2,h=0!==e||0!==r,f=.4477152502;t.beginPath(),t.moveTo(l+e,c),t.lineTo(l+n-e,c),h&&t.bezierCurveTo(l+n-f*e,c,l
vendor: 2,529 bytes, line 2
2+n,c+f*r,l+n,c+r),t.lineTo(l+n,c+o-r),h&&t.bezierCurveTo(l+n,c+o-f*r,l+n-f*e,c+o,l+n-e,c+o),t.lineTo(l+e,c+o),h&&t.bezierCurveTo(l+f*e,c+o,l,c+o-f*r,l,c+o-r),t.lineTo(l,c+r),h&&t.bezierCurveTo(l,c+f*r,l+f*e,c,l+e,c),t.closePath(),this._renderPaintInOrder(t)},toObject:function(t){return this.callSuper("toObject",["rx","ry"].concat(t))},_toSVG:function(){return["<rect ","COMMON_PARTS",'x="',-this.width/2,'" y="',-this.height/2,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),e.Rect.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),e.Rect.fromElement=function(element,t,n){if(!element)return t(null);n=n||{};var o=e.parseAttributes(element,e.Rect.ATTRIBUTE_NAMES);o.left=o.left||0,o.top=o.top||0,o.height=o.height||0,o.width=o.width||0;var rect=new e.Rect(r(n?e.util.object.clone(n):{},o));rect.visible=rect.visible&&rect.width>0&&rect.height>0,t(rect)},e.Rect.fromObject=function(object,t){return e.Object._fromObject("Rect",object,t)})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.object.extend,n=e.util.array.min,o=e.util.array.max,l=e.util.toFixed,c=e.util.projectStrokeOnPoints;e.Polyline?e.warn("fabric.Polyline is already defined"):(e.Polyline=e.util.createClass(e.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:e.Object.prototype.cacheProperties.concat("points"),initialize:function(t,e){e=e||{},this.points=t||[],this.callSuper("initialize",e),this._setPositionDimensions(e)},_projectStrokeOnPoints:function(){return c(this.points,this,!0)},_setPositionDimensions:function(t){var e,r=this._calcDimensions(t),n=this.exactBoundingBox?this.strokeWidth:0;this.width=r.width-n,this.height=r.height-n,t.fromSVG||(e=this.translateToGivenOrigin({x:r.left-this.strokeWidth/2+n/2,y:r.top-this.strokeWidth/2+n/2},"left","top",this.originX,this.originY)),void 0===t.left&&(this.left=t.fromSVG?r.left:e.x),void 0===t.top&&(this.top=t.fromSVG?r.top:e.y),this.pathOffset={x:r.left+this.width/2+n/2,y:r.top+this.height/2+n/2}},_calcDimensions:function(){var t=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,e=n(t,"x")||0,r=n(t,"y")||0;return{left:e,top:r,width:(o(t,"x")||0)-e,height:(o(t,"y")||0)-r}},toObject:function(t){return r(this.callSuper("toObject",t),{points:this.points.concat()})},_toSVG:function(){for(var t=[],r=this.pathOffset.x,n=this.pathOffset.y,o=e.Object.NUM_FRACTION_DIGITS,i=0,c=this.points.length;i<c;i++)t.push(l(this.points[i].x-r,o),",",l(this.points[i].y-n,o)," ");
vendor: 4,118 bytes, line 2
2return["<"+this.type+" ","COMMON_PARTS",'points="',t.join(""),'" />\n']},commonRender:function(t){var e,r=this.points.length,n=this.pathOffset.x,o=this.pathOffset.y;if(!r||isNaN(this.points[r-1].y))return!1;t.beginPath(),t.moveTo(this.points[0].x-n,this.points[0].y-o);for(var i=0;i<r;i++)e=this.points[i],t.lineTo(e.x-n,e.y-o);return!0},_render:function(t){this.commonRender(t)&&this._renderPaintInOrder(t)},complexity:function(){return this.get("points").length}}),e.Polyline.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polyline.fromElementGenerator=function(t){return function(element,n,o){if(!element)return n(null);o||(o={});var l=e.parsePointsAttribute(element.getAttribute("points")),c=e.parseAttributes(element,e[t].ATTRIBUTE_NAMES);c.fromSVG=!0,n(new e[t](l,r(c,o)))}},e.Polyline.fromElement=e.Polyline.fromElementGenerator("Polyline"),e.Polyline.fromObject=function(object,t){return e.Object._fromObject("Polyline",object,t,"points")})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.projectStrokeOnPoints;e.Polygon?e.warn("fabric.Polygon is already defined"):(e.Polygon=e.util.createClass(e.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return r(this.points,this)},_render:function(t){this.commonRender(t)&&(t.closePath(),this._renderPaintInOrder(t))}}),e.Polygon.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polygon.fromElement=e.Polyline.fromElementGenerator("Polygon"),e.Polygon.fromObject=function(object,t){e.Object._fromObject("Polygon",object,t,"points")})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.array.min,n=e.util.array.max,o=e.util.object.extend,l=e.util.object.clone,c=e.util.toFixed;e.Path?e.warn("fabric.Path is already defined"):(e.Path=e.util.createClass(e.Object,{type:"path",path:null,cacheProperties:e.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:e.Object.prototype.stateProperties.concat("path"),initialize:function(path,t){delete(t=l(t||{})).path,this.callSuper("initialize",t),this._setPath(path||[],t)},_setPath:function(path,t){this.path=e.util.makePathSimpler(Array.isArray(path)?path:e.util.parsePath(path)),e.Polyline.prototype._setPositionDimensions.call(this,t||{})},_renderPathCommands:function(t){var e,r=0,n=0,o=0,l=0,c=0,h=0,f=-this.pathOffset.x,d=-this.pathOffset.y;t.beginPath();for(var i=0,m=this.path.length;i<m;++i)switch((e=this.path[i])[0]){case"L":o=e[1],l=e[2],t.lineTo(o+f,l+d);break;case"M":r=o=e[1],n=l=e[2],t.moveTo(o+f,l+d);break;case"C":o=e[5],l=e[6],c=e[3],h=e[4],t.bezierCurveTo(e[1]+f,e[2]+d,c+f,h+d,o+f,l+d);break;case"Q":t.quadraticCurveTo(e[1]+f,e[2]+d,e[3]+f,e[4]+d),o=e[3],l=e[4],c=e[1],h=e[2];break;case"z":case"Z":o=r,l=n,t.closePath()}},_render:function(t){this._renderPathCommands(t),this._renderPaintInOrder(t)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(t){return o(this.callSuper("toObject",t),{path:this.path.map((function(t){return t.slice()}))})},toDatalessObject:function(t){var e=this.toObject(["sourcePath"].concat(t));return e.sourcePath&&delete e.path,e},_toSVG:function(){return["<path ","COMMON_PARTS",'d="',e.util.joinPath(this.path),'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var t=e.Object.NUM_FRACTION_DIGITS;return" translate("+c(-this.pathOffset.x,t)+", "+c(-this.pathOffset.y,t)+")"},toClipPathSVG:function(t){var e=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},toSVG:function(t){var e=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var t,o,l=[],c=[],h=0,f=0,d=0,m=0,i=0,y=this.path.length;i<y;++i){switch((t=this.path[i])[0]){case"L":d=t[1],m=t[2],o=[];break;case"M":h=d=t[1],f=m=t[2],o=[];break;case"C":o=e.util.getBoundsOfCurve(d,m,t[1],t[2],t[3],t[4],t[5],t[6]),d=t[5],m=t[6];break;case"Q":o=e.util.getBoundsOfCurve(d,m,t[1],t[2],t[1],t[2],t[3],t[4]),d=t[3],m=t[4];break;case"z":case"Z":d=h,m=f}
vendor: 4,096 bytes, line 2
2o.forEach((function(t){l.push(t.x),c.push(t.y)})),l.push(d),c.push(m)}var v=r(l)||0,_=r(c)||0;return{left:v,top:_,width:(n(l)||0)-v,height:(n(c)||0)-_}}}),e.Path.fromObject=function(object,t){if("string"==typeof object.sourcePath){var r=object.sourcePath;e.loadSVGFromURL(r,(function(e){var path=e[0];path.setOptions(object),t&&t(path)}))}else e.Object._fromObject("Path",object,t,"path")},e.Path.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(["d"]),e.Path.fromElement=function(element,t,r){var n=e.parseAttributes(element,e.Path.ATTRIBUTE_NAMES);n.fromSVG=!0,t(new e.Path(n.d,o(n,r)))})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.array.min,n=e.util.array.max;e.Group||(e.Group=e.util.createClass(e.Object,e.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(t,e,r){e=e||{},this._objects=[],r&&this.callSuper("initialize",e),this._objects=t||[];for(var i=this._objects.length;i--;)this._objects[i].group=this;if(r)this._updateObjectsACoords();else{var n=e&&e.centerPoint;void 0!==e.originX&&(this.originX=e.originX),void 0!==e.originY&&(this.originY=e.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete e.centerPoint,this.callSuper("initialize",e)}this.setCoords()},_updateObjectsACoords:function(){for(var i=this._objects.length;i--;)this._objects[i].setCoords(true)},_updateObjectsCoords:function(t){t=t||this.getCenterPoint();for(var i=this._objects.length;i--;)this._updateObjectCoords(this._objects[i],t)},_updateObjectCoords:function(object,t){var e=object.left,r=object.top;object.set({left:e-t.x,top:r-t.y}),object.group=this,object.setCoords(!0)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(object){var t=!!this.group;return this._restoreObjectsState(),e.util.resetObjectTransform(this),object&&(t&&e.util.removeTransformFromObject(object,this.group.calcTransformMatrix()),this._objects.push(object),object.group=this,object._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,t?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(object){return this._restoreObjectsState(),e.util.resetObjectTransform(this),this.remove(object),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(object){this.dirty=!0,object.group=this,object._set("canvas",this.canvas)},_onObjectRemoved:function(object){this.dirty=!0,delete object.group},_set:function(t,r){var i=this._objects.length;if(this.useSetOnGroup)for(;i--;)this._objects[i].setOnGroup(t,r);if("canvas"===t)for(;i--;)this._objects[i]._set(t,r);e.Object.prototype._set.call(this,t,r)},toObject:function(t){var r=this.includeDefaultValues,n=this._objects.filter((function(t){return!t.excludeFromExport})).map((function(e){var n=e.includeDefaultValues;e.includeDefaultValues=r;var o=e.toObject(t);return e.includeDefaultValues=n,o})),o=e.Object.prototype.toObject.call(this,t);return o.objects=n,o},toDatalessObject:function(t){var r,n=this.sourcePath;if(n)r=n;else{var o=this.includeDefaultValues;r=this._objects.map((function(e){var r=e.includeDefaultValues;e.includeDefaultValues=o;var n=e.toDatalessObject(t);return e.includeDefaultValues=r,n}))}var l=e.Object.prototype.toDatalessObject.call(this,t);return l.objects=r,l},render:function(t){this._transformDone=!0,this.callSuper("render",t),this._transformDone=!1},shouldCache:function(){var t=e.Object.prototype.shouldCache.call(this);if(t)for(var i=0,r=this._objects.length;i<r;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return t},willDrawShadow:function(){if(e.Object.prototype.willDrawShadow.call(this))return!0;for(var i=0,t=this._objects.length;i<t;i++)if(this._objects[i].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(t){for(var i=0,e=this._objects.length;i<e;i++)this._objects[i].render(t);this._drawClipPath(t,this.clipPath)},isCacheDirty:function(t){if(this.callSuper("isCacheDirty",t))return!0;
vendor: 5,664 bytes, line 2
2if(!this.statefullCache)return!1;for(var i=0,e=this._objects.length;i<e;i++)if(this._objects[i].isCacheDirty(!0)){if(this._cacheCanvas){var r=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-r/2,-n/2,r,n)}return!0}return!1},_restoreObjectsState:function(){var t=this.calcOwnMatrix();return this._objects.forEach((function(object){e.util.addTransformToObject(object,t),delete object.group,object.setCoords()})),this},destroy:function(){return this._objects.forEach((function(object){object.set("dirty",!0)})),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject((function(object){object.dispose&&object.dispose()})),this._objects=[]},toActiveSelection:function(){if(this.canvas){var t=this._objects,canvas=this.canvas;this._objects=[];var r=this.toObject();delete r.objects;var n=new e.ActiveSelection([]);return n.set(r),n.type="activeSelection",canvas.remove(this),t.forEach((function(object){object.group=n,object.dirty=!0,canvas.add(object)})),n.canvas=canvas,n._objects=t,canvas._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(object){object.setCoords(true)})),this},_calcBounds:function(t){for(var e,r,n,o,l=[],c=[],h=["tr","br","bl","tl"],i=0,f=this._objects.length,d=h.length;i<f;++i){for(n=(e=this._objects[i]).calcACoords(),o=0;o<d;o++)r=h[o],l.push(n[r].x),c.push(n[r].y);e.aCoords=n}this._getBounds(l,c,t)},_getBounds:function(t,o,l){var c=new e.Point(r(t),r(o)),h=new e.Point(n(t),n(o)),f=c.y||0,d=c.x||0,m=h.x-c.x||0,y=h.y-c.y||0;this.width=m,this.height=y,l||this.setPositionByOrigin({x:d,y:f},"left","top")},_toSVG:function(t){for(var e=["<g ","COMMON_PARTS"," >\n"],i=0,r=this._objects.length;i<r;i++)e.push("\t\t",this._objects[i].toSVG(t));return e.push("</g>\n"),e},getSvgStyles:function(){var t=void 0!==this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",e=this.visible?"":" visibility: hidden;";return[t,this.getSvgFilter(),e].join("")},toClipPathSVG:function(t){for(var e=[],i=0,r=this._objects.length;i<r;i++)e.push("\t",this._objects[i].toClipPathSVG(t));return this._createBaseClipPathSVGMarkup(e,{reviver:t})}}),e.Group.fromObject=function(object,t){var r=object.objects,n=e.util.object.clone(object,!0);delete n.objects,"string"!=typeof r?e.util.enlivenObjects(r,(function(r){var n=e.util.object.clone(object,!0);delete n.objects,e.util.enlivenObjectEnlivables(object,n,(function(){t&&t(new e.Group(r,n,!0))}))})):e.loadSVGFromURL(r,(function(o){var l=e.util.groupSVGElements(o,object,r);l.set(n),t&&t(l)}))})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});e.ActiveSelection||(e.ActiveSelection=e.util.createClass(e.Group,{type:"activeSelection",initialize:function(t,r){r=r||{},this._objects=t||[];for(var i=this._objects.length;i--;)this._objects[i].group=this;r.originX&&(this.originX=r.originX),r.originY&&(this.originY=r.originY),this._calcBounds(),this._updateObjectsCoords(),e.Object.prototype.initialize.call(this,r),this.setCoords()},toGroup:function(){var t=this._objects.concat();this._objects=[];var r=e.Object.prototype.toObject.call(this),n=new e.Group([]);if(delete r.type,n.set(r),t.forEach((function(object){object.canvas.remove(object),object.group=n})),n._objects=t,!this.canvas)return n;var canvas=this.canvas;return canvas.add(n),canvas._activeObject=n,n.setCoords(),n},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(t,e,r){t.save(),t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",t,e),void 0===(r=r||{}).hasControls&&(r.hasControls=!1),r.forActiveSelection=!0;for(var i=0,n=this._objects.length;i<n;i++)this._objects[i]._renderControls(t,r);t.restore()}}),e.ActiveSelection.fromObject=function(object,t){e.util.enlivenObjects(object.objects,(function(r){delete object.objects,t&&t(new e.ActiveSelection(r,object,!0))}))})}(e),function(t){"use strict";var e=F.util.object.extend;t.fabric||(t.fabric={}),t.fabric.Image?F.warn("fabric.Image is already defined."):(F.Image=F.util.createClass(F.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:F.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:F.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(element,t){t||(t={}),this.filters=[],this.cacheKey="texture"+F.Object.__uid++,this.callSuper("initialize",t),this._initElement(element,t)},getElement:function(){return this._element||{}},setElement:function(element,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=element,this._originalElement=element,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(t){var e=F.filterBackend;e&&e.evictCachesForKey&&e.evictCachesForKey(t)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(element){F.util.cleanUpJsdomNode(this[element]),this[element]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var element=this.getElement();
vendor: 4,488 bytes, line 2
2return{width:element.naturalWidth||element.width,height:element.naturalHeight||element.height}},_stroke:function(t){if(this.stroke&&0!==this.strokeWidth){var e=this.width/2,r=this.height/2;t.beginPath(),t.moveTo(-e,-r),t.lineTo(e,-r),t.lineTo(e,r),t.lineTo(-e,r),t.lineTo(-e,-r),t.closePath()}},toObject:function(t){var r=[];this.filters.forEach((function(t){t&&r.push(t.toObject())}));var object=e(this.callSuper("toObject",["cropX","cropY"].concat(t)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:r});return this.resizeFilter&&(object.resizeFilter=this.resizeFilter.toObject()),object},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var t,e=[],r=[],element=this._element,n=-this.width/2,o=-this.height/2,l="",c="";if(!element)return[];if(this.hasCrop()){var h=F.Object.__uid++;e.push('<clipPath id="imageCrop_'+h+'">\n','\t<rect x="'+n+'" y="'+o+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),l=' clip-path="url(#imageCrop_'+h+')" '}if(this.imageSmoothing||(c='" image-rendering="optimizeSpeed'),r.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',n-this.cropX,'" y="',o-this.cropY,'" width="',element.width||element.naturalWidth,'" height="',element.height||element.height,c,'"',l,"></image>\n"),this.stroke||this.strokeDashArray){var f=this.fill;this.fill=null,t=["\t<rect ",'x="',n,'" y="',o,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=f}return e="fill"!==this.paintFirst?e.concat(t,r):e.concat(r,t)},getSrc:function(t){var element=t?this._element:this._originalElement;return element?element.toDataURL?element.toDataURL():this.srcFromAttribute?element.getAttribute("src"):element.src:this.src||""},setSrc:function(t,e,r){return F.util.loadImage(t,(function(img,t){this.setElement(img,r),this._setWidthHeight(),e&&e(this,t)}),this,r&&r.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var filter=this.resizeFilter,t=this.minimumScaleTrigger,e=this.getTotalObjectScaling(),r=e.scaleX,n=e.scaleY,o=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!filter||r>t&&n>t)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=r,void(this._lastScaleY=n);F.filterBackend||(F.filterBackend=F.initFilterBackend());var l=F.util.createCanvasElement(),c=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,h=o.width,f=o.height;l.width=h,l.height=f,this._element=l,this._lastScaleX=filter.scaleX=r,this._lastScaleY=filter.scaleY=n,F.filterBackend.applyFilters([filter],o,h,f,this._element,c),this._filterScalingX=l.width/this._originalElement.width,this._filterScalingY=l.height/this._originalElement.height},applyFilters:function(t){if(t=(t=t||this.filters||[]).filter((function(filter){return filter&&!filter.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===t.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var e=this._originalElement,r=e.naturalWidth||e.width,n=e.naturalHeight||e.height;if(this._element===this._originalElement){var o=F.util.createCanvasElement();o.width=r,o.height=n,this._element=o,this._filteredEl=o}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,r,n),this._lastScaleX=1,this._lastScaleY=1;return F.filterBackend||(F.filterBackend=F.initFilterBackend()),F.filterBackend.applyFilters(t,this._originalElement,r,n,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(t){F.util.setImageSmoothing(t,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(t),this._renderPaintInOrder(t)},drawCacheOnCanvas:function(t){F.util.setImageSmoothing(t,this.imageSmoothing),F.Object.prototype.drawCacheOnCanvas.call(this,t)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(t){var e=this._element;if(e){var r=this._filterScalingX,n=this._filterScalingY,o=this.width,l=this.height,c=Math.min,h=Math.max,f=h(this.cropX,0),d=h(this.cropY,0),m=e.naturalWi
vendor: 5,550 bytes, line 2
2dth||e.width,y=e.naturalHeight||e.height,v=f*r,_=d*n,w=c(o*r,m-v),x=c(l*n,y-_),C=-o/2,S=-l/2,k=c(o,m/r-f),T=c(l,y/n-d);e&&t.drawImage(e,v,_,w,x,C,S,k,T)}},_needsResize:function(){var t=this.getTotalObjectScaling();return t.scaleX!==this._lastScaleX||t.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(element,t){this.setElement(F.util.getById(element),t),F.util.addClass(this.getElement(),F.Image.CSS_CANVAS)},_initConfig:function(t){t||(t={}),this.setOptions(t),this._setWidthHeight(t)},_initFilters:function(t,e){t&&t.length?F.util.enlivenObjects(t,(function(t){e&&e(t)}),"fabric.Image.filters"):e&&e()},_setWidthHeight:function(t){t||(t={});var e=this.getElement();this.width=t.width||e.naturalWidth||e.width||0,this.height=t.height||e.naturalHeight||e.height||0},parsePreserveAspectRatioAttribute:function(){var t,e=F.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),r=this._element.width,n=this._element.height,o=1,l=1,c=0,h=0,f=0,d=0,m=this.width,y=this.height,v={width:m,height:y};return!e||"none"===e.alignX&&"none"===e.alignY?(o=m/r,l=y/n):("meet"===e.meetOrSlice&&(t=(m-r*(o=l=F.util.findScaleToFit(this._element,v)))/2,"Min"===e.alignX&&(c=-t),"Max"===e.alignX&&(c=t),t=(y-n*l)/2,"Min"===e.alignY&&(h=-t),"Max"===e.alignY&&(h=t)),"slice"===e.meetOrSlice&&(t=r-m/(o=l=F.util.findScaleToCover(this._element,v)),"Mid"===e.alignX&&(f=t/2),"Max"===e.alignX&&(f=t),t=n-y/l,"Mid"===e.alignY&&(d=t/2),"Max"===e.alignY&&(d=t),r=m/o,n=y/l)),{width:r,height:n,scaleX:o,scaleY:l,offsetLeft:c,offsetTop:h,cropX:f,cropY:d}}}),F.Image.CSS_CANVAS="canvas-img",F.Image.prototype.getSvgSrc=F.Image.prototype.getSrc,F.Image.fromObject=function(t,e){var object=F.util.object.clone(t);F.util.loadImage(object.src,(function(img,t){t?e&&e(null,!0):F.Image.prototype._initFilters.call(object,object.filters,(function(t){object.filters=t||[],F.Image.prototype._initFilters.call(object,[object.resizeFilter],(function(t){object.resizeFilter=t[0],F.util.enlivenObjectEnlivables(object,object,(function(){var image=new F.Image(img,object);e(image,!1)}))}))}))}),null,object.crossOrigin)},F.Image.fromURL=function(t,e,r){F.util.loadImage(t,(function(img,t){e&&e(new F.Image(img,r),t)}),null,r&&r.crossOrigin)},F.Image.ATTRIBUTE_NAMES=F.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),F.Image.fromElement=function(element,t,r){var n=F.parseAttributes(element,F.Image.ATTRIBUTE_NAMES);F.Image.fromURL(n["xlink:href"],t,e(r?F.util.object.clone(r):{},n))})}(e),F.util.object.extend(F.Object.prototype,{_getAngleValueForStraighten:function(){var t=this.angle%360;return t>0?90*Math.round((t-1)/90):90*Math.round(t/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(t){var e=function(){},r=(t=t||{}).onComplete||e,n=t.onChange||e,o=this;return F.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(t){o.rotate(t),n()},onComplete:function(){o.setCoords(),r()}})}}),F.util.object.extend(F.StaticCanvas.prototype,{straightenObject:function(object){return object.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(object){return object.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){"use strict";function t(t,e){var r="precision "+e+" float;\nvoid main(){}",n=t.createShader(t.FRAGMENT_SHADER);return t.shaderSource(n,r),t.compileShader(n),!!t.getShaderParameter(n,t.COMPILE_STATUS)}function e(t){t&&t.tileSize&&(this.tileSize=t.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}F.isWebglSupported=function(e){if(F.isLikelyNode)return!1;e=e||F.WebglFilterBackend.prototype.tileSize;var canvas=document.createElement("canvas"),r=canvas.getContext("webgl")||canvas.getContext("experimental-webgl"),n=!1;if(r){F.maxTextureSize=r.getParameter(r.MAX_TEXTURE_SIZE),n=F.maxTextureSize>=e;for(var o=["highp","mediump","lowp"],i=0;i<3;i++)if(t(r,o[i])){F.webGlPrecision=o[i];break}}return this.isSupported=n,n},F.WebglFilterBackend=e,e.prototype={tileSize:2048,resources:{},setupGLContext:function(t,e){this.dispose(),this.createWebGLCanvas(t,e),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(t,e)},chooseFastestCopyGLTo2DMethod:function(t,e){var r,n=void 0!==window.performance;try{new ImageData(1,1),r=!0}catch(t){r=!1}var o="undefined"!=typeof ArrayBuffer,l="undefined"!=typeof Uint8ClampedArray;if(n&&r&&o&&l){var c=F.util.createCanvasElement(),h=new ArrayBuffer(t*e*4);if(F.forceGLPutImageData)return this.imageBuffer=h,void(this.copyGLTo2D=j);var f,d,m={imageBuffer:h,destinationWidth:t,destinationHeight:e,targetCanvas:c};c.width=t,c.height=e,f=window.performance.now(),M.call(m,this.gl,m),d=window.performance.now()-f,f=window.performance.now(),j.call(m,this.gl,m),d>window.performance.now()-f?(this.imageBuffer=h,this.copyGLTo2D=j):this.copyGLTo2D=M}},createWebGLCanvas:function(t,e){var canvas=F.util.createCanvasElement();canvas.width=t,canvas.height=e;var r={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},n=canvas.getContext("webgl",r);n||(n=canvas.getContext("experimental-webgl",r)),n&&(n.clearColor(0,0,0,0),this.canvas=canvas,this.gl=n)},applyFilters:function(t,source,e,r,n,o){var l,c=this.gl;o&&(l=this.getCachedTexture(o,source));var h={originalWidth:source.width||source.originalWidth,originalHeight:source.height||source.originalHeight,sourceW
vendor: 9,501 bytes, line 2
2idth:e,sourceHeight:r,destinationWidth:e,destinationHeight:r,context:c,sourceTexture:this.createTexture(c,e,r,!l&&source),targetTexture:this.createTexture(c,e,r),originalTexture:l||this.createTexture(c,e,r,!l&&source),passes:t.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},f=c.createFramebuffer();return c.bindFramebuffer(c.FRAMEBUFFER,f),t.forEach((function(filter){filter&&filter.applyTo(h)})),function(t){var e=t.targetCanvas,r=e.width,n=e.height,o=t.destinationWidth,l=t.destinationHeight;r===o&&n===l||(e.width=o,e.height=l)}(h),this.copyGLTo2D(c,h),c.bindTexture(c.TEXTURE_2D,null),c.deleteTexture(h.sourceTexture),c.deleteTexture(h.targetTexture),c.deleteFramebuffer(f),n.getContext("2d").setTransform(1,0,0,1,0,0),h},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(t,e,r,n){var o=t.createTexture();return t.bindTexture(t.TEXTURE_2D,o),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),n?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,r,0,t.RGBA,t.UNSIGNED_BYTE,null),o},getCachedTexture:function(t,e){if(this.textureCache[t])return this.textureCache[t];var r=this.createTexture(this.gl,e.width,e.height,e);return this.textureCache[t]=r,r},evictCachesForKey:function(t){this.textureCache[t]&&(this.gl.deleteTexture(this.textureCache[t]),delete this.textureCache[t])},copyGLTo2D:M,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var t=this.gl,e={renderer:"",vendor:""};if(!t)return e;var r=t.getExtension("WEBGL_debug_renderer_info");if(r){var n=t.getParameter(r.UNMASKED_RENDERER_WEBGL),o=t.getParameter(r.UNMASKED_VENDOR_WEBGL);n&&(e.renderer=n.toLowerCase()),o&&(e.vendor=o.toLowerCase())}return this.gpuInfo=e,e}}}(),function(){"use strict";var t=function(){};function e(){}F.Canvas2dFilterBackend=e,e.prototype={evictCachesForKey:t,dispose:t,clearWebGLCaches:t,resources:{},applyFilters:function(t,e,r,n,o){var l=o.getContext("2d");l.drawImage(e,0,0,r,n);var c={sourceWidth:r,sourceHeight:n,imageData:l.getImageData(0,0,r,n),originalEl:e,originalImageData:l.getImageData(0,0,r,n),canvasEl:o,ctx:l,filterBackend:this};return t.forEach((function(filter){filter.applyTo(c)})),c.imageData.width===r&&c.imageData.height===n||(o.width=c.imageData.width,o.height=c.imageData.height),l.putImageData(c.imageData,0,0),c}}}(),F.Image=F.Image||{},F.Image.filters=F.Image.filters||{},F.Image.filters.BaseFilter=F.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(t){t&&this.setOptions(t)},setOptions:function(t){for(var e in t)this[e]=t[e]},createProgram:function(t,e,r){e=e||this.fragmentSource,r=r||this.vertexSource,"highp"!==F.webGlPrecision&&(e=e.replace(/precision highp float/g,"precision "+F.webGlPrecision+" float"));var n=t.createShader(t.VERTEX_SHADER);if(t.shaderSource(n,r),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+t.getShaderInfoLog(n));var o=t.createShader(t.FRAGMENT_SHADER);if(t.shaderSource(o,e),t.compileShader(o),!t.getShaderParameter(o,t.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+t.getShaderInfoLog(o));var l=t.createProgram();if(t.attachShader(l,n),t.attachShader(l,o),t.linkProgram(l),!t.getProgramParameter(l,t.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+t.getProgramInfoLog(l));var c=this.getAttributeLocations(t,l),h=this.getUniformLocations(t,l)||{};return h.uStepW=t.getUniformLocation(l,"uStepW"),h.uStepH=t.getUniformLocation(l,"uStepH"),{program:l,attributeLocations:c,uniformLocations:h}},getAttributeLocations:function(t,e){return{aPosition:t.getAttribLocation(e,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(t,e,r){var n=e.aPosition,o=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,o),t.enableVertexAttribArray(n),t.vertexAttribPointer(n,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,r,t.STATIC_DRAW)},_setupFrameBuffer:function(t){var e,r,n=t.context;t.passes>1?(e=t.destinationWidth,r=t.destinationHeight,t.sourceWidth===e&&t.sourceHeight===r||(n.deleteTexture(t.targetTexture),t.targetTexture=t.filterBackend.createTexture(n,e,r)),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,t.targetTexture,0)):(n.bindFramebuffer(n.FRAMEBUFFER,null),n.finish())},_swapTextures:function(t){t.passes--,t.pass++;var e=t.targetTexture;t.targetTexture=t.sourceTexture,t.sourceTexture=e},isNeutralState:function(){var main=this.mainParameter,t=F.Image.filters[this.type].prototype;if(main){if(Array.isArray(t[main])){for(var i=t[main].length;i--;)if(this[main][i]!==t[main][i])return!1;return!0}return t[main]===this[main]}return!1},applyTo:function(t){t.webgl?(this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},retrieveShader:function(t){return t.programCache.hasOwnProperty(this.type)||(t.programCache[this.type]=this.createProgram(t.context)),t.programCache[this.type]},applyToWebGL:function(t){var e=t.context,r=this.retrieveShader(t);0===t.pass&&t.originalTexture?e.bindTexture(e.TEXTURE_2D,t.originalTexture):e.bindTexture(e.TEXTURE_2D,t.sourceTexture),e.useProgram(r.program),this.sendAttributeData(e,r.attributeLocations,t.aPosition),e.uniform1f(r.uniformLocations.uStepW,1/t.sourceWidth),e.uniform1f(r.uniformLocations.uStepH,1/t.sourceHeight),this.sendUniformData(e,r.uniformLocations),e.viewport(0,0,t.destinationWidth,t.destinationHeight),e.drawArrays(e.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(t,e,r){t.activeTexture(r),t.bindTexture(t.TEXTURE_2D,e),t.activeTexture(t.TEXTURE0)},unbindAdditionalTexture:function(t,e){t.activeTexture(e),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(t){this[this.mainParameter]=t},sendUniformData:function(){},createHelpLayer:function(t){if(!t.helpLayer){var e=document.createElement("canvas");e.width=t.sourceWidth,e.height=t.sourceHeight,t.helpLayer=e}},toObject:function(){var object={type:this.type},t=this.mainParameter;return t&&(object[t]=this[t]),object},toJSON:function(){return this.toObject()}}),F.Image.filters.BaseFilter.fromObject=function(object,t){var filter=new F.Image.filters[object.type](object);return t&&t(filter),filter},function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.ColorMatrix=n(r.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(t){this.callSuper("initialize",t),this.matrix=this.matrix.slice(0)},applyTo2d:function(t){var e,g,b,a,i,data=t.imageData.data,r=data.length,n=this.matrix,o=this.colorsOnly;for(i=0;i<r;i+=4)e=data[i],g=data[i+1],b=data[i+2],o?(data[i]=e*n[0]+g*n[1]+b*n[2]+255*n[4],data[i+1]=e*n[5]+g*n[6]+b*n[7]+255*n[9],data[i+2]=e*n[10]+g*n[11]+b*n[12]+255*n[14]):(a=data[i+3],data[i]=e*n[0]+g*n[1]+b*n[2]+a*n[3]+255*n[4],data[i+1]=e*n[5]+g*n[6]+b*n[7]+a*n[8]+255*n[9],data[i+2]=e*n[10]+g*n[11]+b*n[12]+a*n[13]+255*n[14],data[i+3]=e*n[15]+g*n[16]+b*n[17]+a*n[18]+255*n[19])},getUniformLocations:function(t,e){return{uColorMatrix:t.getUniformLocation(e,"uColorMatrix"),uConstants:t.getUniformLocation(e,"uConstants")}},sendUniformData:function(t,e){var r=this.matrix,n=[r[0],r[1],r[2],r[3],r[5],r[6],r[7],r[8],r[10],r[11],r[12],r[13],r[15],r[16],r[17],r[18]],o=[r[4],r[9],r[14],r[19]];t.uniformMatrix4fv(e.uColorMatrix,!1,n),t.uniform4fv(e.uConstants,o)}}),e.Image.filters.ColorMatrix.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.Brightness=n(r.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(t){if(0!==this.brightness){var i,data=t.imageData.data,e=data.length,r=Math.round(255*this.brightness);for(i=0;i<e;i+=4)data[i]=data[i]+r,data[i+1]=data[i+1]+r,data[i+2]=data[i+2]+r}},getUniformLocations:function(t,e){return{uBrightness:t.getUniformLocation(e,"uBrightness")}},sendUniformData:function(t,e){t.uniform1f(e.uBrightness,this.brightness)}}),e.Image.filters.Brightness.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.object.extend,n=e.Image.filters,o=e.util.createClass;
2n.Convolute=o(n.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(t){var e=Math.sqrt(this.matrix.length),r=this.t
vendor: 12,633 bytes, line 2
2ype+"_"+e+"_"+(this.opaque?1:0),n=this.fragmentSource[r];return t.programCache.hasOwnProperty(r)||(t.programCache[r]=this.createProgram(t.context,n)),t.programCache[r]},applyTo2d:function(t){var e,g,b,a,r,n,o,l,c,h,f,d,m,y=t.imageData,data=y.data,v=this.matrix,_=Math.round(Math.sqrt(v.length)),w=Math.floor(_/2),x=y.width,C=y.height,output=t.ctx.createImageData(x,C),S=output.data,k=this.opaque?1:0;for(f=0;f<C;f++)for(h=0;h<x;h++){for(r=4*(f*x+h),e=0,g=0,b=0,a=0,m=0;m<_;m++)for(d=0;d<_;d++)n=h+d-w,(o=f+m-w)<0||o>=C||n<0||n>=x||(l=4*(o*x+n),c=v[m*_+d],e+=data[l]*c,g+=data[l+1]*c,b+=data[l+2]*c,k||(a+=data[l+3]*c));S[r]=e,S[r+1]=g,S[r+2]=b,S[r+3]=k?data[r+3]:a}t.imageData=output},getUniformLocations:function(t,e){return{uMatrix:t.getUniformLocation(e,"uMatrix"),uOpaque:t.getUniformLocation(e,"uOpaque"),uHalfSize:t.getUniformLocation(e,"uHalfSize"),uSize:t.getUniformLocation(e,"uSize")}},sendUniformData:function(t,e){t.uniform1fv(e.uMatrix,this.matrix)},toObject:function(){return r(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),e.Image.filters.Convolute.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.Grayscale=n(r.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(t){var i,e,data=t.imageData.data,r=data.length,n=this.mode;for(i=0;i<r;i+=4)"average"===n?e=(data[i]+data[i+1]+data[i+2])/3:"lightness"===n?e=(Math.min(data[i],data[i+1],data[i+2])+Math.max(data[i],data[i+1],data[i+2]))/2:"luminosity"===n&&(e=.21*data[i]+.72*data[i+1]+.07*data[i+2]),data[i]=e,data[i+1]=e,data[i+2]=e},retrieveShader:function(t){var e=this.type+"_"+this.mode;if(!t.programCache.hasOwnProperty(e)){var r=this.fragmentSource[this.mode];t.programCache[e]=this.createProgram(t.context,r)}return t.programCache[e]},getUniformLocations:function(t,e){return{uMode:t.getUniformLocation(e,"uMode")}},sendUniformData:function(t,e){t.uniform1i(e.uMode,1)},isNeutralState:function(){return!1}}),e.Image.filters.Grayscale.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.Invert=n(r.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(t){var i,data=t.imageData.data,e=data.length;for(i=0;i<e;i+=4)data[i]=255-data[i],data[i+1]=255-data[i+1],data[i+2]=255-data[i+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(t,e){return{uInvert:t.getUniformLocation(e,"uInvert")}},sendUniformData:function(t,e){t.uniform1i(e.uInvert,this.invert)}}),e.Image.filters.Invert.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.object.extend,n=e.Image.filters,o=e.util.createClass;n.Noise=o(n.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(t){if(0!==this.noise){var i,e,data=t.imageData.data,r=data.length,n=this.noise;for(i=0,r=data.length;i<r;i+=4)e=(.5-Math.random())*n,data[i]+=e,data[i+1]+=e,data[i+2]+=e}},getUniformLocations:function(t,e){return{uNoise:t.getUniformLocation(e,"uNoise"),uSeed:t.getUniformLocation(e,"uSeed")}},sendUniformData:function(t,e){t.uniform1f(e.uNoise,this.noise/255),t.uniform1f(e.uSeed,Math.random())},toObject:function(){return r(this.callSuper("toObject"),{noise:this.noise})}}),e.Image.filters.Noise.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.Pixelate=n(r.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(t){var e,i,r,n,g,b,a,o,l,c,h,f=t.imageData,data=f.data,d=f.height,m=f.width;for(i=0;i<d;i+=this.blocksize)for(r=0;r<m;r+=this.blocksize)for(n=data[e=4*i*m+4*r],g=data[e+1],b=data[e+2],a=data[e+3],c=Math.min(i+this.blocksize,d),h=Math.min(r+this.blocksize,m),o=i;o<c;o++)for(l=r;l<h;l++)data[e=4*o*m+4*l]=n,data[e+1]=g,data[e+2]=b,data[e+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(t,e){return{uBlocksize:t.getUniformLocation(e,"uBlocksize"),uStepW:t.getUniformLocation(e,"uStepW"),uStepH:t.getUniformLocation(e,"uStepH")}},sendUniformData:function(t,e){t.uniform1f(e.uBlocksize,this.blocksize)}}),e.Image.filters.Pixelate.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.object.extend,n=e.Image.filters,o=e.util.createClass;n.RemoveColor=o(n.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(t){var i,r,g,b,data=t.imageData.data,n=255*this.distance,source=new e.Color(this.color).getSource(),o=[source[0]-n,source[1]-n,source[2]-n],l=[source[0]+n,source[1]+n,source[2]+n];for(i=0;i<data.length;i+=4)r=data[i],g=data[i+1],b=data[i+2],r>o[0]&&g>o[1]&&b>o[2]&&r<l[0]&&g<l[1]&&b<l[2]&&(data[i+3]=0)},getUniformLocations:function(t,e){return{uLow:t.getUniformLocation(e,"uLow"),uHigh:t.getUniformLocation(e,"uHigh")}},sendUniformData:function(t,r){var source=new e.Color(this.color).getSource(),n=parseFloat(this.distance),o=[0+source[0]/255-n,0+source[1]/255-n,0+source[2]/255-n,1],l=[source[0]/255+n,source[1]/255+n,source[2]/255+n,1];t.uniform4fv(r.uLow,o),t.uniform4fv(r.uHigh,l)},toObject:function(){return r(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),e.Image.filters.RemoveColor.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass,o={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var l in o)r[l]=n(r.ColorMatrix,{type:l,matrix:o[l],mainParameter:!1,colorsOnly:!0}),e.Image.filters[l].fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric,r=e.Image.filters,n=e.util.createClass;r.BlendColor=n(r.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(t){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[t]+"}\n}"},retrieveShader:function(t){var e,r=this.type+"_"+this.mode;return t.programCache.hasOwnProperty(r)||(e=this.buildSource(this.mode),t.programCache[r]=this.createProgram(t.context,e)),t.programCache[r]},applyTo2d:function(t){var tr,r,n,o,g,b,source,data=t.imageData.data,l=data.length,c=1-this.alpha;tr=(source=new e.Color(this.color).getSource())[0]*this.alpha,r=source[1]*this.alpha,n=source[2]*this.alpha;for(var i=0;i<l;i+=4)switch(o=data[i],g=data[i+1],b=data[i+2],this.mode){case"multiply":data[i]=o*tr/255,data[i+1]=g*r/255,data[i+2]=b*n/255;break;case"screen":data[i]=255-(255-o)*(255-tr)/255,data[i+1]=255-(255-g)*(255-r)/255,data[i+2]=255-(255-b)*(255-n)/255;break;case"add":data[i]=o+tr,data[i+1]=g+r,data[i+2]=b+n;break;case"diff":case"difference":data[i]=Math.abs(o-tr),data[i+1]=Math.abs(g-r),data[i+2]=Math.abs(b-n);break;case"subtract":data[i]=o-tr,data[i+1]=g-r,data[i+2]=b-n;break;case"darken":data[i]=Math.min(o,tr),data[i+1]=Math.min(g,r),data[i+2]=Math.min(b,n);break;case"lighten":data[i]=Math.max(o,tr),data[i+1]=Math.max(g,r),data[i+2]=Math.max(b,n);break;case"overlay":data[i]=tr<128?2*o*tr/255:255-2*(255-o)*(255-tr)/255,data[i+1]=r<128?2*g*r/255:255-2*(255-g)*(255-r)/255,data[i+2]=n<128?2*b*n/255:255-2*(255-b)*(255-n)/255;break;case"exclusion":data[i]=tr+o-2*tr*o/255,data[i+1]=r+g-2*r*g/255,data[i+2]=n+b-2*n*b/255;break;case"tint":data[i]=tr+o*c,data[i+1]=r+g*c,data[i+2]=n+b*c}},getUniformLocations:function(t,e){return{uColor:t.getUniformLocation(e,"uColor")}},sendUniformData:function(t,r){var source=new e.Color(this.color).getSource();source[0]=this.alpha*source[0]/255,source[1]=this.alpha*source[1]/255,source[2]=this.alpha*source[2]/255,source[3]=this.alpha,t.uniform4fv(r.uColor,source)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendColor.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric,r=e.Image.filters,n=e.util.createClass;r.BlendImage=n(r.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;
2\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(t){var e=this.type+"_"+this.mode,r=this.fragmentSource[this.mode];return t.programCache.hasOwnProperty(e)||(t.programCache[e]=this.createProgram(t.context,r)),t.programCache[e]},applyToWebGL:function(t){var e=t.context,r=this.createTexture(t.filterBackend,this.image);this.bindAdditionalTexture(e,r,e.TEXTURE1),this.callSuper("applyToWebGL",t),this.unbindAdditionalTexture(e,e.TEXTURE1)},createTexture:function(t,image){return t.getCachedTexture(image.cacheKey,image._element)},calculateMatrix:function(){var image=this.image,t=image._element.width,e=image._element.height;return[1/image.scaleX,0,0,0,1/image.scaleY,0,-image.left/t,-image.top/e,1]},applyTo2d:function(t){var tr,r,n,o,l,g,b,a,c,h,f,d=t.imageData,m=t.filterBackend.resources,data=d.data,y=data.length,v=d.width,_=d.height,image=this.image;m.blendImage||(m.blendImage=e.util.createCanvasElement()),h=(c=m.blendImage).getContext("2d"),c.width!==v||c.height!==_?(c.width=v,c.height=_):h.clearRect(0,0,v,_),h.setTransform(image.scaleX,0,0,image.scaleY,image.left,image.top),h.drawImage(image._element,0,0,v,_),f=h.getImageData(0,0,v,_).data;for(var i=0;i<y;i+=4)switch(l=data[i],g=data[i+1],b=data[i+2],a=data[i+3],tr=f[i],r=f[i+1],n=f[i+2],o=f[i+3],this.mode){case"multiply":data[i]=l*tr/255,data[i+1]=g*r/255,data[i+2]=b*n/255,data[i+3]=a*o/255;break;case"mask":data[i+3]=o}},getUniformLocations:function(t,e){return{uTransformMatrix:t.getUniformLocation(e,"uTransformMatrix"),uImage:t.getUniformLocation(e,"uImage")}},sendUniformData:function(t,e){var r=this.calculateMatrix();t.uniform1i(e.uImage,1),t.uniformMatrix3fv(e.uTransformMatrix,!1,r)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendImage.fromObject=function(object,t){e.Image.fromObject(object.image,(function(image){var r=e.util.object.clone(object);r.image=image,t(new e.Image.filters.BlendImage(r))}))}}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=Math.pow,n=Math.floor,o=Math.sqrt,l=Math.abs,c=Math.round,h=Math.sin,f=Math.ceil,d=e.Image.filters,m=e.util.createClass;d.Resize=m(d.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(t,e){return{uDelta:t.getUniformLocation(e,"uDelta"),uTaps:t.getUniformLocation(e,"uTaps")}},sendUniformData:function(t,e){t.uniform2fv(e.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),t.uniform1fv(e.uTaps,this.taps)},retrieveShader:function(t){var e=this.getFilterWindow(),r=this.type+"_"+e;if(!t.programCache.hasOwnProperty(r)){var n=this.generateShader(e);t.programCache[r]=this.createProgram(t.context,n)}return t.programCache[r]},getFilterWindow:function(){var t=this.tempScale;return Math.ceil(this.lanczosLobes/t)},getTaps:function(){for(var t=this.lanczosCreate(this.lanczosLobes),e=this.tempScale,r=this.getFilterWindow(),n=new Array(r),i=1;i<=r;i++)n[i-1]=t(i*e);return n},generateShader:function(t){for(var e=new Array(t),r=this.fragmentSourceTOP,i=1;i<=t;i++)e[i-1]=i+".0 * uDelta";return r+="uniform float uTaps["+t+"];\n",r+="void main() {\n",r+=" vec4 color = texture2D(uTexture, vTexCoord);\n",r+=" float sum = 1.0;\n",e.forEach((function(t,i){r+=" color += texture2D(uTexture, vTexCoord + "+t+") * uTaps["+i+"];\n",r+=" color += texture2D(uTexture, vTexCoord - "+t+") * uTaps["+i+"];\n",r+=" sum += 2.0 * uTaps["+i+"];\n"})),r+=" gl_FragColor = color / sum;\n",r+="}"},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(t){t.webgl?(t.passes++,this.width=t.sourceW
vendor: 1,455 bytes, line 2
2idth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=t.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),t.destinationWidth=this.dW,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceWidth=t.destinationWidth,this.height=t.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),t.destinationHeight=this.dH,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceHeight=t.destinationHeight):this.applyTo2d(t)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(t){return function(e){if(e>=t||e<=-t)return 0;if(e<1.1920929e-7&&e>-1.1920929e-7)return 1;var r=(e*=Math.PI)/t;return h(e)/e*h(r)/r}},applyTo2d:function(t){var e=t.imageData,r=this.scaleX,n=this.scaleY;this.rcpScaleX=1/r,this.rcpScaleY=1/n;var o,l=e.width,h=e.height,f=c(l*r),d=c(h*n);"sliceHack"===this.resizeType?o=this.sliceByTwo(t,l,h,f,d):"hermite"===this.resizeType?o=this.hermiteFastResize(t,l,h,f,d):"bilinear"===this.resizeType?o=this.bilinearFiltering(t,l,h,f,d):"lanczos"===this.resizeType&&(o=this.lanczosResize(t,l,h,f,d)),t.imageData=o},sliceByTwo:function(t,r,o,l,c){var h,f,d=t.imageData,m=.5,y=!1,v=!1,_=r*m,w=o*m,x=e.filterBackend.resources,C=0,S=0,k=r,T=0;for(x.sliceByTwo||(x.sliceByTwo=document.createElement("canvas")),((h=x.sliceByTwo).width<1.5*r||h.height<o)&&
vendor: 10,711 bytes, line 2
2(h.width=1.5*r,h.height=o),(f=h.getContext("2d")).clearRect(0,0,1.5*r,o),f.putImageData(d,0,0),l=n(l),c=n(c);!y||!v;)r=_,o=w,l<n(_*m)?_=n(_*m):(_=l,y=!0),c<n(w*m)?w=n(w*m):(w=c,v=!0),f.drawImage(h,C,S,r,o,k,T,_,w),C=k,S=T,T+=w;return f.getImageData(C,S,l,c)},lanczosResize:function(t,e,c,h,d){var m=t.imageData.data,y=t.ctx.createImageData(h,d),v=y.data,_=this.lanczosCreate(this.lanczosLobes),w=this.rcpScaleX,x=this.rcpScaleY,C=2/this.rcpScaleX,S=2/this.rcpScaleY,k=f(w*this.lanczosLobes/2),T=f(x*this.lanczosLobes/2),D={},E={},O={};return function t(u){var f,i,A,P,a,F,I,M,j,R,L;for(E.x=(u+.5)*w,O.x=n(E.x),f=0;f<d;f++){for(E.y=(f+.5)*x,O.y=n(E.y),a=0,F=0,I=0,M=0,j=0,i=O.x-k;i<=O.x+k;i++)if(!(i<0||i>=e)){R=n(1e3*l(i-E.x)),D[R]||(D[R]={});for(var N=O.y-T;N<=O.y+T;N++)N<0||N>=c||(L=n(1e3*l(N-E.y)),D[R][L]||(D[R][L]=_(o(r(R*C,2)+r(L*S,2))/1e3)),(A=D[R][L])>0&&(a+=A,F+=A*m[P=4*(N*e+i)],I+=A*m[P+1],M+=A*m[P+2],j+=A*m[P+3]))}v[P=4*(f*h+u)]=F/a,v[P+1]=I/a,v[P+2]=M/a,v[P+3]=j/a}return++u<h?t(u):y}(0)},bilinearFiltering:function(t,e,r,o,l){var c,h,i,f,d,m,y,v,_,w=0,x=this.rcpScaleX,C=this.rcpScaleY,S=4*(e-1),k=t.imageData.data,T=t.ctx.createImageData(o,l),D=T.data;for(i=0;i<l;i++)for(f=0;f<o;f++)for(d=x*f-(c=n(x*f)),m=C*i-(h=n(C*i)),_=4*(h*e+c),y=0;y<4;y++)v=k[_+y]*(1-d)*(1-m)+k[_+4+y]*d*(1-m)+k[_+S+y]*m*(1-d)+k[_+S+4+y]*d*m,D[w++]=v;return T},hermiteFastResize:function(t,e,r,c,h){for(var d=this.rcpScaleX,m=this.rcpScaleY,y=f(d/2),v=f(m/2),data=t.imageData.data,_=t.ctx.createImageData(c,h),w=_.data,x=0;x<h;x++)for(var i=0;i<c;i++){for(var C=4*(i+x*c),S=0,k=0,T=0,D=0,E=0,O=0,A=0,P=(x+.5)*m,F=n(x*m);F<(x+1)*m;F++)for(var I=l(P-(F+.5))/v,M=(i+.5)*d,j=I*I,R=n(i*d);R<(i+1)*d;R++){var L=l(M-(R+.5))/y,N=o(j+L*L);N>1&&N<-1||(S=2*N*N*N-3*N*N+1)>0&&(A+=S*data[(L=4*(R+F*e))+3],T+=S,data[L+3]<255&&(S=S*data[L+3]/250),D+=S*data[L],E+=S*data[L+1],O+=S*data[L+2],k+=S)}w[C]=D/k,w[C+1]=E/k,w[C+2]=O/k,w[C+3]=A/T}return _},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),e.Image.filters.Resize.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.Contrast=n(r.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(t){if(0!==this.contrast){var i,data=t.imageData.data,e=data.length,r=Math.floor(255*this.contrast),n=259*(r+255)/(255*(259-r));for(i=0;i<e;i+=4)data[i]=n*(data[i]-128)+128,data[i+1]=n*(data[i+1]-128)+128,data[i+2]=n*(data[i+2]-128)+128}},getUniformLocations:function(t,e){return{uContrast:t.getUniformLocation(e,"uContrast")}},sendUniformData:function(t,e){t.uniform1f(e.uContrast,this.contrast)}}),e.Image.filters.Contrast.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.Saturation=n(r.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(t){if(0!==this.saturation){var i,e,data=t.imageData.data,r=data.length,n=-this.saturation;for(i=0;i<r;i+=4)e=Math.max(data[i],data[i+1],data[i+2]),data[i]+=e!==data[i]?(e-data[i])*n:0,data[i+1]+=e!==data[i+1]?(e-data[i+1])*n:0,data[i+2]+=e!==data[i+2]?(e-data[i+2])*n:0}},getUniformLocations:function(t,e){return{uSaturation:t.getUniformLocation(e,"uSaturation")}},sendUniformData:function(t,e){t.uniform1f(e.uSaturation,-this.saturation)}}),e.Image.filters.Saturation.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.Vibrance=n(r.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(t){if(0!==this.vibrance){var i,e,r,n,data=t.imageData.data,o=data.length,l=-this.vibrance;for(i=0;i<o;i+=4)e=Math.max(data[i],data[i+1],data[i+2]),r=(data[i]+data[i+1]+data[i+2])/3,n=2*Math.abs(e-r)/255*l,data[i]+=e!==data[i]?(e-data[i])*n:0,data[i+1]+=e!==data[i+1]?(e-data[i+1])*n:0,data[i+2]+=e!==data[i+2]?(e-data[i+2])*n:0}},getUniformLocations:function(t,e){return{uVibrance:t.getUniformLocation(e,"uVibrance")}},sendUniformData:function(t,e){t.uniform1f(e.uVibrance,-this.vibrance)}}),e.Image.filters.Vibrance.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.Blur=n(r.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(t){t.webgl?(this.aspectRatio=t.sourceWidth/t.sourceHeight,t.passes++,this._setupFrameBuffer(t),this.horizontal=!0,this.applyToWebGL(t),this._swapTextures(t),this._setupFrameBuffer(t),this.horizontal=!1,this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},applyTo2d:function(t){t.imageData=this.simpleBlur(t)},simpleBlur:function(t){var r,n,o=t.filterBackend.resources,l=t.imageData.width,c=t.imageData.height;o.blurLayer1||(o.blurLayer1=e.util.createCanvasElement(),o.blurLayer2=e.util.createCanvasElement()),r=o.blurLayer1,n=o.blurLayer2,r.width===l&&r.height===c||(n.width=r.width=l,n.height=r.height=c);var h,f,d,i,m=r.getContext("2d"),y=n.getContext("2d"),v=15,_=.06*this.blur*.5;for(m.putImageData(t.imageData,0,0),y.clearRect(0,0,l,c),i=-15;i<=v;i++)d=_*(f=i/v)*l+(h=(Math.random()-.5)/4),y.globalAlpha=1-Math.abs(f),y.drawImage(r,d,h),m.drawImage(n,0,0),y.globalAlpha=1,y.clearRect(0,0,n.width,n.height);for(i=-15;i<=v;i++)d=_*(f=i/v)*c+(h=(Math.random()-.5)/4),y.globalAlpha=1-Math.abs(f),y.drawImage(r,h,d),m.drawImage(n,0,0),y.globalAlpha=1,y.clearRect(0,0,n.width,n.height);t.ctx.drawImage(r,0,0);var w=t.ctx.getImageData(0,0,r.width,r.height);return m.globalAlpha=1,m.clearRect(0,0,r.width,r.height),w},getUniformLocations:function(t,e){return{delta:t.getUniformLocation(e,"uDelta")}},sendUniformData:function(t,e){var r=this.chooseRightDelta();t.uniform2fv(e.delta,r)},chooseRightDelta:function(){var t,e=1,r=[0,0];return this.horizontal?this.aspectRatio>1&&(e=1/this.aspectRatio):this.aspectRatio<1&&(e=this.aspectRatio),t=e*this.blur*.12,this.horizontal?r[0]=t:r[1]=t,r}}),r.Blur.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.Gamma=n(r.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(t){this.gamma=[1,1,1],r.BaseFilter.prototype.initialize.call(this,t)},applyTo2d:function(t){var i,data=t.imageData.data,e=this.gamma,r=data.length,n=1/e[0],o=1/e[1],l=1/e[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),i=0,r=256;i<r;i++)this.rVals[i]=255*Math.pow(i/255,n),this.gVals[i]=255*Math.pow(i/255,o),this.bVals[i]=255*Math.pow(i/255,l);for(i=0,r=data.length;i<r;i+=4)data[i]=this.rVals[data[i]],data[i+1]=this.gVals[data[i+1]],data[i+2]=this.bVals[data[i+2]]},getUniformLocations:function(t,e){return{uGamma:t.getUniformLocation(e,"uGamma")}},sendUniformData:function(t,e){t.uniform3fv(e.uGamma,this.gamma)}}),e.Image.filters.Gamma.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.Composed=n(r.BaseFilter,{type:"Composed",subFilters:[],initialize:function(t){this.callSuper("initialize",t),this.subFilters=this.subFilters.slice(0)},applyTo:function(t){t.passes+=this.subFilters.length-1,this.subFilters.forEach((function(filter){filter.applyTo(t)}))},toObject:function(){return e.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(filter){return filter.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(filter){return!filter.isNeutralState()}))}}),e.Image.filters.Composed.fromObject=function(object,t){var r=(object.subFilters||[]).map((function(filter){return new e.Image.filters[filter.type](filter)})),n=new e.Image.filters.Composed({subFilters:r});return t&&t(n),n}}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.Image.filters,n=e.util.createClass;r.HueRotation=n(r.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var t=this.rotation*Math.PI,r=e.util.cos(t),n=e.util.sin(t),o=1/3,l=Math.sqrt(o)*n,c=1-r;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=r+c/3,this.matrix[
vendor: 4,567 bytes, line 2
21]=o*c-l,this.matrix[2]=o*c+l,this.matrix[5]=o*c+l,this.matrix[6]=r+o*c,this.matrix[7]=o*c-l,this.matrix[10]=o*c-l,this.matrix[11]=o*c+l,this.matrix[12]=r+o*c},isNeutralState:function(t){return this.calculateMatrix(),r.BaseFilter.prototype.isNeutralState.call(this,t)},applyTo:function(t){this.calculateMatrix(),r.BaseFilter.prototype.applyTo.call(this,t)}}),e.Image.filters.HueRotation.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),r=e.util.object.clone;if(e.Text)e.warn("fabric.Text is already defined");else{var n="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");e.Text=e.util.createClass(e.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:e.Object.prototype.stateProperties.concat(n),cacheProperties:e.Object.prototype.cacheProperties.concat(n),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(text,t){this.styles=t&&t.styles||{},this.text=text,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var path=this.path;path&&(path.segmentsInfo=e.util.getPathSegmentsInfo(path.path))},getMeasuringContext:function(){return e._measuringContext||(e._measuringContext=this.canvas&&this.canvas.contextCache||e.util.createCanvasElement().getContext("2d")),e._measuringContext},_splitText:function(){var t=this._splitTextIntoLines(this.text);return this.textLines=t.lines,this._textLines=t.graphemeLines,this._unwrappedTextLines=t._unwrappedLines,this._text=t.graphemeText,t},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"}))},enlargeSpaces:function(){for(var t,e,r,n,line,o,l,i=0,c=this._textLines.length;i<c;i++)if(("justify"===this.textAlign||i!==c-1&&!this.isEndOfWrapping(i))&&(n=0,line=this._textLines[i],(e=this.getLineWidth(i))<this.width&&(l=this.textLines[i].match(this._reSpacesAndTabs)))){r=l.length,t=(this.width-e)/r;for(var h=0,f=line.length;h<=f;h++)o=this.__charBounds[i][h],this._reSpaceAndTab.test(line[h])?(o.width+=t,o.kernedWidth+=t,o.left+=n,n+=t):o.left+=n}},isEndOfWrapping:function(t){return t===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var t=this.callSuper("_getCacheCanvasDimensions"),e=this.fontSize;return t.width+=e*t.zoomX,t.height+=e*t.zoomY,t},_render:function(t){var path=this.path;path&&!path.isNotVisible()&&path._render(t),this._setTextStyles(t),this._renderTextLinesBackground(t),this._renderTextDecoration(t,"underline"),this._renderText(t),this._renderTextDecoration(t,"overline"),this._renderTextDecoration(t,"linethrough")},_renderText:function(t){"stroke"===this.paintFirst?(this._renderTextStroke(t),this._renderTextFill(t)):(this._renderTextFill(t),this._renderTextStroke(t))},_setTextStyles:function(t,e,r){if(t.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":t.textBaseline="middle";break;case"ascender":t.textBaseline="top";break;
vendor: 10,442 bytes, line 2
2case"descender":t.textBaseline="bottom"}t.font=this._getFontDeclaration(e,r)},calcTextWidth:function(){for(var t=this.getLineWidth(0),i=1,e=this._textLines.length;i<e;i++){var r=this.getLineWidth(i);r>t&&(t=r)}return t},_renderTextLine:function(t,e,line,r,n,o){this._renderChars(t,e,line,r,n,o)},_renderTextLinesBackground:function(t){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var e,r,line,n,o,l,c,h=t.fillStyle,f=this._getLeftOffset(),d=this._getTopOffset(),m=0,y=0,path=this.path,i=0,v=this._textLines.length;i<v;i++)if(e=this.getHeightOfLine(i),this.textBackgroundColor||this.styleHas("textBackgroundColor",i)){line=this._textLines[i],r=this._getLineLeftOffset(i),y=0,m=0,n=this.getValueOfPropertyAt(i,0,"textBackgroundColor");for(var _=0,w=line.length;_<w;_++)o=this.__charBounds[i][_],l=this.getValueOfPropertyAt(i,_,"textBackgroundColor"),path?(t.save(),t.translate(o.renderLeft,o.renderTop),t.rotate(o.angle),t.fillStyle=l,l&&t.fillRect(-o.width/2,-e/this.lineHeight*(1-this._fontSizeFraction),o.width,e/this.lineHeight),t.restore()):l!==n?(c=f+r+m,"rtl"===this.direction&&(c=this.width-c-y),t.fillStyle=n,n&&t.fillRect(c,d,y,e/this.lineHeight),m=o.left,y=o.width,n=l):y+=o.kernedWidth;l&&!path&&(c=f+r+m,"rtl"===this.direction&&(c=this.width-c-y),t.fillStyle=l,t.fillRect(c,d,y,e/this.lineHeight)),d+=e}else d+=e;t.fillStyle=h,this._removeShadow(t)}},getFontCache:function(t){var r=t.fontFamily.toLowerCase();e.charWidthsCache[r]||(e.charWidthsCache[r]={});var n=e.charWidthsCache[r],o=t.fontStyle.toLowerCase()+"_"+(t.fontWeight+"").toLowerCase();return n[o]||(n[o]={}),n[o]},_measureChar:function(t,e,r,n){var o,l,c,h,f=this.getFontCache(e),d=r+t,m=this._getFontDeclaration(e)===this._getFontDeclaration(n),y=e.fontSize/this.CACHE_FONT_SIZE;if(r&&void 0!==f[r]&&(c=f[r]),void 0!==f[t]&&(h=o=f[t]),m&&void 0!==f[d]&&(h=(l=f[d])-c),void 0===o||void 0===c||void 0===l){var v=this.getMeasuringContext();this._setTextStyles(v,e,!0)}return void 0===o&&(h=o=v.measureText(t).width,f[t]=o),void 0===c&&m&&r&&(c=v.measureText(r).width,f[r]=c),m&&void 0===l&&(l=v.measureText(d).width,f[d]=l,h=l-c),{width:o*y,kernedWidth:h*y}},getHeightOfChar:function(line,t){return this.getValueOfPropertyAt(line,t,"fontSize")},measureLine:function(t){var e=this._measureLine(t);return 0!==this.charSpacing&&(e.width-=this._getWidthOfCharSpacing()),e.width<0&&(e.width=0),e},_measureLine:function(t){var i,r,n,o,l,c,h=0,line=this._textLines[t],f=new Array(line.length),d=0,path=this.path,m="right"===this.pathSide;for(this.__charBounds[t]=f,i=0;i<line.length;i++)r=line[i],o=this._getGraphemeBox(r,t,i,n),f[i]=o,h+=o.kernedWidth,n=r;if(f[i]={left:o?o.left+o.width:0,width:0,kernedWidth:0,height:this.fontSize},path){switch(c=path.segmentsInfo[path.segmentsInfo.length-1].length,(l=e.util.getPointOnPath(path.path,0,path.segmentsInfo)).x+=path.pathOffset.x,l.y+=path.pathOffset.y,this.textAlign){case"left":d=m?c-h:0;break;case"center":d=(c-h)/2;break;case"right":d=m?0:c-h}for(d+=this.pathStartOffset*(m?-1:1),i=m?line.length-1:0;m?i>=0:i<line.length;m?i--:i++)o=f[i],d>c?d%=c:d<0&&(d+=c),this._setGraphemeOnPath(d,o,l),d+=o.kernedWidth}return{width:h,numOfSpaces:0}},_setGraphemeOnPath:function(t,r,n){var o=t+r.kernedWidth/2,path=this.path,l=e.util.getPointOnPath(path.path,o,path.segmentsInfo);r.renderLeft=l.x-n.x,r.renderTop=l.y-n.y,r.angle=l.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(t,e,r,n,o){var l,style=this.getCompleteStyleDeclaration(e,r),c=n?this.getCompleteStyleDeclaration(e,r-1):{},h=this._measureChar(t,style,n,c),f=h.kernedWidth,d=h.width;0!==this.charSpacing&&(d+=l=this._getWidthOfCharSpacing(),f+=l);var m={width:d,left:0,height:style.fontSize,kernedWidth:f,deltaY:style.deltaY};if(r>0&&!o){var y=this.__charBounds[e][r-1];m.left=y.left+y.width+h.kernedWidth-h.width}return m},getHeightOfLine:function(t){if(this.__lineHeights[t])return this.__lineHeights[t];for(var line=this._textLines[t],e=this.getHeightOfChar(t,0),i=1,r=line.length;i<r;i++)e=Math.max(this.getHeightOfChar(t,i),e);return this.__lineHeights[t]=e*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var t,e=0,i=0,r=this._textLines.length;i<r;i++)t=this.getHeightOfLine(i),e+=i===r-1?t/this.lineHeight:t;return e},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(t,e){t.save();for(var r=0,n=this._getLeftOffset(),o=this._getTopOffset(),i=0,l=this._textLines.length;i<l;i++){var c=this.getHeightOfLine(i),h=c/this.lineHeight,f=this._getLineLeftOffset(i);this._renderTextLine(e,t,this._textLines[i],n+f,o+r+h,i),r+=c}t.restore()},_renderTextFill:function(t){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(t,"fillText")},_renderTextStroke:function(t){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(t),t.save(),this._setLineDash(t,this.strokeDashArray),t.beginPath(),this._renderTextCommon(t,"strokeText"),t.closePath(),t.restore())},_renderChars:function(t,e,line,r,n,o){var l,c,h,f,d,m=this.getHeightOfLine(o),y=-1!==this.textAlign.indexOf("justify"),v="",_=0,path=this.path,w=!y&&0===this.charSpacing&&this.isEmptyStyles(o)&&!path,x="ltr"===this.direction,C="ltr"===this.direction?1:-1,S=e.canvas.getAttribute("dir");if(e.save(),S!==this.direction&&(e.canvas.setAttribute("dir",x?"ltr":"rtl"),e.direction=x?"ltr":"rtl",e.textAlign=x?"left":"right"),n-=m*this._fontSizeFraction/this.lineHeight,w)return this._renderChar(t,e,o,0,line.join(""),r,n,m),void e.restore();for(var i=0,k=line.length-1;i<=k;i++)f=i===k||this.charSpacing||path,v+=line[i],h=this.__charBounds[o][i],0===_?(r+=C*(h.kernedWidth-h.width),_+=h.width):_+=h.kernedWidth,y&&!f&&this._reSpaceAndTab.test(line[i])&&(f=!0),f||(l=l||this.getCompleteStyleDeclaration(o,i),c=this.getCompleteStyleDeclaration(o,i+1),f=this._hasStyleChanged(l,c)),f&&(path?(e.save(),e.translate(h.renderLeft,h.renderTop),e.rotate(h.angle),this._renderChar(t,e,o,i,v,-_/2,0,m),e.restore()):(d=r,this._renderChar(t,e,o,i,v,d,n,m)),v="",l=c,r+=C*_,_=0);e.restore()},_applyPatternGradientTransformText:function(t){var r,n=e.util.createCanvasElement(),o=this.width+this.strokeWidth,l=this.height+this.strokeWidth;return n.width=o,n.height=l,(r=n.getContext("2d")).beginPath(),r.moveTo(0,0),r.lineTo(o,0),r.lineTo(o,l),r.lineTo(0,l),r.closePath(),r.translate(o/2,l/2),r.fillStyle=t.toLive(r),this._applyPatternGradientTransform(r,t),r.fill(),r.createPattern(n,"no-repeat")},handleFiller:function(t,e,r){var n,o;return r.toLive?"percentage"===r.gradientUnits||r.gradientTransform||r.patternTransform?(n=-this.width/2,o=-this.height/2,t.translate(n,o),t[e]=this._applyPatternGradientTransformText(r),{offsetX:n,offsetY:o}):(t[e]=r.toLive(t,this),this._applyPatternGradientTransform(t,r)):(t[e]=r,{offsetX:0,offsetY:0})},_setStrokeStyles:function(t,e){return t.lineWidth=e.strokeWidth,t.lineCap=this.strokeLineCap,t.lineDashOffset=this.strokeDashOffset,t.lineJoin=this.strokeLineJoin,t.miterLimit=this.strokeMiterLimit,this.handleFiller(t,"strokeStyle",e.stroke)},_setFillStyles:function(t,e){return this.handleFiller(t,"fillStyle",e.fill)},_renderChar:function(t,e,r,n,o,l,c){var h,f,d=this._getStyleDeclaration(r,n),m=this.getCompleteStyleDeclaration(r,n),y="fillText"===t&&m.fill,v="strokeText"===t&&m.stroke&&m.strokeWidth;(v||y)&&(e.save(),y&&(h=this._setFillStyles(e,m)),v&&(f=this._setStrokeStyles(e,m)),e.font=this._getFontDeclaration(m),d&&d.textBackgroundColor&&this._removeShadow(e),d&&d.deltaY&&(c+=d.deltaY),y&&e.fillText(o,l-h.offsetX,c-h.offsetY),v&&e.strokeText(o,l-f.offsetX,c-f.offsetY),e.restore())},setSuperscript:function(t,e){return this._setScript(t,e,this.superscript)},setSubscript:function(t,e){return this._setScript(t,e,this.subscript)},_setScript:function(t,e,r){var n=this.get2DCursorLocation(t,!0),o=this.getValueOfPropertyAt(n.lineIndex,n.charIndex,"fontSize"),l=this.getValueOfPropertyAt(n.lineIndex,n.charIndex,"deltaY"),style={fontSize:o*r.size,deltaY:l+o*r.baseline};return this.setSelectionStyles(style,t,e),this},_hasStyleChanged:function(t,e){return t.fill!==e.fill||t.stroke!==e.stroke||t.strokeWidth!==e.strokeWidth||t.fontSize!==e.fontSize||t.fontFamily!==e.fontFamily||t.fontWeight!==e.fontWeight||t.fontStyle!==e.fontStyle||t.deltaY!==e.deltaY},_hasStyleChangedForSvg:function(t,e){return this._hasStyleChanged(t,e)||t.overline!==e.overline||t.underline!==e.underline||t.linethrough!==e.linethrough},_getLineLeftOffset:function(t){var e=this.getLineWidth(t),r=this.width-e,n=this.textAlign,o=this.direction,l=0,c=this.isEndOfWrapping(t);return"justify"===n||"justify-center"===n&&!c||"justify-right"===n&&!c||"justify-left"===n&&!c?0:("center"===n&&(l=r/2),"right"===n&&(l=r),"justify-center"===n&&(l=r/2),"justify-right"===n&&(l=r),"rtl"===o&&(l-=r),l)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var t=this._forceClearCache;return t||(t=this.hasStateChanged("_dimensionAffectingProps")),t&&(this.dirty=!0,this._forceClearCache=!1),t},getLineWidth:function(t){if(void 0!==this.__lineWidths[t])return this.__lineWidths[t];var e=this.measureLine(t).width;return this.__lineWidths[t]=e,e},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(t,e,r){var n=this._getStyleDeclaration(t,e);return n&&void 0!==n[r]?n[r]:this[r]},_renderTextDecoration:function(t,e){if(this[e]||this.styleHas(e)){for(var r,n,o,l,c,h,line,f,d,m,y,v,_,w,x,C,S=this._getLeftOffset(),k=this._getTopOffset(),path=this.path,T=this._getWidthOfCharSpacing(),D=this.offsets[e],i=0,E=this._textLines.length;i<E;i++)if(r=this.getHeightOfLine(i),this[e]||this.styleHas(e,i)){line=this._textLines[i],w=r/this.lineHeight,l=this._getLineLeftOffset(i),m=0,y=0,f=this.getValueOfPropertyAt(i,0,e),C=this.getValueOfPropertyAt(i,0,"fill"),d=k+w*(1-this._fontSizeFraction),n=this.getHeightOfChar(i,0),c=this.getValueOfPropertyAt(i,0,"deltaY");for(var O=0,A=line.length;O<A;O++)if(v=this.__charBounds[i][O],_=this.getValueOfPropertyAt(i,O,e),x=this.getValueOfPropertyAt(i,O,"fill"),o=this.getHeightOfChar(i,O),h=this.getValueOfPropertyAt(i,O,"deltaY"),path&&_&&x)t.save(),t.fillStyle=C,t.translate(v.renderLeft,v.renderTop),t.rotate(v.angle),t.fillRect(-v.kernedWidth/2,D*o+h,v.kernedWidth,this.fontSize/15),t.restore(
vendor: 6,901 bytes, line 2
2);else if((_!==f||x!==C||o!==n||h!==c)&&y>0){var P=S+l+m;"rtl"===this.direction&&(P=this.width-P-y),f&&C&&(t.fillStyle=C,t.fillRect(P,d+D*n+c,y,this.fontSize/15)),m=v.left,y=v.width,f=_,C=x,n=o,c=h}else y+=v.kernedWidth;P=S+l+m;"rtl"===this.direction&&(P=this.width-P-y),t.fillStyle=x,_&&x&&t.fillRect(P,d+D*n+c,y-T,this.fontSize/15),k+=r}else k+=r;this._removeShadow(t)}},_getFontDeclaration:function(t,r){var style=t||this,n=this.fontFamily,o=e.Text.genericFonts.indexOf(n.toLowerCase())>-1,l=void 0===n||n.indexOf("'")>-1||n.indexOf(",")>-1||n.indexOf('"')>-1||o?style.fontFamily:'"'+style.fontFamily+'"';return[e.isLikelyNode?style.fontWeight:style.fontStyle,e.isLikelyNode?style.fontStyle:style.fontWeight,r?this.CACHE_FONT_SIZE+"px":style.fontSize+"px",l].join(" ")},render:function(t){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",t)))},_splitTextIntoLines:function(text){for(var t=text.split(this._reNewline),r=new Array(t.length),n=["\n"],o=[],i=0;i<t.length;i++)r[i]=e.util.string.graphemeSplit(t[i]),o=o.concat(r[i],n);return o.pop(),{_unwrappedLines:r,lines:t,graphemeText:o,graphemeLines:r}},toObject:function(t){var e=n.concat(t),o=this.callSuper("toObject",e);return o.styles=r(this.styles,!0),o.path&&(o.path=this.path.toObject()),o},set:function(t,e){this.callSuper("set",t,e);var r=!1,n=!1;if("object"==typeof t)for(var o in t)"path"===o&&this.setPathInfo(),r=r||-1!==this._dimensionAffectingProps.indexOf(o),n=n||"path"===o;else r=-1!==this._dimensionAffectingProps.indexOf(t),n="path"===t;return n&&this.setPathInfo(),r&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),e.Text.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),e.Text.DEFAULT_SVG_FONT_SIZE=16,e.Text.fromElement=function(element,t,n){if(!element)return t(null);var o=e.parseAttributes(element,e.Text.ATTRIBUTE_NAMES),l=o.textAnchor||"left";if((n=e.util.object.extend(n?r(n):{},o)).top=n.top||0,n.left=n.left||0,o.textDecoration){var c=o.textDecoration;-1!==c.indexOf("underline")&&(n.underline=!0),-1!==c.indexOf("overline")&&(n.overline=!0),-1!==c.indexOf("line-through")&&(n.linethrough=!0),delete n.textDecoration}"dx"in o&&(n.left+=o.dx),"dy"in o&&(n.top+=o.dy),"fontSize"in n||(n.fontSize=e.Text.DEFAULT_SVG_FONT_SIZE);var h="";"textContent"in element?h=element.textContent:"firstChild"in element&&null!==element.firstChild&&"data"in element.firstChild&&null!==element.firstChild.data&&(h=element.firstChild.data),h=h.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var f=n.strokeWidth;n.strokeWidth=0;var text=new e.Text(h,n),d=text.getScaledHeight()/text.height,m=((text.height+text.strokeWidth)*text.lineHeight-text.height)*d,y=text.getScaledHeight()+m,v=0;"center"===l&&(v=text.getScaledWidth()/2),"right"===l&&(v=text.getScaledWidth()),text.set({left:text.left-v,top:text.top-(y-text.fontSize*(.07+text._fontSizeFraction))/text.lineHeight,strokeWidth:void 0!==f?f:1}),t(text)},e.Text.fromObject=function(object,t){var n=r(object),path=object.path;return delete n.path,e.Object._fromObject("Text",n,(function(r){path?e.Object._fromObject("Path",path,(function(e){r.set("path",e),t(r)}),"path"):t(r)}),"text")},e.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],e.util.createAccessors&&e.util.createAccessors(e.Text)}}(e),F.util.object.extend(F.Text.prototype,{isEmptyStyles:function(t){if(!this.styles)return!0;if(void 0!==t&&!this.styles[t])return!0;var e=void 0===t?this.styles:{line:this.styles[t]};for(var r in e)for(var n in e[r])for(var o in e[r][n])return!1;return!0},styleHas:function(t,e){if(!this.styles||!t||""===t)return!1;if(void 0!==e&&!this.styles[e])return!1;var r=void 0===e?this.styles:{0:this.styles[e]};for(var n in r)for(var o in r[n])if(void 0!==r[n][o][t])return!0;return!1},cleanStyle:function(t){if(!this.styles||!t||""===t)return!1;var e,r,n=this.styles,o=0,l=!0,c=0;for(var h in n){for(var f in e=0,n[h]){var d;o++,(d=n[h][f]).hasOwnProperty(t)?(r?d[t]!==r&&(l=!1):r=d[t],d[t]===this[t]&&delete d[t]):l=!1,0!==Object.keys(d).length?e++:delete n[h][f]}0===e&&delete n[h]}for(var i=0;i<this._textLines.length;i++)c+=this._textLines[i].length;l&&o===c&&(this[t]=r,this.removeStyle(t))},removeStyle:function(t){if(this.styles&&t&&""!==t){var line,e,r,n=this.styles;for(e in n){for(r in line=n[e])delete line[r][t],0===Object.keys(line[r]).length&&delete line[r];0===Object.keys(line).length&&delete n[e]}}},_extendStyles:function(t,e){var r=this.get2DCursorLocation(t);this._getLineStyle(r.lineIndex)||this._setLineStyle(r.lineIndex),this._getStyleDeclaration(r.lineIndex,r.charIndex)||this._setStyleDeclaration(r.lineIndex,r.charIndex,{}),F.util.object.extend(this._getStyleDeclaration(r.lineIndex,r.charIndex),e)},get2DCursorLocation:function(t,e){void 0===t&&(t=this.selectionStart);for(var r=e?this._unwrappedTextLines:this._textLines,n=r.length,i=0;i<n;i++){if(t<=r[i].length)return{lineIndex:i,charIndex:t};t-=r[i].length+this.missingNewlineOffset(i)}return{lineIndex:i-1,charIndex:r[i-1].length<t?r[i-1].length:t}},getSelectionStyles:function(t,e,r){void 0===t&&(t=this.selectionStart||0),void 0===e&&(e=this.selectionEnd||t);for(var n=[],i=t;i<e;i++)n.push(this.getStyleAtPosition(i,r));return n},getStyleAtPosition:function(t,e){var r=this.get2DCursorLocation(t);return(e?this.getCompleteStyleDeclaration(r.lineIndex,r.charIndex):this._getStyleDeclaration(r.lineIndex,r.charIndex))||{}},setSelectionStyles:function(t,e,r){void 0===e&&(e=this.selectionStart||0),void 0===r&&(r=this.selectionEnd||e);for(var i=e;i<r;i++)this._extendStyles(i,t);return this._forceClearCache=!0,this},_getStyleDeclaration:function(t,e){var r=this.styles&&this.styles[t];return r?r[e]:null},getCompleteStyleDeclaration:function(t,e){for(var r,style=this._getStyleDeclaration(t,e)||{},n={},i=0;i<this._styleProperties.length;i++)n[r=this._styleProperties[i]]=void 0===style[r]?this[r]:style[r];return n},_setStyleDeclaration:function(t,e,style){this.styles[t][e]=style},_deleteStyleDeclaration:function(t,e){delete this.styles[t][e]},_getLineStyle:function(t){return!!this.styles[t]},_setLineStyle:function(t){this.styles[t]={}},_deleteLineStyle:function(t){delete this.styles[t]}}),function(){function t(object){object.textDecoration&&(object.textDecoration.indexOf("underline")>-1&&(object.underline=!0),object.textDecoration.indexOf("line-through")>-1&&(object.linethrough=!0),object.textDecoration.indexOf("overline")>-1&&(object.overline=!0),delete object.textDecoration)}F.IText=F.util.createClass(F.Text,F.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",curs
vendor: 25,070 bytes, line 2
2orDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(text,t){this.callSuper("initialize",text,t),this.initBehavior()},setSelectionStart:function(t){t=Math.max(t,0),this._updateAndFire("selectionStart",t)},setSelectionEnd:function(t){t=Math.min(t,this.text.length),this._updateAndFire("selectionEnd",t)},_updateAndFire:function(t,e){this[t]!==e&&(this._fireSelectionChanged(),this[t]=e),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(t){this.clearContextTop(),this.callSuper("render",t),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(t){this.callSuper("_render",t)},clearContextTop:function(t){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this.canvas.contextTop,r=this.canvas.viewportTransform;e.save(),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),this.transform(e),this._clearTextArea(e),t||e.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this._getCursorBoundaries(),e=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(t,e):this.renderSelection(t,e),e.restore()}},_clearTextArea:function(t){var e=this.width+4,r=this.height+4;t.clearRect(-e/2,-r/2,e,r)},_getCursorBoundaries:function(t){void 0===t&&(t=this.selectionStart);var e=this._getLeftOffset(),r=this._getTopOffset(),n=this._getCursorBoundariesOffsets(t);return{left:e,top:r,leftOffset:n.left,topOffset:n.top}},_getCursorBoundariesOffsets:function(t){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var e,r,n,o,l=0,c=0,h=this.get2DCursorLocation(t);n=h.charIndex,r=h.lineIndex;for(var i=0;i<r;i++)l+=this.getHeightOfLine(i);e=this._getLineLeftOffset(r);var f=this.__charBounds[r][n];return f&&(c=f.left),0!==this.charSpacing&&n===this._textLines[r].length&&(c-=this._getWidthOfCharSpacing()),o={top:l,left:e+(c>0?c:0)},"rtl"===this.direction&&(o.left*=-1),this.cursorOffsetCache=o,this.cursorOffsetCache},renderCursor:function(t,e){var r=this.get2DCursorLocation(),n=r.lineIndex,o=r.charIndex>0?r.charIndex-1:0,l=this.getValueOfPropertyAt(n,o,"fontSize"),c=this.scaleX*this.canvas.getZoom(),h=this.cursorWidth/c,f=t.topOffset,d=this.getValueOfPropertyAt(n,o,"deltaY");f+=(1-this._fontSizeFraction)*this.getHeightOfLine(n)/this.lineHeight-l*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(t,e),e.fillStyle=this.cursorColor||this.getValueOfPropertyAt(n,o,"fill"),e.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,e.fillRect(t.left+t.leftOffset-h/2,f+t.top+d,h,l)},renderSelection:function(t,e){for(var r=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,n=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,o=-1!==this.textAlign.indexOf("justify"),l=this.get2DCursorLocation(r),c=this.get2DCursorLocation(n),h=l.lineIndex,f=c.lineIndex,d=l.charIndex<0?0:l.charIndex,m=c.charIndex<0?0:c.charIndex,i=h;i<=f;i++){var y,v=this._getLineLeftOffset(i)||0,_=this.getHeightOfLine(i),w=0,x=0;if(i===h&&(w=this.__charBounds[h][d].left),i>=h&&i<f)x=o&&!this.isEndOfWrapping(i)?this.width:this.getLineWidth(i)||5;else if(i===f)if(0===m)x=this.__charBounds[f][m].left;else{var C=this._getWidthOfCharSpacing();x=this.__charBounds[f][m-1].left+this.__charBounds[f][m-1].width-C}y=_,(this.lineHeight<1||i===f&&this.lineHeight>1)&&(_/=this.lineHeight);var S=t.left+v+w,k=x-w,T=_,D=0;this.inCompositionMode?(e.fillStyle=this.compositionColor||"black",T=1,D=_):e.fillStyle=this.selectionColor,"rtl"===this.direction&&(S=this.width-S-k),e.fillRect(S,t.top+t.topOffset+D,k,T),t.topOffset+=y}},getCurrentCharFontSize:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,"fontSize")},getCurrentCharColor:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,"fill")},_getCurrentCharIndex:function(){var t=this.get2DCursorLocation(this.selectionStart,!0),e=t.charIndex>0?t.charIndex-1:0;return{l:t.lineIndex,c:e}}}),F.IText.fromObject=function(object,e){if(t(object),object.styles)for(var i in object.styles)for(var r in object.styles[i])t(object.styles[i][r]);F.Object._fromObject("IText",object,e,"text")}}(),O=F.util.object.clone,F.util.object.extend(F.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var t=this;this.on("added",(function(){var canvas=t.canvas;canvas&&(canvas._hasITextHandlers||(canvas._hasITextHandlers=!0,t._initCanvasHandlers(canvas)),canvas._iTextInstances=canvas._iTextInstances||[],canvas._iTextInstances.push(t))}))},initRemovedHandler:function(){var t=this;this.on("removed",(function(){var canvas=t.canvas;canvas&&(canvas._iTextInstances=canvas._iTextInstances||[],F.util.removeFromArray(canvas._iTextInstances,t),0===canvas._iTextInstances.length&&(canvas._hasITextHandlers=!1,t._removeCanvasHandlers(canvas)))}))},_initCanvasHandlers:function(canvas){canvas._mouseUpITextHandler=function(){canvas._iTextInstances&&canvas._iTextInstances.forEach((function(t){t.__isMousedown=!1}))},canvas.on("mouse:up",canvas._mouseUpITextHandler)},_removeCanvasHandlers:function(canvas){canvas.off("mouse:up",canvas._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(t,e,r,n){var o;return o={isAborted:!1,abort:function(){this.isAborted=!0}},t.animate("_currentCursorOpacity",e,{duration:r,onComplete:function(){o.isAborted||t[n]()},onChange:function(){t.canvas&&t.selectionStart===t.selectionEnd&&t.renderCursorOrSelection()},abort:function(){return o.isAborted}}),o},_onTickComplete:function(){var t=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){t._currentTickCompleteState=t._animateCursor(t,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(t){var e=this,r=t?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){e._tick()}),r)},abortCursorAnimation:function(){var t=this._currentTickState||this._currentTickCompleteState,canvas=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,t&&canvas&&canvas.clearContext(canvas.contextTop||canvas.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(t){var e=0,r=t-1;if(this._reSpace.test(this._text[r]))for(;this._reSpace.test(this._text[r]);)e++,r--;for(;/\S/.test(this._text[r])&&r>-1;)e++,r--;return t-e},findWordBoundaryRight:function(t){var e=0,r=t;if(this._reSpace.test(this._text[r]))for(;this._reSpace.test(this._text[r]);)e++,r++;for(;/\S/.test(this._text[r])&&r<this._text.length;)e++,r++;return t+e},findLineBoundaryLeft:function(t){for(var e=0,r=t-1;!/\n/.test(this._text[r])&&r>-1;)e++,r--;return t-e},findLineBoundaryRight:function(t){for(var e=0,r=t;!/\n/.test(this._text[r])&&r<this._text.length;)e++,r++;return t+e},searchWordBoundary:function(t,e){for(var text=this._text,r=this._reSpace.test(text[t])?t-1:t,n=text[r],o=F.reNonWord;!o.test(n)&&r>0&&r<text.length;)n=text[r+=e];return o.test(n)&&(r+=1===e?0:1),r},selectWord:function(t){t=t||this.selectionStart;var e=this.searchWordBoundary(t,-1),r=this.searchWordBoundary(t,1);this.selectionStart=e,this.selectionEnd=r,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(t){t=t||this.selectionStart;var e=this.findLineBoundaryLeft(t),r=this.findLineBoundaryRight(t);return this.selectionStart=e,this.selectionEnd=r,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(t){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(t),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(canvas){canvas._iTextInstances&&canvas._iTextInstances.forEach((function(t){t.selected=!1,t.isEditing&&t.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(t){if(this.__isMousedown&&this.isEditing){var e=this.getSelectionStartFromPointer(t.e),r=this.selectionStart,n=this.selectionEnd;(e===this.__selectionStartOnMouseDown&&r!==n||r!==e&&n!==e)&&(e>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=e):(this.selectionStart=e,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===r&&this.selectionEnd===n||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(t,e,text){var r=text.slice(0,t),n=F.util.string.graphemeSplit(r).length;if(t===e)return{selectionStart:n,selectionEnd:n};var o=text.slice(t,e);return{selectionStart:n,selectionEnd:n+F.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(t,e,r){var n=r.slice(0,t).join("").length;return t===e?{selectionStart:n,selectionEnd:n}:{selectionStart:n,selectionEnd:n+r.slice(t,e).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var t=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=t.selectionStart,this.hiddenTextarea.selectionEnd=t.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var t=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=t.selectionEnd,this.inCompositionMode||(this.selectionStart=t.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var style=this._calcTextareaPosition();this.hiddenTextarea.style.left=style.left,this.hiddenTextarea.style.top=style.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var t=this.inCompositionMode?this.compositionStart:this.selectionStart,e=this._getCursorBoundaries(t),r=this.get2DCursorLocation(t),n=r.lineIndex,o=r.charIndex,l=this.getValueOfPropertyAt(n,o,"fontSize")*this.lineHeight,c=e.leftOffset,h=this.calcTransformMatrix(),p={x:e.left+c,y:e.top+e.topOffset+l},f=this.canvas.getRetinaScaling(),d=this.canvas.upperCanvasEl,m=d.width/f,y=d.height/f,v=m-l,_=y-l,w=d.clientWidth/m,x=d.clientHeight/y;return p=F.util.transformPoint(p,h),(p=F.util.transformPoint(p,this.canvas.viewportTransform)).x*=w,p.y*=x,p.x<0&&(p.x=0),p.x>v&&(p.x=v),p.y<0&&(p.y=0),p.y>_&&(p.y=_),p.x+=this.canvas._offset.left,p.y+=this.canvas._offset.top,{left:p.x+"px",top:p.y+"px",fontSize:l+"px",charHeight:l}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var t=this._textBeforeEdit!==this.text,e=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,e&&(e.blur&&e.blur(),e.parentNode&&e.parentNode.removeChild(e)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),t&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),t&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var t in this.styles)this._textLines[t]||delete this.styles[t]},removeStyleFromTo:function(t,e){var i,r,n=this.get2DCursorLocation(t,!0),o=this.get2DCursorLocation(e,!0),l=n.lineIndex,c=n.charIndex,h=o.lineIndex,f=o.charIndex;if(l!==h){if(this.styles[l])for(i=c;i<this._unwrappedTextLines[l].length;i++)delete this.styles[l][i];if(this.styles[h])for(i=f;i<this._unwrappedTextLines[h].length;i++)(r=this.styles[h][i])&&(this.styles[l]||(this.styles[l]={}),this.styles[l][c+i-f]=r);for(i=l+1;i<=h;i++)delete this.styles[i];this.shiftLineStyles(h,l-h)}else if(this.styles[l]){r=this.styles[l];var d,m,y=f-c;for(i=c;i<f;i++)delete r[i];for(m in this.styles[l])(d=parseInt(m,10))>=f&&(r[d-y]=r[m],delete r[m])}},shiftLineStyles:function(t,e){var r=O(this.styles);for(var line in this.styles){var n=parseInt(line,10);n>t&&(this.styles[n+e]=r[n],r[n-e]||delete this.styles[n])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,e,r,n){var o,l={},c=!1,h=this._unwrappedTextLines[t].length===e;for(var f in r||(r=1),this.shiftLineStyles(t,r),this.styles[t]&&(o=this.styles[t][0===e?e:e-1]),this.styles[t]){var d=parseInt(f,10);d>=e&&(c=!0,l[d-e]=this.styles[t][f],h&&0===e||delete this.styles[t][f])}var m=!1;for(c&&!h&&(this.styles[t+r]=l,m=!0),m&&r--;r>0;)n&&n[r-1]?this.styles[t+r]={0:O(n[r-1])}:o?this.styles[t+r]={0:O(o)}:delete this.styles[t+r],r--;this._forceClearCache=!0},insertCharStyleObject:function(t,e,r,n){this.styles||(this.styles={});var o=this.styles[t],l=o?O(o):{};for(var c in r||(r=1),l){var h=parseInt(c,10);h>=e&&(o[h+r]=l[h],l[h-r]||delete o[h])}if(this._forceClearCache=!0,n)for(;r--;)Object.keys(n[r]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][e+r]=O(n[r]));else if(o)for(var f=o[e?e-1:1];f&&r--;)this.styles[t][e+r]=O(f)},insertNewStyleBlock:function(t,e,r){for(var n=this.get2DCursorLocation(e,!0),o=[0],l=0,i=0;i<t.length;i++)"\n"===t[i]?o[++l]=0:o[l]++;for(o[0]>0&&(this.insertCharStyleObject(n.lineIndex,n.charIndex,o[0],r),r=r&&r.slice(o[0]+1)),l&&this.insertNewlineStyleObject(n.lineIndex,n.charIndex+o[0],l),i=1;i<l;i++)o[i]>0?this.insertCharStyleObject(n.lineIndex+i,0,o[i],r):r&&this.styles[n.lineIndex+i]&&r[0]&&(this.styles[n.lineIndex+i][0]=r[0]),r=r&&r.slice(o[i]+1);o[i]>0&&this.insertCharStyleObject(n.lineIndex+i,0,o[i],r)},setSelectionStartEndWithShift:function(t,e,r){r<=t?(e===t?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=t),this.selectionStart=r):r>t&&r<e?"right"===this._selectionDirection?this.selectionEnd=r:this.selectionStart=r:(e===t?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=e),this.selectionEnd=r)},setSelectionInBoundaries:function(){var t=this.text.length;this.selectionStart>t?this.selectionStart=t:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>t?this.selectionEnd=t:this.selectionEnd<0&&(this.selectionEnd=0)}}),F.util.object.extend(F.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(t){if(this.canvas){this.__newClickTime=+new Date;var e=t.pointer;this.isTripleClick(e)&&(this.fire("tripleclick",t),this._stopEvent(t.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=e,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(t){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===t.x&&this.__lastPointer.y===t.y},_stopEvent:function(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(t){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(t.e))},tripleClickHandler:function(t){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(t.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(t){!this.canvas||!this.editable||t.e.button&&1!==t.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(t.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(t){!this.canvas||!this.editable||t.e.button&&1!==t.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(t){if(this.__isMousedown=!1,!(!this.editable||this.group||t.transform&&t.transform.actionPerformed||t.e.button&&1!==t.e.button)){if(this.canvas){var e=this.canvas._activeObject;if(e&&e!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(t.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(t){var e=this.getSelectionStartFromPointer(t),r=this.selectionStart,n=this.selectionEnd;t.shiftKey?this.setSelectionStartEndWithShift(r,n,e):(this.selectionStart=e,this.selectionEnd=e),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(t){for(var line,e=this.getLocalPointer(t),r=0,n=0,o=0,l=0,c=0,i=0,h=this._textLines.length;i<h&&o<=e.y;i++)o+=this.getHeightOfLine(i)*this.scaleY,c=i,i>0&&(l+=this._textLines[i-1].length+this.missingNewlineOffset(i-1));n=this._getLineLeftOffset(c)*this.scaleX,line=this._textLines[c],"rtl"===this.direction&&(e.x=this.width*this.scaleX-e.x+n);for(var f=0,d=line.length;f<d&&(r=n,(n+=this.__charBounds[c][f].kernedWidth*this.scaleX)<=e.x);f++)l++;return this._getNewSelectionStartFromOffset(e,r,n,l,d)},_getNewSelectionStartFromOffset:function(t,e,r,n,o){var l=t.x-e,c=r-t.x,h=n+(c>l||c<0?0:1);return this.flipX&&(h=o-h),h>this._text.length&&(h=this._text.length),h}}),F.util.object.extend(F.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=F.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var style=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+style.top+"; left: "+style.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; paddingï½°top: "+style.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):F.document.body.appendChild(this.hiddenTextarea),F.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),F.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),F.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),F.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),F.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),F.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),F.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),F.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),F.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(F.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(t){if(this.isEditing){var e="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(t.keyCode in e)this[e[t.keyCode]](t);else{if(!(t.keyCode in this.ctrlKeysMapDown)||!t.ctrlKey&&!t.metaKey)return;this[this.ctrlKeysMapDown[t.keyCode]](t)}t.stopImmediatePropagation(),t.preventDefault(),t.keyCode>=33&&t.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(t){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:t.keyCode in this.ctrlKeysMapUp&&(t.ctrlKey||t.metaKey)&&(this[this.ctrlKeysMapUp[t.keyCode]](t),t.stopImmediatePropagation(),t.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(t){var e=this.fromPaste;if(this.fromPaste=!1,t&&t.stopPropagation(),this.isEditing){var r,n,o,l,c,h=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,f=this._text.length,d=h.length,m=d-f,y=this.selectionStart,v=this.selectionEnd,_=y!==v;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var w=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),x=y>w.selectionStart;_?(r=this._text.slice(y,v),m+=v-y):d<f&&(r=x?this._text.slice(v+m,v):this._text.slice(y,y-m)),n=h.slice(w.selectionEnd-m,w.selectionEnd),r&&r.length&&(n.length&&(o=this.getSelectionStyles(y,y+1,!1),o=n.map((function(){return o[0]}))),_?(l=y,c=v):x?(l=v-r.length,c=v):(l=v,c=v+r.length),this.removeStyleFromTo(l,c)),n.length&&(e&&n.join("")===F.copiedText&&!F.disableStyleCopyPaste&&(o=F.copiedTextStyle),this.insertNewStyleBlock(n,y,o)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(t){this.compositionStart=t.target.selectionStart,this.compositionEnd=t.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(F.copiedText=this.getSelectedText(),F.disableStyleCopyPaste?F.copiedTextStyle=null:F.c
vendor: 13,667 bytes, line 2
2opiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(t){return t&&t.clipboardData||F.window.clipboardData},_getWidthBeforeCursor:function(t,e){var r,n=this._getLineLeftOffset(t);return e>0&&(n+=(r=this.__charBounds[t][e-1]).left+r.width),n},getDownCursorOffset:function(t,e){var r=this._getSelectionForOffset(t,e),n=this.get2DCursorLocation(r),o=n.lineIndex;if(o===this._textLines.length-1||t.metaKey||34===t.keyCode)return this._text.length-r;var l=n.charIndex,c=this._getWidthBeforeCursor(o,l),h=this._getIndexOnLine(o+1,c);return this._textLines[o].slice(l).length+h+1+this.missingNewlineOffset(o)},_getSelectionForOffset:function(t,e){return t.shiftKey&&this.selectionStart!==this.selectionEnd&&e?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(t,e){var r=this._getSelectionForOffset(t,e),n=this.get2DCursorLocation(r),o=n.lineIndex;if(0===o||t.metaKey||33===t.keyCode)return-r;var l=n.charIndex,c=this._getWidthBeforeCursor(o,l),h=this._getIndexOnLine(o-1,c),f=this._textLines[o].slice(0,l),d=this.missingNewlineOffset(o-1);return-this._textLines[o-1].length+h-f.length+(1-d)},_getIndexOnLine:function(t,e){for(var r,n,line=this._textLines[t],o=this._getLineLeftOffset(t),l=0,c=0,h=line.length;c<h;c++)if((o+=r=this.__charBounds[t][c].width)>e){n=!0;var f=o-r,d=o,m=Math.abs(f-e);l=Math.abs(d-e)<m?c:c-1;break}return n||(l=line.length-1),l},moveCursorDown:function(t){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",t)},moveCursorUp:function(t){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",t)},_moveCursorUpOrDown:function(t,e){var r=this["get"+t+"CursorOffset"](e,"right"===this._selectionDirection);e.shiftKey?this.moveCursorWithShift(r):this.moveCursorWithoutShift(r),0!==r&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(t){var e="left"===this._selectionDirection?this.selectionStart+t:this.selectionEnd+t;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,e),0!==t},moveCursorWithoutShift:function(t){return t<0?(this.selectionStart+=t,this.selectionEnd=this.selectionStart):(this.selectionEnd+=t,this.selectionStart=this.selectionEnd),0!==t},moveCursorLeft:function(t){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",t)},_move:function(t,e,r){var n;if(t.altKey)n=this["findWordBoundary"+r](this[e]);else{if(!t.metaKey&&35!==t.keyCode&&36!==t.keyCode)return this[e]+="Left"===r?-1:1,!0;n=this["findLineBoundary"+r](this[e])}if(void 0!==typeof n&&this[e]!==n)return this[e]=n,!0},_moveLeft:function(t,e){return this._move(t,e,"Left")},_moveRight:function(t,e){return this._move(t,e,"Right")},moveCursorLeftWithoutShift:function(t){var e=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(e=this._moveLeft(t,"selectionStart")),this.selectionEnd=this.selectionStart,e},moveCursorLeftWithShift:function(t){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(t,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(t,"selectionStart")):void 0},moveCursorRight:function(t){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",t)},_moveCursorLeftOrRight:function(t,e){var r="moveCursor"+t+"With";this._currentCursorOpacity=1,e.shiftKey?r+="Shift":r+="outShift",this[r](e)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(t){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(t,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(t,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(t){var e=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(e=this._moveRight(t,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,e},removeChars:function(t,e){void 0===e&&(e=t+1),this.removeStyleFromTo(t,e),this._text.splice(t,e-t),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(text,style,t,e){void 0===e&&(e=t),e>t&&this.removeStyleFromTo(t,e);var r=F.util.string.graphemeSplit(text);this.insertNewStyleBlock(r,t,style),this._text=[].concat(this._text.slice(0,t),r,this._text.slice(e)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),A=F.util.toFixed,P=/ +/g,F.util.object.extend(F.Text.prototype,{_toSVG:function(){var t=this._getSVGLeftTopOffsets(),e=this._getSVGTextAndBg(t.textTop,t.textLeft);return this._wrapSVGTextAndBg(e)},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(t){var e=this.getSvgTextDecoration(this);return[t.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",e?'text-decoration="'+e+'" ':"",'style="',this.getSvgStyles(!0),'"',this.addPaintOrder()," >",t.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(t,e){var r,n=[],o=[],l=t;this._setSVGBg(o);for(var i=0,c=this._textLines.length;i<c;i++)r=this._getLineLeftOffset(i),(this.textBackgroundColor||this.styleHas("textBackgroundColor",i))&&this._setSVGTextLineBg(o,i,e+r,l),this._setSVGTextLineText(n,i,e+r,l),l+=this.getHeightOfLine(i);return{textSpans:n,textBgRects:o}},_createTextCharSpan:function(t,e,r,n){var o=t!==t.trim()||t.match(P),l=this.getSvgSpanStyles(e,o),c=l?'style="'+l+'"':"",h=e.deltaY,f="",d=F.Object.NUM_FRACTION_DIGITS;return h&&(f=' dy="'+A(h,d)+'" '),['<tspan x="',A(r,d),'" y="',A(n,d),'" ',f,c,">",F.util.string.escapeXml(t),"</tspan>"].join("")},_setSVGTextLineText:function(t,e,r,n){var o,l,c,style,h,f=this.getHeightOfLine(e),d=-1!==this.textAlign.indexOf("justify"),m="",y=0,line=this._textLines[e];n+=f*(1-this._fontSizeFraction)/this.lineHeight;for(var i=0,v=line.length-1;i<=v;i++)h=i===v||this.charSpacing,m+=line[i],c=this.__charBounds[e][i],0===y?(r+=c.kernedWidth-c.width,y+=c.width):y+=c.kernedWidth,d&&!h&&this._reSpaceAndTab.test(line[i])&&(h=!0),h||(o=o||this.getCompleteStyleDeclaration(e,i),l=this.getCompleteStyleDeclaration(e,i+1),h=this._hasStyleChangedForSvg(o,l)),h&&(style=this._getStyleDeclaration(e,i)||{},t.push(this._createTextCharSpan(m,style,r,n)),m="",o=l,r+=y,y=0)},_pushTextBgRect:function(t,e,r,n,o,l){var c=F.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(e),' x="',A(r,c),'" y="',A(n,c),'" width="',A(o,c),'" height="',A(l,c),'"></rect>\n')},_setSVGTextLineBg:function(t,i,e,r){for(var n,o,line=this._textLines[i],l=this.getHeightOfLine(i)/this.lineHeight,c=0,h=0,f=this.getValueOfPropertyAt(i,0,"textBackgroundColor"),d=0,m=line.length;d<m;d++)n=this.__charBounds[i][d],(o=this.getValueOfPropertyAt(i,d,"textBackgroundColor"))!==f?(f&&this._pushTextBgRect(t,f,e+h,r,c,l),h=n.left,c=n.width,f=o):c+=n.kernedWidth;o&&this._pushTextBgRect(t,o,e+h,r,c,l)},_getFillAttributes:function(t){var e=t&&"string"==typeof t?new F.Color(t):"";return e&&e.getSource()&&1!==e.getAlpha()?'opacity="'+e.getAlpha()+'" fill="'+e.setAlpha(1).toRgb()+'"':'fill="'+t+'"'},_getSVGLineTopOffset:function(t){for(var e,r=0,n=0;n<t;n++)r+=this.getHeightOfLine(n);return e=this.getHeightOfLine(n),{lineTop:r,offset:(this._fontSizeMult-this._fontSizeFraction)*e/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(t){return F.Object.prototype.getSvgStyles.call(this,t)+" white-space: pre;"}}),function(t){"use strict";var e=t.fabric||(t.fabric={});e.Textbox=e.util.createClass(e.IText,e.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:e.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(t){for(var e=0,r=0,n=0,map={},i=0;i<t.graphemeLines.length;i++)"\n"===t.graphemeText[n]&&i>0?(r=0,n++,e++):!this.splitByGrapheme&&this._reSpaceAndTab.test(t.graphemeText[n])&&i>0&&(r++,n++),map[i]={line:e,offset:r},n+=t.graphemeLines[i].length,r+=t.graphemeLines[i].length;return map},styleHas:function(t,r){if(this._styleMap&&!this.isWrapping){var map=this._styleMap[r];map&&(r=map.line)}return e.Text.prototype.styleHas.call(this,t,r)},isEmptyStyles:function(t){if(!this.styles)return!0;var e,r,n=0,o=!1,map=this._styleMap[t],l=this._styleMap[t+1];for(var c in map&&(t=map.line,n=map.offset),l&&(o=l.line===t,e=l.offset),r=void 0===t?this.styles:{line:this.styles[t]})for(var h in r[c])if(h>=n&&(!o||h<e))for(var f in r[c][h])return!1;return!0},_getStyleDeclaration:function(t,e){if(this._styleMap&&!this.isWrapping){var map=this._styleMap[t];if(!map)return null;t=map.line,e=map.offset+e}return this.callSuper("_getStyleDeclaration",t,e)},_setStyleDeclaration:function(t,e,style){var map=this._styleMap[t];t=map.line,e=map.offset+e,this.styles[t][e]=style},_deleteStyleDeclaration:function(t,e){var map=this._styleMap[t];t=map.line,e=map.offset+e,delete this.styles[t][e]},_getLineStyle:function(t){var map=this._styleMap[t];return!!this.styles[map.line]},_setLineStyle:function(t){var map=this._styleMap[t];this.styles[map.line]={}},_wrapText:function(t,e){var i,r=[];for(this.isWrapping=!0,i=0;i<t.length;i++)r=r.concat(this._wrapLine(t[i],i,e));return this.isWrapping=!1,r},_measureWord:function(t,e,r){var n,o=0;r=r||0;for(var i=0,l=t.length;i<l;i++){o+=this._getGraphemeBox(t[i],e,i+r,n,true).kernedWidth,n=t[i]}return o},_wrapLine:function(t,r,n,o){var l=0,c=this.splitByGrapheme,h=[],line=[],f=c?e.util.string.graphemeSplit(t):t.split(this._wordJoiners),d="",m=0,y=c?"":" ",v=0,_=0,w=0,x=!0,C=this._getWidthOfCharSpacing();o=o||0;0===f.length&&f.push([]),n-=o;for(var i=0;i<f.length;i++)d=c?f[i]:e.util.string.graphemeSplit(f[i]),v=this._measureWord(d,r,m),m+=d.length,(l+=_+v-C)>n&&!x?(h.push(line),line=[],l=v,x=!0):l+=C,x||c||line.push(y),line=line.concat(d),_=c?0:this._measureWord([y],r,m),m++,x=!1,v>w&&(w=v);return i&&h.push(line),w+o>this.dynamicMinWidth&&(this.dynamicMinWidth=w-C+o),h},isEndOfWrapping:function(t){return!this._styleMap[t+1]||this._styleMap[t+1].line!==this._styleMap[t].line},missingNewlineOffset:function(t){return this.splitByGrapheme?this.isEndOfWrapping(t)?1:0:1},_splitTextIntoLines:function(text){for(var t=e.Text.prototype._splitTextIntoLines.call(this,text),r=this._wrapText(t.lines,this.width),n=new Array(r.length),i=0;i<r.length;i++)n[i]=r[i].join("");return t.lines=n,t.graphemeLines=r,t},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var t={};for(var e in this._styleMap)this._textLines[e]&&(t[this._styleMap[e].line]=1);for(var e in this.styles)t[e]||delete this.styles[e]},toObject:function(t){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(t))}}),e.Textbox.fromObject=function(object,t){return e.Object._fromObject("Textbox",object,t,"text")}}(e),function(){var t=F.controlsUtils,e=t.scaleSkewCursorStyleHandler,r=t.scaleCursorStyleHandler,n=t.scalingEqually,o=t.scalingYOrSkewingX,l=t.scalingXOrSkewingY,c=t.scaleOrSkewActionName,h=F.Object.prototype.controls;if(h.ml=new F.Control({x:-.5,y:0,cursorStyleHandler:e,actionHandler:l,getActionName:c}),h.mr=new F.Control({x:.5,y:0,cursorStyleHandler:e,actionHandler:l,getActionName:c}),h.mb=new F.Control({x:0,y:.5,cursorStyleHandler:e,actionHandler:o,getActionName:c}),h.mt=new F.Control({x:0,y:-.5,cursorStyleHandler:e,actionHandler:o,getActionName:c}),h.tl=new F.Control({x:-.5,y:-.5,cursorStyleHandler:r,actionHandler:n}),h.tr=new F.Control({x:.5,y:-.5,cursorStyleHandler:r,actionHandler:n}),h.bl=new F.Control({x:-.5,y:.5,cursorStyleHandler:r,actionHandler:n}),h.br=new F.Control({x:.5,y:.5,cursorStyleHandler:r,actionHandler:n}),h.mtr=new F.Control({x:0,y:-.5,actionHandler:t.rotationWithSnapping,cursorStyleHandler:t.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),F.Textbox){var f=F.Textbox.prototype.controls={};f.mtr=h.mtr,f.tr=h.tr,f.br=h.br,f.tl=h.tl,f.bl=h.bl,f.mt=h.mt,f.mb=h.mb,f.mr=new F.Control({x:.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:"resizing"}),f.ml=new F.Control({x:-.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:"resizing"})}}()}).call(this,r(89).Buffer)},70:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"d",(function(){return o}
2)),r.d(e,"c",(function(){return l})),r.d(e,"e",(function(){return h})),r.d(e,"b",(function(){return f}));class n{constructor(t,e,source){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=source}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class o{constructor(t,e,r,line,n,o){this.kind=t,this.start=e,this.end=r,this.line=line,this.column=n,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const l={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},c=new Set(Object.keys(l));function h(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&c.has(e)}let f;!function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(f||(f={}))},75:function(t,e,r){"use strict";function n(code){return 9===code||32===code}function o(code){return code>=48&&code<=57}function l(code){return code>=97&&code<=122||code>=65&&code<=90}function c(code){return l(code)||95===code}function h(code){return l(code)||o(code)||95===code}r.d(e,"d",(function(){return n})),r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return c})),r.d(e,"b",(function(){return h}))},830:function(t,e,r){var content=r(831);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(3).default)("92c0cd9c",content,!0,{sourceMap:!1})},831:function(t,e,r){var n=r(2)(!1);n.push([t.i,'@charset "UTF-8";@keyframes plyr-progress{to{background-position:25px 0;background-position:var(--plyr-progress-loading-size,25px) 0}}@keyframes plyr-popup{0%{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{0%{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:inherit;font-family:var(--plyr-font-family,inherit);font-variant-numeric:tabular-nums;font-weight:400;font-weight:var(--plyr-font-weight-regular,400);line-height:1.7;line-height:var(--plyr-line-height,1.7);max-width:100%;
2min-width:200px;position:relative;text-shadow:none;transition:box-shadow .3s ease;z-index:0}.plyr audio,.plyr iframe,.plyr video{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui :after,.plyr--full-ui :before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:#4a5464;background:var(--plyr-badge-background,#4a5464);border-radius:2px;border-radius:var(--plyr-badge-border-radius,2px);color:#fff;color:var(--plyr-badge-text-color,#fff);font-size:9px;font-size:var(--plyr-font-size-badge,9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in .3s ease;bottom:0;display:none;font-size:13px;font-size:var(--plyr-font-size-small,13px);left:0;padding:10px;padding:var(--plyr-control-spacing,10px);position:absolute;text-align:center;transition:transform .4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width:480px){.plyr__captions{font-size:15px;font-size:var(--plyr-font-size-base,15px);padding:20px;padding:calc(var(--plyr-control-spacing, 10px)*2)}}@media (min-width:768px){.plyr__captions{font-size:18px;font-size:var(--plyr-font-size-large,18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(-40px);transform:translateY(calc(var(--plyr-control-spacing, 10px)*-4))}.plyr__caption{background:rgba(0,0,0,.8);background:var(--plyr-captions-background,rgba(0,0,0,.8));border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#fff;color:var(--plyr-captions-text-color,#fff);line-height:185%;padding:.2em .5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:3px;border-radius:var(--plyr-control-radius,3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;padding:calc(var(--plyr-control-spacing, 10px)*.7);position:relative;transition:all .3s ease}.plyr__control svg{fill:currentColor;display:block;height:18px;height:var(--plyr-control-icon-size,18px);pointer-events:none;width:18px;width:var(--plyr-control-icon-size,18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline:3px dotted #00b2ff;outline:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff))) dotted 3px;outline-offset:2px}a.plyr__control{text-decoration:none}.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control.plyr__control--pressed .label--not-pressed,.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,a.plyr__control:after,a.plyr__control:before{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:2.5px;margin-left:calc(var(--plyr-control-spacing, 10px)/4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:2.5px;padding-left:calc(var(--plyr-control-spacing, 10px)/4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 5px;padding:0 calc(var(--plyr-control-spacing, 10px)/2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time,.plyr__controls .plyr__controls__item.plyr__time:first-child{padding-left:0}.plyr [data-plyr=airplay],.plyr [data-plyr=captions],.plyr [data-plyr=fullscreen],.plyr [data-plyr=pip],.plyr__controls:empty{display:none}.plyr--airplay-supported [data-plyr=airplay],.plyr--captions-enabled [data-plyr=captions],.plyr--fullscreen-enabled [data-plyr=fullscreen],.plyr--pip-supported [data-plyr=pip]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform .3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup .2s ease;background:hsla(0,0%,100%,.9);background:var(--plyr-menu-background,hsla(0,0%,100%,.9));border-radius:4px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);box-shadow:var(--plyr-menu-shadow,0 1px 2px rgba(0,0,0,.15));color:#4a5464;color:var(--plyr-menu-color,#4a5464);font-size:15px;font-size:var(--plyr-font-size-base,15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.plyr__menu__container:after{border:4px solid transparent;border-top-color:hsla(0,0%,100%,.9);border:var(--plyr-menu-arrow-size,4px) solid transparent;border-top-color:var(--plyr-menu-background,hsla(0,0%,100%,.9));content:"";height:0;position:absolute;right:14px;right:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7 - var(--plyr-menu-arrow-size, 4px)/2);top:100%;width:0}.plyr__menu__container [role=menu]{padding:7px;padding:calc(var(--plyr-control-spacing, 10px)*.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:#4a5464;color:var(--plyr-menu-color,#4a5464);display:flex;font-size:13px;font-size:var(--plyr-font-size-menu,var(--plyr-font-size-small,13px));padding:4.66667px 10.5px;padding:calc(var(--plyr-control-spacing, 10px)*.7/1.5) calc(var(--plyr-control-spacing, 10px)*.7*1.5);-webkit-user-select:none;user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control:after{border:4px solid transparent;border:var(--plyr-menu-item-arrow-size,4px) solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:28px;padding-right:calc(var(--plyr-control-spacing, 10px)*.7*4)}.plyr__menu__container .plyr__control--forward:after{border-left-color:#728197;border-left-color:var(--plyr-menu-arrow-color,#728197);right:6.5px;right:calc(var(--plyr-control-spacing, 10px)*.7*1.5 - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus:after,.plyr__menu__container .plyr__control--forward:hover:after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:400;
2font-weight:var(--plyr-font-weight-regular,400);margin:7px;margin:calc(var(--plyr-control-spacing, 10px)*.7);margin-bottom:3.5px;margin-bottom:calc(var(--plyr-control-spacing, 10px)*.7/2);padding-left:28px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7*4);position:relative;width:calc(100% - 14px);width:calc(100% - var(--plyr-control-spacing, 10px)*.7*2)}.plyr__menu__container .plyr__control--back:after{border-right-color:#728197;border-right-color:var(--plyr-menu-arrow-color,#728197);left:6.5px;left:calc(var(--plyr-control-spacing, 10px)*.7*1.5 - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back:before{background:#dcdfe5;background:var(--plyr-menu-back-border-color,#dcdfe5);box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color,#fff);content:"";height:1px;left:0;margin-top:3.5px;margin-top:calc(var(--plyr-control-spacing, 10px)*.7/2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus:after,.plyr__menu__container .plyr__control--back:hover:after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:7px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7)}.plyr__menu__container .plyr__control[role=menuitemradio]:after,.plyr__menu__container .plyr__control[role=menuitemradio]:before{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]:before{background:rgba(0,0,0,.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;margin-right:var(--plyr-control-spacing,10px);transition:all .3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]:after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:before{background:#00b2ff;background:var(--plyr-control-toggle-checked-background,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus:before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover:before{background:rgba(35,40,47,.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc(-7px - -2);margin-right:calc(var(--plyr-control-spacing, 10px)*.7*-1 - -2);overflow:hidden;padding-left:24.5px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7*3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;border:0;border-radius:26px;border-radius:calc(var(--plyr-range-thumb-height, 13px)*2);color:#00b2ff;color:var(--plyr-range-fill-background,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));display:block;height:19px;height:calc(var(--plyr-range-thumb-active-shadow-width, 3px)*2 + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;background-image:linear-gradient(90deg,currentColor 0,transparent 0);background-image:linear-gradient(to right,currentColor var(--value,0),transparent var(--value,0));border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-webkit-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-webkit-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);margin-top:-4px;margin-top:calc((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px))/2*-1);position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:2.5px;
2border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-moz-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);position:relative;-moz-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px)}.plyr--full-ui input[type=range]::-ms-track{color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper,.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;background:currentColor;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);margin-top:0;position:relative;-ms-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline:3px dotted #00b2ff;outline:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff))) dotted 3px;outline-offset:2px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline:3px dotted #00b2ff;outline:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff))) dotted 3px;outline-offset:2px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline:3px dotted #00b2ff;outline:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff))) dotted 3px;outline-offset:2px}.plyr__poster{background-color:#000;background-color:var(--plyr-video-background,var(--plyr-video-background,#000));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__time+.plyr__time:before{content:"â";margin-right:10px;margin-right:var(--plyr-control-spacing,10px)}@media (max-width:767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:hsla(0,0%,100%,.9);background:var(--plyr-tooltip-background,hsla(0,0%,100%,.9));border-radius:5px;border-radius:var(--plyr-tooltip-radius,5px);bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);box-shadow:var(--plyr-tooltip-shadow,0 1px 2px rgba(0,0,0,.15));color:#4a5464;color:var(--plyr-tooltip-color,#4a5464);font-size:13px;font-size:var(--plyr-font-size-small,13px);font-weight:400;font-weight:var(--plyr-font-weight-regular,400);left:50%;line-height:1.3;margin-bottom:10px;margin-bottom:calc(var(--plyr-control-spacing, 10px)/2*2);opacity:0;padding:5px 7.5px;padding:calc(var(--plyr-control-spacing, 10px)/2) calc(var(--plyr-control-spacing, 10px)/2*1.5);pointer-events:none;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2}.plyr__tooltip:before{border-left:4px solid transparent;border-left:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-right:4px solid transparent;border-right:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-top:4px solid hsla(0,0%,100%,.9);border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,hsla(0,0%,100%,.9));bottom:-4px;bottom:calc(var(--plyr-tooltip-arrow-size, 4px)*-1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr .plyr__control:hover .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translateY(10px) scale(.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip:before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip:before{left:16px;left:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7)}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translateY(10px) scale(.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip:before{left:auto;right:16px;right:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7);transform:translateX(50%)}.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip{transform:translate(0) scale(1)}
2.plyr__progress{left:6.5px;left:calc(var(--plyr-range-thumb-height, 13px)*.5);margin-right:13px;margin-right:var(--plyr-range-thumb-height,13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:-6.5px;margin-left:calc(var(--plyr-range-thumb-height, 13px)*-.5);margin-right:-6.5px;margin-right:calc(var(--plyr-range-thumb-height, 13px)*-.5);width:calc(100% + 13px);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{left:0;max-width:120px;overflow-wrap:break-word;white-space:normal}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:5px;height:var(--plyr-range-track-height,5px);left:0;margin-top:-2.5px;margin-top:calc((var(--plyr-range-track-height, 5px)/2)*-1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-webkit-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-moz-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;-ms-transition:width .2s ease;transition:width .2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg,rgba(35,40,47,.6) 25%,transparent 0,transparent 50%,rgba(35,40,47,.6) 0,rgba(35,40,47,.6) 75%,transparent 0,transparent);background-image:linear-gradient(-45deg,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 25%,transparent 25%,transparent 50%,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 50%,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 75%,transparent 75%,transparent);background-repeat:repeat-x;background-size:25px 25px;background-size:var(--plyr-progress-loading-size,25px) var(--plyr-progress-loading-size,25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:hsla(0,0%,100%,.25);background-color:var(--plyr-video-progress-buffered-background,hsla(0,0%,100%,.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6))}.plyr__progress__marker{background-color:#fff;background-color:var(--plyr-progress-marker-background,#fff);border-radius:1px;height:5px;height:var(--plyr-range-track-height,5px);position:absolute;top:50%;transform:translate(-50%,-50%);width:3px;width:var(--plyr-progress-marker-width,3px);z-index:3}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:5px;margin-left:calc(var(--plyr-control-spacing, 10px)/2);margin-right:5px;margin-right:calc(var(--plyr-control-spacing, 10px)/2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:#fff;background:var(--plyr-audio-controls-background,#fff);border-radius:inherit;color:#4a5464;color:var(--plyr-audio-control-color,#4a5464);padding:10px;padding:var(--plyr-control-spacing,10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:#00b2ff;background:var(--plyr-audio-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));color:#fff;color:var(--plyr-audio-control-color-hover,#fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--audio .plyr__progress__buffer{color:rgba(193,200,209,.6);color:var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6))}.plyr--video{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio:16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:linear-gradient(transparent,rgba(0,0,0,.75));background:var(--plyr-video-controls-background,linear-gradient(transparent,rgba(0,0,0,.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:#fff;color:var(--plyr-video-control-color,#fff);left:0;padding:5px;padding:calc(var(--plyr-control-spacing, 10px)/2);padding-top:20px;padding-top:calc(var(--plyr-control-spacing, 10px)*2);position:absolute;right:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out;z-index:3}@media (min-width:480px){.plyr--video .plyr__controls{padding:10px;padding:var(--plyr-control-spacing,10px);padding-top:35px;padding-top:calc(var(--plyr-control-spacing, 10px)*3.5)}}
2.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:#00b2ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));color:#fff;color:var(--plyr-video-control-color-hover,#fff)}.plyr__control--overlaid{background:#00b2ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));border:0;border-radius:100%;color:#fff;color:var(--plyr-video-control-color,#fff);display:none;left:50%;opacity:.9;padding:15px;padding:calc(var(--plyr-control-spacing, 10px)*1.5);position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:focus,.plyr__control--overlaid:hover{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,hsla(0,0%,100%,.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:hsla(0,0%,100%,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,hsla(0,0%,100%,.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:hsla(0,0%,100%,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,hsla(0,0%,100%,.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px hsla(0,0%,100%,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,hsla(0,0%,100%,.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px hsla(0,0%,100%,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,hsla(0,0%,100%,.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px hsla(0,0%,100%,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,hsla(0,0%,100%,.5))}.plyr--video .plyr__progress__buffer{color:hsla(0,0%,100%,.25);color:var(--plyr-video-progress-buffered-background,hsla(0,0%,100%,.25))}.plyr:fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0!important;bottom:0;display:block;height:100%;left:0;margin:0;position:fixed;right:0;top:0;width:100%;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads:after{background:#23282f;border-radius:2px;bottom:10px;bottom:var(--plyr-control-spacing,10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:10px;right:var(--plyr-control-spacing,10px);z-index:3}.plyr__ads:empty:after{display:none}.plyr__cues{background:currentColor;display:block;height:5px;height:var(--plyr-range-track-height,5px);left:0;opacity:.8;position:absolute;top:50%;transform:translateY(-50%);width:3px;z-index:3}.plyr__preview-thumb{background-color:hsla(0,0%,100%,.9);background-color:var(--plyr-tooltip-background,hsla(0,0%,100%,.9));border-radius:5px;
2border-radius:var(--plyr-tooltip-radius,5px);bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);box-shadow:var(--plyr-tooltip-shadow,0 1px 2px rgba(0,0,0,.15));margin-bottom:10px;margin-bottom:calc(var(--plyr-control-spacing, 10px)/2*2);opacity:0;padding:3px;pointer-events:none;position:absolute;transform:translateY(10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0) scale(1)}.plyr__preview-thumb:before{border-left:4px solid transparent;border-left:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-right:4px solid transparent;border-right:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-top:4px solid hsla(0,0%,100%,.9);border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,hsla(0,0%,100%,.9));bottom:-4px;bottom:calc(var(--plyr-tooltip-arrow-size, 4px)*-1);content:"";height:0;left:calc(50% + var(--preview-arrow-offset));position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:4px;border-radius:calc(var(--plyr-tooltip-radius, 5px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img,.plyr__preview-thumb__image-container:after{height:100%;left:0;position:absolute;top:0;width:100%}.plyr__preview-thumb__image-container:after{border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);content:"";pointer-events:none}.plyr__preview-thumb__image-container img{max-height:none;max-width:none}.plyr__preview-thumb__time-container{background:linear-gradient(transparent,rgba(0,0,0,.75));background:var(--plyr-video-controls-background,linear-gradient(transparent,rgba(0,0,0,.75)));border-bottom-left-radius:4px;border-bottom-left-radius:calc(var(--plyr-tooltip-radius, 5px) - 1px);border-bottom-right-radius:4px;border-bottom-right-radius:calc(var(--plyr-tooltip-radius, 5px) - 1px);bottom:0;left:0;line-height:1.1;padding:20px 6px 6px;position:absolute;right:0;z-index:3}.plyr__preview-thumb__time-container span{color:#fff;font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;-o-object-fit:contain;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none!important}.plyr__sr-only{clip:rect(1px,1px,1px,1px);border:0!important;height:1px!important;overflow:hidden;padding:0!important;position:absolute!important;width:1px!important}.plyr [hidden]{display:none!important}',""]),t.exports=n},864:function(t,e){!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),l="FormData"in t,c="ArrayBuffer"in t;if(c)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(t){return t&&h.indexOf(Object.prototype.toString.call(t))>-1};function d(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function m(t){return"string"!=typeof t&&(t=String(t)),t}function y(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function v(t){this.map={},t instanceof v?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(header){this.append(header[0],header[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function _(body){if(body.bodyUsed)return Promise.reject(new TypeError("Already read"));body.bodyUsed=!0}function w(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function x(t){var e=new FileReader,r=w(e);return e.readAsArrayBuffer(t),r}function C(t){if(t.slice)return t.slice(0);var view=new Uint8Array(t.byteLength);return view.set(new Uint8Array(t)),view.buffer}function S(){return this.bodyUsed=!1,this._initBody=function(body){var t;this._bodyInit=body,body?"string"==typeof body?this._bodyText=body:o&&Blob.prototype.isPrototypeOf(body)?this._bodyBlob=body:l&&FormData.prototype.isPrototypeOf(body)?this._bodyFormData=body:r&&URLSearchParams.prototype.isPrototypeOf(body)?this._bodyText=body.toString():c&&o&&((t=body)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=C(body.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(body)||f(body))?this._bodyArrayBuffer=C(body):this._bodyText=body=Object.prototype.toString.call(body):this._bodyText="",this.headers.get("content-type")||("string"==typeof body?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(body)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=_(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?_(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(x)}),this.text=function(){var t,e,r,n=_(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=w(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var view=new Uint8Array(t),e=new Array(view.length),i=0;i<view.length;i++)e[i]=String.fromCharCode(view[i]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l&&(this.formData=function(){return this.text().then(D)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(t,e){t=d(t),e=m(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},v.prototype.delete=function(t){delete this.map[d(t)]},v.prototype.get=function(t){return t=d(t),this.has(t)?this.map[t]:null},v.prototype.has=function(t){return this.map.hasOwnProperty(d(t))},v.prototype.set=function(t,e){this.map[d(t)]=m(e)},v.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},v.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),y(t)},v.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),y(t)},v.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),y(t)},n&&(v.prototype[Symbol.iterator]=v.prototype.entries);
vendor: 6,435 bytes, line 2
2var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function T(input,t){var e,r,body=(t=t||{}).body;if(input instanceof T){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,t.headers||(this.headers=new v(input.headers)),this.method=input.method,this.mode=input.mode,this.signal=input.signal,body||null==input._bodyInit||(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new v(t.headers)),this.method=(e=t.method||this.method||"GET",r=e.toUpperCase(),k.indexOf(r)>-1?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}function D(body){var form=new FormData;return body.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),n=e.join("=").replace(/\+/g," ");form.append(decodeURIComponent(r),decodeURIComponent(n))}})),form}function E(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new v(e.headers),this.url=e.url||"",this._initBody(t)}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})},S.call(T.prototype),S.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:0,statusText:""});return t.type="error",t};var O=[301,302,303,307,308];E.redirect=function(t,e){if(-1===O.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function A(input,t){return new Promise((function(r,n){var l=new T(input,t);if(l.signal&&l.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function h(){c.abort()}c.onload=function(){var t,e,n={status:c.status,statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new v,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(line){var t=line.split(":"),r=t.shift().trim();if(r){var n=t.join(":").trim();e.append(r,n)}})),e)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var body="response"in c?c.response:c.responseText;r(new E(body,n))},c.onerror=function(){n(new TypeError("Network request failed"))},c.ontimeout=function(){n(new TypeError("Network request failed"))},c.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},c.open(l.method,l.url,!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&o&&(c.responseType="blob"),l.headers.forEach((function(t,e){c.setRequestHeader(e,t)})),l.signal&&(l.signal.addEventListener("abort",h),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",h)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}A.polyfill=!0,t.fetch||(t.fetch=A,t.Headers=v,t.Request=T,t.Response=E),e.Headers=v,e.Request=T,e.Response=E,e.fetch=A,Object.defineProperty(e,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},865:function(t,e){function r(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=r,r.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-r:t+r}return 0|Math.min(t,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(t){this.ms=t},r.prototype.setMax=function(t){this.max=t},r.prototype.setJitter=function(t){this.jitter=t}},866:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o="~";function l(){}function c(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function h(t,e,r,n,l){if("function"!=typeof r)throw new TypeError("The listener must be a function");var h=new c(r,n||t,l),f=o?o+e:e;return t._events[f]?t._events[f].fn?t._events[f]=[t._events[f],h]:t._events[f].push(h):(t._events[f]=h,t._eventsCount++),t}function f(t,e){0==--t._eventsCount?t._events=new l:delete t._events[e]}function d(){this._events=new l,this._eventsCount=0}Object.create&&(l.prototype=Object.create(null),(new l).__proto__||(o=!1)),d.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(o?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},d.prototype.listeners=function(t){var e=o?o+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,n=r.length,l=new Array(n);i<n;i++)l[i]=r[i].fn;return l},d.prototype.listenerCount=function(t){var e=o?o+t:t,r=this._events[e];return r?r.fn?1:r.length:0},d.prototype.emit=function(t,e,r,n,l,c){var h=o?o+t:t;if(!this._events[h])return!1;var f,i,d=this._events[h],m=arguments.length;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),m){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,e),!0;case 3:return d.fn.call(d.context,e,r),!0;case 4:return d.fn.call(d.context,e,r,n),!0;case 5:return d.fn.call(d.context,e,r,n,l),!0;case 6:return d.fn.call(d.context,e,r,n,l,c),!0}for(i=1,f=new Array(m-1);i<m;i++)f[i-1]=arguments[i];d.fn.apply(d.context,f)}else{var y,v=d.length;for(i=0;i<v;i++)switch(d[i].once&&this.removeListener(t,d[i].fn,void 0,!0),m){case 1:d[i].fn.call(d[i].context);break;case 2:d[i].fn.call(d[i].context,e);break;case 3:d[i].fn.call(d[i].context,e,r);break;case 4:d[i].fn.call(d[i].context,e,r,n);break;default:if(!f)for(y=1,f=new Array(m-1);y<m;y++)f[y-1]=arguments[y];d[i].fn.apply(d[i].context,f)}}return!0},d.prototype.on=function(t,e,r){return h(this,t,e,r,!1)},d.prototype.once=function(t,e,r){return h(this,t,e,r,!0)},d.prototype.removeListener=function(t,e,r,n){var l=o?o+t:t;if(!this._events[l])return this;if(!e)return f(this,l),this;var c=this._events[l];
2if(c.fn)c.fn!==e||n&&!c.once||r&&c.context!==r||f(this,l);else{for(var i=0,h=[],d=c.length;i<d;i++)(c[i].fn!==e||n&&!c[i].once||r&&c[i].context!==r)&&h.push(c[i]);h.length?this._events[l]=1===h.length?h[0]:h:f(this,l)}return this},d.prototype.removeAllListeners=function(t){var e;return t?(e=o?o+t:t,this._events[e]&&f(this,e)):(this._events=new l,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=o,d.EventEmitter=d,t.exports=d},867:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"string"==typeof t}},868:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"object"==typeof t}},869:function(t,e,r){"use strict";r.r(e),r.d(e,"getOperationAST",(function(){return o}));var n=r(11);function o(t,e){let r=null;for(const l of t.definitions){var o;if(l.kind===n.a.OPERATION_DEFINITION)if(null==e){if(r)return null;r=l}else if((null===(o=l.name)||void 0===o?void 0:o.value)===e)return l}return r}},871:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GRAPHQL_SUBSCRIPTIONS=e.GRAPHQL_WS=void 0;e.GRAPHQL_WS="graphql-ws";e.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},872:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WS_TIMEOUT=e.MIN_WS_TIMEOUT=void 0;e.MIN_WS_TIMEOUT=1e3;e.WS_TIMEOUT=3e4},873:function(t,e,r){"use strict";var n=r(221),o=r(874),l=r(875),c=r(222),h=n.sum32,f=n.sum32_4,d=n.sum32_5,m=l.ch32,y=l.maj32,v=l.s0_256,_=l.s1_256,w=l.g0_256,x=l.g1_256,C=o.BlockHash,S=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function k(){if(!(this instanceof k))return new k;C.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=S,this.W=new Array(64)}n.inherits(k,C),t.exports=k,k.blockSize=512,k.outSize=256,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;
2i++)r[i]=f(x(r[i-2]),r[i-7],w(r[i-15]),r[i-16]);var a=this.h[0],b=this.h[1],n=this.h[2],o=this.h[3],l=this.h[4],C=this.h[5],g=this.h[6],S=this.h[7];for(c(this.k.length===r.length),i=0;i<r.length;i++){var k=d(S,_(l),m(l,C,g),this.k[i],r[i]),T=h(v(a),y(a,b,n));S=g,g=C,C=l,l=h(o,k),o=n,n=b,b=a,a=h(k,T)}this.h[0]=h(this.h[0],a),this.h[1]=h(this.h[1],b),this.h[2]=h(this.h[2],n),this.h[3]=h(this.h[3],o),this.h[4]=h(this.h[4],l),this.h[5]=h(this.h[5],C),this.h[6]=h(this.h[6],g),this.h[7]=h(this.h[7],S)},k.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},874:function(t,e,r){"use strict";var n=r(221),o=r(222);function l(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=l,l.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},l.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},l.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},875:function(t,e,r){"use strict";var n=r(221).rotr32;function o(t,e,r){return t&e^~t&r}function l(t,e,r){return t&e^t&r^e&r}function c(t,e,r){return t^e^r}e.ft_1=function(s,t,e,r){return 0===s?o(t,e,r):1===s||3===s?c(t,e,r):2===s?l(t,e,r):void 0},e.ch32=o,e.maj32=l,e.p32=c,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},876:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var c=function(){return"function"==typeof Symbol},h=function(t){return c()&&Boolean(Symbol[t])},f=function(t){return h(t)?Symbol[t]:"@@"+t};c()&&!h("observable")&&(Symbol.observable=Symbol("observable"));var d=f("iterator"),m=f("observable"),y=f("species");function v(t,e){var r=t[e];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function _(t){var e=t.constructor;return void 0!==e&&null===(e=e[y])&&(e=void 0),void 0!==e?e:A}function w(t){return t instanceof A}function x(t){x.log?x.log(t):setTimeout((function(){throw t}))}function C(t){Promise.resolve().then((function(){try{t()}catch(t){x(t)}}))}function S(t){var e=t._cleanup;if(void 0!==e&&(t._cleanup=void 0,e))try{if("function"==typeof e)e();else{var r=v(e,"unsubscribe");r&&r.call(e)}}catch(t){x(t)}}function k(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function T(t,e,r){t._state="running";var n=t._observer;try{var o=v(n,e);switch(e){case"next":o&&o.call(n,r);break;case"error":if(k(t),!o)throw r;o.call(n,r);break;case"complete":k(t),o&&o.call(n)}}catch(t){x(t)}"closed"===t._state?S(t):"running"===t._state&&(t._state="ready")}function D(t,e,r){if("closed"!==t._state){if("buffering"!==t._state)return"ready"!==t._state?(t._state="buffering",t._queue=[{type:e,value:r}],void C((function(){return function(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var i=0;i<e.length&&(T(t,e[i].type,e[i].value),"closed"!==t._state);++i);}}(t)}))):void T(t,e,r);t._queue.push({type:e,value:r})}}var E=function(){function t(e,r){n(this,t),this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var o=new O(this);try{this._cleanup=r.call(void 0,o)}catch(t){o.error(t)}"initializing"===this._state&&(this._state="ready")}return l(t,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(k(this),S(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),t}(),O=function(){function t(e){n(this,t),this._subscription=e}return l(t,[{key:"next",value:function(t){D(this._subscription,"next",t)}},{key:"error",value:function(t){D(this._subscription,"error",t)}},{key:"complete",value:function(){D(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),t}(),A=function(){function t(e){if(n(this,t),!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}return l(t,[{key:"subscribe",value:function(t){return"object"==typeof t&&null!==t||(t={next:t,error:arguments[1],complete:arguments[2]}),new E(t,this._subscriber)}}
vendor: 4,443 bytes, line 2
2,{key:"forEach",value:function(t){var e=this;return new Promise((function(r,n){if("function"==typeof t)var o=e.subscribe({next:function(e){try{t(e,l)}catch(t){n(t),o.unsubscribe()}},error:n,complete:r});else n(new TypeError(t+" is not a function"));function l(){o.unsubscribe(),r()}}))}},{key:"map",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(_(this))((function(r){return e.subscribe({next:function(e){try{e=t(e)}catch(t){return r.error(t)}r.next(e)},error:function(t){r.error(t)},complete:function(){r.complete()}})}))}},{key:"filter",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(_(this))((function(r){return e.subscribe({next:function(e){try{if(!t(e))return}catch(t){return r.error(t)}r.next(e)},error:function(t){r.error(t)},complete:function(){r.complete()}})}))}},{key:"reduce",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var r=_(this),n=arguments.length>1,o=!1,l=arguments[1],c=l;return new r((function(r){return e.subscribe({next:function(e){var l=!o;if(o=!0,!l||n)try{c=t(c,e)}catch(t){return r.error(t)}else c=e},error:function(t){r.error(t)},complete:function(){if(!o&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(c),r.complete()}})}))}},{key:"concat",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=_(this);return new o((function(e){var n,l=0;return function t(c){n=c.subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){l===r.length?(n=void 0,e.complete()):t(o.from(r[l++]))}})}(t),function(){n&&(n.unsubscribe(),n=void 0)}}))}},{key:"flatMap",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var r=_(this);return new r((function(n){var o=[],l=e.subscribe({next:function(e){if(t)try{e=t(e)}catch(t){return n.error(t)}var l=r.from(e).subscribe({next:function(t){n.next(t)},error:function(t){n.error(t)},complete:function(){var i=o.indexOf(l);i>=0&&o.splice(i,1),c()}});o.push(l)},error:function(t){n.error(t)},complete:function(){c()}});function c(){l.closed&&0===o.length&&n.complete()}return function(){o.forEach((function(s){return s.unsubscribe()})),l.unsubscribe()}}))}},{key:m,value:function(){return this}}],[{key:"from",value:function(e){var r="function"==typeof this?this:t;if(null==e)throw new TypeError(e+" is not an object");var n=v(e,m);if(n){var o=n.call(e);if(Object(o)!==o)throw new TypeError(o+" is not an object");return w(o)&&o.constructor===r?o:new r((function(t){return o.subscribe(t)}))}if(h("iterator")&&(n=v(e,d)))return new r((function(t){C((function(){if(!t.closed){var r=!0,o=!1,l=void 0;try{for(var c,h=n.call(e)[Symbol.iterator]();!(r=(c=h.next()).done);r=!0){var f=c.value;if(t.next(f),t.closed)return}}catch(t){o=!0,l=t}finally{try{r||null==h.return||h.return()}finally{if(o)throw l}}t.complete()}}))}));if(Array.isArray(e))return new r((function(t){C((function(){if(!t.closed){for(var i=0;i<e.length;++i)if(t.next(e[i]),t.closed)return;t.complete()}}))}));throw new TypeError(e+" is not observable")}},{key:"of",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o="function"==typeof this?this:t;return new o((function(t){C((function(){if(!t.closed){for(var i=0;i<r.length;++i)if(t.next(r[i]),t.closed)return;t.complete()}}))}))}},{key:y,get:function(){return this}}]),t}();e.Observable=A,c()&&Object.defineProperty(A,Symbol("extensions"),{value:{symbol:m,hostReportError:x},configurable:!0})},877:function(t,e,r){"use strict";r.r(e),r.d(e,"__extends",(function(){return o})),r.d(e,"__assign",(function(){return l})),r.d(e,"__rest",(function(){return c})),r.d(e,"__decorate",(function(){return h})),r.d(e,"__param",(function(){return f})),r.d(e,"__metadata",(function(){return d})),r.d(e,"__awaiter",(function(){return m})),r.d(e,"__generator",(function(){return y})),r.d(e,"__createBinding",(function(){return v})),r.d(e,"__exportStar",(function(){return _})),r.d(e,"__values",(function(){return w})),r.d(e,"__read",(function(){return x})),r.d(e,"__spread",(function(){return C})),r.d(e,"__spreadArrays",(function(){return S})),r.d(e,"__await",(function(){return k})),r.d(e,"__asyncGenerator",(function(){return T})),r.d(e,"__asyncDelegator",(function(){return D})),r.d(e,"__asyncValues",(function(){return E}
vendor: 5,823 bytes, line 2
2)),r.d(e,"__makeTemplateObject",(function(){return O})),r.d(e,"__importStar",(function(){return A})),r.d(e,"__importDefault",(function(){return P})),r.d(e,"__classPrivateFieldGet",(function(){return F})),r.d(e,"__classPrivateFieldSet",(function(){return I}));var n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},n(t,b)};function o(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var l=function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},l.apply(this,arguments)};function c(s,t){var e={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&t.indexOf(p)<0&&(e[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)t.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(e[p[i]]=s[p[i]])}return e}function h(t,e,r,desc){var n,o=arguments.length,l=o<3?e:null===desc?desc=Object.getOwnPropertyDescriptor(e,r):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,r,desc);else for(var i=t.length-1;i>=0;i--)(n=t[i])&&(l=(o<3?n(l):o>3?n(e,r,l):n(e,r))||l);return o>3&&l&&Object.defineProperty(e,r,l),l}function f(t,e){return function(r,n){e(r,n,t)}}function d(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function m(t,e,r,n){return new(r||(r=Promise))((function(o,l){function c(t){try{f(n.next(t))}catch(t){l(t)}}function h(t){try{f(n.throw(t))}catch(t){l(t)}}function f(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,h)}f((n=n.apply(t,e||[])).next())}))}function y(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function l(l){return function(c){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){o.label=l[1];break}if(6===l[0]&&o.label<n[1]){o.label=n[1],n=l;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(l);break}n[2]&&o.ops.pop(),o.trys.pop();continue}l=body.call(t,o)}catch(t){l=[6,t],r=0}finally{e=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function v(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}function _(t,e){for(var p in t)"default"===p||e.hasOwnProperty(p)||(e[p]=t[p])}function w(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}function C(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(x(arguments[i]));return t}function S(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),r=0;for(i=0;i<t;i++)for(var a=arguments[i],n=0,o=a.length;n<o;n++,r++)e[r]=a[n];return e}function k(t){return this instanceof k?(this.v=t,this):new k(t)}function T(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,g=r.apply(t,e||[]),q=[];return i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i;function n(t){g[t]&&(i[t]=function(e){return new Promise((function(a,b){q.push([t,e,a,b])>1||o(t,e)}))})}function o(t,e){try{(r=g[t](e)).value instanceof k?Promise.resolve(r.value.v).then(l,c):h(q[0][2],r)}catch(t){h(q[0][3],t)}var r}function l(t){o("next",t)}function c(t){o("throw",t)}function h(t,e){t(e),q.shift(),q.length&&o(q[0][0],q[0][1])}}function D(t){var i,p;return i={},e("next"),e("throw",(function(t){throw t})),e("return"),i[Symbol.iterator]=function(){return this},i;function e(e,r){i[e]=t[e]?function(n){return(p=!p)?{value:k(t[e](n)),done:"return"===e}:r?r(n):n}:r}}function E(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,e=t[Symbol.asyncIterator];return e?e.call(t):(t=w(t),i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i);function r(e){i[e]=t[e]&&function(r){return new Promise((function(n,o){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,o,(r=t[e](r)).done,r.value)}))}}}function O(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function A(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function P(t){return t&&t.__esModule?t:{default:t}}function F(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function I(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},878:function(t,e,r){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var n=r(4);function o(t,e,r){var c=r.fragmentMap,f=r.contextValue,d=r.variableValues,m={};return t.selections.forEach((function(t){if(!d||n.shouldInclude(t,d))if(n.isField(t)){var y=function(t,e,r){var c=r.variableValues,h=r.contextValue,f=r.resolver,d=t.name.value,m=n.argumentsObjectFromField(t,c),y={isLeaf:!t.selectionSet,resultKey:n.resultKeyNameFromField(t),directives:n.getDirectiveInfoFromField(t,c),field:t},v=f(d,e,m,h,y);if(!t.selectionSet)return v;if(null==v)return v;if(Array.isArray(v))return l(t,v,r);return o(t.selectionSet,v,r)}(t,e,r),v=n.resultKeyNameFromField(t);void 0!==y&&(void 0===m[v]?m[v]=y:h(m[v],y))}else{var _=void 0;if(n.isInlineFragment(t))_=t;else if(!(_=c[t.name.value]))throw new Error("No fragment named "+t.name.value);var w=_.typeCondition.name.value;if(r.fragmentMatcher(e,w,f)){var x=o(_.selectionSet,e,r);h(m,x)}}})),r.resultMapper?r.resultMapper(m,e):m}function l(t,e,r){return e.map((function(e){return null===e?null:Array.isArray(e)?l(t,e,r):o(t.selectionSet,e,r)}))}e.graphql=function(t,e,r,l,c,h){void 0===c&&(c={}),void 0===h&&(h={});var f=n.getMainDefinition(e),d=n.getFragmentDefinitions(e),m={fragmentMap:n.createFragmentMap(d),contextValue:l,variableValues:c,resultMapper:h.resultMapper,resolver:t,fragmentMatcher:h.fragmentMatcher||function(){return!0}};return o(f.selectionSet,r,m)};var c=Object.prototype.hasOwnProperty;function h(t,e){null!==e&&"object"==typeof e&&Object.keys(e).forEach((function(r){var n=e[r];c.call(t,r)?h(t[r],n):t[r]=n}))}e.merge=h},881:function(t,e,r){"use strict";r.r(e);var n=r(223);r.d(e,"ReactNativeFile",(function(){return n}));var o=r(435);r.d(e,"extractFiles",(function(){return o}));var l=r(224);r.d(e,"isExtractableFile",(function(){return l}))},883:function(t,e,r){(function(e){"object"==typeof navigator&&(t.exports=function(){"use strict";function t(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function i(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var a={addCSS:!0,thumbWidth:15,watch:!0};function o(t,e){return function(){return Array.from(document.querySelectorAll(e)).includes(this)}.call(t,e)}var l=function(t){return null!=t?t.constructor:null},c=function(t,e){return!!(t&&e&&t instanceof e)},h=function(t){return null==t},f=function(t){return l(t)===Object},u=function(t){return l(t)===String},d=function(t){return Array.isArray(t)},m=function(t){return c(t,NodeList)},p=u,g=d,y=m,b=function(t){return c(t,Element)},v=function(t){return c(t,Event)},_=function(t){return h(t)||(u(t)||d(t)||m(t))&&!t.length||f(t)&&!Object.keys(t).length};function w(t,e){if(1>e){var i=function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(e);return parseFloat(t.toFixed(i))}return Math.round(t/e)*e}var x=function(){function t(e,i){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),b(e)?this.element=e:p(e)&&(this.element=document.querySelector(e)),b(this.element)&&_(this.element.rangeTouch)&&(this.config=n({},a,{},i),this.init())}return function(t,i,s){i&&r(t.prototype,i),s&&r(t,s)}(t,[{key:"init",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var e=this,i=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){e.element[i](t,(function(t){return e.set(t)}),!1)}))}},{key:"get",value:function(e){if(!t.enabled||!v(e))return null;var i,s=e.target,r=e.changedTouches[0],a=parseFloat(s.getAttribute("min"))||0,n=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,l=s.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(i=100/l.width*(r.clientX-l.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*c:50<i&&(i+=2*(i-50)*c),a+w(i/100*(n-a),o)}},{key:"set",value:function(e){t.enabled&&v(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(t,e){if(t&&e){var i=new Event(e,{bubbles:!0});t.dispatchEvent(i)}}(e.target,"touchend"===e.type?"change":"input"))}}],[{key:"setup",value:function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},s=null;
2if(_(e)||p(e)?s=Array.from(document.querySelectorAll(p(e)?e:'input[type="range"]')):b(e)?s=[e]:y(e)?s=Array.from(e):g(e)&&(s=e.filter(b)),_(s))return null;var r=n({},a,{},i);if(p(e)&&r.watch){var l=new MutationObserver((function(i){Array.from(i).forEach((function(i){Array.from(i.addedNodes).forEach((function(i){b(i)&&o(i,e)&&new t(i,r)}))}))}));l.observe(document.body,{childList:!0,subtree:!0})}return s.map((function(e){return new t(e,i)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}();const C=t=>null!=t?t.constructor:null,S=(t,e)=>Boolean(t&&e&&t instanceof e),k=t=>null==t,T=t=>C(t)===Object,D=t=>C(t)===String,E=t=>C(t)===Function,O=t=>Array.isArray(t),A=t=>S(t,NodeList),P=t=>k(t)||(D(t)||O(t)||A(t))&&!t.length||T(t)&&!Object.keys(t).length;var F=k,I=T,M=t=>C(t)===Number&&!Number.isNaN(t),j=D,R=t=>C(t)===Boolean,L=E,N=O,q=A,B=t=>null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument,z=t=>S(t,Event),U=t=>S(t,KeyboardEvent),V=t=>S(t,TextTrack)||!k(t)&&D(t.kind),W=t=>S(t,Promise)&&E(t.then),H=t=>{if(S(t,window.URL))return!0;if(!D(t))return!1;let e=t;t.startsWith("http://")&&t.startsWith("https://")||(e=`http://${t}`);try{return!P(new URL(e).hostname)}catch(t){return!1}},Y=P;const X=(()=>{const t=document.createElement("span"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i=Object.keys(e).find((e=>void 0!==t.style[e]));return!!j(i)&&e[i]})();function G(t,e){setTimeout((()=>{try{t.hidden=!0,t.offsetHeight,t.hidden=!1}catch(t){}}),e)}const Q={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function $(t,e){return e.split(".").reduce(((t,e)=>t&&t[e]),t)}function K(t={},...e){if(!e.length)return t;const i=e.shift();
2return I(i)?(Object.keys(i).forEach((e=>{I(i[e])?(Object.keys(t).includes(e)||Object.assign(t,{[e]:{}}),K(t[e],i[e])):Object.assign(t,{[e]:i[e]})})),K(t,...e)):t}function J(t,e){const i=t.length?t:[t];Array.from(i).reverse().forEach(((t,i)=>{const s=i>0?e.cloneNode(!0):e,r=t.parentNode,a=t.nextSibling;s.appendChild(t),a?r.insertBefore(s,a):r.appendChild(s)}))}function Z(t,e){B(t)&&!Y(e)&&Object.entries(e).filter((([,t])=>!F(t))).forEach((([e,i])=>t.setAttribute(e,i)))}function tt(t,e,i){const s=document.createElement(t);return I(e)&&Z(s,e),j(i)&&(s.innerText=i),s}function et(t,e,i,s){B(e)&&e.appendChild(tt(t,i,s))}function it(t){q(t)||N(t)?Array.from(t).forEach(it):B(t)&&B(t.parentNode)&&t.parentNode.removeChild(t)}function nt(t){if(!B(t))return;let{length:e}=t.childNodes;for(;e>0;)t.removeChild(t.lastChild),e-=1}function ot(t,e){return B(e)&&B(e.parentNode)&&B(t)?(e.parentNode.replaceChild(t,e),t):null}function st(t,e){if(!j(t)||Y(t))return{};const i={},s=K({},e);return t.split(",").forEach((t=>{const e=t.trim(),r=e.replace(".",""),a=e.replace(/[[\]]/g,"").split("="),[n]=a,o=a.length>1?a[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":j(s.class)?i.class=`${s.class} ${r}`:i.class=r;break;case"#":i.id=e.replace("#","");break;case"[":i[n]=o}})),K(s,i)}function at(t,e){if(!B(t))return;let i=e;R(i)||(i=!t.hidden),t.hidden=i}function lt(t,e,i){if(q(t))return Array.from(t).map((t=>lt(t,e,i)));if(B(t)){let s="toggle";return void 0!==i&&(s=i?"add":"remove"),t.classList[s](e),t.classList.contains(e)}return!1}function ut(t,e){return B(t)&&t.classList.contains(e)}function ct(t,e){const{prototype:i}=Element;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(t,e)}function ht(t){return this.elements.container.querySelectorAll(t)}function ft(t){return this.elements.container.querySelector(t)}function pt(t=null,e=!1){B(t)&&(t.focus({preventScroll:!0}),e&<(t,this.config.classNames.tabFocus))}const gt={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},mt={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(t,e,i){const s=Q.isIPhone&&i&&mt.playsinline,r=mt[t]||"html5"!==e;return{api:r,ui:r&&mt.rangeInput&&("video"!==t||!Q.isIPhone||s)}},pip:!(Q.isIPhone||!L(tt("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||tt("video").disablePictureInPicture)),airplay:L(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(t){if(Y(t))return!1;const[e]=t.split("/");let i=t;if(!this.isHTML5||e!==this.type)return!1;Object.keys(gt).includes(i)&&(i+=`; codecs="${gt[t]}"`);try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const t=document.createElement("input");return t.type="range","range"===t.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==X,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},yt=(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,null)});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t})();function vt(t,e,i,s=!1,r=!0,a=!1){if(!t||!("addEventListener"in t)||Y(e)||!L(i))return;const n=e.split(" ");let o=a;yt&&(o={passive:r,capture:a}),n.forEach((e=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:t,type:e,callback:i,options:o}),t[s?"addEventListener":"removeEventListener"](e,i,o)}))}function bt(t,e="",i,s=!0,r=!1){vt.call(this,t,e,i,!0,s,r)}function _t(t,e="",i,s=!0,r=!1){vt.call(this,t,e,i,!1,s,r)}function wt(t,e="",i,s=!0,r=!1){const a=(...n)=>{_t(t,e,a,s,r),i.apply(this,n)};vt.call(this,t,e,a,!0,s,r)}function xt(t,e="",i=!1,s={}){if(!B(t)||Y(e))return;const r=new CustomEvent(e,{bubbles:i,detail:{...s,plyr:this}});t.dispatchEvent(r)}function Ct(){this&&this.eventListeners&&(this.eventListeners.forEac
vendor: 34,469 bytes, line 2
2h((t=>{const{element:e,type:i,callback:s,options:r}=t;e.removeEventListener(i,s,r)})),this.eventListeners=[])}function St(){return new Promise((t=>this.ready?setTimeout(t,0):bt.call(this,this.elements.container,"ready",t))).then((()=>{}))}function kt(t){W(t)&&t.then(null,(()=>{}))}function Tt(t){return N(t)?t.filter(((e,i)=>t.indexOf(e)===i)):t}function Dt(t,e){return N(t)&&t.length?t.reduce(((t,i)=>Math.abs(i-e)<Math.abs(t-e)?i:t)):null}function Et(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}const Ot=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce(((t,[e,i])=>({...t,[e/i]:[e,i]})),{});function At(t){return!!(N(t)||j(t)&&t.includes(":"))&&(N(t)?t:t.split(":")).map(Number).every(M)}function Pt(t){if(!N(t)||!t.every(M))return null;const[e,i]=t,s=(t,e)=>0===e?t:s(e,t%e),r=s(e,i);return[e/r,i/r]}function Ft(t){const e=t=>At(t)?t.split(":").map(Number):null;let i=e(t);if(null===i&&(i=e(this.config.ratio)),null===i&&!Y(this.embed)&&N(this.embed.ratio)&&({ratio:i}=this.embed),null===i&&this.isHTML5){const{videoWidth:t,videoHeight:e}=this.media;i=[t,e]}return Pt(i)}function It(t){if(!this.isVideo)return{};const{wrapper:e}=this.elements,i=Ft.call(this,t);if(!N(i))return{};const[s,r]=Pt(i),a=100/s*r;if(Et(`aspect-ratio: ${s}/${r}`)?e.style.aspectRatio=`${s}/${r}`:e.style.paddingBottom=`${a}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const t=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),i=(t-a)/(t/50);this.fullscreen.active?e.style.paddingBottom=null:this.media.style.transform=`translateY(-${i}%)`}else this.isHTML5&&e.classList.add(this.config.classNames.videoFixedRatio);return{padding:a,ratio:i}}function Mt(t,e,i=.05){const s=t/e,r=Dt(Object.keys(Ot),s);return Math.abs(r-s)<=i?Ot[r]:[t,e]}const jt={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((t=>{const e=t.getAttribute("type");return!!Y(e)||mt.mime.call(this,e)})):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:jt.getSources.call(this).map((t=>Number(t.getAttribute("size")))).filter(Boolean)},setup(){if(!this.isHTML5)return;const t=this;t.options.speed=t.config.speed.options,Y(this.config.ratio)||It.call(t),Object.defineProperty(t.media,"quality",{get(){const e=jt.getSources.call(t).find((e=>e.getAttribute("src")===t.source));return e&&Number(e.getAttribute("size"))},set(e){if(t.quality!==e){if(t.config.quality.forced&&L(t.config.quality.onChange))t.config.quality.onChange(e);else{const i=jt.getSources.call(t).find((t=>Number(t.getAttribute("size"))===e));if(!i)return;const{currentTime:s,paused:r,preload:a,readyState:n,playbackRate:o}=t.media;t.media.src=i.getAttribute("src"),("none"!==a||n)&&(t.once("loadedmetadata",(()=>{t.speed=o,t.currentTime=s,r||kt(t.play())})),t.media.load())}xt.call(t,t.media,"qualitychange",!1,{quality:e})}}})},cancelRequests(){this.isHTML5&&(it(jt.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Rt(t,...e){return Y(t)?t:t.toString().replace(/{(\d+)}/g,((t,i)=>e[i].toString()))}const Lt=(t="",e="",i="")=>t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString()),Nt=(t="")=>t.toString().replace(/\w\S*/g,(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()));function Bt(t=""){let e=t.toString();return e=function(t=""){let e=t.toString();return e=Lt(e,"-"," "),e=Lt(e,"_"," "),e=Nt(e),Lt(e," ","")}(e),e.charAt(0).toLowerCase()+e.slice(1)}function zt(t){const e=document.createElement("div");return e.appendChild(t),e.innerHTML}const Ut={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Vt={get(t="",e={}){if(Y(t)||Y(e))return"";let i=$(e.i18n,t);if(Y(i))return Object.keys(Ut).includes(t)?Ut[t]:"";const s={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(s).forEach((([t,e])=>{i=Lt(i,t,e)})),i}};class qt{constructor(e){t(this,"get",(t=>{if(!qt.supported||!this.enabled)return null;const e=window.localStorage.getItem(this.key);if(Y(e))return null;const i=JSON.parse(e);return j(t)&&t.length?i[t]:i})),t(this,"set",(t=>{if(!qt.supported||!this.enabled)return;if(!I(t))return;let e=this.get();Y(e)&&(e={}),K(e,t);try{window.localStorage.setItem(this.key,JSON.stringify(e))}catch(t){}})),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return!1}}}function Wt(t,e="text"){return new Promise(((i,s)=>{try{const s=new XMLHttpRequest;if(!("withCredentials"in s))return;s.addEventListener("load",(()=>{if("text"===e)try{i(JSON.parse(s.responseText))}catch(t){i(s.responseText)}else i(s.response)})),s.addEventListener("error",(()=>{throw new Error(s.status)})),s.open("GET",t,!0),s.responseType=e,s.send()}catch(t){s(t)}}))}function Ht(t,e){if(!j(t))return;const i=j(e);let s=!1;const r=()=>null!==document.getElementById(e),a=(t,e)=>{t.innerHTML=e,i&&r()||document.body.insertAdjacentElement("afterbegin",t)};if(!i||!r()){const r=qt.supported,n=document.createElement("div");if(n.setAttribute("hidden",""),i&&n.setAttribute("id",e),r){const t=window.localStorage.getItem(`cache-${e}`);if(s=null!==t,s){const e=JSON.parse(t);a(n,e.content)}}Wt(t).then((t=>{if(!Y(t)){if(r)try{window.localStorage.setItem(`cache-${e}`,JSON.stringify({content:t}))}catch(t){}a(n,t)}})).catch((()=>{}))}}const Yt=t=>Math.trunc(t/60/60%60,10);function Xt(t=0,e=!1,i=!1){if(!M(t))return Xt(void 0,e,i);const s=t=>`0${t}`.slice(-2);let r=Yt(t);const a=(n=t,Math.trunc(n/60%60,10));var n;const o=(t=>Math.trunc(t%60,10))(t);return r=e||r>0?`${r}:`:"",`${i&&t>0?"-":""}${r}${s(a)}:${s(o)}`}const Gt={getIconUrl(){const t=new URL(this.config.iconUrl,window.location),e=window.location.host?window.location.host:window.top.location.host,i=t.host!==e||Q.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:i}},findElements(){try{return this.elements.controls=ft.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:ht.call(this,this.config.selectors.buttons.play),pause:ft.call(this,this.config.selectors.buttons.pause),restart:ft.call(this,this.config.selectors.buttons.restart),rewind:ft.call(this,this.config.selectors.buttons.rewind),fastForward:ft.call(this,this.config.selectors.buttons.fastForward),mute:ft.call(this,this.config.selectors.buttons.mute),pip:ft.call(this,this.config.selectors.buttons.pip),airplay:ft.call(this,this.config.selectors.buttons.airplay),settings:ft.call(this,this.config.selectors.buttons.settings),captions:ft.call(this,this.config.selectors.buttons.captions),fullscreen:ft.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=ft.call(this,this.config.selectors.progress),this.elements.inputs={seek:ft.call(this,this.config.selectors.inputs.seek),volume:ft.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:ft.call(this,this.config.selectors.display.buffer),currentTime:ft.call(this,this.config.selectors.display.currentTime),duration:ft.call(this,this.config.selectors.display.duration)},B(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon(t,e){const i="http://www.w3.org/2000/svg",s=Gt.getIconUrl.call(this),r=`${s.cors?"":s.url}#${this.config.iconPrefix}`,a=document.createElementNS(i,"svg");Z(a,K(e,{"aria-hidden":"true",focusable:"false"}));const n=document.createElementNS(i,"use"),o=`${r}-${t}`;return"href"in n&&n.setAttributeNS("http://www.w3.org/1999/xlink","href",o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),a.appendChild(n),a},createLabel(t,e={}){const i=Vt.get(t,this.config);return tt("span",{...e,class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")},i)},createBadge(t){if(Y(t))return null;const e=tt("span",{class:this.config.classNames.menu.value});return e.appendChild(tt("span",{class:this.config.classNames.menu.badge},t)),e},createButton(t,e){const i=K({},e);let s=Bt(t);const r={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((t=>{Object.keys(i).includes(t)&&(r[t]=i[t],delete i[t])})),"button"!==r.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some((t=>t===this.config.classNames.control))||K(i,{class:`${i.class} ${this.config.classNames.control}`}):i.class=this.config.classNames.control,t){case"play":r.toggle=!0,r.label="play",r.labelPressed="pause",r.icon="play",r.iconPressed="pause";break;case"mute":r.toggle=!0,r.label="mute",r.labelPressed="unmute",r.icon="volume",r.iconPressed="muted";break;case"captions":r.toggle=!0,r.label="enableCaptions",r.labelPressed="disableCaptions",r.icon="captions-off",r.iconPressed="captions-on";break;case"fullscreen":r.toggle=!0,r.label="enterFullscreen",r.labelPressed="exitFullscreen",r.icon="enter-fullscreen",r.iconPressed="exit-fullscreen";break;case"play-large":i.class+=` ${this.config.classNames.control}--overlaid`,s="play",r.label="play",r.icon="play";break;default:Y(r.label)&&(r.label=s),Y(r.icon)&&(r.icon=t)}const a=tt(r.element);return r.toggle?(a.appendChild(Gt.createIcon.call(this,r.iconPressed,{class:"icon--pressed"})),a.appendChild(Gt.createIcon.call(this,r.icon,{class:"icon--not-pressed"})),a.appendChild(Gt.createLabel.call(this,r.labelPressed,{class:"label--pressed"})),a.appendChild(Gt.createLabel.call(this,r.label,{class:"label--not-pressed"}))):(a.appendChild(Gt.createIcon.call(this,r.icon)),a.appendChild(Gt.createLabel.call(this,r.label))),K(i,st(this.config.selectors.buttons[s],i)),Z(a,i),"play"===s?(N(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(a)):this.elements.buttons[s]=a,a},createRange(t,e){const i=tt("input",K(st(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Vt.get(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=i,Gt.updateRangeFill.call(this,i),x.setup(i),i},createProgress(t,e){const i=tt("progress",K(st(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){i.appendChild(tt("span",null,"0"));const e={played:"played",buffer:"buffered"}[t],s=e?Vt.get(e,this.config):"";i.innerText=`% ${s.toLowerCase()}`}return this.elements.display[t]=i,i},createTime(t,e){const i=st(this.config.selectors.display[t],e),s=tt("div",K(i,{class:`${i.class?i.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":Vt.get(t,this.config)}),"00:00");return this.elements.display[t]=s,s},bindMenuItemShortcuts(t,e){bt.call(this,t,"keydown keyup",(i=>{if(!["Space","ArrowUp","ArrowDown","ArrowRight"].includes(i.key))return;if(i.preventDefault(),i.stopPropagation(),"keydown"===i.type)return;const s=ct(t,'[role="menuitemradio"]');if(!s&&["Space","ArrowRight"].includes(i.key))Gt.showMenuPanel.call(this,e,!0);else{let e;"Space"!==i.key&&("ArrowDown"===i.key||s&&"ArrowRight"===i.key?(e=t.nextElementSibling,B(e)||(e=t.parentNode.firstElementChild)):(e=t.previousElementSibling,B(e)||(e=t.parentNode.lastElementChild)),pt.call(this,e,!0))}}),!1),bt.call(this,t,"keyup",(t=>{"Return"===t.key&&Gt.focusFirstMenuItem.call(this,null,!0)}))},createMenuItem({value:t,list:e,type:i,title:s,badge:r=null,checked:a=!1}){const n=st(this.config.selectors.inputs[i]),o=tt("button",K(n,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${n.class?n.class:""}`.trim(),"aria-checked":a,value:t})),l=tt("span");l.innerHTML=s,B(r)&&l.appendChild(r),o.appendChild(l),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>"true"===o.getAttribute("aria-checked"),set(t){t&&Array.from(o.parentNode.children).filter((t=>ct(t,'[role="menuitemradio"]'))).forEach((t=>t.setAttribute("aria-checked","false"))),o.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(o,"click keyup",(e=>{if(!U(e)||"Space"===e.key){switch(e.preventDefault(),e.stopPropagation(),o.checked=!0,i){case"language":this.currentTrack=Number(t);break;case"quality":this.quality=t;break;case"speed":this.speed=parseFloat(t)}Gt.showMenuPanel.call(this,"home",U(e))}}),i,!1),Gt.bindMenuItemShortcuts.call(this,o,i),e.appendChild(o)},formatTime(t=0,e=!1){return M(t)?Xt(t,Yt(this.duration)>0,e):t},updateTimeDisplay(t=null,e=0,i=!1){B(t)&&M(e)&&(t.innerText=Gt.formatTime(e,i))},updateVolume(){this.supported.ui&&(B(this.elements.inputs.volume)&&Gt.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),B(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(t,e=0){B(t)&&(t.value=e,Gt.updateRangeFill.call(this,t))},updateProgress(t){if(!this.supported.ui||!z(t))return;let e=0;const i=(t,e)=>{const i=M(e)?e:0,s=B(t)?t:this.elements.display.buffer;if(B(s)){s.value=i;const t=s.getElementsByTagName("span")[0];B(t)&&(t.childNodes[0].nodeValue=i)}};if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":s=this.currentTime,r=this.duration,e=0===s||0===r||Number.isNaN(s)||Number.isNaN(r)?0:(s/r*100).toFixed(2),"timeupdate"===t.type&&Gt.setRange.call(this,this.elements.inputs.seek,e);break;case"playing":case"progress":i(this.elements.display.buffer,100*this.buffered)}var s,r},updateRangeFill(t){const e=z(t)?t.target:t;if(B(e)&&"range"===e.getAttribute("type")){if(ct(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);const t=Gt.formatTime(this.currentTime),i=Gt.formatTime(this.duration),s=Vt.get("seekLabel",this.config);e.setAttribute("aria-valuetext",s.replace("{currentTime}",t).replace("{duration}",i))}else if(ct(e,this.config.selectors.inputs.volume)){const t=100*e.value;e.setAttribute("aria-valuenow",t),e.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else e.setAttribute("aria-valuenow",e.value);Q.isWebkit&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip(t){var e,i;if(!this.config.tooltips.seek||!B(this.elements.inputs.seek)||!B(this.elements.display.seekTooltip)||0===this.duration)return;const s=this.elements.display.seekTooltip,r=`${this.config.classNames.tooltip}--visible`,a=t=>lt(s,r,t);if(this.touch)return void a(!1);let n=0;const o=this.elements.progress.getBoundingClientRect();if(z(t))n=100/o.width*(t.pageX-o.left);else{if(!ut(s,r))return;n=parseFloat(s.style.left,10)}n<0?n=0:n>100&&(n=100);const l=this.duration/100*n;s.innerText=Gt.formatTime(l);const c=null===(e=this.config.markers)||void 0===e||null===(i=e.points)||void 0===i?void 0:i.find((({time:t})=>t===Math.round(l)));c&&s.insertAdjacentHTML("afterbegin",`${c.label}<br>`),s.style.left=`${n}%`,z(t)&&["mouseenter","mouseleave"].includes(t.type)&&a("mouseenter"===t.type)},timeUpdate(t){const e=!B(this.elements.display.duration)&&this.config.invertTime;Gt.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||Gt.updateProgress.call(this,t)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return at(this.elements.display.currentTime,!0),void at(this.elements.progress,!0);B(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const t=B(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&Gt.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&Gt.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&Gt.setMarkers.call(this),Gt.updateSeekTooltip.call(this)},toggleMenuButton(t,e){at(this.elements.settings.buttons[t],!e)},updateSetting(t,e,i){const s=this.elements.settings.panels[t];let r=null,a=e;if("captions"===t)r=this.currentTrack;else{if(r=Y(i)?this[t]:i,Y(r)&&(r=this.config[t].default),!Y(this.options[t])&&!this.options[t].includes(r))return void this.debug.warn(`Unsupported value of '${r}' for ${t}`);if(!this.config[t].options.includes(r))return void this.debug.warn(`Disabled value of '${r}' for ${t}`)}if(B(a)||(a=s&&s.querySelector('[role="menu"]')),!B(a))return;this.elements.settings.buttons[t].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=Gt.getLabel.call(this,t,r);const n=a&&a.querySelector(`[value="${r}"]`);B(n)&&(n.checked=!0)},getLabel(t,e){switch(t){case"speed":return 1===e?Vt.get("normal",this.config):`${e}×`;case"quality":if(M(e)){const t=Vt.get(`qualityLabel.${e}`,this.config);return t.length?t:`${e}p`}return Nt(e);case"captions":return Kt.getLabel.call(this);default:return null}},setQualityMenu(t){if(!B(this.elements.settings.panels.quality))return;const e="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');N(t)&&(this.options.quality=Tt(t).filter((t=>this.config.quality.options.includes(t))));const s=!Y(this.options.quality)&&this.options.quality.length>1;if(Gt.toggleMenuButton.call(this,e,s),nt(i),Gt.checkMenu.call(this),!s)return;const r=t=>{const e=Vt.get(`qualityBadge.${t}`,this.config);return e.length?Gt.createBadge.call(this,e):null};this.options.quality.sort(((t,e)=>{const i=this.config.quality.options;return i.indexOf(t)>i.indexOf(e)?1:-1})).forEach((t=>{Gt.createMenuItem.call(this,{value:t,list:i,type:e,title:Gt.getLabel.call(this,"quality",t),badge:r(t)})})),Gt.updateSetting.call(this,e,i)},setCaptionsMenu(){if(!B(this.elements.settings.panels.captions))return;const t="captions",e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=Kt.getTracks.call(this),s=Boolean(i.length);if(Gt.toggleMenuButton.call(this,t,s),nt(e),Gt.checkMenu.call(this),!s)return;const r=i.map(((t,i)=>({value:i,checked:this.captions.toggled&&this.currentTrack===i,title:Kt.getLabel.call(this,t),badge:t.language&&Gt.createBadge.call(this,t.language.toUpperCase()),list:e,type:"language"})));r.unshift({value:-1,checked:!this.captions.toggled,title:Vt.get("disabled",this.config),list:e,type:"language"}),r.forEach(Gt.createMenuItem.bind(this)),Gt.updateSetting.call(this,t,e)},setSpeedMenu(){if(!B(this.elements.settings.panels.speed))return;const t="speed",e=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((t=>t>=this.minimumSpeed&&t<=this.maximumSpeed));const i=!Y(this.options.speed)&&this.options.speed.length>1;Gt.toggleMenuButton.call(this,t,i),nt(e),Gt.checkMenu.call(this),i&&(this.options.speed.forEach((i=>{Gt.createMenuItem.call(this,{value:i,list:e,type:t,title:Gt.getLabel.call(this,"speed",i)})})),Gt.updateSetting.call(this,t,e))},checkMenu(){const{buttons:t}=this.elements.settings,e=!Y(t)&&Object.values(t).some((t=>!t.hidden));at(this.elements.settings.menu,!e)},focusFirstMenuItem(t,e=!1){if(this.elements.settings.popup.hidden)return;let i=t;B(i)||(i=Object.values(this.elements.settings.panels).find((t=>!t.hidden)));const s=i.querySelector('[role^="menuitem"]');pt.call(this,s,e)},toggleMenu(t){const{popup:e}=this.elements.settings,i=this.elements.buttons.settings;if(!B(e)||!B(i))return;const{hidden:s}=e;let r=s;if(R(t))r=t;else if(U(t)&&"Escape"===t.key)r=!1;else if(z(t)){const s=L(t.composedPath)?t.composedPath()[0]:t.target,a=e.contains(s);if(a||!a&&t.target!==i&&r)return}i.setAttribute("aria-expanded",r),at(e,!r),lt(this.elements.container,this.config.classNames.menu.open,r),r&&U(t)?Gt.focusFirstMenuItem.call(this,null,!0):r||s||pt.call(this,i,U(t))},getMenuSize(t){const e=t.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),t.parentNode.appendChild(e);const i=e.scrollWidth,s=e.scrollHeight;return it(e),{width:i,height:s}},showMenuPanel(t="",e=!1){const i=this.elements.container.querySelector(`#plyr-settings-${this.id}-${t}`);if(!B(i))return;const s=i.parentNode,r=Array.from(s.children).find((t=>!t.hidden));if(mt.transitions&&!mt.reducedMotion){s.style.width=`${r.scrollWidth}px`,s.style.height=`${r.scrollHeight}px`;const t=Gt.getMenuSize.call(this,i),e=t=>{t.target===s&&["width","height"].includes(t.propertyName)&&(s.style.width="",s.style.height="",_t.call(this,s,X,e))};bt.call(this,s,X,e),s.style.width=`${t.width}px`,s.style.height=`${t.height}px`}at(r,!0),at(i,!1),Gt.focusFirstMenuItem.call(this,i,e)},setDownloadUrl(){const t=this.elements.buttons.download;B(t)&&t.setAttribute("href",this.download)},create(t){const{bindMenuItemShortcuts:e,createButton:i,createProgress:s,createRange:r,createTime:a,setQualityMenu:n,setSpeedMenu:o,showMenuPanel:l}=Gt;this.elements.controls=null,N(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));const c=tt("div",st(this.config.selectors.controls.wrapper));this.elements.controls=c;const h={class:"plyr__controls__item"};return Tt(N(this.config.controls)?this.config.controls:[]).forEach((n=>{if("restart"===n&&c.appendChild(i.call(this,"restart",h)),"rewind"===n&&c.appendChild(i.call(this,"rewind",h)),"play"===n&&c.appendChild(i.call(this,"play",h)),"fast-forward"===n&&c.appendChild(i.call(this,"fast-forward",h)),"progress"===n){const e=tt("div",{class:`${h.class} plyr__progress__container`}),i=tt("div",st(this.config.selectors.progress));if(i.appendChild(r.call(this,"seek",{id:`plyr-seek-${t.id}`})),i.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const t=tt("span",{class:this.config.classNames.tooltip},"00:00");i.appendChild(t),this.elements.display.seekTooltip=t}this.elements.progress=i,e.appendChild(this.elements.progress),c.appendChild(e)}if("current-time"===n&&c.appendChild(a.call(this,"currentTime",h)),"duration"===n&&c.appendChild(a.call(this,"duration",h)),"mute"===n||"volume"===n){let{volume:e}=this.elements;if(B(e)&&c.contains(e)||(e=tt("div",K({},h,{class:`${h.class} plyr__volume`.trim()})),this.elements.volume=e,c.appendChild(e)),"mute"===n&&e.appendChild(i.call(this,"mute")),"volume"===n&&!Q.isIos){const i={max:1,step:.05,value:this.config.volume};e.appendChild(r.call(this,"volume",K(i,{id:`plyr-volume-${t.id}`})))}}if("captions"===n&&c.appendChild(i.call(this,"captions",h)),"settings"===n&&!Y(this.config.settings)){const s=tt("div",K({},h,{class:`${h.class} plyr__menu`.trim(),hidden:""}));s.appendChild(i.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${t.id}`,"aria-expanded":!1}));const r=tt("div",{class:"plyr__menu__container",id:`plyr-settings-${t.id}`,hidden:""}),a=tt("div"),n=tt("div",{id:`plyr-settings-${t.id}-home`}),o=tt("div",{role:"menu"});n.appendChild(o),a.appendChild(n),this.elements.settings.panels.home=n,this.config.settings.forEach((i=>{const s=tt("button",K(st(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));e.call(this,s,i),bt.call(this,s,"click",(()=>{l.call(this,i,!1)}));const r=tt("span",null,Vt.get(i,this.config)),n=tt("span",{class:this.config.classNames.menu.value});n.innerHTML=t[i],r.appendChild(n),s.appendChild(r),o.appendChild(s);const c=tt("div",{id:`plyr-settings-${t.id}-${i}`,hidden:""}),h=tt("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});h.appendChild(tt("span",{"aria-hidden":!0},Vt.get(i,this.config))),h.appendChild(tt("span",{class:this.config.classNames.hidden},Vt.get("menuBack",this.config))),bt.call(this,c,"keydown",(t=>{"ArrowLeft"===t.key&&(t.preventDefault(),t.stopPropagation(),l.call(this,"home",!0))}),!1),bt.call(this,h,"click",(()=>{l.call(this,"home",!1)})),c.appendChild(h),c.appendChild(tt("div",{role:"menu"})),a.appendChild(c),this.elements.settings.buttons[i]=s,this.elements.settings.panels[i]=c})),r.appendChild(a),s.appendChild(r),c.appendChild(s),this.elements.settings.popup=r,this.elements.settings.menu=s}if("pip"===n&&mt.pip&&c.appendChild(i.call(this,"pip",h)),"airplay"===n&&mt.airplay&&c.appendChild(i.call(this,"airplay",h)),"download"===n){const t=K({},h,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(t.download="");const{download:e}=this.config.urls;!H(e)&&this.isEmbed&&K(t,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(i.call(this,"download",t))}"fullscreen"===n&&c.appendChild(i.call(this,"fullscreen",h))})),this.isHTML5&&n.call(this,jt.getQualityOptions.call(this)),o.call(this),c},inject(){if(this.config.loadSprite){const t=Gt.getIconUrl.call(this);t.cors&&Ht(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let t=null;this.elements.controls=null;const e={id:this.id,seektime:this.config.seekTime,title:this.config.title};let s,i=!0;if(L(this.config.controls)&&(this.config.controls=this.config.controls.call(this,e)),this.config.controls||(this.config.controls=[]),B(this.config.controls)||j(this.config.controls)?t=this.config.controls:(t=Gt.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Kt.getLabel.call(this)}),i=!1),i&&j(this.config.controls)&&(t=(t=>{let i=t;return Object.entries(e).forEach((([t,e])=>{i=Lt(i,`{${t}}`,e)})),i})(t)),j(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),B(s)||(s=this.elements.container),s[B(t)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",t),B(this.elements.controls)||Gt.findElements.call(this),!Y(this.elements.buttons)){const t=t=>{const e=this.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:()=>ut(t,e),set(i=!1){lt(t,e,i)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((e=>{N(e)||q(e)?Array.from(e).filter(Boolean).forEach(t):t(e)}))}if(Q.isEdge&&G(s),this.config.tooltips.controls){const{classNames:t,selectors:e}=this.config,i=`${e.controls.wrapper} ${e.labels} .${t.hidden}`,s=ht.call(this,i);Array.from(s).forEach((t=>{lt(t,this.config.classNames.hidden,!1),lt(t,this.config.classNames.tooltip,!0)}))}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch(t){}},setMarkers(){var t,e;if(!this.duration||this.elements.markers)return;const i=null===(t=this.config.markers)||void 0===t||null===(e=t.points)||void 0===e?void 0:e.filter((({time:t})=>t>0&&t<this.duration));if(null==i||!i.length)return;const s=document.createDocumentFragment(),r=document.createDocumentFragment();let a=null;const n=`${this.config.classNames.tooltip}--visible`,o=t=>lt(a,n,t);i.forEach((t=>{const e=tt("span",{class:this.config.classNames.marker},""),i=t.time/this.duration*100+"%";a&&(e.addEventListener("mouseenter",(()=>{t.label||(a.style.left=i,a.innerHTML=t.label,o(!0))})),e.addEventListener("mouseleave",(()=>{o(!1)}))),e.addEventListener("click",(()=>{this.currentTime=t.time})),e.style.left=i,r.appendChild(e)})),s.appendChild(r),this.config.tooltips.seek||(a=tt("span",{class:this.config.classNames.tooltip},""),s.appendChild(a)),this.elements.markers={points:r,tip:a},this.elements.progress.appendChild(s)}};function Qt(t,e=!0){let i=t;if(e){const t=document.createElement("a");t.href=i,i=t.href}try{return new URL(i)}catch(t){return null}}function $t(t){const e=new URLSearchParams;return I(t)&&Object.entries(t).forEach((([t,i])=>{e.set(t,i)})),e}const Kt={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!mt.textTracks)return void(N(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Gt.setCaptionsMenu.call(this));var t,e;if(B(this.elements.captions)||(this.elements.captions=tt("div",st(this.config.selectors.captions)),t=this.elements.captions,e=this.elements.wrapper,B(t)&&B(e)&&e.parentNode.insertBefore(t,e.nextSibling)),Q.isIE&&window.URL){const t=this.media.querySelectorAll("track");Array.from(t).forEach((t=>{const e=t.getAttribute("src"),i=Qt(e);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&Wt(e,"blob").then((e=>{t.setAttribute("src",window.URL.createObjectURL(e))})).catch((()=>{it(t)}))}))}const i=Tt((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((t=>t.split("-")[0])));let s=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===s&&([s]=i);let r=this.storage.get("captions");if(R(r)||({active:r}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:r,language:s,languages:i}),this.isHTML5){const t=this.config.captions.update?"addtrack removetrack":"removetrack";bt.call(this,this.media.textTracks,t,Kt.update.bind(this))}setTimeout(Kt.update.bind(this),0)},update(){const t=Kt.getTracks.call(this,!0),{active:e,language:i,meta:s,currentTrackNode:r}=this.captions,a=Boolean(t.find((t=>t.language===i)));this.isHTML5&&this.isVideo&&t.filter((t=>!s.get(t))).forEach((t=>{this.debug.log("Track added",t),s.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),bt.call(this,t,"cuechange",(()=>Kt.updateCues.call(this)))})),(a&&this.language!==i||!t.includes(r))&&(Kt.setLanguage.call(this,i),Kt.toggle.call(this,e&&a)),this.elements&<(this.elements.container,this.config.classNames.captions.enabled,!Y(t)),N(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Gt.setCaptionsMenu.call(this)},toggle(t,e=!0){if(!this.supported.ui)return;const{toggled:i}=this.captions,s=this.config.classNames.captions.active,r=F(t)?!i:t;if(r!==i){if(e||(this.captions.active=r,this.storage.set({captions:r})),!this.language&&r&&!e){const t=Kt.getTracks.call(this),e=Kt.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=e.language,void Kt.set.call(this,t.indexOf(e))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=r),lt(this.elements.container,s,r),this.captions.toggled=r,Gt.updateSetting.call(this,"captions"),xt.call(this,this.media,r?"captionsenabled":"captionsdisabled")}setTimeout((()=>{r&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")}))},set(t,e=!0){const i=Kt.getTracks.call(this);if(-1!==t)if(M(t))if(t in i){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;const s=i[t],{language:r}=s||{};this.captions.currentTrackNode=s,Gt.updateSetting.call(this,"captions"),e||(this.captions.language=r,this.storage.set({language:r})),this.isVimeo&&this.embed.enableTextTrack(r),xt.call(this,this.media,"languagechange")}Kt.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&Kt.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else Kt.toggle.call(this,!1,e)},setLanguage(t,e=!0){if(!j(t))return void this.debug.warn("Invalid language argument",t);const i=t.toLowerCase();this.captions.language=i;const s=Kt.getTracks.call(this),r=Kt.findTrack.call(this,[i]);Kt.set.call(this,s.indexOf(r),e)},getTracks(t=!1){return Array.from((this.media||{}).textTracks||[]).filter((e=>!this.isHTML5||t||this.captions.meta.has(e))).filter((t=>["captions","subtitles"].includes(t.kind)))},findTrack(t,e=!1){const i=Kt.getTracks.call(this),s=t=>Number((this.captions.meta.get(t)||{}).default),r=Array.from(i).sort(((t,e)=>s(e)-s(t)));let a;return t.every((t=>(a=r.find((e=>e.language===t)),!a))),a||(e?r[0]:void 0)},getCurrentTrack(){return Kt.getTracks.call(this)[this.currentTrack]},getLabel(t){let e=t;return!V(e)&&mt.textTracks&&this.captions.toggled&&(e=Kt.getCurrentTrack.call(this)),V(e)?Y(e.label)?Y(e.language)?Vt.get("enabled",this.config):t.language.toUpperCase():e.label:Vt.get("disabled",this.config)},updateCues(t){if(!this.supported.ui)return;if(!B(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!F(t)&&!Array.isArray(t))return void this.debug.warn("updateCues: Invalid input",t);let e=t;if(!e){const t=Kt.getCurrentTrack.call(this);e=Array.from((t||{}).activeCues||[]).map((t=>t.getCueAsHTML())).map(zt)}const i=e.map((t=>t.trim())).join("\n");if(i!==this.elements.captions.innerHTML){nt(this.elements.captions);const t=tt("span",st(this.config.selectors.caption));t.innerHTML=i,this.elements.captions.appendChild(t),xt.call(this,this.media,"cuechange")}}},Jt={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.2/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"S
2D"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Zt="picture-in-picture",te="inline",ee={html5:"html5",youtube:"youtube",vimeo:"vimeo"},re="audio",ie="video",ne=()=>{};class oe{constructor(t=!1){this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):ne}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):ne}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):ne}}class se{constructor(e){t(this,"onChange",(()=>{if(!this.enabled)return;const t=this.player.elements.buttons.fullscreen;B(t)&&(t.pressed=this.active);const e=this.target===this.player.media?this.target:this.player.elements.container;xt.call(this.player,e,this.active?"enterfullscreen":"exitfullscreen",!0)})),t(this,"toggleFallback",((t=!1)=>
vendor: 27,157 bytes, line 2
2{if(t?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",lt(this.target,this.player.config.classNames.fullscreen.fallback,t),Q.isIos){let e=document.head.querySelector('meta[name="viewport"]');const i="viewport-fit=cover";e||(e=document.createElement("meta"),e.setAttribute("name","viewport"));const s=j(e.content)&&e.content.includes(i);t?(this.cleanupViewport=!s,s||(e.content+=`,${i}`)):this.cleanupViewport&&(e.content=e.content.split(",").filter((t=>t.trim()!==i)).join(","))}this.onChange()})),t(this,"trapFocus",(t=>{if(Q.isIos||!this.active||"Tab"!==t.key)return;const e=document.activeElement,i=ht.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[s]=i,r=i[i.length-1];e!==r||t.shiftKey?e===s&&t.shiftKey&&(r.focus(),t.preventDefault()):(s.focus(),t.preventDefault())})),t(this,"update",(()=>{if(this.enabled){let t;t=this.forceFallback?"Fallback (forced)":se.native?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");lt(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)})),t(this,"enter",(()=>{this.enabled&&(Q.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!se.native||this.forceFallback?this.toggleFallback(!0):this.prefix?Y(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))})),t(this,"exit",(()=>{if(this.enabled)if(Q.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),kt(this.player.play());else if(!se.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!Y(this.prefix)){const t="moz"===this.prefix?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),t(this,"toggle",(()=>{this.active?this.exit():this.enter()})),this.player=e,this.prefix=se.prefix,this.property=se.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,e){const{prototype:i}=Element;return(i.closest||function(){let t=this;do{if(ct.matches(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,e)}(this.player.elements.container,e.config.fullscreen.container),bt.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,(()=>{this.onChange()})),bt.call(this.player,this.player.elements.container,"dblclick",(t=>{B(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")})),bt.call(this,this.player.elements.container,"keydown",(t=>this.trapFocus(t))),this.update()}static get native(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get usingNative(){return se.native&&!this.forceFallback}static get prefix(){if(L(document.exitFullscreen))return"";let t="";return["webkit","moz","ms"].some((e=>!(!L(document[`${e}ExitFullscreen`])&&!L(document[`${e}CancelFullScreen`])||(t=e,0)))),t}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get enabled(){return(se.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}get active(){if(!this.enabled)return!1;if(!se.native||this.forceFallback)return ut(this.target,this.player.config.classNames.fullscreen.fallback);const t=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}get target(){return Q.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}function ae(t,e=1){return new Promise(((i,s)=>{const r=new Image,a=()=>{delete r.onload,delete r.onerror,(r.naturalWidth>=e?i:s)(r)};Object.assign(r,{onload:a,onerror:a,src:t})}))}const le={addStyleHook(){lt(this.elements.container,this.config.selectors.container.replace(".",""),!0),lt(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(t=!1){t&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void le.toggleNativeControls.call(this,!0);B(this.elements.controls)||(Gt.inject.call(this),this.listeners.controls()),le.toggleNativeControls.call(this),this.isHTML5&&Kt.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Gt.updateVolume.call(this),Gt.timeUpdate.call(this),Gt.durationUpdate.call(this),le.checkPlaying.call(this),lt(this.elements.container,this.config.classNames.pip.supported,mt.pip&&this.isHTML5&&this.isVideo),lt(this.elements.container,this.config.classNames.airplay.supported,mt.airplay&&this.isHTML5),lt(this.elements.container,this.config.classNames.isIos,Q.isIos),lt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((()=>{xt.call(this,this.media,"ready")}),0),le.setTitle.call(this),this.poster&&le.setPoster.call(this,this.poster,!1).catch((()=>{})),this.config.duration&&Gt.durationUpdate.call(this),this.config.mediaMetadata&&Gt.setMediaMetadata.call(this)},setTitle(){let t=Vt.get("play",this.config);if(j(this.config.title)&&!Y(this.config.title)&&(t+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach((e=>{e.setAttribute("aria-label",t)})),this.isEmbed){const t=ft.call(this,"iframe");if(!B(t))return;const e=Y(this.config.title)?"video":this.config.title,i=Vt.get("frameTitle",this.config);t.setAttribute("title",i.replace("{title}",e))}},togglePoster(t){lt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster(t,e=!0){return e&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),St.call(this).then((()=>ae(t))).catch((e=>{throw t===this.poster&&le.togglePoster.call(this,!1),e})).then((()=>{if(t!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${t}')`,backgroundSize:""}),le.togglePoster.call(this,!0),t))))},checkPlaying(t){lt(this.elements.container,this.config.classNames.playing,this.playing),lt(this.elements.container,this.config.classNames.paused,this.paused),lt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((t=>{Object.assign(t,{pressed:this.playing}),t.setAttribute("aria-label",Vt.get(this.playing?"pause":"play",this.config))})),z(t)&&"timeupdate"===t.type||le.toggleControls.call(this)},checkLoading(t){this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((()=>{lt(this.elements.container,this.config.classNames.loading,this.loading),le.toggleControls.call(this)}),this.loading?250:0)},toggleControls(t){const{controls:e}=this.elements;if(e&&this.config.hideControls){const i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||e.pressed||e.hover||i))}},migrateStyles(){Object.values({...this.media.style}).filter((t=>!Y(t)&&j(t)&&t.startsWith("--plyr"))).forEach((t=>{this.elements.container.style.setProperty(t,this.media.style.getPropertyValue(t)),this.media.style.removeProperty(t)})),Y(this.media.style)&&this.media.removeAttribute("style")}};class ue{constructor(e){t(this,"firstTouch",(()=>{const{player:t}=this,{elements:e}=t;t.touch=!0,lt(e.container,t.config.classNames.isTouch,!0)})),t(this,"setTabFocus",(t=>{const{player:e}=this,{elements:i}=e,{key:s,type:r,timeStamp:a}=t;if(clearTimeout(this.focusTimer),"keydown"===r&&"Tab"!==s)return;"keydown"===r&&(this.lastKeyDown=a);const n=a-this.lastKeyDown<=20;("focus"!==r||n)&&((()=>{const t=e.config.classNames.tabFocus;lt(ht.call(e,`.${t}`),t,!1)})(),"focusout"!==r&&(this.focusTimer=setTimeout((()=>{const t=document.activeElement;i.container.contains(t)&<(document.activeElement,e.config.classNames.tabFocus,!0)}),10)))})),t(this,"global",((t=!0)=>{const{player:e}=this;e.config.keyboard.global&&vt.call(e,window,"keydown keyup",this.handleKey,t,!1),vt.call(e,document.body,"click",this.toggleMenu,t),wt.call(e,document.body,"touchstart",this.firstTouch),vt.call(e,document.body,"keydown focus blur focusout",this.setTabFocus,t,!1,!0)})),t(this,"container",(()=>{const{player:t}=this,{config:e,elements:i,timers:s}=t;!e.keyboard.global&&e.keyboard.focused&&bt.call(t,i.container,"keydown keyup",this.handleKey,!1),bt.call(t,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(e=>{const{controls:r}=i;r&&"enterfullscreen"===e.type&&(r.pressed=!1,r.hover=!1);let a=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(le.toggleControls.call(t,!0),a=t.touch?3e3:2e3),clearTimeout(s.controls),s.controls=setTimeout((()=>le.toggleControls.call(t,!1)),a)}));const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const e=i.wrapper,{active:s}=t.fullscreen,[r,a]=Ft.call(t),n=Et(`aspect-ratio: ${r} / ${a}`);if(!s)return void(n?(e.style.width=null,e.style.height=null):(e.style.maxWidth=null,e.style.margin=null));const[o,l]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=o/l>r/a;n?(e.style.width=c?"auto":"100%",e.style.height=c?"100%":"auto"):(e.style.maxWidth=c?l/a*r+"px":null,e.style.margin=c?"0 auto":null)},a=()=>{clearTimeout(s.resized),s.resized=setTimeout(r,50)};bt.call(t,i.container,"enterfullscreen exitfullscreen",(e=>{const{target:s}=t.fullscreen;s===i.container&&(!t.isEmbed&&Y(t.config.ratio)||(r(),("enterfullscreen"===e.type?bt:_t).call(t,window,"resize",a)))}))})),t(this,"media",(()=>{const{player:t}=this,{elements:e}=t;if(bt.call(t,t.media,"timeupdate seeking seeked",(e=>Gt.timeUpdate.call(t,e))),bt.call(t,t.media,"durationchange loadeddata loadedmetadata",(e=>Gt.durationUpdate.call(t,e))),bt.call(t,t.media,"ended",(()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),bt.call(t,t.media,"progress playing seeking seeked",(e=>Gt.updateProgress.call(t,e))),bt.call(t,t.media,"volumechange",(e=>Gt.updateVolume.call(t,e))),bt.call(t,t.media,"playing play pause ended emptied timeupdate",(e=>le.checkPlaying.call(t,e))),bt.call(t,t.media,"waiting canplay seeked playing",(e=>le.checkLoading.call(t,e))),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const i=ft.call(t,`.${t.config.classNames.video}`);if(!B(i))return;bt.call(t,e.container,"click",(s=>{([e.container,i].includes(s.target)||i.contains(s.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(s,t.restart,"restart"),this.proxy(s,(()=>{kt(t.play())}),"play")):this.proxy(s,(()=>{kt(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&bt.call(t,e.wrapper,"contextmenu",(t=>{t.preventDefault()}),!1),bt.call(t,t.media,"volumechange",(()=>{t.storage.set({volume:t.volume,muted:t.muted})})),bt.call(t,t.media,"ratechange",(()=>{Gt.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),bt.call(t,t.media,"qualitychange",(e=>{Gt.updateSetting.call(t,"quality",null,e.detail.quality)})),bt.call(t,t.media,"ready qualitychange",(()=>{Gt.setDownloadUrl.call(t)}));const i=t.config.events.concat(["keyup","keydown"]).join(" ");bt.call(t,t.media,i,(i=>{let{detail:s={}}=i;"error"===i.type&&(s=t.media.error),xt.call(t,e.container,i.type,!0,s)}))})),t(this,"proxy",((t,e,i)=>{const{player:s}=this,r=s.config.listeners[i];let a=!0;L(r)&&(a=r.call(s,t)),!1!==a&&L(e)&&e.call(s,t)})),t(this,"bind",((t,e,i,s,r=!0)=>{const{player:a}=this,n=a.config.listeners[s],o=L(n);bt.call(a,t,e,(t=>this.proxy(t,i,s)),r&&!o)})),t(this,"controls",(()=>{const{player:t}=this,{elements:e}=t,i=Q.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach((e=>{this.bind(e,"click",(()=>{kt(t.togglePlay())}),"play")})),this.bind(e.buttons.restart,"click",t.restart,"restart"),this.bind(e.buttons.rewind,"click",(()=>{t.lastSeekTime=Date.now(),t.rewind()}),"rewind"),this.bind(e.buttons.fastForward,"click",(()=>{t.lastSeekTime=Date.now(),t.forward()}),"fastForward"),this.bind(e.buttons.mute,"click",(()=>{t.muted=!t.muted}),"mute"),this.bind(e.buttons.captions,"click",(()=>t.toggleCaptions())),this.bind(e.buttons.download,"click",(()=>{xt.call(t,t.media,"download")}),"download"),this.bind(e.buttons.fullscreen,"click",(()=>{t.fullscreen.toggle()}),"fullscreen"),this.bind(e.buttons.pip,"click",(()=>{t.pip="toggle"}),"pip"),this.bind(e.buttons.airplay,"click",t.airplay,"airplay"),this.bind(e.buttons.settings,"click",(e=>{e.stopPropagation(),e.preventDefault(),Gt.toggleMenu.call(t,e)}),null,!1),this.bind(e.buttons.settings,"keyup",(e=>{["Space","Enter"].includes(e.key)&&("Enter"!==e.key?(e.preventDefault(),e.stopPropagation(),Gt.toggleMenu.call(t,e)):Gt.focusFirstMenuItem.call(t,null,!0))}),null,!1),this.bind(e.settings.menu,"keydown",(e=>{"Escape"===e.key&&Gt.toggleMenu.call(t,e)})),this.bind(e.inputs.seek,"mousedown mousemove",(t=>{const i=e.progress.getBoundingClientRect(),s=100/i.width*(t.pageX-i.left);t.currentTarget.setAttribute("seek-value",s)})),this.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(e=>{const i=e.currentTarget,s="play-on-seeked";if(U(e)&&!["ArrowLeft","ArrowRight"].includes(e.key))return;t.lastSeekTime=Date.now();const r=i.hasAttribute(s),a=["mouseup","touchend","keyup"].includes(e.type);r&&a?(i.removeAttribute(s),kt(t.play())):!a&&t.playing&&(i.setAttribute(s,""),t.pause())})),Q.isIos){const e=ht.call(t,'input[type="range"]');Array.from(e).forEach((t=>this.bind(t,i,(t=>G(t.target)))))}this.bind(e.inputs.seek,i,(e=>{const i=e.currentTarget;let s=i.getAttribute("seek-value");Y(s)&&(s=i.value),i.removeAttribute("seek-value"),t.currentTime=s/i.max*t.duration}),"seek"),this.bind(e.progress,"mouseenter mouseleave mousemove",(e=>Gt.updateSeekTooltip.call(t,e))),this.bind(e.progress,"mousemove touchmove",(e=>{const{previewThumbnails:i}=t;i&&i.loaded&&i.startMove(e)})),this.bind(e.progress,"mouseleave touchend click",(()=>{const{previewThumbnails:e}=t;e&&e.loaded&&e.endMove(!1,!0)})),this.bind(e.progress,"mousedown touchstart",(e=>{const{previewThumbnails:i}=t;i&&i.loaded&&i.startScrubbing(e)})),this.bind(e.progress,"mouseup touchend",(e=>{const{previewThumbnails:i}=t;i&&i.loaded&&i.endScrubbing(e)})),Q.isWebkit&&Array.from(ht.call(t,'input[type="range"]')).forEach((e=>{this.bind(e,"input",(e=>Gt.updateRangeFill.call(t,e.target)))})),t.config.toggleInvert&&!B(e.display.duration)&&this.bind(e.display.currentTime,"click",(()=>{0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Gt.timeUpdate.call(t))})),this.bind(e.inputs.volume,i,(e=>{t.volume=e.target.value}),"volume"),this.bind(e.controls,"mouseenter mouseleave",(i=>{e.controls.hover=!t.touch&&"mouseenter"===i.type})),e.fullscreen&&Array.from(e.fullscreen.children).filter((t=>!t.contains(e.container))).forEach((i=>{this.bind(i,"mouseenter mouseleave",(i=>{e.controls&&(e.controls.hover=!t.touch&&"mouseenter"===i.type)}))})),this.bind(e.controls,"mousedown mouseup touchstart touchend touchcancel",(t=>{e.controls.pressed=["mousedown","touchstart"].includes(t.type)})),this.bind(e.controls,"focusin",(()=>{const{config:i,timers:s}=t;lt(e.controls,i.classNames.noTransition,!0),le.toggleControls.call(t,!0),setTimeout((()=>{lt(e.controls,i.classNames.noTransition,!1)}),0);const r=this.touch?3e3:4e3;clearTimeout(s.controls),s.controls=setTimeout((()=>le.toggleControls.call(t,!1)),r)})),this.bind(e.inputs.volume,"wheel",(e=>{const i=e.webkitDirectionInvertedFromDevice,[s,r]=[e.deltaX,-e.deltaY].map((t=>i?-t:t)),a=Math.sign(Math.abs(s)>Math.abs(r)?s:r);t.increaseVolume(a/50);const{volume:n}=t.media;(1===a&&n<1||-1===a&&n>0)&&e.preventDefault()}),"volume",!1)})),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(t){const{player:e}=this,{elements:i}=e,{key:s,type:r,altKey:a,ctrlKey:n,metaKey:o,shiftKey:l}=t,c="keydown"===r,h=c&&s===this.lastKey;var u;if(!(a||n||o||l)&&s)if(c){const r=document.activeElement;if(B(r)){const{editable:s}=e.config.selectors,{seek:a}=i.inputs;if(r!==a&&ct(r,s))return;if("Space"===t.key&&ct(r,'button, [role^="menuitem"]'))return}switch(["Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(t.preventDefault(),t.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":h||(u=parseInt(s,10),e.currentTime=e.duration/10*u);break;case"Space":case"k":h||kt(e.togglePlay());break;case"ArrowUp":e.increaseVolume(.1);break;case"ArrowDown":e.decreaseVolume(.1);break;case"m":h||(e.muted=!e.muted);break;case"ArrowRight":e.forward();break;case"ArrowLeft":e.rewind();break;case"f":e.fullscreen.toggle();break;case"c":h||e.toggleCaptions();break;case"l":e.loop=!e.loop}"Escape"===s&&!e.fullscreen.usingNative&&e.fullscreen.active&&e.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null}toggleMenu(t){Gt.toggleMenu.call(this.player,t)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;var ce=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){t.exports=function(){var t=function(){},e={},i={},s={};function r(t,e){t=t.push?t:[t];var r,a,n,o=[],l=t.length,c=l;for(r=function(t,i){i.length&&o.push(t),--c||e(o)};l--;)a=t[l],(n=i[a])?r(a,n):(s[a]=s[a]||[]).push(r)}function a(t,e){if(t){var r=s[t];if(i[t]=e,r)for(;r.length;)r[0](t,e),r.splice(0,1)}}function n(e,i){e.call&&(e={success:e}),i.length?(e.error||t)(i):(e.success||t)(e)}function o(e,i,s,r){var a,n,l=document,c=s.async,h=(s.numRetries||0)+1,u=s.before||t,f=e.replace(/[\?|#].*$/,""),d=e.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(f)?((n=l.createElement("link")).rel="stylesheet",n.href=d,(a="hideFocus"in n)&&n.relList&&(a=0,n.rel="preload",n.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(f)?(n=l.createElement("img")).src=d:((n=l.createElement("script")).src=e,n.async=void 0===c||c),n.onload=n.onerror=n.onbeforeload=function(t){var l=t.type[0];if(a)try{n.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((r+=1)<h)return o(e,i,s,r)}else if("preload"==n.rel&&"style"==n.as)return n.rel="stylesheet";i(e,l,t.defaultPrevented)},!1!==u(e,n)&&l.head.appendChild(n)}function l(t,e,i){var s,r,a=(t=t.push?t:[t]).length,n=a,l=[];for(s=function(t,i,s){if("e"==i&&l.push(t),"b"==i){if(!s)return;l.push(t)}--a||e(l)},r=0;r<n;r++)o(t[r],s,i)}function c(t,i,s){var r,o;if(i&&i.trim&&(r=i),o=(r?s:i)||{},r){if(r in e)throw"LoadJS";e[r]=!0}function c(e,i){l(t,(function(t){n(o,t),e&&n({success:e,error:i},t),a(r,t)}),o)}if(o.returnPromise)return new Promise(c);c()}return c.ready=function(t,e){return r(t,(function(t){n(e,t)})),c},c.done=function(t){a(t,[])},c.reset=function(){e={},i={},s={}},c.isDefined=function(t){return t in e},c}()}));function rt(t){return new Promise(((e,i)=>{ce(t,{success:e,error:i})}))}function he(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,xt.call(this,this.media,t?"play":"pause"))}const fe={setup(){const t=this;lt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,It.call(t),I(window.Vimeo)?fe.ready.call(t):rt(t.config.urls.vimeo.sdk).then((()=>{fe.ready.call(t)})).catch((e=>{t.debug.warn("Vimeo SDK (player.js) failed to load",e)}))},ready(){const t=this,e=t.config.vimeo,{premium:i,referrerPolicy:s,...r}=e;let a=t.media.getAttribute("src"),n="";Y(a)?(a=t.media.getAttribute(t.config.attributes.embed.id),n=t.media.getAttribute(t.config.attributes.embed.hash)):n=function(t){const e=t.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return e&&5===e.length?e[4]:null}(a);const o=n?{h:n}:{};i&&Object.assign(r,{controls:!1,sidedock:!1});const l=$t({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative,...o,...r}),c=Y(h=a)?null:M(Number(h))?h:h.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:h;var h;const u=tt("iframe"),f=Rt(t.config.urls.vimeo.iframe,c,l);if(u.setAttribute("src",f),u.setAttribute("allowfullscreen",""),u.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),Y(s)||u.setAttribute("referrerPolicy",s),i||!e.customControls)u.setAttribute("data-poster",t.poster),t.media=ot(u,t.media);else{const e=tt("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});e.appendChild(u),t.media=ot(e,t.media)}e.customControls||Wt(Rt(t.config.urls.vimeo.api,f)).then((e=>{!Y(e)&&e.thumbnail_url&&le.setPoster.call(t,e.thumbnail_url).catch((()=>{}))})),t.embed=new window.Vimeo.Player(u,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=()=>(he.call(t,!0),t.embed.play()),t.media.pause=()=>(he.call(t,!1),t.embed.pause()),t.media.stop=()=>{t.pause(),t.currentTime=0};let{currentTime:d}=t.media;Object.defineProperty(t.media,"currentTime",{get:()=>d,set(e){const{embed:i,media:s,paused:r,volume:a}=t,n=r&&!i.hasPlayed;s.seeking=!0,xt.call(t,s,"seeking"),Promise.resolve(n&&i.setVolume(0)).then((()=>i.setCurrentTime(e))).then((()=>n&&i.pause())).then((()=>n&&i.setVolume(a))).catch((()=>{}))}});let p=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:()=>p,set(e){t.embed.setPlaybackRate(e).then((()=>{p=e,xt.call(t,t.media,"ratechange")})).catch((()=>{t.options.speed=[1]}))}});let{volume:g}=t.config;Object.defineProperty(t.media,"volume",{get:()=>g,set(e){t.embed.setVolume(e).then((()=>{g=e,xt.call(t,t.media,"volumechange")}))}});let{muted:m}=t.config;Object.defineProperty(t.media,"muted",{get:()=>m,set(e){const i=!!R(e)&&e;t.embed.setVolume(i?0:t.config.volume).then((()=>{m=i,xt.call(t,t.media,"volumechange")}))}});let b,{loop:y}=t.config;Object.defineProperty(t.media,"loop",{get:()=>y,set(e){const i=R(e)?e:t.config.loop.active;t.embed.setLoop(i).then((()=>{y=i}))}}),t.embed.getVideoUrl().then((e=>{b=e,Gt.setDownloadUrl.call(t)})).catch((t=>{this.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:()=>b}),Object.defineProperty(t.media,"ended",{get:()=>t.currentTime===t.duration}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then((e=>{const[i,s]=e;t.embed.ratio=Mt(i,s),It.call(this)})),t.embed.setAutopause(t.config.autopause).then((e=>{t.config.autopause=e})),t.embed.getVideoTitle().then((e=>{t.config.title=e,le.setTitle.call(this)})),t.embed.getCurrentTime().then((e=>{d=e,xt.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((e=>{t.media.duration=e,xt.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((e=>{t.media.textTracks=e,Kt.setup.call(t)})),t.embed.on("cuechange",(({cues:e=[]})=>{const i=e.map((t=>function(t){const e=document.createDocumentFragment(),i=document.createElement("div");return e.appendChild(i),i.innerHTML=t,e.firstChild.innerText}(t.text)));Kt.updateCues.call(t,i)})),t.embed.on("loaded",(()=>{t.embed.getPaused().then((e=>{he.call(t,!e),e||xt.call(t,t.media,"playing")})),B(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(()=>{xt.call(t,t.media,"waiting")})),t.embed.on("bufferend",(()=>{xt.call(t,t.media,"playing")})),t.embed.on("play",(()=>{he.call(t,!0),xt.call(t,t.media,"playing")})),t.embed.on("pause",(()=>{he.call(t,!1)})),t.embed.on("timeupdate",(e=>{t.media.seeking=!1,d=e.seconds,xt.call(t,t.media,"timeupdate")})),t.embed.on("progress",(e=>{t.media.buffered=e.percent,xt.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&xt.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((e=>{e!==t.media.duration&&(t.media.duration=e,xt.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(()=>{t.media.seeking=!1,xt.call(t,t.media,"seeked")})),t.embed.on("ended",(()=>{t.media.paused=!0,xt.call(t,t.media,"ended")})),t.embed.on("error",(e=>{t.media.error=e,xt.call(t,t.media,"error")})),e.customControls&&setTimeout((()=>le.build.call(t)),0)}};function de(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,xt.call(this,this.media,t?"play":"pause"))}function dt(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const pe={setup(){if(lt(this.elements.wrapper,this.config.classNames.embed,!0),I(window.YT)&&L(window.YT.Player))pe.ready.call(this);else{const t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{L(t)&&t(),pe.ready.call(this)},rt(this.config.urls.youtube.sdk).catch((t=>{this.debug.warn("YouTube API failed to load",t)}))}},getTitle(t){Wt(Rt(this.config.urls.youtube.api,t)).then((t=>{if(I(t)){const{title:e,height:i,width:s}=t;this.config.title=e,le.setTitle.call(this),this.embed.ratio=Mt(s,i)}It.call(this)})).catch((()=>{It.call(this)}))},ready(){const t=this,e=t.config.youtube,i=t.media&&t.media.getAttribute("id");if(!Y(i)&&i.startsWith("youtube-"))return;let s=t.media.getAttribute("src");Y(s)&&(s=t.media.getAttribute(this.config.attributes.embed.id));const r=Y(a=s)?null:a.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:a;var a;const n=tt("div",{id:`${t.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":e.customControls?t.poster:void 0});if(t.media=ot(n,t.media),e.customControls){const e=t=>`https://i.ytimg.com/vi/${r}/${t}default.jpg`;ae(e("maxres"),121).catch((()=>ae(e("sd"),121))).catch((()=>ae(e("hq")))).then((e=>le.setPoster.call(t,e.src))).then((e=>{e.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((()=>{}))}t.embed=new window.YT.Player(t.media,{videoId:r,host:dt(e),playerVars:K({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&e.customControls?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},e),events:{onError(e){if(!t.media.error){const i=e.data,s={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invali
2d characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[i]||"An unknown error occured";t.media.error={code:i,message:s},xt.call(t,t.media,"error")}},onPlaybackRateChange(e){const i=e.target;t.media.playbackRate=i.getPlaybackRate(),xt.call(t,t.media,"ratechange")},onReady(i){if(L(t.media.play))return;const s=i.target;pe.getTitle.call(t,r),t.media.play=()=>{de.call(t,!0),s.playVideo()},t.media.pause=()=>{de.call(t,!1),s.pauseVideo()},t.media.stop=()=>{s.stopVideo()},t.media.duration=s.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:()=>Number(s.getCurrentTime()),set(e){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,xt.call(t,t.media,"seeking"),s.seekTo(e)}}),Object.defineProperty(t.media,"playbackRate",{get:()=>s.getPlaybackRate(),set(t){s.setPlaybackRate(t)}});let{volume:a}=t.config;Object.defineProperty(t.media,"volume",{get:()=>a,set(e){a=e,s.setVolume(100*a),xt.call(t,t.media,"volumechange")}});let{muted:n}=t.config;Object.defineProperty(t.media,"muted",{get:()=>n,set(e){const i=R(e)?e:n;n=i,s[i?"mute":"unMute"](),s.setVolume(100*a),xt.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:()=>s.getVideoUrl()}),Object.defineProperty(t.media,"ended",{get:()=>t.currentTime===t.duration});const o=s.getAvailablePlaybackRates();t.options.speed=o.filter((e=>t.config.speed.options.includes(e))),t.supported.ui&&e.customControls&&t.media.setAttribute("tabindex",-1),xt.call(t,t.media,"timeupdate"),xt.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval((()=>{t.media.buffered=s.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&xt.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),xt.call(t,t.media,"canplaythrough"))}),200),e.customControls&&setTimeout((()=>le.build.call(t)),50)},onStateChange(i){const s=i.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(i.data)&&(t.media.seeking=!1,xt.call(t,t.media,"seeked")),i.data){case-1:xt.call(t,t.media,"timeupdate"),t.media.buffered=s.getVideoLoadedFraction(),xt.call(t,t.media,"progress");break;case 0:de.call(t,!1),t.media.loop?(s.stopVideo(),s.playVideo()):xt.call(t,t.media,"ended");break;case 1:e.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(de.call(t,!0),xt.call(t,t.media,"playing"),t.timers.playing=setInterval((()=>{xt.call(t,t.media,"timeupdate")}),50),t.media.duration!==s.getDuration()&&(t.media.duration=s.getDuration(),xt.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),de.call(t,!1);break;case 3:xt.call(t,t.media,"waiting")}xt.call(t,t.elements.container,"statechange",!1,{code:i.data})}}})}},ge={setup(){this.media?(lt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),lt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&<(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=tt("div",{class:this.config.classNames.video}),J(this.media,this.elements.wrapper),this.elements.poster=tt("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?jt.setup.call(this):this.isYouTube?pe.setup.call(this):this.isVimeo&&fe.setup.call(this)):this.debug.warn("No media element found!")}};class me{constructor(e){t(this,"load",(()=>{this.enabled&&(I(window.google)&&I(window.google.ima)?this.ready():rt(this.player.config.urls.googleIMA.sdk).then((()=>{this.ready()})).catch((()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))})))})),t(this,"ready",(()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then((()=>{this.clearSafetyTimer("onAdsManagerLoaded()")})),this.listeners(),this.setupIMA()})),t(this,"setupIMA",(()=>{this.elements.container=tt("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(t=>this.onAdsManagerLoaded(t)),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(t=>this.onAdError(t)),!1),this.requestAds()})),t(this,"requestAds",(()=>{const{container:t}=this.player.elements;try{const e=new google.ima.AdsRequest;e.adTagUrl=this.tagUrl,e.linearAdSlotWidth=t.offsetWidth,e.linearAdSlotHeight=t.offsetHeight,e.nonLinearAdSlotWidth=t.offsetWidth,e.nonLinearAdSlotHeight=t.offsetHeight,e.forceNonLinearFullSlot=!1,e.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(e)}catch(t){this.onAdError(t)}})),t(this,"pollCountdown",((t=!1)=>
vendor: 23,401 bytes, line 2
2{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval((()=>{const t=Xt(Math.max(this.manager.getRemainingTime(),0)),e=`${Vt.get("advertisement",this.player.config)} - ${t}`;this.elements.container.setAttribute("data-badge-text",e)}),100)})),t(this,"onAdsManagerLoaded",(t=>{if(!this.enabled)return;const e=new google.ima.AdsRenderingSettings;e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!0,this.manager=t.getAdsManager(this.player,e),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(t=>this.onAdError(t))),Object.keys(google.ima.AdEvent.Type).forEach((t=>{this.manager.addEventListener(google.ima.AdEvent.Type[t],(t=>this.onAdEvent(t)))})),this.trigger("loaded")})),t(this,"addCuePoints",(()=>{Y(this.cuePoints)||this.cuePoints.forEach((t=>{if(0!==t&&-1!==t&&t<this.player.duration){const e=this.player.elements.progress;if(B(e)){const i=100/this.player.duration*t,s=tt("span",{class:this.player.config.classNames.cues});s.style.left=`${i.toString()}%`,e.appendChild(s)}}}))})),t(this,"onAdEvent",(t=>{const{container:e}=this.player.elements,i=t.getAd(),s=t.getAdData();switch((t=>{xt.call(this.player,this.player.media,`ads${t.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),i.isLinear()||(i.width=e.offsetWidth,i.height=e.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:s.adError&&this.player.debug.warn(`Non-fatal ad error: ${s.adError.getMessage()}`)}})),t(this,"onAdError",(t=>{this.cancel(),this.player.debug.warn("Ads error",t)})),t(this,"listeners",(()=>{const{container:t}=this.player.elements;let e;this.player.on("canplay",(()=>{this.addCuePoints()})),this.player.on("ended",(()=>{this.loader.contentComplete()})),this.player.on("timeupdate",(()=>{e=this.player.currentTime})),this.player.on("seeked",(()=>{const t=this.player.currentTime;Y(this.cuePoints)||this.cuePoints.forEach(((i,s)=>{e<i&&i<t&&(this.manager.discardAdBreak(),this.cuePoints.splice(s,1))}))})),window.addEventListener("resize",(()=>{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)}))})),t(this,"play",(()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then((()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(t){this.onAdError(t)}})).catch((()=>{}))})),t(this,"resumeContent",(()=>{this.elements.container.style.zIndex="",this.playing=!1,kt(this.player.media.play())})),t(this,"pauseContent",(()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()})),t(this,"cancel",(()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()})),t(this,"loadAds",(()=>{this.managerPromise.then((()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise((t=>{this.on("loaded",t),this.player.debug.log(this.manager)})),this.initialized=!1,this.requestAds()})).catch((()=>{}))})),t(this,"trigger",((t,...e)=>{const i=this.events[t];N(i)&&i.forEach((t=>{L(t)&&t.apply(this,e)}))})),t(this,"on",((t,e)=>(N(this.events[t])||(this.events[t]=[]),this.events[t].push(e),this))),t(this,"startSafetyTimer",((t,e)=>{this.player.debug.log(`Safety timer invoked from: ${e}`),this.safetyTimer=setTimeout((()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")}),t)})),t(this,"clearSafetyTimer",(t=>{F(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)})),this.player=e,this.config=e.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise(((t,e)=>{this.on("loaded",t),this.on("error",e)})),this.load()}get enabled(){const{config:t}=this;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!Y(t.publisherId)||H(t.tagUrl))}get tagUrl(){const{config:t}=this;return H(t.tagUrl)?t.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${$t({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId})}`}}function ye(t=0,e=0,i=255){return Math.min(Math.max(t,e),i)}const ve=t=>{const e=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach((t=>{const i={};t.split(/\r\n|\n|\r/).forEach((t=>{if(M(i.startTime)){if(!Y(t.trim())&&Y(i.text)){const e=t.trim().split("#xywh=");[i.text]=e,e[1]&&([i.x,i.y,i.w,i.h]=e[1].split(","))}}else{const e=t.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);e&&(i.startTime=60*Number(e[1]||0)*60+60*Number(e[2])+Number(e[3])+Number(`0.${e[4]}`),i.endTime=60*Number(e[6]||0)*60+60*Number(e[7])+Number(e[8])+Number(`0.${e[9]}`))}})),i.text&&e.push(i)})),e},be=(t,e)=>{const i={};return t>e.width/e.height?(i.width=e.width,i.height=1/t*e.width):(i.height=e.height,i.width=t*e.height),i};class _e{constructor(e){t(this,"load",(()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then((()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.loaded=!0)}))})),t(this,"getThumbnails",(()=>new Promise((t=>{const{src:e}=this.player.config.previewThumbnails;if(Y(e))throw new Error("Missing previewThumbnails.src config attribute");const i=()=>{this.thumbnails.sort(((t,e)=>t.height-e.height)),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(L(e))e((t=>{this.thumbnails=t,i()}));else{const t=(j(e)?[e]:e).map((t=>this.getThumbnail(t)));Promise.all(t).then(i)}})))),t(this,"getThumbnail",(t=>new Promise((e=>{Wt(t).then((i=>{const s={frames:ve(i),height:null,urlPrefix:""};s.frames[0].text.startsWith("/")||s.frames[0].text.startsWith("http://")||s.frames[0].text.startsWith("https://")||(s.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{s.height=r.naturalHeight,s.width=r.naturalWidth,this.thumbnails.push(s),e()},r.src=s.urlPrefix+s.frames[0].text}))})))),t(this,"startMove",(t=>{if(this.loaded&&z(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if("touchmove"===t.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var e,i;const s=this.player.elements.progress.getBoundingClientRect(),r=100/s.width*(t.pageX-s.left);this.seekTime=this.player.media.duration*(r/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=Xt(this.seekTime);const a=null===(e=this.player.config.markers)||void 0===e||null===(i=e.points)||void 0===i?void 0:i.find((({time:t})=>t===Math.round(this.seekTime)));a&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${a.label}<br>`)}this.showImageAtCurrentTime()}})),t(this,"endMove",(()=>{this.toggleThumbContainer(!1,!0)})),t(this,"startScrubbing",(t=>{(F(t.button)||!1===t.button||0===t.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))})),t(this,"endScrubbing",(()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):wt.call(this.player,this.player.media,"timeupdate",(()=>{this.mouseDown||this.toggleScrubbingContainer(!1)}))})),t(this,"listeners",(()=>{this.player.on("play",(()=>{this.toggleThumbContainer(!1,!0)})),this.player.on("seeked",(()=>{this.toggleThumbContainer(!1)})),this.player.on("timeupdate",(()=>{this.lastTime=this.player.media.currentTime}))})),t(this,"render",(()=>{this.elements.thumb.container=tt("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=tt("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=tt("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=tt("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),B(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=tt("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)})),t(this,"destroy",(()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()})),t(this,"showImageAtCurrentTime",(()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex((t=>this.seekTime>=t.startTime&&this.seekTime<=t.endTime)),e=t>=0;let i=0;this.mouseDown||this.toggleThumbContainer(e),e&&(this.thumbnails.forEach(((e,s)=>{this.loadedImages.includes(e.frames[t].text)&&(i=s)})),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(i)))})),t(this,"loadImage",((t=0)=>{const e=this.showingThumb,i=this.thumbnails[t],{urlPrefix:s}=i,r=i.frames[e],a=i.frames[e].text,n=s+a;if(this.currentImageElement&&this.currentImageElement.dataset.filename===a)this.showImage(this.currentImageElement,r,t,e,a,!1),this.currentImageElement.dataset.index=e,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const i=new Image;i.src=n,i.dataset.index=e,i.dataset.filename=a,this.showingThumbFilename=a,this.player.debug.log(`Loading image: ${n}`),i.onload=()=>this.showImage(i,r,t,e,a,!0),this.loadingImage=i,this.removeOldImages(i)}})),t(this,"showImage",((t,e,i,s,r,a=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${s}. qual: ${i}. newimg: ${a}`),this.setImageSizeAndOffset(t,e),a&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(s,!0).then(this.preloadNearby(s,!1)).then(this.getHigherQuality(i,t,e,r))})),t(this,"removeOldImages",(t=>{Array.from(this.currentImageContainer.children).forEach((e=>{if("img"!==e.tagName.toLowerCase())return;const i=this.usingSprites?500:1e3;if(e.dataset.index!==t.dataset.index&&!e.dataset.deleting){e.dataset.deleting=!0;const{currentImageContainer:t}=this;setTimeout((()=>{t.removeChild(e),this.player.debug.log(`Removing thumb: ${e.dataset.filename}`)}),i)}}))})),t(this,"preloadNearby",((t,e=!0)=>new Promise((i=>{setTimeout((()=>{const s=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===s){let r;r=e?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let a=!1;r.forEach((t=>{const e=t.text;if(e!==s&&!this.loadedImages.includes(e)){a=!0,this.player.debug.log(`Preloading thumb filename: ${e}`);const{urlPrefix:t}=this.thumbnails[0],s=t+e,r=new Image;r.src=s,r.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${e}`),this.loadedImages.includes(e)||this.loadedImages.push(e),i()}}})),a||i()}}),300)})))),t(this,"getHigherQuality",((t,e,i,s)=>{if(t<this.thumbnails.length-1){let r=e.naturalHeight;this.usingSprites&&(r=i.h),r<this.thumbContainerHeight&&setTimeout((()=>{this.showingThumbFilename===s&&(this.player.debug.log(`Showing higher quality thumb for: ${s}`),this.loadImage(t+1))}),300)}})),t(this,"toggleThumbContainer",((t=!1,e=!1)=>{const i=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(i,t),!t&&e&&(this.showingThumb=null,this.showingThumbFilename=null)})),t(this,"toggleScrubbingContainer",((t=!1)=>{const e=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(e,t),t||(this.showingThumb=null,this.showingThumbFilename=null)})),t(this,"determineContainerAutoSizing",(()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)})),t(this,"setThumbContainerSizeAndPos",(()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const e=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${e}px`}else if(t.clientHeight<20&&t.clientWidth>20){const e=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${e}px`}}else{const e=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${e}px`}this.setThumbContainerPos()})),t(this,"setThumbContainerPos",(()=>{const t=this.player.elements.progress.getBoundingClientRect(),e=this.player.elements.container.getBoundingClientRect(),{container:i}=this.elements.thumb,s=e.left-t.left+10,r=e.right-t.left-i.clientWidth-10,a=this.mousePosX-t.left-i.clientWidth/2,n=ye(a,s,r);i.style.left=`${n}px`,i.style.setProperty("--preview-arrow-offset",a-n+"px")})),t(this,"setScrubbingContainerSize",(()=>{const{width:t,height:e}=be(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${e}px`})),t(this,"setImageSizeAndOffset",((t,e)=>{if(!this.usingSprites)return;const i=this.thumbContainerHeight/e.h;t.style.height=t.naturalHeight*i+"px",t.style.width=t.naturalWidth*i+"px",t.style.left=`-${e.x*i}px`,t.style.top=`-${e.y*i}px`})),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:t}=be(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return t}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}const we={insertElements(t,e){j(e)?et(t,this.media,{src:e}):N(e)&&e.forEach((e=>{et(t,this.media,e)}))},change(t){$(t,"sources.length")?(jt.cancelRequests.call(this),this.destroy.call(this,(()=>{this.options.quality=[],it(this.media),this.media=null,B(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:e,type:i}=t,[{provider:s=ee.html5,src:r}]=e,a="html5"===s?i:"div",n="html5"===s?{}:{src:r};Object.assign(this,{provider:s,type:i,supported:mt.check(i,s,this.config.playsinline),media:tt(a,n)}),this.elements.container.appendChild(this.media),R(t.autoplay)&&(this.config.autoplay=t.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),Y(t.poster)||(this.poster=t.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),le.addStyleHook.call(this),this.isHTML5&&we.insertElements.call(this,"source",e),this.config.title=t.title,ge.setup.call(this),this.isHTML5&&Object.keys(t).includes("tracks")&&we.insertElements.call(this,"track",t.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&le.build.call(this),this.isHTML5&&this.media.load(),Y(t.previewThumbnails)||(Object.assign(this.config.previewThumbnails,t.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new _e(this))),this.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};class xe{constructor(e,i){if(t(this,"play",(()=>L(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then((()=>this.ads.play())).catch((()=>kt(this.media.play()))),this.media.play()):null)),t(this,"pause",(()=>this.playing&&L(this.media.pause)?this.media.pause():null)),t(this,"togglePlay",(t=>(R(t)?t:!this.playing)?this.play():this.pause())),t(this,"stop",(()=>{this.isHTML5?(this.pause(),this.restart()):L(this.media.stop)&&this.media.stop()})),t(this,"restart",(()=>{this.currentTime=0})),t(this,"rewind",(t=>{this.currentTime-=M(t)?t:this.config.seekTime})),t(this,"forward",(t=>{this.currentTime+=M(t)?t:this.config.seekTime})),t(this,"increaseVolume",(t=>{const e=this.media.muted?0:this.volume;this.volume=e+(M(t)?t:0)})),t(this,"decreaseVolume",(t=>{this.increaseVolume(-t)})),t(this,"airplay",(()=>{mt.airplay&&this.media.webkitShowPlaybackTargetPicker()})),t(this,"toggleControls",(t=>{if(this.supported.ui&&!this.isAudio){const e=ut(this.elements.container,this.config.classNames.hideControls),i=void 0===t?void 0:!t,s=lt(this.elements.container,this.config.classNames.hideControls,i);if(s&&N(this.config.controls)&&this.config.controls.includes("settings")&&!Y(this.config.settings)&&Gt.toggleMenu.call(this,!1),s!==e){const t=s?"controlshidden":"controlsshown";xt.call(this,this.media,t)}return!s}return!1})),t(this,"on",((t,e)=>{bt.call(this,this.elements.container,t,e)})),t(this,"once",((t,e)=>{wt.call(this,this.elements.container,t,e)})),t(this,"off",((t,e)=>{_t(this.elements.container,t,e)})),t(this,"destroy",((t,e=!1)=>{if(!this.ready)return;const i=()=>{document.body.style.overflow="",this.embed=null,e?(Object.keys(this.elements).length&&(it(this.elements.buttons.play),it(this.elements.captions),it(this.elements.controls),it(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),L(t)&&t()):(Ct.call(this),jt.cancelRequests.call(this),ot(this.elements.original,this.elements.container),xt.call(this,this.elements.original,"destroyed",!0),L(t)&&t.call(this.elements.original),this.ready=!1,setTimeout((()=>{this.elements=null,this.media=null}),200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(le.toggleNativeControls.call(this,!0),i()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&L(this.embed.destroy)&&this.embed.destroy(),i()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(i),setTimeout(i,200))})),t(this,"supports",(t=>mt.mime.call(this,t))),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=mt.touch,this.media=e,j(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||q(this.media)||N(this.media))&&(this.media=this.media[0]),this.config=K({},Jt,xe.defaults,i||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch(t){return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new oe(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",mt),F(this.media)||!B(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!mt.check().api)return void this.debug.error("Setup failed: no support");const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const r=this.media.tagName.toLowerCase();let a=null,n=null;switch(r){case"div":if(a=this.media.querySelector("iframe"),B(a)){if(n=Qt(a.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?ee.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?ee.vimeo:null}(n.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",n.search.length){const t=["1","true"];t.includes(n.searchParams.get("autoplay"))&&(this.config.autoplay=!0),t.includes(n.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=t.includes(n.searchParams.get("playsinline")),this.config.youtube.hl=n.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(Y(this.provider)||!Object.values(ee).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=ie;break;case"video":case"audio":this.type=r,this.provider=ee.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=mt.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new ue(this),this.storage=new qt(this),this.media.plyr=this,B(this.elements.container)||(this.elements.container=tt("div",{tabindex:0}),J(this.media,this.elements.container)),le.migrateStyles.call(this),le.addStyleHook.call(this),ge.setup.call(this),this.config.debug&&bt.call(this,this.elements.container,this.config.events.join(" "),(t=>{this.debug.log(`event: ${t.type}`)})),this.fullscreen=new se(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&le.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new me(this)),this.isHTML5&&this.config.auto
2play&&this.once("canplay",(()=>kt(this.play()))),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new _e(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===ee.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===ee.youtube}get isVimeo(){return this.provider===ee.vimeo}get isVideo(){return this.type===ie}get isAudio(){return this.type===re}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&0===this.currentTime)}get ended(){return Boolean(this.media.ended)}set currentTime(t){if(!this.duration)return;const e=M(t)&&t>0;this.media.currentTime=e?Math.min(t,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:t}=this.media;return M(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const t=parseFloat(this.config.duration),e=(this.media||{}).duration,i=M(e)&&e!==1/0?e:0;return t||i}set volume(t){let e=t;j(e)&&(e=Number(e)),M(e)||(e=this.storage.get("volume")),M(e)||({volume:e}=this.config),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!Y(t)&&this.muted&&e>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(t){let e=t;R(e)||(e=this.storage.get("muted")),R(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}set speed(t){let e=null;M(t)&&(e=t),M(e)||(e=this.storage.get("speed")),M(e)||(e=this.config.speed.selected);const{minimumSpeed:i,maximumSpeed:s}=this;e=ye(e,i,s),this.config.speed.selected=e,setTimeout((()=>{this.media&&(this.media.playbackRate=e)}),0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(t){const e=this.config.quality,i=this.options.quality;if(!i.length)return;let s=[!Y(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(M),r=!0;if(!i.includes(s)){const t=Dt(i,s);this.debug.warn(`Unsupported quality option: ${s}, using ${t} instead`),s=t,r=!1}e.selected=s,this.media.quality=s,r&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(t){const e=R(t)?t:this.config.loop.active;this.config.loop.active=e,this.media.loop=e}get loop(){return Boolean(this.media.loop)}set source(t){we.change.call(this,t)}get source(){return this.media.currentSrc}get download(){const{download:t}=this.config.urls;return H(t)?t:this.source}set download(t){H(t)&&(this.config.urls.download=t,Gt.setDownloadUrl.call(this))}set poster(t){this.isVideo?le.setPoster.call(this,t,!1).catch((()=>{})):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const t=Pt(Ft.call(this));return N(t)?t.join(":"):t}set ratio(t){this.isVideo?j(t)&&At(t)?(this.config.ratio=Pt(t),It.call(this)):this.debug.error(`Invalid aspect ratio specified (${t})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(t){this.config.autoplay=R(t)?t:this.config.autoplay}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(t){Kt.toggle.call(this,t,!1)}set currentTrack(t){Kt.set.call(this,t,!1),Kt.setup.call(this)}get currentTrack(){const{toggled:t,currentTrack:e}=this.captions;return t?e:-1}set language(t){Kt.setLanguage.call(this,t,!1)}get language(){return(Kt.getCurrentTrack.call(this)||{}).language}set pip(t){if(!mt.pip)return;const e=R(t)?t:!this.pip;L(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?Zt:te),L(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}get pip(){return mt.pip?Y(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Zt:null}setPreviewThumbnails(t){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,t),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new _e(this))}
vendor: 5,825 bytes, line 2
2static supported(t,e,i){return mt.check(t,e,i)}static loadSprite(t,e){return Ht(t,e)}static setup(t,e={}){let i=null;return j(t)?i=Array.from(document.querySelectorAll(t)):q(t)?i=Array.from(t):N(t)&&(i=t.filter(B)),Y(i)?null:i.map((t=>new xe(t,e)))}}var Ce;return xe.defaults=(Ce=Jt,JSON.parse(JSON.stringify(Ce))),xe}())}).call(this,r(48))},89:function(t,e,r){"use strict";(function(t){var n=r(555),o=r(556),l=r(307);function c(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(t,e){if(c()<e)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=f.prototype:(null===t&&(t=new f(e)),t.length=e),t}function f(t,e,r){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return y(this,t)}return d(this,t,e,r)}function d(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);f.TYPED_ARRAY_SUPPORT?(t=e).__proto__=f.prototype:t=v(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!f.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|w(e,r),o=(t=h(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(f.isBuffer(e)){var r=0|_(e.length);return 0===(t=h(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?h(t,0):v(t,e);if("Buffer"===e.type&&l(e.data))return v(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function m(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function y(t,e){if(m(e),t=h(t,e<0?0:0|_(e)),!f.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function v(t,e){var r=e.length<0?0:0|_(e.length);t=h(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function _(t){if(t>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|t}function w(t,e){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(t).length;default:if(n)return Q(t).length;e=(""+e).toLowerCase(),n=!0}}function x(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,r);case"utf8":case"utf-8":return I(this,e,r);case"ascii":return j(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return F(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function C(b,t,e){var i=b[t];b[t]=b[e],b[e]=i}function S(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=f.from(e,n)),f.isBuffer(e))return 0===e.length?-1:k(t,e,r,n,o);if("number"==typeof e)return e&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):k(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function k(t,e,r,n,o){var i,l=1,c=t.length,h=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;l=2,c/=2,h/=2,r/=2}function f(t,i){return 1===l?t[i]:t.readUInt16BE(i*l)}if(o){var d=-1;for(i=r;i<c;i++)if(f(t,i)===f(e,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===h)return d*l}else-1!==d&&(i-=i-d),d=-1}else for(r+h>c&&(r=c-h),i=r;i>=0;i--){for(var m=!0,y=0;y<h;y++)if(f(t,i+y)!==f(e,y)){m=!1;break}if(m)return i}return-1}function T(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var l=e.length;if(l%2!=0)throw new TypeError("Invalid hex string");n>l/2&&(n=l/2);for(var i=0;i<n;++i){var c=parseInt(e.substr(2*i,2),16);if(isNaN(c))return i;t[r+i]=c}return i}function D(t,e,r,n){return K(Q(e,t.length-r),t,r,n)}function E(t,e,r,n){return K(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,r,n)}function O(t,e,r,n){return E(t,e,r,n)}function A(t,e,r,n){return K($(e),t,r,n)}function P(t,e,r,n){return K(function(t,e){for(var r,n,o,l=[],i=0;i<t.length&&!((e-=2)<0);++i)n=(r=t.charCodeAt(i))>>8,o=r%256,l.push(o),l.push(n);return l}(e,t.length-r),t,r,n)}function F(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function I(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,l,c,h,f=t[i],d=null,m=f>239?4:f>223?3:f>191?2:1;if(i+m<=r)switch(m){case 1:f<128&&(d=f);break;
vendor: 6,987 bytes, line 2
2case 2:128==(192&(o=t[i+1]))&&(h=(31&f)<<6|63&o)>127&&(d=h);break;case 3:o=t[i+1],l=t[i+2],128==(192&o)&&128==(192&l)&&(h=(15&f)<<12|(63&o)<<6|63&l)>2047&&(h<55296||h>57343)&&(d=h);break;case 4:o=t[i+1],l=t[i+2],c=t[i+3],128==(192&o)&&128==(192&l)&&128==(192&c)&&(h=(15&f)<<18|(63&o)<<12|(63&l)<<6|63&c)>65535&&h<1114112&&(d=h)}null===d?(d=65533,m=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),i+=m}return function(t){var e=t.length;if(e<=M)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=M));return r}(n)}e.Buffer=f,e.SlowBuffer=function(t){+t!=t&&(t=0);return f.alloc(+t)},e.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=c(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,e,r){return d(null,t,e,r)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,e,r){return function(t,e,r,n){return m(e),e<=0?h(t,e):void 0!==r?"string"==typeof n?h(t,e).fill(r,n):h(t,e).fill(r):h(t,e)}(null,t,e,r)},f.allocUnsafe=function(t){return y(null,t)},f.allocUnsafeSlow=function(t){return y(null,t)},f.isBuffer=function(b){return!(null==b||!b._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var t=a.length,e=b.length,i=0,r=Math.min(t,e);i<r;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,e){if(!l(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var r=f.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var o=t[i];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},f.byteLength=w,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<t;i+=2)C(this,i,i+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<t;i+=4)C(this,i,i+3),C(this,i+1,i+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<t;i+=8)C(this,i,i+7),C(this,i+1,i+6),C(this,i+2,i+5),C(this,i+3,i+4);return this},f.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?I(this,0,t):x.apply(this,arguments)},f.prototype.equals=function(b){if(!f.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===f.compare(this,b)},f.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},f.prototype.compare=function(t,e,r,n,o){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var l=(o>>>=0)-(n>>>=0),c=(r>>>=0)-(e>>>=0),h=Math.min(l,c),d=this.slice(n,o),m=t.slice(e,r),i=0;i<h;++i)if(d[i]!==m[i]){l=d[i],c=m[i];break}return l<c?-1:c<l?1:0},f.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},f.prototype.indexOf=function(t,e,r){return S(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return S(this,t,e,r,!1)},f.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var l=!1;;)switch(n){case"hex":return T(this,t,e,r);case"utf8":case"utf-8":return D(this,t,e,r);case"ascii":return E(this,t,e,r);case"latin1":case"binary":return O(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,r);default:if(l)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),l=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function j(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function R(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function L(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=G(t[i]);return o}function N(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function B(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,r,n,o,l){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<l)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function U(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function V(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function W(t,e,r,n,o,l){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(t,e,r,n,l){return l||W(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function Y(t,e,r,n,l){return l||W(t,0,r,8),o.write(t,e,r,n,52,8),r+8}f.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),f.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=f.prototype;else{var o=e-t;r=new f(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},f.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t],o=1,i=0;
vendor: 4,089 bytes, line 2
2++i<e&&(o*=256);)n+=this[t+i]*o;return n},f.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},f.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},f.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},f.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||z(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},f.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||z(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},f.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},f.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},f.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},f.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):V(this,t,e,!0),e+4},f.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},f.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);z(this,t,e,r,o-1,-o)}var i=0,l=1,sub=0;for(this[e]=255&t;++i<r&&(l*=256);)t<0&&0===sub&&0!==this[e+i-1]&&(sub=1),this[e+i]=(t/l>>0)-sub&255;return e+r},f.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);z(this,t,e,r,o-1,-o)}var i=r-1,l=1,sub=0;for(this[e+i]=255&t;--i>=0&&(l*=256);)t<0&&0===sub&&0!==this[e+i+1]&&(sub=1),this[e+i]=(t/l>>0)-sub&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},f.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 5,604 bytes, line 2
28,this[e+1]=255&t):U(this,t,e,!1),e+2},f.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):V(this,t,e,!0),e+4},f.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},f.prototype.writeFloatLE=function(t,e,r){return H(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return H(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return Y(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return Y(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},f.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var o=f.isBuffer(t)?t:Q(new f(t,n).toString()),l=o.length;for(i=0;i<r-e;++i)this[i+e]=o[i%l]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function Q(t,e){var r;e=e||1/0;for(var n=t.length,o=null,l=[],i=0;i<n;++i){if((r=t.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&l.push(239,191,189);continue}if(i+1===n){(e-=3)>-1&&l.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&l.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&l.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;l.push(r)}else if(r<2048){if((e-=2)<0)break;l.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;l.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return l}function $(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(X,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(48))},924:function(t,e,r){"use strict";r.r(e),r.d(e,"checkFetcher",(function(){return d})),r.d(e,"createSignalIfSupported",(function(){return m})),r.d(e,"fallbackHttpConfig",(function(){return c})),r.d(e,"parseAndCheckHttpResponse",(function(){return f})),r.d(e,"selectHttpOptionsAndBody",(function(){return y})),r.d(e,"selectURI",(function(){return _})),r.d(e,"serializeFetchParameter",(function(){return v})),r.d(e,"throwServerError",(function(){return h}));var n=function(){return n=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},n.apply(this,arguments)};var o=r(145),l=r(10),c={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},h=function(t,e,r){var n=new Error(r);throw n.name="ServerError",n.response=t,n.statusCode=t.status,n.result=e,n},f=function(t){return function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(n){var r=n;return r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,Promise.reject(r)}})).then((function(r){return e.status>=300&&h(e,r,"Response not successful: Received status code "+e.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||h(e,r,"Server response was missing for query '"+(Array.isArray(t)?t.map((function(t){return t.operationName})):t.operationName)+"'."),r}))}},d=function(t){if(!t&&"undefined"==typeof fetch){throw"undefined"==typeof window&&"node-fetch",new l.a(1)}},m=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var t=new AbortController;return{controller:t,signal:t.signal}},y=function(t,e){for(var r=[],l=2;l<arguments.length;l++)r[l-2]=arguments[l];var c=n({},e.options,{headers:e.headers,credentials:e.credentials}),h=e.http;r.forEach((function(t){c=n({},c,t.options,{headers:n({},c.headers,t.headers)}),t.credentials&&(c.credentials=t.credentials),h=n({},h,t.http)}));var f=t.operationName,d=t.extensions,m=t.variables,y=t.query,body={operationName:f,variables:m};return h.includeExtensions&&(body.extensions=d),h.includeQuery&&(body.query=Object(o.print)(y)),{options:c,body:body}},v=function(p,label){var t;try{t=JSON.stringify(p)}catch(t){var e=new l.a(2);throw e.parseError=t,e}return t},_=function(t,e){var r=t.getContext().uri;return r||("function"==typeof e?e(t):e||"/graphql")}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.