/*! For license information please see application-6f4c4fee307913c406a7.chunk.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[6,2,3,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,394,395,396],[function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return ge})),n.d(e,"b",(function(){return F})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return Re})),n.d(e,"f",(function(){return Z})),n.d(e,"g",(function(){return U})),n.d(e,"h",(function(){return ce})),n.d(e,"i",(function(){return R})),n.d(e,"j",(function(){return tt})),n.d(e,"k",(function(){return he})),n.d(e,"l",(function(){return Me})),n.d(e,"m",(function(){return be})),n.d(e,"n",(function(){return ke})),n.d(e,"o",(function(){return ve})),n.d(e,"p",(function(){return Ae})),n.d(e,"q",(function(){return C})),n.d(e,"r",(function(){return p})),n.d(e,"s",(function(){return ft})),n.d(e,"t",(function(){return pt})),n.d(e,"u",(function(){return T})),n.d(e,"v",(function(){return oe})),n.d(e,"w",(function(){return y})),n.d(e,"x",(function(){return x})),n.d(e,"y",(function(){return dn})),n.d(e,"z",(function(){return it})),n.d(e,"A",(function(){return rt})),n.d(e,"B",(function(){return ut})),n.d(e,"C",(function(){return De})),n.d(e,"D",(function(){return X})),n.d(e,"E",(function(){return fn})),n.d(e,"F",(function(){return on})),n.d(e,"G",(function(){return gn})),n.d(e,"H",(function(){return dt})),n.d(e,"I",(function(){return mn})),n.d(e,"J",(function(){return rn})),n.d(e,"K",(function(){return ae})),n.d(e,"L",(function(){return j})),n.d(e,"M",(function(){return We})),n.d(e,"N",(function(){return xn})),n.d(e,"O",(function(){return En})),n.d(e,"P",(function(){return mt})),n.d(e,"Q",(function(){return jn})),n.d(e,"R",(function(){return me})),n.d(e,"S",(function(){return r})),n.d(e,"T",(function(){return J})),n.d(e,"U",(function(){return q})),n.d(e,"V",(function(){return N})),n.d(e,"W",(function(){return V})),n.d(e,"X",(function(){return B})),n.d(e,"Y",(function(){return G})),n.d(e,"Z",(function(){return de})),n.d(e,"ab",(function(){return ot})),n.d(e,"bb",(function(){return nt})),n.d(e,"cb",(function(){return Ie})),n.d(e,"db",(function(){return ze})),n.d(e,"eb",(function(){return w})),n.d(e,"fb",(function(){return i})),n.d(e,"gb",(function(){return ht})),n.d(e,"hb",(function(){return pn})),n.d(e,"ib",(function(){return fe})),n.d(e,"jb",(function(){return S})),n.d(e,"kb",(function(){return m})),n.d(e,"lb",(function(){return P})),n.d(e,"mb",(function(){return et})),n.d(e,"nb",(function(){return Pe})),n.d(e,"ob",(function(){return nn})),n.d(e,"pb",(function(){return Mn})),n.d(e,"qb",(function(){return Tn})),n.d(e,"rb",(function(){return vn})),n.d(e,"sb",(function(){return yn})),n.d(e,"tb",(function(){return bn})),n.d(e,"ub",(function(){return ye})),n.d(e,"vb",(function(){return we})),n.d(e,"wb",(function(){return pe})),n.d(e,"xb",(function(){return Oe})),n.d(e,"yb",(function(){return Ce})),n.d(e,"zb",(function(){return Te})),n.d(e,"Ab",(function(){return Cn})),n.d(e,"Bb",(function(){return $})),n.d(e,"Cb",(function(){return a})),n.d(e,"Db",(function(){return D})),n.d(e,"Eb",(function(){return L})),n.d(e,"Fb",(function(){return I})),n.d(e,"Gb",(function(){return re})),n.d(e,"Hb",(function(){return ue})),n.d(e,"Ib",(function(){return kt})),n.d(e,"Jb",(function(){return O})),n.d(e,"Kb",(function(){return l})),n.d(e,"Lb",(function(){return Le})),n.d(e,"Mb",(function(){return s})),n.d(e,"Nb",(function(){return E})),n.d(e,"Ob",(function(){return o})),n.d(e,"Pb",(function(){return st})),n.d(e,"Qb",(function(){return d})),n.d(e,"Rb",(function(){return h})),n.d(e,"Sb",(function(){return kn})),n.d(e,"Tb",(function(){return Q})),n.d(e,"Ub",(function(){return gt})),n.d(e,"Vb",(function(){return ct})),n.d(e,"Wb",(function(){return z})),n.d(e,"Xb",(function(){return Y})),n.d(e,"Yb",(function(){return lt})),n.d(e,"Zb",(function(){return c})),n.d(e,"ac",(function(){return bt})),n.d(e,"bc",(function(){return H})),n.d(e,"cc",(function(){return Je})),n.d(e,"dc",(function(){return W}));const i=function(){let t=0;return function(){return t++}}();function o(t){return null===t||"undefined"===typeof t}function a(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 s(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const l=t=>("number"===typeof t||t instanceof Number)&&isFinite(+t);function u(t,e){return l(t)?t:e}function c(t,e){return"undefined"===typeof t?e:t}const d=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,h=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function f(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)}function p(t,e,n,r){let i,o,l;if(a(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i);else if(s(t))for(l=Object.keys(t),o=l.length,i=0;i<o;i++)e.call(n,t[l[i]],l[i])}function m(t,e){let n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function g(t){if(a(t))return t.map(g);if(s(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=g(t[n[i]]);return e}return t}function b(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function v(t,e,n,r){if(!b(t))return;const i=e[t],o=n[t];s(i)&&s(o)?y(i,o,r):e[t]=g(o)}function y(t,e,n){const r=a(e)?e:[e],i=r.length;if(!s(t))return t;const o=(n=n||{}).merger||v;for(let a=0;a<i;++a){if(!s(e=r[a]))continue;const i=Object.keys(e);for(let r=0,a=i.length;r<a;++r)o(i[r],t,e,n)}return t}function w(t,e){return y(t,e,{merger:k})}function k(t,e,n){if(!b(t))return;const r=e[t],i=n[t];s(r)&&s(i)?w(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=g(i))}const _={"":t=>t,x:t=>t.x,y:t=>t.y};function O(t,e){const n=_[e]||(_[e]=function(t){const e=function(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function x(t){return t.charAt(0).toUpperCase()+t.slice(1)}const E=t=>"undefined"!==typeof t,j=t=>"function"===typeof t,S=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function P(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const C=Math.PI,T=2*C,M=T+C,A=Number.POSITIVE_INFINITY,D=C/180,R=C/2,L=C/4,I=2*C/3,W=Math.log10,z=Math.sign;function N(t){const e=Math.round(t);t=B(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(W(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function F(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}function H(t){return!isNaN(parseFloat(t))&&isFinite(t)}function B(t,e,n){return Math.abs(t-e)<n}function V(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function q(t,e,n){let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function Y(t){return t*(C/180)}function U(t){return t*(180/C)}function G(t){if(!l(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function X(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*C&&(o+=T),{angle:o,distance:i}}function J(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function K(t,e){return(t-e+M)%T-C}function $(t){return(t%T+T)%T}function Q(t,e,n,r){const i=$(t),o=$(e),a=$(n),s=$(o-i),l=$(a-i),u=$(i-o),c=$(i-a);return i===o||i===a||r&&o===a||s>l&&u<c}function Z(t,e,n){return Math.max(e,Math.min(n,t))}function tt(t){return Z(t,-32768,32767)}function et(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function nt(t,e,n){n=n||(n=>t[n]<e);let r,i=t.length-1,o=0;for(;i-o>1;)r=o+i>>1,n(r)?o=r:i=r;return{lo:o,hi:i}}const rt=(t,e,n,r)=>nt(t,n,r?r=>t[r][e]<=n:r=>t[r][e]<n),it=(t,e,n)=>nt(t,n,(r=>t[r][e]>=n));function ot(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}const at=["push","pop","shift","splice","unshift"];function st(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),at.forEach((e=>{const n="_onData"+x(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const a=r.apply(this,i);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[n]&&t[n](...i)})),a}})})))}function lt(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),r.length>0||(at.forEach((e=>{delete t[e]})),delete t._chartjs)}function ut(t){const e=new Set;let n,r;for(n=0,r=t.length;n<r;++n)e.add(t[n]);return e.size===r?t:Array.from(e)}const ct="undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame;function dt(t,e,n){const r=n||(t=>Array.prototype.slice.call(t));let i=!1,o=[];return function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];o=r(a),i||(i=!0,ct.call(window,(()=>{i=!1,t.apply(e,o)})))}}function ht(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const ft=t=>"start"===t?"left":"end"===t?"right":"center",pt=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,mt=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function gt(t,e,n){const r=e.length;let i=0,o=r;if(t._sorted){const a=t.iScale,s=t._parsed,l=a.axis,u=a.getUserBounds(),c=u.min,d=u.max,h=u.minDefined,f=u.maxDefined;h&&(i=Z(Math.min(rt(s,a.axis,c).lo,n?r:rt(e,l,a.getPixelForValue(c)).lo),0,r-1)),o=f?Z(Math.max(rt(s,a.axis,d,!0).hi+1,n?0:rt(e,l,a.getPixelForValue(d),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function bt(t){const e=t.xScale,n=t.yScale,r=t._scaleRanges,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const o=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const vt=t=>0===t||1===t,yt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*T/n),wt=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*T/n)+1,kt={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*R),easeOutSine:t=>Math.sin(t*R),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=>vt(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=>vt(t)?t:yt(t,.075,.3),easeOutElastic:t=>vt(t)?t:wt(t,.075,.3),easeInOutElastic(t){const e=.1125;return vt(t)?t:t<.5?.5*yt(2*t,e,.45):.5+.5*wt(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-kt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*kt.easeInBounce(2*t):.5*kt.easeOutBounce(2*t-1)+.5};function _t(t){return t+.5|0}const Ot=(t,e,n)=>Math.max(Math.min(t,n),e);function xt(t){return Ot(_t(2.55*t),0,255)}function Et(t){return Ot(_t(255*t),0,255)}function jt(t){return Ot(_t(t/2.55)/100,0,1)}function St(t){return Ot(_t(100*t),0,100)}const Pt={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},Ct=[..."0123456789ABCDEF"],Tt=t=>Ct[15&t],Mt=t=>Ct[(240&t)>>4]+Ct[15&t],At=t=>(240&t)>>4===(15&t);function Dt(t){var e=(t=>At(t.r)&&At(t.g)&&At(t.b)&&At(t.a))(t)?Tt:Mt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Rt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Lt(t,e,n){const r=e*Math.min(n,1-n),i=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+t/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function It(t,e,n){const r=function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+t/60)%6;return n-n*e*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function Wt(t,e,n){const r=Lt(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function zt(t){const e=t.r/255,n=t.g/255,r=t.b/255,i=Math.max(e,n,r),o=Math.min(e,n,r),a=(i+o)/2;let s,l,u;return i!==o&&(u=i-o,l=a>.5?u/(2-i-o):u/(i+o),s=function(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}(e,n,r,u,i),s=60*s+.5),[0|s,l||0,a]}function Nt(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Et)}function Ft(t,e,n){return Nt(Lt,t,e,n)}function Ht(t){return(t%360+360)%360}function Bt(t){const e=Rt.exec(t);let n,r=255;if(!e)return;e[5]!==n&&(r=e[6]?xt(+e[5]):Et(+e[5]));const i=Ht(+e[2]),o=+e[3]/100,a=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Nt(Wt,t,e,n)}(i,o,a):"hsv"===e[1]?function(t,e,n){return Nt(It,t,e,n)}(i,o,a):Ft(i,o,a),{r:n[0],g:n[1],b:n[2],a:r}}const Vt={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"},qt={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 Yt;function Ut(t){Yt||(Yt=function(){const t={},e=Object.keys(qt),n=Object.keys(Vt);let r,i,o,a,s;for(r=0;r<e.length;r++){for(a=s=e[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,Vt[o]);o=parseInt(qt[a],16),t[s]=[o>>16&255,o>>8&255,255&o]}return t}(),Yt.transparent=[0,0,0,0]);const e=Yt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Gt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Xt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Jt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Kt(t,e,n){if(t){let r=zt(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=Ft(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function $t(t,e){return t?Object.assign(e||{},t):t}function Qt(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=Et(t[3]))):(e=$t(t,{r:0,g:0,b:0,a:1})).a=Et(e.a),e}function Zt(t){return"r"===t.charAt(0)?function(t){const e=Gt.exec(t);let n,r,i,o=255;if(e){if(e[7]!==n){const t=+e[7];o=e[8]?xt(t):Ot(255*t,0,255)}return n=+e[1],r=+e[3],i=+e[5],n=255&(e[2]?xt(n):Ot(n,0,255)),r=255&(e[4]?xt(r):Ot(r,0,255)),i=255&(e[6]?xt(i):Ot(i,0,255)),{r:n,g:r,b:i,a:o}}}(t):Bt(t)}class te{constructor(t){if(t instanceof te)return t;const e=typeof t;let n;var r,i,o;"object"===e?n=Qt(t):"string"===e&&(o=(r=t).length,"#"===r[0]&&(4===o||5===o?i={r:255&17*Pt[r[1]],g:255&17*Pt[r[2]],b:255&17*Pt[r[3]],a:5===o?17*Pt[r[4]]:255}:7!==o&&9!==o||(i={r:Pt[r[1]]<<4|Pt[r[2]],g:Pt[r[3]]<<4|Pt[r[4]],b:Pt[r[5]]<<4|Pt[r[6]],a:9===o?Pt[r[7]]<<4|Pt[r[8]]:255})),n=i||Ut(t)||Zt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=$t(this._rgb);return t&&(t.a=jt(t.a)),t}set rgb(t){this._rgb=Qt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${jt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Dt(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=zt(t),n=e[0],r=St(e[1]),i=St(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${jt(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,r=t.rgb;let i;const o=e===i?.5:e,a=2*o-1,s=n.a-r.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=o*n.a+(1-o)*r.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const r=Jt(jt(t.r)),i=Jt(jt(t.g)),o=Jt(jt(t.b));return{r:Et(Xt(r+n*(Jt(jt(e.r))-r))),g:Et(Xt(i+n*(Jt(jt(e.g))-i))),b:Et(Xt(o+n*(Jt(jt(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new te(this.rgb)}alpha(t){return this._rgb.a=Et(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=_t(.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 Kt(this._rgb,2,t),this}darken(t){return Kt(this._rgb,2,-t),this}saturate(t){return Kt(this._rgb,1,t),this}desaturate(t){return Kt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=zt(t);n[0]=Ht(n[0]+e),n=Ft(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function ee(t){return new te(t)}function ne(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function re(t){return ne(t)?t:ee(t)}function ie(t){return ne(t)?t:ee(t).saturate(.5).darken(.1).hexString()}const oe=Object.create(null),ae=Object.create(null);function se(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;r<i;++r){const e=n[r];t=t[e]||(t[e]=Object.create(null))}return t}function le(t,e,n){return"string"===typeof e?y(se(t,e),n):y(se(t,""),e)}var ue=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)=>ie(e.backgroundColor),this.hoverBorderColor=(t,e)=>ie(e.borderColor),this.hoverColor=(t,e)=>ie(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={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return le(this,t,e)}get(t){return se(this,t)}describe(t,e){return le(ae,t,e)}override(t,e){return le(oe,t,e)}route(t,e,n,r){const i=se(this,t),o=se(this,n),a="_"+e;Object.defineProperties(i,{[a]:{value:i[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[r];return s(t)?Object.assign({},e,t):c(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 ce(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function de(t,e,n,r){let i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const l=n.length;let u,c,d,h,f;for(u=0;u<l;u++)if(h=n[u],void 0!==h&&null!==h&&!0!==a(h))s=ce(t,i,o,s,h);else if(a(h))for(c=0,d=h.length;c<d;c++)f=h[c],void 0===f||null===f||a(f)||(s=ce(t,i,o,s,f));t.restore();const p=o.length/2;if(p>n.length){for(u=0;u<p;u++)delete i[o[u]];o.splice(0,p)}return s}function he(t,e,n){const r=t.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function fe(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function pe(t,e,n,r){me(t,e,n,r,null)}function me(t,e,n,r,i){let o,a,s,l,u,c;const d=e.pointStyle,h=e.rotation,f=e.radius;let p=(h||0)*D;if(d&&"object"===typeof d&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,r),t.rotate(p),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),d){default:i?t.ellipse(n,r,i/2,f,0,0,T):t.arc(n,r,f,0,T),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(p)*f,r-Math.cos(p)*f),p+=I,t.lineTo(n+Math.sin(p)*f,r-Math.cos(p)*f),p+=I,t.lineTo(n+Math.sin(p)*f,r-Math.cos(p)*f),t.closePath();break;case"rectRounded":u=.516*f,l=f-u,a=Math.cos(p+L)*l,s=Math.sin(p+L)*l,t.arc(n-a,r-s,u,p-C,p-R),t.arc(n+s,r-a,u,p-R,p),t.arc(n+a,r+s,u,p,p+R),t.arc(n-s,r+a,u,p+R,p+C),t.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*f,c=i?i/2:l,t.rect(n-c,r-l,2*c,2*l);break}p+=L;case"rectRot":a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,r-s),t.lineTo(n+s,r-a),t.lineTo(n+a,r+s),t.lineTo(n-s,r+a),t.closePath();break;case"crossRot":p+=L;case"cross":a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"star":a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a),p+=L,a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"line":a=i?i/2:Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(p)*f,r+Math.sin(p)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function ge(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function be(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ve(t){t.restore()}function ye(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);if("middle"===i){const r=(e.x+n.x)/2;t.lineTo(r,e.y),t.lineTo(r,n.y)}else"after"===i!==!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function we(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function ke(t,e,n,r,i){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const l=a(e)?e:[e],u=s.strokeWidth>0&&""!==s.strokeColor;let c,d;for(t.save(),t.font=i.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);o(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,s),c=0;c<l.length;++c)d=l[c],u&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),o(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(d,n,r,s.maxWidth)),t.fillText(d,n,r,s.maxWidth),_e(t,n,r,d,s),r+=i.lineHeight;t.restore()}function _e(t,e,n,r,i){if(i.strikethrough||i.underline){const o=t.measureText(r),a=e-o.actualBoundingBoxLeft,s=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,c),t.lineTo(s,c),t.stroke()}}function Oe(t,e){const n=e.x,r=e.y,i=e.w,o=e.h,a=e.radius;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-R,C,!0),t.lineTo(n,r+o-a.bottomLeft),t.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,C,R,!0),t.lineTo(n+i-a.bottomRight,r+o),t.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,R,0,!0),t.lineTo(n+i,r+a.topRight),t.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-R,!0),t.lineTo(n+a.topLeft,r)}const xe=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Ee=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function je(t,e){const n=(""+t).match(xe);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const Se=t=>+t||0;function Pe(t,e){const n={},r=s(e),i=r?Object.keys(e):e,o=s(t)?r?n=>c(t[n],t[e[n]]):e=>t[e]:()=>t;for(const a of i)n[a]=Se(o(a));return n}function Ce(t){return Pe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Te(t){return Pe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Me(t){const e=Ce(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ae(t,e){t=t||{},e=e||ue.font;let n=c(t.size,e.size);"string"===typeof n&&(n=parseInt(n,10));let r=c(t.style,e.style);r&&!(""+r).match(Ee)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const i={family:c(t.family,e.family),lineHeight:je(c(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:c(t.weight,e.weight),string:""};return i.string=function(t){return!t||o(t.size)||o(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i}function De(t,e,n,r){let i,o,s,l=!0;for(i=0,o=t.length;i<o;++i)if(s=t[i],void 0!==s&&(void 0!==e&&"function"===typeof s&&(s=s(e),l=!1),void 0!==n&&a(s)&&(s=s[n%s.length],l=!1),void 0!==s))return r&&!l&&(r.cacheable=!1),s}function Re(t,e,n){const r=t.min,i=t.max,o=h(e,(i-r)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Le(t,e){return Object.assign(Object.create(t),e)}function Ie(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>t[0];E(r)||(r=Ge("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:i,override:i=>Ie([i,...t],e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>He(n,r,(()=>function(t,e,n,r){let i;for(const o of e)if(i=Ge(Ne(o,t),n),E(i))return Fe(t,i)?Ye(n,r,t,i):i}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Xe(t).includes(e),ownKeys:t=>Xe(t),set(t,e,n){const r=t._storage||(t._storage=i());return t[e]=r[e]=n,delete t._keys,!0}})}function We(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ze(t,r),setContext:e=>We(t,e,n,r),override:i=>We(t.override(i),e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>He(t,e,(()=>function(t,e,n){const r=t._proxy,i=t._context,o=t._subProxy,l=t._descriptors;let u=r[e];j(u)&&l.isScriptable(e)&&(u=function(t,e,n,r){const i=n._proxy,o=n._context,a=n._subProxy,s=n._stack;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(o,a||r),s.delete(t),Fe(t,e)&&(e=Ye(i._scopes,i,t,e));return e}(e,u,t,n));a(u)&&u.length&&(u=function(t,e,n,r){const i=n._proxy,o=n._context,a=n._subProxy,l=n._descriptors;if(E(o.index)&&r(t))e=e[o.index%e.length];else if(s(e[0])){const n=e,r=i._scopes.filter((t=>t!==n));e=[];for(const s of n){const n=Ye(r,i,t,s);e.push(We(n,o,a&&a[t],l))}}return e}(e,u,t,l.isIndexable));Fe(e,u)&&(u=We(u,i,o&&o[e],l));return u}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}function ze(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0};const n=t._scriptable,r=void 0===n?e.scriptable:n,i=t._indexable,o=void 0===i?e.indexable:i,a=t._allKeys;return{allKeys:void 0===a?e.allKeys:a,scriptable:r,indexable:o,isScriptable:j(r)?r:()=>r,isIndexable:j(o)?o:()=>o}}const Ne=(t,e)=>t?t+x(e):e,Fe=(t,e)=>s(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function He(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function Be(t,e,n){return j(t)?t(e,n):t}const Ve=(t,e)=>!0===t?e:"string"===typeof t?O(e,t):void 0;function qe(t,e,n,r,i){for(const o of e){const e=Ve(n,o);if(e){t.add(e);const o=Be(e._fallback,n,i);if(E(o)&&o!==n&&o!==r)return o}else if(!1===e&&E(r)&&n!==r)return null}return!1}function Ye(t,e,n,r){const i=e._rootScopes,o=Be(e._fallback,n,r),l=[...t,...i],u=new Set;u.add(r);let c=Ue(u,l,n,o||n,r);return null!==c&&((!E(o)||o===n||(c=Ue(u,l,o,c,r),null!==c))&&Ie(Array.from(u),[""],i,o,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];if(a(i)&&s(n))return n;return i}(e,n,r))))}function Ue(t,e,n,r,i){for(;n;)n=qe(t,e,n,r,i);return n}function Ge(t,e){for(const n of e){if(!n)continue;const e=n[t];if(E(e))return e}}function Xe(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Je(t,e,n,r){const i=t.iScale,o=this._parsing.key,a=void 0===o?"r":o,s=new Array(r);let l,u,c,d;for(l=0,u=r;l<u;++l)c=l+n,d=e[c],s[l]={r:i.parse(O(d,a),c)};return s}const Ke=Number.EPSILON||1e-14,$e=(t,e)=>e<t.length&&!t[e].skip&&t[e],Qe=t=>"x"===t?"y":"x";function Ze(t,e,n,r){const i=t.skip?e:t,o=e,a=n.skip?e:n,s=J(o,i),l=J(a,o);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,h=r*c;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}}function tn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";const n=Qe(e),r=t.length,i=Array(r).fill(0),o=Array(r);let a,s,l,u=$e(t,0);for(a=0;a<r;++a)if(s=l,l=u,u=$e(t,a+1),l){if(u){const t=u[e]-l[e];i[a]=0!==t?(u[n]-l[n])/t:0}o[a]=s?u?z(i[a-1])!==z(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}!function(t,e,n){const r=t.length;let i,o,a,s,l,u=$e(t,0);for(let c=0;c<r-1;++c)l=u,u=$e(t,c+1),l&&u&&(B(e[c],0,Ke)?n[c]=n[c+1]=0:(i=n[c]/e[c],o=n[c+1]/e[c],s=Math.pow(i,2)+Math.pow(o,2),s<=9||(a=3/Math.sqrt(s),n[c]=i*a*e[c],n[c+1]=o*a*e[c])))}(t,i,o),function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";const r=Qe(n),i=t.length;let o,a,s,l=$e(t,0);for(let u=0;u<i;++u){if(a=s,s=l,l=$e(t,u+1),!s)continue;const i=s[n],c=s[r];a&&(o=(i-a[n])/3,s[`cp1${n}`]=i-o,s[`cp1${r}`]=c-o*e[u]),l&&(o=(l[n]-i)/3,s[`cp2${n}`]=i+o,s[`cp2${r}`]=c+o*e[u])}}(t,o,e)}function en(t,e,n){return Math.max(Math.min(t,n),e)}function nn(t,e,n,r,i){let o,a,s,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)tn(t,i);else{let n=r?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)s=t[o],l=Ze(n,s,t[Math.min(o+1,a-(r?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,r,i,o,a,s=ge(t[0],e);for(n=0,r=t.length;n<r;++n)a=o,o=s,s=n<r-1&&ge(t[n+1],e),o&&(i=t[n],a&&(i.cp1x=en(i.cp1x,e.left,e.right),i.cp1y=en(i.cp1y,e.top,e.bottom)),s&&(i.cp2x=en(i.cp2x,e.left,e.right),i.cp2y=en(i.cp2y,e.top,e.bottom)))}(t,n)}function rn(){return"undefined"!==typeof window&&"undefined"!==typeof document}function on(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function an(t,e,n){let r;return"string"===typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}const sn=t=>window.getComputedStyle(t,null);const ln=["top","right","bottom","left"];function un(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=ln[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const cn=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function dn(t,e){if("native"in t)return t;const n=e.canvas,r=e.currentDevicePixelRatio,i=sn(n),o="border-box"===i.boxSizing,a=un(i,"padding"),s=un(i,"border","width"),l=function(t,e){const n=t.touches,r=n&&n.length?n[0]:t,i=r.offsetX,o=r.offsetY;let a,s,l=!1;if(cn(i,o,t.target))a=i,s=o;else{const t=e.getBoundingClientRect();a=r.clientX-t.left,s=r.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,n),u=l.x,c=l.y,d=l.box,h=a.left+(d&&s.left),f=a.top+(d&&s.top);let p=e.width,m=e.height;return o&&(p-=a.width+s.width,m-=a.height+s.height),{x:Math.round((u-h)/p*n.width/r),y:Math.round((c-f)/m*n.height/r)}}const hn=t=>Math.round(10*t)/10;function fn(t,e,n,r){const i=sn(t),o=un(i,"margin"),a=an(i.maxWidth,t,"clientWidth")||A,s=an(i.maxHeight,t,"clientHeight")||A,l=function(t,e,n){let r,i;if(void 0===e||void 0===n){const o=on(t);if(o){const t=o.getBoundingClientRect(),a=sn(o),s=un(a,"border","width"),l=un(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,r=an(a.maxWidth,o,"clientWidth"),i=an(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||A,maxHeight:i||A}}(t,e,n);let u=l.width,c=l.height;if("content-box"===i.boxSizing){const t=un(i,"border","width"),e=un(i,"padding");u-=e.width+t.width,c-=e.height+t.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?Math.floor(u/r):c-o.height),u=hn(Math.min(u,a,l.maxWidth)),c=hn(Math.min(c,s,l.maxHeight)),u&&!c&&(c=hn(u/2)),{width:u,height:c}}function pn(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=i/r,t.width=o/r;const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(t.currentDevicePixelRatio=r,a.height=i,a.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0)}const mn=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function gn(t,e){const n=function(t,e){return sn(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function bn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function vn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function yn(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=bn(t,i,n),s=bn(i,o,n),l=bn(o,e,n),u=bn(a,s,n),c=bn(s,l,n);return bn(u,c,n)}const wn=new Map;function kn(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=wn.get(n);return r||(r=new Intl.NumberFormat(t,e),wn.set(n,r)),r}(e,n).format(t)}const _n=function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},On=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function xn(t,e,n){return t?_n(e,n):On()}function En(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function jn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Sn(t){return"angle"===t?{between:Q,compare:K,normalize:$}:{between:et,compare:(t,e)=>t-e,normalize:t=>t}}function Pn(t){let e=t.start,n=t.end,r=t.count;return{start:e%r,end:n%r,loop:t.loop&&(n-e+1)%r===0,style:t.style}}function Cn(t,e,n){if(!n)return[t];const r=n.property,i=n.start,o=n.end,a=e.length,s=Sn(r),l=s.compare,u=s.between,c=s.normalize,d=function(t,e,n){const r=n.property,i=n.start,o=n.end,a=Sn(r),s=a.between,l=a.normalize,u=e.length;let c,d,h=t.start,f=t.end,p=t.loop;if(p){for(h+=u,f+=u,c=0,d=u;c<d&&s(l(e[h%u][r]),i,o);++c)h--,f--;h%=u,f%=u}return f<h&&(f+=u),{start:h,end:f,loop:p,style:t.style}}(t,e,n),h=d.start,f=d.end,p=d.loop,m=d.style,g=[];let b,v,y,w=!1,k=null;const _=()=>w||u(i,y,b)&&0!==l(i,y),O=()=>!w||0===l(o,b)||u(o,y,b);for(let x=h,E=h;x<=f;++x)v=e[x%a],v.skip||(b=c(v[r]),b!==y&&(w=u(b,i,o),null===k&&_()&&(k=0===l(b,i)?x:E),null!==k&&O()&&(g.push(Pn({start:k,end:x,loop:p,count:a,style:m})),k=null),E=x,y=b));return null!==k&&g.push(Pn({start:k,end:f,loop:p,count:a,style:m})),g}function Tn(t,e){const n=[],r=t.segments;for(let i=0;i<r.length;i++){const o=Cn(r[i],t.points,e);o.length&&n.push(...o)}return n}function Mn(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const o=!!t._loop,a=function(t,e,n,r){let i=0,o=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(o+=i);o>i&&t[o%e].skip;)o--;return o%=e,{start:i,end:o}}(n,i,o,r),s=a.start,l=a.end;if(!0===r)return An(t,[{start:s,end:l,loop:o}],n,e);return An(t,function(t,e,n,r){const i=t.length,o=[];let a,s=e,l=t[e];for(a=e+1;a<=n;++a){const n=t[a%i];n.skip||n.stop?l.skip||(r=!1,o.push({start:e%i,end:(a-1)%i,loop:r}),e=s=n.stop?a:null):(s=a,l.skip&&(e=a)),l=n}return null!==s&&o.push({start:e%i,end:s%i,loop:r}),o}(n,s,l<s?l+i:l,!!t._fullLoop&&0===s&&l===i-1),n,e)}function An(t,e,n,r){return r&&r.setContext&&n?function(t,e,n,r){const i=t._chart.getContext(),o=Dn(t.options),a=t._datasetIndex,s=t.options.spanGaps,l=n.length,u=[];let c=o,d=e[0].start,h=d;function f(t,e,r,i){const o=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=o;for(;n[e%l].skip;)e+=o;t%l!==e%l&&(u.push({start:t%l,end:e%l,loop:r,style:i}),c=i,d=e%l)}}for(const p of e){d=s?d:p.start;let t,e=n[d%l];for(h=d+1;h<=p.end;h++){const o=n[h%l];t=Dn(r.setContext(Le(i,{type:"segment",p0:e,p1:o,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),Rn(t,c)&&f(d,h-1,p.loop,c),e=o,c=t}d<h-1&&f(d,h-1,p.loop,c)}return u}(t,e,n,r):e}function Dn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Rn(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return Mr})),n.d(e,"b",(function(){return _n})),n.d(e,"c",(function(){return or})),n.d(e,"d",(function(){return Vr})),n.d(e,"e",(function(){return qr})),n.d(e,"f",(function(){return Yr})),n.d(e,"g",(function(){return Nr})),n.d(e,"h",(function(){return Hr})),n.d(e,"i",(function(){return pn})),n.d(e,"j",(function(){return bn})),n.d(e,"k",(function(){return Ur})),n.d(e,"l",(function(){return on})),n.d(e,"m",(function(){return zr})),n.d(e,"n",(function(){return R})),n.d(e,"o",(function(){return tt})),n.d(e,"p",(function(){return D})),n.d(e,"q",(function(){return u})),n.d(e,"r",(function(){return k})),n.d(e,"s",(function(){return rt})),n.d(e,"t",(function(){return sn})),n.d(e,"u",(function(){return Fr})),n.d(e,"v",(function(){return ht})),n.d(e,"w",(function(){return at})),n.d(e,"x",(function(){return T})),n.d(e,"y",(function(){return Ee})),n.d(e,"z",(function(){return Se})),n.d(e,"A",(function(){return je})),n.d(e,"B",(function(){return S})),n.d(e,"C",(function(){return K})),n.d(e,"D",(function(){return o})),n.d(e,"E",(function(){return ue})),n.d(e,"F",(function(){return xn})),n.d(e,"G",(function(){return Fe})),n.d(e,"H",(function(){return W})),n.d(e,"I",(function(){return I})),n.d(e,"J",(function(){return lt})),n.d(e,"K",(function(){return y})),n.d(e,"L",(function(){return v})),n.d(e,"M",(function(){return ce})),n.d(e,"N",(function(){return ln})),n.d(e,"O",(function(){return un})),n.d(e,"P",(function(){return be})),n.d(e,"Q",(function(){return Ne})),n.d(e,"R",(function(){return a})),n.d(e,"S",(function(){return d})),n.d(e,"T",(function(){return Yt})),n.d(e,"U",(function(){return Ot})),n.d(e,"V",(function(){return M})),n.d(e,"W",(function(){return ct})),n.d(e,"X",(function(){return $t})),n.d(e,"Y",(function(){return nn})),n.d(e,"Z",(function(){return et})),n.d(e,"ab",(function(){return c})),n.d(e,"bb",(function(){return Jt})),n.d(e,"cb",(function(){return f})),n.d(e,"db",(function(){return ge})),n.d(e,"eb",(function(){return N})),n.d(e,"fb",(function(){return dt})),n.d(e,"gb",(function(){return st})),n.d(e,"hb",(function(){return ut})),n.d(e,"ib",(function(){return it}));var r={className:!0,colSpan:!0,rowSpan:!0},i={"<tr":"tbody","<td":"tr"};function o(t,e,n){var i=document.createElement(t);if(e)for(var o in e)"style"===o?k(i,e[o]):r[o]?i[o]=e[o]:i.setAttribute(o,e[o]);return"string"===typeof n?i.innerHTML=n:null!=n&&u(i,n),i}function a(t){t=t.trim();var e=document.createElement(l(t));return e.innerHTML=t,e.firstChild}function s(t){return Array.prototype.slice.call(function(t){t=t.trim();var e=document.createElement(l(t));return e.innerHTML=t,e.childNodes}(t))}function l(t){return i[t.substr(0,3)]||"div"}function u(t,e){for(var n=h(e),r=0;r<n.length;r++)t.appendChild(n[r])}function c(t,e){for(var n=h(e),r=t.firstChild||null,i=0;i<n.length;i++)t.insertBefore(n[i],r)}function d(t,e){for(var n=h(e),r=t.nextSibling||null,i=0;i<n.length;i++)t.parentNode.insertBefore(n[i],r)}function h(t){return"string"===typeof t?s(t):t instanceof Node?[t]:Array.prototype.slice.call(t)}function f(t){t.parentNode&&t.parentNode.removeChild(t)}var p=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,m=Element.prototype.closest||function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(b(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};function g(t,e){return m.call(t,e)}function b(t,e){return p.call(t,e)}function v(t,e){for(var n=t instanceof HTMLElement?[t]:t,r=[],i=0;i<n.length;i++)for(var o=n[i].querySelectorAll(e),a=0;a<o.length;a++)r.push(o[a]);return r}function y(t,e){for(var n=t instanceof HTMLElement?[t]:t,r=[],i=0;i<n.length;i++)for(var o=n[i].children,a=0;a<o.length;a++){var s=o[a];e&&!b(s,e)||r.push(s)}return r}var w=/(top|left|right|bottom|width|height)$/i;function k(t,e){for(var n in e)_(t,n,e[n])}function _(t,e,n){null==n?t.style[e]="":"number"===typeof n&&w.test(e)?t.style[e]=n+"px":t.style[e]=n}var O=null;function x(){return null===O&&(O=function(){var t=o("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div></div>");document.body.appendChild(t);var e=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return f(t),e}()),O}function E(t){return t=Math.max(0,t),t=Math.round(t)}function j(t,e){void 0===e&&(e=!1);var n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=E(t.offsetWidth-t.clientWidth-r-i),l={borderLeft:r,borderRight:i,borderTop:o,borderBottom:a,scrollbarBottom:E(t.offsetHeight-t.clientHeight-o-a),scrollbarLeft:0,scrollbarRight:0};return x()&&"rtl"===n.direction?l.scrollbarLeft=s:l.scrollbarRight=s,e&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function S(t){var e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function P(t){return t.getBoundingClientRect().height+C(t)}function C(t){var e=window.getComputedStyle(t);return parseInt(e.marginTop,10)+parseInt(e.marginBottom,10)}function T(t){return function(t){for(var e=[];t instanceof HTMLElement;){var n=window.getComputedStyle(t);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}(t).map((function(t){return function(t,e){void 0===e&&(e=!1);var n=S(t),r=j(t,e),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return e&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}(t)})).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce((function(t,e){return function(t,e){var n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom&&n}(t,e)||e}))}function M(t,e,n,r){function i(t){var e=g(t.target,n);e&&r.call(e,t,e)}return t.addEventListener(e,i),function(){t.removeEventListener(e,i)}}var A=["sun","mon","tue","wed","thu","fri","sat"];function D(t,e){var n=q(t);return n[2]+=7*e,Y(n)}function R(t,e){var n=q(t);return n[2]+=e,Y(n)}function L(t,e){var n=q(t);return n[6]+=e,Y(n)}function I(t,e){return W(t,e)/7}function W(t,e){return(e.valueOf()-t.valueOf())/864e5}function z(t,e){return G(t)===G(e)?Math.round(W(t,e)):null}function N(t){return Y([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function F(t,e,n,r){var i=Y([e,0,1+H(e,n,r)]),o=N(t),a=Math.round(W(i,o));return Math.floor(a/7)+1}function H(t,e,n){var r=7+e-n;return-((7+Y([t,0,r]).getUTCDay()-e)%7)+r-1}function B(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function V(t){return new Date(t[0],t[1]||0,null==t[2]?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function q(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Y(t){return 1===t.length&&(t=t.concat([0])),new Date(Date.UTC.apply(Date,t))}function U(t){return!isNaN(t.valueOf())}function G(t){return 1e3*t.getUTCHours()*60*60+1e3*t.getUTCMinutes()*60+1e3*t.getUTCSeconds()+t.getUTCMilliseconds()}var X=["years","months","days","milliseconds"],J=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function K(t,e){var n;return"string"===typeof t?function(t){var e=J.exec(t);if(e){var n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*(60*(e[3]?parseInt(e[3],10):0)*60*1e3+60*(e[4]?parseInt(e[4],10):0)*1e3+1e3*(e[5]?parseInt(e[5],10):0)+(e[6]?parseInt(e[6],10):0))}}return null}(t):"object"===typeof t&&t?$(t):"number"===typeof t?$(((n={})[e||"milliseconds"]=t,n)):null}function $(t){return{years:t.years||t.year||0,months:t.months||t.month||0,days:(t.days||t.day||0)+7*Q(t),milliseconds:60*(t.hours||t.hour||0)*60*1e3+60*(t.minutes||t.minute||0)*1e3+1e3*(t.seconds||t.second||0)+(t.milliseconds||t.millisecond||t.ms||0)}}function Q(t){return t.weeks||t.week||0}function Z(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function tt(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function et(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function nt(t){return rt(t)/864e5}function rt(t){return 31536e6*t.years+2592e6*t.months+864e5*t.days+t.milliseconds}function it(t,e){for(var n=null,r=0;r<X.length;r++){var i=X[r];if(e[i]){var o=t[i]/e[i];if(!gt(o)||null!==n&&n!==o)return null;n=o}else if(t[i])return null}return n}function ot(t,e){var n=t.milliseconds;if(n){if(n%1e3!==0)return{unit:"millisecond",value:n};if(n%6e4!==0)return{unit:"second",value:n/1e3};if(n%36e5!==0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return t.days?e||t.days%7!==0?{unit:"day",value:t.days}:{unit:"week",value:t.days/7}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function at(t,e){e.left&&k(t,{borderLeftWidth:1,marginLeft:e.left-1}),e.right&&k(t,{borderRightWidth:1,marginRight:e.right-1})}function st(t){k(t,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})}function lt(t,e,n){var r=Math.floor(e/t.length),i=Math.floor(e-r*(t.length-1)),o=[],a=[],s=[],l=0;ut(t),t.forEach((function(e,n){var u=n===t.length-1?i:r,c=e.getBoundingClientRect().height,d=c+C(e);d<u?(o.push(e),a.push(d),s.push(c)):l+=d})),n&&(e-=l,r=Math.floor(e/o.length),i=Math.floor(e-r*(o.length-1))),o.forEach((function(t,e){var n=e===o.length-1?i:r,l=a[e],u=n-(l-s[e]);l<n&&(t.style.height=u+"px")}))}function ut(t){t.forEach((function(t){t.style.height=""}))}function ct(t){var e=0;return t.forEach((function(t){var n=t.firstChild;if(n instanceof HTMLElement){var r=n.getBoundingClientRect().width;r>e&&(e=r)}})),e++,t.forEach((function(t){t.style.width=e+"px"})),e}function dt(t,e){var n={position:"relative",left:-1};k(t,n),k(e,n);var r=t.getBoundingClientRect().height-e.getBoundingClientRect().height,i={position:"",left:""};return k(t,i),k(e,i),r}function ht(t,e,n){var r,i;for(r=0;r<n.length;r++)if(i=ft(t,e,n[r]))return i;return 0}function ft(t,e,n){return n.func?n.func(t,e):function(t,e){if(!t&&!e)return 0;if(null==e)return-1;if(null==t)return 1;if("string"===typeof t||"string"===typeof e)return String(t).localeCompare(String(e));return t-e}(t[n.field],e[n.field])*(n.order||1)}function pt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function mt(t,e){var n=String(t);return"000".substr(0,e-n.length)+n}function gt(t){return t%1===0}function bt(t,e,n){if("function"===typeof t&&(t=[t]),t){var r=void 0,i=void 0;for(r=0;r<t.length;r++)i=t[r].apply(e,n)||i;return i}}function vt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;n++)if(void 0!==t[n])return t[n]}function yt(t,e){var n,r,i,o,a,s=function(){var l=(new Date).valueOf()-o;l<e?n=setTimeout(s,e-l):(n=null,a=t.apply(i,r),i=r=null)};return function(){return i=this,r=arguments,o=(new Date).valueOf(),n||(n=setTimeout(s,e)),a}}function wt(t,e,n,r){void 0===n&&(n={});var i={};for(var o in e){var a=e[o];void 0!==t[o]?i[o]=a===Function?"function"===typeof t[o]?t[o]:null:a?a(t[o]):t[o]:void 0!==n[o]?i[o]=n[o]:a===String?i[o]="":a&&a!==Number&&a!==Boolean&&a!==Function?i[o]=a(null):i[o]=null}if(r)for(var o in t)void 0===e[o]&&(r[o]=t[o]);return i}function kt(t){var e=Math.floor(W(t.start,t.end))||1,n=N(t.start);return{start:n,end:R(n,e)}}function _t(t,e){void 0===e&&(e=K(0));var n=null,r=null;if(t.end){r=N(t.end);var i=t.end.valueOf()-r.valueOf();i&&i>=rt(e)&&(r=R(r,1))}return t.start&&(n=N(t.start),r&&r<=n&&(r=R(n,1))),{start:n,end:r}}function Ot(t){var e=_t(t);return W(e.start,e.end)>1}function xt(t,e,n,r){return"year"===r?K(n.diffWholeYears(t,e),"year"):"month"===r?K(n.diffWholeMonths(t,e),"month"):(o=e,a=N(i=t),s=N(o),{years:0,months:0,days:Math.round(W(a,s)),milliseconds:o.valueOf()-s.valueOf()-(i.valueOf()-a.valueOf())});var i,o,a,s}var Et=function(t,e){return Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},Et(t,e)};function jt(t,e){function n(){this.constructor=t}Et(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var St=function(){return St=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},St.apply(this,arguments)};function Pt(t,e,n,r,i){var o=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(o=o.map(N)),o}var Ct=Object.prototype.hasOwnProperty;function Tt(t,e){var n,r,i,o,a,s,l={};if(e)for(n=0;n<e.length;n++){for(r=e[n],i=[],o=t.length-1;o>=0;o--)if("object"===typeof(a=t[o][r])&&a)i.unshift(a);else if(void 0!==a){l[r]=a;break}i.length&&(l[r]=Tt(i))}for(n=t.length-1;n>=0;n--)for(r in s=t[n])r in l||(l[r]=s[r]);return l}function Mt(t,e){var n={};for(var r in t)e(t[r],r)&&(n[r]=t[r]);return n}function At(t,e){var n={};for(var r in t)n[r]=e(t[r],r);return n}function Dt(t){for(var e={},n=0,r=t;n<r.length;n++){e[r[n]]=!0}return e}function Rt(t){var e=[];for(var n in t)e.push(t[n]);return e}function Lt(t,e){for(var n in t)if(Ct.call(t,n)&&!(n in e))return!1;for(var n in e)if(Ct.call(e,n)&&t[n]!==e[n])return!1;return!0}function It(t,e,n,r){for(var i={defs:{},instances:{}},o=0,a=t;o<a.length;o++){var s=$e(a[o],e,n,r);s&&Wt(s,i)}return i}function Wt(t,e){return void 0===e&&(e={defs:{},instances:{}}),e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function zt(t,e,n){var r=n.dateEnv,i=t.defs,o=t.instances;for(var a in o=Mt(o,(function(t){return!i[t.defId].recurringDef})),i){var s=i[a];if(s.recurringDef){var l=s.recurringDef.duration;l||(l=s.allDay?n.defaultAllDayEventDuration:n.defaultTimedEventDuration);for(var u=0,c=Pt(s,l,e,n.dateEnv,n.pluginSystem.hooks.recurringTypes);u<c.length;u++){var d=c[u],h=Ze(a,{start:d,end:r.add(d,l)});o[h.instanceId]=h}}}return{defs:i,instances:o}}function Nt(t,e){var n=t.instances[e];if(n){var r=t.defs[n.defId],i=Bt(t,(function(t){return e=r,n=t,Boolean(e.groupId&&e.groupId===n.groupId);var e,n}));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return{defs:{},instances:{}}}function Ft(t,e){var n;if(e){n=[];for(var r=0,i=t;r<i.length;r++){var o=i[r],a=e(o);a?n.push(a):null==a&&n.push(o)}}else n=t;return n}function Ht(t,e){return{defs:St({},t.defs,e.defs),instances:St({},t.instances,e.instances)}}function Bt(t,e){var n=Mt(t.defs,e),r=Mt(t.instances,(function(t){return n[t.defId]}));return{defs:n,instances:r}}function Vt(t,e){var n,r,i=[],o=e.start;for(t.sort(qt),n=0;n<t.length;n++)(r=t[n]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<e.end&&i.push({start:o,end:e.end}),i}function qt(t,e){return t.start.valueOf()-e.start.valueOf()}function Yt(t,e){var n=t.start,r=t.end,i=null;return null!==e.start&&(n=null===n?e.start:new Date(Math.max(n.valueOf(),e.start.valueOf()))),null!=e.end&&(r=null===r?e.end:new Date(Math.min(r.valueOf(),e.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function Ut(t,e){return(null===t.start?null:t.start.valueOf())===(null===e.start?null:e.start.valueOf())&&(null===t.end?null:t.end.valueOf())===(null===e.end?null:e.end.valueOf())}function Gt(t,e){return(null===t.end||null===e.start||t.end>e.start)&&(null===t.start||null===e.end||t.start<e.end)}function Xt(t,e){return(null===t.start||null!==e.start&&e.start>=t.start)&&(null===t.end||null!==e.end&&e.end<=t.end)}function Jt(t,e){return(null===t.start||e>=t.start)&&(null===t.end||e<t.end)}function Kt(t,e){var n,r=t.length;if(r!==e.length)return!1;for(n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function $t(t){var e,n;return function(){return e&&Kt(e,arguments)||(e=arguments,n=t.apply(this,arguments)),n}}var Qt={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Zt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},te=/\s*([ap])\.?m\.?/i,ee=/,/g,ne=/\s+/g,re=/\u200e/g,ie=/UTC|GMT/,oe=function(){function t(t){var e={},n={},r=0;for(var i in t)i in Qt?(n[i]=t[i],r=Math.max(Qt[i],r)):(e[i]=t[i],i in Zt&&(r=Math.max(Zt[i],r)));this.standardDateProps=e,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=$t(ae)}return t.prototype.format=function(t,e){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,e)(t)},t.prototype.formatRange=function(t,e,n){var r=this.standardDateProps,i=this.extendedSettings,o=function(t,e,n){if(n.getMarkerYear(t)!==n.getMarkerYear(e))return 5;if(n.getMarkerMonth(t)!==n.getMarkerMonth(e))return 4;if(n.getMarkerDay(t)!==n.getMarkerDay(e))return 2;if(G(t)!==G(e))return 1;return 0}(t.marker,e.marker,n.calendarSystem);if(!o)return this.format(t,n);var a=o;!(a>1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(a=1);var s=this.format(t,n),l=this.format(e,n);if(s===l)return s;var u=ae(function(t,e){var n={};for(var r in t)(!(r in Zt)||Zt[r]<=e)&&(n[r]=t[r]);return n}(r,a),i,n),c=u(t),d=u(e),h=function(t,e,n,r){var i=0;for(;i<t.length;){var o=t.indexOf(e,i);if(-1===o)break;var a=t.substr(0,o);i=o+e.length;for(var s=t.substr(i),l=0;l<n.length;){var u=n.indexOf(r,l);if(-1===u)break;var c=n.substr(0,u);l=u+r.length;var d=n.substr(l);if(a===c&&s===d)return{before:a,after:s}}}return null}(s,c,l,d),f=i.separator||"";return h?h.before+c+f+d+h.after:s+f+l},t.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},t}();function ae(t,e,n){var r=Object.keys(t).length;return 1===r&&"short"===t.timeZoneName?function(t){return de(t.timeZoneOffset)}:0===r&&e.week?function(t){return function(t,e,n,r){var i=[];"narrow"===r?i.push(e):"short"===r&&i.push(e," ");i.push(n.simpleNumberFormat.format(t)),n.options.isRtl&&i.reverse();return i.join("")}(n.computeWeekNumber(t.marker),n.weekLabel,n.locale,e.week)}:function(t,e,n){t=St({},t),e=St({},e),function(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit"));"long"===t.timeZoneName&&(t.timeZoneName="short");e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}(t,e),t.timeZone="UTC";var r,i=new Intl.DateTimeFormat(n.locale.codes,t);if(e.omitZeroMinute){var o=St({},t);delete o.minute,r=new Intl.DateTimeFormat(n.locale.codes,o)}return function(o){var a=o.marker;return function(t,e,n,r,i){t=t.replace(re,""),"short"===n.timeZoneName&&(t=function(t,e){var n=!1;t=t.replace(ie,(function(){return n=!0,e})),n||(t+=" "+e);return t}(t,"UTC"===i.timeZone||null==e.timeZoneOffset?"UTC":de(e.timeZoneOffset)));r.omitCommas&&(t=t.replace(ee,"").trim());r.omitZeroMinute&&(t=t.replace(":00",""));!1===r.meridiem?t=t.replace(te,"").trim():"narrow"===r.meridiem?t=t.replace(te,(function(t,e){return e.toLocaleLowerCase()})):"short"===r.meridiem?t=t.replace(te,(function(t,e){return e.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(t=t.replace(te,(function(t){return t.toLocaleLowerCase()})));return t=t.replace(ne," "),t=t.trim(),t}((r&&!a.getUTCMinutes()?r:i).format(a),o,t,e,n)}}(t,e,n)}var se=function(){function t(t,e){this.cmdStr=t,this.separator=e}return t.prototype.format=function(t,e){return e.cmdFormatter(this.cmdStr,he(t,null,e,this.separator))},t.prototype.formatRange=function(t,e,n){return n.cmdFormatter(this.cmdStr,he(t,e,n,this.separator))},t}(),le=function(){function t(t){this.func=t}return t.prototype.format=function(t,e){return this.func(he(t,null,e))},t.prototype.formatRange=function(t,e,n){return this.func(he(t,e,n))},t}();function ue(t,e){return"object"===typeof t&&t?("string"===typeof e&&(t=St({separator:e},t)),new oe(t)):"string"===typeof t?new se(t,e):"function"===typeof t?new le(t):void 0}function ce(t){return mt(t.getUTCHours(),2)+":"+mt(t.getUTCMinutes(),2)+":"+mt(t.getUTCSeconds(),2)}function de(t,e){void 0===e&&(e=!1);var n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=Math.round(r%60);return e?n+mt(i,2)+":"+mt(o,2):"GMT"+n+i+(o?":"+mt(o,2):"")}function he(t,e,n,r){var i=fe(t,n.calendarSystem);return{date:i,start:i,end:e?fe(e,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,separator:r}}function fe(t,e){var n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}var pe=function(){function t(t,e){this.calendar=t,this.internalEventSource=e}return t.prototype.remove=function(){this.calendar.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},t.prototype.refetch=function(){this.calendar.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId]})},Object.defineProperty(t.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!0,configurable:!0}),t}(),me=function(){function t(t,e,n){this._calendar=t,this._def=e,this._instance=n||null}return t.prototype.setProp=function(t,e){var n,r;if(t in Je);else if(t in Xe)"function"===typeof Xe[t]&&(e=Xe[t](e)),this.mutate({standardProps:(n={},n[t]=e,n)});else if(t in Be){var i=void 0;"function"===typeof Be[t]&&(e=Be[t](e)),"color"===t?i={backgroundColor:e,borderColor:e}:"editable"===t?i={startEditable:e,durationEditable:e}:((r={})[t]=e,i=r),this.mutate({standardProps:{ui:i}})}},t.prototype.setExtendedProp=function(t,e){var n;this.mutate({extendedProps:(n={},n[t]=e,n)})},t.prototype.setStart=function(t,e){void 0===e&&(e={});var n=this._calendar.dateEnv,r=n.createMarker(t);if(r&&this._instance){var i=xt(this._instance.range.start,r,n,e.granularity);e.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}},t.prototype.setEnd=function(t,e){void 0===e&&(e={});var n,r=this._calendar.dateEnv;if((null==t||(n=r.createMarker(t)))&&this._instance)if(n){var i=xt(this._instance.range.end,n,r,e.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},t.prototype.setDates=function(t,e,n){void 0===n&&(n={});var r,i=this._calendar.dateEnv,o={allDay:n.allDay},a=i.createMarker(t);if(a&&(null==e||(r=i.createMarker(e)))&&this._instance){var s=this._instance.range;!0===n.allDay&&(s=kt(s));var l=xt(s.start,a,i,n.granularity);if(r){var u=xt(s.end,r,i,n.granularity);Z(l,u)?this.mutate({datesDelta:l,standardProps:o}):this.mutate({startDelta:l,endDelta:u,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:l,standardProps:o})}},t.prototype.moveStart=function(t){var e=K(t);e&&this.mutate({startDelta:e})},t.prototype.moveEnd=function(t){var e=K(t);e&&this.mutate({endDelta:e})},t.prototype.moveDates=function(t){var e=K(t);e&&this.mutate({datesDelta:e})},t.prototype.setAllDay=function(t,e){void 0===e&&(e={});var n={allDay:t},r=e.maintainDuration;null==r&&(r=this._calendar.opt("allDayMaintainDuration")),this._def.allDay!==t&&(n.hasEnd=r),this.mutate({standardProps:n})},t.prototype.formatRange=function(t){var e=this._calendar.dateEnv,n=this._instance,r=ue(t,this._calendar.opt("defaultRangeSeparator"));return this._def.hasEnd?e.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):e.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},t.prototype.mutate=function(t){var e=this._def,n=this._instance;if(n){this._calendar.dispatch({type:"MUTATE_EVENTS",instanceId:n.instanceId,mutation:t,fromApi:!0});var r=this._calendar.state.eventStore;this._def=r.defs[e.defId],this._instance=r.instances[n.instanceId]}},t.prototype.remove=function(){this._calendar.dispatch({type:"REMOVE_EVENT_DEF",defId:this._def.defId})},Object.defineProperty(t.prototype,"source",{get:function(){var t=this._def.sourceId;return t?new pe(this._calendar,this._calendar.state.eventSources[t]):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._def.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._def.title},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._def.url},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rendering",{get:function(){return this._def.rendering},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!0,configurable:!0}),t}();function ge(t,e,n,r){var i={},o={},a={},s=[],l=[],u=ke(t.defs,e);for(var c in t.defs){"inverse-background"===(w=t.defs[c]).rendering&&(w.groupId?(i[w.groupId]=[],a[w.groupId]||(a[w.groupId]=w)):o[c]=[])}for(var d in t.instances){var h=t.instances[d],f=u[(w=t.defs[h.defId]).defId],p=h.range,m=!w.allDay&&r?_t(p,r):p,g=Yt(m,n);g&&("inverse-background"===w.rendering?w.groupId?i[w.groupId].push(g):o[h.defId].push(g):("background"===w.rendering?s:l).push({def:w,ui:f,instance:h,range:g,isStart:m.start&&m.start.valueOf()===g.start.valueOf(),isEnd:m.end&&m.end.valueOf()===g.end.valueOf()}))}for(var b in i)for(var v=0,y=Vt(i[b],n);v<y.length;v++){var w,k=y[v];f=u[(w=a[b]).defId];s.push({def:w,ui:f,instance:null,range:k,isStart:!1,isEnd:!1})}for(var c in o)for(var _=0,O=Vt(o[c],n);_<O.length;_++){k=O[_];s.push({def:t.defs[c],ui:u[c],instance:null,range:k,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function be(t){return"background"===t.rendering||"inverse-background"===t.rendering}function ve(t,e,n){var r=t.calendar,i=t.view;r.hasPublicHandlers("eventRender")&&(e=e.filter((function(t){var e=r.publiclyTrigger("eventRender",[{event:new me(r,t.eventRange.def,t.eventRange.instance),isMirror:n,isStart:t.isStart,isEnd:t.isEnd,el:t.el,view:i}]);return!1!==e&&(e&&!0!==e&&(t.el=e),!0)})));for(var o=0,a=e;o<a.length;o++){var s=a[o];ye(s.el,s)}return e}function ye(t,e){t.fcSeg=e}function we(t){return t.fcSeg||null}function ke(t,e){return At(t,(function(t){return _e(t,e)}))}function _e(t,e){var n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Ue(n)}function Oe(t,e,n){var r=t.calendar,i=t.view;if(r.hasPublicHandlers("eventPositioned"))for(var o=0,a=e;o<a.length;o++){var s=a[o];r.publiclyTriggerAfterSizing("eventPositioned",[{event:new me(r,s.eventRange.def,s.eventRange.instance),isMirror:n,isStart:s.isStart,isEnd:s.isEnd,el:s.el,view:i}])}r.state.eventSourceLoadingLevel||(r.afterSizingTriggers._eventsPositioned=[null])}function xe(t,e,n){for(var r=t.calendar,i=t.view,o=0,a=e;o<a.length;o++){var s=a[o];r.trigger("eventElRemove",s.el)}if(r.hasPublicHandlers("eventDestroy"))for(var l=0,u=e;l<u.length;l++){s=u[l];r.publiclyTrigger("eventDestroy",[{event:new me(r,s.eventRange.def,s.eventRange.instance),isMirror:n,el:s.el,view:i}])}}function Ee(t,e,n){for(var r=t.calendar,i=t.view,o=r.pluginSystem.hooks.isDraggableTransformers,a=n.startEditable,s=0,l=o;s<l.length;s++){a=(0,l[s])(a,e,n,i)}return a}function je(t,e,n){return n.durationEditable&&t.options.eventResizableFromStart}function Se(t,e,n){return n.durationEditable}function Pe(t,e,n,r,i){var o=n.standardProps||{};null==o.hasEnd&&e.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var a=St({},t,o,{ui:St({},t.ui,o.ui)});n.extendedProps&&(a.extendedProps=St({},a.extendedProps,n.extendedProps));for(var s=0,l=r;s<l.length;s++){(0,l[s])(a,n,i)}return!a.hasEnd&&i.opt("forceEventDuration")&&(a.hasEnd=!0),a}function Ce(t,e,n,r,i){var o=i.dateEnv,a=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,l=St({},t);return a&&(l.range=kt(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:i.getDefaultEventEnd(e.allDay,l.range.start)}),e.allDay&&(l.range={start:N(l.range.start),end:N(l.range.end)}),l.range.end<l.range.start&&(l.range.end=i.getDefaultEventEnd(e.allDay,l.range.start)),l}function Te(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return function(t,e,n,r,i,o){if(e&&n===e.latestFetchId){var a=It(function(t,e,n){var r=n.opt("eventDataTransform"),i=e?e.eventDataTransform:null;return i&&(t=Ft(t,i)),r&&(t=Ft(t,r)),t}(i,e,o),e.sourceId,o);return r&&(a=zt(a,r,o)),Ht(Me(t,e.sourceId),a)}return t}(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"ADD_EVENTS":return function(t,e,n,r){n&&(e=zt(e,n,r));return Ht(t,e)}(t,e.eventStore,r?r.activeRange:null,i);case"MERGE_EVENTS":return Ht(t,e.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return r?zt(t,r.activeRange,i):t;case"CHANGE_TIMEZONE":return function(t,e,n){var r=t.defs,i=At(t.instances,(function(t){var i=r[t.defId];return i.allDay||i.recurringDef?t:St({},t,{range:{start:n.createMarker(e.toDate(t.range.start,t.forcedStartTzo)),end:n.createMarker(e.toDate(t.range.end,t.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:t.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:t.forcedEndTzo})}));return{defs:r,instances:i}}(t,e.oldDateEnv,i.dateEnv);case"MUTATE_EVENTS":return function(t,e,n,r,i){var o=Nt(t,e),a=r?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:i.eventUiBases;return o=function(t,e,n,r){var i=ke(t.defs,e),o={defs:{},instances:{}};for(var a in t.defs){var s=t.defs[a];o.defs[a]=Pe(s,i[a],n,r.pluginSystem.hooks.eventDefMutationAppliers,r)}for(var l in t.instances){var u=t.instances[l];s=o.defs[u.defId],o.instances[l]=Ce(u,s,i[u.defId],n,r)}return o}(o,a,n,i),Ht(t,o)}(t,e.instanceId,e.mutation,e.fromApi,i);case"REMOVE_EVENT_INSTANCES":return Ae(t,e.instances);case"REMOVE_EVENT_DEF":return Bt(t,(function(t){return t.defId!==e.defId}));case"REMOVE_EVENT_SOURCE":return Me(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Bt(t,(function(t){return!t.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};case"RESET_EVENTS":return{defs:t.defs,instances:t.instances};default:return t}}function Me(t,e){return Bt(t,(function(t){return t.sourceId!==e}))}function Ae(t,e){return{defs:t.defs,instances:Mt(t.instances,(function(t){return!e[t.instanceId]}))}}function De(t,e){var n=e.view,r=St({businessHours:n?n.props.businessHours:{defs:{},instances:{}},dateSelection:"",eventStore:e.state.eventStore,eventUiBases:e.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginSystem.hooks.isPropsValid||Re)(r,e)}function Re(t,e,n,r){return void 0===n&&(n={}),!(t.eventDrag&&!function(t,e,n,r){var i=t.eventDrag,o=i.mutatedEvents,a=o.defs,s=o.instances,l=ke(a,i.isEvent?t.eventUiBases:{"":e.selectionConfig});r&&(l=At(l,r));var u=Ae(t.eventStore,i.affectedEvents.instances),c=u.defs,d=u.instances,h=ke(c,t.eventUiBases);for(var f in s){var p=s[f],m=p.range,g=l[p.defId],b=a[p.defId];if(!Le(g.constraints,m,u,t.businessHours,e))return!1;var v=e.opt("eventOverlap");for(var y in"function"!==typeof v&&(v=null),d){var w=d[y];if(Gt(m,w.range)){if(!1===h[w.defId].overlap&&i.isEvent)return!1;if(!1===g.overlap)return!1;if(v&&!v(new me(e,c[w.defId],w),new me(e,b,p)))return!1}}for(var k=e.state.eventStore,_=0,O=g.allows;_<O.length;_++){var x=O[_],E=St({},n,{range:p.range,allDay:b.allDay}),j=k.defs[b.defId],S=k.instances[f],P=void 0;if(P=j?new me(e,j,S):new me(e,b),!x(e.buildDateSpanApi(E),P))return!1}}return!0}(t,e,n,r))&&!(t.dateSelection&&!function(t,e,n,r){var i=t.eventStore,o=i.defs,a=i.instances,s=t.dateSelection,l=s.range,u=e.selectionConfig;r&&(u=r(u));if(!Le(u.constraints,l,i,t.businessHours,e))return!1;var c=e.opt("selectOverlap");"function"!==typeof c&&(c=null);for(var d in a){var h=a[d];if(Gt(l,h.range)){if(!1===u.overlap)return!1;if(c&&!c(new me(e,o[h.defId],h)))return!1}}for(var f=0,p=u.allows;f<p.length;f++){var m=p[f],g=St({},n,s);if(!m(e.buildDateSpanApi(g),null))return!1}return!0}(t,e,n,r))}function Le(t,e,n,r,i){for(var o=0,a=t;o<a.length;o++){if(!ze(Ie(a[o],e,n,r,i),e))return!1}return!0}function Ie(t,e,n,r,i){return"businessHours"===t?We(zt(r,e,i)):"string"===typeof t?We(Bt(n,(function(e){return e.groupId===t}))):"object"===typeof t&&t?We(zt(t,e,i)):[]}function We(t){var e=t.instances,n=[];for(var r in e)n.push(e[r].range);return n}function ze(t,e){for(var n=0,r=t;n<r.length;n++){if(Xt(r[n],e))return!0}return!1}function Ne(t){return(t+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function Fe(t){var e=[];for(var n in t){var r=t[n];null!=r&&""!==r&&e.push(n+":"+r)}return e.join(";")}function He(t){return Array.isArray(t)?t:"string"===typeof t?t.split(/\s+/):[]}var Be={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:He,classNames:He,color:String,backgroundColor:String,borderColor:String,textColor:String};function Ve(t,e,n){var r=wt(t,Be,{},n),i=function(t,e){return Array.isArray(t)?It(t,"",e,!0):"object"===typeof t&&t?It([t],"",e,!0):null!=t?String(t):null}(r.constraint,e);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=i?[i]:[],overlap:r.overlap,allows:null!=r.allow?[r.allow]:[],backgroundColor:r.backgroundColor||r.color,borderColor:r.borderColor||r.color,textColor:r.textColor,classNames:r.classNames.concat(r.className)}}function qe(t,e,n,r){var i={},o={};for(var a in Be){var s=t+pt(a);i[a]=e[s],o[s]=!0}if("event"===t&&(i.editable=e.editable),r)for(var a in e)o[a]||(r[a]=e[a]);return Ve(i,n)}var Ye={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ue(t){return t.reduce(Ge,Ye)}function Ge(t,e){return{startEditable:null!=e.startEditable?e.startEditable:t.startEditable,durationEditable:null!=e.durationEditable?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:"boolean"===typeof e.overlap?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}var Xe={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},Je={start:null,date:null,end:null,allDay:null},Ke=0;function $e(t,e,n,r){var i=function(t,e){var n=null;if(t){n=e.state.eventSources[t].allDayDefault}null==n&&(n=e.opt("allDayDefault"));return n}(e,n),o={},a=function(t,e,n,r,i){for(var o=0;o<r.length;o++){var a={},s=r[o].parse(t,a,n);if(s){var l=a.allDay;return delete a.allDay,null==l&&null==(l=e)&&null==(l=s.allDayGuess)&&(l=!1),St(i,a),{allDay:l,duration:s.duration,typeData:s.typeData,typeId:o}}}return null}(t,i,n.dateEnv,n.pluginSystem.hooks.recurringTypes,o);if(a)return(s=Qe(o,e,a.allDay,Boolean(a.duration),n)).recurringDef={typeId:a.typeId,typeData:a.typeData,duration:a.duration},{def:s,instance:null};var s,l={},u=function(t,e,n,r,i){var o,a,s=function(t,e){var n=wt(t,Je,{},e);return n.start=null!==n.start?n.start:n.date,delete n.date,n}(t,r),l=s.allDay,u=null,c=!1,d=null;if(o=n.dateEnv.createMarkerMeta(s.start),o)u=o.marker;else if(!i)return null;null!=s.end&&(a=n.dateEnv.createMarkerMeta(s.end));null==l&&(l=null!=e?e:(!o||o.isTimeUnspecified)&&(!a||a.isTimeUnspecified));l&&u&&(u=N(u));a&&(d=a.marker,l&&(d=N(d)),u&&d<=u&&(d=null));d?c=!0:i||(c=n.opt("forceEventDuration")||!1,d=n.dateEnv.add(u,l?n.defaultAllDayEventDuration:n.defaultTimedEventDuration));return{allDay:l,hasEnd:c,range:{start:u,end:d},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}(t,i,n,l,r);return u?{def:s=Qe(l,e,u.allDay,u.hasEnd,n),instance:Ze(s.defId,u.range,u.forcedStartTzo,u.forcedEndTzo)}:null}function Qe(t,e,n,r,i){var o={},a=function(t,e,n){var r={},i=wt(t,Xe,{},r),o=Ve(r,e,n);return i.publicId=i.id,delete i.id,i.ui=o,i}(t,i,o);a.defId=String(Ke++),a.sourceId=e,a.allDay=n,a.hasEnd=r;for(var s=0,l=i.pluginSystem.hooks.eventDefParsers;s<l.length;s++){var u={};(0,l[s])(a,o,u),o=u}return a.extendedProps=St(o,a.extendedProps||{}),Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Ze(t,e,n,r){return{instanceId:String(Ke++),defId:t,range:e,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var tn={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],rendering:"inverse-background",classNames:"fc-nonbusiness",groupId:"_businessHours"};function en(t,e){return It(function(t){var e;e=!0===t?[{}]:Array.isArray(t)?t.filter((function(t){return t.daysOfWeek})):"object"===typeof t&&t?[t]:[];return e=e.map((function(t){return St({},tn,t)}))}(t),"",e)}function nn(t,e,n){void 0===n&&(n=[]);var r,i,o=[];function a(){if(i){for(var t=0,n=o;t<n.length;t++){n[t].unrender()}e&&e.apply(r,i),i=null}}function s(){i&&Kt(i,arguments)||(a(),r=this,i=arguments,t.apply(this,arguments))}s.dependents=o,s.unrender=a;for(var l=0,u=n;l<u.length;l++){u[l].dependents.push(s)}return s}var rn={defs:{},instances:{}},on=function(){function t(){this.getKeysForEventDefs=$t(this._getKeysForEventDefs),this.splitDateSelection=$t(this._splitDateSpan),this.splitEventStore=$t(this._splitEventStore),this.splitIndividualUi=$t(this._splitIndividualUi),this.splitEventDrag=$t(this._splitInteraction),this.splitEventResize=$t(this._splitInteraction),this.eventUiBuilders={}}return t.prototype.splitProps=function(t){var e=this,n=this.getKeyInfo(t),r=this.getKeysForEventDefs(t.eventStore),i=this.splitDateSelection(t.dateSelection),o=this.splitIndividualUi(t.eventUiBases,r),a=this.splitEventStore(t.eventStore,r),s=this.splitEventDrag(t.eventDrag),l=this.splitEventResize(t.eventResize),u={};for(var c in this.eventUiBuilders=At(n,(function(t,n){return e.eventUiBuilders[n]||$t(an)})),n){var d=n[c],h=a[c]||rn,f=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||t.businessHours,dateSelection:i[c]||null,eventStore:h,eventUiBases:f(t.eventUiBases[""],d.ui,o[c]),eventSelection:h.instances[t.eventSelection]?t.eventSelection:"",eventDrag:s[c]||null,eventResize:l[c]||null}}return u},t.prototype._splitDateSpan=function(t){var e={};if(t)for(var n=0,r=this.getKeysForDateSpan(t);n<r.length;n++){e[r[n]]=t}return e},t.prototype._getKeysForEventDefs=function(t){var e=this;return At(t.defs,(function(t){return e.getKeysForEventDef(t)}))},t.prototype._splitEventStore=function(t,e){var n=t.defs,r=t.instances,i={};for(var o in n)for(var a=0,s=e[o];a<s.length;a++){i[h=s[a]]||(i[h]={defs:{},instances:{}}),i[h].defs[o]=n[o]}for(var l in r)for(var u=r[l],c=0,d=e[u.defId];c<d.length;c++){var h;i[h=d[c]]&&(i[h].instances[l]=u)}return i},t.prototype._splitIndividualUi=function(t,e){var n={};for(var r in t)if(r)for(var i=0,o=e[r];i<o.length;i++){var a=o[i];n[a]||(n[a]={}),n[a][r]=t[r]}return n},t.prototype._splitInteraction=function(t){var e={};if(t){var n=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),r=this._getKeysForEventDefs(t.mutatedEvents),i=this._splitEventStore(t.mutatedEvents,r),o=function(r){e[r]||(e[r]={affectedEvents:n[r]||rn,mutatedEvents:i[r]||rn,isEvent:t.isEvent,origSeg:t.origSeg})};for(var a in n)o(a);for(var a in i)o(a)}return e},t}();function an(t,e,n){var r=[];t&&r.push(t),e&&r.push(e);var i={"":Ue(r)};return n&&St(i,n),i}function sn(t,e,n,r,i){var o,a,s,l;return n instanceof Date?o=n:(o=n.date,a=n.type,s=n.forceOff),l={date:e.formatIso(o,{omitTime:!0}),type:a||"day"},"string"===typeof r&&(i=r,r=null),r=r?" "+function(t){var e=[];for(var n in t){var r=t[n];null!=r&&e.push(n+'="'+Ne(r)+'"')}return e.join(" ")}(r):"",i=i||"",!s&&t.navLinks?"<a"+r+' data-goto="'+Ne(JSON.stringify(l))+'">'+i+"</a>":"<span"+r+">"+i+"</span>"}function ln(t){return t.allDayHtml||Ne(t.allDayText)}function un(t,e,n,r){var i,o,a=n.calendar,s=n.options,l=n.theme,u=n.dateEnv,c=[];return Jt(e.activeRange,t)?(c.push("fc-"+A[t.getUTCDay()]),s.monthMode&&u.getMonth(t)!==u.getMonth(e.currentRange.start)&&c.push("fc-other-month"),o=R(i=N(a.getNow()),1),t<i?c.push("fc-past"):t>=o?c.push("fc-future"):(c.push("fc-today"),!0!==r&&c.push(l.getClass("today")))):c.push("fc-disabled-day"),c}var cn=function(){function t(){}return t.mixInto=function(t){this.mixIntoObj(t.prototype)},t.mixIntoObj=function(t){var e=this;Object.getOwnPropertyNames(this.prototype).forEach((function(n){t[n]||(t[n]=e.prototype[n])}))},t.mixOver=function(t){var e=this;Object.getOwnPropertyNames(this.prototype).forEach((function(n){t.prototype[n]=e.prototype[n]}))},t}(),dn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.on=function(t,e){return hn(this._handlers||(this._handlers={}),t,e),this},e.prototype.one=function(t,e){return hn(this._oneHandlers||(this._oneHandlers={}),t,e),this},e.prototype.off=function(t,e){return this._handlers&&fn(this._handlers,t,e),this._oneHandlers&&fn(this._oneHandlers,t,e),this},e.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.triggerWith(t,this,e),this},e.prototype.triggerWith=function(t,e,n){return this._handlers&&bt(this._handlers[t],e,n),this._oneHandlers&&(bt(this._oneHandlers[t],e,n),delete this._oneHandlers[t]),this},e.prototype.hasHandlers=function(t){return this._handlers&&this._handlers[t]&&this._handlers[t].length||this._oneHandlers&&this._oneHandlers[t]&&this._oneHandlers[t].length},e}(cn);function hn(t,e,n){(t[e]||(t[e]=[])).push(n)}function fn(t,e,n){n?t[e]&&(t[e]=t[e].filter((function(t){return t!==n}))):delete t[e]}var pn=function(){function t(t,e,n,r){this.originEl=t,this.els=e,this.isHorizontal=n,this.isVertical=r}return t.prototype.build=function(){var t=this.originEl,e=this.originClientRect=t.getBoundingClientRect();this.isHorizontal&&this.buildElHorizontals(e.left),this.isVertical&&this.buildElVerticals(e.top)},t.prototype.buildElHorizontals=function(t){for(var e=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();e.push(o.left-t),n.push(o.right-t)}this.lefts=e,this.rights=n},t.prototype.buildElVerticals=function(t){for(var e=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();e.push(o.top-t),n.push(o.bottom-t)}this.tops=e,this.bottoms=n},t.prototype.leftToIndex=function(t){var e,n=this.lefts,r=this.rights,i=n.length;for(e=0;e<i;e++)if(t>=n[e]&&t<r[e])return e},t.prototype.topToIndex=function(t){var e,n=this.tops,r=this.bottoms,i=n.length;for(e=0;e<i;e++)if(t>=n[e]&&t<r[e])return e},t.prototype.getWidth=function(t){return this.rights[t]-this.lefts[t]},t.prototype.getHeight=function(t){return this.bottoms[t]-this.tops[t]},t}(),mn=function(){function t(){}return t.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},t.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},t.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},t.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},t.prototype.canScrollUp=function(){return this.getScrollTop()>0},t.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},t.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},t.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},t}(),gn=function(t){function e(e){var n=t.call(this)||this;return n.el=e,n}return jt(e,t),e.prototype.getScrollTop=function(){return this.el.scrollTop},e.prototype.getScrollLeft=function(){return this.el.scrollLeft},e.prototype.setScrollTop=function(t){this.el.scrollTop=t},e.prototype.setScrollLeft=function(t){this.el.scrollLeft=t},e.prototype.getScrollWidth=function(){return this.el.scrollWidth},e.prototype.getScrollHeight=function(){return this.el.scrollHeight},e.prototype.getClientHeight=function(){return this.el.clientHeight},e.prototype.getClientWidth=function(){return this.el.clientWidth},e}(mn),bn=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}jt(e,t),e.prototype.getScrollTop=function(){return window.pageYOffset},e.prototype.getScrollLeft=function(){return window.pageXOffset},e.prototype.setScrollTop=function(t){window.scroll(window.pageXOffset,t)},e.prototype.setScrollLeft=function(t){window.scroll(t,window.pageYOffset)},e.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},e.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},e.prototype.getClientHeight=function(){return document.documentElement.clientHeight},e.prototype.getClientWidth=function(){return document.documentElement.clientWidth}}(mn),function(t){function e(e,n){var r=t.call(this,o("div",{className:"fc-scroller"}))||this;return r.overflowX=e,r.overflowY=n,r.applyOverflow(),r}return jt(e,t),e.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},e.prototype.destroy=function(){f(this.el)},e.prototype.applyOverflow=function(){k(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},e.prototype.lockOverflow=function(t){var e=this.overflowX,n=this.overflowY;t=t||this.getScrollbarWidths(),"auto"===e&&(e=t.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===n&&(n=t.left||t.right||this.canScrollVertically()?"scroll":"hidden"),k(this.el,{overflowX:e,overflowY:n})},e.prototype.setHeight=function(t){_(this.el,"height",t)},e.prototype.getScrollbarWidths=function(){var t=j(this.el);return{left:t.scrollbarLeft,right:t.scrollbarRight,bottom:t.scrollbarBottom}},e}(gn)),vn=function(){function t(t){this.calendarOptions=t,this.processIconOverride()}return t.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.calendarOptions[this.iconOverrideOption])},t.prototype.setIconOverride=function(t){var e,n;if("object"===typeof t&&t){for(n in e=St({},this.iconClasses),t)e[n]=this.applyIconOverridePrefix(t[n]);this.iconClasses=e}else!1===t&&(this.iconClasses={})},t.prototype.applyIconOverridePrefix=function(t){var e=this.iconOverridePrefix;return e&&0!==t.indexOf(e)&&(t=e+t),t},t.prototype.getClass=function(t){return this.classes[t]||""},t.prototype.getIconClass=function(t){var e=this.iconClasses[t];return e?this.baseIconClass+" "+e:""},t.prototype.getCustomButtonIconClass=function(t){var e;return this.iconOverrideCustomButtonOption&&(e=t[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(e):""},t}();vn.prototype.classes={},vn.prototype.iconClasses={},vn.prototype.baseIconClass="",vn.prototype.iconOverridePrefix="";var yn=0,wn=function(){function t(t,e,n,r,i){this.calendar=t,this.theme=e,this.dateEnv=n,this.options=r,this.view=i,this.isRtl="rtl"===r.dir,this.eventOrderSpecs=function(t){var e,n,r=[],i=[];for("string"===typeof t?i=t.split(/\s*,\s*/):"function"===typeof t?i=[t]:Array.isArray(t)&&(i=t),e=0;e<i.length;e++)"string"===typeof(n=i[e])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"===typeof n&&r.push({func:n});return r}(r.eventOrder),this.nextDayThreshold=K(r.nextDayThreshold)}return t.prototype.extend=function(e,n){return new t(this.calendar,this.theme,this.dateEnv,e||this.options,n||this.view)},t}(),kn=function(){function t(){this.everRendered=!1,this.uid=String(yn++)}return t.addEqualityFuncs=function(t){this.prototype.equalityFuncs=St({},this.prototype.equalityFuncs,t)},t.prototype.receiveProps=function(t,e){this.receiveContext(e);var n=function(t,e,n){var r={},i=!1;for(var o in e)o in t&&(t[o]===e[o]||n[o]&&n[o](t[o],e[o]))?r[o]=t[o]:(r[o]=e[o],i=!0);for(var o in t)if(!(o in e)){i=!0;break}return{anyChanges:i,comboProps:r}}(this.props||{},t,this.equalityFuncs),r=n.anyChanges,i=n.comboProps;this.props=i,r&&(this.everRendered&&this.beforeUpdate(),this.render(i,e),this.everRendered&&this.afterUpdate()),this.everRendered=!0},t.prototype.receiveContext=function(t){var e=this.context;this.context=t,e||this.firstContext(t)},t.prototype.render=function(t,e){},t.prototype.firstContext=function(t){},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.destroy=function(){},t}();kn.prototype.equalityFuncs={};var _n=function(t){function e(e){var n=t.call(this)||this;return n.el=e,n}return jt(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),f(this.el)},e.prototype.buildPositionCaches=function(){},e.prototype.queryHit=function(t,e,n,r){return null},e.prototype.isInteractionValid=function(t){var e=this.context.calendar,n=this.props.dateProfile,r=t.mutatedEvents.instances;if(n)for(var i in r)if(!Xt(n.validRange,r[i].range))return!1;return function(t,e){return De({eventDrag:t},e)}(t,e)},e.prototype.isDateSelectionValid=function(t){var e=this.context.calendar,n=this.props.dateProfile;return!(n&&!Xt(n.validRange,t.range))&&function(t,e){return De({dateSelection:t},e)}(t,e)},e.prototype.isValidSegDownEl=function(t){return!this.props.eventDrag&&!this.props.eventResize&&!g(t,".fc-mirror")&&(this.isPopover()||!this.isInPopover(t))},e.prototype.isValidDateDownEl=function(t){var e=g(t,this.fgSegSelector);return(!e||e.classList.contains("fc-mirror"))&&!g(t,".fc-more")&&!g(t,"a[data-goto]")&&!this.isInPopover(t)},e.prototype.isPopover=function(){return this.el.classList.contains("fc-popover")},e.prototype.isInPopover=function(t){return Boolean(g(t,".fc-popover"))},e}(kn);_n.prototype.fgSegSelector=".fc-event-container > *",_n.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";var On=0;function xn(t){return{id:String(On++),deps:t.deps||[],reducers:t.reducers||[],eventDefParsers:t.eventDefParsers||[],isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],eventResizeJoinTransforms:t.eventResizeJoinTransforms||[],viewContainerModifiers:t.viewContainerModifiers||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,defaultView:t.defaultView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{}}}var En=function(){function t(){this.hooks={reducers:[],eventDefParsers:[],isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:"",elementDraggingImpl:null,optionChangeHandlers:{}},this.addedHash={}}return t.prototype.add=function(t){if(!this.addedHash[t.id]){this.addedHash[t.id]=!0;for(var e=0,n=t.deps;e<n.length;e++){var r=n[e];this.add(r)}this.hooks=(i=this.hooks,o=t,{reducers:i.reducers.concat(o.reducers),eventDefParsers:i.eventDefParsers.concat(o.eventDefParsers),isDraggableTransformers:i.isDraggableTransformers.concat(o.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(o.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(o.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(o.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(o.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(o.dateSpanTransforms),views:St({},i.views,o.views),viewPropsTransformers:i.viewPropsTransformers.concat(o.viewPropsTransformers),isPropsValid:o.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(o.externalDefTransforms),eventResizeJoinTransforms:i.eventResizeJoinTransforms.concat(o.eventResizeJoinTransforms),viewContainerModifiers:i.viewContainerModifiers.concat(o.viewContainerModifiers),eventDropTransformers:i.eventDropTransformers.concat(o.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(o.calendarInteractions),componentInteractions:i.componentInteractions.concat(o.componentInteractions),themeClasses:St({},i.themeClasses,o.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(o.eventSourceDefs),cmdFormatter:o.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(o.recurringTypes),namedTimeZonedImpl:o.namedTimeZonedImpl||i.namedTimeZonedImpl,defaultView:i.defaultView||o.defaultView,elementDraggingImpl:i.elementDraggingImpl||o.elementDraggingImpl,optionChangeHandlers:St({},i.optionChangeHandlers,o.optionChangeHandlers)})}var i,o},t}();var jn=xn({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(t){return Array.isArray(t)?t:Array.isArray(t.events)?t.events:null},fetch:function(t,e){e({rawEvents:t.eventSource.meta})}}]}),Sn={parseMeta:function(t){return"function"===typeof t?t:"function"===typeof t.events?t.events:null},fetch:function(t,e,n){var r=t.calendar.dateEnv;!function(t,e,n){var r=!1,i=function(){r||(r=!0,e.apply(this,arguments))},o=function(){r||(r=!0,n&&n.apply(this,arguments))},a=t(i,o);a&&"function"===typeof a.then&&a.then(i,o)}(t.eventSource.meta.bind(null,{start:r.toDate(t.range.start),end:r.toDate(t.range.end),startStr:r.formatIso(t.range.start),endStr:r.formatIso(t.range.end),timeZone:r.timeZone}),(function(t){e({rawEvents:t})}),n)}},Pn=xn({eventSourceDefs:[Sn]});function Cn(t,e,n,r,i){var o=null;"GET"===(t=t.toUpperCase())?e=function(t,e){return t+(-1===t.indexOf("?")?"?":"&")+Tn(e)}(e,n):o=Tn(n);var a=new XMLHttpRequest;a.open(t,e,!0),"GET"!==t&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400)try{var t=JSON.parse(a.responseText);r(t,a)}catch(e){i("Failure parsing JSON",a)}else i("Request failed",a)},a.onerror=function(){i("Request failed",a)},a.send(o)}function Tn(t){var e=[];for(var n in t)e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}var Mn=xn({eventSourceDefs:[{parseMeta:function(t){if("string"===typeof t)t={url:t};else if(!t||"object"!==typeof t||!t.url)return null;return{url:t.url,method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}},fetch:function(t,e,n){var r=t.eventSource.meta,i=function(t,e,n){var r,i,o,a,s=n.dateEnv,l={};r=t.startParam,null==r&&(r=n.opt("startParam"));i=t.endParam,null==i&&(i=n.opt("endParam"));o=t.timeZoneParam,null==o&&(o=n.opt("timeZoneParam"));a="function"===typeof t.extraParams?t.extraParams():t.extraParams||{};St(l,a),l[r]=s.formatIso(e.start),l[i]=s.formatIso(e.end),"local"!==s.timeZone&&(l[o]=s.timeZone);return l}(r,t.range,t.calendar);Cn(r.method,r.url,i,(function(t,n){e({rawEvents:t,xhr:n})}),(function(t,e){n({message:t,xhr:e})}))}}]});var An=xn({recurringTypes:[{parse:function(t,e,n){var r,i,o=n.createMarker.bind(n),a=wt(t,{daysOfWeek:null,startTime:K,endTime:K,startRecur:o,endRecur:o},{},e),s=!1;for(var l in a)if(null!=a[l]){s=!0;break}if(s){var u=null;return"duration"in e&&(u=K(e.duration),delete e.duration),!u&&a.startTime&&a.endTime&&(r=a.endTime,i=a.startTime,u={years:r.years-i.years,months:r.months-i.months,days:r.days-i.days,milliseconds:r.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!a.startTime&&!a.endTime),duration:u,typeData:a}}return null},expand:function(t,e,n){var r=Yt(e,{start:t.startRecur,end:t.endRecur});return r?function(t,e,n,r){var i=t?Dt(t):null,o=N(n.start),a=n.end,s=[];for(;o<a;){var l=void 0;i&&!i[o.getUTCDay()]||(l=e?r.add(o,e):o,s.push(l)),o=R(o,1)}return s}(t.daysOfWeek,t.startTime,r,n):[]}}]});var Dn=xn({optionChangeHandlers:{events:function(t,e,n){Rn([t],e,n)},eventSources:Rn,plugins:function(t,e){e.addPluginInputs(t)}}});function Rn(t,e,n){for(var r=Rt(e.state.eventSources),i=[],o=0,a=t;o<a.length;o++){for(var s=a[o],l=!1,u=0;u<r.length;u++)if(n(r[u]._raw,s)){r.splice(u,1),l=!0;break}l||i.push(s)}for(var c=0,d=r;c<d.length;c++){var h=d[c];e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:h.sourceId})}for(var f=0,p=i;f<p.length;f++){var m=p[f];e.addEventSource(m)}}var Ln={defaultRangeSeparator:" - ",titleRangeSeparator:" \u2013 ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",columnHeader:!0,defaultView:"",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",timeGridEventMinHeight:0,themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},In={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"}},Wn=["header","footer","buttonText","buttonIcons"];var zn=[jn,Pn,Mn,An,Dn];var Nn={code:"en",week:{dow:0,doy:4},dir:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekLabel:"W",allDayText:"all-day",eventLimitText:"more",noEventsMessage:"No events to display"};function Fn(t){for(var e=t.length>0?t[0].code:"en",n=window.FullCalendarLocalesAll||[],r=window.FullCalendarLocales||{},i=n.concat(Rt(r),t),o={en:Nn},a=0,s=i;a<s.length;a++){var l=s[a];o[l.code]=l}return{map:o,defaultCode:e}}function Hn(t,e){return"object"!==typeof t||Array.isArray(t)?function(t,e){var n=[].concat(t||[]),r=function(t,e){for(var n=0;n<t.length;n++)for(var r=t[n].toLocaleLowerCase().split("-"),i=r.length;i>0;i--){var o=r.slice(0,i).join("-");if(e[o])return e[o]}return null}(n,e)||Nn;return Bn(t,n,r)}(t,e):Bn(t.code,[t.code],t)}function Bn(t,e,n){var r=Tt([Nn,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}var Vn=function(){function t(t){this.overrides=St({},t),this.dynamicOverrides={},this.compute()}return t.prototype.mutate=function(t,e,n){if(Object.keys(t).length||e.length){var r=n?this.dynamicOverrides:this.overrides;St(r,t);for(var i=0,o=e;i<o.length;i++){delete r[o[i]]}this.compute()}},t.prototype.compute=function(){var t=vt(this.dynamicOverrides.locales,this.overrides.locales,Ln.locales),e=vt(this.dynamicOverrides.locale,this.overrides.locale,Ln.locale),n=Fn(t),r=Hn(e||n.defaultCode,n.map).options,i="rtl"===vt(this.dynamicOverrides.dir,this.overrides.dir,r.dir)?In:{};this.dirDefaults=i,this.localeDefaults=r,this.computed=Tt([Ln,i,r,this.overrides,this.dynamicOverrides],Wn)},t}(),qn={};var Yn,Un=function(){function t(){}return t.prototype.getMarkerYear=function(t){return t.getUTCFullYear()},t.prototype.getMarkerMonth=function(t){return t.getUTCMonth()},t.prototype.getMarkerDay=function(t){return t.getUTCDate()},t.prototype.arrayToMarker=function(t){return Y(t)},t.prototype.markerToArray=function(t){return q(t)},t}();Yn=Un,qn["gregory"]=Yn;var Gn=/^\s*(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var Xn=function(){function t(t){var e=this.timeZone=t.timeZone,n="local"!==e&&"UTC"!==e;t.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(e)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(t){return new qn[t]}(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,"ISO"===t.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"===typeof t.firstDay&&(this.weekDow=t.firstDay),"function"===typeof t.weekNumberCalculation&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekLabel=null!=t.weekLabel?t.weekLabel:t.locale.options.weekLabel,this.cmdFormatter=t.cmdFormatter}return t.prototype.createMarker=function(t){var e=this.createMarkerMeta(t);return null===e?null:e.marker},t.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Y(B(new Date))},t.prototype.createMarkerMeta=function(t){if("string"===typeof t)return this.parse(t);var e=null;return"number"===typeof t?e=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(e=this.timestampToMarker(t))):Array.isArray(t)&&(e=Y(t)),null!==e&&U(e)?{marker:e,isTimeUnspecified:!1,forcedTzo:null}:null},t.prototype.parse=function(t){var e=function(t){var e=Gn.exec(t);if(e){var n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?1e3*Number("0."+e[12]):0));if(U(n)){var r=null;return e[13]&&(r=("-"===e[15]?-1:1)*(60*Number(e[16]||0)+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}(t);if(null===e)return null;var n=e.marker,r=null;return null!==e.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*e.timeZoneOffset*1e3):r=e.timeZoneOffset),{marker:n,isTimeUnspecified:e.isTimeUnspecified,forcedTzo:r}},t.prototype.getYear=function(t){return this.calendarSystem.getMarkerYear(t)},t.prototype.getMonth=function(t){return this.calendarSystem.getMarkerMonth(t)},t.prototype.add=function(t,e){var n=this.calendarSystem.markerToArray(t);return n[0]+=e.years,n[1]+=e.months,n[2]+=e.days,n[6]+=e.milliseconds,this.calendarSystem.arrayToMarker(n)},t.prototype.subtract=function(t,e){var n=this.calendarSystem.markerToArray(t);return n[0]-=e.years,n[1]-=e.months,n[2]-=e.days,n[6]-=e.milliseconds,this.calendarSystem.arrayToMarker(n)},t.prototype.addYears=function(t,e){var n=this.calendarSystem.markerToArray(t);return n[0]+=e,this.calendarSystem.arrayToMarker(n)},t.prototype.addMonths=function(t,e){var n=this.calendarSystem.markerToArray(t);return n[1]+=e,this.calendarSystem.arrayToMarker(n)},t.prototype.diffWholeYears=function(t,e){var n=this.calendarSystem;return G(t)===G(e)&&n.getMarkerDay(t)===n.getMarkerDay(e)&&n.getMarkerMonth(t)===n.getMarkerMonth(e)?n.getMarkerYear(e)-n.getMarkerYear(t):null},t.prototype.diffWholeMonths=function(t,e){var n=this.calendarSystem;return G(t)===G(e)&&n.getMarkerDay(t)===n.getMarkerDay(e)?n.getMarkerMonth(e)-n.getMarkerMonth(t)+12*(n.getMarkerYear(e)-n.getMarkerYear(t)):null},t.prototype.greatestWholeUnit=function(t,e){var n=this.diffWholeYears(t,e);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(t,e))?{unit:"month",value:n}:(n=function(t,e){var n=z(t,e);return null!==n&&n%7===0?n/7:null}(t,e),null!==n?{unit:"week",value:n}:null!==(n=z(t,e))?{unit:"day",value:n}:(n=function(t,e){return(e.valueOf()-t.valueOf())/36e5}(t,e),gt(n)?{unit:"hour",value:n}:(n=function(t,e){return(e.valueOf()-t.valueOf())/6e4}(t,e),gt(n)?{unit:"minute",value:n}:(n=function(t,e){return(e.valueOf()-t.valueOf())/1e3}(t,e),gt(n)?{unit:"second",value:n}:{unit:"millisecond",value:e.valueOf()-t.valueOf()}))))},t.prototype.countDurationsBetween=function(t,e,n){var r;return n.years&&null!==(r=this.diffWholeYears(t,e))?r/(nt(n)/365):n.months&&null!==(r=this.diffWholeMonths(t,e))?r/function(t){return nt(t)/30}(n):n.days&&null!==(r=z(t,e))?r/nt(n):(e.valueOf()-t.valueOf())/rt(n)},t.prototype.startOf=function(t,e){return"year"===e?this.startOfYear(t):"month"===e?this.startOfMonth(t):"week"===e?this.startOfWeek(t):"day"===e?N(t):"hour"===e?function(t){return Y([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}(t):"minute"===e?function(t){return Y([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}(t):"second"===e?function(t){return Y([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}(t):void 0},t.prototype.startOfYear=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])},t.prototype.startOfMonth=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])},t.prototype.startOfWeek=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])},t.prototype.computeWeekNumber=function(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):function(t,e,n){var r=t.getUTCFullYear(),i=F(t,r,e,n);if(i<1)return F(t,r-1,e,n);var o=F(t,r+1,e,n);return o>=1?Math.min(i,o):i}(t,this.weekDow,this.weekDoy)},t.prototype.format=function(t,e,n){return void 0===n&&(n={}),e.format({marker:t,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(t)},this)},t.prototype.formatRange=function(t,e,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(e=L(e,-1)),n.formatRange({marker:t,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(t)},{marker:e,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(e)},this)},t.prototype.formatIso=function(t,e){void 0===e&&(e={});var n=null;return e.omitTimeZoneOffset||(n=null!=e.forcedTzo?e.forcedTzo:this.offsetForMarker(t)),function(t,e,n){void 0===n&&(n=!1);var r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==e?r=r.replace("Z",""):0!==e&&(r=r.replace("Z",de(e,!0)))),r}(t,n,e.omitTime)},t.prototype.timestampToMarker=function(t){return"local"===this.timeZone?Y(B(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Y(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)},t.prototype.offsetForMarker=function(t){return"local"===this.timeZone?-V(q(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(q(t)):null},t.prototype.toDate=function(t,e){return"local"===this.timeZone?V(q(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(q(t))*60):new Date(t.valueOf()-(e||0))},t}(),Jn={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},Kn=0;function $n(t,e){return!e.pluginSystem.hooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Qn(t,e){for(var n=e.pluginSystem.hooks.eventSourceDefs,r=n.length-1;r>=0;r--){var i=n[r].parseMeta(t);if(i){var o=Zn("object"===typeof t?t:{},i,r,e);return o._raw=t,o}}return null}function Zn(t,e,n,r){var i={},o=wt(t,Jn,{},i),a={},s=Ve(i,r,a);return o.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(t.id||""),o.sourceId=String(Kn++),o.sourceDefId=n,o.meta=e,o.ui=s,o.extendedProps=a,o}function tr(t,e,n,r){switch(e.type){case"ADD_EVENT_SOURCES":return function(t,e,n,r){for(var i={},o=0,a=e;o<a.length;o++){var s=a[o];i[s.sourceId]=s}n&&(i=nr(i,n,r));return St({},t,i)}(t,e.sources,n?n.activeRange:null,r);case"REMOVE_EVENT_SOURCE":return i=t,o=e.sourceId,Mt(i,(function(t){return t.sourceId!==o}));case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return n?nr(t,n.activeRange,r):t;case"FETCH_EVENT_SOURCES":case"CHANGE_TIMEZONE":return rr(t,e.sourceIds?Dt(e.sourceIds):function(t,e){return Mt(t,(function(t){return $n(t,e)}))}(t,r),n?n.activeRange:null,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(t,e,n,r){var i,o=t[e];if(o&&n===o.latestFetchId)return St({},t,((i={})[e]=St({},o,{isFetching:!1,fetchRange:r}),i));return t}(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}var i,o}var er=0;function nr(t,e,n){return rr(t,Mt(t,(function(t){return function(t,e,n){return $n(t,n)?!n.opt("lazyFetching")||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}(t,e,n)})),e,n)}function rr(t,e,n,r){var i={};for(var o in t){var a=t[o];e[o]?i[o]=ir(a,n,r):i[o]=a}return i}function ir(t,e,n){var r=n.pluginSystem.hooks.eventSourceDefs[t.sourceDefId],i=String(er++);return r.fetch({eventSource:t,calendar:n,range:e},(function(r){var o,a,s=r.rawEvents,l=n.opt("eventSourceSuccess");t.success&&(a=t.success(s,r.xhr)),l&&(o=l(s,r.xhr)),s=a||o||s,n.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:i,fetchRange:e,rawEvents:s})}),(function(r){var o=n.opt("eventSourceFailure");console.warn(r.message,r),t.failure&&t.failure(r),o&&o(r),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:i,fetchRange:e,error:r})})),St({},t,{isFetching:!0,latestFetchId:i})}var or=function(){function t(t,e){this.viewSpec=t,this.options=t.options,this.dateEnv=e.dateEnv,this.calendar=e,this.initHiddenDays()}return t.prototype.buildPrev=function(t,e){var n=this.dateEnv,r=n.subtract(n.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(r,-1)},t.prototype.buildNext=function(t,e){var n=this.dateEnv,r=n.add(n.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(r,1)},t.prototype.build=function(t,e,n){var r;void 0===n&&(n=!1);var i,o,a,s,l,u,c,d,h;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(d=t,t=null!=(h=r).start&&d<h.start?h.start:null!=h.end&&d>=h.end?new Date(h.end.valueOf()-1):d),a=this.buildCurrentRangeInfo(t,e),s=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),u=l=this.trimHiddenDays(l),this.options.showNonCurrentDates||(u=Yt(u,a.range)),i=K(this.options.minTime),o=K(this.options.maxTime),u=Yt(u=this.adjustActiveRange(u,i,o),r),c=Gt(a.range,r),{validRange:r,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:u,renderRange:l,minTime:i,maxTime:o,isValid:c,dateIncrement:this.buildDateIncrement(a.duration)}},t.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},t.prototype.buildCurrentRangeInfo=function(t,e){var n,r=this.viewSpec,i=this.dateEnv,o=null,a=null,s=null;return r.duration?(o=r.duration,a=r.durationUnit,s=this.buildRangeFromDuration(t,e,o,a)):(n=this.options.dayCount)?(a="day",s=this.buildRangeFromDayCount(t,e,n)):(s=this.buildCustomVisibleRange(t))?a=i.greatestWholeUnit(s.start,s.end).unit:(a=ot(o=this.getFallbackDuration()).unit,s=this.buildRangeFromDuration(t,e,o,a)),{duration:o,unit:a,range:s}},t.prototype.getFallbackDuration=function(){return K({day:1})},t.prototype.adjustActiveRange=function(t,e,n){var r=this.dateEnv,i=t.start,o=t.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(nt(e)<0&&(i=N(i),i=r.add(i,e)),nt(n)>1&&(o=R(o=N(o),-1),o=r.add(o,n))),{start:i,end:o}},t.prototype.buildRangeFromDuration=function(t,e,n,r){var i,o,a,s,l,u=this.dateEnv,c=this.options.dateAlignment;function d(){a=u.startOf(t,c),s=u.add(a,n),l={start:a,end:s}}return c||((i=this.options.dateIncrement)?(o=K(i),c=rt(o)<rt(n)?ot(o,!Q(i)).unit:r):c=r),nt(n)<=1&&this.isHiddenDay(a)&&(a=N(a=this.skipHiddenDays(a,e))),d(),this.trimHiddenDays(l)||(t=this.skipHiddenDays(t,e),d()),l},t.prototype.buildRangeFromDayCount=function(t,e,n){var r,i=this.dateEnv,o=this.options.dateAlignment,a=0,s=t;o&&(s=i.startOf(s,o)),s=N(s),r=s=this.skipHiddenDays(s,e);do{r=R(r,1),this.isHiddenDay(r)||a++}while(a<n);return{start:s,end:r}},t.prototype.buildCustomVisibleRange=function(t){var e=this.dateEnv,n=this.getRangeOption("visibleRange",e.toDate(t));return!n||null!=n.start&&null!=n.end?n:null},t.prototype.buildRenderRange=function(t,e,n){return t},t.prototype.buildDateIncrement=function(t){var e,n=this.options.dateIncrement;return n?K(n):(e=this.options.dateAlignment)?K(1,e):t||K({days:1})},t.prototype.getRangeOption=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,i,o,a,s=this.options[t];return"function"===typeof s&&(s=s.apply(null,e)),s&&(r=s,i=this.dateEnv,o=null,a=null,r.start&&(o=i.createMarker(r.start)),r.end&&(a=i.createMarker(r.end)),s=o||a?o&&a&&a<o?null:{start:o,end:a}:null),s&&(s=_t(s)),s},t.prototype.initHiddenDays=function(){var t,e=this.options.hiddenDays||[],n=[],r=0;for(!1===this.options.weekends&&e.push(0,6),t=0;t<7;t++)(n[t]=-1!==e.indexOf(t))||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},t.prototype.trimHiddenDays=function(t){var e=t.start,n=t.end;return e&&(e=this.skipHiddenDays(e)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==e||null==n||e<n?{start:e,end:n}:null},t.prototype.isHiddenDay=function(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]},t.prototype.skipHiddenDays=function(t,e,n){for(void 0===e&&(e=1),void 0===n&&(n=!1);this.isHiddenDayHash[(t.getUTCDay()+(n?e:0)+7)%7];)t=R(t,e);return t},t}();function ar(t,e,n){for(var r=function(t,e){if("SET_VIEW_TYPE"===e.type)return e.viewType;return t}(t.viewType,e),i=function(t,e,n,r,i){var o;switch(e.type){case"PREV":o=i.dateProfileGenerators[r].buildPrev(t,n);break;case"NEXT":o=i.dateProfileGenerators[r].buildNext(t,n);break;case"SET_DATE":t.activeRange&&Jt(t.currentRange,e.dateMarker)||(o=i.dateProfileGenerators[r].build(e.dateMarker,void 0,!0));break;case"SET_VIEW_TYPE":var a=i.dateProfileGenerators[r];if(!a)throw new Error(r?'The FullCalendar view "'+r+'" does not exist. Make sure your plugins are loaded correctly.':"No available FullCalendar view plugins.");o=a.build(e.dateMarker||n,void 0,!0)}return!o||!o.isValid||t&&(s=t,l=o,Ut(s.validRange,l.validRange)&&Ut(s.activeRange,l.activeRange)&&Ut(s.renderRange,l.renderRange)&&Z(s.minTime,l.minTime)&&Z(s.maxTime,l.maxTime))?t:o;var s,l}(t.dateProfile,e,t.currentDate,r,n),o=tr(t.eventSources,e,i,n),a=St({},t,{viewType:r,dateProfile:i,currentDate:sr(t.currentDate,e,i),eventSources:o,eventStore:Te(t.eventStore,e,o,i,n),dateSelection:lr(t.dateSelection,e,n),eventSelection:ur(t.eventSelection,e),eventDrag:cr(t.eventDrag,e,o,n),eventResize:dr(t.eventResize,e,o,n),eventSourceLoadingLevel:hr(o),loadingLevel:hr(o)}),s=0,l=n.pluginSystem.hooks.reducers;s<l.length;s++){a=(0,l[s])(a,e,n)}return a}function sr(t,e,n){switch(e.type){case"PREV":case"NEXT":return Jt(n.currentRange,t)?t:n.currentRange.start;case"SET_DATE":case"SET_VIEW_TYPE":var r=e.dateMarker||t;return n.activeRange&&!Jt(n.activeRange,r)?n.currentRange.start:r;default:return t}}function lr(t,e,n){switch(e.type){case"SELECT_DATES":return e.selection;case"UNSELECT_DATES":return null;default:return t}}function ur(t,e){switch(e.type){case"SELECT_EVENT":return e.eventInstanceId;case"UNSELECT_EVENT":return"";default:return t}}function cr(t,e,n,r){switch(e.type){case"SET_EVENT_DRAG":var i=e.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_DRAG":return null;default:return t}}function dr(t,e,n,r){switch(e.type){case"SET_EVENT_RESIZE":var i=e.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_RESIZE":return null;default:return t}}function hr(t){var e=0;for(var n in t)t[n].isFetching&&e++;return e}var fr={start:null,end:null,allDay:Boolean};function pr(t,e,n){var r=function(t,e){var n={},r=wt(t,fr,{},n),i=r.start?e.createMarkerMeta(r.start):null,o=r.end?e.createMarkerMeta(r.end):null,a=r.allDay;null==a&&(a=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified));return n.range={start:i?i.marker:null,end:o?o.marker:null},n.allDay=a,n}(t,e),i=r.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=e.add(i.start,n)}return r}function mr(t,e,n,r){if(e[t])return e[t];var i=function(t,e,n,r){var i=n[t],o=r[t],a=function(t){return i&&null!==i[t]?i[t]:o&&null!==o[t]?o[t]:null},s=a("class"),l=a("superType");!l&&s&&(l=gr(s,r)||gr(s,n));var u=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");u=mr(l,e,n,r)}!s&&u&&(s=u.class);if(!s)return null;return{type:t,class:s,defaults:St({},u?u.defaults:{},i?i.options:{}),overrides:St({},u?u.overrides:{},o?o.options:{})}}(t,e,n,r);return i&&(e[t]=i),i}function gr(t,e){var n=Object.getPrototypeOf(t.prototype);for(var r in e){var i=e[r];if(i.class&&i.class.prototype===n)return r}return""}function br(t){return At(t,yr)}var vr={type:String,class:null};function yr(t){"function"===typeof t&&(t={class:t});var e={},n=wt(t,vr,{},e);return{superType:n.type,class:n.class,options:e}}function wr(t,e){var n=br(t),r=br(e.overrides.views),i=function(t,e){var n,r={};for(n in t)mr(n,r,t,e);for(n in e)mr(n,r,t,e);return r}(n,r);return At(i,(function(t){return function(t,e,n){var r=t.overrides.duration||t.defaults.duration||n.dynamicOverrides.duration||n.overrides.duration,i=null,o="",a="",s={};if(r&&(i=K(r))){var l=ot(i,!Q(r));o=l.unit,1===l.value&&(a=o,s=e[o]?e[o].options:{})}var u=function(e){var n=e.buttonText||{},r=t.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[t.type]?n[t.type]:null!=n[a]?n[a]:void 0};return{type:t.type,class:t.class,duration:i,durationUnit:o,singleUnit:a,options:St({},Ln,t.defaults,n.dirDefaults,n.localeDefaults,n.overrides,s,t.overrides,n.dynamicOverrides),buttonTextOverride:u(n.dynamicOverrides)||u(n.overrides)||t.overrides.buttonText,buttonTextDefault:u(n.localeDefaults)||u(n.dirDefaults)||t.defaults.buttonText||u(Ln)||t.type}}(t,r,e)}))}var kr=function(t){function e(e){var n=t.call(this)||this;return n._renderLayout=nn(n.renderLayout,n.unrenderLayout),n._updateTitle=nn(n.updateTitle,null,[n._renderLayout]),n._updateActiveButton=nn(n.updateActiveButton,null,[n._renderLayout]),n._updateToday=nn(n.updateToday,null,[n._renderLayout]),n._updatePrev=nn(n.updatePrev,null,[n._renderLayout]),n._updateNext=nn(n.updateNext,null,[n._renderLayout]),n.el=o("div",{className:"fc-toolbar "+e}),n}return jt(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._renderLayout.unrender(),f(this.el)},e.prototype.render=function(t){this._renderLayout(t.layout),this._updateTitle(t.title),this._updateActiveButton(t.activeButton),this._updateToday(t.isTodayEnabled),this._updatePrev(t.isPrevEnabled),this._updateNext(t.isNextEnabled)},e.prototype.renderLayout=function(t){var e=this.el;this.viewsWithButtons=[],u(e,this.renderSection("left",t.left)),u(e,this.renderSection("center",t.center)),u(e,this.renderSection("right",t.right))},e.prototype.unrenderLayout=function(){this.el.innerHTML=""},e.prototype.renderSection=function(t,e){var n=this,r=this.context,i=r.theme,s=r.calendar,l=s.optionsManager,c=s.viewSpecs,d=o("div",{className:"fc-"+t}),h=l.computed.customButtons||{},f=l.overrides.buttonText||{},p=l.computed.buttonText||{};return e&&e.split(" ").forEach((function(t,e){var r,o=[],l=!0;if(t.split(",").forEach((function(t,e){var r,u,d,m,g,b,v,y,w;"title"===t?(o.push(a("<h2>&nbsp;</h2>")),l=!1):((r=h[t])?(d=function(t){r.click&&r.click.call(y,t)},(m=i.getCustomButtonIconClass(r))||(m=i.getIconClass(t))||(g=r.text)):(u=c[t])?(n.viewsWithButtons.push(t),d=function(){s.changeView(t)},(g=u.buttonTextOverride)||(m=i.getIconClass(t))||(g=u.buttonTextDefault)):s[t]&&(d=function(){s[t]()},(g=f[t])||(m=i.getIconClass(t))||(g=p[t])),d&&(v=["fc-"+t+"-button",i.getClass("button")],g?(b=Ne(g),w=""):m&&(b="<span class='"+m+"'></span>",w=' aria-label="'+t+'"'),(y=a('<button type="button" class="'+v.join(" ")+'"'+w+">"+b+"</button>")).addEventListener("click",d),o.push(y)))})),o.length>1){r=document.createElement("div");var m=i.getClass("buttonGroup");l&&m&&r.classList.add(m),u(r,o),d.appendChild(r)}else u(d,o)})),d},e.prototype.updateToday=function(t){this.toggleButtonEnabled("today",t)},e.prototype.updatePrev=function(t){this.toggleButtonEnabled("prev",t)},e.prototype.updateNext=function(t){this.toggleButtonEnabled("next",t)},e.prototype.updateTitle=function(t){v(this.el,"h2").forEach((function(e){e.innerText=t}))},e.prototype.updateActiveButton=function(t){var e=this.context.theme.getClass("buttonActive");v(this.el,"button").forEach((function(n){t&&n.classList.contains("fc-"+t+"-button")?n.classList.add(e):n.classList.remove(e)}))},e.prototype.toggleButtonEnabled=function(t,e){v(this.el,".fc-"+t+"-button").forEach((function(t){t.disabled=!e}))},e}(kn),_r=function(t){function e(e){var n=t.call(this)||this;return n.elClassNames=[],n.renderSkeleton=nn(n._renderSkeleton,n._unrenderSkeleton),n.renderToolbars=nn(n._renderToolbars,n._unrenderToolbars,[n.renderSkeleton]),n.buildComponentContext=$t(xr),n.buildViewPropTransformers=$t(Er),n.el=e,n.computeTitle=$t(Or),n.parseBusinessHours=$t((function(t){return en(t,n.context.calendar)})),n}return jt(e,t),e.prototype.render=function(t,e){this.freezeHeight();var n=this.computeTitle(t.dateProfile,t.viewSpec.options);this.renderSkeleton(e),this.renderToolbars(t.viewSpec,t.dateProfile,t.currentDate,n),this.renderView(t,n),this.updateSize(),this.thawHeight()},e.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.renderSkeleton.unrender(),t.prototype.destroy.call(this)},e.prototype._renderSkeleton=function(t){this.updateElClassNames(t),c(this.el,this.contentEl=o("div",{className:"fc-view-container"}));for(var e=t.calendar,n=0,r=e.pluginSystem.hooks.viewContainerModifiers;n<r.length;n++){(0,r[n])(this.contentEl,e)}},e.prototype._unrenderSkeleton=function(){this.view&&(this.savedScroll=this.view.queryScroll(),this.view.destroy(),this.view=null),f(this.contentEl),this.removeElClassNames()},e.prototype.removeElClassNames=function(){for(var t=this.el.classList,e=0,n=this.elClassNames;e<n.length;e++){var r=n[e];t.remove(r)}this.elClassNames=[]},e.prototype.updateElClassNames=function(t){this.removeElClassNames();var e=t.theme,n=t.options;this.elClassNames=["fc","fc-"+n.dir,e.getClass("widget")];for(var r=this.el.classList,i=0,o=this.elClassNames;i<o.length;i++){var a=o[i];r.add(a)}},e.prototype._renderToolbars=function(t,e,n,r){var i=this,o=i.context,a=i.header,s=i.footer,l=o.options,d=o.calendar,h=l.header,f=l.footer,p=this.props.dateProfileGenerator,m=d.getNow(),g=p.build(m),b=p.buildPrev(e,n),v=p.buildNext(e,n),y={title:r,activeButton:t.type,isTodayEnabled:g.isValid&&!Jt(e.currentRange,m),isPrevEnabled:b.isValid,isNextEnabled:v.isValid};h?(a||(a=this.header=new kr("fc-header-toolbar"),c(this.el,a.el)),a.receiveProps(St({layout:h},y),o)):a&&(a.destroy(),a=this.header=null),f?(s||(s=this.footer=new kr("fc-footer-toolbar"),u(this.el,s.el)),s.receiveProps(St({layout:f},y),o)):s&&(s.destroy(),s=this.footer=null)},e.prototype._unrenderToolbars=function(){this.header&&(this.header.destroy(),this.header=null),this.footer&&(this.footer.destroy(),this.footer=null)},e.prototype.renderView=function(t,e){var n=this.view,r=this.context,i=r.calendar,o=r.options,a=t.viewSpec,s=t.dateProfileGenerator;n&&n.viewSpec===a||(n&&n.destroy(),n=this.view=new a.class(a,this.contentEl),this.savedScroll&&(n.addScroll(this.savedScroll,!0),this.savedScroll=null)),n.title=e;for(var l={dateProfileGenerator:s,dateProfile:t.dateProfile,businessHours:this.parseBusinessHours(a.options.businessHours),eventStore:t.eventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize},u=0,c=this.buildViewPropTransformers(i.pluginSystem.hooks.viewPropsTransformers);u<c.length;u++){var d=c[u];St(l,d.transform(l,a,t,o))}n.receiveProps(l,this.buildComponentContext(this.context,a,n))},e.prototype.updateSize=function(t){void 0===t&&(t=!1);var e=this.view;e&&((t||null==this.isHeightAuto)&&this.computeHeightVars(),e.updateSize(t,this.viewHeight,this.isHeightAuto),e.updateNowIndicator(),e.popScroll(t))},e.prototype.computeHeightVars=function(){var t=this.context.calendar,e=t.opt("height"),n=t.opt("contentHeight");if(this.isHeightAuto="auto"===e||"auto"===n,"number"===typeof n)this.viewHeight=n;else if("function"===typeof n)this.viewHeight=n();else if("number"===typeof e)this.viewHeight=e-this.queryToolbarsHeight();else if("function"===typeof e)this.viewHeight=e()-this.queryToolbarsHeight();else if("parent"===e){var r=this.el.parentNode;this.viewHeight=r.getBoundingClientRect().height-this.queryToolbarsHeight()}else this.viewHeight=Math.round(this.contentEl.getBoundingClientRect().width/Math.max(t.opt("aspectRatio"),.5))},e.prototype.queryToolbarsHeight=function(){var t=0;return this.header&&(t+=P(this.header.el)),this.footer&&(t+=P(this.footer.el)),t},e.prototype.freezeHeight=function(){k(this.el,{height:this.el.getBoundingClientRect().height,overflow:"hidden"})},e.prototype.thawHeight=function(){k(this.el,{height:"",overflow:""})},e}(kn);function Or(t,e){var n;return n=/^(year|month)$/.test(t.currentRangeUnit)?t.currentRange:t.activeRange,this.context.dateEnv.formatRange(n.start,n.end,ue(e.titleFormat||function(t){var e=t.currentRangeUnit;if("year"===e)return{year:"numeric"};if("month"===e)return{year:"numeric",month:"long"};var n=z(t.currentRange.start,t.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(t),e.titleRangeSeparator),{isEndExclusive:t.isRangeAllDay})}function xr(t,e,n){return t.extend(e.options,n)}function Er(t){return t.map((function(t){return new t}))}var jr=function(){function t(t){this.component=t.component}return t.prototype.destroy=function(){},t}();var Sr={},Pr=function(t){function e(e){var n=t.call(this,e)||this;n.handleSegClick=function(t,e){var r=n.component,i=r.context,o=i.calendar,a=i.view,s=we(e);if(s&&r.isValidSegDownEl(t.target)){var l=g(t.target,".fc-has-url"),u=l?l.querySelector("a[href]").href:"";o.publiclyTrigger("eventClick",[{el:e,event:new me(r.context.calendar,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:a}]),u&&!t.defaultPrevented&&(window.location.href=u)}};var r=e.component;return n.destroy=M(r.el,"click",r.fgSegSelector+","+r.bgSegSelector,n.handleSegClick),n}return jt(e,t),e}(jr),Cr=function(t){function e(e){var n=t.call(this,e)||this;n.handleEventElRemove=function(t){t===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(t,e){we(e)&&(e.classList.add("fc-allow-mouse-resize"),n.currentSegEl=e,n.triggerEvent("eventMouseEnter",t,e))},n.handleSegLeave=function(t,e){n.currentSegEl&&(e.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",t,e))};var r=e.component;return n.removeHoverListeners=function(t,e,n,r){var i;return M(t,"mouseover",e,(function(t,e){if(e!==i){i=e,n(t,e);var o=function(t){i=null,r(t,e),e.removeEventListener("mouseleave",o)};e.addEventListener("mouseleave",o)}}))}(r.el,r.fgSegSelector+","+r.bgSegSelector,n.handleSegEnter,n.handleSegLeave),r.context.calendar.on("eventElRemove",n.handleEventElRemove),n}return jt(e,t),e.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},e.prototype.triggerEvent=function(t,e,n){var r=this.component,i=r.context,o=i.calendar,a=i.view,s=we(n);e&&!r.isValidSegDownEl(e.target)||o.publiclyTrigger(t,[{el:n,event:new me(o,s.eventRange.def,s.eventRange.instance),jsEvent:e,view:a}])},e}(jr),Tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e}(vn);Tr.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Tr.prototype.baseIconClass="fc-icon",Tr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Tr.prototype.iconOverrideOption="buttonIcons",Tr.prototype.iconOverrideCustomButtonOption="icon",Tr.prototype.iconOverridePrefix="fc-icon-";var Mr=function(){function t(t,e){var n,r,i,o=this;this.buildComponentContext=$t(Ar),this.parseRawLocales=$t(Fn),this.buildLocale=$t(Hn),this.buildDateEnv=$t(Dr),this.buildTheme=$t(Rr),this.buildEventUiSingleBase=$t(this._buildEventUiSingleBase),this.buildSelectionConfig=$t(this._buildSelectionConfig),this.buildEventUiBySource=(n=Ir,r=Lt,i=null,function(){var t=n.apply(this,arguments);return(null===i||i!==t&&!r(i,t))&&(i=t),i}),this.buildEventUiBases=$t(Wr),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=$t(Lr),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=t,this.optionsManager=new Vn(e||{}),this.pluginSystem=new En,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map((function(t){return new t(o)}))}return t.prototype.addPluginInputs=function(t){for(var e=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n];if("string"===typeof i){var o="FullCalendar"+pt(i);window[o]?e.push(window[o].default):console.warn("Plugin file not loaded for "+i)}else e.push(i)}return zn.concat(e)}(t),n=0,r=e;n<r.length;n++){var i=r[n];this.pluginSystem.add(i)}},Object.defineProperty(t.prototype,"view",{get:function(){return this.component?this.component.view:null},enumerable:!0,configurable:!0}),t.prototype.render=function(){this.component?this.requestRerender():(this.component=new _r(this.el),this.renderableEventStore={defs:{},instances:{}},this.bindHandlers(),this.executeRender())},t.prototype.destroy=function(){if(this.component){this.unbindHandlers(),this.component.destroy(),this.component=null;for(var t=0,e=this.calendarInteractions;t<e.length;t++){e[t].destroy()}this.publiclyTrigger("_destroyed")}},t.prototype.bindHandlers=function(){var t=this;this.removeNavLinkListener=M(this.el,"click","a[data-goto]",(function(e,n){var r=n.getAttribute("data-goto");r=r?JSON.parse(r):{};var i=t.dateEnv,o=i.createMarker(r.date),a=r.type,s=t.viewOpt("navLink"+pt(a)+"Click");"function"===typeof s?s(i.toDate(o),e):("string"===typeof s&&(a=s),t.zoomTo(o,a))})),this.opt("handleWindowResize")&&window.addEventListener("resize",this.windowResizeProxy=yt(this.windowResize.bind(this),this.opt("windowResizeDelay")))},t.prototype.unbindHandlers=function(){this.removeNavLinkListener(),this.windowResizeProxy&&(window.removeEventListener("resize",this.windowResizeProxy),this.windowResizeProxy=null)},t.prototype.hydrate=function(){var t=this;this.state=this.buildInitialState();var e=this.opt("eventSources")||[],n=this.opt("events"),r=[];n&&e.unshift(n);for(var i=0,o=e;i<o.length;i++){var a=Qn(o[i],this);a&&r.push(a)}this.batchRendering((function(){t.dispatch({type:"INIT"}),t.dispatch({type:"ADD_EVENT_SOURCES",sources:r}),t.dispatch({type:"SET_VIEW_TYPE",viewType:t.opt("defaultView")||t.pluginSystem.hooks.defaultView})}))},t.prototype.buildInitialState=function(){return{viewType:null,loadingLevel:0,eventSourceLoadingLevel:0,currentDate:this.getInitialDate(),dateProfile:null,eventSources:{},eventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null}},t.prototype.dispatch=function(t){if(this.actionQueue.push(t),!this.isReducing){this.isReducing=!0;for(var e=this.state;this.actionQueue.length;)this.state=this.reduce(this.state,this.actionQueue.shift(),this);var n=this.state;this.isReducing=!1,!e.loadingLevel&&n.loadingLevel?this.publiclyTrigger("loading",[!0]):e.loadingLevel&&!n.loadingLevel&&this.publiclyTrigger("loading",[!1]);var r=this.component&&this.component.view;e.eventStore!==n.eventStore&&e.eventStore&&(this.isEventsUpdated=!0),e.dateProfile!==n.dateProfile&&(e.dateProfile&&r&&this.publiclyTrigger("datesDestroy",[{view:r,el:r.el}]),this.isDatesUpdated=!0),e.viewType!==n.viewType&&(e.viewType&&r&&this.publiclyTrigger("viewSkeletonDestroy",[{view:r,el:r.el}]),this.isViewUpdated=!0),this.requestRerender()}},t.prototype.reduce=function(t,e,n){return ar(t,e,n)},t.prototype.requestRerender=function(){this.needsRerender=!0,this.delayedRerender()},t.prototype.tryRerender=function(){this.component&&this.needsRerender&&!this.renderingPauseDepth&&!this.isRendering&&this.executeRender()},t.prototype.batchRendering=function(t){this.renderingPauseDepth++,t(),this.renderingPauseDepth--,this.needsRerender&&this.requestRerender()},t.prototype.executeRender=function(){this.needsRerender=!1,this.isRendering=!0,this.renderComponent(),this.isRendering=!1,this.needsRerender&&this.delayedRerender()},t.prototype.renderComponent=function(){var t=this.state,e=this.component,n=t.viewType,r=this.viewSpecs[n];if(!r)throw new Error('View type "'+n+'" is not valid');var i=this.renderableEventStore=t.eventSourceLoadingLevel&&!this.opt("progressiveEventRendering")?this.renderableEventStore:t.eventStore,o=this.buildEventUiSingleBase(r.options),a=this.buildEventUiBySource(t.eventSources),s=this.eventUiBases=this.buildEventUiBases(i.defs,o,a);e.receiveProps(St({},t,{viewSpec:r,dateProfileGenerator:this.dateProfileGenerators[n],dateProfile:t.dateProfile,eventStore:i,eventUiBases:s,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize}),this.buildComponentContext(this.theme,this.dateEnv,this.optionsManager.computed)),this.isViewUpdated&&(this.isViewUpdated=!1,this.publiclyTrigger("viewSkeletonRender",[{view:e.view,el:e.view.el}])),this.isDatesUpdated&&(this.isDatesUpdated=!1,this.publiclyTrigger("datesRender",[{view:e.view,el:e.view.el}])),this.isEventsUpdated&&(this.isEventsUpdated=!1),this.releaseAfterSizingTriggers()},t.prototype.setOption=function(t,e){var n;this.mutateOptions(((n={})[t]=e,n),[],!0)},t.prototype.getOption=function(t){return this.optionsManager.computed[t]},t.prototype.opt=function(t){return this.optionsManager.computed[t]},t.prototype.viewOpt=function(t){return this.viewOpts()[t]},t.prototype.viewOpts=function(){return this.viewSpecs[this.state.viewType].options},t.prototype.mutateOptions=function(t,e,n,r){var i=this,o=this.pluginSystem.hooks.optionChangeHandlers,a={},s={},l=this.dateEnv,u=!1,c=!1,d=Boolean(e.length);for(var h in t)o[h]?s[h]=t[h]:a[h]=t[h];for(var f in a)/^(height|contentHeight|aspectRatio)$/.test(f)?c=!0:/^(defaultDate|defaultView)$/.test(f)||(d=!0,"timeZone"===f&&(u=!0));this.optionsManager.mutate(a,e,n),d&&this.handleOptions(this.optionsManager.computed),this.batchRendering((function(){if(d?(u&&i.dispatch({type:"CHANGE_TIMEZONE",oldDateEnv:l}),i.dispatch({type:"SET_VIEW_TYPE",viewType:i.state.viewType})):c&&i.updateSize(),r)for(var t in s)o[t](s[t],i,r)}))},t.prototype.handleOptions=function(t){var e=this,n=this.pluginSystem.hooks;this.defaultAllDayEventDuration=K(t.defaultAllDayEventDuration),this.defaultTimedEventDuration=K(t.defaultTimedEventDuration),this.delayedRerender=this.buildDelayedRerender(t.rerenderDelay),this.theme=this.buildTheme(t);var r=this.parseRawLocales(t.locales);this.availableRawLocales=r.map;var i=this.buildLocale(t.locale||r.defaultCode,r.map);this.dateEnv=this.buildDateEnv(i,t.timeZone,n.namedTimeZonedImpl,t.firstDay,t.weekNumberCalculation,t.weekLabel,n.cmdFormatter),this.selectionConfig=this.buildSelectionConfig(t),this.viewSpecs=wr(n.views,this.optionsManager),this.dateProfileGenerators=At(this.viewSpecs,(function(t){return new t.class.prototype.dateProfileGeneratorClass(t,e)}))},t.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.availableRawLocales)},t.prototype._buildSelectionConfig=function(t){return qe("select",t,this)},t.prototype._buildEventUiSingleBase=function(t){return t.editable&&(t=St({},t,{eventEditable:!0})),qe("event",t,this)},t.prototype.hasPublicHandlers=function(t){return this.hasHandlers(t)||this.opt(t)},t.prototype.publiclyTrigger=function(t,e){var n=this.opt(t);if(this.triggerWith(t,this,e),n)return n.apply(this,e)},t.prototype.publiclyTriggerAfterSizing=function(t,e){var n=this.afterSizingTriggers;(n[t]||(n[t]=[])).push(e)},t.prototype.releaseAfterSizingTriggers=function(){var t=this.afterSizingTriggers;for(var e in t)for(var n=0,r=t[e];n<r.length;n++){var i=r[n];this.publiclyTrigger(e,i)}this.afterSizingTriggers={}},t.prototype.isValidViewType=function(t){return Boolean(this.viewSpecs[t])},t.prototype.changeView=function(t,e){var n=null;e&&(e.start&&e.end?(this.optionsManager.mutate({visibleRange:e},[]),this.handleOptions(this.optionsManager.computed)):n=this.dateEnv.createMarker(e)),this.unselect(),this.dispatch({type:"SET_VIEW_TYPE",viewType:t,dateMarker:n})},t.prototype.zoomTo=function(t,e){var n;e=e||"day",n=this.viewSpecs[e]||this.getUnitViewSpec(e),this.unselect(),n?this.dispatch({type:"SET_VIEW_TYPE",viewType:n.type,dateMarker:t}):this.dispatch({type:"SET_DATE",dateMarker:t})},t.prototype.getUnitViewSpec=function(t){var e,n,r=this.component,i=[];for(var o in r.header&&i.push.apply(i,r.header.viewsWithButtons),r.footer&&i.push.apply(i,r.footer.viewsWithButtons),this.viewSpecs)i.push(o);for(e=0;e<i.length;e++)if((n=this.viewSpecs[i[e]])&&n.singleUnit===t)return n},t.prototype.getInitialDate=function(){var t=this.opt("defaultDate");return null!=t?this.dateEnv.createMarker(t):this.getNow()},t.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},t.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},t.prototype.prevYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,-1)})},t.prototype.nextYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,1)})},t.prototype.today=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.getNow()})},t.prototype.gotoDate=function(t){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.createMarker(t)})},t.prototype.incrementDate=function(t){var e=K(t);e&&(this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.add(this.state.currentDate,e)}))},t.prototype.getDate=function(){return this.dateEnv.toDate(this.state.currentDate)},t.prototype.formatDate=function(t,e){var n=this.dateEnv;return n.format(n.createMarker(t),ue(e))},t.prototype.formatRange=function(t,e,n){var r=this.dateEnv;return r.formatRange(r.createMarker(t),r.createMarker(e),ue(n,this.opt("defaultRangeSeparator")),n)},t.prototype.formatIso=function(t,e){var n=this.dateEnv;return n.formatIso(n.createMarker(t),{omitTime:e})},t.prototype.windowResize=function(t){!this.isHandlingWindowResize&&this.component&&t.target===window&&(this.isHandlingWindowResize=!0,this.updateSize(),this.publiclyTrigger("windowResize",[this.view]),this.isHandlingWindowResize=!1)},t.prototype.updateSize=function(){this.component&&this.component.updateSize(!0)},t.prototype.registerInteractiveComponent=function(t,e){var n=function(t,e){return{component:t,el:e.el,useEventCenter:null==e.useEventCenter||e.useEventCenter}}(t,e),r=[Pr,Cr].concat(this.pluginSystem.hooks.componentInteractions).map((function(t){return new t(n)}));this.interactionsStore[t.uid]=r,Sr[t.uid]=n},t.prototype.unregisterInteractiveComponent=function(t){for(var e=0,n=this.interactionsStore[t.uid];e<n.length;e++){n[e].destroy()}delete this.interactionsStore[t.uid],delete Sr[t.uid]},t.prototype.select=function(t,e){var n=pr(null==e?null!=t.start?t:{start:t,end:null}:{start:t,end:e},this.dateEnv,K({days:1}));n&&(this.dispatch({type:"SELECT_DATES",selection:n}),this.triggerDateSelect(n))},t.prototype.unselect=function(t){this.state.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),this.triggerDateUnselect(t))},t.prototype.triggerDateSelect=function(t,e){var n=St({},this.buildDateSpanApi(t),{jsEvent:e?e.origEvent:null,view:this.view});this.publiclyTrigger("select",[n])},t.prototype.triggerDateUnselect=function(t){this.publiclyTrigger("unselect",[{jsEvent:t?t.origEvent:null,view:this.view}])},t.prototype.triggerDateClick=function(t,e,n,r){var i=St({},this.buildDatePointApi(t),{dayEl:e,jsEvent:r,view:n});this.publiclyTrigger("dateClick",[i])},t.prototype.buildDatePointApi=function(t){for(var e,n,r={},i=0,o=this.pluginSystem.hooks.datePointTransforms;i<o.length;i++){var a=o[i];St(r,a(t,this))}return St(r,(e=t,{date:(n=this.dateEnv).toDate(e.range.start),dateStr:n.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay})),r},t.prototype.buildDateSpanApi=function(t){for(var e,n,r={},i=0,o=this.pluginSystem.hooks.dateSpanTransforms;i<o.length;i++){var a=o[i];St(r,a(t,this))}return St(r,(e=t,{start:(n=this.dateEnv).toDate(e.range.start),end:n.toDate(e.range.end),startStr:n.formatIso(e.range.start,{omitTime:e.allDay}),endStr:n.formatIso(e.range.end,{omitTime:e.allDay}),allDay:e.allDay})),r},t.prototype.getNow=function(){var t=this.opt("now");return"function"===typeof t&&(t=t()),null==t?this.dateEnv.createNowMarker():this.dateEnv.createMarker(t)},t.prototype.getDefaultEventEnd=function(t,e){var n=e;return t?(n=N(n),n=this.dateEnv.add(n,this.defaultAllDayEventDuration)):n=this.dateEnv.add(n,this.defaultTimedEventDuration),n},t.prototype.addEvent=function(t,e){if(t instanceof me){var n=t._def,r=t._instance;return this.state.eventStore.defs[n.defId]||this.dispatch({type:"ADD_EVENTS",eventStore:Wt({def:n,instance:r})}),t}var i;if(e instanceof pe)i=e.internalEventSource.sourceId;else if(null!=e){var o=this.getEventSourceById(e);if(!o)return console.warn('Could not find an event source with ID "'+e+'"'),null;i=o.internalEventSource.sourceId}var a=$e(t,i,this);return a?(this.dispatch({type:"ADD_EVENTS",eventStore:Wt(a)}),new me(this,a.def,a.def.recurringDef?null:a.instance)):null},t.prototype.getEventById=function(t){var e=this.state.eventStore,n=e.defs,r=e.instances;for(var i in t=String(t),n){var o=n[i];if(o.publicId===t){if(o.recurringDef)return new me(this,o,null);for(var a in r){var s=r[a];if(s.defId===o.defId)return new me(this,o,s)}}}return null},t.prototype.getEvents=function(){var t=this.state.eventStore,e=t.defs,n=t.instances,r=[];for(var i in n){var o=n[i],a=e[o.defId];r.push(new me(this,a,o))}return r},t.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},t.prototype.rerenderEvents=function(){this.dispatch({type:"RESET_EVENTS"})},t.prototype.getEventSources=function(){var t=this.state.eventSources,e=[];for(var n in t)e.push(new pe(this,t[n]));return e},t.prototype.getEventSourceById=function(t){var e=this.state.eventSources;for(var n in t=String(t),e)if(e[n].publicId===t)return new pe(this,e[n]);return null},t.prototype.addEventSource=function(t){if(t instanceof pe)return this.state.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;var e=Qn(t,this);return e?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e]}),new pe(this,e)):null},t.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},t.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES"})},t.prototype.scrollToTime=function(t){var e=K(t);e&&this.component.view.scrollToDuration(e)},t}();function Ar(t,e,n){return new wn(this,t,e,n,null)}function Dr(t,e,n,r,i,o,a){return new Xn({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:n,locale:t,weekNumberCalculation:i,firstDay:r,weekLabel:o,cmdFormatter:a})}function Rr(t){return new(this.pluginSystem.hooks.themeClasses[t.themeSystem]||Tr)(t)}function Lr(t){var e=this.tryRerender.bind(this);return null!=t&&(e=yt(e,t)),e}function Ir(t){return At(t,(function(t){return t.ui}))}function Wr(t,e,n){var r={"":e};for(var i in t){var o=t[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}dn.mixInto(Mr);var zr=function(t){function e(e,n){var r=t.call(this,o("div",{className:"fc-view fc-"+e.type+"-view"}))||this;return r.renderDatesMem=nn(r.renderDatesWrap,r.unrenderDatesWrap),r.renderBusinessHoursMem=nn(r.renderBusinessHours,r.unrenderBusinessHours,[r.renderDatesMem]),r.renderDateSelectionMem=nn(r.renderDateSelectionWrap,r.unrenderDateSelectionWrap,[r.renderDatesMem]),r.renderEventsMem=nn(r.renderEvents,r.unrenderEvents,[r.renderDatesMem]),r.renderEventSelectionMem=nn(r.renderEventSelectionWrap,r.unrenderEventSelectionWrap,[r.renderEventsMem]),r.renderEventDragMem=nn(r.renderEventDragWrap,r.unrenderEventDragWrap,[r.renderDatesMem]),r.renderEventResizeMem=nn(r.renderEventResizeWrap,r.unrenderEventResizeWrap,[r.renderDatesMem]),r.viewSpec=e,r.type=e.type,n.appendChild(r.el),r.initialize(),r}return jt(e,t),e.prototype.initialize=function(){},Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.end)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.end)},enumerable:!0,configurable:!0}),e.prototype.render=function(t,e){this.renderDatesMem(t.dateProfile),this.renderBusinessHoursMem(t.businessHours),this.renderDateSelectionMem(t.dateSelection),this.renderEventsMem(t.eventStore),this.renderEventSelectionMem(t.eventSelection),this.renderEventDragMem(t.eventDrag),this.renderEventResizeMem(t.eventResize)},e.prototype.beforeUpdate=function(){this.addScroll(this.queryScroll())},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.renderDatesMem.unrender()},e.prototype.updateSize=function(t,e,n){var r=this.context.calendar;t&&this.addScroll(this.queryScroll()),(t||r.isViewUpdated||r.isDatesUpdated||r.isEventsUpdated)&&this.updateBaseSize(t,e,n)},e.prototype.updateBaseSize=function(t,e,n){},e.prototype.renderDatesWrap=function(t){this.renderDates(t),this.addScroll({duration:K(this.context.options.scrollTime)})},e.prototype.unrenderDatesWrap=function(){this.stopNowIndicator(),this.unrenderDates()},e.prototype.renderDates=function(t){},e.prototype.unrenderDates=function(){},e.prototype.renderBusinessHours=function(t){},e.prototype.unrenderBusinessHours=function(){},e.prototype.renderDateSelectionWrap=function(t){t&&this.renderDateSelection(t)},e.prototype.unrenderDateSelectionWrap=function(t){t&&this.unrenderDateSelection(t)},e.prototype.renderDateSelection=function(t){},e.prototype.unrenderDateSelection=function(t){},e.prototype.renderEvents=function(t){},e.prototype.unrenderEvents=function(){},e.prototype.sliceEvents=function(t,e){var n=this.props;return ge(t,n.eventUiBases,n.dateProfile.activeRange,e?this.context.nextDayThreshold:null).fg},e.prototype.renderEventSelectionWrap=function(t){t&&this.renderEventSelection(t)},e.prototype.unrenderEventSelectionWrap=function(t){t&&this.unrenderEventSelection(t)},e.prototype.renderEventSelection=function(t){},e.prototype.unrenderEventSelection=function(t){},e.prototype.renderEventDragWrap=function(t){t&&this.renderEventDrag(t)},e.prototype.unrenderEventDragWrap=function(t){t&&this.unrenderEventDrag(t)},e.prototype.renderEventDrag=function(t){},e.prototype.unrenderEventDrag=function(t){},e.prototype.renderEventResizeWrap=function(t){t&&this.renderEventResize(t)},e.prototype.unrenderEventResizeWrap=function(t){t&&this.unrenderEventResize(t)},e.prototype.renderEventResize=function(t){},e.prototype.unrenderEventResize=function(t){},e.prototype.startNowIndicator=function(t,e){var n,r,i,o=this,a=this.context,s=a.calendar,l=a.dateEnv;a.options.nowIndicator&&!this.initialNowDate&&(n=this.getNowIndicatorUnit(t,e))&&(r=this.updateNowIndicator.bind(this),this.initialNowDate=s.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),i=l.add(l.startOf(this.initialNowDate,n),K(1,n)).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout((function(){o.nowIndicatorTimeoutID=null,r(),i="second"===n?1e3:6e4,o.nowIndicatorIntervalID=setInterval(r,i)}),i))},e.prototype.updateNowIndicator=function(){this.props.dateProfile&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(L(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},e.prototype.stopNowIndicator=function(){this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},e.prototype.getNowIndicatorUnit=function(t,e){},e.prototype.renderNowIndicator=function(t){},e.prototype.unrenderNowIndicator=function(){},e.prototype.addScroll=function(t,e){e&&(t.isForced=e),St(this.queuedScroll||(this.queuedScroll={}),t)},e.prototype.popScroll=function(t){this.applyQueuedScroll(t),this.queuedScroll=null},e.prototype.applyQueuedScroll=function(t){this.queuedScroll&&this.applyScroll(this.queuedScroll,t)},e.prototype.queryScroll=function(){var t={};return this.props.dateProfile&&St(t,this.queryDateScroll()),t},e.prototype.applyScroll=function(t,e){var n=t.duration,r=t.isForced;null==n||r||(delete t.duration,this.props.dateProfile&&St(t,this.computeDateScroll(n))),this.props.dateProfile&&this.applyDateScroll(t)},e.prototype.computeDateScroll=function(t){return{}},e.prototype.queryDateScroll=function(){return{}},e.prototype.applyDateScroll=function(t){},e.prototype.scrollToDuration=function(t){this.applyScroll({duration:t},!1)},e}(_n);dn.mixInto(zr),zr.prototype.usesMinMaxTime=!1,zr.prototype.dateProfileGeneratorClass=or;var Nr=function(){function t(){this.segs=[],this.isSizeDirty=!1}return t.prototype.renderSegs=function(t,e,n){this.context=t,this.rangeUpdated(),e=this.renderSegEls(e,n),this.segs=e,this.attachSegs(e,n),this.isSizeDirty=!0,Oe(this.context,this.segs,Boolean(n))},t.prototype.unrender=function(t,e,n){xe(this.context,this.segs,Boolean(n)),this.detachSegs(this.segs),this.segs=[]},t.prototype.rangeUpdated=function(){var t,e,n=this.context.options;this.eventTimeFormat=ue(n.eventTimeFormat||this.computeEventTimeFormat(),n.defaultRangeSeparator),null==(t=n.displayEventTime)&&(t=this.computeDisplayEventTime()),null==(e=n.displayEventEnd)&&(e=this.computeDisplayEventEnd()),this.displayEventTime=t,this.displayEventEnd=e},t.prototype.renderSegEls=function(t,e){var n,r="";if(t.length){for(n=0;n<t.length;n++)r+=this.renderSegHtml(t[n],e);s(r).forEach((function(e,n){var r=t[n];e&&(r.el=e)})),t=ve(this.context,t,Boolean(e))}return t},t.prototype.getSegClasses=function(t,e,n,r){var i=["fc-event",t.isStart?"fc-start":"fc-not-start",t.isEnd?"fc-end":"fc-not-end"].concat(t.eventRange.ui.classNames);return e&&i.push("fc-draggable"),n&&i.push("fc-resizable"),r&&(i.push("fc-mirror"),r.isDragging&&i.push("fc-dragging"),r.isResizing&&i.push("fc-resizing")),i},t.prototype.getTimeText=function(t,e,n){var r=t.def,i=t.instance;return this._getTimeText(i.range.start,r.hasEnd?i.range.end:null,r.allDay,e,n,i.forcedStartTzo,i.forcedEndTzo)},t.prototype._getTimeText=function(t,e,n,r,i,o,a){var s=this.context.dateEnv;return null==r&&(r=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&!n?i&&e?s.formatRange(t,e,r,{forcedStartTzo:o,forcedEndTzo:a}):s.format(t,r,{forcedTzo:o}):""},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0}},t.prototype.computeDisplayEventTime=function(){return!0},t.prototype.computeDisplayEventEnd=function(){return!0},t.prototype.getSkinCss=function(t){return{"background-color":t.backgroundColor,"border-color":t.borderColor,color:t.textColor}},t.prototype.sortEventSegs=function(t){var e=this.context.eventOrderSpecs,n=t.map(Fr);return n.sort((function(t,n){return ht(t,n,e)})),n.map((function(t){return t._seg}))},t.prototype.computeSizes=function(t){(t||this.isSizeDirty)&&this.computeSegSizes(this.segs)},t.prototype.assignSizes=function(t){(t||this.isSizeDirty)&&(this.assignSegSizes(this.segs),this.isSizeDirty=!1)},t.prototype.computeSegSizes=function(t){},t.prototype.assignSegSizes=function(t){},t.prototype.hideByHash=function(t){if(t)for(var e=0,n=this.segs;e<n.length;e++){var r=n[e];t[r.eventRange.instance.instanceId]&&(r.el.style.visibility="hidden")}},t.prototype.showByHash=function(t){if(t)for(var e=0,n=this.segs;e<n.length;e++){var r=n[e];t[r.eventRange.instance.instanceId]&&(r.el.style.visibility="")}},t.prototype.selectByInstanceId=function(t){if(t)for(var e=0,n=this.segs;e<n.length;e++){var r=n[e],i=r.eventRange.instance;i&&i.instanceId===t&&r.el&&r.el.classList.add("fc-selected")}},t.prototype.unselectByInstanceId=function(t){if(t)for(var e=0,n=this.segs;e<n.length;e++){var r=n[e];r.el&&r.el.classList.remove("fc-selected")}},t}();function Fr(t){var e=t.eventRange.def,n=t.eventRange.instance.range,r=n.start?n.start.valueOf():0,i=n.end?n.end.valueOf():0;return St({},e.extendedProps,e,{id:e.publicId,start:r,end:i,duration:i-r,allDay:Number(e.allDay),_seg:t})}var Hr=function(){function t(){this.fillSegTag="div",this.dirtySizeFlags={},this.containerElsByType={},this.segsByType={}}return t.prototype.getSegsByType=function(t){return this.segsByType[t]||[]},t.prototype.renderSegs=function(t,e,n){var r;this.context=e;var i=this.renderSegEls(t,n),o=this.attachSegs(t,i);o&&(r=this.containerElsByType[t]||(this.containerElsByType[t]=[])).push.apply(r,o),this.segsByType[t]=i,"bgEvent"===t&&Oe(e,i,!1),this.dirtySizeFlags[t]=!0},t.prototype.unrender=function(t,e){var n=this.segsByType[t];n&&("bgEvent"===t&&xe(e,n,!1),this.detachSegs(t,n))},t.prototype.renderSegEls=function(t,e){var n,r=this,i="";if(e.length){for(n=0;n<e.length;n++)i+=this.renderSegHtml(t,e[n]);s(i).forEach((function(t,n){var r=e[n];t&&(r.el=t)})),"bgEvent"===t&&(e=ve(this.context,e,!1)),e=e.filter((function(t){return b(t.el,r.fillSegTag)}))}return e},t.prototype.renderSegHtml=function(t,e){var n=null,r=[];return"highlight"!==t&&"businessHours"!==t&&(n={"background-color":e.eventRange.ui.backgroundColor}),"highlight"!==t&&(r=r.concat(e.eventRange.ui.classNames)),"businessHours"===t?r.push("fc-bgevent"):r.push("fc-"+t.toLowerCase()),"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(n?' style="'+Fe(n)+'"':"")+"></"+this.fillSegTag+">"},t.prototype.detachSegs=function(t,e){var n=this.containerElsByType[t];n&&(n.forEach(f),delete this.containerElsByType[t])},t.prototype.computeSizes=function(t){for(var e in this.segsByType)(t||this.dirtySizeFlags[e])&&this.computeSegSizes(this.segsByType[e])},t.prototype.assignSizes=function(t){for(var e in this.segsByType)(t||this.dirtySizeFlags[e])&&this.assignSegSizes(this.segsByType[e]);this.dirtySizeFlags={}},t.prototype.computeSegSizes=function(t){},t.prototype.assignSegSizes=function(t){},t}();!function(){function t(t){this.emitter=new dn}t.prototype.destroy=function(){},t.prototype.setMirrorIsVisible=function(t){},t.prototype.setMirrorNeedsRevert=function(t){},t.prototype.setAutoScrollEnabled=function(t){}}();Boolean;function Br(t,e,n,r,i,o,a,s){var l,u=o.dateEnv,c=o.theme,d=o.options,h=Jt(e.activeRange,t),f=["fc-day-header",c.getClass("widgetHeader")];return l="function"===typeof d.columnHeaderHtml?d.columnHeaderHtml(u.toDate(t)):"function"===typeof d.columnHeaderText?Ne(d.columnHeaderText(u.toDate(t))):Ne(u.format(t,i)),n?f=f.concat(un(t,e,o,!0)):f.push("fc-"+A[t.getUTCDay()]),'<th class="'+f.join(" ")+'"'+(h&&n?' data-date="'+u.formatIso(t,{omitTime:!0})+'"':"")+(a>1?' colspan="'+a+'"':"")+(s?" "+s:"")+">"+(h?sn(d,u,{date:t,forceOff:!n||1===r},l):l)+"</th>"}var Vr=function(t){function e(e){var n=t.call(this)||this;return n.renderSkeleton=nn(n._renderSkeleton,n._unrenderSkeleton),n.parentEl=e,n}return jt(e,t),e.prototype.render=function(t,e){var n=t.dates,r=t.datesRepDistinctDays,i=[];this.renderSkeleton(e),t.renderIntroHtml&&i.push(t.renderIntroHtml());for(var o=ue(e.options.columnHeaderFormat||function(t,e){return!t||e>10?{weekday:"short"}:e>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}(r,n.length)),a=0,s=n;a<s.length;a++){var l=s[a];i.push(Br(l,t.dateProfile,r,n.length,o,e))}e.isRtl&&i.reverse(),this.thead.innerHTML="<tr>"+i.join("")+"</tr>"},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.renderSkeleton.unrender()},e.prototype._renderSkeleton=function(t){var e=t.theme,n=this.parentEl;n.innerHTML="",n.appendChild(this.el=a('<div class="fc-row '+e.getClass("headerRow")+'"><table class="'+e.getClass("tableGrid")+'"><thead></thead></table></div>')),this.thead=this.el.querySelector("thead")},e.prototype._unrenderSkeleton=function(){f(this.el)},e}(kn),qr=function(){function t(t,e){for(var n=t.start,r=t.end,i=[],o=[],a=-1;n<r;)e.isHiddenDay(n)?i.push(a+.5):(a++,i.push(a),o.push(n)),n=R(n,1);this.dates=o,this.indices=i,this.cnt=o.length}return t.prototype.sliceRange=function(t){var e=this.getDateDayIndex(t.start),n=this.getDateDayIndex(R(t.end,-1)),r=Math.max(0,e),i=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:e===r,isEnd:n===i}:null},t.prototype.getDateDayIndex=function(t){var e=this.indices,n=Math.floor(W(this.dates[0],t));return n<0?e[0]-1:n>=e.length?e[e.length-1]+1:e[n]},t}(),Yr=function(){function t(t,e){var n,r,i,o=t.dates;if(e){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n++);i=Math.ceil(o.length/n)}else i=1,n=o.length;this.rowCnt=i,this.colCnt=n,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return t.prototype.buildCells=function(){for(var t=[],e=0;e<this.rowCnt;e++){for(var n=[],r=0;r<this.colCnt;r++)n.push(this.buildCell(e,r));t.push(n)}return t},t.prototype.buildCell=function(t,e){return{date:this.daySeries.dates[t*this.colCnt+e]}},t.prototype.buildHeaderDates=function(){for(var t=[],e=0;e<this.colCnt;e++)t.push(this.cells[0][e].date);return t},t.prototype.sliceRange=function(t){var e=this.colCnt,n=this.daySeries.sliceRange(t),r=[];if(n)for(var i=n.firstIndex,o=n.lastIndex,a=i;a<=o;){var s=Math.floor(a/e),l=Math.min((s+1)*e,o+1);r.push({row:s,firstCol:a%e,lastCol:(l-1)%e,isStart:n.isStart&&a===i,isEnd:n.isEnd&&l-1===o}),a=l}return r},t}(),Ur=function(){function t(){this.sliceBusinessHours=$t(this._sliceBusinessHours),this.sliceDateSelection=$t(this._sliceDateSpan),this.sliceEventStore=$t(this._sliceEventStore),this.sliceEventDrag=$t(this._sliceInteraction),this.sliceEventResize=$t(this._sliceInteraction)}return t.prototype.sliceProps=function(t,e,n,r,i){for(var o=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];var s=t.eventUiBases,l=this.sliceEventStore.apply(this,[t.eventStore,s,e,n,i].concat(o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[t.dateSelection,s,i].concat(o)),businessHourSegs:this.sliceBusinessHours.apply(this,[t.businessHours,e,n,r,i].concat(o)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,[t.eventDrag,s,e,n,i].concat(o)),eventResize:this.sliceEventResize.apply(this,[t.eventResize,s,e,n,i].concat(o)),eventSelection:t.eventSelection}},t.prototype.sliceNowDate=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,[{range:{start:t,end:L(t,1)},allDay:!1},{},e].concat(n))},t.prototype._sliceBusinessHours=function(t,e,n,r,i){for(var o=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];return t?this._sliceEventStore.apply(this,[zt(t,Gr(e,Boolean(n)),r),{},e,n,i].concat(o)).bg:[]},t.prototype._sliceEventStore=function(t,e,n,r,i){for(var o=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];if(t){var s=ge(t,e,Gr(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,i,o),fg:this.sliceEventRanges(s.fg,i,o)}}return{bg:[],fg:[]}},t.prototype._sliceInteraction=function(t,e,n,r,i){for(var o=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];if(!t)return null;var s=ge(t.mutatedEvents,e,Gr(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i,o),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent,sourceSeg:t.origSeg}},t.prototype._sliceDateSpan=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!t)return[];for(var o=function(t,e,n){var r=Qe({editable:!1},"",t.allDay,!0,n);return{def:r,ui:_e(r,e),instance:Ze(r.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}(t,e,n.context.calendar),a=this.sliceRange.apply(this,[t.range].concat(r)),s=0,l=a;s<l.length;s++){var u=l[s];u.component=n,u.eventRange=o}return a},t.prototype.sliceEventRanges=function(t,e,n){for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i];r.push.apply(r,this.sliceEventRange(a,e,n))}return r},t.prototype.sliceEventRange=function(t,e,n){for(var r=this.sliceRange.apply(this,[t.range].concat(n)),i=0,o=r;i<o.length;i++){var a=o[i];a.component=e,a.eventRange=t,a.isStart=t.isStart&&a.isStart,a.isEnd=t.isEnd&&a.isEnd}return r},t}();function Gr(t,e){var n=t.activeRange;return e?n:{start:L(n.start,t.minTime.milliseconds),end:L(n.end,t.maxTime.milliseconds-864e5)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r.i})),n.d(e,"b",(function(){return r.q})),n.d(e,"c",(function(){return r.Eb})),n.d(e,"d",(function(){return r.Db})),n.d(e,"e",(function(){return r.u})),n.d(e,"f",(function(){return r.Fb})),n.d(e,"g",(function(){return r.xb})),n.d(e,"h",(function(){return r.d})),n.d(e,"i",(function(){return r.m})),n.d(e,"j",(function(){return r.Nb})),n.d(e,"k",(function(){return r.T})),n.d(e,"l",(function(){return r.r})),n.d(e,"m",(function(){return r.Cb})),n.d(e,"n",(function(){return r.Kb})),n.d(e,"o",(function(){return r.L})),n.d(e,"p",(function(){return r.Ob})),n.d(e,"q",(function(){return r.bc})),n.d(e,"r",(function(){return r.Mb})),n.d(e,"s",(function(){return r.w})),n.d(e,"t",(function(){return r.C})),n.d(e,"u",(function(){return r.g})),n.d(e,"v",(function(){return r.p})),n.d(e,"w",(function(){return r.l})),n.d(e,"x",(function(){return r.Xb})),n.d(e,"y",(function(){return r.zb})),n.d(e,"z",(function(){return r.o})),n.d(e,"A",(function(){return r.Zb}));var r=n(0)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){var t=document.querySelector("meta[name='csrf-token']");if(t)return t.getAttribute("content")}},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return p})),n.d(e,"getStorage",(function(){return m})),n.d(e,"setStorage",(function(){return g})),n.d(e,"getStoredSectionFrom",(function(){return b})),n.d(e,"getStoredPaperworkFrom",(function(){return v})),n.d(e,"buildPaperworkHtml",(function(){return y})),n.d(e,"buildSectionHtml",(function(){return w})),n.d(e,"buildConditionalLogicHtml",(function(){return k})),n.d(e,"buildPaperworkModal",(function(){return _})),n.d(e,"newId",(function(){return E})),n.d(e,"highlightConditionalLogic",(function(){return S})),n.d(e,"nextPosition",(function(){return P})),n.d(e,"formId",(function(){return C}));var r=n(1),i=n(5),o=n(25);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var p=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(s,e);var n,r,o,a=c(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return n=s,r=[{key:"connect",value:function(){this.loadStorage(),this.initializeFromStorage(),this.quitCallback=this.submitOnQuit.bind(this),this.updateFullPageTitle(),document.getElementById("close-button").addEventListener("click",this.quitCallback)}},{key:"disconnect",value:function(){document.getElementById("close-button").removeEventListener("click",this.quitCallback)}},{key:"submitOnQuit",value:function(){document.querySelector('[data-type="paperwork"]')&&this.submit(null),localStorage.removeItem("form_".concat(this.idValue))}},{key:"loadStorage",value:function(){var t=this.saved()||this.defaultValue;g(this.idValue,t)}},{key:"saved",value:function(){var t=this.savedValue;if(Object.keys(t).length>0)return t}},{key:"initializeFromStorage",value:function(){var t=this,e=m(this.idValue);this.inputTarget.innerText=e.name,e.to_be_validated&&this.toBeValidatedBoxTarget.setAttribute("checked",""),e.sections.sort((function(t,e){return t.position-e.position})).forEach((function(e){t.addSection(e)})),e.conditional_logics&&e.conditional_logics.forEach((function(e){t.addConditionalLogic(e)})),Object.keys(e.mobilities).forEach((function(t){var n=document.querySelector('[data-mobility="'.concat(t,'"]'));n&&(n.dataset.checked=e.mobilities[t])})),document.querySelector(".spinner").classList.add("hidden")}},{key:"updateFullPageTitle",value:function(){var t=m(this.idValue);document.getElementById("full-page-prefix").innerText=this.element.dataset.fullPagePrefix,document.getElementById("form-resource-name").innerText=": ".concat(t.name)}},{key:"storeTitle",value:function(){var t=m(this.idValue);t.name=this.inputTarget.innerText,g(this.idValue,t),this.updateFullPageTitle()}},{key:"storeEnv",value:function(){var t,e=m(this.idValue),n=(null===(t=document.querySelector("#unit_organization_ids_input"))||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.split(" "))||void 0===t?void 0:t.filter((function(t){return!!t})))||[];e.unit_organization_ids=n,g(this.idValue,e)}},{key:"updateMobility",value:function(t){var e=t.target.parentElement,n="true"==e.dataset.checked,r=e.dataset.mobility;e.dataset.checked=!n;var i=m(this.idValue);i.mobilities[r]=!n,g(this.idValue,i)}},{key:"addConditionalLogic",value:function(t){var e=k(t);document.getElementById("conditional-logic-list").insertAdjacentHTML("beforeend",e)}},{key:"addNewConditionalLogic",value:function(){var t=j(this.idValue);this.addConditionalLogic(t),S(t.id)}},{key:"addSection",value:function(t){var e=this,n=t.id,r=t.title,i=t.description,o=t.position,a=t.iterable,s=w(n,o,r,i,a);this.listTarget.insertAdjacentHTML("beforeend",s);var l=t.paperworks.sort((function(t,e){return t.position-e.position}));l.length>0&&l.forEach((function(t,r){e.addPaperwork(n,t,r)}))}},{key:"addPaperwork",value:function(t,e,n){e.position=e.position||n;var r=y(e);document.querySelector('.section[id="'.concat(t,'"] .nested-sortable')).insertAdjacentHTML("beforeEnd",r)}},{key:"saveOnPage",value:function(t){var e=this,n=t.target,r=n.innerText;document.querySelector('[data-sortable-type="section"]').classList.add("d-none"),document.querySelector(".spinner").classList.remove("hidden"),n.innerHTML='<i class="fas fa-spinner rotating" aria-hidden="true"></i>',this.submit(t,(function(t,i){if(n.innerHTML=r,flash(n.dataset.notice),"new"==e.idValue){var o=e.formResourceUrlValue+"/"+t.id+"/edit";window.history.pushState({},"",o)}document.querySelector('[data-controller="form-resources"]').outerHTML=t.form_html}))}},{key:"submitByNewPaperwork",value:function(t){var e=this.redirectToNewPaperworResourcePage.bind(this);this.submit(t,e)}},{key:"submitByEditPaperwork",value:function(t){var e=this.redirectToEditPaperworResourcePage.bind(this);this.submit(t,e)}},{key:"submit",value:function(t,e){this.storeEnv(),"new"==this.idValue?this.post(t,e):this.patch(t,e)}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=localStorage.getItem("form_new"),r=this.formResourceUrlValue;fetch(r,{headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-Token":Object(i.a)()},method:"POST",body:n}).then((function(t){return t.json()})).then((function(n){e&&e(n,t)})),localStorage.removeItem("form_new")}},{key:"patch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=localStorage.getItem("form_".concat(this.idValue)),r=this.formResourceUrlValue+"/"+this.idValue;fetch(r,{headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-Token":Object(i.a)()},method:"PATCH",body:n}).then((function(t){return t.json()})).then((function(n){e&&e(n,t)}))}},{key:"redirectToNewPaperworResourcePage",value:function(t,e){var n=e.target.closest("[data-type=section][data-position"),r=x(n),i=e.target.closest("[data-type=paperwork][data-position"),o=x(i),a="".concat(r,"-").concat(o),s=this.newPaperworkResourceUrlValue;window.open("".concat(s,"?form_resource=").concat(t.id,"&position=").concat(a),"_self")}},{key:"redirectToEditPaperworResourcePage",value:function(t,e){var n=e.target.closest("[data-type=paperwork][data-position").dataset.paperworkResourceId,r=this.editPaperworkResourceUrlValue.replace("placeholder",n);window.open("".concat(r,"?form_resource=").concat(t.id),"_self")}},{key:"closeForm",value:function(){localStorage.removeItem("form_new"),document.querySelector("#close-button").click()}},{key:"preview",value:function(){allowCloseModalWithBackButton("modal-view"),t("#modal-view").modal("show");var e=document.getElementById("modal-view-content"),n=document.getElementById("template-preview-modal").innerHTML;n=n.replace("{{{name}}}",this.inputTarget.innerHTML),e.innerHTML=n}},{key:"toggleToBeValidated",value:function(t){var e=t.target,n=m(this.idValue);n.to_be_validated=!!e.checked,g(this.idValue,n)}}],r&&l(n.prototype,r),o&&l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),s}(r.Controller);h(p,"values",{id:String,saved:Object,default:Object,formResourceUrl:String,newPaperworkResourceUrl:String,editPaperworkResourceUrl:String}),h(p,"targets",["list","input","toBeValidatedBox"]);var m=function(t){var e=localStorage.getItem("form_".concat(t));return JSON.parse(e)},g=function(t,e){localStorage.setItem("form_".concat(t),JSON.stringify(e))},b=function(t,e){return t.sections.find((function(t){return t.id==e}))},v=function(t,e){return t.paperworks.find((function(t){return t.id==e}))},y=function(t){var e,n=document.getElementById("template-paperwork").innerHTML;return n=n.replaceAll("{{{unit_organization_ids}}}",null===(e=t.unit_organization_ids)||void 0===e?void 0:e.join(" ")),Object.keys(t).forEach((function(e){n=n.replaceAll("{{{".concat(e,"}}}"),t[e])})),n=(n=n.replaceAll("{{{hiddenchecked}}}",O(t.hidden))).replaceAll("{{{mandatorychecked}}}",O(t.mandatory))},w=function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=document.getElementById("template-section").innerHTML;return o=(o=(o=(o=(o=(o=o.replaceAll("{{{id}}}",t)).replaceAll("{{{title}}}",n)).replaceAll("{{{description}}}",r)).replaceAll("{{{position}}}",e)).replaceAll("{{{iterable}}}",i)).replaceAll("{{{iterablechecked}}}",O(i))},k=function(t){var e=document.getElementById("conditional-logic-template").innerHTML;e=(e=(e=e.replace("{{{id}}}",t.id)).replace("{{{position}}}",t.position)).replace("{{{conditionRelation}}}",t.condition_relation);var n=Object(o.b)(e);return n.dataset.conditionalLogicsLogicConditionsValue=JSON.stringify(t.logic_conditions),n.dataset.conditionalLogicsLogicActionsValue=JSON.stringify(t.logic_actions),Object(o.a)(n)},_=function(t){var e=document.getElementById("template-paperwork-modal").innerHTML;return e=e.replaceAll("{{{formResourceId}}}",t)},O=function(t){return 1==t||"true"==t?"checked":""},x=function(t){return t?a(t.parentElement.children).findIndex((function(e){return e==t})):0},E=function(){return"new_"+Date.now()},j=function(t){return{id:E(),logic_conditions:[{id:E(),operator_type:"is",field_id:"",value:"",collection:null}],logic_actions:[{id:E(),operator_type:"show",field_id:""}],condition_relation:"and_relation",position:P(t)}},S=function(t){var e=document.getElementById("conditional-logic-sidebar");e.dataset.highlightType="conditionalLogic",e.dataset.highlightId=t},P=function(t){var e=m(t).conditional_logics.map((function(t){return t.position})).sort((function(t,e){return t-e}));return e[e.length-1]+1},C=function(t){return t.closest("[data-controller=form-resources]").dataset.formResourcesIdValue}}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)}function i(t,e,n){var r=window.document.createElement(t);return e=e||"",n=n||"",r.className=e,void 0!==n&&(r.textContent=n),r}function o(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function a(t,e){return e(t)?t:t.parentNode?a(t.parentNode,e):void 0}function s(t,e){var n=i("div","numInputWrapper"),r=i("input","numInput "+t),o=i("span","arrowUp"),a=i("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==e)for(var s in e)r.setAttribute(s,e[s]);return n.appendChild(r),n.appendChild(o),n.appendChild(a),n}function l(t){try{return"function"===typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}n.d(e,"f",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return l}))},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptFiltersForTabulator",(function(){return m})),n.d(e,"resetColumnFilters",(function(){return g})),n.d(e,"cleanFiltersColors",(function(){return b})),n.d(e,"displayCategoryFilters",(function(){return v})),n.d(e,"hideCategoryFilters",(function(){return y})),n.d(e,"hide",(function(){return w})),n.d(e,"displayPlaceholder",(function(){return k})),n.d(e,"setPagesNumber",(function(){return _})),n.d(e,"toggleColumnFilter",(function(){return O})),n.d(e,"getFilters",(function(){return x})),n.d(e,"activeElements",(function(){return E})),n.d(e,"updateTracksCount",(function(){return j})),n.d(e,"delayRequestFor",(function(){return S})),n.d(e,"filterRequest",(function(){return P})),n.d(e,"cleanPagination",(function(){return T})),n.d(e,"refreshTabulator",(function(){return M}));var r=n(5),i=n(13);function o(t,e){var n,r=new i.b("#tracks",{minHeight:400,responsiveLayout:"collapse",pagination:!0,paginationSize:20,paginationButtonCount:1,movableColumns:!1,placeholder:s(E()),data:t,layout:"fitColumns",paginationElement:document.getElementById("tracks-pagination"),langs:a(),columns:[{field:"organization_ids",visible:!1},{field:"mobility",visible:!1},{field:"status",visible:!1,sorter:function(t,e){return{building:1,pending_invitation:2,upcoming_invitation:3,in_progress:4,cancelled:5,closed:6}[t]-{building:1,pending_invitation:2,upcoming_invitation:3,in_progress:4,cancelled:5,closed:6}[e]}},{field:"collaborator_name",minWidth:380,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,headerClick:l},{title:"",field:"bulk",width:10,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{field:"organization_name",minwidth:200,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,headerClick:l,visible:(n=document.querySelector("[data-organization-name-visible]"),!!n&&"true"==n.dataset.organizationNameVisible)},{field:"status_text",width:200,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,headerClick:l,sorter:function(t,e,n,r,i,o,a){var s=n.getData().status,l=r.getData().status;return{building:1,pending_invitation:2,upcoming_invitation:3,in_progress:4,cancelled:5,closed:6}[s]-{building:1,pending_invitation:2,upcoming_invitation:3,in_progress:4,cancelled:5,closed:6}[l]}},{field:"date",width:120,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,headerClick:l,sorter:function(t,e){return new Date(t)-new Date(e)}},{field:"progress",width:120,responsive:1,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,headerClick:l}],rowFormatter:function(t){var n=t.getData(),r=t.getElement();r.classList.add("margin-vertical-10px","bg-white","medium-border-radius","d-flex","pointer"),r.dataset.controller="desktop--hr--tracks tracking",r.dataset.action="click->desktop--hr--tracks#select click->tracking#track",r.dataset.mobility=n.mobility,r.dataset.trackId=n.id,r.dataset.employeeId=n.employee_id,r.dataset.status=n.status,r.dataset.featFeedback=n.feat_feedback,r.dataset.trackedEvent="Get to boardee profil page",r.dataset.trackedMobility=n.mobility,r.dataset.trackedEmployee_id=n.employee_id,r.dataset.trackedStatus=n.status,r.dataset.trackedSearch=e.query,r.dataset.trackedSub_smartfilter=e.smart_filter,r.dataset.trackedImplication_scope=e.implication_scope,r.dataset.trackedCurrent_sign_in_at=document.getElementById("collaborators-container").dataset.trackedCurrent_sign_in_at,function(t,e){var n={collaborator_name:["image_url","collaborator_name","employee_id","mobility","mobility_text","job_position","collaborator_mobility"],status_text:["status","status_text"],organization_name:["organization_name"],date:["date_text"],progress:["progress"]};Object.keys(n).forEach((function(r){var i=document.getElementById(r).innerHTML;n[r].forEach((function(t){i=i.replace("{{".concat(t,"}}"),function(t){if("string"!==typeof t)return t;return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}(e[t]))})),t.querySelector('[tabulator-field="'.concat(r,'"]')).innerHTML=i}))}(r,n)}});r.setFilter(m(e.column_filters));var o=document.getElementById("locale").dataset.locale,c=function(){var t=JSON.parse(document.getElementById("filters").dataset.filters);t.sorting.length>1&&""!==t.smart_filter&&(document.getElementById("filters").dataset.filters=JSON.stringify(t));return t.sorting}();setTimeout((function(){r.setLocale("".concat(o,"-").concat(o)),r.setSort(c),1==c.length&&u(c[0].column.element),j()}),100),document.getElementById("selects").addEventListener("click",(function(t){var e=document.querySelector(".tabulator-placeholder-contents");if(e){var n=s(E());i.b.findTable("#tracks")[0].options.placeholder=n,e.innerHTML=n}}))}function a(){var t=document.getElementById("locale"),e=t.dataset.locale,n={};return n["".concat(e,"-").concat(e)]={columns:{collaborator_name:t.dataset.collaboratorColumn,organization_name:t.dataset.organizationColumn,status_text:t.dataset.statusColumn,date:t.dataset.dateColumn,progress:t.dataset.progressColumn},pagination:{first:t.dataset.firstPage,last:t.dataset.lastPage,prev:t.dataset.prevPage,next:t.dataset.nextPage}},n}function s(t){var e=[t.scope,t.search,t.smartFilters||t.columnFilters].map((function(t){return t?"1":"0"})).join("");return document.querySelector('[data-code="'.concat(e,'"]')).innerHTML}function l(t,e){u(t.target.parentElement);var n=JSON.parse(document.getElementById("filters").dataset.filters),r=e.getElement(),i=[{column:r.getAttribute("tabulator-field"),dir:r.getAttribute("aria-sort")}];n.sorting=i,document.getElementById("filters").dataset.filters=JSON.stringify(n)}function u(t){document.querySelectorAll(".tabulator-arrow").forEach((function(t){return t.style.display="none"})),t.querySelector(".tabulator-arrow").style.display="block"}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t){return[{field:"mobility",type:"in",value:t.mobility},{field:"date",type:"in",value:t.date},{field:"status",type:"in",value:t.status},{field:"organization_ids",type:"in",value:t.organization_ids}]}function g(){var t=["status","date"];document.querySelector('[data-controller="desktop--hr--filters--mobility-filter"]')&&t.unshift("mobility"),document.querySelector('[data-controller="desktop--hr--filters--organization-filter"]')&&t.unshift("organization_ids"),t.forEach((function(t){var e=JSON.parse(document.getElementById("filters").dataset.filters).column_filters[t];"date"==t?f(document.querySelectorAll('[name="dateChoice"]')).forEach((function(t){return t.checked=!1})):e.forEach((function(t){return document.getElementById(t+"-check").classList.remove("d-none")}))})),f(document.querySelectorAll(".select-opened")).forEach((function(t){t.classList.toggle("select-opened"),t.classList.toggle("select-closed")})),f(document.querySelectorAll(".select.active")).forEach((function(t){t.classList.remove("active"),t.querySelector(".fal").classList.remove("fa-times"),t.querySelector(".fal").classList.add("fa-chevron-down")})),f(document.querySelectorAll(".menu-opened")).forEach((function(t){t.classList.toggle("menu-closed"),t.classList.toggle("menu-opened")}))}function b(){f(document.querySelectorAll("[data-desktop--hr--filters--smart-filters-target]")).forEach((function(t){return t.classList.remove("active")}))}function v(t){var e;document.querySelectorAll(".subfilter-category").forEach((function(t){return w(t)})),(e=document.getElementById(t)).classList.remove("d-none"),e.classList.add("d-flex")}function y(){document.querySelectorAll(".subfilter-category").forEach((function(t){return w(t)})),f(document.querySelectorAll(".subfilter")).forEach((function(t){return t.classList.remove("active")}))}function w(t){t.classList.remove("d-flex"),t.classList.add("d-none")}function k(){document.getElementById("tracks").outerHTML='<div id="tracks"></div>',document.getElementById("tracks").innerHTML=document.getElementById("placeholder").innerHTML}function _(){if(document.querySelector(".tabulator-page.active"))if(document.getElementById("tracks-pagination-counter").classList.add("d-flex"),document.getElementById("tracks-pagination-counter").classList.remove("d-none"),document.querySelector(".tabulator-row")){var t=20*(+document.querySelector(".tabulator-page.active").dataset.page-1)+1,e=t+document.querySelectorAll(".tabulator-row").length-1;document.getElementById("current-first").innerText=t,document.getElementById("current-second").innerText=e}else document.getElementById("tracks-pagination-counter").classList.remove("d-flex"),document.getElementById("tracks-pagination-counter").classList.add("d-none")}function O(t,e){var n;(n=t).classList.toggle("select-opened"),n.classList.toggle("select-closed"),function(t){t.classList.toggle("menu-closed"),t.classList.toggle("menu-opened")}(e),function(t){var e=t.querySelector(".fa-chevron-up");if(e)e.classList.remove("fa-chevron-up"),e.classList.add("fa-chevron-down");else{var n=t.querySelector(".fa-chevron-down");n&&(n.classList.remove("fa-chevron-down"),n.classList.add("fa-chevron-up"))}}(t)}function x(){var t;return JSON.parse((null===(t=document.getElementById("filters"))||void 0===t?void 0:t.dataset.filters)||"{}")}function E(){var t=x(),e=f(document.querySelectorAll("[data-desktop--hr--filters--smart-filters-target].smart-filter")),n=f(document.querySelectorAll("#selects .select")),r=e.some((function(t){return t.classList.contains("active")})),i=n.some((function(t){return t.classList.contains("active")}));return{scope:document.querySelector(".switch-label")&&t.implication_scope,search:""!==t.query.trim(),smartFilters:r,columnFilters:i}}function j(){var t=Tabulator.findTable("#tracks")[0].getData("active").length,e=document.getElementById("tracks-count"),n=document.getElementById("tracks-label"),r=document.getElementById("tracks-page-count"),i=document.getElementById("tracks-page-label"),o=n.dataset.plural;t<=1&&(o=n.dataset.singular),e.innerText=t,n.innerText=o,r.innerText=t,i.innerText=o}function S(t){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"medium"){case"big":document.getElementById("collaborators-container").dataset[t]=1e3;break;case"medium":document.getElementById("collaborators-container").dataset[t]=500;break;case"small":document.getElementById("collaborators-container").dataset[t]=200}}function P(){var t=document.getElementById("collaborators-container").dataset.url;fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":Object(r.a)()},body:JSON.stringify(d(d({},x()),{},{locale:document.getElementById("locale").dataset.locale}))}).then((function(t){return t.json()})).then((function(t){var e=t.data,n=x(),r=window.scrollY;document.getElementById("tracks").outerHTML='<div id="tracks"></div>',o(e,n),window.scrollTo({top:r}),T(),C()}))}function C(){setTimeout((function(){_(),f(document.querySelectorAll(".tabulator-page")).forEach((function(t){t.addEventListener("click",(function(t){_(),C()}))}))}),200)}function T(){document.getElementById("tracks-pagination").innerHTML=""}function M(){var t=Tabulator.findTable("#tracks")[0];t.setData(t.getData())}window.Tabulator=i.b},function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return s}));var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Tabulator.findTable("#".concat(t))[0],r=null!==e&&void 0!==e?e:n.getData("active").length,i=document.getElementById("".concat(t,"-label")),o=r<=1?i.dataset.singular:i.dataset.plural;document.getElementById("".concat(t,"-count")).innerText=r,document.getElementById("".concat(t,"-label")).innerText=o},i=function(){return document.querySelector('[data-code="no_resources_loaded"]').innerHTML},o=function(t){return"string"!==typeof t?t:t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},a=function(t,e,n){var r=e&&1==n?"d-block":"d-none",i=e&&n>1?"d-block":"d-none";return t=(t=(t=t.replaceAll("{{unscoped_unit_organization_display}}",r)).replaceAll("{{unscoped_unit_organizations_display}}",i)).replaceAll("{{unscoped_unit_organizations_count}}",n)},s=function(t,e,n,r,i,o,a){var s=n.getData().full_unit_organization_count,l=r.getData().full_unit_organization_count;return 1===s&&1===l?r.getData().unit_organization_names.localeCompare(n.getData().unit_organization_names):s-l}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(1);const i=(t,e,n)=>{let r=t;return!0===n?r=`${e.identifier}:${t}`:"string"===typeof n&&(r=`${n}:${t}`),r},o=(t,e,n)=>{const r=e||{bubbles:!0,cancelable:!0,composed:!0},i=r.bubbles,o=r.cancelable,a=r.composed;e&&Object.assign(n,{originalEvent:e});return new CustomEvent(t,{bubbles:i,cancelable:o,composed:a,detail:n})};console;r.Controller;const a={events:["click","touchend"],onlyVisible:!0,dispatchEvent:!0,eventPrefix:!0},s=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t,r=Object.assign({},a,e),s=r.onlyVisible,l=r.dispatchEvent,u=r.events,c=r.eventPrefix,d=t=>{const r=(null===e||void 0===e?void 0:e.element)||n.element;if(!(r.contains(t.target)||!function(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=e.top<=n&&e.top+e.height>0,o=e.left<=r&&e.left+e.width>0;return i&&o}(r)&&s)&&(n.clickOutside&&n.clickOutside(t),l)){const e=i("click:outside",n,c),a=o(e,t,{controller:n});r.dispatchEvent(a)}},h=()=>{null===u||void 0===u||u.forEach((t=>{window.addEventListener(t,d,!0)}))},f=()=>{null===u||void 0===u||u.forEach((t=>{window.removeEventListener(t,d,!0)}))},p=n.disconnect.bind(n);return Object.assign(n,{disconnect(){f(),p()}}),h(),[h,f]};r.Controller;class l extends r.Controller{}l.debounces=[];r.Controller;r.Controller;r.Controller;r.Controller;r.Controller;r.Controller;r.Controller;class u extends r.Controller{}u.throttles=[];r.Controller;r.Controller;r.Controller;r.Controller},function(t,e,n){"use strict";n.r(e),n.d(e,"applyFormResourcesFilters",(function(){return i})),n.d(e,"applyFormsFilters",(function(){return o})),n.d(e,"buildInitialFilter",(function(){return a})),n.d(e,"applyActionsFilters",(function(){return s})),n.d(e,"applyTemplatesFilters",(function(){return l})),n.d(e,"applyResourcesFilters",(function(){return u})),n.d(e,"loadResourceFilters",(function(){return c})),n.d(e,"applyEmployeesFilters",(function(){return d})),n.d(e,"employeesInitialFilter",(function(){return h}));var r=n(9);function i(){var t=Tabulator.findTable("#form_resources")[0],e=localStorage.getItem("form_resources_templates"),n=["none"];e&&(n=JSON.parse(e)).push("none");var i=localStorage.getItem("form_resources_environments"),o=["none"];i&&(o=JSON.parse(i)).push("none");var a=[{field:"name",type:"like",value:String(p("form_resources_query")).trim()||""},{field:"mobilities",type:"keywords",value:p("form_resources_mobilities").join(" ")}];t.setFilter(a),i&&t.addFilter(g,{unit_organization_ids:o}),t.addFilter(m,{template_ids:n}),Object(r.e)("form_resources")}function o(){var t=Tabulator.findTable("#forms")[0],e=this.buildInitialFilter();t.setFilter(e),Object(r.e)("forms")}function a(){var t=p("forms_environments"),e=p("forms_form_statuses"),n=p("forms_dates"),r=p("forms_query")||"",i=0===p("my_forms_switch").length||p("my_forms_switch");return[{field:"environment_id",type:"in",value:t.filter((function(t){return Number(t)})).map(Number)},{field:"status_key",type:"in",value:e},{field:"date",type:"in",value:n},{field:"collaborator_full_name",type:"like",value:String(r).trim(),matchAll:!0},{field:"my_forms",type:"in",value:i}]}function s(){var t,e=Tabulator.findTable("#actions")[0],n=localStorage.getItem("actions_types"),i=localStorage.getItem("actions_employee-names"),o=p("actions_dates"),a=["none"],s=["none"],l=[];n&&(a=JSON.parse(n)),i&&(s=JSON.parse(i)),o.length>0&&(l=o.map((function(t){return moment(t,"YYYY-MM-DD").format("DD/MM/YYYY")})));var u=[{field:"type",type:"in",value:a},{field:"collaborator_name",type:"in",value:s},{field:"due_date",type:"in",value:l}];e.setFilter(u),Object(r.e)("actions"),null===(t=document.querySelector("[data-action='click->tabulator-bulk-selection#uncheckAll']"))||void 0===t||t.click()}function l(){var t=Tabulator.findTable("#templates")[0],e=[{field:"name",type:"like",value:String(p("templates_query")).trim()||""},{field:"mobility",type:"in",value:p("templates_mobilities")}];if(t.environment){var n=localStorage.getItem("templates_environments"),r=["none"];n&&(r=JSON.parse(n)).push("none"),e.push({field:g,type:{unit_organization_ids:r}})}t.setFilter(e)}function u(){Tabulator.findTable("#resources")[0].setFilter(c()),Object(r.e)("resources")}function c(){var t=localStorage.getItem("resources_templates"),e=["none"];t&&(e=JSON.parse(t)).push("none");var n=localStorage.getItem("resources_environments"),r=["none"];n&&(r=JSON.parse(n)).push("none");var i=[{field:"name",type:"like",value:String(p("resources_query")).trim()||""},{field:"resource_type",type:"in",value:p("resources_types")},{field:"mobilities",type:"keywords",value:p("resources_mobilities").join(" ")}];return i.push({field:m,type:{template_ids:e},value:""}),n&&i.push({field:g,type:{unit_organization_ids:r},value:""}),i}function d(){Tabulator.findTable("#employees")[0].setFilter(h()),Object(r.e)("employees")}function h(){var t=p("employees_environments"),e=p("employees_organizations"),n=p("employees_roles"),r=p("employees_query")||"",i=[{field:"environment_id",type:"in",value:t.filter((function(t){return Number(t)})).map(Number)},{field:"organization_name",type:"in",value:e},{field:"role_name",type:"in",value:n}];return""!=r&&i.push({field:f,type:r,value:void 0}),i}var f=function(t,e){var n=String(e).trim();return["employee_name","employee_email","employee_id","employee_external_id","job_position"].map((function(e){var r;return null===(r=t[e])||void 0===r?void 0:r.toLowerCase().includes(n.toLowerCase())})).includes(!0)},p=function(t){var e,n=localStorage.getItem(t);if(n||""==n)if("string"===typeof n)try{0==(e=JSON.parse(n)).length&&(e=[]),0!=e.length||t.includes("date")||e.push("none")}catch(r){e=n}else e=n;else e=[];return e};function m(t,e){var n=t.template_ids;0==n.length&&(n=[0]);var r=e.template_ids.map(Number);return n.some((function(t){return r.includes(t)}))}function g(t,e){var n=t.unit_organization_ids;0==n.length&&(n=[0]);var r=e.unit_organization_ids.map(Number);return n.some((function(t){return r.includes(t)}))}},function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},i=function(t){return!0===t?1:0};function o(t,e){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){return t.apply(r,i)}),e)}}var a=function(t){return t instanceof Array?t:[t]}},function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return Jt})),n.d(e,"b",(function(){return Kt}));class o{constructor(t){this.table=t}reloadData(t,e,n){return this.table.dataLoader.load(t,void 0,void 0,void 0,e,n)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(t){return this.table.modules.layout.layout(t)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(t){return this.table.eventBus.subscribed(t)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(t){return this.table.externalEvents.subscribed(t)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(t){return this.table.options[t]}setOption(t,e){return"undefined"!==typeof e&&(this.table.options[t]=e),this.table.options[t]}deprecationCheck(t,e,n){return this.table.deprecationAdvisor.check(t,e,n)}deprecationCheckMsg(t,e){return this.table.deprecationAdvisor.checkMsg(t,e)}deprecationMsg(t){return this.table.deprecationAdvisor.msg(t)}module(t){return this.table.module(t)}}class a{static elVisible(t){return!(t.offsetWidth<=0&&t.offsetHeight<=0)}static elOffset(t){var e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset-document.documentElement.clientTop,left:e.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(t,e,n){var r,i=t?e.split(t):[e],o=i.length;for(let a=0;a<o&&(r=n=n[i[a]],n);a++);return r}static deepClone(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];var r={}.__proto__,i=[].__proto__;for(var o in e||(e=Object.assign(Array.isArray(t)?[]:{},t)),t){let a,s,l=t[o];null==l||"object"!==typeof l||l.__proto__!==r&&l.__proto__!==i||(a=n.findIndex((t=>t.subject===l)),a>-1?e[o]=n[a].copy:(s=Object.assign(Array.isArray(l)?[]:{},l),n.unshift({subject:l,copy:s}),e[o]=this.deepClone(l,s,n)))}return e}}class s extends o{constructor(t,e,n){super(t),this.element=e,this.container=this._lookupContainer(),this.parent=n,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var t=this.table.options.popupContainer;return"string"===typeof t?(t=document.querySelector(t))||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)"):!0===t&&(t=this.table.element),t&&!this._checkContainerIsParent(t)&&(t=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),t||(t=document.body),t}_checkContainerIsParent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.table.element;return t===e||!!e.parentNode&&this._checkContainerIsParent(t,e.parentNode)}renderCallback(t){this.renderedCallback=t}containerEventCoords(t){var e=!(t instanceof MouseEvent),n=e?t.touches[0].pageX:t.pageX,r=e?t.touches[0].pageY:t.pageY;if(this.container!==document.body){let t=a.elOffset(this.container);n-=t.left,r-=t.top}return{x:n,y:r}}elementPositionCoords(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";var n,r,i,o=a.elOffset(t);switch(this.container!==document.body&&(n=a.elOffset(this.container),o.left-=n.left,o.top-=n.top),e){case"right":r=o.left+t.offsetWidth,i=o.top-1;break;case"bottom":r=o.left,i=o.top+t.offsetHeight;break;case"left":r=o.left,i=o.top-1;break;case"top":r=o.left,i=o.top;break;case"center":r=o.left+t.offsetWidth/2,i=o.top+t.offsetHeight/2}return{x:r,y:i,offset:o}}show(t,e){var n,r,i,o,a;return this.destroyed||this.table.destroyed||(t instanceof HTMLElement?(i=t,o=(a=this.elementPositionCoords(t,e)).offset,n=a.x,r=a.y):"number"===typeof t?(o={top:0,left:0},n=t,r=e):(n=(a=this.containerEventCoords(t)).x,r=a.y,this.reversedX=!1),this.element.style.top=r+"px",this.element.style.left=n+"px",this.container.appendChild(this.element),"function"===typeof this.renderedCallback&&this.renderedCallback(),this._fitToScreen(n,r,i,o,e),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",(t=>{t.stopPropagation()}))),this}_fitToScreen(t,e,n,r,i){var o=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;if((t+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",this.element.style.right=n?this.container.offsetWidth-r.left+"px":this.container.offsetWidth-t+"px",this.reversedX=!0),e+this.element.offsetHeight>Math.max(this.container.offsetHeight,o?this.container.scrollHeight:0))if(n)if("bottom"===i)this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-n.offsetHeight-1+"px";else this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+n.offsetHeight+1+"px";else this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+"px"}isVisible(){return this.visible}hideOnBlur(t){return this.blurable=!0,this.visible&&(setTimeout((()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)}),100),this.blurCallback=t),this}_escapeCheck(t){27==t.keyCode&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!t&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(t){return this.childPopup&&this.childPopup.hide(),this.childPopup=new s(this.table,t,this),this.childPopup}}class l extends o{constructor(t,e){super(t),this._handler=null}initialize(){}registerTableOption(t,e){this.table.optionsList.register(t,e)}registerColumnOption(t,e){this.table.columnManager.optionsList.register(t,e)}registerTableFunction(t,e){var n=this;"undefined"===typeof this.table[t]?this.table[t]=function(){return n.table.initGuard(t),e(...arguments)}:console.warn("Unable to bind table function, name already in use",t)}registerComponentFunction(t,e,n){return this.table.componentFunctionBinder.bind(t,e,n)}registerDataHandler(t,e){this.table.rowManager.registerDataPipelineHandler(t,e),this._handler=t}registerDisplayHandler(t,e){this.table.rowManager.registerDisplayPipelineHandler(t,e),this._handler=t}displayRows(t){var e,n=this.table.rowManager.displayRows.length-1;if(this._handler&&(e=this.table.rowManager.displayPipeline.findIndex((t=>t.handler===this._handler)))>-1&&(n=e),t&&(n+=t),this._handler)return n>-1?this.table.rowManager.getDisplayRows(n):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(t,e){e||(e=this._handler),e&&this.table.rowManager.refreshActiveData(e,!1,t)}footerAppend(t){return this.table.footerManager.append(t)}footerPrepend(t){return this.table.footerManager.prepend(t)}footerRemove(t){return this.table.footerManager.remove(t)}popup(t,e){return new s(this.table,t,e)}alert(t,e){return this.table.alertManager.alert(t,e)}clearAlert(){return this.table.alertManager.clear()}}class u extends l{constructor(t){super(t),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(t){var e=!1,n={};this.allowedTypes.forEach((r=>{var i,o="accessor"+(r.charAt(0).toUpperCase()+r.slice(1));t.definition[o]&&(i=this.lookupAccessor(t.definition[o]))&&(e=!0,n[o]={accessor:i,params:t.definition[o+"Params"]||{}})})),e&&(t.modules.accessor=n)}lookupAccessor(t){var e=!1;switch(typeof t){case"string":u.accessors[t]?e=u.accessors[t]:console.warn("Accessor Error - No such accessor found, ignoring: ",t);break;case"function":e=t}return e}transformRow(t,e){var n="accessor"+(e.charAt(0).toUpperCase()+e.slice(1)),r=t.getComponent(),i=a.deepClone(t.data||{});return this.table.columnManager.traverse((function(t){var o,a,s,l;t.modules.accessor&&(a=t.modules.accessor[n]||t.modules.accessor.accessor||!1)&&"undefined"!=(o=t.getFieldValue(i))&&(l=t.getComponent(),s="function"===typeof a.params?a.params(o,i,e,l,r):a.params,t.setFieldValue(i,a.accessor(o,i,e,s,l,r)))})),i}}u.moduleName="accessor",u.accessors={};function c(t,e){var n=[];if(e=e||"",Array.isArray(t))t.forEach(((t,r)=>{n=n.concat(c(t,e?e+"["+r+"]":r))}));else if("object"===typeof t)for(var r in t)n=n.concat(c(t[r],e?e+"["+r+"]":r));else n.push({key:e,value:t});return n}function d(t){var e=c(t),n=[];return e.forEach((function(t){n.push(encodeURIComponent(t.key)+"="+encodeURIComponent(t.value))})),n.join("&")}function h(t,e,n){return t&&n&&Object.keys(n).length&&(e.method&&"get"!=e.method.toLowerCase()||(e.method="get",t+=(t.includes("?")?"&":"?")+d(n))),t}function f(t,e){var n=[];if(e=e||"",Array.isArray(t))t.forEach(((t,r)=>{n=n.concat(f(t,e?e+"["+r+"]":r))}));else if("object"===typeof t)for(var r in t)n=n.concat(f(t[r],e?e+"["+r+"]":r));else n.push({key:e,value:t});return n}var p={json:{headers:{"Content-Type":"application/json"},body:function(t,e,n){return JSON.stringify(n)}},form:{headers:{},body:function(t,e,n){var r=f(n),i=new FormData;return r.forEach((function(t){i.append(t.key,t.value)})),i}}};class m extends l{constructor(t){super(t),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",(function(){})),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=m.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||m.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||m.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(t,e,n,r){var i=this.table.options.ajaxParams;return i&&("function"===typeof i&&(i=i.call(this.table)),r=Object.assign(Object.assign({},i),r)),r}requestDataCheck(t,e,n,r){return!((t||!this.url)&&"string"!==typeof t)}requestData(t,e,n,r,i){var o;return!i&&this.requestDataCheck(t)?(t&&this.setUrl(t),o=this.generateConfig(n),this.sendRequest(this.url,e,o)):i}setDefaultConfig(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=Object.assign({},m.defaultConfig),"string"==typeof t?this.config.method=t:Object.assign(this.config,t)}generateConfig(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var e=Object.assign({},this.config);return"string"==typeof t?e.method=t:Object.assign(e,t),e}setUrl(t){this.url=t}getUrl(){return this.url}sendRequest(t,e,n){return!1!==this.table.options.ajaxRequesting.call(this.table,t,e)?this.loaderPromise(t,n,e).then((n=>(this.table.options.ajaxResponse&&(n=this.table.options.ajaxResponse.call(this.table,t,e,n)),n))):Promise.reject()}}m.moduleName="ajax",m.defaultConfig={method:"GET"},m.defaultURLGenerator=h,m.defaultLoaderPromise=function(t,e,n){var r;return new Promise(((i,o)=>{if(t=this.urlGenerator.call(this.table,t,e,n),"GET"!=e.method.toUpperCase())if(r="object"===typeof this.table.options.ajaxContentType?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType]){for(var a in r.headers)e.headers||(e.headers={}),"undefined"===typeof e.headers[a]&&(e.headers[a]=r.headers[a]);e.body=r.body.call(this,t,e,n)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);t?("undefined"===typeof e.headers&&(e.headers={}),"undefined"===typeof e.headers.Accept&&(e.headers.Accept="application/json"),"undefined"===typeof e.headers["X-Requested-With"]&&(e.headers["X-Requested-With"]="XMLHttpRequest"),"undefined"===typeof e.mode&&(e.mode="cors"),"cors"==e.mode?("undefined"===typeof e.headers.Origin&&(e.headers.Origin=window.location.origin),"undefined"===typeof e.credentials&&(e.credentials="same-origin")):"undefined"===typeof e.credentials&&(e.credentials="include"),fetch(t,e).then((t=>{t.ok?t.json().then((t=>{i(t)})).catch((t=>{o(t),console.warn("Ajax Load Error - Invalid JSON returned",t)})):(console.error("Ajax Load Error - Connection Error: "+t.status,t.statusText),o(t))})).catch((t=>{console.error("Ajax Load Error - Connection Error: ",t),o(t)}))):(console.warn("Ajax Load Error - No URL Set"),i([]))}))},m.contentTypeFormatters=p;class g extends l{constructor(t){super(t),this.mode=!0,this.pasteParser=function(){},this.pasteAction=function(){},this.customSelection=!1,this.rowRange=!1,this.blocked=!0,this.registerTableOption("clipboard",!1),this.registerTableOption("clipboardCopyStyled",!0),this.registerTableOption("clipboardCopyConfig",!1),this.registerTableOption("clipboardCopyFormatter",!1),this.registerTableOption("clipboardCopyRowRange","active"),this.registerTableOption("clipboardPasteParser","table"),this.registerTableOption("clipboardPasteAction","insert"),this.registerColumnOption("clipboard"),this.registerColumnOption("titleClipboard")}initialize(){this.mode=this.table.options.clipboard,this.rowRange=this.table.options.clipboardCopyRowRange,!0!==this.mode&&"copy"!==this.mode||this.table.element.addEventListener("copy",(t=>{var e,n,r;this.blocked||(t.preventDefault(),this.customSelection?(e=this.customSelection,this.table.options.clipboardCopyFormatter&&(e=this.table.options.clipboardCopyFormatter("plain",e))):(r=this.table.modules.export.generateExportList(this.table.options.clipboardCopyConfig,this.table.options.clipboardCopyStyled,this.rowRange,"clipboard"),e=(n=this.table.modules.export.generateHTMLTable(r))?this.generatePlainContent(r):"",this.table.options.clipboardCopyFormatter&&(e=this.table.options.clipboardCopyFormatter("plain",e),n=this.table.options.clipboardCopyFormatter("html",n))),window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",e):t.clipboardData&&t.clipboardData.setData?(t.clipboardData.setData("text/plain",e),n&&t.clipboardData.setData("text/html",n)):t.originalEvent&&t.originalEvent.clipboardData.setData&&(t.originalEvent.clipboardData.setData("text/plain",e),n&&t.originalEvent.clipboardData.setData("text/html",n)),this.dispatchExternal("clipboardCopied",e,n),this.reset())})),!0!==this.mode&&"paste"!==this.mode||this.table.element.addEventListener("paste",(t=>{this.paste(t)})),this.setPasteParser(this.table.options.clipboardPasteParser),this.setPasteAction(this.table.options.clipboardPasteAction),this.registerTableFunction("copyToClipboard",this.copy.bind(this))}reset(){this.blocked=!0,this.customSelection=!1}generatePlainContent(t){var e=[];return t.forEach((t=>{var n=[];t.columns.forEach((e=>{var r="";if(e)if("group"===t.type&&(e.value=e.component.getKey()),null===e.value)r="";else switch(typeof e.value){case"object":r=JSON.stringify(e.value);break;case"undefined":r="";break;default:r=e.value}n.push(r)})),e.push(n.join("\t"))})),e.join("\n")}copy(t,e){var n,r;this.blocked=!1,this.customSelection=!1,!0!==this.mode&&"copy"!==this.mode||(this.rowRange=t||this.table.options.clipboardCopyRowRange,"undefined"!=typeof window.getSelection&&"undefined"!=typeof document.createRange?((t=document.createRange()).selectNodeContents(this.table.element),(n=window.getSelection()).toString()&&e&&(this.customSelection=n.toString()),n.removeAllRanges(),n.addRange(t)):"undefined"!=typeof document.selection&&"undefined"!=typeof document.body.createTextRange&&((r=document.body.createTextRange()).moveToElementText(this.table.element),r.select()),document.execCommand("copy"),n&&n.removeAllRanges())}setPasteAction(t){switch(typeof t){case"string":this.pasteAction=g.pasteActions[t],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",t);break;case"function":this.pasteAction=t}}setPasteParser(t){switch(typeof t){case"string":this.pasteParser=g.pasteParsers[t],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",t);break;case"function":this.pasteParser=t}}paste(t){var e,n,r;this.checkPasteOrigin(t)&&(e=this.getPasteData(t),(n=this.pasteParser.call(this,e))?(t.preventDefault(),this.table.modExists("mutator")&&(n=this.mutateData(n)),r=this.pasteAction.call(this,n),this.dispatchExternal("clipboardPasted",e,n,r)):this.dispatchExternal("clipboardPasteError",e))}mutateData(t){var e=[];return Array.isArray(t)?t.forEach((t=>{e.push(this.table.modules.mutator.transformRow(t,"clipboard"))})):e=t,e}checkPasteOrigin(t){var e=!0;return!this.confirm("clipboard-paste",[t])&&["DIV","SPAN"].includes(t.target.tagName)||(e=!1),e}getPasteData(t){var e;return window.clipboardData&&window.clipboardData.getData?e=window.clipboardData.getData("Text"):t.clipboardData&&t.clipboardData.getData?e=t.clipboardData.getData("text/plain"):t.originalEvent&&t.originalEvent.clipboardData.getData&&(e=t.originalEvent.clipboardData.getData("text/plain")),e}}g.moduleName="clipboard",g.pasteActions={replace:function(t){return this.table.setData(t)},update:function(t){return this.table.updateOrAddData(t)},insert:function(t){return this.table.addData(t)},range:function(t){var e,n,r,i,o,a=[],s=this.table.modules.selectRange.activeRange,l=!1;return o=t.length,s&&(n=(e=s.getBounds()).start,e.start===e.end&&(l=!0),n&&(r=(a=this.table.rowManager.activeRows.slice()).indexOf(n.row),i=l?t.length:a.indexOf(e.end.row)-r+1,r>-1&&(this.table.blockRedraw(),(a=a.slice(r,r+i)).forEach(((e,n)=>{e.updateData(t[n%o])})),this.table.restoreRedraw()))),a}},g.pasteParsers={table:function(t){var e=[],n=!0,r=this.table.columnManager.columns,i=[],o=[];return(t=t.split("\n")).forEach((function(t){e.push(t.split("\t"))})),!(!e.length||1===e.length&&e[0].length<2)&&(e[0].forEach((function(t){var e=r.find((function(e){return t&&e.definition.title&&t.trim()&&e.definition.title.trim()===t.trim()}));e?i.push(e):n=!1})),n||(n=!0,i=[],e[0].forEach((function(t){var e=r.find((function(e){return t&&e.field&&t.trim()&&e.field.trim()===t.trim()}));e?i.push(e):n=!1})),n||(i=this.table.columnManager.columnsByIndex)),n&&e.shift(),e.forEach((function(t){var e={};t.forEach((function(t,n){i[n]&&(e[i[n].field]=t)})),o.push(e)})),o)},range:function(t){var e,n,r,i,o,a=[],s=[],l=this.table.modules.selectRange.activeRange,u=!1;return!!(l&&(n=(e=l.getBounds()).start,e.start===e.end&&(u=!0),n&&((t=t.split("\n")).forEach((function(t){a.push(t.split("\t"))})),a.length&&(o=(i=this.table.columnManager.getVisibleColumnsByIndex()).indexOf(n.column))>-1)))&&(r=u?a[0].length:i.indexOf(e.end.column)-o+1,i=i.slice(o,o+r),a.forEach((t=>{var e={},n=t.length;i.forEach((function(r,i){e[r.field]=t[i%n]})),s.push(e)})),s)}};class b{constructor(t){return this._row=t,new Proxy(this,{get:function(t,e,n){return"undefined"!==typeof t[e]?t[e]:t._row.table.componentFunctionBinder.handle("row",t._row,e)}})}getData(t){return this._row.getData(t)}getElement(){return this._row.getElement()}getTable(){return this._row.table}getCells(){var t=[];return this._row.getCells().forEach((function(e){t.push(e.getComponent())})),t}getCell(t){var e=this._row.getCell(t);return!!e&&e.getComponent()}_getSelf(){return this._row}}class v{constructor(t){return this._cell=t,new Proxy(this,{get:function(t,e,n){return"undefined"!==typeof t[e]?t[e]:t._cell.table.componentFunctionBinder.handle("cell",t._cell,e)}})}getValue(){return this._cell.getValue()}getOldValue(){return this._cell.getOldValue()}getInitialValue(){return this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return this._cell.row.getComponent()}getData(t){return this._cell.row.getData(t)}getType(){return"cell"}getField(){return this._cell.column.getField()}getColumn(){return this._cell.column.getComponent()}setValue(t,e){"undefined"==typeof e&&(e=!0),this._cell.setValue(t,e)}restoreOldValue(){this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue(){this._cell.setValueActual(this._cell.initialValue)}checkHeight(){this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return this._cell}}class y extends o{constructor(t,e){super(t.table),this.table=t.table,this.column=t,this.row=e,this.element=null,this.value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()}build(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateElement(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell")}_configureCell(){var t=this.element,e=this.column.getField();(t.style.textAlign=this.column.hozAlign,this.column.vertAlign&&(t.style.display="inline-flex",t.style.alignItems={top:"flex-start",bottom:"flex-end",middle:"center"}[this.column.vertAlign]||"",this.column.hozAlign&&(t.style.justifyContent={left:"flex-start",right:"flex-end",center:"center"}[this.column.hozAlign]||"")),e&&t.setAttribute("tabulator-field",e),this.column.definition.cssClass)&&this.column.definition.cssClass.split(" ").forEach((e=>{t.classList.add(e)}));this.dispatch("cell-init",this),this.column.visible||this.hide()}_generateContents(){var t;switch(typeof(t=this.chain("cell-format",this,null,(()=>this.element.innerHTML=this.value)))){case"object":if(t instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(t)}else this.element.innerHTML="",null!=t&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",t);break;case"undefined":this.element.innerHTML="";break;default:this.element.innerHTML=t}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(t){return this.loaded||(this.loaded=!0,t||this.layoutElement()),this.element}getValue(){return this.value}getOldValue(){return this.oldValue}setValue(t,e,n){this.setValueProcessData(t,e,n)&&(this.dispatch("cell-value-updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.definition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("cellEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(t,e,n){var r=!1;return(this.value!==t||n)&&(r=!0,e&&(t=this.chain("cell-value-changing",[this,t],null,t))),this.setValueActual(t),r&&this.dispatch("cell-value-changed",this),r}setValueActual(t){this.oldValue=this.value,this.value=t,this.dispatch("cell-value-save-before",this),this.column.setFieldValue(this.row.data,t),this.dispatch("cell-value-save-after",this),this.loaded&&this.layoutElement()}layoutElement(){this._generateContents(),this.dispatch("cell-layout",this)}setWidth(){this.width=this.column.width,this.element.style.width=this.column.widthStyled}clearWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||this.element.offsetWidth}setMinWidth(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled}setMaxWidth(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight(){this.element.style.height="",this.height=null,this.dispatch("cell-height",this,"")}setHeight(){this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.dispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||this.element.offsetHeight}show(){this.element.style.display=this.column.vertAlign?"inline-flex":""}hide(){this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex(){return this.row.getCellIndex(this)}getComponent(){return this.component||(this.component=new v(this)),this.component}}class w{constructor(t){return this._column=t,this.type="ColumnComponent",new Proxy(this,{get:function(t,e,n){return"undefined"!==typeof t[e]?t[e]:t._column.table.componentFunctionBinder.handle("column",t._column,e)}})}getElement(){return this._column.getElement()}getDefinition(){return this._column.getDefinition()}getField(){return this._column.getField()}getTitleDownload(){return this._column.getTitleDownload()}getCells(){var t=[];return this._column.cells.forEach((function(e){t.push(e.getComponent())})),t}isVisible(){return this._column.visible}show(){this._column.isGroup?this._column.columns.forEach((function(t){t.show()})):this._column.show()}hide(){this._column.isGroup?this._column.columns.forEach((function(t){t.hide()})):this._column.hide()}toggle(){this._column.visible?this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var t=[];return this._column.columns.length&&this._column.columns.forEach((function(e){t.push(e.getComponent())})),t}getParentColumn(){return this._column.parent instanceof _&&this._column.parent.getComponent()}_getSelf(){return this._column}scrollTo(t,e){return this._column.table.columnManager.scrollToColumn(this._column,t,e)}getTable(){return this._column.table}move(t,e){var n=this._column.table.columnManager.findColumn(t);n?this._column.table.columnManager.moveColumn(this._column,n,e):console.warn("Move Error - No matching column found:",n)}getNextColumn(){var t=this._column.nextColumn();return!!t&&t.getComponent()}getPrevColumn(){var t=this._column.prevColumn();return!!t&&t.getComponent()}updateDefinition(t){return this._column.updateDefinition(t)}getWidth(){return this._column.getWidth()}setWidth(t){var e;return e=!0===t?this._column.reinitializeWidth(!0):this._column.setWidth(t),this._column.table.columnManager.rerenderColumns(!0),e}}var k={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void 0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void 0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void 0,headerWordWrap:!1,editableTitle:void 0};class _ extends o{constructor(t,e){super(e.table),this.definition=t,this.parent=e,this.type="column",this.columns=[],this.cells=[],this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.isGroup=!1,this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRendered=!1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxInitialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!0,this.definition.columns.forEach(((t,e)=>{var n=new _(t,this);this.attachColumn(n)})),this.checkColumnVisibility()):e.registerColumnField(this),this._initialize()}createElement(){var t=document.createElement("div");switch(t.classList.add("tabulator-col"),t.setAttribute("role","columnheader"),t.setAttribute("aria-sort","none"),this.table.options.columnHeaderVertAlign){case"middle":t.style.justifyContent="center";break;case"bottom":t.style.justifyContent="flex-end"}return t}createGroupElement(){var t=document.createElement("div");return t.classList.add("tabulator-col-group-cols"),t}mapDefinitions(){var t=this.table.options.columnDefaults;if(t)for(let e in t)"undefined"===typeof this.definition[e]&&(this.definition[e]=t[e]);this.definition=this.table.columnManager.optionsList.generate(_.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach((t=>{-1===_.defaultOptionList.indexOf(t)&&console.warn("Invalid column definition option in '"+(this.field||this.definition.title)+"' column:",t)}))}setField(t){this.field=t,this.fieldStructure=t?this.table.options.nestedFieldSeparator?t.split(this.table.options.nestedFieldSeparator):[t]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData}registerColumnPosition(t){this.parent.registerColumnPosition(t)}registerColumnField(t){this.parent.registerColumnField(t)}reRegisterPosition(){this.isGroup?this.columns.forEach((function(t){t.reRegisterPosition()})):this.registerColumnPosition(this)}_initialize(){for(var t=this.definition;this.element.firstChild;)this.element.removeChild(this.element.firstChild);t.headerVertical&&(this.element.classList.add("tabulator-col-vertical"),"flip"===t.headerVertical&&this.element.classList.add("tabulator-col-vertical-flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChild(this.contentElement),this.isGroup?this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-init",this)}_buildColumnHeader(){var t=this.definition;(this.dispatch("column-layout",this),"undefined"!=typeof t.visible&&(t.visible?this.show(!0):this.hide(!0)),t.cssClass)&&t.cssClass.split(" ").forEach((t=>{this.element.classList.add(t)}));t.field&&this.element.setAttribute("tabulator-field",t.field),this.setMinWidth(parseInt(t.minWidth)),t.maxInitialWidth&&(this.maxInitialWidth=parseInt(t.maxInitialWidth)),t.maxWidth&&this.setMaxWidth(parseInt(t.maxWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vertAlign=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign}_buildColumnHeaderContent(){var t=document.createElement("div");return t.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),t.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),t}_buildColumnHeaderTitle(){var t=this.definition,e=document.createElement("div");if(e.classList.add("tabulator-col-title"),t.headerWordWrap&&e.classList.add("tabulator-col-title-wrap"),t.editableTitle){var n=document.createElement("input");n.classList.add("tabulator-title-editor"),n.addEventListener("click",(t=>{t.stopPropagation(),n.focus()})),n.addEventListener("mousedown",(t=>{t.stopPropagation()})),n.addEventListener("change",(()=>{t.title=n.value,this.dispatchExternal("columnTitleChanged",this.getComponent())})),e.appendChild(n),t.field?this.langBind("columns|"+t.field,(e=>{n.value=e||t.title||"&nbsp;"})):n.value=t.title||"&nbsp;"}else t.field?this.langBind("columns|"+t.field,(n=>{this._formatColumnHeaderTitle(e,n||t.title||"&nbsp;")})):this._formatColumnHeaderTitle(e,t.title||"&nbsp;");return e}_formatColumnHeaderTitle(t,e){var n=this.chain("column-format",[this,e,t],null,(()=>e));switch(typeof n){case"object":n instanceof Node?t.appendChild(n):(t.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",n));break;case"undefined":t.innerHTML="";break;default:t.innerHTML=n}}_buildGroupHeader(){(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass)&&this.definition.cssClass.split(" ").forEach((t=>{this.element.classList.add(t)}));this.titleElement.style.textAlign=this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlatData(t){return t[this.field]}_getNestedData(t){var e,n=t,r=this.fieldStructure,i=r.length;for(let o=0;o<i&&(e=n=n[r[o]],n);o++);return e}_setFlatData(t,e){this.field&&(t[this.field]=e)}_setNestedData(t,e){var n=t,r=this.fieldStructure,i=r.length;for(let o=0;o<i;o++)if(o==i-1)n[r[o]]=e;else{if(!n[r[o]]){if("undefined"===typeof e)break;n[r[o]]={}}n=n[r[o]]}}attachColumn(t){this.groupElement?(this.columns.push(t),this.groupElement.appendChild(t.getElement()),t.columnRendered()):console.warn("Column Warning - Column being attached to another column instead of column group")}verticalAlign(t,e){var n=this.parent.isGroup?this.parent.getGroupElement().clientHeight:e||this.parent.getHeadersElement().clientHeight;this.element.style.height=n+"px",this.dispatch("column-height",this,this.element.style.height),this.isGroup&&(this.groupElement.style.minHeight=n-this.contentElement.offsetHeight+"px"),this.columns.forEach((function(e){e.verticalAlign(t)}))}clearVerticalAlign(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach((function(t){t.clearVerticalAlign()})),this.dispatch("column-height",this,"")}getElement(){return this.element}getGroupElement(){return this.groupElement}getField(){return this.field}getTitleDownload(){return this.titleDownload}getFirstColumn(){return this.isGroup?!!this.columns.length&&this.columns[0].getFirstColumn():this}getLastColumn(){return this.isGroup?!!this.columns.length&&this.columns[this.columns.length-1].getLastColumn():this}getColumns(t){var e=[];return t?this.columns.forEach((t=>{e.push(t),e=e.concat(t.getColumns(!0))})):e=this.columns,e}getCells(){return this.cells}getTopColumn(){return this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(t){var e=[];return this.isGroup&&t&&(this.columns.forEach((function(t){e.push(t.getDefinition(!0))})),this.definition.columns=e),this.definition}checkColumnVisibility(){var t=!1;this.columns.forEach((function(e){e.visible&&(t=!0)})),t?(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1)):this.hide()}show(t,e){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach((function(t){t.show()})),this.isGroup||null!==this.width||this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispatch("column-show",this,e),t||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}hide(t,e){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach((function(t){t.hide()})),this.dispatch("column-hide",this,e),t||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}matchChildWidths(){var t=0;this.contentElement&&this.columns.length&&(this.columns.forEach((function(e){e.visible&&(t+=e.getWidth())})),this.contentElement.style.maxWidth=t-1+"px",this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(t){var e=this.columns.indexOf(t);e>-1&&this.columns.splice(e,1),this.columns.length||this.delete()}setWidth(t){this.widthFixed=!0,this.setWidthActual(t)}setWidthActual(t){isNaN(t)&&(t=Math.floor(this.table.element.clientWidth/100*parseInt(t))),t=Math.max(this.minWidth,t),this.maxWidth&&(t=Math.min(this.maxWidth,t)),this.width=t,this.widthStyled=t?t+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach((function(t){t.setWidth()})),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch("column-width",this)}checkCellHeights(){var t=[];this.cells.forEach((function(e){e.row.heightInitialized&&(null!==e.row.getElement().offsetParent?(t.push(e.row),e.row.clearCellHeight()):e.row.heightInitialized=!1)})),t.forEach((function(t){t.calcHeight()})),t.forEach((function(t){t.setCellHeight()}))}getWidth(){var t=0;return this.isGroup?this.columns.forEach((function(e){e.visible&&(t+=e.getWidth())})):t=this.width,t}getLeftOffset(){var t=this.element.offsetLeft;return this.parent.isGroup&&(t+=this.parent.getLeftOffset()),t}getHeight(){return Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(t){this.maxWidth&&t>this.maxWidth&&(t=this.maxWidth,console.warn("the minWidth ("+t+"px) for column '"+this.field+"' cannot be bigger that its maxWidth ("+this.maxWidthStyled+")")),this.minWidth=t,this.minWidthStyled=t?t+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach((function(t){t.setMinWidth()}))}setMaxWidth(t){this.minWidth&&t<this.minWidth&&(t=this.minWidth,console.warn("the maxWidth ("+t+"px) for column '"+this.field+"' cannot be smaller that its minWidth ("+this.minWidthStyled+")")),this.maxWidth=t,this.maxWidthStyled=t?t+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach((function(t){t.setMaxWidth()}))}delete(){return new Promise(((t,e)=>{this.isGroup&&this.columns.forEach((function(t){t.delete()})),this.dispatch("column-delete",this);var n=this.cells.length;for(let r=0;r<n;r++)this.cells[0].delete();this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.contentElement=!1,this.titleElement=!1,this.groupElement=!1,this.parent.isGroup&&this.parent.removeChild(this),this.table.columnManager.deregisterColumn(this),this.table.columnManager.rerenderColumns(!0),this.dispatch("column-deleted",this),t()}))}columnRendered(){this.titleFormatterRendered&&this.titleFormatterRendered(),this.dispatch("column-rendered",this)}generateCell(t){var e=new y(this,t);return this.cells.push(e),e}nextColumn(){var t=this.table.columnManager.findColumnIndex(this);return t>-1&&this._nextVisibleColumn(t+1)}_nextVisibleColumn(t){var e=this.table.columnManager.getColumnByIndex(t);return!e||e.visible?e:this._nextVisibleColumn(t+1)}prevColumn(){var t=this.table.columnManager.findColumnIndex(this);return t>-1&&this._prevVisibleColumn(t-1)}_prevVisibleColumn(t){var e=this.table.columnManager.getColumnByIndex(t);return!e||e.visible?e:this._prevVisibleColumn(t-1)}reinitializeWidth(t){this.widthFixed=!1,"undefined"===typeof this.definition.width||t||this.setWidth(this.definition.width),this.dispatch("column-width-fit-before",this),this.fitToData(t),this.dispatch("column-width-fit-after",this)}fitToData(t){if(!this.isGroup){this.widthFixed||(this.element.style.width="",this.cells.forEach((t=>{t.clearWidth()})));var e=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach((t=>{var n=t.getWidth();n>e&&(e=n)})),e)){var n=e+1;this.maxInitialWidth&&!t&&(n=Math.min(n,this.maxInitialWidth)),this.setWidthActual(n)}}}updateDefinition(t){var e;return this.isGroup||this.parent.isGroup?(console.error("Column Update Error - The updateDefinition function is only available on ungrouped columns"),Promise.reject("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(e=Object.assign({},this.getDefinition()),e=Object.assign(e,t),this.table.columnManager.addColumn(e,!1,this).then((t=>(e.field==this.field&&(this.field=!1),this.delete().then((()=>t.getComponent()))))))}deleteCell(t){var e=this.cells.indexOf(t);e>-1&&this.cells.splice(e,1)}getComponent(){return this.component||(this.component=new w(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}}_.defaultOptionList=k;class O{constructor(t){return this._row=t,new Proxy(this,{get:function(t,e,n){return"undefined"!==typeof t[e]?t[e]:t._row.table.componentFunctionBinder.handle("row",t._row,e)}})}getData(t){return this._row.getData(t)}getElement(){return this._row.getElement()}getCells(){var t=[];return this._row.getCells().forEach((function(e){t.push(e.getComponent())})),t}getCell(t){var e=this._row.getCell(t);return!!e&&e.getComponent()}getIndex(){return this._row.getData("data")[this._row.table.options.index]}getPosition(){return this._row.getPosition()}watchPosition(t){return this._row.watchPosition(t)}delete(){return this._row.delete()}scrollTo(t,e){return this._row.table.rowManager.scrollToRow(this._row,t,e)}move(t,e){this._row.moveToRow(t,e)}update(t){return this._row.updateData(t)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf(){return this._row}reformat(){return this._row.reinitialize()}getTable(){return this._row.table}getNextRow(){var t=this._row.nextRow();return t?t.getComponent():t}getPrevRow(){var t=this._row.prevRow();return t?t.getComponent():t}}class x extends o{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"row";super(e.table),this.parent=e,this.data={},this.type=n,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!1,this.setData(t)}create(){this.created||(this.created=!0,this.generateElement())}createElement(){var t=document.createElement("div");t.classList.add("tabulator-row"),t.setAttribute("role","row"),this.element=t}getElement(){return this.create(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}generateElement(){this.createElement(),this.dispatch("row-init",this)}generateCells(){this.cells=this.table.columnManager.generateCells(this)}initialize(t,e){if(this.create(),!this.initialized||t){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.dispatch("row-layout-before",this),this.generateCells(),this.initialized=!0,this.table.columnManager.renderer.renderRowCells(this,e),t&&this.normalizeHeight(),this.dispatch("row-layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.dispatch("row-layout-after",this)}else this.table.columnManager.renderer.rerenderRowCells(this,e)}rendered(){this.cells.forEach((t=>{t.cellRendered()}))}reinitializeHeight(){this.heightInitialized=!1,this.element&&null!==this.element.offsetParent&&this.normalizeHeight(!0)}deinitialize(){this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(t){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&null!==this.element.offsetParent&&this.initialize(!0),this.dispatch("row-relayout",this)}calcHeight(t){var e,n=0;this.table.options.rowHeight?this.height=this.table.options.rowHeight:(e=this.table.options.resizableRows?this.element.clientHeight:0,this.cells.forEach((function(t){var e=t.getHeight();e>n&&(n=e)})),this.height=t?Math.max(n,e):this.manualHeight?this.height:Math.max(n,e)),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight}setCellHeight(){this.cells.forEach((function(t){t.setHeight()})),this.heightInitialized=!0}clearCellHeight(){this.cells.forEach((function(t){t.clearHeight()}))}normalizeHeight(t){t&&!this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(t),this.setCellHeight()}setHeight(t,e){(this.height!=t||e)&&(this.manualHeight=!0,this.height=t,this.heightStyled=t?t+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight)}getHeight(){return this.outerHeight}getWidth(){return this.element.offsetWidth}deleteCell(t){var e=this.cells.indexOf(t);e>-1&&this.cells.splice(e,1)}setData(t){this.data=this.chain("row-data-init-before",[this,t],void 0,t),this.dispatch("row-data-init-after",this)}updateData(t){var e,n=this.element&&a.elVisible(this.element),r={};return new Promise(((i,o)=>{"string"===typeof t&&(t=JSON.parse(t)),this.dispatch("row-data-save-before",this),this.subscribed("row-data-changing")&&(r=Object.assign(r,this.data),r=Object.assign(r,t)),e=this.chain("row-data-changing",[this,r,t],null,t);for(let t in e)this.data[t]=e[t];this.dispatch("row-data-save-after",this);for(let r in t){this.table.columnManager.getColumnsByFieldRoot(r).forEach((t=>{let r=this.getCell(t.getField());if(r){let i=t.getFieldValue(e);r.getValue()!==i&&(r.setValueProcessData(i),n&&r.cellRendered())}}))}n?(this.normalizeHeight(!0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-data-changed",this,n,t),this.dispatchExternal("rowUpdated",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),i()}))}getData(t){return t?this.chain("row-data-retrieve",[this,t],null,this.data):this.data}getCell(t){return t=this.table.columnManager.findColumn(t),this.initialized||0!==this.cells.length||this.generateCells(),this.cells.find((function(e){return e.column===t}))}getCellIndex(t){return this.cells.findIndex((function(e){return e===t}))}findCell(t){return this.cells.find((e=>e.element===t))}getCells(){return this.initialized||0!==this.cells.length||this.generateCells(),this.cells}nextRow(){return this.table.rowManager.nextDisplayRow(this,!0)||!1}prevRow(){return this.table.rowManager.prevDisplayRow(this,!0)||!1}moveToRow(t,e){var n=this.table.rowManager.findRow(t);n?(this.table.rowManager.moveRowActual(this,n,!e),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",t)}delete(){return this.dispatch("row-delete",this),this.deleteActual(),Promise.resolve()}deleteActual(t){this.detachModules(),this.table.rowManager.deleteRow(this,t),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var t=this.cells.length;for(let e=0;e<t;e++)this.cells[0].delete()}wipe(){if(this.detachModules(),this.deleteCells(),this.element){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.element=!1,this.modules={}}isDisplayed(){return this.table.rowManager.getDisplayRows().includes(this)}getPosition(){return!!this.isDisplayed()&&this.position}setPosition(t){t!=this.position&&(this.position=t,this.positionWatchers.forEach((t=>{t(this.position)})))}watchPosition(t){this.positionWatchers.push(t),t(this.position)}getGroup(){return this.modules.group||!1}getComponent(){return this.component||(this.component=new O(this)),this.component}}var E={avg:function(t,e,n){var r=0,i="undefined"!==typeof n.precision?n.precision:2;return t.length&&(r=t.reduce((function(t,e){return Number(t)+Number(e)})),r/=t.length,r=!1!==i?r.toFixed(i):r),parseFloat(r).toString()},max:function(t,e,n){var r=null,i="undefined"!==typeof n.precision&&n.precision;return t.forEach((function(t){((t=Number(t))>r||null===r)&&(r=t)})),null!==r?!1!==i?r.toFixed(i):r:""},min:function(t,e,n){var r=null,i="undefined"!==typeof n.precision&&n.precision;return t.forEach((function(t){((t=Number(t))<r||null===r)&&(r=t)})),null!==r?!1!==i?r.toFixed(i):r:""},sum:function(t,e,n){var r=0,i="undefined"!==typeof n.precision&&n.precision;return t.length&&t.forEach((function(t){t=Number(t),r+=isNaN(t)?0:Number(t)})),!1!==i?r.toFixed(i):r},concat:function(t,e,n){var r=0;return t.length&&(r=t.reduce((function(t,e){return String(t)+String(e)}))),r},count:function(t,e,n){var r=0;return t.length&&t.forEach((function(t){t&&r++})),r},unique:function(t,e,n){return t.filter(((e,n)=>(t||0===e)&&t.indexOf(e)===n)).length}};class j extends l{constructor(t){super(t),this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFormatterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("bottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerColumnOption("bottomCalcFormatterParams")}createElement(){var t=document.createElement("div");return t.classList.add("tabulator-calcs-holder"),t}initialize(){this.genColumn=new _({field:"value"},this),this.subscribe("cell-value-changed",this.cellValueChanged.bind(this)),this.subscribe("column-init",this.initializeColumnCheck.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("column-moved",this.recalcActiveRows.bind(this)),this.subscribe("column-add",this.recalcActiveRows.bind(this)),this.subscribe("data-refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-restored",this.restoreRedraw.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.bind(this)),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}tableRedraw(t){this.recalc(this.table.rowManager.activeRows),t&&this.redraw()}blockRedraw(){this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!1,this.recalcAfterBlock&&(this.recalcAfterBlock=!1,this.recalcActiveRowsRefresh())}userRecalc(){this.recalc(this.table.rowManager.activeRows)}blockCheck(){return this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(t,e){return this.topRow&&e.unshift(this.topRow),this.botRow&&e.push(this.botRow),e}rowsUpdated(t){this.table.options.groupBy?this.recalcRowGroup(t):this.recalcActiveRows()}recalcActiveRowsRefresh(){this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.options.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows(){this.recalc(this.table.rowManager.activeRows)}cellValueChanged(t){(t.column.definition.topCalc||t.column.definition.bottomCalc)&&(this.table.options.groupBy?("table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs||this.recalcActiveRows(),"table"!=this.table.options.columnCalcs&&this.recalcRowGroup(t.row)):this.recalcActiveRows())}initializeColumnCheck(t){(t.definition.topCalc||t.definition.bottomCalc)&&this.initializeColumn(t)}initializeColumn(t){var e=t.definition,n={topCalcParams:e.topCalcParams||{},botCalcParams:e.bottomCalcParams||{}};if(e.topCalc){switch(typeof e.topCalc){case"string":j.calculations[e.topCalc]?n.topCalc=j.calculations[e.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",e.topCalc);break;case"function":n.topCalc=e.topCalc}n.topCalc&&(t.modules.columnCalcs=n,this.topCalcs.push(t),"group"!=this.table.options.columnCalcs&&this.initializeTopRow())}if(e.bottomCalc){switch(typeof e.bottomCalc){case"string":j.calculations[e.bottomCalc]?n.botCalc=j.calculations[e.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",e.bottomCalc);break;case"function":n.botCalc=e.bottomCalc}n.botCalc&&(t.modules.columnCalcs=n,this.botCalcs.push(t),"group"!=this.table.options.columnCalcs&&this.initializeBottomRow())}}registerColumnField(){}removeCalcs(){var t=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),t=!0),this.botInitialized&&(this.botInitialized=!1,this.footerRemove(this.botElement),t=!0),t&&this.table.rowManager.adjustTableSize()}reinitializeCalcs(){this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializeBottomRow()}initializeTopRow(){var t=document.createDocumentFragment();this.topInitialized||(t.appendChild(document.createElement("br")),t.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(t,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)}initializeBottomRow(){this.botInitialized||(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(t){this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=t)}recalc(t){var e,n;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized)){if(e=this.rowsToData(t),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),n=this.generateRow("top",e),this.topRow=n;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(n.getElement()),n.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),n=this.generateRow("bottom",e),this.botRow=n;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(n.getElement()),n.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}}recalcRowGroup(t){this.recalcGroup(this.table.modules.groupRows.getRowGroup(t))}recalcAll(){(this.topCalcs.length||this.botCalcs.length)&&("group"!==this.table.options.columnCalcs&&this.recalcActiveRows(),this.table.options.groupBy&&"table"!==this.table.options.columnCalcs&&this.table.modules.groupRows.getChildGroups().forEach((t=>{this.recalcGroup(t)})))}recalcGroup(t){var e,n;this.blockCheck()||t&&t.calcs&&(t.calcs.bottom&&(e=this.rowsToData(t.rows),n=this.generateRowData("bottom",e),t.calcs.bottom.updateData(n),t.calcs.bottom.reinitialize()),t.calcs.top&&(e=this.rowsToData(t.rows),n=this.generateRowData("top",e),t.calcs.top.updateData(n),t.calcs.top.reinitialize()))}generateTopRow(t){return this.generateRow("top",this.rowsToData(t))}generateBottomRow(t){return this.generateRow("bottom",this.rowsToData(t))}rowsToData(t){var e=[];return t.forEach((t=>{if(e.push(t.getData()),this.table.options.dataTree&&this.table.options.dataTreeChildColumnCalcs&&t.modules.dataTree&&t.modules.dataTree.open){var n=this.rowsToData(this.table.modules.dataTree.getFilteredTreeChildren(t));e=e.concat(n)}})),e}generateRow(t,e){var n,r=this.generateRowData(t,e);return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),n=new x(r,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),n.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+t),n.component=!1,n.getComponent=()=>(n.component||(n.component=new b(n)),n.component),n.generateCells=()=>{var e=[];this.table.columnManager.columnsByIndex.forEach((r=>{this.genColumn.setField(r.getField()),this.genColumn.hozAlign=r.hozAlign,r.definition[t+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.getFormatter(r.definition[t+"CalcFormatter"]),params:r.definition[t+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.getFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=r.definition.cssClass;var i=new y(this.genColumn,n);i.getElement(),i.column=r,i.setWidth(),r.cells.push(i),e.push(i),r.visible||i.hide()})),n.cells=e},n}generateRowData(t,e){var n,r,i={},o="top"==t?this.topCalcs:this.botCalcs,a="top"==t?"topCalc":"botCalc";return o.forEach((function(t){var o=[];t.modules.columnCalcs&&t.modules.columnCalcs[a]&&(e.forEach((function(e){o.push(t.getFieldValue(e))})),r=a+"Params",n="function"===typeof t.modules.columnCalcs[r]?t.modules.columnCalcs[r](o,e):t.modules.columnCalcs[r],t.setFieldValue(i,t.modules.columnCalcs[a](o,e,n)))})),i}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var t={};return this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.getGroups(!0).forEach((e=>{t[e.getKey()]=this.getGroupResults(e)})):t={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},t}getGroupResults(t){var e=t._getSelf(),n=t.getSubGroups(),r={};return n.forEach((t=>{r[t.getKey()]=this.getGroupResults(t)})),{top:e.calcs.top?e.calcs.top.getData():{},bottom:e.calcs.bottom?e.calcs.bottom.getData():{},groups:r}}adjustForScrollbar(t){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=t+"px":this.botElement.style.paddingRight=t+"px")}}j.moduleName="columnCalcs",j.calculations=E;class S extends l{constructor(t){super(t),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.registerTableOption("dataTree",!1),this.registerTableOption("dataTreeFilter",!0),this.registerTableOption("dataTreeSort",!0),this.registerTableOption("dataTreeElementColumn",!1),this.registerTableOption("dataTreeBranchElement",!0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("dataTreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!1),this.registerTableOption("dataTreeExpandElement",!1),this.registerTableOption("dataTreeStartExpanded",!1),this.registerTableOption("dataTreeChildColumnCalcs",!1),this.registerTableOption("dataTreeSelectPropagate",!1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this)),this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.registerComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.registerComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.registerComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}initialize(){if(this.table.options.dataTree){var t=null,e=this.table.options;switch(this.field=e.dataTreeChildField,this.indent=e.dataTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"),e.dataTreeBranchElement?!0===e.dataTreeBranchElement?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):"string"===typeof e.dataTreeBranchElement?((t=document.createElement("div")).innerHTML=e.dataTreeBranchElement,this.branchEl=t.firstChild):this.branchEl=e.dataTreeBranchElement:(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch-empty")),e.dataTreeCollapseElement?"string"===typeof e.dataTreeCollapseElement?((t=document.createElement("div")).innerHTML=e.dataTreeCollapseElement,this.collapseEl=t.firstChild):this.collapseEl=e.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),e.dataTreeExpandElement?"string"===typeof e.dataTreeExpandElement?((t=document.createElement("div")).innerHTML=e.dataTreeExpandElement,this.expandEl=t.firstChild):this.expandEl=e.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),typeof e.dataTreeStartExpanded){case"boolean":this.startOpen=function(t,n){return e.dataTreeStartExpanded};break;case"function":this.startOpen=e.dataTreeStartExpanded;break;default:this.startOpen=function(t,n){return e.dataTreeStartExpanded[n]}}this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("row-deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-updated",this.cellValueChanged.bind(this)),this.subscribe("edit-cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-rows",this.columnMoving.bind(this)),this.subscribe("table-built",this.initializeElementField.bind(this)),this.subscribe("table-redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),30)}}tableRedrawing(t){t&&this.table.rowManager.getRows().forEach((t=>{this.reinitializeRowChildren(t)}))}initializeElementField(){var t=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.options.dataTreeElementColumn||!!t&&t.field}getRowChildren(t){return this.getTreeChildren(t,!0)}columnMoving(){var t=[];return this.table.rowManager.rows.forEach((e=>{t=t.concat(this.getTreeChildren(e,!1,!0))})),t}rowDataChanged(t,e,n){this.redrawNeeded(n)&&(this.initializeRow(t),e&&(this.layoutRow(t),this.refreshData(!0)))}cellValueChanged(t){t.column.getField()===this.elementField&&this.layoutRow(t.row)}initializeRow(t){var e=t.getData()[this.field],n=Array.isArray(e),r=n||!n&&"object"===typeof e&&null!==e;!r&&t.modules.dataTree&&t.modules.dataTree.branchEl&&t.modules.dataTree.branchEl.parentNode.removeChild(t.modules.dataTree.branchEl),!r&&t.modules.dataTree&&t.modules.dataTree.controlEl&&t.modules.dataTree.controlEl.parentNode.removeChild(t.modules.dataTree.controlEl),t.modules.dataTree={index:t.modules.dataTree?t.modules.dataTree.index:0,open:!!r&&(t.modules.dataTree?t.modules.dataTree.open:this.startOpen(t.getComponent(),0)),controlEl:!(!t.modules.dataTree||!r)&&t.modules.dataTree.controlEl,branchEl:!(!t.modules.dataTree||!r)&&t.modules.dataTree.branchEl,parent:!!t.modules.dataTree&&t.modules.dataTree.parent,children:r}}reinitializeRowChildren(t){this.getTreeChildren(t,!1,!0).forEach((function(t){t.reinitialize(!0)}))}layoutRow(t){var e=(this.elementField?t.getCell(this.elementField):t.getCells()[0]).getElement(),n=t.modules.dataTree;n.branchEl&&(n.branchEl.parentNode&&n.branchEl.parentNode.removeChild(n.branchEl),n.branchEl=!1),n.controlEl&&(n.controlEl.parentNode&&n.controlEl.parentNode.removeChild(n.controlEl),n.controlEl=!1),this.generateControlElement(t,e),t.getElement().classList.add("tabulator-tree-level-"+n.index),n.index&&(this.branchEl?(n.branchEl=this.branchEl.cloneNode(!0),e.insertBefore(n.branchEl,e.firstChild),this.table.rtl?n.branchEl.style.marginRight=(n.branchEl.offsetWidth+n.branchEl.style.marginLeft)*(n.index-1)+n.index*this.indent+"px":n.branchEl.style.marginLeft=(n.branchEl.offsetWidth+n.branchEl.style.marginRight)*(n.index-1)+n.index*this.indent+"px"):this.table.rtl?e.style.paddingRight=parseInt(window.getComputedStyle(e,null).getPropertyValue("padding-right"))+n.index*this.indent+"px":e.style.paddingLeft=parseInt(window.getComputedStyle(e,null).getPropertyValue("padding-left"))+n.index*this.indent+"px")}generateControlElement(t,e){var n=t.modules.dataTree,r=n.controlEl;e=e||t.getCells()[0].getElement(),!1!==n.children&&(n.open?(n.controlEl=this.collapseEl.cloneNode(!0),n.controlEl.addEventListener("click",(e=>{e.stopPropagation(),this.collapseRow(t)}))):(n.controlEl=this.expandEl.cloneNode(!0),n.controlEl.addEventListener("click",(e=>{e.stopPropagation(),this.expandRow(t)}))),n.controlEl.addEventListener("mousedown",(t=>{t.stopPropagation()})),r&&r.parentNode===e?r.parentNode.replaceChild(n.controlEl,r):e.insertBefore(n.controlEl,e.firstChild))}getRows(t){var e=[];return t.forEach(((t,n)=>{var r;e.push(t),t instanceof x&&(t.create(),(r=t.modules.dataTree).index||!1===r.children||this.getChildren(t).forEach((t=>{t.create(),e.push(t)})))})),e}getChildren(t,e){var n=t.modules.dataTree,r=[],i=[];return!1!==n.children&&(n.open||e)&&(Array.isArray(n.children)||(n.children=this.generateChildren(t)),r=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(n.children):n.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(r),r.forEach((t=>{i.push(t),this.getChildren(t).forEach((t=>{i.push(t)}))}))),i}generateChildren(t){var e=[],n=t.getData()[this.field];return Array.isArray(n)||(n=[n]),n.forEach((n=>{var r=new x(n||{},this.table.rowManager);r.create(),r.modules.dataTree.index=t.modules.dataTree.index+1,r.modules.dataTree.parent=t,r.modules.dataTree.children&&(r.modules.dataTree.open=this.startOpen(r.getComponent(),r.modules.dataTree.index)),e.push(r)})),e}expandRow(t,e){var n=t.modules.dataTree;!1!==n.children&&(n.open=!0,t.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowExpanded",t.getComponent(),t.modules.dataTree.index))}collapseRow(t){var e=t.modules.dataTree;!1!==e.children&&(e.open=!1,t.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowCollapsed",t.getComponent(),t.modules.dataTree.index))}toggleRow(t){var e=t.modules.dataTree;!1!==e.children&&(e.open?this.collapseRow(t):this.expandRow(t))}isRowExpanded(t){return t.modules.dataTree.open}getTreeParent(t){return!!t.modules.dataTree.parent&&t.modules.dataTree.parent.getComponent()}getTreeParentRoot(t){return t.modules.dataTree&&t.modules.dataTree.parent?this.getTreeParentRoot(t.modules.dataTree.parent):t}getFilteredTreeChildren(t){var e=t.modules.dataTree,n=[];return e.children&&(Array.isArray(e.children)||(e.children=this.generateChildren(t)),(this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(e.children):e.children).forEach((t=>{t instanceof x&&n.push(t)}))),n}rowDelete(t){var e,n=t.modules.dataTree.parent;n&&(!1!==(e=this.findChildIndex(t,n))&&n.data[this.field].splice(e,1),n.data[this.field].length||delete n.data[this.field],this.initializeRow(n),this.layoutRow(n)),this.refreshData(!0)}addTreeChildRow(t,e,n,r){var i=!1;"string"===typeof e&&(e=JSON.parse(e)),Array.isArray(t.data[this.field])||(t.data[this.field]=[],t.modules.dataTree.open=this.startOpen(t.getComponent(),t.modules.dataTree.index)),"undefined"!==typeof r&&!1!==(i=this.findChildIndex(r,t))&&t.data[this.field].splice(n?i:i+1,0,e),!1===i&&(n?t.data[this.field].unshift(e):t.data[this.field].push(e)),this.initializeRow(t),this.layoutRow(t),this.refreshData(!0)}findChildIndex(t,e){var n=!1;return"object"==typeof t?t instanceof x?n=t.data:t instanceof O?n=t._getSelf().data:"undefined"!==typeof HTMLElement&&t instanceof HTMLElement?e.modules.dataTree&&(n=e.modules.dataTree.children.find((e=>e instanceof x&&e.element===t)))&&(n=n.data):null===t&&(n=!1):n="undefined"!=typeof t&&e.data[this.field].find((e=>e.data[this.table.options.index]==t)),n&&(Array.isArray(e.data[this.field])&&(n=e.data[this.field].indexOf(n)),-1==n&&(n=!1)),n}getTreeChildren(t,e,n){var r=t.modules.dataTree,i=[];return r&&r.children&&(Array.isArray(r.children)||(r.children=this.generateChildren(t)),r.children.forEach((t=>{t instanceof x&&(i.push(e?t.getComponent():t),n&&(i=i.concat(this.getTreeChildren(t,e,n))))}))),i}getChildField(){return this.field}redrawNeeded(t){return!!this.field&&"undefined"!==typeof t[this.field]||!!this.elementField&&"undefined"!==typeof t[this.elementField]}}S.moduleName="dataTree";var P={csv:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;var r=e.delimiter?e.delimiter:",",i=[],o=[];t.forEach((t=>{var e=[];switch(t.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":t.columns.forEach(((t,e)=>{t&&1===t.depth&&(o[e]="undefined"==typeof t.value||null===t.value?"":'"'+String(t.value).split('"').join('""')+'"')}));break;case"row":t.columns.forEach((t=>{if(t){switch(typeof t.value){case"object":t.value=null!==t.value?JSON.stringify(t.value):"";break;case"undefined":t.value=""}e.push('"'+String(t.value).split('"').join('""')+'"')}})),i.push(e.join(r))}})),o.length&&i.unshift(o.join(r)),i=i.join("\n"),e.bom&&(i="\ufeff"+i),n(i,"text/csv")},json:function(t,e,n){var r=[];t.forEach((t=>{var e={};switch(t.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":t.columns.forEach((t=>{t&&(e[t.component.getTitleDownload()||t.component.getField()]=t.value)})),r.push(e)}})),n(r=JSON.stringify(r,null,"\t"),"application/json")},jsonLines:function(t,e,n){const r=[];t.forEach((t=>{const e={};switch(t.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":t.columns.forEach((t=>{t&&(e[t.component.getTitleDownload()||t.component.getField()]=t.value)})),r.push(JSON.stringify(e))}})),n(r.join("\n"),"application/x-ndjson")},pdf:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;var r=[],i=[],o={},a=e.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},s=e.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},l=e.jsPDF||{},u=e.title?e.title:"";function c(t,e){var n=[];return t.columns.forEach((t=>{var r;if(t){switch(typeof t.value){case"object":t.value=null!==t.value?JSON.stringify(t.value):"";break;case"undefined":t.value=""}r={content:t.value,colSpan:t.width,rowSpan:t.height},e&&(r.styles=e),n.push(r)}})),n}l.orientation||(l.orientation=e.orientation||"landscape"),l.unit||(l.unit="pt"),t.forEach((t=>{switch(t.type){case"header":r.push(c(t));break;case"group":i.push(c(t,a));break;case"calc":i.push(c(t,s));break;case"row":i.push(c(t))}}));var d=new jspdf.jsPDF(l);e.autoTable&&(o="function"===typeof e.autoTable?e.autoTable(d)||{}:e.autoTable),u&&(o.didDrawPage=function(t){d.text(u,40,30)}),o.head=r,o.body=i,d.autoTable(o),e.documentProcessing&&e.documentProcessing(d),n(d.output("arraybuffer"),"application/pdf")},xlsx:function(t,e,n){var r=e.sheetName||"Sheet1",i=XLSX.utils.book_new(),a=new o(this),s=!("compress"in e)||e.compress,l=e.writeOptions||{bookType:"xlsx",bookSST:!0,compression:s};function u(){var e=[],n=[],r={},i={s:{c:0,r:0},e:{c:t[0]?t[0].columns.reduce(((t,e)=>t+(e&&e.width?e.width:1)),0):0,r:t.length}};return t.forEach(((t,r)=>{var i=[];t.columns.forEach((function(t,e){t?(i.push(t.value instanceof Date||"object"!==typeof t.value?t.value:JSON.stringify(t.value)),(t.width>1||t.height>-1)&&(t.height>1||t.width>1)&&n.push({s:{r:r,c:e},e:{r:r+t.height-1,c:e+t.width-1}})):i.push("")})),e.push(i)})),XLSX.utils.sheet_add_aoa(r,e),r["!ref"]=XLSX.utils.encode_range(i),n.length&&(r["!merges"]=n),r}if(l.type="binary",i.SheetNames=[],i.Sheets={},e.sheetOnly)n(u());else{if(e.sheets)for(var c in e.sheets)!0===e.sheets[c]?(i.SheetNames.push(c),i.Sheets[c]=u()):(i.SheetNames.push(c),a.commsSend(e.sheets[c],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:this.active,intercept:function(t){i.Sheets[c]=t}}));else i.SheetNames.push(r),i.Sheets[r]=u();e.documentProcessing&&(i=e.documentProcessing(i)),n(function(t){for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),r=0;r!=t.length;++r)n[r]=255&t.charCodeAt(r);return e}(XLSX.write(i,l)),"application/octet-stream")}},html:function(t,e,n){this.modExists("export",!0)&&n(this.modules.export.generateHTMLTable(t),"text/html")}};class C extends l{constructor(t){super(t),this.registerTableOption("downloadEncoder",(function(t,e){return new Blob([t],{type:e})})),this.registerTableOption("downloadReady",void 0),this.registerTableOption("downloadConfig",{}),this.registerTableOption("downloadRowRange","active"),this.registerColumnOption("download"),this.registerColumnOption("titleDownload")}initialize(){this.deprecatedOptionsCheck(),this.registerTableFunction("download",this.download.bind(this)),this.registerTableFunction("downloadToTab",this.downloadToTab.bind(this))}deprecatedOptionsCheck(){this.deprecationCheck("downloadReady","downloadEncoder")}downloadToTab(t,e,n,r){this.download(t,e,n,r,!0)}download(t,e,n,r,i){var o=!1;if("function"==typeof t?o=t:C.downloaders[t]?o=C.downloaders[t]:console.warn("Download Error - No such download type found: ",t),o){var a=this.generateExportList(r);o.call(this.table,a,n||{},function(n,r){i?!0===i?this.triggerDownload(n,r,t,e,!0):i(n):this.triggerDownload(n,r,t,e)}.bind(this))}}generateExportList(t){var e=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,t||this.table.options.downloadRowRange,"download"),n=this.table.options.groupHeaderDownload;return n&&!Array.isArray(n)&&(n=[n]),e.forEach((t=>{var e;"group"===t.type&&(e=t.columns[0],n&&n[t.indent]&&(e.value=n[t.indent](e.value,t.component._group.getRowCount(),t.component._group.getData(),t.component)))})),e}triggerDownload(t,e,n,r,i){var o=document.createElement("a"),a=this.table.options.downloadEncoder(t,e);a&&(i?window.open(window.URL.createObjectURL(a)):(r=r||"Tabulator."+("function"===typeof n?"txt":n),navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(a,r):(o.setAttribute("href",window.URL.createObjectURL(a)),o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o))),this.dispatchExternal("downloadComplete"))}commsReceived(t,e,n){if("intercept"===e)this.download(n.type,"",n.options,n.active,n.intercept)}}function T(t,e){var n=e.mask,r="undefined"!==typeof e.maskLetterChar?e.maskLetterChar:"A",i="undefined"!==typeof e.maskNumberChar?e.maskNumberChar:"9",o="undefined"!==typeof e.maskWildcardChar?e.maskWildcardChar:"*";function a(e){var s=n[e];"undefined"!==typeof s&&s!==o&&s!==r&&s!==i&&(t.value=t.value+""+s,a(e+1))}t.addEventListener("keydown",(e=>{var a=t.value.length,s=e.key;if(e.keyCode>46&&!e.ctrlKey&&!e.metaKey){if(a>=n.length)return e.preventDefault(),e.stopPropagation(),!1;switch(n[a]){case r:if(s.toUpperCase()==s.toLowerCase())return e.preventDefault(),e.stopPropagation(),!1;break;case i:if(isNaN(s))return e.preventDefault(),e.stopPropagation(),!1;break;case o:break;default:if(s!==n[a])return e.preventDefault(),e.stopPropagation(),!1}}})),t.addEventListener("keyup",(n=>{n.keyCode>46&&e.maskAutoFill&&a(t.value.length)})),t.placeholder||(t.placeholder=n),e.maskAutoFill&&a(t.value.length)}C.moduleName="download",C.downloaders=P;class M{constructor(t,e,n,r,i,o){this.edit=t,this.table=t.table,this.cell=e,this.params=this._initializeParams(o),this.data=[],this.displayItems=[],this.currentItems=[],this.focusedItem=null,this.input=this._createInputElement(),this.listEl=this._createListElement(),this.initialValues=null,this.isFilter="header"===e.getType(),this.filterTimeout=null,this.filtered=!1,this.typing=!1,this.values=[],this.popup=null,this.listIteration=0,this.lastAction="",this.filterTerm="",this.blurable=!0,this.actions={success:r,cancel:i},this._deprecatedOptionsCheck(),this._initializeValue(),n(this._onRendered.bind(this))}_deprecatedOptionsCheck(){this.params.listItemFormatter&&this.cell.getTable().deprecationAdvisor.msg("The listItemFormatter editor param has been deprecated, please see the latest editor documentation for updated options"),this.params.sortValuesList&&this.cell.getTable().deprecationAdvisor.msg("The sortValuesList editor param has been deprecated, please see the latest editor documentation for updated options"),this.params.searchFunc&&this.cell.getTable().deprecationAdvisor.msg("The searchFunc editor param has been deprecated, please see the latest editor documentation for updated options"),this.params.searchingPlaceholder&&this.cell.getTable().deprecationAdvisor.msg("The searchingPlaceholder editor param has been deprecated, please see the latest editor documentation for updated options")}_initializeValue(){var t=this.cell.getValue();"undefined"===typeof t&&"undefined"!==typeof this.params.defaultValue&&(t=this.params.defaultValue),this.initialValues=this.params.multiselect?t:[t],this.isFilter&&(this.input.value=this.initialValues?this.initialValues.join(","):"",this.headerFilterInitialListGen())}_onRendered(){var t=this.cell.getElement();function e(t){t.stopPropagation()}this.isFilter||(this.input.style.height="100%",this.input.focus({preventScroll:!0})),t.addEventListener("click",e),setTimeout((()=>{t.removeEventListener("click",e)}),1e3),this.input.addEventListener("mousedown",this._preventPopupBlur.bind(this))}_createListElement(){var t=document.createElement("div");return t.classList.add("tabulator-edit-list"),t.addEventListener("mousedown",this._preventBlur.bind(this)),t.addEventListener("keydown",this._inputKeyDown.bind(this)),t}_setListWidth(){var t=this.isFilter?this.input:this.cell.getElement();this.listEl.style.minWidth=t.offsetWidth+"px",this.params.maxWidth&&(!0===this.params.maxWidth?this.listEl.style.maxWidth=t.offsetWidth+"px":"number"===typeof this.params.maxWidth?this.listEl.style.maxWidth=this.params.maxWidth+"px":this.listEl.style.maxWidth=this.params.maxWidth)}_createInputElement(){var t=this.params.elementAttributes,e=document.createElement("input");if(e.setAttribute("type",this.params.clearable?"search":"text"),e.style.padding="4px",e.style.width="100%",e.style.boxSizing="border-box",this.params.autocomplete||(e.style.cursor="default",e.style.caretColor="transparent"),t&&"object"==typeof t)for(let n in t)"+"==n.charAt(0)?(n=n.slice(1),e.setAttribute(n,e.getAttribute(n)+t["+"+n])):e.setAttribute(n,t[n]);return this.params.mask&&T(e,this.params),this._bindInputEvents(e),e}_initializeParams(t){var e,n=["values","valuesURL","valuesLookup"];return(t=Object.assign({},t)).verticalNavigation=t.verticalNavigation||"editor",t.placeholderLoading="undefined"===typeof t.placeholderLoading?"Searching ...":t.placeholderLoading,t.placeholderEmpty="undefined"===typeof t.placeholderEmpty?"No Results Found":t.placeholderEmpty,t.filterDelay="undefined"===typeof t.filterDelay?300:t.filterDelay,t.emptyValue=Object.keys(t).includes("emptyValue")?t.emptyValue:"",(e=Object.keys(t).filter((t=>n.includes(t))).length)?e>1&&console.warn("list editor config error - only one of the values, valuesURL, or valuesLookup options can be set on the same editor"):console.warn("list editor config error - either the values, valuesURL, or valuesLookup option must be set"),t.autocomplete?t.multiselect&&(t.multiselect=!1,console.warn("list editor config error - multiselect option is not available when autocomplete is enabled")):(t.freetext&&(t.freetext=!1,console.warn("list editor config error - freetext option is only available when autocomplete is enabled")),t.filterFunc&&(t.filterFunc=!1,console.warn("list editor config error - filterFunc option is only available when autocomplete is enabled")),t.filterRemote&&(t.filterRemote=!1,console.warn("list editor config error - filterRemote option is only available when autocomplete is enabled")),t.mask&&(t.mask=!1,console.warn("list editor config error - mask option is only available when autocomplete is enabled")),t.allowEmpty&&(t.allowEmpty=!1,console.warn("list editor config error - allowEmpty option is only available when autocomplete is enabled")),t.listOnEmpty&&(t.listOnEmpty=!1,console.warn("list editor config error - listOnEmpty option is only available when autocomplete is enabled"))),t.filterRemote&&"function"!==typeof t.valuesLookup&&!t.valuesURL&&(t.filterRemote=!1,console.warn("list editor config error - filterRemote option should only be used when values list is populated from a remote source")),t}_bindInputEvents(t){t.addEventListener("focus",this._inputFocus.bind(this)),t.addEventListener("click",this._inputClick.bind(this)),t.addEventListener("blur",this._inputBlur.bind(this)),t.addEventListener("keydown",this._inputKeyDown.bind(this)),t.addEventListener("search",this._inputSearch.bind(this)),this.params.autocomplete&&t.addEventListener("keyup",this._inputKeyUp.bind(this))}_inputFocus(t){this.rebuildOptionsList()}_filter(){this.params.filterRemote?(clearTimeout(this.filterTimeout),this.filterTimeout=setTimeout((()=>{this.rebuildOptionsList()}),this.params.filterDelay)):this._filterList()}_inputClick(t){t.stopPropagation()}_inputBlur(t){this.blurable&&(this.popup?this.popup.hide():this._resolveValue(!0))}_inputSearch(){this._clearChoices()}_inputKeyDown(t){switch(t.keyCode){case 38:this._keyUp(t);break;case 40:this._keyDown(t);break;case 37:case 39:this._keySide(t);break;case 13:this._keyEnter();break;case 27:this._keyEsc();break;case 36:case 35:this._keyHomeEnd(t);break;case 9:this._keyTab(t);break;default:this._keySelectLetter(t)}}_inputKeyUp(t){switch(t.keyCode){case 38:case 37:case 39:case 40:case 13:case 27:break;default:this._keyAutoCompLetter(t)}}_preventPopupBlur(){this.popup&&this.popup.blockHide(),setTimeout((()=>{this.popup&&this.popup.restoreHide()}),10)}_preventBlur(){this.blurable=!1,setTimeout((()=>{this.blurable=!0}),10)}_keyTab(t){this.params.autocomplete&&"typing"===this.lastAction?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem,!0)}_keyUp(t){var e=this.displayItems.indexOf(this.focusedItem);("editor"==this.params.verticalNavigation||"hybrid"==this.params.verticalNavigation&&e)&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),e>0&&this._focusItem(this.displayItems[e-1]))}_keyDown(t){var e=this.displayItems.indexOf(this.focusedItem);("editor"==this.params.verticalNavigation||"hybrid"==this.params.verticalNavigation&&e<this.displayItems.length-1)&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),e<this.displayItems.length-1&&(-1==e?this._focusItem(this.displayItems[0]):this._focusItem(this.displayItems[e+1])))}_keySide(t){this.params.autocomplete||(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())}_keyEnter(t){this.params.autocomplete&&"typing"===this.lastAction?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem)}_keyEsc(t){this._cancel()}_keyHomeEnd(t){this.params.autocomplete&&t.stopImmediatePropagation()}_keySelectLetter(t){this.params.autocomplete||(t.preventDefault(),t.keyCode>=38&&t.keyCode<=90&&this._scrollToValue(t.keyCode))}_keyAutoCompLetter(t){this._filter(),this.lastAction="typing",this.typing=!0}_scrollToValue(t){clearTimeout(this.filterTimeout);var e=String.fromCharCode(t).toLowerCase();this.filterTerm+=e.toLowerCase();var n=this.displayItems.find((t=>"undefined"!==typeof t.label&&t.label.toLowerCase().startsWith(this.filterTerm)));n&&this._focusItem(n),this.filterTimeout=setTimeout((()=>{this.filterTerm=""}),800)}_focusItem(t){this.lastAction="focus",this.focusedItem&&this.focusedItem.element&&this.focusedItem.element.classList.remove("focused"),this.focusedItem=t,t&&t.element&&(t.element.classList.add("focused"),t.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}))}headerFilterInitialListGen(){this._generateOptions(!0)}rebuildOptionsList(){this._generateOptions().then(this._sortOptions.bind(this)).then(this._buildList.bind(this)).then(this._showList.bind(this)).catch((t=>{Number.isInteger(t)||console.error("List generation error",t)}))}_filterList(){this._buildList(this._filterOptions()),this._showList()}_generateOptions(t){var e=[],n=++this.listIteration;return this.filtered=!1,this.params.values?e=this.params.values:this.params.valuesURL?e=this._ajaxRequest(this.params.valuesURL,this.input.value):"function"===typeof this.params.valuesLookup?e=this.params.valuesLookup(this.cell,this.input.value):this.params.valuesLookup&&(e=this._uniqueColumnValues(this.params.valuesLookupField)),e instanceof Promise?(t||this._addPlaceholder(this.params.placeholderLoading),e.then().then((t=>this.listIteration===n?this._parseList(t):Promise.reject(n)))):Promise.resolve(this._parseList(e))}_addPlaceholder(t){var e=document.createElement("div");"function"===typeof t&&(t=t(this.cell.getComponent(),this.listEl)),t&&(this._clearList(),t instanceof HTMLElement?e=t:(e.classList.add("tabulator-edit-list-placeholder"),e.innerHTML=t),this.listEl.appendChild(e),this._showList())}_ajaxRequest(t,e){return t=h(t,{},this.params.filterRemote?{term:e}:{}),fetch(t).then((t=>t.ok?t.json().catch((t=>(console.warn("List Ajax Load Error - Invalid JSON returned",t),Promise.reject(t)))):(console.error("List Ajax Load Error - Connection Error: "+t.status,t.statusText),Promise.reject(t)))).catch((t=>(console.error("List Ajax Load Error - Connection Error: ",t),Promise.reject(t))))}_uniqueColumnValues(t){var e,n={},r=this.table.getData(this.params.valuesLookup);return(e=t?this.table.columnManager.getColumnByField(t):this.cell.getColumn()._getSelf())?r.forEach((t=>{var r=e.getFieldValue(t);null!==r&&"undefined"!==typeof r&&""!==r&&(n[r]=!0)})):(console.warn("unable to find matching column to create select lookup list:",t),n=[]),Object.keys(n)}_parseList(t){var e=[];return Array.isArray(t)||(t=Object.entries(t).map((t=>{let e=r(t,2),n=e[0];return{label:e[1],value:n}}))),t.forEach((t=>{"object"!==typeof t&&(t={label:t,value:t}),this._parseListItem(t,e,0)})),!this.currentItems.length&&this.params.freetext&&(this.input.value=this.initialValues,this.typing=!0,this.lastAction="typing"),this.data=e,e}_parseListItem(t,e,n){var r={};t.options?r=this._parseListGroup(t,n+1):(r={label:t.label,value:t.value,itemParams:t.itemParams,elementAttributes:t.elementAttributes,element:!1,selected:!1,visible:!0,level:n,original:t},this.initialValues&&this.initialValues.indexOf(t.value)>-1&&this._chooseItem(r,!0)),e.push(r)}_parseListGroup(t,e){var n={label:t.label,group:!0,itemParams:t.itemParams,elementAttributes:t.elementAttributes,element:!1,visible:!0,level:e,options:[],original:t};return t.options.forEach((t=>{this._parseListItem(t,n.options,e)})),n}_sortOptions(t){var e;return this.params.sort&&(e="function"===typeof this.params.sort?this.params.sort:this._defaultSortFunction.bind(this),this._sortGroup(e,t)),t}_sortGroup(t,e){e.sort(((e,n)=>t(e.label,n.label,e.value,n.value,e.original,n.original))),e.forEach((e=>{e.group&&this._sortGroup(t,e.options)}))}_defaultSortFunction(t,e){var n,r,i,o,a,s=0,l=/(\d+)|(\D+)/g,u=/\d/,c=0;if("desc"===this.params.sort){var d=[e,t];t=d[0],e=d[1]}if(t||0===t){if(e||0===e){if(isFinite(t)&&isFinite(e))return t-e;if((n=String(t).toLowerCase())===(r=String(e).toLowerCase()))return 0;if(!u.test(n)||!u.test(r))return n>r?1:-1;for(n=n.match(l),r=r.match(l),a=n.length>r.length?r.length:n.length;s<a;)if((i=n[s])!==(o=r[s++]))return isFinite(i)&&isFinite(o)?("0"===i.charAt(0)&&(i="."+i),"0"===o.charAt(0)&&(o="."+o),i-o):i>o?1:-1;return n.length>r.length}c=1}else c=e||0===e?-1:0;return c}_filterOptions(){var t=this.params.filterFunc||this._defaultFilterFunc,e=this.input.value;return e?(this.filtered=!0,this.data.forEach((n=>{this._filterItem(t,e,n)}))):this.filtered=!1,this.data}_filterItem(t,e,n){var r=!1;return n.group?(n.options.forEach((n=>{this._filterItem(t,e,n)&&(r=!0)})),n.visible=r):n.visible=t(e,n.label,n.value,n.original),n.visible}_defaultFilterFunc(t,e,n,r){return t=String(t).toLowerCase(),null!==e&&"undefined"!==typeof e&&(String(e).toLowerCase().indexOf(t)>-1||String(n).toLowerCase().indexOf(t)>-1)}_clearList(){for(;this.listEl.firstChild;)this.listEl.removeChild(this.listEl.firstChild);this.displayItems=[]}_buildList(t){this._clearList(),t.forEach((t=>{this._buildItem(t)})),this.displayItems.length||this._addPlaceholder(this.params.placeholderEmpty)}_buildItem(t){var e,n=t.element;if(!this.filtered||t.visible){if(!n){if((n=document.createElement("div")).tabIndex=0,(e=this.params.itemFormatter?this.params.itemFormatter(t.label,t.value,t.original,n):t.label)instanceof HTMLElement?n.appendChild(e):n.innerHTML=e,t.group?n.classList.add("tabulator-edit-list-group"):n.classList.add("tabulator-edit-list-item"),n.classList.add("tabulator-edit-list-group-level-"+t.level),t.elementAttributes&&"object"==typeof t.elementAttributes)for(let e in t.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),n.setAttribute(e,this.input.getAttribute(e)+t.elementAttributes["+"+e])):n.setAttribute(e,t.elementAttributes[e]);t.group?n.addEventListener("click",this._groupClick.bind(this,t)):n.addEventListener("click",this._itemClick.bind(this,t)),n.addEventListener("mousedown",this._preventBlur.bind(this)),t.element=n}this._styleItem(t),this.listEl.appendChild(n),t.group?t.options.forEach((t=>{this._buildItem(t)})):this.displayItems.push(t)}}_showList(){var t=this.popup&&this.popup.isVisible();if(this.input.parentNode){if(this.params.autocomplete&&""===this.input.value&&!this.params.listOnEmpty)return void(this.popup&&this.popup.hide(!0));this._setListWidth(),this.popup||(this.popup=this.edit.popup(this.listEl)),this.popup.show(this.cell.getElement(),"bottom"),t||setTimeout((()=>{this.popup.hideOnBlur(this._resolveValue.bind(this,!0))}),10)}}_styleItem(t){t&&t.element&&(t.selected?t.element.classList.add("active"):t.element.classList.remove("active"))}_itemClick(t,e){e.stopPropagation(),this._chooseItem(t)}_groupClick(t,e){e.stopPropagation()}_cancel(){this.popup.hide(!0),this.actions.cancel()}_clearChoices(){this.typing=!0,this.currentItems.forEach((t=>{t.selected=!1,this._styleItem(t)})),this.currentItems=[],this.focusedItem=null}_chooseItem(t,e){var n;this.typing=!1,this.params.multiselect?((n=this.currentItems.indexOf(t))>-1?(this.currentItems.splice(n,1),t.selected=!1):(this.currentItems.push(t),t.selected=!0),this.input.value=this.currentItems.map((t=>t.label)).join(","),this._styleItem(t)):(this.currentItems=[t],t.selected=!0,this.input.value=t.label,this._styleItem(t),e||this._resolveValue()),this._focusItem(t)}_resolveValue(t){var e,n;if(this.popup&&this.popup.hide(!0),this.params.multiselect)e=this.currentItems.map((t=>t.value));else if(t&&this.params.autocomplete&&this.typing){if(!(this.params.freetext||this.params.allowEmpty&&""===this.input.value))return void this.actions.cancel();e=this.input.value}else e=this.currentItems[0]?this.currentItems[0].value:null===(n=Array.isArray(this.initialValues)?this.initialValues[0]:this.initialValues)||"undefined"===typeof n||""===n?n:this.params.emptyValue;""===e&&(e=this.params.emptyValue),this.actions.success(e),this.isFilter&&(this.initialValues=e&&!Array.isArray(e)?[e]:e,this.currentItems=[])}}var A={input:function(t,e,n,r,i){var o=t.getValue(),a=document.createElement("input");if(a.setAttribute("type",i.search?"search":"text"),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let l in i.elementAttributes)"+"==l.charAt(0)?(l=l.slice(1),a.setAttribute(l,a.getAttribute(l)+i.elementAttributes["+"+l])):a.setAttribute(l,i.elementAttributes[l]);function s(t){(null===o||"undefined"===typeof o)&&""!==a.value||a.value!==o?n(a.value)&&(o=a.value):r()}return a.value="undefined"!==typeof o?o:"",e((function(){"cell"===t.getType()&&(a.focus({preventScroll:!0}),a.style.height="100%",i.selectContents&&a.select())})),a.addEventListener("change",s),a.addEventListener("blur",s),a.addEventListener("keydown",(function(t){switch(t.keyCode){case 13:s();break;case 27:r();break;case 35:case 36:t.stopPropagation()}})),i.mask&&T(a,i),a},textarea:function(t,e,n,r,i){var o=t.getValue(),a=i.verticalNavigation||"hybrid",s=String(null!==o&&"undefined"!==typeof o?o:""),l=document.createElement("textarea"),u=0;if(l.style.display="block",l.style.padding="2px",l.style.height="100%",l.style.width="100%",l.style.boxSizing="border-box",l.style.whiteSpace="pre-wrap",l.style.resize="none",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let d in i.elementAttributes)"+"==d.charAt(0)?(d=d.slice(1),l.setAttribute(d,l.getAttribute(d)+i.elementAttributes["+"+d])):l.setAttribute(d,i.elementAttributes[d]);function c(e){(null===o||"undefined"===typeof o)&&""!==l.value||l.value!==o?(n(l.value)&&(o=l.value),setTimeout((function(){t.getRow().normalizeHeight()}),300)):r()}return l.value=s,e((function(){"cell"===t.getType()&&(l.focus({preventScroll:!0}),l.style.height="100%",l.scrollHeight,l.style.height=l.scrollHeight+"px",t.getRow().normalizeHeight(),i.selectContents&&l.select())})),l.addEventListener("change",c),l.addEventListener("blur",c),l.addEventListener("keyup",(function(){l.style.height="";var e=l.scrollHeight;l.style.height=e+"px",e!=u&&(u=e,t.getRow().normalizeHeight())})),l.addEventListener("keydown",(function(t){switch(t.keyCode){case 13:t.shiftKey&&i.shiftEnterSubmit&&c();break;case 27:r();break;case 38:("editor"==a||"hybrid"==a&&l.selectionStart)&&(t.stopImmediatePropagation(),t.stopPropagation());break;case 40:("editor"==a||"hybrid"==a&&l.selectionStart!==l.value.length)&&(t.stopImmediatePropagation(),t.stopPropagation());break;case 35:case 36:t.stopPropagation()}})),i.mask&&T(l,i),l},number:function(t,e,n,r,i){var o=t.getValue(),a=i.verticalNavigation||"editor",s=document.createElement("input");if(s.setAttribute("type","number"),"undefined"!=typeof i.max&&s.setAttribute("max",i.max),"undefined"!=typeof i.min&&s.setAttribute("min",i.min),"undefined"!=typeof i.step&&s.setAttribute("step",i.step),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let c in i.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),s.setAttribute(c,s.getAttribute(c)+i.elementAttributes["+"+c])):s.setAttribute(c,i.elementAttributes[c]);s.value=o;var l=function(t){u()};function u(){var t=s.value;isNaN(t)||""===t||(t=Number(t)),t!==o?n(t)&&(o=t):r()}return e((function(){"cell"===t.getType()&&(s.removeEventListener("blur",l),s.focus({preventScroll:!0}),s.style.height="100%",s.addEventListener("blur",l),i.selectContents&&s.select())})),s.addEventListener("keydown",(function(t){switch(t.keyCode){case 13:u();break;case 27:r();break;case 38:case 40:"editor"==a&&(t.stopImmediatePropagation(),t.stopPropagation());break;case 35:case 36:t.stopPropagation()}})),i.mask&&T(s,i),s},range:function(t,e,n,r,i){var o=t.getValue(),a=document.createElement("input");if(a.setAttribute("type","range"),"undefined"!=typeof i.max&&a.setAttribute("max",i.max),"undefined"!=typeof i.min&&a.setAttribute("min",i.min),"undefined"!=typeof i.step&&a.setAttribute("step",i.step),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let l in i.elementAttributes)"+"==l.charAt(0)?(l=l.slice(1),a.setAttribute(l,a.getAttribute(l)+i.elementAttributes["+"+l])):a.setAttribute(l,i.elementAttributes[l]);function s(){var t=a.value;isNaN(t)||""===t||(t=Number(t)),t!=o?n(t)&&(o=t):r()}return a.value=o,e((function(){"cell"===t.getType()&&(a.focus({preventScroll:!0}),a.style.height="100%")})),a.addEventListener("blur",(function(t){s()})),a.addEventListener("keydown",(function(t){switch(t.keyCode){case 13:s();break;case 27:r()}})),a},date:function(t,e,n,r,i){var o=i.format,a=i.verticalNavigation||"editor",s=o?window.DateTime||luxon.DateTime:null,l=t.getValue(),u=document.createElement("input");function c(t){return(s.isDateTime(t)?t:"iso"===o?s.fromISO(String(t)):s.fromFormat(String(t),o)).toFormat("yyyy-MM-dd")}if(u.type="date",u.style.padding="4px",u.style.width="100%",u.style.boxSizing="border-box",i.max&&u.setAttribute("max",o?c(i.max):i.max),i.min&&u.setAttribute("min",o?c(i.min):i.min),i.elementAttributes&&"object"==typeof i.elementAttributes)for(let h in i.elementAttributes)"+"==h.charAt(0)?(h=h.slice(1),u.setAttribute(h,u.getAttribute(h)+i.elementAttributes["+"+h])):u.setAttribute(h,i.elementAttributes[h]);function d(){var t,e=u.value;if((null===l||"undefined"===typeof l)&&""!==e||e!==l){if(e&&o)switch(t=s.fromFormat(String(e),"yyyy-MM-dd"),o){case!0:e=t;break;case"iso":e=t.toISO();break;default:e=t.toFormat(o)}n(e)&&(l=u.value)}else r()}return l="undefined"!==typeof l?l:"",o&&(s?l=c(l):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),u.value=l,e((function(){"cell"===t.getType()&&(u.focus({preventScroll:!0}),u.style.height="100%",i.selectContents&&u.select())})),u.addEventListener("blur",(function(t){(t.relatedTarget||t.rangeParent||t.explicitOriginalTarget!==u)&&d()})),u.addEventListener("keydown",(function(t){switch(t.keyCode){case 13:d();break;case 27:r();break;case 35:case 36:t.stopPropagation();break;case 38:case 40:"editor"==a&&(t.stopImmediatePropagation(),t.stopPropagation())}})),u},time:function(t,e,n,r,i){var o,a=i.format,s=i.verticalNavigation||"editor",l=a?window.DateTime||luxon.DateTime:null,u=t.getValue(),c=document.createElement("input");if(c.type="time",c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let h in i.elementAttributes)"+"==h.charAt(0)?(h=h.slice(1),c.setAttribute(h,c.getAttribute(h)+i.elementAttributes["+"+h])):c.setAttribute(h,i.elementAttributes[h]);function d(){var t,e=c.value;if((null===u||"undefined"===typeof u)&&""!==e||e!==u){if(e&&a)switch(t=l.fromFormat(String(e),"hh:mm"),a){case!0:e=t;break;case"iso":e=t.toISO();break;default:e=t.toFormat(a)}n(e)&&(u=c.value)}else r()}return u="undefined"!==typeof u?u:"",a&&(l?(o=l.isDateTime(u)?u:"iso"===a?l.fromISO(String(u)):l.fromFormat(String(u),a),u=o.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),console.log("val",u),c.value=u,e((function(){"cell"==t.getType()&&(c.focus({preventScroll:!0}),c.style.height="100%",i.selectContents&&c.select())})),c.addEventListener("blur",(function(t){(t.relatedTarget||t.rangeParent||t.explicitOriginalTarget!==c)&&d()})),c.addEventListener("keydown",(function(t){switch(t.keyCode){case 13:d();break;case 27:r();break;case 35:case 36:t.stopPropagation();break;case 38:case 40:"editor"==s&&(t.stopImmediatePropagation(),t.stopPropagation())}})),c},datetime:function(t,e,n,r,i){var o,a=i.format,s=i.verticalNavigation||"editor",l=a?window.DateTime||luxon.DateTime:null,u=t.getValue(),c=document.createElement("input");if(c.type="datetime-local",c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let h in i.elementAttributes)"+"==h.charAt(0)?(h=h.slice(1),c.setAttribute(h,c.getAttribute(h)+i.elementAttributes["+"+h])):c.setAttribute(h,i.elementAttributes[h]);function d(){var t,e=c.value;if((null===u||"undefined"===typeof u)&&""!==e||e!==u){if(e&&a)switch(t=l.fromISO(String(e)),a){case!0:e=t;break;case"iso":e=t.toISO();break;default:e=t.toFormat(a)}n(e)&&(u=c.value)}else r()}return u="undefined"!==typeof u?u:"",a&&(l?(o=l.isDateTime(u)?u:"iso"===a?l.fromISO(String(u)):l.fromFormat(String(u),a),u=o.toFormat("yyyy-MM-dd")+"T"+o.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),c.value=u,e((function(){"cell"===t.getType()&&(c.focus({preventScroll:!0}),c.style.height="100%",i.selectContents&&c.select())})),c.addEventListener("blur",(function(t){(t.relatedTarget||t.rangeParent||t.explicitOriginalTarget!==c)&&d()})),c.addEventListener("keydown",(function(t){switch(t.keyCode){case 13:d();break;case 27:r();break;case 35:case 36:t.stopPropagation();break;case 38:case 40:"editor"==s&&(t.stopImmediatePropagation(),t.stopPropagation())}})),c},select:function(t,e,n,r,i){return this.deprecationMsg("The select editor has been deprecated, please use the new list editor"),new M(this,t,e,n,r,i).input},list:function(t,e,n,r,i){return new M(this,t,e,n,r,i).input},autocomplete:function(t,e,n,r,i){return this.deprecationMsg("The autocomplete editor has been deprecated, please use the new list editor with the 'autocomplete' editorParam"),i.autocomplete=!0,new M(this,t,e,n,r,i).input},star:function(t,e,n,r,i){var o=this,a=t.getElement(),s=t.getValue(),l=a.getElementsByTagName("svg").length||5,u=a.getElementsByTagName("svg")[0]?a.getElementsByTagName("svg")[0].getAttribute("width"):14,c=[],d=document.createElement("div"),h=document.createElementNS("http://www.w3.org/2000/svg","svg");function f(t){c.forEach((function(e,n){n<t?("ie"==o.table.browser?e.setAttribute("class","tabulator-star-active"):e.classList.replace("tabulator-star-inactive","tabulator-star-active"),e.innerHTML='<polygon fill="#488CE9" stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>'):("ie"==o.table.browser?e.setAttribute("class","tabulator-star-inactive"):e.classList.replace("tabulator-star-active","tabulator-star-inactive"),e.innerHTML='<polygon fill="#010155" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>')}))}function p(t){var e=document.createElement("span"),r=h.cloneNode(!0);c.push(r),e.addEventListener("mouseenter",(function(e){e.stopPropagation(),e.stopImmediatePropagation(),f(t)})),e.addEventListener("mousemove",(function(t){t.stopPropagation(),t.stopImmediatePropagation()})),e.addEventListener("click",(function(e){e.stopPropagation(),e.stopImmediatePropagation(),n(t),a.blur()})),e.appendChild(r),d.appendChild(e)}function m(t){s=t,f(t)}if(a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",d.style.verticalAlign="middle",d.style.display="inline-block",d.style.padding="4px",h.setAttribute("width",u),h.setAttribute("height",u),h.setAttribute("viewBox","0 0 512 512"),h.setAttribute("xml:space","preserve"),h.style.padding="0 1px",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let b in i.elementAttributes)"+"==b.charAt(0)?(b=b.slice(1),d.setAttribute(b,d.getAttribute(b)+i.elementAttributes["+"+b])):d.setAttribute(b,i.elementAttributes[b]);for(var g=1;g<=l;g++)p(g);return f(s=Math.min(parseInt(s),l)),d.addEventListener("mousemove",(function(t){f(0)})),d.addEventListener("click",(function(t){n(0)})),a.addEventListener("blur",(function(t){r()})),a.addEventListener("keydown",(function(t){switch(t.keyCode){case 39:m(s+1);break;case 37:m(s-1);break;case 13:n(s);break;case 27:r()}})),d},progress:function(t,e,n,r,i){var o,a,s=t.getElement(),l="undefined"===typeof i.max?s.getElementsByTagName("div")[0]&&s.getElementsByTagName("div")[0].getAttribute("max")||100:i.max,u="undefined"===typeof i.min?s.getElementsByTagName("div")[0]&&s.getElementsByTagName("div")[0].getAttribute("min")||0:i.min,c=(l-u)/100,d=t.getValue()||0,h=document.createElement("div"),f=document.createElement("div");function p(){var t=window.getComputedStyle(s,null),e=c*Math.round(f.offsetWidth/((s.clientWidth-parseInt(t.getPropertyValue("padding-left"))-parseInt(t.getPropertyValue("padding-right")))/100))+u;n(e),s.setAttribute("aria-valuenow",e),s.setAttribute("aria-label",d)}if(h.style.position="absolute",h.style.right="0",h.style.top="0",h.style.bottom="0",h.style.width="5px",h.classList.add("tabulator-progress-handle"),f.style.display="inline-block",f.style.position="relative",f.style.height="100%",f.style.backgroundColor="#488CE9",f.style.maxWidth="100%",f.style.minWidth="0%",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let m in i.elementAttributes)"+"==m.charAt(0)?(m=m.slice(1),f.setAttribute(m,f.getAttribute(m)+i.elementAttributes["+"+m])):f.setAttribute(m,i.elementAttributes[m]);return s.style.padding="4px 4px",d=Math.min(parseFloat(d),l),d=Math.max(parseFloat(d),u),d=Math.round((d-u)/c),f.style.width=d+"%",s.setAttribute("aria-valuemin",u),s.setAttribute("aria-valuemax",l),f.appendChild(h),h.addEventListener("mousedown",(function(t){o=t.screenX,a=f.offsetWidth})),h.addEventListener("mouseover",(function(){h.style.cursor="ew-resize"})),s.addEventListener("mousemove",(function(t){o&&(f.style.width=a+t.screenX-o+"px")})),s.addEventListener("mouseup",(function(t){o&&(t.stopPropagation(),t.stopImmediatePropagation(),o=!1,a=!1,p())})),s.addEventListener("keydown",(function(t){switch(t.keyCode){case 39:t.preventDefault(),f.style.width=f.clientWidth+s.clientWidth/100+"px";break;case 37:t.preventDefault(),f.style.width=f.clientWidth-s.clientWidth/100+"px";break;case 9:case 13:p();break;case 27:r()}})),s.addEventListener("blur",(function(){r()})),f},tickCross:function(t,e,n,r,i){var o=t.getValue(),a=document.createElement("input"),s=i.tristate,l="undefined"===typeof i.indeterminateValue?null:i.indeterminateValue,u=!1,c=Object.keys(i).includes("trueValue"),d=Object.keys(i).includes("falseValue");if(a.setAttribute("type","checkbox"),a.style.marginTop="5px",a.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let f in i.elementAttributes)"+"==f.charAt(0)?(f=f.slice(1),a.setAttribute(f,a.getAttribute(f)+i.elementAttributes["+"+f])):a.setAttribute(f,i.elementAttributes[f]);function h(t){var e=a.checked;return c&&e?e=i.trueValue:d&&!e&&(e=i.falseValue),s?t?u?l:e:a.checked&&!u?(a.checked=!1,a.indeterminate=!0,u=!0,l):(u=!1,e):e}return a.value=o,!s||"undefined"!==typeof o&&o!==l&&""!==o||(u=!0,a.indeterminate=!0),"firefox"!=this.table.browser&&"safari"!=this.table.browser&&e((function(){"cell"===t.getType()&&a.focus({preventScroll:!0})})),a.checked=c?o===i.trueValue:!0===o||"true"===o||"True"===o||1===o,a.addEventListener("change",(function(t){n(h())})),a.addEventListener("blur",(function(t){n(h(!0))})),a.addEventListener("keydown",(function(t){13==t.keyCode&&n(h()),27==t.keyCode&&r()})),a}};class D extends l{constructor(t){super(t),this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[],this.editors=D.editors,this.registerColumnOption("editable"),this.registerColumnOption("editor"),this.registerColumnOption("editorParams"),this.registerColumnOption("cellEditing"),this.registerColumnOption("cellEdited"),this.registerColumnOption("cellEditCancelled"),this.registerTableOption("editTriggerEvent","focus"),this.registerTableFunction("getEditedCells",this.getEditedCells.bind(this)),this.registerTableFunction("clearCellEdited",this.clearCellEdited.bind(this)),this.registerTableFunction("navigatePrev",this.navigatePrev.bind(this)),this.registerTableFunction("navigateNext",this.navigateNext.bind(this)),this.registerTableFunction("navigateLeft",this.navigateLeft.bind(this)),this.registerTableFunction("navigateRight",this.navigateRight.bind(this)),this.registerTableFunction("navigateUp",this.navigateUp.bind(this)),this.registerTableFunction("navigateDown",this.navigateDown.bind(this)),this.registerComponentFunction("cell","isEdited",this.cellIsEdited.bind(this)),this.registerComponentFunction("cell","clearEdited",this.clearEdited.bind(this)),this.registerComponentFunction("cell","edit",this.editCell.bind(this)),this.registerComponentFunction("cell","cancelEdit",this.cellCancelEdit.bind(this)),this.registerComponentFunction("cell","navigatePrev",this.navigatePrev.bind(this)),this.registerComponentFunction("cell","navigateNext",this.navigateNext.bind(this)),this.registerComponentFunction("cell","navigateLeft",this.navigateLeft.bind(this)),this.registerComponentFunction("cell","navigateRight",this.navigateRight.bind(this)),this.registerComponentFunction("cell","navigateUp",this.navigateUp.bind(this)),this.registerComponentFunction("cell","navigateDown",this.navigateDown.bind(this))}initialize(){this.subscribe("cell-init",this.bindEditor.bind(this)),this.subscribe("cell-delete",this.clearEdited.bind(this)),this.subscribe("cell-value-changed",this.updateCellClass.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("column-delete",this.columnDeleteCheck.bind(this)),this.subscribe("row-deleting",this.rowDeleteCheck.bind(this)),this.subscribe("row-layout",this.rowEditableCheck.bind(this)),this.subscribe("data-refreshing",this.cancelEdit.bind(this)),this.subscribe("clipboard-paste",this.pasteBlocker.bind(this)),this.subscribe("keybinding-nav-prev",this.navigatePrev.bind(this,void 0)),this.subscribe("keybinding-nav-next",this.keybindingNavigateNext.bind(this)),this.subscribe("keybinding-nav-up",this.navigateUp.bind(this,void 0)),this.subscribe("keybinding-nav-down",this.navigateDown.bind(this,void 0))}pasteBlocker(t){if(this.currentCell)return!0}keybindingNavigateNext(t){var e=this.currentCell,n=this.options("tabEndNewRow");e&&(this.navigateNext(e,t)||n&&(e.getElement().firstChild.blur(),this.invalidEdit||(n=!0===n?this.table.addRow({}):"function"==typeof n?this.table.addRow(n(e.row.getComponent())):this.table.addRow(Object.assign({},n))).then((()=>{setTimeout((()=>{e.getComponent().navigateNext()}))}))))}cellIsEdited(t){return!!t.modules.edit&&t.modules.edit.edited}cellCancelEdit(t){t===this.currentCell?this.table.modules.edit.cancelEdit():console.warn("Cancel Editor Error - This cell is not currently being edited ")}updateCellClass(t){this.allowEdit(t)?t.getElement().classList.add("tabulator-editable"):t.getElement().classList.remove("tabulator-editable")}clearCellEdited(t){t||(t=this.table.modules.edit.getEditedCells()),Array.isArray(t)||(t=[t]),t.forEach((t=>{this.table.modules.edit.clearEdited(t._getSelf())}))}navigatePrev(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentCell,e=arguments.length>1?arguments[1]:void 0;var n,r;if(t){if(e&&e.preventDefault(),n=this.navigateLeft())return!0;if((r=this.table.rowManager.prevDisplayRow(t.row,!0))&&(n=this.findPrevEditableCell(r,r.cells.length)))return n.getComponent().edit(),!0}return!1}navigateNext(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentCell,e=arguments.length>1?arguments[1]:void 0;var n,r;if(t){if(e&&e.preventDefault(),n=this.navigateRight())return!0;if((r=this.table.rowManager.nextDisplayRow(t.row,!0))&&(n=this.findNextEditableCell(r,-1)))return n.getComponent().edit(),!0}return!1}navigateLeft(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentCell,e=arguments.length>1?arguments[1]:void 0;var n,r;return!!(t&&(e&&e.preventDefault(),n=t.getIndex(),r=this.findPrevEditableCell(t.row,n)))&&(r.getComponent().edit(),!0)}navigateRight(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentCell,e=arguments.length>1?arguments[1]:void 0;var n,r;return!!(t&&(e&&e.preventDefault(),n=t.getIndex(),r=this.findNextEditableCell(t.row,n)))&&(r.getComponent().edit(),!0)}navigateUp(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentCell,e=arguments.length>1?arguments[1]:void 0;var n,r;return!!(t&&(e&&e.preventDefault(),n=t.getIndex(),r=this.table.rowManager.prevDisplayRow(t.row,!0)))&&(r.cells[n].getComponent().edit(),!0)}navigateDown(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentCell,e=arguments.length>1?arguments[1]:void 0;var n,r;return!!(t&&(e&&e.preventDefault(),n=t.getIndex(),r=this.table.rowManager.nextDisplayRow(t.row,!0)))&&(r.cells[n].getComponent().edit(),!0)}findNextEditableCell(t,e){var n=!1;if(e<t.cells.length-1)for(var r=e+1;r<t.cells.length;r++){let e=t.cells[r];if(e.column.modules.edit&&a.elVisible(e.getElement())){if(this.allowEdit(e)){n=e;break}}}return n}findPrevEditableCell(t,e){var n=!1;if(e>0)for(var r=e-1;r>=0;r--){let e=t.cells[r];if(e.column.modules.edit&&a.elVisible(e.getElement())){if(this.allowEdit(e)){n=e;break}}}return n}initializeColumnCheck(t){"undefined"!==typeof t.definition.editor&&this.initializeColumn(t)}columnDeleteCheck(t){this.currentCell&&this.currentCell.column===t&&this.cancelEdit()}rowDeleteCheck(t){this.currentCell&&this.currentCell.row===t&&this.cancelEdit()}rowEditableCheck(t){t.getCells().forEach((t=>{t.column.modules.edit&&"function"===typeof t.column.modules.edit.check&&this.updateCellClass(t)}))}initializeColumn(t){var e={editor:!1,blocked:!1,check:t.definition.editable,params:t.definition.editorParams||{}};switch(typeof t.definition.editor){case"string":this.editors[t.definition.editor]?e.editor=this.editors[t.definition.editor]:console.warn("Editor Error - No such editor found: ",t.definition.editor);break;case"function":e.editor=t.definition.editor;break;case"boolean":!0===t.definition.editor&&("function"!==typeof t.definition.formatter?this.editors[t.definition.formatter]?e.editor=this.editors[t.definition.formatter]:e.editor=this.editors.input:console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",t.definition.formatter))}e.editor&&(t.modules.edit=e)}getCurrentCell(){return!!this.currentCell&&this.currentCell.getComponent()}clearEditor(t){var e,n=this.currentCell;if(this.invalidEdit=!1,n){for(this.currentCell=!1,e=n.getElement(),this.dispatch("edit-editor-clear",n,t),e.classList.remove("tabulator-editing");e.firstChild;)e.removeChild(e.firstChild);n.row.getElement().classList.remove("tabulator-editing"),n.table.element.classList.remove("tabulator-editing")}}cancelEdit(){if(this.currentCell){var t=this.currentCell,e=this.currentCell.getComponent();this.clearEditor(!0),t.setValueActual(t.getValue()),t.cellRendered(),("textarea"==t.column.definition.editor||t.column.definition.variableHeight)&&t.row.normalizeHeight(!0),t.column.definition.cellEditCancelled&&t.column.definition.cellEditCancelled.call(this.table,e),this.dispatch("edit-cancelled",t),this.dispatchExternal("cellEditCancelled",e)}}bindEditor(t){if(t.column.modules.edit){var e=this,n=t.getElement(!0);this.updateCellClass(t),n.setAttribute("tabindex",0),n.addEventListener("mousedown",(function(t){2===t.button?t.preventDefault():e.mouseClick=!0})),"dblclick"===this.options("editTriggerEvent")&&n.addEventListener("dblclick",(function(r){n.classList.contains("tabulator-editing")||(n.focus({preventScroll:!0}),e.edit(t,r,!1))})),"focus"!==this.options("editTriggerEvent")&&"click"!==this.options("editTriggerEvent")||n.addEventListener("click",(function(r){n.classList.contains("tabulator-editing")||(n.focus({preventScroll:!0}),e.edit(t,r,!1))})),"focus"===this.options("editTriggerEvent")&&n.addEventListener("focus",(function(n){e.recursionBlock||e.edit(t,n,!1)}))}}focusCellNoEvent(t,e){this.recursionBlock=!0,e&&"ie"===this.table.browser||t.getElement().focus({preventScroll:!0}),this.recursionBlock=!1}editCell(t,e){this.focusCellNoEvent(t),this.edit(t,!1,e)}focusScrollAdjust(t){if("virtual"==this.table.rowManager.getRenderMode()){var e=this.table.rowManager.element.scrollTop,n=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,r=t.row.getElement();r.offsetTop<e?this.table.rowManager.element.scrollTop-=e-r.offsetTop:r.offsetTop+r.offsetHeight>n&&(this.table.rowManager.element.scrollTop+=r.offsetTop+r.offsetHeight-n);var i=this.table.rowManager.element.scrollLeft,o=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,a=t.getElement();this.table.modExists("frozenColumns")&&(i+=parseInt(this.table.modules.frozenColumns.leftMargin||0),o-=parseInt(this.table.modules.frozenColumns.rightMargin||0)),"virtual"===this.table.options.renderHorizontal&&(i-=parseInt(this.table.columnManager.renderer.vDomPadLeft),o-=parseInt(this.table.columnManager.renderer.vDomPadLeft)),a.offsetLeft<i?this.table.rowManager.element.scrollLeft-=i-a.offsetLeft:a.offsetLeft+a.offsetWidth>o&&(this.table.rowManager.element.scrollLeft+=a.offsetLeft+a.offsetWidth-o)}}allowEdit(t){var e=!!t.column.modules.edit;if(t.column.modules.edit)switch(typeof t.column.modules.edit.check){case"function":t.row.initialized&&(e=t.column.modules.edit.check(t.getComponent()));break;case"string":e=!!t.row.data[t.column.modules.edit.check];break;case"boolean":e=t.column.modules.edit.check}return e}edit(t,e,n){var r,i,o,a=this,s=function(){},l=t.getElement(),u=!1;if(!this.currentCell){if(t.column.modules.edit.blocked)return this.mouseClick=!1,this.blur(l),!1;if(e&&e.stopPropagation(),this.allowEdit(t)||n){if(a.cancelEdit(),a.currentCell=t,this.focusScrollAdjust(t),i=t.getComponent(),this.mouseClick&&(this.mouseClick=!1,t.column.definition.cellClick&&t.column.definition.cellClick.call(this.table,e,i)),t.column.definition.cellEditing&&t.column.definition.cellEditing.call(this.table,i),this.dispatch("cell-editing",t),this.dispatchExternal("cellEditing",i),o="function"===typeof t.column.modules.edit.params?t.column.modules.edit.params(i):t.column.modules.edit.params,r=t.column.modules.edit.editor.call(a,i,(function(t){s=t}),(function(e){if(a.currentCell===t&&!u){var n=a.chain("edit-success",[t,e],!0,!0);return!0===n||"highlight"===a.table.options.validationMode?(u=!0,a.clearEditor(),t.modules.edit||(t.modules.edit={}),t.modules.edit.edited=!0,-1==a.editedCells.indexOf(t)&&a.editedCells.push(t),t.setValue(e,!0),!0===n):(u=!0,a.invalidEdit=!0,a.focusCellNoEvent(t,!0),s(),setTimeout((()=>{u=!1}),10),!1)}}),(function(){a.currentCell!==t||u||a.cancelEdit()}),o),!this.currentCell||!1===r)return this.blur(l),!1;if(!(r instanceof Node))return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",r),this.blur(l),!1;for(l.classList.add("tabulator-editing"),t.row.getElement().classList.add("tabulator-editing"),t.table.element.classList.add("tabulator-editing");l.firstChild;)l.removeChild(l.firstChild);l.appendChild(r),s();for(var c=l.children,d=0;d<c.length;d++)c[d].addEventListener("click",(function(t){t.stopPropagation()}));return!0}return this.mouseClick=!1,this.blur(l),!1}this.invalidEdit||this.currentCell===t||this.cancelEdit()}blur(t){this.confirm("edit-blur",[t])||t.blur()}getEditedCells(){var t=[];return this.editedCells.forEach((e=>{t.push(e.getComponent())})),t}clearEdited(t){var e;t.modules.edit&&t.modules.edit.edited&&(t.modules.edit.edited=!1,this.dispatch("edit-edited-clear",t)),(e=this.editedCells.indexOf(t))>-1&&this.editedCells.splice(e,1)}}D.moduleName="edit",D.editors=A;class R{constructor(t,e,n,r){this.type=t,this.columns=e,this.component=n||!1,this.indent=r||0}}class L{constructor(t,e,n,r,i){this.value=t,this.component=e||!1,this.width=n,this.height=r,this.depth=i}}class I extends l{constructor(t){super(t),this.config={},this.cloneTableStyle=!0,this.colVisProp="",this.registerTableOption("htmlOutputConfig",!1),this.registerColumnOption("htmlOutput"),this.registerColumnOption("titleHtmlOutput")}initialize(){this.registerTableFunction("getHtml",this.getHtml.bind(this))}generateExportList(t,e,n,r){var i,o;if(this.cloneTableStyle=e,this.config=t||{},this.colVisProp=r,"range"===n){var a=this.table.modules.selectRange.selectedColumns();i=!1!==this.config.columnHeaders?this.headersToExportRows(this.generateColumnGroupHeaders(a)):[],o=this.bodyToExportRows(this.rowLookup(n),this.table.modules.selectRange.selectedColumns(!0))}else i=!1!==this.config.columnHeaders?this.headersToExportRows(this.generateColumnGroupHeaders()):[],o=this.bodyToExportRows(this.rowLookup(n));return i.concat(o)}generateTable(t,e,n,r){var i=this.generateExportList(t,e,n,r);return this.generateTableElement(i)}rowLookup(t){var e=[];if("function"==typeof t)t.call(this.table).forEach((t=>{(t=this.table.rowManager.findRow(t))&&e.push(t)}));else switch(t){case!0:case"visible":e=this.table.rowManager.getVisibleRows(!1,!0);break;case"all":e=this.table.rowManager.rows;break;case"selected":e=this.table.modules.selectRow.selectedRows;break;case"range":e=this.table.modules.selectRange.selectedRows();break;default:e=this.table.options.pagination?this.table.rowManager.getDisplayRows(this.table.rowManager.displayRows.length-2):this.table.rowManager.getDisplayRows()}return Object.assign([],e)}generateColumnGroupHeaders(t){var e=[];return t||(t=!1!==this.config.columnGroups?this.table.columnManager.columns:this.table.columnManager.columnsByIndex),t.forEach((t=>{var n=this.processColumnGroup(t);n&&e.push(n)})),e}processColumnGroup(t){var e=t.columns,n=0,r={title:t.definition["title"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))]||t.definition.title,column:t,depth:1};if(e.length){if(r.subGroups=[],r.width=0,e.forEach((t=>{var e=this.processColumnGroup(t);e&&(r.width+=e.width,r.subGroups.push(e),e.depth>n&&(n=e.depth))})),r.depth+=n,!r.width)return!1}else{if(!this.columnVisCheck(t))return!1;r.width=1}return r}columnVisCheck(t){var e=t.definition[this.colVisProp];return"function"===typeof e&&(e=e.call(this.table,t.getComponent())),!1!==e&&(t.visible||!t.visible&&e)}headersToExportRows(t){var e=[],n=0,r=[];function i(t,r){var o=n-r;if("undefined"===typeof e[r]&&(e[r]=[]),t.height=t.subGroups?1:o-t.depth+1,e[r].push(t),t.height>1)for(let n=1;n<t.height;n++)"undefined"===typeof e[r+n]&&(e[r+n]=[]),e[r+n].push(!1);if(t.width>1)for(let n=1;n<t.width;n++)e[r].push(!1);t.subGroups&&t.subGroups.forEach((function(t){i(t,r+1)}))}return t.forEach((function(t){t.depth>n&&(n=t.depth)})),t.forEach((function(t){i(t,0)})),e.forEach((t=>{var e=[];t.forEach((t=>{if(t){let n="undefined"===typeof t.title?"":t.title;e.push(new L(n,t.column.getComponent(),t.width,t.height,t.depth))}else e.push(null)})),r.push(new R("header",e))})),r}bodyToExportRows(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];var n=[];return 0===e.length&&this.table.columnManager.columnsByIndex.forEach((t=>{this.columnVisCheck(t)&&e.push(t.getComponent())})),!1!==this.config.columnCalcs&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&t.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&t.push(this.table.modules.columnCalcs.botRow)),(t=t.filter((t=>{switch(t.type){case"group":return!1!==this.config.rowGroups;case"calc":return!1!==this.config.columnCalcs;case"row":return!(this.table.options.dataTree&&!1===this.config.dataTree&&t.modules.dataTree.parent)}return!0}))).forEach(((t,r)=>{var i=t.getData(this.colVisProp),o=[],a=0;switch(t.type){case"group":a=t.level,o.push(new L(t.key,t.getComponent(),e.length,1));break;case"calc":case"row":e.forEach((t=>{o.push(new L(t._column.getFieldValue(i),t,1,1))})),this.table.options.dataTree&&!1!==this.config.dataTree&&(a=t.modules.dataTree.index)}n.push(new R(t.type,o,t.getComponent(),a))})),n}generateTableElement(t){var e=document.createElement("table"),n=document.createElement("thead"),r=document.createElement("tbody"),i=this.lookupTableStyles(),o=this.table.options["rowFormatter"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],a={};return a.rowFormatter=null!==o?o:this.table.options.rowFormatter,this.table.options.dataTree&&!1!==this.config.dataTree&&this.table.modExists("columnCalcs")&&(a.treeElementField=this.table.modules.dataTree.elementField),a.groupHeader=this.table.options["groupHeader"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],a.groupHeader&&!Array.isArray(a.groupHeader)&&(a.groupHeader=[a.groupHeader]),e.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),n,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),t.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),t.forEach(((t,e)=>{let o;switch(t.type){case"header":n.appendChild(this.generateHeaderElement(t,a,i));break;case"group":r.appendChild(this.generateGroupElement(t,a,i));break;case"calc":r.appendChild(this.generateCalcElement(t,a,i));break;case"row":o=this.generateRowElement(t,a,i),this.mapElementStyles(e%2&&i.evenRow?i.evenRow:i.oddRow,o,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),r.appendChild(o)}})),n.innerHTML&&e.appendChild(n),e.appendChild(r),this.mapElementStyles(this.table.element,e,["border-top","border-left","border-right","border-bottom"]),e}lookupTableStyles(){var t={};return this.cloneTableStyle&&window.getComputedStyle&&(t.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),t.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),t.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),t.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),t.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],t.firstRow&&(t.styleCells=t.firstRow.getElementsByClassName("tabulator-cell"),t.firstCell=t.styleCells[0],t.lastCell=t.styleCells[t.styleCells.length-1])),t}generateHeaderElement(t,e,n){var r=document.createElement("tr");return t.columns.forEach((t=>{if(t){var e=document.createElement("th"),n=t.component._column.definition.cssClass?t.component._column.definition.cssClass.split(" "):[];e.colSpan=t.width,e.rowSpan=t.height,e.innerHTML=t.value,this.cloneTableStyle&&(e.style.boxSizing="border-box"),n.forEach((function(t){e.classList.add(t)})),this.mapElementStyles(t.component.getElement(),e,["text-align","border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),this.mapElementStyles(t.component._column.contentElement,e,["padding-top","padding-left","padding-right","padding-bottom"]),t.component._column.visible?this.mapElementStyles(t.component.getElement(),e,["width"]):t.component._column.definition.width&&(e.style.width=t.component._column.definition.width+"px"),t.component._column.parent&&this.mapElementStyles(t.component._column.parent.groupElement,e,["border-top"]),r.appendChild(e)}})),r}generateGroupElement(t,e,n){var r=document.createElement("tr"),i=document.createElement("td"),o=t.columns[0];return r.classList.add("tabulator-print-table-row"),e.groupHeader&&e.groupHeader[t.indent]?o.value=e.groupHeader[t.indent](o.value,t.component._group.getRowCount(),t.component._group.getData(),t.component):!1!==e.groupHeader&&(o.value=t.component._group.generator(o.value,t.component._group.getRowCount(),t.component._group.getData(),t.component)),i.colSpan=o.width,i.innerHTML=o.value,r.classList.add("tabulator-print-table-group"),r.classList.add("tabulator-group-level-"+t.indent),o.component.isVisible()&&r.classList.add("tabulator-group-visible"),this.mapElementStyles(n.firstGroup,r,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(n.firstGroup,i,["padding-top","padding-left","padding-right","padding-bottom"]),r.appendChild(i),r}generateCalcElement(t,e,n){var r=this.generateRowElement(t,e,n);return r.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(n.calcRow,r,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),r}generateRowElement(t,e,n){var r=document.createElement("tr");if(r.classList.add("tabulator-print-table-row"),t.columns.forEach(((i,o)=>{if(i){var a,s=document.createElement("td"),l=i.component._column,u=this.table,c=u.columnManager.findColumnIndex(l),d=i.value,h={modules:{},getValue:function(){return d},getField:function(){return l.definition.field},getElement:function(){return s},getType:function(){return"cell"},getColumn:function(){return l.getComponent()},getData:function(){return t.component.getData()},getRow:function(){return t.component},getTable:function(){return u},getComponent:function(){return h},column:l};if((l.definition.cssClass?l.definition.cssClass.split(" "):[]).forEach((function(t){s.classList.add(t)})),this.table.modExists("format")&&!1!==this.config.formatCells)d=this.table.modules.format.formatExportValue(h,this.colVisProp);else switch(typeof d){case"object":d=null!==d?JSON.stringify(d):"";break;case"undefined":d=""}d instanceof Node?s.appendChild(d):s.innerHTML=d,(a=n.styleCells&&n.styleCells[c]?n.styleCells[c]:n.firstCell)&&(this.mapElementStyles(a,s,["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","text-align"]),l.definition.align&&(s.style.textAlign=l.definition.align)),this.table.options.dataTree&&!1!==this.config.dataTree&&(e.treeElementField&&e.treeElementField==l.field||!e.treeElementField&&0==o)&&(t.component._row.modules.dataTree.controlEl&&s.insertBefore(t.component._row.modules.dataTree.controlEl.cloneNode(!0),s.firstChild),t.component._row.modules.dataTree.branchEl&&s.insertBefore(t.component._row.modules.dataTree.branchEl.cloneNode(!0),s.firstChild)),r.appendChild(s),h.modules.format&&h.modules.format.renderedCallback&&h.modules.format.renderedCallback()}})),e.rowFormatter&&"row"===t.type&&!1!==this.config.formatCells){Object.assign(t.component).getElement=function(){return r},e.rowFormatter(t.component)}return r}generateHTMLTable(t){var e=document.createElement("div");return e.appendChild(this.generateTableElement(t)),e.innerHTML}getHtml(t,e,n,r){var i=this.generateExportList(n||this.table.options.htmlOutputConfig,e,t,r||"htmlOutput");return this.generateHTMLTable(i)}mapElementStyles(t,e,n){if(this.cloneTableStyle&&t&&e){var r={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var i=window.getComputedStyle(t);n.forEach((function(t){e.style[r[t]]||(e.style[r[t]]=i.getPropertyValue(t))}))}}}}I.moduleName="export";var W={"=":function(t,e,n,r){return e==t},"<":function(t,e,n,r){return e<t},"<=":function(t,e,n,r){return e<=t},">":function(t,e,n,r){return e>t},">=":function(t,e,n,r){return e>=t},"!=":function(t,e,n,r){return e!=t},regex:function(t,e,n,r){return"string"==typeof t&&(t=new RegExp(t)),t.test(e)},like:function(t,e,n,r){return null===t||"undefined"===typeof t?e===t:"undefined"!==typeof e&&null!==e&&String(e).toLowerCase().indexOf(t.toLowerCase())>-1},keywords:function(t,e,n,r){var i=t.toLowerCase().split("undefined"===typeof r.separator?" ":r.separator),o=String(null===e||"undefined"===typeof e?"":e).toLowerCase(),a=[];return i.forEach((t=>{o.includes(t)&&a.push(!0)})),r.matchAll?a.length===i.length:!!a.length},starts:function(t,e,n,r){return null===t||"undefined"===typeof t?e===t:"undefined"!==typeof e&&null!==e&&String(e).toLowerCase().startsWith(t.toLowerCase())},ends:function(t,e,n,r){return null===t||"undefined"===typeof t?e===t:"undefined"!==typeof e&&null!==e&&String(e).toLowerCase().endsWith(t.toLowerCase())},in:function(t,e,n,r){return Array.isArray(t)?!t.length||t.indexOf(e)>-1:(console.warn("Filter Error - filter value is not an array:",t),!1)}};class z extends l{constructor(t){super(t),this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1,this.tableInitialized=!1,this.registerTableOption("filterMode","local"),this.registerTableOption("initialFilter",!1),this.registerTableOption("initialHeaderFilter",!1),this.registerTableOption("headerFilterLiveFilterDelay",300),this.registerTableOption("placeholderHeaderFilter",!1),this.registerColumnOption("headerFilter"),this.registerColumnOption("headerFilterPlaceholder"),this.registerColumnOption("headerFilterParams"),this.registerColumnOption("headerFilterEmptyCheck"),this.registerColumnOption("headerFilterFunc"),this.registerColumnOption("headerFilterFuncParams"),this.registerColumnOption("headerFilterLiveFilter"),this.registerTableFunction("searchRows",this.searchRows.bind(this)),this.registerTableFunction("searchData",this.searchData.bind(this)),this.registerTableFunction("setFilter",this.userSetFilter.bind(this)),this.registerTableFunction("refreshFilter",this.userRefreshFilter.bind(this)),this.registerTableFunction("addFilter",this.userAddFilter.bind(this)),this.registerTableFunction("getFilters",this.getFilters.bind(this)),this.registerTableFunction("setHeaderFilterFocus",this.userSetHeaderFilterFocus.bind(this)),this.registerTableFunction("getHeaderFilterValue",this.userGetHeaderFilterValue.bind(this)),this.registerTableFunction("setHeaderFilterValue",this.userSetHeaderFilterValue.bind(this)),this.registerTableFunction("getHeaderFilters",this.getHeaderFilters.bind(this)),this.registerTableFunction("removeFilter",this.userRemoveFilter.bind(this)),this.registerTableFunction("clearFilter",this.userClearFilter.bind(this)),this.registerTableFunction("clearHeaderFilter",this.userClearHeaderFilter.bind(this)),this.registerComponentFunction("column","headerFilterFocus",this.setHeaderFilterFocus.bind(this)),this.registerComponentFunction("column","reloadHeaderFilter",this.reloadHeaderFilter.bind(this)),this.registerComponentFunction("column","getHeaderFilterValue",this.getHeaderFilterValue.bind(this)),this.registerComponentFunction("column","setHeaderFilterValue",this.setHeaderFilterValue.bind(this))}initialize(){this.subscribe("column-init",this.initializeColumnHeaderFilter.bind(this)),this.subscribe("column-width-fit-before",this.hideHeaderFilterElements.bind(this)),this.subscribe("column-width-fit-after",this.showHeaderFilterElements.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.subscribe("placeholder",this.generatePlaceholder.bind(this)),"remote"===this.table.options.filterMode&&this.subscribe("data-params",this.remoteFilterParams.bind(this)),this.registerDataHandler(this.filter.bind(this),10)}tableBuilt(){this.table.options.initialFilter&&this.setFilter(this.table.options.initialFilter),this.table.options.initialHeaderFilter&&this.table.options.initialHeaderFilter.forEach((t=>{var e=this.table.columnManager.findColumn(t.field);if(!e)return console.warn("Column Filter Error - No matching column found:",t.field),!1;this.setHeaderFilterValue(e,t.value)})),this.tableInitialized=!0}remoteFilterParams(t,e,n,r){return r.filter=this.getFilters(!0,!0),r}generatePlaceholder(t){if(this.table.options.placeholderHeaderFilter&&Object.keys(this.headerFilters).length)return this.table.options.placeholderHeaderFilter}userSetFilter(t,e,n,r){this.setFilter(t,e,n,r),this.refreshFilter()}userRefreshFilter(){this.refreshFilter()}userAddFilter(t,e,n,r){this.addFilter(t,e,n,r),this.refreshFilter()}userSetHeaderFilterFocus(t){var e=this.table.columnManager.findColumn(t);if(!e)return console.warn("Column Filter Focus Error - No matching column found:",t),!1;this.setHeaderFilterFocus(e)}userGetHeaderFilterValue(t){var e=this.table.columnManager.findColumn(t);if(e)return this.getHeaderFilterValue(e);console.warn("Column Filter Error - No matching column found:",t)}userSetHeaderFilterValue(t,e){var n=this.table.columnManager.findColumn(t);if(!n)return console.warn("Column Filter Error - No matching column found:",t),!1;this.setHeaderFilterValue(n,e)}userRemoveFilter(t,e,n){this.removeFilter(t,e,n),this.refreshFilter()}userClearFilter(t){this.clearFilter(t),this.refreshFilter()}userClearHeaderFilter(){this.clearHeaderFilter(),this.refreshFilter()}searchRows(t,e,n){return this.search("rows",t,e,n)}searchData(t,e,n){return this.search("data",t,e,n)}initializeColumnHeaderFilter(t){t.definition.headerFilter&&this.initializeColumn(t)}initializeColumn(t,e){var n=this,r=t.getField();t.modules.filter={success:function(e){var i,o="input"==t.modules.filter.tagType&&"text"==t.modules.filter.attrType||"textarea"==t.modules.filter.tagType?"partial":"match",a="",s="";if("undefined"===typeof t.modules.filter.prevSuccess||t.modules.filter.prevSuccess!==e){if(t.modules.filter.prevSuccess=e,t.modules.filter.emptyFunc(e))delete n.headerFilters[r];else{switch(t.modules.filter.value=e,typeof t.definition.headerFilterFunc){case"string":z.filters[t.definition.headerFilterFunc]?(a=t.definition.headerFilterFunc,i=function(n){var r=t.definition.headerFilterFuncParams||{},i=t.getFieldValue(n);return r="function"===typeof r?r(e,i,n):r,z.filters[t.definition.headerFilterFunc](e,i,n,r)}):console.warn("Header Filter Error - Matching filter function not found: ",t.definition.headerFilterFunc);break;case"function":a=i=function(n){var r=t.definition.headerFilterFuncParams||{},i=t.getFieldValue(n);return r="function"===typeof r?r(e,i,n):r,t.definition.headerFilterFunc(e,i,n,r)}}if(!i)if("partial"===o)i=function(n){var r=t.getFieldValue(n);return"undefined"!==typeof r&&null!==r&&String(r).toLowerCase().indexOf(String(e).toLowerCase())>-1},a="like";else i=function(n){return t.getFieldValue(n)==e},a="=";n.headerFilters[r]={value:e,func:i,type:a}}t.modules.filter.value=e,s=JSON.stringify(n.headerFilters),n.prevHeaderFilterChangeCheck!==s&&(n.prevHeaderFilterChangeCheck=s,n.trackChanges(),n.refreshFilter())}return!0},attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(t)}generateHeaderFilterElement(t,e,n){var r,i,o,a,s,l,u,c,d=this,h=t.modules.filter.success,f=t.getField();if(t.modules.filter.value=e,t.modules.filter.headerElement&&t.modules.filter.headerElement.parentNode&&t.contentElement.removeChild(t.modules.filter.headerElement.parentNode),f){switch(t.modules.filter.emptyFunc=t.definition.headerFilterEmptyCheck||function(t){return!t&&0!==t},(r=document.createElement("div")).classList.add("tabulator-header-filter"),typeof t.definition.headerFilter){case"string":d.table.modules.edit.editors[t.definition.headerFilter]?(i=d.table.modules.edit.editors[t.definition.headerFilter],"tick"!==t.definition.headerFilter&&"tickCross"!==t.definition.headerFilter||t.definition.headerFilterEmptyCheck||(t.modules.filter.emptyFunc=function(t){return!0!==t&&!1!==t})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",t.definition.editor);break;case"function":i=t.definition.headerFilter;break;case"boolean":t.modules.edit&&t.modules.edit.editor?i=t.modules.edit.editor:t.definition.formatter&&d.table.modules.edit.editors[t.definition.formatter]?(i=d.table.modules.edit.editors[t.definition.formatter],"tick"!==t.definition.formatter&&"tickCross"!==t.definition.formatter||t.definition.headerFilterEmptyCheck||(t.modules.filter.emptyFunc=function(t){return!0!==t&&!1!==t})):i=d.table.modules.edit.editors.input}if(i){if(a={getValue:function(){return"undefined"!==typeof e?e:""},getField:function(){return t.definition.field},getElement:function(){return r},getColumn:function(){return t.getComponent()},getTable:()=>this.table,getType:()=>"header",getRow:function(){return{normalizeHeight:function(){}}}},u="function"===typeof(u=t.definition.headerFilterParams||{})?u.call(d.table,a):u,!(o=i.call(this.table.modules.edit,a,(function(t){c=t}),h,(function(){}),u)))return void console.warn("Filter Error - Cannot add filter to "+f+" column, editor returned a value of false");if(!(o instanceof Node))return void console.warn("Filter Error - Cannot add filter to "+f+" column, editor should return an instance of Node, the editor returned:",o);d.langBind("headerFilters|columns|"+t.definition.field,(function(e){o.setAttribute("placeholder","undefined"!==typeof e&&e?e:t.definition.headerFilterPlaceholder||d.langText("headerFilters|default"))})),o.addEventListener("click",(function(t){t.stopPropagation(),o.focus()})),o.addEventListener("focus",(t=>{var e=this.table.columnManager.contentsElement.scrollLeft;e!==this.table.rowManager.element.scrollLeft&&(this.table.rowManager.scrollHorizontal(e),this.table.columnManager.scrollHorizontal(e))})),s=!1,l=function(t){s&&clearTimeout(s),s=setTimeout((function(){h(o.value)}),d.table.options.headerFilterLiveFilterDelay)},t.modules.filter.headerElement=o,t.modules.filter.attrType=o.hasAttribute("type")?o.getAttribute("type").toLowerCase():"",t.modules.filter.tagType=o.tagName.toLowerCase(),!1!==t.definition.headerFilterLiveFilter&&("autocomplete"!==t.definition.headerFilter&&"tickCross"!==t.definition.headerFilter&&("autocomplete"!==t.definition.editor&&"tickCross"!==t.definition.editor||!0!==t.definition.headerFilter)&&(o.addEventListener("keyup",l),o.addEventListener("search",l),"number"==t.modules.filter.attrType&&o.addEventListener("change",(function(t){h(o.value)})),"text"==t.modules.filter.attrType&&"ie"!==this.table.browser&&o.setAttribute("type","search")),"input"!=t.modules.filter.tagType&&"select"!=t.modules.filter.tagType&&"textarea"!=t.modules.filter.tagType||o.addEventListener("mousedown",(function(t){t.stopPropagation()}))),r.appendChild(o),t.contentElement.appendChild(r),n||d.headerFilterColumns.push(t),c&&c()}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",t.definition.title)}hideHeaderFilterElements(){this.headerFilterColumns.forEach((function(t){t.modules.filter&&t.modules.filter.headerElement&&(t.modules.filter.headerElement.style.display="none")}))}showHeaderFilterElements(){this.headerFilterColumns.forEach((function(t){t.modules.filter&&t.modules.filter.headerElement&&(t.modules.filter.headerElement.style.display="")}))}setHeaderFilterFocus(t){t.modules.filter&&t.modules.filter.headerElement?t.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",t.getField())}getHeaderFilterValue(t){if(t.modules.filter&&t.modules.filter.headerElement)return t.modules.filter.value;console.warn("Column Filter Error - No header filter set on column:",t.getField())}setHeaderFilterValue(t,e){t&&(t.modules.filter&&t.modules.filter.headerElement?(this.generateHeaderFilterElement(t,e,!0),t.modules.filter.success(e)):console.warn("Column Filter Error - No header filter set on column:",t.getField()))}reloadHeaderFilter(t){t&&(t.modules.filter&&t.modules.filter.headerElement?this.generateHeaderFilterElement(t,t.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",t.getField()))}refreshFilter(){this.tableInitialized&&("remote"===this.table.options.filterMode?this.reloadData(null,!1,!1):this.refreshData(!0))}trackChanges(){this.changed=!0,this.dispatch("filter-changed")}hasChanged(){var t=this.changed;return this.changed=!1,t}setFilter(t,e,n,r){this.filterList=[],Array.isArray(t)||(t=[{field:t,type:e,value:n,params:r}]),this.addFilter(t)}addFilter(t,e,n,r){var i=!1;Array.isArray(t)||(t=[{field:t,type:e,value:n,params:r}]),t.forEach((t=>{(t=this.findFilter(t))&&(this.filterList.push(t),i=!0)})),i&&this.trackChanges()}findFilter(t){var e;if(Array.isArray(t))return this.findSubFilters(t);var n=!1;return"function"==typeof t.field?n=function(e){return t.field(e,t.type||{})}:z.filters[t.type]?n=(e=this.table.columnManager.getColumnByField(t.field))?function(n){return z.filters[t.type](t.value,e.getFieldValue(n),n,t.params||{})}:function(e){return z.filters[t.type](t.value,e[t.field],e,t.params||{})}:console.warn("Filter Error - No such filter type found, ignoring: ",t.type),t.func=n,!!t.func&&t}findSubFilters(t){var e=[];return t.forEach((t=>{(t=this.findFilter(t))&&e.push(t)})),!!e.length&&e}getFilters(t,e){var n=[];return t&&(n=this.getHeaderFilters()),e&&n.forEach((function(t){"function"==typeof t.type&&(t.type="function")})),n=n.concat(this.filtersToArray(this.filterList,e))}filtersToArray(t,e){var n=[];return t.forEach((t=>{var r;Array.isArray(t)?n.push(this.filtersToArray(t,e)):(r={field:t.field,type:t.type,value:t.value},e&&"function"==typeof r.type&&(r.type="function"),n.push(r))})),n}getHeaderFilters(){var t=[];for(var e in this.headerFilters)t.push({field:e,type:this.headerFilters[e].type,value:this.headerFilters[e].value});return t}removeFilter(t,e,n){Array.isArray(t)||(t=[{field:t,type:e,value:n}]),t.forEach((t=>{var e=-1;(e="object"==typeof t.field?this.filterList.findIndex((e=>t===e)):this.filterList.findIndex((e=>t.field===e.field&&t.type===e.type&&t.value===e.value)))>-1?this.filterList.splice(e,1):console.warn("Filter Error - No matching filter type found, ignoring: ",t.type)})),this.trackChanges()}clearFilter(t){this.filterList=[],t&&this.clearHeaderFilter(),this.trackChanges()}clearHeaderFilter(){this.headerFilters={},this.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach((t=>{"undefined"!==typeof t.modules.filter.value&&delete t.modules.filter.value,t.modules.filter.prevSuccess=void 0,this.reloadHeaderFilter(t)})),this.trackChanges()}search(t,e,n,r){var i=[],o=[];return Array.isArray(e)||(e=[{field:e,type:n,value:r}]),e.forEach((t=>{(t=this.findFilter(t))&&o.push(t)})),this.table.rowManager.rows.forEach((e=>{var n=!0;o.forEach((t=>{this.filterRecurse(t,e.getData())||(n=!1)})),n&&i.push("data"===t?e.getData("data"):e.getComponent())})),i}filter(t,e){var n=[],r=[];return this.subscribedExternal("dataFiltering")&&this.dispatchExternal("dataFiltering",this.getFilters(!0)),"remote"!==this.table.options.filterMode&&(this.filterList.length||Object.keys(this.headerFilters).length)?t.forEach((t=>{this.filterRow(t)&&n.push(t)})):n=t.slice(0),this.subscribedExternal("dataFiltered")&&(n.forEach((t=>{r.push(t.getComponent())})),this.dispatchExternal("dataFiltered",this.getFilters(!0),r)),n}filterRow(t,e){var n=!0,r=t.getData();for(var i in this.filterList.forEach((t=>{this.filterRecurse(t,r)||(n=!1)})),this.headerFilters)this.headerFilters[i].func(r)||(n=!1);return n}filterRecurse(t,e){var n=!1;return Array.isArray(t)?t.forEach((t=>{this.filterRecurse(t,e)&&(n=!0)})):n=t.func(e),n}}z.moduleName="filter",z.filters=W;var N={plaintext:function(t,e,n){return this.emptyToSpace(this.sanitizeHTML(t.getValue()))},html:function(t,e,n){return t.getValue()},textarea:function(t,e,n){return t.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(t.getValue()))},money:function(t,e,n){var r,i,o,a,s,l=parseFloat(t.getValue()),u="",c=e.decimal||".",d=e.thousand||",",h=e.negativeSign||"-",f=e.symbol||"",p=!!e.symbolAfter,m="undefined"!==typeof e.precision?e.precision:2;if(isNaN(l))return this.emptyToSpace(this.sanitizeHTML(t.getValue()));if(l<0&&(l=Math.abs(l),u=h),r=!1!==m?l.toFixed(m):l,i=(r=String(r).split("."))[0],o=r.length>1?c+r[1]:"",!1!==e.thousand)for(a=/(\d+)(\d{3})/;a.test(i);)i=i.replace(a,"$1"+d+"$2");return s=i+o,!0===u?(s="("+s+")",p?s+f:f+s):p?u+s+f:u+f+s},link:function(t,e,n){var r,i=t.getValue(),o=e.urlPrefix||"",s=e.download,l=i,u=document.createElement("a");if(e.labelField&&(r=t.getData(),l=function t(e,n){var r=n[e.shift()];return e.length&&"object"===typeof r?t(e,r):r}(e.labelField.split(this.table.options.nestedFieldSeparator),r)),e.label)switch(typeof e.label){case"string":l=e.label;break;case"function":l=e.label(t)}if(l){if(e.urlField&&(r=t.getData(),i=a.retrieveNestedData(this.table.options.nestedFieldSeparator,e.urlField,r)),e.url)switch(typeof e.url){case"string":i=e.url;break;case"function":i=e.url(t)}return u.setAttribute("href",o+i),e.target&&u.setAttribute("target",e.target),e.download&&(s="function"==typeof s?s(t):!0===s?"":s,u.setAttribute("download",s)),u.innerHTML=this.emptyToSpace(this.sanitizeHTML(l)),u}return"&nbsp;"},image:function(t,e,n){var r=document.createElement("img"),i=t.getValue();switch(e.urlPrefix&&(i=e.urlPrefix+t.getValue()),e.urlSuffix&&(i+=e.urlSuffix),r.setAttribute("src",i),typeof e.height){case"number":r.style.height=e.height+"px";break;case"string":r.style.height=e.height}switch(typeof e.width){case"number":r.style.width=e.width+"px";break;case"string":r.style.width=e.width}return r.addEventListener("load",(function(){t.getRow().normalizeHeight()})),r},tickCross:function(t,e,n){var r=t.getValue(),i=t.getElement(),o=e.allowEmpty,a=e.allowTruthy,s=Object.keys(e).includes("trueValue"),l="undefined"!==typeof e.tickElement?e.tickElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34  c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351  l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07  l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>',u="undefined"!==typeof e.crossElement?e.crossElement:'<svg enable-background="new 0 0 24 24" height="14" width="14"  viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272  c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0  l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269  c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73  L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';return s&&r===e.trueValue||!s&&(a&&r||!0===r||"true"===r||"True"===r||1===r||"1"===r)?(i.setAttribute("aria-checked",!0),l||""):!o||"null"!==r&&""!==r&&null!==r&&"undefined"!==typeof r?(i.setAttribute("aria-checked",!1),u||""):(i.setAttribute("aria-checked","mixed"),"")},datetime:function(t,e,n){var r,i=window.DateTime||luxon.DateTime,o=e.inputFormat||"yyyy-MM-dd HH:mm:ss",a=e.outputFormat||"dd/MM/yyyy HH:mm:ss",s="undefined"!==typeof e.invalidPlaceholder?e.invalidPlaceholder:"",l=t.getValue();if("undefined"!=typeof i)return(r=i.isDateTime(l)?l:"iso"===o?i.fromISO(String(l)):i.fromFormat(String(l),o)).isValid?(e.timezone&&(r=r.setZone(e.timezone)),r.toFormat(a)):!0!==s&&l?"function"===typeof s?s(l):s:l;console.error("Format Error - 'datetime' formatter is dependant on luxon.js")},datetimediff:function(t,e,n){var r,i=window.DateTime||luxon.DateTime,o=e.inputFormat||"yyyy-MM-dd HH:mm:ss",a="undefined"!==typeof e.invalidPlaceholder?e.invalidPlaceholder:"",s="undefined"!==typeof e.suffix&&e.suffix,l="undefined"!==typeof e.unit?e.unit:"days",u="undefined"!==typeof e.humanize&&e.humanize,c="undefined"!==typeof e.date?e.date:i.now(),d=t.getValue();if("undefined"!=typeof i)return(r=i.isDateTime(d)?d:"iso"===o?i.fromISO(String(d)):i.fromFormat(String(d),o)).isValid?u?r.diff(c,l).toHuman()+(s?" "+s:""):parseInt(r.diff(c,l)[l])+(s?" "+s:""):!0===a?d:"function"===typeof a?a(d):a;console.error("Format Error - 'datetimediff' formatter is dependant on luxon.js")},lookup:function(t,e,n){var r=t.getValue();return"undefined"===typeof e[r]?(console.warn("Missing display value for "+r),r):e[r]},star:function(t,e,n){var r=t.getValue(),i=t.getElement(),o=e&&e.stars?e.stars:5,a=document.createElement("span"),s=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.verticalAlign="middle",s.setAttribute("width","14"),s.setAttribute("height","14"),s.setAttribute("viewBox","0 0 512 512"),s.setAttribute("xml:space","preserve"),s.style.padding="0 1px",r=r&&!isNaN(r)?parseInt(r):0,r=Math.max(0,Math.min(r,o));for(var l=1;l<=o;l++){var u=s.cloneNode(!0);u.innerHTML=l<=r?'<polygon fill="#FFEA00" stroke="#C1AB60" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>':'<polygon fill="#D2D2D2" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>',a.appendChild(u)}return i.style.whiteSpace="nowrap",i.style.overflow="hidden",i.style.textOverflow="ellipsis",i.setAttribute("aria-label",r),a},traffic:function(t,e,n){var r,i,o=this.sanitizeHTML(t.getValue())||0,a=document.createElement("span"),s=e&&e.max?e.max:100,l=e&&e.min?e.min:0,u=e&&"undefined"!==typeof e.color?e.color:["red","orange","green"],c="#666666";if(!isNaN(o)&&"undefined"!==typeof t.getValue()){switch(a.classList.add("tabulator-traffic-light"),i=parseFloat(o)<=s?parseFloat(o):s,i=parseFloat(i)>=l?parseFloat(i):l,r=(s-l)/100,i=Math.round((i-l)/r),typeof u){case"string":c=u;break;case"function":c=u(o);break;case"object":if(Array.isArray(u)){var d=100/u.length,h=Math.floor(i/d);h=Math.min(h,u.length-1),c=u[h=Math.max(h,0)];break}}return a.style.backgroundColor=c,a}},progress:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;var r,i,o,a,s,l=this.sanitizeHTML(t.getValue())||0,u=t.getElement(),c=e.max?e.max:100,d=e.min?e.min:0,h=e.legendAlign?e.legendAlign:"center";switch(i=parseFloat(l)<=c?parseFloat(l):c,i=parseFloat(i)>=d?parseFloat(i):d,r=(c-d)/100,i=Math.round((i-d)/r),typeof e.color){case"string":o=e.color;break;case"function":o=e.color(l);break;case"object":if(Array.isArray(e.color)){let t=100/e.color.length,n=Math.floor(i/t);n=Math.min(n,e.color.length-1),n=Math.max(n,0),o=e.color[n];break}default:o="#2DC214"}switch(typeof e.legend){case"string":a=e.legend;break;case"function":a=e.legend(l);break;case"boolean":a=l;break;default:a=!1}switch(typeof e.legendColor){case"string":s=e.legendColor;break;case"function":s=e.legendColor(l);break;case"object":if(Array.isArray(e.legendColor)){let t=100/e.legendColor.length,n=Math.floor(i/t);n=Math.min(n,e.legendColor.length-1),n=Math.max(n,0),s=e.legendColor[n]}break;default:s="#000"}u.style.minWidth="30px",u.style.position="relative",u.setAttribute("aria-label",i);var f=document.createElement("div");f.style.display="inline-block",f.style.width=i+"%",f.style.backgroundColor=o,f.style.height="100%",f.setAttribute("data-max",c),f.setAttribute("data-min",d);var p=document.createElement("div");if(p.style.position="relative",p.style.width="100%",p.style.height="100%",a){var m=document.createElement("div");m.style.position="absolute",m.style.top=0,m.style.left=0,m.style.textAlign=h,m.style.width="100%",m.style.color=s,m.innerHTML=a}return n((function(){if(!(t instanceof v)){var e=document.createElement("div");e.style.position="absolute",e.style.top="4px",e.style.bottom="4px",e.style.left="4px",e.style.right="4px",u.appendChild(e),u=e}u.appendChild(p),p.appendChild(f),a&&p.appendChild(m)})),""},color:function(t,e,n){return t.getElement().style.backgroundColor=this.sanitizeHTML(t.getValue()),""},buttonTick:function(t,e,n){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34  c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351  l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07  l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>'},buttonCross:function(t,e,n){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272  c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0  l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269  c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73  L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>'},rownum:function(t,e,n){var r=document.createElement("span"),i=t.getRow(),o=t.getTable();return i.watchPosition((t=>{e.relativeToPage&&(t+=o.modules.page.getPageSize()*(o.modules.page.getPage()-1)),r.innerText=t})),r},handle:function(t,e,n){return t.getElement().classList.add("tabulator-row-handle"),"<div class='tabulator-row-handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div></div>"},responsiveCollapse:function(t,e,n){var r=document.createElement("div"),i=t.getRow()._row.modules.responsiveLayout;function o(t){var e=i.element;i.open=t,e&&(i.open?(r.classList.add("open"),e.style.display=""):(r.classList.remove("open"),e.style.display="none"))}return r.classList.add("tabulator-responsive-collapse-toggle"),r.innerHTML='<svg class=\'tabulator-responsive-collapse-toggle-open\' viewbox="0 0 24 24">\n  <line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />\n  <line y1="7" x1="12" y2="17" x2="12" fill="none" stroke-width="3" stroke-linecap="round" />\n</svg>\n\n<svg class=\'tabulator-responsive-collapse-toggle-close\' viewbox="0 0 24 24">\n  <line x1="7" y1="12" x2="17" y2="12"  fill="none" stroke-width="3" stroke-linecap="round" />\n</svg>',t.getElement().classList.add("tabulator-row-handle"),r.addEventListener("click",(function(e){e.stopImmediatePropagation(),o(!i.open),t.getTable().rowManager.adjustTableSize()})),o(i.open),r},rowSelection:function(t,e,n){var r=document.createElement("input"),i=!1;if(r.type="checkbox",r.setAttribute("aria-label","Select Row"),this.table.modExists("selectRow",!0))if(r.addEventListener("click",(t=>{t.stopPropagation()})),"function"==typeof t.getRow){var o=t.getRow();o instanceof O?(r.addEventListener("change",(t=>{"click"===this.table.options.selectableRowsRangeMode&&i?i=!1:o.toggleSelect()})),"click"===this.table.options.selectableRowsRangeMode&&r.addEventListener("click",(t=>{i=!0,this.table.modules.selectRow.handleComplexRowClick(o._row,t)})),r.checked=o.isSelected&&o.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(o,r)):r=""}else r.addEventListener("change",(t=>{this.table.modules.selectRow.selectedRows.length?this.table.deselectRow():this.table.selectRow(e.rowRange)})),this.table.modules.selectRow.registerHeaderSelectCheckbox(r);return r}};class F extends l{constructor(t){super(t),this.registerColumnOption("formatter"),this.registerColumnOption("formatterParams"),this.registerColumnOption("formatterPrint"),this.registerColumnOption("formatterPrintParams"),this.registerColumnOption("formatterClipboard"),this.registerColumnOption("formatterClipboardParams"),this.registerColumnOption("formatterHtmlOutput"),this.registerColumnOption("formatterHtmlOutputParams"),this.registerColumnOption("titleFormatter"),this.registerColumnOption("titleFormatterParams")}initialize(){this.subscribe("cell-format",this.formatValue.bind(this)),this.subscribe("cell-rendered",this.cellRendered.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-format",this.formatHeader.bind(this))}initializeColumn(t){t.modules.format=this.lookupFormatter(t,""),"undefined"!==typeof t.definition.formatterPrint&&(t.modules.format.print=this.lookupFormatter(t,"Print")),"undefined"!==typeof t.definition.formatterClipboard&&(t.modules.format.clipboard=this.lookupFormatter(t,"Clipboard")),"undefined"!==typeof t.definition.formatterHtmlOutput&&(t.modules.format.htmlOutput=this.lookupFormatter(t,"HtmlOutput"))}lookupFormatter(t,e){var n={params:t.definition["formatter"+e+"Params"]||{}},r=t.definition["formatter"+e];switch(typeof r){case"string":F.formatters[r]?n.formatter=F.formatters[r]:(console.warn("Formatter Error - No such formatter found: ",r),n.formatter=F.formatters.plaintext);break;case"function":n.formatter=r;break;default:n.formatter=F.formatters.plaintext}return n}cellRendered(t){t.modules.format&&t.modules.format.renderedCallback&&!t.modules.format.rendered&&(t.modules.format.renderedCallback(),t.modules.format.rendered=!0)}formatHeader(t,e,n){var r,i,o,a;return t.definition.titleFormatter?(r=this.getFormatter(t.definition.titleFormatter),o=e=>{t.titleFormatterRendered=e},a={getValue:function(){return e},getElement:function(){return n},getType:function(){return"header"},getColumn:function(){return t.getComponent()},getTable:()=>this.table},i="function"===typeof(i=t.definition.titleFormatterParams||{})?i():i,r.call(this,a,i,o)):e}formatValue(t){var e=t.getComponent(),n="function"===typeof t.column.modules.format.params?t.column.modules.format.params(e):t.column.modules.format.params;return t.column.modules.format.formatter.call(this,e,n,(function(e){t.modules.format||(t.modules.format={}),t.modules.format.renderedCallback=e,t.modules.format.rendered=!1}))}formatExportValue(t,e){var n,r=t.column.modules.format[e];if(r){function i(e){t.modules.format||(t.modules.format={}),t.modules.format.renderedCallback=e,t.modules.format.rendered=!1}return n="function"===typeof r.params?r.params(t.getComponent()):r.params,r.formatter.call(this,t.getComponent(),n,i)}return this.formatValue(t)}sanitizeHTML(t){if(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=/]/g,(function(t){return e[t]}))}return t}emptyToSpace(t){return null===t||"undefined"===typeof t||""===t?"&nbsp;":t}getFormatter(t){switch(typeof t){case"string":F.formatters[t]?t=F.formatters[t]:(console.warn("Formatter Error - No such formatter found: ",t),t=F.formatters.plaintext);break;case"function":break;default:t=F.formatters.plaintext}return t}}F.moduleName="format",F.formatters=N;class H extends l{constructor(t){super(t),this.leftColumns=[],this.rightColumns=[],this.initializationMode="left",this.active=!1,this.blocked=!0,this.registerColumnOption("frozen")}reset(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.active=!1}initialize(){this.subscribe("cell-layout",this.layoutCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-width",this.layout.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("table-layout",this.layout.bind(this)),this.subscribe("columns-loading",this.reset.bind(this)),this.subscribe("column-add",this.reinitializeColumns.bind(this)),this.subscribe("column-deleted",this.reinitializeColumns.bind(this)),this.subscribe("column-hide",this.reinitializeColumns.bind(this)),this.subscribe("column-show",this.reinitializeColumns.bind(this)),this.subscribe("columns-loaded",this.reinitializeColumns.bind(this)),this.subscribe("table-redraw",this.layout.bind(this)),this.subscribe("layout-refreshing",this.blockLayout.bind(this)),this.subscribe("layout-refreshed",this.unblockLayout.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this))}blockLayout(){this.blocked=!0}unblockLayout(){this.blocked=!1}layoutCell(t){this.layoutElement(t.element,t.column)}reinitializeColumns(){this.reset(),this.table.columnManager.columnsByIndex.forEach((t=>{this.initializeColumn(t)})),this.layout()}initializeColumn(t){var e={margin:0,edge:!1};t.isGroup||(this.frozenCheck(t)?(e.position=this.initializationMode,"left"==this.initializationMode?this.leftColumns.push(t):this.rightColumns.unshift(t),this.active=!0,t.modules.frozen=e):this.initializationMode="right")}frozenCheck(t){return t.parent.isGroup&&t.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),t.parent.isGroup?this.frozenCheck(t.parent):t.definition.frozen}layoutCalcRows(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow),this.table.modExists("groupRows")&&this.layoutGroupCalcs(this.table.modules.groupRows.getGroups()))}layoutGroupCalcs(t){t.forEach((t=>{t.calcs.top&&this.layoutRow(t.calcs.top),t.calcs.bottom&&this.layoutRow(t.calcs.bottom),t.groupList&&t.groupList.length&&this.layoutGroupCalcs(t.groupList)}))}layoutColumnPosition(t){var e=[],n=0,r=0;this.leftColumns.forEach(((r,i)=>{if(r.modules.frozen.marginValue=n,r.modules.frozen.margin=r.modules.frozen.marginValue+"px",r.visible&&(n+=r.getWidth()),i==this.leftColumns.length-1?r.modules.frozen.edge=!0:r.modules.frozen.edge=!1,r.parent.isGroup){var o=this.getColGroupParentElement(r);e.includes(o)||(this.layoutElement(o,r),e.push(o)),o.classList.toggle("tabulator-frozen-left",r.modules.frozen.edge&&"left"===r.modules.frozen.position),o.classList.toggle("tabulator-frozen-right",r.modules.frozen.edge&&"right"===r.modules.frozen.position)}else this.layoutElement(r.getElement(),r);t&&r.cells.forEach((t=>{this.layoutElement(t.getElement(!0),r)}))})),this.rightColumns.forEach(((e,n)=>{e.modules.frozen.marginValue=r,e.modules.frozen.margin=e.modules.frozen.marginValue+"px",e.visible&&(r+=e.getWidth()),n==this.rightColumns.length-1?e.modules.frozen.edge=!0:e.modules.frozen.edge=!1,e.parent.isGroup?this.layoutElement(this.getColGroupParentElement(e),e):this.layoutElement(e.getElement(),e),t&&e.cells.forEach((t=>{this.layoutElement(t.getElement(!0),e)}))}))}getColGroupParentElement(t){return t.parent.isGroup?this.getColGroupParentElement(t.parent):t.getElement()}layout(){this.active&&!this.blocked&&(this.layoutColumnPosition(),this.reinitializeRows(),this.layoutCalcRows())}reinitializeRows(){var t=this.table.rowManager.getVisibleRows(!0);this.table.rowManager.getRows().filter((e=>!t.includes(e))).forEach((t=>{t.deinitialize()})),t.forEach((t=>{"row"===t.type&&this.layoutRow(t)}))}layoutRow(t){"fitDataFill"===this.table.options.layout&&this.rightColumns.length&&(this.table.rowManager.getTableElement().style.minWidth="calc(100% - "+this.rightMargin+")"),this.leftColumns.forEach((e=>{var n=t.getCell(e);n&&this.layoutElement(n.getElement(!0),e)})),this.rightColumns.forEach((e=>{var n=t.getCell(e);n&&this.layoutElement(n.getElement(!0),e)}))}layoutElement(t,e){var n;e.modules.frozen&&t&&(t.style.position="sticky",n=this.table.rtl?"left"===e.modules.frozen.position?"right":"left":e.modules.frozen.position,t.style[n]=e.modules.frozen.margin,t.classList.add("tabulator-frozen"),t.classList.toggle("tabulator-frozen-left",e.modules.frozen.edge&&"left"===e.modules.frozen.position),t.classList.toggle("tabulator-frozen-right",e.modules.frozen.edge&&"right"===e.modules.frozen.position))}adjustForScrollbar(t){this.rightColumns.length&&(this.table.columnManager.getContentsElement().style.width="calc(100% - "+t+"px)")}_calcSpace(t,e){var n=0;for(let r=0;r<e;r++)t[r].visible&&(n+=t[r].getWidth());return n}}H.moduleName="frozenColumns";class B extends l{constructor(t){super(t),this.topElement=document.createElement("div"),this.rows=[],this.registerComponentFunction("row","freeze",this.freezeRow.bind(this)),this.registerComponentFunction("row","unfreeze",this.unfreezeRow.bind(this)),this.registerComponentFunction("row","isFrozen",this.isRowFrozen.bind(this)),this.registerTableOption("frozenRowsField","id"),this.registerTableOption("frozenRows",!1)}initialize(){var t=document.createDocumentFragment();this.rows=[],this.topElement.classList.add("tabulator-frozen-rows-holder"),t.appendChild(document.createElement("br")),t.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(t,this.table.columnManager.headersElement.nextSibling),this.subscribe("row-deleting",this.detachRow.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),10),this.table.options.frozenRows&&(this.subscribe("data-processed",this.initializeRows.bind(this)),this.subscribe("row-added",this.initializeRow.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this))),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}initializeRows(){this.table.rowManager.getRows().forEach((t=>{this.initializeRow(t)}))}initializeRow(t){var e=this.table.options.frozenRows,n=typeof e;"number"===n?t.getPosition()&&t.getPosition()+this.rows.length<=e&&this.freezeRow(t):"function"===n?e.call(this.table,t.getComponent())&&this.freezeRow(t):Array.isArray(e)&&e.includes(t.data[this.options("frozenRowsField")])&&this.freezeRow(t)}isRowFrozen(t){return this.rows.indexOf(t)>-1}isFrozen(){return!!this.rows.length}visibleRows(t,e){return this.rows.forEach((t=>{e.push(t)})),e}getRows(t){var e=t.slice(0);return this.rows.forEach((function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)})),e}freezeRow(t){t.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(t.modules.frozen=!0,this.topElement.appendChild(t.getElement()),t.initialize(),t.normalizeHeight(),this.rows.push(t),this.refreshData(!1,"display"),this.table.rowManager.adjustTableSize(),this.styleRows())}unfreezeRow(t){t.modules.frozen?(t.modules.frozen=!1,this.detachRow(t),this.table.rowManager.adjustTableSize(),this.refreshData(!1,"display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")}detachRow(t){var e=this.rows.indexOf(t);if(e>-1){var n=t.getElement();n.parentNode&&n.parentNode.removeChild(n),this.rows.splice(e,1)}}styleRows(t){this.rows.forEach(((t,e)=>{this.table.rowManager.styleRow(t,e)}))}}B.moduleName="frozenRows";class V{constructor(t){return this._group=t,this.type="GroupComponent",new Proxy(this,{get:function(t,e,n){return"undefined"!==typeof t[e]?t[e]:t._group.groupManager.table.componentFunctionBinder.handle("group",t._group,e)}})}getKey(){return this._group.key}getField(){return this._group.field}getElement(){return this._group.element}getRows(){return this._group.getRows(!0)}getSubGroups(){return this._group.getSubGroups(!0)}getParentGroup(){return!!this._group.parent&&this._group.parent.getComponent()}isVisible(){return this._group.visible}show(){this._group.show()}hide(){this._group.hide()}toggle(){this._group.toggleVisibility()}scrollTo(t,e){return this._group.groupManager.table.rowManager.scrollToRow(this._group,t,e)}_getSelf(){return this._group}getTable(){return this._group.groupManager.table}}class q{constructor(t,e,n,r,i,o,a){this.groupManager=t,this.parent=e,this.key=r,this.level=n,this.field=i,this.hasSubGroups=n<t.groupIDLookups.length-1,this.addRow=this.hasSubGroups?this._addRowToGroup:this._addRow,this.type="group",this.old=a,this.rows=[],this.groups=[],this.groupList=[],this.generator=o,this.element=!1,this.elementContents=!1,this.height=0,this.outerHeight=0,this.initialized=!1,this.calcs={},this.initialized=!1,this.modules={},this.arrowElement=!1,this.visible=a?a.visible:"undefined"!==typeof t.startOpen[n]?t.startOpen[n]:t.startOpen[0],this.component=null,this.createElements(),this.addBindings(),this.createValueGroups()}wipe(t){t||(this.groupList.length?this.groupList.forEach((function(t){t.wipe()})):this.rows.forEach((t=>{t.modules&&delete t.modules.group}))),this.element=!1,this.arrowElement=!1,this.elementContents=!1}createElements(){var t=document.createElement("div");t.classList.add("tabulator-arrow"),this.element=document.createElement("div"),this.element.classList.add("tabulator-row"),this.element.classList.add("tabulator-group"),this.element.classList.add("tabulator-group-level-"+this.level),this.element.setAttribute("role","rowgroup"),this.arrowElement=document.createElement("div"),this.arrowElement.classList.add("tabulator-group-toggle"),this.arrowElement.appendChild(t),!1!==this.groupManager.table.options.movableRows&&this.groupManager.table.modExists("moveRow")&&this.groupManager.table.modules.moveRow.initializeGroupHeader(this)}createValueGroups(){var t=this.level+1;this.groupManager.allowedValues&&this.groupManager.allowedValues[t]&&this.groupManager.allowedValues[t].forEach((e=>{this._createGroup(e,t)}))}addBindings(){this.groupManager.table.options.groupToggleElement&&("arrow"==this.groupManager.table.options.groupToggleElement?this.arrowElement:this.element).addEventListener("click",(t=>{"arrow"===this.groupManager.table.options.groupToggleElement&&(t.stopPropagation(),t.stopImmediatePropagation()),setTimeout((()=>{this.toggleVisibility()}))}))}_createGroup(t,e){var n=e+"_"+t,r=new q(this.groupManager,this,e,t,this.groupManager.groupIDLookups[e].field,this.groupManager.headerGenerator[e]||this.groupManager.headerGenerator[0],!!this.old&&this.old.groups[n]);this.groups[n]=r,this.groupList.push(r)}_addRowToGroup(t){var e=this.level+1;if(this.hasSubGroups){var n=this.groupManager.groupIDLookups[e].func(t.getData()),r=e+"_"+n;this.groupManager.allowedValues&&this.groupManager.allowedValues[e]?this.groups[r]&&this.groups[r].addRow(t):(this.groups[r]||this._createGroup(n,e),this.groups[r].addRow(t))}}_addRow(t){this.rows.push(t),t.modules.group=this}insertRow(t,e,n){var r=this.conformRowData({});t.updateData(r);var i=this.rows.indexOf(e);i>-1?n?this.rows.splice(i+1,0,t):this.rows.splice(i,0,t):n?this.rows.push(t):this.rows.unshift(t),t.modules.group=this,this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)}scrollHeader(t){this.arrowElement&&(this.arrowElement.style.marginLeft=t,this.groupList.forEach((function(e){e.scrollHeader(t)})))}getRowIndex(t){}conformRowData(t){return this.field?t[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(t=this.parent.conformRowData(t)),t}removeRow(t){var e=this.rows.indexOf(t),n=t.getElement();e>-1&&this.rows.splice(e,1),this.groupManager.table.options.groupValues||this.rows.length?(n.parentNode&&n.parentNode.removeChild(n),this.groupManager.blockRedraw||(this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this))):(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0))}removeGroup(t){var e,n=t.level+"_"+t.key;this.groups[n]&&(delete this.groups[n],(e=this.groupList.indexOf(t))>-1&&this.groupList.splice(e,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))}getHeadersAndRows(){var t=[];return t.push(this),this._visSet(),this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.visible?this.groupList.length?this.groupList.forEach((function(e){t=t.concat(e.getHeadersAndRows())})):("table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top)),t=t.concat(this.rows),"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.table.options.columnCalcs||this.groupManager.table.modExists("columnCalcs")&&(this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top)),this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom))),t}getData(t,e){var n=[];return this._visSet(),(!t||t&&this.visible)&&this.rows.forEach((t=>{n.push(t.getData(e||"data"))})),n}getRowCount(){var t=0;return this.groupList.length?this.groupList.forEach((e=>{t+=e.getRowCount()})):t=this.rows.length,t}toggleVisibility(){this.visible?this.hide():this.show()}hide(){this.visible=!1,"basic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination||(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach((t=>{t.getHeadersAndRows().forEach((t=>{t.detachElement()}))})):this.rows.forEach((t=>{var e=t.getElement();e.parentNode.removeChild(e)}))),this.groupManager.updateGroupRows(!0),this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!1)}show(){if(this.visible=!0,"basic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!0);else{this.element.classList.add("tabulator-group-visible");var t=this.generateElement();this.groupList.length?this.groupList.forEach((e=>{e.getHeadersAndRows().forEach((e=>{var n=e.getElement();t.parentNode.insertBefore(n,t.nextSibling),e.initialize(),t=n}))})):this.rows.forEach((e=>{var n=e.getElement();t.parentNode.insertBefore(n,t.nextSibling),e.initialize(),t=n})),this.groupManager.updateGroupRows(!0)}this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!0)}_visSet(){var t=[];"function"==typeof this.visible&&(this.rows.forEach((function(e){t.push(e.getData())})),this.visible=this.visible(this.key,this.getRowCount(),t,this.getComponent()))}getRowGroup(t){var e=!1;return this.groupList.length?this.groupList.forEach((function(n){var r=n.getRowGroup(t);r&&(e=r)})):this.rows.find((function(e){return e===t}))&&(e=this),e}getSubGroups(t){var e=[];return this.groupList.forEach((function(n){e.push(t?n.getComponent():n)})),e}getRows(t,e){var n=[];return e&&this.groupList.length?this.groupList.forEach((r=>{n=n.concat(r.getRows(t,e))})):this.rows.forEach((function(e){n.push(t?e.getComponent():e)})),n}generateGroupHeaderContents(){var t=[];for(this.getRows(!1,!0).forEach((function(e){t.push(e.getData())})),this.elementContents=this.generator(this.key,this.getRowCount(),t,this.getComponent());this.element.firstChild;)this.element.removeChild(this.element.firstChild);"string"===typeof this.elementContents?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)}getPath(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.unshift(this.key),this.parent&&this.parent.getPath(t),t}getElement(){return this.elementContents?this.element:this.generateElement()}generateElement(){this.addBindings=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var t=0;t<this.element.childNodes.length;++t)this.element.childNodes[t].parentNode.removeChild(this.element.childNodes[t]);return this.generateGroupHeaderContents(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}normalizeHeight(){this.setHeight(this.element.clientHeight)}initialize(t){this.initialized&&!t||(this.normalizeHeight(),this.initialized=!0)}reinitialize(){this.initialized=!1,this.height=0,a.elVisible(this.element)&&this.initialize(!0)}setHeight(t){this.height!=t&&(this.height=t,this.outerHeight=this.element.offsetHeight)}getHeight(){return this.outerHeight}getGroup(){return this}reinitializeHeight(){}calcHeight(){}setCellHeight(){}clearCellHeight(){}deinitializeHeight(){}rendered(){}getComponent(){return this.component||(this.component=new V(this)),this.component}}class Y extends l{constructor(t){super(t),this.groupIDLookups=!1,this.startOpen=[function(){return!1}],this.headerGenerator=[function(){return""}],this.groupList=[],this.allowedValues=!1,this.groups={},this.displayHandler=this.getRows.bind(this),this.blockRedraw=!1,this.registerTableOption("groupBy",!1),this.registerTableOption("groupStartOpen",!0),this.registerTableOption("groupValues",!1),this.registerTableOption("groupUpdateOnCellEdit",!1),this.registerTableOption("groupHeader",!1),this.registerTableOption("groupHeaderPrint",null),this.registerTableOption("groupHeaderClipboard",null),this.registerTableOption("groupHeaderHtmlOutput",null),this.registerTableOption("groupHeaderDownload",null),this.registerTableOption("groupToggleElement","arrow"),this.registerTableOption("groupClosedShowCalcs",!1),this.registerTableFunction("setGroupBy",this.setGroupBy.bind(this)),this.registerTableFunction("setGroupValues",this.setGroupValues.bind(this)),this.registerTableFunction("setGroupStartOpen",this.setGroupStartOpen.bind(this)),this.registerTableFunction("setGroupHeader",this.setGroupHeader.bind(this)),this.registerTableFunction("getGroups",this.userGetGroups.bind(this)),this.registerTableFunction("getGroupedData",this.userGetGroupedData.bind(this)),this.registerComponentFunction("row","getGroup",this.rowGetGroup.bind(this))}initialize(){this.subscribe("table-destroy",this._blockRedrawing.bind(this)),this.subscribe("rows-wipe",this._blockRedrawing.bind(this)),this.subscribe("rows-wiped",this._restore_redrawing.bind(this)),this.table.options.groupBy&&(this.table.options.groupUpdateOnCellEdit&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("row-data-changed",this.reassignRowToGroup.bind(this),0)),this.subscribe("table-built",this.configureGroupSetup.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHeaders.bind(this)),this.subscribe("rows-wipe",this.wipe.bind(this)),this.subscribe("rows-added",this.rowsUpdated.bind(this)),this.subscribe("row-moving",this.rowMoving.bind(this)),this.subscribe("row-adding-index",this.rowAddingIndex.bind(this)),this.subscribe("rows-sample",this.rowSample.bind(this)),this.subscribe("render-virtual-fill",this.virtualRenderFill.bind(this)),this.registerDisplayHandler(this.displayHandler,20),this.initialized=!0)}_blockRedrawing(){this.blockRedraw=!0}_restore_redrawing(){this.blockRedraw=!1}configureGroupSetup(){if(this.table.options.groupBy){var t=this.table.options.groupBy,e=this.table.options.groupStartOpen,n=this.table.options.groupHeader;if(this.allowedValues=this.table.options.groupValues,Array.isArray(t)&&Array.isArray(n)&&t.length>n.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),this.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],this.langBind("groups|item",((t,e)=>{this.headerGenerator[0]=(n,r,i)=>("undefined"===typeof n?"":n)+"<span>("+r+" "+(1===r?t:e.groups.items)+")</span>"})),this.groupIDLookups=[],t)this.table.modExists("columnCalcs")&&"table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs();else if(this.table.modExists("columnCalcs")&&"group"!=this.table.options.columnCalcs)this.table.columnManager.getRealColumns().forEach((t=>{t.definition.topCalc&&this.table.modules.columnCalcs.initializeTopRow(),t.definition.bottomCalc&&this.table.modules.columnCalcs.initializeBottomRow()}));Array.isArray(t)||(t=[t]),t.forEach(((t,e)=>{var n,r;n="function"==typeof t?t:(r=this.table.columnManager.getColumnByField(t))?function(t){return r.getFieldValue(t)}:function(e){return e[t]},this.groupIDLookups.push({field:"function"!==typeof t&&t,func:n,values:!!this.allowedValues&&this.allowedValues[e]})})),e&&(Array.isArray(e)||(e=[e]),e.forEach((t=>{})),this.startOpen=e),n&&(this.headerGenerator=Array.isArray(n)?n:[n])}else this.groupList=[],this.groups={}}rowSample(t,e){if(this.table.options.groupBy){var n=this.getGroups(!1)[0];e.push(n.getRows(!1)[0])}return e}virtualRenderFill(){var t=this.table.rowManager.tableElement,e=this.table.rowManager.getVisibleRows();if(!this.table.options.groupBy)return e;e=e.filter((t=>"group"!==t.type)),t.style.minWidth=e.length?"":this.table.columnManager.getWidth()+"px"}rowAddingIndex(t,e,n){if(this.table.options.groupBy){this.assignRowToGroup(t);var r=t.modules.group.rows;return r.length>1&&(!e||e&&-1==r.indexOf(e)?n?r[0]!==t&&(e=r[0],this.table.rowManager.moveRowInArray(t.modules.group.rows,t,e,!n)):r[r.length-1]!==t&&(e=r[r.length-1],this.table.rowManager.moveRowInArray(t.modules.group.rows,t,e,!n)):this.table.rowManager.moveRowInArray(t.modules.group.rows,t,e,!n)),e}}trackChanges(){this.dispatch("group-changed")}setGroupBy(t){this.table.options.groupBy=t,this.initialized||this.initialize(),this.configureGroupSetup(),!t&&this.table.modExists("columnCalcs")&&!0===this.table.options.columnCalcs&&this.table.modules.columnCalcs.reinitializeCalcs(),this.refreshData(),this.trackChanges()}setGroupValues(t){this.table.options.groupValues=t,this.configureGroupSetup(),this.refreshData(),this.trackChanges()}setGroupStartOpen(t){this.table.options.groupStartOpen=t,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}setGroupHeader(t){this.table.options.groupHeader=t,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}userGetGroups(t){return this.getGroups(!0)}userGetGroupedData(){return this.table.options.groupBy?this.getGroupedData():this.getData()}rowGetGroup(t){return!!t.modules.group&&t.modules.group.getComponent()}rowMoving(t,e,n){if(this.table.options.groupBy){!n&&e instanceof q&&(e=this.table.rowManager.prevDisplayRow(t)||e);var r=e instanceof q?e:e.modules.group,i=t instanceof q?t:t.modules.group;r===i?this.table.rowManager.moveRowInArray(r.rows,t,e,n):(i&&i.removeRow(t),r.insertRow(t,e,n))}}rowDeleting(t){this.table.options.groupBy&&t.modules.group&&t.modules.group.removeRow(t)}rowsUpdated(t){this.table.options.groupBy&&this.updateGroupRows(!0)}cellUpdated(t){this.table.options.groupBy&&this.reassignRowToGroup(t.row)}getRows(t){return this.table.options.groupBy&&this.groupIDLookups.length?(this.dispatchExternal("dataGrouping"),this.generateGroups(t),this.subscribedExternal("dataGrouped")&&this.dispatchExternal("dataGrouped",this.getGroups(!0)),this.updateGroupRows()):t.slice(0)}getGroups(t){var e=[];return this.groupList.forEach((function(n){e.push(t?n.getComponent():n)})),e}getChildGroups(t){var e=[];return t||(t=this),t.groupList.forEach((t=>{t.groupList.length?e=e.concat(this.getChildGroups(t)):e.push(t)})),e}wipe(){this.table.options.groupBy&&(this.groupList.forEach((function(t){t.wipe()})),this.groupList=[],this.groups={})}pullGroupListData(t){var e=[];return t.forEach((t=>{var n={level:0,rowCount:0,headerContent:""},r=[];t.hasSubGroups?(r=this.pullGroupListData(t.groupList),n.level=t.level,n.rowCount=r.length-t.groupList.length,n.headerContent=t.generator(t.key,n.rowCount,t.rows,t),e.push(n),e=e.concat(r)):(n.level=t.level,n.headerContent=t.generator(t.key,t.rows.length,t.rows,t),n.rowCount=t.getRows().length,e.push(n),t.getRows().forEach((t=>{e.push(t.getData("data"))})))})),e}getGroupedData(){return this.pullGroupListData(this.groupList)}getRowGroup(t){var e=!1;return this.options("dataTree")&&(t=this.table.modules.dataTree.getTreeParentRoot(t)),this.groupList.forEach((n=>{var r=n.getRowGroup(t);r&&(e=r)})),e}countGroups(){return this.groupList.length}generateGroups(t){var e=this.groups;this.groups={},this.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach((t=>{this.createGroup(t,0,e)})),t.forEach((t=>{this.assignRowToExistingGroup(t,e)}))):t.forEach((t=>{this.assignRowToGroup(t,e)})),Object.values(e).forEach((t=>{t.wipe(!0)}))}createGroup(t,e,n){var r,i=e+"_"+t;n=n||[],r=new q(this,!1,e,t,this.groupIDLookups[0].field,this.headerGenerator[0],n[i]),this.groups[i]=r,this.groupList.push(r)}assignRowToExistingGroup(t,e){var n="0_"+this.groupIDLookups[0].func(t.getData());this.groups[n]&&this.groups[n].addRow(t)}assignRowToGroup(t,e){var n=this.groupIDLookups[0].func(t.getData()),r=!this.groups["0_"+n];return r&&this.createGroup(n,0,e),this.groups["0_"+n].addRow(t),!r}reassignRowToGroup(t){if("row"===t.type){var e=t.modules.group,n=e.getPath(),r=this.getExpectedPath(t);n.length==r.length&&n.every(((t,e)=>t===r[e]))||(e.removeRow(t),this.assignRowToGroup(t,this.groups),this.refreshData(!0))}}getExpectedPath(t){var e=[],n=t.getData();return this.groupIDLookups.forEach((t=>{e.push(t.func(n))})),e}updateGroupRows(t){var e=[];return this.blockRedraw||(this.groupList.forEach((t=>{e=e.concat(t.getHeadersAndRows())})),t&&this.refreshData(!0)),e}scrollHeaders(t){this.table.options.groupBy&&("virtual"===this.table.options.renderHorizontal&&(t-=this.table.columnManager.renderer.vDomPadLeft),t+="px",this.groupList.forEach((e=>{e.scrollHeader(t)})))}removeGroup(t){var e,n=t.level+"_"+t.key;this.groups[n]&&(delete this.groups[n],(e=this.groupList.indexOf(t))>-1&&this.groupList.splice(e,1))}checkBasicModeGroupHeaderWidth(){var t=this.table.rowManager.tableElement,e=!0;this.table.rowManager.getDisplayRows().forEach(((n,r)=>{this.table.rowManager.styleRow(n,r),t.appendChild(n.getElement()),n.initialize(!0),"group"!==n.type&&(e=!1)})),t.style.minWidth=e?this.table.columnManager.getWidth()+"px":""}}Y.moduleName="groupRows";class U extends l{constructor(t){super(t),this.history=[],this.index=-1,this.registerTableOption("history",!1)}initialize(){this.table.options.history&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("cell-delete",this.clearComponentHistory.bind(this)),this.subscribe("row-delete",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clear.bind(this)),this.subscribe("row-added",this.rowAdded.bind(this)),this.subscribe("row-move",this.rowMoved.bind(this))),this.registerTableFunction("undo",this.undo.bind(this)),this.registerTableFunction("redo",this.redo.bind(this)),this.registerTableFunction("getHistoryUndoSize",this.getHistoryUndoSize.bind(this)),this.registerTableFunction("getHistoryRedoSize",this.getHistoryRedoSize.bind(this)),this.registerTableFunction("clearHistory",this.clear.bind(this))}rowMoved(t,e,n){this.action("rowMove",t,{posFrom:t.getPosition(),posTo:e.getPosition(),to:e,after:n})}rowAdded(t,e,n,r){this.action("rowAdd",t,{data:e,pos:n,index:r})}rowDeleted(t){var e,n;this.table.options.groupBy?(e=(n=t.getComponent().getGroup()._getSelf().rows).indexOf(t))&&(e=n[e-1]):(e=t.table.rowManager.getRowIndex(t))&&(e=t.table.rowManager.rows[e-1]),this.action("rowDelete",t,{data:t.getData(),pos:!e,index:e})}cellUpdated(t){this.action("cellEdit",t,{oldValue:t.oldValue,newValue:t.value})}clear(){this.history=[],this.index=-1}action(t,e,n){this.history=this.history.slice(0,this.index+1),this.history.push({type:t,component:e,data:n}),this.index++}getHistoryUndoSize(){return this.index+1}getHistoryRedoSize(){return this.history.length-(this.index+1)}clearComponentHistory(t){var e=this.history.findIndex((function(e){return e.component===t}));e>-1&&(this.history.splice(e,1),e<=this.index&&this.index--,this.clearComponentHistory(t))}undo(){if(this.index>-1){let t=this.history[this.index];return U.undoers[t.type].call(this,t),this.index--,this.dispatchExternal("historyUndo",t.type,t.component.getComponent(),t.data),!0}return console.warn(this.options("history")?"History Undo Error - No more history to undo":"History module not enabled"),!1}redo(){if(this.history.length-1>this.index){this.index++;let t=this.history[this.index];return U.redoers[t.type].call(this,t),this.dispatchExternal("historyRedo",t.type,t.component.getComponent(),t.data),!0}return console.warn(this.options("history")?"History Redo Error - No more history to redo":"History module not enabled"),!1}_rebindRow(t,e){this.history.forEach((function(n){if(n.component instanceof x)n.component===t&&(n.component=e);else if(n.component instanceof y&&n.component.row===t){var r=n.component.column.getField();r&&(n.component=e.getCell(r))}}))}}U.moduleName="history",U.undoers={cellEdit:function(t){t.component.setValueProcessData(t.data.oldValue),t.component.cellRendered()},rowAdd:function(t){t.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowDelete:function(t){var e=this.table.rowManager.addRowActual(t.data.data,t.data.pos,t.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(t.component,e),this.table.rowManager.checkPlaceholder()},rowMove:function(t){var e=t.data.posFrom-t.data.posTo>0;this.table.rowManager.moveRowActual(t.component,this.table.rowManager.getRowFromPosition(t.data.posFrom),e),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},U.redoers={cellEdit:function(t){t.component.setValueProcessData(t.data.newValue),t.component.cellRendered()},rowAdd:function(t){var e=this.table.rowManager.addRowActual(t.data.data,t.data.pos,t.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(t.component,e),this.table.rowManager.checkPlaceholder()},rowDelete:function(t){t.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowMove:function(t){this.table.rowManager.moveRowActual(t.component,this.table.rowManager.getRowFromPosition(t.data.posTo),t.data.after),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}};class G extends l{constructor(t){super(t),this.fieldIndex=[],this.hasIndex=!1}initialize(){this.tableElementCheck()}tableElementCheck(){this.table.originalElement&&"TABLE"===this.table.originalElement.tagName&&(this.table.originalElement.childNodes.length?this.parseTable():console.warn("Unable to parse data from empty table tag, Tabulator should be initialized on a div tag unless importing data from a table element."))}parseTable(){var t=this.table.originalElement,e=this.table.options,n=t.getElementsByTagName("th"),r=t.getElementsByTagName("tbody")[0],i=[];this.hasIndex=!1,this.dispatchExternal("htmlImporting"),r=r?r.getElementsByTagName("tr"):[],this._extractOptions(t,e),n.length?this._extractHeaders(n,r):this._generateBlankHeaders(n,r);for(var o=0;o<r.length;o++){var a=r[o].getElementsByTagName("td"),s={};this.hasIndex||(s[e.index]=o);for(var l=0;l<a.length;l++){var u=a[l];"undefined"!==typeof this.fieldIndex[l]&&(s[this.fieldIndex[l]]=u.innerHTML)}i.push(s)}e.data=i,this.dispatchExternal("htmlImported")}_extractOptions(t,e,n){var r=t.attributes,i=n?Object.keys(n):Object.keys(e),o={};for(var a in i.forEach((t=>{o[t.toLowerCase()]=t})),r){var s,l=r[a];l&&"object"==typeof l&&l.name&&0===l.name.indexOf("tabulator-")&&(s=l.name.replace("tabulator-",""),"undefined"!==typeof o[s]&&(e[o[s]]=this._attribValue(l.value)))}}_attribValue(t){return"true"===t||"false"!==t&&t}_findCol(t){return this.table.options.columns.find((e=>e.title===t))||!1}_extractHeaders(t,e){for(var n=0;n<t.length;n++){var r,i=t[n],o=!1,a=this._findCol(i.textContent);a?o=!0:a={title:i.textContent.trim()},a.field||(a.field=i.textContent.trim().toLowerCase().replaceAll(" ","_")),(r=i.getAttribute("width"))&&!a.width&&(a.width=r),this._extractOptions(i,a,this.table.columnManager.optionsList.registeredDefaults),this.fieldIndex[n]=a.field,a.field==this.table.options.index&&(this.hasIndex=!0),o||this.table.options.columns.push(a)}}_generateBlankHeaders(t,e){for(var n=0;n<t.length;n++){var r=t[n],i={title:"",field:"col"+n};this.fieldIndex[n]=i.field;var o=r.getAttribute("width");o&&(i.width=o),this.table.options.columns.push(i)}}}G.moduleName="htmlTableImport";var X={csv:function(t){var e=[],n=0,r=0,i=!1;for(let o=0;o<t.length;o++){let a=t[o],s=t[o+1];e[n]||(e[n]=[]),e[n][r]||(e[n][r]=""),'"'==a&&i&&'"'==s?(e[n][r]+=a,o++):'"'!=a?","!=a||i?"\r"!=a||"\n"!=s||i?"\r"!=a&&"\n"!=a||i?e[n][r]+=a:(r=0,n++):(r=0,n++,o++):r++:i=!i}return e},json:function(t){try{return JSON.parse(t)}catch(e){return console.warn("JSON Import Error - File contents is invalid JSON",e),Promise.reject()}},array:function(t){return t}};class J extends l{constructor(t){super(t),this.registerTableOption("importFormat"),this.registerTableOption("importReader","text")}initialize(){this.registerTableFunction("import",this.importFromFile.bind(this)),this.table.options.importFormat&&(this.subscribe("data-loading",this.loadDataCheck.bind(this),10),this.subscribe("data-load",this.loadData.bind(this),10))}loadDataCheck(t){return this.table.options.importFormat&&("string"===typeof t||Array.isArray(t)&&t.length&&Array.isArray(t))}loadData(t,e,n,r,i){return this.importData(this.lookupImporter(),t).then(this.structureData.bind(this)).catch((t=>(console.error("Import Error:",t||"Unable to import data"),Promise.reject(t))))}lookupImporter(t){var e;return t||(t=this.table.options.importFormat),(e="string"===typeof t?J.importers[t]:t)||console.error("Import Error - Importer not found:",t),e}importFromFile(t,e){var n=this.lookupImporter(t);if(n)return this.pickFile(e).then(this.importData.bind(this,n)).then(this.structureData.bind(this)).then(this.setData.bind(this)).catch((t=>(console.error("Import Error:",t||"Unable to import file"),Promise.reject(t))))}pickFile(t){return new Promise(((e,n)=>{var r=document.createElement("input");r.type="file",r.accept=t,r.addEventListener("change",(t=>{var i=r.files[0],o=new FileReader;switch(this.table.options.importReader){case"buffer":o.readAsArrayBuffer(i);break;case"binary":o.readAsBinaryString(i);break;case"url":o.readAsDataURL(i);break;default:o.readAsText(i)}o.onload=t=>{e(o.result)},o.onerror=t=>{console.warn("File Load Error - Unable to read file"),n()}})),r.click()}))}importData(t,e){var n=t.call(this.table,e);return n instanceof Promise?n:n?Promise.resolve(n):Promise.reject()}structureData(t){return Array.isArray(t)&&t.length&&Array.isArray(t[0])?this.table.options.autoColumns?this.structureArrayToObject(t):this.structureArrayToColumns(t):t}structureArrayToObject(t){var e=t.shift();return t.map((t=>{var n={};return e.forEach(((e,r)=>{n[e]=t[r]})),n}))}structureArrayToColumns(t){var e=[],n=this.table.getColumns();return n[0]&&t[0][0]&&n[0].getDefinition().title===t[0][0]&&t.shift(),t.forEach((t=>{var r={};t.forEach(((t,e)=>{var i=n[e];i&&(r[i.getField()]=t)})),e.push(r)})),e}setData(t){return this.table.setData(t)}}J.moduleName="import",J.importers=X;class K extends l{constructor(t){super(t),this.eventMap={rowClick:"row-click",rowDblClick:"row-dblclick",rowContext:"row-contextmenu",rowMouseEnter:"row-mouseenter",rowMouseLeave:"row-mouseleave",rowMouseOver:"row-mouseover",rowMouseOut:"row-mouseout",rowMouseMove:"row-mousemove",rowMouseDown:"row-mousedown",rowMouseUp:"row-mouseup",rowTap:"row",rowDblTap:"row",rowTapHold:"row",cellClick:"cell-click",cellDblClick:"cell-dblclick",cellContext:"cell-contextmenu",cellMouseEnter:"cell-mouseenter",cellMouseLeave:"cell-mouseleave",cellMouseOver:"cell-mouseover",cellMouseOut:"cell-mouseout",cellMouseMove:"cell-mousemove",cellMouseDown:"cell-mousedown",cellMouseUp:"cell-mouseup",cellTap:"cell",cellDblTap:"cell",cellTapHold:"cell",headerClick:"column-click",headerDblClick:"column-dblclick",headerContext:"column-contextmenu",headerMouseEnter:"column-mouseenter",headerMouseLeave:"column-mouseleave",headerMouseOver:"column-mouseover",headerMouseOut:"column-mouseout",headerMouseMove:"column-mousemove",headerMouseDown:"column-mousedown",headerMouseUp:"column-mouseup",headerTap:"column",headerDblTap:"column",headerTapHold:"column",groupClick:"group-click",groupDblClick:"group-dblclick",groupContext:"group-contextmenu",groupMouseEnter:"group-mouseenter",groupMouseLeave:"group-mouseleave",groupMouseOver:"group-mouseover",groupMouseOut:"group-mouseout",groupMouseMove:"group-mousemove",groupMouseDown:"group-mousedown",groupMouseUp:"group-mouseup",groupTap:"group",groupDblTap:"group",groupTapHold:"group"},this.subscribers={},this.touchSubscribers={},this.columnSubscribers={},this.touchWatchers={row:{tap:null,tapDbl:null,tapHold:null},cell:{tap:null,tapDbl:null,tapHold:null},column:{tap:null,tapDbl:null,tapHold:null},group:{tap:null,tapDbl:null,tapHold:null}},this.registerColumnOption("headerClick"),this.registerColumnOption("headerDblClick"),this.registerColumnOption("headerContext"),this.registerColumnOption("headerMouseEnter"),this.registerColumnOption("headerMouseLeave"),this.registerColumnOption("headerMouseOver"),this.registerColumnOption("headerMouseOut"),this.registerColumnOption("headerMouseMove"),this.registerColumnOption("headerMouseDown"),this.registerColumnOption("headerMouseUp"),this.registerColumnOption("headerTap"),this.registerColumnOption("headerDblTap"),this.registerColumnOption("headerTapHold"),this.registerColumnOption("cellClick"),this.registerColumnOption("cellDblClick"),this.registerColumnOption("cellContext"),this.registerColumnOption("cellMouseEnter"),this.registerColumnOption("cellMouseLeave"),this.registerColumnOption("cellMouseOver"),this.registerColumnOption("cellMouseOut"),this.registerColumnOption("cellMouseMove"),this.registerColumnOption("cellMouseDown"),this.registerColumnOption("cellMouseUp"),this.registerColumnOption("cellTap"),this.registerColumnOption("cellDblTap"),this.registerColumnOption("cellTapHold")}initialize(){this.initializeExternalEvents(),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("cell-dblclick",this.cellContentsSelectionFixer.bind(this)),this.subscribe("scroll-horizontal",this.clearTouchWatchers.bind(this)),this.subscribe("scroll-vertical",this.clearTouchWatchers.bind(this))}clearTouchWatchers(){Object.values(this.touchWatchers).forEach((t=>{for(let e in t)t[e]=null}))}cellContentsSelectionFixer(t,e){var n;if(!this.table.modExists("edit")||this.table.modules.edit.currentCell!==e){t.preventDefault();try{document.selection?((n=document.body.createTextRange()).moveToElementText(e.getElement()),n.select()):window.getSelection&&((n=document.createRange()).selectNode(e.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(n))}catch(t){}}}initializeExternalEvents(){for(let t in this.eventMap)this.subscriptionChangeExternal(t,this.subscriptionChanged.bind(this,t))}subscriptionChanged(t,e){e?this.subscribers[t]||(this.eventMap[t].includes("-")?(this.subscribers[t]=this.handle.bind(this,t),this.subscribe(this.eventMap[t],this.subscribers[t])):this.subscribeTouchEvents(t)):this.eventMap[t].includes("-")?!this.subscribers[t]||this.columnSubscribers[t]||this.subscribedExternal(t)||(this.unsubscribe(this.eventMap[t],this.subscribers[t]),delete this.subscribers[t]):this.unsubscribeTouchEvents(t)}subscribeTouchEvents(t){var e=this.eventMap[t];this.touchSubscribers[e+"-touchstart"]||(this.touchSubscribers[e+"-touchstart"]=this.handleTouch.bind(this,e,"start"),this.touchSubscribers[e+"-touchend"]=this.handleTouch.bind(this,e,"end"),this.subscribe(e+"-touchstart",this.touchSubscribers[e+"-touchstart"]),this.subscribe(e+"-touchend",this.touchSubscribers[e+"-touchend"])),this.subscribers[t]=!0}unsubscribeTouchEvents(t){var e=!0,n=this.eventMap[t];if(this.subscribers[t]&&!this.subscribedExternal(t)){delete this.subscribers[t];for(let t in this.eventMap)this.eventMap[t]===n&&this.subscribers[t]&&(e=!1);e&&(this.unsubscribe(n+"-touchstart",this.touchSubscribers[n+"-touchstart"]),this.unsubscribe(n+"-touchend",this.touchSubscribers[n+"-touchend"]),delete this.touchSubscribers[n+"-touchstart"],delete this.touchSubscribers[n+"-touchend"])}}initializeColumn(t){var e=t.definition;for(let n in this.eventMap)e[n]&&(this.subscriptionChanged(n,!0),this.columnSubscribers[n]||(this.columnSubscribers[n]=[]),this.columnSubscribers[n].push(t))}handle(t,e,n){this.dispatchEvent(t,e,n)}handleTouch(t,e,n,r){var i=this.touchWatchers[t];switch("column"===t&&(t="header"),e){case"start":i.tap=!0,clearTimeout(i.tapHold),i.tapHold=setTimeout((()=>{clearTimeout(i.tapHold),i.tapHold=null,i.tap=null,clearTimeout(i.tapDbl),i.tapDbl=null,this.dispatchEvent(t+"TapHold",n,r)}),1e3);break;case"end":i.tap&&(i.tap=null,this.dispatchEvent(t+"Tap",n,r)),i.tapDbl?(clearTimeout(i.tapDbl),i.tapDbl=null,this.dispatchEvent(t+"DblTap",n,r)):i.tapDbl=setTimeout((()=>{clearTimeout(i.tapDbl),i.tapDbl=null}),300),clearTimeout(i.tapHold),i.tapHold=null}}dispatchEvent(t,e,n){var r,i=n.getComponent();this.columnSubscribers[t]&&(n instanceof y?r=n.column.definition[t]:n instanceof _&&(r=n.definition[t]),r&&r(e,i)),this.dispatchExternal(t,e,i)}}K.moduleName="interaction";class $ extends l{constructor(t){super(t),this.watchKeys=null,this.pressedKeys=null,this.keyupBinding=!1,this.keydownBinding=!1,this.registerTableOption("keybindings",{}),this.registerTableOption("tabEndNewRow",!1)}initialize(){var t=this.table.options.keybindings,e={};this.watchKeys={},this.pressedKeys=[],!1!==t&&(Object.assign(e,$.bindings),Object.assign(e,t),this.mapBindings(e),this.bindEvents()),this.subscribe("table-destroy",this.clearBindings.bind(this))}mapBindings(t){for(let e in t)$.actions[e]?t[e]&&("object"!==typeof t[e]&&(t[e]=[t[e]]),t[e].forEach((t=>{(Array.isArray(t)?t:[t]).forEach((t=>{this.mapBinding(e,t)}))}))):console.warn("Key Binding Error - no such action:",e)}mapBinding(t,e){var n={action:$.actions[t],keys:[],ctrl:!1,shift:!1,meta:!1};e.toString().toLowerCase().split(" ").join("").split("+").forEach((t=>{switch(t){case"ctrl":n.ctrl=!0;break;case"shift":n.shift=!0;break;case"meta":n.meta=!0;break;default:t=isNaN(t)?t.toUpperCase().charCodeAt(0):parseInt(t),n.keys.push(t),this.watchKeys[t]||(this.watchKeys[t]=[]),this.watchKeys[t].push(n)}}))}bindEvents(){var t=this;this.keyupBinding=function(e){var n=e.keyCode,r=t.watchKeys[n];r&&(t.pressedKeys.push(n),r.forEach((function(n){t.checkBinding(e,n)})))},this.keydownBinding=function(e){var n=e.keyCode;if(t.watchKeys[n]){var r=t.pressedKeys.indexOf(n);r>-1&&t.pressedKeys.splice(r,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)}clearBindings(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)}checkBinding(t,e){var n=!0;return t.ctrlKey==e.ctrl&&t.shiftKey==e.shift&&t.metaKey==e.meta&&(e.keys.forEach((t=>{-1==this.pressedKeys.indexOf(t)&&(n=!1)})),n&&e.action.call(this,t),!0)}}$.moduleName="keybindings",$.bindings={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,navLeft:37,navRight:39,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35,undo:["ctrl + 90","meta + 90"],redo:["ctrl + 89","meta + 89"],copyToClipboard:["ctrl + 67","meta + 67"],rangeJumpUp:["ctrl + 38","meta + 38"],rangeJumpDown:["ctrl + 40","meta + 40"],rangeJumpLeft:["ctrl + 37","meta + 37"],rangeJumpRight:["ctrl + 39","meta + 39"],rangeExpandUp:"shift + 38",rangeExpandDown:"shift + 40",rangeExpandLeft:"shift + 37",rangeExpandRight:"shift + 39",rangeExpandJumpUp:["ctrl + shift + 38","meta + shift + 38"],rangeExpandJumpDown:["ctrl + shift + 40","meta + shift + 40"],rangeExpandJumpLeft:["ctrl + shift + 37","meta + shift + 37"],rangeExpandJumpRight:["ctrl + shift + 39","meta + shift + 39"]},$.actions={keyBlock:function(t){t.stopPropagation(),t.preventDefault()},scrollPageUp:function(t){var e=this.table.rowManager,n=e.scrollTop-e.element.clientHeight;t.preventDefault(),e.displayRowsCount&&(n>=0?e.element.scrollTop=n:e.scrollToRow(e.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(t){var e=this.table.rowManager,n=e.scrollTop+e.element.clientHeight,r=e.element.scrollHeight;t.preventDefault(),e.displayRowsCount&&(n<=r?e.element.scrollTop=n:e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(t){var e=this.table.rowManager;t.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(t){var e=this.table.rowManager;t.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1]),this.table.element.focus()},navPrev:function(t){this.dispatch("keybinding-nav-prev",t)},navNext:function(t){this.dispatch("keybinding-nav-next",t)},navLeft:function(t){this.dispatch("keybinding-nav-left",t)},navRight:function(t){this.dispatch("keybinding-nav-right",t)},navUp:function(t){this.dispatch("keybinding-nav-up",t)},navDown:function(t){this.dispatch("keybinding-nav-down",t)},rangeJumpLeft:function(t){this.dispatch("keybinding-nav-range",t,"left",!0,!1)},rangeJumpRight:function(t){this.dispatch("keybinding-nav-range",t,"right",!0,!1)},rangeJumpUp:function(t){this.dispatch("keybinding-nav-range",t,"up",!0,!1)},rangeJumpDown:function(t){this.dispatch("keybinding-nav-range",t,"down",!0,!1)},rangeExpandLeft:function(t){this.dispatch("keybinding-nav-range",t,"left",!1,!0)},rangeExpandRight:function(t){this.dispatch("keybinding-nav-range",t,"right",!1,!0)},rangeExpandUp:function(t){this.dispatch("keybinding-nav-range",t,"up",!1,!0)},rangeExpandDown:function(t){this.dispatch("keybinding-nav-range",t,"down",!1,!0)},rangeExpandJumpLeft:function(t){this.dispatch("keybinding-nav-range",t,"left",!0,!0)},rangeExpandJumpRight:function(t){this.dispatch("keybinding-nav-range",t,"right",!0,!0)},rangeExpandJumpUp:function(t){this.dispatch("keybinding-nav-range",t,"up",!0,!0)},rangeExpandJumpDown:function(t){this.dispatch("keybinding-nav-range",t,"down",!0,!0)},undo:function(t){this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(this.table.modules.edit.currentCell||(t.preventDefault(),this.table.modules.history.undo()))},redo:function(t){this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(this.table.modules.edit.currentCell||(t.preventDefault(),this.table.modules.history.redo()))},copyToClipboard:function(t){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}};class Q extends l{constructor(t){super(t),this.menuContainer=null,this.nestedMenuBlock=!1,this.currentComponent=null,this.rootPopup=null,this.columnSubscribers={},this.registerTableOption("menuContainer",void 0),this.registerTableOption("rowContextMenu",!1),this.registerTableOption("rowClickMenu",!1),this.registerTableOption("rowDblClickMenu",!1),this.registerTableOption("groupContextMenu",!1),this.registerTableOption("groupClickMenu",!1),this.registerTableOption("groupDblClickMenu",!1),this.registerColumnOption("headerContextMenu"),this.registerColumnOption("headerClickMenu"),this.registerColumnOption("headerDblClickMenu"),this.registerColumnOption("headerMenu"),this.registerColumnOption("headerMenuIcon"),this.registerColumnOption("contextMenu"),this.registerColumnOption("clickMenu"),this.registerColumnOption("dblClickMenu")}initialize(){this.deprecatedOptionsCheck(),this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){this.deprecationCheck("menuContainer","popupContainer")||(this.table.options.popupContainer=this.table.options.menuContainer)}initializeRowWatchers(){this.table.options.rowContextMenu&&(this.subscribe("row-contextmenu",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu)),this.table.on("rowTapHold",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu))),this.table.options.rowClickMenu&&this.subscribe("row-click",this.loadMenuEvent.bind(this,this.table.options.rowClickMenu)),this.table.options.rowDblClickMenu&&this.subscribe("row-dblclick",this.loadMenuEvent.bind(this,this.table.options.rowDblClickMenu))}initializeGroupWatchers(){this.table.options.groupContextMenu&&(this.subscribe("group-contextmenu",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu)),this.table.on("groupTapHold",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu))),this.table.options.groupClickMenu&&this.subscribe("group-click",this.loadMenuEvent.bind(this,this.table.options.groupClickMenu)),this.table.options.groupDblClickMenu&&this.subscribe("group-dblclick",this.loadMenuEvent.bind(this,this.table.options.groupDblClickMenu))}initializeColumn(t){var e=t.definition;e.headerContextMenu&&!this.columnSubscribers.headerContextMenu&&(this.columnSubscribers.headerContextMenu=this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextMenu),this.table.on("headerTapHold",this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"))),e.headerClickMenu&&!this.columnSubscribers.headerClickMenu&&(this.columnSubscribers.headerClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerClickMenu"),this.subscribe("column-click",this.columnSubscribers.headerClickMenu)),e.headerDblClickMenu&&!this.columnSubscribers.headerDblClickMenu&&(this.columnSubscribers.headerDblClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerDblClickMenu"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickMenu)),e.headerMenu&&this.initializeColumnHeaderMenu(t),e.contextMenu&&!this.columnSubscribers.contextMenu&&(this.columnSubscribers.contextMenu=this.loadMenuTableCellEvent.bind(this,"contextMenu"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextMenu),this.table.on("cellTapHold",this.loadMenuTableCellEvent.bind(this,"contextMenu"))),e.clickMenu&&!this.columnSubscribers.clickMenu&&(this.columnSubscribers.clickMenu=this.loadMenuTableCellEvent.bind(this,"clickMenu"),this.subscribe("cell-click",this.columnSubscribers.clickMenu)),e.dblClickMenu&&!this.columnSubscribers.dblClickMenu&&(this.columnSubscribers.dblClickMenu=this.loadMenuTableCellEvent.bind(this,"dblClickMenu"),this.subscribe("cell-dblclick",this.columnSubscribers.dblClickMenu))}initializeColumnHeaderMenu(t){var e,n=t.definition.headerMenuIcon;(e=document.createElement("span")).classList.add("tabulator-header-popup-button"),n?("function"===typeof n&&(n=n(t.getComponent())),n instanceof HTMLElement?e.appendChild(n):e.innerHTML=n):e.innerHTML="&vellip;",e.addEventListener("click",(e=>{e.stopPropagation(),e.preventDefault(),this.loadMenuEvent(t.definition.headerMenu,e,t)})),t.titleElement.insertBefore(e,t.titleElement.firstChild)}loadMenuTableCellEvent(t,e,n){n._cell&&(n=n._cell),n.column.definition[t]&&this.loadMenuEvent(n.column.definition[t],e,n)}loadMenuTableColumnEvent(t,e,n){n._column&&(n=n._column),n.definition[t]&&this.loadMenuEvent(n.definition[t],e,n)}loadMenuEvent(t,e,n){n._group?n=n._group:n._row&&(n=n._row),t="function"==typeof t?t.call(this.table,e,n.getComponent()):t,this.loadMenu(e,n,t)}loadMenu(t,e,n,r,i){var o,a=!(t instanceof MouseEvent),s=document.createElement("div");if(s.classList.add("tabulator-menu"),a||t.preventDefault(),n&&n.length){if(r)o=i.child(s);else{if(this.nestedMenuBlock){if(this.rootPopup)return}else this.nestedMenuBlock=setTimeout((()=>{this.nestedMenuBlock=!1}),100);this.rootPopup&&this.rootPopup.hide(),this.rootPopup=o=this.popup(s)}n.forEach((t=>{var n=document.createElement("div"),r=t.label,i=t.disabled;t.separator?n.classList.add("tabulator-menu-separator"):(n.classList.add("tabulator-menu-item"),"function"==typeof r&&(r=r.call(this.table,e.getComponent())),r instanceof Node?n.appendChild(r):n.innerHTML=r,"function"==typeof i&&(i=i.call(this.table,e.getComponent())),i?(n.classList.add("tabulator-menu-item-disabled"),n.addEventListener("click",(t=>{t.stopPropagation()}))):t.menu&&t.menu.length?n.addEventListener("click",(r=>{r.stopPropagation(),this.loadMenu(r,e,t.menu,n,o)})):t.action&&n.addEventListener("click",(n=>{t.action(n,e.getComponent())})),t.menu&&t.menu.length&&n.classList.add("tabulator-menu-item-submenu")),s.appendChild(n)})),s.addEventListener("click",(t=>{this.rootPopup&&this.rootPopup.hide()})),o.show(r||t),o===this.rootPopup&&(this.rootPopup.hideOnBlur((()=>{this.rootPopup=null,this.currentComponent&&(this.dispatch("menu-closed",n,o),this.dispatchExternal("menuClosed",this.currentComponent.getComponent()),this.currentComponent=null)})),this.currentComponent=e,this.dispatch("menu-opened",n,o),this.dispatchExternal("menuOpened",e.getComponent()))}}}Q.moduleName="menu";class Z extends l{constructor(t){super(t),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.registerTableOption("movableColumns",!1)}createPlaceholderElement(){var t=document.createElement("div");return t.classList.add("tabulator-col"),t.classList.add("tabulator-col-placeholder"),t}initialize(){this.table.options.movableColumns&&(this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("alert-show",this.abortMove.bind(this)))}abortMove(){clearTimeout(this.checkTimeout)}initializeColumn(t){var e,n=this,r={};t.modules.frozen||t.isGroup||(e=t.getElement(),r.mousemove=function(r){t.parent===n.moving.parent&&((n.touchMove?r.touches[0].pageX:r.pageX)-a.elOffset(e).left+n.table.columnManager.contentsElement.scrollLeft>t.getWidth()/2?n.toCol===t&&n.toColAfter||(e.parentNode.insertBefore(n.placeholderElement,e.nextSibling),n.moveColumn(t,!0)):(n.toCol!==t||n.toColAfter)&&(e.parentNode.insertBefore(n.placeholderElement,e),n.moveColumn(t,!1)))}.bind(n),e.addEventListener("mousedown",(function(e){n.touchMove=!1,1===e.which&&(n.checkTimeout=setTimeout((function(){n.startMove(e,t)}),n.checkPeriod))})),e.addEventListener("mouseup",(function(t){1===t.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)})),n.bindTouchEvents(t)),t.modules.moveColumn=r}bindTouchEvents(t){var e,n,r,i,o,a,s=t.getElement(),l=!1;s.addEventListener("touchstart",(s=>{this.checkTimeout=setTimeout((()=>{this.touchMove=!0,e=t.nextColumn(),r=e?e.getWidth()/2:0,n=t.prevColumn(),i=n?n.getWidth()/2:0,o=0,a=0,l=!1,this.startMove(s,t)}),this.checkPeriod)}),{passive:!0}),s.addEventListener("touchmove",(s=>{var u,c;this.moving&&(this.moveHover(s),l||(l=s.touches[0].pageX),(u=s.touches[0].pageX-l)>0?e&&u-o>r&&(c=e)!==t&&(l=s.touches[0].pageX,c.getElement().parentNode.insertBefore(this.placeholderElement,c.getElement().nextSibling),this.moveColumn(c,!0)):n&&-u-a>i&&(c=n)!==t&&(l=s.touches[0].pageX,c.getElement().parentNode.insertBefore(this.placeholderElement,c.getElement()),this.moveColumn(c,!1)),c&&(e=c.nextColumn(),o=r,r=e?e.getWidth()/2:0,n=c.prevColumn(),a=i,i=n?n.getWidth()/2:0))}),{passive:!0}),s.addEventListener("touchend",(t=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&this.endMove(t)}))}startMove(t,e){var n=e.getElement(),r=this.table.columnManager.getContentsElement(),i=this.table.columnManager.getHeadersElement();this.moving=e,this.startX=(this.touchMove?t.touches[0].pageX:t.pageX)-a.elOffset(n).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=e.getWidth()+"px",this.placeholderElement.style.height=e.getHeight()+"px",n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),r.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom=r.clientHeight-i.offsetHeight+"px",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(t)}_bindMouseMove(){this.table.columnManager.columnsByIndex.forEach((function(t){t.modules.moveColumn.mousemove&&t.getElement().addEventListener("mousemove",t.modules.moveColumn.mousemove)}))}_unbindMouseMove(){this.table.columnManager.columnsByIndex.forEach((function(t){t.modules.moveColumn.mousemove&&t.getElement().removeEventListener("mousemove",t.modules.moveColumn.mousemove)}))}moveColumn(t,e){var n=this.moving.getCells();this.toCol=t,this.toColAfter=e,e?t.getCells().forEach((function(t,e){var r=t.getElement(!0);r.parentNode&&n[e]&&r.parentNode.insertBefore(n[e].getElement(),r.nextSibling)})):t.getCells().forEach((function(t,e){var r=t.getElement(!0);r.parentNode&&n[e]&&r.parentNode.insertBefore(n[e].getElement(),r)}))}endMove(t){(1===t.which||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))}moveHover(t){var e,n=this.table.columnManager.getContentsElement(),r=n.scrollLeft,i=(this.touchMove?t.touches[0].pageX:t.pageX)-a.elOffset(n).left+r;this.hoverElement.style.left=i-this.startX+"px",i-r<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout((()=>{e=Math.max(0,r-5),this.table.rowManager.getElement().scrollLeft=e,this.autoScrollTimeout=!1}),1))),r+n.clientWidth-i<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout((()=>{e=Math.min(n.clientWidth,r+5),this.table.rowManager.getElement().scrollLeft=e,this.autoScrollTimeout=!1}),1)))}}Z.moduleName="moveColumn";class tt extends l{constructor(t){super(t),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=150,this.moving=!1,this.toRow=!1,this.toRowAfter=!1,this.hasHandle=!1,this.startY=0,this.startX=0,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.tableRowDropEvent=!1,this.touchMove=!1,this.connection=!1,this.connectionSelectorsTables=!1,this.connectionSelectorsElements=!1,this.connectionElements=[],this.connections=[],this.connectedTable=!1,this.connectedRow=!1,this.registerTableOption("movableRows",!1),this.registerTableOption("movableRowsConnectedTables",!1),this.registerTableOption("movableRowsConnectedElements",!1),this.registerTableOption("movableRowsSender",!1),this.registerTableOption("movableRowsReceiver","insert"),this.registerColumnOption("rowHandle")}createPlaceholderElement(){var t=document.createElement("div");return t.classList.add("tabulator-row"),t.classList.add("tabulator-row-placeholder"),t}initialize(){this.table.options.movableRows&&(this.connectionSelectorsTables=this.table.options.movableRowsConnectedTables,this.connectionSelectorsElements=this.table.options.movableRowsConnectedElements,this.connection=this.connectionSelectorsTables||this.connectionSelectorsElements,this.subscribe("cell-init",this.initializeCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)))}initializeGroupHeader(t){var e=this,n={};n.mouseup=function(n){e.tableRowDrop(n,t)}.bind(e),n.mousemove=function(n){var r;n.pageY-a.elOffset(t.element).top+e.table.rowManager.element.scrollTop>t.getHeight()/2?e.toRow===t&&e.toRowAfter||((r=t.getElement()).parentNode.insertBefore(e.placeholderElement,r.nextSibling),e.moveRow(t,!0)):(e.toRow!==t||e.toRowAfter)&&(r=t.getElement()).previousSibling&&(r.parentNode.insertBefore(e.placeholderElement,r),e.moveRow(t,!1))}.bind(e),t.modules.moveRow=n}initializeRow(t){var e,n=this,r={};r.mouseup=function(e){n.tableRowDrop(e,t)}.bind(n),r.mousemove=function(e){var r=t.getElement();e.pageY-a.elOffset(r).top+n.table.rowManager.element.scrollTop>t.getHeight()/2?n.toRow===t&&n.toRowAfter||(r.parentNode.insertBefore(n.placeholderElement,r.nextSibling),n.moveRow(t,!0)):(n.toRow!==t||n.toRowAfter)&&(r.parentNode.insertBefore(n.placeholderElement,r),n.moveRow(t,!1))}.bind(n),this.hasHandle||((e=t.getElement()).addEventListener("mousedown",(function(e){1===e.which&&(n.checkTimeout=setTimeout((function(){n.startMove(e,t)}),n.checkPeriod))})),e.addEventListener("mouseup",(function(t){1===t.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)})),this.bindTouchEvents(t,t.getElement())),t.modules.moveRow=r}initializeColumn(t){t.definition.rowHandle&&!1!==this.table.options.movableRows&&(this.hasHandle=!0)}initializeCell(t){if(t.column.definition.rowHandle&&!1!==this.table.options.movableRows){var e=this,n=t.getElement(!0);n.addEventListener("mousedown",(function(n){1===n.which&&(e.checkTimeout=setTimeout((function(){e.startMove(n,t.row)}),e.checkPeriod))})),n.addEventListener("mouseup",(function(t){1===t.which&&e.checkTimeout&&clearTimeout(e.checkTimeout)})),this.bindTouchEvents(t.row,n)}}bindTouchEvents(t,e){var n,r,i,o,a,s,l=!1;e.addEventListener("touchstart",(e=>{this.checkTimeout=setTimeout((()=>{this.touchMove=!0,n=t.nextRow(),i=n?n.getHeight()/2:0,r=t.prevRow(),o=r?r.getHeight()/2:0,a=0,s=0,l=!1,this.startMove(e,t)}),this.checkPeriod)}),{passive:!0}),this.moving,this.toRow,this.toRowAfter,e.addEventListener("touchmove",(e=>{var u,c;this.moving&&(e.preventDefault(),this.moveHover(e),l||(l=e.touches[0].pageY),(u=e.touches[0].pageY-l)>0?n&&u-a>i&&(c=n)!==t&&(l=e.touches[0].pageY,c.getElement().parentNode.insertBefore(this.placeholderElement,c.getElement().nextSibling),this.moveRow(c,!0)):r&&-u-s>o&&(c=r)!==t&&(l=e.touches[0].pageY,c.getElement().parentNode.insertBefore(this.placeholderElement,c.getElement()),this.moveRow(c,!1)),c&&(n=c.nextRow(),a=i,i=n?n.getHeight()/2:0,r=c.prevRow(),s=o,o=r?r.getHeight()/2:0))})),e.addEventListener("touchend",(t=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&(this.endMove(t),this.touchMove=!1)}))}_bindMouseMove(){this.table.rowManager.getDisplayRows().forEach((t=>{("row"===t.type||"group"===t.type)&&t.modules.moveRow&&t.modules.moveRow.mousemove&&t.getElement().addEventListener("mousemove",t.modules.moveRow.mousemove)}))}_unbindMouseMove(){this.table.rowManager.getDisplayRows().forEach((t=>{("row"===t.type||"group"===t.type)&&t.modules.moveRow&&t.modules.moveRow.mousemove&&t.getElement().removeEventListener("mousemove",t.modules.moveRow.mousemove)}))}startMove(t,e){var n=e.getElement();this.setStartPosition(t,e),this.moving=e,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=e.getWidth()+"px",this.placeholderElement.style.height=e.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(e)):(n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n)),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.dispatchExternal("rowMoving",e.getComponent()),this.moveHover(t)}setStartPosition(t,e){var n,r,i=this.touchMove?t.touches[0].pageX:t.pageX,o=this.touchMove?t.touches[0].pageY:t.pageY;n=e.getElement(),this.connection?(r=n.getBoundingClientRect(),this.startX=r.left-i+window.pageXOffset,this.startY=r.top-o+window.pageYOffset):this.startY=o-n.getBoundingClientRect().top}endMove(t){t&&1!==t.which&&!this.touchMove||(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow?this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter):this.dispatchExternal("rowMoveCancelled",this.moving.getComponent()),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))}moveRow(t,e){this.toRow=t,this.toRowAfter=e}moveHover(t){this.connection?this.moveHoverConnections.call(this,t):this.moveHoverTable.call(this,t)}moveHoverTable(t){var e=this.table.rowManager.getElement(),n=e.scrollTop,r=(this.touchMove?t.touches[0].pageY:t.pageY)-e.getBoundingClientRect().top+n;this.hoverElement.style.top=Math.min(r-this.startY,this.table.rowManager.element.scrollHeight-this.hoverElement.offsetHeight)+"px"}moveHoverConnections(t){this.hoverElement.style.left=this.startX+(this.touchMove?t.touches[0].pageX:t.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?t.touches[0].pageY:t.pageY)+"px"}elementRowDrop(t,e,n){this.dispatchExternal("movableRowsElementDrop",t,e,!!n&&n.getComponent())}connectToTables(t){var e;this.connectionSelectorsTables&&(e=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStart",e),this.commsSend(this.connectionSelectorsTables,"moveRow","connect",{row:t})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach((t=>{"string"===typeof t?this.connectionElements=this.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(t))):this.connectionElements.push(t)})),this.connectionElements.forEach((t=>{var e=e=>{this.elementRowDrop(e,t,this.moving)};t.addEventListener("mouseup",e),t.tabulatorElementDropEvent=e,t.classList.add("tabulator-movingrow-receiving")})))}disconnectFromTables(){var t;this.connectionSelectorsTables&&(t=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStop",t),this.commsSend(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach((t=>{t.classList.remove("tabulator-movingrow-receiving"),t.removeEventListener("mouseup",t.tabulatorElementDropEvent),delete t.tabulatorElementDropEvent}))}connect(t,e){return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=t,this.connectedRow=e,this.table.element.classList.add("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach((t=>{"row"===t.type&&t.modules.moveRow&&t.modules.moveRow.mouseup&&t.getElement().addEventListener("mouseup",t.modules.moveRow.mouseup)})),this.tableRowDropEvent=this.tableRowDrop.bind(this),this.table.element.addEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStart",e,t),!0)}disconnect(t){t===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach((t=>{"row"===t.type&&t.modules.moveRow&&t.modules.moveRow.mouseup&&t.getElement().removeEventListener("mouseup",t.modules.moveRow.mouseup)})),this.table.element.removeEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStop",t)):console.warn("Move Row Error - trying to disconnect from non connected table")}dropComplete(t,e,n){var r=!1;if(n){switch(typeof this.table.options.movableRowsSender){case"string":r=this.senders[this.table.options.movableRowsSender];break;case"function":r=this.table.options.movableRowsSender}r?r.call(this,this.moving?this.moving.getComponent():void 0,e?e.getComponent():void 0,t):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.dispatchExternal("movableRowsSent",this.moving.getComponent(),e?e.getComponent():void 0,t)}else this.dispatchExternal("movableRowsSentFailed",this.moving.getComponent(),e?e.getComponent():void 0,t);this.endMove()}tableRowDrop(t,e){var n=!1,r=!1;switch(t.stopImmediatePropagation(),typeof this.table.options.movableRowsReceiver){case"string":n=this.receivers[this.table.options.movableRowsReceiver];break;case"function":n=this.table.options.movableRowsReceiver}n?r=n.call(this,this.connectedRow.getComponent(),e?e.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),r?this.dispatchExternal("movableRowsReceived",this.connectedRow.getComponent(),e?e.getComponent():void 0,this.connectedTable):this.dispatchExternal("movableRowsReceivedFailed",this.connectedRow.getComponent(),e?e.getComponent():void 0,this.connectedTable),this.commsSend(this.connectedTable,"moveRow","dropcomplete",{row:e,success:r})}commsReceived(t,e,n){switch(e){case"connect":return this.connect(t,n.row);case"disconnect":return this.disconnect(t);case"dropcomplete":return this.dropComplete(t,n.row,n.success)}}}tt.prototype.receivers={insert:function(t,e,n){return this.table.addRow(t.getData(),void 0,e),!0},add:function(t,e,n){return this.table.addRow(t.getData()),!0},update:function(t,e,n){return!!e&&(e.update(t.getData()),!0)},replace:function(t,e,n){return!!e&&(this.table.addRow(t.getData(),void 0,e),e.delete(),!0)}},tt.prototype.senders={delete:function(t,e,n){t.delete()}},tt.moduleName="moveRow";class et extends l{constructor(t){super(t),this.allowedTypes=["","data","edit","clipboard"],this.enabled=!0,this.registerColumnOption("mutator"),this.registerColumnOption("mutatorParams"),this.registerColumnOption("mutatorData"),this.registerColumnOption("mutatorDataParams"),this.registerColumnOption("mutatorEdit"),this.registerColumnOption("mutatorEditParams"),this.registerColumnOption("mutatorClipboard"),this.registerColumnOption("mutatorClipboardParams"),this.registerColumnOption("mutateLink")}initialize(){this.subscribe("cell-value-changing",this.transformCell.bind(this)),this.subscribe("cell-value-changed",this.mutateLink.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-init-before",this.rowDataChanged.bind(this)),this.subscribe("row-data-changing",this.rowDataChanged.bind(this))}rowDataChanged(t,e,n){return this.transformRow(e,"data",n)}initializeColumn(t){var e=!1,n={};this.allowedTypes.forEach((r=>{var i,o="mutator"+(r.charAt(0).toUpperCase()+r.slice(1));t.definition[o]&&(i=this.lookupMutator(t.definition[o]))&&(e=!0,n[o]={mutator:i,params:t.definition[o+"Params"]||{}})})),e&&(t.modules.mutate=n)}lookupMutator(t){var e=!1;switch(typeof t){case"string":et.mutators[t]?e=et.mutators[t]:console.warn("Mutator Error - No such mutator found, ignoring: ",t);break;case"function":e=t}return e}transformRow(t,e,n){var r,i="mutator"+(e.charAt(0).toUpperCase()+e.slice(1));return this.enabled&&this.table.columnManager.traverse((o=>{var a,s,l;o.modules.mutate&&(a=o.modules.mutate[i]||o.modules.mutate.mutator||!1)&&(r=o.getFieldValue("undefined"!==typeof n?n:t),("data"==e&&!n||"undefined"!==typeof r)&&(l=o.getComponent(),s="function"===typeof a.params?a.params(r,t,e,l):a.params,o.setFieldValue(t,a.mutator(r,t,e,s,l))))})),t}transformCell(t,e){if(t.column.modules.mutate){var n=t.column.modules.mutate.mutatorEdit||t.column.modules.mutate.mutator||!1,r={};if(n)return r=Object.assign(r,t.row.getData()),t.column.setFieldValue(r,e),n.mutator(e,r,"edit",n.params,t.getComponent())}return e}mutateLink(t){var e=t.column.definition.mutateLink;e&&(Array.isArray(e)||(e=[e]),e.forEach((e=>{var n=t.row.getCell(e);n&&n.setValue(n.getValue(),!0,!0)})))}enable(){this.enabled=!0}disable(){this.enabled=!1}}et.moduleName="mutator",et.mutators={};var nt={rows:function(t,e,n,r,i){var o=document.createElement("span"),a=document.createElement("span"),s=document.createElement("span"),l=document.createElement("span"),u=document.createElement("span"),c=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",(t=>{a.innerHTML=t})),this.table.modules.localize.langBind("pagination|counter|of",(t=>{l.innerHTML=t})),this.table.modules.localize.langBind("pagination|counter|rows",(t=>{c.innerHTML=t})),r?(s.innerHTML=" "+e+"-"+Math.min(e+t-1,r)+" ",u.innerHTML=" "+r+" ",o.appendChild(a),o.appendChild(s),o.appendChild(l),o.appendChild(u),o.appendChild(c)):(s.innerHTML=" 0 ",o.appendChild(a),o.appendChild(s),o.appendChild(c)),o},pages:function(t,e,n,r,i){var o=document.createElement("span"),a=document.createElement("span"),s=document.createElement("span"),l=document.createElement("span"),u=document.createElement("span"),c=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",(t=>{a.innerHTML=t})),s.innerHTML=" "+n+" ",this.table.modules.localize.langBind("pagination|counter|of",(t=>{l.innerHTML=t})),u.innerHTML=" "+i+" ",this.table.modules.localize.langBind("pagination|counter|pages",(t=>{c.innerHTML=t})),o.appendChild(a),o.appendChild(s),o.appendChild(l),o.appendChild(u),o.appendChild(c),o}};class rt extends l{constructor(t){super(t),this.mode="local",this.progressiveLoad=!1,this.element=null,this.pageCounterElement=null,this.pageCounter=null,this.size=0,this.page=1,this.count=5,this.max=1,this.remoteRowCountEstimate=null,this.initialLoad=!0,this.dataChanging=!1,this.pageSizes=[],this.registerTableOption("pagination",!1),this.registerTableOption("paginationMode","local"),this.registerTableOption("paginationSize",!1),this.registerTableOption("paginationInitialPage",1),this.registerTableOption("paginationCounter",!1),this.registerTableOption("paginationCounterElement",!1),this.registerTableOption("paginationButtonCount",5),this.registerTableOption("paginationSizeSelector",!1),this.registerTableOption("paginationElement",!1),this.registerTableOption("paginationAddRow","page"),this.registerTableOption("progressiveLoad",!1),this.registerTableOption("progressiveLoadDelay",0),this.registerTableOption("progressiveLoadScrollMargin",0),this.registerTableFunction("setMaxPage",this.setMaxPage.bind(this)),this.registerTableFunction("setPage",this.setPage.bind(this)),this.registerTableFunction("setPageToRow",this.userSetPageToRow.bind(this)),this.registerTableFunction("setPageSize",this.userSetPageSize.bind(this)),this.registerTableFunction("getPageSize",this.getPageSize.bind(this)),this.registerTableFunction("previousPage",this.previousPage.bind(this)),this.registerTableFunction("nextPage",this.nextPage.bind(this)),this.registerTableFunction("getPage",this.getPage.bind(this)),this.registerTableFunction("getPageMax",this.getPageMax.bind(this)),this.registerComponentFunction("row","pageTo",this.setPageToRow.bind(this))}initialize(){this.table.options.pagination?(this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("footer-redraw",this.footerRedraw.bind(this)),"page"==this.table.options.paginationAddRow&&this.subscribe("row-adding-position",this.rowAddingPosition.bind(this)),"remote"===this.table.options.paginationMode&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this))),this.table.options.progressiveLoad&&console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time"),this.registerDisplayHandler(this.restOnRenderBefore.bind(this),40),this.registerDisplayHandler(this.getRows.bind(this),50),this.createElements(),this.initializePageCounter(),this.initializePaginator()):this.table.options.progressiveLoad&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.initializeProgressive(this.table.options.progressiveLoad),"scroll"===this.table.options.progressiveLoad&&this.subscribe("scroll-vertical",this.scrollVertical.bind(this)))}rowAddingPosition(t,e){var n,r=this.table.rowManager,i=r.getDisplayRows();return e?i.length?n=i[0]:r.activeRows.length&&(n=r.activeRows[r.activeRows.length-1],e=!1):i.length&&(n=i[i.length-1],e=!(i.length<this.size)),{index:n,top:e}}calculatePageSizes(){var t,e;this.table.options.paginationSize?this.size=this.table.options.paginationSize:((t=document.createElement("div")).classList.add("tabulator-row"),t.style.visibility="hidden",(e=document.createElement("div")).classList.add("tabulator-cell"),e.innerHTML="Page Row Test",t.appendChild(e),this.table.rowManager.getTableElement().appendChild(t),this.size=Math.floor(this.table.rowManager.getElement().clientHeight/t.offsetHeight),this.table.rowManager.getTableElement().removeChild(t)),this.dispatchExternal("pageSizeChanged",this.size),this.generatePageSizeSelectList()}initialLoadComplete(){this.initialLoad=!1}remotePageParams(t,e,n,r){return this.initialLoad||(this.progressiveLoad&&!n||!this.progressiveLoad&&!this.dataChanging)&&this.reset(!0),r.page=this.page,this.size&&(r.size=this.size),r}userSetPageToRow(t){return this.table.options.pagination&&(t=this.table.rowManager.findRow(t))?this.setPageToRow(t):Promise.reject()}userSetPageSize(t){return!!this.table.options.pagination&&(this.setPageSize(t),this.setPage(1))}scrollVertical(t,e){var n;e||this.table.dataLoader.loading||(n=this.table.rowManager.getElement()).scrollHeight-n.clientHeight-t<(this.table.options.progressiveLoadScrollMargin||2*n.clientHeight)&&this.nextPage().catch((()=>{}))}restOnRenderBefore(t,e){return e||"local"===this.mode&&this.reset(),t}rowsUpdated(){this.refreshData(!0,"all")}createElements(){var t;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),(t=document.createElement("button")).classList.add("tabulator-page"),t.setAttribute("type","button"),t.setAttribute("role","button"),t.setAttribute("aria-label",""),t.setAttribute("title",""),this.firstBut=t.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=t.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=t.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=t.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))}generatePageSizeSelectList(){var t=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))t=this.table.options.paginationSizeSelector,this.pageSizes=t,-1==this.pageSizes.indexOf(this.size)&&t.unshift(this.size);else if(-1==this.pageSizes.indexOf(this.size)){t=[];for(let e=1;e<5;e++)t.push(this.size*e);this.pageSizes=t}else t=this.pageSizes;for(;this.pageSizeSelect.firstChild;)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);t.forEach((t=>{var e=document.createElement("option");e.value=t,!0===t?this.langBind("pagination|all",(function(t){e.innerHTML=t})):e.innerHTML=t,this.pageSizeSelect.appendChild(e)})),this.pageSizeSelect.value=this.size}}initializePageCounter(){var t=this.table.options.paginationCounter,e=null;t&&((e="function"===typeof t?t:rt.pageCounters[t])?(this.pageCounter=e,this.pageCounterElement=document.createElement("span"),this.pageCounterElement.classList.add("tabulator-page-counter")):console.warn("Pagination Error - No such page counter found: ",t))}initializePaginator(t){var e,n;t||(this.langBind("pagination|first",(t=>{this.firstBut.innerHTML=t})),this.langBind("pagination|first_title",(t=>{this.firstBut.setAttribute("aria-label",t),this.firstBut.setAttribute("title",t)})),this.langBind("pagination|prev",(t=>{this.prevBut.innerHTML=t})),this.langBind("pagination|prev_title",(t=>{this.prevBut.setAttribute("aria-label",t),this.prevBut.setAttribute("title",t)})),this.langBind("pagination|next",(t=>{this.nextBut.innerHTML=t})),this.langBind("pagination|next_title",(t=>{this.nextBut.setAttribute("aria-label",t),this.nextBut.setAttribute("title",t)})),this.langBind("pagination|last",(t=>{this.lastBut.innerHTML=t})),this.langBind("pagination|last_title",(t=>{this.lastBut.setAttribute("aria-label",t),this.lastBut.setAttribute("title",t)})),this.firstBut.addEventListener("click",(()=>{this.setPage(1)})),this.prevBut.addEventListener("click",(()=>{this.previousPage()})),this.nextBut.addEventListener("click",(()=>{this.nextPage()})),this.lastBut.addEventListener("click",(()=>{this.setPage(this.max)})),this.table.options.paginationElement&&(this.element=this.table.options.paginationElement),this.pageSizeSelect&&(e=document.createElement("label"),this.langBind("pagination|page_size",(t=>{this.pageSizeSelect.setAttribute("aria-label",t),this.pageSizeSelect.setAttribute("title",t),e.innerHTML=t})),this.element.appendChild(e),this.element.appendChild(this.pageSizeSelect),this.pageSizeSelect.addEventListener("change",(t=>{this.setPageSize("true"==this.pageSizeSelect.value||this.pageSizeSelect.value),this.setPage(1)}))),this.element.appendChild(this.firstBut),this.element.appendChild(this.prevBut),this.element.appendChild(this.pagesElement),this.element.appendChild(this.nextBut),this.element.appendChild(this.lastBut),this.table.options.paginationElement||(this.table.options.paginationCounter&&(this.table.options.paginationCounterElement?this.table.options.paginationCounterElement instanceof HTMLElement?this.table.options.paginationCounterElement.appendChild(this.pageCounterElement):"string"===typeof this.table.options.paginationCounterElement&&((n=document.querySelector(this.table.options.paginationCounterElement))?n.appendChild(this.pageCounterElement):console.warn("Pagination Error - Unable to find element matching paginationCounterElement selector:",this.table.options.paginationCounterElement)):this.footerAppend(this.pageCounterElement)),this.footerAppend(this.element)),this.page=this.table.options.paginationInitialPage,this.count=this.table.options.paginationButtonCount),this.mode=this.table.options.paginationMode}initializeProgressive(t){this.initializePaginator(!0),this.mode="progressive_"+t,this.progressiveLoad=!0}trackChanges(){this.dispatch("page-changed")}setMaxRows(t){this.max=t?!0===this.size?1:Math.ceil(t/this.size):1,this.page>this.max&&(this.page=this.max)}reset(t){this.initialLoad||("local"==this.mode||t)&&(this.page=1,this.trackChanges())}setMaxPage(t){t=parseInt(t),this.max=t||1,this.page>this.max&&(this.page=this.max,this.trigger())}setPage(t){switch(t){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return(t=parseInt(t))>0&&t<=this.max||"local"!==this.mode?(this.page=t,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Requested page is out of range of 1 - "+this.max+":",t),Promise.reject())}setPageToRow(t){var e=this.displayRows(-1).indexOf(t);if(e>-1){var n=!0===this.size?1:Math.ceil((e+1)/this.size);return this.setPage(n)}return console.warn("Pagination Error - Requested row is not visible"),Promise.reject()}setPageSize(t){!0!==t&&(t=parseInt(t)),t>0&&(this.size=t,this.dispatchExternal("pageSizeChanged",t)),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.trackChanges()}_setPageCounter(t,e,n){var r;if(this.pageCounter)switch("remote"===this.mode&&(e=this.size,n=(this.page-1)*this.size+1,t=this.remoteRowCountEstimate),typeof(r=this.pageCounter.call(this,e,n,this.page,t,this.max))){case"object":if(r instanceof Node){for(;this.pageCounterElement.firstChild;)this.pageCounterElement.removeChild(this.pageCounterElement.firstChild);this.pageCounterElement.appendChild(r)}else this.pageCounterElement.innerHTML="",null!=r&&console.warn("Page Counter Error - Page Counter has returned a type of object, the only valid page counter object return is an instance of Node, the page counter returned:",r);break;case"undefined":this.pageCounterElement.innerHTML="";break;default:this.pageCounterElement.innerHTML=r}}_setPageButtons(){let t=Math.floor((this.count-1)/2),e=Math.ceil((this.count-1)/2),n=this.max-this.page+t+1<this.count?this.max-this.count+1:Math.max(this.page-t,1),r=this.page<=e?Math.min(this.count,this.max):Math.min(this.page+e,this.max);for(;this.pagesElement.firstChild;)this.pagesElement.removeChild(this.pagesElement.firstChild);1==this.page?(this.firstBut.disabled=!0,this.prevBut.disabled=!0):(this.firstBut.disabled=!1,this.prevBut.disabled=!1),this.page==this.max?(this.lastBut.disabled=!0,this.nextBut.disabled=!0):(this.lastBut.disabled=!1,this.nextBut.disabled=!1);for(let i=n;i<=r;i++)i>0&&i<=this.max&&this.pagesElement.appendChild(this._generatePageButton(i));this.footerRedraw()}_generatePageButton(t){var e=document.createElement("button");return e.classList.add("tabulator-page"),t==this.page&&e.classList.add("active"),e.setAttribute("type","button"),e.setAttribute("role","button"),this.langBind("pagination|page_title",(n=>{e.setAttribute("aria-label",n+" "+t),e.setAttribute("title",n+" "+t)})),e.setAttribute("data-page",t),e.textContent=t,e.addEventListener("click",(e=>{this.setPage(t)})),e}previousPage(){return this.page>1?(this.page--,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Previous page would be less than page 1:",0),Promise.reject())}nextPage(){return this.page<this.max?(this.page++,this.trackChanges(),this.trigger()):(this.progressiveLoad||console.warn("Pagination Error - Next page would be greater than maximum page of "+this.max+":",this.max+1),Promise.reject())}getPage(){return this.page}getPageMax(){return this.max}getPageSize(t){return this.size}getMode(){return this.mode}getRows(t){var e,n,r,i,o=0,a=t.filter((t=>"row"===t.type));if("local"==this.mode){e=[],this.setMaxRows(t.length),!0===this.size?(n=0,r=t.length):r=(n=this.size*(this.page-1))+parseInt(this.size),this._setPageButtons();for(let a=n;a<r;a++){let n=t[a];n&&(e.push(n),"row"===n.type&&(i||(i=n),o++))}return this._setPageCounter(a.length,o,i?a.indexOf(i)+1:0),e}return this._setPageButtons(),this._setPageCounter(a.length),t.slice(0)}trigger(){var t;switch(this.mode){case"local":return t=this.table.rowManager.scrollLeft,this.refreshData(),this.table.rowManager.scrollHorizontal(t),this.dispatchExternal("pageLoaded",this.getPage()),Promise.resolve();case"remote":return this.dataChanging=!0,this.reloadData(null).finally((()=>{this.dataChanging=!1}));case"progressive_load":case"progressive_scroll":return this.reloadData(null,!0);default:return console.warn("Pagination Error - no such pagination mode:",this.mode),Promise.reject()}}_parseRemoteData(t){var e;if("undefined"===typeof t.last_page&&console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").last_page||"last_page")+"' property"),t.data){if(this.max=parseInt(t.last_page)||1,this.remoteRowCountEstimate="undefined"!==typeof t.last_row?t.last_row:t.last_page*this.size-(this.page==t.last_page?this.size-t.data.length:0),this.progressiveLoad){switch(this.mode){case"progressive_load":1==this.page?this.table.rowManager.setData(t.data,!1,1==this.page):this.table.rowManager.addRows(t.data),this.page<this.max&&setTimeout((()=>{this.nextPage()}),this.table.options.progressiveLoadDelay);break;case"progressive_scroll":t=1===this.page?t.data:this.table.rowManager.getData().concat(t.data),this.table.rowManager.setData(t,1!==this.page,1==this.page),e=this.table.options.progressiveLoadScrollMargin||2*this.table.rowManager.element.clientHeight,this.table.rowManager.element.scrollHeight<=this.table.rowManager.element.clientHeight+e&&this.page<this.max&&setTimeout((()=>{this.nextPage()}))}return!1}this.dispatchExternal("pageLoaded",this.getPage())}else console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").data||"data")+"' property");return t.data}footerRedraw(){var t=this.table.footerManager.containerElement;Math.ceil(t.clientWidth)-t.scrollWidth<0?this.pagesElement.style.display="none":(this.pagesElement.style.display="",Math.ceil(t.clientWidth)-t.scrollWidth<0&&(this.pagesElement.style.display="none"))}}rt.moduleName="page",rt.pageCounters=nt;var it={local:function(t,e){var n=localStorage.getItem(t+"-"+e);return!!n&&JSON.parse(n)},cookie:function(t,e){var n,r,i=document.cookie,o=t+"-"+e,a=i.indexOf(o+"=");return a>-1&&((n=(i=i.slice(a)).indexOf(";"))>-1&&(i=i.slice(0,n)),r=i.replace(o+"=","")),!!r&&JSON.parse(r)}},ot={local:function(t,e,n){localStorage.setItem(t+"-"+e,JSON.stringify(n))},cookie:function(t,e,n){var r=new Date;r.setDate(r.getDate()+1e4),document.cookie=t+"-"+e+"="+JSON.stringify(n)+"; expires="+r.toUTCString()}};class at extends l{constructor(t){super(t),this.mode="",this.id="",this.defWatcherBlock=!1,this.config={},this.readFunc=!1,this.writeFunc=!1,this.registerTableOption("persistence",!1),this.registerTableOption("persistenceID",""),this.registerTableOption("persistenceMode",!0),this.registerTableOption("persistenceReaderFunc",!1),this.registerTableOption("persistenceWriterFunc",!1)}localStorageTest(){var t="_tabulator_test";try{return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(e){return!1}}initialize(){if(this.table.options.persistence){var t,e=this.table.options.persistenceMode,n=this.table.options.persistenceID;this.mode=!0!==e?e:this.localStorageTest()?"local":"cookie",this.table.options.persistenceReaderFunc?"function"===typeof this.table.options.persistenceReaderFunc?this.readFunc=this.table.options.persistenceReaderFunc:at.readers[this.table.options.persistenceReaderFunc]?this.readFunc=at.readers[this.table.options.persistenceReaderFunc]:console.warn("Persistence Read Error - invalid reader set",this.table.options.persistenceReaderFunc):at.readers[this.mode]?this.readFunc=at.readers[this.mode]:console.warn("Persistence Read Error - invalid reader set",this.mode),this.table.options.persistenceWriterFunc?"function"===typeof this.table.options.persistenceWriterFunc?this.writeFunc=this.table.options.persistenceWriterFunc:at.writers[this.table.options.persistenceWriterFunc]?this.writeFunc=at.writers[this.table.options.persistenceWriterFunc]:console.warn("Persistence Write Error - invalid reader set",this.table.options.persistenceWriterFunc):at.writers[this.mode]?this.writeFunc=at.writers[this.mode]:console.warn("Persistence Write Error - invalid writer set",this.mode),this.id="tabulator-"+(n||this.table.element.getAttribute("id")||""),this.config={sort:!0===this.table.options.persistence||this.table.options.persistence.sort,filter:!0===this.table.options.persistence||this.table.options.persistence.filter,headerFilter:!0===this.table.options.persistence||this.table.options.persistence.headerFilter,group:!0===this.table.options.persistence||this.table.options.persistence.group,page:!0===this.table.options.persistence||this.table.options.persistence.page,columns:!0===this.table.options.persistence?["title","width","visible"]:this.table.options.persistence.columns},this.config.page&&(t=this.retrieveData("page"))&&("undefined"===typeof t.paginationSize||!0!==this.config.page&&!this.config.page.size||(this.table.options.paginationSize=t.paginationSize),"undefined"===typeof t.paginationInitialPage||!0!==this.config.page&&!this.config.page.page||(this.table.options.paginationInitialPage=t.paginationInitialPage)),this.config.group&&(t=this.retrieveData("group"))&&("undefined"===typeof t.groupBy||!0!==this.config.group&&!this.config.group.groupBy||(this.table.options.groupBy=t.groupBy),"undefined"===typeof t.groupStartOpen||!0!==this.config.group&&!this.config.group.groupStartOpen||(this.table.options.groupStartOpen=t.groupStartOpen),"undefined"===typeof t.groupHeader||!0!==this.config.group&&!this.config.group.groupHeader||(this.table.options.groupHeader=t.groupHeader)),this.config.columns&&(this.table.options.columns=this.load("columns",this.table.options.columns),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-show",this.save.bind(this,"columns")),this.subscribe("column-hide",this.save.bind(this,"columns")),this.subscribe("column-moved",this.save.bind(this,"columns"))),this.subscribe("table-built",this.tableBuilt.bind(this),0),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("filter-changed",this.eventSave.bind(this,"filter")),this.subscribe("filter-changed",this.eventSave.bind(this,"headerFilter")),this.subscribe("sort-changed",this.eventSave.bind(this,"sort")),this.subscribe("group-changed",this.eventSave.bind(this,"group")),this.subscribe("page-changed",this.eventSave.bind(this,"page")),this.subscribe("column-resized",this.eventSave.bind(this,"columns")),this.subscribe("column-width",this.eventSave.bind(this,"columns")),this.subscribe("layout-refreshed",this.eventSave.bind(this,"columns"))}this.registerTableFunction("getColumnLayout",this.getColumnLayout.bind(this)),this.registerTableFunction("setColumnLayout",this.setColumnLayout.bind(this))}eventSave(t){this.config[t]&&this.save(t)}tableBuilt(){var t,e,n;this.config.sort&&!1===!(t=this.load("sort"))&&(this.table.options.initialSort=t),this.config.filter&&!1===!(e=this.load("filter"))&&(this.table.options.initialFilter=e),this.config.headerFilter&&!1===!(n=this.load("headerFilter"))&&(this.table.options.initialHeaderFilter=n)}tableRedraw(t){t&&this.config.columns&&this.save("columns")}getColumnLayout(){return this.parseColumns(this.table.columnManager.getColumns())}setColumnLayout(t){return this.table.columnManager.setColumns(this.mergeDefinition(this.table.options.columns,t,!0)),!0}initializeColumn(t){var e;this.config.columns&&(this.defWatcherBlock=!0,e=t.getDefinition(),(!0===this.config.columns?Object.keys(e):this.config.columns).forEach((t=>{var n=Object.getOwnPropertyDescriptor(e,t),r=e[t];n&&Object.defineProperty(e,t,{set:t=>{r=t,this.defWatcherBlock||this.save("columns"),n.set&&n.set(t)},get:()=>(n.get&&n.get(),r)})})),this.defWatcherBlock=!1)}load(t,e){var n=this.retrieveData(t);return e&&(n=n?this.mergeDefinition(e,n):e),n}retrieveData(t){return!!this.readFunc&&this.readFunc(this.id,t)}mergeDefinition(t,e,n){var r=[];return(e=e||[]).forEach(((e,i)=>{var o,a=this._findColumn(t,e);a&&(n?o=Object.keys(e):!0===this.config.columns||void 0==this.config.columns?(o=Object.keys(a)).push("width"):o=this.config.columns,o.forEach((t=>{"columns"!==t&&"undefined"!==typeof e[t]&&(a[t]=e[t])})),a.columns&&(a.columns=this.mergeDefinition(a.columns,e.columns)),r.push(a))})),t.forEach(((t,n)=>{this._findColumn(e,t)||(r.length>n?r.splice(n,0,t):r.push(t))})),r}_findColumn(t,e){var n=e.columns?"group":e.field?"field":"object";return t.find((function(t){switch(n){case"group":return t.title===e.title&&t.columns.length===e.columns.length;case"field":return t.field===e.field;case"object":return t===e}}))}save(t){var e={};switch(t){case"columns":e=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":e=this.table.modules.filter.getFilters();break;case"headerFilter":e=this.table.modules.filter.getHeaderFilters();break;case"sort":e=this.validateSorters(this.table.modules.sort.getSort());break;case"group":e=this.getGroupConfig();break;case"page":e=this.getPageConfig()}this.writeFunc&&this.writeFunc(this.id,t,e)}validateSorters(t){return t.forEach((function(t){t.column=t.field,delete t.field})),t}getGroupConfig(){var t={};return this.config.group&&((!0===this.config.group||this.config.group.groupBy)&&(t.groupBy=this.table.options.groupBy),(!0===this.config.group||this.config.group.groupStartOpen)&&(t.groupStartOpen=this.table.options.groupStartOpen),(!0===this.config.group||this.config.group.groupHeader)&&(t.groupHeader=this.table.options.groupHeader)),t}getPageConfig(){var t={};return this.config.page&&((!0===this.config.page||this.config.page.size)&&(t.paginationSize=this.table.modules.page.getPageSize()),(!0===this.config.page||this.config.page.page)&&(t.paginationInitialPage=this.table.modules.page.getPage())),t}parseColumns(t){var e=[],n=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return t.forEach((t=>{var r,i={},o=t.getDefinition();t.isGroup?(i.title=o.title,i.columns=this.parseColumns(t.getColumns())):(i.field=t.getField(),!0===this.config.columns||void 0==this.config.columns?((r=Object.keys(o)).push("width"),r.push("visible")):r=this.config.columns,r.forEach((e=>{switch(e){case"width":i.width=t.getWidth();break;case"visible":i.visible=t.visible;break;default:"function"!==typeof o[e]&&-1===n.indexOf(e)&&(i[e]=o[e])}}))),e.push(i)})),e}}at.moduleName="persistence",at.moduleInitOrder=-10,at.readers=it,at.writers=ot;class st extends l{constructor(t){super(t),this.columnSubscribers={},this.registerTableOption("rowContextPopup",!1),this.registerTableOption("rowClickPopup",!1),this.registerTableOption("rowDblClickPopup",!1),this.registerTableOption("groupContextPopup",!1),this.registerTableOption("groupClickPopup",!1),this.registerTableOption("groupDblClickPopup",!1),this.registerColumnOption("headerContextPopup"),this.registerColumnOption("headerClickPopup"),this.registerColumnOption("headerDblClickPopup"),this.registerColumnOption("headerPopup"),this.registerColumnOption("headerPopupIcon"),this.registerColumnOption("contextPopup"),this.registerColumnOption("clickPopup"),this.registerColumnOption("dblClickPopup"),this.registerComponentFunction("cell","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("column","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("row","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("group","popup",this._componentPopupCall.bind(this))}initialize(){this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}_componentPopupCall(t,e,n){this.loadPopupEvent(e,null,t,n)}initializeRowWatchers(){this.table.options.rowContextPopup&&(this.subscribe("row-contextmenu",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup)),this.table.on("rowTapHold",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup))),this.table.options.rowClickPopup&&this.subscribe("row-click",this.loadPopupEvent.bind(this,this.table.options.rowClickPopup)),this.table.options.rowDblClickPopup&&this.subscribe("row-dblclick",this.loadPopupEvent.bind(this,this.table.options.rowDblClickPopup))}initializeGroupWatchers(){this.table.options.groupContextPopup&&(this.subscribe("group-contextmenu",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup)),this.table.on("groupTapHold",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup))),this.table.options.groupClickPopup&&this.subscribe("group-click",this.loadPopupEvent.bind(this,this.table.options.groupClickPopup)),this.table.options.groupDblClickPopup&&this.subscribe("group-dblclick",this.loadPopupEvent.bind(this,this.table.options.groupDblClickPopup))}initializeColumn(t){var e=t.definition;e.headerContextPopup&&!this.columnSubscribers.headerContextPopup&&(this.columnSubscribers.headerContextPopup=this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextPopup),this.table.on("headerTapHold",this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"))),e.headerClickPopup&&!this.columnSubscribers.headerClickPopup&&(this.columnSubscribers.headerClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerClickPopup"),this.subscribe("column-click",this.columnSubscribers.headerClickPopup)),e.headerDblClickPopup&&!this.columnSubscribers.headerDblClickPopup&&(this.columnSubscribers.headerDblClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerDblClickPopup"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickPopup)),e.headerPopup&&this.initializeColumnHeaderPopup(t),e.contextPopup&&!this.columnSubscribers.contextPopup&&(this.columnSubscribers.contextPopup=this.loadPopupTableCellEvent.bind(this,"contextPopup"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextPopup),this.table.on("cellTapHold",this.loadPopupTableCellEvent.bind(this,"contextPopup"))),e.clickPopup&&!this.columnSubscribers.clickPopup&&(this.columnSubscribers.clickPopup=this.loadPopupTableCellEvent.bind(this,"clickPopup"),this.subscribe("cell-click",this.columnSubscribers.clickPopup)),e.dblClickPopup&&!this.columnSubscribers.dblClickPopup&&(this.columnSubscribers.dblClickPopup=this.loadPopupTableCellEvent.bind(this,"dblClickPopup"),this.subscribe("cell-click",this.columnSubscribers.dblClickPopup))}initializeColumnHeaderPopup(t){var e,n=t.definition.headerPopupIcon;(e=document.createElement("span")).classList.add("tabulator-header-popup-button"),n?("function"===typeof n&&(n=n(t.getComponent())),n instanceof HTMLElement?e.appendChild(n):e.innerHTML=n):e.innerHTML="&vellip;",e.addEventListener("click",(e=>{e.stopPropagation(),e.preventDefault(),this.loadPopupEvent(t.definition.headerPopup,e,t)})),t.titleElement.insertBefore(e,t.titleElement.firstChild)}loadPopupTableCellEvent(t,e,n){n._cell&&(n=n._cell),n.column.definition[t]&&this.loadPopupEvent(n.column.definition[t],e,n)}loadPopupTableColumnEvent(t,e,n){n._column&&(n=n._column),n.definition[t]&&this.loadPopupEvent(n.definition[t],e,n)}loadPopupEvent(t,e,n,r){var i;n._group?n=n._group:n._row&&(n=n._row),t="function"==typeof t?t.call(this.table,e,n.getComponent(),(function(t){i=t})):t,this.loadPopup(e,n,t,i,r)}loadPopup(t,e,n,r,i){var o,a,s=!(t instanceof MouseEvent);n instanceof HTMLElement?o=n:(o=document.createElement("div")).innerHTML=n,o.classList.add("tabulator-popup"),o.addEventListener("click",(t=>{t.stopPropagation()})),s||t.preventDefault(),a=this.popup(o),"function"===typeof r&&a.renderCallback(r),t?a.show(t):a.show(e.getElement(),i||"center"),a.hideOnBlur((()=>{this.dispatchExternal("popupClosed",e.getComponent())})),this.dispatchExternal("popupOpened",e.getComponent())}}st.moduleName="popup";class lt extends l{constructor(t){super(t),this.element=!1,this.manualBlock=!1,this.beforeprintEventHandler=null,this.afterprintEventHandler=null,this.registerTableOption("printAsHtml",!1),this.registerTableOption("printFormatter",!1),this.registerTableOption("printHeader",!1),this.registerTableOption("printFooter",!1),this.registerTableOption("printStyled",!0),this.registerTableOption("printRowRange","visible"),this.registerTableOption("printConfig",{}),this.registerColumnOption("print"),this.registerColumnOption("titlePrint")}initialize(){this.table.options.printAsHtml&&(this.beforeprintEventHandler=this.replaceTable.bind(this),this.afterprintEventHandler=this.cleanup.bind(this),window.addEventListener("beforeprint",this.beforeprintEventHandler),window.addEventListener("afterprint",this.afterprintEventHandler),this.subscribe("table-destroy",this.destroy.bind(this))),this.registerTableFunction("print",this.printFullscreen.bind(this))}destroy(){this.table.options.printAsHtml&&(window.removeEventListener("beforeprint",this.beforeprintEventHandler),window.removeEventListener("afterprint",this.afterprintEventHandler))}replaceTable(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.generateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))}cleanup(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")}printFullscreen(t,e,n){var r,i,o=window.scrollX,a=window.scrollY,s=document.createElement("div"),l=document.createElement("div"),u=this.table.modules.export.generateTable("undefined"!=typeof n?n:this.table.options.printConfig,"undefined"!=typeof e?e:this.table.options.printStyled,t||this.table.options.printRowRange,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(s.classList.add("tabulator-print-header"),"string"==typeof(r="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader)?s.innerHTML=r:s.appendChild(r),this.element.appendChild(s)),this.element.appendChild(u),this.table.options.printFooter&&(l.classList.add("tabulator-print-footer"),"string"==typeof(i="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter)?l.innerHTML=i:l.appendChild(i),this.element.appendChild(l)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,u),window.print(),this.cleanup(),window.scrollTo(o,a),this.manualBlock=!1}}lt.moduleName="print";class ut extends l{constructor(t){super(t),this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0,this.registerTableOption("reactiveData",!1)}initialize(){this.table.options.reactiveData&&(this.subscribe("cell-value-save-before",this.block.bind(this,"cellsave")),this.subscribe("cell-value-save-after",this.unblock.bind(this,"cellsave")),this.subscribe("row-data-save-before",this.block.bind(this,"rowsave")),this.subscribe("row-data-save-after",this.unblock.bind(this,"rowsave")),this.subscribe("row-data-init-after",this.watchRow.bind(this)),this.subscribe("data-processing",this.watchData.bind(this)),this.subscribe("table-destroy",this.unwatchData.bind(this)))}watchData(t){var e,n=this;this.currentVersion++,e=this.currentVersion,this.unwatchData(),this.data=t,this.origFuncs.push=t.push,Object.defineProperty(this.data,"push",{enumerable:!1,configurable:!0,value:function(){var r,i=Array.from(arguments);return n.blocked||e!==n.currentVersion||(n.block("data-push"),i.forEach((t=>{n.table.rowManager.addRowActual(t,!1)})),r=n.origFuncs.push.apply(t,arguments),n.unblock("data-push")),r}}),this.origFuncs.unshift=t.unshift,Object.defineProperty(this.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var r,i=Array.from(arguments);return n.blocked||e!==n.currentVersion||(n.block("data-unshift"),i.forEach((t=>{n.table.rowManager.addRowActual(t,!0)})),r=n.origFuncs.unshift.apply(t,arguments),n.unblock("data-unshift")),r}}),this.origFuncs.shift=t.shift,Object.defineProperty(this.data,"shift",{enumerable:!1,configurable:!0,value:function(){var r,i;return n.blocked||e!==n.currentVersion||(n.block("data-shift"),n.data.length&&(r=n.table.rowManager.getRowFromDataObject(n.data[0]))&&r.deleteActual(),i=n.origFuncs.shift.call(t),n.unblock("data-shift")),i}}),this.origFuncs.pop=t.pop,Object.defineProperty(this.data,"pop",{enumerable:!1,configurable:!0,value:function(){var r,i;return n.blocked||e!==n.currentVersion||(n.block("data-pop"),n.data.length&&(r=n.table.rowManager.getRowFromDataObject(n.data[n.data.length-1]))&&r.deleteActual(),i=n.origFuncs.pop.call(t),n.unblock("data-pop")),i}}),this.origFuncs.splice=t.splice,Object.defineProperty(this.data,"splice",{enumerable:!1,configurable:!0,value:function(){var r,i,o=Array.from(arguments),a=o[0]<0?t.length+o[0]:o[0],s=o[1],l=!!o[2]&&o.slice(2);if(!n.blocked&&e===n.currentVersion){if(n.block("data-splice"),l&&((r=!!t[a]&&n.table.rowManager.getRowFromDataObject(t[a]))?l.forEach((t=>{n.table.rowManager.addRowActual(t,!0,r,!0)})):(l=l.slice().reverse()).forEach((t=>{n.table.rowManager.addRowActual(t,!0,!1,!0)}))),0!==s){var u=t.slice(a,"undefined"===typeof o[1]?o[1]:a+s);u.forEach(((t,e)=>{var r=n.table.rowManager.getRowFromDataObject(t);r&&r.deleteActual(e!==u.length-1)}))}(l||0!==s)&&n.table.rowManager.reRenderInPosition(),i=n.origFuncs.splice.apply(t,arguments),n.unblock("data-splice")}return i}})}unwatchData(){if(!1!==this.data)for(var t in this.origFuncs)Object.defineProperty(this.data,t,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})}watchRow(t){var e=t.getData();for(var n in e)this.watchKey(t,e,n);this.table.options.dataTree&&this.watchTreeChildren(t)}watchTreeChildren(t){var e=this,n=t.getData()[this.table.options.dataTreeChildField],r={};n&&(r.push=n.push,Object.defineProperty(n,"push",{enumerable:!1,configurable:!0,value:()=>{if(!e.blocked){e.block("tree-push");var i=r.push.apply(n,arguments);this.rebuildTree(t),e.unblock("tree-push")}return i}}),r.unshift=n.unshift,Object.defineProperty(n,"unshift",{enumerable:!1,configurable:!0,value:()=>{if(!e.blocked){e.block("tree-unshift");var i=r.unshift.apply(n,arguments);this.rebuildTree(t),e.unblock("tree-unshift")}return i}}),r.shift=n.shift,Object.defineProperty(n,"shift",{enumerable:!1,configurable:!0,value:()=>{if(!e.blocked){e.block("tree-shift");var i=r.shift.call(n);this.rebuildTree(t),e.unblock("tree-shift")}return i}}),r.pop=n.pop,Object.defineProperty(n,"pop",{enumerable:!1,configurable:!0,value:()=>{if(!e.blocked){e.block("tree-pop");var i=r.pop.call(n);this.rebuildTree(t),e.unblock("tree-pop")}return i}}),r.splice=n.splice,Object.defineProperty(n,"splice",{enumerable:!1,configurable:!0,value:()=>{if(!e.blocked){e.block("tree-splice");var i=r.splice.apply(n,arguments);this.rebuildTree(t),e.unblock("tree-splice")}return i}}))}rebuildTree(t){this.table.modules.dataTree.initializeRow(t),this.table.modules.dataTree.layoutRow(t),this.table.rowManager.refreshActiveData("tree",!1,!0)}watchKey(t,e,n){var r=this,i=Object.getOwnPropertyDescriptor(e,n),o=e[n],a=this.currentVersion;Object.defineProperty(e,n,{set:e=>{if(o=e,!r.blocked&&a===r.currentVersion){r.block("key");var s={};s[n]=e,t.updateData(s),r.unblock("key")}i.set&&i.set(e)},get:()=>(i.get&&i.get(),o)})}unwatchRow(t){var e=t.getData();for(var n in e)Object.defineProperty(e,n,{value:e[n]})}block(t){this.blocked||(this.blocked=t)}unblock(t){this.blocked===t&&(this.blocked=!1)}}ut.moduleName="reactiveData";class ct extends l{constructor(t){super(t),this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.latestX=!1,this.handle=null,this.initialNextColumn=null,this.nextColumn=null,this.initialized=!1,this.registerColumnOption("resizable",!0),this.registerTableOption("resizableColumnFit",!1)}initialize(){this.subscribe("column-rendered",this.layoutColumnHeader.bind(this))}initializeEventWatchers(){this.initialized||(this.subscribe("cell-rendered",this.layoutCellHandles.bind(this)),this.subscribe("cell-delete",this.deInitializeComponent.bind(this)),this.subscribe("cell-height",this.resizeHandle.bind(this)),this.subscribe("column-moved",this.columnLayoutUpdated.bind(this)),this.subscribe("column-hide",this.deInitializeColumn.bind(this)),this.subscribe("column-show",this.columnLayoutUpdated.bind(this)),this.subscribe("column-width",this.columnWidthUpdated.bind(this)),this.subscribe("column-delete",this.deInitializeComponent.bind(this)),this.subscribe("column-height",this.resizeHandle.bind(this)),this.initialized=!0)}layoutCellHandles(t){"row"===t.row.type&&(this.deInitializeComponent(t),this.initializeColumn("cell",t,t.column,t.element))}layoutColumnHeader(t){t.definition.resizable&&(this.initializeEventWatchers(),this.deInitializeComponent(t),this.initializeColumn("header",t,t,t.element))}columnLayoutUpdated(t){var e=t.prevColumn();this.reinitializeColumn(t),e&&this.reinitializeColumn(e)}columnWidthUpdated(t){t.modules.frozen&&(this.table.modules.frozenColumns.leftColumns.includes(t)?this.table.modules.frozenColumns.leftColumns.forEach((t=>{this.reinitializeColumn(t)})):this.table.modules.frozenColumns.rightColumns.includes(t)&&this.table.modules.frozenColumns.rightColumns.forEach((t=>{this.reinitializeColumn(t)})))}frozenColumnOffset(t){var e=!1;return t.modules.frozen&&(e=t.modules.frozen.marginValue,"left"===t.modules.frozen.position?e+=t.getWidth()-3:e&&(e-=3)),!1!==e&&e+"px"}reinitializeColumn(t){var e=this.frozenColumnOffset(t);t.cells.forEach((n=>{n.modules.resize&&n.modules.resize.handleEl&&(e&&(n.modules.resize.handleEl.style[t.modules.frozen.position]=e,n.modules.resize.handleEl.style["z-index"]=11),n.element.after(n.modules.resize.handleEl))})),t.modules.resize&&t.modules.resize.handleEl&&(e&&(t.modules.resize.handleEl.style[t.modules.frozen.position]=e),t.element.after(t.modules.resize.handleEl))}initializeColumn(t,e,n,r){var i=this,o=n.definition.resizable,a={},s=n.getLastColumn();if("header"===t&&(a={variableHeight:"textarea"==n.definition.formatter||n.definition.variableHeight}),(!0===o||o==t)&&this._checkResizability(s)){var l=document.createElement("span");l.className="tabulator-col-resize-handle",l.addEventListener("click",(function(t){t.stopPropagation()}));var u=function(t){i.startColumn=n,i.initialNextColumn=i.nextColumn=s.nextColumn(),i._mouseDown(t,s,l)};l.addEventListener("mousedown",u),l.addEventListener("touchstart",u,{passive:!0}),l.addEventListener("dblclick",(t=>{var e=s.getWidth();t.stopPropagation(),s.reinitializeWidth(!0),e!==s.getWidth()&&(i.dispatch("column-resized",s),i.table.externalEvents.dispatch("columnResized",s.getComponent()))})),n.modules.frozen&&(l.style.position="sticky",l.style[n.modules.frozen.position]=this.frozenColumnOffset(n)),a.handleEl=l,r.parentNode&&n.visible&&r.after(l)}e.modules.resize=a}deInitializeColumn(t){this.deInitializeComponent(t),t.cells.forEach((t=>{this.deInitializeComponent(t)}))}deInitializeComponent(t){var e;t.modules.resize&&(e=t.modules.resize.handleEl)&&e.parentElement&&e.parentElement.removeChild(e)}resizeHandle(t,e){t.modules.resize&&t.modules.resize.handleEl&&(t.modules.resize.handleEl.style.height=e)}_checkResizability(t){return t.definition.resizable}_mouseDown(t,e,n){var r=this;function i(t){var n,i,o="undefined"===typeof t.screenX?t.touches[0].screenX:t.screenX,a=o-r.startX,s=o-r.latestX;if(r.latestX=o,r.table.rtl&&(a=-a,s=-s),n=e.width==e.minWidth||e.width==e.maxWidth,e.setWidth(r.startWidth+a),i=e.width==e.minWidth||e.width==e.maxWidth,s<0&&(r.nextColumn=r.initialNextColumn),r.table.options.resizableColumnFit&&r.nextColumn&&(!n||!i)){let t=r.nextColumn.getWidth();s>0&&t<=r.nextColumn.minWidth&&(r.nextColumn=r.nextColumn.nextColumn()),r.nextColumn&&r.nextColumn.setWidth(r.nextColumn.getWidth()-s)}r.table.columnManager.rerenderColumns(!0),!r.table.browserSlow&&e.modules.resize&&e.modules.resize.variableHeight&&e.checkCellHeights()}function o(t){r.startColumn.modules.edit&&(r.startColumn.modules.edit.blocked=!1),r.table.browserSlow&&e.modules.resize&&e.modules.resize.variableHeight&&e.checkCellHeights(),document.body.removeEventListener("mouseup",o),document.body.removeEventListener("mousemove",i),n.removeEventListener("touchmove",i),n.removeEventListener("touchend",o),r.table.element.classList.remove("tabulator-block-select"),r.startWidth!==e.getWidth()&&(r.table.columnManager.verticalAlignHeaders(),r.dispatch("column-resized",e),r.table.externalEvents.dispatch("columnResized",e.getComponent()))}r.table.element.classList.add("tabulator-block-select"),t.stopPropagation(),r.startColumn.modules.edit&&(r.startColumn.modules.edit.blocked=!0),r.startX="undefined"===typeof t.screenX?t.touches[0].screenX:t.screenX,r.latestX=r.startX,r.startWidth=e.getWidth(),document.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",o),n.addEventListener("touchmove",i,{passive:!0}),n.addEventListener("touchend",o)}}ct.moduleName="resizeColumns";class dt extends l{constructor(t){super(t),this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null,this.registerTableOption("resizableRows",!1)}initialize(){this.table.options.resizableRows&&this.subscribe("row-layout-after",this.initializeRow.bind(this))}initializeRow(t){var e=this,n=t.getElement(),r=document.createElement("div");r.className="tabulator-row-resize-handle";var i=document.createElement("div");i.className="tabulator-row-resize-handle prev",r.addEventListener("click",(function(t){t.stopPropagation()}));var o=function(n){e.startRow=t,e._mouseDown(n,t,r)};r.addEventListener("mousedown",o),r.addEventListener("touchstart",o,{passive:!0}),i.addEventListener("click",(function(t){t.stopPropagation()}));var a=function(n){var r=e.table.rowManager.prevDisplayRow(t);r&&(e.startRow=r,e._mouseDown(n,r,i))};i.addEventListener("mousedown",a),i.addEventListener("touchstart",a,{passive:!0}),n.appendChild(r),n.appendChild(i)}_mouseDown(t,e,n){var r=this;function i(t){e.setHeight(r.startHeight+(("undefined"===typeof t.screenY?t.touches[0].screenY:t.screenY)-r.startY))}function o(t){document.body.removeEventListener("mouseup",i),document.body.removeEventListener("mousemove",i),n.removeEventListener("touchmove",i),n.removeEventListener("touchend",o),r.table.element.classList.remove("tabulator-block-select"),r.dispatchExternal("rowResized",e.getComponent())}r.table.element.classList.add("tabulator-block-select"),t.stopPropagation(),r.startY="undefined"===typeof t.screenY?t.touches[0].screenY:t.screenY,r.startHeight=e.getHeight(),document.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",o),n.addEventListener("touchmove",i,{passive:!0}),n.addEventListener("touchend",o)}}dt.moduleName="resizeRows";class ht extends l{constructor(t){super(t),this.binding=!1,this.visibilityObserver=!1,this.resizeObserver=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1,this.visible=!1,this.initialized=!1,this.initialRedraw=!1,this.registerTableOption("autoResize",!0)}initialize(){if(this.table.options.autoResize){var t,e=this.table;this.tableHeight=e.element.clientHeight,this.tableWidth=e.element.clientWidth,e.element.parentNode&&(this.containerHeight=e.element.parentNode.clientHeight,this.containerWidth=e.element.parentNode.clientWidth),"undefined"!==typeof IntersectionObserver&&"undefined"!==typeof ResizeObserver&&"virtual"===e.rowManager.getRenderMode()?(this.initializeVisibilityObserver(),this.autoResize=!0,this.resizeObserver=new ResizeObserver((t=>{if(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell)){var n=Math.floor(t[0].contentRect.height),r=Math.floor(t[0].contentRect.width);this.tableHeight==n&&this.tableWidth==r||(this.tableHeight=n,this.tableWidth=r,e.element.parentNode&&(this.containerHeight=e.element.parentNode.clientHeight,this.containerWidth=e.element.parentNode.clientWidth),this.redrawTable())}})),this.resizeObserver.observe(e.element),t=window.getComputedStyle(e.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver((t=>{if(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell)){var n=Math.floor(t[0].contentRect.height),r=Math.floor(t[0].contentRect.width);this.containerHeight==n&&this.containerWidth==r||(this.containerHeight=n,this.containerWidth=r,this.tableHeight=e.element.clientHeight,this.tableWidth=e.element.clientWidth),this.redrawTable()}})),this.containerObserver.observe(this.table.element.parentNode)),this.subscribe("table-resize",this.tableResized.bind(this))):(this.binding=function(){(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell))&&(e.columnManager.rerenderColumns(!0),e.redraw())},window.addEventListener("resize",this.binding)),this.subscribe("table-destroy",this.clearBindings.bind(this))}}initializeVisibilityObserver(){this.visibilityObserver=new IntersectionObserver((t=>{this.visible=t[0].isIntersecting,this.initialized?this.visible&&(this.redrawTable(this.initialRedraw),this.initialRedraw=!1):(this.initialized=!0,this.initialRedraw=!this.visible)})),this.visibilityObserver.observe(this.table.element)}redrawTable(t){this.initialized&&this.visible&&(this.table.columnManager.rerenderColumns(!0),this.table.redraw(t))}tableResized(){this.table.rowManager.redraw()}clearBindings(){this.binding&&window.removeEventListener("resize",this.binding),this.resizeObserver&&this.resizeObserver.unobserve(this.table.element),this.visibilityObserver&&this.visibilityObserver.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)}}ht.moduleName="resizeTable";class ft extends l{constructor(t){super(t),this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1,this.registerTableOption("responsiveLayout",!1),this.registerTableOption("responsiveLayoutCollapseStartOpen",!0),this.registerTableOption("responsiveLayoutCollapseUseFormatters",!0),this.registerTableOption("responsiveLayoutCollapseFormatter",!1),this.registerColumnOption("responsive")}initialize(){this.table.options.responsiveLayout&&(this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-show",this.updateColumnVisibility.bind(this)),this.subscribe("column-hide",this.updateColumnVisibility.bind(this)),this.subscribe("columns-loaded",this.initializeResponsivity.bind(this)),this.subscribe("column-moved",this.initializeResponsivity.bind(this)),this.subscribe("column-add",this.initializeResponsivity.bind(this)),this.subscribe("column-delete",this.initializeResponsivity.bind(this)),this.subscribe("table-redrawing",this.tableRedraw.bind(this)),"collapse"===this.table.options.responsiveLayout&&(this.subscribe("row-data-changed",this.generateCollapsedRowContent.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout",this.layoutRow.bind(this))))}tableRedraw(t){-1===["fitColumns","fitDataStretch"].indexOf(this.layoutMode())&&(t||this.update())}initializeResponsivity(){var t=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.table.columnManager.columnsByIndex.forEach(((e,n)=>{e.modules.responsive&&e.modules.responsive.order&&e.modules.responsive.visible&&(e.modules.responsive.index=n,t.push(e),e.visible||"collapse"!==this.mode||this.hiddenColumns.push(e))})),t=(t=t.reverse()).sort(((t,e)=>e.modules.responsive.order-t.modules.responsive.order||e.modules.responsive.index-t.modules.responsive.index)),this.columns=t,"collapse"===this.mode&&this.generateCollapsedContent();for(let e of this.table.columnManager.columnsByIndex)if("responsiveCollapse"==e.definition.formatter){this.collapseHandleColumn=e;break}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())}initializeColumn(t){var e=t.getDefinition();t.modules.responsive={order:"undefined"===typeof e.responsive?1:e.responsive,visible:!1!==e.visible}}initializeRow(t){var e;"calc"!==t.type&&((e=document.createElement("div")).classList.add("tabulator-responsive-collapse"),t.modules.responsiveLayout={element:e,open:this.collapseStartOpen},this.collapseStartOpen||(e.style.display="none"))}layoutRow(t){var e=t.getElement();t.modules.responsiveLayout&&(e.appendChild(t.modules.responsiveLayout.element),this.generateCollapsedRowContent(t))}updateColumnVisibility(t,e){!e&&t.modules.responsive&&(t.modules.responsive.visible=t.visible,this.initializeResponsivity())}hideColumn(t){var e=this.hiddenColumns.length;t.hide(!1,!0),"collapse"===this.mode&&(this.hiddenColumns.unshift(t),this.generateCollapsedContent(),this.collapseHandleColumn&&!e&&this.collapseHandleColumn.show())}showColumn(t){var e;t.show(!1,!0),t.setWidth(t.getWidth()),"collapse"===this.mode&&((e=this.hiddenColumns.indexOf(t))>-1&&this.hiddenColumns.splice(e,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())}update(){for(var t=!0;t;){let e="fitColumns"==this.table.modules.layout.getMode()?this.table.columnManager.getFlexBaseWidth():this.table.columnManager.getWidth(),n=(this.table.options.headerVisible?this.table.columnManager.element.clientWidth:this.table.element.clientWidth)-e;if(n<0){let e=this.columns[this.index];e?(this.hideColumn(e),this.index++):t=!1}else{let e=this.columns[this.index-1];e&&n>0&&n>=e.getWidth()?(this.showColumn(e),this.index--):t=!1}this.table.rowManager.activeRowsCount||this.table.rowManager.renderEmptyScroll()}}generateCollapsedContent(){this.table.rowManager.getDisplayRows().forEach((t=>{this.generateCollapsedRowContent(t)}))}generateCollapsedRowContent(t){var e,n;if(t.modules.responsiveLayout){for(e=t.modules.responsiveLayout.element;e.firstChild;)e.removeChild(e.firstChild);(n=this.collapseFormatter(this.generateCollapsedRowData(t)))&&e.appendChild(n)}}generateCollapsedRowData(t){var e,n=t.getData(),r=[];return this.hiddenColumns.forEach((i=>{var o=i.getFieldValue(n);if(i.definition.title&&i.field)if(i.modules.format&&this.table.options.responsiveLayoutCollapseUseFormatters){function a(t){t()}e={value:!1,data:{},getValue:function(){return o},getData:function(){return n},getType:function(){return"cell"},getElement:function(){return document.createElement("div")},getRow:function(){return t.getComponent()},getColumn:function(){return i.getComponent()},getTable:()=>this.table},r.push({field:i.field,title:i.definition.title,value:i.modules.format.formatter.call(this.table.modules.format,e,i.modules.format.params,a)})}else r.push({field:i.field,title:i.definition.title,value:o})})),r}formatCollapsedData(t){var e=document.createElement("table");return t.forEach((function(t){var n,r=document.createElement("tr"),i=document.createElement("td"),o=document.createElement("td"),a=document.createElement("strong");i.appendChild(a),this.langBind("columns|"+t.field,(function(e){a.innerHTML=e||t.title})),t.value instanceof Node?((n=document.createElement("div")).appendChild(t.value),o.appendChild(n)):o.innerHTML=t.value,r.appendChild(i),r.appendChild(o),e.appendChild(r)}),this),Object.keys(t).length?e:""}}ft.moduleName="responsiveLayout";class pt extends l{constructor(t){super(t),this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null,this.registerTableOption("selectableRows","highlight"),this.registerTableOption("selectableRowsRangeMode","drag"),this.registerTableOption("selectableRowsRollingSelection",!0),this.registerTableOption("selectableRowsPersistence",!0),this.registerTableOption("selectableRowsCheck",(function(t,e){return!0})),this.registerTableFunction("selectRow",this.selectRows.bind(this)),this.registerTableFunction("deselectRow",this.deselectRows.bind(this)),this.registerTableFunction("toggleSelectRow",this.toggleRow.bind(this)),this.registerTableFunction("getSelectedRows",this.getSelectedRows.bind(this)),this.registerTableFunction("getSelectedData",this.getSelectedData.bind(this)),this.registerComponentFunction("row","select",this.selectRows.bind(this)),this.registerComponentFunction("row","deselect",this.deselectRows.bind(this)),this.registerComponentFunction("row","toggleSelect",this.toggleRow.bind(this)),this.registerComponentFunction("row","isSelected",this.isRowSelected.bind(this))}initialize(){this.deprecatedOptionsCheck(),"highlight"===this.table.options.selectableRows&&this.table.options.selectableRange&&(this.table.options.selectableRows=!1),!1!==this.table.options.selectableRows&&(this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-deleting",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clearSelectionData.bind(this)),this.subscribe("rows-retrieve",this.rowRetrieve.bind(this)),this.table.options.selectableRows&&!this.table.options.selectableRowsPersistence&&this.subscribe("data-refreshing",this.deselectRows.bind(this)))}deprecatedOptionsCheck(){this.deprecationCheck("selectable","selectableRows",!0),this.deprecationCheck("selectableRollingSelection","selectableRowsRollingSelection",!0),this.deprecationCheck("selectableRangeMode","selectableRowsRangeMode",!0),this.deprecationCheck("selectablePersistence","selectableRowsPersistence",!0),this.deprecationCheck("selectableCheck","selectableRowsCheck",!0)}rowRetrieve(t,e){return"selected"===t?this.selectedRows:e}rowDeleted(t){this._deselectRow(t,!0)}clearSelectionData(t){var e=this.selectedRows.length;this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],e&&!0!==t&&this._rowSelectionChanged()}initializeRow(t){var e=this,n=e.checkRowSelectability(t),r=t.getElement(),i=function(){setTimeout((function(){e.selecting=!1}),50),document.body.removeEventListener("mouseup",i)};t.modules.select={selected:!1},r.classList.toggle("tabulator-selectable",n),r.classList.toggle("tabulator-unselectable",!n),e.checkRowSelectability(t)&&e.table.options.selectableRows&&"highlight"!=e.table.options.selectableRows&&("click"===e.table.options.selectableRowsRangeMode?r.addEventListener("click",this.handleComplexRowClick.bind(this,t)):(r.addEventListener("click",(function(n){e.table.modExists("edit")&&e.table.modules.edit.getCurrentCell()||e.table._clearSelection(),e.selecting||e.toggleRow(t)})),r.addEventListener("mousedown",(function(n){if(n.shiftKey)return e.table._clearSelection(),e.selecting=!0,e.selectPrev=[],document.body.addEventListener("mouseup",i),document.body.addEventListener("keyup",i),e.toggleRow(t),!1})),r.addEventListener("mouseenter",(function(n){e.selecting&&(e.table._clearSelection(),e.toggleRow(t),e.selectPrev[1]==t&&e.toggleRow(e.selectPrev[0]))})),r.addEventListener("mouseout",(function(n){e.selecting&&(e.table._clearSelection(),e.selectPrev.unshift(t))}))))}handleComplexRowClick(t,e){if(e.shiftKey){this.table._clearSelection(),this.lastClickedRow=this.lastClickedRow||t;var n=this.table.rowManager.getDisplayRowIndex(this.lastClickedRow),r=this.table.rowManager.getDisplayRowIndex(t),i=n<=r?n:r,o=n>=r?n:r,a=this.table.rowManager.getDisplayRows().slice(0).splice(i,o-i+1);e.ctrlKey||e.metaKey?(a.forEach((e=>{e!==this.lastClickedRow&&(!0===this.table.options.selectableRows||this.isRowSelected(t)||this.selectedRows.length<this.table.options.selectableRows)&&this.toggleRow(e)})),this.lastClickedRow=t):(this.deselectRows(void 0,!0),!0!==this.table.options.selectableRows&&a.length>this.table.options.selectableRows&&(a=a.slice(0,this.table.options.selectableRows)),this.selectRows(a)),this.table._clearSelection()}else e.ctrlKey||e.metaKey?(this.toggleRow(t),this.lastClickedRow=t):(this.deselectRows(void 0,!0),this.selectRows(t),this.lastClickedRow=t)}checkRowSelectability(t){return!(!t||"row"!==t.type)&&this.table.options.selectableRowsCheck.call(this.table,t.getComponent())}toggleRow(t){this.checkRowSelectability(t)&&(t.modules.select&&t.modules.select.selected?this._deselectRow(t):this._selectRow(t))}selectRows(t){var e,n,r=[];switch(typeof t){case"undefined":e=this.table.rowManager.rows;break;case"number":e=this.table.rowManager.findRow(t);break;case"string":(e=this.table.rowManager.findRow(t))||(e=this.table.rowManager.getRows(t));break;default:e=t}Array.isArray(e)?e.length&&(e.forEach((t=>{(n=this._selectRow(t,!0,!0))&&r.push(n)})),this._rowSelectionChanged(!1,r)):e&&this._selectRow(e,!1,!0)}_selectRow(t,e,n){if(!isNaN(this.table.options.selectableRows)&&!0!==this.table.options.selectableRows&&!n&&this.selectedRows.length>=this.table.options.selectableRows){if(!this.table.options.selectableRowsRollingSelection)return!1;this._deselectRow(this.selectedRows[0])}var r=this.table.rowManager.findRow(t);if(r){if(-1==this.selectedRows.indexOf(r))return r.getElement().classList.add("tabulator-selected"),r.modules.select||(r.modules.select={}),r.modules.select.selected=!0,r.modules.select.checkboxEl&&(r.modules.select.checkboxEl.checked=!0),this.selectedRows.push(r),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(r,!0),this.dispatchExternal("rowSelected",r.getComponent()),this._rowSelectionChanged(e,r),r}else e||console.warn("Selection Error - No such row found, ignoring selection:"+t)}isRowSelected(t){return-1!==this.selectedRows.indexOf(t)}deselectRows(t,e){var n,r,i=[];switch(typeof t){case"undefined":n=Object.assign([],this.selectedRows);break;case"number":n=this.table.rowManager.findRow(t);break;case"string":(n=this.table.rowManager.findRow(t))||(n=this.table.rowManager.getRows(t));break;default:n=t}Array.isArray(n)?n.length&&(n.forEach((t=>{(r=this._deselectRow(t,!0,!0))&&i.push(r)})),this._rowSelectionChanged(e,[],i)):n&&this._deselectRow(n,e,!0)}_deselectRow(t,e){var n,r,i=this,o=i.table.rowManager.findRow(t);if(o){if((n=i.selectedRows.findIndex((function(t){return t==o})))>-1)return(r=o.getElement())&&r.classList.remove("tabulator-selected"),o.modules.select||(o.modules.select={}),o.modules.select.selected=!1,o.modules.select.checkboxEl&&(o.modules.select.checkboxEl.checked=!1),i.selectedRows.splice(n,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(o,!1),this.dispatchExternal("rowDeselected",o.getComponent()),i._rowSelectionChanged(e,void 0,o),o}else e||console.warn("Deselection Error - No such row found, ignoring selection:"+t)}getSelectedData(){var t=[];return this.selectedRows.forEach((function(e){t.push(e.getData())})),t}getSelectedRows(){var t=[];return this.selectedRows.forEach((function(e){t.push(e.getComponent())})),t}_rowSelectionChanged(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.headerCheckboxElement&&(0===this.selectedRows.length?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),t||(Array.isArray(e)||(e=[e]),e=e.map((t=>t.getComponent())),Array.isArray(n)||(n=[n]),n=n.map((t=>t.getComponent())),this.dispatchExternal("rowSelectionChanged",this.getSelectedData(),this.getSelectedRows(),e,n))}registerRowSelectCheckbox(t,e){t._row.modules.select||(t._row.modules.select={}),t._row.modules.select.checkboxEl=e}registerHeaderSelectCheckbox(t){this.headerCheckboxElement=t}childRowSelection(t,e){var n=this.table.modules.dataTree.getChildren(t,!0);if(e)for(let r of n)this._selectRow(r,!0);else for(let r of n)this._deselectRow(r,!0)}}function mt(t,e,n,r,i,o,a){var s=window.DateTime||luxon.DateTime,l=a.format||"dd/MM/yyyy HH:mm:ss",u=a.alignEmptyValues,c=0;if("undefined"!=typeof s){if(s.isDateTime(t)||(t="iso"===l?s.fromISO(String(t)):s.fromFormat(String(t),l)),s.isDateTime(e)||(e="iso"===l?s.fromISO(String(e)):s.fromFormat(String(e),l)),t.isValid){if(e.isValid)return t-e;c=1}else c=e.isValid?-1:0;return("top"===u&&"desc"===o||"bottom"===u&&"asc"===o)&&(c*=-1),c}console.error("Sort Error - 'datetime' sorter is dependant on luxon.js")}pt.moduleName="selectRow";var gt={number:function(t,e,n,r,i,o,a){var s=a.alignEmptyValues,l=a.decimalSeparator,u=a.thousandSeparator,c=0;if(t=String(t),e=String(e),u&&(t=t.split(u).join(""),e=e.split(u).join("")),l&&(t=t.split(l).join("."),e=e.split(l).join(".")),t=parseFloat(t),e=parseFloat(e),isNaN(t))c=isNaN(e)?0:-1;else{if(!isNaN(e))return t-e;c=1}return("top"===s&&"desc"===o||"bottom"===s&&"asc"===o)&&(c*=-1),c},string:function(t,e,n,r,i,o,a){var s,l=a.alignEmptyValues,u=0;if(t){if(e){switch(typeof a.locale){case"boolean":a.locale&&(s=this.langLocale());break;case"string":s=a.locale}return String(t).toLowerCase().localeCompare(String(e).toLowerCase(),s)}u=1}else u=e?-1:0;return("top"===l&&"desc"===o||"bottom"===l&&"asc"===o)&&(u*=-1),u},date:function(t,e,n,r,i,o,a){return a.format||(a.format="dd/MM/yyyy"),mt.call(this,t,e,n,r,i,o,a)},time:function(t,e,n,r,i,o,a){return a.format||(a.format="HH:mm"),mt.call(this,t,e,n,r,i,o,a)},datetime:mt,boolean:function(t,e,n,r,i,o,a){return(!0===t||"true"===t||"True"===t||1===t?1:0)-(!0===e||"true"===e||"True"===e||1===e?1:0)},array:function(t,e,n,r,i,o,a){var s=a.type||"length",l=a.alignEmptyValues,u=0;function c(t){var e;switch(s){case"length":e=t.length;break;case"sum":e=t.reduce((function(t,e){return t+e}));break;case"max":e=Math.max.apply(null,t);break;case"min":e=Math.min.apply(null,t);break;case"avg":e=t.reduce((function(t,e){return t+e}))/t.length}return e}if(Array.isArray(t)){if(Array.isArray(e))return c(e)-c(t);u=1}else u=Array.isArray(e)?-1:0;return("top"===l&&"desc"===o||"bottom"===l&&"asc"===o)&&(u*=-1),u},exists:function(t,e,n,r,i,o,a){return("undefined"==typeof t?0:1)-("undefined"==typeof e?0:1)},alphanum:function(t,e,n,r,i,o,a){var s,l,u,c,d,h=0,f=/(\d+)|(\D+)/g,p=/\d/,m=a.alignEmptyValues,g=0;if(t||0===t){if(e||0===e){if(isFinite(t)&&isFinite(e))return t-e;if((s=String(t).toLowerCase())===(l=String(e).toLowerCase()))return 0;if(!p.test(s)||!p.test(l))return s>l?1:-1;for(s=s.match(f),l=l.match(f),d=s.length>l.length?l.length:s.length;h<d;)if((u=s[h])!==(c=l[h++]))return isFinite(u)&&isFinite(c)?("0"===u.charAt(0)&&(u="."+u),"0"===c.charAt(0)&&(c="."+c),u-c):u>c?1:-1;return s.length>l.length}g=1}else g=e||0===e?-1:0;return("top"===m&&"desc"===o||"bottom"===m&&"asc"===o)&&(g*=-1),g}};class bt extends l{constructor(t){super(t),this.sortList=[],this.changed=!1,this.registerTableOption("sortMode","local"),this.registerTableOption("initialSort",!1),this.registerTableOption("columnHeaderSortMulti",!0),this.registerTableOption("sortOrderReverse",!1),this.registerTableOption("headerSortElement","<div class='tabulator-arrow'></div>"),this.registerTableOption("headerSortClickElement","header"),this.registerColumnOption("sorter"),this.registerColumnOption("sorterParams"),this.registerColumnOption("headerSort",!0),this.registerColumnOption("headerSortStartingDir"),this.registerColumnOption("headerSortTristate")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.registerDataHandler(this.sort.bind(this),20),this.registerTableFunction("setSort",this.userSetSort.bind(this)),this.registerTableFunction("getSorters",this.getSort.bind(this)),this.registerTableFunction("clearSort",this.clearSort.bind(this)),"remote"===this.table.options.sortMode&&this.subscribe("data-params",this.remoteSortParams.bind(this))}tableBuilt(){this.table.options.initialSort&&this.setSort(this.table.options.initialSort)}remoteSortParams(t,e,n,r){var i=this.getSort();return i.forEach((t=>{delete t.column})),r.sort=i,r}userSetSort(t,e){this.setSort(t,e),this.refreshSort()}clearSort(){this.clear(),this.refreshSort()}initializeColumn(t){var e,n,r=!1;switch(typeof t.definition.sorter){case"string":bt.sorters[t.definition.sorter]?r=bt.sorters[t.definition.sorter]:console.warn("Sort Error - No such sorter found: ",t.definition.sorter);break;case"function":r=t.definition.sorter}if(t.modules.sort={sorter:r,dir:"none",params:t.definition.sorterParams||{},startingDir:t.definition.headerSortStartingDir||"asc",tristate:t.definition.headerSortTristate},!1!==t.definition.headerSort){if((e=t.getElement()).classList.add("tabulator-sortable"),(n=document.createElement("div")).classList.add("tabulator-col-sorter"),"icon"===this.table.options.headerSortClickElement)n.classList.add("tabulator-col-sorter-element");else e.classList.add("tabulator-col-sorter-element");switch(this.table.options.headerSortElement){case"function":break;case"object":n.appendChild(this.table.options.headerSortElement);break;default:n.innerHTML=this.table.options.headerSortElement}t.titleHolderElement.appendChild(n),t.modules.sort.element=n,this.setColumnHeaderSortIcon(t,"none"),"icon"===this.table.options.headerSortClickElement&&n.addEventListener("mousedown",(t=>{t.stopPropagation()})),("icon"===this.table.options.headerSortClickElement?n:e).addEventListener("click",(e=>{var n="",r=[],i=!1;if(t.modules.sort){if(t.modules.sort.tristate)n="none"==t.modules.sort.dir?t.modules.sort.startingDir:t.modules.sort.dir==t.modules.sort.startingDir?"asc"==t.modules.sort.dir?"desc":"asc":"none";else switch(t.modules.sort.dir){case"asc":n="desc";break;case"desc":n="asc";break;default:n=t.modules.sort.startingDir}this.table.options.columnHeaderSortMulti&&(e.shiftKey||e.ctrlKey)?(i=(r=this.getSort()).findIndex((e=>e.field===t.getField())),i>-1?(r[i].dir=n,i=r.splice(i,1)[0],"none"!=n&&r.push(i)):"none"!=n&&r.push({column:t,dir:n}),this.setSort(r)):"none"==n?this.clear():this.setSort(t,n),this.refreshSort()}}))}}refreshSort(){"remote"===this.table.options.sortMode?this.reloadData(null,!1,!1):this.refreshData(!0)}hasChanged(){var t=this.changed;return this.changed=!1,t}getSort(){var t=[];return this.sortList.forEach((function(e){e.column&&t.push({column:e.column.getComponent(),field:e.column.getField(),dir:e.dir})})),t}setSort(t,e){var n=this,r=[];Array.isArray(t)||(t=[{column:t,dir:e}]),t.forEach((function(t){var e;(e=n.table.columnManager.findColumn(t.column))?(t.column=e,r.push(t),n.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",t.column)})),n.sortList=r,this.dispatch("sort-changed")}clear(){this.setSort([])}findSorter(t){var e,n=this.table.rowManager.activeRows[0],r="string";if(n&&(n=n.getData(),t.getField()))switch(typeof(e=t.getFieldValue(n))){case"undefined":r="string";break;case"boolean":r="boolean";break;default:isNaN(e)||""===e?e.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(r="alphanum"):r="number"}return bt.sorters[r]}sort(t){var e=this,n=this.table.options.sortOrderReverse?e.sortList.slice().reverse():e.sortList,r=[],i=[];return this.subscribedExternal("dataSorting")&&this.dispatchExternal("dataSorting",e.getSort()),e.clearColumnHeaders(),"remote"!==this.table.options.sortMode?(n.forEach((function(t,n){var i;t.column&&((i=t.column.modules.sort)&&(i.sorter||(i.sorter=e.findSorter(t.column)),t.params="function"===typeof i.params?i.params(t.column.getComponent(),t.dir):i.params,r.push(t)),e.setColumnHeader(t.column,t.dir))})),r.length&&e._sortItems(t,r)):n.forEach((function(t,n){e.setColumnHeader(t.column,t.dir)})),this.subscribedExternal("dataSorted")&&(t.forEach((t=>{i.push(t.getComponent())})),this.dispatchExternal("dataSorted",e.getSort(),i)),t}clearColumnHeaders(){this.table.columnManager.getRealColumns().forEach((t=>{t.modules.sort&&(t.modules.sort.dir="none",t.getElement().setAttribute("aria-sort","none"),this.setColumnHeaderSortIcon(t,"none"))}))}setColumnHeader(t,e){t.modules.sort.dir=e,t.getElement().setAttribute("aria-sort","asc"===e?"ascending":"descending"),this.setColumnHeaderSortIcon(t,e)}setColumnHeaderSortIcon(t,e){var n,r=t.modules.sort.element;if(t.definition.headerSort&&"function"===typeof this.table.options.headerSortElement){for(;r.firstChild;)r.removeChild(r.firstChild);"object"===typeof(n=this.table.options.headerSortElement.call(this.table,t.getComponent(),e))?r.appendChild(n):r.innerHTML=n}}_sortItems(t,e){var n=e.length-1;t.sort(((t,r)=>{for(var i,o=n;o>=0;o--){let n=e[o];if(0!==(i=this._sortRow(t,r,n.column,n.dir,n.params)))break}return i}))}_sortRow(t,e,n,r,i){var o,a,s="asc"==r?t:e,l="asc"==r?e:t;return t="undefined"!==typeof(t=n.getFieldValue(s.getData()))?t:"",e="undefined"!==typeof(e=n.getFieldValue(l.getData()))?e:"",o=s.getComponent(),a=l.getComponent(),n.modules.sort.sorter.call(this,t,e,o,a,n.getComponent(),r,i)}}bt.moduleName="sort",bt.sorters=gt;class vt{constructor(t){return this._range=t,new Proxy(this,{get:function(t,e,n){return"undefined"!==typeof t[e]?t[e]:t._range.table.componentFunctionBinder.handle("range",t._range,e)}})}getElement(){return this._range.element}getData(){return this._range.getData()}getCells(){return this._range.getCells(!0)}getStructuredCells(){return this._range.getStructuredCells()}getRows(){return this._range.getRows().map((t=>t.getComponent()))}getColumns(){return this._range.getColumns().map((t=>t.getComponent()))}getBounds(){return this._range.getBounds()}getTopEdge(){return this._range.top}getBottomEdge(){return this._range.bottom}getLeftEdge(){return this._range.left}getRightEdge(){return this._range.right}setBounds(t,e){this._range.destroyedGuard("setBounds")&&this._range.setBounds(t?t._cell:t,e?e._cell:e)}setStartBound(t){this._range.destroyedGuard("setStartBound")&&(this._range.setEndBound(t?t._cell:t),this._range.rangeManager.layoutElement())}setEndBound(t){this._range.destroyedGuard("setEndBound")&&(this._range.setEndBound(t?t._cell:t),this._range.rangeManager.layoutElement())}clearValues(){this._range.destroyedGuard("clearValues")&&this._range.clearValues()}remove(){this._range.destroyedGuard("remove")&&this._range.destroy(!0)}}class yt extends o{constructor(t,e,n,r){super(t),this.rangeManager=e,this.element=null,this.initialized=!1,this.initializing={start:!1,end:!1},this.destroyed=!1,this.top=0,this.bottom=0,this.left=0,this.right=0,this.table=t,this.start={row:0,col:0},this.end={row:0,col:0},this.rangeManager.rowHeader&&(this.left=1,this.right=1,this.start.col=1,this.end.col=1),this.initElement(),setTimeout((()=>{this.initBounds(n,r)}))}initElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-range")}initBounds(t,e){this._updateMinMax(),t&&this.setBounds(t,e||t)}setStart(t,e){this.start.row===t&&this.start.col===e||(this.start.row=t,this.start.col=e,this.initializing.start=!0,this._updateMinMax())}setEnd(t,e){this.end.row===t&&this.end.col===e||(this.end.row=t,this.end.col=e,this.initializing.end=!0,this._updateMinMax())}setBounds(t,e,n){t&&this.setStartBound(t),this.setEndBound(e||t),this.rangeManager.layoutElement(n)}setStartBound(t){var e,n;"column"===t.type?this.rangeManager.columnSelection&&this.setStart(0,t.getPosition()-1):(e=t.row.position-1,n=t.column.getPosition()-1,t.column===this.rangeManager.rowHeader?this.setStart(e,1):this.setStart(e,n))}setEndBound(t){var e,n,r,i=this._getTableRows().length;"column"===t.type?this.rangeManager.columnSelection&&("column"===this.rangeManager.selecting?this.setEnd(i-1,t.getPosition()-1):"cell"===this.rangeManager.selecting&&this.setEnd(0,t.getPosition()-1)):(e=t.row.position-1,n=t.column.getPosition()-1,r=t.column===this.rangeManager.rowHeader,"row"===this.rangeManager.selecting?this.setEnd(e,this._getTableColumns().length-1):"row"!==this.rangeManager.selecting&&r?this.setEnd(e,0):"column"===this.rangeManager.selecting?this.setEnd(i-1,n):this.setEnd(e,n))}_updateMinMax(){this.top=Math.min(this.start.row,this.end.row),this.bottom=Math.max(this.start.row,this.end.row),this.left=Math.min(this.start.col,this.end.col),this.right=Math.max(this.start.col,this.end.col),this.initialized?this.dispatchExternal("rangeChanged",this.getComponent()):this.initializing.start&&this.initializing.end&&(this.initialized=!0,this.dispatchExternal("rangeAdded",this.getComponent()))}_getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}_getTableRows(){return this.table.rowManager.getDisplayRows()}layout(){var t,e,n,r,i,o,a=this.table.rowManager.renderer.vDomTop,s=this.table.rowManager.renderer.vDomBottom,l=this.table.columnManager.renderer.leftCol,u=this.table.columnManager.renderer.rightCol;null==a&&(a=0),null==s&&(s=1/0),null==l&&(l=0),null==u&&(u=1/0),this.overlaps(l,a,u,s)&&(t=Math.max(this.top,a),e=Math.min(this.bottom,s),n=Math.max(this.left,l),r=Math.min(this.right,u),i=this.rangeManager.getCell(t,n),o=this.rangeManager.getCell(e,r),this.element.classList.add("tabulator-range-active"),this.element.style.left=i.row.getElement().offsetLeft+i.getElement().offsetLeft+"px",this.element.style.top=i.row.getElement().offsetTop+"px",this.element.style.width=o.getElement().offsetLeft+o.getElement().offsetWidth-i.getElement().offsetLeft+"px",this.element.style.height=o.row.getElement().offsetTop+o.row.getElement().offsetHeight-i.row.getElement().offsetTop+"px")}atTopLeft(t){return t.row.position-1===this.top&&t.column.getPosition()-1===this.left}atBottomRight(t){return t.row.position-1===this.bottom&&t.column.getPosition()-1===this.right}occupies(t){return this.occupiesRow(t.row)&&this.occupiesColumn(t.column)}occupiesRow(t){return this.top<=t.position-1&&t.position-1<=this.bottom}occupiesColumn(t){return this.left<=t.getPosition()-1&&t.getPosition()-1<=this.right}overlaps(t,e,n,r){return!(this.left>n||t>this.right||this.top>r||e>this.bottom)}getData(){var t=[],e=this.getRows(),n=this.getColumns();return e.forEach((e=>{var r=e.getData(),i={};n.forEach((t=>{i[t.field]=r[t.field]})),t.push(i)})),t}getCells(t,e){var n=[],r=this.getRows(),i=this.getColumns();return t?n=r.map((t=>{var n=[];return t.getCells().forEach((t=>{i.includes(t.column)&&n.push(e?t.getComponent():t)})),n})):r.forEach((t=>{t.getCells().forEach((t=>{i.includes(t.column)&&n.push(e?t.getComponent():t)}))})),n}getStructuredCells(){return this.getCells(!0,!0)}getRows(){return this._getTableRows().slice(this.top,this.bottom+1)}getColumns(){return this._getTableColumns().slice(this.left,this.right+1)}clearValues(){var t=this.getCells(),e=this.table.options.selectableRangeClearCellsValue;this.table.blockRedraw(),t.forEach((t=>{t.setValue(e)})),this.table.restoreRedraw()}getBounds(t){var e=this.getCells(!1,t),n={start:null,end:null};return e.length?(n.start=e[0],n.end=e[e.length-1]):console.warn("No bounds defined on range"),n}getComponent(){return this.component||(this.component=new vt(this)),this.component}destroy(t){this.destroyed=!0,this.element.remove(),t&&this.rangeManager.rangeRemoved(this),this.initialized&&this.dispatchExternal("rangeRemoved",this.getComponent())}destroyedGuard(t){return this.destroyed&&console.warn("You cannot call the "+t+" function on a destroyed range"),!this.destroyed}}class wt extends l{constructor(t){super(t),this.selecting="cell",this.mousedown=!1,this.ranges=[],this.overlay=null,this.rowHeader=null,this.layoutChangeTimeout=null,this.columnSelection=!1,this.rowSelection=!1,this.maxRanges=0,this.activeRange=!1,this.blockKeydown=!1,this.keyDownEvent=this._handleKeyDown.bind(this),this.mouseUpEvent=this._handleMouseUp.bind(this),this.registerTableOption("selectableRange",!1),this.registerTableOption("selectableRangeColumns",!1),this.registerTableOption("selectableRangeRows",!1),this.registerTableOption("selectableRangeClearCells",!1),this.registerTableOption("selectableRangeClearCellsValue",void 0),this.registerTableFunction("getRangesData",this.getRangesData.bind(this)),this.registerTableFunction("getRanges",this.getRanges.bind(this)),this.registerTableFunction("addRange",this.addRangeFromComponent.bind(this)),this.registerComponentFunction("cell","getRanges",this.cellGetRanges.bind(this)),this.registerComponentFunction("row","getRanges",this.rowGetRanges.bind(this)),this.registerComponentFunction("column","getRanges",this.colGetRanges.bind(this))}initialize(){this.options("selectableRange")&&(this.options("selectableRows")?console.warn("SelectRange functionality cannot be used in conjunction with row selection"):(this.maxRanges=this.options("selectableRange"),this.initializeTable(),this.initializeWatchers()))}initializeTable(){this.overlay=document.createElement("div"),this.overlay.classList.add("tabulator-range-overlay"),this.rangeContainer=document.createElement("div"),this.rangeContainer.classList.add("tabulator-range-container"),this.activeRangeCellElement=document.createElement("div"),this.activeRangeCellElement.classList.add("tabulator-range-cell-active"),this.overlay.appendChild(this.rangeContainer),this.overlay.appendChild(this.activeRangeCellElement),this.table.rowManager.element.addEventListener("keydown",this.keyDownEvent),this.resetRanges(),this.table.rowManager.element.appendChild(this.overlay),this.table.columnManager.element.setAttribute("tabindex",0),this.table.element.classList.add("tabulator-ranges")}initializeWatchers(){this.columnSelection=this.options("selectableRangeColumns"),this.rowSelection=this.options("selectableRangeRows"),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-mousedown",this.handleColumnMouseDown.bind(this)),this.subscribe("column-mousemove",this.handleColumnMouseMove.bind(this)),this.subscribe("column-resized",this.handleColumnResized.bind(this)),this.subscribe("column-width",this.layoutChange.bind(this)),this.subscribe("column-height",this.layoutChange.bind(this)),this.subscribe("column-resized",this.layoutChange.bind(this)),this.subscribe("columns-loaded",this.updateHeaderColumn.bind(this)),this.subscribe("cell-height",this.layoutChange.bind(this)),this.subscribe("cell-rendered",this.renderCell.bind(this)),this.subscribe("cell-mousedown",this.handleCellMouseDown.bind(this)),this.subscribe("cell-mousemove",this.handleCellMouseMove.bind(this)),this.subscribe("cell-click",this.handleCellClick.bind(this)),this.subscribe("cell-editing",this.handleEditingCell.bind(this)),this.subscribe("page-changed",this.redraw.bind(this)),this.subscribe("scroll-vertical",this.layoutChange.bind(this)),this.subscribe("scroll-horizontal",this.layoutChange.bind(this)),this.subscribe("data-destroy",this.tableDestroyed.bind(this)),this.subscribe("data-processed",this.resetRanges.bind(this)),this.subscribe("table-layout",this.layoutElement.bind(this)),this.subscribe("table-redraw",this.redraw.bind(this)),this.subscribe("table-destroy",this.tableDestroyed.bind(this)),this.subscribe("edit-editor-clear",this.finishEditingCell.bind(this)),this.subscribe("edit-blur",this.restoreFocus.bind(this)),this.subscribe("keybinding-nav-prev",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-next",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-left",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-right",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-up",this.keyNavigate.bind(this,"up")),this.subscribe("keybinding-nav-down",this.keyNavigate.bind(this,"down")),this.subscribe("keybinding-nav-range",this.keyNavigateRange.bind(this))}initializeColumn(t){this.columnSelection&&t.definition.headerSort&&"icon"!==this.options("headerSortClickElement")&&console.warn("Using column headerSort with selectableRangeColumns option may result in unpredictable behavior. Consider using headerSortClickElement: 'icon'."),t.modules.edit}updateHeaderColumn(){this.rowSelection&&(this.rowHeader=this.table.columnManager.getVisibleColumnsByIndex()[0],this.rowHeader&&(this.rowHeader.definition.cssClass=this.rowHeader.definition.cssClass+" tabulator-range-row-header",this.rowHeader.definition.headerSort&&console.warn("Using column headerSort with selectableRangeRows option may result in unpredictable behavior"),this.rowHeader.definition.editor&&console.warn("Using column editor with selectableRangeRows option may result in unpredictable behavior")))}getRanges(){return this.ranges.map((t=>t.getComponent()))}getRangesData(){return this.ranges.map((t=>t.getData()))}addRangeFromComponent(t,e){return t=t?t._cell:null,e=e?e._cell:null,this.addRange(t,e)}cellGetRanges(t){var e=[];return e=t.column===this.rowHeader?this.ranges.filter((e=>e.occupiesRow(t.row))):this.ranges.filter((e=>e.occupies(t))),e.map((t=>t.getComponent()))}rowGetRanges(t){var e=this.ranges.filter((e=>e.occupiesRow(t)));return e.map((t=>t.getComponent()))}colGetRanges(t){var e=this.ranges.filter((e=>e.occupiesColumn(t)));return e.map((t=>t.getComponent()))}_handleMouseUp(t){this.mousedown=!1,document.removeEventListener("mouseup",this.mouseUpEvent)}_handleKeyDown(t){if(!this.blockKeydown&&(!this.table.modules.edit||this.table.modules.edit&&!this.table.modules.edit.currentCell)){if("Enter"===t.key){if(this.table.modules.edit&&this.table.modules.edit.currentCell)return;this.table.modules.edit.editCell(this.getActiveCell()),t.preventDefault()}"Backspace"!==t.key&&"Delete"!==t.key||!this.options("selectableRangeClearCells")||this.activeRange&&this.activeRange.clearValues()}}initializeFocus(t){var e;try{document.selection?((e=document.body.createTextRange()).moveToElementText(t.getElement()),e.select()):window.getSelection&&((e=document.createRange()).selectNode(t.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(e))}catch(n){}}restoreFocus(t){return this.table.rowManager.element.focus(),!0}handleColumnResized(t){var e;"column"!==this.selecting&&"all"!==this.selecting||(e=this.ranges.some((e=>e.occupiesColumn(t))),e&&this.ranges.forEach((e=>{e.getColumns(!0).forEach((e=>{e!==t&&e.setWidth(t.width)}))})))}handleColumnMouseDown(t,e){(2!==t.button||"column"!==this.selecting&&"all"!==this.selecting||!this.activeRange.occupiesColumn(e))&&(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(t,e))}handleColumnMouseMove(t,e){e!==this.rowHeader&&this.mousedown&&"all"!==this.selecting&&this.activeRange.setBounds(!1,e,!0)}renderCell(t){var e=t.getElement(),n=this.ranges.findIndex((e=>e.occupies(t)));e.classList.toggle("tabulator-range-selected",-1!==n),e.classList.toggle("tabulator-range-only-cell-selected",1===this.ranges.length&&this.ranges[0].atTopLeft(t)&&this.ranges[0].atBottomRight(t)),e.dataset.range=n}handleCellMouseDown(t,e){2===t.button&&(this.activeRange.occupies(e)||("row"===this.selecting||"all"===this.selecting)&&this.activeRange.occupiesRow(e.row))||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(t,e))}handleCellMouseMove(t,e){this.mousedown&&"all"!==this.selecting&&this.activeRange.setBounds(!1,e,!0)}handleCellClick(t,e){this.initializeFocus(e)}handleEditingCell(t){this.activeRange&&this.activeRange.setBounds(t)}finishEditingCell(){this.blockKeydown=!0,this.table.rowManager.element.focus(),setTimeout((()=>{this.blockKeydown=!1}),10)}keyNavigate(t,e){this.navigate(!1,!1,t)&&e.preventDefault()}keyNavigateRange(t,e,n,r){this.navigate(n,r,e)&&t.preventDefault()}navigate(t,e,n){var r,i,o,a,s,l,u;if(this.table.modules.edit&&this.table.modules.edit.currentCell)return!1;if(this.ranges.length>1&&(this.ranges=this.ranges.filter((t=>t===this.activeRange?(t.setEnd(t.start.row,t.start.col),!0):(t.destroy(),!1)))),i=this.activeRange,a=(o=e?i.end:i.start).row,s=o.col,t)switch(n){case"left":s=this.findJumpCellLeft(i.start.row,o.col);break;case"right":s=this.findJumpCellRight(i.start.row,o.col);break;case"up":a=this.findJumpCellUp(o.row,i.start.col);break;case"down":a=this.findJumpCellDown(o.row,i.start.col)}else{if(e&&("row"===this.selecting&&("left"===n||"right"===n)||"column"===this.selecting&&("up"===n||"down"===n)))return;switch(n){case"left":s=Math.max(s-1,0);break;case"right":s=Math.min(s+1,this.getTableColumns().length-1);break;case"up":a=Math.max(a-1,0);break;case"down":a=Math.min(a+1,this.getTableRows().length-1)}}return r=s!==o.col||a!==o.row,e||i.setStart(a,s),i.setEnd(a,s),e||(this.selecting="cell"),r?(l=this.getRowByRangePos(i.end.row),u=this.getColumnByRangePos(i.end.col),"left"!==n&&"right"!==n||null!==u.getElement().parentNode?"up"!==n&&"down"!==n||null!==l.getElement().parentNode?this.autoScroll(i,l.getElement(),u.getElement()):l.getComponent().scrollTo(void 0,!1):u.getComponent().scrollTo(void 0,!1),this.layoutElement(),!0):void 0}rangeRemoved(t){this.ranges=this.ranges.filter((e=>e!==t)),this.activeRange===t&&(this.ranges.length?this.activeRange=this.ranges[this.ranges.length-1]:this.addRange()),this.layoutElement()}findJumpCell(t,e,n,r){var i;e&&(t=t.reverse());for(let o of t){let t=o.getValue();if(n){if(i=o,t)break}else if(r){if(i=o,t)break}else{if(!t)break;i=o}}return i}findJumpCellLeft(t,e){var n=this.getRowByRangePos(t).cells.filter((t=>t.column.visible)),r=!n[e].getValue(),i=!!n[e]&&!n[e].getValue(),o=e,a=this.rowHeader?n.slice(1,e):n.slice(0,e),s=this.findJumpCell(a,!0,r,i);return s&&(o=s.column.getPosition()-1),o}findJumpCellRight(t,e){var n=this.getRowByRangePos(t).cells.filter((t=>t.column.visible)),r=!n[e].getValue(),i=!!n[e+1]&&!n[e+1].getValue(),o=e,a=this.findJumpCell(n.slice(e+1,n.length),!1,r,i);return a&&(o=a.column.getPosition()-1),o}findJumpCellUp(t,e){var n=this.getColumnByRangePos(e).cells.filter((t=>this.table.rowManager.activeRows.includes(t.row))),r=!n[t].getValue(),i=!!n[t-1]&&!n[t-1].getValue(),o=t,a=this.findJumpCell(n.slice(0,o),!0,r,i);return a&&(o=a.row.position-1),o}findJumpCellDown(t,e){var n=this.getColumnByRangePos(e).cells.filter((t=>this.table.rowManager.activeRows.includes(t.row))),r=!n[t].getValue(),i=!!n[t+1]&&!n[t+1].getValue(),o=t,a=this.findJumpCell(n.slice(o+1,n.length),!1,r,i);return a&&(o=a.row.position-1),o}newSelection(t,e){var n;if("column"===e.type){if(!this.columnSelection)return;if(e===this.rowHeader){n=this.resetRanges(),this.selecting="all";var r,i=this.getCell(-1,-1);return r=this.rowHeader?this.getCell(0,1):this.getCell(0,0),void n.setBounds(r,i)}this.selecting="column"}else e.column===this.rowHeader?this.selecting="row":this.selecting="cell";t.shiftKey?this.activeRange.setBounds(!1,e):t.ctrlKey?this.addRange().setBounds(e):this.resetRanges().setBounds(e)}autoScroll(t,e,n){var r,i,o,a,s,l=this.table.rowManager.element;"undefined"===typeof e&&(e=this.getRowByRangePos(t.end.row).getElement()),"undefined"===typeof n&&(n=this.getColumnByRangePos(t.end.col).getElement()),this.rowHeader&&(r=this.rowHeader.getElement()),i={left:n.offsetLeft,right:n.offsetLeft+n.offsetWidth,top:e.offsetTop,bottom:e.offsetTop+e.offsetHeight},o={left:l.scrollLeft,right:Math.ceil(l.scrollLeft+l.clientWidth),top:l.scrollTop,bottom:l.scrollTop+l.offsetHeight-this.table.rowManager.scrollbarWidth},r&&(o.left+=r.offsetWidth),a=o.left<i.left&&i.left<o.right&&o.left<i.right&&i.right<o.right,s=o.top<i.top&&i.top<o.bottom&&o.top<i.bottom&&i.bottom<o.bottom,a||(i.left<o.left?(l.scrollLeft=i.left,r&&(l.scrollLeft-=r.offsetWidth)):i.right>o.right&&(l.scrollLeft=i.right-l.clientWidth)),s||(i.top<o.top?l.scrollTop=i.top:i.bottom>o.bottom&&(l.scrollTop=i.bottom-l.clientHeight))}layoutChange(){this.overlay.style.visibility="hidden",clearTimeout(this.layoutChangeTimeout),this.layoutChangeTimeout=setTimeout(this.layoutRanges.bind(this),200)}redraw(t){t&&(this.selecting="cell",this.resetRanges(),this.layoutElement())}layoutElement(t){(t?this.table.rowManager.getVisibleRows(!0):this.table.rowManager.getRows()).forEach((t=>{"row"===t.type&&(this.layoutRow(t),t.cells.forEach((t=>this.renderCell(t))))})),this.getTableColumns().forEach((t=>{this.layoutColumn(t)})),this.layoutRanges()}layoutRow(t){var e=t.getElement(),n=!1,r=this.ranges.some((e=>e.occupiesRow(t)));"row"===this.selecting?n=r:"all"===this.selecting&&(n=!0),e.classList.toggle("tabulator-range-selected",n),e.classList.toggle("tabulator-range-highlight",r)}layoutColumn(t){var e=t.getElement(),n=!1,r=this.ranges.some((e=>e.occupiesColumn(t)));"column"===this.selecting?n=r:"all"===this.selecting&&(n=!0),e.classList.toggle("tabulator-range-selected",n),e.classList.toggle("tabulator-range-highlight",r)}layoutRanges(){var t;this.table.initialized&&(t=this.getActiveCell())&&(this.activeRangeCellElement.style.left=t.row.getElement().offsetLeft+t.getElement().offsetLeft+"px",this.activeRangeCellElement.style.top=t.row.getElement().offsetTop+"px",this.activeRangeCellElement.style.width=t.getElement().offsetLeft+t.getElement().offsetWidth-t.getElement().offsetLeft+"px",this.activeRangeCellElement.style.height=t.row.getElement().offsetTop+t.row.getElement().offsetHeight-t.row.getElement().offsetTop+"px",this.ranges.forEach((t=>t.layout())),this.overlay.style.visibility="visible")}getCell(t,e){var n;return e<0&&(e=this.getTableColumns().length+e)<0?null:(t<0&&(t=this.getTableRows().length+t),(n=this.table.rowManager.getRowFromPosition(t+1))?n.getCells(!1,!0).filter((t=>t.column.visible))[e]:null)}getActiveCell(){return this.getCell(this.activeRange.start.row,this.activeRange.start.col)}getRowByRangePos(t){return this.getTableRows()[t]}getColumnByRangePos(t){return this.getTableColumns()[t]}getTableRows(){return this.table.rowManager.getDisplayRows()}getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}addRange(t,e){var n;return!0!==this.maxRanges&&this.ranges.length>=this.maxRanges&&this.ranges.shift().destroy(),n=new yt(this.table,this,t,e),this.activeRange=n,this.ranges.push(n),this.rangeContainer.appendChild(n.element),n}resetRanges(){var t,e;return this.ranges.forEach((t=>t.destroy())),this.ranges=[],t=this.addRange(),this.table.rowManager.activeRows.length&&(e=this.table.rowManager.activeRows[0].cells[this.rowHeader?1:0])&&(t.setBounds(e),this.initializeFocus(e)),t}tableDestroyed(){document.removeEventListener("mouseup",this.mouseUpEvent),this.table.rowManager.element.removeEventListener("keydown",this.keyDownEvent)}selectedRows(t){return t?this.activeRange.getRows().map((t=>t.getComponent())):this.activeRange.getRows()}selectedColumns(t){return t?this.activeRange.getColumns().map((t=>t.getComponent())):this.activeRange.getColumns()}}wt.moduleName="selectRange";class kt extends l{constructor(t){super(t),this.tooltipSubscriber=null,this.headerSubscriber=null,this.timeout=null,this.popupInstance=null,this.registerTableOption("tooltipGenerationMode",void 0),this.registerTableOption("tooltipDelay",300),this.registerColumnOption("tooltip"),this.registerColumnOption("headerTooltip")}initialize(){this.deprecatedOptionsCheck(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){this.deprecationCheckMsg("tooltipGenerationMode","This option is no longer needed as tooltips are always generated on hover now")}initializeColumn(t){t.definition.headerTooltip&&!this.headerSubscriber&&(this.headerSubscriber=!0,this.subscribe("column-mousemove",this.mousemoveCheck.bind(this,"headerTooltip")),this.subscribe("column-mouseout",this.mouseoutCheck.bind(this,"headerTooltip"))),t.definition.tooltip&&!this.tooltipSubscriber&&(this.tooltipSubscriber=!0,this.subscribe("cell-mousemove",this.mousemoveCheck.bind(this,"tooltip")),this.subscribe("cell-mouseout",this.mouseoutCheck.bind(this,"tooltip")))}mousemoveCheck(t,e,n){var r="tooltip"===t?n.column.definition.tooltip:n.definition.headerTooltip;r&&(this.clearPopup(),this.timeout=setTimeout(this.loadTooltip.bind(this,e,n,r),this.table.options.tooltipDelay))}mouseoutCheck(t,e,n){this.popupInstance||this.clearPopup()}clearPopup(t,e,n){clearTimeout(this.timeout),this.timeout=null,this.popupInstance&&this.popupInstance.hide()}loadTooltip(t,e,n){var r,i,o;"function"===typeof n&&(n=n(t,e.getComponent(),(function(t){i=t}))),n instanceof HTMLElement?r=n:(r=document.createElement("div"),!0===n&&(e instanceof y?n=e.value:e.definition.field?this.langBind("columns|"+e.definition.field,(t=>{r.innerHTML=n=t||e.definition.title})):n=e.definition.title),r.innerHTML=n),(n||0===n||!1===n)&&(r.classList.add("tabulator-tooltip"),r.addEventListener("mousemove",(t=>t.preventDefault())),this.popupInstance=this.popup(r),"function"===typeof i&&this.popupInstance.renderCallback(i),o=this.popupInstance.containerEventCoords(t),this.popupInstance.show(o.x+15,o.y+15).hideOnBlur((()=>{this.dispatchExternal("TooltipClosed",e.getComponent()),this.popupInstance=null})),this.dispatchExternal("TooltipOpened",e.getComponent()))}}kt.moduleName="tooltip";var _t={integer:function(t,e,n){return""===e||null===e||"undefined"===typeof e||(e=Number(e),!isNaN(e)&&isFinite(e)&&Math.floor(e)===e)},float:function(t,e,n){return""===e||null===e||"undefined"===typeof e||(e=Number(e),!isNaN(e)&&isFinite(e)&&e%1!==0)},numeric:function(t,e,n){return""===e||null===e||"undefined"===typeof e||!isNaN(e)},string:function(t,e,n){return""===e||null===e||"undefined"===typeof e||isNaN(e)},alphanumeric:function(t,e,n){return""===e||null===e||"undefined"===typeof e||new RegExp(/^[a-z0-9]+$/i).test(e)},max:function(t,e,n){return""===e||null===e||"undefined"===typeof e||parseFloat(e)<=n},min:function(t,e,n){return""===e||null===e||"undefined"===typeof e||parseFloat(e)>=n},starts:function(t,e,n){return""===e||null===e||"undefined"===typeof e||String(e).toLowerCase().startsWith(String(n).toLowerCase())},ends:function(t,e,n){return""===e||null===e||"undefined"===typeof e||String(e).toLowerCase().endsWith(String(n).toLowerCase())},minLength:function(t,e,n){return""===e||null===e||"undefined"===typeof e||String(e).length>=n},maxLength:function(t,e,n){return""===e||null===e||"undefined"===typeof e||String(e).length<=n},in:function(t,e,n){return""===e||null===e||"undefined"===typeof e||("string"==typeof n&&(n=n.split("|")),n.indexOf(e)>-1)},regex:function(t,e,n){return""===e||null===e||"undefined"===typeof e||new RegExp(n).test(e)},unique:function(t,e,n){if(""===e||null===e||"undefined"===typeof e)return!0;var r=!0,i=t.getData(),o=t.getColumn()._getSelf();return this.table.rowManager.rows.forEach((function(t){var n=t.getData();n!==i&&e==o.getFieldValue(n)&&(r=!1)})),r},required:function(t,e,n){return""!==e&&null!==e&&"undefined"!==typeof e}};class Ot extends l{constructor(t){super(t),this.invalidCells=[],this.registerTableOption("validationMode","blocking"),this.registerColumnOption("validator"),this.registerTableFunction("getInvalidCells",this.getInvalidCells.bind(this)),this.registerTableFunction("clearCellValidation",this.userClearCellValidation.bind(this)),this.registerTableFunction("validate",this.userValidate.bind(this)),this.registerComponentFunction("cell","isValid",this.cellIsValid.bind(this)),this.registerComponentFunction("cell","clearValidation",this.clearValidation.bind(this)),this.registerComponentFunction("cell","validate",this.cellValidate.bind(this)),this.registerComponentFunction("column","validate",this.columnValidate.bind(this)),this.registerComponentFunction("row","validate",this.rowValidate.bind(this))}initialize(){this.subscribe("cell-delete",this.clearValidation.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("edit-success",this.editValidate.bind(this)),this.subscribe("edit-editor-clear",this.editorClear.bind(this)),this.subscribe("edit-edited-clear",this.editedClear.bind(this))}editValidate(t,e,n){var r="manual"===this.table.options.validationMode||this.validate(t.column.modules.validate,t,e);return!0!==r&&setTimeout((()=>{t.getElement().classList.add("tabulator-validation-fail"),this.dispatchExternal("validationFailed",t.getComponent(),e,r)})),r}editorClear(t,e){e&&t.column.modules.validate&&this.cellValidate(t),t.getElement().classList.remove("tabulator-validation-fail")}editedClear(t){t.modules.validate&&(t.modules.validate.invalid=!1)}cellIsValid(t){return t.modules.validate&&t.modules.validate.invalid||!0}cellValidate(t){return this.validate(t.column.modules.validate,t,t.getValue())}columnValidate(t){var e=[];return t.cells.forEach((t=>{!0!==this.cellValidate(t)&&e.push(t.getComponent())})),!e.length||e}rowValidate(t){var e=[];return t.cells.forEach((t=>{!0!==this.cellValidate(t)&&e.push(t.getComponent())})),!e.length||e}userClearCellValidation(t){t||(t=this.getInvalidCells()),Array.isArray(t)||(t=[t]),t.forEach((t=>{this.clearValidation(t._getSelf())}))}userValidate(t){var e=[];return this.table.rowManager.rows.forEach((t=>{var n=(t=t.getComponent()).validate();!0!==n&&(e=e.concat(n))})),!e.length||e}initializeColumnCheck(t){"undefined"!==typeof t.definition.validator&&this.initializeColumn(t)}initializeColumn(t){var e,n=this,r=[];t.definition.validator&&(Array.isArray(t.definition.validator)?t.definition.validator.forEach((t=>{(e=n._extractValidator(t))&&r.push(e)})):(e=this._extractValidator(t.definition.validator))&&r.push(e),t.modules.validate=!!r.length&&r)}_extractValidator(t){var e,n,r;switch(typeof t){case"string":return(r=t.indexOf(":"))>-1?(e=t.substring(0,r),n=t.substring(r+1)):e=t,this._buildValidator(e,n);case"function":return this._buildValidator(t);case"object":return this._buildValidator(t.type,t.parameters)}}_buildValidator(t,e){var n="function"==typeof t?t:Ot.validators[t];return n?{type:"function"==typeof t?"function":t,func:n,params:e}:(console.warn("Validator Setup Error - No matching validator found:",t),!1)}validate(t,e,n){var r=this,i=[],o=this.invalidCells.indexOf(e);return t&&t.forEach((t=>{t.func.call(r,e.getComponent(),n,t.params)||i.push({type:t.type,parameters:t.params})})),e.modules.validate||(e.modules.validate={}),i.length?(e.modules.validate.invalid=i,"manual"!==this.table.options.validationMode&&e.getElement().classList.add("tabulator-validation-fail"),-1==o&&this.invalidCells.push(e)):(e.modules.validate.invalid=!1,e.getElement().classList.remove("tabulator-validation-fail"),o>-1&&this.invalidCells.splice(o,1)),!i.length||i}getInvalidCells(){var t=[];return this.invalidCells.forEach((e=>{t.push(e.getComponent())})),t}clearValidation(t){var e;t.modules.validate&&t.modules.validate.invalid&&(t.getElement().classList.remove("tabulator-validation-fail"),t.modules.validate.invalid=!1,(e=this.invalidCells.indexOf(t))>-1&&this.invalidCells.splice(e,1))}}Ot.moduleName="validate",Ot.validators=_t;var xt=Object.freeze({__proto__:null,AccessorModule:u,AjaxModule:m,ClipboardModule:g,ColumnCalcsModule:j,DataTreeModule:S,DownloadModule:C,EditModule:D,ExportModule:I,FilterModule:z,FormatModule:F,FrozenColumnsModule:H,FrozenRowsModule:B,GroupRowsModule:Y,HistoryModule:U,HtmlTableImportModule:G,ImportModule:J,InteractionModule:K,KeybindingsModule:$,MenuModule:Q,MoveColumnsModule:Z,MoveRowsModule:tt,MutatorModule:et,PageModule:rt,PersistenceModule:at,PopupModule:st,PrintModule:lt,ReactiveDataModule:ut,ResizeColumnsModule:ct,ResizeRowsModule:dt,ResizeTableModule:ht,ResponsiveLayoutModule:ft,SelectRowModule:pt,SortModule:bt,SelectRangeModule:wt,TooltipModule:kt,ValidateModule:Ot});class Et{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.table=t,this.msgType=e,this.registeredDefaults=Object.assign({},n)}register(t,e){this.registeredDefaults[t]=e}generate(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n=Object.assign({},this.registeredDefaults),r=this.table.options.debugInvalidOptions||!0===e.debugInvalidOptions;Object.assign(n,t);for(let i in e)n.hasOwnProperty(i)||(r&&console.warn("Invalid "+this.msgType+" option:",i),n[i]=e.key);for(let i in n)i in e?n[i]=e[i]:Array.isArray(n[i])?n[i]=Object.assign([],n[i]):"object"===typeof n[i]&&null!==n[i]?n[i]=Object.assign({},n[i]):"undefined"===typeof n[i]&&delete n[i];return n}}class jt extends o{constructor(t){super(t),this.elementVertical=t.rowManager.element,this.elementHorizontal=t.columnManager.element,this.tableElement=t.rowManager.tableElement,this.verticalFillMode="fit"}initialize(){}clearRows(){}clearColumns(){}reinitializeColumnWidths(t){}renderRows(){}renderColumns(){}rerenderRows(t){t&&t()}rerenderColumns(t,e){}renderRowCells(t){}rerenderRowCells(t,e){}scrollColumns(t,e){}scrollRows(t,e){}resize(){}scrollToRow(t){}scrollToRowNearestTop(t){}visibleRows(t){return[]}rows(){return this.table.rowManager.getDisplayRows()}styleRow(t,e){var n=t.getElement();e%2?(n.classList.add("tabulator-row-even"),n.classList.remove("tabulator-row-odd")):(n.classList.add("tabulator-row-odd"),n.classList.remove("tabulator-row-even"))}clear(){this.clearRows(),this.clearColumns()}render(){this.renderRows(),this.renderColumns()}rerender(t){this.rerenderRows(),this.rerenderColumns()}scrollToRowPosition(t,e,n){var r=this.rows().indexOf(t),i=t.getElement(),o=0;return new Promise(((s,l)=>{if(r>-1){if("undefined"===typeof n&&(n=this.table.options.scrollToRowIfVisible),!n&&a.elVisible(i)&&(o=a.elOffset(i).top-a.elOffset(this.elementVertical).top)>0&&o<this.elementVertical.clientHeight-i.offsetHeight)return s(),!1;switch("undefined"===typeof e&&(e=this.table.options.scrollToRowPosition),"nearest"===e&&(e=this.scrollToRowNearestTop(t)?"top":"bottom"),this.scrollToRow(t),e){case"middle":case"center":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop+(i.offsetTop-this.elementVertical.scrollTop)-(this.elementVertical.scrollHeight-i.offsetTop)/2:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight/2;break;case"bottom":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop-(this.elementVertical.scrollHeight-i.offsetTop)+i.offsetHeight:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight+i.offsetHeight;break;case"top":this.elementVertical.scrollTop=i.offsetTop}s()}else console.warn("Scroll Error - Row not visible"),l("Scroll Error - Row not visible")}))}}class St extends jt{constructor(t){super(t)}renderRowCells(t,e){const n=document.createDocumentFragment();t.cells.forEach((t=>{n.appendChild(t.getElement())})),t.element.appendChild(n),e||t.cells.forEach((t=>{t.cellRendered()}))}reinitializeColumnWidths(t){t.forEach((function(t){t.reinitializeWidth()}))}}class Pt extends jt{constructor(t){super(t),this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.windowBuffer=200,this.visibleRows=null,this.initialized=!1,this.isFitData=!1,this.columns=[]}initialize(){this.compatibilityCheck(),this.layoutCheck(),this.vertScrollListen()}compatibilityCheck(){"fitDataTable"==this.options("layout")&&console.warn("Horizontal Virtual DOM is not compatible with fitDataTable layout mode"),this.options("responsiveLayout")&&console.warn("Horizontal Virtual DOM is not compatible with responsive columns"),this.options("rtl")&&console.warn("Horizontal Virtual DOM is not currently compatible with RTL text direction")}layoutCheck(){this.isFitData=this.options("layout").startsWith("fitData")}vertScrollListen(){this.subscribe("scroll-vertical",this.clearVisRowCache.bind(this)),this.subscribe("data-refreshed",this.clearVisRowCache.bind(this))}clearVisRowCache(){this.visibleRows=null}renderColumns(t,e){this.dataChange()}scrollColumns(t,e){this.scrollLeft!=t&&(this.scrollLeft=t,this.scroll(t-(this.vDomScrollPosLeft+this.windowBuffer)))}calcWindowBuffer(){var t=this.elementVertical.clientWidth;this.table.columnManager.columnsByIndex.forEach((e=>{if(e.visible){var n=e.getWidth();n>t&&(t=n)}})),this.windowBuffer=2*t}rerenderColumns(t,e){var n={cols:this.columns,leftCol:this.leftCol,rightCol:this.rightCol},r=0;t&&!this.initialized||(this.clear(),this.calcWindowBuffer(),this.scrollLeft=this.elementVertical.scrollLeft,this.vDomScrollPosLeft=this.scrollLeft-this.windowBuffer,this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,this.table.columnManager.columnsByIndex.forEach((t=>{var e,n={};t.visible&&(t.modules.frozen||(e=t.getWidth(),n.leftPos=r,n.rightPos=r+e,n.width=e,this.isFitData&&(n.fitDataCheck=!t.modules.vdomHoz||t.modules.vdomHoz.fitDataCheck),r+e>this.vDomScrollPosLeft&&r<this.vDomScrollPosRight?(-1==this.leftCol&&(this.leftCol=this.columns.length,this.vDomPadLeft=r),this.rightCol=this.columns.length):-1!==this.leftCol&&(this.vDomPadRight+=e),this.columns.push(t),t.modules.vdomHoz=n,r+=e))})),this.tableElement.style.paddingLeft=this.vDomPadLeft+"px",this.tableElement.style.paddingRight=this.vDomPadRight+"px",this.initialized=!0,e||t&&!this.reinitChanged(n)||this.reinitializeRows(),this.elementVertical.scrollLeft=this.scrollLeft)}renderRowCells(t){if(this.initialized)this.initializeRow(t);else{const e=document.createDocumentFragment();t.cells.forEach((t=>{e.appendChild(t.getElement())})),t.element.appendChild(e),t.cells.forEach((t=>{t.cellRendered()}))}}rerenderRowCells(t,e){this.reinitializeRow(t,e)}reinitializeColumnWidths(t){for(let e=this.leftCol;e<=this.rightCol;e++)this.columns[e].reinitializeWidth()}deinitialize(){this.initialized=!1}clear(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0}dataChange(){var t,e,n=!1;if(this.isFitData){if(this.table.columnManager.columnsByIndex.forEach((t=>{!t.definition.width&&t.visible&&(n=!0)})),n&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,t=this.chain("rows-sample",[1],[],(()=>this.table.rowManager.getDisplayRows()))[0])){e=t.getElement(),t.generateCells(),this.tableElement.appendChild(e);for(let n=0;n<t.cells.length;n++){let r=t.cells[n];e.appendChild(r.getElement()),r.column.reinitializeWidth()}e.parentNode.removeChild(e),this.rerenderColumns(!1,!0)}}else"fitColumns"===this.options("layout")&&(this.layoutRefresh(),this.rerenderColumns(!1,!0))}reinitChanged(t){var e=!0;return t.cols.length!==this.columns.length||t.leftCol!==this.leftCol||t.rightCol!==this.rightCol||(t.cols.forEach(((t,n)=>{t!==this.columns[n]&&(e=!1)})),!e)}reinitializeRows(){var t=this.getVisibleRows(),e=this.table.rowManager.getRows().filter((e=>!t.includes(e)));t.forEach((t=>{this.reinitializeRow(t,!0)})),e.forEach((t=>{t.deinitialize()}))}getVisibleRows(){return this.visibleRows||(this.visibleRows=this.table.rowManager.getVisibleRows()),this.visibleRows}scroll(t){this.vDomScrollPosLeft+=t,this.vDomScrollPosRight+=t,Math.abs(t)>this.windowBuffer/2?this.rerenderColumns():t>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())}colPositionAdjust(t,e,n){for(let r=t;r<e;r++){let t=this.columns[r];t.modules.vdomHoz.leftPos+=n,t.modules.vdomHoz.rightPos+=n}}addColRight(){for(var t=!1,e=!0;e;){let n=this.columns[this.rightCol+1];n&&n.modules.vdomHoz.leftPos<=this.vDomScrollPosRight?(t=!0,this.getVisibleRows().forEach((t=>{if("group"!==t.type){var e=t.getCell(n);t.getElement().insertBefore(e.getElement(),t.getCell(this.columns[this.rightCol]).getElement().nextSibling),e.cellRendered()}})),this.fitDataColActualWidthCheck(n),this.rightCol++,this.getVisibleRows().forEach((t=>{"group"!==t.type&&(t.modules.vdomHoz.rightCol=this.rightCol)})),this.rightCol>=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=n.getWidth()):e=!1}t&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}addColLeft(){for(var t=!1,e=!0;e;){let n=this.columns[this.leftCol-1];if(n)if(n.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){t=!0,this.getVisibleRows().forEach((t=>{if("group"!==t.type){var e=t.getCell(n);t.getElement().insertBefore(e.getElement(),t.getCell(this.columns[this.leftCol]).getElement()),e.cellRendered()}})),this.leftCol--,this.getVisibleRows().forEach((t=>{"group"!==t.type&&(t.modules.vdomHoz.leftCol=this.leftCol)})),this.leftCol<=0?this.vDomPadLeft=0:this.vDomPadLeft-=n.getWidth();let e=this.fitDataColActualWidthCheck(n);e&&(this.scrollLeft=this.elementVertical.scrollLeft=this.elementVertical.scrollLeft+e,this.vDomPadRight-=e)}else e=!1;else e=!1}t&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}removeColRight(){for(var t=!1,e=!0;e;){let n=this.columns[this.rightCol];n&&n.modules.vdomHoz.leftPos>this.vDomScrollPosRight?(t=!0,this.getVisibleRows().forEach((t=>{if("group"!==t.type){var e=t.getCell(n);try{t.getElement().removeChild(e.getElement())}catch(r){console.warn("Could not removeColRight",r.message)}}})),this.vDomPadRight+=n.getWidth(),this.rightCol--,this.getVisibleRows().forEach((t=>{"group"!==t.type&&(t.modules.vdomHoz.rightCol=this.rightCol)}))):e=!1}t&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}removeColLeft(){for(var t=!1,e=!0;e;){let n=this.columns[this.leftCol];n&&n.modules.vdomHoz.rightPos<this.vDomScrollPosLeft?(t=!0,this.getVisibleRows().forEach((t=>{if("group"!==t.type){var e=t.getCell(n);try{t.getElement().removeChild(e.getElement())}catch(r){console.warn("Could not removeColLeft",r.message)}}})),this.vDomPadLeft+=n.getWidth(),this.leftCol++,this.getVisibleRows().forEach((t=>{"group"!==t.type&&(t.modules.vdomHoz.leftCol=this.leftCol)}))):e=!1}t&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}fitDataColActualWidthCheck(t){var e,n;return t.modules.vdomHoz.fitDataCheck&&(t.reinitializeWidth(),(n=(e=t.getWidth())-t.modules.vdomHoz.width)&&(t.modules.vdomHoz.rightPos+=n,t.modules.vdomHoz.width=e,this.colPositionAdjust(this.columns.indexOf(t)+1,this.columns.length,n)),t.modules.vdomHoz.fitDataCheck=!1),n}initializeRow(t){if("group"!==t.type){t.modules.vdomHoz={leftCol:this.leftCol,rightCol:this.rightCol},this.table.modules.frozenColumns&&this.table.modules.frozenColumns.leftColumns.forEach((e=>{this.appendCell(t,e)}));for(let e=this.leftCol;e<=this.rightCol;e++)this.appendCell(t,this.columns[e]);this.table.modules.frozenColumns&&this.table.modules.frozenColumns.rightColumns.forEach((e=>{this.appendCell(t,e)}))}}appendCell(t,e){if(e&&e.visible){let n=t.getCell(e);t.getElement().appendChild(n.getElement()),n.cellRendered()}}reinitializeRow(t,e){if("group"!==t.type&&(e||!t.modules.vdomHoz||t.modules.vdomHoz.leftCol!==this.leftCol||t.modules.vdomHoz.rightCol!==this.rightCol)){for(var n=t.getElement();n.firstChild;)n.removeChild(n.firstChild);this.initializeRow(t)}}}class Ct extends o{constructor(t){super(t),this.blockHozScrollEvent=!1,this.headersElement=null,this.contentsElement=null,this.element=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.optionsList=new Et(this.table,"column definition",k),this.redrawBlock=!1,this.redrawBlockUpdate=null,this.renderer=null}initialize(){this.initializeRenderer(),this.headersElement=this.createHeadersElement(),this.contentsElement=this.createHeaderContentsElement(),this.element=this.createHeaderElement(),this.contentsElement.insertBefore(this.headersElement,this.contentsElement.firstChild),this.element.insertBefore(this.contentsElement,this.element.firstChild),this.initializeScrollWheelWatcher(),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("scrollbar-vertical",this.padVerticalScrollbar.bind(this))}padVerticalScrollbar(t){this.table.rtl?this.headersElement.style.marginLeft=t+"px":this.headersElement.style.marginRight=t+"px"}initializeRenderer(){var t,e={virtual:Pt,basic:St};(t="string"===typeof this.table.options.renderHorizontal?e[this.table.options.renderHorizontal]:this.table.options.renderHorizontal)?(this.renderer=new t(this.table,this.element,this.tableElement),this.renderer.initialize()):console.error("Unable to find matching renderer:",this.table.options.renderHorizontal)}createHeadersElement(){var t=document.createElement("div");return t.classList.add("tabulator-headers"),t.setAttribute("role","row"),t}createHeaderContentsElement(){var t=document.createElement("div");return t.classList.add("tabulator-header-contents"),t.setAttribute("role","rowgroup"),t}createHeaderElement(){var t=document.createElement("div");return t.classList.add("tabulator-header"),t.setAttribute("role","rowgroup"),this.table.options.headerVisible||t.classList.add("tabulator-header-hidden"),t}getElement(){return this.element}getContentsElement(){return this.contentsElement}getHeadersElement(){return this.headersElement}scrollHorizontal(t){this.contentsElement.scrollLeft=t,this.scrollLeft=t,this.renderer.scrollColumns(t)}initializeScrollWheelWatcher(){this.contentsElement.addEventListener("wheel",(t=>{var e;t.deltaX&&(e=this.contentsElement.scrollLeft+t.deltaX,this.table.rowManager.scrollHorizontal(e),this.table.columnManager.scrollHorizontal(e))}))}generateColumnsFromRowData(t){var e,n,r=[],i=this.table.options.autoColumnsDefinitions;if(t&&t.length){for(var o in e=t[0]){let t={field:o,title:o},i=e[o];switch(typeof i){case"undefined":n="string";break;case"boolean":n="boolean";break;case"object":n=Array.isArray(i)?"array":"string";break;default:n=isNaN(i)||""===i?i.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?"alphanum":"string":"number"}t.sorter=n,r.push(t)}if(i)switch(typeof i){case"function":this.table.options.columns=i.call(this.table,r);break;case"object":Array.isArray(i)?r.forEach((t=>{var e=i.find((e=>e.field===t.field));e&&Object.assign(t,e)})):r.forEach((t=>{i[t.field]&&Object.assign(t,i[t.field])})),this.table.options.columns=r}else this.table.options.columns=r;this.setColumns(this.table.options.columns)}}setColumns(t,e){for(;this.headersElement.firstChild;)this.headersElement.removeChild(this.headersElement.firstChild);this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.dispatch("columns-loading"),t.forEach(((t,e)=>{this._addColumn(t)})),this._reIndexColumns(),this.dispatch("columns-loaded"),this.rerenderColumns(!1,!0),this.redraw(!0)}_addColumn(t,e,n){var r=new _(t,this),i=r.getElement(),o=n?this.findColumnIndex(n):n;if(n&&o>-1){var a=n.getTopColumn(),s=this.columns.indexOf(a),l=a.getElement();e?(this.columns.splice(s,0,r),l.parentNode.insertBefore(i,l)):(this.columns.splice(s+1,0,r),l.parentNode.insertBefore(i,l.nextSibling))}else e?(this.columns.unshift(r),this.headersElement.insertBefore(r.getElement(),this.headersElement.firstChild)):(this.columns.push(r),this.headersElement.appendChild(r.getElement()));return r.columnRendered(),r}registerColumnField(t){t.definition.field&&(this.columnsByField[t.definition.field]=t)}registerColumnPosition(t){this.columnsByIndex.push(t)}_reIndexColumns(){this.columnsByIndex=[],this.columns.forEach((function(t){t.reRegisterPosition()}))}verticalAlignHeaders(){var t=0;this.redrawBlock||(this.headersElement.style.height="",this.columns.forEach((t=>{t.clearVerticalAlign()})),this.columns.forEach((e=>{var n=e.getHeight();n>t&&(t=n)})),this.headersElement.style.height=t+"px",this.columns.forEach((e=>{e.verticalAlign(this.table.options.columnHeaderVertAlign,t)})),this.table.rowManager.adjustTableSize())}findColumn(t){var e;if("object"!=typeof t)return this.columnsByField[t]||!1;if(t instanceof _)return t;if(t instanceof w)return t._getSelf()||!1;if("undefined"!==typeof HTMLElement&&t instanceof HTMLElement){return e=[],this.columns.forEach((t=>{e.push(t),e=e.concat(t.getColumns(!0))})),e.find((e=>e.element===t))||!1}return!1}getColumnByField(t){return this.columnsByField[t]}getColumnsByFieldRoot(t){var e=[];return Object.keys(this.columnsByField).forEach((n=>{(this.table.options.nestedFieldSeparator?n.split(this.table.options.nestedFieldSeparator)[0]:n)===t&&e.push(this.columnsByField[n])})),e}getColumnByIndex(t){return this.columnsByIndex[t]}getFirstVisibleColumn(){var t=this.columnsByIndex.findIndex((t=>t.visible));return t>-1&&this.columnsByIndex[t]}getVisibleColumnsByIndex(){return this.columnsByIndex.filter((t=>t.visible))}getColumns(){return this.columns}findColumnIndex(t){return this.columnsByIndex.findIndex((e=>t===e))}getRealColumns(){return this.columnsByIndex}traverse(t){this.columnsByIndex.forEach(((e,n)=>{t(e,n)}))}getDefinitions(t){var e=[];return this.columnsByIndex.forEach((n=>{(!t||t&&n.visible)&&e.push(n.getDefinition())})),e}getDefinitionTree(){var t=[];return this.columns.forEach((e=>{t.push(e.getDefinition(!0))})),t}getComponents(t){var e=[];return(t?this.columns:this.columnsByIndex).forEach((t=>{e.push(t.getComponent())})),e}getWidth(){var t=0;return this.columnsByIndex.forEach((e=>{e.visible&&(t+=e.getWidth())})),t}moveColumn(t,e,n){e.element.parentNode.insertBefore(t.element,e.element),n&&e.element.parentNode.insertBefore(e.element,t.element),this.moveColumnActual(t,e,n),this.verticalAlignHeaders(),this.table.rowManager.reinitialize()}moveColumnActual(t,e,n){t.parent.isGroup?this._moveColumnInArray(t.parent.columns,t,e,n):this._moveColumnInArray(this.columns,t,e,n),this._moveColumnInArray(this.columnsByIndex,t,e,n,!0),this.rerenderColumns(!0),this.dispatch("column-moved",t,e,n),this.subscribedExternal("columnMoved")&&this.dispatchExternal("columnMoved",t.getComponent(),this.table.columnManager.getComponents())}_moveColumnInArray(t,e,n,r,i){var o,a=t.indexOf(e);a>-1&&(t.splice(a,1),(o=t.indexOf(n))>-1?r&&(o+=1):o=a,t.splice(o,0,e),i&&(this.chain("column-moving-rows",[e,n,r],null,[])||[]).concat(this.table.rowManager.rows).forEach((function(t){if(t.cells.length){var e=t.cells.splice(a,1)[0];t.cells.splice(o,0,e)}})))}scrollToColumn(t,e,n){var r=0,i=t.getLeftOffset(),o=0,a=t.getElement();return new Promise(((s,l)=>{if("undefined"===typeof e&&(e=this.table.options.scrollToColumnPosition),"undefined"===typeof n&&(n=this.table.options.scrollToColumnIfVisible),t.visible){switch(e){case"middle":case"center":o=-this.element.clientWidth/2;break;case"right":o=a.clientWidth-this.headersElement.clientWidth}if(!n&&i>0&&i+a.offsetWidth<this.element.clientWidth)return!1;r=i+o,r=Math.max(Math.min(r,this.table.rowManager.element.scrollWidth-this.table.rowManager.element.clientWidth),0),this.table.rowManager.scrollHorizontal(r),this.scrollHorizontal(r),s()}else console.warn("Scroll Error - Column not visible"),l("Scroll Error - Column not visible")}))}generateCells(t){var e=[];return this.columnsByIndex.forEach((n=>{e.push(n.generateCell(t))})),e}getFlexBaseWidth(){var t=this.table.element.clientWidth,e=0;return this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(t-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),this.columnsByIndex.forEach((function(n){var r,i,o;n.visible&&(r=n.definition.width||0,i=parseInt(n.minWidth),o="string"==typeof r?r.indexOf("%")>-1?t/100*parseInt(r):parseInt(r):r,e+=o>i?o:i)})),e}addColumn(t,e,n){return new Promise(((r,i)=>{var o=this._addColumn(t,e,n);this._reIndexColumns(),this.dispatch("column-add",t,e,n),"fitColumns"!=this.layoutMode()&&o.reinitializeWidth(),this.redraw(!0),this.table.rowManager.reinitialize(),this.rerenderColumns(),r(o)}))}deregisterColumn(t){var e,n=t.getField();n&&delete this.columnsByField[n],(e=this.columnsByIndex.indexOf(t))>-1&&this.columnsByIndex.splice(e,1),(e=this.columns.indexOf(t))>-1&&this.columns.splice(e,1),this.verticalAlignHeaders(),this.redraw()}rerenderColumns(t,e){this.redrawBlock?(!1===t||!0===t&&null===this.redrawBlockUpdate)&&(this.redrawBlockUpdate=t):this.renderer.rerenderColumns(t,e)}blockRedraw(){this.redrawBlock=!0,this.redrawBlockUpdate=null}restoreRedraw(){this.redrawBlock=!1,this.verticalAlignHeaders(),this.renderer.rerenderColumns(this.redrawBlockUpdate)}redraw(t){a.elVisible(this.element)&&this.verticalAlignHeaders(),t&&(this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),this.confirm("table-redrawing",t)||this.layoutRefresh(t),this.dispatch("table-redraw",t),this.table.footerManager.redraw()}}class Tt extends jt{constructor(t){super(t),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0}clearRows(){for(var t=this.tableElement;t.firstChild;)t.removeChild(t.firstChild);t.scrollTop=0,t.scrollLeft=0,t.style.minWidth="",t.style.minHeight="",t.style.display="",t.style.visibility=""}renderRows(){var t=this.tableElement,e=!0,n=document.createDocumentFragment(),r=this.rows();r.forEach(((t,r)=>{this.styleRow(t,r),t.initialize(!1,!0),"group"!==t.type&&(e=!1),n.appendChild(t.getElement())})),t.appendChild(n),r.forEach((t=>{t.rendered(),t.heightInitialized||t.calcHeight(!0)})),r.forEach((t=>{t.heightInitialized||t.setCellHeight()})),t.style.minWidth=e?this.table.columnManager.getWidth()+"px":""}rerenderRows(t){this.clearRows(),t&&t(),this.renderRows(),this.rows().length||this.table.rowManager.tableEmpty()}scrollToRowNearestTop(t){var e=a.elOffset(t.getElement()).top;return!(Math.abs(this.elementVertical.scrollTop-e)>Math.abs(this.elementVertical.scrollTop+this.elementVertical.clientHeight-e))}scrollToRow(t){var e=t.getElement();this.elementVertical.scrollTop=a.elOffset(e).top-a.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(t){return this.rows()}}class Mt extends jt{constructor(t){super(t),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[]}clearRows(){for(var t=this.tableElement;t.firstChild;)t.removeChild(t.firstChild);t.style.paddingTop="",t.style.paddingBottom="",t.style.minHeight="",t.style.display="",t.style.visibility="",this.elementVertical.scrollTop=0,this.elementVertical.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0}renderRows(){this._virtualRenderFill()}rerenderRows(t){for(var e=this.elementVertical.scrollTop,n=!1,r=!1,i=this.table.rowManager.scrollLeft,o=this.rows(),a=this.vDomTop;a<=this.vDomBottom;a++)if(o[a]){var s=e-o[a].getElement().offsetTop;if(!(!1===r||Math.abs(s)<r))break;r=s,n=a}o.forEach((t=>{t.deinitializeHeight()})),t&&t(),this.rows().length?this._virtualRenderFill(!1===n?this.rows.length-1:n,!0,r||0):(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(i)}scrollColumns(t){this.table.rowManager.scrollHorizontal(t)}scrollRows(t,e){var n=t-this.vDomScrollPosTop,r=t-this.vDomScrollPosBottom,i=2*this.vDomWindowBuffer,o=this.rows();if(this.scrollTop=t,-n>i||r>i){var a=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementVertical.scrollTop/this.elementVertical.scrollHeight*o.length)),this.scrollColumns(a)}else e?(n<0&&this._addTopRow(o,-n),r<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(o,-r):this.vDomScrollPosBottom=this.scrollTop)):(r>=0&&this._addBottomRow(o,r),n>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(o,n):this.vDomScrollPosTop=this.scrollTop))}resize(){this.vDomWindowBuffer=this.table.options.renderVerticalBuffer||this.elementVertical.clientHeight}scrollToRowNearestTop(t){var e=this.rows().indexOf(t);return!(Math.abs(this.vDomTop-e)>Math.abs(this.vDomBottom-e))}scrollToRow(t){var e=this.rows().indexOf(t);e>-1&&this._virtualRenderFill(e,!0)}visibleRows(t){var e=this.elementVertical.scrollTop,n=this.elementVertical.clientHeight+e,r=!1,i=0,o=0,a=this.rows();if(t)i=this.vDomTop,o=this.vDomBottom;else for(var s=this.vDomTop;s<=this.vDomBottom;s++)if(a[s])if(r){if(!(n-a[s].getElement().offsetTop>=0))break;o=s}else if(e-a[s].getElement().offsetTop>=0)i=s;else{if(r=!0,!(n-a[s].getElement().offsetTop>=0))break;o=s}return a.slice(i,o+1)}_virtualRenderFill(t,e,n){var r,i,o=this.tableElement,s=this.elementVertical,l=0,u=0,c=0,d=0,h=0,f=0,p=this.rows(),m=p.length,g=0,b=[],v=0,y=0,w=this.table.rowManager.fixedHeight,k=this.elementVertical.clientHeight,_=this.table.options.rowHeight,O=!0;if(n=n||0,t=t||0){for(;o.firstChild;)o.removeChild(o.firstChild);(d=(m-t+1)*this.vDomRowHeight)<k&&(t-=Math.ceil((k-d)/this.vDomRowHeight))<0&&(t=0),t-=l=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/this.vDomRowHeight),this.vDomWindowMinMarginRows),t)}else this.clear();if(m&&a.elVisible(this.elementVertical)){for(this.vDomTop=t,this.vDomBottom=t-1,w||this.table.options.maxHeight?(_&&(y=k/_+this.vDomWindowBuffer/_),y=Math.max(this.vDomWindowMinTotalRows,Math.ceil(y))):y=m;(y==m||u<=k+this.vDomWindowBuffer||v<this.vDomWindowMinTotalRows)&&this.vDomBottom<m-1;){for(b=[],i=document.createDocumentFragment(),f=0;f<y&&this.vDomBottom<m-1;)r=p[g=this.vDomBottom+1],this.styleRow(r,g),r.initialize(!1,!0),r.heightInitialized||this.table.options.rowHeight||r.clearCellHeight(),i.appendChild(r.getElement()),b.push(r),this.vDomBottom++,f++;if(!b.length)break;o.appendChild(i),b.forEach((t=>{t.rendered(),t.heightInitialized||t.calcHeight(!0)})),b.forEach((t=>{t.heightInitialized||t.setCellHeight()})),b.forEach((t=>{c=t.getHeight(),v<l?h+=c:u+=c,c>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*c),v++})),O=this.table.rowManager.adjustTableSize(),k=this.elementVertical.clientHeight,O&&(w||this.table.options.maxHeight)&&(_=u/v,y=Math.max(this.vDomWindowMinTotalRows,Math.ceil(k/_+this.vDomWindowBuffer/_)))}t?(this.vDomTopPad=e?this.vDomRowHeight*this.vDomTop+n:this.scrollTop-h,this.vDomBottomPad=this.vDomBottom==m-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-u-h,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((u+h)/v),this.vDomBottomPad=this.vDomRowHeight*(m-this.vDomBottom-1),this.vDomScrollHeight=h+u+this.vDomBottomPad-k),o.style.paddingTop=this.vDomTopPad+"px",o.style.paddingBottom=this.vDomBottomPad+"px",e&&(this.scrollTop=this.vDomTopPad+h+n-(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?this.elementVertical.offsetHeight-k:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-k),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&e&&(this.scrollTop+=this.elementVertical.offsetHeight-k),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,s.scrollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(t,e){for(var n=this.tableElement,r=[],i=0,o=this.vDomTop-1,a=0,s=!0;s;)if(this.vDomTop){let l,u,c=t[o];c&&a<this.vDomMaxRenderChain?(l=c.getHeight()||this.vDomRowHeight,u=c.initialized,e>=l?(this.styleRow(c,o),n.insertBefore(c.getElement(),n.firstChild),c.initialized&&c.heightInitialized||r.push(c),c.initialize(),u||(l=c.getElement().offsetHeight,l>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*l)),e-=l,i+=l,this.vDomTop--,o--,a++):s=!1):s=!1}else s=!1;for(let l of r)l.clearCellHeight();this._quickNormalizeRowHeight(r),i&&(this.vDomTopPad-=i,this.vDomTopPad<0&&(this.vDomTopPad=o*this.vDomRowHeight),o<1&&(this.vDomTopPad=0),n.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=i)}_removeTopRow(t,e){for(var n=[],r=0,i=0,o=!0;o;){let a,s=t[this.vDomTop];s&&i<this.vDomMaxRenderChain?(a=s.getHeight()||this.vDomRowHeight,e>=a?(this.vDomTop++,e-=a,r+=a,n.push(s),i++):o=!1):o=!1}for(let a of n){let t=a.getElement();t.parentNode&&t.parentNode.removeChild(t)}r&&(this.vDomTopPad+=r,this.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?r:r+this.vDomWindowBuffer)}_addBottomRow(t,e){for(var n=this.tableElement,r=[],i=0,o=this.vDomBottom+1,a=0,s=!0;s;){let l,u,c=t[o];c&&a<this.vDomMaxRenderChain?(l=c.getHeight()||this.vDomRowHeight,u=c.initialized,e>=l?(this.styleRow(c,o),n.appendChild(c.getElement()),c.initialized&&c.heightInitialized||r.push(c),c.initialize(),u||(l=c.getElement().offsetHeight,l>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*l)),e-=l,i+=l,this.vDomBottom++,o++,a++):s=!1):s=!1}for(let l of r)l.clearCellHeight();this._quickNormalizeRowHeight(r),i&&(this.vDomBottomPad-=i,(this.vDomBottomPad<0||o==t.length-1)&&(this.vDomBottomPad=0),n.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=i)}_removeBottomRow(t,e){for(var n=[],r=0,i=0,o=!0;o;){let a,s=t[this.vDomBottom];s&&i<this.vDomMaxRenderChain?(a=s.getHeight()||this.vDomRowHeight,e>=a?(this.vDomBottom--,e-=a,r+=a,n.push(s),i++):o=!1):o=!1}for(let a of n){let t=a.getElement();t.parentNode&&t.parentNode.removeChild(t)}r&&(this.vDomBottomPad+=r,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=r)}_quickNormalizeRowHeight(t){for(let e of t)e.calcHeight();for(let e of t)e.setCellHeight()}}class At extends o{constructor(t){super(t),this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.placeholder=null,this.placeholderContents=null,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRowsPipeline=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRenderInPosition=!1,this.dataPipeline=[],this.displayPipeline=[],this.scrollbarWidth=0,this.renderer=null}createHolderElement(){var t=document.createElement("div");return t.classList.add("tabulator-tableholder"),t.setAttribute("tabindex",0),t}createTableElement(){var t=document.createElement("div");return t.classList.add("tabulator-table"),t.setAttribute("role","rowgroup"),t}initializePlaceholder(){var t=this.table.options.placeholder;if("function"===typeof t&&(t=t.call(this.table)),t=this.chain("placeholder",[t],t,t)||t){let e=document.createElement("div");if(e.classList.add("tabulator-placeholder"),"string"==typeof t){let n=document.createElement("div");n.classList.add("tabulator-placeholder-contents"),n.innerHTML=t,e.appendChild(n),this.placeholderContents=n}else"undefined"!==typeof HTMLElement&&t instanceof HTMLElement?(e.appendChild(t),this.placeholderContents=t):(console.warn("Invalid placeholder provided, must be string or HTML Element",t),this.el=null);this.placeholder=e}}getElement(){return this.element}getTableElement(){return this.tableElement}initialize(){this.initializePlaceholder(),this.initializeRenderer(),this.element.appendChild(this.tableElement),this.firstRender=!0,this.element.addEventListener("scroll",(()=>{var t=this.element.scrollLeft,e=this.scrollLeft>t,n=this.element.scrollTop,r=this.scrollTop>n;this.scrollLeft!=t&&(this.scrollLeft=t,this.dispatch("scroll-horizontal",t,e),this.dispatchExternal("scrollHorizontal",t,e),this._positionPlaceholder()),this.scrollTop!=n&&(this.scrollTop=n,this.renderer.scrollRows(n,r),this.dispatch("scroll-vertical",n,r),this.dispatchExternal("scrollVertical",n,r))}))}findRow(t){if("object"!=typeof t){if("undefined"==typeof t)return!1;return this.rows.find((e=>e.data[this.table.options.index]==t))||!1}if(t instanceof x)return t;if(t instanceof O)return t._getSelf()||!1;if("undefined"!==typeof HTMLElement&&t instanceof HTMLElement){return this.rows.find((e=>e.getElement()===t))||!1}return!1}getRowFromDataObject(t){return this.rows.find((e=>e.data===t))||!1}getRowFromPosition(t){return this.getDisplayRows().find((e=>e.getPosition()===t&&e.isDisplayed()))}scrollToRow(t,e,n){return this.renderer.scrollToRowPosition(t,e,n)}setData(t,e,n){return new Promise(((r,i)=>{e&&this.getDisplayRows().length?this.table.options.pagination?this._setDataActual(t,!0):this.reRenderInPosition((()=>{this._setDataActual(t)})):(this.table.options.autoColumns&&n&&this.table.initialized&&this.table.columnManager.generateColumnsFromRowData(t),this.resetScroll(),this._setDataActual(t)),r()}))}_setDataActual(t,e){this.dispatchExternal("dataProcessing",t),this._wipeElements(),Array.isArray(t)?(this.dispatch("data-processing",t),t.forEach(((t,e)=>{if(t&&"object"===typeof t){var n=new x(t,this);this.rows.push(n)}else console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",t)})),this.refreshActiveData(!1,!1,e),this.dispatch("data-processed",t),this.dispatchExternal("dataProcessed",t)):console.error("Data Loading Error - Unable to process data due to invalid data type \nExpecting: array \nReceived: ",typeof t,"\nData:     ",t)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach((t=>{t.wipe()})),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(t,e){var n=this.rows.indexOf(t),r=this.activeRows.indexOf(t);r>-1&&this.activeRows.splice(r,1),n>-1&&this.rows.splice(n,1),this.setActiveRows(this.activeRows),this.displayRowIterator((e=>{var n=e.indexOf(t);n>-1&&e.splice(n,1)})),e||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",t.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(t,e,n,r){return this.addRowActual(t,e,n,r)}addRows(t,e,n,r){var i=[];return new Promise(((o,a)=>{e=this.findAddRowPos(e),Array.isArray(t)||(t=[t]),("undefined"==typeof n&&e||"undefined"!==typeof n&&!e)&&t.reverse(),t.forEach(((t,r)=>{var o=this.addRow(t,e,n,!0);i.push(o),this.dispatch("row-added",o,t,e,n)})),this.refreshActiveData(!!r&&"displayPipeline",!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),o(i)}))}findAddRowPos(t){return"undefined"===typeof t&&(t=this.table.options.addRowPos),"pos"===t&&(t=!0),"bottom"===t&&(t=!1),t}addRowActual(t,e,n,r){var i,o,a=t instanceof x?t:new x(t||{},this),s=this.findAddRowPos(e),l=-1;return n||(o=this.chain("row-adding-position",[a,s],null,{index:n,top:s}),n=o.index,s=o.top),"undefined"!==typeof n&&(n=this.findRow(n)),(n=this.chain("row-adding-index",[a,n,s],null,n))&&(l=this.rows.indexOf(n)),n&&l>-1?(i=this.activeRows.indexOf(n),this.displayRowIterator((function(t){var e=t.indexOf(n);e>-1&&t.splice(s?e:e+1,0,a)})),i>-1&&this.activeRows.splice(s?i:i+1,0,a),this.rows.splice(s?l:l+1,0,a)):s?(this.displayRowIterator((function(t){t.unshift(a)})),this.activeRows.unshift(a),this.rows.unshift(a)):(this.displayRowIterator((function(t){t.push(a)})),this.activeRows.push(a),this.rows.push(a)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",a.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),r||this.reRenderInPosition(),a}moveRow(t,e,n){this.dispatch("row-move",t,e,n),this.moveRowActual(t,e,n),this.regenerateRowPositions(),this.dispatch("row-moved",t,e,n),this.dispatchExternal("rowMoved",t.getComponent())}moveRowActual(t,e,n){this.moveRowInArray(this.rows,t,e,n),this.moveRowInArray(this.activeRows,t,e,n),this.displayRowIterator((r=>{this.moveRowInArray(r,t,e,n)})),this.dispatch("row-moving",t,e,n)}moveRowInArray(t,e,n,r){var i,o,a;if(e!==n&&((i=t.indexOf(e))>-1&&(t.splice(i,1),(o=t.indexOf(n))>-1?r?t.splice(o+1,0,e):t.splice(o,0,e):t.splice(i,0,e)),t===this.getDisplayRows())){a=o>i?o:i+1;for(let e=i<o?i:o;e<=a;e++)t[e]&&this.styleRow(t[e],e)}}clearData(){this.setData([])}getRowIndex(t){return this.findRowIndex(t,this.rows)}getDisplayRowIndex(t){var e=this.getDisplayRows().indexOf(t);return e>-1&&e}nextDisplayRow(t,e){var n=this.getDisplayRowIndex(t),r=!1;return!1!==n&&n<this.displayRowsCount-1&&(r=this.getDisplayRows()[n+1]),!r||r instanceof x&&"row"==r.type?r:this.nextDisplayRow(r,e)}prevDisplayRow(t,e){var n=this.getDisplayRowIndex(t),r=!1;return n&&(r=this.getDisplayRows()[n-1]),!e||!r||r instanceof x&&"row"==r.type?r:this.prevDisplayRow(r,e)}findRowIndex(t,e){var n;return!!((t=this.findRow(t))&&(n=e.indexOf(t))>-1)&&n}getData(t,e){var n=[];return this.getRows(t).forEach((function(t){"row"==t.type&&n.push(t.getData(e||"data"))})),n}getComponents(t){var e=[];return this.getRows(t).forEach((function(t){e.push(t.getComponent())})),e}getDataCount(t){return this.getRows(t).length}scrollHorizontal(t){this.scrollLeft=t,this.element.scrollLeft=t,this.dispatch("scroll-horizontal",t)}registerDataPipelineHandler(t,e){"undefined"!==typeof e?(this.dataPipeline.push({handler:t,priority:e}),this.dataPipeline.sort(((t,e)=>t.priority-e.priority))):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(t,e){"undefined"!==typeof e?(this.displayPipeline.push({handler:t,priority:e}),this.displayPipeline.sort(((t,e)=>t.priority-e.priority))):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(t,e,n){var r=this.table,i="",o=0,s=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if("function"===typeof t)if((o=this.dataPipeline.findIndex((e=>e.handler===t)))>-1)i="dataPipeline",e&&(o==this.dataPipeline.length-1?i="display":o++);else{if(!((o=this.displayPipeline.findIndex((e=>e.handler===t)))>-1))return void console.error("Unable to refresh data, invalid handler provided",t);i="displayPipeline",e&&(o==this.displayPipeline.length-1?i="end":o++)}else i=t||"all",o=0;if(this.redrawBlock)return void((!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===i&&o<this.redrawBlockRestoreConfig.index||s.indexOf(i)<s.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:t,skipStage:e,renderInPosition:n,stage:i,index:o}));a.elVisible(this.element)?n?this.reRenderInPosition(this.refreshPipelines.bind(this,t,i,o,n)):(this.refreshPipelines(t,i,o,n),t||this.table.columnManager.renderer.renderColumns(),this.renderTable(),r.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(t,i,o,n),this.dispatch("data-refreshed")}}refreshPipelines(t,e,n,r){switch(this.dispatch("data-refreshing"),t&&this.activeRowsPipeline[0]||(this.activeRowsPipeline[0]=this.rows.slice(0)),e){case"all":case"dataPipeline":for(let t=n;t<this.dataPipeline.length;t++){let e=this.dataPipeline[t].handler(this.activeRowsPipeline[t].slice(0));this.activeRowsPipeline[t+1]=e||this.activeRowsPipeline[t].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":n=0,this.resetDisplayRows();case"displayPipeline":for(let t=n;t<this.displayPipeline.length;t++){let e=this.displayPipeline[t].handler((t?this.getDisplayRows(t-1):this.activeRows).slice(0),r);this.setDisplayRows(e||this.getDisplayRows(t-1).slice(0),t)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length&&this._clearPlaceholder()}regenerateRowPositions(){var t=this.getDisplayRows(),e=1;t.forEach((t=>{"row"===t.type&&(t.setPosition(e),e++)}))}setActiveRows(t){this.activeRows=this.activeRows=Object.assign([],t),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(t,e){this.displayRows[e]=t,e==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(t){return"undefined"==typeof t?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[t]||[]}getVisibleRows(t,e){var n=Object.assign([],this.renderer.visibleRows(!e));return t&&(n=this.chain("rows-visible",[e],n,n)),n}displayRowIterator(t){this.activeRowsPipeline.forEach(t),this.displayRows.forEach(t),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(t){var e=[];switch(t){case"active":e=this.activeRows;break;case"display":e=this.table.rowManager.getDisplayRows();break;case"visible":e=this.getVisibleRows(!1,!0);break;default:e=this.chain("rows-retrieve",t,null,this.rows)||this.rows}return e}reRenderInPosition(t){this.redrawBlock?t?t():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(t),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var t=0;this.element.scrollHeight>this.element.clientHeight&&(t=this.element.offsetWidth-this.element.clientWidth),t!==this.scrollbarWidth&&(this.scrollbarWidth=t,this.dispatch("scrollbar-vertical",t))}initializeRenderer(){var t,e={virtual:Mt,basic:Tt};(t="string"===typeof this.table.options.renderVertical?e[this.table.options.renderVertical]:this.table.options.renderVertical)?(this.renderMode=this.table.options.renderVertical,this.renderer=new t(this.table,this.element,this.tableElement),this.renderer.initialize(),!this.table.element.clientHeight&&!this.table.options.height||this.table.options.minHeight&&this.table.options.maxHeight?this.fixedHeight=!1:this.fixedHeight=!0):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(t,e){var n=t.getElement();e%2?(n.classList.add("tabulator-row-even"),n.classList.remove("tabulator-row-odd")):(n.classList.add("tabulator-row-odd"),n.classList.remove("tabulator-row-even"))}normalizeHeight(){this.activeRows.forEach((function(t){t.normalizeHeight()}))}adjustTableSize(){let t,e=this.element.clientHeight,n=!1;if("fill"===this.renderer.verticalFillMode){let r=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){t=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const e="calc(100% - "+r+"px)";this.element.style.minHeight=t||"calc(100% - "+r+"px)",this.element.style.height=e,this.element.style.maxHeight=e}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-r+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),this.fixedHeight||e==this.element.clientHeight||(n=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),n}reinitialize(){this.rows.forEach((function(t){t.reinitialize(!0)}))}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(t){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,t?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser){var t=document.createEvent("Event");t.initEvent("scroll",!1,!0),this.element.dispatchEvent(t)}else this.element.dispatchEvent(new Event("scroll"))}}class Dt extends o{constructor(t){super(t),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var t=document.createElement("div");return t.classList.add("tabulator-footer"),t}createContainerElement(){var t=document.createElement("div");return t.classList.add("tabulator-footer-contents"),this.element.appendChild(t),t}initializeElement(){if(this.table.options.footerElement)if("string"===typeof this.table.options.footerElement)"<"===this.table.options.footerElement[0]?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement));else this.element=this.table.options.footerElement}getElement(){return this.element}append(t){this.activate(),this.containerElement.appendChild(t),this.table.rowManager.adjustTableSize()}prepend(t){this.activate(),this.element.insertBefore(t,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(t){t.parentNode.removeChild(t),this.deactivate()}deactivate(t){this.element.firstChild&&!t||(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class Rt extends o{constructor(t){super(t),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var t={};this.listeners.forEach((e=>{t[e]={handler:null,components:[]}})),this.listeners=t}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach((t=>{this.pseudoTrackers[t].subscriber=this.pseudoMouseEnter.bind(this,t),this.subscribe(t+"-mouseover",this.pseudoTrackers[t].subscriber)})),this.pseudoTracking=!0}pseudoMouseEnter(t,e,n){this.pseudoTrackers[t].target!==n&&(this.pseudoTrackers[t].target&&this.dispatch(t+"-mouseleave",e,this.pseudoTrackers[t].target),this.pseudoMouseLeave(t,e),this.pseudoTrackers[t].target=n,this.dispatch(t+"-mouseenter",e,n))}pseudoMouseLeave(t,e){var n=Object.keys(this.pseudoTrackers),r={row:["cell"],cell:["row"]};(n=n.filter((e=>{var n=r[t];return e!==t&&(!n||n&&!n.includes(e))}))).forEach((t=>{var n=this.pseudoTrackers[t].target;this.pseudoTrackers[t].target&&(this.dispatch(t+"-mouseleave",e,n),this.pseudoTrackers[t].target=null)}))}bindSubscriptionWatchers(){var t=Object.keys(this.listeners),e=Object.values(this.componentMap);for(let n of e)for(let e of t){let t=n+"-"+e;this.subscriptionChange(t,this.subscriptionChanged.bind(this,n,e))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(t,e,n){var r=this.listeners[e].components,i=r.indexOf(t),o=!1;n?-1===i&&(r.push(t),o=!0):this.subscribed(t+"-"+e)||i>-1&&(r.splice(i,1),o=!0),"mouseenter"!==e&&"mouseleave"!==e||this.pseudoTracking||this.bindPseudoEvents(),o&&this.updateEventListeners()}updateEventListeners(){for(let t in this.listeners){let e=this.listeners[t];e.components.length?e.handler||(e.handler=this.track.bind(this,t),this.el.addEventListener(t,e.handler)):e.handler&&(this.el.removeEventListener(t,e.handler),e.handler=null)}}track(t,e){var n=e.composedPath&&e.composedPath()||e.path,r=this.findTargets(n);r=this.bindComponents(t,r),this.triggerEvents(t,e,r),!this.pseudoTracking||"mouseover"!=t&&"mouseleave"!=t||Object.keys(r).length||this.pseudoMouseLeave("none",e)}findTargets(t){var e={};let n=Object.keys(this.componentMap);for(let r of t){let t=r.classList?[...r.classList]:[];if(t.filter((t=>this.abortClasses.includes(t))).length)break;let i=t.filter((t=>n.includes(t)));for(let n of i)e[this.componentMap[n]]||(e[this.componentMap[n]]=r)}return e.group&&e.group===e.row&&delete e.row,e}bindComponents(t,e){var n=Object.keys(e).reverse(),r=this.listeners[t],i={},o={};for(let a of n){let t,n=e[a],s=this.previousTargets[a];if(s&&s.target===n)t=s.component;else switch(a){case"row":case"group":if(r.components.includes("row")||r.components.includes("cell")||r.components.includes("group")){t=this.table.rowManager.getVisibleRows(!0).find((t=>t.getElement()===n)),e.row&&e.row.parentNode&&e.row.parentNode.closest(".tabulator-row")&&(e[a]=!1)}break;case"column":r.components.includes("column")&&(t=this.table.columnManager.findColumn(n));break;case"cell":r.components.includes("cell")&&(i.row instanceof x?t=i.row.findCell(n):e.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"))}t&&(i[a]=t,o[a]={target:n,component:t})}return this.previousTargets=o,i}triggerEvents(t,e,n){var r=this.listeners[t];for(let i in n)n[i]&&r.components.includes(i)&&this.dispatch(i+"-"+t,e,n[i])}clearWatchers(){for(let t in this.listeners){let e=this.listeners[t];e.handler&&(this.el.removeEventListener(t,e.handler),e.handler=null)}}}class Lt{constructor(t){this.table=t,this.bindings={}}bind(t,e,n){this.bindings[t]||(this.bindings[t]={}),this.bindings[t][e]?console.warn("Unable to bind component handler, a matching function name is already bound",t,e,n):this.bindings[t][e]=n}handle(t,e,n){if(this.bindings[t]&&this.bindings[t][n]&&"function"===typeof this.bindings[t][n].bind)return this.bindings[t][n].bind(null,e);"then"===n||"string"!==typeof n||n.startsWith("_")||this.table.options.debugInvalidComponentFuncs&&console.error("The "+t+" component does not have a "+n+" function, have you checked that you have the correct Tabulator module installed?")}}class It extends o{constructor(t){super(t),this.requestOrder=0,this.loading=!1}initialize(){}load(t,e,n,r,i,o){var a=++this.requestOrder;return this.table.destroyed?Promise.resolve():(this.dispatchExternal("dataLoading",t),!t||0!=t.indexOf("{")&&0!=t.indexOf("[")||(t=JSON.parse(t)),this.confirm("data-loading",[t,e,n,i])?(this.loading=!0,i||this.alertLoader(),e=this.chain("data-params",[t,n,i],e||{},e||{}),e=this.mapParams(e,this.table.options.dataSendParams),this.chain("data-load",[t,e,n,i],!1,Promise.resolve([])).then((t=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{Array.isArray(t)||"object"!=typeof t||(t=this.mapParams(t,this.objectInvert(this.table.options.dataReceiveParams)));var e=this.chain("data-loaded",t,null,t);a==this.requestOrder?(this.clearAlert(),!1!==e&&(this.dispatchExternal("dataLoaded",e),this.table.rowManager.setData(e,r,"undefined"===typeof o?!r:o))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}})).catch((t=>{console.error("Data Load Error: ",t),this.dispatchExternal("dataLoadError",t),i||this.alertError(),setTimeout((()=>{this.clearAlert()}),this.table.options.dataLoaderErrorTimeout)})).finally((()=>{this.loading=!1}))):(this.dispatchExternal("dataLoaded",t),t||(t=[]),this.table.rowManager.setData(t,r,"undefined"===typeof o?!r:o),Promise.resolve()))}mapParams(t,e){var n={};for(let r in t)n[e.hasOwnProperty(r)?e[r]:r]=t[r];return n}objectInvert(t){var e={};for(let n in t)e[t[n]]=n;return e}blockActiveLoad(){this.requestOrder++}alertLoader(){("function"===typeof this.table.options.dataLoader?this.table.options.dataLoader():this.table.options.dataLoader)&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class Wt{constructor(t,e,n){this.table=t,this.events={},this.optionsList=e||{},this.subscriptionNotifiers={},this.dispatch=n?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=n}subscriptionChange(t,e){this.subscriptionNotifiers[t]||(this.subscriptionNotifiers[t]=[]),this.subscriptionNotifiers[t].push(e),this.subscribed(t)&&this._notifySubscriptionChange(t,!0)}subscribe(t,e){this.events[t]||(this.events[t]=[]),this.events[t].push(e),this._notifySubscriptionChange(t,!0)}unsubscribe(t,e){var n;if(this.events[t]){if(e){if(!((n=this.events[t].findIndex((t=>t===e)))>-1))return void console.warn("Cannot remove event, no matching event found:",t,e);this.events[t].splice(n,1)}else delete this.events[t];this._notifySubscriptionChange(t,!1)}else console.warn("Cannot remove event, no events set on:",t)}subscribed(t){return this.events[t]&&this.events[t].length}_notifySubscriptionChange(t,e){var n=this.subscriptionNotifiers[t];n&&n.forEach((t=>{t(e)}))}_dispatch(){var t,e=Array.from(arguments),n=e.shift();return this.events[n]&&this.events[n].forEach(((n,r)=>{let i=n.apply(this.table,e);r||(t=i)})),t}_debugDispatch(){var t=Array.from(arguments),e=t[0];return t[0]="ExternalEvent:"+t[0],(!0===this.debug||this.debug.includes(e))&&console.log(...t),this._dispatch(...arguments)}}class zt{constructor(t){this.events={},this.subscriptionNotifiers={},this.dispatch=t?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=t?this._debugChain.bind(this):this._chain.bind(this),this.confirm=t?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=t}subscriptionChange(t,e){this.subscriptionNotifiers[t]||(this.subscriptionNotifiers[t]=[]),this.subscriptionNotifiers[t].push(e),this.subscribed(t)&&this._notifySubscriptionChange(t,!0)}subscribe(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;this.events[t]||(this.events[t]=[]),this.events[t].push({callback:e,priority:n}),this.events[t].sort(((t,e)=>t.priority-e.priority)),this._notifySubscriptionChange(t,!0)}unsubscribe(t,e){var n;if(this.events[t]){if(e){if(!((n=this.events[t].findIndex((t=>t.callback===e)))>-1))return void console.warn("Cannot remove event, no matching event found:",t,e);this.events[t].splice(n,1)}this._notifySubscriptionChange(t,!1)}else console.warn("Cannot remove event, no events set on:",t)}subscribed(t){return this.events[t]&&this.events[t].length}_chain(t,e,n,r){var i=n;return Array.isArray(e)||(e=[e]),this.subscribed(t)?(this.events[t].forEach(((t,n)=>{i=t.callback.apply(this,e.concat([i]))})),i):"function"===typeof r?r():r}_confirm(t,e){var n=!1;return Array.isArray(e)||(e=[e]),this.subscribed(t)&&this.events[t].forEach(((t,r)=>{t.callback.apply(this,e)&&(n=!0)})),n}_notifySubscriptionChange(t,e){var n=this.subscriptionNotifiers[t];n&&n.forEach((t=>{t(e)}))}_dispatch(){var t=Array.from(arguments),e=t.shift();this.events[e]&&this.events[e].forEach((e=>{e.callback.apply(this,t)}))}_debugDispatch(){var t=Array.from(arguments),e=t[0];return t[0]="InternalEvent:"+e,(!0===this.debug||this.debug.includes(e))&&console.log(...t),this._dispatch(...arguments)}_debugChain(){var t=Array.from(arguments),e=t[0];return t[0]="InternalEvent:"+e,(!0===this.debug||this.debug.includes(e))&&console.log(...t),this._chain(...arguments)}_debugConfirm(){var t=Array.from(arguments),e=t[0];return t[0]="InternalEvent:"+e,(!0===this.debug||this.debug.includes(e))&&console.log(...t),this._confirm(...arguments)}}class Nt extends o{constructor(t){super(t)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(t,e,n){var r="";return"undefined"===typeof this.options(t)||(r="Deprecated Setup Option - Use of the %c"+t+"%c option is now deprecated",e?(r=r+", Please use the %c"+e+"%c option instead",this._warnUser(r,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),n&&(this.table.options[e]=this.table.options[t])):this._warnUser(r,"font-weight: bold;","font-weight: normal;"),!1)}checkMsg(t,e){return"undefined"===typeof this.options(t)||(this._warnUser("%cDeprecated Setup Option - Use of the %c"+t+" %c option is now deprecated, "+e,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1)}msg(t){this._warnUser(t)}}class Ft{static register(t){Ft.tables.push(t)}static deregister(t){var e=Ft.tables.indexOf(t);e>-1&&Ft.tables.splice(e,1)}static lookupTable(t,e){var n,r,i=[];if("string"===typeof t){if((n=document.querySelectorAll(t)).length)for(var o=0;o<n.length;o++)(r=Ft.matchElement(n[o]))&&i.push(r)}else"undefined"!==typeof HTMLElement&&t instanceof HTMLElement||t instanceof Jt?(r=Ft.matchElement(t))&&i.push(r):Array.isArray(t)?t.forEach((function(t){i=i.concat(Ft.lookupTable(t))})):e||console.warn("Table Connection Error - Invalid Selector",t);return i}static matchElement(t){return Ft.tables.find((function(e){return t instanceof Jt?e===t:e.element===t}))}}function Ht(t,e){t.forEach((function(t){t.reinitializeWidth()})),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}Ft.tables=[];var Bt={fitData:function(t,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(t),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitDataFill:Ht,fitDataTable:Ht,fitDataStretch:function(t,e){var n=0,r=this.table.rowManager.element.clientWidth,i=0,o=!1;t.forEach(((t,e)=>{t.widthFixed||t.reinitializeWidth(),(this.table.options.responsiveLayout?t.modules.responsive.visible:t.visible)&&(o=t),t.visible&&(n+=t.getWidth())})),o?(i=r-n+o.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(o.setWidth(0),this.table.modules.responsiveLayout.update()),i>0?o.setWidth(i):o.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(t,e){var n,r,i=this.table.rowManager.element.getBoundingClientRect().width,o=0,a=0,s=0,l=[],u=[],c=0,d=0;function h(t){return"string"==typeof t?t.indexOf("%")>-1?i/100*parseInt(t):parseInt(t):t}function f(t,e,n,r){var i=[],o=0,a=0,l=0,u=s,c=0,d=0,p=[];function m(t){return n*(t.column.definition.widthGrow||1)}function g(t){return h(t.width)-n*(t.column.definition.widthShrink||0)}return t.forEach((function(t,o){var a=r?g(t):m(t);t.column.minWidth>=a?i.push(t):t.column.maxWidth&&t.column.maxWidth<a?(t.width=t.column.maxWidth,e-=t.column.maxWidth,(u-=r?t.column.definition.widthShrink||1:t.column.definition.widthGrow||1)&&(n=Math.floor(e/u))):(p.push(t),d+=r?t.column.definition.widthShrink||1:t.column.definition.widthGrow||1)})),i.length?(i.forEach((function(t){o+=r?t.width-t.column.minWidth:t.column.minWidth,t.width=t.column.minWidth})),a=e-o,l=d?Math.floor(a/d):a,c=f(p,a,l,r)):(c=d?e-Math.floor(e/d)*d:e,p.forEach((function(t){t.width=r?g(t):m(t)}))),c}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(i-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),t.forEach((function(t){var e,n,r;t.visible&&(e=t.definition.width,n=parseInt(t.minWidth),e?(r=h(e),o+=r>n?r:n,t.definition.widthShrink&&(u.push({column:t,width:r>n?r:n}),c+=t.definition.widthShrink)):(l.push({column:t,width:0}),s+=t.definition.widthGrow||1))})),a=i-o,n=Math.floor(a/s),d=f(l,a,n,!1),l.length&&d>0&&(l[l.length-1].width+=d),l.forEach((function(t){a-=t.width})),(r=Math.abs(d)+a)>0&&c&&(d=f(u,r,Math.floor(r/c),!0)),d&&u.length&&(u[u.length-1].width-=d),l.forEach((function(t){t.column.setWidth(t.width)})),u.forEach((function(t){t.column.setWidth(t.width)}))}};class Vt extends l{constructor(t){super(t,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var t=this.table.options.layout;Vt.modes[t]?this.mode=t:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+t),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(t){t.definition.widthGrow&&(t.definition.widthGrow=Number(t.definition.widthGrow)),t.definition.widthShrink&&(t.definition.widthShrink=Number(t.definition.widthShrink))}getMode(){return this.mode}layout(t){this.dispatch("layout-refreshing"),Vt.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,t),this.dispatch("layout-refreshed")}}Vt.moduleName="layout",Vt.modes=Bt;class qt extends l{constructor(t){super(t),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=a.deepClone(qt.langs),!1!==this.table.options.columnDefaults.headerFilterPlaceholder&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let t in this.table.options.langs)this.installLang(t,this.table.options.langs[t]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(t){this.langList.default.headerFilters.default=t}installLang(t,e){this.langList[t]?this._setLangProp(this.langList[t],e):this.langList[t]=e}_setLangProp(t,e){for(let n in e)t[n]&&"object"==typeof t[n]?this._setLangProp(t[n],e[n]):t[n]=e[n]}setLocale(t){if(!0===(t=t||"default")&&navigator.language&&(t=navigator.language.toLowerCase()),t&&!this.langList[t]){let e=t.split("-")[0];this.langList[e]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",t,e),t=e):(console.warn("Localization Error - Matching locale not found, using default: ",t),t="default")}this.locale=t,this.lang=a.deepClone(this.langList.default||{}),"default"!=t&&function t(e,n){for(var r in e)"object"==typeof e[r]?(n[r]||(n[r]={}),t(e[r],n[r])):n[r]=e[r]}(this.langList[t],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(t){return this.locale}getLang(t){return t?this.langList[t]:this.lang}getText(t,e){var n=(e?t+"|"+e:t).split("|");return this._getLangElement(n,this.locale)||""}_getLangElement(t,e){var n=this.lang;return t.forEach((function(t){var e;n&&(e=n[t],n="undefined"!=typeof e&&e)})),n}bind(t,e){this.bindings[t]||(this.bindings[t]=[]),this.bindings[t].push(e),e(this.getText(t),this.lang)}_executeBindings(){for(let t in this.bindings)this.bindings[t].forEach((e=>{e(this.getText(t),this.lang)}))}}qt.moduleName="localize",qt.langs={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};class Yt extends l{constructor(t){super(t)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(t){var e=[];return Ft.lookupTable(t).forEach((t=>{this.table!==t&&e.push(t)})),e}send(t,e,n,r){var i=this.getConnections(t);i.forEach((t=>{t.tableComms(this.table.element,e,n,r)})),!i.length&&t&&console.warn("Table Connection Error - No tables matching selector found",t)}receive(t,e,n,r){if(this.table.modExists(e))return this.table.modules[e].commsReceived(t,n,r);console.warn("Inter-table Comms Error - no such module:",e)}}Yt.moduleName="comms";var Ut=Object.freeze({__proto__:null,LayoutModule:Vt,LocalizeModule:qt,CommsModule:Yt});class Gt{constructor(t,e){this.bindStaticFunctionality(t),this.bindModules(t,Ut,!0),e&&this.bindModules(t,e)}bindStaticFunctionality(t){t.moduleBindings={},t.extendModule=function(e,n,r){if(t.moduleBindings[e]){var i=t.moduleBindings[e][n];if(i)if("object"==typeof r)for(let t in r)i[t]=r[t];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",n)}else console.warn("Module Error - module does not exist:",e)},t.registerModule=function(e){Array.isArray(e)||(e=[e]),e.forEach((e=>{t.registerModuleBinding(e)}))},t.registerModuleBinding=function(e){t.moduleBindings[e.moduleName]=e},t.findTable=function(t){var e=Ft.lookupTable(t,!0);return!(Array.isArray(e)&&!e.length)&&e},t.prototype.bindModules=function(){var e=[],n=[],r=[];for(var i in this.modules={},t.moduleBindings){let o=t.moduleBindings[i],a=new o(this);this.modules[i]=a,o.prototype.moduleCore?this.modulesCore.push(a):o.moduleInitOrder?o.moduleInitOrder<0?e.push(a):n.push(a):r.push(a)}e.sort(((t,e)=>t.moduleInitOrder>e.moduleInitOrder?1:-1)),n.sort(((t,e)=>t.moduleInitOrder>e.moduleInitOrder?1:-1)),this.modulesRegular=e.concat(r.concat(n))}}bindModules(t,e,n){var r=Object.values(e);n&&r.forEach((t=>{t.prototype.moduleCore=!0})),t.registerModule(r)}}class Xt extends o{constructor(t){super(t),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var t=document.createElement("div");return t.classList.add("tabulator-alert"),t}_createMsgElement(){var t=document.createElement("div");return t.classList.add("tabulator-alert-msg"),t.setAttribute("role","alert"),t}_typeClass(){return"tabulator-alert-state-"+this.type}alert(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"msg";if(t){for(this.clear(),this.dispatch("alert-show",e),this.type=e;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),"function"===typeof t&&(t=t()),t instanceof HTMLElement?this.msgElement.appendChild(t):this.msgElement.innerHTML=t,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}class Jt{constructor(t,e){this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new Lt(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new Nt(this),this.optionsList=new Et(this,"table constructor"),this.initialized=!1,this.destroyed=!1,this.initializeElement(t)&&(this.initializeCoreSystems(e),setTimeout((()=>{this._create()}))),Ft.register(this)}initializeElement(t){return"undefined"!==typeof HTMLElement&&t instanceof HTMLElement?(this.element=t,!0):"string"===typeof t?(this.element=document.querySelector(t),!!this.element||(console.error("Tabulator Creation Error - no element found matching selector: ",t),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",t),!1)}initializeCoreSystems(t){this.columnManager=new Ct(this),this.rowManager=new At(this),this.footerManager=new Dt(this),this.dataLoader=new It(this),this.alertManager=new Xt(this),this.bindModules(),this.options=this.optionsList.generate(Jt.defaultOptions,t),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new Wt(this,this.options,this.options.debugEventsExternal),this.eventBus=new zt(this.options.debugEventsInternal),this.interactionMonitor=new Rt(this),this.dataLoader.initialize(),this.footerManager.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this._loadInitialData(),this.initialized=!0,this.externalEvents.dispatch("tableBuilt")}_rtlCheck(){var t=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if("rtl"!==t.direction)break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var t,e=this.element,n=this.options;if("TABLE"===e.tagName){this.originalElement=this.element,t=document.createElement("div");var r=e.attributes;for(var i in r)"object"==typeof r[i]&&t.setAttribute(r[i].name,r[i].value);e.parentNode.replaceChild(t,e),this.element=e=t}for(e.classList.add("tabulator"),e.setAttribute("role","grid");e.firstChild;)e.removeChild(e.firstChild);n.height&&(n.height=isNaN(n.height)?n.height:n.height+"px",e.style.height=n.height),!1!==n.minHeight&&(n.minHeight=isNaN(n.minHeight)?n.minHeight:n.minHeight+"px",e.style.minHeight=n.minHeight),!1!==n.maxHeight&&(n.maxHeight=isNaN(n.maxHeight)?n.maxHeight:n.maxHeight+"px",e.style.maxHeight=n.maxHeight)}_initializeTable(){var t=this.element,e=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach((t=>{t.initialize()})),t.appendChild(this.columnManager.getElement()),t.appendChild(this.rowManager.getElement()),e.footerElement&&this.footerManager.activate(),e.autoColumns&&e.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach((t=>{t.initialize()})),this.columnManager.setColumns(e.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){this.dataLoader.load(this.options.data),this.columnManager.verticalAlignHeaders()}destroy(){var t=this.element;for(this.destroyed=!0,Ft.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();t.firstChild;)t.removeChild(t.firstChild);t.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var t=navigator.userAgent||navigator.vendor||window.opera;t.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):t.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):t.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):t.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t.slice(0,4))}initGuard(t,e){var n,r;return this.options.debugInitialization&&!this.initialized&&(t||(t=" "==(r="Error"==(n=(new Error).stack.split("\n"))[0]?n[2]:n[1])[0]?r.trim().split(" ")[1].split(".")[1]:r.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+t+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(e?" "+e:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(t,e,n){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(t,e,n,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(t){return this.rowManager.getData(t)}getDataCount(t){return this.rowManager.getDataCount(t)}replaceData(t,e,n){return this.initGuard(),this.dataLoader.load(t,e,n,!0,!0)}updateData(t){var e=0;return this.initGuard(),new Promise(((n,r)=>{this.dataLoader.blockActiveLoad(),"string"===typeof t&&(t=JSON.parse(t)),t&&t.length>0?t.forEach((t=>{var i=this.rowManager.findRow(t[this.options.index]);i?(e++,i.updateData(t).then((()=>{--e||n()})).catch((e=>{r("Update Error - Unable to update row",t,e)}))):r("Update Error - Unable to find row",t)})):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))}))}addData(t,e,n){return this.initGuard(),new Promise(((r,i)=>{this.dataLoader.blockActiveLoad(),"string"===typeof t&&(t=JSON.parse(t)),t?this.rowManager.addRows(t,e,n).then((t=>{var e=[];t.forEach((function(t){e.push(t.getComponent())})),r(e)})):(console.warn("Update Error - No data provided"),i("Update Error - No data provided"))}))}updateOrAddData(t){var e=[],n=0;return this.initGuard(),new Promise(((r,i)=>{this.dataLoader.blockActiveLoad(),"string"===typeof t&&(t=JSON.parse(t)),t&&t.length>0?t.forEach((t=>{var i=this.rowManager.findRow(t[this.options.index]);n++,i?i.updateData(t).then((()=>{n--,e.push(i.getComponent()),n||r(e)})):this.rowManager.addRows(t).then((t=>{n--,e.push(t[0].getComponent()),n||r(e)}))})):(console.warn("Update Error - No data provided"),i("Update Error - No data provided"))}))}getRow(t){var e=this.rowManager.findRow(t);return e?e.getComponent():(console.warn("Find Error - No matching row found:",t),!1)}getRowFromPosition(t){var e=this.rowManager.getRowFromPosition(t);return e?e.getComponent():(console.warn("Find Error - No matching row found:",t),!1)}deleteRow(t){var e=[];this.initGuard(),Array.isArray(t)||(t=[t]);for(let n of t){let t=this.rowManager.findRow(n,!0);if(!t)return console.error("Delete Error - No matching row found:",n),Promise.reject("Delete Error - No matching row found");e.push(t)}return e.sort(((t,e)=>this.rowManager.rows.indexOf(t)>this.rowManager.rows.indexOf(e)?1:-1)),e.forEach((t=>{t.delete()})),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(t,e,n){return this.initGuard(),"string"===typeof t&&(t=JSON.parse(t)),this.rowManager.addRows(t,e,n,!0).then((t=>t[0].getComponent()))}updateOrAddRow(t,e){var n=this.rowManager.findRow(t);return this.initGuard(),"string"===typeof e&&(e=JSON.parse(e)),n?n.updateData(e).then((()=>n.getComponent())):this.rowManager.addRows(e).then((t=>t[0].getComponent()))}updateRow(t,e){var n=this.rowManager.findRow(t);return this.initGuard(),"string"===typeof e&&(e=JSON.parse(e)),n?n.updateData(e).then((()=>Promise.resolve(n.getComponent()))):(console.warn("Update Error - No matching row found:",t),Promise.reject("Update Error - No matching row found"))}scrollToRow(t,e,n){var r=this.rowManager.findRow(t);return r?this.rowManager.scrollToRow(r,e,n):(console.warn("Scroll Error - No matching row found:",t),Promise.reject("Scroll Error - No matching row found"))}moveRow(t,e,n){var r=this.rowManager.findRow(t);this.initGuard(),r?r.moveToRow(e,n):console.warn("Move Error - No matching row found:",t)}getRows(t){return this.rowManager.getComponents(t)}getRowPosition(t){var e=this.rowManager.findRow(t);return e?e.getPosition():(console.warn("Position Error - No matching row found:",t),!1)}setColumns(t){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(t)}getColumns(t){return this.columnManager.getComponents(t)}getColumn(t){var e=this.columnManager.findColumn(t);return e?e.getComponent():(console.warn("Find Error - No matching column found:",t),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(t){var e=this.columnManager.findColumn(t);if(this.initGuard(),!e)return console.warn("Column Show Error - No matching column found:",t),!1;e.show()}hideColumn(t){var e=this.columnManager.findColumn(t);if(this.initGuard(),!e)return console.warn("Column Hide Error - No matching column found:",t),!1;e.hide()}toggleColumn(t){var e=this.columnManager.findColumn(t);if(this.initGuard(),!e)return console.warn("Column Visibility Toggle Error - No matching column found:",t),!1;e.visible?e.hide():e.show()}addColumn(t,e,n){var r=this.columnManager.findColumn(n);return this.initGuard(),this.columnManager.addColumn(t,e,r).then((t=>t.getComponent()))}deleteColumn(t){var e=this.columnManager.findColumn(t);return this.initGuard(),e?e.delete():(console.warn("Column Delete Error - No matching column found:",t),Promise.reject())}updateColumnDefinition(t,e){var n=this.columnManager.findColumn(t);return this.initGuard(),n?n.updateDefinition(e):(console.warn("Column Update Error - No matching column found:",t),Promise.reject())}moveColumn(t,e,n){var r=this.columnManager.findColumn(t),i=this.columnManager.findColumn(e);this.initGuard(),r?i?this.columnManager.moveColumn(r,i,n):console.warn("Move Error - No matching column found:",i):console.warn("Move Error - No matching column found:",t)}scrollToColumn(t,e,n){return new Promise(((r,i)=>{var o=this.columnManager.findColumn(t);return o?this.columnManager.scrollToColumn(o,e,n):(console.warn("Scroll Error - No matching column found:",t),Promise.reject("Scroll Error - No matching column found"))}))}redraw(t){this.initGuard(),this.columnManager.redraw(t),this.rowManager.redraw(t)}setHeight(t){this.options.height=isNaN(t)?t:t+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(t,e){this.externalEvents.subscribe(t,e)}off(t,e){this.externalEvents.unsubscribe(t,e)}dispatchEvent(){Array.from(arguments).shift(),this.externalEvents.dispatch(...arguments)}alert(t,e){this.initGuard(),this.alertManager.alert(t,e)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(t,e){return!!this.modules[t]||(e&&console.error("Tabulator Module Not Installed: "+t),!1)}module(t){var e=this.modules[t];return e||console.error("Tabulator module not installed: "+t),e}}Jt.defaultOptions={debugEventsExternal:!1,debugEventsInternal:!1,debugInvalidOptions:!0,debugInvalidComponentFuncs:!0,debugInitialization:!0,debugDeprecation:!0,height:!1,minHeight:!1,maxHeight:!1,columnHeaderVertAlign:"top",popupContainer:!1,columns:[],columnDefaults:{},data:!1,autoColumns:!1,autoColumnsDefinitions:!1,nestedFieldSeparator:".",footerElement:!1,index:"id",textDirection:"auto",addRowPos:"bottom",headerVisible:!0,renderVertical:"virtual",renderHorizontal:"basic",renderVerticalBuffer:0,scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,rowHeight:null,placeholder:!1,dataLoader:!0,dataLoaderLoading:!1,dataLoaderError:!1,dataLoaderErrorTimeout:3e3,dataSendParams:{},dataReceiveParams:{}},new Gt(Jt);class Kt extends Jt{}new Gt(Kt,xt)},function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"h",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return f}));var r=n(21),i=n(30),o=n(39),a=function(t){var e=t.config,n=void 0===e?i.b:e,a=t.l10n,s=void 0===a?o.b:a,l=t.isMobile,u=void 0!==l&&l;return function(t,e,i){var o=i||s;return void 0===n.formatDate||u?e.split("").map((function(e,i,a){return r.a[e]&&"\\"!==a[i-1]?r.a[e](t,o,n):"\\"!==e?e:""})).join(""):n.formatDate(t,e,o)}},s=function(t){var e=t.config,n=void 0===e?i.b:e,a=t.l10n,s=void 0===a?o.b:a;return function(t,e,o,a){if(0===t||t){var l,u=a||s,c=t;if(t instanceof Date)l=new Date(t.getTime());else if("string"!==typeof t&&void 0!==t.toFixed)l=new Date(t);else if("string"===typeof t){var d=e||(n||i.b).dateFormat,h=String(t).trim();if("today"===h)l=new Date,o=!0;else if(n&&n.parseDate)l=n.parseDate(t,d);else if(/Z$/.test(h)||/GMT$/.test(h))l=new Date(t);else{for(var f=void 0,p=[],m=0,g=0,b="";m<d.length;m++){var v=d[m],y="\\"===v,w="\\"===d[m-1]||y;if(r.d[v]&&!w){b+=r.d[v];var k=new RegExp(b).exec(t);k&&(f=!0)&&p["Y"!==v?"push":"unshift"]({fn:r.c[v],val:k[++g]})}else y||(b+=".")}l=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),p.forEach((function(t){var e=t.fn,n=t.val;return l=e(l,n,u)||l})),l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===o&&l.setHours(0,0,0,0),l;n.errorHandler(new Error("Invalid date provided: "+c))}}};function l(t,e,n){return void 0===n&&(n=!0),!1!==n?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}var u=function(t,e,n){return t>Math.min(e,n)&&t<Math.max(e,n)},c=function(t,e,n){return 3600*t+60*e+n},d=function(t){var e=Math.floor(t/3600),n=(t-3600*e)/60;return[e,n,t-3600*e-60*n]},h={DAY:864e5};function f(t){var e=t.defaultHour,n=t.defaultMinute,r=t.defaultSeconds;if(void 0!==t.minDate){var i=t.minDate.getHours(),o=t.minDate.getMinutes(),a=t.minDate.getSeconds();e<i&&(e=i),e===i&&n<o&&(n=o),e===i&&n===o&&r<a&&(r=t.minDate.getSeconds())}if(void 0!==t.maxDate){var s=t.maxDate.getHours(),l=t.maxDate.getMinutes();(e=Math.min(e,s))===s&&(n=Math.min(l,n)),e===s&&n===l&&(r=t.maxDate.getSeconds())}return{hours:e,minutes:n,seconds:r}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return ke})),n.d(e,"c",(function(){return Ne})),n.d(e,"d",(function(){return fe})),n.d(e,"e",(function(){return B})),n.d(e,"f",(function(){return Ae})),n.d(e,"g",(function(){return at})),n.d(e,"i",(function(){return er}));var r=n(0);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"h",(function(){return r.Hb}));var u=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,r){const i=e.listeners[r],o=e.duration;i.forEach((r=>r({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=r.Vb.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),e=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const i=n.items;let o,a=i.length-1,s=!1;for(;a>=0;--a)o=i[a],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),s=!0):(i[a]=i[i.length-1],i.pop());s&&(r.draw(),this._notify(r,n,t,"progress")),i.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),e+=i.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}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 n=e.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const c="transparent",d={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Object(r.Gb)(t||c),o=i.valid&&Object(r.Gb)(e||c);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class h{constructor(t,e,n,i){const o=e[n];i=Object(r.C)([t.to,i,o,t.from]);const a=Object(r.C)([t.from,o,i]);this._active=!0,this._fn=t.fn||d[t.type||typeof a],this._easing=r.Ib[t.easing]||r.Ib.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=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Object(r.C)([t.to,e,i,t.from]),this._from=Object(r.C)([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,r=this._prop,i=this._from,o=this._loop,a=this._to;let s;if(this._active=i!==a&&(o||e<n),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=i:(s=e/n%2,s=o&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let r=0;r<n.length;r++)n[r][e]()}}r.Hb.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 f=Object.keys(r.Hb.animation);r.Hb.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),r.Hb.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),r.Hb.describe("animations",{_fallback:"animation"}),r.Hb.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 p{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Object(r.Mb)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const i=t[n];if(!Object(r.Mb)(i))return;const o={};for(const t of f)o[t]=i[t];(Object(r.Cb)(i.properties)&&i.properties||[n]).forEach((t=>{t!==n&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,r=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&function(t,e){const n=[],r=Object.keys(e);for(let i=0;i<r.length;i++){const e=t[r[i]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),i}_createAnimations(t,e){const n=this._properties,r=[],i=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let s;for(s=o.length-1;s>=0;--s){const l=o[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(t,e));continue}const u=e[l];let c=i[l];const d=n.get(l);if(c){if(d&&c.active()){c.update(d,u,a);continue}c.cancel()}d&&d.duration?(i[l]=c=new h(d,t,l,u),r.push(c)):t[l]=u}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(u.add(this._chart,n),!0):void 0}}function m(t,e){const n=t&&t.options||{},r=n.reverse,i=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:r?o:i,end:r?i:o}}function g(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function b(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.keys,a="single"===i.mode;let s,l,u,c;if(null!==e){for(s=0,l=o.length;s<l;++s){if(u=+o[s],u===n){if(i.all)continue;break}c=t.values[u],Object(r.Kb)(c)&&(a||0===e||Object(r.Wb)(e)===Object(r.Wb)(c))&&(e+=c)}return e}}function v(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function y(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function w(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const e=t[i.index];if(n&&e>0||!n&&e<0)return i.index}return null}function k(t,e){const n=t.chart,r=t._cachedMeta,i=n._stacks||(n._stacks={}),o=r.iScale,a=r.vScale,s=r.index,l=o.axis,u=a.axis,c=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,a,r),d=e.length;let h;for(let f=0;f<d;++f){const t=e[f],n=t[l],o=t[u];h=(t._stacks||(t._stacks={}))[u]=y(i,c,n),h[s]=o,h._top=w(h,a,!0,r.type),h._bottom=w(h,a,!1,r.type)}}function _(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function O(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[r]||void 0===e[r][n])return;delete e[r][n]}}}const x=t=>"reset"===t||"none"===t,E=(t,e)=>e?t:Object.assign({},t);class j{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=v(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&O(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,r)=>"x"===t?e:"r"===t?r:n,o=e.xAxisID=Object(r.Zb)(n.xAxisID,_(t,"x")),a=e.yAxisID=Object(r.Zb)(n.yAxisID,_(t,"y")),s=e.rAxisID=Object(r.Zb)(n.rAxisID,_(t,"r")),l=e.indexAxis,u=e.iAxisID=i(l,o,a,s),c=e.vAxisID=i(l,a,o,s);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(s),e.iScale=this.getScaleForId(u),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&&Object(r.Yb)(this._data,this),t._stacked&&O(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Object(r.Mb)(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let r,i,o;for(r=0,i=e.length;r<i;++r)o=e[r],n[r]={x:o,y:t[o]};return n}(e);else if(n!==e){if(n){Object(r.Yb)(n,this);const t=this._cachedMeta;O(t),t._parsed=[]}e&&Object.isExtensible(e)&&Object(r.Pb)(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const i=e._stacked;e._stacked=v(e.vScale,e),e.stack!==n.stack&&(r=!0,O(e),e.stack=n.stack),this._resyncElements(t),(r||i!==e._stacked)&&k(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const n=this._cachedMeta,i=this._data,o=n.iScale,a=n._stacked,s=o.axis;let l,u,c,d=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Object(r.Cb)(i[t])?this.parseArrayData(n,i,t,e):Object(r.Mb)(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===u[s]||h&&u[s]<h[s];for(l=0;l<e;++l)n._parsed[l+t]=u=c[l],d&&(o()&&(d=!1),h=u);n._sorted=d}a&&k(this,c)}parsePrimitiveData(t,e,n,r){const i=t.iScale,o=t.vScale,a=i.axis,s=o.axis,l=i.getLabels(),u=i===o,c=new Array(r);let d,h,f;for(d=0,h=r;d<h;++d)f=d+n,c[d]={[a]:u||i.parse(l[f],f),[s]:o.parse(e[f],f)};return c}parseArrayData(t,e,n,r){const i=t.xScale,o=t.yScale,a=new Array(r);let s,l,u,c;for(s=0,l=r;s<l;++s)u=s+n,c=e[u],a[s]={x:i.parse(c[0],u),y:o.parse(c[1],u)};return a}parseObjectData(t,e,n,i){const o=t.xScale,a=t.yScale,s=this._parsing,l=s.xAxisKey,u=void 0===l?"x":l,c=s.yAxisKey,d=void 0===c?"y":c,h=new Array(i);let f,p,m,g;for(f=0,p=i;f<p;++f)m=f+n,g=e[m],h[f]={x:o.parse(Object(r.Jb)(g,u),m),y:a.parse(Object(r.Jb)(g,d),m)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const r=this.chart,i=this._cachedMeta,o=e[t.axis];return b({keys:g(r,!0),values:e._stacks[t.axis]},o,i.index,{mode:n})}updateRangeFromParsed(t,e,n,r){const i=n[e.axis];let o=null===i?NaN:i;const a=r&&n._stacks[e.axis];r&&a&&(r.values=a,o=b(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,a=i.length,s=this._getOtherScale(t),l=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:g(n,!0),values:null})(e,n,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},c=function(t){const e=t.getUserBounds(),n=e.min,r=e.max,i=e.minDefined,o=e.maxDefined;return{min:i?n:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}(s),d=c.min,h=c.max;let f,p;function m(){p=i[f];const e=p[s.axis];return!Object(r.Kb)(p[t.axis])||d>e||h<e}for(f=0;f<a&&(m()||(this.updateRangeFromParsed(u,t,p,l),!o));++f);if(o)for(f=a-1;f>=0;--f)if(!m()){this.updateRangeFromParsed(u,t,p,l);break}return u}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i][t.axis],Object(r.Kb)(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,r=e.vScale,i=this.getParsed(t);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return Object(r.Mb)(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(Object(r.Zb)(this.options.clip,function(t,e,n){if(!1===n)return!1;const r=m(t,n),i=m(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,r=n.data||[],i=e.chartArea,o=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let u;for(n.dataset&&n.dataset.draw(t,i,a,s),u=a;u<a+s;++u){const e=r[u];e.hidden||(e.active&&l?o.push(e):e.draw(t,i))}for(u=0;u<o.length;++u)o[u].draw(t,i)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return Object(r.Lb)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return Object(r.Lb)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;const i="active"===e,o=this._cachedDataOpts,a=t+"-"+e,s=o[a],l=this.enableOptionSharing&&Object(r.Nb)(n);if(s)return E(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),c),f=Object.keys(r.Hb.elements[t]),p=u.resolveNamedOptions(h,f,(()=>this.getContext(n,i)),d);return p.$shared&&(p.$shared=l,o[a]=Object.freeze(E(p,l))),p}_resolveAnimations(t,e,n){const r=this.chart,i=this._cachedDataOpts,o=`animation-${e}`,a=i[o];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,e),o=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(o,this.getContext(t,n,e))}const l=new p(r,s&&s.animations);return s&&s._cacheable&&(i[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||x(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,i=this.getSharedOptions(n),o=this.includeOptions(e,i)||i!==r;return this.updateSharedOptions(i,e,n),{sharedOptions:i,includeOptions:o}}updateElement(t,e,n,r){x(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}updateSharedOptions(t,e,n){t&&!x(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,r){t.active=r;const i=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"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,n=this._cachedMeta.data;for(const l of this._syncList){var r=s(l,3);const t=r[0],e=r[1],n=r[2];this[t](e,n)}this._syncList=[];const i=n.length,o=e.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this._cachedMeta,i=r.data,o=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(s(i),a=t;a<o;++a)i[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(t,e),n&&this.updateElements(i,t,e,"reset")}updateElements(t,e,n,r){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(t,e);n._stacked&&O(n,r)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const e=s(t,3),n=e[0],r=e[1],i=e[2];this[n](r,i)}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 n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function S(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Object(r.B)(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,o,a,s,l=e._length;const u=()=>{32767!==a&&-32768!==a&&(Object(r.Nb)(s)&&(l=Math.min(l,Math.abs(a-s)||l)),s=a)};for(i=0,o=n.length;i<o;++i)a=e.getPixelForValue(n[i]),u();for(s=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),u();return l}function P(t,e,n,i){return Object(r.Cb)(t)?function(t,e,n,r){const i=n.parse(t[0],r),o=n.parse(t[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,u=s;Math.abs(a)>Math.abs(s)&&(l=s,u=a),e[n.axis]=u,e._custom={barStart:l,barEnd:u,start:i,end:o,min:a,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function C(t,e,n,r){const i=t.iScale,o=t.vScale,a=i.getLabels(),s=i===o,l=[];let u,c,d,h;for(u=n,c=n+r;u<c;++u)h=e[u],d={},d[i.axis]=s||i.parse(a[u],u),l.push(P(h,d,o,u));return l}function T(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function M(t,e,n,r){let i=e.borderSkipped;const o={};if(!i)return void(t.borderSkipped=o);if(!0===i)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const a=function(t){let e,n,r,i,o;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:e,top:i,bottom:o}}(t),s=a.start,l=a.end,u=a.reverse,c=a.top,d=a.bottom;"middle"===i&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=d:(o[A(d,s,l,u)]=!0,i=c)),o[A(i,s,l,u)]=!0,t.borderSkipped=o}function A(t,e,n,r){var i,o,a;return r?(a=n,t=D(t=(i=t)===(o=e)?a:i===a?o:i,n,e)):t=D(t,e,n),t}function D(t,e,n){return"start"===t?e:"end"===t?n:t}function R(t,e,n){let r=e.inflateAmount;t.inflateAmount="auto"===r?1===n?.33:0:r}j.defaults={},j.prototype.datasetElementType=null,j.prototype.dataElementType=null;class L extends j{parsePrimitiveData(t,e,n,r){return C(t,e,n,r)}parseArrayData(t,e,n,r){return C(t,e,n,r)}parseObjectData(t,e,n,i){const o=t.iScale,a=t.vScale,s=this._parsing,l=s.xAxisKey,u=void 0===l?"x":l,c=s.yAxisKey,d=void 0===c?"y":c,h="x"===o.axis?u:d,f="x"===a.axis?u:d,p=[];let m,g,b,v;for(m=n,g=n+i;m<g;++m)v=e[m],b={},b[o.axis]=o.parse(Object(r.Jb)(v,h),m),p.push(P(Object(r.Jb)(v,f),b,a,m));return p}updateRangeFromParsed(t,e,n,r){super.updateRangeFromParsed(t,e,n,r);const i=n._custom;i&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,r=e.vScale,i=this.getParsed(t),o=i._custom,a=T(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.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,n,i){const o="reset"===i,a=this.index,s=this._cachedMeta.vScale,l=s.getBasePixel(),u=s.isHorizontal(),c=this._getRuler(),d=this._getSharedOptions(e,i),h=d.sharedOptions,f=d.includeOptions;for(let p=e;p<e+n;p++){const e=this.getParsed(p),n=o||Object(r.Ob)(e[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),d=this._calculateBarIndexPixels(p,c),m=(e._stacks||{})[s.axis],g={horizontal:u,base:n.base,enableBorderRadius:!m||T(e._custom)||a===m._top||a===m._bottom,x:u?n.head:d.center,y:u?d.center:n.head,height:u?d.size:Math.abs(n.size),width:u?Math.abs(n.size):d.size};f&&(g.options=h||this.resolveDataElementOptions(p,t[p].active?"active":i));const b=g.options||t[p].options;M(g,b,m,a),R(g,b,c.ratio),this.updateElement(t[p],p,g,i)}}_getStacks(t,e){const n=this._cachedMeta.iScale,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=n.options.stacked,a=[],s=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(Object(r.Ob)(i)||isNaN(i))return!0};for(const r of i)if((void 0===e||!s(r))&&((!1===o||-1===a.indexOf(r.stack)||void 0===o&&void 0===r.stack)&&a.push(r.stack),r.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const r=this._getStacks(t,n),i=void 0!==e?r.indexOf(e):-1;return-1===i?r.length-1:i}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,r=[];let i,o;for(i=0,o=e.data.length;i<o;++i)r.push(n.getPixelForValue(this.getParsed(i)[n.axis],i));const a=t.barThickness;return{min:a||S(e),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const e=this._cachedMeta,n=e.vScale,i=e._stacked,o=this.options,a=o.base,s=o.minBarLength,l=a||0,u=this.getParsed(t),c=u._custom,d=T(c);let h,f,p=u[n.axis],m=0,g=i?this.applyStack(n,u,i):p;g!==p&&(m=g-p,g=p),d&&(p=c.barStart,g=c.barEnd-c.barStart,0!==p&&Object(r.Wb)(p)!==Object(r.Wb)(c.barEnd)&&(m=0),m+=p);const b=Object(r.Ob)(a)||d?m:a;let v=n.getPixelForValue(b);if(h=this.chart.getDataVisibility(t)?n.getPixelForValue(m+g):v,f=h-v,Math.abs(f)<s){f=function(t,e,n){return 0!==t?Object(r.Wb)(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(f,n,l)*s,p===l&&(v-=f/2);const t=n.getPixelForDecimal(0),e=n.getPixelForDecimal(1),i=Math.min(t,e),o=Math.max(t,e);v=Math.max(Math.min(v,o),i),h=v+f}if(v===n.getPixelForValue(l)){const t=Object(r.Wb)(f)*n.getLineWidthForValue(l)/2;v+=t,f-=t}return{size:f,base:v,head:h,center:h+f/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,a=Object(r.Zb)(i.maxBarThickness,1/0);let s,l;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,u="flex"===i.barThickness?function(t,e,n,r){const i=e.pixels,o=i[t];let a=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null;const l=n.categoryPercentage;null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a);const u=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:u}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let a,s;return Object(r.Ob)(o)?(a=e.min*n.categoryPercentage,s=n.barPercentage):(a=o*i,s=1),{chunk:a/i,ratio:s,start:e.pixels[t]-a/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);s=u.start+u.chunk*c+u.chunk/2,l=Math.min(a,u.chunk*u.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),l=Math.min(a,e.min*e.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,r=n.length;let i=0;for(;i<r;++i)null!==this.getParsed(i)[e.axis]&&n[i].draw(this._ctx)}}L.id="bar",L.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},L.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class I extends j{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,r){const i=super.parsePrimitiveData(t,e,n,r);for(let o=0;o<i.length;o++)i[o]._custom=this.resolveDataElementOptions(o+n).radius;return i}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let a=0;a<o.length;a++){const t=e[n+a];o[a]._custom=Object(r.Zb)(t[2],this.resolveDataElementOptions(a+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let a=0;a<o.length;a++){const t=e[n+a];o[a]._custom=Object(r.Zb)(t&&t.r&&+t.r,this.resolveDataElementOptions(a+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,n=e.xScale,r=e.yScale,i=this.getParsed(t),o=n.getLabelForValue(i.x),a=r.getLabelForValue(i.y),s=i._custom;return{label:e.label,value:"("+o+", "+a+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,r){const i="reset"===r,o=this._cachedMeta,a=o.iScale,s=o.vScale,l=this._getSharedOptions(e,r),u=l.sharedOptions,c=l.includeOptions,d=a.axis,h=s.axis;for(let f=e;f<e+n;f++){const e=t[f],n=!i&&this.getParsed(f),o={},l=o[d]=i?a.getPixelForDecimal(.5):a.getPixelForValue(n[d]),p=o[h]=i?s.getBasePixel():s.getPixelForValue(n[h]);o.skip=isNaN(l)||isNaN(p),c&&(o.options=u||this.resolveDataElementOptions(f,e.active?"active":r),i&&(o.options.radius=0)),this.updateElement(e,f,o,r)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=Object(r.Zb)(n&&n._custom,o),i}}I.id="bubble",I.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},I.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class W extends j{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 n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,a,s=t=>+n[t];if(Object(r.Mb)(n[t])){const t=this._parsing.key,e=void 0===t?"value":t;s=t=>+Object(r.Jb)(n[t],e)}for(o=t,a=t+e;o<a;++o)i._parsed[o]=s(o)}}_getRotation(){return Object(r.Xb)(this.options.rotation-90)}_getCircumference(){return Object(r.Xb)(this.options.circumference)}_getRotationExtents(){let t=r.u,e=-r.u;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),o=r._getCircumference();t=Math.min(t,i),e=Math.max(e,i+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart.chartArea,n=this._cachedMeta,i=n.data,o=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(e.width,e.height)-o)/2,0),s=Math.min(Object(r.Qb)(this.options.cutout,a),1),l=this._getRingWeight(this.index),u=this._getRotationExtents(),c=u.circumference,d=function(t,e,n){let i=1,o=1,a=0,s=0;if(e<r.u){const l=t,u=l+e,c=Math.cos(l),d=Math.sin(l),h=Math.cos(u),f=Math.sin(u),p=(t,e,i)=>Object(r.Tb)(t,l,u,!0)?1:Math.max(e,e*n,i,i*n),m=(t,e,i)=>Object(r.Tb)(t,l,u,!0)?-1:Math.min(e,e*n,i,i*n),g=p(0,c,h),b=p(r.i,d,f),v=m(r.q,c,h),y=m(r.q+r.i,d,f);i=(g-v)/2,o=(b-y)/2,a=-(g+v)/2,s=-(b+y)/2}return{ratioX:i,ratioY:o,offsetX:a,offsetY:s}}(u.rotation,c,s),h=d.ratioX,f=d.ratioY,p=d.offsetX,m=d.offsetY,g=(e.width-o)/h,b=(e.height-o)/f,v=Math.max(Math.min(g,b)/2,0),y=Object(r.Rb)(this.options.radius,v),w=(y-Math.max(y*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*y,this.offsetY=m*y,n.total=this.calculateTotal(),this.outerRadius=y-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*l,0),this.updateElements(i,0,i.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/r.u)}updateElements(t,e,n,r){const i="reset"===r,o=this.chart,a=o.chartArea,s=o.options.animation,l=(a.left+a.right)/2,u=(a.top+a.bottom)/2,c=i&&s.animateScale,d=c?0:this.innerRadius,h=c?0:this.outerRadius,f=this._getSharedOptions(e,r),p=f.sharedOptions,m=f.includeOptions;let g,b=this._getRotation();for(g=0;g<e;++g)b+=this._circumference(g,i);for(g=e;g<e+n;++g){const e=this._circumference(g,i),n=t[g],o={x:l+this.offsetX,y:u+this.offsetY,startAngle:b,endAngle:b+e,circumference:e,outerRadius:h,innerRadius:d};m&&(o.options=p||this.resolveDataElementOptions(g,n.active?"active":r)),b+=e,this.updateElement(n,g,o,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,r=0;for(n=0;n<e.length;n++){const i=t._parsed[n];null===i||isNaN(i)||!this.chart.getDataVisibility(n)||e[n].hidden||(r+=Math.abs(i))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?r.u*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=Object(r.Sb)(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let r,i,o,a,s;if(!t)for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r)){o=n.getDatasetMeta(r),t=o.data,a=o.controller;break}if(!t)return 0;for(r=0,i=t.length;r<i;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,r=t.length;n<r;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(Object(r.Zb)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}W.id="doughnut",W.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"},W.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},W.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const n=t.legend.options.labels.pointStyle;return e.labels.map(((e,r)=>{const i=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return Object(r.Cb)(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class z extends j{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data,o=void 0===i?[]:i,a=e._dataset,s=this.chart._animationsDisabled;let l=Object(r.Ub)(e,o,s),u=l.start,c=l.count;this._drawStart=u,this._drawCount=c,Object(r.ac)(e)&&(u=0,c=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=o;const d=this.resolveDatasetElementOptions(t);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:d},t),this.updateElements(o,u,c,t)}updateElements(t,e,n,i){const o="reset"===i,a=this._cachedMeta,s=a.iScale,l=a.vScale,u=a._stacked,c=a._dataset,d=this._getSharedOptions(e,i),h=d.sharedOptions,f=d.includeOptions,p=s.axis,m=l.axis,g=this.options,b=g.spanGaps,v=g.segment,y=Object(r.bc)(b)?b:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||o||"none"===i;let k=e>0&&this.getParsed(e-1);for(let _=e;_<e+n;++_){const e=t[_],n=this.getParsed(_),a=w?e:{},d=Object(r.Ob)(n[m]),g=a[p]=s.getPixelForValue(n[p],_),b=a[m]=o||d?l.getBasePixel():l.getPixelForValue(u?this.applyStack(l,n,u):n[m],_);a.skip=isNaN(g)||isNaN(b)||d,a.stop=_>0&&Math.abs(n[p]-k[p])>y,v&&(a.parsed=n,a.raw=c.data[_]),f&&(a.options=h||this.resolveDataElementOptions(_,e.active?"active":i)),w||this.updateElement(e,_,a,i),k=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return n;const i=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}z.id="line",z.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},z.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class N extends j{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=Object(r.Sb)(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return r.cc.bind(this)(t,e,n,i)}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,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<e.min&&(e.min=r),r>e.max&&(e.max=r))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),i=Math.max(r/2,0),o=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,s=a.options.animation,l=this._cachedMeta.rScale,u=l.xCenter,c=l.yCenter,d=l.getIndexAngle(0)-.5*r.q;let h,f=d;const p=360/this.countVisibleElements();for(h=0;h<e;++h)f+=this._computeAngle(h,i,p);for(h=e;h<e+n;h++){const e=t[h];let n=f,r=f+this._computeAngle(h,i,p),m=a.getDataVisibility(h)?l.getDistanceFromCenterForValue(this.getParsed(h).r):0;f=r,o&&(s.animateScale&&(m=0),s.animateRotate&&(n=r=d));const g={x:u,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:r,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,g,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Object(r.Xb)(this.resolveDataElementOptions(t,e).angle||n):0}}N.id="polarArea",N.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},N.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const n=t.legend.options.labels.pointStyle;return e.labels.map(((e,r)=>{const i=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>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 F extends W{}F.id="pie",F.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class H extends j{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return r.cc.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,r=e.data||[],i=e.iScale.getLabels();if(n.points=r,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:i.length===r.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,n,r){const i=this._cachedMeta.rScale,o="reset"===r;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":r),s=i.getPointPositionForValue(a,this.getParsed(a).r),l=o?i.xCenter:s.x,u=o?i.yCenter:s.y,c={x:l,y:u,angle:s.angle,skip:isNaN(l)||isNaN(u),options:n};this.updateElement(e,a,c,r)}}}H.id="radar",H.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},H.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class B{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const e=this.getProps(["x","y"],t);return{x:e.x,y:e.y}}hasValue(){return Object(r.bc)(this.x)&&Object(r.bc)(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const r={};return t.forEach((t=>{r[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),r}}B.defaults={},B.defaultRoutes=void 0;const V={values:t=>Object(r.Cb)(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,a=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const s=Object(r.dc)(Math.abs(a)),l=Math.max(Math.min(-1*Math.floor(s),20),0),u={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(u,this.options.ticks.format),Object(r.Sb)(t,i,u)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Object(r.dc)(t)));return 1===i||2===i||5===i?V.numeric.call(this,t,e,n):""}};var q={formatters:V};function Y(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}(t),o=n.major.enabled?function(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,s=o[0],l=o[a-1],u=[];if(a>i)return function(t,e,n,r){let i,o=0,a=n[0];for(r=Math.ceil(r),i=0;i<t.length;i++)i===a&&(e.push(t[i]),o++,a=n[o*r])}(e,u,o,a/i),u;const c=function(t,e,n){const i=function(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}(t),o=e.length/n;if(!i)return Math.max(o,1);const a=Object(r.b)(i);for(let r=0,s=a.length-1;r<s;r++){const t=a[r];if(t>o)return t}return Math.max(o,1)}(o,e,i);if(a>0){let t,n;const i=a>1?Math.round((l-s)/(a-1)):null;for(U(e,u,c,Object(r.Ob)(i)?0:s-i,s),t=0,n=a-1;t<n;t++)U(e,u,c,o[t],o[t+1]);return U(e,u,c,l,Object(r.Ob)(i)?e.length:l+i),u}return U(e,u,c),u}function U(t,e,n,i,o){const a=Object(r.Zb)(i,0),s=Math.min(Object(r.Zb)(o,t.length),t.length);let l,u,c,d=0;for(n=Math.ceil(n),o&&(l=o-i,n=l/Math.floor(l/n)),c=a;c<0;)d++,c=Math.round(a+d*n);for(u=Math.max(a,0);u<s;u++)u===c&&(e.push(t[u]),d++,c=Math.round(a+d*n))}r.Hb.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:q.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),r.Hb.route("scale.ticks","color","","color"),r.Hb.route("scale.grid","color","","borderColor"),r.Hb.route("scale.grid","borderColor","","borderColor"),r.Hb.route("scale.title","color","","color"),r.Hb.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),r.Hb.describe("scales",{_fallback:"scale"}),r.Hb.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const G=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function X(t,e){const n=[],r=t.length/e,i=t.length;let o=0;for(;o<i;o+=r)n.push(t[Math.floor(o)]);return n}function J(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),o=t._startPixel,a=t._endPixel,s=1e-6;let l,u=t.getPixelForTick(i);if(!(n&&(l=1===r?Math.max(u-o,a-u):0===e?(t.getPixelForTick(1)-u)/2:(u-t.getPixelForTick(i-1))/2,u+=i<e?l:-l,u<o-s||u>a+s)))return u}function K(t){return t.drawTicks?t.tickLength:0}function $(t,e){if(!t.display)return 0;const n=Object(r.p)(t.font,e),i=Object(r.l)(t.padding);return(Object(r.Cb)(t.text)?t.text.length:1)*n.lineHeight+i.height}function Q(t,e,n){let i=Object(r.s)(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class Z extends B{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 t=this._userMin,e=this._userMax,n=this._suggestedMin,i=this._suggestedMax;return t=Object(r.c)(t,Number.POSITIVE_INFINITY),e=Object(r.c)(e,Number.NEGATIVE_INFINITY),n=Object(r.c)(n,Number.POSITIVE_INFINITY),i=Object(r.c)(i,Number.NEGATIVE_INFINITY),{min:Object(r.c)(t,n),max:Object(r.c)(e,i),minDefined:Object(r.Kb)(t),maxDefined:Object(r.Kb)(e)}}getMinMax(t){let e,n=this.getUserBounds(),i=n.min,o=n.max,a=n.minDefined,s=n.maxDefined;if(a&&s)return{min:i,max:o};const l=this.getMatchingVisibleMetas();for(let r=0,u=l.length;r<u;++r)e=l[r].controller.getMinMax(this,t),a||(i=Math.min(i,e.min)),s||(o=Math.max(o,e.max));return i=s&&i>o?o:i,o=a&&i>o?i:o,{min:Object(r.c)(i,Object(r.c)(o,i)),max:Object(r.c)(o,Object(r.c)(i,o))}}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(){Object(r.d)(this.options.beforeUpdate,[this])}update(t,e,n){const i=this.options,o=i.beginAtZero,a=i.grace,s=i.ticks,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Object(r.e)(this,a,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=l<this.ticks.length;this._convertTicksToLabels(u?X(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=Y(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),u&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Object(r.d)(this.options.afterUpdate,[this])}beforeSetDimensions(){Object(r.d)(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(){Object(r.d)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Object(r.d)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Object(r.d)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=Object(r.d)(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){Object(r.d)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Object(r.d)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let a,s,l,u=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,f=Object(r.f)(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/n:f/(n-1),d+6>a&&(a=f/(n-(t.offset?.5:1)),s=this.maxHeight-K(t.grid)-e.padding-$(t.title,this.chart.options.font),l=Math.sqrt(d*d+h*h),u=Object(r.g)(Math.min(Math.asin(Object(r.f)((c.highest.height+6)/a,-1,1)),Math.asin(Object(r.f)(s/l,-1,1))-Math.asin(Object(r.f)(h/l,-1,1)))),u=Math.max(i,Math.min(o,u))),this.labelRotation=u}afterCalculateLabelRotation(){Object(r.d)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Object(r.d)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},e=this.chart,n=this.options,i=n.ticks,o=n.title,a=n.grid,s=this._isVisible(),l=this.isHorizontal();if(s){const n=$(o,e.options.font);if(l?(t.width=this.maxWidth,t.height=K(a)+n):(t.height=this.maxHeight,t.width=K(a)+n),i.display&&this.ticks.length){const e=this._getLabelSizes(),n=e.first,o=e.last,a=e.widest,s=e.highest,u=2*i.padding,c=Object(r.Xb)(this.labelRotation),d=Math.cos(c),h=Math.sin(c);if(l){const e=i.mirror?0:h*a.width+d*s.height;t.height=Math.min(this.maxHeight,t.height+e+u)}else{const e=i.mirror?0:d*a.width+h*s.height;t.width=Math.min(this.maxWidth,t.width+e+u)}this._calculatePadding(n,o,h,d)}}this._handleMargins(),l?(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,n,r){const i=this.options,o=i.ticks,a=o.align,s=o.padding,l=i.position,u=0!==this.labelRotation,c="top"!==l&&"x"===this.axis;if(this.isHorizontal()){const i=this.getPixelForTick(0)-this.left,o=this.right-this.getPixelForTick(this.ticks.length-1);let l=0,d=0;u?c?(l=r*t.width,d=n*e.height):(l=n*t.height,d=r*e.width):"start"===a?d=e.width:"end"===a?l=t.width:"inner"!==a&&(l=t.width/2,d=e.width/2),this.paddingLeft=Math.max((l-i+s)*this.width/(this.width-i),0),this.paddingRight=Math.max((d-o+s)*this.width/(this.width-o),0)}else{let n=e.height/2,r=t.height/2;"start"===a?(n=0,r=t.height):"end"===a&&(n=e.height,r=0),this.paddingTop=n+s,this.paddingBottom=r+s}}_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(){Object(r.d)(this.options.afterFit,[this])}isHorizontal(){const t=this.options,e=t.axis,n=t.position;return"top"===n||"bottom"===n||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Object(r.Ob)(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=X(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const n=this.ctx,i=this._longestTextCache,o=[],a=[];let s,l,u,c,d,h,f,p,m,g,b,v=0,y=0;for(s=0;s<e;++s){if(c=t[s].label,d=this._resolveTickFontOptions(s),n.font=h=d.string,f=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,m=g=0,Object(r.Ob)(c)||Object(r.Cb)(c)){if(Object(r.Cb)(c))for(l=0,u=c.length;l<u;++l)b=c[l],Object(r.Ob)(b)||Object(r.Cb)(b)||(m=Object(r.h)(n,f.data,f.gc,m,b),g+=p)}else m=Object(r.h)(n,f.data,f.gc,m,c),g=p;o.push(m),a.push(g),v=Math.max(m,v),y=Math.max(g,y)}!function(t,e){Object(r.r)(t,(t=>{const n=t.gc,r=n.length/2;let i;if(r>e){for(i=0;i<r;++i)delete t.data[n[i]];n.splice(0,r)}}))}(i,e);const w=o.indexOf(v),k=a.indexOf(y),_=t=>({width:o[t]||0,height:a[t]||0});return{first:_(0),last:_(e-1),widest:_(w),highest:_(k),widths:o,heights:a}}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 Object(r.j)(this._alignToPixels?Object(r.k)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const t=this.min,e=this.max;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 n=e[t];return n.$context||(n.$context=function(t,e,n){return Object(r.Lb)(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=(n=this.chart.getContext(),i=this,Object(r.Lb)(n,{scale:i,type:"scale"})));var n,i}_tickSize(){const t=this.options.ticks,e=Object(r.Xb)(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*n>s*i?s/n:l/i:l*i<s*n?l/n:s/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,o=i.grid,a=i.position,s=o.offset,l=this.isHorizontal(),u=this.ticks.length+(s?1:0),c=K(o),d=[],h=o.setContext(this.getContext()),f=h.drawBorder?h.borderWidth:0,p=f/2,m=function(t){return Object(r.k)(n,t,f)};let g,b,v,y,w,k,_,O,x,E,j,S;if("top"===a)g=m(this.bottom),k=this.bottom-c,O=g-p,E=m(t.top)+p,S=t.bottom;else if("bottom"===a)g=m(this.top),E=t.top,S=m(t.bottom)-p,k=g+p,O=this.top+c;else if("left"===a)g=m(this.right),w=this.right-c,_=g-p,x=m(t.left)+p,j=t.right;else if("right"===a)g=m(this.left),x=t.left,j=m(t.right)-p,w=g+p,_=this.left+c;else if("x"===e){if("center"===a)g=m((t.top+t.bottom)/2+.5);else if(Object(r.Mb)(a)){const t=Object.keys(a)[0],e=a[t];g=m(this.chart.scales[t].getPixelForValue(e))}E=t.top,S=t.bottom,k=g+p,O=k+c}else if("y"===e){if("center"===a)g=m((t.left+t.right)/2);else if(Object(r.Mb)(a)){const t=Object.keys(a)[0],e=a[t];g=m(this.chart.scales[t].getPixelForValue(e))}w=g-p,_=w-c,x=t.left,j=t.right}const P=Object(r.Zb)(i.ticks.maxTicksLimit,u),C=Math.max(1,Math.ceil(u/P));for(b=0;b<u;b+=C){const t=o.setContext(this.getContext(b)),e=t.lineWidth,i=t.color,a=t.borderDash||[],u=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,f=t.tickBorderDash||[],p=t.tickBorderDashOffset;v=J(this,b,s),void 0!==v&&(y=Object(r.k)(n,v,e),l?w=_=x=j=y:k=O=E=S=y,d.push({tx1:w,ty1:k,tx2:_,ty2:O,x1:x,y1:E,x2:j,y2:S,width:e,color:i,borderDash:a,borderDashOffset:u,tickWidth:c,tickColor:h,tickBorderDash:f,tickBorderDashOffset:p}))}return this._ticksLength=u,this._borderValue=g,d}_computeLabelItems(t){const e=this.axis,n=this.options,i=n.position,o=n.ticks,a=this.isHorizontal(),s=this.ticks,l=o.align,u=o.crossAlign,c=o.padding,d=o.mirror,h=K(n.grid),f=h+c,p=d?-c:f,m=-Object(r.Xb)(this.labelRotation),g=[];let b,v,y,w,k,_,O,x,E,j,S,P,C="middle";if("top"===i)_=this.bottom-p,O=this._getXAxisLabelAlignment();else if("bottom"===i)_=this.top+p,O=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);O=t.textAlign,k=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);O=t.textAlign,k=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+f;else if(Object(r.Mb)(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)+f}O=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)k=(t.left+t.right)/2-f;else if(Object(r.Mb)(i)){const t=Object.keys(i)[0],e=i[t];k=this.chart.scales[t].getPixelForValue(e)}O=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===l?C="top":"end"===l&&(C="bottom"));const T=this._getLabelSizes();for(b=0,v=s.length;b<v;++b){y=s[b],w=y.label;const t=o.setContext(this.getContext(b));x=this.getPixelForTick(b)+o.labelOffset,E=this._resolveTickFontOptions(b),j=E.lineHeight,S=Object(r.Cb)(w)?w.length:1;const e=S/2,n=t.color,l=t.textStrokeColor,c=t.textStrokeWidth;let h,f=O;if(a?(k=x,"inner"===O&&(f=b===v-1?this.options.reverse?"left":"right":0===b?this.options.reverse?"right":"left":"center"),P="top"===i?"near"===u||0!==m?-S*j+j/2:"center"===u?-T.highest.height/2-e*j+j:-T.highest.height+j/2:"near"===u||0!==m?j/2:"center"===u?T.highest.height/2-e*j:T.highest.height-S*j,d&&(P*=-1)):(_=x,P=(1-S)*j/2),t.showLabelBackdrop){const e=Object(r.l)(t.backdropPadding),n=T.heights[b],i=T.widths[b];let o=_+P-e.top,a=k-e.left;switch(C){case"middle":o-=n/2;break;case"bottom":o-=n}switch(O){case"center":a-=i/2;break;case"right":a-=i}h={left:a,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({rotation:m,label:w,font:E,color:n,strokeColor:l,strokeWidth:c,textOffset:P,textAlign:f,textBaseline:C,translation:[k,_],backdrop:h})}return g}_getXAxisLabelAlignment(){const t=this.options,e=t.position,n=t.ticks;if(-Object(r.Xb)(this.labelRotation))return"top"===e?"left":"right";let i="center";return"start"===n.align?i="left":"end"===n.align?i="right":"inner"===n.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const e=this.options,n=e.position,r=e.ticks,i=r.crossAlign,o=r.mirror,a=r.padding,s=t+a,l=this._getLabelSizes().widest.width;let u,c;return"left"===n?o?(c=this.right+a,"near"===i?u="left":"center"===i?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-s,"near"===i?u="right":"center"===i?(u="center",c-=l/2):(u="left",c=this.left)):"right"===n?o?(c=this.left+a,"near"===i?u="right":"center"===i?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+s,"near"===i?u="left":"center"===i?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_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}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const t=this.ctx,e=this.options.backgroundColor,n=this.left,r=this.top,i=this.width,o=this.height;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,i,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,o;const a=(t,e,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(i=0,o=r.length;i<o;++i){const t=r[i];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 t=this.chart,e=this.ctx,n=this.options.grid,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const a=n.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,u,c,d;this.isHorizontal()?(l=Object(r.k)(t,this.left,o)-o/2,u=Object(r.k)(t,this.right,a)+a/2,c=d=s):(c=Object(r.k)(t,this.top,o)-o/2,d=Object(r.k)(t,this.bottom,a)+a/2,l=u=s),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(l,c),e.lineTo(u,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Object(r.m)(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,a;for(o=0,a=i.length;o<a;++o){const t=i[o],n=t.font,a=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height));let s=t.textOffset;Object(r.n)(e,a,0,s,n,t)}n&&Object(r.o)(e)}drawTitle(){const t=this.ctx,e=this.options,n=e.position,i=e.title,o=e.reverse;if(!i.display)return;const a=Object(r.p)(i.font),s=Object(r.l)(i.padding),l=i.align;let u=a.lineHeight/2;"bottom"===n||"center"===n||Object(r.Mb)(n)?(u+=s.bottom,Object(r.Cb)(i.text)&&(u+=a.lineHeight*(i.text.length-1))):u+=s.top;const c=function(t,e,n,i){const o=t.top,a=t.left,s=t.bottom,l=t.right,u=t.chart,c=u.chartArea,d=u.scales;let h,f,p,m=0;const g=s-o,b=l-a;if(t.isHorizontal()){if(f=Object(r.t)(i,a,l),Object(r.Mb)(n)){const t=Object.keys(n)[0],r=n[t];p=d[t].getPixelForValue(r)+g-e}else p="center"===n?(c.bottom+c.top)/2+g-e:G(t,n,e);h=l-a}else{if(Object(r.Mb)(n)){const t=Object.keys(n)[0],r=n[t];f=d[t].getPixelForValue(r)-b+e}else f="center"===n?(c.left+c.right)/2-b+e:G(t,n,e);p=Object(r.t)(i,s,o),m="left"===n?-r.i:r.i}return{titleX:f,titleY:p,maxWidth:h,rotation:m}}(this,u,n,l),d=c.titleX,h=c.titleY,f=c.maxWidth,p=c.rotation;Object(r.n)(t,i.text,0,0,a,{color:i.color,maxWidth:f,rotation:p,textAlign:Q(l,n,o),textBaseline:"middle",translation:[d,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,n=Object(r.Zb)(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===Z.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+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(),n=this.axis+"AxisID",r=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];o[n]!==this.id||t&&o.type!==t||r.push(o)}return r}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return Object(r.p)(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class tt{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,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 n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=Object(r.w)(Object.create(null),[n?r.Hb.get(n):{},r.Hb.get(e),t.defaults]);r.Hb.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),o=i.pop(),a=[t].concat(i).join("."),s=e[n].split("."),l=s.pop(),u=s.join(".");r.Hb.route(a,o,u,l)}))}(e,t.defaultRoutes);t.descriptors&&r.Hb.describe(e,t.descriptors)}(t,a,n),this.override&&r.Hb.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in r.Hb[i]&&(delete r.Hb[i][n],this.override&&delete r.v[n])}}var et=new class{constructor(){this.controllers=new tt(j,"datasets",!0),this.elements=new tt(B,"elements"),this.plugins=new tt(Object,"plugins"),this.scales=new tt(Z,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e)}remove(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e)}addControllers(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.controllers)}addElements(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.elements)}addPlugins(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.plugins)}addScales(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,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(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.controllers)}removeElements(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.elements)}removePlugins(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.plugins)}removeScales(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):Object(r.r)(e,(e=>{const r=n||this._getRegistryForType(e);this._exec(t,r,e)}))}))}_exec(t,e,n){const i=Object(r.x)(t);Object(r.d)(n["before"+i],[],n),e[t](n),Object(r.d)(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+n+".");return r}};class nt extends j{update(t){const e=this._cachedMeta,n=e.data,i=void 0===n?[]:n,o=this.chart._animationsDisabled;let a=Object(r.Ub)(e,i,o),s=a.start,l=a.count;if(this._drawStart=s,this._drawCount=l,Object(r.ac)(e)&&(s=0,l=i.length),this.options.showLine){const n=e.dataset,r=e._dataset;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:!o,options:a},t)}this.updateElements(i,s,l,t)}addElements(){const t=this.options.showLine;!this.datasetElementType&&t&&(this.datasetElementType=et.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,a=this._cachedMeta,s=a.iScale,l=a.vScale,u=a._stacked,c=a._dataset,d=this.resolveDataElementOptions(e,i),h=this.getSharedOptions(d),f=this.includeOptions(i,h),p=s.axis,m=l.axis,g=this.options,b=g.spanGaps,v=g.segment,y=Object(r.bc)(b)?b:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||o||"none"===i;let k=e>0&&this.getParsed(e-1);for(let _=e;_<e+n;++_){const e=t[_],n=this.getParsed(_),a=w?e:{},d=Object(r.Ob)(n[m]),g=a[p]=s.getPixelForValue(n[p],_),b=a[m]=o||d?l.getBasePixel():l.getPixelForValue(u?this.applyStack(l,n,u):n[m],_);a.skip=isNaN(g)||isNaN(b)||d,a.stop=_>0&&Math.abs(n[p]-k[p])>y,v&&(a.parsed=n,a.raw=c.data[_]),f&&(a.options=h||this.resolveDataElementOptions(_,e.active?"active":i)),w||this.updateElement(e,_,a,i),k=n}this.updateSharedOptions(h,i,d)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,r=n.options&&n.options.borderWidth||0;if(!e.length)return r;const i=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,i,o)/2}}nt.id="scatter",nt.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},nt.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var rt=Object.freeze({__proto__:null,BarController:L,BubbleController:I,DoughnutController:W,LineController:z,PolarAreaController:N,PieController:F,RadarController:H,ScatterController:nt});function it(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ot{constructor(t){this.options=t||{}}init(t){}formats(){return it()}parse(t,e){return it()}format(t,e){return it()}add(t,e,n){return it()}diff(t,e,n){return it()}startOf(t,e,n){return it()}endOf(t,e){return it()}}ot.override=function(t){Object.assign(ot.prototype,t)};var at={_date:ot};function st(t,e,n,i){const o=t.controller,a=t.data,s=t._sorted,l=o._cachedMeta.iScale;if(l&&e===l.axis&&"r"!==e&&s&&a.length){const t=l._reversePixels?r.z:r.A;if(!i)return t(a,e,n);if(o._sharedOptions){const r=a[0],i="function"===typeof r.getRange&&r.getRange(e);if(i){const r=t(a,e,n-i),o=t(a,e,n+i);return{lo:r.lo,hi:o.hi}}}}return{lo:0,hi:a.length-1}}function lt(t,e,n,r,i){const o=t.getSortedVisibleDatasetMetas(),a=n[e];for(let s=0,l=o.length;s<l;++s){const t=o[s],n=t.index,l=t.data,u=st(o[s],e,a,i),c=u.lo,d=u.hi;for(let e=c;e<=d;++e){const t=l[e];t.skip||r(t,n,e)}}}function ut(t,e,n,i,o){const a=[];if(!o&&!t.isPointInArea(e))return a;return lt(t,n,e,(function(n,s,l){(o||Object(r.a)(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&a.push({element:n,datasetIndex:s,index:l})}),!0),a}function ct(t,e,n,r,i,o){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){const i=e?Math.abs(t.x-r.x):0,o=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return lt(t,n,e,(function(n,u,c){const d=n.inRange(e.x,e.y,i);if(r&&!d)return;const h=n.getCenterPoint(i);if(!(!!o||t.isPointInArea(h))&&!d)return;const f=s(e,h);f<l?(a=[{element:n,datasetIndex:u,index:c}],l=f):f===l&&a.push({element:n,datasetIndex:u,index:c})})),a}function dt(t,e,n,i,o,a){return a||t.isPointInArea(e)?"r"!==n||i?ct(t,e,n,i,o,a):function(t,e,n,i){let o=[];return lt(t,n,e,(function(t,n,a){const s=t.getProps(["startAngle","endAngle"],i),l=s.startAngle,u=s.endAngle,c=Object(r.D)(t,{x:e.x,y:e.y}).angle;Object(r.Tb)(c,l,u)&&o.push({element:t,datasetIndex:n,index:a})})),o}(t,e,n,o):[]}function ht(t,e,n,r,i){const o=[],a="x"===n?"inXRange":"inYRange";let s=!1;return lt(t,n,e,((t,r,l)=>{t[a](e[n],i)&&(o.push({element:t,datasetIndex:r,index:l}),s=s||t.inRange(e.x,e.y,i))})),r&&!s?[]:o}var ft={evaluateInteractionItems:lt,modes:{index(t,e,n,i){const o=Object(r.y)(e,t),a=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?ut(t,o,a,i,s):dt(t,o,a,!1,i,s),u=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=l[0].index,n=t.data[e];n&&!n.skip&&u.push({element:n,datasetIndex:t.index,index:e})})),u):[]},dataset(t,e,n,i){const o=Object(r.y)(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?ut(t,o,a,i,s):dt(t,o,a,!1,i,s);if(l.length>0){const e=l[0].datasetIndex,n=t.getDatasetMeta(e).data;l=[];for(let t=0;t<n.length;++t)l.push({element:n[t],datasetIndex:e,index:t})}return l},point:(t,e,n,i)=>ut(t,Object(r.y)(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=Object(r.y)(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;return dt(t,o,a,n.intersect,i,s)},x:(t,e,n,i)=>ht(t,Object(r.y)(e,t),"x",n.intersect,i),y:(t,e,n,i)=>ht(t,Object(r.y)(e,t),"y",n.intersect,i)}};const pt=["left","top","right","bottom"];function mt(t,e){return t.filter((t=>t.pos===e))}function gt(t,e){return t.filter((t=>-1===pt.indexOf(t.pos)&&t.box.axis===e))}function bt(t,e){return t.sort(((t,n)=>{const r=e?n:t,i=e?t:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function vt(t,e){const n=function(t){const e={};for(const n of t){const t=n.stack,r=n.pos,i=n.stackWeight;if(!t||!pt.includes(r))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return e}(t),r=e.vBoxMaxWidth,i=e.hBoxMaxHeight;let o,a,s;for(o=0,a=t.length;o<a;++o){s=t[o];const a=s.box.fullSize,l=n[s.stack],u=l&&s.stackWeight/l.weight;s.horizontal?(s.width=u?u*r:a&&e.availableWidth,s.height=i):(s.width=r,s.height=u?u*i:a&&e.availableHeight)}return n}function yt(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function wt(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 kt(t,e,n,i){const o=n.pos,a=n.box,s=t.maxPadding;if(!Object(r.Mb)(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?a.height:a.width),n.size=e.size/e.count,t[o]+=n.size}a.getPadding&&wt(s,a.getPadding());const l=Math.max(0,e.outerWidth-yt(s,t,"left","right")),u=Math.max(0,e.outerHeight-yt(s,t,"top","bottom")),c=l!==t.w,d=u!==t.h;return t.w=l,t.h=u,n.horizontal?{same:c,other:d}:{same:d,other:c}}function _t(t,e){const n=e.maxPadding;function r(t){const r={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{r[t]=Math.max(e[t],n[t])})),r}return r(t?["left","right"]:["top","bottom"])}function Ot(t,e,n,r){const i=[];let o,a,s,l,u,c;for(o=0,a=t.length,u=0;o<a;++o){s=t[o],l=s.box,l.update(s.width||e.w,s.height||e.h,_t(s.horizontal,e));const a=kt(e,n,s,r),d=a.same,h=a.other;u|=d&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&Ot(i,e,n,r)||c}function xt(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function Et(t,e,n,i){const o=n.padding;let a=e.x,s=e.y;for(const l of t){const t=l.box,u=i[l.stack]||{count:1,placed:0,weight:1},c=l.stackWeight/u.weight||1;if(l.horizontal){const i=e.w*c,a=u.size||t.height;Object(r.Nb)(u.start)&&(s=u.start),t.fullSize?xt(t,o.left,s,n.outerWidth-o.right-o.left,a):xt(t,e.left+u.placed,s,i,a),u.start=s,u.placed+=i,s=t.bottom}else{const i=e.h*c,s=u.size||t.width;Object(r.Nb)(u.start)&&(a=u.start),t.fullSize?xt(t,a,o.top,s,n.outerHeight-o.bottom-o.top):xt(t,a,e.top+u.placed,s,i),u.start=a,u.placed+=i,a=t.right}}e.x=a,e.y=s}r.Hb.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var jt={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 n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=Object(r.l)(t.options.layout.padding),a=Math.max(e-o.width,0),s=Math.max(n-o.height,0),l=function(t){const e=function(t){const e=[];let n,r,i,o,a,s;for(n=0,r=(t||[]).length;n<r;++n){i=t[n];var l=i;o=l.position;var u=l.options;a=u.stack;var c=u.stackWeight;s=void 0===c?1:c,e.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s})}return e}(t),n=bt(e.filter((t=>t.box.fullSize)),!0),r=bt(mt(e,"left"),!0),i=bt(mt(e,"right")),o=bt(mt(e,"top"),!0),a=bt(mt(e,"bottom")),s=gt(e,"x"),l=gt(e,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:mt(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}(t.boxes),u=l.vertical,c=l.horizontal;Object(r.r)(t.boxes,(t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const d=u.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/d,hBoxMaxHeight:s/2}),f=Object.assign({},o);wt(f,Object(r.l)(i));const p=Object.assign({maxPadding:f,w:a,h:s,x:o.left,y:o.top},o),m=vt(u.concat(c),h);Ot(l.fullSize,p,h,m),Ot(u,p,h,m),Ot(c,p,h,m)&&Ot(u,p,h,m),function(t){const e=t.maxPadding;function n(n){const r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Et(l.leftAndTop,p,h,m),p.x+=p.w,p.y+=p.h,Et(l.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},Object(r.r)(l.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class St{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}isAttached(t){return!0}updateConfig(t){}}class Pt extends St{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ct="$chartjs",Tt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Mt=t=>null===t||""===t;const At=!!r.I&&{passive:!0};function Dt(t,e,n){t.canvas.removeEventListener(e,n,At)}function Rt(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Lt(t,e,n){const r=t.canvas,i=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Rt(n.addedNodes,r),e=e&&!Rt(n.removedNodes,r);e&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function It(t,e,n){const r=t.canvas,i=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Rt(n.removedNodes,r),e=e&&!Rt(n.addedNodes,r);e&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}const Wt=new Map;let zt=0;function Nt(){const t=window.devicePixelRatio;t!==zt&&(zt=t,Wt.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Ft(t,e,n){const i=t.canvas,o=i&&Object(r.F)(i);if(!o)return;const a=Object(r.H)(((t,e)=>{const r=o.clientWidth;n(t,e),r<o.clientWidth&&n()}),window),s=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||a(n,r)}));return s.observe(o),function(t,e){Wt.size||window.addEventListener("resize",Nt),Wt.set(t,e)}(t,a),s}function Ht(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Wt.delete(t),Wt.size||window.removeEventListener("resize",Nt)}(t)}function Bt(t,e,n){const i=t.canvas,o=Object(r.H)((e=>{null!==t.ctx&&n(function(t,e){const n=Tt[t.type]||t.type,i=Object(r.y)(t,e),o=i.x,a=i.y;return{type:n,chart:e,native:t,x:void 0!==o?o:null,y:void 0!==a?a:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,n){t.addEventListener(e,n,At)}(i,e,o),o}class Vt extends St{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Ct]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Mt(o)){const e=Object(r.G)(t,"width");void 0!==e&&(t.width=e)}if(Mt(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Object(r.G)(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Ct])return!1;const n=e[Ct].initial;["height","width"].forEach((t=>{const i=n[t];Object(r.Ob)(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[Ct],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),i={attach:Lt,detach:It,resize:Ft}[e]||Bt;r[e]=i(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),r=n[e];if(!r)return;({attach:Ht,detach:Ht,resize:Ht}[e]||Dt)(t,e,r),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Object(r.E)(t,e,n,i)}isAttached(t){const e=Object(r.F)(t);return!(!e||!e.isConnected)}}class qt{constructor(){this._init=[]}notify(t,e,n,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(i,t,e,n);return"afterDestroy"===e&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin,a=t[n],s=[e,i,o.options];if(!1===Object(r.d)(a,s,t)&&i.cancelable)return!1}return!0}invalidate(){Object(r.Ob)(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 n=t&&t.config,i=Object(r.Zb)(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],r=Object.keys(et.plugins.items);for(let o=0;o<r.length;o++)n.push(et.getPlugin(r[o]));const i=t.plugins||[];for(let o=0;o<i.length;o++){const t=i[o];-1===n.indexOf(t)&&(n.push(t),e[t.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,e,n,r){let i=e.plugins,o=e.localIds;const a=[],s=t.getContext();for(const l of i){const e=l.id,i=Yt(n[e],r);null!==i&&a.push({plugin:l,options:Ut(t.config,{plugin:l,local:o[e]},i,s)})}return a}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,r=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}function Yt(t,e){return e||!1!==t?!0===t?{}:t:null}function Ut(t,e,n,r){let i=e.plugin,o=e.local;const a=t.pluginScopeKeys(i),s=t.getOptionScopes(n,a);return o&&i.defaults&&s.push(i.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Gt(t,e){const n=r.Hb.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Xt(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function Jt(t){const e=t.options||(t.options={});e.plugins=Object(r.Zb)(e.plugins,{}),e.scales=function(t,e){const n=r.v[t.type]||{scales:{}},i=e.scales||{},o=Gt(t.type,e),a=Object.create(null),s=Object.create(null);return Object.keys(i).forEach((t=>{const e=i[t];if(!Object(r.Mb)(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 l=Xt(t,e),u=function(t,e){return t===e?"_index_":"_value_"}(l,o),c=n.scales||{};a[l]=a[l]||t,s[t]=Object(r.eb)(Object.create(null),[{axis:l},e,c[l],c[u]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,l=n.indexAxis||Gt(o,e),u=(r.v[o]||{}).scales||{};Object.keys(u).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,l),o=n[e+"AxisID"]||a[e]||e;s[o]=s[o]||Object.create(null),Object(r.eb)(s[o],[{axis:e},i[o],u[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];Object(r.eb)(e,[r.Hb.scales[e.type],r.Hb.scale])})),s}(t,e)}function Kt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const $t=new Map,Qt=new Set;function Zt(t,e){let n=$t.get(t);return n||(n=e(),$t.set(t,n),Qt.add(n)),n}const te=(t,e,n)=>{const i=Object(r.Jb)(e,n);void 0!==i&&t.add(i)};class ee{constructor(t){this._config=function(t){return(t=t||{}).data=Kt(t.data),Jt(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=Kt(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(),Jt(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Zt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Zt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Zt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Zt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let r=n.get(t);return r&&!e||(r=new Map,n.set(t,r)),r}getOptionScopes(t,e,n){const i=this.options,o=this.type,a=this._cachedScopes(t,n),s=a.get(e);if(s)return s;const l=new Set;e.forEach((e=>{t&&(l.add(t),e.forEach((e=>te(l,t,e)))),e.forEach((t=>te(l,i,t))),e.forEach((t=>te(l,r.v[o]||{},t))),e.forEach((t=>te(l,r.Hb,t))),e.forEach((t=>te(l,r.K,t)))}));const u=Array.from(l);return 0===u.length&&u.push(Object.create(null)),Qt.has(e)&&a.set(e,u),u}chartOptionScopes(){const t=this.options,e=this.type;return[t,r.v[e]||{},r.Hb.datasets[e]||{},{type:e},r.Hb,r.K]}resolveNamedOptions(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""];const o={$shared:!0},a=ne(this._resolverCache,t,i),s=a.resolver,l=a.subPrefixes;let u=s;if(function(t,e){const n=Object(r.db)(t),i=n.isScriptable,o=n.isIndexable;for(const a of e){const e=i(a),n=o(a),s=(n||e)&&t[a];if(e&&(Object(r.L)(s)||re(s))||n&&Object(r.Cb)(s))return!0}return!1}(s,e)){o.$shared=!1,n=Object(r.L)(n)?n():n;const e=this.createResolver(t,n,l);u=Object(r.M)(s,n,e)}for(const r of e)o[r]=u[r];return o}createResolver(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],i=arguments.length>3?arguments[3]:void 0;const o=ne(this._resolverCache,t,n).resolver;return Object(r.Mb)(e)?Object(r.M)(o,e,void 0,i):o}}function ne(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let a=i.get(o);if(!a){a={resolver:Object(r.cb)(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(o,a)}return a}const re=t=>Object(r.Mb)(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||Object(r.L)(t[n])),!1);const ie=["top","bottom","left","right","chartArea"];function oe(t,e){return"top"===t||"bottom"===t||-1===ie.indexOf(t)&&"x"===e}function ae(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function se(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Object(r.d)(n&&n.onComplete,[t],e)}function le(t){const e=t.chart,n=e.options.animation;Object(r.d)(n&&n.onProgress,[t],e)}function ue(t){return Object(r.J)()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ce={},de=t=>{const e=ue(t);return Object.values(ce).filter((t=>t.canvas===e)).pop()};function he(t,e,n){const r=Object.keys(t);for(const i of r){const r=+i;if(r>=e){const o=t[i];delete t[i],(n>0||r>e)&&(t[r+n]=o)}}}class fe{constructor(t,e){const n=this.config=new ee(e),i=ue(t),o=de(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Object(r.J)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Pt:Vt}(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,d=l&&l.width;this.id=Object(r.fb)(),this.ctx=s,this.canvas=l,this.width=d,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 qt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Object(r.gb)((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],ce[this.id]=this,s&&l?(u.listen(this,"complete",se),u.listen(this,"progress",le),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const t=this.options,e=t.aspectRatio,n=t.maintainAspectRatio,i=this.width,o=this.height,a=this._aspectRatio;return Object(r.Ob)(e)?n&&a?a:o?i/o:null:e}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():Object(r.hb)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Object(r.ib)(this.canvas,this.ctx),this}stop(){return u.stop(this),this}resize(t,e){u.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Object(r.hb)(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Object(r.d)(n.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};Object(r.r)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],r=Xt(t,n),i="r"===r,o="x"===r;return{options:n,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}})))),Object(r.r)(o,(e=>{const o=e.options,a=o.id,s=Xt(a,o),l=Object(r.Zb)(o.type,e.dtype);void 0!==o.position&&oe(o.position,s)===oe(e.dposition)||(o.position=e.dposition),i[a]=!0;let u=null;if(a in n&&n[a].type===l)u=n[a];else{u=new(et.getScale(l))({id:a,type:l,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(o,t)})),Object(r.r)(i,((t,e)=>{t||delete n[e]})),Object(r.r)(n,(t=>{jt.configure(this,t,t.options),jt.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(ae("order","index"))}_removeUnreferencedMetasets(){const t=this._metasets,e=this.data.datasets;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=i.indexAxis||Gt(a,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=et.getController(a),i=r.Hb.datasets[a],s=i.datasetElementType,l=i.dataElementType;Object.assign(e.prototype,{dataElementType:et.getElement(l),datasetElementType:s&&et.getElement(s)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Object(r.r)(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 n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let r=0,u=this.data.datasets.length;r<u;r++){const t=this.getDatasetMeta(r).controller,e=!i&&-1===o.indexOf(t);t.buildOrUpdateElements(e),a=Math.max(+t.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||Object(r.r)(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ae("z","_idx"));const s=this._active,l=this._lastEvent;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Object(r.r)(this.scales,(t=>{jt.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);Object(r.jb)(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const t=this._hiddenIndices,e=this._getUniformDataChanges()||[];for(const n of e){const e=n.method,r=n.start,i=n.count;he(t,r,"_removeElements"===e?-i:i)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let o=1;o<e;o++)if(!Object(r.jb)(i,n(o)))return;return Array.from(i).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;jt.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Object(r.r)(this.boxes,(t=>{n&&"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,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,Object(r.L)(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(u.has(this)?this.attached&&!u.running(this)&&u.start(this):(this.draw(),se({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const t=this._resizeBeforeDraw,e=t.width,n=t.height;this._resize(e,n),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,n=[];let r,i;for(r=0,i=e.length;r<i;++r){const i=e[r];t&&!i.visible||n.push(i)}return n}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,n=t._clip,i=!n.disabled,o=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&Object(r.m)(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&Object(r.o)(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Object(r.a)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){const i=ft.modes[e];return"function"===typeof i?i(this,t,n,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let r=n.filter((t=>t&&t._dataset===e)).pop();return r||(r={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},n.push(r)),r}getContext(){return this.$context||(this.$context=Object(r.Lb)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"===typeof n.hidden?!n.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,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);Object(r.Nb)(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(o,{visible:n}),this.update((e=>e.datasetIndex===t?i: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(),u.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const t=this.canvas,e=this.ctx;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Object(r.ib)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete ce[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(){return this.canvas.toDataURL(...arguments)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};Object(r.r)(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(n,r)=>{t[n]&&(e.removeEventListener(this,n,r),delete t[n])},i=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){Object(r.r)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Object(r.r)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const r=n?"set":"remove";let i,o,a,s;for("dataset"===e&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((t=>{let e=t.datasetIndex,n=t.index;const r=this.getDatasetMeta(e);if(!r)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:r.data[n],index:n}}));!Object(r.kb)(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const r=this.options.hover,i=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=i(e,t),a=n?t:i(t,e);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const i=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(t,e,n){const i=this._active,o=void 0===i?[]:i,a=this.options,s=e,l=this._getActiveElements(t,o,n,s),u=Object(r.lb)(t),c=function(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}(t,this._lastEvent,n,u);n&&(this._lastEvent=null,Object(r.d)(a.onHover,[t,l,this],this),u&&Object(r.d)(a.onClick,[t,l,this],this));const d=!Object(r.kb)(l,o);return(d||e)&&(this._active=l,this._updateHoverStyles(l,o,e)),this._lastEvent=c,d}_getActiveElements(t,e,n,r){if("mouseout"===t.type)return[];if(!n)return e;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}const pe=()=>Object(r.r)(fe.instances,(t=>t._plugins.invalidate())),me=!0;function ge(t,e,n){const i=e.startAngle,o=e.pixelMargin,a=e.x,s=e.y,l=e.outerRadius,u=e.innerRadius;let c=o/l;t.beginPath(),t.arc(a,s,l,i-c,n+c),u>o?(c=o/u,t.arc(a,s,u,n+c,i-c,!0)):t.arc(a,s,o,n+r.i,i-r.i),t.closePath(),t.clip()}function be(t,e,n,i){const o=(a=t.options.borderRadius,Object(r.nb)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const s=(n-e)/2,l=Math.min(s,i*e/2),u=t=>{const e=(n-Math.min(s,t))*i/2;return Object(r.f)(t,0,Math.min(s,e))};return{outerStart:u(o.outerStart),outerEnd:u(o.outerEnd),innerStart:Object(r.f)(o.innerStart,0,l),innerEnd:Object(r.f)(o.innerEnd,0,l)}}function ve(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function ye(t,e,n,i,o,a){const s=e.x,l=e.y,u=e.startAngle,c=e.pixelMargin,d=e.innerRadius,h=Math.max(e.outerRadius+i+n-c,0),f=d>0?d+i+n+c:0;let p=0;const m=o-u;if(i){const t=((d>0?d-i:0)+(h>0?h-i:0))/2;p=(m-(0!==t?m*t/(t+i):m))/2}const g=(m-Math.max(.001,m*h-n/r.q)/h)/2,b=u+g+p,v=o-g-p,y=be(e,f,h,v-b),w=y.outerStart,k=y.outerEnd,_=y.innerStart,O=y.innerEnd,x=h-w,E=h-k,j=b+w/x,S=v-k/E,P=f+_,C=f+O,T=b+_/P,M=v-O/C;if(t.beginPath(),a){if(t.arc(s,l,h,j,S),k>0){const e=ve(E,S,s,l);t.arc(e.x,e.y,k,S,v+r.i)}const e=ve(C,v,s,l);if(t.lineTo(e.x,e.y),O>0){const e=ve(C,M,s,l);t.arc(e.x,e.y,O,v+r.i,M+Math.PI)}if(t.arc(s,l,f,v-O/f,b+_/f,!0),_>0){const e=ve(P,T,s,l);t.arc(e.x,e.y,_,T+Math.PI,b-r.i)}const n=ve(x,b,s,l);if(t.lineTo(n.x,n.y),w>0){const e=ve(x,j,s,l);t.arc(e.x,e.y,w,b-r.i,j)}}else{t.moveTo(s,l);const e=Math.cos(j)*h+s,n=Math.sin(j)*h+l;t.lineTo(e,n);const r=Math.cos(S)*h+s,i=Math.sin(S)*h+l;t.lineTo(r,i)}t.closePath()}function we(t,e,n,i,o,a){const s=e.options,l=s.borderWidth,u=s.borderJoinStyle,c="inner"===s.borderAlign;l&&(c?(t.lineWidth=2*l,t.lineJoin=u||"round"):(t.lineWidth=l,t.lineJoin=u||"bevel"),e.fullCircles&&function(t,e,n){const i=e.x,o=e.y,a=e.startAngle,s=e.pixelMargin,l=e.fullCircles,u=Math.max(e.outerRadius-s,0),c=e.innerRadius+s;let d;for(n&&ge(t,e,a+r.u),t.beginPath(),t.arc(i,o,c,a+r.u,a,!0),d=0;d<l;++d)t.stroke();for(t.beginPath(),t.arc(i,o,u,a,a+r.u),d=0;d<l;++d)t.stroke()}(t,e,c),c&&ge(t,e,o),ye(t,e,n,i,o,a),t.stroke())}Object.defineProperties(fe,{defaults:{enumerable:me,value:r.Hb},instances:{enumerable:me,value:ce},overrides:{enumerable:me,value:r.v},registry:{enumerable:me,value:et},version:{enumerable:me,value:"3.9.1"},getChart:{enumerable:me,value:de},register:{enumerable:me,value:function(){et.add(...arguments),pe()}},unregister:{enumerable:me,value:function(){et.remove(...arguments),pe()}}});class ke extends B{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,n){const i=this.getProps(["x","y"],n),o=Object(r.D)(i,{x:t,y:e}),a=o.angle,s=o.distance,l=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),u=l.startAngle,c=l.endAngle,d=l.innerRadius,h=l.outerRadius,f=l.circumference,p=this.options.spacing/2,m=Object(r.Zb)(f,c-u)>=r.u||Object(r.Tb)(a,u,c),g=Object(r.mb)(s,d+p,h+p);return m&&g}getCenterPoint(t){const e=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),n=e.x,r=e.y,i=e.startAngle,o=e.endAngle,a=e.innerRadius,s=e.outerRadius,l=this.options,u=l.offset,c=(i+o)/2,d=(a+s+l.spacing+u)/2;return{x:n+Math.cos(c)*d,y:r+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const e=this.options,n=this.circumference,i=(e.offset||0)/2,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>r.u?Math.floor(n/r.u):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let s=0;if(i){s=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*s,Math.sin(e)*s),this.circumference>=r.q&&(s=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const l=function(t,e,n,i,o){const a=e.fullCircles,s=e.startAngle,l=e.circumference;let u=e.endAngle;if(a){ye(t,e,n,i,s+r.u,o);for(let e=0;e<a;++e)t.fill();isNaN(l)||(u=s+l%r.u,l%r.u===0&&(u+=r.u))}return ye(t,e,n,i,u,o),t.fill(),u}(t,this,s,o,a);we(t,this,s,o,l,a),t.restore()}}function _e(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;t.lineCap=Object(r.Zb)(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Object(r.Zb)(n.borderDash,e.borderDash)),t.lineDashOffset=Object(r.Zb)(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Object(r.Zb)(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Object(r.Zb)(n.borderWidth,e.borderWidth),t.strokeStyle=Object(r.Zb)(n.borderColor,e.borderColor)}function Oe(t,e,n){t.lineTo(n.x,n.y)}function xe(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.length,i=n.start,o=void 0===i?0:i,a=n.end,s=void 0===a?r-1:a,l=e.start,u=e.end,c=Math.max(o,l),d=Math.min(s,u),h=o<l&&s<l||o>u&&s>u;return{count:r,start:c,loop:e.loop,ilen:d<c&&!h?r+d-c:d-c}}function Ee(t,e,n,i){const o=e.points,a=e.options,s=xe(o,n,i),l=s.count,u=s.start,c=s.loop,d=s.ilen,h=function(t){return t.stepped?r.ub:t.tension||"monotone"===t.cubicInterpolationMode?r.vb:Oe}(a);let f,p,m,g=i||{},b=g.move,v=void 0===b||b,y=g.reverse;for(f=0;f<=d;++f)p=o[(u+(y?d-f:f))%l],p.skip||(v?(t.moveTo(p.x,p.y),v=!1):h(t,m,p,y,a.stepped),m=p);return c&&(p=o[(u+(y?d:0))%l],h(t,m,p,y,a.stepped)),!!c}function je(t,e,n,r){const i=e.points,o=xe(i,n,r),a=o.count,s=o.start,l=o.ilen,u=r||{},c=u.move,d=void 0===c||c,h=u.reverse;let f,p,m,g,b,v,y=0,w=0;const k=t=>(s+(h?l-t:t))%a,_=()=>{g!==b&&(t.lineTo(y,b),t.lineTo(y,g),t.lineTo(y,v))};for(d&&(p=i[k(0)],t.moveTo(p.x,p.y)),f=0;f<=l;++f){if(p=i[k(f)],p.skip)continue;const e=p.x,n=p.y,r=0|e;r===m?(n<g?g=n:n>b&&(b=n),y=(w*y+e)/++w):(_(),t.lineTo(e,n),m=r,w=0,g=b=n),v=n}_()}function Se(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!n?je:Ee}ke.id="arc",ke.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},ke.defaultRoutes={backgroundColor:"backgroundColor"};const Pe="function"===typeof Path2D;function Ce(t,e,n,r){Pe&&!e.options.segment?function(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),_e(t,e.options),t.stroke(i)}(t,e,n,r):function(t,e,n,r){const i=e.segments,o=e.options,a=Se(e);for(const s of i)_e(t,o,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}(t,e,n,r)}class Te extends B{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 n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Object(r.ob)(this._points,n,t,i,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=Object(r.pb)(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,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,a=Object(r.qb)(this,{property:e,start:i,end:i});if(!a.length)return;const s=[],l=function(t){return t.stepped?r.rb:t.tension||"monotone"===t.cubicInterpolationMode?r.sb:r.tb}(n);let u,c;for(u=0,c=a.length;u<c;++u){const r=a[u],c=r.start,d=r.end,h=o[c],f=o[d];if(h===f){s.push(h);continue}const p=l(h,f,Math.abs((i-h[e])/(f[e]-h[e])),n.stepped);p[e]=t[e],s.push(p)}return 1===s.length?s[0]:s}pathSegment(t,e,n){return Se(this)(t,this,e,n)}path(t,e,n){const r=this.segments,i=Se(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const a of r)o&=i(t,this,a,{start:e,end:e+n-1});return!!o}draw(t,e,n,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),Ce(t,this,n,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Me(t,e,n,r){const i=t.options,o=t.getProps([n],r)[n];return Math.abs(e-o)<i.radius+i.hitRadius}Te.id="line",Te.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Te.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Te.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Ae extends B{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,n){const r=this.options,i=this.getProps(["x","y"],n),o=i.x,a=i.y;return Math.pow(t-o,2)+Math.pow(e-a,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,e){return Me(this,t,"x",e)}inYRange(t,e){return Me(this,t,"y",e)}getCenterPoint(t){const e=this.getProps(["x","y"],t);return{x:e.x,y:e.y}}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 n=this.options;this.skip||n.radius<.1||!Object(r.a)(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Object(r.wb)(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function De(t,e){const n=t.getProps(["x","y","base","width","height"],e),r=n.x,i=n.y,o=n.base,a=n.width,s=n.height;let l,u,c,d,h;return t.horizontal?(h=s/2,l=Math.min(r,o),u=Math.max(r,o),c=i-h,d=i+h):(h=a/2,l=r-h,u=r+h,c=Math.min(i,o),d=Math.max(i,o)),{left:l,top:c,right:u,bottom:d}}function Re(t,e,n,i){return t?0:Object(r.f)(e,n,i)}function Le(t){const e=De(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,a=Object(r.yb)(i);return{t:Re(o.top,a.top,0,n),r:Re(o.right,a.right,0,e),b:Re(o.bottom,a.bottom,0,n),l:Re(o.left,a.left,0,e)}}(t,n/2,i/2),a=function(t,e,n){const i=t.getProps(["enableBorderRadius"]).enableBorderRadius,o=t.options.borderRadius,a=Object(r.zb)(o),s=Math.min(e,n),l=t.borderSkipped,u=i||Object(r.Mb)(o);return{topLeft:Re(!u||l.top||l.left,a.topLeft,0,s),topRight:Re(!u||l.top||l.right,a.topRight,0,s),bottomLeft:Re(!u||l.bottom||l.left,a.bottomLeft,0,s),bottomRight:Re(!u||l.bottom||l.right,a.bottomRight,0,s)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function Ie(t,e,n,i){const o=null===e,a=null===n,s=t&&!(o&&a)&&De(t,i);return s&&(o||Object(r.mb)(e,s.left,s.right))&&(a||Object(r.mb)(n,s.top,s.bottom))}function We(t,e){t.rect(e.x,e.y,e.w,e.h)}function ze(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-r,a=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+r,y:t.y+i,w:t.w+o,h:t.h+a,radius:t.radius}}Ae.id="point",Ae.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Ae.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Ne extends B{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 e=this.inflateAmount,n=this.options,i=n.borderColor,o=n.backgroundColor,a=Le(this),s=a.inner,l=a.outer,u=(c=l.radius).topLeft||c.topRight||c.bottomLeft||c.bottomRight?r.xb:We;var c;t.save(),l.w===s.w&&l.h===s.h||(t.beginPath(),u(t,ze(l,e,s)),t.clip(),u(t,ze(s,-e,l)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),u(t,ze(s,e)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,e,n){return Ie(this,t,e,n)}inXRange(t,e){return Ie(this,t,null,e)}inYRange(t,e){return Ie(this,null,t,e)}getCenterPoint(t){const e=this.getProps(["x","y","base","horizontal"],t),n=e.x,r=e.y,i=e.base,o=e.horizontal;return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Ne.id="bar",Ne.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Ne.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Fe=Object.freeze({__proto__:null,ArcElement:ke,LineElement:Te,PointElement:Ae,BarElement:Ne});function He(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Be(t){t.data.datasets.forEach((t=>{He(t)}))}var Ve={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void Be(t);const i=t.width;t.data.datasets.forEach(((e,a)=>{const s=e._data,l=e.indexAxis,u=t.getDatasetMeta(a),c=s||e.data;if("y"===Object(r.C)([l,t.options.indexAxis]))return;if(!u.controller.supportsDecimation)return;const d=t.scales[u.xAxisID];if("linear"!==d.type&&"time"!==d.type)return;if(t.options.parsing)return;let h=function(t,e){const n=e.length;let i,o=0;const a=t.iScale,s=a.getUserBounds(),l=s.min,u=s.max,c=s.minDefined,d=s.maxDefined;return c&&(o=Object(r.f)(Object(r.A)(e,a.axis,l).lo,0,n-1)),i=d?Object(r.f)(Object(r.A)(e,a.axis,u).hi+1,o,n)-o:n-o,{start:o,count:i}}(u,c),f=h.start,p=h.count;if(p<=(n.threshold||4*i))return void He(e);let m;switch(Object(r.Ob)(s)&&(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}})),n.algorithm){case"lttb":m=function(t,e,n,r,i){const o=i.samples||r;if(o>=n)return t.slice(e,e+n);const a=[],s=(n-2)/(o-2);let l=0;const u=e+n-1;let c,d,h,f,p,m=e;for(a[l++]=t[m],c=0;c<o-2;c++){let r,i=0,o=0;const u=Math.floor((c+1)*s)+1+e,g=Math.min(Math.floor((c+2)*s)+1,n)+e,b=g-u;for(r=u;r<g;r++)i+=t[r].x,o+=t[r].y;i/=b,o/=b;const v=Math.floor(c*s)+1+e,y=Math.min(Math.floor((c+1)*s)+1,n)+e,w=t[m],k=w.x,_=w.y;for(h=f=-1,r=v;r<y;r++)f=.5*Math.abs((k-i)*(t[r].y-_)-(k-t[r].x)*(o-_)),f>h&&(h=f,d=t[r],p=r);a[l++]=d,m=p}return a[l++]=t[u],a}(c,f,p,i,n);break;case"min-max":m=function(t,e,n,i){let a,s,l,u,c,d,h,f,p,m,g=0,b=0;const v=[],y=e+n-1,w=t[e].x,k=t[y].x-w;for(a=e;a<e+n;++a){s=t[a],l=(s.x-w)/k*i,u=s.y;const e=0|l;if(e===c)u<p?(p=u,d=a):u>m&&(m=u,h=a),g=(b*g+s.x)/++b;else{const n=a-1;if(!Object(r.Ob)(d)&&!Object(r.Ob)(h)){const e=Math.min(d,h),r=Math.max(d,h);e!==f&&e!==n&&v.push(o(o({},t[e]),{},{x:g})),r!==f&&r!==n&&v.push(o(o({},t[r]),{},{x:g}))}a>0&&n!==f&&v.push(t[n]),v.push(s),c=e,b=0,p=m=u,d=h=f=a}}return v}(c,f,p,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=m}))},destroy(t){Be(t)}};function qe(t,e,n,i){if(i)return;let o=e[t],a=n[t];return"angle"===t&&(o=Object(r.Bb)(o),a=Object(r.Bb)(a)),{property:t,start:o,end:a}}function Ye(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Ue(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function Ge(t,e){let n=[],i=!1;return Object(r.Cb)(t)?(i=!0,n=t):n=function(t,e){const n=t||{},r=n.x,i=void 0===r?null:r,o=n.y,a=void 0===o?null:o,s=e.points,l=[];return e.segments.forEach((t=>{let e=t.start,n=t.end;n=Ye(e,n,s);const r=s[e],o=s[n];null!==a?(l.push({x:r.x,y:a}),l.push({x:o.x,y:a})):null!==i&&(l.push({x:i,y:r.y}),l.push({x:i,y:o.y}))})),l}(t,e),n.length?new Te({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function Xe(t){return t&&!1!==t.fill}function Je(t,e,n){let i=t[e].fill;const o=[e];let a;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!Object(r.Kb)(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function Ke(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=Object(r.Zb)(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if(Object(r.Mb)(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return Object(r.Kb)(o)&&Math.floor(o)===o?function(t,e,n,r){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=r)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function $e(t,e,n){const r=[];for(let i=0;i<n.length;i++){const o=Qe(n[i],e,"x"),a=o.first,s=o.last,l=o.point;if(!(!l||a&&s))if(a)r.unshift(l);else if(t.push(l),!s)break}t.push(...r)}function Qe(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],a=t.segments,s=t.points;let l=!1,u=!1;for(let c=0;c<a.length;c++){const t=a[c],e=s[t.start][n],i=s[t.end][n];if(Object(r.mb)(o,e,i)){l=o===e,u=o===i;break}}return{first:l,last:u,point:i}}class Ze{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const i=this.x,o=this.y,a=this.radius;return e=e||{start:0,end:r.u},t.arc(i,o,a,e.end,e.start,!0),!n.bounds}interpolate(t){const e=this.x,n=this.y,r=this.radius,i=t.angle;return{x:e+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}function tn(t){const e=t.chart,n=t.fill,i=t.line;if(Object(r.Kb)(n))return function(t,e){const n=t.getDatasetMeta(e),r=n&&t.isDatasetVisible(e);return r?n.dataset:null}(e,n);if("stack"===n)return function(t){const e=t.scale,n=t.index,r=t.line,i=[],o=r.segments,a=r.points,s=function(t,e){const n=[],r=t.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const t=r[i];if(t.index===e)break;t.hidden||n.unshift(t.dataset)}return n}(e,n);s.push(Ge({x:null,y:e.bottom},r));for(let l=0;l<o.length;l++){const t=o[l];for(let e=t.start;e<=t.end;e++)$e(i,a[e],s)}return new Te({points:i,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const e=t.scale,n=t.fill,i=e.options,o=e.getLabels().length,a=i.reverse?e.max:e.min,s=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:Object(r.Mb)(t)?t.value:e.getBaseValue(),i}(n,e,a),l=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,a);return new Ze({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(s)})}for(let r=0;r<o;++r)l.push(e.getPointPositionForValue(r,s));return l}(t);return function(t){const e=t.scale,n=void 0===e?{}:e,i=t.fill,o=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:Object(r.Mb)(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(i,n);if(Object(r.Kb)(o)){const t=n.isHorizontal();return{x:t?o:null,y:t?null:o}}return null}(t)}(t);return o instanceof Ze?o:Ge(o,i)}function en(t,e,n){const i=tn(e),o=e.line,a=e.scale,s=e.axis,l=o.options,u=l.fill,c=l.backgroundColor,d=u||{},h=d.above,f=void 0===h?c:h,p=d.below,m=void 0===p?c:p;i&&o.points.length&&(Object(r.m)(t,n),function(t,e){const n=e.line,r=e.target,i=e.above,o=e.below,a=e.area,s=e.scale,l=n._loop?"angle":e.axis;t.save(),"x"===l&&o!==i&&(nn(t,r,a.top),rn(t,{line:n,target:r,color:i,scale:s,property:l}),t.restore(),t.save(),nn(t,r,a.bottom));rn(t,{line:n,target:r,color:o,scale:s,property:l}),t.restore()}(t,{line:o,target:i,above:f,below:m,area:n,scale:a,axis:s}),Object(r.o)(t))}function nn(t,e,n){const r=e.segments,i=e.points;let o=!0,a=!1;t.beginPath();for(const s of r){const r=s.start,l=s.end,u=i[r],c=i[Ye(r,l,i)];o?(t.moveTo(u.x,u.y),o=!1):(t.lineTo(u.x,n),t.lineTo(u.x,u.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(c.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function rn(t,e){const n=e.line,i=e.target,o=e.property,a=e.color,s=e.scale,l=function(t,e,n){const i=t.segments,o=t.points,a=e.points,s=[];for(const l of i){let t=l.start,i=l.end;i=Ye(t,i,o);const u=qe(n,o[t],o[i],l.loop);if(!e.segments){s.push({source:l,target:u,start:o[t],end:o[i]});continue}const c=Object(r.qb)(e,u);for(const e of c){const t=qe(n,a[e.start],a[e.end],e.loop),i=Object(r.Ab)(l,o,t);for(const r of i)s.push({source:r,target:e,start:{[n]:Ue(u,t,"start",Math.max)},end:{[n]:Ue(u,t,"end",Math.min)}})}}return s}(n,i,o);for(const r of l){const e=r.source,l=r.target,u=r.start,c=r.end,d=e.style,h=(void 0===d?{}:d).backgroundColor,f=void 0===h?a:h,p=!0!==i;t.save(),t.fillStyle=f,on(t,s,p&&qe(o,u,c)),t.beginPath();const m=!!n.pathSegment(t,e);let g;if(p){m?t.closePath():an(t,i,c,o);const e=!!i.pathSegment(t,l,{move:m,reverse:!0});g=m&&e,g||an(t,i,u,o)}t.closePath(),t.fill(g?"evenodd":"nonzero"),t.restore()}}function on(t,e,n){const r=e.chart.chartArea,i=r.top,o=r.bottom,a=n||{},s=a.property,l=a.start,u=a.end;"x"===s&&(t.beginPath(),t.rect(l,i,u-l,o-i),t.clip())}function an(t,e,n,r){const i=e.interpolate(n,r);i&&t.lineTo(i.x,i.y)}var sn={id:"filler",afterDatasetsUpdate(t,e,n){const r=(t.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=t.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof Te&&(l={visible:t.isDatasetVisible(a),index:a,fill:Ke(s,a,r),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],l&&!1!==l.fill&&(l.fill=Je(i,a,n.propagate))},beforeDraw(t,e,n){const r="beforeDraw"===n.drawTime,i=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let a=i.length-1;a>=0;--a){const e=i[a].$filler;e&&(e.line.updateControlPoints(o,e.axis),r&&e.fill&&en(t.ctx,e,o))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=t.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const e=r[i].$filler;Xe(e)&&en(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;Xe(r)&&"beforeDatasetDraw"===n.drawTime&&en(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ln=(t,e)=>{let n=t.boxHeight,r=void 0===n?e:n,i=t.boxWidth,o=void 0===i?e:i;return t.usePointStyle&&(r=Math.min(r,e),o=t.pointStyleWidth||Math.min(o,e)),{boxWidth:o,boxHeight:r,itemHeight:Math.max(e,r)}};class un extends B{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,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,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=Object(r.d)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const t=this.options,e=this.ctx;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=Object(r.p)(n.font),o=i.size,a=this._computeTitleHeight(),s=ln(n,o),l=s.boxWidth,u=s.itemHeight;let c,d;e.font=i.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,l,u)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,u)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,r){const i=this.ctx,o=this.maxWidth,a=this.options.labels.padding,s=this.legendHitBoxes=[],l=this.lineWidths=[0],u=r+a;let c=t;i.textAlign="left",i.textBaseline="middle";let d=-1,h=-u;return this.legendItems.forEach(((t,f)=>{const p=n+e/2+i.measureText(t.text).width;(0===f||l[l.length-1]+p+2*a>o)&&(c+=u,l[l.length-(f>0?0:1)]=0,h+=u,d++),s[f]={left:0,top:h,row:d,width:p,height:r},l[l.length-1]+=p+a})),c}_fitCols(t,e,n,r){const i=this.ctx,o=this.maxHeight,a=this.options.labels.padding,s=this.legendHitBoxes=[],l=this.columnSizes=[],u=o-t;let c=a,d=0,h=0,f=0,p=0;return this.legendItems.forEach(((t,o)=>{const m=n+e/2+i.measureText(t.text).width;o>0&&h+r+2*a>u&&(c+=d+a,l.push({width:d,height:h}),f+=d+a,p++,d=h=0),s[o]={left:f,top:h,col:p,width:m,height:r},d=Math.max(d,m),h+=r+a})),c+=d,l.push({width:d,height:h}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),e=this.legendHitBoxes,n=this.options,i=n.align,o=n.labels.padding,a=n.rtl,s=Object(r.N)(a,this.left,this.width);if(this.isHorizontal()){let n=0,a=Object(r.t)(i,this.left+o,this.right-this.lineWidths[n]);for(const l of e)n!==l.row&&(n=l.row,a=Object(r.t)(i,this.left+o,this.right-this.lineWidths[n])),l.top+=this.top+t+o,l.left=s.leftForLtr(s.x(a),l.width),a+=l.width+o}else{let n=0,a=Object(r.t)(i,this.top+t+o,this.bottom-this.columnSizes[n].height);for(const l of e)l.col!==n&&(n=l.col,a=Object(r.t)(i,this.top+t+o,this.bottom-this.columnSizes[n].height)),l.top=a,l.left+=this.left+o,l.left=s.leftForLtr(s.x(l.left),l.width),a+=l.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Object(r.m)(t,this),this._draw(),Object(r.o)(t)}}_draw(){const t=this.options,e=this.columnSizes,n=this.lineWidths,i=this.ctx,o=t.align,a=t.labels,s=r.Hb.color,l=Object(r.N)(t.rtl,this.left,this.width),u=Object(r.p)(a.font),c=a.color,d=a.padding,h=u.size,f=h/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const m=ln(a,h),g=m.boxWidth,b=m.boxHeight,v=m.itemHeight,y=this.isHorizontal(),w=this._computeTitleHeight();p=y?{x:Object(r.t)(o,this.left+d,this.right-n[0]),y:this.top+d+w,line:0}:{x:this.left+d,y:Object(r.t)(o,this.top+w+d,this.bottom-e[0].height),line:0},Object(r.O)(this.ctx,t.textDirection);const k=v+d;this.legendItems.forEach(((m,_)=>{i.strokeStyle=m.fontColor||c,i.fillStyle=m.fontColor||c;const O=i.measureText(m.text).width,x=l.textAlign(m.textAlign||(m.textAlign=a.textAlign)),E=g+f+O;let j=p.x,S=p.y;l.setWidth(this.width),y?_>0&&j+E+d>this.right&&(S=p.y+=k,p.line++,j=p.x=Object(r.t)(o,this.left+d,this.right-n[p.line])):_>0&&S+k>this.bottom&&(j=p.x=j+e[p.line].width+d,p.line++,S=p.y=Object(r.t)(o,this.top+w+d,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(g)||g<=0||isNaN(b)||b<0)return;i.save();const o=Object(r.Zb)(n.lineWidth,1);if(i.fillStyle=Object(r.Zb)(n.fillStyle,s),i.lineCap=Object(r.Zb)(n.lineCap,"butt"),i.lineDashOffset=Object(r.Zb)(n.lineDashOffset,0),i.lineJoin=Object(r.Zb)(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=Object(r.Zb)(n.strokeStyle,s),i.setLineDash(Object(r.Zb)(n.lineDash,[])),a.usePointStyle){const s={radius:b*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},u=l.xPlus(t,g/2),c=e+f;Object(r.R)(i,s,u,c,a.pointStyleWidth&&g)}else{const a=e+Math.max((h-b)/2,0),s=l.leftForLtr(t,g),u=Object(r.zb)(n.borderRadius);i.beginPath(),Object.values(u).some((t=>0!==t))?Object(r.xb)(i,{x:s,y:a,w:g,h:b,radius:u}):i.rect(s,a,g,b),i.fill(),0!==o&&i.stroke()}i.restore()}(l.x(j),S,m),j=Object(r.P)(x,j+g+f,y?j+E:this.right,t.rtl),function(t,e,n){Object(r.n)(i,n.text,t,e+v/2,u,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(j),S,m),y?p.x+=E+d:p.y+=k})),Object(r.Q)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=Object(r.p)(e.font),i=Object(r.l)(e.padding);if(!e.display)return;const o=Object(r.N)(t.rtl,this.left,this.width),a=this.ctx,s=e.position,l=n.size/2,u=i.top+l;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,d=Object(r.t)(t.align,d,this.right-h);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=u+Object(r.t)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=Object(r.t)(s,d,d+h);a.textAlign=o.textAlign(Object(r.s)(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=n.string,Object(r.n)(a,e.text,f,c,n)}_computeTitleHeight(){const t=this.options.title,e=Object(r.p)(t.font),n=Object(r.l)(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(Object(r.mb)(t,this.left,this.right)&&Object(r.mb)(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],Object(r.mb)(t,i.left,i.left+i.width)&&Object(r.mb)(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const a=this._hoveredItem,s=(o=n,null!==(i=a)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);a&&!s&&Object(r.d)(e.onLeave,[t,a,this],this),this._hoveredItem=n,n&&!s&&Object(r.d)(e.onHover,[t,n,this],this)}else n&&Object(r.d)(e.onClick,[t,n,this],this);var i,o}}var cn={id:"legend",_element:un,start(t,e,n){const r=t.legend=new un({ctx:t.ctx,options:n,chart:t});jt.configure(t,r,n),jt.addBox(t,r)},stop(t){jt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;jt.configure(t,r,n),r.options=n},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,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),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,n=t.legend.options.labels,i=n.usePointStyle,o=n.pointStyle,a=n.textAlign,s=n.color;return t._getSortedDatasetMetas().map((t=>{const n=t.controller.getStyle(i?0:void 0),l=Object(r.l)(n.borderWidth);return{text:e[t.index].label,fillStyle:n.backgroundColor,fontColor:s,hidden:!t.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:n.borderColor,pointStyle:o||n.pointStyle,rotation:n.rotation,textAlign:a||n.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 dn extends B{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 n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=Object(r.Cb)(n.text)?n.text.length:1;this._padding=Object(r.l)(n.padding);const o=i*Object(r.p)(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const e=this.top,n=this.left,i=this.bottom,o=this.right,a=this.options,s=a.align;let l,u,c,d=0;return this.isHorizontal()?(u=Object(r.t)(s,n,o),c=e+t,l=o-n):("left"===a.position?(u=n+t,c=Object(r.t)(s,i,e),d=-.5*r.q):(u=o-t,c=Object(r.t)(s,e,i),d=.5*r.q),l=i-e),{titleX:u,titleY:c,maxWidth:l,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=Object(r.p)(e.font),i=n.lineHeight/2+this._padding.top,o=this._drawArgs(i),a=o.titleX,s=o.titleY,l=o.maxWidth,u=o.rotation;Object(r.n)(t,e.text,0,0,n,{color:e.color,maxWidth:l,rotation:u,textAlign:Object(r.s)(e.align),textBaseline:"middle",translation:[a,s]})}}var hn={id:"title",_element:dn,start(t,e,n){!function(t,e){const n=new dn({ctx:t.ctx,options:e,chart:t});jt.configure(t,n,e),jt.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;jt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;jt.configure(t,r,n),r.options=n},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 fn=new WeakMap;var pn={id:"subtitle",start(t,e,n){const r=new dn({ctx:t.ctx,options:n,chart:t});jt.configure(t,r,n),jt.addBox(t,r),fn.set(t,r)},stop(t){jt.removeBox(t,fn.get(t)),fn.delete(t)},beforeUpdate(t,e,n){const r=fn.get(t);jt.configure(t,r,n),r.options=n},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 mn={average(t){if(!t.length)return!1;let e,n,r=0,i=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();r+=t.x,i+=t.y,++o}}return{x:r/o,y:i/o}},nearest(t,e){if(!t.length)return!1;let n,i,o,a=e.x,s=e.y,l=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=i.getCenterPoint(),n=Object(r.T)(e,t);n<l&&(l=n,o=i)}}if(o){const t=o.tooltipPosition();a=t.x,s=t.y}return{x:a,y:s}}};function gn(t,e){return e&&(Object(r.Cb)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function bn(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function vn(t,e){const n=e.element,r=e.datasetIndex,i=e.index,o=t.getDatasetMeta(r).controller,a=o.getLabelAndValue(i),s=a.label,l=a.value;return{chart:t,label:s,parsed:o.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:l,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function yn(t,e){const n=t.chart.ctx,i=t.body,o=t.footer,a=t.title,s=e.boxWidth,l=e.boxHeight,u=Object(r.p)(e.bodyFont),c=Object(r.p)(e.titleFont),d=Object(r.p)(e.footerFont),h=a.length,f=o.length,p=i.length,m=Object(r.l)(e.padding);let g=m.height,b=0,v=i.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(l,u.lineHeight):u.lineHeight)+(v-p)*u.lineHeight+(v-1)*e.bodySpacing}f&&(g+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let y=0;const w=function(t){b=Math.max(b,n.measureText(t).width+y)};return n.save(),n.font=c.string,Object(r.r)(t.title,w),n.font=u.string,Object(r.r)(t.beforeBody.concat(t.afterBody),w),y=e.displayColors?s+2+e.boxPadding:0,Object(r.r)(i,(t=>{Object(r.r)(t.before,w),Object(r.r)(t.lines,w),Object(r.r)(t.after,w)})),y=0,n.font=d.string,Object(r.r)(t.footer,w),n.restore(),b+=m.width,{width:b,height:g}}function wn(t,e,n,r){const i=n.x,o=n.width,a=t.width,s=t.chartArea,l=s.left,u=s.right;let c="center";return"center"===r?c=i<=(l+u)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),function(t,e,n,r){const i=r.x,o=r.width,a=n.caretSize+n.caretPadding;return"left"===t&&i+o+a>e.width||"right"===t&&i-o-a<0||void 0}(c,t,e,n)&&(c="center"),c}function kn(t,e,n){const r=n.yAlign||e.yAlign||function(t,e){const n=e.y,r=e.height;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||wn(t,e,n,r),yAlign:r}}function _n(t,e,n,i){const o=t.caretSize,a=t.caretPadding,s=t.cornerRadius,l=n.xAlign,u=n.yAlign,c=o+a,d=Object(r.zb)(s),h=d.topLeft,f=d.topRight,p=d.bottomLeft,m=d.bottomRight;let g=function(t,e){let n=t.x,r=t.width;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}(e,l);const b=function(t,e,n){let r=t.y,i=t.height;return"top"===e?r+=n:r-="bottom"===e?i+n:i/2,r}(e,u,c);return"center"===u?"left"===l?g+=c:"right"===l&&(g-=c):"left"===l?g-=Math.max(h,p)+o:"right"===l&&(g+=Math.max(f,m)+o),{x:Object(r.f)(g,0,i.width-e.width),y:Object(r.f)(b,0,i.height-e.height)}}function On(t,e,n){const i=Object(r.l)(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function xn(t){return gn([],bn(t))}function En(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class jn extends B{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,n=this.options.setContext(this.getContext()),r=n.enabled&&e.options.animation&&n.animations,i=new p(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,Object(r.Lb)(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const n=e.callbacks,r=n.beforeTitle.apply(this,[t]),i=n.title.apply(this,[t]),o=n.afterTitle.apply(this,[t]);let a=[];return a=gn(a,bn(r)),a=gn(a,bn(i)),a=gn(a,bn(o)),a}getBeforeBody(t,e){return xn(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const n=e.callbacks,i=[];return Object(r.r)(t,(t=>{const e={before:[],lines:[],after:[]},r=En(n,t);gn(e.before,bn(r.beforeLabel.call(this,t))),gn(e.lines,r.label.call(this,t)),gn(e.after,bn(r.afterLabel.call(this,t))),i.push(e)})),i}getAfterBody(t,e){return xn(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const n=e.callbacks,r=n.beforeFooter.apply(this,[t]),i=n.footer.apply(this,[t]),o=n.afterFooter.apply(this,[t]);let a=[];return a=gn(a,bn(r)),a=gn(a,bn(i)),a=gn(a,bn(o)),a}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],a=[];let s,l,u=[];for(s=0,l=e.length;s<l;++s)u.push(vn(this.chart,e[s]));return t.filter&&(u=u.filter(((e,r,i)=>t.filter(e,r,i,n)))),t.itemSort&&(u=u.sort(((e,r)=>t.itemSort(e,r,n)))),Object(r.r)(u,(e=>{const n=En(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),a.push(n.labelTextColor.call(this,e))})),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=u,u}update(t,e){const n=this.options.setContext(this.getContext()),r=this._active;let i,o=[];if(r.length){const t=mn[n.position].call(this,r,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=yn(this,n),a=Object.assign({},t,e),s=kn(this.chart,n,a),l=_n(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,r){const i=this.getCaretPosition(t,n,r);e.lineTo(i.x1,i.y1),e.lineTo(i.x2,i.y2),e.lineTo(i.x3,i.y3)}getCaretPosition(t,e,n){const i=this.xAlign,o=this.yAlign,a=n.caretSize,s=n.cornerRadius,l=Object(r.zb)(s),u=l.topLeft,c=l.topRight,d=l.bottomLeft,h=l.bottomRight,f=t.x,p=t.y,m=e.width,g=e.height;let b,v,y,w,k,_;return"center"===o?(k=p+g/2,"left"===i?(b=f,v=b-a,w=k+a,_=k-a):(b=f+m,v=b+a,w=k-a,_=k+a),y=b):(v="left"===i?f+Math.max(u,d)+a:"right"===i?f+m-Math.max(c,h)-a:this.caretX,"top"===o?(w=p,k=w-a,b=v-a,y=v+a):(w=p+g,k=w+a,b=v+a,y=v-a),_=w),{x1:b,x2:v,x3:y,y1:w,y2:k,y3:_}}drawTitle(t,e,n){const i=this.title,o=i.length;let a,s,l;if(o){const u=Object(r.N)(n.rtl,this.x,this.width);for(t.x=On(this,n.titleAlign,n),e.textAlign=u.textAlign(n.titleAlign),e.textBaseline="middle",a=Object(r.p)(n.titleFont),s=n.titleSpacing,e.fillStyle=n.titleColor,e.font=a.string,l=0;l<o;++l)e.fillText(i[l],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=n.titleMarginBottom-s)}}_drawColorBox(t,e,n,i,o){const a=this.labelColors[n],s=this.labelPointStyles[n],l=o.boxHeight,u=o.boxWidth,c=o.boxPadding,d=Object(r.p)(o.bodyFont),h=On(this,"left",o),f=i.x(h),p=l<d.lineHeight?(d.lineHeight-l)/2:0,m=e.y+p;if(o.usePointStyle){const e={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=i.leftForLtr(f,u)+u/2,c=m+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Object(r.wb)(t,e,n,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Object(r.wb)(t,e,n,c)}else{t.lineWidth=Object(r.Mb)(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=i.leftForLtr(f,u-c),n=i.leftForLtr(i.xPlus(f,1),u-c-2),s=Object(r.zb)(a.borderRadius);Object.values(s).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Object(r.xb)(t,{x:e,y:m,w:u,h:l,radius:s}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Object(r.xb)(t,{x:n,y:m+1,w:u-2,h:l-2,radius:s}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,m,u,l),t.strokeRect(e,m,u,l),t.fillStyle=a.backgroundColor,t.fillRect(n,m+1,u-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const i=this.body,o=n.bodySpacing,a=n.bodyAlign,s=n.displayColors,l=n.boxHeight,u=n.boxWidth,c=n.boxPadding,d=Object(r.p)(n.bodyFont);let h=d.lineHeight,f=0;const p=Object(r.N)(n.rtl,this.x,this.width),m=function(n){e.fillText(n,p.x(t.x+f),t.y+h/2),t.y+=h+o},g=p.textAlign(a);let b,v,y,w,k,_,O;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=On(this,g,n),e.fillStyle=n.bodyColor,Object(r.r)(this.beforeBody,m),f=s&&"right"!==g?"center"===a?u/2+c:u+2+c:0,w=0,_=i.length;w<_;++w){for(b=i[w],v=this.labelTextColors[w],e.fillStyle=v,Object(r.r)(b.before,m),y=b.lines,s&&y.length&&(this._drawColorBox(e,t,w,p,n),h=Math.max(d.lineHeight,l)),k=0,O=y.length;k<O;++k)m(y[k]),h=d.lineHeight;Object(r.r)(b.after,m)}f=0,h=d.lineHeight,Object(r.r)(this.afterBody,m),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let a,s;if(o){const l=Object(r.N)(n.rtl,this.x,this.width);for(t.x=On(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=l.textAlign(n.footerAlign),e.textBaseline="middle",a=Object(r.p)(n.footerFont),e.fillStyle=n.footerColor,e.font=a.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const o=this.xAlign,a=this.yAlign,s=t.x,l=t.y,u=n.width,c=n.height,d=Object(r.zb)(i.cornerRadius),h=d.topLeft,f=d.topRight,p=d.bottomLeft,m=d.bottomRight;e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(s+h,l),"top"===a&&this.drawCaret(t,e,n,i),e.lineTo(s+u-f,l),e.quadraticCurveTo(s+u,l,s+u,l+f),"center"===a&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(s+u,l+c-m),e.quadraticCurveTo(s+u,l+c,s+u-m,l+c),"bottom"===a&&this.drawCaret(t,e,n,i),e.lineTo(s+p,l+c),e.quadraticCurveTo(s,l+c,s,l+c-p),"center"===a&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(s,l+h),e.quadraticCurveTo(s,l,s+h,l),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const n=mn[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=yn(this,t),a=Object.assign({},n,this._size),s=kn(e,t,a),l=_n(t,a,s,e);r._to===l.x&&i._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=Object(r.l)(e.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&s&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),Object(r.O)(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Object(r.Q)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map((t=>{let e=t.datasetIndex,n=t.index;const r=this.chart.getDatasetMeta(e);if(!r)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:r.data[n],index:n}})),o=!Object(r.kb)(n,i),a=this._positionChanged(i,e);(o||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,n),s=this._positionChanged(a,t),l=e||!Object(r.kb)(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,n,r){const i=this.options;if("mouseout"===t.type)return[];if(!r)return e;const o=this.chart.getElementsAtEventForMode(t,i.mode,i,n);return i.reverse&&o.reverse(),o}_positionChanged(t,e){const n=this.caretX,r=this.caretY,i=this.options,o=mn[i.position].call(this,t,e);return!1!==o&&(n!==o.x||r!==o.y)}}jn.positioners=mn;var Sn={id:"tooltip",_element:jn,positioners:mn,afterInit(t,e,n){n&&(t.tooltip=new jn({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,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:r.S,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:r.S,beforeBody:r.S,beforeLabel:r.S,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 n=t.formattedValue;return Object(r.Ob)(n)||(e+=n),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:r.S,afterBody:r.S,beforeFooter:r.S,footer:r.S,afterFooter:r.S}},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"]},Pn=Object.freeze({__proto__:null,Decimation:Ve,Filler:sn,Legend:cn,SubTitle:pn,Title:hn,Tooltip:Sn});function Cn(t,e,n,r){const i=t.indexOf(e);if(-1===i)return((t,e,n,r)=>("string"===typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,r);return i!==t.lastIndexOf(e)?n:i}class Tn extends Z{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 n of e){const e=n.index,r=n.label;t[e]===r&&t.splice(e,1)}this._addedLabels=[]}super.init(t)}parse(t,e){if(Object(r.Ob)(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Object(r.f)(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Cn(n,t,Object(r.Zb)(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const t=this.getUserBounds(),e=t.minDefined,n=t.maxDefined;let r=this.getMinMax(!0),i=r.min,o=r.max;"ticks"===this.options.bounds&&(e||(i=0),n||(o=this.getLabels().length-1)),this.min=i,this.max=o}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,r=[];let i=this.getLabels();i=0===t&&e===i.length-1?i:i.slice(t,e+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let o=t;o<=e;o++)r.push({value:o});return r}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 Mn(t,e,n){let i=n.horizontal,o=n.minRotation;const a=Object(r.Xb)(o),s=(i?Math.sin(a):Math.cos(a))||.001,l=.75*e*(""+t).length;return Math.min(e/s,l)}Tn.id="category",Tn.defaults={ticks:{callback:Tn.prototype.getLabelForValue}};class An extends Z{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 Object(r.Ob)(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const t=this.options.beginAtZero,e=this.getUserBounds(),n=e.minDefined,i=e.maxDefined;let o=this.min,a=this.max;const s=t=>o=n?o:t,l=t=>a=i?a:t;if(t){const t=Object(r.Wb)(o),e=Object(r.Wb)(a);t<0&&e<0?l(0):t>0&&e>0&&s(0)}if(o===a){let e=1;(a>=Number.MAX_SAFE_INTEGER||o<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*a)),l(a+e),t||s(o-e)}this.min=o,this.max=a}getTickLimit(){const t=this.options.ticks;let e,n=t.maxTicksLimit,r=t.stepSize;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],i=t.bounds,o=t.step,a=t.min,s=t.max,l=t.precision,u=t.count,c=t.maxTicks,d=t.maxDigits,h=t.includeBounds,f=o||1,p=c-1,m=e.min,g=e.max,b=!Object(r.Ob)(a),v=!Object(r.Ob)(s),y=!Object(r.Ob)(u),w=(g-m)/(d+1);let k,_,O,x,E=Object(r.V)((g-m)/p/f)*f;if(E<1e-14&&!b&&!v)return[{value:m},{value:g}];x=Math.ceil(g/E)-Math.floor(m/E),x>p&&(E=Object(r.V)(x*E/p/f)*f),Object(r.Ob)(l)||(k=Math.pow(10,l),E=Math.ceil(E*k)/k),"ticks"===i?(_=Math.floor(m/E)*E,O=Math.ceil(g/E)*E):(_=m,O=g),b&&v&&o&&Object(r.W)((s-a)/o,E/1e3)?(x=Math.round(Math.min((s-a)/E,c)),E=(s-a)/x,_=a,O=s):y?(_=b?a:_,O=v?s:O,x=u-1,E=(O-_)/x):(x=(O-_)/E,x=Object(r.X)(x,Math.round(x),E/1e3)?Math.round(x):Math.ceil(x));const j=Math.max(Object(r.Y)(E),Object(r.Y)(_));k=Math.pow(10,Object(r.Ob)(l)?j:l),_=Math.round(_*k)/k,O=Math.round(O*k)/k;let S=0;for(b&&(h&&_!==a?(n.push({value:a}),_<a&&S++,Object(r.X)(Math.round((_+S*E)*k)/k,a,Mn(a,w,t))&&S++):_<a&&S++);S<x;++S)n.push({value:Math.round((_+S*E)*k)/k});return v&&h&&O!==s?n.length&&Object(r.X)(n[n.length-1].value,s,Mn(s,w,t))?n[n.length-1].value=s:n.push({value:s}):v&&O!==s||n.push({value:O}),n}({maxTicks:n,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&&Object(r.U)(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const r=(n-e)/Math.max(t.length-1,1)/2;e-=r,n+=r}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Object(r.Sb)(t,this.chart.options.locale,this.options.ticks.format)}}class Dn extends An{determineDataLimits(){const t=this.getMinMax(!0),e=t.min,n=t.max;this.min=Object(r.Kb)(e)?e:0,this.max=Object(r.Kb)(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Object(r.Xb)(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Rn(t){return 1===t/Math.pow(10,Math.floor(Object(r.dc)(t)))}Dn.id="linear",Dn.defaults={ticks:{callback:q.formatters.numeric}};class Ln extends Z{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=An.prototype.parse.apply(this,[t,e]);if(0!==n)return Object(r.Kb)(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const t=this.getMinMax(!0),e=t.min,n=t.max;this.min=Object(r.Kb)(e)?Math.max(0,e):null,this.max=Object(r.Kb)(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const t=this.getUserBounds(),e=t.minDefined,n=t.maxDefined;let i=this.min,o=this.max;const a=t=>i=e?i:t,s=t=>o=n?o:t,l=(t,e)=>Math.pow(10,Math.floor(Object(r.dc)(t))+e);i===o&&(i<=0?(a(1),s(10)):(a(l(i,-1)),s(l(o,1)))),i<=0&&a(l(o,-1)),o<=0&&s(l(i,1)),this._zero&&this.min!==this._suggestedMin&&i===l(this.min,0)&&a(l(i,-1)),this.min=i,this.max=o}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Object(r.dc)(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let a=Object(r.c)(t.min,Math.pow(10,Math.floor(Object(r.dc)(e.min)))),s=Math.floor(Object(r.dc)(a)),l=Math.floor(a/Math.pow(10,s)),u=s<0?Math.pow(10,Math.abs(s)):1;do{o.push({value:a,major:Rn(a)}),++l,10===l&&(l=1,++s,u=s>=0?1:u),a=Math.round(l*Math.pow(10,s)*u)/u}while(s<n||s===n&&l<i);const c=Object(r.c)(t.max,a);return o.push({value:c,major:Rn(a)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Object(r.U)(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":Object(r.Sb)(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Object(r.dc)(t),this._valueRange=Object(r.dc)(this.max)-Object(r.dc)(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Object(r.dc)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function In(t){const e=t.ticks;if(e.display&&t.display){const t=Object(r.l)(e.backdropPadding);return Object(r.Zb)(e.font&&e.font.size,r.Hb.font.size)+t.height}return 0}function Wn(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function zn(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},n=Object.assign({},e),i=[],o=[],a=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?r.q/a:0;for(let h=0;h<a;h++){const a=s.setContext(t.getPointLabelContext(h));o[h]=a.padding;const f=t.getPointPosition(h,t.drawingArea+o[h],l),p=Object(r.p)(a.font),m=(u=t.ctx,c=p,d=t._pointLabels[h],d=Object(r.Cb)(d)?d:[d],{w:Object(r.Z)(u,c.string,d),h:d.length*c.lineHeight});i[h]=m;const g=Object(r.Bb)(t.getIndexAngle(h)+l),b=Math.round(Object(r.g)(g));Nn(n,e,g,Wn(b,f.x,m.w,0,180),Wn(b,f.y,m.h,90,270))}var u,c,d;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,a=t.options,s=In(a)/2,l=t.drawingArea,u=a.pointLabels.centerPointLabels?r.q/o:0;for(let c=0;c<o;c++){const o=t.getPointPosition(c,l+s+n[c],u),a=Math.round(Object(r.g)(Object(r.Bb)(o.angle+r.i))),d=e[c],h=Bn(o.y,d.h,a),f=Fn(a),p=Hn(o.x,d.w,f);i.push({x:o.x,y:h,textAlign:f,left:p,top:h,right:p+d.w,bottom:h+d.h})}return i}(t,i,o)}function Nn(t,e,n,r,i){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<e.l?(s=(e.l-r.start)/o,t.l=Math.min(t.l,e.l-s)):r.end>e.r&&(s=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+s)),i.start<e.t?(l=(e.t-i.start)/a,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Fn(t){return 0===t||180===t?"center":t<180?"left":"right"}function Hn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Bn(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Vn(t,e,n,i){const o=t.ctx;if(n)o.arc(t.xCenter,t.yCenter,e,0,r.u);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let r=1;r<i;r++)n=t.getPointPosition(r,e),o.lineTo(n.x,n.y)}}Ln.id="logarithmic",Ln.defaults={ticks:{callback:q.formatters.logarithmic,major:{enabled:!0}}};class qn extends An{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=Object(r.l)(In(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const t=this.getMinMax(!1),e=t.min,n=t.max;this.min=Object(r.Kb)(e)&&!isNaN(e)?e:0,this.max=Object(r.Kb)(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/In(this.options))}generateTickLabels(t){An.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=Object(r.d)(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?zn(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,r))}getIndexAngle(t){const e=r.u/(this._pointLabels.length||1),n=this.options.startAngle||0;return Object(r.Bb)(t*e+Object(r.Xb)(n))}getDistanceFromCenterForValue(t){if(Object(r.Ob)(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(Object(r.Ob)(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 n=e[t];return function(t,e,n){return Object(r.Lb)(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=this.getIndexAngle(t)-r.i+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const e=this._pointLabelItems[t];return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}drawBackground(){const t=this.options,e=t.backgroundColor,n=t.grid.circular;if(e){const t=this.ctx;t.save(),t.beginPath(),Vn(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),t.closePath(),t.fillStyle=e,t.fill(),t.restore()}}drawGrid(){const t=this.ctx,e=this.options,n=e.angleLines,i=e.grid,o=this._pointLabels.length;let a,s,l;if(e.pointLabels.display&&function(t,e){const n=t.ctx,i=t.options.pointLabels;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),a=Object(r.p)(e.font),s=t._pointLabelItems[o],l=s.x,u=s.y,c=s.textAlign,d=s.left,h=s.top,f=s.right,p=s.bottom,m=e.backdropColor;if(!Object(r.Ob)(m)){const t=Object(r.zb)(e.borderRadius),i=Object(r.l)(e.backdropPadding);n.fillStyle=m;const o=d-i.left,a=h-i.top,s=f-d+i.width,l=p-h+i.height;Object.values(t).some((t=>0!==t))?(n.beginPath(),Object(r.xb)(n,{x:o,y:a,w:s,h:l,radius:t}),n.fill()):n.fillRect(o,a,s,l)}Object(r.n)(n,t._pointLabels[o],l,u+a.lineHeight/2,a,{color:e.color,textAlign:c,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach(((t,e)=>{if(0!==e){s=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,r){const i=t.ctx,o=e.circular,a=e.color,s=e.lineWidth;!o&&!r||!a||!s||n<0||(i.save(),i.strokeStyle=a,i.lineWidth=s,i.setLineDash(e.borderDash),i.lineDashOffset=e.borderDashOffset,i.beginPath(),Vn(t,n,o,r),i.closePath(),i.stroke(),i.restore())}(this,i.setContext(this.getContext(e-1)),s,o)}})),n.display){for(t.save(),a=o-1;a>=0;a--){const r=n.setContext(this.getPointLabelContext(a)),i=r.color,o=r.lineWidth;o&&i&&(t.lineWidth=o,t.strokeStyle=i,t.setLineDash(r.borderDash),t.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,s),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,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((i,s)=>{if(0===s&&!e.reverse)return;const l=n.setContext(this.getContext(s)),u=Object(r.p)(l.font);if(o=this.getDistanceFromCenterForValue(this.ticks[s].value),l.showLabelBackdrop){t.font=u.string,a=t.measureText(i.label).width,t.fillStyle=l.backdropColor;const e=Object(r.l)(l.backdropPadding);t.fillRect(-a/2-e.left,-o-u.size/2-e.top,a+e.width,u.size+e.height)}Object(r.n)(t,i.label,0,-o,u,{color:l.color})})),t.restore()}drawTitle(){}}qn.id="radialLinear",qn.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:q.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},qn.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},qn.descriptors={angleLines:{_fallback:"grid"}};const Yn={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}},Un=Object.keys(Yn);function Gn(t,e){return t-e}function Xn(t,e){if(Object(r.Ob)(e))return null;const n=t._adapter,i=t._parseOpts,o=i.parser,a=i.round,s=i.isoWeekday;let l=e;return"function"===typeof o&&(l=o(l)),Object(r.Kb)(l)||(l="string"===typeof o?n.parse(l,o):n.parse(l)),null===l?null:(a&&(l="week"!==a||!Object(r.bc)(s)&&!0!==s?n.startOf(l,a):n.startOf(l,"isoWeek",s)),+l)}function Jn(t,e,n,r){const i=Un.length;for(let o=Un.indexOf(t);o<i-1;++o){const t=Yn[Un[o]],i=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(i*t.size))<=r)return Un[o]}return Un[i-1]}function Kn(t,e,n){if(n){if(n.length){const i=Object(r.bb)(n,e),o=i.lo,a=i.hi;t[n[o]>=e?n[o]:n[a]]=!0}}else t[e]=!0}function $n(t,e,n){const r=[],i={},o=e.length;let a,s;for(a=0;a<o;++a)s=e[a],i[s]=a,r.push({value:s,major:!1});return 0!==o&&n?function(t,e,n,r){const i=t._adapter,o=+i.startOf(e[0].value,r),a=e[e.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(e[l].major=!0);return e}(t,r,i,n):r}class Qn extends Z{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 n=t.time||(t.time={}),i=this._adapter=new at._date(t.adapters.date);i.init(e),Object(r.eb)(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Xn(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let i=this.getUserBounds(),o=i.min,a=i.max,s=i.minDefined,l=i.maxDefined;function u(t){s||isNaN(t.min)||(o=Math.min(o,t.min)),l||isNaN(t.max)||(a=Math.max(a,t.max))}s&&l||(u(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||u(this.getMinMax(!1))),o=Object(r.Kb)(o)&&!isNaN(o)?o:+e.startOf(Date.now(),n),a=Object(r.Kb)(a)&&!isNaN(a)?a:+e.endOf(Date.now(),n)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=Object(r.ab)(i,o,a);return this._unit=e.unit||(n.autoSkip?Jn(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,r,i){for(let o=Un.length-1;o>=Un.indexOf(n);o--){const n=Un[o];if(Yn[n].common&&t._adapter.diff(i,r,n)>=e-1)return n}return Un[n?Un.indexOf(n):0]}(this,s.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Un.indexOf(t)+1,n=Un.length;e<n;++e)if(Yn[Un[e]].common)return Un[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&s.reverse(),$n(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;i=Object(r.f)(i,0,a),o=Object(r.f)(o,0,a),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,a=o.unit||Jn(o.minUnit,e,n,this._getLabelCapacity(e)),s=Object(r.Zb)(o.stepSize,1),l="week"===a&&o.isoWeekday,u=Object(r.bc)(l)||!0===l,c={};let d,h,f=e;if(u&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,u?"day":a),t.diff(n,e,a)>1e5*s)throw new Error(e+" and "+n+" are too far apart with stepSize of "+s+" "+a);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=f,h=0;d<n;d=+t.add(d,s,a),h++)Kn(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||Kn(c,d,p),Object.keys(c).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,a=o.time.displayFormats,s=this._unit,l=this._majorUnit,u=s&&a[s],c=l&&a[l],d=n[e],h=l&&c&&d&&d.major,f=this._adapter.format(t,i||(h?c:u)),p=o.ticks.callback;return p?Object(r.d)(p,[f,e,n],this):f}generateTickLabels(t){let e,n,r;for(e=0,n=t.length;e<n;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Object(r.Xb)(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:n*o+s*a,h:n*a+s*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,r=n[e.unit]||n.millisecond,i=this._tickFormatFunction(t,0,$n(this,[t],this._majorUnit),r),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t<e;++t)n=n.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const r=this.getLabels();for(e=0,n=r.length;e<n;++e)t.push(Xn(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Object(r.B)(t.sort(Gn))}}function Zn(t,e,n){let i,o,a,s,l=0,u=t.length-1;if(n){if(e>=t[l].pos&&e<=t[u].pos){var c=Object(r.A)(t,"pos",e);l=c.lo,u=c.hi}var d=t[l];i=d.pos,a=d.time;var h=t[u];o=h.pos,s=h.time}else{if(e>=t[l].time&&e<=t[u].time){var f=Object(r.A)(t,"time",e);l=f.lo,u=f.hi}var p=t[l];i=p.time,a=p.pos;var m=t[u];o=m.time,s=m.pos}const g=o-i;return g?a+(s-a)*(e-i)/g:a}Qn.id="time",Qn.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class tr extends Qn{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=Zn(e,this.min),this._tableRange=Zn(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const e=this.min,n=this.max,r=[],i=[];let o,a,s,l,u;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=n&&r.push(l);if(r.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,a=r.length;o<a;++o)u=r[o+1],s=r[o-1],l=r[o],Math.round((u+s)/2)!==l&&i.push({time:l,pos:o/(a-1)});return i}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Zn(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Zn(this._table,n*this._tableRange+this._minPos,!0)}}tr.id="timeseries",tr.defaults=Qn.defaults;const er=[rt,Fe,Pn,Object.freeze({__proto__:null,CategoryScale:Tn,LinearScale:Dn,LogarithmicScale:Ln,RadialLinearScale:qn,TimeScale:Qn,TimeSeriesScale:tr})]},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(){return r(document.querySelectorAll("[data-week]")).map((function(t){return t.dataset.week})).filter((function(t){return""!=t}))}function a(t){return document.querySelector('[data-week="'.concat(+t-1,'"]'))}function s(t){return document.querySelector('[data-week="'.concat(+t+1,'"]'))}function l(t){if(+t+1!=0){var e=document.querySelector('[data-week="'.concat(t,'"]'));if(!e.nextElementSibling.classList.contains("add-week")){var n=c(+t+1);e.insertAdjacentHTML("afterend",n)}}}function u(t){if(+t-1!=0||a(+t-1)){if(+t-1==0)return}else c("-1");var e=document.querySelector('[data-week="'.concat(t,'"]'));if(!e.previousElementSibling.classList.contains("add-week")){var n=c(+t-1);e.insertAdjacentHTML("beforebegin",n)}}function c(t){var e=document.getElementById("setting-content").dataset.templateId,n=document.getElementById("setting-content").dataset.language;return'\n\t\t<div class="add-class position-relative" style="height: 0;">\n      <div class="d-flex justify-content-around w-100 position-absolute hover-target" style="top: 35px;">\n  \t\t\t<div class="w-100 margin-bottom-10px visibility-hidden hover-show" style="margin-top: -30px; max-width: 1000px;">\n  \t\t\t\t<a class="d-flex justify-content-between align-items-center w-100" data-remote="true" href="'.concat("/"+n,"/settings/templates/").concat(e,'/draggable_elements/new">\n  \t\t\t\t  <div class="width-45 bg-blue border-radius-24px" style="height: 6px;"></div>\n  \t\t\t\t\t\t<i class="fad fa-plus-circle text-40px text-blue pointer ask-week"></i>\n  \t\t\t\t  <div class="width-45 bg-blue border-radius-24px" style="height: 6px;"></div>\n  \t\t\t\t</a>\n  \t\t\t</div>\n  \t\t</div>\n    </div>\n\t')}function d(){r(document.querySelectorAll(".ask-week")).forEach((function(t,e){t.parentElement.parentElement.parentElement.parentElement.id="add_week_".concat(e+1),t.parentElement.href.includes("?add_week=")||(t.parentElement.href+="?add_week=".concat(e+1))}))}function h(t){var e=t.previousElementSibling;if(e)return e.classList.contains("undraggable-day")}function f(t){return"first-connection"==t?null:+t>=0?+t+1:+t}function p(){var t=document.querySelector(".week.dashed-border-blue");if(function(t){var e=t.nextElementSibling.dataset;return!!e.week&&""!=e.week}(t)){var e=+t.nextElementSibling.dataset.week-1;return 0===e?-1:e}if(function(t){var e=t.previousElementSibling.dataset;return!!e.week&&""!=e.week}(t)){var n=+t.previousElementSibling.dataset.week+1;return n+1===0?1:n}return 1}function m(){var t=document.getElementById("new-week-number-modal").value,e=document.getElementById("new-week-modal-button"),n=document.getElementById("existing-week");document.querySelector('[data-week="'.concat(t,'"]'))?(e.disabled=!0,n.classList.remove("d-none")):(e.disabled=!1,n.classList.add("d-none"))}function g(t){var e=document.getElementById("new-week-number-".concat(t)),n=+e.value;e.value=n+1,0==e.value&&(e.value=1)}function b(t){var e=document.getElementById("new-week-number-".concat(t)),n=+e.value;e.value=n-1,0==e.value&&(e.value=-1)}function v(t,e){var n=o();n.push(e);var i=n.map((function(t){return+t})).sort((function(t,e){return t>e?1:-1})),a=r(document.querySelectorAll("[data-week]")).filter((function(t){return""!=t.dataset.week})),s=i.indexOf(e);a[s-1]?a[s-1].insertAdjacentHTML("afterend",t):a[0].insertAdjacentHTML("beforebegin",t)}function y(t){var e=[];return t.forEach((function(t){if(t.dataset.classname){var n={id:t.dataset.id,model:t.dataset.classname,position:t.dataset.position};e.push(n)}})),e}function w(t){t.forEach((function(t,e){t.dataset.position=e+1}))}function k(){document.querySelector("#edit_element .modal-content").innerHTML=""}n.d(e,"h",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"k",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return p})),n.d(e,"n",(function(){return m})),n.d(e,"p",(function(){return g})),n.d(e,"o",(function(){return b})),n.d(e,"a",(function(){return v})),n.d(e,"m",(function(){return y})),n.d(e,"l",(function(){return w})),n.d(e,"d",(function(){return k}))},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.r(e),n.d(e,"setFiltersWithLocalStorage",(function(){return o})),n.d(e,"updateFilter",(function(){return s})),n.d(e,"selectAllElements",(function(){return l})),n.d(e,"removeAllElements",(function(){return u})),n.d(e,"toggleActive",(function(){return c})),n.d(e,"activate",(function(){return h})),n.d(e,"desactivate",(function(){return f}));var o=function(t,e){var n="mobility"==t?"mobilities":"".concat(t,"s"),i=r(e.querySelectorAll(".resource-filter")).map((function(t){return t.dataset.value})),o=localStorage.getItem("resources_".concat(n))||localStorage.setItem("resources_".concat(n),JSON.stringify(i)),s=document.querySelectorAll(".resource-filter.".concat(t,"-filter")),l=JSON.parse(o);r(s).map((function(t){return t.dataset.value})).filter((function(t){return!l.includes(t)})).forEach((function(n){return a(e.querySelector(".".concat(t,'-filter[data-value="').concat(n,'"]')))}))},a=function(t){t.dataset.selected=!1},s=function(t,e){var n=r(e.querySelectorAll(".resource-filter[data-selected='true']")).map((function(t){return t.dataset.value}));localStorage.setItem("resources_".concat(t),JSON.stringify(n))},l=function(t){document.querySelectorAll(".".concat(t,"-filter")).forEach((function(t){return t.dataset.selected=!0}))},u=function(t){document.querySelectorAll(".".concat(t,"-filter")).forEach((function(t){return t.dataset.selected=!1}))},c=function(t,e){d(t)?h(e):f(e)},d=function(t){return document.querySelectorAll(".".concat(t,"-filter[data-selected='false']")).length>0},h=function(t){return t.classList.add("active")},f=function(t){return t.classList.remove("active")}},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.r(e),n.d(e,"setFiltersWithLocalStorage",(function(){return o})),n.d(e,"updateFilter",(function(){return s})),n.d(e,"selectAllElements",(function(){return l})),n.d(e,"removeAllElements",(function(){return u})),n.d(e,"toggleActive",(function(){return c})),n.d(e,"activate",(function(){return h})),n.d(e,"desactivate",(function(){return f}));var o=function(t,e){var n=r(e.querySelectorAll(".information-filter")).map((function(t){return t.dataset.value})),i=localStorage.getItem("informations_".concat(t,"s"))||localStorage.setItem("informations_".concat(t,"s"),JSON.stringify(n)),o=document.querySelectorAll(".information-filter.".concat(t,"-filter")),s=JSON.parse(i);r(o).map((function(t){return t.dataset.value})).filter((function(t){return!s.includes(t)})).forEach((function(n){return a(e.querySelector(".".concat(t,'-filter[data-value="').concat(n,'"]')))}))},a=function(t){t.dataset.selected=!1},s=function(t,e){var n=r(e.querySelectorAll(".information-filter[data-selected='true']")).map((function(t){return t.dataset.value}));localStorage.setItem("informations_".concat(t),JSON.stringify(n))},l=function(t){document.querySelectorAll(".".concat(t,"-filter")).forEach((function(t){return t.dataset.selected=!0}))},u=function(t){document.querySelectorAll(".".concat(t,"-filter")).forEach((function(t){return t.dataset.selected=!1}))},c=function(t,e){d(t)?h(e):f(e)},d=function(t){return document.querySelectorAll(".".concat(t,"-filter[data-selected='false']")).length>0},h=function(t){return t.classList.add("active")},f=function(t){return t.classList.remove("active")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r,i,o=document.querySelector("body"),a=document.createElement("div"),s=function(t){switch(t){case"alert":return"fa-times-circle";case"warning":return"fa-exclamation-circle";default:return"fa-check-circle"}},l=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"notice";(e=document.getElementById("flash"))&&e.parentElement.parentElement.removeChild(e.parentElement),function(t,e){a.innerHTML='\n    <div id="flash" class="d-flex w-100 justify-content-center">\n      <div class="alert flash-'.concat(e,' alertFadeOut" style="transition: ').concat(.1,'s linear; opacity: 1;" role="alert">\n        <i class="fad text-25px flash-icon ').concat(s(e),' padded-left-20px"></i>\n        <div class="padded-lateral-20px text-overflow-two-lines line-height-20px"> ').concat(t,' </div>\n        <i data-dismiss="alert" aria-label="close" class="fas fa-times text-gray padded-right-20px"></i>\n      </div>\n    </div>\n  ')}(t,n),o.appendChild(a),window.clearTimeout(r),window.clearTimeout(i),r=window.setTimeout((function(){var t=a.querySelector(".alertFadeOut");t&&(t.style.opacity=0)}),5e3),i=window.setTimeout((function(){a.remove()}),5100)}},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.r(e),n.d(e,"setFiltersWithLocalStorage",(function(){return o})),n.d(e,"updateFilter",(function(){return s})),n.d(e,"selectAllElements",(function(){return l})),n.d(e,"removeAllElements",(function(){return u})),n.d(e,"toggleActive",(function(){return c})),n.d(e,"activate",(function(){return h})),n.d(e,"desactivate",(function(){return f}));var o=function(t,e){var n=r(e.querySelectorAll(".form_resource-filter")).map((function(t){return t.dataset.value})),i=localStorage.getItem("form_resources_".concat(t,"s"))||localStorage.setItem("form_resources_".concat(t,"s"),JSON.stringify(n)),o=document.querySelectorAll(".form_resource-filter.".concat(t,"-filter")),s=JSON.parse(i);r(o).map((function(t){return t.dataset.value})).filter((function(t){return!s.includes(t)})).forEach((function(n){return a(e.querySelector(".".concat(t,'-filter[data-value="').concat(n,'"]')))}))},a=function(t){t.dataset.selected=!1},s=function(t,e){var n=r(e.querySelectorAll(".form_resource-filter[data-selected='true']")).map((function(t){return t.dataset.value}));localStorage.setItem("form_resources_".concat(t),JSON.stringify(n))},l=function(t){document.querySelectorAll(".".concat(t,"-filter")).forEach((function(t){return t.dataset.selected=!0}))},u=function(t){document.querySelectorAll(".".concat(t,"-filter")).forEach((function(t){return t.dataset.selected=!1}))},c=function(t,e){d(t)?h(e):f(e)},d=function(t){return document.querySelectorAll(".".concat(t,"-filter[data-selected='false']")).length>0},h=function(t){return t.classList.add("active")},f=function(t){return t.classList.remove("active")}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n(12),i=function(){},o=function(t,e,n){return n.months[e?"shorthand":"longhand"][t]},a={D:i,F:function(t,e,n){t.setMonth(n.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,n){t.setHours(t.getHours()%12+12*Object(r.c)(new RegExp(n.amPM[1],"i").test(e)))},M:function(t,e,n){t.setMonth(n.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,n){var r=parseInt(e),i=new Date(t.getFullYear(),0,2+7*(r-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:i,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:i,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},s={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(t){return t.toISOString()},D:function(t,e,n){return e.weekdays.shorthand[l.w(t,e,n)]},F:function(t,e,n){return o(l.n(t,e,n)-1,!1,e)},G:function(t,e,n){return Object(r.d)(l.h(t,e,n))},H:function(t){return Object(r.d)(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[Object(r.c)(t.getHours()>11)]},M:function(t,e){return o(t.getMonth(),!0,e)},S:function(t){return Object(r.d)(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,n){return n.getWeek(t)},Y:function(t){return Object(r.d)(t.getFullYear(),4)},d:function(t){return Object(r.d)(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return Object(r.d)(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return Object(r.d)(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start";e.forEach((function(t){return o(t)})),n="start"==r?e.map((function(t){return t.firstElementChild.innerText})):e.map((function(t){return t.lastElementChild.innerText}));var s=[];n.forEach((function(n,r){i(t,n)||s.push(e[r])})),s.forEach((function(t){return a(t)}))},i=function(t,e){return e.toLowerCase().includes(t.toLowerCase())},o=function(t){t.classList.remove("d-none"),t.classList.add("d-flex")},a=function(t){t.classList.remove("d-flex"),t.classList.add("d-none")}},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,r;function i(){return e.apply(null,arguments)}function o(t){e=t}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(l(t,e))return!1;return!0}function c(t){return void 0===t}function d(t){return"number"===typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,r=[],i=t.length;for(n=0;n<i;++n)r.push(e(t[n],n));return r}function p(t,e){for(var n in e)l(e,n)&&(t[n]=e[n]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function m(t,e,n,r){return Jn(t,e,n,r,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function b(t){return null==t._pf&&(t._pf=g()),t._pf}function v(t){if(null==t._isValid){var e=b(t),n=r.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function y(t){var e=m(NaN);return null!=t?p(b(e),t):b(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),r=n.length>>>0;for(e=0;e<r;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var w=i.momentProperties=[],k=!1;function _(t,e){var n,r,i,o=w.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=b(e)),c(e._locale)||(t._locale=e._locale),o>0)for(n=0;n<o;n++)c(i=e[r=w[n]])||(t[r]=i);return t}function O(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===k&&(k=!0,i.updateOffset(this),k=!1)}function x(t){return t instanceof O||null!=t&&null!=t._isAMomentObject}function E(t){!1===i.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function j(t,e){var n=!0;return p((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,o,a,s=[],u=arguments.length;for(o=0;o<u;o++){if(r="","object"===typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])l(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}E(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var S,P={};function C(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),P[t]||(E(e),P[t]=!0)}function T(t){return"undefined"!==typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t){var e,n;for(n in t)l(t,n)&&(T(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(t,e){var n,r=p({},t);for(n in e)l(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},p(r[n],t[n]),p(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)l(t,n)&&!l(e,n)&&s(t[n])&&(r[n]=p({},r[n]));return r}function D(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,S=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)l(t,e)&&n.push(e);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function L(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return T(r)?r.call(e,n):r}function I(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},F={};function H(t,e,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),t&&(F[t]=i),e&&(F[e[0]]=function(){return I(i.apply(this,arguments),e[1],e[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function B(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function V(t){var e,n,r=t.match(W);for(e=0,n=r.length;e<n;e++)F[r[e]]?r[e]=F[r[e]]:r[e]=B(r[e]);return function(e){var i,o="";for(i=0;i<n;i++)o+=T(r[i])?r[i].call(e,t):r[i];return o}}function q(t,e){return t.isValid()?(e=Y(e,t.localeData()),N[e]=N[e]||V(e),N[e](t)):t.localeData().invalidDate()}function Y(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(z.lastIndex=0;n>=0&&z.test(t);)t=t.replace(z,r),z.lastIndex=0,n-=1;return t}var U={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(W).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var X="Invalid date";function J(){return this._invalidDate}var K="%d",$=/\d{1,2}/;function Q(t){return this._ordinal.replace("%d",t)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tt(t,e,n,r){var i=this._relativeTime[n];return T(i)?i(t,e,n,r):i.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return T(n)?n(e):n.replace(/%s/i,e)}var nt={};function rt(t,e){var n=t.toLowerCase();nt[n]=nt[n+"s"]=nt[e]=t}function it(t){return"string"===typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function ot(t){var e,n,r={};for(n in t)l(t,n)&&(e=it(n))&&(r[e]=t[n]);return r}var at={};function st(t,e){at[t]=e}function lt(t){var e,n=[];for(e in t)l(t,e)&&n.push({unit:e,priority:at[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function ut(t){return t%4===0&&t%100!==0||t%400===0}function ct(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ct(e)),n}function ht(t,e){return function(n){return null!=n?(pt(this,t,n),i.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function pt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(n=dt(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),te(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function mt(t){return T(this[t=it(t)])?this[t]():this}function gt(t,e){if("object"===typeof t){var n,r=lt(t=ot(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(T(this[t=it(t)]))return this[t](e);return this}var bt,vt=/\d/,yt=/\d\d/,wt=/\d{3}/,kt=/\d{4}/,_t=/[+-]?\d{6}/,Ot=/\d\d?/,xt=/\d\d\d\d?/,Et=/\d\d\d\d\d\d?/,jt=/\d{1,3}/,St=/\d{1,4}/,Pt=/[+-]?\d{1,6}/,Ct=/\d+/,Tt=/[+-]?\d+/,Mt=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,Dt=/[+-]?\d+(\.\d{1,3})?/,Rt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Lt(t,e,n){bt[t]=T(e)?e:function(t,r){return t&&n?n:e}}function It(t,e){return l(bt,t)?bt[t](e._strict,e._locale):new RegExp(Wt(t))}function Wt(t){return zt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function zt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}bt={};var Nt={};function Ft(t,e){var n,r,i=e;for("string"===typeof t&&(t=[t]),d(e)&&(i=function(t,n){n[e]=dt(t)}),r=t.length,n=0;n<r;n++)Nt[t[n]]=i}function Ht(t,e){Ft(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function Bt(t,e,n){null!=e&&l(Nt,t)&&Nt[t](e,n._a,n,t)}var Vt,qt=0,Yt=1,Ut=2,Gt=3,Xt=4,Jt=5,Kt=6,$t=7,Qt=8;function Zt(t,e){return(t%e+e)%e}function te(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Zt(e,12);return t+=(e-n)/12,1===n?ut(t)?29:28:31-n%7%2}Vt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),H("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),st("month",8),Lt("M",Ot),Lt("MM",Ot,yt),Lt("MMM",(function(t,e){return e.monthsShortRegex(t)})),Lt("MMMM",(function(t,e){return e.monthsRegex(t)})),Ft(["M","MM"],(function(t,e){e[Yt]=dt(t)-1})),Ft(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[Yt]=i:b(n).invalidMonth=t}));var ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ie=Rt,oe=Rt;function ae(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||re).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function se(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[re.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Vt.call(this._shortMonthsParse,a))?i:null:-1!==(i=Vt.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=Vt.call(this._shortMonthsParse,a))||-1!==(i=Vt.call(this._longMonthsParse,a))?i:null:-1!==(i=Vt.call(this._longMonthsParse,a))||-1!==(i=Vt.call(this._shortMonthsParse,a))?i:null}function ue(t,e,n){var r,i,o;if(this._monthsParseExact)return le.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function ce(t,e){var n;if(!t.isValid())return t;if("string"===typeof e)if(/^\d+$/.test(e))e=dt(e);else if(!d(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),te(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function de(t){return null!=t?(ce(this,t),i.updateOffset(this,!0),this):ft(this,"Month")}function he(){return te(this.year(),this.month())}function fe(t){return this._monthsParseExact?(l(this,"_monthsRegex")||me.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ie),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(t){return this._monthsParseExact?(l(this,"_monthsRegex")||me.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=oe),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function me(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],o=[];for(e=0;e<12;e++)n=m([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),o.sort(t),e=0;e<12;e++)r[e]=zt(r[e]),i[e]=zt(i[e]);for(e=0;e<24;e++)o[e]=zt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ge(t){return ut(t)?366:365}H("Y",0,0,(function(){var t=this.year();return t<=9999?I(t,4):"+"+t})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),st("year",1),Lt("Y",Tt),Lt("YY",Ot,yt),Lt("YYYY",St,kt),Lt("YYYYY",Pt,_t),Lt("YYYYYY",Pt,_t),Ft(["YYYYY","YYYYYY"],qt),Ft("YYYY",(function(t,e){e[qt]=2===t.length?i.parseTwoDigitYear(t):dt(t)})),Ft("YY",(function(t,e){e[qt]=i.parseTwoDigitYear(t)})),Ft("Y",(function(t,e){e[qt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var be=ht("FullYear",!0);function ve(){return ut(this.year())}function ye(t,e,n,r,i,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,o,a),s}function we(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function ke(t,e,n){var r=7+e-n;return-(7+we(t,0,r).getUTCDay()-e)%7+r-1}function _e(t,e,n,r,i){var o,a,s=1+7*(e-1)+(7+n-r)%7+ke(t,r,i);return s<=0?a=ge(o=t-1)+s:s>ge(t)?(o=t+1,a=s-ge(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Oe(t,e,n){var r,i,o=ke(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?r=a+xe(i=t.year()-1,e,n):a>xe(t.year(),e,n)?(r=a-xe(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function xe(t,e,n){var r=ke(t,e,n),i=ke(t+1,e,n);return(ge(t)-r+i)/7}function Ee(t){return Oe(t,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),st("week",5),st("isoWeek",5),Lt("w",Ot),Lt("ww",Ot,yt),Lt("W",Ot),Lt("WW",Ot,yt),Ht(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=dt(t)}));var je={dow:0,doy:6};function Se(){return this._week.dow}function Pe(){return this._week.doy}function Ce(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Te(t){var e=Oe(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Me(t,e){return"string"!==typeof t?t:isNaN(t)?"number"===typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ae(t,e){return"string"===typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function De(t,e){return t.slice(e,7).concat(t.slice(0,e))}H("d",0,"do","day"),H("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),H("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),H("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Lt("d",Ot),Lt("e",Ot),Lt("E",Ot),Lt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Lt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Lt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Ht(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:b(n).invalidWeekday=t})),Ht(["d","e","E"],(function(t,e,n,r){e[r]=dt(t)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Le="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),We=Rt,ze=Rt,Ne=Rt;function Fe(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?De(n,this._week.dow):t?n[t.day()]:n}function He(t){return!0===t?De(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Be(t){return!0===t?De(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ve(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Vt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Vt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Vt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Vt.call(this._weekdaysParse,a))||-1!==(i=Vt.call(this._shortWeekdaysParse,a))||-1!==(i=Vt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Vt.call(this._shortWeekdaysParse,a))||-1!==(i=Vt.call(this._weekdaysParse,a))||-1!==(i=Vt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Vt.call(this._minWeekdaysParse,a))||-1!==(i=Vt.call(this._weekdaysParse,a))||-1!==(i=Vt.call(this._shortWeekdaysParse,a))?i:null}function qe(t,e,n){var r,i,o;if(this._weekdaysParseExact)return Ve.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function Ye(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Me(t,this.localeData()),this.add(t-e,"d")):e}function Ue(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ge(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ae(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Xe(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=We),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Je(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ze),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ke(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ne),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $e(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=m([2e3,1]).day(e),r=zt(this.weekdaysMin(n,"")),i=zt(this.weekdaysShort(n,"")),o=zt(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),u.push(r),u.push(i),u.push(o);a.sort(t),s.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Ze(){return this.hours()||24}function tn(t,e){H(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Qe),H("k",["kk",2],0,Ze),H("hmm",0,0,(function(){return""+Qe.apply(this)+I(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Qe.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),tn("a",!0),tn("A",!1),rt("hour","h"),st("hour",13),Lt("a",en),Lt("A",en),Lt("H",Ot),Lt("h",Ot),Lt("k",Ot),Lt("HH",Ot,yt),Lt("hh",Ot,yt),Lt("kk",Ot,yt),Lt("hmm",xt),Lt("hmmss",Et),Lt("Hmm",xt),Lt("Hmmss",Et),Ft(["H","HH"],Gt),Ft(["k","kk"],(function(t,e,n){var r=dt(t);e[Gt]=24===r?0:r})),Ft(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Ft(["h","hh"],(function(t,e,n){e[Gt]=dt(t),b(n).bigHour=!0})),Ft("hmm",(function(t,e,n){var r=t.length-2;e[Gt]=dt(t.substr(0,r)),e[Xt]=dt(t.substr(r)),b(n).bigHour=!0})),Ft("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=dt(t.substr(0,r)),e[Xt]=dt(t.substr(r,2)),e[Jt]=dt(t.substr(i)),b(n).bigHour=!0})),Ft("Hmm",(function(t,e,n){var r=t.length-2;e[Gt]=dt(t.substr(0,r)),e[Xt]=dt(t.substr(r))})),Ft("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=dt(t.substr(0,r)),e[Xt]=dt(t.substr(r,2)),e[Jt]=dt(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,on=ht("Hours",!0);function an(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:R,longDateFormat:U,invalidDate:X,ordinal:K,dayOfMonthOrdinalParse:$,relativeTime:Z,months:ee,monthsShort:ne,week:je,weekdays:Re,weekdaysMin:Ie,weekdaysShort:Le,meridiemParse:rn},un={},cn={};function dn(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function hn(t){return t?t.toLowerCase().replace("_","-"):t}function fn(t){for(var e,n,r,i,o=0;o<t.length;){for(e=(i=hn(t[o]).split("-")).length,n=(n=hn(t[o+1]))?n.split("-"):null;e>0;){if(r=mn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&dn(i,n)>=e-1)break;e--}o++}return sn}function pn(t){return null!=t.match("^[^/\\\\]*$")}function mn(e){var r=null;if(void 0===un[e]&&"undefined"!==typeof t&&t&&t.exports&&pn(e))try{r=sn._abbr,n(141)("./"+e),gn(r)}catch(i){un[e]=null}return un[e]}function gn(t,e){var n;return t&&((n=c(e)?yn(t):bn(t,e))?sn=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),sn._abbr}function bn(t,e){if(null!==e){var n,r=ln;if(e.abbr=t,null!=un[t])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[t]._config;else if(null!=e.parentLocale)if(null!=un[e.parentLocale])r=un[e.parentLocale]._config;else{if(null==(n=mn(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return un[t]=new D(A(r,e)),cn[t]&&cn[t].forEach((function(t){bn(t.name,t.config)})),gn(t),un[t]}return delete un[t],null}function vn(t,e){if(null!=e){var n,r,i=ln;null!=un[t]&&null!=un[t].parentLocale?un[t].set(A(un[t]._config,e)):(null!=(r=mn(t))&&(i=r._config),e=A(i,e),null==r&&(e.abbr=t),(n=new D(e)).parentLocale=un[t],un[t]=n),gn(t)}else null!=un[t]&&(null!=un[t].parentLocale?(un[t]=un[t].parentLocale,t===gn()&&gn(t)):null!=un[t]&&delete un[t]);return un[t]}function yn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return sn;if(!a(t)){if(e=mn(t))return e;t=[t]}return fn(t)}function wn(){return S(un)}function kn(t){var e,n=t._a;return n&&-2===b(t).overflow&&(e=n[Yt]<0||n[Yt]>11?Yt:n[Ut]<1||n[Ut]>te(n[qt],n[Yt])?Ut:n[Gt]<0||n[Gt]>24||24===n[Gt]&&(0!==n[Xt]||0!==n[Jt]||0!==n[Kt])?Gt:n[Xt]<0||n[Xt]>59?Xt:n[Jt]<0||n[Jt]>59?Jt:n[Kt]<0||n[Kt]>999?Kt:-1,b(t)._overflowDayOfYear&&(e<qt||e>Ut)&&(e=Ut),b(t)._overflowWeeks&&-1===e&&(e=$t),b(t)._overflowWeekday&&-1===e&&(e=Qt),b(t).overflow=e),t}var _n=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,On=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,En=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],jn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Sn=/^\/?Date\((-?\d+)/i,Pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tn(t){var e,n,r,i,o,a,s=t._i,l=_n.exec(s)||On.exec(s),u=En.length,c=jn.length;if(l){for(b(t).iso=!0,e=0,n=u;e<n;e++)if(En[e][1].exec(l[1])){i=En[e][0],r=!1!==En[e][2];break}if(null==i)return void(t._isValid=!1);if(l[3]){for(e=0,n=c;e<n;e++)if(jn[e][1].exec(l[3])){o=(l[2]||" ")+jn[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(l[4]){if(!xn.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),Bn(t)}else t._isValid=!1}function Mn(t,e,n,r,i,o){var a=[An(t),ne.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function An(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Dn(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(t,e,n){return!t||Le.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(b(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Ln(t,e,n){if(t)return Cn[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function In(t){var e,n=Pn.exec(Dn(t._i));if(n){if(e=Mn(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],e,t))return;t._a=e,t._tzm=Ln(n[8],n[9],n[10]),t._d=we.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),b(t).rfc2822=!0}else t._isValid=!1}function Wn(t){var e=Sn.exec(t._i);null===e?(Tn(t),!1===t._isValid&&(delete t._isValid,In(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function zn(t,e,n){return null!=t?t:null!=e?e:n}function Nn(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Fn(t){var e,n,r,i,o,a=[];if(!t._d){for(r=Nn(t),t._w&&null==t._a[Ut]&&null==t._a[Yt]&&Hn(t),null!=t._dayOfYear&&(o=zn(t._a[qt],r[qt]),(t._dayOfYear>ge(o)||0===t._dayOfYear)&&(b(t)._overflowDayOfYear=!0),n=we(o,0,t._dayOfYear),t._a[Yt]=n.getUTCMonth(),t._a[Ut]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Gt]&&0===t._a[Xt]&&0===t._a[Jt]&&0===t._a[Kt]&&(t._nextDay=!0,t._a[Gt]=0),t._d=(t._useUTC?we:ye).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Gt]=24),t._w&&"undefined"!==typeof t._w.d&&t._w.d!==i&&(b(t).weekdayMismatch=!0)}}function Hn(t){var e,n,r,i,o,a,s,l,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,n=zn(e.GG,t._a[qt],Oe(Kn(),1,4).year),r=zn(e.W,1),((i=zn(e.E,1))<1||i>7)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,u=Oe(Kn(),o,a),n=zn(e.gg,t._a[qt],u.year),r=zn(e.w,u.week),null!=e.d?((i=e.d)<0||i>6)&&(l=!0):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(l=!0)):i=o),r<1||r>xe(n,o,a)?b(t)._overflowWeeks=!0:null!=l?b(t)._overflowWeekday=!0:(s=_e(n,r,i,o,a),t._a[qt]=s.year,t._dayOfYear=s.dayOfYear)}function Bn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],b(t).empty=!0;var e,n,r,o,a,s,l,u=""+t._i,c=u.length,d=0;for(l=(r=Y(t._f,t._locale).match(W)||[]).length,e=0;e<l;e++)o=r[e],(n=(u.match(It(o,t))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&b(t).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),d+=n.length),F[o]?(n?b(t).empty=!1:b(t).unusedTokens.push(o),Bt(o,n,t)):t._strict&&!n&&b(t).unusedTokens.push(o);b(t).charsLeftOver=c-d,u.length>0&&b(t).unusedInput.push(u),t._a[Gt]<=12&&!0===b(t).bigHour&&t._a[Gt]>0&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[Gt]=Vn(t._locale,t._a[Gt],t._meridiem),null!==(s=b(t).era)&&(t._a[qt]=t._locale.erasConvertYear(s,t._a[qt])),Fn(t),kn(t)}else In(t);else Tn(t)}function Vn(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function qn(t){var e,n,r,i,o,a,s=!1,l=t._f.length;if(0===l)return b(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<l;i++)o=0,a=!1,e=_({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Bn(e),v(e)&&(a=!0),o+=b(e).charsLeftOver,o+=10*b(e).unusedTokens.length,b(e).score=o,s?o<r&&(r=o,n=e):(null==r||o<r||a)&&(r=o,n=e,a&&(s=!0));p(t,n||e)}function Yn(t){if(!t._d){var e=ot(t._i),n=void 0===e.day?e.date:e.day;t._a=f([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Fn(t)}}function Un(t){var e=new O(kn(Gn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Gn(t){var e=t._i,n=t._f;return t._locale=t._locale||yn(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"===typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new O(kn(e)):(h(e)?t._d=e:a(n)?qn(t):n?Bn(t):Xn(t),v(t)||(t._d=null),t))}function Xn(t){var e=t._i;c(e)?t._d=new Date(i.now()):h(e)?t._d=new Date(e.valueOf()):"string"===typeof e?Wn(t):a(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Fn(t)):s(e)?Yn(t):d(e)?t._d=new Date(e):i.createFromInputFallback(t)}function Jn(t,e,n,r,i){var o={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&u(t)||a(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,Un(o)}function Kn(t,e,n,r){return Jn(t,e,n,r,!1)}i.createFromInputFallback=j("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var $n=j("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()})),Qn=j("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:y()}));function Zn(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Kn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function tr(){return Zn("isBefore",[].slice.call(arguments,0))}function er(){return Zn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(t){var e,n,r=!1,i=rr.length;for(e in t)if(l(t,e)&&(-1===Vt.call(rr,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<i;++n)if(t[rr[n]]){if(r)return!1;parseFloat(t[rr[n]])!==dt(t[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ar(){return Cr(NaN)}function sr(t){var e=ot(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=ir(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function lr(t){return t instanceof sr}function ur(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function cr(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&dt(t[r])!==dt(e[r]))&&a++;return a+o}function dr(t,e){H(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+I(~~(t/60),2)+e+I(~~t%60,2)}))}dr("Z",":"),dr("ZZ",""),Lt("Z",At),Lt("ZZ",At),Ft(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=fr(At,t)}));var hr=/([\+\-]|\d\d)/gi;function fr(t,e){var n,r,i=(e||"").match(t);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(hr)||["-",0,0])[1]+dt(n[2]))?0:"+"===n[0]?r:-r}function pr(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(x(t)||h(t)?t.valueOf():Kn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Kn(t).local()}function mr(t){return-Math.round(t._d.getTimezoneOffset())}function gr(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"===typeof t){if(null===(t=fr(At,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=mr(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?Rr(this,Cr(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function br(t,e){return null!=t?("string"!==typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function vr(t){return this.utcOffset(0,t)}function yr(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(mr(this),"m")),this}function wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var t=fr(Mt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function kr(t){return!!this.isValid()&&(t=t?Kn(t).utcOffset():0,(this.utcOffset()-t)%60===0)}function _r(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Or(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return _(e,this),(e=Gn(e))._a?(t=e._isUTC?m(e._a):Kn(e._a),this._isDSTShifted=this.isValid()&&cr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Er(){return!!this.isValid()&&this._isUTC}function jr(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Sr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Cr(t,e){var n,r,i,o=t,a=null;return lr(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:d(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(a=Sr.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:dt(a[Ut])*n,h:dt(a[Gt])*n,m:dt(a[Xt])*n,s:dt(a[Jt])*n,ms:dt(ur(1e3*a[Kt]))*n}):(a=Pr.exec(t))?(n="-"===a[1]?-1:1,o={y:Tr(a[2],n),M:Tr(a[3],n),w:Tr(a[4],n),d:Tr(a[5],n),h:Tr(a[6],n),m:Tr(a[7],n),s:Tr(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=Ar(Kn(o.from),Kn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new sr(o),lr(t)&&l(t,"_locale")&&(r._locale=t._locale),lr(t)&&l(t,"_isValid")&&(r._isValid=t._isValid),r}function Tr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Mr(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ar(t,e){var n;return t.isValid()&&e.isValid()?(e=pr(e,t),t.isBefore(e)?n=Mr(t,e):((n=Mr(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Dr(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(C(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Rr(this,Cr(n,r),t),this}}function Rr(t,e,n,r){var o=e._milliseconds,a=ur(e._days),s=ur(e._months);t.isValid()&&(r=null==r||r,s&&ce(t,ft(t,"Month")+s*n),a&&pt(t,"Date",ft(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,a||s))}Cr.fn=sr.prototype,Cr.invalid=ar;var Lr=Dr(1,"add"),Ir=Dr(-1,"subtract");function Wr(t){return"string"===typeof t||t instanceof String}function zr(t){return x(t)||h(t)||Wr(t)||d(t)||Fr(t)||Nr(t)||null===t||void 0===t}function Nr(t){var e,n,r=s(t)&&!u(t),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(e=0;e<a;e+=1)n=o[e],i=i||l(t,n);return r&&i}function Fr(t){var e=a(t),n=!1;return e&&(n=0===t.filter((function(e){return!d(e)&&Wr(t)})).length),e&&n}function Hr(t){var e,n,r=s(t)&&!u(t),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<o.length;e+=1)n=o[e],i=i||l(t,n);return r&&i}function Br(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Vr(t,e){1===arguments.length&&(arguments[0]?zr(arguments[0])?(t=arguments[0],e=void 0):Hr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Kn(),r=pr(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=e&&(T(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,Kn(n)))}function qr(){return new O(this)}function Yr(t,e){var n=x(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function Ur(t,e){var n=x(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Gr(t,e,n,r){var i=x(t)?t:Kn(t),o=x(e)?e:Kn(e);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Xr(t,e){var n,r=x(t)?t:Kn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Jr(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Kr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function $r(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=pr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=it(e)){case"year":o=Qr(this,r)/12;break;case"month":o=Qr(this,r);break;case"quarter":o=Qr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:ct(o)}function Qr(t,e){if(t.date()<e.date())return-Qr(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function Zr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ti(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?q(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",q(n,"Z")):q(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(t+e+n+r)}function ni(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=q(this,t);return this.localeData().postformat(e)}function ri(t,e){return this.isValid()&&(x(t)&&t.isValid()||Kn(t).isValid())?Cr({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from(Kn(),t)}function oi(t,e){return this.isValid()&&(x(t)&&t.isValid()||Kn(t).isValid())?Cr({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ai(t){return this.to(Kn(),t)}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=yn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ui(){return this._locale}var ci=1e3,di=60*ci,hi=60*di,fi=3506328*hi;function pi(t,e){return(t%e+e)%e}function mi(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-fi:new Date(t,e,n).valueOf()}function gi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-fi:Date.UTC(t,e,n)}function bi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:mi,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=pi(e+(this._isUTC?0:this.utcOffset()*di),hi);break;case"minute":e=this._d.valueOf(),e-=pi(e,di);break;case"second":e=this._d.valueOf(),e-=pi(e,ci)}return this._d.setTime(e),i.updateOffset(this,!0),this}function vi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:mi,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=hi-pi(e+(this._isUTC?0:this.utcOffset()*di),hi)-1;break;case"minute":e=this._d.valueOf(),e+=di-pi(e,di)-1;break;case"second":e=this._d.valueOf(),e+=ci-pi(e,ci)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function wi(){return Math.floor(this.valueOf()/1e3)}function ki(){return new Date(this.valueOf())}function _i(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Oi(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function xi(){return this.isValid()?this.toISOString():null}function Ei(){return v(this)}function ji(){return p({},b(this))}function Si(){return b(this).overflow}function Pi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ci(t,e){var n,r,o,a=this._eras||yn("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"===typeof a[n].since&&(o=i(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Ti(t,e,n){var r,i,o,a,s,l=this.eras();for(t=t.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return l[r];break;case"NNNN":if(o===t)return l[r];break;case"NNNNN":if(s===t)return l[r]}else if([o,a,s].indexOf(t)>=0)return l[r]}function Mi(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n}function Ai(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].name;if(r[t].until<=n&&n<=r[t].since)return r[t].name}return""}function Di(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""}function Ri(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].abbr;if(r[t].until<=n&&n<=r[t].since)return r[t].abbr}return""}function Li(){var t,e,n,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-i(o[t].since).year())*n+o[t].offset;return this.year()}function Ii(t){return l(this,"_erasNameRegex")||Vi.call(this),t?this._erasNameRegex:this._erasRegex}function Wi(t){return l(this,"_erasAbbrRegex")||Vi.call(this),t?this._erasAbbrRegex:this._erasRegex}function zi(t){return l(this,"_erasNarrowRegex")||Vi.call(this),t?this._erasNarrowRegex:this._erasRegex}function Ni(t,e){return e.erasAbbrRegex(t)}function Fi(t,e){return e.erasNameRegex(t)}function Hi(t,e){return e.erasNarrowRegex(t)}function Bi(t,e){return e._eraYearOrdinalRegex||Ct}function Vi(){var t,e,n=[],r=[],i=[],o=[],a=this.eras();for(t=0,e=a.length;t<e;++t)r.push(zt(a[t].name)),n.push(zt(a[t].abbr)),i.push(zt(a[t].narrow)),o.push(zt(a[t].name)),o.push(zt(a[t].abbr)),o.push(zt(a[t].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function qi(t,e){H(0,[t,t.length],0,e)}function Yi(t){return $i.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ui(t){return $i.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Gi(){return xe(this.year(),1,4)}function Xi(){return xe(this.isoWeekYear(),1,4)}function Ji(){var t=this.localeData()._week;return xe(this.year(),t.dow,t.doy)}function Ki(){var t=this.localeData()._week;return xe(this.weekYear(),t.dow,t.doy)}function $i(t,e,n,r,i){var o;return null==t?Oe(this,r,i).year:(e>(o=xe(t,r,i))&&(e=o),Qi.call(this,t,e,n,r,i))}function Qi(t,e,n,r,i){var o=_e(t,e,n,r,i),a=we(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Zi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Lt("N",Ni),Lt("NN",Ni),Lt("NNN",Ni),Lt("NNNN",Fi),Lt("NNNNN",Hi),Ft(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?b(n).era=i:b(n).invalidEra=t})),Lt("y",Ct),Lt("yy",Ct),Lt("yyy",Ct),Lt("yyyy",Ct),Lt("yo",Bi),Ft(["y","yy","yyy","yyyy"],qt),Ft(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[qt]=n._locale.eraYearOrdinalParse(t,i):e[qt]=parseInt(t,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),qi("gggg","weekYear"),qi("ggggg","weekYear"),qi("GGGG","isoWeekYear"),qi("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Lt("G",Tt),Lt("g",Tt),Lt("GG",Ot,yt),Lt("gg",Ot,yt),Lt("GGGG",St,kt),Lt("gggg",St,kt),Lt("GGGGG",Pt,_t),Lt("ggggg",Pt,_t),Ht(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=dt(t)})),Ht(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),H("Q",0,"Qo","quarter"),rt("quarter","Q"),st("quarter",7),Lt("Q",vt),Ft("Q",(function(t,e){e[Yt]=3*(dt(t)-1)})),H("D",["DD",2],"Do","date"),rt("date","D"),st("date",9),Lt("D",Ot),Lt("DD",Ot,yt),Lt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Ft(["D","DD"],Ut),Ft("Do",(function(t,e){e[Ut]=dt(t.match(Ot)[0])}));var to=ht("Date",!0);function eo(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),st("dayOfYear",4),Lt("DDD",jt),Lt("DDDD",wt),Ft(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=dt(t)})),H("m",["mm",2],0,"minute"),rt("minute","m"),st("minute",14),Lt("m",Ot),Lt("mm",Ot,yt),Ft(["m","mm"],Xt);var no=ht("Minutes",!1);H("s",["ss",2],0,"second"),rt("second","s"),st("second",15),Lt("s",Ot),Lt("ss",Ot,yt),Ft(["s","ss"],Jt);var ro,io,oo=ht("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),st("millisecond",16),Lt("S",jt,vt),Lt("SS",jt,yt),Lt("SSS",jt,wt),ro="SSSS";ro.length<=9;ro+="S")Lt(ro,Ct);function ao(t,e){e[Kt]=dt(1e3*("0."+t))}for(ro="S";ro.length<=9;ro+="S")Ft(ro,ao);function so(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=ht("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var uo=O.prototype;function co(t){return Kn(1e3*t)}function ho(){return Kn.apply(null,arguments).parseZone()}function fo(t){return t}uo.add=Lr,uo.calendar=Vr,uo.clone=qr,uo.diff=$r,uo.endOf=vi,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=ai,uo.get=mt,uo.invalidAt=Si,uo.isAfter=Yr,uo.isBefore=Ur,uo.isBetween=Gr,uo.isSame=Xr,uo.isSameOrAfter=Jr,uo.isSameOrBefore=Kr,uo.isValid=Ei,uo.lang=li,uo.locale=si,uo.localeData=ui,uo.max=Qn,uo.min=$n,uo.parsingFlags=ji,uo.set=gt,uo.startOf=bi,uo.subtract=Ir,uo.toArray=_i,uo.toObject=Oi,uo.toDate=ki,uo.toISOString=ti,uo.inspect=ei,"undefined"!==typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=xi,uo.toString=Zr,uo.unix=wi,uo.valueOf=yi,uo.creationData=Pi,uo.eraName=Ai,uo.eraNarrow=Di,uo.eraAbbr=Ri,uo.eraYear=Li,uo.year=be,uo.isLeapYear=ve,uo.weekYear=Yi,uo.isoWeekYear=Ui,uo.quarter=uo.quarters=Zi,uo.month=de,uo.daysInMonth=he,uo.week=uo.weeks=Ce,uo.isoWeek=uo.isoWeeks=Te,uo.weeksInYear=Ji,uo.weeksInWeekYear=Ki,uo.isoWeeksInYear=Gi,uo.isoWeeksInISOWeekYear=Xi,uo.date=to,uo.day=uo.days=Ye,uo.weekday=Ue,uo.isoWeekday=Ge,uo.dayOfYear=eo,uo.hour=uo.hours=on,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=io,uo.utcOffset=gr,uo.utc=vr,uo.local=yr,uo.parseZone=wr,uo.hasAlignedHourOffset=kr,uo.isDST=_r,uo.isLocal=xr,uo.isUtcOffset=Er,uo.isUtc=jr,uo.isUTC=jr,uo.zoneAbbr=so,uo.zoneName=lo,uo.dates=j("dates accessor is deprecated. Use date instead.",to),uo.months=j("months accessor is deprecated. Use month instead",de),uo.years=j("years accessor is deprecated. Use year instead",be),uo.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",br),uo.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Or);var po=D.prototype;function mo(t,e,n,r){var i=yn(),o=m().set(r,e);return i[n](o,t)}function go(t,e,n){if(d(t)&&(e=t,t=void 0),t=t||"",null!=e)return mo(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(t,r,n,"month");return i}function bo(t,e,n,r){"boolean"===typeof t?(d(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,d(e)&&(n=e,e=void 0),e=e||"");var i,o=yn(),a=t?o._week.dow:0,s=[];if(null!=n)return mo(e,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=mo(e,(i+a)%7,r,"day");return s}function vo(t,e){return go(t,e,"months")}function yo(t,e){return go(t,e,"monthsShort")}function wo(t,e,n){return bo(t,e,n,"weekdays")}function ko(t,e,n){return bo(t,e,n,"weekdaysShort")}function _o(t,e,n){return bo(t,e,n,"weekdaysMin")}po.calendar=L,po.longDateFormat=G,po.invalidDate=J,po.ordinal=Q,po.preparse=fo,po.postformat=fo,po.relativeTime=tt,po.pastFuture=et,po.set=M,po.eras=Ci,po.erasParse=Ti,po.erasConvertYear=Mi,po.erasAbbrRegex=Wi,po.erasNameRegex=Ii,po.erasNarrowRegex=zi,po.months=ae,po.monthsShort=se,po.monthsParse=ue,po.monthsRegex=pe,po.monthsShortRegex=fe,po.week=Ee,po.firstDayOfYear=Pe,po.firstDayOfWeek=Se,po.weekdays=Fe,po.weekdaysMin=Be,po.weekdaysShort=He,po.weekdaysParse=qe,po.weekdaysRegex=Xe,po.weekdaysShortRegex=Je,po.weekdaysMinRegex=Ke,po.isPM=nn,po.meridiem=an,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=j("moment.lang is deprecated. Use moment.locale instead.",gn),i.langData=j("moment.langData is deprecated. Use moment.localeData instead.",yn);var Oo=Math.abs;function xo(){var t=this._data;return this._milliseconds=Oo(this._milliseconds),this._days=Oo(this._days),this._months=Oo(this._months),t.milliseconds=Oo(t.milliseconds),t.seconds=Oo(t.seconds),t.minutes=Oo(t.minutes),t.hours=Oo(t.hours),t.months=Oo(t.months),t.years=Oo(t.years),this}function Eo(t,e,n,r){var i=Cr(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function jo(t,e){return Eo(this,t,e,1)}function So(t,e){return Eo(this,t,e,-1)}function Po(t){return t<0?Math.floor(t):Math.ceil(t)}function Co(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Po(Mo(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=ct(o/1e3),l.seconds=t%60,e=ct(t/60),l.minutes=e%60,n=ct(e/60),l.hours=n%24,a+=ct(n/24),s+=i=ct(To(a)),a-=Po(Mo(i)),r=ct(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function To(t){return 4800*t/146097}function Mo(t){return 146097*t/4800}function Ao(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=it(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+To(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Mo(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Do(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*dt(this._months/12):NaN}function Ro(t){return function(){return this.as(t)}}var Lo=Ro("ms"),Io=Ro("s"),Wo=Ro("m"),zo=Ro("h"),No=Ro("d"),Fo=Ro("w"),Ho=Ro("M"),Bo=Ro("Q"),Vo=Ro("y");function qo(){return Cr(this)}function Yo(t){return t=it(t),this.isValid()?this[t+"s"]():NaN}function Uo(t){return function(){return this.isValid()?this._data[t]:NaN}}var Go=Uo("milliseconds"),Xo=Uo("seconds"),Jo=Uo("minutes"),Ko=Uo("hours"),$o=Uo("days"),Qo=Uo("months"),Zo=Uo("years");function ta(){return ct(this.days()/7)}var ea=Math.round,na={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ra(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ia(t,e,n,r){var i=Cr(t).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),l=ea(i.as("d")),u=ea(i.as("M")),c=ea(i.as("w")),d=ea(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=e,h[3]=+t>0,h[4]=r,ra.apply(null,h)}function oa(t){return void 0===t?ea:"function"===typeof t&&(ea=t,!0)}function aa(t,e){return void 0!==na[t]&&(void 0===e?na[t]:(na[t]=e,"s"===t&&(na.ss=e-1),!0))}function sa(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=na;return"object"===typeof t&&(e=t,t=!1),"boolean"===typeof t&&(i=t),"object"===typeof e&&(o=Object.assign({},na,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),r=ia(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var la=Math.abs;function ua(t){return(t>0)-(t<0)||+t}function ca(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,o,a,s,l=la(this._milliseconds)/1e3,u=la(this._days),c=la(this._months),d=this.asSeconds();return d?(t=ct(l/60),e=ct(t/60),l%=60,t%=60,n=ct(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ua(this._months)!==ua(d)?"-":"",a=ua(this._days)!==ua(d)?"-":"",s=ua(this._milliseconds)!==ua(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+r+"S":"")):"P0D"}var da=sr.prototype;return da.isValid=or,da.abs=xo,da.add=jo,da.subtract=So,da.as=Ao,da.asMilliseconds=Lo,da.asSeconds=Io,da.asMinutes=Wo,da.asHours=zo,da.asDays=No,da.asWeeks=Fo,da.asMonths=Ho,da.asQuarters=Bo,da.asYears=Vo,da.valueOf=Do,da._bubble=Co,da.clone=qo,da.get=Yo,da.milliseconds=Go,da.seconds=Xo,da.minutes=Jo,da.hours=Ko,da.days=$o,da.weeks=ta,da.months=Qo,da.years=Zo,da.humanize=sa,da.toISOString=ca,da.toString=ca,da.toJSON=ca,da.locale=si,da.localeData=ui,da.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),da.lang=li,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Lt("x",Tt),Lt("X",Dt),Ft("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Ft("x",(function(t,e,n){n._d=new Date(dt(t))})),i.version="2.29.4",o(Kn),i.fn=uo,i.min=tr,i.max=er,i.now=nr,i.utc=m,i.unix=co,i.months=vo,i.isDate=h,i.locale=gn,i.invalid=y,i.duration=Cr,i.isMoment=x,i.weekdays=wo,i.parseZone=ho,i.localeData=yn,i.isDuration=lr,i.monthsShort=yo,i.weekdaysMin=_o,i.defineLocale=bn,i.updateLocale=vn,i.locales=wn,i.weekdaysShort=ko,i.normalizeUnits=it,i.relativeTimeRounding=oa,i.relativeTimeThreshold=aa,i.calendarFormat=Br,i.prototype=uo,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(140)(t))},function(t,e,n){"use strict";n.r(e),n.d(e,"BaseController",(function(){return b}));var r=n(1),i=n(10),o=n(11),a=n(22),s=n(50),l=n(28);function u(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function m(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(p,t);var e,n,r,c=f(p);function p(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"connect",value:function(){Object(i.a)(this),Object(l.e)(this.pageValue,this.filterTypeValue,this.menuTarget),Object(l.f)(this.pageValue,this.selectTarget)}},{key:"filter",value:function(t){var e="true"==t.currentTarget.dataset.selected;t.currentTarget.dataset.selected=!e,Object(l.g)(this.pageValue,this.filterTypeValue,this.menuTarget),this.applyFilter(),Object(l.f)(this.pageValue,this.selectTarget)}},{key:"selectAll",value:function(){Object(l.b)(this.selectTarget),Object(l.d)(this.filterTypeValue),Object(l.g)(this.pageValue,this.filterTypeValue,this.menuTarget),this.applyFilter()}},{key:"removeAll",value:function(){Object(l.a)(this.selectTarget),Object(l.c)(this.filterTypeValue),Object(l.g)(this.pageValue,this.filterTypeValue,this.menuTarget),this.applyFilter()}},{key:"toggleMenu",value:function(){var t="true"==this.menuTarget.parentElement.dataset.open;this.menuTarget.parentElement.dataset.open=!t}},{key:"closeMenu",value:function(){this.menuTarget.parentElement.dataset.open=!1}},{key:"reset",value:function(){this.closeMenu(),this.selectAll()}},{key:"query",value:function(){var t=u(document.querySelectorAll(".".concat(this.filterTypeValue,"-filter")));Object(a.a)(this.queryInputTarget.value,t,"end")}},{key:"applyFilter",value:function(){var t="apply".concat(Object(s.a)(this.pageValue),"Filters");o[t]()}}])&&d(e.prototype,n),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),p}(r.Controller);m(b,"targets",[]),m(b,"values",{})},function(t,e,n){"use strict";function r(t){var e=document.createElement("div");return e.innerHTML=t,e.firstElementChild}function i(t){var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"BaseFilterController",(function(){return h}));var r=n(1),i=n(10),o=n(8);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(d,t);var e,n,r,s=c(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),s.apply(this,arguments)}return e=d,(n=[{key:"connect",value:function(){Object(i.a)(this)}},{key:"clickOutside",value:function(){this.hasMenuTarget&&this.menuTarget.classList.contains("menu-opened")&&this.toggleMenu()}},{key:"filter",value:function(t){var e=t.currentTarget.dataset["desktop-Hr-Filters-".concat(this.controller(),"FilterTarget")];this.filters=Object(o.getFilters)(),"Organization"===this.controller()&&(e=+e),this.isFiltered(e)?this.remove(e):this.add(e),this.applyFilters(),Object(o.refreshTabulator)(),this.toggleCheck(t.currentTarget),this.toggleButtonActive(),Object(o.setPagesNumber)(),Object(o.updateTracksCount)()}},{key:"selectAll",value:function(){var t=this,e=a(this.menuTarget.querySelectorAll(["[data-desktop--hr--filters--".concat(this.htmlTarget(),"-filter-target]")])),n=e.map((function(e){return e.dataset["desktop-Hr-Filters-".concat(t.controller(),"FilterTarget")]}));"Organization"===this.controller()&&(n.shift(),n=n.map((function(t){return+t})),e.shift()),this.setFilters(this.column(),n),e.forEach((function(t){return t.lastElementChild.classList.remove("d-none")})),this.applyFilters(),Object(o.refreshTabulator)(),this.toggleButtonActive(),Object(o.setPagesNumber)(),Object(o.updateTracksCount)()}},{key:"removeAll",value:function(){var t=a(this.menuTarget.querySelectorAll(["[data-desktop--hr--filters--".concat(this.htmlTarget(),"-filter-target]")]));"Organization"===this.controller()&&t.shift(),this.setFilters(this.column(),[""]),t.forEach((function(t){return t.lastElementChild.classList.add("d-none")})),this.applyFilters(),this.toggleButtonActive(),Object(o.setPagesNumber)(),Object(o.updateTracksCount)()}},{key:"setFilters",value:function(t,e){var n=Object(o.getFilters)();n.column_filters[t]=e,document.getElementById("filters").dataset.filters=JSON.stringify(n)}},{key:"applyFilters",value:function(){var t=Tabulator.findTable("#tracks")[0],e=Object(o.getFilters)().column_filters,n=window.scrollY;t.setFilter(Object(o.adaptFiltersForTabulator)(e)),window.scrollTo({top:n})}},{key:"isFiltered",value:function(t){return this.filters.column_filters[this.column()].includes(t)}},{key:"add",value:function(t){var e=this.filters.column_filters[this.column()];e.push(t),e.includes("")&&e.splice(0,1),this.setFilters(this.column(),e)}},{key:"remove",value:function(t){var e=this.filters.column_filters[this.column()],n=e.indexOf(t);e.splice(n,1),0===e.length&&e.push(""),this.setFilters(this.column(),e)}},{key:"toggleButtonActive",value:function(){var t=this,e=this.column().replace("_ids",""),n=document.querySelector(".".concat(e,"-column-filter")),r=document.querySelector(".".concat(e,"-filter-icon")),i=Tabulator.findTable("#tracks")[0].getFilters().find((function(e){return e.field===t.column()}));if(this.isColumnFiltered(i)){n.classList.add("active"),r.classList.add("fa-times"),r.classList.remove("fa-chevron-up");var o="date"===e?"resetFilter":"selectAll";r.parentElement.setAttribute("data-action","click->desktop--hr--filters--".concat(e,"-filter#").concat(o))}else n.classList.remove("active"),r.classList.add("fa-chevron-down"),r.classList.remove("fa-times"),r.parentElement.setAttribute("data-action","click->desktop--hr--filters--".concat(e,"-filter#toggleMenu"))}},{key:"isColumnFiltered",value:function(t){var e=document.getElementById("default-values"),n=[e.dataset.mobilities.split(" ").length,e.dataset.statuses.split(" ").length,e.dataset.organizationIds.split(" ").length],r=n[0],i=n[1],o=n[2],a="mobility"===t.field&&t.value.length<r,s="status"===t.field&&t.value.length<i,l="date"===t.field&&t.value.length>0,u="organization_ids"===t.field&&t.value.length<o;return a||s||l||u}},{key:"toggleCheck",value:function(t){t.lastElementChild.classList.toggle("d-none")}},{key:"toggleMenu",value:function(){var t=this;document.querySelectorAll(".select").forEach((function(e){e.classList.contains("select-opened")&&t.selectTarget!=e&&Object(o.toggleColumnFilter)(e,e.parentElement.nextElementSibling)})),Object(o.toggleColumnFilter)(this.selectTarget,this.menuTarget)}}])&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.Controller)},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function l(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function u(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var c=u(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=u(/Edge/i),h=u(/firefox/i),f=u(/safari/i)&&!u(/chrome/i)&&!u(/android/i),p=u(/iP(ad|od|hone)/i),m=u(/chrome/i)&&u(/android/i),g={capture:!1,passive:!1};function b(t,e,n){t.addEventListener(e,n,!c&&g)}function v(t,e,n){t.removeEventListener(e,n,!c&&g)}function y(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function w(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function k(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&y(t,e):y(t,e))||r&&t===n)return t;if(t===n)break}while(t=w(t))}return null}var _,O=/\s+/g;function x(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(O," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(O," ")}}function E(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"===typeof n?"":"px")}}function j(t,e){var n="";if("string"===typeof t)n=t;else do{var r=E(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function S(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function P(){var t=document.scrollingElement;return t||document.documentElement}function C(t,e,n,r,i){if(t.getBoundingClientRect||t===window){var o,a,s,l,u,d,h;if(t!==window&&t.parentNode&&t!==P()?(a=(o=t.getBoundingClientRect()).top,s=o.left,l=o.bottom,u=o.right,d=o.height,h=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!c))do{if(i&&i.getBoundingClientRect&&("none"!==E(i,"transform")||n&&"static"!==E(i,"position"))){var f=i.getBoundingClientRect();a-=f.top+parseInt(E(i,"border-top-width")),s-=f.left+parseInt(E(i,"border-left-width")),l=a+o.height,u=s+o.width;break}}while(i=i.parentNode);if(r&&t!==window){var p=j(i||t),m=p&&p.a,g=p&&p.d;p&&(l=(a/=g)+(d/=g),u=(s/=m)+(h/=m))}return{top:a,left:s,bottom:l,right:u,width:h,height:d}}}function T(t,e,n){for(var r=L(t,!0),i=C(t)[e];r;){var o=C(r)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return r;if(r===P())break;r=L(r,!1)}return!1}function M(t,e,n,r){for(var i=0,o=0,a=t.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==Nt.ghost&&(r||a[o]!==Nt.dragged)&&k(a[o],n.draggable,t,!1)){if(i===e)return a[o];i++}o++}return null}function A(t,e){for(var n=t.lastElementChild;n&&(n===Nt.ghost||"none"===E(n,"display")||e&&!y(n,e));)n=n.previousElementSibling;return n||null}function D(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Nt.clone||e&&!y(t,e)||n++;return n}function R(t){var e=0,n=0,r=P();if(t)do{var i=j(t),o=i.a,a=i.d;e+=t.scrollLeft*o,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function L(t,e){if(!t||!t.getBoundingClientRect)return P();var n=t,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=E(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return P();if(r||e)return n;r=!0}}}while(n=n.parentNode);return P()}function I(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function W(t,e){return function(){if(!_){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),_=setTimeout((function(){_=void 0}),e)}}}function z(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function N(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var F="Sortable"+(new Date).getTime();function H(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==E(t,"display")&&t!==Nt.ghost){e.push({target:t,rect:C(t)});var n=i({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=j(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var i=!1,o=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,s=C(n),l=n.prevFromRect,u=n.prevToRect,c=t.rect,d=j(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&I(l,s)&&!I(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(e=function(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}(c,l,u,r.options)),I(s,a)||(n.prevFromRect=a,n.prevToRect=s,e||(e=r.options.animation),r.animate(n,c,s,e)),e&&(i=!0,o=Math.max(o,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),i?t=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,r){if(r){E(t,"transition",""),E(t,"transform","");var i=j(this.el),o=i&&i.a,a=i&&i.d,s=(e.left-n.left)/(o||1),l=(e.top-n.top)/(a||1);t.animatingX=!!s,t.animatingY=!!l,E(t,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),E(t,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),E(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){E(t,"transition",""),E(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),r)}}}}var B=[],V={initializeByDefault:!0},q={mount:function(t){for(var e in V)V.hasOwnProperty(e)&&!(e in t)&&(t[e]=V[e]);B.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),B.push(t)},pluginEvent:function(t,e,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=t+"Global";B.forEach((function(r){e[r.pluginName]&&(e[r.pluginName][o]&&e[r.pluginName][o](i({sortable:e},n)),e.options[r.pluginName]&&e[r.pluginName][t]&&e[r.pluginName][t](i({sortable:e},n)))}))},initializePlugins:function(t,e,n,r){for(var i in B.forEach((function(r){var i=r.pluginName;if(t.options[i]||r.initializeByDefault){var o=new r(t,e,t.options);o.sortable=t,o.options=t.options,t[i]=o,s(n,o.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var o=this.modifyOption(t,i,t.options[i]);"undefined"!==typeof o&&(t.options[i]=o)}},getEventProperties:function(t,e){var n={};return B.forEach((function(r){"function"===typeof r.eventProperties&&s(n,r.eventProperties.call(e[r.pluginName],t))})),n},modifyOption:function(t,e,n){var r;return B.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[e]&&(r=i.optionListeners[e].call(t[i.pluginName],n))})),r}};function Y(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,a=t.cloneEl,s=t.toEl,l=t.fromEl,u=t.oldIndex,h=t.newIndex,f=t.oldDraggableIndex,p=t.newDraggableIndex,m=t.originalEvent,g=t.putSortable,b=t.extraEventProperties;if(e=e||n&&n[F]){var v,y=e.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||c||d?(v=document.createEvent("Event")).initEvent(r,!0,!0):v=new CustomEvent(r,{bubbles:!0,cancelable:!0}),v.to=s||n,v.from=l||n,v.item=o||n,v.clone=a,v.oldIndex=u,v.newIndex=h,v.oldDraggableIndex=f,v.newDraggableIndex=p,v.originalEvent=m,v.pullMode=g?g.lastPutMode:void 0;var k=i(i({},b),q.getEventProperties(r,e));for(var _ in k)v[_]=k[_];n&&n.dispatchEvent(v),y[w]&&y[w].call(e,v)}}var U=["evt"],G=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=l(n,U);q.pluginEvent.bind(Nt)(t,e,i({dragEl:J,parentEl:K,ghostEl:$,rootEl:Q,nextEl:Z,lastDownEl:tt,cloneEl:et,cloneHidden:nt,dragStarted:mt,putSortable:lt,activeSortable:Nt.active,originalEvent:r,oldIndex:rt,oldDraggableIndex:ot,newIndex:it,newDraggableIndex:at,hideGhostForTarget:Lt,unhideGhostForTarget:It,cloneNowHidden:function(){nt=!0},cloneNowShown:function(){nt=!1},dispatchSortableEvent:function(t){X({sortable:e,name:t,originalEvent:r})}},o))};function X(t){Y(i({putSortable:lt,cloneEl:et,targetEl:J,rootEl:Q,oldIndex:rt,oldDraggableIndex:ot,newIndex:it,newDraggableIndex:at},t))}var J,K,$,Q,Z,tt,et,nt,rt,it,ot,at,st,lt,ut,ct,dt,ht,ft,pt,mt,gt,bt,vt,yt,wt=!1,kt=!1,_t=[],Ot=!1,xt=!1,Et=[],jt=!1,St=[],Pt="undefined"!==typeof document,Ct=p,Tt=d||c?"cssFloat":"float",Mt=Pt&&!m&&!p&&"draggable"in document.createElement("div"),At=function(){if(Pt){if(c)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Dt=function(t,e){var n=E(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=M(t,0,e),o=M(t,1,e),a=i&&E(i),s=o&&E(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+C(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+C(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Tt]||o&&"none"===n[Tt]&&l+u>r)?"vertical":"horizontal"},Rt=function(t){function e(t,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},r=t.group;r&&"object"==o(r)||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},Lt=function(){!At&&$&&E($,"display","none")},It=function(){!At&&$&&E($,"display","")};Pt&&!m&&document.addEventListener("click",(function(t){if(kt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),kt=!1,!1}),!0);var Wt=function(t){if(J){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,_t.some((function(t){var e=t[F].options.emptyInsertThreshold;if(e&&!A(t)){var n=C(t),r=i>=n.left-e&&i<=n.right+e,s=o>=n.top-e&&o<=n.bottom+e;return r&&s?a=t:void 0}})),a);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[F]._onDragOver(n)}}var i,o,a},zt=function(t){J&&J.parentNode[F]._isOutsideThisEl(t.target)};function Nt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=s({},e),t[F]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Dt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Nt.supportPointer&&"PointerEvent"in window&&!f,emptyInsertThreshold:5};for(var r in q.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var i in Rt(e),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Mt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),_t.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),s(this,H())}function Ft(t,e,n,r,i,o,a,s){var l,u,h=t[F],f=h.options.onMove;return!window.CustomEvent||c||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=i||e,l.relatedRect=o||C(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),f&&(u=f.call(h,l,a)),u}function Ht(t){t.draggable=!1}function Bt(){jt=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function qt(t){return setTimeout(t,0)}function Yt(t){return clearTimeout(t)}Nt.prototype={constructor:Nt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(gt=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,J):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,i=r.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=r.filter;if(function(t){St.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var r=e[n];r.checked&&St.push(r)}}(n),!J&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!f||!s||"SELECT"!==s.tagName.toUpperCase())&&(!(s=k(s,r.draggable,n,!1))||!s.animated)&&tt!==s){if(rt=D(s),ot=D(s,r.draggable),"function"===typeof u){if(u.call(this,t,s,this))return X({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),G("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=k(l,r.trim(),n,!1))return X({sortable:e,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),G("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());r.handle&&!k(l,r.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!J&&n.parentNode===o){var l=C(n);if(Q=o,K=(J=n).parentNode,Z=J.nextSibling,tt=n,st=a.group,Nt.dragged=J,ut={target:J,clientX:(e||t).clientX,clientY:(e||t).clientY},ft=ut.clientX-l.left,pt=ut.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,J.style["will-change"]="all",r=function(){G("delayEnded",i,{evt:t}),Nt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!h&&i.nativeDraggable&&(J.draggable=!0),i._triggerDragStart(t,e),X({sortable:i,name:"choose",originalEvent:t}),x(J,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){S(J,t.trim(),Ht)})),b(s,"dragover",Wt),b(s,"mousemove",Wt),b(s,"touchmove",Wt),b(s,"mouseup",i._onDrop),b(s,"touchend",i._onDrop),b(s,"touchcancel",i._onDrop),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,J.draggable=!0),G("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||c))r();else{if(Nt.eventCanceled)return void this._onDrop();b(s,"mouseup",i._disableDelayedDrag),b(s,"touchend",i._disableDelayedDrag),b(s,"touchcancel",i._disableDelayedDrag),b(s,"mousemove",i._delayedDragTouchMoveHandler),b(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&b(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){J&&Ht(J),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):b(document,e?"touchmove":"mousemove",this._onTouchMove):(b(J,"dragend",this),b(Q,"dragstart",this._onDragStart));try{document.selection?qt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(wt=!1,Q&&J){G("dragStarted",this,{evt:e}),this.nativeDraggable&&b(document,"dragover",zt);var n=this.options;!t&&x(J,n.dragClass,!1),x(J,n.ghostClass,!0),Nt.active=this,t&&this._appendGhost(),X({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ct){this._lastX=ct.clientX,this._lastY=ct.clientY,Lt();for(var t=document.elementFromPoint(ct.clientX,ct.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ct.clientX,ct.clientY))!==e;)e=t;if(J.parentNode[F]._isOutsideThisEl(t),e)do{if(e[F]){if(e[F]._onDragOver({clientX:ct.clientX,clientY:ct.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);It()}},_onTouchMove:function(t){if(ut){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=$&&j($,!0),a=$&&o&&o.a,s=$&&o&&o.d,l=Ct&&yt&&R(yt),u=(i.clientX-ut.clientX+r.x)/(a||1)+(l?l[0]-Et[0]:0)/(a||1),c=(i.clientY-ut.clientY+r.y)/(s||1)+(l?l[1]-Et[1]:0)/(s||1);if(!Nt.active&&!wt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if($){o?(o.e+=u-(dt||0),o.f+=c-(ht||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");E($,"webkitTransform",d),E($,"mozTransform",d),E($,"msTransform",d),E($,"transform",d),dt=u,ht=c,ct=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!$){var t=this.options.fallbackOnBody?document.body:Q,e=C(J,!0,Ct,!0,t),n=this.options;if(Ct){for(yt=t;"static"===E(yt,"position")&&"none"===E(yt,"transform")&&yt!==document;)yt=yt.parentNode;yt!==document.body&&yt!==document.documentElement?(yt===document&&(yt=P()),e.top+=yt.scrollTop,e.left+=yt.scrollLeft):yt=P(),Et=R(yt)}x($=J.cloneNode(!0),n.ghostClass,!1),x($,n.fallbackClass,!0),x($,n.dragClass,!0),E($,"transition",""),E($,"transform",""),E($,"box-sizing","border-box"),E($,"margin",0),E($,"top",e.top),E($,"left",e.left),E($,"width",e.width),E($,"height",e.height),E($,"opacity","0.8"),E($,"position",Ct?"absolute":"fixed"),E($,"zIndex","100000"),E($,"pointerEvents","none"),Nt.ghost=$,t.appendChild($),E($,"transform-origin",ft/parseInt($.style.width)*100+"% "+pt/parseInt($.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,i=n.options;G("dragStart",this,{evt:t}),Nt.eventCanceled?this._onDrop():(G("setupClone",this),Nt.eventCanceled||((et=N(J)).removeAttribute("id"),et.draggable=!1,et.style["will-change"]="",this._hideClone(),x(et,this.options.chosenClass,!1),Nt.clone=et),n.cloneId=qt((function(){G("clone",n),Nt.eventCanceled||(n.options.removeCloneOnHide||Q.insertBefore(et,J),n._hideClone(),X({sortable:n,name:"clone"}))})),!e&&x(J,i.dragClass,!0),e?(kt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(v(document,"mouseup",n._onDrop),v(document,"touchend",n._onDrop),v(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,J)),b(document,"drop",n),E(J,"transform","translateZ(0)")),wt=!0,n._dragStartId=qt(n._dragStarted.bind(n,e,t)),b(document,"selectstart",n),mt=!0,f&&E(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,r,o,a=this.el,s=t.target,l=this.options,u=l.group,c=Nt.active,d=st===u,h=l.sort,f=lt||c,p=this,m=!1;if(!jt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=k(s,l.draggable,a,!0),N("dragOver"),Nt.eventCanceled)return m;if(J.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return B(!1);if(kt=!1,c&&!l.disabled&&(d?h||(r=K!==Q):lt===this||(this.lastPutMode=st.checkPull(this,c,J,t))&&u.checkPut(this,c,J,t))){if(o="vertical"===this._getDirection(t,s),e=C(J),N("dragOverValid"),Nt.eventCanceled)return m;if(r)return K=Q,H(),this._hideClone(),N("revert"),Nt.eventCanceled||(Z?Q.insertBefore(J,Z):Q.appendChild(J)),B(!0);var g=A(a,l.draggable);if(!g||function(t,e,n){var r=C(A(n.el,n.options.draggable)),i=10;return e?t.clientX>r.right+i||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+i}(t,o,this)&&!g.animated){if(g===J)return B(!1);if(g&&a===t.target&&(s=g),s&&(n=C(s)),!1!==Ft(Q,a,J,e,s,n,t,!!s))return H(),g&&g.nextSibling?a.insertBefore(J,g.nextSibling):a.appendChild(J),K=a,V(),B(!0)}else if(g&&function(t,e,n){var r=C(M(n.el,0,n.options,!0)),i=10;return e?t.clientX<r.left-i||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-i||t.clientY<r.bottom&&t.clientX<r.left}(t,o,this)){var b=M(a,0,l,!0);if(b===J)return B(!1);if(n=C(s=b),!1!==Ft(Q,a,J,e,s,n,t,!1))return H(),a.insertBefore(J,b),K=a,V(),B(!0)}else if(s.parentNode===a){n=C(s);var v,y,w,_=J.parentNode!==a,O=!function(t,e,n){var r=n?t.left:t.top,i=n?t.right:t.bottom,o=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,l=n?e.width:e.height;return r===a||i===s||r+o/2===a+l/2}(J.animated&&J.toRect||e,s.animated&&s.toRect||n,o),j=o?"top":"left",S=T(s,"top","top")||T(J,"top","top"),P=S?S.scrollTop:void 0;if(gt!==s&&(y=n[j],Ot=!1,xt=!O&&l.invertSwap||_),v=function(t,e,n,r,i,o,a,s){var l=r?t.clientY:t.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!a)if(s&&vt<u*i){if(!Ot&&(1===bt?l>c+u*o/2:l<d-u*o/2)&&(Ot=!0),Ot)h=!0;else if(1===bt?l<c+vt:l>d-vt)return-bt}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return function(t){return D(J)<D(t)?1:-1}(e);if((h=h||a)&&(l<c+u*o/2||l>d-u*o/2))return l>c+u/2?1:-1;return 0}(t,s,n,o,O?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,xt,gt===s),0!==v){var R=D(J);do{R-=v,w=K.children[R]}while(w&&("none"===E(w,"display")||w===$))}if(0===v||w===s)return B(!1);gt=s,bt=v;var L=s.nextElementSibling,I=!1,W=Ft(Q,a,J,e,s,n,t,I=1===v);if(!1!==W)return 1!==W&&-1!==W||(I=1===W),jt=!0,setTimeout(Bt,30),H(),I&&!L?a.appendChild(J):s.parentNode.insertBefore(J,I?L:s),S&&z(S,0,P-S.scrollTop),K=J.parentNode,void 0===y||xt||(vt=Math.abs(y-C(s)[j])),V(),B(!0)}if(a.contains(J))return B(!1)}return!1}function N(l,u){G(l,p,i({evt:t,isOwner:d,axis:o?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:h,fromSortable:f,target:s,completed:B,onMove:function(n,r){return Ft(Q,a,J,e,n,C(n),t,r)},changed:V},u))}function H(){N("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function B(e){return N("dragOverCompleted",{insertion:e}),e&&(d?c._hideClone():c._showClone(p),p!==f&&(x(J,lt?lt.options.ghostClass:c.options.ghostClass,!1),x(J,l.ghostClass,!0)),lt!==p&&p!==Nt.active?lt=p:p===Nt.active&&lt&&(lt=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){N("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===J&&!J.animated||s===a&&!s.animated)&&(gt=null),l.dragoverBubble||t.rootEl||s===document||(J.parentNode[F]._isOutsideThisEl(t.target),!e&&Wt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function V(){it=D(J),at=D(J,l.draggable),X({sortable:p,name:"change",toEl:a,newIndex:it,newDraggableIndex:at,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",Wt),v(document,"mousemove",Wt),v(document,"touchmove",Wt)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;it=D(J),at=D(J,n.draggable),G("drop",this,{evt:t}),K=J&&J.parentNode,it=D(J),at=D(J,n.draggable),Nt.eventCanceled||(wt=!1,xt=!1,Ot=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Yt(this.cloneId),Yt(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&E(document.body,"user-select",""),E(J,"transform",""),t&&(mt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),$&&$.parentNode&&$.parentNode.removeChild($),(Q===K||lt&&"clone"!==lt.lastPutMode)&&et&&et.parentNode&&et.parentNode.removeChild(et),J&&(this.nativeDraggable&&v(J,"dragend",this),Ht(J),J.style["will-change"]="",mt&&!wt&&x(J,lt?lt.options.ghostClass:this.options.ghostClass,!1),x(J,this.options.chosenClass,!1),X({sortable:this,name:"unchoose",toEl:K,newIndex:null,newDraggableIndex:null,originalEvent:t}),Q!==K?(it>=0&&(X({rootEl:K,name:"add",toEl:K,fromEl:Q,originalEvent:t}),X({sortable:this,name:"remove",toEl:K,originalEvent:t}),X({rootEl:K,name:"sort",toEl:K,fromEl:Q,originalEvent:t}),X({sortable:this,name:"sort",toEl:K,originalEvent:t})),lt&&lt.save()):it!==rt&&it>=0&&(X({sortable:this,name:"update",toEl:K,originalEvent:t}),X({sortable:this,name:"sort",toEl:K,originalEvent:t})),Nt.active&&(null!=it&&-1!==it||(it=rt,at=ot),X({sortable:this,name:"end",toEl:K,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){G("nulling",this),Q=J=K=$=Z=et=tt=nt=ut=ct=mt=it=at=rt=ot=gt=bt=lt=st=Nt.dragged=Nt.ghost=Nt.clone=Nt.active=null,St.forEach((function(t){t.checked=!0})),St.length=dt=ht=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":J&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)k(t=n[r],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Vt(t));return e},sort:function(t,e){var n={},r=this.el;this.toArray().forEach((function(t,e){var i=r.children[e];k(i,this.options.draggable,r,!1)&&(n[t]=i)}),this),e&&this.captureAnimationState(),t.forEach((function(t){n[t]&&(r.removeChild(n[t]),r.appendChild(n[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return k(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var r=q.modifyOption(this,t,e);n[t]="undefined"!==typeof r?r:e,"group"===t&&Rt(n)},destroy:function(){G("destroy",this);var t=this.el;t[F]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),_t.splice(_t.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!nt){if(G("hideClone",this),Nt.eventCanceled)return;E(et,"display","none"),this.options.removeCloneOnHide&&et.parentNode&&et.parentNode.removeChild(et),nt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(nt){if(G("showClone",this),Nt.eventCanceled)return;J.parentNode!=Q||this.options.group.revertClone?Z?Q.insertBefore(et,Z):Q.appendChild(et):Q.insertBefore(et,J),this.options.group.revertClone&&this.animate(J,et),E(et,"display",""),nt=!1}}else this._hideClone()}},Pt&&b(document,"touchmove",(function(t){(Nt.active||wt)&&t.cancelable&&t.preventDefault()})),Nt.utils={on:b,off:v,css:E,find:S,is:function(t,e){return!!k(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:W,closest:k,toggleClass:x,clone:N,index:D,nextTick:qt,cancelNextTick:Yt,detectDirection:Dt,getChild:M},Nt.get=function(t){return t[F]},Nt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Nt.utils=i(i({},Nt.utils),t.utils)),q.mount(t)}))},Nt.create=function(t,e){return new Nt(t,e)},Nt.version="1.15.0";var Ut,Gt,Xt,Jt,Kt,$t,Qt=[],Zt=!1;function te(){Qt.forEach((function(t){clearInterval(t.pid)})),Qt=[]}function ee(){clearInterval($t)}var ne=W((function(t,e,n,r){if(e.scroll){var i,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,u=P(),c=!1;Gt!==n&&(Gt=n,te(),Ut=e.scroll,i=e.scrollFn,!0===Ut&&(Ut=L(n,!0)));var d=0,h=Ut;do{var f=h,p=C(f),m=p.top,g=p.bottom,b=p.left,v=p.right,y=p.width,w=p.height,k=void 0,_=void 0,O=f.scrollWidth,x=f.scrollHeight,j=E(f),S=f.scrollLeft,T=f.scrollTop;f===u?(k=y<O&&("auto"===j.overflowX||"scroll"===j.overflowX||"visible"===j.overflowX),_=w<x&&("auto"===j.overflowY||"scroll"===j.overflowY||"visible"===j.overflowY)):(k=y<O&&("auto"===j.overflowX||"scroll"===j.overflowX),_=w<x&&("auto"===j.overflowY||"scroll"===j.overflowY));var M=k&&(Math.abs(v-o)<=s&&S+y<O)-(Math.abs(b-o)<=s&&!!S),A=_&&(Math.abs(g-a)<=s&&T+w<x)-(Math.abs(m-a)<=s&&!!T);if(!Qt[d])for(var D=0;D<=d;D++)Qt[D]||(Qt[D]={});Qt[d].vx==M&&Qt[d].vy==A&&Qt[d].el===f||(Qt[d].el=f,Qt[d].vx=M,Qt[d].vy=A,clearInterval(Qt[d].pid),0==M&&0==A||(c=!0,Qt[d].pid=setInterval(function(){r&&0===this.layer&&Nt.active._onTouchMove(Kt);var e=Qt[this.layer].vy?Qt[this.layer].vy*l:0,n=Qt[this.layer].vx?Qt[this.layer].vx*l:0;"function"===typeof i&&"continue"!==i.call(Nt.dragged.parentNode[F],n,e,t,Kt,Qt[this.layer].el)||z(Qt[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==u&&(h=L(h,!1)));Zt=c}}),30),re=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,i=t.activeSortable,o=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=n||i;a();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ie(){}function oe(){}ie.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=M(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:re},s(ie,{pluginName:"revertOnSpill"}),oe.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:re},s(oe,{pluginName:"removeOnSpill"});Nt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):e.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),ee(),te(),clearTimeout(_),_=void 0},nulling:function(){Kt=Gt=Ut=Zt=$t=Xt=Jt=null,Qt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(r,i);if(Kt=t,e||this.options.forceAutoScrollFallback||d||c||f){ne(t,this.options,o,e);var a=L(o,!0);!Zt||$t&&r===Xt&&i===Jt||($t&&ee(),$t=setInterval((function(){var o=L(document.elementFromPoint(r,i),!0);o!==a&&(a=o,te()),ne(t,n.options,o,e)}),10),Xt=r,Jt=i)}else{if(!this.options.bubbleScroll||L(o,!0)===P())return void te();ne(t,this.options,L(o,!1),!1)}}},s(t,{pluginName:"scroll",initializeByDefault:!0})}),Nt.mount(oe,ie),e.a=Nt},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"f",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return d})),n.d(e,"e",(function(){return h}));var o=function(t,e){a(t,e)?s(e):l(e)},a=function(t,e){return e.parentElement.querySelectorAll(".".concat(t,"-filter[data-selected='false']")).length>0},s=function(t){return t.dataset.active=!0},l=function(t){return t.dataset.active=!1},u=function(t,e,n){var i=r(n.querySelectorAll(".".concat(e,"-filter[data-selected='true']"))).map((function(t){return t.dataset.value}));localStorage.setItem("".concat(t,"_").concat(e,"s"),JSON.stringify(i))},c=function(t){document.querySelectorAll(".".concat(t,"-filter")).forEach((function(t){return t.dataset.selected=!0}))},d=function(t){document.querySelectorAll(".".concat(t,"-filter")).forEach((function(t){return t.dataset.selected=!1}))},h=function(t,e,n){var i,o=r(n.querySelectorAll(".".concat(t,"-filter"))).map((function(t){return t.dataset.value})),a=localStorage.getItem("".concat(t,"_").concat(e,"s"))||localStorage.setItem("".concat(t,"_").concat(e,"s"),JSON.stringify(o)),s=document.querySelectorAll(".".concat(t,"-filter.").concat(e,"-filter")),l=r(s).map((function(t){return t.dataset.value}));try{i=JSON.parse(a)}catch(u){i=l}r(s).map((function(t){return t.dataset.value})).filter((function(t){return!i.includes(t)})).forEach((function(t){return f(n.querySelector(".".concat(e,'-filter[data-value="').concat(t,'"]')))}))},f=function(t){t.dataset.selected=!1}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(13),i=n(9);function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{environment:!0},n=JSON.parse(localStorage.getItem("informations_sorters")),o=JSON.parse(document.getElementById("informations").parentElement.dataset.translations),a=new r.b("#informations",{responsiveLayout:"hide",initialSort:n||[{column:"name",dir:"asc"}],pagination:"local",paginationCounter:function(t,e){return e+" - "+(e+t-1)},paginationSize:25,paginationButtonCount:0,movableColumns:!1,placeholder:document.querySelector('[data-code="no_resources_loaded"]').innerHTML,data:t,layout:"fitColumns",langs:{"fr-fr":{}},columns:[{field:"id",visible:!1},{field:"url",visible:!1},{field:"destroy_url",visible:!1},{field:"form_resource_ids",visible:!1},{field:"type",visible:!1},{field:"type_label",visible:!1},{field:"updated_at_value",visible:!1},{field:"validation",visible:!1},{title:o.title,field:"name",minWidth:200,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:o.environment,field:"full_unit_organization_names",visible:!1,download:!0},{title:o.environment,sorter:i.d,field:"multiple_unit_organizations",visible:e.environment,width:200,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,download:!1},{title:o.last_modification,field:"updated_at",width:160,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,sorter:function(t,e,n,r,i,o,a){return parseInt(n.getData().updated_at_value)-parseInt(r.getData().updated_at_value)}},{title:"ID",field:"resource_id",visible:!0,maxWidth:10,vertAlign:"middle",hozAlign:"left"},{title:o.external_id,field:"external_id",width:150,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:o.resources,field:"form_resource_count",width:100,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,sorter:"number"}],rowFormatter:function(t){var e=t.getData();!function(t,e){var n={name:["name","type_label","validation"],multiple_unit_organizations:["full_unit_organization_count","unit_organization_names","unit_organization_names","resource_id","resource_type"],updated_at:["updated_at"],resource_id:["resource_id","resource_id"],external_id:["external_id","external_id"],form_resource_count:["form_resource_count","destroy_url","name"]},r="true"==document.querySelector("#setting-content").dataset.sharedAuthorization,o="true"==document.querySelector("#setting-content").dataset.envAuthorization,a=JSON.parse(document.querySelector("#setting-content").dataset.envIds),s=e.full_unit_organization_ids,l=s.filter((function(t){return!a.includes(t)})).length,u=0===l,c=0===e.full_unit_organization_ids.length,d=1===e.unit_organization_ids.length,h=!1;Object.keys(n).forEach((function(a){var s=a;"multiple_unit_organizations"===a?(c||d)&&(s="single_unit_organization"):"form_resource_count"===a&&(c&&!r?s="form_resource_count_no_edit":(c||o)&&(c||!o||u)?h=!0:s="form_resource_count_no_edit");var f=document.getElementById(s).innerHTML;f=Object(i.b)(f,d,l),n[a].forEach((function(t){f=f.replaceAll("{{".concat(t,"}}"),function(t){if("string"!==typeof t)return t;return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}(e[t]))})),t.querySelector('[tabulator-field="'.concat(a,'"]')).innerHTML=f})),t.dataset.edit=h,t.dataset.url=e.url,t.dataset.shared=c,t.classList.add("d-flex","align-items-center","padded-vertical-10px"),h&&t.classList.add("pointer")}(t.getElement(),e)},downloadConfig:{columnHeaders:!0}}),l=document.querySelector("html").lang;a.on("dataSorted",(function(t,e){var n=[];t.forEach((function(t){n.push({column:t.column.getField(),dir:t.dir})})),localStorage.setItem("informations_sorters",JSON.stringify(n))})),setTimeout((function(){a.setLocale("".concat(l,"-").concat(l)),c(),s()}),100)}function a(){var t=r.b.findTable("#informations")[0],e=localStorage.getItem("informations_types"),n=["none"];e&&(n=JSON.parse(e)).push("none");var i=localStorage.getItem("informations_environments"),o=["none"];i&&(o=JSON.parse(i)).push("none");var a=localStorage.getItem("informations_resources"),l=[];a&&(l=JSON.parse(a)).push("none");var u=[{field:"name",type:"like",value:(localStorage.getItem("informations_query")||"").trim(),matchAll:!0},{field:"type",type:"in",value:n.map(Number)}];t.setFilter(u),i&&t.addFilter(h,{unit_organization_ids:o}),t.addFilter(d,{form_resource_ids:l}),c(),s()}function s(){var t=r.b.findTable("#informations")[0];!function(t,e){e.forEach((function(e){var n=e.querySelector("span[data-count]");u(e,n);var r=e.dataset.value,i=t.getData("active").filter((function(t){return t.type==r})).length;n.innerText="(".concat(i,")")}))}(t,l("type-filter")),function(t,e){e.forEach((function(e){var n=parseInt(e.dataset.value),r=function(){return 0==n?t.getData("active").filter((function(t){return 0==t.unit_organizations_count})).length:t.getData("active").filter((function(t){return t.unit_organization_ids.includes(n)})).length};e.querySelector("span[data-count]").innerText="(".concat(r(),")")}))}(t,l("environment-filter")),function(t,e){e.forEach((function(e){var n=parseInt(e.dataset.value),r=e.querySelector("span[data-count]");u(e,r);var i=0;i=0==n?t.getData("active").filter((function(t){return 0==t.form_resource_count})).length:t.getData("active").filter((function(t){return t.form_resource_ids.includes(n)})).length,r.innerText="(".concat(i,")")}))}(t,l("resource-filter"))}function l(t){return document.querySelectorAll('[data-action="click->desktop--actor--account--information--'.concat(t,'#filter"]'))}function u(t,e){"true"===t.getAttribute("data-selected")?e.classList.remove("d-none"):e.classList.add("d-none")}function c(){var t=r.b.findTable("#informations")[0].getData("active").length,e=document.getElementById("informations-label"),n=t<=1?e.dataset.singular:e.dataset.plural;document.getElementById("informations-count").innerText=t,document.getElementById("informations-label").innerText=n}function d(t,e){return t.form_resource_ids.map(Number).some((function(t){return e.form_resource_ids.map(Number).includes(t)}))}function h(t,e){var n=t.unit_organization_ids;0==n.length&&(n=[0]);var r=e.unit_organization_ids.map(Number);return n.some((function(t){return r.includes(t)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],i={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"===typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return"undefined"!==typeof console&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}},function(t,e,n){"use strict";(function(t){function r(t){c(t.value)?h(t,"check-length"):d(t,"check-length"),s(t.value)?p(t):f(t)}function i(t){u(t.value)?h(t,"check-variety"):d(t,"check-variety"),s(t.value)?p(t):f(t)}function o(t,e){l(t.value,e.value)?(h(e,"check-uniformity"),p(e),a("#conditions-block")):""!=e.value&&(d(e,"check-uniformity"),f(e))}function a(t){var e=document.querySelector(t);e&&b(e,"invisible","visible")}function s(t){return u(t)&&c(t)}function l(t,e){return t===e&&s(t)}function u(t){return t.match(/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z\d])/)}function c(t){return t.length>=12}function d(t,e){b("#"+e,["text-gray","text-gray-dark","text-green"],"text-red-error"),b("#"+e+" i","fa-check","fa-times")}function h(t,e){b("#"+e,["text-gray","text-gray-dark","text-red-error"],"text-green"),b("#"+e+" i","fa-times","fa-check")}function f(t){b(t,"border-line-green","border-red-error")}function p(t){b(t,"border-red-error","border-line-green")}function m(t){b("#"+t,"visible","invisible")}function g(t){b("#"+t,"invisible","visible")}function b(e,n,r){t(e).removeClass(n),t(e).addClass(r)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"h",(function(){return s})),n.d(e,"g",(function(){return l})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return g}))}).call(this,n(4))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));new RegExp("^\\+?\\(?[0-9]{3}\\)?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$");var r=new RegExp("^(?:(?:\\+|00)33|0|)(?:(?:(?:(?:\\d{2}[\\s.-]?)?\\d{2}[\\s.-]?\\d{2}[\\s.-]?\\d{2}[\\s.-]?\\d{2})|(?:(?:\\d{1}[\\s.-]?)?\\d{2}[\\s.-]?\\d{2}[\\s.-]?\\d{2}[\\s.-]?\\d{2})))$"),i=new RegExp("([a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)")},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"default",(function(){return s})),n.d(e,"cleanPreviewModal",(function(){return l})),n.d(e,"connectScorm",(function(){return u}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(d,e);var n,a,s,c=o(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(a=[{key:"open",value:function(){allowCloseModalWithBackButton("modal-view"),t("#modal-view").modal("show");var e=document.querySelector("[data-language]").dataset.language;fetch("".concat(this.element.dataset.url,"?locale=").concat(e,"&class_name=").concat(this.element.dataset.className)).then((function(t){return t.json()})).then((function(t){var e=document.getElementById("modal-view-content");t.small_content?e.classList.add("modal-small-content"):e.classList.remove("modal-small-content"),e.innerHTML=t.content,e.querySelector('iframe[title="scorm"]')&&u(e)}))}},{key:"cleanModal",value:function(){l()}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),d}(n(1).Controller);function l(){var t=document.getElementById("modal-view-content");t.innerHTML="",t.classList.contains("modal-small-content")&&t.classList.remove("modal-small-content")}function u(t){var e=t.querySelector('iframe[title="scorm"]');t.querySelector(".modal-content-segment");e.classList.add("d-none");var n=document.createElement("div");n.classList.add("rotating","fad","fa-spinner","text-80px"),e.parentNode.insertBefore(n,e),setTimeout((function(){n.remove(),e.classList.remove("d-none")}),2e3),e.addEventListener("load",(function(){e.contentWindow.postMessage({username:e.dataset.username,password:e.dataset.password},e.dataset.baseUrl)}))}}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];t=t.replaceAll(n,r)})),t}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var i=function(){setTimeout((function(){document.querySelector(".large-sidebar-backdrop")||document.body.classList.remove("overflow-hidden")}),20)}},function(t,e,n){"use strict";n.r(e),n.d(e,"BaseResourcesController",(function(){return v}));var r=n(1),i=n(10),o=n(11),a=n(22),s=n(17);function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var m,g,b,v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(f,t);var e,n,r,u=h(f);function f(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),u.apply(this,arguments)}return e=f,(n=[{key:"connect",value:function(){this.defineName(),Object(i.a)(this),Object(s.setFiltersWithLocalStorage)(this.singularName,this.menuTarget),Object(s.toggleActive)(this.singularName,this.selectTarget)}},{key:"filter",value:function(t){var e="true"==t.currentTarget.dataset.selected;t.currentTarget.dataset.selected=!e,Object(s.updateFilter)(this.pluralName,this.menuTarget),Object(o.applyResourcesFilters)(),Object(s.toggleActive)(this.singularName,this.selectTarget)}},{key:"selectAll",value:function(){Object(s.desactivate)(this.selectTarget),Object(s.selectAllElements)(this.singularName),Object(s.updateFilter)(this.pluralName,this.menuTarget),Object(o.applyResourcesFilters)()}},{key:"removeAll",value:function(){Object(s.activate)(this.selectTarget),Object(s.removeAllElements)(this.singularName),Object(s.updateFilter)(this.pluralName,this.menuTarget),Object(o.applyResourcesFilters)()}},{key:"toggleMenu",value:function(){var t="true"==this.selectTarget.parentElement.dataset.open;this.selectTarget.parentElement.dataset.open=!t}},{key:"closeMenu",value:function(){this.selectTarget.parentElement.dataset.open=!1}},{key:"reset",value:function(){this.closeMenu(),this.selectAll()}},{key:"search",value:function(){Object(a.a)(this.searchTarget.value,l(document.querySelectorAll(".".concat(this.singularName,"-filter"))))}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(r.Controller);m=v,b=[],(g=p(g="targets"))in m?Object.defineProperty(m,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[g]=b},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return m}));var r=n(1),i=n(37),o=n.n(i);function a(){a=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new M(r||[]);return i(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var k={};c(k,s,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&r.call(O,s)&&(k=O);var x=w.prototype=v.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var l=h(t[i],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,n,r){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(j.prototype),c(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(x),c(x,u,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function s(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,n)}}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var m=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(g,e);var n,r,i,h,p,m=c(g);function g(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return f(d(t=m.call.apply(m,[this].concat(n))),"buttonTypes",{normal:"button-blue-dark",danger:"button-red",success:"button-green"}),f(d(t),"popup",o.a.mixin({icon:"warning",title:t.textValue.title_html,html:t.textValue.description_html,confirmButtonText:t.textValue.confirm,cancelButtonText:t.textValue.cancel,showCancelButton:!0,showCloseButton:!0,closeButtonHtml:'<i class="fas fa-times-circle text-20px"></i>',buttonsStyling:!1,reverseButtons:!0,customClass:{confirmButton:"button ".concat(t.buttonTypes[t.buttonTypeValue]," m-2"),cancelButton:"button button-white m-2"}})),t}return n=g,r=[{key:"beforeBegin",value:function(){}},{key:"shouldFire",value:function(){return!0}},{key:"confirm",value:(h=a().mark((function t(e){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),this.beforeBegin(),!this.shouldFire()){t.next=10;break}return t.next=5,this.popup.fire();case 5:(n=t.sent).isConfirmed?this.confirmRequest(this.confirmValue):"cancel"===n.dismiss&&this.cancelRequest(this.cancelValue),this.beforeEnd(n),t.next=11;break;case 10:this.notFired();case 11:this.afterEnd();case 12:case"end":return t.stop()}}),t,this)})),p=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=h.apply(t,e);function o(t){s(i,n,r,o,a,"next",t)}function a(t){s(i,n,r,o,a,"throw",t)}o(void 0)}))},function(t){return p.apply(this,arguments)})},{key:"notFired",value:function(){}},{key:"confirmRequest",value:function(t){this.handleRequest(t)}},{key:"cancelRequest",value:function(t){this.handleRequest(t)}},{key:"handleRequest",value:function(e){var n=e.remote,r=e.url,i=e.type,o=e.data;r&&(n?t.ajax({url:r,type:i,data:o,dataType:"script"}):window.location.href=r)}},{key:"beforeEnd",value:function(){}},{key:"afterEnd",value:function(){}}],r&&l(n.prototype,r),i&&l(n,i),Object.defineProperty(n,"prototype",{writable:!1}),g}(r.Controller);f(m,"values",{text:Object,confirm:Object,cancel:Object,buttonType:String})}.call(this,n(4))},function(t,e,n){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.exports=function(){"use strict";function t(t,e){return i(t,n(t,e,"get"))}function e(t,e,r){return o(t,n(t,e,"set"),r),r}function n(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function i(t,e){return e.get?e.get.call(t):e.value}function o(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function a(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(t,e,n){a(t,e),e.set(t,n)}const l=100,u={},c=()=>{u.previousActiveElement instanceof HTMLElement?(u.previousActiveElement.focus(),u.previousActiveElement=null):document.body&&document.body.focus()},d=t=>new Promise((e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;u.restoreFocusTimeout=setTimeout((()=>{c(),e()}),l),window.scrollTo(n,r)})),h="swal2-",f=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(((t,e)=>(t[e]=h+e,t)),{}),p=["success","warning","info","question","error"].reduce(((t,e)=>(t[e]=h+e,t)),{}),m="SweetAlert2:",g=t=>t.charAt(0).toUpperCase()+t.slice(1),b=t=>{console.warn("".concat(m," ").concat("object"===typeof t?t.join(" "):t))},v=t=>{console.error("".concat(m," ").concat(t))},y=[],w=t=>{y.includes(t)||(y.push(t),b(t))},k=(t,e)=>{w('"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'))},_=t=>"function"===typeof t?t():t,O=t=>t&&"function"===typeof t.toPromise,x=t=>O(t)?t.toPromise():Promise.resolve(t),E=t=>t&&Promise.resolve(t)===t,j=()=>document.body.querySelector(".".concat(f.container)),S=t=>{const e=j();return e?e.querySelector(t):null},P=t=>S(".".concat(t)),C=()=>P(f.popup),T=()=>P(f.icon),M=()=>P(f["icon-content"]),A=()=>P(f.title),D=()=>P(f["html-container"]),R=()=>P(f.image),L=()=>P(f["progress-steps"]),I=()=>P(f["validation-message"]),W=()=>S(".".concat(f.actions," .").concat(f.confirm)),z=()=>S(".".concat(f.actions," .").concat(f.cancel)),N=()=>S(".".concat(f.actions," .").concat(f.deny)),F=()=>P(f["input-label"]),H=()=>S(".".concat(f.loader)),B=()=>P(f.actions),V=()=>P(f.footer),q=()=>P(f["timer-progress-bar"]),Y=()=>P(f.close),U='\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n',G=()=>{const t=C();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort(((t,e)=>{const n=parseInt(t.getAttribute("tabindex")||"0"),r=parseInt(e.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0})),r=t.querySelectorAll(U),i=Array.from(r).filter((t=>"-1"!==t.getAttribute("tabindex")));return[...new Set(n.concat(i))].filter((t=>ht(t)))},X=()=>Q(document.body,f.shown)&&!Q(document.body,f["toast-shown"])&&!Q(document.body,f["no-backdrop"]),J=()=>{const t=C();return!!t&&Q(t,f.toast)},K=()=>{const t=C();return!!t&&t.hasAttribute("data-loading")},$=(t,e)=>{if(t.textContent="",e){const n=(new DOMParser).parseFromString(e,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach((e=>{t.appendChild(e)}));const i=n.querySelector("body");i&&Array.from(i.childNodes).forEach((e=>{e instanceof HTMLVideoElement||e instanceof HTMLAudioElement?t.appendChild(e.cloneNode(!0)):t.appendChild(e)}))}},Q=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},Z=(t,e)=>{Array.from(t.classList).forEach((n=>{Object.values(f).includes(n)||Object.values(p).includes(n)||Object.values(e.showClass||{}).includes(n)||t.classList.remove(n)}))},tt=(t,e,n)=>{if(Z(t,e),e.customClass&&e.customClass[n]){if("string"!==typeof e.customClass[n]&&!e.customClass[n].forEach)return void b("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof e.customClass[n],'"'));it(t,e.customClass[n])}},et=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(".".concat(f.popup," > .").concat(f[e]));case"checkbox":return t.querySelector(".".concat(f.popup," > .").concat(f.checkbox," input"));case"radio":return t.querySelector(".".concat(f.popup," > .").concat(f.radio," input:checked"))||t.querySelector(".".concat(f.popup," > .").concat(f.radio," input:first-child"));case"range":return t.querySelector(".".concat(f.popup," > .").concat(f.range," input"));default:return t.querySelector(".".concat(f.popup," > .").concat(f.input))}},nt=t=>{if(t.focus(),"file"!==t.type){const e=t.value;t.value="",t.value=e}},rt=(t,e,n)=>{t&&e&&("string"===typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach((e=>{Array.isArray(t)?t.forEach((t=>{n?t.classList.add(e):t.classList.remove(e)})):n?t.classList.add(e):t.classList.remove(e)})))},it=(t,e)=>{rt(t,e,!0)},ot=(t,e)=>{rt(t,e,!1)},at=(t,e)=>{const n=Array.from(t.children);for(let r=0;r<n.length;r++){const t=n[r];if(t instanceof HTMLElement&&Q(t,e))return t}},st=(t,e,n)=>{n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?t.style[e]="number"===typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)},lt=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";t&&(t.style.display=e)},ut=t=>{t&&(t.style.display="none")},ct=(t,e,n,r)=>{const i=t.querySelector(e);i&&(i.style[n]=r)},dt=function(t,e){e?lt(t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):ut(t)},ht=t=>!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),ft=()=>!ht(W())&&!ht(N())&&!ht(z()),pt=t=>!!(t.scrollHeight>t.clientHeight),mt=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},gt=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=q();n&&ht(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition="width ".concat(t/1e3,"s linear"),n.style.width="0%"}),10))},bt=()=>{const t=q();if(!t)return;const e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=e/parseInt(window.getComputedStyle(t).width)*100;t.style.width="".concat(n,"%")},vt=()=>"undefined"===typeof window||"undefined"===typeof document,yt='\n <div aria-labelledby="'.concat(f.title,'" aria-describedby="').concat(f["html-container"],'" class="').concat(f.popup,'" tabindex="-1">\n   <button type="button" class="').concat(f.close,'"></button>\n   <ul class="').concat(f["progress-steps"],'"></ul>\n   <div class="').concat(f.icon,'"></div>\n   <img class="').concat(f.image,'" />\n   <h2 class="').concat(f.title,'" id="').concat(f.title,'"></h2>\n   <div class="').concat(f["html-container"],'" id="').concat(f["html-container"],'"></div>\n   <input class="').concat(f.input,'" id="').concat(f.input,'" />\n   <input type="file" class="').concat(f.file,'" />\n   <div class="').concat(f.range,'">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="').concat(f.select,'" id="').concat(f.select,'"></select>\n   <div class="').concat(f.radio,'"></div>\n   <label class="').concat(f.checkbox,'">\n     <input type="checkbox" id="').concat(f.checkbox,'" />\n     <span class="').concat(f.label,'"></span>\n   </label>\n   <textarea class="').concat(f.textarea,'" id="').concat(f.textarea,'"></textarea>\n   <div class="').concat(f["validation-message"],'" id="').concat(f["validation-message"],'"></div>\n   <div class="').concat(f.actions,'">\n     <div class="').concat(f.loader,'"></div>\n     <button type="button" class="').concat(f.confirm,'"></button>\n     <button type="button" class="').concat(f.deny,'"></button>\n     <button type="button" class="').concat(f.cancel,'"></button>\n   </div>\n   <div class="').concat(f.footer,'"></div>\n   <div class="').concat(f["timer-progress-bar-container"],'">\n     <div class="').concat(f["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),wt=()=>{const t=j();return!!t&&(t.remove(),ot([document.documentElement,document.body],[f["no-backdrop"],f["toast-shown"],f["has-column"]]),!0)},kt=()=>{u.currentInstance.resetValidationMessage()},_t=()=>{const t=C(),e=at(t,f.input),n=at(t,f.file),r=t.querySelector(".".concat(f.range," input")),i=t.querySelector(".".concat(f.range," output")),o=at(t,f.select),a=t.querySelector(".".concat(f.checkbox," input")),s=at(t,f.textarea);e.oninput=kt,n.onchange=kt,o.onchange=kt,a.onchange=kt,s.oninput=kt,r.oninput=()=>{kt(),i.value=r.value},r.onchange=()=>{kt(),i.value=r.value}},Ot=t=>"string"===typeof t?document.querySelector(t):t,xt=t=>{const e=C();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Et=t=>{"rtl"===window.getComputedStyle(t).direction&&it(j(),f.rtl)},jt=t=>{const e=wt();if(vt())return void v("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=f.container,e&&it(n,f["no-transition"]),$(n,yt);const r=Ot(t.target);r.appendChild(n),xt(t),Et(r),_t()},St=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):"object"===typeof t?Pt(t,e):t&&$(e,t)},Pt=(t,e)=>{t.jquery?Ct(e,t):$(e,t.toString())},Ct=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Tt=(()=>{if(vt())return!1;const t=document.createElement("div");return"undefined"!==typeof t.style.webkitAnimation?"webkitAnimationEnd":"undefined"!==typeof t.style.animation&&"animationend"})(),Mt=(t,e)=>{const n=B(),r=H();n&&r&&(e.showConfirmButton||e.showDenyButton||e.showCancelButton?lt(n):ut(n),tt(n,e,"actions"),At(n,r,e),$(r,e.loaderHtml||""),tt(r,e,"loader"))};function At(t,e,n){const r=W(),i=N(),o=z();r&&i&&o&&(Rt(r,"confirm",n),Rt(i,"deny",n),Rt(o,"cancel",n),Dt(r,i,o,n),n.reverseButtons&&(n.toast?(t.insertBefore(o,r),t.insertBefore(i,r)):(t.insertBefore(o,e),t.insertBefore(i,e),t.insertBefore(r,e))))}function Dt(t,e,n,r){r.buttonsStyling?(it([t,e,n],f.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,it(t,f["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,it(e,f["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,it(n,f["default-outline"]))):ot([t,e,n],f.styled)}function Rt(t,e,n){const r=g(e);dt(t,n["show".concat(r,"Button")],"inline-block"),$(t,n["".concat(e,"ButtonText")]||""),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]||""),t.className=f[e],tt(t,n,"".concat(e,"Button"))}const Lt=(t,e)=>{const n=Y();n&&($(n,e.closeButtonHtml||""),tt(n,e,"closeButton"),dt(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel||""))},It=(t,e)=>{const n=j();n&&(Wt(n,e.backdrop),zt(n,e.position),Nt(n,e.grow),tt(n,e,"container"))};function Wt(t,e){"string"===typeof e?t.style.background=e:e||it([document.documentElement,document.body],f["no-backdrop"])}function zt(t,e){e&&(e in f?it(t,f[e]):(b('The "position" parameter is not valid, defaulting to "center"'),it(t,f.center)))}function Nt(t,e){e&&it(t,f["grow-".concat(e)])}var Ft={innerParams:new WeakMap,domCache:new WeakMap};const Ht=["input","file","range","select","radio","checkbox","textarea"],Bt=(t,e)=>{const n=C();if(!n)return;const r=Ft.innerParams.get(t),i=!r||e.input!==r.input;Ht.forEach((t=>{const r=at(n,f[t]);r&&(Yt(t,e.inputAttributes),r.className=f[t],i&&ut(r))})),e.input&&(i&&Vt(e),Ut(e))},Vt=t=>{if(!t.input)return;if(!$t[t.input])return void v('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));const e=Jt(t.input),n=$t[t.input](e,t);lt(e),t.inputAutoFocus&&setTimeout((()=>{nt(n)}))},qt=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["id","type","value","style"].includes(n)||t.removeAttribute(n)}},Yt=(t,e)=>{const n=et(C(),t);if(n){qt(n);for(const t in e)n.setAttribute(t,e[t])}},Ut=t=>{const e=Jt(t.input);"object"===typeof t.customClass&&it(e,t.customClass.input)},Gt=(t,e)=>{t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},Xt=(t,e,n)=>{if(n.inputLabel){const r=document.createElement("label"),i=f["input-label"];r.setAttribute("for",t.id),r.className=i,"object"===typeof n.customClass&&it(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},Jt=t=>at(C(),f[t]||f.input),Kt=(t,e)=>{["string","number"].includes(typeof e)?t.value="".concat(e):E(e)||b('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof e,'"'))},$t={};$t.text=$t.email=$t.password=$t.number=$t.tel=$t.url=(t,e)=>(Kt(t,e.inputValue),Xt(t,t,e),Gt(t,e),t.type=e.input,t),$t.file=(t,e)=>(Xt(t,t,e),Gt(t,e),t),$t.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return Kt(n,e.inputValue),n.type=e.input,Kt(r,e.inputValue),Xt(n,t,e),t},$t.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");$(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Xt(t,t,e),t},$t.radio=t=>(t.textContent="",t),$t.checkbox=(t,e)=>{const n=et(C(),"checkbox");n.value="1",n.checked=Boolean(e.inputValue);const r=t.querySelector("span");return $(r,e.inputPlaceholder),n},$t.textarea=(t,e)=>{Kt(t,e.inputValue),Gt(t,e),Xt(t,t,e);const n=t=>parseInt(window.getComputedStyle(t).marginLeft)+parseInt(window.getComputedStyle(t).marginRight);return setTimeout((()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(C()).width);new MutationObserver((()=>{if(!document.body.contains(t))return;const i=t.offsetWidth+n(t);i>r?C().style.width="".concat(i,"px"):st(C(),"width",e.width)})).observe(t,{attributes:!0,attributeFilter:["style"]})}})),t};const Qt=(t,e)=>{const n=D();n&&(tt(n,e,"htmlContainer"),e.html?(St(e.html,n),lt(n,"block")):e.text?(n.textContent=e.text,lt(n,"block")):ut(n),Bt(t,e))},Zt=(t,e)=>{const n=V();n&&(dt(n,e.footer,"block"),e.footer&&St(e.footer,n),tt(n,e,"footer"))},te=(t,e)=>{const n=Ft.innerParams.get(t),r=T();if(r){if(n&&e.icon===n.icon)return oe(r,e),void ee(r,e);if(e.icon||e.iconHtml){if(e.icon&&-1===Object.keys(p).indexOf(e.icon))return v('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"')),void ut(r);lt(r),oe(r,e),ee(r,e),it(r,e.showClass&&e.showClass.icon)}else ut(r)}},ee=(t,e)=>{for(const i of Object.entries(p)){var n=r(i,2);const o=n[0],a=n[1];e.icon!==o&&ot(t,a)}it(t,e.icon&&p[e.icon]),ae(t,e),ne(),tt(t,e,"icon")},ne=()=>{const t=C();if(!t)return;const e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},re='\n  <div class="swal2-success-circular-line-left"></div>\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n  <div class="swal2-success-circular-line-right"></div>\n',ie='\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n',oe=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,r="";e.iconHtml?r=se(e.iconHtml):"success"===e.icon?(r=re,n=n.replace(/ style=".*?"/g,"")):"error"===e.icon?r=ie:e.icon&&(r=se({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==r.trim()&&$(t,r)},ae=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ct(t,n,"backgroundColor",e.iconColor);ct(t,".swal2-success-ring","borderColor",e.iconColor)}},se=t=>'<div class="'.concat(f["icon-content"],'">').concat(t,"</div>"),le=(t,e)=>{const n=R();n&&(e.imageUrl?(lt(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),st(n,"width",e.imageWidth),st(n,"height",e.imageHeight),n.className=f.image,tt(n,e,"image")):ut(n))},ue=(t,e)=>{const n=j(),r=C();if(n&&r){if(e.toast){st(n,"width",e.width),r.style.width="100%";const t=H();t&&r.insertBefore(t,T())}else st(r,"width",e.width);st(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),ut(I()),ce(r,e)}},ce=(t,e)=>{const n=e.showClass||{};t.className="".concat(f.popup," ").concat(ht(t)?n.popup:""),e.toast?(it([document.documentElement,document.body],f["toast-shown"]),it(t,f.toast)):it(t,f.modal),tt(t,e,"popup"),"string"===typeof e.customClass&&it(t,e.customClass),e.icon&&it(t,f["icon-".concat(e.icon)])},de=(t,e)=>{const n=L();if(!n)return;const r=e.progressSteps,i=e.currentProgressStep;r&&0!==r.length&&void 0!==i?(lt(n),n.textContent="",i>=r.length&&b("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach(((t,o)=>{const a=he(t);if(n.appendChild(a),o===i&&it(a,f["active-progress-step"]),o!==r.length-1){const t=fe(e);n.appendChild(t)}}))):ut(n)},he=t=>{const e=document.createElement("li");return it(e,f["progress-step"]),$(e,t),e},fe=t=>{const e=document.createElement("li");return it(e,f["progress-step-line"]),t.progressStepsDistance&&st(e,"width",t.progressStepsDistance),e},pe=(t,e)=>{const n=A();n&&(dt(n,e.title||e.titleText,"block"),e.title&&St(e.title,n),e.titleText&&(n.innerText=e.titleText),tt(n,e,"title"))},me=(t,e)=>{ue(t,e),It(t,e),de(t,e),te(t,e),le(t,e),pe(t,e),Lt(t,e),Qt(t,e),Mt(t,e),Zt(t,e);const n=C();"function"===typeof e.didRender&&n&&e.didRender(n)},ge=()=>ht(C()),be=()=>{var t;return null===(t=W())||void 0===t?void 0:t.click()},ve=()=>{var t;return null===(t=N())||void 0===t?void 0:t.click()},ye=()=>{var t;return null===(t=z())||void 0===t?void 0:t.click()},we=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),ke=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},_e=(t,e,n)=>{ke(t),e.toast||(t.keydownHandler=t=>je(e,t,n),t.keydownTarget=e.keydownListenerCapture?window:C(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},Oe=(t,e)=>{var n;const r=G();if(r.length)return(t+=e)===r.length?t=0:-1===t&&(t=r.length-1),void r[t].focus();null===(n=C())||void 0===n||n.focus()},xe=["ArrowRight","ArrowDown"],Ee=["ArrowLeft","ArrowUp"],je=(t,e,n)=>{t&&(e.isComposing||229===e.keyCode||(t.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?Se(e,t):"Tab"===e.key?Pe(e):[...xe,...Ee].includes(e.key)?Ce(e.key):"Escape"===e.key&&Te(e,t,n)))},Se=(t,e)=>{if(!_(e.allowEnterKey))return;const n=et(C(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;be(),t.preventDefault()}},Pe=t=>{const e=t.target,n=G();let r=-1;for(let i=0;i<n.length;i++)if(e===n[i]){r=i;break}t.shiftKey?Oe(r,-1):Oe(r,1),t.stopPropagation(),t.preventDefault()},Ce=t=>{const e=B(),n=W(),r=N(),i=z();if(!e||!n||!r||!i)return;const o=[n,r,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const a=xe.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;if(s){for(let t=0;t<e.children.length;t++){if(s=s[a],!s)return;if(s instanceof HTMLButtonElement&&ht(s))break}s instanceof HTMLButtonElement&&s.focus()}},Te=(t,e,n)=>{_(e.allowEscapeKey)&&(t.preventDefault(),n(we.esc))};var Me={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Ae=()=>{Array.from(document.body.children).forEach((t=>{t===j()||t.contains(j())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))}))},De=()=>{Array.from(document.body.children).forEach((t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))},Re="undefined"!==typeof window&&!!window.GestureEvent,Le=()=>{if(Re&&!Q(document.body,f.iosfix)){const t=document.body.scrollTop;document.body.style.top="".concat(-1*t,"px"),it(document.body,f.iosfix),Ie()}},Ie=()=>{const t=j();if(!t)return;let e;t.ontouchstart=t=>{e=We(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},We=t=>{const e=t.target,n=j(),r=D();return!(!n||!r)&&!ze(t)&&!Ne(t)&&(e===n||!pt(n)&&e instanceof HTMLElement&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&(!pt(r)||!r.contains(e)))},ze=t=>t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType,Ne=t=>t.touches&&t.touches.length>1,Fe=()=>{if(Q(document.body,f.iosfix)){const t=parseInt(document.body.style.top,10);ot(document.body,f.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},He=()=>{const t=document.createElement("div");t.className=f["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let Be=null;const Ve=t=>{null===Be&&(document.body.scrollHeight>window.innerHeight||"scroll"===t)&&(Be=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Be+He(),"px"))},qe=()=>{null!==Be&&(document.body.style.paddingRight="".concat(Be,"px"),Be=null)};function Ye(t,e,n,r){J()?tn(t,r):(d(n).then((()=>tn(t,r))),ke(u)),Re?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),X()&&(qe(),Fe(),De()),Ue()}function Ue(){ot([document.documentElement,document.body],[f.shown,f["height-auto"],f["no-backdrop"],f["toast-shown"]])}function Ge(t){t=$e(t);const e=Me.swalPromiseResolve.get(this),n=Xe(this);this.isAwaitingPromise?t.isDismissed||(Ke(this),e(t)):n&&e(t)}const Xe=t=>{const e=C();if(!e)return!1;const n=Ft.innerParams.get(t);if(!n||Q(e,n.hideClass.popup))return!1;ot(e,n.showClass.popup),it(e,n.hideClass.popup);const r=j();return ot(r,n.showClass.backdrop),it(r,n.hideClass.backdrop),Qe(t,e,n),!0};function Je(t){const e=Me.swalPromiseReject.get(this);Ke(this),e&&e(t)}const Ke=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,Ft.innerParams.get(t)||t._destroy())},$e=t=>"undefined"===typeof t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Qe=(t,e,n)=>{const r=j(),i=Tt&&mt(e);"function"===typeof n.willClose&&n.willClose(e),i?Ze(t,e,r,n.returnFocus,n.didClose):Ye(t,r,n.returnFocus,n.didClose)},Ze=(t,e,n,r,i)=>{Tt&&(u.swalCloseEventFinishedCallback=Ye.bind(null,t,n,r,i),e.addEventListener(Tt,(function(t){t.target===e&&(u.swalCloseEventFinishedCallback(),delete u.swalCloseEventFinishedCallback)})))},tn=(t,e)=>{setTimeout((()=>{"function"===typeof e&&e.bind(t.params)(),t._destroy&&t._destroy()}))},en=t=>{let e=C();if(e||new ti,e=C(),!e)return;const n=H();J()?ut(T()):nn(e,t),lt(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},nn=(t,e)=>{const n=B(),r=H();n&&r&&(!e&&ht(W())&&(e=W()),lt(n),e&&(ut(e),r.setAttribute("data-button-to-replace",e.className),n.insertBefore(r,e)),it([t,n],f.loading))},rn=(t,e)=>{"select"===e.input||"radio"===e.input?un(t,e):["text","email","number","tel","textarea"].some((t=>t===e.input))&&(O(e.inputValue)||E(e.inputValue))&&(en(W()),cn(t,e))},on=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return an(n);case"radio":return sn(n);case"file":return ln(n);default:return e.inputAutoTrim?n.value.trim():n.value}},an=t=>t.checked?1:0,sn=t=>t.checked?t.value:null,ln=t=>t.files&&t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null,un=(t,e)=>{const n=C();if(!n)return;const r=t=>{"select"===e.input?dn(n,fn(t),e):"radio"===e.input&&hn(n,fn(t),e)};O(e.inputOptions)||E(e.inputOptions)?(en(W()),x(e.inputOptions).then((e=>{t.hideLoading(),r(e)}))):"object"===typeof e.inputOptions?r(e.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof e.inputOptions))},cn=(t,e)=>{const n=t.getInput();n&&(ut(n),x(e.inputValue).then((r=>{n.value="number"===e.input?"".concat(parseFloat(r)||0):"".concat(r),lt(n),n.focus(),t.hideLoading()})).catch((e=>{v("Error in inputValue promise: ".concat(e)),n.value="",lt(n),n.focus(),t.hideLoading()})))};function dn(t,e,n){const r=at(t,f.select);if(!r)return;const i=(t,e,r)=>{const i=document.createElement("option");i.value=r,$(i,e),i.selected=pn(r,n.inputValue),t.appendChild(i)};e.forEach((t=>{const e=t[0],n=t[1];if(Array.isArray(n)){const t=document.createElement("optgroup");t.label=e,t.disabled=!1,r.appendChild(t),n.forEach((e=>i(t,e[1],e[0])))}else i(r,n,e)})),r.focus()}function hn(t,e,n){const r=at(t,f.radio);if(!r)return;e.forEach((t=>{const e=t[0],i=t[1],o=document.createElement("input"),a=document.createElement("label");o.type="radio",o.name=f.radio,o.value=e,pn(e,n.inputValue)&&(o.checked=!0);const s=document.createElement("span");$(s,i),s.className=f.label,a.appendChild(o),a.appendChild(s),r.appendChild(a)}));const i=r.querySelectorAll("input");i.length&&i[0].focus()}const fn=t=>{const e=[];return t instanceof Map?t.forEach(((t,n)=>{let r=t;"object"===typeof r&&(r=fn(r)),e.push([n,r])})):Object.keys(t).forEach((n=>{let r=t[n];"object"===typeof r&&(r=fn(r)),e.push([n,r])})),e},pn=(t,e)=>!!e&&e.toString()===t.toString(),mn=t=>{const e=Ft.innerParams.get(t);t.disableButtons(),e.input?vn(t,"confirm"):On(t,!0)},gn=t=>{const e=Ft.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?vn(t,"deny"):wn(t,!1)},bn=(t,e)=>{t.disableButtons(),e(we.cancel)},vn=(t,e)=>{const n=Ft.innerParams.get(t);if(!n.input)return void v('The "input" parameter is needed to be set when using returnInputValueOn'.concat(g(e)));const r=t.getInput(),i=on(t,n);n.inputValidator?yn(t,i,e):r&&!r.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage)):"deny"===e?wn(t,i):On(t,i)},yn=(t,e,n)=>{const r=Ft.innerParams.get(t);t.disableInput(),Promise.resolve().then((()=>x(r.inputValidator(e,r.validationMessage)))).then((r=>{t.enableButtons(),t.enableInput(),r?t.showValidationMessage(r):"deny"===n?wn(t,e):On(t,e)}))},wn=(t,e)=>{const n=Ft.innerParams.get(t||void 0);n.showLoaderOnDeny&&en(N()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then((()=>x(n.preDeny(e,n.validationMessage)))).then((n=>{!1===n?(t.hideLoading(),Ke(t)):t.close({isDenied:!0,value:"undefined"===typeof n?e:n})})).catch((e=>_n(t||void 0,e)))):t.close({isDenied:!0,value:e})},kn=(t,e)=>{t.close({isConfirmed:!0,value:e})},_n=(t,e)=>{t.rejectPromise(e)},On=(t,e)=>{const n=Ft.innerParams.get(t||void 0);n.showLoaderOnConfirm&&en(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then((()=>x(n.preConfirm(e,n.validationMessage)))).then((n=>{ht(I())||!1===n?(t.hideLoading(),Ke(t)):kn(t,"undefined"===typeof n?e:n)})).catch((e=>_n(t||void 0,e)))):kn(t,e)};function xn(){const t=Ft.innerParams.get(this);if(!t)return;const e=Ft.domCache.get(this);ut(e.loader),J()?t.icon&&lt(T()):En(e),ot([e.popup,e.actions],f.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const En=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?lt(e[0],"inline-block"):ft()&&ut(t.actions)};function jn(){const t=Ft.innerParams.get(this),e=Ft.domCache.get(this);return e?et(e.popup,t.input):null}function Sn(t,e,n){const r=Ft.domCache.get(t);e.forEach((t=>{r[t].disabled=n}))}function Pn(t,e){const n=C();if(n&&t)if("radio"===t.type){const t=n.querySelectorAll('[name="'.concat(f.radio,'"]'));for(let n=0;n<t.length;n++)t[n].disabled=e}else t.disabled=e}function Cn(){Sn(this,["confirmButton","denyButton","cancelButton"],!1)}function Tn(){Sn(this,["confirmButton","denyButton","cancelButton"],!0)}function Mn(){Pn(this.getInput(),!1)}function An(){Pn(this.getInput(),!0)}function Dn(t){const e=Ft.domCache.get(this),n=Ft.innerParams.get(this);$(e.validationMessage,t),e.validationMessage.className=f["validation-message"],n.customClass&&n.customClass.validationMessage&&it(e.validationMessage,n.customClass.validationMessage),lt(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",f["validation-message"]),nt(r),it(r,f.inputerror))}function Rn(){const t=Ft.domCache.get(this);t.validationMessage&&ut(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),ot(e,f.inputerror))}const Ln={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},In=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Wn={},zn=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Nn=t=>Object.prototype.hasOwnProperty.call(Ln,t),Fn=t=>-1!==In.indexOf(t),Hn=t=>Wn[t],Bn=t=>{Nn(t)||b('Unknown parameter "'.concat(t,'"'))},Vn=t=>{zn.includes(t)&&b('The parameter "'.concat(t,'" is incompatible with toasts'))},qn=t=>{const e=Hn(t);e&&k(t,e)},Yn=t=>{!1===t.backdrop&&t.allowOutsideClick&&b('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Bn(e),t.toast&&Vn(e),qn(e)};function Un(t){const e=C(),n=Ft.innerParams.get(this);if(!e||Q(e,n.hideClass.popup))return void b("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=Gn(t),i=Object.assign({},n,r);me(this,i),Ft.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Gn=t=>{const e={};return Object.keys(t).forEach((n=>{Fn(n)?e[n]=t[n]:b("Invalid parameter to update: ".concat(n))})),e};function Xn(){const t=Ft.domCache.get(this),e=Ft.innerParams.get(this);e?(t.popup&&u.swalCloseEventFinishedCallback&&(u.swalCloseEventFinishedCallback(),delete u.swalCloseEventFinishedCallback),"function"===typeof e.didDestroy&&e.didDestroy(),Jn(this)):Kn(this)}const Jn=t=>{Kn(t),delete t.params,delete u.keydownHandler,delete u.keydownTarget,delete u.currentInstance},Kn=t=>{t.isAwaitingPromise?($n(Ft,t),t.isAwaitingPromise=!0):($n(Me,t),$n(Ft,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},$n=(t,e)=>{for(const n in t)t[n].delete(e)};var Qn=Object.freeze({__proto__:null,_destroy:Xn,close:Ge,closeModal:Ge,closePopup:Ge,closeToast:Ge,disableButtons:Tn,disableInput:An,disableLoading:xn,enableButtons:Cn,enableInput:Mn,getInput:jn,handleAwaitingPromise:Ke,hideLoading:xn,rejectPromise:Je,resetValidationMessage:Rn,showValidationMessage:Dn,update:Un});const Zn=(t,e,n)=>{t.toast?tr(t,e,n):(rr(e),ir(e),or(t,e,n))},tr=(t,e,n)=>{e.popup.onclick=()=>{t&&(er(t)||t.timer||t.input)||n(we.close)}},er=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let nr=!1;const rr=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(nr=!0)}}},ir=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=()=>{},(e.target===t.popup||e.target instanceof HTMLElement&&t.popup.contains(e.target))&&(nr=!0)}}},or=(t,e,n)=>{e.container.onclick=r=>{nr?nr=!1:r.target===e.container&&_(t.allowOutsideClick)&&n(we.backdrop)}},ar=t=>"object"===typeof t&&t.jquery,sr=t=>t instanceof Element||ar(t),lr=t=>{const e={};return"object"!==typeof t[0]||sr(t[0])?["title","html","icon"].forEach(((n,r)=>{const i=t[r];"string"===typeof i||sr(i)?e[n]=i:void 0!==i&&v("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(typeof i))})):Object.assign(e,t[0]),e};function ur(){const t=this;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return new t(...n)}function cr(t){class e extends(this){_main(e,n){return super._main(e,Object.assign({},t,n))}}return e}const dr=()=>u.timeout&&u.timeout.getTimerLeft(),hr=()=>{if(u.timeout)return bt(),u.timeout.stop()},fr=()=>{if(u.timeout){const t=u.timeout.start();return gt(t),t}},pr=()=>{const t=u.timeout;return t&&(t.running?hr():fr())},mr=t=>{if(u.timeout){const e=u.timeout.increase(t);return gt(e,!0),e}},gr=()=>!(!u.timeout||!u.timeout.isRunning());let br=!1;const vr={};function yr(){vr[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,br||(document.body.addEventListener("click",wr),br=!0)}const wr=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const t in vr){const n=e.getAttribute(t);if(n)return void vr[t].fire({template:n})}};var kr=Object.freeze({__proto__:null,argsToParams:lr,bindClickHandler:yr,clickCancel:ye,clickConfirm:be,clickDeny:ve,enableLoading:en,fire:ur,getActions:B,getCancelButton:z,getCloseButton:Y,getConfirmButton:W,getContainer:j,getDenyButton:N,getFocusableElements:G,getFooter:V,getHtmlContainer:D,getIcon:T,getIconContent:M,getImage:R,getInputLabel:F,getLoader:H,getPopup:C,getProgressSteps:L,getTimerLeft:dr,getTimerProgressBar:q,getTitle:A,getValidationMessage:I,increaseTimer:mr,isDeprecatedParameter:Hn,isLoading:K,isTimerRunning:gr,isUpdatableParameter:Fn,isValidParameter:Nn,isVisible:ge,mixin:cr,resumeTimer:fr,showLoading:en,stopTimer:hr,toggleTimer:pr});class _r{constructor(t,e){this.callback=t,this.remaining=e,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(t){const e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Or=["swal-title","swal-html","swal-footer"],xr=t=>{const e="string"===typeof t.template?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Ar(n),Object.assign(Er(n),jr(n),Sr(n),Pr(n),Cr(n),Tr(n),Mr(n,Or))},Er=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach((t=>{Dr(t,["name","value"]);const n=t.getAttribute("name"),r=t.getAttribute("value");"boolean"===typeof Ln[n]?e[n]="false"!==r:"object"===typeof Ln[n]?e[n]=JSON.parse(r):e[n]=r})),e},jr=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach((t=>{const n=t.getAttribute("name"),r=t.getAttribute("value");e[n]=new Function("return ".concat(r))()})),e},Sr=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach((t=>{Dr(t,["type","color","aria-label"]);const n=t.getAttribute("type");e["".concat(n,"ButtonText")]=t.innerHTML,e["show".concat(g(n),"Button")]=!0,t.hasAttribute("color")&&(e["".concat(n,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e["".concat(n,"ButtonAriaLabel")]=t.getAttribute("aria-label"))})),e},Pr=t=>{const e={},n=t.querySelector("swal-image");return n&&(Dr(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Cr=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Dr(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Tr=t=>{const e={},n=t.querySelector("swal-input");n&&(Dr(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=Array.from(t.querySelectorAll("swal-input-option"));return r.length&&(e.inputOptions={},r.forEach((t=>{Dr(t,["value"]);const n=t.getAttribute("value"),r=t.innerHTML;e.inputOptions[n]=r}))),e},Mr=(t,e)=>{const n={};for(const r in e){const i=e[r],o=t.querySelector(i);o&&(Dr(o,[]),n[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return n},Ar=t=>{const e=Or.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach((t=>{const n=t.tagName.toLowerCase();e.includes(n)||b("Unrecognized element <".concat(n,">"))}))},Dr=(t,e)=>{Array.from(t.attributes).forEach((n=>{-1===e.indexOf(n.name)&&b(['Unrecognized attribute "'.concat(n.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])}))},Rr=10,Lr=t=>{const e=j(),n=C();"function"===typeof t.willOpen&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;Nr(e,n,t),setTimeout((()=>{Wr(e,n)}),Rr),X()&&(zr(e,t.scrollbarPadding,r),Ae()),J()||u.previousActiveElement||(u.previousActiveElement=document.activeElement),"function"===typeof t.didOpen&&setTimeout((()=>t.didOpen(n))),ot(e,f["no-transition"])},Ir=t=>{const e=C();if(t.target!==e||!Tt)return;const n=j();e.removeEventListener(Tt,Ir),n.style.overflowY="auto"},Wr=(t,e)=>{Tt&&mt(e)?(t.style.overflowY="hidden",e.addEventListener(Tt,Ir)):t.style.overflowY="auto"},zr=(t,e,n)=>{Le(),e&&"hidden"!==n&&Ve(n),setTimeout((()=>{t.scrollTop=0}))},Nr=(t,e,n)=>{it(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),lt(e,"grid"),setTimeout((()=>{it(e,n.showClass.popup),e.style.removeProperty("opacity")}),Rr),it([document.documentElement,document.body],f.shown),n.heightAuto&&n.backdrop&&!n.toast&&it([document.documentElement,document.body],f["height-auto"])};var Fr={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function Hr(t){t.inputValidator||("email"===t.input&&(t.inputValidator=Fr.email),"url"===t.input&&(t.inputValidator=Fr.url))}function Br(t){(!t.target||"string"===typeof t.target&&!document.querySelector(t.target)||"string"!==typeof t.target&&!t.target.appendChild)&&(b('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Vr(t){Hr(t),t.showLoaderOnConfirm&&!t.preConfirm&&b("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),Br(t),"string"===typeof t.title&&(t.title=t.title.split("\n").join("<br />")),jt(t)}let qr;var Yr=new WeakMap;class Ur{constructor(){if(s(this,Yr,{writable:!0,value:void 0}),"undefined"===typeof window)return;qr=this;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=Object.freeze(this.constructor.argsToParams(n));this.params=i,this.isAwaitingPromise=!1,e(this,Yr,this._main(qr.params))}_main(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Yn(Object.assign({},e,t)),u.currentInstance&&(u.currentInstance._destroy(),X()&&De()),u.currentInstance=qr;const n=Xr(t,e);Vr(n),Object.freeze(n),u.timeout&&(u.timeout.stop(),delete u.timeout),clearTimeout(u.restoreFocusTimeout);const r=Jr(qr);return me(qr,n),Ft.innerParams.set(qr,n),Gr(qr,r,n)}then(e){return t(this,Yr).then(e)}finally(e){return t(this,Yr).finally(e)}}const Gr=(t,e,n)=>new Promise(((r,i)=>{const o=e=>{t.close({isDismissed:!0,dismiss:e})};Me.swalPromiseResolve.set(t,r),Me.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>{mn(t)},e.denyButton.onclick=()=>{gn(t)},e.cancelButton.onclick=()=>{bn(t,o)},e.closeButton.onclick=()=>{o(we.close)},Zn(n,e,o),_e(u,n,o),rn(t,n),Lr(n),Kr(u,n,o),$r(e,n),setTimeout((()=>{e.container.scrollTop=0}))})),Xr=(t,e)=>{const n=xr(t),r=Object.assign({},Ln,e,n,t);return r.showClass=Object.assign({},Ln.showClass,r.showClass),r.hideClass=Object.assign({},Ln.hideClass,r.hideClass),r},Jr=t=>{const e={popup:C(),container:j(),actions:B(),confirmButton:W(),denyButton:N(),cancelButton:z(),loader:H(),closeButton:Y(),validationMessage:I(),progressSteps:L()};return Ft.domCache.set(t,e),e},Kr=(t,e,n)=>{const r=q();ut(r),e.timer&&(t.timeout=new _r((()=>{n("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(lt(r),tt(r,e,"timerProgressBar"),setTimeout((()=>{t.timeout&&t.timeout.running&&gt(e.timer)}))))},$r=(t,e)=>{e.toast||(_(e.allowEnterKey)?Qr(t,e)||Oe(-1,1):Zr())},Qr=(t,e)=>e.focusDeny&&ht(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&ht(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!ht(t.confirmButton))&&(t.confirmButton.focus(),!0),Zr=()=>{document.activeElement instanceof HTMLElement&&"function"===typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!==typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const t=new Date,e=localStorage.getItem("swal-initiation");e?(t.getTime()-Date.parse(e))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const t=document.createElement("audio");t.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",t.loop=!0,document.body.appendChild(t),setTimeout((()=>{t.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation","".concat(t))}Ur.prototype.disableButtons=Tn,Ur.prototype.enableButtons=Cn,Ur.prototype.getInput=jn,Ur.prototype.disableInput=An,Ur.prototype.enableInput=Mn,Ur.prototype.hideLoading=xn,Ur.prototype.disableLoading=xn,Ur.prototype.showValidationMessage=Dn,Ur.prototype.resetValidationMessage=Rn,Ur.prototype.close=Ge,Ur.prototype.closePopup=Ge,Ur.prototype.closeModal=Ge,Ur.prototype.closeToast=Ge,Ur.prototype.rejectPromise=Je,Ur.prototype.update=Un,Ur.prototype._destroy=Xn,Object.assign(Ur,kr),Object.keys(Qn).forEach((t=>{Ur[t]=function(){return qr&&qr[t]?qr[t](...arguments):null}})),Ur.DismissReason=we,Ur.version="11.7.32";const ti=Ur;return ti.default=ti,ti}(),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')},function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return E}));var r=n(2),i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},a.apply(this,arguments)},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.buildRenderRange=function(e,n,i){var o,a=this.dateEnv,s=t.prototype.buildRenderRange.call(this,e,n,i),l=s.start,u=s.end;if(/^(year|month)$/.test(n)&&(l=a.startOfWeek(l),(o=a.startOfWeek(u)).valueOf()!==u.valueOf()&&(u=Object(r.p)(o,1))),this.options.monthMode&&this.options.fixedWeekCount){var c=Math.ceil(Object(r.I)(l,u));u=Object(r.p)(u,6-c)}return{start:l,end:u}},e}(r.c),l=function(){function t(t){var e=this;this.isHidden=!0,this.margin=10,this.documentMousedown=function(t){e.el&&!e.el.contains(t.target)&&e.hide()},this.options=t}return t.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.style.display="",this.position(),this.isHidden=!1,this.trigger("show"))},t.prototype.hide=function(){this.isHidden||(this.el.style.display="none",this.isHidden=!0,this.trigger("hide"))},t.prototype.render=function(){var t=this,e=this.options,n=this.el=Object(r.D)("div",{className:"fc-popover "+(e.className||""),style:{top:"0",left:"0"}});"function"===typeof e.content&&e.content(n),e.parentEl.appendChild(n),Object(r.V)(n,"click",".fc-close",(function(e){t.hide()})),e.autoHide&&document.addEventListener("mousedown",this.documentMousedown)},t.prototype.destroy=function(){this.hide(),this.el&&(Object(r.cb)(this.el),this.el=null),document.removeEventListener("mousedown",this.documentMousedown)},t.prototype.position=function(){var t,e,n=this.options,i=this.el,o=i.getBoundingClientRect(),a=Object(r.B)(i.offsetParent),s=Object(r.x)(n.parentEl);t=n.top||0,e=void 0!==n.left?n.left:void 0!==n.right?n.right-o.width:0,t=Math.min(t,s.bottom-o.height-this.margin),t=Math.max(t,s.top+this.margin),e=Math.min(e,s.right-o.width-this.margin),e=Math.max(e,s.left+this.margin),Object(r.r)(i,{top:t-a.top,left:e-a.left})},t.prototype.trigger=function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))},t}(),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.renderSegHtml=function(t,e){var n,i,o=this.context,a=t.eventRange,s=a.def,l=a.ui,u=s.allDay,c=Object(r.y)(o,s,l),d=u&&t.isStart&&Object(r.A)(o,s,l),h=u&&t.isEnd&&Object(r.z)(o,s,l),f=this.getSegClasses(t,c,d||h,e),p=Object(r.G)(this.getSkinCss(l)),m="";return f.unshift("fc-day-grid-event","fc-h-event"),t.isStart&&(n=this.getTimeText(a))&&(m='<span class="fc-time">'+Object(r.Q)(n)+"</span>"),i='<span class="fc-title">'+(Object(r.Q)(s.title||"")||"&nbsp;")+"</span>",'<a class="'+f.join(" ")+'"'+(s.url?' href="'+Object(r.Q)(s.url)+'"':"")+(p?' style="'+p+'"':"")+'><div class="fc-content">'+("rtl"===o.options.dir?i+" "+m:m+" "+i)+"</div>"+(d?'<div class="fc-resizer fc-start-resizer"></div>':"")+(h?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},e.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},e.prototype.computeDisplayEventEnd=function(){return!1},e}(r.g),c=function(t){function e(e){var n=t.call(this)||this;return n.dayGrid=e,n}return o(e,t),e.prototype.attachSegs=function(t,e){var n=this.rowStructs=this.renderSegRows(t);this.dayGrid.rowEls.forEach((function(t,e){t.querySelector(".fc-content-skeleton > table").appendChild(n[e].tbodyEl)})),e||this.dayGrid.removeSegPopover()},e.prototype.detachSegs=function(){for(var t,e=this.rowStructs||[];t=e.pop();)Object(r.cb)(t.tbodyEl);this.rowStructs=null},e.prototype.renderSegRows=function(t){var e,n,r=[];for(e=this.groupSegRows(t),n=0;n<e.length;n++)r.push(this.renderSegRow(n,e[n]));return r},e.prototype.renderSegRow=function(t,e){var n,i,o,a,s,l,u,c=this.context.isRtl,d=this.dayGrid,h=d.colCnt,f=this.buildSegLevels(e),p=Math.max(1,f.length),m=document.createElement("tbody"),g=[],b=[],v=[];function y(t){for(;o<t;)(u=(v[n-1]||[])[o])?u.rowSpan=(u.rowSpan||1)+1:(u=document.createElement("td"),a.appendChild(u)),b[n][o]=u,v[n][o]=u,o++}for(n=0;n<p;n++){if(i=f[n],o=0,a=document.createElement("tr"),g.push([]),b.push([]),v.push([]),i)for(s=0;s<i.length;s++){l=i[s];var w=c?h-1-l.lastCol:l.firstCol,k=c?h-1-l.firstCol:l.lastCol;for(y(w),u=Object(r.D)("td",{className:"fc-event-container"},l.el),w!==k?u.colSpan=k-w+1:v[n][o]=u;o<=k;)b[n][o]=u,g[n][o]=l,o++;a.appendChild(u)}y(h);var _=d.renderProps.renderIntroHtml();_&&(c?Object(r.q)(a,_):Object(r.ab)(a,_)),m.appendChild(a)}return{row:t,tbodyEl:m,cellMatrix:b,segMatrix:g,segLevels:f,segs:e}},e.prototype.buildSegLevels=function(t){var e,n,r,i=this.context.isRtl,o=this.dayGrid.colCnt,a=[];for(t=this.sortEventSegs(t),e=0;e<t.length;e++){for(n=t[e],r=0;r<a.length&&d(n,a[r]);r++);n.level=r,n.leftCol=i?o-1-n.lastCol:n.firstCol,n.rightCol=i?o-1-n.firstCol:n.lastCol,(a[r]||(a[r]=[])).push(n)}for(r=0;r<a.length;r++)a[r].sort(h);return a},e.prototype.groupSegRows=function(t){var e,n=[];for(e=0;e<this.dayGrid.rowCnt;e++)n.push([]);for(e=0;e<t.length;e++)n[t[e].row].push(t[e]);return n},e.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},e}(u);function d(t,e){var n,r;for(n=0;n<e.length;n++)if((r=e[n]).firstCol<=t.lastCol&&r.lastCol>=t.firstCol)return!0;return!1}function h(t,e){return t.leftCol-e.leftCol}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.attachSegs=function(t,e){var n=e.sourceSeg,i=this.rowStructs=this.renderSegRows(t);this.dayGrid.rowEls.forEach((function(t,e){var o,a,s=Object(r.R)('<div class="fc-mirror-skeleton"><table></table></div>');n&&n.row===e?o=n.el:(o=t.querySelector(".fc-content-skeleton tbody"))||(o=t.querySelector(".fc-content-skeleton table")),a=o.getBoundingClientRect().top-t.getBoundingClientRect().top,s.style.top=a+"px",s.querySelector("table").appendChild(i[e].tbodyEl),t.appendChild(s)}))},e}(c),p='<td style="pointer-events:none"></td>',m=function(t){function e(e){var n=t.call(this)||this;return n.fillSegTag="td",n.dayGrid=e,n}return o(e,t),e.prototype.renderSegs=function(e,n,r){"bgEvent"===e&&(r=r.filter((function(t){return t.eventRange.def.allDay}))),t.prototype.renderSegs.call(this,e,n,r)},e.prototype.attachSegs=function(t,e){var n,r,i,o=[];for(n=0;n<e.length;n++)r=e[n],i=this.renderFillRow(t,r),this.dayGrid.rowEls[r.row].appendChild(i),o.push(i);return o},e.prototype.renderFillRow=function(t,e){var n,i,o,a=this.dayGrid,s=this.context.isRtl,l=a.colCnt,u=s?l-1-e.lastCol:e.firstCol,c=(s?l-1-e.firstCol:e.lastCol)+1;n="businessHours"===t?"bgevent":t.toLowerCase(),o=(i=Object(r.R)('<div class="fc-'+n+'-skeleton"><table><tr></tr></table></div>')).getElementsByTagName("tr")[0],u>0&&Object(r.q)(o,new Array(u+1).join(p)),e.el.colSpan=c-u,o.appendChild(e.el),c<l&&Object(r.q)(o,new Array(l-c+1).join(p));var d=a.renderProps.renderIntroHtml();return d&&(s?Object(r.q)(o,d):Object(r.ab)(o,d)),i},e}(r.h),g=function(t){function e(e){var n=t.call(this,e)||this,i=n.eventRenderer=new b(n),o=n.renderFrame=Object(r.Y)(n._renderFrame);return n.renderFgEvents=Object(r.Y)(i.renderSegs.bind(i),i.unrender.bind(i),[o]),n.renderEventSelection=Object(r.Y)(i.selectByInstanceId.bind(i),i.unselectByInstanceId.bind(i),[n.renderFgEvents]),n.renderEventDrag=Object(r.Y)(i.hideByHash.bind(i),i.showByHash.bind(i),[o]),n.renderEventResize=Object(r.Y)(i.hideByHash.bind(i),i.showByHash.bind(i),[o]),n}return o(e,t),e.prototype.firstContext=function(t){t.calendar.registerInteractiveComponent(this,{el:this.el,useEventCenter:!1})},e.prototype.render=function(t,e){this.renderFrame(t.date),this.renderFgEvents(e,t.fgSegs),this.renderEventSelection(t.eventSelection),this.renderEventDrag(t.eventDragInstances),this.renderEventResize(t.eventResizeInstances)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.renderFrame.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},e.prototype._renderFrame=function(t){var e=this.context,n=e.theme,i=e.dateEnv,o=e.options,a=i.format(t,Object(r.E)(o.dayPopoverFormat));this.el.innerHTML='<div class="fc-header '+n.getClass("popoverHeader")+'"><span class="fc-title">'+Object(r.Q)(a)+'</span><span class="fc-close '+n.getIconClass("close")+'"></span></div><div class="fc-body '+n.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>',this.segContainerEl=this.el.querySelector(".fc-event-container")},e.prototype.queryHit=function(t,e,n,i){var o=this.props.date;if(t<n&&e<i)return{component:this,dateSpan:{allDay:!0,range:{start:o,end:Object(r.n)(o,1)}},dayEl:this.el,rect:{left:0,top:0,right:n,bottom:i},layer:1}},e}(r.b),b=function(t){function e(e){var n=t.call(this)||this;return n.dayTile=e,n}return o(e,t),e.prototype.attachSegs=function(t){for(var e=0,n=t;e<n.length;e++){var r=n[e];this.dayTile.segContainerEl.appendChild(r.el)}},e.prototype.detachSegs=function(t){for(var e=0,n=t;e<n.length;e++){var i=n[e];Object(r.cb)(i.el)}},e}(u),v=function(){function t(t){this.context=t}return t.prototype.renderHtml=function(t){var e=[];t.renderIntroHtml&&e.push(t.renderIntroHtml());for(var n=0,r=t.cells;n<r.length;n++){var i=r[n];e.push(y(i.date,t.dateProfile,this.context,i.htmlAttrs))}return t.cells.length||e.push('<td class="fc-day '+this.context.theme.getClass("widgetContent")+'"></td>'),"rtl"===this.context.options.dir&&e.reverse(),"<tr>"+e.join("")+"</tr>"},t}();function y(t,e,n,i){var o=n.dateEnv,a=n.theme,s=Object(r.bb)(e.activeRange,t),l=Object(r.O)(t,e,n);return l.unshift("fc-day",a.getClass("widgetContent")),'<td class="'+l.join(" ")+'"'+(s?' data-date="'+o.formatIso(t,{omitTime:!0})+'"':"")+(i?" "+i:"")+"></td>"}var w=Object(r.E)({day:"numeric"}),k=Object(r.E)({week:"numeric"}),_=function(t){function e(e,n){var i=t.call(this,e)||this;i.bottomCoordPadding=0,i.isCellSizesDirty=!1,i.renderProps=n;var o=i.eventRenderer=new c(i),a=i.fillRenderer=new m(i);i.mirrorRenderer=new f(i);var s=i.renderCells=Object(r.Y)(i._renderCells,i._unrenderCells);return i.renderBusinessHours=Object(r.Y)(a.renderSegs.bind(a,"businessHours"),a.unrender.bind(a,"businessHours"),[s]),i.renderDateSelection=Object(r.Y)(a.renderSegs.bind(a,"highlight"),a.unrender.bind(a,"highlight"),[s]),i.renderBgEvents=Object(r.Y)(a.renderSegs.bind(a,"bgEvent"),a.unrender.bind(a,"bgEvent"),[s]),i.renderFgEvents=Object(r.Y)(o.renderSegs.bind(o),o.unrender.bind(o),[s]),i.renderEventSelection=Object(r.Y)(o.selectByInstanceId.bind(o),o.unselectByInstanceId.bind(o),[i.renderFgEvents]),i.renderEventDrag=Object(r.Y)(i._renderEventDrag,i._unrenderEventDrag,[s]),i.renderEventResize=Object(r.Y)(i._renderEventResize,i._unrenderEventResize,[s]),i}return o(e,t),e.prototype.render=function(t,e){var n=t.cells;this.rowCnt=n.length,this.colCnt=n[0].length,this.renderCells(n,t.isRigid),this.renderBusinessHours(e,t.businessHourSegs),this.renderDateSelection(e,t.dateSelectionSegs),this.renderBgEvents(e,t.bgEventSegs),this.renderFgEvents(e,t.fgEventSegs),this.renderEventSelection(t.eventSelection),this.renderEventDrag(t.eventDrag),this.renderEventResize(t.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.renderCells.unrender()},e.prototype.getCellRange=function(t,e){var n=this.props.cells[t][e].date;return{start:n,end:Object(r.n)(n,1)}},e.prototype.updateSegPopoverTile=function(t,e){var n=this.props;this.segPopoverTile.receiveProps({date:t||this.segPopoverTile.props.date,fgSegs:e||this.segPopoverTile.props.fgSegs,eventSelection:n.eventSelection,eventDragInstances:n.eventDrag?n.eventDrag.affectedInstances:null,eventResizeInstances:n.eventResize?n.eventResize.affectedInstances:null},this.context)},e.prototype._renderCells=function(t,e){var n,i,o=this.context,a=o.calendar,s=o.view,l=o.isRtl,u=o.dateEnv,c=this.rowCnt,d=this.colCnt,h="";for(n=0;n<c;n++)h+=this.renderDayRowHtml(n,e);for(this.el.innerHTML=h,this.rowEls=Object(r.L)(this.el,".fc-row"),this.cellEls=Object(r.L)(this.el,".fc-day, .fc-disabled-day"),l&&this.cellEls.reverse(),this.rowPositions=new r.i(this.el,this.rowEls,!1,!0),this.colPositions=new r.i(this.el,this.cellEls.slice(0,d),!0,!1),n=0;n<c;n++)for(i=0;i<d;i++)a.publiclyTrigger("dayRender",[{date:u.toDate(t[n][i].date),el:this.getCellEl(n,i),view:s}]);this.isCellSizesDirty=!0},e.prototype._unrenderCells=function(){this.removeSegPopover()},e.prototype.renderDayRowHtml=function(t,e){var n=this.context.theme,r=["fc-row","fc-week",n.getClass("dayRow")];e&&r.push("fc-rigid");var i=new v(this.context);return'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+n.getClass("tableGrid")+'">'+i.renderHtml({cells:this.props.cells[t],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(t)+"</thead>":"")+"</table></div></div>"},e.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},e.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},e.prototype.renderNumberTrHtml=function(t){var e=this.context.isRtl,n=this.renderProps.renderNumberIntroHtml(t,this);return"<tr>"+(e?"":n)+this.renderNumberCellsHtml(t)+(e?n:"")+"</tr>"},e.prototype.renderNumberCellsHtml=function(t){var e,n,r=[];for(e=0;e<this.colCnt;e++)n=this.props.cells[t][e].date,r.push(this.renderNumberCellHtml(n));return this.context.isRtl&&r.reverse(),r.join("")},e.prototype.renderNumberCellHtml=function(t){var e,n,i=this.context,o=i.dateEnv,a=i.options,s="",l=Object(r.bb)(this.props.dateProfile.activeRange,t),u=this.getIsDayNumbersVisible()&&l;return u||this.renderProps.cellWeekNumbersVisible?((e=Object(r.O)(t,this.props.dateProfile,this.context)).unshift("fc-day-top"),this.renderProps.cellWeekNumbersVisible&&(n=o.weekDow),s+='<td class="'+e.join(" ")+'"'+(l?' data-date="'+o.formatIso(t,{omitTime:!0})+'"':"")+">",this.renderProps.cellWeekNumbersVisible&&t.getUTCDay()===n&&(s+=Object(r.t)(a,o,{date:t,type:"week"},{class:"fc-week-number"},o.format(t,k))),u&&(s+=Object(r.t)(a,o,t,{class:"fc-day-number"},o.format(t,w))),s+="</td>"):"<td></td>"},e.prototype.updateSize=function(t){var e=this.context.calendar,n=this,r=n.fillRenderer,i=n.eventRenderer,o=n.mirrorRenderer;(t||this.isCellSizesDirty||e.isEventsUpdated)&&(this.buildPositionCaches(),this.isCellSizesDirty=!1),r.computeSizes(t),i.computeSizes(t),o.computeSizes(t),r.assignSizes(t),i.assignSizes(t),o.assignSizes(t)},e.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildRowPositions()},e.prototype.buildColPositions=function(){this.colPositions.build()},e.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},e.prototype.positionToHit=function(t,e){var n=this.colPositions,r=this.rowPositions,i=n.leftToIndex(t),o=r.topToIndex(e);if(null!=o&&null!=i)return{row:o,col:i,dateSpan:{range:this.getCellRange(o,i),allDay:!0},dayEl:this.getCellEl(o,i),relativeRect:{left:n.lefts[i],right:n.rights[i],top:r.tops[o],bottom:r.bottoms[o]}}},e.prototype.getCellEl=function(t,e){return this.cellEls[t*this.colCnt+e]},e.prototype._renderEventDrag=function(t){t&&(this.eventRenderer.hideByHash(t.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,t.segs))},e.prototype._unrenderEventDrag=function(t){t&&(this.eventRenderer.showByHash(t.affectedInstances),this.fillRenderer.unrender("highlight",this.context))},e.prototype._renderEventResize=function(t){t&&(this.eventRenderer.hideByHash(t.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,t.segs),this.mirrorRenderer.renderSegs(this.context,t.segs,{isResizing:!0,sourceSeg:t.sourceSeg}))},e.prototype._unrenderEventResize=function(t){t&&(this.eventRenderer.showByHash(t.affectedInstances),this.fillRenderer.unrender("highlight",this.context),this.mirrorRenderer.unrender(this.context,t.segs,{isResizing:!0,sourceSeg:t.sourceSeg}))},e.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},e.prototype.limitRows=function(t){var e,n,r=this.eventRenderer.rowStructs||[];for(e=0;e<r.length;e++)this.unlimitRow(e),!1!==(n=!!t&&("number"===typeof t?t:this.computeRowLevelLimit(e)))&&this.limitRow(e,n)},e.prototype.computeRowLevelLimit=function(t){var e,n,i=this.rowEls[t].getBoundingClientRect().bottom,o=Object(r.K)(this.eventRenderer.rowStructs[t].tbodyEl);for(e=0;e<o.length;e++)if((n=o[e]).classList.remove("fc-limited"),n.getBoundingClientRect().bottom>i)return e;return!1},e.prototype.limitRow=function(t,e){var n,i,o,a,s,l,u,c,d,h,f,p,m,g,b,v=this,y=this.colCnt,w=this.context.isRtl,k=this.eventRenderer.rowStructs[t],_=[],O=0,x=function(n){for(;O<n;)(l=v.getCellSegs(t,O,e)).length&&(d=i[e-1][O],b=v.renderMoreLink(t,O,l),g=Object(r.D)("div",null,b),d.appendChild(g),_.push(g)),O++};if(e&&e<k.segLevels.length){for(n=k.segLevels[e-1],i=k.cellMatrix,(o=Object(r.K)(k.tbodyEl).slice(e)).forEach((function(t){t.classList.add("fc-limited")})),a=0;a<n.length;a++){s=n[a];var E=w?y-1-s.lastCol:s.firstCol,j=w?y-1-s.firstCol:s.lastCol;for(x(E),c=[],u=0;O<=j;)l=this.getCellSegs(t,O,e),c.push(l),u+=l.length,O++;if(u){for(h=(d=i[e-1][E]).rowSpan||1,f=[],p=0;p<c.length;p++)m=Object(r.D)("td",{className:"fc-more-cell",rowSpan:h}),l=c[p],b=this.renderMoreLink(t,E+p,[s].concat(l)),g=Object(r.D)("div",null,b),m.appendChild(g),f.push(m),_.push(m);d.classList.add("fc-limited"),Object(r.S)(d,f),o.push(d)}}x(this.colCnt),k.moreEls=_,k.limitedEls=o}},e.prototype.unlimitRow=function(t){var e=this.eventRenderer.rowStructs[t];e.moreEls&&(e.moreEls.forEach(r.cb),e.moreEls=null),e.limitedEls&&(e.limitedEls.forEach((function(t){t.classList.remove("fc-limited")})),e.limitedEls=null)},e.prototype.renderMoreLink=function(t,e,n){var i=this,o=this.context,a=o.calendar,s=o.view,l=o.dateEnv,u=o.options,c=o.isRtl,d=Object(r.D)("a",{className:"fc-more"});return d.innerText=this.getMoreLinkText(n.length),d.addEventListener("click",(function(r){var o=u.eventLimitClick,d=c?i.colCnt-e-1:e,h=i.props.cells[t][d].date,f=r.currentTarget,p=i.getCellEl(t,e),m=i.getCellSegs(t,e),g=i.resliceDaySegs(m,h),b=i.resliceDaySegs(n,h);"function"===typeof o&&(o=a.publiclyTrigger("eventLimitClick",[{date:l.toDate(h),allDay:!0,dayEl:p,moreEl:f,segs:g,hiddenSegs:b,jsEvent:r,view:s}])),"popover"===o?i.showSegPopover(t,e,f,g):"string"===typeof o&&a.zoomTo(h,o)})),d},e.prototype.showSegPopover=function(t,e,n,i){var o,a,s=this,u=this.context,c=u.calendar,d=u.view,h=u.theme,f=u.isRtl,p=f?this.colCnt-e-1:e,m=n.parentNode;o=1===this.rowCnt?d.el:this.rowEls[t],a={className:"fc-more-popover "+h.getClass("popover"),parentEl:d.el,top:Object(r.B)(o).top,autoHide:!0,content:function(e){s.segPopoverTile=new g(e),s.updateSegPopoverTile(s.props.cells[t][p].date,i)},hide:function(){s.segPopoverTile.destroy(),s.segPopoverTile=null,s.segPopover.destroy(),s.segPopover=null}},f?a.right=Object(r.B)(m).right+1:a.left=Object(r.B)(m).left-1,this.segPopover=new l(a),this.segPopover.show(),c.releaseAfterSizingTriggers()},e.prototype.resliceDaySegs=function(t,e){for(var n=e,i={start:n,end:Object(r.n)(n,1)},o=[],s=0,l=t;s<l.length;s++){var u=l[s],c=u.eventRange,d=c.range,h=Object(r.T)(d,i);h&&o.push(a({},u,{eventRange:{def:c.def,ui:a({},c.ui,{durationEditable:!1}),instance:c.instance,range:h},isStart:u.isStart&&h.start.valueOf()===d.start.valueOf(),isEnd:u.isEnd&&h.end.valueOf()===d.end.valueOf()}))}return o},e.prototype.getMoreLinkText=function(t){var e=this.context.options.eventLimitText;return"function"===typeof e?e(t):"+"+t+" "+e},e.prototype.getCellSegs=function(t,e,n){for(var r,i=this.eventRenderer.rowStructs[t].segMatrix,o=n||0,a=[];o<i.length;)(r=i[o][e])&&a.push(r),o++;return a},e}(r.b),O=Object(r.E)({week:"numeric"}),x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.processOptions=Object(r.X)(e._processOptions),e.renderSkeleton=Object(r.Y)(e._renderSkeleton,e._unrenderSkeleton),e.renderHeadIntroHtml=function(){var t=e.context,n=t.theme,i=t.options;return e.colWeekNumbersVisible?'<th class="fc-week-number '+n.getClass("widgetHeader")+'" '+e.weekNumberStyleAttr()+"><span>"+Object(r.Q)(i.weekLabel)+"</span></th>":""},e.renderDayGridNumberIntroHtml=function(t,n){var i=e.context,o=i.options,a=i.dateEnv,s=n.props.cells[t][0].date;return e.colWeekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+">"+Object(r.t)(o,a,{date:s,type:"week",forceOff:1===n.colCnt},a.format(s,O))+"</td>":""},e.renderDayGridBgIntroHtml=function(){var t=e.context.theme;return e.colWeekNumbersVisible?'<td class="fc-week-number '+t.getClass("widgetContent")+'" '+e.weekNumberStyleAttr()+"></td>":""},e.renderDayGridIntroHtml=function(){return e.colWeekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+"></td>":""},e}return o(e,t),e.prototype._processOptions=function(t){t.weekNumbers?t.weekNumbersWithinDays?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0):(this.colWeekNumbersVisible=!1,this.cellWeekNumbersVisible=!1)},e.prototype.render=function(e,n){t.prototype.render.call(this,e,n),this.processOptions(n.options),this.renderSkeleton(n)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.renderSkeleton.unrender()},e.prototype._renderSkeleton=function(t){this.el.classList.add("fc-dayGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new r.j("hidden","auto");var e=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(e),e.classList.add("fc-day-grid-container");var n=Object(r.D)("div",{className:"fc-day-grid"});e.appendChild(n),this.dayGrid=new _(n,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible})},e.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-dayGrid-view"),this.dayGrid.destroy(),this.scroller.destroy()},e.prototype.renderSkeletonHtml=function(){var t=this.context,e=t.theme,n=t.options;return'<table class="'+e.getClass("tableGrid")+'">'+(n.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+e.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+e.getClass("widgetContent")+'"></td></tr></tbody></table>'},e.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},e.prototype.hasRigidRows=function(){var t=this.context.options.eventLimit;return t&&"number"!==typeof t},e.prototype.updateSize=function(e,n,r){t.prototype.updateSize.call(this,e,n,r),this.dayGrid.updateSize(e)},e.prototype.updateBaseSize=function(t,e,n){var i,o,a=this.dayGrid,s=this.context.options.eventLimit,l=this.header?this.header.el:null;a.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=Object(r.W)(Object(r.L)(this.el,".fc-week-number"))),this.scroller.clear(),l&&Object(r.gb)(l),a.removeSegPopover(),s&&"number"===typeof s&&a.limitRows(s),i=this.computeScrollerHeight(e),this.setGridHeight(i,n),s&&"number"!==typeof s&&a.limitRows(s),n||(this.scroller.setHeight(i),((o=this.scroller.getScrollbarWidths()).left||o.right)&&(l&&Object(r.w)(l,o),i=this.computeScrollerHeight(e),this.scroller.setHeight(i)),this.scroller.lockOverflow(o))):n||(i=this.computeScrollerHeight(e),this.scroller.setHeight(i))},e.prototype.computeScrollerHeight=function(t){return t-Object(r.fb)(this.el,this.scroller.el)},e.prototype.setGridHeight=function(t,e){this.context.options.monthMode?(e&&(t*=this.dayGrid.rowCnt/6),Object(r.J)(this.dayGrid.rowEls,t,!e)):e?Object(r.hb)(this.dayGrid.rowEls):Object(r.J)(this.dayGrid.rowEls,t,!0)},e.prototype.computeDateScroll=function(t){return{top:0}},e.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},e.prototype.applyDateScroll=function(t){void 0!==t.top&&this.scroller.setScrollTop(t.top)},e}(r.m);x.prototype.dateProfileGeneratorClass=s;var E=function(t){function e(e){var n=t.call(this,e.el)||this;return n.slicer=new j,n.dayGrid=e,n}return o(e,t),e.prototype.firstContext=function(t){t.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el})},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},e.prototype.render=function(t,e){var n=this.dayGrid,r=t.dateProfile,i=t.dayTable;n.receiveContext(e),n.receiveProps(a({},this.slicer.sliceProps(t,r,t.nextDayThreshold,e.calendar,n,i),{dateProfile:r,cells:i.cells,isRigid:t.isRigid}),e)},e.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches()},e.prototype.queryHit=function(t,e){var n=this.dayGrid.positionToHit(t,e);if(n)return{component:this.dayGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},e}(r.b),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.sliceRange=function(t,e){return e.sliceRange(t)},e}(r.k),S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buildDayTable=Object(r.X)(P),e}return o(e,t),e.prototype.render=function(e,n){t.prototype.render.call(this,e,n);var r=this.props.dateProfile,i=this.dayTable=this.buildDayTable(r,e.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:r,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt,renderIntroHtml:this.renderHeadIntroHtml},n),this.simpleDayGrid.receiveProps({dateProfile:r,dayTable:i,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},n)},e.prototype._renderSkeleton=function(e){t.prototype._renderSkeleton.call(this,e),e.options.columnHeader&&(this.header=new r.d(this.el.querySelector(".fc-head-container"))),this.simpleDayGrid=new E(this.dayGrid)},e.prototype._unrenderSkeleton=function(){t.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},e}(x);function P(t,e){var n=new r.e(t.renderRange,e);return new r.f(n,/year|month|week/.test(t.currentRangeUnit))}var C=Object(r.F)({defaultView:"dayGridMonth",views:{dayGrid:S,dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});e.d=C},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var r={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};e.a=r},function(t,e,n){"use strict";n.r(e),n.d(e,"BaseFilterController",(function(){return v}));var r=n(1),i=n(10),o=n(29),a=n(22),s=n(18);function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var m,g,b,v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(f,t);var e,n,r,u=h(f);function f(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),u.apply(this,arguments)}return e=f,(n=[{key:"connect",value:function(){this.defineVariables(),Object(i.a)(this),Object(s.setFiltersWithLocalStorage)(this.singular,this.menuTarget),Object(s.toggleActive)(this.singular,this.selectTarget)}},{key:"filter",value:function(t){var e="true"==t.currentTarget.dataset.selected;t.currentTarget.dataset.selected=!e,Object(s.updateFilter)(this.plural,this.menuTarget),Object(o.a)(),Object(s.toggleActive)(this.singular,this.selectTarget)}},{key:"selectAll",value:function(){Object(s.desactivate)(this.selectTarget),Object(s.selectAllElements)(this.singular),Object(s.updateFilter)(this.plural,this.menuTarget),Object(o.a)()}},{key:"removeAll",value:function(){Object(s.activate)(this.selectTarget),Object(s.removeAllElements)(this.singular),Object(s.updateFilter)(this.plural,this.menuTarget),Object(o.a)()}},{key:"toggleMenu",value:function(){var t="true"==this.selectTarget.parentElement.dataset.open;this.selectTarget.parentElement.dataset.open=!t}},{key:"closeMenu",value:function(){this.selectTarget.parentElement.dataset.open=!1}},{key:"reset",value:function(){this.closeMenu(),this.selectAll()}},{key:"search",value:function(){Object(a.a)(this.searchTarget.value,l(document.querySelectorAll(".".concat(this.singular,"-filter"))))}},{key:"defineVariables",value:function(){}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(r.Controller);m=v,b=[],(g=p(g="targets"))in m?Object.defineProperty(m,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[g]=b},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u})),n.d(e,"isAdministrativeTab",(function(){return h})),n.d(e,"isAlertTab",(function(){return f})),n.d(e,"isFeedbackTab",(function(){return p})),n.d(e,"isActionTab",(function(){return m})),n.d(e,"defineBackupTab",(function(){return g})),n.d(e,"addTrackIdParamToUrl",(function(){return b}));var r=n(1),i=n(34);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(l,t);var e,n,r,i=s(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"select",value:function(t){var e=t.currentTarget,n=e.querySelector(".avatar-small"),r=e.dataset.mobility,i=e.classList.contains("active");this.unselectAllTrackLines(),n&&n.classList.toggle("border-".concat(r)),e.classList.toggle("active"),i||this.activateSidebar(e)}},{key:"activeSmartFilter",value:function(){var t,e=document.querySelector(".smart-filter-container.active");return t=e?e.dataset["desktop-Hr-Filters-SmartFiltersTarget"]:void 0,t}},{key:"activeSubSmartFilter",value:function(){var t,e=document.querySelector(".subfilter.active");return t=e?e.dataset["desktop-Hr-Filters-SmartFiltersTarget"]:void 0,t}},{key:"unselectAllTrackLines",value:function(){document.querySelectorAll(".tabulator-row.active").forEach((function(t){var e=t.querySelector(".avatar-small"),n=t.dataset.mobility;t.classList.remove("active"),e.classList.remove("border-".concat(n))}))}},{key:"activateSidebar",value:function(t){var e=t.dataset.trackedSub_smartfilter;b(t.dataset.trackId),c(t,e),d()}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),l}(r.Controller),c=function(t,e){var n=g(t.dataset.status),r=document.getElementById("template-sidebar-content").innerHTML,o={"{{{trackId}}}":t.dataset.trackId,"{{{employeeId}}}":t.dataset.employeeId,"{{{mobility}}}":t.dataset.mobility,"{{{status}}}":t.dataset.status,"{{{alertActivated}}}":f(e,n),"{{{administrativeActivated}}}":h(e,n),"{{{feedbacksActivated}}}":p(e,n),"{{{actionsActivated}}}":m(e,n),"{{{featFeedback}}}":t.dataset.featFeedback};document.getElementById("hr-sidebar").innerHTML=Object(i.b)(r,o)},d=function(){var t=document.getElementById("hr-sidebar");"false"==t.getAttribute("activated")&&t.setAttribute("activated","true")},h=function(t,e){return t?["paperwork","paperworkToValidate","paperworkCompleted","paperworkUncompleted"].includes(t):"administrative"===e},f=function(t,e){return t?["alert","alertPending","alertDisengaged"].includes(t):"alert"===e},p=function(t,e){return t?["feedback","feedbackLowPulse","feedbackHighPulse","feedbackCompletedSurvey"].includes(t):"feedbacks"===e},m=function(t,e){return t?["action","actionToDo"].includes(t):"actions"===e},g=function(t){return["closed","building","cancelled"].includes(t)?"alert":localStorage.getItem("sidebar_tab")||"alert"},b=function(t){var e=new URLSearchParams(window.location.search);if(window.location.href.includes("actor/tracks")&&e.get("track_id")!=t){var n=new URL(window.location);n.searchParams.set("track_id",t),n.searchParams.set("tab",localStorage.getItem("sidebar_tab")||"alert"),window.history.pushState({},"",n)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"BaseFilterController",(function(){return v}));var r=n(1),i=n(10),o=n(11),a=n(22),s=n(20);function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var m,g,b,v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(f,t);var e,n,r,u=h(f);function f(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),u.apply(this,arguments)}return e=f,(n=[{key:"connect",value:function(){this.defineVariables(),Object(i.a)(this),Object(s.setFiltersWithLocalStorage)(this.singular,this.menuTarget),Object(s.toggleActive)(this.singular,this.selectTarget)}},{key:"filter",value:function(t){var e="true"==t.currentTarget.dataset.selected;t.currentTarget.dataset.selected=!e,Object(s.updateFilter)(this.plural,this.menuTarget),Object(o.applyFormResourcesFilters)(),Object(s.toggleActive)(this.singular,this.selectTarget)}},{key:"selectAll",value:function(){Object(s.desactivate)(this.selectTarget),Object(s.selectAllElements)(this.singular),Object(s.updateFilter)(this.plural,this.menuTarget),Object(o.applyFormResourcesFilters)()}},{key:"removeAll",value:function(){Object(s.activate)(this.selectTarget),Object(s.removeAllElements)(this.singular),Object(s.updateFilter)(this.plural,this.menuTarget),Object(o.applyFormResourcesFilters)()}},{key:"toggleMenu",value:function(){var t="true"==this.selectTarget.parentElement.dataset.open;this.selectTarget.parentElement.dataset.open=!t}},{key:"closeMenu",value:function(){this.selectTarget.parentElement.dataset.open=!1}},{key:"reset",value:function(){this.closeMenu(),this.selectAll()}},{key:"search",value:function(){Object(a.a)(this.searchTarget.value,l(document.querySelectorAll(".".concat(this.singular,"-filter"))))}},{key:"defineVariables",value:function(){}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(r.Controller);m=v,b=[],(g=p(g="targets"))in m?Object.defineProperty(m,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[g]=b},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return f})),n.d(e,"handleDisplay",(function(){return S}));var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(d,e);var n,o,a,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(o=[{key:"connect",value:function(){this.clickHandler=function(t){document.querySelector('div[data-controller="desktop--hr--chart-filters desktop--hr--charts--delayer"]').contains(t.target)||v();var e=document.querySelector('div[data-controller="utils--flatpickr"]'),n=document.querySelector(".flatpickr-calendar");""!=document.querySelector("#definedDaysTo").value||n.contains(t.target)||e.contains(t.target)||(_(document.getElementById("definedDaysFrom")),_(document.getElementById("definedDaysTo")),_(document.getElementById("dates-arrow")))},document.addEventListener("click",this.clickHandler)}},{key:"disconnect",value:function(){document.removeEventListener("click",this.clickHandler)}},{key:"toggleValue",value:function(t){var e=this.filtersValue,n=t.currentTarget.dataset.filterValue;n=isNaN(n)?n:+n;var r=t.currentTarget.dataset.filterName,i=!document.getElementById("".concat(r,"-").concat(n,"-check")).classList.contains("d-none");e.mobilities.includes("nilMobility")&&(e.mobilities=[]),i?e[r].splice(e[r].indexOf(n),1):e[r].push(n),0==e.mobilities.length&&(e.mobilities=["nilMobility"]),this.filtersValue=e,document.getElementById("".concat(r,"-").concat(n,"-check")).classList.toggle("d-none"),this.hideOrDisplayTemplateSection(n),this.activateOrDesactiveMenu(r)}},{key:"selectAll",value:function(t){this.updateSelection(t,"select")}},{key:"removeAll",value:function(t){this.updateSelection(t,"remove")}},{key:"updateSelection",value:function(t,e){var n=[this.filtersValue,t.currentTarget.parentElement.dataset.type],r=n[0],o=n[1],a=i(document.querySelectorAll("div[data-filter-name=".concat(o,"]"))).map((function(t){return isNaN(t.dataset.filterValue)?t.dataset.filterValue:+t.dataset.filterValue})),s={condition:"select"==e?a.length==r[o].length:0==r[o].length,values:"select"==e?a:[null]};s.condition||(r[o]=s.values,this.filtersValue=r,a.forEach((function(t){var n=document.getElementById("".concat(o,"-").concat(t,"-check"));"select"==e?E(n):_(n)})),this.refreshCharts(),this.activateOrDesactiveMenu(o))}},{key:"search",value:function(t){var e="".concat(t.currentTarget.dataset["desktop-Hr-ChartFiltersTarget"],"Target"),n=this[e].value,r=this[e].dataset.searchType,o=i(document.querySelectorAll("div[data-filter-name=".concat(r,"]")));o.forEach((function(t){return x(t)}));var a=o.map((function(t){return t.firstElementChild.innerText})),s=[];a.forEach((function(t,e){t.toLowerCase().includes(n.toLowerCase())||s.push(o[e])})),s.forEach((function(t){return O(t)}))}},{key:"refreshCharts",value:function(){var t=this;["track_line","track_horizontal_bars","feedback_vertical_bars"].forEach((function(e,n){t.refreshTrackOrFeedbackChart(e,n)})),Object.entries({surveyLine:"survey_line",surveyVerticalBars:"survey_vertical_bars"}).forEach((function(e){var n=r(e,2),i=n[0],o=n[1];t.refreshSurveyChart(i,o)}))}},{key:"refreshTrackOrFeedbackChart",value:function(e,n){var r=Stimulus.controllers.filter((function(t){return t.chart})).find((function(t){return t.chart.canvas.parentNode.attributes["data-desktop--hr--chart-url-value"].value.match(e)}));r&&(r.element.setAttribute("loading",!0),t.ajax({url:"/".concat(p,"/actor/analyse/dashboard/data"),type:"POST",data:{filters:this.filtersValue,code_name:e,index:n},dataType:"json"}).then((function(t){S(t,r),document.querySelector(".track-number").innerText=t.triggered_tracks_count,0==+n&&(document.getElementById("pils").innerHTML=t.pils,document.getElementById("email-feedbacks-subfilter").innerHTML=t.email_feedbacks,document.getElementById("level-organizations-subfilter").innerHTML=t.level_organizations)})))}},{key:"refreshSurveyChart",value:function(e,n){var r=this;document.querySelectorAll('[data-desktop--hr--chart-code-name-value="'.concat(e,'"]')).forEach((function(e){var i=e.dataset.surveyQuestionResourceId,o=Stimulus.controllers.filter((function(t){return t.chart})).filter((function(t){return t.chart.canvas.parentNode.hasAttribute("data-survey-question-resource-id")})).find((function(t){return t.chart.canvas.parentNode.attributes["data-survey-question-resource-id"].value==i}));o.element.setAttribute("loading",!0),t.ajax({url:"/".concat(p,"/actor/analyse/dashboard/data"),type:"POST",data:{filters:r.filtersValue,code_name:n,survey_question_resource_id:i},dataType:"json"}).then((function(t){S(t,o)}))}))}},{key:"toggleMenu",value:function(t){var e=document.getElementById("".concat(t.currentTarget.dataset.menu,"-menu"));e.classList.contains("menu-opened")?k(e):(v(),w(e))}},{key:"selectDate",value:function(t){_(document.getElementById("definedDaysFrom")),_(document.getElementById("definedDaysTo")),_(document.getElementById("dates-arrow")),document.getElementById("definedDaysFrom").classList.remove("active"),document.getElementById("definedDaysTo").classList.remove("active"),document.querySelector("button[data-menu=dates] .active").classList.remove("active"),t.currentTarget.classList.add("active");var e=t.currentTarget.dataset.dateScope,n=this.filtersValue;e!=n.dates&&(n.dates=e,this.filtersValue=n,this.refreshCharts())}},{key:"displayCalendar",value:function(){E(document.getElementById("definedDaysFrom")),E(document.getElementById("definedDaysTo")),E(document.getElementById("dates-arrow")),""==document.getElementById("definedDaysTo").value?document.getElementById("definedDaysFrom").click():(document.querySelector("button[data-menu=dates] .active").classList.remove("active"),this.datePickerTarget.classList.add("active"),this.updateDates([moment(document.getElementById("definedDaysFrom").value,"Do MMM YYYY",document.querySelector("html").lang)._d,moment(document.getElementById("definedDaysTo").value,"Do MMM YYYY",document.querySelector("html").lang)._d]))}},{key:"updateDates",value:function(t){var e=P(this.filtersValue.dates[0])==document.getElementById("definedDaysFrom").value,n=P(this.filtersValue.dates[1])==document.getElementById("definedDaysTo").value;if(2!=t.length||!e||!n){document.querySelector("button[data-menu=dates] .active").classList.remove("active"),this.datePickerTarget.classList.add("active"),document.getElementById("definedDaysFrom").classList.add("active-date"),document.getElementById("definedDaysTo").classList.add("active-date");var r=this.filtersValue;r.dates=[moment(t[0]).format("YYYY-MM-DD"),moment(t[1]).format("YYYY-MM-DD")],this.filtersValue=r,this.refreshCharts()}}},{key:"hideOrDisplayTemplateSection",value:function(t){if(b(t)){var e=document.querySelector("div[data-mobility-template=".concat(t,"]"));j(e)?E(e):_(e),this.updateTemplates(t)}}},{key:"updateTemplates",value:function(t){if(b(t)){var e=this.filtersValue,n=document.querySelector("div[data-mobility-template=".concat(t,"]")),r=i(n.querySelectorAll("div[data-filter-name=templates]")).map((function(t){return t.dataset.filterValue}));j(n)?m(r,e):g(r,e),this.filtersValue=e}}},{key:"activateOrDesactiveMenu",value:function(t){var e=this.element.querySelectorAll("[data-filter-name=".concat(t,"] span[id].d-none")),n=this.element.querySelector("button[data-menu=".concat(t,"]"));e.length>=1?n.classList.add("active"):n.classList.remove("active")}}])&&s(n.prototype,o),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),d}(n(1).Controller);d(f,"targets",["searchTemplates","searchOrganizations","datePicker"]),d(f,"values",{filters:Object});var p=document.querySelector("html").lang,m=function(t,e){t.forEach((function(t){var n=isNaN(t)?t:+t,r=e.templates.indexOf(n);-1!=r&&e.templates.splice(r,1);var i=document.querySelector("span#templates-".concat(t,"-check"));_(i)}))},g=function(t,e){t.forEach((function(t){var n=isNaN(t)?t:+t;e.templates.includes(n)||e.templates.push(n);var r=document.querySelector("span#templates-".concat(t,"-check"));E(r)}))},b=function(t){return["onboarding","crossboarding","offboarding"].includes(t)},v=function(){y().forEach((function(t){t.classList.remove("menu-opened"),t.classList.add("menu-closed")}))},y=function(){return[document.getElementById("mobilities-menu"),document.getElementById("organizations-menu"),document.getElementById("templates-menu")].filter((function(t){return null!=t}))},w=function(t){t.classList.remove("menu-closed"),t.classList.add("menu-opened")},k=function(t){t.classList.remove("menu-opened"),t.classList.add("menu-closed")},_=function(t){t.classList.add("d-none")},O=function(t){t.classList.remove("d-flex"),t.classList.add("d-none")},x=function(t){t.classList.remove("d-none"),t.classList.add("d-flex")},E=function(t){t.classList.remove("d-none")},j=function(t){return t.classList.contains("d-none")},S=function(t,e){var n=e.element,r=n.parentElement.querySelectorAll("div[data-element=blank");0==t.datasets.length?(0==r.length&&n.insertAdjacentHTML("afterend",document.getElementById("graph-blank-state").innerHTML),n.classList.add("d-none"),n.setAttribute("loading",!1)):(0!=r.length&&r.forEach((function(t){return t.remove()})),n.classList.remove("d-none"),e.chart&&e.chart.destroy(),e.draw(t))},P=function(t){var e=document.querySelector("html").lang||"en";return moment(t).locale(e).format("DD MMM Y").replaceAll(".","")}}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1),i=n(32);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(d,e);var n,r,o,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(r=[{key:"connect",value:function(){t(this.element).selectize(this.config())}},{key:"loadOptions",value:function(e,n){t.ajax({url:this.urlValue,type:"GET",dataType:"json",data:{query:e,resource_type:this.resourceTypeValue,resource_id:this.resourceIdValue},error:function(){n()},success:function(t){n(t)}})}},{key:"config",value:function(){var t=this.basicConfig();return"SurveyQuestion"==this.resourceTypeValue?a(a({},t),{},{create:!1,valueField:"id",labelField:"content",searchField:"content",render:{option:function(t,e){return'<div style="padding: 6px 15px;">'+e(t.content)+"</div>"}}}):"MailingResource"==this.resourceTypeValue?a(a({},t),{},{create:!0,createOnBlur:!0,maxItems:null,createFilter:i.a,valueField:"email",labelField:"email",searchField:["id","first_last","last_name","email"],render:{option:function(t,e){return'<div style="padding: 6px 15px;">'+e(t.email)+"</div>"}},onDropdownOpen:function(t){t[0].querySelector(".selectize-dropdown-content .create")&&t[0].remove()}}):"UnitOrganization"==this.resourceTypeValue?a(a({},t),{},{valueField:"id",labelField:"name",searchField:"name",render:{option:function(t,e){return'<div style="padding: 6px 15px;">'+e(t.name)+"</div>"}}}):a(a({},t),{},{create:!1,valueField:"value",labelField:"value",searchField:["value","external_id"],render:{option:function(t,e){var n=e(t.value);return"undefined"!==typeof t.external_id&&null!==t.external_id&&""!=t.external_id&&(n+="    <span>"+e(t.external_id)+"</span>"),'<div style="padding: 6px 15px;">'+n+"</div>"}}})}},{key:"basicConfig",value:function(){var t=this;return{preload:!0,onChange:function(e){var n=new Event("change");t.element.dispatchEvent(n)},load:function(e,n){t.loadOptions(e,n)}}}},{key:"emailRegex",value:function(){return new RegExp("([a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)")}}])&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),d}(r.Controller);d(f,"values",{url:String,resourceType:String,resourceId:String})}.call(this,n(4))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"html, body",r=document.querySelector(t);if(r){var i=document.querySelector(n),o=r.getBoundingClientRect().top+window.pageYOffset,a=i.getBoundingClientRect().top+window.pageYOffset;i.scrollBy({top:o-a-e,behavior:"smooth"})}}},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return h})),n.d(e,"initializeSelectize",(function(){return f})),n.d(e,"fields",(function(){return p}));var r=n(1),i=n(10);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var h=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(h,e);var n,r,u,d=s(h);function h(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c(l(t=d.call.apply(d,[this].concat(n))),"enableStoring",!1),c(l(t),"conditionalLogic",t.element.closest(".conditional-logic")),c(l(t),"relationTypes",JSON.parse(document.getElementById("logic-condition-relation-types").value)),t}return n=h,r=[{key:"connect",value:function(){Object(i.a)(this),this.initMouseHover(),this.initializeField(),this.initializeOperator(),this.initializeConditionRelation(),this.enableStoring=!0,this.element.dataset.readyToStore="true"}},{key:"disconnect",value:function(){this.unmarkFieldAsConditioned()}},{key:"remove",value:function(){this.element.dataset.readyToStore="true",this.element.remove()}},{key:"initializeField",value:function(){var t=this.fieldTarget,e=this.withoutFileOrDateFields(),n=this.setConditionField.bind(this);f(t,e,n,this.fieldValue)}},{key:"initializeOperator",value:function(){var t=this,e=this.operatorTarget;if("is_included"==this.operatorValue){e.classList.add("d-none"),this.valueInputTarget.setAttribute("hidden",""),this.operatorTarget.outerHTML="\n        <div class='padded-lateral-5px'>\n          <div class='cursor-disabled selectize-input padded-lateral-10px'>\n            ".concat(this.wordingValue.is_included,"\n          </div>\n        </div>\n      "),this.valueSelectTarget.outerHTML='\n        <div class=\'padded-lateral-5px\'>\n          <div class="padded-lateral-10px pointer selectize-input"\n              data-toggle="modal" data-target="#'.concat(this.element.id,'_list">\n            <i class="fad fa-list padded-right-5px"></i> ').concat(this.wordingValue.this_list,"\n          </div>\n        </div>\n      ");var n="<ul class='no-margin'>";this.collectionValue.forEach((function(t){n+="<li>".concat(t,"</li>")})),n+="</ul>",document.getElementById("page-content").insertAdjacentHTML("beforeend",'\n        <div id="'.concat(this.element.id,'_list" class="modal fade" tabindex="1" role="dialog" aria-hidden="true">\n          <div class="modal-dialog modal-xs" role="document">\n            <div class="modal-content padded-small">\n              <a href="" data-toggle="modal" data-target="#').concat(this.element.id,'_list" class="position-absolute position-top-right-10px link-decoration-none">\n                <i name="category" class="fa fa-times-circle float-right close-menu text-gray-less-dark" aria-hidden="true"></i>\n              </a>\n              ').concat(n,"\n            </div>\n          </div>\n        <div>\n      "))}else{var r=this.operators();f(e,r,(function(e){t.operatorValue=e,t.initializeField()}),this.operatorValue)}}},{key:"initializeConditionRelation",value:function(){var t=this,e=this.conditionalLogic.dataset.conditionalLogicsConditionRelationValue;f(this.conditionRelationTarget,this.relationTypes,(function(e){return t.conditionalLogic.dataset.conditionalLogicsConditionRelationValue=e}),e)}},{key:"initializeConditionValueSelector",value:function(t){var e=this;if(this.hasValueSelectTarget){var n=this.valueSelectTarget;n&&f(n,t,(function(t){e.valueValue=t,e.storeConditionLogic()}),this.valueValue)}}},{key:"setConditionField",value:function(t){document.getElementById(t).dataset.conditionalLogic="true",this.valueInputTarget.value=this.valueValue;var e=this.fieldValue;this.fieldValue=t,this.initConditionFieldFor(t),this.unmarkFieldAsConditioned(e)}},{key:"hideConditionValue",value:function(){this.hideConditionValueSelect(),this.hideConditionValueInput(),this.valueValue="",this.storeConditionLogic()}},{key:"hideConditionValueSelect",value:function(){var t=this.valueSelectTarget.selectize;t&&(t.clear(),t.destroy()),this.valueSelectTarget.style.display="none"}},{key:"displayConditionValueSelect",value:function(t){var e;this.hasValueSelectTarget&&(null===(e=this.valueSelectTarget.selectize)||void 0===e||e.destroy()),t=t.map((function(t){return{name:t,value:t}})),this.initializeConditionValueSelector(t),this.hasValueSelectTarget&&this.valueSelectTarget.parentNode.querySelector(".selectize-control").classList.remove("d-none")}},{key:"hideConditionValueInput",value:function(){this.valueInputTarget.value="",this.valueInputTarget.classList.add("d-none")}},{key:"displayConditionValueInput",value:function(){this.valueInputTarget.classList.contains("d-none")&&(this.valueInputTarget.value=""),this.valueInputTarget.classList.remove("d-none"),this.storeConditionLogic()}},{key:"withoutFileOrDateFields",value:function(){return p().filter((function(t){return!["no_model_file","generic_file","specific_file","date"].includes(t.new_data)}))}},{key:"updateConditionValue",value:function(){var t=this.valueInputTarget.value;this.valueValue=t,this.storeConditionLogic()}},{key:"storeConditionLogic",value:function(){this.enableStoring&&(this.element.dataset.readyToStore="true")}},{key:"toJSON",value:function(){return{id:this.idValue||newId(),operator_type:this.hasOperatorTarget?this.operatorTarget.value:"is_included",field_id:this.fieldTarget.value,value:"null"==this.valueValue?"":this.valueValue,collection:JSON.stringify(this.hasCollectionValue?this.collectionValue:new Array)}}},{key:"operators",value:function(){return JSON.parse(document.getElementById("logic-condition-operator-types").value)}},{key:"initConditionFieldFor",value:function(t){var e=this,n=document.querySelector('[data-type="paperwork"][id="'.concat(t,'"]')).dataset.paperworkResourceId,r="/actor/account/paperwork_resources/".concat(n,"/collection_values.json");fetch(r).then((function(t){return t.json()})).then((function(t){var n=t;n&&["is_empty","is_not_empty"].includes(e.operatorValue)?e.hideConditionValue():n&&0===n.length?(e.displayConditionValueInput(),e.hideConditionValueSelect()):n&&(e.displayConditionValueSelect(n),e.hideConditionValueInput())})).catch((function(t){console.error(t)}))}},{key:"unmarkFieldAsConditioned",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.fieldValue,e=document.getElementById(t);t&&e&&!document.querySelector('[data-logic-conditions-field-value="'.concat(t,'"]'))&&(e.dataset.conditionalLogic="false")}},{key:"initMouseHover",value:function(){var t=this;this.element.addEventListener("mouseover",(function(){t.dropdownTriggerTarget.classList.remove("invisible")})),this.element.addEventListener("mouseout",(function(){t.dropdownTriggerTarget.classList.add("invisible")}))}},{key:"stickDropdown",value:function(){this.element.setAttribute("dropdown-focus","")}},{key:"clickOutside",value:function(){this.hideDropdown(),this.element.removeAttribute("dropdown-focus")}},{key:"hideDropdown",value:function(){t(this.element.querySelector("[data-toggle=dropdown]")).dropdown("hide")}}],r&&o(n.prototype,r),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),h}(r.Controller);c(h,"values",{conditionalLogicId:String,id:String,field:String,operator:String,value:String,collection:Array,wording:Object}),c(h,"targets",["field","operator","valueSelect","valueInput","dropdownTrigger","conditionRelation"]);var f=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=t(e);o.selectize({options:n,labelField:"name",searchField:["name"],onChange:r}),o[0].selectize.setValue(i||n[0].value)},p=function(){var t=[];return document.querySelectorAll('[data-type="paperwork"]').forEach((function(e){var n={new_data:e.dataset.newData,value:e.id,name:e.querySelector('[data-paperwork-resources-target="input"]').innerText};t.push(n)})),t}}.call(this,n(4))},function(t,e,n){"use strict";var r=n(2),i=n(38),o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o(t,e)};function a(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s=function(){return s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s.apply(this,arguments)},l=function(t){function e(e){var n=t.call(this)||this;return n.timeGrid=e,n}return a(e,t),e.prototype.renderSegs=function(e,n,i){t.prototype.renderSegs.call(this,e,n,i),this.fullTimeFormat=Object(r.E)({hour:"numeric",minute:"2-digit",separator:this.context.options.defaultRangeSeparator})},e.prototype.attachSegs=function(t,e){for(var n=this.timeGrid.groupSegsByCol(t),r=0;r<n.length;r++)n[r]=this.sortEventSegs(n[r]);this.segsByCol=n,this.timeGrid.attachSegsByCol(n,this.timeGrid.fgContainerEls)},e.prototype.detachSegs=function(t){t.forEach((function(t){Object(r.cb)(t.el)})),this.segsByCol=null},e.prototype.computeSegSizes=function(t){var e=this.timeGrid,n=this.segsByCol,r=e.colCnt;if(e.computeSegVerticals(t),n)for(var i=0;i<r;i++)this.computeSegHorizontals(n[i])},e.prototype.assignSegSizes=function(t){var e=this.timeGrid,n=this.segsByCol,r=e.colCnt;if(e.assignSegVerticals(t),n)for(var i=0;i<r;i++)this.assignSegCss(n[i])},e.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:!1}},e.prototype.computeDisplayEventEnd=function(){return!0},e.prototype.renderSegHtml=function(t,e){var n,i,o,a=t.eventRange,s=a.def,l=a.ui,u=s.allDay,c=Object(r.y)(this.context,s,l),d=t.isStart&&Object(r.A)(this.context,s,l),h=t.isEnd&&Object(r.z)(this.context,s,l),f=this.getSegClasses(t,c,d||h,e),p=Object(r.G)(this.getSkinCss(l));if(f.unshift("fc-time-grid-event"),Object(r.U)(a.range)){if(t.isStart||t.isEnd){var m=t.start,g=t.end;n=this._getTimeText(m,g,u),i=this._getTimeText(m,g,u,this.fullTimeFormat),o=this._getTimeText(m,g,u,null,!1)}}else n=this.getTimeText(a),i=this.getTimeText(a,this.fullTimeFormat),o=this.getTimeText(a,null,!1);return'<a class="'+f.join(" ")+'"'+(s.url?' href="'+Object(r.Q)(s.url)+'"':"")+(p?' style="'+p+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+Object(r.Q)(o)+'" data-full="'+Object(r.Q)(i)+'"><span>'+Object(r.Q)(n)+"</span></div>":"")+(s.title?'<div class="fc-title">'+Object(r.Q)(s.title)+"</div>":"")+"</div>"+(h?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},e.prototype.computeSegHorizontals=function(t){var e,n,r;if(e=function(t){var e,n,r,i=[];for(e=0;e<t.length;e++){for(n=t[e],r=0;r<i.length&&c(n,i[r]).length;r++);n.level=r,(i[r]||(i[r]=[])).push(n)}return i}(t),function(t){var e,n,r,i,o;for(e=0;e<t.length;e++)for(n=t[e],r=0;r<n.length;r++)for((i=n[r]).forwardSegs=[],o=e+1;o<t.length;o++)c(i,t[o],i.forwardSegs)}(e),n=e[0]){for(r=0;r<n.length;r++)u(n[r]);for(r=0;r<n.length;r++)this.computeSegForwardBack(n[r],0,0)}},e.prototype.computeSegForwardBack=function(t,e,n){var r,i=t.forwardSegs;if(void 0===t.forwardCoord)for(i.length?(this.sortForwardSegs(i),this.computeSegForwardBack(i[0],e+1,n),t.forwardCoord=i[0].backwardCoord):t.forwardCoord=1,t.backwardCoord=t.forwardCoord-(t.forwardCoord-n)/(e+1),r=0;r<i.length;r++)this.computeSegForwardBack(i[r],0,t.forwardCoord)},e.prototype.sortForwardSegs=function(t){var e=t.map(d),n=[{field:"forwardPressure",order:-1},{field:"backwardCoord",order:1}].concat(this.context.eventOrderSpecs);return e.sort((function(t,e){return Object(r.v)(t,e,n)})),e.map((function(t){return t._seg}))},e.prototype.assignSegCss=function(t){for(var e=0,n=t;e<n.length;e++){var i=n[e];Object(r.r)(i.el,this.generateSegCss(i)),i.level>0&&i.el.classList.add("fc-time-grid-event-inset"),i.eventRange.def.title&&i.bottom-i.top<30&&i.el.classList.add("fc-short")}},e.prototype.generateSegCss=function(t){var e,n,r=this.context.options.slotEventOverlap,i=t.backwardCoord,o=t.forwardCoord,a=this.timeGrid.generateSegVerticalCss(t),s=this.context.isRtl;return r&&(o=Math.min(1,i+2*(o-i))),s?(e=1-o,n=i):(e=i,n=1-o),a.zIndex=t.level+1,a.left=100*e+"%",a.right=100*n+"%",r&&t.forwardPressure&&(a[s?"marginLeft":"marginRight"]=20),a},e}(r.g);function u(t){var e,n,r=t.forwardSegs,i=0;if(void 0===t.forwardPressure){for(e=0;e<r.length;e++)u(n=r[e]),i=Math.max(i,1+n.forwardPressure);t.forwardPressure=i}}function c(t,e,n){void 0===n&&(n=[]);for(var r=0;r<e.length;r++)i=t,o=e[r],i.bottom>o.top&&i.top<o.bottom&&n.push(e[r]);var i,o;return n}function d(t){var e=Object(r.u)(t);return e.forwardPressure=t.forwardPressure,e.backwardCoord=t.backwardCoord,e}var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.attachSegs=function(t,e){this.segsByCol=this.timeGrid.groupSegsByCol(t),this.timeGrid.attachSegsByCol(this.segsByCol,this.timeGrid.mirrorContainerEls),this.sourceSeg=e.sourceSeg},e.prototype.generateSegCss=function(e){var n=t.prototype.generateSegCss.call(this,e),r=this.sourceSeg;if(r&&r.col===e.col){var i=t.prototype.generateSegCss.call(this,r);n.left=i.left,n.right=i.right,n.marginLeft=i.marginLeft,n.marginRight=i.marginRight}return n},e}(l),f=function(t){function e(e){var n=t.call(this)||this;return n.timeGrid=e,n}return a(e,t),e.prototype.attachSegs=function(t,e){var n,r=this.timeGrid;return"bgEvent"===t?n=r.bgContainerEls:"businessHours"===t?n=r.businessContainerEls:"highlight"===t&&(n=r.highlightContainerEls),r.attachSegsByCol(r.groupSegsByCol(e),n),e.map((function(t){return t.el}))},e.prototype.computeSegSizes=function(t){this.timeGrid.computeSegVerticals(t)},e.prototype.assignSegSizes=function(t){this.timeGrid.assignSegVerticals(t)},e}(r.h),p=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],m=function(t){function e(e,n){var i=t.call(this,e)||this;i.isSlatSizesDirty=!1,i.isColSizesDirty=!1,i.processOptions=Object(r.X)(i._processOptions),i.renderSkeleton=Object(r.Y)(i._renderSkeleton),i.renderSlats=Object(r.Y)(i._renderSlats,null,[i.renderSkeleton]),i.renderColumns=Object(r.Y)(i._renderColumns,i._unrenderColumns,[i.renderSkeleton]),i.renderProps=n;var o=i.renderColumns,a=i.eventRenderer=new l(i),s=i.fillRenderer=new f(i);return i.mirrorRenderer=new h(i),i.renderBusinessHours=Object(r.Y)(s.renderSegs.bind(s,"businessHours"),s.unrender.bind(s,"businessHours"),[o]),i.renderDateSelection=Object(r.Y)(i._renderDateSelection,i._unrenderDateSelection,[o]),i.renderFgEvents=Object(r.Y)(a.renderSegs.bind(a),a.unrender.bind(a),[o]),i.renderBgEvents=Object(r.Y)(s.renderSegs.bind(s,"bgEvent"),s.unrender.bind(s,"bgEvent"),[o]),i.renderEventSelection=Object(r.Y)(a.selectByInstanceId.bind(a),a.unselectByInstanceId.bind(a),[i.renderFgEvents]),i.renderEventDrag=Object(r.Y)(i._renderEventDrag,i._unrenderEventDrag,[o]),i.renderEventResize=Object(r.Y)(i._renderEventResize,i._unrenderEventResize,[o]),i}return a(e,t),e.prototype._processOptions=function(t){var e,n,i=t.slotDuration,o=t.snapDuration;i=Object(r.C)(i),o=o?Object(r.C)(o):i,null===(e=Object(r.ib)(i,o))&&(o=i,e=1),this.slotDuration=i,this.snapDuration=o,this.snapsPerSlot=e,n=t.slotLabelFormat,Array.isArray(n)&&(n=n[n.length-1]),this.labelFormat=Object(r.E)(n||{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),n=t.slotLabelInterval,this.labelInterval=n?Object(r.C)(n):this.computeLabelInterval(i)},e.prototype.computeLabelInterval=function(t){var e,n,i;for(e=p.length-1;e>=0;e--)if(n=Object(r.C)(p[e]),null!==(i=Object(r.ib)(n,t))&&i>1)return n;return t},e.prototype.render=function(t,e){this.processOptions(e.options);var n=t.cells;this.colCnt=n.length,this.renderSkeleton(e.theme),this.renderSlats(t.dateProfile),this.renderColumns(t.cells,t.dateProfile),this.renderBusinessHours(e,t.businessHourSegs),this.renderDateSelection(t.dateSelectionSegs),this.renderFgEvents(e,t.fgEventSegs),this.renderBgEvents(e,t.bgEventSegs),this.renderEventSelection(t.eventSelection),this.renderEventDrag(t.eventDrag),this.renderEventResize(t.eventResize)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.renderSlats.unrender(),this.renderColumns.unrender(),this.renderSkeleton.unrender()},e.prototype.updateSize=function(t){var e=this,n=e.fillRenderer,r=e.eventRenderer,i=e.mirrorRenderer;(t||this.isSlatSizesDirty)&&(this.buildSlatPositions(),this.isSlatSizesDirty=!1),(t||this.isColSizesDirty)&&(this.buildColPositions(),this.isColSizesDirty=!1),n.computeSizes(t),r.computeSizes(t),i.computeSizes(t),n.assignSizes(t),r.assignSizes(t),i.assignSizes(t)},e.prototype._renderSkeleton=function(t){var e=this.el;e.innerHTML='<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+t.getClass("widgetHeader")+'" style="display:none" />',this.rootBgContainerEl=e.querySelector(".fc-bg"),this.slatContainerEl=e.querySelector(".fc-slats"),this.bottomRuleEl=e.querySelector(".fc-divider")},e.prototype._renderSlats=function(t){var e=this.context.theme;this.slatContainerEl.innerHTML='<table class="'+e.getClass("tableGrid")+'">'+this.renderSlatRowHtml(t)+"</table>",this.slatEls=Object(r.L)(this.slatContainerEl,"tr"),this.slatPositions=new r.i(this.el,this.slatEls,!1,!0),this.isSlatSizesDirty=!0},e.prototype.renderSlatRowHtml=function(t){for(var e,n,i,o=this.context,a=o.dateEnv,s=o.theme,l=o.isRtl,u="",c=Object(r.eb)(t.renderRange.start),d=t.minTime,h=Object(r.C)(0);Object(r.s)(d)<Object(r.s)(t.maxTime);)e=a.add(c,d),n=null!==Object(r.ib)(h,this.labelInterval),i='<td class="fc-axis fc-time '+s.getClass("widgetContent")+'">'+(n?"<span>"+Object(r.Q)(a.format(e,this.labelFormat))+"</span>":"")+"</td>",u+='<tr data-time="'+Object(r.M)(e)+'"'+(n?"":' class="fc-minor"')+">"+(l?"":i)+'<td class="'+s.getClass("widgetContent")+'"></td>'+(l?i:"")+"</tr>",d=Object(r.o)(d,this.slotDuration),h=Object(r.o)(h,this.slotDuration);return u},e.prototype._renderColumns=function(t,e){var n=this.context,o=n.calendar,a=n.view,s=n.isRtl,l=n.theme,u=n.dateEnv,c=new i.a(this.context);this.rootBgContainerEl.innerHTML='<table class="'+l.getClass("tableGrid")+'">'+c.renderHtml({cells:t,dateProfile:e,renderIntroHtml:this.renderProps.renderBgIntroHtml})+"</table>",this.colEls=Object(r.L)(this.el,".fc-day, .fc-disabled-day");for(var d=0;d<this.colCnt;d++)o.publiclyTrigger("dayRender",[{date:u.toDate(t[d].date),el:this.colEls[d],view:a}]);s&&this.colEls.reverse(),this.colPositions=new r.i(this.el,this.colEls,!0,!1),this.renderContentSkeleton(),this.isColSizesDirty=!0},e.prototype._unrenderColumns=function(){this.unrenderContentSkeleton()},e.prototype.renderContentSkeleton=function(){var t,e=this.context.isRtl,n=[];n.push(this.renderProps.renderIntroHtml());for(var i=0;i<this.colCnt;i++)n.push('<td><div class="fc-content-col"><div class="fc-event-container fc-mirror-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>');e&&n.reverse(),t=this.contentSkeletonEl=Object(r.R)('<div class="fc-content-skeleton"><table><tr>'+n.join("")+"</tr></table></div>"),this.colContainerEls=Object(r.L)(t,".fc-content-col"),this.mirrorContainerEls=Object(r.L)(t,".fc-mirror-container"),this.fgContainerEls=Object(r.L)(t,".fc-event-container:not(.fc-mirror-container)"),this.bgContainerEls=Object(r.L)(t,".fc-bgevent-container"),this.highlightContainerEls=Object(r.L)(t,".fc-highlight-container"),this.businessContainerEls=Object(r.L)(t,".fc-business-container"),e&&(this.colContainerEls.reverse(),this.mirrorContainerEls.reverse(),this.fgContainerEls.reverse(),this.bgContainerEls.reverse(),this.highlightContainerEls.reverse(),this.businessContainerEls.reverse()),this.el.appendChild(t)},e.prototype.unrenderContentSkeleton=function(){Object(r.cb)(this.contentSkeletonEl)},e.prototype.groupSegsByCol=function(t){var e,n=[];for(e=0;e<this.colCnt;e++)n.push([]);for(e=0;e<t.length;e++)n[t[e].col].push(t[e]);return n},e.prototype.attachSegsByCol=function(t,e){var n,r,i;for(n=0;n<this.colCnt;n++)for(r=t[n],i=0;i<r.length;i++)e[n].appendChild(r[i].el)},e.prototype.getNowIndicatorUnit=function(){return"minute"},e.prototype.renderNowIndicator=function(t,e){if(this.colContainerEls){var n,i=this.computeDateTop(e),o=[];for(n=0;n<t.length;n++){var a=Object(r.D)("div",{className:"fc-now-indicator fc-now-indicator-line"});a.style.top=i+"px",this.colContainerEls[t[n].col].appendChild(a),o.push(a)}if(t.length>0){var s=Object(r.D)("div",{className:"fc-now-indicator fc-now-indicator-arrow"});s.style.top=i+"px",this.contentSkeletonEl.appendChild(s),o.push(s)}this.nowIndicatorEls=o}},e.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.forEach(r.cb),this.nowIndicatorEls=null)},e.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.getBoundingClientRect().height},e.prototype.computeDateTop=function(t,e){return e||(e=Object(r.eb)(t)),this.computeTimeTop(Object(r.C)(t.valueOf()-e.valueOf()))},e.prototype.computeTimeTop=function(t){var e,n,i=this.slatEls.length,o=this.props.dateProfile,a=(t.milliseconds-Object(r.s)(o.minTime))/Object(r.s)(this.slotDuration);return a=Math.max(0,a),a=Math.min(i,a),e=Math.floor(a),n=a-(e=Math.min(e,i-1)),this.slatPositions.tops[e]+this.slatPositions.getHeight(e)*n},e.prototype.computeSegVerticals=function(t){var e,n,r,i=this.context.options.timeGridEventMinHeight;for(e=0;e<t.length;e++)n=t[e],r=this.props.cells[n.col].date,n.top=this.computeDateTop(n.start,r),n.bottom=Math.max(n.top+i,this.computeDateTop(n.end,r))},e.prototype.assignSegVerticals=function(t){var e,n;for(e=0;e<t.length;e++)n=t[e],Object(r.r)(n.el,this.generateSegVerticalCss(n))},e.prototype.generateSegVerticalCss=function(t){return{top:t.top,bottom:-t.bottom}},e.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildSlatPositions()},e.prototype.buildColPositions=function(){this.colPositions.build()},e.prototype.buildSlatPositions=function(){this.slatPositions.build()},e.prototype.positionToHit=function(t,e){var n=this.context.dateEnv,i=this,o=i.snapsPerSlot,a=i.slatPositions,s=i.colPositions,l=s.leftToIndex(t),u=a.topToIndex(e);if(null!=l&&null!=u){var c=a.tops[u],d=a.getHeight(u),h=(e-c)/d,f=u*o+Math.floor(h*o),p=this.props.cells[l].date,m=Object(r.o)(this.props.dateProfile.minTime,Object(r.Z)(this.snapDuration,f)),g=n.add(p,m);return{col:l,dateSpan:{range:{start:g,end:n.add(g,this.snapDuration)},allDay:!1},dayEl:this.colEls[l],relativeRect:{left:s.lefts[l],right:s.rights[l],top:c,bottom:c+d}}}},e.prototype._renderEventDrag=function(t){t&&(this.eventRenderer.hideByHash(t.affectedInstances),t.isEvent?this.mirrorRenderer.renderSegs(this.context,t.segs,{isDragging:!0,sourceSeg:t.sourceSeg}):this.fillRenderer.renderSegs("highlight",this.context,t.segs))},e.prototype._unrenderEventDrag=function(t){t&&(this.eventRenderer.showByHash(t.affectedInstances),t.isEvent?this.mirrorRenderer.unrender(this.context,t.segs,{isDragging:!0,sourceSeg:t.sourceSeg}):this.fillRenderer.unrender("highlight",this.context))},e.prototype._renderEventResize=function(t){t&&(this.eventRenderer.hideByHash(t.affectedInstances),this.mirrorRenderer.renderSegs(this.context,t.segs,{isResizing:!0,sourceSeg:t.sourceSeg}))},e.prototype._unrenderEventResize=function(t){t&&(this.eventRenderer.showByHash(t.affectedInstances),this.mirrorRenderer.unrender(this.context,t.segs,{isResizing:!0,sourceSeg:t.sourceSeg}))},e.prototype._renderDateSelection=function(t){t&&(this.context.options.selectMirror?this.mirrorRenderer.renderSegs(this.context,t,{isSelecting:!0}):this.fillRenderer.renderSegs("highlight",this.context,t))},e.prototype._unrenderDateSelection=function(t){t&&(this.context.options.selectMirror?this.mirrorRenderer.unrender(this.context,t,{isSelecting:!0}):this.fillRenderer.unrender("highlight",this.context))},e}(r.b),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},e.prototype.getKeysForDateSpan=function(t){return t.allDay?["allDay"]:["timed"]},e.prototype.getKeysForEventDef=function(t){return t.allDay?Object(r.P)(t)?["timed","allDay"]:["allDay"]:["timed"]},e}(r.l),b=Object(r.E)({week:"short"}),v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.splitter=new g,e.renderSkeleton=Object(r.Y)(e._renderSkeleton,e._unrenderSkeleton),e.renderHeadIntroHtml=function(){var t,n=e.context,i=n.theme,o=n.dateEnv,a=n.options,s=e.props.dateProfile.renderRange,l=Object(r.H)(s.start,s.end);return a.weekNumbers?(t=o.format(s.start,b),'<th class="fc-axis fc-week-number '+i.getClass("widgetHeader")+'" '+e.axisStyleAttr()+">"+Object(r.t)(a,o,{date:s.start,type:"week",forceOff:l>1},Object(r.Q)(t))+"</th>"):'<th class="fc-axis '+i.getClass("widgetHeader")+'" '+e.axisStyleAttr()+"></th>"},e.renderTimeGridBgIntroHtml=function(){return'<td class="fc-axis '+e.context.theme.getClass("widgetContent")+'" '+e.axisStyleAttr()+"></td>"},e.renderTimeGridIntroHtml=function(){return'<td class="fc-axis" '+e.axisStyleAttr()+"></td>"},e.renderDayGridBgIntroHtml=function(){var t=e.context,n=t.theme,i=t.options;return'<td class="fc-axis '+n.getClass("widgetContent")+'" '+e.axisStyleAttr()+"><span>"+Object(r.N)(i)+"</span></td>"},e.renderDayGridIntroHtml=function(){return'<td class="fc-axis" '+e.axisStyleAttr()+"></td>"},e}return a(e,t),e.prototype.render=function(e,n){t.prototype.render.call(this,e,n),this.renderSkeleton(n)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.renderSkeleton.unrender()},e.prototype._renderSkeleton=function(t){this.el.classList.add("fc-timeGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new r.j("hidden","auto");var e=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(e),e.classList.add("fc-time-grid-container");var n=Object(r.D)("div",{className:"fc-time-grid"});if(e.appendChild(n),this.timeGrid=new m(n,{renderBgIntroHtml:this.renderTimeGridBgIntroHtml,renderIntroHtml:this.renderTimeGridIntroHtml}),t.options.allDaySlot){this.dayGrid=new i.b(this.el.querySelector(".fc-day-grid"),{renderNumberIntroHtml:this.renderDayGridIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1});var o=this.el.querySelector(".fc-divider");this.dayGrid.bottomCoordPadding=o.getBoundingClientRect().height}},e.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-timeGrid-view"),this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),this.scroller.destroy()},e.prototype.renderSkeletonHtml=function(){var t=this.context,e=t.theme,n=t.options;return'<table class="'+e.getClass("tableGrid")+'">'+(n.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+e.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+e.getClass("widgetContent")+'">'+(n.allDaySlot?'<div class="fc-day-grid"></div><hr class="fc-divider '+e.getClass("widgetHeader")+'" />':"")+"</td></tr></tbody></table>"},e.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},e.prototype.unrenderNowIndicator=function(){this.timeGrid.unrenderNowIndicator()},e.prototype.updateSize=function(e,n,r){t.prototype.updateSize.call(this,e,n,r),this.timeGrid.updateSize(e),this.dayGrid&&this.dayGrid.updateSize(e)},e.prototype.updateBaseSize=function(t,e,n){var i,o,a,s=this;if(this.axisWidth=Object(r.W)(Object(r.L)(this.el,".fc-axis")),this.timeGrid.colEls){var l=Object(r.L)(this.el,".fc-row").filter((function(t){return!s.scroller.el.contains(t)}));this.timeGrid.bottomRuleEl.style.display="none",this.scroller.clear(),l.forEach(r.gb),this.dayGrid&&(this.dayGrid.removeSegPopover(),(i=this.context.options.eventLimit)&&"number"!==typeof i&&(i=5),i&&this.dayGrid.limitRows(i)),n||(o=this.computeScrollerHeight(e),this.scroller.setHeight(o),((a=this.scroller.getScrollbarWidths()).left||a.right)&&(l.forEach((function(t){Object(r.w)(t,a)})),o=this.computeScrollerHeight(e),this.scroller.setHeight(o)),this.scroller.lockOverflow(a),this.timeGrid.getTotalSlatHeight()<o&&(this.timeGrid.bottomRuleEl.style.display=""))}else n||(o=this.computeScrollerHeight(e),this.scroller.setHeight(o))},e.prototype.computeScrollerHeight=function(t){return t-Object(r.fb)(this.el,this.scroller.el)},e.prototype.computeDateScroll=function(t){var e=this.timeGrid.computeTimeTop(t);return(e=Math.ceil(e))&&e++,{top:e}},e.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},e.prototype.applyDateScroll=function(t){void 0!==t.top&&this.scroller.setScrollTop(t.top)},e.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},e}(r.m);v.prototype.usesMinMaxTime=!0;var y=function(t){function e(e){var n=t.call(this,e.el)||this;return n.buildDayRanges=Object(r.X)(w),n.slicer=new k,n.timeGrid=e,n}return a(e,t),e.prototype.firstContext=function(t){t.calendar.registerInteractiveComponent(this,{el:this.timeGrid.el})},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},e.prototype.render=function(t,e){var n=this.context.dateEnv,r=t.dateProfile,i=t.dayTable,o=this.dayRanges=this.buildDayRanges(i,r,n),a=this.timeGrid;a.receiveContext(e),a.receiveProps(s({},this.slicer.sliceProps(t,r,null,e.calendar,a,o),{dateProfile:r,cells:i.cells[0]}),e)},e.prototype.renderNowIndicator=function(t){this.timeGrid.renderNowIndicator(this.slicer.sliceNowDate(t,this.timeGrid,this.dayRanges),t)},e.prototype.buildPositionCaches=function(){this.timeGrid.buildPositionCaches()},e.prototype.queryHit=function(t,e){var n=this.timeGrid.positionToHit(t,e);if(n)return{component:this.timeGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},e}(r.b);function w(t,e,n){for(var r=[],i=0,o=t.headerDates;i<o.length;i++){var a=o[i];r.push({start:n.add(a,e.minTime),end:n.add(a,e.maxTime)})}return r}var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.sliceRange=function(t,e){for(var n=[],i=0;i<e.length;i++){var o=Object(r.T)(t,e[i]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===t.start.valueOf(),isEnd:o.end.valueOf()===t.end.valueOf(),col:i})}return n},e}(r.k),_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buildDayTable=Object(r.X)(O),e}return a(e,t),e.prototype.render=function(e,n){t.prototype.render.call(this,e,n);var r=this.props,i=r.dateProfile,o=r.dateProfileGenerator,a=n.nextDayThreshold,l=this.buildDayTable(i,o),u=this.splitter.splitProps(e);this.header&&this.header.receiveProps({dateProfile:i,dates:l.headerDates,datesRepDistinctDays:!0,renderIntroHtml:this.renderHeadIntroHtml},n),this.simpleTimeGrid.receiveProps(s({},u.timed,{dateProfile:i,dayTable:l}),n),this.simpleDayGrid&&this.simpleDayGrid.receiveProps(s({},u.allDay,{dateProfile:i,dayTable:l,nextDayThreshold:a,isRigid:!1}),n),this.startNowIndicator(i,o)},e.prototype._renderSkeleton=function(e){t.prototype._renderSkeleton.call(this,e),e.options.columnHeader&&(this.header=new r.d(this.el.querySelector(".fc-head-container"))),this.simpleTimeGrid=new y(this.timeGrid),this.dayGrid&&(this.simpleDayGrid=new i.c(this.dayGrid))},e.prototype._unrenderSkeleton=function(){t.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleTimeGrid.destroy(),this.simpleDayGrid&&this.simpleDayGrid.destroy()},e.prototype.renderNowIndicator=function(t){this.simpleTimeGrid.renderNowIndicator(t)},e}(v);function O(t,e){var n=new r.e(t.renderRange,e);return new r.f(n,!1)}var x=Object(r.F)({defaultView:"timeGridWeek",views:{timeGrid:{class:_,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});e.a=x},function(t,e,n){t.exports=function(){"use strict";return[{code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayHtml:"Heeldag",eventLimitText:"Addisionele",noEventsMessage:"Daar is geen gebeurtenisse nie"},{code:"ar-dz",week:{dow:0,doy:4},dir:"rtl",buttonText:{prev:"\u0627\u0644\u0633\u0627\u0628\u0642",next:"\u0627\u0644\u062a\u0627\u0644\u064a",today:"\u0627\u0644\u064a\u0648\u0645",month:"\u0634\u0647\u0631",week:"\u0623\u0633\u0628\u0648\u0639",day:"\u064a\u0648\u0645",list:"\u0623\u062c\u0646\u062f\u0629"},weekLabel:"\u0623\u0633\u0628\u0648\u0639",allDayText:"\u0627\u0644\u064a\u0648\u0645 \u0643\u0644\u0647",eventLimitText:"\u0623\u062e\u0631\u0649",noEventsMessage:"\u0623\u064a \u0623\u062d\u062f\u0627\u062b \u0644\u0639\u0631\u0636"},{code:"ar-kw",week:{dow:0,doy:12},dir:"rtl",buttonText:{prev:"\u0627\u0644\u0633\u0627\u0628\u0642",next:"\u0627\u0644\u062a\u0627\u0644\u064a",today:"\u0627\u0644\u064a\u0648\u0645",month:"\u0634\u0647\u0631",week:"\u0623\u0633\u0628\u0648\u0639",day:"\u064a\u0648\u0645",list:"\u0623\u062c\u0646\u062f\u0629"},weekLabel:"\u0623\u0633\u0628\u0648\u0639",allDayText:"\u0627\u0644\u064a\u0648\u0645 \u0643\u0644\u0647",eventLimitText:"\u0623\u062e\u0631\u0649",noEventsMessage:"\u0623\u064a \u0623\u062d\u062f\u0627\u062b \u0644\u0639\u0631\u0636"},{code:"ar-ly",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"\u0627\u0644\u0633\u0627\u0628\u0642",next:"\u0627\u0644\u062a\u0627\u0644\u064a",today:"\u0627\u0644\u064a\u0648\u0645",month:"\u0634\u0647\u0631",week:"\u0623\u0633\u0628\u0648\u0639",day:"\u064a\u0648\u0645",list:"\u0623\u062c\u0646\u062f\u0629"},weekLabel:"\u0623\u0633\u0628\u0648\u0639",allDayText:"\u0627\u0644\u064a\u0648\u0645 \u0643\u0644\u0647",eventLimitText:"\u0623\u062e\u0631\u0649",noEventsMessage:"\u0623\u064a \u0623\u062d\u062f\u0627\u062b \u0644\u0639\u0631\u0636"},{code:"ar-ma",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"\u0627\u0644\u0633\u0627\u0628\u0642",next:"\u0627\u0644\u062a\u0627\u0644\u064a",today:"\u0627\u0644\u064a\u0648\u0645",month:"\u0634\u0647\u0631",week:"\u0623\u0633\u0628\u0648\u0639",day:"\u064a\u0648\u0645",list:"\u0623\u062c\u0646\u062f\u0629"},weekLabel:"\u0623\u0633\u0628\u0648\u0639",allDayText:"\u0627\u0644\u064a\u0648\u0645 \u0643\u0644\u0647",eventLimitText:"\u0623\u062e\u0631\u0649",noEventsMessage:"\u0623\u064a \u0623\u062d\u062f\u0627\u062b \u0644\u0639\u0631\u0636"},{code:"ar-sa",week:{dow:0,doy:6},dir:"rtl",buttonText:{prev:"\u0627\u0644\u0633\u0627\u0628\u0642",next:"\u0627\u0644\u062a\u0627\u0644\u064a",today:"\u0627\u0644\u064a\u0648\u0645",month:"\u0634\u0647\u0631",week:"\u0623\u0633\u0628\u0648\u0639",day:"\u064a\u0648\u0645",list:"\u0623\u062c\u0646\u062f\u0629"},weekLabel:"\u0623\u0633\u0628\u0648\u0639",allDayText:"\u0627\u0644\u064a\u0648\u0645 \u0643\u0644\u0647",eventLimitText:"\u0623\u062e\u0631\u0649",noEventsMessage:"\u0623\u064a \u0623\u062d\u062f\u0627\u062b \u0644\u0639\u0631\u0636"},{code:"ar-tn",week:{dow:1,doy:4},dir:"rtl",buttonText:{prev:"\u0627\u0644\u0633\u0627\u0628\u0642",next:"\u0627\u0644\u062a\u0627\u0644\u064a",today:"\u0627\u0644\u064a\u0648\u0645",month:"\u0634\u0647\u0631",week:"\u0623\u0633\u0628\u0648\u0639",day:"\u064a\u0648\u0645",list:"\u0623\u062c\u0646\u062f\u0629"},weekLabel:"\u0623\u0633\u0628\u0648\u0639",allDayText:"\u0627\u0644\u064a\u0648\u0645 \u0643\u0644\u0647",eventLimitText:"\u0623\u062e\u0631\u0649",noEventsMessage:"\u0623\u064a \u0623\u062d\u062f\u0627\u062b \u0644\u0639\u0631\u0636"},{code:"ar",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"\u0627\u0644\u0633\u0627\u0628\u0642",next:"\u0627\u0644\u062a\u0627\u0644\u064a",today:"\u0627\u0644\u064a\u0648\u0645",month:"\u0634\u0647\u0631",week:"\u0623\u0633\u0628\u0648\u0639",day:"\u064a\u0648\u0645",list:"\u0623\u062c\u0646\u062f\u0629"},weekLabel:"\u0623\u0633\u0628\u0648\u0639",allDayText:"\u0627\u0644\u064a\u0648\u0645 \u0643\u0644\u0647",eventLimitText:"\u0623\u062e\u0631\u0649",noEventsMessage:"\u0623\u064a \u0623\u062d\u062f\u0627\u062b \u0644\u0639\u0631\u0636"},{code:"az",week:{dow:1,doy:4},buttonText:{prev:"\u018fvv\u0259l",next:"Sonra",today:"Bu G\xfcn",month:"Ay",week:"H\u0259ft\u0259",day:"G\xfcn",list:"G\xfcnd\u0259m"},weekLabel:"H\u0259ft\u0259",allDayText:"B\xfct\xfcn G\xfcn",eventLimitText:function(t){return"+ daha \xe7ox "+t},noEventsMessage:"G\xf6st\u0259rm\u0259k \xfc\xe7\xfcn hadis\u0259 yoxdur"},{code:"bg",week:{dow:1,doy:7},buttonText:{prev:"\u043d\u0430\u0437\u0430\u0434",next:"\u043d\u0430\u043f\u0440\u0435\u0434",today:"\u0434\u043d\u0435\u0441",month:"\u041c\u0435\u0441\u0435\u0446",week:"\u0421\u0435\u0434\u043c\u0438\u0446\u0430",day:"\u0414\u0435\u043d",list:"\u0413\u0440\u0430\u0444\u0438\u043a"},allDayText:"\u0426\u044f\u043b \u0434\u0435\u043d",eventLimitText:function(t){return"+\u043e\u0449\u0435 "+t},noEventsMessage:"\u041d\u044f\u043c\u0430 \u0441\u044a\u0431\u0438\u0442\u0438\u044f \u0437\u0430 \u043f\u043e\u043a\u0430\u0437\u0432\u0430\u043d\u0435"},{code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Pro\u0161li",next:"Sljede\u0107i",today:"Danas",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekLabel:"Sed",allDayText:"Cijeli dan",eventLimitText:function(t){return"+ jo\u0161 "+t},noEventsMessage:"Nema doga\u0111aja za prikazivanje"},{code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seg\xfcent",today:"Avui",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekLabel:"Set",allDayText:"Tot el dia",eventLimitText:"m\xe9s",noEventsMessage:"No hi ha esdeveniments per mostrar"},{code:"cs",week:{dow:1,doy:4},buttonText:{prev:"D\u0159\xedve",next:"Pozd\u011bji",today:"Nyn\xed",month:"M\u011bs\xedc",week:"T\xfdden",day:"Den",list:"Agenda"},weekLabel:"T\xfdd",allDayText:"Cel\xfd den",eventLimitText:function(t){return"+dal\u0161\xed: "+t},noEventsMessage:"\u017d\xe1dn\xe9 akce k zobrazen\xed"},{code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"N\xe6ste",today:"I dag",month:"M\xe5ned",week:"Uge",day:"Dag",list:"Agenda"},weekLabel:"Uge",allDayText:"Hele dagen",eventLimitText:"flere",noEventsMessage:"Ingen arrangementer at vise"},{code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zur\xfcck",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Termin\xfcbersicht"},weekLabel:"KW",allDayText:"Ganzt\xe4gig",eventLimitText:function(t){return"+ weitere "+t},noEventsMessage:"Keine Ereignisse anzuzeigen"},{code:"el",week:{dow:1,doy:4},buttonText:{prev:"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf\u03c2",next:"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03bf\u03c2",today:"\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1",month:"\u039c\u03ae\u03bd\u03b1\u03c2",week:"\u0395\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b1",day:"\u0397\u03bc\u03ad\u03c1\u03b1",list:"\u0391\u03c4\u03b6\u03ad\u03bd\u03c4\u03b1"},weekLabel:"\u0395\u03b2\u03b4",allDayText:"\u039f\u03bb\u03bf\u03ae\u03bc\u03b5\u03c1\u03bf",eventLimitText:"\u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b1",noEventsMessage:"\u0394\u03b5\u03bd \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03c5\u03bd \u03b3\u03b5\u03b3\u03bf\u03bd\u03cc\u03c4\u03b1 \u03c0\u03c1\u03bf\u03c2 \u03b5\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7"},{code:"en-au",week:{dow:1,doy:4}},{code:"en-gb",week:{dow:1,doy:4}},{code:"en-nz",week:{dow:1,doy:4}},{code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"D\xeda",list:"Agenda"},weekLabel:"Sm",allDayHtml:"Todo<br/>el d\xeda",eventLimitText:"m\xe1s",noEventsMessage:"No hay eventos para mostrar"},{code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"D\xeda",list:"Agenda"},weekLabel:"Sm",allDayHtml:"Todo<br/>el d\xeda",eventLimitText:"m\xe1s",noEventsMessage:"No hay eventos para mostrar"},{code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"J\xe4rgnev",today:"T\xe4na",month:"Kuu",week:"N\xe4dal",day:"P\xe4ev",list:"P\xe4evakord"},weekLabel:"n\xe4d",allDayText:"Kogu p\xe4ev",eventLimitText:function(t){return"+ veel "+t},noEventsMessage:"Kuvamiseks puuduvad s\xfcndmused"},{code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekLabel:"As",allDayHtml:"Egun<br/>osoa",eventLimitText:"gehiago",noEventsMessage:"Ez dago ekitaldirik erakusteko"},{code:"fa",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"\u0642\u0628\u0644\u06cc",next:"\u0628\u0639\u062f\u06cc",today:"\u0627\u0645\u0631\u0648\u0632",month:"\u0645\u0627\u0647",week:"\u0647\u0641\u062a\u0647",day:"\u0631\u0648\u0632",list:"\u0628\u0631\u0646\u0627\u0645\u0647"},weekLabel:"\u0647\u0641",allDayText:"\u062a\u0645\u0627\u0645 \u0631\u0648\u0632",eventLimitText:function(t){return"\u0628\u06cc\u0634 \u0627\u0632 "+t},noEventsMessage:"\u0647\u06cc\u0686 \u0631\u0648\u06cc\u062f\u0627\u062f\u06cc \u0628\u0647 \u0646\u0645\u0627\u06cc\u0634"},{code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"T\xe4n\xe4\xe4n",month:"Kuukausi",week:"Viikko",day:"P\xe4iv\xe4",list:"Tapahtumat"},weekLabel:"Vk",allDayText:"Koko p\xe4iv\xe4",eventLimitText:"lis\xe4\xe4",noEventsMessage:"Ei n\xe4ytett\xe4vi\xe4 tapahtumia"},{code:"fr",buttonText:{prev:"Pr\xe9c\xe9dent",next:"Suivant",today:"Aujourd'hui",year:"Ann\xe9e",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekLabel:"Sem.",allDayHtml:"Toute la<br/>journ\xe9e",eventLimitText:"en plus",noEventsMessage:"Aucun \xe9v\xe9nement \xe0 afficher"},{code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Pr\xe9c\xe9dent",next:"Suivant",today:"Courant",year:"Ann\xe9e",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekLabel:"Sm",allDayHtml:"Toute la<br/>journ\xe9e",eventLimitText:"en plus",noEventsMessage:"Aucun \xe9v\xe9nement \xe0 afficher"},{code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Pr\xe9c\xe9dent",next:"Suivant",today:"Aujourd'hui",year:"Ann\xe9e",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekLabel:"Sem.",allDayHtml:"Toute la<br/>journ\xe9e",eventLimitText:"en plus",noEventsMessage:"Aucun \xe9v\xe9nement \xe0 afficher"},{code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",month:"Mes",week:"Semana",day:"D\xeda",list:"Axenda"},weekLabel:"Sm",allDayHtml:"Todo<br/>o d\xeda",eventLimitText:"m\xe1is",noEventsMessage:"Non hai eventos para amosar"},{code:"he",dir:"rtl",buttonText:{prev:"\u05d4\u05e7\u05d5\u05d3\u05dd",next:"\u05d4\u05d1\u05d0",today:"\u05d4\u05d9\u05d5\u05dd",month:"\u05d7\u05d5\u05d3\u05e9",week:"\u05e9\u05d1\u05d5\u05e2",day:"\u05d9\u05d5\u05dd",list:"\u05e1\u05d3\u05e8 \u05d9\u05d5\u05dd"},allDayText:"\u05db\u05dc \u05d4\u05d9\u05d5\u05dd",eventLimitText:"\u05d0\u05d7\u05e8",noEventsMessage:"\u05d0\u05d9\u05df \u05d0\u05d9\u05e8\u05d5\u05e2\u05d9\u05dd \u05dc\u05d4\u05e6\u05d2\u05d4",weekLabel:"\u05e9\u05d1\u05d5\u05e2"},{code:"hi",week:{dow:0,doy:6},buttonText:{prev:"\u092a\u093f\u091b\u0932\u093e",next:"\u0905\u0917\u0932\u093e",today:"\u0906\u091c",month:"\u092e\u0939\u0940\u0928\u093e",week:"\u0938\u092a\u094d\u0924\u093e\u0939",day:"\u0926\u093f\u0928",list:"\u0915\u093e\u0930\u094d\u092f\u0938\u0942\u091a\u0940"},weekLabel:"\u0939\u092b\u094d\u0924\u093e",allDayText:"\u0938\u092d\u0940 \u0926\u093f\u0928",eventLimitText:function(t){return"+\u0905\u0927\u093f\u0915 "+t},noEventsMessage:"\u0915\u094b\u0908 \u0918\u091f\u0928\u093e\u0913\u0902 \u0915\u094b \u092a\u094d\u0930\u0926\u0930\u094d\u0936\u093f\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f"},{code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prija\u0161nji",next:"Sljede\u0107i",today:"Danas",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekLabel:"Tje",allDayText:"Cijeli dan",eventLimitText:function(t){return"+ jo\u0161 "+t},noEventsMessage:"Nema doga\u0111aja za prikaz"},{code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"el\u0151re",today:"ma",month:"H\xf3nap",week:"H\xe9t",day:"Nap",list:"Napl\xf3"},weekLabel:"H\xe9t",allDayText:"Eg\xe9sz nap",eventLimitText:"tov\xe1bbi",noEventsMessage:"Nincs megjelen\xedthet\u0151 esem\xe9ny"},{code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekLabel:"Mg",allDayHtml:"Sehari<br/>penuh",eventLimitText:"lebih",noEventsMessage:"Tidak ada acara untuk ditampilkan"},{code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"N\xe6sti",today:"\xcd dag",month:"M\xe1nu\xf0ur",week:"Vika",day:"Dagur",list:"Dagskr\xe1"},weekLabel:"Vika",allDayHtml:"Allan<br/>daginn",eventLimitText:"meira",noEventsMessage:"Engir vi\xf0bur\xf0ir til a\xf0 s\xfdna"},{code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekLabel:"Sm",allDayHtml:"Tutto il<br/>giorno",eventLimitText:function(t){return"+altri "+t},noEventsMessage:"Non ci sono eventi da visualizzare"},{code:"ja",buttonText:{prev:"\u524d",next:"\u6b21",today:"\u4eca\u65e5",month:"\u6708",week:"\u9031",day:"\u65e5",list:"\u4e88\u5b9a\u30ea\u30b9\u30c8"},weekLabel:"\u9031",allDayText:"\u7d42\u65e5",eventLimitText:function(t){return"\u4ed6 "+t+" \u4ef6"},noEventsMessage:"\u8868\u793a\u3059\u308b\u4e88\u5b9a\u306f\u3042\u308a\u307e\u305b\u3093"},{code:"ka",week:{dow:1,doy:7},buttonText:{prev:"\u10ec\u10d8\u10dc\u10d0",next:"\u10e8\u10d4\u10db\u10d3\u10d4\u10d2\u10d8",today:"\u10d3\u10e6\u10d4\u10e1",month:"\u10d7\u10d5\u10d4",week:"\u10d9\u10d5\u10d8\u10e0\u10d0",day:"\u10d3\u10e6\u10d4",list:"\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d4\u10e1\u10e0\u10d8\u10d2\u10d8"},weekLabel:"\u10d9\u10d5",allDayText:"\u10db\u10d7\u10d4\u10da\u10d8 \u10d3\u10e6\u10d4",eventLimitText:function(t){return"+ \u10d9\u10d8\u10d3\u10d4\u10d5 "+t},noEventsMessage:"\u10e6\u10dd\u10dc\u10d8\u10e1\u10eb\u10d8\u10d4\u10d1\u10d4\u10d1\u10d8 \u10d0\u10e0 \u10d0\u10e0\u10d8\u10e1"},{code:"kk",week:{dow:1,doy:7},buttonText:{prev:"\u0410\u043b\u0434\u044b\u04a3\u0493\u044b",next:"\u041a\u0435\u043b\u0435\u0441\u0456",today:"\u0411\u04af\u0433\u0456\u043d",month:"\u0410\u0439",week:"\u0410\u043f\u0442\u0430",day:"\u041a\u04af\u043d",list:"\u041a\u04af\u043d \u0442\u04d9\u0440\u0442\u0456\u0431\u0456"},weekLabel:"\u041d\u0435",allDayText:"\u041a\u04af\u043d\u0456 \u0431\u043e\u0439\u044b",eventLimitText:function(t){return"+ \u0442\u0430\u0493\u044b "+t},noEventsMessage:"\u041a\u04e9\u0440\u0441\u0435\u0442\u0443 \u04af\u0448\u0456\u043d \u043e\u049b\u0438\u0493\u0430\u043b\u0430\u0440 \u0436\u043e\u049b"},{code:"ko",buttonText:{prev:"\uc774\uc804\ub2ec",next:"\ub2e4\uc74c\ub2ec",today:"\uc624\ub298",month:"\uc6d4",week:"\uc8fc",day:"\uc77c",list:"\uc77c\uc815\ubaa9\ub85d"},weekLabel:"\uc8fc",allDayText:"\uc885\uc77c",eventLimitText:"\uac1c",noEventsMessage:"\uc77c\uc815\uc774 \uc5c6\uc2b5\ub2c8\ub2e4"},{code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zr\xe9ck",next:"Weider",today:"Haut",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekLabel:"W",allDayText:"Ganzen Dag",eventLimitText:"m\xe9i",noEventsMessage:"Nee Evenementer ze affich\xe9ieren"},{code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"\u0160iandien",month:"M\u0117nuo",week:"Savait\u0117",day:"Diena",list:"Darbotvark\u0117"},weekLabel:"SAV",allDayText:"Vis\u0105 dien\u0105",eventLimitText:"daugiau",noEventsMessage:"N\u0117ra \u012fvyki\u0173 rodyti"},{code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"N\u0101k.",today:"\u0160odien",month:"M\u0113nesis",week:"Ned\u0113\u013ca",day:"Diena",list:"Dienas k\u0101rt\u012bba"},weekLabel:"Ned.",allDayText:"Visu dienu",eventLimitText:function(t){return"+v\u0113l "+t},noEventsMessage:"Nav notikumu"},{code:"mk",buttonText:{prev:"\u043f\u0440\u0435\u0442\u0445\u043e\u0434\u043d\u043e",next:"\u0441\u043b\u0435\u0434\u043d\u043e",today:"\u0414\u0435\u043d\u0435\u0441",month:"\u041c\u0435\u0441\u0435\u0446",week:"\u041d\u0435\u0434\u0435\u043b\u0430",day:"\u0414\u0435\u043d",list:"\u0413\u0440\u0430\u0444\u0438\u043a"},weekLabel:"\u0421\u0435\u0434",allDayText:"\u0426\u0435\u043b \u0434\u0435\u043d",eventLimitText:function(t){return"+\u043f\u043e\u0432\u0435\u045c\u0435 "+t},noEventsMessage:"\u041d\u0435\u043c\u0430 \u043d\u0430\u0441\u0442\u0430\u043d\u0438 \u0437\u0430 \u043f\u0440\u0438\u043a\u0430\u0436\u0443\u0432\u0430\u045a\u0435"},{code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekLabel:"Mg",allDayText:"Sepanjang hari",eventLimitText:function(t){return"masih ada "+t+" acara"},noEventsMessage:"Tiada peristiwa untuk dipaparkan"},{code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",month:"M\xe5ned",week:"Uke",day:"Dag",list:"Agenda"},weekLabel:"Uke",allDayText:"Hele dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser \xe5 vise"},{code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Voorgaand",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"},{code:"nn",week:{dow:1,doy:4},buttonText:{prev:"F\xf8rre",next:"Neste",today:"I dag",month:"M\xe5nad",week:"Veke",day:"Dag",list:"Agenda"},weekLabel:"Veke",allDayText:"Heile dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser \xe5 vise"},{code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Nast\u0119pny",today:"Dzi\u015b",month:"Miesi\u0105c",week:"Tydzie\u0144",day:"Dzie\u0144",list:"Plan dnia"},weekLabel:"Tydz",allDayText:"Ca\u0142y dzie\u0144",eventLimitText:"wi\u0119cej",noEventsMessage:"Brak wydarze\u0144 do wy\u015bwietlenia"},{code:"pt-br",buttonText:{prev:"Anterior",next:"Pr\xf3ximo",today:"Hoje",month:"M\xeas",week:"Semana",day:"Dia",list:"Lista"},weekLabel:"Sm",allDayText:"dia inteiro",eventLimitText:function(t){return"mais +"+t},noEventsMessage:"N\xe3o h\xe1 eventos para mostrar"},{code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",month:"M\xeas",week:"Semana",day:"Dia",list:"Agenda"},weekLabel:"Sem",allDayText:"Todo o dia",eventLimitText:"mais",noEventsMessage:"N\xe3o h\xe1 eventos para mostrar"},{code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedent\u0103",next:"urm\u0103toare",today:"Azi",month:"Lun\u0103",week:"S\u0103pt\u0103m\xe2n\u0103",day:"Zi",list:"Agend\u0103"},weekLabel:"S\u0103pt",allDayText:"Toat\u0103 ziua",eventLimitText:function(t){return"+alte "+t},noEventsMessage:"Nu exist\u0103 evenimente de afi\u0219at"},{code:"ru",week:{dow:1,doy:4},buttonText:{prev:"\u041f\u0440\u0435\u0434",next:"\u0421\u043b\u0435\u0434",today:"\u0421\u0435\u0433\u043e\u0434\u043d\u044f",month:"\u041c\u0435\u0441\u044f\u0446",week:"\u041d\u0435\u0434\u0435\u043b\u044f",day:"\u0414\u0435\u043d\u044c",list:"\u041f\u043e\u0432\u0435\u0441\u0442\u043a\u0430 \u0434\u043d\u044f"},weekLabel:"\u041d\u0435\u0434",allDayText:"\u0412\u0435\u0441\u044c \u0434\u0435\u043d\u044c",eventLimitText:function(t){return"+ \u0435\u0449\u0451 "+t},noEventsMessage:"\u041d\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f"},{code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predch\xe1dzaj\xfaci",next:"Nasleduj\xfaci",today:"Dnes",month:"Mesiac",week:"T\xfd\u017ede\u0148",day:"De\u0148",list:"Rozvrh"},weekLabel:"Ty",allDayText:"Cel\xfd de\u0148",eventLimitText:function(t){return"+\u010fal\u0161ie: "+t},noEventsMessage:"\u017diadne akcie na zobrazenie"},{code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prej\u0161nji",next:"Naslednji",today:"Trenutni",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekLabel:"Teden",allDayText:"Ves dan",eventLimitText:"ve\u010d",noEventsMessage:"Ni dogodkov za prikaz"},{code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"P\xebrpara",today:"sot",month:"Muaj",week:"Jav\xeb",day:"Dit\xeb",list:"List\xeb"},weekLabel:"Ja",allDayHtml:"Gjith\xeb<br/>dit\xebn",eventLimitText:function(t){return"+m\xeb tep\xebr "+t},noEventsMessage:"Nuk ka evente p\xebr t\xeb shfaqur"},{code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"\u041f\u0440\u0435\u0442\u0445\u043e\u0434\u043d\u0430",next:"\u0441\u043b\u0435\u0434\u0435\u045b\u0438",today:"\u0414\u0430\u043d\u0430\u0441",month:"\u041c\u0435\u0441\u0435\u0446",week:"\u041d\u0435\u0434\u0435\u0459\u0430",day:"\u0414\u0430\u043d",list:"\u041f\u043b\u0430\u043d\u0435\u0440"},weekLabel:"\u0421\u0435\u0434",allDayText:"\u0426\u0435\u043e \u0434\u0430\u043d",eventLimitText:function(t){return"+ \u0458\u043e\u0448 "+t},noEventsMessage:"\u041d\u0435\u043c\u0430 \u0434\u043e\u0433\u0430\u0452\u0430\u0458\u0430 \u0437\u0430 \u043f\u0440\u0438\u043a\u0430\u0437"},{code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledec\u0301i",today:"Danas",month:"M\u0435s\u0435c",week:"N\u0435d\u0435lja",day:"Dan",list:"Plan\u0435r"},weekLabel:"Sed",allDayText:"C\u0435o dan",eventLimitText:function(t){return"+ jo\u0161 "+t},noEventsMessage:"N\u0435ma doga\u0111aja za prikaz"},{code:"sv",week:{dow:1,doy:4},buttonText:{prev:"F\xf6rra",next:"N\xe4sta",today:"Idag",month:"M\xe5nad",week:"Vecka",day:"Dag",list:"Program"},weekLabel:"v.",allDayText:"Heldag",eventLimitText:"till",noEventsMessage:"Inga h\xe4ndelser att visa"},{code:"th",week:{dow:1,doy:4},buttonText:{prev:"\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32",next:"\u0e16\u0e31\u0e14\u0e44\u0e1b",prevYear:"\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32",nextYear:"\u0e1b\u0e35\u0e16\u0e31\u0e14\u0e44\u0e1b",year:"\u0e1b\u0e35",today:"\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49",month:"\u0e40\u0e14\u0e37\u0e2d\u0e19",week:"\u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",day:"\u0e27\u0e31\u0e19",list:"\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e01\u0e32\u0e23"},weekLabel:"\u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",allDayText:"\u0e15\u0e25\u0e2d\u0e14\u0e27\u0e31\u0e19",eventLimitText:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21",noEventsMessage:"\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e34\u0e08\u0e01\u0e23\u0e23\u0e21\u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e2a\u0e14\u0e07"},{code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bug\xfcn",month:"Ay",week:"Hafta",day:"G\xfcn",list:"Ajanda"},weekLabel:"Hf",allDayText:"T\xfcm g\xfcn",eventLimitText:"daha fazla",noEventsMessage:"G\xf6sterilecek etkinlik yok"},{code:"ug",buttonText:{month:"\u0626\u0627\u064a",week:"\u06be\u06d5\u067e\u062a\u06d5",day:"\u0643\u06c8\u0646",list:"\u0643\u06c8\u0646\u062a\u06d5\u0631\u062a\u0649\u067e"},allDayText:"\u067e\u06c8\u062a\u06c8\u0646 \u0643\u06c8\u0646"},{code:"uk",week:{dow:1,doy:7},buttonText:{prev:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439",next:"\u0434\u0430\u043b\u0456",today:"\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456",month:"\u041c\u0456\u0441\u044f\u0446\u044c",week:"\u0422\u0438\u0436\u0434\u0435\u043d\u044c",day:"\u0414\u0435\u043d\u044c",list:"\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0434\u0435\u043d\u043d\u0438\u0439"},weekLabel:"\u0422\u0438\u0436",allDayText:"\u0423\u0432\u0435\u0441\u044c \u0434\u0435\u043d\u044c",eventLimitText:function(t){return"+\u0449\u0435 "+t+"..."},noEventsMessage:"\u041d\u0435\u043c\u0430\u0454 \u043f\u043e\u0434\u0456\u0439 \u0434\u043b\u044f \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f"},{code:"uz",buttonText:{month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",eventLimitText:function(t){return"+ yana "+t},noEventsMessage:"Ko'rsatish uchun voqealar yo'q"},{code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Tr\u01b0\u1edbc",next:"Ti\u1ebfp",today:"H\xf4m nay",month:"Th\xe1ng",week:"Tu\xe2\u0300n",day:"Ng\xe0y",list:"L\u1ecbch bi\u1ec3u"},weekLabel:"Tu",allDayText:"C\u1ea3 ng\xe0y",eventLimitText:function(t){return"+ th\xeam "+t},noEventsMessage:"Kh\xf4ng c\xf3 s\u1ef1 ki\u1ec7n \u0111\u1ec3 hi\u1ec3n th\u1ecb"},{code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"\u4e0a\u6708",next:"\u4e0b\u6708",today:"\u4eca\u5929",month:"\u6708",week:"\u5468",day:"\u65e5",list:"\u65e5\u7a0b"},weekLabel:"\u5468",allDayText:"\u5168\u5929",eventLimitText:function(t){return"\u53e6\u5916 "+t+" \u4e2a"},noEventsMessage:"\u6ca1\u6709\u4e8b\u4ef6\u663e\u793a"},{code:"zh-tw",buttonText:{prev:"\u4e0a\u6708",next:"\u4e0b\u6708",today:"\u4eca\u5929",month:"\u6708",week:"\u9031",day:"\u5929",list:"\u6d3b\u52d5\u5217\u8868"},weekLabel:"\u5468",allDayText:"\u6574\u5929",eventLimitText:"\u986f\u793a\u66f4\u591a",noEventsMessage:"\u6ca1\u6709\u4efb\u4f55\u6d3b\u52d5"}]}()},function(t,e,n){"use strict";(function(t){function r(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e&&e.preventDefault();var o=document.getElementById("actions-list-"+r).dataset.iteration;t.ajax({url:n,type:"GET",dataType:"script",data:{iterate_count:o,filter:i}})}function i(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e.preventDefault();var o=document.getElementById("actions-list-"+r).dataset.iteration,a=document.getElementById("actions-list-"+r).dataset.cursor;t.ajax({url:n,type:"GET",dataType:"script",data:{iterate_count:o,cursor:a,filter:i,dashboard_manager:!0}})}function o(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(document.getElementById("actions-section")){e.preventDefault();var o=document.getElementById("actions-list-"+r).dataset.iteration,a=document.getElementById("actions-list-"+r).dataset.cursor;t.ajax({url:n,type:"DELETE",dataType:"script",data:{iterate_count:o,cursor:a,filter:i,dashboard_manager:!0}})}else document.getElementById("manager-calendar")&&(e.preventDefault(),t.ajax({url:n,type:"DELETE",dataType:"script"}))}function a(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"fr";e.preventDefault();var s=document.getElementById("actions-list-"+i).dataset.iteration,l=document.getElementById("actions-list-"+i).dataset.cursor,u=document.querySelector("[data-dashboard-id]").dataset.dashboardId;t.ajax({url:n,type:r,dataType:"script",data:{iterate_count:s,cursor:l,filter:o,dashboard_id:u,locale:a}})}function s(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;e.preventDefault();var a=document.getElementById("actions-list-"+r).dataset.iteration,s=document.getElementById("actions-list-"+r).dataset.cursor;t.ajax({url:n,type:"POST",dataType:"script",data:{iterate_count:a,cursor:s,filter:i,event:o}})}function l(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;e.preventDefault();var a=document.getElementById("actions-list-"+n).dataset.iteration,s=document.getElementById("actions-list-"+n).dataset.cursor;t.ajax({url:"/"+o+"/paperworks/"+i+"/dashboard_uploaded_paperwork_documents/new",type:"GET",dataType:"script",data:{iterate_count:a,cursor:s,filter:r}})}function u(e,n,r,i){e.preventDefault(),window.open(r,"_blank"),t.ajax({url:n,type:"PATCH",dataType:"script",data:{resource:i}})}function c(){var t=document.querySelector(".highlighted-action");t&&window.addEventListener("load",(function(){window.scrollTo(0,t.offsetTop-145)}),!1)}function d(e,n,r){var i=document.getElementById("actions-cards").dataset.filter;i&&t("#"+i).removeClass("active-filter"),i==n?n=null:t("#"+n).toggleClass("active-filter"),document.getElementById("actions-cards").dataset.filter=n,t.ajax({url:r,type:"GET",dataType:"script",data:{filter:n}})}function h(){document.querySelectorAll(".onboardee-block-header").forEach((function(e){e.addEventListener("click",(function(e){"false"==this.dataset.selected?t.ajax({url:this.dataset.path,type:"GET",dataType:"script"}):"true"==this.dataset.selected&&window.open(this.dataset.path,"_self")}))}))}function f(e,n){document.getElementById("back_navbar").addEventListener("click",(function(r){r.preventDefault(),document.getElementById("onboardee-block-header-".concat(e)).dataset.selected="false",document.getElementById("onboardee-block-header-".concat(e)).dataset.path=n;var i=document.getElementById("actions-list-".concat(e));i.dataset.iteration=i.dataset.startIteration,i.dataset.cursor=i.dataset.startCursor,stopBottomLoading(),new Promise((function(n,r){t("#onboardee-block-header-".concat(e," .header-top .fas")).toggleClass("d-none"),t(window).off("scroll"),t("#close-onboardee-block").remove(),t("#actions-list-".concat(e)).html(""),t("#header").slideDown(),t("#onboardee-block-header-".concat(e," .header-bottom")).toggleClass("d-none"),t("#onboardee-block-header-".concat(e," .header-bottom")).toggleClass("d-flex"),t(".onboardee-block-header").not("#onboardee-block-header-".concat(e)).toggleClass("d-none"),t("#back_navbar").remove(),t("#next-actions-buttons-".concat(e)).remove(),n()})).then((function(n){window.scrollTo(0,t("#actions-block-".concat(e))[0].offsetTop-75)}))}))}function p(t,e,n){if(document.querySelector("#actions-cards #".concat(e,"_count"))){var r=parseInt(document.querySelector("#actions-cards #".concat(e,"_count")).innerText,10);document.querySelector("#actions-cards #".concat(e,"_count")).innerText=r+n}if(document.querySelector("#actions-block-".concat(t," .").concat(e,"_count"))){var i=parseInt(document.querySelector("#actions-block-".concat(t," .").concat(e,"_count")).innerText,10);document.querySelector("#actions-block-".concat(t," .").concat(e,"_count")).innerText=i+n}}function m(e,n){t("#next-actions-buttons-"+n).off("click"),t("#next-actions-buttons-"+n).on("click",(function(i){t("#next-actions-buttons-"+n).off("click"),stopBottomLoading(),r(i,e,n)}))}function g(e){var n=e.dataset.employeeId;e.classList.add("bg-green"),t(e).fadeOut(800,(function(){t(this).remove()})),updateActionCountFor(n,-1),updateManagerDashboardCount(),setTimeout((function(){0==document.querySelectorAll("#actions-list-".concat(n," .line-action")).length&&document.getElementById("employee-block-".concat(n)).remove()}),900)}n.d(e,"a",(function(){return r})),n.d(e,"j",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"n",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"m",(function(){return l})),n.d(e,"i",(function(){return u})),n.d(e,"k",(function(){return c})),n.d(e,"d",(function(){return d})),n.d(e,"h",(function(){return h})),n.d(e,"f",(function(){return f})),n.d(e,"l",(function(){return p})),n.d(e,"g",(function(){return m})),n.d(e,"e",(function(){return g}))}).call(this,n(4))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t.replace(/(?:^|_)\S/g,(function(t){return t.toUpperCase()})).replace("_","")}},function(t,e,n){"use strict";(function(t){var r=n(30),i=n(39),o=n(12),a=n(7),s=n(14),l=n(21),u=(n(97),function(){return u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},u.apply(this,arguments)}),c=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},d=300;function h(t,e){var n={config:u(u({},r.b),p.defaultConfig),l10n:i.a};function h(){var t;return(null===(t=n.calendarContainer)||void 0===t?void 0:t.getRootNode()).activeElement||document.activeElement}function f(t){return t.bind(n)}function m(){var t=n.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var e=(n.days.offsetWidth+1)*t.showMonths;n.daysContainer.style.width=e+"px",n.calendarContainer.style.width=e+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}}))}function g(t){if(0===n.selectedDates.length){var e=void 0===n.config.minDate||Object(s.b)(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),r=Object(s.f)(n.config);e.setHours(r.hours,r.minutes,r.seconds,e.getMilliseconds()),n.selectedDates=[e],n.latestSelectedDateObj=e}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();var e="keydown"===t.type,r=Object(a.e)(t),i=r;void 0!==n.amPM&&r===n.amPM&&(n.amPM.textContent=n.l10n.amPM[Object(o.c)(n.amPM.textContent===n.l10n.amPM[0])]);var s=parseFloat(i.getAttribute("min")),l=parseFloat(i.getAttribute("max")),u=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),d=t.delta||(e?38===t.which?1:-1:0),h=c+u*d;if("undefined"!==typeof i.value&&2===i.value.length){var f=i===n.hourElement,p=i===n.minuteElement;h<s?(h=l+h+Object(o.c)(!f)+(Object(o.c)(f)&&Object(o.c)(!n.amPM)),p&&E(void 0,-1,n.hourElement)):h>l&&(h=i===n.hourElement?h-l-Object(o.c)(!n.amPM):s,p&&E(void 0,1,n.hourElement)),n.amPM&&f&&(1===u?h+c===23:Math.abs(h-c)>u)&&(n.amPM.textContent=n.l10n.amPM[Object(o.c)(n.amPM.textContent===n.l10n.amPM[0])]),i.value=Object(o.d)(h)}}(t);var i=n._input.value;b(),ut(),n._input.value!==i&&n._debouncedChange()}function b(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var t,e,r=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(n.minuteElement.value,10)||0)%60,a=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(t=r,e=n.amPM.textContent,r=t%12+12*Object(o.c)(e===n.l10n.amPM[1]));var l=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===Object(s.b)(n.latestSelectedDateObj,n.config.minDate,!0),u=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===Object(s.b)(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var c=Object(s.a)(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),d=Object(s.a)(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),h=Object(s.a)(r,i,a);if(h>d&&h<c){var f=Object(s.h)(c);r=f[0],i=f[1],a=f[2]}}else{if(u){var p=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(r=Math.min(r,p.getHours()))===p.getHours()&&(i=Math.min(i,p.getMinutes())),i===p.getMinutes()&&(a=Math.min(a,p.getSeconds()))}if(l){var m=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(r=Math.max(r,m.getHours()))===m.getHours()&&i<m.getMinutes()&&(i=m.getMinutes()),i===m.getMinutes()&&(a=Math.max(a,m.getSeconds()))}}y(r,i,a)}}function v(t){var e=t||n.latestSelectedDateObj;e&&e instanceof Date&&y(e.getHours(),e.getMinutes(),e.getSeconds())}function y(t,e,r){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(t%24,e,r||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=Object(o.d)(n.config.time_24hr?t:(12+t)%12+12*Object(o.c)(t%12===0)),n.minuteElement.value=Object(o.d)(e),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[Object(o.c)(t>=12)]),void 0!==n.secondElement&&(n.secondElement.value=Object(o.d)(r)))}function w(t){var e=Object(a.e)(t),n=parseInt(e.value)+(t.delta||0);(n/1e3>1||"Enter"===t.key&&!/[^\d]/.test(n.toString()))&&F(n)}function k(t,e,r,i){return e instanceof Array?e.forEach((function(e){return k(t,e,r,i)})):t instanceof Array?t.forEach((function(t){return k(t,e,r,i)})):(t.addEventListener(e,r,i),void n._handlers.push({remove:function(){return t.removeEventListener(e,r,i)}}))}function _(){it("onChange")}function O(t,e){var r=void 0!==t?n.parseDate(t):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),i=n.currentYear,o=n.currentMonth;try{void 0!==r&&(n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth())}catch(a){a.message="Invalid date supplied: "+r,n.config.errorHandler(a)}e&&n.currentYear!==i&&(it("onYearChange"),A()),!e||n.currentYear===i&&n.currentMonth===o||it("onMonthChange"),n.redraw()}function x(t){var e=Object(a.e)(t);~e.className.indexOf("arrow")&&E(t,e.classList.contains("arrowUp")?1:-1)}function E(t,e,n){var r=t&&Object(a.e)(t),i=n||r&&r.parentNode&&r.parentNode.firstChild,o=ot("increment");o.delta=e,i&&i.dispatchEvent(o)}function j(t,e,r,i){var o=H(e,!0),l=Object(a.b)("span",t,e.getDate().toString());return l.dateObj=e,l.$i=i,l.setAttribute("aria-label",n.formatDate(e,n.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===Object(s.b)(e,n.now)&&(n.todayDateElem=l,l.classList.add("today"),l.setAttribute("aria-current","date")),o?(l.tabIndex=-1,at(e)&&(l.classList.add("selected"),n.selectedDateElem=l,"range"===n.config.mode&&(Object(a.f)(l,"startRange",n.selectedDates[0]&&0===Object(s.b)(e,n.selectedDates[0],!0)),Object(a.f)(l,"endRange",n.selectedDates[1]&&0===Object(s.b)(e,n.selectedDates[1],!0)),"nextMonthDay"===t&&l.classList.add("inRange")))):l.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(t){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(Object(s.b)(t,n.selectedDates[0])>=0&&Object(s.b)(t,n.selectedDates[1])<=0)}(e)&&!at(e)&&l.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==t&&i%7===6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(e)+"</span>"),it("onDayCreate",l),l}function S(t){t.focus(),"range"===n.config.mode&&Y(t)}function P(t){for(var e=t>0?0:n.config.showMonths-1,r=t>0?n.config.showMonths:-1,i=e;i!=r;i+=t)for(var o=n.daysContainer.children[i],a=t>0?0:o.children.length-1,s=t>0?o.children.length:-1,l=a;l!=s;l+=t){var u=o.children[l];if(-1===u.className.indexOf("hidden")&&H(u.dateObj))return u}}function C(t,e){var r=h(),i=B(r||document.body),o=void 0!==t?t:i?r:void 0!==n.selectedDateElem&&B(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&B(n.todayDateElem)?n.todayDateElem:P(e>0?1:-1);void 0===o?n._input.focus():i?function(t,e){for(var r=-1===t.className.indexOf("Month")?t.dateObj.getMonth():n.currentMonth,i=e>0?n.config.showMonths:-1,o=e>0?1:-1,a=r-n.currentMonth;a!=i;a+=o)for(var s=n.daysContainer.children[a],l=r-n.currentMonth===a?t.$i+e:e<0?s.children.length-1:0,u=s.children.length,c=l;c>=0&&c<u&&c!=(e>0?u:-1);c+=o){var d=s.children[c];if(-1===d.className.indexOf("hidden")&&H(d.dateObj)&&Math.abs(t.$i-c)>=Math.abs(e))return S(d)}n.changeMonth(o),C(P(o),0)}(o,e):S(o)}function T(t,e){for(var r=(new Date(t,e,1).getDay()-n.l10n.firstDayOfWeek+7)%7,i=n.utils.getDaysInMonth((e-1+12)%12,t),o=n.utils.getDaysInMonth(e,t),s=window.document.createDocumentFragment(),l=n.config.showMonths>1,u=l?"prevMonthDay hidden":"prevMonthDay",c=l?"nextMonthDay hidden":"nextMonthDay",d=i+1-r,h=0;d<=i;d++,h++)s.appendChild(j("flatpickr-day "+u,new Date(t,e-1,d),0,h));for(d=1;d<=o;d++,h++)s.appendChild(j("flatpickr-day",new Date(t,e,d),0,h));for(var f=o+1;f<=42-r&&(1===n.config.showMonths||h%7!==0);f++,h++)s.appendChild(j("flatpickr-day "+c,new Date(t,e+1,f%o),0,h));var p=Object(a.b)("div","dayContainer");return p.appendChild(s),p}function M(){if(void 0!==n.daysContainer){Object(a.a)(n.daysContainer),n.weekNumbers&&Object(a.a)(n.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e<n.config.showMonths;e++){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+e),t.appendChild(T(r.getFullYear(),r.getMonth()))}n.daysContainer.appendChild(t),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&Y()}}function A(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var t=function(t){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&t<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&t>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++)if(t(e)){var r=Object(a.b)("option","flatpickr-monthDropdown-month");r.value=new Date(n.currentYear,e).getMonth().toString(),r.textContent=Object(l.b)(e,n.config.shorthandCurrentMonth,n.l10n),r.tabIndex=-1,n.currentMonth===e&&(r.selected=!0),n.monthsDropdownContainer.appendChild(r)}}}function D(){var t,e=Object(a.b)("div","flatpickr-month"),r=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?t=Object(a.b)("span","cur-month"):(n.monthsDropdownContainer=Object(a.b)("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),k(n.monthsDropdownContainer,"change",(function(t){var e=Object(a.e)(t),r=parseInt(e.value,10);n.changeMonth(r-n.currentMonth),it("onMonthChange")})),A(),t=n.monthsDropdownContainer);var i=Object(a.c)("cur-year",{tabindex:"-1"}),o=i.getElementsByTagName("input")[0];o.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute("max",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var s=Object(a.b)("div","flatpickr-current-month");return s.appendChild(t),s.appendChild(i),r.appendChild(s),e.appendChild(r),{container:e,yearElement:o,monthElement:t}}function R(){Object(a.a)(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var t=n.config.showMonths;t--;){var e=D();n.yearElements.push(e.yearElement),n.monthElements.push(e.monthElement),n.monthNav.appendChild(e.container)}n.monthNav.appendChild(n.nextMonthNav)}function L(){n.weekdayContainer?Object(a.a)(n.weekdayContainer):n.weekdayContainer=Object(a.b)("div","flatpickr-weekdays");for(var t=n.config.showMonths;t--;){var e=Object(a.b)("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(e)}return I(),n.weekdayContainer}function I(){if(n.weekdayContainer){var t=n.l10n.firstDayOfWeek,e=c(n.l10n.weekdays.shorthand);t>0&&t<e.length&&(e=c(e.splice(t,e.length),e.splice(0,t)));for(var r=n.config.showMonths;r--;)n.weekdayContainer.children[r].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+e.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function W(t,e){void 0===e&&(e=!0);var r=e?t:t-n.currentMonth;r<0&&!0===n._hidePrevMonthArrow||r>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=r,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,it("onYearChange"),A()),M(),it("onMonthChange"),st())}function z(t){return n.calendarContainer.contains(t)}function N(t){if(n.isOpen&&!n.config.inline){var e=Object(a.e)(t),r=z(e),i=!(e===n.input||e===n.altInput||n.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(n.input)||~t.path.indexOf(n.altInput)))&&!r&&!z(t.relatedTarget),o=!n.config.ignoredFocusElements.some((function(t){return t.contains(e)}));i&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&g(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function F(t){if(!(!t||n.config.minDate&&t<n.config.minDate.getFullYear()||n.config.maxDate&&t>n.config.maxDate.getFullYear())){var e=t,r=n.currentYear!==e;n.currentYear=e||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),r&&(n.redraw(),it("onYearChange"),A())}}function H(t,e){var r;void 0===e&&(e=!0);var i=n.parseDate(t,void 0,e);if(n.config.minDate&&i&&Object(s.b)(i,n.config.minDate,void 0!==e?e:!n.minDateHasTime)<0||n.config.maxDate&&i&&Object(s.b)(i,n.config.maxDate,void 0!==e?e:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!n.config.enable,a=null!==(r=n.config.enable)&&void 0!==r?r:n.config.disable,l=0,u=void 0;l<a.length;l++){if("function"===typeof(u=a[l])&&u(i))return o;if(u instanceof Date&&void 0!==i&&u.getTime()===i.getTime())return o;if("string"===typeof u){var c=n.parseDate(u,void 0,!0);return c&&c.getTime()===i.getTime()?o:!o}if("object"===typeof u&&void 0!==i&&u.from&&u.to&&i.getTime()>=u.from.getTime()&&i.getTime()<=u.to.getTime())return o}return!o}function B(t){return void 0!==n.daysContainer&&(-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(t))}function V(t){var e=t.target===n._input,r=n._input.value.trimEnd()!==lt();!e||!r||t.relatedTarget&&z(t.relatedTarget)||n.setDate(n._input.value,!0,t.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function q(e){var r=Object(a.e)(e),i=n.config.wrap?t.contains(r):r===n._input,o=n.config.allowInput,s=n.isOpen&&(!o||!i),l=n.config.inline&&i&&!o;if(13===e.keyCode&&i){if(o)return n.setDate(n._input.value,!0,r===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),r.blur();n.open()}else if(z(r)||s||l){var u=!!n.timeContainer&&n.timeContainer.contains(r);switch(e.keyCode){case 13:u?(e.preventDefault(),g(),Q()):Z(e);break;case 27:e.preventDefault(),Q();break;case 8:case 46:i&&!n.config.allowInput&&(e.preventDefault(),n.clear());break;case 37:case 39:if(u||i)n.hourElement&&n.hourElement.focus();else{e.preventDefault();var c=h();if(void 0!==n.daysContainer&&(!1===o||c&&B(c))){var d=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),W(d),C(P(1),0)):C(void 0,d)}}break;case 38:case 40:e.preventDefault();var f=40===e.keyCode?1:-1;n.daysContainer&&void 0!==r.$i||r===n.input||r===n.altInput?e.ctrlKey?(e.stopPropagation(),F(n.currentYear-f),C(P(1),0)):u||C(void 0,7*f):r===n.currentYearElement?F(n.currentYear-f):n.config.enableTime&&(!u&&n.hourElement&&n.hourElement.focus(),g(e),n._debouncedChange());break;case 9:if(u){var p=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((function(t){return t})),m=p.indexOf(r);if(-1!==m){var v=p[m+(e.shiftKey?-1:1)];e.preventDefault(),(v||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(r)&&e.shiftKey&&(e.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&r===n.amPM)switch(e.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],b(),ut();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],b(),ut()}(i||z(r))&&it("onKeyDown",e)}function Y(t,e){if(void 0===e&&(e="flatpickr-day"),1===n.selectedDates.length&&(!t||t.classList.contains(e)&&!t.classList.contains("flatpickr-disabled"))){for(var r=t?t.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),i=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(r,n.selectedDates[0].getTime()),a=Math.max(r,n.selectedDates[0].getTime()),l=!1,u=0,c=0,d=o;d<a;d+=s.e.DAY)H(new Date(d),!0)||(l=l||d>o&&d<a,d<i&&(!u||d>u)?u=d:d>i&&(!c||d<c)&&(c=d));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") > ."+e)).forEach((function(e){var o=e.dateObj.getTime(),a=u>0&&o<u||c>0&&o>c;if(a)return e.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(t){e.classList.remove(t)}));l&&!a||(["startRange","inRange","endRange","notAllowed"].forEach((function(t){e.classList.remove(t)})),void 0!==t&&(t.classList.add(r<=n.selectedDates[0].getTime()?"startRange":"endRange"),i<r&&o===i?e.classList.add("startRange"):i>r&&o===i&&e.classList.add("endRange"),o>=u&&(0===c||o<=c)&&Object(s.g)(o,i,r)&&e.classList.add("inRange")))}))}}function U(){!n.isOpen||n.config.static||n.config.inline||K()}function G(t){return function(e){var r=n.config["_"+t+"Date"]=n.parseDate(e,n.config.dateFormat),i=n.config["_"+("min"===t?"max":"min")+"Date"];void 0!==r&&(n["min"===t?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((function(t){return H(t)})),n.selectedDates.length||"min"!==t||v(r),ut()),n.daysContainer&&($(),void 0!==r?n.currentYearElement[t]=r.getFullYear().toString():n.currentYearElement.removeAttribute(t),n.currentYearElement.disabled=!!i&&void 0!==r&&i.getFullYear()===r.getFullYear())}}function X(){return n.config.wrap?t.querySelector("[data-input]"):t}function J(){"object"!==typeof n.config.locale&&"undefined"===typeof p.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=u(u({},p.l10ns.default),"object"===typeof n.config.locale?n.config.locale:"default"!==n.config.locale?p.l10ns[n.config.locale]:void 0),l.d.D="("+n.l10n.weekdays.shorthand.join("|")+")",l.d.l="("+n.l10n.weekdays.longhand.join("|")+")",l.d.M="("+n.l10n.months.shorthand.join("|")+")",l.d.F="("+n.l10n.months.longhand.join("|")+")",l.d.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===u(u({},e),JSON.parse(JSON.stringify(t.dataset||{}))).time_24hr&&void 0===p.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=Object(s.c)(n),n.parseDate=Object(s.d)({config:n.config,l10n:n.l10n})}function K(t){if("function"!==typeof n.config.position){if(void 0!==n.calendarContainer){it("onPreCalendarPosition");var e=t||n._positionElement,r=Array.prototype.reduce.call(n.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),i=n.calendarContainer.offsetWidth,o=n.config.position.split(" "),s=o[0],l=o.length>1?o[1]:null,u=e.getBoundingClientRect(),c=window.innerHeight-u.bottom,d="above"===s||"below"!==s&&c<r&&u.top>r,h=window.pageYOffset+u.top+(d?-r-2:e.offsetHeight+2);if(Object(a.f)(n.calendarContainer,"arrowTop",!d),Object(a.f)(n.calendarContainer,"arrowBottom",d),!n.config.inline){var f=window.pageXOffset+u.left,p=!1,m=!1;"center"===l?(f-=(i-u.width)/2,p=!0):"right"===l&&(f-=i-u.width,m=!0),Object(a.f)(n.calendarContainer,"arrowLeft",!p&&!m),Object(a.f)(n.calendarContainer,"arrowCenter",p),Object(a.f)(n.calendarContainer,"arrowRight",m);var g=window.document.body.offsetWidth-(window.pageXOffset+u.right),b=f+i>window.document.body.offsetWidth,v=g+i>window.document.body.offsetWidth;if(Object(a.f)(n.calendarContainer,"rightMost",b),!n.config.static)if(n.calendarContainer.style.top=h+"px",b)if(v){var y=function(){for(var t=null,e=0;e<document.styleSheets.length;e++){var n=document.styleSheets[e];if(n.cssRules){try{n.cssRules}catch(i){continue}t=n;break}}return null!=t?t:(r=document.createElement("style"),document.head.appendChild(r),r.sheet);var r}();if(void 0===y)return;var w=window.document.body.offsetWidth,k=Math.max(0,w/2-i/2),_=y.cssRules.length,O="{left:"+u.left+"px;right:auto;}";Object(a.f)(n.calendarContainer,"rightMost",!1),Object(a.f)(n.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+O,_),n.calendarContainer.style.left=k+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=g+"px";else n.calendarContainer.style.left=f+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,t)}function $(){n.config.noCalendar||n.isMobile||(A(),st(),M())}function Q(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function Z(t){t.preventDefault(),t.stopPropagation();var e=Object(a.d)(Object(a.e)(t),(function(t){return t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")}));if(void 0!==e){var r=e,i=n.latestSelectedDateObj=new Date(r.dateObj.getTime()),o=(i.getMonth()<n.currentMonth||i.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=r,"single"===n.config.mode)n.selectedDates=[i];else if("multiple"===n.config.mode){var l=at(i);l?n.selectedDates.splice(parseInt(l),1):n.selectedDates.push(i)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=i,n.selectedDates.push(i),0!==Object(s.b)(i,n.selectedDates[0],!0)&&n.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()})));if(b(),o){var u=n.currentYear!==i.getFullYear();n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth(),u&&(it("onYearChange"),A()),it("onMonthChange")}if(st(),M(),ut(),o||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():S(r),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c="single"===n.config.mode&&!n.config.enableTime,d="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||d)&&Q()}_()}}n.parseDate=Object(s.d)({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=k,n._setHoursFromDate=v,n._positionCalendar=K,n.changeMonth=W,n.changeYear=F,n.clear=function(t,e){void 0===t&&(t=!0);void 0===e&&(e=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===e&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var r=Object(s.f)(n.config);y(r.hours,r.minutes,r.seconds)}n.redraw(),t&&it("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));it("onClose")},n.onMouseOver=Y,n._createElement=a.b,n.createDay=j,n.destroy=function(){void 0!==n.config&&it("onDestroy");for(var t=n._handlers.length;t--;)n._handlers[t].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var e=n.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(t){try{delete n[t]}catch(e){}}))},n.isEnabled=H,n.jumpToDate=O,n.updateValue=ut,n.open=function(t,e){void 0===e&&(e=n._positionElement);if(!0===n.isMobile){if(t){t.preventDefault();var r=Object(a.e)(t);r&&r.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void it("onOpen")}if(n._input.disabled||n.config.inline)return;var i=n.isOpen;n.isOpen=!0,i||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),it("onOpen"),K(e));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==t&&n.timeContainer.contains(t.relatedTarget)||setTimeout((function(){return n.hourElement.select()}),50))},n.redraw=$,n.set=function(t,e){if(null!==t&&"object"===typeof t)for(var i in Object.assign(n.config,t),t)void 0!==tt[i]&&tt[i].forEach((function(t){return t()}));else n.config[t]=e,void 0!==tt[t]?tt[t].forEach((function(t){return t()})):r.a.indexOf(t)>-1&&(n.config[t]=Object(o.a)(e));n.redraw(),ut(!0)},n.setDate=function(t,e,r){void 0===e&&(e=!1);void 0===r&&(r=n.config.dateFormat);if(0!==t&&!t||t instanceof Array&&0===t.length)return n.clear(e);et(t,r),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),O(void 0,e),v(),0===n.selectedDates.length&&n.clear(!1);ut(e),e&&it("onChange")},n.toggle=function(t){if(!0===n.isOpen)return n.close();n.open(t)};var tt={locale:[J,I],showMonths:[R,m,L],minDate:[O],maxDate:[O],positionElement:[rt],clickOpens:[function(){!0===n.config.clickOpens?(k(n._input,"focus",n.open),k(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function et(t,e){var r=[];if(t instanceof Array)r=t.map((function(t){return n.parseDate(t,e)}));else if(t instanceof Date||"number"===typeof t)r=[n.parseDate(t,e)];else if("string"===typeof t)switch(n.config.mode){case"single":case"time":r=[n.parseDate(t,e)];break;case"multiple":r=t.split(n.config.conjunction).map((function(t){return n.parseDate(t,e)}));break;case"range":r=t.split(n.l10n.rangeSeparator).map((function(t){return n.parseDate(t,e)}))}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));n.selectedDates=n.config.allowInvalidPreload?r:r.filter((function(t){return t instanceof Date&&H(t,!1)})),"range"===n.config.mode&&n.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function nt(t){return t.slice().map((function(t){return"string"===typeof t||"number"===typeof t||t instanceof Date?n.parseDate(t,void 0,!0):t&&"object"===typeof t&&t.from&&t.to?{from:n.parseDate(t.from,void 0),to:n.parseDate(t.to,void 0)}:t})).filter((function(t){return t}))}function rt(){n._positionElement=n.config.positionElement||n._input}function it(t,e){if(void 0!==n.config){var r=n.config[t];if(void 0!==r&&r.length>0)for(var i=0;r[i]&&i<r.length;i++)r[i](n.selectedDates,n.input.value,n,e);"onChange"===t&&(n.input.dispatchEvent(ot("change")),n.input.dispatchEvent(ot("input")))}}function ot(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function at(t){for(var e=0;e<n.selectedDates.length;e++){var r=n.selectedDates[e];if(r instanceof Date&&0===Object(s.b)(r,t))return""+e}return!1}function st(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach((function(t,e){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+e),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[e].textContent=Object(l.b)(r.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=r.getMonth().toString(),t.value=r.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function lt(t){var e=t||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map((function(t){return n.formatDate(t,e)})).filter((function(t,e,r){return"range"!==n.config.mode||n.config.enableTime||r.indexOf(t)===e})).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function ut(t){void 0===t&&(t=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=lt(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=lt(n.config.altFormat)),!1!==t&&it("onValueUpdate")}function ct(t){var e=Object(a.e)(t),r=n.prevMonthNav.contains(e),i=n.nextMonthNav.contains(e);r||i?W(r?-1:1):n.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):e.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=t,n.isOpen=!1,function(){var i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],a=u(u({},JSON.parse(JSON.stringify(t.dataset||{}))),e),s={};n.config.parseDate=a.parseDate,n.config.formatDate=a.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(t){n.config._enable=nt(t)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(t){n.config._disable=nt(t)}});var l="time"===a.mode;if(!a.dateFormat&&(a.enableTime||l)){var c=p.defaultConfig.dateFormat||r.b.dateFormat;s.dateFormat=a.noCalendar||l?"H:i"+(a.enableSeconds?":S":""):c+" H:i"+(a.enableSeconds?":S":"")}if(a.altInput&&(a.enableTime||l)&&!a.altFormat){var d=p.defaultConfig.altFormat||r.b.altFormat;s.altFormat=a.noCalendar||l?"h:i"+(a.enableSeconds?":S K":" K"):d+" h:i"+(a.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:G("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:G("max")});var h=function(t){return function(e){n.config["min"===t?"_minTime":"_maxTime"]=n.parseDate(e,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:h("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:h("max")}),"time"===a.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,s,a);for(var m=0;m<i.length;m++)n.config[i[m]]=!0===n.config[i[m]]||"true"===n.config[i[m]];r.a.filter((function(t){return void 0!==n.config[t]})).forEach((function(t){n.config[t]=Object(o.a)(n.config[t]||[]).map(f)})),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(m=0;m<n.config.plugins.length;m++){var g=n.config.plugins[m](n)||{};for(var b in g)r.a.indexOf(b)>-1?n.config[b]=Object(o.a)(g[b]).map(f).concat(n.config[b]):"undefined"===typeof a[b]&&(n.config[b]=g[b])}a.altInputClass||(n.config.altInputClass=X().className+" "+n.config.altInputClass);it("onParseConfig")}(),J(),function(){if(n.input=X(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=Object(a.b)(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");rt()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var t=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);t&&et(t,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=n.currentMonth),void 0===e&&(e=n.currentYear),1===t&&(e%4===0&&e%100!==0||e%400===0)?29:n.l10n.daysInMonth[t]}},n.isMobile||function(){var t=window.document.createDocumentFragment();if(n.calendarContainer=Object(a.b)("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(t.appendChild((n.monthNav=Object(a.b)("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=Object(a.b)("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=Object(a.b)("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,R(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(t){n.__hidePrevMonthArrow!==t&&(Object(a.f)(n.prevMonthNav,"flatpickr-disabled",t),n.__hidePrevMonthArrow=t)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(t){n.__hideNextMonthArrow!==t&&(Object(a.f)(n.nextMonthNav,"flatpickr-disabled",t),n.__hideNextMonthArrow=t)}}),n.currentYearElement=n.yearElements[0],st(),n.monthNav)),n.innerContainer=Object(a.b)("div","flatpickr-innerContainer"),n.config.weekNumbers){var e=function(){n.calendarContainer.classList.add("hasWeeks");var t=Object(a.b)("div","flatpickr-weekwrapper");t.appendChild(Object(a.b)("span","flatpickr-weekday",n.l10n.weekAbbreviation));var e=Object(a.b)("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}(),r=e.weekWrapper,i=e.weekNumbers;n.innerContainer.appendChild(r),n.weekNumbers=i,n.weekWrapper=r}n.rContainer=Object(a.b)("div","flatpickr-rContainer"),n.rContainer.appendChild(L()),n.daysContainer||(n.daysContainer=Object(a.b)("div","flatpickr-days"),n.daysContainer.tabIndex=-1),M(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),t.appendChild(n.innerContainer)}n.config.enableTime&&t.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var t=Object(s.f)(n.config);n.timeContainer=Object(a.b)("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var e=Object(a.b)("span","flatpickr-time-separator",":"),r=Object(a.c)("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=r.getElementsByTagName("input")[0];var i=Object(a.c)("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=i.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=Object(o.d)(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),n.minuteElement.value=Object(o.d)(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():t.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(r),n.timeContainer.appendChild(e),n.timeContainer.appendChild(i),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var l=Object(a.c)("flatpickr-second");n.secondElement=l.getElementsByTagName("input")[0],n.secondElement.value=Object(o.d)(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():t.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(Object(a.b)("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(l)}n.config.time_24hr||(n.amPM=Object(a.b)("span","flatpickr-am-pm",n.l10n.amPM[Object(o.c)((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());Object(a.f)(n.calendarContainer,"rangeMode","range"===n.config.mode),Object(a.f)(n.calendarContainer,"animate",!0===n.config.animate),Object(a.f)(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(t);var l=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!l&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var u=Object(a.b)("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(u,n.element),u.appendChild(n.element),n.altInput&&u.appendChild(n.altInput),u.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+t+"]"),(function(e){return k(e,"click",n[t])}))}));if(n.isMobile)return void function(){var t=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=Object(a.b)("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=t,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}k(n.mobileInput,"change",(function(t){n.setDate(Object(a.e)(t).value,!1,n.mobileFormatStr),it("onChange"),it("onClose")}))}();var t=Object(o.b)(U,50);n._debouncedChange=Object(o.b)(_,d),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&k(n.daysContainer,"mouseover",(function(t){"range"===n.config.mode&&Y(Object(a.e)(t))}));k(n._input,"keydown",q),void 0!==n.calendarContainer&&k(n.calendarContainer,"keydown",q);n.config.inline||n.config.static||k(window,"resize",t);void 0!==window.ontouchstart?k(window.document,"touchstart",N):k(window.document,"mousedown",N);k(window.document,"focus",N,{capture:!0}),!0===n.config.clickOpens&&(k(n._input,"focus",n.open),k(n._input,"click",n.open));void 0!==n.daysContainer&&(k(n.monthNav,"click",ct),k(n.monthNav,["keyup","increment"],w),k(n.daysContainer,"click",Z));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var e=function(t){return Object(a.e)(t).select()};k(n.timeContainer,["increment"],g),k(n.timeContainer,"blur",g,{capture:!0}),k(n.timeContainer,"click",x),k([n.hourElement,n.minuteElement],["focus","click"],e),void 0!==n.secondElement&&k(n.secondElement,"focus",(function(){return n.secondElement&&n.secondElement.select()})),void 0!==n.amPM&&k(n.amPM,"click",(function(t){g(t)}))}n.config.allowInput&&k(n._input,"blur",V)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&v(n.config.noCalendar?n.latestSelectedDateObj:void 0),ut(!1)),m();var i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&i&&K(),it("onReady")}(),n}function f(t,e){for(var n=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement})),r=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=h(o,e||{}),r.push(o._flatpickr)}catch(a){console.error(a)}}return 1===r.length?r[0]:r}"undefined"!==typeof HTMLElement&&"undefined"!==typeof HTMLCollection&&"undefined"!==typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return f(this,t)},HTMLElement.prototype.flatpickr=function(t){return f([this],t)});var p=function(t,e){return"string"===typeof t?f(window.document.querySelectorAll(t),e):t instanceof Node?f([t],e):f(t,e)};p.defaultConfig={},p.l10ns={en:u({},i.a),default:u({},i.a)},p.localize=function(t){p.l10ns.default=u(u({},p.l10ns.default),t)},p.setDefaults=function(t){p.defaultConfig=u(u({},p.defaultConfig),t)},p.parseDate=Object(s.d)({}),p.formatDate=Object(s.c)({}),p.compareDates=s.b,"undefined"!==typeof t&&"undefined"!==typeof t.fn&&(t.fn.flatpickr=function(t){return f(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"===typeof t?parseInt(t,10):t))},"undefined"!==typeof window&&(window.flatpickr=p),e.a=p}).call(this,n(4))},function(t,e,n){t.exports=function(){"use strict";function t(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function e(e){return void 0===e&&(e={}),function(n){var r,i,o,a="",s=function(){if(e.input){if(!(r=e.input instanceof Element?e.input:window.document.querySelector(e.input)))return void n.config.errorHandler(new Error("Invalid input element specified"));n.config.wrap&&(r=r.querySelector("[data-input]"))}else(r=n._input.cloneNode()).removeAttribute("id"),r._flatpickr=void 0;if(r.value){var t=n.parseDate(r.value);t&&n.selectedDates.push(t)}r.setAttribute("data-fp-omit",""),n.config.clickOpens&&(n._bind(r,["focus","click"],(function(){n.selectedDates[1]&&(n.latestSelectedDateObj=n.selectedDates[1],n._setHoursFromDate(n.selectedDates[1]),n.jumpToDate(n.selectedDates[1])),i=!0,n.isOpen=!1,n.open(void 0,"left"===e.position?n._input:r)})),n._bind(n._input,["focus","click"],(function(t){t.preventDefault(),n.isOpen=!1,n.open()}))),n.config.allowInput&&n._bind(r,"keydown",(function(t){"Enter"===t.key&&(n.setDate([n.selectedDates[0],r.value],!0,a),r.click())})),e.input||n._input.parentNode&&n._input.parentNode.insertBefore(r,n._input.nextSibling)},l={onParseConfig:function(){n.config.mode="range",a=n.config.altInput?n.config.altFormat:n.config.dateFormat},onReady:function(){s(),n.config.ignoredFocusElements.push(r),n.config.allowInput?(n._input.removeAttribute("readonly"),r.removeAttribute("readonly")):r.setAttribute("readonly","readonly"),n._bind(n._input,"focus",(function(){n.latestSelectedDateObj=n.selectedDates[0],n._setHoursFromDate(n.selectedDates[0]),i=!1,n.jumpToDate(n.selectedDates[0])})),n.config.allowInput&&n._bind(n._input,"keydown",(function(t){"Enter"===t.key&&n.setDate([n._input.value,n.selectedDates[1]],!0,a)})),n.setDate(n.selectedDates,!1),l.onValueUpdate(n.selectedDates),n.loadedPlugins.push("range")},onPreCalendarPosition:function(){i&&(n._positionElement=r,setTimeout((function(){n._positionElement=n._input}),0))},onChange:function(){n.selectedDates.length||setTimeout((function(){n.selectedDates.length||(r.value="",o=[])}),10),i&&setTimeout((function(){r.focus()}),0)},onDestroy:function(){e.input||r.parentNode&&r.parentNode.removeChild(r)},onValueUpdate:function(e){var s,l,u;if(r){if((o=!o||e.length>=o.length?t(e):o).length>e.length){var c=e[0],d=i?[o[0],c]:[c,o[1]];d[0].getTime()>d[1].getTime()&&(i?d[0]=d[1]:d[1]=d[0]),n.setDate(d,!1),o=t(d)}l=(s=n.selectedDates.map((function(t){return n.formatDate(t,a)})))[0],n._input.value=void 0===l?"":l,u=s[1],r.value=void 0===u?"":u}}};return l}}return e}()},function(t,e,n){!function(t){"use strict";var e="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","f\xe9vr","mars","avr","mai","juin","juil","ao\xfbt","sept","oct","nov","d\xe9c"],longhand:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},ordinal:function(t){return t>1?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"D\xe9filer pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};e.l10ns.fr=n;var r=e.l10ns;t.French=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){!function(t){"use strict";var e="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum \xc4ndern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};e.l10ns.de=n;var r=e.l10ns;t.German=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){!function(t){"use strict";var e="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Dom","Lun","Mar","Mi\xe9","Jue","Vie","S\xe1b"],longhand:["Domingo","Lunes","Martes","Mi\xe9rcoles","Jueves","Viernes","S\xe1bado"]},months:{shorthand:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],longhand:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},ordinal:function(){return"\xba"},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};e.l10ns.es=n;var r=e.l10ns;t.Spanish=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){!function(t){"use strict";var e="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["zo","ma","di","wo","do","vr","za"],longhand:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},months:{shorthand:["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],longhand:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},firstDayOfWeek:1,weekAbbreviation:"wk",rangeSeparator:" t/m ",scrollTitle:"Scroll voor volgende / vorige",toggleTitle:"Klik om te wisselen",time_24hr:!0,ordinal:function(t){return 1===t||8===t||t>=20?"ste":"de"}};e.l10ns.nl=n;var r=e.l10ns;t.Dutch=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){!function(t){"use strict";var e="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],longhand:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"]},months:{shorthand:["1","2","3","4","5","6","7","8","9","10","11","12"],longhand:["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"]},firstDayOfWeek:6,rangeSeparator:" \u0625\u0644\u0649 ",weekAbbreviation:"Wk",scrollTitle:"\u0642\u0645 \u0628\u0627\u0644\u062a\u0645\u0631\u064a\u0631 \u0644\u0644\u0632\u064a\u0627\u062f\u0629",toggleTitle:"\u0627\u0636\u063a\u0637 \u0644\u0644\u062a\u0628\u062f\u064a\u0644",amPM:["\u0635","\u0645"],yearAriaLabel:"\u0633\u0646\u0629",monthAriaLabel:"\u0634\u0647\u0631",hourAriaLabel:"\u0633\u0627\u0639\u0629",minuteAriaLabel:"\u062f\u0642\u064a\u0642\u0629",time_24hr:!1};e.l10ns.ar=n;var r=e.l10ns;t.Arabic=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){!function(t){"use strict";var e="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Ne","Po","\xdat","St","\u010ct","P\xe1","So"],longhand:["Ned\u011ble","Pond\u011bl\xed","\xdater\xfd","St\u0159eda","\u010ctvrtek","P\xe1tek","Sobota"]},months:{shorthand:["Led","\xdan","B\u0159e","Dub","Kv\u011b","\u010cer","\u010cvc","Srp","Z\xe1\u0159","\u0158\xedj","Lis","Pro"],longhand:["Leden","\xdanor","B\u0159ezen","Duben","Kv\u011bten","\u010cerven","\u010cervenec","Srpen","Z\xe1\u0159\xed","\u0158\xedjen","Listopad","Prosinec"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" do ",weekAbbreviation:"T\xfdd.",scrollTitle:"Rolujte pro zm\u011bnu",toggleTitle:"P\u0159epnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok",time_24hr:!0};e.l10ns.cs=n;var r=e.l10ns;t.Czech=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){!function(t){"use strict";var e="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b"],longhand:["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" at\xe9 ",time_24hr:!0};e.l10ns.pt=n;var r=e.l10ns;t.Portuguese=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){!function(t){"use strict";var e="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Ned","Pon","Ut","Str","\u0160tv","Pia","Sob"],longhand:["Nede\u013ea","Pondelok","Utorok","Streda","\u0160tvrtok","Piatok","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","M\xe1j","J\xfan","J\xfal","Aug","Sep","Okt","Nov","Dec"],longhand:["Janu\xe1r","Febru\xe1r","Marec","Apr\xedl","M\xe1j","J\xfan","J\xfal","August","September","Okt\xf3ber","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};e.l10ns.sk=n;var r=e.l10ns;t.Slovak=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){!function(t){"use strict";var e="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],longhand:["Domenica","Luned\xec","Marted\xec","Mercoled\xec","Gioved\xec","Venerd\xec","Sabato"]},months:{shorthand:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],longhand:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},firstDayOfWeek:1,ordinal:function(){return"\xb0"},rangeSeparator:" al ",weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare",time_24hr:!0};e.l10ns.it=n;var r=e.l10ns;t.Italian=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){!function(t){"use strict";var e="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Nd","Pn","Wt","\u015ar","Cz","Pt","So"],longhand:["Niedziela","Poniedzia\u0142ek","Wtorek","\u015aroda","Czwartek","Pi\u0105tek","Sobota"]},months:{shorthand:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Pa\u017a","Lis","Gru"],longhand:["Stycze\u0144","Luty","Marzec","Kwiecie\u0144","Maj","Czerwiec","Lipiec","Sierpie\u0144","Wrzesie\u0144","Pa\u017adziernik","Listopad","Grudzie\u0144"]},rangeSeparator:" do ",weekAbbreviation:"tydz.",scrollTitle:"Przewi\u0144, aby zwi\u0119kszy\u0107",toggleTitle:"Kliknij, aby prze\u0142\u0105czy\u0107",firstDayOfWeek:1,time_24hr:!0,ordinal:function(){return"."}};e.l10ns.pl=n;var r=e.l10ns;t.Polish=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},,function(t,e,n){"use strict";var r=n(15);r.d.register(...r.i),e.a=r.d},function(t,e,n){(function(e){var n;t.exports=function(){function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return i(e[a][1][t]||t)}),u,u.exports,t,e,n,r)}return n[a].exports}for(var o=!1,a=0;a<r.length;a++)i(r[a]);return i}return t}()({1:[function(t,n,r){(function(t){(function(){var e=200,i="__lodash_hash_undefined__",o=800,a=16,s=9007199254740991,l="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",v="[object Null]",y="[object Object]",w="[object Proxy]",k="[object RegExp]",_="[object Set]",O="[object String]",x="[object Undefined]",E="[object WeakMap]",j="[object ArrayBuffer]",S="[object DataView]",P="[object Float64Array]",C="[object Int8Array]",T="[object Int16Array]",M="[object Int32Array]",A="[object Uint8Array]",D="[object Uint8ClampedArray]",R="[object Uint16Array]",L="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N[P]=N[C]=N[T]=N[M]=N[A]=N[D]=N[R]=N[L]=!0,N[l]=N[u]=N[j]=N[d]=N[S]=N[h]=N[f]=N[p]=N[g]=N[b]=N[y]=N[k]=N[_]=N[O]=N[E]=!1;var F="object"==typeof t&&t&&t.Object===Object&&t,H="object"==typeof self&&self&&self.Object===Object&&self,B=F||H||Function("return this")(),V="object"==typeof r&&r&&!r.nodeType&&r,q=V&&"object"==typeof n&&n&&!n.nodeType&&n,Y=q&&q.exports===V,U=Y&&F.process,G=function(){try{var t=q&&q.require&&q.require("util").types;return t||U&&U.binding&&U.binding("util")}catch(e){}}(),X=G&&G.isTypedArray;function J(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function K(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function $(t){return function(e){return t(e)}}function Q(t,e){return null==t?void 0:t[e]}function Z(t,e){return function(n){return t(e(n))}}var tt,et=Array.prototype,nt=Function.prototype,rt=Object.prototype,it=B["__core-js_shared__"],ot=nt.toString,at=rt.hasOwnProperty,st=(tt=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||""))?"Symbol(src)_1."+tt:"",lt=rt.toString,ut=ot.call(Object),ct=RegExp("^"+ot.call(at).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=Y?B.Buffer:void 0,ht=B.Symbol,ft=B.Uint8Array,pt=dt?dt.allocUnsafe:void 0,mt=Z(Object.getPrototypeOf,Object),gt=Object.create,bt=rt.propertyIsEnumerable,vt=et.splice,yt=ht?ht.toStringTag:void 0,wt=function(){try{var t=ye(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),kt=dt?dt.isBuffer:void 0,_t=Math.max,Ot=Date.now,xt=ye(B,"Map"),Et=ye(Object,"create"),jt=function(){function t(){}return function(e){if(!Be(e))return{};if(gt)return gt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function St(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pt(){this.__data__=Et?Et(null):{},this.size=0}function Ct(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Tt(t){var e=this.__data__;if(Et){var n=e[t];return n===i?void 0:n}return at.call(e,t)?e[t]:void 0}function Mt(t){var e=this.__data__;return Et?void 0!==e[t]:at.call(e,t)}function At(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Et&&void 0===e?i:e,this}function Dt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Rt(){this.__data__=[],this.size=0}function Lt(t){var e=this.__data__,n=te(e,t);return!(n<0)&&(n==e.length-1?e.pop():vt.call(e,n,1),--this.size,!0)}function It(t){var e=this.__data__,n=te(e,t);return n<0?void 0:e[n][1]}function Wt(t){return te(this.__data__,t)>-1}function zt(t,e){var n=this.__data__,r=te(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ft(){this.size=0,this.__data__={hash:new St,map:new(xt||Dt),string:new St}}function Ht(t){var e=ve(this,t).delete(t);return this.size-=e?1:0,e}function Bt(t){return ve(this,t).get(t)}function Vt(t){return ve(this,t).has(t)}function qt(t,e){var n=ve(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Yt(t){var e=this.__data__=new Dt(t);this.size=e.size}function Ut(){this.__data__=new Dt,this.size=0}function Gt(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Xt(t){return this.__data__.get(t)}function Jt(t){return this.__data__.has(t)}function Kt(t,n){var r=this.__data__;if(r instanceof Dt){var i=r.__data__;if(!xt||i.length<e-1)return i.push([t,n]),this.size=++r.size,this;r=this.__data__=new Nt(i)}return r.set(t,n),this.size=r.size,this}function $t(t,e){var n=Ie(t),r=!n&&Le(t),i=!n&&!r&&Ne(t),o=!n&&!r&&!i&&Ye(t),a=n||r||i||o,s=a?K(t.length,String):[],l=s.length;for(var u in t)!e&&!at.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||_e(u,l))||s.push(u);return s}function Qt(t,e,n){(void 0!==n&&!Re(t[e],n)||void 0===n&&!(e in t))&&ee(t,e,n)}function Zt(t,e,n){var r=t[e];at.call(t,e)&&Re(r,n)&&(void 0!==n||e in t)||ee(t,e,n)}function te(t,e){for(var n=t.length;n--;)if(Re(t[n][0],e))return n;return-1}function ee(t,e,n){"__proto__"==e&&wt?wt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}St.prototype.clear=Pt,St.prototype.delete=Ct,St.prototype.get=Tt,St.prototype.has=Mt,St.prototype.set=At,Dt.prototype.clear=Rt,Dt.prototype.delete=Lt,Dt.prototype.get=It,Dt.prototype.has=Wt,Dt.prototype.set=zt,Nt.prototype.clear=Ft,Nt.prototype.delete=Ht,Nt.prototype.get=Bt,Nt.prototype.has=Vt,Nt.prototype.set=qt,Yt.prototype.clear=Ut,Yt.prototype.delete=Gt,Yt.prototype.get=Xt,Yt.prototype.has=Jt,Yt.prototype.set=Kt;var ne=be();function re(t){return null==t?void 0===t?x:v:yt&&yt in Object(t)?we(t):Pe(t)}function ie(t){return Ve(t)&&re(t)==l}function oe(t){return!(!Be(t)||Ee(t))&&(Fe(t)?ct:W).test(De(t))}function ae(t){return Ve(t)&&He(t.length)&&!!N[re(t)]}function se(t){if(!Be(t))return Se(t);var e=je(t),n=[];for(var r in t)("constructor"!=r||!e&&at.call(t,r))&&n.push(r);return n}function le(t,e,n,r,i){t!==e&&ne(e,(function(o,a){if(i||(i=new Yt),Be(o))ue(t,e,a,n,le,r,i);else{var s=r?r(Te(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Qt(t,a,s)}}),Ge)}function ue(t,e,n,r,i,o,a){var s=Te(t,n),l=Te(e,n),u=a.get(l);if(u)Qt(t,n,u);else{var c=o?o(s,l,n+"",t,e,a):void 0,d=void 0===c;if(d){var h=Ie(l),f=!h&&Ne(l),p=!h&&!f&&Ye(l);c=l,h||f||p?Ie(s)?c=s:ze(s)?c=pe(s):f?(d=!1,c=de(l,!0)):p?(d=!1,c=fe(l,!0)):c=[]:qe(l)||Le(l)?(c=s,Le(s)?c=Ue(s):Be(s)&&!Fe(s)||(c=ke(l))):d=!1}d&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),Qt(t,n,c)}}function ce(t,e){return Me(Ce(t,e,Ke),t+"")}function de(t,e){if(e)return t.slice();var n=t.length,r=pt?pt(n):new t.constructor(n);return t.copy(r),r}function he(t){var e=new t.constructor(t.byteLength);return new ft(e).set(new ft(t)),e}function fe(t,e){var n=e?he(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function pe(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function me(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),i?ee(n,s,l):Zt(n,s,l)}return n}function ge(t){return ce((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&Oe(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))}function be(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}function ve(t,e){var n=t.__data__;return xe(e)?n["string"==typeof e?"string":"hash"]:n.map}function ye(t,e){var n=Q(t,e);return oe(n)?n:void 0}function we(t){var e=at.call(t,yt),n=t[yt];try{t[yt]=void 0;var r=!0}catch(o){}var i=lt.call(t);return r&&(e?t[yt]=n:delete t[yt]),i}function ke(t){return"function"!=typeof t.constructor||je(t)?{}:jt(mt(t))}function _e(t,e){var n=typeof t;return!!(e=null==e?s:e)&&("number"==n||"symbol"!=n&&z.test(t))&&t>-1&&t%1==0&&t<e}function Oe(t,e,n){if(!Be(n))return!1;var r=typeof e;return!!("number"==r?We(n)&&_e(e,n.length):"string"==r&&e in n)&&Re(n[e],t)}function xe(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Ee(t){return!!st&&st in t}function je(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||rt)}function Se(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}function Pe(t){return lt.call(t)}function Ce(t,e,n){return e=_t(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=_t(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),J(t,this,s)}}function Te(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Me=Ae(wt?function(t,e){return wt(t,"toString",{configurable:!0,enumerable:!1,value:Je(e),writable:!0})}:Ke);function Ae(t){var e=0,n=0;return function(){var r=Ot(),i=a-(r-n);if(n=r,i>0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function De(t){if(null!=t){try{return ot.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Re(t,e){return t===e||t!==t&&e!==e}var Le=ie(function(){return arguments}())?ie:function(t){return Ve(t)&&at.call(t,"callee")&&!bt.call(t,"callee")},Ie=Array.isArray;function We(t){return null!=t&&He(t.length)&&!Fe(t)}function ze(t){return Ve(t)&&We(t)}var Ne=kt||$e;function Fe(t){if(!Be(t))return!1;var e=re(t);return e==p||e==m||e==c||e==w}function He(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function Be(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ve(t){return null!=t&&"object"==typeof t}function qe(t){if(!Ve(t)||re(t)!=y)return!1;var e=mt(t);if(null===e)return!0;var n=at.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ot.call(n)==ut}var Ye=X?$(X):ae;function Ue(t){return me(t,Ge(t))}function Ge(t){return We(t)?$t(t,!0):se(t)}var Xe=ge((function(t,e,n){le(t,e,n)}));function Je(t){return function(){return t}}function Ke(t){return t}function $e(){return!1}n.exports=Xe}).call(this)}).call(this,"undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],2:[function(t,e,r){var i,o;i=self,o=function(){return function(){"use strict";var t={720:function(t,e,n){n.r(e),n.d(e,{Scene:function(){return se},Tweenable:function(){return Et},interpolate:function(){return ee},processTweens:function(){return bt},setBezierFunction:function(){return V},shouldScheduleUpdate:function(){return wt},tween:function(){return jt},unsetBezierFunction:function(){return q}});var r={};n.r(r),n.d(r,{bounce:function(){return L},bouncePast:function(){return I},easeFrom:function(){return z},easeFromTo:function(){return W},easeInBack:function(){return P},easeInCirc:function(){return x},easeInCubic:function(){return u},easeInExpo:function(){return k},easeInOutBack:function(){return T},easeInOutCirc:function(){return j},easeInOutCubic:function(){return d},easeInOutExpo:function(){return O},easeInOutQuad:function(){return l},easeInOutQuart:function(){return p},easeInOutQuint:function(){return b},easeInOutSine:function(){return w},easeInQuad:function(){return a},easeInQuart:function(){return h},easeInQuint:function(){return m},easeInSine:function(){return v},easeOutBack:function(){return C},easeOutBounce:function(){return S},easeOutCirc:function(){return E},easeOutCubic:function(){return c},easeOutExpo:function(){return _},easeOutQuad:function(){return s},easeOutQuart:function(){return f},easeOutQuint:function(){return g},easeOutSine:function(){return y},easeTo:function(){return N},elastic:function(){return M},linear:function(){return o},swingFrom:function(){return D},swingFromTo:function(){return A},swingTo:function(){return R}});var i={};n.r(i),n.d(i,{afterTween:function(){return Jt},beforeTween:function(){return Xt},doesApply:function(){return Ut},tweenCreated:function(){return Gt}});var o=function(t){return t},a=function(t){return Math.pow(t,2)},s=function(t){return-(Math.pow(t-1,2)-1)},l=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},u=function(t){return Math.pow(t,3)},c=function(t){return Math.pow(t-1,3)+1},d=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},h=function(t){return Math.pow(t,4)},f=function(t){return-(Math.pow(t-1,4)-1)},p=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},m=function(t){return Math.pow(t,5)},g=function(t){return Math.pow(t-1,5)+1},b=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},v=function(t){return 1-Math.cos(t*(Math.PI/2))},y=function(t){return Math.sin(t*(Math.PI/2))},w=function(t){return-.5*(Math.cos(Math.PI*t)-1)},k=function(t){return 0===t?0:Math.pow(2,10*(t-1))},_=function(t){return 1===t?1:1-Math.pow(2,-10*t)},O=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},x=function(t){return-(Math.sqrt(1-t*t)-1)},E=function(t){return Math.sqrt(1-Math.pow(t-1,2))},j=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},S=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},P=function(t){var e=1.70158;return t*t*((e+1)*t-e)},C=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},T=function(t){var 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)},M=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},A=function(t){var 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)},D=function(t){var e=1.70158;return t*t*((e+1)*t-e)},R=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},L=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},I=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},W=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},z=function(t){return Math.pow(t,4)},N=function(t){return Math.pow(t,.25)};function F(t,e,n,r,i,o){var a,s,l,u,c,d=0,h=0,f=0,p=function(t){return((d*t+h)*t+f)*t},m=function(t){return(3*d*t+2*h)*t+f},g=function(t){return t>=0?t:0-t};return d=1-(f=3*e)-(h=3*(r-e)-f),l=1-(c=3*n)-(u=3*(i-n)-c),a=t,s=function(t){return 1/(200*t)}(o),function(t){return((l*t+u)*t+c)*t}(function(t,e){var n,r,i,o,a,s;for(i=t,s=0;s<8;s++){if(o=p(i)-t,g(o)<e)return i;if(a=m(i),g(a)<1e-6)break;i-=o/a}if((i=t)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=p(i),g(o-t)<e)return i;t>o?n=i:r=i,i=.5*(r-n)+n}return i}(a,s))}var H,B=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(i){return F(i,t,e,n,r,1)}},V=function(t,e,n,r,i){var o=B(e,n,r,i);return o.displayName=t,o.x1=e,o.y1=n,o.x2=r,o.y2=i,Et.formulas[t]=o},q=function(t){return delete Et.formulas[t]};function Y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function X(t){return function(t){if(Array.isArray(t))return J(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return J(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function K(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach((function(e){Q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Z,tt,et,nt="linear",rt="undefined"!=typeof window?window:n.g,it="afterTween",ot="afterTweenEnd",at="beforeTween",st="tweenCreated",lt="function",ut="string",ct=rt.requestAnimationFrame||rt.webkitRequestAnimationFrame||rt.oRequestAnimationFrame||rt.msRequestAnimationFrame||rt.mozCancelRequestAnimationFrame&&rt.mozRequestAnimationFrame||setTimeout,dt=function(){},ht=null,ft=null,pt=$({},r),mt=function(t,e,n,r,i,o,a){var s,l,u,c=t<o?0:(t-o)/i,d=!1;for(var h in a&&a.call&&(d=!0,s=a(c)),e)d||(s=((l=a[h]).call?l:pt[l])(c)),u=n[h],e[h]=u+(r[h]-u)*s;return e},gt=function(t,e){var n=t._timestamp,r=t._currentState,i=t._delay;if(!(e<n+i)){var o=t._duration,a=t._targetState,s=n+i+o,l=e>s?s:e;t._hasEnded=l>=s;var u=o-(s-l),c=t._filters.length>0;if(t._hasEnded)return t._render(a,t._data,u),t.stop(!0);c&&t._applyFilter(at),l<n+i?n=o=l=1:n+=i,mt(l,r,t._originalState,a,o,n,t._easing),c&&t._applyFilter(it),t._render(r,t._data,u)}},bt=function(){for(var t,e=Et.now(),n=ht;n;)t=n._next,gt(n,e),n=t},vt=Date.now||function(){return+new Date},yt=!1,wt=function(t){t&&yt||(yt=t,t&&kt())},kt=function t(){Z=vt(),yt&&ct.call(rt,t,16.666666666666668),bt()},_t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e))return B.apply(void 0,X(e));var r=G(e);if(pt[e])return pt[e];if(r===ut||r===lt)for(var i in t)n[i]=e;else for(var o in t)n[o]=e[o]||nt;return n},Ot=function(t){t===ht?(ht=t._next)?ht._previous=null:ft=null:t===ft?(ft=t._previous)?ft._next=null:ht=null:(tt=t._previous,et=t._next,tt._next=et,et._previous=tt),t._previous=t._next=null},xt="function"==typeof Promise?Promise:null;H=Symbol.toStringTag;var Et=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;Y(this,t),Q(this,H,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=e||{},this._originalState={},this._targetState={},this._start=dt,this._render=dt,this._promiseCtor=xt,n&&this.setConfig(n)}var e;return e=[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var n=this._filters[e-e][t];n&&n(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._config;for(var r in e)n[r]=e[r];var i=n.promise,o=void 0===i?this._promiseCtor:i,a=n.start,s=void 0===a?dt:a,l=n.finish,u=n.render,c=void 0===u?this._config.step||dt:u,d=n.step,h=void 0===d?dt:d;this._data=n.data||n.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=s,this._render=c||h,this._duration=n.duration||500,this._promiseCtor=o,l&&(this._resolve=l);var f=e.from,p=e.to,m=void 0===p?{}:p,g=this._currentState,b=this._originalState,v=this._targetState;for(var y in f)g[y]=f[y];var w=!1;for(var k in g){var _=g[k];w||G(_)!==ut||(w=!0),b[k]=_,v[k]=m.hasOwnProperty(k)?m[k]:_}if(this._easing=_t(this._currentState,n.easing,this._easing),this._filters.length=0,w){for(var O in t.filters)t.filters[O].doesApply(this)&&this._filters.push(t.filters[O]);this._applyFilter(st)}return this}},{key:"then",value:function(t,e){var n=this;return this._promise=new this._promiseCtor((function(t,e){n._resolve=t,n._reject=e})),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return $({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,Ot(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===ht?(ht=this,ft=this):(this._previous=ft,ft._next=this,ft=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var n=t.now();return this._timestamp+e===0||(this._timestamp=n-e,gt(this,n)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,Ot(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(at),mt(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(it),this._applyFilter(ot))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,n=this._data;return this._isPlaying?(this._reject&&this._reject({data:n,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=$({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}],e&&U(t.prototype,e),t}();function jt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new Et;return e.tween(t),e.tweenable=e,e}Q(Et,"now",(function(){return Z})),Q(Et,"setScheduleFunction",(function(t){return ct=t})),Q(Et,"filters",{}),Q(Et,"formulas",pt),wt(!0);var St,Pt,Ct=/(\d|-|\.)/,Tt=/([^\-0-9.]+)/g,Mt=/[0-9.-]+/g,At=(St=Mt.source,Pt=/,\s*/.source,new RegExp("rgba?\\(".concat(St).concat(Pt).concat(St).concat(Pt).concat(St,"(").concat(Pt).concat(St,")?\\)"),"g")),Dt=/^.*\(/,Rt=/#([0-9]|[a-f]){3,6}/gi,Lt="VAL",It=function(t,e){return t.map((function(t,n){return"_".concat(e,"_").concat(n)}))};function Wt(t){return parseInt(t,16)}var zt=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[Wt(e.substr(0,2)),Wt(e.substr(2,2)),Wt(e.substr(4,2))]).join(","),")");var e},Nt=function(t,e,n){var r=e.match(t),i=e.replace(t,Lt);return r&&r.forEach((function(t){return i=i.replace(Lt,n(t))})),i},Ft=function(t){for(var e in t){var n=t[e];"string"==typeof n&&n.match(Rt)&&(t[e]=Nt(Rt,n,zt))}},Ht=function(t){var e=t.match(Mt),n=e.slice(0,3).map(Math.floor),r=t.match(Dt)[0];if(3===e.length)return"".concat(r).concat(n.join(","),")");if(4===e.length)return"".concat(r).concat(n.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},Bt=function(t){return t.match(Mt)},Vt=function(t,e){var n={};return e.forEach((function(e){n[e]=t[e],delete t[e]})),n},qt=function(t,e){return e.map((function(e){return t[e]}))},Yt=function(t,e){return e.forEach((function(e){return t=t.replace(Lt,+e.toFixed(4))})),t},Ut=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Gt(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Ft),t._tokenData=function(t){var e,n,r={};for(var i in t){var o=t[i];"string"==typeof o&&(r[i]={formatString:(e=o,n=void 0,n=e.match(Tt),n?(1===n.length||e.charAt(0).match(Ct))&&n.unshift(""):n=["",""],n.join(Lt)),chunkNames:It(Bt(o),i)})}return r}(e)}function Xt(t){var e=t._currentState,n=t._originalState,r=t._targetState,i=t._easing,o=t._tokenData;!function(t,e){var n=function(n){var r=e[n].chunkNames,i=t[n];if("string"==typeof i){var o=i.split(" "),a=o[o.length-1];r.forEach((function(e,n){return t[e]=o[n]||a}))}else r.forEach((function(e){return t[e]=i}));delete t[n]};for(var r in e)n(r)}(i,o),[e,n,r].forEach((function(t){return function(t,e){var n=function(n){Bt(t[n]).forEach((function(r,i){return t[e[n].chunkNames[i]]=+r})),delete t[n]};for(var r in e)n(r)}(t,o)}))}function Jt(t){var e=t._currentState,n=t._originalState,r=t._targetState,i=t._easing,o=t._tokenData;[e,n,r].forEach((function(t){return function(t,e){for(var n in e){var r=e[n],i=r.chunkNames,o=r.formatString,a=Yt(o,qt(Vt(t,i),i));t[n]=Nt(At,a,Ht)}}(t,o)})),function(t,e){for(var n in e){var r=e[n].chunkNames,i=t[r[0]];t[n]="string"==typeof i?r.map((function(e){var n=t[e];return delete t[e],n})).join(" "):i}}(i,o)}function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(n),!0).forEach((function(e){Qt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zt=new Et,te=Et.filters,ee=function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=$t({},t),a=_t(t,r);for(var s in Zt._filters.length=0,Zt.set({}),Zt._currentState=o,Zt._originalState=t,Zt._targetState=e,Zt._easing=a,te)te[s].doesApply(Zt)&&Zt._filters.push(te[s]);Zt._applyFilter("tweenCreated"),Zt._applyFilter("beforeTween");var l=mt(n,o,t,e,1,i,a);return Zt._applyFilter("afterTween"),l};function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oe(t,e){var n=e.get(t);if(!n)throw new TypeError("attempted to get private field on non-instance");return n.get?n.get.call(t):n.value}var ae=new WeakMap,se=function(){function t(){re(this,t),ae.set(this,{writable:!0,value:[]});for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(this.add.bind(this))}var e;return(e=[{key:"add",value:function(t){return oe(this,ae).push(t),t}},{key:"remove",value:function(t){var e=oe(this,ae).indexOf(t);return~e&&oe(this,ae).splice(e,1),t}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return oe(this,ae).some((function(t){return t.isPlaying()}))}},{key:"play",value:function(){return oe(this,ae).forEach((function(t){return t.tween()})),this}},{key:"pause",value:function(){return oe(this,ae).forEach((function(t){return t.pause()})),this}},{key:"resume",value:function(){return this.playingTweenables.forEach((function(t){return t.resume()})),this}},{key:"stop",value:function(t){return oe(this,ae).forEach((function(e){return e.stop(t)})),this}},{key:"tweenables",get:function(){return function(t){if(Array.isArray(t))return ne(t)}(t=oe(this,ae))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var t}},{key:"playingTweenables",get:function(){return oe(this,ae).filter((function(t){return!t.hasEnded()}))}},{key:"promises",get:function(){return oe(this,ae).map((function(t){return t.then()}))}}])&&ie(t.prototype,e),t}();Et.filters.token=i}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}return n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(720)}()},"object"==typeof r&&"object"==typeof e?e.exports=o():"function"==typeof n&&n.amd?n("shifty",[],o):"object"==typeof r?r.shifty=o():i.shifty=o()},{}],3:[function(t,e,n){var r=t("./shape"),i=t("./utils"),o=function(t,e){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,r.apply(this,arguments)};o.prototype=new r,o.prototype.constructor=o,o.prototype._pathString=function(t){var e=t.strokeWidth;t.trailWidth&&t.trailWidth>t.strokeWidth&&(e=t.trailWidth);var n=50-e/2;return i.render(this._pathTemplate,{radius:n,"2radius":2*n})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],4:[function(t,e,n){var r=t("./shape"),i=t("./utils"),o=function(t,e){this._pathTemplate=e.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",r.apply(this,arguments)};o.prototype=new r,o.prototype.constructor=o,o.prototype._initializeSvg=function(t,e){var n=e.vertical?"0 0 "+e.strokeWidth+" 100":"0 0 100 "+e.strokeWidth;t.setAttribute("viewBox",n),t.setAttribute("preserveAspectRatio","none")},o.prototype._pathString=function(t){return i.render(this._pathTemplate,{center:t.strokeWidth/2})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],5:[function(t,e,n){e.exports={Line:t("./line"),Circle:t("./circle"),SemiCircle:t("./semicircle"),Square:t("./square"),Path:t("./path"),Shape:t("./shape"),utils:t("./utils")}},{"./circle":3,"./line":4,"./path":6,"./semicircle":7,"./shape":8,"./square":9,"./utils":10}],6:[function(t,e,n){var r=t("shifty"),i=t("./utils"),o=r.Tweenable,a={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},s=function t(e,n){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var r;n=i.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},n),r=i.isString(e)?document.querySelector(e):e,this.path=r,this._opts=n,this._tweenable=null;var o=this.path.getTotalLength();this.path.style.strokeDasharray=o+" "+o,this.set(0)};s.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},s.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(i.isFunction(e)){var n=this._easing(this._opts.easing);e(this._calculateTo(t,n),this._opts.shape||this,this._opts.attachment)}},s.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},s.prototype.animate=function(t,e,n){e=e||{},i.isFunction(e)&&(n=e,e={});var r=i.extend({},e),a=i.extend({},this._opts);e=i.extend(a,e);var s=this._easing(e.easing),l=this._resolveFromAndTo(t,s,r);this.stop(),this.path.getBoundingClientRect();var u=this._getComputedDashOffset(),c=this._progressToOffset(t),d=this;this._tweenable=new o,this._tweenable.tween({from:i.extend({offset:u},l.from),to:i.extend({offset:c},l.to),duration:e.duration,delay:e.delay,easing:s,step:function(t){d.path.style.strokeDashoffset=t.offset;var n=e.shape||d;e.step(t,n,e.attachment)}}).then((function(t){i.isFunction(n)&&n()})).catch((function(t){throw console.error("Error in tweening:",t),t}))},s.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},s.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},s.prototype._resolveFromAndTo=function(t,e,n){return n.from&&n.to?{from:n.from,to:n.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},s.prototype._calculateFrom=function(t){return r.interpolate(this._opts.from,this._opts.to,this.value(),t)},s.prototype._calculateTo=function(t,e){return r.interpolate(this._opts.from,this._opts.to,t,e)},s.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},s.prototype._easing=function(t){return a.hasOwnProperty(t)?a[t]:t},e.exports=s},{"./utils":10,shifty:2}],7:[function(t,e,n){var r=t("./shape"),i=t("./circle"),o=t("./utils"),a=function(t,e){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,r.apply(this,arguments)};a.prototype=new r,a.prototype.constructor=a,a.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 50")},a.prototype._initializeTextContainer=function(t,e,n){t.text.style&&(n.style.top="auto",n.style.bottom="0",t.text.alignToBottom?o.setStyle(n,"transform","translate(-50%, 0)"):o.setStyle(n,"transform","translate(-50%, 50%)"))},a.prototype._pathString=i.prototype._pathString,a.prototype._trailString=i.prototype._trailString,e.exports=a},{"./circle":3,"./shape":8,"./utils":10}],8:[function(t,e,n){var r=t("./path"),i=t("./utils"),o="Object is destroyed",a=function t(e,n){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=i.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},n,!0),i.isObject(n)&&void 0!==n.svgStyle&&(this._opts.svgStyle=n.svgStyle),i.isObject(n)&&i.isObject(n.text)&&void 0!==n.text.style&&(this._opts.text.style=n.text.style);var o,a=this._createSvgView(this._opts);if(!(o=i.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=o,this._container.appendChild(a.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&i.setStyles(a.svg,this._opts.svgStyle),this.svg=a.svg,this.path=a.path,this.trail=a.trail,this.text=null;var s=i.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new r(a.path,s),i.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};a.prototype.animate=function(t,e,n){if(null===this._progressPath)throw new Error(o);this._progressPath.animate(t,e,n)},a.prototype.stop=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath.stop()},a.prototype.pause=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},a.prototype.resume=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},a.prototype.destroy=function(){if(null===this._progressPath)throw new Error(o);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},a.prototype.set=function(t){if(null===this._progressPath)throw new Error(o);this._progressPath.set(t)},a.prototype.value=function(){if(null===this._progressPath)throw new Error(o);return void 0===this._progressPath?0:this._progressPath.value()},a.prototype.setText=function(t){if(null===this._progressPath)throw new Error(o);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),i.isObject(t)?(i.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},a.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var n=null;(t.trailColor||t.trailWidth)&&(n=this._createTrail(t),e.appendChild(n));var r=this._createPath(t);return e.appendChild(r),{svg:e,path:r,trail:n}},a.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},a.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},a.prototype._createTrail=function(t){var e=this._trailString(t),n=i.extend({},t);return n.trailColor||(n.trailColor="#eee"),n.trailWidth||(n.trailWidth=n.strokeWidth),n.color=n.trailColor,n.strokeWidth=n.trailWidth,n.fill=null,this._createPathElement(e,n)},a.prototype._createPathElement=function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n.setAttribute("stroke",e.color),n.setAttribute("stroke-width",e.strokeWidth),e.fill?n.setAttribute("fill",e.fill):n.setAttribute("fill-opacity","0"),n},a.prototype._createTextContainer=function(t,e){var n=document.createElement("div");n.className=t.text.className;var r=t.text.style;return r&&(t.text.autoStyleContainer&&(e.style.position="relative"),i.setStyles(n,r),r.color||(n.style.color=t.color)),this._initializeTextContainer(t,e,n),n},a.prototype._initializeTextContainer=function(t,e,n){},a.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},a.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},a.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),n=parseFloat(e.getPropertyValue("width"),10),r=parseFloat(e.getPropertyValue("height"),10);i.floatEquals(this.containerAspectRatio,n/r)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",n/r),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},e.exports=a},{"./path":6,"./utils":10}],9:[function(t,e,n){var r=t("./shape"),i=t("./utils"),o=function(t,e){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",r.apply(this,arguments)};o.prototype=new r,o.prototype.constructor=o,o.prototype._pathString=function(t){var e=100-t.strokeWidth/2;return i.render(this._pathTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2})},o.prototype._trailString=function(t){var e=100-t.strokeWidth/2;return i.render(this._trailTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2,startMargin:t.strokeWidth/2-t.trailWidth/2})},e.exports=o},{"./shape":8,"./utils":10}],10:[function(t,e,n){var r=t("lodash.merge"),i="Webkit Moz O ms".split(" "),o=.001;function a(t,e){var n=t;for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=new RegExp("\\{"+r+"\\}","g");n=n.replace(o,i)}return n}function s(t,e,n){for(var r=t.style,o=0;o<i.length;++o)r[i[o]+u(e)]=n;r[e]=n}function l(t,e){p(e,(function(e,n){null!==e&&void 0!==e&&(f(e)&&!0===e.prefix?s(t,n,e.value):t.style[n]=e)}))}function u(t){return t.charAt(0).toUpperCase()+t.slice(1)}function c(t){return"string"===typeof t||t instanceof String}function d(t){return"function"===typeof t}function h(t){return"[object Array]"===Object.prototype.toString.call(t)}function f(t){return!h(t)&&"object"===typeof t&&!!t}function p(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function m(t,e){return Math.abs(t-e)<o}function g(t){for(;t.firstChild;)t.removeChild(t.firstChild)}e.exports={extend:r,render:a,setStyle:s,setStyles:l,capitalize:u,isString:c,isFunction:d,isObject:f,forEachObject:p,floatEquals:m,removeChildren:g}},{"lodash.merge":1}]},{},[5])(5)}).call(this,n(93))},function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(51),i=n(52),o=n.n(i),a=n(53),s=n(54),l=n(55),u=n(56),c=n(57),d=n(58),h=n(59),f=n(60),p=n(61),m=n(62);function g(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}a.French,s.German,l.Spanish,u.Dutch,c.Arabic,d.Czech,h.Portuguese,f.Slovak,p.Italian,m.Polish;function v(){Object(r.a)("#definedDaysFrom",{mode:"range",dateFormat:"d-m-Y",locale:document.querySelector("html").lang,showMonths:2,plugins:[new o.a({input:"#definedDaysTo"})],onChange:function(t){if(y(),2===t.length){var e=t[0],n=t[1];document.getElementById("definedDaysFrom").dataset.dateFormat=moment(e).format("YYYY-MM-DD"),document.getElementById("definedDaysTo").dataset.dateFormat=moment(n).format("YYYY-MM-DD")}},onOpen:function(t,e,n){y()},onMonthChange:function(){y()},onYearChange:function(){y()}})}var y=function(){g(document.querySelectorAll(".flatpickr-day.nextMonthDay")).forEach((function(t){return t.classList.remove("hidden")})),g(document.querySelectorAll(".flatpickr-day.prevMonthDay")).forEach((function(t){return t.classList.remove("hidden")}))}},function(t,e,n){"use strict";(function(t){function r(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e){case"free_field":t("#commentable_option").removeClass("d-flex"),t("#commentable_option").addClass("d-none"),i(),function(e){e||t("input#survey_question_resource_commentable_true").prop("checked",!0)}(n);break;case"scale":r(),i(),o(n);break;default:r(),t("#anwser_form").removeClass("d-none"),o(n)}function r(){t("#commentable_option").removeClass("d-none"),t("#commentable_option").addClass("d-flex")}function i(){t("#anwser_form").addClass("d-none")}function o(e){e||t("input#survey_question_resource_commentable_false").prop("checked",!0)}}function i(e,n){e.preventDefault(),t.ajax({url:n,type:"PATCH",data:""})}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))}).call(this,n(4))},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return c}));var r=n(27),i=n(16),o=n(69);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(){a(document.querySelectorAll(".draggable-day")).forEach((function(e){new r.a(e,{group:"shared",animation:150,fallbackOnBody:!0,swapThreshold:.65,chosenClass:"opacity-40",filter:".undraggable",onEnd:function(e){Object(o.a)(),function(e){!function(t){return t.to!=t.from}(e)?d(e.target):function(e){var n=Object(i.i)(e.to.id.split("_")[1]),r={id:e.item.dataset.id,model:e.item.dataset.classname,new_day:n},o=a(e.from.children),s=a(e.to.children),l=[],u=[];o.length>0&&(Object(i.l)(o),l=Object(i.m)(o)),s.length>0&&(Object(i.l)(s),u=Object(i.m)(s)),t.ajax({url:e.target.dataset.url,type:"PATCH",data:{element_to_update:r,old_div_order:l,new_div_order:u,scope:document.getElementById("setting-content").dataset.scopeView},dataType:"script"})}(e)}(e),c()},onMove:function(t){},onChange:function(t){}})}));document.getElementById("setting-content").dataset;c(),window.currentWeeks||(window.currentWeeks=i.h,window.createInvisibleAddWeekButton=c,window.defineWeekValue=i.j,window.verifyExistingWeek=i.n,window.weekPlus=i.p,window.weekMinus=i.o,window.appendNewWeek=i.a,window.containsUndraggableElements=i.e,window.setObjectToSendFor=i.m,window.setNewPositionsFor=i.l,window.removeDay=o.a,window.cleanAlgoliaSearch=h)}function u(){setTimeout((function(){null!==document.querySelector(".clone")&&new r.a(document.querySelector(".clone"),{group:{name:"shared",pull:"clone",put:!1},sort:!1,onChoose:function(t){t.item.style.listStyle="none"},onEnd:function(e){if(!e.to.classList.contains("clone")){var n=document.querySelector("[data-template-id]").dataset.templateId,r=e.item.querySelector("span")||e.item;r.classList.add("to-be-replaced");var i=e.to.id.split("_")[1],o={id:r.id,model:r.dataset.classname,day:"first-connection"==i?null:i};new Promise((function(e,i){var a="handover"===r.dataset.classname?"/settings/tracks/".concat(n,"/handovers?template_id=").concat(n):"/settings/templates/".concat(n,"/sidebar_resources");e(t.ajax({url:a,type:"POST",data:{draggable:o,scope:document.getElementById("setting-content").dataset.scopeView,locale:document.getElementById("setting-content").dataset.language},dataType:"script"})),i(Error("error"))})).then(setTimeout((function(){"handover"!==r.dataset.classname&&d(e.to)}),500)),e.clone.classList.add("cloned")}},onMove:function(t){},onChange:function(t){}})}),400)}function c(){a(document.querySelectorAll(".add-class")).forEach((function(t){return t.remove()})),Object(i.h)().forEach((function(t){var e=Object(i.b)(t),n=Object(i.c)(t);e||Object(i.f)(t),n||Object(i.g)(t)})),Object(i.k)()}function d(e){var n=[];a(e.children).forEach((function(t,e){t.dataset.position=e+1})),a(e.children).forEach((function(t){if(t.dataset.classname){var e={id:t.dataset.id,model:t.dataset.classname,position:t.dataset.position};n.push(e)}})),t.ajax({url:e.dataset.url,type:"PATCH",data:{elements:n},dataType:"script"})}function h(){a(document.querySelectorAll(".cloned")).forEach((function(t){return t.remove()}))}}).call(this,n(4))},function(t,e,n){"use strict";(function(t){function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(e){var n=JSON.parse(e),i={week:+l().parentElement.parentElement.parentNode.dataset.week||"day_first-connection",day:+l().parentElement.id.split("_")[1]};n.new_week==i.week&&n.new_day==i.day||(null==n.new_day?document.querySelector("#first-connection .draggable-day").append(l()):l().parentElement.parentElement.parentElement.dataset.week==n.new_week?o():function(){if(document.querySelector('[data-week="'.concat(n.new_week,'"]')))o();else{var t=(r=n.new_week,i=JSON.parse(document.querySelector('[data-controller="desktop--settings--templates--editions"]').dataset.translations),'\n    <div class="week" style="max-width: 1000px;" data-week="'.concat(r,'">\n      <div class="block-title d-flex justify-content-between">\n        <h3 class="padded-20px text-22px text-color-').concat(document.getElementById("setting-content").dataset.mobility,'">').concat(i.week," ").concat(r,"</h3>\n      </div>\n    </div>\n  "));appendNewWeek(t,n.new_week);var e=a(n.new_day);document.querySelector('[data-week="'.concat(n.new_week,'"]')).insertAdjacentHTML("beforeend",e),u(),allowToRemoveTemporalityBlock()}var r,i}(),"meeting"===n.model&&"day_first-connection"===i.week||function(e,n){var i=r(document.querySelector(function(t){return 0==t.week||"day_first-connection"==t.week?"#day_first-connection":'[data-week="'.concat(t.week,'"] #day_').concat(t.day)}(n)).children),o=r(document.querySelector(function(t){return null==t.new_week?"#day_first-connection":'[data-week="'.concat(t.new_week,'"] #day_').concat(t.new_day)}(e)).children),a=[],s=[];i.length>0&&(setNewPositionsFor(i),a=setObjectToSendFor(i));o.length>0&&(setNewPositionsFor(o),s=setObjectToSendFor(o));t.ajax({url:document.querySelector("[data-url]").dataset.url,type:"PATCH",data:{elements:a.concat(s)},dataType:"script"})}(n,i),s(),draggableTemplate());function o(){document.getElementById("day_".concat(n.new_day))?u():(!function(t,e,n){var i=document.querySelectorAll('[data-week="'.concat(n,'"] .draggable-day')),o=r(i).map((function(t){return+t.id.split("_")[1]}));o.push(e);var a=o.sort((function(t,e){return t>e?1:-1})).indexOf(e);i[a-1]?i[a-1].parentElement.insertAdjacentHTML("afterend",t):i[0].parentElement.insertAdjacentHTML("beforebegin",t)}(a(n.new_day),n.new_day,n.new_week),u())}function l(){return document.querySelector('[data-id="'.concat(n.id,'"][data-classname="').concat(n.model,'"]'))}function u(){return document.getElementById("day_".concat(n.new_day)).appendChild(l())}}function a(t){var e=document.getElementById("setting-content").dataset.mobility,n=JSON.parse(document.querySelector('[data-controller="desktop--settings--templates--editions"]').dataset.translations);return'\n    <div class="d-flex flex-column align-items-center">\n      <span class="day-label border-color-'.concat(e," text-color-").concat(e,'">').concat(n.short_day," ").concat(t>=0?t+1:t,'</span>\n      <div id="day_').concat(t,'"\n           class="draggable-day w-100 min-height-30px0"\n           style="padding: 0 60px 20px 60px;"\n           data-url="').concat(document.querySelector("[data-url]").dataset.url,'">\n      </div>\n    </div>\n  ')}function s(){r(document.querySelectorAll(".draggable-day")).filter((function(t){return function(t){var e=0==t.children.length,n="day_first-connection"===t.id,r="-7"===t.id.split("_")[1]||"0"===t.id.split("_")[1],i=e&&!containsUndraggableElements(t)&&!n&&!r;return i}(t)})).forEach((function(t){return t.parentElement.remove()})),r(document.querySelectorAll(".week")).filter((function(t){return t.children.length<=1})).forEach((function(t){return t.remove()}))}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}))}).call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(1),i=n(8);function o(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}var d,h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(a,t);var e,n,r,i=u(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"connect",value:function(){new MutationObserver(this.delayRequest).observe(this.element,{attributes:!0})}},{key:"delayRequest",value:function(t){var e,n=o(t);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.target.dataset.tracksDelay;"data-tracks-delay"==r.attributeName&&i&&f(i)}}catch(a){n.e(a)}finally{n.f()}}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(r.Controller);function f(t){window.clearTimeout(d),d=window.setTimeout((function(){Object(i.filterRequest)()}),parseInt(t))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f})),n.d(e,"drawLine",(function(){return g}));var r=n(1),i=n(5);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(c,t);var e,n,r,a=u(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"selectAnswer",value:function(t){this.selectedValue+=this.selectedValue.length>=1?" ".concat(t.currentTarget.id):"".concat(t.currentTarget.id),x(document.getElementById(t.currentTarget.id));var e=this.selectedValue.split(" ");if(v(e)){var n=e.shift();e[0]!=n&&E(document.getElementById(n)),this.selectedValue=t.currentTarget.id}if(1==e.length)w(t.currentTarget),_(this.selectTextTarget),O(this.associateTextTarget);else{var r=e.filter((function(t){return!t.includes("answer_twin")}))[0],o=e.filter((function(t){return t.includes("answer_twin")}))[0];if(!r||!o)return;fetch(this.urlValue,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":Object(i.a)()},body:JSON.stringify({question:{type:"linked",answer_id:r.split("_")[1],answer_twin_id:o.split("_")[2]}})}),this.selectedValue="";var a=document.getElementById("answer_".concat(r.split("_")[1])),s=document.getElementById("answer_twin_".concat(o.split("_")[2]));p(a,s),_(this.associateTextTarget),O(this.selectTextTarget)}}},{key:"drawExistingAnswers",value:function(t){o(document.querySelectorAll("#".concat(t," div[data-answer-id]"))).forEach((function(t){var e=document.getElementById("answer_".concat(t.dataset.answerId)),n=document.getElementById("answer_twin_".concat(t.dataset.answerTwinId));e.nextElementSibling.children.length<1&&(y(e).classList.remove("invisible"),y(n).classList.remove("invisible"),g(e,n))}))}},{key:"unselectAnswers",value:function(t){var e=t.currentTarget.id.includes("twin"),n=e?t.currentTarget.id.split("_")[2]:t.currentTarget.id.split("_")[1];fetch(this.urlValue,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":Object(i.a)()},body:JSON.stringify({question:d({type:"linked",unselect:!0},e?"answer_twin_id":"answer_id",n)})}).then((function(t){return t.json()})).then((function(t){var e=t.answer_id,n=t.answer_twin_id,r=document.getElementById("answer_".concat(e)),i=document.getElementById("answer_twin_".concat(n));m(r,i)}))}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Controller);d(f,"targets",["selectText","associateText"]),d(f,"values",{selected:String,url:String});var p=function(t,e){[t,e].forEach((function(t){E(t),y(t).classList.remove("invisible"),x(y(t)),t.setAttribute("data-action","click->desktop--onboardee--linked-questions#unselectAnswers"),k(t)})),g(t,e)},m=function(t,e){[t,e].forEach((function(t){E(t),E(y(t)),y(t).classList.add("invisible"),t.setAttribute("data-action","click->desktop--onboardee--linked-questions#selectAnswer")}));var n=y(t).querySelector("svg");n&&n.remove()},g=function(t,e){var n=y(t),r=y(e),i=n.getBoundingClientRect(),o=r.getBoundingClientRect();x(n),x(r);var a=n.offsetHeight,s={bulletSize:a,height:Math.abs(i.y-o.y)+a,width:Math.abs(i.x-o.x)+a,toRotate:i.y>o.y};n.insertAdjacentHTML("beforeend",b(s))},b=function(t){return'\n    <svg height="'.concat(t.height,'"\n         width="').concat(t.width,'"\n         style="position: absolute; top: 0; left: 0; transform: rotateX(').concat(t.toRotate?180:0,"deg); margin-top: ").concat(t.toRotate?-(t.height-t.bulletSize):0,'px;">\n      <line x1="').concat(t.bulletSize/2,'" y1="').concat(t.bulletSize/2,'"\n            x2="').concat(t.width-t.bulletSize/2,'" y2="').concat(t.height-t.bulletSize/2,'"\n            style="stroke:').concat("var(--custom-color-primary)",";stroke-width:").concat("4",'" />\n    </svg>\n  ')},v=function(t){if(t.length<2)return!1;var e=t[0],n=t[1];return e.includes("answer_twin")&&n.includes("answer_twin")||!e.includes("answer_twin")&&!n.includes("answer_twin")},y=function(t){return t.id.includes("answer_twin")||t.id.includes("answer_resource_twin")?t.previousElementSibling:t.nextElementSibling},w=function(t){o(t.parentElement.parentElement.querySelectorAll(".answer-card")).filter((function(t){return!t.classList.contains("selected")})).forEach((function(t){return t.classList.add("text-gray")})),t.classList.remove("text-gray")},k=function(t){o(t.parentElement.parentElement.querySelectorAll(".answer-card")).forEach((function(t){return t.classList.remove("text-gray")}))},_=function(t){t.classList.remove("d-flex"),t.classList.add("d-none")},O=function(t){t.classList.remove("d-none"),t.classList.add("d-flex")},x=function(t){return t.classList.add("selected")},E=function(t){return t.classList.remove("selected")}},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1);n(4);function i(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}(this,n)}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(h,e);var n,r,o,c=l(h);function h(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return d(u(t=c.call.apply(c,[this].concat(n))),"searchTimer",null),t}return n=h,(r=[{key:"connect",value:function(){this.updateCleanerDisplay(),new MutationObserver(this.startSearch.bind(this)).observe(this.inputTarget,{attributes:!0})}},{key:"startSearch",value:function(t){var e,n=i(t);try{for(n.s();!(e=n.n()).done;)"data-current-query"==e.value.attributeName&&this.delayValue&&this.delaySearch()}catch(r){n.e(r)}finally{n.f()}}},{key:"search",value:function(){this.inputTarget.dataset.currentQuery=this.inputTarget.value,this.updateCleanerDisplay()}},{key:"reset",value:function(){this.inputTarget.dataset.currentQuery="",this.inputTarget.value="",this.updateCleanerDisplay(),this.inputTarget.focus()}},{key:"delaySearch",value:function(){var t=this,e=this.delayValue;window.clearTimeout(this.searchTimer),this.searchTimer=window.setTimeout((function(){t.launchSearch()}),parseInt(e))}},{key:"launchSearch",value:function(){this.hasSearchTargetValue&&(document.querySelector(this.searchTargetValue).dataset.currentQuery=this.inputTarget.dataset.currentQuery);var t=this.withQueryUrl();"true"==this.changePathValue&&this.changePath(t),this.fetchList(t)}},{key:"changePath",value:function(t){window.history.pushState(null,null,t)}},{key:"fetchList",value:function(t){var e=this;fetch(t,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(t){e.callback(t)}))}},{key:"callback",value:function(e){var n=document.querySelector(this.searchTargetValue),r=e.list,i=e.query||"";n.dataset.currentQuery==i&&t(n).replaceWith(r)}},{key:"withQueryUrl",value:function(){var t=this.inputTarget.dataset.currentQuery,e=new URL(this.urlValue);return t&&""!==t&&e.searchParams.set("query",t),e}},{key:"updateCleanerDisplay",value:function(){""==this.inputTarget.value?this.hideCleaner():this.showCleaner()}},{key:"showCleaner",value:function(){this.resetTarget.classList.remove("invisible")}},{key:"hideCleaner",value:function(){this.resetTarget.classList.add("invisible")}}])&&a(n.prototype,r),o&&a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),h}(r.Controller);d(f,"targets",["input","reset"]),d(f,"values",{delay:String,changePath:String,url:String,searchTarget:String})}.call(this,n(4))},function(t,e,n){"use strict";var r=n(2),i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(t){function e(e){var n=t.call(this)||this;return n.listView=e,n}return o(e,t),e.prototype.attachSegs=function(t){t.length?this.listView.renderSegList(t):this.listView.renderEmptyMessage()},e.prototype.detachSegs=function(){},e.prototype.renderSegHtml=function(t){var e,n=this.context,i=n.theme,o=n.options,a=t.eventRange,s=a.def,l=a.instance,u=a.ui,c=s.url,d=["fc-list-item"].concat(u.classNames),h=u.backgroundColor;return e=s.allDay?Object(r.N)(o):Object(r.U)(a.range)?t.isStart?Object(r.Q)(this._getTimeText(l.range.start,t.end,!1)):t.isEnd?Object(r.Q)(this._getTimeText(t.start,l.range.end,!1)):Object(r.N)(o):Object(r.Q)(this.getTimeText(a)),c&&d.push("fc-has-url"),'<tr class="'+d.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+i.getClass("widgetContent")+'">'+(e||"")+"</td>":"")+'<td class="fc-list-item-marker '+i.getClass("widgetContent")+'"><span class="fc-event-dot"'+(h?' style="background-color:'+h+'"':"")+'></span></td><td class="fc-list-item-title '+i.getClass("widgetContent")+'"><a'+(c?' href="'+Object(r.Q)(c)+'"':"")+">"+Object(r.Q)(s.title||"")+"</a></td></tr>"},e.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:"short"}},e}(r.g),s=function(t){function e(e,n){var i=t.call(this,e,n)||this;i.computeDateVars=Object(r.X)(l),i.eventStoreToSegs=Object(r.X)(i._eventStoreToSegs),i.renderSkeleton=Object(r.Y)(i._renderSkeleton,i._unrenderSkeleton);var o=i.eventRenderer=new a(i);return i.renderContent=Object(r.Y)(o.renderSegs.bind(o),o.unrender.bind(o),[i.renderSkeleton]),i}return o(e,t),e.prototype.firstContext=function(t){t.calendar.registerInteractiveComponent(this,{el:this.el})},e.prototype.render=function(e,n){t.prototype.render.call(this,e,n);var r=this.computeDateVars(e.dateProfile),i=r.dayDates,o=r.dayRanges;this.dayDates=i,this.renderSkeleton(n),this.renderContent(n,this.eventStoreToSegs(e.eventStore,e.eventUiBases,o))},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.renderSkeleton.unrender(),this.renderContent.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},e.prototype._renderSkeleton=function(t){var e=t.theme;this.el.classList.add("fc-list-view");for(var n=0,i=(e.getClass("listView")||"").split(" ");n<i.length;n++){var o=i[n];o&&this.el.classList.add(o)}this.scroller=new r.j("hidden","auto"),this.el.appendChild(this.scroller.el),this.contentEl=this.scroller.el},e.prototype._unrenderSkeleton=function(){this.scroller.destroy()},e.prototype.updateSize=function(e,n,r){t.prototype.updateSize.call(this,e,n,r),this.eventRenderer.computeSizes(e),this.eventRenderer.assignSizes(e),this.scroller.clear(),r||this.scroller.setHeight(this.computeScrollerHeight(n))},e.prototype.computeScrollerHeight=function(t){return t-Object(r.fb)(this.el,this.scroller.el)},e.prototype._eventStoreToSegs=function(t,e,n){return this.eventRangesToSegs(Object(r.db)(t,e,this.props.dateProfile.activeRange,this.context.nextDayThreshold).fg,n)},e.prototype.eventRangesToSegs=function(t,e){for(var n=[],r=0,i=t;r<i.length;r++){var o=i[r];n.push.apply(n,this.eventRangeToSegs(o,e))}return n},e.prototype.eventRangeToSegs=function(t,e){var n,i,o,a=this.context,s=a.dateEnv,l=a.nextDayThreshold,u=t.range,c=t.def.allDay,d=[];for(n=0;n<e.length;n++)if((i=Object(r.T)(u,e[n]))&&(o={component:this,eventRange:t,start:i.start,end:i.end,isStart:t.isStart&&i.start.valueOf()===u.start.valueOf(),isEnd:t.isEnd&&i.end.valueOf()===u.end.valueOf(),dayIndex:n},d.push(o),!o.isEnd&&!c&&n+1<e.length&&u.end<s.add(e[n+1].start,l))){o.end=u.end,o.isEnd=!0;break}return d},e.prototype.renderEmptyMessage=function(){this.contentEl.innerHTML='<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+Object(r.Q)(this.context.options.noEventsMessage)+"</div></div></div>"},e.prototype.renderSegList=function(t){var e,n,i,o=this.context.theme,a=this.groupSegsByDay(t),s=Object(r.R)('<table class="fc-list-table '+o.getClass("tableList")+'"><tbody></tbody></table>'),l=s.querySelector("tbody");for(e=0;e<a.length;e++)if(n=a[e])for(l.appendChild(this.buildDayHeaderRow(this.dayDates[e])),n=this.eventRenderer.sortEventSegs(n),i=0;i<n.length;i++)l.appendChild(n[i].el);this.contentEl.innerHTML="",this.contentEl.appendChild(s)},e.prototype.groupSegsByDay=function(t){var e,n,r=[];for(e=0;e<t.length;e++)(r[(n=t[e]).dayIndex]||(r[n.dayIndex]=[])).push(n);return r},e.prototype.buildDayHeaderRow=function(t){var e=this.context,n=e.theme,i=e.dateEnv,o=e.options,a=Object(r.E)(o.listDayFormat),s=Object(r.E)(o.listDayAltFormat);return Object(r.D)("tr",{className:"fc-list-heading","data-date":i.formatIso(t,{omitTime:!0})},'<td class="'+(n.getClass("tableListHeading")||n.getClass("widgetHeader"))+'" colspan="3">'+(a?Object(r.t)(o,i,t,{class:"fc-list-heading-main"},Object(r.Q)(i.format(t,a))):"")+(s?Object(r.t)(o,i,t,{class:"fc-list-heading-alt"},Object(r.Q)(i.format(t,s))):"")+"</td>")},e}(r.m);function l(t){for(var e=Object(r.eb)(t.renderRange.start),n=t.renderRange.end,i=[],o=[];e<n;)i.push(e),o.push({start:e,end:Object(r.n)(e,1)}),e=Object(r.n)(e,1);return{dayDates:i,dayRanges:o}}s.prototype.fgSegSelector=".fc-list-item";var u=Object(r.F)({views:{list:{class:s,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDayAltFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDayAltFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDayAltFormat:{weekday:"long"}}}});e.a=u},function(t,e,n){"use strict";n.d(e,"b",(function(){return Kp})),n.d(e,"a",(function(){return $p}));var r={};function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function a(t){o(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===i(t)&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function s(t){if(o(1,arguments),!function(t){return o(1,arguments),t instanceof Date||"object"===i(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!==typeof t)return!1;var e=a(t);return!isNaN(Number(e))}function l(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function u(t,e){o(2,arguments);var n=a(t).getTime(),r=l(e);return new Date(n+r)}function c(t,e){return o(2,arguments),u(t,-l(e))}n.r(r),n.d(r,"af",(function(){return wt})),n.d(r,"ar",(function(){return At})),n.d(r,"arDZ",(function(){return Nt})),n.d(r,"arEG",(function(){return qt})),n.d(r,"arMA",(function(){return Jt})),n.d(r,"arSA",(function(){return te})),n.d(r,"arTN",(function(){return oe})),n.d(r,"az",(function(){return de})),n.d(r,"be",(function(){return _e})),n.d(r,"beTarask",(function(){return Ae})),n.d(r,"bg",(function(){return He})),n.d(r,"bn",(function(){return en})),n.d(r,"bs",(function(){return pn})),n.d(r,"ca",(function(){return Sn})),n.d(r,"cs",(function(){return Fn})),n.d(r,"cy",(function(){return Qn})),n.d(r,"da",(function(){return cr})),n.d(r,"de",(function(){return xr})),n.d(r,"deAT",(function(){return Tr})),n.d(r,"el",(function(){return Br})),n.d(r,"enAU",(function(){return Ur})),n.d(r,"enCA",(function(){return Qr})),n.d(r,"enGB",(function(){return ni})),n.d(r,"enIE",(function(){return ii})),n.d(r,"enIN",(function(){return oi})),n.d(r,"enNZ",(function(){return ai})),n.d(r,"enUS",(function(){return et})),n.d(r,"enZA",(function(){return si})),n.d(r,"eo",(function(){return hi})),n.d(r,"es",(function(){return vi})),n.d(r,"et",(function(){return Ei})),n.d(r,"eu",(function(){return Mi})),n.d(r,"faIR",(function(){return Ii})),n.d(r,"fi",(function(){return io})),n.d(r,"fr",(function(){return bo})),n.d(r,"frCA",(function(){return ko})),n.d(r,"frCH",(function(){return xo})),n.d(r,"fy",(function(){return Co})),n.d(r,"gd",(function(){return Ro})),n.d(r,"gl",(function(){return Fo})),n.d(r,"gu",(function(){return Yo})),n.d(r,"he",(function(){return Zo})),n.d(r,"hi",(function(){return sa})),n.d(r,"hr",(function(){return fa})),n.d(r,"ht",(function(){return va})),n.d(r,"hu",(function(){return Pa})),n.d(r,"hy",(function(){return Da})),n.d(r,"id",(function(){return za})),n.d(r,"is",(function(){return Va})),n.d(r,"it",(function(){return Za})),n.d(r,"itCH",(function(){return ts})),n.d(r,"ja",(function(){return os})),n.d(r,"jaHira",(function(){return cs})),n.d(r,"ka",(function(){return ms})),n.d(r,"kk",(function(){return Es})),n.d(r,"km",(function(){return Ts})),n.d(r,"kn",(function(){return Is})),n.d(r,"ko",(function(){return Hs})),n.d(r,"lb",(function(){return Qs})),n.d(r,"lt",(function(){return ul})),n.d(r,"lv",(function(){return bl})),n.d(r,"mk",(function(){return Tl})),n.d(r,"mn",(function(){return Bl})),n.d(r,"ms",(function(){return tu})),n.d(r,"mt",(function(){return su})),n.d(r,"nb",(function(){return hu})),n.d(r,"nl",(function(){return bu})),n.d(r,"nlBE",(function(){return _u})),n.d(r,"nn",(function(){return Pu})),n.d(r,"oc",(function(){return Du})),n.d(r,"pl",(function(){return Yu})),n.d(r,"pt",(function(){return $u})),n.d(r,"ptBR",(function(){return rc})),n.d(r,"ro",(function(){return lc})),n.d(r,"ru",(function(){return vc})),n.d(r,"sk",(function(){return Cc})),n.d(r,"sl",(function(){return Lc})),n.d(r,"sq",(function(){return Fc})),n.d(r,"sr",(function(){return Uc})),n.d(r,"srLatn",(function(){return Qc})),n.d(r,"sv",(function(){return id})),n.d(r,"ta",(function(){return ud})),n.d(r,"te",(function(){return pd})),n.d(r,"th",(function(){return yd})),n.d(r,"tr",(function(){return xd})),n.d(r,"ug",(function(){return Cd})),n.d(r,"uk",(function(){return Nd})),n.d(r,"uz",(function(){return qd})),n.d(r,"uzCyrl",(function(){return Jd})),n.d(r,"vi",(function(){return th})),n.d(r,"zhCN",(function(){return sh})),n.d(r,"zhHK",(function(){return hh})),n.d(r,"zhTW",(function(){return bh}));function d(t){o(1,arguments);var e=a(t),n=e.getUTCDay(),r=(n<1?7:0)+n-1;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function h(t){o(1,arguments);var e=a(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=d(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var l=d(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=l.getTime()?n:n-1}var f=6048e5;function p(t){o(1,arguments);var e=a(t),n=d(e).getTime()-function(t){o(1,arguments);var e=h(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),d(n)}(e).getTime();return Math.round(n/f)+1}var m={};function g(){return m}function b(t,e){var n,r,i,s,u,c,d,h;o(1,arguments);var f=g(),p=l(null!==(n=null!==(r=null!==(i=null!==(s=null===e||void 0===e?void 0:e.weekStartsOn)&&void 0!==s?s:null===e||void 0===e||null===(u=e.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==r?r:null===(d=f.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=a(t),b=m.getUTCDay(),v=(b<p?7:0)+b-p;return m.setUTCDate(m.getUTCDate()-v),m.setUTCHours(0,0,0,0),m}function v(t,e){var n,r,i,s,u,c,d,h;o(1,arguments);var f=a(t),p=f.getUTCFullYear(),m=g(),v=l(null!==(n=null!==(r=null!==(i=null!==(s=null===e||void 0===e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null===e||void 0===e||null===(u=e.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==i?i:m.firstWeekContainsDate)&&void 0!==r?r:null===(d=m.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(p+1,0,v),y.setUTCHours(0,0,0,0);var w=b(y,e),k=new Date(0);k.setUTCFullYear(p,0,v),k.setUTCHours(0,0,0,0);var _=b(k,e);return f.getTime()>=w.getTime()?p+1:f.getTime()>=_.getTime()?p:p-1}var y=6048e5;function w(t,e){o(1,arguments);var n=a(t),r=b(n,e).getTime()-function(t,e){var n,r,i,a,s,u,c,d;o(1,arguments);var h=g(),f=l(null!==(n=null!==(r=null!==(i=null!==(a=null===e||void 0===e?void 0:e.firstWeekContainsDate)&&void 0!==a?a:null===e||void 0===e||null===(s=e.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(c=h.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1),p=v(t,e),m=new Date(0);return m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0),b(m,e)}(n,e).getTime();return Math.round(r/y)+1}function k(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var _={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return k("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):k(n+1,2)},d:function(t,e){return k(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return k(t.getUTCHours()%12||12,e.length)},H:function(t,e){return k(t.getUTCHours(),e.length)},m:function(t,e){return k(t.getUTCMinutes(),e.length)},s:function(t,e){return k(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds();return k(Math.floor(r*Math.pow(10,n-3)),e.length)}},O="midnight",x="noon",E="morning",j="afternoon",S="evening",P="night",C={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return _.y(t,e)},Y:function(t,e,n,r){var i=v(t,r),o=i>0?i:1-i;return"YY"===e?k(o%100,2):"Yo"===e?n.ordinalNumber(o,{unit:"year"}):k(o,e.length)},R:function(t,e){return k(h(t),e.length)},u:function(t,e){return k(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return k(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return k(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return _.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return k(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=w(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):k(i,e.length)},I:function(t,e,n){var r=p(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):k(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):_.d(t,e)},D:function(t,e,n){var r=function(t){o(1,arguments);var e=a(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=n-e.getTime();return Math.floor(r/864e5)+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):k(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return k(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return k(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return k(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?x:0===i?O:i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?S:i>=12?j:i>=4?E:P,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return _.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):k(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):k(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_.s(t,e)},S:function(t,e){return _.S(t,e)},X:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return M(i);case"XXXX":case"XX":return A(i);default:return A(i,":")}},x:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return M(i);case"xxxx":case"xx":return A(i);default:return A(i,":")}},O:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+T(i,":");default:return"GMT"+A(i,":")}},z:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+T(i,":");default:return"GMT"+A(i,":")}},t:function(t,e,n,r){var i=r._originalDate||t;return k(Math.floor(i.getTime()/1e3),e.length)},T:function(t,e,n,r){return k((r._originalDate||t).getTime(),e.length)}};function T(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+k(o,2)}function M(t,e){return t%60===0?(t>0?"-":"+")+k(Math.abs(t)/60,2):A(t,e)}function A(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t);return r+k(Math.floor(i/60),2)+n+k(i%60,2)}var D=C,R=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},L=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},I={p:L,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return R(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",R(i,e)).replace("{{time}}",L(o,e))}},W=I;function z(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var N=["D","DD"],F=["YY","YYYY"];function H(t){return-1!==N.indexOf(t)}function B(t){return-1!==F.indexOf(t)}function V(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var q={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Y=function(t,e,n){var r,i=q[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function U(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var G={date:U({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},X={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},J=function(t,e,n,r){return X[t]};function K(t){return function(e,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):i;r=t.formattingValues[o]||t.formattingValues[i]}else{var a=t.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):t.defaultWidth;r=t.values[s]||t.values[a]}return r[t.argumentCallback?t.argumentCallback(e):e]}}var $={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:K({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Q(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var a,s=o[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(l)?function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n;return}(l,(function(t){return t.test(s)})):function(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n;return}(l,(function(t){return t.test(s)}));return a=t.valueCallback?t.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:e.slice(s.length)}}}function Z(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var a=t.valueCallback?t.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:e.slice(i.length)}}}var tt={ordinalNumber:Z({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},et={code:"en-US",formatDistance:Y,formatLong:G,formatRelative:J,localize:$,match:tt,options:{weekStartsOn:0,firstWeekContainsDate:1}},nt=et,rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,it=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ot=/^'([^]*?)'?$/,at=/''/g,st=/[a-zA-Z]/;function lt(t,e,n){var r,i,u,d,h,f,p,m,b,v,y,w,k,_,O,x,E,j;o(2,arguments);var S=String(e),P=g(),C=null!==(r=null!==(i=null===n||void 0===n?void 0:n.locale)&&void 0!==i?i:P.locale)&&void 0!==r?r:nt,T=l(null!==(u=null!==(d=null!==(h=null!==(f=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null===n||void 0===n||null===(p=n.locale)||void 0===p||null===(m=p.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==h?h:P.firstWeekContainsDate)&&void 0!==d?d:null===(b=P.locale)||void 0===b||null===(v=b.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==u?u:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=l(null!==(y=null!==(w=null!==(k=null!==(_=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==_?_:null===n||void 0===n||null===(O=n.locale)||void 0===O||null===(x=O.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==k?k:P.weekStartsOn)&&void 0!==w?w:null===(E=P.locale)||void 0===E||null===(j=E.options)||void 0===j?void 0:j.weekStartsOn)&&void 0!==y?y:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var A=a(t);if(!s(A))throw new RangeError("Invalid time value");var R=c(A,z(A)),L={firstWeekContainsDate:T,weekStartsOn:M,locale:C,_originalDate:A};return S.match(it).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,W[e])(t,C.formatLong):t})).join("").match(rt).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(t){var e=t.match(ot);if(!e)return t;return e[1].replace(at,"'")}(r);var o=D[i];if(o)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!B(r)||V(r,e,String(t)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!H(r)||V(r,e,String(t)),o(R,r,C.localize,L);if(i.match(st))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")}var ut={lessThanXSeconds:{one:"minder as 'n sekonde",other:"minder as {{count}} sekondes"},xSeconds:{one:"1 sekonde",other:"{{count}} sekondes"},halfAMinute:"'n halwe minuut",lessThanXMinutes:{one:"minder as 'n minuut",other:"minder as {{count}} minute"},xMinutes:{one:"'n minuut",other:"{{count}} minute"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} ure"},xHours:{one:"1 uur",other:"{{count}} ure"},xDays:{one:"1 dag",other:"{{count}} dae"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weke"},xWeeks:{one:"1 week",other:"{{count}} weke"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maande"},xMonths:{one:"1 maand",other:"{{count}} maande"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer as 1 jaar",other:"meer as {{count}} jaar"},almostXYears:{one:"byna 1 jaar",other:"byna {{count}} jaar"}},ct=function(t,e,n){var r,i=ut[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"oor "+r:r+" gelede":r},dt={date:U({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ht=dt,ft={lastWeek:"'verlede' eeee 'om' p",yesterday:"'gister om' p",today:"'vandag om' p",tomorrow:"'m\xf4re om' p",nextWeek:"eeee 'om' p",other:"P"},pt=function(t,e,n,r){return ft[t]},mt={ordinalNumber:function(t){var e=Number(t),n=e%100;if(n<20)switch(n){case 1:case 8:return e+"ste";default:return e+"de"}return e+"ste"},era:K({values:{narrow:["vC","nC"],abbreviated:["vC","nC"],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],wide:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","D","W","D","V","S"],short:["So","Ma","Di","Wo","Do","Vr","Sa"],abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"],wide:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"}},defaultFormattingWidth:"wide"})},gt=mt,bt={ordinalNumber:Z({matchPattern:/^(\d+)(ste|de)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^J/i,/^F/i,/^M/i,/^A/i,/^M/i,/^J/i,/^J/i,/^A/i,/^S/i,/^O/i,/^N/i,/^D/i],any:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},defaultParseWidth:"any"})},vt=bt,yt={code:"af",formatDistance:ct,formatLong:ht,formatRelative:pt,localize:gt,match:vt,options:{weekStartsOn:0,firstWeekContainsDate:1}},wt=yt,kt={lessThanXSeconds:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0648\u0627\u0646\u064a",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0627\u0646\u064a\u0629"},xSeconds:{one:"\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062b\u0627\u0646\u064a\u062a\u0627\u0646",threeToTen:"{{count}} \u062b\u0648\u0627\u0646\u064a",other:"{{count}} \u062b\u0627\u0646\u064a\u0629"},halfAMinute:"\u0646\u0635\u0641 \u062f\u0642\u064a\u0642\u0629",lessThanXMinutes:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u0627\u0626\u0642",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u064a\u0642\u0629"},xMinutes:{one:"\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062f\u0642\u064a\u0642\u062a\u0627\u0646",threeToTen:"{{count}} \u062f\u0642\u0627\u0626\u0642",other:"{{count}} \u062f\u0642\u064a\u0642\u0629"},aboutXHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0633\u0627\u0639\u062a\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0633\u0627\u0639\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0633\u0627\u0639\u062a\u0627\u0646",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a",other:"{{count}} \u0633\u0627\u0639\u0629"},xDays:{one:"\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",two:"\u064a\u0648\u0645\u0627\u0646",threeToTen:"{{count}} \u0623\u064a\u0627\u0645",other:"{{count}} \u064a\u0648\u0645"},aboutXWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639 \u062a\u0642\u0631\u064a\u0628\u0627",other:"{{count}} \u0623\u0633\u0628\u0648\u0639\u0627 \u062a\u0642\u0631\u064a\u0628\u0627"},xWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f",two:"\u0623\u0633\u0628\u0648\u0639\u0627\u0646",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639",other:"{{count}} \u0623\u0633\u0628\u0648\u0639\u0627"},aboutXMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0634\u0647\u0631\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627",threeToTen:"{{count}} \u0623\u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627",other:"{{count}} \u0634\u0647\u0631\u0627 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",two:"\u0634\u0647\u0631\u0627\u0646",threeToTen:"{{count}} \u0623\u0634\u0647\u0631",other:"{{count}} \u0634\u0647\u0631\u0627"},aboutXYears:{one:"\u0633\u0646\u0629 \u0648\u0627\u062d\u062f\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0633\u0646\u062a\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627",threeToTen:"{{count}} \u0633\u0646\u0648\u0627\u062a \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0633\u0646\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xYears:{one:"\u0633\u0646\u0629 \u0648\u0627\u062d\u062f",two:"\u0633\u0646\u062a\u0627\u0646",threeToTen:"{{count}} \u0633\u0646\u0648\u0627\u062a",other:"{{count}} \u0633\u0646\u0629"},overXYears:{one:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0633\u0646\u0629",two:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0633\u0646\u062a\u064a\u0646",threeToTen:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0648\u0627\u062a",other:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0629"},almostXYears:{one:"\u0645\u0627 \u064a\u0642\u0627\u0631\u0628 \u0633\u0646\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0645\u0627 \u064a\u0642\u0627\u0631\u0628 \u0633\u0646\u062a\u064a\u0646",threeToTen:"\u0645\u0627 \u064a\u0642\u0627\u0631\u0628 {{count}} \u0633\u0646\u0648\u0627\u062a",other:"\u0645\u0627 \u064a\u0642\u0627\u0631\u0628 {{count}} \u0633\u0646\u0629"}},_t=function(t,e,n){var r,i=kt[t];return r="string"===typeof i?i:1===e?i.one:2===e?i.two:e<=10?i.threeToTen.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u062e\u0644\u0627\u0644 "+r:"\u0645\u0646\u0630 "+r:r},Ot={date:U({formats:{full:"EEEE\u060c do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629' {{time}}",long:"{{date}} '\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},xt=Ot,Et={lastWeek:"eeee '\u0627\u0644\u0645\u0627\u0636\u064a \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629' p",yesterday:"'\u0627\u0644\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629' p",today:"'\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629' p",tomorrow:"'\u063a\u062f\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629' p",nextWeek:"eeee '\u0627\u0644\u0642\u0627\u062f\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629' p",other:"P"},jt=function(t){return Et[t]},St={ordinalNumber:function(t){return String(t)},era:K({values:{narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f","\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u06311","\u06312","\u06313","\u06314"],wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u064a","\u0641","\u0645","\u0623","\u0645","\u064a","\u064a","\u0623","\u0633","\u0623","\u0646","\u062f"],abbreviated:["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"],wide:["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u062d","\u0646","\u062b","\u0631","\u062e","\u062c","\u0633"],short:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],abbreviated:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],wide:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0635",pm:"\u0645",morning:"\u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0627\u0644\u0644\u064a\u0644",midnight:"\u0645\u0646\u062a\u0635\u0641 \u0627\u0644\u0644\u064a\u0644"},abbreviated:{am:"\u0635",pm:"\u0645",morning:"\u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0627\u0644\u0644\u064a\u0644",midnight:"\u0645\u0646\u062a\u0635\u0641 \u0627\u0644\u0644\u064a\u0644"},wide:{am:"\u0635",pm:"\u0645",morning:"\u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0627\u0644\u0644\u064a\u0644",midnight:"\u0645\u0646\u062a\u0635\u0641 \u0627\u0644\u0644\u064a\u0644"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0635",pm:"\u0645",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644",midnight:"\u0645\u0646\u062a\u0635\u0641 \u0627\u0644\u0644\u064a\u0644"},abbreviated:{am:"\u0635",pm:"\u0645",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644",midnight:"\u0645\u0646\u062a\u0635\u0641 \u0627\u0644\u0644\u064a\u0644"},wide:{am:"\u0635",pm:"\u0645",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644",midnight:"\u0645\u0646\u062a\u0635\u0641 \u0627\u0644\u0644\u064a\u0644"}},defaultFormattingWidth:"wide"})},Pt=St,Ct={ordinalNumber:Z({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/[\u0642\u0628]/,abbreviated:/[\u0642\u0628]\.\u0645\./,wide:/(\u0642\u0628\u0644|\u0628\u0639\u062f) \u0627\u0644\u0645\u064a\u0644\u0627\u062f/},defaultMatchWidth:"wide",parsePatterns:{any:[/\u0642\u0628\u0644/,/\u0628\u0639\u062f/]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/\u0631[1234]/,wide:/\u0627\u0644\u0631\u0628\u0639 (\u0627\u0644\u0623\u0648\u0644|\u0627\u0644\u062b\u0627\u0646\u064a|\u0627\u0644\u062b\u0627\u0644\u062b|\u0627\u0644\u0631\u0627\u0628\u0639)/},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u0623\u064a\u0641\u0645\u0633\u0646\u062f]/,abbreviated:/^(\u064a\u0646\u0627\u064a\u0631|\u0641\u0628\u0631\u0627\u064a\u0631|\u0645\u0627\u0631\u0633|\u0623\u0628\u0631\u064a\u0644|\u0645\u0627\u064a\u0648|\u064a\u0648\u0646\u064a\u0648|\u064a\u0648\u0644\u064a\u0648|\u0623\u063a\u0633\u0637\u0633|\u0633\u0628\u062a\u0645\u0628\u0631|\u0623\u0643\u062a\u0648\u0628\u0631|\u0646\u0648\u0641\u0645\u0628\u0631|\u062f\u064a\u0633\u0645\u0628\u0631)/,wide:/^(\u064a\u0646\u0627\u064a\u0631|\u0641\u0628\u0631\u0627\u064a\u0631|\u0645\u0627\u0631\u0633|\u0623\u0628\u0631\u064a\u0644|\u0645\u0627\u064a\u0648|\u064a\u0648\u0646\u064a\u0648|\u064a\u0648\u0644\u064a\u0648|\u0623\u063a\u0633\u0637\u0633|\u0633\u0628\u062a\u0645\u0628\u0631|\u0623\u0643\u062a\u0648\u0628\u0631|\u0646\u0648\u0641\u0645\u0628\u0631|\u062f\u064a\u0633\u0645\u0628\u0631)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u064a/i,/^\u0641/i,/^\u0645/i,/^\u0623/i,/^\u0645/i,/^\u064a/i,/^\u064a/i,/^\u0623/i,/^\u0633/i,/^\u0623/i,/^\u0646/i,/^\u062f/i],any:[/^\u064a\u0646\u0627\u064a\u0631/i,/^\u0641\u0628\u0631\u0627\u064a\u0631/i,/^\u0645\u0627\u0631\u0633/i,/^\u0623\u0628\u0631\u064a\u0644/i,/^\u0645\u0627\u064a\u0648/i,/^\u064a\u0648\u0646\u064a\u0648/i,/^\u064a\u0648\u0644\u064a\u0648/i,/^\u0623\u063a\u0633\u0637\u0633/i,/^\u0633\u0628\u062a\u0645\u0628\u0631/i,/^\u0623\u0643\u062a\u0648\u0628\u0631/i,/^\u0646\u0648\u0641\u0645\u0628\u0631/i,/^\u062f\u064a\u0633\u0645\u0628\u0631/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u062d\u0646\u062b\u0631\u062e\u062c\u0633]/i,short:/^(\u0623\u062d\u062f|\u0627\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,abbreviated:/^(\u0623\u062d\u062f|\u0627\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,wide:/^(\u0627\u0644\u0623\u062d\u062f|\u0627\u0644\u0627\u062b\u0646\u064a\u0646|\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621|\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621|\u0627\u0644\u062e\u0645\u064a\u0633|\u0627\u0644\u062c\u0645\u0639\u0629|\u0627\u0644\u0633\u0628\u062a)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u062d/i,/^\u0646/i,/^\u062b/i,/^\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i],wide:[/^\u0627\u0644\u0623\u062d\u062f/i,/^\u0627\u0644\u0627\u062b\u0646\u064a\u0646/i,/^\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621/i,/^\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621/i,/^\u0627\u0644\u062e\u0645\u064a\u0633/i,/^\u0627\u0644\u062c\u0645\u0639\u0629/i,/^\u0627\u0644\u0633\u0628\u062a/i],any:[/^\u0623\u062d/i,/^\u0627\u062b/i,/^\u062b/i,/^\u0623\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u0635|\u0645|\u0645\u0646\u062a\u0635\u0641 \u0627\u0644\u0644\u064a\u0644|\u0627\u0644\u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631|\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d|\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621|\u0641\u064a \u0627\u0644\u0644\u064a\u0644)/,any:/^(\u0635|\u0645|\u0645\u0646\u062a\u0635\u0641 \u0627\u0644\u0644\u064a\u0644|\u0627\u0644\u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631|\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d|\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621|\u0641\u064a \u0627\u0644\u0644\u064a\u0644)/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u0635/,pm:/^\u0645/,midnight:/\u0645\u0646\u062a\u0635\u0641 \u0627\u0644\u0644\u064a\u0644/,noon:/\u0627\u0644\u0638\u0647\u0631/,afternoon:/\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631/,morning:/\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d/,evening:/\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621/,night:/\u0641\u064a \u0627\u0644\u0644\u064a\u0644/}},defaultParseWidth:"any"})},Tt=Ct,Mt={code:"ar",formatDistance:_t,formatLong:xt,formatRelative:jt,localize:Pt,match:Tt,options:{weekStartsOn:6,firstWeekContainsDate:1}},At=Mt,Dt={lessThanXSeconds:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0648\u0627\u0646\u064a",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0627\u0646\u064a\u0629"},xSeconds:{one:"\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062b\u0627\u0646\u062a\u064a\u0646",threeToTen:"{{count}} \u062b\u0648\u0627\u0646\u064a",other:"{{count}} \u062b\u0627\u0646\u064a\u0629"},halfAMinute:"\u0646\u0635\u0641 \u062f\u0642\u064a\u0642\u0629",lessThanXMinutes:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u0627\u0626\u0642",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u064a\u0642\u0629"},xMinutes:{one:"\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"{{count}} \u062f\u0642\u0627\u0626\u0642",other:"{{count}} \u062f\u0642\u064a\u0642\u0629"},aboutXHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0633\u0627\u0639\u062a\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0633\u0627\u0639\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0633\u0627\u0639\u062a\u064a\u0646",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a",other:"{{count}} \u0633\u0627\u0639\u0629"},xDays:{one:"\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",two:"\u064a\u0648\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u064a\u0627\u0645",other:"{{count}} \u064a\u0648\u0645"},aboutXWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0623\u0633\u0628\u0648\u0639 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639",other:"{{count}} \u0623\u0633\u0628\u0648\u0639"},aboutXMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0634\u0647\u0631\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",two:"\u0634\u0647\u0631\u064a\u0646",threeToTen:"{{count}} \u0623\u0634\u0647\u0631",other:"{{count}} \u0634\u0647\u0631"},aboutXYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",two:"\u0639\u0627\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645",other:"{{count}} \u0639\u0627\u0645"},overXYears:{one:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645",two:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645\u064a\u0646",threeToTen:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0623\u0639\u0648\u0627\u0645",other:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0639\u0627\u0645"},almostXYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"}},Rt=function(t,e,n){n=n||{};var r,i=Dt[t];return r="string"===typeof i?i:1===e?i.one:2===e?i.two:e<=10?i.threeToTen.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),n.addSuffix?n.comparison&&n.comparison>0?"\u0641\u064a \u062e\u0644\u0627\u0644 "+r:"\u0645\u0646\u0630 "+r:r},Lt={date:U({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u0639\u0646\u062f' {{time}}",long:"{{date}} '\u0639\u0646\u062f' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},It=Lt,Wt={lastWeek:"'\u0623\u062e\u0631' eeee '\u0639\u0646\u062f' p",yesterday:"'\u0623\u0645\u0633 \u0639\u0646\u062f' p",today:"'\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f' p",tomorrow:"'\u063a\u062f\u0627\u064b \u0639\u0646\u062f' p",nextWeek:"eeee '\u0639\u0646\u062f' p",other:"P"},zt=function(t,e,n,r){return Wt[t]},Nt={code:"ar-DZ",formatDistance:Rt,formatLong:It,formatRelative:zt,localize:{ordinalNumber:function(t){return String(t)},era:K({values:{narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f","\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u06311","\u06312","\u06313","\u06314"],wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:K({values:{narrow:["\u062c","\u0641","\u0645","\u0623","\u0645","\u062c","\u062c","\u0623","\u0633","\u0623","\u0646","\u062f"],abbreviated:["\u062c\u0627\u0646\u0640","\u0641\u064a\u0641\u0640","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a\u0640","\u062c\u0648\u0627\u0646\u0640","\u062c\u0648\u064a\u0640","\u0623\u0648\u062a","\u0633\u0628\u062a\u0640","\u0623\u0643\u062a\u0640","\u0646\u0648\u0641\u0640","\u062f\u064a\u0633\u0640"],wide:["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u062d","\u0646","\u062b","\u0631","\u062e","\u062c","\u0633"],short:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],abbreviated:["\u0623\u062d\u062f","\u0627\u062b\u0646\u0640","\u062b\u0644\u0627","\u0623\u0631\u0628\u0640","\u062e\u0645\u064a\u0640","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],wide:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0640\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0640\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0642|\u0628)/i,abbreviated:/^(\u0642\.?\s?\u0645\.?|\u0642\.?\s?\u0645\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0642\u0628\u0644/i,/^\u0628\u0639\u062f/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0631[1234]/i,wide:/^\u0627\u0644\u0631\u0628\u0639 [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return Number(t)+1}}),month:Q({matchPatterns:{narrow:/^[\u062c\u0641\u0645\u0623\u0633\u0646\u062f]/i,abbreviated:/^(\u062c\u0627\u0646|\u0641\u064a\u0641|\u0645\u0627\u0631|\u0623\u0641\u0631|\u0645\u0627\u064a|\u062c\u0648\u0627|\u062c\u0648\u064a|\u0623\u0648\u062a|\u0633\u0628\u062a|\u0623\u0643\u062a|\u0646\u0648\u0641|\u062f\u064a\u0633)/i,wide:/^(\u062c\u0627\u0646\u0641\u064a|\u0641\u064a\u0641\u0631\u064a|\u0645\u0627\u0631\u0633|\u0623\u0641\u0631\u064a\u0644|\u0645\u0627\u064a|\u062c\u0648\u0627\u0646|\u062c\u0648\u064a\u0644\u064a\u0629|\u0623\u0648\u062a|\u0633\u0628\u062a\u0645\u0628\u0631|\u0623\u0643\u062a\u0648\u0628\u0631|\u0646\u0648\u0641\u0645\u0628\u0631|\u062f\u064a\u0633\u0645\u0628\u0631)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u062c/i,/^\u0641/i,/^\u0645/i,/^\u0623/i,/^\u0645/i,/^\u062c/i,/^\u062c/i,/^\u0623/i,/^\u0633/i,/^\u0623/i,/^\u0646/i,/^\u062f/i],any:[/^\u062c\u0627\u0646/i,/^\u0641\u064a\u0641/i,/^\u0645\u0627\u0631/i,/^\u0623\u0641\u0631/i,/^\u0645\u0627\u064a/i,/^\u062c\u0648\u0627/i,/^\u062c\u0648\u064a/i,/^\u0623\u0648\u062a/i,/^\u0633\u0628\u062a/i,/^\u0623\u0643\u062a/i,/^\u0646\u0648\u0641/i,/^\u062f\u064a\u0633/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u062d\u0646\u062b\u0631\u062e\u062c\u0633]/i,short:/^(\u0623\u062d\u062f|\u0627\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,abbreviated:/^(\u0623\u062d\u062f|\u0627\u062b\u0646|\u062b\u0644\u0627|\u0623\u0631\u0628|\u062e\u0645\u064a|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,wide:/^(\u0627\u0644\u0623\u062d\u062f|\u0627\u0644\u0627\u062b\u0646\u064a\u0646|\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621|\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621|\u0627\u0644\u062e\u0645\u064a\u0633|\u0627\u0644\u062c\u0645\u0639\u0629|\u0627\u0644\u0633\u0628\u062a)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u062d/i,/^\u0646/i,/^\u062b/i,/^\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i],wide:[/^\u0627\u0644\u0623\u062d\u062f/i,/^\u0627\u0644\u0627\u062b\u0646\u064a\u0646/i,/^\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621/i,/^\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621/i,/^\u0627\u0644\u062e\u0645\u064a\u0633/i,/^\u0627\u0644\u062c\u0645\u0639\u0629/i,/^\u0627\u0644\u0633\u0628\u062a/i],any:[/^\u0623\u062d/i,/^\u0627\u062b/i,/^\u062b/i,/^\u0623\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Ft={lessThanXSeconds:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0648\u0627\u0646\u064a",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0627\u0646\u064a\u0629"},xSeconds:{one:"\u062b\u0627\u0646\u064a\u0629",two:"\u062b\u0627\u0646\u064a\u062a\u064a\u0646",threeToTen:"{{count}} \u062b\u0648\u0627\u0646\u064a",other:"{{count}} \u062b\u0627\u0646\u064a\u0629"},halfAMinute:"\u0646\u0635 \u062f\u0642\u064a\u0642\u0629",lessThanXMinutes:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u0627\u064a\u0642",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u064a\u0642\u0629"},xMinutes:{one:"\u062f\u0642\u064a\u0642\u0629",two:"\u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"{{count}} \u062f\u0642\u0627\u064a\u0642",other:"{{count}} \u062f\u0642\u064a\u0642\u0629"},aboutXHours:{one:"\u062d\u0648\u0627\u0644\u064a \u0633\u0627\u0639\u0629",two:"\u062d\u0648\u0627\u0644\u064a \u0633\u0627\u0639\u062a\u064a\u0646",threeToTen:"\u062d\u0648\u0627\u0644\u064a {{count}} \u0633\u0627\u0639\u0627\u062a",other:"\u062d\u0648\u0627\u0644\u064a {{count}} \u0633\u0627\u0639\u0629"},xHours:{one:"\u0633\u0627\u0639\u0629",two:"\u0633\u0627\u0639\u062a\u064a\u0646",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a",other:"{{count}} \u0633\u0627\u0639\u0629"},xDays:{one:"\u064a\u0648\u0645",two:"\u064a\u0648\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u064a\u0627\u0645",other:"{{count}} \u064a\u0648\u0645"},aboutXWeeks:{one:"\u062d\u0648\u0627\u0644\u064a \u0623\u0633\u0628\u0648\u0639",two:"\u062d\u0648\u0627\u0644\u064a \u0623\u0633\u0628\u0648\u0639\u064a\u0646",threeToTen:"\u062d\u0648\u0627\u0644\u064a {{count}} \u0623\u0633\u0627\u0628\u064a\u0639",other:"\u062d\u0648\u0627\u0644\u064a {{count}} \u0623\u0633\u0628\u0648\u0639"},xWeeks:{one:"\u0623\u0633\u0628\u0648\u0639",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639",other:"{{count}} \u0623\u0633\u0628\u0648\u0639"},aboutXMonths:{one:"\u062d\u0648\u0627\u0644\u064a \u0634\u0647\u0631",two:"\u062d\u0648\u0627\u0644\u064a \u0634\u0647\u0631\u064a\u0646",threeToTen:"\u062d\u0648\u0627\u0644\u064a {{count}} \u0623\u0634\u0647\u0631",other:"\u062d\u0648\u0627\u0644\u064a {{count}} \u0634\u0647\u0631"},xMonths:{one:"\u0634\u0647\u0631",two:"\u0634\u0647\u0631\u064a\u0646",threeToTen:"{{count}} \u0623\u0634\u0647\u0631",other:"{{count}} \u0634\u0647\u0631"},aboutXYears:{one:"\u062d\u0648\u0627\u0644\u064a \u0633\u0646\u0629",two:"\u062d\u0648\u0627\u0644\u064a \u0633\u0646\u062a\u064a\u0646",threeToTen:"\u062d\u0648\u0627\u0644\u064a {{count}} \u0633\u0646\u064a\u0646",other:"\u062d\u0648\u0627\u0644\u064a {{count}} \u0633\u0646\u0629"},xYears:{one:"\u0639\u0627\u0645",two:"\u0639\u0627\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645",other:"{{count}} \u0639\u0627\u0645"},overXYears:{one:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0633\u0646\u0629",two:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0633\u0646\u062a\u064a\u0646",threeToTen:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0633\u0646\u064a\u0646",other:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0629"},almostXYears:{one:"\u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u064b\u0627",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u064b\u0627",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u064b\u0627",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u064b\u0627"}},Ht=function(t,e,n){var r,i=Ft[t];return r="string"===typeof i?i:1===e?i.one:2===e?i.two:e<=10?i.threeToTen.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u0641\u064a \u062e\u0644\u0627\u0644 ".concat(r):"\u0645\u0646\u0630 ".concat(r):r},Bt={date:U({formats:{full:"EEEE\u060c do MMMM y",long:"do MMMM y",medium:"dd/MMM/y",short:"d/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u0627\u0644\u0633\u0627\u0639\u0629' {{time}}",long:"{{date}} '\u0627\u0644\u0633\u0627\u0639\u0629' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Vt={lastWeek:"eeee '\u0627\u0644\u0644\u064a \u062c\u0627\u064a \u0627\u0644\u0633\u0627\u0639\u0629' p",yesterday:"'\u0625\u0645\u0628\u0627\u0631\u062d \u0627\u0644\u0633\u0627\u0639\u0629' p",today:"'\u0627\u0644\u0646\u0647\u0627\u0631\u062f\u0629 \u0627\u0644\u0633\u0627\u0639\u0629' p",tomorrow:"'\u0628\u0643\u0631\u0629 \u0627\u0644\u0633\u0627\u0639\u0629' p",nextWeek:"eeee '\u0627\u0644\u0633\u0627\u0639\u0629' p",other:"P"},qt={code:"ar-EG",formatDistance:Ht,formatLong:Bt,formatRelative:function(t,e,n,r){return Vt[t]},localize:{ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645","\u0628.\u0645"],wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f","\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u06311","\u06312","\u06313","\u06314"],wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u064a","\u0641","\u0645","\u0623","\u0645","\u064a","\u064a","\u0623","\u0633","\u0623","\u0646","\u062f"],abbreviated:["\u064a\u0646\u0627","\u0641\u0628\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u0640","\u064a\u0648\u0644\u0640","\u0623\u063a\u0633\u0640","\u0633\u0628\u062a\u0640","\u0623\u0643\u062a\u0640","\u0646\u0648\u0641\u0640","\u062f\u064a\u0633\u0640"],wide:["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u062d","\u0646","\u062b","\u0631","\u062e","\u062c","\u0633"],short:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],abbreviated:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],wide:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631\u0627\u064b",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631\u0627\u064b",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u064b",night:"\u0644\u064a\u0644\u0627\u064b"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631\u0627\u064b",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0638\u0647\u0631\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)/,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0642|\u0628)/g,abbreviated:/^(\u0642.\u0645|\u0628.\u0645)/g,wide:/^(\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f)/g},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0642/g,/^\u0628/g]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/,abbreviated:/^\u0631[1234]/,wide:/^\u0627\u0644\u0631\u0628\u0639 (\u0627\u0644\u0623\u0648\u0644|\u0627\u0644\u062b\u0627\u0646\u064a|\u0627\u0644\u062b\u0627\u0644\u062b|\u0627\u0644\u0631\u0627\u0628\u0639)/},defaultMatchWidth:"wide",parsePatterns:{wide:[/\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644/,/\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a/,/\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b/,/\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639/],any:[/1/,/2/,/3/,/4/]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u064a|\u0641|\u0645|\u0623|\u0633|\u0646|\u062f)/,abbreviated:/^(\u064a\u0646\u0627|\u0641\u0628\u0631|\u0645\u0627\u0631\u0633|\u0623\u0628\u0631\u064a\u0644|\u0645\u0627\u064a\u0648|\u064a\u0648\u0646\u0640|\u064a\u0648\u0644\u0640|\u0623\u063a\u0633\u0640|\u0633\u0628\u062a\u0640|\u0623\u0643\u062a\u0640|\u0646\u0648\u0641\u0640|\u062f\u064a\u0633\u0640)/,wide:/^(\u064a\u0646\u0627\u064a\u0631|\u0641\u0628\u0631\u0627\u064a\u0631|\u0645\u0627\u0631\u0633|\u0623\u0628\u0631\u064a\u0644|\u0645\u0627\u064a\u0648|\u064a\u0648\u0646\u064a\u0648|\u064a\u0648\u0644\u064a\u0648|\u0623\u063a\u0633\u0637\u0633|\u0633\u0628\u062a\u0645\u0628\u0631|\u0623\u0643\u062a\u0648\u0628\u0631|\u0646\u0648\u0641\u0645\u0628\u0631|\u062f\u064a\u0633\u0645\u0628\u0631)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u064a/,/^\u0641/,/^\u0645/,/^\u0623/,/^\u0645/,/^\u064a/,/^\u064a/,/^\u0623/,/^\u0633/,/^\u0623/,/^\u0646/,/^\u062f/],any:[/^\u064a\u0646\u0627/,/^\u0641\u0628\u0631/,/^\u0645\u0627\u0631\u0633/,/^\u0623\u0628\u0631\u064a\u0644/,/^\u0645\u0627\u064a\u0648/,/^\u064a\u0648\u0646/,/^\u064a\u0648\u0644/,/^\u0623\u063a\u0633/,/^\u0633\u0628\u062a/,/^\u0623\u0643\u062a/,/^\u0646\u0648\u0641/,/^\u062f\u064a\u0633/]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u062d|\u0646|\u062b|\u0631|\u062e|\u062c|\u0633)/,short:/^(\u0623\u062d\u062f|\u0627\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/,abbreviated:/^(\u0623\u062d\u062f|\u0627\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/,wide:/^(\u0627\u0644\u0623\u062d\u062f|\u0627\u0644\u0627\u062b\u0646\u064a\u0646|\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621|\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621|\u0627\u0644\u062e\u0645\u064a\u0633|\u0627\u0644\u062c\u0645\u0639\u0629|\u0627\u0644\u0633\u0628\u062a)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u062d/,/^\u0646/,/^\u062b/,/^\u0631/,/^\u062e/,/^\u062c/,/^\u0633/],any:[/\u0623\u062d\u062f/,/\u0627\u062b\u0646\u064a\u0646/,/\u062b\u0644\u0627\u062b\u0627\u0621/,/\u0623\u0631\u0628\u0639\u0627\u0621/,/\u062e\u0645\u064a\u0633/,/\u062c\u0645\u0639\u0629/,/\u0633\u0628\u062a/]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u0635|\u0645|\u0646|\u0638|\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d|\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631|\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621|\u0641\u064a \u0627\u0644\u0644\u064a\u0644)/,abbreviated:/^(\u0635|\u0645|\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644|\u0638\u0647\u0631\u0627\u064b|\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d|\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631|\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621|\u0641\u064a \u0627\u0644\u0644\u064a\u0644)/,wide:/^(\u0635|\u0645|\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644|\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d|\u0638\u0647\u0631\u0627\u064b|\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631|\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621|\u0641\u064a \u0627\u0644\u0644\u064a\u0644)/,any:/^(\u0635|\u0645|\u0635\u0628\u0627\u062d|\u0638\u0647\u0631|\u0645\u0633\u0627\u0621|\u0644\u064a\u0644)/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u0635/,pm:/^\u0645/,midnight:/^\u0646/,noon:/^\u0638/,morning:/^\u0635/,afternoon:/^\u0628\u0639\u062f/,evening:/^\u0645/,night:/^\u0644/}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Yt={lessThanXSeconds:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0648\u0627\u0646\u064a",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0627\u0646\u064a\u0629"},xSeconds:{one:"\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062b\u0627\u0646\u062a\u064a\u0646",threeToTen:"{{count}} \u062b\u0648\u0627\u0646\u064a",other:"{{count}} \u062b\u0627\u0646\u064a\u0629"},halfAMinute:"\u0646\u0635\u0641 \u062f\u0642\u064a\u0642\u0629",lessThanXMinutes:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u0627\u0626\u0642",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u064a\u0642\u0629"},xMinutes:{one:"\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"{{count}} \u062f\u0642\u0627\u0626\u0642",other:"{{count}} \u062f\u0642\u064a\u0642\u0629"},aboutXHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0633\u0627\u0639\u062a\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0633\u0627\u0639\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0633\u0627\u0639\u062a\u064a\u0646",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a",other:"{{count}} \u0633\u0627\u0639\u0629"},xDays:{one:"\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",two:"\u064a\u0648\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u064a\u0627\u0645",other:"{{count}} \u064a\u0648\u0645"},aboutXWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0623\u0633\u0628\u0648\u0639 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639",other:"{{count}} \u0623\u0633\u0628\u0648\u0639"},aboutXMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0634\u0647\u0631\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",two:"\u0634\u0647\u0631\u064a\u0646",threeToTen:"{{count}} \u0623\u0634\u0647\u0631",other:"{{count}} \u0634\u0647\u0631"},aboutXYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",two:"\u0639\u0627\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645",other:"{{count}} \u0639\u0627\u0645"},overXYears:{one:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645",two:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645\u064a\u0646",threeToTen:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0623\u0639\u0648\u0627\u0645",other:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0639\u0627\u0645"},almostXYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"}},Ut=function(t,e,n){n=n||{};var r,i=Yt[t];return r="string"===typeof i?i:1===e?i.one:2===e?i.two:e<=10?i.threeToTen.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),n.addSuffix?n.comparison&&n.comparison>0?"\u0641\u064a \u062e\u0644\u0627\u0644 "+r:"\u0645\u0646\u0630 "+r:r},Gt={date:U({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u0639\u0646\u062f' {{time}}",long:"{{date}} '\u0639\u0646\u062f' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Xt={lastWeek:"'\u0623\u062e\u0631' eeee '\u0639\u0646\u062f' p",yesterday:"'\u0623\u0645\u0633 \u0639\u0646\u062f' p",today:"'\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f' p",tomorrow:"'\u063a\u062f\u0627\u064b \u0639\u0646\u062f' p",nextWeek:"eeee '\u0639\u0646\u062f' p",other:"P"},Jt={code:"ar-MA",formatDistance:Ut,formatLong:Gt,formatRelative:function(t,e,n,r){return Xt[t]},localize:{ordinalNumber:function(t){return String(t)},era:K({values:{narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f","\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u06311","\u06312","\u06313","\u06314"],wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:K({values:{narrow:["\u064a","\u0641","\u0645","\u0623","\u0645","\u064a","\u064a","\u063a","\u0634","\u0623","\u0646","\u062f"],abbreviated:["\u064a\u0646\u0627","\u0641\u0628\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a","\u064a\u0648\u0646\u0640","\u064a\u0648\u0644\u0640","\u063a\u0634\u062a","\u0634\u062a\u0646\u0640","\u0623\u0643\u062a\u0640","\u0646\u0648\u0646\u0640","\u062f\u062c\u0646\u0640"],wide:["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648\u0632","\u063a\u0634\u062a","\u0634\u062a\u0646\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0646\u0628\u0631","\u062f\u062c\u0646\u0628\u0631"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u062d","\u0646","\u062b","\u0631","\u062e","\u062c","\u0633"],short:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],abbreviated:["\u0623\u062d\u062f","\u0627\u062b\u0646\u0640","\u062b\u0644\u0627","\u0623\u0631\u0628\u0640","\u062e\u0645\u064a\u0640","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],wide:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0625\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0640\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0640\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0642|\u0628)/i,abbreviated:/^(\u0642\.?\s?\u0645\.?|\u0642\.?\s?\u0645\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0642\u0628\u0644/i,/^\u0628\u0639\u062f/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0631[1234]/i,wide:/^\u0627\u0644\u0631\u0628\u0639 [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return Number(t)+1}}),month:Q({matchPatterns:{narrow:/^[\u064a\u0641\u0645\u0623\u0645\u0633\u0646\u062f]/i,abbreviated:/^(\u064a\u0646|\u0641|\u0645\u0627\u0631|\u0623\u0628|\u0645\u0627\u064a|\u064a\u0648\u0646|\u064a\u0648\u0644|\u063a\u0634|\u0634\u062a|\u0623\u0643|\u0646|\u062f)/i,wide:/^(\u064a\u0646|\u0641|\u0645\u0627\u0631|\u0623\u0628|\u0645\u0627\u064a|\u064a\u0648\u0646|\u064a\u0648\u0644|\u063a\u0634|\u0634\u062a|\u0623\u0643|\u0646|\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u064a/i,/^\u0641/i,/^\u0645/i,/^\u0623/i,/^\u0645/i,/^\u064a/i,/^\u064a/i,/^\u063a/i,/^\u0634/i,/^\u0623/i,/^\u0646/i,/^\u062f/i],any:[/^\u064a\u0646/i,/^\u0641\u0628/i,/^\u0645\u0627\u0631/i,/^\u0623\u0628/i,/^\u0645\u0627\u064a/i,/^\u064a\u0648\u0646/i,/^\u064a\u0648\u0644/i,/^\u063a\u0634\u062a/i,/^\u0634/i,/^\u0623\u0643/i,/^\u0646/i,/^\u062f/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u062d\u0646\u062b\u0631\u062e\u062c\u0633]/i,short:/^(\u0623\u062d\u062f|\u0625\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,abbreviated:/^(\u0623\u062d\u062f|\u0625\u062b\u0646|\u062b\u0644\u0627|\u0623\u0631\u0628|\u062e\u0645\u064a|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,wide:/^(\u0627\u0644\u0623\u062d\u062f|\u0627\u0644\u0625\u062b\u0646\u064a\u0646|\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621|\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621|\u0627\u0644\u062e\u0645\u064a\u0633|\u0627\u0644\u062c\u0645\u0639\u0629|\u0627\u0644\u0633\u0628\u062a)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u062d/i,/^\u0646/i,/^\u062b/i,/^\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i],wide:[/^\u0627\u0644\u0623\u062d\u062f/i,/^\u0627\u0644\u0625\u062b\u0646\u064a\u0646/i,/^\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621/i,/^\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621/i,/^\u0627\u0644\u062e\u0645\u064a\u0633/i,/^\u0627\u0644\u062c\u0645\u0639\u0629/i,/^\u0627\u0644\u0633\u0628\u062a/i],any:[/^\u0623\u062d/i,/^\u0625\u062b/i,/^\u062b/i,/^\u0623\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Kt={lessThanXSeconds:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0648\u0627\u0646\u064a",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0627\u0646\u064a\u0629"},xSeconds:{one:"\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062b\u0627\u0646\u062a\u064a\u0646",threeToTen:"{{count}} \u062b\u0648\u0627\u0646\u064a",other:"{{count}} \u062b\u0627\u0646\u064a\u0629"},halfAMinute:"\u0646\u0635\u0641 \u062f\u0642\u064a\u0642\u0629",lessThanXMinutes:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u0627\u0626\u0642",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u064a\u0642\u0629"},xMinutes:{one:"\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"{{count}} \u062f\u0642\u0627\u0626\u0642",other:"{{count}} \u062f\u0642\u064a\u0642\u0629"},aboutXHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0633\u0627\u0639\u062a\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0633\u0627\u0639\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0633\u0627\u0639\u062a\u064a\u0646",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a",other:"{{count}} \u0633\u0627\u0639\u0629"},xDays:{one:"\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",two:"\u064a\u0648\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u064a\u0627\u0645",other:"{{count}} \u064a\u0648\u0645"},aboutXWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0623\u0633\u0628\u0648\u0639 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639",other:"{{count}} \u0623\u0633\u0628\u0648\u0639"},aboutXMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0634\u0647\u0631\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",two:"\u0634\u0647\u0631\u064a\u0646",threeToTen:"{{count}} \u0623\u0634\u0647\u0631",other:"{{count}} \u0634\u0647\u0631"},aboutXYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",two:"\u0639\u0627\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645",other:"{{count}} \u0639\u0627\u0645"},overXYears:{one:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645",two:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645\u064a\u0646",threeToTen:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0623\u0639\u0648\u0627\u0645",other:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0639\u0627\u0645"},almostXYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"}},$t=function(t,e,n){var r,i=Kt[t];return r="string"===typeof i?i:1===e?i.one:2===e?i.two:e<=10?i.threeToTen.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u0641\u064a \u062e\u0644\u0627\u0644 "+r:"\u0645\u0646\u0630 "+r:r},Qt={date:U({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u0639\u0646\u062f' {{time}}",long:"{{date}} '\u0639\u0646\u062f' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Zt={lastWeek:"'\u0623\u062e\u0631' eeee '\u0639\u0646\u062f' p",yesterday:"'\u0623\u0645\u0633 \u0639\u0646\u062f' p",today:"'\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f' p",tomorrow:"'\u063a\u062f\u0627\u064b \u0639\u0646\u062f' p",nextWeek:"eeee '\u0639\u0646\u062f' p",other:"P"},te={code:"ar-SA",formatDistance:$t,formatLong:Qt,formatRelative:function(t,e,n,r){return Zt[t]},localize:{ordinalNumber:function(t){return String(t)},era:K({values:{narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f","\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u06311","\u06312","\u06313","\u06314"],wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u064a","\u0641","\u0645","\u0623","\u0645","\u064a","\u064a","\u0623","\u0633","\u0623","\u0646","\u062f"],abbreviated:["\u064a\u0646\u0627","\u0641\u0628\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u0640","\u064a\u0648\u0644\u0640","\u0623\u063a\u0633\u0640","\u0633\u0628\u062a\u0640","\u0623\u0643\u062a\u0640","\u0646\u0648\u0641\u0640","\u062f\u064a\u0633\u0640"],wide:["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u062d","\u0646","\u062b","\u0631","\u062e","\u062c","\u0633"],short:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],abbreviated:["\u0623\u062d\u062f","\u0627\u062b\u0646\u0640","\u062b\u0644\u0627","\u0623\u0631\u0628\u0640","\u062e\u0645\u064a\u0640","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],wide:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0640\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0640\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0642|\u0628)/i,abbreviated:/^(\u0642\.?\s?\u0645\.?|\u0642\.?\s?\u0645\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0642\u0628\u0644/i,/^\u0628\u0639\u062f/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0631[1234]/i,wide:/^\u0627\u0644\u0631\u0628\u0639 [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u064a\u0641\u0645\u0623\u0645\u0633\u0646\u062f]/i,abbreviated:/^(\u064a\u0646|\u0641|\u0645\u0627\u0631|\u0623\u0628|\u0645\u0627\u064a|\u064a\u0648\u0646|\u064a\u0648\u0644|\u0623\u063a|\u0633|\u0623\u0643|\u0646|\u062f)/i,wide:/^(\u064a\u0646|\u0641|\u0645\u0627\u0631|\u0623\u0628|\u0645\u0627\u064a|\u064a\u0648\u0646|\u064a\u0648\u0644|\u0623\u063a|\u0633|\u0623\u0643|\u0646|\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u064a/i,/^\u0641/i,/^\u0645/i,/^\u0623/i,/^\u0645/i,/^\u064a/i,/^\u064a/i,/^\u0623/i,/^\u0633/i,/^\u0623/i,/^\u0646/i,/^\u062f/i],any:[/^\u064a\u0646/i,/^\u0641/i,/^\u0645\u0627\u0631/i,/^\u0623\u0628/i,/^\u0645\u0627\u064a/i,/^\u064a\u0648\u0646/i,/^\u064a\u0648\u0644/i,/^\u0623\u063a/i,/^\u0633/i,/^\u0623\u0643/i,/^\u0646/i,/^\u062f/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u062d\u0646\u062b\u0631\u062e\u062c\u0633]/i,short:/^(\u0623\u062d\u062f|\u0627\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,abbreviated:/^(\u0623\u062d\u062f|\u0627\u062b\u0646|\u062b\u0644\u0627|\u0623\u0631\u0628|\u062e\u0645\u064a|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,wide:/^(\u0627\u0644\u0623\u062d\u062f|\u0627\u0644\u0627\u062b\u0646\u064a\u0646|\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621|\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621|\u0627\u0644\u062e\u0645\u064a\u0633|\u0627\u0644\u062c\u0645\u0639\u0629|\u0627\u0644\u0633\u0628\u062a)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u062d/i,/^\u0646/i,/^\u062b/i,/^\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i],wide:[/^\u0627\u0644\u0623\u062d\u062f/i,/^\u0627\u0644\u0627\u062b\u0646\u064a\u0646/i,/^\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621/i,/^\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621/i,/^\u0627\u0644\u062e\u0645\u064a\u0633/i,/^\u0627\u0644\u062c\u0645\u0639\u0629/i,/^\u0627\u0644\u0633\u0628\u062a/i],any:[/^\u0623\u062d/i,/^\u0627\u062b/i,/^\u062b/i,/^\u0623\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},ee={lessThanXSeconds:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u0632\u0648\u0632 \u062b\u0648\u0627\u0646\u064a",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0648\u0627\u0646\u064a",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0627\u0646\u064a\u0629"},xSeconds:{one:"\u062b\u0627\u0646\u064a\u0629",two:"\u0632\u0648\u0632 \u062b\u0648\u0627\u0646\u064a",threeToTen:"{{count}} \u062b\u0648\u0627\u0646\u064a",other:"{{count}} \u062b\u0627\u0646\u064a\u0629"},halfAMinute:"\u0646\u0635 \u062f\u0642\u064a\u0642\u0629",lessThanXMinutes:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u0627\u064a\u0642",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u064a\u0642\u0629"},xMinutes:{one:"\u062f\u0642\u064a\u0642\u0629",two:"\u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"{{count}} \u062f\u0642\u0627\u064a\u0642",other:"{{count}} \u062f\u0642\u064a\u0642\u0629"},aboutXHours:{one:"\u0633\u0627\u0639\u0629 \u062a\u0642\u0631\u064a\u0628",two:"\u0633\u0627\u0639\u062a\u064a\u0646 \u062a\u0642\u0631\u064a\u0628",threeToTen:"{{count}} \u0633\u0648\u0627\u064a\u0639 \u062a\u0642\u0631\u064a\u0628",other:"{{count}} \u0633\u0627\u0639\u0629 \u062a\u0642\u0631\u064a\u0628"},xHours:{one:"\u0633\u0627\u0639\u0629",two:"\u0633\u0627\u0639\u062a\u064a\u0646",threeToTen:"{{count}} \u0633\u0648\u0627\u064a\u0639",other:"{{count}} \u0633\u0627\u0639\u0629"},xDays:{one:"\u0646\u0647\u0627\u0631",two:"\u0646\u0647\u0627\u0631\u064a\u0646",threeToTen:"{{count}} \u0623\u064a\u0627\u0645",other:"{{count}} \u064a\u0648\u0645"},aboutXWeeks:{one:"\u062c\u0645\u0639\u0629 \u062a\u0642\u0631\u064a\u0628",two:"\u062c\u0645\u0639\u062a\u064a\u0646 \u062a\u0642\u0631\u064a\u0628",threeToTen:"{{count}} \u062c\u0645\u0627\u0639 \u062a\u0642\u0631\u064a\u0628",other:"{{count}} \u062c\u0645\u0639\u0629 \u062a\u0642\u0631\u064a\u0628"},xWeeks:{one:"\u062c\u0645\u0639\u0629",two:"\u062c\u0645\u0639\u062a\u064a\u0646",threeToTen:"{{count}} \u062c\u0645\u0627\u0639",other:"{{count}} \u062c\u0645\u0639\u0629"},aboutXMonths:{one:"\u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628",two:"\u0634\u0647\u0631\u064a\u0646 \u062a\u0642\u0631\u064a\u0628",threeToTen:"{{count}} \u0623\u0634\u0647\u0631\u0629 \u062a\u0642\u0631\u064a\u0628",other:"{{count}} \u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628"},xMonths:{one:"\u0634\u0647\u0631",two:"\u0634\u0647\u0631\u064a\u0646",threeToTen:"{{count}} \u0623\u0634\u0647\u0631\u0629",other:"{{count}} \u0634\u0647\u0631"},aboutXYears:{one:"\u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628"},xYears:{one:"\u0639\u0627\u0645",two:"\u0639\u0627\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645",other:"{{count}} \u0639\u0627\u0645"},overXYears:{one:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645",two:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645\u064a\u0646",threeToTen:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0623\u0639\u0648\u0627\u0645",other:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0639\u0627\u0645"},almostXYears:{one:"\u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628"}},ne=function(t,e,n){var r,i=ee[t];return r="string"===typeof i?i:1===e?i.one:2===e?i.two:e<=10?i.threeToTen.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u0641\u064a "+r:"\u0639\u0646\u062f\u0648 "+r:r},re={date:U({formats:{full:"EEEE\u060c do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u0645\u0639' {{time}}",long:"{{date}} '\u0645\u0639' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ie={lastWeek:"eeee '\u0625\u0644\u064a \u0641\u0627\u062a \u0645\u0639' p",yesterday:"'\u0627\u0644\u0628\u0627\u0631\u062d \u0645\u0639' p",today:"'\u0627\u0644\u064a\u0648\u0645 \u0645\u0639' p",tomorrow:"'\u063a\u062f\u0648\u0629 \u0645\u0639' p",nextWeek:"eeee '\u0627\u0644\u062c\u0645\u0639\u0629 \u0627\u0644\u062c\u0627\u064a\u0629 \u0645\u0639' p '\u0646\u0647\u0627\u0631'",other:"P"},oe={code:"ar-TN",formatDistance:ne,formatLong:re,formatRelative:function(t){return ie[t]},localize:{ordinalNumber:function(t){return String(t)},era:K({values:{narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f","\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u06311","\u06312","\u06313","\u06314"],wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u062f","\u0646","\u0623","\u0633","\u0623","\u062c","\u062c","\u0645","\u0623","\u0645","\u0641","\u062c"],abbreviated:["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"],wide:["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u062d","\u0646","\u062b","\u0631","\u062e","\u062c","\u0633"],short:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],abbreviated:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],wide:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0635",pm:"\u0639",morning:"\u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0627\u0644\u0642\u0627\u064a\u0644\u0629",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0642\u0627\u064a\u0644\u0629",evening:"\u0627\u0644\u0639\u0634\u064a\u0629",night:"\u0627\u0644\u0644\u064a\u0644",midnight:"\u0646\u0635 \u0627\u0644\u0644\u064a\u0644"},abbreviated:{am:"\u0635",pm:"\u0639",morning:"\u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0627\u0644\u0642\u0627\u064a\u0644\u0629",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0642\u0627\u064a\u0644\u0629",evening:"\u0627\u0644\u0639\u0634\u064a\u0629",night:"\u0627\u0644\u0644\u064a\u0644",midnight:"\u0646\u0635 \u0627\u0644\u0644\u064a\u0644"},wide:{am:"\u0635",pm:"\u0639",morning:"\u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0627\u0644\u0642\u0627\u064a\u0644\u0629",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0642\u0627\u064a\u0644\u0629",evening:"\u0627\u0644\u0639\u0634\u064a\u0629",night:"\u0627\u0644\u0644\u064a\u0644",midnight:"\u0646\u0635 \u0627\u0644\u0644\u064a\u0644"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0635",pm:"\u0639",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0641\u064a \u0627\u0644\u0642\u0627\u064a\u0644\u0629",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0642\u0627\u064a\u0644\u0629",evening:"\u0641\u064a \u0627\u0644\u0639\u0634\u064a\u0629",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644",midnight:"\u0646\u0635 \u0627\u0644\u0644\u064a\u0644"},abbreviated:{am:"\u0635",pm:"\u0639",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0641\u064a \u0627\u0644\u0642\u0627\u064a\u0644\u0629",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0642\u0627\u064a\u0644\u0629",evening:"\u0641\u064a \u0627\u0644\u0639\u0634\u064a\u0629",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644",midnight:"\u0646\u0635 \u0627\u0644\u0644\u064a\u0644"},wide:{am:"\u0635",pm:"\u0639",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",noon:"\u0641\u064a \u0627\u0644\u0642\u0627\u064a\u0644\u0629",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0642\u0627\u064a\u0644\u0629",evening:"\u0641\u064a \u0627\u0644\u0639\u0634\u064a\u0629",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644",midnight:"\u0646\u0635 \u0627\u0644\u0644\u064a\u0644"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/[\u0642\u0628]/,abbreviated:/[\u0642\u0628]\.\u0645\./,wide:/(\u0642\u0628\u0644|\u0628\u0639\u062f) \u0627\u0644\u0645\u064a\u0644\u0627\u062f/},defaultMatchWidth:"wide",parsePatterns:{any:[/\u0642\u0628\u0644/,/\u0628\u0639\u062f/]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/\u0631[1234]/,wide:/\u0627\u0644\u0631\u0628\u0639 (\u0627\u0644\u0623\u0648\u0644|\u0627\u0644\u062b\u0627\u0646\u064a|\u0627\u0644\u062b\u0627\u0644\u062b|\u0627\u0644\u0631\u0627\u0628\u0639)/},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u062c\u0641\u0645\u0623\u0633\u0646\u062f]/,abbreviated:/^(\u062c\u0627\u0646\u0641\u064a|\u0641\u064a\u0641\u0631\u064a|\u0645\u0627\u0631\u0633|\u0623\u0641\u0631\u064a\u0644|\u0645\u0627\u064a|\u062c\u0648\u0627\u0646|\u062c\u0648\u064a\u0644\u064a\u0629|\u0623\u0648\u062a|\u0633\u0628\u062a\u0645\u0628\u0631|\u0623\u0643\u062a\u0648\u0628\u0631|\u0646\u0648\u0641\u0645\u0628\u0631|\u062f\u064a\u0633\u0645\u0628\u0631)/,wide:/^(\u062c\u0627\u0646\u0641\u064a|\u0641\u064a\u0641\u0631\u064a|\u0645\u0627\u0631\u0633|\u0623\u0641\u0631\u064a\u0644|\u0645\u0627\u064a|\u062c\u0648\u0627\u0646|\u062c\u0648\u064a\u0644\u064a\u0629|\u0623\u0648\u062a|\u0633\u0628\u062a\u0645\u0628\u0631|\u0623\u0643\u062a\u0648\u0628\u0631|\u0646\u0648\u0641\u0645\u0628\u0631|\u062f\u064a\u0633\u0645\u0628\u0631)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u062c/i,/^\u0641/i,/^\u0645/i,/^\u0623/i,/^\u0645/i,/^\u062c/i,/^\u062c/i,/^\u0623/i,/^\u0633/i,/^\u0623/i,/^\u0646/i,/^\u062f/i],any:[/^\u062c\u0627\u0646\u0641\u064a/i,/^\u0641\u064a\u0641\u0631\u064a/i,/^\u0645\u0627\u0631\u0633/i,/^\u0623\u0641\u0631\u064a\u0644/i,/^\u0645\u0627\u064a/i,/^\u062c\u0648\u0627\u0646/i,/^\u062c\u0648\u064a\u0644\u064a\u0629/i,/^\u0623\u0648\u062a/i,/^\u0633\u0628\u062a\u0645\u0628\u0631/i,/^\u0623\u0643\u062a\u0648\u0628\u0631/i,/^\u0646\u0648\u0641\u0645\u0628\u0631/i,/^\u062f\u064a\u0633\u0645\u0628\u0631/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u062d\u0646\u062b\u0631\u062e\u062c\u0633]/i,short:/^(\u0623\u062d\u062f|\u0627\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,abbreviated:/^(\u0623\u062d\u062f|\u0627\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,wide:/^(\u0627\u0644\u0623\u062d\u062f|\u0627\u0644\u0627\u062b\u0646\u064a\u0646|\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621|\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621|\u0627\u0644\u062e\u0645\u064a\u0633|\u0627\u0644\u062c\u0645\u0639\u0629|\u0627\u0644\u0633\u0628\u062a)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u062d/i,/^\u0646/i,/^\u062b/i,/^\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i],wide:[/^\u0627\u0644\u0623\u062d\u062f/i,/^\u0627\u0644\u0627\u062b\u0646\u064a\u0646/i,/^\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621/i,/^\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621/i,/^\u0627\u0644\u062e\u0645\u064a\u0633/i,/^\u0627\u0644\u062c\u0645\u0639\u0629/i,/^\u0627\u0644\u0633\u0628\u062a/i],any:[/^\u0623\u062d/i,/^\u0627\u062b/i,/^\u062b/i,/^\u0623\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u0635|\u0639|\u0646 \u0644|\u0644|(\u0641\u064a|\u0645\u0639) (\u0635\u0628\u0627\u062d|\u0642\u0627\u064a\u0644\u0629|\u0639\u0634\u064a\u0629|\u0644\u064a\u0644))/,any:/^([\u0635\u0639]|\u0646\u0635 \u0627\u0644\u0644\u064a\u0644|\u0642\u0627\u064a\u0644\u0629|(\u0641\u064a|\u0645\u0639) (\u0635\u0628\u0627\u062d|\u0642\u0627\u064a\u0644\u0629|\u0639\u0634\u064a\u0629|\u0644\u064a\u0644))/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u0635/,pm:/^\u0639/,midnight:/\u0646\u0635 \u0627\u0644\u0644\u064a\u0644/,noon:/\u0642\u0627\u064a\u0644\u0629/,afternoon:/\u0628\u0639\u062f \u0627\u0644\u0642\u0627\u064a\u0644\u0629/,morning:/\u0635\u0628\u0627\u062d/,evening:/\u0639\u0634\u064a\u0629/,night:/\u0644\u064a\u0644/}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},ae={lessThanXSeconds:{one:"bir saniy\u0259d\u0259n az",other:"{{count}} bir saniy\u0259d\u0259n az"},xSeconds:{one:"1 saniy\u0259",other:"{{count}} saniy\u0259"},halfAMinute:"yar\u0131m d\u0259qiq\u0259",lessThanXMinutes:{one:"bir d\u0259qiq\u0259d\u0259n az",other:"{{count}} bir d\u0259qiq\u0259d\u0259n az"},xMinutes:{one:"bir d\u0259qiq\u0259",other:"{{count}} d\u0259qiq\u0259"},aboutXHours:{one:"t\u0259xmin\u0259n 1 saat",other:"t\u0259xmin\u0259n {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 g\xfcn",other:"{{count}} g\xfcn"},aboutXWeeks:{one:"t\u0259xmin\u0259n 1 h\u0259ft\u0259",other:"t\u0259xmin\u0259n {{count}} h\u0259ft\u0259"},xWeeks:{one:"1 h\u0259ft\u0259",other:"{{count}} h\u0259ft\u0259"},aboutXMonths:{one:"t\u0259xmin\u0259n 1 ay",other:"t\u0259xmin\u0259n {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"t\u0259xmin\u0259n 1 il",other:"t\u0259xmin\u0259n {{count}} il"},xYears:{one:"1 il",other:"{{count}} il"},overXYears:{one:"1 ild\u0259n \xe7ox",other:"{{count}} ild\u0259n \xe7ox"},almostXYears:{one:"dem\u0259k olar ki 1 il",other:"dem\u0259k olar ki {{count}} il"}},se=function(t,e,n){var r,i=ae[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+" sonra":r+" \u0259vv\u0259l":r},le={date:U({formats:{full:"EEEE, do MMMM y 'il'",long:"do MMMM y 'il'",medium:"d MMM y 'il'",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}} - 'd\u0259'",long:"{{date}} {{time}} - 'd\u0259'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ue={lastWeek:"'sonuncu' eeee p -'d\u0259'",yesterday:"'d\xfcn\u0259n' p -'d\u0259'",today:"'bug\xfcn' p -'d\u0259'",tomorrow:"'sabah' p -'d\u0259'",nextWeek:"eeee p -'d\u0259'",other:"P"},ce={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"},de={code:"az",formatDistance:se,formatLong:le,formatRelative:function(t,e,n,r){return ue[t]},localize:{ordinalNumber:function(t,e){var n=Number(t),r=function(t){if(0===t)return t+"-\u0131nc\u0131";var e=t%10,n=t%100-e,r=t>=100?100:null;return ce[e]?ce[e]:ce[n]?ce[n]:null!==r?ce[r]:""}(n);return n+r},era:K({values:{narrow:["e.\u0259","b.e"],abbreviated:["e.\u0259","b.e"],wide:["eram\u0131zdan \u0259vv\u0259l","bizim era"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ci kvartal","2ci kvartal","3c\xfc kvartal","4c\xfc kvartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["Y","F","M","A","M","\u0130","\u0130","A","S","O","N","D"],abbreviated:["Yan","Fev","Mar","Apr","May","\u0130yun","\u0130yul","Avq","Sen","Okt","Noy","Dek"],wide:["Yanvar","Fevral","Mart","Aprel","May","\u0130yun","\u0130yul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},defaultWidth:"wide"}),day:K({values:{narrow:["B.","B.e","\xc7.a","\xc7.","C.a","C.","\u015e."],short:["B.","B.e","\xc7.a","\xc7.","C.a","C.","\u015e."],abbreviated:["Baz","Baz.e","\xc7\u0259r.a","\xc7\u0259r","C\xfcm.a","C\xfcm","\u015e\u0259"],wide:["Bazar","Bazar ert\u0259si","\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131","\xc7\u0259r\u015f\u0259nb\u0259","C\xfcm\u0259 ax\u015fam\u0131","C\xfcm\u0259","\u015e\u0259nb\u0259"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"am",pm:"pm",midnight:"gec\u0259yar\u0131",noon:"g\xfcn",morning:"s\u0259h\u0259r",afternoon:"g\xfcnd\xfcz",evening:"ax\u015fam",night:"gec\u0259"},abbreviated:{am:"AM",pm:"PM",midnight:"gec\u0259yar\u0131",noon:"g\xfcn",morning:"s\u0259h\u0259r",afternoon:"g\xfcnd\xfcz",evening:"ax\u015fam",night:"gec\u0259"},wide:{am:"a.m.",pm:"p.m.",midnight:"gec\u0259yar\u0131",noon:"g\xfcn",morning:"s\u0259h\u0259r",afternoon:"g\xfcnd\xfcz",evening:"ax\u015fam",night:"gec\u0259"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"gec\u0259yar\u0131",noon:"g\xfcn",morning:"s\u0259h\u0259r",afternoon:"g\xfcnd\xfcz",evening:"ax\u015fam",night:"gec\u0259"},abbreviated:{am:"AM",pm:"PM",midnight:"gec\u0259yar\u0131",noon:"g\xfcn",morning:"s\u0259h\u0259r",afternoon:"g\xfcnd\xfcz",evening:"ax\u015fam",night:"gec\u0259"},wide:{am:"a.m.",pm:"p.m.",midnight:"gec\u0259yar\u0131",noon:"g\xfcn",morning:"s\u0259h\u0259r",afternoon:"g\xfcnd\xfcz",evening:"ax\u015fam",night:"gec\u0259"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-?(ci|inci|nci|uncu|\xfcnc\xfc|nc\u0131))?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(b|a)$/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i,wide:/^(bizim eradan \u0259vv\u0259l|bizim era)$/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b$/i,/^(a|c)$/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]$/i,abbreviated:/^K[1234]$/i,wide:/^[1234](ci)? kvartal$/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[(?-i)yfmaisond]$/i,abbreviated:/^(Yan|Fev|Mar|Apr|May|\u0130yun|\u0130yul|Avq|Sen|Okt|Noy|Dek)$/i,wide:/^(Yanvar|Fevral|Mart|Aprel|May|\u0130yun|\u0130yul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^[(?-i)y]$/i,/^[(?-i)f]$/i,/^[(?-i)m]$/i,/^[(?-i)a]$/i,/^[(?-i)m]$/i,/^[(?-i)i]$/i,/^[(?-i)i]$/i,/^[(?-i)a]$/i,/^[(?-i)s]$/i,/^[(?-i)o]$/i,/^[(?-i)n]$/i,/^[(?-i)d]$/i],abbreviated:[/^Yan$/i,/^Fev$/i,/^Mar$/i,/^Apr$/i,/^May$/i,/^\u0130yun$/i,/^\u0130yul$/i,/^Avg$/i,/^Sen$/i,/^Okt$/i,/^Noy$/i,/^Dek$/i],wide:[/^Yanvar$/i,/^Fevral$/i,/^Mart$/i,/^Aprel$/i,/^May$/i,/^\u0130yun$/i,/^\u0130yul$/i,/^Avgust$/i,/^Sentyabr$/i,/^Oktyabr$/i,/^Noyabr$/i,/^Dekabr$/i]},defaultParseWidth:"narrow"}),day:Q({matchPatterns:{narrow:/^(B\.|B\.e|\xc7\.a|\xc7\.|C\.a|C\.|\u015e\.)$/i,short:/^(B\.|B\.e|\xc7\.a|\xc7\.|C\.a|C\.|\u015e\.)$/i,abbreviated:/^(Baz\.e|\xc7\u0259r|\xc7\u0259r\.a|C\xfcm|C\xfcm\.a|\u015e\u0259)$/i,wide:/^(Bazar|Bazar ert\u0259si|\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131|\xc7\u0259r\u015f\u0259nb\u0259|C\xfcm\u0259 ax\u015fam\u0131|C\xfcm\u0259|\u015e\u0259nb\u0259)$/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B\.$/i,/^B\.e$/i,/^\xc7\.a$/i,/^\xc7\.$/i,/^C\.a$/i,/^C\.$/i,/^\u015e\.$/i],abbreviated:[/^Baz$/i,/^Baz\.e$/i,/^\xc7\u0259r\.a$/i,/^\xc7\u0259r$/i,/^C\xfcm\.a$/i,/^C\xfcm$/i,/^\u015e\u0259$/i],wide:[/^Bazar$/i,/^Bazar ert\u0259si$/i,/^\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131$/i,/^\xc7\u0259r\u015f\u0259nb\u0259$/i,/^C\xfcm\u0259 ax\u015fam\u0131$/i,/^C\xfcm\u0259$/i,/^\u015e\u0259nb\u0259$/i],any:[/^B\.$/i,/^B\.e$/i,/^\xc7\.a$/i,/^\xc7\.$/i,/^C\.a$/i,/^C\.$/i,/^\u015e\.$/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|gec\u0259yar\u0131|g\xfcn|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam|gec\u0259)$/i,any:/^(am|pm|a\.m\.|p\.m\.|AM|PM|gec\u0259yar\u0131|g\xfcn|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam|gec\u0259)$/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a$/i,pm:/^p$/i,midnight:/^gec\u0259yar\u0131$/i,noon:/^g\xfcn$/i,morning:/s\u0259h\u0259r$/i,afternoon:/g\xfcnd\xfcz$/i,evening:/ax\u015fam$/i,night:/gec\u0259$/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function he(t,e){if(void 0!==t.one&&1===e)return t.one;var n=e%10,r=e%100;return 1===n&&11!==r?t.singularNominative.replace("{{count}}",String(e)):n>=2&&n<=4&&(r<10||r>20)?t.singularGenitive.replace("{{count}}",String(e)):t.pluralGenitive.replace("{{count}}",String(e))}function fe(t){return function(e,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?t.future?he(t.future,e):"\u043f\u0440\u0430\u0437 "+he(t.regular,e):t.past?he(t.past,e):he(t.regular,e)+" \u0442\u0430\u043c\u0443":he(t.regular,e)}}var pe={lessThanXSeconds:fe({regular:{one:"\u043c\u0435\u043d\u0448 \u0437\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:fe({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0442\u0430\u043c\u0443",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0442\u0430\u043c\u0443",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u0442\u0430\u043c\u0443"},future:{singularNominative:"\u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:function(t,e){return e&&e.addSuffix?e.comparison&&e.comparison>0?"\u043f\u0440\u0430\u0437 \u043f\u0430\u045e\u0445\u0432\u0456\u043b\u0456\u043d\u044b":"\u043f\u0430\u045e\u0445\u0432\u0456\u043b\u0456\u043d\u044b \u0442\u0430\u043c\u0443":"\u043f\u0430\u045e\u0445\u0432\u0456\u043b\u0456\u043d\u044b"},lessThanXMinutes:fe({regular:{one:"\u043c\u0435\u043d\u0448 \u0437\u0430 \u0445\u0432\u0456\u043b\u0456\u043d\u0443",singularNominative:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u0443",singularGenitive:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u044b",pluralGenitive:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d"},future:{one:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 \u0445\u0432\u0456\u043b\u0456\u043d\u0443",singularNominative:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u0443",singularGenitive:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u044b",pluralGenitive:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d"}}),xMinutes:fe({regular:{singularNominative:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u0430",singularGenitive:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u044b",pluralGenitive:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d"},past:{singularNominative:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",singularGenitive:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u044b \u0442\u0430\u043c\u0443",pluralGenitive:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d \u0442\u0430\u043c\u0443"},future:{singularNominative:"\u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u0443",singularGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u044b",pluralGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d"}}),aboutXHours:fe({regular:{singularNominative:"\u043a\u0430\u043b\u044f {{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u044b",singularGenitive:"\u043a\u0430\u043b\u044f {{count}} \u0433\u0430\u0434\u0437\u0456\u043d",pluralGenitive:"\u043a\u0430\u043b\u044f {{count}} \u0433\u0430\u0434\u0437\u0456\u043d"},future:{singularNominative:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u0443",singularGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u044b",pluralGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d"}}),xHours:fe({regular:{singularNominative:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u0430",singularGenitive:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u044b",pluralGenitive:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d"},past:{singularNominative:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",singularGenitive:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u044b \u0442\u0430\u043c\u0443",pluralGenitive:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d \u0442\u0430\u043c\u0443"},future:{singularNominative:"\u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u0443",singularGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u044b",pluralGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d"}}),xDays:fe({regular:{singularNominative:"{{count}} \u0434\u0437\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043d\u0456",pluralGenitive:"{{count}} \u0434\u0437\u0451\u043d"}}),aboutXWeeks:fe({regular:{singularNominative:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",singularGenitive:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e",pluralGenitive:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"},future:{singularNominative:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u044b",pluralGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"}}),xWeeks:fe({regular:{singularNominative:"{{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u044b",pluralGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"}}),aboutXMonths:fe({regular:{singularNominative:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",singularGenitive:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e",pluralGenitive:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"},future:{singularNominative:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u044b",pluralGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"}}),xMonths:fe({regular:{singularNominative:"{{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u044b",pluralGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"}}),aboutXYears:fe({regular:{singularNominative:"\u043a\u0430\u043b\u044f {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u043a\u0430\u043b\u044f {{count}} \u0433\u0430\u0434\u043e\u045e",pluralGenitive:"\u043a\u0430\u043b\u044f {{count}} \u0433\u0430\u0434\u043e\u045e"},future:{singularNominative:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u043e\u045e"}}),xYears:fe({regular:{singularNominative:"{{count}} \u0433\u043e\u0434",singularGenitive:"{{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"{{count}} \u0433\u0430\u0434\u043e\u045e"}}),overXYears:fe({regular:{singularNominative:"\u0431\u043e\u043b\u044c\u0448 \u0437\u0430 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0431\u043e\u043b\u044c\u0448 \u0437\u0430 {{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448 \u0437\u0430 {{count}} \u0433\u0430\u0434\u043e\u045e"},future:{singularNominative:"\u0431\u043e\u043b\u044c\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0431\u043e\u043b\u044c\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u043e\u045e"}}),almostXYears:fe({regular:{singularNominative:"\u0430\u043c\u0430\u043b\u044c {{count}} \u0433\u043e\u0434",singularGenitive:"\u0430\u043c\u0430\u043b\u044c {{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"\u0430\u043c\u0430\u043b\u044c {{count}} \u0433\u0430\u0434\u043e\u045e"},future:{singularNominative:"\u0430\u043c\u0430\u043b\u044c \u043f\u0440\u0430\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0430\u043c\u0430\u043b\u044c \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"\u0430\u043c\u0430\u043b\u044c \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u043e\u045e"}})},me=function(t,e,n){return n=n||{},pe[t](e,n)},ge={date:U({formats:{full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})};function be(t,e,n){o(2,arguments);var r=b(t,n),i=b(e,n);return r.getTime()===i.getTime()}var ve=["\u043d\u044f\u0434\u0437\u0435\u043b\u044e","\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a","\u0430\u045e\u0442\u043e\u0440\u0430\u043a","\u0441\u0435\u0440\u0430\u0434\u0443","\u0447\u0430\u0446\u0432\u0435\u0440","\u043f\u044f\u0442\u043d\u0456\u0446\u0443","\u0441\u0443\u0431\u043e\u0442\u0443"];function ye(t){return"'\u0443 "+ve[t]+" \u0430' p"}var we={lastWeek:function(t,e,n){var r=a(t),i=r.getUTCDay();return be(r,e,n)?ye(i):function(t){var e=ve[t];switch(t){case 0:case 3:case 5:case 6:return"'\u0443 \u043c\u0456\u043d\u0443\u043b\u0443\u044e "+e+" \u0430' p";case 1:case 2:case 4:return"'\u0443 \u043c\u0456\u043d\u0443\u043b\u044b "+e+" \u0430' p"}}(i)},yesterday:"'\u0443\u0447\u043e\u0440\u0430 \u0430' p",today:"'\u0441\u0451\u043d\u043d\u044f \u0430' p",tomorrow:"'\u0437\u0430\u045e\u0442\u0440\u0430 \u0430' p",nextWeek:function(t,e,n){var r=a(t),i=r.getUTCDay();return be(r,e,n)?ye(i):function(t){var e=ve[t];switch(t){case 0:case 3:case 5:case 6:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e "+e+" \u0430' p";case 1:case 2:case 4:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u044b "+e+" \u0430' p"}}(i)},other:"P"},ke=function(t,e,n,r){var i=we[t];return"function"===typeof i?i(e,n,r):i},_e={code:"be",formatDistance:me,formatLong:ge,formatRelative:ke,localize:{ordinalNumber:function(t,e){var n=String(null===e||void 0===e?void 0:e.unit),r=Number(t);return r+("date"===n?"-\u0433\u0430":"hour"===n||"minute"===n||"second"===n?"-\u044f":r%10!==2&&r%10!==3||r%100===12||r%100===13?"-\u044b":"-\u0456")},era:K({values:{narrow:["\u0434\u0430 \u043d.\u044d.","\u043d.\u044d."],abbreviated:["\u0434\u0430 \u043d. \u044d.","\u043d. \u044d."],wide:["\u0434\u0430 \u043d\u0430\u0448\u0430\u0439 \u044d\u0440\u044b","\u043d\u0430\u0448\u0430\u0439 \u044d\u0440\u044b"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1-\u044b \u043a\u0432.","2-\u0456 \u043a\u0432.","3-\u0456 \u043a\u0432.","4-\u044b \u043a\u0432."],wide:["1-\u044b \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0456 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0456 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u044b \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0421","\u041b","\u0421","\u041a","\u041c","\u0427","\u041b","\u0416","\u0412","\u041a","\u041b","\u0421"],abbreviated:["\u0441\u0442\u0443\u0434\u0437.","\u043b\u044e\u0442.","\u0441\u0430\u043a.","\u043a\u0440\u0430\u0441.","\u043c\u0430\u0439","\u0447\u044d\u0440\u0432.","\u043b\u0456\u043f.","\u0436\u043d.","\u0432\u0435\u0440.","\u043a\u0430\u0441\u0442\u0440.","\u043b\u0456\u0441\u0442.","\u0441\u043d\u0435\u0436."],wide:["\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c","\u043b\u044e\u0442\u044b","\u0441\u0430\u043a\u0430\u0432\u0456\u043a","\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a","\u043c\u0430\u0439","\u0447\u044d\u0440\u0432\u0435\u043d\u044c","\u043b\u0456\u043f\u0435\u043d\u044c","\u0436\u043d\u0456\u0432\u0435\u043d\u044c","\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c","\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a","\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434","\u0441\u043d\u0435\u0436\u0430\u043d\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u0421","\u041b","\u0421","\u041a","\u041c","\u0427","\u041b","\u0416","\u0412","\u041a","\u041b","\u0421"],abbreviated:["\u0441\u0442\u0443\u0434\u0437.","\u043b\u044e\u0442.","\u0441\u0430\u043a.","\u043a\u0440\u0430\u0441.","\u043c\u0430\u044f","\u0447\u044d\u0440\u0432.","\u043b\u0456\u043f.","\u0436\u043d.","\u0432\u0435\u0440.","\u043a\u0430\u0441\u0442\u0440.","\u043b\u0456\u0441\u0442.","\u0441\u043d\u0435\u0436."],wide:["\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f","\u043b\u044e\u0442\u0430\u0433\u0430","\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430","\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430","\u043c\u0430\u044f","\u0447\u044d\u0440\u0432\u0435\u043d\u044f","\u043b\u0456\u043f\u0435\u043d\u044f","\u0436\u043d\u0456\u045e\u043d\u044f","\u0432\u0435\u0440\u0430\u0441\u043d\u044f","\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430","\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430","\u0441\u043d\u0435\u0436\u043d\u044f"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["\u041d","\u041f","\u0410","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0430\u045e","\u0441\u0440","\u0447\u0446","\u043f\u0442","\u0441\u0431"],abbreviated:["\u043d\u044f\u0434\u0437","\u043f\u0430\u043d","\u0430\u045e\u0442","\u0441\u0435\u0440","\u0447\u0430\u0446","\u043f\u044f\u0442","\u0441\u0443\u0431"],wide:["\u043d\u044f\u0434\u0437\u0435\u043b\u044f","\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a","\u0430\u045e\u0442\u043e\u0440\u0430\u043a","\u0441\u0435\u0440\u0430\u0434\u0430","\u0447\u0430\u0446\u0432\u0435\u0440","\u043f\u044f\u0442\u043d\u0456\u0446\u0430","\u0441\u0443\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d.",noon:"\u043f\u043e\u045e\u0434.",morning:"\u0440\u0430\u043d.",afternoon:"\u0434\u0437\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d.",noon:"\u043f\u043e\u045e\u0434.",morning:"\u0440\u0430\u043d.",afternoon:"\u0434\u0437\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d\u0430\u0447",noon:"\u043f\u043e\u045e\u0434\u0437\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u0456\u0446\u0430",afternoon:"\u0434\u0437\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0430\u0440",night:"\u043d\u043e\u0447"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d.",noon:"\u043f\u043e\u045e\u0434.",morning:"\u0440\u0430\u043d.",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044b"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d.",noon:"\u043f\u043e\u045e\u0434.",morning:"\u0440\u0430\u043d.",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044b"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d\u0430\u0447",noon:"\u043f\u043e\u045e\u0434\u0437\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u0456\u0446\u044b",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447\u0430\u0440\u0430",night:"\u043d\u043e\u0447\u044b"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-?(\u0435|\u044f|\u0433\u0430|\u0456|\u044b|\u0430\u0435|\u0430\u044f|\u044f\u044f|\u0448\u044b|\u0433\u0456|\u0446\u0456|\u0442\u044b|\u043c\u044b))?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^((\u0434\u0430 )?\u043d\.?\s?\u044d\.?)/i,abbreviated:/^((\u0434\u0430 )?\u043d\.?\s?\u044d\.?)/i,wide:/^(\u0434\u0430 \u043d\u0430\u0448\u0430\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0430\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0430 \u044d\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u044b\u0456]?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u044b\u0456]?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u0441\u043b\u043a\u043c\u0447\u0436\u0432]/i,abbreviated:/^(\u0441\u0442\u0443\u0434\u0437|\u043b\u044e\u0442|\u0441\u0430\u043a|\u043a\u0440\u0430\u0441|\u043c\u0430[\u0439\u044f]|\u0447\u044d\u0440\u0432|\u043b\u0456\u043f|\u0436\u043d|\u0432\u0435\u0440|\u043a\u0430\u0441\u0442\u0440|\u043b\u0456\u0441\u0442|\u0441\u043d\u0435\u0436)\.?/i,wide:/^(\u0441\u0442\u0443\u0434\u0437\u0435\u043d[\u044c\u044f]|\u043b\u044e\u0442(\u044b|\u0430\u0433\u0430)|\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430?|\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430?|\u043c\u0430[\u0439\u044f]|\u0447\u044d\u0440\u0432\u0435\u043d[\u044c\u044f]|\u043b\u0456\u043f\u0435\u043d[\u044c\u044f]|\u0436\u043d\u0456(\u0432\u0435\u043d\u044c|\u045e\u043d\u044f)|\u0432\u0435\u0440\u0430\u0441(\u0435\u043d\u044c|\u043d\u044f)|\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430?|\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430?|\u0441\u043d\u0435\u0436(\u0430\u043d\u044c|\u043d\u044f))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0441/i,/^\u043b/i,/^\u0441/i,/^\u043a/i,/^\u043c/i,/^\u0447/i,/^\u043b/i,/^\u0436/i,/^\u0432/i,/^\u043a/i,/^\u043b/i,/^\u0441/i],any:[/^\u0441\u0442/i,/^\u043b\u044e/i,/^\u0441\u0430/i,/^\u043a\u0440/i,/^\u043c\u0430/i,/^\u0447/i,/^\u043b\u0456\u043f/i,/^\u0436/i,/^\u0432/i,/^\u043a\u0430/i,/^\u043b\u0456\u0441/i,/^\u0441\u043d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u043d\u043f\u0430\u0441\u0447]/i,short:/^(\u043d\u0434|\u043d\u044f|\u043f\u043d|\u043f\u0430|\u0430\u045e|\u0430\u0442|\u0441\u0440|\u0441\u0435|\u0447\u0446|\u0447\u0430|\u043f\u0442|\u043f\u044f|\u0441\u0431|\u0441\u0443)\.?/i,abbreviated:/^(\u043d\u044f\u0434\u0437?|\u043d\u0434\u0437|\u043f\u043d\u0434|\u043f\u0430\u043d|\u0430\u045e\u0442|\u0441\u0440\u0434|\u0441\u0435\u0440|\u0447\u0446\u0432|\u0447\u0430\u0446|\u043f\u0442\u043d|\u043f\u044f\u0442|\u0441\u0443\u0431).?/i,wide:/^(\u043d\u044f\u0434\u0437\u0435\u043b[\u044f\u0456]|\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b(\u0430\u043a|\u043a\u0430)|\u0430\u045e\u0442\u043e\u0440(\u0430\u043a|\u043a\u0430)|\u0441\u0435\u0440\u0430\u0434[\u0430\u044b]|\u0447\u0430\u0446\u0432(\u0435\u0440|\u044f\u0440\u0433\u0430)|\u043f\u044f\u0442\u043d\u0456\u0446[\u0430\u044b]|\u0441\u0443\u0431\u043e\u0442[\u0430\u044b])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u043f/i,/^\u0430/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u043d/i,/^\u043f[\u0430\u043d]/i,/^\u0430/i,/^\u0441[\u0435\u0440]/i,/^\u0447/i,/^\u043f[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u043e\u045e\u043d\.?|\u043f\u043e\u045e\u0434\.?|\u0440\u0430\u043d\.?|\u0434\u0437\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447\u044b?)/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u043e\u045e\u043d\.?|\u043f\u043e\u045e\u0434\.?|\u0440\u0430\u043d\.?|\u0434\u0437\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447\u044b?)/i,wide:/^([\u0434\u043f]\u043f|\u043f\u043e\u045e\u043d\u0430\u0447|\u043f\u043e\u045e\u0434\u0437\u0435\u043d\u044c|\u0440\u0430\u043d\u0456\u0446[\u0430\u044b]|\u0434\u0437\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430?|\u043d\u043e\u0447\u044b?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u043e\u045e\u043d/i,noon:/^\u043f\u043e\u045e\u0434/i,morning:/^\u0440/i,afternoon:/^\u0434[\u0437\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function Oe(t,e){if(void 0!==t.one&&1===e)return t.one;var n=e%10,r=e%100;return 1===n&&11!==r?t.singularNominative.replace("{{count}}",String(e)):n>=2&&n<=4&&(r<10||r>20)?t.singularGenitive.replace("{{count}}",String(e)):t.pluralGenitive.replace("{{count}}",String(e))}function xe(t){return function(e,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?t.future?Oe(t.future,e):"\u043f\u0440\u0430\u0437 "+Oe(t.regular,e):t.past?Oe(t.past,e):Oe(t.regular,e)+" \u0442\u0430\u043c\u0443":Oe(t.regular,e)}}var Ee={lessThanXSeconds:xe({regular:{one:"\u043c\u0435\u043d\u0448 \u0437\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:xe({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0442\u0430\u043c\u0443",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0442\u0430\u043c\u0443",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u0442\u0430\u043c\u0443"},future:{singularNominative:"\u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:function(t,e){return e&&e.addSuffix?e.comparison&&e.comparison>0?"\u043f\u0440\u0430\u0437 \u043f\u0430\u045e\u0445\u0432\u0456\u043b\u0456\u043d\u044b":"\u043f\u0430\u045e\u0445\u0432\u0456\u043b\u0456\u043d\u044b \u0442\u0430\u043c\u0443":"\u043f\u0430\u045e\u0445\u0432\u0456\u043b\u0456\u043d\u044b"},lessThanXMinutes:xe({regular:{one:"\u043c\u0435\u043d\u0448 \u0437\u0430 \u0445\u0432\u0456\u043b\u0456\u043d\u0443",singularNominative:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u0443",singularGenitive:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u044b",pluralGenitive:"\u043c\u0435\u043d\u0448 \u0437\u0430 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d"},future:{one:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 \u0445\u0432\u0456\u043b\u0456\u043d\u0443",singularNominative:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u0443",singularGenitive:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u044b",pluralGenitive:"\u043c\u0435\u043d\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d"}}),xMinutes:xe({regular:{singularNominative:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u0430",singularGenitive:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u044b",pluralGenitive:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d"},past:{singularNominative:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",singularGenitive:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u044b \u0442\u0430\u043c\u0443",pluralGenitive:"{{count}} \u0445\u0432\u0456\u043b\u0456\u043d \u0442\u0430\u043c\u0443"},future:{singularNominative:"\u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u0443",singularGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d\u044b",pluralGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0445\u0432\u0456\u043b\u0456\u043d"}}),aboutXHours:xe({regular:{singularNominative:"\u043a\u0430\u043b\u044f {{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u044b",singularGenitive:"\u043a\u0430\u043b\u044f {{count}} \u0433\u0430\u0434\u0437\u0456\u043d",pluralGenitive:"\u043a\u0430\u043b\u044f {{count}} \u0433\u0430\u0434\u0437\u0456\u043d"},future:{singularNominative:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u0443",singularGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u044b",pluralGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d"}}),xHours:xe({regular:{singularNominative:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u0430",singularGenitive:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u044b",pluralGenitive:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d"},past:{singularNominative:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",singularGenitive:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u044b \u0442\u0430\u043c\u0443",pluralGenitive:"{{count}} \u0433\u0430\u0434\u0437\u0456\u043d \u0442\u0430\u043c\u0443"},future:{singularNominative:"\u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u0443",singularGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d\u044b",pluralGenitive:"\u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u0437\u0456\u043d"}}),xDays:xe({regular:{singularNominative:"{{count}} \u0434\u0437\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043d\u0456",pluralGenitive:"{{count}} \u0434\u0437\u0451\u043d"}}),aboutXWeeks:xe({regular:{singularNominative:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",singularGenitive:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e",pluralGenitive:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"},future:{singularNominative:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u044b",pluralGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"}}),xWeeks:xe({regular:{singularNominative:"{{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u044b",pluralGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"}}),aboutXMonths:xe({regular:{singularNominative:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",singularGenitive:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e",pluralGenitive:"\u043a\u0430\u043b\u044f {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"},future:{singularNominative:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u044b",pluralGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"}}),xMonths:xe({regular:{singularNominative:"{{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u044b",pluralGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0430\u045e"}}),aboutXYears:xe({regular:{singularNominative:"\u043a\u0430\u043b\u044f {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u043a\u0430\u043b\u044f {{count}} \u0433\u0430\u0434\u043e\u045e",pluralGenitive:"\u043a\u0430\u043b\u044f {{count}} \u0433\u0430\u0434\u043e\u045e"},future:{singularNominative:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"\u043f\u0440\u044b\u0431\u043b\u0456\u0437\u043d\u0430 \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u043e\u045e"}}),xYears:xe({regular:{singularNominative:"{{count}} \u0433\u043e\u0434",singularGenitive:"{{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"{{count}} \u0433\u0430\u0434\u043e\u045e"}}),overXYears:xe({regular:{singularNominative:"\u0431\u043e\u043b\u044c\u0448 \u0437\u0430 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0431\u043e\u043b\u044c\u0448 \u0437\u0430 {{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448 \u0437\u0430 {{count}} \u0433\u0430\u0434\u043e\u045e"},future:{singularNominative:"\u0431\u043e\u043b\u044c\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0431\u043e\u043b\u044c\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448, \u0447\u044b\u043c \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u043e\u045e"}}),almostXYears:xe({regular:{singularNominative:"\u0430\u043c\u0430\u043b\u044c {{count}} \u0433\u043e\u0434",singularGenitive:"\u0430\u043c\u0430\u043b\u044c {{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"\u0430\u043c\u0430\u043b\u044c {{count}} \u0433\u0430\u0434\u043e\u045e"},future:{singularNominative:"\u0430\u043c\u0430\u043b\u044c \u043f\u0440\u0430\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0430\u043c\u0430\u043b\u044c \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u044b",pluralGenitive:"\u0430\u043c\u0430\u043b\u044c \u043f\u0440\u0430\u0437 {{count}} \u0433\u0430\u0434\u043e\u045e"}})},je=function(t,e,n){return n=n||{},Ee[t](e,n)},Se={date:U({formats:{full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},Pe=["\u043d\u044f\u0434\u0437\u0435\u043b\u044e","\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a","\u0430\u045e\u0442\u043e\u0440\u0430\u043a","\u0441\u0435\u0440\u0430\u0434\u0443","\u0447\u0430\u0446\u044c\u0432\u0435\u0440","\u043f\u044f\u0442\u043d\u0456\u0446\u0443","\u0441\u0443\u0431\u043e\u0442\u0443"];function Ce(t){return"'\u0443 "+Pe[t]+" \u0430' p"}var Te={lastWeek:function(t,e,n){var r=a(t),i=r.getUTCDay();return be(r,e,n)?Ce(i):function(t){var e=Pe[t];switch(t){case 0:case 3:case 5:case 6:return"'\u0443 \u043c\u0456\u043d\u0443\u043b\u0443\u044e "+e+" \u0430' p";case 1:case 2:case 4:return"'\u0443 \u043c\u0456\u043d\u0443\u043b\u044b "+e+" \u0430' p"}}(i)},yesterday:"'\u0443\u0447\u043e\u0440\u0430 \u0430' p",today:"'\u0441\u0451\u043d\u044c\u043d\u044f \u0430' p",tomorrow:"'\u0437\u0430\u045e\u0442\u0440\u0430 \u0430' p",nextWeek:function(t,e,n){var r=a(t),i=r.getUTCDay();return be(r,e,n)?Ce(i):function(t){var e=Pe[t];switch(t){case 0:case 3:case 5:case 6:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e "+e+" \u0430' p";case 1:case 2:case 4:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u044b "+e+" \u0430' p"}}(i)},other:"P"},Me=function(t,e,n,r){var i=Te[t];return"function"===typeof i?i(e,n,r):i},Ae={code:"be-tarask",formatDistance:je,formatLong:Se,formatRelative:Me,localize:{ordinalNumber:function(t,e){var n=String(null===e||void 0===e?void 0:e.unit),r=Number(t);return r+("date"===n?"-\u0433\u0430":"hour"===n||"minute"===n||"second"===n?"-\u044f":r%10!==2&&r%10!==3||r%100===12||r%100===13?"-\u044b":"-\u0456")},era:K({values:{narrow:["\u0434\u0430 \u043d.\u044d.","\u043d.\u044d."],abbreviated:["\u0434\u0430 \u043d. \u044d.","\u043d. \u044d."],wide:["\u0434\u0430 \u043d\u0430\u0448\u0430\u0439 \u044d\u0440\u044b","\u043d\u0430\u0448\u0430\u0439 \u044d\u0440\u044b"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1-\u044b \u043a\u0432.","2-\u0456 \u043a\u0432.","3-\u0456 \u043a\u0432.","4-\u044b \u043a\u0432."],wide:["1-\u044b \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0456 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0456 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u044b \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0421","\u041b","\u0421","\u041a","\u0422","\u0427","\u041b","\u0416","\u0412","\u041a","\u041b","\u0421"],abbreviated:["\u0441\u0442\u0443\u0434\u0437.","\u043b\u044e\u0442.","\u0441\u0430\u043a.","\u043a\u0440\u0430\u0441.","\u0442\u0440\u0430\u0432.","\u0447\u044d\u0440\u0432.","\u043b\u0456\u043f.","\u0436\u043d.","\u0432\u0435\u0440.","\u043a\u0430\u0441\u0442\u0440.","\u043b\u0456\u0441\u0442.","\u0441\u044c\u043d\u0435\u0436."],wide:["\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c","\u043b\u044e\u0442\u044b","\u0441\u0430\u043a\u0430\u0432\u0456\u043a","\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a","\u0442\u0440\u0430\u0432\u0435\u043d\u044c","\u0447\u044d\u0440\u0432\u0435\u043d\u044c","\u043b\u0456\u043f\u0435\u043d\u044c","\u0436\u043d\u0456\u0432\u0435\u043d\u044c","\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c","\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a","\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434","\u0441\u044c\u043d\u0435\u0436\u0430\u043d\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u0421","\u041b","\u0421","\u041a","\u0422","\u0427","\u041b","\u0416","\u0412","\u041a","\u041b","\u0421"],abbreviated:["\u0441\u0442\u0443\u0434\u0437.","\u043b\u044e\u0442.","\u0441\u0430\u043a.","\u043a\u0440\u0430\u0441.","\u0442\u0440\u0430\u0432.","\u0447\u044d\u0440\u0432.","\u043b\u0456\u043f.","\u0436\u043d.","\u0432\u0435\u0440.","\u043a\u0430\u0441\u0442\u0440.","\u043b\u0456\u0441\u0442.","\u0441\u044c\u043d\u0435\u0436."],wide:["\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f","\u043b\u044e\u0442\u0430\u0433\u0430","\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430","\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430","\u0442\u0440\u0430\u045e\u043d\u044f","\u0447\u044d\u0440\u0432\u0435\u043d\u044f","\u043b\u0456\u043f\u0435\u043d\u044f","\u0436\u043d\u0456\u045e\u043d\u044f","\u0432\u0435\u0440\u0430\u0441\u043d\u044f","\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430","\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430","\u0441\u044c\u043d\u0435\u0436\u043d\u044f"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["\u041d","\u041f","\u0410","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0430\u045e","\u0441\u0440","\u0447\u0446","\u043f\u0442","\u0441\u0431"],abbreviated:["\u043d\u044f\u0434\u0437","\u043f\u0430\u043d","\u0430\u045e\u0442","\u0441\u0435\u0440","\u0447\u0430\u0446\u044c","\u043f\u044f\u0442","\u0441\u0443\u0431"],wide:["\u043d\u044f\u0434\u0437\u0435\u043b\u044f","\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a","\u0430\u045e\u0442\u043e\u0440\u0430\u043a","\u0441\u0435\u0440\u0430\u0434\u0430","\u0447\u0430\u0446\u044c\u0432\u0435\u0440","\u043f\u044f\u0442\u043d\u0456\u0446\u0430","\u0441\u0443\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d.",noon:"\u043f\u043e\u045e\u0434.",morning:"\u0440\u0430\u043d.",afternoon:"\u0434\u0437\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d.",noon:"\u043f\u043e\u045e\u0434.",morning:"\u0440\u0430\u043d.",afternoon:"\u0434\u0437\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d\u0430\u0447",noon:"\u043f\u043e\u045e\u0434\u0437\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u0456\u0446\u0430",afternoon:"\u0434\u0437\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0430\u0440",night:"\u043d\u043e\u0447"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d.",noon:"\u043f\u043e\u045e\u0434.",morning:"\u0440\u0430\u043d.",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044b"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d.",noon:"\u043f\u043e\u045e\u0434.",morning:"\u0440\u0430\u043d.",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044b"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u045e\u043d\u0430\u0447",noon:"\u043f\u043e\u045e\u0434\u0437\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u0456\u0446\u044b",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447\u0430\u0440\u0430",night:"\u043d\u043e\u0447\u044b"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-?(\u0435|\u044f|\u0433\u0430|\u0456|\u044b|\u0430\u0435|\u0430\u044f|\u044f\u044f|\u0448\u044b|\u0433\u0456|\u0446\u0456|\u0442\u044b|\u043c\u044b))?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^((\u0434\u0430 )?\u043d\.?\s?\u044d\.?)/i,abbreviated:/^((\u0434\u0430 )?\u043d\.?\s?\u044d\.?)/i,wide:/^(\u0434\u0430 \u043d\u0430\u0448\u0430\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0430\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0430 \u044d\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u044b\u0456]?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u044b\u0456]?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u0441\u043b\u043a\u043c\u0447\u0436\u0432]/i,abbreviated:/^(\u0441\u0442\u0443\u0434\u0437|\u043b\u044e\u0442|\u0441\u0430\u043a|\u043a\u0440\u0430\u0441|\u0442\u0440(\u0430\u0432)?|\u0447\u044d\u0440\u0432|\u043b\u0456\u043f|\u0436\u043d|\u0432\u0435\u0440|\u043a\u0430\u0441\u0442\u0440|\u043b\u0456\u0441\u0442|\u0441\u044c\u043d\u0435\u0436)\.?/i,wide:/^(\u0441\u0442\u0443\u0434\u0437\u0435\u043d[\u044c\u044f]|\u043b\u044e\u0442(\u044b|\u0430\u0433\u0430)|\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430?|\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430?|\u0442\u0440\u0430(\u0432\u0435\u043d\u044c|\u045e\u043d\u044f)|\u0447\u044d\u0440\u0432\u0435\u043d[\u044c\u044f]|\u043b\u0456\u043f\u0435\u043d[\u044c\u044f]|\u0436\u043d\u0456(\u0432\u0435\u043d\u044c|\u045e\u043d\u044f)|\u0432\u0435\u0440\u0430\u0441(\u0435\u043d\u044c|\u043d\u044f)|\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430?|\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430?|\u0441\u044c\u043d\u0435\u0436(\u0430\u043d\u044c|\u043d\u044f))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0441/i,/^\u043b/i,/^\u0441/i,/^\u043a/i,/^\u0442/i,/^\u0447/i,/^\u043b/i,/^\u0436/i,/^\u0432/i,/^\u043a/i,/^\u043b/i,/^\u0441/i],any:[/^\u0441\u0442/i,/^\u043b\u044e/i,/^\u0441\u0430/i,/^\u043a\u0440/i,/^\u0442\u0440/i,/^\u0447/i,/^\u043b\u0456\u043f/i,/^\u0436/i,/^\u0432/i,/^\u043a\u0430/i,/^\u043b\u0456\u0441/i,/^\u0441\u043d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u043d\u043f\u0430\u0441\u0447]/i,short:/^(\u043d\u0434|\u043d\u044f|\u043f\u043d|\u043f\u0430|\u0430\u045e|\u0430\u0442|\u0441\u0440|\u0441\u0435|\u0447\u0446|\u0447\u0430|\u043f\u0442|\u043f\u044f|\u0441\u0431|\u0441\u0443)\.?/i,abbreviated:/^(\u043d\u044f\u0434\u0437?|\u043d\u0434\u0437|\u043f\u043d\u0434|\u043f\u0430\u043d|\u0430\u045e\u0442|\u0441\u0440\u0434|\u0441\u0435\u0440|\u0447\u0446\u044c\u0432|\u0447\u0430\u0446\u044c|\u043f\u0442\u043d|\u043f\u044f\u0442|\u0441\u0443\u0431).?/i,wide:/^(\u043d\u044f\u0434\u0437\u0435\u043b[\u044f\u0456]|\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b(\u0430\u043a|\u043a\u0430)|\u0430\u045e\u0442\u043e\u0440(\u0430\u043a|\u043a\u0430)|\u0441\u0435\u0440\u0430\u0434[\u0430\u044b]|\u0447\u0430\u0446\u044c\u0432(\u0435\u0440|\u044f\u0440\u0433\u0430)|\u043f\u044f\u0442\u043d\u0456\u0446[\u0430\u044b]|\u0441\u0443\u0431\u043e\u0442[\u0430\u044b])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u043f/i,/^\u0430/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u043d/i,/^\u043f[\u0430\u043d]/i,/^\u0430/i,/^\u0441[\u0435\u0440]/i,/^\u0447/i,/^\u043f[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u043e\u045e\u043d\.?|\u043f\u043e\u045e\u0434\.?|\u0440\u0430\u043d\.?|\u0434\u0437\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447\u044b?)/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u043e\u045e\u043d\.?|\u043f\u043e\u045e\u0434\.?|\u0440\u0430\u043d\.?|\u0434\u0437\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447\u044b?)/i,wide:/^([\u0434\u043f]\u043f|\u043f\u043e\u045e\u043d\u0430\u0447|\u043f\u043e\u045e\u0434\u0437\u0435\u043d\u044c|\u0440\u0430\u043d\u0456\u0446[\u0430\u044b]|\u0434\u0437\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430?|\u043d\u043e\u0447\u044b?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u043e\u045e\u043d/i,noon:/^\u043f\u043e\u045e\u0434/i,morning:/^\u0440/i,afternoon:/^\u0434[\u0437\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},De={lessThanXSeconds:{one:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 \u0441\u0435\u043a\u0443\u043d\u0434\u0430",other:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438"},xSeconds:{one:"1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430",other:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438"},halfAMinute:"\u043f\u043e\u043b\u043e\u0432\u0438\u043d \u043c\u0438\u043d\u0443\u0442\u0430",lessThanXMinutes:{one:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 \u043c\u0438\u043d\u0443\u0442\u0430",other:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 {{count}} \u043c\u0438\u043d\u0443\u0442\u0438"},xMinutes:{one:"1 \u043c\u0438\u043d\u0443\u0442\u0430",other:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0438"},aboutXHours:{one:"\u043e\u043a\u043e\u043b\u043e \u0447\u0430\u0441",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u0430"},xHours:{one:"1 \u0447\u0430\u0441",other:"{{count}} \u0447\u0430\u0441\u0430"},xDays:{one:"1 \u0434\u0435\u043d",other:"{{count}} \u0434\u043d\u0438"},aboutXWeeks:{one:"\u043e\u043a\u043e\u043b\u043e \u0441\u0435\u0434\u043c\u0438\u0446\u0430",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0441\u0435\u0434\u043c\u0438\u0446\u0438"},xWeeks:{one:"1 \u0441\u0435\u0434\u043c\u0438\u0446\u0430",other:"{{count}} \u0441\u0435\u0434\u043c\u0438\u0446\u0438"},aboutXMonths:{one:"\u043e\u043a\u043e\u043b\u043e \u043c\u0435\u0441\u0435\u0446",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u0435\u0446\u0430"},xMonths:{one:"1 \u043c\u0435\u0441\u0435\u0446",other:"{{count}} \u043c\u0435\u0441\u0435\u0446\u0430"},aboutXYears:{one:"\u043e\u043a\u043e\u043b\u043e \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},xYears:{one:"1 \u0433\u043e\u0434\u0438\u043d\u0430",other:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},overXYears:{one:"\u043d\u0430\u0434 \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043d\u0430\u0434 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},almostXYears:{one:"\u043f\u043e\u0447\u0442\u0438 \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"}},Re=function(t,e,n){var r,i=De[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u0441\u043b\u0435\u0434 "+r:"\u043f\u0440\u0435\u0434\u0438 "+r:r},Le={date:U({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},Ie=["\u043d\u0435\u0434\u0435\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u044f\u0434\u0430","\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a","\u043f\u0435\u0442\u044a\u043a","\u0441\u044a\u0431\u043e\u0442\u0430"];function We(t){var e=Ie[t];return 2===t?"'\u0432\u044a\u0432 "+e+" \u0432' p":"'\u0432 "+e+" \u0432' p"}var ze={lastWeek:function(t,e,n){var r=a(t),i=r.getUTCDay();return be(r,e,n)?We(i):function(t){var e=Ie[t];switch(t){case 0:case 3:case 6:return"'\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430 "+e+" \u0432' p";case 1:case 2:case 4:case 5:return"'\u043c\u0438\u043d\u0430\u043b\u0438\u044f "+e+" \u0432' p"}}(i)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432' p",today:"'\u0434\u043d\u0435\u0441 \u0432' p",tomorrow:"'\u0443\u0442\u0440\u0435 \u0432' p",nextWeek:function(t,e,n){var r=a(t),i=r.getUTCDay();return be(r,e,n)?We(i):function(t){var e=Ie[t];switch(t){case 0:case 3:case 6:return"'\u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 "+e+" \u0432' p";case 1:case 2:case 4:case 5:return"'\u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0438\u044f "+e+" \u0432' p"}}(i)},other:"P"},Ne=function(t,e,n,r){var i=ze[t];return"function"===typeof i?i(e,n,r):i};function Fe(t,e,n,r,i){var o=function(t){return"quarter"===t}(e)?i:function(t){return"year"===t||"week"===t||"minute"===t||"second"===t}(e)?r:n;return t+"-"+o}var He={code:"bg",formatDistance:Re,formatLong:Le,formatRelative:Ne,localize:{ordinalNumber:function(t,e){var n=Number(t),r=null===e||void 0===e?void 0:e.unit;if(0===n)return Fe(0,r,"\u0435\u0432","\u0435\u0432\u0430","\u0435\u0432\u043e");if(n%1e3===0)return Fe(n,r,"\u0435\u043d","\u043d\u0430","\u043d\u043e");if(n%100===0)return Fe(n,r,"\u0442\u0435\u043d","\u0442\u043d\u0430","\u0442\u043d\u043e");var i=n%100;if(i>20||i<10)switch(i%10){case 1:return Fe(n,r,"\u0432\u0438","\u0432\u0430","\u0432\u043e");case 2:return Fe(n,r,"\u0440\u0438","\u0440\u0430","\u0440\u043e");case 7:case 8:return Fe(n,r,"\u043c\u0438","\u043c\u0430","\u043c\u043e")}return Fe(n,r,"\u0442\u0438","\u0442\u0430","\u0442\u043e")},era:K({values:{narrow:["\u043f\u0440.\u043d.\u0435.","\u043d.\u0435."],abbreviated:["\u043f\u0440\u0435\u0434\u0438 \u043d. \u0435.","\u043d. \u0435."],wide:["\u043f\u0440\u0435\u0434\u0438 \u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430","\u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0432\u043e \u0442\u0440\u0438\u043c\u0435\u0441.","2-\u0440\u043e \u0442\u0440\u0438\u043c\u0435\u0441.","3-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441.","4-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441."],wide:["1-\u0432\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","2-\u0440\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","3-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","4-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{abbreviated:["\u044f\u043d\u0443","\u0444\u0435\u0432","\u043c\u0430\u0440","\u0430\u043f\u0440","\u043c\u0430\u0439","\u044e\u043d\u0438","\u044e\u043b\u0438","\u0430\u0432\u0433","\u0441\u0435\u043f","\u043e\u043a\u0442","\u043d\u043e\u0435","\u0434\u0435\u043a"],wide:["\u044f\u043d\u0443\u0430\u0440\u0438","\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0438\u043b","\u043c\u0430\u0439","\u044e\u043d\u0438","\u044e\u043b\u0438","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438","\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438","\u043d\u043e\u0435\u043c\u0432\u0440\u0438","\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0432\u0442\u043e","\u0441\u0440\u044f","\u0447\u0435\u0442","\u043f\u0435\u0442","\u0441\u044a\u0431"],wide:["\u043d\u0435\u0434\u0435\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u044f\u0434\u0430","\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a","\u043f\u0435\u0442\u044a\u043a","\u0441\u044a\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:K({values:{wide:{am:"\u043f\u0440\u0435\u0434\u0438 \u043e\u0431\u044f\u0434",pm:"\u0441\u043b\u0435\u0434 \u043e\u0431\u044f\u0434",midnight:"\u0432 \u043f\u043e\u043b\u0443\u043d\u043e\u0449",noon:"\u043d\u0430 \u043e\u0431\u044f\u0434",morning:"\u0441\u0443\u0442\u0440\u0438\u043d\u0442\u0430",afternoon:"\u0441\u043b\u0435\u0434\u043e\u0431\u0435\u0434",evening:"\u0432\u0435\u0447\u0435\u0440\u0442\u0430",night:"\u043f\u0440\u0435\u0437 \u043d\u043e\u0449\u0442\u0430"}},defaultWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-?[\u0432\u0440\u043c\u0442][\u0430\u0438]|-?\u0442?(\u0435\u043d|\u043d\u0430)|-?(\u0435\u0432|\u0435\u0432\u0430))?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^((\u043f\u0440)?\u043d\.?\s?\u0435\.?)/i,abbreviated:/^((\u043f\u0440)?\u043d\.?\s?\u0435\.?)/i,wide:/^(\u043f\u0440\u0435\u0434\u0438 \u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430|\u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430|\u043d\u043e\u0432\u0430 \u0435\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u043f/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u0432\u0440\u0442]?o?)? \u0442\u0440\u0438\u043c\u0435\u0441.?/i,wide:/^[1234](-?[\u0432\u0440\u0442]?\u043e?)? \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{abbreviated:/^(\u044f\u043d\u0443|\u0444\u0435\u0432|\u043c\u0430\u0440|\u0430\u043f\u0440|\u043c\u0430\u0439|\u044e\u043d\u0438|\u044e\u043b\u0438|\u0430\u0432\u0433|\u0441\u0435\u043f|\u043e\u043a\u0442|\u043d\u043e\u0435|\u0434\u0435\u043a)/i,wide:/^(\u044f\u043d\u0443\u0430\u0440\u0438|\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438|\u043c\u0430\u0440\u0442|\u0430\u043f\u0440\u0438\u043b|\u043c\u0430\u0439|\u044e\u043d\u0438|\u044e\u043b\u0438|\u0430\u0432\u0433\u0443\u0441\u0442|\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438|\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438|\u043d\u043e\u0435\u043c\u0432\u0440\u0438|\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u044f/i,/^\u0444/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430\u0439/i,/^\u044e\u043d/i,/^\u044e\u043b/i,/^\u0430\u0432/i,/^\u0441\u0435/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e/i,/^\u0434\u0435/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u043d\u043f\u0432\u0441\u0447]/i,short:/^(\u043d\u0434|\u043f\u043d|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u043f\u0442|\u0441\u0431)/i,abbreviated:/^(\u043d\u0435\u0434|\u043f\u043e\u043d|\u0432\u0442\u043e|\u0441\u0440\u044f|\u0447\u0435\u0442|\u043f\u0435\u0442|\u0441\u044a\u0431)/i,wide:/^(\u043d\u0435\u0434\u0435\u043b\u044f|\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a|\u0432\u0442\u043e\u0440\u043d\u0438\u043a|\u0441\u0440\u044f\u0434\u0430|\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a|\u043f\u0435\u0442\u044a\u043a|\u0441\u044a\u0431\u043e\u0442\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u043d[\u0435\u0434]/i,/^\u043f[\u043e\u043d]/i,/^\u0432\u0442/i,/^\u0441\u0440/i,/^\u0447[\u0435\u0442]/i,/^\u043f[\u0435\u0442]/i,/^\u0441[\u044a\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(\u043f\u0440\u0435\u0434\u0438 \u043e|\u0441\u043b\u0435\u0434 \u043e|\u0432 \u043f\u043e|\u043d\u0430 \u043e|\u043f\u0440\u0435\u0437|\u0432\u0435\u0447|\u0441\u0443\u0442|\u0441\u043b\u0435\u0434\u043e)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u043f\u0440\u0435\u0434\u0438 \u043e/i,pm:/^\u0441\u043b\u0435\u0434 \u043e/i,midnight:/^\u0432 \u043f\u043e\u043b/i,noon:/^\u043d\u0430 \u043e\u0431/i,morning:/^\u0441\u0443\u0442/i,afternoon:/^\u0441\u043b\u0435\u0434\u043e/i,evening:/^\u0432\u0435\u0447/i,night:/^\u043f\u0440\u0435\u0437 \u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Be={locale:{1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},number:{"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"}};function Ve(t){return t.toString().replace(/\d/g,(function(t){return Be.locale[t]}))}var qe={ordinalNumber:function(t,e){var n=Number(t),r=Ve(n);if("date"===(null===e||void 0===e?void 0:e.unit))return function(t,e){if(t>18&&t<=31)return e+"\u09b6\u09c7";switch(t){case 1:return e+"\u09b2\u09be";case 2:case 3:return e+"\u09b0\u09be";case 4:return e+"\u09a0\u09be";default:return e+"\u0987"}}(n,r);if(n>10||0===n)return r+"\u09a4\u09ae";switch(n%10){case 2:case 3:return r+"\u09df";case 4:return r+"\u09b0\u09cd\u09a5";case 6:return r+"\u09b7\u09cd\u09a0";default:return r+"\u09ae"}},era:K({values:{narrow:["\u0996\u09cd\u09b0\u09bf\u0983\u09aa\u09c2\u0983","\u0996\u09cd\u09b0\u09bf\u0983"],abbreviated:["\u0996\u09cd\u09b0\u09bf\u0983\u09aa\u09c2\u09b0\u09cd\u09ac","\u0996\u09cd\u09b0\u09bf\u0983"],wide:["\u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09aa\u09c2\u09b0\u09cd\u09ac","\u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["\u09e7","\u09e8","\u09e9","\u09ea"],abbreviated:["\u09e7\u09a4\u09cd\u09b0\u09c8","\u09e8\u09a4\u09cd\u09b0\u09c8","\u09e9\u09a4\u09cd\u09b0\u09c8","\u09ea\u09a4\u09cd\u09b0\u09c8"],wide:["\u09e7\u09ae \u09a4\u09cd\u09b0\u09c8\u09ae\u09be\u09b8\u09bf\u0995","\u09e8\u09df \u09a4\u09cd\u09b0\u09c8\u09ae\u09be\u09b8\u09bf\u0995","\u09e9\u09df \u09a4\u09cd\u09b0\u09c8\u09ae\u09be\u09b8\u09bf\u0995","\u09ea\u09b0\u09cd\u09a5 \u09a4\u09cd\u09b0\u09c8\u09ae\u09be\u09b8\u09bf\u0995"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u099c\u09be\u09a8\u09c1","\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1","\u09ae\u09be\u09b0\u09cd\u099a","\u098f\u09aa\u09cd\u09b0\u09bf\u09b2","\u09ae\u09c7","\u099c\u09c1\u09a8","\u099c\u09c1\u09b2\u09be\u0987","\u0986\u0997\u09b8\u09cd\u099f","\u09b8\u09c7\u09aa\u09cd\u099f","\u0985\u0995\u09cd\u099f\u09cb","\u09a8\u09ad\u09c7","\u09a1\u09bf\u09b8\u09c7"],abbreviated:["\u099c\u09be\u09a8\u09c1","\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1","\u09ae\u09be\u09b0\u09cd\u099a","\u098f\u09aa\u09cd\u09b0\u09bf\u09b2","\u09ae\u09c7","\u099c\u09c1\u09a8","\u099c\u09c1\u09b2\u09be\u0987","\u0986\u0997\u09b8\u09cd\u099f","\u09b8\u09c7\u09aa\u09cd\u099f","\u0985\u0995\u09cd\u099f\u09cb","\u09a8\u09ad\u09c7","\u09a1\u09bf\u09b8\u09c7"],wide:["\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf","\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf","\u09ae\u09be\u09b0\u09cd\u099a","\u098f\u09aa\u09cd\u09b0\u09bf\u09b2","\u09ae\u09c7","\u099c\u09c1\u09a8","\u099c\u09c1\u09b2\u09be\u0987","\u0986\u0997\u09b8\u09cd\u099f","\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0","\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0","\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0","\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u09b0","\u09b8\u09cb","\u09ae","\u09ac\u09c1","\u09ac\u09c3","\u09b6\u09c1","\u09b6"],short:["\u09b0\u09ac\u09bf","\u09b8\u09cb\u09ae","\u09ae\u0999\u09cd\u0997\u09b2","\u09ac\u09c1\u09a7","\u09ac\u09c3\u09b9","\u09b6\u09c1\u0995\u09cd\u09b0","\u09b6\u09a8\u09bf"],abbreviated:["\u09b0\u09ac\u09bf","\u09b8\u09cb\u09ae","\u09ae\u0999\u09cd\u0997\u09b2","\u09ac\u09c1\u09a7","\u09ac\u09c3\u09b9","\u09b6\u09c1\u0995\u09cd\u09b0","\u09b6\u09a8\u09bf"],wide:["\u09b0\u09ac\u09bf\u09ac\u09be\u09b0","\u09b8\u09cb\u09ae\u09ac\u09be\u09b0","\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0","\u09ac\u09c1\u09a7\u09ac\u09be\u09b0","\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0 ","\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0","\u09b6\u09a8\u09bf\u09ac\u09be\u09b0"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u09aa\u09c2",pm:"\u0985\u09aa",midnight:"\u09ae\u09a7\u09cd\u09af\u09b0\u09be\u09a4",noon:"\u09ae\u09a7\u09cd\u09af\u09be\u09b9\u09cd\u09a8",morning:"\u09b8\u0995\u09be\u09b2",afternoon:"\u09ac\u09bf\u0995\u09be\u09b2",evening:"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be",night:"\u09b0\u09be\u09a4"},abbreviated:{am:"\u09aa\u09c2\u09b0\u09cd\u09ac\u09be\u09b9\u09cd\u09a8",pm:"\u0985\u09aa\u09b0\u09be\u09b9\u09cd\u09a8",midnight:"\u09ae\u09a7\u09cd\u09af\u09b0\u09be\u09a4",noon:"\u09ae\u09a7\u09cd\u09af\u09be\u09b9\u09cd\u09a8",morning:"\u09b8\u0995\u09be\u09b2",afternoon:"\u09ac\u09bf\u0995\u09be\u09b2",evening:"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be",night:"\u09b0\u09be\u09a4"},wide:{am:"\u09aa\u09c2\u09b0\u09cd\u09ac\u09be\u09b9\u09cd\u09a8",pm:"\u0985\u09aa\u09b0\u09be\u09b9\u09cd\u09a8",midnight:"\u09ae\u09a7\u09cd\u09af\u09b0\u09be\u09a4",noon:"\u09ae\u09a7\u09cd\u09af\u09be\u09b9\u09cd\u09a8",morning:"\u09b8\u0995\u09be\u09b2",afternoon:"\u09ac\u09bf\u0995\u09be\u09b2",evening:"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be",night:"\u09b0\u09be\u09a4"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u09aa\u09c2",pm:"\u0985\u09aa",midnight:"\u09ae\u09a7\u09cd\u09af\u09b0\u09be\u09a4",noon:"\u09ae\u09a7\u09cd\u09af\u09be\u09b9\u09cd\u09a8",morning:"\u09b8\u0995\u09be\u09b2",afternoon:"\u09ac\u09bf\u0995\u09be\u09b2",evening:"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be",night:"\u09b0\u09be\u09a4"},abbreviated:{am:"\u09aa\u09c2\u09b0\u09cd\u09ac\u09be\u09b9\u09cd\u09a8",pm:"\u0985\u09aa\u09b0\u09be\u09b9\u09cd\u09a8",midnight:"\u09ae\u09a7\u09cd\u09af\u09b0\u09be\u09a4",noon:"\u09ae\u09a7\u09cd\u09af\u09be\u09b9\u09cd\u09a8",morning:"\u09b8\u0995\u09be\u09b2",afternoon:"\u09ac\u09bf\u0995\u09be\u09b2",evening:"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be",night:"\u09b0\u09be\u09a4"},wide:{am:"\u09aa\u09c2\u09b0\u09cd\u09ac\u09be\u09b9\u09cd\u09a8",pm:"\u0985\u09aa\u09b0\u09be\u09b9\u09cd\u09a8",midnight:"\u09ae\u09a7\u09cd\u09af\u09b0\u09be\u09a4",noon:"\u09ae\u09a7\u09cd\u09af\u09be\u09b9\u09cd\u09a8",morning:"\u09b8\u0995\u09be\u09b2",afternoon:"\u09ac\u09bf\u0995\u09be\u09b2",evening:"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be",night:"\u09b0\u09be\u09a4"}},defaultFormattingWidth:"wide"})},Ye=qe,Ue={lessThanXSeconds:{one:"\u09aa\u09cd\u09b0\u09be\u09df \u09e7 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",other:"\u09aa\u09cd\u09b0\u09be\u09df {{count}} \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1"},xSeconds:{one:"\u09e7 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",other:"{{count}} \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1"},halfAMinute:"\u0986\u09a7 \u09ae\u09bf\u09a8\u09bf\u099f",lessThanXMinutes:{one:"\u09aa\u09cd\u09b0\u09be\u09df \u09e7 \u09ae\u09bf\u09a8\u09bf\u099f",other:"\u09aa\u09cd\u09b0\u09be\u09df {{count}} \u09ae\u09bf\u09a8\u09bf\u099f"},xMinutes:{one:"\u09e7 \u09ae\u09bf\u09a8\u09bf\u099f",other:"{{count}} \u09ae\u09bf\u09a8\u09bf\u099f"},aboutXHours:{one:"\u09aa\u09cd\u09b0\u09be\u09df \u09e7 \u0998\u09a8\u09cd\u099f\u09be",other:"\u09aa\u09cd\u09b0\u09be\u09df {{count}} \u0998\u09a8\u09cd\u099f\u09be"},xHours:{one:"\u09e7 \u0998\u09a8\u09cd\u099f\u09be",other:"{{count}} \u0998\u09a8\u09cd\u099f\u09be"},xDays:{one:"\u09e7 \u09a6\u09bf\u09a8",other:"{{count}} \u09a6\u09bf\u09a8"},aboutXWeeks:{one:"\u09aa\u09cd\u09b0\u09be\u09df \u09e7 \u09b8\u09aa\u09cd\u09a4\u09be\u09b9",other:"\u09aa\u09cd\u09b0\u09be\u09df {{count}} \u09b8\u09aa\u09cd\u09a4\u09be\u09b9"},xWeeks:{one:"\u09e7 \u09b8\u09aa\u09cd\u09a4\u09be\u09b9",other:"{{count}} \u09b8\u09aa\u09cd\u09a4\u09be\u09b9"},aboutXMonths:{one:"\u09aa\u09cd\u09b0\u09be\u09df \u09e7 \u09ae\u09be\u09b8",other:"\u09aa\u09cd\u09b0\u09be\u09df {{count}} \u09ae\u09be\u09b8"},xMonths:{one:"\u09e7 \u09ae\u09be\u09b8",other:"{{count}} \u09ae\u09be\u09b8"},aboutXYears:{one:"\u09aa\u09cd\u09b0\u09be\u09df \u09e7 \u09ac\u099b\u09b0",other:"\u09aa\u09cd\u09b0\u09be\u09df {{count}} \u09ac\u099b\u09b0"},xYears:{one:"\u09e7 \u09ac\u099b\u09b0",other:"{{count}} \u09ac\u099b\u09b0"},overXYears:{one:"\u09e7 \u09ac\u099b\u09b0\u09c7\u09b0 \u09ac\u09c7\u09b6\u09bf",other:"{{count}} \u09ac\u099b\u09b0\u09c7\u09b0 \u09ac\u09c7\u09b6\u09bf"},almostXYears:{one:"\u09aa\u09cd\u09b0\u09be\u09df \u09e7 \u09ac\u099b\u09b0",other:"\u09aa\u09cd\u09b0\u09be\u09df {{count}} \u09ac\u099b\u09b0"}},Ge=function(t,e,n){var r,i=Ue[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",Ve(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+" \u098f\u09b0 \u09ae\u09a7\u09cd\u09af\u09c7":r+" \u0986\u0997\u09c7":r},Xe={date:U({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}} '\u09b8\u09ae\u09df'",long:"{{date}} {{time}} '\u09b8\u09ae\u09df'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Je=Xe,Ke={lastWeek:"'\u0997\u09a4' eeee '\u09b8\u09ae\u09df' p",yesterday:"'\u0997\u09a4\u0995\u09be\u09b2' '\u09b8\u09ae\u09df' p",today:"'\u0986\u099c' '\u09b8\u09ae\u09df' p",tomorrow:"'\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2' '\u09b8\u09ae\u09df' p",nextWeek:"eeee '\u09b8\u09ae\u09df' p",other:"P"},$e=function(t,e,n,r){return Ke[t]},Qe={ordinalNumber:Z({matchPattern:/^(\d+)(\u09ae|\u09df|\u09b0\u09cd\u09a5|\u09b7\u09cd\u09a0|\u09b6\u09c7|\u0987|\u09a4\u09ae)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0996\u09cd\u09b0\u09bf\u0983\u09aa\u09c2\u0983|\u0996\u09cd\u09b0\u09bf\u0983)/i,abbreviated:/^(\u0996\u09cd\u09b0\u09bf\u0983\u09aa\u09c2\u09b0\u09cd\u09ac|\u0996\u09cd\u09b0\u09bf\u0983)/i,wide:/^(\u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09aa\u09c2\u09b0\u09cd\u09ac|\u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0996\u09cd\u09b0\u09bf\u0983\u09aa\u09c2\u0983/i,/^\u0996\u09cd\u09b0\u09bf\u0983/i],abbreviated:[/^\u0996\u09cd\u09b0\u09bf\u0983\u09aa\u09c2\u09b0\u09cd\u09ac/i,/^\u0996\u09cd\u09b0\u09bf\u0983/i],wide:[/^\u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09aa\u09c2\u09b0\u09cd\u09ac/i,/^\u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09be\u09ac\u09cd\u09a6/i]},defaultParseWidth:"wide"}),quarter:Q({matchPatterns:{narrow:/^[\u09e7\u09e8\u09e9\u09ea]/i,abbreviated:/^[\u09e7\u09e8\u09e9\u09ea]\u09a4\u09cd\u09b0\u09c8/i,wide:/^[\u09e7\u09e8\u09e9\u09ea](\u09ae|\u09df|\u09b0\u09cd\u09a5)? \u09a4\u09cd\u09b0\u09c8\u09ae\u09be\u09b8\u09bf\u0995/i},defaultMatchWidth:"wide",parsePatterns:{any:[/\u09e7/i,/\u09e8/i,/\u09e9/i,/\u09ea/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u099c\u09be\u09a8\u09c1|\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1|\u09ae\u09be\u09b0\u09cd\u099a|\u098f\u09aa\u09cd\u09b0\u09bf\u09b2|\u09ae\u09c7|\u099c\u09c1\u09a8|\u099c\u09c1\u09b2\u09be\u0987|\u0986\u0997\u09b8\u09cd\u099f|\u09b8\u09c7\u09aa\u09cd\u099f|\u0985\u0995\u09cd\u099f\u09cb|\u09a8\u09ad\u09c7|\u09a1\u09bf\u09b8\u09c7)/i,abbreviated:/^(\u099c\u09be\u09a8\u09c1|\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1|\u09ae\u09be\u09b0\u09cd\u099a|\u098f\u09aa\u09cd\u09b0\u09bf\u09b2|\u09ae\u09c7|\u099c\u09c1\u09a8|\u099c\u09c1\u09b2\u09be\u0987|\u0986\u0997\u09b8\u09cd\u099f|\u09b8\u09c7\u09aa\u09cd\u099f|\u0985\u0995\u09cd\u099f\u09cb|\u09a8\u09ad\u09c7|\u09a1\u09bf\u09b8\u09c7)/i,wide:/^(\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf|\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf|\u09ae\u09be\u09b0\u09cd\u099a|\u098f\u09aa\u09cd\u09b0\u09bf\u09b2|\u09ae\u09c7|\u099c\u09c1\u09a8|\u099c\u09c1\u09b2\u09be\u0987|\u0986\u0997\u09b8\u09cd\u099f|\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0|\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0|\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0|\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u099c\u09be\u09a8\u09c1/i,/^\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1/i,/^\u09ae\u09be\u09b0\u09cd\u099a/i,/^\u098f\u09aa\u09cd\u09b0\u09bf\u09b2/i,/^\u09ae\u09c7/i,/^\u099c\u09c1\u09a8/i,/^\u099c\u09c1\u09b2\u09be\u0987/i,/^\u0986\u0997\u09b8\u09cd\u099f/i,/^\u09b8\u09c7\u09aa\u09cd\u099f/i,/^\u0985\u0995\u09cd\u099f\u09cb/i,/^\u09a8\u09ad\u09c7/i,/^\u09a1\u09bf\u09b8\u09c7/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u09b0|\u09b8\u09cb|\u09ae|\u09ac\u09c1|\u09ac\u09c3|\u09b6\u09c1|\u09b6)+/i,short:/^(\u09b0\u09ac\u09bf|\u09b8\u09cb\u09ae|\u09ae\u0999\u09cd\u0997\u09b2|\u09ac\u09c1\u09a7|\u09ac\u09c3\u09b9|\u09b6\u09c1\u0995\u09cd\u09b0|\u09b6\u09a8\u09bf)+/i,abbreviated:/^(\u09b0\u09ac\u09bf|\u09b8\u09cb\u09ae|\u09ae\u0999\u09cd\u0997\u09b2|\u09ac\u09c1\u09a7|\u09ac\u09c3\u09b9|\u09b6\u09c1\u0995\u09cd\u09b0|\u09b6\u09a8\u09bf)+/i,wide:/^(\u09b0\u09ac\u09bf\u09ac\u09be\u09b0|\u09b8\u09cb\u09ae\u09ac\u09be\u09b0|\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0|\u09ac\u09c1\u09a7\u09ac\u09be\u09b0|\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0 |\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0|\u09b6\u09a8\u09bf\u09ac\u09be\u09b0)+/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u09b0/i,/^\u09b8\u09cb/i,/^\u09ae/i,/^\u09ac\u09c1/i,/^\u09ac\u09c3/i,/^\u09b6\u09c1/i,/^\u09b6/i],short:[/^\u09b0\u09ac\u09bf/i,/^\u09b8\u09cb\u09ae/i,/^\u09ae\u0999\u09cd\u0997\u09b2/i,/^\u09ac\u09c1\u09a7/i,/^\u09ac\u09c3\u09b9/i,/^\u09b6\u09c1\u0995\u09cd\u09b0/i,/^\u09b6\u09a8\u09bf/i],abbreviated:[/^\u09b0\u09ac\u09bf/i,/^\u09b8\u09cb\u09ae/i,/^\u09ae\u0999\u09cd\u0997\u09b2/i,/^\u09ac\u09c1\u09a7/i,/^\u09ac\u09c3\u09b9/i,/^\u09b6\u09c1\u0995\u09cd\u09b0/i,/^\u09b6\u09a8\u09bf/i],wide:[/^\u09b0\u09ac\u09bf\u09ac\u09be\u09b0/i,/^\u09b8\u09cb\u09ae\u09ac\u09be\u09b0/i,/^\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0/i,/^\u09ac\u09c1\u09a7\u09ac\u09be\u09b0/i,/^\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0 /i,/^\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0/i,/^\u09b6\u09a8\u09bf\u09ac\u09be\u09b0/i]},defaultParseWidth:"wide"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u09aa\u09c2|\u0985\u09aa|\u09ae\u09a7\u09cd\u09af\u09b0\u09be\u09a4|\u09ae\u09a7\u09cd\u09af\u09be\u09b9\u09cd\u09a8|\u09b8\u0995\u09be\u09b2|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4)/i,abbreviated:/^(\u09aa\u09c2\u09b0\u09cd\u09ac\u09be\u09b9\u09cd\u09a8|\u0985\u09aa\u09b0\u09be\u09b9\u09cd\u09a8|\u09ae\u09a7\u09cd\u09af\u09b0\u09be\u09a4|\u09ae\u09a7\u09cd\u09af\u09be\u09b9\u09cd\u09a8|\u09b8\u0995\u09be\u09b2|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4)/i,wide:/^(\u09aa\u09c2\u09b0\u09cd\u09ac\u09be\u09b9\u09cd\u09a8|\u0985\u09aa\u09b0\u09be\u09b9\u09cd\u09a8|\u09ae\u09a7\u09cd\u09af\u09b0\u09be\u09a4|\u09ae\u09a7\u09cd\u09af\u09be\u09b9\u09cd\u09a8|\u09b8\u0995\u09be\u09b2|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u09aa\u09c2/i,pm:/^\u0985\u09aa/i,midnight:/^\u09ae\u09a7\u09cd\u09af\u09b0\u09be\u09a4/i,noon:/^\u09ae\u09a7\u09cd\u09af\u09be\u09b9\u09cd\u09a8/i,morning:/\u09b8\u0995\u09be\u09b2/i,afternoon:/\u09ac\u09bf\u0995\u09be\u09b2/i,evening:/\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be/i,night:/\u09b0\u09be\u09a4/i}},defaultParseWidth:"any"})},Ze=Qe,tn={code:"bn",formatDistance:Ge,formatLong:Je,formatRelative:$e,localize:Ye,match:Ze,options:{weekStartsOn:0,firstWeekContainsDate:1}},en=tn,nn={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 sedmicu",withPrepositionAgo:"oko 1 sedmicu",withPrepositionIn:"oko 1 sedmicu"},dual:"oko {{count}} sedmice",other:"oko {{count}} sedmice"},xWeeks:{one:{standalone:"1 sedmicu",withPrepositionAgo:"1 sedmicu",withPrepositionIn:"1 sedmicu"},dual:"{{count}} sedmice",other:"{{count}} sedmice"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},rn=function(t,e,n){var r,i=nn[t];return r="string"===typeof i?i:1===e?null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:e%10>1&&e%10<5&&"1"!==String(e).substr(-2,1)?i.dual.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"za "+r:"prije "+r:r},on={date:U({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},an=on,sn={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'pro\u0161le nedjelje u' p";case 3:return"'pro\u0161le srijede u' p";case 6:return"'pro\u0161le subote u' p";default:return"'pro\u0161li' EEEE 'u' p"}},yesterday:"'ju\u010de u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'sljede\u0107e nedjelje u' p";case 3:return"'sljede\u0107u srijedu u' p";case 6:return"'sljede\u0107u subotu u' p";default:return"'sljede\u0107i' EEEE 'u' p"}},other:"P"},ln=function(t,e,n,r){var i=sn[t];return"function"===typeof i?i(e):i},un={ordinalNumber:function(t,e){var n=Number(t);return String(n)+"."},era:K({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Prije Hrista","Poslije Hrista"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["N","P","U","S","\u010c","P","S"],short:["ned","pon","uto","sre","\u010det","pet","sub"],abbreviated:["ned","pon","uto","sre","\u010det","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","\u010detvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uve\u010de",night:"no\u0107u"},abbreviated:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uve\u010de",night:"no\u0107u"},wide:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"poslije podne",evening:"uve\u010de",night:"no\u0107u"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uve\u010de",night:"no\u0107u"},abbreviated:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uve\u010de",night:"no\u0107u"},wide:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"poslije podne",evening:"uve\u010de",night:"no\u0107u"}},defaultFormattingWidth:"wide"})},cn=un,dn={ordinalNumber:Z({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[npus\u010dc]/i,short:/^(ned|pon|uto|sre|(\u010det|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(\u010det|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(\u010detvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(am|pm|ponoc|pono\u0107|(po)?podne|uvece|uve\u010de|no\u0107u|poslije podne|ujutru)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(uvece|uve\u010de)/i,night:/(nocu|no\u0107u)/i}},defaultParseWidth:"any"})},hn=dn,fn={code:"bs",formatDistance:rn,formatLong:an,formatRelative:ln,localize:cn,match:hn,options:{weekStartsOn:1,firstWeekContainsDate:4}},pn=fn,mn={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"m\xe9s d'un any",eleven:"m\xe9s d'onze anys",other:"m\xe9s de {{count}} anys"},almostXYears:{one:"gaireb\xe9 un any",other:"gaireb\xe9 {{count}} anys"}},gn=function(t,e,n){var r,i=mn[t];return r="string"===typeof i?i:1===e?i.one:11===e&&i.eleven?i.eleven:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"fa "+r:r},bn={date:U({formats:{full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vn=bn,yn={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'dem\xe0 a la' p",nextWeek:"eeee 'a la' p",other:"P"},wn={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'dem\xe0 a les' p",nextWeek:"eeee 'a les' p",other:"P"},kn=function(t,e,n,r){return 1!==e.getUTCHours()?wn[t]:yn[t]},_n={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 3:return n+"r";case 2:return n+"n";case 4:return n+"t"}return n+"\xe8"},era:K({values:{narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","despr\xe9s de Crist"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["GN","FB","M\xc7","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","mar\xe7","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","mar\xe7","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"mat\xed",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"mat\xed",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"mat\xed",afternoon:"tarda",evening:"vespre",night:"nit"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del mat\xed",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del mat\xed",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del mat\xed",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},defaultFormattingWidth:"wide"})},On=_n,xn={ordinalNumber:Z({matchPattern:/^(\d+)(\xe8|r|n|r|t)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[e\xe9]s de Crist)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[e\xe9]s de Crist)/i]},defaultParseWidth:"wide"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xe8|r|n|r|t)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(GN|FB|M\xc7|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|mar\xe7|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|mar\xe7|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^GN/i,/^FB/i,/^M\xc7/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^mar\xe7/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^mar\xe7/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},defaultParseWidth:"wide"}),day:Q({matchPatterns:{narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},defaultParseWidth:"wide"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mn|md|(del|de la) (mat\xed|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (mat\xed|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (mat\xed|tarda|vespre|nit))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/mat\xed/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},defaultParseWidth:"any"})},En=xn,jn={code:"ca",formatDistance:gn,formatLong:vn,formatRelative:kn,localize:On,match:En,options:{weekStartsOn:1,firstWeekContainsDate:4}},Sn=jn,Pn={lessThanXSeconds:{one:{regular:"m\xe9n\u011b ne\u017e sekunda",past:"p\u0159ed m\xe9n\u011b ne\u017e sekundou",future:"za m\xe9n\u011b ne\u017e sekundu"},few:{regular:"m\xe9n\u011b ne\u017e {{count}} sekundy",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} sekundami",future:"za m\xe9n\u011b ne\u017e {{count}} sekundy"},many:{regular:"m\xe9n\u011b ne\u017e {{count}} sekund",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} sekundami",future:"za m\xe9n\u011b ne\u017e {{count}} sekund"}},xSeconds:{one:{regular:"sekunda",past:"p\u0159ed sekundou",future:"za sekundu"},few:{regular:"{{count}} sekundy",past:"p\u0159ed {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"p\u0159ed {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"p\u016fl minuty",past:"p\u0159ed p\u016fl minutou",future:"za p\u016fl minuty"}},lessThanXMinutes:{one:{regular:"m\xe9n\u011b ne\u017e minuta",past:"p\u0159ed m\xe9n\u011b ne\u017e minutou",future:"za m\xe9n\u011b ne\u017e minutu"},few:{regular:"m\xe9n\u011b ne\u017e {{count}} minuty",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} minutami",future:"za m\xe9n\u011b ne\u017e {{count}} minuty"},many:{regular:"m\xe9n\u011b ne\u017e {{count}} minut",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} minutami",future:"za m\xe9n\u011b ne\u017e {{count}} minut"}},xMinutes:{one:{regular:"minuta",past:"p\u0159ed minutou",future:"za minutu"},few:{regular:"{{count}} minuty",past:"p\u0159ed {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"p\u0159ed {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"p\u0159ibli\u017en\u011b hodina",past:"p\u0159ibli\u017en\u011b p\u0159ed hodinou",future:"p\u0159ibli\u017en\u011b za hodinu"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} hodiny",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} hodinami",future:"p\u0159ibli\u017en\u011b za {{count}} hodiny"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} hodin",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} hodinami",future:"p\u0159ibli\u017en\u011b za {{count}} hodin"}},xHours:{one:{regular:"hodina",past:"p\u0159ed hodinou",future:"za hodinu"},few:{regular:"{{count}} hodiny",past:"p\u0159ed {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"p\u0159ed {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"den",past:"p\u0159ed dnem",future:"za den"},few:{regular:"{{count}} dny",past:"p\u0159ed {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dn\xed",past:"p\u0159ed {{count}} dny",future:"za {{count}} dn\xed"}},aboutXWeeks:{one:{regular:"p\u0159ibli\u017en\u011b t\xfdden",past:"p\u0159ibli\u017en\u011b p\u0159ed t\xfddnem",future:"p\u0159ibli\u017en\u011b za t\xfdden"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} t\xfddny",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} t\xfddny",future:"p\u0159ibli\u017en\u011b za {{count}} t\xfddny"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} t\xfddn\u016f",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} t\xfddny",future:"p\u0159ibli\u017en\u011b za {{count}} t\xfddn\u016f"}},xWeeks:{one:{regular:"t\xfdden",past:"p\u0159ed t\xfddnem",future:"za t\xfdden"},few:{regular:"{{count}} t\xfddny",past:"p\u0159ed {{count}} t\xfddny",future:"za {{count}} t\xfddny"},many:{regular:"{{count}} t\xfddn\u016f",past:"p\u0159ed {{count}} t\xfddny",future:"za {{count}} t\xfddn\u016f"}},aboutXMonths:{one:{regular:"p\u0159ibli\u017en\u011b m\u011bs\xedc",past:"p\u0159ibli\u017en\u011b p\u0159ed m\u011bs\xedcem",future:"p\u0159ibli\u017en\u011b za m\u011bs\xedc"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} m\u011bs\xedce",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} m\u011bs\xedci",future:"p\u0159ibli\u017en\u011b za {{count}} m\u011bs\xedce"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} m\u011bs\xedc\u016f",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} m\u011bs\xedci",future:"p\u0159ibli\u017en\u011b za {{count}} m\u011bs\xedc\u016f"}},xMonths:{one:{regular:"m\u011bs\xedc",past:"p\u0159ed m\u011bs\xedcem",future:"za m\u011bs\xedc"},few:{regular:"{{count}} m\u011bs\xedce",past:"p\u0159ed {{count}} m\u011bs\xedci",future:"za {{count}} m\u011bs\xedce"},many:{regular:"{{count}} m\u011bs\xedc\u016f",past:"p\u0159ed {{count}} m\u011bs\xedci",future:"za {{count}} m\u011bs\xedc\u016f"}},aboutXYears:{one:{regular:"p\u0159ibli\u017en\u011b rok",past:"p\u0159ibli\u017en\u011b p\u0159ed rokem",future:"p\u0159ibli\u017en\u011b za rok"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} roky",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} roky",future:"p\u0159ibli\u017en\u011b za {{count}} roky"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} rok\u016f",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} roky",future:"p\u0159ibli\u017en\u011b za {{count}} rok\u016f"}},xYears:{one:{regular:"rok",past:"p\u0159ed rokem",future:"za rok"},few:{regular:"{{count}} roky",past:"p\u0159ed {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} rok\u016f",past:"p\u0159ed {{count}} roky",future:"za {{count}} rok\u016f"}},overXYears:{one:{regular:"v\xedce ne\u017e rok",past:"p\u0159ed v\xedce ne\u017e rokem",future:"za v\xedce ne\u017e rok"},few:{regular:"v\xedce ne\u017e {{count}} roky",past:"p\u0159ed v\xedce ne\u017e {{count}} roky",future:"za v\xedce ne\u017e {{count}} roky"},many:{regular:"v\xedce ne\u017e {{count}} rok\u016f",past:"p\u0159ed v\xedce ne\u017e {{count}} roky",future:"za v\xedce ne\u017e {{count}} rok\u016f"}},almostXYears:{one:{regular:"skoro rok",past:"skoro p\u0159ed rokem",future:"skoro za rok"},few:{regular:"skoro {{count}} roky",past:"skoro p\u0159ed {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} rok\u016f",past:"skoro p\u0159ed {{count}} roky",future:"skoro za {{count}} rok\u016f"}}},Cn=function(t,e,n){var r,i=Pn[t];r="other"===i.type?i.other:1===e?i.one:e>1&&e<5?i.few:i.many;var o=!0===(null===n||void 0===n?void 0:n.addSuffix),a=null===n||void 0===n?void 0:n.comparison;return(o&&-1===a?r.past:o&&1===a?r.future:r.regular).replace("{{count}}",String(e))},Tn={date:U({formats:{full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Mn=Tn,An=["ned\u011bli","pond\u011bl\xed","\xfater\xfd","st\u0159edu","\u010dtvrtek","p\xe1tek","sobotu"],Dn={lastWeek:"'posledn\xed' eeee 've' p",yesterday:"'v\u010dera v' p",today:"'dnes v' p",tomorrow:"'z\xedtra v' p",nextWeek:function(t){var e=t.getUTCDay();return"'v "+An[e]+" o' p"},other:"P"},Rn=function(t,e){var n=Dn[t];return"function"===typeof n?n(e):n},Ln={ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["p\u0159. n. l.","n. l."],abbreviated:["p\u0159. n. l.","n. l."],wide:["p\u0159ed na\u0161\xedm letopo\u010dtem","na\u0161eho letopo\u010dtu"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1. \u010dtvrtlet\xed","2. \u010dtvrtlet\xed","3. \u010dtvrtlet\xed","4. \u010dtvrtlet\xed"],wide:["1. \u010dtvrtlet\xed","2. \u010dtvrtlet\xed","3. \u010dtvrtlet\xed","4. \u010dtvrtlet\xed"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["L","\xda","B","D","K","\u010c","\u010c","S","Z","\u0158","L","P"],abbreviated:["led","\xfano","b\u0159e","dub","kv\u011b","\u010dvn","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],wide:["leden","\xfanor","b\u0159ezen","duben","kv\u011bten","\u010derven","\u010dervenec","srpen","z\xe1\u0159\xed","\u0159\xedjen","listopad","prosinec"]},defaultWidth:"wide",formattingValues:{narrow:["L","\xda","B","D","K","\u010c","\u010c","S","Z","\u0158","L","P"],abbreviated:["led","\xfano","b\u0159e","dub","kv\u011b","\u010dvn","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],wide:["ledna","\xfanora","b\u0159ezna","dubna","kv\u011btna","\u010dervna","\u010dervence","srpna","z\xe1\u0159\xed","\u0159\xedjna","listopadu","prosince"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["ne","po","\xfat","st","\u010dt","p\xe1","so"],short:["ne","po","\xfat","st","\u010dt","p\xe1","so"],abbreviated:["ned","pon","\xfate","st\u0159","\u010dtv","p\xe1t","sob"],wide:["ned\u011ble","pond\u011bl\xed","\xfater\xfd","st\u0159eda","\u010dtvrtek","p\xe1tek","sobota"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"}},defaultFormattingWidth:"wide"})},In=Ln,Wn={ordinalNumber:Z({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(p[\u0159r](\.|ed) Kr\.|p[\u0159r](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[\u0159r](\.|ed) Kr\.|p[\u0159r](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[\u0159r](\.|ed) Kristem|p[\u0159r](\.|ed) na[\u0161s][\xedi]m letopo[\u010dc]tem|po Kristu|na[\u0161s]eho letopo[\u010dc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p[\u0159r]/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\. [\u010dc]tvrtlet[\xedi]/i,wide:/^[1234]\. [\u010dc]tvrtlet[\xedi]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[l\xfaubdk\u010dcsz\u0159rlp]/i,abbreviated:/^(led|[\xfau]no|b[\u0159r]e|dub|kv[\u011be]|[\u010dc]vn|[\u010dc]vc|srp|z[\xe1a][\u0159r]|[\u0159r][\xedi]j|lis|pro)/i,wide:/^(leden|ledna|[\xfau]nora?|b[\u0159r]ezen|b[\u0159r]ezna|duben|dubna|kv[\u011be]ten|kv[\u011be]tna|[\u010dc]erven(ec|ce)?|[\u010dc]ervna|srpen|srpna|z[\xe1a][\u0159r][\xedi]|[\u0159r][\xedi]jen|[\u0159r][\xedi]jna|listopad(a|u)?|prosinec|prosince)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^l/i,/^[\xfau]/i,/^b/i,/^d/i,/^k/i,/^[\u010dc]/i,/^[\u010dc]/i,/^s/i,/^z/i,/^[\u0159r]/i,/^l/i,/^p/i],any:[/^led/i,/^[\xfau]n/i,/^b[\u0159r]e/i,/^dub/i,/^kv[\u011be]/i,/^[\u010dc]vn|[\u010dc]erven(?!\w)|[\u010dc]ervna/i,/^[\u010dc]vc|[\u010dc]erven(ec|ce)/i,/^srp/i,/^z[\xe1a][\u0159r]/i,/^[\u0159r][\xedi]j/i,/^lis/i,/^pro/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[npu\xfas\u010dps]/i,short:/^(ne|po|[\xfau]t|st|[\u010dc]t|p[\xe1a]|so)/i,abbreviated:/^(ned|pon|[\xfau]te|st[r\u0159]|[\u010dc]tv|p[\xe1a]t|sob)/i,wide:/^(ned[\u011be]le|pond[\u011be]l[\xedi]|[\xfau]ter[\xfdy]|st[\u0159r]eda|[\u010dc]tvrtek|p[\xe1a]tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^[\xfau]/i,/^s/i,/^[\u010dc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[\xfau]t/i,/^st/i,/^[\u010dc]t/i,/^p[\xe1a]/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[\u016fu]lnoc|poledne|r[\xe1a]no|odpoledne|ve[\u010dc]er|(v )?noci?/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[\u016fu]lnoc/i,noon:/^poledne/i,morning:/r[\xe1a]no/i,afternoon:/odpoledne/i,evening:/ve[\u010dc]er/i,night:/noc/i}},defaultParseWidth:"any"})},zn=Wn,Nn={code:"cs",formatDistance:Cn,formatLong:Mn,formatRelative:Rn,localize:In,match:zn,options:{weekStartsOn:1,firstWeekContainsDate:4}},Fn=Nn,Hn={lessThanXSeconds:{one:"llai na eiliad",other:"llai na {{count}} eiliad"},xSeconds:{one:"1 eiliad",other:"{{count}} eiliad"},halfAMinute:"hanner munud",lessThanXMinutes:{one:"llai na munud",two:"llai na 2 funud",other:"llai na {{count}} munud"},xMinutes:{one:"1 munud",two:"2 funud",other:"{{count}} munud"},aboutXHours:{one:"tua 1 awr",other:"tua {{count}} awr"},xHours:{one:"1 awr",other:"{{count}} awr"},xDays:{one:"1 diwrnod",two:"2 ddiwrnod",other:"{{count}} diwrnod"},aboutXWeeks:{one:"tua 1 wythnos",two:"tua pythefnos",other:"tua {{count}} wythnos"},xWeeks:{one:"1 wythnos",two:"pythefnos",other:"{{count}} wythnos"},aboutXMonths:{one:"tua 1 mis",two:"tua 2 fis",other:"tua {{count}} mis"},xMonths:{one:"1 mis",two:"2 fis",other:"{{count}} mis"},aboutXYears:{one:"tua 1 flwyddyn",two:"tua 2 flynedd",other:"tua {{count}} mlynedd"},xYears:{one:"1 flwyddyn",two:"2 flynedd",other:"{{count}} mlynedd"},overXYears:{one:"dros 1 flwyddyn",two:"dros 2 flynedd",other:"dros {{count}} mlynedd"},almostXYears:{one:"bron 1 flwyddyn",two:"bron 2 flynedd",other:"bron {{count}} mlynedd"}},Bn=function(t,e,n){var r,i=Hn[t];return r="string"===typeof i?i:1===e?i.one:2===e&&i.two?i.two:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"mewn "+r:r+" yn \xf4l":r},Vn={date:U({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'am' {{time}}",long:"{{date}} 'am' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qn=Vn,Yn={lastWeek:"eeee 'diwethaf am' p",yesterday:"'ddoe am' p",today:"'heddiw am' p",tomorrow:"'yfory am' p",nextWeek:"eeee 'am' p",other:"P"},Un=function(t,e,n,r){return Yn[t]},Gn={ordinalNumber:function(t,e){var n=Number(t);if(n<20)switch(n){case 0:case 7:case 8:case 9:case 10:case 12:case 15:case 18:return n+"fed";case 1:return n+"af";case 2:return n+"ail";case 3:case 4:return n+"ydd";case 5:case 6:return n+"ed";case 11:case 13:case 14:case 16:case 17:case 19:return n+"eg"}else if(n>=50&&n<=60||80===n||n>=100)return n+"fed";return n+"ain"},era:K({values:{narrow:["C","O"],abbreviated:["CC","OC"],wide:["Cyn Crist","Ar \xf4l Crist"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Ch1","Ch2","Ch3","Ch4"],wide:["Chwarter 1af","2ail chwarter","3ydd chwarter","4ydd chwarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["I","Ch","Ma","E","Mi","Me","G","A","Md","H","T","Rh"],abbreviated:["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag"],wide:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","Ll","M","M","I","G","S"],short:["Su","Ll","Ma","Me","Ia","Gw","Sa"],abbreviated:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],wide:["dydd Sul","dydd Llun","dydd Mawrth","dydd Mercher","dydd Iau","dydd Gwener","dydd Sadwrn"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"}},defaultWidth:"wide",formattingValues:{narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"}},defaultFormattingWidth:"wide"})},Xn=Gn,Jn={ordinalNumber:Z({matchPattern:/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar \xf4l crist|ar ol crist)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^c/i,/^(ar \xf4l crist|ar ol crist)/i],any:[/^c/i,/^o/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},defaultParseWidth:"any"})},Kn=Jn,$n={code:"cy",formatDistance:Bn,formatLong:qn,formatRelative:Un,localize:Xn,match:Kn,options:{weekStartsOn:0,firstWeekContainsDate:1}},Qn=$n,Zn={lessThanXSeconds:{one:"mindre end \xe9t sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"\xe9t halvt minut",lessThanXMinutes:{one:"mindre end \xe9t minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 m\xe5ned",other:"cirka {{count}} m\xe5neder"},xMonths:{one:"1 m\xe5ned",other:"{{count}} m\xe5neder"},aboutXYears:{one:"cirka 1 \xe5r",other:"cirka {{count}} \xe5r"},xYears:{one:"1 \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"over 1 \xe5r",other:"over {{count}} \xe5r"},almostXYears:{one:"n\xe6sten 1 \xe5r",other:"n\xe6sten {{count}} \xe5r"}},tr=function(t,e,n){var r,i=Zn[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" siden":r},er={date:U({formats:{full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},nr=er,rr={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i g\xe5r kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'p\xe5' eeee 'kl.' p",other:"P"},ir=function(t,e,n,r){return rr[t]},or={ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["f\xf8r vesterlandsk tidsregning","vesterlandsk tidsregning"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf8","ma","ti","on","to","fr","l\xf8"],abbreviated:["s\xf8n.","man.","tir.","ons.","tor.","fre.","l\xf8r."],wide:["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},defaultFormattingWidth:"wide"})},ar=or,sr={ordinalNumber:Z({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|f\xf8r vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtofl]/i,short:/^(s\xf8n.|man.|tir.|ons.|tor.|fre.|l\xf8r.)/i,abbreviated:/^(s\xf8n|man|tir|ons|tor|fre|l\xf8r)/i,wide:/^(s\xf8ndag|mandag|tirsdag|onsdag|torsdag|fredag|l\xf8rdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:"any"})},lr=sr,ur={code:"da",formatDistance:tr,formatLong:nr,formatRelative:ir,localize:ar,match:lr,options:{weekStartsOn:1,firstWeekContainsDate:4}},cr=ur,dr={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},hr=function(t,e,n){var r,i=null!==n&&void 0!==n&&n.addSuffix?dr[t].withPreposition:dr[t].standalone;return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},fr={date:U({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},pr=fr,mr={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},gr=function(t,e,n,r){return mr[t]},br={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},vr={narrow:br.narrow,abbreviated:["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:br.wide},yr={ordinalNumber:function(t){return Number(t)+"."},era:K({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:br,formattingValues:vr,defaultWidth:"wide"}),day:K({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},wr=yr,kr={ordinalNumber:Z({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t)}}),era:Q({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[a\xe4]n|feb|m\xe4r[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|m\xe4rz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[a\xe4]/i,/^f/i,/^m\xe4r/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},_r=kr,Or={code:"de",formatDistance:hr,formatLong:pr,formatRelative:gr,localize:wr,match:_r,options:{weekStartsOn:1,firstWeekContainsDate:4}},xr=Or,Er={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["J\xe4n","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["J\xe4nner","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},jr={narrow:Er.narrow,abbreviated:["J\xe4n.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Er.wide},Sr={ordinalNumber:function(t){return Number(t)+"."},era:K({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:Er,formattingValues:jr,defaultWidth:"wide"}),day:K({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},Pr=Sr,Cr={code:"de-AT",formatDistance:hr,formatLong:pr,formatRelative:gr,localize:Pr,match:_r,options:{weekStartsOn:1,firstWeekContainsDate:4}},Tr=Cr,Mr={lessThanXSeconds:{one:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03bf",other:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc {{count}} \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1"},xSeconds:{one:"1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03bf",other:"{{count}} \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1"},halfAMinute:"\u03bc\u03b9\u03c3\u03cc \u03bb\u03b5\u03c0\u03c4\u03cc",lessThanXMinutes:{one:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",other:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc {{count}} \u03bb\u03b5\u03c0\u03c4\u03ac"},xMinutes:{one:"1 \u03bb\u03b5\u03c0\u03c4\u03cc",other:"{{count}} \u03bb\u03b5\u03c0\u03c4\u03ac"},aboutXHours:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03ce\u03c1\u03b1",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03ce\u03c1\u03b5\u03c2"},xHours:{one:"1 \u03ce\u03c1\u03b1",other:"{{count}} \u03ce\u03c1\u03b5\u03c2"},xDays:{one:"1 \u03b7\u03bc\u03ad\u03c1\u03b1",other:"{{count}} \u03b7\u03bc\u03ad\u03c1\u03b5\u03c2"},aboutXWeeks:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b1",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b5\u03c2"},xWeeks:{one:"1 \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b1",other:"{{count}} \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b5\u03c2"},aboutXMonths:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03bc\u03ae\u03bd\u03b1\u03c2",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03bc\u03ae\u03bd\u03b5\u03c2"},xMonths:{one:"1 \u03bc\u03ae\u03bd\u03b1\u03c2",other:"{{count}} \u03bc\u03ae\u03bd\u03b5\u03c2"},aboutXYears:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},xYears:{one:"1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"{{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},overXYears:{one:"\u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03cc 1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"\u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03cc {{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},almostXYears:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"}},Ar=function(t,e,n){var r,i=Mr[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u03c3\u03b5 "+r:r+" \u03c0\u03c1\u03b9\u03bd":r},Dr={date:U({formats:{full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Rr=Dr,Lr={lastWeek:function(t){return 6===t.getUTCDay()?"'\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf' eeee '\u03c3\u03c4\u03b9\u03c2' p":"'\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7' eeee '\u03c3\u03c4\u03b9\u03c2' p"},yesterday:"'\u03c7\u03b8\u03b5\u03c2 \u03c3\u03c4\u03b9\u03c2' p",today:"'\u03c3\u03ae\u03bc\u03b5\u03c1\u03b1 \u03c3\u03c4\u03b9\u03c2' p",tomorrow:"'\u03b1\u03cd\u03c1\u03b9\u03bf \u03c3\u03c4\u03b9\u03c2' p",nextWeek:"eeee '\u03c3\u03c4\u03b9\u03c2' p",other:"P"},Ir=function(t,e){var n=Lr[t];return"function"===typeof n?n(e):n},Wr={ordinalNumber:function(t,e){var n=Number(t),r=null===e||void 0===e?void 0:e.unit;return n+("year"===r||"month"===r?"\u03bf\u03c2":"week"===r||"dayOfYear"===r||"day"===r||"hour"===r||"date"===r?"\u03b7":"\u03bf")},era:K({values:{narrow:["\u03c0\u03a7","\u03bc\u03a7"],abbreviated:["\u03c0.\u03a7.","\u03bc.\u03a7."],wide:["\u03c0\u03c1\u03bf \u03a7\u03c1\u03b9\u03c3\u03c4\u03bf\u03cd","\u03bc\u03b5\u03c4\u03ac \u03a7\u03c1\u03b9\u03c3\u03c4\u03cc\u03bd"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u03a41","\u03a42","\u03a43","\u03a44"],wide:["1\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","2\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","3\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","4\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0399","\u03a6","\u039c","\u0391","\u039c","\u0399","\u0399","\u0391","\u03a3","\u039f","\u039d","\u0394"],abbreviated:["\u0399\u03b1\u03bd","\u03a6\u03b5\u03b2","\u039c\u03ac\u03c1","\u0391\u03c0\u03c1","\u039c\u03ac\u03b9","\u0399\u03bf\u03cd\u03bd","\u0399\u03bf\u03cd\u03bb","\u0391\u03cd\u03b3","\u03a3\u03b5\u03c0","\u039f\u03ba\u03c4","\u039d\u03bf\u03ad","\u0394\u03b5\u03ba"],wide:["\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2","\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2","\u039c\u03ac\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2","\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2","\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2","\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2"]},defaultWidth:"wide",formattingValues:{narrow:["\u0399","\u03a6","\u039c","\u0391","\u039c","\u0399","\u0399","\u0391","\u03a3","\u039f","\u039d","\u0394"],abbreviated:["\u0399\u03b1\u03bd","\u03a6\u03b5\u03b2","\u039c\u03b1\u03c1","\u0391\u03c0\u03c1","\u039c\u03b1\u0390","\u0399\u03bf\u03c5\u03bd","\u0399\u03bf\u03c5\u03bb","\u0391\u03c5\u03b3","\u03a3\u03b5\u03c0","\u039f\u03ba\u03c4","\u039d\u03bf\u03b5","\u0394\u03b5\u03ba"],wide:["\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5","\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5","\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5","\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5","\u039c\u03b1\u0390\u03bf\u03c5","\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5","\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5","\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5","\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5","\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5","\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5","\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["\u039a","\u0394","T","\u03a4","\u03a0","\u03a0","\u03a3"],short:["\u039a\u03c5","\u0394\u03b5","\u03a4\u03c1","\u03a4\u03b5","\u03a0\u03ad","\u03a0\u03b1","\u03a3\u03ac"],abbreviated:["\u039a\u03c5\u03c1","\u0394\u03b5\u03c5","\u03a4\u03c1\u03af","\u03a4\u03b5\u03c4","\u03a0\u03ad\u03bc","\u03a0\u03b1\u03c1","\u03a3\u03ac\u03b2"],wide:["\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae","\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1","\u03a4\u03c1\u03af\u03c4\u03b7","\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7","\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7","\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae","\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u03c0\u03bc",pm:"\u03bc\u03bc",midnight:"\u03bc\u03b5\u03c3\u03ac\u03bd\u03c5\u03c7\u03c4\u03b1",noon:"\u03bc\u03b5\u03c3\u03b7\u03bc\u03ad\u03c1\u03b9",morning:"\u03c0\u03c1\u03c9\u03af",afternoon:"\u03b1\u03c0\u03cc\u03b3\u03b5\u03c5\u03bc\u03b1",evening:"\u03b2\u03c1\u03ac\u03b4\u03c5",night:"\u03bd\u03cd\u03c7\u03c4\u03b1"},abbreviated:{am:"\u03c0.\u03bc.",pm:"\u03bc.\u03bc.",midnight:"\u03bc\u03b5\u03c3\u03ac\u03bd\u03c5\u03c7\u03c4\u03b1",noon:"\u03bc\u03b5\u03c3\u03b7\u03bc\u03ad\u03c1\u03b9",morning:"\u03c0\u03c1\u03c9\u03af",afternoon:"\u03b1\u03c0\u03cc\u03b3\u03b5\u03c5\u03bc\u03b1",evening:"\u03b2\u03c1\u03ac\u03b4\u03c5",night:"\u03bd\u03cd\u03c7\u03c4\u03b1"},wide:{am:"\u03c0.\u03bc.",pm:"\u03bc.\u03bc.",midnight:"\u03bc\u03b5\u03c3\u03ac\u03bd\u03c5\u03c7\u03c4\u03b1",noon:"\u03bc\u03b5\u03c3\u03b7\u03bc\u03ad\u03c1\u03b9",morning:"\u03c0\u03c1\u03c9\u03af",afternoon:"\u03b1\u03c0\u03cc\u03b3\u03b5\u03c5\u03bc\u03b1",evening:"\u03b2\u03c1\u03ac\u03b4\u03c5",night:"\u03bd\u03cd\u03c7\u03c4\u03b1"}},defaultWidth:"wide"})},zr=Wr,Nr={ordinalNumber:Z({matchPattern:/^(\d+)(\u03bf\u03c2|\u03b7|\u03bf)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u03c0\u03a7|\u03bc\u03a7)/i,abbreviated:/^(\u03c0\.?\s?\u03c7\.?|\u03c0\.?\s?\u03ba\.?\s?\u03c7\.?|\u03bc\.?\s?\u03c7\.?|\u03ba\.?\s?\u03c7\.?)/i,wide:/^(\u03c0\u03c1\u03bf \u03a7\u03c1\u03b9\u03c3\u03c4\u03bf(\u03cd|\u03c5)|\u03c0\u03c1\u03b9\u03bd \u03b1\u03c0(\u03cc|\u03bf) \u03c4\u03b7\u03bd \u039a\u03bf\u03b9\u03bd(\u03ae|\u03b7) \u03a7\u03c1\u03bf\u03bd\u03bf\u03bb\u03bf\u03b3(\u03af|\u03b9)\u03b1|\u03bc\u03b5\u03c4(\u03ac|\u03b1) \u03a7\u03c1\u03b9\u03c3\u03c4(\u03cc|\u03bf)\u03bd|\u039a\u03bf\u03b9\u03bd(\u03ae|\u03b7) \u03a7\u03c1\u03bf\u03bd\u03bf\u03bb\u03bf\u03b3(\u03af|\u03b9)\u03b1)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u03c0/i,/^(\u03bc|\u03ba)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u03c4[1234]/i,wide:/^[1234]\u03bf? \u03c4\u03c1(\u03af|\u03b9)\u03bc\u03b7\u03bd\u03bf/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u03b9\u03c6\u03bc\u03b1\u03bc\u03b9\u03b9\u03b1\u03c3\u03bf\u03bd\u03b4]/i,abbreviated:/^(\u03b9\u03b1\u03bd|\u03c6\u03b5\u03b2|\u03bc[\u03ac\u03b1]\u03c1|\u03b1\u03c0\u03c1|\u03bc[\u03ac\u03b1][\u03b9\u0390]|\u03b9\u03bf[\u03cd\u03c5]\u03bd|\u03b9\u03bf[\u03cd\u03c5]\u03bb|\u03b1[\u03cd\u03c5]\u03b3|\u03c3\u03b5\u03c0|\u03bf\u03ba\u03c4|\u03bd\u03bf[\u03ad\u03b5]|\u03b4\u03b5\u03ba)/i,wide:/^(\u03bc[\u03ac\u03b1][\u03b9\u0390]|\u03b1[\u03cd\u03c5]\u03b3\u03bf[\u03c5\u03cd]\u03c3\u03c4)(\u03bf\u03c2|\u03bf\u03c5)|(\u03b9\u03b1\u03bd\u03bf\u03c5[\u03ac\u03b1]\u03c1|\u03c6\u03b5\u03b2\u03c1\u03bf\u03c5[\u03ac\u03b1]\u03c1|\u03bc[\u03ac\u03b1]\u03c1\u03c4|\u03b1\u03c0\u03c1[\u03af\u03b9]\u03bb|\u03b9\u03bf[\u03cd\u03c5]\u03bd|\u03b9\u03bf[\u03cd\u03c5]\u03bb|\u03c3\u03b5\u03c0\u03c4[\u03ad\u03b5]\u03bc\u03b2\u03c1|\u03bf\u03ba\u03c4[\u03ce\u03c9]\u03b2\u03c1|\u03bd\u03bf[\u03ad\u03b5]\u03bc\u03b2\u03c1|\u03b4\u03b5\u03ba[\u03ad\u03b5]\u03bc\u03b2\u03c1)(\u03b9\u03bf\u03c2|\u03af\u03bf\u03c5)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u03b9/i,/^\u03c6/i,/^\u03bc/i,/^\u03b1/i,/^\u03bc/i,/^\u03b9/i,/^\u03b9/i,/^\u03b1/i,/^\u03c3/i,/^\u03bf/i,/^\u03bd/i,/^\u03b4/i],any:[/^\u03b9\u03b1/i,/^\u03c6/i,/^\u03bc[\u03ac\u03b1]\u03c1/i,/^\u03b1\u03c0/i,/^\u03bc[\u03ac\u03b1][\u03b9\u0390]/i,/^\u03b9\u03bf[\u03cd\u03c5]\u03bd/i,/^\u03b9\u03bf[\u03cd\u03c5]\u03bb/i,/^\u03b1[\u03cd\u03c5]/i,/^\u03c3/i,/^\u03bf/i,/^\u03bd/i,/^\u03b4/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u03ba\u03b4\u03c4\u03c0\u03c3]/i,short:/^(\u03ba\u03c5|\u03b4\u03b5|\u03c4\u03c1|\u03c4\u03b5|\u03c0[\u03b5\u03ad]|\u03c0[\u03b1\u03ac]|\u03c3[\u03b1\u03ac])/i,abbreviated:/^(\u03ba\u03c5\u03c1|\u03b4\u03b5\u03c5|\u03c4\u03c1\u03b9|\u03c4\u03b5\u03c4|\u03c0\u03b5\u03bc|\u03c0\u03b1\u03c1|\u03c3\u03b1\u03b2)/i,wide:/^(\u03ba\u03c5\u03c1\u03b9\u03b1\u03ba(\u03ae|\u03b7)|\u03b4\u03b5\u03c5\u03c4(\u03ad|\u03b5)\u03c1\u03b1|\u03c4\u03c1(\u03af|\u03b9)\u03c4\u03b7|\u03c4\u03b5\u03c4(\u03ac|\u03b1)\u03c1\u03c4\u03b7|\u03c0(\u03ad|\u03b5)\u03bc\u03c0\u03c4\u03b7|\u03c0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5(\u03ae|\u03b7)|\u03c3(\u03ac|\u03b1)\u03b2\u03b2\u03b1\u03c4\u03bf)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u03ba/i,/^\u03b4/i,/^\u03c4/i,/^\u03c4/i,/^\u03c0/i,/^\u03c0/i,/^\u03c3/i],any:[/^\u03ba/i,/^\u03b4/i,/^\u03c4\u03c1/i,/^\u03c4\u03b5/i,/^\u03c0[\u03b5\u03ad]/i,/^\u03c0[\u03b1\u03ac]/i,/^\u03c3/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u03c0\u03bc|\u03bc\u03bc|\u03bc\u03b5\u03c3(\u03ac|\u03b1)\u03bd\u03c5\u03c7\u03c4\u03b1|\u03bc\u03b5\u03c3\u03b7\u03bc(\u03ad|\u03b5)\u03c1\u03b9|\u03c0\u03c1\u03c9(\u03af|\u03b9)|\u03b1\u03c0(\u03cc|\u03bf)\u03b3\u03b5\u03c5\u03bc\u03b1|\u03b2\u03c1(\u03ac|\u03b1)\u03b4\u03c5|\u03bd(\u03cd|\u03c5)\u03c7\u03c4\u03b1)/i,any:/^([\u03c0\u03bc]\.?\s?\u03bc\.?|\u03bc\u03b5\u03c3(\u03ac|\u03b1)\u03bd\u03c5\u03c7\u03c4\u03b1|\u03bc\u03b5\u03c3\u03b7\u03bc(\u03ad|\u03b5)\u03c1\u03b9|\u03c0\u03c1\u03c9(\u03af|\u03b9)|\u03b1\u03c0(\u03cc|\u03bf)\u03b3\u03b5\u03c5\u03bc\u03b1|\u03b2\u03c1(\u03ac|\u03b1)\u03b4\u03c5|\u03bd(\u03cd|\u03c5)\u03c7\u03c4\u03b1)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u03c0\u03bc|\u03c0\.\s?\u03bc\./i,pm:/^\u03bc\u03bc|\u03bc\.\s?\u03bc\./i,midnight:/^\u03bc\u03b5\u03c3\u03ac\u03bd/i,noon:/^\u03bc\u03b5\u03c3\u03b7\u03bc(\u03ad|\u03b5)/i,morning:/\u03c0\u03c1\u03c9(\u03af|\u03b9)/i,afternoon:/\u03b1\u03c0(\u03cc|\u03bf)\u03b3\u03b5\u03c5\u03bc\u03b1/i,evening:/\u03b2\u03c1(\u03ac|\u03b1)\u03b4\u03c5/i,night:/\u03bd(\u03cd|\u03c5)\u03c7\u03c4\u03b1/i}},defaultParseWidth:"any"})},Fr=Nr,Hr={code:"el",formatDistance:Ar,formatLong:Rr,formatRelative:Ir,localize:zr,match:Fr,options:{weekStartsOn:1,firstWeekContainsDate:4}},Br=Hr,Vr={date:U({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qr=Vr,Yr={code:"en-AU",formatDistance:Y,formatLong:qr,formatRelative:J,localize:$,match:tt,options:{weekStartsOn:1,firstWeekContainsDate:4}},Ur=Yr,Gr={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},Xr=function(t,e,n){var r,i=Gr[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},Jr={date:U({formats:{full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Kr=Jr,$r={code:"en-CA",formatDistance:Xr,formatLong:Kr,formatRelative:J,localize:$,match:tt,options:{weekStartsOn:0,firstWeekContainsDate:1}},Qr=$r,Zr={date:U({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ti=Zr,ei={code:"en-GB",formatDistance:Y,formatLong:ti,formatRelative:J,localize:$,match:tt,options:{weekStartsOn:1,firstWeekContainsDate:4}},ni=ei,ri={code:"en-IE",formatDistance:Y,formatLong:ti,formatRelative:J,localize:$,match:tt,options:{weekStartsOn:1,firstWeekContainsDate:4}},ii=ri,oi={code:"en-IN",formatDistance:Y,formatLong:{date:U({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM, yyyy",medium:"d MMM, yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:J,localize:$,match:tt,options:{weekStartsOn:1,firstWeekContainsDate:4}},ai={code:"en-NZ",formatDistance:Y,formatLong:{date:U({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:J,localize:$,match:tt,options:{weekStartsOn:1,firstWeekContainsDate:4}},si={code:"en-ZA",formatDistance:Y,formatLong:{date:U({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:J,localize:$,match:tt,options:{weekStartsOn:0,firstWeekContainsDate:1}},li={lessThanXSeconds:{one:"malpli ol sekundo",other:"malpli ol {{count}} sekundoj"},xSeconds:{one:"1 sekundo",other:"{{count}} sekundoj"},halfAMinute:"duonminuto",lessThanXMinutes:{one:"malpli ol minuto",other:"malpli ol {{count}} minutoj"},xMinutes:{one:"1 minuto",other:"{{count}} minutoj"},aboutXHours:{one:"proksimume 1 horo",other:"proksimume {{count}} horoj"},xHours:{one:"1 horo",other:"{{count}} horoj"},xDays:{one:"1 tago",other:"{{count}} tagoj"},aboutXMonths:{one:"proksimume 1 monato",other:"proksimume {{count}} monatoj"},xWeeks:{one:"1 semajno",other:"{{count}} semajnoj"},aboutXWeeks:{one:"proksimume 1 semajno",other:"proksimume {{count}} semajnoj"},xMonths:{one:"1 monato",other:"{{count}} monatoj"},aboutXYears:{one:"proksimume 1 jaro",other:"proksimume {{count}} jaroj"},xYears:{one:"1 jaro",other:"{{count}} jaroj"},overXYears:{one:"pli ol 1 jaro",other:"pli ol {{count}} jaroj"},almostXYears:{one:"preska\u016d 1 jaro",other:"preska\u016d {{count}} jaroj"}},ui=function(t,e,n){var r,i=li[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?null!==n&&void 0!==n&&n.comparison&&n.comparison>0?"post "+r:"anta\u016d "+r:r},ci={date:U({formats:{full:"EEEE, do 'de' MMMM y",long:"y-MMMM-dd",medium:"y-MMM-dd",short:"yyyy-MM-dd"},defaultWidth:"full"}),time:U({formats:{full:"Ho 'horo kaj' m:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},di={lastWeek:"'pasinta' eeee 'je' p",yesterday:"'hiera\u016d je' p",today:"'hodia\u016d je' p",tomorrow:"'morga\u016d je' p",nextWeek:"eeee 'je' p",other:"P"},hi={code:"eo",formatDistance:ui,formatLong:ci,formatRelative:function(t,e,n,r){return di[t]},localize:{ordinalNumber:function(t){return Number(t)+"-a"},era:K({values:{narrow:["aK","pK"],abbreviated:["a.K.E.","p.K.E."],wide:["anta\u016d Komuna Erao","Komuna Erao"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1-a kvaronjaro","2-a kvaronjaro","3-a kvaronjaro","4-a kvaronjaro"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan","feb","mar","apr","maj","jun","jul","a\u016dg","sep","okt","nov","dec"],wide:["januaro","februaro","marto","aprilo","majo","junio","julio","a\u016dgusto","septembro","oktobro","novembro","decembro"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","L","M","M","\u0134","V","S"],short:["di","lu","ma","me","\u0135a","ve","sa"],abbreviated:["dim","lun","mar","mer","\u0135a\u016d","ven","sab"],wide:["diman\u0109o","lundo","mardo","merkredo","\u0135a\u016ddo","vendredo","sabato"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},abbreviated:{am:"a.t.m.",pm:"p.t.m.",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},wide:{am:"anta\u016dtagmeze",pm:"posttagmeze",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"}},defaultWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-?a)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^([ap]k)/i,abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i,wide:/^((anta\u01d4 |post )?komuna erao)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^[kp]/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](-?a)? kvaronjaro/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(\u016d|ux|uh|u)g|sep|okt|nov|dec)/i,wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(\u016d|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^a(u|\u016d)/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[dlm\u0135jvs]/i,short:/^(di|lu|ma|me|(\u0135|jx|jh|j)a|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|(\u0135|jx|jh|j)a(\u016d|ux|uh|u)|ven|sab)/i,wide:/^(diman(\u0109|cx|ch|c)o|lundo|mardo|merkredo|(\u0135|jx|jh|j)a(\u016d|ux|uh|u)do|vendredo|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^(j|\u0135)/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^(j|\u0135)/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,wide:/^(anta(\u016d|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^noktom/i,noon:/^t/i,morning:/^m/i,afternoon:/^posttagmeze/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},fi={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xeda",other:"{{count}} d\xedas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 a\xf1o",other:"alrededor de {{count}} a\xf1os"},xYears:{one:"1 a\xf1o",other:"{{count}} a\xf1os"},overXYears:{one:"m\xe1s de 1 a\xf1o",other:"m\xe1s de {{count}} a\xf1os"},almostXYears:{one:"casi 1 a\xf1o",other:"casi {{count}} a\xf1os"}},pi=function(t,e,n){var r,i=fi[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},mi={date:U({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},gi={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'ma\xf1ana a la' p",nextWeek:"eeee 'a la' p",other:"P"},bi={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'ma\xf1ana a las' p",nextWeek:"eeee 'a las' p",other:"P"},vi={code:"es",formatDistance:pi,formatLong:mi,formatRelative:function(t,e,n,r){return 1!==e.getUTCHours()?bi[t]:gi[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"\xba"},era:K({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despu\xe9s de cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:K({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","s\xe1"],abbreviated:["dom","lun","mar","mi\xe9","jue","vie","s\xe1b"],wide:["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\xba)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[u\xfa]n|despu[e\xe9]s de cristo|era com[u\xfa]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[u\xfa]n)/i,/^(despu[e\xe9]s de cristo|era com[u\xfa]n)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[\xe1a])/i,abbreviated:/^(dom|lun|mar|mi[\xe9e]|jue|vie|s[\xe1a]b)/i,wide:/^(domingo|lunes|martes|mi[\xe9e]rcoles|jueves|viernes|s[\xe1a]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (ma\xf1ana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (ma\xf1ana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/ma\xf1ana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},yi={lessThanXSeconds:{standalone:{one:"v\xe4hem kui \xfcks sekund",other:"v\xe4hem kui {{count}} sekundit"},withPreposition:{one:"v\xe4hem kui \xfche sekundi",other:"v\xe4hem kui {{count}} sekundi"}},xSeconds:{standalone:{one:"\xfcks sekund",other:"{{count}} sekundit"},withPreposition:{one:"\xfche sekundi",other:"{{count}} sekundi"}},halfAMinute:{standalone:"pool minutit",withPreposition:"poole minuti"},lessThanXMinutes:{standalone:{one:"v\xe4hem kui \xfcks minut",other:"v\xe4hem kui {{count}} minutit"},withPreposition:{one:"v\xe4hem kui \xfche minuti",other:"v\xe4hem kui {{count}} minuti"}},xMinutes:{standalone:{one:"\xfcks minut",other:"{{count}} minutit"},withPreposition:{one:"\xfche minuti",other:"{{count}} minuti"}},aboutXHours:{standalone:{one:"umbes \xfcks tund",other:"umbes {{count}} tundi"},withPreposition:{one:"umbes \xfche tunni",other:"umbes {{count}} tunni"}},xHours:{standalone:{one:"\xfcks tund",other:"{{count}} tundi"},withPreposition:{one:"\xfche tunni",other:"{{count}} tunni"}},xDays:{standalone:{one:"\xfcks p\xe4ev",other:"{{count}} p\xe4eva"},withPreposition:{one:"\xfche p\xe4eva",other:"{{count}} p\xe4eva"}},aboutXWeeks:{standalone:{one:"umbes \xfcks n\xe4dal",other:"umbes {{count}} n\xe4dalat"},withPreposition:{one:"umbes \xfche n\xe4dala",other:"umbes {{count}} n\xe4dala"}},xWeeks:{standalone:{one:"\xfcks n\xe4dal",other:"{{count}} n\xe4dalat"},withPreposition:{one:"\xfche n\xe4dala",other:"{{count}} n\xe4dala"}},aboutXMonths:{standalone:{one:"umbes \xfcks kuu",other:"umbes {{count}} kuud"},withPreposition:{one:"umbes \xfche kuu",other:"umbes {{count}} kuu"}},xMonths:{standalone:{one:"\xfcks kuu",other:"{{count}} kuud"},withPreposition:{one:"\xfche kuu",other:"{{count}} kuu"}},aboutXYears:{standalone:{one:"umbes \xfcks aasta",other:"umbes {{count}} aastat"},withPreposition:{one:"umbes \xfche aasta",other:"umbes {{count}} aasta"}},xYears:{standalone:{one:"\xfcks aasta",other:"{{count}} aastat"},withPreposition:{one:"\xfche aasta",other:"{{count}} aasta"}},overXYears:{standalone:{one:"rohkem kui \xfcks aasta",other:"rohkem kui {{count}} aastat"},withPreposition:{one:"rohkem kui \xfche aasta",other:"rohkem kui {{count}} aasta"}},almostXYears:{standalone:{one:"peaaegu \xfcks aasta",other:"peaaegu {{count}} aastat"},withPreposition:{one:"peaaegu \xfche aasta",other:"peaaegu {{count}} aasta"}}},wi=function(t,e,n){var r,i=null!==n&&void 0!==n&&n.addSuffix?yi[t].withPreposition:yi[t].standalone;return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+" p\xe4rast":r+" eest":r},ki={date:U({formats:{full:"EEEE, d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'kell' {{time}}",long:"{{date}} 'kell' {{time}}",medium:"{{date}}. {{time}}",short:"{{date}}. {{time}}"},defaultWidth:"full"})},_i={lastWeek:"'eelmine' eeee 'kell' p",yesterday:"'eile kell' p",today:"'t\xe4na kell' p",tomorrow:"'homme kell' p",nextWeek:"'j\xe4rgmine' eeee 'kell' p",other:"P"},Oi={narrow:["J","V","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jaan","veebr","m\xe4rts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],wide:["jaanuar","veebruar","m\xe4rts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]},xi={narrow:["P","E","T","K","N","R","L"],short:["P","E","T","K","N","R","L"],abbreviated:["p\xfchap.","esmasp.","teisip.","kolmap.","neljap.","reede.","laup."],wide:["p\xfchap\xe4ev","esmasp\xe4ev","teisip\xe4ev","kolmap\xe4ev","neljap\xe4ev","reede","laup\xe4ev"]},Ei={code:"et",formatDistance:wi,formatLong:ki,formatRelative:function(t,e,n,r){return _i[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["e.m.a","m.a.j"],abbreviated:["e.m.a","m.a.j"],wide:["enne meie ajaarvamist","meie ajaarvamise j\xe4rgi"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:Oi,defaultWidth:"wide",formattingValues:Oi,defaultFormattingWidth:"wide"}),day:K({values:xi,defaultWidth:"wide",formattingValues:xi,defaultFormattingWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6",noon:"keskp\xe4ev",morning:"hommik",afternoon:"p\xe4rastl\xf5una",evening:"\xf5htu",night:"\xf6\xf6"},abbreviated:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6",noon:"keskp\xe4ev",morning:"hommik",afternoon:"p\xe4rastl\xf5una",evening:"\xf5htu",night:"\xf6\xf6"},wide:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6",noon:"keskp\xe4ev",morning:"hommik",afternoon:"p\xe4rastl\xf5una",evening:"\xf5htu",night:"\xf6\xf6"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6l",noon:"keskp\xe4eval",morning:"hommikul",afternoon:"p\xe4rastl\xf5unal",evening:"\xf5htul",night:"\xf6\xf6sel"},abbreviated:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6l",noon:"keskp\xe4eval",morning:"hommikul",afternoon:"p\xe4rastl\xf5unal",evening:"\xf5htul",night:"\xf6\xf6sel"},wide:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6l",noon:"keskp\xe4eval",morning:"hommikul",afternoon:"p\xe4rastl\xf5unal",evening:"\xf5htul",night:"\xf6\xf6sel"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^\d+\./i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise j\xe4rgi|enne Kristust|p\xe4rast Kristust)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^(m|p)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|m\xe4rts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|m\xe4rts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^m\xe4r/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(p\xfch?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(p\xfchap\xe4ev|esmasp\xe4ev|teisip\xe4ev|kolmap\xe4ev|neljap\xe4ev|reede|laup\xe4ev)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(am|pm|kesk\xf6\xf6l?|keskp\xe4ev(al)?|hommik(ul)?|p\xe4rastl\xf5unal?|\xf5htul?|\xf6\xf6(sel)?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^kesk\xf6/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/p\xe4rastl\xf5una/i,evening:/\xf5htu/i,night:/\xf6\xf6/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ji={lessThanXSeconds:{one:"segundo bat baino gutxiago",other:"{{count}} segundo baino gutxiago"},xSeconds:{one:"1 segundo",other:"{{count}} segundo"},halfAMinute:"minutu erdi",lessThanXMinutes:{one:"minutu bat baino gutxiago",other:"{{count}} minutu baino gutxiago"},xMinutes:{one:"1 minutu",other:"{{count}} minutu"},aboutXHours:{one:"1 ordu gutxi gorabehera",other:"{{count}} ordu gutxi gorabehera"},xHours:{one:"1 ordu",other:"{{count}} ordu"},xDays:{one:"1 egun",other:"{{count}} egun"},aboutXWeeks:{one:"aste 1 inguru",other:"{{count}} aste inguru"},xWeeks:{one:"1 aste",other:"{{count}} astean"},aboutXMonths:{one:"1 hilabete gutxi gorabehera",other:"{{count}} hilabete gutxi gorabehera"},xMonths:{one:"1 hilabete",other:"{{count}} hilabete"},aboutXYears:{one:"1 urte gutxi gorabehera",other:"{{count}} urte gutxi gorabehera"},xYears:{one:"1 urte",other:"{{count}} urte"},overXYears:{one:"1 urte baino gehiago",other:"{{count}} urte baino gehiago"},almostXYears:{one:"ia 1 urte",other:"ia {{count}} urte"}},Si=function(t,e,n){var r,i=ji[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"duela "+r:r},Pi={date:U({formats:{full:"EEEE, y'ko' MMMM'ren' d'a' y'ren'",long:"y'ko' MMMM'ren' d'a'",medium:"y MMM d",short:"yy/MM/dd"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'tan' {{time}}",long:"{{date}} 'tan' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ci={lastWeek:"'joan den' eeee, LT",yesterday:"'atzo,' p",today:"'gaur,' p",tomorrow:"'bihar,' p",nextWeek:"eeee, p",other:"P"},Ti={lastWeek:"'joan den' eeee, p",yesterday:"'atzo,' p",today:"'gaur,' p",tomorrow:"'bihar,' p",nextWeek:"eeee, p",other:"P"},Mi={code:"eu",formatDistance:Si,formatLong:Pi,formatRelative:function(t,e){return 1!==e.getUTCHours()?Ti[t]:Ci[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["k.a.","k.o."],abbreviated:["k.a.","k.o."],wide:["kristo aurretik","kristo ondoren"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1H","2H","3H","4H"],wide:["1. hiruhilekoa","2. hiruhilekoa","3. hiruhilekoa","4. hiruhilekoa"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["u","o","m","a","m","e","u","a","i","u","a","a"],abbreviated:["urt","ots","mar","api","mai","eka","uzt","abu","ira","urr","aza","abe"],wide:["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"]},defaultWidth:"wide"}),day:K({values:{narrow:["i","a","a","a","o","o","l"],short:["ig","al","as","az","og","or","lr"],abbreviated:["iga","ast","ast","ast","ost","ost","lar"],wide:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"ge",noon:"eg",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"},abbreviated:{am:"AM",pm:"PM",midnight:"gauerdia",noon:"eguerdia",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"},wide:{am:"a.m.",pm:"p.m.",midnight:"gauerdia",noon:"eguerdia",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"ge",noon:"eg",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"},abbreviated:{am:"AM",pm:"PM",midnight:"gauerdia",noon:"eguerdia",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"},wide:{am:"a.m.",pm:"p.m.",midnight:"gauerdia",noon:"eguerdia",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(.)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(k.a.|k.o.)/i,abbreviated:/^(k.a.|k.o.)/i,wide:/^(kristo aurretik|kristo ondoren)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^k.a./i,/^k.o./i],abbreviated:[/^(k.a.)/i,/^(k.o.)/i],wide:[/^(kristo aurretik)/i,/^(kristo ondoren)/i]},defaultParseWidth:"wide"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]H/i,wide:/^[1234](.)? hiruhilekoa/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[uomaei]/i,abbreviated:/^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i,wide:/^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^u/i,/^o/i,/^m/i,/^a/i,/^m/i,/^e/i,/^u/i,/^a/i,/^i/i,/^u/i,/^a/i,/^a/i],any:[/^urt/i,/^ots/i,/^mar/i,/^api/i,/^mai/i,/^eka/i,/^uzt/i,/^abu/i,/^ira/i,/^urr/i,/^aza/i,/^abe/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[iaol]/i,short:/^(ig|al|as|az|og|or|lr)/i,abbreviated:/^(iga|ast|ast|ast|ost|ost|lar)/i,wide:/^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^a/i,/^a/i,/^a/i,/^o/i,/^o/i,/^l/i],short:[/^ig/i,/^al/i,/^as/i,/^az/i,/^og/i,/^or/i,/^lr/i],abbreviated:[/^iga/i,/^ast/i,/^ast/i,/^ast/i,/^ost/i,/^ost/i,/^lar/i],wide:[/^igandea/i,/^astelehena/i,/^asteartea/i,/^asteazkena/i,/^osteguna/i,/^ostirala/i,/^larunbata/i]},defaultParseWidth:"wide"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i,any:/^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a/i,pm:/^p/i,midnight:/^ge/i,noon:/^eg/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i},any:{am:/^a/i,pm:/^p/i,midnight:/^gauerdia/i,noon:/^eguerdia/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ai={lessThanXSeconds:{one:"\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u062b\u0627\u0646\u06cc\u0647",other:"\u06a9\u0645\u062a\u0631 \u0627\u0632 {{count}} \u062b\u0627\u0646\u06cc\u0647"},xSeconds:{one:"1 \u062b\u0627\u0646\u06cc\u0647",other:"{{count}} \u062b\u0627\u0646\u06cc\u0647"},halfAMinute:"\u0646\u06cc\u0645 \u062f\u0642\u06cc\u0642\u0647",lessThanXMinutes:{one:"\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",other:"\u06a9\u0645\u062a\u0631 \u0627\u0632 {{count}} \u062f\u0642\u06cc\u0642\u0647"},xMinutes:{one:"1 \u062f\u0642\u06cc\u0642\u0647",other:"{{count}} \u062f\u0642\u06cc\u0642\u0647"},aboutXHours:{one:"\u062d\u062f\u0648\u062f 1 \u0633\u0627\u0639\u062a",other:"\u062d\u062f\u0648\u062f {{count}} \u0633\u0627\u0639\u062a"},xHours:{one:"1 \u0633\u0627\u0639\u062a",other:"{{count}} \u0633\u0627\u0639\u062a"},xDays:{one:"1 \u0631\u0648\u0632",other:"{{count}} \u0631\u0648\u0632"},aboutXWeeks:{one:"\u062d\u062f\u0648\u062f 1 \u0647\u0641\u062a\u0647",other:"\u062d\u062f\u0648\u062f {{count}} \u0647\u0641\u062a\u0647"},xWeeks:{one:"1 \u0647\u0641\u062a\u0647",other:"{{count}} \u0647\u0641\u062a\u0647"},aboutXMonths:{one:"\u062d\u062f\u0648\u062f 1 \u0645\u0627\u0647",other:"\u062d\u062f\u0648\u062f {{count}} \u0645\u0627\u0647"},xMonths:{one:"1 \u0645\u0627\u0647",other:"{{count}} \u0645\u0627\u0647"},aboutXYears:{one:"\u062d\u062f\u0648\u062f 1 \u0633\u0627\u0644",other:"\u062d\u062f\u0648\u062f {{count}} \u0633\u0627\u0644"},xYears:{one:"1 \u0633\u0627\u0644",other:"{{count}} \u0633\u0627\u0644"},overXYears:{one:"\u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 1 \u0633\u0627\u0644",other:"\u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 {{count}} \u0633\u0627\u0644"},almostXYears:{one:"\u0646\u0632\u062f\u06cc\u06a9 1 \u0633\u0627\u0644",other:"\u0646\u0632\u062f\u06cc\u06a9 {{count}} \u0633\u0627\u0644"}},Di=function(t,e,n){var r,i=Ai[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u062f\u0631 "+r:r+" \u0642\u0628\u0644":r},Ri={date:U({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u062f\u0631' {{time}}",long:"{{date}} '\u062f\u0631' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Li={lastWeek:"eeee '\u06af\u0630\u0634\u062a\u0647 \u062f\u0631' p",yesterday:"'\u062f\u06cc\u0631\u0648\u0632 \u062f\u0631' p",today:"'\u0627\u0645\u0631\u0648\u0632 \u062f\u0631' p",tomorrow:"'\u0641\u0631\u062f\u0627 \u062f\u0631' p",nextWeek:"eeee '\u062f\u0631' p",other:"P"},Ii={code:"fa-IR",formatDistance:Di,formatLong:Ri,formatRelative:function(t,e,n,r){return Li[t]},localize:{ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0632 \u0645\u06cc\u0644\u0627\u062f","\u0628\u0639\u062f \u0627\u0632 \u0645\u06cc\u0644\u0627\u062f"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u0633\u200c\u06451","\u0633\u200c\u06452","\u0633\u200c\u06453","\u0633\u200c\u06454"],wide:["\u0633\u0647\u200c\u0645\u0627\u0647\u0647 1","\u0633\u0647\u200c\u0645\u0627\u0647\u0647 2","\u0633\u0647\u200c\u0645\u0627\u0647\u0647 3","\u0633\u0647\u200c\u0645\u0627\u0647\u0647 4"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0698","\u0641","\u0645","\u0622","\u0645","\u062c","\u062c","\u0622","\u0633","\u0627","\u0646","\u062f"],abbreviated:["\u0698\u0627\u0646\u0640","\u0641\u0648\u0631","\u0645\u0627\u0631\u0633","\u0622\u067e\u0631","\u0645\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0640","\u0622\u06af\u0648","\u0633\u067e\u062a\u0640","\u0627\u06a9\u062a\u0640","\u0646\u0648\u0627\u0645\u0640","\u062f\u0633\u0627\u0645\u0640"],wide:["\u0698\u0627\u0646\u0648\u06cc\u0647","\u0641\u0648\u0631\u06cc\u0647","\u0645\u0627\u0631\u0633","\u0622\u067e\u0631\u06cc\u0644","\u0645\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u06cc","\u0622\u06af\u0648\u0633\u062a","\u0633\u067e\u062a\u0627\u0645\u0628\u0631","\u0627\u06a9\u062a\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062f\u0633\u0627\u0645\u0628\u0631"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u06cc","\u062f","\u0633","\u0686","\u067e","\u062c","\u0634"],short:["1\u0634","2\u0634","3\u0634","4\u0634","5\u0634","\u062c","\u0634"],abbreviated:["\u06cc\u06a9\u0634\u0646\u0628\u0647","\u062f\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200c\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067e\u0646\u062c\u0634\u0646\u0628\u0647","\u062c\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"],wide:["\u06cc\u06a9\u0634\u0646\u0628\u0647","\u062f\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200c\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067e\u0646\u062c\u0634\u0646\u0628\u0647","\u062c\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0642",pm:"\u0628",midnight:"\u0646",noon:"\u0638",morning:"\u0635",afternoon:"\u0628.\u0638.",evening:"\u0639",night:"\u0634"},abbreviated:{am:"\u0642.\u0638.",pm:"\u0628.\u0638.",midnight:"\u0646\u06cc\u0645\u0647\u200c\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062d",afternoon:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"},wide:{am:"\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631",pm:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",midnight:"\u0646\u06cc\u0645\u0647\u200c\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062d",afternoon:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0642",pm:"\u0628",midnight:"\u0646",noon:"\u0638",morning:"\u0635",afternoon:"\u0628.\u0638.",evening:"\u0639",night:"\u0634"},abbreviated:{am:"\u0642.\u0638.",pm:"\u0628.\u0638.",midnight:"\u0646\u06cc\u0645\u0647\u200c\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062d",afternoon:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"},wide:{am:"\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631",pm:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",midnight:"\u0646\u06cc\u0645\u0647\u200c\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062d",afternoon:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0642|\u0628)/i,abbreviated:/^(\u0642\.?\s?\u0645\.?|\u0642\.?\s?\u062f\.?\s?\u0645\.?|\u0645\.?\s?|\u062f\.?\s?\u0645\.?)/i,wide:/^(\u0642\u0628\u0644 \u0627\u0632 \u0645\u06cc\u0644\u0627\u062f|\u0642\u0628\u0644 \u0627\u0632 \u062f\u0648\u0631\u0627\u0646 \u0645\u0634\u062a\u0631\u06a9|\u0645\u06cc\u0644\u0627\u062f\u06cc|\u062f\u0648\u0631\u0627\u0646 \u0645\u0634\u062a\u0631\u06a9|\u0628\u0639\u062f \u0627\u0632 \u0645\u06cc\u0644\u0627\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0642\u0628\u0644/i,/^\u0628\u0639\u062f/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0633\u200c\u0645[1234]/i,wide:/^\u0633\u0647\u200c\u0645\u0627\u0647\u0647 [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u062c\u0698\u0641\u0645\u0622\u0627\u0645\u0627\u0633\u0646\u062f]/i,abbreviated:/^(\u062c\u0646\u0648|\u0698\u0627\u0646\u0640|\u0698\u0627\u0646\u0648\u06cc\u0647|\u0641\u0648\u0631\u06cc\u0647|\u0641\u0648\u0631|\u0645\u0627\u0631\u0633|\u0622\u0648\u0631\u06cc\u0644|\u0622\u067e\u0631|\u0645\u0647|\u0645\u06cc|\u0698\u0648\u0626\u0646|\u062c\u0648\u0646|\u062c\u0648\u0644|\u062c\u0648\u0644\u0640|\u0698\u0648\u0626\u06cc\u0647|\u0627\u0648\u062a|\u0622\u06af\u0648|\u0633\u067e\u062a\u0645\u0628\u0631|\u0633\u067e\u062a\u0627\u0645\u0628\u0631|\u0627\u06a9\u062a\u0628\u0631|\u0627\u06a9\u062a\u0648\u0628\u0631|\u0646\u0648\u0627\u0645\u0628\u0631|\u0646\u0648\u0627\u0645\u0640|\u062f\u0633\u0627\u0645\u0628\u0631|\u062f\u0633\u0627\u0645\u0640|\u062f\u0633\u0645)/i,wide:/^(\u0698\u0627\u0646\u0648\u06cc\u0647|\u062c\u0646\u0648\u0631\u06cc|\u0641\u0628\u0631\u0648\u0631\u06cc|\u0641\u0648\u0631\u06cc\u0647|\u0645\u0627\u0631\u0686|\u0645\u0627\u0631\u0633|\u0622\u067e\u0631\u06cc\u0644|\u0627\u067e\u0631\u06cc\u0644|\u0627\u06cc\u067e\u0631\u06cc\u0644|\u0622\u0648\u0631\u06cc\u0644|\u0645\u0647|\u0645\u06cc|\u0698\u0648\u0626\u0646|\u062c\u0648\u0646|\u062c\u0648\u0644\u0627\u06cc|\u0698\u0648\u0626\u06cc\u0647|\u0622\u06af\u0633\u062a|\u0627\u06af\u0633\u062a|\u0622\u06af\u0648\u0633\u062a|\u0627\u0648\u062a|\u0633\u067e\u062a\u0645\u0628\u0631|\u0633\u067e\u062a\u0627\u0645\u0628\u0631|\u0627\u06a9\u062a\u0628\u0631|\u0627\u06a9\u062a\u0648\u0628\u0631|\u0646\u0648\u0627\u0645\u0628\u0631|\u0646\u0648\u0645\u0628\u0631|\u062f\u0633\u0627\u0645\u0628\u0631|\u062f\u0633\u0645\u0628\u0631)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^(\u0698|\u062c)/i,/^\u0641/i,/^\u0645/i,/^(\u0622|\u0627)/i,/^\u0645/i,/^(\u0698|\u062c)/i,/^(\u062c|\u0698)/i,/^(\u0622|\u0627)/i,/^\u0633/i,/^\u0627/i,/^\u0646/i,/^\u062f/i],any:[/^\u0698\u0627/i,/^\u0641/i,/^\u0645\u0627/i,/^\u0622\u067e/i,/^(\u0645\u06cc|\u0645\u0647)/i,/^(\u0698\u0648\u0626\u0646|\u062c\u0648\u0646)/i,/^(\u0698\u0648\u0626\u06cc|\u062c\u0648\u0644)/i,/^(\u0627\u0648\u062a|\u0622\u06af)/i,/^\u0633/i,/^(\u0627\u0648\u06a9|\u0627\u06a9)/i,/^\u0646/i,/^\u062f/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u0634\u06cc\u062f\u0633\u0686\u067e\u062c]/i,short:/^(\u0634|\u062c|1\u0634|2\u0634|3\u0634|4\u0634|5\u0634)/i,abbreviated:/^(\u06cc\u06a9\u0634\u0646\u0628\u0647|\u062f\u0648\u0634\u0646\u0628\u0647|\u0633\u0647\u200c\u0634\u0646\u0628\u0647|\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647|\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647|\u062c\u0645\u0639\u0647|\u0634\u0646\u0628\u0647)/i,wide:/^(\u06cc\u06a9\u0634\u0646\u0628\u0647|\u062f\u0648\u0634\u0646\u0628\u0647|\u0633\u0647\u200c\u0634\u0646\u0628\u0647|\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647|\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647|\u062c\u0645\u0639\u0647|\u0634\u0646\u0628\u0647)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u06cc/i,/^\u062f\u0648/i,/^\u0633/i,/^\u0686/i,/^\u067e/i,/^\u062c/i,/^\u0634/i],any:[/^(\u06cc|1\u0634|\u06cc\u06a9\u0634\u0646\u0628\u0647)/i,/^(\u062f|2\u0634|\u062f\u0648\u0634\u0646\u0628\u0647)/i,/^(\u0633|3\u0634|\u0633\u0647\u200c\u0634\u0646\u0628\u0647)/i,/^(\u0686|4\u0634|\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647)/i,/^(\u067e|5\u0634|\u067e\u0646\u062c\u0634\u0646\u0628\u0647)/i,/^(\u062c|\u062c\u0645\u0639\u0647)/i,/^(\u0634|\u0634\u0646\u0628\u0647)/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u0628|\u0642|\u0646|\u0638|\u0635|\u0628.\u0638.|\u0639|\u0634)/i,abbreviated:/^(\u0642.\u0638.|\u0628.\u0638.|\u0646\u06cc\u0645\u0647\u200c\u0634\u0628|\u0638\u0647\u0631|\u0635\u0628\u062d|\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631|\u0639\u0635\u0631|\u0634\u0628)/i,wide:/^(\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631|\u0646\u06cc\u0645\u0647\u200c\u0634\u0628|\u0638\u0647\u0631|\u0635\u0628\u062d|\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631|\u0639\u0635\u0631|\u0634\u0628)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^(\u0642|\u0642.\u0638.|\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631)/i,pm:/^(\u0628|\u0628.\u0638.|\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631)/i,midnight:/^(\u200c\u0646\u06cc\u0645\u0647\u200c\u0634\u0628|\u0646)/i,noon:/^(\u0638|\u0638\u0647\u0631)/i,morning:/(\u0635|\u0635\u0628\u062d)/i,afternoon:/(\u0628|\u0628.\u0638.|\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631)/i,evening:/(\u0639|\u0639\u0635\u0631)/i,night:/(\u0634|\u0634\u0628)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:6,firstWeekContainsDate:1}};function Wi(t){return t.replace(/sekuntia?/,"sekunnin")}function zi(t){return t.replace(/minuuttia?/,"minuutin")}function Ni(t){return t.replace(/tuntia?/,"tunnin")}function Fi(t){return t.replace(/(viikko|viikkoa)/,"viikon")}function Hi(t){return t.replace(/(kuukausi|kuukautta)/,"kuukauden")}function Bi(t){return t.replace(/(vuosi|vuotta)/,"vuoden")}var Vi={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:Wi},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:Wi},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:function(t){return"puolen minuutin"}},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:zi},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:zi},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:Ni},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:Ni},xDays:{one:"p\xe4iv\xe4",other:"{{count}} p\xe4iv\xe4\xe4",futureTense:function(t){return t.replace(/p\xe4iv\xe4\xe4?/,"p\xe4iv\xe4n")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:Fi},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:Fi},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:Hi},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:Hi},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:Bi},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:Bi},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:Bi},almostXYears:{one:"l\xe4hes vuosi",other:"l\xe4hes {{count}} vuotta",futureTense:Bi}},qi=function(t,e,n){var r=Vi[t],i=1===e?r.one:r.other.replace("{{count}}",String(e));return null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r.futureTense(i)+" kuluttua":i+" sitten":i},Yi={date:U({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:U({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ui=Yi,Gi={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'t\xe4n\xe4\xe4n klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},Xi=function(t,e,n,r){return Gi[t]},Ji={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kes\xe4","hein\xe4","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},Ki={narrow:Ji.narrow,abbreviated:Ji.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kes\xe4kuuta","hein\xe4kuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},$i={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},Qi={narrow:$i.narrow,short:$i.short,abbreviated:$i.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},Zi={ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","j\xe4lkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:Ji,defaultWidth:"wide",formattingValues:Ki,defaultFormattingWidth:"wide"}),day:K({values:$i,defaultWidth:"wide",formattingValues:Qi,defaultFormattingWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},wide:{am:"ap",pm:"ip",midnight:"keskiy\xf6ll\xe4",noon:"keskip\xe4iv\xe4ll\xe4",morning:"aamup\xe4iv\xe4ll\xe4",afternoon:"iltap\xe4iv\xe4ll\xe4",evening:"illalla",night:"y\xf6ll\xe4"}},defaultWidth:"wide"})},to=Zi,eo={ordinalNumber:Z({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|j\xe4lkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kes\xe4kuu|hein\xe4kuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(ap|ip|keskiy\xf6|keskip\xe4iv\xe4|aamup\xe4iv\xe4ll\xe4|iltap\xe4iv\xe4ll\xe4|illalla|y\xf6ll\xe4)/i,any:/^(ap|ip|keskiy\xf6ll\xe4|keskip\xe4iv\xe4ll\xe4|aamup\xe4iv\xe4ll\xe4|iltap\xe4iv\xe4ll\xe4|illalla|y\xf6ll\xe4)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiy\xf6/i,noon:/^keskip\xe4iv\xe4/i,morning:/aamup\xe4iv\xe4ll\xe4/i,afternoon:/iltap\xe4iv\xe4ll\xe4/i,evening:/illalla/i,night:/y\xf6ll\xe4/i}},defaultParseWidth:"any"})},no=eo,ro={code:"fi",formatDistance:qi,formatLong:Ui,formatRelative:Xi,localize:to,match:no,options:{weekStartsOn:1,firstWeekContainsDate:4}},io=ro,oo={lessThanXSeconds:{one:"moins d\u2019une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d\u2019une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d\u2019un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu\u2019un an",other:"presque {{count}} ans"}},ao=function(t,e,n){var r,i=oo[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},so={date:U({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},lo=so,uo={lastWeek:"eeee 'dernier \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd\u2019hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'prochain \xe0' p",other:"P"},co=function(t,e,n,r){return uo[t]},ho={ordinalNumber:function(t,e){var n=Number(t),r=null===e||void 0===e?void 0:e.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"\xe8re":"er":"\xe8me")},era:K({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xe8me trim.","3\xe8me trim.","4\xe8me trim."],wide:["1er trimestre","2\xe8me trimestre","3\xe8me trimestre","4\xe8me trimestre"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],wide:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xe8s-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l\u2019apr\xe8s-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},fo=ho,po={ordinalNumber:Z({matchPattern:/^(\d+)(i\xe8me|\xe8re|\xe8me|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t)}}),era:Q({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant J\xe9sus-Christ|apr\xe8s J\xe9sus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|\xe8me|e)? trim\.?/i,wide:/^[1234](er|\xe8me|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|f\xe9vr|mars|avr|mai|juin|juill|juil|ao\xfbt|sept|oct|nov|d\xe9c)\.?/i,wide:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'apr\xe8s[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},mo=po,go={code:"fr",formatDistance:ao,formatLong:lo,formatRelative:co,localize:fo,match:mo,options:{weekStartsOn:1,firstWeekContainsDate:4}},bo=go,vo={date:U({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},yo=vo,wo={code:"fr-CA",formatDistance:ao,formatLong:yo,formatRelative:co,localize:fo,match:mo,options:{weekStartsOn:0,firstWeekContainsDate:1}},ko=wo,_o={date:U({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Oo={lastWeek:"eeee 'la semaine derni\xe8re \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd\u2019hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'la semaine prochaine \xe0' p",other:"P"},xo={code:"fr-CH",formatDistance:ao,formatLong:_o,formatRelative:function(t,e,n,r){return Oo[t]},localize:fo,match:mo,options:{weekStartsOn:1,firstWeekContainsDate:4}},Eo={lessThanXSeconds:{one:"minder as 1 sekonde",other:"minder as {{count}} sekonden"},xSeconds:{one:"1 sekonde",other:"{{count}} sekonden"},halfAMinute:"oardel min\xfat",lessThanXMinutes:{one:"minder as 1 min\xfat",other:"minder as {{count}} minuten"},xMinutes:{one:"1 min\xfat",other:"{{count}} minuten"},aboutXHours:{one:"sawat 1 oere",other:"sawat {{count}} oere"},xHours:{one:"1 oere",other:"{{count}} oere"},xDays:{one:"1 dei",other:"{{count}} dagen"},aboutXWeeks:{one:"sawat 1 wike",other:"sawat {{count}} wiken"},xWeeks:{one:"1 wike",other:"{{count}} wiken"},aboutXMonths:{one:"sawat 1 moanne",other:"sawat {{count}} moannen"},xMonths:{one:"1 moanne",other:"{{count}} moannen"},aboutXYears:{one:"sawat 1 jier",other:"sawat {{count}} jier"},xYears:{one:"1 jier",other:"{{count}} jier"},overXYears:{one:"mear as 1 jier",other:"mear as {{count}}s jier"},almostXYears:{one:"hast 1 jier",other:"hast {{count}} jier"}},jo=function(t,e,n){var r,i=Eo[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"oer "+r:r+" lyn":r},So={date:U({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Po={lastWeek:"'\xf4fr\xfbne' eeee 'om' p",yesterday:"'juster om' p",today:"'hjoed om' p",tomorrow:"'moarn om' p",nextWeek:"eeee 'om' p",other:"P"},Co={code:"fy",formatDistance:jo,formatLong:So,formatRelative:function(t,e,n,r){return Po[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"e"},era:K({values:{narrow:["f.K.","n.K."],abbreviated:["f.Kr.","n.Kr."],wide:["foar Kristus","nei Kristus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e fearnsjier","2e fearnsjier","3e fearnsjier","4e fearnsjier"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mrt.","apr.","mai.","jun.","jul.","aug.","sep.","okt.","nov.","des."],wide:["jannewaris","febrewaris","maart","april","maaie","juny","july","augustus","septimber","oktober","novimber","desimber"]},defaultWidth:"wide"}),day:K({values:{narrow:["s","m","t","w","t","f","s"],short:["si","mo","ti","wo","to","fr","so"],abbreviated:["snein","moa","tii","woa","ton","fre","sneon"],wide:["snein","moandei","tiisdei","woansdei","tongersdei","freed","sneon"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"j\xfbns",night:"nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"j\xfbns",night:"nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"j\xfbns",night:"nachts"}},defaultWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^([fn]\.? ?K\.?)/,abbreviated:/^([fn]\. ?Kr\.?)/,wide:/^((foar|nei) Kristus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/,/^n/]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e fearnsjier/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i,wide:/^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^des/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtwf]/i,short:/^(si|mo|ti|wo|to|fr|so)/i,abbreviated:/^(snein|moa|tii|woa|ton|fre|sneon)/i,wide:/^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^sn/i,/^mo/i,/^ti/i,/^wo/i,/^to/i,/^fr/i,/^sn/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(am|pm|middernacht|middeis|moarns|middei|j\xfbns|nachts)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^middei/i,morning:/moarns/i,afternoon:/^middeis/i,evening:/j\xfbns/i,night:/nachts/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},To={lessThanXSeconds:{one:"nas lugha na diog",other:"nas lugha na {{count}} diogan"},xSeconds:{one:"1 diog",two:"2 dhiog",twenty:"20 diog",other:"{{count}} diogan"},halfAMinute:"leth mhionaid",lessThanXMinutes:{one:"nas lugha na mionaid",other:"nas lugha na {{count}} mionaidean"},xMinutes:{one:"1 mionaid",two:"2 mhionaid",twenty:"20 mionaid",other:"{{count}} mionaidean"},aboutXHours:{one:"mu uair de th\xecde",other:"mu {{count}} uairean de th\xecde"},xHours:{one:"1 uair de th\xecde",two:"2 uair de th\xecde",twenty:"20 uair de th\xecde",other:"{{count}} uairean de th\xecde"},xDays:{one:"1 l\xe0",other:"{{count}} l\xe0"},aboutXWeeks:{one:"mu 1 seachdain",other:"mu {{count}} seachdainean"},xWeeks:{one:"1 seachdain",other:"{{count}} seachdainean"},aboutXMonths:{one:"mu mh\xecos",other:"mu {{count}} m\xecosan"},xMonths:{one:"1 m\xecos",other:"{{count}} m\xecosan"},aboutXYears:{one:"mu bhliadhna",other:"mu {{count}} bliadhnaichean"},xYears:{one:"1 bhliadhna",other:"{{count}} bliadhna"},overXYears:{one:"c\xf2rr is bliadhna",other:"c\xf2rr is {{count}} bliadhnaichean"},almostXYears:{one:"cha mh\xf2r bliadhna",other:"cha mh\xf2r {{count}} bliadhnaichean"}},Mo=function(t,e,n){var r,i=To[t];return r="string"===typeof i?i:1===e?i.one:2===e&&i.two?i.two:20===e&&i.twenty?i.twenty:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"ann an "+r:"o chionn "+r:r},Ao={date:U({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'aig' {{time}}",long:"{{date}} 'aig' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Do={lastWeek:"'mu dheireadh' eeee 'aig' p",yesterday:"'an-d\xe8 aig' p",today:"'an-diugh aig' p",tomorrow:"'a-m\xe0ireach aig' p",nextWeek:"eeee 'aig' p",other:"P"},Ro={code:"gd",formatDistance:Mo,formatLong:Ao,formatRelative:function(t,e,n,r){return Do[t]},localize:{ordinalNumber:function(t){var e=Number(t),n=e%100;if(n>20||n<10)switch(n%10){case 1:return e+"d";case 2:return e+"na"}return 12===n?e+"na":e+"mh"},era:K({values:{narrow:["R","A"],abbreviated:["RC","AD"],wide:["ro Chr\xecosta","anno domini"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["C1","C2","C3","C4"],wide:["a' chiad chairteal","an d\xe0rna cairteal","an treas cairteal","an ceathramh cairteal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["F","G","M","G","C","\xd2","I","L","S","D","S","D"],abbreviated:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],wide:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","L","M","C","A","H","S"],short:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],abbreviated:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],wide:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"m",pm:"f",midnight:"m.o.",noon:"m.l.",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"},abbreviated:{am:"M.",pm:"F.",midnight:"meadhan oidhche",noon:"meadhan l\xe0",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"},wide:{am:"m.",pm:"f.",midnight:"meadhan oidhche",noon:"meadhan l\xe0",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m",pm:"f",midnight:"m.o.",noon:"m.l.",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"},abbreviated:{am:"M.",pm:"F.",midnight:"meadhan oidhche",noon:"meadhan l\xe0",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"},wide:{am:"m.",pm:"f.",midnight:"meadhan oidhche",noon:"meadhan l\xe0",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(d|na|tr|mh)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(r|a)/i,abbreviated:/^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i,wide:/^(ro Chr\xecosta|ron aois choitchinn|anno domini|aois choitcheann)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^c[1234]/i,wide:/^[1234](cd|na|tr|mh)? cairteal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[fgmc\xf2ilsd]/i,abbreviated:/^(faoi|gear|m\xe0rt|gibl|c\xe8it|\xf2gmh|iuch|l\xf9n|sult|d\xe0mh|samh|d\xf9bh)/i,wide:/^(am faoilleach|an gearran|am m\xe0rt|an giblean|an c\xe8itean|an t-\xd2gmhios|an t-Iuchar|an l\xf9nastal|an t-Sultain|an d\xe0mhair|an t-Samhain|an d\xf9bhlachd)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^f/i,/^g/i,/^m/i,/^g/i,/^c/i,/^\xf2/i,/^i/i,/^l/i,/^s/i,/^d/i,/^s/i,/^d/i],any:[/^fa/i,/^ge/i,/^m\xe0/i,/^gi/i,/^c/i,/^\xf2/i,/^i/i,/^l/i,/^su/i,/^d/i,/^sa/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[dlmcahs]/i,short:/^(d\xf2|lu|m\xe0|ci|ar|ha|sa)/i,abbreviated:/^(did|dil|dim|dic|dia|dih|dis)/i,wide:/^(did\xf2mhnaich|diluain|dim\xe0irt|diciadain|diardaoin|dihaoine|disathairne)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i],any:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i,any:/^([ap]\.?\s?m\.?|meadhan oidhche|meadhan l\xe0|(san|aig) (madainn|feasgar|feasgar|oidhche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^m/i,pm:/^f/i,midnight:/^meadhan oidhche/i,noon:/^meadhan l\xe0/i,morning:/sa mhadainn/i,afternoon:/feasgar/i,evening:/feasgar/i,night:/air an oidhche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Lo={lessThanXSeconds:{one:"menos dun segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos dun minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"arredor dunha hora",other:"arredor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xeda",other:"{{count}} d\xedas"},aboutXWeeks:{one:"arredor dunha semana",other:"arredor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"arredor de 1 mes",other:"arredor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"arredor dun ano",other:"arredor de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"m\xe1is dun ano",other:"m\xe1is de {{count}} anos"},almostXYears:{one:"case un ano",other:"case {{count}} anos"}},Io=function(t,e,n){var r,i=Lo[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hai "+r:r},Wo={date:U({formats:{full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\xe1s' {{time}}",long:"{{date}} '\xe1s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},zo={lastWeek:"'o' eeee 'pasado \xe1' LT",yesterday:"'onte \xe1' p",today:"'hoxe \xe1' p",tomorrow:"'ma\xf1\xe1 \xe1' p",nextWeek:"eeee '\xe1' p",other:"P"},No={lastWeek:"'o' eeee 'pasado \xe1s' p",yesterday:"'onte \xe1s' p",today:"'hoxe \xe1s' p",tomorrow:"'ma\xf1\xe1 \xe1s' p",nextWeek:"eeee '\xe1s' p",other:"P"},Fo={code:"gl",formatDistance:Io,formatLong:Wo,formatRelative:function(t,e,n,r){return 1!==e.getUTCHours()?No[t]:zo[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"\xba"},era:K({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despois de cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["xan","feb","mar","abr","mai","xun","xul","ago","set","out","nov","dec"],wide:["xaneiro","febreiro","marzo","abril","maio","xu\xf1o","xullo","agosto","setembro","outubro","novembro","decembro"]},defaultWidth:"wide"}),day:K({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","me","xo","ve","sa"],abbreviated:["dom","lun","mar","mer","xov","ven","sab"],wide:["domingo","luns","martes","m\xe9rcores","xoves","venres","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xf1\xe1",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediod\xeda",morning:"ma\xf1\xe1",afternoon:"tarde",evening:"tardi\xf1a",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediod\xeda",morning:"ma\xf1\xe1",afternoon:"tarde",evening:"tardi\xf1a",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da ma\xf1\xe1",afternoon:"da tarde",evening:"da tardi\xf1a",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediod\xeda",morning:"da ma\xf1\xe1",afternoon:"da tarde",evening:"da tardi\xf1a",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediod\xeda",morning:"da ma\xf1\xe1",afternoon:"da tarde",evening:"da tardi\xf1a",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\xba)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[u\xfa]n|despois de cristo|era com[u\xfa]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[u\xfa]n)/i,/^(despois de cristo|era com[u\xfa]n)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xu\xf1o|xullo|agosto|setembro|outubro|novembro|decembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[e\xe9]rcores|xoves|venres|s[\xe1a]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mn|md|(da|[a\xe1]s) (ma\xf1[a\xe1]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[i\xed]a|(da|[a\xe1]s) (ma\xf1[a\xe1]|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/ma\xf1[a\xe1]/i,afternoon:/tarde/i,evening:/tardi\xf1a/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ho={lessThanXSeconds:{one:"\u0ab9\u0aae\u0aa3\u0abe\u0a82",other:"\u200b\u0a86\u0ab6\u0ab0\u0ac7 {{count}} \u0ab8\u0ac7\u0a95\u0a82\u0aa1"},xSeconds:{one:"1 \u0ab8\u0ac7\u0a95\u0a82\u0aa1",other:"{{count}} \u0ab8\u0ac7\u0a95\u0a82\u0aa1"},halfAMinute:"\u0a85\u0aa1\u0aa7\u0ac0 \u0aae\u0abf\u0aa8\u0abf\u0a9f",lessThanXMinutes:{one:"\u0a86 \u0aae\u0abf\u0aa8\u0abf\u0a9f",other:"\u200b\u0a86\u0ab6\u0ab0\u0ac7 {{count}} \u0aae\u0abf\u0aa8\u0abf\u0a9f"},xMinutes:{one:"1 \u0aae\u0abf\u0aa8\u0abf\u0a9f",other:"{{count}} \u0aae\u0abf\u0aa8\u0abf\u0a9f"},aboutXHours:{one:"\u200b\u0a86\u0ab6\u0ab0\u0ac7 1 \u0a95\u0ab2\u0abe\u0a95",other:"\u200b\u0a86\u0ab6\u0ab0\u0ac7 {{count}} \u0a95\u0ab2\u0abe\u0a95"},xHours:{one:"1 \u0a95\u0ab2\u0abe\u0a95",other:"{{count}} \u0a95\u0ab2\u0abe\u0a95"},xDays:{one:"1 \u0aa6\u0abf\u0ab5\u0ab8",other:"{{count}} \u0aa6\u0abf\u0ab5\u0ab8"},aboutXWeeks:{one:"\u0a86\u0ab6\u0ab0\u0ac7 1 \u0a85\u0aa0\u0ab5\u0abe\u0aa1\u0abf\u0aaf\u0ac1\u0a82",other:"\u0a86\u0ab6\u0ab0\u0ac7 {{count}} \u0a85\u0aa0\u0ab5\u0abe\u0aa1\u0abf\u0aaf\u0abe"},xWeeks:{one:"1 \u0a85\u0aa0\u0ab5\u0abe\u0aa1\u0abf\u0aaf\u0ac1\u0a82",other:"{{count}} \u0a85\u0aa0\u0ab5\u0abe\u0aa1\u0abf\u0aaf\u0abe"},aboutXMonths:{one:"\u0a86\u0ab6\u0ab0\u0ac7 1 \u0aae\u0ab9\u0abf\u0aa8\u0acb",other:"\u0a86\u0ab6\u0ab0\u0ac7 {{count}} \u0aae\u0ab9\u0abf\u0aa8\u0abe"},xMonths:{one:"1 \u0aae\u0ab9\u0abf\u0aa8\u0acb",other:"{{count}} \u0aae\u0ab9\u0abf\u0aa8\u0abe"},aboutXYears:{one:"\u0a86\u0ab6\u0ab0\u0ac7 1 \u0ab5\u0ab0\u0acd\u0ab7",other:"\u0a86\u0ab6\u0ab0\u0ac7 {{count}} \u0ab5\u0ab0\u0acd\u0ab7"},xYears:{one:"1 \u0ab5\u0ab0\u0acd\u0ab7",other:"{{count}} \u0ab5\u0ab0\u0acd\u0ab7"},overXYears:{one:"1 \u0ab5\u0ab0\u0acd\u0ab7\u0aa5\u0ac0 \u0ab5\u0aa7\u0ac1",other:"{{count}} \u0ab5\u0ab0\u0acd\u0ab7\u0aa5\u0ac0 \u0ab5\u0aa7\u0ac1"},almostXYears:{one:"\u0ab2\u0a97\u0aad\u0a97 1 \u0ab5\u0ab0\u0acd\u0ab7",other:"\u0ab2\u0a97\u0aad\u0a97 {{count}} \u0ab5\u0ab0\u0acd\u0ab7"}},Bo=function(t,e,n){var r,i=Ho[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+"\u0aae\u0abe\u0a82":r+" \u0aaa\u0ab9\u0ac7\u0ab2\u0abe\u0a82":r},Vo={date:U({formats:{full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},defaultWidth:"full"}),time:U({formats:{full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},qo={lastWeek:"'\u0aaa\u0abe\u0a9b\u0ab2\u0abe' eeee p",yesterday:"'\u0a97\u0a88\u0a95\u0abe\u0ab2\u0ac7' p",today:"'\u0a86\u0a9c\u0ac7' p",tomorrow:"'\u0a86\u0ab5\u0aa4\u0ac0\u0a95\u0abe\u0ab2\u0ac7' p",nextWeek:"eeee p",other:"P"},Yo={code:"gu",formatDistance:Bo,formatLong:Vo,formatRelative:function(t,e,n,r){return qo[t]},localize:{ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["\u0a88\u0ab8\u0aaa\u0ac2","\u0a88\u0ab8"],abbreviated:["\u0a88.\u0ab8.\u0aaa\u0ac2\u0ab0\u0acd\u0ab5\u0ac7","\u0a88.\u0ab8."],wide:["\u0a88\u0ab8\u0ab5\u0ac0\u0ab8\u0aa8 \u0aaa\u0ac2\u0ab0\u0acd\u0ab5\u0ac7","\u0a88\u0ab8\u0ab5\u0ac0\u0ab8\u0aa8"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1\u0ab2\u0acb \u0aa4\u0acd\u0ab0\u0abf\u0aae\u0abe\u0ab8","2\u0a9c\u0acb \u0aa4\u0acd\u0ab0\u0abf\u0aae\u0abe\u0ab8","3\u0a9c\u0acb \u0aa4\u0acd\u0ab0\u0abf\u0aae\u0abe\u0ab8","4\u0aa5\u0acb \u0aa4\u0acd\u0ab0\u0abf\u0aae\u0abe\u0ab8"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0a9c\u0abe","\u0aab\u0ac7","\u0aae\u0abe","\u0a8f","\u0aae\u0ac7","\u0a9c\u0ac2","\u0a9c\u0ac1","\u0a93","\u0ab8","\u0a93","\u0aa8","\u0aa1\u0abf"],abbreviated:["\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1","\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1","\u0aae\u0abe\u0ab0\u0acd\u0a9a","\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2","\u0aae\u0ac7","\u0a9c\u0ac2\u0aa8","\u0a9c\u0ac1\u0ab2\u0abe\u0a88","\u0a91\u0a97\u0ab8\u0acd\u0a9f","\u0ab8\u0aaa\u0acd\u0a9f\u0ac7","\u0a93\u0a95\u0acd\u0a9f\u0acb","\u0aa8\u0ab5\u0ac7","\u0aa1\u0abf\u0ab8\u0ac7"],wide:["\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0","\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0","\u0aae\u0abe\u0ab0\u0acd\u0a9a","\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2","\u0aae\u0ac7","\u0a9c\u0ac2\u0aa8","\u0a9c\u0ac1\u0ab2\u0abe\u0a87","\u0a93\u0a97\u0ab8\u0acd\u0a9f","\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0","\u0a93\u0a95\u0acd\u0a9f\u0acb\u0aac\u0ab0","\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0","\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u0ab0","\u0ab8\u0acb","\u0aae\u0a82","\u0aac\u0ac1","\u0a97\u0ac1","\u0ab6\u0ac1","\u0ab6"],short:["\u0ab0","\u0ab8\u0acb","\u0aae\u0a82","\u0aac\u0ac1","\u0a97\u0ac1","\u0ab6\u0ac1","\u0ab6"],abbreviated:["\u0ab0\u0ab5\u0abf","\u0ab8\u0acb\u0aae","\u0aae\u0a82\u0a97\u0ab3","\u0aac\u0ac1\u0aa7","\u0a97\u0ac1\u0ab0\u0ac1","\u0ab6\u0ac1\u0a95\u0acd\u0ab0","\u0ab6\u0aa8\u0abf"],wide:["\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0","\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0","\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0","\u0aac\u0ac1\u0aa7\u0ab5\u0abe\u0ab0","\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0","\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0","\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"\u0aae.\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0abf",noon:"\u0aac.",morning:"\u0ab8\u0ab5\u0abe\u0ab0\u0ac7",afternoon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",evening:"\u0ab8\u0abe\u0a82\u0a9c\u0ac7",night:"\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0ac7"},abbreviated:{am:"AM",pm:"PM",midnight:"\u200b\u0aae\u0aa7\u0acd\u0aaf\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0abf",noon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",morning:"\u0ab8\u0ab5\u0abe\u0ab0\u0ac7",afternoon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",evening:"\u0ab8\u0abe\u0a82\u0a9c\u0ac7",night:"\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0ac7"},wide:{am:"AM",pm:"PM",midnight:"\u200b\u0aae\u0aa7\u0acd\u0aaf\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0abf",noon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",morning:"\u0ab8\u0ab5\u0abe\u0ab0\u0ac7",afternoon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",evening:"\u0ab8\u0abe\u0a82\u0a9c\u0ac7",night:"\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0ac7"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"\u0aae.\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0abf",noon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",morning:"\u0ab8\u0ab5\u0abe\u0ab0\u0ac7",afternoon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",evening:"\u0ab8\u0abe\u0a82\u0a9c\u0ac7",night:"\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0ac7"},abbreviated:{am:"AM",pm:"PM",midnight:"\u0aae\u0aa7\u0acd\u0aaf\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0abf",noon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",morning:"\u0ab8\u0ab5\u0abe\u0ab0\u0ac7",afternoon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",evening:"\u0ab8\u0abe\u0a82\u0a9c\u0ac7",night:"\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0ac7"},wide:{am:"AM",pm:"PM",midnight:"\u200b\u0aae\u0aa7\u0acd\u0aaf\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0abf",noon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",morning:"\u0ab8\u0ab5\u0abe\u0ab0\u0ac7",afternoon:"\u0aac\u0aaa\u0acb\u0ab0\u0ac7",evening:"\u0ab8\u0abe\u0a82\u0a9c\u0ac7",night:"\u0ab0\u0abe\u0aa4\u0acd\u0ab0\u0ac7"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\u0ab2|\u0a9c|\u0aa5|\u0aa0\u0acd\u0aa0|\u0aae)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0a88\u0ab8\u0aaa\u0ac2|\u0a88\u0ab8)/i,abbreviated:/^(\u0a88\.\u0ab8\.\u0aaa\u0ac2\u0ab0\u0acd\u0ab5\u0ac7|\u0a88\.\u0ab8\.)/i,wide:/^(\u0a88\u0ab8\u0ab5\u0ac0\u0ab8\u0aa8\s\u0aaa\u0ac2\u0ab0\u0acd\u0ab5\u0ac7|\u0a88\u0ab8\u0ab5\u0ac0\u0ab8\u0aa8)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0a88\u0ab8\u0aaa\u0ac2/i,/^\u0a88\u0ab8/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\u0ab2\u0acb|\u0a9c\u0acb|\u0aa5\u0acb)? \u0aa4\u0acd\u0ab0\u0abf\u0aae\u0abe\u0ab8/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u0a9c\u0abe\u0aab\u0ac7\u0aae\u0abe\u0a8f\u0aae\u0ac7\u0a9c\u0ac2\u0a9c\u0ac1\u0a93\u0ab8\u0a93\u0aa8\u0aa1\u0abf]/i,abbreviated:/^(\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1|\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1|\u0aae\u0abe\u0ab0\u0acd\u0a9a|\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2|\u0aae\u0ac7|\u0a9c\u0ac2\u0aa8|\u0a9c\u0ac1\u0ab2\u0abe\u0a88|\u0a91\u0a97\u0ab8\u0acd\u0a9f|\u0ab8\u0aaa\u0acd\u0a9f\u0ac7|\u0a93\u0a95\u0acd\u0a9f\u0acb|\u0aa8\u0ab5\u0ac7|\u0aa1\u0abf\u0ab8\u0ac7)/i,wide:/^(\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0|\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0|\u0aae\u0abe\u0ab0\u0acd\u0a9a|\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2|\u0aae\u0ac7|\u0a9c\u0ac2\u0aa8|\u0a9c\u0ac1\u0ab2\u0abe\u0a87|\u0a93\u0a97\u0ab8\u0acd\u0a9f|\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0|\u0a93\u0a95\u0acd\u0a9f\u0acb\u0aac\u0ab0|\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0|\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0a9c\u0abe/i,/^\u0aab\u0ac7/i,/^\u0aae\u0abe/i,/^\u0a8f/i,/^\u0aae\u0ac7/i,/^\u0a9c\u0ac2/i,/^\u0a9c\u0ac1/i,/^\u0a91\u0a97/i,/^\u0ab8/i,/^\u0a93\u0a95\u0acd\u0a9f\u0acb/i,/^\u0aa8/i,/^\u0aa1\u0abf/i],any:[/^\u0a9c\u0abe/i,/^\u0aab\u0ac7/i,/^\u0aae\u0abe/i,/^\u0a8f/i,/^\u0aae\u0ac7/i,/^\u0a9c\u0ac2/i,/^\u0a9c\u0ac1/i,/^\u0a91\u0a97/i,/^\u0ab8/i,/^\u0a93\u0a95\u0acd\u0a9f\u0acb/i,/^\u0aa8/i,/^\u0aa1\u0abf/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u0ab0|\u0ab8\u0acb|\u0aae\u0a82|\u0aac\u0ac1|\u0a97\u0ac1|\u0ab6\u0ac1|\u0ab6)/i,short:/^(\u0ab0|\u0ab8\u0acb|\u0aae\u0a82|\u0aac\u0ac1|\u0a97\u0ac1|\u0ab6\u0ac1|\u0ab6)/i,abbreviated:/^(\u0ab0\u0ab5\u0abf|\u0ab8\u0acb\u0aae|\u0aae\u0a82\u0a97\u0ab3|\u0aac\u0ac1\u0aa7|\u0a97\u0ac1\u0ab0\u0ac1|\u0ab6\u0ac1\u0a95\u0acd\u0ab0|\u0ab6\u0aa8\u0abf)/i,wide:/^(\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0|\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0|\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0|\u0aac\u0ac1\u0aa7\u0ab5\u0abe\u0ab0|\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0|\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0|\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0ab0/i,/^\u0ab8\u0acb/i,/^\u0aae\u0a82/i,/^\u0aac\u0ac1/i,/^\u0a97\u0ac1/i,/^\u0ab6\u0ac1/i,/^\u0ab6/i],any:[/^\u0ab0/i,/^\u0ab8\u0acb/i,/^\u0aae\u0a82/i,/^\u0aac\u0ac1/i,/^\u0a97\u0ac1/i,/^\u0ab6\u0ac1/i,/^\u0ab6/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|\u0aae\.?|\u0ab8|\u0aac|\u0ab8\u0abe\u0a82|\u0ab0\u0abe)/i,any:/^(a|p|\u0aae\.?|\u0ab8|\u0aac|\u0ab8\u0abe\u0a82|\u0ab0\u0abe)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^\u0aae\.?/i,noon:/^\u0aac/i,morning:/\u0ab8/i,afternoon:/\u0aac/i,evening:/\u0ab8\u0abe\u0a82/i,night:/\u0ab0\u0abe/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Uo={lessThanXSeconds:{one:"\u05e4\u05d7\u05d5\u05ea \u05de\u05e9\u05e0\u05d9\u05d9\u05d4",two:"\u05e4\u05d7\u05d5\u05ea \u05de\u05e9\u05ea\u05d9 \u05e9\u05e0\u05d9\u05d5\u05ea",other:"\u05e4\u05d7\u05d5\u05ea \u05de\u05be{{count}} \u05e9\u05e0\u05d9\u05d5\u05ea"},xSeconds:{one:"\u05e9\u05e0\u05d9\u05d9\u05d4",two:"\u05e9\u05ea\u05d9 \u05e9\u05e0\u05d9\u05d5\u05ea",other:"{{count}} \u05e9\u05e0\u05d9\u05d5\u05ea"},halfAMinute:"\u05d7\u05e6\u05d9 \u05d3\u05e7\u05d4",lessThanXMinutes:{one:"\u05e4\u05d7\u05d5\u05ea \u05de\u05d3\u05e7\u05d4",two:"\u05e4\u05d7\u05d5\u05ea \u05de\u05e9\u05ea\u05d9 \u05d3\u05e7\u05d5\u05ea",other:"\u05e4\u05d7\u05d5\u05ea \u05de\u05be{{count}} \u05d3\u05e7\u05d5\u05ea"},xMinutes:{one:"\u05d3\u05e7\u05d4",two:"\u05e9\u05ea\u05d9 \u05d3\u05e7\u05d5\u05ea",other:"{{count}} \u05d3\u05e7\u05d5\u05ea"},aboutXHours:{one:"\u05db\u05e9\u05e2\u05d4",two:"\u05db\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd",other:"\u05db\u05be{{count}} \u05e9\u05e2\u05d5\u05ea"},xHours:{one:"\u05e9\u05e2\u05d4",two:"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd",other:"{{count}} \u05e9\u05e2\u05d5\u05ea"},xDays:{one:"\u05d9\u05d5\u05dd",two:"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd",other:"{{count}} \u05d9\u05de\u05d9\u05dd"},aboutXWeeks:{one:"\u05db\u05e9\u05d1\u05d5\u05e2",two:"\u05db\u05e9\u05d1\u05d5\u05e2\u05d9\u05d9\u05dd",other:"\u05db\u05be{{count}} \u05e9\u05d1\u05d5\u05e2\u05d5\u05ea"},xWeeks:{one:"\u05e9\u05d1\u05d5\u05e2",two:"\u05e9\u05d1\u05d5\u05e2\u05d9\u05d9\u05dd",other:"{{count}} \u05e9\u05d1\u05d5\u05e2\u05d5\u05ea"},aboutXMonths:{one:"\u05db\u05d7\u05d5\u05d3\u05e9",two:"\u05db\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd",other:"\u05db\u05be{{count}} \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},xMonths:{one:"\u05d7\u05d5\u05d3\u05e9",two:"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd",other:"{{count}} \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},aboutXYears:{one:"\u05db\u05e9\u05e0\u05d4",two:"\u05db\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd",other:"\u05db\u05be{{count}} \u05e9\u05e0\u05d9\u05dd"},xYears:{one:"\u05e9\u05e0\u05d4",two:"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd",other:"{{count}} \u05e9\u05e0\u05d9\u05dd"},overXYears:{one:"\u05d9\u05d5\u05ea\u05e8 \u05de\u05e9\u05e0\u05d4",two:"\u05d9\u05d5\u05ea\u05e8 \u05de\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd",other:"\u05d9\u05d5\u05ea\u05e8 \u05de\u05be{{count}} \u05e9\u05e0\u05d9\u05dd"},almostXYears:{one:"\u05db\u05de\u05e2\u05d8 \u05e9\u05e0\u05d4",two:"\u05db\u05de\u05e2\u05d8 \u05e9\u05e0\u05ea\u05d9\u05d9\u05dd",other:"\u05db\u05de\u05e2\u05d8 {{count}} \u05e9\u05e0\u05d9\u05dd"}},Go=function(t,e,n){if("xDays"===t&&null!==n&&void 0!==n&&n.addSuffix&&e<=2)return n.comparison&&n.comparison>0?1===e?"\u05de\u05d7\u05e8":"\u05de\u05d7\u05e8\u05ea\u05d9\u05d9\u05dd":1===e?"\u05d0\u05ea\u05de\u05d5\u05dc":"\u05e9\u05dc\u05e9\u05d5\u05dd";var r,i=Uo[t];return r="string"===typeof i?i:1===e?i.one:2===e?i.two:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u05d1\u05e2\u05d5\u05d3 "+r:"\u05dc\u05e4\u05e0\u05d9 "+r:r},Xo={date:U({formats:{full:"EEEE, d \u05d1MMMM y",long:"d \u05d1MMMM y",medium:"d \u05d1MMM y",short:"d.M.y"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u05d1\u05e9\u05e2\u05d4' {{time}}",long:"{{date}} '\u05d1\u05e9\u05e2\u05d4' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Jo={lastWeek:"eeee '\u05e9\u05e2\u05d1\u05e8 \u05d1\u05e9\u05e2\u05d4' p",yesterday:"'\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05e9\u05e2\u05d4' p",today:"'\u05d4\u05d9\u05d5\u05dd \u05d1\u05e9\u05e2\u05d4' p",tomorrow:"'\u05de\u05d7\u05e8 \u05d1\u05e9\u05e2\u05d4' p",nextWeek:"eeee '\u05d1\u05e9\u05e2\u05d4' p",other:"P"},Ko=function(t,e,n,r){return Jo[t]},$o={ordinalNumber:function(t,e){var n=Number(t);if(n<=0||n>10)return String(n);var r=String(null===e||void 0===e?void 0:e.unit),i=n-1;return["year","hour","minute","second"].indexOf(r)>=0?["\u05e8\u05d0\u05e9\u05d5\u05e0\u05d4","\u05e9\u05e0\u05d9\u05d9\u05d4","\u05e9\u05dc\u05d9\u05e9\u05d9\u05ea","\u05e8\u05d1\u05d9\u05e2\u05d9\u05ea","\u05d7\u05de\u05d9\u05e9\u05d9\u05ea","\u05e9\u05d9\u05e9\u05d9\u05ea","\u05e9\u05d1\u05d9\u05e2\u05d9\u05ea","\u05e9\u05de\u05d9\u05e0\u05d9\u05ea","\u05ea\u05e9\u05d9\u05e2\u05d9\u05ea","\u05e2\u05e9\u05d9\u05e8\u05d9\u05ea"][i]:["\u05e8\u05d0\u05e9\u05d5\u05df","\u05e9\u05e0\u05d9","\u05e9\u05dc\u05d9\u05e9\u05d9","\u05e8\u05d1\u05d9\u05e2\u05d9","\u05d7\u05de\u05d9\u05e9\u05d9","\u05e9\u05d9\u05e9\u05d9","\u05e9\u05d1\u05d9\u05e2\u05d9","\u05e9\u05de\u05d9\u05e0\u05d9","\u05ea\u05e9\u05d9\u05e2\u05d9","\u05e2\u05e9\u05d9\u05e8\u05d9"][i]},era:K({values:{narrow:["\u05dc\u05e4\u05e0\u05d4\u05f4\u05e1","\u05dc\u05e1\u05e4\u05d9\u05e8\u05d4"],abbreviated:["\u05dc\u05e4\u05e0\u05d4\u05f4\u05e1","\u05dc\u05e1\u05e4\u05d9\u05e8\u05d4"],wide:["\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e1\u05e4\u05d9\u05e8\u05d4","\u05dc\u05e1\u05e4\u05d9\u05e8\u05d4"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["\u05e8\u05d1\u05e2\u05d5\u05df 1","\u05e8\u05d1\u05e2\u05d5\u05df 2","\u05e8\u05d1\u05e2\u05d5\u05df 3","\u05e8\u05d1\u05e2\u05d5\u05df 4"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["\u05d9\u05e0\u05d5\u05f3","\u05e4\u05d1\u05e8\u05f3","\u05de\u05e8\u05e5","\u05d0\u05e4\u05e8\u05f3","\u05de\u05d0\u05d9","\u05d9\u05d5\u05e0\u05d9","\u05d9\u05d5\u05dc\u05d9","\u05d0\u05d5\u05d2\u05f3","\u05e1\u05e4\u05d8\u05f3","\u05d0\u05d5\u05e7\u05f3","\u05e0\u05d5\u05d1\u05f3","\u05d3\u05e6\u05de\u05f3"],wide:["\u05d9\u05e0\u05d5\u05d0\u05e8","\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8","\u05de\u05e8\u05e5","\u05d0\u05e4\u05e8\u05d9\u05dc","\u05de\u05d0\u05d9","\u05d9\u05d5\u05e0\u05d9","\u05d9\u05d5\u05dc\u05d9","\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8","\u05e1\u05e4\u05d8\u05de\u05d1\u05e8","\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8","\u05e0\u05d5\u05d1\u05de\u05d1\u05e8","\u05d3\u05e6\u05de\u05d1\u05e8"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u05d0\u05f3","\u05d1\u05f3","\u05d2\u05f3","\u05d3\u05f3","\u05d4\u05f3","\u05d5\u05f3","\u05e9\u05f3"],short:["\u05d0\u05f3","\u05d1\u05f3","\u05d2\u05f3","\u05d3\u05f3","\u05d4\u05f3","\u05d5\u05f3","\u05e9\u05f3"],abbreviated:["\u05d9\u05d5\u05dd \u05d0\u05f3","\u05d9\u05d5\u05dd \u05d1\u05f3","\u05d9\u05d5\u05dd \u05d2\u05f3","\u05d9\u05d5\u05dd \u05d3\u05f3","\u05d9\u05d5\u05dd \u05d4\u05f3","\u05d9\u05d5\u05dd \u05d5\u05f3","\u05e9\u05d1\u05ea"],wide:["\u05d9\u05d5\u05dd \u05e8\u05d0\u05e9\u05d5\u05df","\u05d9\u05d5\u05dd \u05e9\u05e0\u05d9","\u05d9\u05d5\u05dd \u05e9\u05dc\u05d9\u05e9\u05d9","\u05d9\u05d5\u05dd \u05e8\u05d1\u05d9\u05e2\u05d9","\u05d9\u05d5\u05dd \u05d7\u05de\u05d9\u05e9\u05d9","\u05d9\u05d5\u05dd \u05e9\u05d9\u05e9\u05d9","\u05d9\u05d5\u05dd \u05e9\u05d1\u05ea"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6",pm:"\u05d0\u05d7\u05d4\u05f4\u05e6",midnight:"\u05d7\u05e6\u05d5\u05ea",noon:"\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",morning:"\u05d1\u05d5\u05e7\u05e8",afternoon:"\u05d0\u05d7\u05e8 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",evening:"\u05e2\u05e8\u05d1",night:"\u05dc\u05d9\u05dc\u05d4"},abbreviated:{am:"\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6",pm:"\u05d0\u05d7\u05d4\u05f4\u05e6",midnight:"\u05d7\u05e6\u05d5\u05ea",noon:"\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",morning:"\u05d1\u05d5\u05e7\u05e8",afternoon:"\u05d0\u05d7\u05e8 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",evening:"\u05e2\u05e8\u05d1",night:"\u05dc\u05d9\u05dc\u05d4"},wide:{am:"\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6",pm:"\u05d0\u05d7\u05d4\u05f4\u05e6",midnight:"\u05d7\u05e6\u05d5\u05ea",noon:"\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",morning:"\u05d1\u05d5\u05e7\u05e8",afternoon:"\u05d0\u05d7\u05e8 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",evening:"\u05e2\u05e8\u05d1",night:"\u05dc\u05d9\u05dc\u05d4"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6",pm:"\u05d0\u05d7\u05d4\u05f4\u05e6",midnight:"\u05d7\u05e6\u05d5\u05ea",noon:"\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",morning:"\u05d1\u05d1\u05d5\u05e7\u05e8",afternoon:"\u05d1\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",evening:"\u05d1\u05e2\u05e8\u05d1",night:"\u05d1\u05dc\u05d9\u05dc\u05d4"},abbreviated:{am:"\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6",pm:"\u05d0\u05d7\u05d4\u05f4\u05e6",midnight:"\u05d7\u05e6\u05d5\u05ea",noon:"\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",morning:"\u05d1\u05d1\u05d5\u05e7\u05e8",afternoon:"\u05d0\u05d7\u05e8 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",evening:"\u05d1\u05e2\u05e8\u05d1",night:"\u05d1\u05dc\u05d9\u05dc\u05d4"},wide:{am:"\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6",pm:"\u05d0\u05d7\u05d4\u05f4\u05e6",midnight:"\u05d7\u05e6\u05d5\u05ea",noon:"\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",morning:"\u05d1\u05d1\u05d5\u05e7\u05e8",afternoon:"\u05d0\u05d7\u05e8 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd",evening:"\u05d1\u05e2\u05e8\u05d1",night:"\u05d1\u05dc\u05d9\u05dc\u05d4"}},defaultFormattingWidth:"wide"})},Qo=["\u05e8\u05d0","\u05e9\u05e0","\u05e9\u05dc","\u05e8\u05d1","\u05d7","\u05e9\u05d9","\u05e9\u05d1","\u05e9\u05de","\u05ea","\u05e2"],Zo={code:"he",formatDistance:Go,formatLong:Xo,formatRelative:Ko,localize:$o,match:{ordinalNumber:Z({matchPattern:/^(\d+|(\u05e8\u05d0\u05e9\u05d5\u05df|\u05e9\u05e0\u05d9|\u05e9\u05dc\u05d9\u05e9\u05d9|\u05e8\u05d1\u05d9\u05e2\u05d9|\u05d7\u05de\u05d9\u05e9\u05d9|\u05e9\u05d9\u05e9\u05d9|\u05e9\u05d1\u05d9\u05e2\u05d9|\u05e9\u05de\u05d9\u05e0\u05d9|\u05ea\u05e9\u05d9\u05e2\u05d9|\u05e2\u05e9\u05d9\u05e8\u05d9|\u05e8\u05d0\u05e9\u05d5\u05e0\u05d4|\u05e9\u05e0\u05d9\u05d9\u05d4|\u05e9\u05dc\u05d9\u05e9\u05d9\u05ea|\u05e8\u05d1\u05d9\u05e2\u05d9\u05ea|\u05d7\u05de\u05d9\u05e9\u05d9\u05ea|\u05e9\u05d9\u05e9\u05d9\u05ea|\u05e9\u05d1\u05d9\u05e2\u05d9\u05ea|\u05e9\u05de\u05d9\u05e0\u05d9\u05ea|\u05ea\u05e9\u05d9\u05e2\u05d9\u05ea|\u05e2\u05e9\u05d9\u05e8\u05d9\u05ea))/i,parsePattern:/^(\d+|\u05e8\u05d0|\u05e9\u05e0|\u05e9\u05dc|\u05e8\u05d1|\u05d7|\u05e9\u05d9|\u05e9\u05d1|\u05e9\u05de|\u05ea|\u05e2)/i,valueCallback:function(t){var e=parseInt(t,10);return isNaN(e)?Qo.indexOf(t)+1:e}}),era:Q({matchPatterns:{narrow:/^\u05dc(\u05e1\u05e4\u05d9\u05e8\u05d4|\u05e4\u05e0\u05d4\u05f4\u05e1)/i,abbreviated:/^\u05dc(\u05e1\u05e4\u05d9\u05e8\u05d4|\u05e4\u05e0\u05d4\u05f4\u05e1)/i,wide:/^\u05dc(\u05e4\u05e0\u05d9 \u05d4)?\u05e1\u05e4\u05d9\u05e8\u05d4/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u05dc\u05e4/i,/^\u05dc\u05e1/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^\u05e8\u05d1\u05e2\u05d5\u05df [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^\d+/i,abbreviated:/^(\u05d9\u05e0\u05d5|\u05e4\u05d1\u05e8|\u05de\u05e8\u05e5|\u05d0\u05e4\u05e8|\u05de\u05d0\u05d9|\u05d9\u05d5\u05e0\u05d9|\u05d9\u05d5\u05dc\u05d9|\u05d0\u05d5\u05d2|\u05e1\u05e4\u05d8|\u05d0\u05d5\u05e7|\u05e0\u05d5\u05d1|\u05d3\u05e6\u05de)\u05f3?/i,wide:/^(\u05d9\u05e0\u05d5\u05d0\u05e8|\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8|\u05de\u05e8\u05e5|\u05d0\u05e4\u05e8\u05d9\u05dc|\u05de\u05d0\u05d9|\u05d9\u05d5\u05e0\u05d9|\u05d9\u05d5\u05dc\u05d9|\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8|\u05e1\u05e4\u05d8\u05de\u05d1\u05e8|\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8|\u05e0\u05d5\u05d1\u05de\u05d1\u05e8|\u05d3\u05e6\u05de\u05d1\u05e8)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^\u05d9\u05e0/i,/^\u05e4/i,/^\u05de\u05e8/i,/^\u05d0\u05e4/i,/^\u05de\u05d0/i,/^\u05d9\u05d5\u05e0/i,/^\u05d9\u05d5\u05dc/i,/^\u05d0\u05d5\u05d2/i,/^\u05e1/i,/^\u05d0\u05d5\u05e7/i,/^\u05e0/i,/^\u05d3/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u05d0\u05d1\u05d2\u05d3\u05d4\u05d5\u05e9]\u05f3/i,short:/^[\u05d0\u05d1\u05d2\u05d3\u05d4\u05d5\u05e9]\u05f3/i,abbreviated:/^(\u05e9\u05d1\u05ea|\u05d9\u05d5\u05dd (\u05d0|\u05d1|\u05d2|\u05d3|\u05d4|\u05d5)\u05f3)/i,wide:/^\u05d9\u05d5\u05dd (\u05e8\u05d0\u05e9\u05d5\u05df|\u05e9\u05e0\u05d9|\u05e9\u05dc\u05d9\u05e9\u05d9|\u05e8\u05d1\u05d9\u05e2\u05d9|\u05d7\u05de\u05d9\u05e9\u05d9|\u05e9\u05d9\u05e9\u05d9|\u05e9\u05d1\u05ea)/i},defaultMatchWidth:"wide",parsePatterns:{abbreviated:[/\u05d0\u05f3$/i,/\u05d1\u05f3$/i,/\u05d2\u05f3$/i,/\u05d3\u05f3$/i,/\u05d4\u05f3$/i,/\u05d5\u05f3$/i,/^\u05e9/i],wide:[/\u05df$/i,/\u05e0\u05d9$/i,/\u05dc\u05d9\u05e9\u05d9$/i,/\u05e2\u05d9$/i,/\u05de\u05d9\u05e9\u05d9$/i,/\u05e9\u05d9\u05e9\u05d9$/i,/\u05ea$/i],any:[/^\u05d0/i,/^\u05d1/i,/^\u05d2/i,/^\u05d3/i,/^\u05d4/i,/^\u05d5/i,/^\u05e9/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(\u05d0\u05d7\u05e8 \u05d4|\u05d1)?(\u05d7\u05e6\u05d5\u05ea|\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05d5\u05e7\u05e8|\u05e2\u05e8\u05d1|\u05dc\u05d9\u05dc\u05d4|\u05d0\u05d7\u05d4\u05f4\u05e6|\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u05dc\u05e4/i,pm:/^\u05d0\u05d7\u05d4/i,midnight:/^\u05d7/i,noon:/^\u05e6/i,morning:/\u05d1\u05d5\u05e7\u05e8/i,afternoon:/\u05d1\u05e6|\u05d0\u05d7\u05e8/i,evening:/\u05e2\u05e8\u05d1/i,night:/\u05dc\u05d9\u05dc\u05d4/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},ta={locale:{1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},number:{"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"}};function ea(t){return t.toString().replace(/\d/g,(function(t){return ta.locale[t]}))}var na={ordinalNumber:function(t,e){return ea(Number(t))},era:K({values:{narrow:["\u0908\u0938\u093e-\u092a\u0942\u0930\u094d\u0935","\u0908\u0938\u094d\u0935\u0940"],abbreviated:["\u0908\u0938\u093e-\u092a\u0942\u0930\u094d\u0935","\u0908\u0938\u094d\u0935\u0940"],wide:["\u0908\u0938\u093e-\u092a\u0942\u0930\u094d\u0935","\u0908\u0938\u0935\u0940 \u0938\u0928"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u0924\u093f1","\u0924\u093f2","\u0924\u093f3","\u0924\u093f4"],wide:["\u092a\u0939\u0932\u0940 \u0924\u093f\u092e\u093e\u0939\u0940","\u0926\u0942\u0938\u0930\u0940 \u0924\u093f\u092e\u093e\u0939\u0940","\u0924\u0940\u0938\u0930\u0940 \u0924\u093f\u092e\u093e\u0939\u0940","\u091a\u094c\u0925\u0940 \u0924\u093f\u092e\u093e\u0939\u0940"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u091c","\u092b\u093c","\u092e\u093e","\u0905","\u092e\u0908","\u091c\u0942","\u091c\u0941","\u0905\u0917","\u0938\u093f","\u0905\u0915\u094d\u091f\u0942","\u0928","\u0926\u093f"],abbreviated:["\u091c\u0928","\u092b\u093c\u0930","\u092e\u093e\u0930\u094d\u091a","\u0905\u092a\u094d\u0930\u0948\u0932","\u092e\u0908","\u091c\u0942\u0928","\u091c\u0941\u0932","\u0905\u0917","\u0938\u093f\u0924","\u0905\u0915\u094d\u091f\u0942","\u0928\u0935","\u0926\u093f\u0938"],wide:["\u091c\u0928\u0935\u0930\u0940","\u092b\u093c\u0930\u0935\u0930\u0940","\u092e\u093e\u0930\u094d\u091a","\u0905\u092a\u094d\u0930\u0948\u0932","\u092e\u0908","\u091c\u0942\u0928","\u091c\u0941\u0932\u093e\u0908","\u0905\u0917\u0938\u094d\u0924","\u0938\u093f\u0924\u0902\u092c\u0930","\u0905\u0915\u094d\u091f\u0942\u092c\u0930","\u0928\u0935\u0902\u092c\u0930","\u0926\u093f\u0938\u0902\u092c\u0930"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u0930","\u0938\u094b","\u092e\u0902","\u092c\u0941","\u0917\u0941","\u0936\u0941","\u0936"],short:["\u0930","\u0938\u094b","\u092e\u0902","\u092c\u0941","\u0917\u0941","\u0936\u0941","\u0936"],abbreviated:["\u0930\u0935\u093f","\u0938\u094b\u092e","\u092e\u0902\u0917\u0932","\u092c\u0941\u0927","\u0917\u0941\u0930\u0941","\u0936\u0941\u0915\u094d\u0930","\u0936\u0928\u093f"],wide:["\u0930\u0935\u093f\u0935\u093e\u0930","\u0938\u094b\u092e\u0935\u093e\u0930","\u092e\u0902\u0917\u0932\u0935\u093e\u0930","\u092c\u0941\u0927\u0935\u093e\u0930","\u0917\u0941\u0930\u0941\u0935\u093e\u0930","\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930","\u0936\u0928\u093f\u0935\u093e\u0930"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u092a\u0942\u0930\u094d\u0935\u093e\u0939\u094d\u0928",pm:"\u0905\u092a\u0930\u093e\u0939\u094d\u0928",midnight:"\u092e\u0927\u094d\u092f\u0930\u093e\u0924\u094d\u0930\u093f",noon:"\u0926\u094b\u092a\u0939\u0930",morning:"\u0938\u0941\u092c\u0939",afternoon:"\u0926\u094b\u092a\u0939\u0930",evening:"\u0936\u093e\u092e",night:"\u0930\u093e\u0924"},abbreviated:{am:"\u092a\u0942\u0930\u094d\u0935\u093e\u0939\u094d\u0928",pm:"\u0905\u092a\u0930\u093e\u0939\u094d\u0928",midnight:"\u092e\u0927\u094d\u092f\u0930\u093e\u0924\u094d\u0930\u093f",noon:"\u0926\u094b\u092a\u0939\u0930",morning:"\u0938\u0941\u092c\u0939",afternoon:"\u0926\u094b\u092a\u0939\u0930",evening:"\u0936\u093e\u092e",night:"\u0930\u093e\u0924"},wide:{am:"\u092a\u0942\u0930\u094d\u0935\u093e\u0939\u094d\u0928",pm:"\u0905\u092a\u0930\u093e\u0939\u094d\u0928",midnight:"\u092e\u0927\u094d\u092f\u0930\u093e\u0924\u094d\u0930\u093f",noon:"\u0926\u094b\u092a\u0939\u0930",morning:"\u0938\u0941\u092c\u0939",afternoon:"\u0926\u094b\u092a\u0939\u0930",evening:"\u0936\u093e\u092e",night:"\u0930\u093e\u0924"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u092a\u0942\u0930\u094d\u0935\u093e\u0939\u094d\u0928",pm:"\u0905\u092a\u0930\u093e\u0939\u094d\u0928",midnight:"\u092e\u0927\u094d\u092f\u0930\u093e\u0924\u094d\u0930\u093f",noon:"\u0926\u094b\u092a\u0939\u0930",morning:"\u0938\u0941\u092c\u0939",afternoon:"\u0926\u094b\u092a\u0939\u0930",evening:"\u0936\u093e\u092e",night:"\u0930\u093e\u0924"},abbreviated:{am:"\u092a\u0942\u0930\u094d\u0935\u093e\u0939\u094d\u0928",pm:"\u0905\u092a\u0930\u093e\u0939\u094d\u0928",midnight:"\u092e\u0927\u094d\u092f\u0930\u093e\u0924\u094d\u0930\u093f",noon:"\u0926\u094b\u092a\u0939\u0930",morning:"\u0938\u0941\u092c\u0939",afternoon:"\u0926\u094b\u092a\u0939\u0930",evening:"\u0936\u093e\u092e",night:"\u0930\u093e\u0924"},wide:{am:"\u092a\u0942\u0930\u094d\u0935\u093e\u0939\u094d\u0928",pm:"\u0905\u092a\u0930\u093e\u0939\u094d\u0928",midnight:"\u092e\u0927\u094d\u092f\u0930\u093e\u0924\u094d\u0930\u093f",noon:"\u0926\u094b\u092a\u0939\u0930",morning:"\u0938\u0941\u092c\u0939",afternoon:"\u0926\u094b\u092a\u0939\u0930",evening:"\u0936\u093e\u092e",night:"\u0930\u093e\u0924"}},defaultFormattingWidth:"wide"})},ra={lessThanXSeconds:{one:"\u0967 \u0938\u0947\u0915\u0902\u0921 \u0938\u0947 \u0915\u092e",other:"{{count}} \u0938\u0947\u0915\u0902\u0921 \u0938\u0947 \u0915\u092e"},xSeconds:{one:"\u0967 \u0938\u0947\u0915\u0902\u0921",other:"{{count}} \u0938\u0947\u0915\u0902\u0921"},halfAMinute:"\u0906\u0927\u093e \u092e\u093f\u0928\u091f",lessThanXMinutes:{one:"\u0967 \u092e\u093f\u0928\u091f \u0938\u0947 \u0915\u092e",other:"{{count}} \u092e\u093f\u0928\u091f \u0938\u0947 \u0915\u092e"},xMinutes:{one:"\u0967 \u092e\u093f\u0928\u091f",other:"{{count}} \u092e\u093f\u0928\u091f"},aboutXHours:{one:"\u0932\u0917\u092d\u0917 \u0967 \u0918\u0902\u091f\u093e",other:"\u0932\u0917\u092d\u0917 {{count}} \u0918\u0902\u091f\u0947"},xHours:{one:"\u0967 \u0918\u0902\u091f\u093e",other:"{{count}} \u0918\u0902\u091f\u0947"},xDays:{one:"\u0967 \u0926\u093f\u0928",other:"{{count}} \u0926\u093f\u0928"},aboutXWeeks:{one:"\u0932\u0917\u092d\u0917 \u0967 \u0938\u092a\u094d\u0924\u093e\u0939",other:"\u0932\u0917\u092d\u0917 {{count}} \u0938\u092a\u094d\u0924\u093e\u0939"},xWeeks:{one:"\u0967 \u0938\u092a\u094d\u0924\u093e\u0939",other:"{{count}} \u0938\u092a\u094d\u0924\u093e\u0939"},aboutXMonths:{one:"\u0932\u0917\u092d\u0917 \u0967 \u092e\u0939\u0940\u0928\u093e",other:"\u0932\u0917\u092d\u0917 {{count}} \u092e\u0939\u0940\u0928\u0947"},xMonths:{one:"\u0967 \u092e\u0939\u0940\u0928\u093e",other:"{{count}} \u092e\u0939\u0940\u0928\u0947"},aboutXYears:{one:"\u0932\u0917\u092d\u0917 \u0967 \u0935\u0930\u094d\u0937",other:"\u0932\u0917\u092d\u0917 {{count}} \u0935\u0930\u094d\u0937"},xYears:{one:"\u0967 \u0935\u0930\u094d\u0937",other:"{{count}} \u0935\u0930\u094d\u0937"},overXYears:{one:"\u0967 \u0935\u0930\u094d\u0937 \u0938\u0947 \u0905\u0927\u093f\u0915",other:"{{count}} \u0935\u0930\u094d\u0937 \u0938\u0947 \u0905\u0927\u093f\u0915"},almostXYears:{one:"\u0932\u0917\u092d\u0917 \u0967 \u0935\u0930\u094d\u0937",other:"\u0932\u0917\u092d\u0917 {{count}} \u0935\u0930\u094d\u0937"}},ia=function(t,e,n){var r,i=ra[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",ea(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+"\u092e\u0947 ":r+" \u092a\u0939\u0932\u0947":r},oa={date:U({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u0915\u094b' {{time}}",long:"{{date}} '\u0915\u094b' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},aa={lastWeek:"'\u092a\u093f\u091b\u0932\u0947' eeee p",yesterday:"'\u0915\u0932' p",today:"'\u0906\u091c' p",tomorrow:"'\u0915\u0932' p",nextWeek:"eeee '\u0915\u094b' p",other:"P"},sa={code:"hi",formatDistance:ia,formatLong:oa,formatRelative:function(t,e,n,r){return aa[t]},localize:na,match:{ordinalNumber:Z({matchPattern:/^[\u0966\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f]+/i,parsePattern:/^[\u0966\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f]+/i,valueCallback:function(t){var e=t.toString().replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(t){return ta.number[t]}));return Number(e)}}),era:Q({matchPatterns:{narrow:/^(\u0908\u0938\u093e-\u092a\u0942\u0930\u094d\u0935|\u0908\u0938\u094d\u0935\u0940)/i,abbreviated:/^(\u0908\u0938\u093e\.?\s?\u092a\u0942\u0930\u094d\u0935\.?|\u0908\u0938\u093e\.?)/i,wide:/^(\u0908\u0938\u093e-\u092a\u0942\u0930\u094d\u0935|\u0908\u0938\u0935\u0940 \u092a\u0942\u0930\u094d\u0935|\u0908\u0938\u0935\u0940 \u0938\u0928|\u0908\u0938\u0935\u0940)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0924\u093f[1234]/i,wide:/^[1234](\u092a\u0939\u0932\u0940|\u0926\u0942\u0938\u0930\u0940|\u0924\u0940\u0938\u0930\u0940|\u091a\u094c\u0925\u0940)? \u0924\u093f\u092e\u093e\u0939\u0940/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u091c\u092b\u093c\u092e\u093e\u0905\u092a\u094d\u092e\u0908\u091c\u0942\u0928\u091c\u0941\u0905\u0917\u0938\u093f\u0905\u0915\u094d\u0924\u0928\u0926\u093f]/i,abbreviated:/^(\u091c\u0928|\u092b\u093c\u0930|\u092e\u093e\u0930\u094d\u091a|\u0905\u092a\u094d|\u092e\u0908|\u091c\u0942\u0928|\u091c\u0941\u0932|\u0905\u0917|\u0938\u093f\u0924|\u0905\u0915\u094d\u0924\u0942|\u0928\u0935|\u0926\u093f\u0938)/i,wide:/^(\u091c\u0928\u0935\u0930\u0940|\u092b\u093c\u0930\u0935\u0930\u0940|\u092e\u093e\u0930\u094d\u091a|\u0905\u092a\u094d\u0930\u0948\u0932|\u092e\u0908|\u091c\u0942\u0928|\u091c\u0941\u0932\u093e\u0908|\u0905\u0917\u0938\u094d\u0924|\u0938\u093f\u0924\u0902\u092c\u0930|\u0905\u0915\u094d\u0924\u0942\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u091c/i,/^\u092b\u093c/i,/^\u092e\u093e/i,/^\u0905\u092a\u094d/i,/^\u092e\u0908/i,/^\u091c\u0942/i,/^\u091c\u0941/i,/^\u0905\u0917/i,/^\u0938\u093f/i,/^\u0905\u0915\u094d\u0924\u0942/i,/^\u0928/i,/^\u0926\u093f/i],any:[/^\u091c\u0928/i,/^\u092b\u093c/i,/^\u092e\u093e/i,/^\u0905\u092a\u094d/i,/^\u092e\u0908/i,/^\u091c\u0942/i,/^\u091c\u0941/i,/^\u0905\u0917/i,/^\u0938\u093f/i,/^\u0905\u0915\u094d\u0924\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u0930\u0935\u093f\u0938\u094b\u092e\u092e\u0902\u0917\u0932\u092c\u0941\u0927\u0917\u0941\u0930\u0941\u0936\u0941\u0915\u094d\u0930\u0936\u0928\u093f]/i,short:/^(\u0930\u0935\u093f|\u0938\u094b\u092e|\u092e\u0902\u0917\u0932|\u092c\u0941\u0927|\u0917\u0941\u0930\u0941|\u0936\u0941\u0915\u094d\u0930|\u0936\u0928\u093f)/i,abbreviated:/^(\u0930\u0935\u093f|\u0938\u094b\u092e|\u092e\u0902\u0917\u0932|\u092c\u0941\u0927|\u0917\u0941\u0930\u0941|\u0936\u0941\u0915\u094d\u0930|\u0936\u0928\u093f)/i,wide:/^(\u0930\u0935\u093f\u0935\u093e\u0930|\u0938\u094b\u092e\u0935\u093e\u0930|\u092e\u0902\u0917\u0932\u0935\u093e\u0930|\u092c\u0941\u0927\u0935\u093e\u0930|\u0917\u0941\u0930\u0941\u0935\u093e\u0930|\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930|\u0936\u0928\u093f\u0935\u093e\u0930)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0930\u0935\u093f/i,/^\u0938\u094b\u092e/i,/^\u092e\u0902\u0917\u0932/i,/^\u092c\u0941\u0927/i,/^\u0917\u0941\u0930\u0941/i,/^\u0936\u0941\u0915\u094d\u0930/i,/^\u0936\u0928\u093f/i],any:[/^\u0930\u0935\u093f/i,/^\u0938\u094b\u092e/i,/^\u092e\u0902\u0917\u0932/i,/^\u092c\u0941\u0927/i,/^\u0917\u0941\u0930\u0941/i,/^\u0936\u0941\u0915\u094d\u0930/i,/^\u0936\u0928\u093f/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u092a\u0942|\u0905|\u092e|\u0926.\?|\u0938\u0941|\u0926\u094b|\u0936\u093e|\u0930\u093e)/i,any:/^(\u092a\u0942\u0930\u094d\u0935\u093e\u0939\u094d\u0928|\u0905\u092a\u0930\u093e\u0939\u094d\u0928|\u092e|\u0926.\?|\u0938\u0941|\u0926\u094b|\u0936\u093e|\u0930\u093e)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u092a\u0942\u0930\u094d\u0935\u093e\u0939\u094d\u0928/i,pm:/^\u0905\u092a\u0930\u093e\u0939\u094d\u0928/i,midnight:/^\u092e\u0927\u094d\u092f/i,noon:/^\u0926\u094b/i,morning:/\u0938\u0941/i,afternoon:/\u0926\u094b/i,evening:/\u0936\u093e/i,night:/\u0930\u093e/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:4}},la={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},ua=function(t,e,n){var r,i=la[t];return r="string"===typeof i?i:1===e?null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:e%10>1&&e%10<5&&"1"!==String(e).substr(-2,1)?i.dual.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"za "+r:"prije "+r:r},ca={date:U({formats:{full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},da={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'pro\u0161lu nedjelju u' p";case 3:return"'pro\u0161lu srijedu u' p";case 6:return"'pro\u0161lu subotu u' p";default:return"'pro\u0161li' EEEE 'u' p"}},yesterday:"'ju\u010der u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'idu\u0107u nedjelju u' p";case 3:return"'idu\u0107u srijedu u' p";case 6:return"'idu\u0107u subotu u' p";default:return"'pro\u0161li' EEEE 'u' p"}},other:"P"},ha=function(t,e,n,r){var i=da[t];return"function"===typeof i?i(e):i},fa={code:"hr",formatDistance:ua,formatLong:ca,formatRelative:ha,localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","o\u017eu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["sije\u010danj","velja\u010da","o\u017eujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","o\u017eu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["sije\u010dnja","velja\u010de","o\u017eujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["N","P","U","S","\u010c","P","S"],short:["ned","pon","uto","sri","\u010det","pet","sub"],abbreviated:["ned","pon","uto","sri","\u010det","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","\u010detvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},abbreviated:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},wide:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"nave\u010der",night:"no\u0107u"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},abbreviated:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},wide:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"nave\u010der",night:"no\u0107u"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(o\u017eu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((sije\u010danj|sije\u010dnja|sijecanj|sijecnja)|(velja\u010da|velja\u010de|veljaca|veljace)|(o\u017eujak|o\u017eujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(o\u017eu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(o\u017eu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},defaultParseWidth:"wide"}),day:Q({matchPatterns:{narrow:/^[npus\u010dc]/i,short:/^(ned|pon|uto|sri|(\u010det|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(\u010det|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(\u010detvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(am|pm|ponoc|pono\u0107|(po)?podne|navecer|nave\u010der|no\u0107u|poslije podne|ujutro)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|nave\u010de)/i,night:/(nocu|no\u0107u)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},pa={lessThanXSeconds:{one:"mwens pase yon segond",other:"mwens pase {{count}} segond"},xSeconds:{one:"1 segond",other:"{{count}} segond"},halfAMinute:"30 segond",lessThanXMinutes:{one:"mwens pase yon minit",other:"mwens pase {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"anviwon in\xe8",other:"anviwon {{count}} \xe8"},xHours:{one:"1 l\xe8",other:"{{count}} l\xe8"},xDays:{one:"1 jou",other:"{{count}} jou"},aboutXWeeks:{one:"anviwon 1 sem\xe8n",other:"anviwon {{count}} sem\xe8n"},xWeeks:{one:"1 sem\xe8n",other:"{{count}} sem\xe8n"},aboutXMonths:{one:"anviwon 1 mwa",other:"anviwon {{count}} mwa"},xMonths:{one:"1 mwa",other:"{{count}} mwa"},aboutXYears:{one:"anviwon 1 an",other:"anviwon {{count}} an"},xYears:{one:"1 an",other:"{{count}} an"},overXYears:{one:"plis pase 1 an",other:"plis pase {{count}} an"},almostXYears:{one:"pr\xe8ske 1 an",other:"pr\xe8ske {{count}} an"}},ma=function(t,e,n){var r,i=pa[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"nan "+r:"sa f\xe8 "+r:r},ga={date:U({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'nan l\xe8' {{time}}",long:"{{date}} 'nan l\xe8' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ba={lastWeek:"eeee 'pase nan l\xe8' p",yesterday:"'y\xe8 nan l\xe8' p",today:"'jodi a' p",tomorrow:"'demen nan l\xe8' p'",nextWeek:"eeee 'pwochen nan l\xe8' p",other:"P"},va={code:"ht",formatDistance:ma,formatLong:ga,formatRelative:function(t,e,n,r){return ba[t]},localize:{ordinalNumber:function(t,e){var n=Number(t);return 0===n?String(n):n+(1===n?"ye":"y\xe8m")},era:K({values:{narrow:["av. J.-K","ap. J.-K"],abbreviated:["av. J.-K","ap. J.-K"],wide:["anvan Jezi Kris","apre Jezi Kris"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1ye trim.","2y\xe8m trim.","3y\xe8m trim.","4y\xe8m trim."],wide:["1ye trim\xe8s","2y\xe8m trim\xe8s","3y\xe8m trim\xe8s","4y\xe8m trim\xe8s"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["janv.","fevr.","mas","avr.","me","jen","jiy\xe8","out","sept.","okt.","nov.","des."],wide:["janvye","fevrye","mas","avril","me","jen","jiy\xe8","out","septanm","okt\xf2b","novanm","desanm"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","L","M","M","J","V","S"],short:["di","le","ma","m\xe8","je","va","sa"],abbreviated:["dim.","len.","mad.","m\xe8k.","jed.","van.","sam."],wide:["dimanch","lendi","madi","m\xe8kredi","jedi","vandredi","samdi"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"swa",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"maten",afternoon:"apr\xe8midi",evening:"swa",night:"maten"},wide:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"nan maten",afternoon:"nan apr\xe8midi",evening:"nan asw\xe8",night:"nan maten"}},defaultWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(ye|y\xe8m)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i,abbreviated:/^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i,wide:/^(avan Jezi Kris|apre Jezi Kris)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](ye|y\xe8m)? trim\xe8s/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|fevr|mas|avr|me|jen|jiy\xe8|out|sept|okt|nov|des)\.?/i,wide:/^(janvye|fevrye|mas|avril|me|jen|jiy\xe8|out|septanm|okt\xf2b|novanm|desanm)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^av/i,/^me/i,/^je/i,/^ji/i,/^ou/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|le|ma|me|je|va|sa)/i,abbreviated:/^(dim|len|mad|m\xe8k|jed|van|sam)\.?/i,wide:/^(dimanch|lendi|madi|m\xe8kredi|jedi|vandredi|samdi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^le/i,/^ma/i,/^m\xe8/i,/^je/i,/^va/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i,any:/^([ap]\.?\s?m\.?|nan maten|nan apr\xe8midi|nan asw\xe8)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/sw/i,night:/nwit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ya={about:"k\xf6r\xfclbel\xfcl",over:"t\xf6bb mint",almost:"majdnem",lessthan:"kevesebb mint"},wa={xseconds:" m\xe1sodperc",halfaminute:"f\xe9l perc",xminutes:" perc",xhours:" \xf3ra",xdays:" nap",xweeks:" h\xe9t",xmonths:" h\xf3nap",xyears:" \xe9v"},ka={xseconds:{"-1":" m\xe1sodperccel ezel\u0151tt",1:" m\xe1sodperc m\xfalva",0:" m\xe1sodperce"},halfaminute:{"-1":"f\xe9l perccel ezel\u0151tt",1:"f\xe9l perc m\xfalva",0:"f\xe9l perce"},xminutes:{"-1":" perccel ezel\u0151tt",1:" perc m\xfalva",0:" perce"},xhours:{"-1":" \xf3r\xe1val ezel\u0151tt",1:" \xf3ra m\xfalva",0:" \xf3r\xe1ja"},xdays:{"-1":" nappal ezel\u0151tt",1:" nap m\xfalva",0:" napja"},xweeks:{"-1":" h\xe9ttel ezel\u0151tt",1:" h\xe9t m\xfalva",0:" hete"},xmonths:{"-1":" h\xf3nappal ezel\u0151tt",1:" h\xf3nap m\xfalva",0:" h\xf3napja"},xyears:{"-1":" \xe9vvel ezel\u0151tt",1:" \xe9v m\xfalva",0:" \xe9ve"}},_a=function(t,e,n){var r=t.match(/about|over|almost|lessthan/i),i=r?t.replace(r[0],""):t,o=!0===(null===n||void 0===n?void 0:n.addSuffix),a=i.toLowerCase(),s=(null===n||void 0===n?void 0:n.comparison)||0,l=o?ka[a][s]:wa[a],u="halfaminute"===a?l:e+l;if(r){var c=r[0].toLowerCase();u=ya[c]+" "+u}return u},Oa={date:U({formats:{full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},xa=["vas\xe1rnap","h\xe9tf\u0151n","kedden","szerd\xe1n","cs\xfct\xf6rt\xf6k\xf6n","p\xe9nteken","szombaton"];function Ea(t){return function(e){var n=xa[e.getUTCDay()];return"".concat(t?"":"'m\xfalt' ","'").concat(n,"' p'-kor'")}}var ja={lastWeek:Ea(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:Ea(!0),other:"P"},Sa=function(t,e){var n=ja[t];return"function"===typeof n?n(e):n},Pa={code:"hu",formatDistance:_a,formatLong:Oa,formatRelative:Sa,localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus el\u0151tt","id\u0151sz\xe1m\xedt\xe1sunk szerint"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.\xe9v","2. n.\xe9v","3. n.\xe9v","4. n.\xe9v"],wide:["1. negyed\xe9v","2. negyed\xe9v","3. negyed\xe9v","4. negyed\xe9v"]},defaultWidth:"wide",argumentCallback:function(t){return t-1},formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.\xe9v","II. n.\xe9v","III. n.\xe9v","IV. n.\xe9v"],wide:["I. negyed\xe9v","II. negyed\xe9v","III. negyed\xe9v","IV. negyed\xe9v"]},defaultFormattingWidth:"wide"}),month:K({values:{narrow:["J","F","M","\xc1","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","m\xe1rc.","\xe1pr.","m\xe1j.","j\xfan.","j\xfal.","aug.","szept.","okt.","nov.","dec."],wide:["janu\xe1r","febru\xe1r","m\xe1rcius","\xe1prilis","m\xe1jus","j\xfanius","j\xfalius","augusztus","szeptember","okt\xf3ber","november","december"]},defaultWidth:"wide"}),day:K({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vas\xe1rnap","h\xe9tf\u0151","kedd","szerda","cs\xfct\xf6rt\xf6k","p\xe9ntek","szombat"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"du.",evening:"este",night:"\xe9jjel"},abbreviated:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"du.",evening:"este",night:"\xe9jjel"},wide:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"d\xe9lut\xe1n",evening:"este",night:"\xe9jjel"}},defaultWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus el\u0151tt|id\u0151sz\xe1m\xedt\xe1sunk el\u0151tt|id\u0151sz\xe1m\xedt\xe1sunk szerint|i\. sz\.)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/el\u0151tt/i,/(szerint|i. sz.)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.\xe9v/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyed\xe9v/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfma\xe1sond]|sz/i,abbreviated:/^(jan\.?|febr\.?|m\xe1rc\.?|\xe1pr\.?|m\xe1j\.?|j\xfan\.?|j\xfal\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(janu\xe1r|febru\xe1r|m\xe1rcius|\xe1prilis|m\xe1jus|j\xfanius|j\xfalius|augusztus|szeptember|okt\xf3ber|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a|\xe1/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^m\xe1r/i,/^\xe1p/i,/^m\xe1j/i,/^j\xfan/i,/^j\xfal/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vas\xe1rnap|h\xe9tf\u0151|kedd|szerda|cs\xfct\xf6rt\xf6k|p\xe9ntek|szombat)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^((de|du)\.?|\xe9jf\xe9l|d\xe9lut\xe1n|d\xe9l|reggel|este|\xe9jjel)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^\xe9jf/i,noon:/^d\xe9/i,morning:/reg/i,afternoon:/^d\xe9lu\.?/i,evening:/es/i,night:/\xe9jj/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ca={lessThanXSeconds:{one:"\u0561\u057e\u0565\u056c\u056b \u0584\u056b\u0579 \u0584\u0561\u0576 1 \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",other:"\u0561\u057e\u0565\u056c\u056b \u0584\u056b\u0579 \u0584\u0561\u0576 {{count}} \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576"},xSeconds:{one:"1 \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",other:"{{count}} \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576"},halfAMinute:"\u056f\u0565\u057d \u0580\u0578\u057a\u0565",lessThanXMinutes:{one:"\u0561\u057e\u0565\u056c\u056b \u0584\u056b\u0579 \u0584\u0561\u0576 1 \u0580\u0578\u057a\u0565",other:"\u0561\u057e\u0565\u056c\u056b \u0584\u056b\u0579 \u0584\u0561\u0576 {{count}} \u0580\u0578\u057a\u0565"},xMinutes:{one:"1 \u0580\u0578\u057a\u0565",other:"{{count}} \u0580\u0578\u057a\u0565"},aboutXHours:{one:"\u0574\u0578\u057f 1 \u056a\u0561\u0574",other:"\u0574\u0578\u057f {{count}} \u056a\u0561\u0574"},xHours:{one:"1 \u056a\u0561\u0574",other:"{{count}} \u056a\u0561\u0574"},xDays:{one:"1 \u0585\u0580",other:"{{count}} \u0585\u0580"},aboutXWeeks:{one:"\u0574\u0578\u057f 1 \u0577\u0561\u0562\u0561\u0569",other:"\u0574\u0578\u057f {{count}} \u0577\u0561\u0562\u0561\u0569"},xWeeks:{one:"1 \u0577\u0561\u0562\u0561\u0569",other:"{{count}} \u0577\u0561\u0562\u0561\u0569"},aboutXMonths:{one:"\u0574\u0578\u057f 1 \u0561\u0574\u056b\u057d",other:"\u0574\u0578\u057f {{count}} \u0561\u0574\u056b\u057d"},xMonths:{one:"1 \u0561\u0574\u056b\u057d",other:"{{count}} \u0561\u0574\u056b\u057d"},aboutXYears:{one:"\u0574\u0578\u057f 1 \u057f\u0561\u0580\u056b",other:"\u0574\u0578\u057f {{count}} \u057f\u0561\u0580\u056b"},xYears:{one:"1 \u057f\u0561\u0580\u056b",other:"{{count}} \u057f\u0561\u0580\u056b"},overXYears:{one:"\u0561\u057e\u0565\u056c\u056b \u0584\u0561\u0576 1 \u057f\u0561\u0580\u056b",other:"\u0561\u057e\u0565\u056c\u056b \u0584\u0561\u0576 {{count}} \u057f\u0561\u0580\u056b"},almostXYears:{one:"\u0570\u0561\u0574\u0561\u0580\u0575\u0561 1 \u057f\u0561\u0580\u056b",other:"\u0570\u0561\u0574\u0561\u0580\u0575\u0561 {{count}} \u057f\u0561\u0580\u056b"}},Ta=function(t,e,n){var r,i=Ca[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+" \u0570\u0565\u057f\u0578":r+" \u0561\u057c\u0561\u057b":r},Ma={date:U({formats:{full:"d MMMM, y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u056a\u2024'{{time}}",long:"{{date}} '\u056a\u2024'{{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Aa={lastWeek:"'\u0576\u0561\u056d\u0578\u0580\u0564' eeee p'\u058a\u056b\u0576'",yesterday:"'\u0565\u0580\u0565\u056f' p'\u058a\u056b\u0576'",today:"'\u0561\u0575\u057d\u0585\u0580' p'\u058a\u056b\u0576'",tomorrow:"'\u057e\u0561\u0572\u0568' p'\u058a\u056b\u0576'",nextWeek:"'\u0570\u0561\u057b\u0578\u0580\u0564' eeee p'\u058a\u056b\u0576'",other:"P"},Da={code:"hy",formatDistance:Ta,formatLong:Ma,formatRelative:function(t,e,n,r){return Aa[t]},localize:{ordinalNumber:function(t,e){var n=Number(t),r=n%100;return r<10&&r%10===1?n+"\u058a\u056b\u0576":n+"\u058a\u0580\u0564"},era:K({values:{narrow:["\u0554","\u0544"],abbreviated:["\u0554\u0531","\u0544\u0539"],wide:["\u0554\u0580\u056b\u057d\u057f\u0578\u057d\u056b\u0581 \u0561\u057c\u0561\u057b","\u0544\u0565\u0580 \u0569\u057e\u0561\u0580\u056f\u0578\u0582\u0569\u0575\u0561\u0576"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u05541","\u05542","\u05543","\u05544"],wide:["1\u058a\u056b\u0576 \u0584\u0561\u057c\u0578\u0580\u0564","2\u058a\u0580\u0564 \u0584\u0561\u057c\u0578\u0580\u0564","3\u058a\u0580\u0564 \u0584\u0561\u057c\u0578\u0580\u0564","4\u058a\u0580\u0564 \u0584\u0561\u057c\u0578\u0580\u0564"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0540","\u0553","\u0544","\u0531","\u0544","\u0540","\u0540","\u0555","\u054d","\u0540","\u0546","\u0534"],abbreviated:["\u0570\u0578\u0582\u0576","\u0583\u0565\u057f","\u0574\u0561\u0580","\u0561\u057a\u0580","\u0574\u0561\u0575","\u0570\u0578\u0582\u0576","\u0570\u0578\u0582\u056c","\u0585\u0563\u057d","\u057d\u0565\u057a","\u0570\u0578\u056f","\u0576\u0578\u0575","\u0564\u0565\u056f"],wide:["\u0570\u0578\u0582\u0576\u057e\u0561\u0580","\u0583\u0565\u057f\u0580\u057e\u0561\u0580","\u0574\u0561\u0580\u057f","\u0561\u057a\u0580\u056b\u056c","\u0574\u0561\u0575\u056b\u057d","\u0570\u0578\u0582\u0576\u056b\u057d","\u0570\u0578\u0582\u056c\u056b\u057d","\u0585\u0563\u0578\u057d\u057f\u0578\u057d","\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580","\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580","\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580","\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u053f","\u0535","\u0535","\u0549","\u0540","\u0548","\u0547"],short:["\u056f\u0580","\u0565\u0580","\u0565\u0584","\u0579\u0584","\u0570\u0563","\u0578\u0582\u0580","\u0577\u0562"],abbreviated:["\u056f\u056b\u0580","\u0565\u0580\u056f","\u0565\u0580\u0584","\u0579\u0578\u0580","\u0570\u0576\u0563","\u0578\u0582\u0580\u0562","\u0577\u0561\u0562"],wide:["\u056f\u056b\u0580\u0561\u056f\u056b","\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b","\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b","\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b","\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b","\u0578\u0582\u0580\u0562\u0561\u0569","\u0577\u0561\u0562\u0561\u0569"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"\u056f\u0565\u057d\u0563\u0577",noon:"\u056f\u0565\u057d\u0585\u0580",morning:"\u0561\u057c\u0561\u057e\u0578\u057f",afternoon:"\u0581\u0565\u0580\u0565\u056f",evening:"\u0565\u0580\u0565\u056f\u0578",night:"\u0563\u056b\u0577\u0565\u0580"},abbreviated:{am:"AM",pm:"PM",midnight:"\u056f\u0565\u057d\u0563\u056b\u0577\u0565\u0580",noon:"\u056f\u0565\u057d\u0585\u0580",morning:"\u0561\u057c\u0561\u057e\u0578\u057f",afternoon:"\u0581\u0565\u0580\u0565\u056f",evening:"\u0565\u0580\u0565\u056f\u0578",night:"\u0563\u056b\u0577\u0565\u0580"},wide:{am:"a.m.",pm:"p.m.",midnight:"\u056f\u0565\u057d\u0563\u056b\u0577\u0565\u0580",noon:"\u056f\u0565\u057d\u0585\u0580",morning:"\u0561\u057c\u0561\u057e\u0578\u057f",afternoon:"\u0581\u0565\u0580\u0565\u056f",evening:"\u0565\u0580\u0565\u056f\u0578",night:"\u0563\u056b\u0577\u0565\u0580"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"\u056f\u0565\u057d\u0563\u0577",noon:"\u056f\u0565\u057d\u0585\u0580",morning:"\u0561\u057c\u0561\u057e\u0578\u057f\u0568",afternoon:"\u0581\u0565\u0580\u0565\u056f\u0568",evening:"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576",night:"\u0563\u056b\u0577\u0565\u0580\u0568"},abbreviated:{am:"AM",pm:"PM",midnight:"\u056f\u0565\u057d\u0563\u056b\u0577\u0565\u0580\u056b\u0576",noon:"\u056f\u0565\u057d\u0585\u0580\u056b\u0576",morning:"\u0561\u057c\u0561\u057e\u0578\u057f\u0568",afternoon:"\u0581\u0565\u0580\u0565\u056f\u0568",evening:"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576",night:"\u0563\u056b\u0577\u0565\u0580\u0568"},wide:{am:"a.m.",pm:"p.m.",midnight:"\u056f\u0565\u057d\u0563\u056b\u0577\u0565\u0580\u056b\u0576",noon:"\u056f\u0565\u057d\u0585\u0580\u056b\u0576",morning:"\u0561\u057c\u0561\u057e\u0578\u057f\u0568",afternoon:"\u0581\u0565\u0580\u0565\u056f\u0568",evening:"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576",night:"\u0563\u056b\u0577\u0565\u0580\u0568"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)((-|\u058a)?(\u056b\u0576|\u0580\u0564))?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0554|\u0544)/i,abbreviated:/^(\u0554\.?\s?\u0531\.?|\u0544\.?\s?\u0539\.?\s?\u0531\.?|\u0544\.?\s?\u0539\.?|\u0554\.?\s?\u0540\.?)/i,wide:/^(\u0584\u0580\u056b\u057d\u057f\u0578\u057d\u056b\u0581 \u0561\u057c\u0561\u057b|\u0574\u0565\u0580 \u0569\u057e\u0561\u0580\u056f\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u056b\u0581 \u0561\u057c\u0561\u057b|\u0574\u0565\u0580 \u0569\u057e\u0561\u0580\u056f\u0578\u0582\u0569\u0575\u0561\u0576|\u0584\u0580\u056b\u057d\u057f\u0578\u057d\u056b\u0581 \u0570\u0565\u057f\u0578)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0584/i,/^\u0574/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0584[1234]/i,wide:/^[1234]((-|\u058a)?(\u056b\u0576|\u0580\u0564)) \u0584\u0561\u057c\u0578\u0580\u0564/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u0570\u0583\u0574\u0561\u0585\u057d\u0576\u0564]/i,abbreviated:/^(\u0570\u0578\u0582\u0576|\u0583\u0565\u057f|\u0574\u0561\u0580|\u0561\u057a\u0580|\u0574\u0561\u0575|\u0570\u0578\u0582\u0576|\u0570\u0578\u0582\u056c|\u0585\u0563\u057d|\u057d\u0565\u057a|\u0570\u0578\u056f|\u0576\u0578\u0575|\u0564\u0565\u056f)/i,wide:/^(\u0570\u0578\u0582\u0576\u057e\u0561\u0580|\u0583\u0565\u057f\u0580\u057e\u0561\u0580|\u0574\u0561\u0580\u057f|\u0561\u057a\u0580\u056b\u056c|\u0574\u0561\u0575\u056b\u057d|\u0570\u0578\u0582\u0576\u056b\u057d|\u0570\u0578\u0582\u056c\u056b\u057d|\u0585\u0563\u0578\u057d\u057f\u0578\u057d|\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580|\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580|\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580|\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0570/i,/^\u0583/i,/^\u0574/i,/^\u0561/i,/^\u0574/i,/^\u0570/i,/^\u0570/i,/^\u0585/i,/^\u057d/i,/^\u0570/i,/^\u0576/i,/^\u0564/i],any:[/^\u0570\u0578\u0582/i,/^\u0583/i,/^\u0574\u0561\u0580/i,/^\u0561/i,/^\u0574\u0561\u0575/i,/^\u0570\u0578\u0582\u0576/i,/^\u0570\u0578\u0582\u056c/i,/^\u0585/i,/^\u057d/i,/^\u0570\u0578\u056f/i,/^\u0576/i,/^\u0564/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u0565\u0579\u0570\u0578\u0577\u056f]/i,short:/^(\u056f\u0580|\u0565\u0580|\u0565\u0584|\u0579\u0584|\u0570\u0563|\u0578\u0582\u0580|\u0577\u0562)/i,abbreviated:/^(\u056f\u056b\u0580|\u0565\u0580\u056f|\u0565\u0580\u0584|\u0579\u0578\u0580|\u0570\u0576\u0563|\u0578\u0582\u0580\u0562|\u0577\u0561\u0562)/i,wide:/^(\u056f\u056b\u0580\u0561\u056f\u056b|\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b|\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b|\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b|\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b|\u0578\u0582\u0580\u0562\u0561\u0569|\u0577\u0561\u0562\u0561\u0569)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u056f/i,/^\u0565/i,/^\u0565/i,/^\u0579/i,/^\u0570/i,/^(\u0578|\u0548)/,/^\u0577/i],short:[/^\u056f/i,/^\u0565\u0580/i,/^\u0565\u0584/i,/^\u0579/i,/^\u0570/i,/^(\u0578|\u0548)/,/^\u0577/i],abbreviated:[/^\u056f/i,/^\u0565\u0580\u056f/i,/^\u0565\u0580\u0584/i,/^\u0579/i,/^\u0570/i,/^(\u0578|\u0548)/,/^\u0577/i],wide:[/^\u056f/i,/^\u0565\u0580\u056f/i,/^\u0565\u0580\u0565/i,/^\u0579/i,/^\u0570/i,/^(\u0578|\u0548)/,/^\u0577/i]},defaultParseWidth:"wide"}),dayPeriod:Q({matchPatterns:{narrow:/^([ap]|\u056f\u0565\u057d\u0563\u0577|\u056f\u0565\u057d\u0585\u0580|(\u0561\u057c\u0561\u057e\u0578\u057f\u0568?|\u0581\u0565\u0580\u0565\u056f\u0568?|\u0565\u0580\u0565\u056f\u0578(\u0575\u0561\u0576)?|\u0563\u056b\u0577\u0565\u0580\u0568?))/i,any:/^([ap]\.?\s?m\.?|\u056f\u0565\u057d\u0563\u056b\u0577\u0565\u0580(\u056b\u0576)?|\u056f\u0565\u057d\u0585\u0580(\u056b\u0576)?|(\u0561\u057c\u0561\u057e\u0578\u057f\u0568?|\u0581\u0565\u0580\u0565\u056f\u0568?|\u0565\u0580\u0565\u056f\u0578(\u0575\u0561\u0576)?|\u0563\u056b\u0577\u0565\u0580\u0568?))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/\u056f\u0565\u057d\u0563\u056b\u0577\u0565\u0580/i,noon:/\u056f\u0565\u057d\u0585\u0580/i,morning:/\u0561\u057c\u0561\u057e\u0578\u057f/i,afternoon:/\u0581\u0565\u0580\u0565\u056f/i,evening:/\u0565\u0580\u0565\u056f\u0578/i,night:/\u0563\u056b\u0577\u0565\u0580/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ra={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},La=function(t,e,n){var r,i=Ra[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+r:r+" yang lalu":r},Ia={date:U({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Wa={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},za={code:"id",formatDistance:La,formatLong:Ia,formatRelative:function(t,e,n,r){return Wa[t]},localize:{ordinalNumber:function(t,e){return"ke-"+Number(t)},era:K({values:{narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},defaultWidth:"wide"}),day:K({values:{narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^ke-(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^(m|e)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Na={lessThanXSeconds:{one:"minna en 1 sek\xfanda",other:"minna en {{count}} sek\xfandur"},xSeconds:{one:"1 sek\xfanda",other:"{{count}} sek\xfandur"},halfAMinute:"h\xe1lf m\xedn\xfata",lessThanXMinutes:{one:"minna en 1 m\xedn\xfata",other:"minna en {{count}} m\xedn\xfatur"},xMinutes:{one:"1 m\xedn\xfata",other:"{{count}} m\xedn\xfatur"},aboutXHours:{one:"u.\xfe.b. 1 klukkustund",other:"u.\xfe.b. {{count}} klukkustundir"},xHours:{one:"1 klukkustund",other:"{{count}} klukkustundir"},xDays:{one:"1 dagur",other:"{{count}} dagar"},aboutXWeeks:{one:"um viku",other:"um {{count}} vikur"},xWeeks:{one:"1 viku",other:"{{count}} vikur"},aboutXMonths:{one:"u.\xfe.b. 1 m\xe1nu\xf0ur",other:"u.\xfe.b. {{count}} m\xe1nu\xf0ir"},xMonths:{one:"1 m\xe1nu\xf0ur",other:"{{count}} m\xe1nu\xf0ir"},aboutXYears:{one:"u.\xfe.b. 1 \xe1r",other:"u.\xfe.b. {{count}} \xe1r"},xYears:{one:"1 \xe1r",other:"{{count}} \xe1r"},overXYears:{one:"meira en 1 \xe1r",other:"meira en {{count}} \xe1r"},almostXYears:{one:"n\xe6stum 1 \xe1r",other:"n\xe6stum {{count}} \xe1r"}},Fa=function(t,e,n){var r,i=Na[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\xed "+r:r+" s\xed\xf0an":r},Ha={date:U({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"d.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ba={lastWeek:"'s\xed\xf0asta' dddd 'kl.' p",yesterday:"'\xed g\xe6r kl.' p",today:"'\xed dag kl.' p",tomorrow:"'\xe1 morgun kl.' p",nextWeek:"dddd 'kl.' p",other:"P"},Va={code:"is",formatDistance:Fa,formatLong:Ha,formatRelative:function(t,e,n,r){return Ba[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["fyrir Krist","eftir Krist"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1F","2F","3F","4F"],wide:["1. fj\xf3r\xf0ungur","2. fj\xf3r\xf0ungur","3. fj\xf3r\xf0ungur","4. fj\xf3r\xf0ungur"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","\xc1","S","\xd3","N","D"],abbreviated:["jan.","feb.","mars","apr\xedl","ma\xed","j\xfan\xed","j\xfal\xed","\xe1g\xfast","sept.","okt.","n\xf3v.","des."],wide:["jan\xfaar","febr\xfaar","mars","apr\xedl","ma\xed","j\xfan\xed","j\xfal\xed","\xe1g\xfast","september","okt\xf3ber","n\xf3vember","desember"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","\xde","M","F","F","L"],short:["Su","M\xe1","\xder","Mi","Fi","F\xf6","La"],abbreviated:["sun.","m\xe1n.","\xferi.","mi\xf0.","fim.","f\xf6s.","lau."],wide:["sunnudagur","m\xe1nudagur","\xferi\xf0judagur","mi\xf0vikudagur","fimmtudagur","f\xf6studagur","laugardagur"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"f",pm:"e",midnight:"mi\xf0n\xe6tti",noon:"h\xe1degi",morning:"morgunn",afternoon:"s\xed\xf0degi",evening:"kv\xf6ld",night:"n\xf3tt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"mi\xf0n\xe6tti",noon:"h\xe1degi",morning:"morgunn",afternoon:"s\xed\xf0degi",evening:"kv\xf6ld",night:"n\xf3tt"},wide:{am:"fyrir h\xe1degi",pm:"eftir h\xe1degi",midnight:"mi\xf0n\xe6tti",noon:"h\xe1degi",morning:"morgunn",afternoon:"s\xed\xf0degi",evening:"kv\xf6ld",night:"n\xf3tt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"f",pm:"e",midnight:"\xe1 mi\xf0n\xe6tti",noon:"\xe1 h\xe1degi",morning:"a\xf0 morgni",afternoon:"s\xed\xf0degis",evening:"um kv\xf6ld",night:"um n\xf3tt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"\xe1 mi\xf0n\xe6tti",noon:"\xe1 h\xe1degi",morning:"a\xf0 morgni",afternoon:"s\xed\xf0degis",evening:"um kv\xf6ld",night:"um n\xf3tt"},wide:{am:"fyrir h\xe1degi",pm:"eftir h\xe1degi",midnight:"\xe1 mi\xf0n\xe6tti",noon:"\xe1 h\xe1degi",morning:"a\xf0 morgni",afternoon:"s\xed\xf0degis",evening:"um kv\xf6ld",night:"um n\xf3tt"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+(\.)?/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fj\xf3r\xf0ungur/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfm\xe1s\xf3nd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apr\xedl\.|ma\xed|j\xfan\xed|j\xfal\xed|\xe1gust|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febr\xfaar|mars|apr\xedl|ma\xed|j\xfan\xed|j\xfal\xed|\xe1gust|september|okt\xf3ber|n\xf3vember|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^\xe1/i,/^s/i,/^\xf3/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^ma\xed/i,/^j\xfan/i,/^j\xfal/i,/^\xe1u/i,/^s/i,/^\xf3/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|m\xe1|\xfer|mi|fi|f\xf6|la)/i,abbreviated:/^(sun|m\xe1n|\xferi|mi\xf0|fim|f\xf6s|lau)\.?/i,wide:/^(sunnudagur|m\xe1nudagur|\xferi\xf0judagur|mi\xf0vikudagur|fimmtudagur|f\xf6studagur|laugardagur)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^\xfe/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^m\xe1/i,/^\xfer/i,/^mi/i,/^fi/i,/^f\xf6/i,/^la/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(f|e|s\xed\xf0degis|(\xe1|a\xf0|um) (morgni|kv\xf6ld|n\xf3tt|mi\xf0n\xe6tti))/i,any:/^(fyrir h\xe1degi|eftir h\xe1degi|[ef]\.?h\.?|s\xed\xf0degis|morgunn|(\xe1|a\xf0|um) (morgni|kv\xf6ld|n\xf3tt|mi\xf0n\xe6tti))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^h\xe1/i,morning:/morgunn/i,afternoon:/s\xed\xf0degi/i,evening:/kv\xf6ld/i,night:/n\xf3tt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},qa={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"pi\xf9 di un anno",other:"pi\xf9 di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},Ya=function(t,e,n){var r,i=qa[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r},Ua={date:U({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ga=["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"];function Xa(t){return"'"+Ga[t]+" alle' p"}var Ja={lastWeek:function(t,e,n){var r=t.getUTCDay();return be(t,e,n)?Xa(r):function(t){return 0===t?"'domenica scorsa alle' p":"'"+Ga[t]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,e,n){var r=t.getUTCDay();return be(t,e,n)?Xa(r):function(t){return 0===t?"'domenica prossima alle' p":"'"+Ga[t]+" prossimo alle' p"}(r)},other:"P"},Ka=function(t,e,n,r){var i=Ja[t];return"function"===typeof i?i(e,n,r):i},$a={ordinalNumber:function(t,e){var n=Number(t);return String(n)},era:K({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},Qa={ordinalNumber:Z({matchPattern:/^(\d+)(\xba)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|\xec]|marted[i|\xec]|mercoled[i|\xec]|gioved[i|\xec]|venerd[i|\xec]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},Za={code:"it",formatDistance:Ya,formatLong:Ua,formatRelative:Ka,localize:$a,match:Qa,options:{weekStartsOn:1,firstWeekContainsDate:4}},ts={code:"it-CH",formatDistance:Ya,formatLong:{date:U({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},formatRelative:Ka,localize:$a,match:Qa,options:{weekStartsOn:1,firstWeekContainsDate:4}},es={lessThanXSeconds:{one:"1\u79d2\u672a\u6e80",other:"{{count}}\u79d2\u672a\u6e80",oneWithSuffix:"\u7d041\u79d2",otherWithSuffix:"\u7d04{{count}}\u79d2"},xSeconds:{one:"1\u79d2",other:"{{count}}\u79d2"},halfAMinute:"30\u79d2",lessThanXMinutes:{one:"1\u5206\u672a\u6e80",other:"{{count}}\u5206\u672a\u6e80",oneWithSuffix:"\u7d041\u5206",otherWithSuffix:"\u7d04{{count}}\u5206"},xMinutes:{one:"1\u5206",other:"{{count}}\u5206"},aboutXHours:{one:"\u7d041\u6642\u9593",other:"\u7d04{{count}}\u6642\u9593"},xHours:{one:"1\u6642\u9593",other:"{{count}}\u6642\u9593"},xDays:{one:"1\u65e5",other:"{{count}}\u65e5"},aboutXWeeks:{one:"\u7d041\u9031\u9593",other:"\u7d04{{count}}\u9031\u9593"},xWeeks:{one:"1\u9031\u9593",other:"{{count}}\u9031\u9593"},aboutXMonths:{one:"\u7d041\u304b\u6708",other:"\u7d04{{count}}\u304b\u6708"},xMonths:{one:"1\u304b\u6708",other:"{{count}}\u304b\u6708"},aboutXYears:{one:"\u7d041\u5e74",other:"\u7d04{{count}}\u5e74"},xYears:{one:"1\u5e74",other:"{{count}}\u5e74"},overXYears:{one:"1\u5e74\u4ee5\u4e0a",other:"{{count}}\u5e74\u4ee5\u4e0a"},almostXYears:{one:"1\u5e74\u8fd1\u304f",other:"{{count}}\u5e74\u8fd1\u304f"}},ns=function(t,e,n){var r;n=n||{};var i=es[t];return r="string"===typeof i?i:1===e?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),n.addSuffix?n.comparison&&n.comparison>0?r+"\u5f8c":r+"\u524d":r},rs={date:U({formats:{full:"y\u5e74M\u6708d\u65e5EEEE",long:"y\u5e74M\u6708d\u65e5",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:U({formats:{full:"H\u6642mm\u5206ss\u79d2 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},is={lastWeek:"\u5148\u9031\u306eeeee\u306ep",yesterday:"\u6628\u65e5\u306ep",today:"\u4eca\u65e5\u306ep",tomorrow:"\u660e\u65e5\u306ep",nextWeek:"\u7fcc\u9031\u306eeeee\u306ep",other:"P"},os={code:"ja",formatDistance:ns,formatLong:rs,formatRelative:function(t,e,n,r){return is[t]},localize:{ordinalNumber:function(t,e){var n=Number(t);switch(String(null===e||void 0===e?void 0:e.unit)){case"year":return"".concat(n,"\u5e74");case"quarter":return"\u7b2c".concat(n,"\u56db\u534a\u671f");case"month":return"".concat(n,"\u6708");case"week":return"\u7b2c".concat(n,"\u9031");case"date":return"".concat(n,"\u65e5");case"hour":return"".concat(n,"\u6642");case"minute":return"".concat(n,"\u5206");case"second":return"".concat(n,"\u79d2");default:return"".concat(n)}},era:K({values:{narrow:["BC","AC"],abbreviated:["\u7d00\u5143\u524d","\u897f\u66a6"],wide:["\u7d00\u5143\u524d","\u897f\u66a6"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["\u7b2c1\u56db\u534a\u671f","\u7b2c2\u56db\u534a\u671f","\u7b2c3\u56db\u534a\u671f","\u7b2c4\u56db\u534a\u671f"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:K({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],short:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],abbreviated:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],wide:["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},abbreviated:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},wide:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},abbreviated:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},wide:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^\u7b2c?\d+(\u5e74|\u56db\u534a\u671f|\u6708|\u9031|\u65e5|\u6642|\u5206|\u79d2)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(\u7d00\u5143[\u524d\u5f8c]|\u897f\u66a6)/i,wide:/^(\u7d00\u5143[\u524d\u5f8c]|\u897f\u66a6)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(\u7d00\u5143\u524d)/i,/^(\u897f\u66a6|\u7d00\u5143\u5f8c)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^\u7b2c[1234\u4e00\u4e8c\u4e09\u56db\uff11\uff12\uff13\uff14]\u56db\u534a\u671f/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00|\uff11)/i,/(2|\u4e8c|\uff12)/i,/(3|\u4e09|\uff13)/i,/(4|\u56db|\uff14)/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])\u6708/i,wide:/^([123456789]|1[012])\u6708/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]/,short:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]/,abbreviated:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]/,wide:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]\u66dc\u65e5/},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u65e5/,/^\u6708/,/^\u706b/,/^\u6c34/,/^\u6728/,/^\u91d1/,/^\u571f/]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(AM|PM|\u5348\u524d|\u5348\u5f8c|\u6b63\u5348|\u6df1\u591c|\u771f\u591c\u4e2d|\u591c|\u671d)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|\u5348\u524d)/i,pm:/^(P|\u5348\u5f8c)/i,midnight:/^\u6df1\u591c|\u771f\u591c\u4e2d/i,noon:/^\u6b63\u5348/i,morning:/^\u671d/i,afternoon:/^\u5348\u5f8c/i,evening:/^\u591c/i,night:/^\u6df1\u591c/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},as={lessThanXSeconds:{one:"1\u3073\u3087\u3046\u307f\u307e\u3093",other:"{{count}}\u3073\u3087\u3046\u307f\u307e\u3093",oneWithSuffix:"\u3084\u304f1\u3073\u3087\u3046",otherWithSuffix:"\u3084\u304f{{count}}\u3073\u3087\u3046"},xSeconds:{one:"1\u3073\u3087\u3046",other:"{{count}}\u3073\u3087\u3046"},halfAMinute:"30\u3073\u3087\u3046",lessThanXMinutes:{one:"1\u3077\u3093\u307f\u307e\u3093",other:"{{count}}\u3075\u3093\u307f\u307e\u3093",oneWithSuffix:"\u3084\u304f1\u3077\u3093",otherWithSuffix:"\u3084\u304f{{count}}\u3075\u3093"},xMinutes:{one:"1\u3077\u3093",other:"{{count}}\u3075\u3093"},aboutXHours:{one:"\u3084\u304f1\u3058\u304b\u3093",other:"\u3084\u304f{{count}}\u3058\u304b\u3093"},xHours:{one:"1\u3058\u304b\u3093",other:"{{count}}\u3058\u304b\u3093"},xDays:{one:"1\u306b\u3061",other:"{{count}}\u306b\u3061"},aboutXWeeks:{one:"\u3084\u304f1\u3057\u3085\u3046\u304b\u3093",other:"\u3084\u304f{{count}}\u3057\u3085\u3046\u304b\u3093"},xWeeks:{one:"1\u3057\u3085\u3046\u304b\u3093",other:"{{count}}\u3057\u3085\u3046\u304b\u3093"},aboutXMonths:{one:"\u3084\u304f1\u304b\u3052\u3064",other:"\u3084\u304f{{count}}\u304b\u3052\u3064"},xMonths:{one:"1\u304b\u3052\u3064",other:"{{count}}\u304b\u3052\u3064"},aboutXYears:{one:"\u3084\u304f1\u306d\u3093",other:"\u3084\u304f{{count}}\u306d\u3093"},xYears:{one:"1\u306d\u3093",other:"{{count}}\u306d\u3093"},overXYears:{one:"1\u306d\u3093\u3044\u3058\u3087\u3046",other:"{{count}}\u306d\u3093\u3044\u3058\u3087\u3046"},almostXYears:{one:"1\u306d\u3093\u3061\u304b\u304f",other:"{{count}}\u306d\u3093\u3061\u304b\u304f"}},ss=function(t,e,n){var r;n=n||{};var i=as[t];return r="string"===typeof i?i:1===e?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),n.addSuffix?n.comparison&&n.comparison>0?r+"\u3042\u3068":r+"\u307e\u3048":r},ls={date:U({formats:{full:"y\u306d\u3093M\u304c\u3064d\u306b\u3061EEEE",long:"y\u306d\u3093M\u304c\u3064d\u306b\u3061",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:U({formats:{full:"H\u3058mm\u3075\u3093ss\u3073\u3087\u3046 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},us={lastWeek:"\u305b\u3093\u3057\u3085\u3046\u306eeeee\u306ep",yesterday:"\u304d\u306e\u3046\u306ep",today:"\u304d\u3087\u3046\u306ep",tomorrow:"\u3042\u3057\u305f\u306ep",nextWeek:"\u3088\u304f\u3057\u3085\u3046\u306eeeee\u306ep",other:"P"},cs={code:"ja-Hira",formatDistance:ss,formatLong:ls,formatRelative:function(t,e,n,r){return us[t]},localize:{ordinalNumber:function(t,e){var n=Number(t);switch(String(null===e||void 0===e?void 0:e.unit)){case"year":return"".concat(n,"\u306d\u3093");case"quarter":return"\u3060\u3044".concat(n,"\u3057\u306f\u3093\u304d");case"month":return"".concat(n,"\u304c\u3064");case"week":return"\u3060\u3044".concat(n,"\u3057\u3085\u3046");case"date":return"".concat(n,"\u306b\u3061");case"hour":return"".concat(n,"\u3058");case"minute":return"".concat(n,"\u3075\u3093");case"second":return"".concat(n,"\u3073\u3087\u3046");default:return"".concat(n)}},era:K({values:{narrow:["BC","AC"],abbreviated:["\u304d\u3052\u3093\u305c\u3093","\u305b\u3044\u308c\u304d"],wide:["\u304d\u3052\u3093\u305c\u3093","\u305b\u3044\u308c\u304d"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["\u3060\u30441\u3057\u306f\u3093\u304d","\u3060\u30442\u3057\u306f\u3093\u304d","\u3060\u30443\u3057\u306f\u3093\u304d","\u3060\u30444\u3057\u306f\u3093\u304d"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:K({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1\u304c\u3064","2\u304c\u3064","3\u304c\u3064","4\u304c\u3064","5\u304c\u3064","6\u304c\u3064","7\u304c\u3064","8\u304c\u3064","9\u304c\u3064","10\u304c\u3064","11\u304c\u3064","12\u304c\u3064"],wide:["1\u304c\u3064","2\u304c\u3064","3\u304c\u3064","4\u304c\u3064","5\u304c\u3064","6\u304c\u3064","7\u304c\u3064","8\u304c\u3064","9\u304c\u3064","10\u304c\u3064","11\u304c\u3064","12\u304c\u3064"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u306b\u3061","\u3052\u3064","\u304b","\u3059\u3044","\u3082\u304f","\u304d\u3093","\u3069"],short:["\u306b\u3061","\u3052\u3064","\u304b","\u3059\u3044","\u3082\u304f","\u304d\u3093","\u3069"],abbreviated:["\u306b\u3061","\u3052\u3064","\u304b","\u3059\u3044","\u3082\u304f","\u304d\u3093","\u3069"],wide:["\u306b\u3061\u3088\u3046\u3073","\u3052\u3064\u3088\u3046\u3073","\u304b\u3088\u3046\u3073","\u3059\u3044\u3088\u3046\u3073","\u3082\u304f\u3088\u3046\u3073","\u304d\u3093\u3088\u3046\u3073","\u3069\u3088\u3046\u3073"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u3054\u305c\u3093",pm:"\u3054\u3054",midnight:"\u3057\u3093\u3084",noon:"\u3057\u3087\u3046\u3054",morning:"\u3042\u3055",afternoon:"\u3054\u3054",evening:"\u3088\u308b",night:"\u3057\u3093\u3084"},abbreviated:{am:"\u3054\u305c\u3093",pm:"\u3054\u3054",midnight:"\u3057\u3093\u3084",noon:"\u3057\u3087\u3046\u3054",morning:"\u3042\u3055",afternoon:"\u3054\u3054",evening:"\u3088\u308b",night:"\u3057\u3093\u3084"},wide:{am:"\u3054\u305c\u3093",pm:"\u3054\u3054",midnight:"\u3057\u3093\u3084",noon:"\u3057\u3087\u3046\u3054",morning:"\u3042\u3055",afternoon:"\u3054\u3054",evening:"\u3088\u308b",night:"\u3057\u3093\u3084"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u3054\u305c\u3093",pm:"\u3054\u3054",midnight:"\u3057\u3093\u3084",noon:"\u3057\u3087\u3046\u3054",morning:"\u3042\u3055",afternoon:"\u3054\u3054",evening:"\u3088\u308b",night:"\u3057\u3093\u3084"},abbreviated:{am:"\u3054\u305c\u3093",pm:"\u3054\u3054",midnight:"\u3057\u3093\u3084",noon:"\u3057\u3087\u3046\u3054",morning:"\u3042\u3055",afternoon:"\u3054\u3054",evening:"\u3088\u308b",night:"\u3057\u3093\u3084"},wide:{am:"\u3054\u305c\u3093",pm:"\u3054\u3054",midnight:"\u3057\u3093\u3084",noon:"\u3057\u3087\u3046\u3054",morning:"\u3042\u3055",afternoon:"\u3054\u3054",evening:"\u3088\u308b",night:"\u3057\u3093\u3084"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^\u3060?\u3044?\d+(\u306d\u3093|\u3057\u306f\u3093\u304d|\u304c\u3064|\u3057\u3085\u3046|\u306b\u3061|\u3058|\u3075\u3093|\u3073\u3087\u3046)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(\u304d\u3052\u3093[\u524d\u5f8c]|\u305b\u3044\u308c\u304d)/i,wide:/^(\u304d\u3052\u3093[\u524d\u5f8c]|\u305b\u3044\u308c\u304d)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(\u304d\u3052\u3093\u305c\u3093)/i,/^(\u305b\u3044\u308c\u304d|\u304d\u3052\u3093\u3054)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^\u3060\u3044[1234\u4e00\u4e8c\u4e09\u56db\uff11\uff12\uff13\uff14]\u3057\u306f\u3093\u304d/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00|\uff11)/i,/(2|\u4e8c|\uff12)/i,/(3|\u4e09|\uff13)/i,/(4|\u56db|\uff14)/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])\u304c\u3064/i,wide:/^([123456789]|1[012])\u304c\u3064/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u306b\u3061|\u3052\u3064|\u304b|\u3059\u3044|\u3082\u304f|\u304d\u3093|\u3069)/,short:/^(\u306b\u3061|\u3052\u3064|\u304b|\u3059\u3044|\u3082\u304f|\u304d\u3093|\u3069)/,abbreviated:/^(\u306b\u3061|\u3052\u3064|\u304b|\u3059\u3044|\u3082\u304f|\u304d\u3093|\u3069)/,wide:/^(\u306b\u3061|\u3052\u3064|\u304b|\u3059\u3044|\u3082\u304f|\u304d\u3093|\u3069)\u3088\u3046\u3073/},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u306b\u3061/,/^\u3052\u3064/,/^\u304b/,/^\u3059\u3044/,/^\u3082\u304f/,/^\u304d\u3093/,/^\u3069/]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(AM|PM|\u3054\u305c\u3093|\u3054\u3054|\u3057\u3087\u3046\u3054|\u3057\u3093\u3084|\u307e\u3088\u306a\u304b|\u3088\u308b|\u3042\u3055)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|\u3054\u305c\u3093)/i,pm:/^(P|\u3054\u3054)/i,midnight:/^\u3057\u3093\u3084|\u307e\u3088\u306a\u304b/i,noon:/^\u3057\u3087\u3046\u3054/i,morning:/^\u3042\u3055/i,afternoon:/^\u3054\u3054/i,evening:/^\u3088\u308b/i,night:/^\u3057\u3093\u3084/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},ds={lessThanXSeconds:{past:"{{count}} \u10ec\u10d0\u10db\u10d6\u10d4 \u10dc\u10d0\u10d9\u10da\u10d4\u10d1\u10d8 \u10ee\u10dc\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"{{count}} \u10ec\u10d0\u10db\u10d6\u10d4 \u10dc\u10d0\u10d9\u10da\u10d4\u10d1\u10d8",future:"{{count}} \u10ec\u10d0\u10db\u10d6\u10d4 \u10dc\u10d0\u10d9\u10da\u10d4\u10d1\u10e8\u10d8"},xSeconds:{past:"{{count}} \u10ec\u10d0\u10db\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"{{count}} \u10ec\u10d0\u10db\u10d8",future:"{{count}} \u10ec\u10d0\u10db\u10e8\u10d8"},halfAMinute:{past:"\u10dc\u10d0\u10ee\u10d4\u10d5\u10d0\u10e0\u10d8 \u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"\u10dc\u10d0\u10ee\u10d4\u10d5\u10d0\u10e0\u10d8 \u10ec\u10e3\u10d7\u10d8",future:"\u10dc\u10d0\u10ee\u10d4\u10d5\u10d0\u10e0\u10d8 \u10ec\u10e3\u10d7\u10e8\u10d8"},lessThanXMinutes:{past:"{{count}} \u10ec\u10e3\u10d7\u10d6\u10d4 \u10dc\u10d0\u10d9\u10da\u10d4\u10d1\u10d8 \u10ee\u10dc\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"{{count}} \u10ec\u10e3\u10d7\u10d6\u10d4 \u10dc\u10d0\u10d9\u10da\u10d4\u10d1\u10d8",future:"{{count}} \u10ec\u10e3\u10d7\u10d6\u10d4 \u10dc\u10d0\u10d9\u10da\u10d4\u10d1\u10e8\u10d8"},xMinutes:{past:"{{count}} \u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"{{count}} \u10ec\u10e3\u10d7\u10d8",future:"{{count}} \u10ec\u10e3\u10d7\u10e8\u10d8"},aboutXHours:{past:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10e1\u10d0\u10d0\u10d7\u10d8",future:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10e1\u10d0\u10d0\u10d7\u10e8\u10d8"},xHours:{past:"{{count}} \u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"{{count}} \u10e1\u10d0\u10d0\u10d7\u10d8",future:"{{count}} \u10e1\u10d0\u10d0\u10d7\u10e8\u10d8"},xDays:{past:"{{count}} \u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"{{count}} \u10d3\u10e6\u10d4",future:"{{count}} \u10d3\u10e6\u10d4\u10e8\u10d8"},aboutXWeeks:{past:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10d9\u10d5\u10d8\u10e0\u10d0\u10e1 \u10ec\u10d8\u10dc",present:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10d9\u10d5\u10d8\u10e0\u10d0",future:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10d9\u10d5\u10d8\u10e0\u10d0\u10e8\u10d8"},xWeeks:{past:"{{count}} \u10d9\u10d5\u10d8\u10e0\u10d0\u10e1 \u10d9\u10d5\u10d8\u10e0\u10d0",present:"{{count}} \u10d9\u10d5\u10d8\u10e0\u10d0",future:"{{count}} \u10d9\u10d5\u10d8\u10e0\u10d0\u10e8\u10d8"},aboutXMonths:{past:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10d7\u10d5\u10d4",future:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10d7\u10d5\u10d4\u10e8\u10d8"},xMonths:{past:"{{count}} \u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"{{count}} \u10d7\u10d5\u10d4",future:"{{count}} \u10d7\u10d5\u10d4\u10e8\u10d8"},aboutXYears:{past:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10ec\u10d4\u10da\u10d8",future:"\u10d3\u10d0\u10d0\u10ee\u10da\u10dd\u10d4\u10d1\u10d8\u10d7 {{count}} \u10ec\u10d4\u10da\u10e8\u10d8"},xYears:{past:"{{count}} \u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"{{count}} \u10ec\u10d4\u10da\u10d8",future:"{{count}} \u10ec\u10d4\u10da\u10e8\u10d8"},overXYears:{past:"{{count}} \u10ec\u10d4\u10da\u10d6\u10d4 \u10db\u10d4\u10e2\u10d8 \u10ee\u10dc\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"{{count}} \u10ec\u10d4\u10da\u10d6\u10d4 \u10db\u10d4\u10e2\u10d8",future:"{{count}} \u10ec\u10d4\u10da\u10d6\u10d4 \u10db\u10d4\u10e2\u10d8 \u10ee\u10dc\u10d8\u10e1 \u10e8\u10d4\u10db\u10d3\u10d4\u10d2"},almostXYears:{past:"\u10d7\u10d8\u10d7\u10e5\u10db\u10d8\u10e1 {{count}} \u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc",present:"\u10d7\u10d8\u10d7\u10e5\u10db\u10d8\u10e1 {{count}} \u10ec\u10d4\u10da\u10d8",future:"\u10d7\u10d8\u10d7\u10e5\u10db\u10d8\u10e1 {{count}} \u10ec\u10d4\u10da\u10e8\u10d8"}},hs=function(t,e,n){var r=ds[t];return"string"===typeof r?r:null!==n&&void 0!==n&&n.addSuffix&&n.comparison&&n.comparison>0?r.future.replace("{{count}}",String(e)):null!==n&&void 0!==n&&n.addSuffix?r.past.replace("{{count}}",String(e)):r.present.replace("{{count}}",String(e))},fs={date:U({formats:{full:"EEEE, do MMMM, y",long:"do, MMMM, y",medium:"d, MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}'-\u10d6\u10d4'",long:"{{date}} {{time}}'-\u10d6\u10d4'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ps={lastWeek:"'\u10ec\u10d8\u10dc\u10d0' eeee p'-\u10d6\u10d4'",yesterday:"'\u10d2\u10e3\u10e8\u10d8\u10dc' p'-\u10d6\u10d4'",today:"'\u10d3\u10e6\u10d4\u10e1' p'-\u10d6\u10d4'",tomorrow:"'\u10ee\u10d5\u10d0\u10da' p'-\u10d6\u10d4'",nextWeek:"'\u10e8\u10d4\u10db\u10d3\u10d4\u10d2\u10d8' eeee p'-\u10d6\u10d4'",other:"P"},ms={code:"ka",formatDistance:hs,formatLong:fs,formatRelative:function(t,e,n,r){return ps[t]},localize:{ordinalNumber:function(t){var e=Number(t);return 1===e?e+"-\u10da\u10d8":e+"-\u10d4"},era:K({values:{narrow:["\u10e9.\u10ec-\u10db\u10d3\u10d4","\u10e9.\u10ec"],abbreviated:["\u10e9\u10d5.\u10ec-\u10db\u10d3\u10d4","\u10e9\u10d5.\u10ec"],wide:["\u10e9\u10d5\u10d4\u10dc\u10e1 \u10ec\u10d4\u10da\u10d7\u10d0\u10e6\u10e0\u10d8\u10ea\u10ee\u10d5\u10d0\u10db\u10d3\u10d4","\u10e9\u10d5\u10d4\u10dc\u10d8 \u10ec\u10d4\u10da\u10d7\u10d0\u10e6\u10e0\u10d8\u10ea\u10ee\u10d5\u10d8\u10d7"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1-\u10da\u10d8 \u10d9\u10d5","2-\u10d4 \u10d9\u10d5","3-\u10d4 \u10d9\u10d5","4-\u10d4 \u10d9\u10d5"],wide:["1-\u10da\u10d8 \u10d9\u10d5\u10d0\u10e0\u10e2\u10d0\u10da\u10d8","2-\u10d4 \u10d9\u10d5\u10d0\u10e0\u10e2\u10d0\u10da\u10d8","3-\u10d4 \u10d9\u10d5\u10d0\u10e0\u10e2\u10d0\u10da\u10d8","4-\u10d4 \u10d9\u10d5\u10d0\u10e0\u10e2\u10d0\u10da\u10d8"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u10d8\u10d0","\u10d7\u10d4","\u10db\u10d0","\u10d0\u10de","\u10db\u10e1","\u10d5\u10dc","\u10d5\u10da","\u10d0\u10d2","\u10e1\u10d4","\u10dd\u10e5","\u10dc\u10dd","\u10d3\u10d4"],abbreviated:["\u10d8\u10d0\u10dc","\u10d7\u10d4\u10d1","\u10db\u10d0\u10e0","\u10d0\u10de\u10e0","\u10db\u10d0\u10d8","\u10d8\u10d5\u10dc","\u10d8\u10d5\u10da","\u10d0\u10d2\u10d5","\u10e1\u10d4\u10e5","\u10dd\u10e5\u10e2","\u10dc\u10dd\u10d4","\u10d3\u10d4\u10d9"],wide:["\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8","\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8","\u10db\u10d0\u10e0\u10e2\u10d8","\u10d0\u10de\u10e0\u10d8\u10da\u10d8","\u10db\u10d0\u10d8\u10e1\u10d8","\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8","\u10d8\u10d5\u10da\u10d8\u10e1\u10d8","\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd","\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8","\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8","\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8","\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u10d9\u10d5","\u10dd\u10e0","\u10e1\u10d0","\u10dd\u10d7","\u10ee\u10e3","\u10de\u10d0","\u10e8\u10d0"],short:["\u10d9\u10d5\u10d8","\u10dd\u10e0\u10e8","\u10e1\u10d0\u10db","\u10dd\u10d7\u10ee","\u10ee\u10e3\u10d7","\u10de\u10d0\u10e0","\u10e8\u10d0\u10d1"],abbreviated:["\u10d9\u10d5\u10d8","\u10dd\u10e0\u10e8","\u10e1\u10d0\u10db","\u10dd\u10d7\u10ee","\u10ee\u10e3\u10d7","\u10de\u10d0\u10e0","\u10e8\u10d0\u10d1"],wide:["\u10d9\u10d5\u10d8\u10e0\u10d0","\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8","\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8","\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8","\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8","\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8","\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"\u10e8\u10e3\u10d0\u10e6\u10d0\u10db\u10d4",noon:"\u10e8\u10e3\u10d0\u10d3\u10e6\u10d4",morning:"\u10d3\u10d8\u10da\u10d0",afternoon:"\u10e1\u10d0\u10e6\u10d0\u10db\u10dd",evening:"\u10e1\u10d0\u10e6\u10d0\u10db\u10dd",night:"\u10e6\u10d0\u10db\u10d4"},abbreviated:{am:"AM",pm:"PM",midnight:"\u10e8\u10e3\u10d0\u10e6\u10d0\u10db\u10d4",noon:"\u10e8\u10e3\u10d0\u10d3\u10e6\u10d4",morning:"\u10d3\u10d8\u10da\u10d0",afternoon:"\u10e1\u10d0\u10e6\u10d0\u10db\u10dd",evening:"\u10e1\u10d0\u10e6\u10d0\u10db\u10dd",night:"\u10e6\u10d0\u10db\u10d4"},wide:{am:"a.m.",pm:"p.m.",midnight:"\u10e8\u10e3\u10d0\u10e6\u10d0\u10db\u10d4",noon:"\u10e8\u10e3\u10d0\u10d3\u10e6\u10d4",morning:"\u10d3\u10d8\u10da\u10d0",afternoon:"\u10e1\u10d0\u10e6\u10d0\u10db\u10dd",evening:"\u10e1\u10d0\u10e6\u10d0\u10db\u10dd",night:"\u10e6\u10d0\u10db\u10d4"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"\u10e8\u10e3\u10d0\u10e6\u10d0\u10db\u10d8\u10d7",noon:"\u10e8\u10e3\u10d0\u10d3\u10e6\u10d8\u10e1\u10d0\u10e1",morning:"\u10d3\u10d8\u10da\u10d8\u10d7",afternoon:"\u10dc\u10d0\u10e8\u10e3\u10d0\u10d3\u10e6\u10d4\u10d5\u10e1",evening:"\u10e1\u10d0\u10e6\u10d0\u10db\u10dd\u10e1",night:"\u10e6\u10d0\u10db\u10d8\u10d7"},abbreviated:{am:"AM",pm:"PM",midnight:"\u10e8\u10e3\u10d0\u10e6\u10d0\u10db\u10d8\u10d7",noon:"\u10e8\u10e3\u10d0\u10d3\u10e6\u10d8\u10e1\u10d0\u10e1",morning:"\u10d3\u10d8\u10da\u10d8\u10d7",afternoon:"\u10dc\u10d0\u10e8\u10e3\u10d0\u10d3\u10e6\u10d4\u10d5\u10e1",evening:"\u10e1\u10d0\u10e6\u10d0\u10db\u10dd\u10e1",night:"\u10e6\u10d0\u10db\u10d8\u10d7"},wide:{am:"a.m.",pm:"p.m.",midnight:"\u10e8\u10e3\u10d0\u10e6\u10d0\u10db\u10d8\u10d7",noon:"\u10e8\u10e3\u10d0\u10d3\u10e6\u10d8\u10e1\u10d0\u10e1",morning:"\u10d3\u10d8\u10da\u10d8\u10d7",afternoon:"\u10dc\u10d0\u10e8\u10e3\u10d0\u10d3\u10e6\u10d4\u10d5\u10e1",evening:"\u10e1\u10d0\u10e6\u10d0\u10db\u10dd\u10e1",night:"\u10e6\u10d0\u10db\u10d8\u10d7"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-\u10da\u10d8|-\u10d4)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u10e9\u10d5?\.\u10ec)/i,abbreviated:/^(\u10e9\u10d5?\.\u10ec)/i,wide:/^(\u10e9\u10d5\u10d4\u10dc\u10e1 \u10ec\u10d4\u10da\u10d7\u10d0\u10e6\u10e0\u10d8\u10ea\u10ee\u10d5\u10d0\u10db\u10d3\u10d4|\u10e5\u10e0\u10d8\u10e1\u10e2\u10d4\u10e8\u10dd\u10d1\u10d0\u10db\u10d3\u10d4|\u10e9\u10d5\u10d4\u10dc\u10d8 \u10ec\u10d4\u10da\u10d7\u10d0\u10e6\u10e0\u10d8\u10ea\u10ee\u10d5\u10d8\u10d7|\u10e5\u10e0\u10d8\u10e1\u10e2\u10d4\u10e8\u10dd\u10d1\u10d8\u10d3\u10d0\u10dc)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u10e9\u10d5\u10d4\u10dc\u10e1 \u10ec\u10d4\u10da\u10d7\u10d0\u10e6\u10e0\u10d8\u10ea\u10ee\u10d5\u10d0\u10db\u10d3\u10d4|\u10e5\u10e0\u10d8\u10e1\u10e2\u10d4\u10e8\u10dd\u10d1\u10d0\u10db\u10d3\u10d4)/i,/^(\u10e9\u10d5\u10d4\u10dc\u10d8 \u10ec\u10d4\u10da\u10d7\u10d0\u10e6\u10e0\u10d8\u10ea\u10ee\u10d5\u10d8\u10d7|\u10e5\u10e0\u10d8\u10e1\u10e2\u10d4\u10e8\u10dd\u10d1\u10d8\u10d3\u10d0\u10dc)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-(\u10da\u10d8|\u10d4)? \u10d9\u10d5/i,wide:/^[1234]-(\u10da\u10d8|\u10d4)? \u10d9\u10d5\u10d0\u10e0\u10e2\u10d0\u10da\u10d8/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{any:/^(\u10d8\u10d0|\u10d7\u10d4|\u10db\u10d0|\u10d0\u10de|\u10db\u10e1|\u10d5\u10dc|\u10d5\u10da|\u10d0\u10d2|\u10e1\u10d4|\u10dd\u10e5|\u10dc\u10dd|\u10d3\u10d4)/i},defaultMatchWidth:"any",parsePatterns:{any:[/^\u10d8\u10d0/i,/^\u10d7/i,/^\u10db\u10d0\u10e0/i,/^\u10d0\u10de/i,/^\u10db\u10d0\u10d8/i,/^\u10d8?\u10d5\u10dc/i,/^\u10d8?\u10d5\u10da/i,/^\u10d0\u10d2/i,/^\u10e1/i,/^\u10dd/i,/^\u10dc/i,/^\u10d3/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u10d9\u10d5|\u10dd\u10e0|\u10e1\u10d0|\u10dd\u10d7|\u10ee\u10e3|\u10de\u10d0|\u10e8\u10d0)/i,short:/^(\u10d9\u10d5\u10d8|\u10dd\u10e0\u10e8|\u10e1\u10d0\u10db|\u10dd\u10d7\u10ee|\u10ee\u10e3\u10d7|\u10de\u10d0\u10e0|\u10e8\u10d0\u10d1)/i,wide:/^(\u10d9\u10d5\u10d8\u10e0\u10d0|\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8|\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8|\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8|\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8|\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8|\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u10d9\u10d5/i,/^\u10dd\u10e0/i,/^\u10e1\u10d0/i,/^\u10dd\u10d7/i,/^\u10ee\u10e3/i,/^\u10de\u10d0/i,/^\u10e8\u10d0/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^([ap]\.?\s?m\.?|\u10e8\u10e3\u10d0\u10e6|\u10d3\u10d8\u10da)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^\u10e8\u10e3\u10d0\u10e6/i,noon:/^\u10e8\u10e3\u10d0\u10d3\u10e6/i,morning:/^\u10d3\u10d8\u10da/i,afternoon:/\u10dc\u10d0\u10e8\u10e3\u10d0\u10d3\u10e6\u10d4\u10d5\u10e1/i,evening:/\u10e1\u10d0\u10e6\u10d0\u10db\u10dd/i,night:/\u10e6\u10d0\u10db/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},gs={lessThanXSeconds:{regular:{one:"1 \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u0430\u0437",singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u0430\u0437",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u0430\u0437",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u0430\u0437"},future:{one:"\u0431\u0456\u0440 \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d",singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d"}},xSeconds:{regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u0431\u04b1\u0440\u044b\u043d",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u0431\u04b1\u0440\u044b\u043d",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u0431\u04b1\u0440\u044b\u043d"},future:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d"}},halfAMinute:function(t){return null!==t&&void 0!==t&&t.addSuffix?t.comparison&&t.comparison>0?"\u0436\u0430\u0440\u0442\u044b \u043c\u0438\u043d\u0443\u0442 \u0456\u0448\u0456\u043d\u0434\u0435":"\u0436\u0430\u0440\u0442\u044b \u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d":"\u0436\u0430\u0440\u0442\u044b \u043c\u0438\u043d\u0443\u0442"},lessThanXMinutes:{regular:{one:"1 \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u0430\u0437",singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u0430\u0437",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u0430\u0437",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u0430\u0437"},future:{one:"\u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u043a\u0435\u043c ",singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u043a\u0435\u043c",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u043a\u0435\u043c",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u043a\u0435\u043c"}},xMinutes:{regular:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442"},past:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d"},future:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d"}},aboutXHours:{regular:{singularNominative:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0441\u0430\u0493\u0430\u0442",singularGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0441\u0430\u0493\u0430\u0442",pluralGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0441\u0430\u0493\u0430\u0442"},future:{singularNominative:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0441\u0430\u0493\u0430\u0442\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d",singularGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0441\u0430\u0493\u0430\u0442\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d",pluralGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0441\u0430\u0493\u0430\u0442\u0442\u0430\u043d \u043a\u0435\u0439\u0456\u043d"}},xHours:{regular:{singularNominative:"{{count}} \u0441\u0430\u0493\u0430\u0442",singularGenitive:"{{count}} \u0441\u0430\u0493\u0430\u0442",pluralGenitive:"{{count}} \u0441\u0430\u0493\u0430\u0442"}},xDays:{regular:{singularNominative:"{{count}} \u043a\u04af\u043d",singularGenitive:"{{count}} \u043a\u04af\u043d",pluralGenitive:"{{count}} \u043a\u04af\u043d"},future:{singularNominative:"{{count}} \u043a\u04af\u043d\u043d\u0435\u043d \u043a\u0435\u0439\u0456\u043d",singularGenitive:"{{count}} \u043a\u04af\u043d\u043d\u0435\u043d \u043a\u0435\u0439\u0456\u043d",pluralGenitive:"{{count}} \u043a\u04af\u043d\u043d\u0435\u043d \u043a\u0435\u0439\u0456\u043d"}},aboutXWeeks:{type:"weeks",one:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d 1 \u0430\u043f\u0442\u0430",other:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0430\u043f\u0442\u0430"},xWeeks:{type:"weeks",one:"1 \u0430\u043f\u0442\u0430",other:"{{count}} \u0430\u043f\u0442\u0430"},aboutXMonths:{regular:{singularNominative:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0430\u0439",singularGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0430\u0439",pluralGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0430\u0439"},future:{singularNominative:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0430\u0439\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d",singularGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0430\u0439\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d",pluralGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0430\u0439\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d"}},xMonths:{regular:{singularNominative:"{{count}} \u0430\u0439",singularGenitive:"{{count}} \u0430\u0439",pluralGenitive:"{{count}} \u0430\u0439"}},aboutXYears:{regular:{singularNominative:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0436\u044b\u043b",singularGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0436\u044b\u043b",pluralGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0436\u044b\u043b"},future:{singularNominative:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d",singularGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d",pluralGenitive:"\u0448\u0430\u043c\u0430\u043c\u0435\u043d {{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d"}},xYears:{regular:{singularNominative:"{{count}} \u0436\u044b\u043b",singularGenitive:"{{count}} \u0436\u044b\u043b",pluralGenitive:"{{count}} \u0436\u044b\u043b"},future:{singularNominative:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d",singularGenitive:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d",pluralGenitive:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d"}},overXYears:{regular:{singularNominative:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u0430\u0441\u0442\u0430\u043c",singularGenitive:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u0430\u0441\u0442\u0430\u043c",pluralGenitive:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u0430\u0441\u0442\u0430\u043c"},future:{singularNominative:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u0430\u0441\u0442\u0430\u043c",singularGenitive:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u0430\u0441\u0442\u0430\u043c",pluralGenitive:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u0430\u0441\u0442\u0430\u043c"}},almostXYears:{regular:{singularNominative:"{{count}} \u0436\u044b\u043b\u0493\u0430 \u0436\u0430\u049b\u044b\u043d",singularGenitive:"{{count}} \u0436\u044b\u043b\u0493\u0430 \u0436\u0430\u049b\u044b\u043d",pluralGenitive:"{{count}} \u0436\u044b\u043b\u0493\u0430 \u0436\u0430\u049b\u044b\u043d"},future:{singularNominative:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d",singularGenitive:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d",pluralGenitive:"{{count}} \u0436\u044b\u043b\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d"}}};function bs(t,e){if(t.one&&1===e)return t.one;var n=e%10,r=e%100;return 1===n&&11!==r?t.singularNominative.replace("{{count}}",String(e)):n>=2&&n<=4&&(r<10||r>20)?t.singularGenitive.replace("{{count}}",String(e)):t.pluralGenitive.replace("{{count}}",String(e))}var vs=function(t,e,n){var r=gs[t];return"function"===typeof r?r(n):"weeks"===r.type?1===e?r.one:r.other.replace("{{count}}",String(e)):null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r.future?bs(r.future,e):bs(r.regular,e)+" \u043a\u0435\u0439\u0456\u043d":r.past?bs(r.past,e):bs(r.regular,e)+" \u0431\u04b1\u0440\u044b\u043d":bs(r.regular,e)},ys={date:U({formats:{full:"EEEE, do MMMM y '\u0436.'",long:"do MMMM y '\u0436.'",medium:"d MMM y '\u0436.'",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},ws=["\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456\u0434\u0435","\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456\u0434\u0435","\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456\u0434\u0435","\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456\u0434\u0435","\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456\u0434\u0435","\u0436\u04b1\u043c\u0430\u0434\u0430","\u0441\u0435\u043d\u0431\u0456\u0434\u0435"];function ks(t){return"'"+ws[t]+" \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'"}var _s={lastWeek:function(t,e,n){var r=t.getUTCDay();return be(t,e,n)?ks(r):function(t){return"'\u04e9\u0442\u043a\u0435\u043d "+ws[t]+" \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'"}(r)},yesterday:"'\u043a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'",today:"'\u0431\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'",tomorrow:"'\u0435\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'",nextWeek:function(t,e,n){var r=t.getUTCDay();return be(t,e,n)?ks(r):function(t){return"'\u043a\u0435\u043b\u0435\u0441\u0456 "+ws[t]+" \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'"}(r)},other:"P"},Os=function(t,e,n,r){var i=_s[t];return"function"===typeof i?i(e,n,r):i},xs={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"},Es={code:"kk",formatDistance:vs,formatLong:ys,formatRelative:Os,localize:{ordinalNumber:function(t,e){var n=Number(t),r=n>=100?100:null;return n+(xs[n]||xs[n%10]||r&&xs[r]||"")},era:K({values:{narrow:["\u0431.\u0437.\u0434.","\u0431.\u0437."],abbreviated:["\u0431.\u0437.\u0434.","\u0431.\u0437."],wide:["\u0431\u0456\u0437\u0434\u0456\u04a3 \u0437\u0430\u043c\u0430\u043d\u044b\u043c\u044b\u0437\u0493\u0430 \u0434\u0435\u0439\u0456\u043d","\u0431\u0456\u0437\u0434\u0456\u04a3 \u0437\u0430\u043c\u0430\u043d\u044b\u043c\u044b\u0437"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0448\u0456 \u0442\u043e\u049b.","2-\u0448\u0456 \u0442\u043e\u049b.","3-\u0448\u0456 \u0442\u043e\u049b.","4-\u0448\u0456 \u0442\u043e\u049b."],wide:["1-\u0448\u0456 \u0442\u043e\u049b\u0441\u0430\u043d","2-\u0448\u0456 \u0442\u043e\u049b\u0441\u0430\u043d","3-\u0448\u0456 \u0442\u043e\u049b\u0441\u0430\u043d","4-\u0448\u0456 \u0442\u043e\u049b\u0441\u0430\u043d"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u049a","\u0410","\u041d","\u0421","\u041c","\u041c","\u0428","\u0422","\u049a","\u049a","\u049a","\u0416"],abbreviated:["\u049b\u0430\u04a3","\u0430\u049b\u043f","\u043d\u0430\u0443","\u0441\u04d9\u0443","\u043c\u0430\u043c","\u043c\u0430\u0443","\u0448\u0456\u043b","\u0442\u0430\u043c","\u049b\u044b\u0440","\u049b\u0430\u0437","\u049b\u0430\u0440","\u0436\u0435\u043b"],wide:["\u049b\u0430\u04a3\u0442\u0430\u0440","\u0430\u049b\u043f\u0430\u043d","\u043d\u0430\u0443\u0440\u044b\u0437","\u0441\u04d9\u0443\u0456\u0440","\u043c\u0430\u043c\u044b\u0440","\u043c\u0430\u0443\u0441\u044b\u043c","\u0448\u0456\u043b\u0434\u0435","\u0442\u0430\u043c\u044b\u0437","\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a","\u049b\u0430\u0437\u0430\u043d","\u049b\u0430\u0440\u0430\u0448\u0430","\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d"]},defaultWidth:"wide",formattingValues:{narrow:["\u049a","\u0410","\u041d","\u0421","\u041c","\u041c","\u0428","\u0422","\u049a","\u049a","\u049a","\u0416"],abbreviated:["\u049b\u0430\u04a3","\u0430\u049b\u043f","\u043d\u0430\u0443","\u0441\u04d9\u0443","\u043c\u0430\u043c","\u043c\u0430\u0443","\u0448\u0456\u043b","\u0442\u0430\u043c","\u049b\u044b\u0440","\u049b\u0430\u0437","\u049b\u0430\u0440","\u0436\u0435\u043b"],wide:["\u049b\u0430\u04a3\u0442\u0430\u0440","\u0430\u049b\u043f\u0430\u043d","\u043d\u0430\u0443\u0440\u044b\u0437","\u0441\u04d9\u0443\u0456\u0440","\u043c\u0430\u043c\u044b\u0440","\u043c\u0430\u0443\u0441\u044b\u043c","\u0448\u0456\u043b\u0434\u0435","\u0442\u0430\u043c\u044b\u0437","\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a","\u049b\u0430\u0437\u0430\u043d","\u049b\u0430\u0440\u0430\u0448\u0430","\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["\u0416","\u0414","\u0421","\u0421","\u0411","\u0416","\u0421"],short:["\u0436\u0441","\u0434\u0441","\u0441\u0441","\u0441\u0440","\u0431\u0441","\u0436\u043c","\u0441\u0431"],abbreviated:["\u0436\u0441","\u0434\u0441","\u0441\u0441","\u0441\u0440","\u0431\u0441","\u0436\u043c","\u0441\u0431"],wide:["\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456","\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456","\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456","\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456","\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456","\u0436\u04b1\u043c\u0430","\u0441\u0435\u043d\u0431\u0456"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0422\u0414",pm:"\u0422\u041a",midnight:"\u0442\u04af\u043d \u043e\u0440\u0442\u0430\u0441\u044b",noon:"\u0442\u04af\u0441",morning:"\u0442\u0430\u04a3",afternoon:"\u043a\u04af\u043d\u0434\u0456\u0437",evening:"\u043a\u0435\u0448",night:"\u0442\u04af\u043d"},wide:{am:"\u0422\u0414",pm:"\u0422\u041a",midnight:"\u0442\u04af\u043d \u043e\u0440\u0442\u0430\u0441\u044b",noon:"\u0442\u04af\u0441",morning:"\u0442\u0430\u04a3",afternoon:"\u043a\u04af\u043d\u0434\u0456\u0437",evening:"\u043a\u0435\u0448",night:"\u0442\u04af\u043d"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0422\u0414",pm:"\u0422\u041a",midnight:"\u0442\u04af\u043d \u043e\u0440\u0442\u0430\u0441\u044b\u043d\u0434\u0430",noon:"\u0442\u04af\u0441",morning:"\u0442\u0430\u04a3",afternoon:"\u043a\u04af\u043d",evening:"\u043a\u0435\u0448",night:"\u0442\u04af\u043d"},wide:{am:"\u0422\u0414",pm:"\u0422\u041a",midnight:"\u0442\u04af\u043d \u043e\u0440\u0442\u0430\u0441\u044b\u043d\u0434\u0430",noon:"\u0442\u04af\u0441\u0442\u0435",morning:"\u0442\u0430\u04a3\u0435\u0440\u0442\u0435\u04a3",afternoon:"\u043a\u04af\u043d\u0434\u0456\u0437",evening:"\u043a\u0435\u0448\u0442\u0435",night:"\u0442\u04af\u043d\u0434\u0435"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-?(\u0448\u0456|\u0448\u044b))?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^((\u0431 )?\u0437\.?\s?\u0434\.?)/i,abbreviated:/^((\u0431 )?\u0437\.?\s?\u0434\.?)/i,wide:/^(\u0431\u0456\u0437\u0434\u0456\u04a3 \u0437\u0430\u043c\u0430\u043d\u044b\u043c\u044b\u0437\u0493\u0430 \u0434\u0435\u0439\u0456\u043d|\u0431\u0456\u0437\u0434\u0456\u04a3 \u0437\u0430\u043c\u0430\u043d\u044b\u043c\u044b\u0437|\u0431\u0456\u0437\u0434\u0456\u04a3 \u0437\u0430\u043c\u0430\u043d\u044b\u043c\u044b\u0437\u0434\u0430\u043d)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0431/i,/^\u0437/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?\u0448\u0456)? \u0442\u043e\u049b.?/i,wide:/^[1234](-?\u0448\u0456)? \u0442\u043e\u049b\u0441\u0430\u043d/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u049b|\u0430|\u043d|\u0441|\u043c|\u043c\u0430\u0443|\u0448|\u0442|\u049b\u044b\u0440|\u049b\u0430\u0437|\u049b\u0430\u0440|\u0436)/i,abbreviated:/^(\u049b\u0430\u04a3|\u0430\u049b\u043f|\u043d\u0430\u0443|\u0441\u04d9\u0443|\u043c\u0430\u043c|\u043c\u0430\u0443|\u0448\u0456\u043b|\u0442\u0430\u043c|\u049b\u044b\u0440|\u049b\u0430\u0437|\u049b\u0430\u0440|\u0436\u0435\u043b)/i,wide:/^(\u049b\u0430\u04a3\u0442\u0430\u0440|\u0430\u049b\u043f\u0430\u043d|\u043d\u0430\u0443\u0440\u044b\u0437|\u0441\u04d9\u0443\u0456\u0440|\u043c\u0430\u043c\u044b\u0440|\u043c\u0430\u0443\u0441\u044b\u043c|\u0448\u0456\u043b\u0434\u0435|\u0442\u0430\u043c\u044b\u0437|\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a|\u049b\u0430\u0437\u0430\u043d|\u049b\u0430\u0440\u0430\u0448\u0430|\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u049b/i,/^\u0430/i,/^\u043d/i,/^\u0441/i,/^\u043c/i,/^\u043c/i,/^\u0448/i,/^\u0442/i,/^\u049b/i,/^\u049b/i,/^\u049b/i,/^\u0436/i],abbreviated:[/^\u049b\u0430\u04a3/i,/^\u0430\u049b\u043f/i,/^\u043d\u0430\u0443/i,/^\u0441\u04d9\u0443/i,/^\u043c\u0430\u043c/i,/^\u043c\u0430\u0443/i,/^\u0448\u0456\u043b/i,/^\u0442\u0430\u043c/i,/^\u049b\u044b\u0440/i,/^\u049b\u0430\u0437/i,/^\u049b\u0430\u0440/i,/^\u0436\u0435\u043b/i],any:[/^\u049b/i,/^\u0430/i,/^\u043d/i,/^\u0441/i,/^\u043c/i,/^\u043c/i,/^\u0448/i,/^\u0442/i,/^\u049b/i,/^\u049b/i,/^\u049b/i,/^\u0436/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u0436|\u0434|\u0441|\u0441|\u0431|\u0436|\u0441)/i,short:/^(\u0436\u0441|\u0434\u0441|\u0441\u0441|\u0441\u0440|\u0431\u0441|\u0436\u043c|\u0441\u0431)/i,wide:/^(\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456|\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456|\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456|\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456|\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456|\u0436\u04b1\u043c\u0430|\u0441\u0435\u043d\u0431\u0456)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0436/i,/^\u0434/i,/^\u0441/i,/^\u0441/i,/^\u0431/i,/^\u0436/i,/^\u0441/i],short:[/^\u0436\u0441/i,/^\u0434\u0441/i,/^\u0441\u0441/i,/^\u0441\u0440/i,/^\u0431\u0441/i,/^\u0436\u043c/i,/^\u0441\u0431/i],any:[/^\u0436[\u0435\u043a]/i,/^\u0434[\u04af\u0439]/i,/^\u0441e[\u0439]/i,/^\u0441\u04d9[\u0440]/i,/^\u0431[\u0435\u0439]/i,/^\u0436[\u04b1\u043c]/i,/^\u0441\u0435[\u043d]/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^\u0422\.?\s?[\u0414\u041a]\.?|\u0442\u04af\u043d \u043e\u0440\u0442\u0430\u0441\u044b\u043d\u0434\u0430|((\u0442\u04af\u0441\u0442\u0435|\u0442\u0430\u04a3\u0435\u0440\u0442\u0435\u04a3|\u0442\u0430\u04a3\u0434\u0430|\u0442\u0430\u04a3\u0435\u0440\u0442\u0435\u04a3|\u0442\u0430\u04a3\u043c\u0435\u043d|\u0442\u0430\u04a3|\u043a\u04af\u043d\u0434\u0456\u0437|\u043a\u04af\u043d|\u043a\u0435\u0448\u0442\u0435|\u043a\u0435\u0448|\u0442\u04af\u043d\u0434\u0435|\u0442\u04af\u043d)\.?)/i,wide:/^\u0422\.?\s?[\u0414\u041a]\.?|\u0442\u04af\u043d \u043e\u0440\u0442\u0430\u0441\u044b\u043d\u0434\u0430|((\u0442\u04af\u0441\u0442\u0435|\u0442\u0430\u04a3\u0435\u0440\u0442\u0435\u04a3|\u0442\u0430\u04a3\u0434\u0430|\u0442\u0430\u04a3\u0435\u0440\u0442\u0435\u04a3|\u0442\u0430\u04a3\u043c\u0435\u043d|\u0442\u0430\u04a3|\u043a\u04af\u043d\u0434\u0456\u0437|\u043a\u04af\u043d|\u043a\u0435\u0448\u0442\u0435|\u043a\u0435\u0448|\u0442\u04af\u043d\u0434\u0435|\u0442\u04af\u043d)\.?)/i,any:/^\u0422\.?\s?[\u0414\u041a]\.?|\u0442\u04af\u043d \u043e\u0440\u0442\u0430\u0441\u044b\u043d\u0434\u0430|((\u0442\u04af\u0441\u0442\u0435|\u0442\u0430\u04a3\u0435\u0440\u0442\u0435\u04a3|\u0442\u0430\u04a3\u0434\u0430|\u0442\u0430\u04a3\u0435\u0440\u0442\u0435\u04a3|\u0442\u0430\u04a3\u043c\u0435\u043d|\u0442\u0430\u04a3|\u043a\u04af\u043d\u0434\u0456\u0437|\u043a\u04af\u043d|\u043a\u0435\u0448\u0442\u0435|\u043a\u0435\u0448|\u0442\u04af\u043d\u0434\u0435|\u0442\u04af\u043d)\.?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0422\u0414/i,pm:/^\u0422\u041a/i,midnight:/^\u0442\u04af\u043d \u043e\u0440\u0442\u0430/i,noon:/^\u043a\u04af\u043d\u0434\u0456\u0437/i,morning:/\u0442\u0430\u04a3/i,afternoon:/\u0442\u04af\u0441/i,evening:/\u043a\u0435\u0448/i,night:/\u0442\u04af\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},js={lessThanXSeconds:"\u178f\u17b7\u1785\u1787\u17b6\u1784 {{count}} \u179c\u17b7\u1793\u17b6\u1791\u17b8",xSeconds:"{{count}} \u179c\u17b7\u1793\u17b6\u1791\u17b8",halfAMinute:"\u1780\u1793\u17d2\u179b\u17c7\u1793\u17b6\u1791\u17b8",lessThanXMinutes:"\u178f\u17b7\u1785\u1787\u17b6\u1784 {{count}} \u1793\u17b6\u1791\u17b8",xMinutes:"{{count}} \u1793\u17b6\u1791\u17b8",aboutXHours:"\u1794\u17d2\u179a\u17a0\u17c2\u179b {{count}} \u1798\u17c9\u17c4\u1784",xHours:"{{count}} \u1798\u17c9\u17c4\u1784",xDays:"{{count}} \u1790\u17d2\u1784\u17c3",aboutXWeeks:"\u1794\u17d2\u179a\u17a0\u17c2\u179b {{count}} \u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd",xWeeks:"{{count}} \u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd",aboutXMonths:"\u1794\u17d2\u179a\u17a0\u17c2\u179b {{count}} \u1781\u17c2",xMonths:"{{count}} \u1781\u17c2",aboutXYears:"\u1794\u17d2\u179a\u17a0\u17c2\u179b {{count}} \u1786\u17d2\u1793\u17b6\u17c6",xYears:"{{count}} \u1786\u17d2\u1793\u17b6\u17c6",overXYears:"\u1787\u17b6\u1784 {{count}} \u1786\u17d2\u1793\u17b6\u17c6",almostXYears:"\u1787\u17b7\u178f {{count}} \u1786\u17d2\u1793\u17b6\u17c6"},Ss=function(t,e,n){var r=js[t];return"number"===typeof e&&(r=r.replace("{{count}}",e.toString())),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u1780\u17d2\u1793\u17bb\u1784\u179a\u1799\u17c8\u1796\u17c1\u179b "+r:r+"\u1798\u17bb\u1793":r},Ps={date:U({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a",long:"h:mm:ss a",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u1798\u17c9\u17c4\u1784' {{time}}",long:"{{date}} '\u1798\u17c9\u17c4\u1784' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Cs={lastWeek:"'\u1790\u17d2\u1784\u17c3'eeee'\u179f\u200b\u1794\u17d2\u178f\u17b6\u200b\u17a0\u17cd\u200b\u1798\u17bb\u1793\u1798\u17c9\u17c4\u1784' p",yesterday:"'\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789\u1793\u17c5\u1798\u17c9\u17c4\u1784' p",today:"'\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7\u1798\u17c9\u17c4\u1784' p",tomorrow:"'\u1790\u17d2\u1784\u17c3\u179f\u17d2\u17a2\u17c2\u1780\u1798\u17c9\u17c4\u1784' p",nextWeek:"'\u1790\u17d2\u1784\u17c3'eeee'\u179f\u200b\u1794\u17d2\u178f\u17b6\u200b\u17a0\u17cd\u200b\u1780\u17d2\u179a\u17c4\u1799\u1798\u17c9\u17c4\u1784' p",other:"P"},Ts={code:"km",formatDistance:Ss,formatLong:Ps,formatRelative:function(t,e,n,r){return Cs[t]},localize:{ordinalNumber:function(t,e){return Number(t).toString()},era:K({values:{narrow:["\u1798.\u1782\u179f","\u1782\u179f"],abbreviated:["\u1798\u17bb\u1793\u1782.\u179f","\u1782.\u179f"],wide:["\u1798\u17bb\u1793\u1782\u17d2\u179a\u17b7\u179f\u17d2\u178f\u179f\u1780\u179a\u17b6\u1787","\u1793\u17c3\u1782\u17d2\u179a\u17b7\u179f\u17d2\u178f\u179f\u1780\u179a\u17b6\u1787"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["\u178f\u17d2\u179a\u17b8\u1798\u17b6\u179f\u1791\u17b8 1","\u178f\u17d2\u179a\u17b8\u1798\u17b6\u179f\u1791\u17b8 2","\u178f\u17d2\u179a\u17b8\u1798\u17b6\u179f\u1791\u17b8 3","\u178f\u17d2\u179a\u17b8\u1798\u17b6\u179f\u1791\u17b8 4"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u1798.\u1780","\u1780.\u1798","\u1798\u17b7","\u1798.\u179f","\u17a7.\u179f","\u1798.\u1790","\u1780.\u178a","\u179f\u17b8","\u1780\u1789","\u178f\u17bb","\u179c\u17b7","\u1792"],abbreviated:["\u1798\u1780\u179a\u17b6","\u1780\u17bb\u1798\u17d2\u1797\u17c8","\u1798\u17b8\u1793\u17b6","\u1798\u17c1\u179f\u17b6","\u17a7\u179f\u1797\u17b6","\u1798\u17b7\u1790\u17bb\u1793\u17b6","\u1780\u1780\u17d2\u1780\u178a\u17b6","\u179f\u17b8\u17a0\u17b6","\u1780\u1789\u17d2\u1789\u17b6","\u178f\u17bb\u179b\u17b6","\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6","\u1792\u17d2\u1793\u17bc"],wide:["\u1798\u1780\u179a\u17b6","\u1780\u17bb\u1798\u17d2\u1797\u17c8","\u1798\u17b8\u1793\u17b6","\u1798\u17c1\u179f\u17b6","\u17a7\u179f\u1797\u17b6","\u1798\u17b7\u1790\u17bb\u1793\u17b6","\u1780\u1780\u17d2\u1780\u178a\u17b6","\u179f\u17b8\u17a0\u17b6","\u1780\u1789\u17d2\u1789\u17b6","\u178f\u17bb\u179b\u17b6","\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6","\u1792\u17d2\u1793\u17bc"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u17a2\u17b6","\u1785","\u17a2","\u1796","\u1796\u17d2\u179a","\u179f\u17bb","\u179f"],short:["\u17a2\u17b6","\u1785","\u17a2","\u1796","\u1796\u17d2\u179a","\u179f\u17bb","\u179f"],abbreviated:["\u17a2\u17b6","\u1785","\u17a2","\u1796","\u1796\u17d2\u179a","\u179f\u17bb","\u179f"],wide:["\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799","\u1785\u1793\u17d2\u1791","\u17a2\u1784\u17d2\u1782\u17b6\u179a","\u1796\u17bb\u1792","\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd","\u179f\u17bb\u1780\u17d2\u179a","\u179f\u17c5\u179a\u17cd"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u1796\u17d2\u179a\u17b9\u1780",pm:"\u179b\u17d2\u1784\u17b6\u1785",midnight:"\u200b\u1796\u17c1\u179b\u1780\u178e\u17d2\u178a\u17b6\u179b\u17a2\u1792\u17d2\u179a\u17b6\u178f\u17d2\u179a",noon:"\u1796\u17c1\u179b\u1790\u17d2\u1784\u17c3\u178f\u17d2\u179a\u1784\u17cb",morning:"\u1796\u17c1\u179b\u1796\u17d2\u179a\u17b9\u1780",afternoon:"\u1796\u17c1\u179b\u179a\u179f\u17c0\u179b",evening:"\u1796\u17c1\u179b\u179b\u17d2\u1784\u17b6\u1785",night:"\u1796\u17c1\u179b\u1799\u1794\u17cb"},abbreviated:{am:"\u1796\u17d2\u179a\u17b9\u1780",pm:"\u179b\u17d2\u1784\u17b6\u1785",midnight:"\u200b\u1796\u17c1\u179b\u1780\u178e\u17d2\u178a\u17b6\u179b\u17a2\u1792\u17d2\u179a\u17b6\u178f\u17d2\u179a",noon:"\u1796\u17c1\u179b\u1790\u17d2\u1784\u17c3\u178f\u17d2\u179a\u1784\u17cb",morning:"\u1796\u17c1\u179b\u1796\u17d2\u179a\u17b9\u1780",afternoon:"\u1796\u17c1\u179b\u179a\u179f\u17c0\u179b",evening:"\u1796\u17c1\u179b\u179b\u17d2\u1784\u17b6\u1785",night:"\u1796\u17c1\u179b\u1799\u1794\u17cb"},wide:{am:"\u1796\u17d2\u179a\u17b9\u1780",pm:"\u179b\u17d2\u1784\u17b6\u1785",midnight:"\u200b\u1796\u17c1\u179b\u1780\u178e\u17d2\u178a\u17b6\u179b\u17a2\u1792\u17d2\u179a\u17b6\u178f\u17d2\u179a",noon:"\u1796\u17c1\u179b\u1790\u17d2\u1784\u17c3\u178f\u17d2\u179a\u1784\u17cb",morning:"\u1796\u17c1\u179b\u1796\u17d2\u179a\u17b9\u1780",afternoon:"\u1796\u17c1\u179b\u179a\u179f\u17c0\u179b",evening:"\u1796\u17c1\u179b\u179b\u17d2\u1784\u17b6\u1785",night:"\u1796\u17c1\u179b\u1799\u1794\u17cb"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u1796\u17d2\u179a\u17b9\u1780",pm:"\u179b\u17d2\u1784\u17b6\u1785",midnight:"\u200b\u1796\u17c1\u179b\u1780\u178e\u17d2\u178a\u17b6\u179b\u17a2\u1792\u17d2\u179a\u17b6\u178f\u17d2\u179a",noon:"\u1796\u17c1\u179b\u1790\u17d2\u1784\u17c3\u178f\u17d2\u179a\u1784\u17cb",morning:"\u1796\u17c1\u179b\u1796\u17d2\u179a\u17b9\u1780",afternoon:"\u1796\u17c1\u179b\u179a\u179f\u17c0\u179b",evening:"\u1796\u17c1\u179b\u179b\u17d2\u1784\u17b6\u1785",night:"\u1796\u17c1\u179b\u1799\u1794\u17cb"},abbreviated:{am:"\u1796\u17d2\u179a\u17b9\u1780",pm:"\u179b\u17d2\u1784\u17b6\u1785",midnight:"\u200b\u1796\u17c1\u179b\u1780\u178e\u17d2\u178a\u17b6\u179b\u17a2\u1792\u17d2\u179a\u17b6\u178f\u17d2\u179a",noon:"\u1796\u17c1\u179b\u1790\u17d2\u1784\u17c3\u178f\u17d2\u179a\u1784\u17cb",morning:"\u1796\u17c1\u179b\u1796\u17d2\u179a\u17b9\u1780",afternoon:"\u1796\u17c1\u179b\u179a\u179f\u17c0\u179b",evening:"\u1796\u17c1\u179b\u179b\u17d2\u1784\u17b6\u1785",night:"\u1796\u17c1\u179b\u1799\u1794\u17cb"},wide:{am:"\u1796\u17d2\u179a\u17b9\u1780",pm:"\u179b\u17d2\u1784\u17b6\u1785",midnight:"\u200b\u1796\u17c1\u179b\u1780\u178e\u17d2\u178a\u17b6\u179b\u17a2\u1792\u17d2\u179a\u17b6\u178f\u17d2\u179a",noon:"\u1796\u17c1\u179b\u1790\u17d2\u1784\u17c3\u178f\u17d2\u179a\u1784\u17cb",morning:"\u1796\u17c1\u179b\u1796\u17d2\u179a\u17b9\u1780",afternoon:"\u1796\u17c1\u179b\u179a\u179f\u17c0\u179b",evening:"\u1796\u17c1\u179b\u179b\u17d2\u1784\u17b6\u1785",night:"\u1796\u17c1\u179b\u1799\u1794\u17cb"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u1798\.)?\u1782\u179f/i,abbreviated:/^(\u1798\u17bb\u1793)?\u1782\.\u179f/i,wide:/^(\u1798\u17bb\u1793|\u1793\u17c3)\u1782\u17d2\u179a\u17b7\u179f\u17d2\u178f\u179f\u1780\u179a\u17b6\u1787/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u1798|\u1798\u17bb\u1793)\u1782\.?\u179f/i,/^(\u1793\u17c3)?\u1782\.?\u179f/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^(\u178f\u17d2\u179a\u17b8\u1798\u17b6\u179f)(\u1791\u17b8)?\s?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u1798\.\u1780|\u1780\.\u1798|\u1798\u17b7|\u1798\.\u179f|\u17a7\.\u179f|\u1798\.\u1790|\u1780\.\u178a|\u179f\u17b8|\u1780\u1789|\u178f\u17bb|\u179c\u17b7|\u1792)/i,abbreviated:/^(\u1798\u1780\u179a\u17b6|\u1780\u17bb\u1798\u17d2\u1797\u17c8|\u1798\u17b8\u1793\u17b6|\u1798\u17c1\u179f\u17b6|\u17a7\u179f\u1797\u17b6|\u1798\u17b7\u1790\u17bb\u1793\u17b6|\u1780\u1780\u17d2\u1780\u178a\u17b6|\u179f\u17b8\u17a0\u17b6|\u1780\u1789\u17d2\u1789\u17b6|\u178f\u17bb\u179b\u17b6|\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6|\u1792\u17d2\u1793\u17bc)/i,wide:/^(\u1798\u1780\u179a\u17b6|\u1780\u17bb\u1798\u17d2\u1797\u17c8|\u1798\u17b8\u1793\u17b6|\u1798\u17c1\u179f\u17b6|\u17a7\u179f\u1797\u17b6|\u1798\u17b7\u1790\u17bb\u1793\u17b6|\u1780\u1780\u17d2\u1780\u178a\u17b6|\u179f\u17b8\u17a0\u17b6|\u1780\u1789\u17d2\u1789\u17b6|\u178f\u17bb\u179b\u17b6|\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6|\u1792\u17d2\u1793\u17bc)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u1798\.\u1780/i,/^\u1780\.\u1798/i,/^\u1798\u17b7/i,/^\u1798\.\u179f/i,/^\u17a7\.\u179f/i,/^\u1798\.\u1790/i,/^\u1780\.\u178a/i,/^\u179f\u17b8/i,/^\u1780\u1789/i,/^\u178f\u17bb/i,/^\u179c\u17b7/i,/^\u1792/i],any:[/^\u1798\u1780/i,/^\u1780\u17bb/i,/^\u1798\u17b8\u1793/i,/^\u1798\u17c1/i,/^\u17a7\u179f/i,/^\u1798\u17b7\u1790/i,/^\u1780\u1780/i,/^\u179f\u17b8/i,/^\u1780\u1789/i,/^\u178f\u17bb/i,/^\u179c\u17b7\u1785/i,/^\u1792/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u17a2\u17b6|\u1785|\u17a2|\u1796|\u1796\u17d2\u179a|\u179f\u17bb|\u179f)/i,short:/^(\u17a2\u17b6|\u1785|\u17a2|\u1796|\u1796\u17d2\u179a|\u179f\u17bb|\u179f)/i,abbreviated:/^(\u17a2\u17b6|\u1785|\u17a2|\u1796|\u1796\u17d2\u179a|\u179f\u17bb|\u179f)/i,wide:/^(\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799|\u1785\u1793\u17d2\u1791|\u17a2\u1784\u17d2\u1782\u17b6\u179a|\u1796\u17bb\u1792|\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd|\u179f\u17bb\u1780\u17d2\u179a|\u179f\u17c5\u179a\u17cd)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u17a2\u17b6/i,/^\u1785/i,/^\u17a2/i,/^\u1796/i,/^\u1796\u17d2\u179a/i,/^\u179f\u17bb/i,/^\u179f/i],any:[/^\u17a2\u17b6/i,/^\u1785/i,/^\u17a2/i,/^\u1796/i,/^\u1796\u17d2\u179a/i,/^\u179f\u17bb/i,/^\u179f\u17c5/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785|\u1796\u17c1\u179b\u1796\u17d2\u179a\u17b9\u1780|\u1796\u17c1\u179b\u1790\u17d2\u1784\u17c3\u178f\u17d2\u179a\u1784\u17cb|\u1796\u17c1\u179b\u179b\u17d2\u1784\u17b6\u1785|\u1796\u17c1\u179b\u179a\u179f\u17c0\u179b|\u1796\u17c1\u179b\u1799\u1794\u17cb|\u1796\u17c1\u179b\u1780\u178e\u17d2\u178a\u17b6\u179b\u17a2\u1792\u17d2\u179a\u17b6\u178f\u17d2\u179a)/i,any:/^(\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785|\u1796\u17c1\u179b\u1796\u17d2\u179a\u17b9\u1780|\u1796\u17c1\u179b\u1790\u17d2\u1784\u17c3\u178f\u17d2\u179a\u1784\u17cb|\u1796\u17c1\u179b\u179b\u17d2\u1784\u17b6\u1785|\u1796\u17c1\u179b\u179a\u179f\u17c0\u179b|\u1796\u17c1\u179b\u1799\u1794\u17cb|\u1796\u17c1\u179b\u1780\u178e\u17d2\u178a\u17b6\u179b\u17a2\u1792\u17d2\u179a\u17b6\u178f\u17d2\u179a)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u1796\u17d2\u179a\u17b9\u1780/i,pm:/^\u179b\u17d2\u1784\u17b6\u1785/i,midnight:/^\u1796\u17c1\u179b\u1780\u178e\u17d2\u178a\u17b6\u179b\u17a2\u1792\u17d2\u179a\u17b6\u178f\u17d2\u179a/i,noon:/^\u1796\u17c1\u179b\u1790\u17d2\u1784\u17c3\u178f\u17d2\u179a\u1784\u17cb/i,morning:/\u1796\u17c1\u179b\u1796\u17d2\u179a\u17b9\u1780/i,afternoon:/\u1796\u17c1\u179b\u179a\u179f\u17c0\u179b/i,evening:/\u1796\u17c1\u179b\u179b\u17d2\u1784\u17b6\u1785/i,night:/\u1796\u17c1\u179b\u1799\u1794\u17cb/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Ms={lessThanXSeconds:{one:{default:"1 \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd\u200c\u0c97\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6",future:"1 \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd\u200c\u0c97\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6",past:"1 \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd\u200c\u0c97\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6"},other:{default:"{{count}} \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd\u200c\u0c97\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6",future:"{{count}} \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd\u200c\u0c97\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6",past:"{{count}} \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd\u200c\u0c97\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6"}},xSeconds:{one:{default:"1 \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd",future:"1 \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd\u200c\u0ca8\u0cb2\u0ccd\u0cb2\u0cbf",past:"1 \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"},other:{default:"{{count}} \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",future:"{{count}} \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd\u200c\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"{{count}} \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0ccd \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"}},halfAMinute:{other:{default:"\u0c85\u0cb0\u0ccd\u0ca7 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",future:"\u0c85\u0cb0\u0ccd\u0ca7 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0ca6\u0cb2\u0ccd\u0cb2\u0cbf",past:"\u0c85\u0cb0\u0ccd\u0ca7 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0ca6 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"}},lessThanXMinutes:{one:{default:"1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0c95\u0ccd\u0c95\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6",future:"1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0c95\u0ccd\u0c95\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6",past:"1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0c95\u0ccd\u0c95\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6"},other:{default:"{{count}} \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0c95\u0ccd\u0c95\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6",future:"{{count}} \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0c95\u0ccd\u0c95\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6",past:"{{count}} \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0c95\u0ccd\u0c95\u0cbf\u0c82\u0ca4 \u0c95\u0ca1\u0cbf\u0cae\u0cc6"}},xMinutes:{one:{default:"1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",future:"1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0ca6\u0cb2\u0ccd\u0cb2\u0cbf",past:"1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0ca6 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"},other:{default:"{{count}} \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0c97\u0cb3\u0cc1",future:"{{count}} \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"{{count}} \u0ca8\u0cbf\u0cae\u0cbf\u0cb7\u0c97\u0cb3 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"}},aboutXHours:{one:{default:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 1 \u0c97\u0c82\u0c9f\u0cc6",future:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 1 \u0c97\u0c82\u0c9f\u0cc6\u0caf\u0cb2\u0ccd\u0cb2\u0cbf",past:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 1 \u0c97\u0c82\u0c9f\u0cc6 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"},other:{default:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 {{count}} \u0c97\u0c82\u0c9f\u0cc6\u0c97\u0cb3\u0cc1",future:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 {{count}} \u0c97\u0c82\u0c9f\u0cc6\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 {{count}} \u0c97\u0c82\u0c9f\u0cc6\u0c97\u0cb3 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"}},xHours:{one:{default:"1 \u0c97\u0c82\u0c9f\u0cc6",future:"1 \u0c97\u0c82\u0c9f\u0cc6\u0caf\u0cb2\u0ccd\u0cb2\u0cbf",past:"1 \u0c97\u0c82\u0c9f\u0cc6 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"},other:{default:"{{count}} \u0c97\u0c82\u0c9f\u0cc6\u0c97\u0cb3\u0cc1",future:"{{count}} \u0c97\u0c82\u0c9f\u0cc6\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"{{count}} \u0c97\u0c82\u0c9f\u0cc6\u0c97\u0cb3 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"}},xDays:{one:{default:"1 \u0ca6\u0cbf\u0ca8",future:"1 \u0ca6\u0cbf\u0ca8\u0ca6\u0cb2\u0ccd\u0cb2\u0cbf",past:"1 \u0ca6\u0cbf\u0ca8\u0ca6 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"},other:{default:"{{count}} \u0ca6\u0cbf\u0ca8\u0c97\u0cb3\u0cc1",future:"{{count}} \u0ca6\u0cbf\u0ca8\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"{{count}} \u0ca6\u0cbf\u0ca8\u0c97\u0cb3 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"}},aboutXMonths:{one:{default:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",future:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"},other:{default:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 {{count}} \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",future:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 {{count}} \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 {{count}} \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1\u0c97\u0cb3 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"}},xMonths:{one:{default:"1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",future:"1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"},other:{default:"{{count}} \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",future:"{{count}} \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"{{count}} \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1\u0c97\u0cb3 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"}},aboutXYears:{one:{default:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 1 \u0cb5\u0cb0\u0ccd\u0cb7",future:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 1 \u0cb5\u0cb0\u0ccd\u0cb7\u0ca6\u0cb2\u0ccd\u0cb2\u0cbf",past:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 1 \u0cb5\u0cb0\u0ccd\u0cb7\u0ca6 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"},other:{default:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 {{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3\u0cc1",future:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 {{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"\u0cb8\u0cc1\u0cae\u0cbe\u0cb0\u0cc1 {{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"}},xYears:{one:{default:"1 \u0cb5\u0cb0\u0ccd\u0cb7",future:"1 \u0cb5\u0cb0\u0ccd\u0cb7\u0ca6\u0cb2\u0ccd\u0cb2\u0cbf",past:"1 \u0cb5\u0cb0\u0ccd\u0cb7\u0ca6 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"},other:{default:"{{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3\u0cc1",future:"{{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"{{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3 \u0cb9\u0cbf\u0c82\u0ca6\u0cc6"}},overXYears:{one:{default:"1 \u0cb5\u0cb0\u0ccd\u0cb7\u0ca6 \u0cae\u0cc7\u0cb2\u0cc6",future:"1 \u0cb5\u0cb0\u0ccd\u0cb7\u0ca6 \u0cae\u0cc7\u0cb2\u0cc6",past:"1 \u0cb5\u0cb0\u0ccd\u0cb7\u0ca6 \u0cae\u0cc7\u0cb2\u0cc6"},other:{default:"{{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3 \u0cae\u0cc7\u0cb2\u0cc6",future:"{{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3 \u0cae\u0cc7\u0cb2\u0cc6",past:"{{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3 \u0cae\u0cc7\u0cb2\u0cc6"}},almostXYears:{one:{default:"\u0cac\u0cb9\u0cc1\u0ca4\u0cc7\u0c95 1 \u0cb5\u0cb0\u0ccd\u0cb7\u0ca6\u0cb2\u0ccd\u0cb2\u0cbf",future:"\u0cac\u0cb9\u0cc1\u0ca4\u0cc7\u0c95 1 \u0cb5\u0cb0\u0ccd\u0cb7\u0ca6\u0cb2\u0ccd\u0cb2\u0cbf",past:"\u0cac\u0cb9\u0cc1\u0ca4\u0cc7\u0c95 1 \u0cb5\u0cb0\u0ccd\u0cb7\u0ca6\u0cb2\u0ccd\u0cb2\u0cbf"},other:{default:"\u0cac\u0cb9\u0cc1\u0ca4\u0cc7\u0c95 {{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",future:"\u0cac\u0cb9\u0cc1\u0ca4\u0cc7\u0c95 {{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf",past:"\u0cac\u0cb9\u0cc1\u0ca4\u0cc7\u0c95 {{count}} \u0cb5\u0cb0\u0ccd\u0cb7\u0c97\u0cb3\u0cb2\u0ccd\u0cb2\u0cbf"}}};function As(t,e){return null!==e&&void 0!==e&&e.addSuffix?e.comparison&&e.comparison>0?t.future:t.past:t.default}var Ds=function(t,e,n){var r=Ms[t];return(r.one&&1===e?As(r.one,n):As(r.other,n)).replace("{{count}}",String(e))},Rs={date:U({formats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"d/M/yy"},defaultWidth:"full"}),time:U({formats:{full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ls={lastWeek:"'\u0c95\u0cb3\u0cc6\u0ca6' eeee p '\u0c95\u0ccd\u0c95\u0cc6'",yesterday:"'\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6' p '\u0c95\u0ccd\u0c95\u0cc6'",today:"'\u0c87\u0c82\u0ca6\u0cc1' p '\u0c95\u0ccd\u0c95\u0cc6'",tomorrow:"'\u0ca8\u0cbe\u0cb3\u0cc6' p '\u0c95\u0ccd\u0c95\u0cc6'",nextWeek:"eeee p '\u0c95\u0ccd\u0c95\u0cc6'",other:"P"},Is={code:"kn",formatDistance:Ds,formatLong:Rs,formatRelative:function(t,e,n,r){return Ls[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"\u0ca8\u0cc7"},era:K({values:{narrow:["\u0c95\u0ccd\u0cb0\u0cbf.\u0caa\u0cc2","\u0c95\u0ccd\u0cb0\u0cbf.\u0cb6"],abbreviated:["\u0c95\u0ccd\u0cb0\u0cbf.\u0caa\u0cc2","\u0c95\u0ccd\u0cb0\u0cbf.\u0cb6"],wide:["\u0c95\u0ccd\u0cb0\u0cbf\u0cb8\u0ccd\u0ca4 \u0caa\u0cc2\u0cb0\u0ccd\u0cb5","\u0c95\u0ccd\u0cb0\u0cbf\u0cb8\u0ccd\u0ca4 \u0cb6\u0c95"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u0ca4\u0ccd\u0cb0\u0cc8 1","\u0ca4\u0ccd\u0cb0\u0cc8 2","\u0ca4\u0ccd\u0cb0\u0cc8 3","\u0ca4\u0ccd\u0cb0\u0cc8 4"],wide:["1\u0ca8\u0cc7 \u0ca4\u0ccd\u0cb0\u0cc8\u0cae\u0cbe\u0cb8\u0cbf\u0c95","2\u0ca8\u0cc7 \u0ca4\u0ccd\u0cb0\u0cc8\u0cae\u0cbe\u0cb8\u0cbf\u0c95","3\u0ca8\u0cc7 \u0ca4\u0ccd\u0cb0\u0cc8\u0cae\u0cbe\u0cb8\u0cbf\u0c95","4\u0ca8\u0cc7 \u0ca4\u0ccd\u0cb0\u0cc8\u0cae\u0cbe\u0cb8\u0cbf\u0c95"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0c9c","\u0cab\u0cc6","\u0cae\u0cbe","\u0c8f","\u0cae\u0cc7","\u0c9c\u0cc2","\u0c9c\u0cc1","\u0c86","\u0cb8\u0cc6","\u0c85","\u0ca8","\u0ca1\u0cbf"],abbreviated:["\u0c9c\u0ca8","\u0cab\u0cc6\u0cac\u0ccd\u0cb0","\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd","\u0c8f\u0caa\u0ccd\u0cb0\u0cbf","\u0cae\u0cc7","\u0c9c\u0cc2\u0ca8\u0ccd","\u0c9c\u0cc1\u0cb2\u0cc8","\u0c86\u0c97","\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82","\u0c85\u0c95\u0ccd\u0c9f\u0ccb","\u0ca8\u0cb5\u0cc6\u0c82","\u0ca1\u0cbf\u0cb8\u0cc6\u0c82"],wide:["\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf","\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf","\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd","\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd","\u0cae\u0cc7","\u0c9c\u0cc2\u0ca8\u0ccd","\u0c9c\u0cc1\u0cb2\u0cc8","\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd","\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd","\u0c85\u0c95\u0ccd\u0c9f\u0ccb\u0cac\u0cb0\u0ccd","\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd","\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u0cad\u0cbe","\u0cb8\u0ccb","\u0cae\u0c82","\u0cac\u0cc1","\u0c97\u0cc1","\u0cb6\u0cc1","\u0cb6"],short:["\u0cad\u0cbe\u0ca8\u0cc1","\u0cb8\u0ccb\u0cae","\u0cae\u0c82\u0c97\u0cb3","\u0cac\u0cc1\u0ca7","\u0c97\u0cc1\u0cb0\u0cc1","\u0cb6\u0cc1\u0c95\u0ccd\u0cb0","\u0cb6\u0ca8\u0cbf"],abbreviated:["\u0cad\u0cbe\u0ca8\u0cc1","\u0cb8\u0ccb\u0cae","\u0cae\u0c82\u0c97\u0cb3","\u0cac\u0cc1\u0ca7","\u0c97\u0cc1\u0cb0\u0cc1","\u0cb6\u0cc1\u0c95\u0ccd\u0cb0","\u0cb6\u0ca8\u0cbf"],wide:["\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0","\u0cb8\u0ccb\u0cae\u0cb5\u0cbe\u0cb0","\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0","\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0","\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0","\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0","\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0caa\u0cc2\u0cb0\u0ccd\u0cb5\u0cbe\u0cb9\u0ccd\u0ca8",pm:"\u0c85\u0caa\u0cb0\u0cbe\u0cb9\u0ccd\u0ca8",midnight:"\u0cae\u0ca7\u0ccd\u0caf\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf",noon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8",morning:"\u0cac\u0cc6\u0cb3\u0c97\u0ccd\u0c97\u0cc6",afternoon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8",evening:"\u0cb8\u0c82\u0c9c\u0cc6",night:"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},abbreviated:{am:"\u0caa\u0cc2\u0cb0\u0ccd\u0cb5\u0cbe\u0cb9\u0ccd\u0ca8",pm:"\u0c85\u0caa\u0cb0\u0cbe\u0cb9\u0ccd\u0ca8",midnight:"\u0cae\u0ca7\u0ccd\u0caf\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf",noon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9",morning:"\u0cac\u0cc6\u0cb3\u0c97\u0ccd\u0c97\u0cc6",afternoon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9",evening:"\u0cb8\u0c82\u0c9c\u0cc6",night:"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},wide:{am:"\u0caa\u0cc2\u0cb0\u0ccd\u0cb5\u0cbe\u0cb9\u0ccd\u0ca8",pm:"\u0c85\u0caa\u0cb0\u0cbe\u0cb9\u0ccd\u0ca8",midnight:"\u0cae\u0ca7\u0ccd\u0caf\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf",noon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9",morning:"\u0cac\u0cc6\u0cb3\u0c97\u0ccd\u0c97\u0cc6",afternoon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9",evening:"\u0cb8\u0c82\u0c9c\u0cc6",night:"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0caa\u0cc2",pm:"\u0c85",midnight:"\u0cae\u0ca7\u0ccd\u0caf\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf",noon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9",morning:"\u0cac\u0cc6\u0cb3\u0c97\u0ccd\u0c97\u0cc6",afternoon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9",evening:"\u0cb8\u0c82\u0c9c\u0cc6",night:"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},abbreviated:{am:"\u0caa\u0cc2\u0cb0\u0ccd\u0cb5\u0cbe\u0cb9\u0ccd\u0ca8",pm:"\u0c85\u0caa\u0cb0\u0cbe\u0cb9\u0ccd\u0ca8",midnight:"\u0cae\u0ca7\u0ccd\u0caf \u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf",noon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9",morning:"\u0cac\u0cc6\u0cb3\u0c97\u0ccd\u0c97\u0cc6",afternoon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9",evening:"\u0cb8\u0c82\u0c9c\u0cc6",night:"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},wide:{am:"\u0caa\u0cc2\u0cb0\u0ccd\u0cb5\u0cbe\u0cb9\u0ccd\u0ca8",pm:"\u0c85\u0caa\u0cb0\u0cbe\u0cb9\u0ccd\u0ca8",midnight:"\u0cae\u0ca7\u0ccd\u0caf \u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf",noon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9",morning:"\u0cac\u0cc6\u0cb3\u0c97\u0ccd\u0c97\u0cc6",afternoon:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9",evening:"\u0cb8\u0c82\u0c9c\u0cc6",night:"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\u0ca8\u0cc7|\u0ca8\u0cc6)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0c95\u0ccd\u0cb0\u0cbf.\u0caa\u0cc2|\u0c95\u0ccd\u0cb0\u0cbf.\u0cb6)/i,abbreviated:/^(\u0c95\u0ccd\u0cb0\u0cbf\.?\s?\u0caa\u0cc2\.?|\u0c95\u0ccd\u0cb0\u0cbf\.?\s?\u0cb6\.?|\u0caa\u0ccd\u0cb0\.?\s?\u0cb6\.?)/i,wide:/^(\u0c95\u0ccd\u0cb0\u0cbf\u0cb8\u0ccd\u0ca4 \u0caa\u0cc2\u0cb0\u0ccd\u0cb5|\u0c95\u0ccd\u0cb0\u0cbf\u0cb8\u0ccd\u0ca4 \u0cb6\u0c95|\u0caa\u0ccd\u0cb0\u0cb8\u0c95\u0ccd\u0ca4 \u0cb6\u0c95)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0caa\u0cc2/i,/^(\u0cb6|\u0caa\u0ccd\u0cb0)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0ca4\u0ccd\u0cb0\u0cc8[1234]|\u0ca4\u0ccd\u0cb0\u0cc8 [1234]| [1234]\u0ca4\u0ccd\u0cb0\u0cc8/i,wide:/^[1234](\u0ca8\u0cc7)? \u0ca4\u0ccd\u0cb0\u0cc8\u0cae\u0cbe\u0cb8\u0cbf\u0c95/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u0c9c\u0cc2|\u0c9c\u0cc1|\u0c9c|\u0cab\u0cc6|\u0cae\u0cbe|\u0c8f|\u0cae\u0cc7|\u0c86|\u0cb8\u0cc6|\u0c85|\u0ca8|\u0ca1\u0cbf)/i,abbreviated:/^(\u0c9c\u0ca8|\u0cab\u0cc6\u0cac\u0ccd\u0cb0|\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd|\u0c8f\u0caa\u0ccd\u0cb0\u0cbf|\u0cae\u0cc7|\u0c9c\u0cc2\u0ca8\u0ccd|\u0c9c\u0cc1\u0cb2\u0cc8|\u0c86\u0c97|\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82|\u0c85\u0c95\u0ccd\u0c9f\u0ccb|\u0ca8\u0cb5\u0cc6\u0c82|\u0ca1\u0cbf\u0cb8\u0cc6\u0c82)/i,wide:/^(\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf|\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf|\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd|\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd|\u0cae\u0cc7|\u0c9c\u0cc2\u0ca8\u0ccd|\u0c9c\u0cc1\u0cb2\u0cc8|\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd|\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd|\u0c85\u0c95\u0ccd\u0c9f\u0ccb\u0cac\u0cb0\u0ccd|\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd|\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0c9c$/i,/^\u0cab\u0cc6/i,/^\u0cae\u0cbe/i,/^\u0c8f/i,/^\u0cae\u0cc7/i,/^\u0c9c\u0cc2/i,/^\u0c9c\u0cc1$/i,/^\u0c86/i,/^\u0cb8\u0cc6/i,/^\u0c85/i,/^\u0ca8/i,/^\u0ca1\u0cbf/i],any:[/^\u0c9c\u0ca8/i,/^\u0cab\u0cc6/i,/^\u0cae\u0cbe/i,/^\u0c8f/i,/^\u0cae\u0cc7/i,/^\u0c9c\u0cc2\u0ca8\u0ccd/i,/^\u0c9c\u0cc1\u0cb2\u0cc8/i,/^\u0c86/i,/^\u0cb8\u0cc6/i,/^\u0c85/i,/^\u0ca8/i,/^\u0ca1\u0cbf/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u0cad\u0cbe|\u0cb8\u0ccb|\u0cae|\u0cac\u0cc1|\u0c97\u0cc1|\u0cb6\u0cc1|\u0cb6)/i,short:/^(\u0cad\u0cbe\u0ca8\u0cc1|\u0cb8\u0ccb\u0cae|\u0cae\u0c82\u0c97\u0cb3|\u0cac\u0cc1\u0ca7|\u0c97\u0cc1\u0cb0\u0cc1|\u0cb6\u0cc1\u0c95\u0ccd\u0cb0|\u0cb6\u0ca8\u0cbf)/i,abbreviated:/^(\u0cad\u0cbe\u0ca8\u0cc1|\u0cb8\u0ccb\u0cae|\u0cae\u0c82\u0c97\u0cb3|\u0cac\u0cc1\u0ca7|\u0c97\u0cc1\u0cb0\u0cc1|\u0cb6\u0cc1\u0c95\u0ccd\u0cb0|\u0cb6\u0ca8\u0cbf)/i,wide:/^(\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0|\u0cb8\u0ccb\u0cae\u0cb5\u0cbe\u0cb0|\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0|\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0|\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0|\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0|\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0cad\u0cbe/i,/^\u0cb8\u0ccb/i,/^\u0cae/i,/^\u0cac\u0cc1/i,/^\u0c97\u0cc1/i,/^\u0cb6\u0cc1/i,/^\u0cb6/i],any:[/^\u0cad\u0cbe/i,/^\u0cb8\u0ccb/i,/^\u0cae/i,/^\u0cac\u0cc1/i,/^\u0c97\u0cc1/i,/^\u0cb6\u0cc1/i,/^\u0cb6/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u0caa\u0cc2|\u0c85|\u0cae\u0ca7\u0ccd\u0caf\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9|\u0cac\u0cc6\u0cb3\u0c97\u0ccd\u0c97\u0cc6|\u0cb8\u0c82\u0c9c\u0cc6|\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf)/i,any:/^(\u0caa\u0cc2\u0cb0\u0ccd\u0cb5\u0cbe\u0cb9\u0ccd\u0ca8|\u0c85\u0caa\u0cb0\u0cbe\u0cb9\u0ccd\u0ca8|\u0cae\u0ca7\u0ccd\u0caf\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9|\u0cac\u0cc6\u0cb3\u0c97\u0ccd\u0c97\u0cc6|\u0cb8\u0c82\u0c9c\u0cc6|\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u0caa\u0cc2/i,pm:/^\u0c85/i,midnight:/\u0cae\u0ca7\u0ccd\u0caf\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf/i,noon:/\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9/i,morning:/\u0cac\u0cc6\u0cb3\u0c97\u0ccd\u0c97\u0cc6/i,afternoon:/\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0ca8\u0ccd\u0cb9/i,evening:/\u0cb8\u0c82\u0c9c\u0cc6/i,night:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ws={lessThanXSeconds:{one:"1\ucd08 \ubbf8\ub9cc",other:"{{count}}\ucd08 \ubbf8\ub9cc"},xSeconds:{one:"1\ucd08",other:"{{count}}\ucd08"},halfAMinute:"30\ucd08",lessThanXMinutes:{one:"1\ubd84 \ubbf8\ub9cc",other:"{{count}}\ubd84 \ubbf8\ub9cc"},xMinutes:{one:"1\ubd84",other:"{{count}}\ubd84"},aboutXHours:{one:"\uc57d 1\uc2dc\uac04",other:"\uc57d {{count}}\uc2dc\uac04"},xHours:{one:"1\uc2dc\uac04",other:"{{count}}\uc2dc\uac04"},xDays:{one:"1\uc77c",other:"{{count}}\uc77c"},aboutXWeeks:{one:"\uc57d 1\uc8fc",other:"\uc57d {{count}}\uc8fc"},xWeeks:{one:"1\uc8fc",other:"{{count}}\uc8fc"},aboutXMonths:{one:"\uc57d 1\uac1c\uc6d4",other:"\uc57d {{count}}\uac1c\uc6d4"},xMonths:{one:"1\uac1c\uc6d4",other:"{{count}}\uac1c\uc6d4"},aboutXYears:{one:"\uc57d 1\ub144",other:"\uc57d {{count}}\ub144"},xYears:{one:"1\ub144",other:"{{count}}\ub144"},overXYears:{one:"1\ub144 \uc774\uc0c1",other:"{{count}}\ub144 \uc774\uc0c1"},almostXYears:{one:"\uac70\uc758 1\ub144",other:"\uac70\uc758 {{count}}\ub144"}},zs=function(t,e,n){var r,i=Ws[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+" \ud6c4":r+" \uc804":r},Ns={date:U({formats:{full:"y\ub144 M\uc6d4 d\uc77c EEEE",long:"y\ub144 M\uc6d4 d\uc77c",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:U({formats:{full:"a H\uc2dc mm\ubd84 ss\ucd08 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Fs={lastWeek:"'\uc9c0\ub09c' eeee p",yesterday:"'\uc5b4\uc81c' p",today:"'\uc624\ub298' p",tomorrow:"'\ub0b4\uc77c' p",nextWeek:"'\ub2e4\uc74c' eeee p",other:"P"},Hs={code:"ko",formatDistance:zs,formatLong:Ns,formatRelative:function(t,e,n,r){return Fs[t]},localize:{ordinalNumber:function(t,e){var n=Number(t);switch(String(null===e||void 0===e?void 0:e.unit)){case"minute":case"second":return String(n);case"date":return n+"\uc77c";default:return n+"\ubc88\uc9f8"}},era:K({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["\uae30\uc6d0\uc804","\uc11c\uae30"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1\ubd84\uae30","2\ubd84\uae30","3\ubd84\uae30","4\ubd84\uae30"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],wide:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"]},defaultWidth:"wide"}),day:K({values:{narrow:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],short:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],abbreviated:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],wide:["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},abbreviated:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},wide:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},abbreviated:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},wide:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\uc77c|\ubc88\uc9f8)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(\uae30\uc6d0\uc804|\uc11c\uae30)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|\uae30\uc6d0\uc804)/i,/^(ad|\uc11c\uae30)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\uc0ac?\ubd84\uae30/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])\uc6d4/i,wide:/^(1[012]|[123456789])\uc6d4/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\uc6d4?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]/,short:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]/,abbreviated:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]/,wide:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]\uc694\uc77c/},defaultMatchWidth:"wide",parsePatterns:{any:[/^\uc77c/,/^\uc6d4/,/^\ud654/,/^\uc218/,/^\ubaa9/,/^\uae08/,/^\ud1a0/]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(am|pm|\uc624\uc804|\uc624\ud6c4|\uc790\uc815|\uc815\uc624|\uc544\uce68|\uc800\ub141|\ubc24)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|\uc624\uc804)/i,pm:/^(pm|\uc624\ud6c4)/i,midnight:/^\uc790\uc815/i,noon:/^\uc815\uc624/i,morning:/^\uc544\uce68/i,afternoon:/^\uc624\ud6c4/i,evening:/^\uc800\ub141/i,night:/^\ubc24/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Bs={lessThanXSeconds:{standalone:{one:"manner w\xe9i eng Sekonn",other:"manner w\xe9i {{count}} Sekonnen"},withPreposition:{one:"manner w\xe9i enger Sekonn",other:"manner w\xe9i {{count}} Sekonnen"}},xSeconds:{standalone:{one:"eng Sekonn",other:"{{count}} Sekonnen"},withPreposition:{one:"enger Sekonn",other:"{{count}} Sekonnen"}},halfAMinute:{standalone:"eng hallef Minutt",withPreposition:"enger hallwer Minutt"},lessThanXMinutes:{standalone:{one:"manner w\xe9i eng Minutt",other:"manner w\xe9i {{count}} Minutten"},withPreposition:{one:"manner w\xe9i enger Minutt",other:"manner w\xe9i {{count}} Minutten"}},xMinutes:{standalone:{one:"eng Minutt",other:"{{count}} Minutten"},withPreposition:{one:"enger Minutt",other:"{{count}} Minutten"}},aboutXHours:{standalone:{one:"ongef\xe9ier eng Stonn",other:"ongef\xe9ier {{count}} Stonnen"},withPreposition:{one:"ongef\xe9ier enger Stonn",other:"ongef\xe9ier {{count}} Stonnen"}},xHours:{standalone:{one:"eng Stonn",other:"{{count}} Stonnen"},withPreposition:{one:"enger Stonn",other:"{{count}} Stonnen"}},xDays:{standalone:{one:"een Dag",other:"{{count}} Deeg"},withPreposition:{one:"engem Dag",other:"{{count}} Deeg"}},aboutXWeeks:{standalone:{one:"ongef\xe9ier eng Woch",other:"ongef\xe9ier {{count}} Wochen"},withPreposition:{one:"ongef\xe9ier enger Woche",other:"ongef\xe9ier {{count}} Wochen"}},xWeeks:{standalone:{one:"eng Woch",other:"{{count}} Wochen"},withPreposition:{one:"enger Woch",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"ongef\xe9ier ee Mount",other:"ongef\xe9ier {{count}} M\xe9int"},withPreposition:{one:"ongef\xe9ier engem Mount",other:"ongef\xe9ier {{count}} M\xe9int"}},xMonths:{standalone:{one:"ee Mount",other:"{{count}} M\xe9int"},withPreposition:{one:"engem Mount",other:"{{count}} M\xe9int"}},aboutXYears:{standalone:{one:"ongef\xe9ier ee Joer",other:"ongef\xe9ier {{count}} Joer"},withPreposition:{one:"ongef\xe9ier engem Joer",other:"ongef\xe9ier {{count}} Joer"}},xYears:{standalone:{one:"ee Joer",other:"{{count}} Joer"},withPreposition:{one:"engem Joer",other:"{{count}} Joer"}},overXYears:{standalone:{one:"m\xe9i w\xe9i ee Joer",other:"m\xe9i w\xe9i {{count}} Joer"},withPreposition:{one:"m\xe9i w\xe9i engem Joer",other:"m\xe9i w\xe9i {{count}} Joer"}},almostXYears:{standalone:{one:"bal ee Joer",other:"bal {{count}} Joer"},withPreposition:{one:"bal engem Joer",other:"bal {{count}} Joer"}}},Vs=["d","h","n","t","z"],qs=["a,","e","i","o","u"],Ys=[0,1,2,3,8,9],Us=[40,50,60,70];function Gs(t){var e=t.charAt(0).toLowerCase();if(-1!=qs.indexOf(e)||-1!=Vs.indexOf(e))return!0;var n=t.split(" ")[0],r=parseInt(n);return!isNaN(r)&&-1!=Ys.indexOf(r%10)&&-1==Us.indexOf(parseInt(n.substring(0,2)))}var Xs=function(t,e,n){var r,i=Bs[t],o=null!==n&&void 0!==n&&n.addSuffix?i.withPreposition:i.standalone;return r="string"===typeof o?o:1===e?o.one:o.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"a"+(Gs(r)?"n":"")+" "+r:"viru"+(Gs(r)?"n":"")+" "+r:r},Js={date:U({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.yy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ks={lastWeek:function(t){var e=t.getUTCDay(),n="'l\xe4schte";return 2!==e&&4!==e||(n+="n"),n+="' eeee 'um' p"},yesterday:"'g\xebschter um' p",today:"'haut um' p",tomorrow:"'moien um' p",nextWeek:"eeee 'um' p",other:"P"},$s=function(t,e,n,r){var i=Ks[t];return"function"===typeof i?i(e):i},Qs={code:"lb",formatDistance:Xs,formatLong:Js,formatRelative:$s,localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["viru Christus","no Christus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4e","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4erz","Abr\xebll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","D","M","D","F","S"],short:["So","M\xe9","D\xeb","M\xeb","Do","Fr","Sa"],abbreviated:["So.","M\xe9.","D\xeb.","M\xeb.","Do.","Fr.","Sa."],wide:["Sonndeg","M\xe9indeg","D\xebnschdeg","M\xebttwoch","Donneschdeg","Freideg","Samschdeg"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"mo.",pm:"nom\xeb.",midnight:"M\xebtternuecht",noon:"M\xebtteg",morning:"Moien",afternoon:"Nom\xebtteg",evening:"Owend",night:"Nuecht"},abbreviated:{am:"moies",pm:"nom\xebttes",midnight:"M\xebtternuecht",noon:"M\xebtteg",morning:"Moien",afternoon:"Nom\xebtteg",evening:"Owend",night:"Nuecht"},wide:{am:"moies",pm:"nom\xebttes",midnight:"M\xebtternuecht",noon:"M\xebtteg",morning:"Moien",afternoon:"Nom\xebtteg",evening:"Owend",night:"Nuecht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"mo.",pm:"nom.",midnight:"M\xebtternuecht",noon:"m\xebttes",morning:"moies",afternoon:"nom\xebttes",evening:"owes",night:"nuets"},abbreviated:{am:"moies",pm:"nom\xebttes",midnight:"M\xebtternuecht",noon:"m\xebttes",morning:"moies",afternoon:"nom\xebttes",evening:"owes",night:"nuets"},wide:{am:"moies",pm:"nom\xebttes",midnight:"M\xebtternuecht",noon:"m\xebttes",morning:"moies",afternoon:"nom\xebttes",evening:"owes",night:"nuets"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(viru Christus|virun eiser Z\xe4itrechnung|no Christus|eiser Z\xe4itrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|m\xe4e|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i,wide:/^(januar|februar|m\xe4erz|abr\xebll|mee|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^m\xe4/i,/^ab/i,/^me/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smdf]/i,short:/^(so|m\xe9|d\xeb|m\xeb|do|fr|sa)/i,abbreviated:/^(son?|m\xe9i?|d\xebn?|m\xebt?|don?|fre?|sam?)\.?/i,wide:/^(sonndeg|m\xe9indeg|d\xebnschdeg|m\xebttwoch|donneschdeg|freideg|samschdeg)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^m\xe9/i,/^d\xeb/i,/^m\xeb/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(mo\.?|nom\xeb\.?|M\xebtternuecht|m\xebttes|moies|nom\xebttes|owes|nuets)/i,abbreviated:/^(moi\.?|nom\xebt\.?|M\xebtternuecht|m\xebttes|moies|nom\xebttes|owes|nuets)/i,wide:/^(moies|nom\xebttes|M\xebtternuecht|m\xebttes|moies|nom\xebttes|owes|nuets)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^m/i,pm:/^n/i,midnight:/^M\xebtter/i,noon:/^m\xebttes/i,morning:/moies/i,afternoon:/nom\xebttes/i,evening:/owes/i,night:/nuets/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Zs={xseconds_other:"sekund\u0117_sekund\u017ei\u0173_sekundes",xminutes_one:"minut\u0117_minut\u0117s_minut\u0119",xminutes_other:"minut\u0117s_minu\u010di\u0173_minutes",xhours_one:"valanda_valandos_valand\u0105",xhours_other:"valandos_valand\u0173_valandas",xdays_one:"diena_dienos_dien\u0105",xdays_other:"dienos_dien\u0173_dienas",xweeks_one:"savait\u0117_savait\u0117s_savait\u0119",xweeks_other:"savait\u0117s_savai\u010di\u0173_savaites",xmonths_one:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",xmonths_other:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",xyears_one:"metai_met\u0173_metus",xyears_other:"metai_met\u0173_metus",about:"apie",over:"daugiau nei",almost:"beveik",lessthan:"ma\u017eiau nei"},tl=function(t,e,n,r){return e?r?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes":"kelios sekund\u0117s"},el=function(t,e,n,r){return e?r?il(n)[1]:il(n)[2]:il(n)[0]},nl=function(t,e,n,r){var i=t+" ";return 1===t?i+el(0,e,n,r):e?r?i+il(n)[1]:i+(rl(t)?il(n)[1]:il(n)[2]):i+(rl(t)?il(n)[1]:il(n)[0])};function rl(t){return t%10===0||t>10&&t<20}function il(t){return Zs[t].split("_")}var ol={lessThanXSeconds:{one:tl,other:nl},xSeconds:{one:tl,other:nl},halfAMinute:"pus\u0117 minut\u0117s",lessThanXMinutes:{one:el,other:nl},xMinutes:{one:el,other:nl},aboutXHours:{one:el,other:nl},xHours:{one:el,other:nl},xDays:{one:el,other:nl},aboutXWeeks:{one:el,other:nl},xWeeks:{one:el,other:nl},aboutXMonths:{one:el,other:nl},xMonths:{one:el,other:nl},aboutXYears:{one:el,other:nl},xYears:{one:el,other:nl},overXYears:{one:el,other:nl},almostXYears:{one:el,other:nl}},al=function(t,e,n){var r,i=t.match(/about|over|almost|lessthan/i),o=i?t.replace(i[0],""):t,a=void 0!==(null===n||void 0===n?void 0:n.comparison)&&n.comparison>0,s=ol[t];if(r="string"===typeof s?s:1===e?s.one(e,!0===(null===n||void 0===n?void 0:n.addSuffix),o.toLowerCase()+"_one",a):s.other(e,!0===(null===n||void 0===n?void 0:n.addSuffix),o.toLowerCase()+"_other",a),i){var l=i[0].toLowerCase();r=Zs[l]+" "+r}return null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"po "+r:"prie\u0161 "+r:r},sl={date:U({formats:{full:"y 'm'. MMMM d 'd'., EEEE",long:"y 'm'. MMMM d 'd'.",medium:"y-MM-dd",short:"y-MM-dd"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ll={lastWeek:"'Pra\u0117jus\u012f' eeee p",yesterday:"'Vakar' p",today:"'\u0160iandien' p",tomorrow:"'Rytoj' p",nextWeek:"eeee p",other:"P"},ul={code:"lt",formatDistance:al,formatLong:sl,formatRelative:function(t,e,n,r){return ll[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"-oji"},era:K({values:{narrow:["pr. Kr.","po Kr."],abbreviated:["pr. Kr.","po Kr."],wide:["prie\u0161 Krist\u0173","po Kristaus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["I ketv.","II ketv.","III ketv.","IV ketv."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["I k.","II k.","III k.","IV k."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","bir\u017e.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausis","vasaris","kovas","balandis","gegu\u017e\u0117","bir\u017eelis","liepa","rugpj\u016btis","rugs\u0117jis","spalis","lapkritis","gruodis"]},defaultWidth:"wide",formattingValues:{narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","bir\u017e.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausio","vasario","kovo","baland\u017eio","gegu\u017e\u0117s","bir\u017eelio","liepos","rugpj\u016b\u010dio","rugs\u0117jo","spalio","lapkri\u010dio","gruod\u017eio"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["S","P","A","T","K","P","\u0160"],short:["Sk","Pr","An","Tr","Kt","Pn","\u0160t"],abbreviated:["sk","pr","an","tr","kt","pn","\u0161t"],wide:["sekmadienis","pirmadienis","antradienis","tre\u010diadienis","ketvirtadienis","penktadienis","\u0161e\u0161tadienis"]},defaultWidth:"wide",formattingValues:{narrow:["S","P","A","T","K","P","\u0160"],short:["Sk","Pr","An","Tr","Kt","Pn","\u0160t"],abbreviated:["sk","pr","an","tr","kt","pn","\u0161t"],wide:["sekmadien\u012f","pirmadien\u012f","antradien\u012f","tre\u010diadien\u012f","ketvirtadien\u012f","penktadien\u012f","\u0161e\u0161tadien\u012f"]},defaultFormattingWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},abbreviated:{am:"prie\u0161piet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},wide:{am:"prie\u0161piet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"}},defaultWidth:"wide",formattingValues:{narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popiet\u0117",evening:"vakaras",night:"naktis"},abbreviated:{am:"prie\u0161piet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popiet\u0117",evening:"vakaras",night:"naktis"},wide:{am:"prie\u0161piet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popiet\u0117",evening:"vakaras",night:"naktis"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-oji)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|m\u016bs\u0173 eroje)/i,wide:/^(prie\u0161 Krist\u0173|prie\u0161 m\u016bs\u0173 er\u0105|po Kristaus|m\u016bs\u0173 eroje)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/prie\u0161/i,/(po|m\u016bs\u0173)/i],any:[/^pr/i,/^(po|m)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|bir\u017e\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|baland\u017e?i(s|o)|gegu\u017e\u0117s?|bir\u017eeli(s|o)|liep(a|os)|rugpj\u016b(t|\u010d)i(s|o)|rugs\u0117j(is|o)|spali(s|o)|lapkri(t|\u010d)i(s|o)|gruod\u017e?i(s|o))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^bir\u017e/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[spatk\u0161]/i,short:/^(sk|pr|an|tr|kt|pn|\u0161t)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|\u0161t)/i,wide:/^(sekmadien(is|\u012f)|pirmadien(is|\u012f)|antradien(is|\u012f)|tre\u010diadien(is|\u012f)|ketvirtadien(is|\u012f)|penktadien(is|\u012f)|\u0161e\u0161tadien(is|\u012f))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^\u0161/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^\u0161e/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^\u0161t/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popiet\u0117)|vakaras|naktis)/i,any:/^(prie\u0161piet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popiet\u0117)|vakaras|naktis)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popiet\u0117)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popiet\u0117)/i,evening:/vakaras/i,night:/naktis/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function cl(t){return function(e,n){if(1===e)return null!==n&&void 0!==n&&n.addSuffix?t.one[0].replace("{{time}}",t.one[2]):t.one[0].replace("{{time}}",t.one[1]);var r=e%10===1&&e%100!==11;return null!==n&&void 0!==n&&n.addSuffix?t.other[0].replace("{{time}}",r?t.other[3]:t.other[4]).replace("{{count}}",String(e)):t.other[0].replace("{{time}}",r?t.other[1]:t.other[2]).replace("{{count}}",String(e))}}var dl={lessThanXSeconds:cl({one:["maz\u0101k par {{time}}","sekundi","sekundi"],other:["maz\u0101k nek\u0101 {{count}} {{time}}","sekunde","sekundes","sekundes","sekund\u0113m"]}),xSeconds:cl({one:["1 {{time}}","sekunde","sekundes"],other:["{{count}} {{time}}","sekunde","sekundes","sekundes","sekund\u0113m"]}),halfAMinute:function(t,e){return null!==e&&void 0!==e&&e.addSuffix?"pusmin\u016btes":"pusmin\u016bte"},lessThanXMinutes:cl({one:["maz\u0101k par {{time}}","min\u016bti","min\u016bti"],other:["maz\u0101k nek\u0101 {{count}} {{time}}","min\u016bte","min\u016btes","min\u016btes","min\u016bt\u0113m"]}),xMinutes:cl({one:["1 {{time}}","min\u016bte","min\u016btes"],other:["{{count}} {{time}}","min\u016bte","min\u016btes","min\u016btes","min\u016bt\u0113m"]}),aboutXHours:cl({one:["apm\u0113ram 1 {{time}}","stunda","stundas"],other:["apm\u0113ram {{count}} {{time}}","stunda","stundas","stundas","stund\u0101m"]}),xHours:cl({one:["1 {{time}}","stunda","stundas"],other:["{{count}} {{time}}","stunda","stundas","stundas","stund\u0101m"]}),xDays:cl({one:["1 {{time}}","diena","dienas"],other:["{{count}} {{time}}","diena","dienas","dienas","dien\u0101m"]}),aboutXWeeks:cl({one:["apm\u0113ram 1 {{time}}","ned\u0113\u013ca","ned\u0113\u013cas"],other:["apm\u0113ram {{count}} {{time}}","ned\u0113\u013ca","ned\u0113\u013cu","ned\u0113\u013cas","ned\u0113\u013c\u0101m"]}),xWeeks:cl({one:["1 {{time}}","ned\u0113\u013ca","ned\u0113\u013cas"],other:["{{count}} {{time}}","ned\u0113\u013ca","ned\u0113\u013cu","ned\u0113\u013cas","ned\u0113\u013c\u0101m"]}),aboutXMonths:cl({one:["apm\u0113ram 1 {{time}}","m\u0113nesis","m\u0113ne\u0161a"],other:["apm\u0113ram {{count}} {{time}}","m\u0113nesis","m\u0113ne\u0161i","m\u0113ne\u0161a","m\u0113ne\u0161iem"]}),xMonths:cl({one:["1 {{time}}","m\u0113nesis","m\u0113ne\u0161a"],other:["{{count}} {{time}}","m\u0113nesis","m\u0113ne\u0161i","m\u0113ne\u0161a","m\u0113ne\u0161iem"]}),aboutXYears:cl({one:["apm\u0113ram 1 {{time}}","gads","gada"],other:["apm\u0113ram {{count}} {{time}}","gads","gadi","gada","gadiem"]}),xYears:cl({one:["1 {{time}}","gads","gada"],other:["{{count}} {{time}}","gads","gadi","gada","gadiem"]}),overXYears:cl({one:["ilg\u0101k par 1 {{time}}","gadu","gadu"],other:["vair\u0101k nek\u0101 {{count}} {{time}}","gads","gadi","gada","gadiem"]}),almostXYears:cl({one:["gandr\u012bz 1 {{time}}","gads","gada"],other:["vair\u0101k nek\u0101 {{count}} {{time}}","gads","gadi","gada","gadiem"]})},hl=function(t,e,n){var r=dl[t](e,n);return null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"p\u0113c "+r:"pirms "+r:r},fl={date:U({formats:{full:"EEEE, y. 'gada' d. MMMM",long:"y. 'gada' d. MMMM",medium:"dd.MM.y.",short:"dd.MM.y."},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'plkst.' {{time}}",long:"{{date}} 'plkst.' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},pl=["sv\u0113tdien\u0101","pirmdien\u0101","otrdien\u0101","tre\u0161dien\u0101","ceturtdien\u0101","piektdien\u0101","sestdien\u0101"],ml={lastWeek:function(t,e,n){return be(t,e,n)?"eeee 'plkst.' p":"'Pag\u0101ju\u0161\u0101 "+pl[t.getUTCDay()]+" plkst.' p"},yesterday:"'Vakar plkst.' p",today:"'\u0160odien plkst.' p",tomorrow:"'R\u012bt plkst.' p",nextWeek:function(t,e,n){return be(t,e,n)?"eeee 'plkst.' p":"'N\u0101kamaj\u0101 "+pl[t.getUTCDay()]+" plkst.' p"},other:"P"},gl=function(t,e,n,r){var i=ml[t];return"function"===typeof i?i(e,n,r):i},bl={code:"lv",formatDistance:hl,formatLong:fl,formatRelative:gl,localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["p.m.\u0113","m.\u0113"],abbreviated:["p. m. \u0113.","m. \u0113."],wide:["pirms m\u016bsu \u0113ras","m\u016bsu \u0113r\u0101"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmais ceturksnis","otrais ceturksnis","tre\u0161ais ceturksnis","ceturtais ceturksnis"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmaj\u0101 ceturksn\u012b","otraj\u0101 ceturksn\u012b","tre\u0161aj\u0101 ceturksn\u012b","ceturtaj\u0101 ceturksn\u012b"]},defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","marts","apr.","maijs","j\u016bn.","j\u016bl.","aug.","sept.","okt.","nov.","dec."],wide:["janv\u0101ris","febru\u0101ris","marts","apr\u012blis","maijs","j\u016bnijs","j\u016blijs","augusts","septembris","oktobris","novembris","decembris"]},defaultWidth:"wide",formattingValues:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","mart\u0101","apr.","maijs","j\u016bn.","j\u016bl.","aug.","sept.","okt.","nov.","dec."],wide:["janv\u0101r\u012b","febru\u0101r\u012b","mart\u0101","apr\u012bl\u012b","maij\u0101","j\u016bnij\u0101","j\u016blij\u0101","august\u0101","septembr\u012b","oktobr\u012b","novembr\u012b","decembr\u012b"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["sv\u0113td.","pirmd.","otrd.","tre\u0161d.","ceturtd.","piektd.","sestd."],wide:["sv\u0113tdiena","pirmdiena","otrdiena","tre\u0161diena","ceturtdiena","piektdiena","sestdiena"]},defaultWidth:"wide",formattingValues:{narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["sv\u0113td.","pirmd.","otrd.","tre\u0161d.","ceturtd.","piektd.","sestd."],wide:["sv\u0113tdien\u0101","pirmdien\u0101","otrdien\u0101","tre\u0161dien\u0101","ceturtdien\u0101","piektdien\u0101","sestdien\u0101"]},defaultFormattingWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"r\u012bts",afternoon:"diena",evening:"vakars",night:"nakts"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"r\u012bts",afternoon:"p\u0113cpusd.",evening:"vakars",night:"nakts"},wide:{am:"am",pm:"pm",midnight:"pusnakts",noon:"pusdienlaiks",morning:"r\u012bts",afternoon:"p\u0113cpusdiena",evening:"vakars",night:"nakts"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"r\u012bt\u0101",afternoon:"dien\u0101",evening:"vakar\u0101",night:"nakt\u012b"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"r\u012bt\u0101",afternoon:"p\u0113cpusd.",evening:"vakar\u0101",night:"nakt\u012b"},wide:{am:"am",pm:"pm",midnight:"pusnakt\u012b",noon:"pusdienlaik\u0101",morning:"r\u012bt\u0101",afternoon:"p\u0113cpusdien\u0101",evening:"vakar\u0101",night:"nakt\u012b"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(p\.m\.\u0113|m\.\u0113)/i,abbreviated:/^(p\. m\. \u0113\.|m\. \u0113\.)/i,wide:/^(pirms m\u016bsu \u0113ras|m\u016bsu \u0113r\u0101)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^m/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|j\u0101)|otra(is|j\u0101)|tre\u0161a(is|j\u0101)|ceturta(is|j\u0101)) ceturksn(is|\u012b)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},defaultParseWidth:"wide",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|j\u016bn\.|j\u016bl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janv\u0101r(is|\u012b)|febru\u0101r(is|\u012b)|mart[s\u0101]|apr\u012bl(is|\u012b)|maij[s\u0101]|j\u016bnij[s\u0101]|j\u016blij[s\u0101]|august[s\u0101]|septembr(is|\u012b)|oktobr(is|\u012b)|novembr(is|\u012b)|decembr(is|\u012b))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^j\u016bn/i,/^j\u016bl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(sv\u0113td\.|pirmd\.|otrd.\|tre\u0161d\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(sv\u0113tdien(a|\u0101)|pirmdien(a|\u0101)|otrdien(a|\u0101)|tre\u0161dien(a|\u0101)|ceturtdien(a|\u0101)|piektdien(a|\u0101)|sestdien(a|\u0101))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(am|pm|pusn\.|pusd\.|r\u012bt(s|\u0101)|dien(a|\u0101)|vakar(s|\u0101)|nakt(s|\u012b))/,abbreviated:/^(am|pm|pusn\.|pusd\.|r\u012bt(s|\u0101)|p\u0113cpusd\.|vakar(s|\u0101)|nakt(s|\u012b))/,wide:/^(am|pm|pusnakt(s|\u012b)|pusdienlaik(s|\u0101)|r\u012bt(s|\u0101)|p\u0113cpusdien(a|\u0101)|vakar(s|\u0101)|nakt(s|\u012b))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|p\u0113c)/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},vl={lessThanXSeconds:{one:"\u043f\u043e\u043c\u0430\u043b\u043a\u0443 \u043e\u0434 \u0441\u0435\u043a\u0443\u043d\u0434\u0430",other:"\u043f\u043e\u043c\u0430\u043b\u043a\u0443 \u043e\u0434 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438"},xSeconds:{one:"1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430",other:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438"},halfAMinute:"\u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",lessThanXMinutes:{one:"\u043f\u043e\u043c\u0430\u043b\u043a\u0443 \u043e\u0434 \u043c\u0438\u043d\u0443\u0442\u0430",other:"\u043f\u043e\u043c\u0430\u043b\u043a\u0443 \u043e\u0434 {{count}} \u043c\u0438\u043d\u0443\u0442\u0438"},xMinutes:{one:"1 \u043c\u0438\u043d\u0443\u0442\u0430",other:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0438"},aboutXHours:{one:"\u043e\u043a\u043e\u043b\u0443 1 \u0447\u0430\u0441",other:"\u043e\u043a\u043e\u043b\u0443 {{count}} \u0447\u0430\u0441\u0430"},xHours:{one:"1 \u0447\u0430\u0441",other:"{{count}} \u0447\u0430\u0441\u0430"},xDays:{one:"1 \u0434\u0435\u043d",other:"{{count}} \u0434\u0435\u043d\u0430"},aboutXWeeks:{one:"\u043e\u043a\u043e\u043b\u0443 1 \u043d\u0435\u0434\u0435\u043b\u0430",other:"\u043e\u043a\u043e\u043b\u0443 {{count}} \u043c\u0435\u0441\u0435\u0446\u0438"},xWeeks:{one:"1 \u043d\u0435\u0434\u0435\u043b\u0430",other:"{{count}} \u043d\u0435\u0434\u0435\u043b\u0438"},aboutXMonths:{one:"\u043e\u043a\u043e\u043b\u0443 1 \u043c\u0435\u0441\u0435\u0446",other:"\u043e\u043a\u043e\u043b\u0443 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438"},xMonths:{one:"1 \u043c\u0435\u0441\u0435\u0446",other:"{{count}} \u043c\u0435\u0441\u0435\u0446\u0438"},aboutXYears:{one:"\u043e\u043a\u043e\u043b\u0443 1 \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043e\u043a\u043e\u043b\u0443 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},xYears:{one:"1 \u0433\u043e\u0434\u0438\u043d\u0430",other:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},overXYears:{one:"\u043f\u043e\u0432\u0435\u045c\u0435 \u043e\u0434 1 \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043f\u043e\u0432\u0435\u045c\u0435 \u043e\u0434 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},almostXYears:{one:"\u0431\u0435\u0437\u043c\u0430\u043b\u043a\u0443 1 \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u0431\u0435\u0437\u043c\u0430\u043b\u043a\u0443 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"}},yl=function(t,e,n){var r,i=vl[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u0437\u0430 "+r:"\u043f\u0440\u0435\u0434 "+r:r},wl={date:U({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},kl=["\u043d\u0435\u0434\u0435\u043b\u0430","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a","\u043f\u0435\u0442\u043e\u043a","\u0441\u0430\u0431\u043e\u0442\u0430"];function _l(t){var e=kl[t];switch(t){case 0:case 3:case 6:return"'\u043e\u0432\u0430 "+e+" \u0432o' p";case 1:case 2:case 4:case 5:return"'\u043e\u0432\u043e\u0458 "+e+" \u0432o' p"}}var Ol={lastWeek:function(t,e,n){var r=t.getUTCDay();return be(t,e,n)?_l(r):function(t){var e=kl[t];switch(t){case 0:case 3:case 6:return"'\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430 "+e+" \u0432\u043e' p";case 1:case 2:case 4:case 5:return"'\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442 "+e+" \u0432\u043e' p"}}(r)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432\u043e' p",today:"'\u0434\u0435\u043d\u0435\u0441 \u0432\u043e' p",tomorrow:"'\u0443\u0442\u0440\u0435 \u0432\u043e' p",nextWeek:function(t,e,n){var r=t.getUTCDay();return be(t,e,n)?_l(r):function(t){var e=kl[t];switch(t){case 0:case 3:case 6:return"'\u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 "+e+" \u0432o' p";case 1:case 2:case 4:case 5:return"'\u0441\u043b\u0435\u0434\u043d\u0438\u043e\u0442 "+e+" \u0432o' p"}}(r)},other:"P"},xl=function(t,e,n,r){var i=Ol[t];return"function"===typeof i?i(e,n,r):i},El={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"-\u0432\u0438";case 2:return n+"-\u0440\u0438";case 7:case 8:return n+"-\u043c\u0438"}return n+"-\u0442\u0438"},era:K({values:{narrow:["\u043f\u0440.\u043d.\u0435.","\u043d.\u0435."],abbreviated:["\u043f\u0440\u0435\u0434 \u043d. \u0435.","\u043d. \u0435."],wide:["\u043f\u0440\u0435\u0434 \u043d\u0430\u0448\u0430\u0442\u0430 \u0435\u0440\u0430","\u043d\u0430\u0448\u0430\u0442\u0430 \u0435\u0440\u0430"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0432\u0438 \u043a\u0432.","2-\u0440\u0438 \u043a\u0432.","3-\u0442\u0438 \u043a\u0432.","4-\u0442\u0438 \u043a\u0432."],wide:["1-\u0432\u0438 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0440\u0438 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0442\u0438 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0442\u0438 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{abbreviated:["\u0458\u0430\u043d","\u0444\u0435\u0432","\u043c\u0430\u0440","\u0430\u043f\u0440","\u043c\u0430\u0458","\u0458\u0443\u043d","\u0458\u0443\u043b","\u0430\u0432\u0433","\u0441\u0435\u043f\u0442","\u043e\u043a\u0442","\u043d\u043e\u0435\u043c","\u0434\u0435\u043a"],wide:["\u0458\u0430\u043d\u0443\u0430\u0440\u0438","\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0438\u043b","\u043c\u0430\u0458","\u0458\u0443\u043d\u0438","\u0458\u0443\u043b\u0438","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438","\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438","\u043d\u043e\u0435\u043c\u0432\u0440\u0438","\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0435","\u043f\u043e","\u0432\u0442","\u0441\u0440","\u0447\u0435","\u043f\u0435","\u0441\u0430"],abbreviated:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0432\u0442\u043e","\u0441\u0440\u0435","\u0447\u0435\u0442","\u043f\u0435\u0442","\u0441\u0430\u0431"],wide:["\u043d\u0435\u0434\u0435\u043b\u0430","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a","\u043f\u0435\u0442\u043e\u043a","\u0441\u0430\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:K({values:{wide:{am:"\u043f\u0440\u0435\u0442\u043f\u043b\u0430\u0434\u043d\u0435",pm:"\u043f\u043e\u043f\u043b\u0430\u0434\u043d\u0435",midnight:"\u043f\u043e\u043b\u043d\u043e\u045c",noon:"\u043d\u0430\u043f\u043b\u0430\u0434\u043d\u0435",morning:"\u043d\u0430\u0443\u0442\u0440\u043e",afternoon:"\u043f\u043e\u043f\u043b\u0430\u0434\u043d\u0435",evening:"\u043d\u0430\u0432\u0435\u0447\u0435\u0440",night:"\u043d\u043e\u045c\u0435"}},defaultWidth:"wide"})},jl=El,Sl={ordinalNumber:Z({matchPattern:/^(\d+)(-?[\u0432\u0440\u043c\u0442][\u0438])?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^((\u043f\u0440)?\u043d\.?\s?\u0435\.?)/i,abbreviated:/^((\u043f\u0440)?\u043d\.?\s?\u0435\.?)/i,wide:/^(\u043f\u0440\u0435\u0434 \u043d\u0430\u0448\u0430\u0442\u0430 \u0435\u0440\u0430|\u043d\u0430\u0448\u0430\u0442\u0430 \u0435\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u043f/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u0432\u0440\u0442]?\u0438?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u0432\u0440\u0442]?\u0438?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{abbreviated:/^(\u0458\u0430\u043d|\u0444\u0435\u0432|\u043c\u0430\u0440|\u0430\u043f\u0440|\u043c\u0430\u0458|\u0458\u0443\u043d|\u0458\u0443\u043b|\u0430\u0432\u0433|\u0441\u0435\u043f|\u043e\u043a\u0442|\u043d\u043e\u0435\u043c|\u0434\u0435\u043a)/i,wide:/^(\u0458\u0430\u043d\u0443\u0430\u0440\u0438|\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438|\u043c\u0430\u0440\u0442|\u0430\u043f\u0440\u0438\u043b|\u043c\u0430\u0458|\u0458\u0443\u043d\u0438|\u0458\u0443\u043b\u0438|\u0430\u0432\u0433\u0443\u0441\u0442|\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438|\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438|\u043d\u043e\u0435\u043c\u0432\u0440\u0438|\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0458\u0430/i,/^\u0424/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430\u0458/i,/^\u0458\u0443\u043d/i,/^\u0458\u0443\u043b/i,/^\u0430\u0432/i,/^\u0441\u0435/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e/i,/^\u0434\u0435/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u043d\u043f\u0432\u0441\u0447]/i,short:/^(\u043d\u0435|\u043f\u043e|\u0432\u0442|\u0441\u0440|\u0447\u0435|\u043f\u0435|\u0441\u0430)/i,abbreviated:/^(\u043d\u0435\u0434|\u043f\u043e\u043d|\u0432\u0442\u043e|\u0441\u0440\u0435|\u0447\u0435\u0442|\u043f\u0435\u0442|\u0441\u0430\u0431)/i,wide:/^(\u043d\u0435\u0434\u0435\u043b\u0430|\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a|\u0432\u0442\u043e\u0440\u043d\u0438\u043a|\u0441\u0440\u0435\u0434\u0430|\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a|\u043f\u0435\u0442\u043e\u043a|\u0441\u0430\u0431\u043e\u0442\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u043d[\u0435\u0434]/i,/^\u043f[\u043e\u043d]/i,/^\u0432\u0442/i,/^\u0441\u0440/i,/^\u0447[\u0435\u0442]/i,/^\u043f[\u0435\u0442]/i,/^\u0441[\u0430\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(\u043f\u0440\u0435\u0442\u043f|\u043f\u043e\u043f\u043b|\u043f\u043e\u043b\u043d\u043e\u045c|\u0443\u0442\u0440\u043e|\u043f\u043b\u0430\u0434\u043d\u0435|\u0432\u0435\u0447\u0435\u0440|\u043d\u043e\u045c)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/\u043f\u0440\u0435\u0442\u043f\u043b\u0430\u0434\u043d\u0435/i,pm:/\u043f\u043e\u043f\u043b\u0430\u0434\u043d\u0435/i,midnight:/\u043f\u043e\u043b\u043d\u043e\u045c/i,noon:/\u043d\u0430\u043f\u043b\u0430\u0434\u043d\u0435/i,morning:/\u043d\u0430\u0443\u0442\u0440\u043e/i,afternoon:/\u043f\u043e\u043f\u043b\u0430\u0434\u043d\u0435/i,evening:/\u043d\u0430\u0432\u0435\u0447\u0435\u0440/i,night:/\u043d\u043e\u045c\u0435/i}},defaultParseWidth:"any"})},Pl=Sl,Cl={code:"mk",formatDistance:yl,formatLong:wl,formatRelative:xl,localize:jl,match:Pl,options:{weekStartsOn:1,firstWeekContainsDate:4}},Tl=Cl,Ml={lessThanXSeconds:{one:"\u0441\u0435\u043a\u0443\u043d\u0434 \u0445\u04af\u0440\u044d\u0445\u0433\u04af\u0439",other:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u0445\u04af\u0440\u044d\u0445\u0433\u04af\u0439"},xSeconds:{one:"1 \u0441\u0435\u043a\u0443\u043d\u0434",other:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},halfAMinute:"\u0445\u0430\u0433\u0430\u0441 \u043c\u0438\u043d\u0443\u0442",lessThanXMinutes:{one:"\u043c\u0438\u043d\u0443\u0442 \u0445\u04af\u0440\u044d\u0445\u0433\u04af\u0439",other:"{{count}} \u043c\u0438\u043d\u0443\u0442 \u0445\u04af\u0440\u044d\u0445\u0433\u04af\u0439"},xMinutes:{one:"1 \u043c\u0438\u043d\u0443\u0442",other:"{{count}} \u043c\u0438\u043d\u0443\u0442"},aboutXHours:{one:"\u043e\u0439\u0440\u043e\u043b\u0446\u043e\u043e\u0433\u043e\u043e\u0440 1 \u0446\u0430\u0433",other:"\u043e\u0439\u0440\u043e\u043b\u0446\u043e\u043e\u0433\u043e\u043e\u0440 {{count}} \u0446\u0430\u0433"},xHours:{one:"1 \u0446\u0430\u0433",other:"{{count}} \u0446\u0430\u0433"},xDays:{one:"1 \u04e9\u0434\u04e9\u0440",other:"{{count}} \u04e9\u0434\u04e9\u0440"},aboutXWeeks:{one:"\u043e\u0439\u0440\u043e\u043b\u0446\u043e\u043e\u0433\u043e\u043e\u0440 1 \u0434\u043e\u043b\u043e\u043e \u0445\u043e\u043d\u043e\u0433",other:"\u043e\u0439\u0440\u043e\u043b\u0446\u043e\u043e\u0433\u043e\u043e\u0440 {{count}} \u0434\u043e\u043b\u043e\u043e \u0445\u043e\u043d\u043e\u0433"},xWeeks:{one:"1 \u0434\u043e\u043b\u043e\u043e \u0445\u043e\u043d\u043e\u0433",other:"{{count}} \u0434\u043e\u043b\u043e\u043e \u0445\u043e\u043d\u043e\u0433"},aboutXMonths:{one:"\u043e\u0439\u0440\u043e\u043b\u0446\u043e\u043e\u0433\u043e\u043e\u0440 1 \u0441\u0430\u0440",other:"\u043e\u0439\u0440\u043e\u043b\u0446\u043e\u043e\u0433\u043e\u043e\u0440 {{count}} \u0441\u0430\u0440"},xMonths:{one:"1 \u0441\u0430\u0440",other:"{{count}} \u0441\u0430\u0440"},aboutXYears:{one:"\u043e\u0439\u0440\u043e\u043b\u0446\u043e\u043e\u0433\u043e\u043e\u0440 1 \u0436\u0438\u043b",other:"\u043e\u0439\u0440\u043e\u043b\u0446\u043e\u043e\u0433\u043e\u043e\u0440 {{count}} \u0436\u0438\u043b"},xYears:{one:"1 \u0436\u0438\u043b",other:"{{count}} \u0436\u0438\u043b"},overXYears:{one:"1 \u0436\u0438\u043b \u0433\u0430\u0440\u0430\u043d",other:"{{count}} \u0436\u0438\u043b \u0433\u0430\u0440\u0430\u043d"},almostXYears:{one:"\u0431\u0430\u0440\u0430\u0433 1 \u0436\u0438\u043b",other:"\u0431\u0430\u0440\u0430\u0433 {{count}} \u0436\u0438\u043b"}},Al=function(t,e,n){var r,i=Ml[t];if(r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix){var o=r.split(" "),a=o.pop();switch(r=o.join(" "),a){case"\u0441\u0435\u043a\u0443\u043d\u0434":r+=" \u0441\u0435\u043a\u0443\u043d\u0434\u0438\u0439\u043d";break;case"\u043c\u0438\u043d\u0443\u0442":r+=" \u043c\u0438\u043d\u0443\u0442\u044b\u043d";break;case"\u0446\u0430\u0433":r+=" \u0446\u0430\u0433\u0438\u0439\u043d";break;case"\u04e9\u0434\u04e9\u0440":r+=" \u04e9\u0434\u0440\u0438\u0439\u043d";break;case"\u0441\u0430\u0440":r+=" \u0441\u0430\u0440\u044b\u043d";break;case"\u0436\u0438\u043b":r+=" \u0436\u0438\u043b\u0438\u0439\u043d";break;case"\u0445\u043e\u043d\u043e\u0433":r+=" \u0445\u043e\u043d\u043e\u0433\u0438\u0439\u043d";break;case"\u0433\u0430\u0440\u0430\u043d":r+=" \u0433\u0430\u0440\u0430\u043d\u044b";break;case"\u0445\u04af\u0440\u044d\u0445\u0433\u04af\u0439":r+=" \u0445\u04af\u0440\u044d\u0445\u0433\u04af\u0439 \u0445\u0443\u0433\u0430\u0446\u0430\u0430\u043d\u044b";break;default:r+=a+"-\u043d"}return n.comparison&&n.comparison>0?r+" \u0434\u0430\u0440\u0430\u0430":r+" \u04e9\u043c\u043d\u04e9"}return r},Dl={date:U({formats:{full:"y '\u043e\u043d\u044b' MMMM'\u044b\u043d' d, EEEE '\u0433\u0430\u0440\u0430\u0433'",long:"y '\u043e\u043d\u044b' MMMM'\u044b\u043d' d",medium:"y '\u043e\u043d\u044b' MMM'\u044b\u043d' d",short:"y.MM.dd"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Rl=Dl,Ll={lastWeek:"'\u04e9\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d' eeee '\u0433\u0430\u0440\u0430\u0433\u0438\u0439\u043d' p '\u0446\u0430\u0433\u0442'",yesterday:"'\u04e9\u0447\u0438\u0433\u0434\u04e9\u0440' p '\u0446\u0430\u0433\u0442'",today:"'\u04e9\u043d\u04e9\u04e9\u0434\u04e9\u0440' p '\u0446\u0430\u0433\u0442'",tomorrow:"'\u043c\u0430\u0440\u0433\u0430\u0430\u0448' p '\u0446\u0430\u0433\u0442'",nextWeek:"'\u0438\u0440\u044d\u0445' eeee '\u0433\u0430\u0440\u0430\u0433\u0438\u0439\u043d' p '\u0446\u0430\u0433\u0442'",other:"P"},Il=function(t,e,n,r){return Ll[t]},Wl={ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["\u041d\u0422\u04e8","\u041d\u0422"],abbreviated:["\u041d\u0422\u04e8","\u041d\u0422"],wide:["\u043d\u0438\u0439\u0442\u0438\u0439\u043d \u0442\u043e\u043e\u043b\u043b\u044b\u043d \u04e9\u043c\u043d\u04e9\u0445","\u043d\u0438\u0439\u0442\u0438\u0439\u043d \u0442\u043e\u043e\u043b\u043b\u044b\u043d"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["I","II","III","IV"],abbreviated:["I \u0443\u043b\u0438\u0440\u0430\u043b","II \u0443\u043b\u0438\u0440\u0430\u043b","III \u0443\u043b\u0438\u0440\u0430\u043b","IV \u0443\u043b\u0438\u0440\u0430\u043b"],wide:["1-\u0440 \u0443\u043b\u0438\u0440\u0430\u043b","2-\u0440 \u0443\u043b\u0438\u0440\u0430\u043b","3-\u0440 \u0443\u043b\u0438\u0440\u0430\u043b","4-\u0440 \u0443\u043b\u0438\u0440\u0430\u043b"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],abbreviated:["1-\u0440 \u0441\u0430\u0440","2-\u0440 \u0441\u0430\u0440","3-\u0440 \u0441\u0430\u0440","4-\u0440 \u0441\u0430\u0440","5-\u0440 \u0441\u0430\u0440","6-\u0440 \u0441\u0430\u0440","7-\u0440 \u0441\u0430\u0440","8-\u0440 \u0441\u0430\u0440","9-\u0440 \u0441\u0430\u0440","10-\u0440 \u0441\u0430\u0440","11-\u0440 \u0441\u0430\u0440","12-\u0440 \u0441\u0430\u0440"],wide:["\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0417\u0443\u0440\u0433\u0430\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u043e\u043b\u043e\u043e\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043d\u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440"]},defaultWidth:"wide",formattingValues:{narrow:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],abbreviated:["1-\u0440 \u0441\u0430\u0440","2-\u0440 \u0441\u0430\u0440","3-\u0440 \u0441\u0430\u0440","4-\u0440 \u0441\u0430\u0440","5-\u0440 \u0441\u0430\u0440","6-\u0440 \u0441\u0430\u0440","7-\u0440 \u0441\u0430\u0440","8-\u0440 \u0441\u0430\u0440","9-\u0440 \u0441\u0430\u0440","10-\u0440 \u0441\u0430\u0440","11-\u0440 \u0441\u0430\u0440","12-\u0440 \u0441\u0430\u0440"],wide:["\u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0433\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0434\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0442\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0437\u0443\u0440\u0433\u0430\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0434\u043e\u043b\u043e\u043e\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u043d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0435\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0430\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0430\u0440\u0432\u0430\u043d\u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0430\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["\u041d","\u0414","\u041c","\u041b","\u041f","\u0411","\u0411"],short:["\u041d\u044f","\u0414\u0430","\u041c\u044f","\u041b\u0445","\u041f\u04af","\u0411\u0430","\u0411\u044f"],abbreviated:["\u041d\u044f\u043c","\u0414\u0430\u0432","\u041c\u044f\u0433","\u041b\u0445\u0430","\u041f\u04af\u0440","\u0411\u0430\u0430","\u0411\u044f\u043c"],wide:["\u041d\u044f\u043c","\u0414\u0430\u0432\u0430\u0430","\u041c\u044f\u0433\u043c\u0430\u0440","\u041b\u0445\u0430\u0433\u0432\u0430","\u041f\u04af\u0440\u044d\u0432","\u0411\u0430\u0430\u0441\u0430\u043d","\u0411\u044f\u043c\u0431\u0430"]},defaultWidth:"wide",formattingValues:{narrow:["\u041d","\u0414","\u041c","\u041b","\u041f","\u0411","\u0411"],short:["\u041d\u044f","\u0414\u0430","\u041c\u044f","\u041b\u0445","\u041f\u04af","\u0411\u0430","\u0411\u044f"],abbreviated:["\u041d\u044f\u043c","\u0414\u0430\u0432","\u041c\u044f\u0433","\u041b\u0445\u0430","\u041f\u04af\u0440","\u0411\u0430\u0430","\u0411\u044f\u043c"],wide:["\u043d\u044f\u043c","\u0434\u0430\u0432\u0430\u0430","\u043c\u044f\u0433\u043c\u0430\u0440","\u043b\u0445\u0430\u0433\u0432\u0430","\u043f\u04af\u0440\u044d\u0432","\u0431\u0430\u0430\u0441\u0430\u043d","\u0431\u044f\u043c\u0431\u0430"]},defaultFormattingWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u04af.\u04e9.",pm:"\u04af.\u0445.",midnight:"\u0448\u04e9\u043d\u04e9 \u0434\u0443\u043d\u0434",noon:"\u04af\u0434 \u0434\u0443\u043d\u0434",morning:"\u04e9\u0433\u043b\u04e9\u04e9",afternoon:"\u04e9\u0434\u04e9\u0440",evening:"\u043e\u0440\u043e\u0439",night:"\u0448\u04e9\u043d\u04e9"},abbreviated:{am:"\u04af.\u04e9.",pm:"\u04af.\u0445.",midnight:"\u0448\u04e9\u043d\u04e9 \u0434\u0443\u043d\u0434",noon:"\u04af\u0434 \u0434\u0443\u043d\u0434",morning:"\u04e9\u0433\u043b\u04e9\u04e9",afternoon:"\u04e9\u0434\u04e9\u0440",evening:"\u043e\u0440\u043e\u0439",night:"\u0448\u04e9\u043d\u04e9"},wide:{am:"\u04af.\u04e9.",pm:"\u04af.\u0445.",midnight:"\u0448\u04e9\u043d\u04e9 \u0434\u0443\u043d\u0434",noon:"\u04af\u0434 \u0434\u0443\u043d\u0434",morning:"\u04e9\u0433\u043b\u04e9\u04e9",afternoon:"\u04e9\u0434\u04e9\u0440",evening:"\u043e\u0440\u043e\u0439",night:"\u0448\u04e9\u043d\u04e9"}},defaultWidth:"wide"})},zl=Wl,Nl={ordinalNumber:Z({matchPattern:/\d+/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u043d\u0442\u04e9|\u043d\u0442)/i,abbreviated:/^(\u043d\u0442\u04e9|\u043d\u0442)/i,wide:/^(\u043d\u0438\u0439\u0442\u0438\u0439\u043d \u0442\u043e\u043e\u043b\u043b\u044b\u043d \u04e9\u043c\u043d\u04e9|\u043d\u0438\u0439\u0442\u0438\u0439\u043d \u0442\u043e\u043e\u043b\u043b\u044b\u043d)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u043d\u0442\u04e9|\u043d\u0438\u0439\u0442\u0438\u0439\u043d \u0442\u043e\u043e\u043b\u043b\u044b\u043d \u04e9\u043c\u043d\u04e9)/i,/^(\u043d\u0442|\u043d\u0438\u0439\u0442\u0438\u0439\u043d \u0442\u043e\u043e\u043b\u043b\u044b\u043d)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^(iv|iii|ii|i)/i,abbreviated:/^(iv|iii|ii|i) \u0443\u043b\u0438\u0440\u0430\u043b/i,wide:/^[1-4]-\u0440 \u0443\u043b\u0438\u0440\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(i(\s|$)|1)/i,/^(ii(\s|$)|2)/i,/^(iii(\s|$)|3)/i,/^(iv(\s|$)|4)/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i,abbreviated:/^(1-\u0440 \u0441\u0430\u0440|2-\u0440 \u0441\u0430\u0440|3-\u0440 \u0441\u0430\u0440|4-\u0440 \u0441\u0430\u0440|5-\u0440 \u0441\u0430\u0440|6-\u0440 \u0441\u0430\u0440|7-\u0440 \u0441\u0430\u0440|8-\u0440 \u0441\u0430\u0440|9-\u0440 \u0441\u0430\u0440|10-\u0440 \u0441\u0430\u0440|11-\u0440 \u0441\u0430\u0440|12-\u0440 \u0441\u0430\u0440)/i,wide:/^(\u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440|\u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440|\u0433\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440|\u0434\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440|\u0442\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440|\u0437\u0443\u0440\u0433\u0430\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440|\u0434\u043e\u043b\u043e\u043e\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440|\u043d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440|\u0435\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440|\u0430\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440|\u0430\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440|\u0430\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i$/i,/^ii$/i,/^iii$/i,/^iv$/i,/^v$/i,/^vi$/i,/^vii$/i,/^viii$/i,/^ix$/i,/^x$/i,/^xi$/i,/^xii$/i],any:[/^(1|\u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440)/i,/^(2|\u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440)/i,/^(3|\u0433\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440)/i,/^(4|\u0434\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440)/i,/^(5|\u0442\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440)/i,/^(6|\u0437\u0443\u0440\u0433\u0430\u0430\u0434\u0443\u0433\u0430\u0430\u0440)/i,/^(7|\u0434\u043e\u043b\u043e\u043e\u0434\u0443\u0433\u0430\u0430\u0440)/i,/^(8|\u043d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440)/i,/^(9|\u0435\u0441\u0434\u04af\u0433\u044d\u044d\u0440)/i,/^(10|\u0430\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440)/i,/^(11|\u0430\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440)/i,/^(12|\u0430\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440)/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u043d\u0434\u043c\u043b\u043f\u0431\u0431]/i,short:/^(\u043d\u044f|\u0434\u0430|\u043c\u044f|\u043b\u0445|\u043f\u04af|\u0431\u0430|\u0431\u044f)/i,abbreviated:/^(\u043d\u044f\u043c|\u0434\u0430\u0432|\u043c\u044f\u0433|\u043b\u0445\u0430|\u043f\u04af\u0440|\u0431\u0430\u0430|\u0431\u044f\u043c)/i,wide:/^(\u043d\u044f\u043c|\u0434\u0430\u0432\u0430\u0430|\u043c\u044f\u0433\u043c\u0430\u0440|\u043b\u0445\u0430\u0433\u0432\u0430|\u043f\u04af\u0440\u044d\u0432|\u0431\u0430\u0430\u0441\u0430\u043d|\u0431\u044f\u043c\u0431\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u0434/i,/^\u043c/i,/^\u043b/i,/^\u043f/i,/^\u0431/i,/^\u0431/i],any:[/^\u043d\u044f/i,/^\u0434\u0430/i,/^\u043c\u044f/i,/^\u043b\u0445/i,/^\u043f\u04af/i,/^\u0431\u0430/i,/^\u0431\u044f/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u04af\.\u04e9\.|\u04af\.\u0445\.|\u0448\u04e9\u043d\u04e9 \u0434\u0443\u043d\u0434|\u04af\u0434 \u0434\u0443\u043d\u0434|\u04e9\u0433\u043b\u04e9\u04e9|\u04e9\u0434\u04e9\u0440|\u043e\u0440\u043e\u0439|\u0448\u04e9\u043d\u04e9)/i,any:/^(\u04af\.\u04e9\.|\u04af\.\u0445\.|\u0448\u04e9\u043d\u04e9 \u0434\u0443\u043d\u0434|\u04af\u0434 \u0434\u0443\u043d\u0434|\u04e9\u0433\u043b\u04e9\u04e9|\u04e9\u0434\u04e9\u0440|\u043e\u0440\u043e\u0439|\u0448\u04e9\u043d\u04e9)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u04af\.\u04e9\./i,pm:/^\u04af\.\u0445\./i,midnight:/^\u0448\u04e9\u043d\u04e9 \u0434\u0443\u043d\u0434/i,noon:/^\u04af\u0434 \u0434\u0443\u043d\u0434/i,morning:/\u04e9\u0433\u043b\u04e9\u04e9/i,afternoon:/\u04e9\u0434\u04e9\u0440/i,evening:/\u043e\u0440\u043e\u0439/i,night:/\u0448\u04e9\u043d\u04e9/i}},defaultParseWidth:"any"})},Fl=Nl,Hl={code:"mn",formatDistance:Al,formatLong:Rl,formatRelative:Il,localize:zl,match:Fl,options:{weekStartsOn:1,firstWeekContainsDate:1}},Bl=Hl,Vl={lessThanXSeconds:{one:"kurang dari 1 saat",other:"kurang dari {{count}} saat"},xSeconds:{one:"1 saat",other:"{{count}} saat"},halfAMinute:"setengah minit",lessThanXMinutes:{one:"kurang dari 1 minit",other:"kurang dari {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},ql=function(t,e,n){var r,i=Vl[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"dalam masa "+r:r+" yang lalu":r},Yl={date:U({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ul=Yl,Gl={lastWeek:"eeee 'lepas pada jam' p",yesterday:"'Semalam pada jam' p",today:"'Hari ini pada jam' p",tomorrow:"'Esok pada jam' p",nextWeek:"eeee 'pada jam' p",other:"P"},Xl=function(t,e,n,r){return Gl[t]},Jl={ordinalNumber:function(t,e){return"ke-"+Number(t)},era:K({values:{narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masihi","Masihi"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["S1","S2","S3","S4"],wide:["Suku pertama","Suku kedua","Suku ketiga","Suku keempat"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],wide:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},defaultWidth:"wide"}),day:K({values:{narrow:["A","I","S","R","K","J","S"],short:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],abbreviated:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],wide:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"am",pm:"pm",midnight:"tgh malam",noon:"tgh hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},defaultFormattingWidth:"wide"})},Kl=Jl,$l={ordinalNumber:Z({matchPattern:/^ke-(\d+)?/i,parsePattern:/petama|\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^(m)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},defaultParseWidth:"any"})},Ql=$l,Zl={code:"ms",formatDistance:ql,formatLong:Ul,formatRelative:Xl,localize:Kl,match:Ql,options:{weekStartsOn:1,firstWeekContainsDate:1}},tu=Zl,eu={lessThanXSeconds:{one:"inqas minn sekonda",other:"inqas minn {{count}} sekondi"},xSeconds:{one:"sekonda",other:"{{count}} sekondi"},halfAMinute:"nofs minuta",lessThanXMinutes:{one:"inqas minn minuta",other:"inqas minn {{count}} minuti"},xMinutes:{one:"minuta",other:"{{count}} minuti"},aboutXHours:{one:"madwar sieg\u0127a",other:"madwar {{count}} sieg\u0127at"},xHours:{one:"sieg\u0127a",other:"{{count}} sieg\u0127at"},xDays:{one:"\u0121urnata",other:"{{count}} \u0121ranet"},aboutXWeeks:{one:"madwar \u0121img\u0127a",other:"madwar {{count}} \u0121img\u0127at"},xWeeks:{one:"\u0121img\u0127a",other:"{{count}} \u0121img\u0127at"},aboutXMonths:{one:"madwar xahar",other:"madwar {{count}} xhur"},xMonths:{one:"xahar",other:"{{count}} xhur"},aboutXYears:{one:"madwar sena",two:"madwar sentejn",other:"madwar {{count}} snin"},xYears:{one:"sena",two:"sentejn",other:"{{count}} snin"},overXYears:{one:"aktar minn sena",two:"aktar minn sentejn",other:"aktar minn {{count}} snin"},almostXYears:{one:"kwa\u017ci sena",two:"kwa\u017ci sentejn",other:"kwa\u017ci {{count}} snin"}},nu=function(t,e,n){var r,i=eu[t];return r="string"===typeof i?i:1===e?i.one:2===e&&i.two?i.two:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"f'"+r:r+" ilu":r},ru={date:U({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},iu=ru,ou={lastWeek:"eeee 'li g\u0127adda' 'fil-'p",yesterday:"'Il-biera\u0127 fil-'p",today:"'Illum fil-'p",tomorrow:"'G\u0127ada fil-'p",nextWeek:"eeee 'fil-'p",other:"P"},au=function(t,e,n,r){return ou[t]},su={code:"mt",formatDistance:nu,formatLong:iu,formatRelative:au,localize:{ordinalNumber:function(t,e){return Number(t)+"\xba"},era:K({values:{narrow:["Q","W"],abbreviated:["QK","WK"],wide:["qabel Kristu","wara Kristu"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kwart","2. kwart","3. kwart","4. kwart"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","\u0120","L","A","S","O","N","D"],abbreviated:["Jan","Fra","Mar","Apr","Mej","\u0120un","Lul","Aww","Set","Ott","Nov","Di\u010b"],wide:["Jannar","Frar","Marzu","April","Mejju","\u0120unju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Di\u010bembru"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u0126","T","T","E","\u0126","\u0120","S"],short:["\u0126a","Tn","Tl","Er","\u0126a","\u0120i","Si"],abbreviated:["\u0126ad","Tne","Tli","Erb","\u0126am","\u0120im","Sib"],wide:["Il-\u0126add","It-Tnejn","It-Tlieta","L-Erbg\u0127a","Il-\u0126amis","Il-\u0120img\u0127a","Is-Sibt"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"nofsillejl",noon:"nofsinhar",morning:"g\u0127odwa",afternoon:"wara nofsinhar",evening:"filg\u0127axija",night:"lejl"},abbreviated:{am:"AM",pm:"PM",midnight:"nofsillejl",noon:"nofsinhar",morning:"g\u0127odwa",afternoon:"wara nofsinhar",evening:"filg\u0127axija",night:"lejl"},wide:{am:"a.m.",pm:"p.m.",midnight:"nofsillejl",noon:"nofsinhar",morning:"g\u0127odwa",afternoon:"wara nofsinhar",evening:"filg\u0127axija",night:"lejl"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filg\u0127odu",afternoon:"wara nofsinhar",evening:"filg\u0127axija",night:"billejl"},abbreviated:{am:"AM",pm:"PM",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filg\u0127odu",afternoon:"wara nofsinhar",evening:"filg\u0127axija",night:"billejl"},wide:{am:"a.m.",pm:"p.m.",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filg\u0127odu",afternoon:"wara nofsinhar",evening:"filg\u0127axija",night:"billejl"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\xba)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(q|w)/i,abbreviated:/^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i,wide:/^(qabel kristu|before common era|wara kristu|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(q|b)/i,/^(w|c)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](\.)? kwart/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmaglsond]/i,abbreviated:/^(jan|fra|mar|apr|mej|\u0121un|lul|aww|set|ott|nov|di\u010b)/i,wide:/^(jannar|frar|marzu|april|mejju|\u0121unju|lulju|awwissu|settembru|ottubru|novembru|di\u010bembru)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^\u0121/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mej/i,/^\u0121/i,/^l/i,/^aw/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u0127te\u0121s]/i,short:/^(\u0127a|tn|tl|er|\u0127a|\u0121i|si)/i,abbreviated:/^(\u0127ad|tne|tli|erb|\u0127am|\u0121im|sib)/i,wide:/^(il-\u0127add|it-tnejn|it-tlieta|l-erbg\u0127a|il-\u0127amis|il-\u0121img\u0127a|is-sibt)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0127/i,/^t/i,/^t/i,/^e/i,/^\u0127/i,/^\u0121/i,/^s/i],any:[/^(il-)?\u0127ad/i,/^(it-)?tn/i,/^(it-)?tl/i,/^(l-)?er/i,/^(il-)?ham/i,/^(il-)?\u0121i/i,/^(is-)?si/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|f'nofsillejl|f'nofsinhar|(ta') (g\u0127odwa|wara nofsinhar|filg\u0127axija|lejl))/i,any:/^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (g\u0127odwa|wara nofsinhar|filg\u0127axija|lejl))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^f'nofsillejl/i,noon:/^f'nofsinhar/i,morning:/g\u0127odwa/i,afternoon:/wara(\s.*)nofsinhar/i,evening:/filg\u0127axija/i,night:/lejl/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},lu={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en m\xe5ned",other:"omtrent {{count}} m\xe5neder"},xMonths:{one:"en m\xe5ned",other:"{{count}} m\xe5neder"},aboutXYears:{one:"omtrent ett \xe5r",other:"omtrent {{count}} \xe5r"},xYears:{one:"ett \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"over ett \xe5r",other:"over {{count}} \xe5r"},almostXYears:{one:"nesten ett \xe5r",other:"nesten {{count}} \xe5r"}},uu=function(t,e,n){var r,i=lu[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" siden":r},cu={date:U({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},du={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i g\xe5r kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},hu={code:"nb",formatDistance:uu,formatLong:cu,formatRelative:function(t,e,n,r){return du[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["f\xf8r Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf8","ma","ti","on","to","fr","l\xf8"],abbreviated:["s\xf8n","man","tir","ons","tor","fre","l\xf8r"],wide:["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morgenen",afternoon:"p\xe5 ettermiddagen",evening:"p\xe5 kvelden",night:"p\xe5 natten"}},defaultWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(f\xf8r Kristus|f\xf8r v\xe5r tid|etter Kristus|v\xe5r tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtofl]/i,short:/^(s\xf8|ma|ti|on|to|fr|l\xf8)/i,abbreviated:/^(s\xf8n|man|tir|ons|tor|fre|l\xf8r)/i,wide:/^(s\xf8ndag|mandag|tirsdag|onsdag|torsdag|fredag|l\xf8rdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(midnatt|middag|(p\xe5) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(p\xe5) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},fu={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},pu=function(t,e,n){var r,i=fu[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},mu={date:U({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},gu={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},bu={code:"nl",formatDistance:pu,formatLong:mu,formatRelative:function(t,e,n,r){return gu[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"e"},era:K({values:{narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},defaultWidth:"wide"}),day:K({values:{narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},defaultWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},vu={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},yu=function(t,e,n){var r,i=vu[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},wu={date:U({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ku={lastWeek:"'vorige' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},_u={code:"nl-BE",formatDistance:yu,formatLong:wu,formatRelative:function(t,e,n,r){return ku[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"e"},era:K({values:{narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},defaultWidth:"wide"}),day:K({values:{narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"}},defaultWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ou={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein m\xe5nad",other:"omtrent {{count}} m\xe5nader"},xMonths:{one:"ein m\xe5nad",other:"{{count}} m\xe5nader"},aboutXYears:{one:"omtrent eitt \xe5r",other:"omtrent {{count}} \xe5r"},xYears:{one:"eitt \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"over eitt \xe5r",other:"over {{count}} \xe5r"},almostXYears:{one:"nesten eitt \xe5r",other:"nesten {{count}} \xe5r"}},xu=["null","ein","to","tre","fire","fem","seks","sju","\xe5tte","ni","ti","elleve","tolv"],Eu=function(t,e,n){var r,i=Ou[t];return r="string"===typeof i?i:1===e?i.one:n&&n.onlyNumeric?i.other.replace("{{count}}",String(e)):i.other.replace("{{count}}",e<13?xu[e]:String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" sidan":r},ju={date:U({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Su={lastWeek:"'f\xf8rre' eeee 'kl.' p",yesterday:"'i g\xe5r kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Pu={code:"nn",formatDistance:Eu,formatLong:ju,formatRelative:function(t,e,n,r){return Su[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["f\xf8r Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","T","O","T","F","L"],short:["su","m\xe5","ty","on","to","fr","lau"],abbreviated:["sun","m\xe5n","tys","ons","tor","fre","laur"],wide:["sundag","m\xe5ndag","tysdag","onsdag","torsdag","fredag","laurdag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morgonen",afternoon:"p\xe5 ettermiddagen",evening:"p\xe5 kvelden",night:"p\xe5 natta"}},defaultWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(f\xf8r Kristus|f\xf8r v\xe5r tid|etter Kristus|v\xe5r tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtofl]/i,short:/^(su|m\xe5|ty|on|to|fr|la)/i,abbreviated:/^(sun|m\xe5n|tys|ons|tor|fre|laur)/i,wide:/^(sundag|m\xe5ndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(midnatt|middag|(p\xe5) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(p\xe5) (morgonen|ettermiddagen|kvelden|natta))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Cu={lessThanXSeconds:{one:"mens d\u2019una segonda",other:"mens de {{count}} segondas"},xSeconds:{one:"1 segonda",other:"{{count}} segondas"},halfAMinute:"30 segondas",lessThanXMinutes:{one:"mens d\u2019una minuta",other:"mens de {{count}} minutas"},xMinutes:{one:"1 minuta",other:"{{count}} minutas"},aboutXHours:{one:"environ 1 ora",other:"environ {{count}} oras"},xHours:{one:"1 ora",other:"{{count}} oras"},xDays:{one:"1 jorn",other:"{{count}} jorns"},aboutXWeeks:{one:"environ 1 setmana",other:"environ {{count}} setmanas"},xWeeks:{one:"1 setmana",other:"{{count}} setmanas"},aboutXMonths:{one:"environ 1 mes",other:"environ {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"mai d\u2019un an",other:"mai de {{count}} ans"},almostXYears:{one:"gaireben un an",other:"gaireben {{count}} ans"}},Tu=function(t,e,n){var r,i=Cu[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"d\u2019aqu\xed "+r:"fa "+r:r},Mu={date:U({formats:{full:"EEEE d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'a' {{time}}",long:"{{date}} 'a' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Au={lastWeek:"eeee 'passat a' p",yesterday:"'i\xe8r a' p",today:"'u\xe8i a' p",tomorrow:"'deman a' p",nextWeek:"eeee 'a' p",other:"P"},Du={code:"oc",formatDistance:Tu,formatLong:Mu,formatRelative:function(t,e,n,r){return Au[t]},localize:{ordinalNumber:function(t,e){var n,r=Number(t),i=null===e||void 0===e?void 0:e.unit;switch(r){case 1:n="\xe8r";break;case 2:n="nd";break;default:n="en"}return"year"!==i&&"week"!==i&&"hour"!==i&&"minute"!==i&&"second"!==i||(n+="a"),r+n},era:K({values:{narrow:["ab. J.C.","apr. J.C."],abbreviated:["ab. J.C.","apr. J.C."],wide:["abans J\xe8sus-Crist","apr\xe8s J\xe8sus-Crist"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1\xe8r trim.","2nd trim.","3en trim.","4en trim."],wide:["1\xe8r trim\xe8stre","2nd trim\xe8stre","3en trim\xe8stre","4en trim\xe8stre"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["GN","FB","M\xc7","AB","MA","JN","JL","AG","ST","OC","NV","DC"],abbreviated:["gen.","febr.","mar\xe7","abr.","mai","junh","jul.","ag.","set.","oct.","nov.","dec."],wide:["geni\xe8r","febri\xe8r","mar\xe7","abril","mai","junh","julhet","agost","setembre","oct\xf2bre","novembre","decembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],short:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],wide:["dimenge","diluns","dimars","dim\xe8cres","dij\xf2us","divendres","dissabte"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"am",pm:"pm",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"matin",afternoon:"apr\xe8p-mi\xe8gjorn",evening:"v\xe8spre",night:"nu\xe8ch"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"matin",afternoon:"apr\xe8p-mi\xe8gjorn",evening:"v\xe8spre",night:"nu\xe8ch"},wide:{am:"a.m.",pm:"p.m.",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"matin",afternoon:"apr\xe8p-mi\xe8gjorn",evening:"v\xe8spre",night:"nu\xe8ch"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"del matin",afternoon:"de l\u2019apr\xe8p-mi\xe8gjorn",evening:"del ser",night:"de la nu\xe8ch"},abbreviated:{am:"AM",pm:"PM",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"del matin",afternoon:"de l\u2019apr\xe8p-mi\xe8gjorn",evening:"del ser",night:"de la nu\xe8ch"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"del matin",afternoon:"de l\u2019apr\xe8p-mi\xe8gjorn",evening:"del ser",night:"de la nu\xe8ch"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\xe8r|nd|en)?[a]?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i,abbreviated:/^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(abans J\xe8sus-Crist|apr\xe8s J\xe8sus-Crist)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ab/i,/^ap/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^T[1234]/i,abbreviated:/^[1234](\xe8r|nd|en)? trim\.?/i,wide:/^[1234](\xe8r|nd|en)? trim\xe8stre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(GN|FB|M\xc7|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i,abbreviated:/^(gen|febr|mar\xe7|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i,wide:/^(geni\xe8r|febri\xe8r|mar\xe7|abril|mai|junh|julhet|agost|setembre|oct\xf2bre|novembre|decembre)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^g/i,/^f/i,/^ma[r?]|M\xc7/i,/^ab/i,/^ma[i?]/i,/^ju[n?]|JN/i,/^ju[l?]|JL/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^d[glmcjvs]\.?/i,short:/^d[glmcjvs]\.?/i,abbreviated:/^d[glmcjvs]\.?/i,wide:/^(dimenge|diluns|dimars|dim\xe8cres|dij\xf2us|divendres|dissabte)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],short:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],abbreviated:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],any:[/^dg|dime/i,/^dl|dil/i,/^dm|dima/i,/^dc|dim\xe8/i,/^dj|dij/i,/^dv|div/i,/^ds|dis/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l\u2019)(matin|apr\xe8p-mi\xe8gjorn|v\xe8spre|ser|nu\xe8ch))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/(^a)|ante meridiem/i,pm:/(^p)|post meridiem/i,midnight:/^mi\xe8j/i,noon:/^mi\xe8g/i,morning:/matin/i,afternoon:/apr\xe8p-mi\xe8gjorn/i,evening:/v\xe8spre|ser/i,night:/nu\xe8ch/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ru={lessThanXSeconds:{one:{regular:"mniej ni\u017c sekunda",past:"mniej ni\u017c sekund\u0119",future:"mniej ni\u017c sekund\u0119"},twoFour:"mniej ni\u017c {{count}} sekundy",other:"mniej ni\u017c {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekund\u0119",future:"sekund\u0119"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"p\xf3\u0142 minuty",twoFour:"p\xf3\u0142 minuty",other:"p\xf3\u0142 minuty"},lessThanXMinutes:{one:{regular:"mniej ni\u017c minuta",past:"mniej ni\u017c minut\u0119",future:"mniej ni\u017c minut\u0119"},twoFour:"mniej ni\u017c {{count}} minuty",other:"mniej ni\u017c {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minut\u0119",future:"minut\u0119"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"oko\u0142o godziny",past:"oko\u0142o godziny",future:"oko\u0142o godzin\u0119"},twoFour:"oko\u0142o {{count}} godziny",other:"oko\u0142o {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzin\u0119",future:"godzin\u0119"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzie\u0144",past:"dzie\u0144",future:"1 dzie\u0144"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"oko\u0142o tygodnia",twoFour:"oko\u0142o {{count}} tygodni",other:"oko\u0142o {{count}} tygodni"},xWeeks:{one:"tydzie\u0144",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"oko\u0142o miesi\u0105c",twoFour:"oko\u0142o {{count}} miesi\u0105ce",other:"oko\u0142o {{count}} miesi\u0119cy"},xMonths:{one:"miesi\u0105c",twoFour:"{{count}} miesi\u0105ce",other:"{{count}} miesi\u0119cy"},aboutXYears:{one:"oko\u0142o rok",twoFour:"oko\u0142o {{count}} lata",other:"oko\u0142o {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function Lu(t,e,n){var r=function(t,e){if(1===e)return t.one;var n=e%100;if(n<=20&&n>10)return t.other;var r=n%10;return r>=2&&r<=4?t.twoFour:t.other}(t,e);return("string"===typeof r?r:r[n]).replace("{{count}}",String(e))}var Iu=function(t,e,n){var r=Ru[t];return null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"za "+Lu(r,e,"future"):Lu(r,e,"past")+" temu":Lu(r,e,"regular")},Wu={date:U({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},zu={masculine:"ostatni",feminine:"ostatnia"},Nu={masculine:"ten",feminine:"ta"},Fu={masculine:"nast\u0119pny",feminine:"nast\u0119pna"},Hu={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function Bu(t,e,n,r){var i;if(be(e,n,r))i=Nu;else if("lastWeek"===t)i=zu;else{if("nextWeek"!==t)throw new Error("Cannot determine adjectives for token ".concat(t));i=Fu}var o=e.getUTCDay(),a=i[Hu[o]];return"'".concat(a,"' eeee 'o' p")}var Vu={lastWeek:Bu,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:Bu,other:"P"},qu=function(t,e,n,r){var i=Vu[t];return"function"===typeof i?i(t,e,n,r):i},Yu={code:"pl",formatDistance:Iu,formatLong:Wu,formatRelative:qu,localize:{ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed nasz\u0105 er\u0105","naszej ery"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwarta\u0142","II kwarta\u0142","III kwarta\u0142","IV kwarta\u0142"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017a","lis","gru"],wide:["stycze\u0144","luty","marzec","kwiecie\u0144","maj","czerwiec","lipiec","sierpie\u0144","wrzesie\u0144","pa\u017adziernik","listopad","grudzie\u0144"]},defaultWidth:"wide",formattingValues:{narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017a","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","wrze\u015bnia","pa\u017adziernika","listopada","grudnia"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["N","P","W","\u015a","C","P","S"],short:["nie","pon","wto","\u015bro","czw","pi\u0105","sob"],abbreviated:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],wide:["niedziela","poniedzia\u0142ek","wtorek","\u015broda","czwartek","pi\u0105tek","sobota"]},defaultWidth:"wide",formattingValues:{narrow:["n","p","w","\u015b","c","p","s"],short:["nie","pon","wto","\u015bro","czw","pi\u0105","sob"],abbreviated:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],wide:["niedziela","poniedzia\u0142ek","wtorek","\u015broda","czwartek","pi\u0105tek","sobota"]},defaultFormattingWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"p\xf3\u0142n.",noon:"po\u0142",morning:"rano",afternoon:"popo\u0142.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"p\xf3\u0142noc",noon:"po\u0142udnie",morning:"rano",afternoon:"popo\u0142udnie",evening:"wiecz\xf3r",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"p\xf3\u0142noc",noon:"po\u0142udnie",morning:"rano",afternoon:"popo\u0142udnie",evening:"wiecz\xf3r",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"o p\xf3\u0142n.",noon:"w po\u0142.",morning:"rano",afternoon:"po po\u0142.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o p\xf3\u0142nocy",noon:"w po\u0142udnie",morning:"rano",afternoon:"po po\u0142udniu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o p\xf3\u0142nocy",noon:"w po\u0142udnie",morning:"rano",afternoon:"po po\u0142udniu",evening:"wieczorem",night:"w nocy"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(\u0105|a)\s*er(\u0105|a)|naszej\s*ery)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(\u0142|l)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(\u017a|z)|lis|gru)/i,wide:/^(stycznia|stycze(\u0144|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(\u0144|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(\u0144|n)|wrze(\u015b|s)nia|wrzesie(\u0144|n)|pa(\u017a|z)dziernika|pa(\u017a|z)dziernik|listopada|listopad|grudnia|grudzie(\u0144|n))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[npw\u015bcs]/i,short:/^(nie|pon|wto|(\u015b|s)ro|czw|pi(\u0105|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(\u015b|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(\u0142|l)ek|wtorek|(\u015b|s)roda|czwartek|pi(\u0105|a)tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^\u015b/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(\u015b|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(\u015b|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(^a$|^p$|p\xf3(\u0142|l)n\.?|o\s*p\xf3(\u0142|l)n\.?|po(\u0142|l)\.?|w\s*po(\u0142|l)\.?|po\s*po(\u0142|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|p\xf3(\u0142|l)noc|o\s*p\xf3(\u0142|l)nocy|po(\u0142|l)udnie|w\s*po(\u0142|l)udnie|popo(\u0142|l)udnie|po\s*po(\u0142|l)udniu|rano|wiecz\xf3r|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/p\xf3(\u0142|l)n/i,noon:/po(\u0142|l)/i,morning:/rano/i,afternoon:/po\s*po(\u0142|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/p\xf3(\u0142|l)n/i,noon:/po(\u0142|l)/i,morning:/rano/i,afternoon:/po\s*po(\u0142|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Uu={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 m\xeas",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Gu=function(t,e,n){var r,i=Uu[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+r:"h\xe1 "+r:r},Xu={date:U({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ju={lastWeek:function(t){var e=t.getUTCDay();return"'"+(0===e||6===e?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},Ku=function(t,e,n,r){var i=Ju[t];return"function"===typeof i?i(e):i},$u={code:"pt",formatDistance:Gu,formatLong:Xu,formatRelative:Ku,localize:{ordinalNumber:function(t,e){return Number(t)+"\xba"},era:K({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:K({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","s\xe1b"],abbreviated:["dom","seg","ter","qua","qui","sex","s\xe1b"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\xba|\xaa)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba|\xaa)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[\xe1a]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[\xe1a]b)/i,wide:/^(domingo|segunda-?\s?feira|ter\xe7a-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[\xe1a]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[\xe1a]/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[\xe3a]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[\xe3a]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[\xe3a]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Qu={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Zu=function(t,e,n){var r,i=Qu[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"em "+r:"h\xe1 "+r:r},tc={date:U({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ec={lastWeek:function(t){var e=t.getUTCDay();return"'"+(0===e||6===e?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},nc=function(t,e,n,r){var i=ec[t];return"function"===typeof i?i(e):i},rc={code:"pt-BR",formatDistance:Zu,formatLong:tc,formatRelative:nc,localize:{ordinalNumber:function(t,e){var n=Number(t);return"week"===(null===e||void 0===e?void 0:e.unit)?n+"\xaa":n+"\xba"},era:K({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)[\xba\xaao]?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,short:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[a\xe1]b)/i,wide:/^(domingo|(segunda|ter[c\xe7]a|quarta|quinta|sexta)([- ]feira)?|s[a\xe1]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[a\xe1]b/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manh\xe3|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manh\xe3|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manh\xe3/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},ic={lessThanXSeconds:{one:"mai pu\u021bin de o secund\u0103",other:"mai pu\u021bin de {{count}} secunde"},xSeconds:{one:"1 secund\u0103",other:"{{count}} secunde"},halfAMinute:"jum\u0103tate de minut",lessThanXMinutes:{one:"mai pu\u021bin de un minut",other:"mai pu\u021bin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 or\u0103",other:"circa {{count}} ore"},xHours:{one:"1 or\u0103",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o s\u0103pt\u0103m\xe2n\u0103",other:"circa {{count}} s\u0103pt\u0103m\xe2ni"},xWeeks:{one:"1 s\u0103pt\u0103m\xe2n\u0103",other:"{{count}} s\u0103pt\u0103m\xe2ni"},aboutXMonths:{one:"circa 1 lun\u0103",other:"circa {{count}} luni"},xMonths:{one:"1 lun\u0103",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},oc=function(t,e,n){var r,i=ic[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\xeen "+r:r+" \xeen urm\u0103":r},ac={date:U({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},sc={lastWeek:"eeee 'trecut\u0103 la' p",yesterday:"'ieri la' p",today:"'ast\u0103zi la' p",tomorrow:"'m\xe2ine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},lc={code:"ro",formatDistance:oc,formatLong:ac,formatRelative:function(t,e,n,r){return sc[t]},localize:{ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["\xce","D"],abbreviated:["\xce.d.C.","D.C."],wide:["\xcenainte de Cristos","Dup\u0103 Cristos"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},defaultWidth:"wide"}),day:K({values:{narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","s\xe2"],abbreviated:["dum","lun","mar","mie","joi","vin","s\xe2m"],wide:["duminic\u0103","luni","mar\u021bi","miercuri","joi","vineri","s\xe2mb\u0103t\u0103"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\xce|D)/i,abbreviated:/^(\xce\.?\s?d\.?\s?C\.?|\xce\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(\xcenainte de Cristos|\xcenaintea erei noastre|Dup\u0103 Cristos|Era noastr\u0103)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\xceC/i,/^DC/i],wide:[/^(\xcenainte de Cristos|\xcenaintea erei noastre)/i,/^(Dup\u0103 Cristos|Era noastr\u0103)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|s\xe2)/i,wide:/^(duminica|luni|mar\u0163i|miercuri|joi|vineri|s\xe2mb\u0103t\u0103)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mn|a|(diminea\u0163a|dup\u0103-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nop\u021bii|amiaza|(diminea\u0163a|dup\u0103-amiaza|seara|noaptea))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/diminea\u0163a/i,afternoon:/dup\u0103-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function uc(t,e){if(void 0!==t.one&&1===e)return t.one;var n=e%10,r=e%100;return 1===n&&11!==r?t.singularNominative.replace("{{count}}",String(e)):n>=2&&n<=4&&(r<10||r>20)?t.singularGenitive.replace("{{count}}",String(e)):t.pluralGenitive.replace("{{count}}",String(e))}function cc(t){return function(e,n){return null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?t.future?uc(t.future,e):"\u0447\u0435\u0440\u0435\u0437 "+uc(t.regular,e):t.past?uc(t.past,e):uc(t.regular,e)+" \u043d\u0430\u0437\u0430\u0434":uc(t.regular,e)}}var dc={lessThanXSeconds:cc({regular:{one:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:cc({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043d\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u043d\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:function(t,e){return null!==e&&void 0!==e&&e.addSuffix?e.comparison&&e.comparison>0?"\u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b":"\u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434":"\u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b"},lessThanXMinutes:cc({regular:{one:"\u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0438\u043d\u0443\u0442\u044b",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442"},future:{one:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043c\u0438\u043d\u0443\u0442\u0443",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u0443",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442"}}),xMinutes:cc({regular:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0430",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442"},past:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442 \u043d\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442"}}),aboutXHours:cc({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u043e\u0432",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u043e\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u043e\u0432"}}),xHours:cc({regular:{singularNominative:"{{count}} \u0447\u0430\u0441",singularGenitive:"{{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"{{count}} \u0447\u0430\u0441\u043e\u0432"}}),xDays:cc({regular:{singularNominative:"{{count}} \u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043d\u044f",pluralGenitive:"{{count}} \u0434\u043d\u0435\u0439"}}),aboutXWeeks:cc({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u0438",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u044c",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u044e",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"}}),xWeeks:cc({regular:{singularNominative:"{{count}} \u043d\u0435\u0434\u0435\u043b\u044f",singularGenitive:"{{count}} \u043d\u0435\u0434\u0435\u043b\u0438",pluralGenitive:"{{count}} \u043d\u0435\u0434\u0435\u043b\u044c"}}),aboutXMonths:cc({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"}}),xMonths:cc({regular:{singularNominative:"{{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0430",pluralGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"}}),aboutXYears:cc({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043b\u0435\u0442",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}}),xYears:cc({regular:{singularNominative:"{{count}} \u0433\u043e\u0434",singularGenitive:"{{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"{{count}} \u043b\u0435\u0442"}}),overXYears:cc({regular:{singularNominative:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u043b\u0435\u0442",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}}),almostXYears:cc({regular:{singularNominative:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}})},hc=function(t,e,n){return dc[t](e,n)},fc={date:U({formats:{full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},pc=["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0443","\u0441\u0443\u0431\u0431\u043e\u0442\u0443"];function mc(t){var e=pc[t];return 2===t?"'\u0432\u043e "+e+" \u0432' p":"'\u0432 "+e+" \u0432' p"}var gc={lastWeek:function(t,e,n){var r=t.getUTCDay();return be(t,e,n)?mc(r):function(t){var e=pc[t];switch(t){case 0:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0435 "+e+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 "+e+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u0443\u044e "+e+" \u0432' p"}}(r)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432' p",today:"'\u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u0432' p",nextWeek:function(t,e,n){var r=t.getUTCDay();return be(t,e,n)?mc(r):function(t){var e=pc[t];switch(t){case 0:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 "+e+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 "+e+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e "+e+" \u0432' p"}}(r)},other:"P"},bc=function(t,e,n,r){var i=gc[t];return"function"===typeof i?i(e,n,r):i},vc={code:"ru",formatDistance:hc,formatLong:fc,formatRelative:bc,localize:{ordinalNumber:function(t,e){var n=Number(t),r=null===e||void 0===e?void 0:e.unit;return n+("date"===r?"-\u0435":"week"===r||"minute"===r||"second"===r?"-\u044f":"-\u0439")},era:K({values:{narrow:["\u0434\u043e \u043d.\u044d.","\u043d.\u044d."],abbreviated:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],wide:["\u0434\u043e \u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b","\u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440.","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],wide:["\u044f\u043d\u0432\u0430\u0440\u044c","\u0444\u0435\u0432\u0440\u0430\u043b\u044c","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0435\u043b\u044c","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u043e\u043a\u0442\u044f\u0431\u0440\u044c","\u043d\u043e\u044f\u0431\u0440\u044c","\u0434\u0435\u043a\u0430\u0431\u0440\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440.","\u0430\u043f\u0440.","\u043c\u0430\u044f","\u0438\u044e\u043d.","\u0438\u044e\u043b.","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],wide:["\u044f\u043d\u0432\u0430\u0440\u044f","\u0444\u0435\u0432\u0440\u0430\u043b\u044f","\u043c\u0430\u0440\u0442\u0430","\u0430\u043f\u0440\u0435\u043b\u044f","\u043c\u0430\u044f","\u0438\u044e\u043d\u044f","\u0438\u044e\u043b\u044f","\u0430\u0432\u0433\u0443\u0441\u0442\u0430","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f","\u043e\u043a\u0442\u044f\u0431\u0440\u044f","\u043d\u043e\u044f\u0431\u0440\u044f","\u0434\u0435\u043a\u0430\u0431\u0440\u044f"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["\u0412","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u0432\u0441","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u0432\u0441\u043a","\u043f\u043d\u0434","\u0432\u0442\u0440","\u0441\u0440\u0434","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0443\u0431"],wide:["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044c"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044c"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d\u043e\u0447\u044c",noon:"\u043f\u043e\u043b\u0434\u0435\u043d\u044c",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0435\u0440",night:"\u043d\u043e\u0447\u044c"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0438"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0438"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d\u043e\u0447\u044c",noon:"\u043f\u043e\u043b\u0434\u0435\u043d\u044c",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447\u0435\u0440\u0430",night:"\u043d\u043e\u0447\u0438"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-?(\u0435|\u044f|\u0439|\u043e\u0435|\u044c\u0435|\u0430\u044f|\u044c\u044f|\u044b\u0439|\u043e\u0439|\u0438\u0439|\u044b\u0439))?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^((\u0434\u043e )?\u043d\.?\s?\u044d\.?)/i,abbreviated:/^((\u0434\u043e )?\u043d\.?\s?\u044d\.?)/i,wide:/^(\u0434\u043e \u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0430 \u044d\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u044b\u043e\u0438]?\u0439?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u044b\u043e\u0438]?\u0439?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u044f\u0444\u043c\u0430\u0438\u0441\u043e\u043d\u0434]/i,abbreviated:/^(\u044f\u043d\u0432|\u0444\u0435\u0432|\u043c\u0430\u0440\u0442?|\u0430\u043f\u0440|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]?|\u0438\u044e\u043b[\u044c\u044f]?|\u0430\u0432\u0433|\u0441\u0435\u043d\u0442?|\u043e\u043a\u0442|\u043d\u043e\u044f\u0431?|\u0434\u0435\u043a)\.?/i,wide:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043b[\u044c\u044f]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u044f/i,/^\u0444/i,/^\u043c/i,/^\u0430/i,/^\u043c/i,/^\u0438/i,/^\u0438/i,/^\u0430/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u044f/i],any:[/^\u044f/i,/^\u0444/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u0434/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u0432\u043f\u0441\u0447]/i,short:/^(\u0432\u0441|\u0432\u043e|\u043f\u043d|\u043f\u043e|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u0447\u0435|\u043f\u0442|\u043f\u044f|\u0441\u0431|\u0441\u0443)\.?/i,abbreviated:/^(\u0432\u0441\u043a|\u0432\u043e\u0441|\u043f\u043d\u0434|\u043f\u043e\u043d|\u0432\u0442\u0440|\u0432\u0442\u043e|\u0441\u0440\u0434|\u0441\u0440\u0435|\u0447\u0442\u0432|\u0447\u0435\u0442|\u043f\u0442\u043d|\u043f\u044f\u0442|\u0441\u0443\u0431).?/i,wide:/^(\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c[\u0435\u044f]|\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a\u0430?|\u0432\u0442\u043e\u0440\u043d\u0438\u043a\u0430?|\u0441\u0440\u0435\u0434[\u0430\u044b]|\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430?|\u043f\u044f\u0442\u043d\u0438\u0446[\u0430\u044b]|\u0441\u0443\u0431\u0431\u043e\u0442[\u0430\u044b])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0432/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u0432[\u043e\u0441]/i,/^\u043f[\u043e\u043d]/i,/^\u0432/i,/^\u0441\u0440/i,/^\u0447/i,/^\u043f[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\.?|\u043f\u043e\u043b\u0434\.?|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447[\u044c\u0438])/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\.?|\u043f\u043e\u043b\u0434\.?|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447[\u044c\u0438])/i,wide:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\u043e\u0447\u044c|\u043f\u043e\u043b\u0434\u0435\u043d\u044c|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430?|\u043d\u043e\u0447[\u044c\u0438])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u043e\u043b\u043d/i,noon:/^\u043f\u043e\u043b\u0434/i,morning:/^\u0443/i,afternoon:/^\u0434[\u0435\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function yc(t,e,n){var r=function(t,e){return 1===e&&t.one?t.one:e>=2&&e<=4&&t.twoFour?t.twoFour:t.other}(t,e);return r[n].replace("{{count}}",String(e))}function wc(t){var e="";return"almost"===t&&(e="takmer"),"about"===t&&(e="pribli\u017ene"),e.length>0?e+" ":""}function kc(t){var e="";return"lessThan"===t&&(e="menej ne\u017e"),"over"===t&&(e="viac ne\u017e"),e.length>0?e+" ":""}var _c={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sek\xfand",past:"{{count}} sekundami",future:"{{count}} sek\xfand"}},halfAMinute:{other:{present:"pol min\xfaty",past:"pol min\xfatou",future:"pol min\xfaty"}},xMinutes:{one:{present:"min\xfata",past:"min\xfatou",future:"min\xfatu"},twoFour:{present:"{{count}} min\xfaty",past:"{{count}} min\xfatami",future:"{{count}} min\xfaty"},other:{present:"{{count}} min\xfat",past:"{{count}} min\xfatami",future:"{{count}} min\xfat"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hod\xedn",past:"{{count}} hodinami",future:"{{count}} hod\xedn"}},xDays:{one:{present:"de\u0148",past:"d\u0148om",future:"de\u0148"},twoFour:{present:"{{count}} dni",past:"{{count}} d\u0148ami",future:"{{count}} dni"},other:{present:"{{count}} dn\xed",past:"{{count}} d\u0148ami",future:"{{count}} dn\xed"}},xWeeks:{one:{present:"t\xfd\u017ede\u0148",past:"t\xfd\u017ed\u0148om",future:"t\xfd\u017ede\u0148"},twoFour:{present:"{{count}} t\xfd\u017edne",past:"{{count}} t\xfd\u017ed\u0148ami",future:"{{count}} t\xfd\u017edne"},other:{present:"{{count}} t\xfd\u017ed\u0148ov",past:"{{count}} t\xfd\u017ed\u0148ami",future:"{{count}} t\xfd\u017ed\u0148ov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},Oc=function(t,e,n){var r,i=function(t){return["lessThan","about","over","almost"].filter((function(e){return!!t.match(new RegExp("^"+e))}))[0]}(t)||"",o=(r=t.substring(i.length)).charAt(0).toLowerCase()+r.slice(1),a=_c[o];return null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?wc(i)+"o "+kc(i)+yc(a,e,"future"):wc(i)+"pred "+kc(i)+yc(a,e,"past"):wc(i)+kc(i)+yc(a,e,"present")},xc={date:U({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ec=["nede\u013eu","pondelok","utorok","stredu","\u0161tvrtok","piatok","sobotu"];function jc(t){return 4===t?"'vo' eeee 'o' p":"'v "+Ec[t]+" o' p"}var Sc={lastWeek:function(t,e,n){var r=t.getUTCDay();return be(t,e,n)?jc(r):function(t){var e=Ec[t];switch(t){case 0:case 3:case 6:return"'minul\xfa "+e+" o' p";default:return"'minul\xfd' eeee 'o' p"}}(r)},yesterday:"'v\u010dera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:function(t,e,n){var r=t.getUTCDay();return be(t,e,n)?jc(r):function(t){var e=Ec[t];switch(t){case 0:case 4:case 6:return"'bud\xfacu "+e+" o' p";default:return"'bud\xfaci' eeee 'o' p"}}(r)},other:"P"},Pc=function(t,e,n,r){var i=Sc[t];return"function"===typeof i?i(e,n,r):i},Cc={code:"sk",formatDistance:Oc,formatLong:xc,formatRelative:Pc,localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. \u0161tvr\u0165rok","2. \u0161tvr\u0165rok","3. \u0161tvr\u0165rok","4. \u0161tvr\u0165rok"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","m\xe1j","j\xfan","j\xfal","aug","sep","okt","nov","dec"],wide:["janu\xe1r","febru\xe1r","marec","apr\xedl","m\xe1j","j\xfan","j\xfal","august","september","okt\xf3ber","november","december"]},defaultWidth:"wide",formattingValues:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","m\xe1j","j\xfan","j\xfal","aug","sep","okt","nov","dec"],wide:["janu\xe1ra","febru\xe1ra","marca","apr\xedla","m\xe1ja","j\xfana","j\xfala","augusta","septembra","okt\xf3bra","novembra","decembra"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["n","p","u","s","\u0161","p","s"],short:["ne","po","ut","st","\u0161t","pi","so"],abbreviated:["ne","po","ut","st","\u0161t","pi","so"],wide:["nede\u013ea","pondelok","utorok","streda","\u0161tvrtok","piatok","sobota"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"r\xe1no",afternoon:"pop.",evening:"ve\u010d.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"r\xe1no",afternoon:"popol.",evening:"ve\u010der",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"r\xe1no",afternoon:"popoludnie",evening:"ve\u010der",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"r\xe1no",afternoon:"pop.",evening:"ve\u010d.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"r\xe1no",afternoon:"popol.",evening:"ve\u010der",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"r\xe1no",afternoon:"popoludn\xed",evening:"ve\u010der",night:"v noci"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[\u0161s][\xedi]m letopo[\u010dc]tom|po Kristovi|n[\xe1a][\u0161s]ho letopo[\u010dc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [\u0161s]tvr[\u0165t]rok/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[\xe1a]j|j[\xfau]n|j[\xfau]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[\xe1a]ra?|febru[\xe1a]ra?|(marec|marca)|apr[\xedi]la?|m[\xe1a]ja?|j[\xfau]na?|j[\xfau]la?|augusta?|(september|septembra)|(okt[\xf3o]ber|okt[\xf3o]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[\xe1a]j/i,/^j[\xfau]n/i,/^j[\xfau]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[npus\u0161p]/i,short:/^(ne|po|ut|st|\u0161t|pi|so)/i,abbreviated:/^(ne|po|ut|st|\u0161t|pi|so)/i,wide:/^(nede[\u013el]a|pondelok|utorok|streda|[\u0161s]tvrtok|piatok|sobota])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^\u0161/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(\u0161t|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[\xe1a]no|pop\.?|ve[\u010dc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[\xe1a]no|pop\.?|ve[\u010dc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[\xe1a]no|popoludn(ie|\xed|i)|ve[\u010dc]er|(v )?noci?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[\xe1a]no/i,afternoon:/^pop/i,evening:/^ve[\u010dc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};var Tc={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"pribli\u017eno {{count}} ura",two:"pribli\u017eno {{count}} uri",few:"pribli\u017eno {{count}} ure",other:"pribli\u017eno {{count}} ur"},past:{one:"pribli\u017eno {{count}} uro",two:"pribli\u017eno {{count}} urama",few:"pribli\u017eno {{count}} urami",other:"pribli\u017eno {{count}} urami"},future:{one:"pribli\u017eno {{count}} uro",two:"pribli\u017eno {{count}} uri",few:"pribli\u017eno {{count}} ure",other:"pribli\u017eno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"pribli\u017eno {{count}} teden",two:"pribli\u017eno {{count}} tedna",few:"pribli\u017eno {{count}} tedne",other:"pribli\u017eno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"pribli\u017eno {{count}} mesec",two:"pribli\u017eno {{count}} meseca",few:"pribli\u017eno {{count}} mesece",other:"pribli\u017eno {{count}} mesecev"},past:{one:"pribli\u017eno {{count}} mesecem",two:"pribli\u017eno {{count}} mesecema",few:"pribli\u017eno {{count}} meseci",other:"pribli\u017eno {{count}} meseci"},future:{one:"pribli\u017eno {{count}} mesec",two:"pribli\u017eno {{count}} meseca",few:"pribli\u017eno {{count}} mesece",other:"pribli\u017eno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"pribli\u017eno {{count}} leto",two:"pribli\u017eno {{count}} leti",few:"pribli\u017eno {{count}} leta",other:"pribli\u017eno {{count}} let"},past:{one:"pribli\u017eno {{count}} letom",two:"pribli\u017eno {{count}} letoma",few:"pribli\u017eno {{count}} leti",other:"pribli\u017eno {{count}} leti"},future:{one:"pribli\u017eno {{count}} leto",two:"pribli\u017eno {{count}} leti",few:"pribli\u017eno {{count}} leta",other:"pribli\u017eno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"ve\u010d kot {{count}} leto",two:"ve\u010d kot {{count}} leti",few:"ve\u010d kot {{count}} leta",other:"ve\u010d kot {{count}} let"},past:{one:"ve\u010d kot {{count}} letom",two:"ve\u010d kot {{count}} letoma",few:"ve\u010d kot {{count}} leti",other:"ve\u010d kot {{count}} leti"},future:{one:"ve\u010d kot {{count}} leto",two:"ve\u010d kot {{count}} leti",few:"ve\u010d kot {{count}} leta",other:"ve\u010d kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}};var Mc=function(t,e,n){var r="",i="present";null!==n&&void 0!==n&&n.addSuffix&&(n.comparison&&n.comparison>0?(i="future",r="\u010dez "):(i="past",r="pred "));var o=Tc[t];if("string"===typeof o)r+=o;else{var a=function(t){switch(t%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}(e);void 0!==o.one?r+=o[a].replace("{{count}}",String(e)):r+=o[i][a].replace("{{count}}",String(e))}return r},Ac={date:U({formats:{full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Dc={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'prej\u0161njo nedeljo ob' p";case 3:return"'prej\u0161njo sredo ob' p";case 6:return"'prej\u0161njo soboto ob' p";default:return"'prej\u0161nji' EEEE 'ob' p"}},yesterday:"'v\u010deraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},Rc=function(t,e,n,r){var i=Dc[t];return"function"===typeof i?i(e):i},Lc={code:"sl",formatDistance:Mc,formatLong:Ac,formatRelative:Rc,localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["pr. n. \u0161t.","po n. \u0161t."],abbreviated:["pr. n. \u0161t.","po n. \u0161t."],wide:["pred na\u0161im \u0161tetjem","po na\u0161em \u0161tetju"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1. \u010det.","2. \u010det.","3. \u010det.","4. \u010det."],wide:["1. \u010detrtletje","2. \u010detrtletje","3. \u010detrtletje","4. \u010detrtletje"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},defaultWidth:"wide"}),day:K({values:{narrow:["n","p","t","s","\u010d","p","s"],short:["ned.","pon.","tor.","sre.","\u010det.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","\u010det.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","\u010detrtek","petek","sobota"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"ve\u010d.",night:"no\u010d"},wide:{am:"dop.",pm:"pop.",midnight:"polno\u010d",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"ve\u010der",night:"no\u010d"}},defaultWidth:"wide",formattingValues:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zve\u010d.",night:"pono\u010di"},wide:{am:"dop.",pm:"pop.",midnight:"opolno\u010di",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zve\u010der",night:"pono\u010di"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{abbreviated:/^(pr\. n\. \u0161t\.|po n\. \u0161t\.)/i,wide:/^(pred Kristusom|pred na[s\u0161]im [s\u0161]tetjem|po Kristusu|po na[s\u0161]em [s\u0161]tetju|na[s\u0161]ega [s\u0161]tetja)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|na[s\u0161]em)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[\u010dc]et\.?/i,wide:/^[1234]\. [\u010dc]etrtletje/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"wide"}),day:Q({matchPatterns:{narrow:/^[npts\u010dc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[c\u010d]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[c\u010d]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[c\u010d]etrtek|petek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[c\u010d]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[c\u010d]/i,/^pe/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[c\u010d]i?)|o?pold(\.|ne)|z?ve[c\u010d](\.|er)|(po)?no[c\u010d]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ic={lessThanXSeconds:{one:"m\xeb pak se nj\xeb sekond\xeb",other:"m\xeb pak se {{count}} sekonda"},xSeconds:{one:"1 sekond\xeb",other:"{{count}} sekonda"},halfAMinute:"gjys\xebm minuti",lessThanXMinutes:{one:"m\xeb pak se nj\xeb minute",other:"m\xeb pak se {{count}} minuta"},xMinutes:{one:"1 minut\xeb",other:"{{count}} minuta"},aboutXHours:{one:"rreth 1 or\xeb",other:"rreth {{count}} or\xeb"},xHours:{one:"1 or\xeb",other:"{{count}} or\xeb"},xDays:{one:"1 dit\xeb",other:"{{count}} dit\xeb"},aboutXWeeks:{one:"rreth 1 jav\xeb",other:"rreth {{count}} jav\xeb"},xWeeks:{one:"1 jav\xeb",other:"{{count}} jav\xeb"},aboutXMonths:{one:"rreth 1 muaj",other:"rreth {{count}} muaj"},xMonths:{one:"1 muaj",other:"{{count}} muaj"},aboutXYears:{one:"rreth 1 vit",other:"rreth {{count}} vite"},xYears:{one:"1 vit",other:"{{count}} vite"},overXYears:{one:"mbi 1 vit",other:"mbi {{count}} vite"},almostXYears:{one:"pothuajse 1 vit",other:"pothuajse {{count}} vite"}},Wc=function(t,e,n){var r,i=Ic[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"n\xeb "+r:r+" m\xeb par\xeb":r},zc={date:U({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'n\xeb' {{time}}",long:"{{date}} 'n\xeb' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Nc={lastWeek:"'t\xeb' eeee 'e shkuar n\xeb' p",yesterday:"'dje n\xeb' p",today:"'sot n\xeb' p",tomorrow:"'nes\xebr n\xeb' p",nextWeek:"eeee 'at' p",other:"P"},Fc={code:"sq",formatDistance:Wc,formatLong:zc,formatRelative:function(t,e,n,r){return Nc[t]},localize:{ordinalNumber:function(t,e){var n=Number(t);return"hour"===(null===e||void 0===e?void 0:e.unit)?String(n):1===n?n+"-r\xeb":4===n?n+"t":n+"-t\xeb"},era:K({values:{narrow:["P","M"],abbreviated:["PK","MK"],wide:["Para Krishtit","Mbas Krishtit"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["4-mujori I","4-mujori II","4-mujori III","4-mujori IV"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","S","M","P","M","Q","K","G","S","T","N","D"],abbreviated:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","N\xebn","Dhj"],wide:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","N\xebntor","Dhjetor"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","H","M","M","E","P","S"],short:["Di","H\xeb","Ma","M\xeb","En","Pr","Sh"],abbreviated:["Die","H\xebn","Mar","M\xebr","Enj","Pre","Sht"],wide:["Diel\xeb","H\xebn\xeb","Mart\xeb","M\xebrkur\xeb","Enjte","Premte","Shtun\xeb"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"p",pm:"m",midnight:"m",noon:"d",morning:"m\xebngjes",afternoon:"dite",evening:"mbr\xebmje",night:"nat\xeb"},abbreviated:{am:"PD",pm:"MD",midnight:"mesn\xebt\xeb",noon:"drek",morning:"m\xebngjes",afternoon:"mbasdite",evening:"mbr\xebmje",night:"nat\xeb"},wide:{am:"p.d.",pm:"m.d.",midnight:"mesn\xebt\xeb",noon:"drek",morning:"m\xebngjes",afternoon:"mbasdite",evening:"mbr\xebmje",night:"nat\xeb"}},defaultWidth:"wide",formattingValues:{narrow:{am:"p",pm:"m",midnight:"m",noon:"d",morning:"n\xeb m\xebngjes",afternoon:"n\xeb mbasdite",evening:"n\xeb mbr\xebmje",night:"n\xeb mesnat\xeb"},abbreviated:{am:"PD",pm:"MD",midnight:"mesnat\xeb",noon:"drek",morning:"n\xeb m\xebngjes",afternoon:"n\xeb mbasdite",evening:"n\xeb mbr\xebmje",night:"n\xeb mesnat\xeb"},wide:{am:"p.d.",pm:"m.d.",midnight:"mesnat\xeb",noon:"drek",morning:"n\xeb m\xebngjes",afternoon:"n\xeb mbasdite",evening:"n\xeb mbr\xebmje",night:"n\xeb mesnat\xeb"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-r\xeb|-t\xeb|t|)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(p|m)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(para krishtit|mbas krishtit)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(p|m)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]-mujori (i{1,3}|iv)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jsmpqkftnd]/i,abbreviated:/^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|n\xebn|dhj)/i,wide:/^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|n\xebntor|dhjetor)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^s/i,/^m/i,/^p/i,/^m/i,/^q/i,/^k/i,/^g/i,/^s/i,/^t/i,/^n/i,/^d/i],any:[/^ja/i,/^shk/i,/^mar/i,/^pri/i,/^maj/i,/^qer/i,/^kor/i,/^gu/i,/^sht/i,/^tet/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[dhmeps]/i,short:/^(di|h\xeb|ma|m\xeb|en|pr|sh)/i,abbreviated:/^(die|h\xebn|mar|m\xebr|enj|pre|sht)/i,wide:/^(diel\xeb|h\xebn\xeb|mart\xeb|m\xebrkur\xeb|enjte|premte|shtun\xeb)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^h/i,/^m/i,/^m/i,/^e/i,/^p/i,/^s/i],any:[/^d/i,/^h/i,/^ma/i,/^m\xeb/i,/^e/i,/^p/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(p|m|me|n\xeb (m\xebngjes|mbasdite|mbr\xebmje|mesnat\xeb))/i,any:/^([pm]\.?\s?d\.?|drek|n\xeb (m\xebngjes|mbasdite|mbr\xebmje|mesnat\xeb))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^p/i,pm:/^m/i,midnight:/^me/i,noon:/^dr/i,morning:/m\xebngjes/i,afternoon:/mbasdite/i,evening:/mbr\xebmje/i,night:/nat\xeb/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Hc={lessThanXSeconds:{one:{standalone:"\u043c\u0430\u045a\u0435 \u043e\u0434 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0435",withPrepositionAgo:"\u043c\u0430\u045a\u0435 \u043e\u0434 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0435",withPrepositionIn:"\u043c\u0430\u045a\u0435 \u043e\u0434 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443"},dual:"\u043c\u0430\u045a\u0435 \u043e\u0434 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0435",other:"\u043c\u0430\u045a\u0435 \u043e\u0434 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438"},xSeconds:{one:{standalone:"1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430",withPrepositionAgo:"1 \u0441\u0435\u043a\u0443\u043d\u0434\u0435",withPrepositionIn:"1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443"},dual:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0435",other:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438"},halfAMinute:"\u043f\u043e\u043b\u0430 \u043c\u0438\u043d\u0443\u0442\u0435",lessThanXMinutes:{one:{standalone:"\u043c\u0430\u045a\u0435 \u043e\u0434 1 \u043c\u0438\u043d\u0443\u0442\u0435",withPrepositionAgo:"\u043c\u0430\u045a\u0435 \u043e\u0434 1 \u043c\u0438\u043d\u0443\u0442\u0435",withPrepositionIn:"\u043c\u0430\u045a\u0435 \u043e\u0434 1 \u043c\u0438\u043d\u0443\u0442\u0443"},dual:"\u043c\u0430\u045a\u0435 \u043e\u0434 {{count}} \u043c\u0438\u043d\u0443\u0442\u0435",other:"\u043c\u0430\u045a\u0435 \u043e\u0434 {{count}} \u043c\u0438\u043d\u0443\u0442\u0430"},xMinutes:{one:{standalone:"1 \u043c\u0438\u043d\u0443\u0442\u0430",withPrepositionAgo:"1 \u043c\u0438\u043d\u0443\u0442\u0435",withPrepositionIn:"1 \u043c\u0438\u043d\u0443\u0442\u0443"},dual:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0435",other:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0430"},aboutXHours:{one:{standalone:"\u043e\u043a\u043e 1 \u0441\u0430\u0442",withPrepositionAgo:"\u043e\u043a\u043e 1 \u0441\u0430\u0442",withPrepositionIn:"\u043e\u043a\u043e 1 \u0441\u0430\u0442"},dual:"\u043e\u043a\u043e {{count}} \u0441\u0430\u0442\u0430",other:"\u043e\u043a\u043e {{count}} \u0441\u0430\u0442\u0438"},xHours:{one:{standalone:"1 \u0441\u0430\u0442",withPrepositionAgo:"1 \u0441\u0430\u0442",withPrepositionIn:"1 \u0441\u0430\u0442"},dual:"{{count}} \u0441\u0430\u0442\u0430",other:"{{count}} \u0441\u0430\u0442\u0438"},xDays:{one:{standalone:"1 \u0434\u0430\u043d",withPrepositionAgo:"1 \u0434\u0430\u043d",withPrepositionIn:"1 \u0434\u0430\u043d"},dual:"{{count}} \u0434\u0430\u043d\u0430",other:"{{count}} \u0434\u0430\u043d\u0430"},aboutXWeeks:{one:{standalone:"\u043e\u043a\u043e 1 \u043d\u0435\u0434\u0435\u0459\u0443",withPrepositionAgo:"\u043e\u043a\u043e 1 \u043d\u0435\u0434\u0435\u0459\u0443",withPrepositionIn:"\u043e\u043a\u043e 1 \u043d\u0435\u0434\u0435\u0459\u0443"},dual:"\u043e\u043a\u043e {{count}} \u043d\u0435\u0434\u0435\u0459\u0435",other:"\u043e\u043a\u043e {{count}} \u043d\u0435\u0434\u0435\u0459\u0435"},xWeeks:{one:{standalone:"1 \u043d\u0435\u0434\u0435\u0459\u0443",withPrepositionAgo:"1 \u043d\u0435\u0434\u0435\u0459\u0443",withPrepositionIn:"1 \u043d\u0435\u0434\u0435\u0459\u0443"},dual:"{{count}} \u043d\u0435\u0434\u0435\u0459\u0435",other:"{{count}} \u043d\u0435\u0434\u0435\u0459\u0435"},aboutXMonths:{one:{standalone:"\u043e\u043a\u043e 1 \u043c\u0435\u0441\u0435\u0446",withPrepositionAgo:"\u043e\u043a\u043e 1 \u043c\u0435\u0441\u0435\u0446",withPrepositionIn:"\u043e\u043a\u043e 1 \u043c\u0435\u0441\u0435\u0446"},dual:"\u043e\u043a\u043e {{count}} \u043c\u0435\u0441\u0435\u0446\u0430",other:"\u043e\u043a\u043e {{count}} \u043c\u0435\u0441\u0435\u0446\u0438"},xMonths:{one:{standalone:"1 \u043c\u0435\u0441\u0435\u0446",withPrepositionAgo:"1 \u043c\u0435\u0441\u0435\u0446",withPrepositionIn:"1 \u043c\u0435\u0441\u0435\u0446"},dual:"{{count}} \u043c\u0435\u0441\u0435\u0446\u0430",other:"{{count}} \u043c\u0435\u0441\u0435\u0446\u0438"},aboutXYears:{one:{standalone:"\u043e\u043a\u043e 1 \u0433\u043e\u0434\u0438\u043d\u0443",withPrepositionAgo:"\u043e\u043a\u043e 1 \u0433\u043e\u0434\u0438\u043d\u0443",withPrepositionIn:"\u043e\u043a\u043e 1 \u0433\u043e\u0434\u0438\u043d\u0443"},dual:"\u043e\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0435",other:"\u043e\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0430"},xYears:{one:{standalone:"1 \u0433\u043e\u0434\u0438\u043d\u0430",withPrepositionAgo:"1 \u0433\u043e\u0434\u0438\u043d\u0435",withPrepositionIn:"1 \u0433\u043e\u0434\u0438\u043d\u0443"},dual:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0435",other:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0430"},overXYears:{one:{standalone:"\u043f\u0440\u0435\u043a\u043e 1 \u0433\u043e\u0434\u0438\u043d\u0443",withPrepositionAgo:"\u043f\u0440\u0435\u043a\u043e 1 \u0433\u043e\u0434\u0438\u043d\u0443",withPrepositionIn:"\u043f\u0440\u0435\u043a\u043e 1 \u0433\u043e\u0434\u0438\u043d\u0443"},dual:"\u043f\u0440\u0435\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0435",other:"\u043f\u0440\u0435\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0430"},almostXYears:{one:{standalone:"\u0433\u043e\u0442\u043e\u0432\u043e 1 \u0433\u043e\u0434\u0438\u043d\u0443",withPrepositionAgo:"\u0433\u043e\u0442\u043e\u0432\u043e 1 \u0433\u043e\u0434\u0438\u043d\u0443",withPrepositionIn:"\u0433\u043e\u0442\u043e\u0432\u043e 1 \u0433\u043e\u0434\u0438\u043d\u0443"},dual:"\u0433\u043e\u0442\u043e\u0432\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0435",other:"\u0433\u043e\u0442\u043e\u0432\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0430"}},Bc=function(t,e,n){var r,i=Hc[t];return r="string"===typeof i?i:1===e?null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:e%10>1&&e%10<5&&"1"!==String(e).substr(-2,1)?i.dual.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"\u0437\u0430 "+r:"\u043f\u0440\u0435 "+r:r},Vc={date:U({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u0443' {{time}}",long:"{{date}} '\u0443' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},qc={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'\u043f\u0440\u043e\u0448\u043b\u0435 \u043d\u0435\u0434\u0435\u0459\u0435 \u0443' p";case 3:return"'\u043f\u0440\u043e\u0448\u043b\u0435 \u0441\u0440\u0435\u0434\u0435 \u0443' p";case 6:return"'\u043f\u0440\u043e\u0448\u043b\u0435 \u0441\u0443\u0431\u043e\u0442\u0435 \u0443' p";default:return"'\u043f\u0440\u043e\u0448\u043b\u0438' EEEE '\u0443' p"}},yesterday:"'\u0458\u0443\u0447\u0435 \u0443' p",today:"'\u0434\u0430\u043d\u0430\u0441 \u0443' p",tomorrow:"'\u0441\u0443\u0442\u0440\u0430 \u0443' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'\u0441\u043b\u0435\u0434\u0435\u045b\u0435 \u043d\u0435\u0434\u0435\u0459\u0435 \u0443' p";case 3:return"'\u0441\u043b\u0435\u0434\u0435\u045b\u0443 \u0441\u0440\u0435\u0434\u0443 \u0443' p";case 6:return"'\u0441\u043b\u0435\u0434\u0435\u045b\u0443 \u0441\u0443\u0431\u043e\u0442\u0443 \u0443' p";default:return"'\u0441\u043b\u0435\u0434\u0435\u045b\u0438' EEEE '\u0443' p"}},other:"P"},Yc=function(t,e,n,r){var i=qc[t];return"function"===typeof i?i(e):i},Uc={code:"sr",formatDistance:Bc,formatLong:Vc,formatRelative:Yc,localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["\u043f\u0440.\u043d.\u0435.","\u0410\u0414"],abbreviated:["\u043f\u0440. \u0425\u0440.","\u043f\u043e. \u0425\u0440."],wide:["\u041f\u0440\u0435 \u0425\u0440\u0438\u0441\u0442\u0430","\u041f\u043e\u0441\u043b\u0435 \u0425\u0440\u0438\u0441\u0442\u0430"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. \u043a\u0432.","2. \u043a\u0432.","3. \u043a\u0432.","4. \u043a\u0432."],wide:["1. \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2. \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3. \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4. \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["\u0458\u0430\u043d","\u0444\u0435\u0431","\u043c\u0430\u0440","\u0430\u043f\u0440","\u043c\u0430\u0458","\u0458\u0443\u043d","\u0458\u0443\u043b","\u0430\u0432\u0433","\u0441\u0435\u043f","\u043e\u043a\u0442","\u043d\u043e\u0432","\u0434\u0435\u0446"],wide:["\u0458\u0430\u043d\u0443\u0430\u0440","\u0444\u0435\u0431\u0440\u0443\u0430\u0440","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0438\u043b","\u043c\u0430\u0458","\u0458\u0443\u043d","\u0458\u0443\u043b","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440","\u043e\u043a\u0442\u043e\u0431\u0430\u0440","\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440","\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["\u0458\u0430\u043d","\u0444\u0435\u0431","\u043c\u0430\u0440","\u0430\u043f\u0440","\u043c\u0430\u0458","\u0458\u0443\u043d","\u0458\u0443\u043b","\u0430\u0432\u0433","\u0441\u0435\u043f","\u043e\u043a\u0442","\u043d\u043e\u0432","\u0434\u0435\u0446"],wide:["\u0458\u0430\u043d\u0443\u0430\u0440","\u0444\u0435\u0431\u0440\u0443\u0430\u0440","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0438\u043b","\u043c\u0430\u0458","\u0458\u0443\u043d","\u0458\u0443\u043b","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440","\u043e\u043a\u0442\u043e\u0431\u0430\u0440","\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440","\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["\u041d","\u041f","\u0423","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0443\u0442\u043e","\u0441\u0440\u0435","\u0447\u0435\u0442","\u043f\u0435\u0442","\u0441\u0443\u0431"],abbreviated:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0443\u0442\u043e","\u0441\u0440\u0435","\u0447\u0435\u0442","\u043f\u0435\u0442","\u0441\u0443\u0431"],wide:["\u043d\u0435\u0434\u0435\u0459\u0430","\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a","\u0443\u0442\u043e\u0440\u0430\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a","\u043f\u0435\u0442\u0430\u043a","\u0441\u0443\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"\u043f\u043e\u043d\u043e\u045b",noon:"\u043f\u043e\u0434\u043d\u0435",morning:"\u0443\u0458\u0443\u0442\u0440\u0443",afternoon:"\u043f\u043e\u043f\u043e\u0434\u043d\u0435",evening:"\u0443\u0432\u0435\u0447\u0435",night:"\u043d\u043e\u045b\u0443"},abbreviated:{am:"AM",pm:"PM",midnight:"\u043f\u043e\u043d\u043e\u045b",noon:"\u043f\u043e\u0434\u043d\u0435",morning:"\u0443\u0458\u0443\u0442\u0440\u0443",afternoon:"\u043f\u043e\u043f\u043e\u0434\u043d\u0435",evening:"\u0443\u0432\u0435\u0447\u0435",night:"\u043d\u043e\u045b\u0443"},wide:{am:"AM",pm:"PM",midnight:"\u043f\u043e\u043d\u043e\u045b",noon:"\u043f\u043e\u0434\u043d\u0435",morning:"\u0443\u0458\u0443\u0442\u0440\u0443",afternoon:"\u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043d\u0435",evening:"\u0443\u0432\u0435\u0447\u0435",night:"\u043d\u043e\u045b\u0443"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0410\u041c",pm:"\u041f\u041c",midnight:"\u043f\u043e\u043d\u043e\u045b",noon:"\u043f\u043e\u0434\u043d\u0435",morning:"\u0443\u0458\u0443\u0442\u0440\u0443",afternoon:"\u043f\u043e\u043f\u043e\u0434\u043d\u0435",evening:"\u0443\u0432\u0435\u0447\u0435",night:"\u043d\u043e\u045b\u0443"},abbreviated:{am:"\u0410\u041c",pm:"\u041f\u041c",midnight:"\u043f\u043e\u043d\u043e\u045b",noon:"\u043f\u043e\u0434\u043d\u0435",morning:"\u0443\u0458\u0443\u0442\u0440\u0443",afternoon:"\u043f\u043e\u043f\u043e\u0434\u043d\u0435",evening:"\u0443\u0432\u0435\u0447\u0435",night:"\u043d\u043e\u045b\u0443"},wide:{am:"AM",pm:"PM",midnight:"\u043f\u043e\u043d\u043e\u045b",noon:"\u043f\u043e\u0434\u043d\u0435",morning:"\u0443\u0458\u0443\u0442\u0440\u0443",afternoon:"\u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043d\u0435",evening:"\u0443\u0432\u0435\u0447\u0435",night:"\u043d\u043e\u045b\u0443"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u043f\u0440\.\u043d\.\u0435\.|\u0410\u0414)/i,abbreviated:/^(\u043f\u0440\.\s?\u0425\u0440\.|\u043f\u043e\.\s?\u0425\u0440\.)/i,wide:/^(\u041f\u0440\u0435 \u0425\u0440\u0438\u0441\u0442\u0430|\u043f\u0440\u0435 \u043d\u043e\u0432\u0435 \u0435\u0440\u0435|\u041f\u043e\u0441\u043b\u0435 \u0425\u0440\u0438\u0441\u0442\u0430|\u043d\u043e\u0432\u0430 \u0435\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u043f\u0440/i,/^(\u043f\u043e|\u043d\u043e\u0432\u0430)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?\u043a\u0432\.?/i,wide:/^[1234]\. \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(\u0458\u0430\u043d|\u0444\u0435\u0431|\u043c\u0430\u0440|\u0430\u043f\u0440|\u043c\u0430\u0458|\u0458\u0443\u043d|\u0458\u0443\u043b|\u0430\u0432\u0433|\u0441\u0435\u043f|\u043e\u043a\u0442|\u043d\u043e\u0432|\u0434\u0435\u0446)/i,wide:/^((\u0458\u0430\u043d\u0443\u0430\u0440|\u0458\u0430\u043d\u0443\u0430\u0440\u0430)|(\u0444\u0435\u0431\u0440\u0443\u0430\u0440|\u0444\u0435\u0431\u0440\u0443\u0430\u0440\u0430)|(\u043c\u0430\u0440\u0442|\u043c\u0430\u0440\u0442\u0430)|(\u0430\u043f\u0440\u0438\u043b|\u0430\u043f\u0440\u0438\u043b\u0430)|(\u043c\u0458\u0430|\u043c\u0430\u0458\u0430)|(\u0458\u0443\u043d|\u0458\u0443\u043d\u0430)|(\u0458\u0443\u043b|\u0458\u0443\u043b\u0430)|(\u0430\u0432\u0433\u0443\u0441\u0442|\u0430\u0432\u0433\u0443\u0441\u0442\u0430)|(\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440|\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0440\u0430)|(\u043e\u043a\u0442\u043e\u0431\u0430\u0440|\u043e\u043a\u0442\u043e\u0431\u0440\u0430)|(\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440|\u043d\u043e\u0432\u0435\u043c\u0431\u0440\u0430)|(\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440|\u0434\u0435\u0446\u0435\u043c\u0431\u0440\u0430))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^\u0458\u0430/i,/^\u0444/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430\u0458/i,/^\u0458\u0443\u043d/i,/^\u0458\u0443\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u0434/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u043f\u0443\u0441\u0447\u043d]/i,short:/^(\u043d\u0435\u0434|\u043f\u043e\u043d|\u0443\u0442\u043e|\u0441\u0440\u0435|\u0447\u0435\u0442|\u043f\u0435\u0442|\u0441\u0443\u0431)/i,abbreviated:/^(\u043d\u0435\u0434|\u043f\u043e\u043d|\u0443\u0442\u043e|\u0441\u0440\u0435|\u0447\u0435\u0442|\u043f\u0435\u0442|\u0441\u0443\u0431)/i,wide:/^(\u043d\u0435\u0434\u0435\u0459\u0430|\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a|\u0443\u0442\u043e\u0440\u0430\u043a|\u0441\u0440\u0435\u0434\u0430|\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a|\u043f\u0435\u0442\u0430\u043a|\u0441\u0443\u0431\u043e\u0442\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043f/i,/^\u0443/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i,/^\u043d/i],any:[/^\u043d\u0435\u0434/i,/^\u043f\u043e\u043d/i,/^\u0443\u0442\u043e/i,/^\u0441\u0440\u0435/i,/^\u0447\u0435\u0442/i,/^\u043f\u0435\u0442/i,/^\u0441\u0443\u0431/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(\u0430\u043c|\u043f\u043c|\u043f\u043e\u043d\u043e\u045b|(\u043f\u043e)?\u043f\u043e\u0434\u043d\u0435|\u0443\u0432\u0435\u0447\u0435|\u043d\u043e\u045b\u0443|\u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043d\u0435|\u0443\u0458\u0443\u0442\u0440\u0443)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^\u043f\u043e\u043d\u043e/i,noon:/^\u043f\u043e\u0434/i,morning:/\u0443\u0458\u0443\u0442\u0440\u0443/i,afternoon:/(\u043f\u043e\u0441\u043b\u0435\s|\u043f\u043e)+\u043f\u043e\u0434\u043d\u0435/i,evening:/(\u0443\u0432\u0435\u0447\u0435)/i,night:/(\u043d\u043e\u045b\u0443)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Gc={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 nedelju",withPrepositionAgo:"oko 1 nedelju",withPrepositionIn:"oko 1 nedelju"},dual:"oko {{count}} nedelje",other:"oko {{count}} nedelje"},xWeeks:{one:{standalone:"1 nedelju",withPrepositionAgo:"1 nedelju",withPrepositionIn:"1 nedelju"},dual:"{{count}} nedelje",other:"{{count}} nedelje"},aboutXMonths:{one:{standalone:"oko 1 mesec",withPrepositionAgo:"oko 1 mesec",withPrepositionIn:"oko 1 mesec"},dual:"oko {{count}} meseca",other:"oko {{count}} meseci"},xMonths:{one:{standalone:"1 mesec",withPrepositionAgo:"1 mesec",withPrepositionIn:"1 mesec"},dual:"{{count}} meseca",other:"{{count}} meseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},Xc=function(t,e,n){var r,i=Gc[t];return r="string"===typeof i?i:1===e?null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:e%10>1&&e%10<5&&"1"!==String(e).substr(-2,1)?i.dual.replace("{{count}}",String(e)):i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"za "+r:"pre "+r:r},Jc={date:U({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Kc={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'pro\u0161le nedelje u' p";case 3:return"'pro\u0161le srede u' p";case 6:return"'pro\u0161le subote u' p";default:return"'pro\u0161li' EEEE 'u' p"}},yesterday:"'ju\u010de u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'slede\u0107e nedelje u' p";case 3:return"'slede\u0107u sredu u' p";case 6:return"'slede\u0107u subotu u' p";default:return"'slede\u0107i' EEEE 'u' p"}},other:"P"},$c=function(t,e,n,r){var i=Kc[t];return"function"===typeof i?i(e):i},Qc={code:"sr-Latn",formatDistance:Xc,formatLong:Jc,formatRelative:$c,localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Pre Hrista","Posle Hrista"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["N","P","U","S","\u010c","P","S"],short:["ned","pon","uto","sre","\u010det","pet","sub"],abbreviated:["ned","pon","uto","sre","\u010det","pet","sub"],wide:["nedelja","ponedeljak","utorak","sreda","\u010detvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uve\u010de",night:"no\u0107u"},abbreviated:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uve\u010de",night:"no\u0107u"},wide:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uve\u010de",night:"no\u0107u"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uve\u010de",night:"no\u0107u"},abbreviated:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uve\u010de",night:"no\u0107u"},wide:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uve\u010de",night:"no\u0107u"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[npus\u010dc]/i,short:/^(ned|pon|uto|sre|(\u010det|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(\u010det|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(\u010detvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(am|pm|ponoc|pono\u0107|(po)?podne|uvece|uve\u010de|no\u0107u|posle podne|ujutru)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uve\u010de)/i,night:/(nocu|no\u0107u)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Zc={lessThanXSeconds:{one:"mindre \xe4n en sekund",other:"mindre \xe4n {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre \xe4n en minut",other:"mindre \xe4n {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungef\xe4r en timme",other:"ungef\xe4r {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungef\xe4r en vecka",other:"ungef\xe4r {{count}} vecka"},xWeeks:{one:"en vecka",other:"{{count}} vecka"},aboutXMonths:{one:"ungef\xe4r en m\xe5nad",other:"ungef\xe4r {{count}} m\xe5nader"},xMonths:{one:"en m\xe5nad",other:"{{count}} m\xe5nader"},aboutXYears:{one:"ungef\xe4r ett \xe5r",other:"ungef\xe4r {{count}} \xe5r"},xYears:{one:"ett \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"\xf6ver ett \xe5r",other:"\xf6ver {{count}} \xe5r"},almostXYears:{one:"n\xe4stan ett \xe5r",other:"n\xe4stan {{count}} \xe5r"}},td=["noll","en","tv\xe5","tre","fyra","fem","sex","sju","\xe5tta","nio","tio","elva","tolv"],ed=function(t,e,n){var r,i=Zc[t];return r="string"===typeof i?i:1===e?i.one:n&&n.onlyNumeric?i.other.replace("{{count}}",String(e)):i.other.replace("{{count}}",e<13?td[e]:String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" sedan":r},nd={date:U({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},defaultWidth:"full"}),time:U({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},rd={lastWeek:"'i' EEEE's kl.' p",yesterday:"'ig\xe5r kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},id={code:"sv",formatDistance:ed,formatLong:nd,formatRelative:function(t,e,n,r){return rd[t]},localize:{ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 2:return n+":a"}return n+":e"},era:K({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["f\xf6re Kristus","efter Kristus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf6","m\xe5","ti","on","to","fr","l\xf6"],abbreviated:["s\xf6n","m\xe5n","tis","ons","tors","fre","l\xf6r"],wide:["s\xf6ndag","m\xe5ndag","tisdag","onsdag","torsdag","fredag","l\xf6rdag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kv\xe4ll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kv\xe4ll",night:"natt"},wide:{am:"f\xf6rmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kv\xe4ll",night:"natt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 efterm.",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 efterm.",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morgonen",afternoon:"p\xe5 eftermiddagen",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(f\xf6re Kristus|f\xf6re v\xe5r tid|efter Kristus|v\xe5r tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtofl]/i,short:/^(s\xf6|m\xe5|ti|on|to|fr|l\xf6)/i,abbreviated:/^(s\xf6n|m\xe5n|tis|ons|tors|fre|l\xf6r)/i,wide:/^(s\xf6ndag|m\xe5ndag|tisdag|onsdag|torsdag|fredag|l\xf6rdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(p\xe5) (morgonen|eftermiddagen|kv\xe4llen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kv\xe4ll/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};var od={lessThanXSeconds:{one:{default:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bbf\u0ba9\u0bbe\u0b9f\u0bbf\u0b95\u0bcd\u0b95\u0bc1 \u0b95\u0bc1\u0bb1\u0bc8\u0bb5\u0bbe\u0b95",in:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bbf\u0ba9\u0bbe\u0b9f\u0bbf\u0b95\u0bcd\u0b95\u0bc1\u0bb3\u0bcd",ago:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bbf\u0ba9\u0bbe\u0b9f\u0bbf\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"{{count}} \u0bb5\u0bbf\u0ba9\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0b95\u0bc1\u0bb1\u0bc8\u0bb5\u0bbe\u0b95",in:"{{count}} \u0bb5\u0bbf\u0ba9\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1\u0bb3\u0bcd",ago:"{{count}} \u0bb5\u0bbf\u0ba9\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},xSeconds:{one:{default:"1 \u0bb5\u0bbf\u0ba9\u0bbe\u0b9f\u0bbf",in:"1 \u0bb5\u0bbf\u0ba9\u0bbe\u0b9f\u0bbf\u0baf\u0bbf\u0bb2\u0bcd",ago:"1 \u0bb5\u0bbf\u0ba9\u0bbe\u0b9f\u0bbf \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"{{count}} \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",in:"{{count}} \u0bb5\u0bbf\u0ba9\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"{{count}} \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},halfAMinute:{default:"\u0b85\u0bb0\u0bc8 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",in:"\u0b85\u0bb0\u0bc8 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd",ago:"\u0b85\u0bb0\u0bc8 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},lessThanXMinutes:{one:{default:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0ba4\u0bcd\u0ba4\u0bbf\u0bb1\u0bcd\u0b95\u0bc1\u0bae\u0bcd \u0b95\u0bc1\u0bb1\u0bc8\u0bb5\u0bbe\u0b95",in:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0ba4\u0bcd\u0ba4\u0bbf\u0bb1\u0bcd\u0b95\u0bc1\u0bb3\u0bcd",ago:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0ba4\u0bcd\u0ba4\u0bbf\u0bb1\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"{{count}} \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1\u0bae\u0bcd \u0b95\u0bc1\u0bb1\u0bc8\u0bb5\u0bbe\u0b95",in:"{{count}} \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1\u0bb3\u0bcd",ago:"{{count}} \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},xMinutes:{one:{default:"1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",in:"1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd",ago:"1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"{{count}} \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",in:"{{count}} \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"{{count}} \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},aboutXHours:{one:{default:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",in:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd",ago:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb1\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",in:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb1\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1",ago:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd"}},xHours:{one:{default:"1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",in:"1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd",ago:"1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb1\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"{{count}} \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",in:"{{count}} \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd",ago:"{{count}} \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb1\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},xDays:{one:{default:"1 \u0ba8\u0bbe\u0bb3\u0bcd",in:"1 \u0ba8\u0bbe\u0bb3\u0bbf\u0bb2\u0bcd",ago:"1 \u0ba8\u0bbe\u0bb3\u0bcd \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"{{count}} \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",in:"{{count}} \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"{{count}} \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},aboutXWeeks:{one:{default:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd",in:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bb5\u0bbe\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd",ago:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0bb5\u0bbe\u0bb0\u0b99\u0bcd\u0b95\u0bb3\u0bcd",in:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0bb5\u0bbe\u0bb0\u0b99\u0bcd\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0bb5\u0bbe\u0bb0\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},xWeeks:{one:{default:"1 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd",in:"1 \u0bb5\u0bbe\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd",ago:"1 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"{{count}} \u0bb5\u0bbe\u0bb0\u0b99\u0bcd\u0b95\u0bb3\u0bcd",in:"{{count}} \u0bb5\u0bbe\u0bb0\u0b99\u0bcd\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"{{count}} \u0bb5\u0bbe\u0bb0\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},aboutXMonths:{one:{default:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",in:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bae\u0bbe\u0ba4\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd",ago:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bae\u0bbe\u0ba4\u0ba4\u0bcd\u0ba4\u0bbf\u0bb1\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",in:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},xMonths:{one:{default:"1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",in:"1 \u0bae\u0bbe\u0ba4\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd",ago:"1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"{{count}} \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",in:"{{count}} \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"{{count}} \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},aboutXYears:{one:{default:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",in:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0b86\u0ba3\u0bcd\u0b9f\u0bbf\u0bb2\u0bcd",ago:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd 1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd",in:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"\u0b9a\u0bc1\u0bae\u0bbe\u0bb0\u0bcd {{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},xYears:{one:{default:"1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",in:"1 \u0b86\u0ba3\u0bcd\u0b9f\u0bbf\u0bb2\u0bcd",ago:"1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"{{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd",in:"{{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"{{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},overXYears:{one:{default:"1 \u0bb5\u0bb0\u0bc1\u0b9f\u0ba4\u0bcd\u0ba4\u0bbf\u0bb1\u0bcd\u0b95\u0bc1 \u0bae\u0bc7\u0bb2\u0bcd",in:"1 \u0bb5\u0bb0\u0bc1\u0b9f\u0ba4\u0bcd\u0ba4\u0bbf\u0bb1\u0bcd\u0b95\u0bc1\u0bae\u0bcd \u0bae\u0bc7\u0bb2\u0bbe\u0b95",ago:"1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"{{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1\u0bae\u0bcd \u0bae\u0bc7\u0bb2\u0bbe\u0b95",in:"{{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"{{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}},almostXYears:{one:{default:"\u0b95\u0bbf\u0b9f\u0bcd\u0b9f\u0ba4\u0bcd\u0ba4\u0b9f\u0bcd\u0b9f 1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",in:"\u0b95\u0bbf\u0b9f\u0bcd\u0b9f\u0ba4\u0bcd\u0ba4\u0b9f\u0bcd\u0b9f 1 \u0b86\u0ba3\u0bcd\u0b9f\u0bbf\u0bb2\u0bcd",ago:"\u0b95\u0bbf\u0b9f\u0bcd\u0b9f\u0ba4\u0bcd\u0ba4\u0b9f\u0bcd\u0b9f 1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"},other:{default:"\u0b95\u0bbf\u0b9f\u0bcd\u0b9f\u0ba4\u0bcd\u0ba4\u0b9f\u0bcd\u0b9f {{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd",in:"\u0b95\u0bbf\u0b9f\u0bcd\u0b9f\u0ba4\u0bcd\u0ba4\u0b9f\u0bcd\u0b9f {{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bbf\u0bb2\u0bcd",ago:"\u0b95\u0bbf\u0b9f\u0bcd\u0b9f\u0ba4\u0bcd\u0ba4\u0b9f\u0bcd\u0b9f {{count}} \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0bc1"}}},ad=function(t,e,n){var r=null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in":"ago":"default",i=od[t];return void 0===i.one?i[r]:1===e?i.one[r]:i.other[r].replace("{{count}}",String(e))},sd={date:U({formats:{full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},defaultWidth:"full"}),time:U({formats:{full:"a h:mm:ss zzzz",long:"a h:mm:ss z",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ld={lastWeek:"'\u0b95\u0b9f\u0ba8\u0bcd\u0ba4' eeee p '\u0bae\u0ba3\u0bbf\u0b95\u0bcd\u0b95\u0bc1'",yesterday:"'\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1 ' p '\u0bae\u0ba3\u0bbf\u0b95\u0bcd\u0b95\u0bc1'",today:"'\u0b87\u0ba9\u0bcd\u0bb1\u0bc1 ' p '\u0bae\u0ba3\u0bbf\u0b95\u0bcd\u0b95\u0bc1'",tomorrow:"'\u0ba8\u0bbe\u0bb3\u0bc8 ' p '\u0bae\u0ba3\u0bbf\u0b95\u0bcd\u0b95\u0bc1'",nextWeek:"eeee p '\u0bae\u0ba3\u0bbf\u0b95\u0bcd\u0b95\u0bc1'",other:"P"},ud={code:"ta",formatDistance:ad,formatLong:sd,formatRelative:function(t,e,n,r){return ld[t]},localize:{ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["\u0b95\u0bbf.\u0bae\u0bc1.","\u0b95\u0bbf.\u0baa\u0bbf."],abbreviated:["\u0b95\u0bbf.\u0bae\u0bc1.","\u0b95\u0bbf.\u0baa\u0bbf."],wide:["\u0b95\u0bbf\u0bb1\u0bbf\u0bb8\u0bcd\u0ba4\u0bc1\u0bb5\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd","\u0b85\u0ba9\u0bcd\u0ba9\u0bcb \u0b9f\u0bcb\u0bae\u0bbf\u0ba9\u0bbf"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u0b95\u0bbe\u0bb2\u0bbe.1","\u0b95\u0bbe\u0bb2\u0bbe.2","\u0b95\u0bbe\u0bb2\u0bbe.3","\u0b95\u0bbe\u0bb2\u0bbe.4"],wide:["\u0b92\u0ba9\u0bcd\u0bb1\u0bbe\u0bae\u0bcd \u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1","\u0b87\u0bb0\u0ba3\u0bcd\u0b9f\u0bbe\u0bae\u0bcd \u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1","\u0bae\u0bc2\u0ba9\u0bcd\u0bb1\u0bbe\u0bae\u0bcd \u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1","\u0ba8\u0bbe\u0ba9\u0bcd\u0b95\u0bbe\u0bae\u0bcd \u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0b9c","\u0baa\u0bbf","\u0bae\u0bbe","\u0b8f","\u0bae\u0bc7","\u0b9c\u0bc2","\u0b9c\u0bc2","\u0b86","\u0b9a\u0bc6","\u0b85","\u0ba8","\u0b9f\u0bbf"],abbreviated:["\u0b9c\u0ba9.","\u0baa\u0bbf\u0baa\u0bcd.","\u0bae\u0bbe\u0bb0\u0bcd.","\u0b8f\u0baa\u0bcd.","\u0bae\u0bc7","\u0b9c\u0bc2\u0ba9\u0bcd","\u0b9c\u0bc2\u0bb2\u0bc8","\u0b86\u0b95.","\u0b9a\u0bc6\u0baa\u0bcd.","\u0b85\u0b95\u0bcd.","\u0ba8\u0bb5.","\u0b9f\u0bbf\u0b9a."],wide:["\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf","\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf","\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd","\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd","\u0bae\u0bc7","\u0b9c\u0bc2\u0ba9\u0bcd","\u0b9c\u0bc2\u0bb2\u0bc8","\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd","\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bae\u0bcd\u0baa\u0bb0\u0bcd","\u0b85\u0b95\u0bcd\u0b9f\u0bcb\u0baa\u0bb0\u0bcd","\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd","\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u0b9e\u0bbe","\u0ba4\u0bbf","\u0b9a\u0bc6","\u0baa\u0bc1","\u0bb5\u0bbf","\u0bb5\u0bc6","\u0b9a"],short:["\u0b9e\u0bbe","\u0ba4\u0bbf","\u0b9a\u0bc6","\u0baa\u0bc1","\u0bb5\u0bbf","\u0bb5\u0bc6","\u0b9a"],abbreviated:["\u0b9e\u0bbe\u0baf\u0bbf.","\u0ba4\u0bbf\u0b99\u0bcd.","\u0b9a\u0bc6\u0bb5\u0bcd.","\u0baa\u0bc1\u0ba4.","\u0bb5\u0bbf\u0baf\u0bbe.","\u0bb5\u0bc6\u0bb3\u0bcd.","\u0b9a\u0ba9\u0bbf"],wide:["\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1","\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd","\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd","\u0baa\u0bc1\u0ba4\u0ba9\u0bcd","\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd","\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf","\u0b9a\u0ba9\u0bbf"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0bae\u0bc1.\u0baa",pm:"\u0baa\u0bbf.\u0baa",midnight:"\u0ba8\u0bb3\u0bcd.",noon:"\u0ba8\u0ba3\u0bcd.",morning:"\u0b95\u0bbe.",afternoon:"\u0bae\u0ba4\u0bbf.",evening:"\u0bae\u0bbe.",night:"\u0b87\u0bb0."},abbreviated:{am:"\u0bae\u0bc1\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd",pm:"\u0baa\u0bbf\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd",midnight:"\u0ba8\u0bb3\u0bcd\u0bb3\u0bbf\u0bb0\u0bb5\u0bc1",noon:"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd",morning:"\u0b95\u0bbe\u0bb2\u0bc8",afternoon:"\u0bae\u0ba4\u0bbf\u0baf\u0bae\u0bcd",evening:"\u0bae\u0bbe\u0bb2\u0bc8",night:"\u0b87\u0bb0\u0bb5\u0bc1"},wide:{am:"\u0bae\u0bc1\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd",pm:"\u0baa\u0bbf\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd",midnight:"\u0ba8\u0bb3\u0bcd\u0bb3\u0bbf\u0bb0\u0bb5\u0bc1",noon:"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd",morning:"\u0b95\u0bbe\u0bb2\u0bc8",afternoon:"\u0bae\u0ba4\u0bbf\u0baf\u0bae\u0bcd",evening:"\u0bae\u0bbe\u0bb2\u0bc8",night:"\u0b87\u0bb0\u0bb5\u0bc1"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0bae\u0bc1.\u0baa",pm:"\u0baa\u0bbf.\u0baa",midnight:"\u0ba8\u0bb3\u0bcd.",noon:"\u0ba8\u0ba3\u0bcd.",morning:"\u0b95\u0bbe.",afternoon:"\u0bae\u0ba4\u0bbf.",evening:"\u0bae\u0bbe.",night:"\u0b87\u0bb0."},abbreviated:{am:"\u0bae\u0bc1\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd",pm:"\u0baa\u0bbf\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd",midnight:"\u0ba8\u0bb3\u0bcd\u0bb3\u0bbf\u0bb0\u0bb5\u0bc1",noon:"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd",morning:"\u0b95\u0bbe\u0bb2\u0bc8",afternoon:"\u0bae\u0ba4\u0bbf\u0baf\u0bae\u0bcd",evening:"\u0bae\u0bbe\u0bb2\u0bc8",night:"\u0b87\u0bb0\u0bb5\u0bc1"},wide:{am:"\u0bae\u0bc1\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd",pm:"\u0baa\u0bbf\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd",midnight:"\u0ba8\u0bb3\u0bcd\u0bb3\u0bbf\u0bb0\u0bb5\u0bc1",noon:"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd",morning:"\u0b95\u0bbe\u0bb2\u0bc8",afternoon:"\u0bae\u0ba4\u0bbf\u0baf\u0bae\u0bcd",evening:"\u0bae\u0bbe\u0bb2\u0bc8",night:"\u0b87\u0bb0\u0bb5\u0bc1"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\u0bb5\u0ba4\u0bc1)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0b95\u0bbf.\u0bae\u0bc1.|\u0b95\u0bbf.\u0baa\u0bbf.)/i,abbreviated:/^(\u0b95\u0bbf\.?\s?\u0bae\u0bc1\.?|\u0b95\u0bbf\.?\s?\u0baa\u0bbf\.?)/,wide:/^(\u0b95\u0bbf\u0bb1\u0bbf\u0bb8\u0bcd\u0ba4\u0bc1\u0bb5\u0bc1\u0b95\u0bcd\u0b95\u0bc1\s\u0bae\u0bc1\u0ba9\u0bcd|\u0b85\u0ba9\u0bcd\u0ba9\u0bcb\s\u0b9f\u0bcb\u0bae\u0bbf\u0ba9\u0bbf)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/\u0b95\u0bbf\.?\s?\u0bae\u0bc1\.?/,/\u0b95\u0bbf\.?\s?\u0baa\u0bbf\.?/]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0b95\u0bbe\u0bb2\u0bbe.[1234]/i,wide:/^(\u0b92\u0ba9\u0bcd\u0bb1\u0bbe\u0bae\u0bcd|\u0b87\u0bb0\u0ba3\u0bcd\u0b9f\u0bbe\u0bae\u0bcd|\u0bae\u0bc2\u0ba9\u0bcd\u0bb1\u0bbe\u0bae\u0bcd|\u0ba8\u0bbe\u0ba9\u0bcd\u0b95\u0bbe\u0bae\u0bcd) \u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|\u0b95\u0bbe\u0bb2\u0bbe.1|\u0b92\u0ba9\u0bcd\u0bb1\u0bbe\u0bae\u0bcd)/i,/(2|\u0b95\u0bbe\u0bb2\u0bbe.2|\u0b87\u0bb0\u0ba3\u0bcd\u0b9f\u0bbe\u0bae\u0bcd)/i,/(3|\u0b95\u0bbe\u0bb2\u0bbe.3|\u0bae\u0bc2\u0ba9\u0bcd\u0bb1\u0bbe\u0bae\u0bcd)/i,/(4|\u0b95\u0bbe\u0bb2\u0bbe.4|\u0ba8\u0bbe\u0ba9\u0bcd\u0b95\u0bbe\u0bae\u0bcd)/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u0b9c|\u0baa\u0bbf|\u0bae\u0bbe|\u0b8f|\u0bae\u0bc7|\u0b9c\u0bc2|\u0b86|\u0b9a\u0bc6|\u0b85|\u0ba8|\u0b9f\u0bbf)$/i,abbreviated:/^(\u0b9c\u0ba9.|\u0baa\u0bbf\u0baa\u0bcd.|\u0bae\u0bbe\u0bb0\u0bcd.|\u0b8f\u0baa\u0bcd.|\u0bae\u0bc7|\u0b9c\u0bc2\u0ba9\u0bcd|\u0b9c\u0bc2\u0bb2\u0bc8|\u0b86\u0b95.|\u0b9a\u0bc6\u0baa\u0bcd.|\u0b85\u0b95\u0bcd.|\u0ba8\u0bb5.|\u0b9f\u0bbf\u0b9a.)/i,wide:/^(\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf|\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf|\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd|\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd|\u0bae\u0bc7|\u0b9c\u0bc2\u0ba9\u0bcd|\u0b9c\u0bc2\u0bb2\u0bc8|\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd|\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bae\u0bcd\u0baa\u0bb0\u0bcd|\u0b85\u0b95\u0bcd\u0b9f\u0bcb\u0baa\u0bb0\u0bcd|\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd|\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0b9c$/i,/^\u0baa\u0bbf/i,/^\u0bae\u0bbe/i,/^\u0b8f/i,/^\u0bae\u0bc7/i,/^\u0b9c\u0bc2/i,/^\u0b9c\u0bc2/i,/^\u0b86/i,/^\u0b9a\u0bc6/i,/^\u0b85/i,/^\u0ba8/i,/^\u0b9f\u0bbf/i],any:[/^\u0b9c\u0ba9/i,/^\u0baa\u0bbf/i,/^\u0bae\u0bbe/i,/^\u0b8f/i,/^\u0bae\u0bc7/i,/^\u0b9c\u0bc2\u0ba9\u0bcd/i,/^\u0b9c\u0bc2\u0bb2\u0bc8/i,/^\u0b86/i,/^\u0b9a\u0bc6/i,/^\u0b85/i,/^\u0ba8/i,/^\u0b9f\u0bbf/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u0b9e\u0bbe|\u0ba4\u0bbf|\u0b9a\u0bc6|\u0baa\u0bc1|\u0bb5\u0bbf|\u0bb5\u0bc6|\u0b9a)/i,short:/^(\u0b9e\u0bbe|\u0ba4\u0bbf|\u0b9a\u0bc6|\u0baa\u0bc1|\u0bb5\u0bbf|\u0bb5\u0bc6|\u0b9a)/i,abbreviated:/^(\u0b9e\u0bbe\u0baf\u0bbf.|\u0ba4\u0bbf\u0b99\u0bcd.|\u0b9a\u0bc6\u0bb5\u0bcd.|\u0baa\u0bc1\u0ba4.|\u0bb5\u0bbf\u0baf\u0bbe.|\u0bb5\u0bc6\u0bb3\u0bcd.|\u0b9a\u0ba9\u0bbf)/i,wide:/^(\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1|\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd|\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd|\u0baa\u0bc1\u0ba4\u0ba9\u0bcd|\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd|\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf|\u0b9a\u0ba9\u0bbf)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0b9e\u0bbe/i,/^\u0ba4\u0bbf/i,/^\u0b9a\u0bc6/i,/^\u0baa\u0bc1/i,/^\u0bb5\u0bbf/i,/^\u0bb5\u0bc6/i,/^\u0b9a/i],any:[/^\u0b9e\u0bbe/i,/^\u0ba4\u0bbf/i,/^\u0b9a\u0bc6/i,/^\u0baa\u0bc1/i,/^\u0bb5\u0bbf/i,/^\u0bb5\u0bc6/i,/^\u0b9a/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u0bae\u0bc1.\u0baa|\u0baa\u0bbf.\u0baa|\u0ba8\u0bb3\u0bcd|\u0ba8\u0ba3\u0bcd|\u0b95\u0bbe\u0bb2\u0bc8|\u0bae\u0ba4\u0bbf\u0baf\u0bae\u0bcd|\u0bae\u0bbe\u0bb2\u0bc8|\u0b87\u0bb0\u0bb5\u0bc1)/i,any:/^(\u0bae\u0bc1.\u0baa|\u0baa\u0bbf.\u0baa|\u0bae\u0bc1\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0baa\u0bbf\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0ba8\u0bb3\u0bcd\u0bb3\u0bbf\u0bb0\u0bb5\u0bc1|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b95\u0bbe\u0bb2\u0bc8|\u0bae\u0ba4\u0bbf\u0baf\u0bae\u0bcd|\u0bae\u0bbe\u0bb2\u0bc8|\u0b87\u0bb0\u0bb5\u0bc1)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u0bae\u0bc1/i,pm:/^\u0baa\u0bbf/i,midnight:/^\u0ba8\u0bb3\u0bcd/i,noon:/^\u0ba8\u0ba3\u0bcd/i,morning:/\u0b95\u0bbe\u0bb2\u0bc8/i,afternoon:/\u0bae\u0ba4\u0bbf\u0baf\u0bae\u0bcd/i,evening:/\u0bae\u0bbe\u0bb2\u0bc8/i,night:/\u0b87\u0bb0\u0bb5\u0bc1/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},cd={lessThanXSeconds:{standalone:{one:"\u0c38\u0c46\u0c15\u0c28\u0c41 \u0c15\u0c28\u0c4d\u0c28\u0c3e \u0c24\u0c15\u0c4d\u0c15\u0c41\u0c35",other:"{{count}} \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32 \u0c15\u0c28\u0c4d\u0c28\u0c3e \u0c24\u0c15\u0c4d\u0c15\u0c41\u0c35"},withPreposition:{one:"\u0c38\u0c46\u0c15\u0c28\u0c41",other:"{{count}} \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32"}},xSeconds:{standalone:{one:"\u0c12\u0c15 \u0c38\u0c46\u0c15\u0c28\u0c41",other:"{{count}} \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32"},withPreposition:{one:"\u0c12\u0c15 \u0c38\u0c46\u0c15\u0c28\u0c41",other:"{{count}} \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32"}},halfAMinute:{standalone:"\u0c05\u0c30 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",withPreposition:"\u0c05\u0c30 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02"},lessThanXMinutes:{standalone:{one:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02 \u0c15\u0c28\u0c4d\u0c28\u0c3e \u0c24\u0c15\u0c4d\u0c15\u0c41\u0c35",other:"{{count}} \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32 \u0c15\u0c28\u0c4d\u0c28\u0c3e \u0c24\u0c15\u0c4d\u0c15\u0c41\u0c35"},withPreposition:{one:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",other:"{{count}} \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32"}},xMinutes:{standalone:{one:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",other:"{{count}} \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41"},withPreposition:{one:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",other:"{{count}} \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32"}},aboutXHours:{standalone:{one:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 \u0c12\u0c15 \u0c17\u0c02\u0c1f",other:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 {{count}} \u0c17\u0c02\u0c1f\u0c32\u0c41"},withPreposition:{one:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 \u0c12\u0c15 \u0c17\u0c02\u0c1f",other:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 {{count}} \u0c17\u0c02\u0c1f\u0c32"}},xHours:{standalone:{one:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",other:"{{count}} \u0c17\u0c02\u0c1f\u0c32\u0c41"},withPreposition:{one:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",other:"{{count}} \u0c17\u0c02\u0c1f\u0c32"}},xDays:{standalone:{one:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",other:"{{count}} \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41"},withPreposition:{one:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",other:"{{count}} \u0c30\u0c4b\u0c1c\u0c41\u0c32"}},aboutXWeeks:{standalone:{one:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 \u0c12\u0c15 \u0c35\u0c3e\u0c30\u0c02",other:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 {{count}} \u0c35\u0c3e\u0c30\u0c3e\u0c32\u0c41"},withPreposition:{one:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 \u0c12\u0c15 \u0c35\u0c3e\u0c30\u0c02",other:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 {{count}} \u0c35\u0c3e\u0c30\u0c3e\u0c32\u0c32"}},xWeeks:{standalone:{one:"\u0c12\u0c15 \u0c35\u0c3e\u0c30\u0c02",other:"{{count}} \u0c35\u0c3e\u0c30\u0c3e\u0c32\u0c41"},withPreposition:{one:"\u0c12\u0c15 \u0c35\u0c3e\u0c30\u0c02",other:"{{count}} \u0c35\u0c3e\u0c30\u0c3e\u0c32\u0c32"}},aboutXMonths:{standalone:{one:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 \u0c12\u0c15 \u0c28\u0c46\u0c32",other:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 {{count}} \u0c28\u0c46\u0c32\u0c32\u0c41"},withPreposition:{one:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 \u0c12\u0c15 \u0c28\u0c46\u0c32",other:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 {{count}} \u0c28\u0c46\u0c32\u0c32"}},xMonths:{standalone:{one:"\u0c12\u0c15 \u0c28\u0c46\u0c32",other:"{{count}} \u0c28\u0c46\u0c32\u0c32\u0c41"},withPreposition:{one:"\u0c12\u0c15 \u0c28\u0c46\u0c32",other:"{{count}} \u0c28\u0c46\u0c32\u0c32"}},aboutXYears:{standalone:{one:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 \u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",other:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 {{count}} \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},withPreposition:{one:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 \u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",other:"\u0c38\u0c41\u0c2e\u0c3e\u0c30\u0c41 {{count}} \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32"}},xYears:{standalone:{one:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",other:"{{count}} \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},withPreposition:{one:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",other:"{{count}} \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32"}},overXYears:{standalone:{one:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02 \u0c2a\u0c48\u0c17\u0c3e",other:"{{count}} \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c15\u0c41 \u0c2a\u0c48\u0c17\u0c3e"},withPreposition:{one:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",other:"{{count}} \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32"}},almostXYears:{standalone:{one:"\u0c26\u0c3e\u0c26\u0c3e\u0c2a\u0c41 \u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",other:"\u0c26\u0c3e\u0c26\u0c3e\u0c2a\u0c41 {{count}} \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},withPreposition:{one:"\u0c26\u0c3e\u0c26\u0c3e\u0c2a\u0c41 \u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",other:"\u0c26\u0c3e\u0c26\u0c3e\u0c2a\u0c41 {{count}} \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32"}}},dd=function(t,e,n){var r,i=null!==n&&void 0!==n&&n.addSuffix?cd[t].withPreposition:cd[t].standalone;return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+"\u0c32\u0c4b":r+" \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02":r},hd={date:U({formats:{full:"d, MMMM y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd-MM-yy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}'\u0c15\u0c3f'",long:"{{date}} {{time}}'\u0c15\u0c3f'",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},fd={lastWeek:"'\u0c17\u0c24' eeee p",yesterday:"'\u0c28\u0c3f\u0c28\u0c4d\u0c28' p",today:"'\u0c08 \u0c30\u0c4b\u0c1c\u0c41' p",tomorrow:"'\u0c30\u0c47\u0c2a\u0c41' p",nextWeek:"'\u0c24\u0c26\u0c41\u0c2a\u0c30\u0c3f' eeee p",other:"P"},pd={code:"te",formatDistance:dd,formatLong:hd,formatRelative:function(t,e,n,r){return fd[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"\u0c35"},era:K({values:{narrow:["\u0c15\u0c4d\u0c30\u0c40.\u0c2a\u0c42.","\u0c15\u0c4d\u0c30\u0c40.\u0c36."],abbreviated:["\u0c15\u0c4d\u0c30\u0c40.\u0c2a\u0c42.","\u0c15\u0c4d\u0c30\u0c40.\u0c36."],wide:["\u0c15\u0c4d\u0c30\u0c40\u0c38\u0c4d\u0c24\u0c41 \u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c02","\u0c15\u0c4d\u0c30\u0c40\u0c38\u0c4d\u0c24\u0c41\u0c36\u0c15\u0c02"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u0c24\u0c4d\u0c30\u0c481","\u0c24\u0c4d\u0c30\u0c482","\u0c24\u0c4d\u0c30\u0c483","\u0c24\u0c4d\u0c30\u0c484"],wide:["1\u0c35 \u0c24\u0c4d\u0c30\u0c48\u0c2e\u0c3e\u0c38\u0c3f\u0c15\u0c02","2\u0c35 \u0c24\u0c4d\u0c30\u0c48\u0c2e\u0c3e\u0c38\u0c3f\u0c15\u0c02","3\u0c35 \u0c24\u0c4d\u0c30\u0c48\u0c2e\u0c3e\u0c38\u0c3f\u0c15\u0c02","4\u0c35 \u0c24\u0c4d\u0c30\u0c48\u0c2e\u0c3e\u0c38\u0c3f\u0c15\u0c02"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0c1c","\u0c2b\u0c3f","\u0c2e\u0c3e","\u0c0f","\u0c2e\u0c47","\u0c1c\u0c42","\u0c1c\u0c41","\u0c06","\u0c38\u0c46","\u0c05","\u0c28","\u0c21\u0c3f"],abbreviated:["\u0c1c\u0c28","\u0c2b\u0c3f\u0c2c\u0c4d\u0c30","\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f","\u0c0f\u0c2a\u0c4d\u0c30\u0c3f","\u0c2e\u0c47","\u0c1c\u0c42\u0c28\u0c4d","\u0c1c\u0c41\u0c32\u0c48","\u0c06\u0c17","\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02","\u0c05\u0c15\u0c4d\u0c1f\u0c4b","\u0c28\u0c35\u0c02","\u0c21\u0c3f\u0c38\u0c46\u0c02"],wide:["\u0c1c\u0c28\u0c35\u0c30\u0c3f","\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f","\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f","\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d","\u0c2e\u0c47","\u0c1c\u0c42\u0c28\u0c4d","\u0c1c\u0c41\u0c32\u0c48","\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41","\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d","\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d","\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d","\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u0c06","\u0c38\u0c4b","\u0c2e","\u0c2c\u0c41","\u0c17\u0c41","\u0c36\u0c41","\u0c36"],short:["\u0c06\u0c26\u0c3f","\u0c38\u0c4b\u0c2e","\u0c2e\u0c02\u0c17\u0c33","\u0c2c\u0c41\u0c27","\u0c17\u0c41\u0c30\u0c41","\u0c36\u0c41\u0c15\u0c4d\u0c30","\u0c36\u0c28\u0c3f"],abbreviated:["\u0c06\u0c26\u0c3f","\u0c38\u0c4b\u0c2e","\u0c2e\u0c02\u0c17\u0c33","\u0c2c\u0c41\u0c27","\u0c17\u0c41\u0c30\u0c41","\u0c36\u0c41\u0c15\u0c4d\u0c30","\u0c36\u0c28\u0c3f"],wide:["\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02","\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02","\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02","\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02","\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02","\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02","\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c3e\u0c39\u0c4d\u0c28\u0c02",pm:"\u0c05\u0c2a\u0c30\u0c3e\u0c39\u0c4d\u0c28\u0c02",midnight:"\u0c05\u0c30\u0c4d\u0c27\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f",noon:"\u0c2e\u0c3f\u0c1f\u0c4d\u0c1f\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",morning:"\u0c09\u0c26\u0c2f\u0c02",afternoon:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",evening:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02",night:"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},abbreviated:{am:"\u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c3e\u0c39\u0c4d\u0c28\u0c02",pm:"\u0c05\u0c2a\u0c30\u0c3e\u0c39\u0c4d\u0c28\u0c02",midnight:"\u0c05\u0c30\u0c4d\u0c27\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f",noon:"\u0c2e\u0c3f\u0c1f\u0c4d\u0c1f\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",morning:"\u0c09\u0c26\u0c2f\u0c02",afternoon:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",evening:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02",night:"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},wide:{am:"\u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c3e\u0c39\u0c4d\u0c28\u0c02",pm:"\u0c05\u0c2a\u0c30\u0c3e\u0c39\u0c4d\u0c28\u0c02",midnight:"\u0c05\u0c30\u0c4d\u0c27\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f",noon:"\u0c2e\u0c3f\u0c1f\u0c4d\u0c1f\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",morning:"\u0c09\u0c26\u0c2f\u0c02",afternoon:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",evening:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02",night:"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c3e\u0c39\u0c4d\u0c28\u0c02",pm:"\u0c05\u0c2a\u0c30\u0c3e\u0c39\u0c4d\u0c28\u0c02",midnight:"\u0c05\u0c30\u0c4d\u0c27\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f",noon:"\u0c2e\u0c3f\u0c1f\u0c4d\u0c1f\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",morning:"\u0c09\u0c26\u0c2f\u0c02",afternoon:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",evening:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02",night:"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},abbreviated:{am:"\u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c3e\u0c39\u0c4d\u0c28\u0c02",pm:"\u0c05\u0c2a\u0c30\u0c3e\u0c39\u0c4d\u0c28\u0c02",midnight:"\u0c05\u0c30\u0c4d\u0c27\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f",noon:"\u0c2e\u0c3f\u0c1f\u0c4d\u0c1f\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",morning:"\u0c09\u0c26\u0c2f\u0c02",afternoon:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",evening:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02",night:"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},wide:{am:"\u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c3e\u0c39\u0c4d\u0c28\u0c02",pm:"\u0c05\u0c2a\u0c30\u0c3e\u0c39\u0c4d\u0c28\u0c02",midnight:"\u0c05\u0c30\u0c4d\u0c27\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f",noon:"\u0c2e\u0c3f\u0c1f\u0c4d\u0c1f\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",morning:"\u0c09\u0c26\u0c2f\u0c02",afternoon:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02",evening:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02",night:"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\u0c35)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0c15\u0c4d\u0c30\u0c40\.\u0c2a\u0c42\.|\u0c15\u0c4d\u0c30\u0c40\.\u0c36\.)/i,abbreviated:/^(\u0c15\u0c4d\u0c30\u0c40\.?\s?\u0c2a\u0c42\.?|\u0c2a\u0c4d\u0c30\.?\s?\u0c36\.?\s?\u0c2a\u0c42\.?|\u0c15\u0c4d\u0c30\u0c40\.?\s?\u0c36\.?|\u0c38\u0c3e\.?\s?\u0c36\.?)/i,wide:/^(\u0c15\u0c4d\u0c30\u0c40\u0c38\u0c4d\u0c24\u0c41 \u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c02|\u0c2a\u0c4d\u0c30\u0c38\u0c4d\u0c24\u0c41\u0c24 \u0c36\u0c15\u0c3e\u0c28\u0c3f\u0c15\u0c3f \u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c02|\u0c15\u0c4d\u0c30\u0c40\u0c38\u0c4d\u0c24\u0c41 \u0c36\u0c15\u0c02|\u0c2a\u0c4d\u0c30\u0c38\u0c4d\u0c24\u0c41\u0c24 \u0c36\u0c15\u0c02)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u0c2a\u0c42|\u0c36)/i,/^\u0c38\u0c3e/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0c24\u0c4d\u0c30\u0c48[1234]/i,wide:/^[1234](\u0c35)? \u0c24\u0c4d\u0c30\u0c48\u0c2e\u0c3e\u0c38\u0c3f\u0c15\u0c02/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u0c1c\u0c42|\u0c1c\u0c41|\u0c1c|\u0c2b\u0c3f|\u0c2e\u0c3e|\u0c0f|\u0c2e\u0c47|\u0c06|\u0c38\u0c46|\u0c05|\u0c28|\u0c21\u0c3f)/i,abbreviated:/^(\u0c1c\u0c28|\u0c2b\u0c3f\u0c2c\u0c4d\u0c30|\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f|\u0c0f\u0c2a\u0c4d\u0c30\u0c3f|\u0c2e\u0c47|\u0c1c\u0c42\u0c28\u0c4d|\u0c1c\u0c41\u0c32\u0c48|\u0c06\u0c17|\u0c38\u0c46\u0c2a\u0c4d|\u0c05\u0c15\u0c4d\u0c1f\u0c4b|\u0c28\u0c35|\u0c21\u0c3f\u0c38\u0c46)/i,wide:/^(\u0c1c\u0c28\u0c35\u0c30\u0c3f|\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f|\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f|\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d|\u0c2e\u0c47|\u0c1c\u0c42\u0c28\u0c4d|\u0c1c\u0c41\u0c32\u0c48|\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41|\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d|\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d|\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d|\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0c1c/i,/^\u0c2b\u0c3f/i,/^\u0c2e\u0c3e/i,/^\u0c0f/i,/^\u0c2e\u0c47/i,/^\u0c1c\u0c42/i,/^\u0c1c\u0c41/i,/^\u0c06/i,/^\u0c38\u0c46/i,/^\u0c05/i,/^\u0c28/i,/^\u0c21\u0c3f/i],any:[/^\u0c1c\u0c28/i,/^\u0c2b\u0c3f/i,/^\u0c2e\u0c3e/i,/^\u0c0f/i,/^\u0c2e\u0c47/i,/^\u0c1c\u0c42\u0c28\u0c4d/i,/^\u0c1c\u0c41\u0c32\u0c48/i,/^\u0c06\u0c17/i,/^\u0c38\u0c46/i,/^\u0c05/i,/^\u0c28/i,/^\u0c21\u0c3f/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u0c06|\u0c38\u0c4b|\u0c2e|\u0c2c\u0c41|\u0c17\u0c41|\u0c36\u0c41|\u0c36)/i,short:/^(\u0c06\u0c26\u0c3f|\u0c38\u0c4b\u0c2e|\u0c2e\u0c02|\u0c2c\u0c41\u0c27|\u0c17\u0c41\u0c30\u0c41|\u0c36\u0c41\u0c15\u0c4d\u0c30|\u0c36\u0c28\u0c3f)/i,abbreviated:/^(\u0c06\u0c26\u0c3f|\u0c38\u0c4b\u0c2e|\u0c2e\u0c02|\u0c2c\u0c41\u0c27|\u0c17\u0c41\u0c30\u0c41|\u0c36\u0c41\u0c15\u0c4d\u0c30|\u0c36\u0c28\u0c3f)/i,wide:/^(\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02|\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02|\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02|\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02|\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02|\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02|\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0c06/i,/^\u0c38\u0c4b/i,/^\u0c2e/i,/^\u0c2c\u0c41/i,/^\u0c17\u0c41/i,/^\u0c36\u0c41/i,/^\u0c36/i],any:[/^\u0c06\u0c26\u0c3f/i,/^\u0c38\u0c4b\u0c2e/i,/^\u0c2e\u0c02/i,/^\u0c2c\u0c41\u0c27/i,/^\u0c17\u0c41\u0c30\u0c41/i,/^\u0c36\u0c41\u0c15\u0c4d\u0c30/i,/^\u0c36\u0c28\u0c3f/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c05\u0c2a\u0c30\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c05\u0c30\u0c4d\u0c27\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c2e\u0c3f\u0c1f\u0c4d\u0c1f\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02|\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f)/i,any:/^(\u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c05\u0c2a\u0c30\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c05\u0c30\u0c4d\u0c27\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c2e\u0c3f\u0c1f\u0c4d\u0c1f\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02|\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u0c2a\u0c42\u0c30\u0c4d\u0c35\u0c3e\u0c39\u0c4d\u0c28\u0c02/i,pm:/^\u0c05\u0c2a\u0c30\u0c3e\u0c39\u0c4d\u0c28\u0c02/i,midnight:/^\u0c05\u0c30\u0c4d\u0c27/i,noon:/^\u0c2e\u0c3f\u0c1f\u0c4d\u0c1f/i,morning:/\u0c09\u0c26\u0c2f\u0c02/i,afternoon:/\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02/i,evening:/\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/i,night:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},md={lessThanXSeconds:{one:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 1 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",other:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 {{count}} \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"},xSeconds:{one:"1 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",other:"{{count}} \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"},halfAMinute:"\u0e04\u0e23\u0e36\u0e48\u0e07\u0e19\u0e32\u0e17\u0e35",lessThanXMinutes:{one:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 1 \u0e19\u0e32\u0e17\u0e35",other:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 {{count}} \u0e19\u0e32\u0e17\u0e35"},xMinutes:{one:"1 \u0e19\u0e32\u0e17\u0e35",other:"{{count}} \u0e19\u0e32\u0e17\u0e35"},aboutXHours:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07"},xHours:{one:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",other:"{{count}} \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07"},xDays:{one:"1 \u0e27\u0e31\u0e19",other:"{{count}} \u0e27\u0e31\u0e19"},aboutXWeeks:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c"},xWeeks:{one:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",other:"{{count}} \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c"},aboutXMonths:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e40\u0e14\u0e37\u0e2d\u0e19",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e40\u0e14\u0e37\u0e2d\u0e19"},xMonths:{one:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",other:"{{count}} \u0e40\u0e14\u0e37\u0e2d\u0e19"},aboutXYears:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e1b\u0e35",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e1b\u0e35"},xYears:{one:"1 \u0e1b\u0e35",other:"{{count}} \u0e1b\u0e35"},overXYears:{one:"\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 1 \u0e1b\u0e35",other:"\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 {{count}} \u0e1b\u0e35"},almostXYears:{one:"\u0e40\u0e01\u0e37\u0e2d\u0e1a 1 \u0e1b\u0e35",other:"\u0e40\u0e01\u0e37\u0e2d\u0e1a {{count}} \u0e1b\u0e35"}},gd=function(t,e,n){var r,i=md[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"halfAMinute"===t?"\u0e43\u0e19"+r:"\u0e43\u0e19 "+r:r+"\u0e17\u0e35\u0e48\u0e1c\u0e48\u0e32\u0e19\u0e21\u0e32":r},bd={date:U({formats:{full:"\u0e27\u0e31\u0e19EEEE\u0e17\u0e35\u0e48 do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss \u0e19. zzzz",long:"H:mm:ss \u0e19. z",medium:"H:mm:ss \u0e19.",short:"H:mm \u0e19."},defaultWidth:"medium"}),dateTime:U({formats:{full:"{{date}} '\u0e40\u0e27\u0e25\u0e32' {{time}}",long:"{{date}} '\u0e40\u0e27\u0e25\u0e32' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vd={lastWeek:"eeee'\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27\u0e40\u0e27\u0e25\u0e32' p",yesterday:"'\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49\u0e40\u0e27\u0e25\u0e32' p",today:"'\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e40\u0e27\u0e25\u0e32' p",tomorrow:"'\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49\u0e40\u0e27\u0e25\u0e32' p",nextWeek:"eeee '\u0e40\u0e27\u0e25\u0e32' p",other:"P"},yd={code:"th",formatDistance:gd,formatLong:bd,formatRelative:function(t,e,n,r){return vd[t]},localize:{ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["B","\u0e04\u0e28"],abbreviated:["BC","\u0e04.\u0e28."],wide:["\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25","\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e41\u0e23\u0e01","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e2a\u0e2d\u0e07","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e2a\u0e32\u0e21","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e2a\u0e35\u0e48"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0e21.\u0e04.","\u0e01.\u0e1e.","\u0e21\u0e35.\u0e04.","\u0e40\u0e21.\u0e22.","\u0e1e.\u0e04.","\u0e21\u0e34.\u0e22.","\u0e01.\u0e04.","\u0e2a.\u0e04.","\u0e01.\u0e22.","\u0e15.\u0e04.","\u0e1e.\u0e22.","\u0e18.\u0e04."],abbreviated:["\u0e21.\u0e04.","\u0e01.\u0e1e.","\u0e21\u0e35.\u0e04.","\u0e40\u0e21.\u0e22.","\u0e1e.\u0e04.","\u0e21\u0e34.\u0e22.","\u0e01.\u0e04.","\u0e2a.\u0e04.","\u0e01.\u0e22.","\u0e15.\u0e04.","\u0e1e.\u0e22.","\u0e18.\u0e04."],wide:["\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21","\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c","\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21","\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19","\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21","\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19","\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21","\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21","\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19","\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21","\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19","\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."],short:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."],abbreviated:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."],wide:["\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c","\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c","\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23","\u0e1e\u0e38\u0e18","\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35","\u0e28\u0e38\u0e01\u0e23\u0e4c","\u0e40\u0e2a\u0e32\u0e23\u0e4c"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e1a\u0e48\u0e32\u0e22",evening:"\u0e40\u0e22\u0e47\u0e19",night:"\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},abbreviated:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e1a\u0e48\u0e32\u0e22",evening:"\u0e40\u0e22\u0e47\u0e19",night:"\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},wide:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e1a\u0e48\u0e32\u0e22",evening:"\u0e40\u0e22\u0e47\u0e19",night:"\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e27\u0e31\u0e19",evening:"\u0e15\u0e2d\u0e19\u0e40\u0e22\u0e47\u0e19",night:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},abbreviated:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e27\u0e31\u0e19",evening:"\u0e15\u0e2d\u0e19\u0e40\u0e22\u0e47\u0e19",night:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},wide:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e27\u0e31\u0e19",evening:"\u0e15\u0e2d\u0e19\u0e40\u0e22\u0e47\u0e19",night:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^\d+/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^([bB]|[aA]|\u0e04\u0e28)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|\u0e04\.?\u0e28\.?)/i,wide:/^(\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^[bB]/i,/^(^[aA]|\u0e04\.?\u0e28\.?|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a|)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a(\u0e17\u0e35\u0e48)? ?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u0e41\u0e23\u0e01|\u0e2b\u0e19\u0e36\u0e48\u0e07)/i,/(2|\u0e2a\u0e2d\u0e07)/i,/(3|\u0e2a\u0e32\u0e21)/i,/(4|\u0e2a\u0e35\u0e48)/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u0e21\.?\u0e04\.?|\u0e01\.?\u0e1e\.?|\u0e21\u0e35\.?\u0e04\.?|\u0e40\u0e21\.?\u0e22\.?|\u0e1e\.?\u0e04\.?|\u0e21\u0e34\.?\u0e22\.?|\u0e01\.?\u0e04\.?|\u0e2a\.?\u0e04\.?|\u0e01\.?\u0e22\.?|\u0e15\.?\u0e04\.?|\u0e1e\.?\u0e22\.?|\u0e18\.?\u0e04\.?)/i,abbreviated:/^(\u0e21\.?\u0e04\.?|\u0e01\.?\u0e1e\.?|\u0e21\u0e35\.?\u0e04\.?|\u0e40\u0e21\.?\u0e22\.?|\u0e1e\.?\u0e04\.?|\u0e21\u0e34\.?\u0e22\.?|\u0e01\.?\u0e04\.?|\u0e2a\.?\u0e04\.?|\u0e01\.?\u0e22\.?|\u0e15\.?\u0e04\.?|\u0e1e\.?\u0e22\.?|\u0e18\.?\u0e04\.?')/i,wide:/^(\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21|\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c|\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21|\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19|\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21|\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19|\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21|\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21|\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19|\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21|\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19|\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^\u0e21\u0e01/i,/^\u0e01\u0e38\u0e21/i,/^\u0e21\u0e35/i,/^\u0e40\u0e21/i,/^\u0e1e\u0e24\u0e29/i,/^\u0e21\u0e34/i,/^\u0e01\u0e23\u0e01/i,/^\u0e2a/i,/^\u0e01\u0e31\u0e19/i,/^\u0e15/i,/^\u0e1e\u0e24\u0e28/i,/^\u0e18/i],any:[/^\u0e21\.?\u0e04\.?/i,/^\u0e01\.?\u0e1e\.?/i,/^\u0e21\u0e35\.?\u0e04\.?/i,/^\u0e40\u0e21\.?\u0e22\.?/i,/^\u0e1e\.?\u0e04\.?/i,/^\u0e21\u0e34\.?\u0e22\.?/i,/^\u0e01\.?\u0e04\.?/i,/^\u0e2a\.?\u0e04\.?/i,/^\u0e01\.?\u0e22\.?/i,/^\u0e15\.?\u0e04\.?/i,/^\u0e1e\.?\u0e22\.?/i,/^\u0e18\.?\u0e04\.?/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^(\u0e2d\u0e32\.?|\u0e08\.?|\u0e2d\.?|\u0e1e\u0e24\.?|\u0e1e\.?|\u0e28\.?|\u0e2a\.?)/i,short:/^(\u0e2d\u0e32\.?|\u0e08\.?|\u0e2d\.?|\u0e1e\u0e24\.?|\u0e1e\.?|\u0e28\.?|\u0e2a\.?)/i,abbreviated:/^(\u0e2d\u0e32\.?|\u0e08\.?|\u0e2d\.?|\u0e1e\u0e24\.?|\u0e1e\.?|\u0e28\.?|\u0e2a\.?)/i,wide:/^(\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c|\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c|\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23|\u0e1e\u0e38\u0e18|\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35|\u0e28\u0e38\u0e01\u0e23\u0e4c|\u0e40\u0e2a\u0e32\u0e23\u0e4c)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^\u0e2d\u0e32/i,/^\u0e08\u0e31/i,/^\u0e2d\u0e31/i,/^\u0e1e\u0e38\u0e18/i,/^\u0e1e\u0e24/i,/^\u0e28/i,/^\u0e40\u0e2a/i],any:[/^\u0e2d\u0e32/i,/^\u0e08/i,/^\u0e2d/i,/^\u0e1e(?!\u0e24)/i,/^\u0e1e\u0e24/i,/^\u0e28/i,/^\u0e2a/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19|\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|(\u0e15\u0e2d\u0e19.*?)?.*(\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e40\u0e0a\u0e49\u0e32|\u0e1a\u0e48\u0e32\u0e22|\u0e40\u0e22\u0e47\u0e19|\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/i,pm:/^\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/i,midnight:/^\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19/i,noon:/^\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/i,morning:/\u0e40\u0e0a\u0e49\u0e32/i,afternoon:/\u0e1a\u0e48\u0e32\u0e22/i,evening:/\u0e40\u0e22\u0e47\u0e19/i,night:/\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},wd={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yar\u0131m dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yakla\u015f\u0131k 1 saat",other:"yakla\u015f\u0131k {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 g\xfcn",other:"{{count}} g\xfcn"},aboutXWeeks:{one:"yakla\u015f\u0131k 1 hafta",other:"yakla\u015f\u0131k {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yakla\u015f\u0131k 1 ay",other:"yakla\u015f\u0131k {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yakla\u015f\u0131k 1 y\u0131l",other:"yakla\u015f\u0131k {{count}} y\u0131l"},xYears:{one:"1 y\u0131l",other:"{{count}} y\u0131l"},overXYears:{one:"1 y\u0131ldan fazla",other:"{{count}} y\u0131ldan fazla"},almostXYears:{one:"neredeyse 1 y\u0131l",other:"neredeyse {{count}} y\u0131l"}},kd=function(t,e,n){var r,i=wd[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+" sonra":r+" \xf6nce":r},_d={date:U({formats:{full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Od={lastWeek:"'ge\xe7en hafta' eeee 'saat' p",yesterday:"'d\xfcn saat' p",today:"'bug\xfcn saat' p",tomorrow:"'yar\u0131n saat' p",nextWeek:"eeee 'saat' p",other:"P"},xd={code:"tr",formatDistance:kd,formatLong:_d,formatRelative:function(t,e,n,r){return Od[t]},localize:{ordinalNumber:function(t,e){return Number(t)+"."},era:K({values:{narrow:["M\xd6","MS"],abbreviated:["M\xd6","MS"],wide:["Milattan \xd6nce","Milattan Sonra"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1\xc7","2\xc7","3\xc7","4\xc7"],wide:["\u0130lk \xe7eyrek","\u0130kinci \xc7eyrek","\xdc\xe7\xfcnc\xfc \xe7eyrek","Son \xe7eyrek"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:K({values:{narrow:["O","\u015e","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","\u015eub","Mar","Nis","May","Haz","Tem","A\u011fu","Eyl","Eki","Kas","Ara"],wide:["Ocak","\u015eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011fustos","Eyl\xfcl","Ekim","Kas\u0131m","Aral\u0131k"]},defaultWidth:"wide"}),day:K({values:{narrow:["P","P","S","\xc7","P","C","C"],short:["Pz","Pt","Sa","\xc7a","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","\xc7ar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Sal\u0131","\xc7ar\u015famba","Per\u015fembe","Cuma","Cumartesi"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\xf6\xf6",pm:"\xf6s",midnight:"gy",noon:"\xf6",morning:"sa",afternoon:"\xf6s",evening:"ak",night:"ge"},abbreviated:{am:"\xd6\xd6",pm:"\xd6S",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011fle",morning:"sabah",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015fam",night:"gece"},wide:{am:"\xd6.\xd6.",pm:"\xd6.S.",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011fle",morning:"sabah",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015fam",night:"gece"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\xf6\xf6",pm:"\xf6s",midnight:"gy",noon:"\xf6",morning:"sa",afternoon:"\xf6s",evening:"ak",night:"ge"},abbreviated:{am:"\xd6\xd6",pm:"\xd6S",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011flen",morning:"sabahleyin",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015famleyin",night:"geceleyin"},wide:{am:"\xf6.\xf6.",pm:"\xf6.s.",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011flen",morning:"sabahleyin",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015famleyin",night:"geceleyin"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(m\xf6|ms)/i,abbreviated:/^(m\xf6|ms)/i,wide:/^(milattan \xf6nce|milattan sonra)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(^m\xf6|^milattan \xf6nce)/i,/(^ms|^milattan sonra)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\xe7/i,wide:/^((i|\u0130)lk|(i|\u0130)kinci|\xfc\xe7\xfcnc\xfc|son) \xe7eyrek/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1\xe7/i,/2\xe7/i,/3\xe7/i,/4\xe7/i],wide:[/^(i|\u0130)lk \xe7eyrek/i,/(i|\u0130)kinci \xe7eyrek/i,/\xfc\xe7\xfcnc\xfc \xe7eyrek/i,/son \xe7eyrek/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[o\u015fmnhtaek]/i,abbreviated:/^(oca|\u015fub|mar|nis|may|haz|tem|a\u011fu|eyl|eki|kas|ara)/i,wide:/^(ocak|\u015fubat|mart|nisan|may\u0131s|haziran|temmuz|a\u011fustos|eyl\xfcl|ekim|kas\u0131m|aral\u0131k)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^o/i,/^\u015f/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^\u015f/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^a\u011f/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[ps\xe7c]/i,short:/^(pz|pt|sa|\xe7a|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|\xe7ar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|sal\u0131|\xe7ar\u015famba|per\u015fembe|cuma(?!rtesi)|cumartesi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^p/i,/^p/i,/^s/i,/^\xe7/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^\xe7a/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^sal\u0131/i,/^\xe7ar\u015famba/i,/^per\u015fembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\xf6\xf6|\xf6s|gy|\xf6|sa|\xf6s|ak|ge)/i,any:/^(\xf6\.?\s?[\xf6s]\.?|\xf6\u011fleden sonra|gece yar\u0131s\u0131|\xf6\u011fle|(sabah|\xf6\u011f|ak\u015fam|gece)(leyin))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\xf6\.?\xf6\.?/i,pm:/^\xf6\.?s\.?/i,midnight:/^(gy|gece yar\u0131s\u0131)/i,noon:/^\xf6\u011f/i,morning:/^sa/i,afternoon:/^\xf6\u011fleden sonra/i,evening:/^ak/i,night:/^ge/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ed={lessThanXSeconds:{one:"\u0628\u0649\u0631 \u0633\u0649\u0643\u06c7\u0646\u062a \u0626\u0649\u0686\u0649\u062f\u06d5",other:"\u0633\u0649\u0643\u06c7\u0646\u062a \u0626\u0649\u0686\u0649\u062f\u06d5 {{count}}"},xSeconds:{one:"\u0628\u0649\u0631 \u0633\u0649\u0643\u06c7\u0646\u062a",other:"\u0633\u0649\u0643\u06c7\u0646\u062a {{count}}"},halfAMinute:"\u064a\u0649\u0631\u0649\u0645 \u0645\u0649\u0646\u06c7\u062a",lessThanXMinutes:{one:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a \u0626\u0649\u0686\u0649\u062f\u06d5",other:"\u0645\u0649\u0646\u06c7\u062a \u0626\u0649\u0686\u0649\u062f\u06d5 {{count}}"},xMinutes:{one:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",other:"\u0645\u0649\u0646\u06c7\u062a {{count}}"},aboutXHours:{one:"\u062a\u06d5\u062e\u0645\u0649\u0646\u06d5\u0646 \u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",other:"\u0633\u0627\u0626\u06d5\u062a {{count}} \u062a\u06d5\u062e\u0645\u0649\u0646\u06d5\u0646"},xHours:{one:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",other:"\u0633\u0627\u0626\u06d5\u062a {{count}}"},xDays:{one:"\u0628\u0649\u0631 \u0643\u06c8\u0646",other:"\u0643\u06c8\u0646 {{count}}"},aboutXWeeks:{one:"\u062a\u06d5\u062e\u0645\u0649\u0646\u06d5\u0646 \u0628\u0649\u0631\u06be\u06d5\u067e\u062a\u06d5",other:"\u06be\u06d5\u067e\u062a\u06d5 {{count}} \u062a\u06d5\u062e\u0645\u0649\u0646\u06d5\u0646"},xWeeks:{one:"\u0628\u0649\u0631\u06be\u06d5\u067e\u062a\u06d5",other:"\u06be\u06d5\u067e\u062a\u06d5 {{count}}"},aboutXMonths:{one:"\u062a\u06d5\u062e\u0645\u0649\u0646\u06d5\u0646 \u0628\u0649\u0631 \u0626\u0627\u064a",other:"\u0626\u0627\u064a {{count}} \u062a\u06d5\u062e\u0645\u0649\u0646\u06d5\u0646"},xMonths:{one:"\u0628\u0649\u0631 \u0626\u0627\u064a",other:"\u0626\u0627\u064a {{count}}"},aboutXYears:{one:"\u062a\u06d5\u062e\u0645\u0649\u0646\u06d5\u0646 \u0628\u0649\u0631 \u064a\u0649\u0644",other:"\u064a\u0649\u0644 {{count}} \u062a\u06d5\u062e\u0645\u0649\u0646\u06d5\u0646"},xYears:{one:"\u0628\u0649\u0631 \u064a\u0649\u0644",other:"\u064a\u0649\u0644 {{count}}"},overXYears:{one:"\u0628\u0649\u0631 \u064a\u0649\u0644\u062f\u0649\u0646 \u0626\u0627\u0631\u062a\u06c7\u0642",other:"\u064a\u0649\u0644\u062f\u0649\u0646 \u0626\u0627\u0631\u062a\u06c7\u0642 {{count}}"},almostXYears:{one:"\u0626\u0627\u0633\u0627\u0633\u06d5\u0646 \u0628\u0649\u0631 \u064a\u0649\u0644",other:"\u064a\u0649\u0644 {{count}} \u0626\u0627\u0633\u0627\u0633\u06d5\u0646"}},jd=function(t,e,n){var r,i=Ed[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r:r+" \u0628\u0648\u0644\u062f\u0649":r},Sd={date:U({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u062f\u06d5' {{time}}",long:"{{date}} '\u062f\u06d5' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Pd={lastWeek:"'\u0626\u200d\u06c6\u062a\u0643\u06d5\u0646' eeee '\u062f\u06d5' p",yesterday:"'\u062a\u06c8\u0646\u06c8\u06af\u06c8\u0646 \u062f\u06d5' p",today:"'\u0628\u06c8\u06af\u06c8\u0646 \u062f\u06d5' p",tomorrow:"'\u0626\u06d5\u062a\u06d5 \u062f\u06d5' p",nextWeek:"eeee '\u062f\u06d5' p",other:"P"},Cd={code:"ug",formatDistance:jd,formatLong:Sd,formatRelative:function(t,e,n,r){return Pd[t]},localize:{ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["\u0628","\u0643"],abbreviated:["\u0628","\u0643"],wide:["\u0645\u0649\u064a\u0644\u0627\u062f\u0649\u062f\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646","\u0645\u0649\u064a\u0644\u0627\u062f\u0649\u062f\u0649\u0646 \u0643\u0649\u064a\u0649\u0646"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1","2","3","4"],wide:["\u0628\u0649\u0631\u0649\u0646\u062c\u0649 \u0686\u0627\u0631\u06d5\u0643","\u0626\u0649\u0643\u0643\u0649\u0646\u062c\u0649 \u0686\u0627\u0631\u06d5\u0643","\u0626\u06c8\u0686\u0649\u0646\u062c\u0649 \u0686\u0627\u0631\u06d5\u0643","\u062a\u06c6\u062a\u0649\u0646\u062c\u0649 \u0686\u0627\u0631\u06d5\u0643"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u064a","\u0641","\u0645","\u0627","\u0645","\u0649","\u0649","\u0627","\u0633","\u06c6","\u0646","\u062f"],abbreviated:["\u064a\u0627\u0646\u06cb\u0627\u0631","\u0641\u06d0\u06cb\u0649\u0631\u0627\u0644","\u0645\u0627\u0631\u062a","\u0626\u0627\u067e\u0631\u0649\u0644","\u0645\u0627\u064a","\u0626\u0649\u064a\u06c7\u0646","\u0626\u0649\u064a\u0648\u0644","\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a","\u0633\u0649\u0646\u062a\u06d5\u0628\u0649\u0631","\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631","\u0646\u0648\u064a\u0627\u0628\u0649\u0631","\u062f\u0649\u0643\u0627\u0628\u0649\u0631"],wide:["\u064a\u0627\u0646\u06cb\u0627\u0631","\u0641\u06d0\u06cb\u0649\u0631\u0627\u0644","\u0645\u0627\u0631\u062a","\u0626\u0627\u067e\u0631\u0649\u0644","\u0645\u0627\u064a","\u0626\u0649\u064a\u06c7\u0646","\u0626\u0649\u064a\u0648\u0644","\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a","\u0633\u0649\u0646\u062a\u06d5\u0628\u0649\u0631","\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631","\u0646\u0648\u064a\u0627\u0628\u0649\u0631","\u062f\u0649\u0643\u0627\u0628\u0649\u0631"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u064a","\u062f","\u0633","\u0686","\u067e","\u062c","\u0634"],short:["\u064a","\u062f","\u0633","\u0686","\u067e","\u062c","\u0634"],abbreviated:["\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5","\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5","\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5","\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5","\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5","\u062c\u06c8\u0645\u06d5","\u0634\u06d5\u0646\u0628\u06d5"],wide:["\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5","\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5","\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5","\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5","\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5","\u062c\u06c8\u0645\u06d5","\u0634\u06d5\u0646\u0628\u06d5"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0626\u06d5",pm:"\u0686",midnight:"\u0643",noon:"\u0686",morning:"\u0626\u06d5\u062a\u0649\u06af\u06d5\u0646",afternoon:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u0649\u064a\u0649\u0646",evening:"\u0626\u0627\u062e\u0634\u0649\u0645",night:"\u0643\u0649\u0686\u06d5"},abbreviated:{am:"\u0626\u06d5",pm:"\u0686",midnight:"\u0643",noon:"\u0686",morning:"\u0626\u06d5\u062a\u0649\u06af\u06d5\u0646",afternoon:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u0649\u064a\u0649\u0646",evening:"\u0626\u0627\u062e\u0634\u0649\u0645",night:"\u0643\u0649\u0686\u06d5"},wide:{am:"\u0626\u06d5",pm:"\u0686",midnight:"\u0643",noon:"\u0686",morning:"\u0626\u06d5\u062a\u0649\u06af\u06d5\u0646",afternoon:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u0649\u064a\u0649\u0646",evening:"\u0626\u0627\u062e\u0634\u0649\u0645",night:"\u0643\u0649\u0686\u06d5"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0626\u06d5",pm:"\u0686",midnight:"\u0643",noon:"\u0686",morning:"\u0626\u06d5\u062a\u0649\u06af\u06d5\u0646\u062f\u06d5",afternoon:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u0649\u064a\u0649\u0646",evening:"\u0626\u0627\u062e\u0634\u0627\u0645\u062f\u0627",night:"\u0643\u0649\u0686\u0649\u062f\u06d5"},abbreviated:{am:"\u0626\u06d5",pm:"\u0686",midnight:"\u0643",noon:"\u0686",morning:"\u0626\u06d5\u062a\u0649\u06af\u06d5\u0646\u062f\u06d5",afternoon:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u0649\u064a\u0649\u0646",evening:"\u0626\u0627\u062e\u0634\u0627\u0645\u062f\u0627",night:"\u0643\u0649\u0686\u0649\u062f\u06d5"},wide:{am:"\u0626\u06d5",pm:"\u0686",midnight:"\u0643",noon:"\u0686",morning:"\u0626\u06d5\u062a\u0649\u06af\u06d5\u0646\u062f\u06d5",afternoon:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u0649\u064a\u0649\u0646",evening:"\u0626\u0627\u062e\u0634\u0627\u0645\u062f\u0627",night:"\u0643\u0649\u0686\u0649\u062f\u06d5"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u0628|\u0643)/i,wide:/^(\u0645\u0649\u064a\u0644\u0627\u062f\u0649\u062f\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0645\u0649\u064a\u0644\u0627\u062f\u0649\u062f\u0649\u0646 \u0643\u0649\u064a\u0649\u0646)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0628\u06c7\u0631\u06c7\u0646/i,/^\u0643\u0649\u064a\u0649\u0646/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0686[1234]/i,wide:/^\u0686\u0627\u0631\u06d5\u0643 [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u064a\u0641\u0645\u0626\u0627\u0645\u0626\u200d\u0626\u0627\u0633\u06c6\u0646\u062f]/i,abbreviated:/^(\u064a\u0627\u0646\u06cb\u0627\u0631|\u0641\u06d0\u06cb\u0649\u0631\u0627\u0644|\u0645\u0627\u0631\u062a|\u0626\u0627\u067e\u0631\u0649\u0644|\u0645\u0627\u064a|\u0626\u0649\u064a\u06c7\u0646|\u0626\u0649\u064a\u0648\u0644|\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a|\u0633\u0649\u0646\u062a\u06d5\u0628\u0649\u0631|\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631|\u0646\u0648\u064a\u0627\u0628\u0649\u0631|\u062f\u0649\u0643\u0627\u0628\u0649\u0631)/i,wide:/^(\u064a\u0627\u0646\u06cb\u0627\u0631|\u0641\u06d0\u06cb\u0649\u0631\u0627\u0644|\u0645\u0627\u0631\u062a|\u0626\u0627\u067e\u0631\u0649\u0644|\u0645\u0627\u064a|\u0626\u0649\u064a\u06c7\u0646|\u0626\u0649\u064a\u0648\u0644|\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a|\u0633\u0649\u0646\u062a\u06d5\u0628\u0649\u0631|\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631|\u0646\u0648\u064a\u0627\u0628\u0649\u0631|\u062f\u0649\u0643\u0627\u0628\u0649\u0631)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u064a/i,/^\u0641/i,/^\u0645/i,/^\u0627/i,/^\u0645/i,/^\u0649\u200d/i,/^\u0649\u200d/i,/^\u0627\u200d/i,/^\u0633/i,/^\u06c6/i,/^\u0646/i,/^\u062f/i],any:[/^\u064a\u0627\u0646/i,/^\u0641\u06d0\u06cb/i,/^\u0645\u0627\u0631/i,/^\u0626\u0627\u067e/i,/^\u0645\u0627\u064a/i,/^\u0626\u0649\u064a\u06c7\u0646/i,/^\u0626\u0649\u064a\u0648\u0644/i,/^\u0626\u0627\u06cb/i,/^\u0633\u0649\u0646/i,/^\u0626\u06c6\u0643/i,/^\u0646\u0648\u064a/i,/^\u062f\u0649\u0643/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u062f\u0633\u0686\u067e\u062c\u0634\u064a]/i,short:/^(\u064a\u06d5|\u062f\u06c8|\u0633\u06d5|\u0686\u0627|\u067e\u06d5|\u062c\u06c8|\u0634\u06d5)/i,abbreviated:/^(\u064a\u06d5|\u062f\u06c8|\u0633\u06d5|\u0686\u0627|\u067e\u06d5|\u062c\u06c8|\u0634\u06d5)/i,wide:/^(\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5|\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5|\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5|\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5|\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5|\u062c\u06c8\u0645\u06d5|\u0634\u06d5\u0646\u0628\u06d5)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u064a/i,/^\u062f/i,/^\u0633/i,/^\u0686/i,/^\u067e/i,/^\u062c/i,/^\u0634/i],any:[/^\u064a/i,/^\u062f/i,/^\u0633/i,/^\u0686/i,/^\u067e/i,/^\u062c/i,/^\u0634/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(\u0626\u06d5|\u0686|\u0643|\u0686|(\u062f\u06d5|\u0626\u06d5\u062a\u0649\u06af\u06d5\u0646) ( \u0626\u06d5\u200d|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u0649\u064a\u0649\u0646|\u0626\u0627\u062e\u0634\u0649\u0645|\u0643\u0649\u0686\u06d5))/i,any:/^(\u0626\u06d5|\u0686|\u0643|\u0686|(\u062f\u06d5|\u0626\u06d5\u062a\u0649\u06af\u06d5\u0646) ( \u0626\u06d5\u200d|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u0649\u064a\u0649\u0646|\u0626\u0627\u062e\u0634\u0649\u0645|\u0643\u0649\u0686\u06d5))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u0626\u06d5/i,pm:/^\u0686/i,midnight:/^\u0643/i,noon:/^\u0686/i,morning:/\u0626\u06d5\u062a\u0649\u06af\u06d5\u0646/i,afternoon:/\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u0649\u064a\u0649\u0646/i,evening:/\u0626\u0627\u062e\u0634\u0649\u0645/i,night:/\u0643\u0649\u0686\u06d5/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Td(t,e){if(void 0!==t.one&&1===e)return t.one;var n=e%10,r=e%100;return 1===n&&11!==r?t.singularNominative.replace("{{count}}",String(e)):n>=2&&n<=4&&(r<10||r>20)?t.singularGenitive.replace("{{count}}",String(e)):t.pluralGenitive.replace("{{count}}",String(e))}function Md(t){return function(e,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?t.future?Td(t.future,e):"\u0437\u0430 "+Td(t.regular,e):t.past?Td(t.past,e):Td(t.regular,e)+" \u0442\u043e\u043c\u0443":Td(t.regular,e)}}var Ad={lessThanXSeconds:Md({regular:{one:"\u043c\u0435\u043d\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",singularNominative:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",singularGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:Md({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0442\u043e\u043c\u0443",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438 \u0442\u043e\u043c\u0443",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u0442\u043e\u043c\u0443"},future:{singularNominative:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:function(t,e){return e&&e.addSuffix?e.comparison&&e.comparison>0?"\u0437\u0430 \u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438":"\u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443":"\u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438"},lessThanXMinutes:Md({regular:{one:"\u043c\u0435\u043d\u0448\u0435 \u0445\u0432\u0438\u043b\u0438\u043d\u0438",singularNominative:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",singularGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"},future:{one:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularNominative:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"}}),xMinutes:Md({regular:{singularNominative:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0430",singularGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d"},past:{singularNominative:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443 \u0442\u043e\u043c\u0443",singularGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443",pluralGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d \u0442\u043e\u043c\u0443"},future:{singularNominative:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularGenitive:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"}}),aboutXHours:Md({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0438",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d\u0443",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d"}}),xHours:Md({regular:{singularNominative:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0443",singularGenitive:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0438",pluralGenitive:"{{count}} \u0433\u043e\u0434\u0438\u043d"}}),xDays:Md({regular:{singularNominative:"{{count}} \u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043di",pluralGenitive:"{{count}} \u0434\u043d\u0456\u0432"}}),aboutXWeeks:Md({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u044f",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u0434\u0435\u043d\u044c",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u043d\u0456",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u043d\u0456\u0432"}}),xWeeks:Md({regular:{singularNominative:"{{count}} \u0442\u0438\u0436\u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0442\u0438\u0436\u043d\u0456",pluralGenitive:"{{count}} \u0442\u0438\u0436\u043d\u0456\u0432"}}),aboutXMonths:Md({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u044f",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u044c",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u0456",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"}}),xMonths:Md({regular:{singularNominative:"{{count}} \u043c\u0456\u0441\u044f\u0446\u044c",singularGenitive:"{{count}} \u043c\u0456\u0441\u044f\u0446\u0456",pluralGenitive:"{{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"}}),aboutXYears:Md({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0443",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}}),xYears:Md({regular:{singularNominative:"{{count}} \u0440\u0456\u043a",singularGenitive:"{{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"{{count}} \u0440\u043e\u043a\u0456\u0432"}}),overXYears:Md({regular:{singularNominative:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0443",singularGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432",pluralGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}}),almostXYears:Md({regular:{singularNominative:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}})},Dd=function(t,e,n){return n=n||{},Ad[t](e,n)},Rd={date:U({formats:{full:"EEEE, do MMMM y '\u0440.'",long:"do MMMM y '\u0440.'",medium:"d MMM y '\u0440.'",short:"dd.MM.y"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} '\u043e' {{time}}",long:"{{date}} '\u043e' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ld=["\u043d\u0435\u0434\u0456\u043b\u044e","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e","\u0441\u0443\u0431\u043e\u0442\u0443"];function Id(t){return"'\u0443 "+Ld[t]+" \u043e' p"}var Wd={lastWeek:function(t,e,n){var r=a(t),i=r.getUTCDay();return be(r,e,n)?Id(i):function(t){var e=Ld[t];switch(t){case 0:case 3:case 5:case 6:return"'\u0443 \u043c\u0438\u043d\u0443\u043b\u0443 "+e+" \u043e' p";case 1:case 2:case 4:return"'\u0443 \u043c\u0438\u043d\u0443\u043b\u0438\u0439 "+e+" \u043e' p"}}(i)},yesterday:"'\u0432\u0447\u043e\u0440\u0430 \u043e' p",today:"'\u0441\u044c\u043e\u0433\u043e\u0434\u043d\u0456 \u043e' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u043e' p",nextWeek:function(t,e,n){var r=a(t),i=r.getUTCDay();return be(r,e,n)?Id(i):function(t){var e=Ld[t];switch(t){case 0:case 3:case 5:case 6:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 "+e+" \u043e' p";case 1:case 2:case 4:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 "+e+" \u043e' p"}}(i)},other:"P"},zd=function(t,e,n,r){var i=Wd[t];return"function"===typeof i?i(e,n,r):i},Nd={code:"uk",formatDistance:Dd,formatLong:Rd,formatRelative:zd,localize:{ordinalNumber:function(t,e){var n=String(null===e||void 0===e?void 0:e.unit),r=Number(t);return r+("date"===n?3===r||23===r?"-\u0454":"-\u0435":"minute"===n||"second"===n||"hour"===n?"-\u0430":"-\u0439")},era:K({values:{narrow:["\u0434\u043e \u043d.\u0435.","\u043d.\u0435."],abbreviated:["\u0434\u043e \u043d. \u0435.","\u043d. \u0435."],wide:["\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438","\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u0421","\u041b","\u0411","\u041a","\u0422","\u0427","\u041b","\u0421","\u0412","\u0416","\u041b","\u0413"],abbreviated:["\u0441\u0456\u0447.","\u043b\u044e\u0442.","\u0431\u0435\u0440\u0435\u0437.","\u043a\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043b\u0438\u043f.","\u0441\u0435\u0440\u043f.","\u0432\u0435\u0440\u0435\u0441.","\u0436\u043e\u0432\u0442.","\u043b\u0438\u0441\u0442\u043e\u043f.","\u0433\u0440\u0443\u0434."],wide:["\u0441\u0456\u0447\u0435\u043d\u044c","\u043b\u044e\u0442\u0438\u0439","\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u043a\u0432\u0456\u0442\u0435\u043d\u044c","\u0442\u0440\u0430\u0432\u0435\u043d\u044c","\u0447\u0435\u0440\u0432\u0435\u043d\u044c","\u043b\u0438\u043f\u0435\u043d\u044c","\u0441\u0435\u0440\u043f\u0435\u043d\u044c","\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0436\u043e\u0432\u0442\u0435\u043d\u044c","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0433\u0440\u0443\u0434\u0435\u043d\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u0421","\u041b","\u0411","\u041a","\u0422","\u0427","\u041b","\u0421","\u0412","\u0416","\u041b","\u0413"],abbreviated:["\u0441\u0456\u0447.","\u043b\u044e\u0442.","\u0431\u0435\u0440\u0435\u0437.","\u043a\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043b\u0438\u043f.","\u0441\u0435\u0440\u043f.","\u0432\u0435\u0440\u0435\u0441.","\u0436\u043e\u0432\u0442.","\u043b\u0438\u0441\u0442\u043e\u043f.","\u0433\u0440\u0443\u0434."],wide:["\u0441\u0456\u0447\u043d\u044f","\u043b\u044e\u0442\u043e\u0433\u043e","\u0431\u0435\u0440\u0435\u0437\u043d\u044f","\u043a\u0432\u0456\u0442\u043d\u044f","\u0442\u0440\u0430\u0432\u043d\u044f","\u0447\u0435\u0440\u0432\u043d\u044f","\u043b\u0438\u043f\u043d\u044f","\u0441\u0435\u0440\u043f\u043d\u044f","\u0432\u0435\u0440\u0435\u0441\u043d\u044f","\u0436\u043e\u0432\u0442\u043d\u044f","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430","\u0433\u0440\u0443\u0434\u043d\u044f"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0432\u0456\u0432","\u0441\u0435\u0440","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0443\u0431"],wide:["\u043d\u0435\u0434\u0456\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f","\u0441\u0443\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u0456\u0447"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u0456\u0447"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0456\u0440",night:"\u043d\u0456\u0447"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(-?(\u0435|\u0439|\u0454|\u0430|\u044f))?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^((\u0434\u043e )?\u043d\.?\s?\u0435\.?)/i,abbreviated:/^((\u0434\u043e )?\u043d\.?\s?\u0435\.?)/i,wide:/^(\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438|\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438|\u043d\u0430\u0448\u0430 \u0435\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u0438\u0456]?\u0439?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u0438\u0456]?\u0439?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u0441\u043b\u0431\u043a\u0442\u0447\u0432\u0436\u0433]/i,abbreviated:/^(\u0441\u0456\u0447|\u043b\u044e\u0442|\u0431\u0435\u0440(\u0435\u0437)?|\u043a\u0432\u0456\u0442|\u0442\u0440\u0430\u0432|\u0447\u0435\u0440\u0432|\u043b\u0438\u043f|\u0441\u0435\u0440\u043f|\u0432\u0435\u0440(\u0435\u0441)?|\u0436\u043e\u0432\u0442|\u043b\u0438\u0441(\u0442\u043e\u043f)?|\u0433\u0440\u0443\u0434)\.?/i,wide:/^(\u0441\u0456\u0447\u0435\u043d\u044c|\u0441\u0456\u0447\u043d\u044f|\u043b\u044e\u0442\u0438\u0439|\u043b\u044e\u0442\u043e\u0433\u043e|\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c|\u0431\u0435\u0440\u0435\u0437\u043d\u044f|\u043a\u0432\u0456\u0442\u0435\u043d\u044c|\u043a\u0432\u0456\u0442\u043d\u044f|\u0442\u0440\u0430\u0432\u0435\u043d\u044c|\u0442\u0440\u0430\u0432\u043d\u044f|\u0447\u0435\u0440\u0432\u043d\u044f|\u0447\u0435\u0440\u0432\u0435\u043d\u044c|\u043b\u0438\u043f\u0435\u043d\u044c|\u043b\u0438\u043f\u043d\u044f|\u0441\u0435\u0440\u043f\u0435\u043d\u044c|\u0441\u0435\u0440\u043f\u043d\u044f|\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c|\u0432\u0435\u0440\u0435\u0441\u043d\u044f|\u0436\u043e\u0432\u0442\u0435\u043d\u044c|\u0436\u043e\u0432\u0442\u043d\u044f|\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434[\u0430]?|\u0433\u0440\u0443\u0434\u0435\u043d\u044c|\u0433\u0440\u0443\u0434\u043d\u044f)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0441/i,/^\u043b/i,/^\u0431/i,/^\u043a/i,/^\u0442/i,/^\u0447/i,/^\u043b/i,/^\u0441/i,/^\u0432/i,/^\u0436/i,/^\u043b/i,/^\u0433/i],any:[/^\u0441\u0456/i,/^\u043b\u044e/i,/^\u0431/i,/^\u043a/i,/^\u0442/i,/^\u0447/i,/^\u043b\u0438\u043f/i,/^\u0441\u0435/i,/^\u0432/i,/^\u0436/i,/^\u043b\u0438\u0441/i,/^\u0433/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u043d\u043f\u0432\u0441\u0447]/i,short:/^(\u043d\u0434|\u043f\u043d|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u043f\u0442|\u0441\u0431)\.?/i,abbreviated:/^(\u043d\u0435\u0434|\u043f\u043e\u043d|\u0432\u0456\u0432|\u0441\u0435\u0440|\u0447\u0435?\u0442\u0432|\u043f\u0442\u043d?|\u0441\u0443\u0431)\.?/i,wide:/^(\u043d\u0435\u0434\u0456\u043b[\u044f\u0456]|\u043f\u043e\u043d\u0435\u0434\u0456\u043b[\u043e\u043a][\u043a\u0430]|\u0432\u0456\u0432\u0442\u043e\u0440[\u043e\u043a][\u043a\u0430]|\u0441\u0435\u0440\u0435\u0434[\u0430\u0438]|\u0447\u0435\u0442\u0432\u0435\u0440(\u0433\u0430)?|\u043f\W*?\u044f\u0442\u043d\u0438\u0446[\u044f\u0456]|\u0441\u0443\u0431\u043e\u0442[\u0430\u0438])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u043d/i,/^\u043f[\u043e\u043d]/i,/^\u0432/i,/^\u0441[\u0435\u0440]/i,/^\u0447/i,/^\u043f\W*?[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\.?|\u043f\u043e\u043b\.?|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\.?|\u043f\u043e\u043b\.?|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i,wide:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\u0456\u0447|\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0456\u0440|\u0432\u0435\u0447\u043e\u0440\u0430|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u0456\u0432\u043d/i,noon:/^\u043f\u043e\u043b/i,morning:/^\u0440/i,afternoon:/^\u0434[\u0435\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Fd={lessThanXSeconds:{one:"sekunddan kam",other:"{{count}} sekunddan kam"},xSeconds:{one:"1 sekund",other:"{{count}} sekund"},halfAMinute:"yarim minut",lessThanXMinutes:{one:"bir minutdan kam",other:"{{count}} minutdan kam"},xMinutes:{one:"1 minut",other:"{{count}} minut"},aboutXHours:{one:"tahminan 1 soat",other:"tahminan {{count}} soat"},xHours:{one:"1 soat",other:"{{count}} soat"},xDays:{one:"1 kun",other:"{{count}} kun"},aboutXWeeks:{one:"tahminan 1 hafta",other:"tahminan {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"tahminan 1 oy",other:"tahminan {{count}} oy"},xMonths:{one:"1 oy",other:"{{count}} oy"},aboutXYears:{one:"tahminan 1 yil",other:"tahminan {{count}} yil"},xYears:{one:"1 yil",other:"{{count}} yil"},overXYears:{one:"1 yildan ko'p",other:"{{count}} yildan ko'p"},almostXYears:{one:"deyarli 1 yil",other:"deyarli {{count}} yil"}},Hd=function(t,e,n){var r,i=Fd[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+" dan keyin":r+" oldin":r},Bd={date:U({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"h:mm:ss zzzz",long:"h:mm:ss z",medium:"h:mm:ss",short:"h:mm"},defaultWidth:"full"}),dateTime:U({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},Vd={lastWeek:"'oldingi' eeee p 'da'",yesterday:"'kecha' p 'da'",today:"'bugun' p 'da'",tomorrow:"'ertaga' p 'da'",nextWeek:"eeee p 'da'",other:"P"},qd={code:"uz",formatDistance:Hd,formatLong:Bd,formatRelative:function(t,e,n,r){return Vd[t]},localize:{ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["M.A","M."],abbreviated:["M.A","M."],wide:["Miloddan Avvalgi","Milodiy"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["CH.1","CH.2","CH.3","CH.4"],wide:["1-chi chorak","2-chi chorak","3-chi chorak","4-chi chorak"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["Y","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["Yan","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noy","Dek"],wide:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]},defaultWidth:"wide"}),day:K({values:{narrow:["Y","D","S","CH","P","J","SH"],short:["Ya","Du","Se","Cho","Pa","Ju","Sha"],abbreviated:["Yak","Dush","Sesh","Chor","Pay","Jum","Shan"],wide:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"y.t",noon:"p.",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},abbreviated:{am:"AM",pm:"PM",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},wide:{am:"a.m.",pm:"p.m.",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"y.t",noon:"p.",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},abbreviated:{am:"AM",pm:"PM",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},wide:{am:"a.m.",pm:"p.m.",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(chi)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(m\.a|m\.)/i,abbreviated:/^(m\.a\.?\s?m\.?)/i,wide:/^(miloddan avval|miloddan keyin)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](chi)? chorak/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[yfmasond]/i,abbreviated:/^(yan|fev|mar|apr|may|iyun|iyul|avg|sen|okt|noy|dek)/i,wide:/^(yanvar|fevral|mart|aprel|may|iyun|iyul|avgust|sentabr|oktabr|noyabr|dekabr)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^y/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ya/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^iyun/i,/^iyul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[ydschj]/i,short:/^(ya|du|se|cho|pa|ju|sha)/i,abbreviated:/^(yak|dush|sesh|chor|pay|jum|shan)/i,wide:/^(yakshanba|dushanba|seshanba|chorshanba|payshanba|juma|shanba)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^y/i,/^d/i,/^s/i,/^ch/i,/^p/i,/^j/i,/^sh/i],any:[/^ya/i,/^d/i,/^se/i,/^ch/i,/^p/i,/^j/i,/^sh/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|y\.t|p| (ertalab|tushdan keyin|kechqurun|tun))/i,any:/^([ap]\.?\s?m\.?|yarim tun|peshin| (ertalab|tushdan keyin|kechqurun|tun))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^y\.t/i,noon:/^pe/i,morning:/ertalab/i,afternoon:/tushdan keyin/i,evening:/kechqurun/i,night:/tun/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Yd={lessThanXSeconds:{one:"1 \u0441\u043e\u043d\u0438\u044f\u0434\u0430\u043d \u043a\u0430\u043c",other:"{{count}} \u0441\u043e\u043d\u0438\u044f\u0434\u0430\u043d \u043a\u0430\u043c"},xSeconds:{one:"1 \u0441\u043e\u043d\u0438\u044f",other:"{{count}} \u0441\u043e\u043d\u0438\u044f"},halfAMinute:"\u044f\u0440\u0438\u043c \u0434\u0430\u049b\u0438\u049b\u0430",lessThanXMinutes:{one:"1 \u0434\u0430\u049b\u0438\u049b\u0430\u0434\u0430\u043d \u043a\u0430\u043c",other:"{{count}} \u0434\u0430\u049b\u0438\u049b\u0430\u0434\u0430\u043d \u043a\u0430\u043c"},xMinutes:{one:"1 \u0434\u0430\u049b\u0438\u049b\u0430",other:"{{count}} \u0434\u0430\u049b\u0438\u049b\u0430"},aboutXHours:{one:"\u0442\u0430\u0445\u043c\u0438\u043d\u0430\u043d 1 \u0441\u043e\u0430\u0442",other:"\u0442\u0430\u0445\u043c\u0438\u043d\u0430\u043d {{count}} \u0441\u043e\u0430\u0442"},xHours:{one:"1 \u0441\u043e\u0430\u0442",other:"{{count}} \u0441\u043e\u0430\u0442"},xDays:{one:"1 \u043a\u0443\u043d",other:"{{count}} \u043a\u0443\u043d"},aboutXWeeks:{one:"\u0442\u0430\u0445\u043c\u0438\u043d\u0430\u043d 1 \u0445\u0430\u0444\u0442\u0430",other:"\u0442\u0430\u0445\u043c\u0438\u043d\u0430\u043d {{count}} \u0445\u0430\u0444\u0442\u0430"},xWeeks:{one:"1 \u0445\u0430\u0444\u0442\u0430",other:"{{count}} \u0445\u0430\u0444\u0442\u0430"},aboutXMonths:{one:"\u0442\u0430\u0445\u043c\u0438\u043d\u0430\u043d 1 \u043e\u0439",other:"\u0442\u0430\u0445\u043c\u0438\u043d\u0430\u043d {{count}} \u043e\u0439"},xMonths:{one:"1 \u043e\u0439",other:"{{count}} \u043e\u0439"},aboutXYears:{one:"\u0442\u0430\u0445\u043c\u0438\u043d\u0430\u043d 1 \u0439\u0438\u043b",other:"\u0442\u0430\u0445\u043c\u0438\u043d\u0430\u043d {{count}} \u0439\u0438\u043b"},xYears:{one:"1 \u0439\u0438\u043b",other:"{{count}} \u0439\u0438\u043b"},overXYears:{one:"1 \u0439\u0438\u043b\u0434\u0430\u043d \u043a\u045e\u043f",other:"{{count}} \u0439\u0438\u043b\u0434\u0430\u043d \u043a\u045e\u043f"},almostXYears:{one:"\u0434\u0435\u044f\u0440\u043b\u0438 1 \u0439\u0438\u043b",other:"\u0434\u0435\u044f\u0440\u043b\u0438 {{count}} \u0439\u0438\u043b"}},Ud=function(t,e,n){var r,i=Yd[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+"\u0434\u0430\u043d \u043a\u0435\u0439\u0438\u043d":r+" \u043e\u043b\u0434\u0438\u043d":r},Gd={date:U({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:U({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:U({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},Xd={lastWeek:"'\u045e\u0442\u0433\u0430\u043d' eeee p '\u0434\u0430'",yesterday:"'\u043a\u0435\u0447\u0430' p '\u0434\u0430'",today:"'\u0431\u0443\u0433\u0443\u043d' p '\u0434\u0430'",tomorrow:"'\u044d\u0440\u0442\u0430\u0433\u0430' p '\u0434\u0430'",nextWeek:"eeee p '\u0434\u0430'",other:"P"},Jd={code:"uz-Cyrl",formatDistance:Ud,formatLong:Gd,formatRelative:function(t,e,n,r){return Xd[t]},localize:{ordinalNumber:function(t,e){return String(t)},era:K({values:{narrow:["\u041c.\u0410","\u041c"],abbreviated:["\u041c.\u0410","\u041c"],wide:["\u041c\u0438\u043b\u043e\u0434\u0434\u0430\u043d \u0410\u0432\u0432\u0430\u043b\u0433\u0438","\u041c\u0438\u043b\u043e\u0434\u0438\u0439"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0447\u043e\u0440.","2-\u0447\u043e\u0440.","3-\u0447\u043e\u0440.","4-\u0447\u043e\u0440."],wide:["1-\u0447\u043e\u0440\u0430\u043a","2-\u0447\u043e\u0440\u0430\u043a","3-\u0447\u043e\u0440\u0430\u043a","4-\u0447\u043e\u0440\u0430\u043a"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432","\u0444\u0435\u0432","\u043c\u0430\u0440","\u0430\u043f\u0440","\u043c\u0430\u0439","\u0438\u044e\u043d","\u0438\u044e\u043b","\u0430\u0432\u0433","\u0441\u0435\u043d","\u043e\u043a\u0442","\u043d\u043e\u044f","\u0434\u0435\u043a"],wide:["\u044f\u043d\u0432\u0430\u0440","\u0444\u0435\u0432\u0440\u0430\u043b","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0435\u043b","\u043c\u0430\u0439","\u0438\u044e\u043d","\u0438\u044e\u043b","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043d\u0442\u0430\u0431\u0440","\u043e\u043a\u0442\u0430\u0431\u0440","\u043d\u043e\u044f\u0431\u0440","\u0434\u0435\u043a\u0430\u0431\u0440"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u042f","\u0414","\u0421","\u0427","\u041f","\u0416","\u0428"],short:["\u044f\u043a","\u0434\u0443","\u0441\u0435","\u0447\u043e","\u043f\u0430","\u0436\u0443","\u0448\u0430"],abbreviated:["\u044f\u043a\u0448","\u0434\u0443\u0448","\u0441\u0435\u0448","\u0447\u043e\u0440","\u043f\u0430\u0439","\u0436\u0443\u043c","\u0448\u0430\u043d"],wide:["\u044f\u043a\u0448\u0430\u043d\u0431\u0430","\u0434\u0443\u0448\u0430\u043d\u0431\u0430","\u0441\u0435\u0448\u0430\u043d\u0431\u0430","\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0430","\u043f\u0430\u0439\u0448\u0430\u043d\u0431\u0430","\u0436\u0443\u043c\u0430","\u0448\u0430\u043d\u0431\u0430"]},defaultWidth:"wide"}),dayPeriod:K({values:{any:{am:"\u041f.\u041e.",pm:"\u041f.\u041a.",midnight:"\u044f\u0440\u0438\u043c \u0442\u0443\u043d",noon:"\u043f\u0435\u0448\u0438\u043d",morning:"\u044d\u0440\u0442\u0430\u043b\u0430\u0431",afternoon:"\u043f\u0435\u0448\u0438\u043d\u0434\u0430\u043d \u043a\u0435\u0439\u0438\u043d",evening:"\u043a\u0435\u0447\u0430\u0441\u0438",night:"\u0442\u0443\u043d"}},defaultWidth:"any",formattingValues:{any:{am:"\u041f.\u041e.",pm:"\u041f.\u041a.",midnight:"\u044f\u0440\u0438\u043c \u0442\u0443\u043d",noon:"\u043f\u0435\u0448\u0438\u043d",morning:"\u044d\u0440\u0442\u0430\u043b\u0430\u0431",afternoon:"\u043f\u0435\u0448\u0438\u043d\u0434\u0430\u043d \u043a\u0435\u0439\u0438\u043d",evening:"\u043a\u0435\u0447\u0430\u0441\u0438",night:"\u0442\u0443\u043d"}},defaultFormattingWidth:"any"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(\u0447\u0438)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u043c\.\u0430|\u043c\.)/i,abbreviated:/^(\u043c\.\u0430|\u043c\.)/i,wide:/^(\u043c\u0438\u043b\u043e\u0434\u0434\u0430\u043d \u0430\u0432\u0432\u0430\u043b|\u043c\u0438\u043b\u043e\u0434\u0434\u0430\u043d \u043a\u0435\u0439\u0438\u043d)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u043c/i,/^\u0430/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-\u0447\u043e\u0440./i,wide:/^[1234]-\u0447\u043e\u0440\u0430\u043a/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^[\u044f\u0444\u043c\u0430\u043c\u0438\u0438\u0430\u0441\u043e\u043d\u0434]/i,abbreviated:/^(\u044f\u043d\u0432|\u0444\u0435\u0432|\u043c\u0430\u0440|\u0430\u043f\u0440|\u043c\u0430\u0439|\u0438\u044e\u043d|\u0438\u044e\u043b|\u0430\u0432\u0433|\u0441\u0435\u043d|\u043e\u043a\u0442|\u043d\u043e\u044f|\u0434\u0435\u043a)/i,wide:/^(\u044f\u043d\u0432\u0430\u0440|\u0444\u0435\u0432\u0440\u0430\u043b|\u043c\u0430\u0440\u0442|\u0430\u043f\u0440\u0435\u043b|\u043c\u0430\u0439|\u0438\u044e\u043d|\u0438\u044e\u043b|\u0430\u0432\u0433\u0443\u0441\u0442|\u0441\u0435\u043d\u0442\u0430\u0431\u0440|\u043e\u043a\u0442\u0430\u0431\u0440|\u043d\u043e\u044f\u0431\u0440|\u0434\u0435\u043a\u0430\u0431\u0440)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u044f/i,/^\u0444/i,/^\u043c/i,/^\u0430/i,/^\u043c/i,/^\u0438/i,/^\u0438/i,/^\u0430/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u0434/i],any:[/^\u044f/i,/^\u0444/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430\u0439/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u0434/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u044f\u0434\u0441\u0447\u043f\u0436\u0448]/i,short:/^(\u044f\u043a|\u0434\u0443|\u0441\u0435|\u0447\u043e|\u043f\u0430|\u0436\u0443|\u0448\u0430)/i,abbreviated:/^(\u044f\u043a\u0448|\u0434\u0443\u0448|\u0441\u0435\u0448|\u0447\u043e\u0440|\u043f\u0430\u0439|\u0436\u0443\u043c|\u0448\u0430\u043d)/i,wide:/^(\u044f\u043a\u0448\u0430\u043d\u0431\u0430|\u0434\u0443\u0448\u0430\u043d\u0431\u0430|\u0441\u0435\u0448\u0430\u043d\u0431\u0430|\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0430|\u043f\u0430\u0439\u0448\u0430\u043d\u0431\u0430|\u0436\u0443\u043c\u0430|\u0448\u0430\u043d\u0431\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u044f/i,/^\u0434/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0436/i,/^\u0448/i],any:[/^\u044f\u043a/i,/^\u0434\u0443/i,/^\u0441\u0435/i,/^\u0447\u043e\u0440/i,/^\u043f\u0430\u0439/i,/^\u0436\u0443/i,/^\u0448\u0430\u043d/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(\u043f\.\u043e\.|\u043f\.\u043a\.|\u044f\u0440\u0438\u043c \u0442\u0443\u043d|\u043f\u0435\u0448\u0438\u043d\u0434\u0430\u043d \u043a\u0435\u0439\u0438\u043d|(\u044d\u0440\u0442\u0430\u043b\u0430\u0431|\u043f\u0435\u0448\u0438\u043d\u0434\u0430\u043d \u043a\u0435\u0439\u0438\u043d|\u043a\u0435\u0447\u0430\u0441\u0438|\u0442\u0443\u043d))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u043f\.\u043e\./i,pm:/^\u043f\.\u043a\./i,midnight:/^\u044f\u0440\u0438\u043c \u0442\u0443\u043d/i,noon:/^\u043f\u0435\u0448\u0438\u043d\u0434\u0430\u043d \u043a\u0435\u0439\u0438\u043d/i,morning:/\u044d\u0440\u0442\u0430\u043b\u0430\u0431/i,afternoon:/\u043f\u0435\u0448\u0438\u043d\u0434\u0430\u043d \u043a\u0435\u0439\u0438\u043d/i,evening:/\u043a\u0435\u0447\u0430\u0441\u0438/i,night:/\u0442\u0443\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Kd={lessThanXSeconds:{one:"d\u01b0\u1edbi 1 gi\xe2y",other:"d\u01b0\u1edbi {{count}} gi\xe2y"},xSeconds:{one:"1 gi\xe2y",other:"{{count}} gi\xe2y"},halfAMinute:"n\u1eeda ph\xfat",lessThanXMinutes:{one:"d\u01b0\u1edbi 1 ph\xfat",other:"d\u01b0\u1edbi {{count}} ph\xfat"},xMinutes:{one:"1 ph\xfat",other:"{{count}} ph\xfat"},aboutXHours:{one:"kho\u1ea3ng 1 gi\u1edd",other:"kho\u1ea3ng {{count}} gi\u1edd"},xHours:{one:"1 gi\u1edd",other:"{{count}} gi\u1edd"},xDays:{one:"1 ng\xe0y",other:"{{count}} ng\xe0y"},aboutXWeeks:{one:"kho\u1ea3ng 1 tu\u1ea7n",other:"kho\u1ea3ng {{count}} tu\u1ea7n"},xWeeks:{one:"1 tu\u1ea7n",other:"{{count}} tu\u1ea7n"},aboutXMonths:{one:"kho\u1ea3ng 1 th\xe1ng",other:"kho\u1ea3ng {{count}} th\xe1ng"},xMonths:{one:"1 th\xe1ng",other:"{{count}} th\xe1ng"},aboutXYears:{one:"kho\u1ea3ng 1 n\u0103m",other:"kho\u1ea3ng {{count}} n\u0103m"},xYears:{one:"1 n\u0103m",other:"{{count}} n\u0103m"},overXYears:{one:"h\u01a1n 1 n\u0103m",other:"h\u01a1n {{count}} n\u0103m"},almostXYears:{one:"g\u1ea7n 1 n\u0103m",other:"g\u1ea7n {{count}} n\u0103m"}},$d=function(t,e,n){var r,i=Kd[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+" n\u1eefa":r+" tr\u01b0\u1edbc":r},Qd={date:U({formats:{full:"EEEE, 'ng\xe0y' d MMMM 'n\u0103m' y",long:"'ng\xe0y' d MMMM 'n\u0103m' y",medium:"d MMM 'n\u0103m' y",short:"dd/MM/y"},defaultWidth:"full"}),time:U({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Zd={lastWeek:"eeee 'tu\u1ea7n tr\u01b0\u1edbc v\xe0o l\xfac' p",yesterday:"'h\xf4m qua v\xe0o l\xfac' p",today:"'h\xf4m nay v\xe0o l\xfac' p",tomorrow:"'ng\xe0y mai v\xe0o l\xfac' p",nextWeek:"eeee 't\u1edbi v\xe0o l\xfac' p",other:"P"},th={code:"vi",formatDistance:$d,formatLong:Qd,formatRelative:function(t,e,n,r){return Zd[t]},localize:{ordinalNumber:function(t,e){var n=Number(t),r=null===e||void 0===e?void 0:e.unit;if("quarter"===r)switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if("day"===r)switch(n){case 1:return"th\u1ee9 2";case 2:return"th\u1ee9 3";case 3:return"th\u1ee9 4";case 4:return"th\u1ee9 5";case 5:return"th\u1ee9 6";case 6:return"th\u1ee9 7";case 7:return"ch\u1ee7 nh\u1eadt"}else{if("week"===r)return 1===n?"th\u1ee9 nh\u1ea5t":"th\u1ee9 "+n;if("dayOfYear"===r)return 1===n?"\u0111\u1ea7u ti\xean":"th\u1ee9 "+n}return String(n)},era:K({values:{narrow:["TCN","SCN"],abbreviated:["tr\u01b0\u1edbc CN","sau CN"],wide:["tr\u01b0\u1edbc C\xf4ng Nguy\xean","sau C\xf4ng Nguy\xean"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Qu\xfd 1","Qu\xfd 2","Qu\xfd 3","Qu\xfd 4"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["qu\xfd I","qu\xfd II","qu\xfd III","qu\xfd IV"]},defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Th\xe1ng M\u1ed9t","Th\xe1ng Hai","Th\xe1ng Ba","Th\xe1ng T\u01b0","Th\xe1ng N\u0103m","Th\xe1ng S\xe1u","Th\xe1ng B\u1ea3y","Th\xe1ng T\xe1m","Th\xe1ng Ch\xedn","Th\xe1ng M\u01b0\u1eddi","Th\xe1ng M\u01b0\u1eddi M\u1ed9t","Th\xe1ng M\u01b0\u1eddi Hai"]},defaultWidth:"wide",formattingValues:{narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["th\xe1ng 01","th\xe1ng 02","th\xe1ng 03","th\xe1ng 04","th\xe1ng 05","th\xe1ng 06","th\xe1ng 07","th\xe1ng 08","th\xe1ng 09","th\xe1ng 10","th\xe1ng 11","th\xe1ng 12"]},defaultFormattingWidth:"wide"}),day:K({values:{narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Th\u1ee9 2","Th\u1ee9 3","Th\u1ee9 4","Th\u1ee9 5","Th\u1ee9 6","Th\u1ee9 7"],wide:["Ch\u1ee7 Nh\u1eadt","Th\u1ee9 Hai","Th\u1ee9 Ba","Th\u1ee9 T\u01b0","Th\u1ee9 N\u0103m","Th\u1ee9 S\xe1u","Th\u1ee9 B\u1ea3y"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"am",pm:"pm",midnight:"n\u1eeda \u0111\xeam",noon:"tr",morning:"sg",afternoon:"ch",evening:"t\u1ed1i",night:"\u0111\xeam"},abbreviated:{am:"AM",pm:"PM",midnight:"n\u1eeda \u0111\xeam",noon:"tr\u01b0a",morning:"s\xe1ng",afternoon:"chi\u1ec1u",evening:"t\u1ed1i",night:"\u0111\xeam"},wide:{am:"SA",pm:"CH",midnight:"n\u1eeda \u0111\xeam",noon:"tr\u01b0a",morning:"s\xe1ng",afternoon:"chi\u1ec1u",evening:"t\u1ed1i",night:"\u0111\xeam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"n\u1eeda \u0111\xeam",noon:"tr",morning:"sg",afternoon:"ch",evening:"t\u1ed1i",night:"\u0111\xeam"},abbreviated:{am:"AM",pm:"PM",midnight:"n\u1eeda \u0111\xeam",noon:"tr\u01b0a",morning:"s\xe1ng",afternoon:"chi\u1ec1u",evening:"t\u1ed1i",night:"\u0111\xeam"},wide:{am:"SA",pm:"CH",midnight:"n\u1eeda \u0111\xeam",noon:"gi\u1eefa tr\u01b0a",morning:"v\xe0o bu\u1ed5i s\xe1ng",afternoon:"v\xe0o bu\u1ed5i chi\u1ec1u",evening:"v\xe0o bu\u1ed5i t\u1ed1i",night:"v\xe0o ban \u0111\xeam"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(tcn|scn)/i,abbreviated:/^(tr\u01b0\u1edbc CN|sau CN)/i,wide:/^(tr\u01b0\u1edbc C\xf4ng Nguy\xean|sau C\xf4ng Nguy\xean)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^t/i,/^s/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^qu\xfd ([1234]|i{1,3}v?)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^th\xe1ng ?(M\u1ed9t|Hai|Ba|T\u01b0|N\u0103m|S\xe1u|B\u1ea3y|T\xe1m|Ch\xedn|M\u01b0\u1eddi|M\u01b0\u1eddi ?M\u1ed9t|M\u01b0\u1eddi ?Hai|0?[1-9](?!\d)|10|11|12)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^th\xe1ng ?(M\u1ed9t|0?1(?!\d))/i,/^th\xe1ng ?(Hai|0?2)/i,/^th\xe1ng ?(Ba|0?3)/i,/^th\xe1ng ?(T\u01b0|0?4)/i,/^th\xe1ng ?(N\u0103m|0?5)/i,/^th\xe1ng ?(S\xe1u|0?6)/i,/^th\xe1ng ?(B\u1ea3y|0?7)/i,/^th\xe1ng ?(T\xe1m|0?8)/i,/^th\xe1ng ?(Ch\xedn|0?9)/i,/^th\xe1ng ?(M\u01b0\u1eddi|10)/i,/^th\xe1ng ?(M\u01b0\u1eddi ?M\u1ed9t|11)/i,/^th\xe1ng ?(M\u01b0\u1eddi ?Hai|12)/i]},defaultParseWidth:"wide"}),day:Q({matchPatterns:{narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Ch\u1ee7 ?Nh\u1eadt|Ch\xfaa ?Nh\u1eadt|th\u1ee9 ?Hai|th\u1ee9 ?Ba|th\u1ee9 ?T\u01b0|th\u1ee9 ?N\u0103m|th\u1ee9 ?S\xe1u|th\u1ee9 ?B\u1ea3y)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Ch\u1ee7|Ch\xfaa) ?Nh\u1eadt/i,/Hai/i,/Ba/i,/T\u01b0/i,/N\u0103m/i,/S\xe1u/i,/B\u1ea3y/i]},defaultParseWidth:"wide"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|n\u1eeda \u0111\xeam|tr\u01b0a|(gi\u1edd) (s\xe1ng|chi\u1ec1u|t\u1ed1i|\u0111\xeam))/i,abbreviated:/^(am|pm|n\u1eeda \u0111\xeam|tr\u01b0a|(gi\u1edd) (s\xe1ng|chi\u1ec1u|t\u1ed1i|\u0111\xeam))/i,wide:/^(ch[^i]*|sa|n\u1eeda \u0111\xeam|tr\u01b0a|(gi\u1edd) (s\xe1ng|chi\u1ec1u|t\u1ed1i|\u0111\xeam))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/n\u1eeda \u0111\xeam/i,noon:/tr\u01b0a/i,morning:/s\xe1ng/i,afternoon:/chi\u1ec1u/i,evening:/t\u1ed1i/i,night:/^\u0111\xeam/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},eh={lessThanXSeconds:{one:"\u4e0d\u5230 1 \u79d2",other:"\u4e0d\u5230 {{count}} \u79d2"},xSeconds:{one:"1 \u79d2",other:"{{count}} \u79d2"},halfAMinute:"\u534a\u5206\u949f",lessThanXMinutes:{one:"\u4e0d\u5230 1 \u5206\u949f",other:"\u4e0d\u5230 {{count}} \u5206\u949f"},xMinutes:{one:"1 \u5206\u949f",other:"{{count}} \u5206\u949f"},xHours:{one:"1 \u5c0f\u65f6",other:"{{count}} \u5c0f\u65f6"},aboutXHours:{one:"\u5927\u7ea6 1 \u5c0f\u65f6",other:"\u5927\u7ea6 {{count}} \u5c0f\u65f6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7ea6 1 \u4e2a\u661f\u671f",other:"\u5927\u7ea6 {{count}} \u4e2a\u661f\u671f"},xWeeks:{one:"1 \u4e2a\u661f\u671f",other:"{{count}} \u4e2a\u661f\u671f"},aboutXMonths:{one:"\u5927\u7ea6 1 \u4e2a\u6708",other:"\u5927\u7ea6 {{count}} \u4e2a\u6708"},xMonths:{one:"1 \u4e2a\u6708",other:"{{count}} \u4e2a\u6708"},aboutXYears:{one:"\u5927\u7ea6 1 \u5e74",other:"\u5927\u7ea6 {{count}} \u5e74"},xYears:{one:"1 \u5e74",other:"{{count}} \u5e74"},overXYears:{one:"\u8d85\u8fc7 1 \u5e74",other:"\u8d85\u8fc7 {{count}} \u5e74"},almostXYears:{one:"\u5c06\u8fd1 1 \u5e74",other:"\u5c06\u8fd1 {{count}} \u5e74"}},nh=function(t,e,n){var r,i=eh[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+"\u5185":r+"\u524d":r},rh={date:U({formats:{full:"y'\u5e74'M'\u6708'd'\u65e5' EEEE",long:"y'\u5e74'M'\u6708'd'\u65e5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:U({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function ih(t,e,n){var r="eeee p";return be(t,e,n)?r:t.getTime()>e.getTime()?"'\u4e0b\u4e2a'"+r:"'\u4e0a\u4e2a'"+r}var oh={lastWeek:ih,yesterday:"'\u6628\u5929' p",today:"'\u4eca\u5929' p",tomorrow:"'\u660e\u5929' p",nextWeek:ih,other:"PP p"},ah=function(t,e,n,r){var i=oh[t];return"function"===typeof i?i(e,n,r):i},sh={code:"zh-CN",formatDistance:nh,formatLong:rh,formatRelative:ah,localize:{ordinalNumber:function(t,e){var n=Number(t);switch(null===e||void 0===e?void 0:e.unit){case"date":return n.toString()+"\u65e5";case"hour":return n.toString()+"\u65f6";case"minute":return n.toString()+"\u5206";case"second":return n.toString()+"\u79d2";default:return"\u7b2c "+n.toString()}},era:K({values:{narrow:["\u524d","\u516c\u5143"],abbreviated:["\u524d","\u516c\u5143"],wide:["\u516c\u5143\u524d","\u516c\u5143"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u7b2c\u4e00\u5b63","\u7b2c\u4e8c\u5b63","\u7b2c\u4e09\u5b63","\u7b2c\u56db\u5b63"],wide:["\u7b2c\u4e00\u5b63\u5ea6","\u7b2c\u4e8c\u5b63\u5ea6","\u7b2c\u4e09\u5b63\u5ea6","\u7b2c\u56db\u5b63\u5ea6"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],short:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],abbreviated:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],wide:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\u7b2c\s*)?\d+(\u65e5|\u65f6|\u5206|\u79d2)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u524d)/i,abbreviated:/^(\u524d)/i,wide:/^(\u516c\u5143\u524d|\u516c\u5143)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u524d)/i,/^(\u516c\u5143)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b/i,wide:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b\u949f/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00)/i,/(2|\u4e8c)/i,/(3|\u4e09)/i,/(4|\u56db)/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])/i,abbreviated:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00]|\d|1[12])\u6708/i,wide:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])\u6708/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u4e00/i,/^\u4e8c/i,/^\u4e09/i,/^\u56db/i,/^\u4e94/i,/^\u516d/i,/^\u4e03/i,/^\u516b/i,/^\u4e5d/i,/^\u5341(?!(\u4e00|\u4e8c))/i,/^\u5341\u4e00/i,/^\u5341\u4e8c/i],any:[/^\u4e00|1/i,/^\u4e8c|2/i,/^\u4e09|3/i,/^\u56db|4/i,/^\u4e94|5/i,/^\u516d|6/i,/^\u4e03|7/i,/^\u516b|8/i,/^\u4e5d|9/i,/^\u5341(?!(\u4e00|\u4e8c))|10/i,/^\u5341\u4e00|11/i,/^\u5341\u4e8c|12/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,short:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,abbreviated:/^\u5468[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,wide:/^\u661f\u671f[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/\u65e5/i,/\u4e00/i,/\u4e8c/i,/\u4e09/i,/\u56db/i,/\u4e94/i,/\u516d/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(\u4e0a\u5348?|\u4e0b\u5348?|\u5348\u591c|[\u4e2d\u6b63]\u5348|\u65e9\u4e0a?|\u4e0b\u5348|\u665a\u4e0a?|\u51cc\u6668|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u4e0a\u5348?/i,pm:/^\u4e0b\u5348?/i,midnight:/^\u5348\u591c/i,noon:/^[\u4e2d\u6b63]\u5348/i,morning:/^\u65e9\u4e0a/i,afternoon:/^\u4e0b\u5348/i,evening:/^\u665a\u4e0a?/i,night:/^\u51cc\u6668/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},lh={lessThanXSeconds:{one:"\u5c11\u65bc 1 \u79d2",other:"\u5c11\u65bc {{count}} \u79d2"},xSeconds:{one:"1 \u79d2",other:"{{count}} \u79d2"},halfAMinute:"\u534a\u5206\u9418",lessThanXMinutes:{one:"\u5c11\u65bc 1 \u5206\u9418",other:"\u5c11\u65bc {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5c0f\u6642",other:"{{count}} \u5c0f\u6642"},aboutXHours:{one:"\u5927\u7d04 1 \u5c0f\u6642",other:"\u5927\u7d04 {{count}} \u5c0f\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7d04 1 \u500b\u661f\u671f",other:"\u5927\u7d04 {{count}} \u500b\u661f\u671f"},xWeeks:{one:"1 \u500b\u661f\u671f",other:"{{count}} \u500b\u661f\u671f"},aboutXMonths:{one:"\u5927\u7d04 1 \u500b\u6708",other:"\u5927\u7d04 {{count}} \u500b\u6708"},xMonths:{one:"1 \u500b\u6708",other:"{{count}} \u500b\u6708"},aboutXYears:{one:"\u5927\u7d04 1 \u5e74",other:"\u5927\u7d04 {{count}} \u5e74"},xYears:{one:"1 \u5e74",other:"{{count}} \u5e74"},overXYears:{one:"\u8d85\u904e 1 \u5e74",other:"\u8d85\u904e {{count}} \u5e74"},almostXYears:{one:"\u5c07\u8fd1 1 \u5e74",other:"\u5c07\u8fd1 {{count}} \u5e74"}},uh=function(t,e,n){var r,i=lh[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+"\u5167":r+"\u524d":r},ch={date:U({formats:{full:"y'\u5e74'M'\u6708'd'\u65e5' EEEE",long:"y'\u5e74'M'\u6708'd'\u65e5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:U({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},dh={lastWeek:"'\u4e0a\u500b'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4eca\u5929' p",tomorrow:"'\u660e\u5929' p",nextWeek:"'\u4e0b\u500b'eeee p",other:"P"},hh={code:"zh-HK",formatDistance:uh,formatLong:ch,formatRelative:function(t,e,n,r){return dh[t]},localize:{ordinalNumber:function(t,e){var n=Number(t);switch(null===e||void 0===e?void 0:e.unit){case"date":return n+"\u65e5";case"hour":return n+"\u6642";case"minute":return n+"\u5206";case"second":return n+"\u79d2";default:return"\u7b2c "+n}},era:K({values:{narrow:["\u524d","\u516c\u5143"],abbreviated:["\u524d","\u516c\u5143"],wide:["\u516c\u5143\u524d","\u516c\u5143"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u7b2c\u4e00\u5b63","\u7b2c\u4e8c\u5b63","\u7b2c\u4e09\u5b63","\u7b2c\u56db\u5b63"],wide:["\u7b2c\u4e00\u5b63\u5ea6","\u7b2c\u4e8c\u5b63\u5ea6","\u7b2c\u4e09\u5b63\u5ea6","\u7b2c\u56db\u5b63\u5ea6"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],short:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],abbreviated:["\u9031\u65e5","\u9031\u4e00","\u9031\u4e8c","\u9031\u4e09","\u9031\u56db","\u9031\u4e94","\u9031\u516d"],wide:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u5348\u591c",noon:"\u664c",morning:"\u65e9",afternoon:"\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u5348\u591c",noon:"\u4e2d\u5348",morning:"\u4e0a\u5348",afternoon:"\u4e0b\u5348",evening:"\u665a\u4e0a",night:"\u591c\u665a"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u5348\u591c",noon:"\u4e2d\u5348",morning:"\u4e0a\u5348",afternoon:"\u4e0b\u5348",evening:"\u665a\u4e0a",night:"\u591c\u665a"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u5348\u591c",noon:"\u664c",morning:"\u65e9",afternoon:"\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u5348\u591c",noon:"\u4e2d\u5348",morning:"\u4e0a\u5348",afternoon:"\u4e0b\u5348",evening:"\u665a\u4e0a",night:"\u591c\u665a"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u5348\u591c",noon:"\u4e2d\u5348",morning:"\u4e0a\u5348",afternoon:"\u4e0b\u5348",evening:"\u665a\u4e0a",night:"\u591c\u665a"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\u7b2c\s*)?\d+(\u65e5|\u6642|\u5206|\u79d2)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u524d)/i,abbreviated:/^(\u524d)/i,wide:/^(\u516c\u5143\u524d|\u516c\u5143)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u524d)/i,/^(\u516c\u5143)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u5b63/i,wide:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u5b63\u5ea6/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00)/i,/(2|\u4e8c)/i,/(3|\u4e09)/i,/(4|\u56db)/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])/i,abbreviated:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00]|\d|1[12])\u6708/i,wide:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])\u6708/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u4e00/i,/^\u4e8c/i,/^\u4e09/i,/^\u56db/i,/^\u4e94/i,/^\u516d/i,/^\u4e03/i,/^\u516b/i,/^\u4e5d/i,/^\u5341(?!(\u4e00|\u4e8c))/i,/^\u5341\u4e00/i,/^\u5341\u4e8c/i],any:[/^\u4e00|1/i,/^\u4e8c|2/i,/^\u4e09|3/i,/^\u56db|4/i,/^\u4e94|5/i,/^\u516d|6/i,/^\u4e03|7/i,/^\u516b|8/i,/^\u4e5d|9/i,/^\u5341(?!(\u4e00|\u4e8c))|10/i,/^\u5341\u4e00|11/i,/^\u5341\u4e8c|12/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,short:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,abbreviated:/^\u9031[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,wide:/^\u661f\u671f[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/\u65e5/i,/\u4e00/i,/\u4e8c/i,/\u4e09/i,/\u56db/i,/\u4e94/i,/\u516d/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(\u4e0a\u5348?|\u4e0b\u5348?|\u5348\u591c|[\u4e2d\u6b63]\u5348|\u65e9\u4e0a?|\u4e0b\u5348|\u665a\u4e0a?|\u51cc\u6668)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u4e0a\u5348?/i,pm:/^\u4e0b\u5348?/i,midnight:/^\u5348\u591c/i,noon:/^[\u4e2d\u6b63]\u5348/i,morning:/^\u65e9\u4e0a/i,afternoon:/^\u4e0b\u5348/i,evening:/^\u665a\u4e0a?/i,night:/^\u51cc\u6668/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},fh={lessThanXSeconds:{one:"\u5c11\u65bc 1 \u79d2",other:"\u5c11\u65bc {{count}} \u79d2"},xSeconds:{one:"1 \u79d2",other:"{{count}} \u79d2"},halfAMinute:"\u534a\u5206\u9418",lessThanXMinutes:{one:"\u5c11\u65bc 1 \u5206\u9418",other:"\u5c11\u65bc {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5c0f\u6642",other:"{{count}} \u5c0f\u6642"},aboutXHours:{one:"\u5927\u7d04 1 \u5c0f\u6642",other:"\u5927\u7d04 {{count}} \u5c0f\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7d04 1 \u500b\u661f\u671f",other:"\u5927\u7d04 {{count}} \u500b\u661f\u671f"},xWeeks:{one:"1 \u500b\u661f\u671f",other:"{{count}} \u500b\u661f\u671f"},aboutXMonths:{one:"\u5927\u7d04 1 \u500b\u6708",other:"\u5927\u7d04 {{count}} \u500b\u6708"},xMonths:{one:"1 \u500b\u6708",other:"{{count}} \u500b\u6708"},aboutXYears:{one:"\u5927\u7d04 1 \u5e74",other:"\u5927\u7d04 {{count}} \u5e74"},xYears:{one:"1 \u5e74",other:"{{count}} \u5e74"},overXYears:{one:"\u8d85\u904e 1 \u5e74",other:"\u8d85\u904e {{count}} \u5e74"},almostXYears:{one:"\u5c07\u8fd1 1 \u5e74",other:"\u5c07\u8fd1 {{count}} \u5e74"}},ph=function(t,e,n){var r,i=fh[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",String(e)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r+"\u5167":r+"\u524d":r},mh={date:U({formats:{full:"y'\u5e74'M'\u6708'd'\u65e5' EEEE",long:"y'\u5e74'M'\u6708'd'\u65e5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:U({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:U({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},gh={lastWeek:"'\u4e0a\u500b'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4eca\u5929' p",tomorrow:"'\u660e\u5929' p",nextWeek:"'\u4e0b\u500b'eeee p",other:"P"},bh={code:"zh-TW",formatDistance:ph,formatLong:mh,formatRelative:function(t,e,n,r){return gh[t]},localize:{ordinalNumber:function(t,e){var n=Number(t);switch(null===e||void 0===e?void 0:e.unit){case"date":return n+"\u65e5";case"hour":return n+"\u6642";case"minute":return n+"\u5206";case"second":return n+"\u79d2";default:return"\u7b2c "+n}},era:K({values:{narrow:["\u524d","\u516c\u5143"],abbreviated:["\u524d","\u516c\u5143"],wide:["\u516c\u5143\u524d","\u516c\u5143"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["\u7b2c\u4e00\u523b","\u7b2c\u4e8c\u523b","\u7b2c\u4e09\u523b","\u7b2c\u56db\u523b"],wide:["\u7b2c\u4e00\u523b\u9418","\u7b2c\u4e8c\u523b\u9418","\u7b2c\u4e09\u523b\u9418","\u7b2c\u56db\u523b\u9418"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:K({values:{narrow:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},defaultWidth:"wide"}),day:K({values:{narrow:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],short:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],abbreviated:["\u9031\u65e5","\u9031\u4e00","\u9031\u4e8c","\u9031\u4e09","\u9031\u56db","\u9031\u4e94","\u9031\u516d"],wide:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\u7b2c\s*)?\d+(\u65e5|\u6642|\u5206|\u79d2)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Q({matchPatterns:{narrow:/^(\u524d)/i,abbreviated:/^(\u524d)/i,wide:/^(\u516c\u5143\u524d|\u516c\u5143)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u524d)/i,/^(\u516c\u5143)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b/i,wide:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b\u9418/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00)/i,/(2|\u4e8c)/i,/(3|\u4e09)/i,/(4|\u56db)/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Q({matchPatterns:{narrow:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])/i,abbreviated:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00]|\d|1[12])\u6708/i,wide:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])\u6708/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u4e00/i,/^\u4e8c/i,/^\u4e09/i,/^\u56db/i,/^\u4e94/i,/^\u516d/i,/^\u4e03/i,/^\u516b/i,/^\u4e5d/i,/^\u5341(?!(\u4e00|\u4e8c))/i,/^\u5341\u4e00/i,/^\u5341\u4e8c/i],any:[/^\u4e00|1/i,/^\u4e8c|2/i,/^\u4e09|3/i,/^\u56db|4/i,/^\u4e94|5/i,/^\u516d|6/i,/^\u4e03|7/i,/^\u516b|8/i,/^\u4e5d|9/i,/^\u5341(?!(\u4e00|\u4e8c))|10/i,/^\u5341\u4e00|11/i,/^\u5341\u4e8c|12/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,short:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,abbreviated:/^\u9031[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,wide:/^\u661f\u671f[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/\u65e5/i,/\u4e00/i,/\u4e8c/i,/\u4e09/i,/\u56db/i,/\u4e94/i,/\u516d/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{any:/^(\u4e0a\u5348?|\u4e0b\u5348?|\u5348\u591c|[\u4e2d\u6b63]\u5348|\u65e9\u4e0a?|\u4e0b\u5348|\u665a\u4e0a?|\u51cc\u6668)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u4e0a\u5348?/i,pm:/^\u4e0b\u5348?/i,midnight:/^\u5348\u591c/i,noon:/^[\u4e2d\u6b63]\u5348/i,morning:/^\u65e9\u4e0a/i,afternoon:/^\u4e0b\u5348/i,evening:/^\u665a\u4e0a?/i,night:/^\u51cc\u6668/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function vh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return yh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yh(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wh(){wh=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,i){var o=new RegExp(t,r);return e.set(o,i||e.get(t)),kh(o,n.prototype)}function r(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var i=r[n];if("number"==typeof i)e[n]=t[i];else{for(var o=0;void 0===t[i[o]]&&o+1<i.length;)o++;e[n]=t[i[o]]}return e}),Object.create(null))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kh(t,e)}(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=e.get(this);return t[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(t,e){var n=o[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(r(t,a)),i.apply(this,t)}))}return t[Symbol.replace].call(this,n,i)},wh.apply(this,arguments)}function kh(t,e){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kh(t,e)}var _h={enabled:!1,position:"nearest",intersect:!0,external:function(t){var e,n,r,i,o,a,s=t.chart,l=t.tooltip,u=s.canvas.parentNode.querySelector(".chart-tooltip");u&&u.remove(),e=Eh(s,l),n=s.canvas,r=n.offsetLeft,i=n.offsetTop,o='<div class="chart-tooltip" style="opacity: 1;\n                                                        left: '.concat(r+l.caretX+"px",";\n                                                        top: ").concat(i+l.caretY+"px",';">\n                        <div id="content">\n                          <div class="head">').concat(e,'</div>\n                            <div class="body">\n                              <p class="description">\n                                 ').concat(l.body.map((function(t){return t.lines})).map((function(t,e){var n=(t[0].match(wh(/^(.+): (.+)$/,{description:1,figure:2}))||t[0].match(wh(/(.+)/,{figure:1}))).groups,r=n.description,i=n.figure;return'<span class="figure">'.concat(i,"</span>").concat(r||"")})).join(""),"\n                              </p>\n                            </div>\n                          </div\n                        </div>\n                      </div>"),a=document.createRange().createContextualFragment(o),s.canvas.parentNode.appendChild(a),u=s.canvas.parentNode.querySelector(".chart-tooltip"),0===l.opacity&&u.remove()}},Oh={enabled:!1,position:"nearest",intersect:!0,external:function(t){var e=t.chart,n=t.tooltip,r=e.canvas.parentNode.querySelector(".chart-tooltip");r&&r.remove(),function(){var t=Object.fromEntries(Object.entries(e.data.datasets[0].count).map((function(t){var e=vh(t,2),n=e[0],r=e[1];return[new Date(n).toISOString(),r]}))),r=Eh(e,n),i="";t&&(i='<i class="fas fa-users"></i> '+t[new Date(n.title[0]).toISOString()]);var o=e.canvas,a=o.offsetLeft,s=o.offsetTop,l='<div class="chart-tooltip" style="opacity: 1;\n                                                        left: '.concat(a+n.caretX+"px",";\n                                                        top: ").concat(s+n.caretY+"px",';">\n                        <div id="content">\n                          <div class="head">').concat(r,'</div>\n                            <div class="body">\n                              <p class="description">\n                                 ').concat(n.body.map((function(t){return t.lines})).map((function(t,e){var n=t[0].match(wh(/(.+)/,{figure:1})).groups.figure;return'<span class="figure">'.concat(n,"</span>").concat(i)})).join(""),"\n                              </p>\n                            </div>\n                          </div\n                        </div>\n                      </div>"),u=document.createRange().createContextualFragment(l);e.canvas.parentNode.appendChild(u)}(),r=e.canvas.parentNode.querySelector(".chart-tooltip"),0===n.opacity&&r.remove()}},xh={enabled:!1,position:"nearest",intersect:!0,external:function(t){var e,n,r,i,o,a,s=t.chart,l=t.tooltip,u=s.canvas.parentNode.querySelector(".chart-tooltip");u&&u.remove(),e=Eh(s,l),n=s.canvas,r=n.offsetLeft,i=n.offsetTop,o='<div class="chart-tooltip" style="opacity: 1;\n                                                        left: '.concat(r+l.caretX+"px",";\n                                                        top: ").concat(i+l.caretY+"px",';">\n                        <div id="content">\n                          <div class="head">').concat(e,'</div>\n                            <div class="body">\n                              <p class="description">\n                                 ').concat(l.body.map((function(t){return t.lines})).map((function(t,e){var n=(t[0].match(wh(/^(.+): (.+)$/,{description:1,figure:2}))||t[0].match(wh(/(.+)/,{figure:1}))).groups,r=n.description,i=n.figure;return'<span class="figure">'.concat(i,"</span>").concat(r)})).join(""),"\n                              </p>\n                            </div>\n                          </div\n                        </div>\n                      </div>"),a=document.createRange().createContextualFragment(o),s.canvas.parentNode.appendChild(a),u=s.canvas.parentNode.querySelector(".chart-tooltip"),0===l.opacity&&u.remove()}},Eh=function(t,e){if("trackHorizontalBars"!=t.canvas.parentElement.dataset["desktop-Hr-ChartCodeNameValue"]){var n=document.querySelector("html").lang,i=r[n];return lt(Date.parse(e.title[0]),"MMM yy",{locale:i})}return e.title},jh=n(15);function Sh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ph(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"===typeof t)return Sh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sh(t,e):void 0}}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ch(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Th(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mh(t,e){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mh(t,e)}function Ah(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mh(t,e)}function Dh(t){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dh(t)}function Rh(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Dh(t);if(e){var o=Dh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===i(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Th(t)}(this,n)}}function Lh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ih(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}function Wh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ih(r.key),r)}}function zh(t,e,n){return e&&Wh(t.prototype,e),n&&Wh(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nh(t,e,n){return(e=Ih(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fh=function(){function t(){Lh(this,t),Nh(this,"priority",void 0),Nh(this,"subPriority",0)}return zh(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),Hh=function(t){Ah(n,t);var e=Rh(n);function n(t,r,i,o,a){var s;return Lh(this,n),(s=e.call(this)).value=t,s.validateValue=r,s.setValue=i,s.priority=o,a&&(s.subPriority=a),s}return zh(n,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,n){return this.setValue(t,e,this.value,n)}}]),n}(Fh),Bh=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",10),Nh(Th(t),"subPriority",-1),t}return zh(n,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}}]),n}(Fh),Vh=function(){function t(){Lh(this,t),Nh(this,"incompatibleTokens",void 0),Nh(this,"priority",void 0),Nh(this,"subPriority",void 0)}return zh(t,[{key:"run",value:function(t,e,n,r){var i=this.parse(t,e,n,r);return i?{setter:new Hh(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(t,e,n){return!0}}]),t}(),qh=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",140),Nh(Th(t),"incompatibleTokens",["R","u","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,n){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(Vh),Yh=(Math.pow(10,8),6e4),Uh=36e5,Gh=/^(1[0-2]|0?\d)/,Xh=/^(3[0-1]|[0-2]?\d)/,Jh=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Kh=/^(5[0-3]|[0-4]?\d)/,$h=/^(2[0-3]|[0-1]?\d)/,Qh=/^(2[0-4]|[0-1]?\d)/,Zh=/^(1[0-1]|0?\d)/,tf=/^(1[0-2]|0?\d)/,ef=/^[0-5]?\d/,nf=/^[0-5]?\d/,rf=/^\d/,of=/^\d{1,2}/,af=/^\d{1,3}/,sf=/^\d{1,4}/,lf=/^-?\d+/,uf=/^-?\d/,cf=/^-?\d{1,2}/,df=/^-?\d{1,3}/,hf=/^-?\d{1,4}/,ff=/^([+-])(\d{2})(\d{2})?|Z/,pf=/^([+-])(\d{2})(\d{2})|Z/,mf=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,gf=/^([+-])(\d{2}):(\d{2})|Z/,bf=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function vf(t,e){return t?{value:e(t.value),rest:t.rest}:t}function yf(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function wf(t,e){var n=e.match(t);if(!n)return null;if("Z"===n[0])return{value:0,rest:e.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*Uh+o*Yh+1e3*a),rest:e.slice(n[0].length)}}function kf(t){return yf(lf,t)}function _f(t,e){switch(t){case 1:return yf(rf,e);case 2:return yf(of,e);case 3:return yf(af,e);case 4:return yf(sf,e);default:return yf(new RegExp("^\\d{1,"+t+"}"),e)}}function Of(t,e){switch(t){case 1:return yf(uf,e);case 2:return yf(cf,e);case 3:return yf(df,e);case 4:return yf(hf,e);default:return yf(new RegExp("^-?\\d{1,"+t+"}"),e)}}function xf(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Ef(t,e){var n,r=e>0,i=r?e:1-e;if(i<=50)n=t||100;else{var o=i+50;n=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return r?n:1-n}function jf(t){return t%400===0||t%4===0&&t%100!==0}var Sf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",130),Nh(Th(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return vf(_f(4,t),r);case"yo":return vf(n.ordinalNumber(t,{unit:"year"}),r);default:return vf(_f(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n){var r=t.getUTCFullYear();if(n.isTwoDigitYear){var i=Ef(n.year,r);return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}var o="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(Vh),Pf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",130),Nh(Th(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return vf(_f(4,t),r);case"Yo":return vf(n.ordinalNumber(t,{unit:"year"}),r);default:return vf(_f(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n,r){var i=v(t,r);if(n.isTwoDigitYear){var o=Ef(n.year,i);return t.setUTCFullYear(o,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),b(t,r)}var a="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(a,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),b(t,r)}}]),n}(Vh),Cf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",130),Nh(Th(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e){return Of("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),d(r)}}]),n}(Vh),Tf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",130),Nh(Th(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e){return Of("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(Vh),Mf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",120),Nh(Th(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"Q":case"QQ":return _f(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n}(Vh),Af=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",120),Nh(Th(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"q":case"qq":return _f(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n}(Vh),Df=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Nh(Th(t),"priority",110),t}return zh(n,[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"M":return vf(yf(Gh,t),r);case"MM":return vf(_f(2,t),r);case"Mo":return vf(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n}(Vh),Rf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",110),Nh(Th(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"L":return vf(yf(Gh,t),r);case"LL":return vf(_f(2,t),r);case"Lo":return vf(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n}(Vh);var Lf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",100),Nh(Th(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"w":return yf(Kh,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return _f(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n,r){return b(function(t,e,n){o(2,arguments);var r=a(t),i=l(e),s=w(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*s),r}(t,n,r),r)}}]),n}(Vh);var If=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",100),Nh(Th(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"I":return yf(Kh,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return _f(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n){return d(function(t,e){o(2,arguments);var n=a(t),r=l(e),i=p(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(t,n))}}]),n}(Vh),Wf=[31,28,31,30,31,30,31,31,30,31,30,31],zf=[31,29,31,30,31,30,31,31,30,31,30,31],Nf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",90),Nh(Th(t),"subPriority",1),Nh(Th(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"d":return yf(Xh,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return _f(e.length,t)}}},{key:"validate",value:function(t,e){var n=jf(t.getUTCFullYear()),r=t.getUTCMonth();return n?e>=1&&e<=zf[r]:e>=1&&e<=Wf[r]}},{key:"set",value:function(t,e,n){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}}]),n}(Vh),Ff=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",90),Nh(Th(t),"subpriority",1),Nh(Th(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"D":case"DD":return yf(Jh,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return _f(e.length,t)}}},{key:"validate",value:function(t,e){return jf(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,n){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}}]),n}(Vh);function Hf(t,e,n){var r,i,s,u,c,d,h,f;o(2,arguments);var p=g(),m=l(null!==(r=null!==(i=null!==(s=null!==(u=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==u?u:null===n||void 0===n||null===(c=n.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:p.weekStartsOn)&&void 0!==i?i:null===(h=p.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var b=a(t),v=l(e),y=((v%7+7)%7<m?7:0)+v-b.getUTCDay();return b.setUTCDate(b.getUTCDate()+y),b}var Bf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",90),Nh(Th(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Hf(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(Vh),Vf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",90),Nh(Th(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return vf(_f(e.length,t),i);case"eo":return vf(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Hf(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(Vh),qf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",90),Nh(Th(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return vf(_f(e.length,t),i);case"co":return vf(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Hf(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(Vh);var Yf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",90),Nh(Th(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return _f(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return vf(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return vf(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return vf(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);default:return vf(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,n){return t=function(t,e){o(2,arguments);var n=l(e);n%7===0&&(n-=7);var r=a(t),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(t,n),t.setUTCHours(0,0,0,0),t}}]),n}(Vh),Uf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",80),Nh(Th(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(xf(n),0,0,0),t}}]),n}(Vh),Gf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",80),Nh(Th(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(xf(n),0,0,0),t}}]),n}(Vh),Xf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",80),Nh(Th(t),"incompatibleTokens",["a","b","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(xf(n),0,0,0),t}}]),n}(Vh),Jf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",70),Nh(Th(t),"incompatibleTokens",["H","K","k","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"h":return yf(tf,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return _f(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,n){var r=t.getUTCHours()>=12;return r&&n<12?t.setUTCHours(n+12,0,0,0):r||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t}}]),n}(Vh),Kf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",70),Nh(Th(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"H":return yf($h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return _f(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,n){return t.setUTCHours(n,0,0,0),t}}]),n}(Vh),$f=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",70),Nh(Th(t),"incompatibleTokens",["h","H","k","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"K":return yf(Zh,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return _f(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t}}]),n}(Vh),Qf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",70),Nh(Th(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"k":return yf(Qh,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return _f(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,n){var r=n<=24?n%24:n;return t.setUTCHours(r,0,0,0),t}}]),n}(Vh),Zf=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",60),Nh(Th(t),"incompatibleTokens",["t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"m":return yf(ef,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return _f(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCMinutes(n,0,0),t}}]),n}(Vh),tp=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",50),Nh(Th(t),"incompatibleTokens",["t","T"]),t}return zh(n,[{key:"parse",value:function(t,e,n){switch(e){case"s":return yf(nf,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return _f(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCSeconds(n,0),t}}]),n}(Vh),ep=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",30),Nh(Th(t),"incompatibleTokens",["t","T"]),t}return zh(n,[{key:"parse",value:function(t,e){return vf(_f(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,n){return t.setUTCMilliseconds(n),t}}]),n}(Vh),np=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",10),Nh(Th(t),"incompatibleTokens",["t","T","x"]),t}return zh(n,[{key:"parse",value:function(t,e){switch(e){case"X":return wf(ff,t);case"XX":return wf(pf,t);case"XXXX":return wf(mf,t);case"XXXXX":return wf(bf,t);default:return wf(gf,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),n}(Vh),rp=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",10),Nh(Th(t),"incompatibleTokens",["t","T","X"]),t}return zh(n,[{key:"parse",value:function(t,e){switch(e){case"x":return wf(ff,t);case"xx":return wf(pf,t);case"xxxx":return wf(mf,t);case"xxxxx":return wf(bf,t);default:return wf(gf,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),n}(Vh),ip=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",40),Nh(Th(t),"incompatibleTokens","*"),t}return zh(n,[{key:"parse",value:function(t){return kf(t)}},{key:"set",value:function(t,e,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(Vh),op=function(t){Ah(n,t);var e=Rh(n);function n(){var t;Lh(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Nh(Th(t=e.call.apply(e,[this].concat(i))),"priority",20),Nh(Th(t),"incompatibleTokens","*"),t}return zh(n,[{key:"parse",value:function(t){return kf(t)}},{key:"set",value:function(t,e,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(Vh),ap={G:new qh,y:new Sf,Y:new Pf,R:new Cf,u:new Tf,Q:new Mf,q:new Af,M:new Df,L:new Rf,w:new Lf,I:new If,d:new Nf,D:new Ff,E:new Bf,e:new Vf,c:new qf,i:new Yf,a:new Uf,b:new Gf,B:new Xf,h:new Jf,H:new Kf,K:new $f,k:new Qf,m:new Zf,s:new tp,S:new ep,X:new np,x:new rp,t:new ip,T:new op},sp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,up=/^'([^]*?)'?$/,cp=/''/g,dp=/\S/,hp=/[a-zA-Z]/;function fp(t,e,n,r){var s,u,d,h,f,p,m,b,v,y,w,k,_,O,x,E,j,S;o(3,arguments);var P=String(t),C=String(e),T=g(),M=null!==(s=null!==(u=null===r||void 0===r?void 0:r.locale)&&void 0!==u?u:T.locale)&&void 0!==s?s:nt;if(!M.match)throw new RangeError("locale must contain match property");var A=l(null!==(d=null!==(h=null!==(f=null!==(p=null===r||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==p?p:null===r||void 0===r||null===(m=r.locale)||void 0===m||null===(b=m.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==f?f:T.firstWeekContainsDate)&&void 0!==h?h:null===(v=T.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==d?d:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=l(null!==(w=null!==(k=null!==(_=null!==(O=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==O?O:null===r||void 0===r||null===(x=r.locale)||void 0===x||null===(E=x.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==_?_:T.weekStartsOn)&&void 0!==k?k:null===(j=T.locale)||void 0===j||null===(S=j.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==w?w:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===C)return""===P?a(n):new Date(NaN);var R,L={firstWeekContainsDate:A,weekStartsOn:D,locale:M},I=[new Bh],N=C.match(lp).map((function(t){var e=t[0];return e in W?(0,W[e])(t,M.formatLong):t})).join("").match(sp),F=[],q=Ph(N);try{var Y=function(){var e=R.value;null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!B(e)||V(e,C,t),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!H(e)||V(e,C,t);var n=e[0],i=ap[n];if(i){var o=i.incompatibleTokens;if(Array.isArray(o)){var a=F.find((function(t){return o.includes(t.token)||t.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===i.incompatibleTokens&&F.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));F.push({token:n,fullToken:e});var s=i.run(P,e,M.match,L);if(!s)return{v:new Date(NaN)};I.push(s.setter),P=s.rest}else{if(n.match(hp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===e?e="'":"'"===n&&(e=e.match(up)[1].replace(cp,"'")),0!==P.indexOf(e))return{v:new Date(NaN)};P=P.slice(e.length)}};for(q.s();!(R=q.n()).done;){var U=Y();if("object"===i(U))return U.v}}catch(et){q.e(et)}finally{q.f()}if(P.length>0&&dp.test(P))return new Date(NaN);var G=I.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,n){return n.indexOf(t)===e})).map((function(t){return I.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),X=a(n);if(isNaN(X.getTime()))return new Date(NaN);var J,K=c(X,z(X)),$={},Q=Ph(G);try{for(Q.s();!(J=Q.n()).done;){var Z=J.value;if(!Z.validate(K,L))return new Date(NaN);var tt=Z.set(K,$,L);Array.isArray(tt)?(K=tt[0],Ch($,tt[1])):K=tt}}catch(et){Q.e(et)}finally{Q.f()}return K}function pp(t,e){var n;o(1,arguments);var r=l(null!==(n=null===e||void 0===e?void 0:e.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var i,a=function(t){var e,n={},r=t.split(mp.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?e=r[0]:(n.date=r[0],e=r[1],mp.timeZoneDelimiter.test(n.date)&&(n.date=t.split(mp.timeZoneDelimiter)[0],e=t.substr(n.date.length,t.length)));if(e){var i=mp.timezone.exec(e);i?(n.time=e.replace(i[1],""),n.timezone=i[1]):n.time=e}return n}(t);if(a.date){var s=function(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:t.slice((r[1]||r[2]).length)}}(a.date,r);i=function(t,e){if(null===e)return new Date(NaN);var n=t.match(gp);if(!n)return new Date(NaN);var r=!!n[4],i=yp(n[1]),o=yp(n[2])-1,a=yp(n[3]),s=yp(n[4]),l=yp(n[5])-1;if(r)return function(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,s,l)?function(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,o=7*(e-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(e,s,l):new Date(NaN);var u=new Date(0);return function(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(kp[e]||(_p(t)?29:28))}(e,o,a)&&function(t,e){return e>=1&&e<=(_p(t)?366:365)}(e,i)?(u.setUTCFullYear(e,o,Math.max(i,a)),u):new Date(NaN)}(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var u,c=i.getTime(),d=0;if(a.time&&(d=function(t){var e=t.match(bp);if(!e)return NaN;var n=wp(e[1]),r=wp(e[2]),i=wp(e[3]);if(!function(t,e,n){if(24===t)return 0===e&&0===n;return n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,r,i))return NaN;return n*Uh+r*Yh+1e3*i}(a.time),isNaN(d)))return new Date(NaN);if(!a.timezone){var h=new Date(c+d),f=new Date(0);return f.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),f.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),f}return u=function(t){if("Z"===t)return 0;var e=t.match(vp);if(!e)return 0;var n="+"===e[1]?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;if(!function(t,e){return e>=0&&e<=59}(0,i))return NaN;return n*(r*Uh+i*Yh)}(a.timezone),isNaN(u)?new Date(NaN):new Date(c+d+u)}var mp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},gp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,bp=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,vp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function yp(t){return t?parseInt(t):1}function wp(t){return t&&parseFloat(t.replace(",","."))||0}var kp=[31,null,31,30,31,30,31,31,30,31,30,31];function _p(t){return t%400===0||t%4===0&&t%100!==0}function Op(t,e){o(2,arguments);var n=a(t),r=l(e);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function xp(t,e){o(2,arguments);var n=a(t),r=l(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),s=new Date(n.getTime());return s.setMonth(n.getMonth()+r+1,0),i>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function Ep(t,e){return o(2,arguments),a(t).getTime()-a(e).getTime()}var jp={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Sp="trunc";function Pp(t){return t?jp[t]:jp[Sp]}function Cp(t){o(1,arguments);var e=a(t);return e.setHours(0,0,0,0),e}var Tp=864e5;function Mp(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function Ap(t,e){o(2,arguments);var n=a(t),r=a(e),i=Mp(n,r),s=Math.abs(function(t,e){o(2,arguments);var n=Cp(t),r=Cp(e),i=n.getTime()-z(n),a=r.getTime()-z(r);return Math.round((i-a)/Tp)}(n,r));n.setDate(n.getDate()-i*s);var l=i*(s-Number(Mp(n,r)===-i));return 0===l?0:l}function Dp(t,e){o(2,arguments);var n=a(t),r=a(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Rp(t){o(1,arguments);var e=a(t);return e.setHours(23,59,59,999),e}function Lp(t){o(1,arguments);var e=a(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function Ip(t,e){o(2,arguments);var n,r=a(t),i=a(e),s=Dp(r,i),l=Math.abs(function(t,e){o(2,arguments);var n=a(t),r=a(e);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,i));if(l<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-s*l);var u=Dp(r,i)===-s;(function(t){o(1,arguments);var e=a(t);return Rp(e).getTime()===Lp(e).getTime()})(a(t))&&1===l&&1===Dp(t,i)&&(u=!1),n=s*(l-Number(u))}return 0===n?0:n}function Wp(t,e){o(2,arguments);var n=a(t),r=a(e),i=Dp(n,r),s=Math.abs(function(t,e){o(2,arguments);var n=a(t),r=a(e);return n.getFullYear()-r.getFullYear()}(n,r));n.setFullYear(1584),r.setFullYear(1584);var l=Dp(n,r)===-i,u=i*(s-Number(l));return 0===u?0:u}function zp(t,e){var n,r,i,s,u,c,d,h;o(1,arguments);var f=g(),p=l(null!==(n=null!==(r=null!==(i=null!==(s=null===e||void 0===e?void 0:e.weekStartsOn)&&void 0!==s?s:null===e||void 0===e||null===(u=e.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==r?r:null===(d=f.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=a(t),b=m.getDay(),v=(b<p?7:0)+b-p;return m.setDate(m.getDate()-v),m.setHours(0,0,0,0),m}const Np={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};function Fp(t){return function(t){if(Array.isArray(t))return Hp(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return Hp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hp(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hp(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}jh.g._date.override({_id:"date-fns",formats:function(){return Np},parse:function(t,e){if(null===t||"undefined"===typeof t)return null;const n=typeof t;return"number"===n||t instanceof Date?t=a(t):"string"===n&&(t="string"===typeof e?fp(t,e,new Date,this.options):pp(t,this.options)),s(t)?t.getTime():null},format:function(t,e){return lt(t,e,this.options)},add:function(t,e,n){switch(n){case"millisecond":return u(t,e);case"second":return function(t,e){return o(2,arguments),u(t,1e3*l(e))}(t,e);case"minute":return function(t,e){return o(2,arguments),u(t,6e4*l(e))}(t,e);case"hour":return function(t,e){return o(2,arguments),u(t,36e5*l(e))}(t,e);case"day":return Op(t,e);case"week":return function(t,e){return o(2,arguments),Op(t,7*l(e))}(t,e);case"month":return xp(t,e);case"quarter":return function(t,e){return o(2,arguments),xp(t,3*l(e))}(t,e);case"year":return function(t,e){return o(2,arguments),xp(t,12*l(e))}(t,e);default:return t}},diff:function(t,e,n){switch(n){case"millisecond":return Ep(t,e);case"second":return function(t,e,n){o(2,arguments);var r=Ep(t,e)/1e3;return Pp(null===n||void 0===n?void 0:n.roundingMethod)(r)}(t,e);case"minute":return function(t,e,n){o(2,arguments);var r=Ep(t,e)/Yh;return Pp(null===n||void 0===n?void 0:n.roundingMethod)(r)}(t,e);case"hour":return function(t,e,n){o(2,arguments);var r=Ep(t,e)/Uh;return Pp(null===n||void 0===n?void 0:n.roundingMethod)(r)}(t,e);case"day":return Ap(t,e);case"week":return function(t,e,n){o(2,arguments);var r=Ap(t,e)/7;return Pp(null===n||void 0===n?void 0:n.roundingMethod)(r)}(t,e);case"month":return Ip(t,e);case"quarter":return function(t,e,n){o(2,arguments);var r=Ip(t,e)/3;return Pp(null===n||void 0===n?void 0:n.roundingMethod)(r)}(t,e);case"year":return Wp(t,e);default:return 0}},startOf:function(t,e,n){switch(e){case"second":return function(t){o(1,arguments);var e=a(t);return e.setMilliseconds(0),e}(t);case"minute":return function(t){o(1,arguments);var e=a(t);return e.setSeconds(0,0),e}(t);case"hour":return function(t){o(1,arguments);var e=a(t);return e.setMinutes(0,0,0),e}(t);case"day":return Cp(t);case"week":return zp(t);case"isoWeek":return zp(t,{weekStartsOn:+n});case"month":return function(t){o(1,arguments);var e=a(t);return e.setDate(1),e.setHours(0,0,0,0),e}(t);case"quarter":return function(t){o(1,arguments);var e=a(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}(t);case"year":return function(t){o(1,arguments);var e=a(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t);default:return t}},endOf:function(t,e){switch(e){case"second":return function(t){o(1,arguments);var e=a(t);return e.setMilliseconds(999),e}(t);case"minute":return function(t){o(1,arguments);var e=a(t);return e.setSeconds(59,999),e}(t);case"hour":return function(t){o(1,arguments);var e=a(t);return e.setMinutes(59,59,999),e}(t);case"day":return Rp(t);case"week":return function(t,e){var n,r,i,s,u,c,d,h;o(1,arguments);var f=g(),p=l(null!==(n=null!==(r=null!==(i=null!==(s=null===e||void 0===e?void 0:e.weekStartsOn)&&void 0!==s?s:null===e||void 0===e||null===(u=e.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==r?r:null===(d=f.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=a(t),b=m.getDay(),v=6+(b<p?-7:0)-(b-p);return m.setDate(m.getDate()+v),m.setHours(23,59,59,999),m}(t);case"month":return Lp(t);case"quarter":return function(t){o(1,arguments);var e=a(t),n=e.getMonth(),r=n-n%3+3;return e.setMonth(r,0),e.setHours(23,59,59,999),e}(t);case"year":return function(t){o(1,arguments);var e=a(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}(t);default:return t}}});var Bp="rgb(46, 91, 236)",Vp="rgb(42, 52, 83)",qp=["rgb(61, 46, 236)","rgb(46, 111, 236)","rgb(46, 190, 236)","rgb(46, 236, 225)"],Yp=new Date,Up=document.querySelector("html").lang,Gp=(Yp.toISOString(),r[Up]),Xp={onClick:function(t){var e=t.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!0);if(e.length){var n=e[0],r=t.chart.data.datasets[n.datasetIndex].data[n.index],i=t.chart.data.datasets[n.datasetIndex].label,o=document.querySelector("div[data-controller*='desktop--hr--charts--sidebar']"),a=Fp(document.querySelectorAll('input[name="email_feedback"]')).find((function(t){return t.checked})).value;o.setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n        { "value": "'.concat(r.y,'",\n          "month": "').concat(r.x,'",\n          "content": "').concat(i,'",\n          "email_category": "').concat(a,'",\n          "url": "/').concat(Up,'/actor/analyse/email_feedbacks" }\n      ')),document.getElementById("trigger-sidebar").click()}},responsive:!0,maintainAspectRatio:!1,plugins:{stacked100:{enable:!0,replaceTooltipLabel:!0,precision:0},tooltip:xh,legend:{align:"start",labels:{boxWidth:0,boxHeight:50,padding:0,font:{size:20},generateLabels:function(t){var e=t.data.legend;if(e)return e.map((function(t){var e=t.label,n=t.number,r=t.datasetIndex,i=t.fontColor;return{text:"".concat(e," ").concat(n," "),fontColor:i,fillStyle:"transparent",strokeStyle:"transparent",datasetIndex:r}}))}},onClick:function(t,e,n){var r=document.querySelector("div[data-controller*='desktop--hr--charts--sidebar']"),i=e.text.split(" ")[0],o=Fp(document.querySelectorAll('input[name="email_feedback"]')).find((function(t){return t.checked})).value;r.setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n          { "content": "'.concat(i,'",\n            "email_category": "').concat(o,'",\n            "url": "/').concat(Up,'/actor/analyse/email_feedbacks" }\n        ')),document.getElementById("trigger-sidebar").click()}}},scales:{x:{adapters:{date:{locale:Gp}},display:!0,type:"time",time:{unit:"month",tooltipFormat:"yyyy-MM-dd'T'HH:mm:ssxxx",unitStepSize:1,displayFormats:{month:"MMM yy"}},stacked:!0,grid:{display:!1,drawBorder:!1},ticks:{color:Vp}},y:{display:!1}}},Jp={onClick:function(t){var e=t.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!0);if(e.length){var n=e[0],r=t.chart.data.datasets[n.datasetIndex].data[n.index],i=t.chart.data.datasets[n.datasetIndex].label[n.index],o=document.querySelector("div[data-controller*='desktop--hr--charts--sidebar']"),a=Fp(document.querySelectorAll('input[name="level_organization"]')),s=a.length>1?a.find((function(t){return t.checked})).value:document.getElementById("level-organizations-subfilter").dataset.environmentId;o.setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n        { "value": "'.concat(r,'",\n          "name": "').concat(i,'",\n          "level_organization_id": "').concat(s,'",\n          "url": "/').concat(Up,'/actor/analyse/level_organizations" }\n      ')),document.getElementById("trigger-sidebar").click()}},responsive:!0,maintainAspectRatio:!1,plugins:{datalabels:{color:Vp,font:{size:14,weight:"lighter",family:"Lato"}},tooltip:_h,legend:{position:"right",labels:{color:Vp,font:{weight:"lighter",family:"Lato"}},onClick:function(t,e,n){var r=document.querySelector("div[data-controller*='desktop--hr--charts--sidebar']"),i=e.text.split(" ")[0],o=Fp(document.querySelectorAll('input[name="level_organization"]')),a=o.length>1?o.find((function(t){return t.checked})).value:document.getElementById("level-organizations-subfilter").dataset.environmentId;r.setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n          { "value": "'.concat(i,'",\n            "name": "').concat(e.text,'",\n            "level_organization_id": "').concat(a,'",\n            "url": "/').concat(Up,'/actor/analyse/level_organizations" }\n        ')),document.getElementById("trigger-sidebar").click()}}},layout:{padding:{top:-50,bottom:-50,right:10,left:10}}},Kp={trackLine:"line",surveyLine:"line",trackHorizontalBars:"doughnut",feedbackVerticalBars:"bar",surveyVerticalBars:"bar"},$p={trackLine:{onClick:function(t){var e=t.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!0);if(e.length){var n=e[0],r=t.chart.data.datasets[n.datasetIndex].data[n.index],i=r[1],o=r[0];document.querySelector("div[data-controller*='desktop--hr--charts--sidebar']").setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n        { "value": "'.concat(i,'",\n          "month": "').concat(o,'",\n          "url": "/').concat(Up,'/actor/analyse/tracks" }\n      ')),document.getElementById("trigger-sidebar").click()}},responsive:!0,maintainAspectRatio:!1,backgroundColor:["rgba(46, 91, 236, 0.30)"],pointRadius:0,borderColor:[Bp],borderWidth:2,fill:"start",tension:0,segment:{borderDash:function(t){var e=new Date;if(new Date(t.p1.raw[0])>=e)return[5,10]}},interaction:{intersect:!1},plugins:{tooltip:_h,legend:{display:!1}},scales:{y:{display:!1,grace:"5%",grid:{drawOnChartArea:!1},ticks:{color:Vp},beginAtZero:!0},x:{adapters:{date:{locale:Gp}},display:!0,type:"time",time:{unit:"month",tooltipFormat:"yyyy-MM-dd'T'HH:mm:ssxxx",unitStepSize:1,displayFormats:{month:"MMM yy"}},grid:{drawOnChartArea:!1},ticks:{color:Vp},min:"auto",max:"auto"}},animation:!0},surveyLine:{onClick:function(t){var e=t.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!0);if(e.length){var n=e[0],r=t.chart.data.datasets[n.datasetIndex].data[n.index],i=r[1],o=r[0];document.querySelector("div[data-controller*='desktop--hr--charts--sidebar']").setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n      {\n        "survey_type": "survey_line",\n        "value": "'.concat(i,'",\n        "month": "').concat(o,'",\n        "survey_question_resource_id": ').concat(t.chart.canvas.parentElement.dataset.surveyQuestionResourceId,',\n        "url": "/').concat(Up,'/actor/analyse/surveys" }\n      ')),document.getElementById("trigger-sidebar").click()}},responsive:!0,maintainAspectRatio:!1,backgroundColor:["rgba(46, 91, 236, 0.30)"],pointRadius:2,borderColor:[Bp],borderWidth:2,fill:"start",tension:.3,plugins:{tooltip:Oh,legend:{display:!1},title:{display:!0}},scales:{y:{display:!1,grid:{drawBorder:!1,display:!1},ticks:{color:Vp},beginAtZero:!0,max:11},x:{adapters:{date:{locale:Gp}},display:!0,type:"time",time:{unit:"month",tooltipFormat:"yyyy-MM-dd'T'HH:mm:ssxxx",unitStepSize:1,displayFormats:{month:"MMM yy "}},grid:{display:!1,drawBorder:!1,drawOnChartArea:!1},ticks:{color:Vp}}}},feedbackVerticalBars:Xp,trackHorizontalBars:Jp,surveyVerticalBars:{onClick:function(t){var e=t.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!0);if(e.length){var n=e[0],r=t.chart.data.datasets[n.datasetIndex].data[n.index],i=t.chart.data.datasets[n.datasetIndex].label;document.querySelector("div[data-controller*='desktop--hr--charts--sidebar']").setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n        { "survey_type": "survey_bars",\n          "value": "'.concat(r.y,'",\n          "month": "').concat(r.x,'",\n          "content": "').concat(i,'",\n          "survey_question_resource_id": "').concat(t.chart.canvas.parentElement.dataset.surveyQuestionResourceId,'",\n          "url": "/').concat(Up,'/actor/analyse/surveys" }\n      ')),document.getElementById("trigger-sidebar").click()}},responsive:!0,maintainAspectRatio:!1,datasets:{bar:function(t){t.chart.data.datasets.forEach((function(t,e){t.backgroundColor=qp[e]}))}},plugins:{tooltip:_h,legend:{align:"start",onClick:function(t,e,n){var r=document.querySelector("div[data-controller*='desktop--hr--charts--sidebar']"),i=e.text;r.setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n        { "survey_type": "survey_bars",\n          "value": "'.concat(i,'",\n          "content": "').concat(i,'",\n          "survey_question_resource_id": "').concat(t.chart.canvas.parentElement.dataset.surveyQuestionResourceId,'",\n          "url": "/').concat(Up,'/actor/analyse/surveys" }\n      ')),document.getElementById("trigger-sidebar").click()}}},scales:{x:{adapters:{date:{locale:Gp}},display:!0,type:"time",time:{unit:"month",tooltipFormat:"yyyy-MM-dd'T'HH:mm:ssxxx",unitStepSize:1,displayFormats:{month:"MMM yy"}},stacked:!0,grid:{display:!1,drawBorder:!1},ticks:{color:Vp}},y:{display:!1,stacked:!0,grid:{display:!1,drawBorder:!1},ticks:{color:Vp}}}}}},function(t,e,n){"use strict";function r(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return f})),n.d(e,"markLinkAsActive",(function(){return p}));var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,i,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){this.checkMainHeight(),document.addEventListener("click",this.updateNavbar.bind(this)),this.observeMainHeight()}},{key:"checkMainHeight",value:function(){this.mainTarget.scrollHeight>this.mainTarget.clientHeight?this.footerTarget.classList.add("with-box-shadow"):this.footerTarget.classList.remove("with-box-shadow")}},{key:"observeMainHeight",value:function(){var t=this;new ResizeObserver((function(e){setTimeout((function(){var n,i=r(e);try{for(i.s();!(n=i.n()).done;)n.value,t.checkMainHeight()}catch(o){i.e(o)}finally{i.f()}}),0)})).observe(this.mainTarget)}},{key:"updateNavbar",value:function(t){for(var e=t.target.parentElement;e;){if(e.hasAttribute("data-link-target")){var n=document.querySelector("[link=".concat(e.getAttribute("data-link-target"),"]"));p(n);break}e=e.parentElement}this.checkMainHeight()}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(1).Controller);c=f,h=["main","footer"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h;var p=function(t){if(!("true"==document.body.dataset["desktop-Actor-SavingsUnsavedChangesValue"])){var e=t.closest("section");m(e,"navbar section");var n=t.closest("[link]")||t.querySelector("[link]");m(n,"navbar [link]")}},m=function(t,e){var n;document.querySelectorAll(e).forEach((function(t){var e;(e=t)&&e.classList.remove("active")})),(n=t)&&n.classList.add("active")}},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t){r(document.querySelectorAll(".line-action")).forEach((function(e){var n,r;null!==(n=e.dataset.scope)&&void 0!==n&&null!==(n=n.split(" "))&&void 0!==n&&n.includes(t)?(e.classList.remove("opacity-55"),e.classList.remove("box-shadow-none")):null!==(r=e.dataset.scope)&&void 0!==r&&null!==(r=r.split(" "))&&void 0!==r&&r.includes(t)||(e.classList.add("opacity-55"),e.classList.add("box-shadow-none")),"all"===t&&(e.classList.remove("opacity-55"),e.classList.remove("box-shadow-none"))}))}function a(){var t=document.getElementById("actor");if(t){r(document.querySelectorAll(".line-action")).forEach((function(t){t.classList.remove("opacity-55"),t.classList.remove("box-shadow-none")}));for(var e=r(document.querySelectorAll("[data-scope]")).map((function(t){return t.dataset.scope.split(" ")})).join(" ").replaceAll(","," ").split(" ").filter((function(t){return""!=t})),n=r(new Set(e));n.includes("all");)n.splice(n.indexOf("all"),1);n.unshift("all");var i=JSON.parse(document.getElementById("setting-content").dataset.implications),o=n.map((function(t){return'<option value="'.concat(t,'">').concat(i[t],"</option>")}));t.innerHTML=o.join("")}}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){for(var e=document.getElementById("pie-chart"),n=document.getElementById("pie-values"),r=0,i=80*Math.PI,o=i,a=0;a<t.length;a++)r+=t[a].value;for(var s=0;s<t.length;s++){var l=document.createElementNS("http://www.w3.org/2000/svg","circle");l.setAttribute("class","pie-chart-value"),l.setAttribute("cx",100),l.setAttribute("cy",100),l.setAttribute("r",40),l.style.strokeDasharray=o+" "+i,l.style.stroke=t[s].color,e.appendChild(l),o-=t[s].value/r*i;var u=document.createElement("li"),c=parseFloat(t[s].value/r*100).toFixed(0);u.innerHTML='<i class="fas fa-square"></i>  &nbsp; &nbsp;'+t[s].name+" ("+c+"%)",u.style.color=t[s].color,n.appendChild(u)}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return s}));var r=n(37),i=n.n(r);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(){o(document.querySelectorAll(".remove-temporality-block")).forEach((function(t){return t.remove()})),o(document.querySelectorAll(".week")).forEach((function(t){if(!t.querySelector(".undraggable-day")&&!t.innerHTML.includes("day_-7")&&!t.innerHTML.includes("day_0")&&!t.innerHTML.includes("day_first-connection")){var e='\n        <div class="remove-temporality-block margin-right-5px margin-top-5px">\n          <i style="height: 100%" class="fa fa-minus-circle text-gray pointer" aria-hidden="true"></i>\n        </div>\n      ';t.querySelector(".block-title").insertAdjacentHTML("beforeend",e)}})),document.querySelectorAll(".remove-temporality-block").forEach((function(e){e.addEventListener("click",(function(e){var n=e.target.parentElement.parentElement.parentElement;n.querySelector(".line-action")?function(e){var n=document.getElementById("setting-content");i.a.fire({title:n.dataset.removeBlockTitle,text:n.dataset.removeBlockText,icon:"warning",confirmButtonText:n.dataset.removeBlockYes,cancelButtonText:n.dataset.removeBlockNo,showCancelButton:!0,showCloseButton:!0,closeButtonHtml:'<i class="fas fa-times-circle text-20px"></i>',buttonsStyling:!1,customClass:{confirmButton:"button button-red m-2",cancelButton:"button button-white m-2"}}).then((function(n){n.isConfirmed&&function(e){var n=e.dataset.week,r=o(e.querySelectorAll(".line-action")),i=[];r.forEach((function(t){var e={model:t.id.split("_")[0],id:t.id.split("_").pop()};i.push(e)}));var a=document.getElementById("setting-content").dataset.templateId;t.ajax({url:"/settings/templates/".concat(a,"/draggable_elements/").concat(a," "),type:"DELETE",data:{week:n,elements_to_destroy:i},dataType:"script"})}(e)}))}(n):(n.remove(),createInvisibleAddWeekButton())}))}))}}).call(this,n(4))},function(t,e,n){"use strict";function r(t){return t.keys().map((e=>function(t,e){const n=function(t){const e=(t.match(/^(?:\.\/)?(.+)(?:[_-]controller\..+?)$/)||[])[1];if(e)return e.replace(/_/g,"-").replace(/\//g,"--")}(e);if(n)return function(t,e){const n=t.default;if("function"==typeof n)return{identifier:e,controllerConstructor:n}}(t(e),n)}(t,e))).filter((t=>t))}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){var e=t.id;delete t.id,analytics.identify(e,t)}function i(t,e){e.event_time=(new Date).toISOString(),setTimeout((function(){analytics.track(t,e)}),100)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}))},function(t,e,n){!function(t){"use strict";var e=/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,n=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,r=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,i=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];t.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:e,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(n(23))},function(t,e,n){!function(t){"use strict";t.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(n(23))},function(t,e,n){!function(t){"use strict";t.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(n(23))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(13),i=n(9);function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{environment:!0},n=JSON.parse(localStorage.getItem("form_resources_sorters")),o=JSON.parse(document.getElementById("form_resources").parentElement.dataset.translations),a=new r.b("#form_resources",{responsiveLayout:"hide",initialSort:n||[{column:"name",dir:"asc"}],pagination:"local",paginationCounter:function(t,e){var n=e+t-1;return"".concat(e," ").concat(o.on," ").concat(n<0?0:n)},paginationSize:25,paginationButtonCount:0,movableColumns:!1,placeholder:Object(i.a)(),data:t,layout:"fitColumns",langs:{"fr-fr":{}},columns:[{field:"id",visible:!1},{field:"url",visible:!1},{field:"form_resource_ids",visible:!1},{field:"mobilities",visible:!1},{field:"type",visible:!1},{field:"type_label",visible:!1},{field:"updated_at_value",visible:!1},{field:"validation",visible:!1},{title:"",field:"bulk",width:16,minWidth:16,maxWidth:16,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:"",field:"icon",width:64,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:0},{title:o.title,field:"name",minWidth:300,widthGrow:4,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:0},{title:o.environment,sorter:i.d,field:"multiple_unit_organizations",visible:e.environment,minWidth:200,widthGrow:2,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:1},{title:o.form_open_count,sorter:"number",field:"form_open_count",visible:e.form_open_count,width:80,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:o.form_closed_count,sorter:"number",field:"form_closed_count",visible:e.form_closed_count,width:80,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:o.form_validated_count,sorter:"number",field:"form_missing_validation_count",visible:e.form_missing_validation_count,width:80,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{field:"actions",width:80,vertAlign:"middle",hozAlign:"right",headerHozAlign:"middle",responsive:0},{title:"",field:"bulk",width:16,minWidth:16,maxWidth:16,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1}],rowFormatter:function(t){var e=t.getData();!function(t,e){var n={name:["name","resource_label","resource_id"],multiple_unit_organizations:["full_unit_organization_count","unit_organization_names","unit_organization_names","resource_id","resource_type"],actions:["resource_id","resource_type","in_shared_environment","template_present","mobilities"]},r=document.querySelector('div[data-controller*="desktop--actor--analyse--form-resources--data"]'),o="true"==r.dataset.sharedAuthorization,a="true"==r.dataset.envAuthorization,s=JSON.parse(document.querySelector("#setting-content").dataset.envIds),l=e.full_unit_organization_ids,u=l.filter((function(t){return!s.includes(t)})).length,c=0===e.unit_organization_ids.length,d=1===e.unit_organization_ids.length,h=!1;(c&&o||!c&&a)&&(h=!0);t.dataset.edit=h,t.dataset.url=e.forms_url,t.dataset.shared=c,t.classList.add("d-flex","align-items-center"),t.querySelector("[tabulator-field=icon]").innerHTML=document.getElementById("icon").innerHTML,h&&t.classList.add("pointer");Object.keys(n).forEach((function(r){var o=r;"form_resource_count"!=r||h?"multiple_unit_organizations"===r&&(c||d)&&(o="single_unit_organization"):o="form_resource_count_no_edit";var a=document.getElementById(o).innerHTML;a=Object(i.b)(a,d,u),n[r].forEach((function(t){a=a.replaceAll("{{".concat(t,"}}"),Object(i.c)(e[t]))}));var s=document.querySelector("html").lang;a=a.replaceAll("{{locale}}",s),t.querySelector('[tabulator-field="'.concat(r,'"]')).innerHTML=a}))}(t.getElement(),e)},downloadConfig:{columnHeaders:!0}}),s=document.querySelector("html").lang;a.on("dataSorted",(function(t,e){var n=[];t.forEach((function(t){n.push({column:t.column.getField(),dir:t.dir})})),localStorage.setItem("form_resources_sorters",JSON.stringify(n))})),setTimeout((function(){a.setLocale("".concat(s,"-").concat(s)),Object(i.e)("form_resources")}),200)}},function(t,e,n){var r,i,o,a;a=function(t){"use strict";const e=class extends t.Controller{initialize(){this.forceClose=this.forceClose.bind(this)}connect(){this.openValue&&this.open(),document.addEventListener("turbo:before-render",this.forceClose)}disconnect(){document.removeEventListener("turbo:before-render",this.forceClose)}open(){this.dialogTarget.showModal()}close(){this.dialogTarget.setAttribute("closing",""),Promise.all(this.dialogTarget.getAnimations().map((t=>t.finished))).then((()=>{this.dialogTarget.removeAttribute("closing"),this.dialogTarget.close()}))}backdropClose(t){t.target===this.dialogTarget&&this.close()}forceClose(){this.dialogTarget.close()}};return e.targets=["dialog"],e.values={open:{type:Boolean,default:!1}},e},typeof t<"u"?t.exports=a(n(1)):(i=[n(1)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){"use strict";n.d(e,"a",(function(){return Jt}));var r=n(15),i=n(3);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={modes:{point:(t,e)=>c(t,e,{intersect:!0}),nearest:(t,e,n)=>function(t,e,n){let r=Number.POSITIVE_INFINITY;return c(t,e,n).reduce(((t,o)=>{const a=o.getCenterPoint(),s=function(t,e,n){if("x"===n)return{x:t.x,y:e.y};if("y"===n)return{x:e.x,y:t.y};return e}(e,a,n.axis),l=Object(i.k)(e,s);return l<r?(t=[o],r=l):l===r&&t.push(o),t}),[]).sort(((t,e)=>t._index-e._index)).slice(0,1)}(t,e,n),x:(t,e,n)=>c(t,e,{intersect:n.intersect,axis:"x"}),y:(t,e,n)=>c(t,e,{intersect:n.intersect,axis:"y"})}};function u(t,e,n){return(l.modes[n.mode]||l.modes.nearest)(t,e,n)}function c(t,e,n){return t.visibleElements.filter((t=>n.intersect?t.inRange(e.x,e.y):function(t,e,n){return"x"!==n&&"y"!==n?t.inRange(e.x,e.y,"x",!0)||t.inRange(e.x,e.y,"y",!0):t.inRange(e.x,e.y,n,!0)}(t,e,n.axis)))}const d=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,h=.001,f=(t,e,n)=>Math.min(n,Math.max(e,t));function p(t,e,n){for(const r of Object.keys(t))t[r]=f(t[r],e,n);return t}function m(t,e,n,r){let i=e.x,o=e.y,a=e.x2,s=e.y2;const l=r/2,u=t.x>=i-l-h&&t.x<=a+l+h,c=t.y>=o-l-h&&t.y<=s+l+h;return"x"===n?u:("y"===n||u)&&c}function g(t,e){const n=t.getProps(["centerX","centerY"],e);return{x:n.centerX,y:n.centerY}}const b=t=>"string"===typeof t&&t.endsWith("%"),v=t=>parseFloat(t)/100,y=t=>f(v(t),0,1);function w(t,e){return"start"===e?0:"end"===e?t:b(e)?y(e)*t:t/2}function k(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"number"===typeof e?e:b(e)?(n?y(e):v(e))*t:t}function _(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center";return Object(i.r)(t)?{x:Object(i.A)(t.x,e),y:Object(i.A)(t.y,e)}:{x:t=Object(i.A)(t,e),y:t}}function O(t){return t&&(Object(i.j)(t.xValue)||Object(i.j)(t.yValue))}function x(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=n.init;if(o)return!0===o?j(e,r):function(t,e,n){if(!0===n)return j(t,e);if(Object(i.r)(n))return n}(e,r,Object(i.h)(o,[{chart:t,properties:e,options:n}]))}function E(t,e,n){let r=!1;return e.forEach((e=>{Object(i.o)(t[e])?(r=!0,n[e]=t[e]):Object(i.j)(n[e])&&delete n[e]})),r}function j(t,e){let n=t.centerX,r=t.centerY;return e?{centerX:n,centerY:r,radius:0,width:0,height:0}:{x:n,y:r,x2:n,y2:r,width:0,height:0}}const S=new Map,P=t=>t.reduce((function(t,e){return t+=e.string}),"");function C(t){if(t&&"object"===typeof t){const e=t.toString();return"[object HTMLImageElement]"===e||"[object HTMLCanvasElement]"===e}}function T(t,e,n){let r=e.x,o=e.y;n&&(t.translate(r,o),t.rotate(Object(i.x)(n)),t.translate(-r,-o))}function M(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle,t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle,t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function A(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function D(t,e){const n=e.content;if(C(n))return{width:k(n.width,e.width),height:k(n.height,e.height)};const r=e.font,o=Object(i.m)(r)?r.map((t=>Object(i.v)(t))):[Object(i.v)(r)],a=e.textStrokeWidth,s=Object(i.m)(n)?n:[n],l=s.join()+P(o)+a+(t._measureText?"-spriting":"");return S.has(l)||S.set(l,function(t,e,n,r){t.save();const i=e.length;let o=0,a=r;for(let s=0;s<i;s++){const i=n[Math.min(s,n.length-1)];t.font=i.string;const l=e[s];o=Math.max(o,t.measureText(l).width+r),a+=i.lineHeight}return t.restore(),{width:o,height:a}}(t,s,o,a)),S.get(l)}function R(t,e,n){const r=e.x,o=e.y,a=e.width,s=e.height;t.save(),A(t,n);const l=M(t,n);t.fillStyle=n.backgroundColor,t.beginPath(),Object(i.g)(t,{x:r,y:o,w:a,h:s,radius:p(Object(i.y)(n.borderRadius),0,Math.min(a,s)/2)}),t.closePath(),t.fill(),l&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}function L(t,e,n){const r=n.content;if(C(r))return t.save(),t.globalAlpha=function(t,e){const n=Object(i.q)(t)?t:e;return Object(i.q)(n)?f(n,0,1):1}(n.opacity,r.style.opacity),t.drawImage(r,e.x,e.y,e.width,e.height),void t.restore();const o=Object(i.m)(r)?r:[r],a=n.font,s=Object(i.m)(a)?a.map((t=>Object(i.v)(t))):[Object(i.v)(a)],l=n.color,u=Object(i.m)(l)?l:[l],c=function(t,e){const n=t.x,r=t.width,i=e.textAlign;return"center"===i?n+r/2:"end"===i||"right"===i?n+r:n}(e,n),d=e.y+n.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=n.textAlign,function(t,e){if(e.textStrokeWidth>0)return t.lineJoin="round",t.miterLimit=2,t.lineWidth=e.textStrokeWidth,t.strokeStyle=e.textStrokeColor,!0}(t,n)&&function(t,e,n,r){let i=e.x,o=e.y;t.beginPath();let a=0;n.forEach((function(e,n){const s=r[Math.min(n,r.length-1)],l=s.lineHeight;t.font=s.string,t.strokeText(e,i,o+l/2+a),a+=l})),t.stroke()}(t,{x:c,y:d},o,s),function(t,e,n,r){let i=e.x,o=e.y,a=r.fonts,s=r.colors,l=0;n.forEach((function(e,n){const r=s[Math.min(n,s.length-1)],u=a[Math.min(n,a.length-1)],c=u.lineHeight;t.beginPath(),t.font=u.string,t.fillStyle=r,t.fillText(e,i,o+c/2+l),l+=c,t.fill()}))}(t,{x:c,y:d},o,{fonts:s,colors:u}),t.restore()}function I(t,e,n,r){const o=e.radius,a=e.options,s=a.pointStyle,l=a.rotation;let u=(l||0)*i.d;if(C(s))return t.save(),t.translate(n,r),t.rotate(u),t.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),void t.restore();(t=>isNaN(t)||t<=0)(o)||function(t,e){let n,r,o,a,s=e.x,l=e.y,u=e.radius,c=e.rotation,d=e.style,h=e.rad;switch(t.beginPath(),d){default:t.arc(s,l,u,0,i.e),t.closePath();break;case"triangle":t.moveTo(s+Math.sin(h)*u,l-Math.cos(h)*u),h+=i.f,t.lineTo(s+Math.sin(h)*u,l-Math.cos(h)*u),h+=i.f,t.lineTo(s+Math.sin(h)*u,l-Math.cos(h)*u),t.closePath();break;case"rectRounded":a=.516*u,o=u-a,n=Math.cos(h+i.c)*o,r=Math.sin(h+i.c)*o,t.arc(s-n,l-r,a,h-i.b,h-i.a),t.arc(s+r,l-n,a,h-i.a,h),t.arc(s+n,l+r,a,h,h+i.a),t.arc(s-r,l+n,a,h+i.a,h+i.b),t.closePath();break;case"rect":if(!c){o=Math.SQRT1_2*u,t.rect(s-o,l-o,2*o,2*o);break}h+=i.c;case"rectRot":n=Math.cos(h)*u,r=Math.sin(h)*u,t.moveTo(s-n,l-r),t.lineTo(s+r,l-n),t.lineTo(s+n,l+r),t.lineTo(s-r,l+n),t.closePath();break;case"crossRot":h+=i.c;case"cross":n=Math.cos(h)*u,r=Math.sin(h)*u,t.moveTo(s-n,l-r),t.lineTo(s+n,l+r),t.moveTo(s+r,l-n),t.lineTo(s-r,l+n);break;case"star":n=Math.cos(h)*u,r=Math.sin(h)*u,t.moveTo(s-n,l-r),t.lineTo(s+n,l+r),t.moveTo(s+r,l-n),t.lineTo(s-r,l+n),h+=i.c,n=Math.cos(h)*u,r=Math.sin(h)*u,t.moveTo(s-n,l-r),t.lineTo(s+n,l+r),t.moveTo(s+r,l-n),t.lineTo(s-r,l+n);break;case"line":n=Math.cos(h)*u,r=Math.sin(h)*u,t.moveTo(s-n,l-r),t.lineTo(s+n,l+r);break;case"dash":t.moveTo(s,l),t.lineTo(s+Math.cos(h)*u,l+Math.sin(h)*u)}t.fill()}(t,{x:n,y:r,radius:o,rotation:l,style:s,rad:u})}const W={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function z(t,e,n){return e="number"===typeof e?e:t.parse(e),Object(i.n)(e)?t.getPixelForValue(e):n}function N(t,e,n){const r=e[n];if(r||"scaleID"===n)return r;const i=n.charAt(0),o=Object.values(t).filter((t=>t.axis&&t.axis===i));return o.length?o[0].id:i}function F(t,e){if(t){const n=t.options.reverse;return{start:z(t,e.min,n?e.end:e.start),end:z(t,e.max,n?e.start:e.end)}}}function H(t,e){const n=t.chartArea,r=t.scales,i=r[N(r,e,"xScaleID")],o=r[N(r,e,"yScaleID")];let a=n.width/2,s=n.height/2;return i&&(a=z(i,e.xValue,i.left+i.width/2)),o&&(s=z(o,e.yValue,o.top+o.height/2)),{x:a,y:s}}function B(t,e){const n=t.scales,r=n[N(n,e,"xScaleID")],i=n[N(n,e,"yScaleID")];if(!r&&!i)return{};let o=r||t.chartArea,a=o.left,s=o.right,l=i||t.chartArea,u=l.top,c=l.bottom;const d=U(r,{min:e.xMin,max:e.xMax,start:a,end:s});a=d.start,s=d.end;const h=U(i,{min:e.yMin,max:e.yMax,start:c,end:u});return u=h.start,c=h.end,{x:a,y:u,x2:s,y2:c,width:s-a,height:c-u,centerX:a+(s-a)/2,centerY:u+(c-u)/2}}function V(t,e){if(!O(e)){const n=B(t,e);let r=e.radius;r&&!isNaN(r)||(r=Math.min(n.width,n.height)/2,e.radius=r);const i=2*r,o=n.centerX+e.xAdjust,a=n.centerY+e.yAdjust;return{x:o-r,y:a-r,x2:o+r,y2:a+r,centerX:o,centerY:a,width:i,height:i,radius:r}}return function(t,e){const n=H(t,e),r=2*e.radius;return{x:n.x-e.radius+e.xAdjust,y:n.y-e.radius+e.yAdjust,x2:n.x+e.radius+e.xAdjust,y2:n.y+e.radius+e.yAdjust,centerX:n.x+e.xAdjust,centerY:n.y+e.yAdjust,radius:e.radius,width:r,height:r}}(t,e)}function q(t,e){const n=t.scales,r=t.chartArea,i=n[e.scaleID],o={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return i?function(t,e,n){const r=z(t,n.value,NaN),i=z(t,n.endValue,r);t.isHorizontal()?(e.x=r,e.x2=i):(e.y=r,e.y2=i)}(i,o,e):function(t,e,n){for(const r of Object.keys(W)){const i=t[N(t,n,r)];if(i){const t=W[r],o=t.min,a=t.max,s=t.start,l=t.end,u=t.startProp,c=t.endProp,d=F(i,{min:n[o],max:n[a],start:i[s],end:i[l]});e[u]=d.start,e[c]=d.end}}}(n,o,e),o}function Y(t,e,n){const r=B(t,e);return r.initProperties=x(t,r,e,n),r.elements=[{type:"label",optionScope:"label",properties:X(t,r,e),initProperties:r.initProperties}],r}function U(t,e){const n=F(t,e)||e;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function G(t,e){const n=t.start,r=t.end,i=t.borderWidth,o=e.position,a=e.padding,s=a.start,l=a.end;return n+i/2+e.adjust+w(r-i-n-s-l-e.size,o)}function X(t,e,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const o=_(r.position),a=Object(i.w)(r.padding),s=D(t.ctx,r),l=function(t,e,n,r){let i=t.properties,o=t.options;return G({start:i.x,end:i.x2,size:i.width,borderWidth:o.borderWidth},{position:n.x,padding:{start:r.left,end:r.right},adjust:o.label.xAdjust,size:e.width})}({properties:e,options:n},s,o,a),u=function(t,e,n,r){let i=t.properties,o=t.options;return G({start:i.y,end:i.y2,size:i.height,borderWidth:o.borderWidth},{position:n.y,padding:{start:r.top,end:r.bottom},adjust:o.label.yAdjust,size:e.height})}({properties:e,options:n},s,o,a),c=s.width+a.width,d=s.height+a.height;return{x:l,y:u,x2:l+c,y2:u+d,width:c,height:d,centerX:l+c/2,centerY:u+d/2,rotation:r.rotation}}function J(t,e,n){const r=Math.cos(n),i=Math.sin(n),o=e.x,a=e.y;return{x:o+r*(t.x-o)-i*(t.y-a),y:a+i*(t.x-o)+r*(t.y-a)}}const K=["enter","leave"],$=K.concat("click");function Q(t,e,n){if(t.listened)switch(e.type){case"mousemove":case"mouseout":return function(t,e,n){if(!t.moveListened)return;let r;r="mousemove"===e.type?u(t,e,n.interaction):[];const i=t.hovered;t.hovered=r;const o={state:t,event:e};let a=Z(o,"leave",i,r);return Z(o,"enter",r,i)||a}(t,e,n);case"click":return function(t,e,n){const r=t.listeners,i=u(t,e,n.interaction);let o;for(const a of i)o=tt(a.options.click||r.click,a,e)||o;return o}(t,e,n)}}function Z(t,e,n,r){let i,o=t.state,a=t.event;for(const s of n)r.indexOf(s)<0&&(i=tt(s.options[e]||o.listeners[e],s,a)||i);return i}function tt(t,e,n){return!0===Object(i.h)(t,[e.$context,n])}const et=["afterDraw","beforeDraw"];function nt(t,e,n){if(t.hooked){const r=e.options[n]||t.hooks[n];return Object(i.h)(r,[e.$context])}}function rt(t,e,n){const r=function(t,e,n){const r=e.axis,o=e.id,a=r+"ScaleID",s={min:Object(i.A)(e.min,Number.NEGATIVE_INFINITY),max:Object(i.A)(e.max,Number.POSITIVE_INFINITY)};for(const i of n)i.scaleID===o?st(i,e,["value","endValue"],s):N(t,i,a)===o&&st(i,e,[r+"Min",r+"Max",r+"Value"],s);return s}(t.scales,e,n);let o=it(e,r,"min","suggestedMin");o=it(e,r,"max","suggestedMax")||o,o&&Object(i.o)(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}function it(t,e,n,r){if(Object(i.n)(e[n])&&!function(t,e,n){return Object(i.j)(t[e])||Object(i.j)(t[n])}(t.options,n,r)){const r=t[n]!==e[n];return t[n]=e[n],r}}function ot(t,e){for(const n of["scaleID","xScaleID","yScaleID"]){const r=N(e,t,n);r&&!e[r]&&at(t,n)&&console.warn(`No scale found with id '${r}' for annotation '${t.id}'`)}}function at(t,e){if("scaleID"===e)return!0;const n=e.charAt(0);for(const r of["Min","Max","Value"])if(Object(i.j)(t[n+r]))return!0;return!1}function st(t,e,n,r){for(const o of n){const n=t[o];if(Object(i.j)(n)){const t=e.parse(n);r.min=Math.min(r.min,t),r.max=Math.max(r.max,t)}}}class lt extends r.e{inRange(t,e,n,r){const o=J({x:t,y:e},this.getCenterPoint(r),Object(i.x)(-this.options.rotation));return m({x:o.x,y:o.y},this.getProps(["x","y","x2","y2"],r),n,this.options.borderWidth)}getCenterPoint(t){return g(this,t)}draw(t){t.save(),T(t,this.getCenterPoint(),this.options.rotation),R(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return Y(t,e)}}lt.id="boxAnnotation",lt.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},lt.defaultRoutes={borderColor:"color",backgroundColor:"color"},lt.descriptors={label:{_fallback:!0}};const ut=["left","bottom","top","right"];class ct extends r.e{inRange(t,e,n,r){const o=J({x:t,y:e},this.getCenterPoint(r),Object(i.x)(-this.rotation));return m({x:o.x,y:o.y},this.getProps(["x","y","x2","y2"],r),n,this.options.borderWidth)}getCenterPoint(t){return g(this,t)}draw(t){const e=this.options,n=!Object(i.j)(this._visible)||this._visible;e.display&&e.content&&n&&(t.save(),T(t,this.getCenterPoint(),this.rotation),function(t,e){const n=e.pointX,r=e.pointY,o=e.options,a=o.callout,s=a&&a.display&&function(t,e){const n=e.position;if(ut.includes(n))return n;return function(t,e){const n=t.x,r=t.y,o=t.x2,a=t.y2,s=t.width,l=t.height,u=t.pointX,c=t.pointY,d=t.centerX,h=t.centerY,f=t.rotation,p={x:d,y:h},m=e.start,g=k(s,m),b=k(l,m),v=[n,n+g,n+g,o],y=[r+b,a,r,a],w=[];for(let k=0;k<4;k++){const t=J({x:v[k],y:y[k]},p,Object(i.x)(f));w.push({position:ut[k],distance:Object(i.k)(t,{x:u,y:c})})}return w.sort(((t,e)=>t.distance-e.distance))[0].position}(t,e)}(e,a);if(!s||function(t,e,n){const r=t.pointX,i=t.pointY,o=e.margin;let a=r,s=i;"left"===n?a+=o:"right"===n?a-=o:"top"===n?s+=o:"bottom"===n&&(s-=o);return t.inRange(a,s)}(e,a,s))return;t.save(),t.beginPath();const l=M(t,a);if(!l)return t.restore();const u=function(t,e){const n=t.x,r=t.y,i=t.x2,o=t.y2,a=function(t,e){const n=t.width,r=t.height,i=t.options,o=i.callout.margin+i.borderWidth/2;if("right"===e)return n+o;if("bottom"===e)return r+o;return-o}(t,e);let s,l;"left"===e||"right"===e?(s={x:n+a,y:r},l={x:s.x,y:o}):(s={x:n,y:r+a},l={x:i,y:s.y});return{separatorStart:s,separatorEnd:l}}(e,s),c=u.separatorStart,d=u.separatorEnd,h=function(t,e,n){const r=t.y,i=t.width,o=t.height,a=t.options,s=a.callout.start,l=function(t,e){const n=e.side;if("left"===t||"top"===t)return-n;return n}(e,a.callout);let u,c;"left"===e||"right"===e?(u={x:n.x,y:r+k(o,s)},c={x:u.x+l,y:u.y}):(u={x:n.x+k(i,s),y:n.y},c={x:u.x,y:u.y+l});return{sideStart:u,sideEnd:c}}(e,s,c),f=h.sideStart,p=h.sideEnd;(a.margin>0||0===o.borderWidth)&&(t.moveTo(c.x,c.y),t.lineTo(d.x,d.y));t.moveTo(f.x,f.y),t.lineTo(p.x,p.y);const m=J({x:n,y:r},e.getCenterPoint(),Object(i.x)(-e.rotation));t.lineTo(m.x,m.y),t.stroke(),t.restore()}(t,this),R(t,this,e),L(t,function(t){let e=t.x,n=t.y,r=t.width,o=t.height,a=t.options;const s=a.borderWidth/2,l=Object(i.w)(a.padding);return{x:e+l.left+s,y:n+l.top+s,width:r-l.left-l.right-a.borderWidth,height:o-l.top-l.bottom-a.borderWidth}}(this),e),t.restore())}resolveElementProperties(t,e){let n;if(O(e))n=H(t,e);else{const r=B(t,e);n={x:r.centerX,y:r.centerY}}const r=Object(i.w)(e.padding),o=function(t,e,n,r){const i=e.width+r.width+n.borderWidth,o=e.height+r.height+n.borderWidth,a=_(n.position,"center"),s=dt(t.x,i,n.xAdjust,a.x),l=dt(t.y,o,n.yAdjust,a.y);return{x:s,y:l,x2:s+i,y2:l+o,width:i,height:o,centerX:s+i/2,centerY:l+o/2}}(n,D(t.ctx,e),e,r);return a(a({initProperties:x(t,o,e),pointX:n.x,pointY:n.y},o),{},{rotation:e.rotation})}}function dt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t-w(e,arguments.length>3?arguments[3]:void 0)+n}ct.id="labelAnnotation",ct.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},ct.defaultRoutes={borderColor:"color"};const ht=(t,e,n)=>({x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}),ft=(t,e,n)=>ht(e,n,Math.abs((t-e.y)/(n.y-e.y))).x,pt=(t,e,n)=>ht(e,n,Math.abs((t-e.x)/(n.x-e.x))).y,mt=t=>t*t,gt=(t,e,n,r)=>(1-r)*(1-r)*t+2*(1-r)*r*e+r*r*n,bt=(t,e,n,r)=>({x:gt(t.x,e.x,n.x,r),y:gt(t.y,e.y,n.y,r)}),vt=(t,e,n,r)=>2*(1-r)*(e-t)+2*r*(n-e),yt=(t,e,n,r)=>-Math.atan2(vt(t.x,e.x,n.x,r),vt(t.y,e.y,n.y,r))+.5*i.b;class wt extends r.e{inRange(t,e,n,r){const i=this.options.borderWidth/2;if("x"!==n&&"y"!==n){const n={mouseX:t,mouseY:e},o=this.path,a=this.ctx;if(o){M(a,this.options);const i=this.$context.chart,s=t*i.currentDevicePixelRatio,l=e*i.currentDevicePixelRatio,u=a.isPointInStroke(o,s,l)||Ot(this,n,r);return a.restore(),u}return function(t,e){let n=e.mouseX,r=e.mouseY,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,o=arguments.length>3?arguments[3]:void 0;const a=t.getProps(["x","y","x2","y2"],o),s=a.x,l=a.y,u=a.x2,c=a.y2,d=u-s,f=c-l,p=mt(d)+mt(f),m=0===p?-1:((n-s)*d+(r-l)*f)/p;let g,b;m<0?(g=s,b=l):m>1?(g=u,b=c):(g=s+m*d,b=l+m*f);return mt(n-g)+mt(r-b)<=i}(this,n,mt(i),r)||Ot(this,n,r)}return function(t,e,n,r){let i=e.mouseX,o=e.mouseY,a=r.hBorderWidth,s=r.useFinalPosition;const l=((t,e,n,r)=>{let i=n.x,o=n.y,a=n.x2,s=n.y2;return"y"===r?{start:Math.min(o,s),end:Math.max(o,s),value:e}:{start:Math.min(i,a),end:Math.max(i,a),value:t}})(i,o,t.getProps(["x","y","x2","y2"],s),n);return l.value>=l.start-a&&l.value<=l.end+a||Ot(t,{mouseX:i,mouseY:o},s,n)}(this,{mouseX:t,mouseY:e},n,{hBorderWidth:i,useFinalPosition:r})}getCenterPoint(t){return g(this,t)}draw(t){const e=this.x,n=this.y,r=this.x2,o=this.y2,a=this.cp,s=this.options;if(t.save(),!M(t,s))return t.restore();A(t,s);const l=Math.sqrt(Math.pow(r-e,2)+Math.pow(o-n,2));if(s.curve&&a)return function(t,e,n,r){const o=e.x,a=e.y,s=e.x2,l=e.y2,u=e.options,c=jt(e),d=c.startOpts,h=c.endOpts,f=c.startAdjust,p=c.endAdjust,m={x:o,y:a},g={x:s,y:l},b=yt(m,n,g,0),v=yt(m,n,g,1)-i.b,y=bt(m,n,g,f/r),w=bt(m,n,g,1-p/r),k=new Path2D;t.beginPath(),k.moveTo(y.x,y.y),k.quadraticCurveTo(n.x,n.y,w.x,w.y),t.shadowColor=u.borderShadowColor,t.stroke(k),e.path=k,e.ctx=t,Ct(t,y,{angle:b,adjust:f},d),Ct(t,w,{angle:v,adjust:p},h)}(t,this,a,l),t.restore();const u=jt(this),c=u.startOpts,d=u.endOpts,h=u.startAdjust,f=u.endAdjust,p=Math.atan2(o-n,r-e);t.translate(e,n),t.rotate(p),t.beginPath(),t.moveTo(0+h,0),t.lineTo(l-f,0),t.shadowColor=s.borderShadowColor,t.stroke(),Pt(t,0,h,c),Pt(t,l,-f,d),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){const n=q(t,e),r=n.x,o=n.y,a=n.x2,s=n.y2,l=function(t,e){let n=t.x,r=t.y,i=t.x2,o=t.y2,a=e.top,s=e.right,l=e.bottom,u=e.left;return!(n<u&&i<u||n>s&&i>s||r<a&&o<a||r>l&&o>l)}(n,t.chartArea),u=l?function(t,e,n){const r=_t(t,e,n),i=r.x,o=r.y,a=_t(e,t,n),s=a.x,l=a.y;return{x:i,y:o,x2:s,y2:l,width:Math.abs(s-i),height:Math.abs(l-o)}}({x:r,y:o},{x:a,y:s},t.chartArea):{x:r,y:o,x2:a,y2:s,width:Math.abs(a-r),height:Math.abs(s-o)};if(u.centerX=(a+r)/2,u.centerY=(s+o)/2,u.initProperties=x(t,u,e),e.curve){const t={x:u.x,y:u.y},n={x:u.x2,y:u.y2};u.cp=function(t,e,n){const r=t.x,i=t.y,o=t.x2,a=t.y2,s=t.centerX,l=t.centerY,u=Math.atan2(a-i,o-r),c=_(e.controlPoint,0);return J({x:s+k(n,c.x,!1),y:l+k(n,c.y,!1)},{x:s,y:l},u)}(u,e,Object(i.k)(t,n))}const c=function(t,e,n){const r=n.borderWidth,o=Object(i.w)(n.padding),a=D(t.ctx,n),s=a.width+o.width+r,l=a.height+o.height+r;return function(t,e,n,r){const o=n.width,a=n.height,s=n.padding,l=e.xAdjust,u=e.yAdjust,c={x:t.x,y:t.y},d={x:t.x2,y:t.y2},h="auto"===e.rotation?function(t){const e=t.x,n=t.y,r=t.x2,o=t.y2,a=Math.atan2(o-n,r-e);return a>i.b/2?a-i.b:a<i.b/-2?a+i.b:a}(t):Object(i.x)(e.rotation),f=function(t,e,n){const r=Math.cos(n),i=Math.sin(n);return{w:Math.abs(t*r)+Math.abs(e*i),h:Math.abs(t*i)+Math.abs(e*r)}}(o,a,h),p=function(t,e,n,r){let i;const o=function(t,e){const n=t.x,r=t.x2,i=t.y,o=t.y2,a=Math.min(i,o)-e.top,s=Math.min(n,r)-e.left,l=e.bottom-Math.max(i,o),u=e.right-Math.max(n,r);return{x:Math.min(s,u),y:Math.min(a,l),dx:s<=u?1:-1,dy:a<=l?1:-1}}(t,r);i="start"===e.position?xt({w:t.x2-t.x,h:t.y2-t.y},n,e,o):"end"===e.position?1-xt({w:t.x-t.x2,h:t.y-t.y2},n,e,o):w(1,e.position);return i}(t,e,{labelSize:f,padding:s},r),m=t.cp?bt(c,t.cp,d,p):ht(c,d,p),g={size:f.w,min:r.left,max:r.right,padding:s.left},b={size:f.h,min:r.top,max:r.bottom,padding:s.top},v=Et(m.x,g)+l,y=Et(m.y,b)+u;return{x:v-o/2,y:y-a/2,x2:v+o/2,y2:y+a/2,centerX:v,centerY:y,pointX:m.x,pointY:m.y,width:o,height:a,rotation:Object(i.u)(h)}}(e,n,{width:s,height:l,padding:o},t.chartArea)}(t,u,e.label);return c._visible=l,u.elements=[{type:"label",optionScope:"label",properties:c,initProperties:u.initProperties}],u}}wt.id="lineAnnotation";const kt={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};function _t(t,e,n){let r=t.x,i=t.y,o=n.top,a=n.right,s=n.bottom,l=n.left;return r<l&&(i=pt(l,{x:r,y:i},e),r=l),r>a&&(i=pt(a,{x:r,y:i},e),r=a),i<o&&(r=ft(o,{x:r,y:i},e),i=o),i>s&&(r=ft(s,{x:r,y:i},e),i=s),{x:r,y:i}}function Ot(t,e,n,r){let i=e.mouseX,o=e.mouseY;const a=t.label;return a.options.display&&a.inRange(i,o,r,n)}function xt(t,e,n,r){const i=e.labelSize,o=e.padding,a=t.w*r.dx,s=t.h*r.dy,l=a>0&&(i.w/2+o.left-r.x)/a,u=s>0&&(i.h/2+o.top-r.y)/s;return f(Math.max(l,u),0,.25)}function Et(t,e){const n=e.size,r=e.min,i=e.max,o=e.padding,a=n/2;return n>i-r?(i+r)/2:(r>=t-o-a&&(t=r+o+a),i<=t+o+a&&(t=i-o-a),t)}function jt(t){const e=t.options,n=e.arrowHeads&&e.arrowHeads.start,r=e.arrowHeads&&e.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:St(t,n),endAdjust:St(t,r)}}function St(t,e){if(!e||!e.display)return 0;const n=e.length,r=e.width,i=t.options.borderWidth/2,o={x:n,y:r+i},a={x:0,y:i};return Math.abs(ft(0,o,a))}function Pt(t,e,n,r){if(!r||!r.display)return;const i=r.length,o=r.width,a=r.fill,s=r.backgroundColor,l=r.borderColor,u=Math.abs(e-i)+n;t.beginPath(),A(t,r),M(t,r),t.moveTo(u,-o),t.lineTo(e+n,0),t.lineTo(u,o),!0===a?(t.fillStyle=s||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=r.borderShadowColor,t.stroke()}function Ct(t,e,n,r){let i=e.x,o=e.y,a=n.angle,s=n.adjust;r&&r.display&&(t.save(),t.translate(i,o),t.rotate(a),Pt(t,0,-s,r),t.restore())}wt.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},kt),fill:!1,length:12,start:Object.assign({},kt),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},ct.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},wt.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},wt.defaultRoutes={borderColor:"color"};class Tt extends r.e{inRange(t,e,n,r){const o=this.options.rotation,a=this.options.borderWidth;if("x"!==n&&"y"!==n)return function(t,e,n,r){const o=e.width,a=e.height,s=e.centerX,l=e.centerY,u=o/2,c=a/2;if(u<=0||c<=0)return!1;const d=Object(i.x)(n||0),h=r/2||0,f=Math.cos(d),p=Math.sin(d),m=Math.pow(f*(t.x-s)+p*(t.y-l),2),g=Math.pow(p*(t.x-s)-f*(t.y-l),2);return m/Math.pow(u+h,2)+g/Math.pow(c+h,2)<=1.0001}({x:t,y:e},this.getProps(["width","height","centerX","centerY"],r),o,a);const s=this.getProps(["x","y","x2","y2"],r),l=s.x,u=s.y,c=s.x2,d=s.y2,f=a/2,p="y"===n?{start:u,end:d}:{start:l,end:c},m=J({x:t,y:e},this.getCenterPoint(r),Object(i.x)(-o));return m[n]>=p.start-f-h&&m[n]<=p.end+f+h}getCenterPoint(t){return g(this,t)}draw(t){const e=this.width,n=this.height,r=this.centerX,o=this.centerY,a=this.options;t.save(),T(t,this.getCenterPoint(),a.rotation),A(t,this.options),t.beginPath(),t.fillStyle=a.backgroundColor;const s=M(t,a);t.ellipse(r,o,n/2,e/2,i.b/2,0,2*i.b),t.fill(),s&&(t.shadowColor=a.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return Y(t,e,!0)}}Tt.id="ellipseAnnotation",Tt.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},lt.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Tt.defaultRoutes={borderColor:"color",backgroundColor:"color"},Tt.descriptors={label:{_fallback:!0}};class Mt extends r.e{inRange(t,e,n,r){const i=this.getProps(["x","y","x2","y2","width"],r),o=i.x,a=i.y,s=i.x2,l=i.y2,u=i.width,c=this.options.borderWidth;if("x"!==n&&"y"!==n)return function(t,e,n,r){if(!t||!e||n<=0)return!1;const i=r/2;return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(n+i,2)}({x:t,y:e},this.getCenterPoint(r),u/2,c);const d=c/2,h="y"===n?{start:a,end:l,value:e}:{start:o,end:s,value:t};return h.value>=h.start-d&&h.value<=h.end+d}getCenterPoint(t){return g(this,t)}draw(t){const e=this.options,n=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,A(t,e);const r=M(t,e);I(t,this,this.centerX,this.centerY),r&&!C(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=n}resolveElementProperties(t,e){const n=V(t,e);return n.initProperties=x(t,n,e,!0),n}}Mt.id="pointAnnotation",Mt.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Mt.defaultRoutes={borderColor:"color",backgroundColor:"color"};class At extends r.e{inRange(t,e,n,r){if("x"!==n&&"y"!==n)return this.options.radius>=.1&&this.elements.length>1&&function(t,e,n,r){let i=!1,o=t[t.length-1].getProps(["bX","bY"],r);for(const a of t){const t=a.getProps(["bX","bY"],r);t.bY>n!==o.bY>n&&e<(o.bX-t.bX)*(n-t.bY)/(o.bY-t.bY)+t.bX&&(i=!i),o=t}return i}(this.elements,t,e,r);const o=J({x:t,y:e},this.getCenterPoint(r),Object(i.x)(-this.options.rotation)),a=this.elements.map((t=>"y"===n?t.bY:t.bX)),s=Math.min(...a),l=Math.max(...a);return o[n]>=s&&o[n]<=l}getCenterPoint(t){return g(this,t)}draw(t){const e=this.elements,n=this.options;t.save(),t.beginPath(),t.fillStyle=n.backgroundColor,A(t,n);const r=M(t,n);let i=!0;for(const o of e)i?(t.moveTo(o.x,o.y),i=!1):t.lineTo(o.x,o.y);t.closePath(),t.fill(),r&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){const n=V(t,e),r=e.sides,o=e.rotation,a=[],s=2*i.b/r;let l=o*i.d;for(let i=0;i<r;i++,l+=s){const r=Dt(n,e,l);r.initProperties=x(t,n,e),a.push(r)}return n.elements=a,n}}function Dt(t,e,n){let r=t.centerX,i=t.centerY,o=e.radius;const a=e.borderWidth/2,s=Math.sin(n),l=Math.cos(n),u={x:r+s*o,y:i-l*o};return{type:"point",optionScope:"point",properties:{x:u.x,y:u.y,centerX:u.x,centerY:u.y,bX:r+s*(o+a),bY:i-l*(o+a)}}}At.id="polygonAnnotation",At.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},At.defaultRoutes={borderColor:"color",backgroundColor:"color"};const Rt={box:lt,ellipse:Tt,label:ct,line:wt,point:Mt,polygon:At};Object.keys(Rt).forEach((t=>{r.h.describe(`elements.${Rt[t].id}`,{_fallback:"plugins.annotation.common"})}));const Lt={update:Object.assign},It=$.concat(et),Wt=(t,e)=>Object(i.r)(e)?Yt(t,e):t,zt=t=>"color"===t||"font"===t;function Nt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"line";return Rt[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function Ft(t,e,n,o){const a=function(t,e,n){if("reset"===n||"none"===n||"resize"===n)return Lt;return new r.a(t,e)}(t,n.animations,o),s=e.annotations,l=function(t,e){const n=e.length,r=t.length;if(r<n){const e=n-r;t.splice(r,0,...new Array(e))}else r>n&&t.splice(n,r-n);return t}(e.elements,s);for(let r=0;r<s.length;r++){const e=s[r],n=Vt(l,r,e.type),o=e.setContext(Ut(t,n,e)),u=n.resolveElementProperties(t,o);u.skip=Ht(u),"elements"in u&&(Bt(n,u.elements,o,a),delete u.elements),Object(i.j)(n.x)||Object.assign(n,u),Object.assign(n,u.initProperties),u.options=qt(o),a.update(n,u)}}function Ht(t){return isNaN(t.x)||isNaN(t.y)}function Bt(t,e,n,r){const i=t.elements||(t.elements=[]);i.length=e.length;for(let o=0;o<e.length;o++){const t=e[o],a=t.properties,s=Vt(i,o,t.type,t.initProperties),l=n[t.optionScope].override(t);a.options=qt(l),r.update(s,a)}}function Vt(t,e,n,r){const i=Rt[Nt(n)];let o=t[e];return o&&o instanceof i||(o=t[e]=new i,Object.assign(o,r)),o}function qt(t){const e=Rt[Nt(t.type)],n={};n.id=t.id,n.type=t.type,n.drawTime=t.drawTime,Object.assign(n,Yt(t,e.defaults),Yt(t,e.defaultRoutes));for(const r of It)n[r]=t[r];return n}function Yt(t,e){const n={};for(const r of Object.keys(e)){const o=e[r],a=t[r];zt(r)&&Object(i.m)(a)?n[r]=a.map((t=>Wt(t,o))):n[r]=Wt(a,o)}return n}function Ut(t,e,n){return e.$context||(e.$context=Object.assign(Object.create(t.getContext()),{element:e,id:n.id,type:"annotation"}))}const Gt=new Map,Xt=$.concat(et);var Jt={id:"annotation",version:"2.2.1",beforeRegister(){!function(t,e,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=n.split(".");let o=0;for(const a of e.split(".")){const s=i[o++];if(parseInt(a,10)<parseInt(s,10))break;if(d(s,a)){if(r)throw new Error(`${t} v${n} is not supported. v${e} or newer is required.`);return!1}}}("chart.js","3.7",r.d.version)},afterRegister(){r.d.register(Rt)},afterUnregister(){r.d.unregister(Rt)},beforeInit(t){Gt.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,n){const r=Gt.get(t).annotations=[];let o=n.annotations;Object(i.r)(o)?Object.keys(o).forEach((t=>{const e=o[t];Object(i.r)(e)&&(e.id=t,r.push(e))})):Object(i.m)(o)&&r.push(...o),function(t,e){for(const n of t)ot(n,e)}(r,t.scales)},afterDataLimits(t,e){const n=Gt.get(t);rt(t,e.scale,n.annotations.filter((t=>t.display&&t.adjustScaleRange)))},afterUpdate(t,e,n){const r=Gt.get(t);!function(t,e,n){e.listened=E(n,$,e.listeners),e.moveListened=!1,e._getElements=u,K.forEach((t=>{Object(i.o)(n[t])&&(e.moveListened=!0)})),e.listened&&e.moveListened||e.annotations.forEach((t=>{!e.listened&&Object(i.o)(t.click)&&(e.listened=!0),e.moveListened||K.forEach((n=>{Object(i.o)(t[n])&&(e.listened=!0,e.moveListened=!0)}))}))}(0,r,n),Ft(t,r,n,e.mode),r.visibleElements=r.elements.filter((t=>!t.skip&&t.options.display)),function(t,e,n){const r=e.visibleElements;e.hooked=E(n,et,e.hooks),e.hooked||r.forEach((t=>{e.hooked||et.forEach((n=>{Object(i.o)(t.options[n])&&(e.hooked=!0)}))}))}(0,r,n)},beforeDatasetsDraw(t,e,n){Kt(t,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(t,e,n){Kt(t,"afterDatasetsDraw",n.clip)},beforeDraw(t,e,n){Kt(t,"beforeDraw",n.clip)},afterDraw(t,e,n){Kt(t,"afterDraw",n.clip)},beforeEvent(t,e,n){Q(Gt.get(t),e.event,n)&&(e.changed=!0)},afterDestroy(t){Gt.delete(t)},_getState:t=>Gt.get(t),defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!Xt.includes(t)&&"init"!==t,annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${Rt[Nt(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:zt,_fallback:!0},_indexable:zt}},additionalOptionScopes:[""]};function Kt(t,e,n){const r=t.ctx,o=t.chartArea,a=Gt.get(t);n&&Object(i.i)(r,o);const s=function(t,e){const n=[];for(const r of t)if(r.options.drawTime===e&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const t of r.elements)t.options.display&&t.options.drawTime===e&&n.push({element:t});return n}(a.visibleElements,e).sort(((t,e)=>t.element.options.z-e.element.options.z));for(const i of s)$t(r,o,a,i);n&&Object(i.z)(r)}function $t(t,e,n,r){const i=r.element;r.main?(nt(n,i,"beforeDraw"),i.draw(t,e),nt(n,i,"afterDraw")):i.draw(t,e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var r=n(3),i=n(15),o=function(){if("undefined"!==typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),a=function(t){var e,n=[];for(t=[].concat(t);t.length;)"string"===typeof(e=t.pop())?n.unshift.apply(n,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):Object(r.p)(t)||n.unshift(""+e);return n},s=function(t,e,n){var r,i=[].concat(e),o=i.length,a=t.font,s=0;for(t.font=n.string,r=0;r<o;++r)s=Math.max(t.measureText(i[r]).width,s);return t.font=a,{height:o*n.lineHeight,width:s}},l=function(t,e,n){return Math.max(t,Math.min(e,n))},u=function(t,e){var n,r,i,o,a=t.slice(),s=[];for(n=0,i=e.length;n<i;++n)o=e[n],-1===(r=a.indexOf(o))?s.push([o,1]):a.splice(r,1);for(n=0,i=a.length;n<i;++n)s.push([a[n],-1]);return s};function c(t,e){var n=e.x,r=e.y;if(null===n)return{x:0,y:-1};if(null===r)return{x:1,y:0};var i=t.x-n,o=t.y-r,a=Math.sqrt(i*i+o*o);return{x:a?i/a:0,y:a?o/a:-1}}var d=0,h=1,f=2,p=4,m=8;function g(t,e,n){var r=d;return t<n.left?r|=h:t>n.right&&(r|=f),e<n.top?r|=m:e>n.bottom&&(r|=p),r}function b(t,e){var n,r,i=e.anchor,o=t;return e.clamp&&(o=function(t,e){for(var n,r,i,o=t.x0,a=t.y0,s=t.x1,l=t.y1,u=g(o,a,e),c=g(s,l,e);u|c&&!(u&c);)(n=u||c)&m?(r=o+(s-o)*(e.top-a)/(l-a),i=e.top):n&p?(r=o+(s-o)*(e.bottom-a)/(l-a),i=e.bottom):n&f?(i=a+(l-a)*(e.right-o)/(s-o),r=e.right):n&h&&(i=a+(l-a)*(e.left-o)/(s-o),r=e.left),n===u?u=g(o=r,a=i,e):c=g(s=r,l=i,e);return{x0:o,x1:s,y0:a,y1:l}}(o,e.area)),"start"===i?(n=o.x0,r=o.y0):"end"===i?(n=o.x1,r=o.y1):(n=(o.x0+o.x1)/2,r=(o.y0+o.y1)/2),function(t,e,n,r,i){switch(i){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:i*=Math.PI/180,n=Math.cos(i),r=Math.sin(i)}return{x:t,y:e,vx:n,vy:r}}(n,r,t.vx,t.vy,e.align)}var v=function(t,e){var n=(t.startAngle+t.endAngle)/2,r=Math.cos(n),i=Math.sin(n),o=t.innerRadius,a=t.outerRadius;return b({x0:t.x+r*o,y0:t.y+i*o,x1:t.x+r*a,y1:t.y+i*a,vx:r,vy:i},e)},y=function(t,e){var n=c(t,e.origin),r=n.x*t.options.radius,i=n.y*t.options.radius;return b({x0:t.x-r,y0:t.y-i,x1:t.x+r,y1:t.y+i,vx:n.x,vy:n.y},e)},w=function(t,e){var n=c(t,e.origin),r=t.x,i=t.y,o=0,a=0;return t.horizontal?(r=Math.min(t.x,t.base),o=Math.abs(t.base-t.x)):(i=Math.min(t.y,t.base),a=Math.abs(t.base-t.y)),b({x0:r,y0:i+a,x1:r+o,y1:i,vx:n.x,vy:n.y},e)},k=function(t,e){var n=c(t,e.origin);return b({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:n.x,vy:n.y},e)},_=function(t){return Math.round(t*o)/o};function O(t,e){var n=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return t.horizontal?{x:r,y:null}:{x:null,y:r}}function x(t,e,n){var r=n.backgroundColor,i=n.borderColor,o=n.borderWidth;(r||i&&o)&&(t.beginPath(),function(t,e,n,r,i,o){var a=Math.PI/2;if(o){var s=Math.min(o,i/2,r/2),l=e+s,u=n+s,c=e+r-s,d=n+i-s;t.moveTo(e,u),l<c&&u<d?(t.arc(l,u,s,-Math.PI,-a),t.arc(c,u,s,-a,0),t.arc(c,d,s,0,a),t.arc(l,d,s,a,Math.PI)):l<c?(t.moveTo(l,n),t.arc(c,u,s,-a,a),t.arc(l,u,s,a,Math.PI+a)):u<d?(t.arc(l,u,s,-Math.PI,0),t.arc(l,d,s,0,Math.PI)):t.arc(l,u,s,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,r,i)}(t,_(e.x)+o/2,_(e.y)+o/2,_(e.w)-o,_(e.h)-o,n.borderRadius),t.closePath(),r&&(t.fillStyle=r,t.fill()),i&&o&&(t.strokeStyle=i,t.lineWidth=o,t.lineJoin="miter",t.stroke()))}function E(t,e,n){var r=t.shadowBlur,i=n.stroked,o=_(n.x),a=_(n.y),s=_(n.w);i&&t.strokeText(e,o,a,s),n.filled&&(r&&i&&(t.shadowBlur=0),t.fillText(e,o,a,s),r&&i&&(t.shadowBlur=r))}var j=function(t,e,n,r){var i=this;i._config=t,i._index=r,i._model=null,i._rects=null,i._ctx=e,i._el=n};Object(r.s)(j.prototype,{_modelize:function(t,e,n,o){var a,l=this,u=l._index,c=Object(r.v)(Object(r.t)([n.font,{}],o,u)),d=Object(r.t)([n.color,i.h.color],o,u);return{align:Object(r.t)([n.align,"center"],o,u),anchor:Object(r.t)([n.anchor,"center"],o,u),area:o.chart.chartArea,backgroundColor:Object(r.t)([n.backgroundColor,null],o,u),borderColor:Object(r.t)([n.borderColor,null],o,u),borderRadius:Object(r.t)([n.borderRadius,0],o,u),borderWidth:Object(r.t)([n.borderWidth,0],o,u),clamp:Object(r.t)([n.clamp,!1],o,u),clip:Object(r.t)([n.clip,!1],o,u),color:d,display:t,font:c,lines:e,offset:Object(r.t)([n.offset,4],o,u),opacity:Object(r.t)([n.opacity,1],o,u),origin:O(l._el,o),padding:Object(r.w)(Object(r.t)([n.padding,4],o,u)),positioner:(a=l._el,a instanceof i.b?v:a instanceof i.f?y:a instanceof i.c?w:k),rotation:Object(r.t)([n.rotation,0],o,u)*(Math.PI/180),size:s(l._ctx,e,c),textAlign:Object(r.t)([n.textAlign,"start"],o,u),textShadowBlur:Object(r.t)([n.textShadowBlur,0],o,u),textShadowColor:Object(r.t)([n.textShadowColor,d],o,u),textStrokeColor:Object(r.t)([n.textStrokeColor,d],o,u),textStrokeWidth:Object(r.t)([n.textStrokeWidth,0],o,u)}},update:function(t){var e,n,i,o=this,s=null,l=null,u=o._index,c=o._config,d=Object(r.t)([c.display,!0],t,u);d&&(e=t.dataset.data[u],n=Object(r.A)(Object(r.h)(c.formatter,[e,t]),e),(i=Object(r.p)(n)?[]:a(n)).length&&(l=function(t){var e=t.borderWidth||0,n=t.padding,r=t.size.height,i=t.size.width,o=-i/2,a=-r/2;return{frame:{x:o-n.left-e,y:a-n.top-e,w:i+n.width+2*e,h:r+n.height+2*e},text:{x:o,y:a,w:i,h:r}}}(s=o._modelize(d,i,c,t)))),o._model=s,o._rects=l},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var n,r=t.ctx,i=this._model,o=this._rects;this.visible()&&(r.save(),i.clip&&(n=i.area,r.beginPath(),r.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),r.clip()),r.globalAlpha=l(0,i.opacity,1),r.translate(_(e.x),_(e.y)),r.rotate(i.rotation),x(r,o.frame,i),function(t,e,n,r){var i,o=r.textAlign,a=r.color,s=!!a,l=r.font,u=e.length,c=r.textStrokeColor,d=r.textStrokeWidth,h=c&&d;if(u&&(s||h))for(n=function(t,e,n){var r=n.lineHeight,i=t.w,o=t.x;return"center"===e?o+=i/2:"end"!==e&&"right"!==e||(o+=i),{h:r,w:i,x:o,y:t.y+r/2}}(n,o,l),t.font=l.string,t.textAlign=o,t.textBaseline="middle",t.shadowBlur=r.textShadowBlur,t.shadowColor=r.textShadowColor,s&&(t.fillStyle=a),h&&(t.lineJoin="round",t.lineWidth=d,t.strokeStyle=c),i=0,u=e.length;i<u;++i)E(t,e[i],{stroked:h,filled:s,w:n.w,x:n.x,y:n.y+n.h*i})}(r,i.lines,o.text,i),r.restore())}});var S=Number.MIN_SAFE_INTEGER||-9007199254740991,P=Number.MAX_SAFE_INTEGER||9007199254740991;function C(t,e,n){var r=Math.cos(n),i=Math.sin(n),o=e.x,a=e.y;return{x:o+r*(t.x-o)-i*(t.y-a),y:a+i*(t.x-o)+r*(t.y-a)}}function T(t,e){var n,r,i,o,a,s=P,l=S,u=e.origin;for(n=0;n<t.length;++n)i=(r=t[n]).x-u.x,o=r.y-u.y,a=e.vx*i+e.vy*o,s=Math.min(s,a),l=Math.max(l,a);return{min:s,max:l}}function M(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);return{vx:(e.x-t.x)/i,vy:(e.y-t.y)/i,origin:t,ln:i}}var A=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function D(t,e,n){var r=e.positioner(t,e),i=r.vx,o=r.vy;if(!i&&!o)return{x:r.x,y:r.y};var a=n.w,s=n.h,l=e.rotation,u=Math.abs(a/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),c=Math.abs(a/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),d=1/Math.max(Math.abs(i),Math.abs(o));return u*=i*d,c*=o*d,u+=e.offset*i,c+=e.offset*o,{x:r.x+u,y:r.y+c}}Object(r.s)(A.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,n){this._rotation=n,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,n=e._rect;return!((t=C(t,e.center(),-e._rotation)).x<n.x-1||t.y<n.y-1||t.x>n.x+n.w+2||t.y>n.y+n.h+2)},intersects:function(t){var e,n,r,i=this._points(),o=t._points(),a=[M(i[0],i[1]),M(i[0],i[3])];for(this._rotation!==t._rotation&&a.push(M(o[0],o[1]),M(o[0],o[3])),e=0;e<a.length;++e)if(n=T(i,a[e]),r=T(o,a[e]),n.max<r.min||r.max<n.min)return!1;return!0},_points:function(){var t=this,e=t._rect,n=t._rotation,r=t.center();return[C({x:e.x,y:e.y},r,n),C({x:e.x+e.w,y:e.y},r,n),C({x:e.x+e.w,y:e.y+e.h},r,n),C({x:e.x,y:e.y+e.h},r,n)]}});var R={prepare:function(t){var e,n,r,i,o,a=[];for(e=0,r=t.length;e<r;++e)for(n=0,i=t[e].length;n<i;++n)o=t[e][n],a.push(o),o.$layout={_box:new A,_hidable:!1,_visible:!0,_set:e,_idx:o._index};return a.sort((function(t,e){var n=t.$layout,r=e.$layout;return n._idx===r._idx?r._set-n._set:r._idx-n._idx})),this.update(a),a},update:function(t){var e,n,r,i,o,a=!1;for(e=0,n=t.length;e<n;++e)i=(r=t[e]).model(),(o=r.$layout)._hidable=i&&"auto"===i.display,o._visible=r.visible(),a|=o._hidable;a&&function(t){var e,n,r,i,o,a,s;for(e=0,n=t.length;e<n;++e)(i=(r=t[e]).$layout)._visible&&(s=new Proxy(r._el,{get:(t,e)=>t.getProps([e],!0)[e]}),o=r.geometry(),a=D(s,r.model(),o),i._box.update(a,o,r.rotation()));(function(t,e){var n,r,i,o;for(n=t.length-1;n>=0;--n)for(i=t[n].$layout,r=n-1;r>=0&&i._visible;--r)(o=t[r].$layout)._visible&&i._box.intersects(o._box)&&e(i,o)})(t,(function(t,e){var n=t._hidable,r=e._hidable;n&&r||r?e._visible=!1:n&&(t._visible=!1)}))}(t)},lookup:function(t,e){var n,r;for(n=t.length-1;n>=0;--n)if((r=t[n].$layout)&&r._visible&&r._box.contains(e))return t[n];return null},draw:function(t,e){var n,r,i,o,a,s;for(n=0,r=e.length;n<r;++n)(o=(i=e[n]).$layout)._visible&&(a=i.geometry(),s=D(i._el,i.model(),a),o._box.update(s,a,i.rotation()),i.draw(t,s))}},L="$datalabels",I="$default";function W(t,e,n,i){if(e){var o,a=n.$context,s=n.$groups;e[s._set]&&(o=e[s._set][s._key])&&!0===Object(r.h)(o,[a,i])&&(t[L]._dirty=!0,n.update(a))}}function z(t,e){var n,r,i=t[L],o=i._listeners;if(o.enter||o.leave){if("mousemove"===e.type)r=R.lookup(i._labels,e);else if("mouseout"!==e.type)return;n=i._hovered,i._hovered=r,function(t,e,n,r,i){var o,a;(n||r)&&(n?r?n!==r&&(a=o=!0):a=!0:o=!0,a&&W(t,e.leave,n,i),o&&W(t,e.enter,r,i))}(t,o,n,r,e)}}var N={id:"datalabels",defaults:{align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(t){if(Object(r.p)(t))return null;var e,n,i,o=t;if(Object(r.r)(t))if(Object(r.p)(t.label))if(Object(r.p)(t.r))for(o="",i=0,n=(e=Object.keys(t)).length;i<n;++i)o+=(0!==i?", ":"")+e[i]+": "+t[e[i]];else o=t.r;else o=t.label;return""+o},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},beforeInit:function(t){t[L]={_actives:[]}},beforeUpdate:function(t){var e=t[L];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,n){var i,o,a,s,l,u,c,d,h=e.index,f=t[L],p=f._datasets[h]=[],m=t.isDatasetVisible(h),g=t.data.datasets[h],b=function(t,e){var n,i,o,a=t.datalabels,s=[];return!1===a?null:(!0===a&&(a={}),e=Object(r.s)({},[e,a]),i=e.labels||{},o=Object.keys(i),delete e.labels,o.length?o.forEach((function(t){i[t]&&s.push(Object(r.s)({},[e,i[t],{_key:t}]))})):s.push(e),n=s.reduce((function(t,e){return Object(r.l)(e.listeners||{},(function(n,r){t[r]=t[r]||{},t[r][e._key||I]=n})),delete e.listeners,t}),{}),{labels:s,listeners:n})}(g,n),v=e.meta.data||[],y=t.ctx;for(y.save(),i=0,a=v.length;i<a;++i)if((c=v[i])[L]=[],m&&c&&t.getDataVisibility(i)&&!c.skip)for(o=0,s=b.labels.length;o<s;++o)u=(l=b.labels[o])._key,(d=new j(l,y,c,i)).$groups={_set:h,_key:u||I},d.$context={active:!1,chart:t,dataIndex:i,dataset:g,datasetIndex:h},d.update(d.$context),c[L].push(d),p.push(d);y.restore(),Object(r.s)(f._listeners,b.listeners,{merger:function(t,n,r){n[t]=n[t]||{},n[t][e.index]=r[t],f._listened=!0}})},afterUpdate:function(t){t[L]._labels=R.prepare(t[L]._datasets)},afterDatasetsDraw:function(t){R.draw(t,t[L]._labels)},beforeEvent:function(t,e){if(t[L]._listened){var n=e.event;switch(n.type){case"mousemove":case"mouseout":z(t,n);break;case"click":!function(t,e){var n=t[L],r=n._listeners.click,i=r&&R.lookup(n._labels,e);i&&W(t,r,i,e)}(t,n)}}},afterEvent:function(t){var e,n,r,i,o,a,s,l=t[L],c=l._actives,d=l._actives=t.getActiveElements(),h=u(c,d);for(e=0,n=h.length;e<n;++e)if((o=h[e])[1])for(r=0,i=(s=o[0].element[L]||[]).length;r<i;++r)(a=s[r]).$context.active=1===o[1],a.update(a.$context);(l._dirty||h.length)&&(R.update(l._labels),t.render()),delete l._dirty}}},function(t,e,n){var r;self,r=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>d});var n=function(t,e,n){if("object"==typeof(i=t)&&i){var r=function(t,e){return t&&t["".concat(e,"AxisKey")]||e}(n,e?"x":"y");return t[r]}var i;return t},r=function(t){t.originalData=t.datasets.map((function(t){return function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}([],t.data,!0)}))},i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=Symbol(),a=function(t,e){return!e||(t.xAxisID||t.yAxisID)===e},s=function(t,e,r,i,s,l,u){var c=function(t,e,r,i,a){var s,l=(null==t?void 0:t.reduce((function(t,e){var n,r=(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.length)||0;return r>t?r:t}),0))||0,u=null===(s=null==t?void 0:t[0])||void 0===s?void 0:s.stack,c=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}([],new Array(l),!0).map((function(s,l){return t.reduce((function(t,s,c){var d=s.stack||o;t[d]||(t[d]=0);var h=Math.abs(n(s.data[l],r,s.parsing||a)||0)*e[c];return i&&!u?t[d]<h&&(t[d]=h):t[d]+=h,t}),{})}));return u&&i?c.map((function(t){var e=Math.max.apply(Math,Object.values(t));return Object.keys(t).forEach((function(n){return t[n]=e})),t})):c}(null==t?void 0:t.datasets,e,r,s,u);return t.datasets.map((function(t){var e=a(t,l);return t.data.map((function(a,s){var l=n(a,r,t.parsing||u);if(!e)return l;var d=c[s][t.stack||o];return l&&d?function(t,e){var n=Math.pow(10,e);return Math.round(100*t*n)/n}(l/d,i):0}))}))},l=function(t,e){t&&t.forEach((function(t,n){e[n].data=t}))},u=function(t){return"y"===t.options.indexAxis},c=function(t,e,n,r){var o=i(i({stacked:n},r),t.options.scales[e]);t.options.scales[e]=o};const d={id:"stacked100",beforeInit:function(t,e,r){if(r.enable){var o=r.replaceTooltipLabel,s=void 0===o||o,l=r.fixNegativeScale,d=void 0===l||l,h=r.individual,f=void 0!==h&&h,p=u(t),m=p?"x":"y",g=function(t,e){var n={max:100};return t?e?i({min:-100},n):n:i({min:0},n)}(t.data.datasets.some((function(e){return e.data.some((function(r){return(n(r,p,e.parsing||t.options.parsing)||0)<0}))})),d);r.axisId?c(t,r.axisId,!f,g):["x","y"].forEach((function(e){c(t,e,!f,e===m?g:{})})),s&&(t.options.plugins.tooltip.callbacks.label=function(t,e){return function(r){var i=r.chart.data,o=r.datasetIndex,s=r.dataIndex,l=i.datasets[o].label||"",u=i.originalData[o][s],c=i.calculatedData[o][s],d=n(u,t,i.datasets[o].parsing||r.chart.options.parsing);return a(i.datasets[o],e)?"".concat(l,": ").concat(c,"% (").concat(d,")"):"".concat(l,": ").concat(c)}}(p,r.axisId))}},beforeUpdate:function(t,e,n){if(n.enable){var i=t.data;r(i);var o=i.datasets.map((function(e,n){var r,i;return(null!==(i=null===(r=t.getDatasetMeta(n))||void 0===r?void 0:r.hidden)&&void 0!==i?i:e.hidden)?0:1})),a=function(t){if(!("precision"in t))return 1;if("number"!=typeof t.precision)return 1;var e=Math.floor(t.precision);return e<0||e>16?1:e}(n);i.calculatedData=s(i,o,u(t),a,n.individual,n.axisId,t.options.parsing),l(i.calculatedData,i.datasets)}},afterUpdate:function(t,e,n){if(n.enable){var r=t.data;l(r.originalData,r.datasets)}}};return e})(),t.exports=r()},function(t,e,n){"use strict";function r(){var t;return document.querySelectorAll("[data-desktop--hr--tabs-target=tab]").forEach((function(e){"true"===e.getAttribute("selected")&&(t=e.dataset.type)})),t}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(260)},function(t,e,n){"use strict";function r(t){var e=t.dataset.controller;t.dataset.controller="",setTimeout((function(){t.dataset.controller=e}),10)}function i(){!function(){var t=document.getElementById("download-all-forms");if(!t)return;r(t)}(),document.querySelectorAll("div[data-controller=desktop--hr--tabs--fillable-pdfs]").forEach((function(t){t.querySelectorAll(":not(template)").forEach((function(t){t.remove()})),r(t)}))}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";(function(t){function r(){var e=document.getElementById("calendar_d1"),n=e.dataset.locale,r=e.dataset.employee,i=e.dataset.start,o=e.dataset.zone;e.dataset.step;new Calendar(e,{locales:allLocales,locale:n,plugins:[timeGridPlugin],header:{left:"",center:"title",right:""},views:{timeGridDay:{slotDuration:"00:30",minTime:"08:00",maxTime:"20:00"}},contentHeight:"auto",nowIndicator:!0,events:"/internal_api/v1/employees/"+r+"/meetings?time_zone="+o,defaultDate:i,defaultView:"timeGridDay",eventRender:function(t){t.el.id="meeting-"+t.event.id,t.el.classList.add("event-meeting")},eventClick:function(e){var r=e.el.id.match(/\d+/)[0];t.ajax({url:"/"+n+"/onboardees/meetings/"+r,type:"GET",data:{devise:"desktop"}})}}).render()}function i(){var e=document.getElementById("calendar_w1"),n=e.dataset.locale,r=e.dataset.employee,i=e.dataset.start,o=e.dataset.zone,a=(e.dataset.step,new Date(i).getDay());new Calendar(e,{locales:allLocales,locale:n,plugins:[dayGridPlugin],header:{left:"",center:"title",right:"prev,next"},contentHeight:"auto",nowIndicator:!0,events:"/internal_api/v1/employees/"+r+"/meetings?time_zone="+o,defaultDate:i,firstDay:a,defaultView:"dayGridWeek",eventRender:function(t){t.el.id="meeting-"+t.event.id,t.el.classList.add("event-meeting")},eventClick:function(e){var r=e.el.id.match(/\d+/)[0];t.ajax({url:"/"+n+"/onboardees/meetings/"+r,type:"GET",data:{devise:"desktop"}})},eventPositioned:function(e){e.el.setAttribute("data-toggle","popover"),e.el.setAttribute("data-container","body"),e.el.setAttribute("data-boundary","window"),e.el.setAttribute("data-placement","bottom"),e.el.setAttribute("data-trigger","hover"),e.el.setAttribute("data-content",e.event.title),t('[data-toggle="popover"]').popover()}}).render()}function o(){var e=document.getElementById("calendar_w1_mobile"),n=e.dataset.locale,r=e.dataset.employee,i=e.dataset.start,o=e.dataset.end,a=e.dataset.zone,s=(e.dataset.step,new Date(i).getDay());new Calendar(e,{locales:allLocales,locale:n,plugins:[timeGridPlugin],header:{left:"",center:"title",right:"prev,next"},views:{timeGridDay:{slotDuration:"00:30",minTime:"08:00",maxTime:"20:00"}},validRange:{start:i,end:o},contentHeight:"auto",nowIndicator:!0,events:"/internal_api/v1/employees/"+r+"/meetings?time_zone="+a,defaultDate:i,firstDay:s,defaultView:"timeGridDay",eventRender:function(t){t.el.id="meeting-"+t.event.id,t.el.classList.add("event-meeting")},eventClick:function(e){var r=e.el.id.match(/\d+/)[0];t.ajax({url:"/"+n+"/onboardees/meetings/"+r,type:"GET",data:{devise:"desktop"}})}}).render()}function a(){var e=document.getElementById("calendar_m1"),n=e.dataset.locale,r=e.dataset.employee,i=(e.dataset.start,e.dataset.current),o=e.dataset.zone;e.dataset.step;new Calendar(e,{locales:allLocales,locale:n,plugins:[dayGridPlugin],header:{left:"",center:"title",right:"prev,next"},events:"/internal_api/v1/employees/"+r+"/meetings?time_zone="+o+"&&split=true",nowIndicator:!0,defaultDate:i,defaultView:"dayGridMonth",eventLimit:1,contentHeight:"auto",eventRender:function(t){t.el.id="meeting-"+t.event.id,t.el.classList.add("event-meeting")},eventClick:function(e){var r=e.el.id.match(/\d+/)[0];t.ajax({url:"/"+n+"/onboardees/meetings/"+r,type:"GET",data:{devise:"desktop"}})}}).render()}function s(){var e=document.getElementById("calendar_y1"),n=e.dataset.locale,r=e.dataset.employee,i=(e.dataset.start,e.dataset.end,e.dataset.current),o=e.dataset.zone;e.dataset.step;new Calendar(e,{locales:allLocales,locale:n,plugins:[dayGridPlugin,listPlugin],header:{left:"listCustom, dayGridMonth",center:"title",right:"prev,next"},views:{listCustom:{type:"list",nowIndicator:!0,duration:{year:1}}},events:"/internal_api/v1/employees/"+r+"/meetings?time_zone="+o+"&&split=true",defaultDate:i,defaultView:"dayGridMonth",eventLimit:1,eventRender:function(t){t.el.id="meeting-"+t.event.id,t.el.classList.add("event-meeting")},eventClick:function(e){var r=e.el.id.match(/\d+/)[0];t.ajax({url:"/"+n+"/onboardees/meetings/"+r,type:"GET",data:{devise:"desktop"}})}}).render()}function l(){var t=document.getElementById("meet_at_calendar"),e=t.dataset.locale,n=t.dataset.meeting_invitation,r=t.dataset.start,i=t.dataset.zone,o=t.dataset.button_text_list,a=t.dataset.button_text_month;new Calendar(t,{locales:allLocales,locale:e,height:"100%",plugins:[listPlugin],header:{left:"listCustom",center:"title",right:"prev,next"},views:{listCustom:{type:"list",nowIndicator:!0,duration:{month:1}}},buttonText:{list:o,month:a},events:"/api/v1/meeting_invitations/"+n+"/public_meetings?time_zone="+i+"&futur_meetings=true",defaultDate:r,defaultView:"listCustom",eventLimit:1,eventRender:function(t){t.el.id="meeting-"+t.event.id,t.el.classList.add("event-meeting")}}).render()}n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return l}))}).call(this,n(4))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},,function(t,e,n){"use strict";(function(t){function r(e,n){t.ajax({url:"/"+n+"/onboardees/kits/"+e,type:"GET"})}function i(){var t=document.querySelectorAll("#navigator a"),e=document.querySelector("scroll-container").scrollTop+50,n=document.getElementById("navigator-date");function r(e){var n=document.querySelector(t[0].hash),r=document.getElementById("navigator"),i=document.getElementById("navigator-date");n.offsetTop>e?(r.classList.add("invisible"),i.classList.add("invisible")):(r.classList.add("visible"),i.classList.add("visible"),r.classList.remove("invisible"),i.classList.remove("invisible"))}r(e),document.querySelector("scroll-container").addEventListener("scroll",(function(e){var i=document.querySelector("scroll-container").scrollTop+50;r(i),t.forEach((function(t){var e=document.querySelector(t.hash);e.offsetTop<=i&&e.offsetTop+e.offsetHeight>i?(t.classList.add("current-link","background-color-customed","text-white","h-100"),n.innerHTML=t.dataset.date):t.classList.remove("current-link","background-color-customed","text-white","h-100")}))}))}function o(){t(".resources-list, .calendars").on("wheel",(function(t){t.stopPropagation()}))}function a(){function e(){var t=document.querySelector(".current-link");return t?t.getAttribute("href"):"#track_intro"}document.querySelector("scroll-container").addEventListener("wheel",(function(n){var r,i;r=n.deltaY,i=e(),r>=3?s(t(i).next()):r<=-3&&s(t(i).prev())})),document.querySelector("html").addEventListener("keydown",(function(n){var r,i;r=n.keyCode,i=e(),37===r||38===r?s(t(i).prev()):39!==r&&40!==r||s(t(i).next())}))}function s(e){e[0]&&t("scroll-container").stop().animate({scrollTop:e[0].offsetTop},200)}function l(e){var n=document.querySelector("#".concat(e,"-block"));n.nextElementSibling&&t("#onboardee_track").stop().animate({scrollTop:n.nextElementSibling.offsetTop-60},200)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return l}))}).call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var i=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}};function o(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function s(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function l(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:l(s(t))}function u(t){return t&&t.referenceNode?t.referenceNode:t}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function h(t){return 11===t?c:10===t?d:c||d}function f(t){if(!t)return document.documentElement;for(var e=h(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?f(n):n:t?t.ownerDocument.documentElement:document.documentElement}function p(t){return null!==t.parentNode?p(t.parentNode):t}function m(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(t!==l&&e!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&f(a.firstElementChild)!==a?f(l):l;var u=p(t);return u.host?m(u.host,e):m(t,p(e).host)}function g(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[e]}return t[e]}function b(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function v(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],h(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function y(t){var e=t.body,n=t.documentElement,r=h(10)&&getComputedStyle(n);return{height:v("Height",e,n,r),width:v("Width",e,n,r)}}var w=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),k=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function O(t){return _({},t,{right:t.left+t.width,bottom:t.top+t.height})}function x(t){var e={};try{if(h(10)){e=t.getBoundingClientRect();var n=g(t,"top"),r=g(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(f){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?y(t.ownerDocument):{},s=o.width||t.clientWidth||i.width,l=o.height||t.clientHeight||i.height,u=t.offsetWidth-s,c=t.offsetHeight-l;if(u||c){var d=a(t);u-=b(d,"x"),c-=b(d,"y"),i.width-=u,i.height-=c}return O(i)}function E(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=h(10),i="HTML"===e.nodeName,o=x(t),s=x(e),u=l(t),c=a(e),d=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=O({top:o.top-s.top-d,left:o.left-s.left-f,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),b=parseFloat(c.marginLeft);p.top-=d-m,p.bottom-=d-m,p.left-=f-b,p.right-=f-b,p.marginTop=m,p.marginLeft=b}return(r&&!n?e.contains(u):e===u&&"BODY"!==u.nodeName)&&(p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(e,"top"),i=g(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}(p,e)),p}function j(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var n=s(t);return!!n&&j(n)}function S(t){if(!t||!t.parentElement||h())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function P(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?S(t):m(t,u(e));if("viewport"===r)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=E(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:g(n),s=e?0:g(n,"left");return O({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var c=void 0;"scrollParent"===r?"BODY"===(c=l(s(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===r?t.ownerDocument.documentElement:r;var d=E(c,a,i);if("HTML"!==c.nodeName||j(a))o=d;else{var h=y(t.ownerDocument),f=h.height,p=h.width;o.top+=d.top-d.marginTop,o.bottom=f+d.top,o.left+=d.left-d.marginLeft,o.right=p+d.left}}var b="number"===typeof(n=n||0);return o.left+=b?n:n.left||0,o.top+=b?n:n.top||0,o.right-=b?n:n.right||0,o.bottom-=b?n:n.bottom||0,o}function C(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=P(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return _({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}function T(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return E(n,r?S(e):m(e,u(n)),r)}function M(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function A(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function D(t,e,n){n=n.split("-")[0];var r=M(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=e[a]+e[l]/2-r[l]/2,i[s]=n===s?e[s]-r[u]:e[A(s)],i}function R(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function L(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=R(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&o(n)&&(e.offsets.popper=O(e.offsets.popper),e.offsets.reference=O(e.offsets.reference),e=n(e,t))})),e}function I(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=T(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=C(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=D(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=L(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function W(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function z(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if("undefined"!==typeof document.body.style[o])return o}return null}function N(){return this.state.isDestroyed=!0,W(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[z("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(t){var e=t.ownerDocument;return e?e.defaultView:window}function H(t,e,n,r){var i="BODY"===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),i||H(l(o.parentNode),e,n,r),r.push(o)}function B(t,e,n,r){n.updateBound=r,F(t).addEventListener("resize",n.updateBound,{passive:!0});var i=l(t);return H(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function V(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}function q(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,F(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function Y(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function U(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Y(e[n])&&(r="px"),t.style[n]=e[n]+r}))}var G=n&&/Firefox/i.test(navigator.userAgent);function X(t,e,n){var r=R(t,(function(t){return t.name===e})),i=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!i){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],K=J.slice(3);function $(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=K.indexOf(t),r=K.slice(n+1).concat(K.slice(0,n));return e?r.reverse():r}var Q="flip",Z="clockwise",tt="counterclockwise";function et(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(R(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){return O("%p"===a?n:r)[e]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,i,e,n)}))})),u.forEach((function(t,e){t.forEach((function(n,r){Y(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}var nt={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:k({},l,o[l]),end:k({},l,o[l]+o[u]-a[u])};t.offsets.popper=_({},a,c[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=Y(+n)?[+n,0]:et(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||f(t.instance.popper);t.instance.reference===n&&(n=f(n));var r=z("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=P(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=l;var u=e.priority,c=t.offsets.popper,d={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),k({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(r=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),k({},n,r)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=_({},c,d[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(r[l])&&(t.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[s])&&(t.offsets.popper[l]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!X(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"===typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,s=o.popper,l=o.reference,u=-1!==["left","right"].indexOf(i),c=u?"height":"width",d=u?"Top":"Left",h=d.toLowerCase(),f=u?"left":"top",p=u?"bottom":"right",m=M(r)[c];l[p]-m<s[h]&&(t.offsets.popper[h]-=s[h]-(l[p]-m)),l[h]+m>s[p]&&(t.offsets.popper[h]+=l[h]+m-s[p]),t.offsets.popper=O(t.offsets.popper);var g=l[h]+l[c]/2-m/2,b=a(t.instance.popper),v=parseFloat(b["margin"+d]),y=parseFloat(b["border"+d+"Width"]),w=g-t.offsets.popper[h]-v-y;return w=Math.max(Math.min(s[c]-m,w),0),t.arrowElement=r,t.offsets.arrow=(k(n={},h,Math.round(w)),k(n,f,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(W(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=P(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=A(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Q:a=[r,i];break;case Z:a=$(r);break;case tt:a=$(r,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return t;r=t.placement.split("-")[0],i=A(r);var u=t.offsets.popper,c=t.offsets.reference,d=Math.floor,h="left"===r&&d(u.right)>d(c.left)||"right"===r&&d(u.left)<d(c.right)||"top"===r&&d(u.bottom)>d(c.top)||"bottom"===r&&d(u.top)<d(c.bottom),f=d(u.left)<d(n.left),p=d(u.right)>d(n.right),m=d(u.top)<d(n.top),g=d(u.bottom)>d(n.bottom),b="left"===r&&f||"right"===r&&p||"top"===r&&m||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),y=!!e.flipVariations&&(v&&"start"===o&&f||v&&"end"===o&&p||!v&&"start"===o&&m||!v&&"end"===o&&g),w=!!e.flipVariationsByContent&&(v&&"start"===o&&p||v&&"end"===o&&f||!v&&"start"===o&&g||!v&&"end"===o&&m),k=y||w;(h||b||k)&&(t.flipped=!0,(h||b)&&(r=a[l+1]),k&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=_({},t.offsets.popper,D(t.instance.popper,t.offsets.reference,t.placement)),t=L(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=A(e),t.offsets.popper=O(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!X(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=R(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=R(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=f(t.instance.popper),l=x(s),u={position:i.position},c=function(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},l=o(i.width),u=o(r.width),c=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=e?c||d||l%2===u%2?o:a:s,f=e?o:s;return{left:h(l%2===1&&u%2===1&&!d&&e?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:h(r.right)}}(t,window.devicePixelRatio<2||!G),d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",p=z("transform"),m=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,m="right"===h?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&p)u[p]="translate3d("+m+"px, "+g+"px, 0)",u[d]=0,u[h]=0,u.willChange="transform";else{var b="bottom"===d?-1:1,v="right"===h?-1:1;u[d]=g*b,u[h]=m*v,u.willChange=d+", "+h}var y={"x-placement":t.placement};return t.attributes=_({},y,t.attributes),t.styles=_({},u,t.styles),t.arrowStyles=_({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return U(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&U(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=T(i,e,t,n.positionFixed),a=C(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),U(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:nt},it=function(){function t(e,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=_({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_({},t.Defaults.modifiers,a.modifiers)).forEach((function(e){r.options.modifiers[e]=_({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return _({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&o(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(t,[{key:"update",value:function(){return I.call(this)}},{key:"destroy",value:function(){return N.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),t}();it.Utils=("undefined"!==typeof window?window:t).PopperUtils,it.placements=J,it.Defaults=rt,e.default=it}.call(this,n(93))},function(t,e,n){"use strict";"function"!==typeof Object.assign&&(Object.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var r=function(e){e&&Object.keys(e).forEach((function(n){return t[n]=e[n]}))},i=0,o=e;i<o.length;i++){r(o[i])}return t})},function(t,e,n){!function(t){"use strict";function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=e((function(t,e){!function(e){t.exports=e()}((function(t){var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+e[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+e[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+e[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+e[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+e[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+e[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+e[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+e[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+e[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+e[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+e[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+e[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+e[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+e[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+e[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+e[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+e[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+e[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+e[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+e[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+e[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+e[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+e[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+e[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+e[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+e[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+e[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+e[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+e[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+e[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+e[9]-343485551|0)<<21|r>>>11)+i|0,t[0]=n+t[0]|0,t[1]=r+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function o(t){var e,i,o,a,s,l,u=t.length,c=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)n(c,r(t.substring(e-64,e)));for(i=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(c,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,n(c,o),c}function a(t){var e,r,o,a,s,l,u=t.length,c=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)n(c,i(t.subarray(e-64,e)));for(r=(t=e-64<u?t.subarray(e-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<r;e+=1)o[e>>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(c,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,n(c,o),c}function s(t){var n,r="";for(n=0;n<4;n+=1)r+=e[t>>8*n+4&15]+e[t>>8*n&15];return r}function l(t){var e;for(e=0;e<t.length;e+=1)t[e]=s(t[e]);return t.join("")}function u(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function c(t,e){var n,r=t.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=t.charCodeAt(n);return e?o:i}function d(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function h(t,e,n){var r=new Uint8Array(t.byteLength+e.byteLength);return r.set(new Uint8Array(t)),r.set(new Uint8Array(e),t.byteLength),n?r:r.buffer}function f(t){var e,n=[],r=t.length;for(e=0;e<r-1;e+=2)n.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}return l(o("hello")),"undefined"===typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,s,l=this.byteLength,u=e(n,l),c=l;return r!==t&&(c=e(r,l)),u>c?new ArrayBuffer(0):(i=c-u,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,u,i),a.set(s),o)}}(),p.prototype.append=function(t){return this.appendBinary(u(t)),this},p.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,i=this._buff.length;for(e=64;e<=i;e+=64)n(this._hash,r(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},p.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),n=l(this._hash),t&&(n=f(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},p.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(t,e){var r,i,o,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,t),a=0;a<16;a+=1)t[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,t[14]=i,t[15]=o,n(this._hash,t)},p.hash=function(t,e){return p.hashBinary(u(t),e)},p.hashBinary=function(t,e){var n=l(o(t));return e?f(n):n},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(t){var e,r=h(this._buff.buffer,t,!0),o=r.length;for(this._length+=t.byteLength,e=64;e<=o;e+=64)n(this._hash,i(r.subarray(e-64,e)));return this._buff=e-64<o?new Uint8Array(r.buffer.slice(e-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r[e]<<(e%4<<3);return this._finish(o,i),n=l(this._hash),t&&(n=f(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var t=p.prototype.getState.call(this);return t.buff=d(t.buff),t},p.ArrayBuffer.prototype.setState=function(t){return t.buff=c(t.buff,!0),p.prototype.setState.call(this,t)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(t,e){var n=l(a(new Uint8Array(t)));return e?f(n):n},p}))})),r=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,a=function(){function t(e){r(this,t),this.file=e,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}return i(t,null,[{key:"create",value:function(e,n){new t(e).create(n)}}]),i(t,[{key:"create",value:function(t){var e=this;this.callback=t,this.md5Buffer=new n.ArrayBuffer,this.fileReader=new FileReader,this.fileReader.addEventListener("load",(function(t){return e.fileReaderDidLoad(t)})),this.fileReader.addEventListener("error",(function(t){return e.fileReaderDidError(t)})),this.readNextChunk()}},{key:"fileReaderDidLoad",value:function(t){if(this.md5Buffer.append(t.target.result),!this.readNextChunk()){var e=this.md5Buffer.end(!0),n=btoa(e);this.callback(null,n)}}},{key:"fileReaderDidError",value:function(t){this.callback("Error reading "+this.file.name)}},{key:"readNextChunk",value:function(){if(this.chunkIndex<this.chunkCount||0==this.chunkIndex&&0==this.chunkCount){var t=this.chunkIndex*this.chunkSize,e=Math.min(t+this.chunkSize,this.file.size),n=o.call(this.file,t,e);return this.fileReader.readAsArrayBuffer(n),this.chunkIndex++,!0}return!1}}]),t}();function s(t){var e=u(document.head,'meta[name="'+t+'"]');if(e)return e.getAttribute("content")}function l(t,e){return"string"==typeof t&&(e=t,t=document),d(t.querySelectorAll(e))}function u(t,e){return"string"==typeof t&&(e=t,t=document),t.querySelector(e)}function c(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.disabled,i=n.bubbles,o=n.cancelable,a=n.detail,s=document.createEvent("Event");s.initEvent(e,i||!0,o||!0),s.detail=a||{};try{t.disabled=!1,t.dispatchEvent(s)}finally{t.disabled=r}return s}function d(t){return Array.isArray(t)?t:Array.from?Array.from(t):[].slice.call(t)}var h=function(){function t(e,n,i){var o=this;r(this,t),this.file=e,this.attributes={filename:e.name,content_type:e.type||"application/octet-stream",byte_size:e.size,checksum:n},this.xhr=new XMLHttpRequest,this.xhr.open("POST",i,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");var a=s("csrf-token");void 0!=a&&this.xhr.setRequestHeader("X-CSRF-Token",a),this.xhr.addEventListener("load",(function(t){return o.requestDidLoad(t)})),this.xhr.addEventListener("error",(function(t){return o.requestDidError(t)}))}return i(t,[{key:"create",value:function(t){this.callback=t,this.xhr.send(JSON.stringify({blob:this.attributes}))}},{key:"requestDidLoad",value:function(t){if(this.status>=200&&this.status<300){var e=this.response,n=e.direct_upload;delete e.direct_upload,this.attributes=e,this.directUploadData=n,this.callback(null,this.toJSON())}else this.requestDidError(t)}},{key:"requestDidError",value:function(t){this.callback('Error creating Blob for "'+this.file.name+'". Status: '+this.status)}},{key:"toJSON",value:function(){var t={};for(var e in this.attributes)t[e]=this.attributes[e];return t}},{key:"status",get:function(){return this.xhr.status}},{key:"response",get:function(){var t=this.xhr,e=t.responseType,n=t.response;return"json"==e?n:JSON.parse(n)}}]),t}(),f=function(){function t(e){var n=this;r(this,t),this.blob=e,this.file=e.file;var i=e.directUploadData,o=i.url,a=i.headers;for(var s in this.xhr=new XMLHttpRequest,this.xhr.open("PUT",o,!0),this.xhr.responseType="text",a)this.xhr.setRequestHeader(s,a[s]);this.xhr.addEventListener("load",(function(t){return n.requestDidLoad(t)})),this.xhr.addEventListener("error",(function(t){return n.requestDidError(t)}))}return i(t,[{key:"create",value:function(t){this.callback=t,this.xhr.send(this.file.slice())}},{key:"requestDidLoad",value:function(t){var e=this.xhr,n=e.status,r=e.response;n>=200&&n<300?this.callback(null,r):this.requestDidError(t)}},{key:"requestDidError",value:function(t){this.callback('Error storing "'+this.file.name+'". Status: '+this.xhr.status)}}]),t}(),p=0,m=function(){function t(e,n,i){r(this,t),this.id=++p,this.file=e,this.url=n,this.delegate=i}return i(t,[{key:"create",value:function(t){var e=this;a.create(this.file,(function(n,r){if(n)t(n);else{var i=new h(e.file,r,e.url);g(e.delegate,"directUploadWillCreateBlobWithXHR",i.xhr),i.create((function(n){if(n)t(n);else{var r=new f(i);g(e.delegate,"directUploadWillStoreFileWithXHR",r.xhr),r.create((function(e){e?t(e):t(null,i.toJSON())}))}}))}}))}}]),t}();function g(t,e){if(t&&"function"==typeof t[e]){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return t[e].apply(t,r)}}var b=function(){function t(e,n){r(this,t),this.input=e,this.file=n,this.directUpload=new m(this.file,this.url,this),this.dispatch("initialize")}return i(t,[{key:"start",value:function(t){var e=this,n=document.createElement("input");n.type="hidden",n.name=this.input.name,this.input.insertAdjacentElement("beforebegin",n),this.dispatch("start"),this.directUpload.create((function(r,i){r?(n.parentNode.removeChild(n),e.dispatchError(r)):n.value=i.signed_id,e.dispatch("end"),t(r)}))}},{key:"uploadRequestDidProgress",value:function(t){var e=t.loaded/t.total*100;e&&this.dispatch("progress",{progress:e})}},{key:"dispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.file=this.file,e.id=this.directUpload.id,c(this.input,"direct-upload:"+t,{detail:e})}},{key:"dispatchError",value:function(t){this.dispatch("error",{error:t}).defaultPrevented||alert(t)}},{key:"directUploadWillCreateBlobWithXHR",value:function(t){this.dispatch("before-blob-request",{xhr:t})}},{key:"directUploadWillStoreFileWithXHR",value:function(t){var e=this;this.dispatch("before-storage-request",{xhr:t}),t.upload.addEventListener("progress",(function(t){return e.uploadRequestDidProgress(t)}))}},{key:"url",get:function(){return this.input.getAttribute("data-direct-upload-url")}}]),t}(),v="input[type=file][data-direct-upload-url]:not([disabled])",y=function(){function t(e){r(this,t),this.form=e,this.inputs=l(e,v).filter((function(t){return t.files.length}))}return i(t,[{key:"start",value:function(t){var e=this,n=this.createDirectUploadControllers(),r=function r(){var i=n.shift();i?i.start((function(n){n?(t(n),e.dispatch("end")):r()})):(t(),e.dispatch("end"))};this.dispatch("start"),r()}},{key:"createDirectUploadControllers",value:function(){var t=[];return this.inputs.forEach((function(e){d(e.files).forEach((function(n){var r=new b(e,n);t.push(r)}))})),t}},{key:"dispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this.form,"direct-uploads:"+t,{detail:e})}}]),t}(),w="data-direct-uploads-processing",k=new WeakMap,_=!1;function O(){_||(_=!0,document.addEventListener("click",x,!0),document.addEventListener("submit",E),document.addEventListener("ajax:before",j))}function x(t){var e=t.target;"INPUT"!=e.tagName&&"BUTTON"!=e.tagName||"submit"!=e.type||!e.form||k.set(e.form,e)}function E(t){S(t)}function j(t){"FORM"==t.target.tagName&&S(t)}function S(t){var e=t.target;if(e.hasAttribute(w))t.preventDefault();else{var n=new y(e),r=n.inputs;r.length&&(t.preventDefault(),e.setAttribute(w,""),r.forEach(C),n.start((function(t){e.removeAttribute(w),t?r.forEach(T):P(e)})))}}function P(t){var e=k.get(t)||u(t,"input[type=submit], button[type=submit]");if(e){var n=e.disabled;e.disabled=!1,e.focus(),e.click(),e.disabled=n}else(e=document.createElement("input")).type="submit",e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e);k.delete(t)}function C(t){t.disabled=!0}function T(t){t.disabled=!1}function M(){window.ActiveStorage&&O()}setTimeout(M,1),t.start=O,t.DirectUpload=m,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){"use strict";(function(t){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return a}));var a=function(e){var n=document.querySelector(e),r=n.dataset.url,i=n.dataset.resourceType,o=n.dataset.resourceId,a={preload:!0,create:!1,load:function(e,n){t.ajax({url:r,type:"GET",dataType:"json",data:{query:e,resource_type:i,resource_id:o},error:function(){n()},success:function(t){n(t)}})}};t(e).selectize(s(i,a))},s=function(t,e){return i(i({},e),{},"SurveyQuestion"==t?{valueField:"id",labelField:"content",searchField:"content",render:{option:function(t,e){return'<div style="padding: 6px 15px;">'+e(t.content)+"</div>"}}}:"UnitOrganization"==t?{valueField:"id",labelField:"name",searchField:"name",render:{option:function(t,e){return'<div style="padding: 6px 15px;">'+e(t.name)+"</div>"}}}:{valueField:"value",labelField:"value",searchField:"value",render:{option:function(t,e){return'<div style="padding: 6px 15px;">'+e(t.value)+"</div>"}}})}}).call(this,n(4))},,function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return g}));var r=n(1),i=n(5),o=n(19);function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var m,g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(h,t);var e,n,r,l=d(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),l.apply(this,arguments)}return e=h,(n=[{key:"connect",value:function(){new MutationObserver(this.delayRequest).observe(this.element,{attributes:!0})}},{key:"delayRequest",value:function(t){var e,n=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}(t);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.target.dataset.delay;"data-delay"==r.attributeName&&i&&b(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"delayedSearch",value:function(){this.listTarget.dataset.delay=1e3}},{key:"search",value:function(){var t=this,e=this.queryTarget.value,n=this.urlValue+"?query="+e;fetch(n,{method:"GET",headers:{Accept:"application/json","X-CSRF-Token":Object(i.a)()}}).then((function(t){return t.json()})).then((function(e){t.loadImages(e)}))}},{key:"loadImages",value:function(t){var e=this;a(document.querySelectorAll(".image")).forEach((function(t){return t.remove()})),t.forEach((function(t){var n=document.querySelector("#template-image").innerHTML;n=(n=n.replace("{{{url}}}",t.url)).replace("{{{id}}}",t.id),e.listTarget.insertAdjacentHTML("beforeend",n)}))}},{key:"update",value:function(t){var e=t.target.src.replace("&w=200","&w=2000"),n=t.target.parentElement.dataset.imageId,r=document.querySelector("#cards-list").dataset.bannerType;document.querySelector("#close-button").click(),Object(o.a)(this.element.dataset.successNotice),fetch("/account_photos",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":Object(i.a)()},body:JSON.stringify({photo_type:r,id:n,url:e})}).then((function(t){return t.json()})).then((function(t){document.querySelector("#cards-list").style.backgroundImage="url(".concat(t.url,")")}))}}])&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(r.Controller);function b(t){var e=Stimulus.controllers.find((function(t){return t.element.dataset.controller.includes("account-photos")}));window.clearTimeout(m),m=window.setTimeout((function(){e.search()}),parseInt(t))}f(g,"targets",["query","list","closeButton"]),f(g,"values",{url:String})},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){this.loadBlock()}},{key:"loadBlock",value:function(){var e=this,n=this.blockTarget.dataset.url,r=this.blockTarget.dataset.id;t.ajax({url:n,type:"GET",dataType:"json",success:function(t){e.displayTrack(t,r)}})}},{key:"displayTrack",value:function(e,n){t("#api_connection-"+n).replaceWith(e.content)}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,c=["block"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.element()&&this.loadReports()}},{key:"loadReports",value:function(){var t=this.element().dataset.date;this.blockTargets.forEach((function(e){fetch("".concat(e.dataset.url,"?date=").concat(t)).then((function(t){return t.ok?t.json():console.log("Can't load report table")})).then((function(t){document.getElementById("".concat(t.account_id,"-report-content")).innerHTML=t.content})).catch((function(t){console.log(t)}))}))}},{key:"changeDate",value:function(){this.updateParams(),this.updateDateLabel(),this.displaySpinners(),this.loadReports()}},{key:"updateParams",value:function(){var t=this;this.element().dataset.date=this.dateInputTarget.value.split("-").join(""),setTimeout((function(){t.dateInputTarget.value=""}),3e3)}},{key:"updateDateLabel",value:function(){var t=this.element().dataset.date.match(/(\d{4})(\d{2})(\d{2})/);document.getElementById("date-label").innerText="".concat(t[3],"/").concat(t[2],"/").concat(t[1])}},{key:"displaySpinners",value:function(){this.blockTargets.forEach((function(t){var e=t.id.split("-")[0];document.getElementById("".concat(e,"-report-content")).innerHTML='<i class="fad fa-spinner text-gray rotating text-40px" aria-hidden="true"></i>'}))}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["block","dateInput"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"updateDataForm",value:function(){var t=document.getElementById("identification_resource_data").value;"free_field"==t||"date"==t?(this.hideValidationSection(),this.hideCollectionValuesSection()):"validated_field"==t?(this.validationTarget.style.display="block",this.hideCollectionValuesSection()):"collection"==t&&(this.hideValidationSection(),this.collectionValuesTarget.style.display="block")}},{key:"hideValidationSection",value:function(){this.validationTarget.style.display="none",this.validationRegexTarget.value="",this.validationRequiredTarget.checked=!1}},{key:"hideCollectionValuesSection",value:function(){this.collectionValuesTarget.style.display="none",this.collectionValueInputTargets.forEach((function(t){t.click()}))}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["validation","validationRegex","validationRequired","collectionValues","collectionValueInput"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return u}));var u=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){var e,n,r,i,o,a;e=this.publicKeyValue,n="#".concat(this.inputTarget.id),r=!!this.displayEnvValue,i=this.applicationIdValue,o=this.railsEnvValue,a=algoliasearch(i,e).initIndex("UnitOrganization_".concat(o)),autocomplete(n,{hint:!1},{source:autocomplete.sources.hits(a,{hitsPerPage:5}),displayKey:"name",templates:{suggestion:function(t){return"<span>"+t._highlightResult.name.value+"</span><span>"+t._highlightResult.first_level_parent_name.value+"</span>"}}}).on("autocomplete:selected",(function(e,n,i){t("#organization_id").val(n.id),!0===r?document.getElementById("environment_name").innerText=n.algolia_environment_name:document.getElementById("search-form").submit()}))}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);s(u,"targets",["input"]),s(u,"values",{applicationId:String,publicKey:String,displayEnv:Boolean,railsEnv:String})}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t,e,n,r,i,o,a,s,l;t=this.publicKeyValue,e=this.placeholderValue,n=this.applicationIdValue,r=this.railsEnvValue,i=instantsearch({searchClient:algoliasearch(n,t),indexName:"UnitOrganization_".concat(r)}),o=instantsearch.widgets.hits({container:document.querySelector("#organizations"),escapeHTML:!0,templates:{item:getTemplate("unit_organization"),empty:getTemplate("no-results")}}),a=instantsearch.widgets.searchBox({container:document.querySelector("#search-input"),placeholder:e}),s=instantsearch.widgets.pagination({container:"#pagination",scrollTo:!1}),l=instantsearch.widgets.hitsPerPage({container:document.querySelector("#hits-per-page-selector"),items:[{value:10,default:!0}]}),i.addWidget(o),i.addWidget(a),i.addWidget(s),i.addWidget(l),i.start()}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,u="values",c={applicationId:String,publicKey:String,railsEnv:String,placeholder:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(1),i=n(10);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){document.querySelector(".mobile-device")||Object(i.a)(this)}},{key:"openAskBar",value:function(){var t=document.getElementById("ask-overlay"),e=document.querySelector("#ask-bar input");t.classList.remove("hidden"),t.classList.add("ask-overlay-backdrop"),e.focus()}},{key:"closeAskBar",value:function(){var t=document.getElementById("ask-overlay");t.classList.add("hidden"),t.classList.remove("ask-overlay-backdrop")}},{key:"post",value:function(){var t=this;event.preventDefault();var e=document.querySelector("#ask-bar input").value,n=this.askBarTarget.dataset.filteredIds,r=document.documentElement.lang;trackPageLoad("Ask a question to Workelo Ask",{question:e,current_sign_in_at:this.currentSignInAtValue}),this.placeholder(),this.intializeAnswser(),fetch("https://workelo-ask-api-jz5lg2jczq-od.a.run.app",{method:"POST",body:"query=".concat(encodeURIComponent(e),"&filtered_ids=").concat(encodeURIComponent(n),"&locale=").concat(encodeURIComponent(r)),headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"rJ84DSB3t7BlyYGWzoQ8LAptjNVkqZLhXST4H9jSBPEjVfZ40C5PIe2Zb0yzj2OWEW1EJFhhx9u5iqxgVqcW3a2nDu2gpAAhmR58WMqYjaLNaQ4SvMG8k7z218eVEsW6"}}).then((function(t){return t.json()})).then((function(e){return t.loadAnswers(e)})).catch((function(t){return console.error(t)}))}},{key:"placeholder",value:function(){var t=document.getElementById("ask-placeholder"),e=document.getElementById("ask-bar-glow");t.classList.remove("hidden"),e.classList.add("hidden")}},{key:"intializeAnswser",value:function(){var t=document.getElementById("answer"),e=document.getElementById("sources");t.parentElement.classList.contains("hidden")||t.parentElement.classList.add("hidden"),t.innerHTML="{{answer}}",e.innerHTML=""}},{key:"loadAnswers",value:function(t){var e=document.getElementById("ask-answer"),n=document.getElementById("ask-placeholder"),r=document.querySelector(".mobile-device");e.innerHTML=e.innerHTML.replace(/{{answer}}/g,t.answer),t.sources.forEach((function(t){r?f(t.title):h(t.id,t.title)})),n.classList.add("hidden"),e.classList.remove("hidden");var i=t.sources.map((function(t){return t.id})).join(" ; ");trackPageLoad("Get an answer from workelo ask",{question:t.query,answer:t.answer,current_sign_in_at:this.currentSignInAtValue,source_id:i})}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);u(d,"targets",["askBar"]),u(d,"values",{currentSignInAt:String});var h=function(t,e){document.getElementById("sources").innerHTML+="\n    <div data-controller='desktop--onboardee--modal'\n         data-action='click->desktop--onboardee--modal#call'\n         data-desktop--onboardee--modal-url-value=\"/onboardee/training_resources/".concat(t,"/edit\"\n         data-desktop--onboardee--modal-method-value='get'\n         class='text-bold text-12px hover-text-blue padded-5px pointer'>\n      ").concat(e,"\n    </div>\n  ")},f=function(t){document.getElementById("sources").innerHTML+="\n    <div class='text-bold text-12px padded-5px'>".concat(t,"</div>\n  ")}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(1),i=n(45),o=n(10);function a(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(d,t);var e,n,r,s=c(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),s.apply(this,arguments)}return e=d,(n=[{key:"connect",value:function(){Object(o.a)(this),new MutationObserver(this.observeAttributes.bind(this)).observe(this.element,{attributes:!0})}},{key:"observeAttributes",value:function(t){var e,n=a(t);try{for(n.s();!(e=n.n()).done;)"data-highlight-id"==e.value.attributeName&&(this.removeHightlights(),this.element.dataset.highlightId&&this.highlight(),this.show())}catch(r){n.e(r)}finally{n.f()}}},{key:"clickOutside",value:function(t){this.clickOnModal(t)||this.hide()}},{key:"hide",value:function(){this.element.classList.remove("extended")}},{key:"show",value:function(){this.element.classList.add("extended")}},{key:"highlight",value:function(){"conditionField"==this.element.dataset.highlightType?this.highlightByConditionField():this.highlightByConditionalLogic(),Object(i.a)("[conditional-logic-content].border-color-blue",200,"#conditional-logic-sidebar-content")}},{key:"highlightByConditionField",value:function(){document.querySelectorAll('.conditional-logic [logic-condition][data-logic-conditions-field-value="'.concat(this.element.dataset.highlightId,'"]')).forEach((function(t){t.closest("[conditional-logic-content]").classList.add("border-color-blue")}))}},{key:"highlightByConditionalLogic",value:function(){document.querySelector('.conditional-logic[data-conditional-logics-id-value="'.concat(this.element.dataset.highlightId,'"] [conditional-logic-content]')).classList.add("border-color-blue")}},{key:"removeHightlights",value:function(){document.querySelectorAll(".conditional-logic .border-color-blue").forEach((function(t){return t.classList.remove("border-color-blue")}))}},{key:"clickOnModal",value:function(t){var e;return(t.path||t.composedPath&&t.composedPath()).forEach((function(t){if(t.classList&&t.classList.contains("modal"))return e=!0})),e}}])&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.Controller)},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return p}));var r=n(1),i=n(10),o=n(6),a=n(25);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}(this,n)}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var p=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(p,e);var n,r,d,f=u(p);function p(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return h(c(t=f.call.apply(f,[this].concat(n))),"relationTypes",JSON.parse(document.getElementById("logic-condition-relation-types").value)),h(c(t),"newAction",{id:Object(o.newId)(),operator_type:"show",field_id:""}),h(c(t),"newCondition",{id:Object(o.newId)(),operator_type:"show",field_id:"",value:"",collection:"[]"}),h(c(t),"enableStoring",!1),h(c(t),"currentRelation",t.conditionRelationValue),h(c(t),"elementsAreReadyToStore",(function(){return Array.from(t.element.querySelectorAll("[data-ready-to-store]")).every((function(t){return"true"===t.dataset.readyToStore}))})),t}return n=p,(r=[{key:"initialize",value:function(){Object(i.a)(this),this.appendLogicConditions(),this.appendLogicActions(),this.enableStoring=!0,this.initializeSavingObserver(),this.initializeChildrenObservers(),this.initializeConditionRelationObservers(),setTimeout(this.storeConditionLogic,300)}},{key:"stickDropdown",value:function(){this.element.setAttribute("dropdown-focus","")}},{key:"clickOutside",value:function(){this.hideDropdown(),this.element.removeAttribute("dropdown-focus")}},{key:"hideDropdown",value:function(){t(this.element.querySelector("[data-toggle=dropdown]")).dropdown("hide")}},{key:"appendLogicConditions",value:function(){var t=this;this.logicConditionsValue.forEach((function(e){var n=t.buildLogicCondition(e);t.logicConditionListTarget.insertAdjacentHTML("beforeend",n)}))}},{key:"appendLogicActions",value:function(){var t=this;this.logicActionsValue.forEach((function(e){var n=t.buildLogicAction(e);t.logicActionListTarget.insertAdjacentHTML("beforeend",n)}))}},{key:"buildLogicCondition",value:function(t){var e=document.getElementById("logic-condition-template").innerHTML;e=(e=(e=(e=(e=e.replaceAll("{{{conditionalLogicId}}}",this.idValue)).replaceAll("{{{id}}}",t.id)).replaceAll("{{{field}}}",t.field_id)).replaceAll("{{{operatorType}}}",t.operator_type)).replaceAll("{{{value}}}",t.value);var n=Object(a.b)(e);return n.dataset.logicConditionsCollectionValue=t.collection||"[]",e=Object(a.a)(n)}},{key:"buildLogicAction",value:function(t){var e=document.getElementById("logic-action-template").innerHTML;return e=(e=(e=(e=e.replaceAll("{{{conditionalLogicId}}}",this.idValue)).replaceAll("{{{id}}}",t.id)).replaceAll("{{{operatorType}}}",t.operator_type)).replaceAll("{{{field}}}",t.field_id)}},{key:"duplicate",value:function(){var t=this.toJSON();t.id=Object(o.newId)(),t.logic_conditions.forEach((function(t){return t.id=Object(o.newId)()})),t.logic_actions.forEach((function(t){return t.id=Object(o.newId)()}));var e=Object(o.buildConditionalLogicHtml)(t);this.element.insertAdjacentHTML("afterend",e),this.clickOutside()}},{key:"remove",value:function(){var t=this,e=this.formId(),n=Object(o.getStorage)(e);this.element.remove();var r=n.conditional_logics;n.conditional_logics=r.filter((function(e){return e.id!==t.idValue})),Object(o.setStorage)(e,n)}},{key:"addLogicAction",value:function(t){var e=t.target.closest("[logic-action]"),n=this.buildLogicAction(this.newAction);e.insertAdjacentHTML("afterend",n)}},{key:"addLogicCondition",value:function(t){var e=t.target.closest("[logic-condition]"),n=this.buildLogicCondition(this.newCondition);e.insertAdjacentHTML("afterend",n)}},{key:"toJSON",value:function(){return{id:this.idValue,logic_conditions:this.logicConditionsToJSON(),logic_actions:this.logicActionsToJSON(),condition_relation:this.conditionRelationValue,position:this.positionValue}}},{key:"logicConditionsToJSON",value:function(){var t=Array.from(this.element.querySelectorAll("[logic-condition]")).map((function(t){return t.id}));return Stimulus.controllers.filter((function(t){return"logic-conditions"==t.identifier})).filter((function(e){return t.includes(e.element.id)})).map((function(t){return t.toJSON()}))}},{key:"logicActionsToJSON",value:function(){var t=Array.from(this.element.querySelectorAll("[logic-action]")).map((function(t){return t.id}));return Stimulus.controllers.filter((function(t){return"logic-actions"==t.identifier})).filter((function(e){return t.includes(e.element.id)})).map((function(t){return t.toJSON()}))}},{key:"initializeSavingObserver",value:function(){var t=this;new MutationObserver((function(e){e.forEach((function(e){"attributes"===e.type&&"data-ready-to-store"===e.attributeName&&t.storeConditionLogic()}))})).observe(this.element,{subtree:!0,attributes:!0})}},{key:"initializeChildrenObservers",value:function(){var t=this,e=new MutationObserver((function(e){e.forEach((function(e){0==e.target.children.length&&t.remove()}))}));e.observe(this.logicConditionListTarget,{childList:!0}),e.observe(this.logicActionListTarget,{childList:!0})}},{key:"storeConditionLogic",value:function(){var t=this;if(this.enableStoring&&this.elementsAreReadyToStore()){var e=Object(o.getStorage)(this.formId()),n=e.conditional_logics||(e.conditional_logics=[]),r=this.toJSON(),i=n.find((function(e){return e.id==t.idValue}));i?(i.logic_conditions=r.logic_conditions,i.logic_actions=r.logic_actions,i.condition_relation=r.condition_relation):n.push(r),Object(o.setStorage)(this.formId(),e)}}},{key:"initializeConditionRelationObservers",value:function(){var t=this;new MutationObserver((function(e){e.forEach((function(e){"attributes"===e.type&&e.attributeName.includes("condition-relation")&&t.updateConditionRelationTargets()}))})).observe(this.element,{attributes:!0})}},{key:"updateConditionRelationTargets",value:function(){var t=this;this.currentRelation!=this.conditionRelationValue&&(this.currentRelation=this.conditionRelationValue,this.element.querySelectorAll('[data-logic-conditions-target="conditionRelation"]').forEach((function(e){return e.selectize.setValue(t.conditionRelationValue)})),this.storeConditionLogic())}},{key:"formId",value:function(){return this.element.closest("[data-controller=form-resources]").dataset.formResourcesIdValue}}])&&s(n.prototype,r),d&&s(n,d),Object.defineProperty(n,"prototype",{writable:!1}),p}(r.Controller);h(p,"values",{id:String,position:Number,logicConditions:Array,logicActions:Array,conditionRelation:String}),h(p,"targets",["logicConditionList","logicActionList"])}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.r(e),n.d(e,"default",(function(){return s}));var s=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.updateButton()}},{key:"updateButton",value:function(){var t=document.getElementById("submit-paperwork-resource"),e=this.element.value;["date","text"].includes(e)?t.dataset.action="":t.dataset.action="desktop--actor--navigations#submit"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller)},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"defineVariables",value:function(){this.singular="environment",this.plural="environments"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(40).BaseFilterController);l=d,c=["select","menu","search"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return p}));var r=n(1),i=n(5),o=n(29);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d,h,f,p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,r,u=l(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"connect",value:function(){var t;document.getElementById("informations").innerHTML=document.getElementById("placeholder").innerHTML,t=this.urlValue,fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":Object(i.a)()}}).then((function(t){return t.json()})).then((function(t){var e=t.data,n=t.config;document.getElementById("informations").outerHTML='<div id="informations"></div>',Object(o.b)(e,n),Object(o.a)()}))}},{key:"openResource",value:function(t){var e=t.currentTarget,n=e.parentElement.parentElement;if("false"!=n.dataset.edit){var r=t.metaKey||t.ctrlKey;e.dataset.url=n.dataset.url,e.dataset.action="click->desktop--actor--navigations#navigate",setTimeout((function(){m(e,r)}),10)}}},{key:"export",value:function(){Tabulator.findTable("#informations")[0].download("xlsx","export_informations.xlsx",{sheetName:"export"})}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Controller);d=p,h="values",f={url:String},(h=c(h))in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f;var m=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new MouseEvent("click",{bubbles:!0,cancelable:!0,ctrlKey:e,metaKey:e});t.dispatchEvent(n)}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"defineVariables",value:function(){this.singular="resource",this.plural="resources"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(40).BaseFilterController);l=d,c=["select","menu","search"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(29);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t=localStorage.getItem("informations_query");this.inputTarget.value=t,this.toggleIcon()}},{key:"query",value:function(){this.toggleIcon(),this.updateFilter(),Object(i.a)()}},{key:"updateFilter",value:function(){var t=this.inputTarget.value;localStorage.setItem("informations_query",t)}},{key:"cleanQuery",value:function(){this.inputTarget.value="",this.toggleIcon(),this.updateFilter(),Object(i.a)()}},{key:"toggleIcon",value:function(){this.inputTarget.value.length>0?this.cleanQueryTarget.classList.remove("invisible"):this.cleanQueryTarget.classList.add("invisible")}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c=f,h=["input","cleanQuery"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"defineVariables",value:function(){this.singular="type",this.plural="types"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(40).BaseFilterController);l=d,c=["select","menu","search"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1);n(4);function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}(this,n)}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(h,e);var n,r,o,c=l(h);function h(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return d(u(t=c.call.apply(c,[this].concat(n))),"recipientInput",document.getElementById("actions_recipient")),t}return n=h,(r=[{key:"openModal",value:function(){var e=document.querySelectorAll(".bulk-select.checked").length,n=this.recipientInput.selectize.getValue();if(n){var r,i=null===(r=this.recipientInput.selectize.getItem(n)[0])||void 0===r?void 0:r.innerText;document.getElementById("modal-sidebar-content").innerHTML=p(e,i),t("#modal-sidebar").modal("show")}else flash(this.translationsValue.missing_employee_message,"alert")}},{key:"confirm",value:function(){var e=this,n=document.querySelectorAll(".bulk-select.checked input"),r=this.recipientInput.selectize.getValue(),o=i(n).map((function(t){return m(t)})),a=this.application.getControllerForElementAndIdentifier(document.getElementById("actions-wrapper"),"desktop--actor--action--reallocations--data"),s=this.application.getControllerForElementAndIdentifier(document.querySelector("[data-controller*='tabulator-bulk-selection']"),"tabulator-bulk-selection");this.confirmButtonTarget.setAttribute("disabled","disabled"),t(this.confirmButtonTarget).html('<div class="spinner"><i class="fad fa-spinner text-white rotating" aria-hidden="true"></i></div>'),r?(App.cable.subscriptions.create({channel:"ReallocateActionsChannel",account_id:this.accountValue,target_actor_id:r},{connected:function(){},received:function(n){t("#modal-sidebar").modal("hide"),flash(e.translationsValue.success,"notice"),n.errors.length>0?flash(n.errors[0].message,"alert"):flash(e.translationsValue.success,"notice"),Tabulator.findTable("#actions")[0],a&&(a.disconnect(),a.connect()),s&&s.uncheckAll()}}),t.ajax({url:this.urlValue,type:"POST",contentType:"application/json",dataType:"json",data:JSON.stringify({employee_id:r,actions:o}),error:function(t){console.log("ERROR",t)},success:function(t){console.log(t)}})):flash(this.translationsValue.missing_employee_message,"alert")}}])&&a(n.prototype,r),o&&a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),h}(r.Controller);d(f,"values",{url:String,translations:Object,account:Number}),d(f,"targets",["confirmButton"]);var p=function(t,e){var n=document.getElementById("reallocation-modal").innerHTML;return n=(n=n.replaceAll("{{actionsCount}}",t)).replaceAll("{{employeeName}}",e)},m=function(t){var e=t.dataset.resourceType.replace("_resource",""),n=e.charAt(0).toUpperCase()+e.slice(1);return{id:t.value,type:n}}}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(1),i=n(76);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){Object(i.a)()}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(5);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"loadDocumentsByDate",value:function(t){var e=t.currentTarget.dataset.date,n=document.getElementById("date-".concat(e)),r=n.querySelector("#documents");r?r.classList.toggle("hidden"):(n.innerHTML=document.getElementById("placeholder").innerHTML,fetch(this.urlValue,{method:"POST",headers:{"X-CSRF-Token":Object(i.a)(),"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({date:e})}).then((function(t){return t.json()})).then((function(t){n.innerHTML=t.content})).catch((function(t){console.log(t)})))}},{key:"loadDocumentCsv",value:function(t){var e=t.currentTarget.dataset.documentId,n=document.getElementById("document-".concat(e));n.querySelector("#csv")||(n.innerHTML=document.getElementById("placeholder").innerHTML,fetch(this.urlValue,{method:"POST",headers:{"X-CSRF-Token":Object(i.a)(),"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({document_id:e})}).then((function(t){return t.json()})).then((function(t){n.innerHTML=t.content})).catch((function(t){console.log(t)})))}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c=f,d="values",h={date:String,url:String},(d=u(d))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1),i=n(5),o=n(11),a=n(84);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(h,e);var n,r,c,d=u(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return n=h,(r=[{key:"connect",value:function(){var t;document.getElementById("form_resources").innerHTML=document.getElementById("placeholder").innerHTML,t=this.urlValue,fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":Object(i.a)()}}).then((function(t){return t.json()})).then((function(t){var e=t.data,n=t.config;document.getElementById("form_resources").outerHTML='<div id="form_resources"></div>',Object(a.a)(e,n)})),this.queryInputTarget.value=localStorage.getItem("form_resources_query")||"",this.toggleIcon()}},{key:"query",value:function(){this.toggleIcon(),this.updateFilter(),Object(o.applyFormResourcesFilters)()}},{key:"cleanQuery",value:function(){this.queryInputTarget.value="",this.toggleIcon(),this.updateFilter(),Object(o.applyFormResourcesFilters)()}},{key:"updateFilter",value:function(){var t=this.queryInputTarget.value;localStorage.setItem("form_resources_query",t)}},{key:"toggleIcon",value:function(){this.queryInputTarget.value.length>0?this.cleanQueryTarget.classList.remove("invisible"):this.cleanQueryTarget.classList.add("invisible")}},{key:"openResource",value:function(e){var n=e.currentTarget.parentElement.parentElement;Tabulator.findTable("#form_resources")[0],t(n).find("[tabulator-field='name'] a")[0].click()}},{key:"export",value:function(){Tabulator.findTable("#form_resources")[0].download("xlsx","export_forms.xlsx",{sheetName:"export"})}}])&&s(n.prototype,r),c&&s(n,c),Object.defineProperty(n,"prototype",{writable:!1}),h}(r.Controller);d(f,"targets",["queryInput","cleanQuery"]),d(f,"values",{url:String})}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.r(e),n.d(e,"default",(function(){return s}));var s=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.updateButton()}},{key:"updateButton",value:function(){var t=document.getElementById("submit-paperwork-resource"),e=this.element.value;["date","text"].includes(e)?t.dataset.action="":t.dataset.action="desktop--actor--navigations#submit"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(5),o=n(11),a=n(9);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(d,t);var e,n,r,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return e=d,(n=[{key:"connect",value:function(){this.displayPlaceholder(),this.buildTabulator()}},{key:"displayPlaceholder",value:function(){this.formsTarget.innerHTML=document.getElementById("placeholder").innerHTML}},{key:"buildTabulator",value:function(){var t=this,e=JSON.parse(localStorage.getItem("forms_sorters")),n=JSON.parse(this.formsTarget.parentElement.dataset.translations),r=JSON.parse(this.formsTarget.parentElement.dataset.paperworks),s=new Tabulator("#forms",{layout:"fitDataFill",langs:{"fr-fr":{}},initialSort:e||[{column:"name",dir:"asc"}],movableColumns:!0,placeholder:Object(a.a)(),height:"100%",rowHeight:60,initialFilter:Object(o.buildInitialFilter)(),filterMode:"remote",sortMode:"remote",paginationMode:"remote",pagination:!0,paginationSize:20,paginationCounter:function(t,e,r,i,o){return"".concat(n.results," ").concat(e," ").concat(n.to," ").concat(e+t-1)},ajaxURL:this.urlValue,ajaxConfig:{method:"POST",headers:{"X-CSRF-Token":Object(i.a)()}},ajaxResponse:function(e,n,r){void 0!==r.count&&Object(a.e)("forms",r.count);var i=t.application.getControllerForElementAndIdentifier(document.querySelector("[data-controller*='tabulator-bulk-selection']"),"tabulator-bulk-selection");return i&&i.uncheckAll(),r},columns:[{field:"bulk_select",vertAlign:"middle",hozAlign:"left",frozen:!0,headerHozAlign:"left",headerSort:!1},{title:n.collaborator,headerSort:!1,width:250,field:"collaborator",frozen:!0,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left"},{field:"recipient_label",visible:!1},{field:"environment_id",visible:!1},{field:"resource_id",visible:!1},{title:n.recipient,headerSort:!1,resizable:!0,minWidth:200,field:"recipient",vertAlign:"middle",hozAlign:"left",headerHozAlign:"left"},{title:n.environment,minWidth:200,resizable:!0,field:"environment",vertAlign:"middle",hozAlign:"left",headerHozAlign:"middle"},{title:n.start_date,minWidth:200,resizable:!0,field:"start_date",vertAlign:"middle",hozAlign:"middle",headerHozAlign:"middle"},{title:n.due_date,minWidth:200,resizable:!0,field:"due_date",vertAlign:"middle",hozAlign:"middle",headerHozAlign:"middle"},{title:n.status,headerSort:!1,minWidth:200,field:"status",vertAlign:"middle",hozAlign:"middle",headerHozAlign:"middle"}].concat(r).concat([{field:"form_actions",vertAlign:"middle",hozAlign:"right",headerHozAlign:"middle",minWidth:380}]),rowFormatter:function(e){var n=e.getData(),i=e.getElement();i.querySelector('[tabulator-field="collaborator"]').classList.add("pointer"),i.querySelector('[tabulator-field="collaborator"]').dataset.controller="tracking",i.querySelector('[tabulator-field="collaborator"]').dataset.action="click->desktop--hr--tracks#select click->tracking#track",i.querySelector('[tabulator-field="collaborator"]').dataset.employeeId=n.employee_id,i.querySelector('[tabulator-field="collaborator"]').dataset.trackId=n.track_id;var o=!document.getElementById("switch-implication")||document.getElementById("switch-implication").checked,a={event:"Get to boardee profil page",status:n.status_key,mobility:n.mobility,employee_id:n.employee_id,implication_scope:o,search:document.getElementById("search_collaborator_input").value},l=i.querySelector('[tabulator-field="collaborator"]');for(var u in a)a.hasOwnProperty(u)&&l.setAttribute("data-tracked-".concat(u),a[u]);i.style='style="display: flex;align-items: center;height: 100%;"',i=t.renderAdditionalColumns(r,i,n),t.renderHtmlFor(i,n,s)}}),l=document.querySelector("html").lang;s.on("dataSorted",(function(t,e){var n=[];t.forEach((function(t){n.push({column:t.column.getField(),dir:t.dir})})),localStorage.setItem("forms_sorters",JSON.stringify(n))})),s.on("tableBuilt",(function(){var t=localStorage.getItem("tabulator-#"+s.element.getAttribute("id"));if(t){var e=JSON.parse(t);s.getColumns().forEach((function(t){var n=t.getField(),r=e[n];r&&0==r.visible&&s.toggleColumn(n)}))}s.setFilter(Object(o.buildInitialFilter)()),Object(a.e)("forms")})),setTimeout((function(){s.setLocale("".concat(l,"-").concat(l)),Object(a.e)("forms")}),100)}},{key:"renderAdditionalColumns",value:function(t,e,n){var r=this;return t.forEach((function(t){var i=t.field.split("-")[1],o=n["papr-id-"+i];if(o){var a=o.split("-")[1],s=e.querySelector('[tabulator-field="'.concat(t.field,'"]'));if(s.classList.add("text-14px"),s.dataset.controller="paperwork tracking",s.dataset.paperworkIdValue=a,s.dataset.paperworkType=n["pap-type-"+a],s.dataset.paperworkStatusValue=n["pap-status-"+a],s.dataset.paperworkFormStatusValue=n.status_key,s.dataset.paperworkTarget="element",s.dataset.locale=r.localeValue,n["pap-type-"+a].includes("file")){s.dataset.action="click->tracking#track click->desktop--actor--analyse--form-resources--forms--sidebar#openSidebar",s.dataset.paperworkFilesCount=n["pap-files-count-"+a];var l={event:"Open file preview",mobility:n.mobility,employee_id:n.employee_id,form_id:n.id,paperwork_id:o,url:window.location.href,referer:document.referrer,event_time:(new Date).toISOString()};for(var u in l)l.hasOwnProperty(u)&&s.setAttribute("data-tracked-".concat(u),l[u])}}else e.querySelector('[tabulator-field="'.concat(t.field,'"]')).style.cursor="not-allowed"})),e}},{key:"renderHtmlFor",value:function(t,e,n){var r={recipient:["recipient_label"],collaborator:["collaborator_full_name","collaborator_mobility","image_url"],environment:["collaborator_environment"],start_date:["start_date"],due_date:["due_date"],status:["status","status_key","hr_status","hr_status_key"],form_actions:["form_approvals","resource_id","status_key","paperworks","followup_date","collaborator_full_name","hr_status_key"],bulk_select:["resource_id"]};Object.keys(r).forEach((function(i){var o=i,s=document.getElementById(o).innerHTML;r[i].forEach((function(t){s=s.replaceAll("{{".concat(t,"}}"),Object(a.c)(e[t]))}));var l=n.getRowPosition(t);s=s.replaceAll("{{row_position}}",Object(a.c)(l));var u=document.querySelector("html").lang;s=s.replaceAll("{{locale}}",u),t.querySelector('[tabulator-field="'.concat(i,'"]')).innerHTML=s}))}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.Controller);d(f,"targets",["forms"]),d(f,"values",{url:String,locale:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"openSidebar",value:function(t){var e=t.currentTarget.dataset.paperworkIdValue;this.loadContent(e),this.sidebarTarget.setAttribute("activated","true")}},{key:"closeSidebar",value:function(){this.sidebarTarget.setAttribute("activated","false"),this.sidebarTarget.innerHTML=""}},{key:"loadContent",value:function(t){var e=this;fetch("".concat(this.urlValue,"?paperwork_id=").concat(t),{method:"GET",headers:{"X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content,"Content-Type":"application/json",Accept:"application/json"}}).then((function(t){return t.json()})).then((function(t){e.sidebarTarget.innerHTML=t.content,e.resizerTarget.addEventListener("mousedown",(function(){document.addEventListener("mousemove",e.resize,!1),document.addEventListener("mouseup",(function(){document.removeEventListener("mousemove",e.resize,!1)}),!1)}))})).catch((function(t){console.log(t)}))}},{key:"resize",value:function(t){document.querySelector("#two-thirds-sidebar").style.width="".concat(window.innerWidth-t.x,"px")}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);s(u,"targets",["sidebar","resizer"]),s(u,"values",{url:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"defineVariables",value:function(){this.singular="resource",this.plural="resources"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(42).BaseFilterController);l=d,c=["select","menu","search"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(11);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t=localStorage.getItem("form_resources_query");this.inputTarget.value=t,this.toggleIcon()}},{key:"query",value:function(){this.toggleIcon(),this.updateFilter(),Object(i.applyFormResourcesFilters)()}},{key:"updateFilter",value:function(){var t=this.inputTarget.value;localStorage.setItem("form_resources_query",t)}},{key:"cleanQuery",value:function(){this.inputTarget.value="",this.query()}},{key:"toggleIcon",value:function(){this.inputTarget.value.length>0?this.cleanQueryTarget.classList.remove("invisible"):this.cleanQueryTarget.classList.add("invisible")}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c=f,h=["input","cleanQuery"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"defineVariables",value:function(){this.singular="type",this.plural="types"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(42).BaseFilterController);l=d,c=["select","menu","search"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(5);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){this.isMouseDown=!1}},{key:"toggle",value:function(){"false"===document.querySelector("#cards-list").dataset.reposition?this.start():this.stop()}},{key:"start",value:function(){this.toggleButtons(),document.querySelector("#cards-list").dataset.reposition="true",document.body.style.cursor="move",document.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mouseup",this.handleMouseup),document.addEventListener("mousemove",this.handleDrag)}},{key:"stop",value:function(){this.toggleButtons(),document.querySelector("#cards-list").dataset.reposition="false",document.body.style.cursor="auto",document.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mouseup",this.handleMouseup),document.removeEventListener("mousemove",this.handleDrag)}},{key:"handleMouseDown",value:function(t){var e=document.querySelector("#cards-list");this.isMouseDown=!0,this.startY=t.clientY,this.startBackgroundPos=parseFloat(getComputedStyle(e).getPropertyValue("background-position-y"))}},{key:"handleMouseup",value:function(t){this.isMouseDown=!1;var e=document.querySelector("#cards-list"),n=parseFloat(getComputedStyle(e).getPropertyValue("background-position-y")),r=e.dataset.bannerType;fetch("/actor/account/banners/"+r,{method:"PATCH",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":Object(i.a)()},body:JSON.stringify({position:n})})}},{key:"handleDrag",value:function(t){var e=document.querySelector("#cards-list");if(this.isMouseDown){var n=(this.startY-t.clientY)/e.offsetHeight*100,r=Math.max(0,Math.min(100,this.startBackgroundPos+n));e.style.backgroundPosition="center "+r+"%"}}},{key:"toggleButtons",value:function(){this.modifyTarget.classList.toggle("d-none"),this.startTarget.classList.toggle("d-none"),this.stopTarget.classList.toggle("d-none")}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c=f,h=["start","stop","modify"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(85);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function o(){return o="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},o.apply(this,arguments)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(h,t);var e,n,r,d=s(h);function h(){var t,e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=d.call.apply(d,[this].concat(o)),e=l(t),r=null,(n=c(n="currentTarget"))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,t}return e=h,(n=[{key:"open",value:function(t){this.currentTarget=t,o(u(h.prototype),"open",this).call(this)}},{key:"openWithContent",value:function(t){var e=this;fetch(t.currentTarget.dataset.url,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((function(t){return t.json()})).then((function(t){document.querySelector('dialog[data-desktop--actor--dialog-target="dialog"]').innerHTML=t.content,e.open()})).catch((function(t){console.log(t)}))}},{key:"closeAndFollowLink",value:function(){o(u(h.prototype),"close",this).call(this),this.currentTarget&&(document.body.dataset["desktop-Actor-SavingsUnsavedChangesValue"]=!1,this.currentTarget.click(),this.currentTarget=null)}}])&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(n.n(r).a)},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return d}));var r=n(27),i=n(5);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}var d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(h,e);var n,a,c,d=u(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return n=h,(a=[{key:"connect",value:function(){new r.a(this.element,{animation:150,filter:".undraggable",ghostClass:"opacity-40",onEnd:function(e){var n=[];o(e.target.children).forEach((function(t,e){var r=t.dataset.id;r&&n.push(r)})),t.ajax({url:"/actor/analyse/chart_assignment_positions",type:"post",headers:{"X-CSRF-Token":Object(i.a)()},data:{chart_assignment:n},dataType:"script"})}})}}])&&s(n.prototype,a),c&&s(n,c),Object.defineProperty(n,"prototype",{writable:!1}),h}(n(1).Controller)}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(1),i=n(11),o=n(50);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,r,u=l(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"connect",value:function(){this.queryInputTarget.value=localStorage.getItem("".concat(this.pageValue,"_query"))||"",this._toggleIcon()}},{key:"query",value:function(){this._toggleIcon(),this._updateFilter(),this._applyFilter()}},{key:"cleanQuery",value:function(){this.queryInputTarget.value="",this._toggleIcon(),this._updateFilter(),this._applyFilter(),window.history.pushState({},"",window.location.search.replace(/query=\w+/,""))}},{key:"_updateFilter",value:function(){localStorage.setItem("".concat(this.pageValue,"_query"),this.queryInputTarget.value)}},{key:"_toggleIcon",value:function(){this.cleanQueryTarget.classList.toggle("invisible",0===this.queryInputTarget.value.length)}},{key:"_applyFilter",value:function(){var t="apply".concat(Object(o.a)(this.pageValue),"Filters");i[t]()}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Controller);c(h,"targets",["queryInput","cleanQuery"]),c(h,"values",{page:String})},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return u}));var u=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){this.analyse()}},{key:"analyse",value:function(){document.getElementById("duplication_template_button").setAttribute("disabled","true"),t.ajax({url:this.urlValue,type:"GET",dataType:"script",data:{employee:{unit_organization_ids:this.inputTarget.value}}})}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);s(u,"targets",["input"]),s(u,"values",{url:String})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1),i=n(5),o=n(9),a=n(11);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(h,e);var n,r,c,d=u(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return n=h,r=[{key:"connect",value:function(){this.displayPlaceholder(),this.buildTabulator({resourcesScoped:this.resourcesScopedValue})}},{key:"displayPlaceholder",value:function(){this.templatesTarget.innerHTML=document.getElementById("placeholder").innerHTML}},{key:"buildTabulator",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resourcesScoped:!1},e=this,n=JSON.parse(localStorage.getItem("templates_sorters")),r=JSON.parse(this.templatesTarget.parentElement.dataset.translations),s=new Tabulator("#templates",{layout:"fitColumns",langs:{"fr-fr":{}},initialSort:n||[{column:"name",dir:"asc"}],movableColumns:!1,placeholder:document.querySelector('[data-code="no_resources_loaded"]').innerHTML,height:"100%",responsiveLayout:"hide",filterMode:"remote",sortMode:"remote",paginationMode:"remote",pagination:!0,paginationSize:20,paginationCounter:function(t,e){var n=e+t-1;return"".concat(e," ").concat(r.on," ").concat(n<0?0:n)},ajaxURL:this.urlValue,ajaxConfig:{method:"POST",headers:{"X-CSRF-Token":Object(i.a)()}},ajaxResponse:function(t,e,n){var r,i;s.totalRows=null!==(r=n.count)&&void 0!==r?r:0;var a=null!==(i=n.count)&&void 0!==i?i:0;return Object(o.e)("templates",a),n},columns:[{field:"id",visible:!1},{field:"url",visible:!1},{field:"destroy_url",visible:!1},{field:"updated_at_value",visible:!1},{field:"remove",visible:!1,cellClick:function(t,e){e.getRow().delete()}},{title:"",field:"bulk",width:16,minWidth:16,maxWidth:16,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:"",field:"photo_url",width:64,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:0},{title:r.name,field:"name",minWidth:200,widthGrow:3,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:0},{title:r.mobility,field:"mobility",width:150,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:2},{title:r.environment,field:"multiple_unit_organizations",visible:t.resourcesScoped,minWidth:150,widthGrow:2,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:1,sorter:o.d},{title:r.edited_at,field:"updated_at",width:150,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:r.ongoing_track,field:"template_assignments_count",width:80,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,sorter:"number"},{title:"",field:"actions",width:65,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:0},{title:"",field:"bulk",width:16,minWidth:16,maxWidth:16,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1}],rowFormatter:function(t){var n=t.getData(),r=t.getElement();e.renderHtmlFor(r,n),r.classList.add("d-flex","align-items-center"),r.setAttribute("data-id",n.id.replace("employee_",""))},downloadConfig:{columnHeaders:!0}});Object(a.applyTemplatesFilters)(),s.environment=t.resourcesScoped;var l=document.querySelector("html").lang;s.on("dataSorted",(function(t,e){var n=[];t.forEach((function(t){n.push({column:t.column.getField(),dir:t.dir})})),localStorage.setItem("templates_sorters",JSON.stringify(n))})),setTimeout((function(){s.setLocale("".concat(l,"-").concat(l)),Object(o.e)("templates",0)}),100)}},{key:"renderHtmlFor",value:function(t,e){var n={photo_url:["photo_url"],name:["name","reference_date_type_label"],mobility:["mobility_label","mobility","mobility_logo"],multiple_unit_organizations:["full_unit_organization_count","unit_organization_name","unit_organization_name","resource_id","resource_type","authorized_scope"],updated_at:["updated_at"],template_assignments_count:["template_assignments_count"],actions:["url","show_url","destroy_url","resource_id","name"]},r=document.querySelector('div[data-controller*="desktop--actor--library--templates--data"]'),i="true"==r.dataset.sharedAuthorization,a="true"==r.dataset.envAuthorization,s=e.unscoped_unit_organization_count,l=0==s,u=0===e.unit_organization_ids.length,c=1===e.unit_organization_ids.length,d=!1;Object.keys(n).forEach((function(r){var h=r;"multiple_unit_organizations"===r?(u||c)&&(h="single_unit_organization"):"actions"===r&&(u&&!i||!u&&!a||!u&&a&&!l?h="actions_no_edit":d=!0);var f=document.querySelector("template#".concat(h)).innerHTML;f=Object(o.b)(f,c,s),n[r].forEach((function(t){f=f.replaceAll("{{".concat(t,"}}"),Object(o.c)(e[t]))})),t.querySelector('[tabulator-field="'.concat(r,'"]')).innerHTML=f})),d&&(t.setAttribute("data-action","click->desktop--actor--library--templates--data#openResource"),t.classList.add("pointer"))}},{key:"openResource",value:function(t){var e=t.currentTarget.querySelector(".menu-tooltip");if(!e||"true"!==e.getAttribute("opened")){var n=t.currentTarget.querySelector("a[open-resource]");t.metaKey||t.ctrlKey?window.open(n.href,"_blank").focus():n.click()}}},{key:"openDuplicationModal",value:function(e){e.preventDefault(),t.ajax({url:e.target.dataset.url,type:"GET",dataType:"script"})}}],r&&s(n.prototype,r),c&&s(n,c),Object.defineProperty(n,"prototype",{writable:!1}),h}(r.Controller);d(f,"targets",["templates"]),d(f,"values",{url:String,resourcesScoped:Boolean})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return m}));var r=n(1),i=n(5);function o(){o=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new M(r||[]);return i(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var k={};c(k,s,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&r.call(O,s)&&(k=O);var x=w.prototype=v.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var l=h(t[i],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,n,r){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(j.prototype),c(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(x),c(x,u,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function a(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){a(o,r,i,s,l,"next",t)}function l(t){a(o,r,i,s,l,"throw",t)}s(void 0)}))}}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,n)}}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var m=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(b,e);var n,r,a,h,p,m=c(b);function b(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return f(d(t=m.call.apply(m,[this].concat(n))),"requestedAt",new Date),t}return n=b,r=[{key:"connect",value:function(){window.addEventListener("popstate",this.popstateHandler.bind(this))}},{key:"disconnect",value:function(){window.removeEventListener("popstate",this.popstateHandler.bind(this))}},{key:"navigate",value:function(e){var n=this;e.preventDefault();var r=e.currentTarget.dataset.url||e.currentTarget.href;if("true"==document.body.dataset["desktop-Actor-SavingsUnsavedChangesValue"])this.application.getControllerForElementAndIdentifier(document.getElementById("actor-interface"),"desktop--actor--dialog").open(e.currentTarget);else if(e.metaKey||e.ctrlKey)window.open(r,"_blank").focus();else{var i=new Date;this.requestedAt=i,t.ajax({url:r,type:"GET",dataType:"html",data:{layout:"false"},success:function(t){n.fillPageContent(t,i),n.updateHistoryUrl(r)}})}}},{key:"submit",value:function(t){t.preventDefault();var e=t.currentTarget.form,n=t.target;"submit"===n.type&&(n.disabled=!0);var r=new Date;this.requestedAt=r,this.submitInsidePageContent(e,n,r)}},{key:"submitInsidePageContent",value:(p=s(o().mark((function t(e,n,r){var a,s,l,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.querySelector("[name='_method']"),s=a&&["put","patch"].includes(a)?"put":"post",(l=new FormData(e)).append("layout",!1),"INPUT"==n.nodeName&&"submit"==n.type&&l.append(n.name,n.value),t.prev=5,t.next=8,fetch(e.action,{method:s,body:l,headers:{"X-CSRF-Token":Object(i.a)()}});case 8:if(!(u=t.sent).ok){t.next=18;break}return t.next=12,u.text();case 12:c=t.sent,this.fillPageContent(c,r),u.redirected&&this.updateHistoryUrl(u.url.replace("layout=false","")),t.next=19;break;case 18:console.error("Erreur de requ\xeate:",u.status);case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(5),console.error("Erreur:",t.t0);case 24:case"end":return t.stop()}}),t,this,[[5,21]])}))),function(t,e,n){return p.apply(this,arguments)})},{key:"change",value:(h=s(o().mark((function e(n){var r,i,a=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.preventDefault(),r=n.target.value,i=new Date,this.requestedAt=i,t.ajax({url:r,type:"GET",dataType:"html",data:{layout:"false"},success:function(t){a.fillPageContent(t,i),a.updateHistoryUrl(r)}});case 5:case"end":return e.stop()}}),e,this)}))),function(t){return h.apply(this,arguments)})},{key:"fillPageContent",value:function(t,e){e==this.requestedAt&&(this.pageContentTarget.innerHTML=t,this.pageContentTarget.scrollIntoView(),v(),g())}},{key:"updateHistoryUrl",value:function(t){window.history.pushState({},"",t)}},{key:"popstateHandler",value:function(e){var n=this;e.preventDefault();var r=new Date;this.requestedAt=r,t.ajax({url:e.currentTarget.location.href,type:"GET",dataType:"html",data:{layout:"false"},success:function(t){n.fillPageContent(t,r)}})}}],r&&l(n.prototype,r),a&&l(n,a),Object.defineProperty(n,"prototype",{writable:!1}),b}(r.Controller);f(m,"targets",["pageContent"]);var g=function(){var t=document.querySelector(".modal-backdrop");t&&t.remove(),b()},b=function(){document.querySelector("body").classList.remove("modal-open")},v=function(){t('[data-toggle="popover"]').popover({container:"body"})}}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(77);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){Object(i.a)(this.dataValue)}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c=f,d="values",h={data:Array},(d=u(d))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(75);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t=document.querySelector("navbar [link=".concat(this.linkTargetValue,"]"));t&&Object(i.markLinkAsActive)(t)}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c=f,d="values",h={linkTarget:String},(d=u(d))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){this.jobValue&&this.load()}},{key:"load",value:function(){this.subcribe(),this.call()}},{key:"call",value:function(){t.ajax({url:this.urlValue,type:"POST",data:{id:this.idValue},dataType:"script"})}},{key:"refresh",value:function(){flash(this.flashValue)}},{key:"subcribe",value:function(){var e=this,n=this.columnDelimiterValue||";",r=2;"socotec_package"==this.codeNameValue||"socotec_package_full"==this.codeNameValue?r=6:"socotec_medical"==this.codeNameValue&&(r=4),App["report_".concat(this.idValue,"_employee_").concat(this.employeeIdValue)]=App.cable.subscriptions.create({channel:"ReportsChannel",report_id:this.idValue,employee_id:this.employeeIdValue},{received:function(i){if(t("#export-file").hasClass("d-none")){var o,a,s=i.data,l=i.colHeaders,u=i.colWidths,c=i.columns,d=document.getElementById("report-table"),h=document.getElementById("export-file");Handsontable.renderers.registerRenderer("darkBackgroundRenderer",darkBackgroundRenderer),Handsontable.renderers.registerRenderer("yellowBackgroundRenderer",yellowBackgroundRenderer),Handsontable.renderers.registerRenderer("negativeValueRenderer",negativeValueRenderer),Handsontable.renderers.registerRenderer("linkRenderer",linkRenderer),Handsontable.renderers.registerRenderer("percentRenderer",percentRenderer),o=new Handsontable(d,{data:s,language:e.language(),width:"100%",height:window.innerHeight-150,rowHeights:35,rowHeaders:!1,fixedRowsTop:0,fixedColumnsLeft:r,columnSorting:!0,dropdownMenu:!0,filters:!0,readOnly:!0,manualColumnResize:!0,licenseKey:"non-commercial-and-evaluation",colHeaders:l,colWidths:u,columns:c}),a=o.getPlugin("exportFile"),h.addEventListener("click",(function(){a.downloadFile("csv",{bom:!0,columnDelimiter:n,columnHeaders:!0,exportHiddenColumns:!0,exportHiddenRows:!0,fileExtension:"csv",filename:"".concat(e.nameValue," [DD]-[MM]-[YYYY]"),mimeType:"text/csv",rowDelimiter:"\r\n",rowHeaders:!1})})),t(".loading").remove(),t("#export-file").removeClass("d-none"),t("#refresh-report").addClass("d-none")}}})}},{key:"language",value:function(){return{en:"en-US",fr:"fr-FR"}[this.languageValue]}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,u="values",c={id:String,employeeId:String,url:String,codeName:String,name:String,columnDelimiter:String,language:String,job:Boolean,flash:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.unsavedChangesValue=!1,window.addEventListener("beforeunload",(function(t){"true"==document.body.dataset["desktop-Actor-SavingsUnsavedChangesValue"]&&(t.preventDefault(),t.returnValue="")}))}},{key:"change",value:function(){this.unsavedChangesValue=!0}},{key:"save",value:function(){this.unsavedChangesValue=!1}},{key:"disconnect",value:function(){this.unsavedChangesValue=!1}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,u="values",c={unsavedChanges:Boolean},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}(this,n)}}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return c}));var c=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(d,e);var n,s,u,c=o(d);function d(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return l(a(t=c.call.apply(c,[this].concat(n))),"dateKey",t.dateValue.replace("_d","D")),t}return n=d,(s=[{key:"openModal",value:function(){this.element.dataset[this.dateKey]!=this.element.value&&(this._loadModalContent(),t("#modal-sidebar").on("hide.bs.modal",this._setOldValue.bind(this)))}},{key:"_loadModalContent",value:function(){var e=new URLSearchParams({date:this.dateValue,old_date_string:this.element.dataset[this.dateKey],new_date_string:this.element.value}),n="".concat(this.urlValue,"?").concat(e);fetch(n,{headers:{Accept:"text/html"}}).then((function(t){return t.text()})).then((function(e){document.getElementById("modal-sidebar-content").innerHTML=e,t("#modal-sidebar").modal("show")})).catch((function(t){console.log(t)}))}},{key:"_setOldValue",value:function(){this.element.value=this.element.dataset[this.dateKey],t("#modal-sidebar").off("hide.bs.modal",this._setOldValue.bind(this))}}])&&r(n.prototype,s),u&&r(n,u),Object.defineProperty(n,"prototype",{writable:!1}),d}(n(1).Controller);l(c,"values",{url:String,date:String})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return w}));var r=n(1),i=n(64),o=(n(139),n(86)),a=n(87),s=n(88),l=n.n(s),u=n(74),c=n(43);function d(){d=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new M(r||[]);return i(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var k={};u(k,a,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&r.call(O,a)&&(k=O);var x=w.prototype=v.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var l=h(t[i],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,n,r){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:y,configurable:!0}),y.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(j.prototype),u(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(x),u(x,l,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function h(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){h(o,r,i,a,s,"next",t)}function s(t){h(o,r,i,a,s,"throw",t)}a(void 0)}))}}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,y(r.key),r)}}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b(t);if(e){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function v(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}i.a.register(o.a),i.a.register(l.a);var w=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(b,e);var n,r,o,s,l,h=g(b);function b(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),h.apply(this,arguments)}return n=b,r=[{key:"connect",value:(l=f(d().mark((function t(){var e;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getData(this.urlValue);case 2:e=t.sent,document.querySelector(".track-number").innerText=e.triggered_tracks_count,Object(c.handleDisplay)(e,this);case 5:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"draw",value:function(t){this.element.setAttribute("loading",!1),this.chart=new i.a(this.canvasTarget,{type:this.getType(),data:t,plugins:this.getPlugins(),options:this.getOptions()}),t.title&&(this.element.parentElement.querySelector("#chart-title").innerHTML=t.title)}},{key:"getType",value:function(){return u.b[this.codeNameValue]}},{key:"getData",value:(s=f(d().mark((function e(n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.element.setAttribute("loading",!0),e.next=3,t.ajax({url:n,type:"POST",dataType:"json"});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(t){return s.apply(this,arguments)})},{key:"getPlugins",value:function(){return"trackHorizontalBars"===this.codeNameValue?[a.a]:[]}},{key:"getOptions",value:function(){return u.a[this.codeNameValue]}}],r&&p(n.prototype,r),o&&p(n,o),Object.defineProperty(n,"prototype",{writable:!1}),b}(r.Controller);v(w,"targets",["canvas"]),v(w,"values",{codeName:String,url:String})}.call(this,n(4))},function(t,e,n){"use strict";var r=n(23),i=n.n(r),o=n(15);const a={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};o.g._date.override("function"===typeof i.a?{_id:"moment",formats:function(){return a},parse:function(t,e){return"string"===typeof t&&"string"===typeof e?t=i()(t,e):t instanceof i.a||(t=i()(t)),t.isValid()?t.valueOf():null},format:function(t,e){return i()(t).format(e)},add:function(t,e,n){return i()(t).add(e,n).valueOf()},diff:function(t,e,n){return i()(t).diff(i()(e),n)},startOf:function(t,e,n){return t=i()(t),"isoWeek"===e?(n=Math.trunc(Math.min(Math.max(0,n),6)),t.isoWeekday(n).startOf("day").valueOf()):t.startOf(e).valueOf()},endOf:function(t,e){return i()(t).endOf(e).valueOf()}}:{})},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r={"./fr":81,"./fr-ca":82,"./fr-ca.js":82,"./fr-ch":83,"./fr-ch.js":83,"./fr.js":81};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=141},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.r(e),n.d(e,"default",(function(){return l}));var s,l=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"delayRequest",value:function(t){var e=event.currentTarget;c(e)&&!d(e)&&u(1e3)}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(70).default),u=function(t){var e=Stimulus.controllers.find((function(t){return t.element.dataset.controller.includes("desktop--hr--chart-filters")}));window.clearTimeout(s),s=window.setTimeout((function(){e.refreshCharts()}),t)},c=function(t){var e=document.getElementById("mobilities-menu"),n=document.getElementById("organizations-menu"),r=document.getElementById("templates-menu");return e&&e.contains(t)||n&&n.contains(t)||r&&r.contains(t)},d=function(t){return t.getAttribute("data-action").includes("#selectAll")||t.getAttribute("data-action").includes("#removeAll")}},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return d}));var r=n(1),i=n(43);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,l,u=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,(r=[{key:"connect",value:function(){this.clickHandler=function(t){if(!document.querySelector('div[data-controller="desktop--hr--charts--email-feedbacks"]').contains(t.target)){var e=document.getElementById("email-feedback-menu");e.classList.remove("menu-opened"),e.classList.add("menu-closed")}},document.addEventListener("click",this.clickHandler)}},{key:"disconnect",value:function(){document.removeEventListener("click",this.clickHandler)}},{key:"select",value:function(e){var n=this,r=e.currentTarget.value;document.getElementById("email-feedback-name").innerText=e.currentTarget.previousElementSibling.innerText;var o=Stimulus.controllers.filter((function(t){return t.chart})).find((function(t){return t.chart.canvas.parentNode.attributes["data-desktop--hr--chart-url-value"].value.match("feedback_vertical_bars")}));o.element.setAttribute("loading",!0),t.ajax({url:this.urlValue,type:"POST",data:{filters:JSON.parse(document.querySelector("div[data-desktop--hr--chart-filters-filters-value]").dataset["desktop-Hr-ChartFiltersFiltersValue"]),email_feedback:r},dataType:"json"}).then((function(t){n.toggleMenu(),Object(i.handleDisplay)(t,o)}))}},{key:"toggleMenu",value:function(){var t=document.getElementById("email-feedback-menu");t.classList.contains("menu-opened")?(t.classList.remove("menu-opened"),t.classList.add("menu-closed")):(t.classList.remove("menu-closed"),t.classList.add("menu-opened"))}}])&&o(n.prototype,r),l&&o(n,l),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.Controller);u(d,"targets",["input"]),u(d,"values",{url:String})}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.r(e),n.d(e,"default",(function(){return s}));var s=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"openSidebar",value:function(){var t=document.querySelector("div[data-controller*='desktop--hr--charts--sidebar']"),e=document.querySelector("html").lang;t.setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n      {\n        "email_category": "all",\n        "url": "/'.concat(e,'/actor/analyse/email_feedbacks"\n      }\n    ')),document.getElementById("trigger-sidebar").click()}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller)},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return u}));var u=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){this.clickHandler=function(t){if(!document.querySelector('div[data-controller="desktop--hr--charts--level-organizations"]').contains(t.target)){var e=document.getElementById("level-organization-menu");e.classList.remove("menu-opened"),e.classList.add("menu-closed")}},document.addEventListener("click",this.clickHandler)}},{key:"disconnect",value:function(){document.removeEventListener("click",this.clickHandler)}},{key:"select",value:function(e){var n=this,r=e.currentTarget.value;document.getElementById("level-organization-name").innerText=e.currentTarget.previousElementSibling.innerText,t.ajax({url:this.urlValue,type:"POST",data:{filters:JSON.parse(document.querySelector("div[data-desktop--hr--chart-filters-filters-value]").dataset["desktop-Hr-ChartFiltersFiltersValue"]),level_organization_id:r},dataType:"json"}).then((function(t){n.toggleMenu();var e=Stimulus.controllers.filter((function(t){return t.chart})).find((function(t){return t.chart.canvas.parentNode.attributes["data-desktop--hr--chart-url-value"].value.match("track_horizontal_bars")}));e.chart.destroy(),e.draw(t)}))}},{key:"toggleMenu",value:function(){var t=document.getElementById("level-organization-menu");t.classList.contains("menu-opened")?(t.classList.remove("menu-opened"),t.classList.add("menu-closed")):(t.classList.remove("menu-closed"),t.classList.add("menu-opened"))}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);s(u,"targets",["input"]),s(u,"values",{url:String})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return d}));var r=n(1),i=n(5);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,l,u=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,(r=[{key:"loadContent",value:function(){this.clearOldModals(),this.addNewModal()}},{key:"replaceContent",value:function(e){var n=this;t.ajax({url:e.currentTarget.dataset.url,type:"GET",dataType:"html",success:function(t){n.fillContent(t)}})}},{key:"clearOldModals",value:function(){document.querySelectorAll("div[modal]").forEach((function(t){t.remove()}))}},{key:"addNewModal",value:function(){var e=this;this.openValue||(this.openValue=!0,this.hasUrlValue?t.ajax({url:this.urlValue,method:this.setMethod(),data:{modal_layout:!0},headers:{"X-CSRF-Token":Object(i.a)()},dataType:"html",success:function(t){e.append(t),e.setHideCallback(),e.show()},error:function(){window.location.reload()}}):console.error("You need to pass a url to fetch the remote content"))}},{key:"setMethod",value:function(){return(this.methodValue||"get").toUpperCase()}},{key:"append",value:function(t){var e=document.createElement("div");e.innerHTML=t,e.childNodes.forEach((function(t){document.querySelector("[modal-wrapper]").appendChild(t)}))}},{key:"show",value:function(){t("div[modal]").modal("show")}},{key:"setHideCallback",value:function(){t("div[modal]").on("hide.bs.modal",this.hideCallback.bind(this))}},{key:"hideCallback",value:function(){var e=t("div[modal]")[0].dataset.hideCallback;e&&window[e]instanceof Function&&window[e](),this.openValue=!1}},{key:"fillContent",value:function(t){this.contentTarget.outerHTML=t}}])&&o(n.prototype,r),l&&o(n,l),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.Controller);u(d,"targets",["content"]),u(d,"values",{url:String,method:String,layout:String,open:Boolean})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return h}));var r=n(1),i=n(5),o=n(34);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var h=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(d,e);var n,r,u,c=l(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(r=[{key:"showSidebar",value:function(){this.setPlaceholder(),this.loadContent(),this.displaySidebar()}},{key:"setPlaceholder",value:function(){this.sidebarTarget.innerHTML=document.getElementById("placeholder-sidebar").innerHTML}},{key:"loadContent",value:function(){var e=this;t.ajax({url:this.graphValue.url,type:"post",data:{filters:JSON.parse(document.querySelector("[data-desktop--hr--chart-filters-filters-value]").dataset["desktop-Hr-ChartFiltersFiltersValue"]),graph:this.graphValue},dataType:"json"}).then((function(t){e.sidebarTarget.innerHTML=t.content,t.is_empty&&(document.getElementById("tracks").innerHTML=document.getElementById("graph-blank-state").innerHTML,document.getElementById("tracks").classList.add("d-flex","justify-content-center","margin-top-30px"),document.getElementById("download_csv").remove())}))}},{key:"displaySidebar",value:function(){"false"==this.sidebarTarget.getAttribute("activated")&&(this.sidebarTarget.setAttribute("activated","true"),document.body.classList.add("overflow-hidden"),f())}},{key:"hideSidebar",value:function(){var t=document.getElementById("hr-sidebar");"true"==this.sidebarTarget.getAttribute("activated")&&(this.sidebarTarget.setAttribute("activated","false"),Object(o.a)(),document.querySelector('.large-sidebar-backdrop[data-action="click->desktop--hr--charts--sidebar#hideSidebar"]').remove(),t&&t.setAttribute("activated","false"))}},{key:"setControllerValues",value:function(t){var e=t.currentTarget.dataset;this.element.setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n      { "url": "'.concat(e.url,'",\n        "pil": "').concat(e.timing,'" }\n    ')),this.showSidebar()}},{key:"downloadCsv",value:function(t){var e=t.currentTarget;e.setAttribute("disabled","true"),fetch(e.dataset.url,{headers:{"X-CSRF-Token":Object(i.a)(),"Content-Type":"application/json"},method:"post",referrerPolicy:"no-referrer",body:JSON.stringify({filters:JSON.parse(document.querySelector("[data-desktop--hr--chart-filters-filters-value]").dataset["desktop-Hr-ChartFiltersFiltersValue"]),graph:this.graphValue}),dataType:"html"}).then((function(t){return t.blob()})).then((function(t){var e=document.createElement("a");e.setAttribute("download","export_"+Date.now()+".csv");var n=URL.createObjectURL(t);e.href=n,e.setAttribute("target","_blank"),e.click(),URL.revokeObjectURL(n)}))}}])&&a(n.prototype,r),u&&a(n,u),Object.defineProperty(n,"prototype",{writable:!1}),d}(r.Controller);c(h,"targets",["sidebar"]),c(h,"values",{graph:Object});var f=function(){var t=document.createElement("div");t.classList.add("large-sidebar-backdrop"),t.setAttribute("data-action","click->desktop--hr--charts--sidebar#hideSidebar"),document.querySelector('div[data-controller*="desktop--hr--charts--sidebar"]').appendChild(t)}}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"search",value:function(t){var e=t.currentTarget.value,n=this.surveyTargets;n.forEach((function(t){return t.classList.remove("d-none")}));var r=n.map((function(t){return t.innerText})),i=[];r.forEach((function(t,r){t.toLowerCase().includes(e.toLowerCase())||i.push(n[r])})),i.forEach((function(t){return t.classList.add("d-none")}))}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["survey"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"openSidebar",value:function(){var t=document.querySelector("div[data-controller*='desktop--hr--charts--sidebar']"),e=document.querySelector("html").lang;t.setAttribute("data-desktop--hr--charts--sidebar-graph-value",'\n      {\n        "survey_type": "survey_line",\n        "survey_question_resource_id": '.concat(this.surveyQuestionResourceIdValue,',\n        "url": "/').concat(e,'/actor/analyse/surveys"\n      }\n    ')),document.getElementById("trigger-sidebar").click()}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,u="values",c={surveyQuestionResourceId:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return p}));var r=n(1),i=n(34),o=n(41);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d,h,f,p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,r,u=l(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"show",value:function(){this.loadSidebarContent(),this.displaySidebar()}},{key:"loadSidebarContent",value:function(){var t=Object(o.defineBackupTab)(this.statusValue),e=document.getElementById("template-sidebar-content").innerHTML,n={"{{{trackId}}}":this.trackIdValue,"{{{employeeId}}}":this.employeeIdValue,"{{{mobility}}}":this.mobilityValue,"{{{status}}}":this.statusValue,"{{{alertActivated}}}":Object(o.isAlertTab)(null,t),"{{{administrativeActivated}}}":Object(o.isAdministrativeTab)(null,t),"{{{feedbacksActivated}}}":Object(o.isFeedbackTab)(null,t),"{{{actionsActivated}}}":Object(o.isActionTab)(null,t),"{{{featFeedback}}}":this.featFeedbackValue};document.getElementById("hr-sidebar").innerHTML=Object(i.b)(e,n)}},{key:"displaySidebar",value:function(){var t=document.getElementById("hr-sidebar");"false"==t.getAttribute("activated")&&t.setAttribute("activated","true")}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Controller);d=p,h="values",f={trackId:String,employeeId:String,mobility:String,status:String,featFeedback:Boolean},(h=c(h))in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(26),i=n(8);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"filter",value:function(t){Object(i.displayPlaceholder)(),p(t.currentTarget.dataset.filterType),Object(i.filterRequest)();var e=document.querySelector(".advanced-filter-icon");this.selectTarget.classList.add("active"),e.classList.add("fa-times"),e.classList.remove("fa-chevron-up","fa-chevron-down"),e.parentElement.setAttribute("data-action","click->desktop--hr--filters--advanced-filter#resetFilter")}},{key:"resetFilter",value:function(){var t=document.querySelector(".advanced-filter-icon");this.selectTarget.classList.remove("active"),t.classList.add("fa-chevron-down"),t.classList.remove("fa-times"),p(""),Object(i.filterRequest)(),this.menuTarget.querySelectorAll('input[name="advanced"]').forEach((function(t){return t.checked=!1})),this.toggleMenu()}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.BaseFilterController);c=f,h=["select","menu"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h;var p=function(t){var e=Object(i.getFilters)();e.smart_filter=t,document.getElementById("filters").dataset.filters=JSON.stringify(e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return p}));var r=n(26),i=n(8),o=n(66);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d,h,f,p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,r,u=l(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"connect",value:function(){Object(o.a)()}},{key:"filter",value:function(t){var e;document.getElementById("definedDaysFrom").value="",document.getElementById("definedDaysTo").value="",this.filters=Object(i.getFilters)(),t.target===this.followingDaysTarget?e=m(31,new Date):t.target===this.previousDaysTarget&&(e=m(31,new Date((new Date).setDate((new Date).getDate()-30)))),this.filters.column_filters.date=e,this.setFilters("date",e),this.applyFilters(),Object(i.refreshTabulator)(),this.toggleButtonActive(),Object(i.setPagesNumber)(),Object(i.updateTracksCount)()}},{key:"toggleCalendar",value:function(){this.fromTarget.click()}},{key:"setRange",value:function(){if(this.filters=Object(i.getFilters)(),""!=this.fromTarget.value&&""!=this.toTarget.value){this.definedDaysTarget.checked=!0;var t=m((new Date(this.toTarget.dataset.dateFormat)-new Date(this.fromTarget.dataset.dateFormat))/864e5+1,new Date(this.fromTarget.dataset.dateFormat));this.filters.column_filters.date=t,this.setFilters("date",t),this.applyFilters(),this.toggleButtonActive(),Object(i.setPagesNumber)(),Object(i.updateTracksCount)()}}},{key:"resetFilter",value:function(){[this.followingDaysTarget,this.previousDaysTarget,this.definedDaysTarget].forEach((function(t){return t.checked=!1})),[this.fromTarget,this.toTarget].forEach((function(t){return t.value=""})),this.setFilters("date",[]),this.applyFilters(),this.toggleButtonActive(),Object(i.setPagesNumber)(),Object(i.updateTracksCount)()}},{key:"column",value:function(){return"date"}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.BaseFilterController);function m(t,e){for(var n=e.setDate(e.getDate()),r=[],i=0;i<t;i++){var o=moment(new Date(n)).format("YYYY-MM-DD");r.push(o),n+=864e5}return r}d=p,f=["select","menu","followingDays","previousDays","definedDays","from","to"],(h=c(h="targets"))in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"controller",value:function(){return"Mobility"}},{key:"column",value:function(){return"mobility"}},{key:"htmlTarget",value:function(){return"mobility"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(26).BaseFilterController);l=d,c=["select","menu","onboarding","crossboarding","offboarding"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return f}));var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,i,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"controller",value:function(){return"Organization"}},{key:"column",value:function(){return"organization_ids"}},{key:"htmlTarget",value:function(){return"organization"}},{key:"search",value:function(){var t=this.searchTarget.value,e=r(document.querySelectorAll(".organization"));e.forEach((function(t){return function(t){t.classList.remove("d-none"),t.classList.add("d-flex")}(t)}));var n=e.map((function(t){return t.firstElementChild.innerText})),i=[];n.forEach((function(n,r){n.toLowerCase().includes(t.toLowerCase())||i.push(e[r])})),i.forEach((function(t){return function(t){t.classList.remove("d-flex"),t.classList.add("d-none")}(t)})),this.selectTarget.parentElement.style.height=this.selectTarget.offsetHeight+this.selectTarget.nextElementSibling.offsetHeight+"px"}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(26).BaseFilterController);c=f,h=["select","menu","search"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(26),i=n(8);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){Object(i.getFilters)().implication_scope&&!this.switchTarget.checked&&this.updateScope()}},{key:"updateScope",value:function(t){if(t){var e=t.currentTarget.checked,n=Object(i.getFilters)();n.implication_scope=e,document.getElementById("filters").dataset.filters=JSON.stringify(n),Object(i.delayRequestFor)("tracksDelay","small")}}},{key:"updateScopeFromBlankState",value:function(){var t=document.querySelector(".switch-input");t.checked&&t.click()}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.BaseFilterController);c=f,h=["switch"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(1),i=n(8);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d={alert:["alertPending","alertDisengaged"],paperwork:["paperworkToValidate","paperworkCompleted","paperworkUncompleted"],feedback:["feedbackLowPulse","feedbackHighPulse","feedbackCompletedSurvey"],action:["actionToDo"]},h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){Object(i.resetColumnFilters)(),Object(i.displayPlaceholder)(),Object(i.filterRequest)()}},{key:"filter",value:function(t){var e=t.currentTarget.dataset["desktop-Hr-Filters-SmartFiltersTarget"],n=t.currentTarget.classList.contains("active");n&&!f(e)||(n?this.desactivate(e):this.activate(e))}},{key:"desactivate",value:function(t){Object(i.cleanFiltersColors)(),Object(i.cleanPagination)(),f(t)?this["".concat(t,"Target")].classList.remove("active"):(this["".concat(t,"Target")].classList.remove("active"),document.querySelectorAll(".subfilter-category").forEach((function(t){return Object(i.hide)(t)}))),Object(i.hideCategoryFilters)(),this.setFilters("smart_filter",""),Object(i.delayRequestFor)("tracksDelay","medium")}},{key:"activate",value:function(t){var e;if(Object(i.cleanFiltersColors)(),Object(i.cleanPagination)(),f(t)){var n=this.defineSubfilter(t);n.classList.toggle("active"),e=n.dataset["desktop-Hr-Filters-SmartFiltersTarget"],this["".concat(t,"Target")].classList.toggle("active"),Object(i.displayCategoryFilters)(t)}else e=t,this["".concat(t,"Target")].classList.toggle("active"),this.defineSmartFilter(t).classList.toggle("active");this.setFilters("smart_filter",e),Object(i.delayRequestFor)("tracksDelay","medium")}},{key:"query",value:function(){var t=this.queryTarget.value;""!=t?this.cleanQueryTarget.classList.remove("invisible"):this.cleanQueryTarget.classList.add("invisible"),this.setFilters("query",t),Object(i.delayRequestFor)("tracksDelay","medium")}},{key:"cleanQuery",value:function(){this.queryTarget.value="",this.query()}},{key:"setFilters",value:function(t,e){var n=Object(i.getFilters)();n[t]=e,document.getElementById("filters").dataset.filters=JSON.stringify(n)}},{key:"defineSubfilter",value:function(t){var e=d[t][0];return this["".concat(e,"Target")]}},{key:"defineSmartFilter",value:function(t){var e=Object.keys(d).find((function(e){return t.includes(e)}));return this["".concat(e,"Target")]}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);function f(t){return Object.keys(d).includes(t)}u(h,"targets",["alert","paperwork","feedback","action","alertPending","alertDisengaged","paperworkToValidate","paperworkCompleted","paperworkUncompleted","feedbackLowPulse","feedbackHighPulse","feedbackCompletedSurvey","actionToDo","query","cleanQuery"]),u(h,"values",{url:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"controller",value:function(){return"Status"}},{key:"column",value:function(){return"status"}},{key:"htmlTarget",value:function(){return"status"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(26).BaseFilterController);l=d,c=["select","menu","building","pending_invitation","in_progress","upcoming_invitation"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(){r=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new M(r||[]);return o(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var k={};c(k,s,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&i.call(O,s)&&(k=O);var x=w.prototype=v.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(r,o,a,s){var l=h(t[r],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}})}function S(e,n,r){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(j.prototype),c(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(x),c(x,u,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function i(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,l,"next",t)}function l(t){i(a,r,o,s,l,"throw",t)}s(void 0)}))}}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return h}));var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(h,t);var e,n,i,u,c,d=l(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return e=h,n=[{key:"connect",value:function(){this.connectValue&&this.load()}},{key:"changeTab",value:function(t){t.preventDefault(),this.currentTab().setAttribute("active","false"),t.currentTarget.setAttribute("active","true"),this.load()}},{key:"load",value:(c=o(r().mark((function t(){var e,n,i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.currentTab().dataset.url,t.next=3,fetch(e);case 3:return n=t.sent,t.next=6,n.text();case 6:i=t.sent,this.contentTarget.innerHTML=i;case 8:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"currentTab",value:function(){var t;return this.tabTargets.forEach((function(e){"true"==e.getAttribute("active")&&(t=e)})),t}},{key:"openLargeSidebar",value:(u=o(r().mark((function t(e){var n,i,o,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=document.getElementById("large-sidebar")).setAttribute("activated","true"),f(),i=e.currentTarget.dataset.url,t.next=6,fetch(i);case 6:return o=t.sent,t.next=9,o.text();case 9:a=t.sent,n.innerHTML=a,document.body.classList.add("overflow-hidden");case 13:case"end":return t.stop()}}),t)}))),function(t){return u.apply(this,arguments)})}],n&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),h}(n(1).Controller);c(h,"targets",["tab","content"]),c(h,"values",{connect:Boolean});var f=function(){var t=document.createElement("div");t.classList.add("large-sidebar-backdrop"),t.setAttribute("data-action","click->desktop--hr--sidebars#hideSidebars"),document.querySelector('div[data-controller*="desktop--hr--sidebars"]').appendChild(t)}},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return g}));var r=n(1),i=n(5),o=n(89),a=n(91),s=n(33);function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f,p,m,g=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(f,e);var n,r,d,h=c(f);function f(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),h.apply(this,arguments)}return n=f,(r=[{key:"connect",value:function(){t(this.element).on("show.bs.modal",this.fetch.bind(this)),t(this.element).on("hide.bs.modal",this.hideCallback)}},{key:"replaceContent",value:function(t){var e=t.currentTarget.dataset.url,n=this.setMethod(t.currentTarget.dataset.method).toUpperCase();this.load(e,n)}},{key:"load",value:function(e,n){var r=this;t.ajax({url:e,method:n,headers:{"X-CSRF-Token":Object(i.a)()},dataType:"html",success:function(t){r.fill_content(t)},error:function(){window.location.reload()}})}},{key:"fetch",value:function(e){var n=this;if(e.relatedTarget){this.addSpinner();var r=e.relatedTarget.dataset.url;r&&t.ajax({url:r,dataType:"html",success:function(t){n.fill_content(t)},error:function(){window.location.reload()}})}}},{key:"addSpinner",value:function(){this.fill_content('<div class="text-center h-100 d-flex align-items-center justify-content-center"><i class="fad fa-spinner text-gray text-40px rotating"></i><div>')}},{key:"fill_content",value:function(t){this.contentTarget.innerHTML=t;var e=document.getElementById("modal-sidebar-content");document.querySelector('iframe[title="scorm"]')&&Object(s.connectScorm)(e)}},{key:"setMethod",value:function(t){return(t||"get").toUpperCase()}},{key:"hideCallback",value:function(){"administrative"==Object(o.a)()&&Object(a.a)()}}])&&l(n.prototype,r),d&&l(n,d),Object.defineProperty(n,"prototype",{writable:!1}),f}(r.Controller);f=g,m=["content"],(p=h(p="targets"))in f?Object.defineProperty(f,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[p]=m}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t=this.element.dataset.target;this.modalContent=document.querySelector("".concat(t," #content"))}},{key:"fill",value:function(){this.modalContent.innerHTML=this.templateTarget.innerHTML}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["template"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(1),i=n(34);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t=this;this.bodyTarget.addEventListener("click",(function(e){!t.clickOnRow(e)&&t.sidebarIsActivated()&&t.hideSidebar()})),this.trackIdValue&&this.openSidebar()}},{key:"openSidebar",value:function(){var t=this.templateTarget.innerHTML,e={"{{{trackId}}}":this.trackIdValue,"{{{employeeId}}}":this.employeeIdValue,"{{{mobility}}}":this.mobilityValue,"{{{alertActivated}}}":"alert"===this.tabValue,"{{{administrativeActivated}}}":"administrative"===this.tabValue,"{{{feedbacksActivated}}}":"feedbacks"===this.tabValue,"{{{actionsActivated}}}":"actions"===this.tabValue};this.sidebarTarget.innerHTML=Object(i.b)(t,e),this.sidebarTarget.setAttribute("activated","true")}},{key:"hideSidebar",value:function(){this.deactivateLine(),document.getElementById("hr-sidebar").setAttribute("activated","false")}},{key:"hideLargeSidebar",value:function(){document.querySelector('.large-sidebar-backdrop[data-action="click->desktop--hr--sidebars#hideSidebars"]').remove(),document.getElementById("large-sidebar").setAttribute("activated","false"),Object(i.a)()}},{key:"hideSidebars",value:function(){this.hideSidebar(),this.hideLargeSidebar()}},{key:"deactivateLine",value:function(){var t=document.querySelector(".tabulator-row.active");t&&(t.classList.remove("active"),this.removeAvatarBorder(t))}},{key:"removeAvatarBorder",value:function(t){var e=t.dataset.mobility,n=t.querySelector(".avatar-small.border-".concat(e));n&&n.classList.remove("border-".concat(e))}},{key:"clickOnRow",value:function(t){var e;return(t.path||t.composedPath&&t.composedPath()).forEach((function(t){if(t.classList&&t.classList.contains("tabulator-row"))return e=!0})),e}},{key:"sidebarIsActivated",value:function(){return"true"==document.getElementById("hr-sidebar").getAttribute("activated")}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);u(d,"targets",["body","sidebar","template"]),u(d,"values",{trackId:String,employeeId:String,mobility:String,tab:String})},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return u}));var u=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){this.call("ongoing")}},{key:"toggleHistory",value:function(t){this.call(t.currentTarget.checked?"ongoing":"done")}},{key:"call",value:function(e){var n=this;t.ajax({url:"".concat(this.urlValue,"?list_type=").concat(e),dataType:"html",success:function(t){n.element.innerHTML=t},error:function(){window.location.reload()}})}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);s(u,"values",{url:String}),s(u,"targets",["actions"])}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1),i=n(5);function o(){o=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new M(r||[]);return i(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var k={};c(k,s,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&r.call(O,s)&&(k=O);var x=w.prototype=v.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var l=h(t[i],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,n,r){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(j.prototype),c(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(x),c(x,u,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function a(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(p,e);var n,r,c,d,h,f=u(p);function p(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return n=p,r=[{key:"connect",value:function(){this.toggleBlankState()}},{key:"markAsDelivered",value:function(t){t.preventDefault(),this.replaceLine("PATCH"),this.toggleBlankState()}},{key:"markAsDone",value:function(t){t.preventDefault(),this.addSpinner(),this.replaceLine("PATCH"),this.toggleBlankState()}},{key:"undo",value:function(t){t.preventDefault(),this.replaceLine("DELETE"),this.toggleBlankState()}},{key:"replaceLine",value:(d=o().mark((function e(n){var r,a,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.urlValue,{method:n,headers:{"X-CSRF-Token":Object(i.a)()}});case 2:return r=e.sent,e.next=5,r.text();case 5:a=e.sent,(s=t(this.element)).fadeOut(400,(function(){s.replaceWith(t(a))}));case 8:case"end":return e.stop()}}),e,this)})),h=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=d.apply(t,e);function o(t){a(i,n,r,o,s,"next",t)}function s(t){a(i,n,r,o,s,"throw",t)}o(void 0)}))},function(t){return h.apply(this,arguments)})},{key:"addSpinner",value:function(){var t=this.buttonTarget;t&&(t.innerHTML='<div class="text-center"><i class="fad fa-spinner text-gray text-40px rotating"></i><div>')}},{key:"showBlankState",value:function(){var t=document.querySelector("div[data-element=empty-list]")||document.querySelector("#empty-list");t&&(t.classList.add("d-flex"),t.classList.remove("d-none"))}},{key:"hideBlankState",value:function(){var t=document.querySelector("div[data-element=empty-list]")||document.querySelector("#empty-list");t&&(t.classList.add("d-none"),t.classList.remove("d-flex"))}},{key:"toggleBlankState",value:function(){document.querySelectorAll("[data-controller=desktop--hr--tabs--action-lists] [done=false]").length>=1?this.hideBlankState():this.showBlankState()}}],r&&s(n.prototype,r),c&&s(n,c),Object.defineProperty(n,"prototype",{writable:!1}),p}(r.Controller);d(f,"targets",["button"]),d(f,"values",{url:String})}.call(this,n(4))},function(t,e,n){"use strict";function r(){r=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new M(r||[]);return o(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var k={};c(k,s,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&i.call(O,s)&&(k=O);var x=w.prototype=v.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(r,o,a,s){var l=h(t[r],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}})}function S(e,n,r){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(j.prototype),c(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(x),c(x,u,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function i(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(h,t);var e,n,l,u,c,d=s(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return e=h,n=[{key:"connect",value:function(){}},{key:"click",value:(u=r().mark((function t(){var e,n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.clickedValue){t.next=2;break}return t.abrupt("return");case 2:return this.clickedValue=!0,t.next=5,fetch(this.urlValue);case 5:return e=t.sent,t.next=8,e.json();case 8:n=t.sent,this.contentTarget.innerHTML=n.administrativeProgress;case 10:case"end":return t.stop()}}),t,this)})),c=function(){var t=this,e=arguments;return new Promise((function(n,r){var o=u.apply(t,e);function a(t){i(o,n,r,a,s,"next",t)}function s(t){i(o,n,r,a,s,"throw",t)}a(void 0)}))},function(){return c.apply(this,arguments)})}],n&&o(e.prototype,n),l&&o(e,l),Object.defineProperty(e,"prototype",{writable:!1}),h}(n(1).Controller);u(d,"targets",["content"]),u(d,"values",{url:String,clicked:Boolean})},function(t,e,n){"use strict";function r(){r=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new M(r||[]);return o(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var k={};c(k,s,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&i.call(O,s)&&(k=O);var x=w.prototype=v.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(r,o,a,s){var l=h(t[r],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}})}function S(e,n,r){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(j.prototype),c(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(x),c(x,u,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function i(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(h,t);var e,n,l,u,c,d=s(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return e=h,n=[{key:"connect",value:(u=r().mark((function t(){var e,n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(this.urlValue);case 2:return e=t.sent,t.next=5,e.json();case 5:n=t.sent,this.load(n);case 7:case"end":return t.stop()}}),t,this)})),c=function(){var t=this,e=arguments;return new Promise((function(n,r){var o=u.apply(t,e);function a(t){i(o,n,r,a,s,"next",t)}function s(t){i(o,n,r,a,s,"throw",t)}a(void 0)}))},function(){return c.apply(this,arguments)})},{key:"load",value:function(t){var e=this;t.map((function(t){var n=e.templateTarget.innerHTML;Object.keys(t).forEach((function(e){return n=n.replaceAll("{{{".concat(e,"}}}"),t[e]||"")})),e.contentTarget.insertAdjacentHTML("beforeend",n)}))}}],n&&o(e.prototype,n),l&&o(e,l),Object.defineProperty(e,"prototype",{writable:!1}),h}(n(1).Controller);u(d,"targets",["template","content"]),u(d,"values",{url:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d})),n.d(e,"addTabParamToUrl",(function(){return h}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.load()}},{key:"select",value:function(t){var e=t.currentTarget;localStorage.setItem("sidebar_tab",e.dataset.type),h(e.dataset.type),this.changeSelectedAttributes(e),this.load()}},{key:"load",value:function(){var t=this.selectedTab(),e=this.templateTargets.filter((function(e){return e.getAttribute("data-tab")==t.dataset.type}))[0];this.contentTarget.innerHTML=e.innerHTML}},{key:"changeSelectedAttributes",value:function(t){this.tabTargets.forEach((function(t){t.setAttribute("selected","false")})),t.setAttribute("selected","true")}},{key:"selectedTab",value:function(){return this.tabTargets.filter((function(t){return"true"==t.getAttribute("selected")}))[0]}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["tab","content","template"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c;var h=function(t){var e=new URLSearchParams(window.location.search);if(window.location.href.includes("actor/tracks")&&e.get("track_id")&&e.get("tab")!=t){var n=new URL(window.location);n.searchParams.set("tab",t||"alert"),window.history.pushState({},"",n)}}},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(44),i=n(32);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(d,e);var n,r,o,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(r=[{key:"connect",value:function(){t(this.element).selectize(this.config()),this.setRecipients()}},{key:"loadOptions",value:function(e,n){t.ajax({url:this.urlValue,type:"GET",dataType:"json",data:{query:e,resource_type:this.resourceTypeValue,resource_id:this.resourceIdValue,email_as_value:!0},error:function(){n()},success:function(t){n(t)}})}},{key:"config",value:function(){var e=this,n=a(a({},this.basicConfig()),{},{create:!0,createOnBlur:!0,maxItems:null,createFilter:this.createFilter.bind(this),valueField:"email",labelField:"label",searchField:["id","first_last","last_name","email"],render:{option:function(t,e){return'<div style="padding: 6px 15px;">'+e(t.label)+"</div>"}},onDropdownOpen:function(t){t[0].querySelector(".selectize-dropdown-content .create")&&t[0].remove()},onChange:function(t){var e=document.getElementById("mailing_resource_track_invitation");if(e&&e.checked){var n=this.items;if(n.length>1){var r=n[0];this.removeItem(r)}}}});return"MailingResource"==this.resourceTypeValue||"Workflow"==this.resourceTypeValue?n:"Mailing"==this.resourceTypeValue?a(a({},n),{},{onBlur:function(){t(e.element).form().submit()}}):void 0}},{key:"setRecipients",value:function(){var t=this.element.selectize,e=t.getValue(),n=JSON.parse(this.labelsValue),r=n.map((function(t){return t.email}));e&&t.removeOption(e),r[0]&&(t.addOption(n),t.setValue(r))}},{key:"createFilter",value:function(t){var e=document.querySelector('[name="mailing_resource[delivery]"]')||document.querySelector('[name="mailing[delivery]"]');return e&&"sms"==e.value?i.b.test(t):i.a.test(t)}}])&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),d}(r.default);d(f,"values",{url:String,resourceType:String,resourceId:String,labels:String})}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t=this;this.increaseEndTime(),setTimeout((function(){t.increaseEndDate()}),10)}},{key:"increaseEndTime",value:function(){var t=this;this.startTimeTarget.onchange=function(){var e=t.startTimeTarget.value,n=moment(e,t.timeFormatValue).toDate(),r=n;r.setHours(n.getHours()+1);var i=moment(r).format(t.timeFormatValue);t.endTimeTarget.value=i}}},{key:"increaseEndDate",value:function(){var t=this;this.startDayTarget.onchange=function(){var e=t.startDayTarget.value;t.endDayTarget.value=e}}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);s(u,"targets",["startTime","endTime","startDay","endDay"]),s(u,"values",{dateFormat:String,timeFormat:String})},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"toggleAssignment",value:function(e){var n=this.resourceTarget.dataset.resourceId,r=this.resourceTarget.dataset.resourceName,i=e.target.id,o=e.target.checked,a={url:o?"/settings/shared_resources":"/settings/shared_resources/".concat(n),method:o?"POST":"DELETE"};t.ajax({url:a.url,type:a.method,dataType:"script",data:{id:n,name:r,mobility:i}})}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,c=["resource"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"toggleActions",value:function(t){this.updateText(),this.listTarget.classList.toggle("d-none"),h(t)}},{key:"updateText",value:function(){this.displayActionsTextTarget.classList.toggle("d-none"),this.hideActionsTextTarget.classList.toggle("d-none")}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["displayActionsText","hideActionsText","list"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c;var h=function(t){var e=t.currentTarget.querySelector("i"),n=e.className.includes("down")?"up":"down";e.className=e.className.replace(/down|up/,n)}},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return u}));var u=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){this.observer=new MutationObserver(this.displayBlankStateOrNextActions.bind(this)),this.observer.observe(this.listTarget,{childList:!0}),this.openInitialModal()}},{key:"displayBlankStateOrNextActions",value:function(t){var e=this;this.isListEmpty()?this.showBlankState():t.forEach((function(t){var n=t.type,r=t.removedNodes;"offboarding"!==e.mobilityValue&&"childList"===n&&r.length>=1&&e.nextActions({actions_count:1})}))}},{key:"showBlankState",value:function(){this.blankStateTarget.classList.remove("d-none"),this.blankStateTarget.classList.add("d-flex"),"offboarding"===this.mobilityValue&&this.hasFuturListTarget&&(this.futurListTarget.classList.remove("d-none"),this.futurListTarget.classList.add("d-flex"))}},{key:"nextActions",value:function(e){var n=e.actions_count;t.ajax({url:this.urlValue,type:"GET",dataType:"script",data:{actions_count:n,iterate_count:this.iterateCount()}})}},{key:"isListEmpty",value:function(){return 0===this.listTarget.childElementCount}},{key:"iterateCount",value:function(){return this.listTarget.dataset.iteration||1}},{key:"disconnect",value:function(){this.observer.disconnect()}},{key:"openInitialModal",value:function(){var t=document.querySelector("#initial-action");t&&Stimulus.controllers.find((function(e){return e.context.element===t&&"desktop--onboardee--modal"===e.context.identifier})).call()}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);s(u,"targets",["blankState","list","futurList"]),s(u,"values",{url:String,mobility:String})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return v}));var r=n(1),i=n(2),o=n(73),a=n(38),s=n(47),l=n(48),u=n.n(l);function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var m,g,b,v=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(p,e);var n,r,l,f=h(p);function p(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return n=p,(r=[{key:"connect",value:function(){this.initializeCalendar(),this.markAsDone()}},{key:"initializeCalendar",value:function(){var e=this.localeValue,n=this.startDateValue,r=this.endDateValue,l=this.apiUrlValue,c=this.clickUrlValue;new i.a(this.element,{locales:u.a,locale:e,plugins:[a.d,o.a,s.a],header:{left:"listCustom,timeGridWeek,dayGridMonth",center:"title",right:"prev,next "},views:{listCustom:{type:"list",visibleRange:{start:n,end:r}}},events:l,eventLimit:4,eventLimitClick:"day",defaultDate:n,allDaySlot:!1,slotDuration:"00:30:00",minTime:"07:00:00",maxTime:"20:00:00",nowIndicator:!0,defaultView:"listCustom",eventRender:function(t){t.el.id="meeting-"+t.event.id,t.el.classList.add("event-meeting")},eventClick:function(e){var n=e.el.id.match(/\d+/)[0];t.ajax({url:c.replace("meetingID",n),type:"GET"})}}).render(),this.cleanUpCalendarDisplay()}},{key:"markAsDone",value:function(){this.hasMarkAsDoneUrlValue&&t.ajax({url:this.markAsDoneUrlValue,type:"POST",dataType:"script",data:{iterate_count:y()}}),this.cleanUpCalendarDisplay()}},{key:"cleanUpCalendarDisplay",value:function(){var t=document.querySelector(".fc-button-active");if(t&&t.classList.contains("fc-listCustom-button")){var e=document.querySelector(".fc-prev-button"),n=document.querySelector(".fc-next-button");e.classList.add("d-none"),n.classList.add("d-none")}}}])&&c(n.prototype,r),l&&c(n,l),Object.defineProperty(n,"prototype",{writable:!1}),p}(r.Controller);function y(){return document.querySelector("div[data-iteration]")?document.querySelector("div[data-iteration]").dataset.iteration:1}m=v,g="values",b={locale:String,startDate:String,endDate:String,apiUrl:String,clickUrl:String,markAsDoneUrl:String},(g=p(g))in m?Object.defineProperty(m,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[g]=b}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(5);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t=this;new Yousign({signatureLink:this.signatureLinkValue,iframeContainerId:"esign-iframe",isSandbox:this.sandboxValue}).onSuccess((function(e){var n=e.signer_id,r=document.getElementById("yousign-iframe"),i=document.getElementById("signed");t.markAsSigned(n),r&&r.remove(),i.classList.replace("d-none","d-flex")}))}},{key:"markAsSigned",value:function(t){var e=this;fetch("/esign_signers/"+t+"/sign",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":Object(i.a)()}}).then((function(){var t=document.querySelector("#line-workflow-"+e.workflowIdValue);document.querySelectorAll(".close-button").forEach((function(e){e.addEventListener("click",(function(){window.updateBoardeeActions(t)}))}))})).catch((function(t){console.log(t)}))}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c=f,d="values",h={workflowId:Number,signatureLink:String,sandbox:Boolean},(d=u(d))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return p}));var r=n(1),i=n(5),o=n(33);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d,h,f,p=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(d,e);var n,r,u,c=l(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(r=[{key:"call",value:function(){this.clearOldModals(),this.addNewModal()}},{key:"clearOldModals",value:function(){document.querySelectorAll("div[modal]").forEach((function(t){t.remove()}))}},{key:"addNewModal",value:function(){var e=this;this.openValue||(this.openValue=!0,this.hasUrlValue?t.ajax({url:this.urlValue,method:this.setMethod(),data:{modal_layout:!0},headers:{"X-CSRF-Token":Object(i.a)()},dataType:"html",success:function(t){e.append(t),e.setHideCallback(),e.show();var n=document.getElementById("modal-full");document.querySelector('iframe[title="scorm"]')&&Object(o.connectScorm)(n)},error:function(){window.location.reload()}}):console.error("You need to pass a url to fetch the remote content"))}},{key:"setMethod",value:function(){return(this.methodValue||"get").toUpperCase()}},{key:"append",value:function(t){var e=document.createElement("div");e.innerHTML=t,e.childNodes.forEach((function(t){document.querySelector("[modal-wrapper]").appendChild(t)}))}},{key:"show",value:function(){t("div[modal]").modal("show"),document.querySelectorAll("div[data-controller='asks']").forEach((function(t){t.dataset.controller="asks-disabled"}))}},{key:"setHideCallback",value:function(){t("div[modal]").on("hide.bs.modal",this.hideCallback.bind(this))}},{key:"hideCallback",value:function(){var e=t("div[modal]")[0].dataset.hideCallback;e&&window[e]instanceof Function&&window[e](),this.openValue=!1,document.querySelectorAll("div[data-controller='asks-disabled']").forEach((function(t){t.dataset.controller="asks"}))}}])&&a(n.prototype,r),u&&a(n,u),Object.defineProperty(n,"prototype",{writable:!1}),d}(r.Controller);d=p,h="values",f={url:String,method:String,layout:String,open:Boolean},(h=c(h))in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return p}));var r=n(1),i=n(5),o=n(33);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d,h,f,p=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(d,e);var n,r,u,c=l(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(r=[{key:"call",value:function(t){t&&t.preventDefault(),this.clearOldModals(),this.addNewModal()}},{key:"clearOldModals",value:function(){document.querySelectorAll("div[modal]").forEach((function(t){t.remove()}))}},{key:"addNewModal",value:function(){var e=this;this.openValue||(this.openValue=!0,this.hasUrlValue?t.ajax({url:this.urlValue,method:this.setMethod(),data:{modal_layout:!0},headers:{"X-CSRF-Token":Object(i.a)()},dataType:"html",success:function(t){e.append(t),e.setHideCallback(),e.show();var n=document.getElementById("modal-full");document.querySelector('iframe[title="scorm"]')&&Object(o.connectScorm)(n)},error:function(){window.location.reload()}}):console.error("You need to pass a url to fetch the remote content"))}},{key:"setMethod",value:function(){return(this.methodValue||"get").toUpperCase()}},{key:"append",value:function(t){var e=document.createElement("div");e.innerHTML=t,e.childNodes.forEach((function(t){document.querySelector("[modal-wrapper]").appendChild(t)}))}},{key:"show",value:function(){t("div[modal]").modal("show"),document.querySelectorAll("div[data-controller='asks']").forEach((function(t){t.dataset.controller="asks-disabled"}))}},{key:"setHideCallback",value:function(){t("div[modal]").on("hide.bs.modal",this.hideCallback.bind(this))}},{key:"hideCallback",value:function(){var e=t("div[modal]")[0].dataset.hideCallback;e&&window[e]instanceof Function&&window[e](),this.openValue=!1,document.querySelectorAll("div[data-controller='asks-disabled']").forEach((function(t){t.dataset.controller="asks"}))}}])&&a(n.prototype,r),u&&a(n,u),Object.defineProperty(n,"prototype",{writable:!1}),d}(r.Controller);d=p,h="values",f={url:String,method:String,layout:String,open:Boolean},(h=c(h))in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(5);function o(){o=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new M(r||[]);return i(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var k={};c(k,s,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&r.call(O,s)&&(k=O);var x=w.prototype=v.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var l=h(t[i],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,n,r){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(j.prototype),c(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(x),c(x,u,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function a(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(f,t);var e,n,r,c,d,h=u(f);function f(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),h.apply(this,arguments)}return e=f,n=[{key:"call",value:function(t){var e=this;t&&t.preventDefault(),this.element.dataset.done||(this.addPerformingStatus(),this.performRequest().then((function(t){e.removePerformingStatus(),e.markAsDone(),e.removeAction()})))}},{key:"performRequest",value:(c=o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:fetch(this.urlValue,{method:this.methodValue,headers:{"X-CSRF-Token":Object(i.a)(),"Content-Type":"application/json",Accept:"application/json"}}).then((function(t){return t.json()}));case 1:case"end":return t.stop()}}),t,this)})),d=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=c.apply(t,e);function o(t){a(i,n,r,o,s,"next",t)}function s(t){a(i,n,r,o,s,"throw",t)}o(void 0)}))},function(){return d.apply(this,arguments)})},{key:"addPerformingStatus",value:function(){this.element.dataset.performing=!0}},{key:"removePerformingStatus",value:function(){delete this.element.dataset.performing}},{key:"markAsDone",value:function(){var t=this.element.querySelector(".action-handler");t.style.minWidth=t.offsetWidth+"px",this.element.dataset.done=!0,this.actionTriggerPhraseTarget.remove()}},{key:"removeAction",value:function(){window.updateBoardeeActions(this.element)}}],n&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(r.Controller);d(f,"targets",["actionTriggerPhrase"]),d(f,"values",{url:String,method:String})},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return m}));var r=n(1),i=n(5);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var m=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(h,e);var n,r,s,l=d(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),l.apply(this,arguments)}return n=h,(r=[{key:"start",value:function(t){var e=t.currentTarget.dataset.url;fetch(e,{method:"PATCH",headers:{"X-CSRF-Token":Object(i.a)(),"Content-Type":"application/json"},body:JSON.stringify({start:!0})}),this.next()}},{key:"next",value:function(){this.indexValue+=1,this.updateHeader()}},{key:"previous",value:function(){this.indexValue-=1,this.updateHeader()}},{key:"updateHeader",value:function(){var t=document.querySelector(".normal-header"),e=document.querySelector(".minimal-header");this.indexValue>=2&&t&&e&&(t.classList.add("d-none"),e.classList.remove("d-none"))}},{key:"finish",value:function(e){var n=this;e.preventDefault();var r=e.currentTarget.dataset.url;this.addSpinner(),fetch(r,{method:"PATCH",headers:{"X-CSRF-Token":Object(i.a)(),Accept:"application/json"}}).then((function(t){return t.json()})).then((function(e){var r=e.content,i=e.quiz_id,o=e.success,a=e.quiz_line,s=e.is_track_offboarding;n.fillContent(r),o&&(document.getElementById("boardee-interface")?t("#modal-full").on("hidden.bs.modal",(function(){var e=document.getElementById("line-quiz-".concat(i));updateBoardeeActions(e),t("#modal-full").off("hidden.bs.modal")})):(n.removeAction(i),s&&document.querySelector("#action-list div[data-desktop--offboardee--actions-target='list']").insertAdjacentHTML("beforeend",a)),setTimeout((function(){document.querySelector(".quiz-result").removeAttribute("hidden")}),200))}))}},{key:"removeAction",value:function(t){var e=document.getElementById("line-quiz-".concat(t));if(e){var n=e.closest(".timeline-section");n&&1===n.querySelectorAll(".user-action").length&&n.remove(),e.remove()}}},{key:"select",value:function(t){var e=t.currentTarget.closest("form");fetch(e.action,{method:"PATCH",body:new FormData(e)})}},{key:"addSpinner",value:function(){this.fillContent('<div class="d-flex justify-content-center align-items-center margin-top-130px"><i class="fad fa-spinner text-gray text-40px rotating"></i><div>')}},{key:"fillContent",value:function(t){this.element.innerHTML=t}},{key:"indexValueChanged",value:function(){var t=this;this.panelTargets.forEach((function(e,n){e.hidden=n+1!=t.indexValue,document.querySelector("#trick").scrollIntoView(!0),t.markQuestionAsViewed(e,n+1),e.hasAttribute("hidden")||"linked"!=e.dataset.questionType||Stimulus.controllers.filter((function(t){return"desktop--onboardee--linked-questions"==t.identifier}))[0].drawExistingAnswers(e.id)}))}},{key:"refresh",value:function(){this.indexValue=2,a(document.querySelectorAll("#results .d-none")).forEach((function(t){return t.classList.remove("d-none")})),a(document.querySelectorAll("input[type=checkbox]")).forEach((function(t){return t.checked=!1}));var t=JSON.parse(document.getElementById("state").dataset.state);Object.entries(t).forEach((function(t){var e=o(t,2),n=(e[0],e[1]);Object.entries(n.answers).forEach((function(t){var e=o(t,2),n=(e[0],e[1]);n.answer_twin_id=null,n.selected=!1}))})),g(),document.getElementById("state").dataset.state=JSON.stringify(t)}},{key:"markQuestionAsViewed",value:function(t,e){var n=t.dataset["desktop-Onboardee-RankingQuestionsViewedValue"];e==this.indexValue&&n&&"false"==n&&(t.dataset["desktop-Onboardee-RankingQuestionsViewedValue"]="true")}}])&&u(n.prototype,r),s&&u(n,s),Object.defineProperty(n,"prototype",{writable:!1}),h}(r.Controller);f(m,"targets",["panel"]),f(m,"values",{index:Number});var g=function(){document.querySelectorAll(".first-bullet svg").forEach((function(t){return t.remove()})),document.querySelectorAll(".first-bullet, .second-bullet").forEach((function(t){t.classList.remove("selected"),t.classList.add("invisible")})),a(document.querySelectorAll('div[data-action="click->desktop--settings--templates--quiz-linked-question#unselectAnswers"]')).forEach((function(t){return t.setAttribute("data-action","click->desktop--settings--templates--quiz-linked-question#selectAnswer")}))}}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1),i=n(27);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(d,e);var n,r,a,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(r=[{key:"connect",value:function(){var t=this;new i.a(this.listTarget,{animation:150,ghostClass:"blue-background-class",onEnd:function(e){t.updatePositions()}}),this.submitOnConnectValue&&this.submit()}},{key:"updatePositions",value:function(){o(this.listTarget.children).filter((function(t){return"DIV"==t.tagName&&"none"!=t.style.display})).forEach((function(t,e){var n=e+1;t.querySelector("[data-position]").innerText=n,t.querySelector("[name*=position]")&&(t.querySelector("[name*=position]").value=n)})),this.submit()}},{key:"viewedValueChanged",value:function(){this.viewedValue&&this.submit()}},{key:"submit",value:function(){var e=this.element.querySelector("form");e&&t(e).submit()}}])&&s(n.prototype,r),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),d}(r.Controller);d(f,"targets",["list"]),d(f,"values",{viewed:Boolean,submitOnConnect:Boolean})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){var e=this;Dropzone.autoDiscover=!1;var n=new Dropzone(this.element,{paramName:"translate_email_template[photo]",acceptedFiles:this.acceptedExtensionsValue,maxFilesize:10});n.on("queuecomplete",(function(n){t.ajax({url:"".concat(e.element.action,"?drop=").concat(r),type:"PATCH"})}));var r="";n.on("error",(function(t,e,n){return r="error"})),n.on("success",(function(t,e,n){return r="success"}))}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,u="values",c={acceptedExtensions:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t=this;this.updateForm(),this._makeDeliveryOptionsClickable(),setTimeout((function(){t.updateRecipientsWrapper()}),500)}},{key:"updateForm",value:function(){var t=this;this._updateInputs(),this._updateRadioButtons(),setTimeout((function(){t.updateRecipientsWrapper()}),500)}},{key:"updateRecipientsWrapper",value:function(){var t=this.checkboxTarget,e=this.recipientsTarget.selectize,n=document.querySelectorAll('[data-category="call_to_actions"]')[0];if(t.checked&&"secured_page"!=this._mailing_resource_delivery()){this.recipientLabelTarget.innerText=this.recipientsLabelSingularValue,e.settings.placeholder=this.recipientsPlaceholderSingularValue,e.updatePlaceholder(),n.classList.remove("d-none");var r=e.items;if(r.length>1){var i=r[0];e.removeItem(i)}}else this.recipientLabelTarget.innerText=this.recipientsLabelPluralValue,e.settings.placeholder=this.recipientsPlaceholderPluralValue,e.updatePlaceholder(),n.classList.add("d-none");var o=new Event("trix-change",{bubbles:!0});this.bodyTarget.dispatchEvent(o)}},{key:"_makeDeliveryOptionsClickable",value:function(){document.querySelectorAll(".mailing_resource_delivery .radio").forEach((function(t){t.addEventListener("click",(function(){t.querySelector("input").click()}))}))}},{key:"_mailing_resource_delivery",value:function(){var t=this.deliveryTargets.find((function(t){return t.checked}))||this.deliveryTarget;if(t)return t.value}},{key:"_updateInputs",value:function(){var t=this._mailing_resource_delivery();if(t)switch(t){case"sms":this._displaySmsOptions();break;case"email":this._displayEmailOptions();break;case"secured_page":this._displaySecuredPageOptions()}}},{key:"_displaySmsOptions",value:function(){var t=document.getElementById("new-mailing-resource-preview-button");t&&d(t),this.hasSubjectTarget&&d(this.subjectTarget),this.hasAttachmentsTarget&&d(this.attachmentsTarget),this.hasPhotoTarget&&d(this.photoTarget),this.hasPreviewButtonTarget&&d(this.previewButtonTarget),this.hasBodyTarget&&this.hasAttachmentsTarget&&(d(this.attachmentsTarget),this.bodyWrapperTarget.setAttribute("delivery","sms"),this.bodyTarget.removeAttribute("disabled")),this.hasAdvancedWrapperTarget&&c(this.advancedWrapperTarget)}},{key:"_displayEmailOptions",value:function(){var t=document.getElementById("new-mailing-resource-preview-button");t&&d(t),this.hasSubjectTarget&&(c(this.subjectTarget),this.subjectTarget.querySelector("label").innerText=this.emailSubjectLabelValue,this.subjectTarget.querySelector("input").setAttribute("placeholder",this.emailSubjectPlaceholderValue)),this.hasAttachmentsTarget&&c(this.attachmentsTarget),this.hasPhotoTarget&&c(this.photoTarget),this.bodyWrapperTarget.setAttribute("delivery","email"),this.bodyTarget.setAttribute("disabled",!0),this.hasAdvancedWrapperTarget&&c(this.advancedWrapperTarget)}},{key:"_displaySecuredPageOptions",value:function(){var t=document.getElementById("new-mailing-resource-preview-button");t&&c(t),this.hasSubjectTarget&&(c(this.subjectTarget),this.subjectTarget.querySelector("label").innerText=this.securedPageSubjectLabelValue,this.subjectTarget.querySelector("input").setAttribute("placeholder",this.securedPageSubjectPlaceholderValue)),this.hasAttachmentsTarget&&d(this.attachmentsTarget),this.hasPhotoTarget&&c(this.photoTarget),this.bodyWrapperTarget.setAttribute("delivery","secured_page"),this.bodyTarget.setAttribute("disabled",!0),this.hasAdvancedWrapperTarget&&d(this.advancedWrapperTarget),this.checkboxTarget.checked&&this.checkboxTarget.click()}},{key:"_updateRadioButtons",value:function(){this.deliveryTargets.forEach((function(t){var e=t.nextElementSibling;if(e){var n=e.querySelector(".checked_radio_button"),r=e.querySelector(".not_checked_radio_button");t.checked?(n.classList.remove("d-none"),r.classList.add("d-none")):(n.classList.add("d-none"),r.classList.remove("d-none"))}}))}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);s(u,"targets",["delivery","subject","photo","attachments","body","bodyWrapper","advancedWrapper","recipients","recipientLabel","checkbox"]),s(u,"values",{emailSubjectLabel:String,securedPageSubjectLabel:String,emailSubjectPlaceholder:String,securedPageSubjectPlaceholder:String,recipientsPlaceholderSingular:String,recipientsPlaceholderPlural:String,recipientsLabelSingular:String,recipientsLabelPlural:String});var c=function(t){t.classList.remove("d-none")},d=function(t){t.classList.add("d-none")}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t=this.inputTarget,e=this.fileLabelTarget,n=this.fileRowTarget,r=this.previewImageTarget,i=this.fileSizeLimitTarget;t.click(),t.addEventListener("change",(function(o){e.innerText="";var a=t.files[0],s=parseInt(i.dataset.value);if(n.classList.remove("d-none"),n.classList.add("d-flex"),a)if(a.size<=s){e.innerText=a.name;var l=new FileReader;l.onload=function(){r.src=l.result},l.readAsDataURL(a)}else e.innerHTML=i.dataset.translationKey,r.src="",t.value="";else r.src=""}))}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["input","fileRow","fileLabel","previewImage","fileSizeLimit"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"openPreviewInNewTab",value:function(){var t=this.formTarget,e=new FormData(t);if(e.set("mailing_resource[subject]",this.subjectTarget.value),e.set("mailing_resource[rich_body]",this.bodyTarget.value),this.photoTarget.files[0])e.set("mailing_resource[photo]",this.photoTarget.files[0]);else{var n=document.getElementById("mailing-resource-uploaded-photo").src;n.includes("settings/mailing_resource")||e.set("mailing_resource[photo_url]",n)}fetch(t.action,{method:"POST",body:e,headers:{Accept:"text/html"}}).then((function(t){return t.text()})).then((function(t){var e=window.open();e.document.open(),e.document.write(t),e.document.close()})).catch((function(t){return console.error("Error:",t)}))}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["form","subject","body","photo"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"updateTitle",value:function(t){this.titleTarget.innerText=t.target.value}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["title"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t="".concat(this.urlValue,"/").concat(this.idValue,"/edit");window.history.pushState({},"",t)}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,u="values",c={url:String,id:Number},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",(function(){return _default}));var _hotwired_stimulus__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),utils_csrf_token__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5);function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_toPropertyKey(r.key),r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _inherits(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,r=_getPrototypeOf(t);if(e){var i=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"===typeof e?e:String(e)}function _toPrimitive(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var _default=function(_Controller){_inherits(_default,_Controller);var _super=_createSuper(_default);function _default(){return _classCallCheck(this,_default),_super.apply(this,arguments)}return _createClass(_default,[{key:"connect",value:function(){this.updateVariablesBreakdown()}},{key:"updateVariablesBreakdown",value:function updateVariablesBreakdown(){var subjectContent=this.hasSubjectTarget?this.subjectTarget.value:"",bodyContent=this.bodyTarget.value;fetch("/settings/mailing_resources/update_variables_breakdown",{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":Object(utils_csrf_token__WEBPACK_IMPORTED_MODULE_1__.a)()},body:JSON.stringify({subject:subjectContent,body:bodyContent,options:{track_invitation:document.getElementById("mailing_resource_track_invitation").checked}})}).then((function(t){return t.text()})).then((function(script){return eval(script)})).catch((function(t){console.error("There was a problem with the fetch operation:",t)}))}}]),_default}(_hotwired_stimulus__WEBPACK_IMPORTED_MODULE_0__.Controller);_defineProperty(_default,"targets",["subject","body"])},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,i,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"change",value:function(){var t=this.typeSelectorTarget.value;this.typeValue=t,"ranking"!=t&&this.resetCorrectInput(),this.displayDescription(t)}},{key:"resetCorrectInput",value:function(){r(this.listTarget.children).filter((function(t){return"DIV"==t.tagName})).forEach((function(t){t.querySelector(".switch-input").checked=!1}))}},{key:"displayDescription",value:function(t){this.descriptionTargets.forEach((function(t){return t.classList.add("d-none")})),this["".concat(t,"DescriptionTarget")].classList.remove("d-none")}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(1).Controller);u(d,"targets",["typeSelector","list","answers","description","selectionDescription","rankingDescription","linkedDescription"]),u(d,"values",{type:String})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return m}));var r=n(1),i=n(27);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var h,f,p,m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(c,t);var e,n,r,a=u(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"connect",value:function(){var t=this;new i.a(this.listTarget,{animation:150,ghostClass:"blue-background-class",onEnd:function(e){t.updatePositions()}}),this.updatePositions()}},{key:"addAssociation",value:function(t){t.preventDefault();var e=this.templateTarget.innerHTML.replace(/TEMPLATE_RECORD/g,(new Date).valueOf());this.listTarget.insertAdjacentHTML("beforeend",e),this.updatePositions()}},{key:"removeAssociation",value:function(t){t.preventDefault();var e=t.target.closest("[data-desktop--desktop--settings--question-resources--nested-answers=item]");e.querySelector("input[name*='_destroy']").value=1,e.style.display="none",e.classList.remove("d-flex"),this.updatePositions()}},{key:"updatePositions",value:function(){o(this.listTarget.children).filter((function(t){return"DIV"==t.tagName&&"none"!=t.style.display})).forEach((function(t,e){var n=e+1;t.querySelector("[data-position]").innerText="".concat(n,"."),t.querySelector("[name*=position]").value=n}))}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Controller);h=m,p=["addItem","template","list","items"],(f=d(f="targets"))in h?Object.defineProperty(h,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[f]=p},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(67);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){Object(i.b)(this.answerTypeValue,"true"==this.initEditValue)}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c=f,d="values",h={answerType:String,initEdit:String},(d=u(d))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"openSidebar",value:function(){this.smallSidebarTarget.setAttribute("activated","true"),h()}},{key:"closeSidebar",value:function(){this.smallSidebarTarget.setAttribute("activated","false"),document.querySelector(".small-sidebar-backdrop").remove()}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["smallSidebar"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c;var h=function(){var t=document.createElement("div");t.classList.add("small-sidebar-backdrop"),t.setAttribute("data-action","click->desktop--settings--resources--creation-sidebar#closeSidebar"),document.querySelector('div[data-controller*="desktop--settings--resources--creation-sidebar"]').appendChild(t)}},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1),i=n(13);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(c,e);var n,r,i,a=u(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return n=c,(r=[{key:"update",value:function(t){var e=this;t.preventDefault(),this.displaySpinner();var n=this.mobilityTargets.filter((function(t){return t.checked})).map((function(t){return t.value})),r=JSON.parse(this.elementsTarget.dataset.data),i=this.hasUnitOrganizationsTarget?this.unitOrganizationsTarget.value.trim():null;fetch("".concat(this.urlValue,"/").concat(r[0].id),{method:"PUT",headers:p(),body:JSON.stringify({mobilities:n,training_resource:{unit_organization_ids:i},elements:r})}).then((function(t){return t.json()})).then((function(t){e.refreshResourcesAndClean(t.flash_message)})).catch((function(t){console.log(t)}))}},{key:"destroy",value:function(t){var e=this;t.preventDefault(),this.displaySpinner();var n=JSON.parse(this.elementsTarget.dataset.data);fetch("".concat(this.urlValue,"/").concat(n[0].id),{method:"DELETE",headers:p(),body:JSON.stringify({elements:n})}).then((function(t){return t.json()})).then((function(t){e.refreshResourcesAndClean(t.flash_message)})).catch((function(t){console.log(t)}))}},{key:"refreshResourcesAndClean",value:function(e){var n=this;Stimulus.controllers.find((function(t){return"desktop--settings--resources--resources"==t.identifier})).connect(),m(),t("#modal-edit-resources").modal("hide"),t("#modal-edit-resources").on("hidden.bs.modal",(function(){n.buttonTargets.forEach((function(t){return t.classList.remove("d-none")})),n.spinnerTarget.classList.add("d-none")})),flash(e,"notice"),Stimulus.controllers.find((function(t){return"desktop--settings--resources--creation-sidebar"==t.identifier})).closeSidebar(),this.elementsTarget.dataset.data="",o(document.querySelectorAll("#file-dropzone .dz-preview")).forEach((function(t){return t.remove()})),document.querySelector("#file-dropzone").classList.remove("dz-started","dz-drag-hover")}},{key:"displaySpinner",value:function(){this.buttonTargets.forEach((function(t){return t.classList.add("d-none")})),this.spinnerTarget.classList.remove("d-none")}}])&&s(n.prototype,r),i&&s(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.Controller);d(f,"targets",["elements","mobility","unitOrganizations","button","spinner"]),d(f,"values",{url:String});var p=function(){return{"X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content,"Content-Type":"application/json",Accept:"application/json"}},m=function(){i.a.findTable("#resources")[0].setSort("updated_at_value","desc"),setTimeout((function(){var t,e,n;null===(t=document.querySelector('div[tabulator-field="updated_at"]'))||void 0===t||t.setAttribute("aria-sort","descending"),null===(e=document.querySelector("[data-action='click->desktop--actor--filter--resource-component--resource-component#removeAll']"))||void 0===e||e.click(),null===(n=document.querySelector("[data-action='click->desktop--actor--filter--resource-component--resource-component#filter'][data-value='training_resource'] span"))||void 0===n||n.click()}),300)}}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(5),o=n(11),a=n(9);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(d,t);var e,n,r,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return e=d,n=[{key:"connect",value:function(){this.displayPlaceholder(),this.buildTabulator({resourcesScoped:this.resourcesScopedValue})}},{key:"displayPlaceholder",value:function(){this.resourcesTarget.innerHTML=document.getElementById("placeholder").innerHTML,document.getElementById("resources").innerHTML=document.getElementById("placeholder").innerHTML}},{key:"buildTabulator",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resourcesScoped:!1},e=this,n=JSON.parse(localStorage.getItem("resources_sorters")),r=JSON.parse(this.resourcesTarget.parentElement.dataset.translations),s=new Tabulator("#resources",{layout:"fitColumns",langs:{"fr-fr":{}},initialSort:n||[{column:"name",dir:"asc"}],initialFilter:Object(o.loadResourceFilters)(),movableColumns:!1,placeholder:document.querySelector('[data-code="no_resources_loaded"]').innerHTML,height:"100%",responsiveLayout:"hide",filterMode:"remote",sortMode:"remote",paginationMode:"remote",pagination:!0,paginationSize:20,paginationCounter:function(t,e){var n=e+t-1;return"".concat(e," ").concat(r.on," ").concat(n<0?0:n)},ajaxURL:this.urlValue,ajaxConfig:{method:"POST",headers:{"X-CSRF-Token":Object(i.a)()}},ajaxResponse:function(t,e,n){var r,i;s.totalRows=null!==(r=n.count)&&void 0!==r?r:0;var o=null!==(i=n.count)&&void 0!==i?i:0;return Object(a.e)("resources",o),n},columns:[{field:"id",visible:!1},{field:"resource_id",visible:!1},{field:"url",visible:!1},{field:"destroy_url",visible:!1},{field:"onboarding",visible:!1},{field:"crossboarding",visible:!1},{field:"offboarding",visible:!1},{field:"mobilities",visible:!1},{field:"updated_at_value",visible:!1},{title:"",field:"bulk",width:16,minWidth:16,maxWidth:16,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:"",field:"resource_icon",width:64,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,responsive:0,download:!1},{title:r.title,field:"name",minWidth:300,widthGrow:3,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:0},{title:r.resource_type,field:"resource_label",width:150,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:2,download:!0},{title:r.environment,field:"multiple_unit_organizations",visible:t.environment,minWidth:200,widthGrow:2,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,responsive:1,download:!1},{title:r.environment,field:"unit_organization_names",visible:!1,download:!0},{title:r.edited_at,field:"updated_at",width:120,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1},{title:r.templates,field:"templates_count",width:100,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,sorter:"number"},{title:r.tracks,field:"tracks_count",width:80,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,sorter:"number"},{title:"",field:"actions",width:100,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,responsive:0},{title:"",field:"bulk",width:16,minWidth:16,maxWidth:16,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1}],rowFormatter:function(t){var n=t.getData(),r=t.getElement();r.classList.add("d-flex","align-items-center"),r.dataset.url=n.url,r.dataset.shared=0===n.unit_organization_ids.length,e.renderHtmlFor(r,n)},downloadConfig:{columnHeaders:!0}}),l=document.querySelector("html").lang;s.on("dataSorted",(function(t,e){var n=[];t.forEach((function(t){n.push({column:t.column.getField(),dir:t.dir})})),localStorage.setItem("resources_sorters",JSON.stringify(n))})),setTimeout((function(){s.setLocale("".concat(l,"-").concat(l)),Object(a.e)("resources",0)}),100)}},{key:"renderHtmlFor",value:function(t,e){var n={resource_icon:["resource_icon"],name:["name","name","onboarding","crossboarding","offboarding"],resource_label:["resource_label"],multiple_unit_organizations:["full_unit_organization_count","unit_organization_names","unit_organization_names","resource_id","resource_type"],updated_at:["updated_at"],templates_count:["templates_count","resource_id","resource_type"],tracks_count:["tracks_count"],actions:["tracks_count","resource_id","resource_type","show_preview","destroy_url","resource_id","resource_type","resource_id","resource_type","name"]},r=document.querySelector('div[data-controller*="desktop--settings--resources--creation-sidebar"]'),i="true"==r.dataset.sharedAuthorization,o="true"==r.dataset.envAuthorization,s=JSON.parse(r.dataset.envIds),l=e.full_unit_organization_ids.filter((function(t){return!s.includes(t)})).length,u=0===l,c=0===e.full_unit_organization_ids.length,d=1===e.unit_organization_ids.length,h=!1;Object.keys(n).forEach((function(r){var s=r;"multiple_unit_organizations"===r?(c||d)&&(s="single_unit_organization"):"actions"===r&&(c&&!i?s="actions_unauthorized_edition_on_shared":c||o?c||!o||u?h=!0:s="actions_unauthorized_edition_on_scope":s="actions_unauthorized_edition_on_environment");var f=document.getElementById(s).innerHTML,m=document.getElementById("icon_"+e.resource_type).innerHTML;f=Object(a.b)(f,d,l),n[r].forEach((function(t){f="resource_icon"===t?f.replace("{{resource_icon}}",m):f.replace("{{".concat(t,"}}"),Object(a.c)(e[t]))})),f=(f=f.replace("{{resource_mobilities}}",p(e))).replace("{{resource_in_shared_environment}}",c),t.querySelector('[tabulator-field="'.concat(r,'"]')).innerHTML=f})),t.dataset.edit=h,h&&(t.setAttribute("data-action","click->desktop--settings--resources--resources#openResource"),t.classList.add("pointer"))}},{key:"openResource",value:function(t){var e=t.currentTarget,n=e.querySelector(".menu-tooltip");if(!n||"true"!==n.getAttribute("opened"))if("true"==e.dataset.edit){var r=e.dataset.url;t.metaKey||t.ctrlKey?window.open(r,"_blank").focus():window.open(r,"_self")}else e.querySelector(".fa-eye").click()}},{key:"export",value:function(){var t=Tabulator.findTable("#resources")[0];if(t.getPageMax()<2)t.download("csv","export_resources.csv",{sheetName:"export"});else{var e={filters:t.getFilters(),export:"all"};fetch(this.urlValue,{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-Token":Object(i.a)()},body:JSON.stringify(e)}).then((function(t){return t.json()})).then((function(t){flash(t.message)})).catch((function(t){console.log(t)}))}}}],n&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.Controller);d(f,"targets",["resources"]),d(f,"values",{url:String,resourcesScoped:Boolean});var p=function(t){return["onboarding","crossboarding","offboarding"].filter((function(e){return t[e]})).join(",")}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return p}));var r=n(1),i=n(5),o=n(19);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d,h,f,p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,r,u=l(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"duplicate",value:function(){var t=document.querySelector('div[data-controller*="desktop--settings--resources--creation-sidebar"]').dataset.duplicationNotification;Object(o.a)(t),fetch("/settings/duplications",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":Object(i.a)()},body:JSON.stringify({resource_class:this.resourceClassValue,resource_id:this.resourceIdValue})}).then((function(t){return t.json()})).then((function(t){window.location.href=t.url}))}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Controller);d=p,h="values",f={resourceClass:String,resourceId:String},(h=c(h))in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"defineName",value:function(){this.pluralName="environments",this.singularName="environment"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(35).BaseResourcesController);l=d,c=["select","menu","search"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"defineName",value:function(){this.pluralName="mobilities",this.singularName="mobility"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(35).BaseResourcesController);l=d,c=["select","menu"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(1),i=n(11);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(d,t);var e,n,r,u=s(d);function d(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c(l(t=u.call.apply(u,[this].concat(n))),"delay",400),t}return e=d,(n=[{key:"connect",value:function(){var t=localStorage.getItem("resources_query");this.queryInputTarget.value=t,this.toggleIcon()}},{key:"query",value:function(){var t=this;window.clearTimeout(this.timer),this.timer=window.setTimeout((function(){t.toggleIcon(),t.updateFilter(),Object(i.applyResourcesFilters)()}),parseInt(this.delay))}},{key:"updateFilter",value:function(){var t=this.queryInputTarget.value;localStorage.setItem("resources_query",t)}},{key:"cleanQuery",value:function(){this.queryInputTarget.value="",this.toggleIcon(),this.updateFilter(),Object(i.applyResourcesFilters)()}},{key:"toggleIcon",value:function(){this.queryInputTarget.value.length>0?this.cleanQueryTarget.classList.remove("invisible"):this.cleanQueryTarget.classList.add("invisible")}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.Controller);c(h,"targets",["queryInput","cleanQuery"])},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"defineName",value:function(){this.pluralName="templates",this.singularName="template"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(35).BaseResourcesController);l=d,c=["select","menu","search"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"defineName",value:function(){this.pluralName="types",this.singularName="type"}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(35).BaseResourcesController);l=d,c=["select","menu"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){this.missingLinkValue&&(t("#training_resource_add_link").removeClass("fade"),t("#training_resource_add_resource").removeClass("fade"),t("#training_resource_add_link").modal("show"))}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,u="values",c={missingLink:Boolean},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return f}));var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,i,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"triggerInput",value:function(){this.inputTarget.click()}},{key:"addFileLine",value:function(){var t=this,e=this.element.dataset.id;r(this.inputTarget.files).forEach((function(n){return t.apprendLine(n,e)})),this.emptyTarget.classList.remove("d-flex"),this.emptyTarget.classList.add("d-none")}},{key:"removeFileLine",value:function(t){var e=t.currentTarget.dataset.name;document.getElementById("file-".concat(e)).remove(),0===this.listTarget.children.length&&(this.emptyTarget.classList.remove("d-none"),this.emptyTarget.classList.add("d-flex"))}},{key:"apprendLine",value:function(t,e){this.listTarget.insertAdjacentHTML("beforeend",this.renderHtml(t.name,e))}},{key:"renderHtml",value:function(t,e){return this.templateLineTarget.innerHTML.replaceAll("{{{name}}}",t).replaceAll("{{{paperworkId}}}",e)}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(1).Controller);c=f,h=["list","templateLine","empty","input"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return p}));var r=n(1),i=n(68),o=n(16),a=n(33),s=n(78);function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var p=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(p,e);var n,r,u,f=h(p);function p(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return n=p,(r=[{key:"connect",value:function(){t("#edit_element").on("hidden.bs.modal",(function(){Object(o.d)()})),t("#modal-view").on("hidden.bs.modal",(function(){Object(a.cleanPreviewModal)()})),Object(i.b)(),t("#add_new_week").on("hide.bs.modal",(function(){l(document.querySelectorAll(".week.dashed-border-blue")).forEach((function(t){return t.remove()})),Object(i.a)()})),Object(s.a)()}}])&&c(n.prototype,r),u&&c(n,u),Object.defineProperty(n,"prototype",{writable:!1}),p}(r.Controller)}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}(this,n)}}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(h,t);var e,n,s,u=o(h);function h(){var t,e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t=u.call.apply(u,[this].concat(o)),e=a(t),n="values",r={regex:String},(n=l(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,t}return e=h,(n=[{key:"answer",value:function(t){var e=t.currentTarget,n=document.getElementById("".concat(e.dataset.questionName));d(n),e.classList.add("selected")}},{key:"checkEmail",value:function(t){var e=document.getElementById("feedback-email-error"),n=t.currentTarget.value,r=new RegExp(t.currentTarget.dataset.regex);c(n,r)?c(n)&&!e.classList.contains("invisible")&&e.classList.add("invisible"):e.classList.remove("invisible")}}])&&r(e.prototype,n),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),h}(n(1).Controller),c=function(t,e){return!!t.match(e)},d=function(t){t.querySelectorAll(".scale_choice").forEach((function(t){return t.classList.remove("selected")}))}},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"call",value:function(){this.inputChecked()&&t.ajax({url:this.urlValue,type:"DELETE",dataType:"script"})}},{key:"inputChecked",value:function(){var t=document.querySelector("input[name=reverse-inherit]");return!!t&&t.checked}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,u="values",c={url:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return m}));var r=n(1),i=n(27);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,n)}}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(l,t);var e,n,r,s=d(l);function l(){var t,e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l);for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return t=s.call.apply(s,[this].concat(o)),e=h(t),r=function(e){var n=t.currentState();a(e.children).filter((function(t){return"DIV"==t.tagName&&"none"!=t.style.display})).forEach((function(t,r){var i=r+1,o=e.dataset.questionId,a=t.dataset.answerId,s=Object.values(n[o].answers).find((function(t){return t.correct_position==i})).content;t.querySelector("[data-position]").innerText=i,n[o].answers[a].position=i,n[o].answers[a].current_content=s})),t.updateState(JSON.stringify(n))},(n=p(n="updatePositions"))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,t}return e=l,(n=[{key:"connect",value:function(){var t=this;a(document.querySelectorAll("div[data-desktop--onboardee--quiz-target][data-question=ranking] div[data-list]")).forEach((function(e){new i.a(e,{animation:150,ghostClass:"blue-background-class",onEnd:function(n){t.updatePositions(e)}}),t.updatePositions(e)}))}},{key:"currentState",value:function(){return JSON.parse(document.getElementById("state").dataset.state)}},{key:"updateState",value:function(t){document.getElementById("state").dataset.state=t}},{key:"toggle",value:function(t){this.state=this.currentState();var e=+a(document.querySelectorAll("div[data-desktop--onboardee--quiz-target]"))[+(+document.querySelector("div[data-desktop--onboardee--quiz-index-value]").dataset["desktop-Onboardee-QuizIndexValue"]-1)].id.split("_")[2],n=+t.currentTarget.id.split("_")[2];this.state[e].answers[n].selected=!this.state[e].answers[n].selected,this.updateState(JSON.stringify(this.state))}},{key:"finalize",value:function(){var t=Object.entries(this.currentState()),e=0;t.forEach((function(t){var n=o(t,2),r=n[0],i=n[1],a=g(i);a&&(e+=1),"ranking"==i.type?w(i,a):"linked"==i.type?k(i):y(i),v(r,a)})),_(e,t.length)}}])&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),l}(r.Controller),g=function(t){return Object.values(t.answers).map((function(t){return b(t)})).every((function(t){return t}))},b=function(t){switch(t.type){case"ranking":return t.position==t.correct_position;case"linked":return t.answer_twin_id==t.correct_answer_twin_id;default:return t.selected==t.correct}},v=function(t,e){var n=e?"times":"check";document.querySelector("#question_resource_".concat(t," .fa-").concat(n,"-circle")).classList.add("d-none")},y=function(t){Object.entries(t.answers).forEach((function(t){var e=o(t,2),n=e[0];e[1].selected||document.querySelector("#answer_resource_".concat(n," .selected")).classList.add("d-none")}))},w=function(t,e){e?Object.entries(t.answers).forEach((function(t){var e=o(t,2),n=e[0];e[1];document.querySelector("#answer_resource_".concat(n,"[data-result] [data-your-answer]")).classList.add("d-none")})):Object.entries(t.answers).forEach((function(t){var e=o(t,2),n=e[0],r=e[1],i=r.content==r.current_content?"times":"check";document.querySelector("#answer_resource_".concat(n,"[data-result] .fa-").concat(i,"-circle")).classList.add("d-none"),document.querySelector("#answer_resource_".concat(n,"[data-result] [data-current-content]")).innerText=r.current_content}))},k=function(t){var e=O(t);Object.entries(t.answers).forEach((function(t){var n=o(t,2),r=n[0],i=n[1],a=i.correct_answer_twin_id==i.answer_twin_id,s=document.getElementById("result-".concat(r));if(e)s.remove();else if(i.answer_twin_id){var l=a?"times-circle":"check-circle";s.querySelector(".fa-".concat(l)).classList.add("d-none"),s.querySelector("span.text-bold").innerText=document.getElementById("answer_resource_twin_".concat(i.answer_twin_id)).innerText.trim()}else s.querySelector(".fa-check-circle").classList.add("d-none")}))},_=function(t,e){var n=+document.getElementById("state").dataset.minimalScore,r=Math.round(100*t/e),i=r>=n,o=i?"error":"success";document.getElementById(o).classList.add("d-none");var a=document.querySelector("#".concat(i?"success":"error"," .score")).innerHTML;a=(a=a.replaceAll("{{{finalScore}}}",r)).replaceAll("{{{minimalScore}}}",n),document.querySelector("#".concat(i?"success":"error"," .score")).innerHTML=a},O=function(t){return Object.entries(t.answers).map((function(t){return t[1].answer_twin_id==t[1].correct_answer_twin_id})).every((function(t){return 1==t}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(71);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(o,t);var e,n,r,i=u(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"selectAnswer",value:function(t){this.selectedValue+=this.selectedValue.length>=1?" ".concat(t.currentTarget.id):"".concat(t.currentTarget.id),x(document.getElementById(t.currentTarget.id));var e=this.selectedValue.split(" ");if(v(e)){var n=e.shift();e[0]!=n&&E(document.getElementById(n)),this.selectedValue=t.currentTarget.id}if(1==e.length)g(t.currentTarget),_(this.selectTextTarget),O(this.associateTextTarget);else{var r=e.filter((function(t){return!t.includes("answer_resource_twin")}))[0],i=e.filter((function(t){return t.includes("answer_resource_twin")}))[0];this.selectedValue="";var o=document.getElementById(r),a=document.getElementById(i);o.setAttribute("data-answer-resource-twin-id",i.split("_")[3]),a.setAttribute("data-answer-resource-id",r.split("_")[2]),p(o,a),_(this.associateTextTarget),O(this.selectTextTarget),this.updateAnswerTwinState(+t.currentTarget.dataset.questionId,o.id.split("_")[2],+a.id.split("_")[3])}}},{key:"unselectAnswers",value:function(t){var e=t.currentTarget.id.includes("twin"),n=e?t.currentTarget.dataset.answerResourceId:t.currentTarget.id.split("_")[2],r=e?t.currentTarget.id.split("_")[3]:t.currentTarget.dataset.answerResourceTwinId,i=document.getElementById("answer_resource_".concat(n)),o=document.getElementById("answer_resource_twin_".concat(r));m(i,o),this.updateAnswerTwinState(+t.currentTarget.dataset.questionId,n,null)}},{key:"updateAnswerTwinState",value:function(t,e,n){this.state=w(),this.state[t].answers[e].answer_twin_id=n,k(JSON.stringify(this.state))}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(r.Controller);d(f,"targets",["selectText","associateText"]),d(f,"values",{selected:String});var p=function(t,e){[t,e].forEach((function(t){E(t),y(t).classList.remove("invisible"),x(y(t)),t.setAttribute("data-action","click->desktop--settings--templates--quiz-linked-question#unselectAnswers"),b(t)})),Object(i.drawLine)(t,e)},m=function(t,e){[t,e].forEach((function(t){E(t),E(y(t)),y(t).classList.add("invisible"),t.setAttribute("data-action","click->desktop--settings--templates--quiz-linked-question#selectAnswer")}));var n=y(t).querySelector("svg");n&&n.remove()},g=function(t){o(t.parentElement.parentElement.querySelectorAll(".answer-card")).filter((function(t){return!t.classList.contains("selected")})).forEach((function(t){return t.classList.add("text-gray")})),t.classList.remove("text-gray")},b=function(t){o(t.parentElement.parentElement.querySelectorAll(".answer-card")).forEach((function(t){return t.classList.remove("text-gray")}))},v=function(t){if(t.length<2)return!1;var e=t[0],n=t[1];return e.includes("answer_resource_twin")&&n.includes("answer_resource_twin")||!e.includes("answer_resource_twin")&&!n.includes("answer_resource_twin")},y=function(t){return t.id.includes("answer_resource_twin")?t.previousElementSibling:t.nextElementSibling},w=function(){return JSON.parse(document.getElementById("state").dataset.state)},k=function(t){document.getElementById("state").dataset.state=t},_=function(t){t.classList.remove("d-flex"),t.classList.add("d-none")},O=function(t){t.classList.remove("d-none"),t.classList.add("d-flex")},x=function(t){return t.classList.add("selected")},E=function(t){return t.classList.remove("selected")}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.r(e),n.d(e,"default",(function(){return s}));var s=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,t);var e,n,a,s=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return e=u,(n=[{key:"answer",value:function(t){var e=t.currentTarget,n=document.getElementById("question-resource-content-".concat(e.dataset.questionId));switch(n.dataset.type){case"unique_choice":l(n,"unique_choice"),e.classList.add("selected");break;case"multiple_choice":e.classList.toggle("selected");break;case"scale":l(n,"scale_choice"),e.classList.add("selected")}}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(1).Controller),l=function(t,e){t.querySelectorAll(".".concat(e)).forEach((function(t){return t.classList.remove("selected")}))}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"setExtensions",value:function(){"sign"==this.dropdownTarget.value?this.fileTarget.accept=".docx":this.fileTarget.accept=this.fileTarget.dataset.defaultAccept}},{key:"setSigners",value:function(){var t=document.querySelector(".workflow_esign_signers"),e=document.querySelector(".workflow_variables");"sign"==this.dropdownTarget.value?(t.classList.remove("d-none"),e.classList.remove("d-none")):(t.classList.add("d-none"),e.classList.add("d-none"))}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["dropdown","file"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.toggleDisplayHelpText()}},{key:"setExtensions",value:function(){this.toggleDisplayHelpText()}},{key:"toggleDisplayHelpText",value:function(){"sign"===this.actionTypeTarget.value?this.helpTextTarget.classList.remove("d-none"):this.helpTextTarget.classList.add("d-none")}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["actionType","helpText"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return f}));var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,i,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t=this;this.replacedEditor="",this.replacedSubject="",this.replacedTrix="",this.variables=JSON.parse(this.emailEditorTarget.dataset.variables),this.emailEditorTarget.dataset.correspondance&&(this.correspondance=JSON.parse(this.emailEditorTarget.dataset.correspondance),this.changeLanguage()),this.updateEditor(),this.updateSubject();var e=document.getElementById("trix-toolbar-1");e&&(e.addEventListener("click",(function(e){t.updateEditor()})),e.click())}},{key:"updateEditor",value:function(){this.emailPreviewTarget.innerHTML=this.emailEditorTarget.innerHTML,this.replacedEditor=this.emailPreviewTarget.innerHTML,this.updateHtmlWithVariables(),this.emailPreviewTarget.innerHTML=this.replacedEditor}},{key:"updateSubject",value:function(){this.subjectPreviewTarget.innerHTML=this.subjectEditorTarget.value,this.replacedSubject=this.subjectPreviewTarget.innerHTML,this.updateHtmlWithVariables(),""===this.subjectPreviewTarget.innerHTML?this.subjectPreviewTarget.innerHTML=this.subjectEditorTarget.dataset.subject:this.subjectPreviewTarget.innerHTML=this.replacedSubject}},{key:"updateHtmlWithVariables",value:function(){var t=this;Object.keys(this.variables).forEach((function(e){var n=new RegExp("@".concat(e),"gi");n.test(t.replacedEditor)&&(t.replacedEditor=t.replacedEditor.replace(n,t.variables[e])),n.test(t.replacedSubject)&&(t.replacedSubject=t.replacedSubject.replace(n,t.variables[e]))}))}},{key:"changeLanguage",value:function(){var t=this;this.replacedTrix=this.emailEditorTarget.innerHTML;var e=new RegExp("@[a-z\xc0-\xff|_]+","gmi"),n=this.replacedTrix.match(e);n&&r(n).forEach((function(e){Object.values(t.correspondance).forEach((function(n){var r=Object.keys(t.correspondance).find((function(e){return t.correspondance[e]===n}));n.includes(e.substring(1))&&(t.replacedTrix=t.replacedTrix.replace(e,"@".concat(r)))}))})),this.emailEditorTarget.innerHTML=this.replacedTrix}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(1).Controller);c=f,h=["subjectEditor","subjectPreview","emailEditor","emailPreview"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return g}));var r=n(1),i=n(10),o=n(19),a=n(5),s=n(9);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var g=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(p,e);var n,r,l,f=h(p);function p(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return n=p,(r=[{key:"connect",value:function(){Object(i.a)(this),this.build()}},{key:"build",value:function(){"missing_validation"===this.statusValue&&this.wrapperTarget.classList.remove("d-none")}},{key:"validate",value:function(t){var e=this;t.preventDefault();var n=t.target;n.classList.contains("clicked")?n.href="javascript:void(0)":(n.classList.add("clicked"),fetch(n.href,{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-Token":Object(a.a)()}}).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((function(t){e.wrapperTarget.remove(),Object(o.a)(e.translationsValue.validate)})).catch((function(t){e.wrapperTarget.remove(),Object(o.a)(e.translationsValue.error,"alert")})))}},{key:"displayRefusePopin",value:function(e){var n=this;e.preventDefault();var r=document.getElementById("form-approval-modal");r&&r.remove();var i=u(u({},{height:"auto",withDropdownElement:!0}),this.optionsValue),o=this.itemsValue;fetch("/actor/analyse/forms/"+this.idValue,{method:"GET",headers:{"X-CSRF-Token":Object(a.a)(),"Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){o=n.itemsValue.map((function(t){var n=e.find((function(e){return t.id===e.id}));return n&&"refused"===n.status?u(u({},t),{},{checked:!0}):t}));var r=i.withDropdownElement?'\n        <div class="form-group text optional form_message no-margin" style="flex: 1 1 auto" data-controller="utils--dropdown" data-utils--dropdown-items-value="'.concat(Object(s.c)(JSON.stringify(o)),'">\n          <p><label class="font-weight-bold">').concat(n.translationsValue.approval_modal.labels.select_fields,'</label></p>\n          <ul data-utils--dropdown-target="list" class="list-group overflow-auto" style="height:150px">\n          </ul>\n          <p class="text-right mt-2">\n            <a data-action="click->utils--dropdown#selectAll" data-utils--dropdown-target="selectAll">').concat(n.translationsValue.select_all,'</a>\n            <span> - </span>\n            <a data-action="click->utils--dropdown#clearAll" data-utils--dropdown-target="clearAll">').concat(n.translationsValue.unselect,"</a>\n          </p>\n        </div>\n      "):"",a='\n        <div id="form-approval-modal" class="modal fade modal-full" tabindex="-1" role="dialog" aria-modal="true" data-form-approvals-target="refusePopin">\n          <div class="modal-dialog" role="document">\n            <div class="modal-content" style="height: '.concat(i.height,';">\n              <a href="#" class="link-decoration-none" data-action="click->form-approvals#closePopin">\n                <i class="fa fa-times-circle float-right close-menu text-gray-less-dark text-20px margin-20px" aria-hidden="true"></i>\n              </a>\n              <h2 class="text-blue-dark text-center text-20px text-normal d-flex flex-column justiy-content-center">').concat(n.translationsValue.approval_modal.title,'</h2>\n              <div class="margin-50px">\n                <div>\n                  <form class="d-flex flex-column justiy-content-center text-left" action="/actor/forms/').concat(n.idValue,'/form_approvals/refuse" method="DELETE">\n                    ').concat(r,'\n                    <div class="mt-4 form-group text optional form_message" style="flex: 1 1 auto">\n                      <label class="font-weight-bold">').concat(n.translationsValue.approval_modal.labels.message,'</label>\n                      <textarea class="form-control text optional" style="height: 100px" placeholder="').concat(n.translationsValue.reason,'" name="form[message]" id="form_message"></textarea>\n                    </div>\n                  </form>\n                </div>\n                <div class="d-flex justify-content-center margin-top-40px">\n                  <button class="button button-white margin-lateral-10px" data-action="click->form-approvals#closePopin">\n                  ').concat(n.translationsValue.clear,'\n                  </button>\n                  <button class="button button-blue-dark margin-lateral-10px" data-form-approvals-target="validPopin" data-action="click->form-approvals#refuse">\n                  ').concat(n.translationsValue.send,"\n                  </button>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      ");n.wrapperTarget.insertAdjacentHTML("beforeend",a),t(n.refusePopinTarget).modal("show")}))}},{key:"closePopin",value:function(e){"undefined"!==typeof e&&e.preventDefault(),t(this.refusePopinTarget).modal("hide")}},{key:"refuse",value:function(t){var e=this;t.preventDefault();var n=t.target;if(!n.classList.contains("clicked")){n.classList.add("clicked");var r=this.refusePopinTarget.querySelector("form");fetch(r.action,{method:"DELETE",body:new FormData(r),headers:{"X-CSRF-Token":Object(a.a)()}}).then((function(t){return t.text()})).then((function(t){e.closePopin(),Object(o.a)(e.translationsValue.refuse),e.wrapperTarget.remove()})).catch((function(t){console.error("Error:",t);var e=document.querySelector("#setting-content").dataset.duplicationNotification;Object(o.a)(e)}))}}}])&&c(n.prototype,r),l&&c(n,l),Object.defineProperty(n,"prototype",{writable:!1}),p}(r.Controller);p(g,"targets",["formId","wrapper","refusePopin"]),p(g,"values",{status:String,id:String,translations:Object,options:Object,items:Array})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return m}));var r=n(1),i=n(10),o=n(19),a=n(5);function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var m=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(f,e);var n,r,l,h=d(f);function f(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),h.apply(this,arguments)}return n=f,(r=[{key:"connect",value:function(){Object(i.a)(this),"pending"!=this.statusValue&&(this.triggerTarget.classList.add("disabled"),this.triggerTarget.setAttribute("disabled","disabled"),this.triggerTarget.removeAttribute("data-action"))}},{key:"click",value:function(e){e.preventDefault(),this.displayModal(e,t([e.target.closest(".tabulator-row")]))}},{key:"send",value:function(e){var n=this;e.preventDefault();var r=this.popinTarget.querySelector("form");fetch(r.action,{method:"POST",body:new FormData(r),headers:{"X-CSRF-Token":Object(a.a)()}}).then((function(t){return t.text()})).then((function(e){t(n.popinTarget).modal("hide"),Object(o.a)(n.translationsValue.validate)})).catch((function(e){t(n.popinTarget).modal("hide"),Object(o.a)(n.translationsValue.error,"alert")}))}},{key:"displayModal",value:function(e,n){e&&e.preventDefault();var r=document.getElementById("followup").innerHTML,i=this.table,a=[];n.each(function(t,e){var n=document.getElementById("recipients").innerHTML,o=i.getRow(e).getData();if(r=(r=(r=r.replaceAll("{{mobility}}",o.mobility)).replaceAll("{{employee_id}}",o.employee_id)).replaceAll("{{form_id}}",o.id),"pending"===o.hr_status_key){var l={collaboratorFullNameValue:o.recipient_label,dateValue:this.convertTimestamp(o.followup_date),resourceId:o.resource_id},u=n;Object.entries(l).forEach((function(t){var e=s(t,2),n=e[0],r=e[1];u=u.replaceAll("{{".concat(n,"}}"),r)})),a.push(u)}}.bind(this)),0!==a.length?(this.triggerTarget.insertAdjacentHTML("beforeend",r),this.recipientsTarget.innerHTML=a.join(""),this.popinTarget.addEventListener("click",(function(t){t.stopPropagation()})),t(this.popinTarget).modal("show")):Object(o.a)(this.translationsValue.error,"alert")}},{key:"closePopin",value:function(e){"undefined"!==typeof e&&e.preventDefault(),t(this.popinTarget).modal("hide")}},{key:"convertTimestamp",value:function(t){if("null"==t)return"";var e=new Date(t),n=e.getFullYear(),r=e.getMonth()+1,i=e.getDate(),o=e.getHours(),a=e.getMinutes();return"(relanc\xe9 le "+"".concat(this.addZero(i),"-").concat(this.addZero(r),"-").concat(n," ").concat(this.addZero(o),":").concat(this.addZero(a))+")"}},{key:"addZero",value:function(t){return(t<10?"0":"")+t}},{key:"table",get:function(){return Tabulator.findTable("#forms")[0]}}])&&u(n.prototype,r),l&&u(n,l),Object.defineProperty(n,"prototype",{writable:!1}),f}(r.Controller);f(m,"targets",["formId","wrapper","trigger","popin","recipients"]),f(m,"values",{status:String,id:String,translations:Object,options:Object,date:String,collaboratorFullName:String})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return f}));var c,d,h,f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,i,l,u=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,(i=[{key:"toggleEditor",value:function(t){var e=document.querySelectorAll(".handover-editor"),n=document.getElementById("handover-".concat(t.target.dataset.handoversTarget));this.updateMenuBgs(t.target),r(e).forEach((function(t){return t==n?p(t):m(t)})),null!=document.getElementById("finalize-handover")&&(t.target==this.contactsTarget?b():(p(document.getElementById("next-section")),m(document.getElementById("finalize-handover")))),k()}},{key:"nextSection",value:function(){g(document.getElementById("handover-projects"))?(v(),p(document.getElementById("handover-routines")),this.updateMenuBgs(this.routinesTarget)):g(document.getElementById("handover-routines"))&&(v(),p(document.getElementById("handover-contacts")),b(),this.updateMenuBgs(this.contactsTarget)),k()}},{key:"updateMenuBgs",value:function(t){this.removeBoldToLinks(),t.classList.add("text-bold")}},{key:"removeBoldToLinks",value:function(){[this.projectsTarget,this.routinesTarget,this.contactsTarget].forEach((function(t){t.classList.remove("text-bold")}))}},{key:"switchHandoverPresence",value:function(e){var n=e.target.dataset.trackId,r=e.target.dataset.handoverId,i=e.target.dataset.origin,o=e.target.checked,a={url:o?y(i,n):w(i,r),method:o?"POST":"DELETE"};t.ajax({url:a.url,type:a.method,dataType:"json",success:function(t){"POST"==a.method&&(document.getElementById("handover").dataset.handoverId=t.data.id)}})}}])&&o(n.prototype,i),l&&o(n,l),Object.defineProperty(n,"prototype",{writable:!1}),c}(n(1).Controller);function p(t){t.classList.contains("d-none")&&t.classList.remove("d-none")}function m(t){t.classList.add("d-none")}function g(t){return!t.classList.contains("d-none")}function b(){m(document.getElementById("next-section")),p(document.getElementById("finalize-handover"))}function v(){document.querySelectorAll(".handover-editor").forEach((function(t){return m(t)}))}function y(t,e){return"track"==t?"/offboarding/tracks/".concat(e,"/handovers"):"/settings/tracks/".concat(e,"/handovers")}function w(t,e){return"track"==t?"/offboarding/handovers/".concat(e):"/settings/handovers/".concat(e)}function k(){var e=document.getElementById("handover-editors").dataset.url;e&&t.ajax({url:e,type:"PATCH",dataType:"script",data:{handover:{projects:document.querySelector("trix-editor#handover_projects").value,routines:document.querySelector("trix-editor#handover_routines").value,contacts:document.querySelector("trix-editor#handover_contacts").value}}})}c=f,h=["projects","routines","contacts"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h}.call(this,n(4))},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return f}));var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,t);var e,i,l,u=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(i=[{key:"check",value:function(){var t=this.checkPresence();t&&this.checkFormat()?this.validateInput():this.invalidateInput(t)}},{key:"checkPresence",value:function(){return!this._isRequired()||""!=this.inputTarget.value.trim()}},{key:"checkFormat",value:function(){return!this.inputTarget.value||this.checkCollection()&&this.checkRegex()}},{key:"checkCollection",value:function(){var t=this.inputTarget.options;if(t){var e=r(t).map((function(t){return t.value}));return e.shift(),0==e.length||e.includes(this.inputTarget.value)}return!0}},{key:"checkRegex",value:function(){var t=this.inputTarget.dataset.regex;if("iban"==t)return n(213).isValid(this.inputTarget.value);if("nir"==t)return function(t){var e=t.substring(6,7);if("A"!=e&&"B"!=e||(t=t.substring(0,6)+"0"+t.substring(7,15)),!/^\d{15}$/.test(t))return!1;if(!["1","2","7","8"].includes(t.substring(0,1)))return!1;var n=parseInt(t.substring(0,13));"A"==e&&(n-=1e6),"B"==e&&(n-=2e6);var r=String(97-n%97).padStart(2,"0");return t.substring(13,15)==r}(this.inputTarget.value);if(t){var e=this.createRegex(t);return this.inputTarget.value.match(e)}return!0}},{key:"_isRequired",value:function(){return"true"==this.inputTarget.required||"true"==this.inputTarget.ariaRequired}},{key:"validateInput",value:function(){this.inputTarget.dataset.validated=!0,this.wrapperTarget.classList.remove("has-error"),this.removeErrorMessage()}},{key:"invalidateInput",value:function(t){this.inputTarget.dataset.validated=!1,this.wrapperTarget.classList.add("has-error"),this.addErrorMessage(t)}},{key:"addErrorMessage",value:function(t){this.removeErrorMessage();var e=this.defineErrorMessageId(t),n=document.getElementById(e).innerHTML;this.wrapperTarget.insertAdjacentHTML("beforeend",n)}},{key:"defineErrorMessageId",value:function(t){return t?"error-format":"error-presence"}},{key:"removeErrorMessage",value:function(){var t=this.wrapperTarget.querySelector("span.help-block");t&&t.remove()}},{key:"createRegex",value:function(t){var e=t.match(/^\/(.+)\/(.+)$/);return e?new RegExp(e[1],e[2]):new RegExp(t)}}])&&o(e.prototype,i),l&&o(e,l),Object.defineProperty(e,"prototype",{writable:!1}),c}(n(1).Controller);c=f,h=["wrapper","input"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){var r,i,o;i=[e],r=function(t){Array.prototype.map||(Array.prototype.map=function(t){"use strict";if(void 0===this||null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!==typeof t)throw new TypeError;for(var r=new Array(n),i=arguments.length>=2?arguments[1]:void 0,o=0;o<n;o++)o in e&&(r[o]=t.call(i,e[o],o,e));return r});var e="A".charCodeAt(0),n="Z".charCodeAt(0);function r(t){return(t=(t=t.toUpperCase()).substr(4)+t.substr(0,4)).split("").map((function(t){var r=t.charCodeAt(0);return r>=e&&r<=n?r-e+10:t})).join("")}function i(t){for(var e,n=t;n.length>2;)e=n.slice(0,9),n=parseInt(e,10)%97+n.slice(e.length);return parseInt(n,10)%97}function o(t){var e=t.match(/(.{3})/g).map((function(t){var e,n=t.slice(0,1),r=parseInt(t.slice(1),10);switch(n){case"A":e="0-9A-Za-z";break;case"B":e="0-9A-Z";break;case"C":e="A-Za-z";break;case"F":e="0-9";break;case"L":e="a-z";break;case"U":e="A-Z";break;case"W":e="0-9a-z"}return"(["+e+"]{"+r+"})"}));return new RegExp("^"+e.join("")+"$")}function a(t){return t.replace(c,"").toUpperCase()}function s(t,e,n,r){this.countryCode=t,this.length=e,this.structure=n,this.example=r}s.prototype._regex=function(){return this._cachedRegex||(this._cachedRegex=o(this.structure))},s.prototype.isValid=function(t){return this.length==t.length&&this.countryCode===t.slice(0,2)&&this._regex().test(t.slice(4))&&1==i(r(t))},s.prototype.toBBAN=function(t,e){return this._regex().exec(t.slice(4)).slice(1).join(e)},s.prototype.fromBBAN=function(t){if(!this.isValidBBAN(t))throw new Error("Invalid BBAN");var e=("0"+(98-i(r(this.countryCode+"00"+t)))).slice(-2);return this.countryCode+e+t},s.prototype.isValidBBAN=function(t){return this.length-4==t.length&&this._regex().test(t)};var l={};function u(t){l[t.countryCode]=t}u(new s("AD",24,"F04F04A12","AD1200012030200359100100")),u(new s("AE",23,"F03F16","AE070331234567890123456")),u(new s("AL",28,"F08A16","AL47212110090000000235698741")),u(new s("AT",20,"F05F11","AT611904300234573201")),u(new s("AZ",28,"U04A20","AZ21NABZ00000000137010001944")),u(new s("BA",20,"F03F03F08F02","BA391290079401028494")),u(new s("BE",16,"F03F07F02","BE68539007547034")),u(new s("BG",22,"U04F04F02A08","BG80BNBG96611020345678")),u(new s("BH",22,"U04A14","BH67BMAG00001299123456")),u(new s("BR",29,"F08F05F10U01A01","BR9700360305000010009795493P1")),u(new s("BY",28,"A04F04A16","BY13NBRB3600900000002Z00AB00")),u(new s("CH",21,"F05A12","CH9300762011623852957")),u(new s("CR",22,"F04F14","CR72012300000171549015")),u(new s("CY",28,"F03F05A16","CY17002001280000001200527600")),u(new s("CZ",24,"F04F06F10","CZ6508000000192000145399")),u(new s("DE",22,"F08F10","DE89370400440532013000")),u(new s("DK",18,"F04F09F01","DK5000400440116243")),u(new s("DO",28,"U04F20","DO28BAGR00000001212453611324")),u(new s("EE",20,"F02F02F11F01","EE382200221020145685")),u(new s("EG",29,"F04F04F17","EG800002000156789012345180002")),u(new s("ES",24,"F04F04F01F01F10","ES9121000418450200051332")),u(new s("FI",18,"F06F07F01","FI2112345600000785")),u(new s("FO",18,"F04F09F01","FO6264600001631634")),u(new s("FR",27,"F05F05A11F02","FR1420041010050500013M02606")),u(new s("GB",22,"U04F06F08","GB29NWBK60161331926819")),u(new s("GE",22,"U02F16","GE29NB0000000101904917")),u(new s("GI",23,"U04A15","GI75NWBK000000007099453")),u(new s("GL",18,"F04F09F01","GL8964710001000206")),u(new s("GR",27,"F03F04A16","GR1601101250000000012300695")),u(new s("GT",28,"A04A20","GT82TRAJ01020000001210029690")),u(new s("HR",21,"F07F10","HR1210010051863000160")),u(new s("HU",28,"F03F04F01F15F01","HU42117730161111101800000000")),u(new s("IE",22,"U04F06F08","IE29AIBK93115212345678")),u(new s("IL",23,"F03F03F13","IL620108000000099999999")),u(new s("IS",26,"F04F02F06F10","IS140159260076545510730339")),u(new s("IT",27,"U01F05F05A12","IT60X0542811101000000123456")),u(new s("IQ",23,"U04F03A12","IQ98NBIQ850123456789012")),u(new s("JO",30,"A04F22","JO15AAAA1234567890123456789012")),u(new s("KW",30,"U04A22","KW81CBKU0000000000001234560101")),u(new s("KZ",20,"F03A13","KZ86125KZT5004100100")),u(new s("LB",28,"F04A20","LB62099900000001001901229114")),u(new s("LC",32,"U04F24","LC07HEMM000100010012001200013015")),u(new s("LI",21,"F05A12","LI21088100002324013AA")),u(new s("LT",20,"F05F11","LT121000011101001000")),u(new s("LU",20,"F03A13","LU280019400644750000")),u(new s("LV",21,"U04A13","LV80BANK0000435195001")),u(new s("MC",27,"F05F05A11F02","MC5811222000010123456789030")),u(new s("MD",24,"U02A18","MD24AG000225100013104168")),u(new s("ME",22,"F03F13F02","ME25505000012345678951")),u(new s("MK",19,"F03A10F02","MK07250120000058984")),u(new s("MR",27,"F05F05F11F02","MR1300020001010000123456753")),u(new s("MT",31,"U04F05A18","MT84MALT011000012345MTLCAST001S")),u(new s("MU",30,"U04F02F02F12F03U03","MU17BOMM0101101030300200000MUR")),u(new s("NL",18,"U04F10","NL91ABNA0417164300")),u(new s("NO",15,"F04F06F01","NO9386011117947")),u(new s("PK",24,"U04A16","PK36SCBL0000001123456702")),u(new s("PL",28,"F08F16","PL61109010140000071219812874")),u(new s("PS",29,"U04A21","PS92PALS000000000400123456702")),u(new s("PT",25,"F04F04F11F02","PT50000201231234567890154")),u(new s("QA",29,"U04A21","QA30AAAA123456789012345678901")),u(new s("RO",24,"U04A16","RO49AAAA1B31007593840000")),u(new s("RS",22,"F03F13F02","RS35260005601001611379")),u(new s("SA",24,"F02A18","SA0380000000608010167519")),u(new s("SC",31,"U04F04F16U03","SC18SSCB11010000000000001497USD")),u(new s("SE",24,"F03F16F01","SE4550000000058398257466")),u(new s("SI",19,"F05F08F02","SI56263300012039086")),u(new s("SK",24,"F04F06F10","SK3112000000198742637541")),u(new s("SM",27,"U01F05F05A12","SM86U0322509800000000270100")),u(new s("ST",25,"F08F11F02","ST68000100010051845310112")),u(new s("SV",28,"U04F20","SV62CENR00000000000000700025")),u(new s("TL",23,"F03F14F02","TL380080012345678910157")),u(new s("TN",24,"F02F03F13F02","TN5910006035183598478831")),u(new s("TR",26,"F05F01A16","TR330006100519786457841326")),u(new s("UA",29,"F25","UA511234567890123456789012345")),u(new s("VA",22,"F18","VA59001123000012345678")),u(new s("VG",24,"U04F16","VG96VPVG0000012345678901")),u(new s("XK",20,"F04F10F02","XK051212012345678906")),u(new s("AO",25,"F21","AO69123456789012345678901")),u(new s("BF",27,"F23","BF2312345678901234567890123")),u(new s("BI",16,"F12","BI41123456789012")),u(new s("BJ",28,"F24","BJ39123456789012345678901234")),u(new s("CI",28,"U02F22","CI70CI1234567890123456789012")),u(new s("CM",27,"F23","CM9012345678901234567890123")),u(new s("CV",25,"F21","CV30123456789012345678901")),u(new s("DZ",24,"F20","DZ8612345678901234567890")),u(new s("IR",26,"F22","IR861234568790123456789012")),u(new s("MG",27,"F23","MG1812345678901234567890123")),u(new s("ML",28,"U01F23","ML15A12345678901234567890123")),u(new s("MZ",25,"F21","MZ25123456789012345678901")),u(new s("SN",28,"U01F23","SN52A12345678901234567890123")),u(new s("GF",27,"F05F05A11F02","GF121234512345123456789AB13")),u(new s("GP",27,"F05F05A11F02","GP791234512345123456789AB13")),u(new s("MQ",27,"F05F05A11F02","MQ221234512345123456789AB13")),u(new s("RE",27,"F05F05A11F02","RE131234512345123456789AB13")),u(new s("PF",27,"F05F05A11F02","PF281234512345123456789AB13")),u(new s("TF",27,"F05F05A11F02","TF891234512345123456789AB13")),u(new s("YT",27,"F05F05A11F02","YT021234512345123456789AB13")),u(new s("NC",27,"F05F05A11F02","NC551234512345123456789AB13")),u(new s("BL",27,"F05F05A11F02","BL391234512345123456789AB13")),u(new s("MF",27,"F05F05A11F02","MF551234512345123456789AB13")),u(new s("PM",27,"F05F05A11F02","PM071234512345123456789AB13")),u(new s("WF",27,"F05F05A11F02","WF621234512345123456789AB13"));var c=/[^a-zA-Z0-9]/g,d=/(.{4})(?!$)/g;function h(t){return"string"==typeof t||t instanceof String}t.isValid=function(t){if(!h(t))return!1;t=a(t);var e=l[t.slice(0,2)];return!!e&&e.isValid(t)},t.toBBAN=function(t,e){"undefined"==typeof e&&(e=" "),t=a(t);var n=l[t.slice(0,2)];if(!n)throw new Error("No country with code "+t.slice(0,2));return n.toBBAN(t,e)},t.fromBBAN=function(t,e){var n=l[t];if(!n)throw new Error("No country with code "+t);return n.fromBBAN(a(e))},t.isValidBBAN=function(t,e){if(!h(e))return!1;var n=l[t];return n&&n.isValidBBAN(a(e))},t.printFormat=function(t,e){return"undefined"==typeof e&&(e=" "),a(t).replace(d,"$1"+e)},t.electronicFormat=a,t.countries=l},void 0===(o="function"===typeof r?r.apply(e,i):r)||(t.exports=o)},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1),i=n(46),o=n(10);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}(this,n)}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(f,e);var n,r,c,h=l(f);function f(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return d(u(t=h.call.apply(h,[this].concat(n))),"enableStoring",!1),t}return n=f,(r=[{key:"connect",value:function(){Object(o.a)(this),this.initMouseHover(),this.initializeOperator(),this.initializeFields(),this.enableStoring=!0,this.element.dataset.readyToStore="true"}},{key:"remove",value:function(){this.element.dataset.readyToStore="true",this.element.remove()}},{key:"initializeOperator",value:function(){var t=this,e=this.operatorTarget,n=this.operators();Object(i.initializeSelectize)(e,n,(function(e){t.operatorValue=e,t.storeConditionLogic()}),this.operatorValue)}},{key:"initializeFields",value:function(){var t=this,e=this.fieldTarget,n=Object(i.fields)();Object(i.initializeSelectize)(e,n,(function(e){t.fieldValue=e,t.storeConditionLogic()}),this.fieldValue)}},{key:"storeConditionLogic",value:function(){this.enableStoring&&(this.element.dataset.readyToStore="true")}},{key:"toJSON",value:function(){return{id:this.idValue||newId(),operator_type:this.operatorTarget.value,field_id:this.fieldTarget.value}}},{key:"operators",value:function(){return JSON.parse(document.getElementById("logic-action-operator-types").value)}},{key:"initMouseHover",value:function(){var t=this;this.element.addEventListener("mouseover",(function(){t.dropdownTriggerTarget.classList.remove("invisible")})),this.element.addEventListener("mouseout",(function(){t.dropdownTriggerTarget.classList.add("invisible")}))}},{key:"stickDropdown",value:function(){this.element.setAttribute("dropdown-focus","")}},{key:"clickOutside",value:function(){this.hideDropdown(),this.element.removeAttribute("dropdown-focus")}},{key:"hideDropdown",value:function(){t(this.element.querySelector("[data-toggle=dropdown]")).dropdown("hide")}}])&&a(n.prototype,r),c&&a(n,c),Object.defineProperty(n,"prototype",{writable:!1}),f}(r.Controller);d(f,"values",{conditionalLogicId:String,id:String,operator:String,field:String}),d(f,"targets",["field","operator","dropdownTrigger"])}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t=this;this.togglePhoneNumberInputs(),this.hasOtpEmailTarget&&this.otpEmailTarget.addEventListener("change",(function(){return t.togglePhoneNumberInputs()})),this.hasOtpSmsTarget&&this.otpSmsTarget.addEventListener("change",(function(){return t.togglePhoneNumberInputs()}))}},{key:"togglePhoneNumberInputs",value:function(){this.hasOtpSmsTarget&&this.otpSmsTarget.checked?this.phoneNumberTarget.classList.remove("hidden"):this.hasOtpSmsTarget&&this.phoneNumberTarget.classList.add("hidden")}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["phoneNumber","otpEmail","otpSms"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"load",value:function(e){var n,r,i;n=e.currentTarget,r=this.pointTarget,i=this.linkTargets,r.remove(),t(i).addClass("text-gray"),t(n).append(r).removeClass("text-gray"),t("#action-list").html('<div class="text-center padded-top-20px"><i class="fad fa-spinner text-gray text-40px rotating"></i><div>'),function(e){var n=e.dataset.url;t.ajax({url:n,type:"GET",dataType:"json",data:{origin:"temporality"},success:function(e){t("#action-block").replaceWith(e.content)}})}(e.currentTarget);var o=document.querySelector("#track-selector");if(o){var a=e.currentTarget.dataset.temporality,s=o.href.replace(/temporality=\w+/,"");o.href="".concat(s,"?temporality=").concat(a)}}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,c=["point","link"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"backToDashboard",value:function(){h(this.backLinkTarget),t("body").removeClass("bg-blue-ultra-light").addClass("bg-color-customed")}},{key:"backToActionSwiper",value:function(){h(this.backLinkTarget)}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);function h(e){t(".my-company-pages-back i").width("35px"),function(e){var n=e.dataset.url,r=function(t){var e=t.dataset.callback;if(e)return window[e]}(e);t.ajax({url:n,type:"GET",dataType:"json",data:{origin:"navigation"},success:function(e){t("#app-content").html(e.content),e.navbar&&(t("body").append(e.navbar),navbarAnimation()),"function"==typeof r&&r()}})}(e)}l=d,c=["backLink"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"scroll",value:function(){var t=this.paginationTarget.querySelector("a[rel='next']");if(null!=t){var e=t.href,n=document.body,r=document.documentElement;(function(t){var e="ready"==document.getElementById("action-list").dataset.status;return function(t){var e=[t-window.innerHeight-100,t-window.innerHeight];return e.includes(Math.floor(window.pageYOffset))}(t)&&e})(Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight))&&this.loadMoreActions(e)}}},{key:"loadMoreActions",value:function(e){var n=this;document.getElementById("action-list").dataset.status="loading";var r=document.getElementById("action-block").dataset.temporality;t.ajax({url:e,type:"GET",dataType:"json",data:{temporality:r},success:function(t){n.entriesTarget.insertAdjacentHTML("beforeend",t.entries),n.paginationTarget.innerHTML=t.pagination,document.getElementById("action-list").dataset.status="ready"}})}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,c=["entries","pagination"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"loadDashboardWithProgress",value:function(){document.getElementById("action-block")||(h(this.dashboardLinkTarget,progressBarMobileOnboardee),t("body").removeClass("bg-blue-ultra-light").addClass("bg-color-customed"))}},{key:"loadDashboard",value:function(){document.getElementById("action-block")||(h(this.dashboardLinkTarget),t("body").removeClass("bg-blue-ultra-light").addClass("bg-color-customed"))}},{key:"loadMyBook",value:function(){document.getElementById("pages-index")||(h(this.myBookLinkTarget),t("body").removeClass("bg-color-customed").addClass("bg-blue-ultra-light"))}},{key:"loadMyCalendar",value:function(){document.getElementById("fullcalendarMobileOnboardee")||(h(this.myCalendarLinkTarget,initializeCalendarMobileOnboardee),t("body").removeClass("bg-color-customed").addClass("bg-blue-ultra-light"))}},{key:"loadMyCollaborators",value:function(){document.getElementById("collaborators")||(h(this.myCollaboratorLinkTarget),t("body").removeClass("bg-color-customed").addClass("bg-blue-ultra-light"))}},{key:"loadMyContacts",value:function(){document.getElementById("contacts")||(h(this.myContactLinkTarget),t("body").removeClass("bg-color-customed").addClass("bg-blue-ultra-light"))}},{key:"loadAsk",value:function(){document.getElementById("ask")||(h(this.askLinkTarget),t("body").removeClass("bg-color-customed").addClass("bg-blue-ultra-light"))}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(t){document.querySelectorAll("navbar [data-mobile--navbar-links-target]").forEach((function(t){return t.removeAttribute("active")})),t.setAttribute("active","")}(e),t("#app-content").html('\n    <div class="bg-blue-ultra-light d-flex justify-content-center align-items-center" style="min-height: calc(100vh - 70px);">\n      <div class="text-center padded-top-20px">\n        <i class="fad fa-spinner text-gray text-80px rotating"></i>\n      <div>\n    </div>\n  '),function(e,n){var r=e.dataset.url;t.ajax({url:r,type:"GET",dataType:"json",data:{origin:"navigation"},success:function(e){t("#app-content").html(e.content),"function"==typeof n&&n()}})}(e,n)}l=d,c=["dashboardLink","myBookLink","myTracksLink","myContactLink","myCalendarLink","myCollaboratorLink","askLink"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.r(e),n.d(e,"default",(function(){return s}));var s=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"beforeInstall",value:function(t){t.preventDefault(),this.deferredPrompt=t,this.element.classList.remove("d-none")}},{key:"showPrompt",value:function(){this.deferredPrompt.prompt()}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller)},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"default",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"showAction",value:function(e){var n,r,i;n=e.currentTarget,r=n.dataset.url,i=function(t){var e=t.dataset.callback;if(e)return window[e]}(n),t.ajax({url:r,type:"GET",dataType:"json",data:{origin:"navigation"},success:function(e){t("navbar").remove(),t("#app-content").html(e.content),"function"==typeof i&&i()}}),t("body").removeClass("bg-color-customed").addClass("bg-blue-ultra-light")}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller)}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"sendForm",value:function(){f(this.formSubmitTarget,"PATCH")}},{key:"sendSurvey",value:function(){f(this.surveySubmitTarget,"PATCH")}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["formSubmit","surveySubmit"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c;var h=1500;function f(e,n){t("#app-content").html('\n    <div class="bg-blue-ultra-light d-flex justify-content-center align-items-center min-height-100vh-dvh">\n      <div class="text-center padded-top-20px">\n        <i class="fad fa-spinner text-gray text-80px rotating"></i>\n      <div>\n    </div>\n  ');var r=e.dataset.url;t.ajax({url:r,type:n,dataType:"json",success:function(t){p(1==t.is_valid?m:g,t)}})}function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e){e&&t("#app-content").html(e.validation)}(n),setTimeout((function(){e(n)}),h)}function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=document.querySelector("html").lang;t.ajax({url:e.url,type:"GET",dataType:"json",data:{origin:"navigation",locale:r},success:function(e){t("#app-content").html(e.content),"function"==typeof n&&n(),e.navbar&&(t("body").append(e.navbar),navbarAnimation()),progressBarMobileOnboardee()}})}function g(){window.location.reload()}}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(1),i=n(5);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t=this;this.otpTarget.addEventListener("input",(function(){t.userOtpTarget.classList.remove("has-error")}))}},{key:"sendRequest",value:function(t){var e=this;t.preventDefault(),this.submitButtonTarget.disabled=!0;var n=this.otpTarget.value;fetch("/fr/users/otp_validations",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-Token":Object(i.a)()},body:JSON.stringify({otp:n})}).then((function(t){return t.json()})).then((function(t){t.success?(flash(e.translationsValue.valid,"notice"),e.userOtpTarget.classList.remove("has-error"),setTimeout((function(){window.location.href="/"}),2e3)):(e.userOtpTarget.classList.add("has-error"),e.submitButtonTarget.disabled=!1,flash(e.translationsValue.invalid,"alert"))})).catch((function(t){e.userOtpTarget.classList.add("has-error"),e.submitButtonTarget.disabled=!1,flash(e.translationsValue.invalid,"alert")}))}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);u(d,"targets",["otp","userOtp","submitButton"]),u(d,"values",{translations:Object})},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1),i=n(10),o=n(25);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}(this,n)}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(f,e);var n,r,c,h=l(f);function f(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return d(u(t=h.call.apply(h,[this].concat(n))),"locale",t.element.dataset.locale),t}return n=f,(r=[{key:"connect",value:function(){Object(i.a)(this),this.hasElementTarget&&0===this.elementTarget.children.length&&(this.wrappText(),this.buildIcons())}},{key:"wrappText",value:function(){var t=JSON.parse(document.getElementById("forms").parentElement.dataset.translations);if("file"==this.elementTarget.dataset.paperworkType&&1==this.elementTarget.dataset.paperworkFilesCount)var e='<div class="pointer files"><div class=\'label label-gray-light\'><i class="fal fa-paperclip margin-right-10px" aria-hidden="true"></i>1 fichier</div></div>';else e="file"==this.elementTarget.dataset.paperworkType&&this.elementTarget.dataset.paperworkFilesCount>1?'<div class="pointer files"><div class=\'label label-gray-light\'><i class="fal fa-paperclip margin-right-10px" aria-hidden="true"></i>'.concat(this.elementTarget.dataset.paperworkFilesCount," fichiers</div></div>"):"file"==this.elementTarget.dataset.paperworkType?"<div class='pointer files text-12px '>"+t.no_file+"</div>":"<div role='button' class='w-100  text-overflow' data-action='click->paperwork#edit' data-paperwork-target='content'>"+this.elementTarget.innerHTML+"</div>";this.elementTarget.innerHTML=e}},{key:"edit",value:function(e){var n=this;e.stopPropagation(),this.removePopovers(),this.approvalIconsTarget.classList.add("hidden"),this.contentTarget.classList.add("hidden"),t.ajax({url:"/".concat(this.locale,"/actor/analyse/paperworks/").concat(this.idValue,"/edit"),type:"GET",dataType:"json",error:function(t){console.log(t)},success:function(e){n.elementTarget.insertAdjacentHTML("beforeend",e.html),n.elementTarget.querySelector("[data-field-id]").removeAttribute("initial-hidden"),n.elementTarget.querySelector("[data-field-id]").removeAttribute("hidden"),setTimeout((function(){var e=n.elementTarget.querySelector("select"),r=n.elementTarget.querySelector(".datetimepicker-input");if(e)e.selectize.focus();else if(r)t(r).datetimepicker("show");else{var i=n.elementTarget.querySelector("input.form-control");i.focus(),i.setSelectionRange(i.value.length,i.value.length)}}),200)}})}},{key:"updateStatus",value:function(t){var e=this.defineStatus();t.preventDefault(),t.stopPropagation();var n=this;this.update({paperwork:{status:e}},(function(t){n.statusValue=e,trackPageLoad("Flag a field",{mobility:t.mobility,form_id:t.form_id,paperwork_id:t.id,flag_color:e,url:window.location.href,referrer:document.referrer,event_time:(new Date).toISOString()})}))}},{key:"update",value:function(e,n){this.removePopovers(),t.ajax({url:"/".concat(this.locale,"/actor/analyse/paperworks/").concat(this.idValue),type:"PUT",dataType:"json",data:e,error:function(t){"function"===typeof n&&n(t)},success:function(t){"function"===typeof n&&n(t)}})}},{key:"removePopovers",value:function(){document.querySelectorAll(".popover").forEach((function(t){t.remove()}))}},{key:"buildIcons",value:function(){var t,e=document.getElementById("approval-icons-template").innerHTML,n=Object(o.b)(e);"closed"===this.formStatusValue&&(null===(t=n.querySelector('.badge[status="refused"]'))||void 0===t||t.remove()),this.elementTarget.appendChild(n)}},{key:"defineStatus",value:function(){switch(this.statusValue){case"pending":return"checked";case"checked":return this.element.querySelector("a[status='refused']")?"refused":"pending";default:return"pending"}}}])&&a(n.prototype,r),c&&a(n,c),Object.defineProperty(n,"prototype",{writable:!1}),f}(r.Controller);d(f,"targets",["element","editForm","content","approvalIcons"]),d(f,"values",{id:String,status:String,formStatus:String})}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},i.apply(this,arguments)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return h}));var u,c,d,h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(c,t);var e,n,l,u=a(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"connect",value:function(){i(s(c.prototype),"connect",this).call(this),this.fetchList(this.withQueryUrl())}},{key:"callback",value:function(t){this.fillList(t)}},{key:"fillList",value:function(t){var e=this;t.size>0?(this.listTarget.innerHTML="",t.results.forEach((function(t){return e.listTarget.insertAdjacentHTML("beforeend",e.buildLine(t))}))):this.listTarget.innerHTML=this.buildEmpty(t)}},{key:"buildLine",value:function(t){var e=this.templateLineTarget.innerHTML,n=Object.keys(t);e=e.replaceAll("{{{object-unit_organization_ids}}}",t.unit_organization_ids.join(" ")||""),n.forEach((function(n){e=e.replaceAll("{{{object-".concat(n,"}}}"),t[n])}));var r=!!document.querySelector('[data-type="paperwork"][data-paperwork-resource-id=\''.concat(t.id,"']"));return e=e.replaceAll("{{{already-present}}}",r)}},{key:"buildEmpty",value:function(t){var e=this.templateEmptyTarget.innerHTML;return e=e.replaceAll("{{{query}}}",t.query)}},{key:"withQueryUrl",value:function(){var t,e=this.inputTarget.dataset.currentQuery,n=new URL(this.urlValue),r=null===(t=document.querySelector("#unit_organization_ids_input"))||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.trim())||void 0===t?void 0:t.replaceAll(" ",",");return e&&""!==e&&n.searchParams.set("query",e),r&&""!==r&&n.searchParams.set("unit_organization_ids",r),n}}])&&r(e.prototype,n),l&&r(e,l),Object.defineProperty(e,"prototype",{writable:!1}),c}(n(72).default);u=h,d=["input","reset","list","templateLine","templateEmpty","searchBar"],(c=l(c="targets"))in u?Object.defineProperty(u,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[c]=d},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return c}));var r=n(1),i=n(10),o=n(6);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(g,e);var n,r,u,c=l(g);function g(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),c.apply(this,arguments)}return n=g,r=[{key:"connect",value:function(){Object(i.a)(this),d(this.element.dataset.newData,this.element.id,this.element.innerText)}},{key:"disconnect",value:function(){if(m(this.element)){var t=this.element.id;f(t),h(t)}}},{key:"add",value:function(e){e.preventDefault();var n,r=e.currentTarget,i=r.dataset,a=this.element.closest(".section"),s={id:Object(o.newId)(),paperwork_resource_id:i.paperworkResourceId,title:i.name,new_data:i.newData,icon:r.querySelector("span.icon").innerHTML,position:(parseInt(this.element.dataset.position)||0)+1,mandatory:!1,hidden:!1,unit_organization_ids:i.unitOrganizationIds.trim().split(" ")},l=Object(o.buildPaperworkHtml)(s);p(e),"empty"==this.element.dataset.type?(t("#paperworkModal").modal("hide"),this.element.parentNode.querySelector("[data-sortable-type='paperwork']").insertAdjacentHTML("beforeend",l)):this.element.insertAdjacentHTML("afterend",l);var u=this.element.nextElementSibling;u&&(n=u.nextElementSibling),n&&this.propagatePosition(n,1);var c=Object(o.getStorage)(Object(o.formId)(this.element));Object(o.getStoredSectionFrom)(c,a.id).paperworks.push(s),Object(o.setStorage)(Object(o.formId)(this.element),c)}},{key:"addCondition",value:function(t){var e=Object(o.newId)(),n=t.target.closest("[data-type=paperwork]"),r=Object(o.buildConditionalLogicHtml)({id:e,condition_relation:"and_relation",logic_conditions:[{id:Object(o.newId)(),field_id:n.id,operator_type:"is",value:"",collection:"[]"}],logic_actions:[{id:Object(o.newId)(),field_id:"",operator_type:"show"}]});document.getElementById("conditional-logic-list").insertAdjacentHTML("beforeend",r),Object(o.highlightConditionalLogic)(e)}},{key:"delete",value:function(){var t=this.element.id,e=Object(o.formId)(this.element),n=this.element.closest(".section");this.propagatePosition(this.element.nextElementSibling,-1),this.element.remove();var r=Object(o.getStorage)(e),i=Object(o.getStoredSectionFrom)(r,n.id);i.paperworks.forEach((function(e,n){e.id==t&&i.paperworks.splice(n,1)})),Object(o.setStorage)(e,r)}},{key:"propagatePosition",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Object(o.getStorage)(Object(o.formId)(this.element)),r=this.element.closest(".section"),i=Object(o.getStoredSectionFrom)(n,r.id);t;){var a=t.id,s=t.dataset.position,l=parseInt(s)+e,u=Object(o.getStoredPaperworkFrom)(i,a);t.dataset.position=l,u.position=l,t=t.nextElementSibling,s++}Object(o.setStorage)(Object(o.formId)(this.element),n)}},{key:"toggleAttribute",value:function(t){var e=t.target,n=e.checked,r=e.dataset.attributeTarget;this.updateAttribute(r,n)}},{key:"toggleMandatory",value:function(){var t=!("true"==this.element.dataset.mandatory);this.element.querySelector("input[data-attribute-target=mandatory]").checked=t,this.updateAttribute("mandatory",t)}},{key:"updateAttribute",value:function(t,e){this.element.dataset[t]=e;var n=this.element.closest('[data-type="paperwork"]').id,r=this.element.closest('[data-type="section"]').id,i=Object(o.getStorage)(Object(o.formId)(this.element)),a=Object(o.getStoredSectionFrom)(i,r);Object(o.getStoredPaperworkFrom)(a,n)[t]=e,Object(o.setStorage)(Object(o.formId)(this.element),i)}},{key:"openModal",value:function(){var e=Object(o.buildPaperworkModal)(Object(o.formId)(this.element));this.element.insertAdjacentHTML("beforeend",e),t("#paperworkModal").modal("show"),t("#paperworkModal").on("hidden.bs.modal",(function(){t("#paperworkModal").remove()}))}},{key:"stickDropdown",value:function(){this.element.setAttribute("dropdown-focus","")}},{key:"clickOutside",value:function(){this.hideDropdown(),this.element.removeAttribute("dropdown-focus")}},{key:"hideDropdown",value:function(){t(this.element.querySelector("[data-toggle=dropdown]")).dropdown("hide")}},{key:"highlightConditionField",value:function(){var t=document.getElementById("conditional-logic-sidebar");t.dataset.highlightType="conditionField",t.dataset.highlightId=this.element.id}}],r&&a(n.prototype,r),u&&a(n,u),Object.defineProperty(n,"prototype",{writable:!1}),g}(r.Controller),d=function(t,e,n){document.querySelectorAll('[data-logic-actions-target="field"]').forEach((function(r){r.selectize.addOption([{new_data:t,value:e,name:n}])})),["text","selection"].includes(t)&&document.querySelectorAll('[data-logic-conditions-target="field"]').forEach((function(r){r.selectize.addOption([{new_data:t,value:e,name:n}])}))},h=function(t){document.querySelectorAll('[data-logic-conditions-target="field"], [data-logic-actions-target="field"]').forEach((function(e){e.selectize.removeOption(t)}))},f=function(t){document.querySelectorAll('[data-logic-conditions-target="field"], [data-logic-actions-target="field"]').forEach((function(e){e.selectize.getValue()==t&&e.closest("[logic-condition], [logic-action]").remove()}))},p=function(t){t.target.closest("label").setAttribute("presence","true")},m=function(t){var e,n=t.closest(".section");return!t.classList.contains("sortable-chosen")&&!(null!==n&&void 0!==n&&null!==(e=n.classList)&&void 0!==e&&e.contains("sortable-chosen"))}}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"password",value:function(){var t=this.secretTarget,e=this.iconTarget;"password"==t.type?(e.classList.remove("fa-eye-slash"),e.classList.add("fa-eye"),t.type="text"):(e.classList.remove("fa-eye"),e.classList.add("fa-eye-slash"),t.type="password")}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["icon","secret"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(31);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"checkPassword",value:function(){var t=this.passwordInputTarget;Object(i.a)(t),Object(i.b)(t),Object(i.h)(t.value)&&Object(i.d)("#password-confirmation-block"),this.checkPasswordConfirmation(),this.globalCheck()}},{key:"checkPasswordConfirmation",value:function(){Object(i.c)(this.passwordInputTarget,this.passwordConfirmationInputTarget),this.globalCheck()}},{key:"checkConditions",value:function(){this.conditionInputTarget.checked?(Object(i.f)(this.conditionErrorTarget.id),Object(i.d)(this.submitInputTarget.id)):Object(i.e)(this.conditionErrorTarget.id),this.globalCheck()}},{key:"checkBeforeSubmit",value:function(t){var e=this.passwordInputTarget.value,n=this.passwordConfirmationInputTarget.value;t.preventDefault(),Object(i.g)(e,n)&&this.conditionIsChecked()?this.formTarget.submit():(this.checkPassword(),this.checkPasswordConfirmation(),this.checkConditions())}},{key:"globalCheck",value:function(){var t=Object(i.g)(this.passwordInputTarget.value,this.passwordConfirmationInputTarget.value),e=this.conditionIsChecked();t&&e?(this.submitInputTarget.disabled=!1,this.submitInputTarget.classList.remove("invisible")):this.submitInputTarget.disabled=!0}},{key:"conditionIsChecked",value:function(){return!this.hasConditionInputTarget||this.conditionInputTarget.checked}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c=f,h=["form","passwordInput","passwordConfirmationInput","conditionInput","conditionError","submitInput"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.r(e),n.d(e,"default",(function(){return s}));var s=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){}},{key:"select",value:function(t){var e=t.target,n=e.dataset.templateId,r=document.querySelector(".dropzone"),i=r.dataset.employeeId,o="/profile_photos?employee_id=".concat(i,"&template_id=").concat(n);r.dataset["utils-DropzonesUrlValue"]=o,document.querySelectorAll(".image").forEach((function(t){t.dataset.selected=!1})),e.dataset.selected=!0,Dropzone.forElement(".dropzone").destroy(),Stimulus.controllers.find((function(t){return"utils--dropzones"==t.identifier})).connect()}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(1),i=n(5);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"call",value:function(t){t.preventDefault(),fetch(this.element.href,{method:this.element.dataset.method,headers:{"X-CSRF-Token":Object(i.a)()}})}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller)},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return k}));var r=n(1),i=n(10),o=n(37),a=n.n(o),s=n(27),l=n(6),u=n(45);function c(){c=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new M(r||[]);return i(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var k={};u(k,a,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&r.call(O,a)&&(k=O);var x=w.prototype=v.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var l=h(t[i],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,n,r){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:y,configurable:!0}),y.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(j.prototype),u(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(x),u(x,l,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function d(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function h(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,w(r.key),r)}}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return b(t)}(this,n)}}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function y(t,e,n){return(e=w(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var k=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(k,e);var n,r,o,f,v,w=g(k);function k(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,k);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return y(b(t=w.call.apply(w,[this].concat(n))),"popup",a.a.mixin({icon:"warning",title:t.textValue.title_html,html:t.textValue.description_html,confirmButtonText:t.textValue.confirm,cancelButtonText:t.textValue.cancel,showCancelButton:!0,showCloseButton:!0,closeButtonHtml:'<i class="fas fa-times-circle text-20px"></i>',buttonsStyling:!1,customClass:{confirmButton:"button button-red m-2",cancelButton:"button button-white m-2"}})),t}return n=k,r=[{key:"connect",value:function(){Object(i.a)(this),this.sortable()}},{key:"sortable",value:function(){h(document.querySelectorAll(".nested-sortable")).forEach((function(t){new s.a(t,{group:"nested",store:null,animation:40,fallbackOnBody:!1,swapThreshold:.65,dragClass:"group-dragging-item",filter:".empty-line",handle:".move-handle",fallbackTolerance:30,onStart:function(t){t.item.classList.add("group-dragging-item"),window.addEventListener("drag",(function(t){j(t)}))},onMove:function(t,e){return t.dragged.dataset.type==t.related.closest("[data-sortable-type]").dataset.sortableType},onEnd:function(t){"section"==t.item.dataset.type?_(t):O(t),t.item.classList.remove("group-dragging-item"),window.removeEventListener("drag",(function(t){j(t)})),"paperwork"==t.item.dataset.type&&t.to.closest("[data-type=section]").id}})}))}},{key:"storeTitle",value:function(){var t=this.element.id,e=Object(l.getStorage)(Object(l.formId)(this.element));Object(l.getStoredSectionFrom)(e,t).title=this.inputTarget.innerHTML.replace(/&nbsp;/g," ").trim(),Object(l.setStorage)(Object(l.formId)(this.element),e)}},{key:"storeDescription",value:function(){var t=this.element.id,e=Object(l.getStorage)(Object(l.formId)(this.element));Object(l.getStoredSectionFrom)(e,t).description=this.descriptionTarget.innerHTML.replace(/&nbsp;/g," ").trim(),Object(l.setStorage)(Object(l.formId)(this.element),e)}},{key:"add",value:function(){var t="new_"+Date.now(),e=parseInt(this.element.dataset.position)+1,n=Object(l.buildSectionHtml)(t,e,"","");this.element.insertAdjacentHTML("afterend",n),Object(u.a)('.section[id="'.concat(t,'"]'),80,"#page-content");var r=this.element.nextElementSibling.nextElementSibling;r&&this.propagatePosition(r,1);var i=Object(l.getStorage)(Object(l.formId)(this.element));i.sections.push({id:t,title:"",description:"",paperworks:[],position:e,iterable:!1}),Object(l.setStorage)(Object(l.formId)(this.element),i)}},{key:"propagatePosition",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Object(l.getStorage)(Object(l.formId)(this.element));t;){var r=t.dataset.position,i=parseInt(r)+e;t.dataset.position=i;var o=t.id;Object(l.getStoredSectionFrom)(n,o).position=i,t=t.nextElementSibling,r++}Object(l.setStorage)(Object(l.formId)(this.element),n)}},{key:"delete",value:(f=c().mark((function t(e){var n,r,i,o;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),!this.lastElement()){t.next=5;break}console.log("last element"),t.next=9;break;case 5:return t.next=7,this.popup.fire();case 7:(n=t.sent).isConfirmed?(r=this.element.id,i=Object(l.formId)(this.element),this.propagatePosition(this.element.nextElementSibling,-1),this.element.remove(),(o=Object(l.getStorage)(i)).sections.forEach((function(t,e){t.id==r&&o.sections.splice(e,1)})),Object(l.setStorage)(i,o)):n.dismiss;case 9:case"end":return t.stop()}}),t,this)})),v=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=f.apply(t,e);function o(t){d(i,n,r,o,a,"next",t)}function a(t){d(i,n,r,o,a,"throw",t)}o(void 0)}))},function(t){return v.apply(this,arguments)})},{key:"lastElement",value:function(){return 1==this.element.parentNode.children.length}},{key:"toggleAttribute",value:function(t){var e=t.target,n=e.dataset.attributeTarget;this.element.dataset[n]=e.checked;var r=e.closest('[data-type="section"]').id,i=Object(l.getStorage)(Object(l.formId)(this.element));Object(l.getStoredSectionFrom)(i,r)[n]=e.checked,Object(l.setStorage)(Object(l.formId)(this.element),i)}},{key:"stickDropdown",value:function(){this.element.setAttribute("dropdown-focus","")}},{key:"clickOutside",value:function(){this.hideDropdown(),this.element.removeAttribute("dropdown-focus")}},{key:"hideDropdown",value:function(){t(this.element.querySelector("[data-toggle=dropdown]")).dropdown("hide")}}],r&&p(n.prototype,r),o&&p(n,o),Object.defineProperty(n,"prototype",{writable:!1}),k}(r.Controller);y(k,"values",{text:Object}),y(k,"targets",["input","iterable","description"]);var _=function(t){for(var e=t.target.children,n=t.oldDraggableIndex,r=t.newDraggableIndex,i=r-n,o=i>0?r:n,a=i>0?n:r;a!==o;){e[a].dataset.position=a,a++}e[o].dataset.position=o;var s=Object(l.getStorage)(Object(l.formId)(t.target));h(e).forEach((function(t){Object(l.getStoredSectionFrom)(s,t.id).position=t.dataset.position})),Object(l.setStorage)(Object(l.formId)(t.target),s)},O=function(t){var e=t.from,n=t.to;x(e),e!=n&&x(n)},x=function(t){var e=t.closest(".section"),n=t.querySelectorAll("[data-type=paperwork]");n.forEach((function(t,e){return t.dataset.position=e}));var r=Object(l.getStorage)(Object(l.formId)(t));Object(l.getStoredSectionFrom)(r,e.id).paperworks=h(n).map((function(t){return E(t)})),Object(l.setStorage)(Object(l.formId)(t),r)},E=function(t){return{id:t.id,paperwork_resource_id:t.dataset.paperworkResourceId,title:t.querySelector('[data-paperwork-resources-target="input"]').innerText,position:parseInt(t.dataset.position),new_data:t.dataset.newData,hidden:t.dataset.hidden,mandatory:t.dataset.mandatory,icon:t.querySelector("span.icon").innerHTML}},j=function(t){var e=document.querySelector("[data-form-resources-target=list][data-sortable-type=section"),n=t.clientY,r=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom,o=window.innerHeight;n<100&&r<90&&document.getElementById("page-content").scrollBy(0,-1),n>o-100&&i>o-30&&document.getElementById("page-content").scrollBy(0,1)}}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},i.apply(this,arguments)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return h}));var u,c,d,h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(c,t);var e,n,l,u=a(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"confirm",value:function(t){i(s(c.prototype),"confirm",this).call(this,t)}},{key:"confirmRequest",value:function(t){var e=this;this.handleRequest(t),document.querySelector("body").innerHTML=this.message(),setTimeout((function(){window.open(e.element.dataset.redirectionUrl,"_self")}),2e3)}},{key:"message",value:function(){return"close"==this.element.dataset.type?document.getElementById("closedTrackMessage").innerHTML:document.getElementById("cancelledTrackMessage").innerHTML}}])&&r(e.prototype,n),l&&r(e,l),Object.defineProperty(e,"prototype",{writable:!1}),c}(n(36).default);u=h,c="values",d={text:Object,confirm:Object,cancel:Object,buttonType:String,details:Object},(c=l(c))in u?Object.defineProperty(u,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[c]=d},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},i.apply(this,arguments)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return h}));var u,c,d,h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(c,t);var e,n,l,u=a(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"confirm",value:function(t){i(s(c.prototype),"confirm",this).call(this,t)}},{key:"beforeEnd",value:function(t){t.isConfirmed&&(document.getElementById("handover-texts").insertAdjacentHTML("beforeend",'<input type="hidden" name="finalized" id="finalized" value="true">'),document.getElementById("handover-texts").submit())}}])&&r(e.prototype,n),l&&r(e,l),Object.defineProperty(e,"prototype",{writable:!1}),c}(n(36).default);u=h,c="values",d={text:Object,confirm:Object,cancel:Object,buttonType:String},(c=l(c))in u?Object.defineProperty(u,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[c]=d},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},i.apply(this,arguments)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}(this,n)}}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(h,t);var e,n,c,d=a(h);function h(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return u(s(t=d.call.apply(d,[this].concat(n))),"questions",Array.from(document.querySelectorAll('[data-selector="'.concat(t.selectorValue,'"]')))),t}return e=h,(n=[{key:"shouldFire",value:function(){return this.withoutMandatoryInputsValue&&this.surveyIsEmpty()}},{key:"confirm",value:function(t){i(l(h.prototype),"confirm",this).call(this,t)}},{key:"notFired",value:function(){this.handleRequest(this.confirmValue)}},{key:"surveyIsEmpty",value:function(){var t=this;return!this.questions.some((function(e){return t.isFilled(e)}))}},{key:"isFilled",value:function(t){return"free_field"===t.dataset.type?""!==t.querySelector("textarea").value:Array.from(t.querySelectorAll("a")).some((function(t){return t.classList.contains("selected")}))}}])&&r(e.prototype,n),c&&r(e,c),Object.defineProperty(e,"prototype",{writable:!1}),h}(n(36).default);u(d,"values",{text:Object,confirm:Object,cancel:Object,buttonType:String,withoutMandatoryInputs:Boolean,selector:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},i.apply(this,arguments)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return h}));var u,c,d,h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(c,t);var e,n,l,u=a(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"confirm",value:function(t){i(s(c.prototype),"confirm",this).call(this,t)}},{key:"confirmRequest",value:function(t){this.handleRequest(t),document.getElementById("sidebar-profile")&&setTimeout((function(){location.reload()}),500)}},{key:"afterEnd",value:function(){document.getElementById("hr-sidebar")&&document.getElementById("hr-sidebar").setAttribute("activated","false");var t=Tabulator.findTable("#tracks")[0];t&&t.updateData([this.detailsValue]).then((function(){t.setData(t.getData());var e=Number.parseInt(document.getElementById("tracks-count").innerText,10);t.getFilters()[2].value.includes(this.detailsValue.status)||(document.getElementById("tracks-count").innerText=e-1)}))}}])&&r(e.prototype,n),l&&r(e,l),Object.defineProperty(e,"prototype",{writable:!1}),c}(n(36).default);u=h,c="values",d={text:Object,confirm:Object,cancel:Object,buttonType:String,details:Object},(c=l(c))in u?Object.defineProperty(u,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[c]=d},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}(this,n)}}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return c}));var c=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(d,e);var n,s,u,c=o(d);function d(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return l(a(t=c.call.apply(c,[this].concat(n))),"state","unchecked"),t}return n=d,(s=[{key:"connect",value:function(){}},{key:"selectAllToogle",value:function(t){"checked"===this.state?this.unselectAll():this.selectAll()}},{key:"selectAll",value:function(){var t=this.table;this.uncheckAll(),t.getRows().forEach((function(t){t.getElement().querySelector('[tabulator-field="bulk_select"] input[type="checkbox"]').click()})),this.hasSelectAllElementTarget&&(this.selectAllElementTarget.checked=!0),this.state="checked"}},{key:"unselectAll",value:function(){this.uncheckAll(),this.state="unchecked"}},{key:"hoverLine",value:function(t){var e=t.target.closest(".tabulator-row");t.target.checked?(e.classList.add("bg-blue-ultra-light","checked"),t.target.parentNode.classList.add("checked")):(e.classList.remove("bg-blue-ultra-light","checked"),t.target.parentNode.classList.remove("checked")),this.updatePlaceholder()}},{key:"uncheckAll",value:function(){var e=t(".tabulator-row.checked"),n=this;e.each((function(){this.classList.remove("checked"),t(this).find(".bulk-select")[0].classList.remove("checked"),t(this).find("input[type=checkbox]").prop("checked",!1),t(this).removeClass("bg-blue-ultra-light"),n.updatePlaceholder()})),this.hasSelectAllElementTarget&&(this.selectAllElementTarget.checked=!1)}},{key:"updatePlaceholder",value:function(){var e=t(".tabulator-row.checked");e.length>0?(this.placeholderElementTarget.innerHTML=e.length+" "+this.translationsValue.label,this.actionsElementTarget.classList.add("visible"),this.actionsElementTarget.classList.remove("invisible")):(this.actionsElementTarget.classList.remove("visible"),this.actionsElementTarget.classList.add("invisible"))}},{key:"followupModal",value:function(e){var n=t(".tabulator-row.checked"),r=this.application.getControllerForElementAndIdentifier(document.querySelector("[data-controller=form-followup]"),"form-followup");r&&r.displayModal(e,n)}},{key:"table",get:function(){return Tabulator.findTable(this.tableValue)[0]}}])&&r(n.prototype,s),u&&r(n,u),Object.defineProperty(n,"prototype",{writable:!1}),d}(n(1).Controller);l(c,"targets",["placeholderElement","actionsElement","toolbar","selectAllElement"]),l(c,"values",{table:String,translations:Object})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return g}));var r=n(1),i=n(22),o=n(10);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,n,r,l=h(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t,e,n=this;Object(o.a)(this),t=setInterval((function(){(e=Tabulator.findTable(n.tableValue)[0])&&(clearInterval(t),n._renderColumns(e))}),1e3)}},{key:"toggleMenu",value:function(){var t="true"==this.selectTarget.parentElement.dataset.open;this.selectTarget.parentElement.dataset.open=!t}},{key:"closeMenu",value:function(){this.selectTarget.parentElement.dataset.open=!1}},{key:"search",value:function(){var t=s(document.querySelectorAll(".visible-field-item"));Object(i.a)(this.searchTarget.value,t)}},{key:"toggleColumn",value:function(t){this.table.toggleColumn(t.currentTarget.dataset.columnName);var e=1==this.table.getColumn(t.currentTarget.dataset.columnName).isVisible()?"show":"hide";trackPageLoad("Edit field visibility",{edit_type:e,url:window.location.href,referrer:document.referrer,event_time:(new Date).toISOString()}),this._renderColumns(this.table),this.saveColumnState(),""!=this.searchTarget.value&&this.search()}},{key:"_renderColumns",value:function(t){var e=this,n=t.getColumns().map((function(t){var n={columnName:t.getField(),isVisible:t.isVisible(),columnTitle:t.getDefinition().title},r=document.getElementById("visible_fields").innerHTML;return e.exceptionKeysValue.includes(n.columnName)||void 0==n.columnTitle?r="":Object.entries(n).forEach((function(t){var e=a(t,2),n=e[0],i=e[1];return r=r.replaceAll("{{".concat(n,"}}"),i)})),r})).join("");this.menuTarget.querySelectorAll(".visible-field").forEach((function(t){return t.remove()})),this.menuTarget.insertAdjacentHTML("beforeend",n)}},{key:"table",get:function(){return Tabulator.findTable(this.tableValue)[0]}},{key:"getColumns",value:function(){return this.table.getColumns()}},{key:"saveColumnState",value:function(){var t=this,e={};this.getColumns().forEach((function(n){var r=n.getField();if(!t.exceptionKeysValue.includes(r)){var i=n.isVisible();e[r]={visible:i}}})),localStorage.setItem("tabulator-"+this.tableValue,JSON.stringify(e))}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);p(g,"targets",["menu","select","search"]),p(g,"values",{table:String,exception_keys:Array})},function(t,e,n){"use strict";function r(){r=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new M(r||[]);return o(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var k={};c(k,s,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&i.call(O,s)&&(k=O);var x=w.prototype=v.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(r,o,a,s){var l=h(t[r],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}})}function S(e,n,r){var i=f;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function P(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(j.prototype),c(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(x),c(x,u,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function i(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,l,"next",t)}function l(t){i(a,r,o,s,l,"throw",t)}s(void 0)}))}}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return p}));var d,h,f,p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(h,t);var e,n,i,u,c,d=l(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return e=h,n=[{key:"connect",value:function(){var t=this;setInterval((function(){return t.handleTimeout()}),60*this.delayInMinutesValue*1e3)}},{key:"handleTimeout",value:(c=o(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.isTimeout();case 2:if(!t.sent){t.next=4;break}window.location.reload();case 4:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"isTimeout",value:(u=o(r().mark((function t(){var e,n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("/check_session_timeout",{headers:{Accept:"application/json"}});case 2:return e=t.sent,t.next=5,e.json();case 5:return n=t.sent,t.abrupt("return",200===n.status&&n.time_left<=0);case 7:case"end":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})}],n&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),h}(n(1).Controller);d=p,h="values",f={delayInMinutes:{type:Number,default:1}},(h=c(h))in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.connectValue&&setTimeout(this.track.bind(this),100)}},{key:"track",value:function(){if("true"==document.body.dataset.trueUser){var t=this.element.dataset,e=function(t){var e={},n=Object.keys(t).filter((function(t){return t.startsWith("tracked")&&"trackedEvent"!=t}));return n.forEach((function(n){e[n.replace("tracked","").toLowerCase()]=t[n]})),e.event_time=(new Date).toISOString(),e}(t),n=t.trackedEvent;analytics.track(n,e)}}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,u="values",c={connect:Boolean},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(1),i=n(65),o=n.n(i);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(u,t);var e,n,r,i=l(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){}},{key:"goToScreen",value:function(t){var e=t.currentTarget.dataset.goToScreen;this.screenTargets.forEach((function(t){t.id==e?(t.classList.remove("d-none"),t.classList.add("d-flex")):(t.classList.add("d-none"),t.classList.remove("d-flex"))})),window.scrollTo(0,0)}},{key:"startLoader",value:function(){var t=this;!function(t){var e=new o.a.Circle(container,{color:"#2e5bec",trailColor:"#e6edf6",strokeWidth:4,easing:"easeInOut",duration:t,text:{style:{color:"#2A3453",position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0},step:function(t,e){var n=Math.round(100*e.value());0===n?e.setText(""):e.setText(n+" %")}});e.animate(1)}(5e3),function(t,e){setTimeout(t,e)}((function(){window.location.pathname=t.goToPathValue}),5500)}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c(h,"targets",["button","screen"]),c(h,"values",{goToPath:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t=this,e=setInterval((function(){t.hasListTarget&&(clearInterval(e),t.displayOrHideBlankState(),t.observer=new MutationObserver(t.displayOrHideBlankState.bind(t)),t.observer.observe(t.listTarget,{childList:!0})),t.hasListContainerTarget&&""===t.listContainerTarget.innerHTML&&!t.hasListTarget&&(clearInterval(e),t.showBlankState())}),200)}},{key:"displayOrHideBlankState",value:function(){this.isListEmpty()?this.showBlankState():this.hideBlankState()}},{key:"showBlankState",value:function(){this.blankStateTarget.classList.remove("d-none"),this.blankStateTarget.classList.add("d-flex")}},{key:"hideBlankState",value:function(){this.blankStateTarget.classList.add("d-none"),this.blankStateTarget.classList.remove("d-flex")}},{key:"isListEmpty",value:function(){return 0===this.listTarget.childElementCount}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["list","blankState","listContainer"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){h(this.cableValue)}},{key:"disconnect",value:function(){f(this.cableValue)}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,u="values",c={cable:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c;var h=function(t){App.cable.subscriptions.create(p(t),{received:function(t){m(t)}})},f=function(t){App.cable.subscriptions.subscriptions.forEach((function(e){e.identifier==JSON.stringify(p(t))&&App.cable.subscriptions.remove(e)}))},p=function(t){var e=t.split(/_(\d+)/);return{channel:"TopicsChannel",topic_type:e[0],topic_id:e[1]}},m=function(e){var n=document.body.dataset.currentUserId,r=e.user_id,i=e.message_id,o=t(e.message_partial);n!=r&&t("#internal-notes #index").prepend(o),i&&t("#message_"+i).slideUp("normal",(function(){t(this).remove()}))}}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.inputTarget.addEventListener("input",this.updateCounter.bind(this))}},{key:"updateCounter",value:function(){this.counterTarget.innerText=this.inputTarget.value.length,this.hasLimitTarget&&this.hasLimitValue&&this.toggletLimitError()}},{key:"toggletLimitError",value:function(){this.inputTarget.value.length>this.limitValue?this.addLimitError():this.removeLimitError()}},{key:"addLimitError",value:function(){this.inputTarget.classList.add("border-red-error"),this.counterTarget.parentNode.classList.add("text-red-error")}},{key:"removeLimitError",value:function(){this.inputTarget.classList.remove("border-red-error"),this.counterTarget.parentNode.classList.remove("text-red-error")}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);s(u,"targets",["input","counter","limit"]),s(u,"values",{limit:Number})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(1),i=n(19);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"copyWithFlash",value:function(t){t.preventDefault();var e=this.element.dataset.copyText;this._copy(e);var n=this.element.dataset.notificationText;Object(i.a)(n)}},{key:"copyCurrentUrlWithFlash",value:function(t){t.preventDefault();var e=window.location.href;this._copy(e);var n=this.element.dataset.notificationText;Object(i.a)(n)}},{key:"_copy",value:function(t){var e=document.createElement("input");e.type="text",e.value=t,e.id="clipboard-input",this.element.parentElement.append(e),e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),e.remove()}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller)},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"toggle",value:function(){var t=this;["list","more","less"].forEach((function(e){t["".concat(e,"Target")].classList.toggle("d-none")}))}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["more","less","list"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t=this;this.element.addEventListener("paste",(function(t){t.preventDefault();var e=(t.originalEvent||t).clipboardData.getData("text/plain");document.execCommand("insertText",!1,h(e))})),this.element.addEventListener("focusout",(function(e){t.allowFormatValue||(t.element.innerText=h(t.element.innerText))})),this.element.addEventListener("keydown",(function(e){"Enter"!==e.key||t.enterKeyValue?"Tab"===e.key&&e.preventDefault():(e.preventDefault(),t.element.blur())}))}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,u="values",c={url:String,enterKey:{type:Boolean,default:!1},allowFormat:{type:Boolean,default:!0}},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c;var h=function(t){return t.trim().replaceAll("\r\n"," ").replaceAll("\r"," ").replaceAll("\n"," ").replaceAll("\t"," ")}},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){this.hasUrlValue?this.load():console.error("You need to pass a url to fetch the remote content")}},{key:"load",value:function(){var e=this;t.ajax({url:this.urlValue,dataType:"html",success:function(t){e.element.innerHTML=t},error:function(){window.location.reload()}})}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,u="values",c={url:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,i,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){this.observer=new MutationObserver(this.listenCountMutation.bind(this)),this.observer.observe(this.element,{attributes:!0})}},{key:"listenCountMutation",value:function(t){var e,n=r(t);try{for(n.s();!(e=n.n()).done;){var i=e.value,o=i.target.dataset["utils-CountersCountValue"];"data-utils--counters-count-value"==i.attributeName&&o&&(this.updateCount(),this.updateWording())}}catch(a){n.e(a)}finally{n.f()}}},{key:"updateCount",value:function(){this.countTarget.innerText=this.countValue}},{key:"updateWording",value:function(){this.textTarget.innerText=this.defineWording()}},{key:"defineWording",value:function(){switch(parseInt(this.countValue)){case 0:return this.wordingValue.zero;case 1:return this.wordingValue.one;default:return this.wordingValue.other}}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(1).Controller);u(d,"targets",["count","text"]),u(d,"values",{count:Number,wording:Object})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.r(e),n.d(e,"default",(function(){return s}));var s=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.element.addEventListener("mouseover",(function(t){var e=t.target.getAttribute("class");if(e){var n=document.getElementById(e);n.style.display="block",document.addEventListener("mouseout",(function(){n.style.display="none"})),window.onmousemove=function(t){var e=t.x,r=t.y;n.style.left=e-50+"px",n.style.top=r-50+"px"}}}))}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller)},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){var e=this.defineDate();t(this.element).datetimepicker({format:this.formatValue,locale:this.localeValue,date:e}),this.element.disabled=!1}},{key:"defineDate",value:function(){return""!=this.element.value?moment(this.element.value,this.formatValue).toDate():moment(this.defaultDate,this.formatValue).toDate()}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,u="values",c={defaultDate:String,format:String,locale:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){var e=this;t(this.element).sortable({update:function(){t.ajax({url:e.urlValue,type:"POST",dataType:"script",data:t(e.element).sortable("serialize")})}})}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,u="values",c={url:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.buildList()}},{key:"toggleDropdown",value:function(){this.listTarget.classList.toggle("hidden")}},{key:"toggleItem",value:function(t){t.stopPropagation()}},{key:"selectAll",value:function(){this.listTarget.querySelectorAll("input[type='checkbox']").forEach((function(t){t.checked=!0}))}},{key:"clearAll",value:function(){this.listTarget.querySelectorAll("input[type='checkbox']").forEach((function(t){t.checked=!1}))}},{key:"hideList",value:function(){this.listTarget.classList.add("hidden")}},{key:"buildList",value:function(){var t=this.itemsValue.map((function(t){var e=1==t.checked?"checked":"";return"\n      <li class='list-group-item'>\n        <label>\n          <input type=\"checkbox\" ".concat(e,' value="').concat(t.id,'" data-action="change->dropdown#toggleItem" name="paperwork_ids[]" />\n          ').concat(t.name,"\n        </label>\n      </li>\n    ")})).join("");this.listTarget.innerHTML=t}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);s(u,"targets",["list","selectAll","clearAll"]),s(u,"values",{items:Array})},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,l,u=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,(r=[{key:"connect",value:function(){Dropzone.autoDiscover=!1,this.initDropzone()}},{key:"options",value:function(){var t={paramName:this.paramNameValue,acceptedFiles:this.extensionsValue,timeout:18e4,maxFiles:this.maxFilesValue||1,maxFilesize:this.maxSizeValue};return"true"==this.multipleValue?i(i({},t),{uploadMultiple:!0,parallelUploads:5}):i({},t)}},{key:"initDropzone",value:function(){var e,n=this.urlValue,r=this.requestTypeValue,o=document.getElementById(this.elementIdValue),a=new Dropzone(this.element,i(i({},this.options()),{},{queuecomplete:function(){t.ajax({url:n,type:r,dataType:"script",data:{drop:e,elements:o?JSON.parse(o.dataset.data):null}})},drop:function(t){},successmultiple:function(t,n,r){e="success",o&&(""==o.dataset.data||void 0==o.dataset.data?o.dataset.data=JSON.stringify(n.elements):o.dataset.data=JSON.stringify(JSON.parse(o.dataset.data).concat(n.elements)))},error:function(t,n,r){e="error"},success:function(t,n,r){e="success"}}));"true"==this.disabledValue&&a.disable()}}])&&o(n.prototype,r),l&&o(n,l),Object.defineProperty(n,"prototype",{writable:!1}),c}(n(1).Controller);u(d,"values",{url:String,extensions:String,maxSize:String,maxFiles:String,requestType:String,paramName:String,disabled:String,multiple:String,elementId:String})}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"download",value:function(){var t=this.urlValue,e=this.filenameValue;fetch(t).then((function(t){return t.blob()})).then((function(t){var n=document.createElement("a");n.href=URL.createObjectURL(t),n.download=e,n.click()})).catch(console.error)}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,u="values",c={url:String,filename:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return P}));var r=n(1),i=n(51),o=n(52),a=n.n(o),s=n(53),l=n(54),u=n(55),c=n(56),d=n(57),h=n(58),f=n(59),p=n(60),m=n(61),g=n(62);function b(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){E(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,j(r.key),r)}}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function O(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=x(t);if(e){var i=x(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}function E(t,e,n){return(e=j(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function j(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var S={fr:s.French,en:"default",de:l.German,es:u.Spanish,nl:c.Dutch,ar:d.Arabic,cs:h.Czech,pt:f.Portuguese,sk:p.Slovak,it:m.Italian,pl:g.Polish},P=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(s,t);var e,n,r,o=O(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return e=s,(n=[{key:"connect",value:function(){var t=this.selectorValue;Object(i.a)("#".concat(t),w(w(w({},this.basicOptions()),this.functionOptions()),this.rangeOptions()))}},{key:"basicOptions",value:function(){var t=this.optionsValue;return t.defaultDate&&(t.defaultDate=[T(t.defaultDate[0]),T(t.defaultDate[1])]),{mode:t.mode,dateFormat:t.dateFormat,locale:S[document.querySelector("html").lang||"en"],showMonths:t.showMonths,defaultDate:t.defaultDate||null}}},{key:"functionOptions",value:function(){var t=this.identifierValue,e=this.callbackValue;return{onChange:function(n,r,i){C(),2==n.length&&Stimulus.controllers.find((function(e){return e.identifier==t}))[e](n)},onOpen:function(t,e,n){C()},onMonthChange:function(){C()},onYearChange:function(){C()}}}},{key:"rangeOptions",value:function(){if(this.hasRangeValue){var t=this.rangeValue;return{plugins:[new a.a({input:"#".concat(t)})]}}}}])&&k(e.prototype,n),r&&k(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(r.Controller);E(P,"values",{identifier:String,callback:String,selector:String,range:String,options:Object});var C=function(){b(document.querySelectorAll(".flatpickr-day.nextMonthDay")).forEach((function(t){return t.classList.remove("hidden")})),b(document.querySelectorAll(".flatpickr-day.prevMonthDay")).forEach((function(t){return t.classList.remove("hidden")}))},T=function(t){var e=document.querySelector("html").lang||"en";return moment(t).locale(e).format("DD MMM Y").replaceAll(".","")}},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,a=[{key:"connect",value:function(){t(this.element).minicolors({letterCase:"uppercase",change:this._updateInput.bind(this)})}},{key:"_updateInput",value:function(e){e&&this.checkContrastValue&&this._isValidContrastRatio(e)?(this._hideError(),this._previewColor(),t(this.element.form).submit()):e&&this.checkContrastValue?(this._showError(),flash(this.messageValue,"alert")):(this._showError(),flash(this.invalidMessageValue,"alert"))}},{key:"_isValidContrastRatio",value:function(){var t=function(t){var e=parseInt(t.slice(1),16);return{r:e>>16&255,g:e>>8&255,b:255&e}}((arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||this.element.value),e=255,n=255,r=255,i=h(t.r,t.g,t.b),o=h(e,n,r),a=(o+.05)/(i+.05);return i>o&&(a=(i+.05)/(o+.05)),a>=3}},{key:"_previewColor",value:function(){if(this.hasPreviewTargetValue){var t=this.element.value;document.documentElement.style.setProperty("--test-color",t),document.documentElement.style.setProperty("--test-color-hover",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t=t.replace(/^#/,"");var n,r,i=parseInt(t.substring(0,2),16)/255,o=parseInt(t.substring(2,4),16)/255,a=parseInt(t.substring(4,6),16)/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=(s+l)/2;if(s===l)n=r=0;else{var c=s-l;switch(r=u>.5?c/(2-s-l):c/(s+l),s){case i:n=(o-a)/c+(o<a?6:0);break;case o:n=(a-i)/c+2;break;case a:n=(i-o)/c+4}n=Math.round(60*n)}return r=Math.round(100*r),u=Math.round(100*u)+e,"hsl(".concat(n,", ").concat(r,"%, ").concat(u,"%)")}(t,-4))}}},{key:"_showError",value:function(){this.element.closest(".form-group").classList.add("has-error")}},{key:"_hideError",value:function(){this.element.closest(".form-group").classList.remove("has-error")}}],a&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);function h(t,e,n){var r=[t,e,n].map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}));return.2126*r[0]+.7152*r[1]+.0722*r[2]}l=d,u="values",c={checkContrast:Boolean,message:String,invalidMessage:String,previewTarget:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(6);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"moveUp",value:function(){var t=this.currentTarget,e=t.previousElementSibling;p(e)&&this.swap(t,e)}},{key:"moveDown",value:function(){var t=this.currentTarget,e=t.nextElementSibling;p(e)&&this.swap(e,t)}},{key:"swap",value:function(t,e){t.parentNode.insertBefore(t,e);var n=Object(i.getStorage)(Object(i.formId)(this.element)),r=t.getAttribute("data-conditional-logics-id-value");n.conditional_logics.find((function(t){return t.id==r})).position-=1;var o=e.getAttribute("data-conditional-logics-id-value");n.conditional_logics.find((function(t){return t.id==o})).position+=1,Object(i.setStorage)(Object(i.formId)(this.element),n)}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);function p(t){return!!t&&"current"===t.getAttribute("data-utils--orderables-target")}c=f,h=["current"],(d=u(d="targets"))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"password",value:function(){var t=this.secretTarget,e=this.iconTarget;"password"==t.type?(e.classList.remove("fa-eye-slash"),e.classList.add("fa-eye"),t.type="text"):(e.classList.remove("fa-eye"),e.classList.add("fa-eye-slash"),t.type="password")}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["icon","secret"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return p}));var r=n(1),i=n(90),o=n.n(i);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d,h,f,p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(u,t);var e,n,r,i=l(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){this.phoneInput=o()(this.inputTarget,{preferredCountries:["fr","us","be","gb","de","pl","ma"]}),this._changeValue()}},{key:"verify",value:function(){var t=this._checkPresence(),e=this.phoneInput.isValidNumber();!t||!e&&this.inputTarget.value.trim()?this._invalidateInput(t):this._validateInput()}},{key:"_checkPresence",value:function(){return!this.inputTarget.required||""!=this.inputTarget.value.trim()}},{key:"_validateInput",value:function(){this.inputTarget.dataset.validated=!0,this.element.classList.remove("has-error"),this._removeErrorMessage(),this._changeValue()}},{key:"_invalidateInput",value:function(t){this.inputTarget.dataset.validated=!1,this.element.classList.add("has-error"),this._addErrorMessage(t)}},{key:"_addErrorMessage",value:function(t){this._removeErrorMessage();var e=this._defineErrorMessageId(t),n=document.getElementById(e).innerHTML;this.element.insertAdjacentHTML("beforeend",n)}},{key:"_defineErrorMessageId",value:function(t){return t?"error-format":"error-presence"}},{key:"_removeErrorMessage",value:function(){var t=this.element.querySelector("span.help-block");t&&t.remove()}},{key:"_changeValue",value:function(){this.inputTarget.value=this.phoneInput.getNumber()}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);d=p,f=["input"],(h=c(h="targets"))in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f},function(t,e,n){var r;r=function(t){"use strict";return function(){for(var e=[["Afghanistan (\u202b\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646\u202c\u200e)","af","93"],["Albania (Shqip\xebri)","al","355"],["Algeria (\u202b\u0627\u0644\u062c\u0632\u0627\u0626\u0631\u202c\u200e)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (\u0540\u0561\u0575\u0561\u057d\u057f\u0561\u0576)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (\xd6sterreich)","at","43"],["Azerbaijan (Az\u0259rbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (\u202b\u0627\u0644\u0628\u062d\u0631\u064a\u0646\u202c\u200e)","bh","973"],["Bangladesh (\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c)","by","375"],["Belgium (Belgi\xeb)","be","32"],["Belize","bz","501"],["Benin (B\xe9nin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (\u0f60\u0f56\u0fb2\u0f74\u0f42)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (\u0411\u043e\u0441\u043d\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (\u1780\u1798\u17d2\u1796\u17bb\u1787\u17b6)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (R\xe9publique centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (\u4e2d\u56fd)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (\u202b\u062c\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202c\u200e)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xf4te d\u2019Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599",0],["Cyprus (\u039a\u03cd\u03c0\u03c1\u03bf\u03c2)","cy","357"],["Czech Republic (\u010cesk\xe1 republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (Rep\xfablica Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (\u202b\u0645\u0635\u0631\u202c\u200e)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (F\xf8royar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane fran\xe7aise)","gf","594"],["French Polynesia (Polyn\xe9sie fran\xe7aise)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (\u10e1\u10d0\u10e5\u10d0\u10e0\u10d7\u10d5\u10d4\u10da\u10dd)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (\u0395\u03bb\u03bb\u03ac\u03b4\u03b1)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guin\xe9e)","gn","224"],["Guinea-Bissau (Guin\xe9 Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (\u9999\u6e2f)","hk","852"],["Hungary (Magyarorsz\xe1g)","hu","36"],["Iceland (\xcdsland)","is","354"],["India (\u092d\u093e\u0930\u0924)","in","91"],["Indonesia","id","62"],["Iran (\u202b\u0627\u06cc\u0631\u0627\u0646\u202c\u200e)","ir","98"],["Iraq (\u202b\u0627\u0644\u0639\u0631\u0627\u0642\u202c\u200e)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (\u202b\u05d9\u05e9\u05e8\u05d0\u05dc\u202c\u200e)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (\u65e5\u672c)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (\u202b\u0627\u0644\u0623\u0631\u062f\u0646\u202c\u200e)","jo","962"],["Kazakhstan (\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (\u202b\u0627\u0644\u0643\u0648\u064a\u062a\u202c\u200e)","kw","965"],["Kyrgyzstan (\u041a\u044b\u0440\u0433\u044b\u0437\u0441\u0442\u0430\u043d)","kg","996"],["Laos (\u0ea5\u0eb2\u0ea7)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (\u202b\u0644\u0628\u0646\u0627\u0646\u202c\u200e)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (\u202b\u0644\u064a\u0628\u064a\u0627\u202c\u200e)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (\u6fb3\u9580)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (\u202b\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627\u202c\u200e)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (M\xe9xico)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (\u041c\u043e\u043d\u0433\u043e\u043b)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (\u202b\u0627\u0644\u0645\u063a\u0631\u0628\u202c\u200e)","ma","212",0],["Mozambique (Mo\xe7ambique)","mz","258"],["Myanmar (Burma) (\u1019\u103c\u1014\u103a\u1019\u102c)","mm","95"],["Namibia (Namibi\xeb)","na","264"],["Nauru","nr","674"],["Nepal (\u0928\u0947\u092a\u093e\u0932)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Cal\xe9donie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (\uc870\uc120 \ubbfc\uc8fc\uc8fc\uc758 \uc778\ubbfc \uacf5\ud654\uad6d)","kp","850"],["North Macedonia (\u0421\u0435\u0432\u0435\u0440\u043d\u0430 \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u0458\u0430)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (\u202b\u0639\u064f\u0645\u0627\u0646\u202c\u200e)","om","968"],["Pakistan (\u202b\u067e\u0627\u06a9\u0633\u062a\u0627\u0646\u202c\u200e)","pk","92"],["Palau","pw","680"],["Palestine (\u202b\u0641\u0644\u0633\u0637\u064a\u0646\u202c\u200e)","ps","970"],["Panama (Panam\xe1)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Per\xfa)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (\u202b\u0642\u0637\u0631\u202c\u200e)","qa","974"],["R\xe9union (La R\xe9union)","re","262",0],["Romania (Rom\xe2nia)","ro","40"],["Russia (\u0420\u043e\u0441\u0441\u0438\u044f)","ru","7",0],["Rwanda","rw","250"],["Saint Barth\xe9lemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie fran\xe7aise))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe (S\xe3o Tom\xe9 e Pr\xedncipe)","st","239"],["Saudi Arabia (\u202b\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629\u202c\u200e)","sa","966"],["Senegal (S\xe9n\xe9gal)","sn","221"],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (\ub300\ud55c\ubbfc\uad6d)","kr","82"],["South Sudan (\u202b\u062c\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062f\u0627\u0646\u202c\u200e)","ss","211"],["Spain (Espa\xf1a)","es","34"],["Sri Lanka (\u0dc1\u0dca\u200d\u0dbb\u0dd3 \u0dbd\u0d82\u0d9a\u0dcf\u0dc0)","lk","94"],["Sudan (\u202b\u0627\u0644\u0633\u0648\u062f\u0627\u0646\u202c\u200e)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (\u202b\u0633\u0648\u0631\u064a\u0627\u202c\u200e)","sy","963"],["Taiwan (\u53f0\u7063)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (\u0e44\u0e17\u0e22)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (\u202b\u062a\u0648\u0646\u0633\u202c\u200e)","tn","216"],["Turkey (T\xfcrkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (\u0423\u043a\u0440\u0430\u0457\u043d\u0430)","ua","380"],["United Arab Emirates (\u202b\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0645\u062a\u062d\u062f\u0629\u202c\u200e)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (O\u02bbzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Citt\xe0 del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Vi\u1ec7t Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (\u202b\u0627\u0644\u0635\u062d\u0631\u0627\u0621 \u0627\u0644\u063a\u0631\u0628\u064a\u0629\u202c\u200e)","eh","212",1,["5288","5289"]],["Yemen (\u202b\u0627\u0644\u064a\u0645\u0646\u202c\u200e)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xc5land Islands","ax","358",1,["18"]]],n=0;n<e.length;n++){var r=e[n];e[n]={name:r[0],iso2:r[1],dialCode:r[2],priority:r[3]||0,areaCodes:r[4]||null}}function i(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==t){var i=r.call(e,n||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}var s={getInstance:function(t){var e=t.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[e]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"===typeof window&&(window.intlTelInputGlobals=s);var l=0,u={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,showFlags:!0,useFullscreenPopup:/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500,utilsScript:""},c=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],d=function(t,e){for(var n=Object.keys(t),r=0;r<n.length;r++)e(n[r],t[n[r]])},h=function(t){d(window.intlTelInputGlobals.instances,(function(e){window.intlTelInputGlobals.instances[e][t]()}))},f=function(){function n(t,e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.id=l++,this.telInput=t,this.activeItem=null,this.highlightedItem=null;var i=e||{};this.options={},d(u,(function(t,e){r.options[t]=i.hasOwnProperty(t)?i[t]:e})),this.hadInitialPlaceholder=Boolean(t.getAttribute("placeholder"))}var r,a,s;return r=n,a=[{key:"_init",value:function(){var t=this;this.options.nationalMode&&(this.options.autoInsertDialCode=!1),this.options.separateDialCode&&(this.options.autoInsertDialCode=!1);var e=this.options.allowDropdown&&!this.options.separateDialCode;if(!this.options.showFlags&&e&&(this.options.showFlags=!0),this.options.useFullscreenPopup&&(document.body.classList.add("iti-fullscreen-popup"),this.options.dropdownContainer||(this.options.dropdownContainer=document.body)),this.isRTL=!!this.telInput.closest("[dir=rtl]"),"undefined"!==typeof Promise){var n=new Promise((function(e,n){t.resolveAutoCountryPromise=e,t.rejectAutoCountryPromise=n})),r=new Promise((function(e,n){t.resolveUtilsScriptPromise=e,t.rejectUtilsScriptPromise=n}));this.promise=Promise.all([n,r])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this.options.localizedCountries&&this._translateCountriesByLocale(),(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(e,n,r){n.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=n.length),this.countryCodes.hasOwnProperty(n)||(this.countryCodes[n]=[]);for(var i=0;i<this.countryCodes[n].length;i++)if(this.countryCodes[n][i]===e)return;var o=r!==t?r:this.countryCodes[n].length;this.countryCodes[n][o]=e}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var t=this.options.onlyCountries.map((function(t){return t.toLowerCase()}));this.countries=e.filter((function(e){return t.indexOf(e.iso2)>-1}))}else if(this.options.excludeCountries.length){var n=this.options.excludeCountries.map((function(t){return t.toLowerCase()}));this.countries=e.filter((function(t){return-1===n.indexOf(t.iso2)}))}else this.countries=e}},{key:"_translateCountriesByLocale",value:function(){for(var t=0;t<this.countries.length;t++){var e=this.countries[t].iso2.toLowerCase();this.options.localizedCountries.hasOwnProperty(e)&&(this.countries[t].name=this.options.localizedCountries[e])}}},{key:"_countryNameSort",value:function(t,e){return t.name<e.name?-1:t.name>e.name?1:0}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var t=0;t<this.countries.length;t++){var e=this.countries[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._addCountryCode(e.iso2,e.dialCode,e.priority)}for(var n=0;n<this.countries.length;n++){var r=this.countries[n];if(r.areaCodes)for(var i=this.countryCodes[r.dialCode][0],o=0;o<r.areaCodes.length;o++){for(var a=r.areaCodes[o],s=1;s<a.length;s++){var l=r.dialCode+a.substr(0,s);this._addCountryCode(i,l),this._addCountryCode(r.iso2,l)}this._addCountryCode(r.iso2,r.dialCode+a)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var t=0;t<this.options.preferredCountries.length;t++){var e=this.options.preferredCountries[t].toLowerCase(),n=this._getCountryData(e,!1,!0);n&&this.preferredCountries.push(n)}}},{key:"_createEl",value:function(t,e,n){var r=document.createElement(t);return e&&d(e,(function(t,e){return r.setAttribute(t,e)})),n&&n.appendChild(r),r}},{key:"_generateMarkup",value:function(){this.telInput.hasAttribute("autocomplete")||this.telInput.form&&this.telInput.form.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off");var t=this.options,e=t.allowDropdown,n=t.separateDialCode,r=t.showFlags,o=t.customContainer,a=t.hiddenInput,s=t.dropdownContainer,l="iti";e&&(l+=" iti--allow-dropdown"),n&&(l+=" iti--separate-dial-code"),r&&(l+=" iti--show-flags"),o&&(l+=" ".concat(o));var u=this._createEl("div",{class:l});this.telInput.parentNode.insertBefore(u,this.telInput);var c=e||r||n;if(c&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},u)),u.appendChild(this.telInput),c&&(this.selectedFlag=this._createEl("div",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach((function(e){i(t,e,n[e])}))}return t}({class:"iti__selected-flag"},e&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":"Telephone country code"}),this.flagsContainer)),r&&(this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag)),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),n&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),e&&(this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag),this.countryList=this._createEl("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider","aria-hidden":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),s?(this.dropdown=this._createEl("div",{class:"iti iti--container"}),this.dropdown.appendChild(this.countryList)):this.flagsContainer.appendChild(this.countryList)),a){var d=a,h=this.telInput.getAttribute("name");if(h){var f=h.lastIndexOf("[");-1!==f&&(d="".concat(h.substr(0,f),"[").concat(d,"]"))}this.hiddenInput=this._createEl("input",{type:"hidden",name:d}),u.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function(t,e,n){for(var r="",i=0;i<t.length;i++){var o=t[i],a=n?"-preferred":"";r+="<li class='iti__country ".concat(e,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(o.iso2).concat(a,"' role='option' data-dial-code='").concat(o.dialCode,"' data-country-code='").concat(o.iso2,"' aria-selected='false'>"),this.options.showFlags&&(r+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(o.iso2,"'></div></div>")),r+="<span class='iti__country-name'>".concat(o.name,"</span>"),r+="<span class='iti__dial-code'>+".concat(o.dialCode,"</span>"),r+="</li>"}this.countryList.insertAdjacentHTML("beforeend",r)}},{key:"_setInitialState",value:function(){var t=this.telInput.getAttribute("value"),e=this.telInput.value,n=!t||"+"!==t.charAt(0)||e&&"+"===e.charAt(0)?e:t,r=this._getDialCode(n),i=this._isRegionlessNanp(n),o=this.options,a=o.initialCountry,s=o.autoInsertDialCode;r&&!i?this._updateFlagFromNumber(n):"auto"!==a&&(a?this._setFlag(a.toLowerCase()):r&&i?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,n||this._setFlag(this.defaultCountry)),!n&&s&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),n&&this._updateValFromNumber(n)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoInsertDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var t=this;this._handleHiddenInputSubmit=function(){t.hiddenInput.value=t.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var t=this.telInput;t&&"LABEL"!==t.tagName;)t=t.parentNode;return t}},{key:"_initDropdownListeners",value:function(){var t=this;this._handleLabelClick=function(e){t.countryList.classList.contains("iti__hide")?t.telInput.focus():e.preventDefault()};var e=this._getClosestLabel();e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!t.countryList.classList.contains("iti__hide")||t.telInput.disabled||t.telInput.readOnly||t._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(e){t.countryList.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(e.key)&&(e.preventDefault(),e.stopPropagation(),t._showDropdown()),"Tab"===e.key&&t._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var t=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(t.options.utilsScript)})):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"===typeof this.options.geoIpLookup&&this.options.geoIpLookup((function(t){window.intlTelInputGlobals.autoCountry=t.toLowerCase(),setTimeout((function(){return h("handleAutoCountry")}))}),(function(){return h("rejectAutoCountryPromise")})))}},{key:"_initKeyListeners",value:function(){var t=this;this._handleKeyupEvent=function(){t._updateFlagFromNumber(t.telInput.value)&&t._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(t._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(t){var e=this.telInput.getAttribute("maxlength");return e&&t.length>e?t.substr(0,e):t}},{key:"_initBlurListeners",value:function(){var t=this;this._handleSubmitOrBlurEvent=function(){t._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var t=this._getNumeric(this.telInput.value);t&&this.selectedCountryData.dialCode!==t||(this.telInput.value="")}}},{key:"_getNumeric",value:function(t){return t.replace(/\D/g,"")}},{key:"_trigger",value:function(t){var e=document.createEvent("Event");e.initEvent(t,!0,!0),this.telInput.dispatchEvent(e)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(t,e,n){n&&!t.classList.contains(e)?t.classList.add(e):!n&&t.classList.contains(e)&&t.classList.remove(e)}},{key:"_setDropdownPosition",value:function(){var t=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){var e=this.telInput.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,r=e.top+n,i=this.countryList.offsetHeight,o=r+this.telInput.offsetHeight+i<n+window.innerHeight,a=r-i>n;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!o&&a),this.options.dropdownContainer){var s=!o&&a?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(r+s,"px"),this.dropdown.style.left="".concat(e.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return t._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(t){for(var e=t;e&&e!==this.countryList&&!e.classList.contains("iti__country");)e=e.parentNode;return e===this.countryList?null:e}},{key:"_bindDropdownListeners",value:function(){var t=this;this._handleMouseoverCountryList=function(e){var n=t._getClosestListItem(e.target);n&&t._highlightListItem(n,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(e){var n=t._getClosestListItem(e.target);n&&t._selectListItem(n)},this.countryList.addEventListener("click",this._handleClickCountryList);var e=!0;this._handleClickOffToClose=function(){e||t._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var n="",r=null;this._handleKeydownOnDropdown=function(e){e.preventDefault(),"ArrowUp"===e.key||"Up"===e.key||"ArrowDown"===e.key||"Down"===e.key?t._handleUpDownKey(e.key):"Enter"===e.key?t._handleEnterKey():"Escape"===e.key?t._closeDropdown():/^[a-zA-Z\xc0-\xff\u0430-\u044f\u0410-\u042f ]$/.test(e.key)&&(r&&clearTimeout(r),n+=e.key.toLowerCase(),t._searchForCountry(n),r=setTimeout((function(){n=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(t){var e="ArrowUp"===t||"Up"===t?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;e&&(e.classList.contains("iti__divider")&&(e="ArrowUp"===t||"Up"===t?e.previousElementSibling:e.nextElementSibling),this._highlightListItem(e,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(t){for(var e=0;e<this.countries.length;e++)if(this._startsWith(this.countries[e].name,t)){var n=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(this.countries[e].iso2));this._highlightListItem(n,!1),this._scrollTo(n,!0);break}}},{key:"_startsWith",value:function(t,e){return t.substr(0,e.length).toLowerCase()===e}},{key:"_updateValFromNumber",value:function(t){var e=t;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var n=this.options.nationalMode||"+"!==e.charAt(0)&&!this.options.separateDialCode,r=intlTelInputUtils.numberFormat,i=r.NATIONAL,o=r.INTERNATIONAL,a=n?i:o;e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,a)}e=this._beforeSetNumber(e),this.telInput.value=e}},{key:"_updateFlagFromNumber",value:function(t){var e=t,n=this.selectedCountryData.dialCode;e&&"1"===n&&"+"!==e.charAt(0)&&("1"!==e.charAt(0)&&(e="1".concat(e)),e="+".concat(e)),this.options.separateDialCode&&n&&"+"!==e.charAt(0)&&(e="+".concat(n).concat(e));var r=this._getDialCode(e,!0),i=this._getNumeric(e),o=null;if(r){var a=this.countryCodes[this._getNumeric(r)],s=-1!==a.indexOf(this.selectedCountryData.iso2)&&i.length<=r.length-1;if(("1"!==n||!this._isRegionlessNanp(i))&&!s)for(var l=0;l<a.length;l++)if(a[l]){o=a[l];break}}else"+"===e.charAt(0)&&i.length?o="":e&&"+"!==e||(o=this.defaultCountry);return null!==o&&this._setFlag(o)}},{key:"_isRegionlessNanp",value:function(t){var e=this._getNumeric(t);if("1"===e.charAt(0)){var n=e.substr(1,3);return-1!==c.indexOf(n)}return!1}},{key:"_highlightListItem",value:function(t,e){var n=this.highlightedItem;n&&n.classList.remove("iti__highlight"),this.highlightedItem=t,this.highlightedItem.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",t.getAttribute("id")),e&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(t,n,r){for(var i=n?e:this.countries,o=0;o<i.length;o++)if(i[o].iso2===t)return i[o];if(r)return null;throw new Error("No country data for '".concat(t,"'"))}},{key:"_setFlag",value:function(t){var e=this.options,n=e.allowDropdown,r=e.separateDialCode,i=e.showFlags,o=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=t?this._getCountryData(t,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),i&&this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(t)),this._setSelectedCountryFlagTitleAttribute(t,r),r){var a=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=a;var s=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.isRTL?this.telInput.style.paddingRight="".concat(s+6,"px"):this.telInput.style.paddingLeft="".concat(s+6,"px")}if(this._updatePlaceholder(),n){var l=this.activeItem;if(l&&(l.classList.remove("iti__active"),l.setAttribute("aria-selected","false")),t){var u=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t));u.setAttribute("aria-selected","true"),u.classList.add("iti__active"),this.activeItem=u}}return o.iso2!==t}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(t,e){var n;this.selectedFlag&&(n=t&&!e?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):t?this.selectedCountryData.name:"Unknown",this.selectedFlag.setAttribute("title",n))}},{key:"_getHiddenSelectedFlagWidth",value:function(){var t=this.telInput.parentNode.cloneNode();t.style.visibility="hidden",document.body.appendChild(t);var e=this.flagsContainer.cloneNode();t.appendChild(e);var n=this.selectedFlag.cloneNode(!0);e.appendChild(n);var r=n.offsetWidth;return t.parentNode.removeChild(t),r}},{key:"_updatePlaceholder",value:function(){var t="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&"polite"===this.options.autoPlaceholder;if(window.intlTelInputUtils&&t){var e=intlTelInputUtils.numberType[this.options.placeholderNumberType],n=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,e):"";n=this._beforeSetNumber(n),"function"===typeof this.options.customPlaceholder&&(n=this.options.customPlaceholder(n,this.selectedCountryData)),this.telInput.setAttribute("placeholder",n)}}},{key:"_selectListItem",value:function(t){var e=this._setFlag(t.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(t.getAttribute("data-dial-code")),this.telInput.focus();var n=this.telInput.value.length;this.telInput.setSelectionRange(n,n),e&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.countryList.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.options.useFullscreenPopup||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(t,e){var n=this.countryList,r=window.pageYOffset||document.documentElement.scrollTop,i=n.offsetHeight,o=n.getBoundingClientRect().top+r,a=o+i,s=t.offsetHeight,l=t.getBoundingClientRect().top+r,u=l+s,c=l-o+n.scrollTop,d=i/2-s/2;if(l<o)e&&(c-=d),n.scrollTop=c;else if(u>a){e&&(c+=d);var h=i-s;n.scrollTop=c-h}}},{key:"_updateDialCode",value:function(t){var e,n=this.telInput.value,r="+".concat(t);if("+"===n.charAt(0)){var i=this._getDialCode(n);e=i?n.replace(i,r):r,this.telInput.value=e}else this.options.autoInsertDialCode&&(e=n?r+n:r,this.telInput.value=e)}},{key:"_getDialCode",value:function(t,e){var n="";if("+"===t.charAt(0))for(var r="",i=0;i<t.length;i++){var o=t.charAt(i);if(!isNaN(parseInt(o,10))){if(r+=o,e)this.countryCodes[r]&&(n=t.substr(0,i+1));else if(this.dialCodes[r]){n=t.substr(0,i+1);break}if(r.length===this.countryCodeMaxLen)break}}return n}},{key:"_getFullNumber",value:function(){var t=this.telInput.value.trim(),e=this.selectedCountryData.dialCode,n=this._getNumeric(t);return(this.options.separateDialCode&&"+"!==t.charAt(0)&&e&&n?"+".concat(e):"")+t}},{key:"_beforeSetNumber",value:function(t){var e=t;if(this.options.separateDialCode){var n=this._getDialCode(e);if(n){var r=" "===e[(n="+".concat(this.selectedCountryData.dialCode)).length]||"-"===e[n.length]?n.length+1:n.length;e=e.substr(r)}}return this._cap(e)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var t=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var e=this._getClosestLabel();e&&e.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&t&&t.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoInsertDialCode&&(t&&t.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("keyup",this._handleKeyupEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var n=this.telInput.parentNode;n.parentNode.insertBefore(this.telInput,n),n.parentNode.removeChild(n),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(t){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),e,t)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),t)}return-99}},{key:"isValidNumber",value:function(){var t=this._getFullNumber().trim();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(t,this.selectedCountryData.iso2):null}},{key:"isPossibleNumber",value:function(){var t=this._getFullNumber().trim();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(t,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(t){var e=t.toLowerCase();this.selectedCountryData.iso2!==e&&(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(t){var e=this._updateFlagFromNumber(t);this._updateValFromNumber(t),e&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}}],a&&o(r.prototype,a),s&&o(r,s),Object.defineProperty(r,"prototype",{writable:!1}),n}();s.getCountryData=function(){return e};var p=function(t,e,n){var r=document.createElement("script");r.onload=function(){h("handleUtils"),e&&e()},r.onerror=function(){h("rejectUtilsScriptPromise"),n&&n()},r.className="iti-load-utils",r.async=!0,r.src=t,document.body.appendChild(r)};return s.loadUtils=function(t){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!==typeof Promise)return new Promise((function(e,n){return p(t,e,n)}));p(t)}return null},s.defaults=u,s.version="18.3.3",function(t,e){var n=new f(t,e);return n._init(),t.setAttribute("data-intl-tel-input-id",n.id),window.intlTelInputGlobals.instances[n.id]=n,n}}()},t.exports?t.exports=r():window.intlTelInput=r()},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"default",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){var e=this.element.classList.contains("text-overflow"),n=this.element.scrollWidth>this.element.clientWidth;e&&!n||t(this.element).popover({container:"body",delay:300,animation:!1})}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller)}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t=document.getElementById("onboardee_dashboard").dataset.progress;progressBarDashboard(t),this.observer=new MutationObserver(this.updateProgress.bind(this)),this.observer.observe(this.listTarget,{childList:!0})}},{key:"updateProgress",value:function(){var t;t=this.isListEmpty()&&this.noFuturActions()?100:document.getElementById("onboardee_dashboard").dataset.progress,progressBarDashboard(t)}},{key:"isListEmpty",value:function(){return 0===this.listTarget.childElementCount}},{key:"noFuturActions",value:function(){return!1===this.futurActionsValue}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);s(u,"targets",["list"]),s(u,"values",{futurActions:Boolean})},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return h}));var r=n(1),i=n(10);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(d,t);var e,n,r,u=s(d);function d(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c(l(t=u.call.apply(u,[this].concat(n))),"spinnerHTML","<div quick-view-spinner class='w-100 text-center'><i class='far fa-spinner-third rotating text-26px' style='height: 25px; width: 25px;'></i></div>"),t}return e=d,(n=[{key:"connect",value:function(){this.element.classList.add("position-relative"),this.element.setAttribute("quick-view-status","closed"),this.hasQuickViewTarget||this._insert(),Object(i.a)(this)}},{key:"clickOutside",value:function(t){this._clickOnQuickView(t)||this.close()}},{key:"toggle",value:function(t){t.stopPropagation(),f(),"false"==this.quickViewTarget.getAttribute("opened")?this._open():this.close()}},{key:"close",value:function(){this.quickViewTarget.setAttribute("opened","false"),this.element.setAttribute("quick-view-status","closed")}},{key:"_open",value:function(){this.quickViewTarget.setAttribute("opened","true"),this._load(),setTimeout(f,300),this.element.setAttribute("quick-view-status","opened")}},{key:"_load",value:function(){var t=this;this.hasUrlValue&&(this.quickViewTarget.innerHTML=this.spinnerHTML,fetch(this.urlValue,{headers:{Accept:"application/json"}}).then((function(t){return t.json()})).then((function(e){t._fill(e)})).catch((function(t){console.log(t)})))}},{key:"_fill",value:function(t){var e;null===(e=this.element.querySelector("[quick-view-spinner]"))||void 0===e||e.remove(),this.quickViewTarget.insertAdjacentHTML("beforeend",t)}},{key:"_insert",value:function(){var t='<div quick-view opened="false" data-utils--quick-views-target="quickView">'.concat(this.spinnerHTML,"</div>");this.element.insertAdjacentHTML("beforeend",t)}},{key:"_clickOnQuickView",value:function(t){var e;return(t.path||t.composedPath&&t.composedPath()).forEach((function(t){if(t.classList&&t.attributes.getNamedItem("quick-view"))return e=!0})),e}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.Controller);c(h,"targets",["quickView"]),c(h,"values",{url:String});var f=function(){t(".popover").remove()}}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){var t=this;this.radioButtonTargets.forEach((function(e){e.addEventListener("change",(function(){t.updateContentDisplay(e)}))})),this.radioButtonTargets.filter((function(t){return t.checked})).forEach((function(e){return t.updateContentDisplay(e)}))}},{key:"updateContentDisplay",value:function(t){var e=this;this.contentTargets.filter((function(e){return h(e,t)})).forEach((function(n){e.toggleHiddenClass(t,n)}))}},{key:"toggleHiddenClass",value:function(t,e){t.checked&&f(e,t)?e.classList.remove("hidden"):e.classList.add("hidden")}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["radioButton","content"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c;var h=function(t,e){return t.getAttribute("for")==e.getAttribute("name")},f=function(t,e){return t.getAttribute("target-value")==e.getAttribute("value")}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){redactorInit(this.languageValue,this.userIdValue)}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,u="values",c={language:String,userId:Number},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"call",value:function(){var t=this.activeClassValue,e=this.lineClassValue;this.removeAllActiveClass(t,e),this.addActiveClass(t)}},{key:"removeAllActiveClass",value:function(t,e){document.querySelectorAll(".".concat(e)).forEach((function(e){e.classList.remove(t)}))}},{key:"addActiveClass",value:function(t){this.element.classList.add(t)}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,u="values",c={lineClass:String,activeClass:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(1),i=n(32);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(d,e);var n,r,o,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(r=[{key:"connect",value:function(){t(this.element).selectize(this.config()),this.hasInitialItemValue&&this.setInitialValue(),this.submitOnBlurValue&&this.addBlurSubmit()}},{key:"setInitialValue",value:function(){var t=this.element.selectize,e=this.initialItemValue,n=e[this.valueFieldValue];t.addOption(e),t.setValue(n,!0)}},{key:"basicConfig",value:function(){var t=this;return{preload:!1,onFocus:function(){t.loadOptions(null,null)},load:function(e,n){t.loadOptions(e,n)},create:!1,maxItems:1,valueField:this.valueFieldValue,labelField:this.labelFieldValue,searchField:["id","first_name","last_name","label","email","external_id","role_name"],render:{item:function(e,n){return e.first_name?t.employeeItemFor(e,n):t.roleItemFor(e,n)},option:function(e,n){return e.first_name?t.employeeOptionFor(e,n):t.roleOptionFor(e,n)}}}}},{key:"addBlurSubmit",value:function(){var e=this,n=this.element.selectize;n.on("change",(function(){n.getValue()&&t(e.element.form).submit()})),n.on("blur",(function(){var r=n.getValue(),i=n.lastQuery;r||i||t(e.element.form).submit()}))}},{key:"loadOptions",value:function(e,n){var r=this;t.ajax({url:this.urlValue,type:"GET",dataType:"json",data:{query:e,with_implications:this.withImplicationsValue,with_boardee:this.withBoardeeValue,track_id:this.trackIdValue},error:function(){console.log("Error")},success:function(t){n?n(t):r.seedOptionsFrom(t)}})}},{key:"seedOptionsFrom",value:function(t){var e=this.element.selectize;t.forEach((function(t){return e.addOption(t)})),e.open()}},{key:"config",value:function(){var t=this.basicConfig();return this.canCreateValue&&(t=this.addCreateConfigTo(t)),t}},{key:"roleOptionFor",value:function(t,e){return'\n      <div style="padding: 6px 15px;">\n        '.concat(e(t.label),"\n      </div>\n    ")}},{key:"employeeOptionFor",value:function(t,e){return'\n      <div style="padding: 6px 15px;">\n        <span>'.concat(e(t.first_name)," ").concat(e(t.last_name),"</span>\n        ").concat(t.role_name?"<span> (".concat(e(t.role_name),")</span>"):"","\n        ").concat(t.label?"<span class='label'>".concat(e(t.label),"</span>"):"","\n        <br><span class='padded-left-10px '>").concat(e(t.email),"</span>\n        ").concat(t.external_id?"<br><span class='padded-left-10px '>".concat(e(t.external_id),"</span>"):"","\n      </div>\n    ")}},{key:"roleItemFor",value:function(t,e){return"\n      <div>\n        ".concat(e(t.label),"\n      </div>\n    ")}},{key:"employeeItemFor",value:function(t,e){return"\n      <div>\n        <span>".concat(e(t.first_name)," ").concat(e(t.last_name),"</span>\n      </div>\n    ")}},{key:"addCreateConfigTo",value:function(t){return a(a({},t),{},{create:function(t){return{id:t,email:t,label:t}},createOnBlur:!0,createFilter:i.a,onDropdownOpen:function(t){t[0].querySelector(".selectize-dropdown-content .create")?t.addClass("d-none"):t.removeClass("d-none")}})}}])&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),d}(r.Controller);d(f,"values",{url:String,valueField:String,labelField:String,withImplications:Boolean,withBoardee:Boolean,initialItem:Object,trackId:String,submitOnBlur:Boolean,canCreate:Boolean})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return f}));var r=n(44),i=n(32);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var f=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(d,e);var n,r,o,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(r=[{key:"connect",value:function(){t(this.element).selectize(this.config()),this.setSigners()}},{key:"loadOptions",value:function(e,n){t.ajax({url:this.urlValue,type:"GET",dataType:"json",data:{query:e,resource_type:this.resourceTypeValue,resource_id:this.resourceIdValue,email_as_value:!0},error:function(){n()},success:function(t){n(t)}})}},{key:"config",value:function(){return a(a({},this.basicConfig()),{},{create:!0,createOnBlur:!0,maxItems:this.maxItemsValue,createFilter:i.a,valueField:"email",labelField:"label",searchField:["id","first_last","last_name","email"],render:{option:function(t,e){return'<div style="padding: 6px 15px;">'+e(t.label)+"</div>"}},onDropdownOpen:function(t){t[0].querySelector(".selectize-dropdown-content .create")&&t[0].remove()},onItemAdd:function(t,e){},onItemRemove:function(t){}})}},{key:"setSigners",value:function(){var t=this.element.selectize,e=t.getValue(),n=JSON.parse(this.labelsValue),r=n.map((function(t){return t.email}));e&&t.removeOption(e),r[0]&&(t.addOption(n),t.setValue(r))}}])&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),d}(r.default);d(f,"values",{url:String,resourceType:String,resourceId:String,labels:String,maxItems:Number})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){t(this.element).selectize(this.config())}},{key:"config",value:function(){var e=this;return{create:!1,preload:!0,valueField:"value",labelField:"value",searchField:["value","external_id"],render:{option:function(t,e){var n="<span>"+e(t.value)+"</span>";return"undefined"!==typeof t.external_id&&null!==t.external_id&&""!=t.external_id&&(n+='<span class="text-overflow text-gray-medium padded-left-10px">'+e(t.external_id)+"</span>"),'<div class="w-100 d-flex justify-content-between" style="padding: 6px 15px;">'+n+"</div>"}},onFocus:function(){e.conditionedResourceIdValue&&(t(e.element).selectize()[0].selectize.clearOptions(),e.loadOptions("",(function(n){t(e.element).selectize()[0].selectize.addOption(n)})))},load:function(t,n){e.loadOptions(t,n)},onChange:function(){document.querySelectorAll('[data-utils--selectizes-paperworks-conditioned-resource-id-value="'.concat(e.resourceIdValue,'"]')).forEach((function(e){t(e).selectize()[0].selectize.setValue("")})),e.submitOnBlurValue||e.submit()},onBlur:function(){e.submitOnBlurValue&&e.submit()}}}},{key:"loadOptions",value:function(e,n){t.ajax({url:this.urlValue,type:"GET",dataType:"json",data:{query:e,id:this.idValue,resource_id:this.resourceIdValue,form_resource_id:this.formResourceIdValue,conditioned_resource_id:this.conditionedResourceIdValue,conditioned_resource_value:this.conditionedResourceValue()},error:function(){n()},success:function(t){n(t)}})}},{key:"conditionedResourceValue",value:function(){var t=document.querySelector("#paperwork_resource_".concat(this.conditionedResourceIdValue," select"));if(t)return t.value}},{key:"submit",value:function(){var e=this,n=new Event("change");this.element.dispatchEvent(n),setTimeout((function(){t(e.element.form).submit()}),100)}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,u="values",c={url:String,id:String,resourceId:String,formResourceId:String,conditionedResourceId:String,submitOnBlur:Boolean},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){this.initializeClick(),this.initializeFileNameDisplay()}},{key:"initializeClick",value:function(){var e=this;this.buttonTarget.addEventListener("click",(function(){t(e.inputTarget).click()}))}},{key:"initializeFileNameDisplay",value:function(){var t=this;this.inputTarget.addEventListener("change",(function(){t.changeFileNameValue()}))}},{key:"changeFileNameValue",value:function(){var t=this.inputTarget.value.split("\\").pop(),e=URL.createObjectURL(this.inputTarget.files[0]),n=document.createElement("a");n.href=e,n.target="_blank",n.textContent=t,this.fileNameTarget.innerHTML="",this.fileNameTarget.appendChild(n)}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,c=["input","button","fileName"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this._moveAfterLine()}},{key:"select",value:function(t){var e=t.currentTarget;this._changeSelectedAttributes(e),this._displayCurrentContent(e),this._moveAfterLine(),this._updateHistoryUrl()}},{key:"_changeSelectedAttributes",value:function(t){this.tabTargets.forEach((function(t){t.removeAttribute("active")})),t.setAttribute("active","")}},{key:"_displayCurrentContent",value:function(t){var e;this.contentTargets.forEach((function(t){t.classList.add("hidden")})),null===(e=this.contentTargets.find((function(e){return e.dataset.tab==t.dataset.tab})))||void 0===e||null===(e=e.classList)||void 0===e||e.remove("hidden")}},{key:"_activeTab",value:function(){return this.tabTargets.filter((function(t){return t.hasAttribute("active")}))[0]}},{key:"_moveAfterLine",value:function(){if(this.hasAfterLineTarget){var t=this._activeTab().getBoundingClientRect(),e=this.tabWrapperTarget.getBoundingClientRect(),n=t.left-e.left,r=t.width;this.afterLineTarget.style.transform="translateX(".concat(n,"px)"),this.afterLineTarget.style.width="".concat(r,"px")}}},{key:"_updateHistoryUrl",value:function(){var t=new URL(window.location.href),e=this._activeTab().dataset.tab;t.searchParams.set("tab",e),history.replaceState(null,null,t.toString())}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);l=d,c=["tabWrapper","tab","content","afterLine"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return c}));var c=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(c,t);var e,n,s,u=a(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,n=[{key:"connect",value:function(){var t=this,e="/attachments?attachable_type=".concat(this.attachableTypeValue,"&attachable_id=").concat(this.attachableIdValue),n="fr"==this.languageValue?"fr_FR":this.languageValue;tinymce.init({selector:this.selectorValue,plugins:"quickbars fullscreen save preview accordion ai tinycomments autolink codesample emoticons image link advlist lists media searchreplace table visualblocks checklist mediaembed casechange export formatpainter pageembed advtable advcode editimage powerpaste tinymcespellchecker autocorrect a11ychecker inlinecss",toolbar:"fullscreen undo redo | blocks fontfamily fontsizeinput | bold italic underline | alignleft aligncenter alignright alignjustify | indent outdent | numlist bullist",quickbars_selection_toolbar:"bold italic forecolor | quickimage quicklink emoticons",quickbars_insert_toolbar:!1,language:n,spellchecker_active:!1,spellchecker_language:this.languageValue,save_enablewhendirty:!1,statusbar:!1,advcode_inline:!0,content_style:"@import url('https://fonts.googleapis.com/css?family=Lato:300,300i,700'); img { max-width: calc(100vw - 2rem); } body { font-family: Lato; color: #2A3453; }",font_family_formats:"Lato=lato; Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Oswald=oswald; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats",color_cols:3,color_map:["".concat(this.accountColorValue),"Account","2A3453","Dark blue","2e5bec","Blue","000000","Black","FFFFFF","White","EC0868","Raspberry","FA3E3E","Red","828282","Gray","46CE92","Green"],extended_valid_elements:"script[src|async|defer|type|charset],style[*]",automatic_uploads:!0,block_unsupported_drop:!0,images_upload_url:e,file_picker_types:"image file media",file_picker_callback:function(t,n,r){var i=document.createElement("input");i.setAttribute("type","file"),"file"==r.filetype?i.setAttribute("accept",".pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .txt"):"image"==r.filetype?i.setAttribute("accept","image/*"):"media"==r.filetype&&i.setAttribute("accept","video/*,audio/*"),i.addEventListener("change",(function(n){var r=n.target.files[0],i=new FormData;i.append("file",r),fetch(e,{method:"POST",body:i}).then((function(t){return t.json()})).then((function(e){var n=e.location,r=e.title;t(n,{title:r,alt:r})})).catch((function(t){console.error("Error uploading file:",t)}))})),i.click()},tinycomments_mode:"embedded",tinycomments_author:this.userValue,ai_shortcuts:[{title:"R\xe9sumer",prompt:"Provide the key points and concepts in this content in a succinct summary - answer must be in french."},{title:"Am\xe9liorer le style",prompt:"Rewrite this content with no spelling mistakes, proper grammar, and with more descriptive language, using best writing practices without losing the original meaning - answer must be in french."},{title:"Simplifier la formulation",prompt:"Rewrite this content with simplified language and reduce the complexity of the writing, so that the content is easier to understand - answer must be in french."},{title:"Rallonger",prompt:"Expand upon this content with descriptive language and more detailed explanations, to make the writing easier to understand and increase the length of the content - answer must be in french."},{title:"Raccourcir",prompt:"Remove any repetitive, redundant, or non-essential writing in this content without changing the meaning or losing any key information - answer must be in french."},{title:"Modifier le ton",subprompts:[{title:"Professionnel",prompt:"Rewrite this content using polished, formal, and respectful language to convey professional expertise and competence - answer must be in french."},{title:"D\xe9contract\xe9",prompt:"Rewrite this content with casual, informal language to convey a casual conversation with a real person - answer must be in french."},{title:"Direct",prompt:"Rewrite this content with direct language using only the essential information - answer must be in french."},{title:"Confiant",prompt:"Rewrite this content using compelling, optimistic language to convey confidence in the writing - answer must be in french."},{title:"Amical",prompt:"Rewrite this content using friendly, comforting language, to convey understanding and empathy - answer must be in french."}]}],ai_request:function(e,n){var i={method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t.apiKeyValue)},body:JSON.stringify({model:"gpt-3.5-turbo",temperature:.7,max_tokens:800,messages:[{role:"user",content:e.prompt}]})};n.string((function(t){return window.fetch("https://api.openai.com/v1/chat/completions",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({signal:t},i)).then((function(t){return t.ok?t.json():t.text()})).then((function(t){if("string"===typeof t)Promise.reject("Failed to communicate with the ChatGPT API. ".concat(t));else{var e;if(!t.error)return null===t||void 0===t||null===(e=t.choices[0])||void 0===e||null===(e=e.message)||void 0===e||null===(e=e.content)||void 0===e?void 0:e.trim();Promise.reject("Failed to communicate with the ChatGPT API because of ".concat(t.error.type," error: ").concat(t.error.message))}}))}))}})}},{key:"updateTextarea",value:function(){var t=tinymce.activeEditor.getContent({format:"html"});this.textareaTarget.innerHTML=t}},{key:"disconnect",value:function(){tinymce.remove()}}],n&&i(e.prototype,n),s&&i(e,s),Object.defineProperty(e,"prototype",{writable:!1}),c}(n(1).Controller);l(c,"targets",["textarea"]),l(c,"values",{selector:String,apiKey:String,language:String,user:String,attachableType:String,attachableId:Number,accountColor:String})},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return d}));var r=n(1),i=n(5);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,l,u=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,(r=[{key:"preview",value:function(){this.inputTarget.files&&this.inputTarget.files[0]&&this.previewImage(),this.hasDeleteButtonTarget&&this.deleteButtonTarget.classList.remove("d-none")}},{key:"previewImage",value:function(){var e=this.previewTarget,n=this.inputTarget.files[0],r=this.linkTarget,i=new FileReader;i.onload=function(i){n.type.match("image")?(t(e).attr("src",i.target.result),r.innerText="",t(r).attr("href","#")):(t(e).attr("src","#"),r.innerText=n.name,t(r).attr("href",i.target.result))},i.readAsDataURL(n)}},{key:"previewLink",value:function(t){t.preventDefault(),window.open("","_blank").document.write("<iframe width='100%' height='100%' src=\"".concat(this.linkTarget.href,'"></iframe>'),"_blank")}},{key:"emptyPreview",value:function(){this.inputTarget.value="",this.previewTarget.src="",this.linkTarget.innerText="",this.linkTarget.setAttribute("href","#"),""!=this.deletePathValue&&fetch(this.deletePathValue,{method:"DELETE",headers:{"X-CSRF-Token":Object(i.a)()}}),this.hasDeleteButtonTarget&&this.deleteButtonTarget.classList.add("d-none")}}])&&o(n.prototype,r),l&&o(n,l),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.Controller);u(d,"targets",["input","preview","link","deleteButton"]),u(d,"values",{deletePath:String})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(1),i=n(5);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){}},{key:"switchVersion",value:function(t){t.preventDefault();var e=t.currentTarget.href;fetch(this.urlValue,{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-Token":Object(i.a)()},body:JSON.stringify({employee:{settings:{interface_version:"V2"}}})}).then((function(t){return t.json()})).then((function(t){window.location.href=e}))}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);u(d,"targets",["link"]),u(d,"values",{url:String})},function(t,e,n){},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return w}));var r=n(1),i=n(10),o=n(5),a=n(13),s=n(11),l=n(9);function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}window.Tabulator=a.b;var c=function(t,e){var n={photo:["image_url","url"],employee_name:["employee_name","job_position","url"],role_name:["role_name","url"],environment_name:["environment_name","url"],organization_name:["organization_name","url"],last_connection_text:["last_connection_text","url"],actions:["employee_id","role","employee_id","current_sign_in_at","url","destroy_url","employee_name"]};Object.keys(n).forEach((function(r){var i=document.getElementById(r).innerHTML;n[r].forEach((function(t){i=i.replace("{{".concat(t,"}}"),Object(l.c)(e[t]))})),t.querySelector('[tabulator-field="'.concat(r,'"]')).innerHTML=i}))},d=function(){return"true"==document.getElementById("employees-list").dataset.displayEnvironmentColumn},h=function(t){t.classList.add("bg-white","d-flex","pointer","hover-bg-blue-ultra-light")},f=function(t,e){t.dataset.controller="tracking",t.dataset.action="click->tracking#track",t.dataset.trackedEvent="Get to an employee profil page",t.dataset.trackedEmployee_id=e.employee_id,t.dataset.trackedCurrent_sign_in_at=document.getElementById("employees-list").dataset.trackedCurrent_sign_in_at};function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,y(r.key),r)}}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b(t);if(e){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function v(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var w=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(v,t);var e,n,r,b=g(v);function v(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),b.apply(this,arguments)}return e=v,(n=[{key:"connect",value:function(){Object(i.a)(this),this._applyUrlQuery(),this.employeesListTarget.innerHTML=document.getElementById("placeholder").innerHTML,this._fetchEmployees()}},{key:"export",value:function(){Tabulator.findTable("#employees")[0].download("csv","employees.csv",{sheetName:"export",delimiter:";"},"active")}},{key:"_fetchEmployees",value:function(){var t=this;fetch(this.urlValue,{method:"POST",headers:{"X-CSRF-Token":Object(o.a)(),"Content-Type":"application/json",Accept:"application/json"}}).then((function(t){return t.json()})).then((function(e){t._loadTabulator(e.employees)})).catch((function(t){console.log(t)}))}},{key:"_loadTabulator",value:function(t){var e,n,r,i,o;this.employeesListTarget.innerHTML='<div id="employees"></div>',e=t,r=JSON.parse(document.getElementById("employees-list").dataset.translations),i=new a.b("#employees",(u(n={height:"100%",responsiveLayout:"hide",pagination:!0,paginationSize:20,paginationButtonCount:1,movableColumns:!1,placeholder:Object(l.a)(),initialFilter:Object(s.employeesInitialFilter)(),data:e,layout:"fitColumns"},"pagination",!0),u(n,"paginationSize",20),u(n,"paginationCounter",(function(t,e){var n=e+t-1;return"".concat(e," ").concat(r.on," ").concat(n<0?0:n)})),u(n,"langs",document.querySelector("html").lang),u(n,"columns",[{title:r.employee_id,field:"employee_id",visible:!1,download:!0},{field:"environment_id",visible:!1,download:!1},{field:"url",visible:!1,download:!1},{field:"destroy_url",visible:!1,download:!1},{title:"",field:"bulk",width:16,minWidth:16,maxWidth:16,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,download:!1},{title:"",field:"photo",width:64,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,responsive:0,download:!1},{title:r.employee_name,field:"employee_name",minWidth:300,widthGrow:3,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,download:!0},{title:r.employee_email,field:"employee_email",visible:!1,download:!0},{title:r.employee_external_id,field:"employee_external_id",visible:!1,download:!0},{title:r.employee_job_position,field:"job_position",visible:!1,download:!0},{title:r.role_name,field:"role_name",minWidth:150,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,download:!0},{title:r.environment_name,field:"environment_name",minWidth:200,widthGrow:2,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,visible:d(),download:d()},{title:r.organization_name,field:"organization_name",minWidth:200,widthGrow:2,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,download:!0},{title:r.last_connection_text,field:"last_connection_text",width:140,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,sorter:function(t,e,n,r,i,o,a){return n.getData().last_connection-r.getData().last_connection},download:!1},{title:"",field:"actions",width:140,vertAlign:"middle",hozAlign:"left",headerHozAlign:"center",resizable:!1,responsive:0,download:!1},{title:"",field:"bulk",width:16,minWidth:16,maxWidth:16,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,download:!1}]),u(n,"rowFormatter",(function(t){var e=t.getData(),n=t.getElement();h(n,e),f(n,e),c(n,e),"archived"==e.role&&n.querySelector("[data-invitation").remove()})),n)),o=document.querySelector("html").lang,setTimeout((function(){i.setLocale("".concat(o,"-").concat(o)),Object(l.e)("employees")}),100),Object(l.a)()}},{key:"_applyUrlQuery",value:function(){var t=new URLSearchParams(window.location.search).get("query");null!==t&&""!==t&&(localStorage.setItem("employees_query",t),document.getElementById("search_employees").value=t)}}])&&p(e.prototype,n),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),v}(r.Controller);v(w,"targets",["employeesList"]),v(w,"values",{url:String})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return b}));var r=n(1),i=n(5),o=n(13),a=n(9);function s(t){var e=JSON.parse(document.getElementById("actions").parentElement.dataset.translations),n=new o.b("#actions",{responsiveLayout:"hide",initialSort:[{column:"name",dir:"asc"}],layout:"fitColumns",pagination:!1,paginationSize:0,paginationButtonCount:0,movableColumns:!1,data:t,langs:{"fr-fr":{}},columns:[{field:"bulk_select",width:98,vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",headerSort:!1,titleFormatter:u,formatter:"html"},{title:"",field:"type",vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,visible:!1},{title:e.name,widthGrow:4,field:"name",vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:e.type,widthGrow:1,field:"type_name",vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:e.collaborator_name,widthGrow:2,field:"collaborator_name",vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1},{title:e.due_date,widthGrow:1,field:"due_date",vertAlign:"middle",hozAlign:"left",headerHozAlign:"left",resizable:!1,sorter:function(t,e,n,r,i,o,a){var s=moment(n.getData().due_date,"DD/MM/YYYY").valueOf(),l=moment(r.getData().due_date,"DD/MM/YYYY").valueOf();return 1===s&&1===l?0:s-l}}],rowFormatter:function(t){var e=t.getData(),r=t.getElement();l(r,e,n)}}),r=document.querySelector("html").lang;setTimeout((function(){n.setLocale("".concat(r,"-").concat(r)),function(){var t=o.b.findTable("#actions")[0],e=t.getData("active").length,n=document.getElementById("actions-label"),r=e<=1?n.dataset.singular:n.dataset.plural;document.getElementById("actions-count").innerText=e,document.getElementById("actions-label").innerText=r}()}),200)}var l=function(t,e,n){var r="bulk_select",i=document.getElementById(r).innerHTML,o=t.querySelector('[tabulator-field="'.concat(r,'"]'));if(o){var s=n.getRowPosition(t);i=(i=(i=i.replaceAll("{{row_position}}",Object(a.c)(s))).replaceAll("{{resource_id}}",e.id)).replaceAll("{{resource_type}}",e.type),o.innerHTML=i}};function u(t,e,n){return'    <div class="bulk-select m-auto d-flex justify-content-center vertical-align-middle">      <input data-tabulator-bulk-selection-target="selectAllElement" class="m-auto" type="checkbox" data-action="click->tabulator-bulk-selection#selectAllToogle" />    </div>'}var c=n(11);function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function m(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(a,t);var e,n,r,o=f(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"connect",value:function(){var t;t=this.urlValue,fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":Object(i.a)()}}).then((function(t){return t.json()})).then((function(t){var e=t.data,n=t.config;document.getElementById("actions").outerHTML='<div id="actions"></div>',s(e,n),Object(c.applyActionsFilters)()}))}}])&&d(e.prototype,n),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(r.Controller);m(b,"targets",["queryInput","cleanQuery"]),m(b,"values",{url:String})},,,function(t,e,n){"use strict";(function(t){function r(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"POST";t.ajax({url:e.dataset.openUrl,type:n})}n.d(e,"a",(function(){return r}))}).call(this,n(4))},function(t,e,n){t.exports=n(332)},function(t,e,n){"use strict";function r(t){return l(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||a(t)||o()}function i(t,e){return l(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"===typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t){if(Array.isArray(t))return t}n.r(e),n.d(e,"default",(function(){return Br}));const u="[data-trix-attachment]",c={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}},d={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,htmlAttributes:["language"],text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test(t){return h(t.parentNode)===d[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test(t){return h(t.parentNode)===d[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}},h=t=>{var e;return null==t||null===(e=t.tagName)||void 0===e?void 0:e.toLowerCase()},f=navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i),p=f&&parseInt(f[1]);var m={composesExistingText:/Android.*Chrome/.test(navigator.userAgent),recentAndroid:p&&p>12,samsungAndroid:p&&navigator.userAgent.match(/Android.*SM-/),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:"undefined"!=typeof InputEvent&&["data","getTargetRanges","inputType"].every((t=>t in InputEvent.prototype))},g={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption\u2026",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL\u2026",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"};const b=[g.bytes,g.KB,g.MB,g.GB,g.TB,g.PB];var v={prefix:"IEC",precision:2,formatter(t){switch(t){case 0:return"0 ".concat(g.bytes);case 1:return"1 ".concat(g.byte);default:let e;"SI"===this.prefix?e=1e3:"IEC"===this.prefix&&(e=1024);const n=Math.floor(Math.log(t)/Math.log(e)),r=(t/Math.pow(e,n)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"");return"".concat(r," ").concat(b[n])}}};const y="\ufeff",w="\xa0",k=function(t){for(const e in t){const n=t[e];this[e]=n}return this},_=document.documentElement,O=_.matches,x=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.onElement,r=e.matchingSelector,i=e.withCallback,o=e.inPhase,a=e.preventDefault,s=e.times;const l=n||_,u=r,c="capturing"===o,d=function(t){null!=s&&0==--s&&d.destroy();const e=S(t.target,{matchingSelector:u});null!=e&&(null==i||i.call(e,t,e),a&&t.preventDefault())};return d.destroy=()=>l.removeEventListener(t,d,c),l.addEventListener(t,d,c),d},E=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.onElement,r=e.bubbles,i=e.cancelable,o=e.attributes;const a=null!=n?n:_;r=!1!==r,i=!1!==i;const s=document.createEvent("Events");return s.initEvent(t,r,i),null!=o&&k.call(s,o),a.dispatchEvent(s)},j=function(t,e){if(1===(null==t?void 0:t.nodeType))return O.call(t,e)},S=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.matchingSelector,r=e.untilNode;for(;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.parentNode;if(null!=t){if(null==n)return t;if(t.closest&&null==r)return t.closest(n);for(;t&&t!==r;){if(j(t,n))return t;t=t.parentNode}}},P=t=>document.activeElement!==t&&C(t,document.activeElement),C=function(t,e){if(t&&e)for(;e;){if(e===t)return!0;e=e.parentNode}},T=function(t){var e;if(null===(e=t)||void 0===e||!e.parentNode)return;let n=0;for(t=t.previousSibling;t;)n++,t=t.previousSibling;return n},M=t=>{var e;return null==t||null===(e=t.parentNode)||void 0===e?void 0:e.removeChild(t)},A=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.onlyNodesOfType,r=e.usingFilter,i=e.expandEntityReferences;const o=(()=>{switch(n){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}})();return document.createTreeWalker(t,o,null!=r?r:null,!0===i)},D=t=>{var e;return null==t||null===(e=t.tagName)||void 0===e?void 0:e.toLowerCase()},R=function(t){let e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof t?(r=t,t=r.tagName):r={attributes:r};const i=document.createElement(t);if(null!=r.editable&&(null==r.attributes&&(r.attributes={}),r.attributes.contenteditable=r.editable),r.attributes)for(e in r.attributes)n=r.attributes[e],i.setAttribute(e,n);if(r.style)for(e in r.style)n=r.style[e],i.style[e]=n;if(r.data)for(e in r.data)n=r.data[e],i.dataset[e]=n;return r.className&&r.className.split(" ").forEach((t=>{i.classList.add(t)})),r.textContent&&(i.textContent=r.textContent),r.childNodes&&[].concat(r.childNodes).forEach((t=>{i.appendChild(t)})),i};let L;const I=function(){if(null!=L)return L;L=[];for(const t in d){const e=d[t];e.tagName&&L.push(e.tagName)}return L},W=t=>N(null==t?void 0:t.firstChild),z=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strict:!0}).strict?N(t):N(t)||!N(t.firstChild)&&function(t){return I().includes(D(t))&&!I().includes(D(t.firstChild))}(t)},N=t=>F(t)&&"block"===(null==t?void 0:t.data),F=t=>(null==t?void 0:t.nodeType)===Node.COMMENT_NODE,H=function(t){let e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).name;if(t)return q(t)?t.data===y?!e||t.parentNode.dataset.trixCursorTarget===e:void 0:H(t.firstChild)},B=t=>j(t,u),V=t=>q(t)&&""===(null==t?void 0:t.data),q=t=>(null==t?void 0:t.nodeType)===Node.TEXT_NODE,Y={level2Enabled:!0,getLevel(){return this.level2Enabled&&m.supportsInputEvents?2:0},pickFiles(t){const e=R("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId});e.addEventListener("change",(()=>{t(e.files),M(e)})),M(document.getElementById(this.fileInputId)),document.body.appendChild(e),e.click()}};var U={removeBlankTableCells:!1,tableCellSeparator:" | ",tableRowSeparator:"\n"},G={bold:{tagName:"strong",inheritable:!0,parser(t){const e=window.getComputedStyle(t);return"bold"===e.fontWeight||e.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:t=>"italic"===window.getComputedStyle(t).fontStyle},href:{groupTagName:"a",parser(t){const e="a:not(".concat(u,")"),n=t.closest(e);if(n)return n.getAttribute("href")}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}},X={getDefaultHTML:()=>'<div class="trix-button-row">\n      <span class="trix-button-group trix-button-group--text-tools" data-trix-button-group="text-tools">\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-bold" data-trix-attribute="bold" data-trix-key="b" title="'.concat(g.bold,'" tabindex="-1">').concat(g.bold,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-italic" data-trix-attribute="italic" data-trix-key="i" title="').concat(g.italic,'" tabindex="-1">').concat(g.italic,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-strike" data-trix-attribute="strike" title="').concat(g.strike,'" tabindex="-1">').concat(g.strike,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-link" data-trix-attribute="href" data-trix-action="link" data-trix-key="k" title="').concat(g.link,'" tabindex="-1">').concat(g.link,'</button>\n      </span>\n\n      <span class="trix-button-group trix-button-group--block-tools" data-trix-button-group="block-tools">\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-heading-1" data-trix-attribute="heading1" title="').concat(g.heading1,'" tabindex="-1">').concat(g.heading1,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-quote" data-trix-attribute="quote" title="').concat(g.quote,'" tabindex="-1">').concat(g.quote,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-code" data-trix-attribute="code" title="').concat(g.code,'" tabindex="-1">').concat(g.code,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-bullet-list" data-trix-attribute="bullet" title="').concat(g.bullets,'" tabindex="-1">').concat(g.bullets,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-number-list" data-trix-attribute="number" title="').concat(g.numbers,'" tabindex="-1">').concat(g.numbers,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-decrease-nesting-level" data-trix-action="decreaseNestingLevel" title="').concat(g.outdent,'" tabindex="-1">').concat(g.outdent,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-increase-nesting-level" data-trix-action="increaseNestingLevel" title="').concat(g.indent,'" tabindex="-1">').concat(g.indent,'</button>\n      </span>\n\n      <span class="trix-button-group trix-button-group--file-tools" data-trix-button-group="file-tools">\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-attach" data-trix-action="attachFiles" title="').concat(g.attachFiles,'" tabindex="-1">').concat(g.attachFiles,'</button>\n      </span>\n\n      <span class="trix-button-group-spacer"></span>\n\n      <span class="trix-button-group trix-button-group--history-tools" data-trix-button-group="history-tools">\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-undo" data-trix-action="undo" data-trix-key="z" title="').concat(g.undo,'" tabindex="-1">').concat(g.undo,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-redo" data-trix-action="redo" data-trix-key="shift+z" title="').concat(g.redo,'" tabindex="-1">').concat(g.redo,'</button>\n      </span>\n    </div>\n\n    <div class="trix-dialogs" data-trix-dialogs>\n      <div class="trix-dialog trix-dialog--link" data-trix-dialog="href" data-trix-dialog-attribute="href">\n        <div class="trix-dialog__link-fields">\n          <input type="url" name="href" class="trix-input trix-input--dialog" placeholder="').concat(g.urlPlaceholder,'" aria-label="').concat(g.url,'" required data-trix-input>\n          <div class="trix-button-group">\n            <input type="button" class="trix-button trix-button--dialog" value="').concat(g.link,'" data-trix-method="setAttribute">\n            <input type="button" class="trix-button trix-button--dialog" value="').concat(g.unlink,'" data-trix-method="removeAttribute">\n          </div>\n        </div>\n      </div>\n    </div>')};const J={interval:5e3};var K=Object.freeze({__proto__:null,attachments:c,blockAttributes:d,browser:m,css:{attachment:"attachment",attachmentCaption:"attachment__caption",attachmentCaptionEditor:"attachment__caption-editor",attachmentMetadata:"attachment__metadata",attachmentMetadataContainer:"attachment__metadata-container",attachmentName:"attachment__name",attachmentProgress:"attachment__progress",attachmentSize:"attachment__size",attachmentToolbar:"attachment__toolbar",attachmentGallery:"attachment-gallery"},fileSize:v,input:Y,keyNames:{8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"},lang:g,parser:U,textAttributes:G,toolbar:X,undo:J});class ${static proxyMethod(t){const e=Q(t),n=e.name,r=e.toMethod,i=e.toProperty,o=e.optional;this.prototype[n]=function(){let t,e;var a,s;return r?e=o?null===(a=this[r])||void 0===a?void 0:a.call(this):this[r]():i&&(e=this[i]),o?(t=null===(s=e)||void 0===s?void 0:s[n],t?Z.call(t,e,arguments):void 0):(t=e[n],Z.call(t,e,arguments))}}}const Q=function(t){const e=t.match(tt);if(!e)throw new Error("can't parse @proxyMethod expression: ".concat(t));const n={name:e[4]};return null!=e[2]?n.toMethod=e[1]:n.toProperty=e[1],null!=e[3]&&(n.optional=!0),n},Z=Function.prototype.apply,tt=new RegExp("^(.+?)(\\(\\))?(\\?)?\\.(.+?)$");var et,nt,rt;class it extends ${static box(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t instanceof this?t:this.fromUCS2String(null==t?void 0:t.toString())}static fromUCS2String(t){return new this(t,lt(t))}static fromCodepoints(t){return new this(ut(t),t)}constructor(t,e){super(...arguments),this.ucs2String=t,this.codepoints=e,this.length=this.codepoints.length,this.ucs2Length=this.ucs2String.length}offsetToUCS2Offset(t){return ut(this.codepoints.slice(0,Math.max(0,t))).length}offsetFromUCS2Offset(t){return lt(this.ucs2String.slice(0,Math.max(0,t))).length}slice(){return this.constructor.fromCodepoints(this.codepoints.slice(...arguments))}charAt(t){return this.slice(t,t+1)}isEqualTo(t){return this.constructor.box(t).ucs2String===this.ucs2String}toJSON(){return this.ucs2String}getCacheKey(){return this.ucs2String}toString(){return this.ucs2String}}const ot=1===(null===(et=Array.from)||void 0===et?void 0:et.call(Array,"\ud83d\udc7c").length),at=null!=(null===(nt=" ".codePointAt)||void 0===nt?void 0:nt.call(" ",0)),st=" \ud83d\udc7c"===(null===(rt=String.fromCodePoint)||void 0===rt?void 0:rt.call(String,32,128124));let lt,ut;lt=ot&&at?t=>Array.from(t).map((t=>t.codePointAt(0))):function(t){const e=[];let n=0;const r=t.length;for(;n<r;){let i=t.charCodeAt(n++);if(55296<=i&&i<=56319&&n<r){const e=t.charCodeAt(n++);56320==(64512&e)?i=((1023&i)<<10)+(1023&e)+65536:n--}e.push(i)}return e},ut=st?t=>String.fromCodePoint(...Array.from(t||[])):function(t){return(()=>{const e=[];return Array.from(t).forEach((t=>{let n="";t>65535&&(t-=65536,n+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e.push(n+String.fromCharCode(t))})),e})().join("")};let ct=0;class dt extends ${static fromJSONString(t){return this.fromJSON(JSON.parse(t))}constructor(){super(...arguments),this.id=++ct}hasSameConstructorAs(t){return this.constructor===(null==t?void 0:t.constructor)}isEqualTo(t){return this===t}inspect(){const t=[],e=this.contentsForInspection()||{};for(const n in e){const r=e[n];t.push("".concat(n,"=").concat(r))}return"#<".concat(this.constructor.name,":").concat(this.id).concat(t.length?" ".concat(t.join(", ")):"",">")}contentsForInspection(){}toJSONString(){return JSON.stringify(this)}toUTF16String(){return it.box(this)}getCacheKey(){return this.id.toString()}}const ht=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},ft=function(t){const e=t.slice(0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.splice(...r),e},pt=/[\u05BE\u05C0\u05C3\u05D0-\u05EA\u05F0-\u05F4\u061B\u061F\u0621-\u063A\u0640-\u064A\u066D\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D5\u06E5\u06E6\u200F\u202B\u202E\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE72\uFE74\uFE76-\uFEFC]/,mt=function(){const t=R("input",{dir:"auto",name:"x",dirName:"x.dir"}),e=R("textarea",{dir:"auto",name:"y",dirName:"y.dir"}),n=R("form");n.appendChild(t),n.appendChild(e);const r=function(){try{return new FormData(n).has(e.dirName)}catch(t){return!1}}(),i=function(){try{return t.matches(":dir(ltr),:dir(rtl)")}catch(t){return!1}}();return r?function(t){return e.value=t,new FormData(n).get(e.dirName)}:i?function(e){return t.value=e,t.matches(":dir(rtl)")?"rtl":"ltr"}:function(t){const e=t.trim().charAt(0);return pt.test(e)?"rtl":"ltr"}}();let gt=null,bt=null,vt=null,yt=null;const wt=()=>(gt||(gt=xt().concat(_t())),gt),kt=t=>d[t],_t=()=>(bt||(bt=Object.keys(d)),bt),Ot=t=>G[t],xt=()=>(vt||(vt=Object.keys(G)),vt),Et=function(t,e){jt(t).textContent=e.replace(/%t/g,t)},jt=function(t){const e=document.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("data-tag-name",t.toLowerCase());const n=St();return n&&e.setAttribute("nonce",n),document.head.insertBefore(e,document.head.firstChild),e},St=function(){const t=Pt("trix-csp-nonce")||Pt("csp-nonce");if(t)return t.getAttribute("content")},Pt=t=>document.head.querySelector("meta[name=".concat(t,"]")),Ct={"application/x-trix-feature-detection":"test"},Tt=function(t){const e=t.getData("text/plain"),n=t.getData("text/html");if(!e||!n)return null==e?void 0:e.length;{const t=(new DOMParser).parseFromString(n,"text/html").body;if(t.textContent===e)return!t.querySelector("*")}},Mt=/Mac|^iP/.test(navigator.platform)?t=>t.metaKey:t=>t.ctrlKey,At=t=>setTimeout(t,1),Dt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e={};for(const n in t){const r=t[n];e[n]=r}return e},Rt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0},Lt=function(t){if(null!=t)return Array.isArray(t)||(t=[t,t]),[zt(t[0]),zt(null!=t[1]?t[1]:t[0])]},It=function(t){if(null==t)return;const e=i(Lt(t),2),n=e[0],r=e[1];return Nt(n,r)},Wt=function(t,e){if(null==t||null==e)return;const n=i(Lt(t),2),r=n[0],o=n[1],a=i(Lt(e),2),s=a[0],l=a[1];return Nt(r,s)&&Nt(o,l)},zt=function(t){return"number"==typeof t?t:Dt(t)},Nt=function(t,e){return"number"==typeof t?t===e:Rt(t,e)};class Ft extends ${constructor(){super(...arguments),this.update=this.update.bind(this),this.selectionManagers=[]}start(){this.started||(this.started=!0,document.addEventListener("selectionchange",this.update,!0))}stop(){if(this.started)return this.started=!1,document.removeEventListener("selectionchange",this.update,!0)}registerSelectionManager(t){if(!this.selectionManagers.includes(t))return this.selectionManagers.push(t),this.start()}unregisterSelectionManager(t){if(this.selectionManagers=this.selectionManagers.filter((e=>e!==t)),0===this.selectionManagers.length)return this.stop()}notifySelectionManagersOfSelectionChange(){return this.selectionManagers.map((t=>t.selectionDidChange()))}update(){this.notifySelectionManagersOfSelectionChange()}reset(){this.update()}}const Ht=new Ft,Bt=function(){const t=window.getSelection();if(t.rangeCount>0)return t},Vt=function(){var t;const e=null===(t=Bt())||void 0===t?void 0:t.getRangeAt(0);if(e&&!Yt(e))return e},qt=function(t){const e=window.getSelection();return e.removeAllRanges(),e.addRange(t),Ht.update()},Yt=t=>Ut(t.startContainer)||Ut(t.endContainer),Ut=t=>!Object.getPrototypeOf(t),Gt=t=>t.replace(new RegExp("".concat(y),"g"),"").replace(new RegExp("".concat(w),"g")," "),Xt=new RegExp("[^\\S".concat(w,"]")),Jt=t=>t.replace(new RegExp("".concat(Xt.source),"g")," ").replace(/\ {2,}/g," "),Kt=function(t,e){if(t.isEqualTo(e))return["",""];const n=$t(t,e),r=n.utf16String.length;let i;if(r){const o=n.offset,a=t.codepoints.slice(0,o).concat(t.codepoints.slice(o+r));i=$t(e,it.fromCodepoints(a))}else i=$t(e,t);return[n.utf16String.toString(),i.utf16String.toString()]},$t=function(t,e){let n=0,r=t.length,i=e.length;for(;n<r&&t.charAt(n).isEqualTo(e.charAt(n));)n++;for(;r>n+1&&t.charAt(r-1).isEqualTo(e.charAt(i-1));)r--,i--;return{utf16String:t.slice(n,r),offset:n}};class Qt extends dt{static fromCommonAttributesOfObjects(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return new this;let e=ne(t[0]),n=e.getKeys();return t.slice(1).forEach((t=>{n=e.getKeysCommonToHash(ne(t)),e=e.slice(n)})),e}static box(t){return ne(t)}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(...arguments),this.values=ee(t)}add(t,e){return this.merge(Zt(t,e))}remove(t){return new Qt(ee(this.values,t))}get(t){return this.values[t]}has(t){return t in this.values}merge(t){return new Qt(te(this.values,re(t)))}slice(t){const e={};return Array.from(t).forEach((t=>{this.has(t)&&(e[t]=this.values[t])})),new Qt(e)}getKeys(){return Object.keys(this.values)}getKeysCommonToHash(t){return t=ne(t),this.getKeys().filter((e=>this.values[e]===t.values[e]))}isEqualTo(t){return ht(this.toArray(),ne(t).toArray())}isEmpty(){return 0===this.getKeys().length}toArray(){if(!this.array){const t=[];for(const e in this.values){const n=this.values[e];t.push(t.push(e,n))}this.array=t.slice(0)}return this.array}toObject(){return ee(this.values)}toJSON(){return this.toObject()}contentsForInspection(){return{values:JSON.stringify(this.values)}}}const Zt=function(t,e){const n={};return n[t]=e,n},te=function(t,e){const n=ee(t);for(const r in e){const t=e[r];n[r]=t}return n},ee=function(t,e){const n={};return Object.keys(t).sort().forEach((r=>{r!==e&&(n[r]=t[r])})),n},ne=function(t){return t instanceof Qt?t:new Qt(t)},re=function(t){return t instanceof Qt?t.values:t};class ie{static groupObjects(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.depth,i=n.asTree;i&&null==r&&(r=0);const o=[];return Array.from(e).forEach((e=>{var n;if(t){var a,s,l;if(null!==(a=e.canBeGrouped)&&void 0!==a&&a.call(e,r)&&null!==(s=(l=t[t.length-1]).canBeGroupedWith)&&void 0!==s&&s.call(l,e,r))return void t.push(e);o.push(new this(t,{depth:r,asTree:i})),t=null}null!==(n=e.canBeGrouped)&&void 0!==n&&n.call(e,r)?t=[e]:o.push(e)})),t&&o.push(new this(t,{depth:r,asTree:i})),o}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=e.depth,r=e.asTree;this.objects=t,r&&(this.depth=n,this.objects=this.constructor.groupObjects(this.objects,{asTree:r,depth:this.depth+1}))}getObjects(){return this.objects}getDepth(){return this.depth}getCacheKey(){const t=["objectGroup"];return Array.from(this.getObjects()).forEach((e=>{t.push(e.getCacheKey())})),t.join("/")}}class oe extends ${constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments),this.objects={},Array.from(t).forEach((t=>{const e=JSON.stringify(t);null==this.objects[e]&&(this.objects[e]=t)}))}find(t){const e=JSON.stringify(t);return this.objects[e]}}class ae{constructor(t){this.reset(t)}add(t){const e=se(t);this.elements[e]=t}remove(t){const e=se(t),n=this.elements[e];if(n)return delete this.elements[e],n}reset(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.elements={},Array.from(t).forEach((t=>{this.add(t)})),t}}const se=t=>t.dataset.trixStoreKey;class le extends ${isPerforming(){return!0===this.performing}hasPerformed(){return!0===this.performed}hasSucceeded(){return this.performed&&this.succeeded}hasFailed(){return this.performed&&!this.succeeded}getPromise(){return this.promise||(this.promise=new Promise(((t,e)=>(this.performing=!0,this.perform(((n,r)=>{this.succeeded=n,this.performing=!1,this.performed=!0,this.succeeded?t(r):e(r)})))))),this.promise}perform(t){return t(!1)}release(){var t,e;null===(t=this.promise)||void 0===t||null===(e=t.cancel)||void 0===e||e.call(t),this.promise=null,this.performing=null,this.performed=null,this.succeeded=null}}le.proxyMethod("getPromise().then"),le.proxyMethod("getPromise().catch");class ue extends ${constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(...arguments),this.object=t,this.options=e,this.childViews=[],this.rootView=this}getNodes(){return this.nodes||(this.nodes=this.createNodes()),this.nodes.map((t=>t.cloneNode(!0)))}invalidate(){var t;return this.nodes=null,this.childViews=[],null===(t=this.parentView)||void 0===t?void 0:t.invalidate()}invalidateViewForObject(t){var e;return null===(e=this.findViewForObject(t))||void 0===e?void 0:e.invalidate()}findOrCreateCachedChildView(t,e,n){let r=this.getCachedViewForObject(e);return r?this.recordChildView(r):(r=this.createChildView(...arguments),this.cacheViewForObject(r,e)),r}createChildView(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof ie&&(n.viewClass=t,t=ce);const r=new t(e,n);return this.recordChildView(r)}recordChildView(t){return t.parentView=this,t.rootView=this.rootView,this.childViews.push(t),t}getAllChildViews(){let t=[];return this.childViews.forEach((e=>{t.push(e),t=t.concat(e.getAllChildViews())})),t}findElement(){return this.findElementForObject(this.object)}findElementForObject(t){const e=null==t?void 0:t.id;if(e)return this.rootView.element.querySelector("[data-trix-id='".concat(e,"']"))}findViewForObject(t){for(const e of this.getAllChildViews())if(e.object===t)return e}getViewCache(){return this.rootView!==this?this.rootView.getViewCache():this.isViewCachingEnabled()?(this.viewCache||(this.viewCache={}),this.viewCache):void 0}isViewCachingEnabled(){return!1!==this.shouldCacheViews}enableViewCaching(){this.shouldCacheViews=!0}disableViewCaching(){this.shouldCacheViews=!1}getCachedViewForObject(t){var e;return null===(e=this.getViewCache())||void 0===e?void 0:e[t.getCacheKey()]}cacheViewForObject(t,e){const n=this.getViewCache();n&&(n[e.getCacheKey()]=t)}garbageCollectCachedViews(){const t=this.getViewCache();if(t){const e=this.getAllChildViews().concat(this).map((t=>t.object.getCacheKey()));for(const n in t)e.includes(n)||delete t[n]}}}class ce extends ue{constructor(){super(...arguments),this.objectGroup=this.object,this.viewClass=this.options.viewClass,delete this.options.viewClass}getChildViews(){return this.childViews.length||Array.from(this.objectGroup.getObjects()).forEach((t=>{this.findOrCreateCachedChildView(this.viewClass,t,this.options)})),this.childViews}createNodes(){const t=this.createContainerElement();return this.getChildViews().forEach((e=>{Array.from(e.getNodes()).forEach((e=>{t.appendChild(e)}))})),[t]}createContainerElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.objectGroup.getDepth();return this.getChildViews()[0].createContainerElement(t)}}const de="style href src width height language class".split(" "),he="javascript:".split(" "),fe="script iframe form noscript".split(" ");class pe extends ${static setHTML(t,e){const n=new this(e).sanitize(),r=n.getHTML?n.getHTML():n.outerHTML;t.innerHTML=r}static sanitize(t,e){const n=new this(t,e);return n.sanitize(),n}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.allowedAttributes,r=e.forbiddenProtocols,i=e.forbiddenElements;super(...arguments),this.allowedAttributes=n||de,this.forbiddenProtocols=r||he,this.forbiddenElements=i||fe,this.body=me(t)}sanitize(){return this.sanitizeElements(),this.normalizeListElementNesting()}getHTML(){return this.body.innerHTML}getBody(){return this.body}sanitizeElements(){const t=A(this.body),e=[];for(;t.nextNode();){const n=t.currentNode;switch(n.nodeType){case Node.ELEMENT_NODE:this.elementIsRemovable(n)?e.push(n):this.sanitizeElement(n);break;case Node.COMMENT_NODE:e.push(n)}}return e.forEach((t=>M(t))),this.body}sanitizeElement(t){return t.hasAttribute("href")&&this.forbiddenProtocols.includes(t.protocol)&&t.removeAttribute("href"),Array.from(t.attributes).forEach((e=>{let n=e.name;this.allowedAttributes.includes(n)||0===n.indexOf("data-trix")||t.removeAttribute(n)})),t}normalizeListElementNesting(){return Array.from(this.body.querySelectorAll("ul,ol")).forEach((t=>{const e=t.previousElementSibling;e&&"li"===D(e)&&e.appendChild(t)})),this.body}elementIsRemovable(t){if((null==t?void 0:t.nodeType)===Node.ELEMENT_NODE)return this.elementIsForbidden(t)||this.elementIsntSerializable(t)}elementIsForbidden(t){return this.forbiddenElements.includes(D(t))}elementIsntSerializable(t){return"false"===t.getAttribute("data-trix-serialize")&&!B(t)}}const me=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t=t.replace(/<\/html[^>]*>[^]*$/i,"</html>");const e=document.implementation.createHTMLDocument("");return e.documentElement.innerHTML=t,Array.from(e.head.querySelectorAll("style")).forEach((t=>{e.body.appendChild(t)})),e.body},ge=K.css;class be extends ue{constructor(){super(...arguments),this.attachment=this.object,this.attachment.uploadProgressDelegate=this,this.attachmentPiece=this.options.piece}createContentNodes(){return[]}createNodes(){let t;const e=t=R({tagName:"figure",className:this.getClassName(),data:this.getData(),editable:!1}),n=this.getHref();return n&&(t=R({tagName:"a",editable:!1,attributes:{href:n,tabindex:-1}}),e.appendChild(t)),this.attachment.hasContent()?pe.setHTML(t,this.attachment.getContent()):this.createContentNodes().forEach((e=>{t.appendChild(e)})),t.appendChild(this.createCaptionElement()),this.attachment.isPending()&&(this.progressElement=R({tagName:"progress",attributes:{class:ge.attachmentProgress,value:this.attachment.getUploadProgress(),max:100},data:{trixMutable:!0,trixStoreKey:["progressElement",this.attachment.id].join("/")}}),e.appendChild(this.progressElement)),[ve("left"),e,ve("right")]}createCaptionElement(){const t=R({tagName:"figcaption",className:ge.attachmentCaption}),e=this.attachmentPiece.getCaption();if(e)t.classList.add("".concat(ge.attachmentCaption,"--edited")),t.textContent=e;else{let e,n;const r=this.getCaptionConfig();if(r.name&&(e=this.attachment.getFilename()),r.size&&(n=this.attachment.getFormattedFilesize()),e){const n=R({tagName:"span",className:ge.attachmentName,textContent:e});t.appendChild(n)}if(n){e&&t.appendChild(document.createTextNode(" "));const r=R({tagName:"span",className:ge.attachmentSize,textContent:n});t.appendChild(r)}}return t}getClassName(){const t=[ge.attachment,"".concat(ge.attachment,"--").concat(this.attachment.getType())],e=this.attachment.getExtension();return e&&t.push("".concat(ge.attachment,"--").concat(e)),t.join(" ")}getData(){const t={trixAttachment:JSON.stringify(this.attachment),trixContentType:this.attachment.getContentType(),trixId:this.attachment.id},e=this.attachmentPiece.attributes;return e.isEmpty()||(t.trixAttributes=JSON.stringify(e)),this.attachment.isPending()&&(t.trixSerialize=!1),t}getHref(){if(!ye(this.attachment.getContent(),"a"))return this.attachment.getHref()}getCaptionConfig(){var t;const e=this.attachment.getType(),n=Dt(null===(t=c[e])||void 0===t?void 0:t.caption);return"file"===e&&(n.name=!0),n}findProgressElement(){var t;return null===(t=this.findElement())||void 0===t?void 0:t.querySelector("progress")}attachmentDidChangeUploadProgress(){const t=this.attachment.getUploadProgress(),e=this.findProgressElement();e&&(e.value=t)}}const ve=t=>R({tagName:"span",textContent:y,data:{trixCursorTarget:t,trixSerialize:!1}}),ye=function(t,e){const n=R("div");return pe.setHTML(n,t||""),n.querySelector(e)};class we extends be{constructor(){super(...arguments),this.attachment.previewDelegate=this}createContentNodes(){return this.image=R({tagName:"img",attributes:{src:""},data:{trixMutable:!0}}),this.refresh(this.image),[this.image]}createCaptionElement(){const t=super.createCaptionElement(...arguments);return t.textContent||t.setAttribute("data-trix-placeholder",g.captionPlaceholder),t}refresh(t){var e;if(t||(t=null===(e=this.findElement())||void 0===e?void 0:e.querySelector("img")),t)return this.updateAttributesForImage(t)}updateAttributesForImage(t){const e=this.attachment.getURL(),n=this.attachment.getPreviewURL();if(t.src=n||e,n===e)t.removeAttribute("data-trix-serialized-attributes");else{const n=JSON.stringify({src:e});t.setAttribute("data-trix-serialized-attributes",n)}const r=this.attachment.getWidth(),i=this.attachment.getHeight();null!=r&&(t.width=r),null!=i&&(t.height=i);const o=["imageElement",this.attachment.id,t.src,t.width,t.height].join("/");t.dataset.trixStoreKey=o}attachmentDidChangeAttributes(){return this.refresh(this.image),this.refresh()}}class ke extends ue{constructor(){super(...arguments),this.piece=this.object,this.attributes=this.piece.getAttributes(),this.textConfig=this.options.textConfig,this.context=this.options.context,this.piece.attachment?this.attachment=this.piece.attachment:this.string=this.piece.toString()}createNodes(){let t=this.attachment?this.createAttachmentNodes():this.createStringNodes();const e=this.createElement();if(e){const n=function(t){for(;null!==(e=t)&&void 0!==e&&e.firstElementChild;){var e;t=t.firstElementChild}return t}(e);Array.from(t).forEach((t=>{n.appendChild(t)})),t=[e]}return t}createAttachmentNodes(){const t=this.attachment.isPreviewable()?we:be;return this.createChildView(t,this.piece.attachment,{piece:this.piece}).getNodes()}createStringNodes(){var t;if(null!==(t=this.textConfig)&&void 0!==t&&t.plaintext)return[document.createTextNode(this.string)];{const t=[],e=this.string.split("\n");for(let n=0;n<e.length;n++){const r=e[n];if(n>0){const e=R("br");t.push(e)}if(r.length){const e=document.createTextNode(this.preserveSpaces(r));t.push(e)}}return t}}createElement(){let t,e,n;const r={};for(e in this.attributes){n=this.attributes[e];const o=Ot(e);if(o){if(o.tagName){var i;const e=R(o.tagName);i?(i.appendChild(e),i=e):t=i=e}if(o.styleProperty&&(r[o.styleProperty]=n),o.style)for(e in o.style)n=o.style[e],r[e]=n}}if(Object.keys(r).length)for(e in t||(t=R("span")),r)n=r[e],t.style[e]=n;return t}createContainerElement(){for(const t in this.attributes){const e=this.attributes[t],n=Ot(t);if(n&&n.groupTagName){const r={};return r[t]=e,R(n.groupTagName,r)}}}preserveSpaces(t){return this.context.isLast&&(t=t.replace(/\ $/,w)),t=t.replace(/(\S)\ {3}(\S)/g,"$1 ".concat(w," $2")).replace(/\ {2}/g,"".concat(w," ")).replace(/\ {2}/g," ".concat(w)),(this.context.isFirst||this.context.followsWhitespace)&&(t=t.replace(/^\ /,w)),t}}class _e extends ue{constructor(){super(...arguments),this.text=this.object,this.textConfig=this.options.textConfig}createNodes(){const t=[],e=ie.groupObjects(this.getPieces()),n=e.length-1;for(let i=0;i<e.length;i++){const o=e[i],a={};0===i&&(a.isFirst=!0),i===n&&(a.isLast=!0),Oe(r)&&(a.followsWhitespace=!0);const s=this.findOrCreateCachedChildView(ke,o,{textConfig:this.textConfig,context:a});t.push(...Array.from(s.getNodes()||[]));var r=o}return t}getPieces(){return Array.from(this.text.getPieces()).filter((t=>!t.hasAttribute("blockBreak")))}}const Oe=t=>/\s$/.test(null==t?void 0:t.toString()),xe=K.css;class Ee extends ue{constructor(){super(...arguments),this.block=this.object,this.attributes=this.block.getAttributes()}createNodes(){const t=[document.createComment("block")];if(this.block.isEmpty())t.push(R("br"));else{var e;const n=null===(e=kt(this.block.getLastAttribute()))||void 0===e?void 0:e.text,r=this.findOrCreateCachedChildView(_e,this.block.text,{textConfig:n});t.push(...Array.from(r.getNodes()||[])),this.shouldAddExtraNewlineElement()&&t.push(R("br"))}if(this.attributes.length)return t;{let e;const n=d.default.tagName;this.block.isRTL()&&(e={dir:"rtl"});const r=R({tagName:n,attributes:e});return t.forEach((t=>r.appendChild(t))),[r]}}createContainerElement(t){const e={};let n;const r=this.attributes[t],o=kt(r),a=o.tagName,s=o.htmlAttributes,l=void 0===s?[]:s;if(0===t&&this.block.isRTL()&&Object.assign(e,{dir:"rtl"}),"attachmentGallery"===r){const t=this.block.getBlockBreakPosition();n="".concat(xe.attachmentGallery," ").concat(xe.attachmentGallery,"--").concat(t)}return Object.entries(this.block.htmlAttributes).forEach((t=>{let n=i(t,2),r=n[0],o=n[1];l.includes(r)&&(e[r]=o)})),R({tagName:a,className:n,attributes:e})}shouldAddExtraNewlineElement(){return/\n\n$/.test(this.block.toString())}}class je extends ue{static render(t){const e=R("div"),n=new this(t,{element:e});return n.render(),n.sync(),e}constructor(){super(...arguments),this.element=this.options.element,this.elementStore=new ae,this.setDocument(this.object)}setDocument(t){t.isEqualTo(this.document)||(this.document=this.object=t)}render(){if(this.childViews=[],this.shadowElement=R("div"),!this.document.isEmpty()){const t=ie.groupObjects(this.document.getBlocks(),{asTree:!0});Array.from(t).forEach((t=>{const e=this.findOrCreateCachedChildView(Ee,t);Array.from(e.getNodes()).map((t=>this.shadowElement.appendChild(t)))}))}}isSynced(){return Pe(this.shadowElement,this.element)}sync(){const t=this.createDocumentFragmentForSync();for(;this.element.lastChild;)this.element.removeChild(this.element.lastChild);return this.element.appendChild(t),this.didSync()}didSync(){return this.elementStore.reset(Se(this.element)),At((()=>this.garbageCollectCachedViews()))}createDocumentFragmentForSync(){const t=document.createDocumentFragment();return Array.from(this.shadowElement.childNodes).forEach((e=>{t.appendChild(e.cloneNode(!0))})),Array.from(Se(t)).forEach((t=>{const e=this.elementStore.remove(t);e&&t.parentNode.replaceChild(e,t)})),t}}const Se=t=>t.querySelectorAll("[data-trix-store-key]"),Pe=(t,e)=>Ce(t.innerHTML)===Ce(e.innerHTML),Ce=t=>t.replace(/&nbsp;/g," ");function Te(t){var e,n;function r(e,n){try{var o=t[e](n),a=o.value,s=a instanceof Me;Promise.resolve(s?a.v:a).then((function(n){if(s){var l="return"===e?"return":"next";if(!a.k||n.done)return r(l,n);n=t[l](n).value}i(o.done?"return":"normal",n)}),(function(t){r("throw",t)}))}catch(t){i("throw",t)}}function i(t,i){switch(t){case"return":e.resolve({value:i,done:!0});break;case"throw":e.reject(i);break;default:e.resolve({value:i,done:!1})}(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,i){return new Promise((function(o,a){var s={key:t,arg:i,resolve:o,reject:a,next:null};n?n=n.next=s:(e=n=s,r(t,i))}))},"function"!=typeof t.return&&(this.return=void 0)}function Me(t,e){this.v=t,this.k=e}function Ae(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Te.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Te.prototype.next=function(t){return this._invoke("next",t)},Te.prototype.throw=function(t){return this._invoke("throw",t)},Te.prototype.return=function(t){return this._invoke("return",t)};class De extends dt{static registerType(t,e){e.type=t,this.types[t]=e}static fromJSON(t){const e=this.types[t.type];if(e)return e.fromJSON(t)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(...arguments),this.attributes=Qt.box(e)}copyWithAttributes(t){return new this.constructor(this.getValue(),t)}copyWithAdditionalAttributes(t){return this.copyWithAttributes(this.attributes.merge(t))}copyWithoutAttribute(t){return this.copyWithAttributes(this.attributes.remove(t))}copy(){return this.copyWithAttributes(this.attributes)}getAttribute(t){return this.attributes.get(t)}getAttributesHash(){return this.attributes}getAttributes(){return this.attributes.toObject()}hasAttribute(t){return this.attributes.has(t)}hasSameStringValueAsPiece(t){return t&&this.toString()===t.toString()}hasSameAttributesAsPiece(t){return t&&(this.attributes===t.attributes||this.attributes.isEqualTo(t.attributes))}isBlockBreak(){return!1}isEqualTo(t){return super.isEqualTo(...arguments)||this.hasSameConstructorAs(t)&&this.hasSameStringValueAsPiece(t)&&this.hasSameAttributesAsPiece(t)}isEmpty(){return 0===this.length}isSerializable(){return!0}toJSON(){return{type:this.constructor.type,attributes:this.getAttributes()}}contentsForInspection(){return{type:this.constructor.type,attributes:this.attributes.inspect()}}canBeGrouped(){return this.hasAttribute("href")}canBeGroupedWith(t){return this.getAttribute("href")===t.getAttribute("href")}getLength(){return this.length}canBeConsolidatedWith(t){return!1}}Ae(De,"types",{});class Re extends le{constructor(t){super(...arguments),this.url=t}perform(t){const e=new Image;e.onload=()=>(e.width=this.width=e.naturalWidth,e.height=this.height=e.naturalHeight,t(!0,e)),e.onerror=()=>t(!1),e.src=this.url}}class Le extends dt{static attachmentForFile(t){const e=new this(this.attributesForFile(t));return e.setFile(t),e}static attributesForFile(t){return new Qt({filename:t.name,filesize:t.size,contentType:t.type})}static fromJSON(t){return new this(t)}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(t),this.releaseFile=this.releaseFile.bind(this),this.attributes=Qt.box(t),this.didChangeAttributes()}getAttribute(t){return this.attributes.get(t)}hasAttribute(t){return this.attributes.has(t)}getAttributes(){return this.attributes.toObject()}setAttributes(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=this.attributes.merge(t);var n,r,i,o;if(!this.attributes.isEqualTo(e))return this.attributes=e,this.didChangeAttributes(),null===(n=this.previewDelegate)||void 0===n||null===(r=n.attachmentDidChangeAttributes)||void 0===r||r.call(n,this),null===(i=this.delegate)||void 0===i||null===(o=i.attachmentDidChangeAttributes)||void 0===o?void 0:o.call(i,this)}didChangeAttributes(){if(this.isPreviewable())return this.preloadURL()}isPending(){return null!=this.file&&!(this.getURL()||this.getHref())}isPreviewable(){return this.attributes.has("previewable")?this.attributes.get("previewable"):Le.previewablePattern.test(this.getContentType())}getType(){return this.hasContent()?"content":this.isPreviewable()?"preview":"file"}getURL(){return this.attributes.get("url")}getHref(){return this.attributes.get("href")}getFilename(){return this.attributes.get("filename")||""}getFilesize(){return this.attributes.get("filesize")}getFormattedFilesize(){const t=this.attributes.get("filesize");return"number"==typeof t?v.formatter(t):""}getExtension(){var t;return null===(t=this.getFilename().match(/\.(\w+)$/))||void 0===t?void 0:t[1].toLowerCase()}getContentType(){return this.attributes.get("contentType")}hasContent(){return this.attributes.has("content")}getContent(){return this.attributes.get("content")}getWidth(){return this.attributes.get("width")}getHeight(){return this.attributes.get("height")}getFile(){return this.file}setFile(t){if(this.file=t,this.isPreviewable())return this.preloadFile()}releaseFile(){this.releasePreloadedFile(),this.file=null}getUploadProgress(){return null!=this.uploadProgress?this.uploadProgress:0}setUploadProgress(t){var e,n;if(this.uploadProgress!==t)return this.uploadProgress=t,null===(e=this.uploadProgressDelegate)||void 0===e||null===(n=e.attachmentDidChangeUploadProgress)||void 0===n?void 0:n.call(e,this)}toJSON(){return this.getAttributes()}getCacheKey(){return[super.getCacheKey(...arguments),this.attributes.getCacheKey(),this.getPreviewURL()].join("/")}getPreviewURL(){return this.previewURL||this.preloadingURL}setPreviewURL(t){var e,n,r,i;if(t!==this.getPreviewURL())return this.previewURL=t,null===(e=this.previewDelegate)||void 0===e||null===(n=e.attachmentDidChangeAttributes)||void 0===n||n.call(e,this),null===(r=this.delegate)||void 0===r||null===(i=r.attachmentDidChangePreviewURL)||void 0===i?void 0:i.call(r,this)}preloadURL(){return this.preload(this.getURL(),this.releaseFile)}preloadFile(){if(this.file)return this.fileObjectURL=URL.createObjectURL(this.file),this.preload(this.fileObjectURL)}releasePreloadedFile(){this.fileObjectURL&&(URL.revokeObjectURL(this.fileObjectURL),this.fileObjectURL=null)}preload(t,e){if(t&&t!==this.getPreviewURL())return this.preloadingURL=t,new Re(t).then((n=>{let r=n.width,i=n.height;return this.getWidth()&&this.getHeight()||this.setAttributes({width:r,height:i}),this.preloadingURL=null,this.setPreviewURL(t),null==e?void 0:e()})).catch((()=>(this.preloadingURL=null,null==e?void 0:e())))}}Ae(Le,"previewablePattern",/^image(\/(gif|png|webp|jpe?g)|$)/);class Ie extends De{static fromJSON(t){return new this(Le.fromJSON(t.attachment),t.attributes)}constructor(t){super(...arguments),this.attachment=t,this.length=1,this.ensureAttachmentExclusivelyHasAttribute("href"),this.attachment.hasContent()||this.removeProhibitedAttributes()}ensureAttachmentExclusivelyHasAttribute(t){this.hasAttribute(t)&&(this.attachment.hasAttribute(t)||this.attachment.setAttributes(this.attributes.slice([t])),this.attributes=this.attributes.remove(t))}removeProhibitedAttributes(){const t=this.attributes.slice(Ie.permittedAttributes);t.isEqualTo(this.attributes)||(this.attributes=t)}getValue(){return this.attachment}isSerializable(){return!this.attachment.isPending()}getCaption(){return this.attributes.get("caption")||""}isEqualTo(t){var e;return super.isEqualTo(t)&&this.attachment.id===(null==t||null===(e=t.attachment)||void 0===e?void 0:e.id)}toString(){return"\ufffc"}toJSON(){const t=super.toJSON(...arguments);return t.attachment=this.attachment,t}getCacheKey(){return[super.getCacheKey(...arguments),this.attachment.getCacheKey()].join("/")}toConsole(){return JSON.stringify(this.toString())}}Ae(Ie,"permittedAttributes",["caption","presentation"]),De.registerType("attachment",Ie);class We extends De{static fromJSON(t){return new this(t.string,t.attributes)}constructor(t){super(...arguments),this.string=(t=>t.replace(/\r\n?/g,"\n"))(t),this.length=this.string.length}getValue(){return this.string}toString(){return this.string.toString()}isBlockBreak(){return"\n"===this.toString()&&!0===this.getAttribute("blockBreak")}toJSON(){const t=super.toJSON(...arguments);return t.string=this.string,t}canBeConsolidatedWith(t){return t&&this.hasSameConstructorAs(t)&&this.hasSameAttributesAsPiece(t)}consolidateWith(t){return new this.constructor(this.toString()+t.toString(),this.attributes)}splitAtOffset(t){let e,n;return 0===t?(e=null,n=this):t===this.length?(e=this,n=null):(e=new this.constructor(this.string.slice(0,t),this.attributes),n=new this.constructor(this.string.slice(t),this.attributes)),[e,n]}toConsole(){let t=this.string;return t.length>15&&(t=t.slice(0,14)+"\u2026"),JSON.stringify(t.toString())}}De.registerType("string",We);class ze extends dt{static box(t){return t instanceof this?t:new this(t)}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments),this.objects=t.slice(0),this.length=this.objects.length}indexOf(t){return this.objects.indexOf(t)}splice(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new this.constructor(ft(this.objects,...e))}eachObject(t){return this.objects.map(((e,n)=>t(e,n)))}insertObjectAtIndex(t,e){return this.splice(e,0,t)}insertSplittableListAtIndex(t,e){return this.splice(e,0,...t.objects)}insertSplittableListAtPosition(t,e){const n=i(this.splitObjectAtPosition(e),2),r=n[0],o=n[1];return new this.constructor(r).insertSplittableListAtIndex(t,o)}editObjectAtIndex(t,e){return this.replaceObjectAtIndex(e(this.objects[t]),t)}replaceObjectAtIndex(t,e){return this.splice(e,1,t)}removeObjectAtIndex(t){return this.splice(t,1)}getObjectAtIndex(t){return this.objects[t]}getSplittableListInRange(t){const e=i(this.splitObjectsAtRange(t),3),n=e[0],r=e[1],o=e[2];return new this.constructor(n.slice(r,o+1))}selectSplittableList(t){const e=this.objects.filter((e=>t(e)));return new this.constructor(e)}removeObjectsInRange(t){const e=i(this.splitObjectsAtRange(t),3),n=e[0],r=e[1],o=e[2];return new this.constructor(n).splice(r,o-r+1)}transformObjectsInRange(t,e){const n=i(this.splitObjectsAtRange(t),3),r=n[0],o=n[1],a=n[2],s=r.map(((t,n)=>o<=n&&n<=a?e(t):t));return new this.constructor(s)}splitObjectsAtRange(t){var e;let n,r=i(this.splitObjectAtPosition(Fe(t)),3),o=r[0],a=r[1],s=r[2];return o=(e=i(new this.constructor(o).splitObjectAtPosition(He(t)+s),2))[0],n=e[1],[o,a,n-1]}getObjectAtPosition(t){const e=this.findIndexAndOffsetAtPosition(t).index;return this.objects[e]}splitObjectAtPosition(t){let e,n;const r=this.findIndexAndOffsetAtPosition(t),o=r.index,a=r.offset,s=this.objects.slice(0);if(null!=o)if(0===a)e=o,n=0;else{const t=i(this.getObjectAtIndex(o).splitAtOffset(a),2),r=t[0],l=t[1];s.splice(o,1,r,l),e=o+1,n=r.getLength()-a}else e=s.length,n=0;return[s,e,n]}consolidate(){const t=[];let e=this.objects[0];return this.objects.slice(1).forEach((n=>{var r,i;null!==(r=(i=e).canBeConsolidatedWith)&&void 0!==r&&r.call(i,n)?e=e.consolidateWith(n):(t.push(e),e=n)})),e&&t.push(e),new this.constructor(t)}consolidateFromIndexToIndex(t,e){const n=this.objects.slice(0).slice(t,e+1),r=new this.constructor(n).consolidate().toArray();return this.splice(t,n.length,...r)}findIndexAndOffsetAtPosition(t){let e,n=0;for(e=0;e<this.objects.length;e++){const r=n+this.objects[e].getLength();if(n<=t&&t<r)return{index:e,offset:t-n};n=r}return{index:null,offset:null}}findPositionAtIndexAndOffset(t,e){let n=0;for(let r=0;r<this.objects.length;r++){const i=this.objects[r];if(r<t)n+=i.getLength();else if(r===t){n+=e;break}}return n}getEndPosition(){return null==this.endPosition&&(this.endPosition=0,this.objects.forEach((t=>this.endPosition+=t.getLength()))),this.endPosition}toString(){return this.objects.join("")}toArray(){return this.objects.slice(0)}toJSON(){return this.toArray()}isEqualTo(t){return super.isEqualTo(...arguments)||Ne(this.objects,null==t?void 0:t.objects)}contentsForInspection(){return{objects:"[".concat(this.objects.map((t=>t.inspect())).join(", "),"]")}}}const Ne=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length!==e.length)return!1;let n=!0;for(let r=0;r<t.length;r++){const i=t[r];n&&!i.isEqualTo(e[r])&&(n=!1)}return n},Fe=t=>t[0],He=t=>t[1];class Be extends dt{static textForAttachmentWithAttributes(t,e){return new this([new Ie(t,e)])}static textForStringWithAttributes(t,e){return new this([new We(t,e)])}static fromJSON(t){return new this(Array.from(t).map((t=>De.fromJSON(t))))}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments);const e=t.filter((t=>!t.isEmpty()));this.pieceList=new ze(e)}copy(){return this.copyWithPieceList(this.pieceList)}copyWithPieceList(t){return new this.constructor(t.consolidate().toArray())}copyUsingObjectMap(t){const e=this.getPieces().map((e=>t.find(e)||e));return new this.constructor(e)}appendText(t){return this.insertTextAtPosition(t,this.getLength())}insertTextAtPosition(t,e){return this.copyWithPieceList(this.pieceList.insertSplittableListAtPosition(t.pieceList,e))}removeTextAtRange(t){return this.copyWithPieceList(this.pieceList.removeObjectsInRange(t))}replaceTextAtRange(t,e){return this.removeTextAtRange(e).insertTextAtPosition(t,e[0])}moveTextFromRangeToPosition(t,e){if(t[0]<=e&&e<=t[1])return;const n=this.getTextAtRange(t),r=n.getLength();return t[0]<e&&(e-=r),this.removeTextAtRange(t).insertTextAtPosition(n,e)}addAttributeAtRange(t,e,n){const r={};return r[t]=e,this.addAttributesAtRange(r,n)}addAttributesAtRange(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(e=>e.copyWithAdditionalAttributes(t))))}removeAttributeAtRange(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(e=>e.copyWithoutAttribute(t))))}setAttributesAtRange(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(e=>e.copyWithAttributes(t))))}getAttributesAtPosition(t){var e;return(null===(e=this.pieceList.getObjectAtPosition(t))||void 0===e?void 0:e.getAttributes())||{}}getCommonAttributes(){const t=Array.from(this.pieceList.toArray()).map((t=>t.getAttributes()));return Qt.fromCommonAttributesOfObjects(t).toObject()}getCommonAttributesAtRange(t){return this.getTextAtRange(t).getCommonAttributes()||{}}getExpandedRangeForAttributeAtOffset(t,e){let n,r=n=e;const i=this.getLength();for(;r>0&&this.getCommonAttributesAtRange([r-1,n])[t];)r--;for(;n<i&&this.getCommonAttributesAtRange([e,n+1])[t];)n++;return[r,n]}getTextAtRange(t){return this.copyWithPieceList(this.pieceList.getSplittableListInRange(t))}getStringAtRange(t){return this.pieceList.getSplittableListInRange(t).toString()}getStringAtPosition(t){return this.getStringAtRange([t,t+1])}startsWithString(t){return this.getStringAtRange([0,t.length])===t}endsWithString(t){const e=this.getLength();return this.getStringAtRange([e-t.length,e])===t}getAttachmentPieces(){return this.pieceList.toArray().filter((t=>!!t.attachment))}getAttachments(){return this.getAttachmentPieces().map((t=>t.attachment))}getAttachmentAndPositionById(t){let e=0;for(const r of this.pieceList.toArray()){var n;if((null===(n=r.attachment)||void 0===n?void 0:n.id)===t)return{attachment:r.attachment,position:e};e+=r.length}return{attachment:null,position:null}}getAttachmentById(t){return this.getAttachmentAndPositionById(t).attachment}getRangeOfAttachment(t){const e=this.getAttachmentAndPositionById(t.id),n=e.position;if(t=e.attachment)return[n,n+1]}updateAttributesForAttachment(t,e){const n=this.getRangeOfAttachment(e);return n?this.addAttributesAtRange(t,n):this}getLength(){return this.pieceList.getEndPosition()}isEmpty(){return 0===this.getLength()}isEqualTo(t){var e;return super.isEqualTo(t)||(null==t||null===(e=t.pieceList)||void 0===e?void 0:e.isEqualTo(this.pieceList))}isBlockBreak(){return 1===this.getLength()&&this.pieceList.getObjectAtIndex(0).isBlockBreak()}eachPiece(t){return this.pieceList.eachObject(t)}getPieces(){return this.pieceList.toArray()}getPieceAtPosition(t){return this.pieceList.getObjectAtPosition(t)}contentsForInspection(){return{pieceList:this.pieceList.inspect()}}toSerializableText(){const t=this.pieceList.selectSplittableList((t=>t.isSerializable()));return this.copyWithPieceList(t)}toString(){return this.pieceList.toString()}toJSON(){return this.pieceList.toJSON()}toConsole(){return JSON.stringify(this.pieceList.toArray().map((t=>JSON.parse(t.toConsole()))))}getDirection(){return mt(this.toString())}isRTL(){return"rtl"===this.getDirection()}}class Ve extends dt{static fromJSON(t){return new this(Be.fromJSON(t.text),t.attributes,t.htmlAttributes)}constructor(t,e,n){super(...arguments),this.text=qe(t||new Be),this.attributes=e||[],this.htmlAttributes=n||{}}isEmpty(){return this.text.isBlockBreak()}isEqualTo(t){return!!super.isEqualTo(t)||this.text.isEqualTo(null==t?void 0:t.text)&&ht(this.attributes,null==t?void 0:t.attributes)&&Rt(this.htmlAttributes,null==t?void 0:t.htmlAttributes)}copyWithText(t){return new Ve(t,this.attributes,this.htmlAttributes)}copyWithoutText(){return this.copyWithText(null)}copyWithAttributes(t){return new Ve(this.text,t,this.htmlAttributes)}copyWithoutAttributes(){return this.copyWithAttributes(null)}copyUsingObjectMap(t){const e=t.find(this.text);return e?this.copyWithText(e):this.copyWithText(this.text.copyUsingObjectMap(t))}addAttribute(t){const e=this.attributes.concat(Ke(t));return this.copyWithAttributes(e)}addHTMLAttribute(t,e){const n=Object.assign({},this.htmlAttributes,{[t]:e});return new Ve(this.text,this.attributes,n)}removeAttribute(t){const e=kt(t).listAttribute,n=Qe(Qe(this.attributes,t),e);return this.copyWithAttributes(n)}removeLastAttribute(){return this.removeAttribute(this.getLastAttribute())}getLastAttribute(){return $e(this.attributes)}getAttributes(){return this.attributes.slice(0)}getAttributeLevel(){return this.attributes.length}getAttributeAtLevel(t){return this.attributes[t-1]}hasAttribute(t){return this.attributes.includes(t)}hasAttributes(){return this.getAttributeLevel()>0}getLastNestableAttribute(){return $e(this.getNestableAttributes())}getNestableAttributes(){return this.attributes.filter((t=>kt(t).nestable))}getNestingLevel(){return this.getNestableAttributes().length}decreaseNestingLevel(){const t=this.getLastNestableAttribute();return t?this.removeAttribute(t):this}increaseNestingLevel(){const t=this.getLastNestableAttribute();if(t){const e=this.attributes.lastIndexOf(t),n=ft(this.attributes,e+1,0,...Ke(t));return this.copyWithAttributes(n)}return this}getListItemAttributes(){return this.attributes.filter((t=>kt(t).listAttribute))}isListItem(){var t;return null===(t=kt(this.getLastAttribute()))||void 0===t?void 0:t.listAttribute}isTerminalBlock(){var t;return null===(t=kt(this.getLastAttribute()))||void 0===t?void 0:t.terminal}breaksOnReturn(){var t;return null===(t=kt(this.getLastAttribute()))||void 0===t?void 0:t.breakOnReturn}findLineBreakInDirectionFromPosition(t,e){const n=this.toString();let r;switch(t){case"forward":r=n.indexOf("\n",e);break;case"backward":r=n.slice(0,e).lastIndexOf("\n")}if(-1!==r)return r}contentsForInspection(){return{text:this.text.inspect(),attributes:this.attributes}}toString(){return this.text.toString()}toJSON(){return{text:this.text,attributes:this.attributes,htmlAttributes:this.htmlAttributes}}getDirection(){return this.text.getDirection()}isRTL(){return this.text.isRTL()}getLength(){return this.text.getLength()}canBeConsolidatedWith(t){return!this.hasAttributes()&&!t.hasAttributes()&&this.getDirection()===t.getDirection()}consolidateWith(t){const e=Be.textForStringWithAttributes("\n"),n=this.getTextWithoutBlockBreak().appendText(e);return this.copyWithText(n.appendText(t.text))}splitAtOffset(t){let e,n;return 0===t?(e=null,n=this):t===this.getLength()?(e=this,n=null):(e=this.copyWithText(this.text.getTextAtRange([0,t])),n=this.copyWithText(this.text.getTextAtRange([t,this.getLength()]))),[e,n]}getBlockBreakPosition(){return this.text.getLength()-1}getTextWithoutBlockBreak(){return Xe(this.text)?this.text.getTextAtRange([0,this.getBlockBreakPosition()]):this.text.copy()}canBeGrouped(t){return this.attributes[t]}canBeGroupedWith(t,e){const n=t.getAttributes(),r=n[e],i=this.attributes[e];return i===r&&!(!1===kt(i).group&&!(()=>{if(!yt){yt=[];for(const t in d){const e=d[t].listAttribute;null!=e&&yt.push(e)}}return yt})().includes(n[e+1]))&&(this.getDirection()===t.getDirection()||t.isEmpty())}}const qe=function(t){return t=Ye(t),Ge(t)},Ye=function(t){let e=!1;const n=t.getPieces();let r=n.slice(0,n.length-1);const i=n[n.length-1];return i?(r=r.map((t=>t.isBlockBreak()?(e=!0,Je(t)):t)),e?new Be([...r,i]):t):t},Ue=Be.textForStringWithAttributes("\n",{blockBreak:!0}),Ge=function(t){return Xe(t)?t:t.appendText(Ue)},Xe=function(t){const e=t.getLength();return 0!==e&&t.getTextAtRange([e-1,e]).isBlockBreak()},Je=t=>t.copyWithoutAttribute("blockBreak"),Ke=function(t){const e=kt(t).listAttribute;return e?[e,t]:[t]},$e=t=>t.slice(-1)[0],Qe=function(t,e){const n=t.lastIndexOf(e);return-1===n?t:ft(t,n,1)};class Ze extends dt{static fromJSON(t){return new this(Array.from(t).map((t=>Ve.fromJSON(t))))}static fromString(t,e){const n=Be.textForStringWithAttributes(t,e);return new this([new Ve(n)])}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments),0===t.length&&(t=[new Ve]),this.blockList=ze.box(t)}isEmpty(){const t=this.getBlockAtIndex(0);return 1===this.blockList.length&&t.isEmpty()&&!t.hasAttributes()}copy(){const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).consolidateBlocks?this.blockList.consolidate().toArray():this.blockList.toArray();return new this.constructor(t)}copyUsingObjectsFromDocument(t){const e=new oe(t.getObjects());return this.copyUsingObjectMap(e)}copyUsingObjectMap(t){const e=this.getBlocks().map((e=>t.find(e)||e.copyUsingObjectMap(t)));return new this.constructor(e)}copyWithBaseBlockAttributes(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=this.getBlocks().map((e=>{const n=t.concat(e.getAttributes());return e.copyWithAttributes(n)}));return new this.constructor(e)}replaceBlock(t,e){const n=this.blockList.indexOf(t);return-1===n?this:new this.constructor(this.blockList.replaceObjectAtIndex(e,n))}insertDocumentAtRange(t,e){const n=t.blockList;let r=i(e=Lt(e),1)[0];const o=this.locationFromPosition(r),a=o.index,s=o.offset;let l=this;const u=this.getBlockAtPosition(r);return It(e)&&u.isEmpty()&&!u.hasAttributes()?l=new this.constructor(l.blockList.removeObjectAtIndex(a)):u.getBlockBreakPosition()===s&&r++,l=l.removeTextAtRange(e),new this.constructor(l.blockList.insertSplittableListAtPosition(n,r))}mergeDocumentAtRange(t,e){let n,r;const o=i(e=Lt(e),1)[0],a=this.locationFromPosition(o),s=this.getBlockAtIndex(a.index).getAttributes(),l=t.getBaseBlockAttributes(),u=s.slice(-l.length);if(ht(l,u)){const e=s.slice(0,-l.length);n=t.copyWithBaseBlockAttributes(e)}else n=t.copy({consolidateBlocks:!0}).copyWithBaseBlockAttributes(s);const c=n.getBlockCount(),d=n.getBlockAtIndex(0);if(ht(s,d.getAttributes())){const t=d.getTextWithoutBlockBreak();if(r=this.insertTextAtRange(t,e),c>1){n=new this.constructor(n.getBlocks().slice(1));const e=o+t.getLength();r=r.insertDocumentAtRange(n,e)}}else r=this.insertDocumentAtRange(n,e);return r}insertTextAtRange(t,e){const n=i(e=Lt(e),1)[0],r=this.locationFromPosition(n),o=r.index,a=r.offset,s=this.removeTextAtRange(e);return new this.constructor(s.blockList.editObjectAtIndex(o,(e=>e.copyWithText(e.text.insertTextAtPosition(t,a)))))}removeTextAtRange(t){let e;const n=i(t=Lt(t),2),r=n[0],o=n[1];if(It(t))return this;const a=i(Array.from(this.locationRangeFromRange(t)),2),s=a[0],l=a[1],u=s.index,c=s.offset,d=this.getBlockAtIndex(u),h=l.index,f=l.offset,p=this.getBlockAtIndex(h);if(o-r==1&&d.getBlockBreakPosition()===c&&p.getBlockBreakPosition()!==f&&"\n"===p.text.getStringAtPosition(f))e=this.blockList.editObjectAtIndex(h,(t=>t.copyWithText(t.text.removeTextAtRange([f,f+1]))));else{let t;const n=d.text.getTextAtRange([0,c]),r=p.text.getTextAtRange([f,p.getLength()]),i=n.appendText(r);t=u!==h&&0===c&&d.getAttributeLevel()>=p.getAttributeLevel()?p.copyWithText(i):d.copyWithText(i);const o=h+1-u;e=this.blockList.splice(u,o,t)}return new this.constructor(e)}moveTextFromRangeToPosition(t,e){let n;const o=i(t=Lt(t),2),a=o[0],s=o[1];if(a<=e&&e<=s)return this;let l=this.getDocumentAtRange(t),u=this.removeTextAtRange(t);const c=a<e;c&&(e-=l.getLength());const d=r(l.getBlocks()),h=d[0],f=d.slice(1);return 0===f.length?(n=h.getTextWithoutBlockBreak(),c&&(e+=1)):n=h.text,u=u.insertTextAtRange(n,e),0===f.length?u:(l=new this.constructor(f),e+=n.getLength(),u.insertDocumentAtRange(l,e))}addAttributeAtRange(t,e,n){let r=this.blockList;return this.eachBlockAtRange(n,((n,i,o)=>r=r.editObjectAtIndex(o,(function(){return kt(t)?n.addAttribute(t,e):i[0]===i[1]?n:n.copyWithText(n.text.addAttributeAtRange(t,e,i))})))),new this.constructor(r)}addAttribute(t,e){let n=this.blockList;return this.eachBlock(((r,i)=>n=n.editObjectAtIndex(i,(()=>r.addAttribute(t,e))))),new this.constructor(n)}removeAttributeAtRange(t,e){let n=this.blockList;return this.eachBlockAtRange(e,(function(e,r,i){kt(t)?n=n.editObjectAtIndex(i,(()=>e.removeAttribute(t))):r[0]!==r[1]&&(n=n.editObjectAtIndex(i,(()=>e.copyWithText(e.text.removeAttributeAtRange(t,r)))))})),new this.constructor(n)}updateAttributesForAttachment(t,e){const n=this.getRangeOfAttachment(e),r=i(Array.from(n),1)[0],o=this.locationFromPosition(r).index,a=this.getTextAtIndex(o);return new this.constructor(this.blockList.editObjectAtIndex(o,(n=>n.copyWithText(a.updateAttributesForAttachment(t,e)))))}removeAttributeForAttachment(t,e){const n=this.getRangeOfAttachment(e);return this.removeAttributeAtRange(t,n)}setHTMLAttributeAtPosition(t,e,n){const r=this.getBlockAtPosition(t),i=r.addHTMLAttribute(e,n);return this.replaceBlock(r,i)}insertBlockBreakAtRange(t){let e;const n=i(t=Lt(t),1)[0],r=this.locationFromPosition(n).offset,o=this.removeTextAtRange(t);return 0===r&&(e=[new Ve]),new this.constructor(o.blockList.insertSplittableListAtPosition(new ze(e),n))}applyBlockAttributeAtRange(t,e,n){const r=this.expandRangeToLineBreaksAndSplitBlocks(n);let i=r.document;n=r.range;const o=kt(t);if(o.listAttribute){i=i.removeLastListAttributeAtRange(n,{exceptAttributeName:t});const e=i.convertLineBreaksToBlockBreaksInRange(n);i=e.document,n=e.range}else i=o.exclusive?i.removeBlockAttributesAtRange(n):o.terminal?i.removeLastTerminalAttributeAtRange(n):i.consolidateBlocksAtRange(n);return i.addAttributeAtRange(t,e,n)}removeLastListAttributeAtRange(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.blockList;return this.eachBlockAtRange(t,(function(t,r,i){const o=t.getLastAttribute();o&&kt(o).listAttribute&&o!==e.exceptAttributeName&&(n=n.editObjectAtIndex(i,(()=>t.removeAttribute(o))))})),new this.constructor(n)}removeLastTerminalAttributeAtRange(t){let e=this.blockList;return this.eachBlockAtRange(t,(function(t,n,r){const i=t.getLastAttribute();i&&kt(i).terminal&&(e=e.editObjectAtIndex(r,(()=>t.removeAttribute(i))))})),new this.constructor(e)}removeBlockAttributesAtRange(t){let e=this.blockList;return this.eachBlockAtRange(t,(function(t,n,r){t.hasAttributes()&&(e=e.editObjectAtIndex(r,(()=>t.copyWithoutAttributes())))})),new this.constructor(e)}expandRangeToLineBreaksAndSplitBlocks(t){let e,n=i(t=Lt(t),2),r=n[0],o=n[1];const a=this.locationFromPosition(r),s=this.locationFromPosition(o);let l=this;const u=l.getBlockAtIndex(a.index);if(a.offset=u.findLineBreakInDirectionFromPosition("backward",a.offset),null!=a.offset&&(e=l.positionFromLocation(a),l=l.insertBlockBreakAtRange([e,e+1]),s.index+=1,s.offset-=l.getBlockAtIndex(a.index).getLength(),a.index+=1),a.offset=0,0===s.offset&&s.index>a.index)s.index-=1,s.offset=l.getBlockAtIndex(s.index).getBlockBreakPosition();else{const t=l.getBlockAtIndex(s.index);"\n"===t.text.getStringAtRange([s.offset-1,s.offset])?s.offset-=1:s.offset=t.findLineBreakInDirectionFromPosition("forward",s.offset),s.offset!==t.getBlockBreakPosition()&&(e=l.positionFromLocation(s),l=l.insertBlockBreakAtRange([e,e+1]))}return r=l.positionFromLocation(a),o=l.positionFromLocation(s),{document:l,range:t=Lt([r,o])}}convertLineBreaksToBlockBreaksInRange(t){let e=i(t=Lt(t),1)[0];const n=this.getStringAtRange(t).slice(0,-1);let r=this;return n.replace(/.*?\n/g,(function(t){e+=t.length,r=r.insertBlockBreakAtRange([e-1,e])})),{document:r,range:t}}consolidateBlocksAtRange(t){const e=i(t=Lt(t),2),n=e[0],r=e[1],o=this.locationFromPosition(n).index,a=this.locationFromPosition(r).index;return new this.constructor(this.blockList.consolidateFromIndexToIndex(o,a))}getDocumentAtRange(t){t=Lt(t);const e=this.blockList.getSplittableListInRange(t).toArray();return new this.constructor(e)}getStringAtRange(t){let e;const n=t=Lt(t);return n[n.length-1]!==this.getLength()&&(e=-1),this.getDocumentAtRange(t).toString().slice(0,e)}getBlockAtIndex(t){return this.blockList.getObjectAtIndex(t)}getBlockAtPosition(t){const e=this.locationFromPosition(t).index;return this.getBlockAtIndex(e)}getTextAtIndex(t){var e;return null===(e=this.getBlockAtIndex(t))||void 0===e?void 0:e.text}getTextAtPosition(t){const e=this.locationFromPosition(t).index;return this.getTextAtIndex(e)}getPieceAtPosition(t){const e=this.locationFromPosition(t),n=e.index,r=e.offset;return this.getTextAtIndex(n).getPieceAtPosition(r)}getCharacterAtPosition(t){const e=this.locationFromPosition(t),n=e.index,r=e.offset;return this.getTextAtIndex(n).getStringAtRange([r,r+1])}getLength(){return this.blockList.getEndPosition()}getBlocks(){return this.blockList.toArray()}getBlockCount(){return this.blockList.length}getEditCount(){return this.editCount}eachBlock(t){return this.blockList.eachObject(t)}eachBlockAtRange(t,e){let n,r;const o=i(t=Lt(t),2),a=o[0],s=o[1],l=this.locationFromPosition(a),u=this.locationFromPosition(s);if(l.index===u.index)return n=this.getBlockAtIndex(l.index),r=[l.offset,u.offset],e(n,r,l.index);for(let i=l.index;i<=u.index;i++)if(n=this.getBlockAtIndex(i),n){switch(i){case l.index:r=[l.offset,n.text.getLength()];break;case u.index:r=[0,u.offset];break;default:r=[0,n.text.getLength()]}e(n,r,i)}}getCommonAttributesAtRange(t){const e=i(t=Lt(t),1)[0];if(It(t))return this.getCommonAttributesAtPosition(e);{const e=[],n=[];return this.eachBlockAtRange(t,(function(t,r){if(r[0]!==r[1])return e.push(t.text.getCommonAttributesAtRange(r)),n.push(tn(t))})),Qt.fromCommonAttributesOfObjects(e).merge(Qt.fromCommonAttributesOfObjects(n)).toObject()}}getCommonAttributesAtPosition(t){let e,n;const r=this.locationFromPosition(t),i=r.index,o=r.offset,a=this.getBlockAtIndex(i);if(!a)return{};const s=tn(a),l=a.text.getAttributesAtPosition(o),u=a.text.getAttributesAtPosition(o-1),c=Object.keys(G).filter((t=>G[t].inheritable));for(e in u)n=u[e],(n===l[e]||c.includes(e))&&(s[e]=n);return s}getRangeOfCommonAttributeAtPosition(t,e){const n=this.locationFromPosition(e),r=n.index,o=n.offset,a=this.getTextAtIndex(r),s=i(Array.from(a.getExpandedRangeForAttributeAtOffset(t,o)),2),l=s[0],u=s[1],c=this.positionFromLocation({index:r,offset:l}),d=this.positionFromLocation({index:r,offset:u});return Lt([c,d])}getBaseBlockAttributes(){let t=this.getBlockAtIndex(0).getAttributes();for(let e=1;e<this.getBlockCount();e++){const n=this.getBlockAtIndex(e).getAttributes(),r=Math.min(t.length,n.length);t=(()=>{const e=[];for(let i=0;i<r&&n[i]===t[i];i++)e.push(n[i]);return e})()}return t}getAttachmentById(t){for(const e of this.getAttachments())if(e.id===t)return e}getAttachmentPieces(){let t=[];return this.blockList.eachObject((e=>{let n=e.text;return t=t.concat(n.getAttachmentPieces())})),t}getAttachments(){return this.getAttachmentPieces().map((t=>t.attachment))}getRangeOfAttachment(t){let e=0;const n=this.blockList.toArray();for(let r=0;r<n.length;r++){const i=n[r].text,o=i.getRangeOfAttachment(t);if(o)return Lt([e+o[0],e+o[1]]);e+=i.getLength()}}getLocationRangeOfAttachment(t){const e=this.getRangeOfAttachment(t);return this.locationRangeFromRange(e)}getAttachmentPieceForAttachment(t){for(const e of this.getAttachmentPieces())if(e.attachment===t)return e}findRangesForBlockAttribute(t){let e=0;const n=[];return this.getBlocks().forEach((r=>{const i=r.getLength();r.hasAttribute(t)&&n.push([e,e+i]),e+=i})),n}findRangesForTextAttribute(t){let e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).withValue,n=0,r=[];const i=[];return this.getPieces().forEach((o=>{const a=o.getLength();(function(n){return e?n.getAttribute(t)===e:n.hasAttribute(t)})(o)&&(r[1]===n?r[1]=n+a:i.push(r=[n,n+a])),n+=a})),i}locationFromPosition(t){const e=this.blockList.findIndexAndOffsetAtPosition(Math.max(0,t));if(null!=e.index)return e;{const t=this.getBlocks();return{index:t.length-1,offset:t[t.length-1].getLength()}}}positionFromLocation(t){return this.blockList.findPositionAtIndexAndOffset(t.index,t.offset)}locationRangeFromPosition(t){return Lt(this.locationFromPosition(t))}locationRangeFromRange(t){if(!(t=Lt(t)))return;const e=i(Array.from(t),2),n=e[0],r=e[1],o=this.locationFromPosition(n),a=this.locationFromPosition(r);return Lt([o,a])}rangeFromLocationRange(t){let e;t=Lt(t);const n=this.positionFromLocation(t[0]);return It(t)||(e=this.positionFromLocation(t[1])),Lt([n,e])}isEqualTo(t){return this.blockList.isEqualTo(null==t?void 0:t.blockList)}getTexts(){return this.getBlocks().map((t=>t.text))}getPieces(){const t=[];return Array.from(this.getTexts()).forEach((e=>{t.push(...Array.from(e.getPieces()||[]))})),t}getObjects(){return this.getBlocks().concat(this.getTexts()).concat(this.getPieces())}toSerializableDocument(){const t=[];return this.blockList.eachObject((e=>t.push(e.copyWithText(e.text.toSerializableText())))),new this.constructor(t)}toString(){return this.blockList.toString()}toJSON(){return this.blockList.toJSON()}toConsole(){return JSON.stringify(this.blockList.toArray().map((t=>JSON.parse(t.text.toConsole()))))}}const tn=function(t){const e={},n=t.getLastAttribute();return n&&(e[n]=!0),e},en=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{string:t=Gt(t),attributes:e,type:"string"}},nn=(t,e)=>{try{return JSON.parse(t.getAttribute("data-trix-".concat(e)))}catch(t){return{}}};class rn extends ${static parse(t,e){const n=new this(t,e);return n.parse(),n}constructor(t){let e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).referenceElement;super(...arguments),this.html=t,this.referenceElement=e,this.blocks=[],this.blockElements=[],this.processedElements=[]}getDocument(){return Ze.fromJSON(this.blocks)}parse(){try{this.createHiddenContainer(),pe.setHTML(this.containerElement,this.html);const t=A(this.containerElement,{usingFilter:ln});for(;t.nextNode();)this.processNode(t.currentNode);return this.translateBlockElementMarginsToNewlines()}finally{this.removeHiddenContainer()}}createHiddenContainer(){return this.referenceElement?(this.containerElement=this.referenceElement.cloneNode(!1),this.containerElement.removeAttribute("id"),this.containerElement.setAttribute("data-trix-internal",""),this.containerElement.style.display="none",this.referenceElement.parentNode.insertBefore(this.containerElement,this.referenceElement.nextSibling)):(this.containerElement=R({tagName:"div",style:{display:"none"}}),document.body.appendChild(this.containerElement))}removeHiddenContainer(){return M(this.containerElement)}processNode(t){switch(t.nodeType){case Node.TEXT_NODE:if(!this.isInsignificantTextNode(t))return this.appendBlockForTextNode(t),this.processTextNode(t);break;case Node.ELEMENT_NODE:return this.appendBlockForElement(t),this.processElement(t)}}appendBlockForTextNode(t){const e=t.parentNode;if(e===this.currentBlockElement&&this.isBlockElement(t.previousSibling))return this.appendStringWithAttributes("\n");if(e===this.containerElement||this.isBlockElement(e)){var n;const t=this.getBlockAttributes(e),r=this.getBlockHTMLAttributes(e);ht(t,null===(n=this.currentBlock)||void 0===n?void 0:n.attributes)||(this.currentBlock=this.appendBlockForAttributesWithElement(t,e,r),this.currentBlockElement=e)}}appendBlockForElement(t){const e=this.isBlockElement(t),n=C(this.currentBlockElement,t);if(e&&!this.isBlockElement(t.firstChild)){if(!this.isInsignificantTextNode(t.firstChild)||!this.isBlockElement(t.firstElementChild)){const e=this.getBlockAttributes(t),r=this.getBlockHTMLAttributes(t);if(t.firstChild){if(n&&ht(e,this.currentBlock.attributes))return this.appendStringWithAttributes("\n");this.currentBlock=this.appendBlockForAttributesWithElement(e,t,r),this.currentBlockElement=t}}}else if(this.currentBlockElement&&!n&&!e){const e=this.findParentBlockElement(t);if(e)return this.appendBlockForElement(e);this.currentBlock=this.appendEmptyBlock(),this.currentBlockElement=null}}findParentBlockElement(t){let e=t.parentElement;for(;e&&e!==this.containerElement;){if(this.isBlockElement(e)&&this.blockElements.includes(e))return e;e=e.parentElement}return null}processTextNode(t){let e=t.data;var n;return on(t.parentNode)||(e=Jt(e),dn(null===(n=t.previousSibling)||void 0===n?void 0:n.textContent)&&(e=un(e))),this.appendStringWithAttributes(e,this.getTextAttributes(t.parentNode))}processElement(t){let e;if(B(t)){if(e=nn(t,"attachment"),Object.keys(e).length){const n=this.getTextAttributes(t);this.appendAttachmentWithAttributes(e,n),t.innerHTML=""}return this.processedElements.push(t)}switch(D(t)){case"br":return this.isExtraBR(t)||this.isBlockElement(t.nextSibling)||this.appendStringWithAttributes("\n",this.getTextAttributes(t)),this.processedElements.push(t);case"img":e={url:t.getAttribute("src"),contentType:"image"};const n=(t=>{const e=t.getAttribute("width"),n=t.getAttribute("height"),r={};return e&&(r.width=parseInt(e,10)),n&&(r.height=parseInt(n,10)),r})(t);for(const t in n){const r=n[t];e[t]=r}return this.appendAttachmentWithAttributes(e,this.getTextAttributes(t)),this.processedElements.push(t);case"tr":if(this.needsTableSeparator(t))return this.appendStringWithAttributes(U.tableRowSeparator);break;case"td":if(this.needsTableSeparator(t))return this.appendStringWithAttributes(U.tableCellSeparator)}}appendBlockForAttributesWithElement(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.blockElements.push(e);const r=function(){return{text:[],attributes:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},htmlAttributes:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}}(t,n);return this.blocks.push(r),r}appendEmptyBlock(){return this.appendBlockForAttributesWithElement([],null)}appendStringWithAttributes(t,e){return this.appendPiece(en(t,e))}appendAttachmentWithAttributes(t,e){return this.appendPiece(function(t){return{attachment:t,attributes:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},type:"attachment"}}(t,e))}appendPiece(t){return 0===this.blocks.length&&this.appendEmptyBlock(),this.blocks[this.blocks.length-1].text.push(t)}appendStringToTextAtIndex(t,e){const n=this.blocks[e].text,r=n[n.length-1];if("string"!==(null==r?void 0:r.type))return n.push(en(t));r.string+=t}prependStringToTextAtIndex(t,e){const n=this.blocks[e].text,r=n[0];if("string"!==(null==r?void 0:r.type))return n.unshift(en(t));r.string=t+r.string}getTextAttributes(t){let e;const n={};for(const r in G){const i=G[r];if(i.tagName&&S(t,{matchingSelector:i.tagName,untilNode:this.containerElement}))n[r]=!0;else if(i.parser){if(e=i.parser(t),e){let o=!1;for(const n of this.findBlockElementAncestors(t))if(i.parser(n)===e){o=!0;break}o||(n[r]=e)}}else i.styleProperty&&(e=t.style[i.styleProperty],e&&(n[r]=e))}if(B(t)){const r=nn(t,"attributes");for(const t in r)e=r[t],n[t]=e}return n}getBlockAttributes(t){const e=[];for(;t&&t!==this.containerElement;){for(const r in d){const i=d[r];var n;!1!==i.parse&&D(t)===i.tagName&&(null!==(n=i.test)&&void 0!==n&&n.call(i,t)||!i.test)&&(e.push(r),i.listAttribute&&e.push(i.listAttribute))}t=t.parentNode}return e.reverse()}getBlockHTMLAttributes(t){const e={},n=Object.values(d).find((e=>e.tagName===D(t)));return((null==n?void 0:n.htmlAttributes)||[]).forEach((n=>{t.hasAttribute(n)&&(e[n]=t.getAttribute(n))})),e}findBlockElementAncestors(t){const e=[];for(;t&&t!==this.containerElement;){const n=D(t);I().includes(n)&&e.push(t),t=t.parentNode}return e}isBlockElement(t){if((null==t?void 0:t.nodeType)===Node.ELEMENT_NODE&&!B(t)&&!S(t,{matchingSelector:"td",untilNode:this.containerElement}))return I().includes(D(t))||"block"===window.getComputedStyle(t).display}isInsignificantTextNode(t){if((null==t?void 0:t.nodeType)!==Node.TEXT_NODE)return;if(!cn(t.data))return;const e=t.parentNode,n=t.previousSibling,r=t.nextSibling;return an(e.previousSibling)&&!this.isBlockElement(e.previousSibling)||on(e)?void 0:!n||this.isBlockElement(n)||!r||this.isBlockElement(r)}isExtraBR(t){return"br"===D(t)&&this.isBlockElement(t.parentNode)&&t.parentNode.lastChild===t}needsTableSeparator(t){if(U.removeBlankTableCells){var e;const n=null===(e=t.previousSibling)||void 0===e?void 0:e.textContent;return n&&/\S/.test(n)}return t.previousSibling}translateBlockElementMarginsToNewlines(){const t=this.getMarginOfDefaultBlockElement();for(let e=0;e<this.blocks.length;e++){const n=this.getMarginOfBlockElementAtIndex(e);n&&(n.top>2*t.top&&this.prependStringToTextAtIndex("\n",e),n.bottom>2*t.bottom&&this.appendStringToTextAtIndex("\n",e))}}getMarginOfBlockElementAtIndex(t){const e=this.blockElements[t];if(e&&e.textContent&&!I().includes(D(e))&&!this.processedElements.includes(e))return sn(e)}getMarginOfDefaultBlockElement(){const t=R(d.default.tagName);return this.containerElement.appendChild(t),sn(t)}}const on=function(t){const e=window.getComputedStyle(t).whiteSpace;return["pre","pre-wrap","pre-line"].includes(e)},an=t=>t&&!dn(t.textContent),sn=function(t){const e=window.getComputedStyle(t);if("block"===e.display)return{top:parseInt(e.marginTop),bottom:parseInt(e.marginBottom)}},ln=function(t){return"style"===D(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},un=t=>t.replace(new RegExp("^".concat(Xt.source,"+")),""),cn=t=>new RegExp("^".concat(Xt.source,"*$")).test(t),dn=t=>/\s$/.test(t),hn=["contenteditable","data-trix-id","data-trix-store-key","data-trix-mutable","data-trix-placeholder","tabindex"],fn="data-trix-serialized-attributes",pn="[".concat(fn,"]"),mn=new RegExp("\x3c!--block--\x3e","g"),gn={"application/json":function(t){let e;if(t instanceof Ze)e=t;else{if(!(t instanceof HTMLElement))throw new Error("unserializable object");e=rn.parse(t.innerHTML).getDocument()}return e.toSerializableDocument().toJSONString()},"text/html":function(t){let e;if(t instanceof Ze)e=je.render(t);else{if(!(t instanceof HTMLElement))throw new Error("unserializable object");e=t.cloneNode(!0)}return Array.from(e.querySelectorAll("[data-trix-serialize=false]")).forEach((t=>{M(t)})),hn.forEach((t=>{Array.from(e.querySelectorAll("[".concat(t,"]"))).forEach((e=>{e.removeAttribute(t)}))})),Array.from(e.querySelectorAll(pn)).forEach((t=>{try{const e=JSON.parse(t.getAttribute(fn));t.removeAttribute(fn);for(const n in e){const r=e[n];t.setAttribute(n,r)}}catch(t){}})),e.innerHTML.replace(mn,"")}};var bn=Object.freeze({__proto__:null});class vn extends ${constructor(t,e){super(...arguments),this.attachmentManager=t,this.attachment=e,this.id=this.attachment.id,this.file=this.attachment.file}remove(){return this.attachmentManager.requestRemovalOfAttachment(this.attachment)}}vn.proxyMethod("attachment.getAttribute"),vn.proxyMethod("attachment.hasAttribute"),vn.proxyMethod("attachment.setAttribute"),vn.proxyMethod("attachment.getAttributes"),vn.proxyMethod("attachment.setAttributes"),vn.proxyMethod("attachment.isPending"),vn.proxyMethod("attachment.isPreviewable"),vn.proxyMethod("attachment.getURL"),vn.proxyMethod("attachment.getHref"),vn.proxyMethod("attachment.getFilename"),vn.proxyMethod("attachment.getFilesize"),vn.proxyMethod("attachment.getFormattedFilesize"),vn.proxyMethod("attachment.getExtension"),vn.proxyMethod("attachment.getContentType"),vn.proxyMethod("attachment.getFile"),vn.proxyMethod("attachment.setFile"),vn.proxyMethod("attachment.releaseFile"),vn.proxyMethod("attachment.getUploadProgress"),vn.proxyMethod("attachment.setUploadProgress");class yn extends ${constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(...arguments),this.managedAttachments={},Array.from(t).forEach((t=>{this.manageAttachment(t)}))}getAttachments(){const t=[];for(const e in this.managedAttachments){const n=this.managedAttachments[e];t.push(n)}return t}manageAttachment(t){return this.managedAttachments[t.id]||(this.managedAttachments[t.id]=new vn(this,t)),this.managedAttachments[t.id]}attachmentIsManaged(t){return t.id in this.managedAttachments}requestRemovalOfAttachment(t){var e,n;if(this.attachmentIsManaged(t))return null===(e=this.delegate)||void 0===e||null===(n=e.attachmentManagerDidRequestRemovalOfAttachment)||void 0===n?void 0:n.call(e,t)}unmanageAttachment(t){const e=this.managedAttachments[t.id];return delete this.managedAttachments[t.id],e}}class wn{constructor(t){this.composition=t,this.document=this.composition.document;const e=this.composition.getSelectedRange();this.startPosition=e[0],this.endPosition=e[1],this.startLocation=this.document.locationFromPosition(this.startPosition),this.endLocation=this.document.locationFromPosition(this.endPosition),this.block=this.document.getBlockAtIndex(this.endLocation.index),this.breaksOnReturn=this.block.breaksOnReturn(),this.previousCharacter=this.block.text.getStringAtPosition(this.endLocation.offset-1),this.nextCharacter=this.block.text.getStringAtPosition(this.endLocation.offset)}shouldInsertBlockBreak(){return this.block.hasAttributes()&&this.block.isListItem()&&!this.block.isEmpty()?0!==this.startLocation.offset:this.breaksOnReturn&&"\n"!==this.nextCharacter}shouldBreakFormattedBlock(){return this.block.hasAttributes()&&!this.block.isListItem()&&(this.breaksOnReturn&&"\n"===this.nextCharacter||"\n"===this.previousCharacter)}shouldDecreaseListLevel(){return this.block.hasAttributes()&&this.block.isListItem()&&this.block.isEmpty()}shouldPrependListItem(){return this.block.isListItem()&&0===this.startLocation.offset&&!this.block.isEmpty()}shouldRemoveLastBlockAttribute(){return this.block.hasAttributes()&&!this.block.isListItem()&&this.block.isEmpty()}}class kn extends ${constructor(){super(...arguments),this.document=new Ze,this.attachments=[],this.currentAttributes={},this.revision=0}setDocument(t){var e,n;if(!t.isEqualTo(this.document))return this.document=t,this.refreshAttachments(),this.revision++,null===(e=this.delegate)||void 0===e||null===(n=e.compositionDidChangeDocument)||void 0===n?void 0:n.call(e,t)}getSnapshot(){return{document:this.document,selectedRange:this.getSelectedRange()}}loadSnapshot(t){var e,n,r,i;let o=t.document,a=t.selectedRange;return null===(e=this.delegate)||void 0===e||null===(n=e.compositionWillLoadSnapshot)||void 0===n||n.call(e),this.setDocument(null!=o?o:new Ze),this.setSelection(null!=a?a:[0,0]),null===(r=this.delegate)||void 0===r||null===(i=r.compositionDidLoadSnapshot)||void 0===i?void 0:i.call(r)}insertText(t){let e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{updatePosition:!0}).updatePosition;const n=this.getSelectedRange();this.setDocument(this.document.insertTextAtRange(t,n));const r=n[0],i=r+t.getLength();return e&&this.setSelection(i),this.notifyDelegateOfInsertionAtRange([r,i])}insertBlock(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ve;const e=new Ze([t]);return this.insertDocument(e)}insertDocument(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ze;const e=this.getSelectedRange();this.setDocument(this.document.insertDocumentAtRange(t,e));const n=e[0],r=n+t.getLength();return this.setSelection(r),this.notifyDelegateOfInsertionAtRange([n,r])}insertString(t,e){const n=this.getCurrentTextAttributes(),r=Be.textForStringWithAttributes(t,n);return this.insertText(r,e)}insertBlockBreak(){const t=this.getSelectedRange();this.setDocument(this.document.insertBlockBreakAtRange(t));const e=t[0],n=e+1;return this.setSelection(n),this.notifyDelegateOfInsertionAtRange([e,n])}insertLineBreak(){const t=new wn(this);if(t.shouldDecreaseListLevel())return this.decreaseListLevel(),this.setSelection(t.startPosition);if(t.shouldPrependListItem()){const e=new Ze([t.block.copyWithoutText()]);return this.insertDocument(e)}return t.shouldInsertBlockBreak()?this.insertBlockBreak():t.shouldRemoveLastBlockAttribute()?this.removeLastBlockAttribute():t.shouldBreakFormattedBlock()?this.breakFormattedBlock(t):this.insertString("\n")}insertHTML(t){const e=rn.parse(t).getDocument(),n=this.getSelectedRange();this.setDocument(this.document.mergeDocumentAtRange(e,n));const r=n[0],i=r+e.getLength()-1;return this.setSelection(i),this.notifyDelegateOfInsertionAtRange([r,i])}replaceHTML(t){const e=rn.parse(t).getDocument().copyUsingObjectsFromDocument(this.document),n=this.getLocationRange({strict:!1}),r=this.document.rangeFromLocationRange(n);return this.setDocument(e),this.setSelection(r)}insertFile(t){return this.insertFiles([t])}insertFiles(t){const e=[];return Array.from(t).forEach((t=>{var n;if(null!==(n=this.delegate)&&void 0!==n&&n.compositionShouldAcceptFile(t)){const n=Le.attachmentForFile(t);e.push(n)}})),this.insertAttachments(e)}insertAttachment(t){return this.insertAttachments([t])}insertAttachments(t){let e=new Be;return Array.from(t).forEach((t=>{var n;const r=t.getType(),i=null===(n=c[r])||void 0===n?void 0:n.presentation,o=this.getCurrentTextAttributes();i&&(o.presentation=i);const a=Be.textForAttachmentWithAttributes(t,o);e=e.appendText(a)})),this.insertText(e)}shouldManageDeletingInDirection(t){const e=this.getLocationRange();if(It(e)){if("backward"===t&&0===e[0].offset)return!0;if(this.shouldManageMovingCursorInDirection(t))return!0}else if(e[0].index!==e[1].index)return!0;return!1}deleteInDirection(t){let e,n,r,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length;const o=this.getLocationRange();let a=this.getSelectedRange();const s=It(a);if(s?n="backward"===t&&0===o[0].offset:r=o[0].index!==o[1].index,n&&this.canDecreaseBlockAttributeLevel()){const t=this.getBlock();if(t.isListItem()?this.decreaseListLevel():this.decreaseBlockAttributeLevel(),this.setSelection(a[0]),t.isEmpty())return!1}return s&&(a=this.getExpandedRangeInDirection(t,{length:i}),"backward"===t&&(e=this.getAttachmentAtRange(a))),e?(this.editAttachment(e),!1):(this.setDocument(this.document.removeTextAtRange(a)),this.setSelection(a[0]),!n&&!r&&void 0)}moveTextFromRange(t){const e=i(Array.from(this.getSelectedRange()),1)[0];return this.setDocument(this.document.moveTextFromRangeToPosition(t,e)),this.setSelection(e)}removeAttachment(t){const e=this.document.getRangeOfAttachment(t);if(e)return this.stopEditingAttachment(),this.setDocument(this.document.removeTextAtRange(e)),this.setSelection(e[0])}removeLastBlockAttribute(){const t=i(Array.from(this.getSelectedRange()),2),e=t[0],n=t[1],r=this.document.getBlockAtPosition(n);return this.removeCurrentAttribute(r.getLastAttribute()),this.setSelection(e)}insertPlaceholder(){return this.placeholderPosition=this.getPosition(),this.insertString(" ")}selectPlaceholder(){if(null!=this.placeholderPosition)return this.setSelectedRange([this.placeholderPosition,this.placeholderPosition+1]),this.getSelectedRange()}forgetPlaceholder(){this.placeholderPosition=null}hasCurrentAttribute(t){const e=this.currentAttributes[t];return null!=e&&!1!==e}toggleCurrentAttribute(t){const e=!this.currentAttributes[t];return e?this.setCurrentAttribute(t,e):this.removeCurrentAttribute(t)}canSetCurrentAttribute(t){return kt(t)?this.canSetCurrentBlockAttribute(t):this.canSetCurrentTextAttribute(t)}canSetCurrentTextAttribute(t){const e=this.getSelectedDocument();if(e){for(const t of Array.from(e.getAttachments()))if(!t.hasContent())return!1;return!0}}canSetCurrentBlockAttribute(t){const e=this.getBlock();if(e)return!e.isTerminalBlock()}setCurrentAttribute(t,e){return kt(t)?this.setBlockAttribute(t,e):(this.setTextAttribute(t,e),this.currentAttributes[t]=e,this.notifyDelegateOfCurrentAttributesChange())}setHTMLAtributeAtPosition(t,e,n){var r;const i=this.document.getBlockAtPosition(t),o=null===(r=kt(i.getLastAttribute()))||void 0===r?void 0:r.htmlAttributes;if(i&&null!=o&&o.includes(e)){const r=this.document.setHTMLAttributeAtPosition(t,e,n);this.setDocument(r)}}setTextAttribute(t,e){const n=this.getSelectedRange();if(!n)return;const r=i(Array.from(n),2);if(r[0]!==r[1])return this.setDocument(this.document.addAttributeAtRange(t,e,n));if("href"===t){const t=Be.textForStringWithAttributes(e,{href:e});return this.insertText(t)}}setBlockAttribute(t,e){const n=this.getSelectedRange();if(this.canSetCurrentAttribute(t))return this.setDocument(this.document.applyBlockAttributeAtRange(t,e,n)),this.setSelection(n)}removeCurrentAttribute(t){return kt(t)?(this.removeBlockAttribute(t),this.updateCurrentAttributes()):(this.removeTextAttribute(t),delete this.currentAttributes[t],this.notifyDelegateOfCurrentAttributesChange())}removeTextAttribute(t){const e=this.getSelectedRange();if(e)return this.setDocument(this.document.removeAttributeAtRange(t,e))}removeBlockAttribute(t){const e=this.getSelectedRange();if(e)return this.setDocument(this.document.removeAttributeAtRange(t,e))}canDecreaseNestingLevel(){var t;return(null===(t=this.getBlock())||void 0===t?void 0:t.getNestingLevel())>0}canIncreaseNestingLevel(){var t;const e=this.getBlock();if(e){if(null===(t=kt(e.getLastNestableAttribute()))||void 0===t||!t.listAttribute)return e.getNestingLevel()>0;{const t=this.getPreviousBlock();if(t)return function(){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return ht((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).slice(0,t.length),t)}(t.getListItemAttributes(),e.getListItemAttributes())}}}decreaseNestingLevel(){const t=this.getBlock();if(t)return this.setDocument(this.document.replaceBlock(t,t.decreaseNestingLevel()))}increaseNestingLevel(){const t=this.getBlock();if(t)return this.setDocument(this.document.replaceBlock(t,t.increaseNestingLevel()))}canDecreaseBlockAttributeLevel(){var t;return(null===(t=this.getBlock())||void 0===t?void 0:t.getAttributeLevel())>0}decreaseBlockAttributeLevel(){var t;const e=null===(t=this.getBlock())||void 0===t?void 0:t.getLastAttribute();if(e)return this.removeCurrentAttribute(e)}decreaseListLevel(){let t=i(Array.from(this.getSelectedRange()),1)[0];const e=this.document.locationFromPosition(t).index;let n=e;const r=this.getBlock().getAttributeLevel();let o=this.document.getBlockAtIndex(n+1);for(;o&&o.isListItem()&&!(o.getAttributeLevel()<=r);)n++,o=this.document.getBlockAtIndex(n+1);t=this.document.positionFromLocation({index:e,offset:0});const a=this.document.positionFromLocation({index:n,offset:0});return this.setDocument(this.document.removeLastListAttributeAtRange([t,a]))}updateCurrentAttributes(){const t=this.getSelectedRange({ignoreLock:!0});if(t){const e=this.document.getCommonAttributesAtRange(t);if(Array.from(wt()).forEach((t=>{e[t]||this.canSetCurrentAttribute(t)||(e[t]=!1)})),!Rt(e,this.currentAttributes))return this.currentAttributes=e,this.notifyDelegateOfCurrentAttributesChange()}}getCurrentAttributes(){return k.call({},this.currentAttributes)}getCurrentTextAttributes(){const t={};for(const e in this.currentAttributes){const n=this.currentAttributes[e];!1!==n&&Ot(e)&&(t[e]=n)}return t}freezeSelection(){return this.setCurrentAttribute("frozen",!0)}thawSelection(){return this.removeCurrentAttribute("frozen")}hasFrozenSelection(){return this.hasCurrentAttribute("frozen")}setSelection(t){var e;const n=this.document.locationRangeFromRange(t);return null===(e=this.delegate)||void 0===e?void 0:e.compositionDidRequestChangingSelectionToLocationRange(n)}getSelectedRange(){const t=this.getLocationRange();if(t)return this.document.rangeFromLocationRange(t)}setSelectedRange(t){const e=this.document.locationRangeFromRange(t);return this.getSelectionManager().setLocationRange(e)}getPosition(){const t=this.getLocationRange();if(t)return this.document.positionFromLocation(t[0])}getLocationRange(t){return this.targetLocationRange?this.targetLocationRange:this.getSelectionManager().getLocationRange(t)||Lt({index:0,offset:0})}withTargetLocationRange(t,e){let n;this.targetLocationRange=t;try{n=e()}finally{this.targetLocationRange=null}return n}withTargetRange(t,e){const n=this.document.locationRangeFromRange(t);return this.withTargetLocationRange(n,e)}withTargetDOMRange(t,e){const n=this.createLocationRangeFromDOMRange(t,{strict:!1});return this.withTargetLocationRange(n,e)}getExpandedRangeInDirection(t){let e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length,n=i(Array.from(this.getSelectedRange()),2),r=n[0],o=n[1];return"backward"===t?e?r-=e:r=this.translateUTF16PositionFromOffset(r,-1):e?o+=e:o=this.translateUTF16PositionFromOffset(o,1),Lt([r,o])}shouldManageMovingCursorInDirection(t){if(this.editingAttachment)return!0;const e=this.getExpandedRangeInDirection(t);return null!=this.getAttachmentAtRange(e)}moveCursorInDirection(t){let e,n;if(this.editingAttachment)n=this.document.getRangeOfAttachment(this.editingAttachment);else{const r=this.getSelectedRange();n=this.getExpandedRangeInDirection(t),e=!Wt(r,n)}if("backward"===t?this.setSelectedRange(n[0]):this.setSelectedRange(n[1]),e){const t=this.getAttachmentAtRange(n);if(t)return this.editAttachment(t)}}expandSelectionInDirection(t){let e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length;const n=this.getExpandedRangeInDirection(t,{length:e});return this.setSelectedRange(n)}expandSelectionForEditing(){if(this.hasCurrentAttribute("href"))return this.expandSelectionAroundCommonAttribute("href")}expandSelectionAroundCommonAttribute(t){const e=this.getPosition(),n=this.document.getRangeOfCommonAttributeAtPosition(t,e);return this.setSelectedRange(n)}selectionContainsAttachments(){var t;return(null===(t=this.getSelectedAttachments())||void 0===t?void 0:t.length)>0}selectionIsInCursorTarget(){return this.editingAttachment||this.positionIsCursorTarget(this.getPosition())}positionIsCursorTarget(t){const e=this.document.locationFromPosition(t);if(e)return this.locationIsCursorTarget(e)}positionIsBlockBreak(t){var e;return null===(e=this.document.getPieceAtPosition(t))||void 0===e?void 0:e.isBlockBreak()}getSelectedDocument(){const t=this.getSelectedRange();if(t)return this.document.getDocumentAtRange(t)}getSelectedAttachments(){var t;return null===(t=this.getSelectedDocument())||void 0===t?void 0:t.getAttachments()}getAttachments(){return this.attachments.slice(0)}refreshAttachments(){const t=this.document.getAttachments(),e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[],r=[],i=new Set;t.forEach((t=>{i.add(t)}));const o=new Set;return e.forEach((t=>{o.add(t),i.has(t)||n.push(t)})),t.forEach((t=>{o.has(t)||r.push(t)})),{added:n,removed:r}}(this.attachments,t),n=e.added,r=e.removed;return this.attachments=t,Array.from(r).forEach((t=>{var e,n;t.delegate=null,null===(e=this.delegate)||void 0===e||null===(n=e.compositionDidRemoveAttachment)||void 0===n||n.call(e,t)})),(()=>{const t=[];return Array.from(n).forEach((e=>{var n,r;e.delegate=this,t.push(null===(n=this.delegate)||void 0===n||null===(r=n.compositionDidAddAttachment)||void 0===r?void 0:r.call(n,e))})),t})()}attachmentDidChangeAttributes(t){var e,n;return this.revision++,null===(e=this.delegate)||void 0===e||null===(n=e.compositionDidEditAttachment)||void 0===n?void 0:n.call(e,t)}attachmentDidChangePreviewURL(t){var e,n;return this.revision++,null===(e=this.delegate)||void 0===e||null===(n=e.compositionDidChangeAttachmentPreviewURL)||void 0===n?void 0:n.call(e,t)}editAttachment(t,e){var n,r;if(t!==this.editingAttachment)return this.stopEditingAttachment(),this.editingAttachment=t,null===(n=this.delegate)||void 0===n||null===(r=n.compositionDidStartEditingAttachment)||void 0===r?void 0:r.call(n,this.editingAttachment,e)}stopEditingAttachment(){var t,e;this.editingAttachment&&(null===(t=this.delegate)||void 0===t||null===(e=t.compositionDidStopEditingAttachment)||void 0===e||e.call(t,this.editingAttachment),this.editingAttachment=null)}updateAttributesForAttachment(t,e){return this.setDocument(this.document.updateAttributesForAttachment(t,e))}removeAttributeForAttachment(t,e){return this.setDocument(this.document.removeAttributeForAttachment(t,e))}breakFormattedBlock(t){let e=t.document;const n=t.block;let r=t.startPosition,i=[r-1,r];n.getBlockBreakPosition()===t.startLocation.offset?(n.breaksOnReturn()&&"\n"===t.nextCharacter?r+=1:e=e.removeTextAtRange(i),i=[r,r]):"\n"===t.nextCharacter?"\n"===t.previousCharacter?i=[r-1,r+1]:(i=[r,r+1],r+=1):t.startLocation.offset-1!=0&&(r+=1);const o=new Ze([n.removeLastAttribute().copyWithoutText()]);return this.setDocument(e.insertDocumentAtRange(o,i)),this.setSelection(r)}getPreviousBlock(){const t=this.getLocationRange();if(t){const e=t[0].index;if(e>0)return this.document.getBlockAtIndex(e-1)}}getBlock(){const t=this.getLocationRange();if(t)return this.document.getBlockAtIndex(t[0].index)}getAttachmentAtRange(t){const e=this.document.getDocumentAtRange(t);if(e.toString()==="".concat("\ufffc","\n"))return e.getAttachments()[0]}notifyDelegateOfCurrentAttributesChange(){var t,e;return null===(t=this.delegate)||void 0===t||null===(e=t.compositionDidChangeCurrentAttributes)||void 0===e?void 0:e.call(t,this.currentAttributes)}notifyDelegateOfInsertionAtRange(t){var e,n;return null===(e=this.delegate)||void 0===e||null===(n=e.compositionDidPerformInsertionAtRange)||void 0===n?void 0:n.call(e,t)}translateUTF16PositionFromOffset(t,e){const n=this.document.toUTF16String(),r=n.offsetFromUCS2Offset(t);return n.offsetToUCS2Offset(r+e)}}kn.proxyMethod("getSelectionManager().getPointRange"),kn.proxyMethod("getSelectionManager().setLocationRangeFromPointRange"),kn.proxyMethod("getSelectionManager().createLocationRangeFromDOMRange"),kn.proxyMethod("getSelectionManager().locationIsCursorTarget"),kn.proxyMethod("getSelectionManager().selectionIsExpanded"),kn.proxyMethod("delegate?.getSelectionManager");class _n extends ${constructor(t){super(...arguments),this.composition=t,this.undoEntries=[],this.redoEntries=[]}recordUndoEntry(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.context,r=e.consolidatable;const i=this.undoEntries.slice(-1)[0];if(!r||!On(i,t,n)){const e=this.createEntry({description:t,context:n});this.undoEntries.push(e),this.redoEntries=[]}}undo(){const t=this.undoEntries.pop();if(t){const e=this.createEntry(t);return this.redoEntries.push(e),this.composition.loadSnapshot(t.snapshot)}}redo(){const t=this.redoEntries.pop();if(t){const e=this.createEntry(t);return this.undoEntries.push(e),this.composition.loadSnapshot(t.snapshot)}}canUndo(){return this.undoEntries.length>0}canRedo(){return this.redoEntries.length>0}createEntry(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.description,n=t.context;return{description:null==e?void 0:e.toString(),context:JSON.stringify(n),snapshot:this.composition.getSnapshot()}}}const On=(t,e,n)=>(null==t?void 0:t.description)===(null==e?void 0:e.toString())&&(null==t?void 0:t.context)===JSON.stringify(n),xn="attachmentGallery";class En{constructor(t){this.document=t.document,this.selectedRange=t.selectedRange}perform(){return this.removeBlockAttribute(),this.applyBlockAttribute()}getSnapshot(){return{document:this.document,selectedRange:this.selectedRange}}removeBlockAttribute(){return this.findRangesOfBlocks().map((t=>this.document=this.document.removeAttributeAtRange(xn,t)))}applyBlockAttribute(){let t=0;this.findRangesOfPieces().forEach((e=>{e[1]-e[0]>1&&(e[0]+=t,e[1]+=t,"\n"!==this.document.getCharacterAtPosition(e[1])&&(this.document=this.document.insertBlockBreakAtRange(e[1]),e[1]<this.selectedRange[1]&&this.moveSelectedRangeForward(),e[1]++,t++),0!==e[0]&&"\n"!==this.document.getCharacterAtPosition(e[0]-1)&&(this.document=this.document.insertBlockBreakAtRange(e[0]),e[0]<this.selectedRange[0]&&this.moveSelectedRangeForward(),e[0]++,t++),this.document=this.document.applyBlockAttributeAtRange(xn,!0,e))}))}findRangesOfBlocks(){return this.document.findRangesForBlockAttribute(xn)}findRangesOfPieces(){return this.document.findRangesForTextAttribute("presentation",{withValue:"gallery"})}moveSelectedRangeForward(){this.selectedRange[0]+=1,this.selectedRange[1]+=1}}const jn=function(t){const e=new En(t);return e.perform(),e.getSnapshot()},Sn=[jn];class Pn{constructor(t,e,n){this.insertFiles=this.insertFiles.bind(this),this.composition=t,this.selectionManager=e,this.element=n,this.undoManager=new _n(this.composition),this.filters=Sn.slice(0)}loadDocument(t){return this.loadSnapshot({document:t,selectedRange:[0,0]})}loadHTML(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const e=rn.parse(t,{referenceElement:this.element}).getDocument();return this.loadDocument(e)}loadJSON(t){let e=t.document,n=t.selectedRange;return e=Ze.fromJSON(e),this.loadSnapshot({document:e,selectedRange:n})}loadSnapshot(t){return this.undoManager=new _n(this.composition),this.composition.loadSnapshot(t)}getDocument(){return this.composition.document}getSelectedDocument(){return this.composition.getSelectedDocument()}getSnapshot(){return this.composition.getSnapshot()}toJSON(){return this.getSnapshot()}deleteInDirection(t){return this.composition.deleteInDirection(t)}insertAttachment(t){return this.composition.insertAttachment(t)}insertAttachments(t){return this.composition.insertAttachments(t)}insertDocument(t){return this.composition.insertDocument(t)}insertFile(t){return this.composition.insertFile(t)}insertFiles(t){return this.composition.insertFiles(t)}insertHTML(t){return this.composition.insertHTML(t)}insertString(t){return this.composition.insertString(t)}insertText(t){return this.composition.insertText(t)}insertLineBreak(){return this.composition.insertLineBreak()}getSelectedRange(){return this.composition.getSelectedRange()}getPosition(){return this.composition.getPosition()}getClientRectAtPosition(t){const e=this.getDocument().locationRangeFromRange([t,t+1]);return this.selectionManager.getClientRectAtLocationRange(e)}expandSelectionInDirection(t){return this.composition.expandSelectionInDirection(t)}moveCursorInDirection(t){return this.composition.moveCursorInDirection(t)}setSelectedRange(t){return this.composition.setSelectedRange(t)}activateAttribute(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.composition.setCurrentAttribute(t,e)}attributeIsActive(t){return this.composition.hasCurrentAttribute(t)}canActivateAttribute(t){return this.composition.canSetCurrentAttribute(t)}deactivateAttribute(t){return this.composition.removeCurrentAttribute(t)}setHTMLAtributeAtPosition(t,e,n){this.composition.setHTMLAtributeAtPosition(t,e,n)}canDecreaseNestingLevel(){return this.composition.canDecreaseNestingLevel()}canIncreaseNestingLevel(){return this.composition.canIncreaseNestingLevel()}decreaseNestingLevel(){if(this.canDecreaseNestingLevel())return this.composition.decreaseNestingLevel()}increaseNestingLevel(){if(this.canIncreaseNestingLevel())return this.composition.increaseNestingLevel()}canRedo(){return this.undoManager.canRedo()}canUndo(){return this.undoManager.canUndo()}recordUndoEntry(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.context,r=e.consolidatable;return this.undoManager.recordUndoEntry(t,{context:n,consolidatable:r})}redo(){if(this.canRedo())return this.undoManager.redo()}undo(){if(this.canUndo())return this.undoManager.undo()}}class Cn{constructor(t){this.element=t}findLocationFromContainerAndOffset(t,e){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!0}).strict,r=0,i=!1;const o={index:0,offset:0},a=this.findAttachmentElementParentForNode(t);a&&(t=a.parentNode,e=T(a));const s=A(this.element,{usingFilter:Dn});for(;s.nextNode();){const a=s.currentNode;if(a===t&&q(t)){H(a)||(o.offset+=e);break}if(a.parentNode===t){if(r++===e)break}else if(!C(t,a)&&r>0)break;z(a,{strict:n})?(i&&o.index++,o.offset=0,i=!0):o.offset+=Tn(a)}return o}findContainerAndOffsetFromLocation(t){let e,n;if(0===t.index&&0===t.offset){for(e=this.element,n=0;e.firstChild;)if(e=e.firstChild,W(e)){n=1;break}return[e,n]}let r=i(this.findNodeAndOffsetFromLocation(t),2),o=r[0],a=r[1];if(o){if(q(o))0===Tn(o)?(e=o.parentNode.parentNode,n=T(o.parentNode),H(o,{name:"right"})&&n++):(e=o,n=t.offset-a);else{if(e=o.parentNode,!z(o.previousSibling)&&!W(e))for(;o===e.lastChild&&(o=e,e=e.parentNode,!W(e)););n=T(o),0!==t.offset&&n++}return[e,n]}}findNodeAndOffsetFromLocation(t){let e,n,r=0;for(const i of this.getSignificantNodesForIndex(t.index)){const o=Tn(i);if(t.offset<=r+o)if(q(i)){if(e=i,n=r,t.offset===n&&H(e))break}else e||(e=i,n=r);if(r+=o,r>t.offset)break}return[e,n]}findAttachmentElementParentForNode(t){for(;t&&t!==this.element;){if(B(t))return t;t=t.parentNode}}getSignificantNodesForIndex(t){const e=[],n=A(this.element,{usingFilter:Mn});let r=!1;for(;n.nextNode();){const o=n.currentNode;var i;if(N(o)){if(null!=i?i++:i=0,i===t)r=!0;else if(r)break}else r&&e.push(o)}return e}}const Tn=function(t){return t.nodeType===Node.TEXT_NODE?H(t)?0:t.textContent.length:"br"===D(t)||B(t)?1:0},Mn=function(t){return An(t)===NodeFilter.FILTER_ACCEPT?Dn(t):NodeFilter.FILTER_REJECT},An=function(t){return V(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},Dn=function(t){return B(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT};class Rn{createDOMRangeFromPoint(t){let e,n=t.x,r=t.y;if(document.caretPositionFromPoint){const t=document.caretPositionFromPoint(n,r),i=t.offsetNode,o=t.offset;return e=document.createRange(),e.setStart(i,o),e}if(document.caretRangeFromPoint)return document.caretRangeFromPoint(n,r);if(document.body.createTextRange){const i=Vt();try{const t=document.body.createTextRange();t.moveToPoint(n,r),t.select()}catch(t){}return e=Vt(),qt(i),e}}getClientRectsForDOMRange(t){const e=Array.from(t.getClientRects());return[e[0],e[e.length-1]]}}class Ln extends ${constructor(t){super(...arguments),this.didMouseDown=this.didMouseDown.bind(this),this.selectionDidChange=this.selectionDidChange.bind(this),this.element=t,this.locationMapper=new Cn(this.element),this.pointMapper=new Rn,this.lockCount=0,x("mousedown",{onElement:this.element,withCallback:this.didMouseDown})}getLocationRange(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!1===t.strict?this.createLocationRangeFromDOMRange(Vt()):t.ignoreLock?this.currentLocationRange:this.lockedLocationRange?this.lockedLocationRange:this.currentLocationRange}setLocationRange(t){if(this.lockedLocationRange)return;t=Lt(t);const e=this.createDOMRangeFromLocationRange(t);e&&(qt(e),this.updateCurrentLocationRange(t))}setLocationRangeFromPointRange(t){t=Lt(t);const e=this.getLocationAtPoint(t[0]),n=this.getLocationAtPoint(t[1]);this.setLocationRange([e,n])}getClientRectAtLocationRange(t){const e=this.createDOMRangeFromLocationRange(t);if(e)return this.getClientRectsForDOMRange(e)[1]}locationIsCursorTarget(t){const e=Array.from(this.findNodeAndOffsetFromLocation(t))[0];return H(e)}lock(){0==this.lockCount++&&(this.updateCurrentLocationRange(),this.lockedLocationRange=this.getLocationRange())}unlock(){if(0==--this.lockCount){const t=this.lockedLocationRange;if(this.lockedLocationRange=null,null!=t)return this.setLocationRange(t)}}clearSelection(){var t;return null===(t=Bt())||void 0===t?void 0:t.removeAllRanges()}selectionIsCollapsed(){var t;return!0===(null===(t=Vt())||void 0===t?void 0:t.collapsed)}selectionIsExpanded(){return!this.selectionIsCollapsed()}createLocationRangeFromDOMRange(t,e){if(null==t||!this.domRangeWithinElement(t))return;const n=this.findLocationFromContainerAndOffset(t.startContainer,t.startOffset,e);if(!n)return;const r=t.collapsed?void 0:this.findLocationFromContainerAndOffset(t.endContainer,t.endOffset,e);return Lt([n,r])}didMouseDown(){return this.pauseTemporarily()}pauseTemporarily(){let t;this.paused=!0;const e=()=>{if(this.paused=!1,clearTimeout(n),Array.from(t).forEach((t=>{t.destroy()})),C(document,this.element))return this.selectionDidChange()},n=setTimeout(e,200);t=["mousemove","keydown"].map((t=>x(t,{onElement:document,withCallback:e})))}selectionDidChange(){if(!this.paused&&!P(this.element))return this.updateCurrentLocationRange()}updateCurrentLocationRange(t){var e,n;if((null!=t?t:t=this.createLocationRangeFromDOMRange(Vt()))&&!Wt(t,this.currentLocationRange))return this.currentLocationRange=t,null===(e=this.delegate)||void 0===e||null===(n=e.locationRangeDidChange)||void 0===n?void 0:n.call(e,this.currentLocationRange.slice(0))}createDOMRangeFromLocationRange(t){const e=this.findContainerAndOffsetFromLocation(t[0]),n=It(t)?e:this.findContainerAndOffsetFromLocation(t[1])||e;if(null!=e&&null!=n){const t=document.createRange();return t.setStart(...Array.from(e||[])),t.setEnd(...Array.from(n||[])),t}}getLocationAtPoint(t){const e=this.createDOMRangeFromPoint(t);var n;if(e)return null===(n=this.createLocationRangeFromDOMRange(e))||void 0===n?void 0:n[0]}domRangeWithinElement(t){return t.collapsed?C(this.element,t.startContainer):C(this.element,t.startContainer)&&C(this.element,t.endContainer)}}Ln.proxyMethod("locationMapper.findLocationFromContainerAndOffset"),Ln.proxyMethod("locationMapper.findContainerAndOffsetFromLocation"),Ln.proxyMethod("locationMapper.findNodeAndOffsetFromLocation"),Ln.proxyMethod("pointMapper.createDOMRangeFromPoint"),Ln.proxyMethod("pointMapper.getClientRectsForDOMRange");var In=Object.freeze({__proto__:null,Attachment:Le,AttachmentManager:yn,AttachmentPiece:Ie,Block:Ve,Composition:kn,Document:Ze,Editor:Pn,HTMLParser:rn,HTMLSanitizer:pe,LineBreakInsertion:wn,LocationMapper:Cn,ManagedAttachment:vn,Piece:De,PointMapper:Rn,SelectionManager:Ln,SplittableList:ze,StringPiece:We,Text:Be,UndoManager:_n}),Wn=Object.freeze({__proto__:null,ObjectView:ue,AttachmentView:be,BlockView:Ee,DocumentView:je,PieceView:ke,PreviewableAttachmentView:we,TextView:_e});const zn=K.lang,Nn=K.css,Fn=K.keyNames,Hn=function(t){return function(){const e=t.apply(this,arguments);e.do(),this.undos||(this.undos=[]),this.undos.push(e.undo)}};class Bn extends ${constructor(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(...arguments),Ae(this,"makeElementMutable",Hn((()=>({do:()=>{this.element.dataset.trixMutable=!0},undo:()=>delete this.element.dataset.trixMutable})))),Ae(this,"addToolbar",Hn((()=>{const t=R({tagName:"div",className:Nn.attachmentToolbar,data:{trixMutable:!0},childNodes:R({tagName:"div",className:"trix-button-row",childNodes:R({tagName:"span",className:"trix-button-group trix-button-group--actions",childNodes:R({tagName:"button",className:"trix-button trix-button--remove",textContent:zn.remove,attributes:{title:zn.remove},data:{trixAction:"remove"}})})})});return this.attachment.isPreviewable()&&t.appendChild(R({tagName:"div",className:Nn.attachmentMetadataContainer,childNodes:R({tagName:"span",className:Nn.attachmentMetadata,childNodes:[R({tagName:"span",className:Nn.attachmentName,textContent:this.attachment.getFilename(),attributes:{title:this.attachment.getFilename()}}),R({tagName:"span",className:Nn.attachmentSize,textContent:this.attachment.getFormattedFilesize()})]})})),x("click",{onElement:t,withCallback:this.didClickToolbar}),x("click",{onElement:t,matchingSelector:"[data-trix-action]",withCallback:this.didClickActionButton}),E("trix-attachment-before-toolbar",{onElement:this.element,attributes:{toolbar:t,attachment:this.attachment}}),{do:()=>this.element.appendChild(t),undo:()=>M(t)}}))),Ae(this,"installCaptionEditor",Hn((()=>{const t=R({tagName:"textarea",className:Nn.attachmentCaptionEditor,attributes:{placeholder:zn.captionPlaceholder},data:{trixMutable:!0}});t.value=this.attachmentPiece.getCaption();const e=t.cloneNode();e.classList.add("trix-autoresize-clone"),e.tabIndex=-1;const n=function(){e.value=t.value,t.style.height=e.scrollHeight+"px"};x("input",{onElement:t,withCallback:n}),x("input",{onElement:t,withCallback:this.didInputCaption}),x("keydown",{onElement:t,withCallback:this.didKeyDownCaption}),x("change",{onElement:t,withCallback:this.didChangeCaption}),x("blur",{onElement:t,withCallback:this.didBlurCaption});const r=this.element.querySelector("figcaption"),i=r.cloneNode();return{do:()=>{if(r.style.display="none",i.appendChild(t),i.appendChild(e),i.classList.add("".concat(Nn.attachmentCaption,"--editing")),r.parentElement.insertBefore(i,r),n(),this.options.editCaption)return At((()=>t.focus()))},undo(){M(i),r.style.display=null}}}))),this.didClickToolbar=this.didClickToolbar.bind(this),this.didClickActionButton=this.didClickActionButton.bind(this),this.didKeyDownCaption=this.didKeyDownCaption.bind(this),this.didInputCaption=this.didInputCaption.bind(this),this.didChangeCaption=this.didChangeCaption.bind(this),this.didBlurCaption=this.didBlurCaption.bind(this),this.attachmentPiece=t,this.element=e,this.container=n,this.options=r,this.attachment=this.attachmentPiece.attachment,"a"===D(this.element)&&(this.element=this.element.firstChild),this.install()}install(){this.makeElementMutable(),this.addToolbar(),this.attachment.isPreviewable()&&this.installCaptionEditor()}uninstall(){var t;let e=this.undos.pop();for(this.savePendingCaption();e;)e(),e=this.undos.pop();null===(t=this.delegate)||void 0===t||t.didUninstallAttachmentEditor(this)}savePendingCaption(){if(null!=this.pendingCaption){const i=this.pendingCaption;var t,e,n,r;this.pendingCaption=null,i?null===(t=this.delegate)||void 0===t||null===(e=t.attachmentEditorDidRequestUpdatingAttributesForAttachment)||void 0===e||e.call(t,{caption:i},this.attachment):null===(n=this.delegate)||void 0===n||null===(r=n.attachmentEditorDidRequestRemovingAttributeForAttachment)||void 0===r||r.call(n,"caption",this.attachment)}}didClickToolbar(t){return t.preventDefault(),t.stopPropagation()}didClickActionButton(t){var e;if("remove"===t.target.getAttribute("data-trix-action"))return null===(e=this.delegate)||void 0===e?void 0:e.attachmentEditorDidRequestRemovalOfAttachment(this.attachment)}didKeyDownCaption(t){var e,n;if("return"===Fn[t.keyCode])return t.preventDefault(),this.savePendingCaption(),null===(e=this.delegate)||void 0===e||null===(n=e.attachmentEditorDidRequestDeselectingAttachment)||void 0===n?void 0:n.call(e,this.attachment)}didInputCaption(t){this.pendingCaption=t.target.value.replace(/\s/g," ").trim()}didChangeCaption(t){return this.savePendingCaption()}didBlurCaption(t){return this.savePendingCaption()}}class Vn extends ${constructor(t,e){super(...arguments),this.didFocus=this.didFocus.bind(this),this.didBlur=this.didBlur.bind(this),this.didClickAttachment=this.didClickAttachment.bind(this),this.element=t,this.composition=e,this.documentView=new je(this.composition.document,{element:this.element}),x("focus",{onElement:this.element,withCallback:this.didFocus}),x("blur",{onElement:this.element,withCallback:this.didBlur}),x("click",{onElement:this.element,matchingSelector:"a[contenteditable=false]",preventDefault:!0}),x("mousedown",{onElement:this.element,matchingSelector:u,withCallback:this.didClickAttachment}),x("click",{onElement:this.element,matchingSelector:"a".concat(u),preventDefault:!0})}didFocus(t){var e;const n=()=>{var t,e;if(!this.focused)return this.focused=!0,null===(t=this.delegate)||void 0===t||null===(e=t.compositionControllerDidFocus)||void 0===e?void 0:e.call(t)};return(null===(e=this.blurPromise)||void 0===e?void 0:e.then(n))||n()}didBlur(t){this.blurPromise=new Promise((t=>At((()=>{var e,n;return P(this.element)||(this.focused=null,null===(e=this.delegate)||void 0===e||null===(n=e.compositionControllerDidBlur)||void 0===n||n.call(e)),this.blurPromise=null,t()}))))}didClickAttachment(t,e){var n,r;const i=this.findAttachmentForElement(e),o=!!S(t.target,{matchingSelector:"figcaption"});return null===(n=this.delegate)||void 0===n||null===(r=n.compositionControllerDidSelectAttachment)||void 0===r?void 0:r.call(n,i,{editCaption:o})}getSerializableElement(){return this.isEditingAttachment()?this.documentView.shadowElement:this.element}render(){var t,e,n,r,i,o;return this.revision!==this.composition.revision&&(this.documentView.setDocument(this.composition.document),this.documentView.render(),this.revision=this.composition.revision),this.canSyncDocumentView()&&!this.documentView.isSynced()&&(null===(n=this.delegate)||void 0===n||null===(r=n.compositionControllerWillSyncDocumentView)||void 0===r||r.call(n),this.documentView.sync(),null===(i=this.delegate)||void 0===i||null===(o=i.compositionControllerDidSyncDocumentView)||void 0===o||o.call(i)),null===(t=this.delegate)||void 0===t||null===(e=t.compositionControllerDidRender)||void 0===e?void 0:e.call(t)}rerenderViewForObject(t){return this.invalidateViewForObject(t),this.render()}invalidateViewForObject(t){return this.documentView.invalidateViewForObject(t)}isViewCachingEnabled(){return this.documentView.isViewCachingEnabled()}enableViewCaching(){return this.documentView.enableViewCaching()}disableViewCaching(){return this.documentView.disableViewCaching()}refreshViewCache(){return this.documentView.garbageCollectCachedViews()}isEditingAttachment(){return!!this.attachmentEditor}installAttachmentEditorForAttachment(t,e){var n;if((null===(n=this.attachmentEditor)||void 0===n?void 0:n.attachment)===t)return;const r=this.documentView.findElementForObject(t);if(!r)return;this.uninstallAttachmentEditor();const i=this.composition.document.getAttachmentPieceForAttachment(t);this.attachmentEditor=new Bn(i,r,this.element,e),this.attachmentEditor.delegate=this}uninstallAttachmentEditor(){var t;return null===(t=this.attachmentEditor)||void 0===t?void 0:t.uninstall()}didUninstallAttachmentEditor(){return this.attachmentEditor=null,this.render()}attachmentEditorDidRequestUpdatingAttributesForAttachment(t,e){var n,r;return null===(n=this.delegate)||void 0===n||null===(r=n.compositionControllerWillUpdateAttachment)||void 0===r||r.call(n,e),this.composition.updateAttributesForAttachment(t,e)}attachmentEditorDidRequestRemovingAttributeForAttachment(t,e){var n,r;return null===(n=this.delegate)||void 0===n||null===(r=n.compositionControllerWillUpdateAttachment)||void 0===r||r.call(n,e),this.composition.removeAttributeForAttachment(t,e)}attachmentEditorDidRequestRemovalOfAttachment(t){var e,n;return null===(e=this.delegate)||void 0===e||null===(n=e.compositionControllerDidRequestRemovalOfAttachment)||void 0===n?void 0:n.call(e,t)}attachmentEditorDidRequestDeselectingAttachment(t){var e,n;return null===(e=this.delegate)||void 0===e||null===(n=e.compositionControllerDidRequestDeselectingAttachment)||void 0===n?void 0:n.call(e,t)}canSyncDocumentView(){return!this.isEditingAttachment()}findAttachmentForElement(t){return this.composition.document.getAttachmentById(parseInt(t.dataset.trixId,10))}}class qn extends ${}const Yn="data-trix-mutable",Un="[".concat(Yn,"]"),Gn={attributes:!0,childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0};class Xn extends ${constructor(t){super(t),this.didMutate=this.didMutate.bind(this),this.element=t,this.observer=new window.MutationObserver(this.didMutate),this.start()}start(){return this.reset(),this.observer.observe(this.element,Gn)}stop(){return this.observer.disconnect()}didMutate(t){var e,n;if(this.mutations.push(...Array.from(this.findSignificantMutations(t)||[])),this.mutations.length)return null===(e=this.delegate)||void 0===e||null===(n=e.elementDidMutate)||void 0===n||n.call(e,this.getMutationSummary()),this.reset()}reset(){this.mutations=[]}findSignificantMutations(t){return t.filter((t=>this.mutationIsSignificant(t)))}mutationIsSignificant(t){if(this.nodeIsMutable(t.target))return!1;for(const e of Array.from(this.nodesModifiedByMutation(t)))if(this.nodeIsSignificant(e))return!0;return!1}nodeIsSignificant(t){return t!==this.element&&!this.nodeIsMutable(t)&&!V(t)}nodeIsMutable(t){return S(t,{matchingSelector:Un})}nodesModifiedByMutation(t){const e=[];switch(t.type){case"attributes":t.attributeName!==Yn&&e.push(t.target);break;case"characterData":e.push(t.target.parentNode),e.push(t.target);break;case"childList":e.push(...Array.from(t.addedNodes||[])),e.push(...Array.from(t.removedNodes||[]))}return e}getMutationSummary(){return this.getTextMutationSummary()}getTextMutationSummary(){const t=this.getTextChangesFromCharacterData(),e=t.additions,n=t.deletions,r=this.getTextChangesFromChildList();Array.from(r.additions).forEach((t=>{Array.from(e).includes(t)||e.push(t)})),n.push(...Array.from(r.deletions||[]));const i={},o=e.join("");o&&(i.textAdded=o);const a=n.join("");return a&&(i.textDeleted=a),i}getMutationsByType(t){return Array.from(this.mutations).filter((e=>e.type===t))}getTextChangesFromChildList(){let t,e;const n=[],r=[];return Array.from(this.getMutationsByType("childList")).forEach((t=>{n.push(...Array.from(t.addedNodes||[])),r.push(...Array.from(t.removedNodes||[]))})),0===n.length&&1===r.length&&N(r[0])?(t=[],e=["\n"]):(t=Jn(n),e=Jn(r)),{additions:t.filter(((t,n)=>t!==e[n])).map(Gt),deletions:e.filter(((e,n)=>e!==t[n])).map(Gt)}}getTextChangesFromCharacterData(){let t,e;const n=this.getMutationsByType("characterData");if(n.length){const r=n[0],o=n[n.length-1],a=function(t,e,n,r,o,a){let s,l;return t=it.box(t),(e=it.box(e)).length<t.length?(l=(r=i(Kt(t,e),2))[0],s=r[1]):(s=(a=i(Kt(e,t),2))[0],l=a[1]),{added:s,removed:l}}(Gt(r.oldValue),Gt(o.target.data));t=a.added,e=a.removed}return{additions:t?[t]:[],deletions:e?[e]:[]}}}const Jn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=[];for(const n of Array.from(t))switch(n.nodeType){case Node.TEXT_NODE:e.push(n.data);break;case Node.ELEMENT_NODE:"br"===D(n)?e.push("\n"):e.push(...Array.from(Jn(n.childNodes)||[]))}return e};class Kn extends le{constructor(t){super(...arguments),this.file=t}perform(t){const e=new FileReader;return e.onerror=()=>t(!1),e.onload=()=>{e.onerror=null;try{e.abort()}catch(t){}return t(!0,this.file)},e.readAsArrayBuffer(this.file)}}class $n{constructor(t){this.element=t}shouldIgnore(t){return!!m.samsungAndroid&&(this.previousEvent=this.event,this.event=t,this.checkSamsungKeyboardBuggyModeStart(),this.checkSamsungKeyboardBuggyModeEnd(),this.buggyMode)}checkSamsungKeyboardBuggyModeStart(){this.insertingLongTextAfterUnidentifiedChar()&&Qn(this.element.innerText,this.event.data)&&(this.buggyMode=!0,this.event.preventDefault())}checkSamsungKeyboardBuggyModeEnd(){this.buggyMode&&"insertText"!==this.event.inputType&&(this.buggyMode=!1)}insertingLongTextAfterUnidentifiedChar(){var t;return this.isBeforeInputInsertText()&&this.previousEventWasUnidentifiedKeydown()&&(null===(t=this.event.data)||void 0===t?void 0:t.length)>50}isBeforeInputInsertText(){return"beforeinput"===this.event.type&&"insertText"===this.event.inputType}previousEventWasUnidentifiedKeydown(){var t,e;return"keydown"===(null===(t=this.previousEvent)||void 0===t?void 0:t.type)&&"Unidentified"===(null===(e=this.previousEvent)||void 0===e?void 0:e.key)}}const Qn=(t,e)=>tr(t)===tr(e),Zn=new RegExp("(".concat("\ufffc","|").concat(y,"|").concat(w,"|\\s)+"),"g"),tr=t=>t.replace(Zn," ").trim();class er extends ${constructor(t){super(...arguments),this.element=t,this.mutationObserver=new Xn(this.element),this.mutationObserver.delegate=this,this.flakyKeyboardDetector=new $n(this.element);for(const e in this.constructor.events)x(e,{onElement:this.element,withCallback:this.handlerFor(e)})}elementDidMutate(t){}editorWillSyncDocumentView(){return this.mutationObserver.stop()}editorDidSyncDocumentView(){return this.mutationObserver.start()}requestRender(){var t,e;return null===(t=this.delegate)||void 0===t||null===(e=t.inputControllerDidRequestRender)||void 0===e?void 0:e.call(t)}requestReparse(){var t,e;return null===(t=this.delegate)||void 0===t||null===(e=t.inputControllerDidRequestReparse)||void 0===e||e.call(t),this.requestRender()}attachFiles(t){const e=Array.from(t).map((t=>new Kn(t)));return Promise.all(e).then((t=>{this.handleInput((function(){var e,n;return null===(e=this.delegate)||void 0===e||e.inputControllerWillAttachFiles(),null===(n=this.responder)||void 0===n||n.insertFiles(t),this.requestRender()}))}))}handlerFor(t){return e=>{e.defaultPrevented||this.handleInput((()=>{if(!P(this.element)){if(this.flakyKeyboardDetector.shouldIgnore(e))return;this.eventName=t,this.constructor.events[t].call(this,e)}}))}}handleInput(t){try{var e;null===(e=this.delegate)||void 0===e||e.inputControllerWillHandleInput(),t.call(this)}finally{var n;null===(n=this.delegate)||void 0===n||n.inputControllerDidHandleInput()}}createLinkHTML(t,e){const n=document.createElement("a");return n.href=t,n.textContent=e||t,n.outerHTML}}var nr;Ae(er,"events",{});const rr=K.browser,ir=K.keyNames;let or=0;class ar extends er{constructor(){super(...arguments),this.resetInputSummary()}setInputSummary(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.inputSummary.eventName=this.eventName;for(const e in t){const n=t[e];this.inputSummary[e]=n}return this.inputSummary}resetInputSummary(){this.inputSummary={}}reset(){return this.resetInputSummary(),Ht.reset()}elementDidMutate(t){var e,n;return this.isComposing()?null===(e=this.delegate)||void 0===e||null===(n=e.inputControllerDidAllowUnhandledInput)||void 0===n?void 0:n.call(e):this.handleInput((function(){return this.mutationIsSignificant(t)&&(this.mutationIsExpected(t)?this.requestRender():this.requestReparse()),this.reset()}))}mutationIsExpected(t){let e=t.textAdded,n=t.textDeleted;if(this.inputSummary.preferDocument)return!0;const r=null!=e?e===this.inputSummary.textAdded:!this.inputSummary.textAdded,i=null!=n?this.inputSummary.didDelete:!this.inputSummary.didDelete,o=["\n"," \n"].includes(e)&&!r,a="\n"===n&&!i;if(o&&!a||a&&!o){const t=this.getSelectedRange();if(t){var s;const n=o?e.replace(/\n$/,"").length||-1:(null==e?void 0:e.length)||1;if(null!==(s=this.responder)&&void 0!==s&&s.positionIsBlockBreak(t[1]+n))return!0}}return r&&i}mutationIsSignificant(t){var e;const n=Object.keys(t).length>0,r=""===(null===(e=this.compositionInput)||void 0===e?void 0:e.getEndData());return n||!r}getCompositionInput(){if(this.isComposing())return this.compositionInput;this.compositionInput=new dr(this)}isComposing(){return this.compositionInput&&!this.compositionInput.isEnded()}deleteInDirection(t,e){var n;return!1!==(null===(n=this.responder)||void 0===n?void 0:n.deleteInDirection(t))?this.setInputSummary({didDelete:!0}):e?(e.preventDefault(),this.requestRender()):void 0}serializeSelectionToDataTransfer(t){var e;if(!function(t){if(null==t||!t.setData)return!1;for(const e in Ct){const n=Ct[e];try{if(t.setData(e,n),!t.getData(e)===n)return!1}catch(t){return!1}}return!0}(t))return;const n=null===(e=this.responder)||void 0===e?void 0:e.getSelectedDocument().toSerializableDocument();return t.setData("application/x-trix-document",JSON.stringify(n)),t.setData("text/html",je.render(n).innerHTML),t.setData("text/plain",n.toString().replace(/\n$/,"")),!0}canAcceptDataTransfer(t){const e={};return Array.from((null==t?void 0:t.types)||[]).forEach((t=>{e[t]=!0})),e.Files||e["application/x-trix-document"]||e["text/html"]||e["text/plain"]}getPastedHTMLUsingHiddenElement(t){const e=this.getSelectedRange(),n={position:"absolute",left:"".concat(window.pageXOffset,"px"),top:"".concat(window.pageYOffset,"px"),opacity:0},r=R({style:n,tagName:"div",editable:!0});return document.body.appendChild(r),r.focus(),requestAnimationFrame((()=>{const n=r.innerHTML;return M(r),this.setSelectedRange(e),t(n)}))}}Ae(ar,"events",{keydown(t){this.isComposing()||this.resetInputSummary(),this.inputSummary.didInput=!0;const e=ir[t.keyCode];if(e){var n;let r=this.keys;["ctrl","alt","shift","meta"].forEach((e=>{var n;t["".concat(e,"Key")]&&("ctrl"===e&&(e="control"),r=null===(n=r)||void 0===n?void 0:n[e])})),null!=(null===(n=r)||void 0===n?void 0:n[e])&&(this.setInputSummary({keyName:e}),Ht.reset(),r[e].call(this,t))}if(Mt(t)){const e=String.fromCharCode(t.keyCode).toLowerCase();if(e){var r;const n=["alt","shift"].map((e=>{if(t["".concat(e,"Key")])return e})).filter((t=>t));n.push(e),null!==(r=this.delegate)&&void 0!==r&&r.inputControllerDidReceiveKeyboardCommand(n)&&t.preventDefault()}}},keypress(t){if(null!=this.inputSummary.eventName)return;if(t.metaKey)return;if(t.ctrlKey&&!t.altKey)return;const e=ur(t);var n,r;return e?(null===(n=this.delegate)||void 0===n||n.inputControllerWillPerformTyping(),null===(r=this.responder)||void 0===r||r.insertString(e),this.setInputSummary({textAdded:e,didDelete:this.selectionIsExpanded()})):void 0},textInput(t){const e=t.data,n=this.inputSummary.textAdded;if(n&&n!==e&&n.toUpperCase()===e){var r;const t=this.getSelectedRange();return this.setSelectedRange([t[0],t[1]+n.length]),null===(r=this.responder)||void 0===r||r.insertString(e),this.setInputSummary({textAdded:e}),this.setSelectedRange(t)}},dragenter(t){t.preventDefault()},dragstart(t){var e,n;return this.serializeSelectionToDataTransfer(t.dataTransfer),this.draggedRange=this.getSelectedRange(),null===(e=this.delegate)||void 0===e||null===(n=e.inputControllerDidStartDrag)||void 0===n?void 0:n.call(e)},dragover(t){if(this.draggedRange||this.canAcceptDataTransfer(t.dataTransfer)){t.preventDefault();const r={x:t.clientX,y:t.clientY};var e,n;if(!Rt(r,this.draggingPoint))return this.draggingPoint=r,null===(e=this.delegate)||void 0===e||null===(n=e.inputControllerDidReceiveDragOverPoint)||void 0===n?void 0:n.call(e,this.draggingPoint)}},dragend(t){var e,n;null===(e=this.delegate)||void 0===e||null===(n=e.inputControllerDidCancelDrag)||void 0===n||n.call(e),this.draggedRange=null,this.draggingPoint=null},drop(t){var e,n;t.preventDefault();const r=null===(e=t.dataTransfer)||void 0===e?void 0:e.files,i=t.dataTransfer.getData("application/x-trix-document"),o={x:t.clientX,y:t.clientY};if(null===(n=this.responder)||void 0===n||n.setLocationRangeFromPointRange(o),null!=r&&r.length)this.attachFiles(r);else if(this.draggedRange){var a,s;null===(a=this.delegate)||void 0===a||a.inputControllerWillMoveText(),null===(s=this.responder)||void 0===s||s.moveTextFromRange(this.draggedRange),this.draggedRange=null,this.requestRender()}else if(i){var l;const t=Ze.fromJSONString(i);null===(l=this.responder)||void 0===l||l.insertDocument(t),this.requestRender()}this.draggedRange=null,this.draggingPoint=null},cut(t){var e,n;if(null!==(e=this.responder)&&void 0!==e&&e.selectionIsExpanded()&&(this.serializeSelectionToDataTransfer(t.clipboardData)&&t.preventDefault(),null===(n=this.delegate)||void 0===n||n.inputControllerWillCutText(),this.deleteInDirection("backward"),t.defaultPrevented))return this.requestRender()},copy(t){var e;null!==(e=this.responder)&&void 0!==e&&e.selectionIsExpanded()&&this.serializeSelectionToDataTransfer(t.clipboardData)&&t.preventDefault()},paste(t){const e=t.clipboardData||t.testClipboardData,n={clipboard:e};if(!e||cr(t))return void this.getPastedHTMLUsingHiddenElement((t=>{var e,r,i;return n.type="text/html",n.html=t,null===(e=this.delegate)||void 0===e||e.inputControllerWillPaste(n),null===(r=this.responder)||void 0===r||r.insertHTML(n.html),this.requestRender(),null===(i=this.delegate)||void 0===i?void 0:i.inputControllerDidPaste(n)}));const r=e.getData("URL"),i=e.getData("text/html"),o=e.getData("public.url-name");if(r){var a,s,l;let t;n.type="text/html",t=o?Jt(o).trim():r,n.html=this.createLinkHTML(r,t),null===(a=this.delegate)||void 0===a||a.inputControllerWillPaste(n),this.setInputSummary({textAdded:t,didDelete:this.selectionIsExpanded()}),null===(s=this.responder)||void 0===s||s.insertHTML(n.html),this.requestRender(),null===(l=this.delegate)||void 0===l||l.inputControllerDidPaste(n)}else if(Tt(e)){var u,c,d;n.type="text/plain",n.string=e.getData("text/plain"),null===(u=this.delegate)||void 0===u||u.inputControllerWillPaste(n),this.setInputSummary({textAdded:n.string,didDelete:this.selectionIsExpanded()}),null===(c=this.responder)||void 0===c||c.insertString(n.string),this.requestRender(),null===(d=this.delegate)||void 0===d||d.inputControllerDidPaste(n)}else if(i){var h,f,p;n.type="text/html",n.html=i,null===(h=this.delegate)||void 0===h||h.inputControllerWillPaste(n),null===(f=this.responder)||void 0===f||f.insertHTML(n.html),this.requestRender(),null===(p=this.delegate)||void 0===p||p.inputControllerDidPaste(n)}else if(Array.from(e.types).includes("Files")){var m,g;const t=null===(m=e.items)||void 0===m||null===(m=m[0])||void 0===m||null===(g=m.getAsFile)||void 0===g?void 0:g.call(m);if(t){var b,v,y;const e=sr(t);!t.name&&e&&(t.name="pasted-file-".concat(++or,".").concat(e)),n.type="File",n.file=t,null===(b=this.delegate)||void 0===b||b.inputControllerWillAttachFiles(),null===(v=this.responder)||void 0===v||v.insertFile(n.file),this.requestRender(),null===(y=this.delegate)||void 0===y||y.inputControllerDidPaste(n)}}t.preventDefault()},compositionstart(t){return this.getCompositionInput().start(t.data)},compositionupdate(t){return this.getCompositionInput().update(t.data)},compositionend(t){return this.getCompositionInput().end(t.data)},beforeinput(t){this.inputSummary.didInput=!0},input(t){return this.inputSummary.didInput=!0,t.stopPropagation()}}),Ae(ar,"keys",{backspace(t){var e;return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),this.deleteInDirection("backward",t)},delete(t){var e;return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),this.deleteInDirection("forward",t)},return(t){var e,n;return this.setInputSummary({preferDocument:!0}),null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n?void 0:n.insertLineBreak()},tab(t){var e,n;null!==(e=this.responder)&&void 0!==e&&e.canIncreaseNestingLevel()&&(null===(n=this.responder)||void 0===n||n.increaseNestingLevel(),this.requestRender(),t.preventDefault())},left(t){var e;if(this.selectionIsInCursorTarget())return t.preventDefault(),null===(e=this.responder)||void 0===e?void 0:e.moveCursorInDirection("backward")},right(t){var e;if(this.selectionIsInCursorTarget())return t.preventDefault(),null===(e=this.responder)||void 0===e?void 0:e.moveCursorInDirection("forward")},control:{d(t){var e;return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),this.deleteInDirection("forward",t)},h(t){var e;return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),this.deleteInDirection("backward",t)},o(t){var e,n;return t.preventDefault(),null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.insertString("\n",{updatePosition:!1}),this.requestRender()}},shift:{return(t){var e,n;null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.insertString("\n"),this.requestRender(),t.preventDefault()},tab(t){var e,n;null!==(e=this.responder)&&void 0!==e&&e.canDecreaseNestingLevel()&&(null===(n=this.responder)||void 0===n||n.decreaseNestingLevel(),this.requestRender(),t.preventDefault())},left(t){if(this.selectionIsInCursorTarget())return t.preventDefault(),this.expandSelectionInDirection("backward")},right(t){if(this.selectionIsInCursorTarget())return t.preventDefault(),this.expandSelectionInDirection("forward")}},alt:{backspace(t){var e;return this.setInputSummary({preferDocument:!1}),null===(e=this.delegate)||void 0===e?void 0:e.inputControllerWillPerformTyping()}},meta:{backspace(t){var e;return this.setInputSummary({preferDocument:!1}),null===(e=this.delegate)||void 0===e?void 0:e.inputControllerWillPerformTyping()}}}),ar.proxyMethod("responder?.getSelectedRange"),ar.proxyMethod("responder?.setSelectedRange"),ar.proxyMethod("responder?.expandSelectionInDirection"),ar.proxyMethod("responder?.selectionIsInCursorTarget"),ar.proxyMethod("responder?.selectionIsExpanded");const sr=t=>{var e;return null===(e=t.type)||void 0===e||null===(e=e.match(/\/(\w+)$/))||void 0===e?void 0:e[1]},lr=!(null===(nr=" ".codePointAt)||void 0===nr||!nr.call(" ",0)),ur=function(t){if(t.key&&lr&&t.key.codePointAt(0)===t.keyCode)return t.key;{let e;if(null===t.which?e=t.keyCode:0!==t.which&&0!==t.charCode&&(e=t.charCode),null!=e&&"escape"!==ir[e])return it.fromCodepoints([e]).toString()}},cr=function(t){const e=t.clipboardData;if(e){if(e.types.includes("text/html")){for(const t of e.types){const n=/^CorePasteboardFlavorType/.test(t),r=/^dyn\./.test(t)&&e.getData(t);if(n||r)return!0}return!1}{const t=e.types.includes("com.apple.webarchive"),n=e.types.includes("com.apple.flat-rtfd");return t||n}}};class dr extends ${constructor(t){super(...arguments),this.inputController=t,this.responder=this.inputController.responder,this.delegate=this.inputController.delegate,this.inputSummary=this.inputController.inputSummary,this.data={}}start(t){var e,n;(this.data.start=t,this.isSignificant())&&("keypress"===this.inputSummary.eventName&&this.inputSummary.textAdded&&(null===(n=this.responder)||void 0===n||n.deleteInDirection("left")),this.selectionIsExpanded()||(this.insertPlaceholder(),this.requestRender()),this.range=null===(e=this.responder)||void 0===e?void 0:e.getSelectedRange())}update(t){if(this.data.update=t,this.isSignificant()){const t=this.selectPlaceholder();t&&(this.forgetPlaceholder(),this.range=t)}}end(t){return this.data.end=t,this.isSignificant()?(this.forgetPlaceholder(),this.canApplyToDocument()?(this.setInputSummary({preferDocument:!0,didInput:!1}),null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.setSelectedRange(this.range),null===(r=this.responder)||void 0===r||r.insertString(this.data.end),null===(i=this.responder)||void 0===i?void 0:i.setSelectedRange(this.range[0]+this.data.end.length)):null!=this.data.start||null!=this.data.update?(this.requestReparse(),this.inputController.reset()):void 0):this.inputController.reset();var e,n,r,i}getEndData(){return this.data.end}isEnded(){return null!=this.getEndData()}isSignificant(){return!rr.composesExistingText||this.inputSummary.didInput}canApplyToDocument(){var t,e;return 0===(null===(t=this.data.start)||void 0===t?void 0:t.length)&&(null===(e=this.data.end)||void 0===e?void 0:e.length)>0&&this.range}}dr.proxyMethod("inputController.setInputSummary"),dr.proxyMethod("inputController.requestRender"),dr.proxyMethod("inputController.requestReparse"),dr.proxyMethod("responder?.selectionIsExpanded"),dr.proxyMethod("responder?.insertPlaceholder"),dr.proxyMethod("responder?.selectPlaceholder"),dr.proxyMethod("responder?.forgetPlaceholder");class hr extends er{constructor(){super(...arguments),this.render=this.render.bind(this)}elementDidMutate(){return this.scheduledRender?this.composing?null===(t=this.delegate)||void 0===t||null===(e=t.inputControllerDidAllowUnhandledInput)||void 0===e?void 0:e.call(t):void 0:this.reparse();var t,e}scheduleRender(){return this.scheduledRender?this.scheduledRender:this.scheduledRender=requestAnimationFrame(this.render)}render(){var t,e;cancelAnimationFrame(this.scheduledRender),this.scheduledRender=null,this.composing||null===(e=this.delegate)||void 0===e||e.render(),null===(t=this.afterRender)||void 0===t||t.call(this),this.afterRender=null}reparse(){var t;return null===(t=this.delegate)||void 0===t?void 0:t.reparse()}insertString(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;return null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertString(e,n)}))}toggleAttributeIfSupported(t){var e;if(wt().includes(t))return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.toggleCurrentAttribute(t)}))}activateAttributeIfSupported(t,e){var n;if(wt().includes(t))return null===(n=this.delegate)||void 0===n||n.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var n;return null===(n=this.responder)||void 0===n?void 0:n.setCurrentAttribute(t,e)}))}deleteInDirection(t){var e;(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{recordUndoEntry:!0}).recordUndoEntry&&(null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping());const n=()=>{var e;return null===(e=this.responder)||void 0===e?void 0:e.deleteInDirection(t)},r=this.getTargetDOMRange({minLength:this.composing?1:2});return r?this.withTargetDOMRange(r,n):n()}withTargetDOMRange(t,e){var n;return"function"==typeof t&&(e=t,t=this.getTargetDOMRange()),t?null===(n=this.responder)||void 0===n?void 0:n.withTargetDOMRange(t,e.bind(this)):(Ht.reset(),e.call(this))}getTargetDOMRange(){var t,e;let n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{minLength:0}).minLength;const r=null===(t=(e=this.event).getTargetRanges)||void 0===t?void 0:t.call(e);if(r&&r.length){const t=fr(r[0]);if(0===n||t.toString().length>=n)return t}}withEvent(t,e){let n;this.event=t;try{n=e.call(this)}finally{this.event=null}return n}}Ae(hr,"events",{keydown(t){if(Mt(t)){var e;const n=vr(t);null!==(e=this.delegate)&&void 0!==e&&e.inputControllerDidReceiveKeyboardCommand(n)&&t.preventDefault()}else{let e=t.key;t.altKey&&(e+="+Alt"),t.shiftKey&&(e+="+Shift");const n=this.constructor.keys[e];if(n)return this.withEvent(t,n)}},paste(t){var e;let n;const r=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("URL");return gr(t)?(t.preventDefault(),this.attachFiles(t.clipboardData.files)):br(t)?(t.preventDefault(),n={type:"text/plain",string:t.clipboardData.getData("text/plain")},null===(i=this.delegate)||void 0===i||i.inputControllerWillPaste(n),null===(o=this.responder)||void 0===o||o.insertString(n.string),this.render(),null===(a=this.delegate)||void 0===a?void 0:a.inputControllerDidPaste(n)):r?(t.preventDefault(),n={type:"text/html",html:this.createLinkHTML(r)},null===(s=this.delegate)||void 0===s||s.inputControllerWillPaste(n),null===(l=this.responder)||void 0===l||l.insertHTML(n.html),this.render(),null===(u=this.delegate)||void 0===u?void 0:u.inputControllerDidPaste(n)):void 0;var i,o,a,s,l,u},beforeinput(t){const e=this.constructor.inputTypes[t.inputType];e&&(this.withEvent(t,e),this.scheduleRender())},input(t){Ht.reset()},dragstart(t){var e,n;null!==(e=this.responder)&&void 0!==e&&e.selectionContainsAttachments()&&(t.dataTransfer.setData("application/x-trix-dragging",!0),this.dragging={range:null===(n=this.responder)||void 0===n?void 0:n.getSelectedRange(),point:yr(t)})},dragenter(t){pr(t)&&t.preventDefault()},dragover(t){if(this.dragging){t.preventDefault();const n=yr(t);var e;if(!Rt(n,this.dragging.point))return this.dragging.point=n,null===(e=this.responder)||void 0===e?void 0:e.setLocationRangeFromPointRange(n)}else pr(t)&&t.preventDefault()},drop(t){var e,n;if(this.dragging)return t.preventDefault(),null===(e=this.delegate)||void 0===e||e.inputControllerWillMoveText(),null===(n=this.responder)||void 0===n||n.moveTextFromRange(this.dragging.range),this.dragging=null,this.scheduleRender();if(pr(t)){var r;t.preventDefault();const e=yr(t);return null===(r=this.responder)||void 0===r||r.setLocationRangeFromPointRange(e),this.attachFiles(t.dataTransfer.files)}},dragend(){var t;this.dragging&&(null===(t=this.responder)||void 0===t||t.setSelectedRange(this.dragging.range),this.dragging=null)},compositionend(t){this.composing&&(this.composing=!1,m.recentAndroid||this.scheduleRender())}}),Ae(hr,"keys",{ArrowLeft(){var t,e;if(null!==(t=this.responder)&&void 0!==t&&t.shouldManageMovingCursorInDirection("backward"))return this.event.preventDefault(),null===(e=this.responder)||void 0===e?void 0:e.moveCursorInDirection("backward")},ArrowRight(){var t,e;if(null!==(t=this.responder)&&void 0!==t&&t.shouldManageMovingCursorInDirection("forward"))return this.event.preventDefault(),null===(e=this.responder)||void 0===e?void 0:e.moveCursorInDirection("forward")},Backspace(){var t,e,n;if(null!==(t=this.responder)&&void 0!==t&&t.shouldManageDeletingInDirection("backward"))return this.event.preventDefault(),null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.deleteInDirection("backward"),this.render()},Tab(){var t,e;if(null!==(t=this.responder)&&void 0!==t&&t.canIncreaseNestingLevel())return this.event.preventDefault(),null===(e=this.responder)||void 0===e||e.increaseNestingLevel(),this.render()},"Tab+Shift"(){var t,e;if(null!==(t=this.responder)&&void 0!==t&&t.canDecreaseNestingLevel())return this.event.preventDefault(),null===(e=this.responder)||void 0===e||e.decreaseNestingLevel(),this.render()}}),Ae(hr,"inputTypes",{deleteByComposition(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteByCut(){return this.deleteInDirection("backward")},deleteByDrag(){return this.event.preventDefault(),this.withTargetDOMRange((function(){var t;this.deleteByDragRange=null===(t=this.responder)||void 0===t?void 0:t.getSelectedRange()}))},deleteCompositionText(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteContent(){return this.deleteInDirection("backward")},deleteContentBackward(){return this.deleteInDirection("backward")},deleteContentForward(){return this.deleteInDirection("forward")},deleteEntireSoftLine(){return this.deleteInDirection("forward")},deleteHardLineBackward(){return this.deleteInDirection("backward")},deleteHardLineForward(){return this.deleteInDirection("forward")},deleteSoftLineBackward(){return this.deleteInDirection("backward")},deleteSoftLineForward(){return this.deleteInDirection("forward")},deleteWordBackward(){return this.deleteInDirection("backward")},deleteWordForward(){return this.deleteInDirection("forward")},formatBackColor(){return this.activateAttributeIfSupported("backgroundColor",this.event.data)},formatBold(){return this.toggleAttributeIfSupported("bold")},formatFontColor(){return this.activateAttributeIfSupported("color",this.event.data)},formatFontName(){return this.activateAttributeIfSupported("font",this.event.data)},formatIndent(){var t;if(null!==(t=this.responder)&&void 0!==t&&t.canIncreaseNestingLevel())return this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.increaseNestingLevel()}))},formatItalic(){return this.toggleAttributeIfSupported("italic")},formatJustifyCenter(){return this.toggleAttributeIfSupported("justifyCenter")},formatJustifyFull(){return this.toggleAttributeIfSupported("justifyFull")},formatJustifyLeft(){return this.toggleAttributeIfSupported("justifyLeft")},formatJustifyRight(){return this.toggleAttributeIfSupported("justifyRight")},formatOutdent(){var t;if(null!==(t=this.responder)&&void 0!==t&&t.canDecreaseNestingLevel())return this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.decreaseNestingLevel()}))},formatRemove(){this.withTargetDOMRange((function(){for(const n in null===(t=this.responder)||void 0===t?void 0:t.getCurrentAttributes()){var t,e;null===(e=this.responder)||void 0===e||e.removeCurrentAttribute(n)}}))},formatSetBlockTextDirection(){return this.activateAttributeIfSupported("blockDir",this.event.data)},formatSetInlineTextDirection(){return this.activateAttributeIfSupported("textDir",this.event.data)},formatStrikeThrough(){return this.toggleAttributeIfSupported("strike")},formatSubscript(){return this.toggleAttributeIfSupported("sub")},formatSuperscript(){return this.toggleAttributeIfSupported("sup")},formatUnderline(){return this.toggleAttributeIfSupported("underline")},historyRedo(){var t;return null===(t=this.delegate)||void 0===t?void 0:t.inputControllerWillPerformRedo()},historyUndo(){var t;return null===(t=this.delegate)||void 0===t?void 0:t.inputControllerWillPerformUndo()},insertCompositionText(){return this.composing=!0,this.insertString(this.event.data)},insertFromComposition(){return this.composing=!1,this.insertString(this.event.data)},insertFromDrop(){const t=this.deleteByDragRange;var e;if(t)return this.deleteByDragRange=null,null===(e=this.delegate)||void 0===e||e.inputControllerWillMoveText(),this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.moveTextFromRange(t)}))},insertFromPaste(){const t=this.event.dataTransfer,e={dataTransfer:t},n=t.getData("URL"),r=t.getData("text/html");if(n){var i;let r;this.event.preventDefault(),e.type="text/html";const o=t.getData("public.url-name");r=o?Jt(o).trim():n,e.html=this.createLinkHTML(n,r),null===(i=this.delegate)||void 0===i||i.inputControllerWillPaste(e),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertHTML(e.html)})),this.afterRender=()=>{var t;return null===(t=this.delegate)||void 0===t?void 0:t.inputControllerDidPaste(e)}}else if(Tt(t)){var o;e.type="text/plain",e.string=t.getData("text/plain"),null===(o=this.delegate)||void 0===o||o.inputControllerWillPaste(e),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertString(e.string)})),this.afterRender=()=>{var t;return null===(t=this.delegate)||void 0===t?void 0:t.inputControllerDidPaste(e)}}else if(mr(this.event)){var a;e.type="File",e.file=t.files[0],null===(a=this.delegate)||void 0===a||a.inputControllerWillPaste(e),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertFile(e.file)})),this.afterRender=()=>{var t;return null===(t=this.delegate)||void 0===t?void 0:t.inputControllerDidPaste(e)}}else if(r){var s;this.event.preventDefault(),e.type="text/html",e.html=r,null===(s=this.delegate)||void 0===s||s.inputControllerWillPaste(e),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertHTML(e.html)})),this.afterRender=()=>{var t;return null===(t=this.delegate)||void 0===t?void 0:t.inputControllerDidPaste(e)}}},insertFromYank(){return this.insertString(this.event.data)},insertLineBreak(){return this.insertString("\n")},insertLink(){return this.activateAttributeIfSupported("href",this.event.data)},insertOrderedList(){return this.toggleAttributeIfSupported("number")},insertParagraph(){var t;return null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertLineBreak()}))},insertReplacementText(){const t=this.event.dataTransfer.getData("text/plain"),e=this.event.getTargetRanges()[0];this.withTargetDOMRange(e,(()=>{this.insertString(t,{updatePosition:!1})}))},insertText(){var t;return this.insertString(this.event.data||(null===(t=this.event.dataTransfer)||void 0===t?void 0:t.getData("text/plain")))},insertTranspose(){return this.insertString(this.event.data)},insertUnorderedList(){return this.toggleAttributeIfSupported("bullet")}});const fr=function(t){const e=document.createRange();return e.setStart(t.startContainer,t.startOffset),e.setEnd(t.endContainer,t.endOffset),e},pr=t=>{var e;return Array.from((null===(e=t.dataTransfer)||void 0===e?void 0:e.types)||[]).includes("Files")},mr=t=>{var e;return(null===(e=t.dataTransfer.files)||void 0===e?void 0:e[0])&&!gr(t)&&!(t=>{let e=t.dataTransfer;return e.types.includes("Files")&&e.types.includes("text/html")&&e.getData("text/html").includes("urn:schemas-microsoft-com:office:office")})(t)},gr=function(t){const e=t.clipboardData;if(e)return Array.from(e.types).filter((t=>t.match(/file/i))).length===e.types.length&&e.files.length>=1},br=function(t){const e=t.clipboardData;if(e)return e.types.includes("text/plain")&&1===e.types.length},vr=function(t){const e=[];return t.altKey&&e.push("alt"),t.shiftKey&&e.push("shift"),e.push(t.key),e},yr=t=>({x:t.clientX,y:t.clientY}),wr="[data-trix-attribute]",kr="[data-trix-action]",_r="".concat(wr,", ").concat(kr),Or="[data-trix-dialog]",xr="".concat(Or,"[data-trix-active]"),Er="".concat(Or," [data-trix-method]"),jr="".concat(Or," [data-trix-input]"),Sr=(t,e)=>(e||(e=Cr(t)),t.querySelector("[data-trix-input][name='".concat(e,"']"))),Pr=t=>t.getAttribute("data-trix-action"),Cr=t=>t.getAttribute("data-trix-attribute")||t.getAttribute("data-trix-dialog-attribute");class Tr extends ${constructor(t){super(t),this.didClickActionButton=this.didClickActionButton.bind(this),this.didClickAttributeButton=this.didClickAttributeButton.bind(this),this.didClickDialogButton=this.didClickDialogButton.bind(this),this.didKeyDownDialogInput=this.didKeyDownDialogInput.bind(this),this.element=t,this.attributes={},this.actions={},this.resetDialogInputs(),x("mousedown",{onElement:this.element,matchingSelector:kr,withCallback:this.didClickActionButton}),x("mousedown",{onElement:this.element,matchingSelector:wr,withCallback:this.didClickAttributeButton}),x("click",{onElement:this.element,matchingSelector:_r,preventDefault:!0}),x("click",{onElement:this.element,matchingSelector:Er,withCallback:this.didClickDialogButton}),x("keydown",{onElement:this.element,matchingSelector:jr,withCallback:this.didKeyDownDialogInput})}didClickActionButton(t,e){var n;null===(n=this.delegate)||void 0===n||n.toolbarDidClickButton(),t.preventDefault();const r=Pr(e);return this.getDialog(r)?this.toggleDialog(r):null===(i=this.delegate)||void 0===i?void 0:i.toolbarDidInvokeAction(r,e);var i}didClickAttributeButton(t,e){var n;null===(n=this.delegate)||void 0===n||n.toolbarDidClickButton(),t.preventDefault();const r=Cr(e);var i;return this.getDialog(r)?this.toggleDialog(r):null===(i=this.delegate)||void 0===i||i.toolbarDidToggleAttribute(r),this.refreshAttributeButtons()}didClickDialogButton(t,e){const n=S(e,{matchingSelector:Or});return this[e.getAttribute("data-trix-method")].call(this,n)}didKeyDownDialogInput(t,e){if(13===t.keyCode){t.preventDefault();const n=e.getAttribute("name"),r=this.getDialog(n);this.setAttribute(r)}if(27===t.keyCode)return t.preventDefault(),this.hideDialog()}updateActions(t){return this.actions=t,this.refreshActionButtons()}refreshActionButtons(){return this.eachActionButton(((t,e)=>{t.disabled=!1===this.actions[e]}))}eachActionButton(t){return Array.from(this.element.querySelectorAll(kr)).map((e=>t(e,Pr(e))))}updateAttributes(t){return this.attributes=t,this.refreshAttributeButtons()}refreshAttributeButtons(){return this.eachAttributeButton(((t,e)=>(t.disabled=!1===this.attributes[e],this.attributes[e]||this.dialogIsVisible(e)?(t.setAttribute("data-trix-active",""),t.classList.add("trix-active")):(t.removeAttribute("data-trix-active"),t.classList.remove("trix-active")))))}eachAttributeButton(t){return Array.from(this.element.querySelectorAll(wr)).map((e=>t(e,Cr(e))))}applyKeyboardCommand(t){const e=JSON.stringify(t.sort());for(const n of Array.from(this.element.querySelectorAll("[data-trix-key]"))){const t=n.getAttribute("data-trix-key").split("+");if(JSON.stringify(t.sort())===e)return E("mousedown",{onElement:n}),!0}return!1}dialogIsVisible(t){const e=this.getDialog(t);if(e)return e.hasAttribute("data-trix-active")}toggleDialog(t){return this.dialogIsVisible(t)?this.hideDialog():this.showDialog(t)}showDialog(t){var e,n;this.hideDialog(),null===(e=this.delegate)||void 0===e||e.toolbarWillShowDialog();const r=this.getDialog(t);r.setAttribute("data-trix-active",""),r.classList.add("trix-active"),Array.from(r.querySelectorAll("input[disabled]")).forEach((t=>{t.removeAttribute("disabled")}));const i=Cr(r);if(i){const e=Sr(r,t);e&&(e.value=this.attributes[i]||"",e.select())}return null===(n=this.delegate)||void 0===n?void 0:n.toolbarDidShowDialog(t)}setAttribute(t){const e=Cr(t),n=Sr(t,e);return n.willValidate&&!n.checkValidity()?(n.setAttribute("data-trix-validate",""),n.classList.add("trix-validate"),n.focus()):(null===(r=this.delegate)||void 0===r||r.toolbarDidUpdateAttribute(e,n.value),this.hideDialog());var r}removeAttribute(t){var e;const n=Cr(t);return null===(e=this.delegate)||void 0===e||e.toolbarDidRemoveAttribute(n),this.hideDialog()}hideDialog(){const t=this.element.querySelector(xr);var e;if(t)return t.removeAttribute("data-trix-active"),t.classList.remove("trix-active"),this.resetDialogInputs(),null===(e=this.delegate)||void 0===e?void 0:e.toolbarDidHideDialog((t=>t.getAttribute("data-trix-dialog"))(t))}resetDialogInputs(){Array.from(this.element.querySelectorAll(jr)).forEach((t=>{t.setAttribute("disabled","disabled"),t.removeAttribute("data-trix-validate"),t.classList.remove("trix-validate")}))}getDialog(t){return this.element.querySelector("[data-trix-dialog=".concat(t,"]"))}}class Mr extends qn{constructor(t){let e=t.editorElement,n=t.document,r=t.html;super(...arguments),this.editorElement=e,this.selectionManager=new Ln(this.editorElement),this.selectionManager.delegate=this,this.composition=new kn,this.composition.delegate=this,this.attachmentManager=new yn(this.composition.getAttachments()),this.attachmentManager.delegate=this,this.inputController=2===Y.getLevel()?new hr(this.editorElement):new ar(this.editorElement),this.inputController.delegate=this,this.inputController.responder=this.composition,this.compositionController=new Vn(this.editorElement,this.composition),this.compositionController.delegate=this,this.toolbarController=new Tr(this.editorElement.toolbarElement),this.toolbarController.delegate=this,this.editor=new Pn(this.composition,this.selectionManager,this.editorElement),n?this.editor.loadDocument(n):this.editor.loadHTML(r)}registerSelectionManager(){return Ht.registerSelectionManager(this.selectionManager)}unregisterSelectionManager(){return Ht.unregisterSelectionManager(this.selectionManager)}render(){return this.compositionController.render()}reparse(){return this.composition.replaceHTML(this.editorElement.innerHTML)}compositionDidChangeDocument(t){if(this.notifyEditorElement("document-change"),!this.handlingInput)return this.render()}compositionDidChangeCurrentAttributes(t){return this.currentAttributes=t,this.toolbarController.updateAttributes(this.currentAttributes),this.updateCurrentActions(),this.notifyEditorElement("attributes-change",{attributes:this.currentAttributes})}compositionDidPerformInsertionAtRange(t){this.pasting&&(this.pastedRange=t)}compositionShouldAcceptFile(t){return this.notifyEditorElement("file-accept",{file:t})}compositionDidAddAttachment(t){const e=this.attachmentManager.manageAttachment(t);return this.notifyEditorElement("attachment-add",{attachment:e})}compositionDidEditAttachment(t){this.compositionController.rerenderViewForObject(t);const e=this.attachmentManager.manageAttachment(t);return this.notifyEditorElement("attachment-edit",{attachment:e}),this.notifyEditorElement("change")}compositionDidChangeAttachmentPreviewURL(t){return this.compositionController.invalidateViewForObject(t),this.notifyEditorElement("change")}compositionDidRemoveAttachment(t){const e=this.attachmentManager.unmanageAttachment(t);return this.notifyEditorElement("attachment-remove",{attachment:e})}compositionDidStartEditingAttachment(t,e){return this.attachmentLocationRange=this.composition.document.getLocationRangeOfAttachment(t),this.compositionController.installAttachmentEditorForAttachment(t,e),this.selectionManager.setLocationRange(this.attachmentLocationRange)}compositionDidStopEditingAttachment(t){this.compositionController.uninstallAttachmentEditor(),this.attachmentLocationRange=null}compositionDidRequestChangingSelectionToLocationRange(t){if(!this.loadingSnapshot||this.isFocused())return this.requestedLocationRange=t,this.compositionRevisionWhenLocationRangeRequested=this.composition.revision,this.handlingInput?void 0:this.render()}compositionWillLoadSnapshot(){this.loadingSnapshot=!0}compositionDidLoadSnapshot(){this.compositionController.refreshViewCache(),this.render(),this.loadingSnapshot=!1}getSelectionManager(){return this.selectionManager}attachmentManagerDidRequestRemovalOfAttachment(t){return this.removeAttachment(t)}compositionControllerWillSyncDocumentView(){return this.inputController.editorWillSyncDocumentView(),this.selectionManager.lock(),this.selectionManager.clearSelection()}compositionControllerDidSyncDocumentView(){return this.inputController.editorDidSyncDocumentView(),this.selectionManager.unlock(),this.updateCurrentActions(),this.notifyEditorElement("sync")}compositionControllerDidRender(){this.requestedLocationRange&&(this.compositionRevisionWhenLocationRangeRequested===this.composition.revision&&this.selectionManager.setLocationRange(this.requestedLocationRange),this.requestedLocationRange=null,this.compositionRevisionWhenLocationRangeRequested=null),this.renderedCompositionRevision!==this.composition.revision&&(this.runEditorFilters(),this.composition.updateCurrentAttributes(),this.notifyEditorElement("render")),this.renderedCompositionRevision=this.composition.revision}compositionControllerDidFocus(){return this.isFocusedInvisibly()&&this.setLocationRange({index:0,offset:0}),this.toolbarController.hideDialog(),this.notifyEditorElement("focus")}compositionControllerDidBlur(){return this.notifyEditorElement("blur")}compositionControllerDidSelectAttachment(t,e){return this.toolbarController.hideDialog(),this.composition.editAttachment(t,e)}compositionControllerDidRequestDeselectingAttachment(t){const e=this.attachmentLocationRange||this.composition.document.getLocationRangeOfAttachment(t);return this.selectionManager.setLocationRange(e[1])}compositionControllerWillUpdateAttachment(t){return this.editor.recordUndoEntry("Edit Attachment",{context:t.id,consolidatable:!0})}compositionControllerDidRequestRemovalOfAttachment(t){return this.removeAttachment(t)}inputControllerWillHandleInput(){this.handlingInput=!0,this.requestedRender=!1}inputControllerDidRequestRender(){this.requestedRender=!0}inputControllerDidHandleInput(){if(this.handlingInput=!1,this.requestedRender)return this.requestedRender=!1,this.render()}inputControllerDidAllowUnhandledInput(){return this.notifyEditorElement("change")}inputControllerDidRequestReparse(){return this.reparse()}inputControllerWillPerformTyping(){return this.recordTypingUndoEntry()}inputControllerWillPerformFormatting(t){return this.recordFormattingUndoEntry(t)}inputControllerWillCutText(){return this.editor.recordUndoEntry("Cut")}inputControllerWillPaste(t){return this.editor.recordUndoEntry("Paste"),this.pasting=!0,this.notifyEditorElement("before-paste",{paste:t})}inputControllerDidPaste(t){return t.range=this.pastedRange,this.pastedRange=null,this.pasting=null,this.notifyEditorElement("paste",{paste:t})}inputControllerWillMoveText(){return this.editor.recordUndoEntry("Move")}inputControllerWillAttachFiles(){return this.editor.recordUndoEntry("Drop Files")}inputControllerWillPerformUndo(){return this.editor.undo()}inputControllerWillPerformRedo(){return this.editor.redo()}inputControllerDidReceiveKeyboardCommand(t){return this.toolbarController.applyKeyboardCommand(t)}inputControllerDidStartDrag(){this.locationRangeBeforeDrag=this.selectionManager.getLocationRange()}inputControllerDidReceiveDragOverPoint(t){return this.selectionManager.setLocationRangeFromPointRange(t)}inputControllerDidCancelDrag(){this.selectionManager.setLocationRange(this.locationRangeBeforeDrag),this.locationRangeBeforeDrag=null}locationRangeDidChange(t){return this.composition.updateCurrentAttributes(),this.updateCurrentActions(),this.attachmentLocationRange&&!Wt(this.attachmentLocationRange,t)&&this.composition.stopEditingAttachment(),this.notifyEditorElement("selection-change")}toolbarDidClickButton(){if(!this.getLocationRange())return this.setLocationRange({index:0,offset:0})}toolbarDidInvokeAction(t,e){return this.invokeAction(t,e)}toolbarDidToggleAttribute(t){if(this.recordFormattingUndoEntry(t),this.composition.toggleCurrentAttribute(t),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarDidUpdateAttribute(t,e){if(this.recordFormattingUndoEntry(t),this.composition.setCurrentAttribute(t,e),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarDidRemoveAttribute(t){if(this.recordFormattingUndoEntry(t),this.composition.removeCurrentAttribute(t),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarWillShowDialog(t){return this.composition.expandSelectionForEditing(),this.freezeSelection()}toolbarDidShowDialog(t){return this.notifyEditorElement("toolbar-dialog-show",{dialogName:t})}toolbarDidHideDialog(t){return this.thawSelection(),this.editorElement.focus(),this.notifyEditorElement("toolbar-dialog-hide",{dialogName:t})}freezeSelection(){if(!this.selectionFrozen)return this.selectionManager.lock(),this.composition.freezeSelection(),this.selectionFrozen=!0,this.render()}thawSelection(){if(this.selectionFrozen)return this.composition.thawSelection(),this.selectionManager.unlock(),this.selectionFrozen=!1,this.render()}canInvokeAction(t){return!!this.actionIsExternal(t)||!(null===(e=this.actions[t])||void 0===e||null===(e=e.test)||void 0===e||!e.call(this));var e}invokeAction(t,e){return this.actionIsExternal(t)?this.notifyEditorElement("action-invoke",{actionName:t,invokingElement:e}):null===(n=this.actions[t])||void 0===n||null===(n=n.perform)||void 0===n?void 0:n.call(this);var n}actionIsExternal(t){return/^x-./.test(t)}getCurrentActions(){const t={};for(const e in this.actions)t[e]=this.canInvokeAction(e);return t}updateCurrentActions(){const t=this.getCurrentActions();if(!Rt(t,this.currentActions))return this.currentActions=t,this.toolbarController.updateActions(this.currentActions),this.notifyEditorElement("actions-change",{actions:this.currentActions})}runEditorFilters(){let t=this.composition.getSnapshot();if(Array.from(this.editor.filters).forEach((e=>{const n=t,r=n.document,i=n.selectedRange;t=e.call(this.editor,t)||{},t.document||(t.document=r),t.selectedRange||(t.selectedRange=i)})),e=t,n=this.composition.getSnapshot(),!Wt(e.selectedRange,n.selectedRange)||!e.document.isEqualTo(n.document))return this.composition.loadSnapshot(t);var e,n}updateInputElement(){const t=function(t,e){const n=gn[e];if(n)return n(t);throw new Error("unknown content type: ".concat(e))}(this.compositionController.getSerializableElement(),"text/html");return this.editorElement.setInputElementValue(t)}notifyEditorElement(t,e){switch(t){case"document-change":this.documentChangedSinceLastRender=!0;break;case"render":this.documentChangedSinceLastRender&&(this.documentChangedSinceLastRender=!1,this.notifyEditorElement("change"));break;case"change":case"attachment-add":case"attachment-edit":case"attachment-remove":this.updateInputElement()}return this.editorElement.notify(t,e)}removeAttachment(t){return this.editor.recordUndoEntry("Delete Attachment"),this.composition.removeAttachment(t),this.render()}recordFormattingUndoEntry(t){const e=kt(t),n=this.selectionManager.getLocationRange();if(e||!It(n))return this.editor.recordUndoEntry("Formatting",{context:this.getUndoContext(),consolidatable:!0})}recordTypingUndoEntry(){return this.editor.recordUndoEntry("Typing",{context:this.getUndoContext(this.currentAttributes),consolidatable:!0})}getUndoContext(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return[this.getLocationContext(),this.getTimeContext(),...Array.from(e)]}getLocationContext(){const t=this.selectionManager.getLocationRange();return It(t)?t[0].index:t}getTimeContext(){return J.interval>0?Math.floor((new Date).getTime()/J.interval):0}isFocused(){var t;return this.editorElement===(null===(t=this.editorElement.ownerDocument)||void 0===t?void 0:t.activeElement)}isFocusedInvisibly(){return this.isFocused()&&!this.getLocationRange()}get actions(){return this.constructor.actions}}Ae(Mr,"actions",{undo:{test(){return this.editor.canUndo()},perform(){return this.editor.undo()}},redo:{test(){return this.editor.canRedo()},perform(){return this.editor.redo()}},link:{test(){return this.editor.canActivateAttribute("href")}},increaseNestingLevel:{test(){return this.editor.canIncreaseNestingLevel()},perform(){return this.editor.increaseNestingLevel()&&this.render()}},decreaseNestingLevel:{test(){return this.editor.canDecreaseNestingLevel()},perform(){return this.editor.decreaseNestingLevel()&&this.render()}},attachFiles:{test:()=>!0,perform(){return Y.pickFiles(this.editor.insertFiles)}}}),Mr.proxyMethod("getSelectionManager().setLocationRange"),Mr.proxyMethod("getSelectionManager().getLocationRange");var Ar=Object.freeze({__proto__:null,AttachmentEditorController:Bn,CompositionController:Vn,Controller:qn,EditorController:Mr,InputController:er,Level0InputController:ar,Level2InputController:hr,ToolbarController:Tr}),Dr=Object.freeze({__proto__:null,MutationObserver:Xn,SelectionChangeObserver:Ft}),Rr=Object.freeze({__proto__:null,FileVerificationOperation:Kn,ImagePreloadOperation:Re});Et("trix-toolbar","%t {\n  display: block;\n}\n\n%t {\n  white-space: nowrap;\n}\n\n%t [data-trix-dialog] {\n  display: none;\n}\n\n%t [data-trix-dialog][data-trix-active] {\n  display: block;\n}\n\n%t [data-trix-dialog] [data-trix-validate]:invalid {\n  background-color: #ffdddd;\n}");class Lr extends HTMLElement{connectedCallback(){""===this.innerHTML&&(this.innerHTML=X.getDefaultHTML())}}let Ir=0;const Wr=function(t){return zr(t),Nr(t)},zr=function(t){var e,n;if(null!==(e=(n=document).queryCommandSupported)&&void 0!==e&&e.call(n,"enableObjectResizing"))return document.execCommand("enableObjectResizing",!1,!1),x("mscontrolselect",{onElement:t,preventDefault:!0})},Nr=function(t){var e,n;if(null!==(e=(n=document).queryCommandSupported)&&void 0!==e&&e.call(n,"DefaultParagraphSeparator")){const t=d.default.tagName;if(["div","p"].includes(t))return document.execCommand("DefaultParagraphSeparator",!1,t)}},Fr=m.forcesObjectResizing?{display:"inline",width:"auto"}:{display:"inline-block",width:"1px"};Et("trix-editor","%t {\n    display: block;\n}\n\n%t:empty:not(:focus)::before {\n    content: attr(placeholder);\n    color: graytext;\n    cursor: text;\n    pointer-events: none;\n    white-space: pre-line;\n}\n\n%t a[contenteditable=false] {\n    cursor: text;\n}\n\n%t img {\n    max-width: 100%;\n    height: auto;\n}\n\n%t ".concat(u," figcaption textarea {\n    resize: none;\n}\n\n%t ").concat(u," figcaption textarea.trix-autoresize-clone {\n    position: absolute;\n    left: -9999px;\n    max-height: 0px;\n}\n\n%t ").concat(u," figcaption[data-trix-placeholder]:empty::before {\n    content: attr(data-trix-placeholder);\n    color: graytext;\n}\n\n%t [data-trix-cursor-target] {\n    display: ").concat(Fr.display," !important;\n    width: ").concat(Fr.width," !important;\n    padding: 0 !important;\n    margin: 0 !important;\n    border: none !important;\n}\n\n%t [data-trix-cursor-target=left] {\n    vertical-align: top !important;\n    margin-left: -1px !important;\n}\n\n%t [data-trix-cursor-target=right] {\n    vertical-align: bottom !important;\n    margin-right: -1px !important;\n}"));class Hr extends HTMLElement{get trixId(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++Ir),this.trixId)}get labels(){const t=[];this.id&&this.ownerDocument&&t.push(...Array.from(this.ownerDocument.querySelectorAll("label[for='".concat(this.id,"']"))||[]));const e=S(this,{matchingSelector:"label"});return e&&[this,null].includes(e.control)&&t.push(e),t}get toolbarElement(){var t;if(this.hasAttribute("toolbar"))return null===(t=this.ownerDocument)||void 0===t?void 0:t.getElementById(this.getAttribute("toolbar"));if(this.parentNode){const t="trix-toolbar-".concat(this.trixId);this.setAttribute("toolbar",t);const e=R("trix-toolbar",{id:t});return this.parentNode.insertBefore(e,this),e}}get form(){var t;return null===(t=this.inputElement)||void 0===t?void 0:t.form}get inputElement(){var t;if(this.hasAttribute("input"))return null===(t=this.ownerDocument)||void 0===t?void 0:t.getElementById(this.getAttribute("input"));if(this.parentNode){const t="trix-input-".concat(this.trixId);this.setAttribute("input",t);const e=R("input",{type:"hidden",id:t});return this.parentNode.insertBefore(e,this.nextElementSibling),e}}get editor(){var t;return null===(t=this.editorController)||void 0===t?void 0:t.editor}get name(){var t;return null===(t=this.inputElement)||void 0===t?void 0:t.name}get value(){var t;return null===(t=this.inputElement)||void 0===t?void 0:t.value}set value(t){var e;this.defaultValue=t,null===(e=this.editor)||void 0===e||e.loadHTML(this.defaultValue)}notify(t,e){if(this.editorController)return E("trix-".concat(t),{onElement:this,attributes:e})}setInputElementValue(t){this.inputElement&&(this.inputElement.value=t)}connectedCallback(){this.hasAttribute("data-trix-internal")||(function(t){if(!t.hasAttribute("contenteditable"))t.setAttribute("contenteditable",""),function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.times=1,x(t,e)}("focus",{onElement:t,withCallback:()=>Wr(t)})}(this),function(t){t.hasAttribute("role")||t.setAttribute("role","textbox")}(this),function(t){if(t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby"))return;const e=function(){const e=Array.from(t.labels).map((e=>{if(!e.contains(t))return e.textContent})).filter((t=>t)).join(" ");return e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")};e(),x("focus",{onElement:t,withCallback:e})}(this),this.editorController||(E("trix-before-initialize",{onElement:this}),this.editorController=new Mr({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame((()=>E("trix-initialize",{onElement:this})))),this.editorController.registerSelectionManager(),this.registerResetListener(),this.registerClickListener(),function(t){!document.querySelector(":focus")&&t.hasAttribute("autofocus")&&document.querySelector("[autofocus]")===t&&t.focus()}(this))}disconnectedCallback(){var t;return null===(t=this.editorController)||void 0===t||t.unregisterSelectionManager(),this.unregisterResetListener(),this.unregisterClickListener()}registerResetListener(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)}unregisterResetListener(){return window.removeEventListener("reset",this.resetListener,!1)}registerClickListener(){return this.clickListener=this.clickBubbled.bind(this),window.addEventListener("click",this.clickListener,!1)}unregisterClickListener(){return window.removeEventListener("click",this.clickListener,!1)}resetBubbled(t){if(!t.defaultPrevented&&t.target===this.form)return this.reset()}clickBubbled(t){if(t.defaultPrevented)return;if(this.contains(t.target))return;const e=S(t.target,{matchingSelector:"label"});return e&&Array.from(this.labels).includes(e)?this.focus():void 0}reset(){this.value=this.defaultValue}}const Br={VERSION:"2.1.4",config:K,core:bn,models:In,views:Wn,controllers:Ar,observers:Dr,operations:Rr,elements:Object.freeze({__proto__:null,TrixEditorElement:Hr,TrixToolbarElement:Lr}),filters:Object.freeze({__proto__:null,Filter:En,attachmentGalleryFilter:jn})};Object.assign(Br,In),window.Trix=Br,setTimeout((function(){customElements.get("trix-toolbar")||customElements.define("trix-toolbar",Lr),customElements.get("trix-editor")||customElements.define("trix-editor",Hr)}),0)},function(t,e,n){var r={"./account_photos_controller.js":101,"./admin/api_connections_controller.js":102,"./admin/base_reports_controller.js":103,"./admin/identification_resource_data_controller.js":104,"./algolia/first_level_organizations_controller.js":105,"./algolia/search_unit_organizations_controller.js":106,"./asks_controller.js":107,"./conditional_logic_sidebar_controller.js":108,"./conditional_logics_controller.js":109,"./desktop/actor/account/employee/employees_controller.js":276,"./desktop/actor/account/information/base_filter_controller.js":40,"./desktop/actor/account/information/data_types_controller.js":110,"./desktop/actor/account/information/environment_filter_controller.js":111,"./desktop/actor/account/information/informations_controller.js":112,"./desktop/actor/account/information/resource_filter_controller.js":113,"./desktop/actor/account/information/search_controller.js":114,"./desktop/actor/account/information/type_filter_controller.js":115,"./desktop/actor/account/information/utils.js":18,"./desktop/actor/action/reallocations/data_controller.js":277,"./desktop/actor/action/reallocations/launcher_controller.js":116,"./desktop/actor/actors_controller.js":117,"./desktop/actor/analyse/boardees_integration_reports/files_controller.js":118,"./desktop/actor/analyse/form_resources/base_filter_controller.js":42,"./desktop/actor/analyse/form_resources/data_controller.js":119,"./desktop/actor/analyse/form_resources/data_types_controller.js":120,"./desktop/actor/analyse/form_resources/forms/data_controller.js":121,"./desktop/actor/analyse/form_resources/forms/sidebar_controller.js":122,"./desktop/actor/analyse/form_resources/resource_filter_controller.js":123,"./desktop/actor/analyse/form_resources/search_controller.js":124,"./desktop/actor/analyse/form_resources/type_filter_controller.js":125,"./desktop/actor/analyse/form_resources/utils.js":20,"./desktop/actor/banner_reposition_controller.js":126,"./desktop/actor/dialog_controller.js":127,"./desktop/actor/draggable_charts_controller.js":128,"./desktop/actor/filter/base_controller.js":24,"./desktop/actor/filter/search_controller.js":129,"./desktop/actor/library/templates/analyse_controller.js":130,"./desktop/actor/library/templates/data_controller.js":131,"./desktop/actor/navigations_controller.js":132,"./desktop/actor/overview_reports_controller.js":133,"./desktop/actor/pages_controller.js":134,"./desktop/actor/reports_controller.js":135,"./desktop/actor/savings_controller.js":136,"./desktop/actor/track/shift_dates_controller.js":137,"./desktop/hr/chart_controller.js":138,"./desktop/hr/chart_filters_controller.js":43,"./desktop/hr/charts/delayer_controller.js":142,"./desktop/hr/charts/email_feedbacks_controller.js":143,"./desktop/hr/charts/email_feedbacks_title_links_controller.js":144,"./desktop/hr/charts/level_organizations_controller.js":145,"./desktop/hr/charts/modal_controller.js":146,"./desktop/hr/charts/sidebar_controller.js":147,"./desktop/hr/charts/surveys_controller.js":148,"./desktop/hr/charts/title_links_controller.js":149,"./desktop/hr/charts/track_sidebars_controller.js":150,"./desktop/hr/filters/advanced_filter_controller.js":151,"./desktop/hr/filters/base_filter_controller.js":26,"./desktop/hr/filters/date_filter_controller.js":152,"./desktop/hr/filters/delayer_controller.js":70,"./desktop/hr/filters/mobility_filter_controller.js":153,"./desktop/hr/filters/organization_filter_controller.js":154,"./desktop/hr/filters/scope_filter_controller.js":155,"./desktop/hr/filters/smart_filters_controller.js":156,"./desktop/hr/filters/status_filter_controller.js":157,"./desktop/hr/filters/utils.js":8,"./desktop/hr/flows_controller.js":158,"./desktop/hr/modal_controller.js":159,"./desktop/hr/modal_with_template_controller.js":160,"./desktop/hr/sidebars_controller.js":161,"./desktop/hr/tabs/action_lists_controller.js":162,"./desktop/hr/tabs/actions_controller.js":163,"./desktop/hr/tabs/administrative_progresses_controller.js":164,"./desktop/hr/tabs/fillable_pdfs_controller.js":165,"./desktop/hr/tabs_controller.js":166,"./desktop/hr/tracks_controller.js":41,"./desktop/mailing_recipients_controller.js":167,"./desktop/meeting_dates_controller.js":168,"./desktop/mobility_assignments_controller.js":169,"./desktop/offboardee/actions_controller.js":170,"./desktop/onboardee/actions_controller.js":171,"./desktop/onboardee/calendars_controller.js":172,"./desktop/onboardee/esign_controller.js":173,"./desktop/onboardee/linked_questions_controller.js":71,"./desktop/onboardee/modal_controller.js":174,"./desktop/onboardee/modal_v2_controller.js":175,"./desktop/onboardee/perform_action_controller.js":176,"./desktop/onboardee/quiz_controller.js":177,"./desktop/onboardee/ranking_questions_controller.js":178,"./desktop/settings/email_templates/dropzones_controller.js":179,"./desktop/settings/mailing_resources/delivery_channels_controller.js":180,"./desktop/settings/mailing_resources/nested_attachments_controller.js":181,"./desktop/settings/mailing_resources/preview_secured_page_controller.js":182,"./desktop/settings/mailing_resources/update_title_controller.js":183,"./desktop/settings/mailing_resources/update_url_controller.js":184,"./desktop/settings/mailing_resources/update_variables_breakdown_controller.js":185,"./desktop/settings/question_resources/answer_types_controller.js":186,"./desktop/settings/question_resources/nested_answers_controller.js":187,"./desktop/settings/resources/answer_types_controller.js":188,"./desktop/settings/resources/base_resources_controller.js":35,"./desktop/settings/resources/creation_sidebar_controller.js":189,"./desktop/settings/resources/mass_creation_controller.js":190,"./desktop/settings/resources/resources_controller.js":191,"./desktop/settings/resources/resources_duplications_controller.js":192,"./desktop/settings/resources/resources_environment_filter_controller.js":193,"./desktop/settings/resources/resources_mobility_filter_controller.js":194,"./desktop/settings/resources/resources_search_controller.js":195,"./desktop/settings/resources/resources_template_filter_controller.js":196,"./desktop/settings/resources/resources_type_filter_controller.js":197,"./desktop/settings/resources/training_link_modal_controller.js":198,"./desktop/settings/resources/utils.js":17,"./desktop/settings/templates/dropzone_controller.js":199,"./desktop/settings/templates/editions_controller.js":200,"./desktop/settings/templates/feedbacks_controller.js":201,"./desktop/settings/templates/mailing_reverse_inherits_controller.js":202,"./desktop/settings/templates/modal_controller.js":33,"./desktop/settings/templates/quiz_controller.js":203,"./desktop/settings/templates/quiz_linked_question_controller.js":204,"./desktop/settings/templates/surveys_controller.js":205,"./desktop/settings/workflow_resources/extensions_controller.js":206,"./desktop/settings/workflow_resources/help_text_controller.js":207,"./email_templates_controller.js":208,"./form_approvals_controller.js":209,"./form_followup_controller.js":210,"./form_resources_controller.js":6,"./handovers_controller.js":211,"./input_validations_controller.js":212,"./logic_actions_controller.js":214,"./logic_conditions_controller.js":46,"./mfa_settings_controller.js":215,"./mobile/action_blocks_controller.js":216,"./mobile/back_links_controller.js":217,"./mobile/infinite_actions_controller.js":218,"./mobile/navbar_links_controller.js":219,"./mobile/pwa_prompt_controller.js":220,"./mobile/slide_actions_controller.js":221,"./mobile/validation_screens_controller.js":222,"./otp_validations_controller.js":223,"./paperwork_controller.js":224,"./paperwork_resource_modals_controller.js":225,"./paperwork_resources_controller.js":226,"./password_toggle_controller.js":227,"./passwords_controller.js":228,"./profile_photos_controller.js":229,"./report/ajax_controller.js":230,"./section_resources_controller.js":231,"./swals/mobile/swal_track_ending_controller.js":232,"./swals/swal_controller.js":36,"./swals/swal_handover_controller.js":233,"./swals/swal_survey_controller.js":234,"./swals/swal_track_ending_controller.js":235,"./tabulator_bulk_selection_controller.js":236,"./tabulator_column_handler_controller.js":237,"./timeout_controller.js":238,"./tracking_controller.js":239,"./user_onboarding_controller.js":240,"./utils/blank_states_controller.js":241,"./utils/cable_subscriptions_controller.js":242,"./utils/character_counters_controller.js":243,"./utils/clipboards_controller.js":244,"./utils/collapses_controller.js":245,"./utils/content_editable_escapes_controller.js":246,"./utils/content_loader_controller.js":247,"./utils/counters_controller.js":248,"./utils/css_tooltips_controller.js":249,"./utils/datepickers_controller.js":250,"./utils/dragndrop_sorting_controller.js":251,"./utils/dropdown_controller.js":252,"./utils/dropzones_controller.js":253,"./utils/file_downloaders_controller.js":254,"./utils/flatpickr_controller.js":255,"./utils/mini_colors_controller.js":256,"./utils/orderables_controller.js":257,"./utils/password_toggle_controller.js":258,"./utils/phone_number_verifier_controller.js":259,"./utils/popovers_controller.js":261,"./utils/progresses_controller.js":262,"./utils/quick_views_controller.js":263,"./utils/radio_button_contents_controller.js":264,"./utils/redactors_controller.js":265,"./utils/search_bars_controller.js":72,"./utils/selecting_elements_controller.js":266,"./utils/selectize_employees_controller.js":267,"./utils/selectize_signers_controller.js":268,"./utils/selectizes_controller.js":44,"./utils/selectizes_paperworks_controller.js":269,"./utils/simili_file_inputs_controller.js":270,"./utils/tabs_controller.js":271,"./utils/tiny_editor_controller.js":272,"./utils/uploaded_file_previewers_controller.js":273,"./version_switch_controller.js":274};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=283},function(t,e,n){var r={"./desktop/actor/action_list_component/action_list_component_controller.js":285,"./desktop/actor/filter/date_component/date_component_controller.js":286,"./desktop/actor/filter/employee_name_component/employee_name_component_controller.js":287,"./desktop/actor/filter/environment_component/environment_component_controller.js":288,"./desktop/actor/filter/form_status_component/form_status_component_controller.js":289,"./desktop/actor/filter/mobility_component/mobility_component_controller.js":290,"./desktop/actor/filter/organization_component/organization_component_controller.js":291,"./desktop/actor/filter/resource_component/resource_component_controller.js":292,"./desktop/actor/filter/role_component/role_component_controller.js":293,"./desktop/actor/filter/search_component/search_component_controller.js":294,"./desktop/actor/filter/switch_component/switch_component_controller.js":295,"./desktop/actor/filter/template_component/template_component_controller.js":296,"./desktop/actor/meeting/calendar_component_controller.js":297,"./desktop/actor/navbar/navbar_component_controller.js":75,"./desktop/actor/navigation_buttons_component/navigation_buttons_component_controller.js":298,"./desktop/actor/navigation_switchs_component/navigation_switchs_component_controller.js":299,"./desktop/actor/notification_handler_component/notification_handler_component_controller.js":300,"./desktop/actor/reporting/other_connector_reports_component/other_connector_reports_component_controller.js":301,"./desktop/form/conditional_logics_controller.js":302,"./desktop/form/logic_actions_controller.js":303,"./desktop/form/logic_conditions_controller.js":304,"./desktop/form/logic_targets_controller.js":305,"./desktop/form/preview/form_resource_controller.js":306,"./desktop/form/preview/iterations_controller.js":307,"./desktop/form/sections_controller.js":308,"./desktop/library/environment/search_bar_controller.js":309,"./desktop/library/environment/tags_controller.js":310,"./desktop/onboarding/resource_search_bar_controller.js":311,"./desktop/settings/selectize_environments_component/selectize_environments_component_controller.js":312,"./desktop/settings/selectize_mobility_component/selectize_mobility_component_controller.js":313,"./desktop/utils/dropzone_component/dropzone_component_controller.js":314,"./desktop/utils/select_component/select_component_controller.js":315};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=284},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,i,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t=h(this.urlValue,{content_type:"start"});this.fetchActions(t,this.replaceList.bind(this))}},{key:"addNextActions",value:function(){var t=this.paginationTarget.querySelector("a[rel='next']");if(f(t,this.listTarget.dataset.status)){this.setListAsLoading();var e=h(this.urlValue,{page:new URL(t.href,"https://exemple.com").searchParams.get("page"),content_type:"next"});this.fetchActions(e,this.appendActions.bind(this))}}},{key:"fetchActions",value:function(t,e){var n=this;fetch(t,{headers:{"Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(t){e(t),n.updateCounters.bind(n)(t.count)})).catch((function(t){console.log(t)}))}},{key:"replaceList",value:function(t){0==t.count?this.replaceByEmptyList():(this.listTarget.outerHTML=t.content,this.observer=new MutationObserver(this.listenListMutation.bind(this)),this.observer.observe(this.listTarget,{childList:!0}))}},{key:"replaceByEmptyList",value:function(){var t=this.listTarget.parentNode.parentNode;t.hasAttribute("track")&&t.remove(),this.updateCounters(0)}},{key:"appendActions",value:function(t){var e=this.listTarget;e.querySelector("div[data-tag='placeholder']").remove(),e.insertAdjacentHTML("beforeend",t.content),this.paginationTarget.innerHTML=t.pagination,e.dataset.status="ready",this.removeNextButton()}},{key:"setListAsLoading",value:function(){var t=this.listTarget;this.nextButtonTarget.classList.add("d-none"),this.nextButtonTarget.classList.remove("d-flex"),t.dataset.status="loading",function(t){t.insertAdjacentHTML("beforeend",'<div data-tag="placeholder" class="ph-item border-none no-padding"><div class="ph-picture margin-bottom-20px" style="height: 80px; border-radius: 6px;"></div></div>')}(t)}},{key:"removeNextButton",value:function(){this.hasNextButtonTarget&&!this.paginationTarget.querySelector("a[rel='next']")?(this.nextButtonTarget.classList.add("d-none"),this.nextButtonTarget.classList.remove("d-flex")):this.hasNextButtonTarget&&(this.nextButtonTarget.classList.add("d-flex"),this.nextButtonTarget.classList.remove("d-none"))}},{key:"listenListMutation",value:function(t){var e=this;0===this.listTarget.childElementCount?this.replaceByEmptyList():t.forEach((function(t){var n=t.type,i=r(t.removedNodes).filter((function(t){return t.hasAttribute("action")}));"childList"===n&&i.length>=1&&e.addReplacementAction()}))}},{key:"addReplacementAction",value:function(){if(f(this.paginationTarget.querySelector("a[rel='next']"),this.listTarget.dataset.status)){this.setListAsLoading();var t=this.paginationTarget.querySelector(".current"),e=t?parseInt(t.innerText,10):1,n=h(this.urlValue,{page:e,content_type:"replacement"});this.fetchActions(n,this.appendActions.bind(this))}else{var r=parseInt(this.listTarget.dataset.actionsCount);this.updateCounters(r-1)}}},{key:"updateCounters",value:function(t){this.listTarget.dataset.actionsCount=t,function(){var t=document.querySelectorAll("div[data-utils--counters-count-value]");if(t.length>0){var e=document.querySelectorAll("[data-actions-count]"),n=0;e.forEach((function(t){var e=parseInt(t.getAttribute("data-actions-count"));isNaN(e)||(n+=e)})),t.forEach((function(t){t.dataset["utils-CountersCountValue"]=n.toString()}))}}(),this.resetBlankState()}},{key:"resetBlankState",value:function(){var t=document.getElementById("main"),e=this.application.getControllerForElementAndIdentifier(t,"utils--blank-states");e&&(e.disconnect(),e.connect())}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(1).Controller);function h(t,e){var n=new URL(t,"https://exemple.com");return Object.keys(e).forEach((function(t){n.searchParams.set(t,e[t])})),"".concat(n.pathname).concat(n.search)}function f(t,e){return t&&"ready"==e}u(d,"targets",["list","nextButton","pagination","blankState"]),u(d,"values",{url:String})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return p}));var r=n(24),i=n(10),o=n(66),a=n(11),s=n(28);function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(h,t);var e,n,r,d=c(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return e=h,(n=[{key:"connect",value:function(){Object(o.a)(),Object(i.a)(this),this._setFiltersWithLocalStorage()}},{key:"filter",value:function(t){var e;document.getElementById("definedDaysFrom").value="",document.getElementById("definedDaysTo").value="",t.target===this.followingDaysTarget?e=m(31,new Date):t.target===this.previousDaysTarget&&(e=m(31,new Date((new Date).setDate((new Date).getDate()-30)))),this._applyDates(e)}},{key:"toggleCalendar",value:function(){this.fromTarget.click()}},{key:"setRange",value:function(){if(""!=this.fromTarget.value&&""!=this.toTarget.value){this.definedDaysTarget.checked=!0;var t=m((new Date(this.toTarget.dataset.dateFormat)-new Date(this.fromTarget.dataset.dateFormat))/864e5+1,new Date(this.fromTarget.dataset.dateFormat));this._applyDates(t)}}},{key:"reset",value:function(){[this.followingDaysTarget,this.previousDaysTarget,this.definedDaysTarget].forEach((function(t){return t.checked=!1})),[this.fromTarget,this.toTarget].forEach((function(t){return t.value=""})),localStorage.setItem("".concat(this.pageValue,"_").concat(this.filterTypeValue,"s"),JSON.stringify([])),this._applyFilter(),this.closeMenu(),Object(s.b)(this.selectTarget)}},{key:"_applyDates",value:function(t){localStorage.setItem("".concat(this.pageValue,"_").concat(this.filterTypeValue,"s"),JSON.stringify(t)),this._applyFilter(),Object(s.a)(this.selectTarget)}},{key:"_setFiltersWithLocalStorage",value:function(){var t=JSON.parse(localStorage.getItem("".concat(this.pageValue,"_").concat(this.filterTypeValue,"s")))||[];0!=t.length&&(Object(s.a)(this.selectTarget),31==t.length?(new Date(t[0]).getMonth()==(new Date).getMonth()?this.followingDaysTarget:this.previousDaysTarget).checked=!0:(this.definedDaysTarget.checked=!0,this.fromTarget.value=moment(new Date(t[0])).format("DD-MM-YYYY"),this.toTarget.value=moment(new Date(t[t.length-1])).format("DD-MM-YYYY")))}},{key:"_applyFilter",value:function(){var t="apply".concat(g(this.pageValue),"Filters");a[t]()}}])&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(r.BaseController);function m(t,e){for(var n=e.setDate(e.getDate()),r=[],i=0;i<t;i++){var o=moment(new Date(n)).format("YYYY-MM-DD");r.push(o),n+=864e5}return r}h(p,"targets",["select","menu","followingDays","previousDays","definedDays","from","to"]),h(p,"values",{page:String,filterType:String});var g=function(t){return t.replace(/(?:^|_)\S/g,(function(t){return t.toUpperCase()})).replace("_","")}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,n&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(24).BaseController);s(u,"targets",["select","menu","queryInput"]),s(u,"values",{page:String,filterType:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,n&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(24).BaseController);s(u,"targets",["select","menu","queryInput"]),s(u,"values",{page:String,filterType:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,n&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(24).BaseController);s(u,"targets",["select","menu"]),s(u,"values",{page:String,filterType:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,n&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(24).BaseController);s(u,"targets",["select","menu"]),s(u,"values",{page:String,filterType:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,n&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(24).BaseController);s(u,"targets",["select","menu","queryInput"]),s(u,"values",{page:String,filterType:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,n&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(24).BaseController);s(u,"targets",["select","menu"]),s(u,"values",{page:String,filterType:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,n&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(24).BaseController);s(u,"targets",["select","menu"]),s(u,"values",{page:String,filterType:String})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(1),i=n(11);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t=localStorage.getItem("".concat(this.pageValue,"_query"));this.inputTarget.value=t,this.toggleIcon()}},{key:"query",value:function(){var t=this;window.clearTimeout(this.searchTimer),this.searchTimer=window.setTimeout((function(){t.toggleIcon(),t.updateFilter(),t.applyFilter()}),parseInt(500))}},{key:"cleanQuery",value:function(){this.inputTarget.value="",this.query()}},{key:"updateFilter",value:function(){localStorage.setItem("".concat(this.pageValue,"_query"),this.inputTarget.value)}},{key:"toggleIcon",value:function(){this.inputTarget.value.length>0?this.cleanQueryTarget.classList.remove("invisible"):this.cleanQueryTarget.classList.add("invisible")}},{key:"applyFilter",value:function(){var t="apply".concat(h(this.pageValue),"Filters");i[t]()}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);u(d,"targets",["input","cleanQuery"]),u(d,"values",{page:String});var h=function(t){return t.replace(/(?:^|_)\S/g,(function(t){return t.toUpperCase()})).replace("_","")}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(1),i=n(11);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){localStorage.getItem("my_forms_switch")?this.switchTarget.checked="true"==localStorage.getItem("my_forms_switch"):this.switchTarget.checked=!0}},{key:"updateScope",value:function(){this.updateFilter(),this.applyFilter()}},{key:"updateFilter",value:function(){localStorage.setItem("my_forms_switch",this.switchTarget.checked)}},{key:"applyFilter",value:function(){i.applyFormsFilters()}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);u(d,"targets",["switch"]),u(d,"values",{url:String,controller:String})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,n&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(24).BaseController);s(u,"targets",["select","menu","queryInput"]),s(u,"values",{page:String,filterType:String})},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return b}));var r=n(1),i=n(2),o=n(48),a=n.n(o),s=n(47),l=n(38);function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var p,m,g,b=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(f,e);var n,r,o,h=d(f);function f(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),h.apply(this,arguments)}return n=f,(r=[{key:"connect",value:function(){var t=this;this.initializeCalendar(),setTimeout((function(){return t.showMeeting(t.meetingIdValue)}),300)}},{key:"initializeCalendar",value:function(){new i.a(this.element,this.config()).render()}},{key:"renderEvent",value:function(t){t.el.id="meeting-"+t.event.id,t.el.classList.add("event-meeting")}},{key:"clickOnEvent",value:function(t){var e=t.el.id.match(/\d+/)[0];this.showMeeting(e)}},{key:"showMeeting",value:function(e){if(e){var n=this.callbackUrlValue.replace("meeting_id",e);t.ajax({url:n,type:"GET"})}}},{key:"config",value:function(){var t=this;return{locales:a.a,locale:this.localeValue,plugins:[l.d,s.a],header:{left:"timeGridDay,timeGridWeek,dayGridMonth,listCustom",center:"title",right:"prev,next "},events:this.eventUrlValue,eventLimit:4,eventLimitClick:"day",defaultDate:this.startValue,allDaySlot:!1,slotDuration:"00:30:00",minTime:"07:00:00",maxTime:"20:00:00",nowIndicator:!0,defaultView:"dayGridMonth",eventRender:function(e){t.renderEvent(e)},eventClick:function(e){t.clickOnEvent(e)}}}}])&&u(n.prototype,r),o&&u(n,o),Object.defineProperty(n,"prototype",{writable:!1}),f}(r.Controller);p=b,m="values",g={eventUrl:String,callbackUrl:String,locale:String,start:String,meetingId:String},(m=f(m))in p?Object.defineProperty(p,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[m]=g}.call(this,n(4))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var l,u,c,d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"load",value:function(t){var e=document.getElementById("".concat(t.currentTarget.dataset.type,"-placeholder")).innerHTML;this.fill(e),this.updateActiveButton(t),this.updateSwitch(t),this.call(t.currentTarget.dataset.url),this.updateUrl(t)}},{key:"call",value:function(t){var e=this;fetch(t,{headers:{Accept:"application/json"}}).then((function(t){return t.json()})).then((function(t){e.fill(t.content),""===t.content?Stimulus.controllers.find((function(t){return"utils--blank-states"==t.identifier})).showBlankState():Stimulus.controllers.find((function(t){return"utils--blank-states"==t.identifier})).connect()})).catch((function(t){console.log(t)}))}},{key:"fill",value:function(t){document.getElementById("main").innerHTML=t}},{key:"updateActiveButton",value:function(t){this.buttonTargets.forEach((function(t){return t.classList.remove("active")})),t.currentTarget.classList.add("active")}},{key:"updateUrl",value:function(t){window.history.pushState({},"",t.currentTarget.dataset.url.replace(/\/\d+/,""))}},{key:"updateSwitch",value:function(t){var e=document.querySelector("[data-desktop--actor--navigation-switchs-component--navigation-switchs-component-target='input']"),n=t.currentTarget.dataset.url;e.dataset.checkedUrl=h(e.dataset.checkedUrl,n),e.dataset.uncheckedUrl=h(e.dataset.uncheckedUrl,n)}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);function h(t,e){var n=new URL("http://localhost".concat(t)),r=new URL("http://localhost".concat(e));return n.searchParams.forEach((function(t,e){r.searchParams.set(e,t)})),r.pathname+r.search}l=d,c=["button"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return m}));var h,f,p,m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(c,t);var e,n,o,a=u(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"load",value:function(t){var e=this.inputTarget,n=document.getElementById("".concat(e.dataset.type,"-placeholder")).innerHTML,r=e.checked?e.dataset.uncheckedUrl:e.dataset.checkedUrl;this.fill(n),this.updateNavigatorButtons(),this.updateGlobalCounter(),this.updateNewTodoButton(),this.call(r),this.updateUrl(r),this.resetBlankState()}},{key:"call",value:function(t){var e=this;fetch(t,{headers:{Accept:"application/json"}}).then((function(t){return t.json()})).then((function(t){e.fill(t.content)})).catch((function(t){console.log(t)}))}},{key:"fill",value:function(t){document.getElementById("main").innerHTML=t}},{key:"updateUrl",value:function(t){window.history.pushState({},"",t.replace(/\/\d+/,""))}},{key:"updateNavigatorButtons",value:function(){var t=i(this.inputTarget.checked?["done","ongoing"]:["ongoing","done"],2),e=t[0],n=t[1];document.querySelectorAll("[data-desktop--actor--navigation-buttons-component--navigation-buttons-component-target=button]").forEach((function(t){t.dataset.url=t.dataset.url.replace(n,e)}))}},{key:"updateGlobalCounter",value:function(){var t=this.inputTarget.checked?"done":"ongoing",e=document.querySelector("div[counter-wrapper]");e.dataset.listType=t,r(e.children).forEach((function(t){t.dataset["utils-CountersCountValue"]=0}))}},{key:"updateNewTodoButton",value:function(){var t=document.getElementById("add-action-button"),e=this.inputTarget.checked?"done":"ongoing";t&&"done"==e?t.classList.add("invisible"):t&&t.classList.remove("invisible")}},{key:"resetBlankState",value:function(){var t=document.getElementById("main"),e=this.application.getControllerForElementAndIdentifier(t,"utils--blank-states");e&&(e.disconnect(),e.connect())}}])&&s(e.prototype,n),o&&s(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(n(1).Controller);h=m,p=["label","input"],(f=d(f="targets"))in h?Object.defineProperty(h,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[f]=p},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,n=[{key:"connect",value:function(){var t=this;App["actions-counter-".concat(this.channelTokenValue)]=App.cable.subscriptions.create({channel:"NotificationHandlerChannel",channel_token:this.channelTokenValue},{connected:function(){t.updateCounter()},received:function(e){localStorage.setItem("late_track_ids",e.late_track_ids),localStorage.setItem("last_notification_update",new Date),t.updateCounter()}})}},{key:"decrement",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.current_late_track_ids(),r=n.indexOf(t.toString());r<0||(e?n=n.filter((function(e){return e!=t.toString()})):n.splice(r,1),localStorage.setItem("late_track_ids",n),this.updateCounter())}},{key:"increment",value:function(t){var e=this.current_late_track_ids();e.push(t),localStorage.setItem("late_track_ids",e),this.updateCounter()}},{key:"updateCounter",value:function(){this.counterTarget.innerText=this.current_late_track_ids().length,this.handleDisplay()}},{key:"current_late_track_ids",value:function(){var t=localStorage.getItem("late_track_ids");return t?t.split(",").filter((function(t){return parseInt(t)})):[]}},{key:"handleDisplay",value:function(){+this.counterTarget.innerText<=0?this.counterTarget.classList.add("d-none"):this.counterTarget.classList.remove("d-none")}}],n&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller);s(u,"targets",["counter"]),s(u,"values",{channelToken:String})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(1),i=n(5);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var c,d,h,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"loadDocumentsByDate",value:function(t){var e=t.currentTarget.dataset.date,n=document.getElementById("date-".concat(e)),r=n.querySelector("#documents");r?r.classList.toggle("hidden"):(n.innerHTML=document.getElementById("placeholder").innerHTML,fetch(this.urlValue,{method:"POST",headers:{"X-CSRF-Token":Object(i.a)(),"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({date:e})}).then((function(t){return t.json()})).then((function(t){console.log(t),n.innerHTML=t.content})).catch((function(t){console.log(t)})))}},{key:"loadDocumentCsv",value:function(t){var e=t.currentTarget.dataset.documentId,n=document.getElementById("document-".concat(e));n.querySelector("#csv")||(n.innerHTML=document.getElementById("placeholder").innerHTML,fetch(this.urlValue,{method:"POST",headers:{"X-CSRF-Token":Object(i.a)(),"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({document_id:e})}).then((function(t){return t.json()})).then((function(t){n.innerHTML=t.content})).catch((function(t){console.log(t)})))}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);c=f,d="values",h={date:String,url:String},(d=u(d))in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h},function(t,e,n){"use strict";function r(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return d}));var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,i,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){this.initConditionObservers(),setTimeout(this.check(),50)}},{key:"initConditionObservers",value:function(){var t=new MutationObserver(this.updateMet.bind(this));this.conditionTargets.forEach((function(e){t.observe(e,{attributes:!0})}))}},{key:"updateMet",value:function(t){var e,n=r(t);try{for(n.s();!(e=n.n()).done;)"data-met"==e.value.attributeName&&this.check()}catch(i){n.e(i)}finally{n.f()}}},{key:"check",value:function(){"or_relation"==this.conditionRelationValue?this.element.dataset.met=this.conditionTargets.some((function(t){return"true"==t.dataset.met})):this.element.dataset.met=this.conditionTargets.every((function(t){return"true"==t.dataset.met}))}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(1).Controller);u(d,"values",{conditionRelation:String}),u(d,"targets",["condition","action"])},function(t,e,n){"use strict";function r(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return h}));var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(d,t);var e,n,i,u=s(d);function d(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c(l(t=u.call.apply(u,[this].concat(n))),"id",t.element.id.replace("logic_action_","")),c(l(t),"field",document.querySelector(".paperwork-list [data-field-id='".concat(t.element.dataset.fieldId,"']"))),c(l(t),"logic",t.element.closest('[data-controller="desktop--form--conditional-logics"]')),c(l(t),"operator",t.element.dataset.operator),t}return e=d,(n=[{key:"connect",value:function(){this.initLogicObserver(),this.execute()}},{key:"disconnect",value:function(){this.undo()}},{key:"initLogicObserver",value:function(){new MutationObserver(this.waitingMet.bind(this)).observe(this.logic,{attributes:!0})}},{key:"waitingMet",value:function(t){var e,n=r(t);try{for(n.s();!(e=n.n()).done;)"data-met"==e.value.attributeName&&this.execute()}catch(i){n.e(i)}finally{n.f()}}},{key:"execute",value:function(){this.addTargetControllerToField(),"true"==this.logic.dataset.met?this.do():this.undo()}},{key:"do",value:function(){switch(this.operator){case"show":return this.markToShow(!0);case"hide":return this.markToShow(!1);default:return!1}}},{key:"undo",value:function(){this.field.removeAttribute("data-logic-action-show-".concat(this.id))}},{key:"markToShow",value:function(t){this.field.setAttribute("data-logic-action-show-".concat(this.id),t)}},{key:"addTargetControllerToField",value:function(){var t=this.field.dataset.controller||"";t.includes("desktop--form--logic-targets")||(this.field.dataset.controller="".concat(t," desktop--form--logic-targets"))}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),d}(n(1).Controller)},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}(this,n)}}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return u}));var u=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(c,t);var e,n,s,u=o(c);function c(){var t,e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t=u.call.apply(u,[this].concat(o)),e=a(t),n="fieldInput",r=document.querySelector("[data-input-field-id='".concat(t.element.dataset.fieldId,"']")),(n=l(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,t}return e=c,(n=[{key:"connect",value:function(){var t=this;this.fieldInput.addEventListener("change",(function(){t.check()})),this.check()}},{key:"check",value:function(){this.element.dataset.met=!!this.isMet()}},{key:"isMet",value:function(){var t=this.fieldInput.value;switch(this.element.dataset.operator){case"is":return t==this.conditionValue()&&""!=t;case"is_not":return t!=this.conditionValue()&&""!=t;case"is_empty":return!t;case"is_included":return this.conditionCollection().includes(t);case"is_not_empty":return!!t;default:return!1}}},{key:"conditionValue",value:function(){return this.element.dataset.value}},{key:"conditionCollection",value:function(){return JSON.parse(this.element.dataset.collection)}}])&&r(e.prototype,n),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),c}(n(1).Controller)},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}(this,n)}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return h}));var h=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(f,e);var n,o,c,h=l(f);function f(){var t,e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=h.call.apply(h,[this].concat(o)),e=u(t),r=!0,(n=d(n="enableSetHidden"))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,t}return n=f,(o=[{key:"connect",value:function(){this.initializeObserver(),this.updateVisibilty()}},{key:"disconnect",value:function(){this.enableSetHidden=!1}},{key:"initializeObserver",value:function(){new MutationObserver(this.observeAttributes.bind(this)).observe(this.element,{attributes:!0})}},{key:"observeAttributes",value:function(t){var e,n=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(t);try{for(n.s();!(e=n.n()).done;)e.value.attributeName.includes("data-logic-action-show")&&this.updateVisibilty()}catch(r){n.e(r)}finally{n.f()}}},{key:"updateVisibilty",value:function(){var t=Object.entries(this.element.dataset).filter((function(t){var e=r(t,2),n=e[0];return e[1],n.includes("logicActionShow")}));0==t.length?this.setInitialState():this.isMustBeShow(t)?this.show():this.hide()}},{key:"isMustBeShow",value:function(t){return t.some((function(t){var e=r(t,2);return e[0],"true"==e[1]}))}},{key:"setInitialState",value:function(){this.element.hasAttribute("initial-hidden")?this.hide():this.show()}},{key:"show",value:function(){this.element.removeAttribute("hidden"),this.conditionalHidden=!1,this.launchCall()}},{key:"hide",value:function(){this.element.setAttribute("hidden",""),this.conditionalHidden=!0,this.launchCall()}},{key:"launchCall",value:function(){var t=this;!this.element.hasAttribute("preview-paperwork")&&this.enableSetHidden&&(this.delayedCall&&window.clearTimeout(this.delayedCall),this.delayedCall=window.setTimeout((function(){t.callToSetHidden()}),300))}},{key:"callToSetHidden",value:function(){var e=this.element.dataset.conditionallyHiddenUrl;t.ajax({url:e,type:"PATCH",dataType:"html",data:{conditional_hidden:this.conditionalHidden},error:function(t){console.log("ERROR",t)}})}}])&&a(n.prototype,o),c&&a(n,c),Object.defineProperty(n,"prototype",{writable:!1}),f}(n(1).Controller)}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){var e=this,n=this.hasformResourceValue?this.formResourceValue:JSON.parse(localStorage.getItem("form_".concat(this.idValue)));t.ajax({url:this.urlValue,type:"POST",dataType:"html",data:{local_storage:n},error:function(t){console.log("ERROR",t)},success:function(t){e.element.outerHTML=t}})}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,u="values",c={id:String,formResource:Object,url:String},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return p}));var r=n(1),i=n(25);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}(this,n)}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(d,t);var e,n,r,a=u(d);function d(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return h(c(t=a.call.apply(a,[this].concat(n))),"initialFieldIds",o(t.element.querySelectorAll('[iteration-group="0"] [data-field-id]')).map((function(t){return t.dataset.fieldId}))),h(c(t),"firstBlock",t.groupTargets[0]),h(c(t),"iterationNumber",0),t}return e=d,(n=[{key:"add",value:function(){this.iterationNumber+=1;var t=this.buildNewIterationBlock();this.listTarget.insertAdjacentHTML("beforeEnd",t),this.duplicateConditionalLogics()}},{key:"iterationBlock",value:function(){return this.groupTargets.find((function(t){return 0==t.getAttribute("iteration-group")}))}},{key:"duplicateConditionalLogics",value:function(){var t=this;document.querySelectorAll("[data-controller='desktop--form--conditional-logics']").forEach((function(e){var n=o(e.querySelectorAll("div[data-field-id]")).map((function(t){return t.dataset.fieldId})),r=o(e.querySelectorAll('div[data-desktop--form--conditional-logics-target="condition"][data-field-id]')).map((function(t){return t.dataset.fieldId})),i=o(e.querySelectorAll('div[data-desktop--form--conditional-logics-target="action"][data-field-id]')).map((function(t){return t.dataset.fieldId}));t.isInternal(n)||t.isExternalByCondition(r)?t.duplicateConditionalLogic(e):t.isExternalByAction(i)&&t.duplicateLogicActions(e)}))}},{key:"isInternal",value:function(t){var e=this;return t.every((function(t){return e.initialFieldIds.includes(t)}))}},{key:"isExternalByCondition",value:function(t){var e=this;return t.some((function(t){return e.initialFieldIds.includes(t)}))}},{key:"isExternalByAction",value:function(t){var e=this;return t.some((function(t){return e.initialFieldIds.includes(t)}))}},{key:"duplicateConditionalLogic",value:function(t){var e=this.buildConditionalLogic(t);t.insertAdjacentHTML("afterEnd",e)}},{key:"duplicateLogicActions",value:function(t){var e=this;o(t.querySelectorAll('[data-controller="desktop--form--logic-actions"]')).filter((function(t){return e.initialFieldIds.includes(t.dataset.fieldId)})).forEach((function(t){var n=e.buildNewLogicAction(t);t.insertAdjacentHTML("afterEnd",n)}))}},{key:"buildNewIterationBlock",value:function(){var t,e,n=this.firstBlock.outerHTML;return n=(n=(n=(n=(n=n.replace('iteration-group="0"','iteration-group="'.concat(this.iterationNumber,'"'))).replaceAll("paperwork_resource_","paperwork_resource_i".concat(this.iterationNumber,"-"))).replaceAll('data-input-field-id="','data-input-field-id="i'.concat(this.iterationNumber,"-"))).replaceAll('data-field-id="','data-field-id="i'.concat(this.iterationNumber,"-"))).replaceAll(/data-logic-action-show-\d+=\"(true|false)\"/g,""),t=n,(e=Object(i.b)(t)).querySelectorAll('[data-controller="utils--selectizes-paperworks"]').forEach((function(t){t.style.display="block",t.parentElement.querySelector(".selectize-control").remove()})),n=function(t){var e=Object(i.b)(t);return e.querySelectorAll(".has-error").forEach((function(t){t.querySelector(".help-block").remove(),t.classList.remove("has-error")})),Object(i.a)(e)}(n=Object(i.a)(e)),n}},{key:"buildConditionalLogic",value:function(t){var e=this,n=t.outerHTML;return n=(n=(n=n.replaceAll('id="conditional_logic_','id="conditional_logic_i'.concat(this.iterationNumber,"-"))).replaceAll('id="logic_condition_','id="logic_condition_i'.concat(this.iterationNumber,"-"))).replaceAll('id="logic_action_','id="logic_action_i'.concat(this.iterationNumber,"-")),this.initialFieldIds.forEach((function(t){n=n.replaceAll('data-field-id="'.concat(t,'"'),'data-field-id="i'.concat(e.iterationNumber,"-").concat(t,'"'))})),n}},{key:"buildNewLogicAction",value:function(t){var e=t.outerHTML;return e=(e=e.replaceAll('id="logic_action_','id="logic_action_i'.concat(this.iterationNumber,"-"))).replaceAll('data-field-id="','data-field-id="i'.concat(this.iterationNumber,"-"))}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.Controller);h(p,"targets",["list","group"])},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.r(e),n.d(e,"default",(function(){return s}));var s=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,a,s=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){new MutationObserver(this.observeAttributes.bind(this)).observe(this.element,{subtree:!0,attributes:!0}),setTimeout(this.updateVisibility.bind(this),100)}},{key:"observeAttributes",value:function(t){var e=this;t.forEach((function(t){t.target.dataset.fieldId&&"attributes"===t.type&&"hidden"===t.attributeName&&e.updateVisibility()}))}},{key:"updateVisibility",value:function(){this.isEmpty()?this.hide():this.show()}},{key:"isEmpty",value:function(){return 0==this.element.querySelectorAll("[data-field-id][data-resource-id]:not([hidden]):not([initial-hidden='true'])").length}},{key:"hide",value:function(){this.element.setAttribute("hidden","")}},{key:"show",value:function(){this.element.removeAttribute("hidden")}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(1).Controller)},function(t,e,n){"use strict";n.r(e),function(t){function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return h}));var h=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(h,e);var n,i,u,d=s(h);function h(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c(l(t=d.call.apply(d,[this].concat(n))),"delay",400),t}return n=h,(i=[{key:"connect",value:function(){this.search()}},{key:"updateSearch",value:function(){var t=this;window.clearTimeout(this.timer),this.timer=window.setTimeout((function(){t.search()}),parseInt(this.delay))}},{key:"search",value:function(){t.ajax({url:this.element.dataset.url,type:"GET",dataType:"script",data:{query:this.inputTarget.value,exception_ids:this._exception_ids()}})}},{key:"_exception_ids",value:function(){return r(document.querySelectorAll("#env-tag-list .env-tag")).map((function(t){return t.dataset.unitOrganizationId}))}}])&&o(n.prototype,i),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),h}(n(1).Controller);c(h,"targets",["input"])}.call(this,n(4))},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}(this,n)}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return f}));var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,i,o=l(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return d(u(t=o.call.apply(o,[this].concat(n))),"input",document.getElementById("unit_organization_ids_input")),t}return e=c,(n=[{key:"delete",value:function(t){var e=t.target.closest("[data-unit-organization-id]");y()?T(this.ascendanceDeletingErrorValue):w(e)?T(this.descendanceDeletingErrorValue):this._deleteEnvTag(e)}},{key:"add",value:function(t){var e=t.target.closest("[data-unit-organization-id]");p(e)?T(this.ascendanceAddingErrorValue):v()&&b()?T(this.sharedDescendanceAddingErrorValue):v()&&m(e)&&g()?T(this.unsharedDescendanceAddingErrorValue):v()&&g()?(T(this.necessaryDescendanceWarningValue,"warning"),this._addNecessaryUnitOrganizationsOfDescendance()):this._addEnvTag(e)}},{key:"_addNecessaryUnitOrganizationsOfDescendance",value:function(){var t=this,e=r(_()).filter((function(t){return!!t.dataset.unitOrganizationIds}));S(k(e)).forEach((function(e){var n=t.element.querySelector('[item][data-unit-organization-id="'.concat(e,'"]'));t._addEnvTag(n)}))}},{key:"_addEnvTag",value:function(t){document.getElementById("env-tag-list").insertAdjacentHTML("beforeend",x(t));var e=this.input.value+" ".concat(t.dataset.unitOrganizationId);this._changeInputValueBy(e),E(t)}},{key:"_deleteEnvTag",value:function(t){var e=t.dataset.unitOrganizationId,n=this.input.value.split(" ").filter((function(t){return t!==e})).join(" ");this._changeInputValueBy(n),t.remove(),document.getElementById("environment-search-button").click()}},{key:"_changeInputValueBy",value:function(t){this.input.value=t;var e=new Event("change");this.input.dispatchEvent(e)}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(n(1).Controller);d(f,"values",{ascendanceDeletingError:String,descendanceDeletingError:String,ascendanceAddingError:String,sharedDescendanceAddingError:String,unsharedDescendanceAddingError:String,necessaryDescendanceWarning:String});var p=function(t){var e=r(O()).filter((function(t){return!!t.dataset.unitOrganizationIds})),n=j(k(e));return e.length>0&&!n.includes(t.dataset.unitOrganizationId)},m=function(t){var e=r(_()).filter((function(t){return!!t.dataset.unitOrganizationIds}));return!S(k(e)).includes(t.dataset.unitOrganizationId)},g=function(){return 0==document.getElementById("env-tag-list").children.length},b=function(){var t=_();return P(k(t))},v=function(){return _().length>=1},y=function(){var t=document.getElementById("env-tag-list").children,e=O(),n=S(k(e));return n=n.filter((function(t){return!!t})),1==t.length&&n.length>=1},w=function(t){var e=_();return S(k(e)).includes(t.dataset.unitOrganizationId)},k=function(t){return r(t).map((function(t){return t.dataset.unitOrganizationIds.trim().split(" ")}))},_=function(){return document.querySelectorAll("[descendant]")},O=function(){return document.querySelectorAll("[ascendant]")},x=function(t){var e=document.getElementById("env-tag-template").innerHTML;return e=(e=e.replace("{{id}}",t.dataset.unitOrganizationId)).replace("{{name}}",t.innerText)},E=function(t){1==r(t.parentElement.querySelectorAll("[item]")).length?t.parentElement.remove():t.remove()},j=function(t){return 0===t.length?[]:t.reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))},S=function(t){return r(new Set(t.flat()))},P=function(t){var e,n=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(C(r))return!0}}catch(o){n.e(o)}finally{n.f()}return!1},C=function(t){return Array.isArray(t)&&1===t.length&&""===t[0]},T=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alert";console.log(t),t&&flash(t,e)}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}(this,n)}}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.r(e),n.d(e,"default",(function(){return c}));var c=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(c,t);var e,n,s,u=o(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return l(a(t=u.call.apply(u,[this].concat(n))),"delay",400),t}return e=c,(n=[{key:"connect",value:function(){this._search()}},{key:"updateSearch",value:function(){var t=this;window.clearTimeout(this.timer),this.timer=window.setTimeout((function(){t._search()}),parseInt(this.delay))}},{key:"_search",value:function(){this.submitTarget.click()}}])&&r(e.prototype,n),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),c}(n(1).Controller);l(c,"targets",["submit"])},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,l,u=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,(r=[{key:"connect",value:function(){t(this.selectTarget).selectize(this.config())}},{key:"config",value:function(){return i(i({},this.basicConfig()),{},{create:!1,valueField:"id",labelField:"name",sortField:"name",searchField:["name","external_id"],render:{option:function(t,e){var n=e(t.name);return"undefined"!==typeof t.external_id&&null!==t.external_id&&""!=t.external_id&&(n+='<span class="text-lighter margin-left-10px">['.concat(e(t.external_id),"]</span>")),'<div style="padding: 6px 15px;">'.concat(n,"</div>")}}})}},{key:"basicConfig",value:function(){var e=this;return{preload:!0,onChange:function(t){var n=new Event("change");e.selectTarget.dispatchEvent(n)},load:function(n,r){t.ajax({url:e.urlValue,type:"GET",dataType:"json",data:{query:n},error:function(){r()},success:function(t){r(t)}})}}}}])&&o(n.prototype,r),l&&o(n,l),Object.defineProperty(n,"prototype",{writable:!1}),c}(n(1).Controller);u(d,"targets",["select"]),u(d,"values",{url:String})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var l,u,c,d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,e);var n,a,s,l=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return n=u,(a=[{key:"connect",value:function(){t(this.selectTarget).selectize({render:{option:function(t,e){return'<div style="padding: 6px 15px;">'.concat(t.text,"</div>")}}})}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),u}(n(1).Controller);l=d,c=["select"],(u=s(u="targets"))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),function(t){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}n.d(e,"default",(function(){return d}));var d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,l,u=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,(r=[{key:"connect",value:function(){this.initDropzone()}},{key:"options",value:function(){var t={paramName:this.paramNameValue,acceptedFiles:this.extensionsValue,timeout:18e4,maxFiles:this.maxFilesValue||1,maxFilesize:this.maxSizeValue};return"true"==this.multipleValue?i(i({},t),{uploadMultiple:!0,parallelUploads:5}):i({},t)}},{key:"initDropzone",value:function(){var e,n=this.urlValue,r=this.requestTypeValue,o=document.getElementById(this.elementIdValue),a=new Dropzone(this.element,i(i({},this.options()),{},{queuecomplete:function(){t.ajax({url:n,type:r,dataType:"script",data:{drop:e,elements:o?JSON.parse(o.dataset.data):null}})},drop:function(t){},successmultiple:function(t,n,r){e="success",o&&(""==o.dataset.data||void 0==o.dataset.data?o.dataset.data=JSON.stringify(n.elements):o.dataset.data=JSON.stringify(JSON.parse(o.dataset.data).concat(n.elements)))},error:function(t,n,r){e="error"},success:function(t,n,r){e="success"}}));"true"==this.disabledValue&&a.disable()}}])&&o(n.prototype,r),l&&o(n,l),Object.defineProperty(n,"prototype",{writable:!1}),c}(n(1).Controller);u(d,"values",{url:String,extensions:String,maxSize:String,maxFiles:String,requestType:String,paramName:String,disabled:String,multiple:String,elementId:String})}.call(this,n(4))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(1),i=n(10);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}var d=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,r,l=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"connect",value:function(){var t=this;Object(i.a)(this),document.querySelectorAll(".w-select.w-".concat(this.tokenValue," option")).forEach((function(e){var n='\n        <div class="w-select-item"\n             data-action="click->desktop--utils--select-component--select-component#selectOption"\n             data-value="'.concat(e.value,'"\n             active="').concat("true"==e.dataset.active,'">\n          <div class="d-flex flex-column justify-content-center align-items-start">\n            <span class="w-select-item-text">').concat(e.innerHTML,"</span>").concat(h(e),"\n          </div>\n        </div>\n      ");document.querySelector(".w-".concat(t.tokenValue," .w-select-items")).insertAdjacentHTML("beforeend",n)}))}},{key:"selectOption",value:function(t){if("true"==t.currentTarget.getAttribute("active")){var e=t.currentTarget.dataset.value,n=this.optionTargets.find((function(t){return t.value==e}));this.optionTargets.forEach((function(t){return t.setAttribute("selected","false")})),n.setAttribute("selected","true"),this.selectTarget.value=e,this.inputTarget.value=e,this.selectedTextTarget.innerHTML=n.innerHTML,this.hasSelectedDescriptionTarget&&(this.selectedDescriptionTarget.innerHTML=n.dataset.description)}this.close()}},{key:"toggle",value:function(){this._is_open()?this.close():this._open()}},{key:"close",value:function(){this.itemsTarget.setAttribute("active","false")}},{key:"_open",value:function(){this.itemsTarget.setAttribute("active","true")}},{key:"_is_open",value:function(){return"true"==this.itemsTarget.getAttribute("active")}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Controller);u(d,"values",{token:String}),u(d,"targets",["items","select","option","selectedText","selectedDescription","input"]);var h=function(t){return"true"==t.dataset.active?f(t,"description"):f(t,"inactiveExplanation")},f=function(t,e){var n=t.dataset[e];return""===n||void 0===n||null===n?"":'<span class="w-select-item-description">'.concat(n,"</span>")}},function(t,e,n){var r;(r=n(317)).keys().forEach(r)},function(t,e,n){var r={"./desktop/settings/select_environment_component/select_environment_component.css":318,"./desktop/settings/select_mobility_component/select_mobility_component.css":319};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=317},function(t,e,n){},function(t,e,n){},function(t,e,n){(function(t){!function(t,e){"use strict";var n;t.rails!==e&&t.error("jquery-ujs has already been loaded!");var r=t(document);t.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return t("meta[name=csrf-token]").attr("content")},csrfParam:function(){return t("meta[name=csrf-param]").attr("content")},CSRFProtection:function(t){var e=n.csrfToken();e&&t.setRequestHeader("X-CSRF-Token",e)},refreshCSRFTokens:function(){t('form input[name="'+n.csrfParam()+'"]').val(n.csrfToken())},fire:function(e,n,r){var i=t.Event(n);return e.trigger(i,r),!1!==i.result},confirm:function(t){return confirm(t)},ajax:function(e){return t.ajax(e)},href:function(t){return t[0].href},isRemote:function(t){return t.data("remote")!==e&&!1!==t.data("remote")},handleRemote:function(r){var i,o,a,s,l,u;if(n.fire(r,"ajax:before")){if(s=r.data("with-credentials")||null,l=r.data("type")||t.ajaxSettings&&t.ajaxSettings.dataType,r.is("form")){i=r.data("ujs:submit-button-formmethod")||r.attr("method"),o=r.data("ujs:submit-button-formaction")||r.attr("action"),a=t(r[0]).serializeArray();var c=r.data("ujs:submit-button");c&&(a.push(c),r.data("ujs:submit-button",null)),r.data("ujs:submit-button-formmethod",null),r.data("ujs:submit-button-formaction",null)}else r.is(n.inputChangeSelector)?(i=r.data("method"),o=r.data("url"),a=r.serialize(),r.data("params")&&(a=a+"&"+r.data("params"))):r.is(n.buttonClickSelector)?(i=r.data("method")||"get",o=r.data("url"),a=r.serialize(),r.data("params")&&(a=a+"&"+r.data("params"))):(i=r.data("method"),o=n.href(r),a=r.data("params")||null);return u={type:i||"GET",data:a,dataType:l,beforeSend:function(t,i){if(i.dataType===e&&t.setRequestHeader("accept","*/*;q=0.5, "+i.accepts.script),!n.fire(r,"ajax:beforeSend",[t,i]))return!1;r.trigger("ajax:send",t)},success:function(t,e,n){r.trigger("ajax:success",[t,e,n])},complete:function(t,e){r.trigger("ajax:complete",[t,e])},error:function(t,e,n){r.trigger("ajax:error",[t,e,n])},crossDomain:n.isCrossDomain(o)},s&&(u.xhrFields={withCredentials:s}),o&&(u.url=o),n.ajax(u)}return!1},isCrossDomain:function(t){var e=document.createElement("a");e.href=location.href;var n=document.createElement("a");try{return n.href=t,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||e.protocol+"//"+e.host===n.protocol+"//"+n.host)}catch(r){return!0}},handleMethod:function(r){var i=n.href(r),o=r.data("method"),a=r.attr("target"),s=n.csrfToken(),l=n.csrfParam(),u=t('<form method="post" action="'+i+'"></form>'),c='<input name="_method" value="'+o+'" type="hidden" />';l===e||s===e||n.isCrossDomain(i)||(c+='<input name="'+l+'" value="'+s+'" type="hidden" />'),a&&u.attr("target",a),u.hide().append(c).appendTo("body"),u.submit()},formElements:function(e,n){return e.is("form")?t(e[0].elements).filter(n):e.find(n)},disableFormElements:function(e){n.formElements(e,n.disableSelector).each((function(){n.disableFormElement(t(this))}))},disableFormElement:function(t){var n,r;n=t.is("button")?"html":"val",(r=t.data("disable-with"))!==e&&(t.data("ujs:enable-with",t[n]()),t[n](r)),t.prop("disabled",!0),t.data("ujs:disabled",!0)},enableFormElements:function(e){n.formElements(e,n.enableSelector).each((function(){n.enableFormElement(t(this))}))},enableFormElement:function(t){var n=t.is("button")?"html":"val";t.data("ujs:enable-with")!==e&&(t[n](t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.prop("disabled",!1),t.removeData("ujs:disabled")},allowAction:function(t){var e,r=t.data("confirm"),i=!1;if(!r)return!0;if(n.fire(t,"confirm")){try{i=n.confirm(r)}catch(o){(console.error||console.log).call(console,o.stack||o)}e=n.fire(t,"confirm:complete",[i])}return i&&e},blankInputs:function(e,n,r){var i,o,a,s=t(),l=n||"input,textarea",u=e.find(l),c={};return u.each((function(){(i=t(this)).is("input[type=radio]")?(a=i.attr("name"),c[a]||(0===e.find('input[type=radio]:checked[name="'+a+'"]').length&&(o=e.find('input[type=radio][name="'+a+'"]'),s=s.add(o)),c[a]=a)):(i.is("input[type=checkbox],input[type=radio]")?i.is(":checked"):!!i.val())===r&&(s=s.add(i))})),!!s.length&&s},nonBlankInputs:function(t,e){return n.blankInputs(t,e,!0)},stopEverything:function(e){return t(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(t){var r=t.data("disable-with");r!==e&&(t.data("ujs:enable-with",t.html()),t.html(r)),t.bind("click.railsDisable",(function(t){return n.stopEverything(t)})),t.data("ujs:disabled",!0)},enableElement:function(t){t.data("ujs:enable-with")!==e&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.unbind("click.railsDisable"),t.removeData("ujs:disabled")}},n.fire(r,"rails:attachBindings")&&(t.ajaxPrefilter((function(t,e,r){t.crossDomain||n.CSRFProtection(r)})),t(window).on("pageshow.rails",(function(){t(t.rails.enableSelector).each((function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableFormElement(e)})),t(t.rails.linkDisableSelector).each((function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableElement(e)}))})),r.on("ajax:complete",n.linkDisableSelector,(function(){n.enableElement(t(this))})),r.on("ajax:complete",n.buttonDisableSelector,(function(){n.enableFormElement(t(this))})),r.on("click.rails",n.linkClickSelector,(function(e){var r=t(this),i=r.data("method"),o=r.data("params"),a=e.metaKey||e.ctrlKey;if(!n.allowAction(r))return n.stopEverything(e);if(!a&&r.is(n.linkDisableSelector)&&n.disableElement(r),n.isRemote(r)){if(a&&(!i||"GET"===i)&&!o)return!0;var s=n.handleRemote(r);return!1===s?n.enableElement(r):s.fail((function(){n.enableElement(r)})),!1}return i?(n.handleMethod(r),!1):void 0})),r.on("click.rails",n.buttonClickSelector,(function(e){var r=t(this);if(!n.allowAction(r)||!n.isRemote(r))return n.stopEverything(e);r.is(n.buttonDisableSelector)&&n.disableFormElement(r);var i=n.handleRemote(r);return!1===i?n.enableFormElement(r):i.fail((function(){n.enableFormElement(r)})),!1})),r.on("change.rails",n.inputChangeSelector,(function(e){var r=t(this);return n.allowAction(r)&&n.isRemote(r)?(n.handleRemote(r),!1):n.stopEverything(e)})),r.on("submit.rails",n.formSubmitSelector,(function(r){var i,o,a=t(this),s=n.isRemote(a);if(!n.allowAction(a))return n.stopEverything(r);if(a.attr("novalidate")===e)if(a.data("ujs:formnovalidate-button")===e){if((i=n.blankInputs(a,n.requiredInputSelector,!1))&&n.fire(a,"ajax:aborted:required",[i]))return n.stopEverything(r)}else a.data("ujs:formnovalidate-button",e);if(s){if(o=n.nonBlankInputs(a,n.fileInputSelector)){setTimeout((function(){n.disableFormElements(a)}),13);var l=n.fire(a,"ajax:aborted:file",[o]);return l||setTimeout((function(){n.enableFormElements(a)}),13),l}return n.handleRemote(a),!1}setTimeout((function(){n.disableFormElements(a)}),13)})),r.on("click.rails",n.formInputClickSelector,(function(e){var r=t(this);if(!n.allowAction(r))return n.stopEverything(e);var i=r.attr("name"),o=i?{name:i,value:r.val()}:null,a=r.closest("form");0===a.length&&(a=t("#"+r.attr("form"))),a.data("ujs:submit-button",o),a.data("ujs:formnovalidate-button",r.attr("formnovalidate")),a.data("ujs:submit-button-formaction",r.attr("formaction")),a.data("ujs:submit-button-formmethod",r.attr("formmethod"))})),r.on("ajax:send.rails",n.formSubmitSelector,(function(e){this===e.target&&n.disableFormElements(t(this))})),r.on("ajax:complete.rails",n.formSubmitSelector,(function(e){this===e.target&&n.enableFormElements(t(this))})),t((function(){n.refreshCSRFTokens()})))}(t)}).call(this,n(4))},function(t,e,n){!function(t,e,n){"use strict";function r(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}var i=r(e),o=r(n);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l.apply(this,arguments)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var d="transitionend",h=1e6,f=1e3;function p(t){return null===t||"undefined"===typeof t?""+t:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function m(){return{bindType:d,delegateType:d,handle:function(t){if(i.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function g(t){var e=this,n=!1;return i.default(this).one(v.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||v.triggerTransitionEnd(e)}),t),this}function b(){i.default.fn.emulateTransitionEnd=g,i.default.event.special[v.TRANSITION_END]=m()}var v={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(Math.random()*h)}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(r){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=i.default(t).css("transition-duration"),n=i.default(t).css("transition-delay"),r=parseFloat(e),o=parseFloat(n);return r||o?(e=e.split(",")[0],n=n.split(",")[0],(parseFloat(e)+parseFloat(n))*f):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i.default(t).trigger(d)},supportsTransitionEnd:function(){return Boolean(d)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=e[r],a=o&&v.isElement(o)?"element":p(o);if(!new RegExp(i).test(a))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+i+'".')}},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"===typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?v.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if("undefined"===typeof i.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=i.default.fn.jquery.split(" ")[0].split("."),e=1,n=2,r=9,o=1,a=4;if(t[0]<n&&t[1]<r||t[0]===e&&t[1]===r&&t[2]<o||t[0]>=a)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};v.jQueryDetection(),b();var y="alert",w="4.6.2",k="bs.alert",_="."+k,O=".data-api",x=i.default.fn[y],E="alert",j="fade",S="show",P="close"+_,C="closed"+_,T="click"+_+O,M='[data-dismiss="alert"]',A=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){i.default.removeData(this._element,k),this._element=null},e._getRootElement=function(t){var e=v.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest("."+E)[0]),n},e._triggerCloseEvent=function(t){var e=i.default.Event(P);return i.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i.default(t).removeClass(S),i.default(t).hasClass(j)){var n=v.getTransitionDurationFromElement(t);i.default(t).one(v.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i.default(t).detach().trigger(C).remove()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(k);r||(r=new t(this),n.data(k,r)),"close"===e&&r[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return w}}]),t}();i.default(document).on(T,M,A._handleDismiss(new A)),i.default.fn[y]=A._jQueryInterface,i.default.fn[y].Constructor=A,i.default.fn[y].noConflict=function(){return i.default.fn[y]=x,A._jQueryInterface};var D="button",R="4.6.2",L="bs.button",I="."+L,W=".data-api",z=i.default.fn[D],N="active",F="btn",H="focus",B="click"+I+W,V="focus"+I+W+" blur"+I+W,q="load"+I+W,Y='[data-toggle^="button"]',U='[data-toggle="buttons"]',G='[data-toggle="button"]',X='[data-toggle="buttons"] .btn',J='input:not([type="hidden"])',K=".active",$=".btn",Q=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i.default(this._element).closest(U)[0];if(n){var r=this._element.querySelector(J);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(N))t=!1;else{var o=n.querySelector(K);o&&i.default(o).removeClass(N)}t&&("checkbox"!==r.type&&"radio"!==r.type||(r.checked=!this._element.classList.contains(N)),this.shouldAvoidTriggerChange||i.default(r).trigger("change")),r.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(N)),t&&i.default(this._element).toggleClass(N))},e.dispose=function(){i.default.removeData(this._element,L),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var r=i.default(this),o=r.data(L);o||(o=new t(this),r.data(L,o)),o.shouldAvoidTriggerChange=n,"toggle"===e&&o[e]()}))},s(t,null,[{key:"VERSION",get:function(){return R}}]),t}();i.default(document).on(B,Y,(function(t){var e=t.target,n=e;if(i.default(e).hasClass(F)||(e=i.default(e).closest($)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var r=e.querySelector(J);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||Q._jQueryInterface.call(i.default(e),"toggle","INPUT"===n.tagName)}})).on(V,Y,(function(t){var e=i.default(t.target).closest($)[0];i.default(e).toggleClass(H,/^focus(in)?$/.test(t.type))})),i.default(window).on(q,(function(){for(var t=[].slice.call(document.querySelectorAll(X)),e=0,n=t.length;e<n;e++){var r=t[e],i=r.querySelector(J);i.checked||i.hasAttribute("checked")?r.classList.add(N):r.classList.remove(N)}for(var o=0,a=(t=[].slice.call(document.querySelectorAll(G))).length;o<a;o++){var s=t[o];"true"===s.getAttribute("aria-pressed")?s.classList.add(N):s.classList.remove(N)}})),i.default.fn[D]=Q._jQueryInterface,i.default.fn[D].Constructor=Q,i.default.fn[D].noConflict=function(){return i.default.fn[D]=z,Q._jQueryInterface};var Z="carousel",tt="4.6.2",et="bs.carousel",nt="."+et,rt=".data-api",it=i.default.fn[Z],ot=37,at=39,st=500,lt=40,ut="carousel",ct="active",dt="slide",ht="carousel-item-right",ft="carousel-item-left",pt="carousel-item-next",mt="carousel-item-prev",gt="pointer-event",bt="next",vt="prev",yt="left",wt="right",kt="slide"+nt,_t="slid"+nt,Ot="keydown"+nt,xt="mouseenter"+nt,Et="mouseleave"+nt,jt="touchstart"+nt,St="touchmove"+nt,Pt="touchend"+nt,Ct="pointerdown"+nt,Tt="pointerup"+nt,Mt="dragstart"+nt,At="load"+nt+rt,Dt="click"+nt+rt,Rt=".active",Lt=".active.carousel-item",It=".carousel-item",Wt=".carousel-item img",zt=".carousel-item-next, .carousel-item-prev",Nt=".carousel-indicators",Ft="[data-slide], [data-slide-to]",Ht='[data-ride="carousel"]',Bt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Vt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},qt={TOUCH:"touch",PEN:"pen"},Yt=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(Nt),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(bt)},e.nextWhenVisible=function(){var t=i.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(vt)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(zt)&&(v.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(Lt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i.default(this._element).one(_t,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var r=t>n?bt:vt;this._slide(r,this._items[t])}},e.dispose=function(){i.default(this._element).off(nt),i.default.removeData(this._element,et),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=l({},Bt,t),v.typeCheckConfig(Z,t,Vt),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=lt)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&i.default(this._element).on(Ot,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&i.default(this._element).on(xt,(function(e){return t.pause(e)})).on(Et,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&qt[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX},r=function(e){t._pointerEvent&&qt[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),st+t._config.interval))};i.default(this._element.querySelectorAll(Wt)).on(Mt,(function(t){return t.preventDefault()})),this._pointerEvent?(i.default(this._element).on(Ct,(function(t){return e(t)})),i.default(this._element).on(Tt,(function(t){return r(t)})),this._element.classList.add(gt)):(i.default(this._element).on(jt,(function(t){return e(t)})),i.default(this._element).on(St,(function(t){return n(t)})),i.default(this._element).on(Pt,(function(t){return r(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case ot:t.preventDefault(),this.prev();break;case at:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(It)):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===bt,r=t===vt,i=this._getItemIndex(e),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return e;var a=(i+(t===vt?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),r=this._getItemIndex(this._element.querySelector(Lt)),o=i.default.Event(kt,{relatedTarget:t,direction:e,from:r,to:n});return i.default(this._element).trigger(o),o},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Rt));i.default(e).removeClass(ct);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass(ct)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(Lt);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,r,o,a=this,s=this._element.querySelector(Lt),l=this._getItemIndex(s),u=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(u),d=Boolean(this._interval);if(t===bt?(n=ft,r=pt,o=yt):(n=ht,r=mt,o=wt),u&&i.default(u).hasClass(ct))this._isSliding=!1;else if(!this._triggerSlideEvent(u,o).isDefaultPrevented()&&s&&u){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var h=i.default.Event(_t,{relatedTarget:u,direction:o,from:l,to:c});if(i.default(this._element).hasClass(dt)){i.default(u).addClass(r),v.reflow(u),i.default(s).addClass(n),i.default(u).addClass(n);var f=v.getTransitionDurationFromElement(s);i.default(s).one(v.TRANSITION_END,(function(){i.default(u).removeClass(n+" "+r).addClass(ct),i.default(s).removeClass(ct+" "+r+" "+n),a._isSliding=!1,setTimeout((function(){return i.default(a._element).trigger(h)}),0)})).emulateTransitionEnd(f)}else i.default(s).removeClass(ct),i.default(u).addClass(ct),this._isSliding=!1,i.default(this._element).trigger(h);d&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(et),r=l({},Bt,i.default(this).data());"object"===typeof e&&(r=l({},r,e));var o="string"===typeof e?e:r.slide;if(n||(n=new t(this,r),i.default(this).data(et,n)),"number"===typeof e)n.to(e);else if("string"===typeof o){if("undefined"===typeof n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=v.getSelectorFromElement(this);if(n){var r=i.default(n)[0];if(r&&i.default(r).hasClass(ut)){var o=l({},i.default(r).data(),i.default(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(i.default(r),o),a&&i.default(r).data(et).to(a),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return tt}},{key:"Default",get:function(){return Bt}}]),t}();i.default(document).on(Dt,Ft,Yt._dataApiClickHandler),i.default(window).on(At,(function(){for(var t=[].slice.call(document.querySelectorAll(Ht)),e=0,n=t.length;e<n;e++){var r=i.default(t[e]);Yt._jQueryInterface.call(r,r.data())}})),i.default.fn[Z]=Yt._jQueryInterface,i.default.fn[Z].Constructor=Yt,i.default.fn[Z].noConflict=function(){return i.default.fn[Z]=it,Yt._jQueryInterface};var Ut="collapse",Gt="4.6.2",Xt="bs.collapse",Jt="."+Xt,Kt=".data-api",$t=i.default.fn[Ut],Qt="show",Zt="collapse",te="collapsing",ee="collapsed",ne="width",re="height",ie="show"+Jt,oe="shown"+Jt,ae="hide"+Jt,se="hidden"+Jt,le="click"+Jt+Kt,ue=".show, .collapsing",ce='[data-toggle="collapse"]',de={toggle:!0,parent:""},he={toggle:"boolean",parent:"(string|element)"},fe=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ce)),r=0,i=n.length;r<i;r++){var o=n[r],a=v.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===t}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){i.default(this._element).hasClass(Qt)?this.hide():this.show()},e.show=function(){var e,n,r=this;if(!this._isTransitioning&&!i.default(this._element).hasClass(Qt)&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(ue)).filter((function(t){return"string"===typeof r._config.parent?t.getAttribute("data-parent")===r._config.parent:t.classList.contains(Zt)}))).length&&(e=null),!(e&&(n=i.default(e).not(this._selector).data(Xt))&&n._isTransitioning))){var o=i.default.Event(ie);if(i.default(this._element).trigger(o),!o.isDefaultPrevented()){e&&(t._jQueryInterface.call(i.default(e).not(this._selector),"hide"),n||i.default(e).data(Xt,null));var a=this._getDimension();i.default(this._element).removeClass(Zt).addClass(te),this._element.style[a]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(ee).attr("aria-expanded",!0),this.setTransitioning(!0);var s=function(){i.default(r._element).removeClass(te).addClass(Zt+" "+Qt),r._element.style[a]="",r.setTransitioning(!1),i.default(r._element).trigger(oe)},l="scroll"+(a[0].toUpperCase()+a.slice(1)),u=v.getTransitionDurationFromElement(this._element);i.default(this._element).one(v.TRANSITION_END,s).emulateTransitionEnd(u),this._element.style[a]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i.default(this._element).hasClass(Qt)){var e=i.default.Event(ae);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",v.reflow(this._element),i.default(this._element).addClass(te).removeClass(Zt+" "+Qt);var r=this._triggerArray.length;if(r>0)for(var o=0;o<r;o++){var a=this._triggerArray[o],s=v.getSelectorFromElement(a);null!==s&&(i.default([].slice.call(document.querySelectorAll(s))).hasClass(Qt)||i.default(a).addClass(ee).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){t.setTransitioning(!1),i.default(t._element).removeClass(te).addClass(Zt).trigger(se)};this._element.style[n]="";var u=v.getTransitionDurationFromElement(this._element);i.default(this._element).one(v.TRANSITION_END,l).emulateTransitionEnd(u)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){i.default.removeData(this._element,Xt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=l({},de,t)).toggle=Boolean(t.toggle),v.typeCheckConfig(Ut,t,he),t},e._getDimension=function(){return i.default(this._element).hasClass(ne)?ne:re},e._getParent=function(){var e,n=this;v.isElement(this._config.parent)?(e=this._config.parent,"undefined"!==typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(e.querySelectorAll(r));return i.default(o).each((function(e,r){n._addAriaAndCollapsedClass(t._getTargetFromElement(r),[r])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=i.default(t).hasClass(Qt);e.length&&i.default(e).toggleClass(ee,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=v.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(Xt),o=l({},de,n.data(),"object"===typeof e&&e?e:{});if(!r&&o.toggle&&"string"===typeof e&&/show|hide/.test(e)&&(o.toggle=!1),r||(r=new t(this,o),n.data(Xt,r)),"string"===typeof e){if("undefined"===typeof r[e])throw new TypeError('No method named "'+e+'"');r[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Gt}},{key:"Default",get:function(){return de}}]),t}();i.default(document).on(le,ce,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=i.default(this),n=v.getSelectorFromElement(this),r=[].slice.call(document.querySelectorAll(n));i.default(r).each((function(){var t=i.default(this),n=t.data(Xt)?"toggle":e.data();fe._jQueryInterface.call(t,n)}))})),i.default.fn[Ut]=fe._jQueryInterface,i.default.fn[Ut].Constructor=fe,i.default.fn[Ut].noConflict=function(){return i.default.fn[Ut]=$t,fe._jQueryInterface};var pe="dropdown",me="4.6.2",ge="bs.dropdown",be="."+ge,ve=".data-api",ye=i.default.fn[pe],we=27,ke=32,_e=9,Oe=38,xe=40,Ee=3,je=new RegExp(Oe+"|"+xe+"|"+we),Se="disabled",Pe="show",Ce="dropup",Te="dropright",Me="dropleft",Ae="dropdown-menu-right",De="position-static",Re="hide"+be,Le="hidden"+be,Ie="show"+be,We="shown"+be,ze="click"+be,Ne="click"+be+ve,Fe="keydown"+be+ve,He="keyup"+be+ve,Be='[data-toggle="dropdown"]',Ve=".dropdown form",qe=".dropdown-menu",Ye=".navbar-nav",Ue=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ge="top-start",Xe="top-end",Je="bottom-start",Ke="bottom-end",$e="right-start",Qe="left-start",Ze={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},tn={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},en=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(Se)){var e=i.default(this._menu).hasClass(Pe);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||i.default(this._element).hasClass(Se)||i.default(this._menu).hasClass(Pe))){var n={relatedTarget:this._element},r=i.default.Event(Ie,n),a=t._getParentFromElement(this._element);if(i.default(a).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar&&e){if("undefined"===typeof o.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=a:v.isElement(this._config.reference)&&(s=this._config.reference,"undefined"!==typeof this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(a).addClass(De),this._popper=new o.default(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(a).closest(Ye).length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass(Pe),i.default(a).toggleClass(Pe).trigger(i.default.Event(We,n))}}},e.hide=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(Se)&&i.default(this._menu).hasClass(Pe)){var e={relatedTarget:this._element},n=i.default.Event(Re,e),r=t._getParentFromElement(this._element);i.default(r).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(Pe),i.default(r).toggleClass(Pe).trigger(i.default.Event(Le,e)))}},e.dispose=function(){i.default.removeData(this._element,ge),i.default(this._element).off(be),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;i.default(this._element).on(ze,(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=l({},this.constructor.Default,i.default(this._element).data(),t),v.typeCheckConfig(pe,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(qe))}return this._menu},e._getPlacement=function(){var t=i.default(this._element.parentNode),e=Je;return t.hasClass(Ce)?e=i.default(this._menu).hasClass(Ae)?Xe:Ge:t.hasClass(Te)?e=$e:t.hasClass(Me)?e=Qe:i.default(this._menu).hasClass(Ae)&&(e=Ke),e},e._detectNavbar=function(){return i.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"===typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(ge);if(n||(n=new t(this,"object"===typeof e?e:null),i.default(this).data(ge,n)),"string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||e.which!==Ee&&("keyup"!==e.type||e.which===_e))for(var n=[].slice.call(document.querySelectorAll(Be)),r=0,o=n.length;r<o;r++){var a=t._getParentFromElement(n[r]),s=i.default(n[r]).data(ge),l={relatedTarget:n[r]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var u=s._menu;if(i.default(a).hasClass(Pe)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===_e)&&i.default.contains(a,e.target))){var c=i.default.Event(Re,l);i.default(a).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),n[r].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),i.default(u).removeClass(Pe),i.default(a).removeClass(Pe).trigger(i.default.Event(Le,l)))}}}},t._getParentFromElement=function(t){var e,n=v.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?e.which===ke||e.which!==we&&(e.which!==xe&&e.which!==Oe||i.default(e.target).closest(qe).length):!je.test(e.which))&&!this.disabled&&!i.default(this).hasClass(Se)){var n=t._getParentFromElement(this),r=i.default(n).hasClass(Pe);if(r||e.which!==we){if(e.preventDefault(),e.stopPropagation(),!r||e.which===we||e.which===ke)return e.which===we&&i.default(n.querySelector(Be)).trigger("focus"),void i.default(this).trigger("click");var o=[].slice.call(n.querySelectorAll(Ue)).filter((function(t){return i.default(t).is(":visible")}));if(0!==o.length){var a=o.indexOf(e.target);e.which===Oe&&a>0&&a--,e.which===xe&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}}},s(t,null,[{key:"VERSION",get:function(){return me}},{key:"Default",get:function(){return Ze}},{key:"DefaultType",get:function(){return tn}}]),t}();i.default(document).on(Fe,Be,en._dataApiKeydownHandler).on(Fe,qe,en._dataApiKeydownHandler).on(Ne+" "+He,en._clearMenus).on(Ne,Be,(function(t){t.preventDefault(),t.stopPropagation(),en._jQueryInterface.call(i.default(this),"toggle")})).on(Ne,Ve,(function(t){t.stopPropagation()})),i.default.fn[pe]=en._jQueryInterface,i.default.fn[pe].Constructor=en,i.default.fn[pe].noConflict=function(){return i.default.fn[pe]=ye,en._jQueryInterface};var nn="modal",rn="4.6.2",on="bs.modal",an="."+on,sn=".data-api",ln=i.default.fn[nn],un=27,cn="modal-dialog-scrollable",dn="modal-scrollbar-measure",hn="modal-backdrop",fn="modal-open",pn="fade",mn="show",gn="modal-static",bn="hide"+an,vn="hidePrevented"+an,yn="hidden"+an,wn="show"+an,kn="shown"+an,_n="focusin"+an,On="resize"+an,xn="click.dismiss"+an,En="keydown.dismiss"+an,jn="mouseup.dismiss"+an,Sn="mousedown.dismiss"+an,Pn="click"+an+sn,Cn=".modal-dialog",Tn=".modal-body",Mn='[data-toggle="modal"]',An='[data-dismiss="modal"]',Dn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Rn=".sticky-top",Ln={backdrop:!0,keyboard:!0,focus:!0,show:!0},In={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Wn=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Cn),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){var n=i.default.Event(wn,{relatedTarget:t});i.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,i.default(this._element).hasClass(pn)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i.default(this._element).on(xn,An,(function(t){return e.hide(t)})),i.default(this._dialog).on(Sn,(function(){i.default(e._element).one(jn,(function(t){i.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=i.default.Event(bn);if(i.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var r=i.default(this._element).hasClass(pn);if(r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i.default(document).off(_n),i.default(this._element).removeClass(mn),i.default(this._element).off(xn),i.default(this._dialog).off(Sn),r){var o=v.getTransitionDurationFromElement(this._element);i.default(this._element).one(v.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(o)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return i.default(t).off(an)})),i.default(document).off(_n),i.default.removeData(this._element,on),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=l({},Ln,t),v.typeCheckConfig(nn,t,In),t},e._triggerBackdropTransition=function(){var t=this,e=i.default.Event(vn);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(gn);var r=v.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(v.TRANSITION_END),i.default(this._element).one(v.TRANSITION_END,(function(){t._element.classList.remove(gn),n||i.default(t._element).one(v.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,r)})).emulateTransitionEnd(r),this._element.focus()}},e._showElement=function(t){var e=this,n=i.default(this._element).hasClass(pn),r=this._dialog?this._dialog.querySelector(Tn):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass(cn)&&r?r.scrollTop=0:this._element.scrollTop=0,n&&v.reflow(this._element),i.default(this._element).addClass(mn),this._config.focus&&this._enforceFocus();var o=i.default.Event(kn,{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,i.default(e._element).trigger(o)};if(n){var s=v.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(v.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._enforceFocus=function(){var t=this;i.default(document).off(_n).on(_n,(function(e){document!==e.target&&t._element!==e.target&&0===i.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?i.default(this._element).on(En,(function(e){t._config.keyboard&&e.which===un?(e.preventDefault(),t.hide()):t._config.keyboard||e.which!==un||t._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(En)},e._setResizeEvent=function(){var t=this;this._isShown?i.default(window).on(On,(function(e){return t.handleUpdate(e)})):i.default(window).off(On)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(fn),t._resetAdjustments(),t._resetScrollbar(),i.default(t._element).trigger(yn)}))},e._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i.default(this._element).hasClass(pn)?pn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=hn,n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(xn,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&v.reflow(this._backdrop),i.default(this._backdrop).addClass(mn),!t)return;if(!n)return void t();var r=v.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(v.TRANSITION_END,t).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(mn);var o=function(){e._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass(pn)){var a=v.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(Dn)),n=[].slice.call(document.querySelectorAll(Rn));i.default(e).each((function(e,n){var r=n.style.paddingRight,o=i.default(n).css("padding-right");i.default(n).data("padding-right",r).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")})),i.default(n).each((function(e,n){var r=n.style.marginRight,o=i.default(n).css("margin-right");i.default(n).data("margin-right",r).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}));var r=document.body.style.paddingRight,o=i.default(document.body).css("padding-right");i.default(document.body).data("padding-right",r).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}i.default(document.body).addClass(fn)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(Dn));i.default(t).each((function(t,e){var n=i.default(e).data("padding-right");i.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(""+Rn));i.default(e).each((function(t,e){var n=i.default(e).data("margin-right");"undefined"!==typeof n&&i.default(e).css("margin-right",n).removeData("margin-right")}));var n=i.default(document.body).data("padding-right");i.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className=dn,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var r=i.default(this).data(on),o=l({},Ln,i.default(this).data(),"object"===typeof e&&e?e:{});if(r||(r=new t(this,o),i.default(this).data(on,r)),"string"===typeof e){if("undefined"===typeof r[e])throw new TypeError('No method named "'+e+'"');r[e](n)}else o.show&&r.show(n)}))},s(t,null,[{key:"VERSION",get:function(){return rn}},{key:"Default",get:function(){return Ln}}]),t}();i.default(document).on(Pn,Mn,(function(t){var e,n=this,r=v.getSelectorFromElement(this);r&&(e=document.querySelector(r));var o=i.default(e).data(on)?"toggle":l({},i.default(e).data(),i.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=i.default(e).one(wn,(function(t){t.isDefaultPrevented()||a.one(yn,(function(){i.default(n).is(":visible")&&n.focus()}))}));Wn._jQueryInterface.call(i.default(e),o,this)})),i.default.fn[nn]=Wn._jQueryInterface,i.default.fn[nn].Constructor=Wn,i.default.fn[nn].noConflict=function(){return i.default.fn[nn]=ln,Wn._jQueryInterface};var zn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Nn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Fn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Hn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Bn(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===zn.indexOf(n)||Boolean(Fn.test(t.nodeValue)||Hn.test(t.nodeValue));for(var r=e.filter((function(t){return t instanceof RegExp})),i=0,o=r.length;i<o;i++)if(r[i].test(n))return!0;return!1}function Vn(t,e,n){if(0===t.length)return t;if(n&&"function"===typeof n)return n(t);for(var r=(new window.DOMParser).parseFromString(t,"text/html"),i=Object.keys(e),o=[].slice.call(r.body.querySelectorAll("*")),a=function(t,n){var r=o[t],a=r.nodeName.toLowerCase();if(-1===i.indexOf(r.nodeName.toLowerCase()))return r.parentNode.removeChild(r),"continue";var s=[].slice.call(r.attributes),l=[].concat(e["*"]||[],e[a]||[]);s.forEach((function(t){Bn(t,l)||r.removeAttribute(t.nodeName)}))},s=0,l=o.length;s<l;s++)a(s);return r.body.innerHTML}var qn="tooltip",Yn="4.6.2",Un="bs.tooltip",Gn="."+Un,Xn=i.default.fn[qn],Jn="bs-tooltip",Kn=new RegExp("(^|\\s)"+Jn+"\\S+","g"),$n=["sanitize","whiteList","sanitizeFn"],Qn="fade",Zn="show",tr="show",er="out",nr=".tooltip-inner",rr=".arrow",ir="hover",or="focus",ar="click",sr="manual",lr={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ur={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Nn,popperConfig:null},cr={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},dr={HIDE:"hide"+Gn,HIDDEN:"hidden"+Gn,SHOW:"show"+Gn,SHOWN:"shown"+Gn,INSERTED:"inserted"+Gn,CLICK:"click"+Gn,FOCUSIN:"focusin"+Gn,FOCUSOUT:"focusout"+Gn,MOUSEENTER:"mouseenter"+Gn,MOUSELEAVE:"mouseleave"+Gn},hr=function(){function t(t,e){if("undefined"===typeof o.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(Zn))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(e);var n=v.findShadowRoot(this.element),r=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!r)return;var a=this.getTipElement(),s=v.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&i.default(a).addClass(Qn);var l="function"===typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(l);this.addAttachmentClass(u);var c=this._getContainer();i.default(a).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(a).appendTo(c),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,a,this._getPopperConfig(u)),i.default(a).addClass(Zn),i.default(a).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var d=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i.default(t.element).trigger(t.constructor.Event.SHOWN),e===er&&t._leave(null,t)};if(i.default(this.tip).hasClass(Qn)){var h=v.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(v.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},e.hide=function(t){var e=this,n=this.getTipElement(),r=i.default.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==tr&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),i.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i.default(this.element).trigger(r),!r.isDefaultPrevented()){if(i.default(n).removeClass(Zn),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger[ar]=!1,this._activeTrigger[or]=!1,this._activeTrigger[ir]=!1,i.default(this.tip).hasClass(Qn)){var a=v.getTransitionDurationFromElement(n);i.default(n).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(Jn+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(nr)),this.getTitle()),i.default(t).removeClass(Qn+" "+Zn)},e.setElementContent=function(t,e){"object"!==typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Vn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"===typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:rr},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"===typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:v.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},e._getAttachment=function(t){return lr[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)i.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(e!==sr){var n=e===ir?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,r=e===ir?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(r,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?or:ir]=!0),i.default(e.getTipElement()).hasClass(Zn)||e._hoverState===tr?e._hoverState=tr:(clearTimeout(e._timeout),e._hoverState=tr,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===tr&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?or:ir]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=er,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===er&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=i.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==$n.indexOf(t)&&delete e[t]})),"number"===typeof(t=l({},this.constructor.Default,e,"object"===typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"===typeof t.title&&(t.title=t.title.toString()),"number"===typeof t.content&&(t.content=t.content.toString()),v.typeCheckConfig(qn,t,this.constructor.DefaultType),t.sanitize&&(t.template=Vn(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(Kn);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass(Qn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(Un),o="object"===typeof e&&e;if((r||!/dispose|hide/.test(e))&&(r||(r=new t(this,o),n.data(Un,r)),"string"===typeof e)){if("undefined"===typeof r[e])throw new TypeError('No method named "'+e+'"');r[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Yn}},{key:"Default",get:function(){return ur}},{key:"NAME",get:function(){return qn}},{key:"DATA_KEY",get:function(){return Un}},{key:"Event",get:function(){return dr}},{key:"EVENT_KEY",get:function(){return Gn}},{key:"DefaultType",get:function(){return cr}}]),t}();i.default.fn[qn]=hr._jQueryInterface,i.default.fn[qn].Constructor=hr,i.default.fn[qn].noConflict=function(){return i.default.fn[qn]=Xn,hr._jQueryInterface};var fr="popover",pr="4.6.2",mr="bs.popover",gr="."+mr,br=i.default.fn[fr],vr="bs-popover",yr=new RegExp("(^|\\s)"+vr+"\\S+","g"),wr="fade",kr="show",_r=".popover-header",Or=".popover-body",xr=l({},hr.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Er=l({},hr.DefaultType,{content:"(string|element|function)"}),jr={HIDE:"hide"+gr,HIDDEN:"hidden"+gr,SHOW:"show"+gr,SHOWN:"shown"+gr,INSERTED:"inserted"+gr,CLICK:"click"+gr,FOCUSIN:"focusin"+gr,FOCUSOUT:"focusout"+gr,MOUSEENTER:"mouseenter"+gr,MOUSELEAVE:"mouseleave"+gr},Sr=function(t){function e(){return t.apply(this,arguments)||this}u(e,t);var n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(vr+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},n.setContent=function(){var t=i.default(this.getTipElement());this.setElementContent(t.find(_r),this.getTitle());var e=this._getContent();"function"===typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Or),e),t.removeClass(wr+" "+kr)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(yr);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(mr),r="object"===typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,r),i.default(this).data(mr,n)),"string"===typeof t)){if("undefined"===typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return pr}},{key:"Default",get:function(){return xr}},{key:"NAME",get:function(){return fr}},{key:"DATA_KEY",get:function(){return mr}},{key:"Event",get:function(){return jr}},{key:"EVENT_KEY",get:function(){return gr}},{key:"DefaultType",get:function(){return Er}}]),e}(hr);i.default.fn[fr]=Sr._jQueryInterface,i.default.fn[fr].Constructor=Sr,i.default.fn[fr].noConflict=function(){return i.default.fn[fr]=br,Sr._jQueryInterface};var Pr="scrollspy",Cr="4.6.2",Tr="bs.scrollspy",Mr="."+Tr,Ar=".data-api",Dr=i.default.fn[Pr],Rr="dropdown-item",Lr="active",Ir="activate"+Mr,Wr="scroll"+Mr,zr="load"+Mr+Ar,Nr="offset",Fr="position",Hr='[data-spy="scroll"]',Br=".nav, .list-group",Vr=".nav-link",qr=".nav-item",Yr=".list-group-item",Ur=".dropdown",Gr=".dropdown-item",Xr=".dropdown-toggle",Jr={offset:10,method:"auto",target:""},Kr={offset:"number",method:"string",target:"(string|element)"},$r=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+Vr+","+this._config.target+" "+Yr+","+this._config.target+" "+Gr,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on(Wr,(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?Nr:Fr,n="auto"===this._config.method?e:this._config.method,r=n===Fr?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,o=v.getSelectorFromElement(t);if(o&&(e=document.querySelector(o)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[i.default(e)[n]().top+r,o]}return null})).filter(Boolean).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){i.default.removeData(this._element,Tr),i.default(this._scrollElement).off(Mr),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!==typeof(t=l({},Jr,"object"===typeof t&&t?t:{})).target&&v.isElement(t.target)){var e=i.default(t.target).attr("id");e||(e=v.getUID(Pr),i.default(t.target).attr("id",e)),t.target="#"+e}return v.typeCheckConfig(Pr,t,Kr),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&("undefined"===typeof this._offsets[i+1]||t<this._offsets[i+1])&&this._activate(this._targets[i])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=i.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(Rr)?(n.closest(Ur).find(Xr).addClass(Lr),n.addClass(Lr)):(n.addClass(Lr),n.parents(Br).prev(Vr+", "+Yr).addClass(Lr),n.parents(Br).prev(qr).children(Vr).addClass(Lr)),i.default(this._scrollElement).trigger(Ir,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains(Lr)})).forEach((function(t){return t.classList.remove(Lr)}))},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(Tr);if(n||(n=new t(this,"object"===typeof e&&e),i.default(this).data(Tr,n)),"string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Cr}},{key:"Default",get:function(){return Jr}}]),t}();i.default(window).on(zr,(function(){for(var t=[].slice.call(document.querySelectorAll(Hr)),e=t.length;e--;){var n=i.default(t[e]);$r._jQueryInterface.call(n,n.data())}})),i.default.fn[Pr]=$r._jQueryInterface,i.default.fn[Pr].Constructor=$r,i.default.fn[Pr].noConflict=function(){return i.default.fn[Pr]=Dr,$r._jQueryInterface};var Qr="tab",Zr="4.6.2",ti="bs.tab",ei="."+ti,ni=".data-api",ri=i.default.fn[Qr],ii="dropdown-menu",oi="active",ai="disabled",si="fade",li="show",ui="hide"+ei,ci="hidden"+ei,di="show"+ei,hi="shown"+ei,fi="click"+ei+ni,pi=".dropdown",mi=".nav, .list-group",gi=".active",bi="> li > .active",vi='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',yi=".dropdown-toggle",wi="> .dropdown-menu .active",ki=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(oi)||i.default(this._element).hasClass(ai)||this._element.hasAttribute("disabled"))){var e,n,r=i.default(this._element).closest(mi)[0],o=v.getSelectorFromElement(this._element);if(r){var a="UL"===r.nodeName||"OL"===r.nodeName?bi:gi;n=(n=i.default.makeArray(i.default(r).find(a)))[n.length-1]}var s=i.default.Event(ui,{relatedTarget:this._element}),l=i.default.Event(di,{relatedTarget:n});if(n&&i.default(n).trigger(s),i.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,r);var u=function(){var e=i.default.Event(ci,{relatedTarget:t._element}),r=i.default.Event(hi,{relatedTarget:n});i.default(n).trigger(e),i.default(t._element).trigger(r)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){i.default.removeData(this._element,ti),this._element=null},e._activate=function(t,e,n){var r=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i.default(e).children(gi):i.default(e).find(bi))[0],a=n&&o&&i.default(o).hasClass(si),s=function(){return r._transitionComplete(t,o,n)};if(o&&a){var l=v.getTransitionDurationFromElement(o);i.default(o).removeClass(li).one(v.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._transitionComplete=function(t,e,n){if(e){i.default(e).removeClass(oi);var r=i.default(e.parentNode).find(wi)[0];r&&i.default(r).removeClass(oi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}i.default(t).addClass(oi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),v.reflow(t),t.classList.contains(si)&&t.classList.add(li);var o=t.parentNode;if(o&&"LI"===o.nodeName&&(o=o.parentNode),o&&i.default(o).hasClass(ii)){var a=i.default(t).closest(pi)[0];if(a){var s=[].slice.call(a.querySelectorAll(yi));i.default(s).addClass(oi)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(ti);if(r||(r=new t(this),n.data(ti,r)),"string"===typeof e){if("undefined"===typeof r[e])throw new TypeError('No method named "'+e+'"');r[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Zr}}]),t}();i.default(document).on(fi,vi,(function(t){t.preventDefault(),ki._jQueryInterface.call(i.default(this),"show")})),i.default.fn[Qr]=ki._jQueryInterface,i.default.fn[Qr].Constructor=ki,i.default.fn[Qr].noConflict=function(){return i.default.fn[Qr]=ri,ki._jQueryInterface};var _i="toast",Oi="4.6.2",xi="bs.toast",Ei="."+xi,ji=i.default.fn[_i],Si="fade",Pi="hide",Ci="show",Ti="showing",Mi="click.dismiss"+Ei,Ai="hide"+Ei,Di="hidden"+Ei,Ri="show"+Ei,Li="shown"+Ei,Ii='[data-dismiss="toast"]',Wi={animation:!0,autohide:!0,delay:500},zi={animation:"boolean",autohide:"boolean",delay:"number"},Ni=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=i.default.Event(Ri);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Si);var n=function(){t._element.classList.remove(Ti),t._element.classList.add(Ci),i.default(t._element).trigger(Li),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(Pi),v.reflow(this._element),this._element.classList.add(Ti),this._config.animation){var r=v.getTransitionDurationFromElement(this._element);i.default(this._element).one(v.TRANSITION_END,n).emulateTransitionEnd(r)}else n()}},e.hide=function(){if(this._element.classList.contains(Ci)){var t=i.default.Event(Ai);i.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(Ci)&&this._element.classList.remove(Ci),i.default(this._element).off(Mi),i.default.removeData(this._element,xi),this._element=null,this._config=null},e._getConfig=function(t){return t=l({},Wi,i.default(this._element).data(),"object"===typeof t&&t?t:{}),v.typeCheckConfig(_i,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;i.default(this._element).on(Mi,Ii,(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add(Pi),i.default(t._element).trigger(Di)};if(this._element.classList.remove(Ci),this._config.animation){var n=v.getTransitionDurationFromElement(this._element);i.default(this._element).one(v.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(xi);if(r||(r=new t(this,"object"===typeof e&&e),n.data(xi,r)),"string"===typeof e){if("undefined"===typeof r[e])throw new TypeError('No method named "'+e+'"');r[e](this)}}))},s(t,null,[{key:"VERSION",get:function(){return Oi}},{key:"DefaultType",get:function(){return zi}},{key:"Default",get:function(){return Wi}}]),t}();i.default.fn[_i]=Ni._jQueryInterface,i.default.fn[_i].Constructor=Ni,i.default.fn[_i].noConflict=function(){return i.default.fn[_i]=ji,Ni._jQueryInterface},t.Alert=A,t.Button=Q,t.Carousel=Yt,t.Collapse=fe,t.Dropdown=en,t.Modal=Wn,t.Popover=Sr,t.Scrollspy=$r,t.Tab=ki,t.Toast=Ni,t.Tooltip=hr,t.Util=v,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(4),n(96))},function(t,e,n){"use strict";n.r(e);var r=n(98);class i{constructor(t,e){this.attachment=t,this.element=e,this.directUpload=new r.DirectUpload(t.file,this.directUploadUrl,this)}start(){this.directUpload.create(this.directUploadDidComplete.bind(this))}directUploadWillStoreFileWithXHR(t){t.upload.addEventListener("progress",(t=>{const e=t.loaded/t.total*100;this.attachment.setUploadProgress(e)}))}directUploadDidComplete(t,e){if(t)throw new Error(`Direct upload failed: ${t}`);this.attachment.setAttributes({sgid:e.attachable_sgid,url:this.createBlobUrl(e.signed_id,e.filename)})}createBlobUrl(t,e){return this.blobUrlTemplate.replace(":signed_id",t).replace(":filename",encodeURIComponent(e))}get directUploadUrl(){return this.element.dataset.directUploadUrl}get blobUrlTemplate(){return this.element.dataset.blobUrlTemplate}}addEventListener("trix-attachment-add",(t=>{const e=t.attachment,n=t.target;if(e.file){new i(e,n).start()}}))},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var r=function(e){var n=document.querySelector(e).dataset.url,r={preload:!0,create:!1,maxItems:null,valueField:"id",labelField:"email",searchField:["email","last_name","first_name"],render:{item:function(t,n){return function(t,e,n){var r="".concat(e.first_name||""," ").concat(e.last_name),i=(o=document.getElementById(t.dataset.template).innerHTML.replaceAll("{{{label}}}",n(r)).replaceAll("{{{id}}}",e.id),a=document.createElement("div"),a.innerHTML=o.trim(),a.firstChild);var o,a;return i}(document.querySelector(e),t,n)},option:function(t,e){return"<div class='padded-lateral-10px padded-vertical-5px'>"+e("".concat(t.first_name||""," ").concat(t.last_name))+"</div>"}},load:function(e,r){t.ajax({url:n,type:"GET",dataType:"json",data:{query:e},error:function(){r()},success:function(t){r(t)}})},onItemAdd:function(n,r){var o=document.querySelector('div[data-value="'.concat(n,'"][data-actived]'));o.classList.remove("active"),o.dataset.actived=!1,function(t,e){if(t.parentElement.querySelectorAll(".items div[data-value]").length<=1){i(document.querySelector('div[data-value="'.concat(e,'"][data-actived]')),t.dataset.hiddenInput)}}(document.querySelector(e),n),t('[data-toggle="popover"]').popover({container:"body"})},onDelete:function(n){!function(t,e){var n=document.getElementById(t.dataset.hiddenInput);n&&e.includes(n.value)&&(n.value="")}(document.querySelector(e),n),t(".popover ").remove()}};t(e).selectize(r)};function i(t,e){!function(t){t.parentElement.querySelectorAll("div[data-actived]").forEach((function(t){t.dataset.actived=!1})),t.dataset.actived=!0}(t),function(t,e){var n=document.getElementById(t);n&&(n.value=e.dataset.value)}(e,t)}}).call(this,n(4))},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n(325),i=function(){setTimeout((function(){rocket.classList.add("rocket-move")})),setTimeout((function(){rocket.classList.add("rocket-return"),rocket.classList.remove("rocket-move")}),1500),setTimeout((function(){rocket.classList.add("rocket-is-back")}),3e3),setTimeout((function(){rocket.classList.remove("rocket-is-back"),rocket.classList.remove("rocket-return")}),3500)},o=function(){a(),setTimeout((function(){return i()}),3e4),setTimeout((function(){return s()}),250)},a=function(){setTimeout((function(){t(modal).modal("show")}),2e3)},s=function(){var t=Date.now()+5e3,e={startVelocity:30,spread:360,ticks:60,zIndex:9999};function n(t,e){return l()*(e-t)+t}var i=setInterval((function(){var o=t-Date.now();if(o<=0)return clearInterval(i);var a=o/5e3*80;Object(r.a)(Object.assign({},e,{particleCount:a,origin:{x:n(.1,.3),y:l()-.2}})),Object(r.a)(Object.assign({},e,{particleCount:a,origin:{x:n(.7,.9),y:l()-.2}}))}),250)},l=function(){var t=window.crypto.getRandomValues(new Uint8Array(1))[0].toString().split("");return t.unshift("0","."),+t.join("")}}).call(this,n(4))},function(t,e,n){"use strict";var r={};!function t(e,n,r,i){var o=!!(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;function s(){}function l(t){var r=n.exports.Promise,i=void 0!==r?r:e.Promise;return"function"===typeof i?new i(t):(t(s,s),null)}var u,c,d,h,f,p,m,g,b,v=(d=Math.floor(1e3/60),h={},f=0,"function"===typeof requestAnimationFrame&&"function"===typeof cancelAnimationFrame?(u=function(t){var e=Math.random();return h[e]=requestAnimationFrame((function n(r){f===r||f+d-1<r?(f=r,delete h[e],t()):h[e]=requestAnimationFrame(n)})),e},c=function(t){h[t]&&cancelAnimationFrame(h[t])}):(u=function(t){return setTimeout(t,d)},c=function(t){return clearTimeout(t)}),{frame:u,cancel:c}),y=(g={},function(){if(p)return p;if(!r&&o){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{p=new Worker(URL.createObjectURL(new Blob([e])))}catch(n){return void 0!==typeof console&&"function"===typeof console.warn&&console.warn("\ud83c\udf8a Could not load worker",n),null}!function(t){function e(e,n){t.postMessage({options:e||{},callback:n})}t.init=function(e){var n=e.transferControlToOffscreen();t.postMessage({canvas:n},[n])},t.fire=function(n,r,i){if(m)return e(n,null),m;var o=Math.random().toString(36).slice(2);return m=l((function(r){function a(e){e.data.callback===o&&(delete g[o],t.removeEventListener("message",a),m=null,i(),r())}t.addEventListener("message",a),e(n,o),g[o]=a.bind(null,{data:{callback:o}})}))},t.reset=function(){for(var e in t.postMessage({reset:!0}),g)g[e](),delete g[e]}}(p)}return p}),w={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 k(t,e,n){return function(t,e){return e?e(t):t}(t&&(null!==(r=t[e])&&void 0!==r)?t[e]:w[e],n);var r}function _(t){return t<0?0:Math.floor(t)}function O(t){return parseInt(t,16)}function x(t){return t.map(E)}function E(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:O(e.substring(0,2)),g:O(e.substring(2,4)),b:O(e.substring(4,6))}}function j(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function S(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function P(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 n=e.tick++/e.totalTicks,r=e.x+e.random*e.tiltCos,i=e.y+e.random*e.tiltSin,o=e.wobbleX+e.random*e.tiltCos,s=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-n)+")",t.beginPath(),a&&"path"===e.shape.type&&"string"===typeof e.shape.path&&Array.isArray(e.shape.matrix))t.fill(function(t,e,n,r,i,o,a){var s=new Path2D(t),l=new Path2D;l.addPath(s,new DOMMatrix(e));var u=new Path2D;return u.addPath(l,new DOMMatrix([Math.cos(a)*i,Math.sin(a)*i,-Math.sin(a)*o,Math.cos(a)*o,n,r])),u}(e.shape.path,e.shape.matrix,e.x,e.y,.1*Math.abs(o-r),.1*Math.abs(s-i),Math.PI/10*e.wobble));else if("bitmap"===e.shape.type){var l=Math.PI/10*e.wobble,u=.1*Math.abs(o-r),c=.1*Math.abs(s-i),d=e.shape.bitmap.width*e.scalar,h=e.shape.bitmap.height*e.scalar,f=new DOMMatrix([Math.cos(l)*u,Math.sin(l)*u,-Math.sin(l)*c,Math.cos(l)*c,e.x,e.y]);f.multiplySelf(new DOMMatrix(e.shape.matrix));var p=t.createPattern(e.shape.bitmap,"no-repeat");p.setTransform(f),t.globalAlpha=1-n,t.fillStyle=p,t.fillRect(e.x-d/2,e.y-h/2,d,h),t.globalAlpha=1}else if("circle"===e.shape)t.ellipse?t.ellipse(e.x,e.y,Math.abs(o-r)*e.ovalScalar,Math.abs(s-i)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):function(t,e,n,r,i,o,a,s,l){t.save(),t.translate(e,n),t.rotate(o),t.scale(r,i),t.arc(0,0,1,a,s,l),t.restore()}(t,e.x,e.y,Math.abs(o-r)*e.ovalScalar,Math.abs(s-i)*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,w=5,k=Math.PI/w;w--;)v=e.x+Math.cos(m)*b,y=e.y+Math.sin(m)*b,t.lineTo(v,y),m+=k,v=e.x+Math.cos(m)*g,y=e.y+Math.sin(m)*g,t.lineTo(v,y),m+=k;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(i)),t.lineTo(Math.floor(o),Math.floor(s)),t.lineTo(Math.floor(r),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}function C(t,n){var a,s=!t,u=!!k(n||{},"resize"),c=!1,d=k(n,"disableForReducedMotion",Boolean),h=o&&!!k(n||{},"useWorker")?y():null,f=s?j:S,p=!(!t||!h)&&!!t.__confetti_initialized,m="function"===typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function g(e,n,o){for(var s,u,c,d,h,p=k(e,"particleCount",_),m=k(e,"angle",Number),g=k(e,"spread",Number),b=k(e,"startVelocity",Number),y=k(e,"decay",Number),w=k(e,"gravity",Number),O=k(e,"drift",Number),E=k(e,"colors",x),j=k(e,"ticks",Number),S=k(e,"shapes"),C=k(e,"scalar"),T=!!k(e,"flat"),M=function(t){var e=k(t,"origin",Object);return e.x=k(e,"x",Number),e.y=k(e,"y",Number),e}(e),A=p,D=[],R=t.width*M.x,L=t.height*M.y;A--;)D.push((s={x:R,y:L,angle:m,spread:g,startVelocity:b,color:E[A%E.length],shape:S[(d=0,h=S.length,Math.floor(Math.random()*(h-d))+d)],ticks:j,decay:y,gravity:w,drift:O,scalar:C,flat:T},u=void 0,c=void 0,u=s.angle*(Math.PI/180),c=s.spread*(Math.PI/180),{x:s.x,y:s.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*s.startVelocity+Math.random()*s.startVelocity,angle2D:-u+(.5*c-Math.random()*c),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:s.color,shape:s.shape,tick:0,totalTicks:s.ticks,decay:s.decay,drift:s.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*s.gravity,ovalScalar:.6,scalar:s.scalar,flat:s.flat}));return a?a.addFettis(D):(a=function(t,e,n,o,a){var s,u,c=e.slice(),d=t.getContext("2d"),h=l((function(e){function l(){s=u=null,d.clearRect(0,0,o.width,o.height),a(),e()}s=v.frame((function e(){!r||o.width===i.width&&o.height===i.height||(o.width=t.width=i.width,o.height=t.height=i.height),o.width||o.height||(n(t),o.width=t.width,o.height=t.height),d.clearRect(0,0,o.width,o.height),(c=c.filter((function(t){return P(d,t)}))).length?s=v.frame(e):l()})),u=l}));return{addFettis:function(t){return c=c.concat(t),h},canvas:t,promise:h,reset:function(){s&&v.cancel(s),u&&u()}}}(t,D,f,n,o),a.promise)}function b(n){var r=d||k(n,"disableForReducedMotion",Boolean),i=k(n,"zIndex",Number);if(r&&m)return l((function(t){t()}));s&&a?t=a.canvas:s&&!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}(i),document.body.appendChild(t)),u&&!p&&f(t);var o={width:t.width,height:t.height};function b(){if(h){var e={getBoundingClientRect:function(){if(!s)return t.getBoundingClientRect()}};return f(e),void h.postMessage({resize:{width:e.width,height:e.height}})}o.width=o.height=null}function v(){a=null,u&&(c=!1,e.removeEventListener("resize",b)),s&&t&&(document.body.removeChild(t),t=null,p=!1)}return h&&!p&&h.init(t),p=!0,h&&(t.__confetti_initialized=!0),u&&!c&&(c=!0,e.addEventListener("resize",b,!1)),h?h.fire(n,o,v):g(n,o,v)}return b.reset=function(){h&&h.reset(),a&&a.reset()},b}function T(){return b||(b=C(null,{useWorker:!0,resize:!0})),b}n.exports=function(){return T().apply(this,arguments)},n.exports.reset=function(){T().reset()},n.exports.create=C,n.exports.shapeFromPath=function(t){if(!a)throw new Error("path confetti are not supported in this browser");var e,n;"string"===typeof t?e=t:(e=t.path,n=t.matrix);var r=new Path2D(e),i=document.createElement("canvas").getContext("2d");if(!n){for(var o,s,l=1e3,u=l,c=l,d=0,h=0,f=0;f<l;f+=2)for(var p=0;p<l;p+=2)i.isPointInPath(r,f,p,"nonzero")&&(u=Math.min(u,f),c=Math.min(c,p),d=Math.max(d,f),h=Math.max(h,p));o=d-u,s=h-c;var m=Math.min(10/o,10/s);n=[m,0,0,m,-Math.round(o/2+u)*m,-Math.round(s/2+c)*m]}return{type:"path",path:e,matrix:n}},n.exports.shapeFromText=function(t){var e,n=1,r="#000000",i='"Twemoji Mozilla", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "system emoji", sans-serif';"string"===typeof t?e=t:(e=t.text,n="scalar"in t?t.scalar:n,i="fontFamily"in t?t.fontFamily:i,r="color"in t?t.color:r);var o=10*n,a=o+"px "+i,s=new OffscreenCanvas(o,o),l=s.getContext("2d");l.font=a;var u=l.measureText(e),c=Math.floor(u.width),d=Math.floor(u.fontBoundingBoxAscent+u.fontBoundingBoxDescent);(l=(s=new OffscreenCanvas(c,d)).getContext("2d")).font=a,l.fillStyle=r,l.fillText(e,0,o);var h=1/n;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[h,0,0,h,-c*h/2,-d*h/2]}}}(function(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:this||{}}(),r,!1),e.a=r.exports;r.exports.create},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return d}));var r=n(65),i=n.n(r);function o(e,n,r){t(e).html(""),new i.a.Line(e,{color:"#c4d0fa",strokeWidth:5,duration:1500,easing:"bounce",trailColor:r,trailWidth:5,text:{value:n+"%",className:"text-blue-dark text-12px"},from:{color:"#c4d0fa",width:5},to:{color:"#c4d0fa",width:5},step:function(t,e){e.path.setAttribute("stroke",t.color),e.path.setAttribute("stroke-width",t.width),e.path.setAttribute("stroke-linecap","round")}}).animate(Math.max(.01,n/100))}function a(t){new i.a.Circle("#onboarding-score",{color:"#FFFFFF",strokeWidth:12,duration:1500,easing:"easeInOut",text:{value:t+"%",className:"onboarding-score-text"},from:{color:"#FFFFFF",width:10},to:{color:"#FFFFFF",width:12},step:function(t,e){e.path.setAttribute("stroke",t.color),e.path.setAttribute("stroke-width",t.width)}}).animate(t/100)}function s(e){t("#onboarding-score").html(""),new i.a.Line("#onboarding-score",{color:"#2e5bec",strokeWidth:12,duration:1500,easing:"bounce",trailColor:"#f2f2f2",trailWidth:12,text:{value:e+"%",className:"onboarding-score-label d-none"},from:{color:"#2e5bec",width:12},to:{color:"#2e5bec",width:12},step:function(t,e){e.path.setAttribute("stroke",t.color),e.path.setAttribute("stroke-width",t.width),e.path.setAttribute("stroke-linecap","round")}}).animate(Math.max(.01,e/100));var n=document.getElementById("onboarding-score").dataset.endingUrl;100===e&&t.ajax({url:n,type:"POST"})}function l(t,e){var n="mobile"===e?8:3,r="mobile"===e?n-1:n,o="mobile"===e?"#FFF":"#f2f2f2",a="mobile"===e?{style:function(t){return t<.2?{color:"#828282",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}:{color:"#FFF",position:"absolute",left:"".concat(100*t,"%"),top:"50%",transform:"translate(-110%, -50%)"}}(t),autoStyleContainer:!1}:"",s=document.getElementById("progress-bar-inline");new i.a.Line(s,{strokeWidth:n,easing:"easeInOut",duration:1e3,color:"#46CE92",trailColor:o,trailWidth:n,svgStyle:{width:"100%",borderRadius:"25px",height:"15px"},text:a,step:function(t,n){"mobile"===e&&n.setText(Math.round(100*n.value())+"%"),n.path.setAttribute("stroke-width",r)}}).animate(t)}function u(t){var e=document.querySelector(t),n=e.dataset.progress;e.innerHTML="",new i.a.Line(t,{color:e.dataset.color,strokeWidth:e.dataset.stroke,duration:1500,easing:"bounce",trailColor:e.dataset.backgroundColor,trailWidth:e.dataset.trail,text:{value:n+"%",className:"text-".concat(c(n)," text-12px")},from:{color:e.dataset.color,width:e.dataset.stroke},to:{color:e.dataset.color,width:e.dataset.stroke},step:function(t,e){e.path.setAttribute("stroke",t.color),e.path.setAttribute("stroke-width",t.width),e.path.setAttribute("stroke-linecap","round")}}).animate(Math.max(.01,n/100))}function c(t){return t>50?"white":"blue-dark"}function d(t){var e=document.querySelector(t),n=e.dataset.progress;e.innerHTML="",new i.a.Line(t,{color:e.dataset.color,strokeWidth:e.dataset.stroke,duration:1500,easing:"bounce",trailColor:e.dataset.backgroundColor,trailWidth:e.dataset.trail,from:{color:e.dataset.color,width:e.dataset.stroke},to:{color:e.dataset.color,width:e.dataset.stroke},step:function(t,e){e.path.setAttribute("stroke",t.color),e.path.setAttribute("stroke-width",t.width),e.path.setAttribute("stroke-linecap","round")}}).animate(Math.max(.1,n/100))}}).call(this,n(4))},,function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){var r,i;(i=function(){"use strict";var t={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"Europe/London":["Africa/Casablanca"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},e=function(t){var e=-t.getTimezoneOffset();return null!==e?e:0},n=function(){var n=e(new Date(t.BASELINE_YEAR,0,2)),r=e(new Date(t.BASELINE_YEAR,5,2)),i=n-r;return i<0?n+",1":i>0?r+",1,s":n+",0"},r=function(t){for(var e=new Date(t,0,1,0,0,1,0).getTime(),n=new Date(t,12,31,23,59,59).getTime(),r=e,i=new Date(r).getTimezoneOffset(),a=null,s=null;r<n-864e5;){var l=new Date(r),u=l.getTimezoneOffset();u!==i&&(u<i&&(a=l),u>i&&(s=l),i=u),r+=864e5}return!(!a||!s)&&{s:o(a).getTime(),e:o(s).getTime()}},o=function e(n,r,i){"undefined"===typeof r&&(r=t.DAY,i=t.HOUR);for(var o=new Date(n.getTime()-r).getTime(),a=n.getTime()+r,s=new Date(o).getTimezoneOffset(),l=o,u=null;l<a-i;){var c=new Date(l);if(c.getTimezoneOffset()!==s){u=c;break}l+=i}return r===t.DAY?e(u,t.HOUR,t.MINUTE):r===t.HOUR?e(u,t.MINUTE,t.SECOND):u},a=function(e){var n=function(){for(var t=[],e=0;e<i.olson.dst_rules.years.length;e++){var n=r(i.olson.dst_rules.years[e]);t.push(n)}return t}(),o=function(t){for(var e=0;e<t.length;e++)if(!1!==t[e])return!0;return!1}(n);return o?function(e,n){for(var r=function(r){for(var i=0,o=0;o<e.length;o++)if(r.rules[o]&&e[o]){if(!(e[o].s>=r.rules[o].s&&e[o].e<=r.rules[o].e)){i="N/A";break}if(i=0,i+=Math.abs(e[o].s-r.rules[o].s),(i+=Math.abs(r.rules[o].e-e[o].e))>t.MAX_SCORE){i="N/A";break}}return i=function(t,e,n,r){if("N/A"!==n)return n;if("Asia/Beirut"===e){if("Africa/Cairo"===r.name&&13983768e5===t[6].s&&14116788e5===t[6].e)return 0;if("Asia/Jerusalem"===r.name&&13959648e5===t[6].s&&14118588e5===t[6].e)return 0}else if("America/Santiago"===e){if("America/Asuncion"===r.name&&14124816e5===t[6].s&&1397358e6===t[6].e)return 0;if("America/Campo_Grande"===r.name&&14136912e5===t[6].s&&13925196e5===t[6].e)return 0}else if("America/Montevideo"===e){if("America/Sao_Paulo"===r.name&&14136876e5===t[6].s&&1392516e6===t[6].e)return 0}else if("Pacific/Auckland"===e&&"Pacific/Fiji"===r.name&&14142456e5===t[6].s&&13961016e5===t[6].e)return 0;return n}(e,n,i,r),i},o={},a=i.olson.dst_rules.zones,s=a.length,l=t.AMBIGUITIES[n],u=0;u<s;u++){var c=a[u],d=r(a[u]);"N/A"!==d&&(o[c.name]=d)}for(var h in o)if(o.hasOwnProperty(h))for(var f=0;f<l.length;f++)if(l[f]===h)return h;return n}(n,e):e};return{determine:function(){var r=function(){var t,e;if("undefined"!==typeof Intl&&"undefined"!==typeof Intl.DateTimeFormat&&"undefined"!==typeof(t=Intl.DateTimeFormat())&&"undefined"!==typeof t.resolvedOptions)return(e=t.resolvedOptions().timeZone)&&(e.indexOf("/")>-1||"UTC"===e)&&0!=e.indexOf("Etc")?e:void 0}();return r||(r=i.olson.timezones[n()],"undefined"!==typeof t.AMBIGUITIES[r]&&(r=a(r))),{name:function(){return r},stdTimezoneOffset:function(){return-n().split(",")[0]},timezoneOffset:function(){return-e(new Date)}}}}}()).olson=i.olson||{},i.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Argentina/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,s":"Africa/Windhoek","120,1":"Asia/Beirut","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Kolkata","345,0":"Asia/Kathmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},i.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"Africa/Casablanca",rules:[{e:12202236e5,s:12122784e5},{e:12508092e5,s:12438144e5},{e:1281222e6,s:12727584e5},{e:13120668e5,s:13017888e5},{e:13489704e5,s:1345428e6},{e:13828392e5,s:13761e8},{e:14142888e5,s:14069448e5}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12885156e5,s:12703752e5},{e:13199652e5,s:13018248e5},{e:13514148e5,s:13332744e5},{e:13828644e5,s:13653288e5},{e:1414314e6,s:13967784e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]}]},"undefined"!==typeof t.exports?t.exports=i:null!==n(333)&&null!=n(334)?void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r):window.jstz=i},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){var r,i,o,a;a=function(t){"use strict";class e extends t.Controller{add(t){t.preventDefault();const e=this.templateTarget.innerHTML.replace(/NEW_RECORD/g,(new Date).getTime().toString());this.targetTarget.insertAdjacentHTML("beforebegin",e)}remove(t){t.preventDefault();const e=t.target.closest(this.wrapperSelectorValue);"true"===e.dataset.newRecord?e.remove():(e.style.display="none",e.querySelector("input[name*='_destroy']").value="1")}}return e.targets=["target","template"],e.values={wrapperSelector:{type:String,default:".nested-form-wrapper"}},e},typeof t<"u"?t.exports=a(n(1)):(i=[n(1)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){"use strict";(function(t){function r(){t("".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",".toast")).toast("show")}n.d(e,"a",(function(){return r}))}).call(this,n(4))},function(t,e,n){"use strict";function r(t,e){var n=location.pathname,r=n.substring(0,3).slice(1);t.includes(r)&&(n=n.slice(3)),location.pathname=e+n}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";(function(t){function r(e){var n=t("#form-"+e).find("div[data-target=paperworks-lists]");n.toggleClass("d-none"),n.hasClass("d-none")?t("#see-more-form-"+e).html("<i class='fad fa-chevron-double-down'></i>"):t("#see-more-form-"+e).html("<i class='fad fa-chevron-double-up'></i>")}n.d(e,"a",(function(){return r}))}).call(this,n(4))},function(t,e,n){"use strict";(function(t){function r(e){var n;t.ajax({url:e.dataset.url,type:(n=e.checked,n?"PATCH":"DELETE")})}n.d(e,"a",(function(){return r}))}).call(this,n(4))},function(t,e,n){"use strict";(function(t){function r(e){var n=document.getElementById("email-template-preview-text").innerHTML,r=document.getElementById("email-template-preview-subject").innerHTML;t.ajax({url:e.dataset.url,type:"POST",data:{preview_content:n,subject:r}})}n.d(e,"a",(function(){return r}))}).call(this,n(4))},,,,,,,function(t,e,n){"use strict";(function(t){function r(e,n,r,i){!function(e){t("".concat(e," div[data-toggle=popover]")).popover("hide")}(e),function(e){t(e).addClass("bg-green text-white"),t(e).html(t("template#action-done").html())}(e),function(e,n,r){t(e).fadeOut(400,(function(){n&&function(e,n){e.hide(),t("#actions-list-".concat(n)).append(e),e.fadeIn(50),t('[data-toggle="popover"]').popover()}(n,r),t(this).remove()}))}(e,r,n),i&&function(e){t("#next-actions-buttons-".concat(e)).remove()}(n)}function i(t,e){var n=document.getElementById("employee-block-".concat(t)),r=parseInt(n.dataset.actionsCount);n.dataset.actionsCount=r+e}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))}).call(this,n(4))},function(t,e,n){"use strict";(function(t){function r(e,n){function r(e,n,r){Math.floor(t(document).height())-Math.floor(t(window).height()+t(window).scrollTop())===0&&(i(),addNextActions(e,n,r))}t(document).on("touchmove",(function(t){r(t,e,n)})),t(document).on("scroll",(function(t){r(t,e,n)})),r(event,e,n)}function i(){t(document).off("touchmove"),t(document).off("scroll")}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}))}).call(this,n(4))},function(t,e,n){},,,,,function(t,e,n){"use strict";(function(t){function r(){t("#sidebar").mCustomScrollbar({theme:"minimal"}),t(".dismiss, .overlay").on("click",(function(){t("#sidebar").removeClass("active"),t(".overlay").removeClass("active")})),t("#sidebarCollapse").on("click",(function(){t("#sidebar").addClass("active"),t(".overlay").addClass("active"),t(".collapse.in").toggleClass("in"),t("a[aria-expanded=true]").attr("aria-expanded","false")}))}n.d(e,"a",(function(){return r}))}).call(this,n(4))},function(t,e,n){"use strict";(function(t){function r(e,n){1!=n&&(e.preventDefault(),t("#quiz-page-"+n).addClass("d-none"),t("#quiz-page-"+(n-1)).removeClass("d-none"),window.scrollTo(0,0))}n.d(e,"a",(function(){return r}))}).call(this,n(4))},function(t,e,n){"use strict";(function(t){function r(e,n){e.preventDefault(),t.ajax({url:n,type:"GET"})}n.d(e,"a",(function(){return r}))}).call(this,n(4))},function(t,e,n){"use strict";function r(t){var e=document.querySelector(t.dataset.target),n=document.querySelector(t.dataset.list);e.value=t.dataset.value,n.querySelectorAll("div[data-list]").forEach((function(t){!function(t){t.dataset.selectedClasses.split(",").forEach((function(e){t.classList.remove(e.trim())})),t.dataset.unselectedClasses.split(",").forEach((function(e){t.classList.add(e.trim())}))}(t)})),function(t){t.dataset.selectedClasses.split(",").forEach((function(e){t.classList.add(e.trim())})),t.dataset.unselectedClasses.split(",").forEach((function(e){t.classList.remove(e.trim())}))}(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){document.querySelector(t).select(),document.execCommand("copy")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";(function(t){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fr",n=document.getElementById("user_email"),r=document.getElementById("email-checks-send-email");r&&r.addEventListener("click",(function(t){return i()})),document.addEventListener("keydown",(function(t){"Enter"===t.key&&i()}));var i=function(){t.ajax({url:"/"+e+"/auth_strategies",type:"POST",dataType:"script",data:{email:n.value}})}}n.d(e,"a",(function(){return r}))}).call(this,n(4))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){o(i()),a(i()),s("actions"),s("tracks")},i=function(){var t=document.querySelectorAll(".employee-block"),e=[];return t.forEach((function(t){return e.push(+t.dataset.actionsCount)})),e},o=function(t){var e=t.length>0?t.reduce((function(t,e){return t+e})):0,n=document.getElementById("actions-count");n&&(n.innerHTML=e)},a=function(t){var e=document.getElementById("tracks-count");e&&(e.innerHTML=t.length)},s=function(t){var e=document.getElementById("".concat(t,"-count"));if(e){var n=+e.innerText,r=document.getElementById("".concat(t,"-count-label")),i="";switch(n){case 0:i=r.dataset.labelZero;break;case 1:i=r.dataset.labelOne;break;default:i=r.dataset.labelMore}r.innerHTML=i}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r}));var r=function(){t("#modal-full iframe").attr("src",t("#modal-full iframe").attr("src"))}}).call(this,n(4))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return s}));var r=n(27),i=n(5);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(){var e=document.getElementById("chart-modules");new r.a(e,{animation:150,filter:".undraggable",ghostClass:"opacity-40",onEnd:function(e){var n=[];o(e.target.children).forEach((function(t,e){var r=t.dataset.id;r&&n.push(r)})),t.ajax({url:"/hr/charts/chart_assignment_positions",type:"post",headers:{"X-CSRF-Token":Object(i.a)()},data:{chart_assignment:n},dataType:"script"})}})}}).call(this,n(4))},function(t,e,n){"use strict";function r(t){var e=document.getElementById("available-actions-counter"),n=document.getElementById("done-actions-counter"),r=t.closest(".timeline-section");if(!r)return t.remove(),"exit_v1";!function(t){setTimeout((function(){var e,n=t.querySelector(".action-handler"),r=null===(e=document.querySelector("#check-circle-component"))||void 0===e?void 0:e.innerHTML;r&&(n.innerHTML=r)}),750)}(t),setTimeout((function(){t.classList.add("fade-out"),function(t){if(t.classList.contains("first-action")){for(var e=t.nextElementSibling;e&&e.classList.contains("fade-out");)e=e.nextElementSibling;e&&(e.classList.add("first-action"),i(e))}}(t),function(){var t=document.getElementById("missing-completion-actions");if(t&&0===t.querySelectorAll(".user-action:not(.fade-out)").length){document.getElementById("missing-validation-actions").classList.remove("d-none")}}(),function(t,e){e&&0===e.querySelectorAll(".user-action:not(.fade-out").length?(e.classList.add("fade-out"),function(t,e){if(t.classList.contains("first-action")){for(var n=e.nextElementSibling;n&&n.classList.contains("fade-out");)n=n.nextElementSibling;if(n){var r=n.querySelector(".user-action:not(.fade-out)");r&&(r.classList.add("first-action"),i(r))}else{var o=document.getElementById("available"),a=document.querySelector("#empty-state-content").innerHTML;o.innerHTML=a}}}(t,e),o(e,e)):(o(t,t),o(e,t))}(t,r),function(t){var e=t.getAttribute("data-url-to-refresh-done-actions");fetch(e,{headers:{"Content-Type":"application/json",Accept:"application/json"},method:"GET"}).then((function(t){return t.json()})).then((function(t){document.getElementById("done").innerHTML=t.timeline_html})).catch((function(t){console.log(t)}))}(t),a(e,-1),a(n,1),function(t,e){if(t&&e){var n=document.getElementById("future-actions-counter"),r=parseInt(t.dataset.count),i=parseInt(e.dataset.count),o=parseInt(n.dataset.count),a=Math.round(r/(r+i+o)*100);document.getElementById("onboarding-progress").innerHTML='\n      <label>\n        <progress value="'.concat(Math.max(7,a),'" max="100" style="--color: var(--custom-color-primary);" id="onboarding-score">').concat(a,"</progress>\n        ").concat(a," %\n      </label>\n    ")}}(n,e)}),2e3)}function i(t){var e=t.querySelector(".action-handler .first-action-state");e&&e.classList.remove("d-none");var n=t.querySelector(".action-handler .regular-action-state");n&&n.classList.add("d-none")}function o(t,e){e.style.height="".concat(e.offsetHeight,"px");for(var n=t.nextElementSibling,r=function(){var t,r,i,o,a,s,l,u,c,d,h,f=0;n.style.getPropertyValue("--move-up-distance")&&(f=parseFloat(n.style.getPropertyValue("--move-up-distance"))||0),e.classList.contains("timeline-section")?(s=(a=e).querySelectorAll(".user-action"),l=s[s.length-1],u=l.offsetHeight,c=parseFloat(getComputedStyle(l).marginBottom),d=a.querySelector(".title").offsetHeight,h=parseFloat(getComputedStyle(a).marginBottom),t=u+c+d+h):(i=(r=e).offsetHeight,o=parseFloat(getComputedStyle(r).marginBottom),t=i+o),f-=t,n.style.setProperty("--move-up-distance","".concat(f,"px")),n.style.setProperty("--move-up-initial-position","".concat(f+t,"px")),n.classList.add("move-up");var p=n;p.addEventListener("animationend",(function(){p.style.transform="translateY(".concat(f,"px)"),p.classList.remove("move-up")})),n=n.nextElementSibling};n;)r()}function a(t,e){if(t){var n=parseInt(t.dataset.count)+e;t.dataset.count=n,t.innerText=n>10?"10+":n.toString()}}n.d(e,"a",(function(){return r}))},,,function(t,e,n){"use strict";n.r(e),function(t){var e=n(1),r=n(79),i=n(335),o=n.n(i),a=(n(275),n(316),n(4)),s=n.n(a),l=(n(320),n(80)),u=n(23),c=n.n(u),d=n(336),h=n(354),f=n(19),p=n(99),m=n(323),g=n(8),b=n(49),v=n(95),y=n(347),w=n(355),k=n(67),_=n(338),O=n(280),x=n(339),E=n(356),j=n(340),S=n(77),P=n(348),C=n(357),T=n(358),M=n(45),A=n(359),D=n(360),R=n(2),L=(n(328),n(73)),I=(n(329),n(38)),W=(n(330),n(47)),z=(n(331),n(48)),N=n.n(z),F=n(92),H=n(326),B=n(281),V=n.n(B),q=n(324),Y=n(337),U=n(361),G=n(362),X=(n(349),n(363));function J(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n(282),n(322),window.Stimulus=e.Application.start();var $=n(283),Q=n(284);Stimulus.load(Object(r.a)($).concat(Object(r.a)(Q))),Stimulus.register("nested-form",o.a),window.$=window.jQuery=n(4),window.identifyUser=l.a,window.trackPageLoad=l.b,window.moment=c.a,t.Defaults.modifiers.computeStyle.gpuAcceleration=!1,n(321),document.querySelectorAll('[data-toggle="popover"]').length>0&&s()('[data-toggle="popover"]').popover({container:"body",delay:300,animation:!1}),window.initNotifications=d.a,document.querySelector(".mobile-device")&&(window.initSidebar=h.a),window.flash=f.a,document.querySelector(".selectize")&&(window.initializeSelectize=p.a,window.initializeEmployeesSelectize=m.b,window.activeItem=m.a),window.toggleColumnFilter=g.toggleColumnFilter,window.addNextActions=b.a,window.validateAction=b.n,window.handoverDownloaded=b.e,window.openResourceContent=b.i,window.planMeeting=b.j,window.destroyMeeting=b.b,window.dismissAction=b.c,document.getElementById("onboardee_dashboard")&&(window.scrollToAlertAction=b.k,Object(b.k)()),document.getElementById("manager_dashboard")&&(window.filterActions=b.d,window.initShowOnboardeeBlock=b.h,window.initCloseOnboardeeBlock=b.f,window.updateCount=b.l,window.initNextActionsButton=b.g,window.uploadPaperworkDocument=b.m),window.initNavigatorSection=v.b,window.initSmoothScrolling=v.c,window.displayKitCoordinators=v.a,window.scrollSmoothTo=v.e,window.scrollToNextBlock=v.f,window.updateDashboardAfterValidation=y.b,window.updateActionCountFor=y.a,window.prevQuestion=w.a,window.selectSurveyAnswer=k.a,window.togglePaperworksDisplay=_.a,window.downloadPaperworkDocument=O.a,window.changeSpecificFileData=x.a,document.getElementById("modal-badges")&&(window.openBadgeViewFor=E.a),window.sendTestEmail=j.a,window.initPieChart=S.a,window.initBottomLoading=P.a,window.stopBottomLoading=P.b,window.selectOption=C.a,window.copyOnClick=T.a,window.scrollToElement=M.a,window.verifyEmail=A.a,window.updateManagerDashboardCount=D.a,document.getElementById("meet_at_calendar")&&(window.Calendar=R.a,window.dayGridPlugin=I.d,window.listPlugin=L.a,window.timeGridPlugin=W.a,window.allLocales=N.a,window.initializeMeetAtCalendar=F.f,Object(F.f)()),document.getElementById("onboardee_track")&&(window.Calendar=R.a,window.dayGridPlugin=I.d,window.listPlugin=L.a,window.timeGridPlugin=W.a,window.allLocales=N.a,Object(v.d)(),document.getElementById("calendar_d1")&&Object(F.a)(),document.getElementById("calendar_w1")&&Object(F.c)(),document.getElementById("calendar_w1_mobile")&&Object(F.d)(),document.getElementById("calendar_m1")&&Object(F.b)(),document.getElementById("calendar_y1")&&Object(F.e)()),window.progressBarManagerDashboard=H.b,window.progressBarOnboardee=H.c,window.progressBarDashboard=H.a,window.progressBarOnboardeeShow=H.d,window.progressLineWithText=H.e,window.progressLineWithoutText=H.f;var Z=V.a.determine();document.cookie="browser_time_zone="+Z.name()+"; path=/",window.rocketMoveAround=q.b,window.celebrate=q.a,window.changeLocale=Y.a,"serviceWorker"in navigator&&window.addEventListener("load",(function(){navigator.serviceWorker.getRegistrations().then((function(t){var e,n=J(t);try{for(n.s();!(e=n.n()).done;){e.value.unregister()}}catch(r){n.e(r)}finally{n.f()}})).catch((function(t){console.error("Service Worker registration failed: ",t)}))})),window.stopVideo=U.a,window.draggableCharts=G.a,window.updateBoardeeActions=X.a}.call(this,n(96).default)}],[[366,200,0,1]]]);
//# sourceMappingURL=application-6f4c4fee307913c406a7.chunk.js.map