PageSourceSearch

https://assets.gsmpunt.nl/webshop/615.d15eea84.js

js gsmpunt.nl collected 2026-10-04 12:38:15 UTC 644,570 bytes, 2 lines download raw bytes

1/*! For license information please see 615.d15eea84.js.LICENSE.txt */
2(self.webpackChunk=self.webpackChunk||[]).push([[615],{34:function(t,e,i){"use strict";var s=i(4901);t.exports=function(t){return"object"==typeof t?null!==t:s(t)}},81:function(t,e,i){"use strict";var s=i(9565),n=i(9306),r=i(8551),a=i(6823),o=i(851),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?o(t):e;if(n(i))return r(s(i,t));throw new l(a(t)+" is not iterable")}},113:function(t,e,i){"use strict";var s=i(6518),n=i(9213).find,r=i(6469),a="find",o=!0;a in[]&&Array(1)[a](function(){o=!1}),s({target:"Array",proto:!0,forced:o},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),r(a)},124:function(t,e,i){var s=i(9325);t.exports=function(){return s.Date.now()}},150:function(t,e,i){"use strict";i(6518)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},235:function(t,e,i){"use strict";var s=i(9213).forEach,n=i(4598)("forEach");t.exports=n?[].forEach:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}},280:function(t,e,i){"use strict";var s=i(6518),n=i(7751),r=i(6395),a=i(550),o=i(916).CONSTRUCTOR,l=i(3438),c=n("Promise"),u=r&&!o;s({target:"Promise",stat:!0,forced:r||o},{resolve:function(t){return l(u&&this===c?a:this,t)}})},283:function(t,e,i){"use strict";var s=i(9504),n=i(9039),r=i(4901),a=i(9297),o=i(3724),l=i(350).CONFIGURABLE,c=i(3706),u=i(1181),h=u.enforce,d=u.get,p=String,f=Object.defineProperty,m=s("".slice),g=s("".replace),b=s([].join),v=o&&!n(function(){return 8!==f(function(){},"length",{value:8}).length}),y=String(String).split("String"),x=t.exports=function(t,e,i){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&i&&a(i,"arity")&&t.length!==i.arity&&f(t,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=h(t);return a(s,"source")||(s.source=b(y,"string"==typeof e?e:"")),t};Function.prototype.toString=x(function(){return r(this)&&d(this).source||c(this)},"toString")},287:function(t,e,i){"use strict";i(6518)({target:"Object",stat:!0},{setPrototypeOf:i(2967)})},298:function(t,e,i){"use strict";var s=i(2195),n=i(5397),r=i(8480).f,a=i(7680),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return o&&"Window"===s(t)?function(t){try{return r(t)}catch(t){return a(o)}}(t):r(n(t))}},302:function(t,e,i){"use strict";i.d(e,{A:function(){return ba}});var s=i(2891);function n(){}const r=function(){let t=0;return function(){return t++}}();function a(t){return null==t}function o(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function l(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const c=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function u(t,e){return c(t)?t:e}function h(t,e){return void 0===t?e:t}const d=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function p(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function f(t,e,i,s){let n,r,a;if(o(t))if(r=t.length,s)for(n=r-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<r;n++)e.call(i,t[n],n);else if(l(t))for(a=Object.keys(t),r=a.length,n=0;n<r;n++)e.call(i,t[a[n]],a[n])}function m(t,e){let i,s,n,r;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],r=e[i],n.datasetIndex!==r.datasetIndex||n.index!==r.index)return!1;return!0}function g(t){if(o(t))return t.map(g);if(l(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=g(t[i[n]]);return e}return t}function b(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function v(t,e,i,s){if(!b(t))return;const n=e[t],r=i[t];l(n)&&l(r)?y(n,r,s):e[t]=g(r)}function y(t,e,i){const s=o(e)?e:[e],n=s.length;if(!l(t))return t;const r=(i=i||{}).merger||v;for(let a=0;a<n;++a){if(!l(e=s[a]))continue;const n=Object.keys(e);for(let s=0,a=n.length;s<a;++s)r(n[s],t,e,i)}return t}function x(t,e){return y(t,e,{merger:w})}function w(t,e,i){if(!b(t))return;const s=e[t],n=i[t];l(s)&&l(n)?x(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=g(n))}const S={"":t=>t,x:t=>t.x,y:t=>t.y};function E(t,e){const i=S[e]||(S[e]=function(t){const e=function(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}const T=t=>void 0!==t,k=t=>"function"==typeof t,_=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};const C=Math.PI,P=2*C,A=P+C,O=Number.POSITIVE_INFINITY,L=C/180,I=C/2,D=C/4,N=2*C/3,R=Math.log10,F=Math.sign;function $(t){const e=Math.round(t);t=j(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(R(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function z(t){return!isNaN(parseFloat(t))&&isFinite(t)}
vendor: 4,175 bytes, line 2
2function j(t,e,i){return Math.abs(t-e)<i}function B(t,e,i){let s,n,r;for(s=0,n=t.length;s<n;s++)r=t[s][i],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function V(t){return t*(C/180)}function H(t){return t*(180/C)}function W(t){if(!c(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function U(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let r=Math.atan2(s,i);return r<-.5*C&&(r+=P),{angle:r,distance:n}}function q(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Y(t,e){return(t-e+A)%P-C}function X(t){return(t%P+P)%P}function G(t,e,i,s){const n=X(t),r=X(e),a=X(i),o=X(r-n),l=X(a-n),c=X(n-r),u=X(n-a);return n===r||n===a||s&&r===a||o>l&&c<u}function K(t,e,i){return Math.max(e,Math.min(i,t))}function J(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function Q(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,r=0;for(;n-r>1;)s=r+n>>1,i(s)?r=s:n=s;return{lo:r,hi:n}}const Z=(t,e,i,s)=>Q(t,i,s?s=>t[s][e]<=i:s=>t[s][e]<i),tt=(t,e,i)=>Q(t,i,s=>t[s][e]>=i);const et=["push","pop","shift","splice","unshift"];function it(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(et.forEach(e=>{delete t[e]}),delete t._chartjs)}function st(t){const e=new Set;let i,s;for(i=0,s=t.length;i<s;++i)e.add(t[i]);return e.size===s?t:Array.from(e)}const nt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function rt(t,e,i){const s=i||(t=>Array.prototype.slice.call(t));let n=!1,r=[];return function(...i){r=s(i),n||(n=!0,nt.call(window,()=>{n=!1,t.apply(e,r)}))}}const at=t=>"start"===t?"left":"end"===t?"right":"center",ot=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function lt(t,e,i){const s=e.length;let n=0,r=s;if(t._sorted){const{iScale:a,_parsed:o}=t,l=a.axis,{min:c,max:u,minDefined:h,maxDefined:d}=a.getUserBounds();h&&(n=K(Math.min(Z(o,a.axis,c).lo,i?s:Z(e,l,a.getPixelForValue(c)).lo),0,s-1)),r=d?K(Math.max(Z(o,a.axis,u,!0).hi+1,i?0:Z(e,l,a.getPixelForValue(u),!0).hi+1),n,s)-n:s-n}return{start:n,count:r}}function ct(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const r=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),r}const ut=t=>0===t||1===t,ht=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*P/i),dt=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*P/i)+1,pt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*I),easeOutSine:t=>Math.sin(t*I),easeInOutSine:t=>-.5*(Math.cos(C*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ut(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ut(t)?t:ht(t,.075,.3),easeOutElastic:t=>ut(t)?t:dt(t,.075,.3),easeInOutElastic(t){const e=.1125;return ut(t)?t:t<.5?.5*ht(2*t,e,.45):.5+.5*dt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-pt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*pt.easeInBounce(2*t):.5*pt.easeOutBounce(2*t-1)+.5};function ft(t){return t+.5|0}const mt=(t,e,i)=>Math.max(Math.min(t,i),e);function gt(t){return mt(ft(2.55*t),0,255)}function bt(t){return mt(ft(255*t),0,255)}function vt(t){return mt(ft(t/2.55)/100,0,1)}
vendor: 8,716 bytes, line 2
2function yt(t){return mt(ft(100*t),0,100)}const xt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},wt=[..."0123456789ABCDEF"],St=t=>wt[15&t],Et=t=>wt[(240&t)>>4]+wt[15&t],Mt=t=>(240&t)>>4==(15&t);function Tt(t){var e=(t=>Mt(t.r)&&Mt(t.g)&&Mt(t.b)&&Mt(t.a))(t)?St:Et;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const kt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _t(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Ct(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function Pt(t,e,i){const s=_t(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function At(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),a=(n+r)/2;let o,l,c;return n!==r&&(c=n-r,l=a>.5?c/(2-n-r):c/(n+r),o=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,c,n),o=60*o+.5),[0|o,l||0,a]}function Ot(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(bt)}function Lt(t,e,i){return Ot(_t,t,e,i)}function It(t){return(t%360+360)%360}function Dt(t){const e=kt.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?gt(+e[5]):bt(+e[5]));const n=It(+e[2]),r=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Ot(Pt,t,e,i)}(n,r,a):"hsv"===e[1]?function(t,e,i){return Ot(Ct,t,e,i)}(n,r,a):Lt(n,r,a),{r:i[0],g:i[1],b:i[2],a:s}}const Nt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Rt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Ft;function $t(t){Ft||(Ft=function(){const t={},e=Object.keys(Rt),i=Object.keys(Nt);let s,n,r,a,o;for(s=0;s<e.length;s++){for(a=o=e[s],n=0;n<i.length;n++)r=i[n],o=o.replace(r,Nt[r]);r=parseInt(Rt[a],16),t[o]=[r>>16&255,r>>8&255,255&r]}return t}(),Ft.transparent=[0,0,0,0]);const e=Ft[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const zt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const jt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Bt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Vt(t,e,i){if(t){let s=At(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=Lt(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function Ht(t,e){return t?Object.assign(e||{},t):t}function Wt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=bt(t[3]))):(e=Ht(t,{r:0,g:0,b:0,a:1})).a=bt(e.a),e}function Ut(t){return"r"===t.charAt(0)?function(t){const e=zt.exec(t);let i,s,n,r=255;if(e){if(e[7]!==i){const t=+e[7];r=e[8]?gt(t):mt(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?gt(i):mt(i,0,255)),s=255&(e[4]?gt(s):mt(s,0,255)),n=255&(e[6]?gt(n):mt(n,0,255)),{r:i,g:s,b:n,a:r}}}(t):Dt(t)}class qt{constructor(t){if(t instanceof qt)return t;const e=typeof t;let i;var s,n,r;"object"===e?i=Wt(t):"string"===e&&(r=(s=t).length,"#"===s[0]&&(4===r||5===r?n={r:255&17*xt[s[1]],g:255&17*xt[s[2]],b:255&17*xt[s[3]],a:5===r?17*xt[s[4]]:255}:7!==r&&9!==r||(n={r:xt[s[1]]<<4|xt[s[2]],g:xt[s[3]]<<4|xt[s[4]],b:xt[s[5]]<<4|xt[s[6]],a:9===r?xt[s[7]]<<4|xt[s[8]]:255})),i=n||$t(t)||Ut(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Ht(this._rgb);return t&&(t.a=vt(t.a)),t}set rgb(t){this._rgb=Wt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${vt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Tt(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=At(t),i=e[0],s=yt(e[1]),n=yt(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${vt(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const r=e===n?.5:e,a=2*r-1,o=i.a-s.a,l=((a*o===-1?a:(a+o)/(1+a*o))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=Bt(vt(t.r)),n=Bt(vt(t.g)),r=Bt(vt(t.b));return{r:bt(jt(s+i*(Bt(vt(e.r))-s))),g:bt(jt(n+i*(Bt(vt(e.g))-n))),b:bt(jt(r+i*(Bt(vt(e.b))-r))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new qt(this.rgb)}alpha(t){return this._rgb.a=bt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=ft(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Vt(this._rgb,2,t),this}darken(t){return Vt(this._rgb,2,-t),this}saturate(t){return Vt(this._rgb,1,t),this}desaturate(t){return Vt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=At(t);i[0]=It(i[0]+e),i=Lt(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Yt(t){return new qt(t)}function Xt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Gt(t){return Xt(t)?t:Yt(t)}function Kt(t){return Xt(t)?t:Yt(t).saturate(.5).darken(.1).hexString()}const Jt=Object.create(null),Qt=Object.create(null);function Zt(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;e<s;++e){const s=i[e];t=t[s]||(t[s]=Object.create(null))}return t}function te(t,e,i){return"string"==typeof e?y(Zt(t,e),i):y(Zt(t,""),e)}var ee=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Kt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Kt(e.borderColor),this.hoverColor=(t,e)=>Kt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 6,589 bytes, line 2
2,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return te(this,t,e)}get(t){return Zt(this,t)}describe(t,e){return te(Qt,t,e)}override(t,e){return te(Jt,t,e)}route(t,e,i,s){const n=Zt(this,t),r=Zt(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=r[s];return l(t)?Object.assign({},e,t):h(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function ie(t,e,i,s,n){let r=e[n];return r||(r=e[n]=t.measureText(n).width,i.push(n)),r>s&&(s=r),s}function se(t,e,i,s){let n=(s=s||{}).data=s.data||{},r=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(n=s.data={},r=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let a=0;const l=i.length;let c,u,h,d,p;for(c=0;c<l;c++)if(d=i[c],null!=d&&!0!==o(d))a=ie(t,n,r,a,d);else if(o(d))for(u=0,h=d.length;u<h;u++)p=d[u],null==p||o(p)||(a=ie(t,n,r,a,p));t.restore();const f=r.length/2;if(f>i.length){for(c=0;c<f;c++)delete n[r[c]];r.splice(0,f)}return a}function ne(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function re(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function ae(t,e,i,s){oe(t,e,i,s,null)}function oe(t,e,i,s,n){let r,a,o,l,c,u;const h=e.pointStyle,d=e.rotation,p=e.radius;let f=(d||0)*L;if(h&&"object"==typeof h&&(r=h.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(i,s),t.rotate(f),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:n?t.ellipse(i,s,n/2,p,0,0,P):t.arc(i,s,p,0,P),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(f)*p,s-Math.cos(f)*p),f+=N,t.lineTo(i+Math.sin(f)*p,s-Math.cos(f)*p),f+=N,t.lineTo(i+Math.sin(f)*p,s-Math.cos(f)*p),t.closePath();break;case"rectRounded":c=.516*p,l=p-c,a=Math.cos(f+D)*l,o=Math.sin(f+D)*l,t.arc(i-a,s-o,c,f-C,f-I),t.arc(i+o,s-a,c,f-I,f),t.arc(i+a,s+o,c,f,f+I),t.arc(i-o,s+a,c,f+I,f+C),t.closePath();break;case"rect":if(!d){l=Math.SQRT1_2*p,u=n?n/2:l,t.rect(i-u,s-l,2*u,2*l);break}f+=D;case"rectRot":a=Math.cos(f)*p,o=Math.sin(f)*p,t.moveTo(i-a,s-o),t.lineTo(i+o,s-a),t.lineTo(i+a,s+o),t.lineTo(i-o,s+a),t.closePath();break;case"crossRot":f+=D;case"cross":a=Math.cos(f)*p,o=Math.sin(f)*p,t.moveTo(i-a,s-o),t.lineTo(i+a,s+o),t.moveTo(i+o,s-a),t.lineTo(i-o,s+a);break;case"star":a=Math.cos(f)*p,o=Math.sin(f)*p,t.moveTo(i-a,s-o),t.lineTo(i+a,s+o),t.moveTo(i+o,s-a),t.lineTo(i-o,s+a),f+=D,a=Math.cos(f)*p,o=Math.sin(f)*p,t.moveTo(i-a,s-o),t.lineTo(i+a,s+o),t.moveTo(i+o,s-a),t.lineTo(i-o,s+a);break;case"line":a=n?n/2:Math.cos(f)*p,o=Math.sin(f)*p,t.moveTo(i-a,s-o),t.lineTo(i+a,s+o);break;case"dash":t.moveTo(i,s),t.lineTo(i+Math.cos(f)*p,s+Math.sin(f)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function le(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function ce(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ue(t){t.restore()}function he(t,e,i,s,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else"after"===n!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function de(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function pe(t,e,i,s,n,r={}){const l=o(e)?e:[e],c=r.strokeWidth>0&&""!==r.strokeColor;let u,h;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);a(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),u=0;u<l.length;++u)h=l[u],c&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),a(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(h,i,s,r.maxWidth)),t.fillText(h,i,s,r.maxWidth),fe(t,i,s,h,r),s+=n.lineHeight;t.restore()}function fe(t,e,i,s,n){if(n.strikethrough||n.underline){const r=t.measureText(s),a=e-r.actualBoundingBoxLeft,o=e+r.actualBoundingBoxRight,l=i-r.actualBoundingBoxAscent,c=i+r.actualBoundingBoxDescent,u=n.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,u),t.lineTo(o,u),t.stroke()}}function me(t,e){const{x:i,y:s,w:n,h:r,radius:a}=e;t.arc(i+a.topLeft,s+a.topLeft,a.topLeft,-I,C,!0),t.lineTo(i,s+r-a.bottomLeft),t.arc(i+a.bottomLeft,s+r-a.bottomLeft,a.bottomLeft,C,I,!0),t.lineTo(i+n-a.bottomRight,s+r),t.arc(i+n-a.bottomRight,s+r-a.bottomRight,a.bottomRight,I,0,!0),t.lineTo(i+n,s+a.topRight),t.arc(i+n-a.topRight,s+a.topRight,a.topRight,0,-I,!0),t.lineTo(i+a.topLeft,s)}const ge=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),be=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ve(t,e){const i=(""+t).match(ge);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const ye=t=>+t||0;function xe(t,e){const i={},s=l(e),n=s?Object.keys(e):e,r=l(t)?s?i=>h(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=ye(r(t));return i}function we(t){return xe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Se(t){return xe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ee(t){const e=we(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Me(t,e){t=t||{},e=e||ee.font;let i=h(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=h(t.style,e.style);s&&!(""+s).match(be)&&(console.warn('Invalid font style specified: "'+s+'"'),s="");const n={family:h(t.family,e.family),lineHeight:ve(h(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:h(t.weight,e.weight),string:""};return n.string=function(t){return!t||a(t.size)||a(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function Te(t,e,i,s){let n,r,a,l=!0;for(n=0,r=t.length;n<r;++n)if(a=t[n],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),l=!1),void 0!==i&&o(a)&&(a=a[i%a.length],l=!1),void 0!==a))return s&&!l&&(s.cacheable=!1),a}function ke(t,e){return Object.assign(Object.create(t),e)}function _e(t,e=[""],i=t,s,n=()=>t[0]){T(s)||(s=$e("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:s,_getTarget:n,override:n=>_e([n,...t],e,i,s)};return new Proxy(r,{deleteProperty(e,i){return delete e[i],delete e._keys,delete t[0][i],!0},get(i,s){return Le(i,s,()=>
vendor: 6,182 bytes, line 2
2function(t,e,i,s){let n;for(const r of e)if(n=$e(Ae(r,t),i),T(n))return Oe(t,n)?Re(i,s,t,n):n}(s,e,t,i))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return ze(t).includes(e)},ownKeys(t){return ze(t)},set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function Ce(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Pe(t,s),setContext:e=>Ce(t,e,i,s),override:n=>Ce(t.override(n),e,i,s)};return new Proxy(n,{deleteProperty(e,i){return delete e[i],delete t[i],!0},get(t,e,i){return Le(t,e,()=>function(t,e,i){const{_proxy:s,_context:n,_subProxy:r,_descriptors:a}=t;let c=s[e];k(c)&&a.isScriptable(e)&&(c=function(t,e,i,s){const{_proxy:n,_context:r,_subProxy:a,_stack:o}=i;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);o.add(t),e=e(r,a||s),o.delete(t),Oe(t,e)&&(e=Re(n._scopes,n,t,e));return e}(e,c,t,i));o(c)&&c.length&&(c=function(t,e,i,s){const{_proxy:n,_context:r,_subProxy:a,_descriptors:o}=i;if(T(r.index)&&s(t))e=e[r.index%e.length];else if(l(e[0])){const i=e,s=n._scopes.filter(t=>t!==i);e=[];for(const l of i){const i=Re(s,n,t,l);e.push(Ce(i,r,a&&a[t],o))}}return e}(e,c,t,a.isIndexable));Oe(e,c)&&(c=Ce(c,n,r&&r[e],a));return c}(t,e,i))},getOwnPropertyDescriptor(e,i){return e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,i){return Reflect.has(t,i)},ownKeys(){return Reflect.ownKeys(t)},set(e,i,s){return t[i]=s,delete e[i],!0}})}function Pe(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:k(i)?i:()=>i,isIndexable:k(s)?s:()=>s}}const Ae=(t,e)=>t?t+M(e):e,Oe=(t,e)=>l(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Le(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const s=i();return t[e]=s,s}function Ie(t,e,i){return k(t)?t(e,i):t}const De=(t,e)=>!0===t?e:"string"==typeof t?E(e,t):void 0;function Ne(t,e,i,s,n){for(const r of e){const e=De(i,r);if(e){t.add(e);const r=Ie(e._fallback,i,n);if(T(r)&&r!==i&&r!==s)return r}else if(!1===e&&T(s)&&i!==s)return null}return!1}function Re(t,e,i,s){const n=e._rootScopes,r=Ie(e._fallback,i,s),a=[...t,...n],c=new Set;c.add(s);let u=Fe(c,a,i,r||i,s);return null!==u&&((!T(r)||r===i||(u=Fe(c,a,r,u,s),null!==u))&&_e(Array.from(c),[""],n,r,()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];if(o(n)&&l(i))return i;return n}(e,i,s)))}function Fe(t,e,i,s,n){for(;i;)i=Ne(t,e,i,s,n);return i}function $e(t,e){for(const i of e){if(!i)continue;const e=i[t];if(T(e))return e}}function ze(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function je(t,e,i,s){const{iScale:n}=t,{key:r="r"}=this._parsing,a=new Array(s);let o,l,c,u;for(o=0,l=s;o<l;++o)c=o+i,u=e[c],a[o]={r:n.parse(E(u,r),c)};return a}const Be=Number.EPSILON||1e-14,Ve=(t,e)=>e<t.length&&!t[e].skip&&t[e],He=t=>"x"===t?"y":"x";function We(t,e,i,s){const n=t.skip?e:t,r=e,a=i.skip?e:i,o=q(r,n),l=q(a,r);let c=o/(o+l),u=l/(o+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const h=s*c,d=s*u;return{previous:{x:r.x-h*(a.x-n.x),y:r.y-h*(a.y-n.y)},next:{x:r.x+d*(a.x-n.x),y:r.y+d*(a.y-n.y)}}}function Ue(t,e="x"){const i=He(e),s=t.length,n=Array(s).fill(0),r=Array(s);let a,o,l,c=Ve(t,0);for(a=0;a<s;++a)if(o=l,l=c,c=Ve(t,a+1),l){if(c){const t=c[e]-l[e];n[a]=0!==t?(c[i]-l[i])/t:0}r[a]=o?c?F(n[a-1])!==F(n[a])?0:(n[a-1]+n[a])/2:n[a-1]:n[a]}!function(t,e,i){const s=t.length;let n,r,a,o,l,c=Ve(t,0);for(let u=0;u<s-1;++u)l=c,c=Ve(t,u+1),l&&c&&(j(e[u],0,Be)?i[u]=i[u+1]=0:(n=i[u]/e[u],r=i[u+1]/e[u],o=Math.pow(n,2)+Math.pow(r,2),o<=9||(a=3/Math.sqrt(o),i[u]=n*a*e[u],i[u+1]=r*a*e[u])))}(t,n,r),function(t,e,i="x"){const s=He(i),n=t.length;let r,a,o,l=Ve(t,0);for(let c=0;c<n;++c){if(a=o,o=l,l=Ve(t,c+1),!o)continue;const n=o[i],u=o[s];a&&(r=(n-a[i])/3,o[`cp1${i}`]=n-r,o[`cp1${s}`]=u-r*e[c]),l&&(r=(l[i]-n)/3,o[`cp2${i}`]=n+r,o[`cp2${s}`]=u+r*e[c])}}(t,r,e)}function qe(t,e,i){return Math.max(Math.min(t,i),e)}function Ye(t,e,i,s,n){let r,a,o,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Ue(t,n);else{let i=s?t[t.length-1]:t[0];for(r=0,a=t.length;r<a;++r)o=t[r],l=We(i,o,t[Math.min(r+1,a-(s?0:1))%a],e.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,i=o}e.capBezierPoints&&function(t,e){let i,s,n,r,a,o=le(t[0],e);for(i=0,s=t.length;i<s;++i)a=r,r=o,o=i<s-1&&le(t[i+1],e),r&&(n=t[i],a&&(n.cp1x=qe(n.cp1x,e.left,e.right),n.cp1y=qe(n.cp1y,e.top,e.bottom)),o&&(n.cp2x=qe(n.cp2x,e.left,e.right),n.cp2y=qe(n.cp2y,e.top,e.bottom)))}(t,i)}function Xe(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ge(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ke(t,e,i){let s;return"string"==typeof t?(s=parseInt(t,10),-1!==t.indexOf("%")&&(s=s/100*e.parentNode[i])):s=t,s}const Je=t=>window.getComputedStyle(t,null);const Qe=["top","right","bottom","left"];function Ze(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const r=Qe[n];s[r]=parseFloat(t[e+"-"+r+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}function ti(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=Je(i),r="border-box"===n.boxSizing,a=Ze(n,"padding"),o=Ze(n,"border","width"),{x:l,y:c,box:u}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:r}=s;let a,o,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(n,r,t.target))a=n,o=r;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,o=s.clientY-t.top,l=!0}return{x:a,y:o,box:l}}(t,i),h=a.left+(u&&o.left),d=a.top+(u&&o.top);let{width:p,height:f}=e;return r&&(p-=a.width+o.width,f-=a.height+o.height),{x:Math.round((l-h)/p*i.width/s),y:Math.round((c-d)/f*i.height/s)}}const ei=t=>Math.round(10*t)/10;
2function ii(t,e,i,s){const n=Je(t),r=Ze(n,"margin"),a=Ke(n.maxWidth,t,"clientWidth")||O,o=Ke(n.maxHeight,t,"clientHeight")||O,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const r=Ge(t);if(r){const t=r.getBoundingClientRect(),a=Je(r),o=Ze(a,"border","width"),l=Ze(a,"padding");e=t.width-l.width-o.width,i=t.height-l.height-o.height,s=Ke(a.maxWidth,r,"clientWidth"),n=Ke(a.maxHeight,r,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||O,maxHeight:n||O}}(t,e,i);let{width:c,height:u}=l;if("content-box"===n.boxSizing){const t=Ze(n,"border","width"),e=Ze(n,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-r.width),u=Math.max(0,s?Math.floor(c/s):u-r.height),c=ei(Math.min(c,a,l.maxWidth)),u=ei(Math.min(u,o,l.maxHeight)),c&&!u&&(u=ei(c/2)),{width:c,height:u}}function si(t,e,i){const s=e||1,n=Math.floor(t.height*s),r=Math.floor(t.width*s);t.height=n/s,t.width=r/s;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||a.height!==n||a.width!==r)&&(t.currentDevicePixelRatio=s,a.height=n,a.width=r,t.ctx.setTransform(s,0,0,s,0,0),!0)}const ni=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function ri(t,e){const i=function(t,e){return Je(t).getPropertyValue(e)}(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function ai(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function oi(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function li(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},a=ai(t,n,i),o=ai(n,r,i),l=ai(r,e,i),c=ai(a,o,i),u=ai(o,l,i);return ai(c,u,i)}const ci=new Map;function ui(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=ci.get(i);return s||(s=new Intl.NumberFormat(t,e),ci.set(i,s)),s}(e,i).format(t)}function hi(t,e,i){return t?function(t,e){return{x(i){return t+t+e-i},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}}(e,i):{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}}function di(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function pi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function fi(t){return"angle"===t?{between:G,compare:Y,normalize:X}:{between:J,compare:(t,e)=>t-e,normalize:t=>t}}function mi({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function gi(t,e,i){if(!i)return[t];const{property:s,start:n,end:r}=i,a=e.length,{compare:o,between:l,normalize:c}=fi(s),{start:u,end:h,loop:d,style:p}=function(t,e,i){const{property:s,start:n,end:r}=i,{between:a,normalize:o}=fi(s),l=e.length;let c,u,{start:h,end:d,loop:p}=t;if(p){for(h+=l,d+=l,c=0,u=l;c<u&&a(o(e[h%l][s]),n,r);++c)h--,d--;h%=l,d%=l}return d<h&&(d+=l),{start:h,end:d,loop:p,style:t.style}}(t,e,i),f=[];let m,g,b,v=!1,y=null;const x=()=>v||l(n,b,m)&&0!==o(n,b),w=()=>!v||0===o(r,m)||l(r,b,m);for(let t=u,i=u;t<=h;++t)g=e[t%a],g.skip||(m=c(g[s]),m!==b&&(v=l(m,n,r),null===y&&x()&&(y=0===o(m,n)?t:i),null!==y&&w()&&(f.push(mi({start:y,end:t,loop:d,count:a,style:p})),y=null),i=t,b=m));return null!==y&&f.push(mi({start:y,end:h,loop:d,count:a,style:p})),f}function bi(t,e){const i=[],s=t.segments;for(let n=0;n<s.length;n++){const r=gi(s[n],t.points,e);r.length&&i.push(...r)}return i}function vi(t,e,i,s){return s&&s.setContext&&i?function(t,e,i,s){const n=t._chart.getContext(),r=yi(t.options),{_datasetIndex:a,options:{spanGaps:o}}=t,l=i.length,c=[];let u=r,h=e[0].start,d=h;function p(t,e,s,n){const r=o?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=r;for(;i[e%l].skip;)e+=r;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:s,style:n}),u=n,h=e%l)}}for(const t of e){h=o?h:t.start;let e,r=i[h%l];for(d=h+1;d<=t.end;d++){const o=i[d%l];e=yi(s.setContext(ke(n,{type:"segment",p0:r,p1:o,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:a}))),xi(e,u)&&p(h,d-1,t.loop,u),r=o,u=e}h<d-1&&p(h,d-1,t.loop,u)}return c}(t,e,i,s):e}function yi(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function xi(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var wi=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],r=e.duration;
vendor: 1,552 bytes, line 2
2n.forEach(s=>s({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(i-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=nt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let r,a=n.length-1,o=!1;for(;a>=0;--a)r=n[a],r._active?(r._total>i.duration&&(i.duration=r._total),r.tick(t),o=!0):(n[a]=n[n.length-1],n.pop());o&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const Si="transparent",Ei={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const s=Gt(t||Si),n=s.valid&&Gt(e||Si);
vendor: 20,756 bytes, line 2
2return n&&n.valid?n.mix(s,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class Mi{constructor(t,e,i,s){const n=e[i];s=Te([t.to,s,n,t.from]);const r=Te([t.from,n,s]);this._active=!0,this._fn=t.fn||Ei[t.type||typeof r],this._easing=pt[t.easing]||pt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,r=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=Te([t.to,e,s,t.from]),this._from=Te([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,r=this._loop,a=this._to;let o;if(this._active=n!==a&&(r||e<i),!this._active)return this._target[s]=a,void this._notify(!0);e<0?this._target[s]=n:(o=e/i%2,o=r&&o>1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[s]=this._fn(n,a,o))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}ee.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const Ti=Object.keys(ee.animation);ee.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),ee.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),ee.describe("animations",{_fallback:"animation"}),ee.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class ki{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!l(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const s=t[i];if(!l(s))return;const n={};for(const t of Ti)n[t]=s[t];(o(s.properties)&&s.properties||[i]).forEach(t=>{t!==i&&e.has(t)||e.set(t,n)})})}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then(()=>{t.options=i},()=>{}),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let o;for(o=r.length-1;o>=0;--o){const l=r[o];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const c=e[l];let u=n[l];const h=i.get(l);if(u){if(h&&u.active()){u.update(h,c,a);continue}u.cancel()}h&&h.duration?(n[l]=u=new Mi(h,t,l,c),s.push(u)):t[l]=c}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(wi.add(this._chart,i),!0):void 0}}function _i(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,r=void 0===i.max?e:0;return{start:s?r:n,end:s?n:r}}function Ci(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,r;for(n=0,r=s.length;n<r;++n)i.push(s[n].index);return i}function Pi(t,e,i,s={}){const n=t.keys,r="single"===s.mode;let a,o,l,u;if(null!==e){for(a=0,o=n.length;a<o;++a){if(l=+n[a],l===i){if(s.all)continue;break}u=t.values[l],c(u)&&(r||0===e||F(e)===F(u))&&(e+=u)}return e}}function Ai(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Oi(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function Li(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function Ii(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:r,vScale:a,index:o}=s,l=r.axis,c=a.axis,u=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(r,a,s),h=e.length;let d;for(let t=0;t<h;++t){const i=e[t],{[l]:r,[c]:h}=i;d=(i._stacks||(i._stacks={}))[c]=Oi(n,u,r),d[o]=h,d._top=Li(d,a,!0,s.type),d._bottom=Li(d,a,!1,s.type)}}function Di(t,e){const i=t.scales;return Object.keys(i).filter(t=>i[t].axis===e).shift()}function Ni(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i]}}}const Ri=t=>"reset"===t||"none"===t,Fi=(t,e)=>e?t:Object.assign({},t);class $i{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ai(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Ni(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=h(i.xAxisID,Di(t,"x")),r=e.yAxisID=h(i.yAxisID,Di(t,"y")),a=e.rAxisID=h(i.rAxisID,Di(t,"r")),o=e.indexAxis,l=e.iAxisID=s(o,n,r,a),c=e.vAxisID=s(o,r,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&it(this._data,this),t._stacked&&Ni(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(l(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,r;for(s=0,n=e.length;s<n;++s)r=e[s],i[s]={x:r,y:t[r]};return i}(e);else if(i!==e){if(i){it(i,this);const t=this._cachedMeta;Ni(t),t._parsed=[]}e&&Object.isExtensible(e)&&(n=this,(s=e)._chartjs?s._chartjs.listeners.push(n):(Object.defineProperty(s,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),et.forEach(t=>{const e="_onData"+M(t),i=s[t];Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value(...t){const n=i.apply(this,t);return s._chartjs.listeners.forEach(i=>{"function"==typeof i[e]&&i[e](...t)}),n}})}))),this._syncList=[],this._data=e}var s,n}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=Ai(e.vScale,e),e.stack!==i.stack&&(s=!0,Ni(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&Ii(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:n,_stacked:r}=i,a=n.axis;let c,u,h,d=0===t&&e===s.length||i._sorted,p=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,h=s;else{h=o(s[t])?this.parseArrayData(i,s,t,e):l(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const n=()=>null===u[a]||p&&u[a]<p[a];for(c=0;c<e;++c)i._parsed[c+t]=u=h[c],d&&(n()&&(d=!1),p=u);i._sorted=d}r&&Ii(this,h)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:r}=t,a=n.axis,o=r.axis,l=n.getLabels(),c=n===r,u=new Array(s);let h,d,p;for(h=0,d=s;h<d;++h)p=h+i,u[h]={[a]:c||n.parse(l[p],p),[o]:r.parse(e[p],p)};return u}parseArrayData(t,e,i,s){const{xScale:n,yScale:r}=t,a=new Array(s);let o,l,c,u;for(o=0,l=s;o<l;++o)c=o+i,u=e[c],a[o]={x:n.parse(u[0],c),y:r.parse(u[1],c)};return a}parseObjectData(t,e,i,s){const{xScale:n,yScale:r}=t,{xAxisKey:a="x",yAxisKey:o="y"}=this._parsing,l=new Array(s);let c,u,h,d;for(c=0,u=s;c<u;++c)h=c+i,d=e[h],l[c]={x:n.parse(E(d,a),h),y:r.parse(E(d,o),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,r=e[t.axis];return Pi({keys:Ci(s,!0),values:e._stacks[t.axis]},r,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let r=null===n?NaN:n;const a=s&&i._stacks[e.axis];s&&a&&(s.values=a,r=Pi(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,r=s.length,a=this._getOtherScale(t),o=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Ci(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:h}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(a);let d,p;function f(){p=s[d];const e=p[a.axis];return!c(p[t.axis])||u>e||h<e}for(d=0;d<r&&(f()||(this.updateRangeFromParsed(l,t,p,o),!n));++d);if(n)for(d=r-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,t,p,o);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,r;for(s=0,n=e.length;s<n;++s)r=e[s][t.axis],c(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,n;return l(t)?(e=t.top,i=t.right,s=t.bottom,n=t.left):e=i=s=n=t,{top:e,right:i,bottom:s,left:n,disabled:!1===t}}(h(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=_i(t,i),n=_i(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,r=[],a=this._drawStart||0,o=this._drawCount||s.length-a,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(t,n,a,o),c=a;c<a+o;++c){const e=s[c];e.hidden||(e.active&&l?r.push(e):e.draw(t,n))}for(c=0;c<r.length;++c)r[c].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return ke(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return ke(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const s="active"===e,n=this._cachedDataOpts,r=t+"-"+e,a=n[r],o=this.enableOptionSharing&&T(i);if(a)return Fi(a,o);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=s?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),d=Object.keys(ee.elements[t]),p=l.resolveNamedOptions(h,d,()=>this.getContext(i,s),u);return p.$shared&&(p.$shared=o,n[r]=Object.freeze(Fi(p,o))),p}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,r=`animation-${e}`,a=n[r];if(a)return a;let o;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),r=s.getOptionScopes(this.getDataset(),n);o=s.createResolver(r,this.getContext(t,i,e))}const l=new ki(s,o&&o.animations);return o&&o._cacheable&&(n[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ri(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),r=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:r}}updateElement(t,e,i,s){Ri(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Ri(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,r=Math.min(n,s);r&&this.parse(0,r),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,r=t+e;let a;const o=t=>{for(t.length+=e,a=t.length-1;a>=r;a--)t[a]=t[a-e]};for(o(n),a=t;a<r;++a)n[a]=new this.dataElementType;this._parsing&&o(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&Ni(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function zi(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=st(s.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let s,n,r,a,o=e._length;const l=()=>{32767!==r&&-32768!==r&&(T(a)&&(o=Math.min(o,Math.abs(r-a)||o)),a=r)};for(s=0,n=i.length;s<n;++s)r=e.getPixelForValue(i[s]),l();for(a=void 0,s=0,n=e.ticks.length;s<n;++s)r=e.getPixelForTick(s),l();return o}function ji(t,e,i,s){return o(t)?function(t,e,i,s){const n=i.parse(t[0],s),r=i.parse(t[1],s),a=Math.min(n,r),o=Math.max(n,r);let l=a,c=o;Math.abs(a)>Math.abs(o)&&(l=o,c=a),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:n,end:r,min:a,max:o}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function Bi(t,e,i,s){const n=t.iScale,r=t.vScale,a=n.getLabels(),o=n===r,l=[];let c,u,h,d;for(c=i,u=i+s;c<u;++c)d=e[c],h={},h[n.axis]=o||n.parse(a[c],c),l.push(ji(d,h,r,c));return l}function Vi(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Hi(t,e,i,s){let n=e.borderSkipped;const r={};if(!n)return void(t.borderSkipped=r);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:o,reverse:l,top:c,bottom:u}=function(t){let e,i,s,n,r;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.base<t.y,i="bottom",s="top"),e?(n="end",r="start"):(n="start",r="end"),{start:i,end:s,reverse:e,top:n,bottom:r}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=c:(i._bottom||0)===s?n=u:(r[Wi(u,a,o,l)]=!0,n=c)),r[Wi(n,a,o,l)]=!0,t.borderSkipped=r}function Wi(t,e,i,s){var n,r,a;return s?(a=i,t=Ui(t=(n=t)===(r=e)?a:n===a?r:n,i,e)):t=Ui(t,e,i),t}function Ui(t,e,i){return"start"===t?e:"end"===t?i:t}function qi(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}$i.defaults={},$i.prototype.datasetElementType=null,$i.prototype.dataElementType=null;class Yi extends $i{parsePrimitiveData(t,e,i,s){return Bi(t,e,i,s)}parseArrayData(t,e,i,s){return Bi(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:r}=t,{xAxisKey:a="x",yAxisKey:o="y"}=this._parsing,l="x"===n.axis?a:o,c="x"===r.axis?a:o,u=[];let h,d,p,f;for(h=i,d=i+s;h<d;++h)f=e[h],p={},p[n.axis]=n.parse(E(f,l),h),u.push(ji(E(f,c),p,r,h));return u}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),r=n._custom,a=Vi(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(n[s.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,s){const n="reset"===s,{index:r,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),c=o.isHorizontal(),u=this._getRuler(),{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,s);for(let p=e;p<e+i;p++){const e=this.getParsed(p),i=n||a(e[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),f=this._calculateBarIndexPixels(p,u),m=(e._stacks||{})[o.axis],g={horizontal:c,base:i.base,enableBorderRadius:!m||Vi(e._custom)||r===m._top||r===m._bottom,x:c?i.head:f.center,y:c?f.center:i.head,height:c?f.size:Math.abs(i.size),width:c?Math.abs(i.size):f.size};d&&(g.options=h||this.resolveDataElementOptions(p,t[p].active?"active":s));const b=g.options||t[p].options;Hi(g,b,m,r),qi(g,b,u.ratio),this.updateElement(t[p],p,g,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),n=i.options.stacked,r=[],o=t=>{const i=t.controller.getParsed(e),s=i&&i[t.vScale.axis];if(a(s)||isNaN(s))return!0};for(const i of s)if((void 0===e||!o(i))&&((!1===n||-1===r.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&r.push(i.stack),i.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,r;for(n=0,r=e.data.length;n<r;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const a=t.barThickness;return{min:a||zi(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:s,minBarLength:n}}=this,r=s||0,o=this.getParsed(t),l=o._custom,c=Vi(l);let u,h,d=o[e.axis],p=0,f=i?this.applyStack(e,o,i):d;f!==d&&(p=f-d,f=d),c&&(d=l.barStart,f=l.barEnd-l.barStart,0!==d&&F(d)!==F(l.barEnd)&&(p=0),p+=d);const m=a(s)||c?p:s;let g=e.getPixelForValue(m);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):g,h=u-g,Math.abs(h)<n){h=function(t,e,i){return 0!==t?F(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(h,e,r)*n,d===r&&(g-=h/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),s=Math.min(t,i),a=Math.max(t,i);g=Math.max(Math.min(g,a),s),u=g+h}if(g===e.getPixelForValue(r)){const t=F(h)*e.getLineWidthForValue(r)/2;g+=t,h-=t}return{size:h,base:g,head:u,center:u+h/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,n=s.skipNull,r=h(s.maxBarThickness,1/0);let o,l;if(e.grouped){const i=n?this._getStackCount(t):e.stackCount,c="flex"===s.barThickness?function(t,e,i,s){const n=e.pixels,r=n[t];let a=t>0?n[t-1]:null,o=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===a&&(a=r-(null===o?e.end-e.start:o-r)),null===o&&(o=r+r-a);const c=r-(r-Math.min(a,o))/2*l;return{chunk:Math.abs(o-a)/2*l/s,ratio:i.barPercentage,start:c}}
vendor: 12,912 bytes, line 2
2(t,e,s,i):function(t,e,i,s){const n=i.barThickness;let r,o;return a(n)?(r=e.min*i.categoryPercentage,o=i.barPercentage):(r=n*s,o=1),{chunk:r/s,ratio:o,start:e.pixels[t]-r/2}}(t,e,s,i),u=this._getStackIndex(this.index,this._cachedMeta.stack,n?t:void 0);o=c.start+c.chunk*u+c.chunk/2,l=Math.min(r,c.chunk*c.ratio)}else o=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(r,e.min*e.ratio);return{base:o-l/2,head:o+l/2,center:o,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null!==this.getParsed(n)[e.axis]&&i[n].draw(this._ctx)}}Yi.id="bar",Yi.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Yi.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Xi extends $i{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,s){const n=super.parsePrimitiveData(t,e,i,s);for(let t=0;t<n.length;t++)n[t]._custom=this.resolveDataElementOptions(t+i).radius;return n}parseArrayData(t,e,i,s){const n=super.parseArrayData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=h(s[2],this.resolveDataElementOptions(t+i).radius)}return n}parseObjectData(t,e,i,s){const n=super.parseObjectData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=h(s&&s.r&&+s.r,this.resolveDataElementOptions(t+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:s}=e,n=this.getParsed(t),r=i.getLabelForValue(n.x),a=s.getLabelForValue(n.y),o=n._custom;return{label:e.label,value:"("+r+", "+a+(o?", "+o:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(e,s),c=r.axis,u=a.axis;for(let h=e;h<e+i;h++){const e=t[h],i=!n&&this.getParsed(h),d={},p=d[c]=n?r.getPixelForDecimal(.5):r.getPixelForValue(i[c]),f=d[u]=n?a.getBasePixel():a.getPixelForValue(i[u]);d.skip=isNaN(p)||isNaN(f),l&&(d.options=o||this.resolveDataElementOptions(h,e.active?"active":s),n&&(d.options.radius=0)),this.updateElement(e,h,d,s)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const n=s.radius;return"active"!==e&&(s.radius=0),s.radius+=h(i&&i._custom,n),s}}Xi.id="bubble",Xi.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Xi.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};class Gi extends $i{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,r,a=t=>+i[t];if(l(i[t])){const{key:t="value"}=this._parsing;a=e=>+E(i[e],t)}for(n=t,r=t+e;n<r;++n)s._parsed[n]=a(n)}}_getRotation(){return V(this.options.rotation-90)}_getCircumference(){return V(this.options.circumference)}_getRotationExtents(){let t=P,e=-P;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),r=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-r)/2,0),o=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:h,rotation:p}=this._getRotationExtents(),{ratioX:f,ratioY:m,offsetX:g,offsetY:b}=function(t,e,i){let s=1,n=1,r=0,a=0;if(e<P){const o=t,l=o+e,c=Math.cos(o),u=Math.sin(o),h=Math.cos(l),d=Math.sin(l),p=(t,e,s)=>G(t,o,l,!0)?1:Math.max(e,e*i,s,s*i),f=(t,e,s)=>G(t,o,l,!0)?-1:Math.min(e,e*i,s,s*i),m=p(0,c,h),g=p(I,u,d),b=f(C,c,h),v=f(C+I,u,d);s=(m-b)/2,n=(g-v)/2,r=-(m+b)/2,a=-(g+v)/2}return{ratioX:s,ratioY:n,offsetX:r,offsetY:a}}(p,h,o),v=(i.width-r)/f,y=(i.height-r)/m,x=Math.max(Math.min(v,y)/2,0),w=d(this.options.radius,x),S=(w-Math.max(w*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*w,this.offsetY=b*w,s.total=this.calculateTotal(),this.outerRadius=w-S*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-S*u,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/P)}updateElements(t,e,i,s){const n="reset"===s,r=this.chart,a=r.chartArea,o=r.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=n&&o.animateScale,h=u?0:this.innerRadius,d=u?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,s);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,n);for(m=e;m<e+i;++m){const e=this._circumference(m,n),i=t[m],r={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:d,innerRadius:h};f&&(r.options=p||this.resolveDataElementOptions(m,i.active?"active":s)),g+=e,this.updateElement(i,m,r,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?P*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ui(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,r,a,o;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){r=i.getDatasetMeta(s),t=r.data,a=r.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)o=a.resolveDataElementOptions(s),"inner"!==o.borderAlign&&(e=Math.max(e,o.borderWidth||0,o.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(h(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Gi.id="doughnut",Gi.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Gi.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Gi.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){let e=t.label;const i=": "+t.formattedValue;return o(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class Ki extends $i{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:n}=e,r=this.chart._animationsDisabled;let{start:a,count:o}=lt(e,s,r);this._drawStart=a,this._drawCount=o,ct(e)&&(a=0,o=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:l},t),this.updateElements(s,a,o,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:r,vScale:o,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,s),d=r.axis,p=o.axis,{spanGaps:f,segment:m}=this.options,g=z(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||n||"none"===s;let v=e>0&&this.getParsed(e-1);for(let f=e;f<e+i;++f){const e=t[f],i=this.getParsed(f),y=b?e:{},x=a(i[p]),w=y[d]=r.getPixelForValue(i[d],f),S=y[p]=n||x?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,i,l):i[p],f);y.skip=isNaN(w)||isNaN(S)||x,y.stop=f>0&&Math.abs(i[d]-v[d])>g,m&&(y.parsed=i,y.raw=c.data[f]),h&&(y.options=u||this.resolveDataElementOptions(f,e.active?"active":s)),b||this.updateElement(e,f,y,s),v=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ki.id="line",Ki.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Ki.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Ji extends $i{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ui(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return je.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),r=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,i,s){const n="reset"===s,r=this.chart,a=r.options.animation,o=this._cachedMeta.rScale,l=o.xCenter,c=o.yCenter,u=o.getIndexAngle(0)-.5*C;let h,d=u;const p=360/this.countVisibleElements();for(h=0;h<e;++h)d+=this._computeAngle(h,s,p);for(h=e;h<e+i;h++){const e=t[h];let i=d,f=d+this._computeAngle(h,s,p),m=r.getDataVisibility(h)?o.getDistanceFromCenterForValue(this.getParsed(h).r):0;d=f,n&&(a.animateScale&&(m=0),a.animateRotate&&(i=f=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:i,endAngle:f,options:this.resolveDataElementOptions(h,e.active?"active":s)};this.updateElement(e,h,g,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?V(this.resolveDataElementOptions(t,e).angle||i):0}}Ji.id="polarArea",Ji.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Ji.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){return t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Qi extends Gi{}Qi.id="pie",Qi.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Zi extends $i{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}
vendor: 17,912 bytes, line 2
2parseObjectData(t,e,i,s){return je.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const r={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,r,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this._cachedMeta.rScale,r="reset"===s;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":s),o=n.getPointPositionForValue(a,this.getParsed(a).r),l=r?n.xCenter:o.x,c=r?n.yCenter:o.y,u={x:l,y:c,angle:o.angle,skip:isNaN(l)||isNaN(c),options:i};this.updateElement(e,a,u,s)}}}Zi.id="radar",Zi.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Zi.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ts{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return z(this.x)&&z(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach(t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),s}}ts.defaults={},ts.defaultRoutes=void 0;const es={values(t){return o(t)?t:""+t},numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let n,r=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),r=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const a=R(Math.abs(r)),o=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:n,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),ui(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";const s=t/Math.pow(10,Math.floor(R(t)));return 1===s||2===s||5===s?es.numeric.call(this,t,e,i):""}};var is={formatters:es};function ss(t,e){const i=t.options.ticks,s=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),n=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],r=n.length,o=n[0],l=n[r-1],c=[];if(r>s)return function(t,e,i,s){let n,r=0,a=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===a&&(e.push(t[n]),r++,a=i[r*s])}(e,c,n,r/s),c;const u=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const r=function(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s===0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort((t,e)=>t-e).pop(),e}(s);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>n)return e}return Math.max(n,1)}(n,e,s);if(r>0){let t,i;const s=r>1?Math.round((l-o)/(r-1)):null;for(ns(e,c,u,a(s)?0:o-s,o),t=0,i=r-1;t<i;t++)ns(e,c,u,n[t],n[t+1]);return ns(e,c,u,l,a(s)?e.length:l+s),c}return ns(e,c,u),c}function ns(t,e,i,s,n){const r=h(s,0),a=Math.min(h(n,t.length),t.length);let o,l,c,u=0;for(i=Math.ceil(i),n&&(o=n-s,i=o/Math.floor(o/i)),c=r;c<0;)u++,c=Math.round(r+u*i);for(l=Math.max(r,0);l<a;l++)l===c&&(e.push(t[l]),u++,c=Math.round(r+u*i))}ee.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:is.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ee.route("scale.ticks","color","","color"),ee.route("scale.grid","color","","borderColor"),ee.route("scale.grid","borderColor","","borderColor"),ee.route("scale.title","color","","color"),ee.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),ee.describe("scales",{_fallback:"scale"}),ee.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const rs=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function as(t,e){const i=[],s=t.length/e,n=t.length;let r=0;for(;r<n;r+=s)i.push(t[Math.floor(r)]);return i}function os(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),r=t._startPixel,a=t._endPixel,o=1e-6;let l,c=t.getPixelForTick(n);if(!(i&&(l=1===s?Math.max(c-r,a-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(n-1))/2,c+=n<e?l:-l,c<r-o||c>a+o)))return c}function ls(t){return t.drawTicks?t.tickLength:0}function cs(t,e){if(!t.display)return 0;const i=Me(t.font,e),s=Ee(t.padding);return(o(t.text)?t.text.length:1)*i.lineHeight+s.height}function us(t,e,i){let s=at(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=(t=>"left"===t?"right":"right"===t?"left":t)(s)),s}class hs extends ts{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this;return t=u(t,Number.POSITIVE_INFINITY),e=u(e,Number.NEGATIVE_INFINITY),i=u(i,Number.POSITIVE_INFINITY),s=u(s,Number.NEGATIVE_INFINITY),{min:u(t,i),max:u(e,s),minDefined:c(t),maxDefined:c(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:r}=this.getUserBounds();if(n&&r)return{min:i,max:s};const a=this.getMatchingVisibleMetas();for(let o=0,l=a.length;o<l;++o)e=a[o].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),r||(s=Math.max(s,e.max));return i=r&&i>s?s:i,s=n&&i>s?i:s,{min:u(i,u(s,i)),max:u(s,u(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){p(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:s,max:n}=t,r=d(e,(n-s)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(s,-Math.abs(r)),max:a(n,r)}}(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=a<this.ticks.length;this._convertTicksToLabels(o?as(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=ss(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),o&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){p(this.options.afterUpdate,[this])}beforeSetDimensions(){p(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){p(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),p(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){p(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=p(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){p(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){p(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,s=e.minRotation||0,n=e.maxRotation;let r,a,o,l=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const c=this._getLabelSizes(),u=c.widest.width,h=c.highest.height,d=K(this.chart.width-u,0,this.maxWidth);r=t.offset?this.maxWidth/i:d/(i-1),u+6>r&&(r=d/(i-(t.offset?.5:1)),a=this.maxHeight-ls(t.grid)-e.padding-cs(t.title,this.chart.options.font),o=Math.sqrt(u*u+h*h),l=H(Math.min(Math.asin(K((c.highest.height+6)/r,-1,1)),Math.asin(K(a/o,-1,1))-Math.asin(K(h/o,-1,1)))),l=Math.max(s,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){p(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){p(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const r=cs(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=ls(n)+r):(t.height=this.maxHeight,t.width=ls(n)+r),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:r}=this._getLabelSizes(),o=2*i.padding,l=V(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const e=i.mirror?0:u*n.width+c*r.height;t.height=Math.min(this.maxHeight,t.height+e+o)}else{const e=i.mirror?0:c*n.width+u*r.height;t.width=Math.min(this.maxWidth,t.width+e+o)}this._calculatePadding(e,s,u,c)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:r},position:a}=this.options,o=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,h=0;o?l?(u=s*t.width,h=i*e.height):(u=i*t.height,h=s*e.width):"start"===n?h=e.width:"end"===n?u=t.width:"inner"!==n&&(u=t.width/2,h=e.width/2),this.paddingLeft=Math.max((u-a+r)*this.width/(this.width-a),0),this.paddingRight=Math.max((h-c+r)*this.width/(this.width-c),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+r,this.paddingBottom=s+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){p(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)a(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=as(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:s}=this,n=[],r=[];let l,c,u,h,d,p,m,g,b,v,y,x=0,w=0;for(l=0;l<e;++l){if(h=t[l].label,d=this._resolveTickFontOptions(l),i.font=p=d.string,m=s[p]=s[p]||{data:{},gc:[]},g=d.lineHeight,b=v=0,a(h)||o(h)){if(o(h))for(c=0,u=h.length;c<u;++c)y=h[c],a(y)||o(y)||(b=ie(i,m.data,m.gc,b,y),v+=g)}else b=ie(i,m.data,m.gc,b,h),v=g;n.push(b),r.push(v),x=Math.max(b,x),w=Math.max(v,w)}!function(t,e){f(t,t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}})}(s,e);const S=n.indexOf(x),E=r.indexOf(w),M=t=>({width:n[t]||0,height:r[t]||0});return{first:M(0),last:M(e-1),widest:M(S),highest:M(E),widths:n,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return K(this._alignToPixels?ne(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return ke(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=ke(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=V(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),r=t.autoSkipPadding||0,a=n?n.widest.width+r:0,o=n?n.highest.height+r:0;return this.isHorizontal()?o*i>a*s?a/i:o/s:o*s<a*i?o/i:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:n,position:r}=s,a=n.offset,o=this.isHorizontal(),c=this.ticks.length+(a?1:0),u=ls(n),d=[],p=n.setContext(this.getContext()),f=p.drawBorder?p.borderWidth:0,m=f/2,g=function(t){return ne(i,t,f)};let b,v,y,x,w,S,E,M,T,k,_,C;if("top"===r)b=g(this.bottom),S=this.bottom-u,M=b-m,k=g(t.top)+m,C=t.bottom;else if("bottom"===r)b=g(this.top),k=t.top,C=g(t.bottom)-m,S=b+m,M=this.top+u;else if("left"===r)b=g(this.right),w=this.right-u,E=b-m,T=g(t.left)+m,_=t.right;else if("right"===r)b=g(this.left),T=t.left,_=g(t.right)-m,w=b+m,E=this.left+u;else if("x"===e){if("center"===r)b=g((t.top+t.bottom)/2+.5);else if(l(r)){const t=Object.keys(r)[0],e=r[t];b=g(this.chart.scales[t].getPixelForValue(e))}k=t.top,C=t.bottom,S=b+m,M=S+u}else if("y"===e){if("center"===r)b=g((t.left+t.right)/2);else if(l(r)){const t=Object.keys(r)[0],e=r[t];b=g(this.chart.scales[t].getPixelForValue(e))}w=b-m,E=w-u,T=t.left,_=t.right}const P=h(s.ticks.maxTicksLimit,c),A=Math.max(1,Math.ceil(c/P));for(v=0;v<c;v+=A){const t=n.setContext(this.getContext(v)),e=t.lineWidth,s=t.color,r=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,u=t.tickColor,h=t.tickBorderDash||[],p=t.tickBorderDashOffset;y=os(this,v,a),void 0!==y&&(x=ne(i,y,e),o?w=E=T=_=x:S=M=k=C=x,d.push({tx1:w,ty1:S,tx2:E,ty2:M,x1:T,y1:k,x2:_,y2:C,width:e,color:s,borderDash:r,borderDashOffset:l,tickWidth:c,tickColor:u,tickBorderDash:h,tickBorderDashOffset:p}))}return this._ticksLength=c,this._borderValue=b,d}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:n}=i,r=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:u,padding:h,mirror:d}=n,p=ls(i.grid),f=p+h,m=d?-h:f,g=-V(this.labelRotation),b=[];let v,y,x,w,S,E,M,T,k,_,C,P,A="middle";if("top"===s)E=this.bottom-m,M=this._getXAxisLabelAlignment();else if("bottom"===s)E=this.top+m,M=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(p);M=t.textAlign,S=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(p);M=t.textAlign,S=t.x}else if("x"===e){if("center"===s)E=(t.top+t.bottom)/2+f;else if(l(s)){const t=Object.keys(s)[0],e=s[t];E=this.chart.scales[t].getPixelForValue(e)+f}M=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)S=(t.left+t.right)/2-f;else if(l(s)){const t=Object.keys(s)[0],e=s[t];S=this.chart.scales[t].getPixelForValue(e)}M=this._getYAxisLabelAlignment(p).textAlign}"y"===e&&("start"===c?A="top":"end"===c&&(A="bottom"));const O=this._getLabelSizes();for(v=0,y=a.length;v<y;++v){x=a[v],w=x.label;const t=n.setContext(this.getContext(v));T=this.getPixelForTick(v)+n.labelOffset,k=this._resolveTickFontOptions(v),_=k.lineHeight,C=o(w)?w.length:1;const e=C/2,i=t.color,l=t.textStrokeColor,c=t.textStrokeWidth;let h,p=M;
vendor: 1,752 bytes, line 2
2if(r?(S=T,"inner"===M&&(p=v===y-1?this.options.reverse?"left":"right":0===v?this.options.reverse?"right":"left":"center"),P="top"===s?"near"===u||0!==g?-C*_+_/2:"center"===u?-O.highest.height/2-e*_+_:-O.highest.height+_/2:"near"===u||0!==g?_/2:"center"===u?O.highest.height/2-e*_:O.highest.height-C*_,d&&(P*=-1)):(E=T,P=(1-C)*_/2),t.showLabelBackdrop){const e=Ee(t.backdropPadding),i=O.heights[v],s=O.widths[v];let n=E+P-e.top,r=S-e.left;switch(A){case"middle":n-=i/2;break;case"bottom":n-=i}switch(M){case"center":r-=s/2;break;case"right":r-=s}h={left:r,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}b.push({rotation:g,label:w,font:k,color:i,strokeColor:l,strokeWidth:c,textOffset:P,textAlign:p,textBaseline:A,translation:[S,E],backdrop:h})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-V(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,r=t+n,a=this._getLabelSizes().widest.width;let o,l;return"left"===e?s?(l=this.right+n,"near"===i?o="left":"center"===i?(o="center",l+=a/2):(o="right",l+=a)):(l=this.right-r,"near"===i?o="right":"center"===i?(o="center",l-=a/2):(o="left",l=this.left)):"right"===e?s?(l=this.left+n,"near"===i?o="right":"center"===i?(o="center",l-=a/2):(o="left",l-=a)):(l=this.left+r,"near"===i?o="left":"center"===i?(o="center",l+=a/2):(o="right",l=this.right)):o="right",{textAlign:o,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}
vendor: 4,149 bytes, line 2
2:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:s,width:n,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex(e=>e.value===t);if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,r;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,r=s.length;n<r;++n){const t=s[n];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:i}}=this,s=i.setContext(this.getContext()),n=i.drawBorder?s.borderWidth:0;if(!n)return;const r=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let o,l,c,u;this.isHorizontal()?(o=ne(t,this.left,n)-n/2,l=ne(t,this.right,r)+r/2,c=u=a):(c=ne(t,this.top,n)-n/2,u=ne(t,this.bottom,r)+r/2,o=l=a),e.save(),e.lineWidth=s.borderWidth,e.strokeStyle=s.borderColor,e.beginPath(),e.moveTo(o,c),e.lineTo(l,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&ce(e,i);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let n,r;for(n=0,r=s.length;n<r;++n){const t=s[n],i=t.font,r=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),pe(e,r,0,t.textOffset,i,t)}i&&ue(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const n=Me(i.font),r=Ee(i.padding),a=i.align;let c=n.lineHeight/2;"bottom"===e||"center"===e||l(e)?(c+=r.bottom,o(i.text)&&(c+=n.lineHeight*(i.text.length-1))):c+=r.top;const{titleX:u,titleY:h,maxWidth:d,rotation:p}=function(t,e,i,s){const{top:n,left:r,bottom:a,right:o,chart:c}=t,{chartArea:u,scales:h}=c;let d,p,f,m=0;const g=a-n,b=o-r;if(t.isHorizontal()){if(p=ot(s,r,o),l(i)){const t=Object.keys(i)[0],s=i[t];f=h[t].getPixelForValue(s)+g-e}else f="center"===i?(u.bottom+u.top)/2+g-e:rs(t,i,e);d=o-r}else{if(l(i)){const t=Object.keys(i)[0],s=i[t];p=h[t].getPixelForValue(s)-b+e}else p="center"===i?(u.left+u.right)/2-b+e:rs(t,i,e);f=ot(s,a,n),m="left"===i?-I:I}return{titleX:p,titleY:f,maxWidth:d,rotation:m}}(this,c,e,a);pe(t,i.text,0,0,n,{color:i.color,maxWidth:d,rotation:p,textAlign:us(a,e,s),textBaseline:"middle",translation:[u,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=h(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===hs.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let n,r;for(n=0,r=e.length;n<r;++n){const r=e[n];r[i]!==this.id||t&&r.type!==t||s.push(r)}return s}_resolveTickFontOptions(t){return Me(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ds{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,r=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);
vendor: 4,873 bytes, line 2
2return n in s||(s[n]=t,function(t,e,i){const s=y(Object.create(null),[i?ee.get(i):{},ee.get(e),t.defaults]);ee.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(i=>{const s=i.split("."),n=s.pop(),r=[t].concat(s).join("."),a=e[i].split("."),o=a.pop(),l=a.join(".");ee.route(r,n,l,o)})}(e,t.defaultRoutes);t.descriptors&&ee.describe(e,t.descriptors)}(t,r,i),this.override&&ee.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in ee[s]&&(delete ee[s][i],this.override&&delete Jt[i])}}var ps=new class{constructor(){this.controllers=new ds($i,"datasets",!0),this.elements=new ds(ts,"elements"),this.plugins=new ds(Object,"plugins"),this.scales=new ds(hs,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):f(e,e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)})})}_exec(t,e,i){const s=M(t);p(i["before"+s],[],i),e[t](i),p(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}};class fs extends $i{update(t){const e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:n,count:r}=lt(e,i,s);if(this._drawStart=n,this._drawCount=r,ct(e)&&(n=0,r=i.length),this.options.showLine){const{dataset:n,_dataset:r}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=i;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:a},t)}this.updateElements(i,n,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=ps.getElement("line")),super.addElements()}updateElements(t,e,i,s){const n="reset"===s,{iScale:r,vScale:o,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(e,s),h=this.getSharedOptions(u),d=this.includeOptions(s,h),p=r.axis,f=o.axis,{spanGaps:m,segment:g}=this.options,b=z(m)?m:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||n||"none"===s;let y=e>0&&this.getParsed(e-1);for(let u=e;u<e+i;++u){const e=t[u],i=this.getParsed(u),m=v?e:{},x=a(i[f]),w=m[p]=r.getPixelForValue(i[p],u),S=m[f]=n||x?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,i,l):i[f],u);m.skip=isNaN(w)||isNaN(S)||x,m.stop=u>0&&Math.abs(i[p]-y[p])>b,g&&(m.parsed=i,m.raw=c.data[u]),d&&(m.options=h||this.resolveDataElementOptions(u,e.active?"active":s)),v||this.updateElement(e,u,m,s),y=i}this.updateSharedOptions(h,s,u)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const n=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,r)/2}}fs.id="scatter",fs.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},fs.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(t){return"("+t.label+", "+t.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var ms=Object.freeze({__proto__:null,BarController:Yi,BubbleController:Xi,DoughnutController:Gi,LineController:Ki,PolarAreaController:Ji,PieController:Qi,RadarController:Zi,ScatterController:fs});function gs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class bs{constructor(t){this.options=t||{}}init(t){}formats(){return gs()}parse(t,e){return gs()}format(t,e){return gs()}add(t,e,i){return gs()}diff(t,e,i){return gs()}startOf(t,e,i){return gs()}endOf(t,e){return gs()}}bs.override=function(t){Object.assign(bs.prototype,t)};var vs={_date:bs};
vendor: 29,984 bytes, line 2
2function ys(t,e,i,s){const{controller:n,data:r,_sorted:a}=t,o=n._cachedMeta.iScale;if(o&&e===o.axis&&"r"!==e&&a&&r.length){const t=o._reversePixels?tt:Z;if(!s)return t(r,e,i);if(n._sharedOptions){const s=r[0],n="function"==typeof s.getRange&&s.getRange(e);if(n){const s=t(r,e,i-n),a=t(r,e,i+n);return{lo:s.lo,hi:a.hi}}}}return{lo:0,hi:r.length-1}}function xs(t,e,i,s,n){const r=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=r.length;t<i;++t){const{index:i,data:o}=r[t],{lo:l,hi:c}=ys(r[t],e,a,n);for(let t=l;t<=c;++t){const e=o[t];e.skip||s(e,i,t)}}}function ws(t,e,i,s,n){const r=[];if(!n&&!t.isPointInArea(e))return r;return xs(t,i,e,function(i,a,o){(n||le(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&r.push({element:i,datasetIndex:a,index:o})},!0),r}function Ss(t,e,i,s,n,r){let a=[];const o=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,r=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2))}}(i);let l=Number.POSITIVE_INFINITY;return xs(t,i,e,function(i,c,u){const h=i.inRange(e.x,e.y,n);if(s&&!h)return;const d=i.getCenterPoint(n);if(!(!!r||t.isPointInArea(d))&&!h)return;const p=o(e,d);p<l?(a=[{element:i,datasetIndex:c,index:u}],l=p):p===l&&a.push({element:i,datasetIndex:c,index:u})}),a}function Es(t,e,i,s,n,r){return r||t.isPointInArea(e)?"r"!==i||s?Ss(t,e,i,s,n,r):function(t,e,i,s){let n=[];return xs(t,i,e,function(t,i,r){const{startAngle:a,endAngle:o}=t.getProps(["startAngle","endAngle"],s),{angle:l}=U(t,{x:e.x,y:e.y});G(l,a,o)&&n.push({element:t,datasetIndex:i,index:r})}),n}(t,e,i,n):[]}function Ms(t,e,i,s,n){const r=[],a="x"===i?"inXRange":"inYRange";let o=!1;return xs(t,i,e,(t,s,l)=>{t[a](e[i],n)&&(r.push({element:t,datasetIndex:s,index:l}),o=o||t.inRange(e.x,e.y,n))}),s&&!o?[]:r}var Ts={evaluateInteractionItems:xs,modes:{index(t,e,i,s){const n=ti(e,t),r=i.axis||"x",a=i.includeInvisible||!1,o=i.intersect?ws(t,n,r,s,a):Es(t,n,r,!1,s,a),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=o[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,i,s){const n=ti(e,t),r=i.axis||"xy",a=i.includeInvisible||!1;let o=i.intersect?ws(t,n,r,s,a):Es(t,n,r,!1,s,a);if(o.length>0){const e=o[0].datasetIndex,i=t.getDatasetMeta(e).data;o=[];for(let t=0;t<i.length;++t)o.push({element:i[t],datasetIndex:e,index:t})}return o},point(t,e,i,s){return ws(t,ti(e,t),i.axis||"xy",s,i.includeInvisible||!1)},nearest(t,e,i,s){const n=ti(e,t),r=i.axis||"xy",a=i.includeInvisible||!1;return Es(t,n,r,i.intersect,s,a)},x(t,e,i,s){return Ms(t,ti(e,t),"x",i.intersect,s)},y(t,e,i,s){return Ms(t,ti(e,t),"y",i.intersect,s)}}};const ks=["left","top","right","bottom"];function _s(t,e){return t.filter(t=>t.pos===e)}function Cs(t,e){return t.filter(t=>-1===ks.indexOf(t.pos)&&t.box.axis===e)}function Ps(t,e){return t.sort((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight})}function As(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!ks.includes(s))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let r,a,o;for(r=0,a=t.length;r<a;++r){o=t[r];const{fullSize:a}=o.box,l=i[o.stack],c=l&&o.stackWeight/l.weight;o.horizontal?(o.width=c?c*s:a&&e.availableWidth,o.height=n):(o.width=s,o.height=c?c*n:a&&e.availableHeight)}return i}function Os(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function Ls(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Is(t,e,i,s){const{pos:n,box:r}=i,a=t.maxPadding;if(!l(n)){i.size&&(t[n]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[n]+=i.size}r.getPadding&&Ls(a,r.getPadding());const o=Math.max(0,e.outerWidth-Os(a,t,"left","right")),c=Math.max(0,e.outerHeight-Os(a,t,"top","bottom")),u=o!==t.w,h=c!==t.h;return t.w=o,t.h=c,i.horizontal?{same:u,other:h}:{same:h,other:u}}function Ds(t,e){const i=e.maxPadding;function s(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{s[t]=Math.max(e[t],i[t])}),s}return s(t?["left","right"]:["top","bottom"])}function Ns(t,e,i,s){const n=[];let r,a,o,l,c,u;for(r=0,a=t.length,c=0;r<a;++r){o=t[r],l=o.box,l.update(o.width||e.w,o.height||e.h,Ds(o.horizontal,e));const{same:a,other:h}=Is(e,i,o,s);c|=a&&n.length,u=u||h,l.fullSize||n.push(o)}return c&&Ns(n,e,i,s)||u}function Rs(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function Fs(t,e,i,s){const n=i.padding;let{x:r,y:a}=e;for(const o of t){const t=o.box,l=s[o.stack]||{count:1,placed:0,weight:1},c=o.stackWeight/l.weight||1;if(o.horizontal){const s=e.w*c,r=l.size||t.height;T(l.start)&&(a=l.start),t.fullSize?Rs(t,n.left,a,i.outerWidth-n.right-n.left,r):Rs(t,e.left+l.placed,a,s,r),l.start=a,l.placed+=s,a=t.bottom}else{const s=e.h*c,a=l.size||t.width;T(l.start)&&(r=l.start),t.fullSize?Rs(t,r,n.top,a,i.outerHeight-n.bottom-n.top):Rs(t,r,e.top+l.placed,a,s),l.start=r,l.placed+=s,r=t.right}}e.x=r,e.y=a}ee.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var $s={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=Ee(t.options.layout.padding),r=Math.max(e-n.width,0),a=Math.max(i-n.height,0),o=function(t){const e=function(t){const e=[];let i,s,n,r,a,o;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:r,options:{stack:a,stackWeight:o=1}}=n),e.push({index:i,box:n,pos:r,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&r+a,stackWeight:o});return e}(t),i=Ps(e.filter(t=>t.box.fullSize),!0),s=Ps(_s(e,"left"),!0),n=Ps(_s(e,"right")),r=Ps(_s(e,"top"),!0),a=Ps(_s(e,"bottom")),o=Cs(e,"x"),l=Cs(e,"y");return{fullSize:i,leftAndTop:s.concat(r),rightAndBottom:n.concat(l).concat(a).concat(o),chartArea:_s(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:r.concat(a).concat(o)}}(t.boxes),l=o.vertical,c=o.horizontal;f(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const u=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/u,hBoxMaxHeight:a/2}),d=Object.assign({},n);Ls(d,Ee(s));const p=Object.assign({maxPadding:d,w:r,h:a,x:n.left,y:n.top},n),m=As(l.concat(c),h);Ns(o.fullSize,p,h,m),Ns(l,p,h,m),Ns(c,p,h,m)&&Ns(l,p,h,m),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),Fs(o.leftAndTop,p,h,m),p.x+=p.w,p.y+=p.h,Fs(o.rightAndBottom,p,h,m),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},f(o.chartArea,e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class zs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class js extends zs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Bs="$chartjs",Vs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Hs=t=>null===t||""===t;const Ws=!!ni&&{passive:!0};function Us(t,e,i){t.canvas.removeEventListener(e,i,Ws)}function qs(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Ys(t,e,i){const s=t.canvas,n=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||qs(i.addedNodes,s),e=e&&!qs(i.removedNodes,s);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}function Xs(t,e,i){const s=t.canvas,n=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||qs(i.removedNodes,s),e=e&&!qs(i.addedNodes,s);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}const Gs=new Map;let Ks=0;function Js(){const t=window.devicePixelRatio;t!==Ks&&(Ks=t,Gs.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function Qs(t,e,i){const s=t.canvas,n=s&&Ge(s);if(!n)return;const r=rt((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()},window),a=new ResizeObserver(t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||r(i,s)});return a.observe(n),function(t,e){Gs.size||window.addEventListener("resize",Js),Gs.set(t,e)}(t,r),a}function Zs(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Gs.delete(t),Gs.size||window.removeEventListener("resize",Js)}(t)}function tn(t,e,i){const s=t.canvas,n=rt(e=>{null!==t.ctx&&i(function(t,e){const i=Vs[t.type]||t.type,{x:s,y:n}=ti(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,i){t.addEventListener(e,i,Ws)}(s,e,n),n}class en extends zs{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[Bs]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Hs(n)){const e=ri(t,"width");void 0!==e&&(t.width=e)}if(Hs(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ri(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Bs])return!1;const i=e[Bs].initial;["height","width"].forEach(t=>{const s=i[t];a(s)?e.removeAttribute(t):e.setAttribute(t,s)});const s=i.style||{};return Object.keys(s).forEach(t=>{e.style[t]=s[t]}),e.width=e.width,delete e[Bs],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:Ys,detach:Xs,resize:Qs}[e]||tn;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:Zs,detach:Zs,resize:Zs}[e]||Us)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return ii(t,e,i,s)}isAttached(t){const e=Ge(t);return!(!e||!e.isConnected)}}class sn{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===p(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){a(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,s=h(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(ps.plugins.items);for(let t=0;t<s.length;t++)i.push(ps.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const r=[],a=t.getContext();for(const o of e){const e=o.id,l=nn(s[e],n);null!==l&&r.push({plugin:o,options:rn(t.config,{plugin:o,local:i[e]},l,a)})}return r}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function nn(t,e){return e||!1!==t?!0===t?{}:t:null}function rn(t,{plugin:e,local:i},s,n){const r=t.pluginScopeKeys(e),a=t.getOptionScopes(s,r);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function an(t,e){const i=ee.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function on(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function ln(t){const e=t.options||(t.options={});e.plugins=h(e.plugins,{}),e.scales=function(t,e){const i=Jt[t.type]||{scales:{}},s=e.scales||{},n=an(t.type,e),r=Object.create(null),a=Object.create(null);return Object.keys(s).forEach(t=>{const e=s[t];if(!l(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const o=on(t,e),c=function(t,e){return t===e?"_index_":"_value_"}(o,n),u=i.scales||{};r[o]=r[o]||t,a[t]=x(Object.create(null),[{axis:o},e,u[o],u[c]])}),t.data.datasets.forEach(i=>{const n=i.type||t.type,o=i.indexAxis||an(n,e),l=(Jt[n]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,o),n=i[e+"AxisID"]||r[e]||e;a[n]=a[n]||Object.create(null),x(a[n],[{axis:e},s[n],l[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];x(e,[ee.scales[e.type],ee.scale])}),a}(t,e)}function cn(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const un=new Map,hn=new Set;function dn(t,e){let i=un.get(t);return i||(i=e(),un.set(t,i),hn.add(i)),i}const pn=(t,e,i)=>{const s=E(e,i);void 0!==s&&t.add(s)};class fn{constructor(t){this._config=function(t){return(t=t||{}).data=cn(t.data),ln(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=cn(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ln(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return dn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return dn(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return dn(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return dn(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,r=this._cachedScopes(t,i),a=r.get(e);if(a)return a;const o=new Set;e.forEach(e=>{t&&(o.add(t),e.forEach(e=>pn(o,t,e))),e.forEach(t=>pn(o,s,t)),e.forEach(t=>pn(o,Jt[n]||{},t)),e.forEach(t=>pn(o,ee,t)),e.forEach(t=>pn(o,Qt,t))});const l=Array.from(o);return 0===l.length&&l.push(Object.create(null)),hn.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Jt[e]||{},ee.datasets[e]||{},{type:e},ee,Qt]}resolveNamedOptions(t,e,i,s=[""]){const n={$shared:!0},{resolver:r,subPrefixes:a}=mn(this._resolverCache,t,s);let l=r;if(function(t,e){const{isScriptable:i,isIndexable:s}=Pe(t);for(const n of e){const e=i(n),r=s(n),a=(r||e)&&t[n];if(e&&(k(a)||gn(a))||r&&o(a))return!0}return!1}(r,e)){n.$shared=!1;l=Ce(r,i=k(i)?i():i,this.createResolver(t,i,a))}for(const t of e)n[t]=l[t];return n}createResolver(t,e,i=[""],s){const{resolver:n}=mn(this._resolverCache,t,i);return l(e)?Ce(n,e,void 0,s):n}}function mn(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let r=s.get(n);if(!r){r={resolver:_e(e,i),subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},s.set(n,r)}return r}const gn=t=>l(t)&&Object.getOwnPropertyNames(t).reduce((e,i)=>e||k(t[i]),!1);const bn=["top","bottom","left","right","chartArea"];function vn(t,e){return"top"===t||"bottom"===t||-1===bn.indexOf(t)&&"x"===e}function yn(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function xn(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),p(i&&i.onComplete,[t],e)}function wn(t){const e=t.chart,i=e.options.animation;p(i&&i.onProgress,[t],e)}function Sn(t){return Xe()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const En={},Mn=t=>{const e=Sn(t);return Object.values(En).filter(t=>t.canvas===e).pop()};function Tn(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const r=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=r)}}}class kn{constructor(t,e){const i=this.config=new fn(e),s=Sn(t),n=Mn(s);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!Xe()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?js:en}(s)),this.platform.updateConfig(i);const o=this.platform.acquireContext(s,a.aspectRatio),l=o&&o.canvas,c=l&&l.height,u=l&&l.width;this.id=r(),this.ctx=o,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new sn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}(t=>this.update(t),a.resizeDelay||0),this._dataChanges=[],En[this.id]=this,o&&l?(wi.listen(this,"complete",xn),wi.listen(this,"progress",wn),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:n}=this;return a(t)?e&&n?n:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():si(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return re(this.canvas,this.ctx),this}stop(){return wi.stop(this),this}resize(t,e){wi.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,si(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),p(i.onResize,[this,r],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){f(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{});let n=[];e&&(n=n.concat(Object.keys(e).map(t=>{const i=e[t],s=on(t,i),n="r"===s,r="x"===s;return{options:i,dposition:n?"chartArea":r?"bottom":"left",dtype:n?"radialLinear":r?"category":"linear"}}))),f(n,e=>{const n=e.options,r=n.id,a=on(r,n),o=h(n.type,e.dtype);void 0!==n.position&&vn(n.position,a)===vn(e.dposition)||(n.position=e.dposition),s[r]=!0;let l=null;if(r in i&&i[r].type===o)l=i[r];else{l=new(ps.getScale(o))({id:r,type:o,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(n,t)}),f(s,(t,e)=>{t||delete i[e]}),f(i,t=>{$s.configure(this,t,t.options),$s.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(yn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const r=s.type||this.config.type;if(n.type&&n.type!==r&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=r,n.indexAxis=s.indexAxis||an(r,this.options),n.order=s.order||0,n.index=i,n.label=""+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=ps.getController(r),{datasetElementType:s,dataElementType:a}=ee.datasets[r];Object.assign(e.prototype,{dataElementType:ps.getElement(a),datasetElementType:s&&ps.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){f(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||f(n,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(yn("z","_idx"));const{_active:a,_lastEvent:o}=this;o?this._eventHandler(o,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){f(this.scales,t=>{$s.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);_(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e){Tn(t,s,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),s=i(0);for(let t=1;t<e;t++)if(!_(s,i(t)))return;return Array.from(s).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;$s.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],f(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,k(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(wi.has(this)?this.attached&&!wi.running(this)&&wi.start(this):(this.draw(),xn({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,s=!i.disabled,n=this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(s&&ce(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&ue(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return le(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=Ts.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter(t=>t&&t._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=ke(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),r=n.controller._resolveAnimations(void 0,s);T(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(n,{visible:i}),this.update(e=>e.datasetIndex===t?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),wi.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),re(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete En[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};f(this.options.events,t=>i(t,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",r)};r=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){f(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},f(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,r,a,o;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,o=t.length;a<o;++a){r=t[a];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map(({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}});!m(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),r=n(e,t),a=i?t:n(t,e);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,r=e,a=this._getActiveElements(t,s,i,r),o=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}
2(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,o);i&&(this._lastEvent=null,p(n.onHover,[t,a,this],this),o&&p(n.onClick,[t,a,this],this));const c=!m(a,s);return(c||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}const _n=()=>f(kn.instances,t=>t._plugins.invalidate()),Cn=!0;function Pn(t,e,i){const{startAngle:s,pixelMargin:n,x:r,y:a,outerRadius:o,innerRadius:l}=e;let c=n/o;t.beginPath(),t.arc(r,a,o,s-c,i+c),l>n?(c=n/l,t.arc(r,a,l,i+c,s-c,!0)):t.arc(r,a,n,i+I,s-I),t.closePath(),t.clip()}function An(t,e,i,s){const n=xe(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const r=(i-e)/2,a=Math.min(r,s*e/2),o=t=>{const e=(i-Math.min(r,t))*s/2;return K(t,0,Math.min(r,e))};return{outerStart:o(n.outerStart),outerEnd:o(n.outerEnd),innerStart:K(n.innerStart,0,a),innerEnd:K(n.innerEnd,0,a)}}function On(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function Ln(t,e,i,s,n,r){const{x:a,y:o,startAngle:l,pixelMargin:c,innerRadius:u}=e,h=Math.max(e.outerRadius+s+i-c,0),d=u>0?u+s+i+c:0;let p=0;const f=n-l;if(s){const t=((u>0?u-s:0)+(h>0?h-s:0))/2;p=(f-(0!==t?f*t/(t+s):f))/2}const m=(f-Math.max(.001,f*h-i/C)/h)/2,g=l+m+p,b=n-m-p,{outerStart:v,outerEnd:y,innerStart:x,innerEnd:w}=An(e,d,h,b-g),S=h-v,E=h-y,M=g+v/S,T=b-y/E,k=d+x,_=d+w,P=g+x/k,A=b-w/_;if(t.beginPath(),r){if(t.arc(a,o,h,M,T),y>0){const e=On(E,T,a,o);t.arc(e.x,e.y,y,T,b+I)}const e=On(_,b,a,o);if(t.lineTo(e.x,e.y),w>0){const e=On(_,A,a,o);t.arc(e.x,e.y,w,b+I,A+Math.PI)}if(t.arc(a,o,d,b-w/d,g+x/d,!0),x>0){const e=On(k,P,a,o);t.arc(e.x,e.y,x,P+Math.PI,g-I)}const i=On(S,g,a,o);if(t.lineTo(i.x,i.y),v>0){const e=On(S,M,a,o);t.arc(e.x,e.y,v,g-I,M)}}else{t.moveTo(a,o);const e=Math.cos(M)*h+a,i=Math.sin(M)*h+o;t.lineTo(e,i);const s=Math.cos(T)*h+a,n=Math.sin(T)*h+o;t.lineTo(s,n)}t.closePath()}function In(t,e,i,s,n,r){const{options:a}=e,{borderWidth:o,borderJoinStyle:l}=a,c="inner"===a.borderAlign;o&&(c?(t.lineWidth=2*o,t.lineJoin=l||"round"):(t.lineWidth=o,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,i){const{x:s,y:n,startAngle:r,pixelMargin:a,fullCircles:o}=e,l=Math.max(e.outerRadius-a,0),c=e.innerRadius+a;let u;for(i&&Pn(t,e,r+P),t.beginPath(),t.arc(s,n,c,r+P,r,!0),u=0;u<o;++u)t.stroke();for(t.beginPath(),t.arc(s,n,l,r,r+P),u=0;u<o;++u)t.stroke()}(t,e,c),c&&Pn(t,e,n),Ln(t,e,i,s,n,r),t.stroke())}Object.defineProperties(kn,{defaults:{enumerable:Cn,value:ee},instances:{enumerable:Cn,value:En},overrides:{enumerable:Cn,value:Jt},registry:{enumerable:Cn,value:ps},version:{enumerable:Cn,value:"3.9.1"},getChart:{enumerable:Cn,value:Mn},register:{enumerable:Cn,value:(...t)=>{ps.add(...t),_n()}},unregister:{enumerable:Cn,value:(...t)=>{ps.remove(...t),_n()}}});class Dn extends ts{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.getProps(["x","y"],i),{angle:n,distance:r}=U(s,{x:t,y:e}),{startAngle:a,endAngle:o,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=this.options.spacing/2,p=h(u,o-a)>=P||G(n,a,o),f=J(r,l+d,c+d);return p&&f}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:o,spacing:l}=this.options,c=(s+n)/2,u=(r+a+l+o)/2;return{x:e+Math.cos(c)*u,y:i+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/2,n=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>P?Math.floor(i/P):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(s){a=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=C&&(a=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;
vendor: 23,790 bytes, line 2
2const o=function(t,e,i,s,n){const{fullCircles:r,startAngle:a,circumference:o}=e;let l=e.endAngle;if(r){Ln(t,e,i,s,a+P,n);for(let e=0;e<r;++e)t.fill();isNaN(o)||(l=a+o%P,o%P===0&&(l+=P))}return Ln(t,e,i,s,l,n),t.fill(),l}(t,this,a,n,r);In(t,this,a,n,o,r),t.restore()}}function Nn(t,e,i=e){t.lineCap=h(i.borderCapStyle,e.borderCapStyle),t.setLineDash(h(i.borderDash,e.borderDash)),t.lineDashOffset=h(i.borderDashOffset,e.borderDashOffset),t.lineJoin=h(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=h(i.borderWidth,e.borderWidth),t.strokeStyle=h(i.borderColor,e.borderColor)}function Rn(t,e,i){t.lineTo(i.x,i.y)}function Fn(t,e,i={}){const s=t.length,{start:n=0,end:r=s-1}=i,{start:a,end:o}=e,l=Math.max(n,a),c=Math.min(r,o),u=n<a&&r<a||n>o&&r>o;return{count:s,start:l,loop:e.loop,ilen:c<l&&!u?s+c-l:c-l}}function $n(t,e,i,s){const{points:n,options:r}=e,{count:a,start:o,loop:l,ilen:c}=Fn(n,i,s),u=function(t){return t.stepped?he:t.tension||"monotone"===t.cubicInterpolationMode?de:Rn}(r);let h,d,p,{move:f=!0,reverse:m}=s||{};for(h=0;h<=c;++h)d=n[(o+(m?c-h:h))%a],d.skip||(f?(t.moveTo(d.x,d.y),f=!1):u(t,p,d,m,r.stepped),p=d);return l&&(d=n[(o+(m?c:0))%a],u(t,p,d,m,r.stepped)),!!l}function zn(t,e,i,s){const n=e.points,{count:r,start:a,ilen:o}=Fn(n,i,s),{move:l=!0,reverse:c}=s||{};let u,h,d,p,f,m,g=0,b=0;const v=t=>(a+(c?o-t:t))%r,y=()=>{p!==f&&(t.lineTo(g,f),t.lineTo(g,p),t.lineTo(g,m))};for(l&&(h=n[v(0)],t.moveTo(h.x,h.y)),u=0;u<=o;++u){if(h=n[v(u)],h.skip)continue;const e=h.x,i=h.y,s=0|e;s===d?(i<p?p=i:i>f&&(f=i),g=(b*g+e)/++b):(y(),t.lineTo(e,i),d=s,b=0,p=f=i),m=i}y()}function jn(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?zn:$n}Dn.id="arc",Dn.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Dn.defaultRoutes={backgroundColor:"backgroundColor"};const Bn="function"==typeof Path2D;function Vn(t,e,i,s){Bn&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),Nn(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:r}=e,a=jn(e);for(const o of n)Nn(t,r,o.style),t.beginPath(),a(t,e,o,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}class Hn extends ts{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Ye(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const r=!!t._loop,{start:a,end:o}=function(t,e,i,s){let n=0,r=e-1;if(i&&!s)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(r+=n);r>n&&t[r%e].skip;)r--;return r%=e,{start:n,end:r}}(i,n,r,s);return vi(t,!0===s?[{start:a,end:o,loop:r}]:function(t,e,i,s){const n=t.length,r=[];let a,o=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(s=!1,r.push({start:e%n,end:(a-1)%n,loop:s}),e=o=i.stop?a:null):(o=a,l.skip&&(e=a)),l=i}return null!==o&&r.push({start:e%n,end:o%n,loop:s}),r}(i,a,o<a?o+n:o,!!t._fullLoop&&0===a&&o===n-1),i,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,r=bi(this,{property:e,start:s,end:s});if(!r.length)return;const a=[],o=function(t){return t.stepped?oi:t.tension||"monotone"===t.cubicInterpolationMode?li:ai}(i);let l,c;for(l=0,c=r.length;l<c;++l){const{start:c,end:u}=r[l],h=n[c],d=n[u];if(h===d){a.push(h);continue}const p=o(h,d,Math.abs((s-h[e])/(d[e]-h[e])),i.stepped);p[e]=t[e],a.push(p)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return jn(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=jn(this);let r=this._loop;e=e||0,i=i||this.points.length-e;for(const a of s)r&=n(t,this,a,{start:e,end:e+i-1});return!!r}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),Vn(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Wn(t,e,i,s){const n=t.options,{[i]:r}=t.getProps([i],s);return Math.abs(e-r)<n.radius+n.hitRadius}Hn.id="line",Hn.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Hn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Hn.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Un extends ts{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.options,{x:n,y:r}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-r,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return Wn(this,t,"x",e)}inYRange(t,e){return Wn(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!le(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,ae(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function qn(t,e){const{x:i,y:s,base:n,width:r,height:a}=t.getProps(["x","y","base","width","height"],e);let o,l,c,u,h;return t.horizontal?(h=a/2,o=Math.min(i,n),l=Math.max(i,n),c=s-h,u=s+h):(h=r/2,o=i-h,l=i+h,c=Math.min(s,n),u=Math.max(s,n)),{left:o,top:c,right:l,bottom:u}}function Yn(t,e,i,s){return t?0:K(e,i,s)}function Xn(t){const e=qn(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){const s=t.options.borderWidth,n=t.borderSkipped,r=we(s);return{t:Yn(n.top,r.top,0,i),r:Yn(n.right,r.right,0,e),b:Yn(n.bottom,r.bottom,0,i),l:Yn(n.left,r.left,0,e)}}(t,i/2,s/2),r=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,r=Se(n),a=Math.min(e,i),o=t.borderSkipped,c=s||l(n);return{topLeft:Yn(!c||o.top||o.left,r.topLeft,0,a),topRight:Yn(!c||o.top||o.right,r.topRight,0,a),bottomLeft:Yn(!c||o.bottom||o.left,r.bottomLeft,0,a),bottomRight:Yn(!c||o.bottom||o.right,r.bottomRight,0,a)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:r},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,r.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(n.b,n.r))}}}}function Gn(t,e,i,s){const n=null===e,r=null===i,a=t&&!(n&&r)&&qn(t,s);return a&&(n||J(e,a.left,a.right))&&(r||J(i,a.top,a.bottom))}function Kn(t,e){t.rect(e.x,e.y,e.w,e.h)}function Jn(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,r=(t.x+t.w!==i.x+i.w?e:0)-s,a=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+r,h:t.h+a,radius:t.radius}}Un.id="point",Un.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Un.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Qn extends ts{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:s}}=this,{inner:n,outer:r}=Xn(this),a=(o=r.radius).topLeft||o.topRight||o.bottomLeft||o.bottomRight?me:Kn;var o;t.save(),r.w===n.w&&r.h===n.h||(t.beginPath(),a(t,Jn(r,e,n)),t.clip(),a(t,Jn(n,-e,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,Jn(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return Gn(this,t,e,i)}inXRange(t,e){return Gn(this,t,null,e)}inYRange(t,e){return Gn(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Qn.id="bar",Qn.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Qn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Zn=Object.freeze({__proto__:null,ArcElement:Dn,LineElement:Hn,PointElement:Un,BarElement:Qn});function tr(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function er(t){t.data.datasets.forEach(t=>{tr(t)})}var ir={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void er(t);const s=t.width;t.data.datasets.forEach((e,n)=>{const{_data:r,indexAxis:o}=e,l=t.getDatasetMeta(n),c=r||e.data;if("y"===Te([o,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type)return;if(t.options.parsing)return;let{start:h,count:d}=function(t,e){const i=e.length;let s,n=0;const{iScale:r}=t,{min:a,max:o,minDefined:l,maxDefined:c}=r.getUserBounds();return l&&(n=K(Z(e,r.axis,a).lo,0,i-1)),s=c?K(Z(e,r.axis,o).hi+1,n,i)-n:i-n,{start:n,count:s}}(l,c);if(d<=(i.threshold||4*s))return void tr(e);let p;switch(a(r)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":p=function(t,e,i,s,n){const r=n.samples||s;if(r>=i)return t.slice(e,e+i);const a=[],o=(i-2)/(r-2);let l=0;const c=e+i-1;let u,h,d,p,f,m=e;for(a[l++]=t[m],u=0;u<r-2;u++){let s,n=0,r=0;const c=Math.floor((u+1)*o)+1+e,g=Math.min(Math.floor((u+2)*o)+1,i)+e,b=g-c;for(s=c;s<g;s++)n+=t[s].x,r+=t[s].y;n/=b,r/=b;const v=Math.floor(u*o)+1+e,y=Math.min(Math.floor((u+1)*o)+1,i)+e,{x:x,y:w}=t[m];for(d=p=-1,s=v;s<y;s++)p=.5*Math.abs((x-n)*(t[s].y-w)-(x-t[s].x)*(r-w)),p>d&&(d=p,h=t[s],f=s);a[l++]=h,m=f}return a[l++]=t[c],a}(c,h,d,s,i);break;case"min-max":p=function(t,e,i,s){let n,r,o,l,c,u,h,d,p,f,m=0,g=0;const b=[],v=e+i-1,y=t[e].x,x=t[v].x-y;for(n=e;n<e+i;++n){r=t[n],o=(r.x-y)/x*s,l=r.y;const e=0|o;if(e===c)l<p?(p=l,u=n):l>f&&(f=l,h=n),m=(g*m+r.x)/++g;else{const i=n-1;if(!a(u)&&!a(h)){const e=Math.min(u,h),s=Math.max(u,h);e!==d&&e!==i&&b.push({...t[e],x:m}),s!==d&&s!==i&&b.push({...t[s],x:m})}n>0&&i!==d&&b.push(t[i]),b.push(r),c=e,g=0,p=f=l,u=h=d=n}}return b}(c,h,d,s);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=p})},destroy(t){er(t)}};function sr(t,e,i,s){if(s)return;let n=e[t],r=i[t];return"angle"===t&&(n=X(n),r=X(r)),{property:t,start:n,end:r}}function nr(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function rr(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function ar(t,e){let i=[],s=!1;return o(t)?(s=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,r=[];return e.segments.forEach(({start:t,end:e})=>{e=nr(t,e,n);const a=n[t],o=n[e];null!==s?(r.push({x:a.x,y:s}),r.push({x:o.x,y:s})):null!==i&&(r.push({x:i,y:a.y}),r.push({x:i,y:o.y}))}),r}(t,e),i.length?new Hn({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function or(t){return t&&!1!==t.fill}function lr(t,e,i){let s=t[e].fill;const n=[e];let r;if(!i)return s;for(;!1!==s&&-1===n.indexOf(s);){if(!c(s))return s;if(r=t[s],!r)return!1;if(r.visible)return s;n.push(s),s=r.fill}return!1}function cr(t,e,i){const s=function(t){const e=t.options,i=e.fill;let s=h(i&&i.target,i);void 0===s&&(s=!!e.backgroundColor);if(!1===s||null===s)return!1;if(!0===s)return"origin";return s}(t);if(l(s))return!isNaN(s.value)&&s;let n=parseFloat(s);return c(n)&&Math.floor(n)===n?function(t,e,i,s){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=s)return!1;return i}(s[0],e,n,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function ur(t,e,i){const s=[];for(let n=0;n<i.length;n++){const r=i[n],{first:a,last:o,point:l}=hr(r,e,"x");if(!(!l||a&&o))if(a)s.unshift(l);else if(t.push(l),!o)break}t.push(...s)}function hr(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const n=s[i],r=t.segments,a=t.points;let o=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t],s=a[e.start][i],c=a[e.end][i];if(J(n,s,c)){o=n===s,l=n===c;break}}return{first:o,last:l,point:s}}class dr{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:n,radius:r}=this;return e=e||{start:0,end:P},t.arc(s,n,r,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function pr(t){const{chart:e,fill:i,line:s}=t;if(c(i))return function(t,e){const i=t.getDatasetMeta(e),s=i&&t.isDatasetVisible(e);return s?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],r=s.segments,a=s.points,o=function(t,e){const i=[],s=t.getMatchingVisibleMetas("line");for(let t=0;t<s.length;t++){const n=s[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);o.push(ar({x:null,y:e.bottom},s));for(let t=0;t<r.length;t++){const e=r[t];for(let t=e.start;t<=e.end;t++)ur(n,a[t],o)}return new Hn({points:n,options:{}})}(t);if("shape"===i)return!0;const n=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:i}=t,s=e.options,n=e.getLabels().length,r=s.reverse?e.max:e.min,a=function(t,e,i){let s;return s="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:l(t)?t.value:e.getBaseValue(),s}(i,e,r),o=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,r);return new dr({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<n;++t)o.push(e.getPointPositionForValue(t,a));return o}(t);return function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:l(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(c(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return n instanceof dr?n:ar(n,s)}function fr(t,e,i){const s=pr(e),{line:n,scale:r,axis:a}=e,o=n.options,l=o.fill,c=o.backgroundColor,{above:u=c,below:h=c}=l||{};s&&n.points.length&&(ce(t,i),function(t,e){const{line:i,target:s,above:n,below:r,area:a,scale:o}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&r!==n&&(mr(t,s,a.top),gr(t,{line:i,target:s,color:n,scale:o,property:l}),t.restore(),t.save(),mr(t,s,a.bottom));gr(t,{line:i,target:s,color:r,scale:o,property:l}),t.restore()}(t,{line:n,target:s,above:u,below:h,area:i,scale:r,axis:a}),ue(t))}function mr(t,e,i){const{segments:s,points:n}=e;let r=!0,a=!1;t.beginPath();for(const o of s){const{start:s,end:l}=o,c=n[s],u=n[nr(s,l,n)];r?(t.moveTo(c.x,c.y),r=!1):(t.lineTo(c.x,i),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,o,{move:a}),a?t.closePath():t.lineTo(u.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function gr(t,e){const{line:i,target:s,property:n,color:r,scale:a}=e,o=function(t,e,i){const s=t.segments,n=t.points,r=e.points,a=[];for(const t of s){let{start:s,end:o}=t;o=nr(s,o,n);const l=sr(i,n[s],n[o],t.loop);if(!e.segments){a.push({source:t,target:l,start:n[s],end:n[o]});continue}const c=bi(e,l);for(const e of c){const s=sr(i,r[e.start],r[e.end],e.loop),o=gi(t,n,s);for(const t of o)a.push({source:t,target:e,start:{[i]:rr(l,s,"start",Math.max)},end:{[i]:rr(l,s,"end",Math.min)}})}}return a}(i,s,n);for(const{source:e,target:l,start:c,end:u}of o){const{style:{backgroundColor:o=r}={}}=e,h=!0!==s;t.save(),t.fillStyle=o,br(t,a,h&&sr(n,c,u)),t.beginPath();const d=!!i.pathSegment(t,e);let p;if(h){d?t.closePath():vr(t,s,u,n);const e=!!s.pathSegment(t,l,{move:d,reverse:!0});p=d&&e,p||vr(t,s,c,n)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function br(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:r,start:a,end:o}=i||{};"x"===r&&(t.beginPath(),t.rect(a,s,o-a,n-s),t.clip())}function vr(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}var yr={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let r,a,o,l;for(a=0;a<s;++a)r=t.getDatasetMeta(a),o=r.dataset,l=null,o&&o.options&&o instanceof Hn&&(l={visible:t.isDatasetVisible(a),index:a,fill:cr(o,a,s),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:o}),r.$filler=l,n.push(l);for(a=0;a<s;++a)l=n[a],l&&!1!==l.fill&&(l.fill=lr(n,a,i.propagate))},beforeDraw(t,e,i){const s="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(r,i.axis),s&&i.fill&&fr(t.ctx,i,r))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;or(i)&&fr(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;or(s)&&"beforeDatasetDraw"===i.drawTime&&fr(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const xr=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class wr extends ts{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=p(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,s=Me(i.font),n=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:o}=xr(i,n);let l,c;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,n,a,o)+10):(c=this.maxHeight,l=this._fitCols(r,n,a,o)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:r,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],c=s+a;let u=t;n.textAlign="left",n.textBaseline="middle";let h=-1,d=-c;return this.legendItems.forEach((t,p)=>{const f=i+e/2+n.measureText(t.text).width;(0===p||l[l.length-1]+f+2*a>r)&&(u+=c,l[l.length-(p>0?0:1)]=0,d+=c,h++),o[p]={left:0,top:d,row:h,width:f,height:s},l[l.length-1]+=f+a}),u}_fitCols(t,e,i,s){const{ctx:n,maxHeight:r,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-t;let u=a,h=0,d=0,p=0,f=0;return this.legendItems.forEach((t,r)=>{const m=i+e/2+n.measureText(t.text).width;r>0&&d+s+2*a>c&&(u+=h+a,l.push({width:h,height:d}),p+=h+a,f++,h=d=0),o[r]={left:p,top:d,col:f,width:m,height:s},h=Math.max(h,m),d+=s+a}),u+=h,l.push({width:h,height:d}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,r=hi(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=ot(i,this.left+s,this.right-this.lineWidths[n]);for(const o of e)n!==o.row&&(n=o.row,a=ot(i,this.left+s,this.right-this.lineWidths[n])),o.top+=this.top+t+s,o.left=r.leftForLtr(r.x(a),o.width),a+=o.width+s}else{let n=0,a=ot(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const o of e)o.col!==n&&(n=o.col,a=ot(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),o.top=a,o.left+=this.left+s,o.left=r.leftForLtr(r.x(o.left),o.width),a+=o.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;ce(t,this),this._draw(),ue(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:r}=t,a=ee.color,o=hi(t.rtl,this.left,this.width),l=Me(r.font),{color:c,padding:u}=r,d=l.size,p=d/2;let f;this.drawTitle(),s.textAlign=o.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:m,boxHeight:g,itemHeight:b}=xr(r,d),v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:ot(n,this.left+u,this.right-i[0]),y:this.top+u+y,line:0}:{x:this.left+u,y:ot(n,this.top+y+u,this.bottom-e[0].height),line:0},di(this.ctx,t.textDirection);const x=b+u;this.legendItems.forEach((w,S)=>{s.strokeStyle=w.fontColor||c,s.fillStyle=w.fontColor||c;const E=s.measureText(w.text).width,M=o.textAlign(w.textAlign||(w.textAlign=r.textAlign)),T=m+p+E;let k=f.x,_=f.y;o.setWidth(this.width),v?S>0&&k+T+u>this.right&&(_=f.y+=x,f.line++,k=f.x=ot(n,this.left+u,this.right-i[f.line])):S>0&&_+x>this.bottom&&(k=f.x=k+e[f.line].width+u,f.line++,_=f.y=ot(n,this.top+y+u,this.bottom-e[f.line].height));!function(t,e,i){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;s.save();const n=h(i.lineWidth,1);if(s.fillStyle=h(i.fillStyle,a),s.lineCap=h(i.lineCap,"butt"),s.lineDashOffset=h(i.lineDashOffset,0),s.lineJoin=h(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=h(i.strokeStyle,a),s.setLineDash(h(i.lineDash,[])),r.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=o.xPlus(t,m/2);oe(s,a,l,e+p,r.pointStyleWidth&&m)}else{const r=e+Math.max((d-g)/2,0),a=o.leftForLtr(t,m),l=Se(i.borderRadius);s.beginPath(),Object.values(l).some(t=>0!==t)?me(s,{x:a,y:r,w:m,h:g,radius:l}):s.rect(a,r,m,g),s.fill(),0!==n&&s.stroke()}s.restore()}(o.x(k),_,w),k=((t,e,i,s)=>t===(s?"left":"right")?i:"center"===t?(e+i)/2:e)(M,k+m+p,v?k+T:this.right,t.rtl),function(t,e,i){pe(s,i.text,t,e+b/2,l,{strikethrough:i.hidden,textAlign:o.textAlign(i.textAlign)})}(o.x(k),_,w),v?f.x+=T+u:f.y+=x}),pi(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Me(e.font),s=Ee(e.padding);if(!e.display)return;const n=hi(t.rtl,this.left,this.width),r=this.ctx,a=e.position,o=i.size/2,l=s.top+o;let c,u=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,u=ot(t.align,u,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+ot(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=ot(a,u,u+h);r.textAlign=n.textAlign(at(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=i.string,pe(r,e.text,d,c,i)}_computeTitleHeight(){const t=this.options.title,e=Me(t.font),i=Ee(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(J(t,this.left,this.right)&&J(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],J(t,s.left,s.left+s.width)&&J(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;
vendor: 4,332 bytes, line 2
2if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,a=(n=i,null!==(s=r)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);r&&!a&&p(e.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!a&&p(e.onHover,[t,i,this],this)}else i&&p(e.onClick,[t,i,this],this);var s,n}}var Sr={id:"legend",_element:wr,start(t,e,i){const s=t.legend=new wr({ctx:t.ctx,options:i,chart:t});$s.configure(t,s,i),$s.addBox(t,s)},stop(t){$s.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;$s.configure(t,s,i),s.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:n,color:r}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const a=t.controller.getStyle(i?0:void 0),o=Ee(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(o.width+o.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:n||a.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Er extends ts{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=o(i.text)?i.text.length:1;this._padding=Ee(i.padding);const n=s*Me(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:r}=this,a=r.align;let o,l,c,u=0;return this.isHorizontal()?(l=ot(a,i,n),c=e+t,o=n-i):("left"===r.position?(l=i+t,c=ot(a,s,e),u=-.5*C):(l=n-t,c=ot(a,e,s),u=.5*C),o=s-e),{titleX:l,titleY:c,maxWidth:o,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Me(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:r,maxWidth:a,rotation:o}=this._drawArgs(s);pe(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:o,textAlign:at(e.align),textBaseline:"middle",translation:[n,r]})}}var Mr={id:"title",_element:Er,start(t,e,i){!function(t,e){const i=new Er({ctx:t.ctx,options:e,chart:t});$s.configure(t,i,e),$s.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;$s.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;$s.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Tr=new WeakMap;var kr={id:"subtitle",start(t,e,i){const s=new Er({ctx:t.ctx,options:i,chart:t});$s.configure(t,s,i),$s.addBox(t,s),Tr.set(t,s)},stop(t){$s.removeBox(t,Tr.get(t)),Tr.delete(t)},beforeUpdate(t,e,i){const s=Tr.get(t);$s.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const _r={average(t){if(!t.length)return!1;let e,i,s=0,n=0,r=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s+=t.x,n+=t.y,++r}}return{x:s/r,y:n/r}},nearest(t,e){if(!t.length)return!1;
vendor: 5,012 bytes, line 2
2let i,s,n,r=e.x,a=e.y,o=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=q(e,s.getCenterPoint());t<o&&(o=t,n=s)}}if(n){const t=n.tooltipPosition();r=t.x,a=t.y}return{x:r,y:a}}};function Cr(t,e){return e&&(o(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Pr(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Ar(t,e){const{element:i,datasetIndex:s,index:n}=e,r=t.getDatasetMeta(s).controller,{label:a,value:o}=r.getLabelAndValue(n);return{chart:t,label:a,parsed:r.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:o,dataset:r.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function Or(t,e){const i=t.chart.ctx,{body:s,footer:n,title:r}=t,{boxWidth:a,boxHeight:o}=e,l=Me(e.bodyFont),c=Me(e.titleFont),u=Me(e.footerFont),h=r.length,d=n.length,p=s.length,m=Ee(e.padding);let g=m.height,b=0,v=s.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),v){g+=p*(e.displayColors?Math.max(o,l.lineHeight):l.lineHeight)+(v-p)*l.lineHeight+(v-1)*e.bodySpacing}d&&(g+=e.footerMarginTop+d*u.lineHeight+(d-1)*e.footerSpacing);let y=0;const x=function(t){b=Math.max(b,i.measureText(t).width+y)};return i.save(),i.font=c.string,f(t.title,x),i.font=l.string,f(t.beforeBody.concat(t.afterBody),x),y=e.displayColors?a+2+e.boxPadding:0,f(s,t=>{f(t.before,x),f(t.lines,x),f(t.after,x)}),y=0,i.font=u.string,f(t.footer,x),i.restore(),b+=m.width,{width:b,height:g}}function Lr(t,e,i,s){const{x:n,width:r}=i,{width:a,chartArea:{left:o,right:l}}=t;let c="center";return"center"===s?c=n<=(o+l)/2?"left":"right":n<=r/2?c="left":n>=a-r/2&&(c="right"),function(t,e,i,s){const{x:n,width:r}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+r+a>e.width||"right"===t&&n-r-a<0||void 0}(c,t,e,i)&&(c="center"),c}function Ir(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Lr(t,e,i,s),yAlign:s}}function Dr(t,e,i,s){const{caretSize:n,caretPadding:r,cornerRadius:a}=t,{xAlign:o,yAlign:l}=i,c=n+r,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:p}=Se(a);let f=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,o);const m=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,c);return"center"===l?"left"===o?f+=c:"right"===o&&(f-=c):"left"===o?f-=Math.max(u,d)+n:"right"===o&&(f+=Math.max(h,p)+n),{x:K(f,0,s.width-e.width),y:K(m,0,s.height-e.height)}}function Nr(t,e,i){const s=Ee(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function Rr(t){return Cr([],Pr(t))}function Fr(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class $r extends ts{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new ki(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,ke(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,s=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),r=i.afterTitle.apply(this,[t]);let a=[];return a=Cr(a,Pr(s)),a=Cr(a,Pr(n)),a=Cr(a,Pr(r)),a}getBeforeBody(t,e){return Rr(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,s=[];return f(t,t=>{const e={before:[],lines:[],after:[]},n=Fr(i,t);Cr(e.before,Pr(n.beforeLabel.call(this,t))),Cr(e.lines,n.label.call(this,t)),Cr(e.after,Pr(n.afterLabel.call(this,t))),s.push(e)}),s}getAfterBody(t,e){return Rr(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,s=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),r=i.afterFooter.apply(this,[t]);let a=[];return a=Cr(a,Pr(s)),a=Cr(a,Pr(n)),a=Cr(a,Pr(r)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],r=[];let a,o,l=[];for(a=0,o=e.length;a<o;++a)l.push(Ar(this.chart,e[a]));return t.filter&&(l=l.filter((e,s,n)=>t.filter(e,s,n,i))),t.itemSort&&(l=l.sort((e,s)=>
vendor: 20,676 bytes, line 2
2t.itemSort(e,s,i))),f(l,e=>{const i=Fr(t.callbacks,e);s.push(i.labelColor.call(this,e)),n.push(i.labelPointStyle.call(this,e)),r.push(i.labelTextColor.call(this,e))}),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=r,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,r=[];if(s.length){const t=_r[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const e=this._size=Or(this,i),a=Object.assign({},t,e),o=Ir(this.chart,i,a),l=Dr(i,a,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=r,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:o,topRight:l,bottomLeft:c,bottomRight:u}=Se(a),{x:h,y:d}=t,{width:p,height:f}=e;let m,g,b,v,y,x;return"center"===n?(y=d+f/2,"left"===s?(m=h,g=m-r,v=y+r,x=y-r):(m=h+p,g=m+r,v=y-r,x=y+r),b=m):(g="left"===s?h+Math.max(o,c)+r:"right"===s?h+p-Math.max(l,u)-r:this.caretX,"top"===n?(v=d,y=v-r,m=g-r,b=g+r):(v=d+f,y=v+r,m=g+r,b=g-r),x=v),{x1:m,x2:g,x3:b,y1:v,y2:y,y3:x}}drawTitle(t,e,i){const s=this.title,n=s.length;let r,a,o;if(n){const l=hi(i.rtl,this.x,this.width);for(t.x=Nr(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",r=Me(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,o=0;o<n;++o)e.fillText(s[o],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,o+1===n&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,n){const r=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:o,boxWidth:c,boxPadding:u}=n,h=Me(n.bodyFont),d=Nr(this,"left",n),p=s.x(d),f=o<h.lineHeight?(h.lineHeight-o)/2:0,m=e.y+f;if(n.usePointStyle){const e={radius:Math.min(c,o)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=s.leftForLtr(p,c)+c/2,l=m+o/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,ae(t,e,i,l),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,ae(t,e,i,l)}else{t.lineWidth=l(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=s.leftForLtr(p,c-u),i=s.leftForLtr(s.xPlus(p,1),c-u-2),a=Se(r.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=n.multiKeyBackground,me(t,{x:e,y:m,w:c,h:o,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),me(t,{x:i,y:m+1,w:c-2,h:o-2,radius:a}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,m,c,o),t.strokeRect(e,m,c,o),t.fillStyle=r.backgroundColor,t.fillRect(i,m+1,c-2,o-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:r,displayColors:a,boxHeight:o,boxWidth:l,boxPadding:c}=i,u=Me(i.bodyFont);let h=u.lineHeight,d=0;const p=hi(i.rtl,this.x,this.width),m=function(i){e.fillText(i,p.x(t.x+d),t.y+h/2),t.y+=h+n},g=p.textAlign(r);let b,v,y,x,w,S,E;for(e.textAlign=r,e.textBaseline="middle",e.font=u.string,t.x=Nr(this,g,i),e.fillStyle=i.bodyColor,f(this.beforeBody,m),d=a&&"right"!==g?"center"===r?l/2+c:l+2+c:0,x=0,S=s.length;x<S;++x){for(b=s[x],v=this.labelTextColors[x],e.fillStyle=v,f(b.before,m),y=b.lines,a&&y.length&&(this._drawColorBox(e,t,x,p,i),h=Math.max(u.lineHeight,o)),w=0,E=y.length;w<E;++w)m(y[w]),h=u.lineHeight;f(b.after,m)}d=0,h=u.lineHeight,f(this.afterBody,m),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let r,a;if(n){const o=hi(i.rtl,this.x,this.width);for(t.x=Nr(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=o.textAlign(i.footerAlign),e.textBaseline="middle",r=Me(i.footerFont),e.fillStyle=i.footerColor,e.font=r.string,a=0;a<n;++a)e.fillText(s[a],o.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:r}=this,{x:a,y:o}=t,{width:l,height:c}=i,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:p}=Se(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+u,o),"top"===r&&this.drawCaret(t,e,i,s),e.lineTo(a+l-h,o),e.quadraticCurveTo(a+l,o,a+l,o+h),"center"===r&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(a+l,o+c-p),e.quadraticCurveTo(a+l,o+c,a+l-p,o+c),"bottom"===r&&this.drawCaret(t,e,i,s),e.lineTo(a+d,o+c),e.quadraticCurveTo(a,o+c,a,o+c-d),"center"===r&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(a,o+u),e.quadraticCurveTo(a,o,a+u,o),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=_r[t.position].call(this,this._active,this._eventPosition);if(!i)return;const r=this._size=Or(this,t),a=Object.assign({},i,this._size),o=Ir(e,t,a),l=Dr(t,a,o,e);s._to===l.x&&n._to===l.y||(this.xAlign=o.xAlign,this.yAlign=o.yAlign,this.width=r.width,this.height=r.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=Ee(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,s,e),di(t,e.textDirection),n.y+=r.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),pi(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map(({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),n=!m(i,s),r=this._positionChanged(s,e);(n||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],r=this._getActiveElements(t,n,e,i),a=this._positionChanged(r,t),o=e||!m(r,n)||a;return o&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),o}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e;const r=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,r=_r[n.position].call(this,t,e);return!1!==r&&(i!==r.x||s!==r.y)}}$r.positioners=_r;var zr={id:"tooltip",_element:$r,positioners:_r,afterInit(t,e,i){i&&(t.tooltip=new $r({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:n,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:n,beforeBody:n,beforeLabel:n,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return a(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:n,afterBody:n,beforeFooter:n,footer:n,afterFooter:n}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},jr=Object.freeze({__proto__:null,Decimation:ir,Filler:yr,Legend:Sr,SubTitle:kr,Title:Mr,Tooltip:zr});function Br(t,e,i,s){const n=t.indexOf(e);if(-1===n)return((t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s);return n!==t.lastIndexOf(e)?i:n}class Vr extends hs{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(a(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:K(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:Br(i,t,h(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Hr(t,e){const i=[],{bounds:s,step:n,min:r,max:o,precision:l,count:c,maxTicks:u,maxDigits:h,includeBounds:d}=t,p=n||1,f=u-1,{min:m,max:g}=e,b=!a(r),v=!a(o),y=!a(c),x=(g-m)/(h+1);let w,S,E,M,T=$((g-m)/f/p)*p;if(T<1e-14&&!b&&!v)return[{value:m},{value:g}];M=Math.ceil(g/T)-Math.floor(m/T),M>f&&(T=$(M*T/f/p)*p),a(l)||(w=Math.pow(10,l),T=Math.ceil(T*w)/w),"ticks"===s?(S=Math.floor(m/T)*T,E=Math.ceil(g/T)*T):(S=m,E=g),b&&v&&n&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((o-r)/n,T/1e3)?(M=Math.round(Math.min((o-r)/T,u)),T=(o-r)/M,S=r,E=o):y?(S=b?r:S,E=v?o:E,M=c-1,T=(E-S)/M):(M=(E-S)/T,M=j(M,Math.round(M),T/1e3)?Math.round(M):Math.ceil(M));const k=Math.max(W(T),W(S));w=Math.pow(10,a(l)?k:l),S=Math.round(S*w)/w,E=Math.round(E*w)/w;let _=0;for(b&&(d&&S!==r?(i.push({value:r}),S<r&&_++,j(Math.round((S+_*T)*w)/w,r,Wr(r,x,t))&&_++):S<r&&_++);_<M;++_)i.push({value:Math.round((S+_*T)*w)/w});return v&&d&&E!==o?i.length&&j(i[i.length-1].value,o,Wr(o,x,t))?i[i.length-1].value=o:i.push({value:o}):v&&E!==o||i.push({value:E}),i}function Wr(t,e,{horizontal:i,minRotation:s}){const n=V(s),r=(i?Math.sin(n):Math.cos(n))||.001,a=.75*e*(""+t).length;return Math.min(e/r,a)}Vr.id="category",Vr.defaults={ticks:{callback:Vr.prototype.getLabelForValue}};class Ur extends hs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return a(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const r=t=>s=e?s:t,a=t=>n=i?n:t;if(t){const t=F(s),e=F(n);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(s===n){let e=1;(n>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*n)),a(n+e),t||r(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=Hr({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&B(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return ui(t,this.chart.options.locale,this.options.ticks.format)}}class qr extends Ur{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=c(t)?t:0,this.max=c(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=V(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Yr(t){return 1===t/Math.pow(10,Math.floor(R(t)))}qr.id="linear",qr.defaults={ticks:{callback:is.formatters.numeric}};class Xr extends hs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Ur.prototype.parse.apply(this,[t,e]);if(0!==i)return c(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=c(t)?Math.max(0,t):null,this.max=c(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const n=e=>i=t?i:e,r=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor(R(t))+e);i===s&&(i<=0?(n(1),r(10)):(n(a(i,-1)),r(a(s,1)))),i<=0&&n(a(s,-1)),s<=0&&r(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&n(a(i,-1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(R(e.max)),s=Math.ceil(e.max/Math.pow(10,i)),n=[];let r=u(t.min,Math.pow(10,Math.floor(R(e.min)))),a=Math.floor(R(r)),o=Math.floor(r/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{n.push({value:r,major:Yr(r)}),++o,10===o&&(o=1,++a,l=a>=0?1:l),r=Math.round(o*Math.pow(10,a)*l)/l}while(a<i||a===i&&o<s);const c=u(t.max,r);return n.push({value:c,major:Yr(r)}),n}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&B(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":ui(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=R(t),this._valueRange=R(this.max)-R(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(R(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Gr(t){const e=t.ticks;if(e.display&&t.display){const t=Ee(e.backdropPadding);return h(e.font&&e.font.size,ee.font.size)+t.height}return 0}function Kr(t,e,i){return i=o(i)?i:[i],{w:se(t,e.string,i),h:i.length*e.lineHeight}}function Jr(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:t<s||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function Qr(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),s=[],n=[],r=t._pointLabels.length,a=t.options.pointLabels,o=a.centerPointLabels?C/r:0;for(let l=0;l<r;l++){const r=a.setContext(t.getPointLabelContext(l));n[l]=r.padding;const c=t.getPointPosition(l,t.drawingArea+n[l],o),u=Me(r.font),h=Kr(t.ctx,u,t._pointLabels[l]);s[l]=h;const d=X(t.getIndexAngle(l)+o),p=Math.round(H(d));Zr(i,e,d,Jr(p,c.x,h.w,0,180),Jr(p,c.y,h.h,90,270))}t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],n=t._pointLabels.length,r=t.options,a=Gr(r)/2,o=t.drawingArea,l=r.pointLabels.centerPointLabels?C/n:0;for(let r=0;r<n;r++){const n=t.getPointPosition(r,o+a+i[r],l),c=Math.round(H(X(n.angle+I))),u=e[r],h=ia(n.y,u.h,c),d=ta(c),p=ea(n.x,u.w,d);s.push({x:n.x,y:h,textAlign:d,left:p,top:h,right:p+u.w,bottom:h+u.h})}return s}(t,s,n)}function Zr(t,e,i,s,n){const r=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let o=0,l=0;s.start<e.l?(o=(e.l-s.start)/r,t.l=Math.min(t.l,e.l-o)):s.end>e.r&&(o=(s.end-e.r)/r,t.r=Math.max(t.r,e.r+o)),n.start<e.t?(l=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function ta(t){return 0===t||180===t?"center":t<180?"left":"right"}function ea(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function ia(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function sa(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,P);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let r=1;r<s;r++)i=t.getPointPosition(r,e),n.lineTo(i.x,i.y)}}Xr.id="logarithmic",Xr.defaults={ticks:{callback:is.formatters.logarithmic,major:{enabled:!0}}};class na extends Ur{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Ee(Gr(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=c(t)&&!isNaN(t)?t:0,this.max=c(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Gr(this.options))}generateTickLabels(t){Ur.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const i=p(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Qr(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return X(t*(P/(this._pointLabels.length||1))+V(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(a(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(a(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];
2return function(t,e,i){return ke(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const s=this.getIndexAngle(t)-I+i;return{x:Math.cos(s)*e+this.xCenter,y:Math.sin(s)*e+this.yCenter,angle:s}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:s,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),sa(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:s}=e,n=this._pointLabels.length;let r,o,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let n=e-1;n>=0;n--){const e=s.setContext(t.getPointLabelContext(n)),r=Me(e.font),{x:o,y:l,textAlign:c,left:u,top:h,right:d,bottom:p}=t._pointLabelItems[n],{backdropColor:f}=e;if(!a(f)){const t=Se(e.borderRadius),s=Ee(e.backdropPadding);i.fillStyle=f;const n=u-s.left,r=h-s.top,a=d-u+s.width,o=p-h+s.height;Object.values(t).some(t=>0!==t)?(i.beginPath(),me(i,{x:n,y:r,w:a,h:o,radius:t}),i.fill()):i.fillRect(n,r,a,o)}pe(i,t._pointLabels[n],o,l+r.lineHeight/2,r,{color:e.color,textAlign:c,textBaseline:"middle"})}}(this,n),s.display&&this.ticks.forEach((t,e)=>{if(0!==e){o=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,s){const n=t.ctx,r=e.circular,{color:a,lineWidth:o}=e;!r&&!s||!a||!o||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=o,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),sa(t,i,r,s),n.closePath(),n.stroke(),n.restore())}(this,s.setContext(this.getContext(e-1)),o,n)}}),i.display){for(t.save(),r=n-1;r>=0;r--){const s=i.setContext(this.getPointLabelContext(r)),{color:n,lineWidth:a}=s;a&&n&&(t.lineWidth=a,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,o=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,o),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let n,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,a)=>
vendor: 1,810 bytes, line 2
2{if(0===a&&!e.reverse)return;const o=i.setContext(this.getContext(a)),l=Me(o.font);if(n=this.getDistanceFromCenterForValue(this.ticks[a].value),o.showLabelBackdrop){t.font=l.string,r=t.measureText(s.label).width,t.fillStyle=o.backdropColor;const e=Ee(o.backdropPadding);t.fillRect(-r/2-e.left,-n-l.size/2-e.top,r+e.width,l.size+e.height)}pe(t,s.label,0,-n,l,{color:o.color})}),t.restore()}drawTitle(){}}na.id="radialLinear",na.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:is.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}},na.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},na.descriptors={angleLines:{_fallback:"grid"}};const ra={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},aa=Object.keys(ra);function oa(t,e){return t-e}function la(t,e){if(a(e))return null;const i=t._adapter,{parser:s,round:n,isoWeekday:r}=t._parseOpts;let o=e;return"function"==typeof s&&(o=s(o)),c(o)||(o="string"==typeof s?i.parse(o,s):i.parse(o)),null===o?null:(n&&(o="week"!==n||!z(r)&&!0!==r?i.startOf(o,n):i.startOf(o,"isoWeek",r)),+o)}function ca(t,e,i,s){const n=aa.length;for(let r=aa.indexOf(t);r<n-1;++r){const t=ra[aa[r]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=s)return aa[r]}return aa[n-1]}
vendor: 4,659 bytes, line 2
2function ua(t,e,i){if(i){if(i.length){const{lo:s,hi:n}=Q(i,e);t[i[s]>=e?i[s]:i[n]]=!0}}else t[e]=!0}function ha(t,e,i){const s=[],n={},r=e.length;let a,o;for(a=0;a<r;++a)o=e[a],n[o]=a,s.push({value:o,major:!1});return 0!==r&&i?function(t,e,i,s){const n=t._adapter,r=+n.startOf(e[0].value,s),a=e[e.length-1].value;let o,l;for(o=r;o<=a;o=+n.add(o,1,s))l=i[o],l>=0&&(e[l].major=!0);return e}(t,s,n,i):s}class da extends hs{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),s=this._adapter=new vs._date(t.adapters.date);s.init(e),x(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:la(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:s,max:n,minDefined:r,maxDefined:a}=this.getUserBounds();function o(t){r||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(n=Math.max(n,t.max))}r&&a||(o(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||o(this.getMinMax(!1))),s=c(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=c(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const n=this.min,r=function(t,e,i){let s=0,n=t.length;for(;s<n&&t[s]<e;)s++;for(;n>s&&t[n-1]>i;)n--;return s>0||n<t.length?t.slice(s,n):t}(s,n,this.max);return this._unit=e.unit||(i.autoSkip?ca(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,n){for(let r=aa.length-1;r>=aa.indexOf(i);r--){const i=aa[r];if(ra[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return aa[i?aa.indexOf(i):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=aa.indexOf(t)+1,i=aa.length;e<i;++e)if(ra[aa[e]].common)return aa[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&r.reverse(),ha(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;s=K(s,0,r),n=K(n,0,r),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,n=s.time,r=n.unit||ca(n.minUnit,e,i,this._getLabelCapacity(e)),a=h(n.stepSize,1),o="week"===r&&n.isoWeekday,l=z(o)||!0===o,c={};let u,d,p=e;if(l&&(p=+t.startOf(p,"isoWeek",o)),p=+t.startOf(p,l?"day":r),t.diff(i,e,r)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+r);const f="data"===s.ticks.source&&this.getDataTimestamps();for(u=p,d=0;u<i;u=+t.add(u,a,r),d++)ua(c,u,f);return u!==i&&"ticks"!==s.bounds&&1!==d||ua(c,u,f),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,s){const n=this.options,r=n.time.displayFormats,a=this._unit,o=this._majorUnit,l=a&&r[a],c=o&&r[o],u=i[e],h=o&&c&&u&&u.major,d=this._adapter.format(t,s||(h?c:l)),f=n.ticks.callback;return f?p(f,[d,e,i],this):d}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=V(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*n+a*r,h:i*r+a*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,n=this._tick
2FormatFunction(t,0,ha(this,[t],this._majorUnit),s),r=this._getLabelSize(n),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(la(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return st(t.sort(oa))}}function pa(t,e,i){let s,n,r,a,o=0,l=t.length-1;i?(e>=t[o].pos&&e<=t[l].pos&&({lo:o,hi:l}=Z(t,"pos",e)),({pos:s,time:r}=t[o]),({pos:n,time:a}=t[l])):(e>=t[o].time&&e<=t[l].time&&({lo:o,hi:l}=Z(t,"time",e)),({time:s,pos:r}=t[o]),({time:n,pos:a}=t[l]));const c=n-s;return c?r+(a-r)*(e-s)/c:r}da.id="time",da.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class fa extends da{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=pa(e,this.min),this._tableRange=pa(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let r,a,o,l,c;for(r=0,a=t.length;r<a;++r)l=t[r],l>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(r=0,a=s.length;r<a;++r)c=s[r+1],o=s[r-1],l=s[r],Math.round((c+o)/2)!==l&&n.push({time:l,pos:r/(a-1)});return n}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(pa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return pa(this._table,i*this._tableRange+this._minPos,!0)}}fa.id="timeseries",fa.defaults=da.defaults;const ma=[ms,Zn,jr,Object.freeze({__proto__:null,CategoryScale:Vr,LinearScale:qr,LogarithmicScale:Xr,RadialLinearScale:na,TimeScale:da,TimeSeriesScale:fa})];ma&&kn.register(...ma);let ga=!1;var ba=class extends s.xI{constructor(...t){super(...t),this.chart=null}connect(){if(ga||(ga=!0,this.dispatchEvent("init",{Chart:kn})),!(this.element instanceof HTMLCanvasElement))throw new Error("Invalid element");const t=this.viewValue;Array.isArray(t.options)&&0===t.options.length&&(t.options={}),this.dispatchEvent("pre-connect",{options:t.options,config:t});const e=this.element.getContext("2d");if(!e)throw new Error("Could not getContext() from Element");this.chart=new kn(e,t),this.dispatchEvent("connect",{chart:this.chart})}disconnect(){this.dispatchEvent("disconnect",{chart:this.chart}),this.chart&&(this.chart.destroy(),this.chart=null)}viewValueChanged(){if(this.chart){const t={data:this.viewValue.data,options:this.viewValue.options};Array.isArray(t.options)&&0===t.options.length&&(t.options={}),this.dispatchEvent("view-value-change",t),this.chart.data=t.data,this.chart.options=t.options,this.chart.update();const e=this.element.parentElement;if(e&&this.chart.options.responsive){const t=e.style.width;e.style.width=`${e.offsetWidth+1}px`,setTimeout(()=>{e.style.width=t},0)}}}dispatchEvent(t,e){this.dispatch(t,{detail:e,prefix:"chartjs"})}};ba.values={view:Object}},346:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},350:function(t,e,i){"use strict";var s=i(3724),n=i(9297),r=Function.prototype,a=s&&Object.getOwnPropertyDescriptor,o=n(r,"name"),l=o&&"something"===function(){}.name,c=o&&(!s||s&&a(r,"name").configurable);t.exports={EXISTS:o,PROPER:l,CONFIGURABLE:c}},397:function(t,e,i){"use strict";var s=i(7751);t.exports=s("document","documentElement")},421:function(t){"use strict";
vendor: 8,284 bytes, line 2
2t.exports={}},436:function(t,e,i){"use strict";var s,n,r,a,o=i(6518),l=i(6395),c=i(6193),u=i(4576),h=i(9167),d=i(9565),p=i(6840),f=i(2967),m=i(687),g=i(7633),b=i(9306),v=i(4901),y=i(34),x=i(679),w=i(2293),S=i(9225).set,E=i(1955),M=i(3138),T=i(1103),k=i(8265),_=i(1181),C=i(550),P=i(916),A=i(6043),O="Promise",L=P.CONSTRUCTOR,I=P.REJECTION_EVENT,D=P.SUBCLASSING,N=_.getterFor(O),R=_.set,F=C&&C.prototype,$=C,z=F,j=u.TypeError,B=u.document,V=u.process,H=A.f,W=H,U=!!(B&&B.createEvent&&u.dispatchEvent),q="unhandledrejection",Y=function(t){var e;return!(!y(t)||!v(e=t.then))&&e},X=function(t,e){var i,s,n,r=e.value,a=1===e.state,o=a?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{o?(a||(2===e.rejection&&Z(e),e.rejection=1),!0===o?i=r:(u&&u.enter(),i=o(r),u&&(u.exit(),n=!0)),i===t.promise?c(new j("Promise-chain cycle")):(s=Y(i))?d(s,i,l,c):l(i)):c(r)}catch(t){u&&!n&&u.exit(),c(t)}},G=function(t,e){t.notified||(t.notified=!0,E(function(){for(var i,s=t.reactions;i=s.get();)X(i,t);t.notified=!1,e&&!t.rejection&&J(t)}))},K=function(t,e,i){var s,n;U?((s=B.createEvent("Event")).promise=e,s.reason=i,s.initEvent(t,!1,!0),u.dispatchEvent(s)):s={promise:e,reason:i},!I&&(n=u["on"+t])?n(s):t===q&&M("Unhandled promise rejection",i)},J=function(t){d(S,u,function(){var e,i=t.facade,s=t.value;if(Q(t)&&(e=T(function(){c?V.emit("unhandledRejection",s,i):K(q,i,s)}),t.rejection=c||Q(t)?2:1,e.error))throw e.value})},Q=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){d(S,u,function(){var e=t.facade;c?V.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)})},tt=function(t,e,i){return function(s){t(e,s,i)}},et=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,G(t,!0))},it=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new j("Promise can't be resolved itself");var s=Y(e);s?E(function(){var i={done:!1};try{d(s,e,tt(it,i,t),tt(et,i,t))}catch(e){et(i,e,t)}}):(t.value=e,t.state=1,G(t,!1))}catch(e){et({done:!1},e,t)}}};if(L&&(z=($=function(t){x(this,z),b(t),d(s,this);var e=N(this);try{t(tt(it,e),tt(et,e))}catch(t){et(e,t)}}).prototype,(s=function(t){R(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:null})}).prototype=p(z,"then",function(t,e){var i=N(this),s=H(w(this,$));return i.parent=!0,s.ok=!v(t)||t,s.fail=v(e)&&e,s.domain=c?V.domain:void 0,0===i.state?i.reactions.add(s):E(function(){X(s,i)}),s.promise}),n=function(){var t=new s,e=N(t);this.promise=t,this.resolve=tt(it,e),this.reject=tt(et,e)},A.f=H=function(t){return t===$||t===r?new n(t):W(t)},!l&&v(C)&&F!==Object.prototype)){a=F.then,D||p(F,"then",function(t,e){var i=this;return new $(function(t,e){d(a,i,t,e)}).then(t,e)},{unsafe:!0});try{delete F.constructor}catch(t){}f&&f(F,z)}o({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:$}),r=h.Promise,m($,O,!1,!0),g(O)},511:function(t,e,i){"use strict";var s=i(9167),n=i(9297),r=i(1951),a=i(4913).f;t.exports=function(t){var e=s.Symbol||(s.Symbol={});n(e,t)||a(e,t,{value:r.f(t)})}},533:function(t,e,i){"use strict";var s=i(9504),n=i(8014),r=i(655),a=i(2333),o=i(7750),l=s(a),c=s("".slice),u=Math.ceil,h=function(t){return function(e,i,s){var a,h,d=r(o(e)),p=n(i),f=d.length,m=void 0===s?" ":r(s);return p<=f||""===m?d:((h=l(m,u((a=p-f)/m.length))).length>a&&(h=c(h,0,a)),t?d+h:h+d)}};t.exports={start:h(!1),end:h(!0)}},537:function(t,e,i){"use strict";var s=i(550),n=i(4428),r=i(916).CONSTRUCTOR;t.exports=r||!n(function(t){s.all(t).then(void 0,function(){})})},550:function(t,e,i){"use strict";var s=i(4576);t.exports=s.Promise},566:function(t,e,i){"use strict";var s=i(9504),n=i(9306),r=i(34),a=i(9297),o=i(7680),l=i(616),c=Function,u=s([].concat),h=s([].join),d={};t.exports=l?c.bind:function(t){var e=n(this),i=e.prototype,s=o(arguments,1),l=function(){var i=u(s,o(arguments));return this instanceof l?function(t,e,i){if(!a(d,e)){for(var s=[],n=0;n<e;n++)s[n]="a["+n+"]";d[e]=c("C,a","return new C("+h(s,",")+")")}return d[e](t,i)}(e,i.length,i):e.apply(t,i)};return r(i)&&(l.prototype=i),l}},597:function(t,e,i){"use strict";var s=i(9039),n=i(8227),r=i(9519),a=n("species");t.exports=function(t){return r>=51||!s(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},616:function(t,e,i){"use strict";var s=i(9039);t.exports=!s(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},655:function(t,e,i){"use strict";var s=i(6955),n=String;t.exports=function(t){if("Symbol"===s(t))throw new TypeError("Cannot convert a Symbol value to a string");return n(t)}},659:function(t,e,i){var s=i(1873),n=Object.prototype,r=n.hasOwnProperty,a=n.toString,o=s?s.toStringTag:void 0;t.exports=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var s=!0}catch(t){}var n=a.call(t);return s&&(e?t[o]=i:delete t[o]),n}},679:function(t,e,i){"use strict";var s=i(1625),n=TypeError;t.exports=function(t,e){if(s(e,t))return t;throw new n("Incorrect invocation")}},687:function(t,e,i){"use strict";var s=i(4913).f,n=i(9297),r=i(8227)("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!n(t,r)&&s(t,r,{configurable:!0,value:e})}},706:function(t,e,i){"use strict";var s=i(350).PROPER,n=i(9039),r=i(7452);t.exports=function(t){return n(function(){return!!r[t]()||"​…᠎"!=="​…᠎"[t]()||s&&r[t].name!==t})}},741:function(t){"use strict";var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var s=+t;return(s>0?i:e)(s)}},744:function(t,e,i){"use strict";var s=i(9565),n=i(9504),r=i(9228),a=i(8551),o=i(34),l=i(7750),c=i(2293),u=i(7829),h=i(8014),d=i(655),p=i(5966),f=i(6682),m=i(8429),g=i(9039),b=m.UNSUPPORTED_Y,v=Math.min,y=n([].push),x=n("".slice),w=!g(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}),S="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;r("split",function(t,e,i){var n="0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:s(e,this,t,i)}:e;return[function(e,i){var r=l(this),a=o(e)?p(e,t):void 0;return a?s(a,e,r,i):s(n,d(r),e,i)},function(t,s){var r=a(this),o=d(t);if(!S){var l=i(n,r,o,s,n!==e);if(l.done)return l.value}var p=c(r,RegExp),m=r.unicode,g=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(b?"g":"y"),w=new p(b?"^(?:"+r.source+")":r,g),E=void 0===s?4294967295:s>>>0;if(0===E)return[];if(0===o.length)return null===f(w,o)?[o]:[];for(var M=0,T=0,k=[];T<o.length;){w.lastIndex=b?0:T;var _,C=f(w,b?x(o,T):o);if(null===C||(_=v(h(w.lastIndex+(b?T:0)),o.length))===M)T=u(o,T,m);else{if(y(k,x(o,M,T)),k.length===E)return k;for(var P=1;P<=C.length-1;P++)if(y(k,C[P]),k.length===E)return k;T=M=_}}return y(k,x(o,M)),k}]},S||!w,b)},757:function(t,e,i){"use strict";var s=i(7751),n=i(4901),r=i(1625),a=i(7040),o=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=s("Symbol");return n(e)&&r(e.prototype,o(t))}},788:function(t,e,i){"use strict";var s=i(34),n=i(2195),r=i(8227)("match");t.exports=function(t){var e;return s(t)&&(void 0!==(e=t[r])?!!e:"RegExp"===n(t))}},825:function(t,e,i){"use strict";var s=i(6518),n=i(7751),r=i(8745),a=i(566),o=i(5548),l=i(8551),c=i(34),u=i(2360),h=i(9039),d=n("Reflect","construct"),p=Object.prototype,f=[].push,m=h(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),g=!h(function(){d(function(){})}),b=m||g;s({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(t,e){o(t),l(e);var i=arguments.length<3?t:o(arguments[2]);if(g&&!m)return d(t,e,i);if(t===i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var s=[null];return r(f,s,e),new(r(a,t,s))}var n=i.prototype,h=u(c(n)?n:p),b=r(t,h,e);return c(b)?b:h}})},851:function(t,e,i){"use strict";var s=i(6955),n=i(5966),r=i(4117),a=i(6269),o=i(8227)("iterator");t.exports=function(t){if(!r(t))return n(t,o)||n(t,"@@iterator")||a[s(t)]}},875:function(t,e,i){"use strict";var s=i(6518),n=i(9039),r=i(8981),a=i(2787),o=i(2211);s({target:"Object",stat:!0,forced:n(function(){a(1)}),sham:!o},{getPrototypeOf:function(t){return a(r(t))}})}
vendor: 8,582 bytes, line 2
2,888:function(t,e,i){"use strict";var s=i(6518),n=i(9565),r=i(34),a=i(8551),o=i(6575),l=i(7347),c=i(2787);s({target:"Reflect",stat:!0},{get:function t(e,i){var s,u,h=arguments.length<3?e:arguments[2];return a(e)===h?e[i]:(s=l.f(e,i))?o(s)?s.value:void 0===s.get?void 0:n(s.get,h):r(u=c(e))?t(u,i,h):void 0}})},916:function(t,e,i){"use strict";var s=i(4576),n=i(550),r=i(4901),a=i(2796),o=i(3706),l=i(8227),c=i(4215),u=i(6395),h=i(9519),d=n&&n.prototype,p=l("species"),f=!1,m=r(s.PromiseRejectionEvent),g=a("Promise",function(){var t=o(n),e=t!==String(n);if(!e&&66===h)return!0;if(u&&(!d.catch||!d.finally))return!0;if(!h||h<51||!/native code/.test(t)){var i=new n(function(t){t(1)}),s=function(t){t(function(){},function(){})};if((i.constructor={})[p]=s,!(f=i.then(function(){})instanceof s))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||m)});t.exports={CONSTRUCTOR:g,REJECTION_EVENT:m,SUBCLASSING:f}},1034:function(t,e,i){"use strict";var s=i(9565),n=i(9297),r=i(1625),a=i(5213),o=i(7979),l=RegExp.prototype;t.exports=a.correct?function(t){return t.flags}:function(t){return a.correct||!r(l,t)||n(t,"flags")?t.flags:s(o,t)}},1072:function(t,e,i){"use strict";var s=i(1828),n=i(8727);t.exports=Object.keys||function(t){return s(t,n)}},1088:function(t,e,i){"use strict";var s=i(6518),n=i(9565),r=i(6395),a=i(350),o=i(4901),l=i(3994),c=i(2787),u=i(2967),h=i(687),d=i(6699),p=i(6840),f=i(8227),m=i(6269),g=i(7657),b=a.PROPER,v=a.CONFIGURABLE,y=g.IteratorPrototype,x=g.BUGGY_SAFARI_ITERATORS,w=f("iterator"),S="keys",E="values",M="entries",T=function(){return this};t.exports=function(t,e,i,a,f,g,k){l(i,e,a);var _,C,P,A=function(t){if(t===f&&N)return N;if(!x&&t&&t in I)return I[t];switch(t){case S:case E:case M:return function(){return new i(this,t)}}return function(){return new i(this)}},O=e+" Iterator",L=!1,I=t.prototype,D=I[w]||I["@@iterator"]||f&&I[f],N=!x&&D||A(f),R="Array"===e&&I.entries||D;if(R&&(_=c(R.call(new t)))!==Object.prototype&&_.next&&(r||c(_)===y||(u?u(_,y):o(_[w])||p(_,w,T)),h(_,O,!0,!0),r&&(m[O]=T)),b&&f===E&&D&&D.name!==E&&(!r&&v?d(I,"name",E):(L=!0,N=function(){return n(D,this)})),f)if(C={values:A(E),keys:g?N:A(S),entries:A(M)},k)for(P in C)(x||L||!(P in I))&&p(I,P,C[P]);else s({target:e,proto:!0,forced:x||L},C);return r&&!k||I[w]===N||p(I,w,N,{name:f}),m[e]=N,C}},1103:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},1181:function(t,e,i){"use strict";var s,n,r,a=i(8622),o=i(4576),l=i(34),c=i(6699),u=i(9297),h=i(7629),d=i(6119),p=i(421),f="Object already initialized",m=o.TypeError,g=o.WeakMap;if(a||h.state){var b=h.state||(h.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,s=function(t,e){if(b.has(t))throw new m(f);return e.facade=t,b.set(t,e),e},n=function(t){return b.get(t)||{}},r=function(t){return b.has(t)}}else{var v=d("state");p[v]=!0,s=function(t,e){if(u(t,v))throw new m(f);return e.facade=t,c(t,v,e),e},n=function(t){return u(t,v)?t[v]:{}},r=function(t){return u(t,v)}}t.exports={set:s,get:n,has:r,enforce:function(t){return r(t)?n(t):s(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=n(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return i}}}},1240:function(t,e,i){"use strict";var s=i(9504);t.exports=s(1.1.valueOf)},1291:function(t,e,i){"use strict";var s=i(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:s(e)}},1296:function(t,e,i){"use strict";var s=i(4495);t.exports=s&&!!Symbol.for&&!!Symbol.keyFor},1392:function(t,e,i){"use strict";var s,n=i(6518),r=i(7476),a=i(7347).f,o=i(8014),l=i(655),c=i(5749),u=i(7750),h=i(1436),d=i(6395),p=r("".slice),f=Math.min,m=h("startsWith");n({target:"String",proto:!0,forced:!!(d||m||(s=a(String.prototype,"startsWith"),!s||s.writable))&&!m},{startsWith:function(t){var e=l(u(this));c(t);var i=o(f(arguments.length>1?arguments[1]:void 0,e.length)),s=l(t);return p(e,i,i+s.length)===s}})},1436:function(t,e,i){"use strict";var s=i(8227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[s]=!1,"/./"[t](e)}catch(t){}}return!1}},1469:function(t,e,i){"use strict";var s=i(7433);t.exports=function(t,e){return new(s(t))(0===e?0:e)}},1481:function(t,e,i){"use strict";var s=i(6518),n=i(6043);s({target:"Promise",stat:!0,forced:i(916).CONSTRUCTOR},{reject:function(t){var e=n.f(this);return(0,e.reject)(t),e.promise}})},1510:function(t,e,i){"use strict";var s=i(6518),n=i(7751),r=i(9297),a=i(655),o=i(5745),l=i(1296),c=o("string-to-symbol-registry"),u=o("symbol-to-string-registry");s({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=a(t);if(r(c,e))return c[e];var i=n("Symbol")(e);return c[e]=i,u[i]=e,i}})},1625:function(t,e,i){"use strict";var s=i(9504);t.exports=s({}.isPrototypeOf)},1699:function(t,e,i){"use strict";var s=i(6518),n=i(9504),r=i(5749),a=i(7750),o=i(655),l=i(1436),c=n("".indexOf);s({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~c(o(a(this)),o(r(t)),arguments.length>1?arguments[1]:void 0)}})},1800:function(t){var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},1828:function(t,e,i){"use strict";var s=i(9504),n=i(9297),r=i(5397),a=i(9617).indexOf,o=i(421),l=s([].push);t.exports=function(t,e){var i,s=r(t),c=0,u=[];for(i in s)!n(o,i)&&n(s,i)&&l(u,i);for(;e.length>c;)n(s,i=e[c++])&&(~a(u,i)||l(u,i));return u}},1873:function(t,e,i){var s=i(9325).Symbol;t.exports=s},1951:function(t,e,i){"use strict";var s=i(8227);e.f=s},1955:function(t,e,i){"use strict";var s,n,r,a,o,l=i(4576),c=i(3389),u=i(6080),h=i(9225).set,d=i(8265),p=i(9544),f=i(4265),m=i(7860),g=i(6193),b=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,x=l.Promise,w=c("queueMicrotask");if(!w){var S=new d,E=function(){var t,e;for(g&&(t=y.domain)&&t.exit();e=S.get();)try{e()}catch(t){throw S.head&&s(),t}t&&t.enter()};p||g||m||!b||!v?!f&&x&&x.resolve?((a=x.resolve(void 0)).constructor=x,o=u(a.then,a),s=function(){o(E)}):g?s=function(){y.nextTick(E)}:(h=u(h,l),s=function(){h(E)}):(n=!0,r=v.createTextNode(""),new b(E).observe(r,{characterData:!0}),s=function(){r.data=n=!n}),w=function(t){S.head||s(),S.add(t)}}t.exports=w},2003:function(t,e,i){"use strict";var s=i(6518),n=i(6395),r=i(916).CONSTRUCTOR,a=i(550),o=i(7751),l=i(4901),c=i(6840),u=a&&a.prototype;if(s({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!n&&l(a)){var h=o("Promise").prototype.catch;u.catch!==h&&c(u,"catch",h,{unsafe:!0})}},2008:function(t,e,i){"use strict";var s=i(6518),n=i(9213).filter;s({target:"Array",proto:!0,forced:!i(597)("filter")},{filter:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},2010:function(t,e,i){"use strict";var s=i(3724),n=i(350).EXISTS,r=i(9504),a=i(2106),o=Function.prototype,l=r(o.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=r(c.exec);s&&!n&&a(o,"name",{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(t){return""}}})},2062:function(t,e,i){"use strict";var s=i(6518),n=i(9213).map;s({target:"Array",proto:!0,forced:!i(597)("map")},{map:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},2106:function(t,e,i){"use strict";var s=i(283),n=i(4913);t.exports=function(t,e,i){return i.get&&s(i.get,e,{getter:!0}),i.set&&s(i.set,e,{setter:!0}),n.f(t,e,i)}},2140:function(t,e,i){"use strict";var s={};s[i(8227)("toStringTag")]="z",t.exports="[object z]"===String(s)},2195:function(t,e,i){"use strict";var s=i(9504),n=s({}.toString),r=s("".slice);t.exports=function(t){return r(n(t),8,-1)}},2211:function(t,e,i){"use strict";var s=i(9039);t.exports=!s(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2259:function(t,e,i){"use strict";i(511)("iterator")},2293:function(t,e,i){"use strict";var s=i(8551),n=i(5548),r=i(4117),a=i(8227)("species");t.exports=function(t,e){var i,o=s(t).constructor;return void 0===o||r(i=s(o)[a])?e:n(i)}},2333:function(t,e,i){"use strict";var s=i(1291),n=i(655),r=i(7750),a=RangeError;t.exports=function(t){var e=n(r(this)),i="",o=s(t);if(o<0||o===1/0)throw new a("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(i+=e);return i}},2357:function(t,e,i){"use strict";var s=i(3724),n=i(9039),r=i(9504),a=i(2787),o=i(1072),l=i(5397),c=r(i(8773).f),u=r([].push),h=s&&n(function(){var t=Object.create(null);return t[2]=2,!c(t,2)}),d=function(t){return function(e){for(var i,n=l(e),r=o(n),d=h&&null===a(n),p=r.length,f=0,m=[];p>f;)i=r[f++],s&&!(d?i in n:c(n,i))||u(m,t?[i,n[i]]:n[i]);return m}};t.exports={entries:d(!0),values:d(!1)}}
2,2360:function(t,e,i){"use strict";var s,n=i(8551),r=i(6801),a=i(8727),o=i(421),l=i(397),c=i(4055),u=i(6119),h="prototype",d="script",p=u("IE_PROTO"),f=function(){},m=function(t){return"<"+d+">"+t+"</"+d+">"},g=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){try{s=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;b="undefined"!=typeof document?document.domain&&s?g(s):(e=c("iframe"),i="java"+d+":",e.style.display="none",l.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):g(s);for(var n=a.length;n--;)delete b[h][a[n]];return b()};o[p]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(f[h]=n(t),i=new f,f[h]=null,i[p]=t):i=b(),void 0===e?i:r.f(i,e)}},2478:function(t,e,i){"use strict";var s=i(9504),n=i(8981),r=Math.floor,a=s("".charAt),o=s("".replace),l=s("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,s,h,d){var p=i+t.length,f=s.length,m=u;return void 0!==h&&(h=n(h),m=c),o(d,m,function(n,o){var c;switch(a(o,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,i);case"'":return l(e,p);case"<":c=h[l(o,1,-1)];break;default:var u=+o;if(0===u)return n;if(u>f){var d=r(u/10);return 0===d?n:d<=f?void 0===s[d-1]?a(o,1):s[d-1]+a(o,1):n}c=s[u-1]}return void 0===c?"":c})}},2529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},2552:function(t,e,i){var s=i(1873),n=i(659),r=i(9350),a=s?s.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?n(t):r(t)}},2652:function(t,e,i){"use strict";var s=i(6080),n=i(9565),r=i(8551),a=i(6823),o=i(4209),l=i(6198),c=i(1625),u=i(81),h=i(851),d=i(9539),p=TypeError,f=function(t,e){this.stopped=t,this.result=e},m=f.prototype;t.exports=function(t,e,i){var g,b,v,y,x,w,S,E=i&&i.that,M=!(!i||!i.AS_ENTRIES),T=!(!i||!i.IS_RECORD),k=!(!i||!i.IS_ITERATOR),_=!(!i||!i.INTERRUPTED),C=s(e,E),P=function(t){return g&&d(g,"normal"),new f(!0,t)},A=function(t){return M?(r(t),_?C(t[0],t[1],P):C(t[0],t[1])):_?C(t,P):C(t)};if(T)g=t.iterator;else if(k)g=t;else{if(!(b=h(t)))throw new p(a(t)+" is not iterable");if(o(b)){for(v=0,y=l(t);y>v;v++)if((x=A(t[v]))&&c(m,x))return x;return new f(!1)}g=u(t,b)}for(w=T?t.next:g.next;!(S=n(w,g)).done;){try{x=A(S.value)}catch(t){d(g,"throw",t)}if("object"==typeof x&&x&&c(m,x))return x}return new f(!1)}},2675:function(t,e,i){"use strict";i(6761),i(1510),i(7812),i(3110),i(9773)},2703:function(t,e,i){"use strict";var s=i(4576),n=i(9039),r=i(9504),a=i(655),o=i(3802).trim,l=i(7452),c=s.parseInt,u=s.Symbol,h=u&&u.iterator,d=/^[+-]?0x/i,p=r(d.exec),f=8!==c(l+"08")||22!==c(l+"0x16")||h&&!n(function(){c(Object(h))});t.exports=f?function(t,e){var i=o(a(t));return c(i,e>>>0||(p(d,i)?16:10))}:c},2762:function(t,e,i){"use strict";var s=i(6518),n=i(3802).trim;s({target:"String",proto:!0,forced:i(706)("trim")},{trim:function(){return n(this)}})},2777:function(t,e,i){"use strict";var s=i(9565),n=i(34),r=i(757),a=i(5966),o=i(4270),l=i(8227),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!n(t)||r(t))return t;var i,l=a(t,u);if(l){if(void 0===e&&(e="default"),i=s(l,t,e),!n(i)||r(i))return i;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),o(t,e)}},2787:function(t,e,i){"use strict";var s=i(9297),n=i(4901),r=i(8981),a=i(6119),o=i(2211),l=a("IE_PROTO"),c=Object,u=c.prototype;t.exports=o?c.getPrototypeOf:function(t){var e=r(t);if(s(e,l))return e[l];var i=e.constructor;return n(i)&&e instanceof i?i.prototype:e instanceof c?u:null}},2796:function(t,e,i){"use strict";var s=i(9039),n=i(4901),r=/#|\.prototype\./,a=function(t,e){var i=l[o(t)];return i===u||i!==c&&(n(e)?s(e):!!e)},o=a.normalize=function(t){return String(t).replace(r,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,i){if(t<i)throw new e("Not enough arguments");return t}},2839:function(t,e,i){"use strict";var s=i(4576).navigator,n=s&&s.userAgent;t.exports=n?String(n):""}
vendor: 41,877 bytes, line 2
2,2891:function(t,e,i){"use strict";i.d(e,{lg:function(){return Z},xI:function(){return ct}});class s{constructor(t,e,i){this.eventTarget=t,this.eventName=e,this.eventOptions=i,this.unorderedBindings=new Set}connect(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}disconnect(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)}bindingConnected(t){this.unorderedBindings.add(t)}bindingDisconnected(t){this.unorderedBindings.delete(t)}handleEvent(t){const e=function(t){if("immediatePropagationStopped"in t)return t;{const{stopImmediatePropagation:e}=t;return Object.assign(t,{immediatePropagationStopped:!1,stopImmediatePropagation(){this.immediatePropagationStopped=!0,e.call(this)}})}}(t);for(const t of this.bindings){if(e.immediatePropagationStopped)break;t.handleEvent(e)}}hasBindings(){return this.unorderedBindings.size>0}get bindings(){return Array.from(this.unorderedBindings).sort((t,e)=>{const i=t.index,s=e.index;return i<s?-1:i>s?1:0})}}class n{constructor(t){this.application=t,this.eventListenerMaps=new Map,this.started=!1}start(){this.started||(this.started=!0,this.eventListeners.forEach(t=>t.connect()))}stop(){this.started&&(this.started=!1,this.eventListeners.forEach(t=>t.disconnect()))}get eventListeners(){return Array.from(this.eventListenerMaps.values()).reduce((t,e)=>t.concat(Array.from(e.values())),[])}bindingConnected(t){this.fetchEventListenerForBinding(t).bindingConnected(t)}bindingDisconnected(t,e=!1){this.fetchEventListenerForBinding(t).bindingDisconnected(t),e&&this.clearEventListenersForBinding(t)}handleError(t,e,i={}){this.application.handleError(t,`Error ${e}`,i)}clearEventListenersForBinding(t){const e=this.fetchEventListenerForBinding(t);e.hasBindings()||(e.disconnect(),this.removeMappedEventListenerFor(t))}removeMappedEventListenerFor(t){const{eventTarget:e,eventName:i,eventOptions:s}=t,n=this.fetchEventListenerMapForEventTarget(e),r=this.cacheKey(i,s);n.delete(r),0==n.size&&this.eventListenerMaps.delete(e)}fetchEventListenerForBinding(t){const{eventTarget:e,eventName:i,eventOptions:s}=t;return this.fetchEventListener(e,i,s)}fetchEventListener(t,e,i){const s=this.fetchEventListenerMapForEventTarget(t),n=this.cacheKey(e,i);let r=s.get(n);return r||(r=this.createEventListener(t,e,i),s.set(n,r)),r}createEventListener(t,e,i){const n=new s(t,e,i);return this.started&&n.connect(),n}fetchEventListenerMapForEventTarget(t){let e=this.eventListenerMaps.get(t);return e||(e=new Map,this.eventListenerMaps.set(t,e)),e}cacheKey(t,e){const i=[t];return Object.keys(e).sort().forEach(t=>{i.push(`${e[t]?"":"!"}${t}`)}),i.join(":")}}const r={stop({event:t,value:e}){return e&&t.stopPropagation(),!0},prevent({event:t,value:e}){return e&&t.preventDefault(),!0},self({event:t,value:e,element:i}){return!e||i===t.target}},a=/^(?:(?:([^.]+?)\+)?(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function o(t){return"window"==t?window:"document"==t?document:void 0}function l(t){return t.replace(/(?:[_-])([a-z0-9])/g,(t,e)=>e.toUpperCase())}function c(t){return l(t.replace(/--/g,"-").replace(/__/g,"_"))}function u(t){return t.charAt(0).toUpperCase()+t.slice(1)}function h(t){return t.replace(/([A-Z])/g,(t,e)=>`-${e.toLowerCase()}`)}function d(t){return null!=t}function p(t,e){return Object.prototype.hasOwnProperty.call(t,e)}const f=["meta","ctrl","alt","shift"];class m{constructor(t,e,i,s){this.element=t,this.index=e,this.eventTarget=i.eventTarget||t,this.eventName=i.eventName||function(t){const e=t.tagName.toLowerCase();if(e in g)return g[e](t)}(t)||b("missing event name"),this.eventOptions=i.eventOptions||{},this.identifier=i.identifier||b("missing identifier"),this.methodName=i.methodName||b("missing method name"),this.keyFilter=i.keyFilter||"",this.schema=s}static forToken(t,e){return new this(t.element,t.index,function(t){const e=t.trim().match(a)||[];let i=e[2],s=e[3];return s&&!["keydown","keyup","keypress"].includes(i)&&(i+=`.${s}`,s=""),{eventTarget:o(e[4]),eventName:i,eventOptions:e[7]?(n=e[7],n.split(":").reduce((t,e)=>Object.assign(t,{[e.replace(/^!/,"")]:!/^!/.test(e)}),{})):{},identifier:e[5],methodName:e[6],keyFilter:e[1]||s};var n}(t.content),e)}toString(){const t=this.keyFilter?`.${this.keyFilter}`:"",e=this.eventTargetName?`@${this.eventTargetName}`:"";return`${this.eventName}${t}${e}->${this.identifier}#${this.methodName}`}shouldIgnoreKeyboardEvent(t){if(!this.keyFilter)return!1;const e=this.keyFilter.split("+");if(this.keyFilterDissatisfied(t,e))return!0;const i=e.filter(t=>!f.includes(t))[0];return!!i&&(p(this.keyMappings,i)||b(`contains unknown key filter: ${this.keyFilter}`),this.keyMappings[i].toLowerCase()!==t.key.toLowerCase())}shouldIgnoreMouseEvent(t){if(!this.keyFilter)return!1;const e=[this.keyFilter];return!!this.keyFilterDissatisfied(t,e)}get params(){const t={},e=new RegExp(`^data-${this.identifier}-(.+)-param$`,"i");for(const{name:i,value:s}of Array.from(this.element.attributes)){const n=i.match(e),r=n&&n[1];r&&(t[l(r)]=v(s))}return t}get eventTargetName(){return(t=this.eventTarget)==window?"window":t==document?"document":void 0;var t}get keyMappings(){return this.schema.keyMappings}keyFilterDissatisfied(t,e){const[i,s,n,r]=f.map(t=>e.includes(t));return t.metaKey!==i||t.ctrlKey!==s||t.altKey!==n||t.shiftKey!==r}}const g={a:()=>"click",button:()=>"click",form:()=>"submit",details:()=>"toggle",input:t=>"submit"==t.getAttribute("type")?"click":"input",select:()=>"change",textarea:()=>"input"};function b(t){throw new Error(t)}function v(t){try{return JSON.parse(t)}catch(e){return t}}class y{constructor(t,e){this.context=t,this.action=e}get index(){return this.action.index}get eventTarget(){return this.action.eventTarget}get eventOptions(){return this.action.eventOptions}get identifier(){return this.context.identifier}handleEvent(t){const e=this.prepareActionEvent(t);this.willBeInvokedByEvent(t)&&this.applyEventModifiers(e)&&this.invokeWithEvent(e)}get eventName(){return this.action.eventName}get method(){const t=this.controller[this.methodName];if("function"==typeof t)return t;throw new Error(`Action "${this.action}" references undefined method "${this.methodName}"`)}applyEventModifiers(t){const{element:e}=this.action,{actionDescriptorFilters:i}=this.context.application,{controller:s}=this.context;let n=!0;for(const[r,a]of Object.entries(this.eventOptions))if(r in i){const o=i[r];n=n&&o({name:r,value:a,event:t,element:e,controller:s})}return n}prepareActionEvent(t){return Object.assign(t,{params:this.action.params})}invokeWithEvent(t){const{target:e,currentTarget:i}=t;try{this.method.call(this.controller,t),this.context.logDebugActivity(this.methodName,{event:t,target:e,currentTarget:i,action:this.methodName})}catch(e){const{identifier:i,controller:s,element:n,index:r}=this,a={identifier:i,controller:s,element:n,index:r,event:t};this.context.handleError(e,`invoking action "${this.action}"`,a)}}willBeInvokedByEvent(t){const e=t.target;return!(t instanceof KeyboardEvent&&this.action.shouldIgnoreKeyboardEvent(t))&&(!(t instanceof MouseEvent&&this.action.shouldIgnoreMouseEvent(t))&&(this.element===e||(e instanceof Element&&this.element.contains(e)?this.scope.containsElement(e):this.scope.containsElement(this.action.element))))}get controller(){return this.context.controller}get methodName(){return this.action.methodName}get element(){return this.scope.element}get scope(){return this.context.scope}}class x{constructor(t,e){this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=t,this.started=!1,this.delegate=e,this.elements=new Set,this.mutationObserver=new MutationObserver(t=>this.processMutations(t))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}pause(t){this.started&&(this.mutationObserver.disconnect(),this.started=!1),t(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started){const t=new Set(this.matchElementsInTree());for(const e of Array.from(this.elements))t.has(e)||this.removeElement(e);for(const e of Array.from(t))this.addElement(e)}}processMutations(t){if(this.started)for(const e of t)this.processMutation(e)}processMutation(t){"attributes"==t.type?this.processAttributeChange(t.target,t.attributeName):"childList"==t.type&&(this.processRemovedNodes(t.removedNodes),this.processAddedNodes(t.addedNodes))}processAttributeChange(t,e){this.elements.has(t)?this.delegate.elementAttributeChanged&&this.matchElement(t)?this.delegate.elementAttributeChanged(t,e):this.removeElement(t):this.matchElement(t)&&this.addElement(t)}processRemovedNodes(t){for(const e of Array.from(t)){const t=this.elementFromNode(e);t&&this.processTree(t,this.removeElement)}}processAddedNodes(t){for(const e of Array.from(t)){const t=this.elementFromNode(e);t&&this.elementIsActive(t)&&this.processTree(t,this.addElement)}}matchElement(t){return this.delegate.matchElement(t)}matchElementsInTree(t=this.element){return this.delegate.matchElementsInTree(t)}processTree(t,e){for(const i of this.matchElementsInTree(t))e.call(this,i)}elementFromNode(t){if(t.nodeType==Node.ELEMENT_NODE)return t}elementIsActive(t){return t.isConnected==this.element.isConnected&&this.element.contains(t)}addElement(t){this.elements.has(t)||this.elementIsActive(t)&&(this.elements.add(t),this.delegate.elementMatched&&this.delegate.elementMatched(t))}removeElement(t){this.elements.has(t)&&(this.elements.delete(t),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(t))}}class w{constructor(t,e,i){this.attributeName=e,this.delegate=i,this.elementObserver=new x(t,this)}get element(){return this.elementObserver.element}get selector(){return`[${this.attributeName}]`}start(){this.elementObserver.start()}pause(t){this.elementObserver.pause(t)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get started(){return this.elementObserver.started}matchElement(t){return t.hasAttribute(this.attributeName)}matchElementsInTree(t){const e=this.matchElement(t)?[t]:[],i=Array.from(t.querySelectorAll(this.selector));return e.concat(i)}elementMatched(t){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(t,this.attributeName)}elementUnmatched(t){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(t,this.attributeName)}elementAttributeChanged(t,e){this.delegate.elementAttributeValueChanged&&this.attributeName==e&&this.delegate.elementAttributeValueChanged(t,e)}}function S(t,e,i){M(t,e).add(i)}function E(t,e,i){M(t,e).delete(i),function(t,e){const i=t.get(e);null!=i&&0==i.size&&t.delete(e)}(t,e)}function M(t,e){let i=t.get(e);return i||(i=new Set,t.set(e,i)),i}class T{constructor(){this.valuesByKey=new Map}get keys(){return Array.from(this.valuesByKey.keys())}get values(){return Array.from(this.valuesByKey.values()).reduce((t,e)=>t.concat(Array.from(e)),[])}get size(){return Array.from(this.valuesByKey.values()).reduce((t,e)=>t+e.size,0)}add(t,e){S(this.valuesByKey,t,e)}delete(t,e){E(this.valuesByKey,t,e)}has(t,e){const i=this.valuesByKey.get(t);return null!=i&&i.has(e)}hasKey(t){return this.valuesByKey.has(t)}hasValue(t){return Array.from(this.valuesByKey.values()).some(e=>e.has(t))}getValuesForKey(t){const e=this.valuesByKey.get(t);return e?Array.from(e):[]}getKeysForValue(t){return Array.from(this.valuesByKey).filter(([e,i])=>i.has(t)).map(([t,e])=>t)}}class k{constructor(t,e,i,s){this._selector=e,this.details=s,this.elementObserver=new x(t,this),this.delegate=i,this.matchesByElement=new T}get started(){return this.elementObserver.started}get selector(){return this._selector}set selector(t){this._selector=t,this.refresh()}start(){this.elementObserver.start()}pause(t){this.elementObserver.pause(t)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get element(){return this.elementObserver.element}matchElement(t){const{selector:e}=this;if(e){const i=t.matches(e);return this.delegate.selectorMatchElement?i&&this.delegate.selectorMatchElement(t,this.details):i}return!1}matchElementsInTree(t){const{selector:e}=this;if(e){const i=this.matchElement(t)?[t]:[],s=Array.from(t.querySelectorAll(e)).filter(t=>this.matchElement(t));return i.concat(s)}return[]}elementMatched(t){const{selector:e}=this;e&&this.selectorMatched(t,e)}elementUnmatched(t){const e=this.matchesByElement.getKeysForValue(t);for(const i of e)this.selectorUnmatched(t,i)}elementAttributeChanged(t,e){const{selector:i}=this;if(i){const e=this.matchElement(t),s=this.matchesByElement.has(i,t);e&&!s?this.selectorMatched(t,i):!e&&s&&this.selectorUnmatched(t,i)}}selectorMatched(t,e){this.delegate.selectorMatched(t,e,this.details),this.matchesByElement.add(e,t)}selectorUnmatched(t,e){this.delegate.selectorUnmatched(t,e,this.details),this.matchesByElement.delete(e,t)}}class _{constructor(t,e){this.element=t,this.delegate=e,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver(t=>this.processMutations(t))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started)for(const t of this.knownAttributeNames)this.refreshAttribute(t,null)}processMutations(t){if(this.started)for(const e of t)this.processMutation(e)}processMutation(t){const e=t.attributeName;e&&this.refreshAttribute(e,t.oldValue)}refreshAttribute(t,e){const i=this.delegate.getStringMapKeyForAttribute(t);if(null!=i){this.stringMap.has(t)||this.stringMapKeyAdded(i,t);const s=this.element.getAttribute(t);if(this.stringMap.get(t)!=s&&this.stringMapValueChanged(s,i,e),null==s){const e=this.stringMap.get(t);this.stringMap.delete(t),e&&this.stringMapKeyRemoved(i,t,e)}else this.stringMap.set(t,s)}}stringMapKeyAdded(t,e){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(t,e)}stringMapValueChanged(t,e,i){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(t,e,i)}stringMapKeyRemoved(t,e,i){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(t,e,i)}get knownAttributeNames(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}get currentAttributeNames(){return Array.from(this.element.attributes).map(t=>t.name)}get recordedAttributeNames(){return Array.from(this.stringMap.keys())}}class C{constructor(t,e,i){this.attributeObserver=new w(t,e,this),this.delegate=i,this.tokensByElement=new T}get started(){return this.attributeObserver.started}start(){this.attributeObserver.start()}pause(t){this.attributeObserver.pause(t)}stop(){this.attributeObserver.stop()}refresh(){this.attributeObserver.refresh()}get element(){return this.attributeObserver.element}get attributeName(){return this.attributeObserver.attributeName}elementMatchedAttribute(t){this.tokensMatched(this.readTokensForElement(t))}elementAttributeValueChanged(t){const[e,i]=this.refreshTokensForElement(t);this.tokensUnmatched(e),this.tokensMatched(i)}elementUnmatchedAttribute(t){this.tokensUnmatched(this.tokensByElement.getValuesForKey(t))}tokensMatched(t){t.forEach(t=>this.tokenMatched(t))}tokensUnmatched(t){t.forEach(t=>this.tokenUnmatched(t))}tokenMatched(t){this.delegate.tokenMatched(t),this.tokensByElement.add(t.element,t)}tokenUnmatched(t){this.delegate.tokenUnmatched(t),this.tokensByElement.delete(t.element,t)}refreshTokensForElement(t){const e=this.tokensByElement.getValuesForKey(t),i=this.readTokensForElement(t),s=function(t,e){const i=Math.max(t.length,e.length);return Array.from({length:i},(i,s)=>[t[s],e[s]])}(e,i).findIndex(([t,e])=>{return s=e,!((i=t)&&s&&i.index==s.index&&i.content==s.content);var i,s});return-1==s?[[],[]]:[e.slice(s),i.slice(s)]}readTokensForElement(t){const e=this.attributeName;return function(t,e,i){return t.trim().split(/\s+/).filter(t=>t.length).map((t,s)=>({element:e,attributeName:i,content:t,index:s}))}(t.getAttribute(e)||"",t,e)}}class P{constructor(t,e,i){this.tokenListObserver=new C(t,e,this),this.delegate=i,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}get started(){return this.tokenListObserver.started}start(){this.tokenListObserver.start()}stop(){this.tokenListObserver.stop()}refresh(){this.tokenListObserver.refresh()}get element(){return this.tokenListObserver.element}get attributeName(){return this.tokenListObserver.attributeName}tokenMatched(t){const{element:e}=t,{value:i}=this.fetchParseResultForToken(t);i&&(this.fetchValuesByTokenForElement(e).set(t,i),this.delegate.elementMatchedValue(e,i))}tokenUnmatched(t){const{element:e}=t,{value:i}=this.fetchParseResultForToken(t);i&&(this.fetchValuesByTokenForElement(e).delete(t),this.delegate.elementUnmatchedValue(e,i))}fetchParseResultForToken(t){let e=this.parseResultsByToken.get(t);return e||(e=this.parseToken(t),this.parseResultsByToken.set(t,e)),e}fetchValuesByTokenForElement(t){let e=this.valuesByTokenByElement.get(t);return e||(e=new Map,this.valuesByTokenByElement.set(t,e)),e}parseToken(t){try{return{value:this.delegate.parseValueForToken(t)}}catch(t){return{error:t}}}}class A{constructor(t,e){this.context=t,this.delegate=e,this.bindingsByAction=new Map}start(){this.valueListObserver||(this.valueListObserver=new P(this.element,this.actionAttribute,this),this.valueListObserver.start())}stop(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}get element(){return this.context.element}get identifier(){return this.context.identifier}get actionAttribute(){return this.schema.actionAttribute}get schema(){return this.context.schema}get bindings(){return Array.from(this.bindingsByAction.values())}connectAction(t){const e=new y(this.context,t);this.bindingsByAction.set(t,e),this.delegate.bindingConnected(e)}disconnectAction(t){const e=this.bindingsByAction.get(t);e&&(this.bindingsByAction.delete(t),this.delegate.bindingDisconnected(e))}disconnectAllActions(){this.bindings.forEach(t=>this.delegate.bindingDisconnected(t,!0)),this.bindingsByAction.clear()}parseValueForToken(t){const e=m.forToken(t,this.schema);if(e.identifier==this.identifier)return e}elementMatchedValue(t,e){this.connectAction(e)}elementUnmatchedValue(t,e){this.disconnectAction(e)}}class O{constructor(t,e){this.context=t,this.receiver=e,this.stringMapObserver=new _(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}start(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}stop(){this.stringMapObserver.stop()}get element(){return this.context.element}get controller(){return this.context.controller}getStringMapKeyForAttribute(t){if(t in this.valueDescriptorMap)return this.valueDescriptorMap[t].name}stringMapKeyAdded(t,e){const i=this.valueDescriptorMap[e];this.hasValue(t)||this.invokeChangedCallback(t,i.writer(this.receiver[t]),i.writer(i.defaultValue))}stringMapValueChanged(t,e,i){const s=this.valueDescriptorNameMap[e];null!==t&&(null===i&&(i=s.writer(s.defaultValue)),this.invokeChangedCallback(e,t,i))}stringMapKeyRemoved(t,e,i){const s=this.valueDescriptorNameMap[t];this.hasValue(t)?this.invokeChangedCallback(t,s.writer(this.receiver[t]),i):this.invokeChangedCallback(t,s.writer(s.defaultValue),i)}invokeChangedCallbacksForDefaultValues(){for(const{key:t,name:e,defaultValue:i,writer:s}of this.valueDescriptors)null==i||this.controller.data.has(t)||this.invokeChangedCallback(e,s(i),void 0)}invokeChangedCallback(t,e,i){const s=`${t}Changed`,n=this.receiver[s];if("function"==typeof n){const s=this.valueDescriptorNameMap[t];try{const t=s.reader(e);let r=i;i&&(r=s.reader(i)),n.call(this.receiver,t,r)}catch(t){throw t instanceof TypeError&&(t.message=`Stimulus Value "${this.context.identifier}.${s.name}" - ${t.message}`),t}}}get valueDescriptors(){const{valueDescriptorMap:t}=this;return Object.keys(t).map(e=>t[e])}get valueDescriptorNameMap(){const t={};return Object.keys(this.valueDescriptorMap).forEach(e=>{const i=this.valueDescriptorMap[e];t[i.name]=i}),t}hasValue(t){const e=`has${u(this.valueDescriptorNameMap[t].name)}`;return this.receiver[e]}}class L{constructor(t,e){this.context=t,this.delegate=e,this.targetsByName=new T}start(){this.tokenListObserver||(this.tokenListObserver=new C(this.element,this.attributeName,this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}tokenMatched({element:t,content:e}){this.scope.containsElement(t)&&this.connectTarget(t,e)}tokenUnmatched({element:t,content:e}){this.disconnectTarget(t,e)}connectTarget(t,e){var i;this.targetsByName.has(e,t)||(this.targetsByName.add(e,t),null===(i=this.tokenListObserver)||void 0===i||i.pause(()=>this.delegate.targetConnected(t,e)))}disconnectTarget(t,e){var i;this.targetsByName.has(e,t)&&(this.targetsByName.delete(e,t),null===(i=this.tokenListObserver)||void 0===i||i.pause(()=>this.delegate.targetDisconnected(t,e)))}disconnectAllTargets(){for(const t of this.targetsByName.keys)for(const e of this.targetsByName.getValuesForKey(t))this.disconnectTarget(e,t)}get attributeName(){return`data-${this.context.identifier}-target`}get element(){return this.context.element}get scope(){return this.context.scope}}function I(t,e){const i=N(t);return Array.from(i.reduce((t,i)=>(function(t,e){const i=t[e];return Array.isArray(i)?i:[]}(i,e).forEach(e=>t.add(e)),t),new Set))}function D(t,e){return N(t).reduce((t,i)=>(t.push(...function(t,e){const i=t[e];return i?Object.keys(i).map(t=>[t,i[t]]):[]}(i,e)),t),[])}function N(t){const e=[];for(;t;)e.push(t),t=Object.getPrototypeOf(t);return e.reverse()}class R{constructor(t,e){this.started=!1,this.context=t,this.delegate=e,this.outletsByName=new T,this.outletElementsByName=new T,this.selectorObserverMap=new Map,this.attributeObserverMap=new Map}start(){this.started||(this.outletDefinitions.forEach(t=>{this.setupSelectorObserverForOutlet(t),this.setupAttributeObserverForOutlet(t)}),this.started=!0,this.dependentContexts.forEach(t=>t.refresh()))}refresh(){this.selectorObserverMap.forEach(t=>t.refresh()),this.attributeObserverMap.forEach(t=>t.refresh())}stop(){this.started&&(this.started=!1,this.disconnectAllOutlets(),this.stopSelectorObservers(),this.stopAttributeObservers())}stopSelectorObservers(){this.selectorObserverMap.size>0&&(this.selectorObserverMap.forEach(t=>t.stop()),this.selectorObserverMap.clear())}stopAttributeObservers(){this.attributeObserverMap.size>0&&(this.attributeObserverMap.forEach(t=>t.stop()),this.attributeObserverMap.clear())}selectorMatched(t,e,{outletName:i}){const s=this.getOutlet(t,i);s&&this.connectOutlet(s,t,i)}selectorUnmatched(t,e,{outletName:i}){const s=this.getOutletFromMap(t,i);s&&this.disconnectOutlet(s,t,i)}selectorMatchElement(t,{outletName:e}){const i=this.selector(e),s=this.hasOutlet(t,e),n=t.matches(`[${this.schema.controllerAttribute}~=${e}]`);return!!i&&(s&&n&&t.matches(i))}elementMatchedAttribute(t,e){const i=this.getOutletNameFromOutletAttributeName(e);i&&this.updateSelectorObserverForOutlet(i)}elementAttributeValueChanged(t,e){const i=this.getOutletNameFromOutletAttributeName(e);i&&this.updateSelectorObserverForOutlet(i)}elementUnmatchedAttribute(t,e){const i=this.getOutletNameFromOutletAttributeName(e);i&&this.updateSelectorObserverForOutlet(i)}connectOutlet(t,e,i){var s;this.outletElementsByName.has(i,e)||(this.outletsByName.add(i,t),this.outletElementsByName.add(i,e),null===(s=this.selectorObserverMap.get(i))||void 0===s||s.pause(()=>this.delegate.outletConnected(t,e,i)))}disconnectOutlet(t,e,i){var s;this.outletElementsByName.has(i,e)&&(this.outletsByName.delete(i,t),this.outletElementsByName.delete(i,e),null===(s=this.selectorObserverMap.get(i))||void 0===s||s.pause(()=>this.delegate.outletDisconnected(t,e,i)))}disconnectAllOutlets(){for(const t of this.outletElementsByName.keys)for(const e of this.outletElementsByName.getValuesForKey(t))for(const i of this.outletsByName.getValuesForKey(t))this.disconnectOutlet(i,e,t)}updateSelectorObserverForOutlet(t){const e=this.selectorObserverMap.get(t);e&&(e.selector=this.selector(t))}setupSelectorObserverForOutlet(t){const e=this.selector(t),i=new k(document.body,e,this,{outletName:t});this.selectorObserverMap.set(t,i),i.start()}setupAttributeObserverForOutlet(t){const e=this.attributeNameForOutletName(t),i=new w(this.scope.element,e,this);this.attributeObserverMap.set(t,i),i.start()}selector(t){return this.scope.outlets.getSelectorForOutletName(t)}attributeNameForOutletName(t){return this.scope.schema.outletAttributeForScope(this.identifier,t)}getOutletNameFromOutletAttributeName(t){return this.outletDefinitions.find(e=>this.attributeNameForOutletName(e)===t)}get outletDependencies(){const t=new T;return this.router.modules.forEach(e=>{I(e.definition.controllerConstructor,"outlets").forEach(i=>t.add(i,e.identifier))}),t}get outletDefinitions(){return this.outletDependencies.getKeysForValue(this.identifier)}get dependentControllerIdentifiers(){return this.outletDependencies.getValuesForKey(this.identifier)}get dependentContexts(){const t=this.dependentControllerIdentifiers;return this.router.contexts.filter(e=>t.includes(e.identifier))}hasOutlet(t,e){return!!this.getOutlet(t,e)||!!this.getOutletFromMap(t,e)}getOutlet(t,e){return this.application.getControllerForElementAndIdentifier(t,e)}getOutletFromMap(t,e){return this.outletsByName.getValuesForKey(e).find(e=>e.element===t)}get scope(){return this.context.scope}get schema(){return this.context.schema}get identifier(){return this.context.identifier}get application(){return this.context.application}get router(){return this.application.router}}class F{constructor(t,e){this.logDebugActivity=(t,e={})=>{const{identifier:i,controller:s,element:n}=this;e=Object.assign({identifier:i,controller:s,element:n},e),this.application.logDebugActivity(this.identifier,t,e)},this.module=t,this.scope=e,this.controller=new t.controllerConstructor(this),this.bindingObserver=new A(this,this.dispatcher),this.valueObserver=new O(this,this.controller),this.targetObserver=new L(this,this),this.outletObserver=new R(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(t){this.handleError(t,"initializing controller")}}connect(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(t){this.handleError(t,"connecting controller")}}refresh(){this.outletObserver.refresh()}disconnect(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(t){this.handleError(t,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}get application(){return this.module.application}get identifier(){return this.module.identifier}get schema(){return this.application.schema}get dispatcher(){return this.application.dispatcher}get element(){return this.scope.element}get parentElement(){return this.element.parentElement}handleError(t,e,i={}){const{identifier:s,controller:n,element:r}=this;i=Object.assign({identifier:s,controller:n,element:r},i),this.application.handleError(t,`Error ${e}`,i)}targetConnected(t,e){this.invokeControllerMethod(`${e}TargetConnected`,t)}targetDisconnected(t,e){this.invokeControllerMethod(`${e}TargetDisconnected`,t)}outletConnected(t,e,i){this.invokeControllerMethod(`${c(i)}OutletConnected`,t,e)}outletDisconnected(t,e,i){this.invokeControllerMethod(`${c(i)}OutletDisconnected`,t,e)}invokeControllerMethod(t,...e){const i=this.controller;"function"==typeof i[t]&&i[t](...e)}}function $(t){return function(t,e){const i=j(t),s=function(t,e){return z(e).reduce((i,s)=>{const n=function(t,e,i){const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!("value"in s)){const t=Object.getOwnPropertyDescriptor(e,i).value;return s&&(t.get=s.get||t.get,t.set=s.set||t.set),t}}(t,e,s);return n&&Object.assign(i,{[s]:n}),i},{})}(t.prototype,e);return Object.defineProperties(i.prototype,s),i}(t,function(t){const e=I(t,"blessings");return e.reduce((e,i)=>{const s=i(t);for(const t in s){const i=e[t]||{};e[t]=Object.assign(i,s[t])}return e},{})}(t))}const z="function"==typeof Object.getOwnPropertySymbols?t=>[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)]:Object.getOwnPropertyNames,j=(()=>{function t(t){function e(){return Reflect.construct(t,arguments,new.target)}return e.prototype=Object.create(t.prototype,{constructor:{value:e}}),Reflect.setPrototypeOf(e,t),e}try{return function(){const e=t(function(){this.a.call(this)});e.prototype.a=function(){},new e}(),t}catch(t){return t=>class extends t{}}})();class B{constructor(t,e){this.application=t,this.definition=function(t){return{identifier:t.identifier,controllerConstructor:$(t.controllerConstructor)}}(e),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}get identifier(){return this.definition.identifier}get controllerConstructor(){return this.definition.controllerConstructor}get contexts(){return Array.from(this.connectedContexts)}connectContextForScope(t){const e=this.fetchContextForScope(t);this.connectedContexts.add(e),e.connect()}disconnectContextForScope(t){const e=this.contextsByScope.get(t);e&&(this.connectedContexts.delete(e),e.disconnect())}fetchContextForScope(t){let e=this.contextsByScope.get(t);return e||(e=new F(this,t),this.contextsByScope.set(t,e)),e}}class V{constructor(t){this.scope=t}has(t){return this.data.has(this.getDataKey(t))}get(t){return this.getAll(t)[0]}getAll(t){const e=this.data.get(this.getDataKey(t))||"";return e.match(/[^\s]+/g)||[]}getAttributeName(t){return this.data.getAttributeNameForKey(this.getDataKey(t))}getDataKey(t){return`${t}-class`}get data(){return this.scope.data}}class H{constructor(t){this.scope=t}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get(t){const e=this.getAttributeNameForKey(t);return this.element.getAttribute(e)}set(t,e){const i=this.getAttributeNameForKey(t);return this.element.setAttribute(i,e),this.get(t)}has(t){const e=this.getAttributeNameForKey(t);return this.element.hasAttribute(e)}delete(t){if(this.has(t)){const e=this.getAttributeNameForKey(t);return this.element.removeAttribute(e),!0}return!1}getAttributeNameForKey(t){return`data-${this.identifier}-${h(t)}`}}class W{constructor(t){this.warnedKeysByObject=new WeakMap,this.logger=t}warn(t,e,i){let s=this.warnedKeysByObject.get(t);s||(s=new Set,this.warnedKeysByObject.set(t,s)),s.has(e)||(s.add(e),this.logger.warn(i,t))}}function U(t,e){return`[${t}~="${e}"]`}class q{constructor(t){this.scope=t}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(t){return null!=this.find(t)}find(...t){return t.reduce((t,e)=>t||this.findTarget(e)||this.findLegacyTarget(e),void 0)}findAll(...t){return t.reduce((t,e)=>[...t,...this.findAllTargets(e),...this.findAllLegacyTargets(e)],[])}findTarget(t){const e=this.getSelectorForTargetName(t);return this.scope.findElement(e)}findAllTargets(t){const e=this.getSelectorForTargetName(t);return this.scope.findAllElements(e)}getSelectorForTargetName(t){return U(this.schema.targetAttributeForScope(this.identifier),t)}findLegacyTarget(t){const e=this.getLegacySelectorForTargetName(t);return this.deprecate(this.scope.findElement(e),t)}findAllLegacyTargets(t){const e=this.getLegacySelectorForTargetName(t);return this.scope.findAllElements(e).map(e=>this.deprecate(e,t))}getLegacySelectorForTargetName(t){const e=`${this.identifier}.${t}`;return U(this.schema.targetAttribute,e)}deprecate(t,e){if(t){const{identifier:i}=this,s=this.schema.targetAttribute,n=this.schema.targetAttributeForScope(i);this.guide.warn(t,`target:${e}`,`Please replace ${s}="${i}.${e}" with ${n}="${e}". The ${s} attribute is deprecated and will be removed in a future version of Stimulus.`)}return t}get guide(){return this.scope.guide}}class Y{constructor(t,e){this.scope=t,this.controllerElement=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(t){return null!=this.find(t)}find(...t){return t.reduce((t,e)=>t||this.findOutlet(e),void 0)}findAll(...t){return t.reduce((t,e)=>[...t,...this.findAllOutlets(e)],[])}getSelectorForOutletName(t){const e=this.schema.outletAttributeForScope(this.identifier,t);return this.controllerElement.getAttribute(e)}findOutlet(t){const e=this.getSelectorForOutletName(t);if(e)return this.findElement(e,t)}findAllOutlets(t){const e=this.getSelectorForOutletName(t);return e?this.findAllElements(e,t):[]}findElement(t,e){return this.scope.queryElements(t).filter(i=>this.matchesElement(i,t,e))[0]}findAllElements(t,e){return this.scope.queryElements(t).filter(i=>this.matchesElement(i,t,e))}matchesElement(t,e,i){const s=t.getAttribute(this.scope.schema.controllerAttribute)||"";return t.matches(e)&&s.split(" ").includes(i)}}class X{constructor(t,e,i,s){this.targets=new q(this),this.classes=new V(this),this.data=new H(this),this.containsElement=t=>t.closest(this.controllerSelector)===this.element,this.schema=t,this.element=e,this.identifier=i,this.guide=new W(s),this.outlets=new Y(this.documentScope,e)}findElement(t){return this.element.matches(t)?this.element:this.queryElements(t).find(this.containsElement)}findAllElements(t){return[...this.element.matches(t)?[this.element]:[],...this.queryElements(t).filter(this.containsElement)]}queryElements(t){return Array.from(this.element.querySelectorAll(t))}get controllerSelector(){return U(this.schema.controllerAttribute,this.identifier)}get isDocumentScope(){return this.element===document.documentElement}get documentScope(){return this.isDocumentScope?this:new X(this.schema,document.documentElement,this.identifier,this.guide.logger)}}class G{constructor(t,e,i){this.element=t,this.schema=e,this.delegate=i,this.valueListObserver=new P(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}start(){this.valueListObserver.start()}stop(){this.valueListObserver.stop()}get controllerAttribute(){return this.schema.controllerAttribute}parseValueForToken(t){const{element:e,content:i}=t;return this.parseValueForElementAndIdentifier(e,i)}parseValueForElementAndIdentifier(t,e){const i=this.fetchScopesByIdentifierForElement(t);let s=i.get(e);return s||(s=this.delegate.createScopeForElementAndIdentifier(t,e),i.set(e,s)),s}elementMatchedValue(t,e){const i=(this.scopeReferenceCounts.get(e)||0)+1;this.scopeReferenceCounts.set(e,i),1==i&&this.delegate.scopeConnected(e)}elementUnmatchedValue(t,e){const i=this.scopeReferenceCounts.get(e);i&&(this.scopeReferenceCounts.set(e,i-1),1==i&&this.delegate.scopeDisconnected(e))}fetchScopesByIdentifierForElement(t){let e=this.scopesByIdentifierByElement.get(t);return e||(e=new Map,this.scopesByIdentifierByElement.set(t,e)),e}}class K{constructor(t){this.application=t,this.scopeObserver=new G(this.element,this.schema,this),this.scopesByIdentifier=new T,this.modulesByIdentifier=new Map}get element(){return this.application.element}get schema(){return this.application.schema}get logger(){return this.application.logger}get controllerAttribute(){return this.schema.controllerAttribute}get modules(){return Array.from(this.modulesByIdentifier.values())}get contexts(){return this.modules.reduce((t,e)=>t.concat(e.contexts),[])}start(){this.scopeObserver.start()}stop(){this.scopeObserver.stop()}loadDefinition(t){this.unloadIdentifier(t.identifier);const e=new B(this.application,t);this.connectModule(e);const i=t.controllerConstructor.afterLoad;i&&i.call(t.controllerConstructor,t.identifier,this.application)}unloadIdentifier(t){const e=this.modulesByIdentifier.get(t);e&&this.disconnectModule(e)}getContextForElementAndIdentifier(t,e){const i=this.modulesByIdentifier.get(e);if(i)return i.contexts.find(e=>e.element==t)}proposeToConnectScopeForElementAndIdentifier(t,e){const i=this.scopeObserver.parseValueForElementAndIdentifier(t,e);i?this.scopeObserver.elementMatchedValue(i.element,i):console.error(`Couldn't find or create scope for identifier: "${e}" and element:`,t)}handleError(t,e,i){this.application.handleError(t,e,i)}createScopeForElementAndIdentifier(t,e){return new X(this.schema,t,e,this.logger)}scopeConnected(t){this.scopesByIdentifier.add(t.identifier,t);const e=this.modulesByIdentifier.get(t.identifier);e&&e.connectContextForScope(t)}scopeDisconnected(t){this.scopesByIdentifier.delete(t.identifier,t);const e=this.modulesByIdentifier.get(t.identifier);e&&e.disconnectContextForScope(t)}connectModule(t){this.modulesByIdentifier.set(t.identifier,t);this.scopesByIdentifier.getValuesForKey(t.identifier).forEach(e=>t.connectContextForScope(e))}disconnectModule(t){this.modulesByIdentifier.delete(t.identifier);this.scopesByIdentifier.getValuesForKey(t.identifier).forEach(e=>t.disconnectContextForScope(e))}}const J={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target",targetAttributeForScope:t=>`data-${t}-target`,outletAttributeForScope:(t,e)=>`data-${t}-${e}-outlet`,keyMappings:Object.assign(Object.assign({enter:"Enter",tab:"Tab",esc:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",home:"Home",end:"End",page_up:"PageUp",page_down:"PageDown"},Q("abcdefghijklmnopqrstuvwxyz".split("").map(t=>[t,t]))),Q("0123456789".split("").map(t=>[t,t])))};function Q(t){return t.reduce((t,[e,i])=>Object.assign(Object.assign({},t),{[e]:i}),{})}class Z{constructor(t=document.documentElement,e=J){this.logger=console,this.debug=!1,this.logDebugActivity=(t,e,i={})=>{this.debug&&this.logFormattedMessage(t,e,i)},this.element=t,this.schema=e,this.dispatcher=new n(this),this.router=new K(this),this.actionDescriptorFilters=Object.assign({},r)}static start(t,e){const i=new this(t,e);return i.start(),i}async start(){await new Promise(t=>{"loading"==document.readyState?document.addEventListener("DOMContentLoaded",()=>t()):t()}),this.logDebugActivity("application","starting"),this.dispatcher.start(),this.router.start(),this.logDebugActivity("application","start")}stop(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}register(t,e){this.load({identifier:t,controllerConstructor:e})}registerActionOption(t,e){this.actionDescriptorFilters[t]=e}load(t,...e){(Array.isArray(t)?t:[t,...e]).forEach(t=>{t.controllerConstructor.shouldLoad&&this.router.loadDefinition(t)})}unload(t,...e){(Array.isArray(t)?t:[t,...e]).forEach(t=>this.router.unloadIdentifier(t))}get controllers(){return this.router.contexts.map(t=>t.controller)}getControllerForElementAndIdentifier(t,e){const i=this.router.getContextForElementAndIdentifier(t,e);return i?i.controller:null}handleError(t,e,i){var s;this.logger.error("%s\n\n%o\n\n%o",e,t,i),null===(s=window.onerror)||void 0===s||s.call(window,e,"",0,0,t)}logFormattedMessage(t,e,i={}){i=Object.assign({application:this},i),this.logger.groupCollapsed(`${t} #${e}`),this.logger.log("details:",Object.assign({},i)),this.logger.groupEnd()}}function tt(t,e,i){return t.application.getControllerForElementAndIdentifier(e,i)}function et(t,e,i){let s=tt(t,e,i);return s||(t.application.router.proposeToConnectScopeForElementAndIdentifier(e,i),s=tt(t,e,i),s||void 0)}function it([t,e],i){return function(t){const{token:e,typeDefinition:i}=t,s=`${h(e)}-value`,n=function(t){const{controller:e,token:i,typeDefinition:s}=t,n={controller:e,token:i,typeObject:s},r=function(t){const{controller:e,token:i,typeObject:s}=t,n=d(s.type),r=d(s.default),a=n&&r,o=n&&!r,l=!n&&r,c=st(s.type),u=nt(t.typeObject.default);if(o)return c;if(l)return u;if(c!==u){throw new Error(`The specified default value for the Stimulus Value "${e?`${e}.${i}`:i}" must match the defined type "${c}". The provided default value of "${s.default}" is of type "${u}".`)}if(a)return c}(n),a=nt(s),o=st(s),l=r||a||o;if(l)return l;const c=e?`${e}.${s}`:i;throw new Error(`Unknown value type "${c}" for "${i}" value`)}(t);return{type:n,key:s,name:l(s),get defaultValue(){return function(t){const e=st(t);if(e)return rt[e];const i=p(t,"default"),s=p(t,"type"),n=t;if(i)return n.default;if(s){const{type:t}=n,e=st(t);if(e)return rt[e]}return t}(i)},get hasCustomDefaultValue(){return void 0!==nt(i)},reader:at[n],writer:ot[n]||ot.default}}({controller:i,token:t,typeDefinition:e})}function st(t){switch(t){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function nt(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}return Array.isArray(t)?"array":"[object Object]"===Object.prototype.toString.call(t)?"object":void 0}const rt={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},at={array(t){const e=JSON.parse(t);if(!Array.isArray(e))throw new TypeError(`expected value of type "array" but instead got value "${t}" of type "${nt(e)}"`);return e},boolean(t){return!("0"==t||"false"==String(t).toLowerCase())},number(t){return Number(t.replace(/_/g,""))},object(t){const e=JSON.parse(t);if(null===e||"object"!=typeof e||Array.isArray(e))throw new TypeError(`expected value of type "object" but instead got value "${t}" of type "${nt(e)}"`);return e},string(t){return t}},ot={default:function(t){return`${t}`},array:lt,object:lt};function lt(t){return JSON.stringify(t)}class ct{constructor(t){this.context=t}static get shouldLoad(){return!0}static afterLoad(t,e){}get application(){return this.context.application}get scope(){return this.context.scope}
2get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(t,{target:e=this.element,detail:i={},prefix:s=this.identifier,bubbles:n=!0,cancelable:r=!0}={}){const a=new CustomEvent(s?`${s}:${t}`:t,{detail:i,bubbles:n,cancelable:r});return e.dispatchEvent(a),a}}ct.blessings=[function(t){return I(t,"classes").reduce((t,e)=>{return Object.assign(t,(i=e,{[`${i}Class`]:{get(){const{classes:t}=this;if(t.has(i))return t.get(i);{const e=t.getAttributeName(i);throw new Error(`Missing attribute "${e}"`)}}},[`${i}Classes`]:{get(){return this.classes.getAll(i)}},[`has${u(i)}Class`]:{get(){return this.classes.has(i)}}}));var i},{})},function(t){return I(t,"targets").reduce((t,e)=>{return Object.assign(t,(i=e,{[`${i}Target`]:{get(){const t=this.targets.find(i);if(t)return t;throw new Error(`Missing target element "${i}" for "${this.identifier}" controller`)}},[`${i}Targets`]:{get(){return this.targets.findAll(i)}},[`has${u(i)}Target`]:{get(){return this.targets.has(i)}}}));var i},{})},function(t){const e=D(t,"values"),i={valueDescriptorMap:{get(){return e.reduce((t,e)=>{const i=it(e,this.identifier),s=this.data.getAttributeNameForKey(i.key);return Object.assign(t,{[s]:i})},{})}}};return e.reduce((t,e)=>Object.assign(t,function(t,e){const i=it(t,e),{key:s,name:n,reader:r,writer:a}=i;return{[n]:{get(){const t=this.data.get(s);return null!==t?r(t):i.defaultValue},set(t){void 0===t?this.data.delete(s):this.data.set(s,a(t))}},[`has${u(n)}`]:{get(){return this.data.has(s)||i.hasCustomDefaultValue}}}}(e)),i)},function(t){return I(t,"outlets").reduce((t,e)=>Object.assign(t,function(t){const e=c(t);return{[`${e}Outlet`]:{get(){const e=this.outlets.find(t),i=this.outlets.getSelectorForOutletName(t);if(e){const i=et(this,e,t);if(i)return i;throw new Error(`The provided outlet element is missing an outlet controller "${t}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${t}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${i}".`)}},[`${e}Outlets`]:{get(){const e=this.outlets.findAll(t);return e.length>0?e.map(e=>{const i=et(this,e,t);if(i)return i;console.warn(`The provided outlet element is missing an outlet controller "${t}" instance for host controller "${this.identifier}"`,e)}).filter(t=>t):[]}},[`${e}OutletElement`]:{get(){const e=this.outlets.find(t),i=this.outlets.getSelectorForOutletName(t);if(e)return e;throw new Error(`Missing outlet element "${t}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${i}".`)}},[`${e}OutletElements`]:{get(){return this.outlets.findAll(t)}},[`has${u(e)}Outlet`]:{get(){return this.outlets.has(t)}}}}(e)),{})}],ct.targets=[],ct.outlets=[],ct.values={}},2892:function(t,e,i){"use strict";var s=i(6518),n=i(6395),r=i(3724),a=i(4576),o=i(9167),l=i(9504),c=i(2796),u=i(9297),h=i(3167),d=i(1625),p=i(757),f=i(2777),m=i(9039),g=i(8480).f,b=i(7347).f,v=i(4913).f,y=i(1240),x=i(3802).trim,w="Number",S=a[w],E=o[w],M=S.prototype,T=a.TypeError,k=l("".slice),_=l("".charCodeAt),C=function(t){var e,i,s,n,r,a,o,l,c=f(t,"number");if(p(c))throw new T("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(e=_(c,0))||45===e){if(88===(i=_(c,2))||120===i)return NaN}else if(48===e){switch(_(c,1)){case 66:case 98:s=2,n=49;break;case 79:case 111:s=8,n=55;break;default:return+c}for(a=(r=k(c,2)).length,o=0;o<a;o++)if((l=_(r,o))<48||l>n)return NaN;return parseInt(r,s)}return+c},P=c(w,!S(" 0o1")||!S("0b1")||S("+0x1")),A=function(t){var e,i=arguments.length<1?0:S(function(t){var e=f(t,"number");return"bigint"==typeof e?e:C(e)}(t));return d(M,e=this)&&m(function(){y(e)})?h(Object(i),this,A):i};A.prototype=M,P&&!n&&(M.constructor=A),s({global:!0,constructor:!0,wrap:!0,forced:P},{Number:A});var O=function(t,e){for(var i,s=r?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0;s.length>n;n++)u(e,i=s[n])&&!u(t,i)&&v(t,i,b(e,i))};n&&E&&O(o[w],E),(P||n)&&O(o[w],S)}
2,2953:function(t,e,i){"use strict";var s=i(4576),n=i(7400),r=i(9296),a=i(3792),o=i(6699),l=i(687),c=i(8227)("iterator"),u=a.values,h=function(t,e){if(t){if(t[c]!==u)try{o(t,c,u)}catch(e){t[c]=u}if(l(t,e,!0),n[e])for(var i in a)if(t[i]!==a[i])try{o(t,i,a[i])}catch(e){t[i]=a[i]}}};for(var d in n)h(s[d]&&s[d].prototype,d);h(r,"DOMTokenList")},2967:function(t,e,i){"use strict";var s=i(6706),n=i(34),r=i(7750),a=i(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=s(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,s){return r(i),a(s),n(i)?(e?t(i,s):i.__proto__=s,i):i}}():void 0)},3063:function(t,e,i){"use strict";var s=i(2839);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(s)},3066:function(t,e,i){"use strict";i.d(e,{E:function(){return a}});var s=i(2891),n=i(1861);function r(t){return t.keys().map(e=>function(t,e){const i=function(t){const e=(t.match(/^(?:\.\/)?(.+)(?:[_-]controller\..+?)$/)||[])[1];if(e)return e.replace(/_/g,"-").replace(/\//g,"--")}(e);if(i)return function(t,e){const i=t.default;if("function"==typeof i)return{identifier:e,controllerConstructor:i}}(t(e),i)}(t,e)).filter(t=>t)}function a(t){const e=s.lg.start();t&&e.load(r(t));for(const t in n.A)n.A.hasOwnProperty(t)&&e.register(t,n.A[t]);return e}},3110:function(t,e,i){"use strict";var s=i(6518),n=i(7751),r=i(8745),a=i(9565),o=i(9504),l=i(9039),c=i(4376),u=i(4901),h=i(5810),d=i(757),p=i(2195),f=i(655),m=i(7680),g=i(8235),b=i(3392),v=i(4495),y=i(7819),x=String,w=n("JSON","stringify"),S=o(/./.exec),E=o("".charAt),M=o("".charCodeAt),T=o("".replace),k=o("".slice),_=o([].push),C=o(1.1.toString),P=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,L=b(),I=L.length,D=!v||l(function(){var t=n("Symbol")("stringify detection");return"[null]"!==w([t])||"{}"!==w({a:t})||"{}"!==w(Object(t))}),N=l(function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")}),R=D?function(t,e){var i=m(arguments),s=$(e);if(u(s)||void 0!==t&&!d(t))return i[1]=function(t,e){if(u(s)&&(e=a(s,this,x(t),e)),!d(e))return e},r(w,null,i)}:w,F=function(t,e,i){var s=E(i,e-1),n=E(i,e+1);return S(A,t)&&!S(O,n)||S(O,t)&&!S(A,s)?"\\u"+C(M(t,0),16):t},$=function(t){if(u(t))return t;if(c(t)){for(var e=t.length,i=[],s=0;s<e;s++){var n=t[s];"string"==typeof n?_(i,n):"number"!=typeof n&&"Number"!==p(n)&&"String"!==p(n)||_(i,f(n))}var r=i.length,a=!0;return function(t,e){if(a)return a=!1,e;if(c(this))return e;for(var s=0;s<r;s++)if(i[s]===t)return e}}};w&&s({target:"JSON",stat:!0,arity:3,forced:D||N||!y},{stringify:function(t,e,i){var s=$(e),n=[],r=R(t,function(t,e){var i=u(s)?a(s,this,x(t),e):e;return!y&&h(i)?L+(_(n,i.rawJSON)-1):i},i);if("string"!=typeof r)return r;if(N&&(r=T(r,P,F)),y)return r;for(var o="",l=r.length,c=0;c<l;c++){var d=E(r,c);if('"'===d){var p=g(r,++c).end-1,f=k(r,c,p);o+=k(f,0,I)===L?n[k(f,I)]:'"'+f+'"',c=p}else o+=d}return o}})},3138:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},3167:function(t,e,i){"use strict";var s=i(4901),n=i(34),r=i(2967);t.exports=function(t,e,i){var a,o;return r&&s(a=e.constructor)&&a!==i&&n(o=a.prototype)&&o!==i.prototype&&r(t,o),t}},3179:function(t,e,i){"use strict";var s=i(2140),n=i(6955);t.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},3296:function(t,e,i){"use strict";i(5806)},3362:function(t,e,i){"use strict";i(436),i(6499),i(2003),i(7743),i(1481),i(280)},3389:function(t,e,i){"use strict";var s=i(4576),n=i(3724),r=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!n)return s[t];var e=r(s,t);return e&&e.value}},3392:function(t,e,i){"use strict";var s=i(9504),n=0,r=Math.random(),a=s(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++n+r,36)}},3418:function(t,e,i){"use strict";var s=i(6518),n=i(7916);s({target:"Array",stat:!0,forced:!i(4428)(function(t){Array.from(t)})},{from:n})},3438:function(t,e,i){"use strict";var s=i(8551),n=i(34),r=i(6043);t.exports=function(t,e){if(s(t),n(e)&&e.constructor===t)return e;var i=r.f(t);return(0,i.resolve)(e),i.promise}},3470:function(t){"use strict";
2t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},3500:function(t,e,i){"use strict";var s=i(4576),n=i(7400),r=i(9296),a=i(235),o=i(6699),l=function(t){if(t&&t.forEach!==a)try{o(t,"forEach",a)}catch(e){t.forEach=a}};for(var c in n)n[c]&&l(s[c]&&s[c].prototype);l(r)},3506:function(t,e,i){"use strict";var s=i(3925),n=String,r=TypeError;t.exports=function(t){if(s(t))return t;throw new r("Can't set "+n(t)+" as a prototype")}},3517:function(t,e,i){"use strict";var s=i(9504),n=i(9039),r=i(4901),a=i(6955),o=i(7751),l=i(3706),c=function(){},u=o("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=s(h.exec),p=!h.test(c),f=function(t){if(!r(t))return!1;try{return u(c,[],t),!0}catch(t){return!1}},m=function(t){if(!r(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,l(t))}catch(t){return!0}};m.sham=!0,t.exports=!u||n(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?m:f},3607:function(t,e,i){"use strict";var s=i(2839).match(/AppleWebKit\/(\d+)\./);t.exports=!!s&&+s[1]},3635:function(t,e,i){"use strict";var s=i(9039),n=i(4576).RegExp;t.exports=s(function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})},3640:function(t,e,i){"use strict";var s=i(8551),n=i(4270),r=TypeError;t.exports=function(t){if(s(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new r("Incorrect hint");return n(this,t)}},3706:function(t,e,i){"use strict";var s=i(9504),n=i(4901),r=i(7629),a=s(Function.toString);n(r.inspectSource)||(r.inspectSource=function(t){return a(t)}),t.exports=r.inspectSource},3709:function(t,e,i){"use strict";var s=i(2839).match(/firefox\/(\d+)/i);t.exports=!!s&&+s[1]},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},3724:function(t,e,i){"use strict";var s=i(9039);t.exports=!s(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3763:function(t,e,i){"use strict";var s=i(2839);t.exports=/MSIE|Trident/.test(s)},3792:function(t,e,i){"use strict";var s=i(5397),n=i(6469),r=i(6269),a=i(1181),o=i(4913).f,l=i(1088),c=i(2529),u=i(6395),h=i(3724),d="Array Iterator",p=a.set,f=a.getterFor(d);t.exports=l(Array,"Array",function(t,e){p(this,{type:d,target:s(t),index:0,kind:e})},function(){var t=f(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(i,!1);case"values":return c(e[i],!1)}return c([i,e[i]],!1)},"values");var m=r.Arguments=r.Array;if(n("keys"),n("values"),n("entries"),!u&&h&&"values"!==m.name)try{o(m,"name",{value:"values"})}catch(t){}},3802:function(t,e,i){"use strict";var s=i(9504),n=i(7750),r=i(655),a=i(7452),o=s("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(t){return function(e){var i=r(n(e));return 1&t&&(i=o(i,l,"")),2&t&&(i=o(i,c,"$1")),i}};t.exports={start:u(1),end:u(2),trim:u(3)}},3805:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3851:function(t,e,i){"use strict";var s=i(6518),n=i(9039),r=i(5397),a=i(7347).f,o=i(3724);s({target:"Object",stat:!0,forced:!o||n(function(){a(1)}),sham:!o},{getOwnPropertyDescriptor:function(t,e){return a(r(t),e)}})},3925:function(t,e,i){"use strict";var s=i(34);t.exports=function(t){return s(t)||null===t}},3994:function(t,e,i){"use strict";var s=i(7657).IteratorPrototype,n=i(2360),r=i(6980),a=i(687),o=i(6269),l=function(){return this};t.exports=function(t,e,i,c){var u=e+" Iterator";return t.prototype=n(s,{next:r(+!c,i)}),a(t,u,!1,!0),o[u]=l,t}},4055:function(t,e,i){"use strict";var s=i(4576),n=i(34),r=s.document,a=n(r)&&n(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},4117:function(t){"use strict";t.exports=function(t){return null==t}},4128:function(t,e,i){var s=i(1800),n=/^\s+/;t.exports=function(t){return t?t.slice(0,s(t)+1).replace(n,""):t}},4209:function(t,e,i){"use strict";var s=i(8227),n=i(6269),r=s("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||a[r]===t)}},4213:function(t,e,i){"use strict";var s=i(3724),n=i(9504),r=i(9565),a=i(9039),o=i(1072),l=i(3717),c=i(8773),u=i(8981),h=i(7055),d=Object.assign,p=Object.defineProperty,f=n([].concat);t.exports=!d||a(function(){if(s&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!==d({},t)[i]||o(d({},e)).join("")!==n})?function(t,e){for(var i=u(t),n=arguments.length,a=1,d=l.f,p=c.f;n>a;)for(var m,g=h(arguments[a++]),b=d?f(o(g),d(g)):o(g),v=b.length,y=0;v>y;)m=b[y++],s&&!r(p,g,m)||(i[m]=g[m]);return i}:d}
2,4215:function(t,e,i){"use strict";var s=i(4576),n=i(2839),r=i(2195),a=function(t){return n.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":s.Bun&&"string"==typeof Bun.version?"BUN":s.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(s.process)?"NODE":s.window&&s.document?"BROWSER":"REST"},4265:function(t,e,i){"use strict";var s=i(2839);t.exports=/ipad|iphone|ipod/i.test(s)&&"undefined"!=typeof Pebble},4270:function(t,e,i){"use strict";var s=i(9565),n=i(4901),r=i(34),a=TypeError;t.exports=function(t,e){var i,o;if("string"===e&&n(i=t.toString)&&!r(o=s(i,t)))return o;if(n(i=t.valueOf)&&!r(o=s(i,t)))return o;if("string"!==e&&n(i=t.toString)&&!r(o=s(i,t)))return o;throw new a("Can't convert object to primitive value")}},4330:function(t,e,i){"object"==typeof navigator&&(t.exports=function(){"use strict";function t(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function e(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 s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function n(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 r(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach(function(e){s(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var a={addCSS:!0,thumbWidth:15,watch:!0},o=function(t){return null!=t?t.constructor:null},l=function(t,e){return!!(t&&e&&t instanceof e)},c=function(t){return null==t},u=function(t){return o(t)===Object},h=function(t){return o(t)===String},d=function(t){return Array.isArray(t)},p=function(t){return l(t,NodeList)},f={nullOrUndefined:c,object:u,number:function(t){return o(t)===Number&&!Number.isNaN(t)},string:h,boolean:function(t){return o(t)===Boolean},function:function(t){return o(t)===Function},array:d,nodeList:p,element:function(t){return l(t,Element)},event:function(t){return l(t,Event)},empty:function(t){return c(t)||(h(t)||d(t)||p(t))&&!t.length||u(t)&&!Object.keys(t).length}};function m(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 g=function(){function t(e,i){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),f.element(e)?this.element=e:f.string(e)&&(this.element=document.querySelector(e)),f.element(this.element)&&f.empty(this.element.rangeTouch)&&(this.config=r({},a,{},i),this.init())}return function(t,i,s){i&&e(t.prototype,i),s&&e(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||!f.event(e))return null;var i,s=e.target,n=e.changedTouches[0],r=parseFloat(s.getAttribute("min"))||0,a=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*(n.clientX-l.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*c:50<i&&(i+=2*(i-50)*c),r+m(i/100*(a-r),o)}},{key:"set",value:function(e){t.enabled&&f.event(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;if(f.empty(e)||f.string(e)?s=Array.from(document.querySelectorAll(f.string(e)?e:'input[type="range"]')):f.element(e)?s=[e]:f.nodeList(e)?s=Array.from(e):f.array(e)&&(s=e.filter(f.element)),f.empty(s))return null;var n=r({},a,{},i);if(f.string(e)&&n.watch){var o=new MutationObserver(function(i){Array.from(i).forEac
2h(function(i){Array.from(i.addedNodes).forEach(function(i){f.element(i)&&function(t,e){return function(){return Array.from(document.querySelectorAll(e)).includes(this)}.call(t,e)}(i,e)&&new t(i,n)})})});o.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 b=t=>null!=t?t.constructor:null,v=(t,e)=>Boolean(t&&e&&t instanceof e),y=t=>null==t,x=t=>b(t)===Object,w=t=>b(t)===String,S=t=>"function"==typeof t,E=t=>Array.isArray(t),M=t=>v(t,NodeList),T=t=>y(t)||(w(t)||E(t)||M(t))&&!t.length||x(t)&&!Object.keys(t).length;var k={nullOrUndefined:y,object:x,number:t=>b(t)===Number&&!Number.isNaN(t),string:w,boolean:t=>b(t)===Boolean,function:S,array:E,weakMap:t=>v(t,WeakMap),nodeList:M,element:t=>null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument,textNode:t=>b(t)===Text,event:t=>v(t,Event),keyboardEvent:t=>v(t,KeyboardEvent),cue:t=>v(t,window.TextTrackCue)||v(t,window.VTTCue),track:t=>v(t,TextTrack)||!y(t)&&w(t.kind),promise:t=>v(t,Promise)&&S(t.then),url:t=>{if(v(t,window.URL))return!0;if(!w(t))return!1;let e=t;t.startsWith("http://")&&t.startsWith("https://")||(e=`http://${t}`);try{return!T(new URL(e).hostname)}catch(t){return!1}},empty:T};const _=(()=>{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!!k.string(i)&&e[i]})();function C(t,e){setTimeout(()=>{try{t.hidden=!0,t.offsetHeight,t.hidden=!1}catch(t){}},e)}var P={isIE:Boolean(window.document.documentMode),isEdge:/Edge/g.test(navigator.userAgent),isWebKit:"WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),isIPhone:/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,isIPadOS:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function A(t,e){return e.split(".").reduce((t,e)=>t&&t[e],t)}function O(t={},...e){if(!e.length)return t;const i=e.shift();
vendor: 8,556 bytes, line 2
2return k.object(i)?(Object.keys(i).forEach(e=>{k.object(i[e])?(Object.keys(t).includes(e)||Object.assign(t,{[e]:{}}),O(t[e],i[e])):Object.assign(t,{[e]:i[e]})}),O(t,...e)):t}function L(t,e){const i=t.length?t:[t];Array.from(i).reverse().forEach((t,i)=>{const s=i>0?e.cloneNode(!0):e,n=t.parentNode,r=t.nextSibling;s.appendChild(t),r?n.insertBefore(s,r):n.appendChild(s)})}function I(t,e){k.element(t)&&!k.empty(e)&&Object.entries(e).filter(([,t])=>!k.nullOrUndefined(t)).forEach(([e,i])=>t.setAttribute(e,i))}function D(t,e,i){const s=document.createElement(t);return k.object(e)&&I(s,e),k.string(i)&&(s.innerText=i),s}function N(t,e,i,s){k.element(e)&&e.appendChild(D(t,i,s))}function R(t){k.nodeList(t)||k.array(t)?Array.from(t).forEach(R):k.element(t)&&k.element(t.parentNode)&&t.parentNode.removeChild(t)}function F(t){if(!k.element(t))return;let{length:e}=t.childNodes;for(;e>0;)t.removeChild(t.lastChild),e-=1}function $(t,e){return k.element(e)&&k.element(e.parentNode)&&k.element(t)?(e.parentNode.replaceChild(t,e),t):null}function z(t,e){if(!k.string(t)||k.empty(t))return{};const i={},s=O({},e);return t.split(",").forEach(t=>{const e=t.trim(),n=e.replace(".",""),r=e.replace(/[[\]]/g,"").split("="),[a]=r,o=r.length>1?r[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":k.string(s.class)?i.class=`${s.class} ${n}`:i.class=n;break;case"#":i.id=e.replace("#","");break;case"[":i[a]=o}}),O(s,i)}function j(t,e){if(!k.element(t))return;let i=e;k.boolean(i)||(i=!t.hidden),t.hidden=i}function B(t,e,i){if(k.nodeList(t))return Array.from(t).map(t=>B(t,e,i));if(k.element(t)){let s="toggle";return void 0!==i&&(s=i?"add":"remove"),t.classList[s](e),t.classList.contains(e)}return!1}function V(t,e){return k.element(t)&&t.classList.contains(e)}function H(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 W(t){return this.elements.container.querySelectorAll(t)}function U(t){return this.elements.container.querySelector(t)}function q(t=null,e=!1){k.element(t)&&t.focus({preventScroll:!0,focusVisible:e})}const Y={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},X={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(t,e){const i=X[t]||"html5"!==e;return{api:i,ui:i&&X.rangeInput}},pip:!(P.isIPhone||!k.function(D("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||D("video").disablePictureInPicture)),airplay:k.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(t){if(k.empty(t))return!1;const[e]=t.split("/");let i=t;if(!this.isHTML5||e!==this.type)return!1;Object.keys(Y).includes(i)&&(i+=`; codecs="${Y[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!==_,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},G=(()=>{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 K(t,e,i,s=!1,n=!0,r=!1){if(!t||!("addEventListener"in t)||k.empty(e)||!k.function(i))return;const a=e.split(" ");let o=r;G&&(o={passive:n,capture:r}),a.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 J(t,e="",i,s=!0,n=!1){K.call(this,t,e,i,!0,s,n)}function Q(t,e="",i,s=!0,n=!1){K.call(this,t,e,i,!1,s,n)}function Z(t,e="",i,s=!0,n=!1){const r=(...a)=>{Q(t,e,r,s,n),i.apply(this,a)};K.call(this,t,e,r,!0,s,n)}function tt(t,e="",i=!1,s={}){if(!k.element(t)||k.empty(e))return;const n=new CustomEvent(e,{bubbles:i,detail:{...s,plyr:this}});t.dispatchEvent(n)}function et(){this&&this.eventListeners&&(this.eventListeners.forEach(t=>{const{element:e,type:i,callback:s,options:n}=t;e.removeEventListener(i,s,n)}),this.eventListeners=[])}function it(){return new Promise(t=>this.ready?setTimeout(t,0):J.call(this,this.elements.container,"ready",t)).then(()=>{})}function st(t){k.promise(t)&&t.then(null,()=>{})}function nt(t){return k.array(t)?t.filter((e,i)=>t.indexOf(e)===i):t}function rt(t,e){return k.array(t)&&t.length?t.reduce((t,i)=>Math.abs(i-e)<Math.abs(t-e)?i:t):null}function at(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 lt(t){return!!(k.array(t)||k.string(t)&&t.includes(":"))&&(k.array(t)?t:t.split(":")).map(Number).every(k.number)}function ct(t){if(!k.array(t)||!t.every(k.number))return null;const[e,i]=t,s=(t,e)=>0===e?t:s(e,t%e),n=s(e,i);return[e/n,i/n]}function ut(t){const e=t=>lt(t)?t.split(":").map(Number):null;let i=e(t);if(null===i&&(i=e(this.config.ratio)),null===i&&!k.empty(this.embed)&&k.array(this.embed.ratio)&&({ratio:i}=this.embed),null===i&&this.isHTML5){const{videoWidth:t,videoHeight:e}=this.media;i=[t,e]}return ct(i)}function ht(t){if(!this.isVideo)return{};const{wrapper:e}=this.elements,i=ut.call(this,t);if(!k.array(i))return{};const[s,n]=ct(i),r=100/s*n;if(at(`aspect-ratio: ${s}/${n}`)?e.style.aspectRatio=`${s}/${n}`:e.style.paddingBottom=`${r}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const t=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),i=(t-r)/(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:r,ratio:i}}function dt(t,e,i=.05){const s=t/e,n=rt(Object.keys(ot),s);return Math.abs(n-s)<=i?ot[n]:[t,e]}const pt={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(t=>{const e=t.getAttribute("type");return!!k.empty(e)||X.mime.call(this,e)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:pt.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,k.empty(this.config.ratio)||ht.call(t),Object.defineProperty(t.media,"quality",{get(){const e=pt.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&&k.function(t.config.quality.onChange))t.config.quality.onChange(e);else{const i=pt.getSources.call(t).find(t=>Number(t.getAttribute("size"))===e);if(!i)return;const{currentTime:s,paused:n,preload:r,readyState:a,playbackRate:o}=t.media;t.media.src=i.getAttribute("src"),("none"!==r||a)&&(t.once("loadedmetadata",()=>{t.speed=o,t.currentTime=s,n||st(t.play())}),t.media.load())}tt.call(t,t.media,"qualitychange",!1,{quality:e})}}})},cancelRequests(){this.isHTML5&&(R(pt.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ft(t,...e){return k.empty(t)?t:t.toString().replace(/{(\d+)}/g,(t,i)=>e[i].toString())}const mt=(t="",e="",i="")=>t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString()),gt=(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=mt(e,"-"," "),e=mt(e,"_"," "),e=gt(e),mt(e," ","")}(e),e.charAt(0).toLowerCase()+e.slice(1)}function vt(t){const e=document.createElement("div");return e.appendChild(t),e.innerHTML}const yt={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},xt={get(t="",e={}){if(k.empty(t)||k.empty(e))return"";let i=A(e.i18n,t);if(k.empty(i))return Object.keys(yt).includes(t)?yt[t]:"";const s={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(s).forEach(([t,e])=>{i=mt(i,t,e)}),i}};class wt{constructor(e){t(this,"get",t=>{if(!wt.supported||!this.enabled)return null;const e=window.localStorage.getItem(this.key);if(k.empty(e))return null;const i=JSON.parse(e);
vendor: 4,538 bytes, line 2
2return k.string(t)&&t.length?i[t]:i}),t(this,"set",t=>{if(!wt.supported||!this.enabled)return;if(!k.object(t))return;let e=this.get();k.empty(e)&&(e={}),O(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 St(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 Et(t,e){if(!k.string(t))return;const i="cache",s=k.string(e);let n=!1;const r=()=>null!==document.getElementById(e),a=(t,e)=>{t.innerHTML=e,s&&r()||document.body.insertAdjacentElement("afterbegin",t)};if(!s||!r()){const r=wt.supported,o=document.createElement("div");if(o.setAttribute("hidden",""),s&&o.setAttribute("id",e),r){const t=window.localStorage.getItem(`${i}-${e}`);if(n=null!==t,n){const e=JSON.parse(t);a(o,e.content)}}St(t).then(t=>{if(!k.empty(t)){if(r)try{window.localStorage.setItem(`${i}-${e}`,JSON.stringify({content:t}))}catch(t){}a(o,t)}}).catch(()=>{})}}const Mt=t=>Math.trunc(t/60/60%60,10),Tt=t=>Math.trunc(t/60%60,10),kt=t=>Math.trunc(t%60,10);function _t(t=0,e=!1,i=!1){if(!k.number(t))return _t(void 0,e,i);const s=t=>`0${t}`.slice(-2);let n=Mt(t);const r=Tt(t),a=kt(t);return n=e||n>0?`${n}:`:"",`${i&&t>0?"-":""}${n}${s(r)}:${s(a)}`}const Ct={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||P.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:i}},findElements(){try{return this.elements.controls=U.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:W.call(this,this.config.selectors.buttons.play),pause:U.call(this,this.config.selectors.buttons.pause),restart:U.call(this,this.config.selectors.buttons.restart),rewind:U.call(this,this.config.selectors.buttons.rewind),fastForward:U.call(this,this.config.selectors.buttons.fastForward),mute:U.call(this,this.config.selectors.buttons.mute),pip:U.call(this,this.config.selectors.buttons.pip),airplay:U.call(this,this.config.selectors.buttons.airplay),settings:U.call(this,this.config.selectors.buttons.settings),captions:U.call(this,this.config.selectors.buttons.captions),fullscreen:U.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=U.call(this,this.config.selectors.progress),this.elements.inputs={seek:U.call(this,this.config.selectors.inputs.seek),volume:U.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:U.call(this,this.config.selectors.display.buffer),currentTime:U.call(this,this.config.selectors.display.currentTime),duration:U.call(this,this.config.selectors.display.duration)},k.element(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=Ct.getIconUrl.call(this),n=`${s.cors?"":s.url}#${this.config.iconPrefix}`,r=document.createElementNS(i,"svg");I(r,O(e,{"aria-hidden":"true",focusable:"false"}));const a=document.createElementNS(i,"use"),o=`${n}-${t}`;return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",o),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),r.appendChild(a),r},createLabel(t,e={}){const i=xt.get(t,this.config);return D("span",{...e,class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")},i)},createBadge(t){if(k.empty(t))return null;const e=D("span",{class:this.config.classNames.menu.value});return e.appendChild(D("span",{class:this.config.classNames.menu.badge},t)),e},createButton(t,e){const i=O({},e);let s=bt(t);const n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(t=>{Object.keys(i).includes(t)&&(n[t]=i[t],delete i[t])}),"button"!==n.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some(t=>
vendor: 21,277 bytes, line 2
2t===this.config.classNames.control)||O(i,{class:`${i.class} ${this.config.classNames.control}`}):i.class=this.config.classNames.control,t){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":i.class+=` ${this.config.classNames.control}--overlaid`,s="play",n.label="play",n.icon="play";break;default:k.empty(n.label)&&(n.label=s),k.empty(n.icon)&&(n.icon=t)}const r=D(n.element);return n.toggle?(r.appendChild(Ct.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),r.appendChild(Ct.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),r.appendChild(Ct.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),r.appendChild(Ct.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(r.appendChild(Ct.createIcon.call(this,n.icon)),r.appendChild(Ct.createLabel.call(this,n.label))),O(i,z(this.config.selectors.buttons[s],i)),I(r,i),"play"===s?(k.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(r)):this.elements.buttons[s]=r,r},createRange(t,e){const i=D("input",O(z(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":xt.get(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=i,Ct.updateRangeFill.call(this,i),g.setup(i),i},createProgress(t,e){const i=D("progress",O(z(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){i.appendChild(D("span",null,"0"));const e={played:"played",buffer:"buffered"}[t],s=e?xt.get(e,this.config):"";i.innerText=`% ${s.toLowerCase()}`}return this.elements.display[t]=i,i},createTime(t,e){const i=z(this.config.selectors.display[t],e),s=D("div",O(i,{class:`${i.class?i.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":xt.get(t,this.config),role:"timer"}),"00:00");return this.elements.display[t]=s,s},bindMenuItemShortcuts(t,e){J.call(this,t,"keydown keyup",i=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(i.key))return;if(i.preventDefault(),i.stopPropagation(),"keydown"===i.type)return;const s=H(t,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(i.key))Ct.showMenuPanel.call(this,e,!0);else{let e;" "!==i.key&&("ArrowDown"===i.key||s&&"ArrowRight"===i.key?(e=t.nextElementSibling,k.element(e)||(e=t.parentNode.firstElementChild)):(e=t.previousElementSibling,k.element(e)||(e=t.parentNode.lastElementChild)),q.call(this,e,!0))}},!1),J.call(this,t,"keyup",t=>{"Return"===t.key&&Ct.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:t,list:e,type:i,title:s,badge:n=null,checked:r=!1}){const a=z(this.config.selectors.inputs[i]),o=D("button",O(a,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${a.class?a.class:""}`.trim(),"aria-checked":r,value:t})),l=D("span");l.innerHTML=s,k.element(n)&&l.appendChild(n),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=>H(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(!k.keyboardEvent(e)||" "===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)}Ct.showMenuPanel.call(this,"home",k.keyboardEvent(e))}},i,!1),Ct.bindMenuItemShortcuts.call(this,o,i),e.appendChild(o)},formatTime(t=0,e=!1){return k.number(t)?_t(t,Mt(this.duration)>0,e):t},updateTimeDisplay(t=null,e=0,i=!1){k.element(t)&&k.number(e)&&(t.innerText=Ct.formatTime(e,i))},updateVolume(){this.supported.ui&&(k.element(this.elements.inputs.volume)&&Ct.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),k.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(t,e=0){k.element(t)&&(t.value=e,Ct.updateRangeFill.call(this,t))},updateProgress(t){if(!this.supported.ui||!k.event(t))return;let e=0;const i=(t,e)=>{const i=k.number(e)?e:0,s=k.element(t)?t:this.elements.display.buffer;if(k.element(s)){s.value=i;const t=s.getElementsByTagName("span")[0];k.element(t)&&(t.childNodes[0].nodeValue=i)}};if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":s=this.currentTime,n=this.duration,e=0===s||0===n||Number.isNaN(s)||Number.isNaN(n)?0:(s/n*100).toFixed(2),"timeupdate"===t.type&&Ct.setRange.call(this,this.elements.inputs.seek,e);break;case"playing":case"progress":i(this.elements.display.buffer,100*this.buffered)}var s,n},updateRangeFill(t){const e=k.event(t)?t.target:t;if(k.element(e)&&"range"===e.getAttribute("type")){if(H(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);const t=Ct.formatTime(this.currentTime),i=Ct.formatTime(this.duration),s=xt.get("seekLabel",this.config);e.setAttribute("aria-valuetext",s.replace("{currentTime}",t).replace("{duration}",i))}else if(H(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);(P.isWebKit||P.isIPadOS)&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip(t){var e,i;if(!this.config.tooltips.seek||!k.element(this.elements.inputs.seek)||!k.element(this.elements.display.seekTooltip)||0===this.duration)return;const s=this.elements.display.seekTooltip,n=`${this.config.classNames.tooltip}--visible`,r=t=>B(s,n,t);if(this.touch)return void r(!1);let a=0;const o=this.elements.progress.getBoundingClientRect();if(k.event(t))a=100/o.width*(t.pageX-o.left);else{if(!V(s,n))return;a=parseFloat(s.style.left,10)}a<0?a=0:a>100&&(a=100);const l=this.duration/100*a;s.innerText=Ct.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=`${a}%`,k.event(t)&&["mouseenter","mouseleave"].includes(t.type)&&r("mouseenter"===t.type)},timeUpdate(t){const e=!k.element(this.elements.display.duration)&&this.config.invertTime;Ct.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||Ct.updateProgress.call(this,t)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return j(this.elements.display.currentTime,!0),void j(this.elements.progress,!0);k.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const t=k.element(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&Ct.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&Ct.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&Ct.setMarkers.call(this),Ct.updateSeekTooltip.call(this)},toggleMenuButton(t,e){j(this.elements.settings.buttons[t],!e)},updateSetting(t,e,i){const s=this.elements.settings.panels[t];let n=null,r=e;if("captions"===t)n=this.currentTrack;else{if(n=k.empty(i)?this[t]:i,k.empty(n)&&(n=this.config[t].default),!k.empty(this.options[t])&&!this.options[t].includes(n))return void this.debug.warn(`Unsupported value of '${n}' for ${t}`);if(!this.config[t].options.includes(n))return void this.debug.warn(`Disabled value of '${n}' for ${t}`)}if(k.element(r)||(r=s&&s.querySelector('[role="menu"]')),!k.element(r))return;this.elements.settings.buttons[t].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=Ct.getLabel.call(this,t,n);const a=r&&r.querySelector(`[value="${n}"]`);k.element(a)&&(a.checked=!0)},getLabel(t,e){switch(t){case"speed":return 1===e?xt.get("normal",this.config):`${e}&times;`;case"quality":if(k.number(e)){const t=xt.get(`qualityLabel.${e}`,this.config);return t.length?t:`${e}p`}return gt(e);case"captions":return Ot.getLabel.call(this);default:return null}},setQualityMenu(t){if(!k.element(this.elements.settings.panels.quality))return;const e="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');k.array(t)&&(this.options.quality=nt(t).filter(t=>this.config.quality.options.includes(t)));const s=!k.empty(this.options.quality)&&this.options.quality.length>1;if(Ct.toggleMenuButton.call(this,e,s),F(i),Ct.checkMenu.call(this),!s)return;const n=t=>{const e=xt.get(`qualityBadge.${t}`,this.config);return e.length?Ct.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=>{Ct.createMenuItem.call(this,{value:t,list:i,type:e,title:Ct.getLabel.call(this,"quality",t),badge:n(t)})}),Ct.updateSetting.call(this,e,i)},setCaptionsMenu(){if(!k.element(this.elements.settings.panels.captions))return;const t="captions",e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=Ot.getTracks.call(this),s=Boolean(i.length);if(Ct.toggleMenuButton.call(this,t,s),F(e),Ct.checkMenu.call(this),!s)return;const n=i.map((t,i)=>({value:i,checked:this.captions.toggled&&this.currentTrack===i,title:Ot.getLabel.call(this,t),badge:t.language&&Ct.createBadge.call(this,t.language.toUpperCase()),list:e,type:"language"}));n.unshift({value:-1,checked:!this.captions.toggled,title:xt.get("disabled",this.config),list:e,type:"language"}),n.forEach(Ct.createMenuItem.bind(this)),Ct.updateSetting.call(this,t,e)},setSpeedMenu(){if(!k.element(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=!k.empty(this.options.speed)&&this.options.speed.length>1;Ct.toggleMenuButton.call(this,t,i),F(e),Ct.checkMenu.call(this),i&&(this.options.speed.forEach(i=>{Ct.createMenuItem.call(this,{value:i,list:e,type:t,title:Ct.getLabel.call(this,"speed",i)})}),Ct.updateSetting.call(this,t,e))},checkMenu(){const{buttons:t}=this.elements.settings,e=!k.empty(t)&&Object.values(t).some(t=>!t.hidden);j(this.elements.settings.menu,!e)},focusFirstMenuItem(t,e=!1){if(this.elements.settings.popup.hidden)return;let i=t;k.element(i)||(i=Object.values(this.elements.settings.panels).find(t=>!t.hidden));const s=i.querySelector('[role^="menuitem"]');q.call(this,s,e)},toggleMenu(t){const{popup:e}=this.elements.settings,i=this.elements.buttons.settings;if(!k.element(e)||!k.element(i))return;const{hidden:s}=e;let n=s;if(k.boolean(t))n=t;else if(k.keyboardEvent(t)&&"Escape"===t.key)n=!1;else if(k.event(t)){const s=k.function(t.composedPath)?t.composedPath()[0]:t.target,r=e.contains(s);if(r||!r&&t.target!==i&&n)return}i.setAttribute("aria-expanded",n),j(e,!n),B(this.elements.container,this.config.classNames.menu.open,n),n&&k.keyboardEvent(t)?Ct.focusFirstMenuItem.call(this,null,!0):n||s||q.call(this,i,k.keyboardEvent(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 R(e),{width:i,height:s}},showMenuPanel(t="",e=!1){const i=this.elements.container.querySelector(`#plyr-settings-${this.id}-${t}`);if(!k.element(i))return;const s=i.parentNode,n=Array.from(s.children).find(t=>!t.hidden);if(X.transitions&&!X.reducedMotion){s.style.width=`${n.scrollWidth}px`,s.style.height=`${n.scrollHeight}px`;const t=Ct.getMenuSize.call(this,i),e=t=>{t.target===s&&["width","height"].includes(t.propertyName)&&(s.style.width="",s.style.height="",Q.call(this,s,_,e))};J.call(this,s,_,e),s.style.width=`${t.width}px`,s.style.height=`${t.height}px`}j(n,!0),j(i,!1),Ct.focusFirstMenuItem.call(this,i,e)},setDownloadUrl(){const t=this.elements.buttons.download;k.element(t)&&t.setAttribute("href",this.download)},create(t){const{bindMenuItemShortcuts:e,createButton:i,createProgress:s,createRange:n,createTime:r,setQualityMenu:a,setSpeedMenu:o,showMenuPanel:l}=Ct;this.elements.controls=null,k.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));const c=D("div",z(this.config.selectors.controls.wrapper));this.elements.controls=c;const u={class:"plyr__controls__item"};return nt(k.array(this.config.controls)?this.config.controls:[]).forEach(a=>{if("restart"===a&&c.appendChild(i.call(this,"restart",u)),"rewind"===a&&c.appendChild(i.call(this,"rewind",u)),"play"===a&&c.appendChild(i.call(this,"play",u)),"fast-forward"===a&&c.appendChild(i.call(this,"fast-forward",u)),"progress"===a){const e=D("div",{class:`${u.class} plyr__progress__container`}),i=D("div",z(this.config.selectors.progress));if(i.appendChild(n.call(this,"seek",{id:`plyr-seek-${t.id}`})),i.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const t=D("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"===a&&c.appendChild(r.call(this,"currentTime",u)),"duration"===a&&c.appendChild(r.call(this,"duration",u)),"mute"===a||"volume"===a){let{volume:e}=this.elements;if(k.element(e)&&c.contains(e)||(e=D("div",O({},u,{class:`${u.class} plyr__volume`.trim()})),this.elements.volume=e,c.appendChild(e)),"mute"===a&&e.appendChild(i.call(this,"mute")),"volume"===a&&!P.isIos&&!P.isIPadOS){const i={max:1,step:.05,value:this.config.volume};e.appendChild(n.call(this,"volume",O(i,{id:`plyr-volume-${t.id}`})))}}if("captions"===a&&c.appendChild(i.call(this,"captions",u)),"settings"===a&&!k.empty(this.config.settings)){const s=D("div",O({},u,{class:`${u.class} plyr__menu`.trim(),hidden:""}));s.appendChild(i.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${t.id}`,"aria-expanded":!1}));const n=D("div",{class:"plyr__menu__container",id:`plyr-settings-${t.id}`,hidden:""}),r=D("div"),a=D("div",{id:`plyr-settings-${t.id}-home`}),o=D("div",{role:"menu"});a.appendChild(o),r.appendChild(a),this.elements.settings.panels.home=a,this.config.settings.forEach(i=>{const s=D("button",O(z(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),J.call(this,s,"click",()=>{l.call(this,i,!1)});const n=D("span",null,xt.get(i,this.config)),a=D("span",{class:this.config.classNames.menu.value});a.innerHTML=t[i],n.appendChild(a),s.appendChild(n),o.appendChild(s);const c=D("div",{id:`plyr-settings-${t.id}-${i}`,hidden:""}),u=D("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});u.appendChild(D("span",{"aria-hidden":!0},xt.get(i,this.config))),u.appendChild(D("span",{class:this.config.classNames.hidden},xt.get("menuBack",this.config))),J.call(this,c,"keydown",t=>{"ArrowLeft"===t.key&&(t.preventDefault(),t.stopPropagation(),l.call(this,"home",!0))},!1),J.call(this,u,"click",()=>{l.call(this,"home",!1)}),c.appendChild(u),c.appendChild(D("div",{role:"menu"})),r.appendChild(c),this.elements.settings.buttons[i]=s,this.elements.settings.panels[i]=c}),n.appendChild(r),s.appendChild(n),c.appendChild(s),this.elements.settings.popup=n,this.elements.settings.menu=s}if("pip"===a&&X.pip&&c.appendChild(i.call(this,"pip",u)),"airplay"===a&&X.airplay&&c.appendChild(i.call(this,"airplay",u)),"download"===a){const t=O({},u,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(t.download="");const{download:e}=this.config.urls;!k.url(e)&&this.isEmbed&&O(t,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(i.call(this,"download",t))}"fullscreen"===a&&c.appendChild(i.call(this,"fullscreen",u))}),this.isHTML5&&a.call(this,pt.getQualityOptions.call(this)),o.call(this),c},inject(){if(this.config.loadSprite){const t=Ct.getIconUrl.call(this);t.cors&&Et(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 i,s=!0;if(k.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,e)),this.config.controls||(this.config.controls=[]),k.element(this.config.controls)||k.string(this.config.controls)?t=this.config.controls:(t=Ct.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Ot.getLabel.call(this)}),s=!1),s&&k.string(this.config.controls)&&(t=(t=>{let i=t;return Object.entries(e).forEach(([t,e])=>{i=mt(i,`{${t}}`,e)}),i})(t)),k.string(this.config.selectors.controls.container)&&(i=document.querySelector(this.config.selectors.controls.container)),k.element(i)||(i=this.elements.container),i[k.element(t)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",t),k.element(this.elements.controls)||Ct.findElements.call(this),!k.empty(this.elements.buttons)){const t=t=>{const e=this.config.classNames.controlPressed;t.setAttribute("aria-pressed","false"),Object.defineProperty(t,"pressed",{configurable:!0,enumerable:!0,get:()=>V(t,e),set(i=!1){B(t,e,i),t.setAttribute("aria-pressed",i?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(e=>{k.array(e)||k.nodeList(e)?Array.from(e).filter(Boolean).forEach(t):t(e)})}if(P.isEdge&&C(i),this.config.tooltips.controls){const{classNames:t,selectors:e}=this.config,i=`${e.controls.wrapper} ${e.labels} .${t.hidden}`,s=W.call(this,i);Array.from(s).forEach(t=>{B(t,this.config.classNames.hidden,!1),B(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(),n=document.createDocumentFragment();let r=null;const a=`${this.config.classNames.tooltip}--visible`,o=t=>B(r,a,t);i.forEach(t=>{const e=D("span",{class:this.config.classNames.marker},""),i=t.time/this.duration*100+"%";r&&(e.addEventListener("mouseenter",()=>{t.label||(r.style.left=i,r.innerHTML=t.label,o(!0))}),e.addEventListener("mouseleave",()=>{o(!1)})),e.addEventListener("click",()=>{this.currentTime=t.time}),e.style.left=i,n.appendChild(e)}),s.appendChild(n),this.config.tooltips.seek||(r=D("span",{class:this.config.classNames.tooltip},""),s.appendChild(r)),this.elements.markers={points:n,tip:r},this.elements.progress.appendChild(s)}};function Pt(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 At(t){const e=new URLSearchParams;return k.object(t)&&Object.entries(t).forEach(([t,i])=>{e.set(t,i)}),e}const Ot={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!X.textTracks)return void(k.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Ct.setCaptionsMenu.call(this));var t,e;if(k.element(this.elements.captions)||(this.elements.captions=D("div",z(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),t=this.elements.captions,e=this.elements.wrapper,k.element(t)&&k.element(e)&&e.parentNode.insertBefore(t,e.nextSibling)),P.isIE&&window.URL){const t=this.media.querySelectorAll("track");Array.from(t).forEach(t=>{const e=t.getAttribute("src"),i=Pt(e);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&St(e,"blob").then(e=>{t.setAttribute("src",window.URL.createObjectURL(e))}).catch(()=>{R(t)})})}const i=nt((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 n=this.storage.get("captions");if(k.boolean(n)||({active:n}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:n,language:s,languages:i}),this.isHTML5){const t=this.config.captions.update?"addtrack removetrack":"removetrack";J.call(this,this.media.textTracks,t,Ot.update.bind(this))}setTimeout(Ot.update.bind(this),0)},update(){const t=Ot.getTracks.call(this,!0),{active:e,language:i,meta:s,currentTrackNode:n}=this.captions,r=Boolean(t.find(t=>t.language===i));this.isHTML5&&this.isVideo&&t.filter(t=>
vendor: 5,155 bytes, line 2
2!s.get(t)).forEach(t=>{this.debug.log("Track added",t),s.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),J.call(this,t,"cuechange",()=>Ot.updateCues.call(this))}),(r&&this.language!==i||!t.includes(n))&&(Ot.setLanguage.call(this,i),Ot.toggle.call(this,e&&r)),this.elements&&B(this.elements.container,this.config.classNames.captions.enabled,!k.empty(t)),k.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Ct.setCaptionsMenu.call(this)},toggle(t,e=!0){if(!this.supported.ui)return;const{toggled:i}=this.captions,s=this.config.classNames.captions.active,n=k.nullOrUndefined(t)?!i:t;if(n!==i){if(e||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!e){const t=Ot.getTracks.call(this),e=Ot.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=e.language,void Ot.set.call(this,t.indexOf(e))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),B(this.elements.container,s,n),this.captions.toggled=n,Ct.updateSetting.call(this,"captions"),tt.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout(()=>{n&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(t,e=!0){const i=Ot.getTracks.call(this);if(-1!==t)if(k.number(t))if(t in i){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;const s=i[t],{language:n}=s||{};this.captions.currentTrackNode=s,Ct.updateSetting.call(this,"captions"),e||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),tt.call(this,this.media,"languagechange")}Ot.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&Ot.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else Ot.toggle.call(this,!1,e)},setLanguage(t,e=!0){if(!k.string(t))return void this.debug.warn("Invalid language argument",t);const i=t.toLowerCase();this.captions.language=i;const s=Ot.getTracks.call(this),n=Ot.findTrack.call(this,[i]);Ot.set.call(this,s.indexOf(n),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=Ot.getTracks.call(this),s=t=>Number((this.captions.meta.get(t)||{}).default),n=Array.from(i).sort((t,e)=>s(e)-s(t));let r;return t.every(t=>(r=n.find(e=>e.language===t),!r)),r||(e?n[0]:void 0)},getCurrentTrack(){return Ot.getTracks.call(this)[this.currentTrack]},getLabel(t){let e=t;return!k.track(e)&&X.textTracks&&this.captions.toggled&&(e=Ot.getCurrentTrack.call(this)),k.track(e)?k.empty(e.label)?k.empty(e.language)?xt.get("enabled",this.config):t.language.toUpperCase():e.label:xt.get("disabled",this.config)},updateCues(t){if(!this.supported.ui)return;if(!k.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!k.nullOrUndefined(t)&&!Array.isArray(t))return void this.debug.warn("updateCues: Invalid input",t);let e=t;if(!e){const t=Ot.getCurrentTrack.call(this);e=Array.from((t||{}).activeCues||[]).map(t=>t.getCueAsHTML()).map(vt)}const i=e.map(t=>t.trim()).join("\n");if(i!==this.elements.captions.innerHTML){F(this.elements.captions);const t=D("span",z(this.config.selectors.caption));t.innerHTML=i,this.elements.captions.appendChild(t),tt.call(this,this.media,"cuechange")}}},Lt={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.8/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",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"},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:[]}},It="picture-in-picture",Dt="inline",Nt={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Rt="audio",Ft="video",$t=()=>{};class zt{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):$t}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):$t}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):$t}}class jt{constructor(e){t(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;
vendor: 9,423 bytes, line 2
2k.element(t)&&(t.pressed=this.active);const e=this.target===this.player.media?this.target:this.player.elements.container;tt.call(this.player,e,this.active?"enterfullscreen":"exitfullscreen",!0)}),t(this,"toggleFallback",(t=!1)=>{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":"",B(this.target,this.player.config.classNames.fullscreen.fallback,t),P.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=k.string(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(P.isIos||P.isIPadOS||!this.active||"Tab"!==t.key)return;const e=document.activeElement,i=W.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[s]=i,n=i[i.length-1];e!==n||t.shiftKey?e===s&&t.shiftKey&&(n.focus(),t.preventDefault()):(s.focus(),t.preventDefault())}),t(this,"update",()=>{if(this.supported){let t;t=this.forceFallback?"Fallback (forced)":jt.nativeSupported?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");B(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),t(this,"enter",()=>{this.supported&&(P.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!jt.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?k.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),t(this,"exit",()=>{if(this.supported)if(P.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),st(this.player.play());else if(!jt.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!k.empty(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=jt.prefix,this.property=jt.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(H.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),J.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),J.call(this.player,this.player.elements.container,"dblclick",t=>{k.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),J.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return jt.nativeSupported&&!this.forceFallback}static get prefix(){if(k.function(document.exitFullscreen))return"";let t="";return["webkit","moz","ms"].some(e=>!(!k.function(document[`${e}ExitFullscreen`])&&!k.function(document[`${e}CancelFullScreen`])||(t=e,0))),t}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,jt.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||jt.nativeSupported||!P.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!jt.nativeSupported||this.forceFallback)return V(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 P.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function Bt(t,e=1){return new Promise((i,s)=>{const n=new Image,r=()=>{delete n.onload,delete n.onerror,(n.naturalWidth>=e?i:s)(n)};Object.assign(n,{onload:r,onerror:r,src:t})})}const Vt={addStyleHook(){B(this.elements.container,this.config.selectors.container.replace(".",""),!0),B(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 Vt.toggleNativeControls.call(this,!0);k.element(this.elements.controls)||(Ct.inject.call(this),this.listeners.controls()),Vt.toggleNativeControls.call(this),this.isHTML5&&Ot.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Ct.updateVolume.call(this),Ct.timeUpdate.call(this),Ct.durationUpdate.call(this),Vt.checkPlaying.call(this),B(this.elements.container,this.config.classNames.pip.supported,X.pip&&this.isHTML5&&this.isVideo),B(this.elements.container,this.config.classNames.airplay.supported,X.airplay&&this.isHTML5),B(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{tt.call(this,this.media,"ready")},0),Vt.setTitle.call(this),this.poster&&Vt.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&Ct.durationUpdate.call(this),this.config.mediaMetadata&&Ct.setMediaMetadata.call(this)},setTitle(){let t=xt.get("play",this.config);if(k.string(this.config.title)&&!k.empty(this.config.title)&&(t+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(e=>{e.setAttribute("aria-label",t)}),this.isEmbed){const t=U.call(this,"iframe");if(!k.element(t))return;const e=k.empty(this.config.title)?"video":this.config.title,i=xt.get("frameTitle",this.config);t.setAttribute("title",i.replace("{title}",e))}},togglePoster(t){B(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"),it.call(this).then(()=>Bt(t)).catch(e=>{throw t===this.poster&&Vt.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:""}),Vt.togglePoster.call(this,!0),t)))},checkPlaying(t){B(this.elements.container,this.config.classNames.playing,this.playing),B(this.elements.container,this.config.classNames.paused,this.paused),B(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",xt.get(this.playing?"pause":"play",this.config))}),k.event(t)&&"timeupdate"===t.type||Vt.toggleControls.call(this)},checkLoading(t){this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{B(this.elements.container,this.config.classNames.loading,this.loading),Vt.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=>!k.empty(t)&&k.string(t)&&t.startsWith("--plyr")).forEach(t=>{this.elements.container.style.setProperty(t,this.media.style.getPropertyValue(t)),this.media.style.removeProperty(t)}),k.empty(this.media.style)&&this.media.removeAttribute("style")}};class Ht{constructor(e){t(this,"firstTouch",()=>{const{player:t}=this,{elements:e}=t;t.touch=!0,B(e.container,t.config.classNames.isTouch,!0)}),t(this,"global",(t=!0)=>{const{player:e}=this;e.config.keyboard.global&&K.call(e,window,"keydown keyup",this.handleKey,t,!1),K.call(e,document.body,"click",this.toggleMenu,t),Z.call(e,document.body,"touchstart",this.firstTouch)}),t(this,"container",()=>{const{player:t}=this,{config:e,elements:i,timers:s}=t;!e.keyboard.global&&e.keyboard.focused&&J.call(t,i.container,"keydown keyup",this.handleKey,!1),J.call(t,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",e=>{const{controls:n}=i;n&&"enterfullscreen"===e.type&&(n.pressed=!1,n.hover=!1);let r=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Vt.toggleControls.call(t,!0),r=t.touch?3e3:2e3),clearTimeout(s.controls),s.controls=setTimeout(()=>Vt.toggleControls.call(t,!1),r)});const n=()=>
2{if(!t.isVimeo||t.config.vimeo.premium)return;const e=i.wrapper,{active:s}=t.fullscreen,[n,r]=ut.call(t),a=at(`aspect-ratio: ${n} / ${r}`);if(!s)return void(a?(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>n/r;a?(e.style.width=c?"auto":"100%",e.style.height=c?"100%":"auto"):(e.style.maxWidth=c?l/r*n+"px":null,e.style.margin=c?"0 auto":null)},r=()=>{clearTimeout(s.resized),s.resized=setTimeout(n,50)};J.call(t,i.container,"enterfullscreen exitfullscreen",e=>{const{target:s}=t.fullscreen;s===i.container&&(!t.isEmbed&&k.empty(t.config.ratio)||(n(),("enterfullscreen"===e.type?J:Q).call(t,window,"resize",r)))})}),t(this,"media",()=>{const{player:t}=this,{elements:e}=t;if(J.call(t,t.media,"timeupdate seeking seeked",e=>Ct.timeUpdate.call(t,e)),J.call(t,t.media,"durationchange loadeddata loadedmetadata",e=>Ct.durationUpdate.call(t,e)),J.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),J.call(t,t.media,"progress playing seeking seeked",e=>Ct.updateProgress.call(t,e)),J.call(t,t.media,"volumechange",e=>Ct.updateVolume.call(t,e)),J.call(t,t.media,"playing play pause ended emptied timeupdate",e=>Vt.checkPlaying.call(t,e)),J.call(t,t.media,"waiting canplay seeked playing",e=>Vt.checkLoading.call(t,e)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const i=U.call(t,`.${t.config.classNames.video}`);
vendor: 4,383 bytes, line 2
2if(!k.element(i))return;J.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,()=>{st(t.play())},"play")):this.proxy(s,()=>{st(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&J.call(t,e.wrapper,"contextmenu",t=>{t.preventDefault()},!1),J.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),J.call(t,t.media,"ratechange",()=>{Ct.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),J.call(t,t.media,"qualitychange",e=>{Ct.updateSetting.call(t,"quality",null,e.detail.quality)}),J.call(t,t.media,"ready qualitychange",()=>{Ct.setDownloadUrl.call(t)});const i=t.config.events.concat(["keyup","keydown"]).join(" ");J.call(t,t.media,i,i=>{let{detail:s={}}=i;"error"===i.type&&(s=t.media.error),tt.call(t,e.container,i.type,!0,s)})}),t(this,"proxy",(t,e,i)=>{const{player:s}=this,n=s.config.listeners[i];let r=!0;k.function(n)&&(r=n.call(s,t)),!1!==r&&k.function(e)&&e.call(s,t)}),t(this,"bind",(t,e,i,s,n=!0)=>{const{player:r}=this,a=r.config.listeners[s],o=k.function(a);J.call(r,t,e,t=>this.proxy(t,i,s),n&&!o)}),t(this,"controls",()=>{const{player:t}=this,{elements:e}=t,i=P.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach(e=>{this.bind(e,"click",()=>{st(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",()=>{tt.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(),Ct.toggleMenu.call(t,e)},null,!1),this.bind(e.buttons.settings,"keyup",e=>{[" ","Enter"].includes(e.key)&&("Enter"!==e.key?(e.preventDefault(),e.stopPropagation(),Ct.toggleMenu.call(t,e)):Ct.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(e.settings.menu,"keydown",e=>{"Escape"===e.key&&Ct.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(k.keyboardEvent(e)&&!["ArrowLeft","ArrowRight"].includes(e.key))return;t.lastSeekTime=Date.now();const n=i.hasAttribute(s),r=["mouseup","touchend","keyup"].includes(e.type);n&&r?(i.removeAttribute(s),st(t.play())):!r&&t.playing&&(i.setAttribute(s,""),t.pause())}),P.isIos){const e=W.call(t,'input[type="range"]');Array.from(e).forEach(t=>this.bind(t,i,t=>C(t.target)))}this.bind(e.inputs.seek,i,e=>{const i=e.currentTarget;let s=i.getAttribute("seek-value");k.empty(s)&&(s=i.value),i.removeAttribute("seek-value"),t.currentTime=s/i.max*t.duration},"seek"),this.bind(e.progress,"mouseenter mouseleave mousemove",e=>Ct.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)}),P.isWebKit&&Array.from(W.call(t,'input[type="range"]')).forEach(e=>{this.bind(e,"input",e=>Ct.updateRangeFill.call(t,e.target))}),t.config.toggleInvert&&!k.element(e.display.duration)&&this.bind(e.display.currentTime,"click",()=>{0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Ct.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=>
2!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;B(e.controls,i.classNames.noTransition,!0),Vt.toggleControls.call(t,!0),setTimeout(()=>{B(e.controls,i.classNames.noTransition,!1)},0);const n=this.touch?3e3:4e3;clearTimeout(s.controls),s.controls=setTimeout(()=>Vt.toggleControls.call(t,!1),n)}),this.bind(e.inputs.volume,"wheel",e=>{const i=e.webkitDirectionInvertedFromDevice,[s,n]=[e.deltaX,-e.deltaY].map(t=>i?-t:t),r=Math.sign(Math.abs(s)>Math.abs(n)?s:n);t.increaseVolume(r/50);const{volume:a}=t.media;(1===r&&a<1||-1===r&&a>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.firstTouch=this.firstTouch.bind(this)}handleKey(t){const{player:e}=this,{elements:i}=e,{key:s,type:n,altKey:r,ctrlKey:a,metaKey:o,shiftKey:l}=t,c="keydown"===n,u=c&&s===this.lastKey;var h;if(!(r||a||o||l)&&s)if(c){const n=document.activeElement;if(k.element(n)){const{editable:s}=e.config.selectors,{seek:r}=i.inputs;if(n!==r&&H(n,s))return;if(" "===t.key&&H(n,'button, [role^="menuitem"]'))return}switch([" ","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":u||(h=parseInt(s,10),e.currentTime=e.duration/10*h);break;case" ":case"k":u||st(e.togglePlay());break;case"ArrowUp":e.increaseVolume(.1);break;case"ArrowDown":e.decreaseVolume(.1);break;case"m":u||(e.muted=!e.muted);break;case"ArrowRight":e.forward();break;case"ArrowLeft":e.rewind();break;case"f":e.fullscreen.toggle();break;case"c":u||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){Ct.toggleMenu.call(this.player,t)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self&&self;var Wt=function(t,e){return t(e={exports:{}},e.exports),e.exports}(function(t,e){t.exports=function(){var t=function(){},e={},i={},s={};function n(t,e){t=t.push?t:[t];var n,r,a,o=[],l=t.length,c=l;for(n=function(t,i){i.length&&o.push(t),--c||e(o)};l--;)r=t[l],(a=i[r])?n(r,a):(s[r]=s[r]||[]).push(n)}function r(t,e){if(t){var n=s[t];if(i[t]=e,n)for(;n.length;)n[0](t,e),n.splice(0,1)}}function a(e,i){e.call&&(e={success:e}),i.length?(e.error||t)(i):(e.success||t)(e)}function o(e,i,s,n){var r,a,l=document,c=s.async,u=(s.numRetries||0)+1,h=s.before||t,d=e.replace(/[\?|#].*$/,""),p=e.replace(/^(css|img)!/,"");n=n||0,/(^css!|\.css$)/.test(d)?((a=l.createElement("link")).rel="stylesheet",a.href=p,(r="hideFocus"in a)&&a.relList&&(r=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(a=l.createElement("img")).src=p:((a=l.createElement("script")).src=e,a.async=void 0===c||c),a.onload=a.onerror=a.onbeforeload=function(t){var l=t.type[0];if(r)try{a.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((n+=1)<u)return o(e,i,s,n)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";i(e,l,t.defaultPrevented)},!1!==h(e,a)&&l.head.appendChild(a)}function l(t,e,i){var s,n,r=(t=t.push?t:[t]).length,a=r,l=[];for(s=function(t,i,s){if("e"==i&&l.push(t),"b"==i){if(!s)return;l.push(t)}--r||e(l)},n=0;n<a;n++)o(t[n],s,i)}function c(t,i,s){var n,o;if(i&&i.trim&&(n=i),o=(n?s:i)||{},n){if(n in e)throw"LoadJS";e[n]=!0}function c(e,i){l(t,function(t){a(o,t),e&&a({success:e,error:i},t),r(n,t)},o)}if(o.returnPromise)return new Promise(c);c()}return c.ready=function(t,e){return n(t,function(t){a(e,t)}),c},c.done=function(t){r(t,[])},c.reset=function(){e={},i={},s={}},c.isDefined=function(t){return t in e},c}()});function Ut(t){return new Promise((e,i)=>{Wt(t,{success:e,error:i})})}function qt(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,tt.call(this,this.media,t?"play":"pause"))}const Yt={setup(){const t=this;B(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,ht.call(t),k.object(window.Vimeo)?Yt.ready.call(t):Ut(t.config.urls.vimeo.sdk).then(()=>{Yt.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,...n}=e;let r=t.media.getAttribute("src"),a="";k.empty(r)?(r=t.media.getAttribute(t.config.attributes.embed.id),a=t.media.getAttribute(t.config.attributes.embed.hash)):a=function(t){const e=t.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return e&&5===e.length?e[4]:null}(r);const o=a?{h:a}:{};i&&Object.assign(n,{controls:!1,sidedock:!1});const l=At({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:t.config.playsinline,...o,...n}),c=(u=r,k.empty(u)?null:k.number(Number(u))?u:u.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:u);var u;const h=D("iframe"),d=ft(t.config.urls.vimeo.iframe,c,l);if(h.setAttribute("src",d),h.setAttribute("allowfullscreen",""),h.setAttribute("allow",["auto
2play","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),k.empty(s)||h.setAttribute("referrerPolicy",s),i||!e.customControls)h.setAttribute("data-poster",t.poster),t.media=$(h,t.media);else{const e=D("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});e.appendChild(h),t.media=$(e,t.media)}e.customControls||St(ft(t.config.urls.vimeo.api,d)).then(e=>{!k.empty(e)&&e.thumbnail_url&&Vt.setPoster.call(t,e.thumbnail_url).catch(()=>{})}),t.embed=new window.Vimeo.Player(h,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=()=>(qt.call(t,!0),t.embed.play()),t.media.pause=()=>(qt.call(t,!1),t.embed.pause()),t.media.stop=()=>{t.pause(),t.currentTime=0};let{currentTime:p}=t.media;Object.defineProperty(t.media,"currentTime",{get:()=>p,set(e){const{embed:i,media:s,paused:n,volume:r}=t,a=n&&!i.hasPlayed;s.seeking=!0,tt.call(t,s,"seeking"),Promise.resolve(a&&i.setVolume(0)).then(()=>i.setCurrentTime(e)).then(()=>a&&i.pause()).then(()=>a&&i.setVolume(r)).catch(()=>{})}});let f=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:()=>f,set(e){t.embed.setPlaybackRate(e).then(()=>{f=e,tt.call(t,t.media,"ratechange")}).catch(()=>{t.options.speed=[1]})}});let{volume:m}=t.config;Object.defineProperty(t.media,"volume",{get:()=>m,set(e){t.embed.setVolume(e).then(()=>{m=e,tt.call(t,t.media,"volumechange")})}});let{muted:g}=t.config;Object.defineProperty(t.media,"muted",{get:()=>g,set(e){const i=!!k.boolean(e)&&e;t.embed.setMuted(!!i||t.config.muted).then(()=>{g=i,tt.call(t,t.media,"volumechange")})}});let b,{loop:v}=t.config;Object.defineProperty(t.media,"loop",{get:()=>v,set(e){const i=k.boolean(e)?e:t.config.loop.active;t.embed.setLoop(i).then(()=>{v=i})}}),t.embed.getVideoUrl().then(e=>{b=e,Ct.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=dt(i,s),ht.call(this)}),t.embed.setAutopause(t.config.autopause).then(e=>{t.config.autopause=e}),t.embed.getVideoTitle().then(e=>{t.config.title=e,Vt.setTitle.call(this)}),t.embed.getCurrentTime().then(e=>{p=e,tt.call(t,t.media,"timeupdate")}),t.embed.getDuration().then(e=>{t.media.duration=e,tt.call(t,t.media,"durationchange")}),t.embed.getTextTracks().then(e=>{t.media.textTracks=e,Ot.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));Ot.updateCues.call(t,i)}),t.embed.on("loaded",()=>{t.embed.getPaused().then(e=>{qt.call(t,!e),e||tt.call(t,t.media,"playing")}),k.element(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)}),t.embed.on("bufferstart",()=>{tt.call(t,t.media,"waiting")}),t.embed.on("bufferend",()=>{tt.call(t,t.media,"playing")}),t.embed.on("play",()=>{qt.call(t,!0),tt.call(t,t.media,"playing")}),t.embed.on("pause",()=>{qt.call(t,!1)}),t.embed.on("timeupdate",e=>{t.media.seeking=!1,p=e.seconds,tt.call(t,t.media,"timeupdate")}),t.embed.on("progress",e=>{t.media.buffered=e.percent,tt.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&tt.call(t,t.media,"canplaythrough"),t.embed.getDuration().then(e=>{e!==t.media.duration&&(t.media.duration=e,tt.call(t,t.media,"durationchange"))})}),t.embed.on("seeked",()=>{t.media.seeking=!1,tt.call(t,t.media,"seeked")}),t.embed.on("ended",()=>{t.media.paused=!0,tt.call(t,t.media,"ended")}),t.embed.on("error",e=>{t.media.error=e,tt.call(t,t.media,"error")}),e.customControls&&setTimeout(()=>Vt.build.call(t),0)}};function Xt(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,tt.call(this,this.media,t?"play":"pause"))}function Gt(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const Kt={setup(){if(B(this.elements.wrapper,this.config.classNames.embed,!0),k.object(window.YT)&&k.function(window.YT.Player))Kt.ready.call(this);else{const t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{k.function(t)&&t(),Kt.ready.call(this)},Ut(this.config.urls.youtube.sdk).catch(t=>{this.debug.warn("YouTube API failed to load",t)})}},getTitle(t){St(ft(this.config.urls.youtube.api,t)).then(t=>{if(k.object(t)){const{title:e,height:i,width:s}=t;this.config.title=e,Vt.setTitle.call(this),this.embed.ratio=dt(s,i)}ht.call(this)}).catch(()=>{ht.call(this)})},ready(){const t=this,e=t.config.youtube,i=t.media&&t.media.getAttribute("id");if(!k.empty(i)&&i.startsWith("youtube-"))return;let s=t.media.getAttribute("src");k.empty(s)&&(s=t.media.getAttribute(this.config.attributes.embed.id));const n=(r=s,k.empty(r)?null:r.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:r);var r;const a=D("div",{id:`${t.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":e.customControls?t.poster:void 0});if(t.media=$(a,t.media),e.customControls){const e=t=>`https://i.ytimg.com/vi/${n}/${t}default.jpg`;Bt(e("maxres"),121).catch(()=>
vendor: 33,795 bytes, line 2
2Bt(e("sd"),121)).catch(()=>Bt(e("hq"))).then(e=>Vt.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:n,host:Gt(e),playerVars:O({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&e.customControls?0:1,disablekb:1,playsinline:t.config.playsinline&&!t.config.fullscreen.iosNative?1:0,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 invalid 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 occurred";t.media.error={code:i,message:s},tt.call(t,t.media,"error")}},onPlaybackRateChange(e){const i=e.target;t.media.playbackRate=i.getPlaybackRate(),tt.call(t,t.media,"ratechange")},onReady(i){if(k.function(t.media.play))return;const s=i.target;Kt.getTitle.call(t,n),t.media.play=()=>{Xt.call(t,!0),s.playVideo()},t.media.pause=()=>{Xt.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,tt.call(t,t.media,"seeking"),s.seekTo(e)}}),Object.defineProperty(t.media,"playbackRate",{get:()=>s.getPlaybackRate(),set(t){s.setPlaybackRate(t)}});let{volume:r}=t.config;Object.defineProperty(t.media,"volume",{get:()=>r,set(e){r=e,s.setVolume(100*r),tt.call(t,t.media,"volumechange")}});let{muted:a}=t.config;Object.defineProperty(t.media,"muted",{get:()=>a,set(e){const i=k.boolean(e)?e:a;a=i,s[i?"mute":"unMute"](),s.setVolume(100*r),tt.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),tt.call(t,t.media,"timeupdate"),tt.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)&&tt.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),tt.call(t,t.media,"canplaythrough"))},200),e.customControls&&setTimeout(()=>Vt.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,tt.call(t,t.media,"seeked")),i.data){case-1:tt.call(t,t.media,"timeupdate"),t.media.buffered=s.getVideoLoadedFraction(),tt.call(t,t.media,"progress");break;case 0:Xt.call(t,!1),t.media.loop?(s.stopVideo(),s.playVideo()):tt.call(t,t.media,"ended");break;case 1:e.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(Xt.call(t,!0),tt.call(t,t.media,"playing"),t.timers.playing=setInterval(()=>{tt.call(t,t.media,"timeupdate")},50),t.media.duration!==s.getDuration()&&(t.media.duration=s.getDuration(),tt.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),Xt.call(t,!1);break;case 3:tt.call(t,t.media,"waiting")}tt.call(t,t.elements.container,"statechange",!1,{code:i.data})}}})}},Jt={setup(){this.media?(B(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),B(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&B(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=D("div",{class:this.config.classNames.video}),L(this.media,this.elements.wrapper),this.elements.poster=D("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?pt.setup.call(this):this.isYouTube?Kt.setup.call(this):this.isVimeo&&Yt.setup.call(this)):this.debug.warn("No media element found!")}};class Qt{constructor(e){t(this,"load",()=>{this.enabled&&(k.object(window.google)&&k.object(window.google.ima)?this.ready():Ut(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=D("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)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const t=_t(Math.max(this.manager.getRemainingTime(),0)),e=`${xt.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",()=>{k.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(0!==t&&-1!==t&&t<this.player.duration){const e=this.player.elements.progress;if(k.element(e)){const i=100/this.player.duration*t,s=D("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=>{tt.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;k.empty(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,st(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];k.array(i)&&i.forEach(t=>{k.function(t)&&t.apply(this,e)})}),t(this,"on",(t,e)=>(k.array(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=>{k.nullOrUndefined(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&&(!k.empty(t.publisherId)||k.url(t.tagUrl))}get tagUrl(){const{config:t}=this;return k.url(t.tagUrl)?t.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${At({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 Zt(t=0,e=0,i=255){return Math.min(Math.max(t,e),i)}const te=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(k.number(i.startTime)){if(!k.empty(t.trim())&&k.empty(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},ee=(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 ie{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.listeners(),this.loaded=!0)})}),t(this,"getThumbnails",()=>new Promise(t=>{const{src:e}=this.player.config.previewThumbnails;if(k.empty(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(k.function(e))e(t=>{this.thumbnails=t,i()});else{const t=(k.string(e)?[e]:e).map(t=>this.getThumbnail(t));Promise.all(t).then(i)}})),t(this,"getThumbnail",t=>new Promise(e=>{St(t).then(i=>{const s={frames:te(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 n=new Image;n.onload=()=>{s.height=n.naturalHeight,s.width=n.naturalWidth,this.thumbnails.push(s),e()},n.src=s.urlPrefix+s.frames[0].text})})),t(this,"startMove",t=>{if(this.loaded&&k.event(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(),n=100/s.width*(t.pageX-s.left);this.seekTime=this.player.media.duration*(n/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=_t(this.seekTime);const r=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));r&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${r.label}<br>`)}this.showImageAtCurrentTime()}}),t(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),t(this,"startScrubbing",t=>{(k.nullOrUndefined(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):Z.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=D("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=D("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=D("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=D("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),k.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=D("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,n=i.frames[e],r=i.frames[e].text,a=s+r;if(this.currentImageElement&&this.currentImageElement.dataset.filename===r)this.showImage(this.currentImageElement,n,t,e,r,!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=a,i.dataset.index=e,i.dataset.filename=r,this.showingThumbFilename=r,this.player.debug.log(`Loading image: ${a}`),i.onload=()=>this.showImage(i,n,t,e,r,!0),this.loadingImage=i,this.removeOldImages(i)}}),t(this,"showImage",(t,e,i,s,n,r=!0)=>{this.player.debug.log(`Showing thumb: ${n}. num: ${s}. qual: ${i}. newimg: ${r}`),this.setImageSizeAndOffset(t,e),r&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(n)||this.loadedImages.push(n)),this.preloadNearby(s,!0).then(this.preloadNearby(s,!1)).then(this.getHigherQuality(i,t,e,n))}),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 n;n=e?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let r=!1;n.forEach(t=>{const e=t.text;if(e!==s&&!this.loadedImages.includes(e)){r=!0,this.player.debug.log(`Preloading thumb filename: ${e}`);const{urlPrefix:t}=this.thumbnails[0],s=t+e,n=new Image;n.src=s,n.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${e}`),this.loadedImages.includes(e)||this.loadedImages.push(e),i()}}}),r||i()}},300)})),t(this,"getHigherQuality",(t,e,i,s)=>{if(t<this.thumbnails.length-1){let n=e.naturalHeight;this.usingSprites&&(n=i.h),n<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,n=e.right-t.left-i.clientWidth-10,r=this.mousePosX-t.left-i.clientWidth/2,a=Zt(r,s,n);i.style.left=`${a}px`,i.style.setProperty("--preview-arrow-offset",r-a+"px")}),t(this,"setScrubbingContainerSize",()=>{const{width:t,height:e}=ee(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}=ee(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 se={insertElements(t,e){k.string(e)?N(t,this.media,{src:e}):k.array(e)&&e.forEach(e=>{N(t,this.media,e)})},change(t){A(t,"sources.length")?(pt.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],R(this.media),this.media=null,k.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:e,type:i}=t,[{provider:s=Nt.html5,src:n}]=e,r="html5"===s?i:"div",a="html5"===s?{}:{src:n};Object.assign(this,{provider:s,type:i,supported:X.check(i,s,this.config.playsinline),media:D(r,a)}),this.elements.container.appendChild(this.media),k.boolean(t.autoplay)&&(this.config.autoplay=t.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),k.empty(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","")),Vt.addStyleHook.call(this),this.isHTML5&&se.insertElements.call(this,"source",e),this.config.title=t.title,Jt.setup.call(this),this.isHTML5&&Object.keys(t).includes("tracks")&&se.insertElements.call(this,"track",t.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Vt.build.call(this),this.isHTML5&&this.media.load(),k.empty(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 ie(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class ne{constructor(e,i){if(t(this,"play",()=>k.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>st(this.media.play())),this.media.play()):null),t(this,"pause",()=>this.playing&&k.function(this.media.pause)?this.media.pause():null),t(this,"togglePlay",t=>(k.boolean(t)?t:!this.playing)?this.play():this.pause()),t(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):k.function(this.media.stop)&&this.media.stop()}),t(this,"restart",()=>{this.currentTime=0}),t(this,"rewind",t=>{this.currentTime-=k.number(t)?t:this.config.seekTime}),t(this,"forward",t=>{this.currentTime+=k.number(t)?t:this.config.seekTime}),t(this,"increaseVolume",t=>{const e=this.media.muted?0:this.volume;this.volume=e+(k.number(t)?t:0)}),t(this,"decreaseVolume",t=>{this.increaseVolume(-t)}),t(this,"airplay",()=>{X.airplay&&this.media.webkitShowPlaybackTargetPicker()}),t(this,"toggleControls",t=>{if(this.supported.ui&&!this.isAudio){const e=V(this.elements.container,this.config.classNames.hideControls),i=void 0===t?void 0:!t,s=B(this.elements.container,this.config.classNames.hideControls,i);if(s&&k.array(this.config.controls)&&this.config.controls.includes("settings")&&!k.empty(this.config.settings)&&Ct.toggleMenu.call(this,!1),s!==e){const t=s?"controlshidden":"controlsshown";tt.call(this,this.media,t)}return!s}return!1}),t(this,"on",(t,e)=>{J.call(this,this.elements.container,t,e)}),t(this,"once",(t,e)=>{Z.call(this,this.elements.container,t,e)}),t(this,"off",(t,e)=>{Q(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&&(R(this.elements.buttons.play),R(this.elements.captions),R(this.elements.controls),R(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),k.function(t)&&t()):(et.call(this),pt.cancelRequests.call(this),$(this.elements.original,this.elements.container),tt.call(this,this.elements.original,"destroyed",!0),k.function(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?(Vt.toggleNativeControls.call(this,!0),i()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&k.function(this.embed.destroy)&&this.embed.destroy(),i()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(i),setTimeout(i,200))}),t(this,"supports",t=>X.mime.call(this,t)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=X.touch,this.media=e,k.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||k.nodeList(this.media)||k.array(this.media))&&(this.media=this.media[0]),this.config=O({},Lt,ne.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 zt(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",X),k.nullOrUndefined(this.media)||!k.element(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(!X.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 n=this.media.tagName.toLowerCase();let r=null,a=null;switch(n){case"div":if(r=this.media.querySelector("iframe"),k.element(r)){if(a=Pt(r.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?Nt.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?Nt.vimeo:null}(a.toString()),this.elements.container=this.media,this.media=r,this.elements.container.className="",a.search.length){const t=["1","true"];t.includes(a.searchParams.get("autoplay"))&&(this.config.autoplay=!0),t.includes(a.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=t.includes(a.searchParams.get("playsinline")),this.config.youtube.hl=a.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(k.empty(this.provider)||!Object.values(Nt).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Ft;break;case"video":case"audio":this.type=n,this.provider=Nt.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=X.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new Ht(this),this.storage=new wt(this),this.media.plyr=this,k.element(this.elements.container)||(this.elements.container=D("div"),L(this.media,this.elements.container)),Vt.migrateStyles.call(this),Vt.addStyleHook.call(this),Jt.setup.call(this),this.config.debug&&J.call(this,this.elements.container,this.config.events.join(" "),t=>{this.debug.log(`event: ${t.type}`)}),this.fullscreen=new jt(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Vt.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Qt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>st(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new ie(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Nt.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Nt.youtube}get isVimeo(){return this.provider===Nt.vimeo}get isVideo(){return this.type===Ft}get isAudio(){return this.type===Rt}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=k.number(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 k.number(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=k.number(e)&&e!==1/0?e:0;return t||i}set volume(t){let e=t;k.string(e)&&(e=Number(e)),k.number(e)||(e=this.storage.get("volume")),k.number(e)||({volume:e}=this.config),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!k.empty(t)&&this.muted&&e>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(t){let e=t;k.boolean(e)||(e=this.storage.get("muted")),k.boolean(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;k.number(t)&&(e=t),k.number(e)||(e=this.storage.get("speed")),k.number(e)||(e=this.config.speed.selected);const{minimumSpeed:i,maximumSpeed:s}=this;e=Zt(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=[!k.empty(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(k.number),n=!0;if(!i.includes(s)){const t=rt(i,s);this.debug.warn(`Unsupported quality option: ${s}, using ${t} instead`),s=t,n=!1}e.selected=s,this.media.quality=s,n&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(t){const e=k.boolean(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){se.change.call(this,t)}get source(){return this.media.currentSrc}get download(){const{download:t}=this.config.urls;return k.url(t)?t:this.source}set download(t){k.url(t)&&(this.config.urls.download=t,Ct.setDownloadUrl.call(this))}set poster(t){this.isVideo?Vt.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=ct(ut.call(this));return k.array(t)?t.join(":"):t}set ratio(t){this.isVideo?k.string(t)&&lt(t)?(this.config.ratio=ct(t),ht.call(this)):this.debug.error(`Invalid aspect ratio specified (${t})`):this.debug.warn("Aspect ratio can only be set for video")}
2set autoplay(t){this.config.autoplay=k.boolean(t)?t:this.config.autoplay}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(t){Ot.toggle.call(this,t,!1)}set currentTrack(t){Ot.set.call(this,t,!1),Ot.setup.call(this)}get currentTrack(){const{toggled:t,currentTrack:e}=this.captions;return t?e:-1}set language(t){Ot.setLanguage.call(this,t,!1)}get language(){return(Ot.getCurrentTrack.call(this)||{}).language}set pip(t){if(!X.pip)return;const e=k.boolean(t)?t:!this.pip;k.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?It:Dt),k.function(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}get pip(){return X.pip?k.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===It: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 ie(this))}static supported(t,e){return X.check(t,e)}static loadSprite(t,e){return Et(t,e)}static setup(t,e={}){let i=null;return k.string(t)?i=Array.from(document.querySelectorAll(t)):k.nodeList(t)?i=Array.from(t):k.array(t)&&(i=t.filter(k.element)),k.empty(i)?null:i.map(t=>new ne(t,e))}}var re;return ne.defaults=(re=Lt,JSON.parse(JSON.stringify(re))),ne}())},4376:function(t,e,i){"use strict";var s=i(2195);t.exports=Array.isArray||function(t){return"Array"===s(t)}},4394:function(t,e,i){var s=i(2552),n=i(346);t.exports=function(t){return"symbol"==typeof t||n(t)&&"[object Symbol]"==s(t)}},4423:function(t,e,i){"use strict";var s=i(6518),n=i(9617).includes,r=i(9039),a=i(6469);s({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},4428:function(t,e,i){"use strict";var s=i(8227)("iterator"),n=!1;try{var r=0,a={next:function(){return{done:!!r++}},return:function(){n=!0}};a[s]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!n)return!1}catch(t){return!1}var i=!1;try{var r={};r[s]=function(){return{next:function(){return{done:i=!0}}}},t(r)}catch(t){}return i}},4488:function(t,e,i){"use strict";var s=i(7680),n=Math.floor,r=function(t,e){var i=t.length;if(i<8)for(var a,o,l=1;l<i;){for(o=l,a=t[l];o&&e(t[o-1],a)>0;)t[o]=t[--o];o!==l++&&(t[o]=a)}else for(var c=n(i/2),u=r(s(t,0,c),e),h=r(s(t,c),e),d=u.length,p=h.length,f=0,m=0;f<d||m<p;)t[f+m]=f<d&&m<p?e(u[f],h[m])<=0?u[f++]:h[m++]:f<d?u[f++]:h[m++];return t};t.exports=r},4495:function(t,e,i){"use strict";var s=i(9519),n=i(9039),r=i(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!n(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&s&&s<41})},4576:function(t,e,i){"use strict";var s=function(t){return t&&t.Math===Math&&t};t.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i.g&&i.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4598:function(t,e,i){"use strict";var s=i(9039);t.exports=function(t,e){var i=[][t];return!!i&&s(function(){i.call(null,e||function(){return 1},1)})}},4599:function(t,e,i){"use strict";var s=i(6518),n=i(4576),r=i(9472)(n.setTimeout,!0);s({global:!0,bind:!0,forced:n.setTimeout!==r},{setTimeout:r})},4606:function(t,e,i){"use strict";var s=i(6823),n=TypeError;t.exports=function(t,e){if(!delete t[e])throw new n("Cannot delete property "+s(e)+" of "+s(t))}},4659:function(t,e,i){"use strict";var s=i(3724),n=i(4913),r=i(6980);t.exports=function(t,e,i){s?n.f(t,e,r(0,i)):t[e]=i}},4685:function(t,e,i){"use strict";var s={};!function t(e,i,s,n){var r=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),a="function"==typeof Path2D&&"function"==typeof DOMMatrix,o=function(){if(!e.OffscreenCanvas)return!1;try{var t=new OffscreenCanvas(1,1),i=t.getContext("2d");i.fillRect(0,0,1,1);var s=t.transferToImageBitmap();i.createPattern(s,"no-repeat")}catch(t){return!1}return!0}();function l(){}function c(t){var s=i.exports.Promise,n=void 0!==s?s:e.Promise;return"function"==typeof n?new n(t):(t(l,l),null)}var u,h,d,p,f,m,g,b,v,y,x,w=(u=o,h=new Map,{transform:function(t){if(u)return t;if(h.has(t))return h.get(t);var e=new OffscreenCanvas(t.width,t.height);return e.getContext("2d").drawImage(t,0,0),h.set(t,e),e},clear:function(){h.clear()}}),S=(f=Math.floor(1e3/60),m={},g=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(d=function(t){var e=Math.random();return m[e]=requestAnimationFrame(function i(s){g===s||g+f-1<s?(g=s,delete m[e],t()):m[e]=requestAnimationFrame(i)}),e},p=function(t){m[t]&&cancelAnimationFrame(m[t])}):(d=function(t){return setTimeout(t,f)},p=function(t){return clearTimeout(t)}),{frame:d,cancel:p}),E=(y={},function(){if(b)return b;if(!s&&r){var e=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join("\n");try{b=new Worker(URL.createObjectURL(new Blob([e])))}catch(t){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",t),null}!function(t){function e(e,i){t.postMessage({options:e||{},callback:i})}t.init=function(e){var i=e.transferControlToOffscreen();t.postMessage({canvas:i},[i])},t.fire=function(i,s,n){if(v)return e(i,null),v;var r=Math.random().toString(36).slice(2);return v=c(function(s){function a(e){e.data.callback===r&&(delete y[r],t.removeEventListener("message",a),v=null,w.clear(),n(),s())}t.addEventListener("message",a),e(i,r),y[r]=a.bind(null,{data:{callback:r}})})},t.reset=function(){for(var e in t.postMessage({reset:!0}),y)y[e](),delete y[e]}}(b)}return b}),M={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function T(t,e,i){return function(t,e){return e?e(t):t}(t&&null!=t[e]?t[e]:M[e],i)}function k(t){return t<0?0:Math.floor(t)}function _(t,e){return Math.floor(Math.random()*(e-t))+t}function C(t){return parseInt(t,16)}function P(t){return t.map(A)}function A(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:C(e.substring(0,2)),g:C(e.substring(2,4)),b:C(e.substring(4,6))}}function O(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function L(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function I(t){var e=t.angle*(Math.PI/180),i=t.spread*(Math.PI/180);return{x:t.x,y:t.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*t.startVelocity+Math.random()*t.startVelocity,angle2D:-e+(.5*i-Math.random()*i),tiltAngle:(.5*Math.random()+.25)
2*Math.PI,color:t.color,shape:t.shape,tick:0,totalTicks:t.ticks,decay:t.decay,drift:t.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*t.gravity,ovalScalar:.6,scalar:t.scalar,flat:t.flat}}function D(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);var i=e.tick++/e.totalTicks,s=e.x+e.random*e.tiltCos,n=e.y+e.random*e.tiltSin,r=e.wobbleX+e.random*e.tiltCos,o=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-i)+")",t.beginPath(),a&&"path"===e.shape.type&&"string"==typeof e.shape.path&&Array.isArray(e.shape.matrix))t.fill(function(t,e,i,s,n,r,a){var o=new Path2D(t),l=new Path2D;l.addPath(o,new DOMMatrix(e));var c=new Path2D;return c.addPath(l,new DOMMatrix([Math.cos(a)*n,Math.sin(a)*n,-Math.sin(a)*r,Math.cos(a)*r,i,s])),c}(e.shape.path,e.shape.matrix,e.x,e.y,.1*Math.abs(r-s),.1*Math.abs(o-n),Math.PI/10*e.wobble));else if("bitmap"===e.shape.type){var l=Math.PI/10*e.wobble,c=.1*Math.abs(r-s),u=.1*Math.abs(o-n),h=e.shape.bitmap.width*e.scalar,d=e.shape.bitmap.height*e.scalar,p=new DOMMatrix([Math.cos(l)*c,Math.sin(l)*c,-Math.sin(l)*u,Math.cos(l)*u,e.x,e.y]);p.multiplySelf(new DOMMatrix(e.shape.matrix));var f=t.createPattern(w.transform(e.shape.bitmap),"no-repeat");f.setTransform(p),t.globalAlpha=1-i,t.fillStyle=f,t.fillRect(e.x-h/2,e.y-d/2,h,d),t.globalAlpha=1}else if("circle"===e.shape)t.ellipse?t.ellipse(e.x,e.y,Math.abs(r-s)*e.ovalScalar,Math.abs(o-n)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):function(t,e,i,s,n,r,a,o,l){t.save(),t.translate(e,i),t.rotate(r),t.scale(s,n),t.arc(0,0,1,a,o,l),t.restore()}(t,e.x,e.y,Math.abs(r-s)*e.ovalScalar,Math.abs(o-n)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI);else if("star"===e.shape)for(var m=Math.PI/2*3,g=4*e.scalar,b=8*e.scalar,v=e.x,y=e.y,x=5,S=Math.PI/x;x--;)v=e.x+Math.cos(m)*b,y=e.y+Math.sin(m)*b,t.lineTo(v,y),m+=S,v=e.x+Math.cos(m)*g,y=e.y+Math.sin(m)*g,t.lineTo(v,y),m+=S;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(n)),t.lineTo(Math.floor(r),Math.floor(o)),t.lineTo(Math.floor(s),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}function N(t,i){var a,o=!t,l=!!T(i||{},"resize"),u=!1,h=T(i,"disableForReducedMotion",Boolean),d=r&&!!T(i||{},"useWorker")?E():null,p=o?O:L,f=!(!t||!d)&&!!t.__confetti_initialized,m="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function g(e,i,r){for(var o=T(e,"particleCount",k),l=T(e,"angle",Number),u=T(e,"spread",Number),h=T(e,"startVelocity",Number),d=T(e,"decay",Number),f=T(e,"gravity",Number),m=T(e,"drift",Number),g=T(e,"colors",P),b=T(e,"ticks",Number),v=T(e,"shapes"),y=T(e,"scalar"),x=!!T(e,"flat"),E=function(t){var e=T(t,"origin",Object);return e.x=T(e,"x",Number),e.y=T(e,"y",Number),e}(e),M=o,C=[],A=t.width*E.x,O=t.height*E.y;M--;)C.push(I({x:A,y:O,angle:l,spread:u,startVelocity:h,color:g[M%g.length],shape:v[_(0,v.length)],ticks:b,decay:d,gravity:f,drift:m,scalar:y,flat:x}));return a?a.addFettis(C):(a=function(t,e,i,r,a){var o,l,u=e.slice(),h=t.getContext("2d"),d=c(function(e){function c(){o=l=null,h.clearRect(0,0,r.width,r.height),w.clear(),a(),e()}o=S.frame(function e(){!s||r.width===n.width&&r.height===n.height||(r.width=t.width=n.width,r.height=t.height=n.height),r.width||r.height||(i(t),r.width=t.width,r.height=t.height),h.clearRect(0,0,r.width,r.height),(u=u.filter(function(t){return D(h,t)})).length?o=S.frame(e):c()}),l=c});return{addFettis:function(t){return u=u.concat(t),d},canvas:t,promise:d,reset:function(){o&&S.cancel(o),l&&l()}}}(t,C,p,i,r),a.promise)}function b(i){var s=h||T(i,"disableForReducedMotion",Boolean),n=T(i,"zIndex",Number);if(s&&m)return c(function(t){t()});
2o&&a?t=a.canvas:o&&!t&&(t=function(t){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=t,e}(n),document.body.appendChild(t)),l&&!f&&p(t);var r={width:t.width,height:t.height};function b(){if(d){var e={getBoundingClientRect:function(){if(!o)return t.getBoundingClientRect()}};return p(e),void d.postMessage({resize:{width:e.width,height:e.height}})}r.width=r.height=null}function v(){a=null,l&&(u=!1,e.removeEventListener("resize",b)),o&&t&&(document.body.contains(t)&&document.body.removeChild(t),t=null,f=!1)}return d&&!f&&d.init(t),f=!0,d&&(t.__confetti_initialized=!0),l&&!u&&(u=!0,e.addEventListener("resize",b,!1)),d?d.fire(i,r,v):g(i,r,v)}return b.reset=function(){d&&d.reset(),a&&a.reset()},b}function R(){return x||(x=N(null,{useWorker:!0,resize:!0})),x}i.exports=function(){return R().apply(this,arguments)},i.exports.reset=function(){R().reset()},i.exports.create=N,i.exports.shapeFromPath=function(t){if(!a)throw new Error("path confetti are not supported in this browser");var e,i;"string"==typeof t?e=t:(e=t.path,i=t.matrix);var s=new Path2D(e),n=document.createElement("canvas").getContext("2d");if(!i){for(var r,o,l=1e3,c=l,u=l,h=0,d=0,p=0;p<l;p+=2)for(var f=0;f<l;f+=2)n.isPointInPath(s,p,f,"nonzero")&&(c=Math.min(c,p),u=Math.min(u,f),h=Math.max(h,p),d=Math.max(d,f));r=h-c,o=d-u;var m=Math.min(10/r,10/o);i=[m,0,0,m,-Math.round(r/2+c)*m,-Math.round(o/2+u)*m]}return{type:"path",path:e,matrix:i}},i.exports.shapeFromText=function(t){var e,i=1,s="#000000",n='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof t?e=t:(e=t.text,i="scalar"in t?t.scalar:i,n="fontFamily"in t?t.fontFamily:n,s="color"in t?t.color:s);var r=10*i,a=r+"px "+n,o=new OffscreenCanvas(r,r),l=o.getContext("2d");l.font=a;var c=l.measureText(e),u=Math.ceil(c.actualBoundingBoxRight+c.actualBoundingBoxLeft),h=Math.ceil(c.actualBoundingBoxAscent+c.actualBoundingBoxDescent),d=c.actualBoundingBoxLeft+2,p=c.actualBoundingBoxAscent+2;u+=4,h+=4,(l=(o=new OffscreenCanvas(u,h)).getContext("2d")).font=a,l.fillStyle=s,l.fillText(e,d,p);var f=1/i;return{type:"bitmap",bitmap:o.transferToImageBitmap(),matrix:[f,0,0,f,-u*f/2,-h*f/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),s,!1),e.A=s.exports;s.exports.create},4782:function(t,e,i){"use strict";var s=i(6518),n=i(4376),r=i(3517),a=i(34),o=i(5610),l=i(6198),c=i(5397),u=i(4659),h=i(8227),d=i(597),p=i(7680),f=d("slice"),m=h("species"),g=Array,b=Math.max;s({target:"Array",proto:!0,forced:!f},{slice:function(t,e){var i,s,h,d=c(this),f=l(d),v=o(t,f),y=o(void 0===e?f:e,f);if(n(d)&&(i=d.constructor,(r(i)&&(i===g||n(i.prototype))||a(i)&&null===(i=i[m]))&&(i=void 0),i===g||void 0===i))return p(d,v,y);for(s=new(void 0===i?g:i)(b(y-v,0)),h=0;v<y;v++,h++)v in d&&u(s,h,d[v]);return s.length=h,s}})},4840:function(t,e,i){var s="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;t.exports=s},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},4913:function(t,e,i){"use strict";var s=i(3724),n=i(5917),r=i(8686),a=i(8551),o=i(6969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";e.f=s?r?function(t,e,i){if(a(t),e=o(e),a(i),"function"==typeof t&&"prototype"===e&&"value"in i&&p in i&&!i[p]){var s=u(t,e);s&&s[p]&&(t[e]=i.value,i={configurable:d in i?i[d]:s[d],enumerable:h in i?i[h]:s[h],writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(a(t),e=o(e),a(i),n)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},5031:function(t,e,i){"use strict";var s=i(7751),n=i(9504),r=i(8480),a=i(3717),o=i(8551),l=n([].concat);t.exports=s("Reflect","ownKeys")||function(t){var e=r.f(o(t)),i=a.f;return i?l(e,i(t)):e}}
vendor: 15,588 bytes, line 2
2,5213:function(t,e,i){"use strict";var s=i(4576),n=i(9039),r=s.RegExp,a=!n(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},i="",s=t?"dgimsy":"gimsy",n=function(t,s){Object.defineProperty(e,t,{get:function(){return i+=s,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(a.hasIndices="d"),a)n(o,a[o]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(e)!==s||i!==s});t.exports={correct:a}},5397:function(t,e,i){"use strict";var s=i(7055),n=i(7750);t.exports=function(t){return s(n(t))}},5440:function(t,e,i){"use strict";var s=i(8745),n=i(9565),r=i(9504),a=i(9228),o=i(9039),l=i(8551),c=i(4901),u=i(34),h=i(1291),d=i(8014),p=i(655),f=i(7750),m=i(7829),g=i(5966),b=i(2478),v=i(1034),y=i(6682),x=i(8227)("replace"),w=Math.max,S=Math.min,E=r([].concat),M=r([].push),T=r("".indexOf),k=r("".slice),_=function(t){return void 0===t?t:String(t)},C="$0"==="a".replace(/./,"$0"),P=!!/./[x]&&""===/./[x]("a","$0");a("replace",function(t,e,i){var r=P?"$":"$0";return[function(t,i){var s=f(this),r=u(t)?g(t,x):void 0;return r?n(r,t,s,i):n(e,p(s),t,i)},function(t,n){var a=l(this),o=p(t);if("string"==typeof n&&-1===T(n,r)&&-1===T(n,"$<")){var u=i(e,a,o,n);if(u.done)return u.value}var f=c(n);f||(n=p(n));var g,x=p(v(a)),C=-1!==T(x,"g");C&&(g=-1!==T(x,"u"),a.lastIndex=0);for(var P,A=[];null!==(P=y(a,o))&&(M(A,P),C);){""===p(P[0])&&(a.lastIndex=m(o,d(a.lastIndex),g))}for(var O="",L=0,I=0;I<A.length;I++){for(var D,N=p((P=A[I])[0]),R=w(S(h(P.index),o.length),0),F=[],$=1;$<P.length;$++)M(F,_(P[$]));var z=P.groups;if(f){var j=E([N],F,R,o);void 0!==z&&M(j,z),D=p(s(n,void 0,j))}else D=b(N,o,R,F,z,n);R>=L&&(O+=k(o,L,R)+D,L=R+N.length)}return O+k(o,L)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!C||P)},5506:function(t,e,i){"use strict";var s=i(6518),n=i(2357).entries;s({target:"Object",stat:!0},{entries:function(t){return n(t)}})},5548:function(t,e,i){"use strict";var s=i(3517),n=i(6823),r=TypeError;t.exports=function(t){if(s(t))return t;throw new r(n(t)+" is not a constructor")}},5575:function(t,e,i){"use strict";var s=i(6518),n=i(4576),r=i(9472)(n.setInterval,!0);s({global:!0,bind:!0,forced:n.setInterval!==r},{setInterval:r})},5610:function(t,e,i){"use strict";var s=i(1291),n=Math.max,r=Math.min;t.exports=function(t,e){var i=s(t);return i<0?n(i+e,0):r(i,e)}},5700:function(t,e,i){"use strict";var s=i(511),n=i(8242);s("toPrimitive"),n()},5745:function(t,e,i){"use strict";var s=i(7629);t.exports=function(t,e){return s[t]||(s[t]=e||{})}},5746:function(t,e,i){"use strict";var s=i(9565),n=i(9228),r=i(8551),a=i(34),o=i(7750),l=i(3470),c=i(655),u=i(5966),h=i(6682);n("search",function(t,e,i){return[function(e){var i=o(this),n=a(e)?u(e,t):void 0;return n?s(n,e,i):new RegExp(e)[t](c(i))},function(t){var s=r(this),n=c(t),a=i(e,s,n);if(a.done)return a.value;var o=s.lastIndex;l(o,0)||(s.lastIndex=0);var u=h(s,n);return l(s.lastIndex,o)||(s.lastIndex=o),null===u?-1:u.index}]})},5749:function(t,e,i){"use strict";var s=i(788),n=TypeError;t.exports=function(t){if(s(t))throw new n("The method doesn't accept regular expressions");return t}},5806:function(t,e,i){"use strict";i(7764);var s,n=i(6518),r=i(3724),a=i(7416),o=i(4576),l=i(6080),c=i(9504),u=i(6840),h=i(2106),d=i(679),p=i(9297),f=i(4213),m=i(7916),g=i(7680),b=i(8183).codeAt,v=i(6098),y=i(655),x=i(687),w=i(2812),S=i(8406),E=i(1181),M=E.set,T=E.getterFor("URL"),k=S.URLSearchParams,_=S.getState,C=o.URL,P=o.TypeError,A=o.parseInt,O=Math.floor,L=Math.pow,I=c("".charAt),D=c(/./.exec),N=c([].join),R=c(1.1.toString),F=c([].pop),$=c([].push),z=c("".replace),j=c([].shift),B=c("".split),V=c("".slice),H=c("".toLowerCase),W=c([].unshift),U="Invalid scheme",q="Invalid host",Y="Invalid port",X=/[a-z]/i,G=/[\d+-.a-z]/i,K=/\d/,J=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,st=/^[\u0000-\u0020]+/,nt=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,rt=/[\t\n\r]/g,at=function(t){var e,i,s,n;if("number"==typeof t){for(e=[],i=0;i<4;i++)W(e,t%256),t=O(t/256);return N(e,".")}if("object"==typeof t){for(e="",s=function(t){for(var e=null,i=1,s=null,n=0,r=0;r<8;r++)0!==t[r]?(n>i&&(e=s,i=n),s=null,n=0):(null===s&&(s=r),++n);return n>i?s:e}(t),i=0;i<8;i++)n&&0===t[i]||(n&&(n=!1),s===i?(e+=i?":":"::",n=!0):(e+=R(t[i],16),i<7&&(e+=":")));return"["+e+"]"}return t},ot={},lt=f({},ot,{" ":1,'"':1,"<":1,">":1,"`":1}),ct=f({},lt,{"#":1,"?":1,"{":1,"}":1}),ut=f({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ht=function(t,e){var i=b(t,0);return i>32&&i<127&&!p(e,t)?t:encodeURIComponent(t)},dt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pt=function(t,e){var i;return 2===t.length&&D(X,I(t,0))&&(":"===(i=I(t,1))||!e&&"|"===i)},ft=function(t){var e;return t.length>1&&pt(V(t,0,2))&&(2===t.length||"/"===(e=I(t,2))||"\\"===e||"?"===e||"#"===e)},mt=function(t){return"."===t||"%2e"===H(t)},gt=function(t){return".."===(t=H(t))||"%2e."===t||".%2e"===t||"%2e%2e"===t},bt={},vt={},yt={},xt={},wt={},St={},Et={},Mt={},Tt={},kt={},_t={},Ct={},Pt={},At={},Ot={},Lt={},It={},Dt={},Nt={},Rt={},Ft={},$t=function(t,e,i){var s,n,r,a=y(t);if(e){if(n=this.parse(a))throw new P(n);this.searchParams=null}else{if(void 0!==i&&(s=new $t(i,!0)),n=this.parse(a,null,s))throw new P(n);(r=_(new k)).bindURL(this),this.searchParams=r}};$t.prototype={type:"URL",parse:function(t,e,i){var n,r,a,o,l=this,c=e||bt,u=0,h="",d=!1,f=!1,b=!1;for(t=y(t),e||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,t=z(t,st,""),t=z(t,nt,"$1")),t=z(t,rt,""),n=m(t);u<=n.length;){switch(r=n[u],c){case bt:if(!r||!D(X,r)){if(e)return U;c=yt;continue}h+=H(r),c=vt;break;case vt:if(r&&(D(G,r)||"+"===r||"-"===r||"."===r))h+=H(r);else{if(":"!==r){if(e)return U;h="",c=yt,u=0;continue}if(e&&(l.isSpecial()!==p(dt,h)||"file"===h&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=h,e)return void(l.isSpecial()&&dt[l.scheme]===l.port&&(l.port=null));h="","file"===l.scheme?c=At:l.isSpecial()&&i&&i.scheme===l.scheme?c=xt:l.isSpecial()?c=Mt:"/"===n[u+1]?(c=wt,u++):(l.cannotBeABaseURL=!0,$(l.path,""),c=Nt)}break;case yt:if(!i||i.cannotBeABaseURL&&"#"!==r)return U;if(i.cannotBeABaseURL&&"#"===r){l.scheme=i.scheme,l.path=g(i.path),l.query=i.query,l.fragment="",l.cannotBeABaseURL=!0,c=Ft;break}c="file"===i.scheme?At:St;continue;case xt:if("/"!==r||"/"!==n[u+1]){c=St;continue}c=Tt,u++;break;case wt:if("/"===r){c=kt;break}c=Dt;continue;case St:if(l.scheme=i.scheme,r===s)l.username=i.username,l.password=i.password,l.host=i.host,l.port=i.port,l.path=g(i.path),l.query=i.query;else if("/"===r||"\\"===r&&l.isSpecial())c=Et;else if("?"===r)l.username=i.username,l.password=i.password,l.host=i.host,l.port=i.port,l.path=g(i.path),l.query="",c=Rt;else{if("#"!==r){l.username=i.username,l.password=i.password,l.host=i.host,l.port=i.port,l.path=g(i.path),l.path.length--,c=Dt;continue}l.username=i.username,l.password=i.password,l.host=i.host,l.port=i.port,l.path=g(i.path),l.query=i.query,l.fragment="",c=Ft}break;case Et:if(!l.isSpecial()||"/"!==r&&"\\"!==r){if("/"!==r){l.username=i.username,l.password=i.password,l.host=i.host,l.port=i.port,c=Dt;continue}c=kt}else c=Tt;break;case Mt:if(c=Tt,"/"!==r||"/"!==I(h,u+1))continue;u++;break;case Tt:if("/"!==r&&"\\"!==r){c=kt;continue}break;case kt:if("@"===r){d&&(h="%40"+h),d=!0,a=m(h);for(var v=0;v<a.length;v++){var x=a[v];if(":"!==x||b){var w=ht(x,ut);b?l.password+=w:l.username+=w}else b=!0}h=""}else if(r===s||"/"===r||"?"===r||"#"===r||"\\"===r&&l.isSpecial()){if(d&&""===h)return"Invalid authority";u-=m(h).length+1,h="",c=_t}else h+=r;break;case _t:case Ct:if(e&&"file"===l.scheme){c=Lt;continue}if(":"!==r||f){if(r===s||"/"===r||"?"===r||"#"===r||"\\"===r&&l.isSpecial()){if(l.isSpecial()&&""===h)return q;if(e&&""===h&&(l.includesCredentials()||null!==l.port))return;if(o=l.parseHost(h))return o;if(h="",c=It,e)return;continue}"["===r?f=!0:"]"===r&&(f=!1),h+=r}else{if(""===h)return q;if(o=l.parseHost(h))return o;if(h="",c=Pt,e===Ct)return}break;case Pt:if(!D(K,r)){if(r===s||"/"===r||"?"===r||"#"===r||"\\"===r&&l.isSpecial()||e){if(""!==h){var S=A(h,10);if(S>65535)return Y;l.port=l.isSpecial()&&S===dt[l.scheme]?null:S,h=""}if(e)return;c=It;continue}return Y}h+=r;break;case At:if(l.scheme="file","/"===r||"\\"===r)c=Ot;else{if(!i||"file"!==i.scheme){c=Dt;continue}switch(r){case s:l.host=i.host,l.path=g(i.path),l.query=i.query;break;case"?":l.host=i.host,l.path=g(i.path),l.query="",c=Rt;break;case"#":l.host=i.host,l.path=g(i.path),l.query=i.query,l.fragment="",c=Ft;break;default:ft(N(g(n,u),""))||(l.host=i.host,l.path=g(i.path),l.shortenPath()),c=Dt;continue}}break;case Ot:if("/"===r||"\\"===r){c=Lt;break}i&&"file"===i.scheme&&!ft(N(g(n,u),""))&&(pt(i.path[0],!0)?$(l.path,i.path[0]):l.host=i.host),c=Dt;continue;case Lt:if(r===s||"/"===r||"\\"===r||"?"===r||"#"===r){if(!e&&pt(h))c=Dt;else if(""===h){if(l.host="",e)return;c=It}else{if(o=l.parseHost(h))return o;if("localhost"===l.host&&(l.host=""),e)return;h="",c=It}continue}h+=r;break;case It:if(l.isSpecial()){if(c=Dt,"/"!==r&&"\\"!==r)continue}else if(e||"?"!==r)if(e||"#"!==r){if(r!==s&&(c=Dt,"/"!==r))continue}else l.fragment="",c=Ft;else l.query="",c=Rt;break;case Dt:if(r===s||"/"===r||"\\"===r&&l.isSpecial()||!e&&("?"===r||"#"===r)){if(gt(h)?(l.shortenPath(),"/"===r||"\\"===r&&l.isSpecial()||$(l.path,"")):mt(h)?"/"===r||"\\"===r&&l.isSpecial()||$(l.path,""):("file"===l.scheme&&!l.path.length&&pt(h)&&(l.host&&(l.host=""),h=I(h,0)+":"),$(l.path,h)),h="","file"===l.scheme&&(r===s||"?"===r||"#"===r))for(;l.path.length>1&&""===l.path[0];)j(l.path);"?"===r?(l.query="",c=Rt):"#"===r&&(l.fragment="",c=Ft)}else h+=ht(r,ct);break;case Nt:"?"===r?(l.query="",c=Rt):"#"===r?(l.fragment="",c=Ft):r!==s&&(l.path[0]+=ht(r,ot));break;case Rt:e||"#"!==r?r!==s&&("'"===r&&l.isSpecial()?l.query+="%27":l.query+="#"===r?"%23":ht(r,ot)):(l.fragment="",c=Ft);break;case Ft:r!==s&&(l.fragment+=ht(r,lt))}u++}},parseHost:function(t){var e,i,s;if("["===I(t,0)){if("]"!==I(t,t.length-1))return q;if(e=function(t){var e,i,s,n,r,a,o,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,d=function(){return I(t,h)};if(":"===d()){if(":"!==I(t,1))return;h+=2,u=++c}for(;d();){if(8===c)return;if(":"!==d()){for(e=i=0;i<4&&D(tt,d());)e=16*e+A(d(),16),h++,i++;if("."===d()){if(0===i)return;if(h-=i,c>6)return;for(s=0;d();){if(n=null,s>0){if(!("."===d()&&s<4))return;h++}if(!D(K,d()))return;for(;D(K,d());){if(r=A(d(),10),null===n)n=r;else{if(0===n)return;n=10*n+r}if(n>255)return;h++}l[c]=256*l[c]+n,2!==++s&&4!==s||c++}if(4!==s)return;break}if(":"===d()){if(h++,!d())return}else if(d())return;l[c++]=e}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(a=c-u,c=7;0!==c&&a>0;)o=l[c],l[c--]=l[u+a-1],l[u+--a]=o;else if(8!==c)return;return l}(V(t,1,-1)),!e)return q;this.host=e}else if(this.isSpecial()){if(t=v(t),D(et,t))return q;if(e=function(t){var e,i,s,n,r,a,o,l=B(t,".");if(l.length&&""===l[l.length-1]&&l.length--,(e=l.length)>4)return t;for(i=[],s=0;s<e;s++){if(""===(n=l[s]))return t;if(r=10,n.length>1&&"0"===I(n,0)&&(r=D(J,n)?16:8,n=V(n,8===r?1:2)),""===n)a=0;else{if(!D(10===r?Z:8===r?Q:tt,n))return t;a=A(n,r)}$(i,a)}for(s=0;s<e;s++)if(a=i[s],s===e-1){if(a>=L(256,5-e))return null}else if(a>255)return null;for(o=F(i),s=0;s<i.length;s++)o+=i[s]*L(256,3-s);return o}(t),null===e)return q;this.host=e}else{if(D(it,t))return q;for(e="",i=m(t),s=0;s<i.length;s++)e+=ht(i[s],ot);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(dt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&pt(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,i=t.username,s=t.password,n=t.host,r=t.port,a=t.path,o=t.query,l=t.fragment,c=e+":";return null!==n?(c+="//",t.includesCredentials()&&(c+=i+(s?":"+s:"")+"@"),c+=at(n),null!==r&&(c+=":"+r)):"file"===e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+N(a,"/"):"",null!==o&&(c+="?"+o),null!==l&&(c+="#"+l),c},setHref:function(t){var e=this.parse(t);if(e)throw new P(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new zt(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(y(t)+":",bt)},getUsername:function(){return this.username},setUsername:function(t){var e=m(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<e.length;i++)this.username+=ht(e[i],ut)}},getPassword:function(){return this.password},setPassword:function(t){var e=m(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<e.length;i++)this.password+=ht(e[i],ut)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,_t)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Ct)},getPort:function(){var t=this.port;return null===t?"":y(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=y(t))?this.port=null:this.parse(t,Pt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+N(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,It))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=y(t))?this.query=null:("?"===I(t,0)&&(t=V(t,1)),this.query="",this.parse(t,Rt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=y(t))?("#"===I(t,0)&&(t=V(t,1)),this.fragment="",this.parse(t,Ft)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var zt=function(t){var e=d(this,jt),i=w(arguments.length,1)>1?arguments[1]:void 0,s=M(e,new $t(t,!1,i));r||(e.href=s.serialize(),e.origin=s.getOrigin(),e.protocol=s.getProtocol(),e.username=s.getUsername(),e.password=s.getPassword(),e.host=s.getHost(),e.hostname=s.getHostname(),e.port=s.getPort(),e.pathname=s.getPathname(),e.search=s.getSearch(),e.searchParams=s.getSearchParams(),e.hash=s.getHash())},jt=zt.prototype,Bt=function(t,e){return{get:function(){return T(this)[t]()},set:e&&function(t){return T(this)[e](t)},configurable:!0,enumerable:!0}};if(r&&(h(jt,"href",Bt("serialize","setHref")),h(jt,"origin",Bt("getOrigin")),h(jt,"protocol",Bt("getProtocol","setProtocol")),h(jt,"username",Bt("getUsername","setUsername")),h(jt,"password",Bt("getPassword","setPassword")),h(jt,"host",Bt("getHost","setHost")),h(jt,"hostname",Bt("getHostname","setHostname")),h(jt,"port",Bt("getPort","setPort")),h(jt,"pathname",Bt("getPathname","setPathname")),h(jt,"search",Bt("getSearch","setSearch")),h(jt,"searchParams",Bt("getSearchParams")),h(jt,"hash",Bt("getHash","setHash"))),u(jt,"toJSON",function(){return T(this).serialize()},{enumerable:!0}),u(jt,"toString",function(){return T(this).serialize()},{enumerable:!0}),C){var Vt=C.createObjectURL,Ht=C.revokeObjectURL;Vt&&u(zt,"createObjectURL",l(Vt,C)),Ht&&u(zt,"revokeObjectURL",l(Ht,C))}x(zt,"URL"),n({global:!0,constructor:!0,forced:!a,sham:!r},{URL:zt})},5810:function(t,e,i){"use strict";var s=i(34),n=i(1181).get;
2t.exports=function(t){if(!s(t))return!1;var e=n(t);return!!e&&"RawJSON"===e.type}},5917:function(t,e,i){"use strict";var s=i(3724),n=i(9039),r=i(4055);t.exports=!s&&!n(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},5966:function(t,e,i){"use strict";var s=i(9306),n=i(4117);t.exports=function(t,e){var i=t[e];return n(i)?void 0:s(i)}},6031:function(t,e,i){"use strict";i(5575),i(4599)},6034:function(t,e,i){"use strict";var s=i(6518),n=i(2357).values;s({target:"Object",stat:!0},{values:function(t){return n(t)}})},6043:function(t,e,i){"use strict";var s=i(9306),n=TypeError,r=function(t){var e,i;this.promise=new t(function(t,s){if(void 0!==e||void 0!==i)throw new n("Bad Promise constructor");e=t,i=s}),this.resolve=s(e),this.reject=s(i)};t.exports.f=function(t){return new r(t)}},6080:function(t,e,i){"use strict";var s=i(7476),n=i(9306),r=i(616),a=s(s.bind);t.exports=function(t,e){return n(t),void 0===e?t:r?a(t,e):function(){return t.apply(e,arguments)}}},6098:function(t,e,i){"use strict";var s=i(9504),n=2147483647,r=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",l=RangeError,c=s(a.exec),u=Math.floor,h=String.fromCharCode,d=s("".charCodeAt),p=s([].join),f=s([].push),m=s("".replace),g=s("".split),b=s("".toLowerCase),v=function(t){return t+22+75*(t<26)},y=function(t,e,i){var s=0;for(t=i?u(t/700):t>>1,t+=u(t/e);t>455;)t=u(t/35),s+=36;return u(s+36*t/(t+38))},x=function(t){var e=[];t=function(t){for(var e=[],i=0,s=t.length;i<s;){var n=d(t,i++);if(n>=55296&&n<=56319&&i<s){var r=d(t,i++);56320==(64512&r)?f(e,((1023&n)<<10)+(1023&r)+65536):(f(e,n),i--)}else f(e,n)}return e}(t);var i,s,r=t.length,a=128,c=0,m=72;for(i=0;i<t.length;i++)(s=t[i])<128&&f(e,h(s));var g=e.length,b=g;for(g&&f(e,"-");b<r;){var x=n;for(i=0;i<t.length;i++)(s=t[i])>=a&&s<x&&(x=s);var w=b+1;if(x-a>u((n-c)/w))throw new l(o);for(c+=(x-a)*w,a=x,i=0;i<t.length;i++){if((s=t[i])<a&&++c>n)throw new l(o);if(s===a){for(var S=c,E=36;;){var M=E<=m?1:E>=m+26?26:E-m;if(S<M)break;var T=S-M,k=36-M;f(e,h(v(M+T%k))),S=u(T/k),E+=36}f(e,h(v(S))),m=y(c,w,b===g),c=0,b++}}c++,a++}return p(e,"")};t.exports=function(t){var e,i,s=[],n=g(m(b(t),a,"."),".");for(e=0;e<n.length;e++)i=n[e],f(s,c(r,i)?"xn--"+x(i):i);return p(s,".")}},6099:function(t,e,i){"use strict";var s=i(2140),n=i(6840),r=i(3179);s||n(Object.prototype,"toString",r,{unsafe:!0})},6119:function(t,e,i){"use strict";var s=i(5745),n=i(3392),r=s("keys");t.exports=function(t){return r[t]||(r[t]=n(t))}},6193:function(t,e,i){"use strict";var s=i(4215);t.exports="NODE"===s},6198:function(t,e,i){"use strict";var s=i(8014);t.exports=function(t){return s(t.length)}},6269:function(t){"use strict";t.exports={}},6279:function(t,e,i){"use strict";var s=i(6840);t.exports=function(t,e,i){for(var n in e)s(t,n,e[n],i);return t}},6319:function(t,e,i){"use strict";var s=i(8551),n=i(9539);t.exports=function(t,e,i,r){try{return r?e(s(i)[0],i[1]):e(i)}catch(e){n(t,"throw",e)}}},6348:function(t,e){var i,s,n,r;r=function(){var t={__esModule:!0};t.Routing=t.Router=void 0;var e=function(){function e(t,e){this.context_=t||{base_url:"",prefix:"",host:"",port:"",scheme:"",locale:""},this.setRoutes(e||{})}return e.getInstance=function(){return t.Routing},e.setData=function(t){e.getInstance().setRoutingData(t)},e.prototype.setRoutingData=function(t){this.setBaseUrl(t.base_url),this.setRoutes(t.routes),void 0!==t.prefix&&this.setPrefix(t.prefix),void 0!==t.port&&this.setPort(t.port),void 0!==t.locale&&this.setLocale(t.locale),this.setHost(t.host),void 0!==t.scheme&&this.setScheme(t.scheme)},e.prototype.setRoutes=function(t){this.routes_=Object.freeze(t)},e.prototype.getRoutes=function(){return this.routes_},e.prototype.setBaseUrl=function(t){this.context_.base_url=t},e.prototype.getBaseUrl=function(){return this.context_.base_url},e.prototype.setPrefix=function(t){this.context_.prefix=t},e.prototype.setScheme=function(t){this.context_.scheme=t},e.prototype.getScheme=function(){return this.context_.scheme},e.prototype.setHost=function(t){this.context_.host=t},e.prototype.getHost=function(){return this.context_.host},e.prototype.setPort=function(t){this.context_.port=t},e.prototype.getPort=function(){return this.context_.port},e.prototype.setLocale=function(t){this.context_.locale=t},e.prototype.getLocale=function(){return this.context_.locale}
2,e.prototype.buildQueryParams=function(t,e,i){var s,n=this,r=new RegExp(/\[\]$/);if(e instanceof Array)e.forEach(function(e,s){r.test(t)?i(t,e):n.buildQueryParams(t+"["+("object"==typeof e?s:"")+"]",e,i)});else if("object"==typeof e)for(s in e)this.buildQueryParams(t+"["+s+"]",e[s],i);else i(t,e)},e.prototype.getRoute=function(t){var e=[this.context_.prefix+t,t+"."+this.context_.locale,this.context_.prefix+t+"."+this.context_.locale,t];for(var i in e)if(e[i]in this.routes_)return this.routes_[e[i]];throw new Error('The route "'+t+'" does not exist.')},e.prototype.generate=function(t,i,s){var n=this.getRoute(t),r=i||{},a=Object.assign({},r),o="",l=!0,c="",u=void 0===this.getPort()||null===this.getPort()?"":this.getPort();if(n.tokens.forEach(function(i){if("text"===i[0]&&"string"==typeof i[1])return o=e.encodePathComponent(i[1])+o,void(l=!1);if("variable"!==i[0])throw new Error('The token type "'+i[0]+'" is not supported.');6===i.length&&!0===i[5]&&(l=!1);var s=n.defaults&&!Array.isArray(n.defaults)&&"string"==typeof i[3]&&i[3]in n.defaults;if(!1===l||!s||"string"==typeof i[3]&&i[3]in r&&!Array.isArray(n.defaults)&&r[i[3]]!=n.defaults[i[3]]){var c=void 0;if("string"==typeof i[3]&&i[3]in r)c=r[i[3]],delete a[i[3]];else{if("string"!=typeof i[3]||!s||Array.isArray(n.defaults)){if(l)return;throw new Error('The route "'+t+'" requires the parameter "'+i[3]+'".')}c=n.defaults[i[3]]}if(!0!==c&&!1!==c&&""!==c||!l){var u=e.encodePathComponent(c);"null"===u&&null===c&&(u=""),o=i[1]+u+o}l=!1}else s&&"string"==typeof i[3]&&i[3]in a&&delete a[i[3]]}),""===o&&(o="/"),n.hosttokens.forEach(function(t){var e;"text"!==t[0]?"variable"===t[0]&&(t[3]in r?(e=r[t[3]],delete a[t[3]]):n.defaults&&!Array.isArray(n.defaults)&&t[3]in n.defaults&&(e=n.defaults[t[3]]),c=t[1]+e+c):c=t[1]+c}),o=this.context_.base_url+o,n.requirements&&"_scheme"in n.requirements&&this.getScheme()!=n.requirements._scheme){var h=c||this.getHost();o=n.requirements._scheme+"://"+h+(h.indexOf(":"+u)>-1||""===u?"":":"+u)+o}else void 0!==n.schemes&&void 0!==n.schemes[0]&&this.getScheme()!==n.schemes[0]?(h=c||this.getHost(),o=n.schemes[0]+"://"+h+(h.indexOf(":"+u)>-1||""===u?"":":"+u)+o):c&&this.getHost()!==c+(c.indexOf(":"+u)>-1||""===u?"":":"+u)?o=this.getScheme()+"://"+c+(c.indexOf(":"+u)>-1||""===u?"":":"+u)+o:!0===s&&(o=this.getScheme()+"://"+this.getHost()+(this.getHost().indexOf(":"+u)>-1||""===u?"":":"+u)+o);if(Object.keys(a).length>0){var d=[],p=function(t,i){i=null===(i="function"==typeof i?i():i)?"":i,d.push(e.encodeQueryComponent(t)+"="+e.encodeQueryComponent(i))};for(var f in a)a.hasOwnProperty(f)&&this.buildQueryParams(f,a[f],p);o=o+"?"+d.join("&")}return o},e.customEncodeURIComponent=function(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/%40/g,"@").replace(/%3A/g,":").replace(/%21/g,"!").replace(/%3B/g,";").replace(/%2C/g,",").replace(/%2A/g,"*").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")},e.encodePathComponent=function(t){return e.customEncodeURIComponent(t).replace(/%3D/g,"=").replace(/%2B/g,"+").replace(/%21/g,"!").replace(/%7C/g,"|")},e.encodeQueryComponent=function(t){return e.customEncodeURIComponent(t).replace(/%3F/g,"?")},e}();return t.Router=e,t.Routing=new e,t.default=t.Routing,{Router:t.Router,Routing:t.Routing}}(),s=[],i=r.Routing,void 0===(n="function"==typeof i?i.apply(e,s):i)||(t.exports=n)},6395:function(t){"use strict";t.exports=!1},6469:function(t,e,i){"use strict";var s=i(8227),n=i(2360),r=i(4913).f,a=s("unscopables"),o=Array.prototype;void 0===o[a]&&r(o,a,{configurable:!0,value:n(null)}),t.exports=function(t){o[a][t]=!0}},6499:function(t,e,i){"use strict";var s=i(6518),n=i(9565),r=i(9306),a=i(6043),o=i(1103),l=i(2652);s({target:"Promise",stat:!0,forced:i(537)},{all:function(t){var e=this,i=a.f(e),s=i.resolve,c=i.reject,u=o(function(){var i=r(e.resolve),a=[],o=0,u=1;l(t,function(t){var r=o++,l=!1;u++,n(i,e,t).then(function(t){l||(l=!0,a[r]=t,--u||s(a))},c)}),--u||s(a)});return u.error&&c(u.value),i.promise}})},6518:function(t,e,i){"use strict";var s=i(4576),n=i(7347).f,r=i(6699),a=i(6840),o=i(9433),l=i(7740),c=i(2796);t.exports=function(t,e){var i,u,h,d,p,f=t.target,m=t.global,g=t.stat;if(i=m?s:g?s[f]||o(f,{}):s[f]&&s[f].prototype)for(u in e){if(d=e[u],h=t.dontCallGetSet?(p=n(i,u))&&p.value:i[u],!c(m?u:f+(g?".":"#")+u,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&r(d,"sham",!0),a(i,u,d,t)}}}
vendor: 1,332 bytes, line 2
2,6575:function(t,e,i){"use strict";var s=i(9297);t.exports=function(t){return void 0!==t&&(s(t,"value")||s(t,"writable"))}},6682:function(t,e,i){"use strict";var s=i(9565),n=i(8551),r=i(4901),a=i(2195),o=i(7323),l=TypeError;t.exports=function(t,e){var i=t.exec;if(r(i)){var c=s(i,t,e);return null!==c&&n(c),c}if("RegExp"===a(t))return s(o,t,e);throw new l("RegExp#exec called on incompatible receiver")}},6699:function(t,e,i){"use strict";var s=i(3724),n=i(4913),r=i(6980);t.exports=s?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},6706:function(t,e,i){"use strict";var s=i(9504),n=i(9306);t.exports=function(t,e,i){try{return s(n(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}}},6761:function(t,e,i){"use strict";var s=i(6518),n=i(4576),r=i(9565),a=i(9504),o=i(6395),l=i(3724),c=i(4495),u=i(9039),h=i(9297),d=i(1625),p=i(8551),f=i(5397),m=i(6969),g=i(655),b=i(6980),v=i(2360),y=i(1072),x=i(8480),w=i(298),S=i(3717),E=i(7347),M=i(4913),T=i(6801),k=i(8773),_=i(6840),C=i(2106),P=i(5745),A=i(6119),O=i(421),L=i(3392),I=i(8227),D=i(1951),N=i(511),R=i(8242),F=i(687),$=i(1181),z=i(9213).forEach,j=A("hidden"),B="Symbol",V="prototype",H=$.set,W=$.getterFor(B),U=Object[V],q=n.Symbol,Y=q&&q[V],X=n.RangeError,G=n.TypeError,K=n.QObject,J=E.f,Q=M.f,Z=w.f,tt=k.f,et=a([].push),it=P("symbols"),st=P("op-symbol
2s"),nt=P("wks"),rt=!K||!K[V]||!K[V].findChild,at=function(t,e,i){var s=J(U,e);s&&delete U[e],Q(t,e,i),s&&t!==U&&Q(U,e,s)},ot=l&&u(function(){return 7!==v(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a})?at:Q,lt=function(t,e){var i=it[t]=v(Y);return H(i,{type:B,tag:t,description:e}),l||(i.description=e),i},ct=function(t,e,i){t===U&&ct(st,e,i),p(t);var s=m(e);return p(i),h(it,s)?(i.enumerable?(h(t,j)&&t[j][s]&&(t[j][s]=!1),i=v(i,{enumerable:b(0,!1)})):(h(t,j)||Q(t,j,b(1,v(null))),t[j][s]=!0),ot(t,s,i)):Q(t,s,i)},ut=function(t,e){p(t);var i=f(e),s=y(i).concat(ft(i));return z(s,function(e){l&&!r(ht,i,e)||ct(t,e,i[e])}),t},ht=function(t){var e=m(t),i=r(tt,this,e);return!(this===U&&h(it,e)&&!h(st,e))&&(!(i||!h(this,e)||!h(it,e)||h(this,j)&&this[j][e])||i)},dt=function(t,e){var i=f(t),s=m(e);if(i!==U||!h(it,s)||h(st,s)){var n=J(i,s);return!n||!h(it,s)||h(i,j)&&i[j][s]||(n.enumerable=!0),n}},pt=function(t){var e=Z(f(t)),i=[];return z(e,function(t){h(it,t)||h(O,t)||et(i,t)}),i},ft=function(t){var e=t===U,i=Z(e?st:f(t)),s=[];return z(i,function(t){!h(it,t)||e&&!h(U,t)||et(s,it[t])}),s};c||(q=function(){if(d(Y,this))throw new G("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=L(t),i=function(t){var s=void 0===this?n:this;s===U&&r(i,st,t),h(s,j)&&h(s[j],e)&&(s[j][e]=!1);var a=b(1,t);try{ot(s,e,a)}catch(t){if(!(t instanceof X))throw t;at(s,e,a)}};return l&&rt&&ot(U,e,{configurable:!0,set:i}),lt(e,t)},_(Y=q[V],"toString",function(){return W(this).tag}),_(q,"withoutSetter",function(t){return lt(L(t),t)}),k.f=ht,M.f=ct,T.f=ut,E.f=dt,x.f=w.f=pt,S.f=ft,D.f=function(t){return lt(I(t),t)},l&&(C(Y,"description",{configurable:!0,get:function(){return W(this).description}}),o||_(U,"propertyIsEnumerable",ht,{unsafe:!0}))),s({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),z(y(nt),function(t){N(t)}),s({target:B,stat:!0,forced:!c},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),s({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(t,e){return void 0===e?v(t):ut(v(t),e)},defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:dt}),s({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pt}),R(),F(q,B),O[j]=!0},6801:function(t,e,i){"use strict";var s=i(3724),n=i(8686),r=i(4913),a=i(8551),o=i(5397),l=i(1072);e.f=s&&!n?Object.defineProperties:function(t,e){a(t);for(var i,s=o(e),n=l(e),c=n.length,u=0;c>u;)r.f(t,i=n[u++],s[i]);return t}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},6840:function(t,e,i){"use strict";var s=i(4901),n=i(4913),r=i(283),a=i(9433);t.exports=function(t,e,i,o){o||(o={});var l=o.enumerable,c=void 0!==o.name?o.name:e;if(s(i)&&r(i,c,o),o.global)l?t[e]=i:a(e,i);else{try{o.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=i:n.f(t,e,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return t}},6910:function(t,e,i){"use strict";var s=i(6518),n=i(9504),r=i(9306),a=i(8981),o=i(6198),l=i(4606),c=i(655),u=i(9039),h=i(4488),d=i(4598),p=i(3709),f=i(3763),m=i(9519),g=i(3607),b=[],v=n(b.sort),y=n(b.push),x=u(function(){b.sort(void 0)}),w=u(function(){b.sort(null)}),S=d("sort"),E=!u(function(){if(m)return m<70;if(!(p&&p>3)){if(f)return!0;if(g)return g<603;var t,e,i,s,n="";for(t=65;t<76;
2t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(s=0;s<47;s++)b.push({k:e+s,v:i})}for(b.sort(function(t,e){return e.v-t.v}),s=0;s<b.length;s++)e=b[s].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}});s({target:"Array",proto:!0,forced:x||!w||!S||!E},{sort:function(t){void 0!==t&&r(t);var e=a(this);if(E)return void 0===t?v(e):v(e,t);var i,s,n=[],u=o(e);for(s=0;s<u;s++)s in e&&y(n,e[s]);for(h(n,function(t){return function(e,i){return void 0===i?-1:void 0===e?1:void 0!==t?+t(e,i)||0:c(e)>c(i)?1:-1}}(t)),i=o(n),s=0;s<i;)e[s]=n[s++];for(;s<u;)l(e,s++);return e}})},6955:function(t,e,i){"use strict";var s=i(2140),n=i(4901),r=i(2195),a=i(8227)("toStringTag"),o=Object,l="Arguments"===r(function(){return arguments}());t.exports=s?r:function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=o(t),a))?i:l?r(e):"Object"===(s=r(e))&&n(e.callee)?"Arguments":s}},6969:function(t,e,i){"use strict";var s=i(2777),n=i(757);t.exports=function(t){var e=s(t,"string");return n(e)?e:e+""}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7040:function(t,e,i){"use strict";var s=i(4495);t.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:function(t,e,i){"use strict";var s=i(9504),n=i(9039),r=i(2195),a=Object,o=s("".split);t.exports=n(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):a(t)}:a},7059:function(t,e,i){"use strict";function s(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function n(t,e){void 0===t&&(t={}),void 0===e&&(e={});const i=["__proto__","constructor","prototype"];Object.keys(e).filter(t=>i.indexOf(t)<0).forEach(i=>{void 0===t[i]?t[i]=e[i]:s(e[i])&&s(t[i])&&Object.keys(e[i]).length>0&&n(t[i],e[i])})}i.d(e,{A:function(){return ct}});const r={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const t="undefined"!=typeof document?document:{};return n(t,r),t}const o={document:r,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function l(){const t="undefined"!=typeof window?window:{};return n(t,o),t}function c(t){return void 0===t&&(t=""),t.trim().split(" ").filter(t=>!!t.trim())}function u(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function h(){return Date.now()}function d(t,e){void 0===e&&(e="x");const i=l();let s,n,r;const a=function(t){const e=l();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}(t);return i.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(t=>t.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix("none"===n?"":n)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),"x"===e&&(n=i.WebKitCSSMatrix?r.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===e&&(n=i.WebKitCSSMatrix?r.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function p(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function f(t){return"undefined"!=typeof window&&void 0!==window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function m(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const s=i<0||arguments.length<=i?void 0:arguments[i];if(null!=s&&!f(s)){const i=Object.keys(Object(s)).filter(t=>e.indexOf(t)<0);for(let e=0,n=i.length;e<n;e+=1){const n=i[e],r=Object.getOwnPropertyDescriptor(s,n);void 0!==r&&r.enumerable&&(p(t[n])&&p(s[n])?s[n].__swiper__?t[n]=s[n]:m(t[n],s[n]):!p(t[n])&&p(s[n])?(t[n]={}
vendor: 41,756 bytes, line 2
2,s[n].__swiper__?t[n]=s[n]:m(t[n],s[n])):t[n]=s[n])}}}return t}function g(t,e,i){t.style.setProperty(e,i)}function b(t){let{swiper:e,targetPosition:i,side:s}=t;const n=l(),r=-e.translate;let a,o=null;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);const u=i>r?"next":"prev",h=(t,e)=>"next"===u&&t>=e||"prev"===u&&t<=e,d=()=>{a=(new Date).getTime(),null===o&&(o=a);const t=Math.max(Math.min((a-o)/c,1),0),l=.5-Math.cos(t*Math.PI)/2;let u=r+l*(i-r);if(h(u,i)&&(u=i),e.wrapperEl.scrollTo({[s]:u}),h(u,i))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:u})}),void n.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=n.requestAnimationFrame(d)};d()}function v(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function y(t,e){void 0===e&&(e="");const i=l(),s=[...t.children];return i.HTMLSlotElement&&t instanceof HTMLSlotElement&&s.push(...t.assignedElements()),e?s.filter(t=>t.matches(e)):s}function x(t){try{return void console.warn(t)}catch(t){}}function w(t,e){void 0===e&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:c(e)),i}function S(t){const e=l(),i=a(),s=t.getBoundingClientRect(),n=i.body,r=t.clientTop||n.clientTop||0,o=t.clientLeft||n.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,u=t===e?e.scrollX:t.scrollLeft;return{top:s.top+c-r,left:s.left+u-o}}function E(t,e){return l().getComputedStyle(t,null).getPropertyValue(e)}function M(t){let e,i=t;if(i){for(e=0;null!==(i=i.previousSibling);)1===i.nodeType&&(e+=1);return e}}function T(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function k(t,e){e&&t.addEventListener("transitionend",function i(s){s.target===t&&(e.call(t,s),t.removeEventListener("transitionend",i))})}function _(t,e,i){const s=l();return i?t["width"===e?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-left":"margin-bottom")):t.offsetWidth}function C(t){return(Array.isArray(t)?t:[t]).filter(t=>!!t)}function P(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90==0?e+.001:e}function A(t,e){void 0===e&&(e=""),"undefined"!=typeof trustedTypes?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:t=>t}).createHTML(e):t.innerHTML=e}let O,L,I;function D(){return O||(O=function(){const t=l(),e=a();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}()),O}function N(t){return void 0===t&&(t={}),L||(L=function(t){let{userAgent:e}=void 0===t?{}:t;const i=D(),s=l(),n=s.navigator.platform,r=e||s.navigator.userAgent,a={ios:!1,android:!1},o=s.screen.width,c=s.screen.height,u=r.match(/(Android);?[\s\/]+([\d.]+)?/);let h=r.match(/(iPad).*OS\s([\d_]+)/);const d=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!h&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===n;let m="MacIntel"===n;return!h&&m&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${c}`)>=0&&(h=r.match(/(Version)\/([\d.]+)/),h||(h=[0,1,"13_0_0"]),m=!1),u&&!f&&(a.os="android",a.android=!0),(h||p||d)&&(a.os="ios",a.ios=!0),a}(t)),L}function R(){return I||(I=function(){const t=l(),e=N();let i=!1;function s(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}if(s()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,s]=e.split("Version/")[1].split(" ")[0].split(".").map(t=>Number(t));i=t<16||16===t&&s<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),r=s();return{isSafari:i||r,needPerspectiveFix:i,need3dFix:r||n&&e.ios,isWebView:n}}()),I}var F={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const n=i?"unshift":"push";return t.split(" ").forEach(t=>{s.eventsListeners[t]||(s.eventsListeners[t]=[]),s.eventsListeners[t][n](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];e.apply(s,r)}return n.__emitterProxy=e,s.on(t,n,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[s](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(t.split(" ").forEach(t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach((s,n)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&i.eventsListeners[t].splice(n,1)})}),i):i},emit(){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];"string"==typeof r[0]||Array.isArray(r[0])?(e=r[0],i=r.slice(1,r.length),s=t):(e=r[0].events,i=r[0].data,s=r[0].context||t),i.unshift(s);return(Array.isArray(e)?e:e.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(t=>{t.apply(s,i)})}),t}};const $=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};const z=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};const j=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=e.closest(t.isElement?"swiper-slide":`.${t.params.slideClass}`);if(i){let e=i.querySelector(`.${t.params.lazyPreloaderClass}`);!e&&t.isElement&&(i.shadowRoot?e=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(e=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),e&&e.remove())})),e&&e.remove()}},B=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},V=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const i=n,r=[i-e];return r.push(...Array.from({length:e}).map((t,e)=>i+s+e)),void t.slides.forEach((e,i)=>{r.includes(e.column)&&B(t,i)})}const r=n+s-1;if(t.params.rewind||t.params.loop)for(let s=n-e;s<=r+e;s+=1){const e=(s%i+i)%i;(e<n||e>r)&&B(t,e)}else for(let s=Math.max(n-e,0);s<=Math.min(r+e,i-1);s+=1)s!==n&&(s>r||s<n)&&B(t,s)};var H={updateSize:function(){const t=this;let e,i;const s=t.el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:s.clientWidth,i=void 0!==t.params.height&&null!==t.params.height?t.params.height:s.clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||(e=e-parseInt(E(s,"padding-left")||0,10)-parseInt(E(s,"padding-right")||0,10),i=i-parseInt(E(s,"padding-top")||0,10)-parseInt(E(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))},updateSlides:function(){const t=this;function e(e,i){return parseFloat(e.getPropertyValue(t.getDirectionLabel(i))||0)}const i=t.params,{wrapperEl:s,slidesEl:n,size:r,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&i.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,u=y(n,`.${t.params.slideClass}, swiper-slide`),h=l?t.virtual.slides.length:u.length;let d=[];const p=[],f=[];let m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(t));let b=i.slidesOffsetAfter;"function"==typeof b&&(b=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,x=t.slidesGrid.length;let w=i.spaceBetween,S=-m,M=0,T=0;if(void 0===r)return;"string"==typeof w&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*r:"string"==typeof w&&(w=parseFloat(w)),t.virtualSize=-w,u.forEach(t=>{a?t.style.marginLeft="":t.style.marginRight="",t.style.marginBottom="",t.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(g(s,"--swiper-centered-offset-before",""),g(s,"--swiper-centered-offset-after",""));const k=i.grid&&i.grid.rows>1&&t.grid;let C;k?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();const P="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(t=>void 0!==i.breakpoints[t].slidesPerView).length>0;for(let s=0;s<h;s+=1){let n;if(C=0,u[s]&&(n=u[s]),k&&t.grid.updateSlide(s,n,u),!u[s]||"none"!==E(n,"display")){if("auto"===i.slidesPerView){P&&(u[s].style[t.getDirectionLabel("width")]="");const r=getComputedStyle(n),a=n.style.transform,o=n.style.webkitTransform;if(a&&(n.style.transform="none"),o&&(n.style.webkitTransform="none"),i.roundLengths)C=t.isHorizontal()?_(n,"width",!0):_(n,"height",!0);else{const t=e(r,"width"),i=e(r,"padding-left"),s=e(r,"padding-right"),a=e(r,"margin-left"),o=e(r,"margin-right"),l=r.getPropertyValue("box-sizing");if(l&&"border-box"===l)C=t+a+o;else{const{clientWidth:e,offsetWidth:r}=n;C=t+i+s+a+o+(r-e)}}a&&(n.style.transform=a),o&&(n.style.webkitTransform=o),i.roundLengths&&(C=Math.floor(C))}else C=(r-(i.slidesPerView-1)*w)/i.slidesPerView,i.roundLengths&&(C=Math.floor(C)),u[s]&&(u[s].style[t.getDirectionLabel("width")]=`${C}px`);u[s]&&(u[s].swiperSlideSize=C),f.push(C),i.centeredSlides?(S=S+C/2+M/2+w,0===M&&0!==s&&(S=S-r/2-w),0===s&&(S=S-r/2-w),Math.abs(S)<.001&&(S=0),i.roundLengths&&(S=Math.floor(S)),T%i.slidesPerGroup===0&&d.push(S),p.push(S)):(i.roundLengths&&(S=Math.floor(S)),(T-Math.min(t.params.slidesPerGroupSkip,T))%t.params.slidesPerGroup===0&&d.push(S),p.push(S),S=S+C+w),t.virtualSize+=C+w,M=C,T+=1}}if(t.virtualSize=Math.max(t.virtualSize,r)+b,a&&o&&("slide"===i.effect||"coverflow"===i.effect)&&(s.style.width=`${t.virtualSize+w}px`),i.setWrapperSize&&(s.style[t.getDirectionLabel("width")]=`${t.virtualSize+w}px`),k&&t.grid.updateWrapperSize(C,d),!i.centeredSlides){const e=[];for(let s=0;s<d.length;s+=1){let n=d[s];i.roundLengths&&(n=Math.floor(n)),d[s]<=t.virtualSize-r&&e.push(n)}d=e,Math.floor(t.virtualSize-r)-Math.floor(d[d.length-1])>1&&d.push(t.virtualSize-r)}if(l&&i.loop){const e=f[0]+w;if(i.slidesPerGroup>1){const s=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),n=e*i.slidesPerGroup;for(let t=0;t<s;t+=1)d.push(d[d.length-1]+n)}for(let s=0;s<t.virtual.slidesBefore+t.virtual.slidesAfter;s+=1)1===i.slidesPerGroup&&d.push(d[d.length-1]+e),p.push(p[p.length-1]+e),t.virtualSize+=e}if(0===d.length&&(d=[0]),0!==w){const e=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");u.filter((t,e)=>!(i.cssMode&&!i.loop)||e!==u.length-1).forEach(t=>{t.style[e]=`${w}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let t=0;f.forEach(e=>{t+=e+(w||0)}),t-=w;const e=t>r?t-r:0;d=d.map(t=>t<=0?-m:t>e?e+b:t)}if(i.centerInsufficientSlides){let t=0;f.forEach(e=>{t+=e+(w||0)}),t-=w;const e=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(t+e<r){const i=(r-t-e)/2;d.forEach((t,e)=>{d[e]=t-i}),p.forEach((t,e)=>{p[e]=t+i})}}if(Object.assign(t,{slides:u,snapGrid:d,slidesGrid:p,slidesSizesGrid:f}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){g(s,"--swiper-centered-offset-before",-d[0]+"px"),g(s,"--swiper-centered-offset-after",t.size/2-f[f.length-1]/2+"px");const e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(t=>t+i)}if(h!==c&&t.emit("slidesLengthChange"),d.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==x&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const e=`${i.containerModifierClass}backface-hidden`,s=t.el.classList.contains(e);h<=i.maxBackfaceHiddenSlides?s||t.el.classList.add(e):s&&t.el.classList.remove(e)}},updateAutoHeight:function(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n,r=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const a=t=>s?e.slides[e.getSlideIndexByData(t)]:e.slides[t];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(t=>{i.push(t)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const t=e.activeIndex+n;if(t>e.slides.length&&!s)break;i.push(a(t))}else i.push(a(e.activeIndex));for(n=0;n<i.length;n+=1)if(void 0!==i[n]){const t=i[n].offsetHeight;r=t>r?t:r}(r||0===r)&&(e.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s<e.length;s+=1)e[s].swiperSlideOffset=(t.isHorizontal()?e[s].offsetLeft:e[s].offsetTop)-i-t.cssOverflowAdjustment()},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:s,rtlTranslate:n,snapGrid:r}=e;if(0===s.length)return;void 0===s[0].swiperSlideOffset&&e.updateSlidesOffset();let a=-t;n&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=i.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:"string"==typeof o&&(o=parseFloat(o));for(let t=0;t<s.length;t+=1){const l=s[t];let c=l.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=s[0].swiperSlideOffset);const u=(a+(i.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+o),h=(a-r[0]+(i.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+o),d=-(a-c),p=d+e.slidesSizesGrid[t],f=d>=0&&d<=e.size-e.slidesSizesGrid[t],m=d>=0&&d<e.size-1||p>1&&p<=e.size||d<=0&&p>=e.size;m&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(t)),$(l,m,i.slideVisibleClass),$(l,f,i.slideFullyVisibleClass),l.progress=n?-u:u,l.originalProgress=n?-h:h}},updateProgress:function(t){const e=this;if(void 0===t){const i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:a,progressLoop:o}=e;const l=r,c=a;if(0===s)n=0,r=!0,a=!0;else{n=(t-e.minTranslate())/s;const i=Math.abs(t-e.minTranslate())<1,o=Math.abs(t-e.maxTranslate())<1;r=i||n<=0,a=o||n>=1,i&&(n=0),o&&(n=1)}if(i.loop){const i=e.getSlideIndexByData(0),s=e.getSlideIndexByData(e.slides.length-1),n=e.slidesGrid[i],r=e.slidesGrid[s],a=e.slidesGrid[e.slidesGrid.length-1],l=Math.abs(t);o=l>=n?(l-n)/a:(l+a-r)/a,o>1&&(o-=1)}Object.assign(e,{progress:n,progressLoop:o,isBeginning:r,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!a)&&e.emit("fromEdge"),e.emit("progress",n)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,r=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,o=t=>y(s,`.${i.slideClass}${t}, swiper-slide${t}`)[0];let l,c,u;if(r)if(i.loop){let e=n-t.virtual.slidesBefore;e<0&&(e=t.virtual.slides.length+e),e>=t.virtual.slides.length&&(e-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${e}"]`)}else l=o(`[data-swiper-slide-index="${n}"]`);else a?(l=e.find(t=>t.column===n),u=e.find(t=>t.column===n+1),c=e.find(t=>t.column===n-1)):l=e[n];l&&(a||(u=function(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u&&(u=e[0]),c=function(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!c&&(c=e[e.length-1]))),e.forEach(t=>{z(t,t===l,i.slideActiveClass),z(t,t===u,i.slideNextClass),z(t,t===c,i.slidePrevClass)}),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:a,snapIndex:o}=e;let l,c=t;const u=t=>{let i=t-e.virtual.slidesBefore;return i<0&&(i=e.virtual.slides.length+i),i>=e.virtual.slides.length&&(i-=e.virtual.slides.length),i};if(void 0===c&&(c=function(t){const{slidesGrid:e,params:i}=t,s=t.rtlTranslate?t.translate:-t.translate;let n;for(let t=0;t<e.length;t+=1)void 0!==e[t+1]?s>=e[t]&&s<e[t+1]-(e[t+1]-e[t])/2?n=t:s>=e[t]&&s<e[t+1]&&(n=t+1):s>=e[t]&&(n=t);return i.normalizeSlideIndex&&(n<0||void 0===n)&&(n=0),n}(e)),s.indexOf(i)>=0)l=s.indexOf(i);else{const t=Math.min(n.slidesPerGroupSkip,c);l=t+Math.floor((c-t)/n.slidesPerGroup)}if(l>=s.length&&(l=s.length-1),c===r&&!e.params.loop)return void(l!==o&&(e.snapIndex=l,e.emit("snapIndexChange")));if(c===r&&e.params.loop&&e.virtual&&e.params.virtual.enabled)return void(e.realIndex=u(c));const h=e.grid&&n.grid&&n.grid.rows>1;let d;if(e.virtual&&n.virtual.enabled&&n.loop)d=u(c);else if(h){const t=e.slides.find(t=>t.column===c);let i=parseInt(t.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(e.slides.indexOf(t),0)),d=Math.floor(i/n.grid.rows)}else if(e.slides[c]){const t=e.slides[c].getAttribute("data-swiper-slide-index");d=t?parseInt(t,10):c}else d=c;Object.assign(e,{previousSnapIndex:o,snapIndex:l,previousRealIndex:a,realIndex:d,previousIndex:r,activeIndex:c}),e.initialized&&V(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==d&&e.emit("realIndexChange"),e.emit("slideChange"))},updateClickedSlide:function(t,e){const i=this,s=i.params;let n=t.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(t=>{!n&&t.matches&&t.matches(`.${s.slideClass}, swiper-slide`)&&(n=t)});let r,a=!1;if(n)for(let t=0;t<i.slides.length;t+=1)if(i.slides[t]===n){a=!0,r=t;break}if(!n||!a)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=n,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r,s.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}};var W={getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");const{params:e,rtlTranslate:i,translate:s,wrapperEl:n}=this;if(e.virtualTranslate)return i?-s:s;if(e.cssMode)return s;let r=d(n,t);return r+=this.cssOverflowAdjustment(),i&&(r=-r),r||0},setTranslate:function(t,e){const i=this,{rtlTranslate:s,params:n,wrapperEl:r,progress:a}=i;let o,l=0,c=0;i.isHorizontal()?l=s?-t:t:c=t,n.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c,n.cssMode?r[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:n.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():c-=i.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=i.maxTranslate()-i.minTranslate();o=0===u?0:(t-i.minTranslate())/u,o!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t,e,i,s,n){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);const r=this,{params:a,wrapperEl:o}=r;if(r.animating&&a.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let u;if(u=s&&t>l?l:s&&t<c?c:t,r.updateProgress(u),a.cssMode){const t=r.isHorizontal();if(0===e)o[t?"scrollLeft":"scrollTop"]=-u;else{if(!r.support.smoothScroll)return b({swiper:r,targetPosition:-u,side:t?"left":"top"}),!0;o.scrollTo({[t?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===e?(r.setTransition(0),r.setTranslate(u),i&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionEnd"))):(r.setTransition(e),r.setTranslate(u),i&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,i&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function U(t){let{swiper:e,runCallbacks:i,direction:s,step:n}=t;const{activeIndex:r,previousIndex:a}=e;let o=s;o||(o=r>a?"next":r<a?"prev":"reset"),e.emit(`transition${n}`),i&&"reset"===o?e.emit(`slideResetTransition${n}`):i&&r!==a&&(e.emit(`slideChangeTransition${n}`),"next"===o?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`))}var q={slideTo:function(t,e,i,s,n){void 0===t&&(t=0),void 0===i&&(i=!0),"string"==typeof t&&(t=parseInt(t,10));const r=this;let a=t;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:h,rtlTranslate:d,wrapperEl:p,enabled:f}=r;if(!f&&!s&&!n||r.destroyed||r.animating&&o.preventInteractionOnTransition)return!1;void 0===e&&(e=r.params.speed);const m=Math.min(r.params.slidesPerGroupSkip,a);let g=m+Math.floor((a-m)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(o.normalizeSlideIndex)for(let t=0;t<c.length;t+=1){const e=-Math.floor(100*v),i=Math.floor(100*c[t]),s=Math.floor(100*c[t+1]);void 0!==c[t+1]?e>=i&&e<s-(s-i)/2?a=t:e>=i&&e<s&&(a=t+1):e>=i&&(a=t)}if(r.initialized&&a!==h){if(!r.allowSlideNext&&(d?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate()))return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(h||0)!==a)return!1}let y;a!==(u||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),y=a>h?"next":a<h?"prev":"reset";const x=r.virtual&&r.params.virtual.enabled;if(!(x&&n)&&(d&&-v===r.translate||!d&&v===r.translate))return r.updateActiveIndex(a),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==o.effect&&r.setTranslate(v),"reset"!==y&&(r.transitionStart(i,y),r.transitionEnd(i,y)),!1;if(o.cssMode){const t=r.isHorizontal(),i=d?v:-v;if(0===e)x&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),x&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[t?"scrollLeft":"scrollTop"]=i})):p[t?"scrollLeft":"scrollTop"]=i,x&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return b({swiper:r,targetPosition:i,side:t?"left":"top"}),!0;p.scrollTo({[t?"left":"top"]:i,behavior:"smooth"})}return!0}const w=R().isSafari;return x&&!n&&w&&r.isElement&&r.virtual.update(!1,!1,a),r.setTransition(e),r.setTranslate(v),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(i,y),0===e?r.transitionEnd(i,y):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,y))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t,e,i,s){if(void 0===t&&(t=0),void 0===i&&(i=!0),"string"==typeof t){t=parseInt(t,10)}const n=this;if(n.destroyed)return;void 0===e&&(e=n.params.speed);const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let a=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)a+=n.virtual.slidesBefore;else{let t;if(r){const e=a*n.params.grid.rows;t=n.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else t=n.getSlideIndexByData(a);const e=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:i}=n.params;let o=n.params.slidesPerView;"auto"===o?o=n.slidesPerViewDynamic():(o=Math.ceil(parseFloat(n.params.slidesPerView,10)),i&&o%2==0&&(o+=1));let l=e-t<o;if(i&&(l=l||t<Math.ceil(o/2)),s&&i&&"auto"!==n.params.slidesPerView&&!r&&(l=!1),l){const s=i?t<n.activeIndex?"prev":"next":t-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:s,slideTo:!0,activeSlideIndex:"next"===s?t+1:t-e+1,slideRealIndex:"next"===s?n.realIndex:void 0})}if(r){const t=a*n.params.grid.rows;a=n.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else a=n.getSlideIndexByData(a)}return requestAnimationFrame(()=>{n.slideTo(a,e,i,s)}),n},slideNext:function(t,e,i){void 0===e&&(e=!0);const s=this,{enabled:n,params:r,animating:a}=s;if(!n||s.destroyed)return s;void 0===t&&(t=s.params.speed);let o=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<r.slidesPerGroupSkip?1:o,c=s.virtual&&r.virtual.enabled;if(r.loop){if(a&&!c&&r.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,t,e,i)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+l,t,e,i)},slidePrev:function(t,e,i){void 0===e&&(e=!0);const s=this,{params:n,snapGrid:r,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;void 0===t&&(t=s.params.speed);const u=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!u&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function h(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const d=h(o?s.translate:-s.translate),p=r.map(t=>h(t)),f=n.freeMode&&n.freeMode.enabled;let m=r[p.indexOf(d)-1];if(void 0===m&&(n.cssMode||f)){let t;r.forEach((e,i)=>{d>=e&&(t=i)}),void 0!==t&&(m=f?r[t]:r[t>0?t-1:t])}let g=0;if(void 0!==m&&(g=a.indexOf(m),g<0&&(g=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(g=g-s.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,t,e,i)}return n.loop&&0===s.activeIndex&&n.cssMode?(requestAnimationFrame(()=>{s.slideTo(g,t,e,i)}),!0):s.slideTo(g,t,e,i)},slideReset:function(t,e,i){void 0===e&&(e=!0);const s=this;if(!s.destroyed)return void 0===t&&(t=s.params.speed),s.slideTo(s.activeIndex,t,e,i)},slideToClosest:function(t,e,i,s){void 0===e&&(e=!0),void 0===s&&(s=.5);const n=this;if(n.destroyed)return;void 0===t&&(t=n.params.speed);let r=n.activeIndex;const a=Math.min(n.params.slidesPerGroupSkip,r),o=a+Math.floor((r-a)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[o]){const t=n.snapGrid[o];l-t>(n.snapGrid[o+1]-t)*s&&(r+=n.params.slidesPerGroup)}else{const t=n.snapGrid[o-1];l-t<=(n.snapGrid[o]-t)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,t,e,i)},slideToClickedSlide:function(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,s="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let n,r=t.getSlideIndexWhenGrid(t.clickedIndex);const a=t.isElement?"swiper-slide":`.${e.slideClass}`,o=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;n=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(n):r>(o?(t.slides.length-s)/2-(t.params.grid.rows-1):t.slides.length-s)?(t.loopFix(),r=t.getSlideIndex(y(i,`${a}[data-swiper-slide-index="${n}"]`)[0]),u(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}};var Y={loopCreate:function(t,e){const i=this,{params:s,slidesEl:n}=i;if(!s.loop||i.virtual&&i.params.virtual.enabled)return;const r=()=>{y(n,`.${s.slideClass}, swiper-slide`).forEach((t,e)=>{t.setAttribute("data-swiper-slide-index",e)})},a=i.grid&&s.grid&&s.grid.rows>1;s.loopAddBlankSlides&&(s.slidesPerGroup>1||a)&&(()=>{const t=y(n,`.${s.slideBlankClass}`);t.forEach(t=>{t.remove()}),t.length>0&&(i.recalcSlides(),i.updateSlides())})();const o=s.slidesPerGroup*(a?s.grid.rows:1),l=i.slides.length%o!==0,c=a&&i.slides.length%s.grid.rows!==0,u=t=>{for(let e=0;e<t;e+=1){const t=i.isElement?w("swiper-slide",[s.slideBlankClass]):w("div",[s.slideClass,s.slideBlankClass]);i.slidesEl.append(t)}};if(l){if(s.loopAddBlankSlides){u(o-i.slides.length%o),i.recalcSlides(),i.updateSlides()}else x("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(c){if(s.loopAddBlankSlides){u(s.grid.rows-i.slides.length%s.grid.rows),i.recalcSlides(),i.updateSlides()}else x("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();i.loopFix({slideRealIndex:t,direction:s.centeredSlides?void 0:"next",initial:e})},loopFix:function(t){let{slideRealIndex:e,slideTo:i=!0,direction:s,setTranslate:n,activeSlideIndex:r,initial:a,byController:o,byMousewheel:l}=void 0===t?{}:t;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:h,allowSlideNext:d,slidesEl:p,params:f}=c,{centeredSlides:m,initialSlide:g}=f;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&f.virtual.enabled)return i&&(f.centeredSlides||0!==c.snapIndex?f.centeredSlides&&c.snapIndex<f.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=h,c.allowSlideNext=d,void c.emit("loopFix");let b=f.slidesPerView;"auto"===b?b=c.slidesPerViewDynamic():(b=Math.ceil(parseFloat(f.slidesPerView,10)),m&&b%2==0&&(b+=1));const v=f.slidesPerGroupAuto?b:f.slidesPerGroup;let y=m?Math.max(v,Math.ceil(b/2)):v;y%v!==0&&(y+=v-y%v),y+=f.loopAdditionalSlides,c.loopedSlides=y;const w=c.grid&&f.grid&&f.grid.rows>1;u.length<b+y||"cards"===c.params.effect&&u.length<b+2*y?x("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):w&&"row"===f.grid.fill&&x("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const S=[],E=[],M=w?Math.ceil(u.length/f.grid.rows):u.length,T=a&&M-g<b&&!m;let k=T?g:c.activeIndex;void 0===r?r=c.getSlideIndex(u.find(t=>t.classList.contains(f.slideActiveClass))):k=r;const _="next"===s||!s,C="prev"===s||!s;let P=0,A=0;const O=(w?u[r].column:r)+(m&&void 0===n?-b/2+.5:0);if(O<y){P=Math.max(y-O,v);for(let t=0;t<y-O;t+=1){const e=t-Math.floor(t/M)*M;if(w){const t=M-e-1;for(let e=u.length-1;e>=0;e-=1)u[e].column===t&&S.push(e)}else S.push(M-e-1)}}else if(O+b>M-y){A=Math.max(O-(M-2*y),v),T&&(A=Math.max(A,b-M+g+1));for(let t=0;t<A;t+=1){const e=t-Math.floor(t/M)*M;w?u.forEach((t,i)=>{t.column===e&&E.push(i)}):E.push(e)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),"cards"===c.params.effect&&u.length<b+2*y&&(E.includes(r)&&E.splice(E.indexOf(r),1),S.includes(r)&&S.splice(S.indexOf(r),1)),C&&S.forEach(t=>{u[t].swiperLoopMoveDOM=!0,p.prepend(u[t]),u[t].swiperLoopMoveDOM=!1}),_&&E.forEach(t=>{u[t].swiperLoopMoveDOM=!0,p.append(u[t]),u[t].swiperLoopMoveDOM=!1}),c.recalcSlides(),"auto"===f.slidesPerView?c.updateSlides():w&&(S.length>0&&C||E.length>0&&_)&&c.slides.forEach((t,e)=>{c.grid.updateSlide(e,t,c.slides)}),f.watchSlidesProgress&&c.updateSlidesOffset(),i)if(S.length>0&&C){if(void 0===e){const t=c.slidesGrid[k],e=c.slidesGrid[k+P]-t;l?c.setTranslate(c.translate-e):(c.slideTo(k+Math.ceil(P),0,!1,!0),n&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-e,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-e))}else if(n){const t=w?S.length/f.grid.rows:S.length;c.slideTo(c.activeIndex+t,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(E.length>0&&_)if(void 0===e){const t=c.slidesGrid[k],e=c.slidesGrid[k-A]-t;l?c.setTranslate(c.translate-e):(c.slideTo(k-A,0,!1,!0),n&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-e,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-e))}else{const t=w?E.length/f.grid.rows:E.length;c.slideTo(c.activeIndex-t,0,!1,!0)}if(c.allowSlidePrev=h,c.allowSlideNext=d,c.controller&&c.controller.control&&!o){const t={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...t,slideTo:e.params.slidesPerView===f.slidesPerView&&i})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...t,slideTo:c.controller.control.params.slidesPerView===f.slidesPerView&&i})}c.emit("loopFix")},loopDestroy:function(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||!i||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(t=>{const e=void 0===t.swiperSlideIndex?1*t.getAttribute("data-swiper-slide-index"):t.swiperSlideIndex;s[e]=t}),t.slides.forEach(t=>{t.removeAttribute("data-swiper-slide-index")}),s.forEach(t=>{i.append(t)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}};function X(t,e,i){const s=l(),{params:n}=t,r=n.edgeSwipeDetection,a=n.edgeSwipeThreshold;return!r||!(i<=a||i>=s.innerWidth-a)||"prevent"===r&&(e.preventDefault(),!0)}function G(t){const e=this,i=a();let s=t;s.originalEvent&&(s=s.originalEvent);const n=e.touchEventsData;if("pointerdown"===s.type){if(null!==n.pointerId&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId}else"touchstart"===s.type&&1===s.targetTouches.length&&(n.touchId=s.targetTouches[0].identifier);if("touchstart"===s.type)return void X(e,s,s.targetTouches[0].pageX);const{params:r,touches:o,enabled:c}=e;if(!c)return;if(!r.simulateTouch&&"mouse"===s.pointerType)return;if(e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let u=s.target;if("wrapper"===r.touchEventsTarget&&!function(t,e){const i=l();let s=e.contains(t);!s&&i.HTMLSlotElement&&e instanceof HTMLSlotElement&&(s=[...e.assignedElements()].includes(t),s||(s=function(t,e){const i=[e];for(;i.length>0;){const e=i.shift();if(t===e)return!0;i.push(...e.children,...e.shadowRoot?e.shadowRoot.children:[],...e.assignedElements?e.assignedElements():[])}}(t,e)));return s}(u,e.wrapperEl))return;if("which"in s&&3===s.which)return;if("button"in s&&s.button>0)return;if(n.isTouched&&n.isMoved)return;const d=!!r.noSwipingClass&&""!==r.noSwipingClass,p=s.composedPath?s.composedPath():s.path;d&&s.target&&s.target.shadowRoot&&p&&(u=p[0]);const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!(!s.target||!s.target.shadowRoot);if(r.noSwiping&&(m?function(t,e){return void 0===e&&(e=this),function e(i){if(!i||i===a()||i===l())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(t);return s||i.getRootNode?s||e(i.getRootNode().host):null}(e)}(f,u):u.closest(f)))return void(e.allowClick=!0);if(r.swipeHandler&&!u.closest(r.swipeHandler))return;o.currentX=s.pageX,o.currentY=s.pageY;const g=o.currentX,b=o.currentY;if(!X(e,s,g))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=g,o.startY=b,n.touchStartTime=h(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let v=!0;u.matches(n.focusableElements)&&(v=!1,"SELECT"===u.nodeName&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==u&&("mouse"===s.pointerType||"mouse"!==s.pointerType&&!u.matches(n.focusableElements))&&i.activeElement.blur();const y=v&&e.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!y||u.isContentEditable||s.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function K(t){const e=a(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:o,enabled:l}=i;if(!l)return;if(!n.simulateTouch&&"mouse"===t.pointerType)return;let c,u=t;if(u.originalEvent&&(u=u.originalEvent),"pointermove"===u.type){if(null!==s.touchId)return;if(u.pointerId!==s.pointerId)return}if("touchmove"===u.type){if(c=[...u.changedTouches].find(t=>t.identifier===s.touchId),!c||c.identifier!==s.touchId)return}else c=u;if(!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",u));const d=c.pageX,p=c.pageY;if(u.preventedByNestedSwiper)return r.startX=d,void(r.startY=p);if(!i.allowTouchMove)return u.target.matches(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(r,{startX:d,startY:p,currentX:d,currentY:p}),s.touchStartTime=h()));if(n.touchReleaseOnEdges&&!n.loop)if(i.isVertical()){if(p<r.startY&&i.translate<=i.maxTranslate()||p>r.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else{if(o&&(d>r.startX&&-i.translate<=i.maxTranslate()||d<r.startX&&-i.translate>=i.minTranslate()))return;if(!o&&(d<r.startX&&i.translate<=i.maxTranslate()||d>r.startX&&i.translate>=i.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(s.focusableElements)&&e.activeElement!==u.target&&"mouse"!==u.pointerType&&e.activeElement.blur(),e.activeElement&&u.target===e.activeElement&&u.target.matches(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);s.allowTouchCallbacks&&i.emit("touchMove",u),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=p;const f=r.currentX-r.startX,m=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(void 0===s.isScrolling){let t;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:f*f+m*m>=25&&(t=180*Math.atan2(Math.abs(m),Math.abs(f))/Math.PI,s.isScrolling=i.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",u),void 0===s.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(s.startMoving=!0)),s.isScrolling||"touchmove"===u.type&&s.preventTouchMoveFromPointerMove)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&u.cancelable&&u.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&u.stopPropagation();let g=i.isHorizontal()?f:m,b=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),b=Math.abs(b)*(o?1:-1)),r.diff=g,g*=n.touchRatio,o&&(g=-g,b=-b);const v=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=b>0?"prev":"next";const y=i.params.loop&&!n.cssMode,x="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!s.isMoved){if(y&&x&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(t)}s.allowMomentumBounce=!1,!n.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",u)}if((new Date).getTime(),!1!==n._loopSwapReset&&s.isMoved&&s.allowThresholdMove&&v!==i.touchesDirection&&y&&x&&Math.abs(g)>=1)return Object.assign(r,{startX:d,startY:p,currentX:d,currentY:p,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,void(s.startTranslate=s.currentTranslate);i.emit("sliderMove",u),s.isMoved=!0,s.currentTranslate=g+s.startTranslate;let w=!0,S=n.resistanceRatio;if(n.touchReleaseOnEdges&&(S=0),g>0?(y&&x&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-("auto"!==n.slidesPerView&&i.slides.length-n.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(w=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+g)**S))):g<0&&(y&&x&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+("auto"!==n.slidesPerView&&i.slides.length-n.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===n.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslate<i.maxTranslate()&&(w=!1,n.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-g)**S))),w&&(u.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),n.threshold>0){if(!(Math.abs(g)>n.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);
vendor: 4,874 bytes, line 2
2if(!s.allowThresholdMove)return s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,void(r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function J(t){const e=this,i=e.touchEventsData;let s,n=t;n.originalEvent&&(n=n.originalEvent);if("touchend"===n.type||"touchcancel"===n.type){if(s=[...n.changedTouches].find(t=>t.identifier===i.touchId),!s||s.identifier!==i.touchId)return}else{if(null!==i.touchId)return;if(n.pointerId!==i.pointerId)return;s=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)){if(!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return}i.pointerId=null,i.touchId=null;const{params:r,touches:a,rtlTranslate:o,slidesGrid:l,enabled:c}=e;if(!c)return;if(!r.simulateTouch&&"mouse"===n.pointerType)return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);r.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const d=h(),p=d-i.touchStartTime;if(e.allowClick){const t=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(t&&t[0]||n.target,t),e.emit("tap click",n),p<300&&d-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=h(),u(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||0===a.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let f;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,f=r.followFinger?o?e.translate:-e.translate:-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:f});const m=f>=-e.maxTranslate()&&!e.params.loop;let g=0,b=e.slidesSizesGrid[0];for(let t=0;t<l.length;t+=t<r.slidesPerGroupSkip?1:r.slidesPerGroup){const e=t<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==l[t+e]?(m||f>=l[t]&&f<l[t+e])&&(g=t,b=l[t+e]-l[t]):(m||f>=l[t])&&(g=t,b=l[l.length-1]-l[l.length-2])}let v=null,y=null;r.rewind&&(e.isBeginning?y=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const x=(f-l[g])/b,w=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(p>r.longSwipesMs){if(!r.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(x>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?v:g+w):e.slideTo(g)),"prev"===e.swipeDirection&&(x>1-r.longSwipesRatio?e.slideTo(g+w):null!==y&&x<0&&Math.abs(x)>r.longSwipesRatio?e.slideTo(y):e.slideTo(g))}else{if(!r.shortSwipes)return void e.slideTo(e.activeIndex);e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(g+w):e.slideTo(g):("next"===e.swipeDirection&&e.slideTo(null!==v?v:g+w),"prev"===e.swipeDirection&&e.slideTo(null!==y?y:g))}}function Q(){const t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=a&&e.loop;!("auto"===e.slidesPerView||e.slidesPerView>1)||!t.isEnd||t.isBeginning||t.params.centeredSlides||o?t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0):t.slideTo(t.slides.length-1,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function Z(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function tt(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;let n;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const r=t.maxTranslate()-t.minTranslate();n=0===r?0:(t.translate-t.minTranslate())/r,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function et(t){const e=this;j(e,t.target),e.params.cssMode||"auto"!==e.params.slidesPerView&&!e.params.autoHeight||e.update(
vendor: 9,304 bytes, line 2
2)}function it(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const st=(t,e)=>{const i=a(),{params:s,el:n,wrapperEl:r,device:o}=t,l=!!s.nested,c="on"===e?"addEventListener":"removeEventListener",u=e;n&&"string"!=typeof n&&(i[c]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:l}),n[c]("touchstart",t.onTouchStart,{passive:!1}),n[c]("pointerdown",t.onTouchStart,{passive:!1}),i[c]("touchmove",t.onTouchMove,{passive:!1,capture:l}),i[c]("pointermove",t.onTouchMove,{passive:!1,capture:l}),i[c]("touchend",t.onTouchEnd,{passive:!0}),i[c]("pointerup",t.onTouchEnd,{passive:!0}),i[c]("pointercancel",t.onTouchEnd,{passive:!0}),i[c]("touchcancel",t.onTouchEnd,{passive:!0}),i[c]("pointerout",t.onTouchEnd,{passive:!0}),i[c]("pointerleave",t.onTouchEnd,{passive:!0}),i[c]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[c]("click",t.onClick,!0),s.cssMode&&r[c]("scroll",t.onScroll),s.updateOnWindowResize?t[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Q,!0):t[u]("observerUpdate",Q,!0),n[c]("load",t.onLoad,{capture:!0}))};const nt=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;var rt={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function at(t,e){return function(i){void 0===i&&(i={});const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(!0===t[s]&&(t[s]={enabled:!0}),"navigation"===s&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),s in t&&"enabled"in n?("object"!=typeof t[s]||"enabled"in t[s]||(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),m(e,i)):m(e,i)):m(e,i)}}const ot={eventsEmitter:F,update:H,translate:W,transition:{setTransition:function(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=0===t?"0ms":""),i.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),U({swiper:i,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function(t,e){void 0===t&&(t=!0);const i=this,{params:s}=i;i.animating=!1,s.cssMode||(i.setTransition(0),U({swiper:i,runCallbacks:t,direction:e,step:"End"}))}},slide:q,loop:Y,grabCursor:{setGrabCursor:function(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})},unsetGrabCursor:function(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}},events:{attachEvents:function(){const t=this,{params:e}=t;t.onTouchStart=G.bind(t),t.onTouchMove=K.bind(t),t.onTouchEnd=J.bind(t),t.onDocumentTouchStart=it.bind(t),e.cssMode&&(t.onScroll=tt.bind(t)),t.onClick=Z.bind(t),t.onLoad=et.bind(t),st(t,"on")},detachEvents:function(){st(this,"off")}},breakpoints:{setBreakpoint:function(){const t=this,{realIndex:e,initialized:i,params:s,el:n}=t,r=s.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const o=a(),l="window"!==s.breakpointsBase&&s.breakpointsBase?"container":s.breakpointsBase,c=["window","container"].includes(s.breakpointsBase)||!s.breakpointsBase?t.el:o.querySelector(s.breakpointsBase),u=t.getBreakpoint(r,l,c);if(!u||t.currentBreakpoint===u)return;const h=(u in r?r[u]:void 0)||t.originalParams,d=nt(t,s),p=nt(t,h),f=t.params.grabCursor,g=h.grabCursor,b=s.enabled;d&&!p?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!d&&p&&(n.classList.add(`${s.containerModifierClass}grid`),(h.grid.fill&&"column"===h.grid.fill||!h.grid.fill&&"column"===s.grid.fill)&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),f&&!g?t.unsetGrabCursor():!f&&g&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(e=>{if(void 0===h[e])return;const i=s[e]&&s[e].enabled,n=h[e]&&h[e].enabled;i&&!n&&t[e].disable(),!i&&n&&t[e].enable()});const v=h.direction&&h.direction!==s.direction,y=s.loop&&(h.slidesPerView!==s.slidesPerView||v),x=s.loop;v&&i&&t.changeDirection(),m(t.params,h);const w=t.params.enabled,S=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),b&&!w?t.disable():!b&&w&&t.enable(),t.currentBreakpoint=u,t.emit("_beforeBreakpoint",h),i&&(y?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&S?(t.loopCreate(e),t.updateSlides()):x&&!S&&t.loopDestroy()),t.emit("breakpoint",h)},getBreakpoint:function(t,e,i){if(void 0===e&&(e="window"),!t||"container"===e&&!i)return;let s=!1;const n=l(),r="window"===e?n.innerHeight:i.clientHeight,a=Object.keys(t).map(t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:r*e,point:t}}return{value:t,point:t}});a.sort((t,e)=>parseInt(t.value,10)-parseInt(e.value,10));for(let t=0;t<a.length;t+=1){const{point:r,value:o}=a[t];"window"===e?n.matchMedia(`(min-width: ${o}px)`).matches&&(s=r):o<=i.clientWidth&&(s=r)}return s||"max"}},checkOverflow:{checkOverflow:function(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const e=t.slides.length-1,i=t.slidesGrid[e]+t.slidesSizesGrid[e]+2*s;t.isLocked=t.size>i}else t.isLocked=1===t.snapGrid.length;!0===i.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===i.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:r}=t,a=function(t,e){const i=[];return t.forEach(t=>{"object"==typeof t?Object.keys(t).forEach(s=>{t[s]&&i.push(e+s)}):"string"==typeof t&&i.push(e+t)}),i}(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),n.classList.add(...e),t.emitContainerClasses()},removeClasses:function(){const{el:t,classNames:e}=this;t&&"string"!=typeof t&&(t.classList.remove(...e),this.emitContainerClasses())}}},lt={};class ct{constructor(){let t,e;for(var i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];1===s.length&&s[0].constructor&&"Object"===Object.prototype.toString.call(s[0]).slice(8,-1)?e=s[0]:[t,e]=s,e||(e={}),e=m({},e),t&&!e.el&&(e.el=t);const r=a();if(e.el&&"string"==typeof e.el&&r.querySelectorAll(e.el).length>1){const t=[];return r.querySelectorAll(e.el).forEach(i=>{const s=m({},e,{el:i});t.push(new ct(s))}),t}const o=this;o.__swiper__=!0,o.support=D(),o.device=N({userAgent:e.userAgent}),o.browser=R(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],e.modules&&Array.isArray(e.modules)&&o.modules.push(...e.modules);const l={};
vendor: 8,418 bytes, line 2
2o.modules.forEach(t=>{t({params:e,swiper:o,extendParams:at(e,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const c=m({},rt,l);return o.params=m({},c,lt,e),o.originalParams=m({},o.params),o.passedParams=m({},e),o.params&&o.params.on&&Object.keys(o.params.on).forEach(t=>{o.on(t,o.params.on[t])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===o.params.direction},isVertical(){return"vertical"===o.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:e,params:i}=this,s=M(y(e,`.${i.slideClass}, swiper-slide`)[0]);return M(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?t=Math.floor(t/this.params.grid.rows):"row"===this.params.grid.fill&&(t%=Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const{slidesEl:t,params:e}=this;this.slides=y(t,`.${e.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const i=this;t=Math.min(Math.max(t,0),1);const s=i.minTranslate(),n=(i.maxTranslate()-s)*t+s;i.translateTo(n,void 0===e?0:e),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter(t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.forEach(i=>{const s=t.getSlideClasses(i);e.push({slideEl:i,classNames:s}),t.emit("_slideClass",i,s)}),t.emit("_slideClasses",e)}slidesPerViewDynamic(t,e){void 0===t&&(t="current"),void 0===e&&(e=!1);const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:r,size:a,activeIndex:o}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let t,e=s[o]?Math.ceil(s[o].swiperSlideSize):0;for(let i=o+1;i<s.length;i+=1)s[i]&&!t&&(e+=Math.ceil(s[i].swiperSlideSize),l+=1,e>a&&(t=!0));for(let i=o-1;i>=0;i-=1)s[i]&&!t&&(e+=s[i].swiperSlideSize,l+=1,e>a&&(t=!0))}else if("current"===t)for(let t=o+1;t<s.length;t+=1){(e?n[t]+r[t]-n[o]<a:n[t]-n[o]<a)&&(l+=1)}else for(let t=o-1;t>=0;t-=1){n[o]-n[t]<a&&(l+=1)}return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:i}=t;function s(){const e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}let n;if(i.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&j(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)s(),i.autoHeight&&t.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&t.isEnd&&!i.centeredSlides){const e=t.virtual&&i.virtual.enabled?t.virtual.slides:t.slides;n=t.slideTo(e.length-1,0,!1,!0)}else n=t.slideTo(t.activeIndex,0,!1,!0);n||s()}i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e){void 0===e&&(e=!0);const i=this,s=i.params.direction;return t||(t="horizontal"===s?"vertical":"horizontal"),t===s||"horizontal"!==t&&"vertical"!==t||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.forEach(e=>{"vertical"===t?e.style.width="":e.style.height=""}),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(t){const e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.el.classList.add(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.el.classList.remove(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;let i=t||e.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=e,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===e.params.swiperElementNodeName.toUpperCase()&&(e.isElement=!0);const s=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=(()=>{if(i&&i.shadowRoot&&i.shadowRoot.querySelector){return i.shadowRoot.querySelector(s())}return y(i,s())[0]})();return!n&&e.params.createElements&&(n=w("div",e.params.wrapperClass),i.append(n),y(i,`.${e.params.slideClass}`).forEach(t=>{n.append(t)})),Object.assign(e,{el:i,wrapperEl:n,slidesEl:e.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:n,hostEl:e.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===E(i,"direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===E(i,"direction")),wrongRTL:"-webkit-box"===E(n,"display")}),!0}init(t){const e=this;if(e.initialized)return e;if(!1===e.mount(t))return e;e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.loop&&e.virtual&&e.params.virtual.enabled?e.slideTo(e.params.initialSlide+e.virtual.slidesBefore,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(void 0,!0),e.attachEvents();const i=[...e.el.querySelectorAll('[loading="lazy"]')];return e.isElement&&i.push(...e.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(t=>{t.complete?j(e,t):t.addEventListener("load",t=>{j(e,t.target)})}),V(e),e.initialized=!0,V(e),e.emit("init"),e.emit("afterInit"),e}destroy(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);const i=this,{params:s,el:n,wrapperEl:r,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),e&&(i.removeClasses(),n&&"string"!=typeof n&&n.removeAttribute("style"),r&&r.removeAttribute("style"),a&&a.length&&a.forEach(t=>{t.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),t.removeAttribute("style"),t.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(t=>{i.off(t)}),!1!==t&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),function(t){const e=t;Object.keys(e).forEach(t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})}(i)),i.destroyed=!0),null}static extendDefaults(t){m(lt,t)}static get extendedDefaults(){return lt}static get defaults(){return rt}static installModule(t){ct.prototype.__modules__||(ct.prototype.__modules__=[]);const e=ct.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>
vendor: 2,315 bytes, line 2
2ct.installModule(t)),ct):(ct.installModule(t),ct)}}function ut(t,e,i,s){return t.params.createElements&&Object.keys(s).forEach(n=>{if(!i[n]&&!0===i.auto){let r=y(t.el,`.${s[n]}`)[0];r||(r=w("div",s[n]),r.className=s[n],t.el.append(r)),i[n]=r,e[n]=r}}),i}function ht(t){return void 0===t&&(t=""),`.${t.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function dt(t){const e=this,{params:i,slidesEl:s}=e;i.loop&&e.loopDestroy();const n=t=>{if("string"==typeof t){const e=document.createElement("div");A(e,t),s.append(e.children[0]),A(e,"")}else s.append(t)};if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&n(t[e]);else n(t);e.recalcSlides(),i.loop&&e.loopCreate(),i.observer&&!e.isElement||e.update()}function pt(t){const e=this,{params:i,activeIndex:s,slidesEl:n}=e;i.loop&&e.loopDestroy();let r=s+1;const a=t=>{if("string"==typeof t){const e=document.createElement("div");A(e,t),n.prepend(e.children[0]),A(e,"")}else n.prepend(t)};if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a(t[e]);r=s+t.length}else a(t);e.recalcSlides(),i.loop&&e.loopCreate(),i.observer&&!e.isElement||e.update(),e.slideTo(r,0,!1)}function ft(t,e){const i=this,{params:s,activeIndex:n,slidesEl:r}=i;let a=n;s.loop&&(a-=i.loopedSlides,i.loopDestroy(),i.recalcSlides());const o=i.slides.length;if(t<=0)return void i.prependSlide(e);if(t>=o)return void i.appendSlide(e);let l=a>t?a+1:a;const c=[];for(let e=o-1;e>=t;e-=1){const t=i.slides[e];t.remove(),c.unshift(t)}if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&r.append(e[t]);l=a>t?a+e.length:a}else r.append(e);for(let t=0;t<c.length;t+=1)r.append(c[t]);i.recalcSlides(),s.loop&&i.loopCreate(),s.observer&&!i.isElement||i.update(),s.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function mt(t){const e=this,{params:i,activeIndex:s}=e;let n=s;i.loop&&(n-=e.loopedSlides,e.loopDestroy());let r,a=n;if("object"==typeof t&&"length"in t){for(let i=0;i<t.length;i+=1)r=t[i],e.slides[r]&&e.slides[r].remove(),r<a&&(a-=1);a=Math.max(a,0)}else r=t,e.slides[r]&&e.slides[r].remove(),r<a&&(a-=1),a=Math.max(a,0);e.recalcSlides(),i.loop&&e.loopCreate(),i.observer&&!e.isElement||e.update(),i.loop?e.slideTo(a+e.loopedSlides,0,!1):e.slideTo(a,0,!1)}function gt(){const t=this,e=[];for(let i=0;i<t.slides.length;
2i+=1)e.push(i);t.removeSlide(e)}function bt(t){const{effect:e,swiper:i,on:s,setTranslate:n,setTransition:r,overwriteParams:a,perspective:o,recreateShadows:l,getEffectParams:c}=t;let u;s("beforeInit",()=>{if(i.params.effect!==e)return;i.classNames.push(`${i.params.containerModifierClass}${e}`),o&&o()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const t=a?a():{};Object.assign(i.params,t),Object.assign(i.originalParams,t)}),s("setTranslate _virtualUpdated",()=>{i.params.effect===e&&n()}),s("setTransition",(t,s)=>{i.params.effect===e&&r(s)}),s("transitionEnd",()=>{if(i.params.effect===e&&l){if(!c||!c().slideShadows)return;i.slides.forEach(t=>{t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>t.remove())}),l()}}),s("virtualUpdate",()=>{i.params.effect===e&&(i.slides.length||(u=!0),requestAnimationFrame(()=>{u&&i.slides&&i.slides.length&&(n(),u=!1)}))})}function vt(t,e){const i=v(e);return i!==e&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function yt(t){let{swiper:e,duration:i,transformElements:s,allSlides:n}=t;const{activeIndex:r}=e;if(e.params.virtualTranslate&&0!==i){let t,i=!1;t=n?s:s.filter(t=>{const i=t.classList.contains("swiper-slide-transform")?(t=>{if(!t.parentElement)return e.slides.find(e=>e.shadowRoot&&e.shadowRoot===t.parentNode);return t.parentElement})(t):t;return e.getSlideIndex(i)===r}),t.forEach(t=>{k(t,()=>{if(i)return;if(!e||e.destroyed)return;i=!0,e.animating=!1;const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(t)})})}}function xt(t,e,i){const s=`swiper-slide-shadow${i?`-${i}`:""}${t?` swiper-slide-shadow-${t}`:""}`,n=v(e);let r=n.querySelector(`.${s.split(" ").join(".")}`);return r||(r=w("div",s.split(" ")),n.append(r)),r}Object.keys(ot).forEach(t=>{Object.keys(ot[t]).forEach(e=>{ct.prototype[e]=ot[t][e]})}),ct.use([function(t){let{swiper:e,on:i,emit:s}=t;const n=l();let r=null,a=null;const o=()=>{e&&!e.destroyed&&e.initialized&&(s("beforeResize"),s("resize"))},c=()=>{e&&!e.destroyed&&e.initialized&&s("orientationchange")};i("init",()=>{e.params.resizeObserver&&void 0!==n.ResizeObserver?e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver(t=>{a=n.requestAnimationFrame(()=>{const{width:i,height:s}=e;let n=i,r=s;t.forEach(t=>{let{contentBoxSize:i,contentRect:s,target:a}=t;a&&a!==e.el||(n=s?s.width:(i[0]||i).inlineSize,r=s?s.height:(i[0]||i).blockSize)}),n===i&&r===s||o()})}),r.observe(e.el)):(n.addEventListener("resize",o),n.addEventListener("orientationchange",c))}),i("destroy",()=>{a&&n.cancelAnimationFrame(a),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null),n.removeEventListener("resize",o),n.removeEventListener("orientationchange",c)})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=[],a=l(),o=function(t,i){void 0===i&&(i={});const s=new(a.MutationObserver||a.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void n("observerUpdate",t[0]);const i=function(){n("observerUpdate",t[0])};a.requestAnimationFrame?a.requestAnimationFrame(i):a.setTimeout(i,0)});s.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:e.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),r.push(s)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=T(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),s("destroy",()=>{r.forEach(t=>{t.disconnect()}),r.splice(0,r.length)})}]);const wt=[function(t){let e,{swiper:i,extendParams:s,on:n,emit:r}=t;s({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const o=a();i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const l=o.createElement("div");function c(t,e){const s=i.params.virtual;if(s.cache&&i.virtual.cache[e])return i.virtual.cache[e];let n;return s.renderSlide?(n=s.renderSlide.call(i,t,e),"string"==typeof n&&(A(l,n),n=l.children[0])):n=i.isElement?w("swiper-slide"):w("div",i.params.slideClass),n.setAttribute("data-swiper-slide-index",e),s.renderSlide||A(n,t),s.cache&&(i.virtual.cache[e]=n),n}function u(t,e,s){const{slidesPerView:n,slidesPerGroup:a,centeredSlides:o,loop:l,initialSlide:u}=i.params;if(e&&!l&&u>0)return;const{addSlidesBefore:h,addSlidesAfter:d}=i.params.virtual,{from:p,to:f,slides:m,slidesGrid:g,offset:b}=i.virtual;i.params.cssMode||i.updateActiveIndex();const v=void 0===s?i.activeIndex||0:s;let x,w,S;x=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",o?(w=Math.floor(n/2)+a+d,S=Math.floor(n/2)+a+h):(w=n+(a-1)+d,S=(l?n:a)+h);let E=v-S,M=v+w;l||(E=Math.max(E,0),M=Math.min(M,m.length-1));let T=(i.slidesGrid[E]||0)-(i.slidesGrid[0]||0);function k(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),r("virtualUpdate")}if(l&&v>=S?(E-=S,o||(T+=i.slidesGrid[0])):l&&v<S&&(E=-S,o&&(T+=i.slidesGrid[0])),Object.assign(i.virtual,{from:E,to:M,offset:T,slidesGrid:i.slidesGrid,slidesBefore:S,slidesAfter:w}),p===E&&f===M&&!t)return i.slidesGrid!==g&&T!==b&&i.slides.forEac
2h(t=>{t.style[x]=T-Math.abs(i.cssOverflowAdjustment())+"px"}),i.updateProgress(),void r("virtualUpdate");if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:T,from:E,to:M,slides:function(){const t=[];for(let e=E;e<=M;e+=1)t.push(m[e]);return t}()}),void(i.params.virtual.renderExternalUpdate?k():r("virtualUpdate"));const _=[],C=[],P=t=>{let e=t;return t<0?e=m.length+t:e>=m.length&&(e-=m.length),e};if(t)i.slides.filter(t=>t.matches(`.${i.params.slideClass}, swiper-slide`)).forEach(t=>{t.remove()});else for(let t=p;t<=f;t+=1)if(t<E||t>M){const e=P(t);i.slides.filter(t=>t.matches(`.${i.params.slideClass}[data-swiper-slide-index="${e}"], swiper-slide[data-swiper-slide-index="${e}"]`)).forEach(t=>{t.remove()})}const A=l?-m.length:0,O=l?2*m.length:m.length;for(let e=A;e<O;e+=1)if(e>=E&&e<=M){const i=P(e);void 0===f||t?C.push(i):(e>f&&C.push(i),e<p&&_.push(i))}if(C.forEach(t=>{i.slidesEl.append(c(m[t],t))}),l)for(let t=_.length-1;t>=0;t-=1){const e=_[t];i.slidesEl.prepend(c(m[e],e))}else _.sort((t,e)=>e-t),_.forEach(t=>{i.slidesEl.prepend(c(m[t],t))});y(i.slidesEl,".swiper-slide, swiper-slide").forEach(t=>{t.style[x]=T-Math.abs(i.cssOverflowAdjustment())+"px"}),k()}n("beforeInit",()=>{if(!i.params.virtual.enabled)return;let t;if(void 0===i.passedParams.virtual.slides){const e=[...i.slidesEl.children].filter(t=>t.matches(`.${i.params.slideClass}, swiper-slide`));e&&e.length&&(i.virtual.slides=[...e],t=!0,e.forEach((t,e)=>{t.setAttribute("data-swiper-slide-index",e),i.virtual.cache[e]=t,t.remove()}))}t||(i.virtual.slides=i.params.virtual.slides),i.classNames.push(`${i.params.containerModifierClass}virtual`),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,u(!1,!0)}),n("setTranslate",()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(e),e=setTimeout(()=>{u()},100)):u())}),n("init update resize",()=>{i.params.virtual.enabled&&i.params.cssMode&&g(i.wrapperEl,"--swiper-virtual-size",`${i.virtualSize}px`)}),Object.assign(i.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&i.virtual.slides.push(t[e]);else i.virtual.slides.push(t);u(!0)},prependSlide:function(t){const e=i.activeIndex;let s=e+1,n=1;if(Array.isArray(t)){for(let e=0;e<t.length;e+=1)t[e]&&i.virtual.slides.unshift(t[e]);s=e+t.length,n=t.length}else i.virtual.slides.unshift(t);if(i.params.virtual.cache){const t=i.virtual.cache,e={};Object.keys(t).forEach(i=>{const s=t[i],r=s.getAttribute("data-swiper-slide-index");r&&s.setAttribute("data-swiper-slide-index",parseInt(r,10)+n),e[parseInt(i,10)+n]=s}),i.virtual.cache=e}u(!0),i.slideTo(s,0)},removeSlide:function(t){if(null==t)return;let e=i.activeIndex;if(Array.isArray(t))for(let s=t.length-1;s>=0;s-=1)i.params.virtual.cache&&(delete i.virtual.cache[t[s]],Object.keys(i.virtual.cache).forEach(e=>{e>t&&(i.virtual.cache[e-1]=i.virtual.cache[e],i.virtual.cache[e-1].setAttribute("data-swiper-slide-index",e-1),delete i.virtual.cache[e])})),i.virtual.slides.splice(t[s],1),t[s]<e&&(e-=1),e=Math.max(e,0);else i.params.virtual.cache&&(delete i.virtual.cache[t],Object.keys(i.virtual.cache).forEach(e=>{e>t&&(i.virtual.cache[e-1]=i.virtual.cache[e],i.virtual.cache[e-1].setAttribute("data-swiper-slide-index",e-1),delete i.virtual.cache[e])})),i.virtual.slides.splice(t,1),t<e&&(e-=1),e=Math.max(e,0);u(!0),i.slideTo(e,0)},removeAllSlides:function(){i.virtual.slides=[],i.params.virtual.cache&&(i.virtual.cache={}),u(!0),i.slideTo(0,0)},update:u})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=a(),o=l();function c(t){if(!e.enabled)return;const{rtlTranslate:i}=e;let s=t;s.originalEvent&&(s=s.originalEvent);const a=s.keyCode||s.charCode,l=e.params.keyboard.pageUpDown,c=l&&33===a,u=l&&34===a,h=37===a,d=39===a,p=38===a,f=40===a;if(!e.allowSlideNext&&(e.isHorizontal()&&d||e.isVertical()&&f||u))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&h||e.isVertical()&&p||c))return!1;if(!(s.shiftKey||s.altKey||s.ctrlKey||s.metaKey||r.activeElement&&(r.activeElement.isContentEditable||r.activeElement.nodeName&&("input"===r.activeElement.nodeName.toLowerCase()||"textarea"===r.activeElement.nodeName.toLowerCase())))){if(e.params.keyboard.onlyInViewport&&(c||u||h||d||p||f)){let t=!1;if(T(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===T(e.el,`.${e.params.slideActiveClass}`).length)return;
vendor: 7,227 bytes, line 2
2const s=e.el,n=s.clientWidth,r=s.clientHeight,a=o.innerWidth,l=o.innerHeight,c=S(s);i&&(c.left-=s.scrollLeft);const u=[[c.left,c.top],[c.left+n,c.top],[c.left,c.top+r],[c.left+n,c.top+r]];for(let e=0;e<u.length;e+=1){const i=u[e];if(i[0]>=0&&i[0]<=a&&i[1]>=0&&i[1]<=l){if(0===i[0]&&0===i[1])continue;t=!0}}if(!t)return}e.isHorizontal()?((c||u||h||d)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),((u||d)&&!i||(c||h)&&i)&&e.slideNext(),((c||h)&&!i||(u||d)&&i)&&e.slidePrev()):((c||u||p||f)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),(u||f)&&e.slideNext(),(c||p)&&e.slidePrev()),n("keyPress",a)}}function u(){e.keyboard.enabled||(r.addEventListener("keydown",c),e.keyboard.enabled=!0)}function h(){e.keyboard.enabled&&(r.removeEventListener("keydown",c),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),s("init",()=>{e.params.keyboard.enabled&&u()}),s("destroy",()=>{e.keyboard.enabled&&h()}),Object.assign(e.keyboard,{enable:u,disable:h})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=l();let a;i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let o,c=h();const d=[];function p(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function m(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta)&&(!(e.params.mousewheel.thresholdTime&&h()-c<e.params.mousewheel.thresholdTime)&&(t.delta>=6&&h()-c<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),n("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),n("scroll",t.raw)),c=(new r.Date).getTime(),!1)))}function g(t){let i=t,s=!0;if(!e.enabled)return;if(t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const r=e.params.mousewheel;e.params.cssMode&&i.preventDefault();let l=e.el;"container"!==e.params.mousewheel.eventsTarget&&(l=document.querySelector(e.params.mousewheel.eventsTarget));const c=l&&l.contains(i.target);if(!e.mouseEntered&&!c&&!r.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let p=0;const f=e.rtlTranslate?-1:1,g=function(t){let e=0,i=0,s=0,n=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),s=10*e,n=10*i,"deltaY"in t&&(n=t.deltaY),"deltaX"in t&&(s=t.deltaX),t.shiftKey&&!s&&(s=n,n=0),(s||n)&&t.deltaMode&&(1===t.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!e&&(e=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:e,spinY:i,pixelX:s,pixelY:n}}(i);if(r.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;p=-g.pixelX*f}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;p=-g.pixelY}else p=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*f:-g.pixelY;if(0===p)return!0;r.invert&&(p=-p);let b=e.getTranslate()+p*r.sensitivity;if(b>=e.minTranslate()&&(b=e.minTranslate()),b<=e.maxTranslate()&&(b=e.maxTranslate()),s=!!e.params.loop||!(b===e.minTranslate()||b===e.maxTranslate()),s&&e.params.nested&&i.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:h(),delta:Math.abs(p),direction:Math.sign(p)},s=o&&t.time<o.time+500&&t.delta<=o.delta&&t.direction===o.direction;if(!s){o=void 0;let l=e.getTranslate()+p*r.sensitivity;const c=e.isBeginning,h=e.isEnd;if(l>=e.minTranslate()&&(l=e.minTranslate()),l<=e.maxTranslate()&&(l=e.maxTranslate()),e.setTransition(0),e.setTranslate(l),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!c&&e.isBeginning||!h&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,d.length>=15&&d.shift();const i=d.length?d[d.length-1]:void 0,s=d[0];if(d.push(t),i&&(t.delta>i.delta||t.direction!==i.direction))d.splice(0);else if(d.length>=15&&t.time-s.time<500&&s.delta-t.delta>=1&&t.delta<=6){const i=p>0?.8:.2;o=t,d.splice(0),a=u(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,i)},0)}a||(a=u(()=>{if(e.destroyed||!e.params)return;o=t,d.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(s||n("scroll",i),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),r.releaseOnEdges&&(l===e.minTranslate()||l===e.maxTranslate()))return!0}}else{const i={time:h(),delta:Math.abs(p),direction:Math.sign(p),raw:t};d.length>=2&&d.shift();const s=d.length?d[d.length-1]:void 0;if(d.push(i),s?(i.direction!==s.direction||i.delta>s.delta||i.time>s.time+150)&&m(i):m(i),function(t){const i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function b(t){let i=e.el;"container"!==e.params.mousewheel.eventsTarget&&(i=document.querySelector(e.params.mousewheel.eventsTarget)),i[t]("mouseenter",p),i[t]("mouseleave",f),i[t]("wheel",g)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):!e.mousewheel.enabled&&(b("addEventListener"),e.mousewheel.enabled=!0,!0)}function y(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):!!e.mousewheel.enabled&&(b("removeEventListener"),e.mousewheel.enabled=!1,!0)}s("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&y(),e.params.mousewheel.enabled&&v()}),s("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&y()}),Object.assign(e.mousewheel,{enable:v,disable:y})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;function r(t){let i;return t&&"string"==typeof t&&e.isElement&&(i=e.el.querySelector(t)||e.hostEl.querySelector(t),i)?i:(t&&("string"==typeof t&&(i=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&i&&i.length>1&&1===e.el.querySelectorAll(t).length?i=e.el.querySelector(t):i&&1===i.length&&(i=i[0])),t&&!i?t:i)}function a(t,i){const s=e.params.navigation;(t=C(t)).forEach(t=>{t&&(t.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=i),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](s.lockClass))})}function o(){const{nextEl:t,prevEl:i}=e.navigation;if(e.params.loop)return a(i,!1),void a(t,!1);a(i,e.isBeginning&&!e.params.rewind),a(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),n("navigationNext"))}function u(){const t=e.params.navigation;if(e.params.navigation=ut(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let i=r(t.nextEl),s=r(t.prevEl);Object.assign(e.navigation,{nextEl:i,prevEl:s}),i=C(i),s=C(s);const n=(i,s)=>{i&&i.addEventListener("click","next"===s?c:l),!e.enabled&&i&&i.classList.add(...t.lockClass.split(" "))};i.forEach(t=>
2n(t,"next")),s.forEach(t=>n(t,"prev"))}function h(){let{nextEl:t,prevEl:i}=e.navigation;t=C(t),i=C(i);const s=(t,i)=>{t.removeEventListener("click","next"===i?c:l),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(t=>s(t,"next")),i.forEach(t=>s(t,"prev"))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null},s("init",()=>{!1===e.params.navigation.enabled?d():(u(),o())}),s("toEdge fromEdge lock unlock",()=>{o()}),s("destroy",()=>{h()}),s("enable disable",()=>{let{nextEl:t,prevEl:i}=e.navigation;t=C(t),i=C(i),e.enabled?o():[...t,...i].filter(t=>!!t).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),s("click",(t,i)=>{let{nextEl:s,prevEl:r}=e.navigation;s=C(s),r=C(r);const a=i.target;let o=r.includes(a)||s.includes(a);if(e.isElement&&!o){const t=i.path||i.composedPath&&i.composedPath();t&&(o=t.find(t=>s.includes(t)||r.includes(t)))}if(e.params.navigation.hideOnClick&&!o){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let t;s.length?t=s[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(t=r[0].classList.contains(e.params.navigation.hiddenClass)),n(!0===t?"navigationShow":"navigationHide"),[...s,...r].filter(t=>!!t).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),o()},disable:d,update:o,init:u,destroy:h})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r="swiper-pagination";let a;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),e.pagination={el:null,bullets:[]};let o=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(t,i){const{bulletActiveClass:s}=e.params.pagination;t&&(t=t[("prev"===i?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${s}-${i}`),(t=t[("prev"===i?"previous":"next")+"ElementSibling"])&&t.classList.add(`${s}-${i}-${i}`))}function u(t){const i=t.target.closest(ht(e.params.pagination.bulletClass));if(!i)return;t.preventDefault();const s=M(i)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===s)return;const t=(n=e.realIndex,r=s,a=e.slides.length,(r%=a)===1+(n%=a)?"next":r===n-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(s)}else e.slideTo(s);var n,r,a}function h(){const t=e.rtl,i=e.params.pagination;if(l())return;let s,r,u=e.pagination.el;u=C(u);const h=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,d=e.params.loop?Math.ceil(h/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(r=e.previousRealIndex||0,s=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(s=e.snapIndex,r=e.previousSnapIndex):(r=e.previousIndex||0,s=e.activeIndex||0),"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const n=e.pagination.bullets;let l,h,d;if(i.dynamicBullets&&(a=_(n[0],e.isHorizontal()?"width":"height",!0),u.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=a*(i.dynamicMainBullets+4)+"px"}),i.dynamicMainBullets>1&&void 0!==r&&(o+=s-(r||0),o>i.dynamicMainBullets-1?o=i.dynamicMainBullets-1:o<0&&(o=0)),l=Math.max(s-o,0),h=l+(Math.min(n.length,i.dynamicMainBullets)-1),d=(h+l)/2),n.forEac
2h(t=>{const e=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(t=>`${i.bulletActiveClass}${t}`)].map(t=>"string"==typeof t&&t.includes(" ")?t.split(" "):t).flat();t.classList.remove(...e)}),u.length>1)n.forEach(t=>{const n=M(t);n===s?t.classList.add(...i.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),i.dynamicBullets&&(n>=l&&n<=h&&t.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),n===l&&c(t,"prev"),n===h&&c(t,"next"))});else{const t=n[s];if(t&&t.classList.add(...i.bulletActiveClass.split(" ")),e.isElement&&n.forEach((t,e)=>{t.setAttribute("part",e===s?"bullet-active":"bullet")}),i.dynamicBullets){const t=n[l],e=n[h];for(let t=l;t<=h;t+=1)n[t]&&n[t].classList.add(...`${i.bulletActiveClass}-main`.split(" "));c(t,"prev"),c(e,"next")}}if(i.dynamicBullets){const s=Math.min(n.length,i.dynamicMainBullets+4),r=(a*s-a)/2-d*a,o=t?"right":"left";n.forEach(t=>{t.style[e.isHorizontal()?o:"top"]=`${r}px`})}}u.forEach((t,r)=>{if("fraction"===i.type&&(t.querySelectorAll(ht(i.currentClass)).forEach(t=>{t.textContent=i.formatFractionCurrent(s+1)}),t.querySelectorAll(ht(i.totalClass)).forEach(t=>{t.textContent=i.formatFractionTotal(d)})),"progressbar"===i.type){let n;n=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const r=(s+1)/d;let a=1,o=1;"horizontal"===n?a=r:o=r,t.querySelectorAll(ht(i.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===i.type&&i.renderCustom?(A(t,i.renderCustom(e,s+1,d)),0===r&&n("paginationRender",t)):(0===r&&n("paginationRender",t),n("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass)})}function d(){const t=e.params.pagination;if(l())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let s=e.pagination.el;s=C(s);let r="";if("bullets"===t.type){let s=e.params.loop?Math.ceil(i/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&s>i&&(s=i);for(let i=0;i<s;i+=1)t.renderBullet?r+=t.renderBullet.call(e,i,t.bulletClass):r+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],s.forEach(i=>{"custom"!==t.type&&A(i,r||""),"bullets"===t.type&&e.pagination.bullets.push(...i.querySelectorAll(ht(t.bulletClass)))}),"custom"!==t.type&&n("paginationRender",s[0])}function p(){e.params.pagination=ut(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let i;"string"==typeof t.el&&e.isElement&&(i=e.el.querySelector(t.el)),i||"string"!=typeof t.el||(i=[...document.querySelectorAll(t.el)]),i||(i=t.el),i&&0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(i)&&i.length>1&&(i=[...e.el.querySelectorAll(t.el)],i.length>1&&(i=i.find(t=>T(t,".swiper")[0]===e.el))),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(e.pagination,{el:i}),i=C(i),i.forEach(i=>{"bullets"===t.type&&t.clickable&&i.classList.add(...(t.clickableClass||"").split(" ")),i.classList.add(t.modifierClass+t.type),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(i.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.classList.add(t.progressbarOppositeClass),t.clickable&&i.addEventListener("click",u),e.enabled||i.classList.add(t.lockClass)}))}function f(){const t=e.params.pagination;if(l())return;let i=e.pagination.el;
2i&&(i=C(i),i.forEach(i=>{i.classList.remove(t.hiddenClass),i.classList.remove(t.modifierClass+t.type),i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(i.classList.remove(...(t.clickableClass||"").split(" ")),i.removeEventListener("click",u))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:i}=e.pagination;i=C(i),i.forEach(i=>{i.classList.remove(t.horizontalClass,t.verticalClass),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),s("init",()=>{!1===e.params.pagination.enabled?m():(p(),d(),h())}),s("activeIndexChange",()=>{void 0===e.snapIndex&&h()}),s("snapIndexChange",()=>{h()}),s("snapGridLengthChange",()=>{d(),h()}),s("destroy",()=>{f()}),s("enable disable",()=>{let{el:t}=e.pagination;t&&(t=C(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{h()}),s("click",(t,i)=>{const s=i.target,r=C(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&r&&r.length>0&&!s.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&s===e.navigation.nextEl||e.navigation.prevEl&&s===e.navigation.prevEl))return;const t=r[0].classList.contains(e.params.pagination.hiddenClass);n(!0===t?"paginationShow":"paginationHide"),r.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const m=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=C(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),f()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=C(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),d(),h()},disable:m,render:d,update:h,init:p,destroy:f})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=a();let o,l,h,d,p=!1,f=null,m=null;function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:i}=e,{dragEl:s,el:n}=t,r=e.params.scrollbar,a=e.params.loop?e.progressLoop:e.progress;let o=l,c=(h-l)*a;i?(c=-c,c>0?(o=l-c,c=0):-c+l>h&&(o=h+c)):c<0?(o=l+c,c=0):c+l>h&&(o=h-c),e.isHorizontal()?(s.style.transform=`translate3d(${c}px, 0, 0)`,s.style.width=`${o}px`):(s.style.transform=`translate3d(0px, ${c}px, 0)`,s.style.height=`${o}px`),r.hide&&(clearTimeout(f),n.style.opacity=1,f=setTimeout(()=>{n.style.opacity=0,n.style.transitionDuration="400ms"},1e3))}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{dragEl:i,el:s}=t;i.style.width="",i.style.height="",h=e.isHorizontal()?s.offsetWidth:s.offsetHeight,d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),l="auto"===e.params.scrollbar.dragSize?h*d:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i.style.width=`${l}px`:i.style.height=`${l}px`,s.style.display=d>=1?"none":"",e.params.scrollbar.hide&&(s.style.opacity=0),e.params.watchOverflow&&e.enabled&&t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function v(t){return e.isHorizontal()?t.clientX:t.clientY}function y(t){const{scrollbar:i,rtlTranslate:s}=e,{el:n}=i;let r;r=(v(t)-S(n)[e.isHorizontal()?"left":"top"]-(null!==o?o:l/2))/(h-l),r=Math.max(Math.min(r,1),0),s&&(r=1-r);const a=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*r;e.updateProgress(a),e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}function x(t){const i=e.params.scrollbar,{scrollbar:s,wrapperEl:r}=e,{el:a,dragEl:l}=s;p=!0,o=t.target===l?v(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),r.style.transitionDuration="100ms",l.style.transitionDuration="100ms",y(t),clearTimeout(m),a.style.transitionDuration="0ms",i.hide&&(a.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),n("scrollbarDragStart",t)}function E(t){const{scrollbar:i,wrapperEl:s}=e,{el:r,dragEl:a}=i;p&&(t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1,y(t),s.style.transitionDuration="0ms",r.style.transitionDuration="0ms",a.style.transitionDuration="0ms",n("scrollbarDragMove",t))}function M(t){const i=e.params.scrollbar,{scrollbar:s,wrapperEl:r}=e,{el:a}=s;p&&(p=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",r.style.transitionDuration=""),i.hide&&(clearTimeout(m),m=u(()=>{a.style.opacity=0,a.style.transitionDuration="400ms"},1e3)),n("scrollbarDragEnd",t),i.snapOnRelease&&e.slideToClosest())}function T(t){const{scrollbar:i,params:s}=e,n=i.el;if(!n)return;const a=n,o=!!s.passiveListeners&&{passive:!1,capture:!1},l=!!s.passiveListeners&&{passive:!0,capture:!1};if(!a)return;const c="on"===t?"addEventListener":"removeEventListener";a[c]("pointerdown",x,o),r[c]("pointermove",E,o),r[c]("pointerup",M,l)}function k(){const{scrollbar:t,el:i}=e;e.params.scrollbar=ut(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const s=e.params.scrollbar;if(!s.el)return;let n,a;if("string"==typeof s.el&&e.isElement&&(n=e.el.querySelector(s.el)),n||"string"!=typeof s.el)n||(n=s.el);else if(n=r.querySelectorAll(s.el),!n.length)return;e.params.uniqueNavElements&&"string"==typeof s.el&&n.length>1&&1===i.querySelectorAll(s.el).length&&(n=i.querySelector(s.el)),n.length>0&&(n=n[0]),n.classList.add(e.isHorizontal()?s.horizontalClass:s.verticalClass),n&&(a=n.querySelector(ht(e.params.scrollbar.dragClass)),a||(a=w("div",e.params.scrollbar.dragClass),n.append(a))),Object.assign(t,{el:n,dragEl:a}),s.draggable&&e.params.scrollbar.el&&e.scrollbar.el&&T("on"),n&&n.classList[e.enabled?"remove":"add"](...c(e.params.scrollbar.lockClass))}
2function _(){const t=e.params.scrollbar,i=e.scrollbar.el;i&&i.classList.remove(...c(e.isHorizontal()?t.horizontalClass:t.verticalClass)),e.params.scrollbar.el&&e.scrollbar.el&&T("off")}i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null},s("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const t=e.params.scrollbar;let{el:i}=e.scrollbar;i=C(i),i.forEach(i=>{i.classList.remove(t.horizontalClass,t.verticalClass),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),s("init",()=>{!1===e.params.scrollbar.enabled?P():(k(),b(),g())}),s("update resize observerUpdate lock unlock changeDirection",()=>{b()}),s("setTranslate",()=>{g()}),s("setTransition",(t,i)=>{!function(t){e.params.scrollbar.el&&e.scrollbar.el&&(e.scrollbar.dragEl.style.transitionDuration=`${t}ms`)}(i)}),s("enable disable",()=>{const{el:t}=e.scrollbar;t&&t.classList[e.enabled?"remove":"add"](...c(e.params.scrollbar.lockClass))}),s("destroy",()=>{_()});const P=()=>{e.el.classList.add(...c(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...c(e.params.scrollbar.scrollbarDisabledClass)),_()};Object.assign(e.scrollbar,{enable:()=>{e.el.classList.remove(...c(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...c(e.params.scrollbar.scrollbarDisabledClass)),k(),b(),g()},disable:P,updateSize:b,setTranslate:g,init:k,destroy:_})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({parallax:{enabled:!1}});const n="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(t,i)=>{const{rtl:s}=e,n=s?-1:1,r=t.getAttribute("data-swiper-parallax")||"0";let a=t.getAttribute("data-swiper-parallax-x"),o=t.getAttribute("data-swiper-parallax-y");const l=t.getAttribute("data-swiper-parallax-scale"),c=t.getAttribute("data-swiper-parallax-opacity"),u=t.getAttribute("data-swiper-parallax-rotate");if(a||o?(a=a||"0",o=o||"0"):e.isHorizontal()?(a=r,o="0"):(o=r,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*i*n+"%":a*i*n+"px",o=o.indexOf("%")>=0?parseInt(o,10)*i+"%":o*i+"px",null!=c){const e=c-(c-1)*(1-Math.abs(i));t.style.opacity=e}let h=`translate3d(${a}, ${o}, 0px)`;if(null!=l){h+=` scale(${l-(l-1)*(1-Math.abs(i))})`}if(u&&null!=u){h+=` rotate(${u*i*-1}deg)`}t.style.transform=h},a=()=>{const{el:t,slides:i,progress:s,snapGrid:a,isElement:o}=e,l=y(t,n);e.isElement&&l.push(...y(e.hostEl,n)),l.forEach(t=>{r(t,s)}
2),i.forEach((t,i)=>{let o=t.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(o+=Math.ceil(i/2)-s*(a.length-1)),o=Math.min(Math.max(o,-1),1),t.querySelectorAll(`${n}, [data-swiper-parallax-rotate]`).forEach(t=>{r(t,o)})})};s("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),s("init",()=>{e.params.parallax.enabled&&a()}),s("setTranslate",()=>{e.params.parallax.enabled&&a()}),s("setTransition",(t,i)=>{e.params.parallax.enabled&&function(t){void 0===t&&(t=e.params.speed);const{el:i,hostEl:s}=e,r=[...i.querySelectorAll(n)];e.isElement&&r.push(...s.querySelectorAll(n)),r.forEach(e=>{let i=parseInt(e.getAttribute("data-swiper-parallax-duration"),10)||t;0===t&&(i=0),e.style.transitionDuration=`${i}ms`})}(i)})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=l();i({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let a,o,c=1,u=!1,h=!1,p={x:0,y:0};const f=[],m={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},g={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},b={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v,x=1;function w(){if(f.length<2)return 1;const t=f[0].pageX,e=f[0].pageY,i=f[1].pageX,s=f[1].pageY;return Math.sqrt((i-t)**2+(s-e)**2)}function E(){const t=e.params.zoom,i=m.imageWrapEl.getAttribute("data-swiper-zoom")||t.maxRatio;if(t.limitToOriginalSize&&m.imageEl&&m.imageEl.naturalWidth){const t=m.imageEl.naturalWidth/m.imageEl.offsetWidth;return Math.min(t,i)}return i}function M(t){const i=e.isElement?"swiper-slide":`.${e.params.slideClass}`;return!!t.target.matches(i)||e.slides.filter(e=>e.contains(t.target)).length>0}function k(t){const i=`.${e.params.zoom.containerClass}`;return!!t.target.matches(i)||[...e.hostEl.querySelectorAll(i)].filter(e=>e.contains(t.target)).length>0}function _(t){if("mouse"===t.pointerType&&f.splice(0,f.length),!M(t))return;const i=e.params.zoom;if(a=!1,o=!1,f.push(t),!(f.length<2)){if(a=!0,m.scaleStart=w(),!m.slideEl){m.slideEl=t.target.closest(`.${e.params.slideClass}, swiper-slide`),m.slideEl||(m.slideEl=e.slides[e.activeIndex]);let s=m.slideEl.querySelector(`.${i.containerClass}`);if(s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=s,m.imageWrapEl=s?T(m.imageEl,`.${i.containerClass}`)[0]:void 0,!m.imageWrapEl)return void(m.imageEl=void 0);m.maxRatio=E()}if(m.imageEl){const[t,e]=function(){if(f.length<2)return{x:null,y:null};const t=m.imageEl.getBoundingClientRect();return[(f[0].pageX+(f[1].pageX-f[0].pageX)/2-t.x-r.scrollX)/c,(f[0].pageY+(f[1].pageY-f[0].pageY)/2-t.y-r.scrollY)/c]}();m.originX=t,m.originY=e,m.imageEl.style.transitionDuration="0ms"}u=!0}}function C(t){if(!M(t))return;const i=e.params.zoom,s=e.zoom,n=f.findIndex(e=>e.pointerId===t.pointerId);n>=0&&(f[n]=t),f.length<2||(o=!0,m.scaleMove=w(),m.imageEl&&(s.scale=m.scaleMove/m.scaleStart*c,s.scale>m.maxRatio&&(s.scale=m.maxRatio-1+(s.scale-m.maxRatio+1)**.5),s.scale<i.minRatio&&(s.scale=i.minRatio+1-(i.minRatio-s.scale+1)**.5),m.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`))}function P(t){if(!M(t))return;if("mouse"===t.pointerType&&"pointerout"===t.type)return;const i=e.params.zoom,s=e.zoom,n=f.findIndex(e=>e.pointerId===t.pointerId);n>=0&&f.splice(n,1),a&&o&&(a=!1,o=!1,m.imageEl&&(s.scale=Math.max(Math.min(s.scale,m.maxRatio),i.minRatio),m.imageEl.style.transitionDuration=`${e.params.speed}ms`,m.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`,c=s.scale,u=!1,s.scale>1&&m.slideEl?m.slideEl.classList.add(`${i.zoomedSlideClass}`):s.scale<=1&&m.slideEl&&m.slideEl.classList.remove(`${i.zoomedSlideClass}`),1===s.scale&&(m.originX=0,m.originY=0,m.slideEl=void 0)))}function A(){e.touchEventsData.preventTouchMoveFromPointerMove=!1}function O(t){const i="mouse"===t.pointerType&&e.params.zoom.panOnMouseMove;if(!M(t)||!k(t))return;const s=e.zoom;if(!m.imageEl)return;if(!g.isTouched||!m.slideEl)return void(i&&I(t));if(i)return void I(t);g.isMoved||(g.width=m.imageEl.offsetWidth||m.imageEl.clientWidth,g.height=m.imageEl.offsetHeight||m.imageEl.clientHeight,g.startX=d(m.imageWrapEl,"x")||0,g.startY=d(m.imageWrapEl,"y")||0,m.slideWidth=m.slideEl.offsetWidth,m.slideHeight=m.slideEl.offsetHeight,m.imageWrapEl.style.transitionDuration="0ms");const n=g.width*s.scale,r=g.height*s.scale;g.minX=Math.min(m.slideWidth/2-n/2,0),g.maxX=-g.minX,g.minY=Math.min(m.slideHeight/2-r/2,0),g.maxY=-g.minY,g.touchesCurrent.x=f.length>0?f[0].pageX:t.pageX,g.touchesCurrent.y=f.length>0?f[0].pageY:t.pageY;if(Math.max(Math.abs(g.touchesCurrent.x-g.touchesStart.x),Math.abs(g.touchesCurrent.y-g.touchesStart.y))>5&&(e.allowClick=!1),!g.isMoved&&!u){if(e.isHorizontal()&&(Math.floor(g.minX)===Math.floor(g.startX)&&g.touchesCurrent.x<g.touchesStart.x||Math.floor(g.maxX)===Math.floor(g.startX)&&g.touchesCurrent.x>g.touchesStart.x))return g.isTouched=!1,void A();if(!e.isHorizontal()&&(Math.floor(g.minY)===Math.floor(g.startY)&&g.touchesCurrent.y<g.touchesStart.y||Math.floor(g.maxY)===Math.floor(g.startY)&&g.touchesCurrent.y>g.touchesStart.y))return g.isTouched=!1,void A()}t.cancelable&&t.preventDefault(),t.stopPropagation(),clearTimeout(v),e.touchEventsData.preventTouchMoveFromPointerMove=!0,v=setTimeout(()=>{e.destroyed||A()}),g.isMoved=!0;const a=(s.scale-c)/(m.maxRatio-e.params.zoom.minRatio),{originX:o,originY:l}=m;g.currentX=g.touchesCurrent.x-g.touchesStart.x+g.startX+a*(g.width-2*o),g.currentY=g.touchesCurrent.y-g.touchesStart.y+g.startY+a*(g.height-2*l),g.currentX<g.minX&&(g.currentX=g.minX+1-(g.minX-g.currentX+1)**.8),g.currentX>g.maxX&&(g.currentX=g.maxX-1+(g.currentX-g.maxX+1)**.8),g.currentY<g.minY&&(g.currentY=g.minY+1-(g.minY-g.currentY+1)**.8),g.currentY>g.maxY&&(g.currentY=g.maxY-1+(g.currentY-g.maxY+1)**.8),b.prevPositionX||(b.prevPositionX=g.touchesCurrent.x),b.prevPositionY||(b.prevPositionY=g.touchesCurrent.y),b.prevTime||(b.prevTime=Date.now()),b.x=(g.touchesCurrent.x-b.prevPositionX)/(Date.now()-b.prevTime)/2,b.y=(g.touchesCurrent.y-b.prevPositionY)/(Date.now()-b.prevTime)/2,Math.abs(g.touchesCurrent.x-b.prevPositionX)<2&&(b.x=0),Math.abs(g.touchesCurrent.y-b.prevPositionY)<2&&(b.y=0),b.prevPositionX=g.touchesCurrent.x,b.prevPositionY=g.touchesCurrent.y,b.prevTime=Date.now(),m.imageWrapEl.style.transform=`translate3d(${g.currentX}px, ${g.currentY}px,0)`}function L(){const t=e.zoom;m.slideEl&&e.activeIndex!==e.slides.indexOf(m.slideEl)&&(m.imageEl&&(m.imageEl.style.transform="translate3d(0,
20,0) scale(1)"),m.imageWrapEl&&(m.imageWrapEl.style.transform="translate3d(0,0,0)"),m.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),t.scale=1,c=1,m.slideEl=void 0,m.imageEl=void 0,m.imageWrapEl=void 0,m.originX=0,m.originY=0)}function I(t){if(c<=1||!m.imageWrapEl)return;if(!M(t)||!k(t))return;const e=r.getComputedStyle(m.imageWrapEl).transform,i=new r.DOMMatrix(e);if(!h)return h=!0,p.x=t.clientX,p.y=t.clientY,g.startX=i.e,g.startY=i.f,g.width=m.imageEl.offsetWidth||m.imageEl.clientWidth,g.height=m.imageEl.offsetHeight||m.imageEl.clientHeight,m.slideWidth=m.slideEl.offsetWidth,void(m.slideHeight=m.slideEl.offsetHeight);const s=-3*(t.clientX-p.x),n=-3*(t.clientY-p.y),a=g.width*c,o=g.height*c,l=m.slideWidth,u=m.slideHeight,d=Math.min(l/2-a/2,0),f=-d,b=Math.min(u/2-o/2,0),v=-b,y=Math.max(Math.min(g.startX+s,f),d),x=Math.max(Math.min(g.startY+n,v),b);m.imageWrapEl.style.transitionDuration="0ms",m.imageWrapEl.style.transform=`translate3d(${y}px, ${x}px, 0)`,p.x=t.clientX,p.y=t.clientY,g.startX=y,g.startY=x,g.currentX=y,g.currentY=x}function D(t){const i=e.zoom,s=e.params.zoom;if(!m.slideEl){t&&t.target&&(m.slideEl=t.target.closest(`.${e.params.slideClass}, swiper-slide`)),m.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?m.slideEl=y(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:m.slideEl=e.slides[e.activeIndex]);let i=m.slideEl.querySelector(`.${s.containerClass}`);i&&(i=i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=i,m.imageWrapEl=i?T(m.imageEl,`.${s.containerClass}`)[0]:void 0}if(!m.imageEl||!m.imageWrapEl)return;let n,a,o,l,u,h,d,p,f,b,v,x,w,M,k,_,C,P;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),m.slideEl.classList.add(`${s.zoomedSlideClass}`),void 0===g.touchesStart.x&&t?(n=t.pageX,a=t.pageY):(n=g.touchesStart.x,a=g.touchesStart.y);const A=c,O="number"==typeof t?t:null;1===c&&O&&(n=void 0,a=void 0,g.touchesStart.x=void 0,g.touchesStart.y=void 0);const L=E();i.scale=O||L,c=O||L,!t||1===c&&O?(d=0,p=0):(C=m.slideEl.offsetWidth,P=m.slideEl.offsetHeight,o=S(m.slideEl).left+r.scrollX,l=S(m.slideEl).top+r.scrollY,u=o+C/2-n,h=l+P/2-a,f=m.imageEl.offsetWidth||m.imageEl.clientWidth,b=m.imageEl.offsetHeight||m.imageEl.clientHeight,v=f*i.scale,x=b*i.scale,w=Math.min(C/2-v/2,0),M=Math.min(P/2-x/2,0),k=-w,_=-M,A>0&&O&&"number"==typeof g.currentX&&"number"==typeof g.currentY?(d=g.currentX*i.scale/A,p=g.currentY*i.scale/A):(d=u*i.scale,p=h*i.scale),d<w&&(d=w),d>k&&(d=k),p<M&&(p=M),p>_&&(p=_)),O&&1===i.scale&&(m.originX=0,m.originY=0),g.currentX=d,g.currentY=p,m.imageWrapEl.style.transitionDuration="300ms",m.imageWrapEl.style.transform=`translate3d(${d}px, ${p}px,0)`,m.imageEl.style.transitionDuration="300ms",m.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`}function N(){const t=e.zoom,i=e.params.zoom;if(!m.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?m.slideEl=y(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:m.slideEl=e.slides[e.activeIndex];let t=m.slideEl.querySelector(`.${i.containerClass}`);t&&(t=t.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=t,m.imageWrapEl=t?T(m.imageEl,`.${i.containerClass}`)[0]:void 0}m.imageEl&&m.imageWrapEl&&(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),t.scale=1,c=1,g.currentX=void 0,g.currentY=void 0,g.touchesStart.x=void 0,g.touchesStart.y=void 0,m.imageWrapEl.style.transitionDuration="300ms",m.imageWrapEl.style.transform="translate3d(0,0,0)",m.imageEl.style.transitionDuration="300ms",m.imageEl.style.transform="translate3d(0,0,0) scale(1)",m.slideEl.classList.remove(`${i.zoomedSlideClass}`),m.slideEl=void 0,m.originX=0,m.originY=0,e.params.zoom.panOnMouseMove&&(p={x:0,y:0},h&&(h=!1,g.startX=0,g.startY=0)))}function R(t){const i=e.zoom;i.scale&&1!==i.scale?N():D(t)}function F(){return{passiveListener:!!e.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!e.params.passiveListeners||{passive:!1,capture:!0}}}function $(){const t=e.zoom;if(t.enabled)return;t.enabled=!0;const{passiveListener:i,activeListenerWithCapture:s}
2=F();e.wrapperEl.addEventListener("pointerdown",_,i),e.wrapperEl.addEventListener("pointermove",C,s),["pointerup","pointercancel","pointerout"].forEach(t=>{e.wrapperEl.addEventListener(t,P,i)}),e.wrapperEl.addEventListener("pointermove",O,s)}function z(){const t=e.zoom;if(!t.enabled)return;t.enabled=!1;const{passiveListener:i,activeListenerWithCapture:s}=F();e.wrapperEl.removeEventListener("pointerdown",_,i),e.wrapperEl.removeEventListener("pointermove",C,s),["pointerup","pointercancel","pointerout"].forEach(t=>{e.wrapperEl.removeEventListener(t,P,i)}),e.wrapperEl.removeEventListener("pointermove",O,s)}Object.defineProperty(e.zoom,"scale",{get(){return x},set(t){if(x!==t){const e=m.imageEl,i=m.slideEl;n("zoomChange",t,e,i)}x=t}}),s("init",()=>{e.params.zoom.enabled&&$()}),s("destroy",()=>{z()}),s("touchStart",(t,i)=>{e.zoom.enabled&&function(t){const i=e.device;if(!m.imageEl)return;if(g.isTouched)return;i.android&&t.cancelable&&t.preventDefault(),g.isTouched=!0;const s=f.length>0?f[0]:t;g.touchesStart.x=s.pageX,g.touchesStart.y=s.pageY}(i)}),s("touchEnd",(t,i)=>{e.zoom.enabled&&function(){const t=e.zoom;if(f.length=0,!m.imageEl)return;if(!g.isTouched||!g.isMoved)return g.isTouched=!1,void(g.isMoved=!1);g.isTouched=!1,g.isMoved=!1;let i=300,s=300;const n=b.x*i,r=g.currentX+n,a=b.y*s,o=g.currentY+a;0!==b.x&&(i=Math.abs((r-g.currentX)/b.x)),0!==b.y&&(s=Math.abs((o-g.currentY)/b.y));const l=Math.max(i,s);g.currentX=r,g.currentY=o;const c=g.width*t.scale,u=g.height*t.scale;g.minX=Math.min(m.slideWidth/2-c/2,0),g.maxX=-g.minX,g.minY=Math.min(m.slideHeight/2-u/2,0),g.maxY=-g.minY,g.currentX=Math.max(Math.min(g.currentX,g.maxX),g.minX),g.currentY=Math.max(Math.min(g.currentY,g.maxY),g.minY),m.imageWrapEl.style.transitionDuration=`${l}ms`,m.imageWrapEl.style.transform=`translate3d(${g.currentX}px, ${g.currentY}px,0)`}()}),s("doubleTap",(t,i)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&R(i)}),s("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&L()}),s("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&L()}),Object.assign(e.zoom,{enable:$,disable:z,in:D,out:N,toggle:R})},function(t){let{swiper:e,extendParams:i,on:s}=t;function n(t,e){const i=function(){let t,e,i;return(s,n)=>{for(e=-1,t=s.length;t-e>1;)i=t+e>>1,s[i]<=n?e=i:t=i;return t}}();let s,n;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(n=i(this.x,t),s=n-1,(t-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function r(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0},s("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof e.params.controller.control||e.params.controller.control instanceof HTMLElement)){return void("string"==typeof e.params.controller.control?[...document.querySelectorAll(e.params.controller.control)]:[e.params.controller.control]).forEach(t=>{if(e.controller.control||(e.controller.control=[]),t&&t.swiper)e.controller.control.push(t.swiper);else if(t){const i=`${e.params.eventsPrefix}init`,s=n=>{e.controller.control.push(n.detail[0]),e.update(),t.removeEventListener(i,s)};t.addEventListener(i,s)}})}e.controller.control=e.params.controller.control}),s("update",()=>{r()}),s("resize",()=>{r()}),s("observerUpdate",()=>{r()}),s("setTranslate",(t,i,s)=>{e.controller.control&&!e.controller.control.destroyed&&e.controller.setTranslate(i,s)}),s("setTransition",(t,i,s)=>{e.controller.control&&!e.controller.control.destroyed&&e.controller.setTransition(i,s)}),Object.assign(e.controller,{setTranslate:function(t,i){const s=e.controller.control;let r,a;const o=e.constructor;function l(t){if(t.destroyed)return;const i=e.rtlTranslate?-e.translate:e.translate;"slide"===e.params.controller.by&&(!function(t){e.controller.spline=e.params.loop?new n(e.slidesGrid,t.slidesGrid):new n(e.snapGrid,t.snapGrid)}(t),a=-e.controller.spline.interpolate(-i)),a&&"container"!==e.params.controller.by||(r=(t.maxTranslate()-t.minTranslate())/(e.maxTranslate()-e.minTranslate()),!Number.isNaN(r)&&Number.isFinite(r)||(r=1),a=(i-e.minTranslate())*r+t.minTranslate()),e.params.controller.inverse&&(a=t.maxTranslate()-a),t.updateProgress(a),t.setTranslate(a,e),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(s))for(let t=0;t<s.length;t+=1)s[t]!==i&&s[t]instanceof o&&l(s[t]);else s instanceof o&&i!==s&&l(s)},setTransition:function(t,i){const s=e.constructor,n=e.controller.control;let r;function a(i){i.destroyed||(i.setTransition(t,e),0!==t&&(i.transitionStart(),i.params.autoHeight&&u(()=>{i.updateAutoHeight()}),k(i.wrapperEl,()=>{n&&i.transitionEnd()})))}if(Array.isArray(n))for(r=0;r<n.length;r+=1)n[r]!==i&&n[r]instanceof s&&a(n[r]);else n instanceof s&&i!==n&&a(n)}})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,
2scrollOnFocus:!0}}),e.a11y={clicked:!1};let n,r,o=null,l=(new Date).getTime();function c(t){const e=o;0!==e.length&&A(e,t)}function u(t){(t=C(t)).forEach(t=>{t.setAttribute("tabIndex","0")})}function h(t){(t=C(t)).forEach(t=>{t.setAttribute("tabIndex","-1")})}function d(t,e){(t=C(t)).forEach(t=>{t.setAttribute("role",e)})}function p(t,e){(t=C(t)).forEach(t=>{t.setAttribute("aria-roledescription",e)})}function f(t,e){(t=C(t)).forEach(t=>{t.setAttribute("aria-label",e)})}function m(t){(t=C(t)).forEach(t=>{t.setAttribute("aria-disabled",!0)})}function g(t){(t=C(t)).forEach(t=>{t.setAttribute("aria-disabled",!1)})}function b(t){if(13!==t.keyCode&&32!==t.keyCode)return;const i=e.params.a11y,s=t.target;if(!e.pagination||!e.pagination.el||s!==e.pagination.el&&!e.pagination.el.contains(t.target)||t.target.matches(ht(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=C(e.navigation.prevEl);C(e.navigation.nextEl).includes(s)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?c(i.lastSlideMessage):c(i.nextSlideMessage)),t.includes(s)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?c(i.firstSlideMessage):c(i.prevSlideMessage))}e.pagination&&s.matches(ht(e.params.pagination.bulletClass))&&s.click()}}function v(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function y(){return v()&&e.params.pagination.clickable}const x=(t,e,i)=>{u(t),"BUTTON"!==t.tagName&&(d(t,"button"),t.addEventListener("keydown",b)),f(t,i),function(t,e){(t=C(t)).forEach(t=>{t.setAttribute("aria-controls",e)})}(t,e)},S=t=>{r&&r!==t.target&&!r.contains(t.target)&&(n=!0),e.a11y.clicked=!0},E=()=>{n=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},T=t=>{l=(new Date).getTime()},k=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus)return;if((new Date).getTime()-l<100)return;const i=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!i||!e.slides.includes(i))return;r=i;const s=e.slides.indexOf(i)===e.activeIndex,a=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(i);s||a||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{n||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(i.getAttribute("data-swiper-slide-index"))),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(i)),0),n=!1)}))},_=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&p(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&d(e.slides,t.slideRole);const i=e.slides.length;t.slideLabelMessage&&e.slides.forEach((s,n)=>{const r=e.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):n;f(s,t.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,i))})},P=()=>{const t=e.params.a11y;e.el.append(o);const i=e.el;t.containerRoleDescriptionMessage&&p(i,t.containerRoleDescriptionMessage),t.containerMessage&&f(i,t.containerMessage),t.containerRole&&d(i,t.containerRole);const s=e.wrapperEl,n=t.id||s.getAttribute("id")||`swiper-wrapper-${r=16,void 0===r&&(r=16),"x".repeat(r).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`;var r;const l=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";var c;c=n,C(s).forEach(t=>{t.setAttribute("id",c)}),function(t,e){(t=C(t)).forEach(t=>{t.setAttribute("aria-live",e)})}(s,l),_();let{nextEl:u,prevEl:h}=e.navigation?e.navigation:{};if(u=C(u),h=C(h),u&&u.forEach(e=>x(e,n,t.nextSlideMessage)),h&&h.forEach(e=>x(e,n,t.prevSlideMessage)),y()){C(e.pagination.el).forEach(t=>{t.addEventListener("keydown",b)})}a().addEventListener("visibilitychange",T),e.el.addEventListener("focus",k,!0),e.el.addEventListener("focus",k,!0),e.el.addEventListener("pointerdown",S,!0),e.el.addEventListener("pointerup",E,!0)};s("beforeInit",()=>{o=w("span",e.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),s("afterInit",()=>{e.params.a11y.enabled&&P()}),s("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&_()}),s("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:i}=e.navigation;i&&(e.isBeginning?(m(i),h(i)):(g(i),u(i))),t&&(e.isEnd?(m(t),h(t)):(g(t),u(t)))}()}),s("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;
2v()&&e.pagination.bullets.forEach(i=>{e.params.pagination.clickable&&(u(i),e.params.pagination.renderBullet||(d(i,"button"),f(i,t.paginationBulletMessage.replace(/\{\{index\}\}/,M(i)+1)))),i.matches(ht(e.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")})}()}),s("destroy",()=>{e.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:t,prevEl:i}=e.navigation?e.navigation:{};t=C(t),i=C(i),t&&t.forEach(t=>t.removeEventListener("keydown",b)),i&&i.forEach(t=>t.removeEventListener("keydown",b)),y()&&C(e.pagination.el).forEach(t=>{t.removeEventListener("keydown",b)});a().removeEventListener("visibilitychange",T),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",k,!0),e.el.removeEventListener("pointerdown",S,!0),e.el.removeEventListener("pointerup",E,!0))}()})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let n=!1,r={};const a=t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=t=>{const e=l();let i;i=t?new URL(t):e.location;const s=i.pathname.slice(1).split("/").filter(t=>""!==t),n=s.length;return{key:s[n-2],value:s[n-1]}},c=(t,i)=>{const s=l();if(!n||!e.params.history.enabled)return;let r;r=e.params.url?new URL(e.params.url):s.location;const o=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${i}"]`):e.slides[i];let c=a(o.getAttribute("data-history"));if(e.params.history.root.length>0){let i=e.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),c=`${i}/${t?`${t}/`:""}${c}`}else r.pathname.includes(t)||(c=`${t?`${t}/`:""}${c}`);e.params.history.keepQuery&&(c+=r.search);const u=s.history.state;u&&u.value===c||(e.params.history.replaceState?s.history.replaceState({value:c},null,c):s.history.pushState({value:c},null,c))},u=(t,i,s)=>{if(i)for(let n=0,r=e.slides.length;n<r;n+=1){const r=e.slides[n];if(a(r.getAttribute("data-history"))===i){const i=e.getSlideIndex(r);e.slideTo(i,t,s)}}else e.slideTo(0,t,s)},h=()=>{r=o(e.params.url),u(e.params.speed,r.value,!1)};s("init",()=>{e.params.history.enabled&&(()=>{const t=l();if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);n=!0,r=o(e.params.url),r.key||r.value?(u(0,r.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",h)):e.params.history.replaceState||t.addEventListener("popstate",h)}})()}),s("destroy",()=>{e.params.history.enabled&&(()=>{const t=l();e.params.history.replaceState||t.removeEventListener("popstate",h)})()}),s("transitionEnd _freeModeNoMomentumRelease",()=>{n&&c(e.params.history.key,e.activeIndex)}),s("slideChange",()=>{n&&e.params.cssMode&&c(e.params.history.key,e.activeIndex)})},function(t){let{swiper:e,extendParams:i,emit:s,on:n}=t,r=!1;const o=a(),c=l();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(t,i){if(e.virtual&&e.params.virtual.enabled){const t=e.slides.find(t=>t.getAttribute("data-hash")===i);if(!t)return 0;return parseInt(t.getAttribute("data-swiper-slide-index"),10)}return e.getSlideIndex(y(e.slidesEl,`.${e.params.slideClass}[data-hash="${i}"], swiper-slide[data-hash="${i}"]`)[0])}}});const u=()=>{s("hashChange");const t=o.location.hash.replace("#",""),i=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex];if(t!==(i?i.getAttribute("data-hash"):"")){const i=e.params.hashNavigation.getSlideIndex(e,t);if(void 0===i||Number.isNaN(i))return;e.slideTo(i)}},h=()=>{if(!r||!e.params.hashNavigation.enabled)return;const t=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],i=t?t.getAttribute("data-hash")||t.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&c.history&&c.history.replaceState?(c.history.replaceState(null,null,`#${i}`||""),s("hashSet")):(o.location.hash=i||"",s("hashSet"))};n("init",()=>{e.params.hashNavigation.enabled&&(()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;r=!0;const t=o.location.hash.replace("#","");if(t){const i=0,s=e.params.hashNavigation.getSlideIndex(e,t);e.slideTo(s||0,i,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&c.addEventListener("hashchange",u)})()}),n("destroy",()=>{e.params.hashNavigation.enabled&&e.params.hashNavigation.watchState&&c.removeEventListener("hashchange",u)}),n("transitionEnd _freeModeNoMomentumRelease",()=>{r&&h()}),n("slideChange",()=>{r&&e.params.cssMode&&h()})},function(t){let e,i,{swiper:s,extendParams:n,on:r,emit:o,params:l}=t;s.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let c,u,h,d,p,f,m,g,b=l&&l.autoplay?l.autoplay.delay:3e3,v=l&&l.autoplay?l.autoplay.delay:3e3,y=(new Date).getTime();function x(t){s&&!s.destroyed&&s.wrapperEl&&t.target===s.wrapperEl&&(s.wrapperEl.removeEventListener("transitionend",x),g||t.detail&&t.detail.bySwiperTouchMove||k())}const w=()=>
2{if(s.destroyed||!s.autoplay.running)return;s.autoplay.paused?u=!0:u&&(v=c,u=!1);const t=s.autoplay.paused?c:y+v-(new Date).getTime();s.autoplay.timeLeft=t,o("autoplayTimeLeft",t,t/b),i=requestAnimationFrame(()=>{w()})},S=t=>{if(s.destroyed||!s.autoplay.running)return;cancelAnimationFrame(i),w();let n=void 0===t?s.params.autoplay.delay:t;b=s.params.autoplay.delay,v=s.params.autoplay.delay;const r=(()=>{let t;if(t=s.virtual&&s.params.virtual.enabled?s.slides.find(t=>t.classList.contains("swiper-slide-active")):s.slides[s.activeIndex],!t)return;return parseInt(t.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===t&&(n=r,b=r,v=r),c=n;const a=s.params.speed,l=()=>{s&&!s.destroyed&&(s.params.autoplay.reverseDirection?!s.isBeginning||s.params.loop||s.params.rewind?(s.slidePrev(a,!0,!0),o("autoplay")):s.params.autoplay.stopOnLastSlide||(s.slideTo(s.slides.length-1,a,!0,!0),o("autoplay")):!s.isEnd||s.params.loop||s.params.rewind?(s.slideNext(a,!0,!0),o("autoplay")):s.params.autoplay.stopOnLastSlide||(s.slideTo(0,a,!0,!0),o("autoplay")),s.params.cssMode&&(y=(new Date).getTime(),requestAnimationFrame(()=>{S()})))};return n>0?(clearTimeout(e),e=setTimeout(()=>{l()},n)):requestAnimationFrame(()=>{l()}),n},E=()=>{y=(new Date).getTime(),s.autoplay.running=!0,S(),o("autoplayStart")},M=()=>{s.autoplay.running=!1,clearTimeout(e),cancelAnimationFrame(i),o("autoplayStop")},T=(t,i)=>{if(s.destroyed||!s.autoplay.running)return;clearTimeout(e),t||(m=!0);const n=()=>{o("autoplayPause"),s.params.autoplay.waitForTransition?s.wrapperEl.addEventListener("transitionend",x):k()};if(s.autoplay.paused=!0,i)return f&&(c=s.params.autoplay.delay),f=!1,void n();const r=c||s.params.autoplay.delay;c=r-((new Date).getTime()-y),s.isEnd&&c<0&&!s.params.loop||(c<0&&(c=0),n())},k=()=>{s.isEnd&&c<0&&!s.params.loop||s.destroyed||!s.autoplay.running||(y=(new Date).getTime(),m?(m=!1,S(c)):S(),s.autoplay.paused=!1,o("autoplayResume"))},_=()=>{if(s.destroyed||!s.autoplay.running)return;const t=a();"hidden"===t.visibilityState&&(m=!0,T(!0)),"visible"===t.visibilityState&&k()},C=t=>{"mouse"===t.pointerType&&(m=!0,g=!0,s.animating||s.autoplay.paused||T(!0))},P=t=>{"mouse"===t.pointerType&&(g=!1,s.autoplay.paused&&k())};r("init",()=>{s.params.autoplay.enabled&&(s.params.autoplay.pauseOnMouseEnter&&(s.el.addEventListener("pointerenter",C),s.el.addEventListener("pointerleave",P)),a().addEventListener("visibilitychange",_),E())}),r("destroy",()=>{s.el&&"string"!=typeof s.el&&(s.el.removeEventListener("pointerenter",C),s.el.removeEventListener("pointerleave",P)),a().removeEventListener("visibilitychange",_),s.autoplay.running&&M()}),r("_freeModeStaticRelease",()=>{(d||m)&&k()}),r("_freeModeNoMomentumRelease",()=>{s.params.autoplay.disableOnInteraction?M():T(!0,!0)}),r("beforeTransitionStart",(t,e,i)=>{!s.destroyed&&s.autoplay.running&&(i||!s.params.autoplay.disableOnInteraction?T(!0,!0):M())}),r("sliderFirstMove",()=>{!s.destroyed&&s.autoplay.running&&(s.params.autoplay.disableOnInteraction?M():(h=!0,d=!1,m=!1,p=setTimeout(()=>{m=!0,d=!0,T(!0)},200)))}),r("touchEnd",()=>{if(!s.destroyed&&s.autoplay.running&&h){if(clearTimeout(p),clearTimeout(e),s.params.autoplay.disableOnInteraction)return d=!1,void(h=!1);d&&s.params.cssMode&&k(),d=!1,h=!1}}),r("slideChange",()=>{!s.destroyed&&s.autoplay.running&&(f=!0)}),Object.assign(s.autoplay,{start:E,stop:M,pause:T,resume:k})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let n=!1,r=!1;function o(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const i=t.clickedIndex,s=t.clickedSlide;if(s&&s.classList.contains(e.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let n;n=t.params.loop?parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,e.params.loop?e.slideToLoop(n):e.slideTo(n)}function l(){const{thumbs:t}=e.params;if(n)return!1;n=!0;const i=e.constructor;if(t.swiper instanceof i){if(t.swiper.destroyed)return n=!1,!1;e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}
2),e.thumbs.swiper.update()}else if(p(t.swiper)){const s=Object.assign({},t.swiper);Object.assign(s,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(s),r=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",o),!0}function c(t){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let n=1;const r=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(n=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(n=1),n=Math.floor(n),i.slides.forEach(t=>t.classList.remove(r)),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let t=0;t<n;t+=1)y(i.slidesEl,`[data-swiper-slide-index="${e.realIndex+t}"]`).forEach(t=>{t.classList.add(r)});else for(let t=0;t<n;t+=1)i.slides[e.realIndex+t]&&i.slides[e.realIndex+t].classList.add(r);const a=e.params.thumbs.autoScrollOffset,o=a&&!i.params.loop;if(e.realIndex!==i.realIndex||o){const n=i.activeIndex;let r,l;if(i.params.loop){const t=i.slides.find(t=>t.getAttribute("data-swiper-slide-index")===`${e.realIndex}`);r=i.slides.indexOf(t),l=e.activeIndex>e.previousIndex?"next":"prev"}else r=e.realIndex,l=r>e.previousIndex?"next":"prev";o&&(r+="next"===l?a:-1*a),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>n?r-Math.floor(s/2)+1:r+Math.floor(s/2)-1:r>n&&i.params.slidesPerGroup,i.slideTo(r,t?0:void 0))}}e.thumbs={swiper:null},s("beforeInit",()=>{const{thumbs:t}=e.params;if(t&&t.swiper)if("string"==typeof t.swiper||t.swiper instanceof HTMLElement){const i=a(),s=()=>{const s="string"==typeof t.swiper?i.querySelector(t.swiper):t.swiper;if(s&&s.swiper)t.swiper=s.swiper,l(),c(!0);else if(s){const i=`${e.params.eventsPrefix}init`,n=r=>{t.swiper=r.detail[0],s.removeEventListener(i,n),l(),c(!0),t.swiper.update(),e.update()};s.addEventListener(i,n)}return s},n=()=>
2{if(e.destroyed)return;s()||requestAnimationFrame(n)};requestAnimationFrame(n)}else l(),c(!0)}),s("slideChange update resize observerUpdate",()=>{c()}),s("setTransition",(t,i)=>{const s=e.thumbs.swiper;s&&!s.destroyed&&s.setTransition(i)}),s("beforeDestroy",()=>{const t=e.thumbs.swiper;t&&!t.destroyed&&r&&t.destroy()}),Object.assign(e.thumbs,{init:l,update:c})},function(t){let{swiper:e,extendParams:i,emit:s,once:n}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){if(e.params.cssMode)return;const t=e.getTranslate();e.setTranslate(t),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){if(e.params.cssMode)return;const{touchEventsData:t,touches:i}=e;0===t.velocities.length&&t.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:h()})},onTouchEnd:function(t){let{currentPos:i}=t;if(e.params.cssMode)return;const{params:r,wrapperEl:a,rtlTranslate:o,snapGrid:l,touchEventsData:c}=e,u=h()-c.touchStartTime;if(i<-e.minTranslate())e.slideTo(e.activeIndex);else if(i>-e.maxTranslate())e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1);else{if(r.freeMode.momentum){if(c.velocities.length>1){const t=c.velocities.pop(),i=c.velocities.pop(),s=t.position-i.position,n=t.time-i.time;e.velocity=s/n,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(n>150||h()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeMode.momentumVelocityRatio,c.velocities.length=0;let t=1e3*r.freeMode.momentumRatio;const i=e.velocity*t;let u=e.translate+i;o&&(u=-u);let d,p=!1;const f=20*Math.abs(e.velocity)*r.freeMode.momentumBounceRatio;let m;if(u<e.maxTranslate())r.freeMode.momentumBounce?(u+e.maxTranslate()<-f&&(u=e.maxTranslate()-f),d=e.maxTranslate(),p=!0,c.allowMomentumBounce=!0):u=e.maxTranslate(),r.loop&&r.centeredSlides&&(m=!0);else if(u>e.minTranslate())r.freeMode.momentumBounce?(u-e.minTranslate()>f&&(u=e.minTranslate()+f),d=e.minTranslate(),p=!0,c.allowMomentumBounce=!0):u=e.minTranslate(),r.loop&&r.centeredSlides&&(m=!0);else if(r.freeMode.sticky){let t;for(let e=0;e<l.length;e+=1)if(l[e]>-u){t=e;break}u=Math.abs(l[t]-u)<Math.abs(l[t-1]-u)||"next"===e.swipeDirection?l[t]:l[t-1],u=-u}if(m&&n("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(t=o?Math.abs((-u-e.translate)/e.velocity):Math.abs((u-e.translate)/e.velocity),r.freeMode.sticky){const i=Math.abs((o?-u:u)-e.translate),s=e.slidesSizesGrid[e.activeIndex];t=i<s?r.speed:i<2*s?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void e.slideToClosest();r.freeMode.momentumBounce&&p?(e.updateProgress(d),e.setTransition(t),e.setTranslate(u),e.transitionStart(!0,e.swipeDirection),e.animating=!0,k(a,()=>{e&&!e.destroyed&&c.allowMomentumBounce&&(s("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(d),k(a,()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(s("_freeModeNoMomentumRelease"),e.updateProgress(u),e.setTransition(t),e.setTranslate(u),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,k(a,()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(u),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(r.freeMode.sticky)return void e.slideToClosest();r.freeMode&&s("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||u>=r.longSwipesMs)&&(s("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})},function(t){let e,i,s,n,{swiper:r,extendParams:a,on:o}=t;a({grid:{rows:1,fill:"column"}});const l=()=>{let t=r.params.spaceBetween;return"string"==typeof t&&t.indexOf("%")>=0?t=parseFloat(t.replace("%",""))/100*r.size:"string"==typeof t&&(t=parseFloat(t)),t};o("init",()=>{n=r.params.grid&&r.params.grid.rows>1}),o("update",()=>{const{params:t,el:e}=r,i=t.grid&&t.grid.rows>1;n&&!i?(e.classList.remove(`${t.containerModifierClass}grid`,`${t.containerModifierClass}grid-column`),s=1,r.emitContainerClasses()):!n&&i&&(e.classList.add(`${t.containerModifierClass}grid`),"column"===t.grid.fill&&e.classList.add(`${t.containerModifierClass}grid-column`),r.emitContainerClasses()),n=i}),r.grid={initSlides:t=>{const{slidesPerView:n}=r.params,{rows:a,fill:o}=r.params.grid,l=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:t.length;s=Math.floor(l/a),e=Math.floor(l/a)===l/a?l:Math.ceil(l/a)*a,"auto"!==n&&"row"===o&&(e=Math.max(e,n*a)),i=e/a},unsetSlides:()=>
vendor: 4,569 bytes, line 2
2{r.slides&&r.slides.forEach(t=>{t.swiperSlideGridSet&&(t.style.height="",t.style[r.getDirectionLabel("margin-top")]="")})},updateSlide:(t,n,a)=>{const{slidesPerGroup:o}=r.params,c=l(),{rows:u,fill:h}=r.params.grid,d=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:a.length;let p,f,m;if("row"===h&&o>1){const i=Math.floor(t/(o*u)),s=t-u*o*i,r=0===i?o:Math.min(Math.ceil((d-i*u*o)/u),o);m=Math.floor(s/r),f=s-m*r+i*o,p=f+m*e/u,n.style.order=p}else"column"===h?(f=Math.floor(t/u),m=t-f*u,(f>s||f===s&&m===u-1)&&(m+=1,m>=u&&(m=0,f+=1))):(m=Math.floor(t/i),f=t-m*i);n.row=m,n.column=f,n.style.height=`calc((100% - ${(u-1)*c}px) / ${u})`,n.style[r.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",n.swiperSlideGridSet=!0},updateWrapperSize:(t,i)=>{const{centeredSlides:s,roundLengths:n}=r.params,a=l(),{rows:o}=r.params.grid;if(r.virtualSize=(t+a)*e,r.virtualSize=Math.ceil(r.virtualSize/o)-a,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+a}px`),s){const t=[];for(let e=0;e<i.length;e+=1){let s=i[e];n&&(s=Math.floor(s)),i[e]<r.virtualSize+i[0]&&t.push(s)}i.splice(0,i.length),i.push(...t)}}}},function(t){let{swiper:e}=t;Object.assign(e,{appendSlide:dt.bind(e),prependSlide:pt.bind(e),addSlide:ft.bind(e),removeSlide:mt.bind(e),removeAllSlides:gt.bind(e)})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({fadeEffect:{crossFade:!1}}),bt({effect:"fade",swiper:e,on:s,setTranslate:()=>{const{slides:t}=e;e.params.fadeEffect;for(let i=0;i<t.length;i+=1){const t=e.slides[i];let s=-t.swiperSlideOffset;e.params.virtualTranslate||(s-=e.translate);let n=0;e.isHorizontal()||(n=s,s=0);const r=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t.progress),0):1+Math.min(Math.max(t.progress,-1),0),a=vt(0,t);a.style.opacity=r,a.style.transform=`translate3d(${s}px, ${n}px, 0px)`}},setTransition:t=>{const i=e.slides.map(t=>v(t));i.forEach(e=>{e.style.transitionDuration=`${t}ms`}),yt({swiper:e,duration:t,transformElements:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const n=(t,e,i)=>{let s=i?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),n=i?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");s||(s=w("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"left":"top")).split(" ")),t.append(s)),n||(n=w("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"right":"bottom")).split(" ")),t.append(n)),s&&(s.style.opacity=Math.max(-e,0)),n&&(n.style.opacity=Math.max(e,0))};bt({effect:"cube",swiper:e,on:s,setTranslate:()=>{const{el:t,wrapperEl:i,slides:s,width:r,height:a,rtlTranslate:o,size:l,browser:c}=e,u=P(e),h=e.params.cubeEffect,d=e.isHorizontal(),p=e.virtual&&e.params.virtual.enabled;let f,m=0;h.shadow&&(d?(f=e.wrapperEl.querySelector(".swiper-cube-shadow"),f||(f=w("div","swiper-cube-shadow"),e.wrapperEl.append(f)),f.style.height=`${r}px`):(f=t.querySelector(".swiper-cube-shadow"),f||(f=w("div","swiper-cube-shadow"),t.append(f))));for(let t=0;t<s.length;t+=1){const e=s[t];let i=t;p&&(i=parseInt(e.getAttribute("data-swiper-slide-index"),10));let r=90*i,a=Math.floor(r/360);o&&(r=-r,a=Math.floor(-r/360));const c=Math.max(Math.min(e.progress,1),-1);let f=0,g=0,b=0;i%4==0?(f=4*-a*l,b=0):(i-1)%4==0?(f=0,b=4*-a*l):(i-2)%4==0?(f=l+4*a*l,b=l):(i-3)%4==0&&(f=-l,b=3*l+4*l*a),o&&(f=-f),d||(g=f,f=0);const v=`rotateX(${u(d?0:-r)}deg) rotateY(${u(d?r:0)}deg) translate3d(${f}px, ${g}px, ${b}px)`;c<=1&&c>-1&&(m=90*i+90*c,o&&(m=90*-i-90*c)),e.style.transform=v,h.slideShadows&&n(e,c,d)}if(i.style.transformOrigin=`50% 50% -${l/2}px`,i.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,h.shadow)if(d)f.style.transform=`translate3d(0px, ${r/2+h.shadowOffset}px, ${-r/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${h.shadowScale})`;else{const t=Math.abs(m)-90*Math.floor(Math.abs(m)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),i=h.shadowScale,s=h.shadowScale/e,n=h.shadowOffset;f.style.transform=`scale3d(${i}, 1, ${s}) translate3d(0px, ${a/2+n}px, ${-a/2/s}px) rotateX(-89.99deg)`}const g=(c.isSafari||c.isWebView)&&c.needPerspectiveFix?-l/2:0;i.style.transform=`translate3d(0px,0,${g}px) rotateX(${u(e.isHorizontal()?0:m)}deg) rotateY(${u(e.isHorizontal()?-m:0)}deg)`,i.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:t=>{const{el:i,slides:s}=e;
2if(s.forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=`${t}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const e=i.querySelector(".swiper-cube-shadow");e&&(e.style.transitionDuration=`${t}ms`)}},recreateShadows:()=>{const t=e.isHorizontal();e.slides.forEach(e=>{const i=Math.max(Math.min(e.progress,1),-1);n(e,i,t)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({flipEffect:{slideShadows:!0,limitRotation:!0}});const n=(t,i)=>{let s=e.isHorizontal()?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),n=e.isHorizontal()?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");s||(s=xt("flip",t,e.isHorizontal()?"left":"top")),n||(n=xt("flip",t,e.isHorizontal()?"right":"bottom")),s&&(s.style.opacity=Math.max(-i,0)),n&&(n.style.opacity=Math.max(i,0))};bt({effect:"flip",swiper:e,on:s,setTranslate:()=>{const{slides:t,rtlTranslate:i}=e,s=e.params.flipEffect,r=P(e);for(let a=0;a<t.length;a+=1){const o=t[a];let l=o.progress;e.params.flipEffect.limitRotation&&(l=Math.max(Math.min(o.progress,1),-1));const c=o.swiperSlideOffset;let u=-180*l,h=0,d=e.params.cssMode?-c-e.translate:-c,p=0;e.isHorizontal()?i&&(u=-u):(p=d,d=0,h=-u,u=0),o.style.zIndex=-Math.abs(Math.round(l))+t.length,s.slideShadows&&n(o,l);const f=`translate3d(${d}px, ${p}px, 0px) rotateX(${r(h)}deg) rotateY(${r(u)}deg)`;vt(0,o).style.transform=f}},setTransition:t=>{const i=e.slides.map(t=>v(t));i.forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=`${t}ms`})}),yt({swiper:e,duration:t,transformElements:i})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(t=>{let i=t.progress;e.params.flipEffect.limitRotation&&(i=Math.max(Math.min(t.progress,1),-1)),n(t,i)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),bt({effect:"coverflow",swiper:e,on:s,setTranslate:()=>{const{width:t,height:i,slides:s,slidesSizesGrid:n}=e,r=e.params.coverflowEffect,a=e.isHorizontal(),o=e.translate,l=a?t/2-o:i/2-o,c=a?r.rotate:-r.rotate,u=r.depth,h=P(e);for(let t=0,e=s.length;t<e;t+=1){const e=s[t],i=n[t],o=(l-e.swiperSlideOffset-i/2)/i,d="function"==typeof r.modifier?r.modifier(o):o*r.modifier;let p=a?c*d:0,f=a?0:c*d,m=-u*Math.abs(d),g=r.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(r.stretch)/100*i);let b=a?0:g*d,v=a?g*d:0,y=1-(1-r.scale)*Math.abs(d);Math.abs(v)<.001&&(v=0),Math.abs(b)<.001&&(b=0),Math.abs(m)<.001&&(m=0),Math.abs(p)<.001&&(p=0),Math.abs(f)<.001&&(f=0),Math.abs(y)<.001&&(y=0);const x=`translate3d(${v}px,${b}px,${m}px)  rotateX(${h(f)}deg) rotateY(${h(p)}deg) scale(${y})`;if(vt(0,e).style.transform=x,e.style.zIndex=1-Math.abs(Math.round(d)),r.slideShadows){let t=a?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=a?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");t||(t=xt("coverflow",e,a?"left":"top")),i||(i=xt("coverflow",e,a?"right":"bottom")),t&&(t.style.opacity=d>0?d:0),i&&(i.style.opacity=-d>0?-d:0)}}},setTransition:t=>{e.slides.map(t=>v(t)).forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=`${t}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const n=t=>"string"==typeof t?t:`${t}px`;bt({effect:"creative",swiper:e,on:s,setTranslate:()=>{const{slides:t,wrapperEl:i,slidesSizesGrid:s}=e,r=e.params.creativeEffect,{progressMultiplier:a}=r,o=e.params.centeredSlides,l=P(e);
2if(o){const t=s[0]/2-e.params.slidesOffsetBefore||0;i.style.transform=`translateX(calc(50% - ${t}px))`}for(let i=0;i<t.length;i+=1){const s=t[i],c=s.progress,u=Math.min(Math.max(s.progress,-r.limitProgress),r.limitProgress);let h=u;o||(h=Math.min(Math.max(s.originalProgress,-r.limitProgress),r.limitProgress));const d=s.swiperSlideOffset,p=[e.params.cssMode?-d-e.translate:-d,0,0],f=[0,0,0];let m=!1;e.isHorizontal()||(p[1]=p[0],p[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};u<0?(g=r.next,m=!0):u>0&&(g=r.prev,m=!0),p.forEach((t,e)=>{p[e]=`calc(${t}px + (${n(g.translate[e])} * ${Math.abs(u*a)}))`}),f.forEach((t,e)=>{let i=g.rotate[e]*Math.abs(u*a);f[e]=i}),s.style.zIndex=-Math.abs(Math.round(c))+t.length;const b=p.join(", "),v=`rotateX(${l(f[0])}deg) rotateY(${l(f[1])}deg) rotateZ(${l(f[2])}deg)`,y=h<0?`scale(${1+(1-g.scale)*h*a})`:`scale(${1-(1-g.scale)*h*a})`,x=h<0?1+(1-g.opacity)*h*a:1-(1-g.opacity)*h*a,w=`translate3d(${b}) ${v} ${y}`;if(m&&g.shadow||!m){let t=s.querySelector(".swiper-slide-shadow");if(!t&&g.shadow&&(t=xt("creative",s)),t){const e=r.shadowPerProgress?u*(1/r.limitProgress):u;t.style.opacity=Math.min(Math.max(Math.abs(e),0),1)}}const S=vt(0,s);S.style.transform=w,S.style.opacity=x,g.origin&&(S.style.transformOrigin=g.origin)}},setTransition:t=>{const i=e.slides.map(t=>v(t));i.forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=`${t}ms`})}),yt({swiper:e,duration:t,transformElements:i,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),bt({effect:"cards",swiper:e,on:s,setTranslate:()=>{const{slides:t,activeIndex:i,rtlTranslate:s}=e,n=e.params.cardsEffect,{startTranslate:r,isTouched:a}=e.touchEventsData,o=s?-e.translate:e.translate;for(let l=0;l<t.length;l+=1){const c=t[l],u=c.progress,h=Math.min(Math.max(u,-4),4);let d=c.swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&(e.wrapperEl.style.transform=`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(d-=t[0].swiperSlideOffset);let p=e.params.cssMode?-d-e.translate:-d,f=0;const m=-100*Math.abs(h);let g=1,b=-n.perSlideRotate*h,v=n.perSlideOffset-.75*Math.abs(h);const y=e.virtual&&e.params.virtual.enabled?e.virtual.from+l:l,x=(y===i||y===i-1)&&h>0&&h<1&&(a||e.params.cssMode)&&o<r,w=(y===i||y===i+1)&&h<0&&h>-1&&(a||e.params.cssMode)&&o>r;if(x||w){const t=(1-Math.abs((Math.abs(h)-.5)/.5))**.5;b+=-28*h*t,g+=-.5*t,v+=96*t,f=-25*t*Math.abs(h)+"%"}if(p=h<0?`calc(${p}px ${s?"-":"+"} (${v*Math.abs(h)}%))`:h>0?`calc(${p}px ${s?"-":"+"} (-${v*Math.abs(h)}%))`:`${p}px`,!e.isHorizontal()){const t=f;f=p,p=t}const S=h<0?""+(1+(1-g)*h):""+(1-(1-g)*h),E=`\n        translate3d(${p}, ${f}, ${m}px)\n        rotateZ(${n.rotate?s?-b:b:0}deg)\n        scale(${S})\n      `;if(n.slideShadows){let t=c.querySelector(".swiper-slide-shadow");t||(t=xt("cards",c)),t&&(t.style.opacity=Math.min(Math.max((Math.abs(h)-.5)/.5,0),1))}c.style.zIndex=-Math.abs(Math.round(u))+t.length;vt(0,c).style.transform=E}},setTransition:t=>{const i=e.slides.map(t=>v(t));i.forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=`${t}ms`})}),yt({swiper:e,duration:t,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}];ct.use(wt)},7208:function(t,e,i){"use strict";var s=i(6518),n=i(9565);s({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return n(URL.prototype.toString,this)}})},7323:function(t,e,i){"use strict";var s,n,r=i(9565),a=i(9504),o=i(655),l=i(7979),c=i(8429),u=i(5745),h=i(2360),d=i(1181).get,p=i(3635),f=i(8814),m=u("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,b=g,v=a("".charAt),y=a("".indexOf),x=a("".replace),w=a("".slice),S=(n=/b*/g,r(g,s=/a/,"a"),r(g,n,"a"),0!==s.lastIndex||0!==n.lastIndex),E=c.BROKEN_CARET,M=void 0!==/()??/.exec("")[1];(S||M||E||p||f)&&(b=function(t){var e,i,s,n,a,c,u,p=this,f=d(p),T=o(t),k=f.raw;if(k)return k.lastIndex=p.lastIndex,e=r(b,k,T),p.lastIndex=k.lastIndex,e;var _=f.groups,C=E&&p.sticky,P=r(l,p),A=p.source,O=0,L=T;if(C&&(P=x(P,"y",""),-1===y(P,"g")&&(P+="g"),L=w(T,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==v(T,p.lastIndex-1))&&(A="(?: "+A+")",L=" "+L,O++),i=new RegExp("^(?:"+A+")",P)),M&&(i=new RegExp("^"+A+"$(?!\\s)",P)),S&&(s=p.lastIndex),n=r(g,C?i:p,L),C?n?(n.input=w(n.input,O),n[0]=w(n[0],O),n.index=
vendor: 4,168 bytes, line 2
2p.lastIndex,p.lastIndex+=n[0].length):p.lastIndex=0:S&&n&&(p.lastIndex=p.global?n.index+n[0].length:s),M&&n&&n.length>1&&r(m,n[0],i,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)}),n&&_)for(n.groups=c=h(null),a=0;a<_.length;a++)c[(u=_[a])[0]]=n[u[1]];return n}),t.exports=b},7337:function(t,e,i){"use strict";var s=i(6518),n=i(9504),r=i(5610),a=RangeError,o=String.fromCharCode,l=String.fromCodePoint,c=n([].join);s({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(t){for(var e,i=[],s=arguments.length,n=0;s>n;){if(e=+arguments[n++],r(e,1114111)!==e)throw new a(e+" is not a valid code point");i[n]=e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320)}return c(i,"")}})},7347:function(t,e,i){"use strict";var s=i(3724),n=i(9565),r=i(8773),a=i(6980),o=i(5397),l=i(6969),c=i(9297),u=i(5917),h=Object.getOwnPropertyDescriptor;e.f=s?h:function(t,e){if(t=o(t),e=l(e),u)try{return h(t,e)}catch(t){}if(c(t,e))return a(!n(r.f,t,e),t[e])}},7400:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7416:function(t,e,i){"use strict";var s=i(9039),n=i(8227),r=i(3724),a=i(6395),o=n("iterator");t.exports=!s(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,i=new URLSearchParams("a=1&a=2&b=3"),s="";return t.pathname="c%20d",e.forEach(function(t,i){e.delete("b"),s+=i+t}),i.delete("a",2),i.delete("b",void 0),a&&(!t.toJSON||!i.has("a",1)||i.has("a",2)||!i.has("a",void 0)||i.has("b"))||!e.size&&(a||!r)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==s||"x"!==new URL("https://x",void 0).host})},7433:function(t,e,i){"use strict";var s=i(4376),n=i(3517),r=i(34),a=i(8227)("species"),o=Array;t.exports=function(t){var e;return s(t)&&(e=t.constructor,(n(e)&&(e===o||s(e.prototype))||r(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?o:e}},7452:function(t){"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},7476:function(t,e,i){"use strict";var s=i(2195),n=i(9504);t.exports=function(t){if("Function"===s(t))return n(t)}},7495:function(t,e,i){"use strict";var s=i(6518),n=i(7323);s({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},7629:function(t,e,i){"use strict";var s=i(6395),n=i(4576),r=i(9433),a="__core-js_shared__",o=t.exports=n[a]||r(a,{});(o.versions||(o.versions=[])).push({version:"3.47.0",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7633:function(t,e,i){"use strict";var s=i(7751),n=i(2106),r=i(8227),a=i(3724),o=r("species");t.exports=function(t){var e=s(t);a&&e&&!e[o]&&n(e,o,{configurable:!0,get:function(){return this}})}},7657:function(t,e,i){"use strict";var s,n,r,a=i(9039),o=i(4901),l=i(34),c=i(2360),u=i(2787),h=i(6840),d=i(8227),p=i(6395),f=d("iterator"),m=!1;[].keys&&("next"in(r=[].keys())?(n=u(u(r)))!==Object.prototype&&(s=n):m=!0),!l(s)||a(function(){var t={};return s[f].call(t)!==t})?s={}:p&&(s=c(s)),o(s[f])||h(s,f,function(){return this}),t.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:m}},7680:function(t,e,i){"use strict";var s=i(9504);t.exports=s([].slice)},7740:function(t,e,i){"use strict";var s=i(9297),n=i(5031),r=i(7347),a=i(4913);t.exports=function(t,e,i){for(var o=n(e),l=a.f,c=r.f,u=0;u<o.length;u++){var h=o[u];s(t,h)||i&&s(i,h)||l(t,h,c(e,h))}}}
2,7743:function(t,e,i){"use strict";var s=i(6518),n=i(9565),r=i(9306),a=i(6043),o=i(1103),l=i(2652);s({target:"Promise",stat:!0,forced:i(537)},{race:function(t){var e=this,i=a.f(e),s=i.reject,c=o(function(){var a=r(e.resolve);l(t,function(t){n(a,e,t).then(i.resolve,s)})});return c.error&&s(c.value),i.promise}})},7750:function(t,e,i){"use strict";var s=i(4117),n=TypeError;t.exports=function(t){if(s(t))throw new n("Can't call method on "+t);return t}},7751:function(t,e,i){"use strict";var s=i(4576),n=i(4901);t.exports=function(t,e){return arguments.length<2?(i=s[t],n(i)?i:void 0):s[t]&&s[t][e];var i}},7764:function(t,e,i){"use strict";var s=i(8183).charAt,n=i(655),r=i(1181),a=i(1088),o=i(2529),l="String Iterator",c=r.set,u=r.getterFor(l);a(String,"String",function(t){c(this,{type:l,string:n(t),index:0})},function(){var t,e=u(this),i=e.string,n=e.index;return n>=i.length?o(void 0,!0):(t=s(i,n),e.index+=t.length,o(t,!1))})},7812:function(t,e,i){"use strict";var s=i(6518),n=i(9297),r=i(757),a=i(6823),o=i(5745),l=i(1296),c=o("symbol-to-string-registry");s({target:"Symbol",stat:!0,forced:!l},{keyFor:function(t){if(!r(t))throw new TypeError(a(t)+" is not a symbol");if(n(c,t))return c[t]}})},7819:function(t,e,i){"use strict";var s=i(9039);t.exports=!s(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},7829:function(t,e,i){"use strict";var s=i(8183).charAt;t.exports=function(t,e,i){return e+(i?s(t,e).length:1)}},7860:function(t,e,i){"use strict";var s=i(2839);t.exports=/web0s(?!.*chrome)/i.test(s)},7916:function(t,e,i){"use strict";var s=i(6080),n=i(9565),r=i(8981),a=i(6319),o=i(4209),l=i(3517),c=i(6198),u=i(4659),h=i(81),d=i(851),p=Array;t.exports=function(t){var e=r(t),i=l(this),f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m;g&&(m=s(m,f>2?arguments[2]:void 0));var b,v,y,x,w,S,E=d(e),M=0;if(!E||this===p&&o(E))for(b=c(e),v=i?new this(b):p(b);b>M;M++)S=g?m(e[M],M):e[M],u(v,M,S);else for(v=i?new this:[],w=(x=h(e,E)).next;!(y=n(w,x)).done;M++)S=g?a(x,m,[y.value,M],!0):y.value,u(v,M,S);return v.length=M,v}},7979:function(t,e,i){"use strict";var s=i(8551);t.exports=function(){var t=s(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},8014:function(t,e,i){"use strict";var s=i(1291),n=Math.min;t.exports=function(t){var e=s(t);return e>0?n(e,9007199254740991):0}},8156:function(t,e,i){"use strict";var s=i(6518),n=i(533).start;s({target:"String",proto:!0,forced:i(3063)},{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},8183:function(t,e,i){"use strict";var s=i(9504),n=i(1291),r=i(655),a=i(7750),o=s("".charAt),l=s("".charCodeAt),c=s("".slice),u=function(t){return function(e,i){var s,u,h=r(a(e)),d=n(i),p=h.length;return d<0||d>=p?t?"":void 0:(s=l(h,d))<55296||s>56319||d+1===p||(u=l(h,d+1))<56320||u>57343?t?o(h,d):s:t?c(h,d,d+2):u-56320+(s-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},8221:function(t,e,i){var s=i(3805),n=i(124),r=i(9374),a=Math.max,o=Math.min;t.exports=function(t,e,i){var l,c,u,h,d,p,f=0,m=!1,g=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(e){var i=l,s=c;return l=c=void 0,f=e,h=t.apply(s,i)}function y(t){var i=t-p;return void 0===p||i>=e||i<0||g&&t-f>=u}function x(){var t=n();if(y(t))return w(t);d=setTimeout(x,function(t){var i=e-(t-p);return g?o(i,u-(t-f)):i}(t))}function w(t){return d=void 0,b&&l?v(t):(l=c=void 0,h)}function S(){var t=n(),i=y(t);if(l=arguments,c=this,p=t,i){if(void 0===d)return function(t){return f=t,d=setTimeout(x,e),m?v(t):h}(p);if(g)return clearTimeout(d),d=setTimeout(x,e),v(p)}return void 0===d&&(d=setTimeout(x,e)),h}return e=r(e)||0,s(i)&&(m=!!i.leading,u=(g="maxWait"in i)?a(r(i.maxWait)||0,e):u,b="trailing"in i?!!i.trailing:b),S.cancel=function(){void 0!==d&&clearTimeout(d),f=0,l=p=c=d=void 0},S.flush=function(){return void 0===d?h:w(n())},S}},8227:function(t,e,i){"use strict";var s=i(4576),n=i(5745),r=i(9297),a=i(3392),o=i(4495),l=i(7040),c=s.Symbol,u=n("wks"),h=l?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return r(u,t)||(u[t]=o&&r(c,t)?c[t]:h("Symbol."+t)),u[t]}}
vendor: 2,865 bytes, line 2
2,8235:function(t,e,i){"use strict";var s=i(9504),n=i(9297),r=SyntaxError,a=parseInt,o=String.fromCharCode,l=s("".charAt),c=s("".slice),u=s(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var i=!0,s="";e<t.length;){var f=l(t,e);if("\\"===f){var m=c(t,e,e+2);if(n(h,m))s+=h[m],e+=2;else{if("\\u"!==m)throw new r('Unknown escape sequence: "'+m+'"');var g=c(t,e+=2,e+4);if(!u(d,g))throw new r("Bad Unicode escape at: "+e);s+=o(a(g,16)),e+=4}}else{if('"'===f){i=!1,e++;break}if(u(p,f))throw new r("Bad control character in string literal at: "+e);s+=f,e++}}if(i)throw new r("Unterminated string at: "+e);return{value:s,end:e}}},8242:function(t,e,i){"use strict";var s=i(9565),n=i(7751),r=i(8227),a=i(6840);t.exports=function(){var t=n("Symbol"),e=t&&t.prototype,i=e&&e.valueOf,o=r("toPrimitive");e&&!e[o]&&a(e,o,function(t){return s(i,this)},{arity:1})}},8265:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},8406:function(t,e,i){"use strict";i(3792),i(7337);var s=i(6518),n=i(4576),r=i(3389),a=i(7751),o=i(9565),l=i(9504),c=i(3724),u=i(7416),h=i(6840),d=i(2106),p=i(6279),f=i(687),m=i(3994),g=i(1181),b=i(679),v=i(4901),y=i(9297),x=i(6080),w=i(6955),S=i(8551),E=i(34),M=i(655),T=i(2360),k=i(6980),_=i(81),C=i(851),P=i(2529),A=i(2812),O=i(8227),L=i(4488),I=O("iterator"),D="URLSearchParams",N=D+"Iterator",R=g.set,F=g.getterFor(D),$=g.getterFor(N),z=r("fetch"),j=r("Request"),B=r("Headers"),V=j&&j.prototype,H=B&&B.prototype,W=n.TypeError,U=n.encodeURIComponent,q=String.fromCharCode,Y=a("String","fromCodePoint"),X=parseInt,G=l("".charAt),K=l([].join),J=l([].push),Q=l("".replace),Z=l([].shift),tt=l([].splice),et=l("".split),it=l("".slice),st=l(/./.exec),nt=/\+/g,rt=/^[0-9a-f]+$/i,at=function(t,e){var i=it(t,e,e+2);return st(rt,i)?X(i,16):NaN},ot=function(t){for(var e=0,i=128;i>0&&0!==(t&i);i>>=1)e++;return e},lt=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},ct=function(t){for(var e=(t=Q(t,nt," ")).length,i="",s=0;s<e;){var n=G(t,s);if("%"===n){if("%"===G(t,s+1)||s+3>e){i+="%",s++;continue}var r=at(t,s+1);if(r!=r){i+=n,s++;continue}s+=2;var a=ot(r);if(0===a)n=q(r);else{if(1===a||a>4){i+="�",s++;continue}for(var o=[r],l=1;l<a&&!(++s+3>e||"%"!==G(t,s));){var c=at(t,s+1);if(c!=c){s+=3;break}if(c>191||c<128)break;J(o,c),s+=2,l++}if(o.length!==a){i+="�";continue}var u=lt(o);null===u?i+="�":n=Y(u)}}i+=n,s++}return i}
vendor: 4,342 bytes, line 2
2,ut=/[!'()~]|%20/g,ht={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},dt=function(t){return ht[t]},pt=function(t){return Q(U(t),ut,dt)},ft=m(function(t,e){R(this,{type:N,target:F(t).entries,index:0,kind:e})},D,function(){var t=$(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,P(void 0,!0);var s=e[i];switch(t.kind){case"keys":return P(s.key,!1);case"values":return P(s.value,!1)}return P([s.key,s.value],!1)},!0),mt=function(t){this.entries=[],this.url=null,void 0!==t&&(E(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===G(t,0)?it(t,1):t:M(t)))};mt.prototype={type:D,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,i,s,n,r,a,l,c=this.entries,u=C(t);if(u)for(i=(e=_(t,u)).next;!(s=o(i,e)).done;){if(r=(n=_(S(s.value))).next,(a=o(r,n)).done||(l=o(r,n)).done||!o(r,n).done)throw new W("Expected sequence with length 2");J(c,{key:M(a.value),value:M(l.value)})}else for(var h in t)y(t,h)&&J(c,{key:h,value:M(t[h])})},parseQuery:function(t){if(t)for(var e,i,s=this.entries,n=et(t,"&"),r=0;r<n.length;)(e=n[r++]).length&&(i=et(e,"="),J(s,{key:ct(Z(i)),value:ct(K(i,"="))}))},serialize:function(){for(var t,e=this.entries,i=[],s=0;s<e.length;)t=e[s++],J(i,pt(t.key)+"="+pt(t.value));return K(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var gt=function(){b(this,bt);var t=R(this,new mt(arguments.length>0?arguments[0]:void 0));c||(this.size=t.entries.length)},bt=gt.prototype;if(p(bt,{append:function(t,e){var i=F(this);A(arguments.length,2),J(i.entries,{key:M(t),value:M(e)}),c||this.size++,i.updateURL()},delete:function(t){for(var e=F(this),i=A(arguments.length,1),s=e.entries,n=M(t),r=i<2?void 0:arguments[1],a=void 0===r?r:M(r),o=0;o<s.length;){var l=s[o];if(l.key!==n||void 0!==a&&l.value!==a)o++;else if(tt(s,o,1),void 0!==a)break}c||(this.size=s.length),e.updateURL()},get:function(t){var e=F(this).entries;A(arguments.length,1);for(var i=M(t),s=0;s<e.length;s++)if(e[s].key===i)return e[s].value;return null},getAll:function(t){var e=F(this).entries;A(arguments.length,1);for(var i=M(t),s=[],n=0;n<e.length;n++)e[n].key===i&&J(s,e[n].value);return s},has:function(t){for(var e=F(this).entries,i=A(arguments.length,1),s=M(t),n=i<2?void 0:arguments[1],r=void 0===n?n:M(n),a=0;a<e.length;){var o=e[a++];if(o.key===s&&(void 0===r||o.value===r))return!0}return!1},set:function(t,e){var i=F(this);A(arguments.length,1);for(var s,n=i.entries,r=!1,a=M(t),o=M(e),l=0;l<n.length;l++)(s=n[l]).key===a&&(r?tt(n,l--,1):(r=!0,s.value=o));r||J(n,{key:a,value:o}),c||(this.size=n.length),i.updateURL()},sort:function(){var t=F(this);L(t.entries,function(t,e){return t.key>e.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,i=F(this).entries,s=x(t,arguments.length>1?arguments[1]:void 0),n=0;n<i.length;)s((e=i[n++]).value,e.key,this)},keys:function(){return new ft(this,"keys")},values:function(){return new ft(this,"values")},entries:function(){return new ft(this,"entries")}},{enumerable:!0}),h(bt,I,bt.entries,{name:"entries"}),h(bt,"toString",function(){return F(this).serialize()},{enumerable:!0}),c&&d(bt,"size",{get:function(){return F(this).entries.length},configurable:!0,enumerable:!0}),f(gt,D),s({global:!0,constructor:!0,forced:!u},{URLSearchParams:gt}),!u&&v(B)){var vt=l(H.has),yt=l(H.set),xt=function(t){if(E(t)){var e,i=t.body;if(w(i)===D)return e=t.headers?new B(t.headers):new B,vt(e,"content-type")||yt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),T(t,{body:k(0,M(i)),headers:k(0,e)})}return t};if(v(z)&&s({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return z(t,arguments.length>1?xt(arguments[1]):{})}}),v(j)){var wt=function(t){return b(this,V),new j(t,arguments.length>1?xt(arguments[1]):{})};V.constructor=wt,wt.prototype=V,s({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:wt})}}t.exports={URLSearchParams:gt,getState:F}},8408:function(t,e,i){"use strict";i(8406)},8429:function(t,e,i){"use strict";var s=i(9039),n=i(4576).RegExp,r=s(function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),a=r||s(function(){return!n("a","y").sticky}),o=r||s(function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:o,MISSED_STICKY:a,UNSUPPORTED_Y:r}}
2,8480:function(t,e,i){"use strict";var s=i(1828),n=i(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return s(t,n)}},8551:function(t,e,i){"use strict";var s=i(34),n=String,r=TypeError;t.exports=function(t){if(s(t))return t;throw new r(n(t)+" is not an object")}},8598:function(t,e,i){"use strict";var s=i(6518),n=i(9504),r=i(7055),a=i(5397),o=i(4598),l=n([].join);s({target:"Array",proto:!0,forced:r!==Object||!o("join",",")},{join:function(t){return l(a(this),void 0===t?",":t)}})},8622:function(t,e,i){"use strict";var s=i(4576),n=i(4901),r=s.WeakMap;t.exports=n(r)&&/native code/.test(String(r))},8686:function(t,e,i){"use strict";var s=i(3724),n=i(9039);t.exports=s&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8706:function(t,e,i){"use strict";var s=i(6518),n=i(9039),r=i(4376),a=i(34),o=i(8981),l=i(6198),c=i(6837),u=i(4659),h=i(1469),d=i(597),p=i(8227),f=i(9519),m=p("isConcatSpreadable"),g=f>=51||!n(function(){var t=[];return t[m]=!1,t.concat()[0]!==t}),b=function(t){if(!a(t))return!1;var e=t[m];return void 0!==e?!!e:r(t)};s({target:"Array",proto:!0,arity:1,forced:!g||!d("concat")},{concat:function(t){var e,i,s,n,r,a=o(this),d=h(a,0),p=0;for(e=-1,s=arguments.length;e<s;e++)if(b(r=-1===e?a:arguments[e]))for(n=l(r),c(p+n),i=0;i<n;i++,p++)i in r&&u(d,p,r[i]);else c(p+1),u(d,p++,r);return d.length=p,d}})},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:function(t,e,i){"use strict";var s=i(616),n=Function.prototype,r=n.apply,a=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(s?a.bind(r):function(){return a.apply(r,arguments)})},8773:function(t,e){"use strict";var i={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!i.call({1:2},1);e.f=n?function(t){var e=s(this,t);return!!e&&e.enumerable}:i},8781:function(t,e,i){"use strict";var s=i(350).PROPER,n=i(6840),r=i(8551),a=i(655),o=i(9039),l=i(1034),c="toString",u=RegExp.prototype,h=u[c],d=o(function(){return"/a/b"!==h.call({source:"a",flags:"b"})}),p=s&&h.name!==c;(d||p)&&n(u,c,function(){var t=r(this);return"/"+a(t.source)+"/"+a(l(t))},{unsafe:!0})},8814:function(t,e,i){"use strict";var s=i(9039),n=i(4576).RegExp;t.exports=s(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},8940:function(t,e,i){"use strict";var s=i(6518),n=i(2703);s({global:!0,forced:parseInt!==n},{parseInt:n})},8981:function(t,e,i){"use strict";var s=i(7750),n=Object;t.exports=function(t){return n(s(t))}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},9085:function(t,e,i){"use strict";var s=i(6518),n=i(4213);s({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},9167:function(t,e,i){"use strict";var s=i(4576);t.exports=s},9213:function(t,e,i){"use strict";var s=i(6080),n=i(9504),r=i(7055),a=i(8981),o=i(6198),l=i(1469),c=n([].push),u=function(t){var e=1===t,i=2===t,n=3===t,u=4===t,h=6===t,d=7===t,p=5===t||h;return function(f,m,g,b){for(var v,y,x=a(f),w=r(x),S=o(w),E=s(m,g),M=0,T=b||l,k=e?T(f,S):i||d?T(f,0):void 0;S>M;M++)if((p||M in w)&&(y=E(v=w[M],M,x),t))if(e)k[M]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return M;case 2:c(k,v)}else switch(t){case 4:return!1;case 7:c(k,v)}return h?-1:n||u?u:k}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},9225:function(t,e,i){"use strict";var s,n,r,a,o=i(4576),l=i(8745),c=i(6080),u=i(4901),h=i(9297),d=i(9039),p=i(397),f=i(7680),m=i(4055),g=i(2812),b=i(9544),v=i(6193),y=o.setImmediate,x=o.clearImmediate,w=o.process,S=o.Dispatch,E=o.Function,M=o.MessageChannel,T=o.String,k=0,_={},C="onreadystatechange";d(function(){s=o.location});var P=function(t){if(h(_,t)){var e=_[t];delete _[t],e()}},A=function(t){return function(){P(t)}},O=function(t){P(t.data)},L=function(t){o.postMessage(T(t),s.protocol+"//"+s.host)};y&&x||(y=function(t){g(arguments.length,1);
2var e=u(t)?t:E(t),i=f(arguments,1);return _[++k]=function(){l(e,void 0,i)},n(k),k},x=function(t){delete _[t]},v?n=function(t){w.nextTick(A(t))}:S&&S.now?n=function(t){S.now(A(t))}:M&&!b?(a=(r=new M).port2,r.port1.onmessage=O,n=c(a.postMessage,a)):o.addEventListener&&u(o.postMessage)&&!o.importScripts&&s&&"file:"!==s.protocol&&!d(L)?(n=L,o.addEventListener("message",O,!1)):n=C in m("script")?function(t){p.appendChild(m("script"))[C]=function(){p.removeChild(this),P(t)}}:function(t){setTimeout(A(t),0)}),t.exports={set:y,clear:x}},9228:function(t,e,i){"use strict";i(7495);var s=i(9565),n=i(6840),r=i(7323),a=i(9039),o=i(8227),l=i(6699),c=o("species"),u=RegExp.prototype;t.exports=function(t,e,i,h){var d=o(t),p=!a(function(){var e={};return e[d]=function(){return 7},7!==""[t](e)}),f=p&&!a(function(){var e=!1,i=/a/;if("split"===t){var s={};s[c]=function(){return i},(i={constructor:s,flags:""})[d]=/./[d]}return i.exec=function(){return e=!0,null},i[d](""),!e});if(!p||!f||i){var m=/./[d],g=e(d,""[t],function(t,e,i,n,a){var o=e.exec;return o===r||o===u.exec?p&&!a?{done:!0,value:s(m,e,i,n)}:{done:!0,value:s(t,i,e,n)}:{done:!1}});n(String.prototype,t,g[0]),n(u,d,g[1])}h&&l(u[d],"sham",!0)}},9296:function(t,e,i){"use strict";var s=i(4055)("span").classList,n=s&&s.constructor&&s.constructor.prototype;t.exports=n===Object.prototype?void 0:n},9297:function(t,e,i){"use strict";var s=i(9504),n=i(8981),r=s({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(n(t),e)}},9306:function(t,e,i){"use strict";var s=i(4901),n=i(6823),r=TypeError;t.exports=function(t){if(s(t))return t;throw new r(n(t)+" is not a function")}},9325:function(t,e,i){var s=i(4840),n="object"==typeof self&&self&&self.Object===Object&&self,r=s||n||Function("return this")();t.exports=r},9350:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9374:function(t,e,i){var s=i(4128),n=i(3805),r=i(4394),a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(r(t))return NaN;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=s(t);var i=o.test(t);return i||l.test(t)?c(t.slice(2),i?2:8):a.test(t)?NaN:+t}},9391:function(t,e,i){"use strict";var s=i(6518),n=i(6395),r=i(550),a=i(9039),o=i(7751),l=i(4901),c=i(2293),u=i(3438),h=i(6840),d=r&&r.prototype;if(s({target:"Promise",proto:!0,real:!0,forced:!!r&&a(function(){d.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=c(this,o("Promise")),i=l(t);return this.then(i?function(i){return u(e,t()).then(function(){return i})}:t,i?function(i){return u(e,t()).then(function(){throw i})}:t)}}),!n&&l(r)){var p=o("Promise").prototype.finally;d.finally!==p&&h(d,"finally",p,{unsafe:!0})}},9432:function(t,e,i){"use strict";var s=i(6518),n=i(8981),r=i(1072);s({target:"Object",stat:!0,forced:i(9039)(function(){r(1)})},{keys:function(t){return r(n(t))}})},9433:function(t,e,i){"use strict";var s=i(4576),n=Object.defineProperty;t.exports=function(t,e){try{n(s,t,{value:e,configurable:!0,writable:!0})}catch(i){s[t]=e}return e}},9463:function(t,e,i){"use strict";var s=i(6518),n=i(3724),r=i(4576),a=i(9504),o=i(9297),l=i(4901),c=i(1625),u=i(655),h=i(2106),d=i(7740),p=r.Symbol,f=p&&p.prototype;if(n&&l(p)&&(!("description"in f)||void 0!==p().description)){var m={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),e=c(f,this)?new p(t):void 0===t?p():p(t);return""===t&&(m[e]=!0),e};d(g,p),g.prototype=f,f.constructor=g;var b="Symbol(description detection)"===String(p("description detection")),v=a(f.valueOf),y=a(f.toString),x=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),S=a("".slice);h(f,"description",{configurable:!0,get:function(){var t=v(this);if(o(m,t))return"";var e=y(t),i=b?S(e,7,-1):w(e,x,"$1");return""===i?void 0:i}}),s({global:!0,constructor:!0,forced:!0},{Symbol:g})}},9472:function(t,e,i){"use strict";var s,n=i(4576),r=i(8745),a=i(4901),o=i(4215),l=i(2839),c=i(7680),u=i(2812),h=n.Function,d=/MSIE .\./.test(l)||"BUN"===o&&((s=n.Bun.version.split(".")).length<3||"0"===s[0]&&(s[1]<3||"3"===s[1]&&"0"===s[2]));t.exports=function(t,e){var i=e?2:1;return d?function(s,n){var o=u(arguments.length,1)>i,l=a(s)?s:h(s),d=o?c(arguments,i):[],p=o?function(){r(l,this,d)}:l;return e?t(p,n):t(p)}:t}}
vendor: 2,722 bytes, line 2
2,9476:function(t,e,i){"use strict";var s,n;function r(t){return"object"==typeof t&&"function"==typeof t.to}function a(t){t.parentElement.removeChild(t)}function o(t){return null!=t}function l(t){t.preventDefault()}function c(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function u(t,e,i){i>0&&(f(t,e),setTimeout(function(){m(t,e)},i))}function h(t){return Math.max(Math.min(t,100),0)}function d(t){return Array.isArray(t)?t:[t]}function p(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function f(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function m(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function g(t){var e=void 0!==window.pageXOffset,i="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:i?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:i?t.documentElement.scrollTop:t.body.scrollTop}}function b(t,e){return 100/(e-t)}function v(t,e,i){return 100*e/(t[i+1]-t[i])}function y(t,e){for(var i=1;t>=e[i];)i+=1;return i}function x(t,e,i){if(i>=t.slice(-1)[0])return 100;var s=y(i,t),n=t[s-1],r=t[s],a=e[s-1],o=e[s];return a+function(t,e){return v(t,t[0]<0?e+Math.abs(t[0]):e-t[0],0)}([n,r],i)/b(a,o)}function w(t,e,i,s){if(100===s)return s;var n=y(s,t),r=t[n-1],a=t[n];return i?s-r>(a-r)/2?a:r:e[n-1]?t[n-1]+function(t,e){return Math.round(t/e)*e}(s-t[n-1],e[n-1]):s}!function(t){t.Range="range",t.Steps="steps",t.Positions="positions",t.Count="count",t.Values="values"}(s||(s={})),function(t){t[t.None=-1]="None",t[t.NoValue=0]="NoValue",t[t.LargeValue=1]="LargeValue",t[t.SmallValue=2]="SmallValue"}(n||(n={}));var S=function(){function t(t,e,i){var s;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=e;var n=[];for(Object.keys(t).forEach(function(e){n.push([d(t[e]),e])}),n.sort(function(t,e){return t[0][0]-e[0][0]}),s=0;s<n.length;s++)this.handleEntryPoint(n[s][1],n[s][0]);for(this.xNumSteps=this.xSteps.slice(0),s=0;s<this.xNumSteps.length;s++)this.handleStepPoint(s,this.xNumSteps[s])}return t.prototype.getDistance=function(t){for(var e=[],i=0;i<this.xNumSteps.length-1;i++)e[i]=v(this.xVal,t,i);return e},t.prototype.getAbsoluteDistance=function(t,e,i){var s,n=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[n+1];)n++;else t===this.xPct[this.xPct.length-1]&&(n=this.xPct.length-2);i||t!==this.xPct[n+1]||n++,null===e&&(e=[]);var r=1,a=e[n],o=0,l=0,c=0,u=0;for(s=i?(t-this.xPct[n])/(this.xPct[n+1]-this.xPct[n]):(this.xPct[n+1]-t)/(this.xPct[n+1]-this.xPct[n]);a>0;)o=this.xPct[n+1+u]-this.xPct[n+u],e[n+u]*r+100-100*s>
vendor: 4,608 bytes, line 2
2100?(l=o*s,r=(a-100*s)/e[n+u],s=1):(l=e[n+u]*o/100*r,r=0),i?(c-=l,this.xPct.length+u>=1&&u--):(c+=l,this.xPct.length-u>=1&&u++),a=e[n+u]*r;return t+c},t.prototype.toStepping=function(t){return t=x(this.xVal,this.xPct,t)},t.prototype.fromStepping=function(t){return function(t,e,i){if(i>=100)return t.slice(-1)[0];var s=y(i,e),n=t[s-1],r=t[s],a=e[s-1];return function(t,e){return e*(t[1]-t[0])/100+t[0]}([n,r],(i-a)*b(a,e[s]))}(this.xVal,this.xPct,t)},t.prototype.getStep=function(t){return t=w(this.xPct,this.xSteps,this.snap,t)},t.prototype.getDefaultStep=function(t,e,i){var s=y(t,this.xPct);return(100===t||e&&t===this.xPct[s-1])&&(s=Math.max(s-1,1)),(this.xVal[s]-this.xVal[s-1])/i},t.prototype.getNearbySteps=function(t){var e=y(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e],step:this.xNumSteps[e],highestStep:this.xHighestCompleteStep[e]}}},t.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(p);return Math.max.apply(null,t)},t.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},t.prototype.convert=function(t){return this.getStep(this.toStepping(t))},t.prototype.handleEntryPoint=function(t,e){var i;if(!c(i="min"===t?0:"max"===t?100:parseFloat(t))||!c(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(e[0]);var s=Number(e[1]);i?this.xSteps.push(!isNaN(s)&&s):isNaN(s)||(this.xSteps[0]=s),this.xHighestCompleteStep.push(0)},t.prototype.handleStepPoint=function(t,e){if(e)if(this.xVal[t]!==this.xVal[t+1]){this.xSteps[t]=v([this.xVal[t],this.xVal[t+1]],e,0)/b(this.xPct[t],this.xPct[t+1]);var i=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],s=Math.ceil(Number(i.toFixed(3))-1),n=this.xVal[t]+this.xNumSteps[t]*s;this.xHighestCompleteStep[t]=n}else this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t]},t}(),E={to:function(t){return void 0===t?"":t.toFixed(2)},from:Number},M={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},T=".__tooltips",k=".__aria";function _(t,e){if(!c(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function C(t,e){if(!c(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function P(t,e){if(!c(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function A(t,e){if(!c(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function O(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new S(e,t.snap||!1,t.singleStep)}function L(t,e){if(e=d(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function I(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function D(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function N(t,e){if("number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function R(t,e){var i,s=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(i=1;i<t.handles;i++)s.push(e);s.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");s=e}t.connect=s}function F(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invali
2d.")}}function $(t,e){if(!c(e))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==e&&(t.margin=t.spectrum.getDistance(e))}function z(t,e){if(!c(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function j(t,e){var i;if(!c(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!c(e[0])&&!c(e[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],i=0;i<t.spectrum.xNumSteps.length-1;i++)if(t.padding[0][i]<0||t.padding[1][i]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var s=e[0]+e[1],n=t.spectrum.xVal[0];if(s/(t.spectrum.xVal[t.spectrum.xVal.length-1]-n)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function B(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function V(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var i=e.indexOf("tap")>=0,s=e.indexOf("drag")>=0,n=e.indexOf("fixed")>=0,r=e.indexOf("snap")>=0,a=e.indexOf("hover")>=0,o=e.indexOf("unconstrained")>=0,l=e.indexOf("invert-connects")>=0,c=e.indexOf("drag-all")>=0,u=e.indexOf("smooth-steps")>=0;if(n){if(2!==t.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");$(t,t.start[1]-t.start[0])}if(l&&2!==t.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(o&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:i||r,drag:s,dragAll:c,smoothSteps:u,fixed:n,snap:r,hover:a,unconstrained:o,invertConnects:l}}function H(t,e){if(!1!==e)if(!0===e||r(e)){t.tooltips=[];for(var i=0;i<t.handles;i++)t.tooltips.push(e)}else{if((e=d(e)).length!==t.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(t){if("boolean"!=typeof t&&!r(t))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),t.tooltips=e}}function W(t,e){if(e.length!==t.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");t.handleAttributes=e}function U(t,e){if(!r(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");t.ariaFormat=e}function q(t,e){if(!function(t){return r(t)&&"function"==typeof t.from}(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");t.format=e}function Y(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");t.keyboardSupport=e}function X(t,e){t.documentElement=e}function G(t,e){if("string"!=typeof e&&!1!==e)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function K(t,e){if("object"!=typeof e)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof t.cssPrefix?(t.cssClasses={},Object.keys(e).forEach(function(i){t.cssClasses[i]=t.cssPrefix+e[i]})):t.cssClasses=e}function J(t){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:E,format:E},i={step:{r:!1,t:_},keyboardPageMultiplier:{r:!1,t:C},keyboardMultiplier:{r:!1,t:P},keyboardDefaultStep:{r:!1,t:A},start:{r:!0,t:L},connect:{r:!0,t:R},direction:{r:!0,t:B},snap:{r:!1,t:I},animate:{r:!1,t:D},animationDuration:{r:!1,t:N},range:{r:!0,t:O},orientation:{r:!1,t:F},margin:{r:!1,t:$},limit:{r:!1,t:z},padding:{r:!1,t:j},behaviour:{r:!0,t:V},ariaFormat:{r:!1,t:U},format:{r:!1,t:q},tooltips:{r:!1,t:H},keyboardSupport:{r:!0,t:Y},documentElement:{r:!1,t:X},cssPrefix:{r:!0,t:G},cssClasses:{r:!0,t:K},handleAttributes:{r:!1,t:W}},s={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasse
2s:M,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(i).forEach(function(n){if(o(t[n])||void 0!==s[n])i[n].t(e,o(t[n])?t[n]:s[n]);else if(i[n].r)throw new Error("noUiSlider: '"+n+"' is required.")}),e.pips=t.pips;var n=document.createElement("div"),r=void 0!==n.style.msTransform,a=void 0!==n.style.transform;e.transformRule=a?"transform":r?"msTransform":"webkitTransform";return e.style=[["left","top"],["right","bottom"]][e.dir][e.ort],e}function Q(t,e,i){var r,c,p,b,v,y,x,w=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},S=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),E=t,M=e.spectrum,_=[],C=[],P=[],A=0,O={},L=!1,I=t.ownerDocument,D=e.documentElement||I.documentElement,N=I.body,F="rtl"===I.dir||1===e.ort?0:100;function $(t,e){var i=I.createElement("div");return e&&f(i,e),t.appendChild(i),i}function z(t,i){var s=$(t,e.cssClasses.origin),n=$(s,e.cssClasses.handle);if($(n,e.cssClasses.touchArea),n.setAttribute("data-handle",String(i)),e.keyboardSupport&&(n.setAttribute("tabindex","0"),n.addEventListener("keydown",function(t){return function(t,i){if(V()||H(i))return!1;var s=["Left","Right"],n=["Down","Up"],r=["PageDown","PageUp"],a=["Home","End"];e.dir&&!e.ort?s.reverse():e.ort&&!e.dir&&(n.reverse(),r.reverse());var o,l=t.key.replace("Arrow",""),c=l===r[0],u=l===r[1],h=l===n[0]||l===s[0]||c,d=l===n[1]||l===s[1]||u,p=l===a[0],f=l===a[1];if(!(h||d||p||f))return!0;if(t.preventDefault(),d||h){var m=h?0:1,g=St(i)[m];if(null===g)return!1;!1===g&&(g=M.getDefaultStep(C[i],h,e.keyboardDefaultStep)),g*=u||c?e.keyboardPageMultiplier:e.keyboardMultiplier,g=Math.max(g,1e-7),g*=h?-1:1,o=_[i]+g}else o=f?e.spectrum.xVal[e.spectrum.xVal.length-1]:e.spectrum.xVal[0];return bt(i,M.toStepping(o),!0,!0),ut("slide",i),ut("update",i),ut("change",i),ut("set",i),!1}(t,i)})),void 0!==e.handleAttributes){var r=e.handleAttributes[i];Object.keys(r).forEach(function(t){n.setAttribute(t,r[t])})}return n.setAttribute("role","slider"),n.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),0===i?f(n,e.cssClasses.handleLower):i===e.handles-1&&f(n,e.cssClasses.handleUpper),s.handle=n,s}function j(t,i){return!!i&&$(t,e.cssClasses.connect)}function B(t,i){return!(!e.tooltips||!e.tooltips[i])&&$(t.firstChild,e.cssClasses.tooltip)}function V(){return E.hasAttribute("disabled")}function H(t){return p[t].hasAttribute("disabled")}function W(){y&&(ct("update"+T),y.forEach(function(t){t&&a(t)}),y=null)}function U(){W(),y=p.map(B),lt("update"+T,function(t,i,s){if(y&&e.tooltips&&!1!==y[i]){var n=t[i];!0!==e.tooltips[i]&&(n=e.tooltips[i].to(s[i])),y[i].innerHTML=n}})}function q(t,e){return t.map(function(t){return M.fromStepping(e?M.getStep(t):t)})}function Y(t){function e(t,e){return Number((t+e).toFixed(7))}var i,r=function(t){if(t.mode===s.Range||t.mode===s.Steps)return M.xVal;if(t.mode===s.Count){if(t.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var e=t.values-1,i=100/e,n=[];e--;)n[e]=e*i;return n.push(100),q(n,t.stepped)}return t.mode===s.Positions?q(t.values,t.stepped):t.mode===s.Values?t.stepped?t.values.map(function(t){return M.fromStepping(M.getStep(M.toStepping(t)))}):t.values:[]}(t),a={},o=M.xVal[0],l=M.xVal[M.xVal.length-1],c=!1,u=!1,h=0;return i=r.slice().sort(function(t,e){return t-e}),(r=i.filter(function(t){return!this[t]&&(this[t]=!0)},{}))[0]!==o&&(r.unshift(o),c=!0),r[r.length-1]!==l&&(r.push(l),u=!0),r.forEach(function(i,o){var l,d,p,f,m,g,b,v,y,x,w=i,S=r[o+1],E=t.mode===s.Steps;for(E&&(l=M.xNumSteps[o]),l||(l=S-w),void 0===S&&(S=w),l=Math.max(l,1e-7),d=w;d<=S;d=e(d,l)){for(v=(m=(f=M.toStepping(d))-h)/(t.density||1),x=m/(y=Math.round(v)),p=1;p<=y;p+=1)a[(g=h+p*x).toFixed(5)]=[M.fromStepping(g),0];b=r.indexOf(d)>-1?n.LargeValue:E?n.SmallValue:n.NoValue,!o&&c&&d!==S&&(b=0),d===S&&u||(
2a[f.toFixed(5)]=[d,b]),h=f}}),a}function X(t,i,s){var r,a,o=I.createElement("div"),l=((r={})[n.None]="",r[n.NoValue]=e.cssClasses.valueNormal,r[n.LargeValue]=e.cssClasses.valueLarge,r[n.SmallValue]=e.cssClasses.valueSub,r),c=((a={})[n.None]="",a[n.NoValue]=e.cssClasses.markerNormal,a[n.LargeValue]=e.cssClasses.markerLarge,a[n.SmallValue]=e.cssClasses.markerSub,a),u=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],h=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];function d(t,i){var s=i===e.cssClasses.value,n=s?l:c;return i+" "+(s?u:h)[e.ort]+" "+n[t]}return f(o,e.cssClasses.pips),f(o,0===e.ort?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical),Object.keys(t).forEach(function(r){!function(t,r,a){if((a=i?i(r,a):a)!==n.None){var l=$(o,!1);l.className=d(a,e.cssClasses.marker),l.style[e.style]=t+"%",a>n.NoValue&&((l=$(o,!1)).className=d(a,e.cssClasses.value),l.setAttribute("data-value",String(r)),l.style[e.style]=t+"%",l.innerHTML=String(s.to(r)))}}(r,t[r][0],t[r][1])}),o}function G(){v&&(a(v),v=null)}function K(t){G();var e=Y(t),i=t.filter,s=t.format||{to:function(t){return String(Math.round(t))}};return v=E.appendChild(X(e,i,s))}function Q(){var t=r.getBoundingClientRect(),i="offset"+["Width","Height"][e.ort];return 0===e.ort?t.width||r[i]:t.height||r[i]}function Z(t,i,s,n){var r=function(r){var a,o,l=function(t,e,i){var s=0===t.type.indexOf("touch"),n=0===t.type.indexOf("mouse"),r=0===t.type.indexOf("pointer"),a=0,o=0;0===t.type.indexOf("MSPointer")&&(r=!0);if("mousedown"===t.type&&!t.buttons&&!t.touches)return!1;if(s){var l=function(e){var s=e.target;return s===i||i.contains(s)||t.composed&&t.composedPath().shift()===i};if("touchstart"===t.type){var c=Array.prototype.filter.call(t.touches,l);if(c.length>1)return!1;a=c[0].pageX,o=c[0].pageY}else{var u=Array.prototype.find.call(t.changedTouches,l);if(!u)return!1;a=u.pageX,o=u.pageY}}e=e||g(I),(n||r)&&(a=t.clientX+e.x,o=t.clientY+e.y);return t.pageOffset=e,t.points=[a,o],t.cursor=n||r,t}(r,n.pageOffset,n.target||i);return!!l&&(!(V()&&!n.doNotReject)&&(a=E,o=e.cssClasses.tap,!((a.classList?a.classList.contains(o):new RegExp("\\b"+o+"\\b").test(a.className))&&!n.doNotReject)&&(!(t===w.start&&void 0!==l.buttons&&l.buttons>1)&&((!n.hover||!l.buttons)&&(S||l.preventDefault(),l.calcPoint=l.points[e.ort],void s(l,n))))))},a=[];return t.split(" ").forEach(function(t){i.addEventListener(t,r,!!S&&{passive:!0}),a.push([t,r])}),a}function tt(t){var i,s,n,a,o,l,c=100*(t-(i=r,s=e.ort,n=i.getBoundingClientRect(),a=i.ownerDocument,o=a.documentElement,l=g(a),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),s?n.top+l.y-o.clientTop:n.left+l.x-o.clientLeft))/Q();return c=h(c),e.dir?100-c:c}function et(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&st(t,e)}function it(t,i){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==i.buttonsProperty)return st(t,i);var s=(e.dir?-1:1)*(t.calcPoint-i.startCalcPoint);pt(s>0,100*s/i.baseSize,i.locations,i.handleNumbers,i.connect)}function st(t,i){i.handle&&(m(i.handle,e.cssClasses.active),A-=1),i.listeners.forEach(function(t){D.removeEventListener(t[0],t[1])}),0===A&&(m(E,e.cssClasses.drag),gt(),t.cursor&&(N.style.cursor="",N.removeEventListener("selectstart",l))),e.events.smoothSteps&&(i.handleNumbers.forEach(function(t){bt(t,C[t],!0,!0,!1,!1)}),i.handleNumbers.forEach(function(t){ut("update",t)})),i.handleNumbers.forEach(function(t){ut("change",t),ut("set",t),ut("end",t)})}function nt(t,i){if(!i.handleNumbers.some(H)){var s;if(1===i.handleNumbers.length)s=p[i.handleNumbers[0]].children[0],A+=1,f(s,e.cssClasses.active);t.stopPropagation();var n=[],r=Z(w.move,D,it,{target:t.target,handle:s,connect:i.connect,listeners:n,startCalcPoint:t.calcPoint,baseSize:Q(),pageOffset:t.pageOffset,handleNumbers:i.handleNumbers,buttonsProperty:t.buttons,locations:C.slice()}),a=Z(w.end,D,st,{target:t.target,handle:s,listeners:n,doNotReject:!0,handleNumbers:i.handleNumbers}),o=Z("mouseout",D,et,{target:t.target,handle:s,listeners:n,doNotReject:!0,handleNumbers:i.handleNumbers});n.push.apply(n,r.concat(a,o)),t.cursor&&(N.style.cursor=getComputedStyle(t.target).cursor,p.length>
21&&f(E,e.cssClasses.drag),N.addEventListener("selectstart",l,!1)),i.handleNumbers.forEach(function(t){ut("start",t)})}}function rt(t){t.stopPropagation();var i=tt(t.calcPoint),s=function(t){var e=100,i=!1;return p.forEach(function(s,n){if(!H(n)){var r=C[n],a=Math.abs(r-t);(a<e||a<=e&&t>r||100===a&&100===e)&&(i=n,e=a)}}),i}(i);!1!==s&&(e.events.snap||u(E,e.cssClasses.tap,e.animationDuration),bt(s,i,!0,!0),gt(),ut("slide",s,!0),ut("update",s,!0),e.events.snap?nt(t,{handleNumbers:[s]}):(ut("change",s,!0),ut("set",s,!0)))}function at(t){var e=tt(t.calcPoint),i=M.getStep(e),s=M.fromStepping(i);Object.keys(O).forEach(function(t){"hover"===t.split(".")[0]&&O[t].forEach(function(t){t.call(Mt,s)})})}function ot(t){t.fixed||p.forEach(function(t,e){Z(w.start,t.children[0],nt,{handleNumbers:[e]})}),t.tap&&Z(w.start,r,rt,{}),t.hover&&Z(w.move,r,at,{hover:!0}),t.drag&&b.forEach(function(i,s){if(!1!==i&&0!==s&&s!==b.length-1){var n=p[s-1],r=p[s],a=[i],o=[n,r],l=[s-1,s];f(i,e.cssClasses.draggable),t.fixed&&(a.push(n.children[0]),a.push(r.children[0])),t.dragAll&&(o=p,l=P),a.forEach(function(t){Z(w.start,t,nt,{handles:o,handleNumbers:l,connect:i})})}})}function lt(t,e){O[t]=O[t]||[],O[t].push(e),"update"===t.split(".")[0]&&p.forEach(function(t,e){ut("update",e)})}function ct(t){var e=t&&t.split(".")[0],i=e?t.substring(e.length):t;Object.keys(O).forEach(function(t){var s=t.split(".")[0],n=t.substring(s.length);e&&e!==s||i&&i!==n||function(t){return t===k||t===T}(n)&&i!==n||delete O[t]})}function ut(t,i,s){Object.keys(O).forEach(function(n){var r=n.split(".")[0];t===r&&O[n].forEach(function(t){t.call(Mt,_.map(e.format.to),i,_.slice(),s||!1,C.slice(),Mt)})})}function ht(t,i,s,n,r,a,o){var l;return p.length>1&&!e.events.unconstrained&&(n&&i>0&&(l=M.getAbsoluteDistance(t[i-1],e.margin,!1),s=Math.max(s,l)),r&&i<p.length-1&&(l=M.getAbsoluteDistance(t[i+1],e.margin,!0),s=Math.min(s,l))),p.length>1&&e.limit&&(n&&i>0&&(l=M.getAbsoluteDistance(t[i-1],e.limit,!1),s=Math.min(s,l)),r&&i<p.length-1&&(l=M.getAbsoluteDistance(t[i+1],e.limit,!0),s=Math.max(s,l))),e.padding&&(0===i&&(l=M.getAbsoluteDistance(0,e.padding[0],!1),s=Math.max(s,l)),i===p.length-1&&(l=M.getAbsoluteDistance(100,e.padding[1],!0),s=Math.min(s,l))),o||(s=M.getStep(s)),!((s=h(s))===t[i]&&!a)&&s}function dt(t,i){var s=e.ort;return(s?i:t)+", "+(s?t:i)}function pt(t,i,s,n,r){var a=s.slice(),o=n[0],l=e.events.smoothSteps,c=[!t,t],u=[t,!t];n=n.slice(),t&&n.reverse(),n.length>1?n.forEach(function(t,e){var s=ht(a,t,a[t]+i,c[e],u[e],!1,l);!1===s?i=0:(i=s-a[t],a[t]=s)}):c=u=[!0];var h=!1;n.forEach(function(t,e){h=bt(t,s[t]+i,c[e],u[e],!1,l)||h}),h&&(n.forEach(function(t){ut("update",t),ut("slide",t)}),null!=r&&ut("drag",o))}function ft(t,i){return e.dir?100-t-i:t}function mt(t,i){C[t]=i,_[t]=M.fromStepping(i);var s="translate("+dt(ft(i,0)-F+"%","0")+")";if(p[t].style[e.transformRule]=s,e.events.invertConnects&&C.length>1){var n=C.every(function(t,e,i){return 0===e||t>=i[e-1]});if(L!==!n)return L=!L,R(e,e.connect.map(function(t){return!t})),void Et()}vt(t),vt(t+1),L&&(vt(t-1),vt(t+2))}function gt(){P.forEach(function(t){var e=C[t]>50?-1:1,i=3+(p.length+e*t);p[t].style.zIndex=String(i)})}function bt(t,e,i,s,n,r){return n||(e=ht(C,t,e,i,s,!1,r)),!1!==e&&(mt(t,e),!0)}function vt(t){if(b[t]){var i=C.slice();L&&i.sort(function(t,e){return t-e});var s=0,n=100;0!==t&&(s=i[t-1]),t!==b.length-1&&(n=i[t]);var r=n-s,a="translate("+dt(ft(s,r)+"%","0")+")",o="scale("+dt(r/100,"1")+")";b[t].style[e.transformRule]=a+" "+o}}function yt(t,i){return null===t||!1===t||void 0===t?C[i]:("number"==typeof t&&(t=String(t)),!1!==(t=e.format.from(t))&&(t=M.toStepping(t)),!1===t||isNaN(t)?C[i]:t)}function xt(t,i,s){var n=d(t),r=void 0===C[0];i=void 0===i||i,e.animate&&!r&&u(E,e.cssClasses.tap,e.animationDuration),P.forEach(function(t){bt(t,yt(n[t],t),!0,!1,s)});var a=1===P.length?0:1;if(r&&M.hasNoSize()&&(s=!0,C[0]=0,P.length>1)){var o=100/(P.length-1);P.forEach(function(t){C[t]=t*o})}for(;a<P.length;++a)P.forEach(function(t){bt(t,C[t],!0,!0,s)});gt(),P.forEach(function(t){ut("update",t),null!==n[t]&&i&&ut("set",t)})}function wt(t){if(void 0===t&&(t=!1),t)return 1===_.length?_[0]:_.slice(0);var i=_.map(e.format.to);return 1===i.length?i[0]:i}function St(t){var i=C[t],s=M.getNearbySteps(i),n=_[t],r=s.thisStep.step,a=null;if(e.snap)return[n-s.stepBefore.startValue||null,s.stepAfter.startValue-n||null];!1!==r&&n+r>s.stepAfter.startValue&&(r=s.stepAfter.startValue-n),a=n>s.thisStep.startValue?s.thisStep.step:!1!==s.stepBefore.step&&n-s.stepBefore.highestStep,100===i?r=null:0===i&&(a=null);
2var o=M.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(o))),null!==a&&!1!==a&&(a=Number(a.toFixed(o))),[a,r]}function Et(){for(;c.firstChild;)c.removeChild(c.firstChild);for(var t=0;t<=e.handles;t++)b[t]=j(c,e.connect[t]),vt(t);ot({drag:e.events.drag,fixed:!0})}f(x=E,e.cssClasses.target),0===e.dir?f(x,e.cssClasses.ltr):f(x,e.cssClasses.rtl),0===e.ort?f(x,e.cssClasses.horizontal):f(x,e.cssClasses.vertical),f(x,"rtl"===getComputedStyle(x).direction?e.cssClasses.textDirectionRtl:e.cssClasses.textDirectionLtr),r=$(x,e.cssClasses.base),function(t,i){c=$(i,e.cssClasses.connects),p=[],(b=[]).push(j(c,t[0]));for(var s=0;s<e.handles;s++)p.push(z(i,s)),P[s]=s,b.push(j(c,t[s+1]))}(e.connect,r),ot(e.events),xt(e.start),e.pips&&K(e.pips),e.tooltips&&U(),ct("update"+k),lt("update"+k,function(t,i,s,n,r){P.forEach(function(t){var i=p[t],n=ht(C,t,0,!0,!0,!0),a=ht(C,t,100,!0,!0,!0),o=r[t],l=String(e.ariaFormat.to(s[t]));n=M.fromStepping(n).toFixed(1),a=M.fromStepping(a).toFixed(1),o=M.fromStepping(o).toFixed(1),i.children[0].setAttribute("aria-valuemin",n),i.children[0].setAttribute("aria-valuemax",a),i.children[0].setAttribute("aria-valuenow",o),i.children[0].setAttribute("aria-valuetext",l)})});var Mt={destroy:function(){for(ct(k),ct(T),Object.keys(e.cssClasses).forEach(function(t){m(E,e.cssClasses[t])});E.firstChild;)E.removeChild(E.firstChild);delete E.noUiSlider},steps:function(){return P.map(St)},on:lt,off:ct,get:wt,set:xt,setHandle:function(t,e,i,s){if(!((t=Number(t))>=0&&t<P.length))throw new Error("noUiSlider: invalid handle number, got: "+t);bt(t,yt(e,t),!0,!0,s),ut("update",t),i&&ut("set",t)},reset:function(t){xt(e.start,t)},disable:function(t){null!=t?(p[t].setAttribute("disabled",""),p[t].handle.removeAttribute("tabindex")):(E.setAttribute("disabled",""),p.forEach(function(t){t.handle.removeAttribute("tabindex")}))},enable:function(t){null!=t?(p[t].removeAttribute("disabled"),p[t].handle.setAttribute("tabindex","0")):(E.removeAttribute("disabled"),p.forEach(function(t){t.removeAttribute("disabled"),t.handle.setAttribute("tabindex","0")}))},__moveHandles:function(t,e,i){pt(t,e,C,i)},options:i,updateOptions:function(t,s){var n=wt(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];r.forEach(function(e){void 0!==t[e]&&(i[e]=t[e])});var a=J(i);r.forEach(function(i){void 0!==t[i]&&(e[i]=a[i])}),M=a.spectrum,e.margin=a.margin,e.limit=a.limit,e.padding=a.padding,e.pips?K(e.pips):G(),e.tooltips?U():W(),C=[],xt(o(t.start)?t.start:n,s),t.connect&&Et()},target:E,removePips:G,removeTooltips:W,getPositions:function(){return C.slice()},getTooltips:function(){return y},getOrigins:function(){return p},pips:K};return Mt}e.Ay={__spectrum:S,cssClasses:M,create:function(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var i=Q(t,J(e),e);return t.noUiSlider=i,i}}},9504:function(t,e,i){"use strict";var s=i(616),n=Function.prototype,r=n.call,a=s&&n.bind.bind(r,r);t.exports=s?a:function(t){return function(){return r.apply(t,arguments)}}},9519:function(t,e,i){"use strict";var s,n,r=i(4576),a=i(2839),o=r.process,l=r.Deno,c=o&&o.versions||l&&l.version,u=c&&c.v8;u&&(n=(s=u.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&a&&(!(s=a.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=a.match(/Chrome\/(\d+)/))&&(n=+s[1]),t.exports=n},9539:function(t,e,i){"use strict";var s=i(9565),n=i(8551),r=i(5966);t.exports=function(t,e,i){var a,o;n(t);try{if(!(a=r(t,"return"))){if("throw"===e)throw i;return i}a=s(a,t)}catch(t){o=!0,a=t}if("throw"===e)throw i;if(o)throw a;return n(a),i}},9544:function(t,e,i){"use strict";var s=i(2839);
vendor: 2,182 bytes, line 2
2t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},9565:function(t,e,i){"use strict";var s=i(616),n=Function.prototype.call;t.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},9572:function(t,e,i){"use strict";var s=i(9297),n=i(6840),r=i(3640),a=i(8227)("toPrimitive"),o=Date.prototype;s(o,a)||n(o,a,r)},9617:function(t,e,i){"use strict";var s=i(5397),n=i(5610),r=i(6198),a=function(t){return function(e,i,a){var o=s(e),l=r(o);if(0===l)return!t&&-1;var c,u=n(a,l);if(t&&i!=i){for(;l>u;)if((c=o[u++])!=c)return!0}else for(;l>u;u++)if((t||u in o)&&o[u]===i)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9773:function(t,e,i){"use strict";var s=i(6518),n=i(4495),r=i(9039),a=i(3717),o=i(8981);s({target:"Object",stat:!0,forced:!n||r(function(){a.f(1)})},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(o(t)):[]}})},9868:function(t,e,i){"use strict";var s=i(6518),n=i(9504),r=i(1291),a=i(1240),o=i(2333),l=i(9039),c=RangeError,u=String,h=Math.floor,d=n(o),p=n("".slice),f=n(1.1.toFixed),m=function(t,e,i){return 0===e?i:e%2==1?m(t,e-1,i*t):m(t*t,e/2,i)},g=function(t,e,i){for(var s=-1,n=i;++s<6;)n+=e*t[s],t[s]=n%1e7,n=h(n/1e7)},b=function(t,e){for(var i=6,s=0;--i>=0;)s+=t[i],t[i]=h(s/e),s=s%e*1e7},v=function(t){for(var e=6,i="";--e>=0;)if(""!==i||0===e||0!==t[e]){var s=u(t[e]);i=""===i?s:i+d("0",7-s.length)+s}return i};s({target:"Number",proto:!0,forced:l(function(){return"0.000"!==f(8e-5,3)||"1"!==f(.9,0)||"1.25"!==f(1.255,2)||"1000000000000000128"!==f(0xde0b6b3a7640080,0)})||!l(function(){f({})})},{toFixed:function(t){var e,i,s,n,o=a(this),l=r(t),h=[0,0,0,0,0,0],f="",y="0";if(l<0||l>20)throw new c("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return u(o);if(o<0&&(f="-",o=-o),o>1e-21)if(i=(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(o*m(2,69,1))-69)<0?o*m(2,-e,1):o/m(2,e,1),i*=4503599627370496,(e=52-e)>0){for(g(h,0,i),s=l;s>=7;)g(h,1e7,0),s-=7;for(g(h,m(10,s,1),0),s=e-1;s>=23;)b(h,1<<23),s-=23;b(h,1<<s),g(h,1,1),b(h,2),y=v(h)}else g(h,0,i),g(h,1<<-e,0),y=v(h)+d("0",l);return y=l>0?f+((n=y.length)<=l?"0."+d("0",l-n)+y:p(y,0,n-l)+"."+p(y,n-l)):f+y}})}}]);

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.