vendor: 4,450 bytes, line 1
1var Ca=Object.defineProperty,Da=Object.defineProperties,Sa=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,xa=Object.prototype.hasOwnProperty,ka=Object.prototype.propertyIsEnumerable,Fr=(i,D,K)=>D in i?Ca(i,D,{enumerable:!0,configurable:!0,writable:!0,value:K}):i[D]=K,To=(i,D)=>{for(var K in D||(D={}))xa.call(D,K)&&Fr(i,K,D[K]);if(Nr)for(var K of Nr(D))ka.call(D,K)&&Fr(i,K,D[K]);return i},Yo=(i,D)=>Da(i,Sa(D));!function(i,D){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=i.document?D(i,!0):function(K){if(!K.document)throw new Error("jQuery requires a window with a document");return D(K)}:D(i)}("undefined"!=typeof window?window:this,function(i,D){"use strict";function K(y){return null!=y&&y===y.window}var F=[],l=i.document,r=Object.getPrototypeOf,a=F.slice,u=F.concat,b=F.push,L=F.indexOf,W={},R=W.toString,k=W.hasOwnProperty,N=k.toString,I=N.call(Object),x={},S=function(y){return"function"==typeof y&&"number"!=typeof y.nodeType},A={type:!0,src:!0,nonce:!0,noModule:!0};function O(y,B,J){var Q,_t,Ct=(J=J||l).createElement("script");if(Ct.text=y,B)for(Q in A)(_t=B[Q]||B.getAttribute&&B.getAttribute(Q))&&Ct.setAttribute(Q,_t);J.head.appendChild(Ct).parentNode.removeChild(Ct)}function H(y){return null==y?y+"":"object"==typeof y||"function"==typeof y?W[R.call(y)]||"object":typeof y}var z="3.4.1",v=function(y,B){return new v.fn.init(y,B)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function ft(y){var B=!!y&&"length"in y&&y.length,J=H(y);return!S(y)&&!K(y)&&("array"===J||0===B||"number"==typeof B&&0<B&&B-1 in y)}v.fn=v.prototype={jquery:z,constructor:v,length:0,toArray:function(){return a.call(this)},get:function(y){return null==y?a.call(this):y<0?this[y+this.length]:this[y]},pushStack:function(y){var B=v.merge(this.constructor(),y);return B.prevObject=this,B},each:function(y){return v.each(this,y)},map:function(y){return this.pushStack(v.map(this,function(B,J){return y.call(B,J,B)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(y){var B=this.length,J=+y+(y<0?B:0);return this.pushStack(0<=J&&J<B?[this[J]]:[])},end:function(){return this.prevObject||this.constructor()},push:b,sort:F.sort,splice:F.splice},v.extend=v.fn.extend=function(){var y,B,J,Q,_t,Ct,Mt=arguments[0]||{},te=1,ie=arguments.length,re=!1;for("boolean"==typeof Mt&&(re=Mt,Mt=arguments[te]||{},te++),"object"==typeof Mt||S(Mt)||(Mt={}),te===ie&&(Mt=this,te--);te<ie;te++)if(null!=(y=arguments[te]))for(B in y)Q=y[B],"__proto__"!==B&&Mt!==Q&&(re&&Q&&(v.isPlainObject(Q)||(_t=Array.isArray(Q)))?(J=Mt[B],Ct=_t&&!Array.isArray(J)?[]:_t||v.isPlainObject(J)?J:{},_t=!1,Mt[B]=v.extend(re,Ct,Q)):void 0!==Q&&(Mt[B]=Q));return Mt},v.extend({expando:"jQuery"+(z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(y){throw new Error(y)},noop:function(){},isPlainObject:function(y){var B,J;return!(!y||"[object Object]"!==R.call(y)||(B=r(y))&&("function"!=typeof(J=k.call(B,"constructor")&&B.constructor)||N.call(J)!==I))},isEmptyObject:function(y){var B;for(B in y)return!1;return!0},globalEval:function(y,B){O(y,{nonce:B&&B.nonce})},each:function(y,B){var J,Q=0;if(ft(y))for(J=y.length;Q<J&&!1!==B.call(y[Q],Q,y[Q]);Q++);else for(Q in y)if(!1===B.call(y[Q],Q,y[Q]))break;return y},trim:function(y){return null==y?"":(y+"").replace(tt,"")},makeArray:function(y,B){var J=B||[];return null!=y&&(ft(Object(y))?v.merge(J,"string"==typeof y?[y]:y):b.call(J,y)),J},inArray:function(y,B,J){return null==B?-1:L.call(B,y,J)},merge:function(y,B){for(var J=+B.length,Q=0,_t=y.length;Q<J;Q++)y[_t++]=B[Q];return y.length=_t,y},grep:function(y,B,J){for(var Q=[],_t=0,Ct=y.length,Mt=!J;_t<Ct;_t++)!B(y[_t],_t)!=Mt&&Q.push(y[_t]);return Q},map:function(y,B,J){var Q,_t,Ct=0,Mt=[];if(ft(y))for(Q=y.length;Ct<Q;Ct++)null!=(_t=B(y[Ct],Ct,J))&&Mt.push(_t);else for(Ct in y)null!=(_t=B(y[Ct],Ct,J))&&Mt.push(_t);return u.apply([],Mt)},guid:1,support:x}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=F[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(y,B){W["[object "+B+"]"]=B.toLowerCase()});var Rt=function(y){function B(At,Qt,pe){var He="0x"+Qt-65536;return He!=He||pe?Qt:He<0?String.fromCharCode(65536+He):String.fromCharCode(He>>10|55296,1023&He|56320)}function J(){pi()}var Q,_t,Ct,Mt,te,ie,re,Ie,je,ke,Be,pi,oi,gi,Ki,Vi,kn,bs,Hi,sn="sizzle"+1*ne
vendor: 5,470 bytes, line 1
1w Date,Mi=y.document,Yi=0,Ps=0,ys=Ms(),os=Ms(),Es=Ms(),rs=Ms(),as=function(At,Qt){return At===Qt&&(Be=!0),0},xs={}.hasOwnProperty,gn=[],cn=gn.pop,Pn=gn.push,pn=gn.push,qn=gn.slice,vi=function(At,Qt){for(var pe=0,He=At.length;pe<He;pe++)if(At[pe]===Qt)return pe;return-1},T="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",X="[\\x20\\t\\r\\n\\f]",pt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",Et="\\["+X+"*("+pt+")(?:"+X+"*([*^$|!~]?=)"+X+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+pt+"))|)"+X+"*\\]",se=":("+pt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Et+")*)|.*)\\)|)",Ae=new RegExp(X+"+","g"),Re=new RegExp("^"+X+"+|((?:^|[^\\\\])(?:\\\\.)*)"+X+"+$","g"),Ue=new RegExp("^"+X+"*,"+X+"*"),$e=new RegExp("^"+X+"*([>+~]|"+X+")"+X+"*"),Ge=new RegExp(X+"|>"),Xt=new RegExp(se),Zt=new RegExp("^"+pt+"$"),et={ID:new RegExp("^#("+pt+")"),CLASS:new RegExp("^\\.("+pt+")"),TAG:new RegExp("^("+pt+"|[*])"),ATTR:new RegExp("^"+Et),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+X+"*(even|odd|(([+-]|)(\\d*)n|)"+X+"*(?:([+-]|)"+X+"*(\\d+)|))"+X+"*\\)|)","i"),bool:new RegExp("^(?:"+T+")$","i"),needsContext:new RegExp("^"+X+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+X+"*((?:-\\d)?\\d*)"+X+"*\\)|)(?=[^-]|$)","i")},St=/HTML$/i,Vt=/^(?:input|select|textarea|button)$/i,Ce=/^h\d$/i,Me=/^[^{]+\{\s*\[native \w/,ei=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Si=/[+~]/,Ui=new RegExp("\\\\([\\da-f]{1,6}"+X+"?|("+X+")|.)","ig"),on=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Kn=function(At,Qt){return Qt?"\0"===At?"\ufffd":At.slice(0,-1)+"\\"+At.charCodeAt(At.length-1).toString(16)+" ":"\\"+At},_s=Xs(function(At){return!0===At.disabled&&"fieldset"===At.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{pn.apply(gn=qn.call(Mi.childNodes),Mi.childNodes)}catch(At){pn={apply:gn.length?function(Qt,pe){Pn.apply(Qt,qn.call(pe))}:function(Qt,pe){for(var He=Qt.length,De=0;Qt[He++]=pe[De++];);Qt.length=He-1}}}function qi(At,Qt,pe,He){var De,Ve,Ke,ii,hi,Oi,Bi,Ni=Qt&&Qt.ownerDocument,ji=Qt?Qt.nodeType:9;if(pe=pe||[],"string"!=typeof At||!At||1!==ji&&9!==ji&&11!==ji)return pe;if(!He&&((Qt?Qt.ownerDocument||Qt:Mi)!==oi&&pi(Qt),Qt=Qt||oi,Ki)){if(11!==ji&&(hi=ei.exec(At)))if(De=hi[1]){if(9===ji){if(!(Ke=Qt.getElementById(De)))return pe;if(Ke.id===De)return pe.push(Ke),pe}else if(Ni&&(Ke=Ni.getElementById(De))&&Hi(Qt,Ke)&&Ke.id===De)return pe.push(Ke),pe}else{if(hi[2])return pn.apply(pe,Qt.getElementsByTagName(At)),pe;if((De=hi[3])&&_t.getElementsByClassName&&Qt.getElementsByClassName)return pn.apply(pe,Qt.getElementsByClassName(De)),pe}if(_t.qsa&&!rs[At+" "]&&(!Vi||!Vi.test(At))&&(1!==ji||"object"!==Qt.nodeName.toLowerCase())){if(Bi=At,Ni=Qt,1===ji&&Ge.test(At)){for((ii=Qt.getAttribute("id"))?ii=ii.replace(on,Kn):Qt.setAttribute("id",ii=sn),Ve=(Oi=ie(At)).length;Ve--;)Oi[Ve]="#"+ii+" "+Gs(Oi[Ve]);Bi=Oi.join(","),Ni=Si.test(At)&&io(Qt.parentNode)||Qt}try{return pn.apply(pe,Ni.querySelectorAll(Bi)),pe}catch(Tn){rs(At,!0)}finally{ii===sn&&Qt.removeAttribute("id")}}}return Ie(At.replace(Re,"$1"),Qt,pe,He)}function Ms(){var At=[];return function Qt(pe,He){return At.push(pe+" ")>Ct.cacheLength&&delete Qt[At.shift()],Qt[pe+" "]=He}}function es(At){return At[sn]=!0,At}function gs(At){var Qt=oi.createElement("fieldset");try{return!!At(Qt)}catch(pe){return!1}finally{Qt.parentNode&&Qt.parentNode.removeChild(Qt),Qt=null}}function Rs(At,Qt){for(var pe=At.split("|"),He=pe.length;He--;)Ct.attrHandle[pe[He]]=Qt}function zs(At,Qt){var pe=Qt&&At,He=pe&&1===At.nodeType&&1===Qt.nodeType&&At.sourceIndex-Qt.sourceIndex;if(He)return He;if(pe)for(;pe=pe.nextSibling;)if(pe===Qt)return-1;return At?1:-1}function Ws(At){return function(Qt){return"input"===Qt.nodeName.toLowerCase()&&Qt.type===At}}function js(At){return function(Qt){var pe=Qt.nodeName.toLowerCase();return("input"===pe||"button"===pe)&&Qt.type===At}}function Us(At){return function(Qt){return"form"in Qt?Qt.parentNode&&!1===Qt.disabled?"label"in Qt?"label"in Qt.parentNode?Qt.parentNode.disabled===At:Qt.disabled===At:Qt.isDisabled===At||Qt.isDisabled!==!At&&_s(Qt)===At:Qt.disabled===At:"label"in Qt&&Qt.disabled===At}}function Is(At){return es(function(Qt){return Qt=+Qt,es(function(pe,He){for(var De,Ve=At([],pe.length,Qt),Ke=Ve.length;Ke--;)pe[De=Ve[Ke]]&&(pe[De]=!(He[De]=pe[De]))})})}function io(At){return At&&void 0!==At.getElementsByTagName&&At}for(Q in _t=qi.support={},te=qi.isXML=function(At){var pe=(At.ownerDocument||At).documentElement;return!St.test(At.namespaceURI||pe&&pe.nodeName||"HTML")},pi=qi.setDocument=function(At){var Qt,pe,He=At?At.ownerDocument||At:Mi;return He!==oi&&9===He.nodeType&&He.documentElement&&(gi=(oi=He).documentElement,Ki=!te(oi),Mi!==oi&&(pe=oi.defaultView)&&pe.top!==pe&&(pe.addEventListener?pe.addEventListener("unload",J,!1):pe.attachEvent&&pe.attachEvent("onunload",J)),_t.attributes=gs(function(De){return De.className="i",!De.getAttribute("className")}),_t.getElementsByTagName=gs(function(De){return De.appendChild(oi.createComment("")),!De.getElementsByTagName("*").length}),_t.getElementsByClassName=Me.test(oi.getElementsByClassName),_t.getById=gs(function(De){return gi.appendChild(De).id=sn,!oi.getElementsByName||!oi.getElementsByName(sn).length}),_t.getById?(Ct.filter.ID=function(De){var Ve=De.replace(Ui,B);return function(Ke){return Ke.getAttribute("id")===Ve}}
vendor: 4,891 bytes, line 1
1,Ct.find.ID=function(De,Ve){if(void 0!==Ve.getElementById&&Ki){var Ke=Ve.getElementById(De);return Ke?[Ke]:[]}}):(Ct.filter.ID=function(De){var Ve=De.replace(Ui,B);return function(Ke){var ii=void 0!==Ke.getAttributeNode&&Ke.getAttributeNode("id");return ii&&ii.value===Ve}},Ct.find.ID=function(De,Ve){if(void 0!==Ve.getElementById&&Ki){var Ke,ii,hi,Oi=Ve.getElementById(De);if(Oi){if((Ke=Oi.getAttributeNode("id"))&&Ke.value===De)return[Oi];for(hi=Ve.getElementsByName(De),ii=0;Oi=hi[ii++];)if((Ke=Oi.getAttributeNode("id"))&&Ke.value===De)return[Oi]}return[]}}),Ct.find.TAG=_t.getElementsByTagName?function(De,Ve){return void 0!==Ve.getElementsByTagName?Ve.getElementsByTagName(De):_t.qsa?Ve.querySelectorAll(De):void 0}:function(De,Ve){var Ke,ii=[],hi=0,Oi=Ve.getElementsByTagName(De);if("*"!==De)return Oi;for(;Ke=Oi[hi++];)1===Ke.nodeType&&ii.push(Ke);return ii},Ct.find.CLASS=_t.getElementsByClassName&&function(De,Ve){if(void 0!==Ve.getElementsByClassName&&Ki)return Ve.getElementsByClassName(De)},kn=[],Vi=[],(_t.qsa=Me.test(oi.querySelectorAll))&&(gs(function(De){gi.appendChild(De).innerHTML="<a id='"+sn+"'></a><select id='"+sn+"-\r\\' msallowcapture=''><option selected=''></option></select>",De.querySelectorAll("[msallowcapture^='']").length&&Vi.push("[*^$]="+X+"*(?:''|\"\")"),De.querySelectorAll("[selected]").length||Vi.push("\\["+X+"*(?:value|"+T+")"),De.querySelectorAll("[id~="+sn+"-]").length||Vi.push("~="),De.querySelectorAll(":checked").length||Vi.push(":checked"),De.querySelectorAll("a#"+sn+"+*").length||Vi.push(".#.+[+~]")}),gs(function(De){De.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var Ve=oi.createElement("input");Ve.setAttribute("type","hidden"),De.appendChild(Ve).setAttribute("name","D"),De.querySelectorAll("[name=d]").length&&Vi.push("name"+X+"*[*^$|!~]?="),2!==De.querySelectorAll(":enabled").length&&Vi.push(":enabled",":disabled"),gi.appendChild(De).disabled=!0,2!==De.querySelectorAll(":disabled").length&&Vi.push(":enabled",":disabled"),De.querySelectorAll("*,:x"),Vi.push(",.*:")})),(_t.matchesSelector=Me.test(bs=gi.matches||gi.webkitMatchesSelector||gi.mozMatchesSelector||gi.oMatchesSelector||gi.msMatchesSelector))&&gs(function(De){_t.disconnectedMatch=bs.call(De,"*"),bs.call(De,"[s!='']:x"),kn.push("!=",se)}),Vi=Vi.length&&new RegExp(Vi.join("|")),kn=kn.length&&new RegExp(kn.join("|")),Qt=Me.test(gi.compareDocumentPosition),Hi=Qt||Me.test(gi.contains)?function(De,Ve){var Ke=9===De.nodeType?De.documentElement:De,ii=Ve&&Ve.parentNode;return De===ii||!(!ii||1!==ii.nodeType||!(Ke.contains?Ke.contains(ii):De.compareDocumentPosition&&16&De.compareDocumentPosition(ii)))}:function(De,Ve){if(Ve)for(;Ve=Ve.parentNode;)if(Ve===De)return!0;return!1},as=Qt?function(De,Ve){if(De===Ve)return Be=!0,0;var Ke=!De.compareDocumentPosition-!Ve.compareDocumentPosition;return Ke||(1&(Ke=(De.ownerDocument||De)===(Ve.ownerDocument||Ve)?De.compareDocumentPosition(Ve):1)||!_t.sortDetached&&Ve.compareDocumentPosition(De)===Ke?De===oi||De.ownerDocument===Mi&&Hi(Mi,De)?-1:Ve===oi||Ve.ownerDocument===Mi&&Hi(Mi,Ve)?1:ke?vi(ke,De)-vi(ke,Ve):0:4&Ke?-1:1)}:function(De,Ve){if(De===Ve)return Be=!0,0;var Ke,ii=0,hi=De.parentNode,Oi=Ve.parentNode,Bi=[De],Ni=[Ve];if(!hi||!Oi)return De===oi?-1:Ve===oi?1:hi?-1:Oi?1:ke?vi(ke,De)-vi(ke,Ve):0;if(hi===Oi)return zs(De,Ve);for(Ke=De;Ke=Ke.parentNode;)Bi.unshift(Ke);for(Ke=Ve;Ke=Ke.parentNode;)Ni.unshift(Ke);for(;Bi[ii]===Ni[ii];)ii++;return ii?zs(Bi[ii],Ni[ii]):Bi[ii]===Mi?-1:Ni[ii]===Mi?1:0}),oi},qi.matches=function(At,Qt){return qi(At,null,null,Qt)},qi.matchesSelector=function(At,Qt){if((At.ownerDocument||At)!==oi&&pi(At),_t.matchesSelector&&Ki&&!rs[Qt+" "]&&(!kn||!kn.test(Qt))&&(!Vi||!Vi.test(Qt)))try{var pe=bs.call(At,Qt);if(pe||_t.disconnectedMatch||At.document&&11!==At.document.nodeType)return pe}catch(He){rs(Qt,!0)}return 0<qi(Qt,oi,null,[At]).length},qi.contains=function(At,Qt){return(At.ownerDocument||At)!==oi&&pi(At),Hi(At,Qt)},qi.attr=function(At,Qt){(At.ownerDocument||At)!==oi&&pi(At);var pe=Ct.attrHandle[Qt.toLowerCase()],He=pe&&xs.call(Ct.attrHandle,Qt.toLowerCase())?pe(At,Qt,!Ki):void 0;return void 0!==He?He:_t.attributes||!Ki?At.getAttribute(Qt):(He=At.getAttributeNode(Qt))&&He.specified?He.value:null},qi.escape=function(At){return(At+"").replace(on,Kn)},qi.error=function(At){throw new Error("Syntax error, unrecognized expression: "+At)},qi.uniqueSort=function(At){var Qt,pe=[],He=0,De=0;if(Be=!_t.detectDuplicates,ke=!_t.sortStable&&At.slice(0),At.sort(as),Be){for(;Qt=At[De++];)Qt===At[De]&&(He=pe.push(De));for(;He--;)At.splice(pe[He],1)}return ke=null,At},Mt=qi.getText=function(At){var Qt,pe="",He=0,De=At.nodeType;if(De){if(1===De||9===De||11===De){if("string"==typeof At.textContent)return At.textContent;for(At=At.firstChild;At;At=At.nextSibling)pe+=Mt(At)}else if(3===De||4===De)return At.nodeValue}else for(;Qt=At[He++];
vendor: 4,517 bytes, line 1
1)pe+=Mt(Qt);return pe},(Ct=qi.selectors={cacheLength:50,createPseudo:es,match:et,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(At){return At[1]=At[1].replace(Ui,B),At[3]=(At[3]||At[4]||At[5]||"").replace(Ui,B),"~="===At[2]&&(At[3]=" "+At[3]+" "),At.slice(0,4)},CHILD:function(At){return At[1]=At[1].toLowerCase(),"nth"===At[1].slice(0,3)?(At[3]||qi.error(At[0]),At[4]=+(At[4]?At[5]+(At[6]||1):2*("even"===At[3]||"odd"===At[3])),At[5]=+(At[7]+At[8]||"odd"===At[3])):At[3]&&qi.error(At[0]),At},PSEUDO:function(At){var Qt,pe=!At[6]&&At[2];return et.CHILD.test(At[0])?null:(At[3]?At[2]=At[4]||At[5]||"":pe&&Xt.test(pe)&&(Qt=ie(pe,!0))&&(Qt=pe.indexOf(")",pe.length-Qt)-pe.length)&&(At[0]=At[0].slice(0,Qt),At[2]=pe.slice(0,Qt)),At.slice(0,3))}},filter:{TAG:function(At){var Qt=At.replace(Ui,B).toLowerCase();return"*"===At?function(){return!0}:function(pe){return pe.nodeName&&pe.nodeName.toLowerCase()===Qt}},CLASS:function(At){var Qt=ys[At+" "];return Qt||(Qt=new RegExp("(^|"+X+")"+At+"("+X+"|$)"))&&ys(At,function(pe){return Qt.test("string"==typeof pe.className&&pe.className||void 0!==pe.getAttribute&&pe.getAttribute("class")||"")})},ATTR:function(At,Qt,pe){return function(He){var De=qi.attr(He,At);return null==De?"!="===Qt:!Qt||(De+="","="===Qt?De===pe:"!="===Qt?De!==pe:"^="===Qt?pe&&0===De.indexOf(pe):"*="===Qt?pe&&-1<De.indexOf(pe):"$="===Qt?pe&&De.slice(-pe.length)===pe:"~="===Qt?-1<(" "+De.replace(Ae," ")+" ").indexOf(pe):"|="===Qt&&(De===pe||De.slice(0,pe.length+1)===pe+"-"))}},CHILD:function(At,Qt,pe,He,De){var Ve="nth"!==At.slice(0,3),Ke="last"!==At.slice(-4),ii="of-type"===Qt;return 1===He&&0===De?function(hi){return!!hi.parentNode}:function(hi,Oi,Bi){var Ni,ji,Tn,ki,Yn,Qn,cs=Ve!=Ke?"nextSibling":"previousSibling",vn=hi.parentNode,ws=ii&&hi.nodeName.toLowerCase(),is=!Bi&&!ii,Bn=!1;if(vn){if(Ve){for(;cs;){for(ki=hi;ki=ki[cs];)if(ii?ki.nodeName.toLowerCase()===ws:1===ki.nodeType)return!1;Qn=cs="only"===At&&!Qn&&"nextSibling"}return!0}if(Qn=[Ke?vn.firstChild:vn.lastChild],Ke&&is){for(Bn=(Yn=(Ni=(ji=(Tn=(ki=vn)[sn]||(ki[sn]={}))[ki.uniqueID]||(Tn[ki.uniqueID]={}))[At]||[])[0]===Yi&&Ni[1])&&Ni[2],ki=Yn&&vn.childNodes[Yn];ki=++Yn&&ki&&ki[cs]||(Bn=Yn=0)||Qn.pop();)if(1===ki.nodeType&&++Bn&&ki===hi){ji[At]=[Yi,Yn,Bn];break}}else if(is&&(Bn=Yn=(Ni=(ji=(Tn=(ki=hi)[sn]||(ki[sn]={}))[ki.uniqueID]||(Tn[ki.uniqueID]={}))[At]||[])[0]===Yi&&Ni[1]),!1===Bn)for(;(ki=++Yn&&ki&&ki[cs]||(Bn=Yn=0)||Qn.pop())&&((ii?ki.nodeName.toLowerCase()!==ws:1!==ki.nodeType)||!++Bn||(is&&((ji=(Tn=ki[sn]||(ki[sn]={}))[ki.uniqueID]||(Tn[ki.uniqueID]={}))[At]=[Yi,Bn]),ki!==hi)););return(Bn-=De)===He||Bn%He==0&&0<=Bn/He}}},PSEUDO:function(At,Qt){var pe,He=Ct.pseudos[At]||Ct.setFilters[At.toLowerCase()]||qi.error("unsupported pseudo: "+At);return He[sn]?He(Qt):1<He.length?(pe=[At,At,"",Qt],Ct.setFilters.hasOwnProperty(At.toLowerCase())?es(function(De,Ve){for(var Ke,ii=He(De,Qt),hi=ii.length;hi--;)De[Ke=vi(De,ii[hi])]=!(Ve[Ke]=ii[hi])}):function(De){return He(De,0,pe)}):He}},pseudos:{not:es(function(At){var Qt=[],pe=[],He=re(At.replace(Re,"$1"));return He[sn]?es(function(De,Ve,Ke,ii){for(var hi,Oi=He(De,null,ii,[]),Bi=De.length;Bi--;)(hi=Oi[Bi])&&(De[Bi]=!(Ve[Bi]=hi))}):function(De,Ve,Ke){return Qt[0]=De,He(Qt,null,Ke,pe),Qt[0]=null,!pe.pop()}}),has:es(function(At){return function(Qt){return 0<qi(At,Qt).length}}),contains:es(function(At){return At=At.replace(Ui,B),function(Qt){return-1<(Qt.textContent||Mt(Qt)).indexOf(At)}}),lang:es(function(At){return Zt.test(At||"")||qi.error("unsupported lang: "+At),At=At.replace(Ui,B).toLowerCase(),function(Qt){var pe;do{if(pe=Ki?Qt.lang:Qt.getAttribute("xml:lang")||Qt.getAttribute("lang"))return(pe=pe.toLowerCase())===At||0===pe.indexOf(At+"-")}while((Qt=Qt.parentNode)&&1===Qt.nodeType);return!1}}),target:function(At){var Qt=y.location&&y.location.hash;return Qt&&Qt.slice(1)===At.id},root:function(At){return At===gi},focus:function(At){return At===oi.activeElement&&(!oi.hasFocus||oi.hasFocus())&&!!(At.type||At.href||~At.tabIndex)},enabled:Us(!1),disabled:Us(!0),checked:function(At){var Qt=At.nodeName.toLowerCase();return"input"===Qt&&!!At.checked||"option"===Qt&&!!At.selected},selected:function(At){return!0===At.selected},empty:function(At){for(At=At.firstChild;At;At=At.nextSibling)if(At.nodeType<6)return!1;return!0},parent:function(At){return!Ct.pseudos.empty(At)},header:function(At){return Ce.test(At.nodeName)}
vendor: 4,249 bytes, line 1
1,input:function(At){return Vt.test(At.nodeName)},button:function(At){var Qt=At.nodeName.toLowerCase();return"input"===Qt&&"button"===At.type||"button"===Qt},text:function(At){var Qt;return"input"===At.nodeName.toLowerCase()&&"text"===At.type&&(null==(Qt=At.getAttribute("type"))||"text"===Qt.toLowerCase())},first:Is(function(){return[0]}),last:Is(function(At,Qt){return[Qt-1]}),eq:Is(function(At,Qt,pe){return[pe<0?pe+Qt:pe]}),even:Is(function(At,Qt){for(var pe=0;pe<Qt;pe+=2)At.push(pe);return At}),odd:Is(function(At,Qt){for(var pe=1;pe<Qt;pe+=2)At.push(pe);return At}),lt:Is(function(At,Qt,pe){for(var He=pe<0?pe+Qt:Qt<pe?Qt:pe;0<=--He;)At.push(He);return At}),gt:Is(function(At,Qt,pe){for(var He=pe<0?pe+Qt:pe;++He<Qt;)At.push(He);return At})}}).pseudos.nth=Ct.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Ct.pseudos[Q]=Ws(Q);for(Q in{submit:!0,reset:!0})Ct.pseudos[Q]=js(Q);function ho(){}function Gs(At){for(var Qt=0,pe=At.length,He="";Qt<pe;Qt++)He+=At[Qt].value;return He}function Xs(At,Qt,pe){var He=Qt.dir,De=Qt.next,Ve=De||He,Ke=pe&&"parentNode"===Ve,ii=Ps++;return Qt.first?function(hi,Oi,Bi){for(;hi=hi[He];)if(1===hi.nodeType||Ke)return At(hi,Oi,Bi);return!1}:function(hi,Oi,Bi){var Ni,ji,Tn,ki=[Yi,ii];if(Bi){for(;hi=hi[He];)if((1===hi.nodeType||Ke)&&At(hi,Oi,Bi))return!0}else for(;hi=hi[He];)if(1===hi.nodeType||Ke)if(ji=(Tn=hi[sn]||(hi[sn]={}))[hi.uniqueID]||(Tn[hi.uniqueID]={}),De&&De===hi.nodeName.toLowerCase())hi=hi[He]||hi;else{if((Ni=ji[Ve])&&Ni[0]===Yi&&Ni[1]===ii)return ki[2]=Ni[2];if((ji[Ve]=ki)[2]=At(hi,Oi,Bi))return!0}return!1}}function Ks(At){return 1<At.length?function(Qt,pe,He){for(var De=At.length;De--;)if(!At[De](Qt,pe,He))return!1;return!0}:At[0]}function As(At,Qt,pe,He,De){for(var Ve,Ke=[],ii=0,hi=At.length,Oi=null!=Qt;ii<hi;ii++)(Ve=At[ii])&&(pe&&!pe(Ve,He,De)||(Ke.push(Ve),Oi&&Qt.push(ii)));return Ke}function Qs(At,Qt,pe,He,De,Ve){return He&&!He[sn]&&(He=Qs(He)),De&&!De[sn]&&(De=Qs(De,Ve)),es(function(Ke,ii,hi,Oi){var Bi,Ni,ji,Tn=[],ki=[],Yn=ii.length,Qn=Ke||function(ws,is,Bn){for(var Cs=0,Zs=is.length;Cs<Zs;Cs++)qi(ws,is[Cs],Bn);return Bn}(Qt||"*",hi.nodeType?[hi]:hi,[]),cs=!At||!Ke&&Qt?Qn:As(Qn,Tn,At,hi,Oi),vn=pe?De||(Ke?At:Yn||He)?[]:ii:cs;if(pe&&pe(cs,vn,hi,Oi),He)for(Bi=As(vn,ki),He(Bi,[],hi,Oi),Ni=Bi.length;Ni--;)(ji=Bi[Ni])&&(vn[ki[Ni]]=!(cs[ki[Ni]]=ji));if(Ke){if(De||At){if(De){for(Bi=[],Ni=vn.length;Ni--;)(ji=vn[Ni])&&Bi.push(cs[Ni]=ji);De(null,vn=[],Bi,Oi)}for(Ni=vn.length;Ni--;)(ji=vn[Ni])&&-1<(Bi=De?vi(Ke,ji):Tn[Ni])&&(Ke[Bi]=!(ii[Bi]=ji))}}else vn=As(vn===ii?vn.splice(Yn,vn.length):vn),De?De(null,ii,vn,Oi):pn.apply(ii,vn)})}function no(At){for(var Qt,pe,He,De=At.length,Ve=Ct.relative[At[0].type],Ke=Ve||Ct.relative[" "],ii=Ve?1:0,hi=Xs(function(Ni){return Ni===Qt},Ke,!0),Oi=Xs(function(Ni){return-1<vi(Qt,Ni)},Ke,!0),Bi=[function(Ni,ji,Tn){var ki=!Ve&&(Tn||ji!==je)||((Qt=ji).nodeType?hi(Ni,ji,Tn):Oi(Ni,ji,Tn));return Qt=null,ki}];ii<De;ii++)if(pe=Ct.relative[At[ii].type])Bi=[Xs(Ks(Bi),pe)];else{if((pe=Ct.filter[At[ii].type].apply(null,At[ii].matches))[sn]){for(He=++ii;He<De&&!Ct.relative[At[He].type];He++);return Qs(1<ii&&Ks(Bi),1<ii&&Gs(At.slice(0,ii-1).concat({value:" "===At[ii-2].type?"*":""})).replace(Re,"$1"),pe,ii<He&&no(At.slice(ii,He)),He<De&&no(At=At.slice(He)),He<De&&Gs(At))}Bi.push(pe)}return Ks(Bi)}return ho.prototype=Ct.filters=Ct.pseudos,Ct.setFilters=new ho,ie=qi.tokenize=function(At,Qt){var pe,He,De,Ve,Ke,ii,hi,Oi=os[At+" "];if(Oi)return Qt?0:Oi.slice(0);for(Ke=At,ii=[],hi=Ct.preFilter;Ke;){for(Ve in pe&&!(He=Ue.exec(Ke))||(He&&(Ke=Ke.slice(He[0].length)||Ke),ii.push(De=[])),pe=!1,(He=$e.exec(Ke))&&(pe=He.shift(),De.push({value:pe,type:He[0].replace(Re," ")}),Ke=Ke.slice(pe.length)),Ct.filter)!(He=et[Ve].exec(Ke))||hi[Ve]&&!(He=hi[Ve](He))||(pe=He.shift(),De.push({value:pe,type:Ve,matches:He}),Ke=Ke.slice(pe.length));if(!pe)break}return Qt?Ke.length:Ke?qi.error(At):os(At,ii).slice(0)},re=qi.compile=function(At,Qt){var pe,He=[],De=[],Ve=Es[At+" "];if(!Ve){for(pe=(Qt=Qt||ie(At)).length;pe--;)(Ve=no(Qt[pe]))[sn]?He.push(Ve):De.push(Ve);(Ve=Es(At,function(Ke,ii){function hi(Ni,ji,Tn,ki,Yn){var Qn,cs,vn,ws=0,is="0",Bn=Ni&&[],Cs=[],Zs=je,Js=Ni||Bi&&Ct.find.TAG("*",Yn),$s=Yi+=null==Zs?1:Math.random()||.1,Eo=Js.length;
vendor: 4,415 bytes, line 1
1for(Yn&&(je=ji===oi||ji||Yn);is!==Eo&&null!=(Qn=Js[is]);is++){if(Bi&&Qn){for(cs=0,ji||Qn.ownerDocument===oi||(pi(Qn),Tn=!Ki);vn=Ke[cs++];)if(vn(Qn,ji||oi,Tn)){ki.push(Qn);break}Yn&&(Yi=$s)}Oi&&((Qn=!vn&&Qn)&&ws--,Ni&&Bn.push(Qn))}if(ws+=is,Oi&&is!==ws){for(cs=0;vn=ii[cs++];)vn(Bn,Cs,ji,Tn);if(Ni){if(0<ws)for(;is--;)Bn[is]||Cs[is]||(Cs[is]=cn.call(ki));Cs=As(Cs)}pn.apply(ki,Cs),Yn&&!Ni&&0<Cs.length&&1<ws+ii.length&&qi.uniqueSort(ki)}return Yn&&(Yi=$s,je=Zs),Bn}var Oi=0<ii.length,Bi=0<Ke.length;return Oi?es(hi):hi}(De,He))).selector=At}return Ve},Ie=qi.select=function(At,Qt,pe,He){var De,Ve,Ke,ii,hi,Oi="function"==typeof At&&At,Bi=!He&&ie(At=Oi.selector||At);if(pe=pe||[],1===Bi.length){if(2<(Ve=Bi[0]=Bi[0].slice(0)).length&&"ID"===(Ke=Ve[0]).type&&9===Qt.nodeType&&Ki&&Ct.relative[Ve[1].type]){if(!(Qt=(Ct.find.ID(Ke.matches[0].replace(Ui,B),Qt)||[])[0]))return pe;Oi&&(Qt=Qt.parentNode),At=At.slice(Ve.shift().value.length)}for(De=et.needsContext.test(At)?0:Ve.length;De--&&!Ct.relative[ii=(Ke=Ve[De]).type];)if((hi=Ct.find[ii])&&(He=hi(Ke.matches[0].replace(Ui,B),Si.test(Ve[0].type)&&io(Qt.parentNode)||Qt))){if(Ve.splice(De,1),!(At=He.length&&Gs(Ve)))return pn.apply(pe,He),pe;break}}return(Oi||re(At,Bi))(He,Qt,!Ki,pe,!Qt||Si.test(At)&&io(Qt.parentNode)||Qt),pe},_t.sortStable=sn.split("").sort(as).join("")===sn,_t.detectDuplicates=!!Be,pi(),_t.sortDetached=gs(function(At){return 1&At.compareDocumentPosition(oi.createElement("fieldset"))}),gs(function(At){return At.innerHTML="<a href='#'></a>","#"===At.firstChild.getAttribute("href")})||Rs("type|href|height|width",function(At,Qt,pe){if(!pe)return At.getAttribute(Qt,"type"===Qt.toLowerCase()?1:2)}),_t.attributes&&gs(function(At){return At.innerHTML="<input/>",At.firstChild.setAttribute("value",""),""===At.firstChild.getAttribute("value")})||Rs("value",function(At,Qt,pe){if(!pe&&"input"===At.nodeName.toLowerCase())return At.defaultValue}),gs(function(At){return null==At.getAttribute("disabled")})||Rs(T,function(At,Qt,pe){var He;if(!pe)return!0===At[Qt]?Qt.toLowerCase():(He=At.getAttributeNode(Qt))&&He.specified?He.value:null}),qi}(i);function lt(y,B,J){for(var Q=[],_t=void 0!==J;(y=y[B])&&9!==y.nodeType;)if(1===y.nodeType){if(_t&&v(y).is(J))break;Q.push(y)}return Q}function at(y,B){for(var J=[];y;y=y.nextSibling)1===y.nodeType&&y!==B&&J.push(y);return J}v.find=Rt,v.expr=Rt.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=Rt.uniqueSort,v.text=Rt.getText,v.isXMLDoc=Rt.isXML,v.contains=Rt.contains,v.escapeSelector=Rt.escape;var mt=v.expr.match.needsContext;function wt(y,B){return y.nodeName&&y.nodeName.toLowerCase()===B.toLowerCase()}var qt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ae(y,B,J){return S(B)?v.grep(y,function(Q,_t){return!!B.call(Q,_t,Q)!==J}):B.nodeType?v.grep(y,function(Q){return Q===B!==J}):"string"!=typeof B?v.grep(y,function(Q){return-1<L.call(B,Q)!==J}):v.filter(B,y,J)}v.filter=function(y,B,J){var Q=B[0];return J&&(y=":not("+y+")"),1===B.length&&1===Q.nodeType?v.find.matchesSelector(Q,y)?[Q]:[]:v.find.matches(y,v.grep(B,function(_t){return 1===_t.nodeType}))},v.fn.extend({find:function(y){var B,J,Q=this.length,_t=this;if("string"!=typeof y)return this.pushStack(v(y).filter(function(){for(B=0;B<Q;B++)if(v.contains(_t[B],this))return!0}));for(J=this.pushStack([]),B=0;B<Q;B++)v.find(y,_t[B],J);return 1<Q?v.uniqueSort(J):J},filter:function(y){return this.pushStack(ae(this,y||[],!1))},not:function(y){return this.pushStack(ae(this,y||[],!0))},is:function(y){return!!ae(this,"string"==typeof y&&mt.test(y)?v(y):y||[],!1).length}});var ye,he=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(v.fn.init=function(y,B,J){var Q,_t;if(!y)return this;if(J=J||ye,"string"!=typeof y)return y.nodeType?(this[0]=y,this.length=1,this):S(y)?void 0!==J.ready?J.ready(y):y(v):v.makeArray(y,this);if(!(Q="<"===y[0]&&">"===y[y.length-1]&&3<=y.length?[null,y,null]:he.exec(y))||!Q[1]&&B)return!B||B.jquery?(B||J).find(y):this.constructor(B).find(y);if(Q[1]){if(v.merge(this,v.parseHTML(Q[1],(B=B instanceof v?B[0]:B)&&B.nodeType?B.ownerDocument||B:l,!0)),qt.test(Q[1])&&v.isPlainObject(B))for(Q in B)S(this[Q])?this[Q](B[Q]):this.attr(Q,B[Q]);return this}return(_t=l.getElementById(Q[2]))&&(this[0]=_t,this.length=1),this}).prototype=v.fn,ye=v(l);var Te=/^(?:parents|prev(?:Until|All))/,Ne={children:!0,contents:!0,next:!0,prev:!0};function Ot(y,B){for(;(y=y[B])&&1!==y.nodeType;);return y}
vendor: 4,101 bytes, line 1
1v.fn.extend({has:function(y){var B=v(y,this),J=B.length;return this.filter(function(){for(var Q=0;Q<J;Q++)if(v.contains(this,B[Q]))return!0})},closest:function(y,B){var J,Q=0,_t=this.length,Ct=[],Mt="string"!=typeof y&&v(y);if(!mt.test(y))for(;Q<_t;Q++)for(J=this[Q];J&&J!==B;J=J.parentNode)if(J.nodeType<11&&(Mt?-1<Mt.index(J):1===J.nodeType&&v.find.matchesSelector(J,y))){Ct.push(J);break}return this.pushStack(1<Ct.length?v.uniqueSort(Ct):Ct)},index:function(y){return y?"string"==typeof y?L.call(v(y),this[0]):L.call(this,y.jquery?y[0]:y):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(y,B){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(y,B))))},addBack:function(y){return this.add(null==y?this.prevObject:this.prevObject.filter(y))}}),v.each({parent:function(y){var B=y.parentNode;return B&&11!==B.nodeType?B:null},parents:function(y){return lt(y,"parentNode")},parentsUntil:function(y,B,J){return lt(y,"parentNode",J)},next:function(y){return Ot(y,"nextSibling")},prev:function(y){return Ot(y,"previousSibling")},nextAll:function(y){return lt(y,"nextSibling")},prevAll:function(y){return lt(y,"previousSibling")},nextUntil:function(y,B,J){return lt(y,"nextSibling",J)},prevUntil:function(y,B,J){return lt(y,"previousSibling",J)},siblings:function(y){return at((y.parentNode||{}).firstChild,y)},children:function(y){return at(y.firstChild)},contents:function(y){return void 0!==y.contentDocument?y.contentDocument:(wt(y,"template")&&(y=y.content||y),v.merge([],y.childNodes))}},function(y,B){v.fn[y]=function(J,Q){var _t=v.map(this,B,J);return"Until"!==y.slice(-5)&&(Q=J),Q&&"string"==typeof Q&&(_t=v.filter(Q,_t)),1<this.length&&(Ne[y]||v.uniqueSort(_t),Te.test(y)&&_t.reverse()),this.pushStack(_t)}});var w=/[^\x20\t\r\n\f]+/g;function Y(y){return y}function V(y){throw y}function it(y,B,J,Q){var _t;try{y&&S(_t=y.promise)?_t.call(y).done(B).fail(J):y&&S(_t=y.then)?_t.call(y,B,J):B.apply(void 0,[y].slice(Q))}catch(Ct){J.apply(void 0,[Ct])}}v.Callbacks=function(y){var je;function B(){for(Ct=Ct||y.once,_t=J=!0;te.length;ie=-1)for(Q=te.shift();++ie<Mt.length;)!1===Mt[ie].apply(Q[0],Q[1])&&y.stopOnFalse&&(ie=Mt.length,Q=!1);y.memory||(Q=!1),J=!1,Ct&&(Mt=Q?[]:"")}y="string"==typeof y?(je={},v.each(y.match(w)||[],function(ke,Be){je[Be]=!0}),je):v.extend({},y);var J,Q,_t,Ct,Mt=[],te=[],ie=-1,re={add:function(){return Mt&&(Q&&!J&&(ie=Mt.length-1,te.push(Q)),function Ie(je){v.each(je,function(ke,Be){S(Be)?y.unique&&re.has(Be)||Mt.push(Be):Be&&Be.length&&"string"!==H(Be)&&Ie(Be)})}(arguments),Q&&!J&&B()),this},remove:function(){return v.each(arguments,function(Ie,je){for(var ke;-1<(ke=v.inArray(je,Mt,ke));)Mt.splice(ke,1),ke<=ie&&ie--}),this},has:function(Ie){return Ie?-1<v.inArray(Ie,Mt):0<Mt.length},empty:function(){return Mt=Mt&&[],this},disable:function(){return Ct=te=[],Mt=Q="",this},disabled:function(){return!Mt},lock:function(){return Ct=te=[],Q||J||(Mt=Q=""),this},locked:function(){return!!Ct},fireWith:function(Ie,je){return Ct||(je=[Ie,(je=je||[]).slice?je.slice():je],te.push(je),J||B()),this},fire:function(){return re.fireWith(this,arguments),this},fired:function(){return!!_t}};return re},v.extend({Deferred:function(y){var B=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],J="pending",Q={state:function(){return J},always:function(){return _t.done(arguments).fail(arguments),this},catch:function(Ct){return Q.then(null,Ct)},pipe:function(){var Ct=arguments;return v.Deferred(function(Mt){v.each(B,function(te,ie){var re=S(Ct[ie[4]])&&Ct[ie[4]];_t[ie[1]](function(){var Ie=re&&re.apply(this,arguments);Ie&&S(Ie.promise)?Ie.promise().progress(Mt.notify).done(Mt.resolve).fail(Mt.reject):Mt[ie[0]+"With"](this,re?[Ie]:arguments)})}),Ct=null}).promise()},then:function(Ct,Mt,te){var ie=0;function re(Ie,je,ke,Be){return function(){function pi(){var Vi,kn;if(!(Ie<ie)){if((Vi=ke.apply(oi,gi))===je.promise())throw new TypeError("Thenable self
1-resolution");S(kn=Vi&&("object"==typeof Vi||"function"==typeof Vi)&&Vi.then)?Be?kn.call(Vi,re(ie,je,Y,Be),re(ie,je,V,Be)):(ie++,kn.call(Vi,re(ie,je,Y,Be),re(ie,je,V,Be),re(ie,je,Y,je.notifyWith))):(ke!==Y&&(oi=void 0,gi=[Vi]),(Be||je.resolveWith)(oi,gi))}}var oi=this,gi=arguments,Ki=Be?pi:function(){try{pi()}catch(Vi){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(Vi,Ki.stackTrace),ie<=Ie+1&&(ke!==V&&(oi=void 0,gi=[Vi]),je.rejectWith(oi,gi))}};Ie?Ki():(v.Deferred.getStackHook&&(Ki.stackTrace=v.Deferred.getStackHook()),i.setTimeout(Ki))}}return v.Deferred(function(Ie){B[0][3].add(re(0,Ie,S(te)?te:Y,Ie.notifyWith)),B[1][3].add(re(0,Ie,S(Ct)?Ct:Y)),B[2][3].add(re(0,Ie,S(Mt)?Mt:V))}).promise()},promise:function(Ct){return null!=Ct?v.extend(Ct,Q):Q}},_t={};return v.each(B,function(Ct,Mt){var te=Mt[2],ie=Mt[5];Q[Mt[1]]=te.add,ie&&te.add(function(){J=ie},B[3-Ct][2].disable,B[3-Ct][3].disable,B[0][2].lock,B[0][3].lock),te.add(Mt[3].fire),_t[Mt[0]]=function(){return _t[Mt[0]+"With"](this===_t?void 0:this,arguments),this},_t[Mt[0]+"With"]=te.fireWith}),Q.promise(_t),y&&y.call(_t,_t),_t},when:function(y){function B(te){return function(ie){_t[te]=this,Ct[te]=1<arguments.length?a.call(arguments):ie,--J||Mt.resolveWith(_t,Ct)}}var J=arguments.length,Q=J,_t=Array(Q),Ct=a.call(arguments),Mt=v.Deferred();if(J<=1&&(it(y,Mt.done(B(Q)).resolve,Mt.reject,!J),"pending"===Mt.state()||S(Ct[Q]&&Ct[Q].then)))return Mt.then();for(;Q--;)it(Ct[Q],B(Q),Mt.reject);return Mt.promise()}});var yt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(y,B){i.console&&i.console.warn&&y&&yt.test(y.name)&&i.console.warn("jQuery.Deferred exception: "+y.message,y.stack,B)},v.readyException=function(y){i.setTimeout(function(){throw y})};var It=v.Deferred();function Lt(){l.removeEventListener("DOMContentLoaded",Lt),i.removeEventListener("load",Lt),v.ready()}v.fn.ready=function(y){return It.then(y).catch(function(B){v.readyException(B)}),this},v.extend({isReady:!1,readyWait:1,ready:function(y){(!0===y?--v.readyWait:v.isReady)||(v.isReady=!0)!==y&&0<--v.readyWait||It.resolveWith(l,[v])}}),v.ready.then=It.then,"complete"===l.readyState||"loading"!==l.readyState&&!l.documentElement.doScroll?i.setTimeout(v.ready):(l.addEventListener("DOMContentLoaded",Lt),i.addEventListener("load",Lt));var Ut=function(y,B,J,Q,_t,Ct,Mt){var te=0,ie=y.length,re=null==J;if("object"===H(J))for(te in _t=!0,J)Ut(y,B,te,J[te],!0,Ct,Mt);else if(void 0!==Q&&(_t=!0,S(Q)||(Mt=!0),re&&(B=Mt?(B.call(y,Q),null):(re=B,function(Ie,je,ke){return re.call(v(Ie),ke)})),B))for(;te<ie;te++)B(y[te],J,Mt?Q:Q.call(y[te],te,B(y[te],J)));return _t?y:re?B.call(y):ie?B(y[0],J):Ct},de=/^-ms-/,be=/-([a-z])/g;function dt(y,B){return B.toUpperCase()}function Ht(y){return y.replace(de,"ms-").replace(be,dt)}function Gt(y){return 1===y.nodeType||9===y.nodeType||!+y.nodeType}function ge(){this.expando=v.expando+ge.uid++}ge.uid=1,ge.prototype={cache:function(y){var B=y[this.expando];return B||(B={},Gt(y)&&(y.nodeType?y[this.expando]=B:Object.defineProperty(y,this.expando,{value:B,configurable:!0}))),B},set:function(y,B,J){var Q,_t=this.cache(y);if("string"==typeof B)_t[Ht(B)]=J;else for(Q in B)_t[Ht(Q)]=B[Q];return _t},get:function(y,B){return void 0===B?this.cache(y):y[this.expando]&&y[this.expando][Ht(B)]},access:function(y,B,J){return void 0===B||B&&"string"==typeof B&&void 0===J?this.get(y,B):(this.set(y,B,J),void 0!==J?J:B)},remove:function(y,B){var J,Q=y[this.expando];if(void 0!==Q){if(void 0!==B)for((J=(B=Array.isArray(B)?B.map(Ht):(B=Ht(B))in Q?[B]:B.match(w)||[]).length);J--;)delete Q[B[J]];void 0!==B&&!v.isEmptyObject(Q)||(y.nodeType?y[this.expando]=void 0:delete y[this.expando])}},hasData:function(y){var B=y[this.expando];return void 0!==B&&!v.isEmptyObject(B)}};var zt=new ge,Ee=new ge,ze=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Xe=/[A-Z]/g;function Tt(y,B,J){var Q,_t;if(void 0===J&&1===y.nodeType)if(Q="data-"+B.replace(Xe,"-$&").toLowerCase(),"string"==typeof(J=y.getAttribute(Q))){try{J="true"===(_t=J)||"false"!==_t&&("null"===_t?null:_t===+_t+""?+_t:ze.test(_t)?JSON.parse(_t):_t)}catch(_t){}Ee.set(y,B,J)}else J=void 0;return J}v.extend({hasData:function(y){return Ee.hasData(y)||zt.hasData(y)},data:function(y,B,J){return Ee.access(y,B,J)},removeData:function(y,B){Ee.remove(y,B)},_data:function(y,B,J){return zt.access(y,B,J)},_removeData:function(y,B){zt.remove(y,B)}}),v.fn.extend({data:function(y,B){var J,Q,_t,Ct=this[0],Mt=Ct&&Ct.attributes;if(void 0!==y)return"object"==typeof y?this.each(function(){Ee.set(this,y)}):Ut(this,function(te){var ie;if(Ct&&void 0===te)return void 0!==(ie=Ee.get(Ct,y))||void 0!==(ie=Tt(Ct,y))?ie:void 0;this.each(function(){Ee.set(this,y,te)})},null,B,1<arguments.length,null,!0);if(this.length&&(_t=Ee.get(Ct),1===Ct.nodeType&&!zt.get(Ct,"hasDataAttrs"))){for(J=Mt.length;J--;)Mt[J]&&0===(Q=Mt[J].name).indexOf("data-")&&(Q=Ht(Q.slice(5)),Tt(Ct,Q,_t[Q]));zt.set(Ct,"hasDataAttrs",!0)}return _t},removeData:function(y){return this.each(function(){Ee.remove(this,y)})}}),v.extend({queue:function(y,B,J){var Q;if(y)return Q=zt.get(y,B=(B||"fx")+"queue"),J&&(!Q||Array.isArray(J)?Q=zt.access(y,B,v.makeArray(J)):Q.push(J)),Q||[]},dequeue:function(y,B){var J=v.queue(y,B=B||"fx"),Q=J.length,_t=J.shift(),Ct=v._queueHooks(y,B);"inprogress"===_t&&(_t=J.shift(),Q--),_t&&("fx"===B&&J.unshift("inprogress"),delete Ct.stop,_t.call(y,function(){v.dequeue(y,B)},Ct)),!Q&&Ct&&Ct.empty.fire()},_queueHooks:function(y,B){var J=B+"queueHooks";return zt.get(y,J)||zt.access(y,J,{empty:v.Callbacks("once memory").add(function(){zt.remove(y,[B+"queue",J])})})}}),v.fn.extend({queue:function(y,B){var J=2;return"string"!=typeof y&&(B=y,y="fx",J--),arguments.length<J?v.queue(this[0],y):void 0===B?this:this.each(function(){var Q=v.queue(this,y,B);v._queueHooks(this,y),"fx"===y&&"inprogress"!==Q[0]&&v.dequeue(this,y)})},dequeue:function(y){return this.each(function(){v.dequeue(this,y)})},clearQueue:function(y){return this.queue(y||"fx",[])},promise:function(y,B){function J(){--_t||Ct.resolveWith(Mt,[Mt])}var Q,_t=1,Ct=v.Deferred(),Mt=this,te=this.length;for("string"!=typeof y&&(B=y,y=void 0),y=y||"fx";te--;)(Q=zt.get(Mt[te],y+"queueHooks"))&&Q.empty&&(_t++,Q.empty.add(J));return J(),Ct.promise(B)}});var $t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ee=new RegExp("^(?:([+-])=|)("+$t+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],xe=l.documentElement,ue=function(y){return v.contains(y.ownerDocument,y)},fe={composed:!0};function Le(y,B,J,Q){var _t,Ct,Mt={};for(Ct in B)Mt[Ct]=y.style[Ct],y.style[Ct]=B[Ct];for(Ct in _t=J.apply(y,Q||[]),B)y.style[Ct]=Mt[Ct];return _t}xe.getRootNode&&(ue=function(y){return v.contains(y.ownerDocument,y)||y.getRootNode(fe)===y.ownerDocument});var e=function(y,B){return"none"===(y=B||y).style.display||""===y.style.display&&ue(y)&&"none"===v.css(y,"display")};function s(y,B,J,Q){var _t,Ct,Mt=20,te=Q?function(){return Q.cur()}:function(){return v.css(y,B,"")},ie=te(),re=J&&J[3]||(v.cssNumber[B]?"":"px"),Ie=y.nodeType&&(v.cssNumber[B]||"px"!==re&&+ie)&&ee.exec(v.css(y,B));if(Ie&&Ie[3]!==re){for(re=re||Ie[3],Ie=+(ie/=2)||1;Mt--;)v.style(y,B,Ie+re),(1-Ct)*(1-(Ct=te()/ie||.5))<=0&&(Mt=0),Ie/=Ct;v.style(y,B,(Ie*=2)+re),J=J||[]}return J&&(Ie=+Ie||+ie||0,_t=J[1]?Ie+(J[1]+1)*J[2]:+J[2],Q&&(Q.unit=re,Q.start=Ie,Q.end=_t)),_t}var d={};function g(y,B){for(var J,Q,_t,Ct,Mt,te,ie,re=[],Ie=0,je=y.length;Ie<je;Ie++)(Q=y[Ie]).style&&(J=Q.style.display,B?("none"===J&&(re[Ie]=zt.get(Q,"display")||null,re[Ie]||(Q.style.display="")),""===Q.style.display&&e(Q)&&(re[Ie]=(ie=Mt=Ct=void 0,Mt=(_t=Q).ownerDocument,(ie=d[te=_t.nodeName])||(Ct=Mt.body.appendChild(Mt.createElement(te)),ie=v.css(Ct,"display"),Ct.parentNode.removeChild(Ct),"none"===ie&&(ie="block"),d[te]=ie)))):"none"!==J&&(re[Ie]="none",zt.set(Q,"display",J)));for(Ie=0;Ie<je;Ie++)null!=re[Ie]&&(y[Ie].style.display=re[Ie]);return y}v.fn.extend({show:function(){return g(this,!0)},hide:function(){return g(this)},toggle:function(y){return"boolean"==typeof y?y?this.show():this.hide():this.each(function(){e(this)?v(this).show():v(this).hide()})}});var C=/^(?:checkbox|radio)$/i,U=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,nt=/^$|^module$|\/(?:java|ecma)script/i,ut={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function vt(y,B){var J;return J=void 0!==y.getElementsByTagName?y.getElementsByTagName(B||"*"):void 0!==y.querySelectorAll?y.querySelectorAll(B||"*"):[],void 0===B||B&&wt(y,B)?v.merge([y],J):J}function Wt(y,B){for(var J=0,Q=y.length;J<Q;J++)zt.set(y[J],"globalEval",!B||zt.get(B[J],"globalEval"))}ut.optgroup=ut.option,ut.tbody=ut.tfoot=ut.colgroup=ut.caption=ut.thead,ut.th=ut.td;var Bt,xt,Ft=/<|&#?\w+;/;function Kt(y,B,J,Q,_t){for(var Ct,Mt,te,ie,re,Ie,je=B.createDocumentFragment(),ke=[],Be=0,pi=y.length;Be<pi;Be++)if((Ct=y[Be])||0===Ct)if("object"===H(Ct))v.merge(ke,Ct.nodeType?[Ct]:Ct);else if(Ft.test(Ct)){for(Mt=Mt||je.appendChild(B.createElement("div")),te=(U.exec(Ct)||["",""])[1].toLowerCase(),Mt.innerHTML=(ie=ut[te]||ut._default)[1]+v.htmlPrefilter(Ct)+ie[2],Ie=ie[0];Ie--;)Mt=Mt.lastChild;v.merge(ke,Mt.childNodes),(Mt=je.firstChild).textContent=""}else ke.push(B.createTextNode(Ct));for(je.textContent="",Be=0;Ct=ke[Be++];)if(Q&&-1<v.inArray(Ct,Q))_t&&_t.push(Ct);else if(re=ue(Ct),Mt=vt(je.appendChild(Ct),"script"),re&&Wt(Mt),J)for(Ie=0;Ct=Mt[Ie++];)nt.test(Ct.type||"")&&J.push(Ct);return je}Bt=l.createDocumentFragment().appendChild(l.createElement("div")),(xt=l.createElement("input")).setAttribute("type","radio"),xt.setAttribute("checked","checked"),xt.setAttribute("name","t"),Bt.appendChild(xt),x.checkClone
vendor: 6,903 bytes, line 1
1=Bt.cloneNode(!0).cloneNode(!0).lastChild.checked,Bt.innerHTML="<textarea>x</textarea>",x.noCloneChecked=!!Bt.cloneNode(!0).lastChild.defaultValue;var ce=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Ye(){return!0}function Je(){return!1}function ni(y,B){return y===function(){try{return l.activeElement}catch(J){}}()==("focus"===B)}function ci(y,B,J,Q,_t,Ct){var Mt,te;if("object"==typeof B){for(te in"string"!=typeof J&&(Q=Q||J,J=void 0),B)ci(y,te,J,Q,B[te],Ct);return y}if(null==Q&&null==_t?(_t=J,Q=J=void 0):null==_t&&("string"==typeof J?(_t=Q,Q=void 0):(_t=Q,Q=J,J=void 0)),!1===_t)_t=Je;else if(!_t)return y;return 1===Ct&&(Mt=_t,(_t=function(ie){return v().off(ie),Mt.apply(this,arguments)}).guid=Mt.guid||(Mt.guid=v.guid++)),y.each(function(){v.event.add(this,B,_t,Q,J)})}function ri(y,B,J){J?(zt.set(y,B,!1),v.event.add(y,B,{namespace:!1,handler:function(Q){var _t,Ct,Mt=zt.get(this,B);if(1&Q.isTrigger&&this[B]){if(Mt.length)(v.event.special[B]||{}).delegateType&&Q.stopPropagation();else if(Mt=a.call(arguments),zt.set(this,B,Mt),_t=J(this,B),this[B](),Mt!==(Ct=zt.get(this,B))||_t?zt.set(this,B,!1):Ct={},Mt!==Ct)return Q.stopImmediatePropagation(),Q.preventDefault(),Ct.value}else Mt.length&&(zt.set(this,B,{value:v.event.trigger(v.extend(Mt[0],v.Event.prototype),Mt.slice(1),this)}),Q.stopImmediatePropagation())}})):void 0===zt.get(y,B)&&v.event.add(y,B,Ye)}v.event={global:{},add:function(y,B,J,Q,_t){var Ct,Mt,te,ie,re,Ie,je,ke,Be,pi,oi,gi=zt.get(y);if(gi)for(J.handler&&(J=(Ct=J).handler,_t=Ct.selector),_t&&v.find.matchesSelector(xe,_t),J.guid||(J.guid=v.guid++),(ie=gi.events)||(ie=gi.events={}),(Mt=gi.handle)||(Mt=gi.handle=function(Ki){return void 0!==v&&v.event.triggered!==Ki.type?v.event.dispatch.apply(y,arguments):void 0}),re=(B=(B||"").match(w)||[""]).length;re--;)Be=oi=(te=Se.exec(B[re])||[])[1],pi=(te[2]||"").split(".").sort(),Be&&(je=v.event.special[Be]||{},je=v.event.special[Be=(_t?je.delegateType:je.bindType)||Be]||{},Ie=v.extend({type:Be,origType:oi,data:Q,handler:J,guid:J.guid,selector:_t,needsContext:_t&&v.expr.match.needsContext.test(_t),namespace:pi.join(".")},Ct),(ke=ie[Be])||((ke=ie[Be]=[]).delegateCount=0,je.setup&&!1!==je.setup.call(y,Q,pi,Mt)||y.addEventListener&&y.addEventListener(Be,Mt)),je.add&&(je.add.call(y,Ie),Ie.handler.guid||(Ie.handler.guid=J.guid)),_t?ke.splice(ke.delegateCount++,0,Ie):ke.push(Ie),v.event.global[Be]=!0)},remove:function(y,B,J,Q,_t){var Ct,Mt,te,ie,re,Ie,je,ke,Be,pi,oi,gi=zt.hasData(y)&&zt.get(y);if(gi&&(ie=gi.events)){for(re=(B=(B||"").match(w)||[""]).length;re--;)if(Be=oi=(te=Se.exec(B[re])||[])[1],pi=(te[2]||"").split(".").sort(),Be){for(je=v.event.special[Be]||{},ke=ie[Be=(Q?je.delegateType:je.bindType)||Be]||[],te=te[2]&&new RegExp("(^|\\.)"+pi.join("\\.(?:.*\\.|)")+"(\\.|$)"),Mt=Ct=ke.length;Ct--;)Ie=ke[Ct],!_t&&oi!==Ie.origType||J&&J.guid!==Ie.guid||te&&!te.test(Ie.namespace)||Q&&Q!==Ie.selector&&("**"!==Q||!Ie.selector)||(ke.splice(Ct,1),Ie.selector&&ke.delegateCount--,je.remove&&je.remove.call(y,Ie));Mt&&!ke.length&&(je.teardown&&!1!==je.teardown.call(y,pi,gi.handle)||v.removeEvent(y,Be,gi.handle),delete ie[Be])}else for(Be in ie)v.event.remove(y,Be+B[re],J,Q,!0);v.isEmptyObject(ie)&&zt.remove(y,"handle events")}},dispatch:function(y){var B,J,Q,_t,Ct,Mt,te=v.event.fix(y),ie=new Array(arguments.length),re=(zt.get(this,"events")||{})[te.type]||[],Ie=v.event.special[te.type]||{};for(ie[0]=te,B=1;B<arguments.length;B++)ie[B]=arguments[B];if(te.delegateTarget=this,!Ie.preDispatch||!1!==Ie.preDispatch.call(this,te)){for(Mt=v.event.handlers.call(this,te,re),B=0;(_t=Mt[B++])&&!te.isPropagationStopped();)for(te.currentTarget=_t.elem,J=0;(Ct=_t.handlers[J++])&&!te.isImmediatePropagationStopped();)te.rnamespace&&!1!==Ct.namespace&&!te.rnamespace.test(Ct.namespace)||(te.handleObj=Ct,te.data=Ct.data,void 0!==(Q=((v.event.special[Ct.origType]||{}).handle||Ct.handler).apply(_t.elem,ie))&&!1===(te.result=Q)&&(te.preventDefault(),te.stopPropagation()));return Ie.postDispatch&&Ie.postDispatch.call(this,te),te.result}},handlers:function(y,B){var J,Q,_t,Ct,Mt,te=[],ie=B.delegateCount,re=y.target;if(ie&&re.nodeType&&!("click"===y.type&&1<=y.button))for(;re!==this;re=re.parentNode||this)if(1===re.nodeType&&("click"!==y.type||!0!==re.disabled)){for(Ct=[],Mt={},J=0;J<ie;J++)void 0===Mt[_t=(Q=B[J]).selector+" "]&&(Mt[_t]=Q.needsContext?-1<v(_t,this).index(re):v.find(_t,this,null,[re]).length),Mt[_t]&&Ct.push(Q);Ct.length&&te.push({elem:re,handlers:Ct})}return re=this,ie<B.length&&te.push({elem:re,handlers:B.slice(ie)}),te},addProp:function(y,B){Object.defineProperty(v.Event.prototype,y,{enumerable:!0,configurable:!0,get:S(B)?function(){if(this.originalEvent)return B(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[y]},set:function(J){Object.defineProperty(this,y,{enumerable:!0,configurable:!0,writable:!0,value:J})}})},fix:function(y){return y[v.expando]?y:new v.Event(y)},special:{load:{noBubble:!0},click:{setup:function(y){var B=this||y;return C.test(B.type)&&B.click&&wt(B,"input")&&ri(B,"click",Ye),!1},trigger:function(y){var B=this||y;return C.test(B.type)&&B.click&&wt(B,"input")&&ri(B,"click"),!0},_default:function(y){var B=y.target;return C.test(B.type)&&B.click&&wt(B,"input")&&zt.get(B,"click")||wt(B,"a")}},beforeunload:{postDispatch:function(y){void 0!==y.result&&y.originalEvent&&(y.originalEvent.returnValue=y.result)}}}},v.removeEvent=function(y,B,J){y.removeEventListener&&y.removeEventListener(B,J)},v.Event=function(y,B){if(!(this instanceof v.Event))return new v.Event(y,B);y&&y.type?(this.originalEvent=y,this.type=y.type,this.isDefaultPrevented=y.defaultPrevented||void 0===y.defaultPrevented&&!1===y.returnValue?Ye:Je,this.target=y.target&&3===y.target.nodeType?y.target.parentNode:y.target,this.currentTarget=y.currentTarget,this.relatedTarget=y.relatedTarget):this.type=y,B&&v.extend(this,B),this.timeStamp=y&&y.timeStamp||Date.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:Je,isPropagationStopped:Je,isImmediatePropagationStopped:Je,isSimulated:!1,preventDefault:function(){var y=this.originalEvent;this.isDefaultPrevented=Ye,y&&!this.isSimulated&&y.preventDefault()},stopPropagation:function(){var y=this.originalEvent;this.isPropagationStopped=Ye,y&&!this.isSimulated&&y.stopPropagation()},stopImmediatePropagation:function(){var y=this.originalEvent;this.isImmediatePropagationStopped=Ye,y&&!this.isSimulated&&y.stopImmediatePropagation(),this.stopPropagation()}},v.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(y){var B=y.button;
vendor: 5,053 bytes, line 1
1return null==y.which&&ce.test(y.type)?null!=y.charCode?y.charCode:y.keyCode:!y.which&&void 0!==B&&we.test(y.type)?1&B?1:2&B?3:4&B?2:0:y.which}},v.event.addProp),v.each({focus:"focusin",blur:"focusout"},function(y,B){v.event.special[y]={setup:function(){return ri(this,y,ni),!1},trigger:function(){return ri(this,y),!0},delegateType:B}}),v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(y,B){v.event.special[y]={delegateType:B,bindType:B,handle:function(J){var Q,_t=J.relatedTarget,Ct=J.handleObj;return _t&&(_t===this||v.contains(this,_t))||(J.type=Ct.origType,Q=Ct.handler.apply(this,arguments),J.type=B),Q}}}),v.fn.extend({on:function(y,B,J,Q){return ci(this,y,B,J,Q)},one:function(y,B,J,Q){return ci(this,y,B,J,Q,1)},off:function(y,B,J){var Q,_t;if(y&&y.preventDefault&&y.handleObj)return Q=y.handleObj,v(y.delegateTarget).off(Q.namespace?Q.origType+"."+Q.namespace:Q.origType,Q.selector,Q.handler),this;if("object"!=typeof y)return!1!==B&&"function"!=typeof B||(J=B,B=void 0),!1===J&&(J=Je),this.each(function(){v.event.remove(this,y,J,B)});for(_t in y)this.off(_t,B,y[_t]);return this}});var yi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ii=/<script|<style|<link/i,Ti=/checked\s*(?:[^=]|=\s*.checked.)/i,rn=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ei(y,B){return wt(y,"table")&&wt(11!==B.nodeType?B:B.firstChild,"tr")&&v(y).children("tbody")[0]||y}function si(y){return y.type=(null!==y.getAttribute("type"))+"/"+y.type,y}function $i(y){return"true/"===(y.type||"").slice(0,5)?y.type=y.type.slice(5):y.removeAttribute("type"),y}function an(y,B){var J,Q,_t,Ct,Mt,te,ie,re;if(1===B.nodeType){if(zt.hasData(y)&&(Ct=zt.access(y),Mt=zt.set(B,Ct),re=Ct.events))for(_t in delete Mt.handle,Mt.events={},re)for(J=0,Q=re[_t].length;J<Q;J++)v.event.add(B,_t,re[_t][J]);Ee.hasData(y)&&(te=Ee.access(y),ie=v.extend({},te),Ee.set(B,ie))}}function Ci(y,B,J,Q){B=u.apply([],B);var _t,Ct,Mt,te,ie,re,Ie=0,je=y.length,ke=je-1,Be=B[0],pi=S(Be);if(pi||1<je&&"string"==typeof Be&&!x.checkClone&&Ti.test(Be))return y.each(function(oi){var gi=y.eq(oi);pi&&(B[0]=Be.call(this,oi,gi.html())),Ci(gi,B,J,Q)});if(je&&(Ct=(_t=Kt(B,y[0].ownerDocument,!1,y,Q)).firstChild,1===_t.childNodes.length&&(_t=Ct),Ct||Q)){for(te=(Mt=v.map(vt(_t,"script"),si)).length;Ie<je;Ie++)ie=_t,Ie!==ke&&(ie=v.clone(ie,!0,!0),te&&v.merge(Mt,vt(ie,"script"))),J.call(y[Ie],ie,Ie);if(te)for(re=Mt[Mt.length-1].ownerDocument,v.map(Mt,$i),Ie=0;Ie<te;Ie++)nt.test((ie=Mt[Ie]).type||"")&&!zt.access(ie,"globalEval")&&v.contains(re,ie)&&(ie.src&&"module"!==(ie.type||"").toLowerCase()?v._evalUrl&&!ie.noModule&&v._evalUrl(ie.src,{nonce:ie.nonce||ie.getAttribute("nonce")}):O(ie.textContent.replace(rn,""),ie,re))}return y}function fn(y,B,J){for(var Q,_t=B?v.filter(B,y):y,Ct=0;null!=(Q=_t[Ct]);Ct++)J||1!==Q.nodeType||v.cleanData(vt(Q)),Q.parentNode&&(J&&ue(Q)&&Wt(vt(Q,"script")),Q.parentNode.removeChild(Q));return y}v.extend({htmlPrefilter:function(y){return y.replace(yi,"<$1></$2>")},clone:function(y,B,J){var Q,_t,Ct,Mt,te,ie,re,Ie=y.cloneNode(!0),je=ue(y);if(!(x.noCloneChecked||1!==y.nodeType&&11!==y.nodeType||v.isXMLDoc(y)))for(Mt=vt(Ie),Q=0,_t=(Ct=vt(y)).length;Q<_t;Q++)te=Ct[Q],"input"===(re=(ie=Mt[Q]).nodeName.toLowerCase())&&C.test(te.type)?ie.checked=te.checked:"input"!==re&&"textarea"!==re||(ie.defaultValue=te.defaultValue);if(B)if(J)for(Ct=Ct||vt(y),Mt=Mt||vt(Ie),Q=0,_t=Ct.length;Q<_t;Q++)an(Ct[Q],Mt[Q]);else an(y,Ie);return 0<(Mt=vt(Ie,"script")).length&&Wt(Mt,!je&&vt(y,"script")),Ie},cleanData:function(y){for(var B,J,Q,_t=v.event.special,Ct=0;void 0!==(J=y[Ct]);Ct++)if(Gt(J)){if(B=J[zt.expando]){if(B.events)for(Q in B.events)_t[Q]?v.event.remove(J,Q):v.removeEvent(J,Q,B.handle);J[zt.expando]=void 0}J[Ee.expando]&&(J[Ee.expando]=void 0)}}}),v.fn.extend({detach:function(y){return fn(this,y,!0)},remove:function(y){return fn(this,y)},text:function(y){return Ut(this,function(B){return void 0===B?v.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=B)})},null,y,arguments.length)},append:function(){return Ci(this,arguments,function(y){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ei(this,y).appendChild(y)})},prepend:function(){return Ci(this,arguments,function(y){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var B=Ei(this,y);B.insertBefore(y,B.firstChild)}})},before:function(){return Ci(this,arguments,function(y){this.parentNode&&this.parentNode.insertBefore(y,this)})},after:function(){return Ci(this,arguments,function(y){this.parentNode&&this.parentNode.insertBefore(y,this.nextSibling)})},empty:function(){for(var y,B=0;null!=(y=this[B]);B++)1===y.nodeType&&(v.cleanData(vt(y,!1)),y.textContent="");return this},clone:function(y,B){return y=null!=y&&y,B=null==B?y:B,this.map(function(){return v.clone(this,y,B)})},html:function(y){return Ut(this,function(B){var J=this[0]||{},Q=0,_t=this.length;if(void 0===B&&1===J.nodeType)return J.innerHTML;
vendor: 9,245 bytes, line 1
1if("string"==typeof B&&!Ii.test(B)&&!ut[(U.exec(B)||["",""])[1].toLowerCase()]){B=v.htmlPrefilter(B);try{for(;Q<_t;Q++)1===(J=this[Q]||{}).nodeType&&(v.cleanData(vt(J,!1)),J.innerHTML=B);J=0}catch(Ct){}}J&&this.empty().append(B)},null,y,arguments.length)},replaceWith:function(){var y=[];return Ci(this,arguments,function(B){var J=this.parentNode;v.inArray(this,y)<0&&(v.cleanData(vt(this)),J&&J.replaceChild(B,this))},y)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(y,B){v.fn[y]=function(J){for(var Q,_t=[],Ct=v(J),Mt=Ct.length-1,te=0;te<=Mt;te++)Q=te===Mt?this:this.clone(!0),v(Ct[te])[B](Q),b.apply(_t,Q.get());return this.pushStack(_t)}});var yn,bn,Pi,Ln,Sn,mn,Xi,Qi=new RegExp("^("+$t+")(?!px)[a-z%]+$","i"),Rn=function(y){var B=y.ownerDocument.defaultView;return B&&B.opener||(B=i),B.getComputedStyle(y)},Un=new RegExp(ne.join("|"),"i");function Fi(){if(Xi){mn.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Xi.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",xe.appendChild(mn).appendChild(Xi);var y=i.getComputedStyle(Xi);yn="1%"!==y.top,Sn=12===Di(y.marginLeft),Xi.style.right="60%",Ln=36===Di(y.right),bn=36===Di(y.width),Xi.style.position="absolute",Pi=12===Di(Xi.offsetWidth/3),xe.removeChild(mn),Xi=null}}function Di(y){return Math.round(parseFloat(y))}function ai(y,B,J){var Q,_t,Ct,Mt,te=y.style;return(J=J||Rn(y))&&(""!==(Mt=J.getPropertyValue(B)||J[B])||ue(y)||(Mt=v.style(y,B)),!x.pixelBoxStyles()&&Qi.test(Mt)&&Un.test(B)&&(Q=te.width,_t=te.minWidth,Ct=te.maxWidth,te.minWidth=te.maxWidth=te.width=Mt,Mt=J.width,te.width=Q,te.minWidth=_t,te.maxWidth=Ct)),void 0!==Mt?Mt+"":Mt}function Wi(y,B){return{get:function(){if(!y())return(this.get=B).apply(this,arguments);delete this.get}}}mn=l.createElement("div"),(Xi=l.createElement("div")).style&&(Xi.style.backgroundClip="content-box",Xi.cloneNode(!0).style.backgroundClip="",x.clearCloneStyle="content-box"===Xi.style.backgroundClip,v.extend(x,{boxSizingReliable:function(){return Fi(),bn},pixelBoxStyles:function(){return Fi(),Ln},pixelPosition:function(){return Fi(),yn},reliableMarginLeft:function(){return Fi(),Sn},scrollboxSize:function(){return Fi(),Pi}}));var We=["Webkit","Moz","ms"],us=l.createElement("div").style,$n={};function Zi(y){return v.cssProps[y]||$n[y]||(y in us?y:$n[y]=function(J){for(var Q=J[0].toUpperCase()+J.slice(1),_t=We.length;_t--;)if((J=We[_t]+Q)in us)return J}(y)||y)}var di=/^(none|table(?!-c[ea]).+)/,Gn=/^--/,En={position:"absolute",visibility:"hidden",display:"block"},Ai={letterSpacing:"0",fontWeight:"400"};function ln(y,B,J){var Q=ee.exec(B);return Q?Math.max(0,Q[2]-(J||0))+(Q[3]||"px"):B}function en(y,B,J,Q,_t,Ct){var Mt="width"===B?1:0,te=0,ie=0;if(J===(Q?"border":"content"))return 0;for(;Mt<4;Mt+=2)"margin"===J&&(ie+=v.css(y,J+ne[Mt],!0,_t)),Q?("content"===J&&(ie-=v.css(y,"padding"+ne[Mt],!0,_t)),"margin"!==J&&(ie-=v.css(y,"border"+ne[Mt]+"Width",!0,_t))):(ie+=v.css(y,"padding"+ne[Mt],!0,_t),"padding"!==J?ie+=v.css(y,"border"+ne[Mt]+"Width",!0,_t):te+=v.css(y,"border"+ne[Mt]+"Width",!0,_t));return!Q&&0<=Ct&&(ie+=Math.max(0,Math.ceil(y["offset"+B[0].toUpperCase()+B.slice(1)]-Ct-ie-te-.5))||0),ie}function Zn(y,B,J){var Q=Rn(y),_t=(!x.boxSizingReliable()||J)&&"border-box"===v.css(y,"boxSizing",!1,Q),Ct=_t,Mt=ai(y,B,Q),te="offset"+B[0].toUpperCase()+B.slice(1);if(Qi.test(Mt)){if(!J)return Mt;Mt="auto"}return(!x.boxSizingReliable()&&_t||"auto"===Mt||!parseFloat(Mt)&&"inline"===v.css(y,"display",!1,Q))&&y.getClientRects().length&&(_t="border-box"===v.css(y,"boxSizing",!1,Q),(Ct=te in y)&&(Mt=y[te])),(Mt=parseFloat(Mt)||0)+en(y,B,J||(_t?"border":"content"),Ct,Q,Mt)+"px"}function hn(y,B,J,Q,_t){return new hn.prototype.init(y,B,J,Q,_t)}v.extend({cssHooks:{opacity:{get:function(y,B){if(B){var J=ai(y,"opacity");return""===J?"1":J}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(y,B,J,Q){if(y&&3!==y.nodeType&&8!==y.nodeType&&y.style){var _t,Ct,Mt,te=Ht(B),ie=Gn.test(B),re=y.style;if(ie||(B=Zi(te)),Mt=v.cssHooks[B]||v.cssHooks[te],void 0===J)return Mt&&"get"in Mt&&void 0!==(_t=Mt.get(y,!1,Q))?_t:re[B];"string"==(Ct=typeof J)&&(_t=ee.exec(J))&&_t[1]&&(J=s(y,B,_t),Ct="number"),null!=J&&J==J&&("number"!==Ct||ie||(J+=_t&&_t[3]||(v.cssNumber[te]?"":"px")),x.clearCloneStyle||""!==J||0!==B.indexOf("background")||(re[B]="inherit"),Mt&&"set"in Mt&&void 0===(J=Mt.set(y,J,Q))||(ie?re.setProperty(B,J):re[B]=J))}},css:function(y,B,J,Q){var _t,Ct,Mt,te=Ht(B);return Gn.test(B)||(B=Zi(te)),(Mt=v.cssHooks[B]||v.cssHooks[te])&&"get"in Mt&&(_t=Mt.get(y,!0,J)),void 0===_t&&(_t=ai(y,B,Q)),"normal"===_t&&B in Ai&&(_t=Ai[B]),""===J||J?(Ct=parseFloat(_t),!0===J||isFinite(Ct)?Ct||0:_t):_t}}),v.each(["height","width"],function(y,B){v.cssHooks[B]={get:function(J,Q,_t){if(Q)return!di.test(v.css(J,"display"))||J.getClientRects().length&&J.getBoundingClientRect().width?Zn(J,B,_t):Le(J,En,function(){return Zn(J,B,_t)})},set:function(J,Q,_t){var Ct,Mt=Rn(J),te=!x.scrollboxSize()&&"absolute"===Mt.position,ie=(te||_t)&&"border-box"===v.css(J,"boxSizing",!1,Mt),re=_t?en(J,B,_t,ie,Mt):0;return ie&&te&&(re-=Math.ceil(J["offset"+B[0].toUpperCase()+B.slice(1)]-parseFloat(Mt[B])-en(J,B,"border",!1,Mt)-.5)),re&&(Ct=ee.exec(Q))&&"px"!==(Ct[3]||"px")&&(J.style[B]=Q,Q=v.css(J,B)),ln(0,Q,re)}}}),v.cssHooks.marginLeft=Wi(x.reliableMarginLeft,function(y,B){if(B)return(parseFloat(ai(y,"marginLeft"))||y.getBoundingClientRect().left-Le(y,{marginLeft:0},function(){return y.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(y,B){v.cssHooks[y+B]={expand:function(J){for(var Q=0,_t={},Ct="string"==typeof J?J.split(" "):[J];Q<4;Q++)_t[y+ne[Q]+B]=Ct[Q]||Ct[Q-2]||Ct[0];return _t}},"margin"!==y&&(v.cssHooks[y+B].set=ln)}),v.fn.extend({css:function(y,B){return Ut(this,function(J,Q,_t){var Ct,Mt,te={},ie=0;if(Array.isArray(Q)){for(Ct=Rn(J),Mt=Q.length;ie<Mt;ie++)te[Q[ie]]=v.css(J,Q[ie],!1,Ct);return te}return void 0!==_t?v.style(J,Q,_t):v.css(J,Q)},y,B,1<arguments.length)}}),((v.Tween=hn).prototype={constructor:hn,init:function(y,B,J,Q,_t,Ct){this.elem=y,this.prop=J,this.easing=_t||v.easing._default,this.options=B,this.start=this.now=this.cur(),this.end=Q,this.unit=Ct||(v.cssNumber[J]?"":"px")},cur:function(){var y=hn.propHooks[this.prop];return y&&y.get?y.get(this):hn.propHooks._default.get(this)},run:function(y){var B,J=hn.propHooks[this.prop];return this.pos=B=this.options.duration?v.easing[this.easing](y,this.options.duration*y,0,1,this.options.duration):y,this.now=(this.end-this.start)*B+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),J&&J.set?J.set(this):hn.propHooks._default.set(this),this}}).init.prototype=hn.prototype,(hn.propHooks={_default:{get:function(y){var B;return 1!==y.elem.nodeType||null!=y.elem[y.prop]&&null==y.elem.style[y.prop]?y.elem[y.prop]:(B=v.css(y.elem,y.prop,""))&&"auto"!==B?B:0},set:function(y){v.fx.step[y.prop]?v.fx.step[y.prop](y):1!==y.elem.nodeType||!v.cssHooks[y.prop]&&null==y.elem.style[Zi(y.prop)]?y.elem[y.prop]=y.now:v.style(y.elem,y.prop,y.now+y.unit)}}}).scrollTop=hn.propHooks.scrollLeft={set:function(y){y.elem.nodeType&&y.elem.parentNode&&(y.elem[y.prop]=y.now)}},v.easing={linear:function(y){return y},swing:function(y){return.5-Math.cos(y*Math.PI)/2},_default:"swing"},v.fx=hn.prototype.init,v.fx.step={};var Mn,ls,ms,Ss,ds=/^(?:toggle|show|hide)$/,ss=/queueHooks$/;function wn(){ls&&(!1===l.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(wn):i.setTimeout(wn,v.fx.interval),v.fx.tick())}function ps(){return i.setTimeout(function(){Mn=void 0}),Mn=Date.now()}function vs(y,B){var J,Q=0,_t={height:y};for(B=B?1:0;Q<4;Q+=2-B)_t["margin"+(J=ne[Q])]=_t["padding"+J]=y;return B&&(_t.opacity=_t.width=y),_t}function Jn(y,B,J){for(var Q,_t=(In.tweeners[B]||[]).concat(In.tweeners["*"]),Ct=0,Mt=_t.length;Ct<Mt;Ct++)if(Q=_t[Ct].call(J,B,y))return Q}function In(y,B,J){var Q,_t,Ct=0,Mt=In.prefilters.length,te=v.Deferred().always(function(){delete ie.elem}),ie=function(){if(_t)return!1;for(var je=Mn||ps(),ke=Math.max(0,re.startTime+re.duration-je),Be=1-(ke/re.duration||0),pi=0,oi=re.tweens.length;pi<oi;pi++)re.tweens[pi].run(Be);return te.notifyWith(y,[re,Be,ke]),Be<1&&oi?ke:(oi||te.notifyWith(y,[re,1,0]),te.resolveWith(y,[re]),!1)},re=te.promise({elem:y,props:v.extend({},B),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},J),originalProperties:B,originalOptions:J,startTime:Mn||ps(),duration:J.duration,tweens:[],createTween:function(je,ke){var Be=v.Tween(y,re.opts,je,ke,re.opts.specialEasing[je]||re.opts.easing);return re.tweens.push(Be),Be},stop:function(je){var ke=0,Be=je?re.tweens.length:0;if(_t)return this;for(_t=!0;ke<Be;ke++)re.tweens[ke].run(1);return je?(te.notifyWith(y,[re,1,0]),te.resolveWith(y,[re,je])):te.rejectWith(y,[re,je]),this}}),Ie=re.props;for(function(je,ke){var Be,pi,oi,gi,Ki;
vendor: 4,293 bytes, line 1
1for(Be in je)if(oi=ke[pi=Ht(Be)],gi=je[Be],Array.isArray(gi)&&(oi=gi[1],gi=je[Be]=gi[0]),Be!==pi&&(je[pi]=gi,delete je[Be]),(Ki=v.cssHooks[pi])&&"expand"in Ki)for(Be in gi=Ki.expand(gi),delete je[pi],gi)Be in je||(je[Be]=gi[Be],ke[Be]=oi);else ke[pi]=oi}(Ie,re.opts.specialEasing);Ct<Mt;Ct++)if(Q=In.prefilters[Ct].call(re,y,Ie,re.opts))return S(Q.stop)&&(v._queueHooks(re.elem,re.opts.queue).stop=Q.stop.bind(Q)),Q;return v.map(Ie,Jn,re),S(re.opts.start)&&re.opts.start.call(y,re),re.progress(re.opts.progress).done(re.opts.done,re.opts.complete).fail(re.opts.fail).always(re.opts.always),v.fx.timer(v.extend(ie,{elem:y,anim:re,queue:re.opts.queue})),re}v.Animation=v.extend(In,{tweeners:{"*":[function(y,B){var J=this.createTween(y,B);return s(J.elem,y,ee.exec(B),J),J}]},tweener:function(y,B){for(var J,Q=0,_t=(y=S(y)?(B=y,["*"]):y.match(w)).length;Q<_t;Q++)(In.tweeners[J=y[Q]]=In.tweeners[J]||[]).unshift(B)},prefilters:[function(y,B,J){var Q,_t,Ct,Mt,te,ie,re,Ie,je="width"in B||"height"in B,ke=this,Be={},pi=y.style,oi=y.nodeType&&e(y),gi=zt.get(y,"fxshow");for(Q in J.queue||(null==(Mt=v._queueHooks(y,"fx")).unqueued&&(Mt.unqueued=0,te=Mt.empty.fire,Mt.empty.fire=function(){Mt.unqueued||te()}),Mt.unqueued++,ke.always(function(){ke.always(function(){Mt.unqueued--,v.queue(y,"fx").length||Mt.empty.fire()})})),B)if(ds.test(_t=B[Q])){if(delete B[Q],Ct=Ct||"toggle"===_t,_t===(oi?"hide":"show")){if("show"!==_t||!gi||void 0===gi[Q])continue;oi=!0}Be[Q]=gi&&gi[Q]||v.style(y,Q)}if((ie=!v.isEmptyObject(B))||!v.isEmptyObject(Be))for(Q in je&&1===y.nodeType&&(J.overflow=[pi.overflow,pi.overflowX,pi.overflowY],null==(re=gi&&gi.display)&&(re=zt.get(y,"display")),"none"===(Ie=v.css(y,"display"))&&(re?Ie=re:(g([y],!0),re=y.style.display||re,Ie=v.css(y,"display"),g([y]))),("inline"===Ie||"inline-block"===Ie&&null!=re)&&"none"===v.css(y,"float")&&(ie||(ke.done(function(){pi.display=re}),null==re&&(re="none"===(Ie=pi.display)?"":Ie)),pi.display="inline-block")),J.overflow&&(pi.overflow="hidden",ke.always(function(){pi.overflow=J.overflow[0],pi.overflowX=J.overflow[1],pi.overflowY=J.overflow[2]})),ie=!1,Be)ie||(gi?"hidden"in gi&&(oi=gi.hidden):gi=zt.access(y,"fxshow",{display:re}),Ct&&(gi.hidden=!oi),oi&&g([y],!0),ke.done(function(){for(Q in oi||g([y]),zt.remove(y,"fxshow"),Be)v.style(y,Q,Be[Q])})),ie=Jn(oi?gi[Q]:0,Q,ke),Q in gi||(gi[Q]=ie.start,oi&&(ie.end=ie.start,ie.start=0))}],prefilter:function(y,B){B?In.prefilters.unshift(y):In.prefilters.push(y)}}),v.speed=function(y,B,J){var Q=y&&"object"==typeof y?v.extend({},y):{complete:J||!J&&B||S(y)&&y,duration:y,easing:J&&B||B&&!S(B)&&B};return v.fx.off?Q.duration=0:"number"!=typeof Q.duration&&(Q.duration=Q.duration in v.fx.speeds?v.fx.speeds[Q.duration]:v.fx.speeds._default),null!=Q.queue&&!0!==Q.queue||(Q.queue="fx"),Q.old=Q.complete,Q.complete=function(){S(Q.old)&&Q.old.call(this),Q.queue&&v.dequeue(this,Q.queue)},Q},v.fn.extend({fadeTo:function(y,B,J,Q){return this.filter(e).css("opacity",0).show().end().animate({opacity:B},y,J,Q)},animate:function(y,B,J,Q){function _t(){var te=In(this,v.extend({},y),Mt);(Ct||zt.get(this,"finish"))&&te.stop(!0)}var Ct=v.isEmptyObject(y),Mt=v.speed(B,J,Q);return _t.finish=_t,Ct||!1===Mt.queue?this.each(_t):this.queue(Mt.queue,_t)},stop:function(y,B,J){function Q(_t){var Ct=_t.stop;delete _t.stop,Ct(J)}return"string"!=typeof y&&(J=B,B=y,y=void 0),B&&!1!==y&&this.queue(y||"fx",[]),this.each(function(){var _t=!0,Ct=null!=y&&y+"queueHooks",Mt=v.timers,te=zt.get(this);if(Ct)te[Ct]&&te[Ct].stop&&Q(te[Ct]);else for(Ct in te)te[Ct]&&te[Ct].stop&&ss.test(Ct)&&Q(te[Ct]);for(Ct=Mt.length;Ct--;)Mt[Ct].elem!==this||null!=y&&Mt[Ct].queue!==y||(Mt[Ct].anim.stop(J),_t=!1,Mt.splice(Ct,1));!_t&&J||v.dequeue(this,y)})},finish:function(y){return!1!==y&&(y=y||"fx"),this.each(function(){var B,J=zt.get(this),Q=J[y+"queue"],_t=J[y+"queueHooks"],Ct=v.timers,Mt=Q?Q.length:0;for(J.finish=!0,v.queue(this,y,[]),_t&&_t.stop&&_t.stop.call(this,!0),B=Ct.length;B--;)Ct[B].elem===this&&Ct[B].queue===y&&(Ct[B].anim.stop(!0),Ct.splice(B,1));for(B=0;B<Mt;B++)Q[B]&&Q[B].finish&&Q[B].finish.call(this);delete J.finish})}}),v.each(["toggle","show","hide"],function(y,B){var J=v.fn[B];v.fn[B]=function(Q,_t,Ct){return null==Q||"boolean"==typeof Q?J.apply(this,arguments):this.animate(vs(B,!0),Q,_t,Ct)}}
vendor: 11,268 bytes, line 1
1),v.each({slideDown:vs("show"),slideUp:vs("hide"),slideToggle:vs("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(y,B){v.fn[y]=function(J,Q,_t){return this.animate(B,J,Q,_t)}}),v.timers=[],v.fx.tick=function(){var y,B=0,J=v.timers;for(Mn=Date.now();B<J.length;B++)(y=J[B])()||J[B]!==y||J.splice(B--,1);J.length||v.fx.stop(),Mn=void 0},v.fx.timer=function(y){v.timers.push(y),v.fx.start()},v.fx.interval=13,v.fx.start=function(){ls||(ls=!0,wn())},v.fx.stop=function(){ls=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(y,B){return y=v.fx&&v.fx.speeds[y]||y,this.queue(B=B||"fx",function(J,Q){var _t=i.setTimeout(J,y);Q.stop=function(){i.clearTimeout(_t)}})},ms=l.createElement("input"),Ss=l.createElement("select").appendChild(l.createElement("option")),ms.type="checkbox",x.checkOn=""!==ms.value,x.optSelected=Ss.selected,(ms=l.createElement("input")).value="t",ms.type="radio",x.radioValue="t"===ms.value;var Hn,Vn=v.expr.attrHandle;v.fn.extend({attr:function(y,B){return Ut(this,v.attr,y,B,1<arguments.length)},removeAttr:function(y){return this.each(function(){v.removeAttr(this,y)})}}),v.extend({attr:function(y,B,J){var Q,_t,Ct=y.nodeType;if(3!==Ct&&8!==Ct&&2!==Ct)return void 0===y.getAttribute?v.prop(y,B,J):(1===Ct&&v.isXMLDoc(y)||(_t=v.attrHooks[B.toLowerCase()]||(v.expr.match.bool.test(B)?Hn:void 0)),void 0!==J?null===J?void v.removeAttr(y,B):_t&&"set"in _t&&void 0!==(Q=_t.set(y,J,B))?Q:(y.setAttribute(B,J+""),J):_t&&"get"in _t&&null!==(Q=_t.get(y,B))?Q:null==(Q=v.find.attr(y,B))?void 0:Q)},attrHooks:{type:{set:function(y,B){if(!x.radioValue&&"radio"===B&&wt(y,"input")){var J=y.value;return y.setAttribute("type",B),J&&(y.value=J),B}}}},removeAttr:function(y,B){var J,Q=0,_t=B&&B.match(w);if(_t&&1===y.nodeType)for(;J=_t[Q++];)y.removeAttribute(J)}}),Hn={set:function(y,B,J){return!1===B?v.removeAttr(y,J):y.setAttribute(J,J),J}},v.each(v.expr.match.bool.source.match(/\w+/g),function(y,B){var J=Vn[B]||v.find.attr;Vn[B]=function(Q,_t,Ct){var Mt,te,ie=_t.toLowerCase();return Ct||(te=Vn[ie],Vn[ie]=Mt,Mt=null!=J(Q,_t,Ct)?ie:null,Vn[ie]=te),Mt}});var xn=/^(?:input|select|textarea|button)$/i,Ji=/^(?:a|area)$/i;function Xn(y){return(y.match(w)||[]).join(" ")}function hs(y){return y.getAttribute&&y.getAttribute("class")||""}function fs(y){return Array.isArray(y)?y:"string"==typeof y&&y.match(w)||[]}v.fn.extend({prop:function(y,B){return Ut(this,v.prop,y,B,1<arguments.length)},removeProp:function(y){return this.each(function(){delete this[v.propFix[y]||y]})}}),v.extend({prop:function(y,B,J){var Q,_t,Ct=y.nodeType;if(3!==Ct&&8!==Ct&&2!==Ct)return 1===Ct&&v.isXMLDoc(y)||(_t=v.propHooks[B=v.propFix[B]||B]),void 0!==J?_t&&"set"in _t&&void 0!==(Q=_t.set(y,J,B))?Q:y[B]=J:_t&&"get"in _t&&null!==(Q=_t.get(y,B))?Q:y[B]},propHooks:{tabIndex:{get:function(y){var B=v.find.attr(y,"tabindex");return B?parseInt(B,10):xn.test(y.nodeName)||Ji.test(y.nodeName)&&y.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),x.optSelected||(v.propHooks.selected={get:function(y){return null},set:function(y){}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this}),v.fn.extend({addClass:function(y){var B,J,Q,_t,Ct,Mt,te,ie=0;if(S(y))return this.each(function(re){v(this).addClass(y.call(this,re,hs(this)))});if((B=fs(y)).length)for(;J=this[ie++];)if(_t=hs(J),Q=1===J.nodeType&&" "+Xn(_t)+" "){for(Mt=0;Ct=B[Mt++];)Q.indexOf(" "+Ct+" ")<0&&(Q+=Ct+" ");_t!==(te=Xn(Q))&&J.setAttribute("class",te)}return this},removeClass:function(y){var B,J,Q,_t,Ct,Mt,te,ie=0;if(S(y))return this.each(function(re){v(this).removeClass(y.call(this,re,hs(this)))});if(!arguments.length)return this.attr("class","");if((B=fs(y)).length)for(;J=this[ie++];)if(_t=hs(J),Q=1===J.nodeType&&" "+Xn(_t)+" "){for(Mt=0;Ct=B[Mt++];)for(;-1<Q.indexOf(" "+Ct+" ");)Q=Q.replace(" "+Ct+" "," ");_t!==(te=Xn(Q))&&J.setAttribute("class",te)}return this},toggleClass:function(y,B){var J=typeof y,Q="string"==J||Array.isArray(y);return"boolean"==typeof B&&Q?B?this.addClass(y):this.removeClass(y):S(y)?this.each(function(_t){v(this).toggleClass(y.call(this,_t,hs(this),B),B)}):this.each(function(){var _t,Ct,Mt,te;if(Q)for(Ct=0,Mt=v(this),te=fs(y);_t=te[Ct++];)Mt.hasClass(_t)?Mt.removeClass(_t):Mt.addClass(_t);else void 0!==y&&"boolean"!=J||((_t=hs(this))&&zt.set(this,"__className__",_t),this.setAttribute&&this.setAttribute("class",_t||!1===y?"":zt.get(this,"__className__")||""))})},hasClass:function(y){var B,J,Q=0;for(B=" "+y+" ";J=this[Q++];)if(1===J.nodeType&&-1<(" "+Xn(hs(J))+" ").indexOf(B))return!0;return!1}});var zn=/\r/g;function f(y){y.stopPropagation()}v.fn.extend({val:function(y){var B,J,Q,_t=this[0];return arguments.length?(Q=S(y),this.each(function(Ct){var Mt;1===this.nodeType&&(null==(Mt=Q?y.call(this,Ct,v(this).val()):y)?Mt="":"number"==typeof Mt?Mt+="":Array.isArray(Mt)&&(Mt=v.map(Mt,function(te){return null==te?"":te+""})),(B=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in B&&void 0!==B.set(this,Mt,"value")||(this.value=Mt))})):_t?(B=v.valHooks[_t.type]||v.valHooks[_t.nodeName.toLowerCase()])&&"get"in B&&void 0!==(J=B.get(_t,"value"))?J:"string"==typeof(J=_t.value)?J.replace(zn,""):null==J?"":J:void 0}}),v.extend({valHooks:{option:{get:function(y){var B=v.find.attr(y,"value");return null!=B?B:Xn(v.text(y))}},select:{get:function(y){var B,J,Q,_t=y.options,Ct=y.selectedIndex,Mt="select-one"===y.type,te=Mt?null:[],ie=Mt?Ct+1:_t.length;for(Q=Ct<0?ie:Mt?Ct:0;Q<ie;Q++)if(((J=_t[Q]).selected||Q===Ct)&&!J.disabled&&(!J.parentNode.disabled||!wt(J.parentNode,"optgroup"))){if(B=v(J).val(),Mt)return B;te.push(B)}return te},set:function(y,B){for(var J,Q,_t=y.options,Ct=v.makeArray(B),Mt=_t.length;Mt--;)((Q=_t[Mt]).selected=-1<v.inArray(v.valHooks.option.get(Q),Ct))&&(J=!0);return J||(y.selectedIndex=-1),Ct}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(y,B){if(Array.isArray(B))return y.checked=-1<v.inArray(v(y).val(),B)}},x.checkOn||(v.valHooks[this].get=function(y){return null===y.getAttribute("value")?"on":y.value})}),x.focusin="onfocusin"in i;var P=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(y,B,J,Q){var _t,Ct,Mt,te,ie,re,Ie,je,ke=[J||l],Be=k.call(y,"type")?y.type:y,pi=k.call(y,"namespace")?y.namespace.split("."):[];if(Ct=je=Mt=J=J||l,3!==J.nodeType&&8!==J.nodeType&&!P.test(Be+v.event.triggered)&&(-1<Be.indexOf(".")&&(Be=(pi=Be.split(".")).shift(),pi.sort()),ie=Be.indexOf(":")<0&&"on"+Be,(y=y[v.expando]?y:new v.Event(Be,"object"==typeof y&&y)).isTrigger=Q?2:3,y.namespace=pi.join("."),y.rnamespace=y.namespace?new RegExp("(^|\\.)"+pi.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,y.result=void 0,y.target||(y.target=J),B=null==B?[y]:v.makeArray(B,[y]),Ie=v.event.special[Be]||{},Q||!Ie.trigger||!1!==Ie.trigger.apply(J,B))){if(!Q&&!Ie.noBubble&&!K(J)){for(P.test((te=Ie.delegateType||Be)+Be)||(Ct=Ct.parentNode);Ct;Ct=Ct.parentNode)ke.push(Ct),Mt=Ct;Mt===(J.ownerDocument||l)&&ke.push(Mt.defaultView||Mt.parentWindow||i)}for(_t=0;(Ct=ke[_t++])&&!y.isPropagationStopped();)je=Ct,y.type=1<_t?te:Ie.bindType||Be,(re=(zt.get(Ct,"events")||{})[y.type]&&zt.get(Ct,"handle"))&&re.apply(Ct,B),(re=ie&&Ct[ie])&&re.apply&&Gt(Ct)&&(y.result=re.apply(Ct,B),!1===y.result&&y.preventDefault());return y.type=Be,Q||y.isDefaultPrevented()||Ie._default&&!1!==Ie._default.apply(ke.pop(),B)||!Gt(J)||ie&&S(J[Be])&&!K(J)&&((Mt=J[ie])&&(J[ie]=null),v.event.triggered=Be,y.isPropagationStopped()&&je.addEventListener(Be,f),J[Be](),y.isPropagationStopped()&&je.removeEventListener(Be,f),v.event.triggered=void 0,Mt&&(J[ie]=Mt)),y.result}},simulate:function(y,B,J){var Q=v.extend(new v.Event,J,{type:y,isSimulated:!0});v.event.trigger(Q,null,B)}}),v.fn.extend({trigger:function(y,B){return this.each(function(){v.event.trigger(y,B,this)})},triggerHandler:function(y,B){var J=this[0];if(J)return v.event.trigger(y,B,J,!0)}}),x.focusin||v.each({focus:"focusin",blur:"focusout"},function(y,B){function J(Q){v.event.simulate(B,Q.target,v.event.fix(Q))}v.event.special[B]={setup:function(){var Q=this.ownerDocument||this,_t=zt.access(Q,B);_t||Q.addEventListener(y,J,!0),zt.access(Q,B,(_t||0)+1)},teardown:function(){var Q=this.ownerDocument||this,_t=zt.access(Q,B)-1;_t?zt.access(Q,B,_t):(Q.removeEventListener(y,J,!0),zt.remove(Q,B))}}});var q=i.location,Z=Date.now(),ct=/\?/;v.parseXML=function(y){var B;if(!y||"string"!=typeof y)return null;try{B=(new i.DOMParser).parseFromString(y,"text/xml")}catch(J){B=void 0}return B&&!B.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+y),B};var rt=/\[\]$/,bt=/\r?\n/g,ht=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Yt(y,B,J,Q){var _t;if(Array.isArray(B))v.each(B,function(Ct,Mt){J||rt.test(y)?Q(y,Mt):Yt(y+"["+("object"==typeof Mt&&null!=Mt?Ct:"")+"]",Mt,J,Q)});else if(J||"object"!==H(B))Q(y,B);else for(_t in B)Yt(y+"["+_t+"]",B[_t],J,Q)}v.param=function(y,B){function J(Ct,Mt){var te=S(Mt)?Mt():Mt;_t[_t.length]=encodeURIComponent(Ct)+"="+encodeURIComponent(null==te?"":te)}var Q,_t=[];if(null==y)return"";if(Array.isArray(y)||y.jquery&&!v.isPlainObject(y))v.each(y,function(){J(this.name,this.value)});else for(Q in y)Yt(Q,y[Q],B,J);return _t.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var y=v.prop(this,"elements");return y?v.makeArray(y):this}).filter(function(){var y=this.type;return this.name&&!v(this).is(":disabled")&&Nt.test(this.nodeName)&&!ht.test(y)&&(this.checked||!C.test(y))}).map(function(y,B){var J=v(this).val();return null==J?null:Array.isArray(J)?v.map(J,function(Q){return{name:B.name,value:Q.replace(bt,"\r\n")}}):{name:B.name,value:J.replace(bt,"\r\n")}}).get()}});var oe=/%20/g,ve=/#.*$/,Pe=/([?&])_=[^&]*/,li=/^(.*?):[ \t]*([^\r\n]*)$/gm,mi=/^(?:GET|HEAD)$/,Oe=/^\/\//,Ri={},nn={},un="*/".concat("*"),Fn=l.createElement("a");function dn(y){return function(B,J){"string"!=typeof B&&(J=B,B="*");var Q,_t=0,Ct=B.toLowerCase().match(w)||[];if(S(J))for(;Q=Ct[_t++];)"+"===Q[0]?(Q=Q.slice(1)||"*",(y[Q]=y[Q]||[]).unshift(J)):(y[Q]=y[Q]||[]).push(J)}}function Li(y,B,J,Q){var _t={},Ct=y===nn;function Mt(te){var ie;return _t[te]=!0,v.each(y[te]||[],function(re,Ie){var je=Ie(B,J,Q);return"string"!=typeof je||Ct||_t[je]?Ct?!(ie=je):void 0:(B.dataTypes.unshift(je),Mt(je),!1)}),ie}return Mt(B.dataTypes[0])||!_t["*"]&&Mt("*")}function zi(y,B){var J,Q,_t=v.ajaxSettings.flatOptions||{};for(J in B)void 0!==B[J]&&((_t[J]?y:Q=Q||{})[J]=B[J]);return Q&&v.extend(!0,y,Q),y}Fn.href=q.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:q.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(q.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":un,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML}
vendor: 7,982 bytes, line 1
1,flatOptions:{url:!0,context:!0}},ajaxSetup:function(y,B){return B?zi(zi(y,v.ajaxSettings),B):zi(v.ajaxSettings,y)},ajaxPrefilter:dn(Ri),ajaxTransport:dn(nn),ajax:function(y,B){"object"==typeof y&&(B=y,y=void 0);var J,Q,_t,Ct,Mt,te,ie,re,Ie,je,ke=v.ajaxSetup({},B=B||{}),Be=ke.context||ke,pi=ke.context&&(Be.nodeType||Be.jquery)?v(Be):v.event,oi=v.Deferred(),gi=v.Callbacks("once memory"),Ki=ke.statusCode||{},Vi={},kn={},bs="canceled",Hi={readyState:0,getResponseHeader:function(Mi){var Yi;if(ie){if(!Ct)for(Ct={};Yi=li.exec(_t);)Ct[Yi[1].toLowerCase()+" "]=(Ct[Yi[1].toLowerCase()+" "]||[]).concat(Yi[2]);Yi=Ct[Mi.toLowerCase()+" "]}return null==Yi?null:Yi.join(", ")},getAllResponseHeaders:function(){return ie?_t:null},setRequestHeader:function(Mi,Yi){return null==ie&&(Mi=kn[Mi.toLowerCase()]=kn[Mi.toLowerCase()]||Mi,Vi[Mi]=Yi),this},overrideMimeType:function(Mi){return null==ie&&(ke.mimeType=Mi),this},statusCode:function(Mi){var Yi;if(Mi)if(ie)Hi.always(Mi[Hi.status]);else for(Yi in Mi)Ki[Yi]=[Ki[Yi],Mi[Yi]];return this},abort:function(Mi){var Yi=Mi||bs;return J&&J.abort(Yi),sn(0,Yi),this}};if(oi.promise(Hi),ke.url=((y||ke.url||q.href)+"").replace(Oe,q.protocol+"//"),ke.type=B.method||B.type||ke.method||ke.type,ke.dataTypes=(ke.dataType||"*").toLowerCase().match(w)||[""],null==ke.crossDomain){te=l.createElement("a");try{te.href=ke.url,te.href=te.href,ke.crossDomain=Fn.protocol+"//"+Fn.host!=te.protocol+"//"+te.host}catch(Mi){ke.crossDomain=!0}}if(ke.data&&ke.processData&&"string"!=typeof ke.data&&(ke.data=v.param(ke.data,ke.traditional)),Li(Ri,ke,B,Hi),ie)return Hi;for(Ie in(re=v.event&&ke.global)&&0==v.active++&&v.event.trigger("ajaxStart"),ke.type=ke.type.toUpperCase(),ke.hasContent=!mi.test(ke.type),Q=ke.url.replace(ve,""),ke.hasContent?ke.data&&ke.processData&&0===(ke.contentType||"").indexOf("application/x-www-form-urlencoded")&&(ke.data=ke.data.replace(oe,"+")):(je=ke.url.slice(Q.length),ke.data&&(ke.processData||"string"==typeof ke.data)&&(Q+=(ct.test(Q)?"&":"?")+ke.data,delete ke.data),!1===ke.cache&&(Q=Q.replace(Pe,"$1"),je=(ct.test(Q)?"&":"?")+"_="+Z+++je),ke.url=Q+je),ke.ifModified&&(v.lastModified[Q]&&Hi.setRequestHeader("If-Modified-Since",v.lastModified[Q]),v.etag[Q]&&Hi.setRequestHeader("If-None-Match",v.etag[Q])),(ke.data&&ke.hasContent&&!1!==ke.contentType||B.contentType)&&Hi.setRequestHeader("Content-Type",ke.contentType),Hi.setRequestHeader("Accept",ke.dataTypes[0]&&ke.accepts[ke.dataTypes[0]]?ke.accepts[ke.dataTypes[0]]+("*"!==ke.dataTypes[0]?", "+un+"; q=0.01":""):ke.accepts["*"]),ke.headers)Hi.setRequestHeader(Ie,ke.headers[Ie]);if(ke.beforeSend&&(!1===ke.beforeSend.call(Be,Hi,ke)||ie))return Hi.abort();if(bs="abort",gi.add(ke.complete),Hi.done(ke.success),Hi.fail(ke.error),J=Li(nn,ke,B,Hi)){if(Hi.readyState=1,re&&pi.trigger("ajaxSend",[Hi,ke]),ie)return Hi;ke.async&&0<ke.timeout&&(Mt=i.setTimeout(function(){Hi.abort("timeout")},ke.timeout));try{ie=!1,J.send(Vi,sn)}catch(Mi){if(ie)throw Mi;sn(-1,Mi)}}else sn(-1,"No Transport");function sn(Mi,Yi,Ps,ys){var os,Es,rs,as,xs,gn=Yi;ie||(ie=!0,Mt&&i.clearTimeout(Mt),J=void 0,_t=ys||"",Hi.readyState=0<Mi?4:0,os=200<=Mi&&Mi<300||304===Mi,Ps&&(as=function(cn,Pn,pn){for(var qn,vi,T,X,pt=cn.contents,Et=cn.dataTypes;"*"===Et[0];)Et.shift(),void 0===qn&&(qn=cn.mimeType||Pn.getResponseHeader("Content-Type"));if(qn)for(vi in pt)if(pt[vi]&&pt[vi].test(qn)){Et.unshift(vi);break}if(Et[0]in pn)T=Et[0];else{for(vi in pn){if(!Et[0]||cn.converters[vi+" "+Et[0]]){T=vi;break}X=X||vi}T=T||X}if(T)return T!==Et[0]&&Et.unshift(T),pn[T]}(ke,Hi,Ps)),as=function(cn,Pn,pn,qn){var vi,T,X,pt,Et,se={},Ae=cn.dataTypes.slice();if(Ae[1])for(X in cn.converters)se[X.toLowerCase()]=cn.converters[X];for(T=Ae.shift();T;)if(cn.responseFields[T]&&(pn[cn.responseFields[T]]=Pn),!Et&&qn&&cn.dataFilter&&(Pn=cn.dataFilter(Pn,cn.dataType)),Et=T,T=Ae.shift())if("*"===T)T=Et;else if("*"!==Et&&Et!==T){if(!(X=se[Et+" "+T]||se["* "+T]))for(vi in se)if((pt=vi.split(" "))[1]===T&&(X=se[Et+" "+pt[0]]||se["* "+pt[0]])){!0===X?X=se[vi]:!0!==se[vi]&&(T=pt[0],Ae.unshift(pt[1]));break}if(!0!==X)if(X&&cn.throws)Pn=X(Pn);else try{Pn=X(Pn)}catch(Re){return{state:"parsererror",error:X?Re:"No conversion from "+Et+" to "+T}}}return{state:"success",data:Pn}}(ke,as,Hi,os),os?(ke.ifModified&&((xs=Hi.getResponseHeader("Last-Modified"))&&(v.lastModified[Q]=xs),(xs=Hi.getResponseHeader("etag"))&&(v.etag[Q]=xs)),204===Mi||"HEAD"===ke.type?gn="nocontent":304===Mi?gn="notmodified":(gn=as.state,Es=as.data,os=!(rs=as.error))):(rs=gn,!Mi&&gn||(gn="error",Mi<0&&(Mi=0))),Hi.status=Mi,Hi.statusText=(Yi||gn)+"",os?oi.resolveWith(Be,[Es,gn,Hi]):oi.rejectWith(Be,[Hi,gn,rs]),Hi.statusCode(Ki),Ki=void 0,re&&pi.trigger(os?"ajaxSuccess":"ajaxError",[Hi,ke,os?Es:rs]),gi.fireWith(Be,[Hi,gn]),re&&(pi.trigger("ajaxComplete",[Hi,ke]),--v.active||v.event.trigger("ajaxStop")))}return Hi},getJSON:function(y,B,J){return v.get(y,B,J,"json")},getScript:function(y,B){return v.get(y,void 0,B,"script")}}),v.each(["get","post"],function(y,B){v[B]=function(J,Q,_t,Ct){return S(Q)&&(Ct=Ct||_t,_t=Q,Q=void 0),v.ajax(v.extend({url:J,type:B,dataType:Ct,data:Q,success:_t},v.isPlainObject(J)&&J))}}),v._evalUrl=function(y,B){return v.ajax({url:y,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(J){v.globalEval(J,B)}})},v.fn.extend({wrapAll:function(y){var B;return this[0]&&(S(y)&&(y=y.call(this[0])),B=v(y,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&B.insertBefore(this[0]),B.map(function(){for(var J=this;J.firstElementChild;)J=J.firstElementChild;return J}).append(this)),this},wrapInner:function(y){return S(y)?this.each(function(B){v(this).wrapInner(y.call(this,B))}):this.each(function(){var B=v(this),J=B.contents();J.length?J.wrapAll(y):B.append(y)})},wrap:function(y){var B=S(y);return this.each(function(J){v(this).wrapAll(B?y.call(this,J):y)})},unwrap:function(y){return this.parent(y).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(y){return!v.expr.pseudos.visible(y)},v.expr.pseudos.visible=function(y){return!!(y.offsetWidth||y.offsetHeight||y.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(y){}};var Cn={0:200,1223:204},_n=v.ajaxSettings.xhr();x.cors=!!_n&&"withCredentials"in _n,x.ajax=_n=!!_n,v.ajaxTransport(function(y){var B,J;if(x.cors||_n&&!y.crossDomain)return{send:function(Q,_t){var Ct,Mt=y.xhr();if(Mt.open(y.type,y.url,y.async,y.username,y.password),y.xhrFields)for(Ct in y.xhrFields)Mt[Ct]=y.xhrFields[Ct];for(Ct in y.mimeType&&Mt.overrideMimeType&&Mt.overrideMimeType(y.mimeType),y.crossDomain||Q["X-Requested-With"]||(Q["X-Requested-With"]="XMLHttpRequest"),Q)Mt.setRequestHeader(Ct,Q[Ct]);B=function(te){return function(){B&&(B=J=Mt.onload=Mt.onerror=Mt.onabort=Mt.ontimeout=Mt.onreadystatechange=null,"abort"===te?Mt.abort():"error"===te?"number"!=typeof Mt.status?_t(0,"error"):_t(Mt.status,Mt.statusText):_t(Cn[Mt.status]||Mt.status,Mt.statusText,"text"!==(Mt.responseType||"text")||"string"!=typeof Mt.responseText?{binary:Mt.response}:{text:Mt.responseText},Mt.getAllResponseHeaders()))}},Mt.onload=B(),J=Mt.onerror=Mt.ontimeout=B("error"),void 0!==Mt.onabort?Mt.onabort=J:Mt.onreadystatechange=function(){4===Mt.readyState&&i.setTimeout(function(){B&&J()})},B=B("abort");try{Mt.send(y.hasContent&&y.data||null)}catch(te){if(B)throw te}},abort:function(){B&&B()}}}),v.ajaxPrefilter(function(y){y.crossDomain&&(y.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(y){return v.globalEval(y),y}}}),v.ajaxPrefilter("script",function(y){void 0===y.cache&&(y.cache=!1),y.crossDomain&&(y.type="GET")}),v.ajaxTransport("script",function(y){var B,J;if(y.crossDomain||y.scriptAttrs)return{send:function(Q,_t){B=v("<script>").attr(y.scriptAttrs||{}
vendor: 2,562 bytes, line 1
1).prop({charset:y.scriptCharset,src:y.url}).on("load error",J=function(Ct){B.remove(),J=null,Ct&&_t("error"===Ct.type?404:200,Ct.type)}),l.head.appendChild(B[0])},abort:function(){J&&J()}}});var Nn,tn=[],Dn=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var y=tn.pop()||v.expando+"_"+Z++;return this[y]=!0,y}}),v.ajaxPrefilter("json jsonp",function(y,B,J){var Q,_t,Ct,Mt=!1!==y.jsonp&&(Dn.test(y.url)?"url":"string"==typeof y.data&&0===(y.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(y.data)&&"data");if(Mt||"jsonp"===y.dataTypes[0])return Q=y.jsonpCallback=S(y.jsonpCallback)?y.jsonpCallback():y.jsonpCallback,Mt?y[Mt]=y[Mt].replace(Dn,"$1"+Q):!1!==y.jsonp&&(y.url+=(ct.test(y.url)?"&":"?")+y.jsonp+"="+Q),y.converters["script json"]=function(){return Ct||v.error(Q+" was not called"),Ct[0]},y.dataTypes[0]="json",_t=i[Q],i[Q]=function(){Ct=arguments},J.always(function(){void 0===_t?v(i).removeProp(Q):i[Q]=_t,y[Q]&&(y.jsonpCallback=B.jsonpCallback,tn.push(Q)),Ct&&S(_t)&&_t(Ct[0]),Ct=_t=void 0}),"script"}),x.createHTMLDocument=((Nn=l.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Nn.childNodes.length),v.parseHTML=function(y,B,J){return"string"!=typeof y?[]:("boolean"==typeof B&&(J=B,B=!1),B||(x.createHTMLDocument?((Q=(B=l.implementation.createHTMLDocument("")).createElement("base")).href=l.location.href,B.head.appendChild(Q)):B=l),Ct=!J&&[],(_t=qt.exec(y))?[B.createElement(_t[1])]:(_t=Kt([y],B,Ct),Ct&&Ct.length&&v(Ct).remove(),v.merge([],_t.childNodes)));var Q,_t,Ct},v.fn.load=function(y,B,J){var Q,_t,Ct,Mt=this,te=y.indexOf(" ");return-1<te&&(Q=Xn(y.slice(te)),y=y.slice(0,te)),S(B)?(J=B,B=void 0):B&&"object"==typeof B&&(_t="POST"),0<Mt.length&&v.ajax({url:y,type:_t||"GET",dataType:"html",data:B}).done(function(ie){Ct=arguments,Mt.html(Q?v("<div>").append(v.parseHTML(ie)).find(Q):ie)}).always(J&&function(ie,re){Mt.each(function(){J.apply(this,Ct||[ie.responseText,re,ie])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(y,B){v.fn[B]=function(J){return this.on(B,J)}}),v.expr.pseudos.animated=function(y){return v.grep(v.timers,function(B){return y===B.elem}).length},v.offset={setOffset:function(y,B,J){var Q,_t,Ct,Mt,te,ie,re=v.css(y,"position"),Ie=v(y),je={};"static"===re&&(y.style.position="relative"),te=Ie.offset(),Ct=v.css(y,"top"),ie=v.css(y,"left"),_t=("absolute"===re||"fixed"===re)&&-1<(Ct+ie).indexOf("auto")?(Mt=(Q=Ie.position()).top,Q.left):(Mt=parseFloat(Ct)||0,parseFloat(ie)||
10),S(B)&&(B=B.call(y,J,v.extend({},te))),null!=B.top&&(je.top=B.top-te.top+Mt),null!=B.left&&(je.left=B.left-te.left+_t),"using"in B?B.using.call(y,je):Ie.css(je)}},v.fn.extend({offset:function(y){if(arguments.length)return void 0===y?this:this.each(function(_t){v.offset.setOffset(this,y,_t)});var B,J,Q=this[0];return Q?Q.getClientRects().length?{top:(B=Q.getBoundingClientRect()).top+(J=Q.ownerDocument.defaultView).pageYOffset,left:B.left+J.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var y,B,J,Q=this[0],_t={top:0,left:0};if("fixed"===v.css(Q,"position"))B=Q.getBoundingClientRect();else{for(B=this.offset(),J=Q.ownerDocument,y=Q.offsetParent||J.documentElement;y&&(y===J.body||y===J.documentElement)&&"static"===v.css(y,"position");)y=y.parentNode;y&&y!==Q&&1===y.nodeType&&((_t=v(y).offset()).top+=v.css(y,"borderTopWidth",!0),_t.left+=v.css(y,"borderLeftWidth",!0))}return{top:B.top-_t.top-v.css(Q,"marginTop",!0),left:B.left-_t.left-v.css(Q,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var y=this.offsetParent;y&&"static"===v.css(y,"position");)y=y.offsetParent;return y||xe})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(y,B){var J="pageYOffset"===B;v.fn[y]=function(Q){return Ut(this,function(_t,Ct,Mt){var te;if(K(_t)?te=_t:9===_t.nodeType&&(te=_t.defaultView),void 0===Mt)return te?te[B]:_t[Ct];te?te.scrollTo(J?te.pageXOffset:Mt,J?Mt:te.pageYOffset):_t[Ct]=Mt},y,Q,arguments.length)}}),v.each(["top","left"],function(y,B){v.cssHooks[B]=Wi(x.pixelPosition,function(J,Q){if(Q)return Q=ai(J,B),Qi.test(Q)?v(J).position()[B]+"px":Q})}),v.each({Height:"height",Width:"width"},function(y,B){v.each({padding:"inner"+y,content:B,"":"outer"+y},function(J,Q){v.fn[Q]=function(_t,Ct){var Mt=arguments.length&&(J||"boolean"!=typeof _t),te=J||(!0===_t||!0===Ct?"margin":"border");return Ut(this,function(ie,re,Ie){var je;return K(ie)?0===Q.indexOf("outer")?ie["inner"+y]:ie.document.documentElement["client"+y]:9===ie.nodeType?(je=ie.documentElement,Math.max(ie.body["scroll"+y],je["scroll"+y],ie.body["offset"+y],je["offset"+y],je["client"+y])):void 0===Ie?v.css(ie,re,te):v.style(ie,re,Ie,te)},B,Mt?_t:void 0,Mt)}})}),v.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(y,B){v.fn[B]=function(J,Q){return 0<arguments.length?this.on(B,null,J,Q):this.trigger(B)}}),v.fn.extend({hover:function(y,B){return this.mouseenter(y).mouseleave(B||y)}}),v.fn.extend({bind:function(y,B,J){return this.on(y,null,B,J)},unbind:function(y,B){return this.off(y,null,B)},delegate:function(y,B,J,Q){return this.on(B,y,J,Q)},undelegate:function(y,B,J){return 1===arguments.length?this.off(y,"**"):this.off(B,y||"**",J)}}),v.proxy=function(y,B){var J,Q,_t;if("string"==typeof B&&(J=y[B],B=y,y=J),S(y))return Q=a.call(arguments,2),(_t=function(){return y.apply(B||this,Q.concat(a.call(arguments)))}).guid=y.guid=y.guid||v.guid++,_t},v.holdReady=function(y){y?v.readyWait++:v.ready(!0)},v.isArray=Array.isArray,v.parseJSON=JSON.parse,v.nodeName=wt,v.isFunction=S,v.isWindow=K,v.camelCase=Ht,v.type=H,v.now=Date.now,v.isNumeric=function(y){var B=v.type(y);return("number"===B||"string"===B)&&!isNaN(y-parseFloat(y))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return v});var ts=i.jQuery,On=i.$;return v.noConflict=function(y){return i.$===v&&(i.$=On),y&&i.jQuery===v&&(i.jQuery=ts),v},D||(i.jQuery=i.$=v),v});var _get=function i(D,K,F){null===D&&(D=Function.prototype);var l=Object.getOwnPropertyDescriptor(D,K);if(void 0===l){var r=Object.getPrototypeOf(D);return null===r?void 0:i(r,K,F)}if("value"in l)return l.value;var a=l.get;return void 0!==a?a.call(F):void 0},_createClass=function(){function i(D,K){for(var F=0;F<K.length;F++){var l=K[F];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(D,l.key,l)}}return function(D,K,F){return K&&i(D.prototype,K),F&&i(D,F),D}}();function _possibleConstructorReturn(i,D){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!D||"object"!=typeof D&&"function"!=typeof D?i:D}function _inherits(i,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function, not "+typeof D);i.prototype=Object.create(D&&D.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(i,D):i.__proto__=D)}function _classCallCheck(i,D){if(!(i instanceof D))throw new TypeError("Cannot call a class as a function")}window.cash=function(){function i(){}var D,K=document,F=window,l=Array.prototype,r=l.slice,a=l.filter,u=l.push,b=function(dt){return typeof dt==typeof i&&dt.call},L=function(dt){return"string"==typeof dt},W=/^#[\w-]*$/,R=/^\.[\w-]*$/,k=/<.+>/,N=/^\w+$/;function I(dt,Ht){return Ht=Ht||K,R.test(dt)?Ht.getElementsByClassName(
vendor: 11,617 bytes, line 1
1dt.slice(1)):N.test(dt)?Ht.getElementsByTagName(dt):Ht.querySelectorAll(dt)}function x(dt){if(!D){var Ht=(D=K.implementation.createHTMLDocument(null)).createElement("base");Ht.href=K.location.href,D.head.appendChild(Ht)}return D.body.innerHTML=dt,D.body.childNodes}function S(dt){"loading"!==K.readyState?dt():K.addEventListener("DOMContentLoaded",dt)}function A(dt,Ht){if(!dt)return this;if(dt.cash&&dt!==F)return dt;var Gt,ge=dt,zt=0;if(L(dt))ge=W.test(dt)?K.getElementById(dt.slice(1)):k.test(dt)?x(dt):I(dt,Ht);else if(b(dt))return S(dt),this;if(!ge)return this;if(ge.nodeType||ge===F)this[0]=ge,this.length=1;else for(Gt=this.length=ge.length;zt<Gt;zt++)this[zt]=ge[zt];return this}function O(dt,Ht){return new A(dt,Ht)}var H=O.fn=O.prototype=A.prototype={cash:!0,length:0,push:u,splice:l.splice,map:l.map,init:A};function z(dt,Ht){for(var Gt=dt.length,ge=0;ge<Gt&&!1!==Ht.call(dt[ge],dt[ge],ge,dt);ge++);}function v(dt,Ht){var Gt=dt&&(dt.matches||dt.webkitMatchesSelector||dt.mozMatchesSelector||dt.msMatchesSelector||dt.oMatchesSelector);return!!Gt&&Gt.call(dt,Ht)}function tt(dt){return L(dt)?v:dt.cash?function(Ht){return dt.is(Ht)}:function(Ht,Gt){return Ht===Gt}}function ft(dt){return O(r.call(dt).filter(function(Ht,Gt,ge){return ge.indexOf(Ht)===Gt}))}Object.defineProperty(H,"constructor",{value:O}),O.parseHTML=x,O.noop=i,O.isFunction=b,O.isString=L,O.extend=H.extend=function(dt){dt=dt||{};var Ht=r.call(arguments),Gt=Ht.length,ge=1;for(1===Ht.length&&(dt=this,ge=0);ge<Gt;ge++)if(Ht[ge])for(var zt in Ht[ge])Ht[ge].hasOwnProperty(zt)&&(dt[zt]=Ht[ge][zt]);return dt},O.extend({merge:function(dt,Ht){for(var Gt=+Ht.length,ge=dt.length,zt=0;zt<Gt;ge++,zt++)dt[ge]=Ht[zt];return dt.length=ge,dt},each:z,matches:v,unique:ft,isArray:Array.isArray,isNumeric:function(dt){return!isNaN(parseFloat(dt))&&isFinite(dt)}});var Rt=O.uid="_cash"+Date.now();function lt(dt){return dt[Rt]=dt[Rt]||{}}function at(dt,Ht,Gt){return lt(dt)[Ht]=Gt}function mt(dt,Ht){var Gt=lt(dt);return void 0===Gt[Ht]&&(Gt[Ht]=dt.dataset?dt.dataset[Ht]:O(dt).attr("data-"+Ht)),Gt[Ht]}H.extend({data:function(dt,Ht){if(L(dt))return void 0===Ht?mt(this[0],dt):this.each(function(ge){return at(ge,dt,Ht)});for(var Gt in dt)this.data(Gt,dt[Gt]);return this},removeData:function(dt){return this.each(function(Ht){return ge=dt,void((zt=lt(Gt=Ht))?delete zt[ge]:Gt.dataset?delete Gt.dataset[ge]:O(Gt).removeAttr("data-"+name));var Gt,ge,zt})}});var wt=/\S+/g;function qt(dt){return L(dt)&&dt.match(wt)}function ae(dt,Ht){return dt.classList?dt.classList.contains(Ht):new RegExp("(^| )"+Ht+"( |$)","gi").test(dt.className)}function ye(dt,Ht,Gt){dt.classList?dt.classList.add(Ht):Gt.indexOf(" "+Ht+" ")&&(dt.className+=" "+Ht)}function he(dt,Ht){dt.classList?dt.classList.remove(Ht):dt.className=dt.className.replace(Ht,"")}H.extend({addClass:function(dt){var Ht=qt(dt);return Ht?this.each(function(Gt){var ge=" "+Gt.className+" ";z(Ht,function(zt){ye(Gt,zt,ge)})}):this},attr:function(dt,Ht){if(dt){if(L(dt))return void 0===Ht?this[0]?this[0].getAttribute?this[0].getAttribute(dt):this[0][dt]:void 0:this.each(function(ge){ge.setAttribute?ge.setAttribute(dt,Ht):ge[dt]=Ht});for(var Gt in dt)this.attr(Gt,dt[Gt]);return this}},hasClass:function(dt){var Ht=!1,Gt=qt(dt);return Gt&&Gt.length&&this.each(function(ge){return!(Ht=ae(ge,Gt[0]))}),Ht},prop:function(dt,Ht){if(L(dt))return void 0===Ht?this[0][dt]:this.each(function(ge){ge[dt]=Ht});for(var Gt in dt)this.prop(Gt,dt[Gt]);return this},removeAttr:function(dt){return this.each(function(Ht){Ht.removeAttribute?Ht.removeAttribute(dt):delete Ht[dt]})},removeClass:function(dt){if(!arguments.length)return this.attr("class","");var Ht=qt(dt);return Ht?this.each(function(Gt){z(Ht,function(ge){he(Gt,ge)})}):this},removeProp:function(dt){return this.each(function(Ht){delete Ht[dt]})},toggleClass:function(dt,Ht){if(void 0!==Ht)return this[Ht?"addClass":"removeClass"](dt);var Gt=qt(dt);return Gt?this.each(function(ge){var zt=" "+ge.className+" ";z(Gt,function(Ee){ae(ge,Ee)?he(ge,Ee):ye(ge,Ee,zt)})}):this}}),H.extend({add:function(dt,Ht){return ft(O.merge(this,O(dt,Ht)))},each:function(dt){return z(this,dt),this},eq:function(dt){return O(this.get(dt))},filter:function(dt){if(!dt)return this;var Ht=b(dt)?dt:tt(dt);return O(a.call(this,function(Gt){return Ht(Gt,dt)}))},first:function(){return this.eq(0)},get:function(dt){return void 0===dt?r.call(this):dt<0?this[dt+this.length]:this[dt]},index:function(dt){var Ht=dt?O(dt)[0]:this[0],Gt=dt?this:O(Ht).parent().children();return r.call(Gt).indexOf(Ht)},last:function(){return this.eq(-1)}});var Te,Ne,Ot,w,Y,V=(w=/(?:^\w|[A-Z]|\b\w)/g,Y=/[\s-_]+/g,function(dt){return dt.replace(w,function(Ht,Gt){return Ht[0===Gt?"toLowerCase":"toUpperCase"]()}).replace(Y,"")}),it=(Te={},Ne=document.createElement("div"),Ot=Ne.style,function(dt){if(dt=V(dt),Te[dt])return Te[dt];var Ht=dt.charAt(0).toUpperCase()+dt.slice(1);return z((dt+" "+["webkit","moz","ms","o"].join(Ht+" ")+Ht).split(" "),function(Gt){if(Gt in Ot)return Te[Gt]=dt=Te[dt]=Gt,!1}),Te[dt]});function yt(dt,Ht){return parseInt(F.getComputedStyle(dt[0],null)[Ht],10)||0}function It(dt,Ht,Gt){var ge,zt=mt(dt,"_cashEvents"),Ee=zt&&zt[Ht];Ee&&(Gt?(dt.removeEventListener(Ht,Gt),0<=(ge=Ee.indexOf(Gt))&&Ee.splice(ge,1)):(z(Ee,function(ze){dt.removeEventListener(Ht,ze)}),Ee=[]))}function Lt(dt,Ht){return"&"+encodeURIComponent(dt)+"="+encodeURIComponent(Ht).replace(/%20/g,"+")}function Ut(dt){var Ht,Gt,ge,zt=dt.type;if(!zt)return null;switch(zt.toLowerCase()){case"select-one":return 0<=(ge=(Gt=dt).selectedIndex)?Gt.options[ge].value:null;case"select-multiple":return Ht=[],z(dt.options,function(Ee){Ee.selected&&Ht.push(Ee.value)}),Ht.length?Ht:null;case"radio":case"checkbox":return dt.checked?dt.value:null;default:return dt.value?dt.value:null}}function de(dt,Ht,Gt){var ge=L(Ht);ge||!Ht.length?z(dt,ge?function(zt){return zt.insertAdjacentHTML(Gt?"afterbegin":"beforeend",Ht)}:function(zt,Ee){return ze=zt,Xe=0===Ee?Ht:Ht.cloneNode(!0),void(Gt?ze.insertBefore(Xe,ze.childNodes[0]):ze.appendChild(Xe));var ze,Xe}):z(Ht,function(zt){return de(dt,zt,Gt)})}O.prefixedProp=it,O.camelCase=V,H.extend({css:function(dt,Ht){if(L(dt))return dt=it(dt),1<arguments.length?this.each(function(ge){return ge.style[dt]=Ht}):F.getComputedStyle(this[0])[dt];for(var Gt in dt)this.css(Gt,dt[Gt]);return this}}),z(["Width","Height"],function(dt){var Ht=dt.toLowerCase();H[Ht]=function(){return this[0].getBoundingClientRect()[Ht]},H["inner"+dt]=function(){return this[0]["client"+dt]},H["outer"+dt]=function(Gt){return this[0]["offset"+dt]+(Gt?yt(this,"margin"+("Width"===dt?"Left":"Top"))+yt(this,"margin"+("Width"===dt?"Right":"Bottom")):0)}}),H.extend({off:function(dt,Ht){return this.each(function(Gt){return It(Gt,dt,Ht)})},on:function(dt,Ht,Gt,ge){var zt;if(L(dt))return b(Ht)&&(Gt=Ht,Ht=null),"ready"===dt?(S(Gt),this):(Ht&&(zt=Gt,Gt=function(ze){for(var Xe=ze.target;!v(Xe,Ht);){if(Xe===this||null===Xe)return!1;Xe=Xe.parentNode}Xe&&zt.call(Xe,ze)}),this.each(function(ze){var Xe,Tt,$t,ee,ne=Gt;ge&&(ne=function(){Gt.apply(this,arguments),It(ze,dt,ne)}),Tt=dt,$t=ne,(ee=mt(Xe=ze,"_cashEvents")||at(Xe,"_cashEvents",{}))[Tt]=ee[Tt]||[],ee[Tt].push($t),Xe.addEventListener(Tt,$t)}));for(var Ee in dt)this.on(Ee,Ht,dt[Ee]);return this},one:function(dt,Ht,Gt){return this.on(dt,Ht,Gt,!0)},ready:S,trigger:function(dt,Ht){if(document.createEvent){var Gt=document.createEvent("HTMLEvents");return Gt.initEvent(dt,!0,!1),Gt=this.extend(Gt,Ht),this.each(function(ge){return ge.dispatchEvent(Gt)})}}}),H.extend({serialize:function(){var dt="";return z(this[0].elements||this,function(Ht){if(!Ht.disabled&&"FIELDSET"!==Ht.tagName){var Gt=Ht.name;switch(Ht.type.toLowerCase()){case"file":case"reset":case"submit":case"button":break;case"select-multiple":var ge=Ut(Ht);null!==ge&&z(ge,function(Ee){dt+=Lt(Gt,Ee)});break;default:var zt=Ut(Ht);null!==zt&&(dt+=Lt(Gt,zt))}}}),dt.substr(1)},val:function(dt){return void 0===dt?Ut(this[0]):this.each(function(Ht){return Ht.value=dt})}}),H.extend({after:function(dt){return O(dt).insertAfter(this),this},append:function(dt){return de(this,dt),this},appendTo:function(dt){return de(O(dt),this),this},before:function(dt){return O(dt).insertBefore(this),this},clone:function(){return O(this.map(function(dt){return dt.cloneNode(!0)}))},empty:function(){return this.html(""),this},html:function(dt){if(void 0===dt)return this[0].innerHTML;var Ht=dt.nodeType?dt[0].outerHTML:dt;return this.each(function(Gt){return Gt.innerHTML=Ht})},insertAfter:function(dt){var Ht=this;return O(dt).each(function(Gt,ge){var zt=Gt.parentNode,Ee=Gt.nextSibling;Ht.each(function(ze){zt.insertBefore(0===ge?ze:ze.cloneNode(!0),Ee)})}),this},insertBefore:function(dt){var Ht=this;return O(dt).each(function(Gt,ge){var zt=Gt.parentNode;Ht.each(function(Ee){zt.insertBefore(0===ge?Ee:Ee.cloneNode(!0),Gt)})}),this},prepend:function(dt){return de(this,dt,!0),this},prependTo:function(dt){return de(O(dt),this,!0),this},remove:function(){return this.each(function(dt){if(dt.parentNode)return dt.parentNode.removeChild(dt)})},text:function(dt){return void 0===dt?this[0].textContent:this.each(function(Ht){return Ht.textContent=dt})}});var be=K.documentElement;return H.extend({position:function(){var dt=this[0];return{left:dt.offsetLeft,top:dt.offsetTop}},offset:function(){var dt=this[0].getBoundingClientRect();return{top:dt.top+F.pageYOffset-be.clientTop,left:dt.left+F.pageXOffset-be.clientLeft}},offsetParent:function(){return O(this[0].offsetParent)}}),H.extend({children:function(dt){var Ht=[];return this.each(function(Gt){u.apply(Ht,Gt.children)}),Ht=ft(Ht),dt?Ht.filter(function(Gt){return v(Gt,dt)}):Ht},closest:function(dt){return!dt||this.length<1?O():this.is(dt)?this.filter(dt):this.parent().closest(dt)},is:function(dt){if(!dt)return!1;var Ht=!1,Gt=tt(dt);return this.each(function(ge){return!(Ht=Gt(ge,dt))}),Ht},find:function(dt){if(!dt||dt.nodeType)return O(dt&&this.has(dt).length?dt:null);var Ht=[];return this.each(function(Gt){u.apply(Ht,I(dt,Gt))}),ft(Ht)},has:function(dt){var Ht=L(dt)?function(Gt){return 0!==I(dt,Gt).length}:function(Gt){return Gt.contains(dt)};return this.filter(Ht)},next:function(){return O(this[0].nextElementSibling)},not:function(dt){if(!dt)return this;var Ht=tt(dt);return this.filter(function(Gt){return!Ht(Gt,dt)})},parent:function(){var dt=[];return this.each(function(Ht){Ht&&Ht.parentNode&&dt.push(Ht.parentNode)}),ft(dt)},parents:function(dt){var Ht,Gt=[];return this.each(function(ge){for(Ht=ge;Ht&&Ht.parentNode&&Ht!==K.body.parentNode;)Ht=Ht.parentNode,(!dt||dt&&v(Ht,dt))&&Gt.push(Ht)}),ft(Gt)},prev:function(){return O(this[0].previousElementSibling)},siblings:function(dt){var Ht=this.parent().children(dt),Gt=this[0];return Ht.filter(function(ge){return ge!==Gt})}}),O}();var Component=function(){function i(D,K,F){_classCallCheck(this,i),K instanceof Element||console.error(Error(K+" is not an HTML Element"));var l=D.getInstance(K);l&&l.destroy(),this.el=K,this.$el=cash(K)}return _createClass(i,null,[{key:"init",value:function(D,K,F){var l=null;if(K instanceof Element)l=new D(K,F);else if(K&&(K.jquery||K.cash||K instanceof NodeList)){for(var r=[],a=0;a<K.length;a++)r.push(new D(K[a],F));l=r}return l}}]),i}();(function(i){i.Package?M={}:i.M={},M.jQueryLoaded=!!i.jQuery})(window),"function"==typeof define&&define.amd?define("M",[],function(){return M}):"undefined"==typeof exports||exports.nodeType||("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=M),exports.default=M),M.version="1.0.0",M.keys={TAB:9,ENTER:13,ESC:27,ARROW_UP:38,ARROW_DOWN:40},M.tabPressed=!1,M.keyDown=!1;
1var docHandleKeydown=function(i){M.keyDown=!0,i.which!==M.keys.TAB&&i.which!==M.keys.ARROW_DOWN&&i.which!==M.keys.ARROW_UP||(M.tabPressed=!0)},docHandleKeyup=function(i){M.keyDown=!1,i.which!==M.keys.TAB&&i.which!==M.keys.ARROW_DOWN&&i.which!==M.keys.ARROW_UP||(M.tabPressed=!1)},docHandleFocus=function(i){M.keyDown&&document.body.classList.add("keyboard-focused")},docHandleBlur=function(i){document.body.classList.remove("keyboard-focused")};document.addEventListener("keydown",docHandleKeydown,!0),document.addEventListener("keyup",docHandleKeyup,!0),document.addEventListener("focus",docHandleFocus,!0),document.addEventListener("blur",docHandleBlur,!0),M.initializeJqueryWrapper=function(i,D,K){jQuery.fn[D]=function(F){if(i.prototype[F]){var l=Array.prototype.slice.call(arguments,1);if("get"!==F.slice(0,3))return this.each(function(){var a=this[K];a[F].apply(a,l)});var r=this.first()[0][K];return r[F].apply(r,l)}if("object"==typeof F||!F)return i.init(this,F),this;jQuery.error("Method "+F+" does not exist on jQuery."+D)}},M.AutoInit=function(i){var D=i||document.body,K={Autocomplete:D.querySelectorAll(".autocomplete:not(.no-autoinit)"),C
vendor: 41,274 bytes, line 1
1arousel:D.querySelectorAll(".carousel:not(.no-autoinit)"),Chips:D.querySelectorAll(".chips:not(.no-autoinit)"),Collapsible:D.querySelectorAll(".collapsible:not(.no-autoinit)"),Datepicker:D.querySelectorAll(".datepicker:not(.no-autoinit)"),Dropdown:D.querySelectorAll(".dropdown-trigger:not(.no-autoinit)"),Materialbox:D.querySelectorAll(".materialboxed:not(.no-autoinit)"),Modal:D.querySelectorAll(".modal:not(.no-autoinit)"),Parallax:D.querySelectorAll(".parallax:not(.no-autoinit)"),Pushpin:D.querySelectorAll(".pushpin:not(.no-autoinit)"),ScrollSpy:D.querySelectorAll(".scrollspy:not(.no-autoinit)"),FormSelect:D.querySelectorAll("select:not(.no-autoinit)"),Sidenav:D.querySelectorAll(".sidenav:not(.no-autoinit)"),Tabs:D.querySelectorAll(".tabs:not(.no-autoinit)"),TapTarget:D.querySelectorAll(".tap-target:not(.no-autoinit)"),Timepicker:D.querySelectorAll(".timepicker:not(.no-autoinit)"),Tooltip:D.querySelectorAll(".tooltipped:not(.no-autoinit)"),FloatingActionButton:D.querySelectorAll(".fixed-action-btn:not(.no-autoinit)")};for(var F in K)M[F].init(K[F])},M.objectSelectorString=function(i){return((i.prop("tagName")||"")+(i.attr("id")||"")+(i.attr("class")||"")).replace(/\s/g,"")},M.guid=function(){function i(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return i()+i()+"-"+i()+"-"+i()+"-"+i()+"-"+i()+i()+i()}}(),M.escapeHash=function(i){return i.replace(/(:|\.|\[|\]|,|=|\/)/g,"\\$1")},M.elementOrParentIsFixed=function(i){var D=$(i),K=D.add(D.parents()),F=!1;return K.each(function(){if("fixed"===$(this).css("position"))return!(F=!0)}),F},M.checkWithinContainer=function(i,D,K){var F={top:!1,right:!1,bottom:!1,left:!1},l=i.getBoundingClientRect(),r=i===document.body?Math.max(l.bottom,window.innerHeight):l.bottom,b=D.left-i.scrollLeft,L=D.top-i.scrollTop;return(b<l.left+K||b<K)&&(F.left=!0),(b+D.width>l.right-K||b+D.width>window.innerWidth-K)&&(F.right=!0),(L<l.top+K||L<K)&&(F.top=!0),(L+D.height>r-K||L+D.height>window.innerHeight-K)&&(F.bottom=!0),F},M.checkPossibleAlignments=function(i,D,K,F){var l={top:!0,right:!0,bottom:!0,left:!0,spaceOnTop:null,spaceOnRight:null,spaceOnBottom:null,spaceOnLeft:null},r="visible"===getComputedStyle(D).overflow,a=D.getBoundingClientRect(),u=Math.min(a.height,window.innerHeight),b=Math.min(a.width,window.innerWidth),L=i.getBoundingClientRect(),R=D.scrollTop,k=K.left-D.scrollLeft,N=K.top-R,I=K.top+L.height-R;return l.spaceOnRight=r?window.innerWidth-(L.left+K.width):b-(k+K.width),l.spaceOnRight<0&&(l.left=!1),l.spaceOnLeft=r?L.right-K.width:k-K.width+L.width,l.spaceOnLeft<0&&(l.right=!1),l.spaceOnBottom=r?window.innerHeight-(L.top+K.height+F):u-(N+K.height+F),l.spaceOnBottom<0&&(l.top=!1),l.spaceOnTop=r?L.bottom-(K.height+F):I-(K.height-F),l.spaceOnTop<0&&(l.bottom=!1),l},M.getOverflowParent=function(i){return null==i?null:i===document.body||"visible"!==getComputedStyle(i).overflow?i:M.getOverflowParent(i.parentElement)},M.getIdFromTrigger=function(i){var D=i.getAttribute("data-target");return D||((D=i.getAttribute("href"))?D.slice(1):"")},M.getDocumentScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},M.getDocumentScrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0};var getTime=Date.now||function(){return(new Date).getTime()};M.throttle=function(i,D,K){var F=void 0,l=void 0,r=void 0,a=null,u=0;function b(){u=!1===K.leading?0:getTime(),a=null,r=i.apply(F,l),F=l=null}return K=K||{},function(){var L=getTime();u||!1!==K.leading||(u=L);var W=D-(L-u);return F=this,l=arguments,W<=0?(clearTimeout(a),a=null,u=L,r=i.apply(F,l),F=l=null):a||!1===K.trailing||(a=setTimeout(b,W)),r}};var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(i,D,K){if(K.get||K.set)throw new TypeError("ES3 does not support getters and setters.");i!=Array.prototype&&i!=Object.prototype&&(i[D]=K.value)},$jscomp.getGlobal=function(i){return"undefined"!=typeof window&&window===i?i:"undefined"!=typeof global&&null!=global?global:i},$jscomp.global=$jscomp.getGlobal(this),$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.symbolCounter_=0,$jscomp.Symbol=function(i){return $jscomp.SYMBOL_PREFIX+(i||"")+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var i=$jscomp.global.Symbol.iterator;i=i||($jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator")),"function"!=typeof Array.prototype[i]&&$jscomp.defineProperty(Array.prototype,i,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}}),$jscomp.initSymbolIterator=function(){}},$jscomp.arrayIterator=function(i){var D=0;return $jscomp.iteratorPrototype(function(){return D<i.length?{done:!1,value:i[D++]}:{done:!0}})},$jscomp.iteratorPrototype=function(i){return $jscomp.initSymbolIterator(),(i={next:i})[$jscomp.global.Symbol.iterator]=function(){return this},i},$jscomp.array=$jscomp.array||{},$jscomp.iteratorFromArray=function(i,D){$jscomp.initSymbolIterator(),i instanceof String&&(i+="");var K=0,F={next:function(){if(K<i.length){var l=K++;return{value:D(l,i[l]),done:!1}}return F.next=function(){return{done:!0,value:void 0}},F.next()}};return F[Symbol.iterator]=function(){return F},F},$jscomp.polyfill=function(i,D,K,F){if(D){for(K=$jscomp.global,i=i.split("."),F=0;F<i.length-1;F++){var l=i[F];l in K||(K[l]={}),K=K[l]}(D=D(F=K[i=i[i.length-1]]))!=F&&null!=D&&$jscomp.defineProperty(K,i,{configurable:!0,writable:!0,value:D})}},$jscomp.polyfill("Array.prototype.keys",function(i){return i||function(){return $jscomp.iteratorFromArray(this,function(D){return D})}},"es6-impl","es3");var $jscomp$this=this;if(M.anime=function(){function i(V){if(!wt.col(V))try{return document.querySelectorAll(V)}catch(it){}}function D(V,it){for(var yt=V.length,It=2<=arguments.length?it:void 0,Lt=[],Ut=0;Ut<yt;Ut++)if(Ut in V){var de=V[Ut];it.call(It,de,Ut,V)&&Lt.push(de)}return Lt}function K(V){return V.reduce(function(it,yt){return it.concat(wt.arr(yt)?K(yt):yt)},[])}function F(V){return wt.arr(V)?V:(wt.str(V)&&(V=i(V)||V),V instanceof NodeList||V instanceof HTMLCollection?[].slice.call(V):[V])}function l(V,it){return V.some(function(yt){return yt===it})}function r(V){var it,yt={};for(it in V)yt[it]=V[it];return yt}function a(V,it){var yt,It=r(V);for(yt in V)It[yt]=it.hasOwnProperty(yt)?it[yt]:V[yt];return It}function u(V,it){var yt,It=r(V);for(yt in it)It[yt]=wt.und(V[yt])?it[yt]:V[yt];return It}function b(V){if(V=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(V))return V[2]}function L(V,it){return wt.fnc(V)?V(it.target,it.id,it.total):V}function W(V,it){if(it in V.style)return getComputedStyle(V).getPropertyValue(it.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function R(V,it){return wt.dom(V)&&l(mt,it)?"transform":wt.dom(V)&&(V.getAttribute(it)||wt.svg(V)&&V[it])?"attribute":wt.dom(V)&&"transform"!==it&&W(V,it)?"css":null!=V[it]?"object":void 0}function k(V,it){switch(R(V,it)){case"transform":return function(yt,It){var Lt,Ut=-1<(Lt=It).indexOf("translate")||"perspective"===Lt?"px":-1<Lt.indexOf("rotate")||-1<Lt.indexOf("skew")?"deg":void 0;if(Ut=-1<It.indexOf("scale")?1:0+Ut,!(yt=yt.style.transform))return Ut;for(var de=[],be=[],dt=[],Ht=/(\w+)\((.+?)\)/g;de=Ht.exec(yt);)be.push(de[1]),dt.push(de[2]);return(yt=D(dt,function(Gt,ge){return be[ge]===It})).length?yt[0]:Ut}(V,it);case"css":return W(V,it);case"attribute":return V.getAttribute(it)}return V[it]||0}function N(V,it){var yt=/^(\*=|\+=|-=)/.exec(V);if(!yt)return V;var It=b(V)||0;switch(it=parseFloat(it),V=parseFloat(V.replace(yt[0],"")),yt[0][0]){case"+":return it+V+It;case"-":return it-V+It;case"*":return it*V+It}}function I(V,it){return Math.sqrt(Math.pow(it.x-V.x,2)+Math.pow(it.y-V.y,2))}function x(V){V=V.points;for(var it,yt=0,It=0;It<V.numberOfItems;It++){var Lt=V.getItem(It);0<It&&(yt+=I(it,Lt)),it=Lt}return yt}function S(V){if(V.getTotalLength)return V.getTotalLength();switch(V.tagName.toLowerCase()){case"circle":return 2*Math.PI*V.getAttribute("r");case"rect":return 2*V.getAttribute("width")+2*V.getAttribute("height");case"line":return I({x:V.getAttribute("x1"),y:V.getAttribute("y1")},{x:V.getAttribute("x2"),y:V.getAttribute("y2")});case"polyline":return x(V);case"polygon":var it=V.points;return x(V)+I(it.getItem(it.numberOfItems-1),it.getItem(0))}}function A(V,it){function yt(de){return V.el.getPointAtLength(1<=it+(de=void 0===de?0:de)?it+de:0)}var It=yt(),Lt=yt(-1),Ut=yt(1);switch(V.property){case"x":return It.x;case"y":return It.y;case"angle":return 180*Math.atan2(Ut.y-Lt.y,Ut.x-Lt.x)/Math.PI}}function O(V,it){var yt,It=/-?\d*\.?\d+/g;if(yt=wt.pth(V)?V.totalLength:V,wt.col(yt))if(wt.rgb(yt)){var Lt=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(yt);yt=Lt?"rgba("+Lt[1]+",1)":yt}else yt=wt.hex(yt)?function(Ut){Ut=Ut.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(be,dt,Ht,Gt){return dt+dt+Ht+Ht+Gt+Gt});var de=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(Ut);return"rgba("+(Ut=parseInt(de[1],16))+","+parseInt(de[2],16)+","+(de=parseInt(de[3],16))+",1)"}(yt):wt.hsl(yt)?function(Ut){function de(zt,Ee,ze){return ze<0&&(ze+=1),1<ze&&--ze,ze<1/6?zt+6*(Ee-zt)*ze:ze<.5?Ee:ze<2/3?zt+(Ee-zt)*(2/3-ze)*6:zt}var be=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(Ut)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(Ut);Ut=parseInt(be[1])/360;var dt=parseInt(be[2])/100,Ht=parseInt(be[3])/100;if(be=be[4]||1,0==dt)Ht=dt=Ut=Ht;else{var Gt=Ht<.5?Ht*(1+dt):Ht+dt-Ht*dt,ge=2*Ht-Gt;Ht=de(ge,Gt,Ut+1/3),dt=de(ge,Gt,Ut),Ut=de(ge,Gt,Ut-1/3)}return"rgba("+255*Ht+","+255*dt+","+255*Ut+","+be+")"}(yt):void 0;else Lt=(Lt=b(yt))?yt.substr(0,yt.length-Lt.length):yt,yt=it&&!/\s/g.test(yt)?Lt+it:Lt;return{original:yt+="",numbers:yt.match(It)?yt.match(It).map(Number):[0],strings:wt.str(V)||it?yt.split(It):[]}}function H(V){return D(V=V?K(wt.arr(V)?V.map(F):F(V)):[],function(it,yt,It){return It.indexOf(it)===yt})}function z(V,it){var yt=r(it);if(wt.arr(V)){var It=V.length;2!==It||wt.obj(V[0])?wt.fnc(it.duration)||(yt.duration=it.duration/It):V={value:V}}return F(V).map(function(Lt,Ut){return Ut=Ut?0:it.delay,Lt=wt.obj(Lt)&&!wt.pth(Lt)?Lt:{value:Lt},wt.und(Lt.delay)&&(Lt.delay=Ut),Lt}).map(function(Lt){return u(Lt,yt)})}function v(V,it,yt,It){var Lt="delay"===V;return it.length?(Lt?Math.min:Math.max).apply(Math,it.map(function(Ut){return Ut[V]})):Lt?It.delay:yt.offset+It.delay+It.duration}function ft(V){function it(){return window.Promise&&new Promise(function(Ee){return Gt=Ee})}function yt(Ee){return zt.reversed?zt.duration-Ee:Ee}function It(Ee){for(var ze=0,Xe={},Tt=zt.animations,$t=Tt.length;ze<$t;){var ee=Tt[ze],ne=ee.animatable,xe=(ue=ee.tweens)[e=ue.length-1];e&&(xe=D(ue,function(U){return Ee<U.end})[0]||xe);for(var ue=Math.min(Math.max(Ee-xe.start-xe.delay,0),xe.duration)/xe.duration,fe=isNaN(ue)?1:xe.easing(ue,xe.elasticity),Le=(ue=xe.to.strings,xe.round),e=[],s=void 0,d=(s=xe.to.numbers.length,0);d<s;d++){var g=void 0,C=(g=xe.to.numbers[d],xe.from.numbers[d]);g=xe.isPath?A(xe.value,fe*g):C+fe*(g-C),Le&&(xe.isColor&&2<d||(g=Math.round(g*Le)/Le)),e.push(g)}if(xe=ue.length)for(s=ue[0],fe=0;fe<xe;fe++)Le=ue[fe+1],d=e[fe],isNaN(d)||(s=Le?s+(d+Le):s+(d+" "));else s=e[0];ye[ee.type](ne.target,ee.property,s,Xe,ne.id),ee.currentValue=s,ze++}if(ze=Object.keys(Xe).length)for(Tt=0;Tt<ze;Tt++)Rt=Rt||(W(document.body,"transform")?"transform":"-webkit-transform"),zt.animatables[Tt].target.style[Rt]=Xe[Tt].join(" ");zt.currentTime=Ee,zt.progress=Ee/zt.duration*100}function Lt(Ee){zt[Ee]&&zt[Ee](zt)}function Ut(){zt.remaining&&!0!==zt.remaining&&zt.remaining--}function de(Ee){var ze=zt.duration,Xe=zt.offset,Tt=Xe+zt.delay,$t=zt.currentTime,ee=zt.reversed,ne=yt(Ee);if(zt.children.length){var xe=zt.children,ue=xe.length;if(ne>=zt.currentTime)for(var fe=0;fe<ue;fe++)xe[fe].seek(ne);else for(;ue--;)xe[ue].seek(ne)}(Tt<=ne||!ze)&&(zt.began||(zt.began=!0,Lt("begin")),Lt("run")),Xe<ne&&ne<ze?It(ne):(ne<=Xe&&0!==$t&&(It(0),ee&&Ut()),(ze<=ne&&$t!==ze||!ze)&&(It(ze),ee||Ut())),Lt("update"),ze<=Ee&&(zt.remaining?(dt=be,"alternate"===zt.direction&&(zt.reversed=!zt.reversed)):(zt.pause(),zt.completed||(zt.completed=!0,Lt("complete"),"Promise"in window&&(Gt(),ge=it()))),Ht=0)}V=void 0===V?{}:V;var be,dt,Ht=0,Gt=null,ge=it(),zt=function tt(V){var it,It,Lt,Ut=a(lt,V),de=a(at,V),be=(It=H(V.targets)).map(function(Gt,ge){return{target:Gt,id:ge,total:It.length}}),dt=[],Ht=u(Ut,de);for(it in V)Ht.hasOwnProperty(it)||"targets"===it||dt.push({name:it,offset:Ht.offset,tweens:z(V[it],de)});return Lt=dt,V=D(K(be.map(function(Gt){return Lt.map(function(ge){var ze,Xe,Tt,zt=R(Gt.target,ge.name);if(zt){var Ee=(Xe=Gt,(ze=ge).tweens.map(function($t){var ee=($t=function(fe,Le){var e,s={};for(e in fe){var d=L(fe[e],Le);wt.arr(d)&&1===(d=d.map(function(g){return L(g,Le)})).length&&(d=d[0]),s[e]=d}return s.duration=parseFloat(s.duration),s.delay=parseFloat(s.delay),s}($t,Xe)).value,ne=k(Xe.target,ze.name),xe=Tt?Tt.to.original:ne,ue=(xe=wt.arr(ee)?ee[0]:xe,N(wt.arr(ee)?ee[1]:ee,xe));return ne=b(ue)||b(xe)||b(ne),$t.from=O(xe,ne),$t.to=O(ue,ne),$t.start=Tt?Tt.end:ze.offset,$t.end=$t.start+$t.delay+$t.duration,$t.easing=function(fe){return wt.arr(fe)?qt.apply(this,fe):ae[fe]}($t.easing),$t.elasticity=(1e3-Math.min(Math.max($t.elasticity,1),999))/1e3,$t.isPath=wt.pth(ee),$t.isColor=wt.col($t.from.original),$t.isColor&&($t.round=1),Tt=$t}));ge={type:zt,property:ge.name,animatable:Gt,tweens:Ee,duration:Ee[Ee.length-1].end,delay:Ee[0].delay}}else ge=void 0;return ge})})),function(Gt){return!wt.und(Gt)}),u(Ut,{children:[],animatables:be,animations:V,duration:v("duration",V,Ut,de),delay:v("delay",V,Ut,de)})}(V);return zt.reset=function(){var Ee=zt.direction,ze=zt.loop;for(zt.currentTime=0,zt.progress=0,zt.paused=!0,zt.began=!1,zt.completed=!1,zt.reversed="reverse"===Ee,zt.remaining="alternate"===Ee&&1===ze?2:ze,It(0),Ee=zt.children.length;Ee--;)zt.children[Ee].reset()},zt.tick=function(Ee){de((Ht+(be=Ee)-(dt=dt||be))*ft.speed)},zt.seek=function(Ee){de(yt(Ee))},zt.pause=function(){var Ee=he.indexOf(zt);-1<Ee&&he.splice(Ee,1),zt.paused=!0},zt.play=function(){zt.paused&&(zt.paused=!1,dt=0,Ht=yt(zt.currentTime),he.push(zt),Te||Ne())},zt.reverse=function(){zt.reversed=!zt.reversed,dt=0,Ht=yt(zt.currentTime)},zt.restart=function(){zt.pause(),zt.reset(),zt.play()},zt.finished=ge,zt.reset(),zt.autoplay&&zt.play(),zt}var Rt,lt={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},at={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},mt="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),wt={arr:function(V){return Array.isArray(V)},obj:function(V){return-1<Object.prototype.toString.call(V).indexOf("Object")},pth:function(V){return wt.obj(V)&&V.hasOwnProperty("totalLength")},svg:function(V){return V instanceof SVGElement},dom:function(V){return V.nodeType||wt.svg(V)},str:function(V){return"string"==typeof V},fnc:function(V){return"function"==typeof V},und:function(V){return void 0===V},hex:function(V){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(V)},rgb:function(V){return/^rgb/.test(V)},hsl:function(V){return/^hsl/.test(V)},col:function(V){return wt.hex(V)||wt.rgb(V)||wt.hsl(V)}},qt=function(V,it,yt,It){if(0<=V&&V<=1&&0<=yt&&yt<=1){var Lt=new Float32Array(11);if(V!==it||yt!==It)for(var Ut=0;Ut<11;++Ut)Lt[Ut]=Y(.1*Ut,V,yt);return function(de){if(V===it&&yt===It)return de;if(0===de)return 0;if(1===de)return 1;for(var be=0,dt=1;10!==dt&&Lt[dt]<=de;++dt)be+=.1;dt=be+(de-Lt[--dt])/(Lt[dt+1]-Lt[dt])*.1;var Ht=3*(1-3*yt+3*V)*dt*dt+2*(3*yt-6*V)*dt+3*V;if(.001<=Ht){for(be=0;be<4&&0!=(Ht=3*(1-3*yt+3*V)*dt*dt+2*(3*yt-6*V)*dt+3*V);++be){var Gt=Y(dt,V,yt)-de;dt-=Gt/Ht}de=dt}else if(0===Ht)de=dt;else{dt=be,be+=.1;for(var ge=0;0<(Ht=Y(Gt=dt+(be-dt)/2,V,yt)-de)?be=Gt:dt=Gt,1e-7<Math.abs(Ht)&&++ge<10;);de=Gt}return Y(de,it,It)}}},ae=function(){function V(de,be){return 0===de||1===de?de:-Math.pow(2,10*(de-1))*Math.sin(2*(de-1-be/(2*Math.PI)*Math.asin(1))*Math.PI/be)}var it,yt="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),It={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],V],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(de,be){return 1-V(1-de,be)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(de,be){return de<.5?V(2*de,be)/2:1-V(-2*de+2,be)/2}]},Lt={linear:qt(.25,.25,.75,.75)},Ut={};for(it in It)Ut.type=it,It[Ut.type].forEach(function(de){return function(be,dt){Lt["ease"+de.type+yt[dt]]=wt.fnc(be)?be:qt.apply($jscomp$this,be)}}(Ut)),Ut={type:Ut.type};return Lt}(),ye={css:function(V,it,yt){return V.style[it]=yt},attribute:function(V,it,yt){return V.setAttribute(it,yt)},object:function(V,it,yt){return V[it]=yt},transform:function(V,it,yt,It,Lt){It[Lt]||(It[Lt]=[]),It[Lt].push(it+"("+yt+")")}},he=[],Te=0,Ne=Ot;function Ot(){Te=requestAnimationFrame(w)}function w(V){var it=he.length;if(it){for(var yt=0;yt<it;)he[yt]&&he[yt].tick(V),yt++;Ot()}else cancelAnimationFrame(Te),Te=0}function Y(V,it,yt){return(((1-3*yt+3*it)*V+(3*yt-6*it))*V+3*it)*V}return ft.version="2.2.0",ft.speed=1,ft.running=he,ft.remove=function(V){V=H(V);for(var it=he.length;it--;)for(var yt=he[it],It=yt.animations,Lt=It.length;Lt--;)l(V,It[Lt].animatable.target)&&(It.splice(Lt,1),It.length||yt.pause())},ft.getValue=k,ft.path=function(V,it){var yt=wt.str(V)?i(V)[0]:V,It=it||100;return function(Lt){return{el:yt,property:Lt,totalLength:S(yt)*(It/100)}}},ft.setDashoffset=function(V){var it=S(V);return V.setAttribute("stroke-dasharray",it),it},ft.bezier=qt,ft.easings=ae,ft.timeline=function(V){var it=ft(V);return it.pause(),it.duration=0,it.add=function(yt){return it.children.forEach(function(It){It.began=!0,It.completed=!0}),F(yt).forEach(function(It){var Lt=u(It,a(at,V||{}));Lt.targets=Lt.targets||V.targets,It=it.duration;var Ut=Lt.offset;Lt.autoplay=!1,Lt.direction=it.direction,Lt.offset=wt.und(Ut)?It:N(Ut,It),it.began=!0,it.completed=!0,it.seek(Lt.offset),(Lt=ft(Lt)).began=!0,Lt.completed=!0,Lt.duration>It&&(it.duration=Lt.duration),it.children.push(Lt)}),it.seek(0),it.reset(),it.autoplay&&it.restart(),it},it},ft.random=function(V,it){return Math.floor(Math.random()*(it-V+1))+V},ft}(),function(i,D){"use strict";var K={accordion:!0,onOpenStart:void 0,onOpenEnd:void 0,onCloseStart:void 0,onCloseEnd:void 0,inDuration:300,outDuration:300},F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Collapsible=void 0}},{key:"_setupEventHandlers",value:function(){var r=this;this._handleCollapsibleClickBound=this._handleCollapsibleClick.bind(this),this._handleCollapsibleKeydownBound=this._handleCollapsibleKeydown.bind(this),this.el.addEventListener("click",this._handleCollapsibleClickBound),this.$headers.each(function(a){a.addEventListener("keydown",r._handleCollapsibleKeydownBound)})}},{key:"_removeEventHandlers",value:function(){var r=this;this.el.removeEventListener("click",this._handleCollapsibleClickBound),this.$headers.each(function(a){a.removeEventListener("keydown",r._handleCollapsibleKeydownBound)})}},{key:"_handleCollapsibleClick",value:function(r){var a=i(r.target).closest(".collapsible-header");if(r.target&&a.length){var u=a.closest(".collapsible");if(u[0]===this.el){var b=a.closest("li"),L=u.children("li"),W=b[0].classList.contains("active"),R=L.index(b);W?this.close(R):this.open(R)}}}},{key:"_handleCollapsibleKeydown",value:function(r){13===r.keyCode&&this._handleCollapsibleClickBound(r)}},{key:"_animateIn",value:function(r){var a=this,u=this.$el.children("li").eq(r);if(u.length){var b=u.children(".collapsible-body");D.remove(b[0]),b.css({display:"block",overflow:"hidden",height:0,paddingTop:"",paddingBottom:""});var L=b.css("padding-top"),W=b.css("padding-bottom"),R=b[0].scrollHeight;b.css({paddingTop:0,paddingBottom:0}),D({targets:b[0],height:R,paddingTop:L,paddingBottom:W,duration:this.options.inDuration,easing:"easeInOutCubic",complete:function(k){b.css({overflow:"",paddingTop:"",paddingBottom:"",height:""}),"function"==typeof a.options.onOpenEnd&&a.options.onOpenEnd.call(a,u[0])}})}}},{key:"_animateOut",value:function(r){var a=this,u=this.$el.children("li").eq(r);if(u.length){var b=u.children(".collapsible-body");D.remove(b[0]),b.css("overflow","hidden"),D({targets:b[0],height:0,paddingTop:0,paddingBottom:0,duration:this.options.outDuration,easing:"easeInOutCubic",complete:function(){b.css({height:"",overflow:"",padding:"",display:""}),"function"==typeof a.options.onCloseEnd&&a.options.onCloseEnd.call(a,u[0])}})}}},{key:"open",value:function(r){var a=this,u=this.$el.children("li").eq(r);if(u.length&&!u[0].classList.contains("active")){if("function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,u[0]),this.options.accordion){var b=this.$el.children("li");this.$el.children("li.active").each(function(L){var W=b.index(i(L));a.close(W)})}u[0].classList.add("active"),this._animateIn(r)}}},{key:"close",value:function(r){var a=this.$el.children("li").eq(r);a.length&&a[0].classList.contains("active")&&("function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,a[0]),a[0].classList.remove("active"),this._animateOut(r))}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_Collapsible}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));(u.el.M_Collapsible=u).options=i.extend({},l.defaults,a),u.$headers=u.$el.children("li").children(".collapsible-header"),u.$headers.attr("tabindex",0),u._setupEventHandlers();var b=u.$el.children("li.active").children(".collapsible-body");return u.options.accordion?b.first().css("display","block"):b.css("display","block"),u}M.Collapsible=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"collapsible","M_Collapsible")}(cash,M.anime),function(i,D){"use strict";var K={alignment:"left",autoFocus:!0,constrainWidth:!0,container:null,coverTrigger:!0,closeOnClick:!0,hover:!1,inDuration:150,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onItemClick:null},F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){this._resetDropdownStyles(),this._removeEventHandlers(),l._dropdowns.splice(l._dropdowns.indexOf(this),1),this.el.M_Dropdown=void 0}},{key:"_setupEventHandlers",value:function(){this.el.addEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.addEventListener("click",this._handleDropdownClickBound),this.options.hover?(this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.addEventListener("mouseleave",this._handleMouseLeaveBound)):(this._handleClickBound=this._handleClick.bind(this),this.el.addEventListener("click",this._handleClickBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.removeEventListener("click",this._handleDropdownClickBound),this.options.hover?(this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.removeEventListener("mouseleave",this._handleMouseLeaveBound)):this.el.removeEventListener("click",this._handleClickBound)}},{key:"_setupTemporaryEventHandlers",value:function(){document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound),document.body.addEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.addEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_removeTemporaryEventHandlers",value:function(){document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound),document.body.removeEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.removeEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_handleClick",value:function(r){r.preventDefault(),this.open()}},{key:"_handleMouseEnter",value:function(){this.open()}},{key:"_handleMouseLeave",value:function(r){var a=r.toElement||r.relatedTarget,u=!!i(a).closest(".dropdown-content").length,b=!1,L=i(a).closest(".dropdown-trigger");L.length&&L[0].M_Dropdown&&L[0].M_Dropdown.isOpen&&(b=!0),b||u||this.close()}},{key:"_handleDocumentClick",value:function(r){var a=this,u=i(r.target);this.options.closeOnClick&&u.closest(".dropdown-content").length&&!this.isTouchMoving?setTimeout(function(){a.close()},0):!u.closest(".dropdown-trigger").length&&u.closest(".dropdown-content").length||setTimeout(function(){a.close()},0),this.isTouchMoving=!1}},{key:"_handleTriggerKeydown",value:function(r){r.which!==M.keys.ARROW_DOWN&&r.which!==M.keys.ENTER||this.isOpen||(r.preventDefault(),this.open())}},{key:"_handleDocumentTouchmove",value:function(r){i(r.target).closest(".dropdown-content").length&&(this.isTouchMoving=!0)}},{key:"_handleDropdownClick",value:function(r){if("function"==typeof this.options.onItemClick){var a=i(r.target).closest("li")[0];this.options.onItemClick.call(this,a)}}},{key:"_handleDropdownKeydown",value:function(r){if(r.which===M.keys.TAB)r.preventDefault(),this.close();else if(r.which!==M.keys.ARROW_DOWN&&r.which!==M.keys.ARROW_UP||!this.isOpen)if(r.which===M.keys.ENTER&&this.isOpen){var a=this.dropdownEl.children[this.focusedIndex],u=i(a).find("a, button").first();u.length?u[0].click():a&&a.click()}else r.which===M.keys.ESC&&this.isOpen&&(r.preventDefault(),this.close());else{r.preventDefault();var b=r.which===M.keys.ARROW_DOWN?1:-1,L=this.focusedIndex,W=!1;do{if(this.dropdownEl.children[L+=b]&&-1!==this.dropdownEl.children[L].tabIndex){W=!0;break}}while(L<this.dropdownEl.children.length&&0<=L);W&&(this.focusedIndex=L,this._focusFocusedItem())}var R=String.fromCharCode(r.which).toLowerCase();if(R&&-1===[9,13,27,38,40].indexOf(r.which)){this.filterQuery.push(R);var k=this.filterQuery.join(""),N=i(this.dropdownEl).find("li").filter(function(I){return 0===i(I).text().toLowerCase().indexOf(k)})[0];N&&(this.focusedIndex=i(N).index(),this._focusFocusedItem())}this.filterTimeout=setTimeout(this._resetFilterQueryBound,1e3)}},{key:"_resetFilterQuery",value:function(){this.filterQuery=[]}},{key:"_resetDropdownStyles",value:function(){this.$dropdownEl.css({display:"",width:"",height:"",left:"",top:"","transform-origin":"",transform:"",opacity:""})}},{key:"_makeDropdownFocusable",value:function(){this.dropdownEl.tabIndex=0,i(this.dropdownEl).children().each(function(r){r.getAttribute("tabindex")||r.setAttribute("tabindex",0)})}},{key:"_focusFocusedItem",value:function(){0<=this.focusedIndex&&this.focusedIndex<this.dropdownEl.children.length&&this.options.autoFocus&&this.dropdownEl.children[this.focusedIndex].focus()}},{key:"_getDropdownPosition",value:function(){this.el.offsetParent.getBoundingClientRect();var r=this.el.getBoundingClientRect(),a=this.dropdownEl.getBoundingClientRect(),u=a.height,b=a.width,L=r.left-a.left,W=r.top-a.top,N=M.checkPossibleAlignments(this.el,this.dropdownEl.offsetParent?this.dropdownEl.offsetParent:this.dropdownEl.parentNode,{left:L,top:W,height:u,width:b},this.options.coverTrigger?0:r.height),I="top",x=this.options.alignment;if(W+=this.options.coverTrigger?0:r.height,this.isScrollable=!1,N.top||(N.bottom?I="bottom":(this.isScrollable=!0,N.spaceOnTop>N.spaceOnBottom?(I="bottom",u+=N.spaceOnTop,W-=N.spaceOnTop):u+=N.spaceOnBottom)),!N[x]){var S="left"===x?"right":"left";N[S]?x=S:N.spaceOnLeft>N.spaceOnRight?(x="right",b+=N.spaceOnLeft,L-=N.spaceOnLeft):(x="left",b+=N.spaceOnRight)}return"bottom"===I&&(W=W-a.height+(this.options.coverTrigger?r.height:0)),"right"===x&&(L=L-a.width+r.width),{x:L,y:W,verticalAlignment:I,horizontalAlignment:x,height:u,width:b}}},{key:"_animateIn",value:function(){var r=this;D.remove(this.dropdownEl),D({targets:this.dropdownEl,opacity:{value:[0,1],easing:"easeOutQuad"},scaleX:[.3,1],scaleY:[.3,1],duration:this.options.inDuration,easing:"easeOutQuint",complete:function(a){r.options.autoFocus&&r.dropdownEl.focus(),"function"==typeof r.options.onOpenEnd&&r.options.onOpenEnd.call(r,r.el)}})}},{key:"_animateOut",value:function(){var r=this;D.remove(this.dropdownEl),D({targets:this.dropdownEl,opacity:{value:0,easing:"easeOutQuint"},scaleX:.3,scaleY:.3,duration:this.options.outDuration,easing:"easeOutQuint",complete:function(a){r._resetDropdownStyles(),"function"==typeof r.options.onCloseEnd&&r.options.onCloseEnd.call(r,r.el)}})}},{key:"_placeDropdown",value:function(){var r=this.options.constrainWidth?this.el.getBoundingClientRect().width:this.dropdownEl.getBoundingClientRect().width;this.dropdownEl.style.width=r+"px";var a=this._getDropdownPosition();this.dropdownEl.style.left=a.x+"px",this.dropdownEl.style.top=a.y+"px",this.dropdownEl.style.height=a.height+"px",this.dropdownEl.style.width=a.width+"px",this.dropdownEl.style.transformOrigin=("left"===a.horizontalAlignment?"0":"100%")+" "+("top"===a.verticalAlignment?"0":"100%")}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._resetDropdownStyles(),this.dropdownEl.style.display="block",this._placeDropdown(),this._animateIn(),this._setupTemporaryEventHandlers())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.focusedIndex=-1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._animateOut(),this._removeTemporaryEventHandlers(),this.options.autoFocus&&this.el.focus())}},{key:"recalculateDimensions",value:function(){this.isOpen&&(this.$dropdownEl.css({width:"",height:"",left:"",top:"","transform-origin":""}),this._placeDropdown())}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_Dropdown}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));return u.el.M_Dropdown=u,l._dropdowns.push(u),u.id=M.getIdFromTrigger(r),u.dropdownEl=document.getElementById(u.id),u.$dropdownEl=i(u.dropdownEl),u.options=i.extend({},l.defaults,a),u.isOpen=!1,u.isScrollable=!1,u.isTouchMoving=!1,u.focusedIndex=-1,u.filterQuery=[],u.options.container?i(u.options.container).append(u.dropdownEl):u.$el.after(u.dropdownEl),u._makeDropdownFocusable(),u._resetFilterQueryBound=u._resetFilterQuery.bind(u),u._handleDocumentClickBound=u._handleDocumentClick.bind(u),u._handleDocumentTouchmoveBound=u._handleDocumentTouchmove.bind(u),u._handleDropdownClickBound=u._handleDropdownClick.bind(u),u._handleDropdownKeydownBound=u._handleDropdownKeydown.bind(u),u._handleTriggerKeydownBound=u._handleTriggerKeydown.bind(u),u._setupEventHandlers(),u}F._dropdowns=[],M.Dropdown=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"dropdown","M_Dropdown")}(cash,M.anime),function(i,D){"use strict";var K={opacity:.5,inDuration:250,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0,dismissible:!0,startingTop:"4%",endingTop:"10%"},F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){l._count--,this._removeEventHandlers(),this.el.removeAttribute("style"),this.$overlay.remove(),this.el.M_Modal=void 0}},{key:"_setupEventHandlers",value:function(){this._handleOverlayClickBound=this._handleOverlayClick.bind(this),this._handleModalCloseClickBound=this._handleModalCloseClick.bind(this),1===l._count&&document.body.addEventListener("click",this._handleTriggerClick),this.$overlay[0].addEventListener("click",this._handleOverlayClickBound),this.el.addEventListener("click",this._handleModalCloseClickBound)}},{key:"_removeEventHandlers",value:function(){0===l._count&&document.body.removeEventListener("click",this._handleTriggerClick),this.$overlay[0].removeEventListener("click",this._handleOverlayClickBound),this.el.removeEventListener("click",this._handleModalCloseClickBound)}},{key:"_handleTriggerClick",value:function(r){var a=i(r.target).closest(".modal-trigger");if(a.length){var u=M.getIdFromTrigger(a[0]),b=document.getElementById(u).M_Modal;b&&b.open(a),r.preventDefault()}}},{key:"_handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"_handleModalCloseClick",value:function(r){i(r.target).closest(".modal-close").length&&this.close()}},{key:"_handleKeydown",value:function(r){27===r.keyCode&&this.options.dismissible&&this.close()}},{key:"_handleFocus",value:function(r){this.el.contains(r.target)||this._nthModalOpened!==l._modalsOpen||this.el.focus()}},{key:"_animateIn",value:function(){var r=this;i.extend(this.el.style,{display:"block",opacity:0}),i.extend(this.$overlay[0].style,{display:"block",opacity:0}),D({targets:this.$overlay[0],opacity:this.options.opacity,duration:this.options.inDuration,easing:"easeOutQuad"});var a={targets:this.el,duration:this.options.inDuration,easing:"easeOutCubic",complete:function(){"function"==typeof r.options.onOpenEnd&&r.options.onOpenEnd.call(r,r.el,r._openingTrigger)}};this.el.classList.contains("bottom-sheet")?i.extend(a,{bottom:0,opacity:1}):i.extend(a,{top:[this.options.startingTop,this.options.endingTop],opacity:1,scaleX:[.8,1],scaleY:[.8,1]}),D(a)}},{key:"_animateOut",value:function(){var r=this;D({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuart"});var a={targets:this.el,duration:this.options.outDuration,easing:"easeOutCubic",complete:function(){r.el.style.display="none",r.$overlay.remove(),"function"==typeof r.options.onCloseEnd&&r.options.onCloseEnd.call(r,r.el)}};this.el.classList.contains("bottom-sheet")?i.extend(a,{bottom:"-100%",opacity:0}):i.extend(a,{top:[this.options.endingTop,this.options.startingTop],opacity:0,scaleX:.8,scaleY:.8}),D(a)}},{key:"open",value:function(r){if(!this.isOpen)return this.isOpen=!0,l._modalsOpen++,this._nthModalOpened=l._modalsOpen,this.$overlay[0].style.zIndex=1e3+2*l._modalsOpen,this.el.style.zIndex=1e3+2*l._modalsOpen+1,this._openingTrigger=r?r[0]:void 0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el,this._openingTrigger),this.options.preventScrolling&&(document.body.style.overflow="hidden"),this.el.classList.add("open"),this.el.insertAdjacentElement("afterend",this.$overlay[0]),this.options.dismissible&&(this._handleKeydownBound=this._handleKeydown.bind(this),this._handleFocusBound=this._handleFocus.bind(this),document.addEventListener("keydown",this._handleKeydownBound),document.addEventListener("focus",this._handleFocusBound,!0)),D.remove(this.el),D.remove(this.$overlay[0]),this._animateIn(),this.el.focus(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,l._modalsOpen--,this._nthModalOpened=0,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this.el.classList.remove("open"),0===l._modalsOpen&&(document.body.style.overflow=""),this.options.dismissible&&(document.removeEventListener("keydown",this._handleKeydownBound),document.removeEventListener("focus",this._handleFocusBound,!0)),D.remove(this.el),D.remove(this.$overlay[0]),this._animateOut(),this}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_Modal}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));return(u.el.M_Modal=u).options=i.extend({},l.defaults,a),u.isOpen=!1,u.id=u.$el.attr("id"),u._openingTrigger=void 0,u.$overlay=i('<div class="modal-overlay"></div>'),u.el.tabIndex=0,u._nthModalOpened=0,l._count++,u._setupEventHandlers(),u}F._modalsOpen=0,F._count=0,M.Modal=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"modal","M_Modal")}(cash,M.anime),function(i,D){"use strict";var K={inDuration:275,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null},F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Materialbox=void 0,i(this.placeholder).after(this.el).remove(),this.$el.removeAttr("style")}},{key:"_setupEventHandlers",value:function(){this._handleMaterialboxClickBound=this._handleMaterialboxClick.bind(this),this.el.addEventListener("click",this._handleMaterialboxClickBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleMaterialboxClickBound)}},{key:"_handleMaterialboxClick",value:function(r){!1===this.doneAnimating||this.overlayActive&&this.doneAnimating?this.close():this.open()}},{key:"_handleWindowScroll",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowResize",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowEscape",value:function(r){27===r.keyCode&&this.doneAnimating&&this.overlayActive&&this.close()}},{key:"_makeAncestorsOverflowVisible",value:function(){this.ancestorsChanged=i();for(var r=this.placeholder[0].parentNode;null!==r&&!i(r).is(document);){var a=i(r);"visible"!==a.css("overflow")&&(a.css("overflow","visible"),this.ancestorsChanged=void 0===this.ancestorsChanged?a:this.ancestorsChanged.add(a)),r=r.parentNode}}},{key:"_animateImageIn",value:function(){var r=this,a={targets:this.el,height:[this.originalHeight,this.newHeight],width:[this.originalWidth,this.newWidth],left:M.getDocumentScrollLeft()+this.windowWidth/2-this.placeholder.offset().left-this.newWidth/2,top:M.getDocumentScrollTop()+this.windowHeight/2-this.placeholder.offset().top-this.newHeight/2,duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){r.doneAnimating=!0,"function"==typeof r.options.onOpenEnd&&r.options.onOpenEnd.call(r,r.el)}};this.maxWidth=this.$el.css("max-width"),this.maxHeight=this.$el.css("max-height"),"none"!==this.maxWidth&&(a.maxWidth=this.newWidth),"none"!==this.maxHeight&&(a.maxHeight=this.newHeight),D(a)}},{key:"_animateImageOut",value:function(){var r=this;D({targets:this.el,width:this.originalWidth,height:this.originalHeight,left:0,top:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){r.placeholder.css({height:"",width:"",position:"",top:"",left:""}),r.attrWidth&&r.$el.attr("width",r.attrWidth),r.attrHeight&&r.$el.attr("height",r.attrHeight),r.$el.removeAttr("style"),r.originInlineStyles&&r.$el.attr("style",r.originInlineStyles),r.$el.removeClass("active"),r.doneAnimating=!0,r.ancestorsChanged.length&&r.ancestorsChanged.css("overflow",""),"function"==typeof r.options.onCloseEnd&&r.options.onCloseEnd.call(r,r.el)}})}},{key:"_updateVars",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.caption=this.el.getAttribute("data-caption")||""}},{key:"open",value:function(){var r=this;this._updateVars(),this.originalWidth=this.el.getBoundingClientRect().width,this.originalHeight=this.el.getBoundingClientRect().height,this.doneAnimating=!1,this.$el.addClass("active"),this.overlayActive=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this.placeholder.css({width:this.placeholder[0].getBoundingClientRect().width+"px",height:this.placeholder[0].getBoundingClientRect().height+"px",position:"relative",top:0,left:0}),this._makeAncestorsOverflowVisible(),this.$el.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}),this.attrWidth=this.$el.attr("width"),this.attrHeight=this.$el.attr("height"),this.attrWidth&&(this.$el.css("width",this.attrWidth+"px"),this.$el.removeAttr("width")),this.attrHeight&&(this.$el.css("width",this.attrHeight+"px"),this.$el.removeAttr("height")),this.$overlay=i('<div id="materialbox-overlay"></div>').css({opacity:0}).one("click",function(){r.doneAnimating&&r.close()}),this.$el.before(this.$overlay);var a=this.$overlay[0].getBoundingClientRect();this.$overlay.css({width:this.windowWidth+"px",height:this.windowHeight+"px",left:-1*a.left+"px",top:-1*a.top+"px"}),D.remove(this.el),D.remove(this.$overlay[0]),D({targets:this.$overlay[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}),""!==this.caption&&(this.$photocaption&&D.remove(this.$photoCaption[0]),this.$photoCaption=i('<div class="materialbox-caption"></div>
1'),this.$photoCaption.text(this.caption),i("body").append(this.$photoCaption),this.$photoCaption.css({display:"inline"}),D({targets:this.$photoCaption[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}));var u=0,b=this.originalWidth/this.windowWidth,L=this.originalHeight/this.windowHeight;this.newWidth=0,this.newHeight=0,L<b?(u=this.originalHeight/this.originalWidth,this.newWidth=.9*this.windowWidth,this.newHeight=.9*this.windowWidth*u):(this.newWidth=.9*this.windowHeight*(u=this.originalWidth/this.originalHeight),this.newHeight=.9*this.windowHeight),this._animateImageIn(),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),this._handleWindowResizeBound=this._handleWindowResize.bind(this),this._handleWindowEscapeBound=this._handleWindowEscape.bind(this),window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleWindowResizeBound),window.addEventListener("keyup",this._handleWindowEscapeBound)}},{key:"close",value:function(){var r=this;this._updateVars(),this.doneAnimating=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),D.remove(this.el),D.remove(this.$overlay[0]),""!==this.caption&&D.remove(this.$photoCaption[0]),window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleWindowResizeBound),window.removeEventListener("keyup",this._handleWindowEscapeBound),D({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){r.overlayActive=!1,r.$overlay.remove()}}),this._animateImageOut(),""!==this.caption&&D({targets:this.$photoCaption[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){r.$photoCaption.remove()}})}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_Materialbox}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));return(u.el.M_Materialbox=u).options=i.extend({},l.defaults,a),u.overlayActive=!1,u.doneAnimating=!0,u.placeholder=i("<div></div>").addClass("material-placeholder"),u.originalWidth=0,u.originalHeight=0,u.originInlineStyles=u.$el.attr("style"),u.caption=u.el.getAttribute("data-caption")||"",u.$el.before(u.placeholder),u.placeholder.append(u.$el),u._setupEventHandlers(),u}M.Materialbox=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"materialbox","M_Materialbox")}(cash,M.anime),function(i){"use strict";var D={responsiveThreshold:0},K=(_inherits(F,Component),_createClass(F,[{key:"destroy",value:function(){F._parallaxes.splice(F._parallaxes.indexOf(this),1),this.$img[0].style.transform="",this._removeEventHandlers(),this.$el[0].M_Parallax=void 0}},{key:"_setupEventHandlers",value:function(){this._handleImageLoadBound=this._handleImageLoad.bind(this),this.$img[0].addEventListener("load",this._handleImageLoadBound),0===F._parallaxes.length&&(F._handleScrollThrottled=M.throttle(F._handleScroll,5),window.addEventListener("scroll",F._handleScrollThrottled),F._handleWindowResizeThrottled=M.throttle(F._handleWindowResize,5),window.addEventListener("resize",F._handleWindowResizeThrottled))}},{key:"_removeEventHandlers",value:function(){this.$img[0].removeEventListener("load",this._handleImageLoadBound),0===F._parallaxes.length&&(window.removeEventListener("scroll",F._handleScrollThrottled),window.removeEventListener("resize",F._handleWindowResizeThrottled))}},{key:"_setupStyles",value:function(){this.$img[0].style.opacity=1}},{key:"_handleImageLoad",value:function(){this._updateParallax()}},{key:"_updateParallax",value:function(){var l=0<this.$el.height()?this.el.parentNode.offsetHeight:500,r=this.$img[0].offsetHeight-l,a=this.$el.offset().top+l,u=this.$el.offset().top,b=M.getDocumentScrollTop(),L=window.innerHeight;this._enabled?b<a&&u<b+L&&(this.$img[0].style.transform="translate3D(-50%, "+(b+L-u)/(l+L)*r+"px, 0)"):this.$img[0].style.transform=""}}],[{key:"init",value:function(l,r){return _get(F.__proto__||Object.getPrototypeOf(F),"init",this).call(this,this,l,r)}},{key:"getInstance",value:function(l){return(l.jquery?l[0]:l).M_Parallax}},{key:"_handleScroll",value:function(){for(var l=0;l<F._parallaxes.length;l++){var r=F._parallaxes[l];r._updateParallax.call(r)}}},{key:"_handleWindowResize",value:function(){for(var l=0;l<F._parallaxes.length;l++){var r=F._parallaxes[l];r._enabled=window.innerWidth>r.options.responsiveThreshold}}},{key:"defaults",get:function(){return D}}]),F);function F(l,r){_classCallCheck(this,F);var a=_possibleConstructorReturn(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,F,l,r));return(a.el.M_Parallax=a).options=i.extend({},F.defaults,r),a._enabled=window.innerWidth>a.options.responsiveThreshold,a.$img=a.$el.find("img").first(),a.$img.each(function(){this.complete&&i(this).trigger("load")}),a._updateParallax(),a._setupEventHandlers(),a._setupStyles(),F._parallaxes.push(a),a}K._parallaxes=[],M.Parallax=K,M.jQueryLoaded&&M.initializeJqueryWrapper(K,"parallax","M_Parallax")}(cash),function(i,D){"use strict";var K={duration:300,onShow:null,swipeable:!1,responsiveThreshold:1/0},F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){this._removeEventHandlers(),this._indicator.parentNode.removeChild(this._indicator),this.options.swipeable?this._teardownSwipeableTabs():this._teardownNormalTabs(),this.$el[0].M_Tabs=void 0}},{key:"_setupEventHandlers",value:function(){this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound),this._handleTabClickBound=this._handleTabClick.bind(this),this.el.addEventListener("click",this._handleTabClickBound)}},{key:"_removeEventHandlers",value:function(){window.removeEventListener("resize",this._handleWindowResizeBound),this.el.removeEventListener("click",this._handleTabClickBound)}},{key:"_handleWindowResize",value:function(){this._setTabsAndTabWidth(),0!==this.tabWidth&&
vendor: 34,656 bytes, line 1
10!==this.tabsWidth&&(this._indicator.style.left=this._calcLeftPos(this.$activeTabLink)+"px",this._indicator.style.right=this._calcRightPos(this.$activeTabLink)+"px")}},{key:"_handleTabClick",value:function(r){var a=this,u=i(r.target).closest("li.tab"),b=i(r.target).closest("a");if(b.length&&b.parent().hasClass("tab"))if(u.hasClass("disabled"))r.preventDefault();else if(!b.attr("target")){this.$activeTabLink.removeClass("active");var L=this.$content;this.$activeTabLink=b,this.$content=i(M.escapeHash(b[0].hash)),this.$tabLinks=this.$el.children("li.tab").children("a"),this.$activeTabLink.addClass("active");var W=this.index;this.index=Math.max(this.$tabLinks.index(b),0),this.options.swipeable?this._tabsCarousel&&this._tabsCarousel.set(this.index,function(){"function"==typeof a.options.onShow&&a.options.onShow.call(a,a.$content[0])}):this.$content.length&&(this.$content[0].style.display="block",this.$content.addClass("active"),"function"==typeof this.options.onShow&&this.options.onShow.call(this,this.$content[0]),L.length&&!L.is(this.$content)&&(L[0].style.display="none",L.removeClass("active"))),this._setTabsAndTabWidth(),this._animateIndicator(W),r.preventDefault()}}},{key:"_createIndicator",value:function(){var r=this,a=document.createElement("li");a.classList.add("indicator"),this.el.appendChild(a),this._indicator=a,setTimeout(function(){r._indicator.style.left=r._calcLeftPos(r.$activeTabLink)+"px",r._indicator.style.right=r._calcRightPos(r.$activeTabLink)+"px"},0)}},{key:"_setupActiveTabLink",value:function(){this.$activeTabLink=i(this.$tabLinks.filter('[href="'+location.hash+'"]')),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a.active").first()),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a").first()),this.$tabLinks.removeClass("active"),this.$activeTabLink[0].classList.add("active"),this.index=Math.max(this.$tabLinks.index(this.$activeTabLink),0),this.$activeTabLink.length&&(this.$content=i(M.escapeHash(this.$activeTabLink[0].hash)),this.$content.addClass("active"))}},{key:"_setupSwipeableTabs",value:function(){var r=this;window.innerWidth>this.options.responsiveThreshold&&(this.options.swipeable=!1);var a=i();this.$tabLinks.each(function(L){var W=i(M.escapeHash(L.hash));W.addClass("carousel-item"),a=a.add(W)});var u=i('<div class="tabs-content carousel carousel-slider"></div>');a.first().before(u),u.append(a),a[0].style.display="";var b=this.$activeTabLink.closest(".tab").index();this._tabsCarousel=M.Carousel.init(u[0],{fullWidth:!0,noWrap:!0,onCycleTo:function(L){var W=r.index;r.index=i(L).index(),r.$activeTabLink.removeClass("active"),r.$activeTabLink=r.$tabLinks.eq(r.index),r.$activeTabLink.addClass("active"),r._animateIndicator(W),"function"==typeof r.options.onShow&&r.options.onShow.call(r,r.$content[0])}}),this._tabsCarousel.set(b)}},{key:"_teardownSwipeableTabs",value:function(){var r=this._tabsCarousel.$el;this._tabsCarousel.destroy(),r.after(r.children()),r.remove()}},{key:"_setupNormalTabs",value:function(){this.$tabLinks.not(this.$activeTabLink).each(function(r){if(r.hash){var a=i(M.escapeHash(r.hash));a.length&&(a[0].style.display="none")}})}},{key:"_teardownNormalTabs",value:function(){this.$tabLinks.each(function(r){if(r.hash){var a=i(M.escapeHash(r.hash));a.length&&(a[0].style.display="")}})}},{key:"_setTabsAndTabWidth",value:function(){this.tabsWidth=this.$el.width(),this.tabWidth=Math.max(this.tabsWidth,this.el.scrollWidth)/this.$tabLinks.length}},{key:"_calcRightPos",value:function(r){return Math.ceil(this.tabsWidth-r.position().left-r[0].getBoundingClientRect().width)}},{key:"_calcLeftPos",value:function(r){return Math.floor(r.position().left)}},{key:"updateTabIndicator",value:function(){this._setTabsAndTabWidth(),this._animateIndicator(this.index)}},{key:"_animateIndicator",value:function(r){var a=0,u=0;0<=this.index-r?a=90:u=90;var b={targets:this._indicator,left:{value:this._calcLeftPos(this.$activeTabLink),delay:a},right:{value:this._calcRightPos(this.$activeTabLink),delay:u},duration:this.options.duration,easing:"easeOutQuad"};D.remove(this._indicator),D(b)}},{key:"select",value:function(r){var a=this.$tabLinks.filter('[href="#'+r+'"]');a.length&&a.trigger("click")}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_Tabs}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));return(u.el.M_Tabs=u).options=i.extend({},l.defaults,a),u.$tabLinks=u.$el.children("li.tab").children("a"),u.index=0,u._setupActiveTabLink(),u.options.swipeable?u._setupSwipeableTabs():u._setupNormalTabs(),u._setTabsAndTabWidth(),u._createIndicator(),u._setupEventHandlers(),u}M.Tabs=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"tabs","M_Tabs")}(cash,M.anime),function(i,D){"use strict";var K={exitDelay:200,enterDelay:0,html:null,margin:5,inDuration:250,outDuration:200,position:"bottom",transitionMovement:10},F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){i(this.tooltipEl).remove(),this._removeEventHandlers(),this.el.M_Tooltip=void 0}},{key:"_appendTooltipEl",value:function(){var r=document.createElement("div");r.classList.add("material-tooltip"),this.tooltipEl=r;var a=document.createElement("div");a.classList.add("tooltip-content"),a.innerHTML=this.options.html,r.appendChild(a),document.body.appendChild(r)}},{key:"_updateTooltipContent",value:function(){this.tooltipEl.querySelector(".tooltip-content").innerHTML=this.options.html}},{key:"_setupEventHandlers",value:function(){this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this._handleFocusBound=this._handleFocus.bind(this),this._handleBlurBound=this._handleBlur.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.el.addEventListener("focus",this._handleFocusBound,!0),this.el.addEventListener("blur",this._handleBlurBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.el.removeEventListener("focus",this._handleFocusBound,!0),this.el.removeEventListener("blur",this._handleBlurBound,!0)}},{key:"open",value:function(r){this.isOpen||(r=void 0===r||void 0,this.isOpen=!0,this.options=i.extend({},this.options,this._getAttributeOptions()),this._updateTooltipContent(),this._setEnterDelayTimeout(r))}},{key:"close",value:function(){this.isOpen&&(this.isHovered=!1,this.isFocused=!1,this.isOpen=!1,this._setExitDelayTimeout())}},{key:"_setExitDelayTimeout",value:function(){var r=this;clearTimeout(this._exitDelayTimeout),this._exitDelayTimeout=setTimeout(function(){r.isHovered||r.isFocused||r._animateOut()},this.options.exitDelay)}},{key:"_setEnterDelayTimeout",value:function(r){var a=this;clearTimeout(this._enterDelayTimeout),this._enterDelayTimeout=setTimeout(function(){(a.isHovered||a.isFocused||r)&&a._animateIn()},this.options.enterDelay)}},{key:"_positionTooltip",value:function(){var r,a=this.el,u=this.tooltipEl,b=a.offsetHeight,L=a.offsetWidth,W=u.offsetHeight,R=u.offsetWidth,k=this.options.margin,N=void 0,I=void 0;this.xMovement=0,this.yMovement=0,N=a.getBoundingClientRect().top+M.getDocumentScrollTop(),I=a.getBoundingClientRect().left+M.getDocumentScrollLeft(),"top"===this.options.position?(N+=-W-k,I+=L/2-R/2,this.yMovement=-this.options.transitionMovement):"right"===this.options.position?(N+=b/2-W/2,I+=L+k,this.xMovement=this.options.transitionMovement):"left"===this.options.position?(N+=b/2-W/2,I+=-R-k,this.xMovement=-this.options.transitionMovement):(N+=b+k,I+=L/2-R/2,this.yMovement=this.options.transitionMovement),r=this._repositionWithinScreen(I,N,R,W),i(u).css({top:r.y+"px",left:r.x+"px"})}},{key:"_repositionWithinScreen",value:function(r,a,u,b){var L=M.getDocumentScrollLeft(),W=M.getDocumentScrollTop(),R=r-L,k=a-W,I=this.options.margin+this.options.transitionMovement,x=M.checkWithinContainer(document.body,{left:R,top:k,width:u,height:b},I);return x.left?R=I:x.right&&(R-=R+u-window.innerWidth),x.top?k=I:x.bottom&&(k-=k+b-window.innerHeight),{x:R+L,y:k+W}}},{key:"_animateIn",value:function(){this._positionTooltip(),this.tooltipEl.style.visibility="visible",D.remove(this.tooltipEl),D({targets:this.tooltipEl,opacity:1,translateX:this.xMovement,translateY:this.yMovement,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_animateOut",value:function(){D.remove(this.tooltipEl),D({targets:this.tooltipEl,opacity:0,translateX:0,translateY:0,duration:this.options.outDuration,easing:"easeOutCubic"})}},{key:"_handleMouseEnter",value:function(){this.isHovered=!0,this.isFocused=!1,this.open(!1)}},{key:"_handleMouseLeave",value:function(){this.isHovered=!1,this.isFocused=!1,this.close()}},{key:"_handleFocus",value:function(){M.tabPressed&&(this.isFocused=!0,this.open(!1))}},{key:"_handleBlur",value:function(){this.isFocused=!1,this.close()}},{key:"_getAttributeOptions",value:function(){var r={},a=this.el.getAttribute("data-tooltip"),u=this.el.getAttribute("data-position");return a&&(r.html=a),u&&(r.position=u),r}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_Tooltip}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));return(u.el.M_Tooltip=u).options=i.extend({},l.defaults,a),u.isOpen=!1,u.isHovered=!1,u.isFocused=!1,u._appendTooltipEl(),u._setupEventHandlers(),u}M.Tooltip=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"tooltip","M_Tooltip")}(cash,M.anime),function(i){"use strict";var D=D||{},K=document.querySelectorAll.bind(document);function F(u){var b="";for(var L in u)u.hasOwnProperty(L)&&(b+=L+":"+u[L]+";");return b}var l={duration:750,show:function(u,b){if(2===u.button)return!1;var L=b||this,W=document.createElement("div");W.className="waves-ripple",L.appendChild(W);var R,k,N,I,x,S,A,O=(S={top:0,left:0},k=(A=(R=L)&&R.ownerDocument).documentElement,void 0!==R.getBoundingClientRect&&(S=R.getBoundingClientRect()),N=null!==(x=I=A)&&x===x.window?I:9===I.nodeType&&I.defaultView,{top:S.top+N.pageYOffset-k.clientTop,left:S.left+N.pageXOffset-k.clientLeft}),H=u.pageY-O.top,z=u.pageX-O.left,v="scale("+L.clientWidth/100*10+")";"touches"in u&&(H=u.touches[0].pageY-O.top,z=u.touches[0].pageX-O.left),W.setAttribute("data-hold",Date.now()),W.setAttribute("data-scale",v),W.setAttribute("data-x",z),W.setAttribute("data-y",H);var tt={top:H+"px",left:z+"px"};W.className=W.className+" waves-notransition",W.setAttribute("style",F(tt)),W.className=W.className.replace("waves-notransition",""),tt["-webkit-transform"]=v,tt["-moz-transform"]=v,tt["-ms-transform"]=v,tt["-o-transform"]=v,tt.transform=v,tt.opacity="1",tt["-webkit-transition-duration"]=l.duration+"ms",tt["-moz-transition-duration"]=l.duration+"ms",tt["-o-transition-duration"]=l.duration+"ms",tt["transition-duration"]=l.duration+"ms",tt["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",tt["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",tt["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",tt["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",W.setAttribute("style",F(tt))},hide:function(u){r.touchup(u);var b=this,L=null,W=b.getElementsByClassName("waves-ripple");if(!(0<W.length))return!1;var R=(L=W[W.length-1]).getAttribute("data-x"),k=L.getAttribute("data-y"),N=L.getAttribute("data-scale"),I=350-(Date.now()-Number(L.getAttribute("data-hold")));I<0&&(I=0),setTimeout(function(){L.setAttribute("style",F({top:k+"px",left:R+"px",opacity:"0","-webkit-transition-duration":l.duration+"ms","-moz-transition-duration":l.duration+"ms","-o-transition-duration":l.duration+"ms","transition-duration":l.duration+"ms","-webkit-transform":N,"-moz-transform":N,"-ms-transform":N,"-o-transform":N,transform:N})),setTimeout(function(){try{b.removeChild(L)}catch(S){return!1}},l.duration)},I)},wrapInput:function(u){for(var b=0;b<u.length;b++){var L=u[b];if("input"===L.tagName.toLowerCase()){var W=L.parentNode;if("i"===W.tagName.toLowerCase()&&-1!==W.className.indexOf("waves-effect"))continue;var R=document.createElement("i");R.className=L.className+" waves-input-wrapper";var k=L.getAttribute("style");R.setAttribute("style",k=k||""),L.className="waves-button-input",L.removeAttribute("style"),W.replaceChild(R,L),R.appendChild(L)}}}},r={touches:0,allowEvent:function(u){var b=!0;return"touchstart"===u.type?r.touches+=1:"touchend"===u.type||"touchcancel"===u.type?setTimeout(function(){0<r.touches&&(r.touches-=1)},500):"mousedown"===u.type&&0<r.touches&&(b=!1),b},touchup:function(u){r.allowEvent(u)}};function a(u){var b=function(L){if(!1===r.allowEvent(L))return null;for(var W=null,R=L.target||L.srcElement;null!==R.parentNode;){if(!(R instanceof SVGElement)&&-1!==R.className.indexOf("waves-effect")){W=R;break}R=R.parentNode}return W}(u);null!==b&&(l.show(u,b),"ontouchstart"in i&&(b.addEventListener("touchend",l.hide,!1),b.addEventListener("touchcancel",l.hide,!1)),b.addEventListener("mouseup",l.hide,!1),b.addEventListener("mouseleave",l.hide,!1),b.addEventListener("dragend",l.hide,!1))}D.displayEffect=function(u){"duration"in(u=u||{})&&(l.duration=u.duration),l.wrapInput(K(".waves-effect")),"ontouchstart"in i&&document.body.addEventListener("touchstart",a,!1),document.body.addEventListener("mousedown",a,!1)},D.attach=function(u){"input"===u.tagName.toLowerCase()&&(l.wrapInput([u]),u=u.parentNode),"ontouchstart"in i&&u.addEventListener("touchstart",a,!1),u.addEventListener("mousedown",a,!1)},i.Waves=D,document.addEventListener("DOMContentLoaded",function(){D.displayEffect()},!1)}(window),function(i,D){"use strict";var K={html:"",displayLength:4e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},F=(_createClass(l,[{key:"_createToast",value:function(){var r=document.createElement("div");return r.classList.add("toast"),this.options.classes.length&&i(r).addClass(this.options.classes),("object"==typeof HTMLElement?this.message instanceof HTMLElement:this.message&&"object"==typeof this.message&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?r.appendChild(this.message):this.message.jquery?i(r).append(this.message[0]):r.innerHTML=this.message,l._container.appendChild(r),r}},{key:"_animateIn",value:function(){D({targets:this.el,top:0,opacity:1,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_setTimer",value:function(){var r=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval(function(){r.panning||(r.timeRemaining-=20),r.timeRemaining<=0&&r.dismiss()},20))}},{key:"dismiss",value:function(){var r=this;window.clearInterval(this.counterInterval);var a=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+a+"px)",this.el.style.opacity=0),D({targets:this.el,opacity:0,marginTop:-40,duration:this.options.outDuration,easing:"easeOutExpo",complete:function(){"function"==typeof r.options.completeCallback&&r.options.completeCallback(),r.$el.remove(),l._toasts.splice(l._toasts.indexOf(r),1),0===l._toasts.length&&l._removeContainer()}})}}],[{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_Toast}},{key:"_createContainer",value:function(){var r=document.createElement("div");r.setAttribute("id","toast-container"),r.addEventListener("touchstart",l._onDragStart),r.addEventListener("touchmove",l._onDragMove),r.addEventListener("touchend",l._onDragEnd),r.addEventListener("mousedown",l._onDragStart),document.addEventListener("mousemove",l._onDragMove),document.addEventListener("mouseup",l._onDragEnd),document.body.appendChild(r),l._container=r}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",l._onDragMove),document.removeEventListener("mouseup",l._onDragEnd),i(l._container).remove(),l._container=null}},{key:"_onDragStart",value:function(r){if(r.target&&i(r.target).closest(".toast").length){var a=i(r.target).closest(".toast")[0].M_Toast;a.panning=!0,(l._draggedToast=a).el.classList.add("panning"),a.el.style.transition="",a.startingXPos=l._xPos(r),a.time=Date.now(),a.xPos=l._xPos(r)}}},{key:"_onDragMove",value:function(r){if(l._draggedToast){r.preventDefault();var a=l._draggedToast;a.deltaX=Math.abs(a.xPos-l._xPos(r)),a.xPos=l._xPos(r),a.velocityX=a.deltaX/(Date.now()-a.time),a.time=Date.now();var u=a.xPos-a.startingXPos,b=a.el.offsetWidth*a.options.activationPercent;a.el.style.transform="translateX("+u+"px)",a.el.style.opacity=1-Math.abs(u/b)}}},{key:"_onDragEnd",value:function(){if(l._draggedToast){var r=l._draggedToast;r.panning=!1,r.el.classList.remove("panning");var u=r.el.offsetWidth*r.options.activationPercent;Math.abs(r.xPos-r.startingXPos)>u||1<r.velocityX?(r.wasSwiped=!0,r.dismiss()):(r.el.style.transition="transform .2s, opacity .2s",r.el.style.transform="",r.el.style.opacity=""),l._draggedToast=null}}},{key:"_xPos",value:function(r){return r.targetTouches&&1<=r.targetTouches.length?r.targetTouches[0].clientX:r.clientX}},{key:"dismissAll",value:function(){for(var r in l._toasts)l._toasts[r].dismiss()}},{key:"defaults",get:function(){return K}}]),l);function l(r){_classCallCheck(this,l),this.options=i.extend({},l.defaults,r),this.message=this.options.html,this.panning=!1,this.timeRemaining=this.options.displayLength,0===l._toasts.length&&l._createContainer(),l._toasts.push(this);var a=this._createToast();(a.M_Toast=this).el=a,this.$el=i(a),this._animateIn(),this._setTimer()}F._toasts=[],F._container=null,F._draggedToast=null,M.Toast=F,M.toast=function(r){return new F(r)}}(cash,M.anime),function(i,D){"use strict";var K={edge:"left",draggable:!0,inDuration:250,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0},F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){this._removeEventHandlers(),this._enableBodyScrolling(),this._overlay.parentNode.removeChild(this._overlay),this.dragTarget.parentNode.removeChild(this.dragTarget),this.el.M_Sidenav=void 0,this.el.style.transform="";var r=l._sidenavs.indexOf(this);0<=r&&l._sidenavs.splice(r,1)}},{key:"_createOverlay",value:function(){var r=document.createElement("div");this._closeBound=this.close.bind(this),r.classList.add("sidenav-overlay"),r.addEventListener("click",this._closeBound),document.body.appendChild(r),this._overlay=r}},{key:"_setupEventHandlers",value:function(){0===l._sidenavs.length&&document.body.addEventListener("click",this._handleTriggerClick),this._handleDragTargetDragBound=this._handleDragTargetDrag.bind(this),this._handleDragTargetReleaseBound=this._handleDragTargetRelease.bind(this),this._handleCloseDragBound=this._handleCloseDrag.bind(this),this._handleCloseReleaseBound=this._handleCloseRelease.bind(this),this._handleCloseTriggerClickBound=this._handleCloseTriggerClick.bind(this),this.dragTarget.addEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.addEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.addEventListener("touchmove",this._handleCloseDragBound),this._overlay.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("touchmove",this._handleCloseDragBound),this.el.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&(this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound))}},{key:"_removeEventHandlers",value:function(){1===l._sidenavs.length&&document.body.removeEventListener("click",this._handleTriggerClick),this.dragTarget.removeEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.removeEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.removeEventListener("touchmove",this._handleCloseDragBound),this._overlay.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("touchmove",this._handleCloseDragBound),this.el.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&window.removeEventListener("resize",this._handleWindowResizeBound)}},{key:"_handleTriggerClick",value:function(r){var a=i(r.target).closest(".sidenav-trigger");if(r.target&&a.length){var u=M.getIdFromTrigger(a[0]),b=document.getElementById(u).M_Sidenav;b&&b.open(a),r.preventDefault()}}},{key:"_startDrag",value:function(r){var a=r.targetTouches[0].clientX;this.isDragged=!0,this._startingXpos=a,this._xPos=this._startingXpos,this._time=Date.now(),this._width=this.el.getBoundingClientRect().width,this._overlay.style.display="block",this._initialScrollTop=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop(),this._verticallyScrolling=!1,D.remove(this.el),D.remove(this._overlay)}},{key:"_dragMoveUpdate",value:function(r){var a=r.targetTouches[0].clientX,u=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop();this.deltaX=Math.abs(this._xPos-a),this._xPos=a,this.velocityX=this.deltaX/(Date.now()-this._time),this._time=Date.now(),this._initialScrollTop!==u&&(this._verticallyScrolling=!0)}},{key:"_handleDragTargetDrag",value:function(r){if(this.options.draggable&&!this._isCurrentlyFixed()&&!this._verticallyScrolling){this.isDragged||this._startDrag(r),this._dragMoveUpdate(r);var a=this._xPos-this._startingXpos,u=0<a?"right":"left";a=Math.min(this._width,Math.abs(a)),this.options.edge===u&&(a=0);var b=a,L="translateX(-100%)";"right"===this.options.edge&&(L="translateX(100%)",b=-b),this.percentOpen=Math.min(1,a/this._width),this.el.style.transform=L+" translateX("+b+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleDragTargetRelease",value:function(){this.isDragged&&(.2<this.percentOpen?this.open():this._animateOut(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseDrag",value:function(r){if(this.isOpen){if(!this.options.draggable||this._isCurrentlyFixed()||this._verticallyScrolling)return;this.isDragged||this._startDrag(r),this._dragMoveUpdate(r);var a=this._xPos-this._startingXpos,u=0<a?"right":"left";a=Math.min(this._width,Math.abs(a)),this.options.edge!==u&&(a=0);var b=-a;"right"===this.options.edge&&(b=-b),this.percentOpen=Math.min(1,1-a/this._width),this.el.style.transform="translateX("+b+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleCloseRelease",value:function(){this.isOpen&&this.isDragged&&(.8<this.percentOpen?this._animateIn():this.close(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseTriggerClick",value:function(r){i(r.target).closest(".sidenav-close").length&&!this._isCurrentlyFixed()&&this.close()}},{key:"_handleWindowResize",value:function(){this.lastWindowWidth!==window.innerWidth&&(992<window.innerWidth?this.open():this.close()),this.lastWindowWidth=window.innerWidth,this.lastWindowHeight=window.innerHeight}},{key:"_setupClasses",value:function(){"right"===this.options.edge&&(this.el.classList.add("right-aligned"),this.dragTarget.classList.add("right-aligned"))}},{key:"_removeClasses",value:function(){this.el.classList.remove("right-aligned"),this.dragTarget.classList.remove("right-aligned")}},{key:"_setupFixed",value:function(){this._isCurrentlyFixed()&&this.open()}},{key:"_isCurrentlyFixed",value:function(){return this.isFixed&&992<window.innerWidth}},{key:"_createDragTarget",value:function(){var r=document.createElement("div");r.classList.add("drag-target"),document.body.appendChild(r),this.dragTarget=r}},{key:"_preventBodyScrolling",value:function(){document.body.style.overflow="hidden"}},{key:"_enableBodyScrolling",value:function(){document.body.style.overflow=""}},{key:"open",value:function(){!0!==this.isOpen&&(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._isCurrentlyFixed()?(D.remove(this.el),D({targets:this.el,translateX:0,duration:0,easing:"easeOutQuad"}),this._enableBodyScrolling(),this._overlay.style.display="none"):(this.options.preventScrolling&&this._preventBodyScrolling(),this.isDragged&&1==this.percentOpen||this._animateIn()))}},{key:"close",value:function(){!1!==this.isOpen&&(this.isOpen=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._isCurrentlyFixed()?this.el.style.transform="translateX("+("left"===this.options.edge?"-105%":"105%")+")":(this._enableBodyScrolling(),this.isDragged&&0==this.percentOpen?this._overlay.style.display="none":this._animateOut()))}},{key:"_animateIn",value:function(){this._animateSidenavIn(),this._animateOverlayIn()}},{key:"_animateSidenavIn",value:function(){var r=this,a="left"===this.options.edge?-1:1;this.isDragged&&(a="left"===this.options.edge?a+this.percentOpen:a-this.percentOpen),D.remove(this.el),D({targets:this.el,translateX:[100*a+"%",0],duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){"function"==typeof r.options.onOpenEnd&&r.options.onOpenEnd.call(r,r.el)}})}},{key:"_animateOverlayIn",value:function(){var r=0;this.isDragged?r=this.percentOpen:i(this._overlay).css({display:"block"}),D.remove(this._overlay),D({targets:this._overlay,opacity:[r,1],duration:this.options.inDuration,easing:"easeOutQuad"})}},{key:"_animateOut",value:function(){this._animateSidenavOut(),this._animateOverlayOut()}},{key:"_animateSidenavOut",value:function(){var r=this,a="left"===this.options.edge?-1:1,u=0;this.isDragged&&(u="left"===this.options.edge?a+this.percentOpen:a-this.percentOpen),D.remove(this.el),D({targets:this.el,translateX:[100*u+"%",105*a+"%"],duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){"function"==typeof r.options.onCloseEnd&&r.options.onCloseEnd.call(r,r.el)}})}},{key:"_animateOverlayOut",value:function(){var r=this;D.remove(this._overlay),D({targets:this._overlay,opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){i(r._overlay).css("display","none")}})}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_Sidenav}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));return(u.el.M_Sidenav=u).id=u.$el.attr("id"),u.options=i.extend({},l.defaults,a),u.isOpen=!1,u.isFixed=u.el.classList.contains("sidenav-fixed"),u.isDragged=!1,u.lastWindowWidth=window.innerWidth,u.lastWindowHeight=window.innerHeight,u._createOverlay(),u._createDragTarget(),u._setupEventHandlers(),u._setupClasses(),u._setupFixed(),l._sidenavs.push(u),u}F._sidenavs=[],M.Sidenav=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"sidenav","M_Sidenav")}(cash,M.anime),function(i,D){"use strict";var K={throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(r){return'a[href="#'+r+'"]'}},F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){l._elements.splice(l._elements.indexOf(this),1),l._elementsInView.splice(l._elementsInView.indexOf(this),1),l._visibleElements.splice(l._visibleElements.indexOf(this.$el),1),l._count--,this._removeEventHandlers(),i(this.options.getActiveElement(this.$el.attr("id"))).removeClass(this.options.activeClass),this.el.M_ScrollSpy=void 0}},{key:"_setupEventHandlers",value:function(){var r=M.throttle(this._handleWindowScroll,200);this._handleThrottledResizeBound=r.bind(this),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),1===l._count&&(window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleThrottledResizeBound),document.body.addEventListener("click",this._handleTriggerClick))}},{key:"_removeEventHandlers",value:function(){0===l._count&&(window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleThrottledResizeBound),document.body.removeEventListener("click",this._handleTriggerClick))}},{key:"_handleTriggerClick",value:function(r){for(var a=i(r.target),u=l._elements.length-1;0<=u;u--){var b=l._elements[u];if(a.is('a[href="#'+b.$el.attr("id")+'"]')){r.preventDefault();var L=b.$el.offset().top+1;D({targets:[document.documentElement,document.body],scrollTop:L-b.options.scrollOffset,duration:400,easing:"easeOutCubic"});break}}}},{key:"_handleWindowScroll",value:function(){l._ticks++;for(var r=M.getDocumentScrollTop(),a=M.getDocumentScrollLeft(),u=a+window.innerWidth,b=r+window.innerHeight,L=l._findElements(r,u,b,a),W=0;W<L.length;W++){var R=L[W];R.tickId<0&&R._enter(),R.tickId=l._ticks}for(var k=0;k<l._elementsInView.length;k++){var N=l._elementsInView[k],I=N.tickId;0<=I&&I!==l._ticks&&(N._exit(),N.tickId=-1)}l._elementsInView=L}},{key:"_enter",value:function(){(l._visibleElements=l._visibleElements.filter(function(r){return 0!=r.height()}))[0]?(i(this.options.getActiveElement(l._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),l._visibleElements[0][0].M_ScrollSpy&&this.id<l._visibleElements[0][0].M_ScrollSpy.id?l._visibleElements.unshift(this.$el):l._visibleElements.push(this.$el)):l._visibleElements.push(this.$el),i(this.options.getActiveElement(l._visibleElements[0].attr("id"))).addClass(this.options.activeClass)}},{key:"_exit",value:function(){var r=this;(l._visibleElements=l._visibleElements.filter(function(a){return 0!=a.height()}))[0]&&(i(this.options.getActiveElement(l._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),(l._visibleElements=l._visibleElements.filter(function(a){return a.attr("id")!=r.$el.attr("id")}))[0]&&i(this.options.getActiveElement(l._visibleElements[0].attr("id"))).addClass(this.options.activeClass))}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_ScrollSpy}},{key:"_findElements",value:function(r,a,u,b){for(var L=[],W=0;W<l._elements.length;W++){var R=l._elements[W],k=r+R.options.scrollOffset||200;if(0<R.$el.height()){var N=R.$el.offset().top,I=R.$el.offset().left,x=I+R.$el.width(),S=N+R.$el.height();a<I||x<b||u<N||S<k||L.push(R)}}return L}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));return(u.el.M_ScrollSpy=u).options=i.extend({},l.defaults,a),l._elements.push(u),l._count++,l._increment++,u.tickId=-1,u.id=l._increment,u._setupEventHandlers(),u._handleWindowScroll(),u}F._elements=[],F._elementsInView=[],F._visibleElements=[],F._count=0,F._increment=0,F._ticks=0,M.ScrollSpy=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"scrollSpy","M_ScrollSpy")}(cash,M.anime),function(i){"use strict";var D={data:{},limit:1/0,onAutocomplete:null,minLength:1,sortFunction:function(l,r,a){return l.indexOf(a)-r.indexOf(a)}},K=(_inherits(F,Component),_createClass(F,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_Autocomplete=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputBlurBound=this._handleInputBlur.bind(this),this._handleInputKeyupAndFocusBound=this._handleInputKeyupAndFocus.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleContainerMousedownAndTouchstartBound=this._handleContainerMousedownAndTouchstart.bind(this),this._handleContainerMouseupAndTouchendBound=this._handleContainerMouseupAndTouchend.bind(this),this.el.addEventListener("blur",this._handleInputBlurBound),this.el.addEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.addEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("click",this._handleInputClickBound),this.container.addEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.addEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("blur",this._handleInputBlurBound),this.el.removeEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("click",this._handleInputClickBound),this.container.removeEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.removeEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_setupDropdown",value:function(){var l=this;this.container=document.createElement("ul"),this.container.id="autocomplete-options-"+M.guid(),i(this.container).addClass("autocomplete-content dropdown-content"),this.$inputField.append(this.container),this.el.setAttribute("data-target",this.container.id),this.dropdown=M.Dropdown.init(this.el,{autoFocus:!1,closeOnClick:!1,coverTrigger:!1,onItemClick:function(r){l.selectOption(i(r))}}),this.el.removeEventListener("click",this.dropdown._handleClickBound)}},{key:"_removeDropdown",value:function(){this.container.parentNode.removeChild(this.container)}},{key:"_handleInputBlur",value:function(){this._mousedown||(this.close(),this._resetAutocomplete())}},{key:"_handleInputKeyupAndFocus",value:function(l){"keyup"===l.type&&(F._keydown=!1),this.count=0;var r=this.el.value.toLowerCase();13!==l.keyCode&&38!==l.keyCode&&40!==l.keyCode&&(this.oldVal===r||!M.tabPressed&&"focu
1s"===l.type||this.open(),this.oldVal=r)}},{key:"_handleInputKeydown",value:function(l){F._keydown=!0;var r=l.keyCode,a=void 0,u=i(this.container).children("li").length;r===M.keys.ENTER&&0<=this.activeIndex?(a=i(this.container).children("li").eq(this.activeIndex)).length&&(this.selectOption(a),l.preventDefault()):r!==M.keys.ARROW_UP&&r!==M.keys.ARROW_DOWN||(l.preventDefault(),r===M.keys.ARROW_UP&&0<this.activeIndex&&this.activeIndex--,r===M.keys.ARROW_DOWN&&this.activeIndex<u-1&&this.activeIndex++,this.$active.removeClass("active"),0<=this.activeIndex&&(this.$active=i(this.container).children("li").eq(this.activeIndex),this.$active.addClass("active")))}},{key:"_handleInputClick",value:function(l){this.open()}},{key:"_handleContainerMousedownAndTouchstart",value:function(l){this._mousedown=!0}},{key:"_handleContainerMouseupAndTouchend",value:function(l){this._mousedown=!1}},{key:"_highlight",value:function(l,r){var a=r.find("img"),u=r.text().toLowerCase().indexOf(""+l.toLowerCase()),b=u+l.length-1,L=r.text().slice(0,u),W=r.text().slice(u,1+b),R=r.text().slice(1+b);r.html("<span>"+L+"<span class='highlight'>"+W+"</span>"+R+"</span>"),a.length&&r.prepend(a)}},{key:"_resetCurrentElement",value:function(){this.activeIndex=-1,this.$active.removeClass("active")}},{key:"_resetAutocomplete",value:function(){i(this.container).empty(),this._resetCurrentElement(),this.oldVal=null,this.isOpen=!1,this._mousedown=!1}},{key:"selectOption",value:function(l){var r=l.text().trim();this.el.value=r,this.$el.trigger("change"),this._resetAutocomplete(),this.close(),"function"==typeof this.options.onAutocomplete&&this.options.onAutocomplete.call(this,r)}},{key:"_renderDropdown",value:function(l,r){var a=this;this._resetAutocomplete();var u=[];for(var b in l)if(l.hasOwnProperty(b)&&-1!==b.toLowerCase().indexOf(r)){if(this.count>=this.options.limit)break;u.push({data:l[b],key:b}),this.count++}this.options.sortFunction&&u.sort(function(N,I){return a.options.sortFunction(N.key.toLowerCase(),I.key.toLowerCase(),r.toLowerCase())});for(var W=0;W<u.length;W++){var R=u[W],k=i("<li></li>");k.append(R.data?'<img src="'+R.data+'" class="right circle"><span>'+R.key+"</span>":"<span>"+R.key+"</span>"),i(this.container).append(k),this._highlight(r,k)}}},{key:"open",value:function(){var l=this.el.value.toLowerCase();this._resetAutocomplete(),l.length>=this.options.minLength&&(this.isOpen=!0,this._renderDropdown(this.options.data,l)),this.dropdown.isOpen?this.dropdown.recalculateDimensions():this.dropdown.open()}},{key:"close",value:function(){this.dropdown.close()}},{key:"updateData",value:function(l){var r=this.el.value.toLowerCase();this.options.data=l,this.isOpen&&this._renderDropdown(l,r)}}],[{key:"init",value:function(l,r){return _get(F.__proto__||Object.getPrototypeOf(F),"init",this).call(this,this,l,r)}},{key:"getInstance",value:function(l){return(l.jquery?l[0]:l).M_Autocomplete}},{key:"defaults",get:function(){return D}}]),F);function F(l,r){_classCallCheck(this,F);var a=_possibleConstructorReturn(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,F,l,r));return(a.el.M_Autocomplete=a).options=i.extend({},F.defaults,r),a.isOpen=!1,a.count=0,a.activeIndex=-1,a.$inputField=a.$el.closest(".input-field"),a.$active=i(),a._mousedown=!1,a._setupDropdown(),a._setupEventHandlers(),a}K._keydown=!1,M.Autocomplete=K,M.jQueryLoaded&&M.initializeJqueryWrapper(K,"autocomplete","M_Autocomplete")}(cash),function(i){M.updateTextFields=function(){i("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea").each(function(D,K){var F=i(this);0<D.value.length||i(D).is(":focus")||D.autofocus||null!==F.attr("placeholder")?F.siblings("label").addClass("active"):D.validity?F.siblings("label").toggleClass("active",!0===D.validity.badInput):F.siblings("label").removeClass("active")})},M.validate_field=function(D){var K=null!==D.attr("data-length"),F=parseInt(D.attr("data-length")),l=D[0].value.length;0!==l||!1!==D[0].validity.badInput||D.is(":required")?D.hasClass("val
1idate")&&(D.is(":valid")&&K&&l<=F||D.is(":valid")&&!K?(D.removeClass("invalid"),D.addClass("valid")):(D.removeClass("valid"),D.addClass("invalid"))):D.hasClass("validate")&&(D.removeClass("valid"),D.removeClass("invalid"))},M.textareaAutoResize=function(D){if(D instanceof Element&&(D=i(D)),D.length){var K=i(".hiddendiv").first();K.length||(K=i('<div class="hiddendiv common"></div>'),i("body").append(K));var F=D.css("font-family"),l=D.css("font-size"),r=D.css("line-height"),a=D.css("padding-top"),u=D.css("padding-right"),b=D.css("padding-bottom"),L=D.css("padding-left");l&&K.css("font-size",l),F&&K.css("font-family",F),r&&K.css("line-height",r),a&&K.css("padding-top",a),u&&K.css("padding-right",u),b&&K.css("padding-bottom",b),L&&K.css("padding-left",L),D.data("original-height")||D.data("original-height",D.height()),"off"===D.attr("wrap")&&K.css("overflow-wrap","normal").css("white-space","pre"),K.text(D[0].value+"\n");var W=K.html().replace(/\n/g,"<br>");K.html(W),K.css("width",0<D[0].offsetWidth&&0<D[0].offsetHeight?D.width()+"px":window.innerWidth/2+"px"),D.data("original-height")<=K.innerHeight()?D.css("height",K.innerHeight()+"px"):D[0].value.length<D.data("previous-length")&&D.css("height",D.data("original-height")+"px"),D.data("previous-length",D[0].value.length)}else console.error("No textarea element found")},i(document).ready(function(){var D="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea";i(document).on("change",D,function(){0===this.value.length&&null===i(this).attr("placeholder")||i(this).siblings("label").addClass("active"),M.validate_field(i(this))}),i(document).ready(function(){M.updateTextFields()}),i(document).on("reset",function(F){var l=i(F.target);l.is("form")&&(l.find(D).removeClass("valid").removeClass("invalid"),l.find(D).each(function(r){this.value.length&&i(this).siblings("label").removeClass("active")}),setTimeout(function(){l.find("select").each(function(){this.M_FormSelect&&i(this).trigger("change")})},0))}),document.addEventListener("focus",function(F){i(F.target).is(D)&&i(F.target).siblings("label, .prefix").addClass("active")},!0),document.addEventListener("blur",function(F){var l=i(F.target);if(l.is(D)){var r=".prefix";0===l[0].value.length&&!0!==l[0].validity.badInput&&null===l.attr("placeholder")&&(r+=", label"),l.siblings(r).removeClass("active"),M.validate_field(l)}},!0),i(document).on("keyup","input[type=radio], input[type=checkbox]",function(F){if(F.which===M.keys.TAB)return i(this).addClass("tabbed"),void i(this).one("blur",function(l){i(this).removeClass("tabbed")})});var K=".materialize-textarea";i(K).each(function(){var F=i(this);F.data("original-height",F.height()),F.data("previous-length",this.value.length),M.textareaAutoResize(F)}),i(document).on("keyup",K,function(){M.textareaAutoResize(i(this))}),i(document).on("keydown",K,function(){M.textareaAutoResize(i(this))}),i(document).on("change",'.file-field input[type="file"]',function(){for(var F=i(this).closest(".file-field").find("input.file-path"),l=i(this)[0].files,r=[],a=0;a<l.length;a++)r.push(l[a].name);F[0].value=r.join(", "),F.trigger("change")})})}(cash),function(i,D){"use strict";var K={indicators:!0,height:400,duration:500,interval:6e3},F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){this.pause(),this._removeIndicators(),this._removeEventHandlers(),this.el.M_Slider=void 0}},{key:"_setupEventHandlers",value:function(){var r=this;this._handleIntervalBound=this._handleInterval.bind(this),this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.options.indicators&&this.$indicators.each(function(a){a.addEventListener("click",r._handleIndicatorClickBound)})}},{key:"_removeEventHandlers",value:function(){var r=this;this.options.indicators&&this.$indicators.each(function(a){a.removeEventListener("click",r._handleIndicatorClickBound)})}},{key:"_handleIndicatorClick",value:function(r){var a=i(r.target).index();this.set(a)}},{key:"_handleInterval",value:function(){var r=this.$slider.find(".active").index();this.$slides.length===r+1?r=0:r+=1,this.set(r)}},{key:"_animateCaptionIn",value:function(r,a){var u={targets:r,opacity:0,duration:a,easing:"easeOutQuad"};i(r).hasClass("center-align")?u.translateY=-100:i(r).hasClass("right-align")?u.translateX=100:i(r).hasClass("left-align")&&(u.translateX=-100),D(u)}},{key:"_setSliderHeight",value:function(){this.$el.hasClass("fullscreen")||(this.$el.css("height",this.options.indicators?this.options.height+40+"px":this.options.height+"px"),this.$slider.css("height",this.options.height+"px"))}},{key:"_setupIndicators",value:function(){var r=this;this.options.indicators&&(this.$indicators=i('<ul class="indicators"></ul>'),this.$slides.each(function(a,u){var b=i('<li class="indicator-item"></li>');r.$indicators.append(b[0])}),this.$el.append(this.$indicators[0]),this.$indicators=this.$indicators.children("li.indicator-item"))}},{key:"_removeIndicators",value:function(){this.$el.find("ul.indicators").remove()}},{key:"set",value:function(r){var a=this;if(r>=this.$slides.length?r=0:r<0&&(r=this.$slides.length-1),this.activeIndex!=r){this.$active=this.$slides.eq(this.activeIndex);var u=this.$active.find(".caption");this.$active.removeClass("active"),D({targets:this.$active[0],opacity:0,duration:this.options.duration,easing:"easeOutQuad",complete:function(){a.$slides.not(".active").each(function(b){D({targets:b,opacity:0,translateX:0,translateY:0,duration:0,easing:"easeOutQuad"})})}}),this._animateCaptionIn(u[0],this.options.duration),this.options.indicators&&(this.$indicators.eq(this.activeIndex).removeClass("active"),this.$indicators.eq(r).addClass("active")),D({targets:this.$slides.eq(r)[0],opacity:1,duration:this.options.duration,easing:"easeOutQuad"}),D({targets:this.$slides.eq(r).find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:this.options.duration,delay:this.options.duration,easing:"easeOutQuad"}),this.$slides.eq(r).addClass("active"),this.activeIndex=r,this.start()}}},{key:"pause",value:function(){clearInterval(this.interval)}},{key:"start",value:function(){clearInterval(this.interval),this.interval=setInterval(this._handleIntervalBound,this.options.duration+this.options.interval)}},{key:"next",value:function(){var r=this.activeIndex+1;r>=this.$slides.length?r=0:r<0&&(r=this.$slides.length-1),this.set(r)}},{key:"prev",value:function(){var r=this.activeIndex-1;r>=this.$slides.length?r=0:r<0&&(r=this.$slides.length-1),this.set(r)}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_Slider}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));return(u.el.M_Slider=u).options=i.extend({},l.defaults,a),u.$slider=u.$el.find(".slides"),u.$slides=u.$slider.children("li"),u.activeIndex=u.$slides.filter(function(b){return i(b).hasClass("active")}).first().index(),-1!=u.activeIndex&&(u.$active=u.$slides.eq(u.activeIndex)),u._setSliderHeight(),u.$slides.find(".caption").each(function(b){u._animateCaptionIn(b,0)}),u.$slides.find("img").each(function(b){var L="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";i(b).attr("src")!==L&&(i(b).css("background-image",'url("'+i(b).attr("src")+'")'),i(b).attr("src",L))}),u._setupIndicators(),u.$active?u.$active.css("display","block"):(u.$slides.first().addClass("active"),D({targets:u.$
vendor: 72,796 bytes, line 1
1slides.first()[0],opacity:1,duration:u.options.duration,easing:"easeOutQuad"}),u.activeIndex=0,u.$active=u.$slides.eq(u.activeIndex),u.options.indicators&&u.$indicators.eq(u.activeIndex).addClass("active")),u.$active.find("img").each(function(b){D({targets:u.$active.find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:u.options.duration,easing:"easeOutQuad"})}),u._setupEventHandlers(),u.start(),u}M.Slider=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"slider","M_Slider")}(cash,M.anime),function(i,D){i(document).on("click",".card",function(K){if(i(this).children(".card-reveal").length){var F=i(K.target).closest(".card");void 0===F.data("initialOverflow")&&F.data("initialOverflow",void 0===F.css("overflow")?"":F.css("overflow"));var l=i(this).find(".card-reveal");i(K.target).is(i(".card-reveal .card-title"))||i(K.target).is(i(".card-reveal .card-title i"))?D({targets:l[0],translateY:0,duration:225,easing:"easeInOutQuad",complete:function(r){i(r.animatables[0].target).css({display:"none"}),F.css("overflow",F.data("initialOverflow"))}}):(i(K.target).is(i(".card .activator"))||i(K.target).is(i(".card .activator i")))&&(F.css("overflow","hidden"),l.css({display:"block"}),D({targets:l[0],translateY:"-100%",duration:300,easing:"easeInOutQuad"}))}})}(cash,M.anime),function(i){"use strict";var D={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{},limit:1/0,onChipAdd:null,onChipSelect:null,onChipDelete:null},K=(_inherits(F,Component),_createClass(F,[{key:"getData",value:function(){return this.chipsData}},{key:"destroy",value:function(){this._removeEventHandlers(),this.$chips.remove(),this.el.M_Chips=void 0}},{key:"_setupEventHandlers",value:function(){this._handleChipClickBound=this._handleChipClick.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputFocusBound=this._handleInputFocus.bind(this),this._handleInputBlurBound=this._handleInputBlur.bind(this),this.el.addEventListener("click",this._handleChipClickBound),document.addEventListener("keydown",F._handleChipsKeydown),document.addEventListener("keyup",F._handleChipsKeyup),this.el.addEventListener("blur",F._handleChipsBlur,!0),this.$input[0].addEventListener("focus",this._handleInputFocusBound),this.$input[0].addEventListener("blur",this._handleInputBlurBound),this.$input[0].addEventListener("keydown",this._handleInputKeydownBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleChipClickBound),document.removeEventListener("keydown",F._handleChipsKeydown),document.removeEventListener("keyup",F._handleChipsKeyup),this.el.removeEventListener("blur",F._handleChipsBlur,!0),this.$input[0].removeEventListener("focus",this._handleInputFocusBound),this.$input[0].removeEventListener("blur",this._handleInputBlurBound),this.$input[0].removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleChipClick",value:function(l){var r=i(l.target).closest(".chip"),a=i(l.target).is(".close");if(r.length){var u=r.index();a?(this.deleteChip(u),this.$input[0].focus()):this.selectChip(u)}else this.$input[0].focus()}},{key:"_handleInputFocus",value:function(){this.$el.addClass("focus")}},{key:"_handleInputBlur",value:function(){this.$el.removeClass("focus")}},{key:"_handleInputKeydown",value:function(l){if(F._keydown=!0,13===l.keyCode){if(this.hasAutocomplete&&this.autocomplete&&this.autocomplete.isOpen)return;l.preventDefault(),this.addChip({tag:this.$input[0].value}),this.$input[0].value=""}else 8!==l.keyCode&&37!==l.keyCode||""!==this.$input[0].value||!this.chipsData.length||(l.preventDefault(),this.selectChip(this.chipsData.length-1))}},{key:"_renderChip",value:function(l){if(l.tag){var r=document.createElement("div"),a=document.createElement("i");if(r.classList.add("chip"),r.textContent=l.tag,r.setAttribute("tabindex",0),i(a).addClass("material-icons close"),a.textContent="close",l.image){var u=document.createElement("img");u.setAttribute("src",l.image),r.insertBefore(u,r.firstChild)}return r.appendChild(a),r}}},{key:"_renderChips",value:function(){this.$chips.remove();for(var l=0;l<this.chipsData.length;l++){var r=this._renderChip(this.chipsData[l]);this.$el.append(r),this.$chips.add(r)}this.$el.append(this.$input[0])}},{key:"_setupAutocomplete",value:function(){var l=this;this.options.autocompleteOptions.onAutocomplete=function(r){l.addChip({tag:r}),l.$input[0].value="",l.$input[0].focus()},this.autocomplete=M.Autocomplete.init(this.$input[0],this.options.autocompleteOptions)}},{key:"_setupInput",value:function(){this.$input=this.$el.find("input"),this.$input.length||(this.$input=i("<input></input>"),this.$el.append(this.$input)),this.$input.addClass("input")}},{key:"_setupLabel",value:function(){this.$label=this.$el.find("label"),this.$label.length&&this.$label.setAttribute("for",this.$input.attr("id"))}},{key:"_setPlaceholder",value:function(){void 0!==this.chipsData&&!this.chipsData.length&&this.options.placeholder?i(this.$input).prop("placeholder",this.options.placeholder):(void 0===this.chipsData||this.chipsData.length)&&this.options.secondaryPlaceholder&&i(this.$input).prop("placeholder",this.options.secondaryPlaceholder)}},{key:"_isValid",value:function(l){if(l.hasOwnProperty("tag")&&""!==l.tag){for(var r=!1,a=0;a<this.chipsData.length;a++)if(this.chipsData[a].tag===l.tag){r=!0;break}return!r}return!1}},{key:"addChip",value:function(l){if(this._isValid(l)&&!(this.chipsData.length>=this.options.limit)){var r=this._renderChip(l);this.$chips.add(r),this.chipsData.push(l),i(this.$input).before(r),this._setPlaceholder(),"function"==typeof this.options.onChipAdd&&this.options.onChipAdd.call(this,this.$el,r)}}},{key:"deleteChip",value:function(l){var r=this.$chips.eq(l);this.$chips.eq(l).remove(),this.$chips=this.$chips.filter(function(a){return 0<=i(a).index()}),this.chipsData.splice(l,1),this._setPlaceholder(),"function"==typeof this.options.onChipDelete&&this.options.onChipDelete.call(this,this.$el,r[0])}},{key:"selectChip",value:function(l){var r=this.$chips.eq(l);(this._selectedChip=r)[0].focus(),"function"==typeof this.options.onChipSelect&&this.options.onChipSelect.call(this,this.$el,r[0])}}],[{key:"init",value:function(l,r){return _get(F.__proto__||Object.getPrototypeOf(F),"init",this).call(this,this,l,r)}},{key:"getInstance",value:function(l){return(l.jquery?l[0]:l).M_Chips}},{key:"_handleChipsKeydown",value:function(l){F._keydown=!0;var r=i(l.target).closest(".chips"),a=l.target&&r.length;if(!i(l.target).is("input, textarea")&&a){var u=r[0].M_Chips;if(8===l.keyCode||46===l.keyCode){l.preventDefault();var b=u.chipsData.length;if(u._selectedChip){var L=u._selectedChip.index();u.deleteChip(L),u._selectedChip=null,b=Math.max(L-1,0)}u.chipsData.length&&u.selectChip(b)}else if(37===l.keyCode){if(u._selectedChip){var W=u._selectedChip.index()-1;if(W<0)return;u.selectChip(W)}}else if(39===l.keyCode&&u._selectedChip){var R=u._selectedChip.index()+1;R>=u.chipsData.length?u.$input[0].focus():u.selectChip(R)}}}},{key:"_handleChipsKeyup",value:function(l){F._keydown=!1}},{key:"_handleChipsBlur",value:function(l){F._keydown||(i(l.target).closest(".chips")[0].M_Chips._selectedChip=null)}},{key:"defaults",get:function(){return D}}]),F);function F(l,r){_classCallCheck(this,F);var a=_possibleConstructorReturn(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,F,l,r));return(a.el.M_Chips=a).options=i.extend({},F.defaults,r),a.$el.addClass("chips input-field"),a.chipsData=[],a.$chips=i(),a._setupInput(),a.hasAutocomplete=0<Object.keys(a.options.autocompleteOptions).length,a.$input.attr("id")||a.$input.attr("id",M.guid()),a.options.data.length&&(a.chipsData=a.options.data,a._renderChips(a.chipsData)),a.hasAutocomplete&&a._setupAutocomplete(),a._setPlaceholder(),a._setupLabel(),a._setupEventHandlers(),a}K._keydown=!1,M.Chips=K,M.jQueryLoaded&&M.initializeJqueryWrapper(K,"chips","M_Chips"),i(document).ready(function(){i(document.body).on("click",".chip .close",function(){var l=i(this).closest(".chips");l.length&&l[0].M_Chips||i(this).closest(".chip").remove()})})}(cash),function(i){"use strict";var D={top:0,bottom:1/0,offset:0,onPositionChange:null},K=(_inherits(F,Component),_createClass(F,[{key:"destroy",value:function(){this.el.style.top=null,this._removePinClasses(),this._removeEventHandlers();var l=F._pushpins.indexOf(this);F._pushpins.splice(l,1)}},{key:"_setupEventHandlers",value:function(){document.addEventListener("scroll",F._updateElements)}},{key:"_removeEventHandlers",value:function(){document.removeEventListener("scroll",F._updateElements)}},{key:"_updatePosition",value:function(){var l=M.getDocumentScrollTop()+this.options.offset;this.options.top<=l&&this.options.bottom>=l&&!this.el.classList.contains("pinned")&&(this._removePinClasses(),this.el.style.top=this.options.offset+"px",this.el.classList.add("pinned"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pinned")),l<this.options.top&&!this.el.classList.contains("pin-top")&&(this._removePinClasses(),this.el.style.top=0,this.el.classList.add("pin-top"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-top")),l>this.options.bottom&&!this.el.classList.contains("pin-bottom")&&(this._removePinClasses(),this.el.classList.add("pin-bottom"),this.el.style.top=this.options.bottom-this.originalOffset+"px","function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-bottom"))}},{key:"_removePinClasses",value:function(){this.el.classList.remove("pin-top"),this.el.classList.remove("pinned"),this.el.classList.remove("pin-bottom")}}],[{key:"init",value:function(l,r){return _get(F.__proto__||Object.getPrototypeOf(F),"init",this).call(this,this,l,r)}},{key:"getInstance",value:function(l){return(l.jquery?l[0]:l).M_Pushpin}},{key:"_updateElements",value:function(){for(var l in F._pushpins)F._pushpins[l]._updatePosition()}},{key:"defaults",get:function(){return D}}]),F);function F(l,r){_classCallCheck(this,F);var a=_possibleConstructorReturn(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,F,l,r));return(a.el.M_Pushpin=a).options=i.extend({},F.defaults,r),a.originalOffset=a.el.offsetTop,F._pushpins.push(a),a._setupEventHandlers(),a._updatePosition(),a}K._pushpins=[],M.Pushpin=K,M.jQueryLoaded&&M.initializeJqueryWrapper(K,"pushpin","M_Pushpin")}(cash),function(i,D){"use strict";var K={direction:"top",hoverEnabled:!0,toolbarEnabled:!1};i.fn.reverse=[].reverse;var F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_FloatingActionButton=void 0}},{key:"_setupEventHandlers",value:function(){this._handleFABClickBound=this._handleFABClick.bind(this),this._handleOpenBound=this.open.bind(this),this._handleCloseBound=this.close.bind(this),this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.addEventListener("mouseenter",this._handleOpenBound),this.el.addEventListener("mouseleave",this._handleCloseBound)):this.el.addEventListener("click",this._handleFABClickBound)}},{key:"_removeEventHandlers",value:function(){this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.removeEventListener("mouseenter",this._handleOpenBound),this.el.removeEventListener("mouseleave",this._handleCloseBound)):this.el.removeEventListener("click",this._handleFABClickBound)}},{key:"_handleFABClick",value:function(){this.isOpen?this.close():this.open()}},{key:"_handleDocumentClick",value:function(r){i(r.target).closest(this.$menu).length||this.close()}},{key:"open",value:function(){this.isOpen||(this.options.toolbarEnabled?this._animateInToolbar():this._animateInFAB(),this.isOpen=!0)}},{key:"close",value:function(){this.isOpen&&(this.options.toolbarEnabled?(window.removeEventListener("scroll",this._handleCloseBound,!0),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),this._animateOutToolbar()):this._animateOutFAB(),this.isOpen=!1)}},{key:"_animateInFAB",value:function(){var r=this;this.$el.addClass("active");var a=0;this.$floatingBtnsReverse.each(function(u){D({targets:u,opacity:1,scale:[.4,1],translateY:[r.offsetY,0],translateX:[r.offsetX,0],duration:275,delay:a,easing:"easeInOutQuad"}),a+=40})}},{key:"_animateOutFAB",value:function(){var r=this;this.$floatingBtnsReverse.each(function(a){D.remove(a),D({targets:a,opacity:0,scale:.4,translateY:r.offsetY,translateX:r.offsetX,duration:175,easing:"easeOutQuad",complete:function(){r.$el.removeClass("active")}})})}},{key:"_animateInToolbar",value:function(){var r,a=this,u=window.innerWidth,b=window.innerHeight,L=this.el.getBoundingClientRect(),W=i('<div class="fab-backdrop"></div>'),R=this.$anchor.css("background-color");this.$anchor.append(W),this.offsetX=L.left-u/2+L.width/2,this.offsetY=b-L.bottom,r=u/W[0].clientWidth,this.btnBottom=L.bottom,this.btnLeft=L.left,this.btnWidth=L.width,this.$el.addClass("active"),this.$el.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+this.offsetX+"px)",transition:"none"}),this.$anchor.css({transform:"translateY("+-this.offsetY+"px)",transition:"none"}),W.css({"background-color":R}),setTimeout(function(){a.$el.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),a.$anchor.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout(function(){a.$el.css({overflow:"hidden","background-color":R}),W.css({transform:"scale("+r+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),a.$menu.children("li").children("a").css({opacity:1}),a._handleDocumentClickBound=a._handleDocumentClick.bind(a),window.addEventListener("scroll",a._handleCloseBound,!0),document.body.addEventListener("click",a._handleDocumentClickBound,!0)},100)},0)}},{key:"_animateOutToolbar",value:function(){var r=this,a=window.innerWidth,u=window.innerHeight,b=this.$el.find(".fab-backdrop"),L=this.$anchor.css("background-color");this.offsetX=this.btnLeft-a/2+this.btnWidth/2,this.offsetY=u-this.btnBottom,this.$el.removeClass("active"),this.$el.css({"background-color":"transparent",transition:"none"}),this.$anchor.css({transition:"none"}),b.css({transform:"scale(0)","background-color":L}),this.$menu.children("li").children("a").css({opacity:""}),setTimeout(function(){b.remove(),r.$el.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-r.offsetX+"px,0,0)"}),r.$anchor.css({overflow:"",transform:"translate3d(0,"+r.offsetY+"px,0)"}),setTimeout(function(){r.$el.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),r.$anchor.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})},20)},200)}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_FloatingActionButton}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));return(u.el.M_FloatingActionButton=u).options=i.extend({},l.defaults,a),u.isOpen=!1,u.$anchor=u.$el.children("a").first(),u.$menu=u.$el.children("ul").first(),u.$floatingBtns=u.$el.find("ul .btn-floating"),u.$floatingBtnsReverse=u.$el.find("ul .btn-floating").reverse(),u.offsetY=0,u.offsetX=0,u.$el.addClass("direction-"+u.options.direction),"top"===u.options.direction?u.offsetY=40:"right"===u.options.direction?u.offsetX=-40:"bottom"===u.options.direction?u.offsetY=-40:u.offsetX=40,u._setupEventHandlers(),u}M.FloatingActionButton=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"floatingActionButton","M_FloatingActionButton")}(cash,M.anime),function(i){"use strict";var D={autoClose:!1,format:"mmm dd, yyyy",parse:null,defaultDate:null,setDefaultDate:!1,disableWeekends:!1,disableDayFn:null,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,container:null,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok",previousMonth:"\u2039",nextMonth:"\u203a",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysAbbrev:["S","M","T","W","T","F","S"]},events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},K=(_inherits(F,Component),_createClass(F,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),i(this.modalEl).remove(),this.destroySelects(),this.el.M_Datepicker=void 0}},{key:"destroySelects",value:function(){var l=this.calendarEl.querySelector(".orig-select-year");l&&M.FormSelect.getInstance(l).destroy();var r=this.calendarEl.querySelector(".orig-select-month");r&&M.FormSelect.getInstance(r).destroy()}},{key:"_insertHTMLIntoDOM",value:function(){this.options.showClearBtn&&(i(this.clearBtn).css({visibility:""}),this.clearBtn.innerHTML=this.options.i18n.clear),this.doneBtn.innerHTML=this.options.i18n.done,this.cancelBtn.innerHTML=this.options.i18n.cancel,this.options.container?this.$modalEl.appendTo(this.options.container):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var l=this;this.modalEl.id="modal-"+this.id,this.modal=M.Modal.init(this.modalEl,{onCloseEnd:function(){l.isOpen=!1}})}},{key:"toString",value:function(l){var r=this;return l=l||this.options.format,F._isDate(this.date)?l.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g).map(function(a){return r.formats[a]?r.formats[a]():a}).join(""):""}},{key:"setDate",value:function(l,r){if(!l)return this.date=null,this._renderDateDisplay(),this.draw();if("string"==typeof l&&(l=new Date(Date.parse(l))),F._isDate(l)){var a=this.options.minDate,u=this.options.maxDate;F._isDate(a)&&l<a?l=a:F._isDate(u)&&u<l&&(l=u),this.date=new Date(l.getTime()),this._renderDateDisplay(),F._setToStartOfDay(this.date),this.gotoDate(this.date),r||"function"!=typeof this.options.onSelect||this.options.onSelect.call(this,this.date)}}},{key:"setInputValue",value:function(){this.el.value=this.toString(),this.$el.trigger("change",{firedBy:this})}},{key:"_renderDateDisplay",value:function(){var l=F._isDate(this.date)?this.date:new Date,r=this.options.i18n,a=r.weekdaysShort[l.getDay()],u=r.monthsShort[l.getMonth()],b=l.getDate();this.yearTextEl.innerHTML=l.getFullYear(),this.dateTextEl.innerHTML=a+", "+u+" "+b}},{key:"gotoDate",value:function(l){var r=!0;if(F._isDate(l)){if(this.calendars){var a=new Date(this.calendars[0].year,this.calendars[0].month,1),u=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),b=l.getTime();u.setMonth(u.getMonth()+1),u.setDate(u.getDate()-1),r=b<a.getTime()||u.getTime()<b}r&&(this.calendars=[{month:l.getMonth(),year:l.getFullYear()}]),this.adjustCalendars()}}},{key:"adjustCalendars",value:function(){this.calendars[0]=this.adjustCalendar(this.calendars[0]),this.draw()}},{key:"adjustCalendar",value:function(l){return l.month<0&&(l.year-=Math.ceil(Math.abs(l.month)/12),l.month+=12),11<l.month&&(l.year+=Math.floor(Math.abs(l.month)/12),l.month-=12),l}},{key:"nextMonth",value:function(){this.calendars[0].month++,this.adjustCalendars()}},{key:"prevMonth",value:function(){this.calendars[0].month--,this.adjustCalendars()}},{key:"render",value:function(l,r,a){var u=this.options,b=new Date,L=F._getDaysInMonth(l,r),W=new Date(l,r,1).getDay(),R=[],k=[];F._setToStartOfDay(b),0<u.firstDay&&(W-=u.firstDay)<0&&(W+=7);for(var N=0===r?11:r-1,I=11===r?0:r+1,x=0===r?l-1:l,S=11===r?l+1:l,A=F._getDaysInMonth(x,N),O=L+W,H=O;7<H;)H-=7;O+=7-H;for(var z=!1,v=0,tt=0;v<O;v++){var ft=new Date(l,r,v-W+1),Rt=!!F._isDate(this.date)&&F._compareDates(ft,this.date),lt=F._compareDates(ft,b),at=-1!==u.events.indexOf(ft.toDateString()),mt=v<W||L+W<=v,wt=v-W+1,qt=r,ae=l,ye=u.startRange&&F._compareDates(u.startRange,ft),he=u.endRange&&F._compareDates(u.endRange,ft),Te=u.startRange&&u.endRange&&u.startRange<ft&&ft<u.endRange;mt&&(ae=v<W?(wt=A+wt,qt=N,x):(wt-=L,qt=I,S));var Ne={day:wt,month:qt,year:ae,hasEvent:at,isSelected:Rt,isToday:lt,isDisabled:u.minDate&&ft<u.minDate||u.maxDate&&ft>u.maxDate||u.disableWeekends&&F._isWeekend(ft)||u.disableDayFn&&u.disableDayFn(ft),isEmpty:mt,isStartRange:ye,isEndRange:he,isInRange:Te,showDaysInNextAndPreviousMonths:u.showDaysInNextAndPreviousMonths};k.push(this.renderDay(Ne)),7==++tt&&(R.push(this.renderRow(k,u.isRTL,z)),tt=0,z=!(k=[]))}return this.renderTable(u,R,a)}},{key:"renderDay",value:function(l){var r=[],a="false";if(l.isEmpty){if(!l.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';r.push("is-outside-current-month"),r.push("is-selection-disabled")}return l.isDisabled&&r.push("is-disabled"),l.isToday&&r.push("is-today"),l.isSelected&&(r.push("is-selected"),a="true"),l.hasEvent&&r.push("has-event"),l.isInRange&&r.push("is-inrange"),l.isStartRange&&r.push("is-startrange"),l.isEndRange&&r.push("is-endrange"),'<td data-day="'+l.day+'" class="'+r.join(" ")+'" aria-selected="'+a+'"><button class="datepicker-day-button" type="button" data-year="'+l.year+'" data-month="'+l.month+'" data-day="'+l.day+'">'+l.day+"</button></td>"}},{key:"renderRow",value:function(l,r,a){return'<tr class="datepicker-row'+(a?" is-selected":"")+'">'+(r?l.reverse():l).join("")+"</tr>"}},{key:"renderTable",value:function(l,r,a){return'<div class="datepicker-table-wrapper"><table cellpadding="0" cellspacing="0" class="datepicker-table" role="grid" aria-labelledby="'+a+'">'+this.renderHead(l)+this.renderBody(r)+"</table></div>"}},{key:"renderHead",value:function(l){var r=void 0,a=[];for(r=0;r<7;r++)a.push('<th scope="col"><abbr title="'+this.renderDayName(l,r)+'">'+this.renderDayName(l,r,!0)+"</abbr></th>");return"<thead><tr>"+(l.isRTL?a.reverse():a).join("")+"</tr></thead>"}},{key:"renderBody",value:function(l){return"<tbody>"+l.join("")+"</tbody>"}},{key:"renderTitle",value:function(l,r,a,u,b,L){var W,R,N,k=void 0,I=void 0,x=this.options,S=a===x.minYear,A=a===x.maxYear,O='<div id="'+L+'" class="datepicker-controls" role="heading" aria-live="assertive">',H=!0,z=!0;for(I=[],k=0;k<12;k++)I.push('<option value="'+(a===b?k-r:12+k-r)+'"'+(k===u?' selected="selected"':"")+(S&&k<x.minMonth||A&&k>x.maxMonth?'disabled="disabled"':"")+">"+x.i18n.months[k]+"</option>");for(W='<select class="datepicker-select orig-select-month" tabindex="-1">'+I.join("")+"</select>",N=i.isArray(x.yearRange)?(k=x.yearRange[0],x.yearRange[1]+1):(k=a-x.yearRange,1+a+x.yearRange),I=[];k<N&&k<=x.maxYear;k++)k>=x.minYear&&I.push('<option value="'+k+'" '+(k===a?'selected="selected"':"")+">"+k+"</option>");return R='<select class="datepicker-select orig-select-year" tabindex="-1">'+I.join("")+"</select>",O+='<button class="month-prev'+(H?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/><path d="M0-.5h24v24H0z" fill="none"/></svg></button>',O+='<div class="selects-container">',O+=x.showMonthAfterYear?R+W:W+R,O+="</div>",S&&(0===u||x.minMonth>=u)&&(H=!1),A&&(11===u||x.maxMonth<=u)&&(z=!1),(O+='<button class="month-next'+(z?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/><path d="M0-.25h24v24H0z" fill="none"/></svg></button>')+"</div>"}},{key:"draw",value:function(l){if(this.isOpen||l){var r,a=this.options,u=a.minYear,b=a.maxYear,L=a.minMonth,W=a.maxMonth,R="";this._y<=u&&(this._y=u,!isNaN(L)&&this._m<L&&(this._m=L)),this._y>=b&&(this._y=b,!isNaN(W)&&this._m>W&&(this._m=W)),r="datepicker-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var k=0;k<1;k++)this._renderDateDisplay(),R+=this.renderTitle(this,k,this.calendars[k].year,this.calendars[k].month,this.calendars[0].year,r)+this.render(this.calendars[k].year,this.calendars[k].month,r);this.destroySelects(),this.calendarEl.innerHTML=R;var N=this.calendarEl.querySelector(".orig-select-year"),I=this.calendarEl.querySelector(".orig-select-month");M.FormSelect.init(N,{classes:"select-year",dropdownOptions:{container:document.body,constrainWidth:!1}}),M.FormSelect.init(I,{classes:"select-month",dropdownOptions:{container:document.body,constrainWidth:!1}}),N.addEventListener("change",this._handleYearChange.bind(this)),I.addEventListener("change",this._handleMonthChange.bind(this)),"function"==typeof this.options.onDraw&&this.options.onDraw(this)}}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleInputChangeBound=this._handleInputChange.bind(this),this._handleCalendarClickBound=this._handleCalendarClick.bind(this),this._finishSelectionBound=this._finishSelection.bind(this),this._handleMonthChange=this._handleMonthChange.bind(this),this._closeBound=this.close.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("change",this._handleInputChangeBound),this.calendarEl.addEventListener("click",this._handleCalendarClickBound),this.doneBtn.addEventListener("click",this._finishSelectionBound),this.cancelBtn.addEventListener("click",this._closeBound),this.options.showClearBtn&&(this._handleClearClickBound=this._handleClearClick.bind(this),this.clearBtn.addEventListener("click",this._handleClearClickBound))}},{key:"_setupVariables",value:function(){var l=this;this.$modalEl=i(F._template),this.modalEl=this.$modalEl[0],this.calendarEl=this.modalEl.querySelector(".datepicker-calendar"),this.yearTextEl=this.modalEl.querySelector(".year-text"),this.dateTextEl=this.modalEl.querySelector(".date-text"),this.options.showClearBtn&&(this.clearBtn=this.modalEl.querySelector(".datepicker-clear")),this.doneBtn=this.modalEl.querySelector(".datepicker-done"),this.cancelBtn=this.modalEl.querySelector(".datepicker-cancel"),this.formats={d:function(){return l.date.getDate()},dd:function(){var r=l.date.getDate();return(r<10?"0":"")+r},ddd:function(){return l.options.i18n.weekdaysShort[l.date.getDay()]},dddd:function(){return l.options.i18n.weekdays[l.date.getDay()]},m:function(){return l.date.getMonth()+1},mm:function(){var r=l.date.getMonth()+1;return(r<10?"0":"")+r},mmm:function(){return l.options.i18n.monthsShort[l.date.getMonth()]},mmmm:function(){return l.options.i18n.months[l.date.getMonth()]},yy:function(){return(""+l.date.getFullYear()).slice(2)},yyyy:function(){return l.date.getFullYear()}}}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("change",this._handleInputChangeBound),this.calendarEl.removeEventListener("click",this._handleCalendarClickBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(l){l.which===M.keys.ENTER&&(l.preventDefault(),this.open())}},{key:"_handleCalendarClick",value:function(l){if(this.isOpen){var r=i(l.target);r.hasClass("is-disabled")||(!r.hasClass("datepicker-day-button")||r.hasClass("is-empty")||r.parent().hasClass("is-disabled")?r.closest(".month-prev").length?this.prevMonth():r.closest(".month-next").length&&this.nextMonth():(this.setDate(new Date(l.target.getAttribute("data-year"),l.target.getAttribute("data-month"),l.target.getAttribute("data-day"))),this.options.autoClose&&this._finishSelection()))}}},{key:"_handleClearClick",value:function(){this.date=null,this.setInputValue(),this.close()}},{key:"_handleMonthChange",value:function(l){this.gotoMonth(l.target.value)}},{key:"_handleYearChange",value:function(l){this.gotoYear(l.target.value)}},{key:"gotoMonth",value:function(l){isNaN(l)||(this.calendars[0].month=parseInt(l,10),this.adjustCalendars())}},{key:"gotoYear",value:function(l){isNaN(l)||(this.calendars[0].year=parseInt(l,10),this.adjustCalendars())}},{key:"_handleInputChange",value:function(l){var r=void 0;l.firedBy!==this&&(r=this.options.parse?this.options.parse(this.el.value,this.options.format):new Date(Date.parse(this.el.value)),F._isDate(r)&&this.setDate(r))}},{key:"renderDayName",value:function(l,r,a){for(r+=l.firstDay;7<=r;)r-=7;return a?l.i18n.weekdaysAbbrev[r]:l.i18n.weekdays[r]}},{key:"_finishSelection",value:function(){this.setInputValue(),this.close()}},{key:"open",value:function(){if(!this.isOpen)return this.isOpen=!0,"function"==typeof this.options.onOpen&&this.options.onOpen.call(this),this.draw(),this.modal.open(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,"function"==typeof this.options.onClose&&this.options.onClose.call(this),this.modal.close(),this}}],[{key:"init",value:function(l,r){return _get(F.__proto__||Object.getPrototypeOf(F),"init",this).call(this,this,l,r)}},{key:"_isDate",value:function(l){return/Date/.test(Object.prototype.toString.call(l))&&!isNaN(l.getTime())}},{key:"_isWeekend",value:function(l){var r=l.getDay();return 0===r||6===r}},{key:"_setToStartOfDay",value:function(l){F._isDate(l)&&l.setHours(0,0,0,0)}},{key:"_getDaysInMonth",value:function(l,r){return[31,F._isLeapYear(l)?29:28,31,30,31,30,31,31,30,31,30,31][r]}},{key:"_isLeapYear",value:function(l){return l%4==0&&l%100!=0||l%400==0}},{key:"_compareDates",value:function(l,r){return l.getTime()===r.getTime()}},{key:"_setToStartOfDay",value:function(l){F._isDate(l)&&l.setHours(0,0,0,0)}},{key:"getInstance",value:function(l){return(l.jquery?l[0]:l).M_Datepicker}},{key:"defaults",get:function(){return D}}]),F);function F(l,r){_classCallCheck(this,F);var a=_possibleConstructorReturn(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,F,l,r));(a.el.M_Datepicker=a).options=i.extend({},F.defaults,r),r&&r.hasOwnProperty("i18n")&&"object"==typeof r.i18n&&(a.options.i18n=i.extend({},F.defaults.i18n,r.i18n)),a.options.minDate&&a.options.minDate.setHours(0,0,0,0),a.options.maxDate&&a.options.maxDate.setHours(0,0,0,0),a.id=M.guid(),a._setupVariables(),a._insertHTMLIntoDOM(),a._setupModal(),a._setupEventHandlers(),a.options.defaultDate||(a.options.defaultDate=new Date(Date.parse(a.el.value)));var u=a.options.defaultDate;return F._isDate(u)?a.options.setDefaultDate?(a.setDate(u,!0),a.setInputValue()):a.gotoDate(u):a.gotoDate(new Date),a.isOpen=!1,a}K._template=['<div class= "modal datepicker-modal">','<div class="modal-content datepicker-container">','<div class="datepicker-date-display">','<span class="year-text"></span>','<span class="date-text"></span>',"</div>",'<div class="datepicker-calendar-container">','<div class="datepicker-calendar"></div>','<div class="datepicker-footer">','<button class="btn-flat datepicker-clear waves-effect" style="visibility: hidden;" type="button"></button>','<div class="confirmation-btns">','<button class="btn-flat datepicker-cancel waves-effect" type="button"></button>','<button class="btn-flat datepicker-done waves-effect" type="button"></button>',"</div>","</div>","</div>","</div>","</div>"].join(""),M.Datepicker=K,M.jQueryLoaded&&M.initializeJqueryWrapper(K,"datepicker","M_Datepicker")}(cash),function(i){"use strict";var D={dialRadius:135,outerRadius:105,innerRadius:70,tickRadius:20,duration:350,container:null,defaultTime:"now",fromNow:0,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok"},autoClose:!1,twelveHour:!0,vibrate:!0,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onSelect:null},K=(_inherits(F,Component),_createClass(F,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),i(this.modalEl).remove(),this.el.M_Timepicker=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleClockClickStartBound=this._handleClockClickStart.bind(this),this._handleDocumentClickMoveBound=this._handleDocumentClickMove.bind(this),this._handleDocumentClickEndBound=this._handleDocumentClickEnd.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.plate.addEventListener("mousedown",this._handleClockClickStartBound),this.plate.addEventListener("touchstart",this._handleClockClickStartBound),i(this.spanHours).on("click",this.showView.bind(this,"hours")),i(this.spanMinutes).on("click",this.showView.bind(this,"minutes"))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(l){l.which===M.keys.ENTER&&(l.preventDefault(),this.open())}},{key:"_handleClockClickStart",value:function(l){l.preventDefault();var r=this.plate.getBoundingClientRect(),u=r.top;this.x0=r.left+this.options.dialRadius,this.y0=u+this.options.dialRadius,this.moved=!1;var b=F._Pos(l);this.dx=b.x-this.x0,this.dy=b.y-this.y0,this.setHand(this.dx,this.dy,!1),document.addEventListener("mousemove",this._handleDocumentClickMoveBound),document.addEventListener("touchmove",this._handleDocumentClickMoveBound),document.addEventListener("mouseup",this._handleDocumentClickEndBound),document.addEventListener("touchend",this._handleDocumentClickEndBound)}},{key:"_handleDocumentClickMove",value:function(l){l.preventDefault();var r=F._Pos(l),a=r.x-this.x0,u=r.y-this.y0;this.moved=!0,this.setHand(a,u,!1,!0)}},{key:"_handleDocumentClickEnd",value:function(l){var r=this;l.preventDefault(),document.removeEventListener("mouseup",this._handleDocumentClickEndBound),document.removeEventListener("touchend",this._handleDocumentClickEndBound);var a=F._Pos(l),u=a.x-this.x0,b=a.y-this.y0;this.moved&&u===this.dx&&b===this.dy&&this.setHand(u,b),"hours"===this.currentView?this.showView("minutes",this.options.duration/2):this.options.autoClose&&(i(this.minutesView).addClass("timepicker-dial-out"),setTimeout(function(){r.done()},this.options.duration/2)),"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,this.hours,this.minutes),document.removeEventListener("mousemove",this._handleDocumentClickMoveBound),document.removeEventListener("touchmove",this._handleDocumentClickMoveBound)}},{key:"_insertHTMLIntoDOM",value:function(){this.$modalEl=i(F._template),this.modalEl=this.$modalEl[0],this.modalEl.id="modal-"+this.id;var l=document.querySelector(this.options.container);this.options.container&&l?this.$modalEl.appendTo(l):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var l=this;this.modal=M.Modal.init(this.modalEl,{onOpenStart:this.options.onOpenStart,onOpenEnd:this.options.onOpenEnd,onCloseStart:this.options.onCloseStart,onCloseEnd:function(){"function"==typeof l.options.onCloseEnd&&l.options.onCloseEnd.call(l),l.isOpen=!1}})}},{key:"_setupVariables",value:function(){this.currentView="hours",this.vibrate=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null,this._canvas=this.modalEl.querySelector(".timepicker-canvas"),this.plate=this.modalEl.querySelector(".timepicker-plate"),this.hoursView=this.modalEl.querySelector(".timepicker-hours"),this.minutesView=this.modalEl.querySelector(".timepicker-minutes"),this.spanHours=this.modalEl.querySelector(".timepicker-span-hours"),this.spanMinutes=this.modalEl.querySelector(".timepicker-span-minutes"),this.spanAmPm=this.modalEl.querySelector(".timepicker-span-am-pm"),this.footer=this.modalEl.querySelector(".timepicker-footer"),this.amOrPm="PM"}},{key:"_pickerSetup",value:function(){var l=i('<button class="btn-flat timepicker-clear waves-effect" style="visibility: hidden;" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.clear+"</button>").appendTo(this.footer).on("click",this.clear.bind(this));this.options.showClearBtn&&l.css({visibility:""});var r=i('<div class="confirmation-btns"></div>');i('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.cancel+"</button>").appendTo(r).on("click",this.close.bind(this)),i('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.done+"</button>").appendTo(r).on("click",this.done.bind(this)),r.appendTo(this.footer)}},{key:"_clockSetup",value:function(){this.options.twelveHour&&(this.$amBtn=i('<div class="am-btn">AM</div>'),this.$pmBtn=i('<div class="pm-btn">PM</div>'),this.$amBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm),this.$pmBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm)),this._buildHoursView(),this._buildMinutesView(),this._buildSVGClock()}},{key:"_buildSVGClock",value:function(){var l=this.options.dialRadius,r=this.options.tickRadius,a=2*l,u=F._createSVGEl("svg");u.setAttribute("class","timepicker-svg"),u.setAttribute("width",a),u.setAttribute("height",a);var b=F._createSVGEl("g");b.setAttribute("transform","translate("+l+","+l+")");var L=F._createSVGEl("circle");L.setAttribute("class","timepicker-canvas-bearing"),L.setAttribute("cx",0),L.setAttribute("cy",0),L.setAttribute("r",4);var W=F._createSVGEl("line");W.setAttribute("x1",0),W.setAttribute("y1",0);var R=F._createSVGEl("circle");R.setAttribute("class","timepicker-canvas-bg"),R.setAttribute("r",r),b.appendChild(W),b.appendChild(R),b.appendChild(L),u.appendChild(b),this._canvas.appendChild(u),this.hand=W,this.bg=R,this.bearing=L,this.g=b}},{key:"_buildHoursView",value:function(){var l=i('<div class="timepicker-tick"></div>');if(this.options.twelveHour)for(var r=1;r<13;r+=1){var a=l.clone(),u=r/6*Math.PI,b=this.options.outerRadius;a.css({left:this.options.dialRadius+Math.sin(u)*b-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(u)*b-this.options.tickRadius+"px"}),a.html(0===r?"00":r),this.hoursView.appendChild(a[0])}else for(var L=0;L<24;L+=1){var W=l.clone(),R=L/6*Math.PI,k=0<L&&L<13?this.options.innerRadius:this.options.outerRadius;W.css({left:this.options.dialRadius+Math.sin(R)*k-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(R)*k-this.options.tickRadius+"px"}),W.html(0===L?"00":L),this.hoursView.appendChild(W[0])}}},{key:"_buildMinutesView",value:function(){for(var l=i('<div class="timepicker-tick"></div>'),r=0;r<60;r+=5){var a=l.clone(),u=r/30*Math.PI;a.css({left:this.options.dialRadius+Math.sin(u)*this.options.outerRadius-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(u)*this.options.outerRadius-this.options.tickRadius+"px"}),a.html(F._addLeadingZero(r)),this.minutesView.appendChild(a[0])}}},{key:"_handleAmPmClick",value:function(l){var r=i(l.target);this.amOrPm=r.hasClass("am-btn")?"AM":"PM",this._updateAmPmView()}},{key:"_updateAmPmView",value:function(){this.options.twelveHour&&(this.$amBtn.toggleClass("text-primary","AM"===this.amOrPm),this.$pmBtn.toggleClass("text-primary","PM"===this.amOrPm))}},{key:"_updateTimeFromInput",value:function(){var l=((this.el.value||this.options.defaultTime||"")+"").split(":");if(this.options.twelveHour&&void 0!==l[1]&&(this.amOrPm=0<l[1].toUpperCase().indexOf("AM")?"AM":"PM",l[1]=l[1].replace("AM","").replace("PM","")),"now"===l[0]){var r=new Date(+new Date+this.options.fromNow);l=[r.getHours(),r.getMinutes()],this.options.twelveHour&&(this.amOrPm=12<=l[0]&&l[0]<24?"PM":"AM")}this.hours=+l[0]||0,this.minutes=+l[1]||0,this.spanHours.innerHTML=this.hours,this.spanMinutes.innerHTML=F._addLeadingZero(this.minutes),this._updateAmPmView()}},{key:"showView",value:function(l,r){"minutes"===l&&i(this.hoursView).css("visibility");var a="hours"===l,u=a?this.hoursView:this.minutesView,b=a?this.minutesView:this.hoursView;this.currentView=l,i(this.spanHours).toggleClass("text-primary",a),i(this.spanMinutes).toggleClass("text-primary",!a),b.classList.add("timepicker-dial-out"),i(u).css("visibility","visible").removeClass("timepicker-dial-out"),this.resetClock(r),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){i(b).css("visibility","hidden")},this.options.duration)}},{key:"resetClock",value:function(l){var r=this.currentView,a=this[r],u="hours"===r,b=a*(Math.PI/(u?6:30)),L=u&&0<a&&a<13?this.options.innerRadius:this.options.outerRadius,W=Math.sin(b)*L,R=-Math.cos(b)*L,k=this;l?(i(this.canvas).addClass("timepicker-canvas-out"),setTimeout(function(){i(k.canvas).removeClass("timepicker-canvas-out"),k.setHand(W,R)},l)):this.setHand(W,R)}},{key:"setHand",value:function(l,r,a){var u=this,b=Math.atan2(l,-r),L="hours"===this.currentView,W=Math.PI/(L||a?6:30),R=Math.sqrt(l*l+r*r),k=L&&R<(this.options.outerRadius+this.options.innerRadius)/2,N=k?this.options.innerRadius:this.options.outerRadius;this.options.twelveHour&&(N=this.options.outerRadius),b<0&&(b=2*Math.PI+b);var I=Math.round(b/W);b=I*W,this.options.twelveHour?L?0===I&&(I=12):(a&&(I*=5),60===I&&(I=0)):L?(12===I&&(I=0),I=k?0===I?12:I:0===I?0:I+12):(a&&(I*=5),60===I&&(I=0)),this[this.currentView]!==I&&this.vibrate&&this.options.vibrate&&(this.vibrateTimer||(navigator[this.vibrate](10),this.vibrateTimer=setTimeout(function(){u.vibrateTimer=null},100))),this[this.currentView]=I,L?this.spanHours.innerHTML=I:this.spanMinutes.innerHTML=F._addLeadingZero(I);var x=Math.sin(b)*(N-this.options.tickRadius),S=-Math.cos(b)*(N-this.options.tickRadius),A=Math.sin(b)*N,O=-Math.cos(b)*N;this.hand.setAttribute("x2",x),this.hand.setAttribute("y2",S),this.bg.setAttribute("cx",A),this.bg.setAttribute("cy",O)}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this._updateTimeFromInput(),this.showView("hours"),this.modal.open())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.modal.close())}},{key:"done",value:function(l,r){var a=this.el.value,u=r?"":F._addLeadingZero(this.hours)+":"+F._addLeadingZero(this.minutes);this.time=u,!r&&this.options.twelveHour&&(u=u+" "+this.amOrPm),(this.el.value=u)!==a&&this.$el.trigger("change"),this.close(),this.el.focus()}},{key:"clear",value:function(){this.done(null,!0)}}],[{key:"init",value:function(l,r){return _get(F.__proto__||Object.getPrototypeOf(F),"init",this).call(this,this,l,r)}},{key:"_addLeadingZero",value:function(l){return(l<10?"0":"")+l}},{key:"_createSVGEl",value:function(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}},{key:"_Pos",value:function(l){return l.targetTouches&&1<=l.targetTouches.length?{x:l.targetTouches[0].clientX,y:l.targetTouches[0].clientY}:{x:l.clientX,y:l.clientY}}},{key:"getInstance",value:function(l){return(l.jquery?l[0]:l).M_Timepicker}},{key:"defaults",get:function(){return D}}]),F);function F(l,r){_classCallCheck(this,F);var a=_possibleConstructorReturn(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,F,l,r));return(a.el.M_Timepicker=a).options=i.extend({},F.defaults,r),a.id=M.guid(),a._insertHTMLIntoDOM(),a._setupModal(),a._setupVariables(),a._setupEventHandlers(),a._clockSetup(),a._pickerSetup(),a}K._template=['<div class= "modal timepicker-modal">','<div class="modal-content timepicker-container">','<div class="timepicker-digital-display">','<div class="timepicker-text-container">','<div class="timepicker-display-column">','<span class="timepicker-span-hours text-primary"></span>',":",'<span class="timepicker-span-minutes"></span>',"</div>",'<div class="timepicker-display-column timepicker-display-am-pm">','<div class="timepicker-span-am-pm"></div>',"</div>","</div>","</div>",'<div class="timepicker-analog-display">','<div class="timepicker-plate">','<div class="timepicker-canvas"></div>','<div class="timepicker-dial timepicker-hours"></div>','<div class="timepicker-dial timepicker-minutes timepicker-dial-out"></div>',"</div>",'<div class="timepicker-footer"></div>',"</div>","</div>","</div>"].join(""),M.Timepicker=K,M.jQueryLoaded&&M.initializeJqueryWrapper(K,"timepicker","M_Timepicker")}(cash),function(i){"use strict";var D={},K=(_inherits(F,Component),_createClass(F,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.CharacterCounter=void 0,this._removeCounter()}},{key:"_setupEventHandlers",value:function(){this._handleUpdateCounterBound=this.updateCounter.bind(this),this.el.addEventListener("focus",this._handleUpdateCounterBound,!0),this.el.addEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("focus",this._handleUpdateCounterBound,!0),this.el.removeEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_setupCounter",value:function(){this.counterEl=document.createElement("span"),i(this.counterEl).addClass("character-counter").css({float:"right","font-size":"12px",height:1}),this.$el.parent().append(this.counterEl)}},{key:"_removeCounter",value:function(){i(this.counterEl).remove()}},{key:"updateCounter",value:function(){var l=+this.$el.attr("data-length"),r=this.el.value.length;this.isValidLength=r<=l;var a=r;l&&(a+="/"+l,this._validateInput()),i(this.counterEl).html(a)}},{key:"_validateInput",value:function(){this.isValidLength&&this.isInvalid?(this.isInvalid=!1,this.$el.removeClass("invalid")):this.isValidLength||this.isInvalid||(this.isInvalid=!0,this.$el.removeClass("valid"),this.$el.addClass("invalid"))}}],[{key:"init",value:function(l,r){return _get(F.__proto__||Object.getPrototypeOf(F),"init",this).call(this,this,l,r)}},{key:"getInstance",value:function(l){return(l.jquery?l[0]:l).M_CharacterCounter}},{key:"defaults",get:function(){return D}}]),F);function F(l,r){_classCallCheck(this,F);var a=_possibleConstructorReturn(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,F,l,r));return(a.el.M_CharacterCounter=a).options=i.extend({},F.defaults,r),a.isInvalid=!1,a.isValidLength=!1,a._setupCounter(),a._setupEventHandlers(),a}M.CharacterCounter=K,M.jQueryLoaded&&M.initializeJqueryWrapper(K,"characterCounter","M_CharacterCounter")}(cash),function(i){"use strict";var D={duration:200,dist:-100,shift:0,padding:0,numVisible:5,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null},K=(_inherits(F,Component),_createClass(F,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Carousel=void 0}},{key:"_setupEventHandlers",value:function(){var l=this;this._handleCarouselTapBound=this._handleCarouselTap.bind(this),this._handleCarouselDragBound=this._handleCarouselDrag.bind(this),this._handleCarouselReleaseBound=this._handleCarouselRelease.bind(this),this._handleCarouselClickBound=this._handleCarouselClick.bind(this),void 0!==window.ontouchstart&&(this.el.addEventListener("touchstart",this._handleCarouselTapBound),this.el.addEventListener("touchmove",this._handleCarouselDragBound),this.el.addEventListener("touchend",this._handleCarouselReleaseBound)),this.el.addEventListener("mousedown",this._handleCarouselTapBound),this.el.addEventListener("mousemove",this._handleCarouselDragBound),this.el.addEventListener("mouseup",this._handleCarouselReleaseBound),this.el.addEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.addEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&(this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.$indicators.find(".indicator-item").each(function(a,u){a.addEventListener("click",l._handleIndicatorClickBound)}));var r=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=r.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){var l=this;void 0!==window.ontouchstart&&(this.el.removeEventListener("touchstart",this._handleCarouselTapBound),this.el.removeEventListener("touchmove",this._handleCarouselDragBound),this.el.removeEventListener("touchend",this._handleCarouselReleaseBound)),this.el.removeEventListener("mousedown",this._handleCarouselTapBound),this.el.removeEventListener("mousemove",this._handleCarouselDragBound),this.el.removeEventListener("mouseup",this._handleCarouselReleaseBound),this.el.removeEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.removeEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&this.$indicators.find(".indicator-item").each(function(r,a){r.removeEventListener("click",l._handleIndicatorClickBound)}),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleCarouselTap",value:function(l){"mousedown"===l.type&&i(l.target).is("img")&&l.preventDefault(),this.pressed=!0,this.dragged=!1,this.verticalDragged=!1,this.reference=this._xpos(l),this.referenceY=this._ypos(l),this.velocity=this.amplitude=0,this.frame=this.offset,this.timestamp=Date.now(),clearInterval(this.ticker),this.ticker=setInterval(this._trackBound,100)}},{key:"_handleCarouselDrag",value:function(l){var r=void 0,a=void 0,u=void 0;if(this.pressed)if(r=this._xpos(l),a=this._ypos(l),u=this.reference-r,Math.abs(this.referenceY-a)<30&&!this.verticalDragged)(2<u||u<-2)&&(this.dragged=!0,this.reference=r,this._scroll(this.offset+u));else{if(this.dragged)return l.preventDefault(),l.stopPropagation(),!1;this.verticalDragged=!0}if(this.dragged)return l.preventDefault(),l.stopPropagation(),!1}},{key:"_handleCarouselRelease",value:function(l){if(this.pressed)return this.pressed=!1,clearInterval(this.ticker),this.target=this.offset,(10<this.velocity||this.velocity<-10)&&(this.amplitude=.9*this.velocity,this.target=this.offset+this.amplitude),this.target=Math.round(this.target/this.dim)*this.dim,this.noWrap&&(this.target>=this.dim*(this.count-1)?this.target=this.dim*(this.count-1):this.target<0&&(this.target=0)),this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound),this.dragged&&(l.preventDefault(),l.stopPropagation()),!1}},{key:"_handleCarouselClick",value:function(l){if(this.dragged)return l.preventDefault(),l.stopPropagation(),!1;if(!this.options.fullWidth){var r=i(l.target).closest(".carousel-item").index();this._wrap(this.center)-r!=0&&(l.preventDefault(),l.stopPropagation()),this._cycleTo(r)}}},{key:"_handleIndicatorClick",value:function(l){l.stopPropagation();var r=i(l.target).closest(".indicator-item");r.length&&this._cycleTo(r.index())}},{key:"_handleResize",value:function(l){this.options.fullWidth?(this.itemWidth=this.$el.find(".carousel-item").first().innerWidth(),this.imageHeight=this.$el.find(".carousel-item.active").height(),this.dim=2*this.itemWidth+this.options.padding,this.offset=2*this.center*this.itemWidth,this.target=this.offset,this._setCarouselHeight(!0)):this._scroll()}},{key:"_setCarouselHeight",value:function(l){var r=this,a=this.$el.find(".carousel-item.active").length?this.$el.find(".carousel-item.active").first():this.$el.find(".carousel-item").first(),u=a.find("img").first();if(u.length)if(u[0].complete){var b=u.height();if(0<b)this.$el.css("height",b+"px");else{var L=u[0].naturalWidth,W=u[0].naturalHeight,R=this.$el.width()/L*W;this.$el.css("height",R+"px")}}else u.one("load",function(N,I){r.$el.css("height",N.offsetHeight+"px")});else if(!l){var k=a.height();this.$el.css("height",k+"px")}}},{key:"_xpos",value:function(l){return l.targetTouches&&1<=l.targetTouches.length?l.targetTouches[0].clientX:l.clientX}},{key:"_ypos",value:function(l){return l.targetTouches&&1<=l.targetTouches.length?l.targetTouches[0].clientY:l.clientY}},{key:"_wrap",value:function(l){return l>=this.count?l%this.count:l<0?this._wrap(this.count+l%this.count):l}},{key:"_track",value:function(){var l,r,a;r=(l=Date.now())-this.timestamp,this.timestamp=l,a=this.offset-this.frame,this.frame=this.offset,this.velocity=1e3*a/(1+r)*.8+.2*this.velocity}},{key:"_autoScroll",value:function(){var l=void 0,r=void 0;this.amplitude&&(l=Date.now()-this.timestamp,2<(r=this.amplitude*Math.exp(-l/this.options.duration))||r<-2?(this._scroll(this.target-r),requestAnimationFrame(this._autoScrollBound)):this._scroll(this.target))}},{key:"_scroll",value:function(l){var r=this;this.$el.hasClass("scrolling")||this.el.classList.add("scrolling"),null!=this.scrollingTimeout&&window.clearTimeout(this.scrollingTimeout),this.scrollingTimeout=window.setTimeout(function(){r.$el.removeClass("scrolling")},this.options.duration);var a,u,b,L,x,W=void 0,R=void 0,k=void 0,N=void 0,I=void 0,S=this.center,A=1/this.options.numVisible;if(this.offset="number"==typeof l?l:this.offset,this.center=Math.floor((this.offset+this.dim/2)/this.dim),L=-(b=(u=this.offset-this.center*this.dim)<0?1:-1)*u*2/this.dim,a=this.count>>1,x=this.options.fullWidth?(k="translateX(0)",1):(k="translateX("+(this.el.clientWidth-this.itemWidth)/2+"px) ",k+="translateY("+(this.el.clientHeight-this.itemHeight)/2+"px)",1-A*L),this.showIndicators){var O=this.center%this.count,H=this.$indicators.find(".indicator-item.active");H.index()!==O&&(H.removeClass("active"),this.$indicators.find(".indicator-item").eq(O)[0].classList.add("active"))}for((!this.noWrap||0<=this.center&&this.center<this.count)&&(R=this.images[this._wrap(this.center)],i(R).hasClass("active")||(this.$el.find(".carousel-item").removeClass("active"),R.classList.add("active")),this._updateItemStyle(R,x,0,k+" translateX("+-u/2+"px) translateX("+b*this.options.shift*L*W+"px) translateZ("+this.options.dist*L+"px)")),W=1;W<=a;++W)I=this.options.fullWidth?(N=this.options.dist,W===a&&u<0?1-L:1):(N=this.options.dist*(2*W+L*b),1-A*(2*W+L*b)),(!this.noWrap||this.center+W<this.count)&&(R=this.images[this._wrap(this.center+W)],this._updateItemStyle(R,I,-W,k+" translateX("+(this.options.shift+(this.dim*W-u)/2)+"px) translateZ("+N+"px)")),I=this.options.fullWidth?(N=this.options.dist,W===a&&0<u?1-L:1):(N=this.options.dist*(2*W-L*b),1-A*(2*W-L*b)),(!this.noWrap||0<=this.center-W)&&(R=this.images[this._wrap(this.center-W)],this._updateItemStyle(R,I,-W,k+" translateX("+((-this.dim*W-u)/2-this.options.shift)+"px) translateZ("+N+"px)"));(!this.noWrap||0<=this.center&&this.center<this.count)&&(R=this.images[this._wrap(this.center)],this._updateItemStyle(R,x,0,k+" translateX("+-u/2+"px) translateX("+b*this.options.shift*L+"px) translateZ("+this.options.dist*L+"px)"));var Rt=this.$el.find(".carousel-item").eq(this._wrap(this.center));S!==this.center&&"function"==typeof this.options.onCycleTo&&this.options.onCycleTo.call(this,Rt[0],this.dragged),"function"==typeof this.oneTimeCallback&&(this.oneTimeCallback.call(this,Rt[0],this.dragged),this.oneTimeCallback=null)}},{key:"_updateItemStyle",value:function(l,r,a,u){l.style[this.xform]=u,l.style.zIndex=a,l.style.opacity=r,l.style.visibility="visible"}},{key:"_cycleTo",value:function(l,r){var a=this.center%this.count-l;this.noWrap||(a<0?Math.abs(a+this.count)<Math.abs(a)&&(a+=this.count):0<a&&Math.abs(a-this.count)<a&&(a-=this.count)),this.target=this.dim*Math.round(this.offset/this.dim),a<0?this.target+=this.dim*Math.abs(a):0<a&&(this.target-=this.dim*a),"function"==typeof r&&(this.oneTimeCallback=r),this.offset!==this.target&&(this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound))}},{key:"next",value:function(l){void 0!==l&&!isNaN(l)||(l=1);var r=this.center+l;if(r>=this.count||r<0){if(this.noWrap)return;r=this._wrap(r)}this._cycleTo(r)}},{key:"prev",value:function(l){void 0!==l&&!isNaN(l)||(l=1);var r=this.center-l;if(r>=this.count||r<0){if(this.noWrap)return;r=this._wrap(r)}this._cycleTo(r)}},{key:"set",value:function(l,r){if(void 0!==l&&!isNaN(l)||(l=0),l>this.count||l<0){if(this.noWrap)return;l=this._wrap(l)}this._cycleTo(l,r)}}],[{key:"init",value:function(l,r){return _get(F.__proto__||Object.getPrototypeOf(F),"init",this).call(this,this,l,r)}},{key:"getInstance",value:function(l){return(l.jquery?l[0]:l).M_Carousel}},{key:"defaults",get:function(){return D}}]),F);function F(l,r){_classCallCheck(this,F);var a=_possibleConstructorReturn(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,F,l,r));return(a.el.M_Carousel=a).options=i.extend({},F.defaults,r),a.hasMultipleSlides=1<a.$el.find(".carousel-item").length,a.showIndicators=a.options.indicators&&a.hasMultipleSlides,a.noWrap=a.options.noWrap||!a.hasMultipleSlides,a.pressed=!1,a.dragged=!1,a.offset=a.target=0,a.images=[],a.itemWidth=a.$el.find(".carousel-item").first().innerWidth(),a.itemHeight=a.$el.find(".carousel-item").first().innerHeight(),a.dim=2*a.itemWidth+a.options.padding||1,a._autoScrollBound=a._autoScroll.bind(a),a._trackBound=a._track.bind(a),a.options.fullWidth&&(a.options.dist=0,a._setCarouselHeight(),a.showIndicators&&a.$el.find(".carousel-fixed-item").addClass("with-indicators")),a.$indicators=i('<ul class="indicators"></ul>'),a.$el.find(".carousel-item").each(function(u,b){if(a.images.push(u),a.showIndicators){var L=i('<li class="indicator-item"></li>');0===b&&L[0].classList.add("active"),a.$indicators.append(L)}}),a.showIndicators&&a.$el.append(a.$indicators),a.count=a.images.length,a.options.numVisible=Math.min(a.count,a.options.numVisible),a.xform="transform",["webkit","Moz","O","ms"].every(function(u){var b=u+"Transform";return void 0===document.body.style[b]||(a.xform=b,!1)}),a._setupEventHandlers(),a._scroll(a.offset),a}M.Carousel=K,M.jQueryLoaded&&M.initializeJqueryWrapper(K,"carousel","M_Carousel")}(cash),function(i){"use strict";var D={onOpen:void 0,onClose:void 0},K=(_inherits(F,Component),_createClass(F,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.TapTarget=void 0}},{key:"_setupEventHandlers",value:function(){this._handleDocumentClickBound=this._handleDocumentClick.bind(this),this._handleTargetClickBound=this._handleTargetClick.bind(this),this._handleOriginClickBound=this._handleOriginClick.bind(this),this.el.addEventListener("click",this._handleTargetClickBound),this.originEl.addEventListener("click",this._handleOriginClickBound);var l=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=l.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleTargetClickBound),this.originEl.removeEventListener("click",this._handleOriginClickBound),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleTargetClick",value:function(l){this.open()}},{key:"_handleOriginClick",value:function(l){this.close()}},{key:"_handleResize",value:function(l){this._calculatePositioning()}},{key:"_handleDocumentClick",value:function(l){i(l.target).closest(".tap-target-wrapper").length||(this.close(),l.preventDefault(),l.stopPropagation())}},{key:"_setup",value:function(){this.wrapper=this.$el.parent()[0],this.waveEl=i(this.wrapper).find(".tap-target-wave")[0],this.originEl=i(this.wrapper).find(".tap-target-origin")[0],this.contentEl=this.$el.find(".tap-target-content")[0],i(this.wrapper).hasClass(".tap-target-wrapper")||(this.wrapper=document.createElement("div"),this.wrapper.classList.add("tap-target-wrapper"),this.$el.before(i(this.wrapper)),this.wrapper.append(this.el)),this.contentEl||(this.contentEl=document.createElement("div"),this.contentEl.classList.add("tap-target-content"),this.$el.append(this.contentEl)),this.waveEl||(this.waveEl=document.createElement("div"),this.waveEl.classList.add("tap-target-wave"),this.originEl||(this.originEl=this.$origin.clone(!0,!0),this.originEl.addClass("tap-target-origin"),this.originEl.removeAttr("id"),this.originEl.removeAttr("style"),this.originEl=this.originEl[0],this.waveEl.append(this.originEl)),this.wrapper.append(this.waveEl))}},{key:"_calculatePositioning",value:function(){var l="fixed"===this.$origin.css("position");if(!l)for(var r=this.$origin.parents(),a=0;a<r.length&&!(l="fixed"==i(r[a]).css("position"));a++);var u=this.$origin.outerWidth(),b=this.$origin.outerHeight(),L=l?this.$origin.offset().top-M.getDocumentScrollTop():this.$origin.offset().top,W=l?this.$origin.offset().left-M.getDocumentScrollLeft():this.$origin.offset().left,R=window.innerWidth,k=window.innerHeight,N=R/2,I=k/2,x=W<=N,S=N<W,A=L<=I,O=I<L,H=.25*R<=W&&W<=.75*R,z=this.$el.outerWidth(),v=this.$el.outerHeight(),tt=L+b/2-v/2,ft=W+u/2-z/2,Rt=l?"fixed":"absolute",lt=H?z:z/2+u,at=v/2,mt=A?v/2:0,wt=x&&!H?z/2-u:0,qt=u,ae=O?"bottom":"top",ye=2*u,he=ye,Te=v/2-he/2,Ne=z/2-ye/2,Ot={};Ot.top=A?tt+"px":"",Ot.right=S?R-ft-z+"px":"",Ot.bottom=O?k-tt-v+"px":"",Ot.left=x?ft+"px":"",Ot.position=Rt,i(this.wrapper).css(Ot),i(this.contentEl).css({width:lt+"px",height:at+"px",top:mt+"px",right:"0px",bottom:"0px",left:wt+"px",padding:qt+"px",verticalAlign:ae}),i(this.waveEl).css({top:Te+"px",left:Ne+"px",width:ye+"px",height:he+"px"})}},{key:"open",value:function(){this.isOpen||("function"==typeof this.options.onOpen&&this.options.onOpen.call(this,this.$origin[0]),this.isOpen=!0,this.wrapper.classList.add("open"),document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound))}},{key:"close",value:function(){this.isOpen&&("function"==typeof this.options.onClose&&this.options.onClose.call(this,this.$origin[0]),this.isOpen=!1,this.wrapper.classList.remove("open"),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound))}}],[{key:"init",value:function(l,r){return _get(F.__proto__||Object.getPrototypeOf(F),"init",this).call(this,this,l,r)}},{key:"getInstance",value:function(l){return(l.jquery?l[0]:l).M_TapTarget}},{key:"defaults",get:function(){return D}}]),F);function F(l,r){_classCallCheck(this,F);var a=_possibleConstructorReturn(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,F,l,r));return(a.el.M_TapTarget=a).options=i.extend({},F.defaults,r),a.isOpen=!1,a.$origin=i("#"+a.$el.attr("data-target")),a._setup(),a._calculatePositioning(),a._setupEventHandlers(),a}M.TapTarget=K,M.jQueryLoaded&&M.initializeJqueryWrapper(K,"tapTarget","M_TapTarget")}(cash),function(i){"use strict";var D={classes:"",dropdownOptions:{}},K=(_inherits(F,Component),_createClass(F,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_FormSelect=void 0}},{key:"_setupEventHandlers",value:function(){var l=this;this._handleSelectChangeBound=this._handleSelectChange.bind(this),this._handleOptionClickBound=this._handleOptionClick.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),i(this.dropdownOptions).find("li:not(.optgroup)").each(function(r){r.addEventListener("click",l._handleOptionClickBound)}),this.el.addEventListener("change",this._handleSelectChangeBound),this.input.addEventListener("click",this._handleInputClickBound)}},{key:"_removeEventHandlers",value:function(){var l=this;i(this.dropdownOptions).find("li:not(.optgroup)").each(function(r){r.removeEventListener("click",l._handleOptionClickBound)}),this.el.removeEventListener("change",this._handleSelectChangeBound),this.input.removeEventListener("click",this._handleInputClickBound)}},{key:"_handleSelectChange",value:function(l){this._setValueToInput()}},{key:"_handleOptionClick",value:function(l){l.preventDefault();var r=i(l.target).closest("li")[0],a=r.id;if(!i(r).hasClass("disabled")&&!i(r).hasClass("optgroup")&&a.length){var u=!0;if(this.isMultiple){var b=i(this.dropdownOptions).find("li.disabled.selected");b.length&&(b.removeClass("selected"),b.find('input[type="checkbox"]').prop("checked",!1),this._toggleEntryFromArray(b[0].id)),u=this._toggleEntryFromArray(a)}else i(this.dropdownOptions).find("li").removeClass("selected"),i(r).toggleClass("selected",u);i(this._valueDict[a].el).prop("selected")!==u&&(i(this._valueDict[a].el).prop("selected",u),this.$el.trigger("change"))}l.stopPropagation()}},{key:"_handleInputClick",value:function(){this.dropdown&&this.dropdown.isOpen&&(this._setValueToInput(),this._setSelectedStates())}},{key:"_setupDropdown",value:function(){var l=this;this.wrapper=document.createElement("div"),i(this.wrapper).addClass("select-wrapper "+this.options.classes),this.$el.before(i(this.wrapper)),this.wrapper.appendChild(this.el),this.el.disabled&&this.wrapper.classList.add("disabled"),this.$selectOptions=this.$el.children("option, optgroup"),this.dropdownOptions=document.createElement("ul"),this.dropdownOptions.id="select-options-"+M.guid(),i(this.dropdownOptions).addClass("dropdown-content select-dropdown "+(this.isMultiple?"multiple-select-dropdown":"")),this.$selectOptions.length&&this.$selectOptions.each(function(u){var b;if(i(u).is("option"))b=l.isMultiple?l._appendOptionWithIcon(l.$el,u,"multiple"):l._appendOptionWithIcon(l.$el,u),l._addOptionToValueDict(u,b);else if(i(u).is("optgroup")){var L=i(u).children("option");i(l.dropdownOptions).append(i('<li class="optgroup"><span>'+u.getAttribute("label")+"</span></li>")[0]),L.each(function(W){var R=l._appendOptionWithIcon(l.$el,W,"optgroup-option");l._addOptionToValueDict(W,R)})}}),this.$el.after(this.dropdownOptions),this.input=document.createElement("input"),i(this.input).addClass("select-dropdown dropdown-trigger"),this.input.setAttribute("type","text"),this.input.setAttribute("readonly","true"),this.input.setAttribute("data-target",this.dropdownOptions.id),this.el.disabled&&i(this.input).prop("disabled","true"),this.$el.before(this.input),this._setValueToInput();var r=i('<svg class="caret" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');if(this.$el.before(r[0]),!this.el.disabled){var a=i.extend({},this.options.dropdownOptions);a.onOpenEnd=function(u){var b=i(l.dropdownOptions).find(".selected").first();if(b.length&&(M.keyDown=!0,l.dropdown.focusedIndex=b.index(),l.dropdown._focusFocusedItem(),M.keyDown=!1,l.dropdown.isScrollable)){var L=b[0].getBoundingClientRect().top-l.dropdownOptions.getBoundingClientRect().top;l.dropdownOptions.scrollTop=L-=l.dropdownOptions.clientHeight/2}},this.isMultiple&&(a.closeOnClick=!1),this.dropdown=M.Dropdown.init(this.input,a)}this._setSelectedStates()}},{key:"_addOptionToValueDict",value:function(l,r){var a=Object.keys(this._valueDict).length,u=this.dropdownOptions.id+a,b={};r.id=u,b.el=l,b.optionEl=r,this._valueDict[u]=b}},{key:"_removeDropdown",value:function(){i(this.wrapper).find(".caret").remove(),i(this.input).remove(),i(this.dropdownOptions).remove(),i(this.wrapper).before(this.$el),i(this.wrapper).remove()}},{key:"_appendOptionWithIcon",value:function(l,r,a){var u=r.disabled?"disabled ":"",b="optgroup-option"===a?"optgroup-option ":"",L=this.isMultiple?'<label><input type="checkbox"'+u+'"/><span>'+r.innerHTML+"</span></label>":r.innerHTML,W=i("<li></li>"),R=i("<span></span>");R.html(L),W.addClass(u+" "+b),W.append(R);var k=r.getAttribute("data-icon");if(k){var N=i('<img alt="" src="'+k+'">');W.prepend(N)}return i(this.dropdownOptions).append(W[0]),W[0]}},{key:"_toggleEntryFromArray",value:function(l){var r=!this._keysSelected.hasOwnProperty(l),a=i(this._valueDict[l].optionEl);return r?this._keysSelected[l]=!0:delete this._keysSelected[l],a.toggleClass("selected",r),a.find('input[type="checkbox"]').prop("checked",r),a.prop("selected",r),r}},{key:"_setValueToInput",value:function(){var l=[];if(this.$el.find("option").each(function(a){if(i(a).prop("selected")){var u=i(a).text();l.push(u)}}),!l.length){var r=this.$el.find("option:disabled").eq(0);r.length&&""===r[0].value&&l.push(r.text())}this.input.value=l.join(", ")}},{key:"_setSelectedStates",value:function(){for(var l in this._keysSelected={},this._valueDict){var r=this._valueDict[l],a=i(r.el).prop("selected");i(r.optionEl).find('input[type="checkbox"]').prop("checked",a),a?(this._activateOption(i(this.dropdownOptions),i(r.optionEl)),this._keysSelected[l]=!0):i(r.optionEl).removeClass("selected")}}},{key:"_activateOption",value:function(l,r){r&&(this.isMultiple||l.find("li.selected").removeClass("selected"),i(r).addClass("selected"))}},{key:"getSelectedValues",value:function(){var l=[];for(var r in this._keysSelected)l.push(this._valueDict[r].el.value);return l}}],[{key:"init",value:function(l,r){return _get(F.__proto__||Object.getPrototypeOf(F),"init",this).call(this,this,l,r)}},{key:"getInstance",value:function(l){return(l.jquery?l[0]:l).M_FormSelect}},{key:"defaults",get:function(){return D}}]),F);function F(l,r){_classCallCheck(this,F);var a=_possibleConstructorReturn(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,F,l,r));return a.$el.hasClass("browser-default")?_possibleConstructorReturn(a):((a.el.M_FormSelect=a).options=i.extend({},F.defaults,r),a.isMultiple=a.$el.prop("multiple"),a.el.tabIndex=-1,a._keysSelected={},a._valueDict={},a._setupDropdown(),a._setupEventHandlers(),a)}M.FormSelect=K,M.jQueryLoaded&&M.initializeJqueryWrapper(K,"formSelect","M_FormSelect")}(cash),function(i,D){"use strict";var K={},F=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeThumb(),this.el.M_Range=void 0}},{key:"_setupEventHandlers",value:function(){this._handleRangeChangeBound=this._handleRangeChange.bind(this),this._handleRangeMousedownTouchstartBound=this._handleRangeMousedownTouchstart.bind(this),this._handleRangeInputMousemoveTouchmoveBound=this._handleRangeInputMousemoveTouchmove.bind(this),this._handleRangeMouseupTouchendBound=this._handleRangeMouseupTouchend.bind(this),this._handleRangeBlurMouseoutTouchleaveBound=this._handleRangeBlurMouseoutTouchleave.bind(this),this.el.addEventListener("change",this._handleRangeChangeBound),this.el.addEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.addEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.addEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("change",this._handleRangeChangeBound),this.el.removeEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_handleRangeChange",value:function(){i(this.value).html(this.$el.val()),i(this.thumb).hasClass("active")||this._showRangeBubble();var r=this._calcRangeOffset();i(this.thumb).addClass("active").css("left",r+"px")}},{key:"_handleRangeMousedownTouchstart",value:function(r){if(i(this.value).html(this.$el.val()),this._mousedown=!0,this.$el.addClass("active"),i(this.thumb).hasClass("active")||this._showRangeBubble(),"input"!==r.type){var a=this._calcRangeOffset();i(this.thumb).addClass("active").css("left",a+"px")}}},{key:"_handleRangeInputMousemoveTouchmove",value:function(){if(this._mousedown){i(this.thumb).hasClass("active")||this._showRangeBubble();var r=this._calcRangeOffset();i(this.thumb).addClass("active").css("left",r+"px"),i(this.value).html(this.$el.val())}}},{key:"_handleRangeMouseupTouchend",value:function(){this._mousedown=!1,this.$el.removeClass("active")}},{key:"_handleRangeBlurMouseoutTouchleave",value:function(){if(!this._mousedown){var r=7+parseInt(this.$el.css("padding-left"))+"px";i(this.thumb).hasClass("active")&&(D.remove(this.thumb),D({targets:this.thumb,height:0,width:0,top:10,easing:"easeOutQuad",marginLeft:r,duration:100})),i(this.thumb).removeClass("active")}}},{key:"_setupThumb",value:function(){this.thumb=document.createElement("span"),this.value=d
1ocument.createElement("span"),i(this.thumb).addClass("thumb"),i(this.value).addClass("value"),i(this.thumb).append(this.value),this.$el.after(this.thumb)}},{key:"_removeThumb",value:function(){i(this.thumb).remove()}},{key:"_showRangeBubble",value:function(){var r=-7+parseInt(i(this.thumb).parent().css("padding-left"))+"px";D.remove(this.thumb),D({targets:this.thumb,height:30,width:30,top:-30,marginLeft:r,duration:300,easing:"easeOutQuint"})}},{key:"_calcRangeOffset",value:function(){var r=this.$el.width()-15,a=parseFloat(this.$el.attr("max"))||100,u=parseFloat(this.$el.attr("min"))||0;return(parseFloat(this.$el.val())-u)/(a-u)*r}}],[{key:"init",value:function(r,a){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,r,a)}},{key:"getInstance",value:function(r){return(r.jquery?r[0]:r).M_Range}},{key:"defaults",get:function(){return K}}]),l);function l(r,a){_classCallCheck(this,l);var u=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,r,a));return(u.el.M_Range=u).options=i.extend({},l.defaults,a),u._mousedown=!1,u._setupThumb(),u._setupEventHandlers(),u}M.Range=F,M.jQueryLoaded&&M.initializeJqueryWrapper(F,"range","M_Range"),F.init(i("input[type=range]"))}(cash,M.anime),function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){var D;i.extend(i.fn,{validate:function(l){if(this.length){var r=i.data(this[0],"validator");return r||(this.attr("novalidate","novalidate"),r=new i.validator(l,this[0]),i.data(this[0],"validator",r),r.settings.onsubmit&&(this.on("click.validate",":submit",function(a){r.submitButton=a.currentTarget,i(this).hasClass("cancel")&&(r.cancelSubmit=!0),void 0!==i(this).attr("formnovalidate")&&(r.cancelSubmit=!0)}),this.on("submit.validate",function(a){function u(){var b,L;return r.submitButton&&(r.settings.submitHandler||r.formSubmitted)&&(b=i("<input type='hidden'/>").attr("name",r.submitButton.name).val(i(r.submitButton).val()).appendTo(r.currentForm)),!(r.settings.submitHandler&&!r.settings.debug)||(L=r.settings.submitHandler.call(r,r.currentForm,a),b&&b.remove(),void 0!==L&&L)}return r.settings.debug&&a.preventDefault(),r.cancelSubmit?(r.cancelSubmit=!1,u()):r.form()?r.pendingRequest?!(r.formSubmitted=!0):u():(r.focusInvalid(),!1)})),r)}l&&l.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var l,r,a;return i(this[0]).is("form")?l=this.validate().form():(a=[],l=!0,r=i(this[0].form).validate(),this.each(function(){(l=r.element(this)&&l)||(a=a.concat(r.errorList))}),r.errorList=a),l},rules:function(l,r){var a,u,b,L,W,R,k=this[0],N=void 0!==this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=k&&(!k.form&&N&&(k.form=this.closest("form")[0],k.name=this.attr("name")),null!=k.form)){if(l)switch(u=(a=i.data(k.form,"validator").settings).rules,b=i.validator.staticRules(k),l){case"add":i.extend(b,i.validator.normalizeRule(r)),delete b.messages,u[k.name]=b,r.messages&&(a.messages[k.name]=i.extend(a.messages[k.name],r.messages));break;case"remove":return r?(R={},i.each(r.split(/\s/),function(I,x){R[x]=b[x],delete b[x]}),R):(delete u[k.name],b)}return(L=i.validator.normalizeRules(i.extend({},i.validator.classRules(k),i.validator.attributeRules(k),i.validator.dataRules(k),i.validator.staticRules(k)),k)).required&&(W=L.required,delete L.required,L=i.extend({required:W},L)),L.remote&&(W=L.remote,delete L.remote,L=i.extend(L,{remote:W})),L}}}),i.extend(i.expr.pseudos||i.expr[":"],{blank:function(l){return!i.trim(""+i(l).val())},filled:function(l){var r=i(l).val();return null!==r&&!!i.trim(""+r)},unchecked:function(l){return!i(l).prop("checked")}}),i.validator=function(l,r){this.settings=i.extend(!0,{},i.validator.defaults,l),this.currentForm=r,this.init()},i.validator.format=function(l,r){return 1===arguments.length?function(){var a=i.makeArray(arguments);return a.unshift(l),i.validator.format.apply(this,a)}:(void 0===r||(2<arguments.length&&r.constructor!==Array&&(r=i.makeArray(arguments).slice(1)),r.constructor!==Array&&(r=[r]),i.each(r,function(a,u){l=l.replace(new RegExp("\\{"+a+"\\}","g"),function(){return u})})),l)},i.extend(i.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:i([]),errorLabelContainer:i([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(l){this.lastActive=l,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,l,this.settings.errorClass,this.settings.val
1idClass),this.hideThese(this.errorsFor(l)))},onfocusout:function(l){this.checkable(l)||!(l.name in this.submitted)&&this.optional(l)||this.element(l)},onkeyup:function(l,r){9===r.which&&""===this.elementValue(l)||-1!==i.inArray(r.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(l.name in this.submitted||l.name in this.invalid)&&this.element(l)},onclick:function(l){l.name in this.submitted?this.element(l):l.parentNode.name in this.submitted&&this.element(l.parentNode)},highlight:function(l,r,a){"radio"===l.type?this.findByName(l.name).addClass(r).removeClass(a):i(l).addClass(r).removeClass(a)},unhighlight:function(l,r,a){"radio"===l.type?this.findByName(l.name).removeClass(r).addClass(a):i(l).removeClass(r).addClass(a)}},setDefaults:function(l){i.extend(i.validator.defaults,l)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:i.validator.format("Please enter no more than {0} characters."),minlength:i.validator.format("Please enter at least {0} characters."),rangelength:i.validator.format("Please enter a value between {0} and {1} characters long."),range:i.validator.format("Please enter a value between {0} and {1}."),max:i.validator.format("Please enter a value less than or equal to {0}."),min:i.validator.format("Please enter a value greater than or equal to {0}."),step:i.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=i(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||i(this.currentForm),this.containers=i(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var l,r=this.currentForm,a=this.groups={};function u(b){var L=void 0!==i(this).attr("contenteditable")&&"false"!==i(this).attr("contenteditable");if(!this.form&&L&&(this.form=i(this).closest("form")[0],this.name=i(this).attr("name")),r===this.form){var W=i.data(this.form,"validator"),R="on"+b.type.replace(/^validate/,""),k=W.settings;k[R]&&!i(this).is(k.ignore)&&k[R].call(W,this,b)}}i.each(this.settings.groups,function(b,L){"string"==typeof L&&(L=L.split(/\s/)),i.each(L,function(W,R){a[R]=b})}),i.each(l=this.settings.rules,function(b,L){l[b]=i.validator.normalizeRule(L)}),i(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",u).on("click.validate","select, option, [type='radio'], [type='checkbox']",u),this.settings.invalidHandler&&i(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),i.extend(this.submitted,this.errorMap),this.invalid=i.extend({},this.errorMap),this.valid()||i(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var l=0,r=this.currentElements=this.elements();r[l];l++)this.check(r[l]);return this.valid()},element:function(l){var r,a,u=this.clean(l),b=this.validationTargetFor(u),L=this,W=!0;return void 0===b?delete this.invalid[u.name]:(this.prepareElement(b),this.currentElements=i(b),(a=this.groups[b.n
1ame])&&i.each(this.groups,function(R,k){k===a&&R!==b.name&&(u=L.validationTargetFor(L.clean(L.findByName(R))))&&u.name in L.invalid&&(L.currentElements.push(u),W=L.check(u)&&W)}),r=!1!==this.check(b),W=W&&r,this.invalid[b.name]=!r,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i(l).attr("aria-invalid",!r)),W},showErrors:function(l){if(l){var r=this;i.extend(this.errorMap,l),this.errorList=i.map(this.errorMap,function(a,u){return{message:a,element:r.findByName(u)[0]}}),this.successList=i.grep(this.successList,function(a){return!(a.name in l)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){i.fn.resetForm&&i(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var l=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(l)},resetElements:function(l){var r;if(this.settings.unhighlight)for(r=0;l[r];r++)this.settings.unhighlight.call(this,l[r],this.settings.errorClass,""),this.findByName(l[r].name).removeClass(this.settings.validClass);else l.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(l){var r,a=0;for(r in l)null!=l[r]&&!1!==l[r]&&a++;return a},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(l){l.not(this.containers).text(""),this.addWrapper(l).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{i(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(l){}},findLastActive:function(){var l=this.lastActive;return l&&1===i.grep(this.errorList,function(r){return r.element.name===l.name}).length&&l},elements:function(){var l=this,r={};return i(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var a=this.name||i(this).attr("name"),u=void 0!==i(this).attr("contenteditable")&&"false"!==i(this).attr("contenteditable");return!a&&l.settings.debug&&window.console&&console.error("%o has no name assigned",this),u&&(this.form=i(this).closest("form")[0],this.name=a),this.form===l.currentForm&&!(a in r||!l.objectLength(i(this).rules()))&&(r[a]=!0)})},clean:function(l){return i(l)[0]},errors:function(){var l=this.settings.errorClass.split(" ").join(".");return i(this.settings.errorElement+"."+l,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=i([]),this.toHide=i([])},reset:function(){this.resetInternals(),this.currentElements=i([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(l){this.reset(),this.toHide=this.errorsFor(l)},elementValue:function(l){var r,a,u=i(l),b=l.type,L=void 0!==u.attr("contenteditable")&&"false"!==u.attr("contenteditable");return"radio"===b||"checkbox"===b?this.findByName(l.name).filter(":checked").val():"number"===b&&void 0!==l.validity?l.validity.badInput?"NaN":u.val():(r=L?u.text():u.val(),"file"===b?"C:\\fakepath\\"===r.substr(0,12)?r.substr(12):0<=(a=r.lastIndexOf("/"))||0<=(a=r.lastIndexOf("\\"))?r.substr(a+1):r:"string"==typeof r?r.replace(/\r/g,""):r)},check:function(l){l=this.validationTargetFor(this.clean(l));var r,a,u,b,L=i(l).rules(),W=i.map(L,function(N,I){return I}).length,R=!1,k=this.elementValue(l);for(a in"function"==typeof L.normalizer?b=L.normalizer:"function"==typeof this.settings.normalizer&&(b=this.settings.normalizer),b&&(k=b.call(l,k),delete L.normalizer),L){u={method:a,parameters:L[a]};try{if("dependency-mismatch"===(r=i.validator.methods[a].call(this,k,l,u.parameters))&&1===W){R=!0;continue}if(R=!1,"pending"===r)return void(this.toHide=this.toHide.not(this.errorsFor(l)));if(!r)return this.formatAndAdd(l,u),!1}catch(N){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+l.id+", check the '"+u.method+"' method.",N),N instanceof TypeError&&(N.message+=". Exception occurred when checking element "+l.id+", check the '"+u.method+"' method."),N}}if(!R)return this.objectLength(L)&&this.successList.push(l),!0},customDataMessage:function(l,r){return i(l).data("msg"+r.charAt(0).toUpperCase()+r.substring(1).toLowerCase())||i(l).data("msg")},customMessage:function(l,r){var a=this.settings.messages[l];return a&&(a.constructor===String?a:a[r])},findDefined:function(){for(var l=0;l<arguments.length;l++)if(void 0!==arguments[l])return arguments[l]},defaultMessage:function(l,r){"string"==typeof r&&(r={method:r});var a=this.findDefined(this.customMessage(l.name,r.method),this.customDataMessage(l,r.method),!this.settings.ignoreTitle&&l.title||void 0,i.val
1idator.messages[r.method],"<strong>Warning: No message defined for "+l.name+"</strong>"),u=/\$?\{(\d+)\}/g;return"function"==typeof a?a=a.call(this,r.parameters,l):u.test(a)&&(a=i.validator.format(a.replace(u,"{$1}"),r.parameters)),a},formatAndAdd:function(l,r){var a=this.defaultMessage(l,r);this.errorList.push({message:a,element:l,method:r.method}),this.errorMap[l.name]=a,this.submitted[l.name]=a},addWrapper:function(l){return this.settings.wrapper&&(l=l.add(l.parent(this.settings.wrapper))),l},defaultShowErrors:function(){var l,r,a;for(l=0;this.errorList[l];l++)a=this.errorList[l],this.settings.highlight&&this.settings.highlight.call(this,a.element,this.settings.errorClass,this.settings.validClass),this.showLabel(a.element,a.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(l=0;this.successList[l];l++)this.showLabel(this.successList[l]);if(this.settings.unhighlight)for(l=0,r=this.validElements();r[l];l++)this.settings.unhighlight.call(this,r[l],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return i(this.errorList).map(function(){return this.element})},showLabel:function(l,r){var a,u,b,L,W=this.errorsFor(l),R=this.idOrName(l),k=i(l).attr("aria-describedby");W.length?(W.removeClass(this.settings.validClass).addClass(this.settings.errorClass),W.html(r)):(a=W=i("<"+this.settings.errorElement+">").attr("id",R+"-error").addClass(this.settings.errorClass).html(r||""),this.settings.wrapper&&(a=W.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(a):this.settings.errorPlacement?this.settings.errorPlacement.call(this,a,i(l)):a.insertAfter(l),W.is("label")?W.attr("for",R):0===W.parents("label[for='"+this.escapeCssMeta(R)+"']").length&&(b=W.attr("id"),k?k.match(new RegExp("\\b"+this.escapeCssMeta(b)+"\\b"))||(k+=" "+b):k=b,i(l).attr("aria-describedby",k),(u=this.groups[l.name])&&i.each((L=this).groups,function(N,I){I===u&&i("[name='"+L.escapeCssMeta(N)+"']",L.currentForm).attr("aria-describedby",W.attr("id"))}))),!r&&this.settings.success&&(W.text(""),"string"==typeof this.settings.success?W.addClass(this.settings.success):this.settings.success(W,l)),this.toShow=this.toShow.add(W)},errorsFor:function(l){var r=this.escapeCssMeta(this.idOrName(l)),a=i(l).attr("aria-describedby"),u="label[for='"+r+"'], label[for='"+r+"'] *";return a&&(u=u+", #"+this.escapeCssMeta(a).replace(/\s+/g,", #")),this.errors().filter(u)},escapeCssMeta:function(l){return l.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(l){return this.groups[l.name]||(this.checkable(l)?l.name:l.id||l.name)},validationTargetFor:function(l){return this.checkable(l)&&(l=this.findByName(l.name)),i(l).not(this.settings.ignore)[0]},checkable:function(l){return/radio|checkbox/i.test(l.type)},findByName:function(l){return i(this.currentForm).find("[name='"+this.escapeCssMeta(l)+"']")},getLength:function(l,r){switch(r.nodeName.toLowerCase()){case"select":return i("option:selected",r).length;case"input":if(this.checkable(r))return this.findByName(r.name).filter(":checked").length}return l.length},depend:function(l,r){return!this.dependTypes[typeof l]||this.dependTypes[typeof l](l,r)},dependTypes:{boolean:function(l){return l},string:function(l,r){return!!i(l,r.form).length},function:function(l,r){return l(r)}},optional:function(l){var r=this.elementValue(l);return!i.validator.methods.required.call(this,r,l)&&"dependency-mismatch"},startRequest:function(l){this.pending[l.name]||(this.pendingRequest++,i(l).addClass(this.settings.pendingClass),this.pending[l.name]=!0)},stopRequest:function(l,r){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[l.name],i(l).removeClass(this.settings.pendingClass),r&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(i(this.currentForm).submit(),this.submitButton&&i("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!r&&0===this.pendingRequest&&this.formSubmitted&&(i(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(l,r){return r="string"==typeof r&&r||"remote",i.data(l,"previousValue")||i.data(l,"previousValue",{old:null,valid:!0,message:this.defaultMessage(l,{method:r})})},destroy:function(){this.resetForm(),i(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("val
1idate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(l,r){l.constructor===String?this.classRuleSettings[l]=r:i.extend(this.classRuleSettings,l)},classRules:function(l){var r={},a=i(l).attr("class");return a&&i.each(a.split(" "),function(){this in i.validator.classRuleSettings&&i.extend(r,i.validator.classRuleSettings[this])}),r},normalizeAttributeRule:function(l,r,a,u){/min|max|step/.test(a)&&(null===r||/number|range|text/.test(r))&&(u=Number(u),isNaN(u)&&(u=void 0)),u||0===u?l[a]=u:r===a&&"range"!==r&&(l[a]=!0)},attributeRules:function(l){var r,a,u={},b=i(l),L=l.getAttribute("type");for(r in i.validator.methods)a="required"===r?(""===(a=l.getAttribute(r))&&(a=!0),!!a):b.attr(r),this.normalizeAttributeRule(u,L,r,a);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},dataRules:function(l){var r,a,u={},b=i(l),L=l.getAttribute("type");for(r in i.validator.methods)""===(a=b.data("rule"+r.charAt(0).toUpperCase()+r.substring(1).toLowerCase()))&&(a=!0),this.normalizeAttributeRule(u,L,r,a);return u},staticRules:function(l){var r={},a=i.data(l.form,"validator");return a.settings.rules&&(r=i.validator.normalizeRule(a.settings.rules[l.name])||{}),r},normalizeRules:function(l,r){return i.each(l,function(a,u){if(!1!==u){if(u.param||u.depends){var b=!0;switch(typeof u.depends){case"string":b=!!i(u.depends,r.form).length;break;case"function":b=u.depends.call(r,r)}b?l[a]=void 0===u.param||u.param:(i.data(r.form,"validator").resetElements(i(r)),delete l[a])}}else delete l[a]}),i.each(l,function(a,u){l[a]=i.isFunction(u)&&"normalizer"!==a?u(r):u}),i.each(["minlength","maxlength"],function(){l[this]&&(l[this]=Number(l[this]))}),i.each(["rangelength","range"],function(){var a;l[this]&&(i.isArray(l[this])?l[this]=[Number(l[this][0]),Number(l[this][1])]:"string"==typeof l[this]&&(a=l[this].replace(/[\[\]]/g,"").split(/[\s,]+/),l[this]=[Number(a[0]),Number(a[1])]))}),i.validator.autoCreateRanges&&(null!=l.min&&null!=l.max&&(l.range=[l.min,l.max],delete l.min,delete l.max),null!=l.minlength&&null!=l.maxlength&&(l.rangelength=[l.minlength,l.maxlength],delete l.minlength,delete l.maxlength)),l},normalizeRule:function(l){if("string"==typeof l){var r={};i.each(l.split(/\s/),function(){r[this]=!0}),l=r}return l},addMethod:function(l,r,a){i.validator.methods[l]=r,i.validator.messages[l]=void 0!==a?a:i.validator.messages[l],r.length<3&&i.validator.addClassRules(l,i.validator.normalizeRule(l))},methods:{required:function(l,r,a){if(!this.depend(a,r))return"dependency-mismatch";if("select"!==r.nodeName.toLowerCase())return this.checkable(r)?0<this.getLength(l,r):null!=l&&0<l.length;var u=i(r).val();return u&&0<u.length},email:function(l,r){return this.optional(r)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(l)},url:function(l,r){return this.optional(r)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(l)},date:(D=!1,function(l,r){return D||(D=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(r)||!/Invalid|NaN/.test(new Date(l).toString())}),dateISO:function(l,r){return this.optional(r)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(l)},number:function(l,r){return this.optional(r)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(l)},digits:function(l,r){return this.optional(r)||/^\d+$/.test(l)},minlength:function(l,r,a){var u=i.isArray(l)?l.length:this.getLength(l,r);return this.optional(r)||a<=u},maxlength:function(l,r,a){var u=i.isArray(l)?l.length:this.getLength(l,r);return this.optional(r)||u<=a},rangelength:function(l,r,a){var u=i.isArray(l)?l.length:this.getLength(l,r);return this.optional(r)||u>=a[0]&&u<=a[1]},min:function(l,r,a){return this.optional(r)||a<=l},max:function(l,r,a){return this.optional(r)||l<=a},range:function(l,r,a){return this.optional(r)||l>=a[0]&&l<=a[1]},step:function(l,r,a){function u(I){var x=(""+I).match(/(?:\.(\d+))?$/);return x&&x[1]?x[1].length:0}
1function b(I){return Math.round(I*Math.pow(10,L))}var L,W=i(r).attr("type"),R="Step attribute on input type "+W+" is not supported.",k=new RegExp("\\b"+W+"\\b"),N=!0;if(W&&!k.test(["text","number","range"].join()))throw new Error(R);return L=u(a),(u(l)>L||b(l)%b(a)!=0)&&(N=!1),this.optional(r)||N},equalTo:function(l,r,a){var u=i(a);return this.settings.onfocusout&&u.not(".validate-equalTo-blur").length&&u.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){i(r).valid()}),l===u.val()},remote:function(l,r,a,u){if(this.optional(r))return"dependency-mismatch";var b,L,W,R=this.previousValue(r,u="string"==typeof u&&u||"remote");return this.settings.messages[r.name]||(this.settings.messages[r.name]={}),R.originalMessage=R.originalMessage||this.settings.messages[r.name][u],this.settings.messages[r.name][u]=R.message,W=i.param(i.extend({data:l},(a="string"==typeof a&&{url:a}||a).data)),R.old===W?R.valid:(R.old=W,(b=this).startRequest(r),(L={})[r.name]=l,i.ajax(i.extend(!0,{mode:"abort",port:"validate"+r.name,dataType:"json",data:L,context:b.currentForm,success:function(k){var N,I,x,S=!0===k||"true"===k;b.settings.messages[r.name][u]=R.originalMessage,S?(x=b.formSubmitted,b.resetInternals(),b.toHide=b.errorsFor(r),b.formSubmitted=x,b.successList.push(r),b.invalid[r.name]=!1,b.showErrors()):(N={},I=k||b.defaultMessage(r,{method:u,parameters:l}),N[r.name]=R.message=I,b.invalid[r.name]=!0,b.showErrors(N)),R.valid=S,b.stopRequest(r,S)}},a)),"pending")}}});var K,F={};return i.ajaxPrefilter?i.ajaxPrefilter(function(l,r,a){var u=l.port;"abort"===l.mode&&(F[u]&&F[u].abort(),F[u]=a)}):(K=i.ajax,i.ajax=function(l){var r=("mode"in l?l:i.ajaxSettings).mode,a=("port"in l?l:i.ajaxSettings).port;return"abort"===r?(F[a]&&F[a].abort(),F[a]=K.apply(this,arguments),F[a]):K.apply(this,arguments)}),i}),function(i){"function"==typeof define&&define.amd?define(["jquery"],i):i(jQuery)}(function(i){function D(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},i.extend(this._defaults,this.regional[""]),this.regional.en=i.extend(!0,{},this.regional[""]),this.regional["en-US"]=i.extend(!0,{},this.regional.en),this.dpDiv=K(i("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function K(e){var s="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",s,function(){i(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&i(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&i(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",s,F)}function F(){i.datepicker._isDisabledDatepicker(ee.inline?ee.dpDiv.parent()[0]:ee.input[0])||(i(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),i(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&i(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&i(this).addClass("ui-datepicker-next-hover"))}function l(e,s){for(var d in i.extend(e,s),s)null==s[d]&&(e[d]=s[d]);return e}function r(e){return function(){var s=this.element.val();e.apply(this,arguments),this._refresh(),s!==this.element.val()&&this._trigger("change")}}i.ui=i.ui||{},i.ui.version="1.12.1";var a,u,b,L,W,R,k,N,I,x,S,A=0,O=Array.prototype.slice;function H(e,s,d){return[parseFloat(e[0])*(I.test(e[0])?s/100:1),parseFloat(e[1])*(I.test(e[1])?d/100:1)]}function z(e,s){return parseInt(i.css(e,s),10)||0}i.cleanData=(S=i.cleanData,function(e){var s,d,g;for(g=0;null!=(d=e[g]);g++)try{(s=i._data(d,"events"))&&s.remove&&i(d).triggerHandler("remove")}catch(C){}S(e)}),i.widget=function(e,s,d){var g,C,U,nt={},ut=e.split(".")[0],vt=ut+"-"+(e=e.split(".")[1]);return d||(d=s,s=i.Widget),i.isArray(d)&&(d=i.extend.apply(null,[{}].concat(d))),i.expr[":"][vt.toLowerCase()]=function(Wt){return!!i.data(Wt,vt)},i[ut]=i[ut]||{},g=i[ut][e],C=i[ut][e]=function(Wt,Bt){return this._createWidget?void(arguments.length&&this._createWidget(Wt,Bt)):new C(Wt,Bt)},i.extend(C,g,{version:d.version,_proto:i.extend({},d),_childConstructors:[]}),(U=new s).options=i.widget.extend({},U.options),i.each(d,function(Wt,Bt){return i.isFunction(Bt)?void(nt[Wt]=function(){var Kt,ce=this._super,we=this._superApply;return this._super=xt,this._superApply=Ft,Kt=Bt.apply(this,arguments),this._super=ce,this._superApply=we,Kt}):void(nt[Wt]=Bt);
vendor: 11,659 bytes, line 1
1function xt(){return s.prototype[Wt].apply(this,arguments)}function Ft(Kt){return s.prototype[Wt].apply(this,Kt)}}),C.prototype=i.widget.extend(U,{widgetEventPrefix:g&&U.widgetEventPrefix||e},nt,{constructor:C,namespace:ut,widgetName:e,widgetFullName:vt}),g?(i.each(g._childConstructors,function(Wt,Bt){var xt=Bt.prototype;i.widget(xt.namespace+"."+xt.widgetName,C,Bt._proto)}),delete g._childConstructors):s._childConstructors.push(C),i.widget.bridge(e,C),C},i.widget.extend=function(e){for(var s,d,g=O.call(arguments,1),C=0,U=g.length;C<U;C++)for(s in g[C])d=g[C][s],g[C].hasOwnProperty(s)&&void 0!==d&&(e[s]=i.isPlainObject(d)?i.isPlainObject(e[s])?i.widget.extend({},e[s],d):i.widget.extend({},d):d);return e},i.widget.bridge=function(e,s){var d=s.prototype.widgetFullName||e;i.fn[e]=function(g){var C="string"==typeof g,U=O.call(arguments,1),nt=this;return C?this.length||"instance"!==g?this.each(function(){var ut,vt=i.data(this,d);return"instance"===g?(nt=vt,!1):vt?i.isFunction(vt[g])&&"_"!==g.charAt(0)?(ut=vt[g].apply(vt,U))!==vt&&void 0!==ut?(nt=ut&&ut.jquery?nt.pushStack(ut.get()):ut,!1):void 0:i.error("no such method '"+g+"' for "+e+" widget instance"):i.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+g+"'")}):nt=void 0:(U.length&&(g=i.widget.extend.apply(null,[g].concat(U))),this.each(function(){var ut=i.data(this,d);ut?(ut.option(g||{}),ut._init&&ut._init()):i.data(this,d,new s(g,this))})),nt}},i.Widget=function(){},i.Widget._childConstructors=[],i.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=i(s||this.defaultElement||this)[0],this.element=i(s),this.uuid=A++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=i(),this.hoverable=i(),this.focusable=i(),this.classesElementLookup={},s!==this&&(i.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(d){d.target===s&&this.destroy()}}),this.document=i(s.style?s.ownerDocument:s.document||s),this.window=i(this.document[0].defaultView||this.document[0].parentWindow)),this.options=i.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:i.noop,_create:i.noop,_init:i.noop,destroy:function(){var e=this;this._destroy(),i.each(this.classesElementLookup,function(s,d){e._removeClass(d,s)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:i.noop,widget:function(){return this.element},option:function(e,s){var d,g,C,U=e;if(0===arguments.length)return i.widget.extend({},this.options);if("string"==typeof e)if(U={},e=(d=e.split(".")).shift(),d.length){for(g=U[e]=i.widget.extend({},this.options[e]),C=0;d.length-1>C;C++)g[d[C]]=g[d[C]]||{},g=g[d[C]];if(e=d.pop(),1===arguments.length)return void 0===g[e]?null:g[e];g[e]=s}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];U[e]=s}return this._setOptions(U),this},_setOptions:function(e){var s;for(s in e)this._setOption(s,e[s]);return this},_setOption:function(e,s){return"classes"===e&&this._setOptionClasses(s),this.options[e]=s,"disabled"===e&&this._setOptionDisabled(s),this},_setOptionClasses:function(e){var s,d,g;for(s in e)g=this.classesElementLookup[s],e[s]!==this.options.classes[s]&&g&&g.length&&(d=i(g.get()),this._removeClass(g,s),d.addClass(this._classes({element:d,keys:s,classes:e,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function s(C,U){var nt,ut;for(ut=0;C.length>ut;ut++)nt=g.classesElementLookup[C[ut]]||i(),nt=i(e.add?i.unique(nt.get().concat(e.element.get())):nt.not(e.element).get()),g.classesElementLookup[C[ut]]=nt,d.push(C[ut]),U&&e.classes[C[ut]]&&d.push(e.classes[C[ut]])}var d=[],g=this;return e=i.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&s(e.keys.match(/\S+/g)||[],!0),e.extra&&s(e.extra.match(/\S+/g)||[]),d.join(" ")},_untrackClassesElement:function(e){var s=this;i.each(s.classesElementLookup,function(d,g){-1!==i.inArray(e.target,g)&&(s.classesElementLookup[d]=i(g.not(e.target).get()))})},_removeClass:function(e,s,d){return this._toggleClass(e,s,d,!1)},_addClass:function(e,s,d){return this._toggleClass(e,s,d,!0)},_toggleClass:function(e,s,d,g){var C="string"==typeof e||null===e,U={extra:C?s:d,keys:C?e:s,element:C?this.element:e,add:g="boolean"==typeof g?g:d};return U.element.toggleClass(this._classes(U),g),this},_on:function(e,s,d){var g,C=this;"boolean"!=typeof e&&(d=s,s=e,e=!1),d?(s=g=i(s),this.bindings=this.bindings.add(s)):(d=s,s=this.element,g=this.widget()),i.each(d,function(U,nt){function ut(){return e||!0!==C.options.disabled&&!i(this).hasClass("ui-state-disabled")?("string"==typeof nt?C[nt]:nt).apply(C,arguments):void 0}"string"!=typeof nt&&(ut.guid=nt.guid=nt.guid||ut.guid||i.guid++);var vt=U.match(/^([\w:-]*)\s*(.*)$/),Wt=vt[1]+C.eventNamespace,Bt=vt[2];Bt?g.on(Wt,Bt,ut):s.on(Wt,ut)})},_off:function(e,s){s=(s||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(s).off(s),this.bindings=i(this.bindings.not(e).get()),this.focusable=i(this.focusable.not(e).get()),this.hoverable=i(this.hoverable.not(e).get())},_delay:function(e,s){var d=this;return setTimeout(function(){return("string"==typeof e?d[e]:e).apply(d,arguments)},s||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(s){this._addClass(i(s.currentTarget),null,"ui-state-hover")},mouseleave:function(s){this._removeClass(i(s.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(s){this._addClass(i(s.currentTarget),null,"ui-state-focus")},focusout:function(s){this._removeClass(i(s.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,s,d){var g,C,U=this.options[e];if(d=d||{},(s=i.Event(s)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),s.target=this.element[0],C=s.originalEvent)for(g in C)g in s||(s[g]=C[g]);return this.element.trigger(s,d),!(i.isFunction(U)&&!1===U.apply(this.element[0],[s].concat(d))||s.isDefaultPrevented())}},i.each({show:"fadeIn",hide:"fadeOut"},function(e,s){i.Widget.prototype["_"+e]=function(d,g,C){"string"==typeof g&&(g={effect:g});var U,nt=g?!0===g||"number"==typeof g?s:g.effect||s:e;"number"==typeof(g=g||{})&&(g={duration:g}),U=!i.isEmptyObject(g),g.complete=C,g.delay&&d.delay(g.delay),U&&i.effects&&i.effects.effect[nt]?d[e](g):nt!==e&&d[nt]?d[nt](g.duration,g.easing,C):d.queue(function(ut){i(this)[e](),C&&C.call(d[0]),ut()})}}),b=Math.max,L=Math.abs,W=/left|center|right/,R=/top|center|bottom/,k=/[\+\-]\d+(\.[\d]+)?%?/,N=/^\w+/,I=/%$/,x=i.fn.position,i.position={scrollbarWidth:function(){if(void 0!==u)return u;var e,s,d=i("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),g=d.children()[0];return i("body").append(d),e=g.offsetWidth,d.css("overflow","scroll"),e===(s=g.offsetWidth)&&(s=d[0].clientWidth),d.remove(),u=e-s},getScrollInfo:function(e){var s=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),d=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),g="scroll"===s||"auto"===s&&e.width<e.element[0].scrollWidth;return{width:"scroll"===d||"auto"===d&&e.height<e.element[0].scrollHeight?i.position.scrollbarWidth():0,height:g?i.position.scrollbarWidth():0}},getWithinInfo:function(e){var s=i(e||window),d=i.isWindow(s[0]),g=!!s[0]&&9===s[0].nodeType;return{element:s,isWindow:d,isDocument:g,offset:d||g?{left:0,top:0}:i(e).offset(),scrollLeft:s.scrollLeft(),scrollTop:s.scrollTop(),width:s.outerWidth(),height:s.outerHeight()}}},i.fn.position=function(e){if(!e||!e.of)return x.apply(this,arguments);e=i.extend({},e);var s,d,g,C,U,nt,Ft,Kt,ut=i(e.of),vt=i.position.getWithinInfo(e.within),Wt=i.position.getScrollInfo(vt),Bt=(e.collision||"flip").split(" "),xt={};return nt=9===(Kt=(Ft=ut)[0]).nodeType?{width:Ft.width(),height:Ft.height(),offset:{top:0,left:0}}:i.isWindow(Kt)?{width:Ft.width(),height:Ft.height(),offset:{top:Ft.scrollTop(),left:Ft.scrollLeft()}}:Kt.preventDefault?{width:0,height:0,offset:{top:Kt.pageY,left:Kt.pageX}}:{width:Ft.outerWidth(),height:Ft.outerHeight(),offset:Ft.offset()},ut[0].preventDefault&&(e.at="left top"),d=nt.width,g=nt.height,U=i.extend({},C=nt.offset),i.each(["my","at"],function(){var Ft,Kt,ce=(e[this]||"").split(" ");1===ce.length&&(ce=W.test(ce[0])?ce.concat(["center"]):R.test(ce[0])?["center"].concat(ce):["center","center"]),ce[0]=W.test(ce[0])?ce[0]:"center",ce[1]=R.test(ce[1])?ce[1]:"center",Ft=k.exec(ce[0]),Kt=k.exec(ce[1]),xt[this]=[Ft?Ft[0]:0,Kt?Kt[0]:0],e[this]=[N.exec(ce[0])[0],N.exec(ce[1])[0]]}),1===Bt.length&&(Bt[1]=Bt[0]),"right"===e.at[0]?U.left+=d:"center"===e.at[0]&&(U.left+=d/2),"bottom"===e.at[1]?U.top+=g:"center"===e.at[1]&&(U.top+=g/2),s=H(xt.at,d,g),U.left+=s[0],U.top+=s[1],this.each(function(){var Ft,Kt,ce=i(this),we=ce.outerWidth(),Se=ce.outerHeight(),Ye=z(this,"marginLeft"),Je=z(this,"marginTop"),ni=we+Ye+z(this,"marginRight")+Wt.width,ci=Se+Je+z(this,"marginBottom")+Wt.height,ri=i.extend({},U),yi=H(xt.my,ce.outerWidth(),ce.outerHeight());"right"===e.my[0]?ri.left-=we:"center"===e.my[0]&&(ri.left-=we/2),"bottom"===e.my[1]?ri.top-=Se:"center"===e.my[1]&&(ri.top-=Se/2),ri.left+=yi[0],ri.top+=yi[1],Ft={marginLeft:Ye,marginTop:Je},i.each(["left","top"],function(Ii,Ti){i.ui.position[Bt[Ii]]&&i.ui.position[Bt[Ii]][Ti](ri,{targetWidth:d,targetHeight:g,elemWidth:we,elemHeight:Se,collisionPosition:Ft,collisionWidth:ni,collisionHeight:ci,offset:[s[0]+yi[0],s[1]+yi[1]],my:e.my,at:e.at,within:vt,elem:ce})}),e.using&&(Kt=function(Ii){var Ti=C.left-ri.left,rn=Ti+d-we,Ei=C.top-ri.top,si=Ei+g-Se,$i={target:{element:ut,left:C.left,top:C.top,width:d,height:g},element:{element:ce,left:ri.left,top:ri.top,width:we,height:Se},horizontal:rn<0?"left":0<Ti?"right":"center",vertical:si<0?"top":0<Ei?"bottom":"middle"};d<we&&d>L(Ti+rn)&&($i.horizontal="center"),g<Se&&g>L(Ei+si)&&($i.vertical="middle"),$i.important=b(L(Ti),L(rn))>b(L(Ei),L(si))?"horizontal":"vertical",e.using.call(this,Ii,$i)}),ce.offset(i.extend(ri,{using:Kt}))})},i.ui.position={fit:{left:function(e,s){var g=s.within,C=g.isWindow?g.scrollLeft:g.offset.left,U=g.width,nt=e.left-s.collisionPosition.marginLeft,ut=C-nt,vt=nt+s.collisionWidth-U-C;s.collisionWidth>U?0<ut&&vt<=0?e.left+=ut-(e.left+ut+s.collisionWidth-U-C):e.left=0<vt&&ut<=0?C:vt<ut?C+U-s.collisionWidth:C:0<ut?e.left+=ut:0<vt?e.left-=vt:e.left=b(e.left-nt,e.left)},top:function(e,s){var g=s.within,C=g.isWindow?g.scrollTop:g.offset.top,U=s.within.height,nt=e.top-s.collisionPosition.marginTop,ut=C-nt,vt=nt+s.collisionHeight-U-C;s.collisionHeight>U?0<ut&&vt<=0?e.top+=ut-(e.top+ut+s.collisionHeight-U-C):e.top=0<vt&&ut<=0?C:vt<ut?C+U-s.collisionHeight:C:0<ut?e.top+=ut:0<vt?e.top-=vt:e.top=b(e.top-nt,e.top)}},flip:{left:function(e,s){var d,g,C=s.within,nt=C.width,ut=C.isWindow?C.scrollLeft:C.offset.left,vt=e.left-s.collisionPosition.marginLeft,Wt=vt-ut,Bt=vt+s.collisionWidth-nt-ut,xt="left"
1===s.my[0]?-s.elemWidth:"right"===s.my[0]?s.elemWidth:0,Ft="left"===s.at[0]?s.targetWidth:"right"===s.at[0]?-s.targetWidth:0,Kt=-2*s.offset[0];Wt<0?((d=e.left+xt+Ft+Kt+s.collisionWidth-nt-(C.offset.left+C.scrollLeft))<0||L(Wt)>d)&&(e.left+=xt+Ft+Kt):0<Bt&&(0<(g=e.left-s.collisionPosition.marginLeft+xt+Ft+Kt-ut)||Bt>L(g))&&(e.left+=xt+Ft+Kt)},top:function(e,s){var d,g,C=s.within,nt=C.height,ut=C.isWindow?C.scrollTop:C.offset.top,vt=e.top-s.collisionPosition.marginTop,Wt=vt-ut,Bt=vt+s.collisionHeight-nt-ut,xt="top"===s.my[1]?-s.elemHeight:"bottom"===s.my[1]?s.elemHeight:0,Ft="top"===s.at[1]?s.targetHeight:"bottom"===s.at[1]?-s.targetHeight:0,Kt=-2*s.offset[1];Wt<0?((g=e.top+xt+Ft+Kt+s.collisionHeight-nt-(C.offset.top+C.scrollTop))<0||L(Wt)>g)&&(e.top+=xt+Ft+Kt):0<Bt&&(0<(d=e.top-s.collisionPosition.marginTop+xt+Ft+Kt-ut)||Bt>L(d))&&(e.top+=xt+Ft+Kt)}},flipfit:{left:function(){i.ui.position.flip.left.apply(this,arguments),i.ui.position.fit.left.apply(this,arguments)},top:function(){i.ui.position.flip.top.apply(this,arguments),i.ui.position.fit.top.apply(this,arguments)}}},i.extend(i.expr[":"],{data:i.expr.createPseudo?i.expr.createPseudo(function(e){return function(s){return!!i.data(s,e)}}):function(e,s,d){return!!i.data(e,d[3])}}),i.fn.extend({disableSelection:(a="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(a+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var v,tt,ft,Rt,lt,at,mt,wt,qt,ae,ye,he,Te,Ne,Ot,w,Y,V,it,yt,It,Xe,Tt,Lt="ui-effects-",Ut="ui-effects-style",de="ui-effects-animated",be=i;function dt(e,s,d,g){return i.isPlainObject(e)&&(e=(s=e).effect),e={effect:e},null==s&&(s={}),i.isFunction(s)&&(g=s,d=null,s={}),"number"!=typeof s&&!i.fx.speeds[s]||(g=d,d=s,s={}),i.isFunction(d)&&(g=d,d=null),s&&i.extend(e,s),d=d||s.duration,e.duration=i.fx.off?0:"number"==typeof d?d:d in i.fx.speeds?i.fx.speeds[d]:i.fx.speeds._default,e.complete=g||s.complete,e}function Ht(e){return!(e&&"number"!=typeof e&&!i.fx.speeds[e])||"string"==typeof e&&!i.effects.effect[e]||!!i.isFunction(e)||"object"==typeof e&&!e.effect}function Gt(e,s){var d=s.outerWidth(),g=s.outerHeight(),C=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,d,g,0];return{top:parseFloat(C[1])||0,right:"auto"===C[2]?d:parseFloat(C[2]),bottom:"auto"===C[3]?g:parseFloat(C[3]),left:parseFloat(C[4])||0}}function ge(e){var s,d,g=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,C={};if(g&&g.length&&g[0]&&g[g[0]])for(d=g.length;d--;)"string"==typeof g[s=g[d]]&&(C[i.camelCase(s)]=g[s]);else for(s in g)"string"==typeof g[s]&&(C[s]=g[s]);return C}function zt(e,s,d){var g=V[s.type]||{};return null==e?d||!s.def?null:s.def:(e=g.floor?~~e:parseFloat(e),isNaN(e)?s.def:g.mod?(e+g.mod)%g.mod:e<0?0:e>g.max?g.max:e)}function Ee(e){var s=w(),d=s._rgba=[];return e=e.toLowerCase(),It(Ot,function(g,C){var U,nt=C.re.exec(e),ut=nt&&C.parse(nt),vt=C.space||"rgba";return ut?(U=s[vt](ut),s[Y[vt].cache]=U[Y[vt].cache],d=s._rgba=U._rgba,!1):he}),d.length?("0,0,0,0"===d.join()&&ye.extend(d,Te.transparent),s):Te[e]}function ze(e,s,d){return 6*(d=(d+1)%1)<1?e+6*(s-e)*d:2*d<1?s:3*d<2?e+6*(s-e)*(2/3-d):e}i.effects={effect:{}},Ne=/^([\-+])=\s*(\d+\.?\d*)/,Ot=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],w=(ye=be).Color=function(e,s,d,g){return new ye.Color.fn.parse(e,s,d,g)},Y={rgba:{props:{red:{idx:0,type:"byte"}
vendor: 4,921 bytes, line 1
1,green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},V={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},it=w.support={},yt=ye("<p>")[0],It=ye.each,yt.style.cssText="background-color:rgba(1,1,1,.5)",it.rgba=-1<yt.style.backgroundColor.indexOf("rgba"),It(Y,function(e,s){s.cache="_"+e,s.props.alpha={idx:3,type:"percent",def:1}}),w.fn=ye.extend(w.prototype,{parse:function(e,s,d,g){if(e===he)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=ye(e).css(s),s=he);var C=this,U=ye.type(e),nt=this._rgba=[];return s!==he&&(e=[e,s,d,g],U="array"),"string"===U?this.parse(Ee(e)||Te._default):"array"===U?(It(Y.rgba.props,function(ut,vt){nt[vt.idx]=zt(e[vt.idx],vt)}),this):"object"===U?(It(Y,e instanceof w?function(ut,vt){e[vt.cache]&&(C[vt.cache]=e[vt.cache].slice())}:function(ut,vt){var Wt=vt.cache;It(vt.props,function(Bt,xt){if(!C[Wt]&&vt.to){if("alpha"===Bt||null==e[Bt])return;C[Wt]=vt.to(C._rgba)}C[Wt][xt.idx]=zt(e[Bt],xt,!0)}),C[Wt]&&ye.inArray(null,C[Wt].slice(0,3))<0&&(C[Wt][3]=1,vt.from&&(C._rgba=vt.from(C[Wt])))}),this):he},is:function(e){var s=w(e),d=!0,g=this;return It(Y,function(C,U){var nt,ut=s[U.cache];return ut&&(nt=g[U.cache]||U.to&&U.to(g._rgba)||[],It(U.props,function(vt,Wt){return null!=ut[Wt.idx]?d=ut[Wt.idx]===nt[Wt.idx]:he})),d}),d},_space:function(){var e=[],s=this;return It(Y,function(d,g){s[g.cache]&&e.push(d)}),e.pop()},transition:function(e,s){var d=w(e),g=d._space(),C=Y[g],U=0===this.alpha()?w("transparent"):this,nt=U[C.cache]||C.to(U._rgba),ut=nt.slice();return d=d[C.cache],It(C.props,function(vt,Wt){var Bt=Wt.idx,xt=nt[Bt],Ft=d[Bt],Kt=V[Wt.type]||{};null!==Ft&&(null===xt?ut[Bt]=Ft:(Kt.mod&&(Ft-xt>Kt.mod/2?xt+=Kt.mod:xt-Ft>Kt.mod/2&&(xt-=Kt.mod)),ut[Bt]=zt((Ft-xt)*s+xt,Wt)))}),this[g](ut)},blend:function(e){if(1===this._rgba[3])return this;var s=this._rgba.slice(),d=s.pop(),g=w(e)._rgba;return w(ye.map(s,function(C,U){return(1-d)*g[U]+d*C}))},toRgbaString:function(){var e="rgba(",s=ye.map(this._rgba,function(d,g){return null==d?2<g?1:0:d});return 1===s[3]&&(s.pop(),e="rgb("),e+s.join()+")"},toHslaString:function(){var e="hsla(",s=ye.map(this.hsla(),function(d,g){return null==d&&(d=2<g?1:0),g&&g<3&&(d=Math.round(100*d)+"%"),d});return 1===s[3]&&(s.pop(),e="hsl("),e+s.join()+")"},toHexString:function(e){var s=this._rgba.slice(),d=s.pop();return e&&s.push(~~(255*d)),"#"+ye.map(s,function(g){return 1===(g=(g||0).toString(16)).length?"0"+g:g}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),w.fn.parse.prototype=w.fn,Y.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var d,g=e[0]/255,C=e[1]/255,U=e[2]/255,nt=e[3],ut=Math.max(g,C,U),vt=Math.min(g,C,U),Wt=ut-vt,Bt=ut+vt,xt=.5*Bt;return d=0==Wt?0:xt<=.5?Wt/Bt:Wt/(2-Bt),[Math.round(vt===ut?0:g===ut?60*(C-U)/Wt+360:C===ut?60*(U-g)/Wt+120:60*(g-C)/Wt+240)%360,d,xt,null==nt?1:nt]},Y.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var s=e[0]/360,d=e[1],g=e[2],C=e[3],U=g<=.5?g*(1+d):g+d-g*d,nt=2*g-U;return[Math.round(255*ze(nt,U,s+1/3)),Math.round(255*ze(nt,U,s)),Math.round(255*ze(nt,U,s-1/3)),C]},It(Y,function(e,s){var d=s.props,g=s.cache,C=s.to,U=s.from;w.fn[e]=function(nt){if(C&&!this[g]&&(this[g]=C(this._rgba)),nt===he)return this[g].slice();var ut,vt=ye.type(nt),Wt="array"===vt||"object"===vt?nt:arguments,Bt=this[g].slice();return It(d,function(xt,Ft){var Kt=Wt["object"===vt?xt:Ft.idx];null==Kt&&(Kt=Bt[Ft.idx]),Bt[Ft.idx]=zt(Kt,Ft)}),U?((ut=w(U(Bt)))[g]=Bt,ut):w(Bt)},It(d,function(nt,ut){w.fn[nt]||(w.fn[nt]=function(vt){var Wt,Bt=ye.type(vt),xt="alpha"===nt?this._hsla?"hsla":"rgba":e,Ft=this[xt](),Kt=Ft[ut.idx];return"undefined"===Bt?Kt:("function"===Bt&&(vt=vt.call(this,Kt),Bt=ye.type(vt)),null==vt&&ut.empty?this:("string"===Bt&&(Wt=Ne.exec(vt))&&(vt=Kt+parseFloat(Wt[2])*("+"===Wt[1]?1:-1)),Ft[ut.idx]=vt,this[xt](Ft)))})})}),w.hook=function(e){var s=e.split(" ");It(s,function(d,g){ye.cssHooks[g]={set:function(C,U){var nt,ut,vt="";if("transparent"!==U&&("string"!==ye.type(U)||(nt=Ee(U)))){if(U=w(nt||U),!it.rgba&&1!==U._rgba[3]){for(ut="backgroundColor"===g?C.parentNode:C;(""===vt||"transparent"===vt)&&ut&&ut.style;)try{vt=ye.css(ut,"backgroundColor"),ut=ut.parentNode}catch(Wt){}U=U.blend(vt&&"transparent"!==vt?vt:"_default")}U=U.toRgbaString()}try{C.style[g]=U}catch(Wt){}}},ye.fx.step[g]=function(C){C.colorInit||(C.start=w(C.elem,g),C.end=w(C.end),C.colorInit=!0),ye.cssHooks[g].set(C.elem,C.start.transition(C.end,C.pos))}})},w.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),ye.cssHooks.borderColor={expand:function(e){var s={};return It(["Top","Right","Bottom","Left"],function(d,g){s["border"+g+"C
1olor"]=e}),s}},Te=ye.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},qt=["add","remove","toggle"],ae={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},i.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,s){i.fx.step[s]=function(d){("none"!==d.end&&!d.setAttr||1===d.pos&&!d.setAttr)&&(be.style(d.elem,s,d.end),d.setAttr=!0)}}),i.fn.addBack||(i.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),i.effects.animateClass=function(e,s,d,g){var C=i.speed(s,d,g);return this.queue(function(){var U,nt=i(this),ut=nt.attr("class")||"",vt=C.children?nt.find("*").addBack():nt;vt=vt.map(function(){return{el:i(this),start:ge(this)}}),(U=function(){i.each(qt,function(Wt,Bt){e[Bt]&&nt[Bt+"Class"](e[Bt])})})(),vt=vt.map(function(){return this.end=ge(this.el[0]),this.diff=function(Wt,Bt){var xt,Ft,Kt={};for(xt in Bt)Wt[xt]!==(Ft=Bt[xt])&&(ae[xt]||!i.fx.step[xt]&&isNaN(parseFloat(Ft))||(Kt[xt]=Ft));return Kt}(this.start,this.end),this}),nt.attr("class",ut),vt=vt.map(function(){var Wt=this,Bt=i.Deferred(),xt=i.extend({},C,{queue:!1,complete:function(){Bt.resolve(Wt)}});return this.el.animate(this.diff,xt),Bt.promise()}),i.when.apply(i,vt.get()).done(function(){U(),i.each(arguments,function(){var Wt=this.el;i.each(this.diff,function(Bt){Wt.css(Bt,"")})}),C.complete.call(nt[0])})})},i.fn.extend({addClass:(wt=i.fn.addClass,function(e,s,d,g){return s?i.effects.animateClass.call(this,{add:e},s,d,g):wt.apply(this,arguments)}),removeClass:(mt=i.fn.removeClass,function(e,s,d,g){return 1<arguments.length?i.effects.animateClass.call(this,{remove:e},s,d,g):mt.apply(this,arguments)}),toggleClass:(at=i.fn.toggleClass,function(e,s,d,g,C){return"boolean"==typeof s||void 0===s?d?i.effects.animateClass.call(this,s?{add:e}:{remove:e},d,g,C):at.apply(this,arguments):i.effects.animateClass.call(this,{toggle:e},s,d,g)}),switchClass:function(e,s,d,g,C){return i.effects.animateClass.call(this,{add:s,remove:e},d,g,C)}}),i.expr&&i.expr.filters&&i.expr.filters.animated&&(i.expr.filters.animated=(lt=i.expr.filters.animated,function(e){return!!i(e).data(de)||lt(e)})),!1!==i.uiBackCompat&&i.extend(i.effects,{save:function(e,s){for(var d=0,g=s.length;d<g;d++)null!==s[d]&&e.data(Lt+s[d],e[0].style[s[d]])},restore:function(e,s){for(var d,g=0,C=s.length;g<C;g++)null!==s[g]&&(d=e.data(Lt+s[g]),e.css(s[g],d))},setMode:function(e,s){return"toggle"===s&&(s=e.is(":hidden")?"show":"hide"),s},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var s={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},d=i("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),g={width:e.width(),height:e.height()},C=document.activeElement;return e.wrap(d),e[0]!==C&&!i.contains(e[0],C)||i(C).trigger("focus"),d=e.parent(),"static"===e.css("position")?(d.css({position:"relative"}),e.css({position:"relative"})):(i.extend(s,{position:e.css("position"),zIndex:e.css("z-index")}),i.each(["top","left","bottom","right"],function(U,nt){s[nt]=e.css(nt),isNaN(parseInt(s[nt],10))&&(s[nt]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(g),d.css(s).show()},removeWrapper:function(e){var s=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),e[0]!==s&&!i.contains(e[0],s)||i(s).trigger("focus")),e}}),i.extend(i.effects,{version:"1.12.1",define:function(e,s,d){return d||(d=s,s="effect"),i.effects.effect[e]=d,i.effects.effect[e].mode=s,d},scaledDimensions:function(e,s,d){if(0===s)return{height:0,width:0,outerHeight:0,outerWidth:0};var g="horizontal"!==d?(s||100)/100:1,C="vertical"!==d?(s||100)/100:1;return{height:e.height()*C,width:e.width()*g,outerHeight:e.outerHeight()*C,outerWidth:e.outerWidth()*g}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left
vendor: 6,009 bytes, line 1
1:e.clip.left,top:e.clip.top}},unshift:function(e,s,d){var g=e.queue();1<s&&g.splice.apply(g,[1,0].concat(g.splice(s,d))),e.dequeue()},saveStyle:function(e){e.data(Ut,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(Ut)||"",e.removeData(Ut)},mode:function(e,s){var d=e.is(":hidden");return"toggle"===s&&(s=d?"show":"hide"),(d?"hide"===s:"show"===s)&&(s="none"),s},getBaseline:function(e,s){var d,g;switch(e[0]){case"top":d=0;break;case"middle":d=.5;break;case"bottom":d=1;break;default:d=e[0]/s.height}switch(e[1]){case"left":g=0;break;case"center":g=.5;break;case"right":g=1;break;default:g=e[1]/s.width}return{x:g,y:d}},createPlaceholder:function(e){var s,d=e.css("position"),g=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(d)&&(d="absolute",s=i("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(Lt+"placeholder",s)),e.css({position:d,left:g.left,top:g.top}),s},removePlaceholder:function(e){var s=Lt+"placeholder",d=e.data(s);d&&(d.remove(),e.removeData(s))},cleanUp:function(e){i.effects.restoreStyle(e),i.effects.removePlaceholder(e)},setTransition:function(e,s,d,g){return g=g||{},i.each(s,function(C,U){var nt=e.cssUnit(U);0<nt[0]&&(g[U]=nt[0]*d+nt[1])}),g}}),i.fn.extend({effect:function(){function e(Bt){function xt(){i.isFunction(ut)&&ut.call(Ft[0]),i.isFunction(Bt)&&Bt()}var Ft=i(this);d.mode=Wt.shift(),!1===i.uiBackCompat||C?"none"===d.mode?(Ft[vt](),xt()):g.call(Ft[0],d,function(){Ft.removeData(de),i.effects.cleanUp(Ft),"hide"===d.mode&&Ft.hide(),xt()}):(Ft.is(":hidden")?"hide"===vt:"show"===vt)?(Ft[vt](),xt()):g.call(Ft[0],d,xt)}function s(Bt){var xt=i(this),Ft=i.effects.mode(xt,vt)||C;xt.data(de,!0),Wt.push(Ft),C&&("show"===Ft||Ft===C&&"hide"===Ft)&&xt.show(),C&&"none"===Ft||i.effects.saveStyle(xt),i.isFunction(Bt)&&Bt()}var d=dt.apply(this,arguments),g=i.effects.effect[d.effect],C=g.mode,U=d.queue,nt=U||"fx",ut=d.complete,vt=d.mode,Wt=[];return i.fx.off||!g?vt?this[vt](d.duration,ut):this.each(function(){ut&&ut.call(this)}):!1===U?this.each(s).each(e):this.queue(nt,s).queue(nt,e)},show:(Rt=i.fn.show,function(e){if(Ht(e))return Rt.apply(this,arguments);var s=dt.apply(this,arguments);return s.mode="show",this.effect.call(this,s)}),hide:(ft=i.fn.hide,function(e){if(Ht(e))return ft.apply(this,arguments);var s=dt.apply(this,arguments);return s.mode="hide",this.effect.call(this,s)}),toggle:(tt=i.fn.toggle,function(e){if(Ht(e)||"boolean"==typeof e)return tt.apply(this,arguments);var s=dt.apply(this,arguments);return s.mode="toggle",this.effect.call(this,s)}),cssUnit:function(e){var s=this.css(e),d=[];return i.each(["em","px","%","pt"],function(g,C){0<s.indexOf(C)&&(d=[parseFloat(s),C])}),d},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):Gt(this.css("clip"),this)},transfer:function(e,s){var d=i(this),g=i(e.to),C="fixed"===g.css("position"),U=i("body"),nt=C?U.scrollTop():0,ut=C?U.scrollLeft():0,vt=g.offset(),Wt={top:vt.top-nt,left:vt.left-ut,height:g.innerHeight(),width:g.innerWidth()},Bt=d.offset(),xt=i("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:Bt.top-nt,left:Bt.left-ut,height:d.innerHeight(),width:d.innerWidth(),position:C?"fixed":"absolute"}).animate(Wt,e.duration,e.easing,function(){xt.remove(),i.isFunction(s)&&s()})}}),i.fx.step.clip=function(e){e.clipInit||(e.start=i(e.elem).cssClip(),"string"==typeof e.end&&(e.end=Gt(e.end,e.elem)),e.clipInit=!0),i(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})},v={},i.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,s){v[s]=function(d){return Math.pow(d,e+2)}}),i.extend(v,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var s,d=4;((s=Math.pow(2,--d))-1)/11>e;);return 1/Math.pow(4,3-d)-7.5625*Math.pow((3*s-2)/22-e,2)}}),i.each(v,function(e,s){i.easing["easeIn"+e]=s,i.easing["easeOut"+e]=function(d){return 1-s(1-d)},i.easing["easeInOut"+e]=function(d){return d<.5?s(2*d)/2:1-s(-2*d+2)/2}}),i.effects.define("blind","hide",function(e,s){var d={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},g=i(this),C=e.direction||"up",U=g.cssClip(),nt={clip:i.extend({},U)},ut=i.effects.createPlaceholder(g);nt.clip[d[C][0]]=nt.clip[d[C][1]],"show"===e.mode&&(g.cssClip(nt.clip),ut&&ut.css(i.effects.clipToBox(nt)),nt.clip=U),ut&&ut.animate(i.effects.clipToBox(nt),e.duration,e.easing),g.animate(nt,{queue:!1,duration:e.duration,easing:e.easing,complete:s})}),i.effects.define("bounce",function(e,s){var d,g,C,U=i(this),nt=e.mode,ut="hide"===nt,vt="show"===nt,Wt=e.direction||"up",Bt=e.distance,xt=e.times||5,Ft=2*xt+(vt||ut?1:0),Kt=e.duration/Ft,ce=e.easing,we="up"===Wt||"down"===Wt?"top":"left",Se="up"===Wt||"left"===Wt,Ye=0,Je=U.queue().length;for(i.effects.createPlaceholder(U),C=U.css(we),Bt=Bt||U["top"==we?"outerHeight":"outerWidth"]()/3,vt&&((g={opacity:1})[we]=C,U.css("opacity",0).css(we,Se?2*-Bt:2*Bt).animate(g,Kt,ce)),ut&&(Bt/=Math.pow(2,xt-1)),(g={})[we]=C;Ye<xt;Ye++)(d={})[we]=(Se?"-=":"+=")+Bt,U.animate(d,Kt,ce).animate(g,Kt,ce),Bt=ut?2*Bt:Bt/2;ut&&((d={opacity:0}
vendor: 42,872 bytes, line 1
1)[we]=(Se?"-=":"+=")+Bt,U.animate(d,Kt,ce)),U.queue(s),i.effects.unshift(U,Je,1+Ft)}),i.effects.define("clip","hide",function(e,s){var d,g={},C=i(this),U=e.direction||"vertical",nt="both"===U,ut=nt||"horizontal"===U,vt=nt||"vertical"===U;d=C.cssClip(),g.clip={top:vt?(d.bottom-d.top)/2:d.top,right:ut?(d.right-d.left)/2:d.right,bottom:vt?(d.bottom-d.top)/2:d.bottom,left:ut?(d.right-d.left)/2:d.left},i.effects.createPlaceholder(C),"show"===e.mode&&(C.cssClip(g.clip),g.clip=d),C.animate(g,{queue:!1,duration:e.duration,easing:e.easing,complete:s})}),i.effects.define("drop","hide",function(e,s){var d,g=i(this),C="show"===e.mode,U=e.direction||"left",nt="up"===U||"down"===U?"top":"left",ut="up"===U||"left"===U?"-=":"+=",vt="+="==ut?"-=":"+=",Wt={opacity:0};i.effects.createPlaceholder(g),d=e.distance||g["top"==nt?"outerHeight":"outerWidth"](!0)/2,Wt[nt]=ut+d,C&&(g.css(Wt),Wt[nt]=vt+d,Wt.opacity=1),g.animate(Wt,{queue:!1,duration:e.duration,easing:e.easing,complete:s})}),i.effects.define("explode","hide",function(e,s){function d(){Se.push(this),Se.length===Wt*Bt&&(xt.css({visibility:"visible"}),i(Se).remove(),s())}var g,C,U,nt,ut,vt,Wt=e.pieces?Math.round(Math.sqrt(e.pieces)):3,Bt=Wt,xt=i(this),Ft="show"===e.mode,Kt=xt.show().css("visibility","hidden").offset(),ce=Math.ceil(xt.outerWidth()/Bt),we=Math.ceil(xt.outerHeight()/Wt),Se=[];for(g=0;g<Wt;g++)for(nt=Kt.top+g*we,vt=g-(Wt-1)/2,C=0;C<Bt;C++)U=Kt.left+C*ce,ut=C-(Bt-1)/2,xt.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-C*ce,top:-g*we}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:ce,height:we,left:U+(Ft?ut*ce:0),top:nt+(Ft?vt*we:0),opacity:Ft?0:1}).animate({left:U+(Ft?0:ut*ce),top:nt+(Ft?0:vt*we),opacity:Ft?1:0},e.duration||500,e.easing,d)}),i.effects.define("fade","toggle",function(e,s){var d="show"===e.mode;i(this).css("opacity",d?0:1).animate({opacity:d?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:s})}),i.effects.define("fold","hide",function(e,s){var d=i(this),g=e.mode,C="show"===g,U="hide"===g,nt=e.size||15,ut=/([0-9]+)%/.exec(nt),vt=e.horizFirst?["right","bottom"]:["bottom","right"],Wt=e.duration/2,Bt=i.effects.createPlaceholder(d),xt=d.cssClip(),Ft={clip:i.extend({},xt)},Kt={clip:i.extend({},xt)},ce=[xt[vt[0]],xt[vt[1]]],we=d.queue().length;ut&&(nt=parseInt(ut[1],10)/100*ce[U?0:1]),Ft.clip[vt[0]]=nt,Kt.clip[vt[0]]=nt,Kt.clip[vt[1]]=0,C&&(d.cssClip(Kt.clip),Bt&&Bt.css(i.effects.clipToBox(Kt)),Kt.clip=xt),d.queue(function(Se){Bt&&Bt.animate(i.effects.clipToBox(Ft),Wt,e.easing).animate(i.effects.clipToBox(Kt),Wt,e.easing),Se()}).animate(Ft,Wt,e.easing).animate(Kt,Wt,e.easing).queue(s),i.effects.unshift(d,we,4)}),i.effects.define("highlight","show",function(e,s){var d=i(this),g={backgroundColor:d.css("backgroundColor")};"hide"===e.mode&&(g.opacity=0),i.effects.saveStyle(d),d.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(g,{queue:!1,duration:e.duration,easing:e.easing,complete:s})}),i.effects.define("size",function(e,s){var d,g,C,U=i(this),nt=["fontSize"],ut=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],vt=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],Wt=e.mode,Bt="effect"!==Wt,xt=e.scale||"both",Ft=e.origin||["middle","center"],Kt=U.css("position"),ce=U.position(),we=i.effects.scaledDimensions(U),Se=e.from||we,Ye=e.to||i.effects.scaledDimensions(U,0);i.effects.createPlaceholder(U),"show"===Wt&&(C=Se,Se=Ye,Ye=C),g={from:{y:Se.height/we.height,x:Se.width/we.width},to:{y:Ye.height/we.height,x:Ye.width/we.width}},"box"!==xt&&"both"!==xt||(g.from.y!==g.to.y&&(Se=i.effects.setTransition(U,ut,g.from.y,Se),Ye=i.effects.setTransition(U,ut,g.to.y,Ye)),g.from.x!==g.to.x&&(Se=i.effects.setTransition(U,vt,g.from.x,Se),Ye=i.effects.setTransition(U,vt,g.to.x,Ye))),"content"!==xt&&"both"!==xt||g.from.y===g.to.y||(Se=i.effects.setTransition(U,nt,g.from.y,Se),Ye=i.effects.setTransition(U,nt,g.to.y,Ye)),Ft&&(d=i.effects.getBaseline(Ft,we),Se.top=(we.outerHeight-Se.outerHeight)*d.y+ce.top,Se.left=(we.outerWidth-Se.outerWidth)*d.x+ce.left,Ye.top=(we.outerHeight-Ye.outerHeight)*d.y+ce.top,Ye.left=(we.outerWidth-Ye.outerWidth)*d.x+ce.left),U.css(Se),"content"!==xt&&"both"!==xt||(ut=ut.concat(["marginTop","marginBottom"]).concat(nt),vt=vt.concat(["marginLeft","marginRight"]),U.find("*[width]").each(function(){var Je=i(this),ni=i.effects.scaledDimensions(Je),ci={height:ni.height*g.from.y,width:ni.width*g.from.x,outerHeight:ni.outerHeight*g.from.y,outerWidth:ni.outerWidth*g.from.x},ri={height:ni.height*g.to.y,width:ni.width*g.to.x,outerHeight:ni.height*g.to.y,outerWidth:ni.width*g.to.x};g.from.y!==g.to.y&&(ci=i.effects.setTransition(Je,ut,g.from.y,ci),ri=i.effects.setTransition(Je,ut,g.to.y,ri)),g.from.x!==g.to.x&&(ci=i.effects.setTransition(Je,vt,g.from.x,ci),ri=i.effects.setTransition(Je,vt,g.to.x,ri)),Bt&&i.effects.saveStyle(Je),Je.css(ci),Je.animate(ri,e.duration,e.easing,function(){Bt&&i.effects.restoreStyle(Je)})})),U.animate(Ye,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var Je=U.offset();0===Ye.opacity&&U.css("opacity",Se.opacity),Bt||(U.css("position","static"===Kt?"relative":Kt).offset(Je),i.effects.saveStyle(U)),s()}})}),i.effects.define("scale",function(e,s){var d=i(this),g=e.mode,C=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==g?0:100),U=i.extend(!0,{from:i.effects.scaledDimensions(d),to:i.effects.scaledDimensions(d,C,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(U.from.opacity=1,U.to.opacity=0),i.effects.effect.size.call(this,U,s)}),i.effects.define("puff","hide",function(e,s){var d=i.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});i.effects.effect.scale.call(this,d,s)}),i.effects.define("pulsate","show",function(e,s){var d=i(this),g=e.mode,C="show"===g,nt=2*(e.times||5)+(C||"hide"===g?1:0),ut=e.duration/nt,vt=0,Wt=1,Bt=d.queue().length;for(!C&&d.is(":visible")||(d.css("opacity",0).show(),vt=1);Wt<nt;Wt++)d.animate({opacity:vt},ut,e.easing),vt=1-vt;d.animate({opacity:vt},ut,e.easing),d.queue(s),i.effects.unshift(d,Bt,1+nt)}),i.effects.define("shake",function(e,s){var d=1,g=i(this),C=e.direction||"left",U=e.distance||20,nt=e.times||3,ut=2*nt+1,vt=Math.round(e.duration/ut),Wt="up"===C||"down"===C?"top":"left",Bt="up"===C||"left"===C,xt={},Ft={},Kt={},ce=g.queue().length;for(i.effects.createPlaceholder(g),xt[Wt]=(Bt?"-=":"+=")+U,Ft[Wt]=(Bt?"+=":"-=")+2*U,Kt[Wt]=(Bt?"-=":"+=")+2*U,g.animate(xt,vt,e.easing);d<nt;d++)g.animate(Ft,vt,e.easing).animate(Kt,vt,e.easing);g.animate(Ft,vt,e.easing).animate(xt,vt/2,e.easing).queue(s),i.effects.unshift(g,ce,1+ut)}),i.effects.define("slide","show",function(e,s){var d,g,C=i(this),U={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},nt=e.mode,ut=e.direction||"left",vt="up"===ut||"down"===ut?"top":"left",Wt="up"===ut||"left"===ut,Bt=e.distance||C["top"==vt?"outerHeight":"outerWidth"](!0),xt={};i.effects.createPlaceholder(C),d=C.cssClip(),g=C.position()[vt],xt[vt]=(Wt?-1:1)*Bt+g,xt.clip=C.cssClip(),xt.clip[U[ut][1]]=xt.clip[U[ut][0]],"show"===nt&&(C.cssClip(xt.clip),C.css(vt,xt[vt]),xt.clip=d,xt[vt]=g),C.animate(xt,{queue:!1,duration:e.duration,easing:e.easing,complete:s})}),!1!==i.uiBackCompat&&i.effects.define("transfer",function(e,s){i(this).transfer(e,s)}),i.ui.focusable=function(e,s){var d,g,C,U,nt,ut=e.nodeName.toLowerCase();return"area"===ut?(g=(d=e.parentNode).name,!(!e.href||!g||"map"!==d.nodeName.toLowerCase())&&0<(C=i("img[usemap='#"+g+"']")).length&&C.is(":visible")):(/^(input|select|textarea|button|object)$/.test(ut)?(U=!e.disabled)&&(nt=i(e).closest("fieldset")[0])&&(U=!nt.disabled):U="a"===ut&&e.href||s,U&&i(e).is(":visible")&&function(vt){for(var Wt=vt.css("visibility");"inherit"===Wt;)Wt=(vt=vt.parent()).css("visibility");return"hidden"!==Wt}(i(e)))},i.extend(i.expr[":"],{focusable:function(e){return i.ui.focusable(e,null!=i.attr(e,"tabindex"))}}),i.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):i(this[0].form)},i.ui.formResetMixin={_formResetHandler:function(){var e=i(this);setTimeout(function(){var s=e.data("ui-form-reset-instances");i.each(s,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(i.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===i.fn.jquery.substring(0,3)&&(i.each(["Width","Height"],function(e,s){function d(nt,ut,vt,Wt){return i.each(g,function(){ut-=parseFloat(i.css(nt,"padding"+this))||0,vt&&(ut-=parseFloat(i.css(nt,"border"+this+"Width"))||0),Wt&&(ut-=parseFloat(i.css(nt,"margin"+this))||0)}),ut}var g="Width"===s?["Left","Right"]:["Top","Bottom"],C=s.toLowerCase(),U={innerWidth:i.fn.innerWidth,innerHeight:i.fn.innerHeight,outerWidth:i.fn.outerWidth,outerHeight:i.fn.outerHeight};i.fn["inner"+s]=function(nt){return void 0===nt?U["inner"+s].call(this):this.each(function(){i(this).css(C,d(this,nt)+"px")})},i.fn["outer"+s]=function(nt,ut){return"number"!=typeof nt?U["outer"+s].call(this,nt):this.each(function(){i(this).css(C,d(this,nt,!0,ut)+"px")})}}),i.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),i.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},i.ui.escapeSelector=(Tt=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,function(e){return e.replace(Tt,"\\$1")}),i.fn.labels=function(){var e,s,d,g,C;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(g=this.eq(0).parents("label"),(d=this.attr("id"))&&(C=(e=this.eq(0).parents().last()).add(e.length?e.siblings():this.siblings()),s="label[for='"+i.ui.escapeSelector(d)+"']",g=g.add(C.find(s).addBack(s))),this.pushStack(g))},i.fn.scrollParent=function(e){var s=this.css("position"),d="absolute"===s,g=e?/(auto|scroll|hidden)/:/(auto|scroll)/,C=this.parents().filter(function(){var U=i(this);return(!d||"static"!==U.css("position"))&&g.test(U.css("overflow")+U.css("overflow-y")+U.css("overflow-x"))}).eq(0);return"fixed"!==s&&C.length?C:i(this[0].ownerDocument||document)},i.extend(i.expr[":"],{tabbable:function(e){var s=i.attr(e,"tabindex"),d=null!=s;return(!d||0<=s)&&i.ui.focusable(e,d)}}),i.fn.extend({uniqueId:(Xe=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++Xe)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")})}}),i.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=i(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():i()}},_createIcons:function(){var e,s,d=this.options.icons;d&&(e=i("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+d.header),e.prependTo(this.headers),s=this.active.children(".ui-accordion-header-icon"),this._removeClass(s,d.header)._addClass(s,null,d.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,s){return"active"===e?void this._activate(s):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(s)),this._super(e,s),"collapsible"!==e||s||!1!==this.options.active||this._activate(0),void("icons"===e&&(this._destroyIcons(),s&&this._createIcons())))},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var s=i.ui.keyCode,d=this.headers.length,g=this.headers.index(e.target),C=!1;switch(e.keyCode){case s.RIGHT:case s.DOWN:C=this.headers[(g+1)%d];break;case s.LEFT:case s.UP:C=this.headers[(g-1+d)%d];break;case s.SPACE:case s.ENTER:this._eventHandler(e);break;case s.HOME:C=this.headers[0];break;case s.END:C=this.headers[d-1]}C&&(i(e.target).attr("tabIndex",-1),i(C).attr("tabIndex",0),i(C).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===i.ui.keyCode.UP&&e.ctrlKey&&i(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=i()):!1===e.active?this._activate(0):this.active.length&&!i.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=i()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,s=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),s&&(this._off(e.not(this.headers)),this._off(s.not(this.panels)))},_refresh:function(){var e,s=this.options,d=s.heightStyle,g=this.element.parent();this.active=this._findActive(s.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var C=i(this),U=C.uniqueId().attr("id"),nt=C.next(),ut=nt.uniqueId().attr("id");C.attr("aria-controls",ut),nt.attr("aria-labelledby",U)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(s.event),"fill"===d?(e=g.height(),this.element.siblings(":visible").each(function(){var C=i(this),U=C.css("position");"absolute"!==U&&"fixed"!==U&&(e-=C.outerHeight(!0))}),this.headers.each(function(){e-=i(this).outerHeight(!0)}),this.headers.next().each(function(){i(this).height(Math.max(0,e-i(this).innerHeight()+i(this).height()))}).css("overflow","auto")):"auto"===d&&(e=0,this.headers.next().each(function(){var C=i(this).is(":visible");C||i(this).show(),e=Math.max(e,i(this).css("height","").height()),C||i(this).hide()}).height(e))},_activate:function(e){var s=this._findActive(e)[0];s!==this.active[0]&&this._eventHandler({target:s=s||this.active[0],currentTarget:s,preventDefault:i.noop})},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):i()},_setupEvents:function(e){var s={keydown:"_keydown"};e&&i.each(e.split(" "),function(d,g){s[g]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,s),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var s,d,g=this.options,C=this.active,U=i(e.currentTarget),nt=U[0]===C[0],ut=nt&&g.collapsible,vt=ut?i():U.next(),Wt=C.next(),Bt={oldHeader:C,oldPanel:Wt,newHeader:ut?i():U,newPanel:vt};e.preventDefault(),nt&&!g.collapsible||!1===this._trigger("beforeActivate",e,Bt)||(g.active=!ut&&this.headers.index(U),this.active=nt?i():U,this._toggle(Bt),this._removeClass(C,"ui-accordion-header-active","ui-state-active"),g.icons&&(s=C.children(".ui-accordion-header-icon"),this._removeClass(s,null,g.icons.activeHeader)._addClass(s,null,g.icons.header)),nt||(this._removeClass(U,"ui-accordion-header-collapsed")._addClass(U,"ui-accordion-header-active","ui-state-active"),g.icons&&(d=U.children(".ui-accordion-header-icon"),this._removeClass(d,null,g.icons.header)._addClass(d,null,g.icons.activeHeader)),this._addClass(U.next(),"ui-accordion-content-active")))},_toggle:function(e){var s=e.newPanel,d=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=s,this.prevHide=d,this.options.animate?this._animate(s,d,e):(d.hide(),s.show(),this._toggleComplete(e)),d.attr({"aria-hidden":"true"}),d.prev().attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&d.length?d.prev().attr({tabIndex:-1,"aria-expanded":"false"}):s.length&&this.headers.filter(function(){return 0===parseInt(i(this).attr("tabIndex"),10)}).attr("tabIndex",-1),s.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,s,d){function g(){ut._toggleComplete(d)}var C,U,nt,ut=this,vt=0,Wt=e.css("box-sizing"),Bt=e.length&&(!s.length||e.index()<s.index()),xt=this.options.animate||{},Ft=Bt&&xt.down||xt;return"number"==typeof Ft&&(nt=Ft),"string"==typeof Ft&&(U=Ft),U=U||Ft.easing||xt.easing,nt=nt||Ft.duration||xt.duration,s.length?e.length?(C=e.show().outerHeight(),s.animate(this.hideProps,{duration:nt,easing:U,step:function(Kt,ce){ce.now=Math.round(Kt)}}),void e.hide().animate(this.showProps,{duration:nt,easing:U,complete:g,step:function(Kt,ce){ce.now=Math.round(Kt),"height"!==ce.prop?"content-box"===Wt&&(vt+=ce.now):"content"!==ut.options.heightStyle&&(ce.now=Math.round(C-s.outerHeight()-vt),vt=0)}})):s.animate(this.hideProps,nt,U,g):e.animate(this.showProps,nt,U,g)},_toggleComplete:function(e){var s=e.oldPanel,d=s.prev();this._removeClass(s,"ui-accordion-content-active"),this._removeClass(d,"ui-accordion-header-active")._addClass(d,"ui-accordion-header-collapsed"),s.length&&(s.parent()[0].className=s.parent()[0].className),this._trigger("activate",null,e)}}),i.ui.safeActiveElement=function(e){var s;try{s=e.activeElement}catch(d){s=e.body}return(s=s||e.body).nodeName||(s=e.body),s},i.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var s=i(e.target),d=i(i.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&s.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),s.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&d.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var s=i(e.target).closest(".ui-menu-item"),d=i(e.currentTarget);s[0]===d[0]&&(this._removeClass(d.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,d))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,s){var d=this.active||this.element.find(this.options.items).eq(0);s||this.focus(e,d)},blur:function(e){this._delay(function(){i.contains(this.element[0],i.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var s=i(this);s.data("ui-menu-submenu-caret")&&s.remove()})},_keydown:function(e){var s,d,g,C,U=!0;switch(e.keyCode){case i.ui.keyCode.PAGE_UP:this.previousPage(e);break;case i.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case i.ui.keyCode.HOME:this._move("first","first",e);break;case i.ui.keyCode.END:this._move("last","last",e);break;case i.ui.keyCode.UP:this.previous(e);break;case i.ui.keyCode.DOWN:this.next(e);break;case i.ui.keyCode.LEFT:this.collapse(e);break;case i.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case i.ui.keyCode.ENTER:case i.ui.keyCode.SPACE:this._activate(e);break;case i.ui.keyCode.ESCAPE:this.collapse(e);break;default:U=!1,d=this.previousFilter||"",C=!1,g=96<=e.keyCode&&e.keyCode<=105?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),g===d?C=!0:g=d+g,s=this._filterMenuItems(g),(s=C&&-1!==s.index(this.active.next())?this.active.nextAll(".ui-menu-item"):s).length||(g=String.fromCharCode(e.keyCode),s=this._filterMenuItems(g)),s.length?(this.focus(e,s),this.previousFilter=g,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}U&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,s,d,g,C=this,U=this.options.icons.submenu,nt=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=nt.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var ut=i(this),vt=ut.prev(),Wt=i("<span>").data("ui-menu-submenu-caret",!0);C._addClass(Wt,"ui-menu-icon","ui-icon "+U),vt.attr("aria-haspopup","true").prepend(Wt),ut.attr("aria-labelledby",vt.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),(e=nt.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var ut=i(this);C._isDivider(ut)&&C._addClass(ut,"ui-menu-divider","ui-widget-content")}),g=(d=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(d,"ui-menu-item")._addClass(g,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!i.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,s){if("icons"===e){var d=this.element.find(".ui-menu-icon");this._removeClass(d,null,this.options.icons.submenu)._addClass(d,null,s.submenu)}this._super(e,s)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e+""),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,s){var d,g,C;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(s),this.active=s.first(),g=this.active.children(".ui-menu-item-wrapper"),this._addClass(g,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",g.attr("id")),C=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(C,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(d=s.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(d),this.activeMenu=s.parent(),this._trigger("focus",e,{item:s})},_scrollIntoView:function(e){var s,d,g,C,U,nt;this._hasScroll()&&(s=parseFloat(i.css(this.activeMenu[0],"borderTopWidth"))||0,d=parseFloat(i.css(this.activeMenu[0],"paddingTop"))||0,g=e.offset().top-this.activeMenu.offset().top-s-d,C=this.activeMenu.scrollTop(),U=this.activeMenu.height(),nt=e.outerHeight(),g<0?this.activeMenu.scrollTop(C+g):U<g+nt&&this.activeMenu.scrollTop(C+g-U+nt))},blur:function(e,s){s||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var s=i.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(s)},collapseAll:function(e,s){clearTimeout(this.timer),this.timer=this._delay(function(){var d=s?this.element:i(e&&e.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(e),this._removeClass(d.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=d},this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!i(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var s=this.active&&this.active.parent().closest(".ui-menu-item",this.element);s&&s.length&&(this._close(),this.focus(e,s))},expand:function(e){var s=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();s&&s.length&&(this._open(s.parent()),this._delay(function(){this.focus(e,s)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,s,d){var g;this.active&&(g="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),g&&g.length&&this.active||(g=this.activeMenu.find(this.options.items)[s]()),this.focus(d,g)},nextPage:function(e){var s,d,g;return this.active?void(this.isLastItem()||(this._hasScroll()?(d=this.active.offset().top,g=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(s=i(this)).offset().top-d-g<0}),this.focus(e,s)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var s,d,g;return this.active?void(this.isFirstItem()||(this._hasScroll()?(d=this.active.offset().top,g=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(s=i(this)).offset().top-d+g}),this.focus(e,s)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||i(e.target).closest(".ui-menu-item");var s={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,s)},_filterMenuItems:function(e){var s=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),d=RegExp("^"+s,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return d.test(i.trim(i(this).children(".ui-menu-item-wrapper").text()))})}}),i.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,s,d,g=this.element[0].nodeName.toLowerCase(),C="textarea"===g,U="input"===g;this.isMultiLine=C||!U&&this._isContentEditable(this.element),this.valueMethod=this.element[C||U?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(nt){if(this.element.prop("readOnly"))s=d=e=!0;else{s=d=e=!1;var ut=i.ui.keyCode;switch(nt.keyCode){case ut.PAGE_UP:e=!0,this._move("previousPage",nt);break;case ut.PAGE_DOWN:e=!0,this._move("nextPage",nt);break;case ut.UP:e=!0,this._keyEvent("previous",nt);break;case ut.DOWN:e=!0,this._keyEvent("next",nt);break;case ut.ENTER:this.menu.active&&(e=!0,nt.preventDefault(),this.menu.select(nt));break;case ut.TAB:this.menu.active&&this.menu.select(nt);break;case ut.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(nt),nt.preventDefault());break;default:s=!0,this._searchTimeout(nt)}}},keypress:function(nt){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||nt.preventDefault());if(!s){var ut=i.ui.keyCode;switch(nt.keyCode){case ut.PAGE_UP:this._move("previousPage",nt);break;case ut.PAGE_DOWN:this._move("nextPage",nt);break;case ut.UP:this._keyEvent("previous",nt);break;case ut.DOWN:this._keyEvent("next",nt)}}},input:function(nt){return d?(d=!1,void nt.preventDefault()):void this._searchTimeout(nt)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(nt){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(nt),void this._change(nt))}}),this._initSource(),this.menu=i("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(nt){nt.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==i.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(nt,ut){var vt,Wt;return this.isNewMenu&&(this.isNewMenu=!1,nt.originalEvent&&/^mouse/.test(nt.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){i(nt.target).trigger(nt.originalEvent)})):(Wt=ut.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",nt,{item:Wt})&&nt.originalEvent&&/^key/.test(nt.originalEvent.type)&&this._value(Wt.value),void((vt=ut.item.attr("aria-label")||Wt.value)&&i.trim(vt).length&&(this.liveRegion.children().hide(),i("<div>").text(vt).appendTo(this.liveRegion))))},menuselect:function(nt,ut){var vt=ut.item.data("ui-autocomplete-item"),Wt=this.previous;this.element[0]!==i.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=Wt,this._delay(function(){this.previous=Wt,this.selectedItem=vt})),!1!==this._trigger("select",nt,{item:vt})&&this._value(vt.value),this.term=this._value(),this.close(nt),this.selectedItem=vt}}),this.liveRegion=i("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,s){this._super(e,s),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&s&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var s=this.menu.element[0];return e.target===this.element[0]||e.target===s||i.contains(s,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return(e=e&&(e.jquery||e.nodeType?i(e):this.document.find(e).eq(0)))&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,s,d=this;i.isArray(this.options.source)?(e=this.options.source,this.source=function(g,C){C(i.ui.autocomplete.filter(e,g.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(g,C){d.xhr&&d.xhr.abort(),d.xhr=i.ajax({url:s,data:g,dataType:"json",success:function(U){C(U)},error:function(){C([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var s=this.term===this._value(),d=this.menu.element.is(":visible");s&&(!s||d||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)||(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,s){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(s):!1!==this._trigger("search",s)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return i.proxy(function(s){e===this.requestIndex&&this.__response(s),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:i.map(e,function(s){return"string"==typeof s?{label:s,value:s}:i.extend({},s,{label:s.label||s.value,value:s.value||s.label})})},_suggest:function(e){var s=this.menu.element.empty();this._renderMenu(s,e),this.isNewMenu=!0,this.menu.refresh(),s.show(),this._resizeMenu(),s.position(i.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,s){var d=this;i.each(s,function(g,C){d._renderItemData(e,C)})},_renderItemData:function(e,s){return this._renderItem(e,s).data("ui-autocomplete-item",s)},_renderItem:function(e,s){return i("<li>").append(i("<div>").text(s.label)).appendTo(e)},_move:function(e,s){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](s):void this.search(null,s)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,s){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,s),s.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var s=e.prop("contentEditable");return"inherit"===s?this._isContentEditable(e.parent()):"true"===s}}),i.extend(i.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,s){var d=RegExp(i.ui.autocomplete.escapeRegex(s),"i");return i.grep(e,function(g){return d.test(g.label||g.value||g)})}}),i.widget("ui.autocomplete",i.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var s;this._superApply(arguments),this.options.disabled||this.cancelSearch||(s=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),i("<div>").text(s).appendTo(this.liveRegion))}});var $t,ee,ne=/ui-corner-([a-z]){2,6}/g;i.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,s=[];i.each(this.options.items,function(d,g){var C,U={};return g?"controlgroupLabel"===d?((C=e.element.find(g)).each(function(){var nt=i(this);nt.children(".ui-controlgroup-label-contents").length||nt.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(C,null,"ui-widget ui-widget-content ui-state-default"),void(s=s.concat(C.get()))):void(i.fn[d]&&(U=e["_"+d+"Options"]?e["_"+d+"Options"]("middle"):{classes:{}},e.element.find(g).each(function(){var nt=i(this),ut=nt[d]("instance"),vt=i.widget.extend({},U);if("button"!==d||!nt.parent(".ui-spinner").length){(ut=ut||nt[d]()[d]("instance"))&&(vt.classes=e._resolveClassesValues(vt.classes,ut)),nt[d](vt);var Wt=nt[d]("widget");i.data(Wt[0],"ui-controlgroup-data",ut||nt[d]("instance")),s.push(Wt[0])}}))):void 0}),this.childWidgets=i(i.unique(s)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var s=i(this).data("ui-controlgroup-data");s&&s[e]&&s[e]()})},_updateCornerClass:function(e,s){var d=this._buildSimpleOptions(s,"label").classes.label;this._removeClass(e,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(e,null,d)},_buildSimpleOptions:function(e,s){var d="vertical"===this.options.direction,g={classes:{}};return g.classes[s]={middle:"",first:"ui-corner-"+(d?"top":"left"),last:"ui-corner-"+(d?"bottom":"right"),only:"ui-corner-all"}[e],g},_spinnerOptions:function(e){var s=this._buildSimpleOptions(e,"ui-spinner");return s.classes["ui-spinner-up"]="",s.classes["ui-spinner-down"]="",s},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var s="vertical"===this.options.direction;return{width:s&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(s?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(s?"top":"left")},last:{"ui-selectmenu-button-open":s?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(s?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(e,s){var d={};return i.each(e,function(g){var C=s.options.classes[g]||"";C=i.trim(C.replace(ne,"")),d[g]=(C+" "+e[g]).replace(/\s+/g," ")}),d},_setOption:function(e,s){return"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,s),"disabled"===e?void this._callChildMethod(s?"disable":"enable"):void this.refresh()},refresh:function(){var e,s=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(i.each(["first","last"],function(d,g){var C=e[g]().data("ui-controlgroup-data");if(C&&s["_"+C.widgetName+"Options"]){var U=s["_"+C.widgetName+"Options"](1===e.length?"only":g);U.classes=s._resolveClassesValues(U.classes,C),C.element[C.widgetName](U)}else s._updateCornerClass(e[g](),g)}),this._callChildMethod("refresh"))}}),i.widget("ui.checkboxradio",[i.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,s,d=this,g=this._super()||{};return this._readType(),s=this.element.labels(),this.label=i(s[s.length-1]),this.label.length||i.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){d.originalLabel+=3===this.nodeType?i(this).text():this.outerHTML}),this.originalLabel&&(g.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(g.disabled=e),g},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();
1this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||i.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,s="input[name='"+i.ui.escapeSelector(e)+"']";return e?(this.form.length?i(this.form[0].elements).filter(s):i(s).filter(function(){return 0===i(this).form().length})).not(this.element):i([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var s=i(this).checkboxradio("instance");s&&s._removeClass(s.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,s){return"label"!==e||s?(this._super(e,s),"disabled"===e?(this._toggleClass(this.label,null,"ui-state-disabled",s),void(this.element[0].disabled=s)):void this.refresh()):void 0},_updateIcon:function(e){var s="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=i("<span>"),this.iconSpace=i("<span> </span>
1"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(s+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):s+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",s),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,s=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),s!==this.options.disabled&&this._setOptions({disabled:s})}}]),i.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,s=this._super()||{};return this.isInput=this.element.is("input"),null!=(e=this.element[0].disabled)&&(s.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(s.label=this.originalLabel),s},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===i.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,s){var d="iconPosition"!==e,g=d?this.options.iconPosition:s,C="top"===g||"bottom"===g;this.icon?d&&this._removeClass(this.icon,null,this.options.icon):(this.icon=i("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),d&&this._addClass(this.icon,null,s),this._attachIcon(g),C?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 6,451 bytes, line 1
1pace||(this.iconSpace=i("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(g))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){(void 0===e.showLabel?this.options.showLabel:e.showLabel)||(void 0===e.icon?this.options.icon:e.icon)||(e.showLabel=!0),this._super(e)},_setOption:function(e,s){"icon"===e&&(s?this._updateIcon(e,s):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,s),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!s),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(s):(this.element.html(s),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,s),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",s),(this.element[0].disabled=s)&&this.element.blur())},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),!1!==i.uiBackCompat&&(i.widget("ui.button",i.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,s){return"text"===e?void this._super("showLabel",s):("showLabel"===e&&(this.options.text=s),"icon"===e&&(this.options.icons.primary=s),"icons"===e&&(s.primary?(this._super("icon",s.primary),this._super("iconPosition","beginning")):s.secondary&&(this._super("icon",s.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),i.fn.button=($t=i.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?$t.apply(this,arguments):(i.ui.checkboxradio||i.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),i.fn.buttonset=function(){return i.ui.controlgroup||i.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),i.extend(i.ui,{datepicker:{version:"1.12.1"}}),i.extend(D.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return l(this._defaults,e||{}),this},_attachDatepicker:function(e,s){var d,g,C;g="div"===(d=e.nodeName.toLowerCase())||"span"===d,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(C=this._newInst(i(e),g)).settings=i.extend({},s||{}),"input"===d?this._connectDatepicker(e,C):g&&this._inlineDatepicker(e,C)},_newInst:function(e,s){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:s,dpDiv:s?K(i("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,s){var d=i(e);s.append=i([]),s.trigger=i([]),d.hasClass(this.markerClassName)||(this._attachments(d,s),d.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(s),i.data(e,"datepicker",s),s.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,s){var d,g,C,U=this._get(s,"appendText"),nt=this._get(s,"isRTL");s.append&&s.append.remove(),U&&(s.append=i("<span class='"+this._appendClass+"'>"+U+"</span>"),e[nt?"before":"after"](s.append)),e.off("focus",this._showDatepicker),s.trigger&&s.trigger.remove(),"focus"!==(d=this._get(s,"showOn"))&&"both"!==d||e.on("focus",this._showDatepicker),"button"!==d&&"both"!==d||(g=this._get(s,"buttonText"),C=this._get(s,"buttonImage"),s.trigger=i(this._get(s,"buttonImageOnly")?i("<img/>").addClass(this._triggerClass).attr({src:C,alt:g,title:g}):i("<button type='button'></button>").addClass(this._triggerClass).html(C?i("<img/>").attr({src:C,alt:g,title:g}):g)),e[nt?"before":"after"](s.trigger),s.trigger.on("click",function(){return i.datepicker._datepickerShowing&&i.datepicker._lastInput===e[0]?i.datepicker._hideDatepicker():(i.datepicker._datepickerShowing&&i.datepicker._lastInput!==e[0]&&i.datepicker._hideDatepicker(),i.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var s,d,g,C,U=new Date(2009,11,20),nt=this._get(e,"dateFormat");nt.match(/[DM]/)&&(U.setMonth((s=function(ut){for(C=g=d=0;ut.length>C;C++)ut[C].length>d&&(d=ut[C].length,g=C);return g})(this._get(e,nt.match(/MM/)?"monthNames":"monthNamesShort"))),U.setDate(s(this._get(e,nt.match(/DD/)?"dayNames":"dayNamesShort"))+20-U.getDay())),e.input.attr("size",this._formatDate(e,U).length)}},_inlineDatepicker:function(e,s){var d=i(e);d.hasClass(this.markerClassName)||(d.addClass(this.markerClassName).append(s.dpDiv),i.data(e,"datepicker",s),this._setDate(s,this._getDefaultDate(s),!0),this._updateDatepicker(s),this._updateAlternate(s),s.settings.disabled&&this._disableDatepicker(e),s.dpDiv.css("display","block"))},_dialogDatepicker:function(e,s,d,g,C){var nt,ut,vt,Wt,Bt=this._dialogInst;return Bt||(this.uuid+=1,this._dialogInput=i("<input type='text' id='dp"+this.uuid+"' style='position: absolute; top: -100px; width: 0px;'/>
1"),this._dialogInput.on("keydown",this._doKeyDown),i("body").append(this._dialogInput),(Bt=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},i.data(this._dialogInput[0],"datepicker",Bt)),l(Bt.settings,g||{}),s=s&&s.constructor===Date?this._formatDate(Bt,s):s,this._dialogInput.val(s),this._pos=C?C.length?C:[C.pageX,C.pageY]:null,this._pos||(nt=document.documentElement.clientWidth,ut=document.documentElement.clientHeight,vt=document.documentElement.scrollLeft||document.body.scrollLeft,Wt=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[nt/2-100+vt,ut/2-150+Wt]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),Bt.settings.onSelect=d,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),i.blockUI&&i.blockUI(this.dpDiv),i.data(this._dialogInput[0],"datepicker",Bt),this},_destroyDatepicker:function(e){var s,d=i(e),g=i.data(e,"datepicker");d.hasClass(this.markerClassName)&&(s=e.nodeName.toLowerCase(),i.removeData(e,"datepicker"),"input"===s?(g.append.remove(),g.trigger.remove(),d.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==s&&"span"!==s||d.removeClass(this.markerClassName).empty(),ee===g&&(ee=null))},_enableDatepicker:function(e){var s,d,g=i(e),C=i.data(e,"datepicker");g.hasClass(this.markerClassName)&&("input"===(s=e.nodeName.toLowerCase())?(e.disabled=!1,C.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==s&&"span"!==s||((d=g.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=i.map(this._disabledInputs,function(U){return U===e?null:U}))},_disableDatepicker:function(e){var s,d,g=i(e),C=i.data(e,"datepicker");g.hasClass(this.markerClassName)&&("input"===(s=e.nodeName.toLowerCase())?(e.disabled=!0,C.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==s&&"span"!==s||((d=g.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=i.map(this._disabledInputs,function(U){return U===e?null:U}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var s=0;this._disabledInputs.length>s;s++)if(this._disabledInputs[s]===e)return!0;return!1},_getInst:function(e){try{return i.data(e,"datepicker")}catch(s){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,s,d){var g,C,U,nt,ut=this._getInst(e);return 2===arguments.length&&"string"==typeof s?"defaults"===s?i.extend({},i.datepicker._defaults):ut?"all"===s?i.extend({},ut.settings):this._get(ut,s):null:(g=s||{},"string"==typeof s&&((g={})[s]=d),void(ut&&(this._curInst===ut&&this._hideDatepicker(),C=this._getDateDatepicker(e,!0),U=this._getMinMaxDate(ut,"min"),nt=this._getMinMaxDate(ut,"max"),l(ut.settings,g),null!==U&&void 0!==g.dateFormat&&void 0===g.minDate&&(ut.settings.minDate=this._formatDate(ut,U)),null!==nt&&void 0!==g.dateFormat&&void 0===g.maxDate&&(ut.settings.maxDate=this._formatDate(ut,nt)),"disabled"in g&&(g.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(i(e),ut),this._autoSize(ut),this._setDate(ut,C),this._updateAlternate(ut),this._updateDatepicker(ut))))},_changeDatepicker:function(e,s,d){this._optionDatepicker(e,s,d)},_refreshDatepicker:function(e){var s=this._getInst(e);s&&this._updateDatepicker(s)},_setDateDatepicker:function(e,s){var d=this._getInst(e);d&&(this._setDate(d,s),this._updateDatepicker(d),this._updateAlternate(d))},_getDateDatepicker:function(e,s){var d=this._getInst(e);return d&&!d.inline&&this._setDateFromField(d,s),d?this._getDate(d):null},_doKeyDown:function(e){var s,d,g,C=i.datepicker._getInst(e.target),U=!0,nt=C.dpDiv.is(".ui-datepicker-rtl");if(C._keyEvent=!0,i.datepicker._datepickerShowing)switch(e.keyCode){case 9:i.datepicker._hideDatepicker(),U=!1;break;case 13:return(g=i("td."+i.datepicker._dayOverClass+":not(."+i.datepicker._currentClass+")",C.dpDiv))[0]&&i.datepicker._selectDay(e.target,C.selectedMonth,C.selectedYear,g[0]),(s=i.datepicker._get(C,"onSelect"))?(d=i.datepicker._formatDate(C),s.apply(C.input?C.input[0]:null,[d,C])):i.datepicker._hideDatepicker(),!1;case 27:i.datepicker._hideDatepicker();break;case 33:i.datepicker._adjustDate(e.target,e.ctrlKey?-i.datepicker._get(C,"stepBigMonths"):-i.datepicker._get(C,"stepMonths"),"M");break;case 34:i.datepicker._adjustDate(e.target,e.ctrlKey?+i.datepicker._get(C,"stepBigMonths"):+i.datepicker._get(C,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&i.datepicker._clearDate(e.target),U=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&i.datepicker._gotoToday(e.target),U=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&i.datepicker._adjustDate(e.target,nt?1:-1,"D"),U=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&i.datepicker._adjustDate(e.target,e.ctrlKey?-i.datepicker._get(C,"stepBigMonths"):-i.datepicker._get(C,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&i.datepicker._adjustDate(e.target,-7,"D"),U=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&i.datepicker._adjustDate(e.target,nt?-1:1,"D"),U=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&i.datepicker._adjustDate(e.target,e.ctrlKey?+i.datepicker._get(C,"stepBigMonths"):+i.datepicker._get(C,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&i.datepicker._adjustDate(e.target,7,"D"),U=e.ctrlKey||e.metaKey;break;default:U=!1}else 36===e.keyCode&&e.ctrlKey?i.datepicker._showDatepicker(this):U=!1;U&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var s,d,g=i.datepicker._getInst(e.target);return i.datepicker._get(g,"constrainInput")?(s=i.datepicker._possibleChars(i.datepicker._get(g,"dateFormat")),d=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||d<" "||!s||-1<s.indexOf(d)):void 0},_doKeyUp:function(e){var s=i.datepicker._getInst(e.target);if(s.input.val()!==s.lastVal)try{i.datepicker.parseDate(i.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,i.datepicker._getFormatConfig(s))&&(i.datepicker._setDateFromField(s),i.datepicker._updateAlternate(s),i.datepicker._updateDatepicker(s))}catch(d){}return!0},_showDatepicker:function(e){var s,d,g,C,U,nt,ut;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=i("input",e.parentNode)[0]),i.datepicker._isDisabledDatepicker(e)||i.datepicker._lastInput===e||(s=i.datepicker._getInst(e),i.datepicker._curInst&&i.datepicker._curInst!==s&&(i.datepicker._curInst.dpDiv.stop(!0,!0),s&&i.datepicker._datepickerShowing&&i.datepicker._hideDatepicker(i.datepicker._curInst.input[0])),!1!==(g=(d=i.datepicker._get(s,"beforeShow"))?d.apply(e,[e,s]):{})&&(l(s.settings,g),s.lastVal=null,i.datepicker._lastInput=e,i.datepicker._setDateFromField(s),i.datepicker._inDialog&&(e.value=""),i.datepicker._pos||(i.datepicker._pos=i.datepicker._findPos(e),i.datepicker._pos[1]+=e.offsetHeight),C=!1,i(e).parents().each(function(){return!(C|="fixed"===i(this).css("position"))}),U={left:i.datepicker._pos[0],top:i.datepicker._pos[1]},i.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),i.datepicker._updateDatepicker(s),U=i.datepicker._checkOffset(s,U,C),s.dpDiv.css({position:i.datepicker._inDialog&&i.blockUI?"static":C?"fixed":"absolute",display:"none",left:U.left+"px",to
vendor: 5,426 bytes, line 1
1p:U.top+"px"}),s.inline||(nt=i.datepicker._get(s,"showAnim"),ut=i.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(vt){for(var Wt,Bt;vt.length&&vt[0]!==document;){if(("absolute"===(Wt=vt.css("position"))||"relative"===Wt||"fixed"===Wt)&&(Bt=parseInt(vt.css("zIndex"),10),!isNaN(Bt)&&0!==Bt))return Bt;vt=vt.parent()}return 0}(i(e))+1),i.datepicker._datepickerShowing=!0,i.effects&&i.effects.effect[nt]?s.dpDiv.show(nt,i.datepicker._get(s,"showOptions"),ut):s.dpDiv[nt||"show"](nt?ut:null),i.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),i.datepicker._curInst=s)))},_updateDatepicker:function(e){this.maxRows=4,(ee=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var s,d=this._getNumberOfMonths(e),g=d[1],C=e.dpDiv.find("."+this._dayOverClass+" a");0<C.length&&F.apply(C.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<g&&e.dpDiv.addClass("ui-datepicker-multi-"+g).css("width",17*g+"em"),e.dpDiv[(1!==d[0]||1!==d[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===i.datepicker._curInst&&i.datepicker._datepickerShowing&&i.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(s=e.yearshtml,setTimeout(function(){s===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),s=e.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,s,d){var g=e.dpDiv.outerWidth(),C=e.dpDiv.outerHeight(),U=e.input?e.input.outerWidth():0,nt=e.input?e.input.outerHeight():0,ut=document.documentElement.clientWidth+(d?0:i(document).scrollLeft()),vt=document.documentElement.clientHeight+(d?0:i(document).scrollTop());return s.left-=this._get(e,"isRTL")?g-U:0,s.left-=d&&s.left===e.input.offset().left?i(document).scrollLeft():0,s.top-=d&&s.top===e.input.offset().top+nt?i(document).scrollTop():0,s.left-=Math.min(s.left,s.left+g>ut&&g<ut?Math.abs(s.left+g-ut):0),s.top-=Math.min(s.top,s.top+C>vt&&C<vt?Math.abs(C+nt):0),s},_findPos:function(e){for(var s,d=this._getInst(e),g=this._get(d,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||i.expr.filters.hidden(e));)e=e[g?"previousSibling":"nextSibling"];return[(s=i(e).offset()).left,s.top]},_hideDatepicker:function(e){var s,d,g,C,U=this._curInst;!U||e&&U!==i.data(e,"datepicker")||this._datepickerShowing&&(s=this._get(U,"showAnim"),d=this._get(U,"duration"),g=function(){i.datepicker._tidyDialog(U)},i.effects&&(i.effects.effect[s]||i.effects[s])?U.dpDiv.hide(s,i.datepicker._get(U,"showOptions"),d,g):U.dpDiv["slideDown"===s?"slideUp":"fadeIn"===s?"fadeOut":"hide"](s?d:null,g),s||g(),this._datepickerShowing=!1,(C=this._get(U,"onClose"))&&C.apply(U.input?U.input[0]:null,[U.input?U.input.val():"",U]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),i.blockUI&&(i.unblockUI(),i("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(i.datepicker._curInst){var s=i(e.target),d=i.datepicker._getInst(s[0]);(s[0].id===i.datepicker._mainDivId||0!==s.parents("#"+i.datepicker._mainDivId).length||s.hasClass(i.datepicker.markerClassName)||s.closest("."+i.datepicker._triggerClass).length||!i.datepicker._datepickerShowing||i.datepicker._inDialog&&i.blockUI)&&(!s.hasClass(i.datepicker.markerClassName)||i.datepicker._curInst===d)||i.datepicker._hideDatepicker()}},_adjustDate:function(e,s,d){var g=i(e),C=this._getInst(g[0]);this._isDisabledDatepicker(g[0])||(this._adjustInstDate(C,s+("M"===d?this._get(C,"showCurrentAtPos"):0),d),this._updateDatepicker(C))},_gotoToday:function(e){var s,d=i(e),g=this._getInst(d[0]);this._get(g,"gotoCurrent")&&g.currentDay?(g.selectedDay=g.currentDay,g.drawMonth=g.selectedMonth=g.currentMonth,g.drawYear=g.selectedYear=g.currentYear):(s=new Date,g.selectedDay=s.getDate(),g.drawMonth=g.selectedMonth=s.getMonth(),g.drawYear=g.selectedYear=s.getFullYear()),this._notifyChange(g),this._adjustDate(d)},_selectMonthYear:function(e,s,d){var g=i(e),C=this._getInst(g[0]);C["selected"+("M"===d?"Month":"Year")]=C["draw"+("M"===d?"Month":"Year")]=parseInt(s.options[s.selectedIndex].value,10),this._notifyChange(C),this._adjustDate(g)},_selectDay:function(e,s,d,g){var C,U=i(e);i(g).hasClass(this._unselectableClass)||this._isDisabledDatepicker(U[0])||((C=this._getInst(U[0])).selectedDay=C.currentDay=i("a",g).html(),C.selectedMonth=C.currentMonth=s,C.selectedYear=C.currentYear=d,this._selectDate(e,this._formatDate(C,C.currentDay,C.currentMonth,C.currentYear)))},_clearDate:function(e){var s=i(e);this._selectDate(s,"")},_selectDate:function(e,s){var d,g=i(e),C=this._getInst(g[0]);s=null!=s?s:this._formatDate(C),C.input&&C.input.val(s),this._updateAlternate(C),(d=this._get(C,"onSelect"))?d.apply(C.input?C.input[0]:null,[s,C]):C.input&&C.input.trigger("change"),C.inline?this._updateDatepicker(C):(this._hideDatepicker(),this._lastInput=C.input[0],"object"!=typeof C.input[0]&&C.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var s,d,g,C=this._get(e,"altField");C&&(s=this._get(e,"altFormat")||this._get(e,"dateFormat"),d=this._getDate(e),g=this.formatDate(s,d,this._getFormatConfig(e)),i(C).val(g))}
1,noWeekends:function(e){var s=e.getDay();return[0<s&&s<6,""]},iso8601Week:function(e){var s,d=new Date(e.getTime());return d.setDate(d.getDate()+4-(d.getDay()||7)),s=d.getTime(),d.setMonth(0),d.setDate(1),Math.floor(Math.round((s-d)/864e5)/7)+1},parseDate:function(e,s,d){if(null==e||null==s)throw"Invalid arguments";if(""==(s="object"==typeof s?""+s:s+""))return null;function g(Ii){var Ti=e.length>ut+1&&e.charAt(ut+1)===Ii;return Ti&&ut++,Ti}function C(Ii){var Ti=g(Ii),rn="@"===Ii?14:"!"===Ii?20:"y"===Ii&&Ti?4:"o"===Ii?3:2,Ei=RegExp("^\\d{"+("y"===Ii?rn:1)+","+rn+"}"),si=s.substring(xt).match(Ei);if(!si)throw"Missing number at position "+xt;return xt+=si[0].length,parseInt(si[0],10)}function U(Ii,Ti,rn){var Ei=-1,si=i.map(g(Ii)?rn:Ti,function($i,an){return[[an,$i]]}).sort(function($i,an){return-($i[1].length-an[1].length)});if(i.each(si,function($i,an){var Ci=an[1];return s.substr(xt,Ci.length).toLowerCase()===Ci.toLowerCase()?(Ei=an[0],xt+=Ci.length,!1):void 0}),-1!==Ei)return Ei+1;throw"Unknown name at position "+xt}function nt(){if(s.charAt(xt)!==e.charAt(ut))throw"Unexpected literal at position "+xt;xt++}var ut,vt,Wt,Bt,xt=0,Ft=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,Kt="string"!=typeof Ft?Ft:(new Date).getFullYear()%100+parseInt(Ft,10),ce=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,we=(d?d.dayNames:null)||this._defaults.dayNames,Se=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,Ye=(d?d.monthNames:null)||this._defaults.monthNames,Je=-1,ni=-1,ci=-1,ri=-1,yi=!1;for(ut=0;e.length>ut;ut++)if(yi)"'"!==e.charAt(ut)||g("'")?nt():yi=!1;else switch(e.charAt(ut)){case"d":ci=C("d");break;case"D":U("D",ce,we);break;case"o":ri=C("o");break;case"m":ni=C("m");break;case"M":ni=U("M",Se,Ye);break;case"y":Je=C("y");break;case"@":Je=(Bt=new Date(C("@"))).getFullYear(),ni=Bt.getMonth()+1,ci=Bt.getDate();break;case"!":Je=(Bt=new Date((C("!")-this._ticksTo1970)/1e4)).getFullYear(),ni=Bt.getMonth()+1,ci=Bt.getDate();break;case"'":g("'")?nt():yi=!0;break;default:nt()}if(s.length>xt&&(Wt=s.substr(xt),!/^\s+/.test(Wt)))throw"Extra/unparsed characters found in date: "+Wt;if(-1===Je?Je=(new Date).getFullYear():Je<100&&(Je+=(new Date).getFullYear()-(new Date).getFullYear()%100+(Je<=Kt?0:-100)),-1<ri)for(ni=1,ci=ri;!(ci<=(vt=this._getDaysInMonth(Je,ni-1)));)ni++,ci-=vt;if((Bt=this._daylightSavingAdjust(new Date(Je,ni-1,ci))).getFullYear()!==Je||Bt.getMonth()+1!==ni||Bt.getDate()!==ci)throw"Invalid date";return Bt},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,s,d){if(!s)return"";function g(Kt){var ce=e.length>nt+1&&e.charAt(nt+1)===Kt;return ce&&nt++,ce}function C(Kt,ce,we){var Se=""+ce;if(g(Kt))for(;we>Se.length;)Se="0"+Se;return Se}function U(Kt,ce,we,Se){return g(Kt)?Se[ce]:we[ce]}var nt,ut=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,vt=(d?d.dayNames:null)||this._defaults.dayNames,Wt=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,Bt=(d?d.monthNames:null)||this._defaults.monthNames,xt="",Ft=!1;if(s)for(nt=0;e.length>nt;nt++)if(Ft)"'"!==e.charAt(nt)||g("'")?xt+=e.charAt(nt):Ft=!1;else switch(e.charAt(nt)){case"d":xt+=C("d",s.getDate(),2);break;case"D":xt+=U("D",s.getDay(),ut,vt);break;case"o":xt+=C("o",Math.round((new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime()-new Date(s.getFullYear(),0,0).getTime())/864e5),3);break;case"m":xt+=C("m",s.getMonth()+1,2);break;case"M":xt+=U("M",s.getMonth(),Wt,Bt);break;case"y":xt+=g("y")?s.getFullYear():(s.getFullYear()%100<10?"0":"")+s.getFullYear()%100;break;case"@":xt+=s.getTime();break;case"!":xt+=1e4*s.getTime()+this._ticksTo1970;break;case"'":g("'")?xt+="'":Ft=!0;break;default:xt+=e.charAt(nt)}return xt},_possibleChars:function(e){function s(U){var nt=e.length>d+1&&e.charAt(d+1)===U;return nt&&d++,nt}var d,g="",C=!1;for(d=0;e.length>d;d++)if(C)"'"!==e.charAt(d)||s("'")?g+=e.charAt(d):C=!1;else switch(e.charAt(d)){case"d":case"m":case"y":case"@":g+="0123456789";break;case"D":case"M":return null;case"'":s("'")?g+="'":C=!0;break;default:g+=e.charAt(d)}return g},_get:function(e,s){return void 0!==e.settings[s]?e.settings[s]:this._defaults[s]},_setDateFromField:function(e,s){if(e.input.val()!==e.lastVal){var d=this._get(e,"dateFormat"),g=e.lastVal=e.input?e.input.val():null,C=this._getDefaultDate(e),U=C,nt=this._getFormatConfig(e);try{U=this.parseDate(d,g,nt)||C}catch(ut){g=s?"":g}e.selectedDay=U.getDate(),e.drawMonth=e.selectedMonth=U.getMonth(),e.drawYear=e.selectedYear=U.getFullYear(),e.currentDay=g?U.getDate():0,e.currentMonth=g?U.getMonth():0,e.currentYear=g?U.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(e,s,d){var g,C,U=null==s||""===s?d:"string"==typeof s?function(nt){try{return i.datepicker.parseDate(i.datepicker._get(e,"dateFormat"),nt,i.datepicker._getFormatConfig(e))}catch(Kt){}for(var ut=(nt.toLowerCase().match(/^c/)?i.datepicker._getDate(e):null)||new Date,vt=ut.getFullYear(),Wt=ut.getMonth(),Bt=ut.getDate(),xt=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,Ft=
vendor: 6,765 bytes, line 1
1xt.exec(nt);Ft;){switch(Ft[2]||"d"){case"d":case"D":Bt+=parseInt(Ft[1],10);break;case"w":case"W":Bt+=7*parseInt(Ft[1],10);break;case"m":case"M":Wt+=parseInt(Ft[1],10),Bt=Math.min(Bt,i.datepicker._getDaysInMonth(vt,Wt));break;case"y":case"Y":vt+=parseInt(Ft[1],10),Bt=Math.min(Bt,i.datepicker._getDaysInMonth(vt,Wt))}Ft=xt.exec(nt)}return new Date(vt,Wt,Bt)}(s):"number"==typeof s?isNaN(s)?d:(g=s,(C=new Date).setDate(C.getDate()+g),C):new Date(s.getTime());return(U=U&&""+U=="Invalid Date"?d:U)&&(U.setHours(0),U.setMinutes(0),U.setSeconds(0),U.setMilliseconds(0)),this._daylightSavingAdjust(U)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,s,d){var g=!s,C=e.selectedMonth,U=e.selectedYear,nt=this._restrictMinMax(e,this._determineDate(e,s,new Date));e.selectedDay=e.currentDay=nt.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=nt.getMonth(),e.drawYear=e.selectedYear=e.currentYear=nt.getFullYear(),C===e.selectedMonth&&U===e.selectedYear||d||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(g?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var s=this._get(e,"stepMonths"),d="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var g={prev:function(){i.datepicker._adjustDate(d,-s,"M")},next:function(){i.datepicker._adjustDate(d,+s,"M")},hide:function(){i.datepicker._hideDatepicker()},today:function(){i.datepicker._gotoToday(d)},selectDay:function(){return i.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return i.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return i.datepicker._selectMonthYear(d,this,"Y"),!1}};i(this).on(this.getAttribute("data-event"),g[this.getAttribute("data-handler")])})},_generateHTML:function(e){var s,d,g,C,U,nt,ut,vt,Wt,Bt,xt,Ft,Kt,ce,we,Se,Ye,Je,ni,ci,ri,yi,Ii,Ti,rn,Ei,si,$i,an,Ci,fn,yn,bn,Pi,Ln,Sn,mn,Xi,Qi,Rn=new Date,Un=this._daylightSavingAdjust(new Date(Rn.getFullYear(),Rn.getMonth(),Rn.getDate())),Fi=this._get(e,"isRTL"),Di=this._get(e,"showButtonPanel"),ai=this._get(e,"hideIfNoPrevNext"),Wi=this._get(e,"navigationAsDateFormat"),We=this._getNumberOfMonths(e),us=this._get(e,"showCurrentAtPos"),$n=this._get(e,"stepMonths"),Zi=1!==We[0]||1!==We[1],di=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),Gn=this._getMinMaxDate(e,"min"),En=this._getMinMaxDate(e,"max"),Ai=e.drawMonth-us,ln=e.drawYear;if(Ai<0&&(Ai+=12,ln--),En)for(s=this._daylightSavingAdjust(new Date(En.getFullYear(),En.getMonth()-We[0]*We[1]+1,En.getDate())),s=Gn&&s<Gn?Gn:s;this._daylightSavingAdjust(new Date(ln,Ai,1))>s;)--Ai<0&&(Ai=11,ln--);for(e.drawMonth=Ai,e.drawYear=ln,d=this._get(e,"prevText"),d=Wi?this.formatDate(d,this._daylightSavingAdjust(new Date(ln,Ai-$n,1)),this._getFormatConfig(e)):d,g=this._canAdjustMonth(e,-1,ln,Ai)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+d+"'><span class='ui-icon ui-icon-circle-triangle-"+(Fi?"e":"w")+"'>"+d+"</span></a>":ai?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+d+"'><span class='ui-icon ui-icon-circle-triangle-"+(Fi?"e":"w")+"'>"+d+"</span></a>",C=this._get(e,"nextText"),C=Wi?this.formatDate(C,this._daylightSavingAdjust(new Date(ln,Ai+$n,1)),this._getFormatConfig(e)):C,U=this._canAdjustMonth(e,1,ln,Ai)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+C+"'><span class='ui-icon ui-icon-circle-triangle-"+(Fi?"w":"e")+"'>"+C+"</span></a>":ai?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+C+"'><span class='ui-icon ui-icon-circle-triangle-"+(Fi?"w":"e")+"'>"+C+"</span></a>",nt=this._get(e,"currentText"),ut=this._get(e,"gotoCurrent")&&e.currentDay?di:Un,nt=Wi?this.formatDate(nt,ut,this._getFormatConfig(e)):nt,vt=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",Wt=Di?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Fi?vt:"")+(this._isInRange(e,ut)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+nt+"</button>":"")+(Fi?"":vt)+"</div>":"",Bt=parseInt(this._get(e,"firstDay"),10),Bt=isNaN(Bt)?0:Bt,xt=this._get(e,"showWeek"),Ft=this._get(e,"dayNames"),Kt=this._get(e,"dayNamesMin"),ce=this._get(e,"monthNames"),we=this._get(e,"monthNamesShort"),Se=this._get(e,"beforeShowDay"),Ye=this._get(e,"showOtherMonths"),Je=this._get(e,"selectOtherMonths"),ni=this._getDefaultDate(e),ci="",yi=0;We[0]>yi;yi++){for(Ii="",this.maxRows=4,Ti=0;We[1]>Ti;Ti++){if(rn=this._daylightSavingAdjust(new Date(ln,Ai,e.selectedDay)),Ei=" ui-corner-all",si="",Zi){if(si+="<div class='ui-datepicker-group",1<We[1])switch(Ti){case 0:si+=" ui-datepicker-group-first",Ei=" ui-corner-"+(Fi?"right":"left");break;case We[1]-1:si+=" ui-datepicker-group-last",Ei=" ui-corner-"+(Fi?"left":"right");break;default:si+=" ui-datepicker-group-middle",Ei=""}si+="'>"}for(si+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+Ei+"'>"+(/all|left/.test(Ei)&&0===yi?Fi?U:g:"")+(/all|right/.test(Ei)&&0===yi?Fi?g:U:"")+this._generateMonthYearHeader(e,Ai,ln,Gn,En,0<yi||0<Ti,ce,we)+"</div><table class='ui-datepicker-calendar'><thead><tr>",$i=xt?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",ri=0;ri<7;ri++)$i+="<th scope='col'"+(5<=(ri+Bt+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+Ft[an=(ri+Bt)%7]+"'>"+Kt[an]+"</span></th>";for(si+=$i+"</tr></thead><tbody>",Ci=this._getDaysInMonth(ln,Ai),ln===e.selectedYear&&Ai===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,Ci)),fn=(this._getFirstDayOfMonth(ln,Ai)-Bt+7)%7,yn=Math.ceil((fn+Ci)/7),this.maxRows=bn=Zi&&this.maxRows>yn?this.maxRows:yn,Pi=this._daylightSavingAdjust(new Date(ln,Ai,1-fn)),Ln=0;Ln<bn;Ln++){for(si+="<tr>",Sn=xt?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(Pi)+"</td>":"",ri=0;ri<7;ri++)mn=Se?Se.apply(e.input?e.input[0]:null,[Pi]):[!0,""],Qi=(Xi=Pi.getMonth()!==Ai)&&!Je||!mn[0]||Gn&&Pi<Gn||En&&En<Pi,Sn+="<td class='"+(5<=(ri+Bt+6)%7?" ui-datepicker-week-end":"")+(Xi?" ui-datepicker-other-month":"")+(Pi.getTime()===rn.getTime()&&Ai===e.selectedMonth&&e._keyEvent||ni.getTime()===Pi.getTime()&&ni.getTime()===rn.getTime()?" "+this._dayOverClass:"")+(Qi?" "+this._unselectableClass+" ui-state-disabled":"")+(Xi&&!Ye?"":" "+mn[
vendor: 4,271 bytes, line 1
11]+(Pi.getTime()===di.getTime()?" "+this._currentClass:"")+(Pi.getTime()===Un.getTime()?" ui-datepicker-today":""))+"'"+(Xi&&!Ye||!mn[2]?"":" title='"+mn[2].replace(/'/g,"'")+"'")+(Qi?"":" data-handler='selectDay' data-event='click' data-month='"+Pi.getMonth()+"' data-year='"+Pi.getFullYear()+"'")+">"+(Xi&&!Ye?" ":Qi?"<span class='ui-state-default'>"+Pi.getDate()+"</span>":"<a class='ui-state-default"+(Pi.getTime()===Un.getTime()?" ui-state-highlight":"")+(Pi.getTime()===di.getTime()?" ui-state-active":"")+(Xi?" ui-priority-secondary":"")+"' href='#'>"+Pi.getDate()+"</a>")+"</td>",Pi.setDate(Pi.getDate()+1),Pi=this._daylightSavingAdjust(Pi);si+=Sn+"</tr>"}11<++Ai&&(Ai=0,ln++),Ii+=si+="</tbody></table>"+(Zi?"</div>"+(0<We[0]&&Ti===We[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}ci+=Ii}return ci+=Wt,e._keyEvent=!1,ci},_generateMonthYearHeader:function(e,s,d,g,C,U,nt,ut){var vt,Wt,Bt,xt,Ft,Kt,ce,we,Se=this._get(e,"changeMonth"),Ye=this._get(e,"changeYear"),Je=this._get(e,"showMonthAfterYear"),ni="<div class='ui-datepicker-title'>",ci="";if(U||!Se)ci+="<span class='ui-datepicker-month'>"+nt[s]+"</span>";else{for(vt=g&&g.getFullYear()===d,Wt=C&&C.getFullYear()===d,ci+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",Bt=0;Bt<12;Bt++)(!vt||Bt>=g.getMonth())&&(!Wt||C.getMonth()>=Bt)&&(ci+="<option value='"+Bt+"'"+(Bt===s?" selected='selected'":"")+">"+ut[Bt]+"</option>");ci+="</select>"}if(Je||(ni+=ci+(!U&&Se&&Ye?"":" ")),!e.yearshtml)if(e.yearshtml="",U||!Ye)ni+="<span class='ui-datepicker-year'>"+d+"</span>";else{for(xt=this._get(e,"yearRange").split(":"),Ft=(new Date).getFullYear(),ce=(Kt=function(ri){var yi=ri.match(/c[+\-].*/)?d+parseInt(ri.substring(1),10):ri.match(/[+\-].*/)?Ft+parseInt(ri,10):parseInt(ri,10);return isNaN(yi)?Ft:yi})(xt[0]),we=Math.max(ce,Kt(xt[1]||"")),ce=g?Math.max(ce,g.getFullYear()):ce,we=C?Math.min(we,C.getFullYear()):we,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";ce<=we;ce++)e.yearshtml+="<option value='"+ce+"'"+(ce===d?" selected='selected'":"")+">"+ce+"</option>";e.yearshtml+="</select>",ni+=e.yearshtml,e.yearshtml=null}return ni+=this._get(e,"yearSuffix"),Je&&(ni+=(!U&&Se&&Ye?"":" ")+ci),ni+"</div>"},_adjustInstDate:function(e,s,d){var g=e.selectedYear+("Y"===d?s:0),C=e.selectedMonth+("M"===d?s:0),U=Math.min(e.selectedDay,this._getDaysInMonth(g,C))+("D"===d?s:0),nt=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(g,C,U)));e.selectedDay=nt.getDate(),e.drawMonth=e.selectedMonth=nt.getMonth(),e.drawYear=e.selectedYear=nt.getFullYear(),"M"!==d&&"Y"!==d||this._notifyChange(e)},_restrictMinMax:function(e,s){var d=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max"),C=d&&s<d?d:s;return g&&g<C?g:C},_notifyChange:function(e){var s=this._get(e,"onChangeMonthYear");s&&s.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var s=this._get(e,"numberOfMonths");return null==s?[1,1]:"number"==typeof s?[1,s]:s},_getMinMaxDate:function(e,s){return this._determineDate(e,this._get(e,s+"Date"),null)},_getDaysInMonth:function(e,s){return 32-this._daylightSavingAdjust(new Date(e,s,32)).getDate()},_getFirstDayOfMonth:function(e,s){return new Date(e,s,1).getDay()},_canAdjustMonth:function(e,s,d,g){var C=this._getNumberOfMonths(e),U=this._daylightSavingAdjust(new Date(d,g+(s<0?s:C[0]*C[1]),1));return s<0&&U.setDate(this._getDaysInMonth(U.getFullYear(),U.getMonth())),this._isInRange(e,U)},_isInRange:function(e,s){var d,g,C=this._getMinMaxDate(e,"min"),U=this._getMinMaxDate(e,"max"),nt=null,ut=null,vt=this._get(e,"yearRange");return vt&&(d=vt.split(":"),g=(new Date).getFullYear(),nt=parseInt(d[0],10),ut=parseInt(d[1],10),d[0].match(/[+\-].*/)&&(nt+=g),d[1].match(/[+\-].*/)&&(ut+=g)),(!C||s.getTime()>=C.getTime())&&(!U||s.getTime()<=U.getTime())&&(!nt||s.getFullYear()>=nt)&&(!ut||ut>=s.getFullYear())},_getFormatConfig:function(e){var s=this._get(e,"shortYearCutoff");return{shortYearCutoff:s="string"!=typeof s?s:(new Date).getFullYear()%100+parseInt(s,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}}
vendor: 4,919 bytes, line 1
1,_formatDate:function(e,s,d,g){s||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var C=s?"object"==typeof s?s:this._daylightSavingAdjust(new Date(g,d,s)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),C,this._getFormatConfig(e))}}),i.fn.datepicker=function(e){if(!this.length)return this;i.datepicker.initialized||(i(document).on("mousedown",i.datepicker._checkExternalClick),i.datepicker.initialized=!0),0===i("#"+i.datepicker._mainDivId).length&&i("body").append(i.datepicker.dpDiv);var s=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?i.datepicker["_"+e+"Datepicker"].apply(i.datepicker,[this[0]].concat(s)):this.each(function(){"string"==typeof e?i.datepicker["_"+e+"Datepicker"].apply(i.datepicker,[this].concat(s)):i.datepicker._attachDatepicker(this,e)}):i.datepicker["_"+e+"Datepicker"].apply(i.datepicker,[this[0]].concat(s))},i.datepicker=new D,i.datepicker.initialized=!1,i.datepicker.uuid=(new Date).getTime(),i.datepicker.version="1.12.1",i.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var xe=!1;i(document).on("mouseup",function(){xe=!1}),i.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(s){return e._mouseDown(s)}).on("click."+this.widgetName,function(s){return!0===i.data(s.target,e.widgetName+".preventClickEvent")?(i.removeData(s.target,e.widgetName+".preventClickEvent"),s.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!xe){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var s=this,d=1===e.which,g=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&i(e.target).closest(this.options.cancel).length;return d&&!g&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===i.data(e.target,this.widgetName+".preventClickEvent")&&i.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(C){return s._mouseMove(C)},this._mouseUpDelegate=function(C){return s._mouseUp(C)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),xe=!0)),!0}},_mouseMove:function(e){if(this._mouseMoved){if(i.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&i.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,xe=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),i.ui.plugin={add:function(e,s,d){var g,C=i.ui[e].prototype;for(g in d)C.plugins[g]=C.plugins[g]||[],C.plugins[g].push([s,d[g]])},call:function(e,s,d,g){var C,U=e.plugins[s];if(U&&(g||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(C=0;U.length>C;C++)e.options[U[C][0]]&&U[C][1].apply(e.element,d)}},i.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&i(e).trigger("blur")},i.widget("ui.draggable",i.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,
vendor: 5,207 bytes, line 1
1containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,s){this._super(e,s),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var s=this.options;return!(this.helper||s.disabled||0<i(e.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(e),!this.handle||(this._blurActiveElement(e),this._blockFrames(!0===s.iframeFix?"iframe":s.iframeFix),0)))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var s=i(this);return i("<div>").css("position","absolute").appendTo(s.parent()).outerWidth(s.outerWidth()).outerHeight(s.outerHeight()).offset(s.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var s=i.ui.safeActiveElement(this.document[0]);i(e.target).closest(s).length||i.ui.safeBlur(s)},_mouseStart:function(e){var s=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),i.ui.ddmanager&&(i.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===i(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),i.ui.ddmanager&&!s.dropBehaviour&&i.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),i.ui.ddmanager&&i.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(e,s){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!s){var d=this._uiHash();if(!1===this._trigger("drag",e,d))return this._mouseUp(new i.Event("mouseup",e)),!1;this.position=d.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",i.ui.ddmanager&&i.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var s=this,d=!1;return i.ui.ddmanager&&!this.options.dropBehaviour&&(d=i.ui.ddmanager.drop(this,e)),this.dropped&&(d=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!d||"valid"===this.options.revert&&d||!0===this.options.revert||i.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?i(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==s._trigger("stop",e)&&s._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),i.ui.ddmanager&&i.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),i.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new i.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!i(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var s=this.options,d=i.isFunction(s.helper),g=d?i(s.helper.apply(this.element[0],[e])):"clone"===s.helper?this.element.clone().removeAttr("id"):this.element;return g.parents("body").length||g.appendTo("parent"===s.appendTo?this.element[0].parentNode:s.appendTo),d&&g[0]===this.element[0]&&this._setPositionRelative(),g[0]===this.element[0]||/(fixed|absolute)/.test(g.css("position"))||g.css("position","absolute"),g},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),i.isArray(e)&&(e={left:+e[0],top:+e[1]||0}
vendor: 4,660 bytes, line 1
1),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&i.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),s=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(s?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(s?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,s,d,g=this.options,C=this.document[0];return this.relativeContainer=null,g.containment?"window"===g.containment?void(this.containment=[i(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,i(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,i(window).scrollLeft()+i(window).width()-this.helperProportions.width-this.margins.left,i(window).scrollTop()+(i(window).height()||C.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===g.containment?void(this.containment=[0,0,i(C).width()-this.helperProportions.width-this.margins.left,(i(C).height()||C.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):g.containment.constructor===Array?void(this.containment=g.containment):("parent"===g.containment&&(g.containment=this.helper[0].parentNode),void((d=(s=i(g.containment))[0])&&(e=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s))):void(this.containment=null)},_convertPositionTo:function(e,s){s=s||this.position;var d="absolute"===e?1:-1,g=this._isRootNode(this.scrollParent[0]);return{top:s.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.offset.scroll.top:g?0:this.offset.scroll.top)*d,left:s.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.offset.scroll.left:g?0:this.offset.scroll.left)*d}},_generatePosition:function(e,s){var d,g,C,U,nt=this.options,ut=this._isRootNode(this.scrollParent[0]),vt=e.pageX,Wt=e.pageY;return ut&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),s&&(this.containment&&(d=this.relativeContainer?(g=this.relativeContainer.offset(),[this.containment[0]+g.left,this.containment[1]+g.top,this.containment[2]+g.left,this.containment[3]+g.top]):this.containment,e.pageX-this.offset.click.left<d[0]&&(vt=d[0]+this.offset.click.left),e.pageY-this.offset.click.top<d[1]&&(Wt=d[1]+this.offset.click.top),e.pageX-this.offset.click.left>d[2]&&(vt=d[2]+this.offset.click.left),e.pageY-this.offset.click.top>d[3]&&(Wt=d[3]+this.offset.click.top)),nt.grid&&(C=nt.grid[1]?this.originalPageY+Math.round((Wt-this.originalPageY)/nt.grid[1])*nt.grid[1]:this.originalPageY,Wt=d?C-this.offset.click.top>=d[1]||C-this.offset.click.top>d[3]?C:C-this.offset.click.top>=d[1]?C-nt.grid[1]:C+nt.grid[1]:C,U=nt.grid[0]?this.originalPageX+Math.round((vt-this.originalPageX)
vendor: 5,755 bytes, line 1
1/nt.grid[0])*nt.grid[0]:this.originalPageX,vt=d?U-this.offset.click.left>=d[0]||U-this.offset.click.left>d[2]?U:U-this.offset.click.left>=d[0]?U-nt.grid[0]:U+nt.grid[0]:U),"y"===nt.axis&&(vt=this.originalPageX),"x"===nt.axis&&(Wt=this.originalPageY)),{top:Wt-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:ut?0:this.offset.scroll.top),left:vt-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:ut?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,s,d){return d=d||this._uiHash(),i.ui.plugin.call(this,e,[s,d,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),d.offset=this.positionAbs),i.Widget.prototype._trigger.call(this,e,s,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),i.ui.plugin.add("draggable","connectToSortable",{start:function(e,s,d){var g=i.extend({},s,{item:d.element});d.sortables=[],i(d.options.connectToSortable).each(function(){var C=i(this).sortable("instance");C&&!C.options.disabled&&(d.sortables.push(C),C.refreshPositions(),C._trigger("activate",e,g))})},stop:function(e,s,d){var g=i.extend({},s,{item:d.element});d.cancelHelperRemoval=!1,i.each(d.sortables,function(){var C=this;C.isOver?(C.isOver=0,d.cancelHelperRemoval=!0,C.cancelHelperRemoval=!1,C._storedCSS={position:C.placeholder.css("position"),top:C.placeholder.css("top"),left:C.placeholder.css("left")},C._mouseStop(e),C.options.helper=C.options._helper):(C.cancelHelperRemoval=!0,C._trigger("deactivate",e,g))})},drag:function(e,s,d){i.each(d.sortables,function(){var g=!1,C=this;C.positionAbs=d.positionAbs,C.helperProportions=d.helperProportions,C.offset.click=d.offset.click,C._intersectsWith(C.containerCache)&&(g=!0,i.each(d.sortables,function(){return this.positionAbs=d.positionAbs,this.helperProportions=d.helperProportions,this.offset.click=d.offset.click,this!==C&&this._intersectsWith(this.containerCache)&&i.contains(C.element[0],this.element[0])&&(g=!1),g})),g?(C.isOver||(C.isOver=1,d._parent=s.helper.parent(),C.currentItem=s.helper.appendTo(C.element).data("ui-sortable-item",!0),C.options._helper=C.options.helper,C.options.helper=function(){return s.helper[0]},e.target=C.currentItem[0],C._mouseCapture(e,!0),C._mouseStart(e,!0,!0),C.offset.click.top=d.offset.click.top,C.offset.click.left=d.offset.click.left,C.offset.parent.left-=d.offset.parent.left-C.offset.parent.left,C.offset.parent.top-=d.offset.parent.top-C.offset.parent.top,d._trigger("toSortable",e),d.dropped=C.element,i.each(d.sortables,function(){this.refreshPositions()}),d.currentItem=d.element,C.fromOutside=d),C.currentItem&&(C._mouseDrag(e),s.position=C.position)):C.isOver&&(C.isOver=0,C.cancelHelperRemoval=!0,C.options._revert=C.options.revert,C.options.revert=!1,C._trigger("out",e,C._uiHash(C)),C._mouseStop(e,!0),C.options.revert=C.options._revert,C.options.helper=C.options._helper,C.placeholder&&C.placeholder.remove(),s.helper.appendTo(d._parent),d._refreshOffsets(e),s.position=d._generatePosition(e,!0),d._trigger("fromSortable",e),d.dropped=!1,i.each(d.sortables,function(){this.refreshPositions()}))})}}),i.ui.plugin.add("draggable","cursor",{start:function(e,s,d){var g=i("body"),C=d.options;g.css("cursor")&&(C._cursor=g.css("cursor")),g.css("cursor",C.cursor)},stop:function(e,s,d){var g=d.options;g._cursor&&i("body").css("cursor",g._cursor)}}),i.ui.plugin.add("draggable","opacity",{start:function(e,s,d){var g=i(s.helper),C=d.options;g.css("opacity")&&(C._opacity=g.css("opacity")),g.css("opacity",C.opacity)},stop:function(e,s,d){var g=d.options;g._opacity&&i(s.helper).css("opacity",g._opacity)}}),i.ui.plugin.add("draggable","scroll",{start:function(e,s,d){d.scrollParentNotHidden||(d.scrollParentNotHidden=d.helper.scrollParent(!1)),d.scrollParentNotHidden[0]!==d.document[0]&&"HTML"!==d.scrollParentNotHidden[0].tagName&&(d.overflowOffset=d.scrollParentNotHidden.offset())},drag:function(e,s,d){var g=d.options,C=!1,U=d.scrollParentNotHidden[0],nt=d.document[0];U!==nt&&"HTML"!==U.tagName?(g.axis&&"x"===g.axis||(d.overflowOffset.top+U.offsetHeight-e.pageY<g.scrollSensitivity?U.scrollTop=C=U.scrollTop+g.scrollSpeed:e.pageY-d.overflowOffset.top<g.scrollSensitivity&&(U.scrollTop=C=U.scrollTop-g.scrollSpeed)),g.axis&&"y"===g.axis||(d.overflowOffset.left+U.offsetWidth-e.pageX<g.scrollSensitivity?U.scrollLeft=C=U.scrollLeft+g.scrollSpeed:e.pageX-d.overflowOffset.left<g.scrollSensitivity&&(U.scrollLeft=C=U.scrollLeft-g.scrollSpeed))):(g.axis&&"x"===g.axis||(e.pageY-i(nt).scrollTop()<g.scrollSensitivity?C=i(nt).scrollTop(i(nt).scrollTop()-g.scrollSpeed):i(window).height()-(e.pageY-i(nt).scrollTop())<g.scrollSensitivity&&(C=i(nt).scrollTop(i(nt).scrollTop()+g.scrollSpeed))),g.axis&&"y"===g.axis||(e.pageX-i(nt).scrollLeft()<g.scrollSensitivity?C=i(nt).scrollLeft(i(nt).scrollLeft()-g.scrollSpeed):i(window).width()-(e.pageX-i(nt).scrollLeft())<g.scrollSensitivity&&(C=i(nt).scrollLeft(i(nt).scrollLeft()+g.scrollSpeed)))),!1!==C&&i.ui.ddmanager&&!g.dropBehaviour&&i.ui.ddmanager.prepareOffsets(d,e)}}),i.ui.plugin.add("draggable","snap",{start:function(e,s,d){var g=d.options;d.snapElements=[],i(g.snap.constructor!==String?g.snap.items||":data(ui-draggable)":g.snap).each(function(){var C=i(this),U=C.offset();this!==d.element[0]&&d.snapElements.push({item:this,width:C.outerWidth(),height:C.outerHeight(),top:U.top,left
vendor: 6,464 bytes, line 1
1:U.left})})},drag:function(e,s,d){var g,C,U,nt,ut,vt,Wt,Bt,xt,Ft,Kt=d.options,ce=Kt.snapTolerance,we=s.offset.left,Se=we+d.helperProportions.width,Ye=s.offset.top,Je=Ye+d.helperProportions.height;for(xt=d.snapElements.length-1;0<=xt;xt--)vt=(ut=d.snapElements[xt].left-d.margins.left)+d.snapElements[xt].width,Bt=(Wt=d.snapElements[xt].top-d.margins.top)+d.snapElements[xt].height,Se<ut-ce||vt+ce<we||Je<Wt-ce||Bt+ce<Ye||!i.contains(d.snapElements[xt].item.ownerDocument,d.snapElements[xt].item)?(d.snapElements[xt].snapping&&d.options.snap.release&&d.options.snap.release.call(d.element,e,i.extend(d._uiHash(),{snapItem:d.snapElements[xt].item})),d.snapElements[xt].snapping=!1):("inner"!==Kt.snapMode&&(g=ce>=Math.abs(Wt-Je),C=ce>=Math.abs(Bt-Ye),U=ce>=Math.abs(ut-Se),nt=ce>=Math.abs(vt-we),g&&(s.position.top=d._convertPositionTo("relative",{top:Wt-d.helperProportions.height,left:0}).top),C&&(s.position.top=d._convertPositionTo("relative",{top:Bt,left:0}).top),U&&(s.position.left=d._convertPositionTo("relative",{top:0,left:ut-d.helperProportions.width}).left),nt&&(s.position.left=d._convertPositionTo("relative",{top:0,left:vt}).left)),Ft=g||C||U||nt,"outer"!==Kt.snapMode&&(g=ce>=Math.abs(Wt-Ye),C=ce>=Math.abs(Bt-Je),U=ce>=Math.abs(ut-we),nt=ce>=Math.abs(vt-Se),g&&(s.position.top=d._convertPositionTo("relative",{top:Wt,left:0}).top),C&&(s.position.top=d._convertPositionTo("relative",{top:Bt-d.helperProportions.height,left:0}).top),U&&(s.position.left=d._convertPositionTo("relative",{top:0,left:ut}).left),nt&&(s.position.left=d._convertPositionTo("relative",{top:0,left:vt-d.helperProportions.width}).left)),!d.snapElements[xt].snapping&&(g||C||U||nt||Ft)&&d.options.snap.snap&&d.options.snap.snap.call(d.element,e,i.extend(d._uiHash(),{snapItem:d.snapElements[xt].item})),d.snapElements[xt].snapping=g||C||U||nt||Ft)}}),i.ui.plugin.add("draggable","stack",{start:function(e,s,d){var g,U=i.makeArray(i(d.options.stack)).sort(function(nt,ut){return(parseInt(i(nt).css("zIndex"),10)||0)-(parseInt(i(ut).css("zIndex"),10)||0)});U.length&&(g=parseInt(i(U[0]).css("zIndex"),10)||0,i(U).each(function(nt){i(this).css("zIndex",g+nt)}),this.css("zIndex",g+U.length))}}),i.ui.plugin.add("draggable","zIndex",{start:function(e,s,d){var g=i(s.helper),C=d.options;g.css("zIndex")&&(C._zIndex=g.css("zIndex")),g.css("zIndex",C.zIndex)},stop:function(e,s,d){var g=d.options;g._zIndex&&i(s.helper).css("zIndex",g._zIndex)}}),i.widget("ui.resizable",i.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(e,s){if("hidden"===i(e).css("overflow"))return!1;var d=s&&"left"===s?"scrollLeft":"scrollTop",g=!1;return 0<e[d]||(e[d]=1,g=0<e[d],e[d]=0,g)},_create:function(){var e,s=this.options,d=this;this._addClass("ui-resizable"),i.extend(this,{_aspectRatio:!!s.aspectRatio,aspectRatio:s.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:s.helper||s.ghost||s.animate?s.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(i("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),s.autoHide&&i(this.element).on("mouseenter",function(){s.disabled||(d._removeClass("ui-resizable-autohide"),d._handles.show())}).on("mouseleave",function(){s.disabled||d.resizing||(d._addClass("ui-resizable-autohide"),d._handles.hide())}),this._mouseInit()},_destroy:function(){function e(d){i(d).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var s;return this._mouseDestroy(),this.elementIsWrapper&&(e(this.element),this.originalElement.css({position:(s=this.element).css("position"),width:s.outerWidth(),height:s.outerHeight(),top:s.css("top"),left:s.css("left")}).insertAfter(s),s.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_setOption:function(e,s){"handles"===(this._super(e,s),e)&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var e,s,d,g,C,U=this.options,nt=this;if(this.handles=U.handles||(i(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=i(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),d=this.handles.split(","),this.handles={},s=0;d.length>s;s++)g="ui-resizable-"+(e=i.trim(d[s])),C=i("<div>"),this._addClass(C,"ui-resizable-handle "+g),C.css({zIndex:U.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(C);this._renderAxis=function(ut){var vt,Wt,Bt,xt;for(vt in ut=ut||this.element,this.handles)this.handles[vt].constructor===String?this.handles[vt]=this.element.children(this.handles[vt]).first().show():(this.handles[vt].jquery||this.handles[vt].nodeType)&&(this.handles[vt]=i(this.handles[vt]),this._on(this.handles[vt],{mousedown:nt._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(Wt=i(this.handles[vt],this.element),xt=/sw|ne|nw|se|n|s/.test(vt)?Wt.outerHeight():Wt.outerWidth(),Bt=["padding",/ne|nw|n
vendor: 4,396 bytes, line 1
1/.test(vt)?"Top":/se|sw|s/.test(vt)?"Bottom":/^e$/.test(vt)?"Right":"Left"].join(""),ut.css(Bt,xt),this._proportionallyResize()),this._handles=this._handles.add(this.handles[vt])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){nt.resizing||(this.className&&(C=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),nt.axis=C&&C[1]?C[1]:"se")}),U.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var s,d,g=!1;for(s in this.handles)(d=i(this.handles[s])[0])!==e.target&&!i.contains(d,e.target)||(g=!0);return!this.options.disabled&&g},_mouseStart:function(e){var s,d,g,C=this.options,U=this.element;return this.resizing=!0,this._renderProxy(),s=this._num(this.helper.css("left")),d=this._num(this.helper.css("top")),C.containment&&(s+=i(C.containment).scrollLeft()||0,d+=i(C.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:s,top:d},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:U.width(),height:U.height()},this.originalSize=this._helper?{width:U.outerWidth(),height:U.outerHeight()}:{width:U.width(),height:U.height()},this.sizeDiff={width:U.outerWidth()-U.width(),height:U.outerHeight()-U.height()},this.originalPosition={left:s,top:d},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof C.aspectRatio?C.aspectRatio:this.originalSize.width/this.originalSize.height||1,g=i(".ui-resizable-"+this.axis).css("cursor"),i("body").css("cursor","auto"===g?this.axis+"-resize":g),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var s,d,g=this.originalMousePosition,U=e.pageX-g.left||0,nt=e.pageY-g.top||0,ut=this._change[this.axis];return this._updatePrevProperties(),ut&&(s=ut.apply(this,[e,U,nt]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(s=this._updateRatio(s,e)),s=this._respectSize(s,e),this._updateCache(s),this._propagate("resize",e),d=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),i.isEmptyObject(d)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var s,d,g,C,U,nt,ut,vt=this.options,Wt=this;return this._helper&&(g=(d=(s=this._proportionallyResizeElements).length&&/textarea/i.test(s[0].nodeName))&&this._hasScroll(s[0],"left")?0:Wt.sizeDiff.height,C=d?0:Wt.sizeDiff.width,U={width:Wt.helper.width()-C,height:Wt.helper.height()-g},nt=parseFloat(Wt.element.css("left"))+(Wt.position.left-Wt.originalPosition.left)||null,ut=parseFloat(Wt.element.css("top"))+(Wt.position.top-Wt.originalPosition.top)||null,vt.animate||this.element.css(i.extend(U,{top:ut,left:nt})),Wt.helper.height(Wt.size.height),Wt.helper.width(Wt.size.width),this._helper&&!vt.animate&&this._proportionallyResize()),i("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var s,d,g,C,U,nt=this.options;U={minWidth:this._isNumber(nt.minWidth)?nt.minWidth:0,maxWidth:this._isNumber(nt.maxWidth)?nt.maxWidth:1/0,minHeight:this._isNumber(nt.minHeight)?nt.minHeight:0,maxHeight:this._isNumber(nt.maxHeight)?nt.maxHeight:1/0},(this._aspectRatio||e)&&(g=U.minWidth/this.aspectRatio,d=U.maxHeight*this.aspectRatio,C=U.maxWidth/this.aspectRatio,(s=U.minHeight*this.aspectRatio)>U.minWidth&&(U.minWidth=s),g>U.minHeight&&(U.minHeight=g),U.maxWidth>d&&(U.maxWidth=d),U.maxHeight>C&&(U.maxHeight=C)),this._vBoundaries=U},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left
vendor: 4,178 bytes, line 1
1=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var s=this.position,d=this.size,g=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===g&&(e.left=s.left+(d.width-e.width),e.top=null),"nw"===g&&(e.top=s.top+(d.height-e.height),e.left=s.left+(d.width-e.width)),e},_respectSize:function(e){var s=this._vBoundaries,d=this.axis,g=this._isNumber(e.width)&&s.maxWidth&&s.maxWidth<e.width,C=this._isNumber(e.height)&&s.maxHeight&&s.maxHeight<e.height,U=this._isNumber(e.width)&&s.minWidth&&s.minWidth>e.width,nt=this._isNumber(e.height)&&s.minHeight&&s.minHeight>e.height,ut=this.originalPosition.left+this.originalSize.width,vt=this.originalPosition.top+this.originalSize.height,Wt=/sw|nw|w/.test(d),Bt=/nw|ne|n/.test(d);return U&&(e.width=s.minWidth),nt&&(e.height=s.minHeight),g&&(e.width=s.maxWidth),C&&(e.height=s.maxHeight),U&&Wt&&(e.left=ut-s.minWidth),g&&Wt&&(e.left=ut-s.maxWidth),nt&&Bt&&(e.top=vt-s.minHeight),C&&Bt&&(e.top=vt-s.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var s=0,d=[],g=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],C=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];s<4;s++)d[s]=parseFloat(g[s])||0,d[s]+=parseFloat(C[s])||0;return{height:d[0]+d[2],width:d[1]+d[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,s=0,d=this.helper||this.element;this._proportionallyResizeElements.length>s;s++)e=this._proportionallyResizeElements[s],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:d.height()-this.outerDimensions.height||0,width:d.width()-this.outerDimensions.width||0})},_renderProxy:function(){var s=this.options;this.elementOffset=this.element.offset(),this._helper?(this.helper=this.helper||i("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++s.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,s){return{width:this.originalSize.width+s}},w:function(e,s){return{left:this.originalPosition.left+s,width:this.originalSize.width-s}},n:function(e,s,d){return{top:this.originalPosition.top+d,height:this.originalSize.height-d}},s:function(e,s,d){return{height:this.originalSize.height+d}},se:function(e,s,d){return i.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,s,d]))},sw:function(e,s,d){return i.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,s,d]))},ne:function(e,s,d){return i.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,s,d]))},nw:function(e,s,d){return i.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,s,d]))}},_propagate:function(e,s){i.ui.plugin.call(this,e,[s,this.ui()]),"resize"!==e&&this._trigger(e,s,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),i.ui.plugin.add("resizable","animate",{stop:function(e){var s=i(this).resizable("instance"),d=s.options,g=s._proportionallyResizeElements,C=g.length&&/textarea/i.test(g[0].nodeName),U=C&&s._hasScroll(g[0],"left")?0:s.sizeDiff.height,ut={width:s.size.width-(C?0:s.sizeDiff.width),height:s.size.height-U},vt=parseFloat(s.element.css("left"))+(s.position.left-s.originalPosition.left)||null,Wt=parseFloat(s.element.css("top"))+(s.position.top-s.originalPosition.top)||null;s.element.animate(i.extend(ut,Wt&&vt?{top:Wt,left:vt}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var Bt={
vendor: 3,715 bytes, line 1
1width:parseFloat(s.element.css("width")),height:parseFloat(s.element.css("height")),top:parseFloat(s.element.css("top")),left:parseFloat(s.element.css("left"))};g&&g.length&&i(g[0]).css({width:Bt.width,height:Bt.height}),s._updateCache(Bt),s._propagate("resize",e)}})}}),i.ui.plugin.add("resizable","containment",{start:function(){var e,s,d,g,C,U,nt,ut=i(this).resizable("instance"),Wt=ut.element,Bt=ut.options.containment,xt=Bt instanceof i?Bt.get(0):/parent/.test(Bt)?Wt.parent().get(0):Bt;xt&&(ut.containerElement=i(xt),/document/.test(Bt)||Bt===document?(ut.containerOffset={left:0,top:0},ut.containerPosition={left:0,top:0},ut.parentData={element:i(document),left:0,top:0,width:i(document).width(),height:i(document).height()||document.body.parentNode.scrollHeight}):(e=i(xt),s=[],i(["Top","Right","Left","Bottom"]).each(function(Ft,Kt){s[Ft]=ut._num(e.css("padding"+Kt))}),ut.containerOffset=e.offset(),ut.containerPosition=e.position(),ut.containerSize={height:e.innerHeight()-s[3],width:e.innerWidth()-s[1]},d=ut.containerOffset,g=ut.containerSize.height,C=ut.containerSize.width,U=ut._hasScroll(xt,"left")?xt.scrollWidth:C,nt=ut._hasScroll(xt)?xt.scrollHeight:g,ut.parentData={element:xt,left:d.left,top:d.top,width:U,height:nt}))},resize:function(e){var s,d,g,C,U=i(this).resizable("instance"),nt=U.options,ut=U.containerOffset,vt=U.position,Wt=U._aspectRatio||e.shiftKey,Bt={top:0,left:0},xt=U.containerElement,Ft=!0;xt[0]!==document&&/static/.test(xt.css("position"))&&(Bt=ut),vt.left<(U._helper?ut.left:0)&&(U.size.width=U.size.width+(U._helper?U.position.left-ut.left:U.position.left-Bt.left),Wt&&(U.size.height=U.size.width/U.aspectRatio,Ft=!1),U.position.left=nt.helper?ut.left:0),vt.top<(U._helper?ut.top:0)&&(U.size.height=U.size.height+(U._helper?U.position.top-ut.top:U.position.top),Wt&&(U.size.width=U.size.height*U.aspectRatio,Ft=!1),U.position.top=U._helper?ut.top:0),g=U.containerElement.get(0)===U.element.parent().get(0),C=/relative|absolute/.test(U.containerElement.css("position")),g&&C?(U.offset.left=U.parentData.left+U.position.left,U.offset.top=U.parentData.top+U.position.top):(U.offset.left=U.element.offset().left,U.offset.top=U.element.offset().top),s=Math.abs(U.sizeDiff.width+(U._helper?U.offset.left-Bt.left:U.offset.left-ut.left)),d=Math.abs(U.sizeDiff.height+(U._helper?U.offset.top-Bt.top:U.offset.top-ut.top)),s+U.size.width>=U.parentData.width&&(U.size.width=U.parentData.width-s,Wt&&(U.size.height=U.size.width/U.aspectRatio,Ft=!1)),d+U.size.height>=U.parentData.height&&(U.size.height=U.parentData.height-d,Wt&&(U.size.width=U.size.height*U.aspectRatio,Ft=!1)),Ft||(U.position.left=U.prevPosition.left,U.position.top=U.prevPosition.top,U.size.width=U.prevSize.width,U.size.height=U.prevSize.height)},stop:function(){var e=i(this).resizable("instance"),s=e.options,d=e.containerOffset,g=e.containerPosition,C=e.containerElement,U=i(e.helper),nt=U.offset(),ut=U.outerWidth()-e.sizeDiff.width,vt=U.outerHeight()-e.sizeDiff.height;e._helper&&!s.animate&&/relative/.test(C.css("position"))&&i(this).css({left:nt.left-g.left-d.left,width:ut,height:vt}),e._helper&&!s.animate&&/static/.test(C.css("position"))&&i(this).css({left:nt.left-g.left-d.left,width:ut,height:vt})}}),i.ui.plugin.add("resizable","alsoResize",{start:function(){var e=i(this).resizable("instance").options;i(e.alsoResize).each(function(){var s=i(this);s.data("ui-resizable-alsoresize",{width:parseFloat(s.width()),height:parseFloat(s.height()),left:parseFloat(s.css("left")),top:parseFloat(s.css("top"))})})},resize:function(e,s){var d=i(this).resizable("instance"),C=d.originalSize,U=d.originalPosition,nt={height:d.size.height-C.height||0,width:d.size.width-C.width||0,top:d.position.top-U.top||0,left
vendor: 14,662 bytes, line 1
1:d.position.left-U.left||0};i(d.options.alsoResize).each(function(){var ut=i(this),vt=i(this).data("ui-resizable-alsoresize"),Wt={},Bt=ut.parents(s.originalElement[0]).length?["width","height"]:["width","height","top","left"];i.each(Bt,function(xt,Ft){var Kt=(vt[Ft]||0)+(nt[Ft]||0);Kt&&0<=Kt&&(Wt[Ft]=Kt||null)}),ut.css(Wt)})},stop:function(){i(this).removeData("ui-resizable-alsoresize")}}),i.ui.plugin.add("resizable","ghost",{start:function(){var e=i(this).resizable("instance"),s=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==i.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=i(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=i(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),i.ui.plugin.add("resizable","grid",{resize:function(){var e,s=i(this).resizable("instance"),d=s.options,g=s.size,C=s.originalSize,U=s.originalPosition,nt=s.axis,ut="number"==typeof d.grid?[d.grid,d.grid]:d.grid,vt=ut[0]||1,Wt=ut[1]||1,Bt=Math.round((g.width-C.width)/vt)*vt,xt=Math.round((g.height-C.height)/Wt)*Wt,Ft=C.width+Bt,Kt=C.height+xt,ce=d.maxWidth&&Ft>d.maxWidth,we=d.maxHeight&&Kt>d.maxHeight,Se=d.minWidth&&d.minWidth>Ft,Ye=d.minHeight&&d.minHeight>Kt;d.grid=ut,Se&&(Ft+=vt),Ye&&(Kt+=Wt),ce&&(Ft-=vt),we&&(Kt-=Wt),/^(se|s|e)$/.test(nt)?(s.size.width=Ft,s.size.height=Kt):/^(ne)$/.test(nt)?(s.size.width=Ft,s.size.height=Kt,s.position.top=U.top-xt):/^(sw)$/.test(nt)?(s.size.width=Ft,s.size.height=Kt,s.position.left=U.left-Bt):((Kt-Wt<=0||Ft-vt<=0)&&(e=s._getPaddingPlusBorderDimensions(this)),0<Kt-Wt?(s.size.height=Kt,s.position.top=U.top-xt):(s.size.height=Kt=Wt-e.height,s.position.top=U.top+C.height-Kt),0<Ft-vt?(s.size.width=Ft,s.position.left=U.left-Bt):(s.size.width=Ft=vt-e.width,s.position.left=U.left+C.width-Ft))}}),i.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var s=i(this).css(e).offset().top;s<0&&i(this).css("top",e.top-s)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&i.fn.draggable&&this._makeDraggable(),this.options.resizable&&i.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?i(e):this.document.find(e||"body").eq(0)},_destroy:function(){var e,s=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=s.parent.children().eq(s.index)).length&&e[0]!==this.element[0]?e.before(this.element):s.parent.append(this.element)},widget:function(){return this.uiDialog},disable:i.noop,enable:i.noop,close:function(e){var s=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||i.ui.safeBlur(i.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){s._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,s){var d=!1,g=this.uiDialog.siblings(".ui-front:visible").map(function(){return+i(this).css("z-index")}).get(),C=Math.max.apply(null,g);return C>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",C+1),d=!0),d&&!s&&this._trigger("focus",e),d},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=i(i.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;(e=e||this.element.find("[autofocus]")).length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_keepFocus:function(e){function s(){var d=i.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===d||i.contains(this.uiDialog[0],d)||this._focusTabbable()}e.preventDefault(),s.call(this),this._delay(s)},_createWrapper:function(){this.uiDialog=i("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===i.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===i.ui.keyCode.TAB&&!e.isDefaultPrevented()){var s=this.uiDialog.find(":tabbable"),d=s.filter(":first"),g=s.filter(":last");e.target!==g[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==d[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){g.trigger("focus")}),e.preventDefault()):(this._delay(function(){d.trigger("focus")}),e.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=i("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(s){i(s.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=i("<button type='button'></button>").button({label:i("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(s){s.preventDefault(),this.close(s)}}),e=i("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=i("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=i("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,s=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),i.isEmptyObject(s)||i.isArray(s)&&!s.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(i.each(s,function(d,g){var C,U;g=i.isFunction(g)?{click:g,text:d}:g,g=i.extend({type:"button"},g),C=g.click,U={icon:g.icon,iconPosition:g.iconPosition,showLabel:g.showLabel,icons:g.icons,text:g.text},delete g.click,delete g.icon,delete g.iconPosition,delete g.showLabel,delete g.icons,"boolean"==typeof g.text&&delete g.text,i("<button></button>",g).button(U).appendTo(e.uiButtonSet).on("click",function(){C.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(g){return{position:g.position,offset:g.offset}}var s=this,d=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(g,C){s._addClass(i(this),"ui-dialog-dragging"),s._blockFrames(),s._trigger("dragStart",g,e(C))},drag:function(g,C){s._trigger("drag",g,e(C))},stop:function(g,C){var U=C.offset.left-s.document.scrollLeft(),nt=C.offset.top-s.document.scrollTop();d.position={my:"left top",at:"left"+(0<=U?"+":"")+U+" top"+(0<=nt?"+":"")+nt,of:s.window},s._removeClass(i(this),"ui-dialog-dragging"),s._unblockFrames(),s._trigger("dragStop",g,e(C))}})},_makeResizable:function(){function e(nt){return{originalPosition:nt.originalPosition,originalSize:nt.originalSize,position:nt.position,size:nt.size}}var s=this,d=this.options,g=d.resizable,C=this.uiDialog.css("position"),U="string"==typeof g?g:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:d.maxWidth,maxHeight:d.maxHeight,minWidth:d.minWidth,minHeight:this._minHeight(),handles:U,start:function(nt,ut){s._addClass(i(this),"ui-dialog-resizing"),s._blockFrames(),s._trigger("resizeStart",nt,e(ut))},resize:function(nt,ut){s._trigger("resize",nt,e(ut))},stop:function(nt,ut){var vt=s.uiDialog.offset(),Wt=vt.left-s.document.scrollLeft(),Bt=vt.top-s.document.scrollTop();d.height=s.uiDialog.height(),d.width=s.uiDialog.width(),d.position={my:"left top",at:"left"+(0<=Wt?"+":"")+Wt+" top"+(0<=Bt?"+":"")+Bt,of:s.window},s._removeClass(i(this),"ui-dialog-resizing"),s._unblockFrames(),s._trigger("resizeStop",nt,e(ut))}}).css("position",C)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=i(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),s=i.inArray(this,e);-1!==s&&e.splice(s,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||this.document.data("ui-dialog-instances",e=[]),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(e){var s=this,d=!1,g={};i.each(e,function(C,U){s._setOption(C,U),C in s.sizeRelatedOptions&&(d=!0),C in s.resizableRelatedOptions&&(g[C]=U)}),d&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",g)},_setOption:function(e,s){var d,g,C=this.uiDialog;"disabled"!==e&&(this._super(e,s),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:i("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((d=C.is(":data(ui-draggable)"))&&!s&&C.draggable("destroy"),!d&&s&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((g=C.is(":data(ui-resizable)"))&&!s&&C.resizable("destroy"),g&&"string"==typeof s&&C.resizable("option","handles",s),g||!1===s||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,s,d,g=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),g.minWidth>g.width&&(g.width=g.minWidth),e=this.uiDialog.css({height:"auto",width:g.width}).outerHeight(),s=Math.max(0,g.minHeight-e),d="number"==typeof g.maxHeight?Math.max(0,g.maxHeight-e):"none","auto"===g.height?this.element.css({minHeight:s,maxHeight:d,height:"auto"}):this.element.height(Math.max(0,g.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=i(this);return i("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!i(e.target).closest(".ui-dialog").length||!!i(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(s){e||this._allowInteraction(s)||(s.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=i("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==i.uiBackCompat&&i.widget("ui.dialog",i.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,s){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(s),this._superApply(arguments)}}),i.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",o
1ptions:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,s=this.options,d=s.accept;this.isover=!1,this.isout=!0,this.accept=i.isFunction(d)?d:function(g){return g.is(d)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(s.scope),s.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){i.ui.ddmanager.droppables[e]=i.ui.ddmanager.droppables[e]||[],i.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var s=0;e.length>s;s++)e[s]===this&&e.splice(s,1)},_destroy:function(){this._splice(i.ui.ddmanager.droppables[this.options.scope])},_setOption:function(e,s){"accept"===e?this.accept=i.isFunction(s)?s:function(g){return g.is(s)}:"scope"===e&&(this._splice(i.ui.ddmanager.droppables[this.options.scope]),this._addToManager(s)),this._super(e,s)},_activate:function(e){var s=i.ui.ddmanager.current;this._addActiveClass(),s&&this._trigger("activate",e,this.ui(s))},_deactivate:function(e){var s=i.ui.ddmanager.current;this._removeActiveClass(),s&&this._trigger("deactivate",e,this.ui(s))},_over:function(e){var s=i.ui.ddmanager.current;s&&(s.currentItem||s.element)[0]!==this.element[0]&&this.accept.call(this.element[0],s.currentItem||s.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(s)))},_out:function(e){var s=i.ui.ddmanager.current;s&&(s.currentItem||s.element)[0]!==this.element[0]&&this.accept.call(this.element[0],s.currentItem||s.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(s)))},_drop:function(e,s){var d=s||i.ui.ddmanager.current,g=!1;return!(!d||(d.currentItem||d.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var C=i(this).droppable("instance");return C.options.greedy&&!C.options.disabled&&C.options.scope===d.options.scope&&C.accept.call(C.element[0],d.currentItem||d.element)&&fe(d,i.extend(C,{offset:C.element.offset()}),C.options.tolerance,e)?!(g=!0):void 0}),!g&&!!this.accept.call(this.element[0],d.currentItem||d.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(d)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var ue,fe=i.ui.intersect=function(e,s,d,g){if(!s.offset)return!1;var C=(e.positionAbs||e.position.absolute).left+e.margins.left,U=(e.positionAbs||e.position.absolute).top+e.margins.top,nt=C+e.helperProportions.width,ut=U+e.helperProportions.height,vt=s.offset.left,Wt=s.offset.top,Bt=vt+s.proportions().width,xt=Wt+s.proportions().height;switch(d){case"fit":return vt<=C&&nt<=Bt&&Wt<=U&&ut<=xt;case"intersect":return C+e.helperProportions.width/2>vt&&Bt>nt-e.helperProportions.width/2&&U+e.helperProportions.height/2>Wt&&xt>ut-e.helperProportions.height/2;case"pointer":return Le(g.pageY,Wt,s.proportions().height)&&Le(g.pageX,vt,s.proportions().width);case"touch":return(Wt<=U&&U<=xt||Wt<=ut&&ut<=xt||U<Wt&&xt<ut)&&(vt<=C&&C<=Bt||vt<=nt&&nt<=Bt||C<vt&&Bt<nt);default:return!1}};function Le(e,s,d){return s<=e&&e<s+d}!(i.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,s){var d,g,C=i.ui.ddmanager.droppables[e.options.scope]||[],U=s?s.type:null,nt=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(d=0;C.length>d;d++)if(!(C[d].options.disabled||e&&!C[d].accept.call(C[d].element[0],e.currentItem||e.element))){for(g=0;nt.length>g;g++)if(nt[g]===C[d].element[0]){C[d].proportions().height=0;continue t}C[d].visible="none"!==C[d].element.css("display"),C[d].visible&&("mousedown"===U&&C[d]._activate.call(C[d],s),C[d].offset=C[d].element.offset(),C[d].proportions({width:C[d].element[0].offsetWidth,height:C[d].element[0].offsetHeight}))}},drop:function(e,s){var d=!1;return i.each((i.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&fe(e,this,this.options.tolerance,s)&&(d=this._drop.call(this,s)||d),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,s)))}),d},dragStart:function(e,s){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||i.ui.ddmanager.prepareOffsets(e,s)})},drag:function(e,s){e.options.refreshPositions&&i.ui.ddmanager.prepareOffsets(e,s),i.each(i.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var d,g,C,U=fe(e,this,this.options.tolerance,s),nt=!U&&this.isover?"isout":U&&!this.isover?"isover":null;nt&&(this.options.greedy&&(g=this.options.scope,(C=this.element.parents(":data(ui-droppable)").filter(function(){return i(this).droppable("instance").options.scope===g})).length&&((d=i(C[0]).droppable("instance")).greedyChild="isover"===nt)),d&&"isover"===nt&&(d.isover=!1,d.isout=!0,d._out.call(d,s)),this[nt]=!0,this["isout"===nt?"isover":"isout"]=!1,this["isover"===nt?"_over":"_out"].call(this,s),d&&"isout"===nt&&(d.isout=!1,d.isover=!0,d._over.call(d,s)))}})},dragStop:function(e,s){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||i.ui.ddmanager.prepareOffsets(e,s)}})!==i.uiBackCompat&&i.widget("ui.droppable",i.ui.droppable,{options:{hoverClass:!1,activeClass:!1}
vendor: 5,432 bytes, line 1
1,_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),i.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=i("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){return void 0===e?this.options.value:(this.options.value=this._constrainedValue(e),void this._refreshValue())},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var s=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(s),this._refreshValue()},_setOption:function(e,s){"max"===e&&(s=Math.max(this.min,s)),this._super(e,s)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,s=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(s.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=i("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),i.widget("ui.selectable",i.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=i(e.element[0]).offset(),e.selectees=i(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var s=i(this),d=s.offset(),g={left:d.left-e.elementPos.left,top:d.top-e.elementPos.top};i.data(this,"selectable-item",{element:this,$element:s,left:g.left,top:g.top,right:g.left+s.outerWidth(),bottom:g.top+s.outerHeight(),startselected:!1,selected:s.hasClass("ui-selected"),selecting:s.hasClass("ui-selecting"),unselecting:s.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=i("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var s=this,d=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=i(this.element[0]).offset(),this.options.disabled||(this.selectees=i(d.filter,this.element[0]),this._trigger("start",e),i(d.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var g=i.data(this,"selectable-item");g.startselected=!0,e.metaKey||e.ctrlKey||(s._removeClass(g.$element,"ui-selected"),g.selected=!1,s._addClass(g.$element,"ui-unselecting"),g.unselecting=!0,s._trigger("unselecting",e,{unselecting:g.element}))}),i(e.target).parents().addBack().each(function(){var g,C=i.data(this,"selectable-item");return C?(g=!e.metaKey&&!e.ctrlKey||!C.$element.hasClass("ui-selected"),s._removeClass(C.$element,g?"ui-unselecting":"ui-selected")._addClass(C.$element,g?"ui-selecting":"ui-unselecting"),C.unselecting=!g,C.selecting=g,(C.selected=g)?s._trigger("selecting",e,{selecting:C.element}):s._trigger("unselecting",e,{unselecting:C.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var s,d=this,g=this.options,C=this.opos[0],U=this.opos[1],nt=e.pageX,ut=e.pageY;return nt<C&&(s=nt,nt=C,C=s),ut<U&&(s=ut,ut=U,U=s),this.helper.css({left:C,top:U,width:nt-C,height:ut-U}),this.selectees.each(function(){var vt=i.data(this,"selectable-item"),Wt=!1,Bt={};vt&&vt.element!==d.element[0]&&(Bt.left=vt.left+d.elementPos.left,Bt.right=vt.right+d.elementPos.left,Bt.top=vt.top+d.elementPos.top,Bt.bottom=vt.bottom+d.elementPos.top,"touch"===g.tolerance?Wt=!(Bt.left>nt||C>Bt.right||Bt.top>ut||U>Bt.bottom):"fit"===g.tolerance&&(Wt=Bt.left>C&&nt>Bt.right&&Bt.top>U&&ut>
vendor: 6,522 bytes, line 1
1Bt.bottom),Wt?(vt.selected&&(d._removeClass(vt.$element,"ui-selected"),vt.selected=!1),vt.unselecting&&(d._removeClass(vt.$element,"ui-unselecting"),vt.unselecting=!1),vt.selecting||(d._addClass(vt.$element,"ui-selecting"),vt.selecting=!0,d._trigger("selecting",e,{selecting:vt.element}))):(vt.selecting&&((e.metaKey||e.ctrlKey)&&vt.startselected?(d._removeClass(vt.$element,"ui-selecting"),vt.selecting=!1,d._addClass(vt.$element,"ui-selected"),vt.selected=!0):(d._removeClass(vt.$element,"ui-selecting"),vt.selecting=!1,vt.startselected&&(d._addClass(vt.$element,"ui-unselecting"),vt.unselecting=!0),d._trigger("unselecting",e,{unselecting:vt.element}))),vt.selected&&(e.metaKey||e.ctrlKey||vt.startselected||(d._removeClass(vt.$element,"ui-selected"),vt.selected=!1,d._addClass(vt.$element,"ui-unselecting"),vt.unselecting=!0,d._trigger("unselecting",e,{unselecting:vt.element})))))}),!1}},_mouseStop:function(e){var s=this;return this.dragged=!1,i(".ui-unselecting",this.element[0]).each(function(){var d=i.data(this,"selectable-item");s._removeClass(d.$element,"ui-unselecting"),d.unselecting=!1,d.startselected=!1,s._trigger("unselected",e,{unselected:d.element})}),i(".ui-selecting",this.element[0]).each(function(){var d=i.data(this,"selectable-item");s._removeClass(d.$element,"ui-selecting")._addClass(d.$element,"ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,s._trigger("selected",e,{selected:d.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),i.widget("ui.selectmenu",[i.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=i()},_drawButton:function(){var e,s=this,d=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(g){this.button.focus(),g.preventDefault()}}),this.element.hide(),this.button=i("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=i("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(d).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){s._rendered||s._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=i("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=i("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(s,d){s.preventDefault(),e._setSelection(),e._select(d.item.data("ui-selectmenu-item"),s)},focus:function(s,d){var g=d.item.data("ui-selectmenu-item");null!=e.focusIndex&&g.index!==e.focusIndex&&(e._trigger("focus",s,{item:g}),e.isOpen||e._select(g,s)),e.focusIndex=g.index,e.button.attr("aria-activedescendant",e.menuItems.eq(g.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e,s=this.element.find("option");this.menu.empty(),this._parseOptions(s),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,s.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(i.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var s=i("<span>");return this._setText(s,e.label),this._addClass(s,"ui-selectmenu-text"),s},_renderMenu:function(e,s){var d=this,g="";i.each(s,function(C,U){var nt;U.optgroup!==g&&(nt=i("<li>",{text:U.optgroup}),d._addClass(nt,"ui-selectmenu-optgroup","ui-menu-divider"+(U.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),nt.appendTo(e),g=U.optgroup),d._renderItemData(e,U)})},_renderItemData:function(e,s){return this._renderItem(e,s).data("ui-selectmenu-item",s)},_renderItem:function(e,s){var d=i("<li>"),g=i("<div>",{title:s.element.attr("title")});return s.disabled&&this._addClass(d,null,"ui-state-disabled"),this._setText(g,s.label),d.append(g).appendTo(e)},_setText:function(e,s){s?e.text(s):e.html(" ")},_move:function(e,s){var d,g,C=".ui-menu-item";this.isOpen?d=this.menuItems.eq(this.focusIndex).parent("li"):(d=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),C+=":not(.ui-state-disabled)"),(g="first"===e||"last"===e?d["first"===e?"prevAll":"nextAll"](C).eq(-1):d[e+"All"](C).eq(0)).length&&this.menuInstance.focus(s,g)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")}
vendor: 4,339 bytes, line 1
1,_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?((e=window.getSelection()).removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(i(e.target).closest(".ui-selectmenu-menu, #"+i.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection()).rangeCount&&(this.range=e.getRangeAt(0)):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(e){var s=!0;switch(e.keyCode){case i.ui.keyCode.TAB:case i.ui.keyCode.ESCAPE:this.close(e),s=!1;break;case i.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case i.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case i.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case i.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case i.ui.keyCode.LEFT:this._move("prev",e);break;case i.ui.keyCode.RIGHT:this._move("next",e);break;case i.ui.keyCode.HOME:case i.ui.keyCode.PAGE_UP:this._move("first",e);break;case i.ui.keyCode.END:case i.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),s=!1}s&&e.preventDefault()}},_selectFocusedItem:function(e){var s=this.menuItems.eq(this.focusIndex).parent("li");s.hasClass("ui-state-disabled")||this._select(s.data("ui-selectmenu-item"),e)},_select:function(e,s){var d=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",s,{item:e}),e.index!==d&&this._trigger("change",s,{item:e}),this.close(s)},_setAria:function(e){var s=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":s,"aria-activedescendant":s}),this.menu.attr("aria-activedescendant",s)},_setOption:function(e,s){if("icons"===e){var d=this.button.find("span.ui-icon");this._removeClass(d,null,this.options.icons.button)._addClass(d,null,s.button)}this._super(e,s),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return(e=e&&(e.jquery||e.nodeType?i(e):this.document.find(e).eq(0)))&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;return!1===e?void this.button.css("width",""):(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(e))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(e){var s=this,d=[];e.each(function(g,C){d.push(s._parseOption(i(C),g))}),this.items=d},_parseOption:function(e,s){var d=e.parent("optgroup");return{element:e,index:s,value:e.val(),label:e.text(),optgroup:d.attr("label")||"",disabled:d.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),i.widget("ui.slider",i.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null}
vendor: 11,360 bytes, line 1
1,numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,s,d=this.options,g=this.element.find(".ui-slider-handle"),C=[];for(g.length>(s=d.values&&d.values.length||1)&&(g.slice(s).remove(),g=g.slice(0,s)),e=g.length;e<s;e++)C.push("<span tabindex='0'></span>");this.handles=g.add(i(C.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(U){i(this).data("ui-slider-handle-index",U).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:i.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=i("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var d,g,C,U,nt,ut,vt=this,Wt=this.options;return!Wt.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),d=this._normValueFromMouse({x:e.pageX,y:e.pageY}),g=this._valueMax()-this._valueMin()+1,this.handles.each(function(Bt){var xt=Math.abs(d-vt.values(Bt));(xt<g||g===xt&&(Bt===vt._lastChangedValue||vt.values(Bt)===Wt.min))&&(g=xt,C=i(this),U=Bt)}),!1!==this._start(e,U)&&(this._mouseSliding=!0,this._handleIndex=U,this._addClass(C,null,"ui-state-active"),C.trigger("focus"),nt=C.offset(),ut=!i(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=ut?{left:0,top:0}:{left:e.pageX-nt.left-C.width()/2,top:e.pageY-nt.top-C.height()/2-(parseInt(C.css("borderTopWidth"),10)||0)-(parseInt(C.css("borderBottomWidth"),10)||0)+(parseInt(C.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,U,d),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var d=this._normValueFromMouse({x:e.pageX,y:e.pageY});return this._slide(e,this._handleIndex,d),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var s,d,g,C;return 1<(d=("horizontal"===this.orientation?(s=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(s=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/s)&&(d=1),d<0&&(d=0),"vertical"===this.orientation&&(d=1-d),g=this._valueMax()-this._valueMin(),C=this._valueMin()+d*g,this._trimAlignValue(C)},_uiHash:function(e,s,d){var g={handle:this.handles[e],handleIndex:e,value:void 0!==s?s:this.value()};return this._hasMultipleValues()&&(g.value=void 0!==s?s:this.values(e),g.values=d||this.values()),g},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,s){return this._trigger("start",e,this._uiHash(s))},_slide:function(e,s,d){var g,C=this.value(),U=this.values();this._hasMultipleValues()&&(g=this.values(s?0:1),C=this.values(s),2===this.options.values.length&&!0===this.options.range&&(d=0===s?Math.min(g,d):Math.max(g,d)),U[s]=d),d===C||!1!==this._trigger("slide",e,this._uiHash(s,d,U))&&(this._hasMultipleValues()?this.values(s,d):this.value(d))},_stop:function(e,s){this._trigger("stop",e,this._uiHash(s))},_change:function(e,s){this._keySliding||this._mouseSliding||(this._lastChangedValue=s,this._trigger("change",e,this._uiHash(s)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,s){var d,g,C;if(1<arguments.length)return this.options.values[e]=this._trimAlignValue(s),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!i.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(d=this.options.values,g=e,C=0;d.length>C;C+=1)d[C]=this._trimAlignValue(g[C]),this._change(null,C);this._refreshValue()},_setOption:function(e,s){var d,g=0;switch("range"===e&&!0===this.options.range&&("min"===s?(this.options.value=this._values(0),this.options.values=null):"max"===s&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),i.isArray(this.options.values)&&(g=this.options.values.length),this._super(e,s),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(s),this.handles.css("horizontal"===s?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),d=g-1;0<=d;d--)this._change(null,d);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){return this._trimAlignValue(this.options.value)},_values:function(e){var d,g;if(arguments.length)return this._trimAlignValue(this.options.values[e]);if(this._hasMultipleValues()){for(d=this.options.values.slice(),g=0;d.length>g;g+=1)d[g]=this._trimAlignValue(d[g]);return d}return[]},_trimAlignValue:function(e){if(this._valueMin()>=e)return this._valueMin();if(e>=this._valueMax())return this._valueMax();var s=0<this.options.step?this.options.step:1,d=(e-this._valueMin())%s,g=e-d;return 2*Math.abs(d)>=s&&(g+=0<d?s:-s),parseFloat(g.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,s=this._valueMin(),d=this.options.step;(e=Math.round((e-s)/d)*d+s)>this.options.max&&(e-=d),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var s=""+e,d=s.indexOf(".");return-1===d?0:s.length-d-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,s,d,g,C,U=this.options.range,nt=this.options,ut=this,vt=!this._animateOff&&nt.animate,Wt={};this._hasMultipleValues()?this.handles.each(function(Bt){s=(ut.values(Bt)-ut._valueMin())/(ut._valueMax()-ut._valueMin())*100,Wt["horizontal"===ut.orientation?"left":"bottom"]=s+"%",i(this).stop(1,1)[vt?"animate":"css"](Wt,nt.animate),!0===ut.options.range&&("horizontal"===ut.orientation?(0===Bt&&ut.range.stop(1,1)[vt?"animate":"css"]({left:s+"%"},nt.animate),1===Bt&&ut.range[vt?"animate":"css"]({width:s-e+"%"},{queue:!1,duration:nt.animate})):(0===Bt&&ut.range.stop(1,1)[vt?"animate":"css"]({bottom:s+"%"},nt.animate),1===Bt&&ut.range[vt?"animate":"css"]({height:s-e+"%"},{queue:!1,duration:nt.animate}))),e=s}):(d=this.value(),g=this._valueMin(),C=this._valueMax(),Wt["horizontal"===this.orientation?"left":"bottom"]=(s=C!==g?(d-g)/(C-g)*100:0)+"%",this.handle.stop(1,1)[vt?"animate":"css"](Wt,nt.animate),"min"===U&&"horizontal"===this.orientation&&this.range.stop(1,1)[vt?"animate":"css"]({width:s+"%"},nt.animate),"max"===U&&"horizontal"===this.orientation&&this.range.stop(1,1)[vt?"animate":"css"]({width:100-s+"%"},nt.animate),"min"===U&&"vertical"===this.orientation&&this.range.stop(1,1)[vt?"animate":"css"]({height:s+"%"},nt.animate),"max"===U&&"vertical"===this.orientation&&this.range.stop(1,1)[vt?"animate":"css"]({height:100-s+"%"},nt.animate))},_handleEvents:{keydown:function(e){var s,d,g,C=i(e.target).data("ui-slider-handle-index");switch(e.keyCode){case i.ui.keyCode.HOME:case i.ui.keyCode.END:case i.ui.keyCode.PAGE_UP:case i.ui.keyCode.PAGE_DOWN:case i.ui.keyCode.UP:case i.ui.keyCode.RIGHT:case i.ui.keyCode.DOWN:case i.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(i(e.target),null,"ui-state-active"),!1===this._start(e,C)))return}switch(g=this.options.step,s=d=this._hasMultipleValues()?this.values(C):this.value(),e.keyCode){case i.ui.keyCode.HOME:d=this._valueMin();break;case i.ui.keyCode.END:d=this._valueMax();break;case i.ui.keyCode.PAGE_UP:d=this._trimAlignValue(s+(this._valueMax()-this._valueMin())/this.numPages);break;case i.ui.keyCode.PAGE_DOWN:d=this._trimAlignValue(s-(this._valueMax()-this._valueMin())/this.numPages);break;case i.ui.keyCode.UP:case i.ui.keyCode.RIGHT:if(s===this._valueMax())return;d=this._trimAlignValue(s+g);break;case i.ui.keyCode.DOWN:case i.ui.keyCode.LEFT:if(s===this._valueMin())return;d=this._trimAlignValue(s-g)}this._slide(e,C,d)},keyup:function(e){var s=i(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,s),this._change(e,s),this._removeClass(i(e.target),null,"ui-state-active"))}}}),i.widget("ui.sortable",i.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,s,d){return s<=e&&e<s+d},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,s){this._super(e,s),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),i.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}
vendor: 8,945 bytes, line 1
1)},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;0<=e;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,s){var d=null,g=!1,C=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),i(e.target).parents().each(function(){return i.data(this,C.widgetName+"-item")===C?(d=i(this),!1):void 0}),i.data(e.target,C.widgetName+"-item")===C&&(d=i(e.target)),!d||this.options.handle&&!s&&(i(this.options.handle,d).find("*").addBack().each(function(){this===e.target&&(g=!0)}),!g)||(this.currentItem=d,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,s,d){var g,C,U=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},i.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,U.cursorAt&&this._adjustOffsetFromHelper(U.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),U.containment&&this._setContainment(),U.cursor&&"auto"!==U.cursor&&(C=this.document.find("body"),this.storedCursor=C.css("cursor"),C.css("cursor",U.cursor),this.storedStylesheet=i("<style>*{ cursor: "+U.cursor+" !important; }</style>").appendTo(C)),U.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",U.opacity)),U.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",U.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!d)for(g=this.containers.length-1;0<=g;g--)this.containers[g]._trigger("activate",e,this._uiHash(this));return i.ui.ddmanager&&(i.ui.ddmanager.current=this),i.ui.ddmanager&&!U.dropBehaviour&&i.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var s,d,g,C,U=this.options,nt=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<U.scrollSensitivity?this.scrollParent[0].scrollTop=nt=this.scrollParent[0].scrollTop+U.scrollSpeed:e.pageY-this.overflowOffset.top<U.scrollSensitivity&&(this.scrollParent[0].scrollTop=nt=this.scrollParent[0].scrollTop-U.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<U.scrollSensitivity?this.scrollParent[0].scrollLeft=nt=this.scrollParent[0].scrollLeft+U.scrollSpeed:e.pageX-this.overflowOffset.left<U.scrollSensitivity&&(this.scrollParent[0].scrollLeft=nt=this.scrollParent[0].scrollLeft-U.scrollSpeed)):(e.pageY-this.document.scrollTop()<U.scrollSensitivity?nt=this.document.scrollTop(this.document.scrollTop()-U.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<U.scrollSensitivity&&(nt=this.document.scrollTop(this.document.scrollTop()+U.scrollSpeed)),e.pageX-this.document.scrollLeft()<U.scrollSensitivity?nt=this.document.scrollLeft(this.document.scrollLeft()-U.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<U.scrollSensitivity&&(nt=this.document.scrollLeft(this.document.scrollLeft()+U.scrollSpeed))),!1!==nt&&i.ui.ddmanager&&!U.dropBehaviour&&i.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),s=this.items.length-1;0<=s;s--)if(g=(d=this.items[s]).item[0],(C=this._intersectsWithPointer(d))&&d.instance===this.currentContainer&&g!==this.currentItem[0]&&this.placeholder[1===C?"next":"prev"]()[0]!==g&&!i.contains(this.placeholder[0],g)&&("semi-dynamic"!==this.options.type||!i.contains(this.element[0],g))){if(this.direction=1===C?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(d))break;this._rearrange(e,d),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),i.ui.ddmanager&&i.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,s){if(e){if(i.ui.ddmanager&&!this.options.dropBehaviour&&i.ui.ddmanager.drop(this,e),this.options.revert){var d=this,g=this.placeholder.offset(),C=this.options.axis,U={};C&&"x"!==C||(U.left=g.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),C&&"y"!==C||(U.top=g.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,i(this.helper).animate(U,parseInt(this.options.revert,10)||500,function(){d._clear(e)})}else this._clear(e,s);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new i.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;0<=e;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),i.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?i(this.domPosition.prev).after(this.currentItem):i(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var s=this._getItemsAsjQuery(e&&e.connected),d=[];return e=e||{},i(s).each(function(){var g=(i(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);g&&d.push((e.key||g[1]+"[]")+"="+(e.key&&e.expression?g[1]:g[2]))}),!d.length&&e.key&&d.push(e.key+"="),d.join("&")},toArray:function(e){var s=this._getItemsAsjQuery(e&&e.connected),d=[];return e=e||{},s.each(function(){d.push(i(e.item||this).attr(e.attribute||"id")||"")}),d},_intersectsWith:function(e){var s=this.positionAbs.left,g=this.positionAbs.top,U=e.left,nt=U+e.width,ut=e.top,vt=ut+e.height,Wt=this.offset.click.top,Bt=this.offset.click.left;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?("x"===this.options.axis||ut<g+Wt&&g+Wt<vt)&&("y"===this.options.axis||U<s+Bt&&s+Bt<nt):s+this.helperProportions.width/2>U&&nt>s+this.helperProportions.width-this.helperProportions.width/2&&g+this.helperProportions.height/2>ut&&vt>g+this.helperProportions.height-this.helperProportions.height/2},_intersectsWithPointer:function(e){var s,d,g="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),C="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!g||!C)&&(s=this._getDragVerticalDirection(),d=this._getDragHorizontalDirection(),this.floating?"right"===d||"down"===s?2:1:s&&("down"===s?2:1))},_intersectsWithSides:function(e){var s=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),d=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),g=this._getDragVerticalDirection(),C=this._getDragHorizontalDirection();return this.floating&&C?"right"===C&&d||"left"===C&&!d:g&&("down"===g&&s||"up"===g&&!s)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!=e&&(0<e?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!=e&&(0<e?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;
1return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){function s(){nt.push(this)}var d,g,C,U,nt=[],ut=[],vt=this._connectWith();if(vt&&e)for(d=vt.length-1;0<=d;d--)for(g=(C=i(vt[d],this.document[0])).length-1;0<=g;g--)(U=i.data(C[g],this.widgetFullName))&&U!==this&&!U.options.disabled&&ut.push([i.isFunction(U.options.items)?U.options.items.call(U.element):i(U.options.items,U.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),U]);for(ut.push([i.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):i(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),d=ut.length-1;0<=d;d--)ut[d][0].each(s);return i(nt)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=i.grep(this.items,function(s){for(var d=0;e.length>d;d++)if(e[d]===s.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var s,d,g,C,U,nt,ut,vt,Wt=this.items,Bt=[[i.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):i(this.options.items,this.element),this]],xt=this._connectWith();if(xt&&this.ready)for(s=xt.length-1;0<=s;s--)for(d=(g=i(xt[s],this.document[0])).length-1;0<=d;d--)(C=i.data(g[d],this.widgetFullName))&&C!==this&&!C.options.disabled&&(Bt.push([i.isFunction(C.options.items)?C.options.items.call(C.element[0],e,{item:this.currentItem}):i(C.options.items,C.element),C]),this.containers.push(C));for(s=Bt.length-1;0<=s;s--)for(U=Bt[s][1],d=0,vt=(nt=Bt[s][0]).length;d<vt;d++)(ut=i(nt[d])).data(this.widgetName+"-item",U),Wt.push({item:ut,instance:U,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var s,d,g,C;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),s=this.items.length-1;0<=s;s--)(d=this.items[s]).instance!==this.currentContainer&&this.currentContainer&&d.item[0]!==this.currentItem[0]||(g=this.options.toleranceElement?i(this.options.toleranceElement,d.item):d.item,e||(d.width=g.outerWidth(),d.height=g.outerHeight()),C=g.offset(),d.left=C.left,d.top=C.top);
vendor: 13,020 bytes, line 1
1if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(s=this.containers.length-1;0<=s;s--)C=this.containers[s].element.offset(),this.containers[s].containerCache.left=C.left,this.containers[s].containerCache.top=C.top,this.containers[s].containerCache.width=this.containers[s].element.outerWidth(),this.containers[s].containerCache.height=this.containers[s].element.outerHeight();return this},_createPlaceholder:function(e){var s,d=(e=e||this).options;d.placeholder&&d.placeholder.constructor!==String||(s=d.placeholder,d.placeholder={element:function(){var g=e.currentItem[0].nodeName.toLowerCase(),C=i("<"+g+">",e.document[0]);return e._addClass(C,"ui-sortable-placeholder",s||e.currentItem[0].className)._removeClass(C,"ui-sortable-helper"),"tbody"===g?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),i("<tr>",e.document[0]).appendTo(C)):"tr"===g?e._createTrPlaceholder(e.currentItem,C):"img"===g&&C.attr("src",e.currentItem.attr("src")),s||C.css("visibility","hidden"),C},update:function(g,C){s&&!d.forcePlaceholderSize||(C.height()||C.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),C.width()||C.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=i(d.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),d.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,s){var d=this;e.children().each(function(){i("<td> </td>",d.document[0]).attr("colspan",i(this).attr("colspan")||1).appendTo(s)})},_contactContainers:function(e){var s,d,g,C,U,nt,ut,vt,Wt,Bt,xt=null,Ft=null;for(s=this.containers.length-1;0<=s;s--)if(!i.contains(this.currentItem[0],this.containers[s].element[0]))if(this._intersectsWith(this.containers[s].containerCache)){if(xt&&i.contains(this.containers[s].element[0],xt.element[0]))continue;xt=this.containers[s],Ft=s}else this.containers[s].containerCache.over&&(this.containers[s]._trigger("out",e,this._uiHash(this)),this.containers[s].containerCache.over=0);if(xt)if(1===this.containers.length)this.containers[Ft].containerCache.over||(this.containers[Ft]._trigger("over",e,this._uiHash(this)),this.containers[Ft].containerCache.over=1);else{for(g=1e4,C=null,U=(Wt=xt.floating||this._isFloating(this.currentItem))?"left":"top",nt=Wt?"width":"height",Bt=Wt?"pageX":"pageY",d=this.items.length-1;0<=d;d--)i.contains(this.containers[Ft].element[0],this.items[d].item[0])&&this.items[d].item[0]!==this.currentItem[0]&&(ut=this.items[d].item.offset()[U],vt=!1,e[Bt]-ut>this.items[d][nt]/2&&(vt=!0),g>Math.abs(e[Bt]-ut)&&(g=Math.abs(e[Bt]-ut),C=this.items[d],this.direction=vt?"up":"down"));if(!C&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[Ft])return void(this.currentContainer.containerCache.over||(this.containers[Ft]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));C?this._rearrange(e,C,null,!0):this._rearrange(e,null,this.containers[Ft].element,!0),this._trigger("change",e,this._uiHash()),this.containers[Ft]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[Ft],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[Ft]._trigger("over",e,this._uiHash(this)),this.containers[Ft].containerCache.over=1}},_createHelper:function(e){var s=this.options,d=i.isFunction(s.helper)?i(s.helper.apply(this.element[0],[e,this.currentItem])):"clone"===s.helper?this.currentItem.clone():this.currentItem;return d.parents("body").length||i("parent"!==s.appendTo?s.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),d[0].style.width&&!s.forceHelperSize||d.width(this.currentItem.width()),d[0].style.height&&!s.forceHelperSize||d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),i.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&i.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&i.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,s,d,g=this.options;"parent"===g.containment&&(g.containment=this.helper[0].parentNode),"document"!==g.containment&&"window"!==g.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===g.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===g.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(g.containment)||(e=i(g.containment)[0],s=i(g.containment).offset(),d="hidden"!==i(e).css("overflow"),this.containment=[s.left+(parseInt(i(e).css("borderLeftWidth"),10)||0)+(parseInt(i(e).css("paddingLeft"),10)||0)-this.margins.left,s.top+(parseInt(i(e).css("borderTopWidth"),10)||0)+(parseInt(i(e).css("paddingTop"),10)||0)-this.margins.top,s.left+(d?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(i(e).css("borderLeftWidth"),10)||0)-(parseInt(i(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,s.top+(d?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(i(e).css("borderTopWidth"),10)||0)-(parseInt(i(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,s){s=s||this.position;var d="absolute"===e?1:-1,g="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&i.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,C=/(html|body)/i.test(g[0].tagName);return{top:s.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():C?0:g.scrollTop())*d,left:s.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():C?0:g.scrollLeft())*d}},_generatePosition:function(e){var s,d,g=this.options,C=e.pageX,U=e.pageY,nt="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&i.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,ut=/(html|body)/i.test(nt[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(C=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(U=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(C=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(U=this.containment[3]+this.offset.click.top)),g.grid&&(s=this.originalPageY+Math.round((U-this.originalPageY)/g.grid[1])*g.grid[1],U=this.containment?s-this.offset.click.top>=this.containment[1]&&s-this.offset.click.top<=this.containment[3]?s:s-this.offset.click.top>=this.containment[1]?s-g.grid[1]:s+g.grid[1]:s,d=this.originalPageX+Math.round((C-this.originalPageX)/g.grid[0])*g.grid[0],C=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]?d:d-this.offset.click.left>=this.containment[0]?d-g.grid[0]:d+g.grid[0]:d)),{top:U-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():ut?0:nt.scrollTop()),left:C-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():ut?0:nt.scrollLeft())}},_rearrange:function(e,s,d,g){d?d[0].appendChild(this.placeholder[0]):s.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?s.item[0]:s.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var C=this.counter;this._delay(function(){C===this.counter&&this.refreshPositions(!g)})},_clear:function(e,s){function d(U,nt,ut){return function(vt){ut._trigger(U,vt,nt._uiHash(nt))}}this.reverting=!1;var g,C=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(g in this._storedCSS)"auto"!==this._storedCSS[g]&&"static"!==this._storedCSS[g]||(this._storedCSS[g]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!s&&C.push(function(U){this._trigger("receive",U,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||s||C.push(function(U){this._trigger("update",U,this._uiHash())}),this!==this.currentContainer&&(s||(C.push(function(U){this._trigger("remove",U,this._uiHash())}),C.push(function(U){return function(nt){U._trigger("receive",nt,this._uiHash(this))}}.call(this,this.currentContainer)),C.push(function(U){return function(nt){U._trigger("update",nt,this._uiHash(this))}}.call(this,this.currentContainer)))),g=this.containers.length-1;0<=g;g--)s||C.push(d("deactivate",this,this.containers[g])),this.containers[g].containerCache.over&&(C.push(d("out",this,this.containers[g])),this.containers[g].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,s||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!s){for(g=0;C.length>g;g++)C[g].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===i.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var s=e||this;return{helper:s.helper,placeholder:s.placeholder||i([]),position:s.position,originalPosition:s.originalPosition,offset:s.positionAbs,item:s.currentItem,sender:e?e.element:null}}}),i.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),s=this.element;return i.each(["min","max","step"],function(d,g){var C=s.attr(g);null!=C&&C.length&&(e[g]=C)}),e}
1,_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",e)))},mousewheel:function(e,s){if(s){if(!this.spinning&&!this._start(e))return!1;this._spin((0<s?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(e){function s(){this.element[0]===i.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=d,this._delay(function(){this.previous=d}))}var d;d=this.element[0]===i.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),s.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,s.call(this)}),!1!==this._start(e)&&this._repeat(null,i(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return i(e.currentTarget).hasClass("ui-state-active")?!1!==this._start(e)&&void this._repeat(null,i(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var s=this.options,d=i.ui.keyCode;switch(e.keyCode){case d.UP:return this._repeat(null,1,e),!0;case d.DOWN:return this._repeat(null,-1,e),!0;case d.PAGE_UP:return this._repeat(null,s.page,e),!0;case d.PAGE_DOWN:return this._repeat(null,-s.page,e),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(e,s,d){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,s,d)},e),this._spin(s*this.options.step,d)},_spin:function(e,s){var d=this.value()||0;this.counter||(this.counter=1),d=this._adjustValue(d+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",s,{value:d})||(this._value(d),this.counter++)},_increment:function(e){var s=this.options.incremental;return s?i.isFunction(s)?s(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var s=""+e,d=s.indexOf(".");return-1===d?0:s.length-d-1},_adjustValue:function(e){var s,d,g=this.options;return d=e-(s=null!==g.min?g.min:0),e=s+(d=Math.round(d/g.step)*g.step),e=parseFloat(e.toFixed(this._precision())),null!==g.max&&e>g.max?g.max:null!==g.min&&g.min>e?g.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,s){var d,g,C;return"culture"===e||"numberFormat"===e?(d=this._parse(this.element.val()),this.options[e]=s,void this.element.val(this._format(d))):("max"!==e&&"min"!==e&&"step"!==e||"string"!=typeof s||(s=this._parse(s)),"icons"===e&&(g=this.buttons.first().find(".ui-icon"),this._removeClass(g,null,this.options.icons.up),this._addClass(g,
vendor: 18,512 bytes, line 1
1null,s.up),C=this.buttons.last().find(".ui-icon"),this._removeClass(C,null,this.options.icons.down),this._addClass(C,null,s.down)),void this._super(e,s))},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:r(function(e){this._super(e)}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,s){var d;""===e||null!==(d=this._parse(e))&&(s||(d=this._adjustValue(d)),e=this._format(d)),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:r(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:r(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:r(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:r(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?void r(this._value).call(this,e):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),!1!==i.uiBackCompat&&i.widget("ui.spinner",i.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),i.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(ue=/#.*$/,function(e){var s,d;s=e.href.replace(ue,""),d=location.href.replace(ue,"");try{s=decodeURIComponent(s)}catch(g){}try{d=decodeURIComponent(d)}catch(g){}return 1<e.hash.length&&s===d}),_create:function(){var e=this,s=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,s.collapsible),this._processTabs(),s.active=this._initialActive(),i.isArray(s.disabled)&&(s.disabled=i.unique(s.disabled.concat(i.map(this.tabs.filter(".ui-state-disabled"),function(d){return e.tabs.index(d)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(s.active):i(),this._refresh(),this.active.length&&this.load(s.active)},_initialActive:function(){var e=this.options.active,s=this.options.collapsible,d=location.hash.substring(1);return null===e&&(d&&this.tabs.each(function(g,C){return i(C).attr("aria-controls")===d?(e=g,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==e&&-1!==e||(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!s&&0),!s&&!1===e&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):i()}},_tabKeydown:function(e){var s=i(i.ui.safeActiveElement(this.document[0])).closest("li"),d=this.tabs.index(s),g=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case i.ui.keyCode.RIGHT:case i.ui.keyCode.DOWN:d++;break;case i.ui.keyCode.UP:case i.ui.keyCode.LEFT:g=!1,d--;break;case i.ui.keyCode.END:d=this.anchors.length-1;break;case i.ui.keyCode.HOME:d=0;break;case i.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(d);case i.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(d!==this.options.active&&d);default:return}e.preventDefault(),clearTimeout(this.activating),d=this._focusNextTab(d,g),e.ctrlKey||e.metaKey||(s.attr("aria-selected","false"),this.tabs.eq(d).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",d)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===i.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===i.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===i.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,s){for(var d=this.tabs.length-1;-1!==i.inArray((d<e&&(e=0),e<0&&(e=d),e),this.options.disabled);)e=s?e+1:e-1;return e},_focusNextTab:function(e,s){return e=this._findNextTab(e,s),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,s){return"active"===e?void this._activate(s):(this._super(e,s),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,s),s||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(s),void("heightStyle"===e&&this._setupHeightStyle(s)))},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,s=this.tablist.children(":has(a[href])");e.disabled=i.map(s.filter(".ui-state-disabled"),function(d){return s.index(d)}),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!i.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=i()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=i()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,s=this.tabs,d=this.anchors,g=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(C){i(this).is(".ui-state-disabled")&&C.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){i(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return i("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=i(),this.anchors.each(function(C,U){var nt,ut,vt,Wt=i(U).uniqueId().attr("id"),Bt=i(U).closest("li"),xt=Bt.attr("aria-controls");e._isLocal(U)?(vt=(nt=U.hash).substring(1),ut=e.element.find(e._sanitizeSelector(nt))):(nt="#"+(vt=Bt.attr("aria-controls")||i({}).uniqueId()[0].id),(ut=e.element.find(nt)).length||(ut=e._createPanel(vt)).insertAfter(e.panels[C-1]||e.tablist),ut.attr("aria-live","polite")),ut.length&&(e.panels=e.panels.add(ut)),xt&&Bt.data("ui-tabs-aria-controls",xt),Bt.attr({"aria-controls":vt,"aria-labelledby":Wt}),ut.attr("aria-labelledby",Wt)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),s&&(this._off(s.not(this.tabs)),this._off(d.not(this.anchors)),this._off(g.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return i("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var s,d,g;for(i.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),g=0;d=this.tabs[g];g++)s=i(d),!0===e||-1!==i.inArray(g,e)?(s.attr("aria-disabled","true"),this._addClass(s,null,"ui-state-disabled")):(s.removeAttr("aria-disabled"),this._removeClass(s,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var s={};e&&i.each(e.split(" "),function(d,g){s[g]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(d){d.preventDefault()}}),this._on(this.anchors,s),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var s,d=this.element.parent();"fill"===e?(s=d.height(),s-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var g=i(this),C=g.css("position");"absolute"!==C&&"fixed"!==C&&(s-=g.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){s-=i(this).outerHeight(!0)}),this.panels.each(function(){i(this).height(Math.max(0,s-i(this).innerHeight()+i(this).height()))}).css("overflow","auto")):"auto"===e&&(s=0,this.panels.each(function(){s=Math.max(s,i(this).height("").height())}).height(s))},_eventHandler:function(e){var s=this.options,d=this.active,g=i(e.currentTarget).closest("li"),C=g[0]===d[0],U=C&&s.collapsible,nt=U?i():this._getPanelForTab(g),ut=d.length?this._getPanelForTab(d):i(),vt={oldTab:d,oldPanel:ut,newTab:U?i():g,newPanel:nt};e.preventDefault(),g.hasClass("ui-state-disabled")||g.hasClass("ui-tabs-loading")||this.running||C&&!s.collapsible||!1===this._trigger("beforeActivate",e,vt)||(s.active=!U&&this.tabs.index(g),this.active=C?i():g,this.xhr&&this.xhr.abort(),ut.length||nt.length||i.error("jQuery UI Tabs: Mismatching fragment identifier."),nt.length&&this.load(this.tabs.index(g),e),this._toggle(e,vt))},_toggle:function(e,s){function d(){C.running=!1,C._trigger("activate",e,s)}function g(){C._addClass(s.newTab.closest("li"),"ui-tabs-active","ui-state-active"),U.length&&C.options.show?C._show(U,C.options.show,d):(U.show(),d())}var C=this,U=s.newPanel,nt=s.oldPanel;this.running=!0,nt.length&&this.options.hide?this._hide(nt,this.options.hide,function(){C._removeClass(s.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),g()}):(this._removeClass(s.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),nt.hide(),g()),nt.attr("aria-hidden","true"),s.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),U.length&&nt.length?s.oldTab.attr("tabIndex",-1):U.length&&this.tabs.filter(function(){return 0===i(this).attr("tabIndex")}).attr("tabIndex",-1),U.attr("aria-hidden","false"),s.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var s,d=this._findActive(e);d[0]!==this.active[0]&&(d.length||(d=this.active),s=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:s,currentTarget:s,preventDefault:i.noop}))},_findActive:function(e){return!1===e?i():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+i.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){i.data(this,"ui-tabs-destroy")?i(this).remove():i(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=i(this),s=e.data("ui-tabs-aria-controls");s?e.attr("aria-controls",s).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var s=this.options.disabled;!1!==s&&(s=void 0!==e&&(e=this._getIndex(e),i.isArray(s)?i.map(s,function(d){return d!==e?d:null}):i.map(this.tabs,function(d,g){return g!==e?g:null})),this._setOptionDisabled(s))},disable:function(e){var s=this.options.disabled;if(!0!==s){if(void 0===e)s=!0;else{if(e=this._getIndex(e),-1!==i.inArray(e,s))return;s=i.isArray(s)?i.merge([e],s).sort():[e]}this._setOptionDisabled(s)}},load:function(e,s){function d(vt,Wt){"abort"===Wt&&g.panels.stop(!1,!0),g._removeClass(C,"ui-tabs-loading"),nt.removeAttr("aria-busy"),vt===g.xhr&&delete g.xhr}e=this._getIndex(e);var g=this,C=this.tabs.eq(e),U=C.find(".ui-tabs-anchor"),nt=this._getPanelForTab(C),ut={tab:C,panel:nt};this._isLocal(U[0])||(this.xhr=i.ajax(this._ajaxSettings(U,s,ut)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(C,"ui-tabs-loading"),nt.attr("aria-busy","true"),this.xhr.done(function(vt,Wt,Bt){setTimeout(function(){nt.html(vt),g._trigger("load",s,ut),d(Bt,Wt)},1)}).fail(function(vt,Wt){setTimeout(function(){d(vt,Wt)},1)})))},_ajaxSettings:function(e,s,d){var g=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(C,U){return g._trigger("beforeLoad",s,i.extend({jqXHR:C,ajaxSettings:U},d))}}},_getPanelForTab:function(e){var s=i(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+s))}}),!1!==i.uiBackCompat&&i.widget("ui.tabs",i.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),i.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=i(this).attr("title")||"";return i("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,s){var d=(e.attr("aria-describedby")||"").split(/\s+/);d.push(s),e.data("ui-tooltip-id",s).attr("aria-describedby",i.trim(d.join(" ")))},_removeDescribedBy:function(e){var s=e.data("ui-tooltip-id"),d=(e.attr("aria-describedby")||"").split(/\s+/),g=i.inArray(s,d);-1!==g&&d.splice(g,1),e.removeData("ui-tooltip-id"),(d=i.trim(d.join(" ")))?e.attr("aria-describedby",d):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=i("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=i([])},_setOption:function(e,s){var d=this;this._super(e,s),"content"===e&&i.each(this.tooltips,function(g,C){d._updateContent(C.element)})},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var e=this;i.each(this.tooltips,function(s,d){var g=i.Event("blur");g.target=g.currentTarget=d.element[0],e.close(g,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var s=i(this);return s.is("[title]")?s.data("ui-tooltip-title",s.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var e=i(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=i([])},open:function(e){var s=this,d=i(e?e.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&d.parents().each(function(){var g,C=i(this);C.data("ui-tooltip-open")&&((g=i.Event("blur")).target=g.currentTarget=this,s.close(g,!0)),C.attr("title")&&(C.uniqueId(),s.parents[this.id]={element:this,title:C.attr("title")},C.attr("title",""))}),this._registerCloseHandlers(e,d),this._updateContent(d,e))},_updateContent:function(e,s){var d,g=this.options.content,C=this,U=s?s.type:null;return"string"==typeof g||g.nodeType||g.jquery?this._open(s,e,g):void((d=g.call(e[0],function(nt){C._delay(function(){e.data("ui-tooltip-open")&&(s&&(s.type=U),this._open(s,e,nt))})}))&&this._open(s,e,d))},_open:function(e,s,d){function g(Wt){vt.of=Wt,U.is(":hidden")||U.position(vt)}var C,U,nt,ut,vt=i.extend({},this.options.position);if(d){if(C=this._find(s))return void C.tooltip.find(".ui-tooltip-content").html(d);s.is("[title]")&&(e&&"mouseover"===e.type?s.attr("title",""):s.removeAttr("title")),C=this._tooltip(s),this._addDescribedBy(s,(U=C.tooltip).attr("id")),U.find(".ui-tooltip-content").html(d),this.liveRegion.children().hide(),(ut=i("<div>").html(U.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),ut.removeAttr("id").find("[id]").removeAttr("id"),ut.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:g}),g(e)):U.position(i.extend({of:s},this.options.position)),U.hide(),this._show(U,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(nt=this.delayedShow=setInterval(function(){U.is(":visible")&&(g(vt.of),clearInterval(nt))},i.fx.interval)),this._trigger("open",e,{tooltip:U})}},_registerCloseHandlers:function(e,s){var d={keyup:function(g){if(g.keyCode===i.ui.keyCode.ESCAPE){var C=i.Event(g);C.currentTarget=s[0],this.close(C,!0)}}};s[0]!==this.element[0]&&(d.remove=function(){this._removeTooltip(this._find(s).tooltip)}),e&&"mouseover"!==e.type||(d.mouseleave="close"),e&&"focusin"!==e.type||(d.focusout="close"),this._on(!0,s,d)},close:function(e){var s,d=this,g=i(e?e.currentTarget:this.element),C=this._find(g);return C?(s=C.tooltip,void(C.closing||(clearInterval(this.delayedShow),g.data("ui-tooltip-title")&&!g.attr("title")&&g.attr("title",g.data("ui-tooltip-title")),this._removeDescribedBy(g),C.hiding=!0,s.stop(!0),this._hide(s,this.options.hide,function(){d._removeTooltip(i(this))}),g.removeData("ui-tooltip-open"),this._off(g,"mouseleave focusout keyup"),g[0]!==this.element[0]&&this._off(g,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&i.each(this.parents,function(U,nt){i(nt.element).attr("title",nt.title),delete d.parents[U]}),C.closing=!0,this._trigger("close",e,{tooltip:s}
1),C.hiding||(C.closing=!1)))):void g.removeData("ui-tooltip-open")},_tooltip:function(e){var s=i("<div>").attr("role","tooltip"),d=i("<div>").appendTo(s),g=s.uniqueId().attr("id");return this._addClass(d,"ui-tooltip-content"),this._addClass(s,"ui-tooltip","ui-widget ui-widget-content"),s.appendTo(this._appendTo(e)),this.tooltips[g]={element:e,tooltip:s}},_find:function(e){var s=e.data("ui-tooltip-id");return s?this.tooltips[s]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var s=e.closest(".ui-front, dialog");return s.length||(s=this.document[0].body),s},_destroy:function(){var e=this;i.each(this.tooltips,function(s,d){var g=i.Event("blur"),C=d.element;g.target=g.currentTarget=C[0],e.close(g,!0),i("#"+s).remove(),C.data("ui-tooltip-title")&&(C.attr("title")||C.attr("title",C.data("ui-tooltip-title")),C.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==i.uiBackCompat&&i.widget("ui.tooltip",i.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}})}),function(i,D){"object"==typeof exports&&"undefined"!=typeof module?module.exports=D():"function"==typeof define&&define.amd?define(D):i.Popper=D()}(this,function(){"use strict";for(var i="undefined"!=typeof window&&"undefined"!=typeof document,D=["Edge","Trident","Firefox"],K=0,F=0;F<D.length;F+=1)if(i&&0<=navigator.userAgent.indexOf(D[F])){K=1;break}var l=i&&window.Promise?function(Tt){var $t=!1;return function(){$t||($t=!0,window.Promise.resolve().then(function(){$t=!1,Tt()}))}}:function(Tt){var $t=!1;return function(){$t||($t=!0,setTimeout(function(){$t=!1,Tt()},K))}};function r(Tt){return Tt&&"[object Function]"==={}.toString.call(Tt)}function a(Tt,$t){if(1!==Tt.nodeType)return[];var ee=Tt.ownerDocument.defaultView.getComputedStyle(Tt,null);return $t?ee[$t]:ee}function u(Tt){return"HTML"===Tt.nodeName?Tt:Tt.parentNode||Tt.host}function b(Tt){if(!Tt)return document.body;switch(Tt.nodeName){case"HTML":case"BODY":return Tt.ownerDocument.body;case"#document":return Tt.body}var $t=a(Tt);return/(auto|scroll|overlay)/.test($t.overflow+$t.overflowY+$t.overflowX)?Tt:b(u(Tt))}var L=i&&!(!window.MSInputMethodContext||!document.documentMode),W=i&&/MSIE 10/.test(navigator.userAgent);function R(Tt){return 11===Tt?L:10===Tt?W:L||W}function k(Tt){if(!Tt)return document.documentElement;for(var $t=R(10)?document.body:null,ee=Tt.offsetParent||null;ee===$t&&Tt.nextElementSibling;)ee=(Tt=Tt.nextElementSibling).offsetParent;var ne=ee&&ee.nodeName;return ne&&"BODY"!==ne&&"HTML"!==ne?-1!==["TH","TD","TABLE"].indexOf(ee.nodeName)&&"static"===a(ee,"position")?k(ee):ee:Tt?Tt.ownerDocument.documentElement:document.documentElement}function N(Tt){return null!==Tt.parentNode?N(Tt.parentNode):Tt}function I(Tt,$t){if(!(Tt&&Tt.nodeType&&$t&&$t.nodeType))return document.documentElement;var ee=Tt.compareDocumentPosition($t)&Node.DOCUMENT_POSITION_FOLLOWING,ne=ee?Tt:$t,xe=ee?$t:Tt,ue=document.createRange();ue.setStart(ne,0),ue.setEnd(xe,0);var e,s,fe=ue.commonAncestorContainer;if(Tt!==fe&&$t!==fe||ne.contains(xe))return"BODY"===(s=(e=fe).nodeName)||"HTML"!==s&&k(e.firstElementChild)!==e?k(fe):fe;var Le=N(Tt);return Le.host?I(Le.host,$t):I(Tt,N($t).host)}function x(Tt,$t){var ee="top"===(1<arguments.length&&void 0!==$t?$t:"top")?"scrollTop":"scrollLeft",ne=Tt.nodeName;if("BODY"!==ne&&"HTML"!==ne)return Tt[ee];var xe=Tt.ownerDocument.documentElement;return(Tt.ownerDocument.scrollingElement||xe)[ee]}function S(Tt,$t){var ee="x"===$t?"Left":"Top",ne="Left"==ee?"Right":"Bottom";return parseFloat(Tt["border"+ee+"Width"],10)+parseFloat(Tt["border"+ne+"Width"],10)}function A(Tt,$t,ee,ne){return Math.max($t["offset"+Tt],$t["scroll"+Tt],ee["client"+Tt],ee["offset"+Tt],ee["scroll"+Tt],R(10)?parseInt(ee["offset"+Tt])+parseInt(ne["margin"+("Height"===Tt?"Top":"Left")])+parseInt(ne["margin"+("Height"===Tt?"Bottom":"Right")]):0)}function O(Tt){var $t=Tt.body,ee=Tt.documentElement,ne=R(10)&&getComputedStyle(ee);return{height:A("Height",$t,ee,ne),width:A("Width",$t,ee,ne)}}function z(Tt,$t){for(var ee=0;ee<$t.length;ee++){var ne=$t[ee];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(Tt,ne.key,ne)}}function v(Tt,$t,ee){return $t in Tt?Object.defineProperty(Tt,$t,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Tt[$t]=ee,Tt}var tt=Object.assign||function(Tt){for(var $t=1;$t<arguments.length;$t++){var ee=arguments[$t];for(var ne in ee)Object.prototype.hasOwnProperty.call(ee,ne)&&(Tt[ne]=ee[ne])}return Tt};function ft(Tt){return tt({},Tt,{right:Tt.left+Tt.width,bottom:Tt.top+Tt.height})}function Rt(Tt){var $t={};try{if(R(10)){$t=Tt.getBoundingClientRect();
vendor: 13,840 bytes, line 1
1var ee=x(Tt,"top"),ne=x(Tt,"left");$t.top+=ee,$t.left+=ne,$t.bottom+=ee,$t.right+=ne}else $t=Tt.getBoundingClientRect()}catch(g){}var xe={left:$t.left,top:$t.top,width:$t.right-$t.left,height:$t.bottom-$t.top},ue="HTML"===Tt.nodeName?O(Tt.ownerDocument):{},e=Tt.offsetWidth-(ue.width||Tt.clientWidth||xe.right-xe.left),s=Tt.offsetHeight-(ue.height||Tt.clientHeight||xe.bottom-xe.top);if(e||s){var d=a(Tt);e-=S(d,"x"),s-=S(d,"y"),xe.width-=e,xe.height-=s}return ft(xe)}function lt(Tt,$t,ee){var ne=2<arguments.length&&void 0!==ee&&ee,xe=R(10),ue="HTML"===$t.nodeName,fe=Rt(Tt),Le=Rt($t),e=b(Tt),s=a($t),d=parseFloat(s.borderTopWidth,10),g=parseFloat(s.borderLeftWidth,10);ne&&ue&&(Le.top=Math.max(Le.top,0),Le.left=Math.max(Le.left,0));var C=ft({top:fe.top-Le.top-d,left:fe.left-Le.left-g,width:fe.width,height:fe.height});if(C.marginTop=0,C.marginLeft=0,!xe&&ue){var U=parseFloat(s.marginTop,10),nt=parseFloat(s.marginLeft,10);C.top-=d-U,C.bottom-=d-U,C.left-=g-nt,C.right-=g-nt,C.marginTop=U,C.marginLeft=nt}return(xe&&!ne?$t.contains(e):$t===e&&"BODY"!==e.nodeName)&&(C=function(ut,vt,Wt){var Bt=2<arguments.length&&void 0!==Wt&&Wt,xt=x(vt,"top"),Ft=x(vt,"left"),Kt=Bt?-1:1;return ut.top+=xt*Kt,ut.bottom+=xt*Kt,ut.left+=Ft*Kt,ut.right+=Ft*Kt,ut}(C,$t)),C}function at(Tt){if(!Tt||!Tt.parentElement||R())return document.documentElement;for(var $t=Tt.parentElement;$t&&"none"===a($t,"transform");)$t=$t.parentElement;return $t||document.documentElement}function mt(Tt,$t,ee,ne,xe){var ue=4<arguments.length&&void 0!==xe&&xe,fe={top:0,left:0},Le=ue?at(Tt):I(Tt,$t);if("viewport"===ne)fe=function(nt,ut){var vt=1<arguments.length&&void 0!==ut&&ut,Wt=nt.ownerDocument.documentElement,Bt=lt(nt,Wt),xt=Math.max(Wt.clientWidth,window.innerWidth||0),Ft=Math.max(Wt.clientHeight,window.innerHeight||0),Kt=vt?0:x(Wt),ce=vt?0:x(Wt,"left");return ft({top:Kt-Bt.top+Bt.marginTop,left:ce-Bt.left+Bt.marginLeft,width:xt,height:Ft})}(Le,ue);else{var e=void 0;"scrollParent"===ne?"BODY"===(e=b(u($t))).nodeName&&(e=Tt.ownerDocument.documentElement):e="window"===ne?Tt.ownerDocument.documentElement:ne;var s=lt(e,Le,ue);if("HTML"!==e.nodeName||function nt(ut){var vt=ut.nodeName;if("BODY"===vt||"HTML"===vt)return!1;if("fixed"===a(ut,"position"))return!0;var Wt=u(ut);return!!Wt&&nt(Wt)}(Le))fe=s;else{var d=O(Tt.ownerDocument),g=d.height,C=d.width;fe.top+=s.top-s.marginTop,fe.bottom=g+s.top,fe.left+=s.left-s.marginLeft,fe.right=C+s.left}}var U="number"==typeof(ee=ee||0);return fe.left+=U?ee:ee.left||0,fe.top+=U?ee:ee.top||0,fe.right-=U?ee:ee.right||0,fe.bottom-=U?ee:ee.bottom||0,fe}function wt(Tt,$t,ee,ne,xe,ue){var fe=5<arguments.length&&void 0!==ue?ue:0;if(-1===Tt.indexOf("auto"))return Tt;var Le=mt(ee,ne,fe,xe),e={top:{width:Le.width,height:$t.top-Le.top},right:{width:Le.right-$t.right,height:Le.height},bottom:{width:Le.width,height:Le.bottom-$t.bottom},left:{width:$t.left-Le.left,height:Le.height}},s=Object.keys(e).map(function(U){return tt({key:U},e[U],{area:(nt=e[U],nt.width*nt.height)});var nt}).sort(function(U,nt){return nt.area-U.area}),d=s.filter(function(U){return U.width>=ee.clientWidth&&U.height>=ee.clientHeight}),g=0<d.length?d[0].key:s[0].key,C=Tt.split("-")[1];return g+(C?"-"+C:"")}function qt(Tt,$t,ee,ne){var xe=3<arguments.length&&void 0!==ne?ne:null;return lt(ee,xe?at($t):I($t,ee),xe)}function ae(Tt){var $t=Tt.ownerDocument.defaultView.getComputedStyle(Tt),ee=parseFloat($t.marginTop||0)+parseFloat($t.marginBottom||0),ne=parseFloat($t.marginLeft||0)+parseFloat($t.marginRight||0);return{width:Tt.offsetWidth+ne,height:Tt.offsetHeight+ee}}function ye(Tt){var $t={left:"right",right:"left",bottom:"top",top:"bottom"};return Tt.replace(/left|right|bottom|top/g,function(ee){return $t[ee]})}function he(Tt,$t,ee){ee=ee.split("-")[0];var ne=ae(Tt),xe={width:ne.width,height:ne.height},ue=-1!==["right","left"].indexOf(ee),fe=ue?"top":"left",Le=ue?"left":"top",e=ue?"height":"width",s=ue?"width":"height";return xe[fe]=$t[fe]+$t[e]/2-ne[e]/2,xe[Le]=ee===Le?$t[Le]-ne[s]:$t[ye(Le)],xe}function Te(Tt,$t){return Array.prototype.find?Tt.find($t):Tt.filter($t)[0]}function Ne(Tt,$t,ee){return(void 0===ee?Tt:Tt.slice(0,function(ne,xe,ue){if(Array.prototype.findIndex)return ne.findIndex(function(Le){return Le.name===ue});var fe=Te(ne,function(Le){return Le.name===ue});return ne.indexOf(fe)}(Tt,0,ee))).forEach(function(ne){ne.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var xe=ne.function||ne.fn;ne.enabled&&r(xe)&&($t.offsets.popper=ft($t.offsets.popper),$t.offsets.reference=ft($t.offsets.reference),$t=xe($t,ne))}),$t}function Ot(Tt,$t){return Tt.some(function(ee){return ee.enabled&&ee.name===$t})}function w(Tt){for(var $t=[!1,"ms","Webkit","Moz","O"],ee=Tt.charAt(0).toUpperCase()+Tt.slice(1),ne=0;ne<$t.length;ne++){var xe=$t[ne],ue=xe?""+xe+ee:Tt;if(void 0!==document.body.style[ue])return ue}return null}function Y(Tt){var $t=Tt.ownerDocument;return $t?$t.defaultView:window}function it(){var $t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=($t=this.state,Y(this.reference).removeEventListener("resize",$t.updateBound),$t.scrollParents.forEach(function(ee){ee.removeEventListener("scroll",$t.updateBound)}),$t.updateBound=null,$t.scrollParents=[],$t.scrollElement=null,$t.eventsEnabled=!1,$t))}function yt(Tt){return""!==Tt&&!isNaN(parseFloat(Tt))&&isFinite(Tt)}function It(Tt,$t){Object.keys($t).forEach(function(ee){var ne="";-1!==["width","height","top","right","bottom","left"].indexOf(ee)&&yt($t[ee])&&(ne="px"),Tt.style[ee]=$t[ee]+ne})}var Lt=i&&/Firefox/i.test(navigator.userAgent);function Ut(Tt,$t,ee){var ne=Te(Tt,function(Le){return Le.name===$t}),xe=!!ne&&Tt.some(function(Le){return Le.name===ee&&Le.enabled&&Le.order<ne.order});if(!xe){var ue="`"+$t+"`";console.warn("`"+ee+"` modifier is required by "+ue+" modifier in order to work, be sure to include it before "+ue+"!")}return xe}var de=["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"],be=de.slice(3);function dt(Tt,$t){var ee=1<arguments.length&&void 0!==$t&&$t,ne=be.indexOf(Tt),xe=be.slice(ne+1).concat(be.slice(0,ne));return ee?xe.reverse():xe}var Tt,$t,Ee={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(Tt){var $t=Tt.placement,ee=$t.split("-")[0],ne=$t.split("-")[1];if(ne){var xe=Tt.offsets,ue=xe.reference,fe=xe.popper,Le=-1!==["bottom","top"].indexOf(ee),e=Le?"left":"top",s=Le?"width":"height",d={start:v({},e,ue[e]),end:v({},e,ue[e]+ue[s]-fe[s])};Tt.offsets.popper=tt({},fe,d[ne])}return Tt}},offset:{order:200,enabled:!0,fn:function(Tt,$t){var e,ee=$t.offset,xe=Tt.offsets,ue=xe.popper,fe=xe.reference,Le=Tt.placement.split("-")[0];return e=yt(+ee)?[+ee,0]:function zt(Tt,$t,ee,ne){var xe=[0,0],ue=-1!==["right","left"].indexOf(ne),fe=Tt.split(/(\+|\-)/).map(function(d){return d.trim()}),Le=fe.indexOf(Te(fe,function(d){return-1!==d.search(/,|\s/)}));fe[Le]&&-1===fe[Le].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var e=/\s*,\s*|\s+/,s=-1!==Le?[fe.slice(0,Le).concat([fe[Le].split(e)[0]]),[fe[Le].split(e)[1]].concat(fe.slice(Le+1))]:[fe];return(s=s.map(function(d,g){var C=(1===g?!ue:ue)?"height":"width",U=!1;return d.reduce(function(nt,ut){return""===nt[nt.length-1]&&-1!==["+","-"].indexOf(ut)?(nt[nt.length-1]=ut,U=!0,nt):U?(nt[nt.length-1]+=ut,U=!1,nt):nt.concat(ut)},[]).map(function(nt){return vt=C,Wt=$t,Bt=ee,xt=(ut=nt).match(/((?:\-|\+)?\d*\.?\d*)(.*)/),Kt=xt[2],(Ft=+xt[1])?0!==Kt.indexOf("%")?"vh"!==Kt&&"vw"!==Kt?Ft:("vh"===Kt?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*Ft:ft("%p"===Kt?Wt:Bt)[vt]/100*Ft:ut;var ut,vt,Wt,Bt,xt,Ft,Kt})})).forEach(function(d,g){d.forEach(function(C,U){yt(C)&&(xe[g]+=C*("-"===d[U-1]?-1:1))})}),xe}(ee,ue,fe,Le),"left"===Le?(ue.top+=e[0],ue.left-=e[1]):"right"===Le?(ue.top+=e[0],ue.left+=e[1]):"top"===Le?(ue.left+=e[0],ue.top-=e[1]):"bottom"===Le&&(ue.left+=e[0],ue.top+=e[1]),Tt.popper=ue,Tt},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(Tt,$t){var ee=$t.boundariesElement||k(Tt.instance.popper);Tt.instance.reference===ee&&(ee=k(ee));var ne=w("transform"),xe=Tt.instance.popper.style,ue=xe.top,fe=xe.left,Le=xe[ne];xe.top="",xe.left="",xe[ne]="";var e=mt(Tt.instance.popper,Tt.instance.reference,$t.padding,ee,Tt.positionFixed);xe.top=ue,xe.left=fe,xe[ne]=Le,$t.boundaries=e;var d=Tt.offsets.popper,g={primary:function(C){var U=d[C];return d[C]<e[C]&&!$t.escapeWithReference&&(U=Math.max(d[C],e[C])),v({},C,U)},secondary:function(C){var U="right"===C?"left":"top",nt=d[U];return d[C]>e[C]&&!$t.escapeWithReference&&(nt=Math.min(d[U],e[C]-("right"===C?d.width:d.height))),v({},U,nt)}};return $t.priority.forEach(function(C){var U=-1!==["left","top"].indexOf(C)?"primary":"secondary";d=tt({},d,g[U](C))}),Tt.offsets.popper=d,Tt},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(Tt){var $t=Tt.offsets,ee=$t.popper,ne=$t.reference,xe=Tt.placement.split("-")[0],ue=Math.floor,fe=-1!==["top","bottom"].indexOf(xe),Le=fe?"right":"bottom",e=fe?"left":"top",s=fe?"width":"height";return ee[Le]<ue(ne[e])&&(Tt.offsets.popper[e]=ue(ne[e])-ee[s]),ee[e]>ue(ne[Le])&&(Tt.offsets.popper[e]=ue(ne[Le])),Tt}},arrow:{order:500,enabled:!0,fn:function(Tt,$t){var ee;if(!Ut(Tt.instance.modifiers,"arrow","keepTogether"))return Tt;var ne=$t.element;if("string"==typeof ne){if(!(ne=Tt.instance.popper.querySelector(ne)))return Tt}else if(!Tt.instance.popper.contains(ne))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),Tt;var xe=Tt.placement.split("-")[0],ue=Tt.offsets,fe=ue.popper,Le=ue.reference,e=-1!==["left","right"].indexOf(xe),s=e?"height":"width",d=e?"Top":"Left",g=d.toLowerCase(),C=e?"left":"top",U=e?"bottom":"right",nt=ae(ne)[s];Le[U]-nt<fe[g]&&(Tt.offsets.popper[g]-=fe[g]-(Le[U]-nt)),Le[g]+nt>fe[U]&&(Tt.offsets.popper[g]+=Le[g]+nt-fe[U]),Tt.offsets.popper=ft(Tt.offsets.popper);var ut=Le[g]+Le[s]/2-nt/2,vt=a(Tt.instance.popper),Wt=parseFloat(vt["margin"+d],10),Bt=parseFloat(vt["border"+d+"Width"],10),xt=ut-Tt.offsets.popper[g]-Wt-Bt;return xt=Math.max(Math.min(fe[s]-nt,xt),0),Tt.arrowElement=ne,Tt.offsets.arrow=(v(ee={},g,Math.round(xt)),v(ee,C,""),ee),Tt},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(Tt,$t){if(Ot(Tt.instance.modifiers,"inner")||Tt.flipped&&Tt.placement===Tt.originalPlacement)return Tt;var ee=mt(Tt.instance.popper,Tt.instance.reference,$t.padding,$t.boundariesElement,Tt.positionFixed),ne=Tt.placement.split("-")[0],xe=ye(ne),ue=Tt.placement.split("-")[1]||"",fe=[];switch($t.behavior){case"flip":fe=[ne,xe];break;case"clockwise":fe=dt(ne);break;case"counterclockwise":fe=dt(ne,!0);break;default:fe=$t.behavior}return fe.forEach(function(Le,e){if(ne!==Le||fe.length===e+1)return Tt;ne=Tt.placement.split("-")[0],xe=ye(ne);var ce,s=Tt.offsets.popper,d=Tt.offsets.reference,g=Math.floor,C="left"===ne&&g(s.right)>g(d.left)||"right"===ne&&g(s.left)<g(d.right)||"top"===ne&&g(s.bottom)>g(d.top)||"bottom"===ne&&g(s.top)<g(d.bottom),U=g(s.left)<g(ee.left),nt=g(s.right)>g(ee.right),ut=g(s.top)<g(ee.top),vt=g(s.bottom)>g(ee.bottom),Wt="left"===ne&&U||"right"===ne&&nt||"top"===ne&&ut||"bottom"===ne&&vt,Bt=-1!==["top","bottom"].indexOf(ne),Kt=!!$t.flipVariations&&(Bt&&"start"===ue&&U||Bt&&"end"===ue&&nt||!Bt&&"start"===ue&&ut||!Bt&&"end"===ue&&vt)||!!$t.flipVariationsByContent&&(Bt&&"start"===ue&&nt||Bt&&"end"===ue&&U||!Bt&&"start"===ue&&vt||!Bt&&"end"===ue&&ut);(C||Wt||Kt)&&(Tt.flipped=!0,(C||Wt)&&(ne=fe[e+1]),Kt&&(ue="end"===(ce=ue)?"start":"start"===ce?"end":ce),Tt.placement=ne+(ue?"-"+ue:""),Tt.offsets.popper=tt({},Tt.offsets.popper,he(Tt.instance.popper,Tt.offsets.reference,Tt.placement)),Tt=Ne(Tt.instance.modifiers,Tt,"flip"))}),Tt},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(Tt){var $t=Tt.placement,ee=$t.split("-")[0],ne=Tt.offsets,xe=ne.popper,ue=ne.reference,fe=-1!==["left","right"].indexOf(ee),Le=-1===["top","left"].indexOf(ee);return xe[fe?"left":"top"]=ue[ee]-(Le?xe[fe?"width":"height"]:0),Tt.placement=ye($t),Tt.offsets.popper=ft(xe),Tt}},hide:{order:800,enabled:!0,fn:function(Tt){if(!Ut(Tt.instance.modifiers,"hide","preventOverflow"))return Tt;var $t=Tt.offsets.reference,ee=Te(Tt.instance.modifiers,function(ne){return"preventOverflow"===ne.name}).boundaries;if($t.bottom<ee.top||$t.left>ee.right||$t.top>ee.bottom||$t.right<ee.left){if(!0===Tt.hide)return Tt;Tt.hide=!0,Tt.attributes["x-out-of-boundaries"]=""}else{if(!1===Tt.hide)return Tt;Tt.hide=!1,Tt.attributes["x-out-of-boundaries"]=!1}return Tt}},computeStyle:{order:850,enabled:!0,fn:function(Tt,$t){var ee=$t.x,ne=$t.y,xe=Tt.offsets.popper,ue=Te(Tt.instance.modifiers,function(xt){return"applyStyle"===xt.name}).gpuAcceleration;void 0!==ue&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var nt,ut,fe=void 0!==ue?ue:$t.gpuAcceleration,Le=k(Tt.instance.popper),e=Rt(Le),s={position:xe.position},d=function(xt,Ft){function Kt(rn){return rn}var ce=xt.offsets,we=ce.popper,Ye=Math.round,Je=Math.floor,ni=Ye(ce.reference.width),ci=Ye(we.width),ri=-1!==["left","right"].indexOf(xt.placement),yi=-1!==xt.placement.indexOf("-"),Ii=Ft?ri||yi||ni%2==ci%2?Ye:Je:Kt,Ti=Ft?Ye:Kt;return{left:Ii(ni%2==1&&ci%2==1&&!yi&&Ft?we.left-1:we.left),top:Ti(we.top),bottom:Ti(we.bottom),right:Ii(we.right)}}(Tt,window.devicePixelRatio<2||!Lt),g="bottom"===ee?"top":"bottom",C="right"===ne?"left"
1:"right",U=w("transform");if(ut="bottom"==g?"HTML"===Le.nodeName?-Le.clientHeight+d.bottom:-e.height+d.bottom:d.top,nt="right"==C?"HTML"===Le.nodeName?-Le.clientWidth+d.right:-e.width+d.right:d.left,fe&&U)s[U]="translate3d("+nt+"px, "+ut+"px, 0)",s[g]=0,s[C]=0,s.willChange="transform";else{var Wt="right"==C?-1:1;s[g]=ut*("bottom"==g?-1:1),s[C]=nt*Wt,s.willChange=g+", "+C}return Tt.attributes=tt({},{"x-placement":Tt.placement},Tt.attributes),Tt.styles=tt({},s,Tt.styles),Tt.arrowStyles=tt({},Tt.offsets.arrow,Tt.arrowStyles),Tt},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(Tt){return It(Tt.instance.popper,Tt.styles),$t=Tt.instance.popper,ee=Tt.attributes,Object.keys(ee).forEach(function(ne){!1!==ee[ne]?$t.setAttribute(ne,ee[ne]):$t.removeAttribute(ne)}),Tt.arrowElement&&Object.keys(Tt.arrowStyles).length&&It(Tt.arrowElement,Tt.arrowStyles),Tt;var $t,ee},onLoad:function(Tt,$t,ee,ne,xe){var ue=qt(xe,$t,Tt,ee.positionFixed),fe=wt(ee.placement,ue,$t,Tt,ee.modifiers.flip.boundariesElement,ee.modifiers.flip.padding);return $t.setAttribute("x-placement",fe),It($t,{position:ee.positionFixed?"fixed":"absolute"}),ee},gpuAcceleration:void 0}}},ze=(Tt=Xe,$t=[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var Tt={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};Tt.offsets.reference=qt(this.state,this.popper,this.reference,this.options.positionFixed),Tt.placement=wt(this.options.placement,Tt.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),Tt.originalPlacement=Tt.placement,Tt.positionFixed=this.options.positionFixed,Tt.offsets.popper=he(this.popper,Tt.offsets.reference,Tt.placement),Tt.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",Tt=Ne(this.modifiers,Tt),this.state.isCreated?this.options.onUpdate(Tt):(this.state.isCreated=!0,this.options.onCreate(Tt))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,Ot(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[w("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=function V(Tt,$t,ee,ne){ee.updateBound=ne,Y(Tt).addEventListener("resize",ee.updateBound,{passive:!0});var xe=b(Tt);return function ue(fe,Le,e,s){var d="BODY"===fe.nodeName,g=d?fe.ownerDocument.defaultView:fe;g.addEventListener(Le,e,{passive:!0}),d||ue(b(g.parentNode),Le,e,s),s.push(g)}(xe,"scroll",ee.updateBound,ee.scrollParents),ee.scrollElement=xe,ee.eventsEnabled=!0,ee}(this.reference,0,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return it.call(this)}}],$t&&z(Tt.prototype,$t),Xe);function Xe(Tt,$t){var ee=this,ne=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};(function(ue,fe){if(!(ue instanceof fe))throw new TypeError("Cannot call a class as a function")})(this,Xe),this.scheduleUpdate=function(){return requestAnimationFrame(ee.update)},this.update=l(this.update.bind(this)),this.options=tt({},Xe.Defaults,ne),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=Tt&&Tt.jquery?Tt[0]:Tt,this.popper=$t&&$t.jquery?$t[0]:$t,this.options.modifiers={},Object.keys(tt({},Xe.Defaults.modifiers,ne.modifiers)).forEach(function(ue){ee.options.modifiers[ue]=tt({},Xe.Defaults.modifiers[ue]||{},ne.modifiers?ne.modifiers[ue]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(ue){return tt({name:ue},ee.options.modifiers[ue])}).sort(function(ue,fe){return ue.order-fe.order}),this.modifiers.forEach(function(ue){ue.enabled&&r(ue.onLoad)&&ue.onLoad(ee.reference,ee.popper,ee.options,ue,ee.state)}),this.update();var xe=this.options.eventsEnabled;xe&&this.enableEventListeners(),this.state.eventsEnabled=xe}return ze.Utils=("undefined"!=typeof window?window:global).PopperUtils,ze.placements=de,ze.Defaults=Ee,ze}),function(i,D){"object"==typeof exports&&"undefined"!=typeof module?D(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],D):D((i=i||self).bootstrap={},i.jQuery,i.Popper)}(this,function(i,D,K){"use strict";function F(Xt,Zt){for(var et=0;et<Zt.length;et++){var St=Zt[et];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.
1writable=!0),Object.defineProperty(Xt,St.key,St)}}function l(Xt,Zt,et){return Zt&&F(Xt.prototype,Zt),et&&F(Xt,et),Xt}function r(Xt){for(var Zt=1;Zt<arguments.length;Zt++){var et=null!=arguments[Zt]?arguments[Zt]:{},St=Object.keys(et);"function"==typeof Object.getOwnPropertySymbols&&(St=St.concat(Object.getOwnPropertySymbols(et).filter(function(Vt){return Object.getOwnPropertyDescriptor(et,Vt).enumerable}))),St.forEach(function(Vt){var Ce,Me,ei;ei=et[Me=Vt],Me in(Ce=Xt)?Object.defineProperty(Ce,Me,{value:ei,enumerable:!0,configurable:!0,writable:!0}):Ce[Me]=ei})}return Xt}D=D&&D.hasOwnProperty("default")?D.default:D,K=K&&K.hasOwnProperty("default")?K.default:K;var a="transitionend",b={TRANSITION_END:"bsTransitionEnd",getUID:function(Xt){for(;Xt+=~~(1e6*Math.random()),document.getElementById(Xt););return Xt},getSelectorFromElement:function(Xt){var Zt=Xt.getAttribute("data-target");if(!Zt||"#"===Zt){var et=Xt.getAttribute("href");Zt=et&&"#"!==et?et.trim():""}try{return document.querySelector(Zt)?Zt:null}catch(St){return null}},getTransitionDurationFromElement:function(Xt){if(!Xt)return 0;var Zt=D(Xt).css("transition-duration"),et=D(Xt).css("transition-delay"),St=parseFloat(Zt),Vt=parseFloat(et);return St||Vt?(Zt=Zt.split(",")[0],et=et.split(",")[0],1e3*(parseFloat(Zt)+parseFloat(et))):0},reflow:function(Xt){return Xt.offsetHeight},triggerTransitionEnd:function(Xt){D(Xt).trigger(a)},supportsTransitionEnd:function(){return Boolean(a)},isElement:function(Xt){return(Xt[0]||Xt).nodeType},typeCheckConfig:function(Xt,Zt,et){for(var St in et)if(Object.prototype.hasOwnProperty.call(et,St)){var Vt=et[St],Ce=Zt[St],Me=Ce&&b.isElement(Ce)?"element":{}.toString.call(Ce).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(Vt).test(Me))throw new Error(Xt.toUpperCase()+': Option "'+St+'" provided type "'+Me+'" but expected type "'+Vt+'".')}},findShadowRoot:function(Xt){if(!document.documentElement.attachShadow)return null;if("function"!=typeof Xt.getRootNode)return Xt instanceof ShadowRoot?Xt:Xt.parentNode?b.findShadowRoot(Xt.parentNode):null;var Zt=Xt.getRootNode();return Zt instanceof ShadowRoot?Zt:null}};D.fn.emulateTransitionEnd=function u(Xt){var Zt=this,et=!1;return D(this).one(b.TRANSITION_END,function(){et=!0}),setTimeout(function(){et||b.triggerTransitionEnd(Zt)},Xt),this},D.event.special[b.TRANSITION_END]={bindType:a,delegateType:a,handle:function(Xt){if(D(Xt.target).is(this))return Xt.handleObj.handler.apply(this,arguments)}};var L="alert",W="bs.alert",R="."+W,k=D.fn[L],N={CLOSE:"close"+R,CLOSED:"closed"+R,CLICK_DATA_API:"click"+R+".data-api"},A=function(){function Xt(et){this._element=et}var Zt=Xt.prototype;return Zt.close=function(et){var St=this._element;et&&(St=this._getRootElement(et)),this._triggerCloseEvent(St).isDefaultPrevented()||this._removeElement(St)},Zt.dispose=function(){D.removeData(this._element,W),this._element=null},Zt._getRootElement=function(et){var St=b.getSelectorFromElement(et),Vt=!1;return St&&(Vt=document.querySelector(St)),Vt||D(et).closest(".alert")[0]},Zt._triggerCloseEvent=function(et){var St=D.Event(N.CLOSE);return D(et).trigger(St),St},Zt._removeElement=function(et){var St=this;if(D(et).removeClass("show"),D(et).hasClass("fade")){var Vt=b.getTransitionDurationFromElement(et);D(et).one(b.TRANSITION_END,function(Ce){return St._destroyElement(et,Ce)}).emulateTransitionEnd(Vt)}else this._destroyElement(et)},Zt._destroyElement=function(et){D(et).detach().trigger(N.CLOSED).remove()},Xt._jQueryInterface=function(et){return this.each(function(){var St=D(this),Vt=St.data(W);Vt||(Vt=new Xt(this),St.data(W,Vt)),"close"===et&&Vt[et](this)})},Xt._handleDismiss=function(et){return function(St){St&&St.preventDefault(),et.close(this)}},l(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),Xt}();D(document).on(N.CLICK_DATA_API,'[data-dismiss="alert"]',A._handleDismiss(new A)),D.fn[L]=A._jQueryInterface,D.fn[L].Constructor=A,D.fn[L].noConflict=function(){return D.fn[L]=k,A._jQueryInterface};var O="button",H="bs.button",z="."+H,v=".data-api",tt=D.fn[O],ft="active",at='[data-toggle^="button"]',ye={CLICK_DATA_API:"click"+z+v,FOCUS_BLUR_DATA_API:"focus"+z+v+" blur"+z+v},he=function(){function Xt(et){this._element=et}var Zt=Xt.prototype;return Zt.toggle=function(){var et=!0,St=!0,Vt=D(this._element).closest('[data-toggle="buttons"]')[0];if(Vt){var Ce=this._element.querySelector('input:not([type="hidden"])');if(Ce){if("radio"===Ce.type)if(Ce.checked&&this._element.classList.contains(ft))et=!1;else{var Me=Vt.querySelector(".active");Me&&D(Me).removeClass(ft)}if(et){if(Ce.hasAttribute("disabled")||Vt.hasAttribute("disabled")||Ce.classList.contains("disabled")||Vt.classList.contains("disabled"))return;Ce.checked=!this._element.classList.contains(ft),D(Ce).trigger("change")}Ce.focus(),St=!1}}St&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(ft)),et&&D(this._element).toggleClass(ft)},Zt.dispose=function(){D.removeData(this._element,H),this._element=null},Xt._jQueryInterface=function(et){return this.each(function(){var St=D(this).data(H);St||(St=new Xt(this),D(this).data(H,St)),"toggle"===et&&St[et]()})},l(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),Xt}();D(document).on(ye.CLICK_DATA_API,at,function(Xt){Xt.preventDefault();var Zt=Xt.target;D(Zt).hasClass("btn")||(Zt=D(Zt).closest(".btn")),he._jQueryInterface.call(D(Zt),"toggle")}).on(ye.FOCUS_BLUR_DATA_API,at,function(Xt){var Zt=D(Xt.target).closest(".btn")[0];D(Zt).toggleClass("focus",/^focus(in)?$/.test(Xt.type))}),D.fn[O]=he._jQueryInterface,D.fn[O].Constructor=he,D.fn[O].noConflict=function(){return D.fn[O]=tt,he._jQueryInterface};var Te="carousel",Ne="bs.carousel",Ot="."+Ne,w=D.fn[Te],Y={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},V={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},it="next",yt="prev",Ut={SLIDE:"slide"+Ot,SLID:"slid"+Ot,KEYDOWN:"keydown"+Ot,MOUSEENTER:"mouseenter"+Ot,MOUSELEAVE:"mouseleave"+Ot,TOUC
1HSTART:"touchstart"+Ot,TOUCHMOVE:"touchmove"+Ot,TOUCHEND:"touchend"+Ot,POINTERDOWN:"pointerdown"+Ot,POINTERUP:"pointerup"+Ot,DRAG_START:"dragstart"+Ot,LOAD_DATA_API:"load"+Ot+".data-api",CLICK_DATA_API:"click"+Ot+".data-api"},be="active",Xe=".active.carousel-item",fe={TOUCH:"touch",PEN:"pen"},Le=function(){function Xt(et,St){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(St),this._element=et,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var Zt=Xt.prototype;return Zt.next=function(){this._isSliding||this._slide(it)},Zt.nextWhenVisible=function(){!document.hidden&&D(this._element).is(":visible")&&"hidden"!==D(this._element).css("visibility")&&this.next()},Zt.prev=function(){this._isSliding||this._slide(yt)},Zt.pause=function(et){et||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(b.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},Zt.cycle=function(et){et||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},Zt.to=function(et){var St=this;this._activeElement=this._element.querySelector(Xe);var Vt=this._getItemIndex(this._activeElement);if(!(et>this._items.length-1||et<0))if(this._isSliding)D(this._element).one(Ut.SLID,function(){return St.to(et)});else{if(Vt===et)return this.pause(),void this.cycle();this._slide(Vt<et?it:yt,this._items[et])}},Zt.dispose=function(){D(this._element).off(Ot),D.removeData(this._element,Ne),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},Zt._getConfig=function(et){return et=r({},Y,et),b.typeCheckConfig(Te,et,V),et},Zt._handleSwipe=function(){var et=Math.abs(this.touchDeltaX);if(!(et<=40)){var St=et/this.touchDeltaX;0<St&&this.prev(),St<0&&this.next()}},Zt._addEventListeners=function(){var et=this;this._config.keyboard&&D(this._element).on(Ut.KEYDOWN,function(St){return et._keydown(St)}),"hover"===this._config.pause&&D(this._element).on(Ut.MOUSEENTER,function(St){return et.pause(St)}).on(Ut.MOUSELEAVE,function(St){return et.cycle(St)}),this._config.touch&&this._addTouchEventListeners()},Zt._addTouchEventListeners=function(){var et=this;if(this._touchSupported){var St=function(Ce){et._pointerEvent&&fe[Ce.originalEvent.pointerType.toUpperCase()]?et.touchStartX=Ce.originalEvent.clientX:et._pointerEvent||(et.touchStartX=Ce.originalEvent.touches[0].clientX)},Vt=function(Ce){et._pointerEvent&&fe[Ce.originalEvent.pointerType.toUpperCase()]&&(et.touchDeltaX=Ce.originalEvent.clientX-et.touchStartX),et._handleSwipe(),"hover"===et._config.pause&&(et.pause(),et.touchTimeout&&clearTimeout(et.touchTimeout),et.touchTimeout=setTimeout(function(Me){return et.cycle(Me)},500+et._config.interval))};D(this._element.querySelectorAll(".carousel-item img")).on(Ut.DRAG_START,function(Ce){return Ce.preventDefault()}),this._pointerEvent?(D(this._element).on(Ut.POINTERDOWN,function(Ce){return St(Ce)}),D(this._element).on(Ut.POINTERUP,function(Ce){return Vt(Ce)}),this._element.classList.add("pointer-event")):(D(this._element).on(Ut.TOUCHSTART,function(Ce){return St(Ce)}),D(this._element).on(Ut.TOUCHMOVE,function(Ce){var Me;et.touchDeltaX=(Me=Ce).originalEvent.touches&&1<Me.originalEvent.touches.length?0:Me.originalEvent.touches[0].clientX-et.touchStartX}),D(this._element).on(Ut.TOUCHEND,function(Ce){return Vt(Ce)}))}},Zt._keydown=function(et){if(!/input|textarea/i.test(et.target.tagName))switch(et.which){case 37:et.preventDefault(),this.prev();break;case 39:et.preventDefault(),this.next()}},Zt._getItemIndex=function(et){return this._items=et&&et.parentNode?[].slice.call(et.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(et)},Zt._getItemByDirection=function(et,St){var Vt=et===it,Ce=et===yt,Me=this._getItemIndex(St);if((Ce&&0===Me||Vt&&Me===this._items.length-1)&&!this._config.wrap)return St;var Si=(Me+(et===yt?-1:1))%this._items.length;return-1==Si?this._items[this._items.length-1]:this._items[Si]},Zt._triggerSlideEvent=function(et,St){var Vt=this._getItemIndex(et),Ce=this._getItemIndex(this._element.querySelector(Xe)),Me=D.Event(Ut.SLIDE,{relatedTarget:et,direction:St,from:Ce,to:Vt});return D(this._element).trigger(Me),Me},Zt._setActiveIndicatorElement=function(et){if(this._indicatorsElement){var St=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));D(St).removeClass(be);var Vt=this._indicatorsElement.children[this._getItemIndex(et)];Vt&&D(Vt).addClass(be)}},Zt._slide=function(et,St){var Vt,Ce,Me,ei=this,Si=this._element.querySelector(Xe),Ui=this._getItemIndex(Si),on=St||Si&&this._getItemByDirection(et,Si),Kn=this._getItemIndex(on),_s=Boolean(this._interval);if(Me=et===it?(Vt="carousel-item-left",Ce="carousel-item-next","left"):(Vt="carousel-item-right",Ce="carousel-item-prev","right"),on&&D(on).hasClass(be))this._isSliding=!1;else if(!this._triggerSlideEvent(on,Me).isDefaultPrevented()&&Si&&on){this._isSliding=!0,_s&&this.pause(),this._setActiveIndicatorElement(on);var qi=D.Event(Ut.SLID,{relatedTarget:on,direction:Me,from:Ui,to:Kn});if(D(this._element).hasClass("slide")){D(on).addClass(Ce),b.reflow(on),D(Si).addClass(Vt),D(on).addClass(Vt);var Ms=parseInt(on.getAttribute("data-interval"),10);Ms?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=Ms):this._config.interval=this._config.defaultInterval||this._config.interval;var es=b.getTransitionDurationFromElement(Si);D(Si).one(b.TRANSITION_END,function(){D(on).removeClass(Vt+" "+Ce).addClass(be),D(Si).removeClass(be+" "+Ce+" "+Vt),ei._isSli
1ding=!1,setTimeout(function(){return D(ei._element).trigger(qi)},0)}).emulateTransitionEnd(es)}else D(Si).removeClass(be),D(on).addClass(be),this._isSliding=!1,D(this._element).trigger(qi);_s&&this.cycle()}},Xt._jQueryInterface=function(et){return this.each(function(){var St=D(this).data(Ne),Vt=r({},Y,D(this).data());"object"==typeof et&&(Vt=r({},Vt,et));var Ce="string"==typeof et?et:Vt.slide;if(St||(St=new Xt(this,Vt),D(this).data(Ne,St)),"number"==typeof et)St.to(et);else if("string"==typeof Ce){if(void 0===St[Ce])throw new TypeError('No method named "'+Ce+'"');St[Ce]()}else Vt.interval&&Vt.ride&&(St.pause(),St.cycle())})},Xt._dataApiClickHandler=function(et){var St=b.getSelectorFromElement(this);if(St){var Vt=D(St)[0];if(Vt&&D(Vt).hasClass("carousel")){var Ce=r({},D(Vt).data(),D(this).data()),Me=this.getAttribute("data-slide-to");Me&&(Ce.interval=!1),Xt._jQueryInterface.call(D(Vt),Ce),Me&&D(Vt).data(Ne).to(Me),et.preventDefault()}}},l(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Y}}]),Xt}();D(document).on(Ut.CLICK_DATA_API,"[data-slide], [data-slide-to]",Le._dataApiClickHandler),D(window).on(Ut.LOAD_DATA_API,function(){for(var Xt=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),Zt=0,et=Xt.length;Zt<et;Zt++){var St=D(Xt[Zt]);Le._jQueryInterface.call(St,St.data())}}),D.fn[Te]=Le._jQueryInterface,D.fn[Te].Constructor=Le,D.fn[Te].noConflict=function(){return D.fn[Te]=w,Le._jQueryInterface};var e="collapse",s="bs.collapse",d="."+s,g=D.fn[e],C={toggle:!0,parent:""},U={toggle:"boolean",parent:"(string|element)"},nt={SHOW:"show"+d,SHOWN:"shown"+d,HIDE:"hide"+d,HIDDEN:"hidden"+d,CLICK_DATA_API:"click"+d+".data-api"},ut="show",vt="collapse",Wt="collapsing",Bt="collapsed",ce='[data-toggle="collapse"]',we=function(){function Xt(et,St){this._isTransitioning=!1,this._element=et,this._config=this._getConfig(St),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+et.id+'"],[data-toggle="collapse"][data-target="#'+et.id+'"]'));for(var Vt=[].slice.call(document.querySelectorAll(ce)),Ce=0,Me=Vt.length;Ce<Me;Ce++){var ei=Vt[Ce],Si=b.getSelectorFromElement(ei),Ui=[].slice.call(document.querySelectorAll(Si)).filter(function(on){return on===et});null!==Si&&0<Ui.length&&(this._selector=Si,this._triggerArray.push(ei))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var Zt=Xt.prototype;return Zt.toggle=function(){D(this._element).hasClass(ut)?this.hide():this.show()},Zt.show=function(){var et,St,Vt=this;if(!(this._isTransitioning||D(this._element).hasClass(ut)||(this._parent&&0===(et=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(Ui){return"string"==typeof Vt._config.parent?Ui.getAttribute("data-parent")===Vt._config.parent:Ui.classList.contains(vt)})).length&&(et=null),et&&(St=D(et).not(this._selector).data(s))&&St._isTransitioning))){var Ce=D.Event(nt.SHOW);if(D(this._element).trigger(Ce),!Ce.isDefaultPrevented()){et&&(Xt._jQueryInterface.call(D(et).not(this._selector),"hide"),St||D(et).data(s,null));var Me=this._getDimension();D(this._element).removeClass(vt).addClass(Wt),this._element.style[Me]=0,this._triggerArray.length&&D(this._triggerArray).removeClass(Bt).attr("aria-expanded",!0),this.setTransitioning(!0);var ei="scroll"+(Me[0].toUpperCase()+Me.slice(1)),Si=b.getTransitionDurationFromElement(this._element);D(this._element).one(b.TRANSITION_END,function(){D(Vt._element).removeClass(Wt).addClass(vt).addClass(ut),Vt._element.style[Me]="",Vt.setTransitioning(!1),D(Vt._element).trigger(nt.SHOWN)}).emulateTransitionEnd(Si),this._element.style[Me]=this._element[ei]+"px"}}},Zt.hide=function(){var et=this;if(!this._isTransitioning&&D(this._element).hasClass(ut)){var St=D.Event(nt.HIDE);if(D(this._element).trigger(St),!St.isDefaultPrevented()){var Vt=this._getDimension();this._element.style[Vt]=this._element.getBoundingClientRect()[Vt]+"px",b.reflow(this._element),D(this._element).addClass(Wt).removeClass(vt).removeClass(ut);var Ce=this._triggerArray.length;if(0<Ce)for(var Me=0;Me<Ce;Me++){var ei=this._triggerArray[Me],Si=b.getSelectorFromElement(ei);null!==Si&&(D([].slice.call(document.querySelectorAll(Si))).hasClass(ut)||D(ei).addClass(Bt).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[Vt]="";var Ui=b.getTransitionDurationFromElement(this._element);D(this._element).one(b.TRANSITION_END,function(){et.setTransitioning(!1),D(et._element).removeClass(Wt).addClass(vt).trigger(nt.HIDDEN)}).emulateTransitionEnd(Ui)}}},Zt.setTransitioning=function(et){this._isTransitioning=et},Zt.dispose=function(){D.removeData(this._element,s),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},Zt._getConfig=function(et){return(et=r({},C,et)).toggle=Boolean(et.toggle),b.typeCheckConfig(e,et,U),et},Zt._getDimension=function(){return D(this._element).hasClass("width")?"width":"height"},Zt._getParent=function(){var et,St=this;b.isElement(this._config.parent)?(et=this._config.parent,void 0!==this._config.parent.jquery&&(et=this._config.parent[0])):et=document.querySelector(this._config.parent);var Ce=[].slice.call(et.querySelectorAll('[data-toggle="collapse"][data-parent="'+this._config.parent+'"]'));return D(Ce).each(function(Me,ei){St._addAriaAndCollapsedClass(Xt._getTargetFromElement(ei),[ei])}),et},Zt._addAriaAndCollapsedClass=function(et,St){var Vt=D(et).hasClass(ut);St.length&&D(St).toggleClass(Bt,!Vt).attr("aria-expanded",Vt)},Xt._getTargetFromElement=function(et){var St=b.getSelectorFromElement(et);return St?document.querySelector(St):null},Xt._jQueryInterface=function(et){return this.each(function(){var St=D(this),Vt=St.data(s),Ce=r({},C,St.data(),"object"==typeof et&&et?et:{});if(!Vt&&Ce.toggle&&/show|hide/.test(et)&&(Ce.toggle=!1),Vt||(Vt=new Xt(this,Ce),St.data(s,Vt)),"string"==typeof et){if(void 0===Vt[et])throw new TypeError('No method n
1amed "'+et+'"');Vt[et]()}})},l(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return C}}]),Xt}();D(document).on(nt.CLICK_DATA_API,ce,function(Xt){"A"===Xt.currentTarget.tagName&&Xt.preventDefault();var Zt=D(this),et=b.getSelectorFromElement(this),St=[].slice.call(document.querySelectorAll(et));D(St).each(function(){var Vt=D(this),Ce=Vt.data(s)?"toggle":Zt.data();we._jQueryInterface.call(Vt,Ce)})}),D.fn[e]=we._jQueryInterface,D.fn[e].Constructor=we,D.fn[e].noConflict=function(){return D.fn[e]=g,we._jQueryInterface};var Se="dropdown",Ye="bs.dropdown",Je="."+Ye,ni=".data-api",ci=D.fn[Se],ri=new RegExp("38|40|27"),yi={HIDE:"hide"+Je,HIDDEN:"hidden"+Je,SHOW:"show"+Je,SHOWN:"shown"+Je,CLICK:"click"+Je,CLICK_DATA_API:"click"+Je+ni,KEYDOWN_DATA_API:"keydown"+Je+ni,KEYUP_DATA_API:"keyup"+Je+ni},Ii="disabled",Ti="show",$i="dropdown-menu-right",Ci='[data-toggle="dropdown"]',yn=".dropdown-menu",Un={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Fi={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Di=function(){function Xt(et,St){this._element=et,this._popper=null,this._config=this._getConfig(St),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var Zt=Xt.prototype;return Zt.toggle=function(){if(!this._element.disabled&&!D(this._element).hasClass(Ii)){var et=Xt._getParentFromElement(this._element),St=D(this._menu).hasClass(Ti);if(Xt._clearMenus(),!St){var Vt={relatedTarget:this._element},Ce=D.Event(yi.SHOW,Vt);if(D(et).trigger(Ce),!Ce.isDefaultPrevented()){if(!this._inNavbar){if(void 0===K)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var Me=this._element;"parent"===this._config.reference?Me=et:b.isElement(this._config.reference)&&(Me=this._config.reference,void 0!==this._config.reference.jquery&&(Me=this._config.reference[0])),"scrollParent"!==this._config.boundary&&D(et).addClass("position-static"),this._popper=new K(Me,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===D(et).closest(".navbar-nav").length&&D(document.body).children().on("mouseover",null,D.no
1op),this._element.focus(),this._element.setAttribute("aria-expanded",!0),D(this._menu).toggleClass(Ti),D(et).toggleClass(Ti).trigger(D.Event(yi.SHOWN,Vt))}}}},Zt.show=function(){if(!(this._element.disabled||D(this._element).hasClass(Ii)||D(this._menu).hasClass(Ti))){var et={relatedTarget:this._element},St=D.Event(yi.SHOW,et),Vt=Xt._getParentFromElement(this._element);D(Vt).trigger(St),St.isDefaultPrevented()||(D(this._menu).toggleClass(Ti),D(Vt).toggleClass(Ti).trigger(D.Event(yi.SHOWN,et)))}},Zt.hide=function(){if(!this._element.disabled&&!D(this._element).hasClass(Ii)&&D(this._menu).hasClass(Ti)){var et={relatedTarget:this._element},St=D.Event(yi.HIDE,et),Vt=Xt._getParentFromElement(this._element);D(Vt).trigger(St),St.isDefaultPrevented()||(D(this._menu).toggleClass(Ti),D(Vt).toggleClass(Ti).trigger(D.Event(yi.HIDDEN,et)))}},Zt.dispose=function(){D.removeData(this._element,Ye),D(this._element).off(Je),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},Zt.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},Zt._addEventListeners=function(){var et=this;D(this._element).on(yi.CLICK,function(St){St.preventDefault(),St.stopPropagation(),et.toggle()})},Zt._getConfig=function(et){return et=r({},this.constructor.Default,D(this._element).data(),et),b.typeCheckConfig(Se,et,this.constructor.DefaultType),et},Zt._getMenuElement=function(){if(!this._menu){var et=Xt._getParentFromElement(this._element);et&&(this._menu=et.querySelector(yn))}return this._menu},Zt._getPlacement=function(){var et=D(this._element.parentNode),St="bottom-start";return et.hasClass("dropup")?(St="top-start",D(this._menu).hasClass($i)&&(St="top-end")):et.hasClass("dropright")?St="right-start":et.hasClass("dropleft")?St="left-start":D(this._menu).hasClass($i)&&(St="bottom-end"),St},Zt._detectNavbar=function(){return 0<D(this._element).closest(".navbar").length},Zt._getOffset=function(){var et=this,St={};return"function"==typeof this._config.offset?St.fn=function(Vt){return Vt.offsets=r({},Vt.offsets,et._config.offset(Vt.offsets,et._element)||{}),Vt}:St.offset=this._config.offset,St},Zt._getPopperConfig=function(){var et={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(et.modifiers.applyStyle={enabled:!1}),et},Xt._jQueryInterface=function(et){return this.each(function(){var St=D(this).data(Ye);if(St||(St=new Xt(this,"object"==typeof et?et:null),D(this).data(Ye,St)),"string"==typeof et){if(void 0===St[et])throw new TypeError('No method named "'+et+'"');St[et]()}})},Xt._clearMenus=function(et){if(!et||3!==et.which&&("keyup"!==et.type||9===et.which))for(var St=[].slice.call(document.querySelectorAll(Ci)),Vt=0,Ce=St.length;Vt<Ce;Vt++){var Me=Xt._getParentFromElement(St[Vt]),ei=D(St[Vt]).data(Ye),Si={relatedTarget:St[Vt]};if(et&&"click"===et.type&&(Si.clickEvent=et),ei){var Ui=ei._menu;if(D(Me).hasClass(Ti)&&!(et&&("click"===et.type&&/input|textarea/i.test(et.target.tagName)||"keyup"===et.type&&9===et.which)&&D.contains(Me,et.target))){var on=D.Event(yi.HIDE,Si);D(Me).trigger(on),on.isDefaultPrevented()||("ontouchstart"in document.documentElement&&D(document.body).children().off("mouseover",null,D.no
1op),St[Vt].setAttribute("aria-expanded","false"),D(Ui).removeClass(Ti),D(Me).removeClass(Ti).trigger(D.Event(yi.HIDDEN,Si)))}}}},Xt._getParentFromElement=function(et){var St,Vt=b.getSelectorFromElement(et);return Vt&&(St=document.querySelector(Vt)),St||et.parentNode},Xt._dataApiKeydownHandler=function(et){if((/input|textarea/i.test(et.target.tagName)?!(32===et.which||27!==et.which&&(40!==et.which&&38!==et.which||D(et.target).closest(yn).length)):ri.test(et.which))&&(et.preventDefault(),et.stopPropagation(),!this.disabled&&!D(this).hasClass(Ii))){var St=Xt._getParentFromElement(this),Vt=D(St).hasClass(Ti);if(Vt&&(!Vt||27!==et.which&&32!==et.which)){var Ce=[].slice.call(St.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"));if(0!==Ce.length){var Me=Ce.indexOf(et.target);38===et.which&&0<Me&&Me--,40===et.which&&Me<Ce.length-1&&Me++,Me<0&&(Me=0),Ce[Me].focus()}}else{if(27===et.which){var ei=St.querySelector(Ci);D(ei).trigger("focus")}D(this).trigger("click")}}},l(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Un}},{key:"DefaultType",get:function(){return Fi}}]),Xt}();D(document).on(yi.KEYDOWN_DATA_API,Ci,Di._dataApiKeydownHandler).on(yi.KEYDOWN_DATA_API,yn,Di._dataApiKeydownHandler).on(yi.CLICK_DATA_API+" "+yi.KEYUP_DATA_API,Di._clearMenus).on(yi.CLICK_DATA_API,Ci,function(Xt){Xt.preventDefault(),Xt.stopPropagation(),Di._jQueryInterface.call(D(this),"toggle")}).on(yi.CLICK_DATA_API,".dropdown form",function(Xt){Xt.stopPropagation()}),D.fn[Se]=Di._jQueryInterface,D.fn[Se].Constructor=Di,D.fn[Se].noConflict=function(){return D.fn[Se]=ci,Di._jQueryInterface};var ai="modal",Wi="bs.modal",We="."+Wi,us=D.fn[ai],$n={backdrop:!0,keyboard:!0,focus:!0,show:!0},Zi={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},di={HIDE:"hide"+We,HIDDEN:"hidden"+We,SHOW:"show"+We,SHOWN:"shown"+We,FOCUSIN:"focusin"+We,RESIZE:"resize"+We,CLICK_DISMISS:"click.dismiss"+We,KEYDOWN_DISMISS:"keydown.dismiss"+We,MOUSEUP_DISMISS:"mouseup.dismiss"+We,MOUSEDOWN_DISMISS:"mousedown.dismiss"+We,CLICK_DATA_API:"click"+We+".data-api"},ln="modal-open",en="fade",Zn="show",Ss=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ds=".sticky-top",ss=function(){function Xt(et,St){this._config=this._getConfig(St),this._element=et,this._dialog=et.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var Zt=Xt.prototype;return Zt.toggle=function(et){return this._isShown?this.hide():this.show(et)},Zt.show=function(et){var St=this;if(!this._isShown&&!this._isTransitioning){D(this._element).hasClass(en)&&(this._isTransitioning=!0);var Vt=D.Event(di.SHOW,{relatedTarget:et});D(this._element).trigger(Vt),this._isShown||Vt.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),D(this._element).on(di.CLICK_DISMISS,'[data-dismiss="modal"]',function(Ce){return St.hide(Ce)}),D(this._dialog).on(di.MOUSEDOWN_DISMISS,function(){D(St._element).one(di.MOUSEUP_DISMISS,function(Ce){D(Ce.target).is(St._element)&&(St._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return St._showElement(et)}))}},Zt.hide=function(et){var St=this;if(et&&et.preventDefault(),this._isShown&&!this._isTransitioning){var Vt=D.Event(di.HIDE);if(D(this._element).trigger(Vt),this._isShown&&!Vt.isDefaultPrevented()){this._isShown=!1;var Ce=D(this._element).hasClass(en);if(Ce&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),D(document).off(di.FOCUSIN),D(this._element).removeClass(Zn),D(this._element).off(di.CLICK_DISMISS),D(this._dialog).off(di.MOUSEDOWN_DISMISS),Ce){var Me=b.getTransitionDurationFromElement(this._element);D(this._element).one(b.TRANSITION_END,function(ei){return St._hideModal(ei)}).emulateTransitionEnd(Me)}else this._hideModal()}}},Zt.dispose=function(){[window,this._element,this._dialog].forEach(function(et){return D(et).off(We)}),D(document).off(di.FOCUSIN),D.removeData(this._element,Wi),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},Zt.handleUpdate=function(){this._adjustDialog()},Zt._getConfig=function(et){return et=r({},$n,et),b.typeCheckConfig(ai,et,Zi),et},Zt._showElement=function(et){var St=this,Vt=D(this._element).hasClass(en);function Ce(){St._config.focus&&St._element.focus(),St._isTransitioning=!1,D(St._element).trigger(Me)}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),D(this._dialog).hasClass("modal-dialog-scrollable")?this._dialog.querySelector(".modal-body").scrollTop=0:this._element.scrollTop=0,Vt&&b.reflow(this._element),D(this._element).addClass(Zn),this._config.focus&&this._enforceFocus();var Me=D.Event(di.SHOWN,{relatedTarget:et});if(Vt){var ei=b.getTransitionDurationFromElement(this._dialog);D(this._dialog).one(b.TRANSITION_END,Ce).emulateTransitionEnd(ei)}else Ce()},Zt._enforceFocus=function(){var et=this;D(document).off(di.FOCUSIN).on(di.FOCUSIN,function(St){document!==St.target&&et._element!==St.target&&0===D(et._element).has(St.target).length&&et._element.focus()})},Zt._setEscapeEvent=function(){var et=this;this._isShown&&this._config.keyboard?D(this._element).on(di.KEYDOWN_DISMISS,function(St){27===St.which&&(St.preventDefault(),et.hide())}):this._isShown||D(this._element).off(di.KEYDOWN_DISMISS)},Zt._setResizeEvent=function(){var et=this;this._isShown?D(window).on(di.RESIZE,function(St){return et.handleUpdate(St)}):D(window).off(di.RESIZE)},Zt._hideModal=function(){var et=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){D(document.body).removeClass(ln),et._resetAdjustments(),et._resetScrollbar(),D(et._element).trigger(di.HIDDEN)})},Zt._removeBackdrop=function(){this._backdrop&&(D(this._backdrop).remove(),this._backdrop=null)},Zt._showBackdrop=function(et){var St=this,Vt=D(this._element).hasClass(en)?en:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",Vt&&this._backdrop.classList.add(Vt),D(this._backdrop).appendTo(document.body),D(this._element).on(di.CLICK_DISMISS,function(Si){St._ignoreBackdropClick?St._ignoreBackdropClick=!1:Si.target===Si.currentTarget&&("static"===St._config.backdrop?St._element.focus():St.hide())}),Vt&&b.reflow(this._backdrop),D(this._backdrop).addClass(Zn),!et)return;if(!Vt)return void et();var Ce=b.getTransitionDurationFromElement(this._backdrop);D(this._backdrop).one(b.TRANSITION_END,et).emulateTransitionEnd(Ce)}else if(!this._isShown&&this._backdrop){D(this._backdrop).removeClass(Zn);var Me=function(){St._removeBackdrop(),et&&et()};if(D(this._element).hasClass(en)){var ei=b.getTransitionDurationFromElement(this._backdrop);D(this._backdrop).one(b.TRANSITION_END,Me).emulateTransitionEnd(ei)}else Me()}else et&&et()},Zt._adjustDialog=function(){var et=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&et&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!et&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},Zt._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},Zt._checkScrollbar=function(){var et=document.body.getBoundingClientRect();this._isBodyOverflowing=et.left+et.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},Zt._setScrollbar=function(){var et=this;if(this._isBodyOverflowing){var St=[].slice.call(document.querySelectorAll(Ss)),Vt=[].slice.call(document.querySelectorAll(ds));D(St).each(function(ei,Si){var Ui=Si.style.paddingRight,on=D(Si).css("padding-right");D(Si).data("padding-right",Ui).css("padding-right",parseFloat(on)+et._scrollbarWidth+"px")}),D(Vt).each(function(ei,Si){var Ui=Si.style.marginRight,on=D(Si).css("margin-right");D(Si).data("margin-right",Ui).css("margin-right",parseFloat(on)-et._scrollbarWidth+"px")});var Ce=document.body.style.paddingRight,Me=D(document.body).css("padding-right");D(document.body).data("padding-right",Ce).css("padding-right",parseFloat(Me)+this._scrollbarWidth+"px")}D(document.body).addClass(ln)},Zt._resetScrollbar=function(){var et=[].slice.call(document.querySelectorAll(Ss));D(et).each(function(Ce,Me){var ei=D(Me).data("padding-right");D(Me).removeData("padding-right"),Me.style.paddingRight=ei||""});var St=[].slice.call(document.querySelectorAll(""+ds));D(St).each(function(Ce,Me){var ei=D(Me).data("margin-right");void 0!==ei&&D(Me).css("margin-right",ei).removeData("margin-right")});var Vt=D(document.body).data("padding-right");D(document.body).removeData("padding-right"),document.body.style.paddingRight=Vt||""},Zt._getScrollbarWidth=function(){var et=document.createElement("div");et.className="modal-scrollbar-measure",document.body.appendChild(et);var St=et.getBoundingClientRect().width-et.clientWidth;return document.body.removeChild(et),St},Xt._jQueryInterface=function(et,St){return this.each(function(){var Vt=D(this).data(Wi),Ce=r({},$n,D(this).data(),"object"==typeof et&&et?et:{});if(Vt||(Vt=new Xt(this,Ce),D(this).data(Wi,Vt)),"string"==typeof et){if(void 0===Vt[et])throw new TypeError('No method n
1amed "'+et+'"');Vt[et](St)}else Ce.show&&Vt.show(St)})},l(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return $n}}]),Xt}();D(document).on(di.CLICK_DATA_API,'[data-toggle="modal"]',function(Xt){var Zt,et=this,St=b.getSelectorFromElement(this);St&&(Zt=document.querySelector(St));var Vt=D(Zt).data(Wi)?"toggle":r({},D(Zt).data(),D(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||Xt.preventDefault();var Ce=D(Zt).one(di.SHOW,function(Me){Me.isDefaultPrevented()||Ce.one(di.HIDDEN,function(){D(et).is(":visible")&&et.focus()})});ss._jQueryInterface.call(D(Zt),Vt,this)}),D.fn[ai]=ss._jQueryInterface,D.fn[ai].Constructor=ss,D.fn[ai].noConflict=function(){return D.fn[ai]=us,ss._jQueryInterface};var wn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],vs=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Jn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function In(Xt,Zt,et){if(0===Xt.length)return Xt;if(et&&"function"==typeof et)return et(Xt);for(var St=(new window.DOMParser).parseFromString(Xt,"text/html"),Vt=Object.keys(Zt),Ce=[].slice.call(St.body.querySelectorAll("*")),Me=function(Ui,on){var Kn=Ce[Ui],_s=Kn.nodeName.toLowerCase();if(-1===Vt.indexOf(Kn.nodeName.toLowerCase()))return Kn.parentNode.removeChild(Kn),"continue";var qi=[].slice.call(Kn.attributes),Ms=[].concat(Zt["*"]||[],Zt[_s]||[]);qi.forEach(function(es){!function(gs,Rs){var zs=gs.nodeName.toLowerCase();if(-1!==Rs.indexOf(zs))return-1===wn.indexOf(zs)||Boolean(gs.nodeValue.match(vs)||gs.nodeValue.match(Jn));for(var Ws=Rs.filter(function(Is){return Is instanceof RegExp}),js=0,Us=Ws.length;js<Us;js++)if(zs.match(Ws[js]))return!0;return!1}(es,Ms)&&Kn.removeAttribute(es.nodeName)})},ei=0,Si=Ce.length;ei<Si;ei++)Me(ei);return St.body.innerHTML}var Hn="tooltip",Vn="bs.tooltip",xn="."+Vn,Ji=D.fn[Hn],Xn="bs-tooltip",hs=new RegExp("(^|\\s)"+Xn+"\\S+","g"),fs=["sanitize","whiteList","sanitizeFn"],zn={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)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},f={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},P={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",sanitize:!0,sanitizeFn:null,whiteList:{"*":["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","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},q="show",Z="out",ct={HIDE:"hide"+xn,HIDDEN:"hidden"+xn,SHOW:"show"+xn,SHOWN:"shown"+xn,INSERTED:"inserted"+xn,CLICK:"click"+xn,FOCUSIN:"focusin"+xn,FOCUSOUT:"focusout"+xn,MOUSEENTER:"mouseenter"+xn,MOUSELEAVE:"mouseleave"+xn},rt="fade",bt="show",Yt="hover",oe="focus",li=function(){function Xt(et,St){if(void 0===K)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=et,this.config=this._getConfig(St),this.tip=null,this._setListeners()}var Zt=Xt.prototype;return Zt.enable=function(){this._isEnabled=!0},Zt.disable=function(){this._isEnabled=!1},Zt.toggleEnabled=function(){this._isEnabled=!this._isEnabled},Zt.toggle=function(et){if(this._isEnabled)if(et){var St=this.constructor.DATA_KEY,Vt=D(et.currentTarget).data(St);Vt||(Vt=new this.constructor(et.currentTarget,this._getDelegateConfig()),D(et.currentTarget).data(St,Vt)),Vt._activeTrigger.click=!Vt._activeTrigger.click,Vt._isWithActiveTrigger()?Vt._enter(null,Vt):Vt._leave(null,Vt)}else{if(D(this.getTipElement()).hasClass(bt))return void this._leave(null,this);this._enter(null,this)}},Zt.dispose=function(){clearTimeout(this._timeout),D.removeData(this.element,this.constructor.DATA_KEY),D(this.element).off(this.constructor.EVENT_KEY),D(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&D(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},Zt.show=function(){var et=this;if("none"===D(this.element).css("display"))throw new Error("Please use show on visible elements");var St=D.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){D(this.element).trigger(St);var Vt=b.findShadowRoot(this.element),Ce=D.contains(null!==Vt?Vt:this.element.ownerDocument.documentElement,this.element);if(St.isDefaultPrevented()||!Ce)return;var Me=this.getTipElement(),ei=b.getUID(this.constructor.NAME);Me.setAttribute("id",ei),this.element.setAttribute("aria-describedby",ei),this.setContent(),this.config.animation&&D(Me).addClass(rt);var Si="function"==typeof this.config.placement?this.config.placement.call(this,Me,this.element):this.config.placement,Ui=this._getAttachment(Si);this.addAttachmentClass(Ui);var on=this._getContainer();D(Me).data(this.constructor.DATA_KEY,this),D.contains(this.element.ownerDocument.documentElement,this.tip)||D(Me).appendTo(on),D(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new K(this.element,Me,{placement:Ui,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"}
1,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(qi){qi.originalPlacement!==qi.placement&&et._handlePopperPlacementChange(qi)},onUpdate:function(qi){return et._handlePopperPlacementChange(qi)}}),D(Me).addClass(bt),"ontouchstart"in document.documentElement&&D(document.body).children().on("mouseover",null,D.noop);var Kn=function(){et.config.animation&&et._fixTransition();var qi=et._hoverState;et._hoverState=null,D(et.element).trigger(et.constructor.Event.SHOWN),qi===Z&&et._leave(null,et)};if(D(this.tip).hasClass(rt)){var _s=b.getTransitionDurationFromElement(this.tip);D(this.tip).one(b.TRANSITION_END,Kn).emulateTransitionEnd(_s)}else Kn()}},Zt.hide=function(et){function St(){Vt._hoverState!==q&&Ce.parentNode&&Ce.parentNode.removeChild(Ce),Vt._cleanTipClass(),Vt.element.removeAttribute("aria-describedby"),D(Vt.element).trigger(Vt.constructor.Event.HIDDEN),null!==Vt._popper&&Vt._popper.destroy(),et&&et()}var Vt=this,Ce=this.getTipElement(),Me=D.Event(this.constructor.Event.HIDE);if(D(this.element).trigger(Me),!Me.isDefaultPrevented()){if(D(Ce).removeClass(bt),"ontouchstart"in document.documentElement&&D(document.body).children().off("mouseover",null,D.no
1op),this._activeTrigger.click=!1,this._activeTrigger[oe]=!1,this._activeTrigger[Yt]=!1,D(this.tip).hasClass(rt)){var ei=b.getTransitionDurationFromElement(Ce);D(Ce).one(b.TRANSITION_END,St).emulateTransitionEnd(ei)}else St();this._hoverState=""}},Zt.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},Zt.isWithContent=function(){return Boolean(this.getTitle())},Zt.addAttachmentClass=function(et){D(this.getTipElement()).addClass(Xn+"-"+et)},Zt.getTipElement=function(){return this.tip=this.tip||D(this.config.template)[0],this.tip},Zt.setContent=function(){var et=this.getTipElement();this.setElementContent(D(et.querySelectorAll(".tooltip-inner")),this.getTitle()),D(et).removeClass(rt+" "+bt)},Zt.setElementContent=function(et,St){"object"!=typeof St||!St.nodeType&&!St.jquery?this.config.html?(this.config.sanitize&&(St=In(St,this.config.whiteList,this.config.sanitizeFn)),et.html(St)):et.text(St):this.config.html?D(St).parent().is(et)||et.empty().append(St):et.text(D(St).text())},Zt.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},Zt._getOffset=function(){var et=this,St={};return"function"==typeof this.config.offset?St.fn=function(Vt){return Vt.offsets=r({},Vt.offsets,et.config.offset(Vt.offsets,et.element)||{}),Vt}:St.offset=this.config.offset,St},Zt._getContainer=function(){return!1===this.config.container?document.body:b.isElement(this.config.container)?D(this.config.container):D(document).find(this.config.container)},Zt._getAttachment=function(et){return f[et.toUpperCase()]},Zt._setListeners=function(){var et=this;this.config.trigger.split(" ").forEach(function(St){if("click"===St)D(et.element).on(et.constructor.Event.CLICK,et.config.selector,function(Me){return et.toggle(Me)});else if("manual"!==St){var Vt=St===Yt?et.constructor.Event.MOUSEENTER:et.constructor.Event.FOCUSIN,Ce=St===Yt?et.constructor.Event.MOUSELEAVE:et.constructor.Event.FOCUSOUT;D(et.element).on(Vt,et.config.selector,function(Me){return et._enter(Me)}).on(Ce,et.config.selector,function(Me){return et._leave(Me)})}}),D(this.element).closest(".modal").on("hide.bs.modal",function(){et.element&&et.hide()}),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},Zt._fixTitle=function(){var et=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==et||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},Zt._enter=function(et,St){var Vt=this.constructor.DATA_KEY;(St=St||D(et.currentTarget).data(Vt))||(St=new this.constructor(et.currentTarget,this._getDelegateConfig()),D(et.currentTarget).data(Vt,St)),et&&(St._activeTrigger["focusin"===et.type?oe:Yt]=!0),D(St.getTipElement()).hasClass(bt)||St._hoverState===q?St._hoverState=q:(clearTimeout(St._timeout),St._hoverState=q,St.config.delay&&St.config.delay.show?St._timeout=setTimeout(function(){St._hoverState===q&&St.show()},St.config.delay.show):St.show())},Zt._leave=function(et,St){var Vt=this.constructor.DATA_KEY;(St=St||D(et.currentTarget).data(Vt))||(St=new this.constructor(et.currentTarget,this._getDelegateConfig()),D(et.currentTarget).data(Vt,St)),et&&(St._activeTrigger["focusout"===et.type?oe:Yt]=!1),St._isWithActiveTrigger()||(clearTimeout(St._timeout),St._hoverState=Z,St.config.delay&&St.config.delay.hide?St._timeout=setTimeout(function(){St._hoverState===Z&&St.hide()},St.config.delay.hide):St.hide())},Zt._isWithActiveTrigger=function(){for(var et in this._activeTrigger)if(this._activeTrigger[et])return!0;return!1},Zt._getConfig=function(et){var St=D(this.element).data();return Object.keys(St).forEach(function(Vt){-1!==fs.indexOf(Vt)&&delete St[Vt]}),"number"==typeof(et=r({},this.constructor.Default,St,"object"==typeof et&&et?et:{})).delay&&(et.delay={show:et.delay,hide:et.delay}),"number"==typeof et.title&&(et.title=et.title.toString()),"number"==typeof et.content&&(et.content=et.content.toString()),b.typeCheckConfig(Hn,et,this.constructor.DefaultType),et.sanitize&&(et.template=In(et.template,et.whiteList,et.sanitizeFn)),et},Zt._getDelegateConfig=function(){var et={};if(this.config)for(var St in this.config)this.constructor.Default[St]!==this.config[St]&&(et[St]=this.config[St]);return et},Zt._cleanTipClass=function(){var et=D(this.getTipElement()),St=et.attr("class").match(hs);null!==St&&St.length&&et.removeClass(St.join(""))},Zt._handlePopperPlacementChange=function(et){this.tip=et.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(et.placement))},Zt._fixTransition=function(){var et=this.getTipElement(),St=this.config.animation;null===et.getAttribute("x-placement")&&(D(et).removeClass(rt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=St)},Xt._jQueryInterface=function(et){return this.each(function(){var St=D(this).data(Vn),Vt="object"==typeof et&&et;if((St||!/dispose|hide/.test(et))&&(St||(St=new Xt(this,Vt),D(this).data(Vn,St)),"string"==typeof et)){if(void 0===St[et])throw new TypeError('No method n
1amed "'+et+'"');St[et]()}})},l(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return P}},{key:"NAME",get:function(){return Hn}},{key:"DATA_KEY",get:function(){return Vn}},{key:"Event",get:function(){return ct}},{key:"EVENT_KEY",get:function(){return xn}},{key:"DefaultType",get:function(){return zn}}]),Xt}();D.fn[Hn]=li._jQueryInterface,D.fn[Hn].Constructor=li,D.fn[Hn].noConflict=function(){return D.fn[Hn]=Ji,li._jQueryInterface};var mi="popover",Oe="bs.popover",Ri="."+Oe,nn=D.fn[mi],un="bs-popover",Fn=new RegExp("(^|\\s)"+un+"\\S+","g"),dn=r({},li.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>'}),Li=r({},li.DefaultType,{content:"(string|element|function)"}),tn={HIDE:"hide"+Ri,HIDDEN:"hidden"+Ri,SHOW:"show"+Ri,SHOWN:"shown"+Ri,INSERTED:"inserted"+Ri,CLICK:"click"+Ri,FOCUSIN:"focusin"+Ri,FOCUSOUT:"focusout"+Ri,MOUSEENTER:"mouseenter"+Ri,MOUSELEAVE:"mouseleave"+Ri},Dn=function(Xt){function Zt(){return Xt.apply(this,arguments)||this}var St,Vt;Vt=Xt,(St=Zt).prototype=Object.create(Vt.prototype),(St.prototype.constructor=St).__proto__=Vt;var et=Zt.prototype;return et.isWithContent=function(){return this.getTitle()||this._getContent()},et.addAttachmentClass=function(St){D(this.getTipElement()).addClass(un+"-"+St)},et.getTipElement=function(){return this.tip=this.tip||D(this.config.template)[0],this.tip},et.setContent=function(){var St=D(this.getTipElement());this.setElementContent(St.find(".popover-header"),this.getTitle());var Vt=this._getContent();"function"==typeof Vt&&(Vt=Vt.call(this.element)),this.setElementContent(St.find(".popover-body"),Vt),St.removeClass("fade show")},et._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},et._cleanTipClass=function(){var St=D(this.getTipElement()),Vt=St.attr("class").match(Fn);null!==Vt&&0<Vt.length&&St.removeClass(Vt.join(""))},Zt._jQueryInterface=function(St){return this.each(function(){var Vt=D(this).data(Oe),Ce="object"==typeof St?St:null;if((Vt||!/dispose|hide/.test(St))&&(Vt||(Vt=new Zt(this,Ce),D(this).data(Oe,Vt)),"string"==typeof St)){if(void 0===Vt[St])throw new TypeError('No method named "'+St+'"');Vt[St]()}})},l(Zt,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return dn}},{key:"NAME",get:function(){return mi}},{key:"DATA_KEY",get:function(){return Oe}},{key:"Event",get:function(){return tn}},{key:"EVENT_KEY",get:function(){return Ri}},{key:"DefaultType",get:function(){return Li}}]),Zt}(li);D.fn[mi]=Dn._jQueryInterface,D.fn[mi].Constructor=Dn,D.fn[mi].noConflict=function(){return D.fn[mi]=nn,Dn._jQueryInterface};var ts="scrollspy",On="bs.scrollspy",y="."+On,B=D.fn[ts],J={offset:10,method:"auto",target:""},Q={offset:"number",method:"string",target:"(string|element)"},_t={ACTIVATE:"activate"+y,SCROLL:"scroll"+y,LOAD_DATA_API:"load"+y+".data-api"},Mt="active",ie=".nav, .list-group",re=".nav-link",je=".list-group-item",gi="position",Ki=function(){function Xt(et,St){var Vt=this;this._element=et,this._scrollElement="BODY"===et.tagName?window:et,this._config=this._getConfig(St),this._selector=this._config.target+" "+re+","+this._config.target+" "+je+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,D(this._scrollElement).on(_t.SCROLL,function(Ce){return Vt._process(Ce)}),this.refresh(),this._process()}var Zt=Xt.prototype;return Zt.refresh=function(){var et=this,Vt="auto"===this._config.method?this._scrollElement===this._scrollElement.window?"offset":gi:this._config.method,Ce=Vt===gi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(Me){var ei,Si=b.getSelectorFromElement(Me);if(Si&&(ei=document.querySelector(Si)),ei){var Ui=ei.getBoundingClientRect();if(Ui.width||Ui.height)return[D(ei)[Vt]().top+Ce,Si]}return null}).filter(function(Me){return Me}).sort(function(Me,ei){return Me[0]-ei[0]}
1).forEach(function(Me){et._offsets.push(Me[0]),et._targets.push(Me[1])})},Zt.dispose=function(){D.removeData(this._element,On),D(this._scrollElement).off(y),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},Zt._getConfig=function(et){if("string"!=typeof(et=r({},J,"object"==typeof et&&et?et:{})).target){var St=D(et.target).attr("id");St||(St=b.getUID(ts),D(et.target).attr("id",St)),et.target="#"+St}return b.typeCheckConfig(ts,et,Q),et},Zt._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},Zt._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},Zt._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},Zt._process=function(){var et=this._getScrollTop()+this._config.offset,St=this._getScrollHeight(),Vt=this._config.offset+St-this._getOffsetHeight();if(this._scrollHeight!==St&&this.refresh(),Vt<=et){var Ce=this._targets[this._targets.length-1];this._activeTarget!==Ce&&this._activate(Ce)}else{if(this._activeTarget&&et<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var Me=this._offsets.length;Me--;)this._activeTarget!==this._targets[Me]&&et>=this._offsets[Me]&&(void 0===this._offsets[Me+1]||et<this._offsets[Me+1])&&this._activate(this._targets[Me])}},Zt._activate=function(et){this._activeTarget=et,this._clear();var St=this._selector.split(",").map(function(Ce){return Ce+'[data-target="'+et+'"],'+Ce+'[href="'+et+'"]'}),Vt=D([].slice.call(document.querySelectorAll(St.join(","))));Vt.hasClass("dropdown-item")?(Vt.closest(".dropdown").find(".dropdown-toggle").addClass(Mt),Vt.addClass(Mt)):(Vt.addClass(Mt),Vt.parents(ie).prev(re+", "+je).addClass(Mt),Vt.parents(ie).prev(".nav-item").children(re).addClass(Mt)),D(this._scrollElement).trigger(_t.ACTIVATE,{relatedTarget:et})},Zt._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(et){return et.classList.contains(Mt)}).forEach(function(et){return et.classList.remove(Mt)})},Xt._jQueryInterface=function(et){return this.each(function(){var St=D(this).data(On);if(St||(St=new Xt(this,"object"==typeof et&&et),D(this).data(On,St)),"string"==typeof et){if(void 0===St[et])throw new TypeError('No method named "'+et+'"');St[et]()}})},l(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return J}}]),Xt}();D(window).on(_t.LOAD_DATA_API,function(){for(var Xt=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),Zt=Xt.length;Zt--;){var et=D(Xt[Zt]);Ki._jQueryInterface.call(et,et.data())}}),D.fn[ts]=Ki._jQueryInterface,D.fn[ts].Constructor=Ki,D.fn[ts].noConflict=function(){return D.fn[ts]=B,Ki._jQueryInterface};var Vi="bs.tab",kn="."+Vi,bs=D.fn.tab,Hi={HIDE:"hide"+kn,HIDDEN:"hidden"+kn,SHOW:"show"+kn,SHOWN:"shown"+kn,CLICK_DATA_API:"click.bs.tab.data-api"},Mi="active",rs=".active",as="> li > .active",Pn=function(){function Xt(et){this._element=et}var Zt=Xt.prototype;return Zt.show=function(){var et=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&D(this._element).hasClass(Mi)||D(this._element).hasClass("disabled"))){var St,Vt,Ce=D(this._element).closest(".nav, .list-group")[0],Me=b.getSelectorFromElement(this._element);if(Ce){var ei="UL"===Ce.nodeName||"OL"===Ce.nodeName?as:rs;Vt=(Vt=D.makeArray(D(Ce).find(ei)))[Vt.length-1]}var Si=D.Event(Hi.HIDE,{relatedTarget:this._element}),Ui=D.Event(Hi.SHOW,{relatedTarget:Vt});if(Vt&&D(Vt).trigger(Si),D(this._element).trigger(Ui),!Ui.isDefaultPrevented()&&!Si.isDefaultPrevented()){Me&&(St=document.querySelector(Me)),this._activate(this._element,Ce);var on=function(){var Kn=D.Event(Hi.HIDDEN,{relatedTarget:et._element}),_s=D.Event(Hi.SHOWN,{relatedTarget:Vt});D(Vt).trigger(Kn),D(et._element).trigger(_s)};St?this._activate(St,St.parentNode,on):on()}}},Zt.dispose=function(){D.removeData(this._element,Vi),this._element=null},Zt._activate=function(et,St,Vt){function Ce(){return Me._transitionComplete(et,ei,Vt)}var Me=this,ei=(!St||"UL"!==St.nodeName&&"OL"!==St.nodeName?D(St).children(rs):D(St).find(as))[0],Si=Vt&&ei&&D(ei).hasClass("fade");if(ei&&Si){var Ui=b.getTransitionDurationFromElement(ei);D(ei).removeClass("show").one(b.TRANSITION_END,Ce).emulateTransitionEnd(Ui)}else Ce()},Zt._transitionComplete=function(et,St,Vt){if(St){D(St).removeClass(Mi);var Ce=D(St.parentNode).find("> .dropdown-menu .active")[0];Ce&&D(Ce).removeClass(Mi),"tab"===St.getAttribute("role")&&St.setAttribute("aria-selected",!1)}if(D(et).addClass(Mi),"tab"===et.getAttribute("role")&&et.setAttribute("aria-selected",!0),b.reflow(et),et.classList.contains("fade")&&et.classList.add("show"),et.parentNode&&D(et.parentNode).hasClass("dropdown-menu")){var Me=D(et).closest(".dropdown")[0];if(Me){var ei=[].slice.call(Me.querySelectorAll(".dropdown-toggle"));D(ei).addClass(Mi)}et.setAttribute("aria-expanded",!0)}Vt&&Vt()},Xt._jQueryInterface=function(et){return this.each(function(){var St=D(this),Vt=St.data(Vi);
1if(Vt||(Vt=new Xt(this),St.data(Vi,Vt)),"string"==typeof et){if(void 0===Vt[et])throw new TypeError('No method named "'+et+'"');Vt[et]()}})},l(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),Xt}();D(document).on(Hi.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(Xt){Xt.preventDefault(),Pn._jQueryInterface.call(D(this),"show")}),D.fn.tab=Pn._jQueryInterface,D.fn.tab.Constructor=Pn,D.fn.tab.noConflict=function(){return D.fn.tab=bs,Pn._jQueryInterface};var pn="toast",qn="bs.toast",vi="."+qn,T=D.fn[pn],X={CLICK_DISMISS:"click.dismiss"+vi,HIDE:"hide"+vi,HIDDEN:"hidden"+vi,SHOW:"show"+vi,SHOWN:"shown"+vi},se="show",Ae="showing",Re={animation:"boolean",autohide:"boolean",delay:"number"},Ue={animation:!0,autohide:!0,delay:500},Ge=function(){function Xt(et,St){this._element=et,this._config=this._getConfig(St),this._timeout=null,this._setListeners()}var Zt=Xt.prototype;return Zt.show=function(){var et=this;function St(){et._element.classList.remove(Ae),et._element.classList.add(se),D(et._element).trigger(X.SHOWN),et._config.autohide&&et.hide()}if(D(this._element).trigger(X.SHOW),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),this._element.classList.add(Ae),this._config.animation){var Vt=b.getTransitionDurationFromElement(this._element);D(this._element).one(b.TRANSITION_END,St).emulateTransitionEnd(Vt)}else St()},Zt.hide=function(et){var St=this;this._element.classList.contains(se)&&(D(this._element).trigger(X.HIDE),et?this._close():this._timeout=setTimeout(function(){St._close()},this._config.delay))},Zt.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(se)&&this._element.classList.remove(se),D(this._element).off(X.CLICK_DISMISS),D.removeData(this._element,qn),this._element=null,this._config=null},Zt._getConfig=function(et){return et=r({},Ue,D(this._element).data(),"object"==typeof et&&et?et:{}),b.typeCheckConfig(pn,et,this.constructor.DefaultType),et},Zt._setListeners=function(){var et=this;D(this._element).on(X.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return et.hide(!0)})},Zt._close=function(){function et(){St._element.classList.add("hide"),D(St._element).trigger(X.HIDDEN)}var St=this;if(this._element.classList.remove(se),this._config.animation){var Vt=b.getTransitionDurationFromElement(this._element);D(this._element).one(b.TRANSITION_END,et).emulateTransitionEnd(Vt)}else et()},Xt._jQueryInterface=function(et){return this.each(function(){var St=D(this),Vt=St.data(qn);if(Vt||(Vt=new Xt(this,"object"==typeof et&&et),St.data(qn,Vt)),"string"==typeof et){if(void 0===Vt[et])throw new TypeError('No method named "'+et+'"');Vt[et](this)}})},l(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Re}},{key:"Default",get:function(){return Ue}}]),Xt}();D.fn[pn]=Ge._jQueryInterface,D.fn[pn].Constructor=Ge,D.fn[pn].noConflict=function(){return D.fn[pn]=T,Ge._jQueryInterface},function(){if(void 0===D)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var Xt=D.fn.jquery.split(" ")[0].split(".");if(Xt[0]<2&&Xt[1]<9||1===Xt[0]&&9===Xt[1]&&Xt[2]<1||4<=Xt[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),i.Util=b,i.Alert=A,i.Button=he,i.Carousel=Le,i.Collapse=we,i.Dropdown=Di,i.Modal=ss,i.Popover=Dn,i.Scrollspy=Ki,i.Tab=Pn,i.Toast=Ge,i.Tooltip=li,Object.defineProperty(i,"__esModule",{value:!0})}),function(i){i.fn.extend({slimScroll:function(D){var K=i.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},D);return this.each(function(){function F(tt){if(b){var ft=0;(tt=tt||window.event).wheelDelta&&(ft=-tt.wheelDelta/120),tt.detail&&(ft=tt.detail/3),i(tt.target||tt.srcTarget||tt.srcElement).closest("."+K.wrapperClass).is(A.parent())&&l(ft,!0),tt.preventDefault&&!S&&tt.preventDefault(),S||(tt.returnValue=!1)}}function l(tt,ft,Rt){S=!1;var lt=A.outerHeight()-H.outerHeight();ft&&(ft=parseInt(H.css("top"))+tt*parseInt(K.wheelStep)/100*H.outerHeight(),ft=Math.min(Math.max(ft,0),lt),ft=0<tt?Math.ceil(ft):Math.floor(ft),H.css({top:ft+"px"})),ft=(I=parseInt(H.css("top"))/(A.outerHeight()-H.outerHeight()))*(A[0].scrollHeight-A.outerHeight()),Rt&&(tt=(ft=tt)/A[0].scrollHeight*A.outerHeight(),tt=Math.min(Math.max(tt,0),lt),H.css({top:tt+"px"})),A.scrollTop(ft),A.trigger("slimscrolling",~~ft),a(),u()}function r(){N=Math.max(A.outerHeight()/A[0].scrollHeight*A.outerHeight(),30),H.css({height:N+"px"});var tt=N==A.outerHeight()?"none":"block";H.css({display:tt})}function a(){r(),clearTimeout(R),I==~~I?(S=K.allowPageScroll,x!=I&&A.trigger("slimscroll",0==~~I?"top":"bottom")):S=!1,x=I,N>=A.outerHeight()?S=!0:(H.stop(!0,!0).fadeIn("fast"),K.railVisible&&z.stop(!0,!0).fadeIn("fast"))}function u(){K.alwaysVisible||(R=setTimeout(function(){K.disableFadeOut&&b||L||W||(H.fadeOut("slow"),z.fadeOut("slow"))},1e3))}var b,L,W,R,k,N,I,x,S=!1,A=i(this);if(A.parent().hasClass(K.wrapperClass)){var O=A.scrollTop(),H=A.siblings("."+K.barClass),z=A.siblings("."+K.railClass);if(r(),i.isPlainObject(D)){if("height"in D&&"auto"==D.height){A.parent().css("height","auto"),A.css("height","auto");var v=A.parent().parent().height();A.parent().css("height",v),A.css("height",v)}
1else"height"in D&&(v=D.height,A.parent().css("height",v),A.css("height",v));if("scrollTo"in D)O=parseInt(K.scrollTo);else if("scrollBy"in D)O+=parseInt(K.scrollBy);else if("destroy"in D)return H.remove(),z.remove(),void A.unwrap();l(O,!1,!0)}}else i.isPlainObject(D)&&"destroy"in D||(K.height="auto"==K.height?A.parent().height():K.height,O=i("<div></div>").addClass(K.wrapperClass).css({position:"relative",overflow:"hidden",width:K.width,height:K.height}),A.css({overflow:"hidden",width:K.width,height:K.height}),z=i("<div></div>").addClass(K.railClass).css({width:K.size,height:"100%",position:"absolute",top:0,display:K.alwaysVisible&&K.railVisible?"block":"none","border-radius":K.railBorderRadius,background:K.railColor,opacity:K.railOpacity,zIndex:90}),H=i("<div></div>").addClass(K.barClass).css({background:K.color,width:K.size,position:"absolute",top:0,opacity:K.opacity,display:K.alwaysVisible?"block":"none","border-radius":K.borderRadius,BorderRadius:K.borderRadius,MozBorderRadius:K.borderRadius,WebkitBorderRadius:K.borderRadius,zIndex:99}),z.css(v="right"==K.position?{right:K.distance}:{left:K.distance}),H.css(v),A.wrap(O),A.parent().append(H),A.parent().append(z),K.railDraggable&&H.bind("mousedown",function(tt){var ft=i(document);return W=!0,t=parseFloat(H.css("top")),pageY=tt.pageY,ft.bind("mousemove.slimscroll",function(Rt){currTop=t+Rt.pageY-pageY,H.css("top",currTop),l(0,H.position().top,!1)}),ft.bind("mouseup.slimscroll",function(Rt){W=!1,u(),ft.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(tt){return tt.stopPropagation(),tt.preventDefault(),!1}),z.hover(function(){a()},function(){u()}),H.hover(function(){L=!0},function(){L=!1}),A.hover(function(){b=!0,a(),u()},function(){b=!1,u()}),A.bind("touchstart",function(tt,ft){tt.originalEvent.touches.length&&(k=tt.originalEvent.touches[0].pageY)}),A.bind("touchmove",function(tt){S||tt.originalEvent.preventDefault(),tt.originalEvent.touches.length&&(l((k-tt.originalEvent.touches[0].pageY)/K.touchScrollStep,!0),k=tt.originalEvent.touches[0].pageY)}),r(),"bottom"===K.start?(H.css({top:A.outerHeight()-H.outerHeight()}),l(0,!0)):"top"!==K.start&&(l(i(K.start).position().top,null,!0),K.alwaysVisible||H.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",F,!1),this.addEventListener("mousewheel",F,!1)):document.attachEvent("onmousewheel",F))}),this}}),i.fn.extend({slimscroll:i.fn.slimScroll})}(jQuery),function(i,D){"use strict";"function"==typeof define&&define.amd?define([],function(){return i.Waves=D.call(i),i.Waves}):"object"==typeof exports?module.exports=D.call(i):i.Waves=D.call(i)}("object"==typeof global?global:this,function(){"use strict";var i=i||{},D=document.querySelectorAll.bind(document),K=Object.prototype.toString,F="ontouchstart"in window;function l(N){var I=typeof N;return"function"==I||"object"==I&&!!N}function r(N){var x,I=K.call(N);return"[object String]"===I?D(N):l(N)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(I)&&N.hasOwnProperty("length")?N:l(x=N)&&0<x.nodeType?[N]:[]}function a(N){var I,x,O,H,S={top:0,left:0},A=N&&N.ownerDocument;return I=A.documentElement,void 0!==N.getBoundingClientRect&&(S=N.getBoundingClientRect()),x=null!==(H=O=A)&&H===H.window?O:9===O.nodeType&&O.defaultView,{top:S.top+x.pageYOffset-I.clientTop,left:S.left+x.pageXOffset-I.clientLeft}}function u(N){var I="";for(var x in N)N.hasOwnProperty(x)&&(I+=x+":"+N[x]+";");return I}var b={duration:750,delay:200,show:function(N,I,x){if(2===N.button)return!1;I=I||this;var S=document.createElement("div");S.className="waves-ripple waves-rippling",I.appendChild(S);var A=a(I),O=0,H=0;H=0<=(H="touches"in N&&N.touches.length?(O=N.touches[0].pageY-A.top,N.touches[0].pageX-A.left):(O=N.pageY-A.top,N.pageX-A.left))?H:0,O=0<=O?O:0;var z="scale("+I.clientWidth/100*3+")",v="translate(0,0)";x&&(v="translate("+x.x+"px, "+x.y+"px)"),S.setAttribute("data-hold",Date.now()),S.setAttribute("data-x",H),S.setAttribute("data-y",O),S.setAttribute("data-scale",z),S.setAttribute("data-translate",v);var tt={top:O+"px",left:H+"px"};S.classList.add("waves-notransition"),S.setAttribute("style",u(tt)),S.classList.remove("waves-notransition"),tt["-webkit-transform"]=z+" "+v,tt["-moz-transform"]=z+" "+v,tt["-ms-transform"]=z+" "+v,tt["-o-transform"]=z+" "+v,tt.transform=z+" "+v,tt.opacity="1";var ft="mousemove"===N.type?2500:b.duration;tt["-webkit-transition-duration"]=ft+"ms",tt["-moz-transition-duration"]=ft+"ms",tt["-o-transition-duration"]=ft+"ms",tt["transition-duration"]=ft+"ms",S.setAttribute("style",u(tt))},hide:function(N,I){for(var x=(I=I||this).getElementsByClassName("waves-rippling"),S=0,A=x.length;S<A;S++)W(N,I,x[S]);F&&(I.removeEventListener("touchend",b.hide),I.removeEventListener("touchcancel",b.hide)),I.removeEventListener("mouseup",b.hide),I.removeEventListener("mouseleave",b.hide)}},L={input:function(N){var I=N.parentNode;if("i"!==I.tagName.toLowerCase()||!I.classList.contains("waves-effect")){var x=document.createElement("i");x.className=N.className+" waves-input-wrapper",N.className="waves-button-input",I.replaceChild(x,N),x.appendChild(N);var S=window.getComputedStyle(N,null);x.setAttribute("style","color:"+S.color+";background:"+S.backgroundColor),N.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(N){var I=N.parentNode;if("i"!==I.tagName.toLowerCase()||!I.classList.contains("waves-effect")){var x=document.createElement("i");I.replaceChild(x,N),x.appendChild(N)}}};function W(N,I,x){if(x){x.classList.remove("waves-rippling");var S=x.getAttribute("data-x"),A=x.getAttribute("data-y"),O=x.getAttribute("data-scale"),H=x.getAttribute("data-translate"),z=350-(Date.now()-Number(x.getAttribute("data-hold")));z<0&&(z=0),"mousemove"===N.type&&(z=150);var v="mousemove"===N.type?2500:b.duration;setTimeout(function(){x.setAttribute("style",u({top:A+"px",left:S+"px",opacity:"0","-webkit-transition-duration":v+"ms","-moz-transition-duration":v+"ms","-o-transition-duration":v+"ms","transition-duration":v+"ms","-webkit-transform":O+" "+H,"-moz-transform":O+" "+H,"-ms-transform":O+" "+H,"-o-transform":O+" "+H,transform:O+" "+H})),setTimeout(function(){try{I.removeChild(x)}catch(ft){return!1}},v)},z)}}var R={touches:0,allowEvent:function(N){var I=!0;return/^(mousedown|mousemove)$/.test(N.type)&&R.touches&&(I=!1),I},registerEvent:function(N){var I=N.type;"touchstart"===I?R.touches+=1:/^(touchend|touchcancel)$/.test(I)&&setTimeout(function(){R.touches&&(R.touches-=1)},500)}};function k(N){var I=function(z){if(!1===R.allowEvent(z))return null;for(var v=null,tt=z.target||z.srcElement;tt.parentElement;){if(!(tt instanceof SVGElement)&&tt.classList.contains("waves-effect")){v=tt;break}tt=tt.parentElement}return v}(N);
1if(null!==I){if(I.disabled||I.getAttribute("disabled")||I.classList.contains("disabled"))return;if(R.registerEvent(N),"touchstart"===N.type&&b.delay){var x=!1,S=setTimeout(function(){S=null,b.show(N,I)},b.delay),A=function(z){S&&(clearTimeout(S),S=null,b.show(N,I)),x||(x=!0,b.hide(z,I)),H()},O=function(z){S&&(clearTimeout(S),S=null),A(z),H()};I.addEventListener("touchmove",O,!1),I.addEventListener("touchend",A,!1),I.addEventListener("touchcancel",A,!1);var H=function(){I.removeEventListener("touchmove",O),I.removeEventListener("touchend",A),I.removeEventListener("touchcancel",A)}}else b.show(N,I),F&&(I.addEventListener("touchend",b.hide,!1),I.addEventListener("touchcancel",b.hide,!1)),I.addEventListener("mouseup",b.hide,!1),I.addEventListener("mouseleave",b.hide,!1)}}return i.init=function(N){var I=document.body;"duration"in(N=N||{})&&(b.duration=N.duration),"delay"in N&&(b.delay=N.delay),F&&(I.addEventListener("touchstart",k,!1),I.addEventListener("touchcancel",R.registerEvent,!1),I.addEventListener("touchend",R.registerEvent,!1)),I.addEventListener("mousedown",k,!1)},i.attach=function(N,I){var x,S;N=r(N),"[object Array]"===K.call(I)&&(I=I.join(" ")),I=I?" "+I:"";for(var A=0,O=N.length;A<O;A++)S=(x=N[A]).tagName.toLowerCase(),-1!==["input","img"].indexOf(S)&&(L[S](x),x=x.parentElement),-1===x.className.indexOf("waves-effect")&&(x.className+=" waves-effect"+I)},i.ripple=function(N,I){var x=(N=r(N)).length;if((I=I||{}).wait=I.wait||0,I.position=I.position||null,x)for(var S,A,O,H={},z=0,v={type:"mousedown",button:1},tt=function(ft,Rt){return function(){b.hide(ft,Rt)}};z<x;z++)S=N[z],A=I.position||{x:S.clientWidth/2,y:S.clientHeight/2},O=a(S),H.x=O.left+A.x,H.y=O.top+A.y,v.pageX=H.x,v.pageY=H.y,b.show(v,S),0<=I.wait&&null!==I.wait&&setTimeout(tt({type:"mouseup",button:1},S),I.wait)},i.calm=function(N){for(var I={type:"mouseup",button:1},x=0,S=(N=r(N)).length;x<S;x++)b.hide(I,N[x])},i.displayEffect=function(N){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),i.init(N)},i}),function(i,D,K){"use strict";(function F(l,r,a){function u(W,R){if(!r[W]){if(!l[W]){var k="function"==typeof require&&require;if(!R&&k)return k(W,!0);if(b)return b(W,!0);var N=new Error("Cannot find module '"+W+"'");throw N.code="MODULE_NOT_FOUND",N}var I=r[W]={exports:{}};l[W][0].call(I.exports,function(x){return u(l[W][1][x]||x)},I,I.exports,F,l,r,a)}return r[W].exports}for(var b="function"==typeof require&&require,L=0;L<a.length;L++)u(a[L]);return u})({1:[function(F,l,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,
1confirmButtonText:"OK",confirmButtonClass:"btn-primary",cancelButtonText:"Cancel",cancelButtonClass:"btn-default",containerClass:"",titleClass:"",textClass:"",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1}},{}],2:[function(F,l,r){Object.defineProperty(r,"__esModule",{value:!0}),r.handleCancel=r.handleConfirm=r.handleButton=K;var a=(F("./handle-swal-dom"),F("./handle-dom")),u=function(L,W){var R=!0;(0,a.hasClass)(L,"show-input")&&(R=(R=L.querySelector("input").value)||""),W.doneFunction(R),W.closeOnConfirm&&sweetAlert.close(),W.showLoaderOnConfirm&&sweetAlert.disableButtons()},b=function(L,W){var R=String(W.doneFunction).replace(/\s/g,"");"function("===R.substring(0,9)&&")"!==R.substring(9,10)&&W.doneFunction(!1),W.closeOnCancel&&sweetAlert.close()};r.handleButton=function(L,W,R){var k,N=L||i.event,I=N.target||N.srcElement,x=-1!==I.className.indexOf("confirm"),S=-1!==I.className.indexOf("sweet-overlay"),A=(0,a.hasClass)(R,"visible"),O=W.doneFunction&&"true"===R.getAttribute("data-has-done-function");switch(x&&W.confirmButtonColor&&(k=W.confirmButtonColor,colorLuminance(k,-.04),colorLuminance(k,-.14)),N.type){case"click":var H=R===I,z=(0,a.isDescendant)(R,I);if(!H&&!z&&A&&!W.allowOutsideClick)break;x&&O&&A?u(R,W):O&&A||S?b(0,W):(0,a.isDescendant)(R,I)&&"BUTTON"===I.tagName&&sweetAlert.close()}},r.handleConfirm=u,r.handleCancel=b},{"./handle-dom":3,"./handle-swal-dom":5}],3:[function(F,l,r){function a(L,W){return new RegExp(" "+W+" ").test(" "+L.className+" ")}function u(L){L.style.opacity="",L.style.display="block"}function b(L){L.style.opacity="",L.style.display="none"}Object.defineProperty(r,"__esModule",{value:!0}),r.hasClass=a,r.addClass=function(L,W){a(L,W)||(L.className+=" "+W)},r.removeClass=function(L,W){var R=" "+L.className.replace(/[\t\r\n]/g," ")+" ";if(a(L,W)){for(;0<=R.indexOf(" "+W+" ");)R=R.replace(" "+W+" "," ");L.className=R.replace(/^\s+|\s+$/g,"")}},r.escapeHtml=function(L){var W=D.createElement("div");return W.appendChild(D.createTextNode(L)),W.innerHTML},r._show=u,r.show=function(L){if(L&&!L.length)return u(L);for(var W=0;W<L.length;++W)u(L[W])},r._hide=b,r.hide=function(L){if(L&&!L.length)return b(L);for(var W=0;W<L.length;++W)b(L[W])},r.isDescendant=function(L,W){for(var R=W.parentNode;null!==R;){if(R===L)return!0;R=R.parentNode}return!1},r.getTopMargin=function(L){L.style.left="-9999px",L.style.display="block";var W,R=L.clientHeight;return W="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(L).getPropertyValue("padding-top"),10):parseInt(L.currentStyle.padding),L.style.left="",L.style.display="none","-"+parseInt((R+W)/2)+"px"},r.fadeIn=function(L,W){if(+L.style.opacity<1){W=W||16,L.style.opacity=0,L.style.display="block";var R=+new Date;!function k(){L.style.opacity=+L.style.opacity+(new Date-R)/100,R=+new Date,+L.style.opacity<1&&setTimeout(k,W)}()}L.style.display="block"},r.fadeOut=function(L,W){W=W||16,L.style.opacity=1;var R=+new Date;!function k(){L.style.opacity=+L.style.opacity-(new Date-R)/100,R=+new Date,0<+L.style.opacity?setTimeout(k,W):L.style.display="none"}()},r.fireClick=function(L){if("function"==typeof MouseEvent){var W=new MouseEvent("click",{view:i,bubbles:!1,cancelable:!0});L.dispatchEvent(W)}else if(D.createEvent){var R=D.createEvent("MouseEvents");R.initEvent("click",!1,!1),L.dispatchEvent(R)}else D.createEventObject?L.fireEvent("onclick"):"function"==typeof L.onclick&&L.onclick()},r.stopEventPropagation=function(L){"function"==typeof L.stopPropagation?(L.stopPropagation(),L.preventDefault()):i.event&&i.event.hasOwnProperty("cancelBubble")&&(i.event.cancelBubble=!0)}},{}],4:[function(F,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=F("./handle-dom"),u=F("./handle-swal-dom");r.default=function(b,L,W){var R=b||i.event,k=R.keyCode||R.which,N=W.querySelector("button.confirm"),I=W.querySelector("button.cancel"),x=W.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(k)){for(var S=R.target||R.srcElement,A=-1,O=0;O<x.length;O++)if(S===x[O]){A=O;break}9===k?(S=-1===A?N:A===x.length-1?x[0]:x[A+1],(0,a.stopEventPropagation)(R),S.focus(),L.confirmButtonColor&&(0,u.setFocusStyle)(S,L.confirmButtonColor)):13===k?("INPUT"===S.tagName&&(S=N).focus(),S=-1===A?N:K):27===k&&!0===L.allowEscapeKey?(0,a.fireClick)(S=I,R):S=K}}},{"./handle-dom":3,"./handle-swal-dom":5}],5:[function(F,l,r){function a(x){return x&&x.__esModule?x:{default:x}}function u(){var x=D.createElement("div");for(x.innerHTML=N.default;x.firstChild;)D.body.appendChild(x.firstChild)}function b(){var x=D.querySelector(".sweet-alert");return x||(u(),x=b()),x}function L(){var x=b();return x?x.querySelector("input"):void 0}function W(){return D.querySelector(".sweet-overlay")}
1Object.defineProperty(r,"__esModule",{value:!0}),r.fixVerticalPosition=r.resetInputError=r.resetInput=r.openModal=r.getInput=r.getOverlay=r.getModal=r.sweetAlertInitialize=K;var R=F("./handle-dom"),k=a(F("./default-params")),N=a(F("./injected-html")),I=function(x){if(x&&13===x.keyCode)return!1;var S=b(),A=S.querySelector(".sa-input-error");(0,R.removeClass)(A,"show");var O=S.querySelector(".form-group");(0,R.removeClass)(O,"has-error")};r.sweetAlertInitialize=u,r.getModal=b,r.getOverlay=W,r.getInput=L,r.openModal=function(x){var S=b();(0,R.fadeIn)(W(),10),(0,R.show)(S),(0,R.addClass)(S,"showSweetAlert"),(0,R.removeClass)(S,"hideSweetAlert"),i.previousActiveElement=D.activeElement,S.querySelector("button.confirm").focus(),setTimeout(function(){(0,R.addClass)(S,"visible")},500);var A=S.getAttribute("data-timer");if("null"!==A&&""!==A){var O=x;S.timeout=setTimeout(function(){O&&"true"===S.getAttribute("data-has-done-function")?O(null):sweetAlert.close()},A)}},r.resetInput=function(){var x=b(),S=L();(0,R.removeClass)(x,"show-input"),S.value=k.default.inputValue,S.setAttribute("type",k.default.inputType),S.setAttribute("placeholder",k.default.inputPlaceholder),I()},r.resetInputError=I,r.fixVerticalPosition=function(){b().style.marginTop=(0,R.getTopMargin)(b())}},{"./default-params":1,"./handle-dom":3,"./injected-html":6}],6:[function(F,l,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert" tabIndex="-1"><div class="sa-icon sa-error">
1\n <span class="sa-x-mark">\n <span class="sa-line sa-left"></span>\n <span class="sa-line sa-right"></span>\n </span>\n </div><div class="sa-icon sa-warning">\n <span class="sa-body"></span>\n <span class="sa-dot"></span>\n </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n <span class="sa-line sa-tip"></span>\n <span class="sa-line sa-long"></span>\n\n <div class="sa-placeholder"></div>\n <div class="sa-fix"></div>\n </div><div class="sa-icon sa-custom"></div><h2>Title</h2>\n <p class="lead text-muted">Text</p>\n <div class="form-group">\n <input type="text" class="form-control" tabIndex="3" />\n <span class="sa-input-error help-block">\n <span class="glyphicon glyphicon-exclamation-sign"></span> <span class="sa-help-text">Not valid</span>\n </span>\n </div><div class="sa-button-container">\n <button class="cancel btn btn-lg" tabIndex="2">Cancel</button>\n <div class="sa-confirm-button-container">\n <button class="confirm btn btn-lg" tabIndex="1">OK</button><div class="la-ball-fall">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n </div></div>'},{}],7:[function(F,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol?"symbol":typeof R},u=F("./utils"),b=F("./handle-swal-dom"),L=F("./handle-dom"),W=["error","warning","info","success","input","prompt"];r.default=function(R){var k=(0,b.getModal)(),N=k.querySelector("h2"),I=k.querySelector("p"),x=k.querySelector("button.cancel"),S=k.querySelector("button.confirm");if(N.innerHTML=R.html?R.title:(0,L.escapeHtml)(R.title).split("\n").join("<br>"),I.innerHTML=R.html?R.text:(0,L.escapeHtml)(R.text||"").split("\n").join("<br>"),R.text&&(0,L.show)(I),R.customClass)(0,L.addClass)(k,R.customClass),k.setAttribute("data-custom-class",R.customClass);else{var A=k.getAttribute("data-custom-class");(0,L.removeClass)(k,A),k.setAttribute("data-custom-class","")}if((0,L.hide)(k.querySelectorAll(".sa-icon")),R.type&&!(0,u.isIE8)()){var O=function(){for(var at=!1,mt=0;mt<W.length;mt++)if(R.type===W[mt]){at=!0;break}if(!at)return logStr("Unknown alert type: "+R.type),{v:!1};var wt=void 0;-1!==["success","error","warning","info"].indexOf(R.type)&&(wt=k.querySelector(".sa-icon.sa-"+R.type),(0,L.show)(wt));var qt=(0,b.getInput)();switch(R.type){case"success":(0,L.addClass)(wt,"animate"),(0,L.addClass)(wt.querySelector(".sa-tip"),"animateSuccessTip"),(0,L.addClass)(wt.querySelector(".sa-long"),"animateSuccessLong");break;case"error":(0,L.addClass)(wt,"animateErrorIcon"),(0,L.addClass)(wt.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":(0,L.addClass)(wt,"pulseWarning"),(0,L.addClass)(wt.querySelector(".sa-body"),"pulseWarningIns"),(0,L.addClass)(wt.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":qt.setAttribute("type",R.inputType),qt.value=R.inputValue,qt.setAttribute("placeholder",R.inputPlaceholder),(0,L.addClass)(k,"show-input"),setTimeout(function(){qt.focus(),qt.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"===(void 0===O?"undefined":a(O)))return O.v}if(R.imageUrl){var H=k.querySelector(".sa-icon.sa-custom");H.style.backgroundImage="url("+R.imageUrl+")",(0,L.show)(H);var z=80,v=80;if(R.imageSize){var tt=R.imageSize.toString().split("x"),ft=tt[0],Rt=tt[1];ft&&Rt?(z=ft,v=Rt):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+R.imageSize)}H.setAttribute("style",H.getAttribute("style")+"width:"+z+"px; height:"+v+"px")}k.setAttribute("data-has-cancel-button",R.showCancelButton),R.showCancelButton?x.style.display="inline-block":(0,L.hide)(x),k.setAttribute("data-has-confirm-button",R.showConfirmButton),R.showConfirmButton?S.style.display="inline-block":(0,L.hide)(S),R.cancelButtonText&&(x.innerHTML=(0,L.escapeHtml)(R.cancelButtonText)),R.confirmButtonText&&(S.innerHTML=(0,L.escapeHtml)(R.confirmButtonText)),S.className="
1confirm btn btn-lg",(0,L.addClass)(k,R.containerClass),(0,L.addClass)(S,R.confirmButtonClass),(0,L.addClass)(x,R.cancelButtonClass),(0,L.addClass)(N,R.titleClass),(0,L.addClass)(I,R.textClass),k.setAttribute("data-allow-outside-click",R.allowOutsideClick),k.setAttribute("data-has-done-function",!!R.doneFunction),k.setAttribute("data-animation",R.animation?"string"==typeof R.animation?R.animation:"pop":"none"),k.setAttribute("data-timer",R.timer)}},{"./handle-dom":3,"./handle-swal-dom":5,"./utils":8}],8:[function(F,l,r){Object.defineProperty(r,"__esModule",{value:!0}),r.extend=function(a,u){for(var b in u)u.hasOwnProperty(b)&&(a[b]=u[b]);return a},r.isIE8=function(){return i.attachEvent&&!i.addEventListener},r.logStr=function(a){i.console&&i.console.log("SweetAlert: "+a)}},{}],9:[function(F,l,r){function a(H){return H&&H.__esModule?H:{default:H}}Object.defineProperty(r,"__esModule",{value:!0});var u,b,L,W,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(H){return typeof H}:function(H){return H&&"function"==typeof Symbol&&H.constructor===Symbol?"symbol":typeof H},k=F("./modules/handle-dom"),N=F("./modules/utils"),I=F("./modules/handle-swal-dom"),x=F("./modules/handle-click"),S=a(F("./modules/handle-key")),A=a(F("./modules/default-params")),O=a(F("./modules/set-params"));r.default=L=W=function(){function H(ae){return z[ae]===K?A.default[ae]:z[ae]}var z=arguments[0];if((0,k.addClass)(D.body,"stop-scrolling"),(0,I.resetInput)(),z===K)return(0,N.logStr)("SweetAlert expects at least 1 attribute!"),!1;var v=(0,N.extend)({},A.default);switch(void 0===z?"undefined":R(z)){case"string":v.title=z,v.text=arguments[1]||"",v.type=arguments[2]||"";break;case"object":if(z.title===K)return(0,N.logStr)('Missing "title" argument!'),!1;for(var tt in v.title=z.title,A.default)v[tt]=H(tt);v.confirmButtonText=v.showCancelButton?"Confirm":A.default.confirmButtonText,v.confirmButtonText=H("confirmButtonText"),v.doneFunction=arguments[1]||null;break;default:return(0,N.logStr)('Unexpected type of argument! Expected "string" or "object", got '+(void 0===z?"undefined":R(z))),!1}(0,O.default)(v),(0,I.fixVerticalPosition)(),(0,I.openModal)(arguments[1]);for(var ft=(0,I.getModal)(),Rt=ft.querySelectorAll("button"),lt=["onclick"],at=function(ae){return(0,x.handleButton)(ae,v,ft)},mt=0;mt<Rt.length;mt++)for(var wt=0;wt<lt.length;wt++){var qt=lt[wt];Rt[mt][qt]=at}(0,I.getOverlay)().onclick=at,u=i.onkeydown,i.onkeydown=function(ae){return(0,S.default)(ae,v,ft)},i.onfocus=function(){setTimeout(function(){b!==K&&(b.focus(),b=K)},0)},W.enableButtons()},L.setDefaults=W.setDefaults=function(H){if(!H)throw new Error("userParams is required");if("object"!==(void 0===H?"undefined":R(H)))throw new Error("userParams has to be a object");(0,N.extend)(A.default,H)},L.close=W.close=function(){var H=(0,I.getModal)();(0,k.fadeOut)((0,I.getOverlay)(),5),(0,k.fadeOut)(H,5),(0,k.removeClass)(H,"showSweetAlert"),(0,k.addClass)(H,"hideSweetAlert"),(0,k.removeClass)(H,"visible");var z=H.querySelector(".sa-icon.sa-success");(0,k.removeClass)(z,"animate"),(0,k.removeClass)(z.querySelector(".sa-tip"),"animateSuccessTip"),(0,k.removeClass)(z.querySelector(".sa-long"),"animateSuccessLong");var v=H.querySelector(".sa-icon.sa-error");(0,k.removeClass)(v,"animateErrorIcon"),(0,k.removeClass)(v.querySelector(".sa-x-mark"),"animateXMark");var tt=H.querySelector(".sa-icon.sa-warning");return(0,k.removeClass)(tt,"pulseWarning"),(0,k.removeClass)(tt.querySelector(".sa-body"),"pulseWarningIns"),(0,k.removeClass)(tt.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var ft=H.getAttribute("data-custom-class");(0,k.removeClass)(H,ft)},300),(0,k.removeClass)(D.body,"stop-scrolling"),i.onkeydown=u,i.previousActiveElement&&i.previousActiveElement.focus(),b=K,clearTimeout(H.timeout),!0},L.showInputError=W.showInputError=function(H){var z=(0,I.getModal)(),v=z.querySelector(".sa-input-error");(0,k.addClass)(v,"show");var tt=z.querySelector(".form-group");(0,k.addClass)(tt,"has-error"),tt.querySelector(".sa-help-text").innerHTML=H,setTimeout(function(){L.enableButtons()}
1,1),z.querySelector("input").focus()},L.resetInputError=W.resetInputError=function(H){if(H&&13===H.keyCode)return!1;var z=(0,I.getModal)(),v=z.querySelector(".sa-input-error");(0,k.removeClass)(v,"show");var tt=z.querySelector(".form-group");(0,k.removeClass)(tt,"has-error")},L.disableButtons=W.disableButtons=function(H){var z=(0,I.getModal)(),v=z.querySelector("button.confirm"),tt=z.querySelector("button.cancel");v.disabled=!0,tt.disabled=!0},L.enableButtons=W.enableButtons=function(H){var z=(0,I.getModal)(),v=z.querySelector("button.confirm"),tt=z.querySelector("button.cancel");v.disabled=!1,tt.disabled=!1},void 0!==i?i.sweetAlert=i.swal=L:(0,N.logStr)("SweetAlert is a frontend module!")},{"./modules/default-params":1,"./modules/handle-click":2,"./modules/handle-dom":3,"./modules/handle-key":4,"./modules/handle-swal-dom":5,"./modules/set-params":7,"./modules/utils":8}]},{},[9]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document),function(i){"function"==typeof define&&define.amd?define(["jquery"],i):i("object"==typeof exports?require("jquery"):jQuery)}(function(i){var D=function(K,F){this.$element=i(K),this.options=i.extend({},D.DEFAULTS,this.dataOptions(),F),this.init()};D.DEFAULTS={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:function(K,F){return K.toFixed(F.decimals)},onUpdate:null,onComplete:null},D.prototype.init=function(){this.value=this.options.from,this.loops=Math.ceil(this.options.speed/this.options.refreshInterval),this.loopCount=0,this.increment=(this.options.to-this.options.from)/this.loops},D.prototype.dataOptions=function(){var K={from:this.$element.data("from"),to:this.$element.data("to"),speed:this.$element.data("speed"),refreshInterval:this.$element.data("refresh-interval"),decimals:this.$element.data("decimals")},F=Object.keys(K);for(var l in F){var r=F[l];void 0===K[r]&&delete K[r]}return K},D.prototype.update=function(){this.value+=this.increment,this.loopCount++,this.render(),"function"==typeof this.options.onUpdate&&this.options.onUpdate.call(this.$element,this.value),this.loopCount>=this.loops&&(clearInterval(this.interval),this.value=this.options.to,"function"==typeof this.options.onComplete&&this.options.onComplete.call(this.$element,this.value))},D.prototype.render=function(){var K=this.options.formatter.call(this.$element,this.value,this.options);this.$element.text(K)},D.prototype.restart=function(){this.stop(),this.init(),this.start()},D.prototype.start=function(){this.stop(),this.render(),this.interval=setInterval(this.update.bind(this),this.options.refreshInterval)},D.prototype.stop=function(){this.interval&&clearInterval(this.interval)},D.prototype.toggle=function(){this.interval?this.stop():this.start()},i.fn.countTo=function(K){return this.each(function(){var F=i(this),l=F.data("countTo"),r="object"==typeof K?K:{},a="string"==typeof K?K:"start";l&&"object"!=typeof K||(l&&l.stop(),F.data("countTo",l=new D(this,r))),l[a].call(l)})}}),function(i,D,K){var F;F=function(l){"use strict";var r,a,u,b,L,W,R,k,N,I,x,S,A,O,H,z,v,tt,ft,Rt,lt,at,mt,wt,qt,ae,ye,he,Te,Ne={},Ot=0;r=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:K,normalRangeMax:K,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:K,chartRangeMax:K,chartRangeMinX:K,chartRangeMaxX:K,tooltipFormat:new u('<span style="color: {{color}}">●</span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:K,nullColor:K,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:K,chartRangeMin:K,chartRangeClip:!1,colorMap:K,tooltipFormat:new u('<span style="color: {{color}}">●</span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new u('<span style="color: {{color}}">●</span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:K,thresholdValue:0,chartRangeMax:K,chartRangeMin:K,chartRangeClip:!1,tooltipFormat:new u("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:K,tooltipFormat:new u("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new u('<span style="color: {{color}}">●</span> {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:K,targetColor:"#4a2",chartRangeMax:K,chartRangeMin:K,tooltipFormat:new u("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},a=function(){var w,Y;return w=function(){this.init.apply(this,arguments)},1<arguments.length?(arguments[0]?(w.prototype=l.extend(new arguments[0],arguments[arguments.length-1]),w._super=arguments[0].prototype):w.prototype=arguments[arguments.length-1],2<arguments.length&&((Y=Array.prototype.slice.call(arguments,1,-1)).unshift(w.prototype),l.extend.apply(l,Y))):w.prototype=arguments[0],w.prototype.cls=w},l.SPFormatClass=u=a({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(w,Y){this.format=w,this.fclass=Y},render:function(w,Y,V){var it,yt,It,Lt,Ut,de=this,be=w;return this.format.replace(this.fre,function(){return It=arguments[3],(it=de.precre.exec(yt=arguments[1]))?(Ut=it[2],yt=it[1]):Ut=!1,(Lt=be[yt])===K?"":It&&Y&&Y[It]?Y[It].get?Y[It].get(Lt)||Lt:Y[It][Lt]||Lt:(N(Lt)&&(Lt=V.get("numberFormatter")?V.get("numberFormatter")(Lt):A(Lt,Ut,V.get("numberDigitGroupCount"),
1V.get("numberDigitGroupSep"),V.get("numberDecimalMark"))),Lt)})}}),l.spformat=function(w,Y){return new u(w,Y)},b=function(w,Y,V){return w<Y?Y:V<w?V:w},L=function(w,Y){var V;return 2===Y?(V=D.floor(w.length/2),w.length%2?w[V]:(w[V-1]+w[V])/2):w.length%2?(V=(w.length*Y+Y)/4)%1?(w[D.floor(V)]+w[D.floor(V)-1])/2:w[V-1]:(V=(w.length*Y+2)/4)%1?(w[D.floor(V)]+w[D.floor(V)-1])/2:w[V-1]},W=function(w){var Y;switch(w){case"undefined":w=K;break;case"null":w=null;break;case"true":w=!0;break;case"false":w=!1;break;default:w==(Y=parseFloat(w))&&(w=Y)}return w},R=function(w){var Y,V=[];for(Y=w.length;Y--;)V[Y]=W(w[Y]);return V},k=function(w,Y){var V,it,yt=[];for(V=0,it=w.length;V<it;V++)w[V]!==Y&&yt.push(w[V]);return yt},N=function(w){return!isNaN(parseFloat(w))&&isFinite(w)},A=function(w,Y,V,it,yt){var It,Lt;for(w=(!1===Y?parseFloat(w).toString():w.toFixed(Y)).split(""),(It=(It=l.inArray(".",w))<0?w.length:It)<w.length&&(w[It]=yt),Lt=It-V;0<Lt;Lt-=V)w.splice(Lt,0,it);return w.join("")},I=function(w,Y,V){var it;for(it=Y.length;it--;)if((!V||null!==Y[it])&&Y[it]!==w)return!1;return!0},S=function(w){return l.isArray(w)?w:[w]},x=function(w){var Y,V;if(i.createStyleSheet)try{return void(i.createStyleSheet().cssText=w)}catch(it){V=!0}(Y=i.createElement("style")).type="text/css",i.getElementsByTagName("head")[0].appendChild(Y),V?i.styleSheets[i.styleSheets.length-1].cssText=w:Y["string"==typeof i.body.style.WebkitAppearance?"innerText":"innerHTML"]=w},l.fn.simpledraw=function(w,Y,V,it){var yt,It;if(V&&(yt=this.data("_jqs_vcanvas")))return yt;if(!1===l.fn.sparkline.canvas)return!1;if(l.fn.sparkline.canvas===K){var Lt=i.createElement("canvas");if(Lt.getContext&&Lt.getContext("2d"))l.fn.sparkline.canvas=function(Ut,de,be,dt){return new ye(Ut,de,be,dt)};else{if(!i.namespaces||i.namespaces.v)return l.fn.sparkline.canvas=!1;i.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),l.fn.sparkline.canvas=function(Ut,de,be,dt){return new he(Ut,de,be)}}}return w===K&&(w=l(this).innerWidth()),Y===K&&(Y=l(this).innerHeight()),yt=l.fn.sparkline.canvas(w,Y,this,it),(It=l(this).data("_jqs_mhandler"))&&It.registerCanvas(yt),yt},l.fn.cleardraw=function(){var w=this.data("_jqs_vcanvas");w&&w.reset()},l.RangeMapClass=O=a({init:function(w){var Y,V,it=[];for(Y in w)w.hasOwnProperty(Y)&&"string"==typeof Y&&-1<Y.indexOf(":")&&((V=Y.split(":"))[0]=0===V[0].length?-1/0:parseFloat(V[0]),V[1]=0===V[1].length?1/0:parseFloat(V[1]),V[2]=w[Y],it.push(V));this.map=w,this.rangelist=it||!1},get:function(w){var Y,V,it,yt=this.rangelist;if((it=this.map[w])!==K)return it;if(yt)for(Y=yt.length;Y--;)if((V=yt[Y])[0]<=w&&V[1]>=w)return V[2];return K}}),l.range_map=function(w){return new O(w)},H=a({init:function(w,Y){var V=l(w);this.$el=V,this.options=Y,this.currentPageX=0,this.currentPageY=0,this.el=w,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!Y.get("disableTooltips"),this.highlightEnabled=!Y.get("disableHighlight")},registerSparkline:function(w){this.splist.push(w),this.over&&this.updateDisplay()},registerCanvas:function(w){var Y=l(w.canvas);
1this.canvas=w,(this.$canvas=Y).mouseenter(l.proxy(this.mouseenter,this)),Y.mouseleave(l.proxy(this.mouseleave,this)),Y.click(l.proxy(this.mouseclick,this))},reset:function(w){this.splist=[],this.tooltip&&w&&(this.tooltip.remove(),this.tooltip=K)},mouseclick:function(w){var Y=l.Event("sparklineClick");Y.originalEvent=w,Y.sparklines=this.splist,this.$el.trigger(Y)},mouseenter:function(w){l(i.body).unbind("mousemove.jqs"),l(i.body).bind("mousemove.jqs",l.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=w.pageX,this.currentPageY=w.pageY,this.currentEl=w.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new z(this.options),this.tooltip.updatePosition(w.pageX,w.pageY)),this.updateDisplay()},mouseleave:function(){l(i.body).unbind("mousemove.jqs");var w,Y=this.splist,V=Y.length,it=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),w=0;w<V;w++)Y[w].clearRegionHighlight()&&(it=!0);it&&this.canvas.render()},mousemove:function(w){this.currentPageX=w.pageX,this.currentPageY=w.pageY,this.currentEl=w.target,this.tooltip&&this.tooltip.updatePosition(w.pageX,w.pageY),this.updateDisplay()},updateDisplay:function(){var w,Y,V,it,yt=this.splist,It=yt.length,Lt=!1,Ut=this.$canvas.offset(),de=this.currentPageX-Ut.left,be=this.currentPageY-Ut.top;if(this.over){for(Y=0;Y<It;Y++)(V=yt[Y].setRegionHighlight(this.currentEl,de,be))&&(Lt=!0);if(Lt){if((it=l.Event("sparklineRegionChange")).sparklines=this.splist,this.$el.trigger(it),this.tooltip){for(w="",Y=0;Y<It;Y++)w+=yt[Y].getCurrentRegionTooltip();this.tooltip.setContent(w)}this.disableHighlight||this.canvas.render()}null===V&&this.mouseleave()}}}),z=a({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(w){var Y,V=w.get("tooltipClassname","jqstooltip"),it=this.sizeStyle;this.container=w.get("tooltipContainer")||i.body,this.tooltipOffsetX=w.get("tooltipOffsetX",10),this.tooltipOffsetY=w.get("tooltipOffsetY",12),l("#jqssizetip").remove(),l("#jqstooltip").remove(),this.sizetip=l("<div/>",{id:"jqssizetip",style:it,class:V}),this.tooltip=l("<div/>",{id:"jqstooltip",class:V}).appendTo(this.container),Y=this.tooltip.offset(),this.offsetLeft=Y.left,this.offsetTop=Y.top,this.hidden=!0,l(window).unbind("resize.jqs scroll.jqs"),l(window).bind("resize.jqs scroll.jqs",l.proxy(this.updateWindowDims,this)),this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=l(window).scrollTop(),this.scrollLeft=l(window).scrollLeft(),this.scrollRight=this.scrollLeft+l(window).width(),this.updatePosition()},getSize:function(w){this.sizetip.html(w).appendTo(this.container),this.width=this.sizetip.width()+1,this.height=this.sizetip.height(),this.sizetip.remove()},setContent:function(w){if(!w)return this.tooltip.css("visibility","hidden"),void(this.hidden=!0);this.getSize(w),this.tooltip.html(w).css({width:this.width,height:this.height,visibility:"visible"}),this.hidden&&(this.hidden=!1,this.updatePosition())},updatePosition:function(w,Y){if(w===K){if(this.mousex===K)return;w=this.mousex-this.offsetLeft,Y=this.mousey-this.offsetTop}else this.mousex=w-=this.offsetLeft,this.mousey=Y-=this.offsetTop;this.height&&this.width&&!this.hidden&&((Y-=this.height+this.tooltipOffsetY)<this.scrollTop&&(Y=this.scrollTop),(w+=this.tooltipOffsetX)<this.scrollLeft?w=this.scrollLeft:w+this.width>this.scrollRight&&(w=this.scrollRight-this.width),this.tooltip.css({left:w,top:Y}))},remove:function(){this.tooltip.remove(),this.sizetip.remove(),this.sizetip=this.tooltip=K,l(window).unbind("resize.jqs scroll.jqs")}}),l(function(){x('.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;box-sizing: content-box;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}')}),Te=[],l.fn.sparkline=function(w,Y){return this.each(function(){var V,it,yt=new l.fn.sparkline.options(this,Y),It=l(this);if(V=function(){var Lt,Ut,de,be,dt,Ht,Gt;Lt="html"===w||w===K?((Gt=this.getAttribute(yt.get("tagValuesAttribute")))!==K&&null!==Gt||(Gt=It.html()),Gt.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):w,Ut="auto"===yt.get("width")?Lt.length*yt.get("defaultPixelsPerValue"):yt.get("width"),"auto"===yt.get("height")?yt.get("composite")&&l.data(this,"_jqs_vcanvas")||((be=i.createElement("span")).innerHTML="a",It.html(be),de=l(be).innerHeight()||l(be).height(),l(be).remove(),be=null):de=yt.get("height"),yt.get("disableInteraction")?dt=!1:(dt=l.data(this,"_jqs_mhandler"))?yt.get("composite")||dt.reset():(dt=new H(this,yt),l.data(this,"_jqs_mhandler",dt)),!yt.get("composite")||l.data(this,"_jqs_vcanvas")?((Ht=new(l.fn.sparkline[yt.get("type")])(this,Lt,yt,Ut,de)).render(),dt&&dt.registerSparkline(Ht)):l.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),l.data(this,"_jqs_errnotify",!0))},l(this).html()&&!yt.get("disableHiddenCheck")&&l(this).is(":hidden")||!l(this).parents("body").length){if(!yt.get("composite")&&l.data(this,"_jqs_pending"))for(it=Te.length;it;it--)Te[it-1][0]==this&&Te.splice(it-1,1);Te.push([this,V]),l.data(this,"_jqs_pending",!0)}else V.call(this)})},l.fn.sparkline.defaults=r(),l.sparkline_display_visible=function(){var w,Y,V,it=[];for(Y=0,V=Te.length;Y<V;Y++)l(w=Te[Y][0]).is(":visible")&&!l(w).parents().is(":hidden")?(Te[Y][1].call(w),l.data(Te[Y][0],"_jqs_pending",!1),it.push(Y)):l(w).closest("html").length||l.data(w,"_jqs_pending")||(l.data(Te[Y][0],"_jqs_pending",!1),it.push(Y));for(Y=it.length;Y;Y--)Te.splice(it[Y-1],1)},l.fn.sparkline.options=a({init:function(w,Y){var V,it,yt,It;this.userOptions=Y=Y||{},this.tag=w,this.tagValCache={},yt=(it=l.fn.sparkline.defaults).common,this.tagOptionsPrefix=Y.enableTagOptions&&(Y.tagOptionsPrefix||yt.tagOptionsPrefix),V=(It=this.getTagSetting("type"))===Ne?it[Y.type||yt.type]:it[It],this.mergedOptions=l.extend({},yt,V,Y)},getTagSetting:function(w){var Y,V,it,yt,It=this.tagOptionsPrefix;if(!1===It||It===K)return Ne;if(this.tagValCache.hasOwnProperty(w))Y=this.tagValCache.key;else{if((Y=this.tag.getAttribute(It+w))===K||null===Y)Y=Ne;else if("["===Y.substr(0,1))for(V=(Y=Y.substr(1,Y.length-2).split(",")).length;V--;)Y[V]=W(Y[V].replace(/(^\s*)|(\s*$)/g,""));else if("{"===Y.substr(0,1))for(it=Y.substr(1,Y.length-2).split(","),Y={},V=it.length;V--;)Y[(yt=it[V].split(":",2))[0].replace(/(^\s*)|(\s*$)/g,"")]=W(yt[1].replace(/(^\s*)|(\s*$)/g,""));else Y=W(Y);this.tagValCache.key=Y}return Y},get:function(w,Y){var V,it=this.getTagSetting(w);return it!==Ne?it:(V=this.mergedOptions[w])===K?Y:V}}),l.fn.sparkline._base=a({disabled:!1,init:function(w,Y,V,it,yt){this.el=w,this.$el=l(w),this.values=Y,this.options=V,this.width=it,this.height=yt,this.currentRegion=K},initTarget:function(){var w=!this.options.get("disableInteraction");(this.target=this.$el.simpledraw(this.width,this.height,this.options.get("composite"),w))?(this.canvasWidth=this.target.pixelWidth,this.canvasHeight=this.target.pixelHeight):this.disabled=!0}
1,render:function(){return!this.disabled||(this.el.innerHTML="",!1)},getRegion:function(w,Y){},setRegionHighlight:function(w,Y,V){var it,yt=this.currentRegion,It=!this.options.get("disableHighlight");return Y>this.canvasWidth||V>this.canvasHeight||Y<0||V<0?null:yt!==(it=this.getRegion(w,Y,V))&&(yt!==K&&It&&this.removeHighlight(),(this.currentRegion=it)!==K&&It&&this.renderHighlight(),!0)},clearRegionHighlight:function(){return this.currentRegion!==K&&(this.removeHighlight(),!(this.currentRegion=K))},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(w){},getCurrentRegionTooltip:function(){var w,Y,V,it,yt,It,Lt,Ut,de,dt,Ht,Gt,ge,zt=this.options,Ee="",ze=[];if(this.currentRegion===K)return"";if(w=this.getCurrentRegionFields(),dt=zt.get("tooltipFormatter"))return dt(this,zt,w);if(zt.get("tooltipChartTitle")&&(Ee+='<div class="jqs jqstitle">'+zt.get("tooltipChartTitle")+"</div>\n"),!(Y=this.options.get("tooltipFormat")))return"";if(l.isArray(Y)||(Y=[Y]),l.isArray(w)||(w=[w]),Lt=this.options.get("tooltipFormatFieldlist"),Ut=this.options.get("tooltipFormatFieldlistKey"),Lt&&Ut){for(de=[],It=w.length;It--;)-1!=(ge=l.inArray(w[It][Ut],Lt))&&(de[ge]=w[It]);w=de}for(V=Y.length,Gt=w.length,It=0;It<V;It++)for("string"==typeof(Ht=Y[It])&&(Ht=new u(Ht)),it=Ht.fclass||"jqsfield",ge=0;ge<Gt;ge++)w[ge].isNull&&zt.get("tooltipSkipNull")||(l.extend(w[ge],{prefix:zt.get("tooltipPrefix"),suffix:zt.get("tooltipSuffix")}),yt=Ht.render(w[ge],zt.get("tooltipValueLookups"),zt),ze.push('<div class="'+it+'">'+yt+"</div>"));return ze.length?Ee+ze.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(w,Y){var V,it,yt,It,Lt=Y.get("highlightColor"),Ut=Y.get("highlightLighten");if(Lt)return Lt;if(Ut&&(V=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(w)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(w))){for(yt=[],it=4===w.length?16:1,It=0;It<3;It++)yt[It]=b(D.round(parseInt(V[It+1],16)*it*Ut),0,255);return"rgb("+yt.join(",")+")"}return w}}),v={changeHighlight:function(w){var Y,V=this.currentRegion,it=this.target,yt=this.regionShapes[V];yt&&(Y=this.renderRegion(V,w),l.isArray(Y)||l.isArray(yt)?(it.replaceWithShapes(yt,Y),this.regionShapes[V]=l.map(Y,function(It){return It.id})):(it.replaceWithShape(yt,Y),this.regionShapes[V]=Y.id))},render:function(){var w,Y,V,it,yt=this.values,It=this.target,Lt=this.regionShapes;if(this.cls._super.render.call(this)){for(V=yt.length;V--;)if(w=this.renderRegion(V))if(l.isArray(w)){for(Y=[],it=w.length;it--;)w[it].append(),Y.push(w[it].id);Lt[V]=Y}else w.append(),Lt[V]=w.id;else Lt[V]=null;It.render()}}},l.fn.sparkline.line=tt=a(l.fn.sparkline._base,{type:"line",init:function(w,Y,V,it,yt){tt._super.init.call(this,w,Y,V,it,yt),this.vertices=[],this.regionMap=[],this.xvalues=[],this.yvalues=[],this.yminmax=[],this.hightlightSpotId=null,this.lastShapeId=null,this.initTarget()},getRegion:function(w,Y,V){var it,yt=this.regionMap;for(it=yt.length;it--;)if(null!==yt[it]&&Y>=yt[it][0]&&Y<=yt[it][1])return yt[it][2];return K},getCurrentRegionFields:function(){var w=this.currentRegion;return{isNull:null===this.yvalues[w],x:this.xvalues[w],y:this.yvalues[w],color:this.options.get("lineColor"),fillColor:this.options.get("fillColor"),offset:w}},renderHighlight:function(){var w,Y,it=this.target,yt=this.vertices[this.currentRegion],It=this.options,Lt=It.get("spotRadius"),Ut=It.get("highlightSpotColor"),de=It.get("highlightLineColor");yt&&(Lt&&Ut&&(w=it.drawCircle(yt[0],yt[1],Lt,K,Ut),this.highlightSpotId=w.id,it.insertAfterShape(this.lastShapeId,w)),de&&(Y=it.drawLine(yt[0],this.canvasTop,yt[0],this.canvasTop+this.canvasHeight,de),this.highlightLineId=Y.id,it.insertAfterShape(this.lastShapeId,Y)))},removeHighlight:function(){var w=this.target;this.highlightSpotId&&(w.removeShapeId(this.highlightSpotId),this.highlightSpotId=null),this.highlightLineId&&(w.removeShapeId(this.highlightLineId),this.highlightLineId=null)},scanValues:function(){var w,Y,V,it,yt,It=this.values,Lt=It.length,Ut=this.xvalues,de=this.yvalues,be=this.yminmax;for(w=0;w<Lt;w++)Y=It[w],V="string"==typeof It[w],it="object"==typeof It[w]&&It[w]instanceof Array,yt=V&&It[w].split(":"),V&&2===yt.length?(Ut.push(Number(yt[0])),de.push(Number(yt[1])),be.push(Number(yt[1]))):it?(Ut.push(Y[0]),de.push(Y[1]),be.push(Y[1])):(Ut.push(w),null===It[w]||"null"===It[w]?de.push(null):(de.push(Number(Y)),be.push(Number(Y))));this.options.get("xvalues")&&(Ut=this.options.get("xvalues")),this.maxy=this.maxyorg=D.max.apply(D,be),this.miny=this.minyorg=D.min.apply(D,be),this.maxx=D.max.apply(D,Ut),this.minx=D.min.apply(D,Ut),this.xvalues=Ut,this.yvalues=de,this.yminmax=be},processRangeOptions:function(){var w=this.options,Y=w.get("normalRangeMin"),V=w.get("normalRangeMax");
1Y!==K&&(Y<this.miny&&(this.miny=Y),V>this.maxy&&(this.maxy=V)),w.get("chartRangeMin")!==K&&(w.get("chartRangeClip")||w.get("chartRangeMin")<this.miny)&&(this.miny=w.get("chartRangeMin")),w.get("chartRangeMax")!==K&&(w.get("chartRangeClip")||w.get("chartRangeMax")>this.maxy)&&(this.maxy=w.get("chartRangeMax")),w.get("chartRangeMinX")!==K&&(w.get("chartRangeClipX")||w.get("chartRangeMinX")<this.minx)&&(this.minx=w.get("chartRangeMinX")),w.get("chartRangeMaxX")!==K&&(w.get("chartRangeClipX")||w.get("chartRangeMaxX")>this.maxx)&&(this.maxx=w.get("chartRangeMaxX"))},drawNormalRange:function(w,Y,V,it,yt){var It=this.options.get("normalRangeMin"),Lt=this.options.get("normalRangeMax"),Ut=Y+D.round(V-V*((Lt-this.miny)/yt)),de=D.round(V*(Lt-It)/yt);this.target.drawRect(w,Ut,it,de,K,this.options.get("normalRangeColor")).append()},render:function(){var w,Y,V,it,yt,It,Lt,Ut,de,be,dt,Ht,Gt,ge,zt,Ee,ze,Xe,Tt,$t,ee,ne,xe,ue,fe=this.options,Le=this.target,e=this.canvasWidth,s=this.canvasHeight,d=this.vertices,g=fe.get("spotRadius"),C=this.regionMap;if(tt._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),ne=this.xvalues,xe=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(it=yt=0,w=this.maxx-this.minx==0?1:this.maxx-this.minx,Y=this.maxy-this.miny==0?1:this.maxy-this.miny,V=this.yvalues.length-1,g&&(e<4*g||s<4*g)&&(g=0),g&&((($t=fe.get("highlightSpotColor")&&!fe.get("disableInteraction"))||fe.get("minSpotColor")||fe.get("spotColor")&&xe[V]===this.miny)&&(s-=D.ceil(g)),($t||fe.get("maxSpotColor")||fe.get("spotColor")&&xe[V]===this.maxy)&&(s-=D.ceil(g),it+=D.ceil(g)),!$t&&(!fe.get("minSpotColor")&&!fe.get("maxSpotColor")||xe[0]!==this.miny&&xe[0]!==this.maxy)||(yt+=D.ceil(g),e-=D.ceil(g)),($t||fe.get("spotColor")||fe.get("minSpotColor")||fe.get("maxSpotColor")&&(xe[V]===this.miny||xe[V]===this.maxy))&&(e-=D.ceil(g))),s--,fe.get("normalRangeMin")===K||fe.get("drawNormalOnTop")||this.drawNormalRange(yt,it,s,e,Y),Ut=[Lt=[]],Gt=ge=null,zt=xe.length,ue=0;ue<zt;ue++)dt=ne[ue+1],be=xe[ue],ge=(Ht=yt+D.round(e/w*((de=ne[ue])-this.minx)))+((ue<zt-1?yt+D.round(e/w*(dt-this.minx)):e)-Ht)/2,C[ue]=[Gt||0,ge,ue],Gt=ge,null===be?ue&&(null!==xe[ue-1]&&Ut.push(Lt=[]),d.push(null)):(be<this.miny&&(be=this.miny),be>this.maxy&&(be=this.maxy),Lt.length||Lt.push([Ht,it+s]),It=[Ht,it+D.round(s-s*((be-this.miny)/Y))],Lt.push(It),d.push(It));for(Ee=[],ze=[],Xe=Ut.length,ue=0;ue<Xe;ue++)(Lt=Ut[ue]).length&&(fe.get("fillColor")&&(Lt.push([Lt[Lt.length-1][0],it+s]),ze.push(Lt.slice(0)),Lt.pop()),2<Lt.length&&(Lt[0]=[Lt[0][0],Lt[1][1]]),Ee.push(Lt));for(Xe=ze.length,ue=0;ue<Xe;ue++)Le.drawShape(ze[ue],fe.get("fillColor"),fe.get("fillColor")).append();for(fe.get("normalRangeMin")!==K&&fe.get("drawNormalOnTop")&&this.drawNormalRange(yt,it,s,e,Y),Xe=Ee.length,ue=0;ue<Xe;ue++)Le.drawShape(Ee[ue],fe.get("lineColor"),K,fe.get("lineWidth")).append();if(g&&fe.get("valueSpots"))for((Tt=fe.get("valueSpots")).get===K&&(Tt=new O(Tt)),ue=0;ue<zt;ue++)(ee=Tt.get(xe[ue]))&&Le.drawCircle(yt+D.round(e/w*(ne[ue]-this.minx)),it+D.round(s-s*((xe[ue]-this.miny)/Y)),g,K,ee).append();g&&fe.get("spotColor")&&null!==xe[V]&&Le.drawCircle(yt+D.round(e/w*(ne[ne.length-1]-this.minx)),it+D.round(s-s*((xe[V]-this.miny)/Y)),g,K,fe.get("spotColor")).append(),this.maxy!==this.minyorg&&(g&&fe.get("minSpotColor")&&(de=ne[l.inArray(this.minyorg,xe)],Le.drawCircle(yt+D.round(e/w*(de-this.minx)),it+D.round(s-s*((this.minyorg-this.miny)/Y)),g,K,fe.get("minSpotColor")).append()),g&&fe.get("maxSpotColor")&&(de=ne[l.inArray(this.maxyorg,xe)],Le.drawCircle(yt+D.round(e/w*(de-this.minx)),it+D.round(s-s*((this.maxyorg-this.miny)/Y)),g,K,fe.get("maxSpotColor")).append())),this.lastShapeId=Le.getLastShapeId(),this.canvasTop=it,Le.render()}}}),l.fn.sparkline.bar=ft=a(l.fn.sparkline._base,v,{type:"bar",init:function(w,Y,V,it,yt){var It,Lt,Ut,de,be,dt,Ht,Gt,ge,zt,Ee,ze,Xe,Tt,$t,ee,ne,xe,ue,fe,Le,e=parseInt(V.get("barWidth"),10),s=parseInt(V.get("barSpacing"),10),d=V.get("chartRangeMin"),g=V.get("chartRangeMax"),C=V.get("chartRangeClip"),U=1/0,nt=-1/0;for(ft._super.init.call(this,w,Y,V,it,yt),dt=0,Ht=Y.length;dt<Ht;
1dt++)((It="string"==typeof(fe=Y[dt])&&-1<fe.indexOf(":"))||l.isArray(fe))&&($t=!0,It&&(fe=Y[dt]=R(fe.split(":"))),fe=k(fe,null),(Lt=D.min.apply(D,fe))<U&&(U=Lt),nt<(Ut=D.max.apply(D,fe))&&(nt=Ut));this.stacked=$t,this.regionShapes={},this.barWidth=e,this.barSpacing=s,this.totalBarWidth=e+s,this.width=it=Y.length*e+(Y.length-1)*s,this.initTarget(),C&&(Xe=d===K?-1/0:d,Tt=g===K?1/0:g),be=[],de=$t?[]:be;var ut=[],vt=[];for(dt=0,Ht=Y.length;dt<Ht;dt++)if($t)for(ee=Y[dt],Y[dt]=ue=[],ut[dt]=0,de[dt]=vt[dt]=0,ne=0,xe=ee.length;ne<xe;ne++)null!==(fe=ue[ne]=C?b(ee[ne],Xe,Tt):ee[ne])&&(0<fe&&(ut[dt]+=fe),U<0&&0<nt?fe<0?vt[dt]+=D.abs(fe):de[dt]+=fe:de[dt]+=D.abs(fe-(fe<0?nt:U)),be.push(fe));else fe=C?b(Y[dt],Xe,Tt):Y[dt],null!==(fe=Y[dt]=W(fe))&&be.push(fe);this.max=ze=D.max.apply(D,be),this.min=Ee=D.min.apply(D,be),this.stackMax=nt=$t?D.max.apply(D,ut):ze,this.stackMin=U=$t?D.min.apply(D,be):Ee,V.get("chartRangeMin")!==K&&(V.get("chartRangeClip")||V.get("chartRangeMin")<Ee)&&(Ee=V.get("chartRangeMin")),V.get("chartRangeMax")!==K&&(V.get("chartRangeClip")||V.get("chartRangeMax")>ze)&&(ze=V.get("chartRangeMax")),this.zeroAxis=ge=V.get("zeroAxis",!0),this.xaxisOffset=zt=Ee<=0&&0<=ze&&ge?0:0==ge||0<Ee?Ee:ze,Gt=$t?D.max.apply(D,de)+D.max.apply(D,vt):ze-Ee,this.canvasHeightEf=ge&&Ee<0?this.canvasHeight-2:this.canvasHeight-1,Ee<zt?(Le=(($t&&0<=ze?nt:ze)-zt)/Gt*this.canvasHeight)!==D.ceil(Le)&&(this.canvasHeightEf-=2,Le=D.ceil(Le)):Le=this.canvasHeight,this.yoffset=Le,l.isArray(V.get("colorMap"))?(this.colorMapByIndex=V.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=V.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===K&&(this.colorMapByValue=new O(this.colorMapByValue))),this.range=Gt},getRegion:function(w,Y,V){var it=D.floor(Y/this.totalBarWidth);return it<0||it>=this.values.length?K:it},getCurrentRegionFields:function(){var w,Y,V=this.currentRegion,it=S(this.values[V]),yt=[];for(Y=it.length;Y--;)yt.push({isNull:null===(w=it[Y]),value:w,color:this.calcColor(Y,w,V),offset:V});return yt},calcColor:function(w,Y,V){var it,yt,It=this.colorMapByIndex,Lt=this.colorMapByValue,Ut=this.options;return it=Ut.get(this.stacked?"stackedBarColor":Y<0?"negBarColor":"barColor"),0===Y&&Ut.get("zeroColor")!==K&&(it=Ut.get("zeroColor")),Lt&&(yt=Lt.get(Y))?it=yt:It&&It.length>V&&(it=It[V]),l.isArray(it)?it[w%it.length]:it},renderRegion:function(w,Y){var V,it,yt,It,Lt,Ut,de,be,dt,Ht,Gt=this.values[w],ge=this.options,zt=this.xaxisOffset,Ee=[],ze=this.range,Xe=this.stacked,Tt=this.target,$t=w*this.totalBarWidth,ee=this.canvasHeightEf,ne=this.yoffset;if(de=(Gt=l.isArray(Gt)?Gt:[Gt]).length,be=Gt[0],It=I(null,Gt),Ht=I(zt,Gt,!0),It)return ge.get("nullColor")?(yt=Y?ge.get("nullColor"):this.calcHighlightColor(ge.get("nullColor"),ge),Tt.drawRect($t,V=0<ne?ne-1:ne,this.barWidth-1,0,yt,yt)):K;for(Lt=ne,Ut=0;Ut<de;Ut++){if(be=Gt[Ut],Xe&&be===zt){if(!Ht||dt)continue;dt=!0}it=0<ze?D.floor(ee*(D.abs(be-zt)/ze))+1:1,be<zt||be===zt&&0===ne?(V=Lt,Lt+=it):(V=ne-it,ne-=it),yt=this.calcColor(Ut,be,w),Y&&(yt=this.calcHighlightColor(yt,ge)),Ee.push(Tt.drawRect($t,V,this.barWidth-1,it-1,yt,yt))}return 1===Ee.length?Ee[0]:Ee}}),l.fn.sparkline.tristate=Rt=a(l.fn.sparkline._base,v,{type:"tristate",init:function(w,Y,V,it,yt){var It=parseInt(V.get("barWidth"),10),Lt=parseInt(V.get("barSpacing"),10);Rt._super.init.call(this,w,Y,V,it,yt),this.regionShapes={},this.barWidth=It,this.barSpacing=Lt,this.totalBarWidth=It+Lt,this.values=l.map(Y,Number),this.width=it=Y.length*It+(Y.length-1)*Lt,l.isArray(V.get("colorMap"))?(this.colorMapByIndex=V.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=V.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===K&&(this.colorMapByValue=new O(this.colorMapByValue))),this.initTarget()},getRegion:function(w,Y,V){return D.floor(Y/this.totalBarWidth)},getCurrentRegionFields:function(){var w=this.currentRegion;return{isNull:this.values[w]===K,value:this.values[w],color:this.calcColor(this.values[w],w),offset:w}},calcColor:function(w,Y){var V,it=this.values,yt=this.options,It=this.colorMapByIndex,Lt=this.colorMapByValue;return Lt&&(V=Lt.get(w))?V:It&&It.length>Y?It[Y]:yt.get(it[Y]<0?"negBarColor":0<it[Y]?"posBarColor":"zeroBarColor")},renderRegion:function(w,Y){var it,yt,It,Lt,Ut,de=this.values,be=this.options,dt=this.target;if(yt=D.round(dt.pixelHeight/2),It=w*this.totalBarWidth,it=de[w]<0?(Lt=yt)-1:0<de[w]?(Lt=0,yt-1):(Lt=yt-1,2),null!==(Ut=this.calcColor(de[w],w)))return Y&&(Ut=this.calcHighlightColor(Ut,be)),dt.drawRect(It,Lt,this.barWidth-1,it-1,Ut,Ut)}}),l.fn.sparkline.discrete=lt=a(l.fn.sparkline._base,v,{type:"discrete",init:function(w,Y,V,it,yt){lt._super.init.call(this,w,Y,V,it,yt),this.regionShapes={},this.values=Y=l.map(Y,Number),this.min=D.min.apply(D,Y),this.max=D.max.apply(D,Y),this.range=this.max-this.min,this.width=it="auto"===V.get("width")?2*Y.length:this.width,this.interval=D.floor(it/Y.length),this.itemWidth=it/Y.length,V.get("chartRangeMin")!==K&&(V.get("chartRangeClip")||V.get("chartRangeMin")<this.min)&&(this.min=V.get("chartRangeMin")),V.get("chartRangeMax")!==K&&(V.get("chartRangeClip")||V.get("chartRangeMax")>this.max)&&(this.max=V.get("chartRangeMax")),this.initTarget(),this.target&&(this.lineHeight="auto"===V.get("lineHeight")?D.round(.3*this.canvasHeight):V.get("lineHeight"))},getRegion:function(w,Y,V){return D.floor(Y/this.itemWidth)},getCurrentRegionFields:function(){var w=this.currentRegion;return{isNull:this.values[w]===K,value:this.values[w],offset:w}},renderRegion:function(w,Y){var V,it,yt,It,Ut=this.options,de=this.min,dt=this.range,Ht=this.interval,Gt=this.target,zt=this.lineHeight,Ee=this.canvasHeight-zt;return it=b(this.values[w],de,this.max),It=w*Ht,V=D.round(Ee-(it-de)/dt*Ee),yt=Ut.get("thresholdColor")&&it<Ut.get("thresholdValue")?Ut.get("thresholdColor"):Ut.get("lineColor"),Y&&(yt=this.calcHighlightColor(yt,Ut)),Gt.drawLine(It,V,It,V+zt,yt)}}),l.fn.sparkline.bullet=at=a(l.fn.sparkline._base,{type:"bullet",init:function(w,Y,V,it,yt){var It,Lt,Ut;at._super.init.call(this,w,Y,V,it,yt),this.values=Y=R(Y),(Ut=Y.slice())[0]=null===Ut[0]?Ut[2]:Ut[0],Ut[1]=null===Y[1]?Ut[2]:Ut[1],It=D.min.apply(D,Y),Lt=D.max.apply(D,Y),It=V.get("base")===K?It<0?It:0:V.get("base"),this.min=It,this.max=Lt,this.range=Lt-It,this.shapes={},this.valueShapes={},this.regiondata={},this.width=it="auto"===V.get("width")?"4.0em":it,this.target=this.$el.simpledraw(it,yt,V.get("composite")),Y.length||(this.disabled=!0),this.initTarget()},getRegion:function(w,Y,V){var it=this.target.getShapeAt(w,Y,V);return it!==K&&this.shapes[it]!==K?this.shapes[it]:K},getCurrentRegionFields:function(){var w=this.currentRegion;return{fieldkey:w.substr(0,1),value:this.values[w.substr(1)],region:w}},changeHighlight:function(w){var Y,V=this.currentRegion,it=this.valueShapes[V];switch(delete this.shapes[it],V.substr(0,1)){case"r":Y=this.renderRange(V.substr(1),w);break;case"p":Y=this.renderPerformance(w);break;case"t":Y=this.renderTarget(w)}this.valueShapes[V]=Y.id,this.shapes[Y.id]=V,this.target.replaceWithShape(it,Y)},renderRange:function(w,Y){var it=D.round(this.canvasWidth*((this.values[w]-this.min)/this.range)),yt=this.options.get("rangeColors")[w-2];return Y&&(yt=this.calcHighlightColor(yt,this.options)),this.target.drawRect(0,0,it-1,this.canvasHeight-1,yt,yt)},renderPerformance:function(w){var V=D.round(this.canvasWidth*((this.values[1]-this.min)/this.range)),it=this.options.get("performanceColor");return w&&(it=this.calcHighlightColor(it,this.options)),this.target.drawRect(0,D.round(.3*this.canvasHeight),V-1,D.round(.4*this.canvasHeight)-1,it,it)},renderTarget:function(w){var V=D.round(this.canvasWidth*((this.values[0]-this.min)/this.range)-this.options.get("targetWidth")/2),it=D.round(.1*this.canvasHeight),yt=this.canvasHeight-2*it,It=this.options.get("targetColor");return w&&(It=this.calcHighlightColor(It,this.options)),this.target.drawRect(V,it,this.options.get("targetWidth")-1,yt-1,It,It)},render:function(){var w,Y,V=this.values.length,it=this.target;if(at._super.render.call(this)){for(w=2;w<V;w++)Y=this.renderRange(w).append(),this.shapes[Y.id]="r"+w,this.valueShapes["r"+w]=Y.id;null!==this.values[1]&&(Y=this.renderPerformance().append(),this.shapes[Y.id]="p1",this.valueShapes.p1=Y.id),null!==this.values[0]&&(Y=this.renderTarget().append(),this.shapes[Y.id]="t0",this.valueShapes.t0=Y.id),it.render()}}}),l.fn.sparkline.pie=mt=a(l.fn.sparkline._base,{type:"pie",init:function(w,Y,V,it,yt){var It,Lt=0;
1if(mt._super.init.call(this,w,Y,V,it,yt),this.shapes={},this.valueShapes={},this.values=Y=l.map(Y,Number),"auto"===V.get("width")&&(this.width=this.height),0<Y.length)for(It=Y.length;It--;)Lt+=Y[It];this.total=Lt,this.initTarget(),this.radius=D.floor(D.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(w,Y,V){var it=this.target.getShapeAt(w,Y,V);return it!==K&&this.shapes[it]!==K?this.shapes[it]:K},getCurrentRegionFields:function(){var w=this.currentRegion;return{isNull:this.values[w]===K,value:this.values[w],percent:this.values[w]/this.total*100,color:this.options.get("sliceColors")[w%this.options.get("sliceColors").length],offset:w}},changeHighlight:function(w){var Y=this.currentRegion,V=this.renderSlice(Y,w),it=this.valueShapes[Y];delete this.shapes[it],this.target.replaceWithShape(it,V),this.valueShapes[Y]=V.id,this.shapes[V.id]=Y},renderSlice:function(w,Y){var V,it,yt,It,Lt,Ut=this.target,de=this.options,be=this.radius,dt=de.get("borderWidth"),Ht=de.get("offset"),Gt=2*D.PI,ge=this.values,zt=this.total,Ee=Ht?2*D.PI*(Ht/360):0;for(It=ge.length,yt=0;yt<It;yt++){if(it=V=Ee,0<zt&&(it=Ee+Gt*(ge[yt]/zt)),w===yt)return Lt=de.get("sliceColors")[yt%de.get("sliceColors").length],Y&&(Lt=this.calcHighlightColor(Lt,de)),Ut.drawPieSlice(be,be,be-dt,V,it,K,Lt);Ee=it}},render:function(){var w,Y,V=this.target,it=this.values,yt=this.options,It=this.radius,Lt=yt.get("borderWidth"),Ut=yt.get("donutWidth");if(mt._super.render.call(this)){for(Lt&&V.drawCircle(It,It,D.floor(It-Lt/2),yt.get("borderColor"),K,Lt).append(),Y=it.length;Y--;)it[Y]&&(w=this.renderSlice(Y).append(),this.valueShapes[Y]=w.id,this.shapes[w.id]=Y);Ut&&V.drawCircle(It,It,It-Ut,yt.get("donutColor"),yt.get("donutColor"),0).append(),V.render()}}}),l.fn.sparkline.box=wt=a(l.fn.sparkline._base,{type:"box",init:function(w,Y,V,it,yt){wt._super.init.call(this,w,Y,V,it,yt),this.values=l.map(Y,Number),this.width="auto"===V.get("width")?"4.0em":it,this.initTarget(),this.values.length||(this.disabled=1)},getRegion:function(){return 1},getCurrentRegionFields:function(){var w=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];return this.loutlier!==K&&w.push({field:"lo",value:this.loutlier}),this.routlier!==K&&w.push({field:"ro",value:this.routlier}),this.lwhisker!==K&&w.push({field:"lw",value:this.lwhisker}),this.rwhisker!==K&&w.push({field:"rw",value:this.rwhisker}),w},render:function(){var w,Y,V,it,yt,It,Lt,Ut,de,be,dt,Ht=this.target,Gt=this.values,ge=Gt.length,zt=this.options,Ee=this.canvasWidth,ze=this.canvasHeight,Xe=zt.get("chartRangeMin")===K?D.min.apply(D,Gt):zt.get("chartRangeMin"),Tt=zt.get("chartRangeMax")===K?D.max.apply(D,Gt):zt.get("chartRangeMax"),$t=0;if(wt._super.render.call(this)){if(zt.get("raw"))zt.get("showOutliers")&&5<Gt.length?(Y=Gt[0],w=Gt[1],it=Gt[2],yt=Gt[3],It=Gt[4],Lt=Gt[5],Ut=Gt[6]):(w=Gt[0],it=Gt[1],yt=Gt[2],It=Gt[3],Lt=Gt[4]);else if(Gt.sort(function(ee,ne){return ee-ne}),it=L(Gt,1),yt=L(Gt,2),V=(It=L(Gt,3))-it,zt.get("showOutliers")){for(w=Lt=K,de=0;de<ge;de++)w===K&&Gt[de]>it-V*zt.get("outlierIQR")&&(w=Gt[de]),Gt[de]<It+V*zt.get("outlierIQR")&&(Lt=Gt[de]);Y=Gt[0],Ut=Gt[ge-1]}else w=Gt[0],Lt=Gt[ge-1];this.quartiles=[it,yt,It],this.lwhisker=w,this.rwhisker=Lt,this.loutlier=Y,this.routlier=Ut,dt=Ee/(Tt-Xe+1),zt.get("showOutliers")&&($t=D.ceil(zt.get("spotRadius")),dt=(Ee-=2*D.ceil(zt.get("spotRadius")))/(Tt-Xe+1),Y<w&&Ht.drawCircle((Y-Xe)*dt+$t,ze/2,zt.get("spotRadius"),zt.get("outlierLineColor"),zt.get("outlierFillColor")).append(),Lt<Ut&&Ht.drawCircle((Ut-Xe)*dt+$t,ze/2,zt.get("spotRadius"),zt.get("outlierLineColor"),zt.get("outlierFillColor")).append()),Ht.drawRect(D.round((it-Xe)*dt+$t),D.round(.1*ze),D.round((It-it)*dt),D.round(.8*ze),zt.get("boxLineColor"),zt.get("boxFillColor")).append(),Ht.drawLine(D.round((w-Xe)*dt+$t),D.round(ze/2),D.round((it-Xe)*dt+$t),D.round(ze/2),zt.get("lineColor")).append(),Ht.drawLine(D.round((w-Xe)*dt+$t),D.round(ze/4),D.round((w-Xe)*dt+$t),D.round(ze-ze/4),zt.get("whiskerColor")).append(),Ht.drawLine(D.round((Lt-Xe)*dt+$t),D.round(ze/2),D.round((It-Xe)*dt+$t),D.round(ze/2),zt.get("lineColor")).append(),Ht.drawLine(D.round((Lt-Xe)*dt+$t),D.round(ze/4),D.round((Lt-Xe)*dt+$t),D.round(ze-ze/4),zt.get("whiskerColor")).append(),Ht.drawLine(D.round((yt-Xe)*dt+$t),D.round(.1*ze),D.round((yt-Xe)*dt+$t),D.round(.9*ze),zt.get("medianColor")).append(),zt.get("target")&&(be=D.ceil(zt.get("spotRadius")),Ht.drawLine(D.round((zt.get("target")-Xe)*dt+$t),D.round(ze/2-be),D.round((zt.get("target")-Xe)*dt+$t),D.round(ze/2+be),zt.get("targetColor")).append(),Ht.drawLine(D.round((zt.get("target")-Xe)*dt+$t-be),D.round(ze/2),D.round((zt.get("target")-Xe)*dt+$t+be),D.round(ze/2),zt.get("targetColor")).append()),Ht.render()}}}),qt=a({init:function(w,Y,V,it){this.target=w,this.id=Y,this.type=V,this.args=it},append:function(){return this.target.appendShape(this),this}}
1),ae=a({_pxregex:/(\d+)(px)?\s*$/i,init:function(w,Y,V){w&&(this.width=w,this.height=Y,this.target=V,this.lastShapeId=null,V[0]&&(V=V[0]),l.data(V,"_jqs_vcanvas",this))},drawLine:function(w,Y,V,it,yt,It){return this.drawShape([[w,Y],[V,it]],yt,It)},drawShape:function(w,Y,V,it){return this._genShape("Shape",[w,Y,V,it])},drawCircle:function(w,Y,V,it,yt,It){return this._genShape("Circle",[w,Y,V,it,yt,It])},drawPieSlice:function(w,Y,V,it,yt,It,Lt){return this._genShape("PieSlice",[w,Y,V,it,yt,It,Lt])},drawRect:function(w,Y,V,it,yt,It){return this._genShape("Rect",[w,Y,V,it,yt,It])},getElement:function(){return this.canvas},getLastShapeId:function(){return this.lastShapeId},reset:function(){alert("reset not implemented")},_insert:function(w,Y){l(Y).html(w)},_calculatePixelDims:function(w,Y,V){var it;it=this._pxregex.exec(Y),this.pixelHeight=it?it[1]:l(V).height(),it=this._pxregex.exec(w),this.pixelWidth=it?it[1]:l(V).width()},_genShape:function(w,Y){var V=Ot++;return Y.unshift(V),new qt(this,V,w,Y)},appendShape:function(w){alert("appendShape not implemented")},replaceWithShape:function(w,Y){alert("replaceWithShape not implemented")},insertAfterShape:function(w,Y){alert("insertAfterShape not implemented")},removeShapeId:function(w){alert("removeShapeId not implemented")},getShapeAt:function(w,Y,V){alert("getShapeAt not implemented")},render:function(){alert("render not implemented")}}),ye=a(ae,{init:function(w,Y,V,it){ye._super.init.call(this,w,Y,V),this.canvas=i.createElement("canvas"),V[0]&&(V=V[0]),l.data(V,"_jqs_vcanvas",this),l(this.canvas).css({display:"inline-block",width:w,height:Y,verticalAlign:"top"}),this._insert(this.canvas,V),this._calculatePixelDims(w,Y,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.interact=it,this.shapes={},this.shapeseq=[],this.currentTargetShapeId=K,l(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(w,Y,V){var it=this.canvas.getContext("2d");return w!==K&&(it.strokeStyle=w),it.lineWidth=V===K?1:V,Y!==K&&(it.fillStyle=Y),it},reset:function(){this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),this.shapes={},this.shapeseq=[],this.currentTargetShapeId=K},_drawShape:function(w,Y,V,it,yt){var It,Lt,Ut=this._getContext(V,it,yt);for(Ut.beginPath(),Ut.moveTo(Y[0][0]+.5,Y[0][1]+.5),It=1,Lt=Y.length;It<Lt;It++)Ut.lineTo(Y[It][0]+.5,Y[It][1]+.5);V!==K&&Ut.stroke(),it!==K&&Ut.fill(),this.targetX!==K&&this.targetY!==K&&Ut.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=w)},_drawCircle:function(w,Y,V,it,yt,It,Lt){var Ut=this._getContext(yt,It,Lt);Ut.beginPath(),Ut.arc(Y,V,it,0,2*D.PI,!1),this.targetX!==K&&this.targetY!==K&&Ut.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=w),yt!==K&&Ut.stroke(),It!==K&&Ut.fill()},_drawPieSlice:function(w,Y,V,it,yt,It,Lt,Ut){var de=this._getContext(Lt,Ut);de.beginPath(),de.moveTo(Y,V),de.arc(Y,V,it,yt,It,!1),de.lineTo(Y,V),de.closePath(),Lt!==K&&de.stroke(),Ut&&de.fill(),this.targetX!==K&&this.targetY!==K&&de.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=w)},_drawRect:function(w,Y,V,it,yt,It,Lt){return this._drawShape(w,[[Y,V],[Y+it,V],[Y+it,V+yt],[Y,V+yt],[Y,V]],It,Lt)},appendShape:function(w){return this.shapes[w.id]=w,this.shapeseq.push(w.id),this.lastShapeId=w.id,w.id},replaceWithShape:function(w,Y){var V,it=this.shapeseq;for(this.shapes[Y.id]=Y,V=it.length;V--;)it[V]==w&&(it[V]=Y.id);delete this.shapes[w]},replaceWithShapes:function(w,Y){var V,it,yt,It=this.shapeseq,Lt={};for(it=w.length;it--;)Lt[w[it]]=!0;for(it=It.length;it--;)Lt[V=It[it]]&&(It.splice(it,1),delete this.shapes[V],yt=it);for(it=Y.length;it--;)It.splice(yt,0,Y[it].id),this.shapes[Y[it].id]=Y[it]},insertAfterShape:function(w,Y){var V,it=this.shapeseq;for(V=it.length;V--;)if(it[V]===w)return it.splice(V+1,0,Y.id),void(this.shapes[Y.id]=Y)},removeShapeId:function(w){var Y,V=this.shapeseq;for(Y=V.length;Y--;)if(V[Y]===w){V.splice(Y,1);break}delete this.shapes[w]},getShapeAt:function(w,Y,V){return this.targetX=Y,this.targetY=V,this.render(),this.currentTargetShapeId},render:function(){var w,Y,V=this.shapeseq,it=this.shapes,yt=V.length;for(this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),Y=0;Y<yt;Y++)this["_draw"+(w=it[V[Y]]).type].apply(this,w.args);this.interact||(this.shapes={},this.shapeseq=[])}}),he=a(ae,{init:function(w,Y,V){he._super.init.call(this,w,Y,V),V[0]&&(V=V[0]),l.data(V,"_jqs_vcanvas",this),this.canvas=i.createElement("span"),l(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",
1width:w,height:Y,margin:"0px",padding:"0px",verticalAlign:"top"}),this._insert(this.canvas,V),this._calculatePixelDims(w,Y,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.canvas.insertAdjacentHTML("beforeEnd",'<v:group coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" style="position:absolute;top:0;left:0;width:'+this.pixelWidth+"px;height="+this.pixelHeight+'px;"></v:group>'),this.group=l(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(w,Y,V,it,yt){var It,de,be,dt,Ht=[];for(dt=0,be=Y.length;dt<be;dt++)Ht[dt]=Y[dt][0]+","+Y[dt][1];return It=Ht.splice(0,1),yt=yt===K?1:yt,de=Ht[0]===Ht[Ht.length-1]?"x ":"",'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+w+'" '+(V===K?' stroked="false" ':' strokeWeight="'+yt+'px" strokeColor="'+V+'" ')+(it===K?' filled="false"':' fillColor="'+it+'" filled="true" ')+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+It+" l "+Ht.join(", ")+" "+de+'e"> </v:shape>'},_drawCircle:function(w,Y,V,it,yt,It,Lt){return'<v:oval id="jqsshape'+w+'" '+(yt===K?' stroked="false" ':' strokeWeight="'+Lt+'px" strokeColor="'+yt+'" ')+(It===K?' filled="false"':' fillColor="'+It+'" filled="true" ')+' style="position:absolute;top:'+(V-=it)+"px; left:"+(Y-=it)+"px; width:"+2*it+"px; height:"+2*it+'px"></v:oval>'},_drawPieSlice:function(w,Y,V,it,yt,It,Lt,Ut){var be,dt,Ht,Gt;if(yt===It)return"";
1if(It-yt==2*D.PI&&(yt=0,It=2*D.PI),be=Y+D.round(D.cos(yt)*it),dt=V+D.round(D.sin(yt)*it),Ht=Y+D.round(D.cos(It)*it),Gt=V+D.round(D.sin(It)*it),be===Ht&&dt===Gt){if(It-yt<D.PI)return"";be=Ht=Y+it,dt=Gt=V}return be===Ht&&dt===Gt&&It-yt<D.PI?"":'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+w+'" '+(Lt===K?' stroked="false" ':' strokeWeight="1px" strokeColor="'+Lt+'" ')+(Ut===K?' filled="false"':' fillColor="'+Ut+'" filled="true" ')+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+Y+","+V+" wa "+[Y-it,V-it,Y+it,V+it,be,dt,Ht,Gt].join(", ")+' x e"> </v:shape>'},_drawRect:function(w,Y,V,it,yt,It,Lt){return this._drawShape(w,[[Y,V],[Y,V+yt],[Y+it,V+yt],[Y+it,V],[Y,V]],It,Lt)},reset:function(){this.group.innerHTML=""},appendShape:function(w){var Y=this["_draw"+w.type].apply(this,w.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",Y):this.prerender+=Y,this.lastShapeId=w.id,w.id},replaceWithShape:function(w,Y){var V=l("#jqsshape"+w),it=this["_draw"+Y.type].apply(this,Y.args);V[0].outerHTML=it},replaceWithShapes:function(w,Y){var V,it=l("#jqsshape"+w[0]),yt="",It=Y.length;for(V=0;V<It;V++)yt+=this["_draw"+Y[V].type].apply(this,Y[V].args);for(it[0].outerHTML=yt,V=1;V<w.length;V++)l("#jqsshape"+w[V]).remove()},insertAfterShape:function(w,Y){var V=l("#jqsshape"+w),it=this["_draw"+Y.type].apply(this,Y.args);V[0].insertAdjacentHTML("afterEnd",it)},removeShapeId:function(w){var Y=l("#jqsshape"+w);this.group.removeChild(Y[0])},getShapeAt:function(w,Y,V){return w.id.substr(8)},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})},"function"==typeof define&&define.amd?define(["jquery"],F):jQuery&&!jQuery.fn.sparkline&&F(jQuery)}(document,Math),function(i,D){"object"==typeof exports&&"undefined"!=typeof module?module.exports=D():"function"==typeof define&&define.amd?define(D):i.moment=D()}(this,function(){"use strict";var i,D;function K(){return i.apply(null,arguments)}function F(T){return T instanceof Array||"[object Array]"===Object.prototype.toString.call(T)}function l(T){return null!=T&&"[object Object]"===Object.prototype.toString.call(T)}function r(T){return void 0===T}function a(T){return"number"==typeof T||"[object Number]"===Object.prototype.toString.call(T)}function u(T){return T instanceof Date||"[object Date]"===Object.prototype.toString.call(T)}function b(T,X){var pt,Et=[];for(pt=0;pt<T.length;++pt)Et.push(X(T[pt],pt));return Et}function L(T,X){return Object.prototype.hasOwnProperty.call(T,X)}function W(T,X){for(var pt in X)L(X,pt)&&(T[pt]=X[pt]);return L(X,"toString")&&(T.toString=X.toString),L(X,"valueOf")&&(T.valueOf=X.valueOf),T}function R(T,X,pt,Et){return xn(T,X,pt,Et,!0).utc()}function k(T){return null==T._pf&&(T._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),T._pf}function N(T){if(null==T._isValid){var X=k(T),pt=D.call(X.parsedDateParts,function(se){return null!=se}),Et=!isNaN(T._d.getTime())&&X.overflow<0&&!X.empty&&!X.invalidMonth&&!X.invalidWeekday&&!X.weekdayMismatch&&!X.nullInput&&!X.invalidFormat&&!X.userInvalidated&&(!X.meridiem||X.meridiem&&pt);if(T._strict&&(Et=Et&&0===X.charsLeftOver&&0===X.unusedTokens.length&&void 0===X.bigHour),null!=Object.isFrozen&&Object.isFrozen(T))return Et;T._isValid=Et}return T._isValid}function I(T){var X=R(NaN);return null!=T?W(k(X),T):k(X).userInvalidated=!0,X}D=Array.prototype.some?Array.prototype.some:function(T){for(var X=Object(this),pt=X.length>>>0,Et=0;Et<pt;Et++)if(Et in X&&T.call(this,X[Et],Et,X))return!0;return!1};var x=K.momentProperties=[];function S(T,X){var pt,Et,se;if(r(X._isAMomentObject)||(T._isAMomentObject=X._isAMomentObject),r(X._i)||(T._i=X._i),r(X._f)||(T._f=X._f),r(X._l)||(T._l=X._l),r(X._strict)||(T._strict=X._strict),r(X._tzm)||(T._tzm=X._tzm),r(X._isUTC)||(T._isUTC=X._isUTC),r(X._offset)||(T._offset=X._offset),r(X._pf)||(T._pf=k(X)),r(X._locale)||(T._locale=X._locale),0<x.length)for(pt=0;pt<x.length;pt++)r(se=X[Et=x[pt]])||(T[Et]=se);return T}var A=!1;function O(T){S(this,T),this._d=new Date(null!=T._d?T._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===A&&(A=!0,K.updateOffset(this),A=!1)}function H(T){return T instanceof O||null!=T&&null!=T._isAMomentObject}function z(T){return T<0?Math.ceil(T)||0:Math.floor(T)}function v(T){var X=+T,pt=0;return 0!=X&&isFinite(X)&&(pt=z(X)),pt}function tt(T,X,pt){var Et,se=Math.min(T.length,X.length),Ae=Math.abs(T.length-X.length),Re=0;for(Et=0;Et<se;Et++)(pt&&T[Et]!==X[Et]||!pt&&v(T[Et])!==v(X[Et]))&&Re++;return Re+Ae}function ft(T){!1===K.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+T)}function Rt(T,X){var pt=!0;return W(function(){if(null!=K.deprecationHandler&&K.deprecationHandler(null,T),pt){for(var Et,se=[],Ae=0;Ae<arguments.length;Ae++){if(Et="","object"==typeof arguments[Ae]){for(var Re in Et+="\n["+Ae+"] ",arguments[0])Et+=Re+": "+arguments[0][Re]+", ";Et=Et.slice(0,-2)}else Et=arguments[Ae];se.push(Et)}ft(T+"\nArguments: "+Array.prototype.slice.call(se).join("")+"\n"+(new Error).stack),pt=!1}return X.apply(this,arguments)},X)}var lt,at={};function mt(T,X){null!=K.deprecationHandler&&K.deprecationHandler(T,X),at[T]||(ft(X),at[T]=!0)}function wt(T){return T instanceof Function||"[object Function]"===Object.prototype.toString.call(T)}function qt(T,X){var pt,Et=W({},T);for(pt in X)L(X,pt)&&(l(T[pt])&&l(X[pt])?(Et[pt]={},W(Et[pt],T[pt]),W(Et[pt],X[pt])):null!=X[pt]?Et[pt]=X[pt]:delete Et[pt]);for(pt in T)L(T,pt)&&!L(X,pt)&&l(T[pt])&&(Et[pt]=W({},Et[pt]));return Et}function ae(T){null!=T&&this.set(T)}K.suppressDeprecationWarnings=!1,K.deprecationHandler=null,lt=Object.keys?Object.keys:function(T){var X,pt=[];for(X in T)L(T,X)&&pt.push(X);return pt};var ye={};function he(T,X){var pt=T.toLowerCase();ye[pt]=ye[pt+"s"]=ye[X]=T}function Te(T){return"string"==typeof T?ye[T]||ye[T.toLowerCase()]:void 0}function Ne(T){var X,pt,Et={};for(pt in T)L(T,pt)&&(X=Te(pt))&&(Et[X]=T[pt]);return Et}var Ot={};function w(T,X){Ot[T]=X}function Y(T,X,pt){var Et=""+Math.abs(T);return(0<=T?pt?"+":"":"-")+Math.pow(10,Math.max(0,X-Et.length)).toString().substr(1)+Et}var V=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 9,961 bytes, line 1
1|x|X|zz?|ZZ?|.)/g,it=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,yt={},It={};function Lt(T,X,pt,Et){var se=Et;"string"==typeof Et&&(se=function(){return this[Et]()}),T&&(It[T]=se),X&&(It[X[0]]=function(){return Y(se.apply(this,arguments),X[1],X[2])}),pt&&(It[pt]=function(){return this.localeData().ordinal(se.apply(this,arguments),T)})}function Ut(T,X){return T.isValid()?(X=de(X,T.localeData()),yt[X]=yt[X]||function(pt){var Et,se,Ae,Re=pt.match(V);for(Et=0,se=Re.length;Et<se;Et++)Re[Et]=It[Re[Et]]?It[Re[Et]]:(Ae=Re[Et]).match(/\[[\s\S]/)?Ae.replace(/^\[|\]$/g,""):Ae.replace(/\\/g,"");return function(Ue){var $e,Ge="";for($e=0;$e<se;$e++)Ge+=wt(Re[$e])?Re[$e].call(Ue,pt):Re[$e];return Ge}}(X),yt[X](T)):T.localeData().invalidDate()}function de(T,X){var pt=5;function Et(se){return X.longDateFormat(se)||se}for(it.lastIndex=0;0<=pt&&it.test(T);)T=T.replace(it,Et),it.lastIndex=0,pt-=1;return T}var be=/\d/,dt=/\d\d/,Ht=/\d{3}/,Gt=/\d{4}/,ge=/[+-]?\d{6}/,zt=/\d\d?/,Ee=/\d\d\d\d?/,ze=/\d\d\d\d\d\d?/,Xe=/\d{1,3}/,Tt=/\d{1,4}/,$t=/[+-]?\d{1,6}/,ee=/\d+/,ne=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,ue=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[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,Le={};function e(T,X,pt){Le[T]=wt(X)?X:function(Et,se){return Et&&pt?pt:X}}function s(T){return T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var d={};function g(T,X){var pt,Et=X;for("string"==typeof T&&(T=[T]),a(X)&&(Et=function(se,Ae){Ae[X]=v(se)}),pt=0;pt<T.length;pt++)d[T[pt]]=Et}function C(T,X){g(T,function(pt,Et,se,Ae){se._w=se._w||{},X(pt,se._w,se,Ae)})}function ce(T){return we(T)?366:365}function we(T){return T%4==0&&T%100!=0||T%400==0}Lt("Y",0,0,function(){var T=this.year();return T<=9999?""+T:"+"+T}),Lt(0,["YY",2],0,function(){return this.year()%100}),Lt(0,["YYYY",4],0,"year"),Lt(0,["YYYYY",5],0,"year"),Lt(0,["YYYYYY",6,!0],0,"year"),he("year","y"),w("year",1),e("Y",ne),e("YY",zt,dt),e("YYYY",Tt,Gt),e("YYYYY",$t,ge),e("YYYYYY",$t,ge),g(["YYYYY","YYYYYY"],0),g("YYYY",function(T,X){X[0]=2===T.length?K.parseTwoDigitYear(T):v(T)}),g("YY",function(T,X){X[0]=K.parseTwoDigitYear(T)}),g("Y",function(T,X){X[0]=parseInt(T,10)}),K.parseTwoDigitYear=function(T){return v(T)+(68<v(T)?1900:2e3)};var Se,Ye=Je("FullYear",!0);function Je(T,X){return function(pt){return null!=pt?(ci(this,T,pt),K.updateOffset(this,X),this):ni(this,T)}}function ni(T,X){return T.isValid()?T._d["get"+(T._isUTC?"UTC":"")+X]():NaN}function ci(T,X,pt){T.isValid()&&!isNaN(pt)&&("FullYear"===X&&we(T.year())&&1===T.month()&&29===T.date()?T._d["set"+(T._isUTC?"UTC":"")+X](pt,T.month(),ri(pt,T.month())):T._d["set"+(T._isUTC?"UTC":"")+X](pt))}function ri(T,X){if(isNaN(T)||isNaN(X))return NaN;var pt=(X%12+12)%12;return T+=(X-pt)/12,1==pt?we(T)?29:28:31-pt%7%2}Se=Array.prototype.indexOf?Array.prototype.indexOf:function(T){var X;for(X=0;X<this.length;++X)if(this[X]===T)return X;return-1},Lt("M",["MM",2],"Mo",function(){return this.month()+1}),Lt("MMM",0,0,function(T){return this.localeData().monthsShort(this,T)}),Lt("MMMM",0,0,function(T){return this.localeData().months(this,T)}),he("month","M"),w("month",8),e("M",zt),e("MM",zt,dt),e("MMM",function(T,X){return X.monthsShortRegex(T)}),e("MMMM",function(T,X){return X.monthsRegex(T)}),g(["M","MM"],function(T,X){X[1]=v(T)-1}),g(["MMM","MMMM"],function(T,X,pt,Et){var se=pt._locale.monthsParse(T,Et,pt._strict);null!=se?X[1]=se:k(pt).invalidMonth=T});var yi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ii="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ti="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function rn(T,X){var pt;if(!T.isValid())return T;if("string"==typeof X)if(/^\d+$/.test(X))X=v(X);else if(!a(X=T.localeData().monthsParse(X)))return T;return pt=Math.min(T.date(),ri(T.year(),X)),T._d["set"+(T._isUTC?"UTC":"")+"Month"](X,pt),T}function Ei(T){return null!=T?(rn(this,T),K.updateOffset(this,!0),this):ni(this,"Month")}var si=fe,$i=fe;function an(){function T(Re,Ue){return Ue.length-Re.length}var X,pt,Et=[],se=[],Ae=[];for(X=0;X<12;X++)pt=R([2e3,X]),Et.push(this.monthsShort(pt,"")),se.push(this.months(pt,"")),Ae.push(this.months(pt,"")),Ae.push(this.monthsShort(pt,""));for(Et.sort(T),se.sort(T),Ae.sort(T),X=0;X<12;X++)Et[X]=s(Et[X]),se[X]=s(se[X]);for(X=0;X<24;X++)Ae[X]=s(Ae[X]);this._monthsRegex=new RegExp("^("+Ae.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+se.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Et.join("|")+")","i")}function Ci(T){var X;if(T<100&&0<=T){var pt=Array.prototype.slice.call(arguments);pt[0]=T+400,X=new Date(Date.UTC.apply(null,pt)),isFinite(X.getUTCFullYear())&&X.setUTCFullYear(T)}else X=new Date(Date.UTC.apply(null,arguments));return X}function fn(T,X,pt){var Et=7+X-pt;return-(7+Ci(T,0,Et).getUTCDay()-X)%7+Et-1}function yn(T,X,pt,Et,se){var Ae,Re,Ue=1+7*(X-1)+(7+pt-Et)%7+fn(T,Et,se);return Re=Ue<=0?ce(Ae=T-1)+Ue:Ue>ce(T)?(Ae=T+1,Ue-ce(T)):(Ae=T,Ue),{year:Ae,dayOfYear:Re}}function bn(T,X,pt){var Et,se,Ae=fn(T.year(),X,pt),Re=Math.floor((T.dayOfYear()-Ae-1)/7)+1;return Re<1?Et=Re+Pi(se=T.year()-1,X,pt):Re>Pi(T.year(),X,pt)?(Et=Re-Pi(T.year(),X,pt),se=T.year()+1):(se=T.year(),Et=Re),{week:Et,year:se}}function Pi(T,X,pt){var Et=fn(T,X,pt),se=fn(T+1,X,pt);return(ce(T)-Et+se)/7}function Ln(T,X){return T.slice(X,7).concat(T.slice(0,X))}Lt("w",["ww",2],"wo","week"),Lt("W",["WW",2],"Wo","isoWeek"),he("week","w"),he("isoWeek","W"),w("week",5),w("isoWeek",5),e("w",zt),e("ww",zt,dt),e("W",zt),e("WW",zt,dt),C(["w","ww","W","WW"],function(T,X,pt,Et){X[Et.substr(0,1)]=v(T)}),Lt("d",0,"do","day"),Lt("dd",0,0,function(T){return this.localeData().weekdaysMin(this,T)}),Lt("ddd",0,0,function(T){return this.localeData().weekdaysShort(this,T)}),Lt("dddd",0,0,function(T){return this.localeData().weekdays(this,T)}),Lt("e",0,0,"weekday"),Lt("E",0,0,"isoWeekday"),he("day","d"),he("weekday","e"),he("isoWeekday","E"),w("day",11),w("weekday",11),w("isoWeekday",11),e("d",zt),e("e",zt),e("E",zt),e("dd",function(T,X){return X.weekdaysMinRegex(T)}),e("ddd",function(T,X){return X.weekdaysShortRegex(T)}),e("dddd",function(T,X){return X.weekdaysRegex(T)}),C(["dd","ddd","dddd"],function(T,X,pt,Et){var se=pt._locale.weekdaysParse(T,Et,pt._strict);null!=se?X.d=se:k(pt).invalidWeekday=T}),C(["d","e","E"],function(T,X,pt,Et){X[Et]=v(T)});var Sn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qi=fe,Rn=fe,Un=fe;function Fi(){function T(Xt,Zt){return Zt.length-Xt.length}var X,pt,Et,se,Ae,Re=[],Ue=[],$e=[],Ge=[];for(X=0;X<7;X++)pt=R([2e3,1]).day(X),Et=this.weekdaysMin(pt,""),se=this.weekdaysShort(pt,""),Ae=this.weekdays(pt,""),Re.push(Et),Ue.push(se),$e.push(Ae),Ge.push(Et),Ge.push(se),Ge.push(Ae);for(Re.sort(T),Ue.sort(T),$e.sort(T),Ge.sort(T),X=0;X<7;X++)Ue[X]=s(Ue[X]),$e[X]=s($e[X]),Ge[X]=s(Ge[X]);this._weekdaysRegex=new RegExp("^("+Ge.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+$e.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ue.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Re.join("|")+")","i")}function Di(){return this.hours()%12||12}function ai(T,X){Lt(T,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),X)})}function Wi(T,X){return X._meridiemParse}Lt("H",["HH",2],0,"hour"),Lt("h",["hh",2],0,Di),Lt("k",["kk",2],0,function(){return this.hours()||24}),Lt("hmm",0,0,function(){return""+Di.apply(this)+Y(this.minutes(),2)}),Lt("hmmss",0,0,function(){return""+Di.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),Lt("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),Lt("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),ai("a",!0),ai("A",!1),he("hour","h"),w("hour",13),e("a",Wi),e("A",Wi),e("H",zt),e("h",zt),e("k",zt),e("HH",zt,dt),e("hh",zt,dt),e("kk",zt,dt),e("hmm",Ee),e("hmmss",ze),e("Hmm",Ee),e("Hmmss",ze),g(["H","HH"],3),g(["k","kk"],function(T,X,pt){var Et=v(T);X[3]=24===Et?0:Et}),g(["a","A"],function(T,X,pt){pt._isPm=pt._locale.isPM(T),pt._meridiem=T}),g(["h","hh"],function(T,X,pt){X[3]=v(T),k(pt).bigHour=!0}),g("hmm",function(T,X,pt){var Et=T.length-2;X[3]=v(T.substr(0,Et)),X[4]=v(T.substr(Et)),k(pt).bigHour=!0}),g("hmmss",function(T,X,pt){var Et=T.length-4,se=T.length-2;X[3]=v(T.substr(0,Et)),X[4]=v(T.substr(Et,2)),X[5]=v(T.substr(se)),k(pt).bigHour=!0}),g("Hmm",function(T,X,pt){var Et=T.length-2;X[3]=v(T.substr(0,Et)),X[4]=v(T.substr(Et))}),g("Hmmss",function(T,X,pt){var Et=T.length-4,se=T.length-2;X[3]=v(T.substr(0,Et)),X[4]=v(T.substr(Et,2)),X[5]=v(T.substr(se))});var We,us=Je("Hours",!0),$n={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ii,monthsShort:Ti,week:{dow:0,doy:6},weekdays:Sn,weekdaysMin:Xi,weekdaysShort:mn,meridiemParse:/[ap]\.?m?\.?/i},Zi={},di={};function Gn(T){return T&&T.toLowerCase().replace("_","-")}function En(T){var X=null;if(!Zi[T]&&"undefined"!=typeof module&&module&&module.exports)try{X=We._abbr,require("./locale/"+T),Ai(X)}catch(pt){}return Zi[T]}function Ai(T,X){var pt;return T&&((pt=r(X)?en(T):ln(T,X))?We=pt:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+T+" not found. Did you forget to load it?")),We._abbr}
vendor: 5,098 bytes, line 1
1function ln(T,X){if(null===X)return delete Zi[T],null;var pt,Et=$n;if(X.abbr=T,null!=Zi[T])mt("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."),Et=Zi[T]._config;else if(null!=X.parentLocale)if(null!=Zi[X.parentLocale])Et=Zi[X.parentLocale]._config;else{if(null==(pt=En(X.parentLocale)))return di[X.parentLocale]||(di[X.parentLocale]=[]),di[X.parentLocale].push({name:T,config:X}),null;Et=pt._config}return Zi[T]=new ae(qt(Et,X)),di[T]&&di[T].forEach(function(se){ln(se.name,se.config)}),Ai(T),Zi[T]}function en(T){var X;if(T&&T._locale&&T._locale._abbr&&(T=T._locale._abbr),!T)return We;if(!F(T)){if(X=En(T))return X;T=[T]}return function(pt){for(var Et,se,Ae,Re,Ue=0;Ue<pt.length;){for(Et=(Re=Gn(pt[Ue]).split("-")).length,se=(se=Gn(pt[Ue+1]))?se.split("-"):null;0<Et;){if(Ae=En(Re.slice(0,Et).join("-")))return Ae;if(se&&se.length>=Et&&tt(Re,se,!0)>=Et-1)break;Et--}Ue++}return We}(T)}function Zn(T){var X,pt=T._a;return pt&&-2===k(T).overflow&&(X=pt[1]<0||11<pt[1]?1:pt[2]<1||pt[2]>ri(pt[0],pt[1])?2:pt[3]<0||24<pt[3]||24===pt[3]&&(0!==pt[4]||0!==pt[5]||0!==pt[6])?3:pt[4]<0||59<pt[4]?4:pt[5]<0||59<pt[5]?5:pt[6]<0||999<pt[6]?6:-1,k(T)._overflowDayOfYear&&(X<0||2<X)&&(X=2),k(T)._overflowWeeks&&-1===X&&(X=7),k(T)._overflowWeekday&&-1===X&&(X=8),k(T).overflow=X),T}function hn(T,X,pt){return null!=T?T:null!=X?X:pt}function Mn(T){var X,pt,Et,se,Ae,Re=[];if(!T._d){var Ue,$e;for(Ue=T,$e=new Date(K.now()),Et=Ue._useUTC?[$e.getUTCFullYear(),$e.getUTCMonth(),$e.getUTCDate()]:[$e.getFullYear(),$e.getMonth(),$e.getDate()],T._w&&null==T._a[2]&&null==T._a[1]&&function(Ge){var Xt,Zt,et,St,Vt,Ce,Me,ei;if(null!=(Xt=Ge._w).GG||null!=Xt.W||null!=Xt.E)Vt=1,Ce=4,Zt=hn(Xt.GG,Ge._a[0],bn(Ji(),1,4).year),et=hn(Xt.W,1),((St=hn(Xt.E,1))<1||7<St)&&(ei=!0);else{Vt=Ge._locale._week.dow,Ce=Ge._locale._week.doy;var Si=bn(Ji(),Vt,Ce);Zt=hn(Xt.gg,Ge._a[0],Si.year),et=hn(Xt.w,Si.week),null!=Xt.d?((St=Xt.d)<0||6<St)&&(ei=!0):null!=Xt.e?(St=Xt.e+Vt,(Xt.e<0||6<Xt.e)&&(ei=!0)):St=Vt}et<1||et>Pi(Zt,Vt,Ce)?k(Ge)._overflowWeeks=!0:null!=ei?k(Ge)._overflowWeekday=!0:(Me=yn(Zt,et,St,Vt,Ce),Ge._a[0]=Me.year,Ge._dayOfYear=Me.dayOfYear)}(T),null!=T._dayOfYear&&(Ae=hn(T._a[0],Et[0]),(T._dayOfYear>ce(Ae)||0===T._dayOfYear)&&(k(T)._overflowDayOfYear=!0),pt=Ci(Ae,0,T._dayOfYear),T._a[1]=pt.getUTCMonth(),T._a[2]=pt.getUTCDate()),X=0;X<3&&null==T._a[X];++X)T._a[X]=Re[X]=Et[X];for(;X<7;X++)T._a[X]=Re[X]=null==T._a[X]?2===X?1:0:T._a[X];24===T._a[3]&&0===T._a[4]&&0===T._a[5]&&0===T._a[6]&&(T._nextDay=!0,T._a[3]=0),T._d=(T._useUTC?Ci:function(Ge,Xt,Zt,et,St,Vt,Ce){var Me;return Ge<100&&0<=Ge?(Me=new Date(Ge+400,Xt,Zt,et,St,Vt,Ce),isFinite(Me.getFullYear())&&Me.setFullYear(Ge)):Me=new Date(Ge,Xt,Zt,et,St,Vt,Ce),Me}).apply(null,Re),se=T._useUTC?T._d.getUTCDay():T._d.getDay(),null!=T._tzm&&T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),T._nextDay&&(T._a[3]=24),T._w&&void 0!==T._w.d&&T._w.d!==se&&(k(T).weekdayMismatch=!0)}}var ls=/^\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)?)?$/,ms=/^\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)?)?$/,Ss=/Z|[+-]\d\d(?::?\d\d)?/,ds=[["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}/]],ss=[["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/]],wn=/^\/?Date\((\-?\d+)/i;function ps(T){var X,pt,Et,se,Ae,Re,Ue=T._i,$e=ls.exec(Ue)||ms.exec(Ue);if($e){for(k(T).iso=!0,X=0,pt=ds.length;X<pt;X++)if(ds[X][1].exec($e[1])){se=ds[X][0],Et=!1!==ds[X][2];break}if(null==se)return void(T._isValid=!1);if($e[3]){for(X=0,pt=ss.length;X<pt;X++)if(ss[X][1].exec($e[3])){Ae=($e[2]||" ")+ss[X][0];break}if(null==Ae)return void(T._isValid=!1)}if(!Et&&null!=Ae)return void(T._isValid=!1);if($e[4]){if(!Ss.exec($e[4]))return void(T._isValid=!1);Re="Z"}T._f=se+(Ae||"")+(Re||""),Hn(T)}else T._isValid=!1}var vs=/^(?:(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}))$/,Jn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function In(T){var X,pt,Et,Ue,$e,Ge,Xt,Zt,et,St,se=vs.exec(T._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(se){var Ae=(Ue=se[3],$e=se[2],Ge=se[5],Xt=se[6],Zt=se[7],St=[(et=parseInt(se[4],
vendor: 33,904 bytes, line 1
110),et<=49?2e3+et:et<=999?1900+et:et),Ti.indexOf(Ue),parseInt($e,10),parseInt(Ge,10),parseInt(Xt,10)],Zt&&St.push(parseInt(Zt,10)),St);if(pt=Ae,Et=T,(X=se[1])&&mn.indexOf(X)!==new Date(pt[0],pt[1],pt[2]).getDay()&&(k(Et).weekdayMismatch=!0,!(Et._isValid=!1)))return;T._a=Ae,T._tzm=function(Re,Ue,$e){if(Re)return Jn[Re];if(Ue)return 0;var Ge=parseInt($e,10),Xt=Ge%100;return(Ge-Xt)/100*60+Xt}(se[8],se[9],se[10]),T._d=Ci.apply(null,T._a),T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),k(T).rfc2822=!0}else T._isValid=!1}function Hn(T){if(T._f!==K.ISO_8601)if(T._f!==K.RFC_2822){T._a=[],k(T).empty=!0;var X,pt,Et,se,Ae,Re,Ue,$e,Ge=""+T._i,Xt=Ge.length,Zt=0;for(Et=de(T._f,T._locale).match(V)||[],X=0;X<Et.length;X++)(pt=(Ge.match((ei=T,L(Le,Me=se=Et[X])?Le[Me](ei._strict,ei._locale):new RegExp(s(Me.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Si,Ui,on,Kn,_s){return Ui||on||Kn||_s})))))||[])[0])&&(0<(Ae=Ge.substr(0,Ge.indexOf(pt))).length&&k(T).unusedInput.push(Ae),Ge=Ge.slice(Ge.indexOf(pt)+pt.length),Zt+=pt.length),It[se]?(pt?k(T).empty=!1:k(T).unusedTokens.push(se),Re=se,$e=T,null!=(Ue=pt)&&L(d,Re)&&d[Re](Ue,$e._a,$e,Re)):T._strict&&!pt&&k(T).unusedTokens.push(se);k(T).charsLeftOver=Xt-Zt,0<Ge.length&&k(T).unusedInput.push(Ge),T._a[3]<=12&&!0===k(T).bigHour&&0<T._a[3]&&(k(T).bigHour=void 0),k(T).parsedDateParts=T._a.slice(0),k(T).meridiem=T._meridiem,T._a[3]=(et=T._locale,St=T._a[3],null==(Vt=T._meridiem)?St:null!=et.meridiemHour?et.meridiemHour(St,Vt):(null!=et.isPM&&((Ce=et.isPM(Vt))&&St<12&&(St+=12),Ce||12!==St||(St=0)),St)),Mn(T),Zn(T)}else In(T);else ps(T);var et,St,Vt,Ce,Me,ei}function Vn(T){var X,pt,Et,se,Ae=T._i,Re=T._f;return T._locale=T._locale||en(T._l),null===Ae||void 0===Re&&""===Ae?I({nullInput:!0}):("string"==typeof Ae&&(T._i=Ae=T._locale.preparse(Ae)),H(Ae)?new O(Zn(Ae)):(u(Ae)?T._d=Ae:F(Re)?function(Ue){var $e,Ge,Xt,Zt,et;if(0===Ue._f.length)return k(Ue).invalidFormat=!0,Ue._d=new Date(NaN);for(Zt=0;Zt<Ue._f.length;Zt++)et=0,$e=S({},Ue),null!=Ue._useUTC&&($e._useUTC=Ue._useUTC),$e._f=Ue._f[Zt],Hn($e),N($e)&&(et+=k($e).charsLeftOver,et+=10*k($e).unusedTokens.length,k($e).score=et,(null==Xt||et<Xt)&&(Xt=et,Ge=$e));W(Ue,Ge||$e)}(T):Re?Hn(T):r(pt=(X=T)._i)?X._d=new Date(K.now()):u(pt)?X._d=new Date(pt.valueOf()):"string"==typeof pt?null===(se=wn.exec((Et=X)._i))?(ps(Et),!1===Et._isValid&&(delete Et._isValid,In(Et),!1===Et._isValid&&(delete Et._isValid,K.createFromInputFallback(Et)))):Et._d=new Date(+se[1]):F(pt)?(X._a=b(pt.slice(0),function(Ue){return parseInt(Ue,10)}),Mn(X)):l(pt)?function(Ue){if(!Ue._d){var $e=Ne(Ue._i);Ue._a=b([$e.year,$e.month,$e.day||$e.date,$e.hour,$e.minute,$e.second,$e.millisecond],function(Ge){return Ge&&parseInt(Ge,10)}),Mn(Ue)}}(X):a(pt)?X._d=new Date(pt):K.createFromInputFallback(X),N(T)||(T._d=null),T))}function xn(T,X,pt,Et,se){var Ae,Re={};return!0!==pt&&!1!==pt||(Et=pt,pt=void 0),(l(T)&&function(Ue){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(Ue).length;var $e;for($e in Ue)if(Ue.hasOwnProperty($e))return!1;return!0}(T)||F(T)&&0===T.length)&&(T=void 0),Re._isAMomentObject=!0,Re._useUTC=Re._isUTC=se,Re._l=pt,Re._i=T,Re._f=X,Re._strict=Et,(Ae=new O(Zn(Vn(Re))))._nextDay&&(Ae.add(1,"d"),Ae._nextDay=void 0),Ae}function Ji(T,X,pt,Et){return xn(T,X,pt,Et,!1)}K.createFromInputFallback=Rt("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(T){T._d=new Date(T._i+(T._useUTC?" UTC":""))}),K.ISO_8601=function(){},K.RFC_2822=function(){};var Xn=Rt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var T=Ji.apply(null,arguments);return this.isValid()&&T.isValid()?T<this?this:T:I()}),hs=Rt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var T=Ji.apply(null,arguments);return this.isValid()&&T.isValid()?this<T?this:T:I()});function fs(T,X){var pt,Et;if(1===X.length&&F(X[0])&&(X=X[0]),!X.length)return Ji();for(pt=X[0],Et=1;Et<X.length;++Et)X[Et].isValid()&&!X[Et][T](pt)||(pt=X[Et]);return pt}var zn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function f(T){var X=Ne(T),pt=X.year||0,Et=X.quarter||0,se=X.month||0,Ae=X.week||X.isoWeek||0,Re=X.day||0,Ue=X.hour||0,$e=X.minute||0,Ge=X.second||0,Xt=X.millisecond||0;this._isValid=function(Zt){for(var et in Zt)if(-1===Se.call(zn,et)||null!=Zt[et]&&isNaN(Zt[et]))return!1;for(var St=!1,Vt=0;Vt<zn.length;++Vt)if(Zt[zn[Vt]]){if(St)return!1;parseFloat(Zt[zn[Vt]])!==v(Zt[zn[Vt]])&&(St=!0)}return!0}(X),this._milliseconds=+Xt+1e3*Ge+6e4*$e+1e3*Ue*60*60,this._days=+Re+7*Ae,this._months=+se+3*Et+12*pt,this._data={},this._locale=en(),this._bubble()}function P(T){return T instanceof f}function q(T){return T<0?-1*Math.round(-1*T):Math.round(T)}function Z(T,X){Lt(T,0,0,function(){var pt=this.utcOffset(),Et="+";return pt<0&&(pt=-pt,Et="-"),Et+Y(~~(pt/60),2)+X+Y(~~pt%60,2)})}Z("Z",":"),Z("ZZ",""),e("Z",ue),e("ZZ",ue),g(["Z","ZZ"],function(T,X,pt){pt._useUTC=!0,pt._tzm=rt(ue,T)});var ct=/([\+\-]|\d\d)/gi;function rt(T,X){var pt=(X||"").match(T);if(null===pt)return null;var Et=((pt[pt.length-1]||[])+"").match(ct)||["-",0,0],se=60*Et[1]+v(Et[2]);return 0===se?0:"+"===Et[0]?se:-se}function bt(T,X){var pt,Et;return X._isUTC?(pt=X.clone(),Et=(H(T)||u(T)?T.valueOf():Ji(T).valueOf())-pt.valueOf(),pt._d.setTime(pt._d.valueOf()+Et),K.updateOffset(pt,!1),pt):Ji(T).local()}function ht(T){return 15*-Math.round(T._d.getTimezoneOffset()/15)}function Nt(){return!!this.isValid()&&this._isUTC&&0===this._offset}K.updateOffset=function(){};var Yt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,oe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ve(T,X){var pt,Et,se,Ae,Re,Ue,$e=T,Ge=null;return P(T)?$e={ms:T._milliseconds,d:T._days,M:T._months}:a(T)?($e={},X?$e[X]=T:$e.milliseconds=T):(Ge=Yt.exec(T))?(pt="-"===Ge[1]?-1:1,$e={y:0,d:v(Ge[2])*pt,h:v(Ge[3])*pt,m:v(Ge[4])*pt,s:v(Ge[5])*pt,ms:v(q(1e3*Ge[6]))*pt}):(Ge=oe.exec(T))?$e={y:Pe(Ge[2],pt="-"===Ge[1]?-1:1),M:Pe(Ge[3],pt),w:Pe(Ge[4],pt),d:Pe(Ge[5],pt),h:Pe(Ge[6],pt),m:Pe(Ge[7],pt),s:Pe(Ge[8],pt)}:null==$e?$e={}:"object"==typeof $e&&("from"in $e||"to"in $e)&&(Ae=Ji($e.from),Re=Ji($e.to),se=Ae.isValid()&&Re.isValid()?(Re=bt(Re,Ae),Ae.isBefore(Re)?Ue=li(Ae,Re):((Ue=li(Re,Ae)).milliseconds=-Ue.milliseconds,Ue.months=-Ue.months),Ue):{milliseconds:0,months:0},($e={}).ms=se.milliseconds,$e.M=se.months),Et=new f($e),P(T)&&L(T,"_locale")&&(Et._locale=T._locale),Et}function Pe(T,X){var pt=T&&parseFloat(T.replace(",","."));return(isNaN(pt)?0:pt)*X}function li(T,X){var pt={};return pt.months=X.month()-T.month()+12*(X.year()-T.year()),T.clone().add(pt.months,"M").isAfter(X)&&--pt.months,pt.milliseconds=+X-+T.clone().add(pt.months,"M"),pt}function mi(T,X){return function(pt,Et){var se;return null===Et||isNaN(+Et)||(mt(X,"moment()."+X+"(period, number) is deprecated. Please use moment()."+X+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),se=pt,pt=Et,Et=se),Oe(this,ve(pt="string"==typeof pt?+pt:pt,Et),T),this}}function Oe(T,X,pt,Et){var se=X._milliseconds,Ae=q(X._days),Re=q(X._months);T.isValid()&&(Et=null==Et||Et,Re&&rn(T,ni(T,"Month")+Re*pt),Ae&&ci(T,"Date",ni(T,"Date")+Ae*pt),se&&T._d.setTime(T._d.valueOf()+se*pt),Et&&K.updateOffset(T,Ae||Re))}ve.fn=f.prototype,ve.invalid=function(){return ve(NaN)};var Ri=mi(1,"add"),nn=mi(-1,"subtract");function un(T,X){var pt=12*(X.year()-T.year())+(X.month()-T.month()),Et=T.clone().add(pt,"months");return-(pt+(X-Et<0?(X-Et)/(Et-T.clone().add(pt-1,"months")):(X-Et)/(T.clone().add(1+pt,"months")-Et)))||0}function Fn(T){var X;return void 0===T?this._locale._abbr:(null!=(X=en(T))&&(this._locale=X),this)}K.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",K.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var dn=Rt("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 Li(){return this._locale}function zi(T,X){return(T%X+X)%X}function Cn(T,X,pt){return T<100&&0<=T?new Date(T+400,X,pt)-126227808e5:new Date(T,X,pt).valueOf()}function _n(T,X,pt){return T<100&&0<=T?Date.UTC(T+400,X,pt)-126227808e5:Date.UTC(T,X,pt)}function Nn(T,X){Lt(0,[T,T.length],0,X)}function tn(T,X,pt,Et,se){var Ae;return null==T?bn(this,Et,se).year:((Ae=Pi(T,Et,se))<X&&(X=Ae),function(Re,Ue,$e,Ge,Xt){var Zt=yn(Re,Ue,$e,Ge,Xt),et=Ci(Zt.year,0,Zt.dayOfYear);return this.year(et.getUTCFullYear()),this.month(et.getUTCMonth()),this.date(et.getUTCDate()),this}.call(this,T,X,pt,Et,se))}Lt(0,["gg",2],0,function(){return this.weekYear()%100}),Lt(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Nn("gggg","weekYear"),Nn("ggggg","weekYear"),Nn("GGGG","isoWeekYear"),Nn("GGGGG","isoWeekYear"),he("weekYear","gg"),he("isoWeekYear","GG"),w("weekYear",1),w("isoWeekYear",1),e("G",ne),e("g",ne),e("GG",zt,dt),e("gg",zt,dt),e("GGGG",Tt,Gt),e("gggg",Tt,Gt),e("GGGGG",$t,ge),e("ggggg",$t,ge),C(["gggg","ggggg","GGGG","GGGGG"],function(T,X,pt,Et){X[Et.substr(0,2)]=v(T)}),C(["gg","GG"],function(T,X,pt,Et){X[Et]=K.parseTwoDigitYear(T)}),Lt("Q",0,"Qo","quarter"),he("quarter","Q"),w("quarter",7),e("Q",be),g("Q",function(T,X){X[1]=3*(v(T)-1)}),Lt("D",["DD",2],"Do","date"),he("date","D"),w("date",9),e("D",zt),e("DD",zt,dt),e("Do",function(T,X){return T?X._dayOfMonthOrdinalParse||X._ordinalParse:X._dayOfMonthOrdinalParseLenient}),g(["D","DD"],2),g("Do",function(T,X){X[2]=v(T.match(zt)[0])});var Dn=Je("Date",!0);Lt("DDD",["DDDD",3],"DDDo","dayOfYear"),he("dayOfYear","DDD"),w("dayOfYear",4),e("DDD",Xe),e("DDDD",Ht),g(["DDD","DDDD"],function(T,X,pt){pt._dayOfYear=v(T)}),Lt("m",["mm",2],0,"minute"),he("minute","m"),w("minute",14),e("m",zt),e("mm",zt,dt),g(["m","mm"],4);var ts=Je("Minutes",!1);Lt("s",["ss",2],0,"second"),he("second","s"),w("second",15),e("s",zt),e("ss",zt,dt),g(["s","ss"],5);var On,y=Je("Seconds",!1);for(Lt("S",0,0,function(){return~~(this.millisecond()/100)}),Lt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Lt(0,["SSS",3],0,"millisecond"),Lt(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Lt(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Lt(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Lt(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Lt(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Lt(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),he("millisecond","ms"),w("millisecond",16),e("S",Xe,be),e("SS",Xe,dt),e("SSS",Xe,Ht),On="SSSS";On.length<=9;On+="S")e(On,ee);function B(T,X){X[6]=v(1e3*("0."+T))}for(On="S";On.length<=9;On+="S")g(On,B);var J=Je("Milliseconds",!1);Lt("z",0,0,"zoneAbbr"),Lt("zz",0,0,"zoneName");var Q=O.prototype;function _t(T){return T}Q.add=Ri,Q.calendar=function(T,X){var pt=T||Ji(),Et=bt(pt,this).startOf("day"),se=K.calendarFormat(this,Et)||"sameElse",Ae=X&&(wt(X[se])?X[se].call(this,pt):X[se]);return this.format(Ae||this.localeData().calendar(se,this,Ji(pt)))},Q.clone=function(){return new O(this)},Q.diff=function(T,X,pt){var Et,se,Ae;if(!this.isValid())return NaN;if(!(Et=bt(T,this)).isValid())return NaN;switch(se=6e4*(Et.utcOffset()-this.utcOffset()),X=Te(X)){case"year":Ae=un(this,Et)/12;break;case"month":Ae=un(this,Et);break;case"quarter":Ae=un(this,Et)/3;break;case"second":Ae=(this-Et)/1e3;break;case"minute":Ae=(this-Et)/6e4;break;case"hour":Ae=(this-Et)/36e5;break;case"day":Ae=(this-Et-se)/864e5;break;case"week":Ae=(this-Et-se)/6048e5;break;default:Ae=this-Et}return pt?Ae:z(Ae)},Q.endOf=function(T){var X;if(void 0===(T=Te(T))||"millisecond"===T||!this.isValid())return this;var pt=this._isUTC?_n:Cn;switch(T){case"year":X=pt(this.year()+1,0,1)-1;break;case"quarter":X=pt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":X=pt(this.year(),this.month()+1,1)-1;break;case"week":X=pt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":X=pt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":X=pt(this.year(),this.month(),this.date()+1)-1;break;case"hour":X=this._d.valueOf(),X+=36e5-zi(X+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":X=this._d.valueOf(),X+=6e4-zi(X,6e4)-1;break;case"second":X=this._d.valueOf(),X+=1e3-zi(X,1e3)-1}return this._d.setTime(X),K.updateOffset(this,!0),this},Q.format=function(T){var X=Ut(this,T=T||(this.isUtc()?K.defaultFormatUtc:K.defaultFormat));return this.localeData().postformat(X)},Q.from=function(T,X){return this.isValid()&&(H(T)&&T.isValid()||Ji(T).isValid())?ve({to:this,from:T}).locale(this.locale()).humanize(!X):this.localeData().invalidDate()},Q.fromNow=function(T){return this.from(Ji(),T)},Q.to=function(T,X){return this.isValid()&&(H(T)&&T.isValid()||Ji(T).isValid())?ve({from:this,to:T}).locale(this.locale()).humanize(!X):this.localeData().invalidDate()},Q.toNow=function(T){return this.to(Ji(),T)},Q.get=function(T){return wt(this[T=Te(T)])?this[T]():this},Q.invalidAt=function(){return k(this).overflow},Q.isAfter=function(T,X){var pt=H(T)?T:Ji(T);return!(!this.isValid()||!pt.isValid())&&("millisecond"===(X=Te(X)||"millisecond")?this.valueOf()>pt.valueOf():pt.valueOf()<this.clone().startOf(X).valueOf())},Q.isBefore=function(T,X){var pt=H(T)?T:Ji(T);return!(!this.isValid()||!pt.isValid())&&("millisecond"===(X=Te(X)||"millisecond")?this.valueOf()<pt.valueOf():this.clone().endOf(X).valueOf()<pt.valueOf())},Q.isBetween=function(T,X,pt,Et){var se=H(T)?T:Ji(T),Ae=H(X)?X:Ji(X);return!!(this.isValid()&&se.isValid()&&Ae.isValid())&&("("===(Et=Et||"()")[0]?this.isAfter(se,pt):!this.isBefore(se,pt))&&(")"===Et[1]?this.isBefore(Ae,pt):!this.isAfter(Ae,pt))},Q.isSame=function(T,X){var pt,Et=H(T)?T:Ji(T);return!(!this.isValid()||!Et.isValid())&&("millisecond"===(X=Te(X)||"millisecond")?this.valueOf()===Et.valueOf():(pt=Et.valueOf(),this.clone().startOf(X).valueOf()<=pt&&pt<=this.clone().endOf(X).valueOf()))},Q.isSameOrAfter=function(T,X){return this.isSame(T,X)||this.isAfter(T,X)},Q.isSameOrBefore=function(T,X){return this.isSame(T,X)||this.isBefore(T,X)},Q.isValid=function(){return N(this)},Q.lang=dn,Q.locale=Fn,Q.localeData=Li,Q.max=hs,Q.min=Xn,Q.parsingFlags=function(){return W({},k(this))},Q.set=function(T,X){if("object"==typeof T)for(var pt=function(se){var Ae=[];for(var Re in se)Ae.push({unit:Re,priority:Ot[Re]});return Ae.sort(function(Ue,$e){return Ue.priority-$e.priority}),Ae}(T=Ne(T)),Et=0;Et<pt.length;Et++)this[pt[Et].unit](T[pt[Et].unit]);else if(wt(this[T=Te(T)]))return this[T](X);return this},Q.startOf=function(T){var X;if(void 0===(T=Te(T))||"millisecond"===T||!this.isValid())return this;var pt=this._isUTC?_n:Cn;switch(T){case"year":X=pt(this.year(),0,1);break;case"quarter":X=pt(this.year(),this.month()-this.month()%3,1);break;case"month":X=pt(this.year(),this.month(),1);break;case"week":X=pt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":X=pt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":X=pt(this.year(),this.month(),this.date());break;case"hour":X=this._d.valueOf(),X-=zi(X+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":X=this._d.valueOf(),X-=zi(X,6e4);break;case"second":X=this._d.valueOf(),X-=zi(X,1e3)}return this._d.setTime(X),K.updateOffset(this,!0),this},Q.subtract=nn,Q.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},Q.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},Q.toDate=function(){return new Date(this.valueOf())},Q.toISOString=function(T){if(!this.isValid())return null;var X=!0!==T,pt=X?this.clone().utc():this;return pt.year()<0||9999<pt.year()?Ut(pt,X?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):wt(Date.prototype.toISOString)?X?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ut(pt,"Z")):Ut(pt,X?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Q.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var T="moment",X="";this.isLocal()||(T=0===this.utcOffset()?"moment.utc":"moment.parseZone",X="Z");var pt="["+T+'("]',Et=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(pt+Et+"-MM-DD[T]HH:mm:ss.SSS"+X+'[")]')},Q.toJSON=function(){return this.isValid()?this.toISOString():null},Q.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Q.unix=function(){return Math.floor(this.valueOf()/1e3)},Q.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Q.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Q.year=Ye,Q.isLeapYear=function(){return we(this.year())},Q.weekYear=function(T){return tn.call(this,T,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Q.isoWeekYear=function(T){return tn.call(this,T,this.isoWeek(),this.isoWeekday(),1,4)},Q.quarter=Q.quarters=function(T){return null==T?Math.ceil((this.month()+1)/3):this.month(3*(T-1)+this.month()%3)},Q.month=Ei,Q.daysInMonth=function(){return ri(this.year(),this.month())},Q.week=Q.weeks=function(T){var X=this.localeData().week(this);return null==T?X:this.add(7*(T-X),"d")},Q.isoWeek=Q.isoWeeks=function(T){var X=bn(this,1,4).week;return null==T?X:this.add(7*(T-X),"d")},Q.weeksInYear=function(){var T=this.localeData()._week;return Pi(this.year(),T.dow,T.doy)},Q.isoWeeksInYear=function(){return Pi(this.year(),1,4)},Q.date=Dn,Q.day=Q.days=function(T){if(!this.isValid())return null!=T?this:NaN;var X,pt,Et=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=T?(X=T,pt=this.localeData(),T="string"!=typeof X?X:isNaN(X)?"number"==typeof(X=pt.weekdaysParse(X))?X:null:parseInt(X,10),this.add(T-Et,"d")):Et},Q.weekday=function(T){if(!this.isValid())return null!=T?this:NaN;var X=(this.day()+7-this.localeData()._week.dow)%7;return null==T?X:this.add(T-X,"d")},Q.isoWeekday=function(T){if(!this.isValid())return null!=T?this:NaN;if(null==T)return this.day()||7;var X,pt,Et=(X=T,pt=this.localeData(),"string"==typeof X?pt.weekdaysParse(X)%7||7:isNaN(X)?null:X);return this.day(this.day()%7?Et:Et-7)},Q.dayOfYear=function(T){var X=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==T?X:this.add(T-X,"d")},Q.hour=Q.hours=us,Q.minute=Q.minutes=ts,Q.second=Q.seconds=y,Q.millisecond=Q.milliseconds=J,Q.utcOffset=function(T,X,pt){var Et,se=this._offset||0;if(!this.isValid())return null!=T?this:NaN;if(null==T)return this._isUTC?se:ht(this);if("string"==typeof T){if(null===(T=rt(ue,T)))return this}else Math.abs(T)<16&&!pt&&(T*=60);return!this._isUTC&&X&&(Et=ht(this)),this._offset=T,this._isUTC=!0,null!=Et&&this.add(Et,"m"),se!==T&&(!X||this._changeInProgress?Oe(this,ve(T-se,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,K.updateOffset(this,!0),this._changeInProgress=null)),this},Q.utc=function(T){return this.utcOffset(0,T)},Q.local=function(T){return this._isUTC&&(this.utcOffset(0,T),this._isUTC=!1,T&&this.subtract(ht(this),"m")),this},Q.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var T=rt(xe,this._i);null!=T?this.utcOffset(T):this.utcOffset(0,!0)}return this},Q.hasAlignedHourOffset=function(T){return!!this.isValid()&&(T=T?Ji(T).utcOffset():0,(this.utcOffset()-T)%60==0)},Q.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Q.isLocal=function(){return!!this.isValid()&&!this._isUTC},Q.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Q.isUtc=Nt,Q.isUTC=Nt,Q.zoneAbbr=function(){return this._isUTC?"UTC":""},Q.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Q.dates=Rt("dates accessor is deprecated. Use date instead.",Dn),Q.months=Rt("months accessor is deprecated. Use month instead",Ei),Q.years=Rt("years accessor is deprecated. Use year instead",Ye),Q.zone=Rt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(T,X){return null!=T?("string"!=typeof T&&(T=-T),this.utcOffset(T,X),this):-this.utcOffset()}),Q.isDSTShifted=Rt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var T={};if(S(T,this),(T=Vn(T))._a){var X=T._isUTC?R(T._a):Ji(T._a);this._isDSTShifted=this.isValid()&&0<tt(T._a,X.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Ct=ae.prototype;function Mt(T,X,pt,Et){var se=en(),Ae=R().set(Et,X);return se[pt](Ae,T)}function te(T,X,pt){if(a(T)&&(X=T,T=void 0),T=T||"",null!=X)return Mt(T,X,pt,"month");var Et,se=[];for(Et=0;Et<12;Et++)se[Et]=Mt(T,Et,pt,"month");return se}function ie(T,X,pt,Et){"boolean"==typeof T?a(X)&&(pt=X,X=void 0):(X=T,T=!1,a(pt=X)&&(pt=X,X=void 0)),X=X||"";var se,Ae=en(),Re=T?Ae._week.dow:0;if(null!=pt)return Mt(X,(pt+Re)%7,Et,"day");var Ue=[];for(se=0;se<7;se++)Ue[se]=Mt(X,(se+Re)%7,Et,"day");return Ue}Ct.calendar=function(T,X,pt){var Et=this._calendar[T]||this._calendar.sameElse;return wt(Et)?Et.call(X,pt):Et},Ct.longDateFormat=function(T){var X=this._longDateFormat[T],pt=this._longDateFormat[T.toUpperCase()];return X||!pt?X:(this._longDateFormat[T]=pt.replace(/MMMM|MM|DD|dddd/g,function(Et){return Et.slice(1)}),this._longDateFormat[T])},Ct.invalidDate=function(){return this._invalidDate},Ct.ordinal=function(T){return this._ordinal.replace("%d",T)},Ct.preparse=_t,Ct.postformat=_t,Ct.relativeTime=function(T,X,pt,Et){var se=this._relativeTime[pt];return wt(se)?se(T,X,pt,Et):se.replace(/%d/i,T)},Ct.pastFuture=function(T,X){var pt=this._relativeTime[0<T?"future":"past"];return wt(pt)?pt(X):pt.replace(/%s/i,X)},Ct.set=function(T){var X,pt;for(pt in T)wt(X=T[pt])?this[pt]=X:this["_"+pt]=X;this._config=T,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ct.months=function(T,X){return T?F(this._months)?this._months[T.month()]:this._months[(this._months.isFormat||yi).test(X)?"format":"standalone"][T.month()]:F(this._months)?this._months:this._months.standalone},Ct.monthsShort=function(T,X){return T?F(this._monthsShort)?this._monthsShort[T.month()]:this._monthsShort[yi.test(X)?"format":"standalone"][T.month()]:F(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ct.monthsParse=function(T,X,pt){var Et,se,Ae;if(this._monthsParseExact)return function(Re,Ue,$e){var Ge,Xt,Zt,et=Re.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Ge=0;Ge<12;++Ge)Zt=R([2e3,Ge]),this._shortMonthsParse[Ge]=this.monthsShort(Zt,"").toLocaleLowerCase(),this._longMonthsParse[Ge]=this.months(Zt,"").toLocaleLowerCase();return $e?"MMM"===Ue?-1!==(Xt=Se.call(this._shortMonthsParse,et))?Xt:null:-1!==(Xt=Se.call(this._longMonthsParse,et))?Xt:null:"MMM"===Ue?-1!==(Xt=Se.call(this._shortMonthsParse,et))||-1!==(Xt=Se.call(this._longMonthsParse,et))?Xt:null:-1!==(Xt=Se.call(this._longMonthsParse,et))||-1!==(Xt=Se.call(this._shortMonthsParse,et))?Xt:null}.call(this,T,X,pt);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Et=0;Et<12;Et++)if(se=R([2e3,Et]),pt&&!this._longMonthsParse[Et]&&(this._longMonthsParse[Et]=new RegExp("^"+this.months(se,"").replace(".","")+"$","i"),this._shortMonthsParse[Et]=new RegExp("^"+this.monthsShort(se,"").replace(".","")+"$","i")),pt||this._monthsParse[Et]||(Ae="^"+this.months(se,"")+"|^"+this.monthsShort(se,""),this._monthsParse[Et]=new RegExp(Ae.replace(".",""),"i")),pt&&"MMMM"===X&&this._longMonthsParse[Et].test(T)||pt&&"MMM"===X&&this._shortMonthsParse[Et].test(T)||!pt&&this._monthsParse[Et].test(T))return Et},Ct.monthsRegex=function(T){return this._monthsParseExact?(L(this,"_monthsRegex")||an.call(this),T?this._monthsStrictRegex:this._monthsRegex):(L(this,"_monthsRegex")||(this._monthsRegex=$i),this._monthsStrictRegex&&T?this._monthsStrictRegex:this._monthsRegex)},Ct.monthsShortRegex=function(T){return this._monthsParseExact?(L(this,"_monthsRegex")||an.call(this),T?this._monthsShortStrictRegex:this._monthsShortRegex):(L(this,"_monthsShortRegex")||(this._monthsShortRegex=si),this._monthsShortStrictRegex&&T?this._monthsShortStrictRegex:this._monthsShortRegex)},Ct.week=function(T){return bn(T,this._week.dow,this._week.doy).week},Ct.firstDayOfYear=function(){return this._week.doy},Ct.firstDayOfWeek=function(){return this._week.dow},Ct.weekdays=function(T,X){var pt=F(this._weekdays)?this._weekdays:this._weekdays[T&&!0!==T&&this._weekdays.isFormat.test(X)?"format":"standalone"];return!0===T?Ln(pt,this._week.dow):T?pt[T.day()]:pt},Ct.weekdaysMin=function(T){return!0===T?Ln(this._weekdaysMin,this._week.dow):T?this._weekdaysMin[T.day()]:this._weekdaysMin},Ct.weekdaysShort=function(T){return!0===T?Ln(this._weekdaysShort,this._week.dow):T?this._weekdaysShort[T.day()]:this._weekdaysShort},Ct.weekdaysParse=function(T,X,pt){var Et,se,Ae;if(this._weekdaysParseExact)return function(Re,Ue,$e){var Ge,Xt,Zt,et=Re.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Ge=0;Ge<7;++Ge)Zt=R([2e3,1]).day(Ge),this._minWeekdaysParse[Ge]=this.weekdaysMin(Zt,"").toLocaleLowerCase(),this._shortWeekdaysParse[Ge]=this.weekdaysShort(Zt,"").toLocaleLowerCase(),this._weekdaysParse[Ge]=this.weekdays(Zt,"").toLocaleLowerCase();return $e?"dddd"===Ue?-1!==(Xt=Se.call(this._weekdaysParse,et))?Xt:null:"ddd"===Ue?-1!==(Xt=Se.call(this._shortWeekdaysParse,et))?Xt:null:-1!==(Xt=Se.call(this._minWeekdaysParse,et))?Xt:null:"dddd"===Ue?-1!==(Xt=Se.call(this._weekdaysParse,et))||-1!==(Xt=Se.call(this._shortWeekdaysParse,et))||-1!==(Xt=Se.call(this._minWeekdaysParse,et))?Xt:null:"ddd"===Ue?-1!==(Xt=Se.call(this._shortWeekdaysParse,et))||-1!==(Xt=Se.call(this._weekdaysParse,et))||-1!==(Xt=Se.call(this._minWeekdaysParse,et))?Xt:null:-1!==(Xt=Se.call(this._minWeekdaysParse,et))||-1!==(Xt=Se.call(this._weekdaysParse,et))||-1!==(Xt=Se.call(this._shortWeekdaysParse,et))?Xt:null}.call(this,T,X,pt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Et=0;Et<7;Et++)if(se=R([2e3,1]).day(Et),pt&&!this._fullWeekdaysParse[Et]&&(this._fullWeekdaysParse[Et]=new RegExp("^"+this.weekdays(se,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Et]=new RegExp("^"+this.weekdaysShort(se,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Et]=new RegExp("^"+this.weekdaysMin(se,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Et]||(Ae="^"+this.weekdays(se,"")+"|^"+this.weekdaysShort(se,"")+"|^"+this.weekdaysMin(se,""),this._weekdaysParse[Et]=new RegExp(Ae.replace(".",""),"i")),pt&&"dddd"===X&&this._fullWeekdaysParse[Et].test(T)||pt&&"ddd"===X&&this._shortWeekdaysParse[Et].test(T)||pt&&"dd"===X&&this._minWeekdaysParse[Et].test(T)||!pt&&this._weekdaysParse[Et].test(T))return Et},Ct.weekdaysRegex=function(T){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Fi.call(this),T?this._weekdaysStrictRegex:this._weekdaysRegex):(L(this,"_weekdaysRegex")||(this._weekdaysRegex=Qi),this._weekdaysStrictRegex&&T?this._weekdaysStrictRegex:this._weekdaysRegex)},Ct.weekdaysShortRegex=function(T){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Fi.call(this),T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(L(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rn),this._weekdaysShortStrictRegex&&T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ct.weekdaysMinRegex=function(T){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Fi.call(this),T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(L(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Un),this._weekdaysMinStrictRegex&&T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ct.isPM=function(T){return"p"===(T+"").toLowerCase().charAt(0)},Ct.meridiem=function(T,X,pt){return 11<T?pt?"pm":"PM":pt?"am":"AM"},Ai("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(T){var X=T%10;return T+(1===v(T%100/10)?"th":1==X?"st":2==X?"nd":3==X?"rd":"th")}}),K.lang=Rt("moment.lang is deprecated. Use moment.locale instead.",Ai),K.langData=Rt("moment.langData is deprecated. Use moment.localeData instead.",en);var re=Math.abs;function Ie(T,X,pt,Et){var se=ve(X,pt);return T._milliseconds+=Et*se._milliseconds,T._days+=Et*se._days,T._months+=Et*se._months,T._bubble()}function je(T){return T<0?Math.floor(T):Math.ceil(T)}function ke(T){return 4800*T/146097}function Be(T){return 146097*T/4800}function pi(T){return function(){return this.as(T)}}var oi=pi("ms"),gi=pi("s"),Ki=pi("m"),Vi=pi("h"),kn=pi("d"),bs=pi("w"),Hi=pi("M"),sn=pi("Q"),Mi=pi("y");function Yi(T){return function(){return this.isValid()?this._data[T]:NaN}}var Ps=Yi("milliseconds"),ys=Yi("seconds"),os=Yi("minutes"),Es=Yi("hours"),rs=Yi("days"),as=Yi("months"),xs=Yi("years"),gn=Math.round,cn={ss:44,s:45,m:45,h:22,d:26,M:11},Pn=Math.abs;function pn(T){return(0<T)-(T<0)||+T}function qn(){if(!this.isValid())return this.localeData().invalidDate();var T,X,pt=Pn(this._milliseconds)/1e3,Et=Pn(this._days),se=Pn(this._months);X=z((T=z(pt/60))/60),pt%=60,T%=60;var Ae=z(se/12),Re=se%=12,Ue=Et,$e=X,Ge=T,Xt=pt?pt.toFixed(3).replace(/\.?0+$/,""):"",Zt=this.asSeconds();if(!Zt)return"P0D";var et=Zt<0?"-":"",St=pn(this._months)!==pn(Zt)?"-":"",Vt=pn(this._days)!==pn(Zt)?"-":"",Ce=pn(this._milliseconds)!==pn(Zt)?"-":"";return et+"P"+(Ae?St+Ae+"Y":"")+(Re?St+Re+"M":"")+(Ue?Vt+Ue+"D":"")+($e||Ge||Xt?"T":"")+($e?Ce+$e+"H":"")+(Ge?Ce+Ge+"M":"")+(Xt?Ce+Xt+"S":"")}var vi=f.prototype;return vi.isValid=function(){return this._isValid},vi.abs=function(){var T=this._data;return this._milliseconds=re(this._milliseconds),this._days=re(this._days),this._months=re(this._months),T.milliseconds=re(T.milliseconds),T.seconds=re(T.seconds),T.minutes=re(T.minutes),T.hours=re(T.hours),T.months=re(T.months),T.years=re(T.years),this},vi.add=function(T,X){return Ie(this,T,X,1)},vi.subtract=function(T,X){return Ie(this,T,X,-1)},vi.as=function(T){if(!this.isValid())return NaN;var X,pt,Et=this._milliseconds;if("month"===(T=Te(T))||"quarter"===T||"year"===T)switch(X=this._days+Et/864e5,pt=this._months+ke(X),T){case"month":return pt;case"quarter":return pt/3;case"year":return pt/12}else switch(X=this._days+Math.round(Be(this._months)),T){case"week":return X/7+Et/6048e5;case"day":return X+Et/864e5;case"hour":return 24*X+Et/36e5;case"minute":return 1440*X+Et/6e4;case"second":return 86400*X+Et/1e3;case"millisecond":return Math.floor(864e5*X)+Et;default:throw new Error("Unknown unit "+T)}},vi.asMilliseconds=oi,vi.asSeconds=gi,vi.asMinutes=Ki,vi.asHours=Vi,vi.asDays=kn,vi.asWeeks=bs,vi.asMonths=Hi,vi.asQuarters=sn,vi.asYears=Mi,vi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12):NaN},vi._bubble=function(){var T,X,pt,Et,se,Ae=this._milliseconds,Re=this._days,Ue=this._months,$e=this._data;return 0<=Ae&&0<=Re&&0<=Ue||Ae<=0&&Re<=0&&Ue<=0||(Ae+=864e5*je(Be(Ue)+Re),Ue=Re=0),$e.milliseconds=Ae%1e3,T=z(Ae/1e3),$e.seconds=T%60,X=z(T/60),$e.minutes=X%60,pt=z(X/60),$e.hours=pt%24,Ue+=se=z(ke(Re+=z(pt/24))),Re-=je(Be(se)),Et=z(Ue/12),Ue%=12,$e.days=Re,$e.months=Ue,$e.years=Et,this},vi.clone=function(){return ve(this)},vi.get=function(T){return T=Te(T),this.isValid()?this[T+"s"]():NaN},vi.milliseconds=Ps,vi.seconds=ys,vi.minutes=os,vi.hours=Es,vi.days=rs,vi.weeks=function(){return z(this.days()/7)},vi.months=as,vi.years=xs,vi.humanize=function(T){if(!this.isValid())return this.localeData().invalidDate();var X,pt,Et,se,Ae,Re,Ue,$e,Ge,Xt,Zt=this.localeData(),et=(X=!T,pt=Zt,Et=ve(this).abs(),se=gn(Et.as("s")),Ae=gn(Et.as("m")),Re=gn(Et.as("h")),Ue=gn(Et.as("d")),$e=gn(Et.as("M")),Ge=gn(Et.as("y")),(Xt=se<=cn.ss&&["s",se]||se<cn.s&&["ss",se]||Ae<=1&&["m"]||Ae<cn.m&&["mm",Ae]||Re<=1&&["h"]||Re<cn.h&&["hh",Re]||Ue<=1&&["d"]||Ue<cn.d&&["dd",Ue]||$e<=1&&["M"]||$e<cn.M&&["MM",$e]||Ge<=1&&["y"]||["yy",Ge])[2]=X,Xt[3]=0<+this,Xt[4]=pt,function(St,Vt,Ce,Me,ei){return ei.relativeTime(Vt||1,!!Ce,St,Me)}.apply(null,Xt));return T&&(et=Zt.pastFuture(+this,et)),Zt.postformat(et)},vi.toISOString=qn,vi.toString=qn,vi.toJSON=qn,vi.locale=Fn,vi.localeData=Li,vi.toIsoString=Rt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qn),vi.lang=dn,Lt("X",0,0,"unix"),Lt("x",0,0,"valueOf"),e("x",ne),e("X",/[+-]?\d+(\.\d{1,3})?/),g("X",function(T,X,pt){pt._d=new Date(1e3*parseFloat(T,10))}),g("x",function(T,X,pt){pt._d=new Date(v(T))}),K.version="2.24.0",i=Ji,K.fn=Q,K.min=function(){return fs("isBefore",[].slice.call(arguments,0))},K.max=function(){return fs("isAfter",[].slice.call(arguments,0))},K.now=function(){return Date.now?Date.now():+new Date},K.utc=R,K.unix=function(T){return Ji(1e3*T)},K.months=function(T,X){return te(T,X,"months")},K.isDate=u,K.locale=Ai,K.invalid=I,K.duration=ve,K.isMoment=H,K.weekdays=function(T,X,pt){return ie(T,X,pt,"weekdays")},K.parseZone=function(){return Ji.apply(null,arguments).parseZone()},K.localeData=en,K.isDuration=P,K.monthsShort=function(T,X){return te(T,X,"monthsShort")},K.weekdaysMin=function(T,X,pt){return ie(T,X,pt,"weekdaysMin")}
1,K.defineLocale=ln,K.updateLocale=function(T,X){if(null!=X){var pt,Et,se=$n;null!=(Et=En(T))&&(se=Et._config),(pt=new ae(X=qt(se,X))).parentLocale=Zi[T],Zi[T]=pt,Ai(T)}else null!=Zi[T]&&(null!=Zi[T].parentLocale?Zi[T]=Zi[T].parentLocale:null!=Zi[T]&&delete Zi[T]);return Zi[T]},K.locales=function(){return lt(Zi)},K.weekdaysShort=function(T,X,pt){return ie(T,X,pt,"weekdaysShort")},K.normalizeUnits=Te,K.relativeTimeRounding=function(T){return void 0===T?gn:"function"==typeof T&&(gn=T,!0)},K.relativeTimeThreshold=function(T,X){return void 0!==cn[T]&&(void 0===X?cn[T]:(cn[T]=X,"s"===T&&(cn.ss=X-1),!0))},K.calendarFormat=function(T,X){var pt=T.diff(X,"days",!0);return pt<-6?"sameElse":pt<-1?"lastWeek":pt<0?"lastDay":pt<1?"sameDay":pt<2?"nextDay":pt<7?"nextWeek":"sameElse"},K.prototype=Q,K.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"},K}),function(i){"function"==typeof define&&define.amd?define(["jquery"],i):i("object"==typeof exports?require("jquery"):jQuery)}(function(i){function D(F,l,r){r=i.extend(!0,{},l={content:{message:"object"==typeof l?l.message:l,title:l.title?l.title:"",icon:l.icon?l.icon:"",url:l.url?l.url:"#",target:l.target?l.target:"-"}},r),this.settings=i.extend(!0,{},K,r),this._defaults=K,"-"==this.settings.content.target&&(this.settings.content.target=this.settings.url_target),this.animations={start:"webkitAnimationStart oanimationstart MSAnimationStart animationstart",end:"webkitAnimationEnd oanimationend MSAnimationEnd animationend"},"number"==typeof this.settings.offset&&(this.settings.offset={x:this.settings.offset,y:this.settings.offset}),this.init()}var K={element:"body",position:null,type:"info",allow_dismiss:!0,newest_on_top:!1,showProgressbar:!1,placement:{from:"top",align:"right"},offset:20,spacing:10,z_index:1031,delay:5e3,timer:1e3,url_target:"_blank",mouse_over:null,animate:{enter:"animated fadeInDown",exit:"animated fadeOutUp"},onShow:null,onShown:null,onClose:null,onClosed:null,icon_type:"class",template:'<div data-notify="container" class="col-xs-11 col-sm-4 alert alert-{0}" role="alert"><button type="button" aria-hidden="true" class="close" data-notify="dismiss">×</button><span data-notify="icon"></span> <span data-notify="title">{1}</span> <span data-notify="message">{2}</span><div class="progress" data-notify="progressbar"><div class="progress-bar progress-bar-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div></div><a href="{3}" target="{4}" data-notify="url"></a></div>'};String.format=function(){for(var F=arguments[0],l=1;l<arguments.length;l++)F=F.replace(RegExp("\\{"+(l-1)+"\\}","gm"),arguments[l]);return F},i.extend(D.prototype,{init:function(){var F=this;this.buildNotify(),this.settings.content.icon&&this.setIcon(),"#"!=this.settings.content.url&&this.styleURL(),this.styleDismiss(),this.placement(),this.bind(),this.notify={$ele:this.$ele,update:function(l,r){var a={};for(var l in"string"==typeof l?a[l]=r:a=l,a)switch(l){case"type":this.$ele.removeClass("alert-"+F.settings.type),this.$ele.find('[data-notify="progressbar"] > .progress-bar').removeClass("progress-bar-"+F.settings.type),F.settings.type=a[l],this.$ele.addClass("alert-"+a[l]).find('[data-notify="progressbar"] > .progress-bar').addClass("progress-bar-"+a[l]);break;case"icon":var u=this.$ele.find('[data-notify="icon"]');"class"==F.settings.icon_type.toLowerCase()?u.removeClass(F.settings.content.icon).addClass(a[l]):(u.is("img")||u.find("img"),u.attr("src",a[l]));break;case"progress":this.$ele.data("notify-delay",F.settings.delay-F.settings.delay*(a[l]/100)),this.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",a[l]).css("width",a[l]+"%");break;case"url":this.$ele.find('[data-notify="url"]').attr("href",a[l]);break;case"target":this.$ele.find('[data-notify="url"]').attr("target",a[l]);break;default:this.$ele.find('[data-notify="'+l+'"]').html(a[l])}var L=this.$ele.outerHeight()+parseInt(F.settings.spacing)+parseInt(F.settings.offset.y);F.reposition(L)},close:function(){F.close()}}},buildNotify:function(){var F=this.settings.content;this.$ele=i(String.format(this.settings.template,this.settings.type,F.title,F.message,F.url,F.target)),this.$ele.attr("data-notify-position",this.settings.placement.from+"-"+this.settings.placement.align),this.settings.allow_dismiss||this.$ele.find('[data-notify="dismiss"]').css("display","none"),(this.settings.delay<=0&&!this.settings.showProgressbar||!this.settings.showProgressbar)&&this.$ele.find('[data-notify="progressbar"]').remove()},setIcon:function(){"class"==this.settings.icon_type.toLowerCase()?this.$ele.find('[data-notify="icon"]').addClass(this.settings.content.icon):this.$ele.find('[data-notify="icon"]').is("img")?this.$ele.find('[data-notify="icon"]').attr("src",this.settings.content.icon):this.$ele.find('[data-notify="icon"]').append('<img src="'+this.settings.content.icon+'" alt="Notify Icon" />')},styleDismiss:function(){this.$ele.find('[data-notify="dismiss"]').css({position:"absolute",right:"10px",top:"5px",zIndex:this.settings.z_index+2})},styleURL:function(){this.$ele.find('[data-notify="url"]').css({backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)",height:"100%",left:"0px",position:"absolute",top:"0px",width:"100%",zIndex:this.settings.z_index+1})},placement:function(){var F=this,l=this.settings.offset.y,r={display:"inline-block",margin:"0px auto",position:this.settings.position?this.settings.position:"body"===this.settings.element?"fixed":"absolute",transition:"all .5s ease-in-out",zIndex:this.settings.z_index},a=!1,u=this.settings;switch(i('[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])').each(function(){return l=Math.max(l,parseInt(i(this).css(u.placement.from))+parseInt(i(this).outerHeight())+parseInt(u.spacing))}),1==this.settings.newest_on_top&&(l=this.settings.offset.y),r[this.settings.placement.from]=l+"px",this.settings.placement.align){case"left":case"right":r[this.settings.placement.align]=this.settings.offset.x+"px";break;case"center":r.left=0,r.right=0}this.$ele.css(r).addClass(this.settings.animate.enter),i.each(Array("webkit","moz","o","ms",""),function(b,L){F.$ele[0].style[L+"AnimationIterationCount"]=1}),i(this.settings.element).append(this.$ele),1==this.settings.newest_on_top&&(l=parseInt(l)+parseInt(this.settings.spacing)+this.$ele.outerHeight(),this.reposition(l)),i.isFunction(F.settings.onShow)&&F.settings.onShow.call(this.$ele),this.$ele.one(this.animations.start,function(b){a=!0}).one(this.animations.end,function(b){i.isFunction(F.settings.onShown)&&F.settings.onShown.call(this)}),setTimeout(function(){a||i.isFunction(F.settings.onShown)&&F.settings.onShown.call(this)},600)},bind:function(){var F=this;if(this.$ele.find('[data-notify="dismiss"]').on("click",function(){F.close()}),this.$ele.mouseover(function(r){i(this).data("data-hover","true")}).mouseout(function(r){i(this).data("data-hover","false")}),this.$ele.data("data-hover","false"),0<this.settings.delay){F.$ele.data("notify-delay",F.settings.delay);var l=setInterval(function(){var r=parseInt(F.$ele.data("notify-delay"))-F.settings.timer;if("false"===F.$ele.data("data-hover")&&"pause"==F.settings.mouse_over||"pause"!=F.settings.mouse_over){var a=(F.settings.delay-r)/F.settings.delay*100;F.$ele.data("notify-delay",r),F.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",a).css("width",a+"%")}r<=-F.settings.timer&&(clearInterval(l),F.close())},F.settings.timer)}},close:function(){var F=this,l=parseInt(this.$ele.css(this.settings.placement.from)),r=!1;this.$ele.data("closing","true").addClass(this.settings.animate.exit),F.reposition(l),i.isFunction(F.settings.onClose)&&F.settings.onClose.call(this.$ele),this.$ele.one(this.animations.start,function(a){r=!0}).one(this.animations.end,function(a){i(this).remove(),i.isFunction(F.settings.onClosed)&&F.settings.onClosed.call(this)}),setTimeout(function(){r||(F.$ele.remove(),F.settings.onClosed&&F.settings.onClosed(F.$ele))},600)},reposition:function(F){var l=this,r='[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])',a=this.$ele.nextAll(r);1==this.settings.newest_on_top&&(a=this.$ele.prevAll(r)),a.each(function(){i(this).css(l.settings.placement.from,F),F=parseInt(F)+parseInt(l.settings.spacing)+i(this).outerHeight()})}}),i.notify=function(F,l){return new D(this,F,l).notify},i.notifyDefaults=function(F){return K=i.extend(!0,{},K,F)},i.notifyClose=function(F){void 0===F||"all"==F?i("[data-notify]").find('[data-notify="dismiss"]').trigger("click"):i('[data-notify-position="'+F+'"]').find('[data-notify="dismiss"]').trigger("click")}}),function(i,D,K){var F="ontouchstart"in K,l=function(){var u=K.createElement("div"),b=K.documentElement;if(!("pointerEvents"in u.style))return!1;u.style.pointerEvents="auto",u.style.pointerEvents="x",b.appendChild(u);var L=D.getComputedStyle&&"auto"===D.getComputedStyle(u,"").pointerEvents;return b.removeChild(u),!!L}(),r={listNodeName:"ol",itemNodeName:"li",rootClass:"dd",listClass:"dd-list",itemClass:"dd-item",dragClass:"dd-dragel",handleClass:"dd-handle",collapsedClass:"dd-collapsed",placeClass:"dd-placeholder",noDragClass:"dd-nodrag",emptyClass:"dd-empty",expandBtnHTML:'<button data-action="expand" type="button">Expand</button>',collapseBtnHTML:'<button data-action="collapse" type="button">Collapse</button>',group:0,maxDepth:5,threshold:20};function a(u,b){this.w=i(K),this.el=i(u),this.options=i.extend({},r,b),this.init()}a.prototype={init:function(){var u=this;function b(R){var k=i(R.target);if(!k.hasClass(u.options.handleClass)){if(k.closest("."+u.options.noDragClass).length)return;k=k.closest("."+u.options.handleClass)}k.length&&!u.dragEl&&(u.isTouch=/^touch/.test(R.type),u.isTouch&&1!==R.touches.length||(
1R.preventDefault(),u.dragStart(R.touches?R.touches[0]:R)))}function L(R){u.dragEl&&(R.preventDefault(),u.dragMove(R.touches?R.touches[0]:R))}function W(R){u.dragEl&&(R.preventDefault(),u.dragStop(R.touches?R.touches[0]:R))}u.reset(),u.el.data("nestable-group",this.options.group),u.placeEl=i('<div class="'+u.options.placeClass+'"/>'),i.each(this.el.find(u.options.itemNodeName),function(R,k){u.setParent(i(k))}),u.el.on("click","button",function(R){if(!u.dragEl){var k=i(R.currentTarget),N=k.data("action"),I=k.parent(u.options.itemNodeName);"collapse"===N&&u.collapseItem(I),"expand"===N&&u.expandItem(I)}}),F&&(u.el[0].addEventListener("touchstart",b,!1),D.addEventListener("touchmove",L,!1),D.addEventListener("touchend",W,!1),D.addEventListener("touchcancel",W,!1)),u.el.on("mousedown",b),u.w.on("mousemove",L),u.w.on("mouseup",W)},serialize:function(){var u=this;return step=function(b,L){var W=[];return b.children(u.options.itemNodeName).each(function(){var R=i(this),k=i.extend({},R.data()),N=R.children(u.options.listNodeName);N.length&&(k.children=step(N,L+1)),W.push(k)}),W},step(u.el.find(u.options.listNodeName).first(),0)},serialise:function(){return this.serialize()},reset:function(){this.mouse={offsetX:0,offsetY:0,startX:0,startY:0,lastX:0,lastY:0,nowX:0,nowY:0,distX:0,distY:0,dirAx:0,dirX:0,dirY:0,lastDirX:0,lastDirY:0,distAxX:0,distAxY:0},this.isTouch=!1,this.moving=!1,this.dragEl=null,this.dragRootEl=null,this.dragDepth=0,this.hasNewRoot=!1,this.pointEl=null},expandItem:function(u){u.removeClass(this.options.collapsedClass),u.children('[data-action="expand"]').hide(),u.children('[data-action="collapse"]').show(),u.children(this.options.listNodeName).show()},collapseItem:function(u){u.children(this.options.listNodeName).length&&(u.addClass(this.options.collapsedClass),u.children('[data-action="collapse"]').hide(),u.children('[data-action="expand"]').show(),u.children(this.options.listNodeName).hide())},expandAll:function(){var u=this;u.el.find(u.options.itemNodeName).each(function(){u.expandItem(i(this))})},collapseAll:function(){var u=this;u.el.find(u.options.itemNodeName).each(function(){u.collapseItem(i(this))})},setParent:function(u){u.children(this.options.listNodeName).length&&(u.prepend(i(this.options.expandBtnHTML)),u.prepend(i(this.options.collapseBtnHTML))),u.children('[data-action="expand"]').hide()},unsetParent:function(u){u.removeClass(this.options.collapsedClass),u.children("[data-action]").remove(),u.children(this.options.listNodeName).remove()},dragStart:function(u){var b=this.mouse,L=i(u.target),W=L.closest(this.options.itemNodeName);this.placeEl.css("height",W.height()),b.offsetX=void 0!==u.offsetX?u.offsetX:u.pageX-L.offset().left,b.offsetY=void 0!==u.offsetY?u.offsetY:u.pageY-L.offset().top,b.startX=b.lastX=u.pageX,b.startY=b.lastY=u.pageY,this.dragRootEl=this.el,this.dragEl=i(K.createElement(this.options.listNodeName)).addClass(this.options.listClass+" "+this.options.dragClass),this.dragEl.css("width",W.width()),W.after(this.placeEl),W[0].parentNode.removeChild(W[0]),W.appendTo(this.dragEl),i(K.body).append(this.dragEl),this.dragEl.css({left:u.pageX-b.offsetX,top:u.pageY-b.offsetY});var R,k,N=this.dragEl.find(this.options.itemNodeName);for(R=0;R<N.length;R++)(k=i(N[R]).parents(this.options.listNodeName).length)>this.dragDepth&&(this.dragDepth=k)},dragStop:function(u){var b=this.dragEl.children(this.options.itemNodeName).first();b[0].parentNode.removeChild(b[0]),this.placeEl.replaceWith(b),this.dragEl.remove(),this.el.trigger("change"),this.hasNewRoot&&this.dragRootEl.trigger("change"),this.reset()},dragMove:function(u){var b,L,W,R=this.options,k=this.mouse;this.dragEl.css({left:u.pageX-k.offsetX,top:u.pageY-k.offsetY}),k.lastX=k.nowX,k.lastY=k.nowY,k.nowX=u.pageX,k.nowY=u.pageY,k.distX=k.nowX-k.lastX,k.distY=k.nowY-k.lastY,k.lastDirX=k.dirX,k.lastDirY=k.dirY,k.dirX=0===k.distX?0:0<k.distX?1:-1,k.dirY=0===k.distY?0:0<k.distY?1:-1;var N=Math.abs(k.distX)>Math.abs(k.distY)?1:0;if(!k.moving)return k.dirAx=N,void(k.moving=!0);k.dirAx!==N?(k.distAxX=0,k.distAxY=0):(k.distAxX+=Math.abs(k.distX),0!==k.dirX&&k.dirX!==k.lastDirX&&(k.distAxX=0),k.distAxY+=Math.abs(k.distY),0!==k.dirY&&k.dirY!==k.lastDirY&&(k.distAxY=0)),k.dirAx=N,k.dirAx&&k.distAxX>=R.threshold&&(k.distAxX=0,W=this.placeEl.prev(R.itemNodeName),0<k.distX&&W.length&&!W.hasClass(R.c
1ollapsedClass)&&(b=W.find(R.listNodeName).last(),this.placeEl.parents(R.listNodeName).length+this.dragDepth<=R.maxDepth&&(b.length?(b=W.children(R.listNodeName).last()).append(this.placeEl):((b=i("<"+R.listNodeName+"/>").addClass(R.listClass)).append(this.placeEl),W.append(b),this.setParent(W)))),k.distX<0&&(this.placeEl.next(R.itemNodeName).length||(L=this.placeEl.parent(),this.placeEl.closest(R.itemNodeName).after(this.placeEl),L.children().length||this.unsetParent(L.parent()))));var I=!1;if(l||(this.dragEl[0].style.visibility="hidden"),this.pointEl=i(K.elementFromPoint(u.pageX-K.body.scrollLeft,u.pageY-(D.pageYOffset||K.documentElement.scrollTop))),l||(this.dragEl[0].style.visibility="visible"),this.pointEl.hasClass(R.handleClass)&&(this.pointEl=this.pointEl.parent(R.itemNodeName)),this.pointEl.hasClass(R.emptyClass))I=!0;else if(!this.pointEl.length||!this.pointEl.hasClass(R.itemClass))return;var x=this.pointEl.closest("."+R.rootClass),S=this.dragRootEl.data("nestable-id")!==x.data("nestable-id");if(!k.dirAx||S||I){if(S&&R.group!==x.data("nestable-group")||this.dragDepth-1+this.pointEl.parents(R.listNodeName).length>R.maxDepth)return;var A=u.pageY<this.pointEl.offset().top+this.pointEl.height()/2;L=this.placeEl.parent(),I?((b=i(K.createElement(R.listNodeName)).addClass(R.listClass)).append(this.placeEl),this.pointEl.replaceWith(b)):A?this.pointEl.before(this.placeEl):this.pointEl.after(this.placeEl),L.children().length||this.unsetParent(L.parent()),this.dragRootEl.find(R.itemNodeName).length||this.dragRootEl.append('<div class="'+R.emptyClass+'"/>'),S&&(this.dragRootEl=x,this.hasNewRoot=this.el[0]!==this.dragRootEl[0])}}},i.fn.nestable=function(u){var b=this;return this.each(function(){var L=i(this).data("nestable");L?"string"==typeof u&&"function"==typeof L[u]&&(b=L[u]()):(i(this).data("nestable",new a(this,u)),i(this).data("nestable-id",(new Date).getTime()))}),b||this}}(window.jQuery||window.Zepto,window,document),function(i,D){"object"==typeof exports&&"object"==typeof module?module.exports=D(require("moment"),require("jquery")):"function"==typeof define&&define.amd?define(["moment","jquery"],D):"object"==typeof exports?exports.FullCalendar=D(require("moment"),require("jquery")):i.FullCalendar=D(i.moment,i.jQuery)}("undefined"!=typeof self?self:this,function(i,D){return l={},K.m=F=[function(r,a){r.exports=i},,function(r,a){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,L){b.__proto__=L}||function(b,L){for(var W in L)L.hasOwnProperty(W)&&(b[W]=L[W])};a.__extends=function(b,L){function W(){this.constructor=b}u(b,L),b.prototype=null===L?Object.create(L):(W.prototype=L.prototype,new W)}},function(r,a){r.exports=D},function(r,a,u){function b(lt){lt.height("")}function L(lt){var at,qt,ae,mt=lt[0].offsetWidth-lt[0].clientWidth,wt=lt[0].offsetHeight-lt[0].clientHeight;return mt=W(mt),at={left:0,right:0,top:0,bottom:wt=W(wt)},null===ft&&(ae=(qt=tt("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body")).children().offset().left>qt.offset().left,qt.remove(),ft=ae),ft&&"rtl"===lt.css("direction")?at.left=mt:at.right=mt,at}function W(lt){return lt=Math.max(0,lt),Math.round(lt)}function R(lt,at){return parseFloat(lt.css(at))||0}function k(lt){lt.preventDefault()}function N(lt,at,mt,wt,qt){if(mt.func)return mt.func(lt,at);var ae=lt[mt.field],ye=at[mt.field];return null==ae&&wt&&(ae=wt[mt.field]),null==ye&&qt&&(ye=qt[mt.field]),I(ae,ye)*(mt.order||1)}function I(lt,at){return lt||at?null==at?-1:null==lt?1:"string"===tt.type(lt)||"string"===tt.type(at)?String(lt).localeCompare(String(at)):lt-at:0}function x(lt,at){var mt,wt,qt,ae,ye,he;for(mt=0;mt<a.unitsDesc.length&&(ae=wt=a.unitsDesc[mt],ye=lt,!(1<=(qt=null!=(he=
1at)?he.diff(ye,ae,!0):v.isDuration(ye)?ye.as(ae):ye.end.diff(ye.start,ae,!0))&&z(qt)));mt++);return wt}function S(lt){return Boolean(lt.hours()||lt.minutes()||lt.seconds()||lt.milliseconds())}function A(){for(var lt=[],at=0;at<arguments.length;at++)lt[at]=arguments[at];var mt=window.console;if(mt&&mt.log)return mt.log.apply(mt,lt)}function O(lt,at){return Rt.call(lt,at)}function H(lt){return(lt+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function z(lt){return lt%1==0}Object.defineProperty(a,"__esModule",{value:!0});var v=u(0),tt=u(3);a.compensateScroll=function(lt,at){at.left&<.css({"border-left-width":1,"margin-left":at.left-1}),at.right&<.css({"border-right-width":1,"margin-right":at.right-1})},a.uncompensateScroll=function(lt){lt.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})},a.disableCursor=function(){tt("body").addClass("fc-not-allowed")},a.enableCursor=function(){tt("body").removeClass("fc-not-allowed")},a.distributeHeight=function(lt,at,mt){var wt=Math.floor(at/lt.length),qt=Math.floor(at-wt*(lt.length-1)),ae=[],ye=[],he=[],Te=0;b(lt),lt.each(function(Ne,Ot){var w=Ne===lt.length-1?qt:wt,Y=tt(Ot).outerHeight(!0);Y<w?(ae.push(Ot),ye.push(Y),he.push(tt(Ot).height())):Te+=Y}),mt&&(at-=Te,wt=Math.floor(at/ae.length),qt=Math.floor(at-wt*(ae.length-1))),tt(ae).each(function(Ne,Ot){var w=Ne===ae.length-1?qt:wt,Y=ye[Ne],V=w-(Y-he[Ne]);Y<w&&tt(Ot).height(V)})},a.undistributeHeight=b,a.matchCellWidths=function(lt){var at=0;return lt.find("> *").each(function(mt,wt){var qt=tt(wt).outerWidth();at<qt&&(at=qt)}),at++,lt.width(at),at},a.subtractInnerElHeight=function(lt,at){var mt,wt=lt.add(at);return wt.css({position:"relative",left:-1}),mt=lt.outerHeight()-at.outerHeight(),wt.css({position:"",left:""}),mt},a.getScrollParent=function(lt){var at=lt.css("position"),mt=lt.parents().filter(function(){var wt=tt(this);return/(auto|scroll)/.test(wt.css("overflow")+wt.css("overflow-y")+wt.css("overflow-x"))}).eq(0);return"fixed"!==at&&mt.length?mt:tt(lt[0].ownerDocument||document)},a.getOuterRect=function(lt,at){var mt=lt.offset(),wt=mt.left-(at?at.left:0),qt=mt.top-(at?at.top:0);return{left:wt,right:wt+lt.outerWidth(),top:qt,bottom:qt+lt.outerHeight()}},a.getClientRect=function(lt,at){var mt=lt.offset(),wt=L(lt),qt=mt.left+R(lt,"border-left-width")+wt.left-(at?at.left:0),ae=mt.top+R(lt,"border-top-width")+wt.top-(at?at.top:0);return{left:qt,right:qt+lt[0].clientWidth,top:ae,bottom:ae+lt[0].clientHeight}},a.getContentRect=function(lt,at){var mt=lt.offset(),wt=mt.left+R(lt,"border-left-width")+R(lt,"padding-left")-(at?at.left:0),qt=mt.top+R(lt,"border-top-width")+R(lt,"padding-top")-(at?at.top:0);return{left:wt,right:wt+lt.width(),top:qt,bottom:qt+lt.height()}},a.getScrollbarWidths=L;var ft=null;a.isPrimaryMouseButton=function(lt){return 1===lt.which&&!lt.ctrlKey},a.getEvX=function(lt){var at=lt.originalEvent.touches;return at&&at.length?at[0].pageX:lt.pageX},a.getEvY=function(lt){var at=lt.originalEvent.touches;return at&&at.length?at[0].pageY:lt.pageY},a.getEvIsTouch=function(lt){return/^touch/.test(lt.type)},a.preventSelection=function(lt){lt.addClass("fc-unselectable").on("selectstart",k)},a.allowSelection=function(lt){lt.removeClass("fc-unselectable").off("selectstart",k)},a.preventDefault=k,a.intersectRects=function(lt,at){var mt={left:Math.max(lt.left,at.left),right:Math.min(lt.right,at.right),top:Math.max(lt.top,at.top),bottom:Math.min(lt.bottom,at.bottom)};return mt.left<mt.right&&mt.top<mt.bottom&&mt},a.constrainPoint=function(lt,at){return{left:Math.min(Math.max(lt.left,at.left),at.right),top:Math.min(Math.max(lt.top,at.top),at.bottom)}},a.getRectCenter=function(lt){return{left:(lt.left+lt.right)/2,top:(lt.top+lt.bottom)/2}},a.diffPoints=function(lt,at){return{left:lt.left-at.left,top:lt.top-at.top}},a.parseFieldSpecs=function(lt){var at,mt,wt=[],qt=[];for("string"==typeof lt?qt=lt.split(/\s*,\s*/):"function"==typeof lt?qt=[lt]:tt.isArray(lt)&&(qt=lt),at=0;at<qt.length;at++)"string"==typeof(mt=qt[at])?wt.push("-"===mt.charAt(0)?{field:mt.substring(1),order:-1}:{field:mt,order:1}):"function"==typeof mt&&wt.push({func:mt});return wt},a.compareByFieldSpecs=function(lt,at,mt,wt,qt){var ae,ye;for(ae=0;ae<mt.length;ae++)if(ye=N(lt,at,mt[ae],wt,qt))return ye;return 0},a.compareByFieldSpec=N,a.flexibleCompare=I,a.dayIDs=["sun","mon","tue","wed","thu","fri","sat"],a.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"],a.diffDayTime=function(lt,at){return v.duration({days:lt.clone().stripTime().diff(at.clone().stripTime(),"days"),ms:lt.time()-at.time()})},a.diffDay=function(lt,at){return v.duration({days:lt.clone().stripTime().diff(at.clone().stripTime(),"days")})},a.diffByUnit=function(lt,at,mt){return v.duration(Math.round(lt.diff(at,mt,!0)),mt)},a.computeGreatestUnit=x,a.computeDurationGreatestUnit=function(lt,at){var mt=x(lt);return"week"===mt&&"object"==typeof at&&at.days&&(mt="day"),mt},a.divideRangeByDuration=function(lt,at,mt){var wt;return S(mt)?(at-lt)/mt:(wt=mt.asMonths(),1<=Math.abs(wt)&&z(wt)?at.diff(lt,"months",!0)/wt:at.diff(lt,"days",!0)/mt.asDays())},a.divideDurationByDuration=function(lt,at){var mt,wt;return S(lt)||S(at)?lt/at:(mt=lt.asMonths(),wt=at.asMonths(),1<=Math.abs(mt)&&z(mt)&&1<=Math.abs(wt)&&z(wt)?mt/wt:lt.asDays()/at.asDays())},a.multiplyDuration=function(lt,at){var mt;return S(lt)?v.duration(lt*at):(mt=lt.asMonths(),1<=Math.abs(mt)&&z(mt)?v.duration({months:mt*at}):v.duration({days:lt.asDays()*at}))},a.durationHasTime=S,a.isNativeDate=function(lt){return"[object Date]"===Object.prototype.toString.call(lt)||lt instanceof Date}
1,a.isTimeString=function(lt){return"string"==typeof lt&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(lt)},a.log=A,a.warn=function(){for(var lt=[],at=0;at<arguments.length;at++)lt[at]=arguments[at];var mt=window.console;return mt&&mt.warn?mt.warn.apply(mt,lt):A.apply(null,lt)};var Rt={}.hasOwnProperty;a.mergeProps=function lt(at,mt){var wt,qt,ae,ye,he,Te,Ne={};if(mt)for(wt=0;wt<mt.length;wt++){for(qt=mt[wt],ae=[],ye=at.length-1;0<=ye;ye--)if("object"==typeof(he=at[ye][qt]))ae.unshift(he);else if(void 0!==he){Ne[qt]=he;break}ae.length&&(Ne[qt]=lt(ae))}for(wt=at.length-1;0<=wt;wt--)for(qt in Te=at[wt])qt in Ne||(Ne[qt]=Te[qt]);return Ne},a.copyOwnProps=function(lt,at){for(var mt in lt)O(lt,mt)&&(at[mt]=lt[mt])},a.hasOwnProp=O,a.applyAll=function(lt,at,mt){if(tt.isFunction(lt)&&(lt=[lt]),lt){var wt=void 0,qt=void 0;for(wt=0;wt<lt.length;wt++)qt=lt[wt].apply(at,mt)||qt;return qt}},a.removeMatching=function(lt,at){for(var mt=0,wt=0;wt<lt.length;)at(lt[wt])?(lt.splice(wt,1),mt++):wt++;return mt},a.removeExact=function(lt,at){for(var mt=0,wt=0;wt<lt.length;)lt[wt]===at?(lt.splice(wt,1),mt++):wt++;return mt},a.isArraysEqual=function(lt,at){var mt,wt=lt.length;if(null==wt||wt!==at.length)return!1;for(mt=0;mt<wt;mt++)if(lt[mt]!==at[mt])return!1;return!0},a.firstDefined=function(){for(var lt=[],at=0;at<arguments.length;at++)lt[at]=arguments[at];for(var mt=0;mt<lt.length;mt++)if(void 0!==lt[mt])return lt[mt]},a.htmlEscape=H,a.stripHtmlEntities=function(lt){return lt.replace(/&.*?;/g,"")},a.cssToStr=function(lt){var at=[];return tt.each(lt,function(mt,wt){null!=wt&&at.push(mt+":"+wt)}),at.join(";")},a.attrsToStr=function(lt){var at=[];return tt.each(lt,function(mt,wt){null!=wt&&at.push(mt+'="'+H(wt)+'"')}),at.join(" ")},a.capitaliseFirstLetter=function(lt){return lt.charAt(0).toUpperCase()+lt.slice(1)},a.compareNumbers=function(lt,at){return lt-at},a.isInt=z,a.proxy=function(lt,at){var mt=lt[at];return function(){return mt.apply(lt,arguments)}},a.debounce=function(lt,at,mt){void 0===mt&&(mt=!1);var wt,qt,ae,ye,he,Te=function(){var Ne=+new Date-ye;Ne<at?wt=setTimeout(Te,at-Ne):(wt=null,mt||(he=lt.apply(ae,qt),ae=qt=null))};return function(){ae=this,qt=arguments,ye=+new Date;var Ne=mt&&!wt;return wt=wt||setTimeout(Te,at),Ne&&(he=lt.apply(ae,qt),ae=qt=null),he}}},function(r,a,u){function b(N,I){return N.startMs-I.startMs}Object.defineProperty(a,"__esModule",{value:!0});var L=u(0),W=u(11),R=(k.invertRanges=function(N,I){var x,S,A=[],O=I.startMs;for(N.sort(b),x=0;x<N.length;x++)(S=N[x]).startMs>O&&A.push(new k(O,S.startMs)),S.endMs>O&&(O=S.endMs);return O<I.endMs&&A.push(new k(O,I.endMs)),A},k.prototype.intersect=function(N){var I=this.startMs,x=this.endMs,S=null;return null!=N.startMs&&(I=null==I?N.startMs:Math.max(I,N.startMs)),null!=N.endMs&&(x=null==x?N.endMs:Math.min(x,N.endMs)),(null==I||null==x||I<x)&&((S=new k(I,x)).isStart=this.isStart&&I===this.startMs,S.isEnd=this.isEnd&&x===this.endMs),S},k.prototype.intersectsWith=function(N){return(null==this.endMs||null==N.startMs||this.endMs>N.startMs)&&(null==this.startMs||null==N.endMs||this.startMs<N.endMs)},k.prototype.containsRange=function(N){return(null==this.startMs||null!=N.startMs&&N.startMs>=this.startMs)&&(null==this.endMs||null!=N.endMs&&N.endMs<=this.endMs)},k.prototype.containsDate=function(N){var I=N.valueOf();return(null==this.startMs||I>=this.startMs)&&(null==this.endMs||I<this.endMs)},k.prototype.constrainDate=function(N){var I=N.valueOf();return null!=this.startMs&&I<this.startMs&&(I=this.startMs),null!=this.endMs&&I>=this.endMs&&(I=this.endMs-1),I},k.prototype.equals=function(N){return this.startMs===N.startMs&&this.endMs===N.endMs},k.prototype.clone=function(){var N=new k(this.startMs,this.endMs);return N.isStart=this.isStart,N.isEnd=this.isEnd,N},k.prototype.getStart=function(){return null!=this.startMs?W.default.utc(this.startMs).stripZone():null},k.prototype.getEnd=function(){return null!=this.endMs?W.default.utc(this.endMs).stripZone():null},k.prototype.as=function(N){return L.utc(this.endMs).diff(L.utc(this.startMs),N,!0)},k);function k(N,I){this.isStart=!0,this.isEnd=!0,L.isMoment(N)&&(N=N.clone().stripZone()),L.isMoment(I)&&(I=I.clone().stripZone()),N&&(this.startMs=N.valueOf()),I&&(this.endMs=I.valueOf())}a.default=R},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(52),k=u(35),N=u(36),I=(L.__extends(x,b=k.default),x.parse=function(S,A){var O=new this(A);return!("object"!=typeof S||!O.applyProps(S))&&O},x.normalizeId=function(S){return S?String(S):null},x.prototype.fetch=function(S,A,O){},x.prototype.removeEventDefsById=function(S){},x.prototype.removeAllEventDefs=function(){},x.prototype.getPrimitive=function(S){},x.prototype.parseEventDefs=function(S){var A,O,H=[];for(A=0;A<S.length;A++)(O=this.parseEventDef(S[A]))&&H.push(O);return H},x.prototype.parseEventDef=function(S){var A=this.calendar.opt("eventDataTransform"),O=this.eventDataTransform;return A&&(S=A(S,this.calendar)),O&&(S=O(S,this.calendar)),N.default.parse(S,this)}
1,x.prototype.applyManualStandardProps=function(S){return null!=S.id&&(this.id=x.normalizeId(S.id)),W.isArray(S.className)?this.className=S.className:"string"==typeof S.className&&(this.className=S.className.split(/\s+/)),!0},x.uuid=0,x.defineStandardProps=R.default.defineStandardProps,x.copyVerbatimStandardProps=R.default.copyVerbatimStandardProps,x);function x(S){var A=b.call(this)||this;return A.calendar=S,A.className=[],A.uid=String(x.uuid++),A}a.default=I,R.default.mixInto(I),I.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(15),k=0,N=(L.__extends(I,b=R.default),I.prototype.listenTo=function(x,S,A){if("object"==typeof S)for(var O in S)S.hasOwnProperty(O)&&this.listenTo(x,O,S[O]);else"string"==typeof S&&x.on(S+"."+this.getListenerNamespace(),W.proxy(A,this))},I.prototype.stopListeningTo=function(x,S){x.off((S||"")+"."+this.getListenerNamespace())},I.prototype.getListenerNamespace=function(){return null==this.listenerId&&(this.listenerId=k++),"_listener"+this.listenerId},I);function I(){return null!==b&&b.apply(this,arguments)||this}a.default=N},,function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(37),R=u(53),k=u(16),N=(L.__extends(I,b=W.default),I.prototype.buildInstances=function(){return[this.buildInstance()]},I.prototype.buildInstance=function(){return new R.default(this,this.dateProfile)},I.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},I.prototype.clone=function(){var x=b.prototype.clone.call(this);return x.dateProfile=this.dateProfile,x},I.prototype.rezone=function(){var x=this.source.calendar,S=this.dateProfile;this.dateProfile=new k.default(x.moment(S.start),S.end?x.moment(S.end):null,x)},I.prototype.applyManualStandardProps=function(x){var S=b.prototype.applyManualStandardProps.call(this,x),A=k.default.parse(x,this.source);return!!A&&(this.dateProfile=A,null!=x.date&&(this.miscProps.date=x.date),S)},I);function I(){return null!==b&&b.apply(this,arguments)||this}(a.default=N).defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},,function(r,a,u){function b(O,H,z){void 0===H&&(H=!1),void 0===z&&(z=!1);var v,tt,ft,Rt,lt=O[0],at=1===O.length&&"string"==typeof lt;return L.isMoment(lt)||R.isNativeDate(lt)||void 0===lt?Rt=L.apply(null,O):(tt=v=!1,at?k.test(lt)?(O=[lt+="-01"],tt=v=!0):(ft=N.exec(lt))&&(v=!ft[5],tt=!0):W.isArray(lt)&&(tt=!0),Rt=H||v?L.utc.apply(L,O):L.apply(null,O),v?(Rt._ambigTime=!0,Rt._ambigZone=!0):z&&(tt?Rt._ambigZone=!0:at&&Rt.utcOffset(lt))),Rt._fullCalendar=!0,Rt}Object.defineProperty(a,"__esModule",{value:!0});var L=u(0),W=u(3),R=u(4),k=/^\s*\d{4}-\d\d$/,N=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,I=L.fn;a.newMomentProto=I;var x=W.extend({},I);a.oldMomentProto=x;var S=L.momentProperties;function A(){return b(arguments)}S.push("_fullCalendar"),S.push("_ambigTime"),S.push("_ambigZone"),a.oldMomentFormat=function(O,H){return x.format.call(O,H)},(a.default=A).utc=function(){var O=b(arguments,!0);return O.hasTime()&&O.utc(),O},A.parseZone=function(){return b(arguments,!0,!0)},I.week=I.weeks=function(O){var H=this._locale._fullCalendar_weekCalc;return null==O&&"function"==typeof H?H(this):"ISO"===H?x.isoWeek.apply(this,arguments):x.week.apply(this,arguments)},I.time=function(O){if(!this._fullCalendar)return x.time.apply(this,arguments);if(null==O)return L.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,L.isDuration(O)||L.isMoment(O)||(O=L.duration(O));var H=0;return L.isDuration(O)&&(H=24*Math.floor(O.asDays())),this.hours(H+O.hours()).minutes(O.minutes()).seconds(O.seconds()).milliseconds(O.milliseconds())},I.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this},I.hasTime=function(){return!this._ambigTime},I.stripZone=function(){var O;return this._ambigZone||(O=this._ambigTime,this.utc(!0),this._ambigTime=O||!1,this._ambigZone=!0),this},I.hasZone=function(){return!this._ambigZone},I.local=function(O){return x.local.call(this,this._ambigZone||O),this._ambigTime=!1,this._ambigZone=!1,this},I.utc=function(O){return x.utc.call(this,O),this._ambigTime=!1,this._ambigZone=!1,this},I.utcOffset=function(O){return null!=O&&(this._ambigTime=!1,this._ambigZone=!1),x.utcOffset.apply(this,arguments)}},function(r,a){Object.defineProperty(a,"__esModule",{value:!0});var u=(b.prototype.toLegacy=function(L){return{start:L.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:L.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},b);function b(L,W){this.isAllDay=!1,this.unzonedRange=L,this.isAllDay=W}a.default=u},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(15),k=(L.__extends(N,b=R.default),N.prototype.on=function(I,x){return W(this).on(I,this._prepareIntercept(x)),this},N.prototype.one=function(I,x){return W(this).one(I,this._prepareIntercept(x)),this},N.prototype._prepareIntercept=function(I){function x(S,A){return I.apply(A.context||this,A.args||[])}return I.guid||(I.guid=W.guid++),x.guid=I.guid,x},N.prototype.off=function(I,x){return W(this).off(I,x),this},N.prototype.trigger=function(I){for(var x=[],S=1;S<arguments.length;S++)x[S-1]=arguments[S];return W(this).triggerHandler(I,{args:x}),this},N.prototype.triggerWith=function(I,x,S){return W(this).triggerHandler(I,{context:x,args:S}),this},N.prototype.hasHandlers=function(I){var x=W._data(this,"events");return x&&x[I]&&0<x[I].length},N);function N(){return null!==b&&b.apply(this,arguments)||this}a.default=k},function(r,a){Object.defineProperty(a,"__esModule",{value:!0});var u=(b.prototype.opt=function(L){return this.view.opt(L)},b.prototype.end=function(){},b);function b(L){this.view=L._getView(),this.component=L}a.default=u},function(r,a){Object.defineProperty(a,"__esModule",{value:!0});var u=(b.mixInto=function(L){var W=this;Object.getOwnPropertyNames(this.prototype).forEach(function(R){L.prototype[R]||(L.prototype[R]=W.prototype[R])})},b.mixOver=function(L){var W=this;Object.getOwnPropertyNames(this.prototype).forEach(function(R){L.prototype[R]=W.prototype[R]})},b);function b(){}a.default=u},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(5),L=(W.parse=function(R,k){var N=R.start||R.date,I=R.end;if(!N)return!1;var x=k.calendar,S=x.moment(N),A=I?x.moment(I):null,O=R.allDay,H=x.opt("forceEventDuration");return!!S.isValid()&&(null==O&&null==(O=k.allDayDefault)&&(O=x.opt("allDayDefault")),!0===O?(S.stripTime(),A&&A.stripTime()):!1===O&&(S.hasTime()||S.time(0),A&&!A.hasTime()&&A.time(0)),!A||A.isValid()&&A.isAfter(S)||(A=null),!A&&H&&(A=x.getDefaultEventEnd(!S.hasTime(),S)),new W(S,A,x))},W.isStandardProp=function(R){return"start"===R||"date"===R||"end"===R||"allDay"===R},W.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},W.prototype.buildUnzonedRange=function(R){var k=this.start.clone().stripZone().valueOf(),N=this.getEnd(R).stripZone().valueOf();return new b.default(k,N)},W.prototype.getEnd=function(R){return this.end?this.end.clone():R.getDefaultEventEnd(this.isAllDay(),this.start)},W);function W(R,k,N){this.start=R,this.end=k||null,this.unzonedRange=this.buildUnzonedRange(N)}a.default=L},function(r,a,u){function b(S,A){return!S&&!A||!(!S||!A)&&S.component===A.component&&L(S,A)&&L(A,S)}function L(S,A){for(var O in S)if(!/^(component|left|right|top|bottom)$/.test(O)&&S[O]!==A[O])return!1;return!0}Object.defineProperty(a,"__esModule",{value:!0});var W,R=u(2),k=u(4),N=u(59),I=(R.__extends(x,W=N.default),x.prototype.handleInteractionStart=function(S){var A,O,H,z=this.subjectEl;this.component.hitsNeeded(),this.computeScrollBounds(),S?(H=O={left:k.getEvX(S),top:k.getEvY(S)},z&&(A=k.getOuterRect(z),H=k.constrainPoint(H,A)),this.origHit=this.queryHit(H.left,H.top),z&&this.options.subjectCenter&&(this.origHit&&(A=k.intersectRects(this.origHit,A)||A),H=k.getRectCenter(A)),this.coordAdjust=k.diffPoints(H,O)):(this.origHit=null,this.coordAdjust=null),W.prototype.handleInteractionStart.call(this,S)},x.prototype.handleDragStart=function(S){var A;W.prototype.handleDragStart.call(this,S),(A=this.queryHit(k.getEvX(S),k.getEvY(S)))&&this.handleHitOver(A)},x.prototype.handleDrag=function(S,A,O){var H;W.prototype.handleDrag.call(this,S,A,O),b(H=this.queryHit(k.getEvX(O),k.getEvY(O)),this.hit)||(this.hit&&this.handleHitOut(),H&&this.handleHitOver(H))},x.prototype.handleDragEnd=function(S){this.handleHitDone(),W.prototype.handleDragEnd.call(this,S)},x.prototype.handleHitOver=function(S){var A=b(S,this.origHit);this.hit=S,this.trigger("hitOver",this.hit,A,this.origHit)},x.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},x.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},x.prototype.handleInteractionEnd=function(S,A){W.prototype.handleInteractionEnd.call(this,S,A),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},x.prototype.handleScrollEnd=function(){W.prototype.handleScrollEnd.call(this),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},x.prototype.queryHit=function(S,A){return this.coordAdjust&&(S+=this.coordAdjust.left,A+=this.coordAdjust.top),this.component.queryHit(S,A)},x);function x(S,A){var O=W.call(this,A)||this;return O.component=S,O}a.default=I},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0}),a.version="3.10.1",a.internalApiVersion=12;var b=u(4);a.applyAll=b.applyAll,a.debounce=b.debounce,a.isInt=b.isInt,a.htmlEscape=b.htmlEscape,a.
1cssToStr=b.cssToStr,a.proxy=b.proxy,a.capitaliseFirstLetter=b.capitaliseFirstLetter,a.getOuterRect=b.getOuterRect,a.getClientRect=b.getClientRect,a.getContentRect=b.getContentRect,a.getScrollbarWidths=b.getScrollbarWidths,a.preventDefault=b.preventDefault,a.parseFieldSpecs=b.parseFieldSpecs,a.compareByFieldSpecs=b.compareByFieldSpecs,a.compareByFieldSpec=b.compareByFieldSpec,a.flexibleCompare=b.flexibleCompare,a.computeGreatestUnit=b.computeGreatestUnit,a.divideRangeByDuration=b.divideRangeByDuration,a.divideDurationByDuration=b.divideDurationByDuration,a.multiplyDuration=b.multiplyDuration,a.durationHasTime=b.durationHasTime,a.log=b.log,a.warn=b.warn,a.removeExact=b.removeExact,a.intersectRects=b.intersectRects,a.allowSelection=b.allowSelection,a.attrsToStr=b.attrsToStr,a.compareNumbers=b.compareNumbers,a.compensateScroll=b.compensateScroll,a.computeDurationGreatestUnit=b.computeDurationGreatestUnit,a.constrainPoint=b.constrainPoint,a.copyOwnProps=b.copyOwnProps,a.diffByUnit=b.diffByUnit,a.diffDay=b.diffDay,a.diffDayTime=b.diffDayTime,a.diffPoints=b.diffPoints,a.disableCursor=b.disableCursor,a.distributeHeight=b.distributeHeight,a.enableCursor=b.enableCursor,a.firstDefined=b.firstDefined,a.getEvIsTouch=b.getEvIsTouch,a.getEvX=b.getEvX,a.getEvY=b.getEvY,a.getRectCenter=b.getRectCenter,a.getScrollParent=b.getScrollParent,a.hasOwnProp=b.hasOwnProp,a.isArraysEqual=b.isArraysEqual,a.isNativeDate=b.isNativeDate,a.isPrimaryMouseButton=b.isPrimaryMouseButton,a.isTimeStr
1ing=b.isTimeString,a.matchCellWidths=b.matchCellWidths,a.mergeProps=b.mergeProps,a.preventSelection=b.preventSelection,a.removeMatching=b.removeMatching,a.stripHtmlEntities=b.stripHtmlEntities,a.subtractInnerElHeight=b.subtractInnerElHeight,a.uncompensateScroll=b.uncompensateScroll,a.undistributeHeight=b.undistributeHeight,a.dayIDs=b.dayIDs,a.unitsDesc=b.unitsDesc;var L=u(49);a.formatDate=L.formatDate,a.formatRange=L.formatRange,a.queryMostGranularFormatUnit=L.queryMostGranularFormatUnit;var W=u(32);a.datepickerLocale=W.datepickerLocale,a.locale=W.locale,a.getMomentLocaleData=W.getMomentLocaleData,a.populateInstanceComputableOptions=W.populateInstanceComputableOptions;var R=u(19);a.eventDefsToEventInstances=R.eventDefsToEventInstances,a.eventFootprintToComponentFootprint=R.eventFootprintToComponentFootprint,a.eventInstanceToEventRange=R.eventInstanceToEventRange,a.eventInstanceToUnzonedRange=R.eventInstanceToUnzonedRange,a.eventRangeToEventFootprint=R.eventRangeToEventFootprint;var k=u(11);a.moment=k.default;var N=u(13);a.EmitterMixin=N.default;var I=u(7);a.ListenerMixin=I.default;var x=u(51);a.Model=x.default;var S=u(217);a.Constraints=S.default;var A=u(55);a.DateProfileGenerator=A.default;var O=u(5);a.UnzonedRange=O.default;var H=u(12);a.ComponentFootprint=H.default;var z=u(218);a.BusinessHourGenerator=z.default;var v=u(219);a.EventPeriod=v.default;var tt=u(220);a.EventManager=tt.default;var ft=u(37);a.EventDef=ft.default;var Rt=u(39);a.EventDefMutation=Rt.default;var lt=u(36);a.EventDefParser=lt.default;var at=u(53);a.EventInstance=at.default;var mt=u(50);a.EventRange=mt.default;var wt=u(54);a.RecurringEventDef=wt.default;var qt=u(9);a.SingleEventDef=qt.default;var ae=u(40);a.EventDefDateMutation=ae.default;var ye=u(16);a.EventDateProfile=ye.default;var he=u(38);a.EventSourceParser=he.default;var Te=u(6);a.EventSource=Te.default;var Ne=u(57);a.defineThemeSystem=Ne.defineThemeSystem,a.getThemeSystemClass=Ne.getThemeSystemClass;var Ot=u(20);a.EventInstanceGroup=Ot.default;var w=u(56);a.ArrayEventSource=w.default;var Y=u(223);a.FuncEventSource=Y.default;var V=u(224);a.JsonFeedEventSource=V.default;var it=u(34);a.EventFootprint=it.default;var yt=u(35);a.Class=yt.default;var It=u(15);a.Mixin=It.default;var Lt=u(58);a.CoordCache=Lt.default;var Ut=u(225);a.Iterator=Ut.default;var de=u(59);a.DragListener=de.default;var be=u(17);a.HitDragListener=be.default;var dt=u(226);a.MouseFollower=dt.default;var Ht=u(52);a.ParsableModelMixin=Ht.default;var Gt=u(227);a.Popover=Gt.default;var ge=u(21);a.Promise=ge.default;var zt=u(228);a.TaskQueue=zt.default;var Ee=u(229);a.RenderQueue=Ee.default;var ze=u(41);a.Scroller=ze.default;var Xe=u(22);a.Theme=Xe.default;var Tt=u(230);a.Component=Tt.default;var $t=u(231);a.DateComponent=$t.default;var ee=u(42);a.InteractiveDateComponent=ee.default;var ne=u(232);a.Calendar=ne.default;var xe=u(43);a.View=xe.default;var ue=u(24);a.defineView=ue.defineView,a.getViewConfig=ue.getViewConfig;var fe=u(60);a.DayTableMixin=fe.default;var Le=u(61);a.BusinessHourRenderer=Le.default;var e=u(44);a.EventRenderer=e.default;var s=u(62);a.FillRenderer=s.default;var d=u(63);a.HelperRenderer=d.default;var g=u(233);a.ExternalDropping=g.default;var C=u(234);a.EventResizing=C.default;var U=u(64);a.EventPointing=U.default;var nt=u(235);a.EventDragging=nt.default;var ut=u(236);a.DateSelecting=ut.default;var vt=u(237);a.DateClicking=vt.default;var Wt=u(14);a.Interaction=Wt.default;var Bt=u(65);a.StandardInteractionsMixin=Bt.default;var xt=u(238);a.AgendaView=xt.default;var Ft=u(239);a.TimeGrid=Ft.default;var Kt=u(240);a.TimeGridEventRenderer=Kt.default;var ce=u(242);a.TimeGridFillRenderer=ce.default;var we=u(241);a.TimeGridHelperRenderer=we.default;var Se=u(66);a.DayGrid=Se.default;var Ye=u(243);a.DayGridEventRenderer=Ye.default;var Je=u(245);a.DayGridFillRenderer=Je.default;var ni=u(244);a.DayGridHelperRenderer=ni.default;var ci=u(67);a.BasicView=ci.default;var ri=u(68);a.BasicViewDateProfileGenerator=ri.default;var yi=u(246);a.MonthView=yi.default;var Ii=u(247);a.MonthViewDateProfileGenerator=Ii.default;var Ti=u(248);a.ListView=Ti.default;var rn=u(250);a.ListEventPointing=rn.default;var Ei=u(249);a.ListEventRenderer=Ei.default},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(50),L=u(34),W=u(12);a.eventDefsToEventInstances=function(R,k){var N,I=[];for(N=0;N<R.length;N++)I.push.apply(I,R[N].buildInstances(k));return I},a.eventInstanceToEventRange=function(R){return new b.default(R.dateProfile.unzonedRange,R.def,R)},a.eventRangeToEventFootprint=function(R){return new L.default(new W.default(R.unzonedRange,R.eventDef.isAllDay()),R.eventDef,R.eventInstance)},a.eventInstanceToUnzonedRange=function(R){return R.dateProfile.unzonedRange},a.eventFootprintToComponentFootprint=function(R){return R.componentFootprint}},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(5),L=u(19),W=u(50),R=(k.prototype.getAllEventRanges=function(N){return N?this.sliceNormalRenderRanges(N):this.eventInstances.map(L.eventInstanceToEventRange)},k.prototype.sliceRenderRanges=function(N){return this.isInverse()?this.sliceInverseRenderRanges(N):this.sliceNormalRenderRanges(N)},k.prototype.sliceNormalRenderRanges=function(N){var I,x,S,A=this.eventInstances,O=[];for(I=0;I<A.length;I++)(S=(x=A[I]).dateProfile.unzonedRange.intersect(N))&&O.push(new W.default(S,x.def,x));return O},k.prototype.sliceInverseRenderRanges=function(N){var I=this.eventInstances.map(L.eventInstanceToUnzonedRange),x=this.getEventDef();return(I=b.default.invertRanges(I,N)).map(function(S){return new W.default(S,x)})},k.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},k.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},k);function k(N){this.eventInstances=N||[]}a.default=R},function(r,a,u){function b(k,N){k.then=function(I){return"function"==typeof I?R.resolve(I(N)):k}}function L(k){k.then=function(N,I){return"function"==typeof I&&I(),k}}Object.defineProperty(a,"__esModule",{value:!0});var W=u(3),R={construct:function(k){var N=W.Deferred(),I=N.promise();return"function"==typeof k&&k(function(x){N.resolve(x),b(I,x)},function(){N.reject(),L(I)}),I},resolve:function(k){var N=W.Deferred().resolve(k).promise();return b(N,k),N},reject:function(){var k=W.Deferred().reject().promise();return L(k),k}};a.default=R},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=(W.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},W.prototype.setIconOverride=function(R){var k,N;if(b.isPlainObject(R)){for(N in k=b.extend({},this.iconClasses),R)k[N]=this.applyIconOverridePrefix(R[N]);this.iconClasses=k}else!1===R&&(this.iconClasses={})},W.prototype.applyIconOverridePrefix=function(R){var k=this.iconOverridePrefix;return k&&0!==R.indexOf(k)&&(R=k+R),R},W.prototype.getClass=function(R){return this.classes[R]||""},W.prototype.getIconClass=function(R){var k=this.iconClasses[R];return k?this.baseIconClass+" "+k:""},W.prototype.getCustomButtonIconClass=function(R){var k;return this.iconOverrideCustomButtonOption&&(k=R[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(k):""},W);function W(R){this.optionsManager=R,this.processIconOverride()}(a.default=L).prototype.classes={},L.prototype.iconClasses={},L.prototype.baseIconClass="",L.prototype.iconOverridePrefix=""},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(18),W=u(13),R=u(7);L.touchMouseIgnoreWait=500;var k=null,N=0,I=(x.get=function(){return k||(k=new x).bind(),k},x.needed=function(){x.get(),N++},x.unneeded=function(){--N||(k.unbind(),k=null)},x.prototype.bind=function(){var S=this;this.listenTo(b(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(A){S.handleTouchMove(b.Event(A))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(A){S.handleScroll(b.Event(A))},!0)},x.prototype.unbind=function(){this.stopListeningTo(b(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy,{passive:!1}),window.removeEventListener("scroll",this.handleScrollProxy,!0)},x.prototype.handleTouchStart=function(S){this.stopTouch(S,!0),this.isTouching=!0,this.trigger("touchstart",S)},x.prototype.handleTouchMove=function(S){this.isTouching&&this.trigger("touchmove",S)},x.prototype.handleTouchCancel=function(S){this.isTouching&&(this.trigger("touchcancel",S),this.stopTouch(S))},x.prototype.handleTouchEnd=function(S){this.stopTouch(S)},x.prototype.handleMouseDown=function(S){this.shouldIgnoreMouse()||this.trigger("mousedown",S
1)},x.prototype.handleMouseMove=function(S){this.shouldIgnoreMouse()||this.trigger("mousemove",S)},x.prototype.handleMouseUp=function(S){this.shouldIgnoreMouse()||this.trigger("mouseup",S)},x.prototype.handleClick=function(S){this.shouldIgnoreMouse()||this.trigger("click",S)},x.prototype.handleSelectStart=function(S){this.trigger("selectstart",S)},x.prototype.handleContextMenu=function(S){this.trigger("contextmenu",S)},x.prototype.handleScroll=function(S){this.trigger("scroll",S)},x.prototype.stopTouch=function(S,A){void 0===A&&(A=!1),this.isTouching&&(this.isTouching=!1,this.trigger("touchend",S),A||this.startTouchMouseIgnore())},x.prototype.startTouchMouseIgnore=function(){var S=this,A=L.touchMouseIgnoreWait;A&&(this.mouseIgnoreDepth++,setTimeout(function(){S.mouseIgnoreDepth--},A))},x.prototype.shouldIgnoreMouse=function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)},x);function x(){this.isTouching=!1,this.mouseIgnoreDepth=0}a.default=I,R.default.mixInto(I),W.default.mixInto(I)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(18);a.viewHash={},b.views=a.viewHash,a.defineView=function(L,W){a.viewHash[L]=W},a.getViewConfig=function(L){return a.viewHash[L]}},,,,,,,,function(r,a,u){function b(O,H){var z,v;z=a.localeOptionHash[O]||(a.localeOptionHash[O]={}),H&&(z=a.localeOptionHash[O]=N.mergeOptions([z,H])),v=L(O),W.each(S,function(tt,ft){null==z[tt]&&(z[tt]=ft(v,z))}),N.globalDefaults.locale=O}function L(O){return R.localeData(O)||R.localeData("en")}Object.defineProperty(a,"__esModule",{value:!0});var W=u(3),R=u(0),k=u(18),N=u(33),I=u(4);a.localeOptionHash={},k.locales=a.localeOptionHash;var x={buttonText:function(O){return{prev:I.stripHtmlEntities(O.prevText),next:I.stripHtmlEntities(O.nextText),today:I.stripHtmlEntities(O.currentText)}},monthYearFormat:function(O){return O.showMonthAfterYear?"YYYY["+O.yearSuffix+"] MMMM":"MMMM YYYY["+O.yearSuffix+"]"}},S={dayOfMonthFormat:function(O,H){var z=O.longDateFormat("l");return z=z.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),H.isRTL?z+=" ddd":z="ddd "+z,z},mediumTimeFormat:function(O){return O.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(O){return O.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(O){return O.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(O){return O.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(O){return O.longDateFormat("LT").replace(/\s*a$/i,"")}},A={smallDayDateFormat:function(O){return O.isRTL?"D dd":"dd D"},weekFormat:function(O){return O.isRTL?"w[ "+O.weekNumberTitle+"]":"["+O.weekNumberTitle+" ]w"},smallWeekFormat:function(O){return O.isRTL?"w["+O.weekNumberTitle+"]":"["+O.weekNumberTitle+"]w"}};a.populateInstanceComputableOptions=function(O){W.each(A,function(H,z){null==O[H]&&(O[H]=z(O))})},a.datepickerLocale=function(O,H,z){var v=a.localeOptionHash[O]||(a.localeOptionHash[O]={});v.isRTL=z.isRTL,v.weekNumberTitle=z.weekHeader,W.each(x,function(ft,Rt){v[ft]=Rt(z)});var tt=W.datepicker;tt&&(tt.regional[H]=tt.regional[O]=z,tt.regional.en=tt.regional[""],tt.setDefaults(z))},a.locale=b,a.getMomentLocaleData=L,b("en",N.englishDefaults)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(4);a.globalDefaults={titleRangeSeparator:" \u2013 ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3},a.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},a.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var L=["header","footer","buttonText","buttonIcons","themeButtonIcons"];a.mergeOptions=function(W){return b.mergeProps(W,L)}},function(r,a){Object.defineProperty(a,"__esModule",{value:!0});var u=(b.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},b);function b(L,W,R){this.componentFootprint=L,this.eventDef=W,R&&(this.eventInstance=R)}a.default=u},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(2),L=u(4),W=(R.extend=function(k){var N,I=(b.__extends(x,N=this),x);function x(){return null!==N&&N.apply(this,arguments)||this}return L.copyOwnProps(k,I.prototype),I},R.mixin=function(k){L.copyOwnProps(k,this.prototype)},R);function R(){}a.default=W},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(0),L=u(4),W=u(9),R=u(54);
1a.default={parse:function(k,N){return L.isTimeString(k.start)||b.isDuration(k.start)||L.isTimeString(k.end)||b.isDuration(k.end)?R.default.parse(k,N):W.default.parse(k,N)}}},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(52),W=(R.parse=function(k,N){var I=new this(N);return!!I.applyProps(k)&&I},R.normalizeId=function(k){return String(k)},R.generateId=function(){return"_fc"+R.uuid++},R.prototype.clone=function(){var k=new this.constructor(this.source);return k.id=this.id,k.rawId=this.rawId,k.uid=this.uid,R.copyVerbatimStandardProps(this,k),k.className=this.className.slice(),k.miscProps=b.extend({},this.miscProps),k},R.prototype.hasInverseRendering=function(){return"inverse-background"===this.getRendering()},R.prototype.hasBgRendering=function(){var k=this.getRendering();return"inverse-background"===k||"background"===k},R.prototype.getRendering=function(){return null!=this.rendering?this.rendering:this.source.rendering},R.prototype.getConstraint=function(){return null!=this.constraint?this.constraint:null!=this.source.constraint?this.source.constraint:this.source.calendar.opt("eventConstraint")},R.prototype.getOverlap=function(){return null!=this.overlap?this.overlap:null!=this.source.overlap?this.source.overlap:this.source.calendar.opt("eventOverlap")},R.prototype.isStartExplicitlyEditable=function(){return null!=this.startEditable?this.startEditable:this.source.startEditable},R.prototype.isDurationExplicitlyEditable=function(){return null!=this.durationEditable?this.durationEditable:this.source.durationEditable},R.prototype.isExplicitlyEditable=function(){return null!=this.editable?this.editable:this.source.editable},R.prototype.toLegacy=function(){var k=b.extend({},this.miscProps);return k._id=this.uid,k.source=this.source,k.className=this.className.slice(),k.allDay=this.isAllDay(),null!=this.rawId&&(k.id=this.rawId),R.copyVerbatimStandardProps(this,k),k},R.prototype.applyManualStandardProps=function(k){return this.id=null!=k.id?R.normalizeId(this.rawId=k.id):R.generateId(),this.uid=null!=k._id?String(k._id):R.generateId(),b.isArray(k.className)&&(this.className=k.className),"string"==typeof k.className&&(this.className=k.className.split(/\s+/)),!0},R.prototype.applyMiscProps=function(k){b.extend(this.miscProps,k)},R.uuid=0,R.defineStandardProps=L.default.defineStandardProps,R.copyVerbatimStandardProps=L.default.copyVerbatimStandardProps,R);function R(k){this.source=k,this.className=[],this.miscProps={}}a.default=W,L.default.mixInto(W),W.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(r,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default={sourceClasses:[],registerClass:function(u){this.sourceClasses.unshift(u)},parse:function(u,b){var L,W,R=this.sourceClasses;for(L=0;L<R.length;L++)if(W=R[L].parse(u,b))return W}}},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(4),L=u(16),W=u(37),R=u(40),k=u(9),N=(I.createFromRawProps=function(x,S,A){var O,H,z,v,tt=x.def,ft={},Rt={},lt={},at={},mt=null,wt=null;for(O in S)L.default.isStandardProp(O)?ft[O]=S[O]:tt.isStandardProp(O)?Rt[O]=S[O]:tt.miscProps[O]!==S[O]&&(lt[O]=S[O]);return(H=L.default.parse(ft,tt.source))&&(z=R.default.createFromDiff(x.dateProfile,H,A)),Rt.id!==tt.id&&(mt=Rt.id),b.isArraysEqual(Rt.className,tt.className)||(wt=Rt.className),W.default.copyVerbatimStandardProps(Rt,at),(v=new I).eventDefId=mt,v.className=wt,v.verbatimStandardProps=at,v.miscProps=lt,z&&(v.dateMutation=z),v},I.prototype.mutateSingle=function(x){var S;return this.dateMutation&&(x.dateProfile=this.dateMutation.buildNewDateProfile(S=x.dateProfile,x.source.calendar)),null!=this.eventDefId&&(x.id=W.default.normalizeId(x.rawId=this.eventDefId)),this.className&&(x.className=this.className),this.verbatimStandardProps&&k.default.copyVerbatimStandardProps(this.verbatimStandardProps,x),this.miscProps&&x.applyMiscProps(this.miscProps),S?function(){x.dateProfile=S}:function(){}},I.prototype.setDateMutation=function(x){this.dateMutation=x&&!x.isEmpty()?x:null},I.prototype.isEmpty=function(){return!this.dateMutation},I);function I(){}a.default=N},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(4),L=u(16),W=(R.createFromDiff=function(k,N,I){function x(tt,ft){return I?b.diffByUnit(tt,ft,I):N.isAllDay()?b.diffDay(tt,ft):b.diffDayTime(tt,ft)}
1var S,A,O,H=k.end&&!N.end,z=k.isAllDay()&&!N.isAllDay(),v=!k.isAllDay()&&N.isAllDay();return S=x(N.start,k.start),N.end&&(A=x(N.unzonedRange.getEnd(),k.unzonedRange.getEnd()).subtract(S)),(O=new R).clearEnd=H,O.forceTimed=z,O.forceAllDay=v,O.setDateDelta(S),O.setEndDelta(A),O},R.prototype.buildNewDateProfile=function(k,N){var I=k.start.clone(),x=null,S=!1;return k.end&&!this.clearEnd?x=k.end.clone():this.endDelta&&!x&&(x=N.getDefaultEventEnd(k.isAllDay(),I)),this.forceTimed?(S=!0,I.hasTime()||I.time(0),x&&!x.hasTime()&&x.time(0)):this.forceAllDay&&(I.hasTime()&&I.stripTime(),x&&x.hasTime()&&x.stripTime()),this.dateDelta&&(S=!0,I.add(this.dateDelta),x&&x.add(this.dateDelta)),this.endDelta&&(S=!0,x.add(this.endDelta)),this.startDelta&&(S=!0,I.add(this.startDelta)),S&&(I=N.applyTimezone(I),x=x&&N.applyTimezone(x)),!x&&N.opt("forceEventDuration")&&(x=N.getDefaultEventEnd(k.isAllDay(),I)),new L.default(I,x,N)},R.prototype.setDateDelta=function(k){this.dateDelta=k&&k.valueOf()?k:null},R.prototype.setStartDelta=function(k){this.startDelta=k&&k.valueOf()?k:null},R.prototype.setEndDelta=function(k){this.endDelta=k&&k.valueOf()?k:null},R.prototype.isEmpty=function(){return!(this.clearEnd||this.forceTimed||this.forceAllDay||this.dateDelta||this.startDelta||this.endDelta)},R);function R(){this.clearEnd=!1,this.forceTimed=!1,this.forceAllDay=!1}a.default=W},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(4),k=u(35),N=(L.__extends(I,b=k.default),I.prototype.render=function(){this.el=this.renderEl(),this.applyOverflow()},I.prototype.renderEl=function(){return this.scrollEl=W('<div class="fc-scroller"></div>')},I.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},I.prototype.destroy=function(){this.el.remove()},I.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},I.prototype.lockOverflow=function(x){var S=this.overflowX,A=this.overflowY;x=x||this.getScrollbarWidths(),"auto"===S&&(S=x.top||x.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===A&&(A=x.left||x.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":S,"overflow-y":A})},I.prototype.setHeight=function(x){this.scrollEl.height(x)},I.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},I.prototype.setScrollTop=function(x){this.scrollEl.scrollTop(x)},I.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},I.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},I.prototype.getScrollbarWidths=function(){return R.getScrollbarWidths(this.scrollEl)},I);function I(x){var S=b.call(this)||this;return S.overflowX=(x=x||{}).overflowX||x.overflow||"auto",S.overflowY=x.overflowY||x.overflow||"auto",S}a.default=N},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(4),k=u(231),N=u(23),I=(L.__extends(x,b=k.default),x.prototype.setElement=function(S){b.prototype.setElement.call(this,S),this.dateClicking&&this.dateClicking.bindToEl(S),this.dateSelecting&&this.dateSelecting.bindToEl(S),this.bindAllSegHandlersToEl(S)},x.prototype.removeElement=function(){this.endInteractions(),b.prototype.removeElement.call(this)},x.prototype.executeEventUnrender=function(){this.endInteractions(),b.prototype.executeEventUnrender.call(this)},x.prototype.bindGlobalHandlers=function(){b.prototype.bindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.bindToDocument()},x.prototype.unbindGlobalHandlers=function(){b.prototype.unbindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.unbindFromDocument()},x.prototype.bindDateHandlerToEl=function(S,A,O){var H=this;this.el.on(A,function(z){if(!W(z.target).is(H.segSelector+":not(.fc-helper),"+H.segSelector+":not(.fc-helper) *,.fc-more,a[data-goto]"))return O.call(H,z)})},x.prototype.bindAllSegHandlersToEl=function(S){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(A){A&&A.bindToEl(S)})},x.prototype.bindSegHandlerToEl=function(S,A,O){var H=this;S.on(A,this.segSelector,function(z){var v=W(z.currentTarget);if(!v.is(".fc-helper")){var tt=v.data("fc-seg");if(tt&&!H.shouldIgnoreEventPointing())return O.call(H,tt,z)}})},x.prototype.shouldIgnoreMouse=function(){return N.default.get().shouldIgnoreMouse()},x.prototype.shouldIgnoreTouch=function(){var S=this._getView();return S.isSelected||S.selectedEvent},x.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},x.prototype.canStartSelection=function(S,A){return R.getEvIsTouch(A)&&!this.canStartResize(S,A)&&(this.isEventDefDraggable(S.footprint.eventDef)||this.isEventDefResizable(S.footprint.eventDef))},x.prototype.canStartDrag=function(S,A){return!this.canStartResize(S,A)&&this.isEventDefDraggable(S.footprint.eventDef)},x.prototype.canStartResize=function(S,A){var O=this._getView(),H=S.footprint.eventDef;return(!R.getEvIsTouch(A)||O.isEventDefSelected(H))&&this.isEventDefResizable(H)&&W(A.target).is(".fc-resizer")},x.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(S){S&&S.end()})},x.prototype.isEventDefDraggable=function(S){return this.isEventDefStartEditable(S)},x.prototype.isEventDefStartEditable=function(S){var A=S.isStartExplicitlyEditable();return null==A&&null==(A=this.opt("eventStartEditable"))&&(A=this.isEventDefGenerallyEditable(S)),A},x.prototype.isEventDefGenerallyEditable=function(S){var A=S.isExplicitlyEditable();return null==A&&(A=this.opt("editable")),A},x.prototype.isEventDefResizableFromStart=function(S){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(S)},x.prototype.isEventDefResizableFromEnd=function(S){return this.isEventDefResizable(S)},x.prototype.isEventDefResizable=function(S){var A=S.isDurationExplicitlyEditable();return null==A&&null==(A=this.opt("eventDurationEditable"))&&(A=this.isEventDefGenerallyEditable(S)),A},x.prototype.diffDates=function(S,A){return this.largeUnit?R.diffByUnit(S,A,this.largeUnit):R.diffDayTime(S,A)},x.prototype.isEventInstanceGroupAllowed=function(S){var A,O=this._getView(),H=this.dateProfile,z=this.eventRangesToEventFootprints(S.getAllEventRanges());for(A=0;A<z.length;A++)if(!H.validUnzonedRange.containsRange(z[A].componentFootprint.unzonedRange))return!1;return O.calendar.constraints.isEventInstanceGroupAllowed(S)},x.prototype.isExternalInstanceGroupAllowed=function(S){var A,O=this._getView(),H=this.dateProfile,z=this.eventRangesToEventFootprints(S.getAllEventRanges());for(A=0;A<z.length;A++)if(!H.validUnzonedRange.containsRange(z[A].componentFootprint.unzonedRange))return!1;for(A=0;A<z.length;A++)if(!O.calendar.constraints.isSelectionFootprintAllowed(z[A].componentFootprint))return!1;return!0},x);function x(S,A){var O=b.call(this,S,A)||this;return O.segSelector=".fc-event-container > *",O.dateSelectingClass&&(O.dateClicking=new O.dateClickingClass(O)),O.dateSelectingClass&&(O.dateSelecting=new O.dateSelectingClass(O)),O.eventPointingClass&&(O.eventPointing=new O.eventPointingClass(O)),O.eventDraggingClass&&O.eventPointing&&(O.eventDragging=new O.eventDraggingClass(O,O.eventPointing)),O.eventResizingClass&&O.eventPointing&&(O.eventResizing=new O.eventResizingClass(O,O.eventPointing)),O.externalDroppingClass&&(O.externalDropping=new O.externalDroppingClass(O)),O}a.default=I},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(0),k=u(4),N=u(229),I=u(55),x=u(42),S=u(23),A=u(5),O=(L.__extends(H,b=x.default),H.prototype._getView=function(){return this},H.prototype.opt=function(z){return this.options[z]},H.prototype.initRenderQueue=function(){this.renderQueue=new N.default({event:this.opt("eventRenderWait")}),this.renderQueue.on("start",this.onRenderQueueStart.bind(this)),this.renderQueue.on("stop",this.onRenderQueueStop.bind(this)),this.on("before:change",this.startBatchRender),this.on("change",this.stopBatchRender)},H.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight(),this.addScroll(this.queryScroll())},H.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll(),this.calendar.thawContentHeight()},H.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},H.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},H.prototype.requestRender=function(z,v,tt){this.renderQueue.queue(z,v,tt)},H.prototype.whenSizeUpdated=function(z){this.renderQueue.isRunning?this.renderQueue.one("stop",z.bind(this)):z.call(this)},H.prototype.computeTitle=function(z){var v;return v=/^(year|month)$/.test(z.currentRangeUnit)?z.currentUnzonedRange:z.activeUnzonedRange,this.formatRange({start:this.calendar.msToMoment(v.startMs,z.isRangeAllDay),end:this.calendar.msToMoment(v.endMs,z.isRangeAllDay)},z.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(z),this.opt("titleRangeSeparator"))},H.prototype.computeTitleFormat=function(z){var v=z.currentRangeUnit;return"year"===v?"YYYY":"month"===v?this.opt("monthYearFormat"):1<z.currentUnzonedRange.as("days")?"ll":"LL"},H.prototype.setDate=function(z){var v=this.get("dateProfile"),tt=this.dateProfileGenerator.build(z,void 0,!0);v&&v.activeUnzonedRange.equals(tt.activeUnzonedRange)||this.set("dateProfile",tt)},H.prototype.unsetDate=function(){this.unset("dateProfile")},H.prototype.fetchInitialEvents=function(z){var v=this.calendar,tt=z.isRangeAllDay&&!this.usesMinMaxTime;return v.requestEvents(v.msToMoment(z.activeUnzonedRange.startMs,tt),v.msToMoment(z.activeUnzonedRange.endMs,tt))},H.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},H.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},H.prototype.setEvents=function(z){this.set("currentEvents",z),this.set("hasEvents",!0)},H.prototype.unsetEvents=function(){this.unset("currentEvents"),this.unset("hasEvents")},H.prototype.resetEvents=function(z){this.startBatchRender(),this.unsetEvents(),this.setEvents(z),this.stopBatchRender()},H.prototype.requestDateRender=function(z){var v=this;this.requestRender(function(){v.executeDateRender(z)},"date","init")},H.prototype.requestDateUnrender=function(){var z=this;this.requestRender(function(){z.executeDateUnrender()},"date","destroy")},H.prototype.executeDateRender=function(z){b.prototype.executeDateRender.call(this,z),this.render&&this.render(),this.trigger("datesRendered"),this.addScroll({isDateInit:!0}),this.startNowIndicator()},H.prototype.executeDateUnrender=function(){this.unselect(),this.stopNowIndicator(),this.trigger("before:datesUnrendered"),this.destroy&&this.destroy(),b.prototype.executeDateUnrender.call(this)}
1,H.prototype.bindBaseRenderHandlers=function(){var z=this;this.on("datesRendered",function(){z.whenSizeUpdated(z.triggerViewRender)}),this.on("before:datesUnrendered",function(){z.triggerViewDestroy()})},H.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},H.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},H.prototype.requestEventsRender=function(z){var v=this;this.requestRender(function(){v.executeEventRender(z),v.whenSizeUpdated(v.triggerAfterEventsRendered)},"event","init")},H.prototype.requestEventsUnrender=function(){var z=this;this.requestRender(function(){z.triggerBeforeEventsDestroyed(),z.executeEventUnrender()},"event","destroy")},H.prototype.requestBusinessHoursRender=function(z){var v=this;this.requestRender(function(){v.renderBusinessHours(z)},"businessHours","init")},H.prototype.requestBusinessHoursUnrender=function(){var z=this;this.requestRender(function(){z.unrenderBusinessHours()},"businessHours","destroy")},H.prototype.bindGlobalHandlers=function(){b.prototype.bindGlobalHandlers.call(this),this.listenTo(S.default.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},H.prototype.unbindGlobalHandlers=function(){b.prototype.unbindGlobalHandlers.call(this),this.stopListeningTo(S.default.get())},H.prototype.startNowIndicator=function(){var z,v,tt,ft=this;this.opt("nowIndicator")&&(z=this.getNowIndicatorUnit())&&(v=k.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),tt=this.initialNowDate.clone().startOf(z).add(1,z).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){ft.nowIndicatorTimeoutID=null,v(),tt=+R.duration(1,z),tt=Math.max(100,tt),ft.nowIndicatorIntervalID=setInterval(v,tt)},tt))},H.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add((new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},H.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},H.prototype.updateSize=function(z,v,tt){this.setHeight?this.setHeight(z,v):b.prototype.updateSize.call(this,z,v,tt),this.updateNowIndicator()},H.prototype.addScroll=function(z){var v=this.queuedScroll||(this.queuedScroll={});W.extend(v,z)},H.prototype.popScroll=function(){this.applyQueuedScroll(),this.queuedScroll=null},H.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},H.prototype.queryScroll=function(){var z={};return this.isDatesRendered&&W.extend(z,this.queryDateScroll()),z},H.prototype.applyScroll=function(z){z.isDateInit&&this.isDatesRendered&&W.extend(z,this.computeInitialDateScroll()),this.isDatesRendered&&this.applyDateScroll(z)},H.prototype.computeInitialDateScroll=function(){return{}},H.prototype.queryDateScroll=function(){return{}},H.prototype.applyDateScroll=function(z){},H.prototype.reportEventDrop=function(z,v,tt,ft){var Rt=this.calendar.eventManager.mutateEventsWithId(z.def.id,v),lt=v.dateMutation;lt&&(z.dateProfile=lt.buildNewDateProfile(z.dateProfile,this.calendar)),this.triggerEventDrop(z,lt&<.dateDelta||R.duration(),Rt,tt,ft)},H.prototype.triggerEventDrop=function(z,v,tt,ft,Rt){this.publiclyTrigger("eventDrop",{context:ft[0],args:[z.toLegacy(),v,tt,Rt,{},this]})},H.prototype.reportExternalDrop=function(z,v,tt,ft,Rt,lt){v&&this.calendar.eventManager.addEventDef(z,tt),this.triggerExternalDrop(z,v,ft,Rt,lt)},H.prototype.triggerExternalDrop=function(z,v,tt,ft,Rt){this.publiclyTrigger("drop",{context:tt[0],args:[z.dateProfile.start.clone(),ft,Rt,this]}),v&&this.publiclyTrigger("eventReceive",{context:this,args:[z.buildInstance().toLegacy(),this]})},H.prototype.reportEventResize=function(z,v,tt,ft){var Rt=this.calendar.eventManager.mutateEventsWithId(z.def.id,v);z.dateProfile=v.dateMutation.buildNewDateProfile(z.dateProfile,this.calendar),this.triggerEventResize(z,v.dateMutation.endDelta||v.dateMutation.startDelta,Rt,tt,ft)},H.prototype.triggerEventResize=function(z,v,tt,ft,Rt){this.publiclyTrigger("eventResize",{context:ft[0],args:[z.toLegacy(),v,tt,Rt,{},this]})},H.prototype.select=function(z,v){this.unselect(v),this.renderSelectionFootprint(z),this.reportSelection(z,v)},H.prototype.renderSelectionFootprint=function(z){this.renderSelection?this.renderSelection(z.toLegacy(this.calendar)):b.prototype.renderSelectionFootprint.call(this,z)},H.prototype.reportSelection=function(z,v){this.isSelected=!0,this.triggerSelect(z,v)},H.prototype.triggerSelect=function(z,v){var tt=this.calendar.footprintToDateProfile(z);this.publiclyTrigger("select",{context:this,args:[tt.start,tt.end,v,this]})},H.prototype.unselect=function(z){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[z,this]}))},H.prototype.selectEventInstance=function(z){this.selectedEventInstance&&this.selectedEventInstance===z||(this.unselectEventInstance(),this.getEventSegs().forEac
1h(function(v){v.footprint.eventInstance===z&&v.el&&v.el.addClass("fc-selected")}),this.selectedEventInstance=z)},H.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(z){z.el&&z.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},H.prototype.isEventDefSelected=function(z){return this.selectedEventInstance&&this.selectedEventInstance.def.id===z.id},H.prototype.handleDocumentMousedown=function(z){k.isPrimaryMouseButton(z)&&this.processUnselect(z)},H.prototype.processUnselect=function(z){this.processRangeUnselect(z),this.processEventUnselect(z)},H.prototype.processRangeUnselect=function(z){var v;this.isSelected&&this.opt("unselectAuto")&&((v=this.opt("unselectCancel"))&&W(z.target).closest(v).length||this.unselect(z))},H.prototype.processEventUnselect=function(z){this.selectedEventInstance&&(W(z.target).closest(".fc-selected").length||this.unselectEventInstance())},H.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},H.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},H.prototype.triggerDayClick=function(z,v,tt){var ft=this.calendar.footprintToDateProfile(z);this.publiclyTrigger("dayClick",{context:v,args:[ft.start,tt,this]})},H.prototype.isDateInOtherMonth=function(z,v){return!1},H.prototype.getUnzonedRangeOption=function(z){var v=this.opt(z);if("function"==typeof v&&(v=v.apply(null,Array.prototype.slice.call(arguments,1))),v)return this.calendar.parseUnzonedRange(v)},H.prototype.initHiddenDays=function(){var z,v=this.opt("hiddenDays")||[],tt=[],ft=0;for(!1===this.opt("weekends")&&v.push(0,6),z=0;z<7;z++)(tt[z]=-1!==W.inArray(z,v))||ft++;if(!ft)throw new Error("invalid hiddenDays");this.isHiddenDayHash=tt},H.prototype.trimHiddenDays=function(z){var v=z.getStart(),tt=z.getEnd();return v=v&&this.skipHiddenDays(v),tt=tt&&this.skipHiddenDays(tt,-1,!0),null===v||null===tt||v<tt?new A.default(v,tt):null},H.prototype.isHiddenDay=function(z){return R.isMoment(z)&&(z=z.day()),this.isHiddenDayHash[z]},H.prototype.skipHiddenDays=function(z,v,tt){void 0===v&&(v=1),void 0===tt&&(tt=!1);for(var ft=z.clone();this.isHiddenDayHash[(ft.day()+(tt?v:0)+7)%7];)ft.add(v,"days");return ft},H);function H(z,v){var tt=b.call(this,null,v.options)||this;return tt.batchRenderDepth=0,tt.isSelected=!1,tt.calendar=z,tt.viewSpec=v,tt.type=v.type,tt.name=tt.type,tt.initRenderQueue(),tt.initHiddenDays(),tt.dateProfileGenerator=new tt.dateProfileGeneratorClass(tt),tt.bindBaseRenderHandlers(),tt.eventOrderSpecs=k.parseFieldSpecs(tt.opt("eventOrder")),tt.initialize&&tt.initialize(),tt}(a.default=O).prototype.usesMinMaxTime=!1,O.prototype.dateProfileGeneratorClass=I.default,O.watch("displayingDates",["isInDom","dateProfile"],function(z){this.requestDateRender(z.dateProfile)},function(){this.requestDateUnrender()}),O.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(z){this.requestBusinessHoursRender(z.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()}),O.watch("initialEvents",["dateProfile"],function(z){return this.fetchInitialEvents(z.dateProfile)}),O.watch("bindingEvents",["initialEvents"],function(z){this.setEvents(z.initialEvents),this.bindEventChanges()},function(){this.unbindEventChanges(),this.unsetEvents()}),O.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()}),O.watch("title",["dateProfile"],function(z){return this.title=this.computeTitle(z.dateProfile)}),O.watch("legacyDateProps",["dateProfile"],function(z){var v=this.calendar,tt=z.dateProfile;this.start=v.msToMoment(tt.activeUnzonedRange.startMs,tt.isRangeAllDay),this.end=v.msToMoment(tt.activeUnzonedRange.endMs,tt.isRangeAllDay),this.intervalStart=v.msToMoment(tt.currentUnzonedRange.startMs,tt.isRangeAllDay),this.intervalEnd=v.msToMoment(tt.currentUnzonedRange.endMs,tt.isRangeAllDay)})},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(4),W=(R.prototype.opt=function(k){return this.view.opt(k)},R.prototype.rangeUpdated=function(){var k,N;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat(),null==(k=this.opt("displayEventTime"))&&(k=this.computeDisplayEventTime()),null==(N=this.opt("displayEventEnd"))&&(N=this.computeDisplayEventEnd()),this.displayEventTime=k,this.displayEventEnd=N},R.prototype.render=function(k){var N,I,x,S=this.component._getDateProfile(),A=[],O=[];for(N in k)x=(I=k[N]).sliceRenderRanges(S.activeUnzonedRange),I.getEventDef().hasBgRendering()?A.push.apply(A,x):O.push.apply(O,x);this.renderBgRanges(A),this.renderFgRanges(O)},R.prototype.unrender=function(){this.unrenderBgRanges(),this.unrenderFgRanges()},R.prototype.renderFgRanges=function(k){var N=this.component.eventRangesToEventFootprints(k),I=this.component.eventFootprintsToSegs(N);I=this.renderFgSegEls(I),!1!==this.renderFgSegs(I)&&(this.fgSegs=I)},R.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]),this.fgSegs=null},R.prototype.renderBgRanges=function(k){var N=this.component.eventRangesToEventFootprints(k),I=this.component.eventFootprintsToSegs(N);!1!==this.renderBgSegs(I)&&(this.bgSegs=I)},R.prototype.unrenderBgRanges=function(){this.unrenderBgSegs(),this.bgSegs=null},R.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},R.prototype.renderFgSegs=function(k){return!1},R.prototype.unrenderFgSegs=function(k){},R.prototype.renderBgSegs=function(k){var N=this;if(!this.fillRenderer)return!1;this.fillRenderer.renderSegs("bgEvent",k,{getClasses:function(I){return N.getBgClasses(I.footprint.eventDef)},getCss:function(I){return{"background-color":N.getBgColor(I.footprint.eventDef)}},filterEl:function(I,x){return N.filterEventRenderEl(I.footprint,x)}})},R.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},R.prototype.renderFgSegEls=function(k,N){var I=this;void 0===N&&(N=!1);var x,S=this.view.hasPublicHandlers("eventRender"),A="",O=[];if(k.length){for(x=0;x<k.length;x++)this.beforeFgSegHtml(k[x]),A+=this.fgSegHtml(k[x],N);b(A).each(function(H,z){var v=k[H],tt=b(z);S&&(tt=I.filterEventRenderEl(v.footprint,tt)),tt&&(tt.data("fc-seg",v),v.el=tt,O.push(v))})}return O},R.prototype.beforeFgSegHtml=function(k){},R.prototype.fgSegHtml=function(k,N){},R.prototype.getSegClasses=function(k,N,I){var x=["fc-event",k.isStart?"fc-start":"fc-not-start",k.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(k.footprint.eventDef));return N&&x.push("fc-draggable"),I&&x.push("fc-resizable"),this.view.isEventDefSelected(k.footprint.eventDef)&&x.push("fc-selected"),x},R.prototype.filterEventRenderEl=function(k,N){var I=k.getEventLegacy(),x=this.view.publiclyTrigger("eventRender",{context:I,args:[I,N,this.view]});return!1===x?N=null:x&&!0!==x&&(N=b(x)),N},R.prototype.getTimeText=function(k,N,I){return this._getTimeText(k.eventInstance.dateProfile.start,k.eventInstance.dateProfile.end,k.componentFootprint.isAllDay,N,I)},R.prototype._getTimeText=function(k,N,I,x,S){return null==x&&(x=this.eventTimeFormat),null==S&&(S=this.displayEventEnd),this.displayEventTime&&!I?S&&N?this.view.formatRange({start:k,end:N},!1,x):k.format(x):""},R.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},R.prototype.computeDisplayEventTime=function(){return!0},R.prototype.computeDisplayEventEnd=function(){return!0},R.prototype.getBgClasses=function(k){var N=this.getClasses(k);return N.push("fc-bgevent"),N},R.prototype.getClasses=function(k){var N,I=this.getStylingObjs(k),x=[];for(N=0;N<I.length;N++)x.push.apply(x,I[N].eventClassName||I[N].className||[]);return x},R.prototype.getSkinCss=function(k){return{"background-color":this.getBgColor(k),"border-color":this.getBorderColor(k),color:this.getTextColor(k)}},R.prototype.getBgColor=function(k){var N,I,x=this.getStylingObjs(k);for(N=0;N<x.length&&!I;
1N++)I=x[N].eventBackgroundColor||x[N].eventColor||x[N].backgroundColor||x[N].color;return I||this.opt("eventBackgroundColor")||this.opt("eventColor")},R.prototype.getBorderColor=function(k){var N,I,x=this.getStylingObjs(k);for(N=0;N<x.length&&!I;N++)I=x[N].eventBorderColor||x[N].eventColor||x[N].borderColor||x[N].color;return I||this.opt("eventBorderColor")||this.opt("eventColor")},R.prototype.getTextColor=function(k){var N,I,x=this.getStylingObjs(k);for(N=0;N<x.length&&!I;N++)I=x[N].eventTextColor||x[N].textColor;return I||this.opt("eventTextColor")},R.prototype.getStylingObjs=function(k){var N=this.getFallbackStylingObjs(k);return N.unshift(k),N},R.prototype.getFallbackStylingObjs=function(k){return[k.source]},R.prototype.sortEventSegs=function(k){k.sort(L.proxy(this,"compareEventSegs"))},R.prototype.compareEventSegs=function(k,N){var I=k.footprint,x=N.footprint,S=I.componentFootprint,A=x.componentFootprint,O=S.unzonedRange,H=A.unzonedRange;return O.startMs-H.startMs||H.endMs-H.startMs-(O.endMs-O.startMs)||A.isAllDay-S.isAllDay||L.compareByFieldSpecs(I.eventDef,x.eventDef,this.view.eventOrderSpecs,I.eventDef.miscProps,x.eventDef.miscProps)},R);function R(k,N){this.view=k._getView(),this.component=k,this.fillRenderer=N}a.default=W},,,,,function(r,a,u){function b(ft){return"en"!==ft.locale()?ft.clone().locale("en"):ft}function L(ft,Rt){return I(N(W(Rt).fakeFormatString,ft).join(""))}function W(ft){return tt[ft]||(tt[ft]={fakeFormatString:function at(mt){var wt,qt,ae=[];for(wt=0;wt<mt.length;wt++)"string"==typeof(qt=mt[wt])?ae.push("["+qt+"]"):qt.token?ae.push(qt.token in z?A+"["+qt.token+"]":qt.token):qt.maybe&&ae.push(O+at(qt.maybe)+O);return ae.join(S)}(lt=R(ft)),sameUnits:function at(mt){var wt,qt,ae,ye=[];for(wt=0;wt<mt.length;wt++)(qt=mt[wt]).token?(ae=v[qt.token.charAt(0)],ye.push(ae?ae.unit:"second")):qt.maybe?ye.push.apply(ye,at(qt.maybe)):ye.push(null);return ye}(lt)});var lt}function R(ft){for(var Rt,lt=[],at=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;Rt=at.exec(ft);)Rt[1]?lt.push.apply(lt,k(Rt[1])):Rt[2]?lt.push({maybe:R(Rt[2])}):Rt[3]?lt.push({token:Rt[3]}):Rt[5]&<.push.apply(lt,k(Rt[5]));return lt}function k(ft){return". "===ft?["."," "]:[ft]}function N(ft,Rt){var lt,at,mt=[],wt=x.oldMomentFormat(Rt,ft).split(S);for(lt=0;lt<wt.length;lt++)(at=wt[lt]).charAt(0)===A?mt.push(z[at.substring(1)](Rt)):mt.push(at);return mt}function I(ft){return ft.replace(H,function(Rt,lt){return lt.match(/[1-9]/)?lt:""})}Object.defineProperty(a,"__esModule",{value:!0});var x=u(11);x.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?L(this,arguments[0]):this._ambigTime?x.oldMomentFormat(b(this),"YYYY-MM-DD"):this._ambigZone?x.oldMomentFormat(b(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?x.oldMomentFormat(b(this)):x.oldMomentProto.format.apply(this,arguments)},x.newMomentProto.toISOString=function(){return this._ambigTime?x.oldMomentFormat(b(this),"YYYY-MM-DD"):this._ambigZone?x.oldMomentFormat(b(this),"YYYY-MM-DD[T]HH:mm:ss"):x.oldMomentProto.toISOString.apply(this._fullCalendar?b(this):this,arguments)};var S="\v",A="\x1f",O="\x1e",H=new RegExp(O+"([^"+O+"]*)"+O,"g"),z={t:function(ft){return x.oldMomentFormat(ft,"a").charAt(0)},T:function(ft){return x.oldMomentFormat(ft,"A").charAt(0)}},v={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};a.formatDate=L,a.formatRange=function(ft,Rt,lt,at,mt){return ft=x.default.parseZone(ft),Rt=x.default.parseZone(Rt),function(wt,qt,ae,ye,he){var Te,Ne,Ot,w=wt.sameUnits,Y=qt.clone().stripZone(),V=ae.clone().stripZone(),it=N(wt.fakeFormatString,qt),yt=N(wt.fakeFormatString,ae),It="",Lt="",Ut="",de="",be="";for(Te=0;Te<w.length&&(!w[Te]||Y.isSame(V,w[Te]));Te++)It+=it[Te];for(Ne=w.length-1;Te<Ne&&(!w[Ne]||Y.isSame(V,w[Ne]))&&(Ne-1!==Te||"."!==it[Ne]);Ne--)Lt=it[Ne]+Lt;for(Ot=Te;Ot<=Ne;Ot++)Ut+=it[Ot],de+=yt[Ot];return(Ut||de)&&(be=he?de+ye+Ut:Ut+ye+de),I(It+be+Lt)}(W(lt=ft.localeData().longDateFormat(lt)||lt),ft,Rt,at||" - ",mt)};var tt={};a.queryMostGranularFormatUnit=function(ft){var Rt,lt,at,mt,wt=R(ft);for(Rt=0;Rt<wt.length;Rt++)(lt=wt[Rt]).token&&(at=v[lt.token.charAt(0)])&&(!mt||at.value>mt.value)&&(mt=at);return mt?mt.unit:null}},function(r,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=function u(b,L,W){this.unzonedRange=b,this.eventDef=L,W&&(this.eventInstance=W)}},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(35),R=u(13),k=u(7),N=(L.__extends(I,b=W.default),I.watch=function(x){for(var S=[],A=1;A<arguments.length;A++)S[A-1]=arguments[A];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs)),this.prototype._globalWatchArgs[x]=S},I.prototype.constructed=function(){},I.prototype.applyGlobalWatchers=function(){var x,S=this._globalWatchArgs;for(x in S)this.watch.apply(this,[x].concat(S[x]))},I.prototype.has=function(x){return x in this._props},I.prototype.get=function(x){return void 0===x?this._props:this._props[x]},I.prototype.set=function(x,S){var A;"string"==typeof x?(A={})[x]=void 0===S?null:S:A=x,this.setProps(A)},I.prototype.reset=function(x){var S,A=this._props,O={};
1for(S in A)O[S]=void 0;for(S in x)O[S]=x[S];this.setProps(O)},I.prototype.unset=function(x){var S,A,O={};for(S="string"==typeof x?[x]:x,A=0;A<S.length;A++)O[S[A]]=void 0;this.setProps(O)},I.prototype.setProps=function(x){var S,A,O={},H=0;for(S in x)"object"!=typeof(A=x[S])&&A===this._props[S]||(O[S]=A,H++);if(H){for(S in this.trigger("before:batchChange",O),O)this.trigger("before:change",S,A=O[S]),this.trigger("before:change:"+S,A);for(S in O)void 0===(A=O[S])?delete this._props[S]:this._props[S]=A,this.trigger("change:"+S,A),this.trigger("change",S,A);this.trigger("batchChange",O)}},I.prototype.watch=function(x,S,A,O){var H=this;this.unwatch(x),this._watchers[x]=this._watchDeps(S,function(z){var v=A.call(H,z);v&&v.then?(H.unset(x),v.then(function(tt){H.set(x,tt)})):H.set(x,v)},function(z){H.unset(x),O&&O.call(H,z)})},I.prototype.unwatch=function(x){var S=this._watchers[x];S&&(delete this._watchers[x],S.teardown())},I.prototype._watchDeps=function(x,S,A){function O(at,mt){H.on(at,mt),Rt.push([at,mt])}var H=this,z=0,v=x.length,tt=0,ft={},Rt=[],lt=!1;return x.forEach(function(at){var mt=!1;"?"===at.charAt(0)&&(at=at.substring(1),mt=!0),O("before:change:"+at,function(wt){1==++z&&tt===v&&(lt=!0,A(ft),lt=!1)}),O("change:"+at,function(wt){var qt,ae,ye;qt=at,ye=mt,void 0===(ae=wt)?(ye||void 0===ft[qt]||tt--,delete ft[qt]):(ye||void 0!==ft[qt]||tt++,ft[qt]=ae),--z||tt===v&&(lt||S(ft))})}),x.forEach(function(at){var mt=!1;"?"===at.charAt(0)&&(at=at.substring(1),mt=!0),H.has(at)?(ft[at]=H.get(at),tt++):mt&&tt++}),tt===v&&S(ft),{teardown:function(){for(var at=0;at<Rt.length;at++)H.off(Rt[at][0],Rt[at][1]);Rt=null,tt===v&&A()},flash:function(){tt===v&&(A(),S(ft))}}},I.prototype.flash=function(x){var S=this._watchers[x];S&&S.flash()},I);function I(){var x=b.call(this)||this;return x._watchers={},x._props={},x.applyGlobalWatchers(),x.constructed(),x}(a.default=N).prototype._globalWatchArgs={},R.default.mixInto(N),k.default.mixInto(N)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(4),R=u(15),k=(L.__extends(N,b=R.default),N.defineStandardProps=function(I){var x=this.prototype;x.hasOwnProperty("standardPropMap")||(x.standardPropMap=Object.create(x.standardPropMap)),W.copyOwnProps(I,x.standardPropMap)},N.copyVerbatimStandardProps=function(I,x){var S,A=this.prototype.standardPropMap;for(S in A)null!=I[S]&&!0===A[S]&&(x[S]=I[S])},N.prototype.applyProps=function(I){var x,S=this.standardPropMap,A={},O={};for(x in I)!0===S[x]?this[x]=I[x]:!1===S[x]?A[x]=I[x]:O[x]=I[x];return this.applyMiscProps(O),this.applyManualStandardProps(A)},N.prototype.applyManualStandardProps=function(I){return!0},N.prototype.applyMiscProps=function(I){},N.prototype.isStandardProp=function(I){return I in this.standardPropMap},N);function N(){return null!==b&&b.apply(this,arguments)||this}(a.default=k).prototype.standardPropMap={}},function(r,a){Object.defineProperty(a,"__esModule",{value:!0});var u=(b.prototype.toLegacy=function(){var L=this.dateProfile,W=this.def.toLegacy();return W.start=L.start.clone(),W.end=L.end?L.end.clone():null,W},b);function b(L,W){this.def=L,this.dateProfile=W}a.default=u},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(0),k=u(37),N=u(53),I=u(16),x=(L.__extends(S,b=k.default),S.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},S.prototype.buildInstances=function(A){for(var O,H,z,v=this.source.calendar,tt=A.getStart(),ft=A.getEnd(),Rt=[];tt.isBefore(ft);)this.dowHash&&!this.dowHash[tt.day()]||(H=(O=v.applyTimezone(tt)).clone(),z=null,this.startTime?H.time(this.startTime):H.stripTime(),this.endTime&&(z=O.clone().time(this.endTime)),Rt.push(new N.default(this,new I.default(H,z,v)))),tt.add(1,"days");return Rt},S.prototype.setDow=function(A){this.dowHash||(this.dowHash={});for(var O=0;O<A.length;O++)this.dowHash[A[O]]=!0},S.prototype.clone=function(){var A=b.prototype.clone.call(this);return A.startTime&&(A.startTime=R.duration(this.startTime)),A.endTime&&(A.endTime=R.duration(this.endTime)),this.dowHash&&(A.dowHash=W.extend({},this.dowHash)),A},S);function S(){return null!==b&&b.apply(this,arguments)||this}(a.default=x).prototype.applyProps=function(A){var O=k.default.prototype.applyProps.call(this,A);
1return A.start&&(this.startTime=R.duration(A.start)),A.end&&(this.endTime=R.duration(A.end)),A.dow&&this.setDow(A.dow),O},x.defineStandardProps({start:!1,end:!1,dow:!1})},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(0),L=u(4),W=u(5),R=(k.prototype.opt=function(N){return this._view.opt(N)},k.prototype.trimHiddenDays=function(N){return this._view.trimHiddenDays(N)},k.prototype.msToUtcMoment=function(N,I){return this._view.calendar.msToUtcMoment(N,I)},k.prototype.buildPrev=function(N){var I=N.date.clone().startOf(N.currentRangeUnit).subtract(N.dateIncrement);return this.build(I,-1)},k.prototype.buildNext=function(N){var I=N.date.clone().startOf(N.currentRangeUnit).add(N.dateIncrement);return this.build(I,1)},k.prototype.build=function(N,I,x){void 0===x&&(x=!1);var S,A,O,H,z,v,tt,ft,Rt=!N.hasTime();return S=this.buildValidRange(),S=this.trimHiddenDays(S),x&&(N=this.msToUtcMoment(S.constrainDate(N),Rt)),A=this.buildCurrentRangeInfo(N,I),O=/^(year|month|week|day)$/.test(A.unit),H=this.buildRenderRange(this.trimHiddenDays(A.unzonedRange),A.unit,O),z=(H=this.trimHiddenDays(H)).clone(),this.opt("showNonCurrentDates")||(z=z.intersect(A.unzonedRange)),tt=b.duration(this.opt("minTime")),ft=b.duration(this.opt("maxTime")),(z=(z=this.adjustActiveRange(z,tt,ft)).intersect(S))&&(N=this.msToUtcMoment(z.constrainDate(N),Rt)),v=A.unzonedRange.intersectsWith(S),{validUnzonedRange:S,currentUnzonedRange:A.unzonedRange,currentRangeUnit:A.unit,isRangeAllDay:O,activeUnzonedRange:z,renderUnzonedRange:H,minTime:tt,maxTime:ft,isValid:v,date:N,dateIncrement:this.buildDateIncrement(A.duration)}},k.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new W.default},k.prototype.buildCurrentRangeInfo=function(N,I){var x,S=this._view.viewSpec,A=null,O=null,H=null;return S.duration?H=this.buildRangeFromDuration(N,I,A=S.duration,O=S.durationUnit):(x=this.opt("dayCount"))?(O="day",H=this.buildRangeFromDayCount(N,I,x)):(H=this.buildCustomVisibleRange(N))?O=L.computeGreatestUnit(H.getStart(),H.getEnd()):(A=this.getFallbackDuration(),O=L.computeGreatestUnit(A),H=this.buildRangeFromDuration(N,I,A,O)),{duration:A,unit:O,unzonedRange:H}},k.prototype.getFallbackDuration=function(){return b.duration({days:1})},k.prototype.adjustActiveRange=function(N,I,x){var S=N.getStart(),A=N.getEnd();return this._view.usesMinMaxTime&&(I<0&&S.time(0).add(I),864e5<x&&A.time(x-864e5)),new W.default(S,A)},k.prototype.buildRangeFromDuration=function(N,I,x,S){function A(){z=N.clone().startOf(ft),v=z.clone().add(x),tt=new W.default(z,v)}var O,H,z,v,tt,ft=this.opt("dateAlignment");return ft||(O=this.opt("dateIncrement"),ft=O&&(H=b.duration(O))<x?L.computeDurationGreatestUnit(H,O):S),x.as("days")<=1&&this._view.isHiddenDay(z)&&(z=this._view.skipHiddenDays(z,I)).startOf("day"),A(),this.trimHiddenDays(tt)||(N=this._view.skipHiddenDays(N,I),A()),tt},k.prototype.buildRangeFromDayCount=function(N,I,x){var S,A,O=this.opt("dateAlignment"),H=0;if(O||-1!==I)for(S=N.clone(),O&&S.startOf(O),S.startOf("day"),A=(S=this._view.skipHiddenDays(S)).clone();A.add(1,"day"),this._view.isHiddenDay(A)||H++,H<x;);else for(A=N.clone().startOf("day").add(1,"day"),S=(A=this._view.skipHiddenDays(A,-1,!0)).clone();S.add(-1,"day"),this._view.isHiddenDay(S)||H++,H<x;);return new W.default(S,A)},k.prototype.buildCustomVisibleRange=function(N){var I=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(N));return!I||null!=I.startMs&&null!=I.endMs?I:null},k.prototype.buildRenderRange=function(N,I,x){return N.clone()},k.prototype.buildDateIncrement=function(N){var I,x=this.opt("dateIncrement");return x?b.duration(x):(I=this.opt("dateAlignment"))?b.duration(1,I):N||b.duration({days:1})},k);function k(N){this._view=N}a.default=R},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(4),k=u(21),N=u(6),I=u(9),x=(L.__extends(S,b=N.default),S.parse=function(A,O){var H;return W.isArray(A.events)?H=A:W.isArray(A)&&(H={events:A}),!!H&&N.default.parse.call(this,H,O)},S.prototype.setRawEventDefs=function(A){this.rawEventDefs=A,this.eventDefs=this.parseEventDefs(A)},S.prototype.fetch=function(A,O,H){var z,v=this.eventDefs;if(null!=this.currentTimezone&&this.currentTimezone!==H)for(z=0;z<v.length;z++)v[z]instanceof I.default&&v[z].rezone();return this.currentTimezone=H,k.default.resolve(v)},S.prototype.addEventDef=function(A){this.eventDefs.push(A)},S.prototype.removeEventDefsById=function(A){return R.removeMatching(this.eventDefs,function(O){return O.id===A})},S.prototype.removeAllEventDefs=function(){this.eventDefs=[]},S.prototype.getPrimitive=function(){return this.rawEventDefs}
1,S.prototype.applyManualStandardProps=function(A){var O=b.prototype.applyManualStandardProps.call(this,A);return this.setRawEventDefs(A.events),O},S);function S(A){var O=b.call(this,A)||this;return O.eventDefs=[],O}(a.default=x).defineStandardProps({events:!1})},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(221),L=u(222),W={};a.defineThemeSystem=function(R,k){W[R]=k},a.getThemeSystemClass=function(R){return R?!0===R?L.default:W[R]:b.default}},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(4),W=(R.prototype.build=function(){var k=this.forcedOffsetParentEl;!k&&0<this.els.length&&(k=this.els.eq(0).offsetParent()),this.origin=k?k.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},R.prototype.clear=function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},R.prototype.ensureBuilt=function(){this.origin||this.build()},R.prototype.buildElHorizontals=function(){var k=[],N=[];this.els.each(function(I,x){var S=b(x),A=S.offset().left,O=S.outerWidth();k.push(A),N.push(A+O)}),this.lefts=k,this.rights=N},R.prototype.buildElVerticals=function(){var k=[],N=[];this.els.each(function(I,x){var S=b(x),A=S.offset().top,O=S.outerHeight();k.push(A),N.push(A+O)}),this.tops=k,this.bottoms=N},R.prototype.getHorizontalIndex=function(k){this.ensureBuilt();var N,I=this.lefts,x=this.rights,S=I.length;for(N=0;N<S;N++)if(k>=I[N]&&k<x[N])return N},R.prototype.getVerticalIndex=function(k){this.ensureBuilt();var N,I=this.tops,x=this.bottoms,S=I.length;for(N=0;N<S;N++)if(k>=I[N]&&k<x[N])return N},R.prototype.getLeftOffset=function(k){return this.ensureBuilt(),this.lefts[k]},R.prototype.getLeftPosition=function(k){return this.ensureBuilt(),this.lefts[k]-this.origin.left},R.prototype.getRightOffset=function(k){return this.ensureBuilt(),this.rights[k]},R.prototype.getRightPosition=function(k){return this.ensureBuilt(),this.rights[k]-this.origin.left},R.prototype.getWidth=function(k){return this.ensureBuilt(),this.rights[k]-this.lefts[k]},R.prototype.getTopOffset=function(k){return this.ensureBuilt(),this.tops[k]},R.prototype.getTopPosition=function(k){return this.ensureBuilt(),this.tops[k]-this.origin.top},R.prototype.getBottomOffset=function(k){return this.ensureBuilt(),this.bottoms[k]},R.prototype.getBottomPosition=function(k){return this.ensureBuilt(),this.bottoms[k]-this.origin.top},R.prototype.getHeight=function(k){return this.ensureBuilt(),this.bottoms[k]-this.tops[k]},R.prototype.queryBoundingRect=function(){var k;return 0<this.els.length&&!(k=L.getScrollParent(this.els.eq(0))).is(document)&&!k.is("html,body")?L.getClientRect(k):null},R.prototype.isPointInBounds=function(k,N){return this.isLeftInBounds(k)&&this.isTopInBounds(N)},R.prototype.isLeftInBounds=function(k){return!this.boundingRect||k>=this.boundingRect.left&&k<this.boundingRect.right},R.prototype.isTopInBounds=function(k){return!this.boundingRect||k>=this.boundingRect.top&&k<this.boundingRect.bottom},R);function R(k){this.isHorizontal=!1,this.isVertical=!1,this.els=b(k.els),this.isHorizontal=k.isHorizontal,this.isVertical=k.isVertical,this.forcedOffsetParentEl=k.offsetParent?b(k.offsetParent):null}a.default=W},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(4),W=u(7),R=u(23),k=(N.prototype.startInteraction=function(I,x){if(void 0===x&&(x={}),"mousedown"===I.type){if(R.default.get().shouldIgnoreMouse()||!L.isPrimaryMouseButton(I))return;I.preventDefault()}this.isInteracting||(this.delay=L.firstDefined(x.delay,this.options.delay,0),this.minDistance=L.firstDefined(x.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,L.preventSelection(b("body")),this.isInteracting=!0,this.isTouch=L.getEvIsTouch(I),this.isGeneric="dragstart"===I.type,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=L.getEvX(I),this.originY=L.getEvY(I),this.scrollEl=L.getScrollParent(b(I.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(I),this.startDelay(I),this.minDistance||this.handleDistanceSurpassed(I))},N.prototype.handleInteractionStart=function(I){this.trigger("interactionStart",I)},N.prototype.endInteraction=function(I,x){this.isInteracting&&(this.endDrag(I),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(I,x),L.allowSelection(b("body")))},N.prototype.handleInteractionEnd=function(I,x){this.trigger("interactionEnd",I,x||!1)},N.prototype.bindHandlers=function(){var I=R.default.get();this.isGeneric?this.listenTo(b(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.listenTo(I,this.isTouch?{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}:{mousemove:this.handleMouseMove,mouseup:this.endInteraction}),this.listenTo(I,{selectstart:L.preventDefault,contextmenu:L.preventDefault})},N.prototype.unbindHandlers=function(){this.stopListeningTo(R.default.get()),this.stopListeningTo(b(document))},N.prototype.startDrag=function(I,x){this.startInteraction(I,x),this.isDragging||(this.isDragging=!0,this.handleDragStart(I))},N.prototype.handleDragStart=function(I){this.trigger("dragStart",I)},N.prototype.handleMove=function(I){var x=L.getEvX(I)-this.originX,S=L.getEvY(I)-this.originY,A=this.minDistance;this.isDistanceSurpassed||A*A<=x*x+S*S&&this.handleDistanceSurpassed(I),this.isDragging&&this.handleDrag(x,S,I)},N.prototype.handleDrag=function(I,x,S){this.trigger("drag",I,x,S),this.updateAutoScroll(S)},N.prototype.endDrag=function(I){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(I))},N.prototype.handleDragEnd=function(I){this.trigger("dragEnd",I)},N.prototype.startDelay=function(I){var x=this;this.delay?this.delayTimeoutId=setTimeout(function(){x.handleDelayEnd(I)},this.delay):this.handleDelayEnd(I)},N.prototype.handleDelayEnd=function(I){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(I)},N.prototype.handleDistanceSurpassed=function(I){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(I)},N.prototype.handleTouchMove=function(I){this.isDragging&&this.shouldCancelTouchScroll&&I.preventDefault(),this.handleMove(I)},N.prototype.handleMouseMove=function(I){this.handleMove(I)},N.prototype.handleTouchScroll=function(I){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(I,!0)},N.prototype.trigger=function(I){for(var x=[],S=1;S<arguments.length;S++)x[S-1]=arguments[S];this.options[I]&&this.options[I].apply(this,x),this["_"+I]&&this["_"+I].apply(this,x)},N.prototype.initAutoScroll=function(){var I=this.scrollEl;
1this.isAutoScroll=this.options.scroll&&I&&!I.is(window)&&!I.is(document),this.isAutoScroll&&this.listenTo(I,"scroll",L.debounce(this.handleDebouncedScroll,100))},N.prototype.destroyAutoScroll=function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},N.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=L.getOuterRect(this.scrollEl))},N.prototype.updateAutoScroll=function(I){var x,S,A,O,H=this.scrollSensitivity,z=this.scrollBounds,v=0,tt=0;z&&(x=(H-(L.getEvY(I)-z.top))/H,S=(H-(z.bottom-L.getEvY(I)))/H,A=(H-(L.getEvX(I)-z.left))/H,O=(H-(z.right-L.getEvX(I)))/H,0<=x&&x<=1?v=x*this.scrollSpeed*-1:0<=S&&S<=1&&(v=S*this.scrollSpeed),0<=A&&A<=1?tt=A*this.scrollSpeed*-1:0<=O&&O<=1&&(tt=O*this.scrollSpeed)),this.setScrollVel(v,tt)},N.prototype.setScrollVel=function(I,x){this.scrollTopVel=I,this.scrollLeftVel=x,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(L.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},N.prototype.constrainScrollVel=function(){var I=this.scrollEl;this.scrollTopVel<0?I.scrollTop()<=0&&(this.scrollTopVel=0):0<this.scrollTopVel&&I.scrollTop()+I[0].clientHeight>=I[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?I.scrollLeft()<=0&&(this.scrollLeftVel=0):0<this.scrollLeftVel&&I.scrollLeft()+I[0].clientWidth>=I[0].scrollWidth&&(this.scrollLeftVel=0)},N.prototype.scrollIntervalFunc=function(){var I=this.scrollEl,x=this.scrollIntervalMs/1e3;this.scrollTopVel&&I.scrollTop(I.scrollTop()+this.scrollTopVel*x),this.scrollLeftVel&&I.scrollLeft(I.scrollLeft()+this.scrollLeftVel*x),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},N.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},N.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},N.prototype.handleScrollEnd=function(){},N);function N(I){this.isInteracting=!1,this.isDistanceSurpassed=!1,this.isDelayEnded=!1,this.isDragging=!1,this.isTouch=!1,this.isGeneric=!1,this.shouldCancelTouchScroll=!0,this.scrollAlwaysKills=!1,this.isAutoScroll=!1,this.scrollSensitivity=30,this.scrollSpeed=200,this.scrollIntervalMs=50,this.options=I||{}}a.default=k,W.default.mixInto(k)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(4),R=u(15),k=(L.__extends(N,b=R.default),N.prototype.updateDayTable=function(){for(var I,x,S,A=this.view,O=A.calendar,H=O.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0),z=O.msToUtcMoment(this.dateProfile.renderUnzonedRange.endMs,!0),v=-1,tt=[],ft=[];H.isBefore(z);)A.isHiddenDay(H)?tt.push(v+.5):(v++,tt.push(v),ft.push(H.clone())),H.add(1,"days");if(this.breakOnWeeks){for(x=ft[0].day(),I=1;I<ft.length&&ft[I].day()!==x;I++);S=Math.ceil(ft.length/I)}else S=1,I=ft.length;this.dayDates=ft,this.dayIndices=tt,this.daysPerRow=I,this.rowCnt=S,this.updateDayTableCols()},N.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},N.prototype.computeColCnt=function(){return this.daysPerRow},N.prototype.getCellDate=function(I,x){return this.dayDates[this.getCellDayIndex(I,x)].clone()},N.prototype.getCellRange=function(I,x){var S=this.getCellDate(I,x);return{start:S,end:S.clone().add(1,"days")}},N.prototype.getCellDayIndex=function(I,x){return I*this.daysPerRow+this.getColDayIndex(x)},N.prototype.getColDayIndex=function(I){return this.isRTL?this.colCnt-1-I:I},N.prototype.getDateDayIndex=function(I){var x=this.dayIndices,S=I.diff(this.dayDates[0],"days");return S<0?x[0]-1:S>=x.length?x[x.length-1]+1:x[S]},N.prototype.computeColHeadFormat=function(){return 1<this.rowCnt||10<this.colCnt?"ddd":1<this.colCnt?this.opt("dayOfMonthFormat"):"dddd"},N.prototype.sliceRangeByRow=function(I){var x,S,A,O,H,z=this.daysPerRow,v=this.view.computeDayRange(I),tt=this.getDateDayIndex(v.start),ft=this.getDateDayIndex(v.end.clone().subtract(1,"days")),Rt=[];for(x=0;x<this.rowCnt;x++)A=(S=x*z)+z-1,O=Math.max(tt,S),H=Math.min(ft,A),(O=Math.ceil(O))<=(H=Math.floor(H))&&Rt.push({row:x,firstRowDayIndex:O-S,lastRowDayIndex:H-S,isStart:O===tt,isEnd:H===ft});return Rt},N.prototype.sliceRangeByDay=function(I){var x,S,A,O,H,z,v=this.daysPerRow,tt=this.view.computeDayRange(I),ft=this.getDateDayIndex(tt.start),Rt=this.getDateDayIndex(tt.end.clone().subtract(1,"days")),lt=[];for(x=0;x<this.rowCnt;x++)for(A=(S=x*v)+v-1,O=S;O<=A;O++)H=Math.max(ft,O),z=Math.min(Rt,O),(H=Math.ceil(H))<=(z=Math.floor(z))&<.push({row:x,firstRowDayIndex:H-S,lastRowDayIndex:z-S,isStart:H===ft,isEnd:z===Rt});return lt},N.prototype.renderHeadHtml=function(){var I=this.view.calendar.theme;return'<div class="fc-row '+I.getClass("headerRow")+'">
1<table class="'+I.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},N.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},N.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"</tr>"},N.prototype.renderHeadDateCellsHtml=function(){var I,x,S=[];for(I=0;I<this.colCnt;I++)x=this.getCellDate(0,I),S.push(this.renderHeadDateCellHtml(x));return S.join("")},N.prototype.renderHeadDateCellHtml=function(I,x,S){var A,O=this,H=O.view,z=O.dateProfile.activeUnzonedRange.containsDate(I),v=["fc-day-header",H.calendar.theme.getClass("widgetHeader")];return A="function"==typeof O.opt("columnHeaderHtml")?O.opt("columnHeaderHtml")(I):"function"==typeof O.opt("columnHeaderText")?W.htmlEscape(O.opt("columnHeaderText")(I)):W.htmlEscape(I.format(O.colHeadFormat)),1===O.rowCnt?v=v.concat(O.getDayClasses(I,!0)):v.push("fc-"+W.dayIDs[I.day()]),'<th class="'+v.join(" ")+'"'+(1===(z&&O.rowCnt)?' data-date="'+I.format("YYYY-MM-DD")+'"':"")+(1<x?' colspan="'+x+'"':"")+(S?" "+S:"")+">"+(z?H.buildGotoAnchorHtml({date:I,forceOff:1<O.rowCnt||1===O.colCnt},A):A)+"</th>"},N.prototype.renderBgTrHtml=function(I){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(I))+this.renderBgCellsHtml(I)+(this.isRTL?this.renderBgIntroHtml(I):"")+"</tr>"},N.prototype.renderBgIntroHtml=function(I){return this.renderIntroHtml()},N.prototype.renderBgCellsHtml=function(I){var x,S,A=[];for(x=0;x<this.colCnt;x++)S=this.getCellDate(I,x),A.push(this.renderBgCellHtml(S));return A.join("")},N.prototype.renderBgCellHtml=function(I,x){var S=this.view,A=this.dateProfile.activeUnzonedRange.containsDate(I),O=this.getDayClasses(I);return O.unshift("fc-day",S.calendar.theme.getClass("widgetContent")),'<td class="'+O.join(" ")+'"'+(A?' data-date="'+I.format("YYYY-MM-DD")+'"':"")+(x?" "+x:"")+"></td>"},N.prototype.renderIntroHtml=function(){},N.prototype.bookendCells=function(I){var x=this.renderIntroHtml();x&&(this.isRTL?I.append(x):I.prepend(x))},N);function N(){return null!==b&&b.apply(this,arguments)||this}a.default=k},function(r,a){Object.defineProperty(a,"__esModule",{value:!0});var u=(b.prototype.render=function(L){var W=this.component,R=W._getDateProfile().activeUnzonedRange,k=L.buildEventInstanceGroup(W.hasAllDayBusinessHours,R),N=k?W.eventRangesToEventFootprints(k.sliceRenderRanges(R)):[];this.renderEventFootprints(N)},b.prototype.renderEventFootprints=function(L){var W=this.component.eventFootprintsToSegs(L);this.renderSegs(W),this.segs=W},b.prototype.renderSegs=function(L){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",L,{getClasses:function(W){return["fc-nonbusiness","fc-bgevent"]}})},b.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours"),this.segs=null},b.prototype.getSegs=function(){return this.segs||[]},b);function b(L,W){this.component=L,this.fillRenderer=W}a.default=u},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(4),W=(R.prototype.renderFootprint=function(k,N,I){this.renderSegs(k,this.component.componentFootprintToSegs(N),I)},R.prototype.renderSegs=function(k,N,I){var x;return N=this.buildSegEls(k,N,I),(x=this.attachSegEls(k,N))&&this.reportEls(k,x),N},R.prototype.unrender=function(k){var N=this.elsByFill[k];N&&(N.remove(),delete this.elsByFill[k])},R.prototype.buildSegEls=function(k,N,I){var x,S=this,A="",O=[];if(N.length){for(x=0;x<N.length;x++)A+=this.buildSegHtml(k,N[x],I);b(A).each(function(H,z){var v=N[H],tt=b(z);I.filterEl&&(tt=I.filterEl(v,tt)),!tt||(tt=b(tt)).is(S.fillSegTag)&&(v.el=tt,O.push(v))})}return O},R.prototype.buildSegHtml=function(k,N,I){var x=I.getClasses?I.getClasses(N):[],S=L.cssToStr(I.getCss?I.getCss(N):{});return"<"+this.fillSegTag+(x.length?' class="'+x.join(" ")+'"':"")+(S?' style="'+S+'"':"")+" />"},R.prototype.attachSegEls=function(k,N){},R.prototype.reportEls=function(k,N){this.elsByFill[k]=this.elsByFill[k]?this.elsByFill[k].add(N):b(N)},R);function R(k){this.fillSegTag="div",this.component=k,this.elsByFill={}}a.default=W},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(9),L=u(34),W=u(6),R=(k.prototype.renderComponentFootprint=function(N){this.renderEventFootprints([this.fabricateEventFootprint(N)])},k.prototype.renderEventDraggingFootprints=function(N,I,x){this.renderEventFootprints(N,I,"fc-dragging",x?null:this.view.opt("dragOpacity"))},k.prototype.renderEventResizingFootprints=function(N,I,x){this.renderEventFootprints(N,I,"fc-resizing")},k.prototype.renderEventFootprints=function(N,I,x,S){var A,O=this.component.eventFootprintsToSegs(N),H="fc-helper "+(x||"");for(O=this.eventRenderer.renderFgSegEls(O),A=0;A<O.length;A++)O[A].el.addClass(H);if(null!=S)for(A=0;A<O.length;A++)O[A].el.css("opacity",S);this.helperEls=this.renderSegs(O,I)},k.prototype.renderSegs=function(N,I){},k.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},k.prototype.fabricateEventFootprint=function(N){var I,x=this.view.calendar,S=x.footprintToDateProfile(N),A=new b.default(new W.default(x));return A.dateProfile=S,I=A.buildInstance(),new L.default(N,A,I)},k);function k(N,I){this.view=N._getView(),this.component=N,this.eventRenderer=I}a.default=R},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(23),R=u(14),k=(L.__extends(N,b=R.default),N.prototype.bindToEl=function(I){var x=this.component;x.bindSegHandlerToEl(I,"click",this.handleClick.bind(this)),x.bindSegHandlerToEl(I,"mouseenter",this.handleMouseover.bind(this)),x.bindSegHandlerToEl(I,"mouseleave",this.handleMouseout.bind(this))},N.prototype.handleClick=function(I,x){!1===this.component.publiclyTrigger("eventClick",{context:I.el[0],args:[I.footprint.getEventLegacy(),x,this.view]})&&x.preventDefault()},N.prototype.handleMouseover=function(I,x){W.default.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=I,this.view.isEventDefResizable(I.footprint.eventDef)&&I.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:I.el[0],args:[I.footprint.getEventLegacy(),x,this.view]}))},N.prototype.handleMouseout=function(I,x){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(I.footprint.eventDef)&&I.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:I.el[0],args:[I.footprint.getEventLegacy(),x||{},this.view]}))},N.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},N);function N(){return null!==b&&b.apply(this,arguments)||this}a.default=k},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(15),R=u(237),k=u(236),N=u(64),I=u(235),x=u(234),S=u(233),A=(L.__extends(O,b=W.default),O);function O(){return null!==b&&b.apply(this,arguments)||this}(a.default=A).prototype.dateClickingClass=R.default,A.prototype.dateSelectingClass=k.default,A.prototype.eventPointingClass=N.default,A.prototype.eventDraggingClass=I.default,A.prototype.eventResizingClass=x.default,A.prototype.externalDroppingClass=S.default},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(4),k=u(58),N=u(227),I=u(5),x=u(12),S=u(34),A=u(61),O=u(65),H=u(42),z=u(60),v=u(243),tt=u(244),ft=u(245),Rt=(L.__extends(lt,b=H.default),lt.prototype.componentFootprintToSegs=function(at){var mt,wt,qt=this.sliceRangeByRow(at.unzonedRange);for(mt=0;mt<qt.length;mt++)wt=qt[mt],this.isRTL?(wt.leftCol=this.daysPerRow-1-wt.lastRowDayIndex,wt.rightCol=this.daysPerRow-1-wt.firstRowDayIndex):(wt.leftCol=wt.firstRowDayIndex,wt.rightCol=wt.lastRowDayIndex);return qt},lt.prototype.renderDates=function(at){this.dateProfile=at,this.updateDayTable(),this.renderGrid()},lt.prototype.unrenderDates=function(){this.removeSegPopover()},lt.prototype.renderGrid=function(){var at,mt,wt=this.view,qt=this.rowCnt,ae=this.colCnt,ye="";for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),at=0;at<qt;at++)ye+=this.renderDayRowHtml(at,this.isRigid);for(this.el.html(ye),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new k.default({els:this.rowEls,isVertical:!0}),this.colCoordCache=new k.default({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),at=0;at<qt;
1at++)for(mt=0;mt<ae;mt++)this.publiclyTrigger("dayRender",{context:wt,args:[this.getCellDate(at,mt),this.getCellEl(at,mt),wt]})},lt.prototype.renderDayRowHtml=function(at,mt){var wt=this.view.calendar.theme,qt=["fc-row","fc-week",wt.getClass("dayRow")];return mt&&qt.push("fc-rigid"),'<div class="'+qt.join(" ")+'"><div class="fc-bg"><table class="'+wt.getClass("tableGrid")+'">'+this.renderBgTrHtml(at)+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(at)+"</thead>":"")+"</table></div></div>"},lt.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},lt.prototype.getIsDayNumbersVisible=function(){return 1<this.rowCnt},lt.prototype.renderNumberTrHtml=function(at){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(at))+this.renderNumberCellsHtml(at)+(this.isRTL?this.renderNumberIntroHtml(at):"")+"</tr>"},lt.prototype.renderNumberIntroHtml=function(at){return this.renderIntroHtml()},lt.prototype.renderNumberCellsHtml=function(at){var mt,wt,qt=[];for(mt=0;mt<this.colCnt;mt++)wt=this.getCellDate(at,mt),qt.push(this.renderNumberCellHtml(wt));return qt.join("")},lt.prototype.renderNumberCellHtml=function(at){var mt,wt,qt=this.view,ae="",ye=this.dateProfile.activeUnzonedRange.containsDate(at),he=this.getIsDayNumbersVisible()&&ye;return he||this.cellWeekNumbersVisible?((mt=this.getDayClasses(at)).unshift("fc-day-top"),this.cellWeekNumbersVisible&&(wt="ISO"===at._locale._fullCalendar_weekCalc?1:at._locale.firstDayOfWeek()),ae+='<td class="'+mt.join(" ")+'"'+(ye?' data-date="'+at.format()+'"':"")+">",this.cellWeekNumbersVisible&&at.day()===wt&&(ae+=qt.buildGotoAnchorHtml({date:at,type:"week"},{class:"fc-week-number"},at.format("w"))),he&&(ae+=qt.buildGotoAnchorHtml(at,{class:"fc-day-number"},at.format("D"))),ae+="</td>"):"<td/>"},lt.prototype.prepareHits=function(){this.colCoordCache.build(),this.rowCoordCache.build(),this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},lt.prototype.releaseHits=function(){this.colCoordCache.clear(),this.rowCoordCache.clear()},lt.prototype.queryHit=function(at,mt){if(this.colCoordCache.isLeftInBounds(at)&&this.rowCoordCache.isTopInBounds(mt)){var wt=this.colCoordCache.getHorizontalIndex(at),qt=this.rowCoordCache.getVerticalIndex(mt);if(null!=qt&&null!=wt)return this.getCellHit(qt,wt)}},lt.prototype.getHitFootprint=function(at){var mt=this.getCellRange(at.row,at.col);return new x.default(new I.default(mt.start,mt.end),!0)},lt.prototype.getHitEl=function(at){return this.getCellEl(at.row,at.col)},lt.prototype.getCellHit=function(at,mt){return{row:at,col:mt,component:this,left:this.colCoordCache.getLeftOffset(mt),right:this.colCoordCache.getRightOffset(mt),top:this.rowCoordCache.getTopOffset(at),bottom:this.rowCoordCache.getBottomOffset(at)}},lt.prototype.getCellEl=function(at,mt){return this.cellEls.eq(at*this.colCnt+mt)},lt.prototype.executeEventUnrender=function(){this.removeSegPopover(),b.prototype.executeEventUnrender.call(this)},lt.prototype.getOwnEventSegs=function(){return b.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},lt.prototype.renderDrag=function(at,mt,wt){var qt;for(qt=0;qt<at.length;qt++)this.renderHighlight(at[qt].componentFootprint);if(at.length&&mt&&mt.component!==this)return this.helperRenderer.renderEventDraggingFootprints(at,mt,wt),!0},lt.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},lt.prototype.renderEventResize=function(at,mt,wt){var qt;for(qt=0;qt<at.length;qt++)this.renderHighlight(at[qt].componentFootprint);this.helperRenderer.renderEventResizingFootprints(at,mt,wt)},lt.prototype.unrenderEventResize=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},lt.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},lt.prototype.limitRows=function(at){var mt,wt,qt=this.eventRenderer.rowStructs||[];for(mt=0;mt<qt.length;mt++)this.unlimitRow(mt),!1!==(wt=!!at&&("number"==typeof at?at:this.computeRowLevelLimit(mt)))&&this.limitRow(mt,wt)},lt.prototype.computeRowLevelLimit=function(at){function mt(Te,Ne){ae=Math.max(ae,W(Ne).outerHeight())}var wt,qt,ae,ye=this.rowEls.eq(at).height(),he=this.eventRenderer.rowStructs[at].tbodyEl.children();for(wt=0;
1wt<he.length;wt++)if(qt=he.eq(wt).removeClass("fc-limited"),ae=0,qt.find("> td > :first-child").each(mt),qt.position().top+ae>ye)return wt;return!1},lt.prototype.limitRow=function(at,mt){function wt(Gt){for(;Ht<Gt;)(Ne=de.getCellSegs(at,Ht,mt)).length&&(Y=ae[mt-1][Ht],Ut=de.renderMoreLink(at,Ht,Ne),Lt=W("<div/>").append(Ut),Y.append(Lt),dt.push(Lt[0])),Ht++}var qt,ae,ye,he,Te,Ne,Ot,w,Y,V,it,yt,It,Lt,Ut,de=this,be=this.eventRenderer.rowStructs[at],dt=[],Ht=0;if(mt&&mt<be.segLevels.length){for(qt=be.segLevels[mt-1],ae=be.cellMatrix,ye=be.tbodyEl.children().slice(mt).addClass("fc-limited").get(),he=0;he<qt.length;he++){for(wt((Te=qt[he]).leftCol),w=[],Ot=0;Ht<=Te.rightCol;)Ne=this.getCellSegs(at,Ht,mt),w.push(Ne),Ot+=Ne.length,Ht++;if(Ot){for(V=(Y=ae[mt-1][Te.leftCol]).attr("rowspan")||1,it=[],yt=0;yt<w.length;yt++)It=W('<td class="fc-more-cell"/>').attr("rowspan",V),Ut=this.renderMoreLink(at,Te.leftCol+yt,[Te].concat(Ne=w[yt])),Lt=W("<div/>").append(Ut),It.append(Lt),it.push(It[0]),dt.push(It[0]);Y.addClass("fc-limited").after(W(it)),ye.push(Y[0])}}wt(this.colCnt),be.moreEls=W(dt),be.limitedEls=W(ye)}},lt.prototype.unlimitRow=function(at){var mt=this.eventRenderer.rowStructs[at];mt.moreEls&&(mt.moreEls.remove(),mt.moreEls=null),mt.limitedEls&&(mt.limitedEls.removeClass("fc-limited"),mt.limitedEls=null)},lt.prototype.renderMoreLink=function(at,mt,wt){var qt=this,ae=this.view;return W('<a class="fc-more"/>').text(this.getMoreLinkText(wt.length)).on("click",function(ye){var he=qt.opt("eventLimitClick"),Te=qt.getCellDate(at,mt),Ne=W(ye.currentTarget),Ot=qt.getCellEl(at,mt),w=qt.getCellSegs(at,mt),Y=qt.resliceDaySegs(w,Te),V=qt.resliceDaySegs(wt,Te);"function"==typeof he&&(he=qt.publiclyTrigger("eventLimitClick",{context:ae,args:[{date:Te.clone(),dayEl:Ot,moreEl:Ne,segs:Y,hiddenSegs:V},ye,ae]})),"popover"===he?qt.showSegPopover(at,mt,Ne,Y):"string"==typeof he&&ae.calendar.zoomTo(Te,he)})},lt.prototype.showSegPopover=function(at,mt,wt,qt){var ae,ye,he=this,Te=this.view,Ne=wt.parent();ae=1===this.rowCnt?Te.el:this.rowEls.eq(at),ye={className:"fc-more-popover "+Te.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(at,mt,qt),parentEl:Te.el,top:ae.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){he.popoverSegs&&he.triggerBeforeEventSegsDestroyed(he.popoverSegs),he.segPopover.removeElement(),he.segPopover=null,he.popoverSegs=null}},this.isRTL?ye.right=Ne.offset().left+Ne.outerWidth()+1:ye.left=Ne.offset().left-1,this.segPopover=new N.default(ye),this.segPopover.show(),this.bindAllSegHandlersToEl(this.segPopover.el),this.triggerAfterEventSegsRendered(qt)},lt.prototype.renderSegPopoverContent=function(at,mt,wt){var qt,ae=this.view.calendar.theme,ye=this.getCellDate(at,mt).format(this.opt("dayPopoverFormat")),he=W('<div class="fc-header '+ae.getClass("popoverHeader")+'"><span class="fc-close '+ae.getIconClass("close")+'"></span><span class="fc-title">'+R.htmlEscape(ye)+'</span><div class="fc-clear"/></div><div class="fc-body '+ae.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>'),Te=he.find(".fc-event-container");for(wt=this.eventRenderer.renderFgSegEls(wt,!0),this.popoverSegs=wt,qt=0;qt<wt.length;qt++)this.hitsNeeded(),wt[qt].hit=this.getCellHit(at,mt),this.hitsNotNeeded(),Te.append(wt[qt].el);return he},lt.prototype.resliceDaySegs=function(at,mt){var wt,qt,ae,ye=mt.clone(),he=ye.clone().add(1,"days"),Te=new I.default(ye,he),Ne=[];for(wt=0;wt<at.length;wt++)(ae=(qt=at[wt]).footprint.componentFootprint.unzonedRange.intersect(Te))&&Ne.push(W.extend({},qt,{footprint:new S.default(new x.default(ae,qt.footprint.componentFootprint.isAllDay),qt.footprint.eventDef,qt.footprint.eventInstance),isStart:qt.isStart&&ae.isStart,isEnd:qt.isEnd&&ae.isEnd}));return this.eventRenderer.sortEventSegs(Ne),Ne},lt.prototype.getMoreLinkText=function(at){var mt=this.opt("eventLimitText");return"function"==typeof mt?mt(at):"+"+at+" "+mt},lt.prototype.getCellSegs=function(at,mt,wt){for(var qt,ae=this.eventRenderer.rowStructs[at].segMatrix,ye=wt||0,he=[];ye<ae.length;)(qt=ae[ye][mt])&&he.push(qt),ye++;return he},lt);function lt(at){var mt=b.call(this,at)||this;return mt.cellWeekNumbersVisible=!1,mt.bottomCoordPadding=0,mt.isRigid=!1,mt.hasAllDayBusinessHours=!0,mt}(a.default=Rt).prototype.eventRendererClass=v.default,Rt.prototype.businessHourRendererClass=A.default,Rt.prototype.helperRendererClass=tt.default,Rt.prototype.fillRendererClass=ft.default,O.default.mixInto(Rt),z.default.mixInto(Rt)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(4),k=u(41),N=u(43),I=u(68),x=u(66),S=(L.__extends(A,b=N.default),A.prototype.instantiateDayGrid=function(){return new(function(O){return L.__extends(H,z=O),H.prototype.renderHeadIntroHtml=function(){var v=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+v.calendar.theme.getClass("widgetHeader")+'" '+v.weekNumberStyleAttr()+"><span>"+R.htmlEscape(this.opt("weekNumberTitle"))+"</span></th>":""},H.prototype.renderNumberIntroHtml=function(v){var tt=this.view,ft=this.getCellDate(v,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+tt.weekNumberStyleAttr()+">"+tt.buildGotoAnchorHtml({date:ft,type:"week",forceOff:1===this.colCnt},ft.format("w"))+"</td>":""},H.prototype.renderBgIntroHtml=function(){var v=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+v.calendar.theme.getClass("widgetContent")+'" '+v.weekNumberStyleAttr()+"></td>":""},H.prototype.renderIntroHtml=function(){return this.colWeekNumbersVisible?'<td class="fc-week-number" '+this.view.weekNumberStyleAttr()+"></td>":""},H.prototype.getIsNumbersVisible=function(){return x.default.prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},H;function H(){var v=null!==z&&z.apply(this,arguments)||this;return v.colWeekNumbersVisible=!1,v}var z}(this.dayGridClass))(this)},A.prototype.executeDateRender=function(O){this.dayGrid.breakOnWeeks=/year|month|week/.test(O.currentRangeUnit),b.prototype.executeDateRender.call(this,O)},A.prototype.renderSkeleton=function(){var O,H;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.scroller.render(),O=this.scroller.el.addClass("fc-day-grid-container"),H=W('<div class="fc-day-grid" />').appendTo(O),this.el.find(".fc-body > tr > td").append(O),this.dayGrid.headContainerEl=this.el.find(".fc-head-container"),this.dayGrid.setElement(H)},A.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement(),this.scroller.destroy()},A.prototype.renderSkeletonHtml=function(){var O=this.calendar.theme;return'<table class="'+O.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+O.getClass("widgetHeader")+'"> </td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+O.getClass("widgetContent")+'"></td></tr></tbody></table>'},A.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},A.prototype.hasRigidRows=function(){var O=this.opt("eventLimit");return O&&"number"!=typeof O},A.prototype.updateSize=function(O,H,z){var v,tt,ft=this.opt("eventLimit"),Rt=this.dayGrid.headContainerEl.find(".fc-row");this.dayGrid.rowEls?(b.prototype.updateSize.call(this,O,H,z),this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=R.matchCellWidths(this.el.find(".fc-week-number"))),this.scroller.clear(),R.uncompensateScroll(Rt),this.dayGrid.removeSegPopover(),ft&&"number"==typeof ft&&this.dayGrid.limitRows(ft),v=this.computeScrollerHeight(O),this.setGridHeight(v,H),ft&&"number"!=typeof ft&&this.dayGrid.limitRows(ft),H||(this.scroller.setHeight(v),((tt=this.scroller.getScrollbarWidths()).left||tt.right)&&(R.compensateScroll(Rt,tt),v=this.computeScrollerHeight(O),this.scroller.setHeight(v)),this.scroller.lockOverflow(tt))):H||(v=this.computeScrollerHeight(O),this.scroller.setHeight(v))},A.prototype.computeScrollerHeight=function(O){return O-R.subtractInnerElHe
1ight(this.el,this.scroller.el)},A.prototype.setGridHeight=function(O,H){H?R.undistributeHeight(this.dayGrid.rowEls):R.distributeHeight(this.dayGrid.rowEls,O,!0)},A.prototype.computeInitialDateScroll=function(){return{top:0}},A.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},A.prototype.applyDateScroll=function(O){void 0!==O.top&&this.scroller.setScrollTop(O.top)},A);function A(O,H){var z=b.call(this,O,H)||this;return z.dayGrid=z.instantiateDayGrid(),z.dayGrid.isRigid=z.hasRigidRows(),z.opt("weekNumbers")&&(z.opt("weekNumbersWithinDays")?(z.dayGrid.cellWeekNumbersVisible=!0,z.dayGrid.colWeekNumbersVisible=!1):(z.dayGrid.cellWeekNumbersVisible=!1,z.dayGrid.colWeekNumbersVisible=!0)),z.addChild(z.dayGrid),z.scroller=new k.default({overflowX:"hidden",overflowY:"auto"}),z}(a.default=S).prototype.dateProfileGeneratorClass=I.default,S.prototype.dayGridClass=x.default},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(5),R=u(55),k=(L.__extends(N,b=R.default),N.prototype.buildRenderRange=function(I,x,S){var A=b.prototype.buildRenderRange.call(this,I,x,S),O=this.msToUtcMoment(A.startMs,S),H=this.msToUtcMoment(A.endMs,S);return/^(year|month)$/.test(x)&&(O.startOf("week"),H.weekday()&&H.add(1,"week").startOf("week")),new W.default(O,H)},N);function N(){return null!==b&&b.apply(this,arguments)||this}a.default=k},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(5),L=u(12),W=u(36),R=u(6),k=u(19),N=(I.prototype.opt=function(x){return this._calendar.opt(x)},I.prototype.isEventInstanceGroupAllowed=function(x){var S,A=x.getEventDef(),O=this.eventRangesToEventFootprints(x.getAllEventRanges()),H=this.getPeerEventInstances(A).map(k.eventInstanceToEventRange),z=this.eventRangesToEventFootprints(H),v=A.getConstraint(),tt=A.getOverlap(),ft=this.opt("eventAllow");for(S=0;S<O.length;S++)if(!this.isFootprintAllowed(O[S].componentFootprint,z,v,tt,O[S].eventInstance))return!1;if(ft)for(S=0;S<O.length;S++)if(!1===ft(O[S].componentFootprint.toLegacy(this._calendar),O[S].getEventLegacy()))return!1;return!0},I.prototype.getPeerEventInstances=function(x){return this.eventManager.getEventInstancesWithoutId(x.id)},I.prototype.isSelectionFootprintAllowed=function(x){var S,A=this.eventManager.getEventInstances().map(k.eventInstanceToEventRange),O=this.eventRangesToEventFootprints(A);return!(!this.isFootprintAllowed(x,O,this.opt("selectConstraint"),this.opt("selectOverlap"))||(S=this.opt("selectAllow"))&&!1===S(x.toLegacy(this._calendar)))},I.prototype.isFootprintAllowed=function(x,S,A,O,H){var z,v;if(null!=A&&(z=this.constraintValToFootprints(A,x.isAllDay),!this.isFootprintWithinConstraints(x,z)))return!1;if(v=this.collectOverlapEventFootprints(S,x),!1===O){if(v.length)return!1}else if("function"==typeof O&&!function(tt,ft,Rt){var lt;for(lt=0;lt<tt.length;lt++)if(!ft(tt[lt].eventInstance.toLegacy(),Rt?Rt.toLegacy():null))return!1;return!0}(v,O,H))return!1;return!(H&&!function(tt,ft){var Rt,lt,at,mt=ft.toLegacy();for(Rt=0;Rt<tt.length;Rt++)if(!1===(at=(lt=tt[Rt].eventInstance).def.getOverlap())||"function"==typeof at&&!at(lt.toLegacy(),mt))return!1;return!0}(v,H))},I.prototype.isFootprintWithinConstraints=function(x,S){var A;for(A=0;A<S.length;A++)if(this.footprintContainsFootprint(S[A],x))return!0;return!1},I.prototype.constraintValToFootprints=function(x,S){var A;return"businessHours"===x?this.buildCurrentBusinessFootprints(S):"object"==typeof x?(A=this.parseEventDefToInstances(x))?this.eventInstancesToFootprints(A):this.parseFootprints(x):null!=x?(A=this.eventManager.getEventInstancesWithId(x),this.eventInstancesToFootprints(A)):void 0},I.prototype.buildCurrentBusinessFootprints=function(x){var S=this._calendar.view,H=S.get("businessHourGenerator").buildEventInstanceGroup(x,S.dateProfile.activeUnzonedRange);return H?this.eventInstancesToFootprints(H.eventInstances):[]},I.prototype.eventInstancesToFootprints=function(x){var S=x.map(k.eventInstanceToEventRange);return this.eventRangesToEventFootprints(S).map(k.eventFootprintToComponentFootprint)},I.prototype.collectOverlapEventFootprints=function(x,S){var A,O=[];for(A=0;A<x.length;A++)this.footprintsIntersect(S,x[A].componentFootprint)&&O.push(x[A]);return O},I.prototype.parseEventDefToInstances=function(x){var S=this.eventManager,A=W.default.parse(x,new R.default(this._calendar));
1return!!A&&A.buildInstances(S.currentPeriod.unzonedRange)},I.prototype.eventRangesToEventFootprints=function(x){var S,A=[];for(S=0;S<x.length;S++)A.push.apply(A,this.eventRangeToEventFootprints(x[S]));return A},I.prototype.eventRangeToEventFootprints=function(x){return[k.eventRangeToEventFootprint(x)]},I.prototype.parseFootprints=function(x){var S,A;return x.start&&((S=this._calendar.moment(x.start)).isValid()||(S=null)),x.end&&((A=this._calendar.moment(x.end)).isValid()||(A=null)),[new L.default(new b.default(S,A),S&&!S.hasTime()||A&&!A.hasTime())]},I.prototype.footprintContainsFootprint=function(x,S){return x.unzonedRange.containsRange(S.unzonedRange)},I.prototype.footprintsIntersect=function(x,S){return x.unzonedRange.intersectsWith(S.unzonedRange)},I);function I(x,S){this.eventManager=x,this._calendar=S}a.default=N},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(19),W=u(20),R=u(54),k=u(6),N={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},I=(x.prototype.buildEventInstanceGroup=function(S,A){var O,H=this.buildEventDefs(S);if(H.length)return(O=new W.default(L.eventDefsToEventInstances(H,A))).explicitEventDef=H[0],O},x.prototype.buildEventDefs=function(S){var A,O=this.rawComplexDef,H=[],z=!1,v=[];for(!0===O?H=[{}]:b.isPlainObject(O)?H=[O]:b.isArray(O)&&(H=O,z=!0),A=0;A<H.length;A++)z&&!H[A].dow||v.push(this.buildEventDef(S,H[A]));return v},x.prototype.buildEventDef=function(S,A){var O=b.extend({},N,A);return S&&(O.start=null,O.end=null),R.default.parse(O,new k.default(this.calendar))},x);function x(S,A){this.rawComplexDef=S,this.calendar=A}a.default=I},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(4),W=u(21),R=u(13),k=u(5),N=u(20),I=(x.prototype.isWithinRange=function(S,A){return!S.isBefore(this.start)&&!A.isAfter(this.end)},x.prototype.requestSources=function(S){this.freeze();for(var A=0;A<S.length;A++)this.requestSource(S[A]);this.thaw()},x.prototype.requestSource=function(S){var A=this,O={source:S,status:"pending",eventDefs:null};this.requestsByUid[S.uid]=O,this.pendingCnt+=1,S.fetch(this.start,this.end,this.timezone).then(function(H){"cancelled"!==O.status&&(O.status="completed",O.eventDefs=H,A.addEventDefs(H),A.pendingCnt--,A.tryRelease())},function(){"cancelled"!==O.status&&(O.status="failed",A.pendingCnt--,A.tryRelease())})},x.prototype.purgeSource=function(S){var A=this.requestsByUid[S.uid];A&&(delete this.requestsByUid[S.uid],"pending"===A.status?(A.status="cancelled",this.pendingCnt--,this.tryRelease()):"completed"===A.status&&A.eventDefs.forEach(this.removeEventDef.bind(this)))},x.prototype.purgeAllSources=function(){var S,A,O=this.requestsByUid,H=0;
1for(S in O)"pending"===(A=O[S]).status?A.status="cancelled":"completed"===A.status&&H++;this.requestsByUid={},this.pendingCnt=0,H&&this.removeAllEventDefs()},x.prototype.getEventDefByUid=function(S){return this.eventDefsByUid[S]},x.prototype.getEventDefsById=function(S){var A=this.eventDefsById[S];return A?A.slice():[]},x.prototype.addEventDefs=function(S){for(var A=0;A<S.length;A++)this.addEventDef(S[A])},x.prototype.addEventDef=function(S){var A,O=this.eventDefsById,H=S.id,z=O[H]||(O[H]=[]),v=S.buildInstances(this.unzonedRange);for(z.push(S),this.eventDefsByUid[S.uid]=S,A=0;A<v.length;A++)this.addEventInstance(v[A],H)},x.prototype.removeEventDefsById=function(S){var A=this;this.getEventDefsById(S).forEach(function(O){A.removeEventDef(O)})},x.prototype.removeAllEventDefs=function(){var S=b.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={},S||this.tryRelease()},x.prototype.removeEventDef=function(S){var A=this.eventDefsById,O=A[S.id];delete this.eventDefsByUid[S.uid],O&&(L.removeExact(O,S),O.length||delete A[S.id],this.removeEventInstancesForDef(S))},x.prototype.getEventInstances=function(){var S,A=this.eventInstanceGroupsById,O=[];for(S in A)O.push.apply(O,A[S].eventInstances);return O},x.prototype.getEventInstancesWithId=function(S){var A=this.eventInstanceGroupsById[S];return A?A.eventInstances.slice():[]},x.prototype.getEventInstancesWithoutId=function(S){var A,O=this.eventInstanceGroupsById,H=[];for(A in O)A!==S&&H.push.apply(H,O[A].eventInstances);return H},x.prototype.addEventInstance=function(S,A){var O=this.eventInstanceGroupsById;(O[A]||(O[A]=new N.default)).eventInstances.push(S),this.tryRelease()},x.prototype.removeEventInstancesForDef=function(S){var A,O=this.eventInstanceGroupsById,H=O[S.id];H&&(A=L.removeMatching(H.eventInstances,function(z){return z.def===S}),H.eventInstances.length||delete O[S.id],A&&this.tryRelease())},x.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release())},x.prototype.release=function(){this.releaseCnt++,this.trigger("release",this.eventInstanceGroupsById)},x.prototype.whenReleased=function(){var S=this;return this.releaseCnt?W.default.resolve(this.eventInstanceGroupsById):W.default.construct(function(A){S.one("release",A)})},x.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},x.prototype.thaw=function(){--this.freezeDepth||!this.stuntedReleaseCnt||this.pendingCnt||this.release()},x);function x(S,A,O){this.pendingCnt=0,this.freezeDepth=0,this.stuntedReleaseCnt=0,this.releaseCnt=0,this.start=S,this.end=A,this.timezone=O,this.unzonedRange=new k.default(S.clone().stripZone(),A.clone().stripZone()),this.requestsByUid={},this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={}}a.default=I,R.default.mixInto(I)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(4),W=u(219),R=u(56),k=u(6),N=u(38),I=u(9),x=u(20),S=u(13),A=u(7),O=(H.prototype.requestEvents=function(z,v,tt,ft){return!ft&&this.currentPeriod&&this.currentPeriod.isWithinRange(z,v)&&tt===this.currentPeriod.timezone||this.setPeriod(new W.default(z,v,tt)),this.currentPeriod.whenReleased()},H.prototype.addSource=function(z){this.otherSources.push(z),this.currentPeriod&&this.currentPeriod.requestSource(z)},H.prototype.removeSource=function(z){L.removeExact(this.otherSources,z),this.currentPeriod&&this.currentPeriod.purgeSource(z)},H.prototype.removeAllSources=function(){this.otherSources=[],this.currentPeriod&&this.currentPeriod.purgeAllSources()},H.prototype.refetchSource=function(z){var v=this.currentPeriod;v&&(v.freeze(),v.purgeSource(z),v.requestSource(z),v.thaw())},H.prototype.refetchAllSources=function(){var z=this.currentPeriod;z&&(z.freeze(),z.purgeAllSources(),z.requestSources(this.getSources()),z.thaw())},H.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},H.prototype.multiQuerySources=function(z){z?b.isArray(z)||(z=[z]):z=[];var v,tt=[];for(v=0;v<z.length;v++)tt.push.apply(tt,this.querySources(z[v]));return tt},H.prototype.querySources=function(z){var v,tt,ft=this.otherSources;for(v=0;v<ft.length;v++)if((tt=ft[v])===z)return[tt];return(tt=this.getSourceById(k.default.normalizeId(z)))?[tt]:(z=N.default.parse(z,this.calendar))?b.grep(ft,function(Rt){return at=Rt,z.getPrimitive()===at.getPrimitive();var at}):void 0},H.prototype.getSourceById=function(z){return b.grep(this.otherSources,function(v){return v.id&&v.id===z})[0]},H.prototype.setPeriod=function(z){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null),this.currentPeriod=z,this.bindPeriod(z),z.requestSources(this.getSources())},H.prototype.bindPeriod=function(z){this.listenTo(z,"release",function(v){this.trigger("release",v)})},H.prototype.unbindPeriod=function(z){this.stopListeningTo(z)},H.prototype.getEventDefByUid=function(z){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(z)},H.prototype.addEventDef=function(z,v){v&&this.stickySource.addEventDef(z),this.currentPeriod&&this.currentPeriod.addEventDef(z)}
1,H.prototype.removeEventDefsById=function(z){this.getSources().forEach(function(v){v.removeEventDefsById(z)}),this.currentPeriod&&this.currentPeriod.removeEventDefsById(z)},H.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(z){z.removeAllEventDefs()}),this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},H.prototype.mutateEventsWithId=function(z,v){var tt,ft=this.currentPeriod,Rt=[];return ft?(ft.freeze(),(tt=ft.getEventDefsById(z)).forEach(function(lt){ft.removeEventDef(lt),Rt.push(v.mutateSingle(lt)),ft.addEventDef(lt)}),ft.thaw(),function(){ft.freeze();for(var lt=0;lt<tt.length;lt++)ft.removeEventDef(tt[lt]),Rt[lt](),ft.addEventDef(tt[lt]);ft.thaw()}):function(){}},H.prototype.buildMutatedEventInstanceGroup=function(z,v){var tt,ft,Rt=this.getEventDefsById(z),lt=[];for(tt=0;tt<Rt.length;tt++)(ft=Rt[tt].clone())instanceof I.default&&(v.mutateSingle(ft),lt.push.apply(lt,ft.buildInstances()));return new x.default(lt)},H.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},H.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},H.prototype.getEventDefsById=function(z){return this.currentPeriod.getEventDefsById(z)},H.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},H.prototype.getEventInstancesWithId=function(z){return this.currentPeriod.getEventInstancesWithId(z)},H.prototype.getEventInstancesWithoutId=function(z){return this.currentPeriod.getEventInstancesWithoutId(z)},H);function H(z){this.calendar=z,this.stickySource=new R.default(z),this.otherSources=[]}a.default=O,S.default.mixInto(O),A.default.mixInto(O)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(22),R=(L.__extends(k,b=W.default),k);function k(){return null!==b&&b.apply(this,arguments)||this}(a.default=R).prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},R.prototype.baseIconClass="fc-icon",R.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"},R.prototype.iconOverrideOption="buttonIcons",R.prototype.iconOverrideCustomButtonOption="icon",R.prototype.iconOverridePrefix="fc-icon-"},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(22),R=(L.__extends(k,b=W.default),k);function k(){return null!==b&&b.apply(this,arguments)||this}(a.default=R).prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"},R.prototype.baseIconClass="ui-icon",R.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"},R.prototype.iconOverrideOption="themeButtonIcons",R.prototype.iconOverrideCustomButtonOption="themeIcon",R.prototype.iconOverridePrefix="ui-icon-"},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(21),k=u(6),N=(L.__extends(I,b=k.default),I.parse=function(x,S){var A;return W.isFunction(x.events)?A=x:W.isFunction(x)&&(A={events:x}),!!A&&k.default.parse.call(this,A,S)},I.prototype.fetch=function(x,S,A){var O=this;return this.calendar.pushLoading(),R.default.construct(function(H){O.func.call(O.calendar,x.clone(),S.clone(),A,function(z){O.calendar.popLoading(),H(O.parseEventDefs(z))})})},I.prototype.getPrimitive=function(){return this.func}
1,I.prototype.applyManualStandardProps=function(x){var S=b.prototype.applyManualStandardProps.call(this,x);return this.func=x.events,S},I);function I(){return null!==b&&b.apply(this,arguments)||this}(a.default=N).defineStandardProps({events:!1})},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(4),k=u(21),N=u(6),I=(L.__extends(x,b=N.default),x.parse=function(S,A){var O;return"string"==typeof S.url?O=S:"string"==typeof S&&(O={url:S}),!!O&&N.default.parse.call(this,O,A)},x.prototype.fetch=function(S,A,O){var H=this,z=this.ajaxSettings,v=z.success,tt=z.error,ft=this.buildRequestParams(S,A,O);return this.calendar.pushLoading(),k.default.construct(function(Rt,lt){W.ajax(W.extend({},x.AJAX_DEFAULTS,z,{url:H.url,data:ft,success:function(at,mt,wt){var qt;H.calendar.popLoading(),at?(qt=R.applyAll(v,H,[at,mt,wt]),W.isArray(qt)&&(at=qt),Rt(H.parseEventDefs(at))):lt()},error:function(at,mt,wt){H.calendar.popLoading(),R.applyAll(tt,H,[at,mt,wt]),lt()}}))})},x.prototype.buildRequestParams=function(S,A,O){var H,z,v,tt,ft=this.calendar,Rt=this.ajaxSettings,lt={};return null==(H=this.startParam)&&(H=ft.opt("startParam")),null==(z=this.endParam)&&(z=ft.opt("endParam")),null==(v=this.timezoneParam)&&(v=ft.opt("timezoneParam")),tt=W.isFunction(Rt.data)?Rt.data():Rt.data||{},W.extend(lt,tt),lt[H]=S.format(),lt[z]=A.format(),O&&"local"!==O&&(lt[v]=O),lt},x.prototype.getPrimitive=function(){return this.url},x.prototype.applyMiscProps=function(S){this.ajaxSettings=S},x.AJAX_DEFAULTS={dataType:"json",cache:!1},x);function x(){return null!==b&&b.apply(this,arguments)||this}(a.default=I).defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})},function(r,a){Object.defineProperty(a,"__esModule",{value:!0});var u=(b.prototype.proxyCall=function(L){for(var W=[],R=1;R<arguments.length;R++)W[R-1]=arguments[R];var k=[];return this.items.forEach(function(N){k.push(N[L].apply(N,W))}),k},b);function b(L){this.items=L||[]}a.default=u},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(4),W=u(7),R=(k.prototype.start=function(N){this.isFollowing||(this.isFollowing=!0,this.y0=L.getEvY(N),this.x0=L.getEvX(N),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),L.getEvIsTouch(N)?this.listenTo(b(document),"touchmove",this.handleMove):this.listenTo(b(document),"mousemove",this.handleMove))},k.prototype.stop=function(N,I){function x(){S.isAnimating=!1,S.removeElement(),S.top0=S.left0=null,I&&I()}var S=this,A=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(b(document)),N&&A&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:A,complete:x})):x())},k.prototype.getEl=function(){var N=this.el;return N||((N=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex})).addClass("fc-unselectable"),N.appendTo(this.parentEl)),N},k.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},k.prototype.updatePosition=function(){var N,I;this.getEl(),null==this.top0&&(N=this.sourceEl.offset(),I=this.el.offsetParent().offset(),this.top0=N.top-I.top,this.left0=N.left-I.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},k.prototype.handleMove=function(N){this.topDelta=L.getEvY(N)-this.y0,this.leftDelta=L.getEvX(N)-this.x0,this.isHidden||this.updatePosition()},k.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},k.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},k);function k(N,I){this.isFollowing=!1,this.isHidden=!1,this.isAnimating=!1,this.options=I=I||{},this.sourceEl=N,this.parentEl=I.parentEl?b(I.parentEl):N.parent()}a.default=R,W.default.mixInto(R)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(4),W=u(7),R=(k.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},k.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},k.prototype.render=function(){var N=this,I=this.options;this.el=b('<div class="fc-popover"/>').addClass(I.className||"").css({top:0,left:0}).append(I.content).appendTo(I.parentEl),this.el.on("click",".fc-close",function(){N.hide()}),I.autoHide&&this.listenTo(b(document),"mousedown",this.documentMousedown)},k.prototype.documentMousedown=function(N){this.el&&!b(N.target).closest(this.el).length&&this.hide()},k.prototype.removeElement=function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(b(document),"mousedown")},k.prototype.position=function(){var N,I,x,S,A,O=this.options,H=this.el.offsetParent().offset(),z=this.el.outerWidth(),v=this.el.outerHeight(),tt=b(window),ft=L.getScrollParent(this.el);S=O.top||0,A=void 0!==O.left?O.left:void 0!==O.right?O.right-z:0,I=ft.is(window)||ft.is(document)?(ft=tt,N=0):(N=(x=ft.offset()).top,x.left),N+=tt.scrollTop(),I+=tt.scrollLeft(),!1!==O.viewportConstrain&&(S=Math.min(S,N+ft.outerHeight()-v-this.margin),S=Math.max(S,N+this.margin),A=Math.min(A,I+ft.outerWidth()-z-this.margin),A=Math.max(A,I+this.margin)),this.el.css({top:S-H.top,left
1:A-H.left})},k.prototype.trigger=function(N){this.options[N]&&this.options[N].apply(this,Array.prototype.slice.call(arguments,1))},k);function k(N){this.isHidden=!0,this.margin=10,this.options=N||{}}a.default=R,W.default.mixInto(R)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(13),L=(W.prototype.queue=function(){for(var R=[],k=0;k<arguments.length;k++)R[k]=arguments[k];this.q.push.apply(this.q,R),this.tryStart()},W.prototype.pause=function(){this.isPaused=!0},W.prototype.resume=function(){this.isPaused=!1,this.tryStart()},W.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},W.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},W.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},W.prototype.runRemaining=function(){var R,k,N=this;do{if(R=this.q.shift(),(k=this.runTask(R))&&k.then)return void k.then(function(){N.canRunNext()&&N.runRemaining()})}while(this.canRunNext());this.trigger("stop"),this.isRunning=!1,this.tryStart()},W.prototype.runTask=function(R){return R()},W);function W(){this.q=[],this.isPaused=!1,this.isRunning=!1}a.default=L,b.default.mixInto(L)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(228),R=(L.__extends(k,b=W.default),k.prototype.queue=function(N,I,x){var S,A={func:N,namespace:I,type:x};I&&(S=this.waitsByNamespace[I]),this.waitNamespace&&(I===this.waitNamespace&&null!=S?this.delayWait(S):(this.clearWait(),this.tryStart())),this.compoundTask(A)&&(this.waitNamespace||null==S?this.tryStart():this.startWait(I,S))},k.prototype.startWait=function(N,I){this.waitNamespace=N,this.spawnWait(I)},k.prototype.delayWait=function(N){clearTimeout(this.waitId),this.spawnWait(N)},k.prototype.spawnWait=function(N){var I=this;this.waitId=setTimeout(function(){I.waitNamespace=null,I.tryStart()},N)},k.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},k.prototype.canRunNext=function(){if(!b.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(var N=this.q,I=0;I<N.length;I++)if(N[I].namespace!==this.waitNamespace)return!0;return!1}return!0},k.prototype.runTask=function(N){N.func()},k.prototype.compoundTask=function(N){var I,x,S=this.q,A=!0;if(N.namespace&&"destroy"===N.type)for(I=S.length-1;0<=I;I--)if((x=S[I]).namespace===N.namespace)switch(x.type){case"init":A=!1;case"add":case"remove":S.splice(I,1)}return A&&S.push(N),A},k);function k(N){var I=b.call(this)||this;return I.waitsByNamespace=N||{},I}a.default=R},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(51),R=(L.__extends(k,b=W.default),k.prototype.setElement=function(N){this.el=N,this.bindGlobalHandlers(),this.renderSkeleton(),this.set("isInDom",!0)},k.prototype.removeElement=function(){this.unset("isInDom"),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},k.prototype.bindGlobalHandlers=function(){},k.prototype.unbindGlobalHandlers=function(){},k.prototype.renderSkeleton=function(){},k.prototype.unrenderSkeleton=function(){},k);function k(){return null!==b&&b.apply(this,arguments)||this}a.default=R},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(0),k=u(4),N=u(11),I=u(49),x=u(230),S=u(19),A=(L.__extends(O,b=x.default),O.prototype.addChild=function(H){return!this.childrenByUid[H.uid]&&(this.childrenByUid[H.uid]=H,!0)},O.prototype.removeChild=function(H){return!!this.childrenByUid[H.uid]&&(delete this.childrenByUid[H.uid],!0)},O.prototype.updateSize=function(H,z,v){this.callChildren("updateSize",arguments)},O.prototype.opt=function(H){return this._getView().opt(H)},O.prototype.publiclyTrigger=function(){for(var H=[],z=0;z<arguments.length;z++)H[z]=arguments[z];var v=this._getCalendar();return v.publiclyTrigger.apply(v,H)},O.prototype.hasPublicHandlers=function(){for(var H=[],z=0;z<arguments.length;z++)H[z]=arguments[z];var v=this._getCalendar();return v.hasPublicHandlers.apply(v,H)},O.prototype.executeDateRender=function(H){this.dateProfile=H,this.renderDates(H),this.isDatesRendered=!0,this.callChildren("executeDateRender",arguments)},O.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments),this.dateProfile=null,this.unrenderDates(),this.isDatesRendered=!1},O.prototype.renderDates=function(H){},O.prototype.unrenderDates=function(){},O.prototype.getNowIndicatorUnit=function(){},O.prototype.renderNowIndicator=function(H){this.callChildren("renderNowIndicator",arguments)},O.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},O.prototype.renderBusinessHours=function(H){this.businessHourRenderer&&this.businessHourRenderer.render(H),this.callChildren("renderBusinessHours",arguments)},O.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments),this.businessHourRenderer&&this.businessHourRenderer.unrender()},O.prototype.executeEventRender=function(H){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(H)):this.renderEvents&&this.renderEvents(function(z){var v,tt,ft,Rt=[];for(v in z)for(tt=z[v].eventInstances,ft=0;ft<tt.length;ft++)Rt.push(tt[ft].toLegacy());return Rt}(H)),this.callChildren("executeEventRender",arguments)},O.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments),this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},O.prototype.getBusinessHourSegs=function(){var H=this.getOwnBusinessHourSegs();return this.iterChildren(function(z){H.push.apply(H,z.getBusinessHourSegs())}),H},O.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},O.prototype.getEventSegs=function(){var H=this.getOwnEventSegs();return this.iterChildren(function(z){H.push.apply(H,z.getEventSegs())}),H},O.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},O.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs()),this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},O.prototype.triggerAfterEventSegsRendered=function(H){var z=this;this.hasPublicHandlers("eventAfterRender")&&H.forEach(function(v){var tt;v.el&&(tt=v.footprint.getEventLegacy(),z.publiclyTrigger("eventAfterRender",{context:tt,args:[tt,v.el,z]}))})},O.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},O.prototype.triggerBeforeEventSegsDestroyed=function(H){var z=this;this.hasPublicHandlers("eventDestroy")&&H.forEach(function(v){var tt;v.el&&(tt=v.footprint.getEventLegacy(),z.publiclyTrigger("eventDestroy",{context:tt,args:[tt,v.el,z]}))})},O.prototype.showEventsWithId=function(H){this.getEventSegs().forEac
1h(function(z){z.footprint.eventDef.id===H&&z.el&&z.el.css("visibility","")}),this.callChildren("showEventsWithId",arguments)},O.prototype.hideEventsWithId=function(H){this.getEventSegs().forEach(function(z){z.footprint.eventDef.id===H&&z.el&&z.el.css("visibility","hidden")}),this.callChildren("hideEventsWithId",arguments)},O.prototype.renderDrag=function(H,z,v){var tt=!1;return this.iterChildren(function(ft){ft.renderDrag(H,z,v)&&(tt=!0)}),tt},O.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},O.prototype.renderEventResize=function(H,z,v){this.callChildren("renderEventResize",arguments)},O.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},O.prototype.renderSelectionFootprint=function(H){this.renderHighlight(H),this.callChildren("renderSelectionFootprint",arguments)},O.prototype.unrenderSelection=function(){this.unrenderHighlight(),this.callChildren("unrenderSelection",arguments)},O.prototype.renderHighlight=function(H){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",H,{getClasses:function(){return["fc-highlight"]}}),this.callChildren("renderHighlight",arguments)},O.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight"),this.callChildren("unrenderHighlight",arguments)},O.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits(),this.callChildren("hitsNeeded",arguments)},O.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits(),this.callChildren("hitsNotNeeded",arguments)},O.prototype.prepareHits=function(){},O.prototype.releaseHits=function(){},O.prototype.queryHit=function(H,z){var v,tt,ft=this.childrenByUid;for(v in ft)if(tt=ft[v].queryHit(H,z))break;return tt},O.prototype.getSafeHitFootprint=function(H){var z=this.getHitFootprint(H);return this.dateProfile.activeUnzonedRange.containsRange(z.unzonedRange)?z:null},O.prototype.getHitFootprint=function(H){},O.prototype.getHitEl=function(H){},O.prototype.eventRangesToEventFootprints=function(H){var z,v=[];for(z=0;z<H.length;z++)v.push.apply(v,this.eventRangeToEventFootprints(H[z]));return v},O.prototype.eventRangeToEventFootprints=function(H){return[S.eventRangeToEventFootprint(H)]},O.prototype.eventFootprintsToSegs=function(H){var z,v=[];for(z=0;z<H.length;z++)v.push.apply(v,this.eventFootprintToSegs(H[z]));return v},O.prototype.eventFootprintToSegs=function(H){var z,v,tt,ft=H.componentFootprint.unzonedRange;for(z=this.componentFootprintToSegs(H.componentFootprint),v=0;v<z.length;v++)tt=z[v],ft.isStart||(tt.isStart=!1),ft.isEnd||(tt.isEnd=!1),tt.footprint=H;return z},O.prototype.componentFootprintToSegs=function(H){return[]},O.prototype.callChildren=function(H,z){this.iterChildren(function(v){v[H].apply(v,z)})},O.prototype.iterChildren=function(H){var z,v=this.childrenByUid;for(z in v)H(v[z])},O.prototype._getCalendar=function(){return this.calendar||this.view.calendar},O.prototype._getView=function(){return this.view},O.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},O.prototype.buildGotoAnchorHtml=function(H,z,v){var tt,ft,Rt,lt;return W.isPlainObject(H)?(tt=H.date,ft=H.type,Rt=H.forceOff):tt=H,lt={date:(tt=N.default(tt)).format("YYYY-MM-DD"),type:ft||"day"},"string"==typeof z&&(v=z,z=null),z=z?" "+k.attrsToStr(z):"",v=v||"",!Rt&&this.opt("navLinks")?"<a"+z+' data-goto="'+k.htmlEscape(JSON.stringify(lt))+'">'+v+"</a>":"<span"+z+">"+v+"</span>"},O.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||k.htmlEscape(this.opt("allDayText"))},O.prototype.getDayClasses=function(H,z){var v,tt=this._getView(),ft=[];return this.dateProfile.activeUnzonedRange.containsDate(H)?(ft.push("fc-"+k.dayIDs[H.day()]),tt.isDateInOtherMonth(H,this.dateProfile)&&ft.push("fc-other-month"),v=tt.calendar.getNow(),H.isSame(v,"day")?(ft.push("fc-today"),!0!==z&&ft.push(tt.calendar.theme.getClass("today"))):ft.push(H<v?"fc-past":"fc-future")):ft.push("fc-disabled-day"),ft},O.prototype.formatRange=function(H,z,v,tt){var ft=H.end;return z&&(ft=ft.clone().subtract(1)),I.formatRange(H.start,ft,v,tt,this.isRTL)},O.prototype.currentRangeAs=function(H){return this._getDateProfile().currentUnzonedRange.as(H)},O.prototype.computeDayRange=function(H){var z=this._getCalendar(
1),v=z.msToUtcMoment(H.startMs,!0),tt=z.msToUtcMoment(H.endMs),ft=+tt.time(),Rt=tt.clone().stripTime();return ft&&ft>=this.nextDayThreshold&&Rt.add(1,"days"),Rt<=v&&(Rt=v.clone().add(1,"days")),{start:v,end:Rt}},O.prototype.isMultiDayRange=function(H){var z=this.computeDayRange(H);return 1<z.end.diff(z.start,"days")},O.guid=0,O);function O(H,z){var v=b.call(this)||this;return v.isRTL=!1,v.hitsNeededDepth=0,v.hasAllDayBusinessHours=!1,v.isDatesRendered=!1,H&&(v.view=H),z&&(v.options=z),v.uid=String(O.guid++),v.childrenByUid={},v.nextDayThreshold=R.duration(v.opt("nextDayThreshold")),v.isRTL=v.opt("isRTL"),v.fillRendererClass&&(v.fillRenderer=new v.fillRendererClass(v)),v.eventRendererClass&&(v.eventRenderer=new v.eventRendererClass(v,v.fillRenderer)),v.helperRendererClass&&v.eventRenderer&&(v.helperRenderer=new v.helperRendererClass(v,v.eventRenderer)),v.businessHourRendererClass&&v.fillRenderer&&(v.businessHourRenderer=new v.businessHourRendererClass(v,v.fillRenderer)),v}a.default=A},function(r,a,u){function b(w,Y){return null==Y?w:L.isFunction(Y)?w.filter(Y):(Y+="",w.filter(function(V){return V.id==Y||V._id===Y}))}Object.defineProperty(a,"__esModule",{value:!0});var L=u(3),W=u(0),R=u(4),k=u(33),N=u(225),I=u(23),x=u(13),S=u(7),A=u(257),O=u(258),H=u(259),z=u(217),v=u(32),tt=u(11),ft=u(5),Rt=u(12),lt=u(16),at=u(220),mt=u(218),wt=u(38),qt=u(36),ae=u(9),ye=u(39),he=u(6),Te=u(57),Ne=(Ot.prototype.constructed=function(){},Ot.prototype.getView=function(){return this.view},Ot.prototype.publiclyTrigger=function(w,Y){var V,it,yt=this.opt(w);if(L.isPlainObject(Y)?(V=Y.context,it=Y.args):L.isArray(Y)&&(it=Y),null==V&&(V=this.el[0]),this.triggerWith(w,V,it=it||[]),yt)return yt.apply(V,it)},Ot.prototype.hasPublicHandlers=function(w){return this.hasHandlers(w)||this.opt(w)},Ot.prototype.option=function(w,Y){var V;if("string"==typeof w){if(void 0===Y)return this.optionsManager.get(w);(V={})[w]=Y,this.optionsManager.add(V)}else"object"==typeof w&&this.optionsManager.add(w)},Ot.prototype.opt=function(w){return this.optionsManager.get(w)},Ot.prototype.instantiateView=function(w){var Y=this.viewSpecManager.getViewSpec(w);if(!Y)throw new Error('View type "'+w+'" is not valid');return new Y.class(this,Y)},Ot.prototype.isValidViewType=function(w){return Boolean(this.viewSpecManager.getViewSpec(w))},Ot.prototype.changeView=function(w,Y){Y&&(Y.start&&Y.end?this.optionsManager.recordOverrides({visibleRange:Y}):this.currentDate=this.moment(Y).stripZone()),this.renderView(w)},Ot.prototype.zoomTo=function(w,Y){var V;V=this.viewSpecManager.getViewSpec(Y=Y||"day")||this.viewSpecManager.getUnitViewSpec(Y),this.currentDate=w.clone(),this.renderView(V?V.type:null)},Ot.prototype.initCurrentDate=function(){var w=this.opt("defaultDate");this.currentDate=null!=w?this.moment(w).stripZone():this.getNow()},Ot.prototype.prev=function(){var w=this.view,Y=w.dateProfileGenerator.buildPrev(w.get("dateProfile"));Y.isValid&&(this.currentDate=Y.date,this.renderView())},Ot.prototype.next=function(){var w=this.view,Y=w.dateProfileGenerator.buildNext(w.get("dateProfile"));Y.isValid&&(this.currentDate=Y.date,this.renderView())},Ot.prototype.prevYear=function(){this.currentDate.add(-1,"years"),this.renderView()},Ot.prototype.nextYear=function(){this.currentDate.add(1,"years"),this.renderView()},Ot.prototype.today=function(){this.currentDate=this.getNow(),this.renderView()},Ot.prototype.gotoDate=function(w){this.currentDate=this.moment(w).stripZone(),this.renderView()},Ot.prototype.incrementDate=function(w){this.currentDate.add(W.duration(w)),this.renderView()},Ot.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},Ot.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},Ot.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},Ot.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},Ot.prototype.initialRender=function(){var w=this,Y=this.el;Y.addClass("fc"),Y.on("click.fc","a[data-goto]",function(V){var it=L(V.currentTarget).data("goto"),yt=w.moment(it.date),It=it.type,Lt=w.view.opt("navLink"+R.capitaliseFirstLetter(It)+"
1Click");"function"==typeof Lt?Lt(yt,V):("string"==typeof Lt&&(It=Lt),w.zoomTo(yt,It))}),this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(V){var it=new(Te.getThemeSystemClass(V.themeSystem||V.theme))(w.optionsManager),yt=it.getClass("widget");w.theme=it,yt&&Y.addClass(yt)},function(){var V=w.theme.getClass("widget");w.theme=null,V&&Y.removeClass(V)}),this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(V){w.businessHourGenerator=new mt.default(V.businessHours,w),w.view&&w.view.set("businessHourGenerator",w.businessHourGenerator)},function(){w.businessHourGenerator=null}),this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(V){Y.toggleClass("fc-ltr",!V.isRTL),Y.toggleClass("fc-rtl",V.isRTL)}),this.contentEl=L("<div class='fc-view-container'/>").prependTo(Y),this.initToolbars(),this.renderHeader(),this.renderFooter(),this.renderView(this.opt("defaultView")),this.opt("handleWindowResize")&&L(window).resize(this.windowResizeProxy=R.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},Ot.prototype.destroy=function(){this.view&&this.clearView(),this.toolbarsManager.proxyCall("removeElement"),this.contentEl.remove(),this.el.removeClass("fc fc-ltr fc-rtl"),this.optionsManager.unwatch("settingTheme"),this.optionsManager.unwatch("settingBusinessHourGenerator"),this.el.off(".fc"),this.windowResizeProxy&&(L(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null),I.default.unneeded()},Ot.prototype.elementVisible=function(){return this.el.is(":visible")},Ot.prototype.bindViewHandlers=function(w){var Y=this;w.watch("titleForCalendar",["title"],function(V){w===Y.view&&Y.setToolbarsTitle(V.title)}),w.watch("dateProfileForCalendar",["dateProfile"],function(V){w===Y.view&&(Y.currentDate=V.dateProfile.date,Y.updateToolbarButtons(V.dateProfile))})},Ot.prototype.unbindViewHandlers=function(w){w.unwatch("titleForCalendar"),w.unwatch("dateProfileForCalendar")},Ot.prototype.renderView=function(w){var Y,V=this.view;this.freezeContentHeight(),V&&w&&V.type!==w&&this.clearView(),!this.view&&w&&(Y=this.view=this.viewsByType[w]||(this.viewsByType[w]=this.instantiateView(w)),this.bindViewHandlers(Y),Y.startBatchRender(),Y.setElement(L("<div class='fc-view fc-"+w+"-view' />").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",w)),this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),Y&&Y.stopBatchRender()),this.thawContentHeight()},Ot.prototype.clearView=function(){var w=this.view;this.toolbarsManager.proxyCall("deactivateButton",w.type),this.unbindViewHandlers(w),w.removeElement(),w.unsetDate(),this.view=null},Ot.prototype.reinitView=function(){var w=this.view,Y=w.queryScroll();this.freezeContentHeight(),this.clearView(),this.calcSize(),this.renderView(w.type),this.view.applyScroll(Y),this.thawContentHeight()},Ot.prototype.getSuggestedViewHeight=function(){return null==this.suggestedViewHeight&&this.calcSize(),this.suggestedViewHeight},Ot.prototype.isHeightAuto=function(){return"auto"===this.opt("contentHeight")||"auto"===this.opt("height")},Ot.prototype.updateViewSize=function(w){void 0===w&&(w=!1);var Y,V=this.view;if(!this.ignoreUpdateViewSize&&V)return w&&(this.calcSize(),Y=V.queryScroll()),this.ignoreUpdateViewSize++,V.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),w),this.ignoreUpdateViewSize--,w&&V.applyScroll(Y),!0},Ot.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},Ot.prototype._calcSize=function(){var w=this.opt("contentHeight"),Y=this.opt("height");this.suggestedViewHeight="number"==typeof w?w:"function"==typeof w?w():"number"==typeof Y?Y-this.queryToolbarsHeight():"function"==typeof Y?Y()-this.queryToolbarsHeight():"parent"===Y?this.el.parent().height()-this.queryToolbarsHeight():Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},Ot.prototype.windowResize=function(w){w.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},Ot.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},Ot.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},Ot.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--,this.contentEl.css({width:"",height:"",overflow:""}),this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},Ot.prototype.initToolbars=function(){this.header=new A.default(this,this.computeHeaderOptions()),this.footer=new A.default(this,this.computeFooterOptions()),this.toolbarsManager=new N.default([this.header,this.footer])},Ot.prototype.computeHeaderOptions=function(){return{extraClasse
1s:"fc-header-toolbar",layout:this.opt("header")}},Ot.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},Ot.prototype.renderHeader=function(){var w=this.header;w.setToolbarOptions(this.computeHeaderOptions()),w.render(),w.el&&this.el.prepend(w.el)},Ot.prototype.renderFooter=function(){var w=this.footer;w.setToolbarOptions(this.computeFooterOptions()),w.render(),w.el&&this.el.append(w.el)},Ot.prototype.setToolbarsTitle=function(w){this.toolbarsManager.proxyCall("updateTitle",w)},Ot.prototype.updateToolbarButtons=function(w){var Y=this.getNow(),V=this.view,it=V.dateProfileGenerator.build(Y),yt=V.dateProfileGenerator.buildPrev(V.get("dateProfile")),It=V.dateProfileGenerator.buildNext(V.get("dateProfile"));this.toolbarsManager.proxyCall(it.isValid&&!w.currentUnzonedRange.containsDate(Y)?"enableButton":"disableButton","today"),this.toolbarsManager.proxyCall(yt.isValid?"enableButton":"disableButton","prev"),this.toolbarsManager.proxyCall(It.isValid?"enableButton":"disableButton","next")},Ot.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(w,Y){return w+(Y.el?Y.el.outerHeight(!0):0)},0)},Ot.prototype.select=function(w,Y){this.view.select(this.buildSelectFootprint.apply(this,arguments))},Ot.prototype.unselect=function(){this.view&&this.view.unselect()},Ot.prototype.buildSelectFootprint=function(w,Y){var V,it=this.moment(w).stripZone();return V=Y?this.moment(Y).stripZone():it.hasTime()?it.clone().add(this.defaultTimedEventDuration):it.clone().add(this.defaultAllDayEventDuration),new Rt.default(new ft.default(it,V),!it.hasTime())},Ot.prototype.initMomentInternals=function(){var w=this;this.defaultAllDayEventDuration=W.duration(this.opt("defaultAllDayEventDuration")),this.defaultTimedEventDuration=W.duration(this.opt("defaultTimedEventDuration")),this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(Y){var V,it=Y.weekNumberCalculation,yt=Y.firstDay;"iso"===it&&(it="ISO");var It=Object.create(v.getMomentLocaleData(Y.locale));Y.monthNames&&(It._months=Y.monthNames),Y.monthNamesShort&&(It._monthsShort=Y.monthNamesShort),Y.dayNames&&(It._weekdays=Y.dayNames),Y.dayNamesShort&&(It._weekdaysShort=Y.dayNamesShort),null==yt&&"ISO"===it&&(yt=1),null!=yt&&((V=Object.create(It._week)).dow=yt,It._week=V),"ISO"!==it&&"local"!==it&&"function"!=typeof it||(It._fullCalendar_weekCalc=it),w.localeData=It,w.currentDate&&w.localizeMoment(w.currentDate)})},Ot.prototype.moment=function(){for(var w=[],Y=0;Y<arguments.length;Y++)w[Y]=arguments[Y];var V;return"local"===this.opt("timezone")?(V=tt.default.apply(null,w)).hasTime()&&V.local():V="UTC"===this.opt("timezone")?tt.default.utc.apply(null,w):tt.default.parseZone.apply(null,w),this.localizeMoment(V),V},Ot.prototype.msToMoment=function(w,Y){var V=tt.default.utc(w);return Y?V.stripTime():V=this.applyTimezone(V),this.localizeMoment(V),V},Ot.prototype.msToUtcMoment=function(w,Y){var V=tt.default.utc(w);return Y&&V.stripTime(),this.localizeMoment(V),V},Ot.prototype.localizeMoment=function(w){w._locale=this.localeData},Ot.prototype.getIsAmbigTimezone=function(){return"local"!==this.opt("timezone")&&"UTC"!==this.opt("timezone")},Ot.prototype.applyTimezone=function(w){if(!w.hasTime())return w.clone();var Y,V=this.moment(w.toArray()),it=w.time().asMilliseconds()-V.time().asMilliseconds();return it&&(Y=V.clone().add(it),w.time().asMilliseconds()-Y.time().asMilliseconds()==0&&(V=Y)),V},Ot.prototype.footprintToDateProfile=function(w,Y){void 0===Y&&(Y=!1);var V,it=tt.default.utc(w.unzonedRange.startMs);return Y||(V=tt.default.utc(w.unzonedRange.endMs)),w.isAllDay?(it.stripTime(),V&&V.stripTime()):(it=this.applyTimezone(it),V=V&&this.applyTimezone(V)),this.localizeMoment(it),V&&this.localizeMoment(V),new lt.default(it,V,this)},Ot.prototype.getNow=function(){var w=this.opt("now");return"function"==typeof w&&(w=w()),this.moment(w).stripZone()},Ot.prototype.humanizeDuration=function(w){return w.locale(this.opt("locale")).humanize()},Ot.prototype.parseUnzonedRange=function(w){var Y=null,V=null;return w.start&&(Y=this.moment(w.start).stripZone()),w.end&&(V=this.moment(w.end).str
1ipZone()),Y||V?Y&&V&&V.isBefore(Y)?null:new ft.default(Y,V):null},Ot.prototype.initEventManager=function(){var w=this,Y=new at.default(this),V=this.opt("eventSources")||[],it=this.opt("events");this.eventManager=Y,it&&V.unshift(it),Y.on("release",function(yt){w.trigger("eventsReset",yt)}),Y.freeze(),V.forEach(function(yt){var It=wt.default.parse(yt,w);It&&Y.addSource(It)}),Y.thaw()},Ot.prototype.requestEvents=function(w,Y){return this.eventManager.requestEvents(w,Y,this.opt("timezone"),!this.opt("lazyFetching"))},Ot.prototype.getEventEnd=function(w){return w.end?w.end.clone():this.getDefaultEventEnd(w.allDay,w.start)},Ot.prototype.getDefaultEventEnd=function(w,Y){var V=Y.clone();return w?V.stripTime().add(this.defaultAllDayEventDuration):V.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&V.stripZone(),V},Ot.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},Ot.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},Ot.prototype.renderEvents=function(w,Y){this.eventManager.freeze();for(var V=0;V<w.length;V++)this.renderEvent(w[V],Y);this.eventManager.thaw()},Ot.prototype.renderEvent=function(w,Y){void 0===Y&&(Y=!1);var V=this.eventManager,it=qt.default.parse(w,w.source||V.stickySource);it&&V.addEventDef(it,Y)},Ot.prototype.removeEvents=function(w){var Y,V=this.eventManager,it=[],yt={};if(null==w)V.removeAllEventDefs();else{for(V.getEventInstances().forEach(function(It){it.push(It.toLegacy())}),it=b(it,w),Y=0;Y<it.length;Y++)yt[this.eventManager.getEventDefByUid(it[Y]._id).id]=!0;for(Y in V.freeze(),yt)V.removeEventDefsById(Y);V.thaw()}},Ot.prototype.clientEvents=function(w){var Y=[];return this.eventManager.getEventInstances().forEach(function(V){Y.push(V.toLegacy())}),b(Y,w)},Ot.prototype.updateEvents=function(w){this.eventManager.freeze();for(var Y=0;Y<w.length;Y++)this.updateEvent(w[Y]);this.eventManager.thaw()},Ot.prototype.updateEvent=function(w){var Y,V,it=this.eventManager.getEventDefByUid(w._id);it instanceof ae.default&&(Y=it.buildInstance(),V=ye.default.createFromRawProps(Y,w,null),this.eventManager.mutateEventsWithId(it.id,V))},Ot.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},Ot.prototype.getEventSourceById=function(w){return this.eventManager.getSourceById(he.default.normalizeId(w))},Ot.prototype.addEventSource=function(w){var Y=wt.default.parse(w,this);Y&&this.eventManager.addSource(Y)},Ot.prototype.removeEventSources=function(w){var Y,V,it=this.eventManager;if(null==w)this.eventManager.removeAllSources();else{for(Y=it.multiQuerySources(w),it.freeze(),V=0;V<Y.length;V++)it.removeSource(Y[V]);it.thaw()}},Ot.prototype.removeEventSource=function(w){var Y,V=this.eventManager,it=V.querySources(w);for(V.freeze(),Y=0;Y<it.length;Y++)V.removeSource(it[Y]);V.thaw()},Ot.prototype.refetchEventSources=function(w){var Y,V=this.eventManager,it=V.multiQuerySources(w);for(V.freeze(),Y=0;Y<it.length;Y++)V.refetchSource(it[Y]);V.thaw()},Ot.defaults=k.globalDefaults,Ot.englishDefaults=k.englishDefaults,Ot.rtlDefaults=k.rtlDefaults,Ot);function Ot(w,Y){this.loadingLevel=0,this.ignoreUpdateViewSize=0,this.freezeContentHeightDepth=0,I.default.needed(),this.el=w,this.viewsByType={},this.optionsManager=new O.default(this,Y),this.viewSpecManager=new H.default(this.optionsManager,this),this.initMomentInternals(),this.initCurrentDate(),this.initEventManager(),this.constraints=new z.default(this.eventManager,this),this.constructed()}a.default=Ne,x.default.mixInto(Ne),S.default.mixInto(Ne)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(0),k=u(18),N=u(4),I=u(11),x=u(7),S=u(17),A=u(9),O=u(20),H=u(6),z=u(14),v=(L.__extends(tt,b=z.default),tt.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},tt.prototype.bindToDocument=function(){this.listenTo(W(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},tt.prototype.unbindFromDocument=function(){this.stopListeningTo(W(document))},tt.prototype.handleDragStart=function(ft,Rt){var lt,at;this.opt("droppable")&&(lt=W((Rt?Rt.item:null)||ft.target),at=this.opt("dropAccept"),(W.isFunction(at)?at.call(lt[0],lt):lt.is(at))&&(this.isDragging||this.listenToExternalDrag(lt,ft,Rt)))},tt.prototype.listenToExternalDrag=function(ft,Rt,lt){var at,ye,he,Te,Ne,Ot,w,mt=this,wt=this.component,qt=this.view,ae=((w=k.dataAttrPrefix)&&(w+="-"),(he=(ye=ft).data(w+"event")||null)&&(null==(Te=(he="object"==typeof he?W.extend({},he):{}).start)&&(Te=he.time),Ne=he.duration,Ot=he.stick,delete he.start,delete he.time,delete he.duration,delete he.stick),null==Te&&(Te=ye.data(w+"start")),null==Te&&(Te=ye.data(w+"time")),null==Ne&&(Ne=ye.data(w+"duration")),null==Ot&&(Ot=ye.data(w+"stick")),{eventProps:he,startTime:Te=null!=Te?R.duration(Te):null,duration:Ne=null!=Ne?R.duration(Ne):null,stick:Ot=Boolean(Ot)});(this.dragListener=new S.default(wt,{interactionStart:function(){mt.isDragging=!0},hitOver:function(ye){var he,Te=ye.component.getSafeHitFootprint(ye);!!Te&&!!(at=mt.computeExternalDrop(Te,ae))&&(he=new O.default(at.buildInstances()),ae.eventProps?wt.isEventInstanceGroupAllowed(he):wt.isExternalInstanceGroupAllowed(he))||(at=null,N.disableCursor(
1)),at&&wt.renderDrag(wt.eventRangesToEventFootprints(he.sliceRenderRanges(wt.dateProfile.renderUnzonedRange,qt.calendar)))},hitOut:function(){at=null},hitDone:function(){N.enableCursor(),wt.unrenderDrag()},interactionEnd:function(ye){at&&qt.reportExternalDrop(at,Boolean(ae.eventProps),Boolean(ae.stick),ft,ye,lt),mt.isDragging=!1,mt.dragListener=null}})).startDrag(Rt)},tt.prototype.computeExternalDrop=function(ft,Rt){var lt,at=this.view.calendar,mt=I.default.utc(ft.unzonedRange.startMs).stripZone();return ft.isAllDay&&(Rt.startTime?mt.time(Rt.startTime):mt.stripTime()),Rt.duration&&(lt=mt.clone().add(Rt.duration)),mt=at.applyTimezone(mt),lt=lt&&at.applyTimezone(lt),A.default.parse(W.extend({},Rt.eventProps,{start:mt,end:lt}),new H.default(at))},tt);function tt(){var ft=null!==b&&b.apply(this,arguments)||this;return ft.isDragging=!1,ft}a.default=v,x.default.mixInto(v),k.dataAttrPrefix=""},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(4),k=u(39),N=u(40),I=u(17),x=u(14),S=(L.__extends(A,b=x.default),A.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},A.prototype.bindToEl=function(O){var H=this.component;H.bindSegHandlerToEl(O,"mousedown",this.handleMouseDown.bind(this)),H.bindSegHandlerToEl(O,"touchstart",this.handleTouchStart.bind(this))},A.prototype.handleMouseDown=function(O,H){this.component.canStartResize(O,H)&&this.buildDragListener(O,W(H.target).is(".fc-start-resizer")).startInteraction(H,{distance:5})},A.prototype.handleTouchStart=function(O,H){this.component.canStartResize(O,H)&&this.buildDragListener(O,W(H.target).is(".fc-start-resizer")).startInteraction(H)},A.prototype.buildDragListener=function(O,H){var z,v,tt=this,ft=this.component,Rt=this.view,lt=Rt.calendar,at=lt.eventManager,mt=O.el,wt=O.footprint.eventDef,qt=O.footprint.eventInstance;return this.dragListener=new I.default(ft,{scroll:this.opt("dragScroll"),subjectEl:mt,interactionStart:function(){z=!1},dragStart:function(ae){z=!0,tt.eventPointing.handleMouseout(O,ae),tt.segResizeStart(O,ae)},hitOver:function(ae,ye,he){var Te,Ne=ft.getSafeHitFootprint(he),Ot=ft.getSafeHitFootprint(ae);Ne&&Ot&&(v=H?tt.computeEventStartResizeMutation(Ne,Ot,O.footprint):tt.computeEventEndResizeMutation(Ne,Ot,O.footprint))&&(Te=at.buildMutatedEventInstanceGroup(wt.id,v),ft.isEventInstanceGroupAllowed(Te))?v.isEmpty()&&(v=null):(v=null,R.disableCursor()),v&&(Rt.hideEventsWithId(O.footprint.eventDef.id),Rt.renderEventResize(ft.eventRangesToEventFootprints(Te.sliceRenderRanges(ft.dateProfile.renderUnzonedRange,lt)),O))},hitOut:function(){v=null},hitDone:function(){Rt.unrenderEventResize(O),Rt.showEventsWithId(O.footprint.eventDef.id),R.enableCursor()},interactionEnd:function(ae){z&&tt.segResizeStop(O,ae),v&&Rt.reportEventResize(qt,v,mt,ae),tt.dragListener=null}})},A.prototype.segResizeStart=function(O,H){this.isResizing=!0,this.component.publiclyTrigger("eventResizeStart",{context:O.el[0],args:[O.footprint.getEventLegacy(),H,{},this.view]})},A.prototype.segResizeStop=function(O,H){this.isResizing=!1,this.component.publiclyTrigger("eventResizeStop",{context:O.el[0],args:[O.footprint.getEventLegacy(),H,{},this.view]})},A.prototype.computeEventStartResizeMutation=function(O,H,z){var v,tt,ft=z.componentFootprint.unzonedRange,Rt=this.component.diffDates(H.unzonedRange.getStart(),O.unzonedRange.getStart());return ft.getStart().add(Rt)<ft.getEnd()&&((v=new N.default).setStartDelta(Rt),(tt=new k.default).setDateMutation(v),tt)},A.prototype.computeEventEndResizeMutation=function(O,H,z){var v,tt,ft=z.componentFootprint.unzonedRange,Rt=this.component.diffDates(H.unzonedRange.getEnd(),O.unzonedRange.getEnd());return ft.getEnd().add(Rt)>ft.getStart()&&((v=new N.default).setEndDelta(Rt),(tt=new k.default).setDateMutation(v),tt)},A);function A(O,H){var z=b.call(this,O)||this;return z.isResizing=!1,z.eventPointing=H,z}a.default=S},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(4),R=u(39),k=u(40),N=u(59),I=u(17),x=u(226),S=u(14),A=(L.__extends(O,b=S.default),O.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},O.prototype.getSelectionDelay=function(){var H=this.opt("eventLongPressDelay");return null==H&&(H=this.opt("longPressDelay")),H},O.prototype.bindToEl=function(H){var z=this.component;z.bindSegHandlerToEl(H,"mousedown",this.handleMousedown.bind(this)),z.bindSegHandlerToEl(H,"touchstart",this.handleTouchStart.bind(this))},O.prototype.handleMousedown=function(H,z){!this.component.shouldIgnoreMouse()&&this.component.canStartDrag(H,z)&&this.buildDragListener(H).startInteraction(z,{distance:5})},O.prototype.handleTouchStart=function(H,z){var v=this.component,tt={delay:this.view.isEventDefSelected(H.footprint.eventDef)?0:this.getSelectionDelay()};v.canStartDrag(H,z)?this.buildDragListener(H).startInteraction(z,tt):v.canStartSelection(H,z)&&this.buildSelectListener(H).startInteraction(z,tt)},O.prototype.buildSelectListener=function(H){var z=this,v=this.view,tt=H.footprint.eventDef,ft=H.footprint.eventInstance;if(this.dragListener)return this.dragListener;var Rt=this.dragListener=new N.default({dragStart:function(lt){Rt.isTouch&&!v.isEventDefSelected(tt)&&ft&&v.selectEventInstance(ft)},interactionEnd:function(lt){z.dragListener=null}});return Rt},O.prototype.buildDragListener=function(H){var z,v,tt,ft=this,Rt=this.component,lt=this.view,at=lt.calendar,mt=at.eventManager,wt=H.el,qt=H.footprint.eventDef,ae=H.footprint.eventInstance;if(this.dragListener)return this.dragListener;var ye=this.dragListener=new I.default(lt,{scroll:this.opt("dragScroll"),subjectEl:wt,subjectCenter:!0,interactionStart:function(he){H.component=Rt,z=!1,(v=new x.default(H.el,{additionalClass:"fc-dragging",parentEl:lt.el,opacity:ye.isTouch?null:ft.opt("dragOpacity"),revertDuration:ft.opt("dragRevertDuration"),zIndex:2})).hide(),v.start(he)},dragStart:function(he){ye.isTouch&&!lt.isEventDefSelected(qt)&&ae&<.selectEventInstance(ae),z=!0,ft.eventPointing.handleMouseout(H,he),ft.segDragStart(H,he),lt.hideEventsWithId(H.footprint.eventDef.id)},hitOver:function(he,Te,Ne){var Ot,w,Y;H.hit&&(Ne=H.hit),Ot=Ne.component.getSafeHitFootprint(Ne),w=he.component.getSafeHitFootprint(he),Ot&&w&&(tt=ft.computeEventDropMutation(Ot,w,qt))&&(Y=mt.buildMutatedEventInstanceGroup(qt.id,tt),Rt.isEventInstanceGroupAllowed(Y))||(tt=null,W.disableCursor(
1)),tt&<.renderDrag(Rt.eventRangesToEventFootprints(Y.sliceRenderRanges(Rt.dateProfile.renderUnzonedRange,at)),H,ye.isTouch)?v.hide():v.show(),Te&&(tt=null)},hitOut:function(){lt.unrenderDrag(H),v.show(),tt=null},hitDone:function(){W.enableCursor()},interactionEnd:function(he){delete H.component,v.stop(!tt,function(){z&&(lt.unrenderDrag(H),ft.segDragStop(H,he)),lt.showEventsWithId(H.footprint.eventDef.id),tt&<.reportEventDrop(ae,tt,wt,he)}),ft.dragListener=null}});return ye},O.prototype.segDragStart=function(H,z){this.isDragging=!0,this.component.publiclyTrigger("eventDragStart",{context:H.el[0],args:[H.footprint.getEventLegacy(),z,{},this.view]})},O.prototype.segDragStop=function(H,z){this.isDragging=!1,this.component.publiclyTrigger("eventDragStop",{context:H.el[0],args:[H.footprint.getEventLegacy(),z,{},this.view]})},O.prototype.computeEventDropMutation=function(H,z,v){var tt=new R.default;return tt.setDateMutation(this.computeEventDateMutation(H,z)),tt},O.prototype.computeEventDateMutation=function(H,z){var v,tt,ft=H.unzonedRange.getStart(),Rt=z.unzonedRange.getStart(),lt=!1,at=!1,mt=!1;return H.isAllDay!==z.isAllDay&&(lt=!0,z.isAllDay?(mt=!0,ft.stripTime()):at=!0),v=this.component.diffDates(Rt,ft),(tt=new k.default).clearEnd=lt,tt.forceTimed=at,tt.forceAllDay=mt,tt.setDateDelta(v),tt},O);function O(H,z){var v=b.call(this,H)||this;return v.isDragging=!1,v.eventPointing=z,v}a.default=A},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(4),R=u(17),k=u(12),N=u(5),I=u(14),x=(L.__extends(S,b=I.default),S.prototype.end=function(){this.dragListener.endInteraction()},S.prototype.getDelay=function(){var A=this.opt("selectLongPressDelay");return null==A&&(A=this.opt("longPressDelay")),A},S.prototype.bindToEl=function(A){var O=this,H=this.component,z=this.dragListener;H.bindDateHandlerToEl(A,"mousedown",function(v){O.opt("selectable")&&!H.shouldIgnoreMouse()&&z.startInteraction(v,{distance:O.opt("selectMinDistance")})}),H.bindDateHandlerToEl(A,"touchstart",function(v){O.opt("selectable")&&!H.shouldIgnoreTouch()&&z.startInteraction(v,{delay:O.getDelay()})}),W.preventSelection(A)},S.prototype.buildDragListener=function(){var A,O=this,H=this.component;return new R.default(H,{scroll:this.opt("dragScroll"),interactionStart:function(){A=null},dragStart:function(z){O.view.unselect(z)},hitOver:function(z,v,tt){var ft,Rt;tt&&(ft=H.getSafeHitFootprint(tt),Rt=H.getSafeHitFootprint(z),(A=ft&&Rt?O.computeSelection(ft,Rt):null)?H.renderSelectionFootprint(A):!1===A&&W.disableCursor())},hitOut:function(){A=null,H.unrenderSelection()},hitDone:function(){W.enableCursor()},interactionEnd:function(z,v){!v&&A&&O.view.reportSelection(A,z)}})},S.prototype.computeSelection=function(A,O){var H=this.computeSelectionFootprint(A,O);return!(H&&!this.isSelectionFootprintAllowed(H))&&H},S.prototype.computeSelectionFootprint=function(A,O){var H=[A.unzonedRange.startMs,A.unzonedRange.endMs,O.unzonedRange.startMs,O.unzonedRange.endMs];return H.sort(W.compareNumbers),new k.default(new N.default(H[0],H[3]),A.isAllDay)},S.prototype.isSelectionFootprintAllowed=function(A){return this.component.dateProfile.validUnzonedRange.containsRange(A.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(A)},S);function S(A){var O=b.call(this,A)||this;return O.dragListener=O.buildDragListener(),O}a.default=x},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(17),R=u(14),k=(L.__extends(N,b=R.default),N.prototype.end=function(){this.dragListener.endInteraction()},N.prototype.bindToEl=function(I){var x=this.component,S=this.dragListener;x.bindDateHandlerToEl(I,"mousedown",function(A){x.shouldIgnoreMouse()||S.startInteraction(A)}),x.bindDateHandlerToEl(I,"touchstart",function(A){x.shouldIgnoreTouch()||S.startInteraction(A)})},N.prototype.buildDragListener=function(){var I,x=this,S=this.component,A=new W.default(S,{scroll:this.opt("dragScroll"),interactionStart:function(){I=A.origHit},hitOver:function(O,H,z){H||(I=null)},hitOut:function(){I=null},interactionEnd:function(O,H){var z;!H&&I&&(z=S.getSafeHitFootprint(I))&&x.view.triggerDayClick(z,S.getHitEl(I),O)}});
1return A.shouldCancelTouchScroll=!1,A.scrollAlwaysKills=!0,A},N);function N(I){var x=b.call(this,I)||this;return x.dragListener=x.buildDragListener(),x}a.default=k},function(r,a,u){function b(tt){var ft,Rt=[],lt=[];for(ft=0;ft<tt.length;ft++)tt[ft].componentFootprint.isAllDay?Rt.push(tt[ft]):lt.push(tt[ft]);return{allDay:Rt,timed:lt}}Object.defineProperty(a,"__esModule",{value:!0});var L,W,R,k=u(2),N=u(0),I=u(3),x=u(4),S=u(41),A=u(43),O=u(239),H=u(66),z=(k.__extends(v,R=A.default),v.prototype.instantiateTimeGrid=function(){var tt=new this.timeGridClass(this);return x.copyOwnProps(L,tt),tt},v.prototype.instantiateDayGrid=function(){var tt=new this.dayGridClass(this);return x.copyOwnProps(W,tt),tt},v.prototype.renderSkeleton=function(){var tt,ft;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.scroller.render(),tt=this.scroller.el.addClass("fc-time-grid-container"),ft=I('<div class="fc-time-grid" />').appendTo(tt),this.el.find(".fc-body > tr > td").append(tt),this.timeGrid.headContainerEl=this.el.find(".fc-head-container"),this.timeGrid.setElement(ft),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},v.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement(),this.dayGrid&&this.dayGrid.removeElement(),this.scroller.destroy()},v.prototype.renderSkeletonHtml=function(){var tt=this.calendar.theme;return'<table class="'+tt.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+tt.getClass("widgetHeader")+'"> </td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+tt.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+tt.getClass("widgetHeader")+'"/>':"")+"</td></tr></tbody></table>"},v.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},v.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},v.prototype.updateSize=function(tt,ft,Rt){var lt,at,mt;if(R.prototype.updateSize.call(this,tt,ft,Rt),this.axisWidth=x.matchCellWidths(this.el.find(".fc-axis")),this.timeGrid.colEls){var wt=this.el.find(".fc-row:not(.fc-scroller *)");this.timeGrid.bottomRuleEl.hide(),this.scroller.clear(),x.uncompensateScroll(wt),this.dayGrid&&(this.dayGrid.removeSegPopover(),(lt=this.opt("eventLimit"))&&"number"!=typeof lt&&(lt=5),lt&&this.dayGrid.limitRows(lt)),ft||(at=this.computeScrollerHeight(tt),this.scroller.setHeight(at),((mt=this.scroller.getScrollbarWidths()).left||mt.right)&&(x.compensateScroll(wt,mt),at=this.computeScrollerHeight(tt),this.scroller.setHeight(at)),this.scroller.lockOverflow(mt),this.timeGrid.getTotalSlatHeight()<at&&this.timeGrid.bottomRuleEl.show())}else ft||(at=this.computeScrollerHeight(tt),this.scroller.setHeight(at))},v.prototype.computeScrollerHeight=function(tt){return tt-x.subtractInnerElHeight(this.el,this.scroller.el)},v.prototype.computeInitialDateScroll=function(){var tt=N.duration(this.opt("scrollTime")),ft=this.timeGrid.computeTimeTop(tt);return(ft=Math.ceil(ft))&&ft++,{top:ft}},v.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},v.prototype.applyDateScroll=function(tt){void 0!==tt.top&&this.scroller.setScrollTop(tt.top)},v.prototype.getHitFootprint=function(tt){return tt.component.getHitFootprint(tt)},v.prototype.getHitEl=function(tt){return tt.component.getHitEl(tt)},v.prototype.executeEventRender=function(tt){var ft,Rt,lt={},at={};for(ft in tt)(Rt=tt[ft]).getEventDef().isAllDay()?lt[ft]=Rt:at[ft]=Rt;this.timeGrid.executeEventRender(at),this.dayGrid&&this.dayGrid.executeEventRender(lt)},v.prototype.renderDrag=function(tt,ft,Rt){var lt=b(tt),at=!1;return at=this.timeGrid.renderDrag(lt.timed,ft,Rt),this.dayGrid&&(at=this.dayGrid.renderDrag(lt.allDay,ft,Rt)||at),at},v.prototype.renderEventResize=function(tt,ft,Rt){var lt=b(tt);this.timeGrid.renderEventResize(lt.timed,ft,Rt),this.dayGrid&&this.dayGrid.renderEventResize(lt.allDay,ft,Rt)},v.prototype.renderSelectionFootprint=function(tt){tt.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(tt):this.timeGrid.renderSelectionFootprint(tt)},v);function v(tt,ft){var Rt=R.call(this,tt,ft)||this;return Rt.usesMinMaxTime=!0,Rt.timeGrid=Rt.instantiateTimeGrid(),Rt.addChild(Rt.timeGrid),Rt.opt("allDaySlot")&&(Rt.dayGrid=Rt.instantiateDayGrid(),Rt.addChild(Rt.dayGrid)),Rt.scroller=new S.default({overflowX:"hidden",overflowY:"auto"}),Rt}(a.default=z).prototype.timeGridClass=O.default,z.prototype.dayGridClass=H.default,L={renderHeadIntroHtml:function(){var tt,ft=this.view,Rt=ft.calendar,lt=Rt.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0);return this.opt("weekNumbers")?(tt=lt.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+Rt.theme.getClass("widgetHeader")+'" '+ft.axisStyleAttr()+">"+ft.buildGotoAnchorHtml({date:lt,type:"week",forceOff:1<this.colCnt},x.htmlEscape(tt))+"</th>"):'<th class="fc-axis '+Rt.theme.getClass("widgetHeader")+'" '+ft.axisStyleAttr()+"></th>"},renderBgIntroHtml:function(){var tt=this.view;return'<td class="fc-axis '+tt.calendar.theme.getClass("widgetContent")+'" '+tt.axisStyleAttr()+"></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},W={renderBgIntroHtml:function(){var tt=this.view;return'<td class="fc-axis '+tt.calendar.theme.getClass("widgetContent")+'" '+tt.axisStyleAttr()+"><span>"+tt.getAllDayHtml()+"</span></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}}},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(0),k=u(4),N=u(42),I=u(61),x=u(65),S=u(60),A=u(58),O=u(5),H=u(12),z=u(240),v=u(241),tt=u(242),ft=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],Rt=(L.__extends(lt,b=N.default),lt.prototype.componentFootprintToSegs=function(at){var mt,wt=this.sliceRangeByTimes(at.unzonedRange);for(mt=0;mt<wt.length;mt++)wt[mt].col=this.isRTL?this.daysPerRow-1-wt[mt].dayIndex:wt[mt].dayIndex;return wt},lt.prototype.sliceRangeByTimes=function(at){var mt,wt,qt=[];for(wt=0;
1wt<this.daysPerRow;wt++)(mt=at.intersect(this.dayRanges[wt]))&&qt.push({startMs:mt.startMs,endMs:mt.endMs,isStart:mt.isStart,isEnd:mt.isEnd,dayIndex:wt});return qt},lt.prototype.processOptions=function(){var at,mt=this.opt("slotDuration"),wt=this.opt("snapDuration");mt=R.duration(mt),wt=wt?R.duration(wt):mt,this.slotDuration=mt,this.snapDuration=wt,this.snapsPerSlot=mt/wt,at=this.opt("slotLabelFormat"),W.isArray(at)&&(at=at[at.length-1]),this.labelFormat=at||this.opt("smallTimeFormat"),at=this.opt("slotLabelInterval"),this.labelInterval=at?R.duration(at):this.computeLabelInterval(mt)},lt.prototype.computeLabelInterval=function(at){var mt,wt,qt;for(mt=ft.length-1;0<=mt;mt--)if(wt=R.duration(ft[mt]),qt=k.divideDurationByDuration(wt,at),k.isInt(qt)&&1<qt)return wt;return R.duration(at)},lt.prototype.renderDates=function(at){this.dateProfile=at,this.updateDayTable(),this.renderSlats(),this.renderColumns()},lt.prototype.unrenderDates=function(){this.unrenderColumns()},lt.prototype.renderSkeleton=function(){this.el.html('<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+this.view.calendar.theme.getClass("widgetHeader")+'" style="display:none" />'),this.bottomRuleEl=this.el.find("hr")},lt.prototype.renderSlats=function(){var at=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+at.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"</table>"),this.slatEls=this.slatContainerEl.find("tr"),this.slatCoordCache=new A.default({els:this.slatEls,isVertical:!0})},lt.prototype.renderSlatRowHtml=function(){for(var at,mt,wt,qt=this.view,ae=qt.calendar,ye=ae.theme,he=this.isRTL,Te=this.dateProfile,Ne="",Ot=R.duration(+Te.minTime),w=R.duration(0);Ot<Te.maxTime;)at=ae.msToUtcMoment(Te.renderUnzonedRange.startMs).time(Ot),mt=k.isInt(k.divideDurationByDuration(w,this.labelInterval)),wt='<td class="fc-axis fc-time '+ye.getClass("widgetContent")+'" '+qt.axisStyleAttr()+">"+(mt?"<span>"+k.htmlEscape(at.format(this.labelFormat))+"</span>":"")+"</td>",Ne+='<tr data-time="'+at.format("HH:mm:ss")+'"'+(mt?"":' class="fc-minor"')+">"+(he?"":wt)+'<td class="'+ye.getClass("widgetContent")+'"/>'+(he?wt:"")+"</tr>",Ot.add(this.slotDuration),w.add(this.slotDuration);return Ne},lt.prototype.renderColumns=function(){var at=this.dateProfile,mt=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(wt){return new O.default(wt.clone().add(at.minTime),wt.clone().add(at.maxTime))}),this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),this.el.find("> .fc-bg").html('<table class="'+mt.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"</table>"),this.colEls=this.el.find(".fc-day, .fc-disabled-day"),this.colCoordCache=new A.default({els:this.colEls,isHorizontal:!0}),this.renderContentSkeleton()},lt.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},lt.prototype.renderContentSkeleton=function(){var at,mt,wt="";for(at=0;at<this.colCnt;at++)wt+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-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>';mt=this.contentSkeletonEl=W('<div class="fc-content-skeleton"><table><tr>'+wt+"</tr></table></div>"),this.colContainerEls=mt.find(".fc-content-col"),this.helperContainerEls=mt.find(".fc-helper-container"),this.fgContainerEls=mt.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=mt.find(".fc-bgevent-container"),this.highlightContainerEls=mt.find(".fc-highlight-container"),this.businessContainerEls=mt.find(".fc-business-container"),this.bookendCells(mt.find("tr")),this.el.append(mt)},lt.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl&&(this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null)},lt.prototype.groupSegsByCol=function(at){var mt,wt=[];for(mt=0;mt<this.colCnt;mt++)wt.push([]);for(mt=0;mt<at.length;mt++)wt[at[mt].col].push(at[mt]);return wt},lt.prototype.attachSegsByCol=function(at,mt){var wt,qt,ae;for(wt=0;
1wt<this.colCnt;wt++)for(qt=at[wt],ae=0;ae<qt.length;ae++)mt.eq(wt).append(qt[ae].el)},lt.prototype.getNowIndicatorUnit=function(){return"minute"},lt.prototype.renderNowIndicator=function(at){if(this.colContainerEls){var mt,wt=this.componentFootprintToSegs(new H.default(new O.default(at,at.valueOf()+1),!1)),qt=this.computeDateTop(at,at),ae=[];for(mt=0;mt<wt.length;mt++)ae.push(W('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",qt).appendTo(this.colContainerEls.eq(wt[mt].col))[0]);0<wt.length&&ae.push(W('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",qt).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=W(ae)}},lt.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},lt.prototype.updateSize=function(at,mt,wt){b.prototype.updateSize.call(this,at,mt,wt),this.slatCoordCache.build(),wt&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},lt.prototype.getTotalSlatHeight=function(){return this.slat
1ContainerEl.outerHeight()},lt.prototype.computeDateTop=function(at,mt){return this.computeTimeTop(R.duration(at-mt.clone().stripTime()))},lt.prototype.computeTimeTop=function(at){var mt,wt,qt=this.slatEls.length,ae=(at-this.dateProfile.minTime)/this.slotDuration;return ae=Math.max(0,ae),ae=Math.min(qt,ae),mt=Math.floor(ae),wt=ae-(mt=Math.min(mt,qt-1)),this.slatCoordCache.getTopPosition(mt)+this.slatCoordCache.getHeight(mt)*wt},lt.prototype.updateSegVerticals=function(at){this.computeSegVerticals(at),this.assignSegVerticals(at)},lt.prototype.computeSegVerticals=function(at){var mt,wt,qt,ae=this.opt("agendaEventMinHeight");for(mt=0;mt<at.length;mt++)(wt=at[mt]).top=this.computeDateTop(wt.startMs,qt=this.dayDates[wt.dayIndex]),wt.bottom=Math.max(wt.top+ae,this.computeDateTop(wt.endMs,qt))},lt.prototype.assignSegVerticals=function(at){var mt,wt;for(mt=0;mt<at.length;mt++)(wt=at[mt]).el.css(this.generateSegVerticalCss(wt))},lt.prototype.generateSegVerticalCss=function(at){return{top:at.top,bottom:-at.bottom}},lt.prototype.prepareHits=function(){this.colCoordCache.build(),this.slatCoordCache.build()},lt.prototype.releaseHits=function(){this.colCoordCache.clear()},lt.prototype.queryHit=function(at,mt){var wt=this.snapsPerSlot,qt=this.colCoordCache,ae=this.slatCoordCache;if(qt.isLeftInBounds(at)&&ae.isTopInBounds(mt)){var ye=qt.getHorizontalIndex(at),he=ae.getVerticalIndex(mt);if(null!=ye&&null!=he){var Te=ae.getTopOffset(he),Ne=ae.getHeight(he),w=Math.floor((mt-Te)/Ne*wt),Y=Te+w/wt*Ne,V=Te+(w+1)/wt*Ne;return{col:ye,snap:he*wt+w,component:this,left:qt.getLeftOffset(ye),right:qt.getRightOffset(ye),top:Y,bottom:V}}}},lt.prototype.getHitFootprint=function(at){var mt,wt=this.getCellDate(0,at.col),qt=this.computeSnapTime(at.snap);return wt.time(qt),mt=wt.clone().add(this.snapDuration),new H.default(new O.default(wt,mt),!1)},lt.prototype.computeSnapTime=function(at){return R.duration(this.dateProfile.minTime+this.snapDuration*at)},lt.prototype.getHitEl=function(at){return this.colEls.eq(at.col)},lt.prototype.renderDrag=function(at,mt,wt){var qt;if(mt){if(at.length)return this.helperRenderer.renderEventDraggingFootprints(at,mt,wt),!0}else for(qt=0;qt<at.length;qt++)this.renderHighlight(at[qt].componentFootprint)},lt.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},lt.prototype.renderEventResize=function(at,mt,wt){this.helperRenderer.renderEventResizingFootprints(at,mt,wt)},lt.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},lt.prototype.renderSelectionFootprint=function(at){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(at):this.renderHighlight(at)},lt.prototype.unrenderSelection=function(){this.helperRenderer.unrender(),this.unrenderHighlight()},lt);function lt(at){var mt=b.call(this,at)||this;return mt.processOptions(),mt}(a.default=Rt).prototype.eventRendererClass=z.default,Rt.prototype.businessHourRendererClass=I.default,Rt.prototype.helperRendererClass=v.default,Rt.prototype.fillRendererClass=tt.default,x.default.mixInto(Rt),S.default.mixInto(Rt)},function(r,a,u){function b(S){var A,O,H=S.forwardSegs,z=0;if(void 0===S.forwardPressure){for(A=0;A<H.length;A++)b(O=H[A]),z=Math.max(z,1+O.forwardPressure);S.forwardPressure=z}}function L(S,A,O){void 0===O&&(O=[]);for(var H=0;H<A.length;H++)(z=S).bottom>(v=A[H]).top&&z.top<v.bottom&&O.push(A[H]);var z,v;return O}Object.defineProperty(a,"__esModule",{value:!0});var W,R=u(2),k=u(4),N=u(44),I=(R.__extends(x,W=N.default),x.prototype.renderFgSegs=function(S){this.renderFgSegsIntoContainers(S,this.timeGrid.fgContainerEls)},x.prototype.renderFgSegsIntoContainers=function(S,A){var O,H;for(O=this.timeGrid.groupSegsByCol(S),H=0;H<this.timeGrid.colCnt;H++)this.updateFgSegCoords(O[H]);this.timeGrid.attachSegsByCol(O,A)},x.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEach(function(S){S.el.remove()})},x.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},x.prototype.computeDisplayEventEnd=function(){return!0},x.prototype.fgSegHtml=function(S,A){var O,H,z,v=this.view,tt=v.calendar,ft=S.footprint.componentFootprint,Rt=ft.isAllDay,lt=S.footprint.eventDef,at=v.isEventDefDraggable(lt),mt=!A&&S.isStart&&v.isEventDefResizableFromStart(lt),wt=!A&&S.isEnd&&v.isEventDefResizableFromEnd(lt),qt=this.getSegClasses(S,at,mt||wt),ae=k.cssToStr(this.getSkinCss(lt));if(qt.unshift("fc-time-grid-event","fc-v-event"),v.isMultiDayRange(ft.unzonedRange)){if(S.isStart||S.isEnd){var ye=tt.msToMoment(S.startMs),he=tt.msToMoment(S.endMs);O=this._getTimeText(ye,he,Rt),H=this._getTimeText(ye,he,Rt,"LT"),z=this._getTimeText(ye,he,Rt,null,!1)}}else O=this.getTimeText(S.footprint),H=this.getTimeText(S.footprint,"LT"),z=this.getTimeText(S.footprint,null,!1);return'<a class="'+qt.join(" ")+'"'+(lt.url?' href="'+k.htmlEscape(lt.url)+'"':"")+(ae?' style="'+ae+'"':"")+'><div class="fc-content">'+(O?'<div class="fc-time" data-start="'+k.htmlEscape(z)+'" data-full="'+k.htmlEscape(H)+'"><span>'+k.htmlEscape(O)+"</span></div>":"")+(lt.title?'<div class="fc-title">'+k.htmlEscape(lt.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(wt?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},x.prototype.updateFgSegCoords=function(S){this.timeGrid.computeSegVerticals(S),this.computeFgSegHorizontals(S),this.timeGrid.assignSegVerticals(S),this.assignFgSegHorizontals(S)},x.prototype.computeFgSegHorizontals=function(S){var A,O,H;if(this.sortEventSegs(S),function(z){var v,tt,ft,Rt,lt;for(v=0;v<z.length;v++)for(tt=z[v],ft=0;ft<tt.length;ft++)for((Rt=tt[ft]).forwardSegs=[],lt=v+1;lt<z.length;lt++)L(Rt,z[lt],Rt.forwardSegs)}(A=function(z){var v,tt,ft,Rt=[];for(v=0;v<z.length;v++){for(tt=z[v],ft=0;ft<Rt.length&&L(tt,Rt[ft]).length;ft++);(Rt[tt.level=ft]||(Rt[ft]=[])).push(tt)}return Rt}(S)),O=A[0]){for(H=0;H<O.length;H++)b(O[H]);for(H=0;H<O.length;H++)this.computeFgSegForwardBack(O[H],0,0)}},x.prototype.computeFgSegForwardBack=function(S,A,O){var H,z=S.forwardSegs;if(void 0===S.forwardCoord)for(z.length?(this.sortForwardSegs(z),this.computeFgSegForwardBack(z[0],A+1,O),S.forwardCoord=z[0].backwardCoord):S.forwardCoord=1,S.backwardCoord=S.forwardCoord-(S.forwardCoord-O)/(A+1),H=0;H<z.length;H++)this.computeFgSegForwardBack(z[H],0,S.forwardCoord)},x.prototype.sortForwardSegs=function(S){S.sort(k.proxy(this,"compareForwardSegs"))},x.prototype.compareForwardSegs=function(S,A){return A.forwardPressure-S.forwardPressure||(S.backwardCoord||0)-(A.backwardCoord||0)||this.compareEventSegs(S,A)},x.prototype.assignFgSegHorizontals=function(S){var A,O;for(A=0;A<S.length;A++)(O=S[A]).el.css(this.generateFgSegHorizontalCss(O)),O.footprint.eventDef.title&&O.bottom-O.to
1p<30&&O.el.addClass("fc-short")},x.prototype.generateFgSegHorizontalCss=function(S){var A,O,H=this.opt("slotEventOverlap"),z=S.backwardCoord,v=S.forwardCoord,tt=this.timeGrid.generateSegVerticalCss(S),ft=this.timeGrid.isRTL;return H&&(v=Math.min(1,z+2*(v-z))),O=ft?(A=1-v,z):(A=z,1-v),tt.zIndex=S.level+1,tt.left=100*A+"%",tt.right=100*O+"%",H&&S.forwardPressure&&(tt[ft?"marginLeft":"marginRight"]=20),tt},x);function x(S,A){var O=W.call(this,S,A)||this;return O.timeGrid=S,O}a.default=I},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(63),k=(L.__extends(N,b=R.default),N.prototype.renderSegs=function(I,x){var S,A,O,H=[];for(this.eventRenderer.renderFgSegsIntoContainers(I,this.component.helperContainerEls),S=0;S<I.length;S++)A=I[S],x&&x.col===A.col&&A.el.css({left:(O=x.el).css("left"),right:O.css("right"),"margin-left":O.css("margin-left"),"margin-right":O.css("margin-right")}),H.push(A.el[0]);return W(H)},N);function N(){return null!==b&&b.apply(this,arguments)||this}a.default=k},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(62),R=(L.__extends(k,b=W.default),k.prototype.attachSegEls=function(N,I){var x,S=this.component;return"bgEvent"===N?x=S.bgContainerEls:"businessHours"===N?x=S.businessContainerEls:"highlight"===N&&(x=S.highlightContainerEls),S.updateSegVerticals(I),S.attachSegsByCol(S.groupSegsByCol(I),x),I.map(function(A){return A.el[0]})},k);function k(){return null!==b&&b.apply(this,arguments)||this}a.default=R},function(r,a,u){function b(A,O){var H,z;for(H=0;H<O.length;H++)if((z=O[H]).leftCol<=A.rightCol&&z.rightCol>=A.leftCol)return!0;return!1}function L(A,O){return A.leftCol-O.leftCol}Object.defineProperty(a,"__esModule",{value:!0});var W,R=u(2),k=u(3),N=u(4),I=u(44),x=(R.__extends(S,W=I.default),S.prototype.renderBgRanges=function(A){A=k.grep(A,function(O){return O.eventDef.isAllDay()}),W.prototype.renderBgRanges.call(this,A)},S.prototype.renderFgSegs=function(A){var O=this.rowStructs=this.renderSegRows(A);this.dayGrid.rowEls.each(function(H,z){k(z).find(".fc-content-skeleton > table").append(O[H].tbodyEl)})},S.prototype.unrenderFgSegs=function(){for(var A,O=this.rowStructs||[];A=O.pop();)A.tbodyEl.remove();this.rowStructs=null},S.prototype.renderSegRows=function(A){var O,H,z=[];for(O=this.groupSegRows(A),H=0;H<O.length;H++)z.push(this.renderSegRow(H,O[H]));return z},S.prototype.renderSegRow=function(A,O){function H(Ne){for(;tt<Ne;)(at=(Te[z-1]||[])[tt])?at.attr("rowspan",parseInt(at.attr("rowspan")||1,10)+1):(at=k("<td/>"),ft.append(at)),he[z][tt]=at,Te[z][tt]=at,tt++}var z,v,tt,ft,Rt,lt,at,mt=this.dayGrid.colCnt,wt=this.buildSegLevels(O),qt=Math.max(1,wt.length),ae=k("<tbody/>"),ye=[],he=[],Te=[];for(z=0;z<qt;z++){if(v=wt[z],tt=0,ft=k("<tr/>"),ye.push([]),he.push([]),Te.push([]),v)for(Rt=0;Rt<v.length;Rt++){for(H((lt=v[Rt]).leftCol),at=k('<td class="fc-event-container"/>').append(lt.el),lt.leftCol!==lt.rightCol?at.attr("colspan",lt.rightCol-lt.leftCol+1):Te[z][tt]=at;tt<=lt.rightCol;)he[z][tt]=at,ye[z][tt]=lt,tt++;ft.append(at)}H(mt),this.dayGrid.bookendCells(ft),ae.append(ft)}return{row:A,tbodyEl:ae,cellMatrix:he,segMatrix:ye,segLevels:wt,segs:O}},S.prototype.buildSegLevels=function(A){var O,H,z,v=[];for(this.sortEventSegs(A),O=0;O<A.length;O++){for(H=A[O],z=0;z<v.length&&b(H,v[z]);z++);(v[H.level=z]||(v[z]=[])).push(H)}for(z=0;z<v.length;z++)v[z].sort(L);return v},S.prototype.groupSegRows=function(A){var O,H=[];for(O=0;O<this.dayGrid.rowCnt;O++)H.push([]);for(O=0;O<A.length;O++)H[A[O].row].push(A[O]);return H},S.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},S.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},S.prototype.fgSegHtml=function(A,O){var H,z,v=this.view,tt=A.footprint.eventDef,ft=A.footprint.componentFootprint.isAllDay,Rt=v.isEventDefDraggable(tt),lt=!O&&ft&&A.isStart&&v.isEventDefResizableFromStart(tt),at=!O&&ft&&A.isEnd&&v.isEventDefResizableFromEnd(tt),mt=this.getSegClasses(A,Rt,lt||at),wt=N.cssToStr(this.getSkinCss(tt)),qt="";return mt.unshift("fc-day-grid-event","fc-h-event"),A.isStart&&(H=this.getTimeText(A.footprint))&&(qt='<span class="fc-time">'+N.htmlEscape(H)+"</span>"),z='<span class="fc-title">'+(N.htmlEscape(tt.title||"")||" ")+"</span>
1",'<a class="'+mt.join(" ")+'"'+(tt.url?' href="'+N.htmlEscape(tt.url)+'"':"")+(wt?' style="'+wt+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?z+" "+qt:qt+" "+z)+"</div>"+(lt?'<div class="fc-resizer fc-start-resizer" />':"")+(at?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},S);function S(A,O){var H=W.call(this,A,O)||this;return H.dayGrid=A,H}a.default=x},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(63),k=(L.__extends(N,b=R.default),N.prototype.renderSegs=function(I,x){var S,A=[];return S=this.eventRenderer.renderSegRows(I),this.component.rowEls.each(function(O,H){var z,v,tt=W(H),ft=W('<div class="fc-helper-skeleton"><table/></div>');v=x&&x.row===O?x.el.position().top:((z=tt.find(".fc-content-skeleton tbody")).length||(z=tt.find(".fc-content-skeleton table")),z.position().top),ft.css("top",v).find("table").append(S[O].tbodyEl),tt.append(ft),A.push(ft[0])}),W(A)},N);function N(){return null!==b&&b.apply(this,arguments)||this}a.default=k},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(62),k=(L.__extends(N,b=R.default),N.prototype.attachSegEls=function(I,x){var S,A,O,H=[];for(S=0;S<x.length;S++)O=this.renderFillRow(I,A=x[S]),this.component.rowEls.eq(A.row).append(O),H.push(O[0]);return H},N.prototype.renderFillRow=function(I,x){var S,A,O,H=this.component.colCnt,z=x.leftCol,v=x.rightCol+1;return S="businessHours"===I?"bgevent":I.toLowerCase(),O=(A=W('<div class="fc-'+S+'-skeleton"><table><tr/></table></div>')).find("tr"),0<z&&O.append(new Array(z+1).join("<td/>")),O.append(x.el.attr("colspan",v-z)),v<H&&O.append(new Array(H-v+1).join("<td/>")),this.component.bookendCells(O),A},N);function N(){var I=null!==b&&b.apply(this,arguments)||this;return I.fillSegTag="td",I}a.default=k},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(0),R=u(4),k=u(67),N=u(247),I=(L.__extends(x,b=k.default),x.prototype.setGridHeight=function(S,A){A&&(S*=this.dayGrid.rowCnt/6),R.distributeHeight(this.dayGrid.rowEls,S,!A)},x.prototype.isDateInOtherMonth=function(S,A){return S.month()!==W.utc(A.currentUnzonedRange.startMs).month()},x);function x(){return null!==b&&b.apply(this,arguments)||this}(a.default=I).prototype.dateProfileGeneratorClass=N.default},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(68),R=u(5),k=(L.__extends(N,b=W.default),N.prototype.buildRenderRange=function(I,x,S){var A,O=b.prototype.buildRenderRange.call(this,I,x,S),H=this.msToUtcMoment(O.startMs,S),z=this.msToUtcMoment(O.endMs,S);return this.opt("fixedWeekCount")&&(A=Math.ceil(z.diff(H,"weeks",!0)),z.add(6-A,"weeks")),new R.default(H,z)},N);function N(){return null!==b&&b.apply(this,arguments)||this}a.default=k},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(4),k=u(5),N=u(43),I=u(41),x=u(249),S=u(250),A=(L.__extends(O,b=N.default),O.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView")),this.scroller.render(),this.scroller.el.appendTo(this.el),this.contentEl=this.scroller.scrollEl},O.prototype.unrenderSkeleton=function(){this.scroller.destroy()},O.prototype.updateSize=function(H,z,v){b.prototype.updateSize.call(this,H,z,v),this.scroller.clear(),z||this.scroller.setHeight(this.computeScrollerHeight(H))},O.prototype.computeScrollerHeight=function(H){return H-R.subtractInnerElHeight(this.el,this.scroller.el)},O.prototype.renderDates=function(H){for(var z=this.calendar,v=z.msToUtcMoment(H.renderUnzonedRange.startMs,!0),tt=z.msToUtcMoment(H.renderUnzonedRange.endMs,!0),ft=[],Rt=[];v<tt;)ft.push(v.clone()),Rt.push(new k.default(v,v.clone().add(1,"day"))),v.add(1,"day");this.dayDates=ft,this.dayRanges=Rt},O.prototype.componentFootprintToSegs=function(H){var z,v,tt,ft=this.dayRanges,Rt=[];for(z=0;z<ft.length;z++)if((v=H.unzonedRange.intersect(ft[z]))&&(Rt.push(tt={startMs:v.startMs,endMs:v.endMs,isStart:v.isStart,isEnd:v.isEnd,dayIndex:z}),!tt.isEnd&&!H.isAllDay&&z+1<ft.length&&H.unzonedRange.endMs<ft[z+1].startMs+this.nextDayThreshold)){tt.endMs=H.unzonedRange.endMs,tt.isEnd=!0;break}return Rt},O.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">
1'+R.htmlEscape(this.opt("noEventsMessage"))+"</div></div></div>")},O.prototype.renderSegList=function(H){var z,v,tt,ft=this.groupSegsByDay(H),Rt=W('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody/></table>'),lt=Rt.find("tbody");for(z=0;z<ft.length;z++)if(v=ft[z])for(lt.append(this.dayHeaderHtml(this.dayDates[z])),this.eventRenderer.sortEventSegs(v),tt=0;tt<v.length;tt++)lt.append(v[tt].el);this.contentEl.empty().append(Rt)},O.prototype.groupSegsByDay=function(H){var z,v,tt=[];for(z=0;z<H.length;z++)(tt[(v=H[z]).dayIndex]||(tt[v.dayIndex]=[])).push(v);return tt},O.prototype.dayHeaderHtml=function(H){var z=this.opt("listDayFormat"),v=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+H.format("YYYY-MM-DD")+'"><td class="'+(this.calendar.theme.getClass("tableListHeading")||this.calendar.theme.getClass("widgetHeader"))+'" colspan="3">'+(z?this.buildGotoAnchorHtml(H,{class:"fc-list-heading-main"},R.htmlEscape(H.format(z))):"")+(v?this.buildGotoAnchorHtml(H,{class:"fc-list-heading-alt"},R.htmlEscape(H.format(v))):"")+"</td></tr>"},O);function O(H,z){var v=b.call(this,H,z)||this;return v.segSelector=".fc-list-item",v.scroller=new I.default({overflowX:"hidden",overflowY:"auto"}),v}(a.default=A).prototype.eventRendererClass=x.default,A.prototype.eventPointingClass=S.default},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(4),R=u(44),k=(L.__extends(N,b=R.default),N.prototype.renderFgSegs=function(I){I.length?this.component.renderSegList(I):this.component.renderEmptyMessage()},N.prototype.fgSegHtml=function(I){var x,S=this.view,A=S.calendar,O=A.theme,H=I.footprint,z=H.eventDef,v=H.componentFootprint,tt=z.url,ft=["fc-list-item"].concat(this.getClasses(z)),Rt=this.getBgColor(z);return x=v.isAllDay?S.getAllDayHtml():S.isMultiDayRange(v.unzonedRange)?I.isStart||I.isEnd?W.htmlEscape(this._getTimeText(A.msToMoment(I.startMs),A.msToMoment(I.endMs),v.isAllDay)):S.getAllDayHtml():W.htmlEscape(this.getTimeText(H)),tt&&ft.push("fc-has-url"),'<tr class="'+ft.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+O.getClass("widgetContent")+'">'+(x||"")+"</td>":"")+'<td class="fc-list-item-marker '+O.getClass("widgetContent")+'"><span class="fc-event-dot"'+(Rt?' style="background-color:'+Rt+'"':"")+'></span></td><td class="fc-list-item-title '+O.getClass("widgetContent")+'"><a'+(tt?' href="'+W.htmlEscape(tt)+'"':"")+">"+W.htmlEscape(z.title||"")+"</a></td></tr>"},N.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},N);function N(){return null!==b&&b.apply(this,arguments)||this}a.default=k},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(64),k=(L.__extends(N,b=R.default),N.prototype.handleClick=function(I,x){var S;b.prototype.handleClick.call(this,I,x),W(x.target).closest("a[href]").length||(S=I.footprint.eventDef.url)&&!x.isDefaultPrevented()&&(window.location.href=S)},N);function N(){return null!==b&&b.apply(this,arguments)||this}a.default=k},,,,,,function(r,a,u){var b=u(3),L=u(18),W=u(4),R=u(232);u(11),u(49),u(260),u(261),u(264),u(265),u(266),u(267),b.fullCalendar=L,b.fn.fullCalendar=function(k){var N=Array.prototype.slice.call(arguments,1),I=this;return this.each(function(x,S){var A,O=b(S),H=O.data("fullCalendar");"string"==typeof k?"getCalendar"===k?x||(I=H):"destroy"===k?H&&(H.destroy(),O.removeData("fullCalendar")):H?b.isFunction(H[k])?(A=H[k].apply(H,N),x||(I=A),"destroy"===k&&O.removeData("fullCalendar")):W.warn("'"+k+"' is an unknown FullCalendar method."):W.warn("Attempting to call a FullCalendar method on an element with no calendar."):H||(H=new R.default(O,k),O.data("fullCalendar",H),H.render())}),I},r.exports=L},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(3),L=u(4),W=(R.prototype.setToolbarOptions=function(k){this.toolbarOptions=k},R.prototype.render=function(){var N=this.el;this.toolbarOptions.layout?(N?N.empty():N=this.el=b("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'/>"),N.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"/>')):this.removeElement()},R.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},R.prototype.renderSection=function(k){var N=this,I=this.calendar,x=I.theme,S=I.optionsManager,A=I.viewSpecManager,O=b('<div class="fc-'+k+'"/>'),H=this.toolbarOptions.layout[k],z=S.get("customButtons")||{},v=S.overrides.buttonText||{},tt=S.get("buttonText")||{};return H&&b.each(H.split(" "),function(ft,Rt){var lt,at=b(),mt=!0;b.each(Rt.split(","),function(wt,qt){var ae,ye,he,Te,Ne,Ot,w,Y,V;"title"===qt?(at=at.add(b("<h2> </h2>")),mt=!1):((ae=z[qt])?(he=function(it){ae.click&&ae.click.call(Y[0],it)},(Te=x.getCustomButtonIconClass(ae))||(Te=x.getIconClass(qt))||(Ne=ae.text)):(ye=A.getViewSpec(qt))?(N.viewsWithButtons.push(qt),he=function(){I.changeView(qt)},(Ne=ye.buttonTextOverride)||(Te=x.getIconClass(qt))||(Ne=ye.buttonTextDefault)):I[qt]&&(he=function(){I[qt]()},(Ne=v[qt])||(Te=x.getIconClass(qt))||(Ne=tt[qt])),he&&(w=["fc-"+qt+"-button",x.getClass("button"),x.getClass("stateDefault")],Ne?(Ot=L.htmlEscape(Ne),V=""):Te&&(Ot="<span class='"+Te+"'></span>",V=' aria-label="'+qt+'"'),Y=b('<button type="button" class="'+w.join(" ")+'"'+V+">"+Ot+"</button>").click(function(it){Y.hasClass(x.getClass("stateDisabled"))||(he(it),(Y.hasClass(x.getClass("stateActive"))||Y.hasClass(x.getClass("stateDisabled")))&&Y.removeClass(x.getClass("stateHover")))}).mousedown(function(){Y.not("."+x.getClass("stateActive")).not("."+x.getClass("stateDisabled")).addClass(x.getClass("stateDown"))}).mouseup(function(){Y.removeClass(x.getClass("stateDown"))}).hover(function(){Y.not("."+x.getClass("stateActive")).not("."+x.getClass("stateDisabled")).addClass(x.getClass("stateHover"))},function(){Y.removeClass(x.getClass("stateHover")).removeClass(x.getClass("stateDown"))}),at=at.add(Y)))}
1),mt&&at.first().addClass(x.getClass("cornerLeft")).end().last().addClass(x.getClass("cornerRight")).end(),1<at.length?(lt=b("<div/>"),mt&<.addClass(x.getClass("buttonGroup")),lt.append(at),O.append(lt)):O.append(at)}),O},R.prototype.updateTitle=function(k){this.el&&this.el.find("h2").text(k)},R.prototype.activateButton=function(k){this.el&&this.el.find(".fc-"+k+"-button").addClass(this.calendar.theme.getClass("stateActive"))},R.prototype.deactivateButton=function(k){this.el&&this.el.find(".fc-"+k+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},R.prototype.disableButton=function(k){this.el&&this.el.find(".fc-"+k+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},R.prototype.enableButton=function(k){this.el&&this.el.find(".fc-"+k+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},R.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},R);function R(k,N){this.el=null,this.viewsWithButtons=[],this.calendar=k,this.toolbarOptions=N}a.default=W},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(3),R=u(4),k=u(33),N=u(32),I=u(51),x=(L.__extends(S,b=I.default),S.prototype.add=function(A){var O,H=0;for(O in this.recordOverrides(A),A)H++;if(1===H){if("height"===O||"contentHeight"===O||"aspectRatio"===O)return void this._calendar.updateViewSize(!0);if("defaultDate"===O||"businessHours"===O||/^(event|select)(Overlap|Constraint|Allow)$/.test(O))return;if("timezone"===O)return void this._calendar.view.flash("initialEvents")}this._calendar.renderHeader(),this._calendar.renderFooter(),this._calendar.viewsByType={},this._calendar.reinitView()},S.prototype.compute=function(){var A,O,H,z;A=R.firstDefined(this.dynamicOverrides.locale,this.overrides.locale),(O=N.localeOptionHash[A])||(O=N.localeOptionHash[A=k.globalDefaults.locale]||{}),H=R.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,O.isRTL,k.globalDefaults.isRTL)?k.rtlDefaults:{},this.dirDefaults=H,this.localeDefaults=O,z=k.mergeOptions([k.globalDefaults,H,O,this.overrides,this.dynamicOverrides]),N.populateInstanceComputableOptions(z),this.reset(z)},S.prototype.recordOverrides=function(A){var O;for(O in A)this.dynamicOverrides[O]=A[O];this._calendar.viewSpecManager.clearCache(),this.compute()},S);function S(A,O){var H=b.call(this)||this;return H._calendar=A,H.overrides=W.extend({},O),H.dynamicOverrides={},H.compute(),H}a.default=x},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(0),L=u(3),W=u(24),R=u(4),k=u(33),N=u(32),I=(x.prototype.clearCache=function(){this.viewSpecCache={}},x.prototype.getViewSpec=function(S){var A=this.viewSpecCache;return A[S]||(A[S]=this.buildViewSpec(S))},x.prototype.getUnitViewSpec=function(S){var A,O,H;if(-1!==L.inArray(S,R.unitsDesc))for(A=this._calendar.header.getViewsWithButtons(),L.each(W.viewHash,function(z){A.push(z)}),O=0;O<A.length;O++)if((H=this.getViewSpec(A[O]))&&H.singleUnit===S)return H},x.prototype.buildViewSpec=function(S){for(var A,O,H,z,v,tt=this.optionsManager.overrides.views||{},ft=[],Rt=[],lt=[],at=S;at;)A=W.viewHash[at],O=tt[at],at=null,"function"==typeof A&&(A={class:A}),A&&(ft.unshift(A),Rt.unshift(A.defaults||{}),H=H||A.duration,at=at||A.type),O&&(lt.unshift(O),H=H||O.duration,at=at||O.type);return(A=R.mergeProps(ft)).type=S,!!A.class&&((H=H||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration)&&(z=b.duration(H)).valueOf()&&(v=R.computeDurationGreatestUnit(z,H),A.duration=z,A.durationUnit=v,1===z.as(v)&&(A.singleUnit=v,lt.unshift(tt[v]||{}))),A.defaults=k.mergeOptions(Rt),A.overrides=k.mergeOptions(lt),this.buildViewSpecOptions(A),this.buildViewSpecButtonText(A,S),A)},x.prototype.buildViewSpecOptions=function(S){var A=this.optionsManager;S.options=k.mergeOptions([k.globalDefaults,S.defaults,A.dirDefaults,A.localeDefaults,A.overrides,S.overrides,A.dynamicOverrides]),N.populateInstanceComputableOptions(S.options)},x.prototype.buildViewSpecButtonText=function(S,A){function O(z){var v=z.buttonText||{};return v[A]||(S.buttonTextKey?v[S.buttonTextKey]:null)||(S.singleUnit?v[S.singleUnit]:null)}var H=this.optionsManager;S.buttonTextOverride=O(H.dynamicOverrides)||O(H.overrides)||S.overrides.buttonText,S.buttonTextDefault=O(H.localeDefaults)||O(H.dirDefaults)||S.defaults.buttonText||O(k.globalDefaults)||(S.duration?this._calendar.humanizeDuration(S.duration):null)||A},x);function x(S,A){this.optionsManager=S,this._calendar=A,this.clearCache()}a.default=I},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(38),L=u(56),W=u(223),R=u(224);b.default.registerClass(L.default),b.default.registerClass(W.default),b.default.registerClass(R.default)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(57),L=u(221),W=u(222),R=u(262),k=u(263);b.defineThemeSystem("standard",L.default),b.defineThemeSystem("jquery-ui",W.default),b.defineThemeSystem("bootstrap3",R.default),b.defineThemeSystem("bootstrap4",k.default)},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(22),R=(L.__extends(k,b=W.default),k);function k(){return null!==b&&b.apply(this,arguments)||this}(a.default=R).prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table",tableListHeading:"active",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"},R.prototype.baseIconClass="glyphicon",R.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"},R.prototype.iconOverrideOption="bootstrapGlyphicons",R.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon",R.prototype.iconOverridePrefix="glyphicon-"},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b,L=u(2),W=u(22),R=(L.__extends(k,b=W.default),k);function k(){return null!==b&&b.apply(this,arguments)||this}(a.default=R).prototype.classes={widget:"fc-bootstrap4",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"},R.prototype.baseIconClass="fa",R.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},R.prototype.iconOverrideOption="bootstrapFontAwesome",R.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",R.prototype.iconOverridePrefix="fa-"},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(24),L=u(67),W=u(246);b.defineView("basic",{class:L.default}),b.defineView("basicDay",{type:"basic",duration:{days:1}}),b.defineView("basicWeek",{type:"basic",duration:{weeks:1}}),b.defineView("month",{class:W.default,duration:{months:1},defaults:{fixedWeekCount:!0}})},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(24),L=u(238);b.defineView("agenda",{class:L.default,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}}),b.defineView("agendaDay",{type:"agenda",duration:{days:1}}),b.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(r,a,u){Object.defineProperty(a,"__esModule",{value:!0});var b=u(24),L=u(248);b.defineView("list",{class:L.default,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}}
vendor: 26,628 bytes, line 1
1),b.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}}),b.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}}),b.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}}),b.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(r,a){Object.defineProperty(a,"__esModule",{value:!0})}],K.c=l,K.d=function(r,a,u){K.o(r,a)||Object.defineProperty(r,a,{configurable:!1,enumerable:!0,get:u})},K.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return K.d(a,"a",a),a},K.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)},K.p="",K(K.s=256);function K(r){if(l[r])return l[r].exports;var a=l[r]={i:r,l:!1,exports:{}};return F[r].call(a.exports,a,a.exports,K),a.l=!0,a.exports}var F,l}),function(i,D,K,F){function l(r,a){this.settings=null,this.options=i.extend({},l.Defaults,a),this.$element=i(r),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},i.each(["onResize","onThrottledResize"],i.proxy(function(u,b){this._handlers[b]=i.proxy(this[b],this)},this)),i.each(l.Plugins,i.proxy(function(u,b){this._plugins[u.charAt(0).toLowerCase()+u.slice(1)]=new b(this)},this)),i.each(l.Workers,i.proxy(function(u,b){this._pipe.push({filter:b.filter,run:i.proxy(b.run,this)})},this)),this.setup(),this.initialize()}l.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:D,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},l.Width={Default:"default",Inner:"inner",Outer:"outer"},l.Type={Event:"event",State:"state"},l.Plugins={},l.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(r){r.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(r){var a=this.settings.margin||"",b=this.settings.rtl,L={width:"auto","margin-left":b?a:"","margin-right":b?"":a};!this.settings.autoWidth||this.$stage.children().css(L),r.css=L}},{filter:["width","items","settings"],run:function(r){var a=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,u=null,b=this._items.length,L=!this.settings.autoWidth,W=[];for(r.items={merge:!1,width:a};b--;)u=this._mergers[b],u=this.settings.mergeFit&&Math.min(u,this.settings.items)||u,r.items.merge=1<u||r.items.merge,W[b]=L?a*u:this._items[b].width();this._widths=W}},{filter:["items","settings"],run:function(){var r=[],a=this._items,u=this.settings,b=Math.max(2*u.items,4),L=2*Math.ceil(a.length/2),W=u.loop&&a.length?u.rewind?b:Math.max(b,L):0,R="",k="";for(W/=2;0<W;)r.push(this.normalize(r.length/2,!0)),R+=a[r[r.length-1]][0].outerHTML,r.push(this.normalize(a.length-1-(r.length-1)/2,!0)),k=a[r[r.length-1]][0].outerHTML+k,W-=1;this._clones=r,i(R).addClass("cloned").appendTo(this.$stage),i(k).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var r=this.settings.rtl?1:-1,a=this._clones.length+this._items.length,u=-1,b=0,L=0,W=[];++u<a;)b=W[u-1]||0,L=this._widths[this.relative(u)]+this.settings.margin,W.push(b+L*r);this._coordinates=W}},{filter:["width","items","settings"],run:function(){var r=this.settings.stagePadding,a=this._coordinates,u={width:Math.ceil(Math.abs(a[a.length-1]))+2*r,"padding-left":r||"","padding-right":r||""};this.$stage.css(u)}},{filter:["width","items","settings"],run:function(r){var a=this._coordinates.length,u=!this.settings.autoWidth,b=this.$stage.children();if(u&&r.items.merge)for(;a--;)r.css.width=this._widths[this.relative(a)],b.eq(a).css(r.css);else u&&(r.css.width=r.items.width,b.css(r.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(r){r.current=r.current?this.$stage.children().index(r.current):0,r.current=Math.max(this.minimum(),Math.min(this.maximum(),r.current)),this.reset(r.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var r,a,u,b,L=this.settings.rtl?1:-1,W=2*this.settings.stagePadding,R=this.coordinates(this.current())+W,k=R+this.width()*L,N=[];for(u=0,b=this._coordinates.length;u<b;u++)r=this._coordinates[u-1]||0,a=Math.abs(this._coordinates[u])+W*L,(this.op(r,"<=",R)&&this.op(r,">",k)||this.op(a,"<",R)&&this.op(a,">",k))&&N.push(u);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+N.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],l.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=i("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(i("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},l.prototype.initializeItems=function(){var r=this.$element.find(".owl-item");if(r.length)return this._items=r.get().map(function(a){return i(a)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},l.prototype.initialize=function(){var r,u;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(r=this.$element.find("img"),u=this.$element.children(this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:F).width(),r.length&&u<=0&&this.preloadAutoWidthImages(r)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},l.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},l.prototype.setup=function(){var r=this.viewport(),a=this.options.responsive,u=-1,b=null;a?(i.each(a,function(L){L<=r&&u<L&&(u=Number(L))}),"function"==typeof(b=i.extend({},this.options,a[u])).stagePadding&&(b.stagePadding=b.stagePadding()),delete b.responsive,b.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+u))):b=i.extend({},this.options),this.trigger("change",{property:{name:"settings",value:b}}),this._breakpoint=u,this.settings=b,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},l.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},l.prototype.prepare=function(r){var a=this.trigger("prepare",{content:r});return a.data||(a.data=i("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(r)),this.trigger("prepared",{content:a.data}),a.data},l.prototype.update=function(){for(var r=0,a=this._pipe.length,u=i.proxy(function(L){return this[L]},this._invalidated),b={};r<a;)(this._invalidated.all||0<i.grep(this._pipe[r].filter,u).length)&&this._pipe[r].run(b),r++;this._invalidated={},this.is("valid")||this.enter("valid")},l.prototype.width=function(r){switch(r=r||l.Width.Default){case l.Width.Inner:case l.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},l.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},l.prototype.onThrottledResize=function(){D.clearTimeout(this.resizeTimer),this.resizeTimer=D.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},l.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},l.prototype.registerEventHandlers=function(){i.support.transition&&this.$stage.on(i.support.transition.end+".owl.core",i.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(D,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",i.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",i.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",i.proxy(this.onDragEnd,this)))},l.prototype.onDragStart=function(r){var a=null;3!==r.which&&(a=i.support.transform?{x:(a=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===a.length?12:4],y:a[16===a.length?13:5]}:(a=this.$stage.position(),{x:this.settings.rtl?a.left+this.$stage.width()-this.width()+this.settings.margin:a.left,y:a.top}),this.is("animating")&&(i.support.transform?this.animate(a.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===r.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=i(r.target),this._drag.stage.start=a,this._drag.stage.current=a,this._drag.pointer=this.pointer(r),i(K).on("mouseup.owl.core touchend.owl.core",i.proxy(this.onDragEnd,this)),i(K).one("mousemove.owl.core touchmove.owl.core",i.proxy(function(u){var b=this.difference(this._drag.pointer,this.pointer(u));i(K).on("mousemove.owl.core touchmove.owl.core",i.proxy(this.onDragMove,this)),Math.abs(b.x)<Math.abs(b.y)&&this.is("valid")||(u.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},l.prototype.onDragMove=function(r){var a=null,u=null,b=null,L=this.difference(this._drag.pointer,this.pointer(r)),W=this.difference(this._drag.stage.start,L);this.is("dragging")&&(r.preventDefault(),this.settings.loop?(a=this.coordinates(this.minimum()),u=this.coordinates(this.maximum()+1)-a,W.x=((W.x-a)%u+u)%u+a):(a=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),u=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),b=this.settings.pullDrag?-1*L.x/5:0,W.x=Math.max(Math.min(W.x,a+b),u+b)),this._drag.stage.current=W,this.animate(W.x))},l.prototype.onDragEnd=function(r){var a=this.difference(this._drag.pointer,this.pointer(r)),u=this._drag.stage.current,b=0<a.x^this.settings.rtl?"left":"right";i(K).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==a.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(u.x,0!==a.x?b:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=b,(3<Math.abs(a.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},l.prototype.closest=function(r,a){var u=-1,b=this.width(),L=this.coordinates();return this.settings.freeDrag||i.each(L,i.proxy(function(W,R){return"left"===a&&R-30<r&&r<R+30?u=W:"right"===a&&R-b-30<r&&r<R-b+30?u=W+1:this.op(r,"<",R)&&this.op(r,">",L[W+1]!==F?L[W+1]:R-b)&&(u="left"===a?W+1:W),-1===u},this)),this.settings.loop||(this.op(r,">",L[this.minimum()])?u=r=this.minimum():this.op(r,"<",L[this.maximum()])&&(u=r=this.maximum())),u},l.prototype.animate=function(r){var a=0<this.speed();this.is("animating")&&this.onTransitionEnd(),a&&(this.enter("animating"),this.trigger("translate")),i.support.transform3d&&i.support.transition?this.$stage.css({transform:"translate3d("+r+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):a?this.$stage.animate({left:r+"px"},this.speed(),this.settings.fallbackEasing,i.proxy(this.onTransitionEnd,this)):this.$stage.css({left:r+"px"})},l.prototype.is=function(r){return this._states.current[r]&&0<this._states.current[r]},l.prototype.current=function(r){if(r===F)return this._current;if(0===this._items.length)return F;if(r=this.normalize(r),this._current!==r){var a=this.trigger("change",{property:{name:"position",value:r}});a.data!==F&&(r=this.normalize(a.data)),this._current=r,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},l.prototype.invalidate=function(r){return"string"===i.type(r)&&(this._invalidated[r]=!0,this.is("valid")&&this.leave("valid")),i.map(this._invalidated,function(a,u){return u})},l.prototype.reset=function(r){(r=this.normalize(r))!==F&&(this._speed=0,this._current=r,this.suppress(["translate","translated"]),this.animate(this.coordinates(r)),this.release(["translate","translated"]))},l.prototype.normalize=function(r,a){var u=this._items.length,b=a?0:this._clones.length;return!this.isNumeric(r)||u<1?r=F:(r<0||u+b<=r)&&(r=((r-b/2)%u+u)%u+b/2),r},l.prototype.relative=function(r){return this.normalize(r-=this._clones.length/2,!0)},l.prototype.maximum=function(r){var a,u,b,L=this.settings,W=this._coordinates.length;if(L.loop)W=this._clones.length/2+this._items.length-1;else if(L.autoWidth||L.merge){if(a=this._items.length)for(u=this._items[--a].width(),b=this.$element.width();a--&&!((u+=this._items[a].width()+this.settings.margin)>b););W=a+1}else W=L.center?this._items.length-1:this._items.length-L.items;return r&&(W-=this._clones.length/2),Math.max(W,0)},l.prototype.minimum=function(r){return r?0:this._clones.length/2},l.prototype.items=function(r){return r===F?this._items.slice():(r=this.normalize(r,!0),this._items[r])},l.prototype.mergers=function(r){return r===F?this._mergers.slice():(r=this.normalize(r,!0),this._mergers[r])},l.prototype.clones=function(r){function a(L){return L%2==0?b+L/2:u-(L+1)/2}var u=this._clones.length/2,b=u+this._items.length;return i.map(this._clones,r===F?function(L,W){return a(W)}:function(L,W){return L===r?a(W):null})},l.prototype.speed=function(r){return r!==F&&(this._speed=r),this._speed},l.prototype.coordinates=function(r){var a,u=1,b=r-1;return r===F?i.map(this._coordinates,i.proxy(function(L,W){return this.coordinates(W)},this)):(this.settings.center?(this.settings.rtl&&(u=-1,b=r+1),a=this._coordinates[r],a+=(this.width()-a+(this._coordinates[b]||0))/2*u):a=this._coordinates[b]||0,a=Math.ceil(a))},l.prototype.duration=function(r,a,u){return 0===u?0:Math.min(Math.max(Math.abs(a-r),1),6)*Math.abs(u||this.settings.smartSpeed)},l.prototype.to=function(r,a){var u=this.current(),b=null,L=r-this.relative(u),W=(0<L)-(L<0),R=this._items.length,k=this.minimum(),N=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(L)>R/2&&(L+=-1*W*R),(b=(((r=u+L)-k)%R+R)%R+k)!==r&&b-L<=N&&0<b-L&&(r=b,this.reset(u=b-L))):r=this.settings.rewind?(r%(N+=1)+N)%N:Math.max(k,Math.min(N,r)),this.speed(this.duration(u,r,a)),this.current(r),this.isVisible()&&this.update()},l.prototype.next=function(r){r=r||!1,this.to(this.relative(this.current())+1,r)},l.prototype.prev=function(r){r=r||!1,this.to(this.relative(this.current())-1,r)},l.prototype.onTransitionEnd=function(r){if(r!==F&&(r.stopPropagation(),(r.target||r.srcElement||r.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},l.prototype.viewport=function(){var r;return this.options.responsiveBaseElement!==D?r=i(this.options.responsiveBaseElement).width():D.innerWidth?r=D.innerWidth:K.documentElement&&K.documentElement.clientWidth?r=K.documentElement.clientWidth:console.warn("Can not detect viewport width."),r},l.prototype.replace=function(r){this.$stage.empty(),this._items=[],r=r&&(r instanceof jQuery?r:i(r)),this.settings.nestedItemSelector&&(r=r.find("."+this.settings.nestedItemSelector)),r.filter(function(){return 1===this.nodeType}).each(i.proxy(function(a,u){u=this.prepare(u),this.$stage.append(u),this._items.push(u),this._mergers.push(1*u.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},l.prototype.add=function(r,a){var u=this.relative(this._current);a=a===F?this._items.length:this.normalize(a,!0),r=r instanceof jQuery?r:i(r),this.trigger("add",{content:r,position:a}),r=this.prepare(r),0===this._items.length||a===this._items.length?(0===this._items.length&&this.$stage.append(r),0!==this._items.length&&this._items[a-1].after(r),this._items.push(r),this._mergers.push(1*r.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[a].before(r),this._items.splice(a,0,r),this._mergers.splice(a,0,1*r.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[u]&&this.reset(this._items[u].index()),this.invalidate("items"),this.trigger("added",{content:r,position:a})},l.prototype.remove=function(r){(r=this.normalize(r,!0))!==F&&(this.trigger("remove",{content:this._items[r],position:r}),this._items[r].remove(),this._items.splice(r,1),this._mergers.splice(r,1),this.invalidate("items"),this.trigger("removed",{content:null,position:r}))},l.prototype.preloadAutoWidthImages=function(r){r.each(i.proxy(function(a,u){this.enter("pre-loading"),u=i(u),i(new Image).one("load",i.proxy(function(b){u.attr("src",b.target.src),u.css("opacity",1),this.leave("pre-loading"),this.is("pre-loading")||this.is("initializing")||this.refresh()},this)).attr("src",u.attr("src")||u.attr("data-src")||u.attr("data-src-retina"))},this))},l.prototype.destroy=function(){for(var r in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),i(K).off(".owl.core"),!1!==this.settings.responsive&&(D.clearTimeout(this.resizeTimer),this.off(D,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[r].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},l.prototype.op=function(r,a,u){var b=this.settings.rtl;switch(a){case"<":return b?u<r:r<u;case">":return b?r<u:u<r;case">=":return b?r<=u:u<=r;case"<=":return b?u<=r:r<=u}},l.prototype.on=function(r,a,u,b){r.addEventListener?r.addEventListener(a,u,b):r.attachEvent&&r.attachEvent("on"+a,u)},l.prototype.off=function(r,a,u,b){r.removeEventListener?r.removeEventListener(a,u,b):r.detachEvent&&r.detachEvent("on"+a,u)},l.prototype.trigger=function(r,a,u,b,L){var W={item:{count:this._items.length,index:this.current()}},R=i.camelCase(i.grep(["on",r,u],function(N){return N}).join("-").toLowerCase()),k=i.Event([r,"owl",u||"carousel"].join(".").toLowerCase(),i.extend({relatedTarget:this},W,a));return this._supress[r]||(i.each(this._plugins,function(N,I){I.onTrigger&&I.onTrigger(k)}),this.register({type:l.Type.Event,name:r}),this.$element.trigger(k),this.settings&&"function"==typeof this.settings[R]&&this.settings[R].call(this,k)),k},l.prototype.enter=function(r){i.each([r].concat(this._states.tags[r]||[]),i.proxy(function(a,u){this._states.current[u]===F&&(this._states.current[u]=0),this._states.current[u]++},this))},l.prototype.leave=function(r){i.each([r].concat(this._states.tags[r]||[]),i.proxy(function(a,u){this._states.current[u]--},this))},l.prototype.register=function(r){if(r.type===l.Type.Event){if(i.event.special[r.name]||(i.event.special[r.name]={}),!i.event.special[r.name].owl){var a=i.event.special[r.name]._default;i.event.special[r.name]._default=function(u){return!a||!a.apply||u.namespace&&-1!==u.namespace.indexOf("owl")?u.namespace&&-1<u.namespace.indexOf("owl"):a.apply(this,arguments)},i.event.special[r.name].owl=!0}}else r.type===l.Type.State&&(this._states.tags[r.name]=this._states.tags[r.name]?this._states.tags[r.name].concat(r.tags):r.tags,this._states.tags[r.name]=i.grep(this._states.tags[r.name],i.proxy(function(u,b){return i.inArray(u,this._states.tags[r.name])===b},this)))},l.prototype.suppress=function(r){i.each(r,i.proxy(function(a,u){this._supress[u]=!0},this))},l.prototype.release=function(r){i.each(r,i.proxy(function(a,u){delete this._supress[u]},this))},l.prototype.pointer=function(r){var a={x:null,y:null};return(r=(r=r.originalEvent||r||D.event).touches&&r.touches.length?r.touches[0]:r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r).pageX?(a.x=r.pageX,a.y=r.pageY):(a.x=r.clientX,a.y=r.clientY),a},l.prototype.isNumeric=function(r){return!isNaN(parseFloat(r))},l.prototype.difference=function(r,a){return{x:r.x-a.x,y:r.y-a.y}},i.fn.owlCarousel=function(r){var a=Array.prototype.slice.call(arguments,1);return this.each(function(){var u=i(this),b=u.data("owl.carousel");b||(b=new l(this,"object"==typeof r&&r),u.data("owl.carousel",b),i.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(L,W){b.register({type:l.Type.Event,name:W}),b.$element.on(W+".owl.carousel.core",i.proxy(function(R){R.namespace&&R.relatedTarget!==this&&(this.suppress([W]),b[W].apply(this,[].slice.call(arguments,1)),this.release([W]))},b))})),"string"==typeof r&&"_"!==r.charAt(0)&&b[r].apply(b,a)})},i.fn.owlCarousel.Constructor=l}(window.Zepto||window.jQuery,window,document),function(i,D){var K=function(F){this._core=F,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":i.proxy(function(l){l.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=i.extend({},K.Defaults,this._core.options),this._core.$element.on(this._handlers)};K.Defaults={autoRefresh:!0,autoRefreshInterval:500},K.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=D.setInterval(i.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},K.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},K.prototype.destroy=function(){var F,l;for(F in D.clearInterval(this._interval),this._handlers)this._core.$element.off(F,this._handlers[F]);for(l in Object.getOwnPropertyNames(this))"function"!=typeof this[l]&&(this[l]=null)},i.fn.owlCarousel.Constructor.Plugins.AutoRefresh=K}(window.Zepto||window.jQuery,window,document),function(i,D){var K=function(F){this._core=F,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":i.proxy(function(l){if(l.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(l.property&&"position"==l.property.name||"initialized"==l.type)){var r=this._core.settings,a=r.center&&Math.ceil(r.items/2)||r.items,u=r.center&&-1*a||0,b=(l.property&&void 0!==l.property.value?l.property.value:this._core.current())+u,L=this._core.clones().length,W=i.proxy(function(R,k){this.load(k)},this);for(0<r.lazyLoadEager&&(a+=r.lazyLoadEager,r.loop&&(b-=r.lazyLoadEager,a++));u++<a;)this.load(L/2+this._core.relative(b)),L&&i.each(this._core.clones(this._core.relative(b)),W),b++}},this)},this._core.options=i.extend({},K.Defaults,this._core.options),this._core.$element.on(this._handlers)};K.Defaults={lazyLoad:!1,lazyLoadEager:0},K.prototype.load=function(F){var l=this._core.$stage.children().eq(F),r=l&&l.find(".owl-lazy");!r||-1<i.inArray(l.get(0),this._loaded)||(r.each(i.proxy(function(a,u){var b,L=i(u),W=1<D.devicePixelRatio&&L.attr("data-src-retina")||L.attr("data-src")||L.attr("data-srcset");this._core.trigger("load",{element:L,url:W},"lazy"),L.is("img")?L.one("load.owl.lazy",i.proxy(function(){L.css("opacity",1),this._core.trigger("loaded",{element:L,url:W},"lazy")},this)).attr("src",W):L.is("source")?L.one("load.owl.lazy",i.proxy(function(){this._core.trigger("loaded",{element:L,url:W},"lazy")},this)).attr("srcset",W):((b=new Image).onload=i.proxy(function(){L.css({"background-image":'url("'+W+'")',opacity:"1"}),this._core.trigger("loaded",{element:L,url:W},"lazy")},this),b.src=W)},this)),this._loaded.push(l.get(0)))},K.prototype.destroy=function(){var F,l;for(F in this.handlers)this._core.$element.off(F,this.handlers[F]);for(l in Object.getOwnPropertyNames(this))"function"!=typeof this[l]&&(this[l]=null)},i.fn.owlCarousel.Constructor.Plugins.Lazy=K}(window.Zepto||window.jQuery,window,document),function(i,D){var K=function(F){this._core=F,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":i.proxy(function(r){r.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":i.proxy(function(r){r.namespace&&this._core.settings.autoHeight&&"position"===r.property.name&&this.update()},this),"loaded.owl.lazy":i.proxy(function(r){r.namespace&&this._core.settings.autoHeight&&r.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=i.extend({},K.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var l=this;i(D).on("load",function(){l._core.settings.autoHeight&&l.update(
vendor: 8,498 bytes, line 1
1)}),i(D).resize(function(){l._core.settings.autoHeight&&(null!=l._intervalId&&clearTimeout(l._intervalId),l._intervalId=setTimeout(function(){l.update()},250))})};K.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},K.prototype.update=function(){var F=this._core._current,l=F+this._core.settings.items,r=this._core.settings.lazyLoad,a=this._core.$stage.children().toArray().slice(F,l),u=[],b=0;i.each(a,function(L,W){u.push(i(W).height())}),(b=Math.max.apply(null,u))<=1&&r&&this._previousHeight&&(b=this._previousHeight),this._previousHeight=b,this._core.$stage.parent().height(b).addClass(this._core.settings.autoHeightClass)},K.prototype.destroy=function(){var F,l;for(F in this._handlers)this._core.$element.off(F,this._handlers[F]);for(l in Object.getOwnPropertyNames(this))"function"!=typeof this[l]&&(this[l]=null)},i.fn.owlCarousel.Constructor.Plugins.AutoHeight=K}(window.Zepto||window.jQuery,window,document),function(i,D,K){var F=function(l){this._core=l,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":i.proxy(function(r){r.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":i.proxy(function(r){r.namespace&&this._core.settings.video&&this.isInFullScreen()&&r.preventDefault()},this),"refreshed.owl.carousel":i.proxy(function(r){r.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":i.proxy(function(r){r.namespace&&"position"===r.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":i.proxy(function(r){if(r.namespace){var a=i(r.content).find(".owl-video");a.length&&(a.css("display","none"),this.fetch(a,i(r.content)))}},this)},this._core.options=i.extend({},F.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",i.proxy(function(r){this.play(r)},this))};F.Defaults={video:!1,videoHeight:!1,videoWidth:!1},F.prototype.fetch=function(l,r){var a=l.attr("data-vimeo-id")?"vimeo":l.attr("data-vzaar-id")?"vzaar":"youtube",u=l.attr("data-vimeo-id")||l.attr("data-youtube-id")||l.attr("data-vzaar-id"),b=l.attr("data-width")||this._core.settings.videoWidth,L=l.attr("data-height")||this._core.settings.videoHeight,W=l.attr("href");if(!W)throw new Error("Missing video URL.");if(-1<(u=W.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))a="youtube";else if(-1<u[3].indexOf("vimeo"))a="vimeo";else{if(!(-1<u[3].indexOf("vzaar")))throw new Error("Video URL not supported.");a="vzaar"}this._videos[W]={type:a,id:u=u[6],width:b,height:L},r.attr("data-video",W),this.thumbnail(l,this._videos[W])},F.prototype.thumbnail=function(l,r){function a(I){u=i("<div/>",N.lazyLoad?{class:"owl-video-tn "+k,srcType:I}:{class:"owl-video-tn",style:"opacity:1;background-image:url("+I+")"}),l.after(u),l.after('<div class="owl-video-play-icon"></div>')}var u,L=r.width&&r.height?"width:"+r.width+"px;height:"+r.height+"px;":"",W=l.find("img"),R="src",k="",N=this._core.settings;if(l.wrap(i("<div/>",{class:"owl-video-wrapper",style:L})),this._core.settings.lazyLoad&&(R="data-src",k="owl-lazy"),W.length)return a(W.attr(R)),W.remove(),!1;"youtube"===r.type?a("//img.youtube.com/vi/"+r.id+"/hqdefault.jpg"):"vimeo"===r.type?i.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+r.id+".json",jsonp:"callback",dataType:"jsonp",success:function(I){a(I[0].thumbnail_large)}}):"vzaar"===r.type&&i.ajax({type:"GET",url:"//vzaar.com/api/videos/"+r.id+".json",jsonp:"callback",dataType:"jsonp",success:function(I){a(I.framegrab_url)}})},F.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},F.prototype.play=function(l){var r,a=i(l.target).closest("."+this._core.settings.itemClass),u=this._videos[a.attr("data-video")],b=u.width||"100%",L=u.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),a=this._core.items(this._core.relative(a.index())),this._core.reset(a.index()),(r=i('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",L),r.attr("width",b),"youtube"===u.type?r.attr("src","//www.youtube.com/embed/"+u.id+"?autoplay=1&rel=0&v="+u.id):"vimeo"===u.type?r.attr("src","//player.vimeo.com/video/"+u.id+"?autoplay=1"):"vzaar"===u.type&&r.attr("src","//view.vzaar.com/"+u.id+"/player?autoplay=true"),i(r).wrap('<div class="owl-video-frame" />').insertAfter(a.find(".owl-video")),this._playing=a.addClass("owl-video-playing"))},F.prototype.isInFullScreen=function(){var l=K.fullscreenElement||K.mozFullScreenElement||K.webkitFullscreenElement;return l&&i(l).parent().hasClass("owl-video-frame")},F.prototype.destroy=function(){var l,r;for(l in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(l,this._handlers[l]);for(r in Object.getOwnPropertyNames(this))"function"!=typeof this[r]&&(this[r]=null)},i.fn.owlCarousel.Constructor.Plugins.Video=F}(window.Zepto||window.jQuery,window,document),function(i){var D=function(K){this.core=K,this.core.options=i.extend({},D.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":i.proxy(function(F){F.namespace&&"position"==F.property.name&&(this.previous=this.core.current(),this.next=F.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":i.proxy(function(F){F.namespace&&(this.swapping="translated"==F.type)},this),"translate.owl.carousel":i.proxy(function(F){F.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};D.Defaults={animateOut:!1,animateIn:!1},D.prototype.swap=function(){if(1===this.core.settings.items&&i.support.animation&&i.support.transition){this.core.speed(0);var K,F=i.proxy(this.clear,this),l=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),a=this.core.settings.animateIn,u=this.core.settings.animateOut;this.core.current()!==this.previous&&(u&&(K=this.core.coordinates(this.previous)-this.core.coordinates(this.next),l.one(i.support.animation.end,F).css({left:K+"px"}).addClass("animated owl-animated-out").addClass(u)),a&&r.one(i.support.animation.end,F).addClass("animated owl-animated-in").addClass(a))}},D.prototype.clear=function(K){i(K.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},D.prototype.destroy=function(){var K,F;for(K in this.handlers)this.core.$element.off(K,this.handlers[K]);for(F in Object.getOwnPropertyNames(this))"function"!=typeof this[F]&&(this[F]=null)},i.fn.owlCarousel.Constructor.Plugins.Animate=D}(window.Zepto||window.jQuery,window,document),function(i,D,K){var F=function(l){this._core=l,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":i.proxy(function(r){r.namespace&&"settings"===r.property.name?this._core.settings.autoplay?this.play():this.stop():r.namespace&&"position"===r.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":i.proxy(function(r){r.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":i.proxy(function(r,a,u){r.namespace&&this.play(a,u)},this),"stop.owl.autoplay":i.proxy(function(r){r.namespace&&this.stop()},this),"mouseover.owl.autoplay":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":i.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=i.extend({},F.Defaults,this._core.options)};F.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1}
1,F.prototype._next=function(l){this._call=D.setTimeout(i.proxy(this._next,this,l),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||K.hidden||this._core.next(l||this._core.settings.autoplaySpeed)},F.prototype.read=function(){return(new Date).getTime()-this._time},F.prototype.play=function(l,r){var a;this._core.is("rotating")||this._core.enter("rotating"),l=l||this._core.settings.autoplayTimeout,a=Math.min(this._time%(this._timeout||l),l),this._paused?(this._time=this.read(),this._paused=!1):D.clearTimeout(this._call),this._time+=this.read()%l-a,this._timeout=l,this._call=D.setTimeout(i.proxy(this._next,this,r),l-a)},F.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,D.clearTimeout(this._call),this._core.leave("rotating"))},F.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,D.clearTimeout(this._call))},F.prototype.destroy=function(){var l,r;for(l in this.stop(),this._handlers)this._core.$element.off(l,this._handlers[l]);for(r in Object.getOwnPropertyNames(this))"function"!=typeof this[r]&&(this[r]=null)},i.fn.owlCarousel.Constructor.Plugins.autoplay=F}(window.Zepto||window.jQuery,window,document),function(i){"use strict";var D=function(K){this._core=K,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":i.proxy(function(F){F.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+i(F.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":i.proxy(function(F){F.namespace&&this._core.settings.dotsData&&this._templates.splice(F.position,0,this._templates.pop())},this),"remove.owl.carousel":i.proxy(function(F){F.namespace&&this._core.settings.dotsData&&this._templates.splice(F.position,1)},this),"changed.owl.carousel":i.proxy(function(F){F.namespace&&"position"==F.property.name&&this.draw()},this),"initialized.owl.carousel":i.proxy(function(F){F.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":i.proxy(function(F){F.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=i.extend({},D.Defaults,this._core.options),this.$element.on(this._handlers)};D.Defaults={nav:!1,navText:['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},D.prototype.initialize=function(){var K,F=this._core.settings;for(K in this._controls.$relative=(F.navContainer?i(F.navContainer):i("<div>").addClass(F.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=i("<"+F.navElement+">").addClass(F.navClass[0]).html(F.navText[0]).prependTo(this._controls.$relative).on("click",i.proxy(function(l){this.prev(F.navSpeed)},this)),this._controls.$next=i("<"+F.navElement+">").addClass(F.navClass[1]).html(F.navText[1]).appendTo(this._controls.$relative).on("click",i.proxy(function(l){this.next(F.navSpeed)},this)),F.dotsData||(this._templates=[i('<button role="button">').addClass(F.dotClass).append(i("<span>")).prop("outerHTML")]),this._controls.$absolute=(F.dotsContainer?i(F.dotsContainer):i("<div>").addClass(F.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",i.proxy(function(l){var r=i(l.target).parent().is(this._controls.$absolute)?i(l.target).index():i(l.target).parent().index();l.preventDefault(),this.to(r,F.dotsSpeed)},this)),this._overrides)this._core[K]=i.proxy(this[K],this)},D.prototype.destroy=function(){var K,F,l,r,a;for(K in a=this._core.settings,this._handlers)this.$element.off(K,this._handlers[K]);for(F in this._controls)"$relative"===F&&a.navContainer?this._controls[F].html(""):this._controls[F].remove();for(r in this.overides)this._core[r]=this._overrides[r];for(l in Object.getOwnPropertyNames(this))"function"!=typeof this[l]&&(this[l]=null)},D.prototype.update=function(){var K,F,l=this._core.clones().length/2,r=l+this._core.items().length,a=this._core.maximum(!0),u=this._core.settings,b=u.center||u.autoWidth||u.dotsData?1:u.dotsEach||u.items;if("page"!==u.slideBy&&(u.slideBy=Math.min(u.slideBy,u.items)),u.dots||"page"==u.slideBy)for(this._pages=[],K=l,F=0;K<r;K++){if(b<=F||0===F){if(this._pages.push({start:Math.min(a,K-l),end:K-l+b-1}),Math.min(a,K-l)===a)break;F=0}F+=this._core.mergers(this._core.relative(K))}},D.prototype.draw=function(){var K,F=this._core.settings,l=this._core.items().length<=F.items,r=this._core.relative(this._core.current()),a=F.loop||F.rewind;this._controls.$relative.toggleClass("disabled",!F.nav||l),F.nav&&(this._controls.$previous.toggleClass("disabled",!a&&r<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!a&&r>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!F.dots||l),F.dots&&(K=this._pages.length-this._controls.$absolute.children().length,F.dotsData&&0!=K?this._controls.$absolute.html(this._templates.join("")):0<K?this._controls.$absolute.append(new Array(1+K).join(this._templates[0])):K<0&&this._controls.$absolute.children().slice(K).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(i.inArray(this.current(),this._pages)).addClass("active"))},D.prototype.onTrigger=function(K){var F=this._core.settings;K.page={index:i.inArray(this.current(),this._pages),count:this._pages.length,size:F&&(F.center||F.autoWidth||F.dotsData?1:F.dotsEach||F.items)}},D.prototype.current=function(){var K=this._core.relative(this._core.current());return i.grep(this._pages,i.proxy(function(F,l){return F.start<=K&&F.end>=K},this)).pop()},D.prototype.getPosition=function(K){var F,l,r=this._core.settings;return"page"==r.slideBy?(F=i.inArray(this.current(),this._pages),K?++F:--F,F=this._pages[(F%(l=this._pages.length)+l)%l].start):(F=this._core.relative(this._core.current()),l=this._core.items().length,K?F+=r.slideBy:F-=r.slideBy),F},D.prototype.next=function(K){i.proxy(this._overrides.to,this._core)(this.getPosition(!0),K)},D.prototype.prev=function(K){i.proxy(this._overrides.to,this._core)(this.getPosition(!1),K)},D.prototype.to=function(K,F,l){var r;!l&&this._pages.length?(r=this._pages.length,i.proxy(this._overrides.to,this._core)(this._pages[(K%r+r)%r].start,F)):i.proxy(this._overrides.to,this._core)(K,F)},i.fn.owlCarousel.Constructor.Plugins.Navigation=D}(window.Zepto||window.jQuery,window,document),function(i,D){"use strict";var K=function(F){this._core=F,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":i.proxy(function(l){l.namespace&&"URLHash"===this._core.settings.startPosition&&i(D).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":i.proxy(function(l){if(l.namespace){var r=i(l.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!r)return;this._hashes[r]=l.content}},this),"changed.owl.carousel":i.proxy(function(l){if(l.namespace&&"position"===l.property.name){var r=this._core.items(this._core.relative(this._core.current())),a=i.map(this._hashes,function(u,b){return u===r?b:null}).join();if(!a||D.location.hash.slice(1)===a)return;D.location.hash=a}},this)},this._core.options=i.extend({},K.Defaults,this._core.options),this.$element.on(this._handlers),i(D).on("hashchange.owl.navigation",i.proxy(function(l){var r=D.location.hash.substring(1),a=this._core.$stage.children(),u=this._hashes[r]&&a.index(this._hashes[r]);void 0!==u&&u!==this._core.current()&&this._core.to(this._core.relative(u),!1,!0)},this))};K.Defaults={URLhashListener:!1},K.prototype.destroy=function(){var F,l;for(F in i(D).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(F,this._handlers[F]);for(l in Object.getOwnPropertyNames(this))"function"!=typeof this[l]&&(this[l]=null)},i.fn.owlCarousel.Constructor.Plugins.Hash=K}(window.Zepto||window.jQuery,window,document),function(i,D,K,F){function l(k,N){var I=!1,x=k.charAt(0).toUpperCase()+k.slice(1);return i.each((k+" "+u.join(x+" ")+x).split(" "),function(S,A){if(void 0!==a[A])return I=!N||A,!1}),I}function r(k){return l(k,!0)}var a=i("<support>").get(0).style,u="Webkit Moz O ms".split(" "),b={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}};!l("transition")||(i.support.transition=new String(r("transition")),i.support.transition.end=b.transition.end[i.support.transition]),!!l("animation")&&(i.support.animation=new String(r("animation")),i.support.animation.end=b.animation.end[i.support.animation]),l("transform")&&(i.support.transform=new String(r("transform")),i.support.transform3d=!!l("perspective"))}(window.Zepto||window.jQuery,window,document),function(){function i(a){return a.split("").reverse().join("")}function D(a,u,b){if((a[u]||a[b])&&a[u]===a[b])throw Error(u)}function K(a,u,b,L,W,R,k,N,I,x,S,A){k=A;var O,H=S="";return R&&(A=R(A)),!("number"!=typeof A||!isFinite(A))&&(a&&0===parseFloat(A.toFixed(a))&&(A=0),A<0&&(O=!0,A=Math.abs(A)),a&&(R=Math.pow(10,a),A=(Math.round(A*R)/R).toFixed(a)),-1!==(A=A.toString()).indexOf(".")&&(A=(a=A.split("."))[0],b&&(S=b+a[1])),u&&(A=i((A=i(A).match(/.{1,3}/g)).join(i(u)))),O&&N&&(H+=N),L&&(H+=L),O&&I&&(H+=I),H=H+A+S,W&&(H+=W),x&&(H=x(H,k)),H)}function F(a,u,b,L,W,R,k,N,I,x,S,A){var O;return a="",S&&(A=S(A)),!(!A||"string"!=typeof A)&&(N&&A.substring(0,N.length)===N&&(A=A.replace(N,""),O=!0),L&&A.substring(0,L.length)===L&&(A=A.replace(L,"")),I&&A.substring(0,I.length)===I&&(A=A.replace(I,""),O=!0),W&&A.slice(-1*W.length)===W&&(A=A.slice(0,-1*W.length)),u&&(A=A.split(u).join("")),b&&(A=A.replace(b,".")),O&&(a+="-"),a=Number((a+A).replace(/[^0-9\.\-.]/g,"")),k&&(a=k(a)),!("number"!=typeof a||!isFinite(a))&&a)}function l(a,u,b){var L,W=[];for(L=0;L<r.length;L+=1)W.push(a[r[L]]);return W.push(b),u.apply("",W)}var r="decimals thousand mark prefix postfix encoder decoder negativeBefore negative edit undo".split(" ");window.wNumb=function a(u){if(!(this instanceof a))return new a(u);"object"==typeof u&&(u=function(b){var L,W,R,k={};for(L=0;L<r.length;L+=1)void 0===(R=b[W=r[L]])?k[W]="negative"!==W||k.negativeBefore?"mark"===W&&"."!==k.thousand&&".":"-":"decimals"===W?0<R&&R<8&&(k[W]=R):"encoder"===W||"decoder"===W||"edit"===W||"undo"===W?"function"==typeof R&&(k[W]=R):"string"==typeof R&&(k[W]=R);return D(k,"mark","thousand"),D(k,"prefix","negative"),D(k,"prefix","negativeBefore"),k}(u),this.to=function(b){return l(u,K,b)},this.from=function(b){return l(u,F,b)})}}(),function(i){"function"==typeof define&&define.amd?define([],i):"object"==typeof exports?module.exports=i():window.noUiSlider=i()}(function(){"use strict";function i(Ot,w){var Y=document.createElement("div");return r(Y,w),Ot.appendChild(Y),Y}function D(Ot){return"number"==typeof Ot&&!isNaN(Ot)&&isFinite(Ot)}function K(Ot,w,Y){0<Y&&(r(Ot,w),setTimeout(function(){a(Ot,w)},Y))}function F(Ot){return Array.isArray(Ot)?Ot:[Ot]}function l(Ot){var w=(Ot=String(Ot)).split(".");return 1<w.length?w[1].length:0}function r(Ot,w){Ot.classList?Ot.classList.add(w):Ot.className+=" "+w}function a(Ot,w){Ot.classList?Ot.classList.remove(w):Ot.className=Ot.className.replace(new RegExp("(^|\\b)"+w.split(" ").join("|")+"(\\b|$)","gi")," ")}function u(){var Ot=void 0!==window.pageXOffset,w="CSS1Compat"===(document.compatMode||"");return{x:Ot?window.pageXOffset:w?document.documentElement.scrollLeft:document.body.scrollLeft,y:Ot?window.pageYOffset:w?document.documentElement.scrollTop:document.body.scrollTop}}function b(Ot,w){return 100/(w-Ot)}function L(Ot,w){return 100*w/(Ot[1]-Ot[0])}function W(Ot,w){for(var Y=1;Ot>=w[Y];)Y+=1;return Y}function R(Ot,w,Y){var V;if("number"==typeof w&&(w=[w]),"[object Array]"!==Object.prototype.toString.call(w))throw new Error("noUiSlider: 'range' contains invali
1d value.");if(!D(V="min"===Ot?0:"max"===Ot?100:parseFloat(Ot))||!D(w[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");Y.xPct.push(V),Y.xVal.push(w[0]),V?Y.xSteps.push(!isNaN(w[1])&&w[1]):isNaN(w[1])||(Y.xSteps[0]=w[1]),Y.xHighestCompleteStep.push(0)}function k(Ot,w,Y){if(!w)return!0;Y.xSteps[Ot]=L([Y.xVal[Ot],Y.xVal[Ot+1]],w)/b(Y.xPct[Ot],Y.xPct[Ot+1]);var it=Math.ceil(Number(((Y.xVal[Ot+1]-Y.xVal[Ot])/Y.xNumSteps[Ot]).toFixed(3))-1);Y.xHighestCompleteStep[Ot]=Y.xVal[Ot]+Y.xNumSteps[Ot]*it}function N(Ot,w,Y,V){this.xPct=[],this.xVal=[],this.xSteps=[V||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=w,this.direction=Y;var it,yt=[];for(it in Ot)Ot.hasOwnProperty(it)&&yt.push([Ot[it],it]);for(yt.sort(yt.length&&"object"==typeof yt[0][0]?function(It,Lt){return It[0][0]-Lt[0][0]}:function(It,Lt){return It[0]-Lt[0]}),it=0;it<yt.length;it++)R(yt[it][1],yt[it][0],this);for(this.xNumSteps=this.xSteps.slice(0),it=0;it<this.xNumSteps.length;it++)k(it,this.xNumSteps[it],this)}N.prototype.getMargin=function(Ot){var w=this.xNumSteps[0];if(w&&Ot/w%1!=0)throw new Error("noUiSlider: 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&L(this.xVal,Ot)},N.prototype.toStepping=function(Ot){return function(w,Y,V){if(V>=w.slice(-1)[0])return 100;var It,Lt,Ut,de,be=W(V,w);return Lt=Y[be],(It=Y[be-1])+(de=V,L(Ut=[w[be-1],w[be]],Ut[0]<0?de+Math.abs(Ut[0]):de-Ut[0])/b(It,Lt))}(this.xVal,this.xPct,Ot)},N.prototype.fromStepping=function(Ot){return function(w,Y,V){if(100<=V)return w.slice(-1)[0];var it,yt,It=W(V,Y);return yt=[w[It-1],w[It]],(V-(it=Y[It-1]))*b(it,Y[It])*(yt[1]-yt[0])/100+yt[0]}(this.xVal,this.xPct,Ot)},N.prototype.getStep=function(Ot){return function(w,Y,V,it){if(100===it)return it;var yt,It,Ut,de=W(it,w);return V?((It=w[de])-(yt=w[de-1]))/2<it-yt?It:yt:Y[de-1]?w[de-1]+(Ut=Y[de-1],Math.round((it-w[de-1])/Ut)*Ut):it}(this.xPct,this.xSteps,this.snap,Ot)},N.prototype.getNearbySteps=function(Ot){var w=W(Ot,this.xPct);return{stepBefore:{startValue:this.xVal[w-2],step:this.xNumSteps[w-2],highestStep:this.xHighestCompleteStep[w-2]},thisStep:{startValue:this.xVal[w-1],step:this.xNumSteps[w-1],highestStep:this.xHighestCompleteStep[w-1]},stepAfter:{startValue:this.xVal[w-0],step:this.xNumSteps[w-0],highestStep:this.xHighestCompleteStep[w-0]}}},N.prototype.countStepDecimals=function(){var Ot=this.xNumSteps.map(l);return Math.max.apply(null,Ot)},N.prototype.convert=function(Ot){return this.getStep(this.toStepping(Ot))};var I={to:function(Ot){return void 0!==Ot&&Ot.toFixed(2)},from:Number};function x(Ot,w){if(!D(w))throw new Error("noUiSlider: 'step' is not numeric.");Ot.singleStep=w}function S(Ot,w){if("object"!=typeof w||Array.isArray(w))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===w.min||void 0===w.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");if(w.min===w.max)throw new Error("noUiSlider: 'range' 'min' and 'max' cannot be equal.");Ot.spectrum=new N(w,Ot.snap,Ot.dir,Ot.singleStep)}function A(Ot,w){if(w=F(w),!Array.isArray(w)||!w.length)throw new Error("noUiSlider: 'start' option is incorrect.");Ot.handles=w.length,Ot.start=w}function O(Ot,w){if("boolean"!=typeof(Ot.snap=w))throw new Error("noUiSlider: 'snap' option must be a boolean.")}function H(Ot,w){if("boolean"!=typeof(Ot.animate=w))throw new Error("noUiSlider: 'animate' option must be a boolean.")}function z(Ot,w){if("number"!=typeof(Ot.animationDuration=w))throw new Error("noUiSlider: 'animationDuration' option must be a number.")}function v(Ot,w){var Y,V=[!1];if("lower"===w?w=[!0,!1]:"upper"===w&&(w=[!1,!0]),!0===w||!1===w){for(Y=1;Y<Ot.handles;Y++)V.push(w);V.push(!1)}else{if(!Array.isArray(w)||!w.length||w.length!==Ot.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");V=w}Ot.connect=V}function tt(Ot,w){switch(w){case"horizontal":Ot.ort=0;break;case"vertical":Ot.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function ft(Ot,w){if(!D(w))throw new Error("noUiSlider: 'margin' option must be numeric.");if(0!==w&&(Ot.margin=Ot.spectrum.getMargin(w),!Ot.margin))throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.")}function Rt(Ot,w){if(!D(w))throw new Error("noUiSlider: 'limit' option must be numeric.");if(Ot.limit=Ot.spectrum.getMargin(w),!Ot.limit||Ot.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function lt(Ot,w){if(!D(w))throw new Error("noUiSlider: 'padding' option must be numeric.");if(0!==w){if(Ot.padding=Ot.spectrum.getMargin(w),!Ot.padding)throw new Error("noUiSlider: 'padding' option is only supported on linear sliders.");if(Ot.padding<0)throw new Error("noUiSlider: 'padding' option must be a positive number.");if(50<=Ot.padding)throw new Error("noUiSlider: 'padding' option must be less than half the range.")}}function at(Ot,w){switch(w){case"ltr":Ot.dir=0;break;case"rtl":Ot.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function mt(Ot,w){if("string"!=typeof w)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var Y=0<=w.indexOf("tap"),V=0<=w.indexOf("drag"),it=0<=w.indexOf("fixed"),yt=0<=w.indexOf("snap"),It=0<=w.indexOf("hover");if(it){if(2!==Ot.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");ft(Ot,Ot.start[1]-Ot.start[0])}Ot.events={tap:Y||yt,drag:V,fixed:it,snap:yt,hover:It}}function wt(Ot,w){if(!1!==w)if(!0===w){Ot.tooltips=[];for(var Y=0;Y<Ot.handles;Y++)Ot.tooltips.push(!0)}else{if(Ot.tooltips=F(w),Ot.tooltips.length!==Ot.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");Ot.tooltips.forEach(function(V){if("boolean"!=typeof V&&("object"!=typeof V||"function"!=typeof V.to))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")})}}function qt(Ot,w){if("function"==typeof(Ot.format=w).to&&"function"==typeof w.from)return!0;throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.")}function ae(Ot,w){if(void 0!==w&&"string"!=typeof w&&!1!==w)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");Ot.cssPrefix=w}function ye(Ot,w){if(void 0!==w&&"object"!=typeof w)throw new Error("noUiSlider: 'cssClasse
1s' must be an object.");if("string"==typeof Ot.cssPrefix)for(var Y in Ot.cssClasses={},w)w.hasOwnProperty(Y)&&(Ot.cssClasses[Y]=Ot.cssPrefix+w[Y]);else Ot.cssClasses=w}function he(Ot,w){if(!0!==w&&!1!==w)throw new Error("noUiSlider: 'useRequestAnimationFrame' option should be true (default) or false.");Ot.useRequestAnimationFrame=w}function Te(Ot){var w={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,format:I},Y={step:{r:!1,t:x},start:{r:!0,t:A},connect:{r:!0,t:v},direction:{r:!0,t:at},snap:{r:!1,t:O},animate:{r:!1,t:H},animationDuration:{r:!1,t:z},range:{r:!0,t:S},orientation:{r:!1,t:tt},margin:{r:!1,t:ft},limit:{r:!1,t:Rt},padding:{r:!1,t:lt},behaviour:{r:!0,t:mt},format:{r:!1,t:qt},tooltips:{r:!1,t:wt},cssPrefix:{r:!1,t:ae},cssClasses:{r:!1,t:ye},useRequestAnimationFrame:{r:!1,t:he}},V={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleTouchArea:"handle-touch-area",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0};Object.keys(Y).forEach(function(yt){if(void 0===Ot[yt]&&void 0===V[yt]){if(Y[yt].r)throw new Error("noUiSlider: '"+yt+"' is required.");return!0}Y[yt].t(w,void 0===Ot[yt]?V[yt]:Ot[yt])}),w.pips=Ot.pips;var it=[["left","top"],["right","bottom"]];return w.style=it[w.dir][w.ort],w.styleOposite=it[w.dir?0:1][w.ort],w}return{create:function(Ot,w){if(!Ot.nodeName)throw new Error("noUiSlider.create requires a single element.");void 0===w.tooltips&&(w.tooltips=!0);var Y=function Ne(Ot,w,Y){var V,it,yt,It,Lt,Ut,de,be=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},dt=Ot,Ht=[],Gt=[],ge=!1,zt=w.spectrum,Ee=[],ze={};function Xe(xt,Ft){return!!Ft&&i(xt,w.cssClasses.connect)}function Tt(xt){var Ft,Kt,ce,we,Se,Ye,Je,ni,ci,ri=xt.mode,yi=xt.density||1,Ii=xt.filter||!1,Ti=function(si,$i,an){if("range"===si||"steps"===si)return zt.xVal;if("count"===si){var Ci,fn=100/($i-1),yn=0;for($i=[];(Ci=yn++*fn)<=100;)$i.push(Ci);si="positions"}return"positions"===si?$i.map(function(bn){return zt.fromStepping(an?zt.getStep(bn):bn)}):"values"===si?an?$i.map(function(bn){return zt.fromStepping(zt.getStep(zt.toStepping(bn)))}):$i:void 0}(ri,xt.values||!1,xt.stepped||!1),rn=(Ft=yi,Kt=ri,we={},Se=zt.xVal[0],Ye=zt.xVal[zt.xVal.length-1],ni=Je=!1,ci=0,(ce=(ce=Ti).slice().sort(function(si,$i){return si-$i}).filter(function(si){return!this[si]&&(this[si]=!0)},{}))[0]!==Se&&(ce.unshift(Se),Je=!0),ce[ce.length-1]!==Ye&&(ce.push(Ye),ni=!0),ce.forEach(function(si,$i){var an,Ci,fn,yn,bn,Pi,Ln,Sn,mn,Xi=si,Qi=ce[$i+1];if("steps"===Kt&&(an=zt.xNumSteps[$i]),an=an||Qi-Xi,!1!==Xi&&void 0!==Qi)for(an=Math.max(an,1e-7),Ci=Xi;Ci<=Qi;Ci=(Ci+an).toFixed(7)/1){for(Ln=(bn=(yn=zt.toStepping(Ci))-ci)/Ft,mn=bn/(Sn=Math.round(Ln)),fn=1;fn<=Sn;fn+=1)we[(ci+fn*mn).toFixed(5)]=["x",0];Pi=-1<ce.indexOf(Ci)?1:"steps"===Kt?2:0,!$i&&Je&&(Pi=0),Ci===Qi&&ni||(we[yn.toFixed(5)]=[Ci,Pi]),ci=yn}}),we),Ei=xt.format||{to:Math.round};return dt.appendChild(function(si,$i,an){var Ci=document.createElement("div"),fn="",yn=[w.cssClasse
1s.valueNormal,w.cssClasses.valueLarge,w.cssClasses.valueSub],bn=[w.cssClasses.markerNormal,w.cssClasses.markerLarge,w.cssClasses.markerSub],Pi=[w.cssClasses.valueHorizontal,w.cssClasses.valueVertical],Ln=[w.cssClasses.markerHorizontal,w.cssClasses.markerVertical];function Sn(mn,Xi,Qi){return'class="'+(Di=(Fi=(Un=Xi)===w.cssClasses.value)?yn:bn,Un+" "+(Fi?Pi:Ln)[w.ort]+" "+Di[Qi[1]]+'" style="')+w.style+": "+mn+'%"';var Un,Fi,Di}return r(Ci,w.cssClasses.pips),r(Ci,0===w.ort?w.cssClasses.pipsHorizontal:w.cssClasses.pipsVertical),Object.keys(si).forEach(function(mn){var Xi,Qi;(Qi=si[Xi=mn])[1]=Qi[1]&&$i?$i(Qi[0],Qi[1]):Qi[1],fn+="<div "+Sn(Xi,w.cssClasses.marker,Qi)+"></div>",Qi[1]&&(fn+="<div "+Sn(Xi,w.cssClasses.value,Qi)+">"+an.to(Qi[0])+"</div>")}),Ci.innerHTML=fn,Ci}(rn,Ii,Ei))}function $t(){var xt=V.getBoundingClientRect(),Ft="offset"+["Width","Height"][w.ort];return 0===w.ort?xt.width||V[Ft]:xt.height||V[Ft]}function ee(xt,Ft,Kt,ce){function we(Ye){return!dt.hasAttribute("disabled")&&(ni=w.cssClasses.tap,((Je=dt).classList?!Je.classList.contains(ni):!new RegExp("\\b"+ni+"\\b").test(Je.className))&&!!(Ye=function(ci,ri){ci.preventDefault();var yi,Ii,Ti=0===ci.type.indexOf("touch"),rn=0===ci.type.indexOf("mouse"),Ei=0===ci.type.indexOf("pointer");if(0===ci.type.indexOf("MSPointer")&&(Ei=!0),Ti){if(1<ci.touches.length)return!1;yi=ci.changedTouches[0].pageX,Ii=ci.changedTouches[0].pageY}return ri=ri||u(),(rn||Ei)&&(yi=ci.clientX+ri.x,Ii=ci.clientY+ri.y),ci.pageOffset=ri,ci.points=[yi,Ii],ci.cursor=rn||Ei,ci}(Ye,ce.pageOffset))&&!(xt===be.start&&void 0!==Ye.buttons&&1<Ye.buttons)&&(!ce.hover||!Ye.buttons)&&(Ye.calcPoint=Ye.points[w.ort],void Kt(Ye,ce)));var Je,ni}var Se=[];return xt.split(" ").forEach(function(Ye){Ft.addEventListener(Ye,we,!1),Se.push([Ye,we])}),Se}function ne(xt){var Ft,Kt,ce,we,Se,Ye=100*(xt-(Kt=w.ort,ce=(Ft=V).getBoundingClientRect(),we=Ft.ownerDocument.documentElement,Se=u(),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(Se.x=0),Kt?ce.top+Se.y-we.clientTop:ce.left+Se.x-we.clientLeft))/$t();return w.dir?100-Ye:Ye}function xe(xt,Ft,Kt,ce){var we=Kt.slice(),Se=[!xt,xt],Ye=[xt,!xt];ce=ce.slice(),xt&&ce.reverse(),1<ce.length?ce.forEach(function(ni,ci){var ri=d(we,ni,we[ni]+Ft,Se[ci],Ye[ci]);!1===ri?Ft=0:(Ft=ri-we[ni],we[ni]=ri)}):Se=Ye=[!0];var Je=!1;ce.forEach(function(ni,ci){Je=U(ni,Kt[ni]+Ft,Se[ci],Ye[ci])||Je}),Je&&ce.forEach(function(ni){ue("update",ni),ue("slide",ni)})}function ue(xt,Ft,Kt){Object.keys(ze).forEach(function(ce){var we=ce.split(".")[0];xt===we&&ze[ce].forEach(function(Se){Se.call(It,Ee.map(w.format.to),Ft,Ee.slice(),Kt||!1,Ht.slice())})})}function fe(xt,Ft){"mouseout"===xt.type&&"HTML"===xt.target.nodeName&&null===xt.relatedTarget&&e(xt,Ft)}function Le(xt,Ft){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===xt.buttons&&0!==Ft.buttonsProperty)return e(xt,Ft);var Kt=(w.dir?-1:1)*(xt.calcPoint-Ft.startCalcPoint);xe(0<Kt,100*Kt/Ft.baseSize,Ft.locations,Ft.handleNumbers)}function e(xt,Ft){ge&&(a(ge,w.cssClasses.active),ge=!1),xt.cursor&&(document.body.style.cursor="",document.body.removeEventListener("selectstart",document.body.noUiListener)),document.documentElement.noUiListeners.forEach(function(Kt){document.documentElement.removeEventListener(Kt[0],Kt[1])}),a(dt,w.cssClasses.drag),C(),Ft.handleNumbers.forEach(function(Kt){ue("set",Kt),ue("change",Kt),ue("end",Kt)})}function s(xt,Ft){if(1===Ft.handleNumbers.length){var Kt=it[Ft.handleNumbers[0]];if(Kt.hasAttribute("disabled"))return!1;
vendor: 5,565 bytes, line 1
1r(ge=Kt.children[0],w.cssClasses.active)}xt.preventDefault(),xt.stopPropagation();var ce=ee(be.move,document.documentElement,Le,{startCalcPoint:xt.calcPoint,baseSize:$t(),pageOffset:xt.pageOffset,handleNumbers:Ft.handleNumbers,buttonsProperty:xt.buttons,locations:Ht.slice()}),we=ee(be.end,document.documentElement,e,{handleNumbers:Ft.handleNumbers}),Se=ee("mouseout",document.documentElement,fe,{handleNumbers:Ft.handleNumbers});if(document.documentElement.noUiListeners=ce.concat(we,Se),xt.cursor){document.body.style.cursor=getComputedStyle(xt.target).cursor,1<it.length&&r(dt,w.cssClasses.drag);var Ye=function(){return!1};document.body.noUiListener=Ye,document.body.addEventListener("selectstart",Ye,!1)}Ft.handleNumbers.forEach(function(Je){ue("start",Je)})}function d(xt,Ft,Kt,ce,we){var Se;return 1<it.length&&(ce&&0<Ft&&(Kt=Math.max(Kt,xt[Ft-1]+w.margin)),we&&Ft<it.length-1&&(Kt=Math.min(Kt,xt[Ft+1]-w.margin))),1<it.length&&w.limit&&(ce&&0<Ft&&(Kt=Math.min(Kt,xt[Ft-1]+w.limit)),we&&Ft<it.length-1&&(Kt=Math.max(Kt,xt[Ft+1]-w.limit))),w.padding&&(0===Ft&&(Kt=Math.max(Kt,w.padding)),Ft===it.length-1&&(Kt=Math.min(Kt,100-w.padding))),Se=Kt=zt.getStep(Kt),(Kt=Math.max(Math.min(Se,100),0))!==xt[Ft]&&Kt}function g(xt){return xt+"%"}function C(){Gt.forEach(function(xt){it[xt].childNodes[0].style.zIndex=3+(it.length+(50<Ht[xt]?-1:1)*xt)})}function U(xt,Ft,Kt,ce){return!1!==(Ft=d(Ht,xt,Ft,Kt,ce))&&(function(we,Se){function Ye(){it[we].style[w.style]=g(Se),nt(we),nt(we+1)}Ht[we]=Se,Ee[we]=zt.fromStepping(Se),window.requestAnimationFrame&&w.useRequestAnimationFrame?window.requestAnimationFrame(Ye):Ye()}(xt,Ft),!0)}function nt(xt){if(yt[xt]){var Ft=0,Kt=100;0!==xt&&(Ft=Ht[xt-1]),xt!==yt.length-1&&(Kt=Ht[xt]),yt[xt].style[w.style]=g(Ft),yt[xt].style[w.styleOposite]=g(100-Kt)}}function ut(xt,Ft){null!==xt&&!1!==xt&&("number"==typeof xt&&(xt=String(xt)),!1===(xt=w.format.from(xt))||isNaN(xt)||U(Ft,zt.toStepping(xt),!1,!1))}function vt(xt,Ft){var Kt=F(xt),ce=void 0===Ht[0];Ft=void 0===Ft||!!Ft,Kt.forEach(ut),w.animate&&!ce&&K(dt,w.cssClasses.tap,w.animationDuration),Gt.forEach(function(we){U(we,Ht[we],!0,!1)}),C(),Gt.forEach(function(we){ue("update",we),null!==Kt[we]&&Ft&&ue("set",we)})}function Wt(){var xt=Ee.map(w.format.to);return 1===xt.length?xt[0]:xt}function Bt(xt,Ft){ze[xt]=ze[xt]||[],ze[xt].push(Ft),"update"===xt.split(".")[0]&&it.forEach(function(Kt,ce){ue("update",ce)})}if(dt.noUiSlider)throw new Error("Slider was already initialized.");return r(Lt=dt,w.cssClasses.target),r(Lt,0===w.dir?w.cssClasses.ltr:w.cssClasses.rtl),r(Lt,0===w.ort?w.cssClasses.horizontal:w.cssClasses.vertical),V=i(Lt,w.cssClasses.base),function(xt,Ft){it=[],(yt=[]).push(Xe(Ft,xt[0]));for(var Kt=0;Kt<w.handles;Kt++)it.push((ce=Kt,Se=void 0,i(Se=i(we=i(Ft,w.cssClasses.origin),w.cssClasses.handle),w.cssClasses.handleTouchArea),Se.setAttribute("data-handle",ce),0===ce?r(Se,w.cssClasses.handleLower):ce===w.handles-1&&r(Se,w.cssClasses.handleUpper),we)),Gt[Kt]=Kt,yt.push(Xe(Ft,xt[Kt+1]));var ce,we,Se}(w.connect,V),It={destroy:function(){for(var xt in w.cssClasses)w.cssClasses.hasOwnProperty(xt)&&a(dt,w.cssClasses[xt]);for(;dt.firstChild;)dt.removeChild(dt.firstChild);delete dt.noUiSlider},steps:function(){return Ht.map(function(xt,Ft){var Kt=zt.getNearbySteps(xt),ce=Ee[Ft],we=Kt.thisStep.step,Se=null;!1!==we&&ce+we>Kt.stepAfter.startValue&&(we=Kt.stepAfter.startValue-ce),Se=ce>Kt.thisStep.startValue?Kt.thisStep.step:!1!==Kt.stepBefore.step&&ce-Kt.stepBefore.highestStep,100===xt?we=null:0===xt&&(Se=null);var Ye=zt.countStepDecimals();return null!==we&&!1!==we&&(we=Number(we.toFixed(Ye))),null!==Se&&!1!==Se&&(Se=Number(Se.toFixed(Ye))),[Se,we]})},on:Bt,off:function(xt){var Ft=xt&&xt.split(".")[0],Kt=Ft&&xt.substring(Ft.length);Object.keys(ze).forEach(function(ce){var we=ce.split(".")[0],Se=ce.substring(we.length);Ft&&Ft!==we||Kt&&Kt!==Se||delete ze[ce]})},get:Wt,set:vt,reset:function(xt){vt(w.start,xt)},__moveHandles:function(xt,Ft,Kt){xe(xt,Ft,Ht,Kt)},options:Y,updateOptions:function(xt,Ft){var Kt=Wt(),ce=["margin","limit","padding","range","animate","snap","step","format"];ce.forEach(function(Se){void 0!==xt[Se]&&(Y[Se]=xt[Se])});var we=Te(Y);ce.forEach(function(Se){void 0!==xt[Se]&&(w[Se]=we[Se])}),we.spectrum.direction=zt.direction,zt=we.spectrum,w.margin=we.margin,w.limit=we.limit,w.padding=we.padding,Ht=[],vt(xt.start||Kt,Ft)},target:dt,pips:Tt},(Ut=w.events).fixed||it.forEach(function(xt,Ft){ee(be.start,xt.children[0],s,{handleNumbers:[Ft]})}),Ut.tap&&ee(be.start,V,function(xt){xt.stopPropagation();var Ft,Kt,ce,we=ne(xt.calcPoint),Se=(Ft=we,ce=!(Kt=100),it.forEach(function(Ye,Je){if(!Ye.hasAttribute("disabled")){var ni=Math.abs(Ht[Je]-Ft);ni<Kt&&(ce=Je,Kt=ni)}}),ce);if(!1===Se)return!1;w.events.snap||K(dt,w.cssClasses.tap,w.animationDuration),U(Se,we,!0,!0),C(),ue("slide",Se,!0),ue("set",Se,!0),ue("change",Se,!0),ue("update",Se,!0),w.events.snap&&s(xt,{handleNumbers:[Se]})},{}),Ut.hover&&ee(be.move,V,function(xt){var Ft=ne(xt.calcPoint),Kt=zt.getStep(Ft),ce=zt.fromStepping(Kt);Object.keys(ze).forEach(function(we){"hover"===we.split(".")[0]&&ze[we].forEach(function(Se){Se.call(It,ce)})})},{hover:!0}),Ut.drag&&yt.forEach(function(xt,Ft){if(!1!==xt&&0!==Ft&&Ft!==yt.length-1){var Kt=it[Ft-1],ce=it[Ft],we=[xt];r(xt,w.cssClasses.draggable),Ut.fixed&&(we.push(Kt.children[0]),we.push(ce.children[0])),we.forEach(function(Se){ee(be.start,Se,s,{handles:[Kt,ce],handleNumbers:[Ft-1,Ft]})})}}),vt(w.start),w.pips&&Tt(w.pips),w.tooltips&&(de=it.map(function(xt,Ft){return!!w.tooltips[Ft]&&i(xt.firstChild,w.cssClasse
1s.tooltip)}),Bt("update",function(xt,Ft,Kt){if(de[Ft]){var ce=xt[Ft];!0!==w.tooltips[Ft]&&(ce=w.tooltips[Ft].to(Kt[Ft])),de[Ft].innerHTML="<span>"+ce+"</span>"}})),It}(Ot,Te(w),w);return Ot.noUiSlider=Y}}}),$(function(){setTimeout(function(){$(".page-loader-wrapper").fadeOut()},50)}),"undefined"==typeof jQuery)throw new Error("jQuery plugins need to be before this file");function sidemenuCollapse(){var i,D;(null==(D=null==(i=document.querySelector(".sidemenu-collapse"))?void 0:i.eventListeners("click"))?void 0:D.length)>0||($(".sidemenu-collapse").on("click",function(){var K=$("body");K.hasClass("side-closed")?(K.removeClass("side-closed"),K.removeClass("submenu-closed")):(K.addClass("side-closed"),K.addClass("submenu-closed"))}),$(".content, .navbar").mouseenter(function(){var K=$("body");K.removeClass("side-closed-hover"),K.addClass("submenu-closed")}),$(".sidebar").mouseenter(function(){var K=$("body");K.addClass("side-closed-hover"),K.removeClass("submenu-closed")}),localStorage.getItem("sidebar_option")&&jQuery("body").addClass(localStorage.getItem("sidebar_option")),$("body").hasClass("side-closed")?$(".sidebar-user-panel").css({display:"none"}):$(".sidebar-user-panel").css({display:"block"}),jQuery(document).on("click",".sidemenu-collapse",function(){var K="";$("body").hasClass("side-closed")?(K="side-closed submenu-closed",$(".sidebar-user-panel").css({display:"none"})):$(".sidebar-user-panel").css({display:"block"}),jQuery("body").addClass(K),localStorage.setItem("sidebar_option",K)}))}HDROSystemApp={},HDROSystemApp.options={leftSideBar:{scrollColor:"rgba(0,0,0,0.5)",scrollWidth:"4px",scrollAlwaysVisible:!1,scrollBorderRadius:"0",scrollRailBorderRadius:"0",scrollActiveItemWhenPageLoad:!0,breakpointWidth:1170},dropdownMenu:{effectIn:"pullDown",effectOut:"fadeOut"}},HDROSystemApp.initAll=function(){HDROSystemApp.browser.activate(),sidemenuCollapse(),HDROSystemApp.leftSideBar.activate(),HDROSystemApp.navbar.activate(),HDROSystemApp.input.activate(),HDROSystemApp.select.activate(),HDROSystemApp.tooltip.activate(),HDROSystemApp.setStartupStyles(),activateNotificationAndTasksScroll()},HDROSystemApp.tooltip={activate:function(){$('[data-toggle="tooltip"]').tooltip({placement:"top"})}},HDROSystemApp.leftSideBar={activate:function(){var F;if(null==(F=document.querySelector(".menu-toggle"))||!F.hasAttribute("eventsAttached")){var i=this,D=$("body"),K=$(".overlay");$(window).on("click",function(l){var r=$(l.target);"i"===l.target.nodeName.toLowerCase()&&(r=$(l.target).parent()),!r.hasClass("bars")&&i.isOpen()&&0===r.parents("#leftsidebar").length?(r.hasClass("js-right-sidebar")||K.fadeOut(),D.removeClass("overlay-open")):!r.hasClass("bars")&&i.isOpen()&&D.removeClass("overlay-open")}),$.each($(".menu-toggle.toggled"),function(l,r){$(r).next().slideToggle(0)}),$.each($(".menu .list li.active"),function(l,r){var a=$(r).find("a:eq(0)");a.addClass("toggled"),a.next().show()}),$(".menu-toggle").on("click",function(l){var r=$(this),a=r.next();if($(r.parents("ul")[0]).hasClass("list")){var u=$(l.target).hasClass("menu-toggle")?l.target:$(l.target).parents(".menu-toggle");$.each($(".menu-toggle.toggled").not(u).next(),function(b,L){$(L).is(":visible")&&($(L).prev().toggleClass("toggled"),$(L).slideUp())})}r.toggleClass("toggled"),a.slideToggle(320)}),i.setMenuHeight(),i.checkStatuForResize(!0),$(window).resize(function(){i.setMenuHeight(),i.checkStatuForResize(!1)}),Waves.attach(".menu .list a",["waves-block"]),Waves.init()}},setMenuHeight:function(i){if(void 0!==$.fn.slimScroll){var D=HDROSystemApp.options.leftSideBar,K=$(window).height()-$(".navbar").innerHeight();$(".list").slimscroll({height:K+"px",color:D.scrollColor,size:D.scrollWidth,alwaysVisible:D.scrollAlwaysVisible,borderRadius:D.scrollBorderRadius,railBorderRadius:D.scrollRailBorderRadius})}},checkStatuForResize:function(i){var D=$("body"),K=$(".navbar .navbar-header .bars"),F=D.width();i&&D.find(".content, .sidebar").addClass("no-animate").delay(1e3).queue(function(){$(this).removeClass("no-animate").dequeue()}),F<HDROSystemApp.options.leftSideBar.breakpointWidth?(D.addClass("ls-closed"),K.fadeIn()):(D.removeClass("ls-closed"),K.fadeOut())},isOpen:function(){return $("body").hasClass("overlay-open")}},HDROSystemApp.navbar={activate:function(){var i=$("body"),D=$(".overlay");$(".bars").on("click",function(){i.toggleClass("overlay-open"),i.hasClass("overlay-open")?D.fadeIn():D.fadeOut()}),$(".navbar-toggle").on("click",function(){$(window).width()<768&&$(".navbar").removeClass("active").addClass("active")}
1),$('.nav [data-close="true"]').on("click",function(){var K=$(".navbar-toggle").is(":visible"),F=$(".navbar-collapse");K&&F.slideUp(function(){F.removeClass("in").removeAttr("style")})})}},HDROSystemApp.input={activate:function(){$(".form-control").focus(function(){$(this).parent().addClass("focused")}),$(".form-control").focusout(function(){var i=$(this);i.parents(".form-group").hasClass("form-float")?""==i.val()&&i.parents(".form-line").removeClass("focused"):i.parents(".form-line").removeClass("focused")}),$("body").on("click",".form-float .form-line .form-label",function(){$(this).parent().find("input").focus()}),$(".form-control").each(function(){""!==$(this).val()&&$(this).parents(".form-line").addClass("focused")})}},HDROSystemApp.select={activate:function(){$.fn.selectpicker&&$("select:not(.ms)").selectpicker()}};var edge="Microsoft Edge",ie10="Internet Explorer 10",ie11="Internet Explorer 11",opera="Opera",firefox="Mozilla Firefox",chrome="Google Chrome",safari="Safari";function activateNotificationAndTasksScroll(){$(".navbar-right .dropdown-menu .body .menu").slimscroll({height:"254px",color:"rgba(0,0,0,0.5)",size:"4px",alwaysVisible:!1,borderRadius:"0",railBorderRadius:"0"})}HDROSystemApp.browser={activate:function(){""!==this.getClassName()&&$("html").addClass(this.getClassName())},getBrowser:function(){var i=navigator.userAgent.toLowerCase();return/edge/i.test(i)?edge:/rv:11/i.test(i)?ie11:/msie 10/i.test(i)?ie10:/opr/i.test(i)?opera:/chrome/i.test(i)?chrome:/firefox/i.test(i)?firefox:navigator.userAgent.match(/Version\/[\d\.]+.*Safari/)?safari:void 0},getClassName:function(){var i=this.getBrowser();return i===edge?"edge":i===ie11?"ie11":i===ie10?"ie10":i===opera?"opera":i===chrome?"chrome":i===firefox?"firefox":i===safari?"safari":""}},HDROSystemApp.setStartupStyles=function(){let i=localStorage.getItem("hdro.user");i&&(i=JSON.parse(i),$("body").removeClass("dark light menu_light menu_dark theme-black theme-blue logo-white logo-black"),jQuery("body").addClass(i.theme),jQuery("body").addClass("menu_"+i.theme),"dark"===i.theme?(jQuery("body").addClass("theme-black"),jQuery("body").addClass("logo-black")):(jQuery("body").addClass("theme-blue"),jQuery("body").addClass("logo-white")))},$(window).on("scroll",function(){$(window).width()>768&&($(window).scrollTop()>50?$(".navbar").addClass("active"):$(".navbar").removeClass("active"))}),$(document).on("click",".card .tools .t-collapse",function(){var i=$(this).parents(".card").children(".card-body");$(this).hasClass("fa-chevron-down")?($(this).removeClass("fa-chevron-down").addClass("fa-chevron-up"),i.slideUp(200)):($(this).removeClass("fa-chevron-up").addClass("fa-chevron-down"),i.slideDown(200))}),$(document).on("click",".card .tools .t-close",function(){$(this).parents(".card").parent().remove()}),$(".box-refresh").on("click",function(i){i.preventDefault(),$("<div class='refresh-block'><span class='refresh-loader'><i class='fa fa-spinner fa-spin'></i></span></div>").appendTo($(this).parents(".tools").parents(".card-head").parents(".card")),setTimeout(function(){$(".refresh-block").remove()},1e3)}),function(i){"function"==typeof define&&define.amd?define(["jquery"],function(D){return i(D,window,document)}):"object"==typeof exports?module.exports=function(D,K){return D=D||window,K=K||("undefined"!=typeof window?require("jquery"):require("jquery")(D)),i(K,D,D.document)}:i(jQuery,window,document)}(function(i,D,K,F){function l(f){var P,q,Z={};i.each(f,function(ct){(P=ct.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(P[1]+" ")&&(q=ct.replace(P[0],P[2].toLowerCase()),Z[q]=ct,"o"===P[1]&&l(f[ct]))}),f._hungarianMap=Z}function r(f,P,q){var Z;f._hungarianMap||l(f),i.each(P,function(ct){(Z=f._hungarianMap[ct])===F||!q&&P[Z]!==F||("o"===Z.charAt(0)?(P[Z]||(P[Z]={}),i.extend(!0,P[Z],P[ct]),r(f[Z],P[Z],q)):P[Z]=P[ct])})}function a(f){var P=We.defaults.oLanguage,q=P.sDecimal;if(q&&yn(q),f){var Z=f.sZeroRecords;!f.sEmptyTable&&Z&&"No data available in table"===P.sEmptyTable&&Ii(f,f,"sZeroRecords","sEmptyTable"),!f.sLoadingRecords&&Z&&"Loading..."===P.sLoadingRecords&&Ii(f,f,"sZeroRecords","sLoadingRecords"),f.sInfoThousands&&(f.sThousands=f.sInfoThousands),(f=f.sDecimal)&&q!==f&&yn(f)}}function u(f){if(en(f,"ordering","bSort"),en(f,"orderMulti","bSortMulti"),en(f,"orderClasses","bSortClasses"),en(f,"orderCellsTop","bSortCellsTop"),en(f,"order","aaSorting"),en(f,"orderFixed","aaSortingFixed"),en(f,"paging","bPaginate"),en(f,"pagingType","sPaginationType"),en(f,"pageLength","iDisplayLength"),en(f,"searching","bFilter"),"boolean"==typeof f.sScrollX&&
vendor: 1,416 bytes, line 1
1(f.sScrollX=f.sScrollX?"100%":""),"boolean"==typeof f.scrollX&&(f.scrollX=f.scrollX?"100%":""),f=f.aoSearchCols)for(var P=0,q=f.length;P<q;P++)f[P]&&r(We.models.oSearch,f[P])}function b(f){en(f,"orderable","bSortable"),en(f,"orderData","aDataSort"),en(f,"orderSequence","asSorting"),en(f,"orderDataType","sortDataType");var P=f.aDataSort;"number"!=typeof P||i.isArray(P)||(f.aDataSort=[P])}function L(f){if(!We.__browser){var P={};We.__browser=P;var q=i("<div/>").css({position:"fixed",top:0,left:-1*i(D).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(i("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(i("<div/>").css({width:"100%",height:10}))).appendTo("body"),Z=q.children(),ct=Z.children();P.barWidth=Z[0].offsetWidth-Z[0].clientWidth,P.bScrollOversize=100===ct[0].offsetWidth&&100!==Z[0].clientWidth,P.bScrollbarLeft=1!==Math.round(ct.offset().left),P.bBounding=!!q[0].getBoundingClientRect().width,q.remove()}i.extend(f.oBrowser,We.__browser),f.oScroll.iBarWidth=We.__browser.barWidth}function W(f,P,q,Z,ct,rt){var bt,ht=!1;for(q!==F&&(bt=q,ht=!0);Z!==ct;)f.hasOwnProperty(Z)&&(bt=ht?P(bt,f[Z],Z,f):f[Z],ht=!0,Z+=rt);return bt}function R(f,P){var q=We.defaults.column,Z=f.aoColumns.length;q=i.extend({},We.models.oColumn,q,{nTh:P||K.createElement("th"),sTitle:q.sTitle?q.sTitle:P?P.innerHTML:"",aDataSort:q.aDataSort?q.aDataSort:[Z],mData:q.mData?q.mData:Z,idx:Z}
1),f.aoColumns.push(q),(q=f.aoPreSearchCols)[Z]=i.extend({},We.models.oSearch,q[Z]),k(f,Z,i(P).data())}function k(f,P,q){var Z=f.oClasses,ct=i((P=f.aoColumns[P]).nTh);if(!P.sWidthOrig){P.sWidthOrig=ct.attr("width")||null;var rt=(ct.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);rt&&(P.sWidthOrig=rt[1])}q!==F&&null!==q&&(b(q),r(We.defaults.column,q),q.mDataProp===F||q.mData||(q.mData=q.mDataProp),q.sType&&(P._sManualType=q.sType),q.className&&!q.sClass&&(q.sClass=q.className),q.sClass&&ct.addClass(q.sClass),i.extend(P,q),Ii(P,q,"sWidth","sWidthOrig"),q.iDataSort!==F&&(P.aDataSort=[q.iDataSort]),Ii(P,q,"aDataSort"));var bt=P.mData,ht=lt(bt),Nt=P.mRender?lt(P.mRender):null;q=function(Yt){return"string"==typeof Yt&&-1!==Yt.indexOf("@")},P._bAttrSrc=i.isPlainObject(bt)&&(q(bt.sort)||q(bt.type)||q(bt.filter)),P._setter=null,P.fnGetData=function(Yt,oe,ve){var Pe=ht(Yt,oe,F,ve);return Nt&&oe?Nt(Pe,oe,Yt,ve):Pe},P.fnSetData=function(Yt,oe,ve){return at(bt)(Yt,oe,ve)},"number"!=typeof bt&&(f._rowReadObject=!0),f.oFeatures.bSort||(P.bSortable=!1,ct.addClass(Z.sSortableNone)),f=-1!==i.inArray("asc",P.asSorting),q=-1!==i.inArray("desc",P.asSorting),P.bSortable&&(f||q)?f&&!q?(P.sSortingClass=Z.sSortableAsc,P.sSortingClassJUI=Z.sSortJUIAscAllowed):!f&&q?(P.sSortingClass=Z.sSortableDesc,P.sSortingClassJUI=Z.sSortJUIDescAllowed):(P.sSortingClass=Z.sSortable,P.sSortingClassJUI=Z.sSortJUI):(P.sSortingClass=Z.sSortableNone,P.sSortingClassJUI="")}function N(f){if(!1!==f.oFeatures.bAutoWidth){var P=f.aoColumns;ut(f);for(var q=0,Z=P.length;q<Z;q++)P[q].nTh.style.width=P[q].sWidth}""===(P=f.oScroll).sY&&""===P.sX||U(f),si(f,null,"column-sizing",[f])}function I(f,P){var q=A(f,"bVisible");return"number"==typeof q[P]?q[P]:null}function x(f,P){var q=A(f,"bVisible");return-1!==(q=i.inArray(P,q))?q:null}function S(f){var P=0;return i.each(f.aoColumns,function(q,Z){Z.bVisible&&"none"!==i(Z.nTh).css("display")&&P++}),P}function A(f,P){var q=[];return i.map(f.aoColumns,function(Z,ct){Z[P]&&q.push(ct)}),q}function O(f){var P,q,Z,ct,rt,bt,ht,Nt,Yt,oe=f.aoColumns,ve=f.aoData,Pe=We.ext.type.detect;for(P=0,q=oe.length;P<q;P++)if(Yt=[],!(ht=oe[P]).sType&&ht._sManualType)ht.sType=ht._sManualType;else if(!ht.sType){for(Z=0,ct=Pe.length;Z<ct;Z++){for(rt=0,bt=ve.length;rt<bt&&(Yt[rt]===F&&(Yt[rt]=tt(f,rt,P,"type")),(Nt=Pe[Z](Yt[rt],f))||Z===Pe.length-1)&&"html"!==Nt;rt++);if(Nt){ht.sType=Nt;break}}ht.sType||(ht.sType="string")}}function H(f,P,q,Z){var ct,rt,bt,ht,Nt,Yt,oe=f.aoColumns;if(P)for(ct=P.length-1;0<=ct;ct--){var ve=(Yt=P[ct]).targets!==F?Yt.targets:Yt.aTargets;for(i.isArray(ve)||(ve=[ve]),rt=0,bt=ve.length;rt<bt;rt++)if("number"==typeof ve[rt]&&0<=ve[rt]){for(;oe.length<=ve[rt];)R(f);Z(ve[rt],Yt)}else if("number"==typeof ve[rt]&&ve[rt]<0)Z(oe.length+ve[rt],Yt);else if("string"==typeof ve[rt])for(ht=0,Nt=oe.length;ht<Nt;ht++)"_all"!=ve[rt]&&!i(oe[ht].nTh).hasClass(ve[rt])||Z(ht,Yt)}if(q)for(ct=0,f=q.length;ct<f;ct++)Z(ct,q[ct])}function z(f,P,q,Z){var ct=f.aoData.length,rt=i.extend(!0,{},We.models.oRow,{src:q?"dom":"data",idx:ct});rt._aData=P,f.aoData.push(rt);for(var bt=f.aoColumns,ht=0,Nt=bt.length;ht<Nt;ht++)bt[ht].sType=null;return f.aiDisplayMaster.push(ct),(P=f.rowIdFn(P))!==F&&(f.aIds[P]=rt),!q&&f.oFeatures.bDeferRender||he(f,ct,q,Z),ct}function v(f,P){var q;return P instanceof i||(P=i(P)),P.map(function(Z,ct){return q=ye(f,ct),z(f,q.data,ct,q.cells)})}function tt(f,P,q,Z){var ct=f.iDraw,rt=f.aoColumns[q],bt=f.aoData[P]._aData,ht=rt.sDefaultContent,Nt=rt.fnGetData(bt,Z,{settings:f,row:P,col:q});if(Nt===F)return f.iDrawError!=ct&&null===ht&&(yi(f,0,"Requested unknown parameter "+("function"==typeof rt.mData?"{function}":"'"+rt.mData+"'")+" for row "+P+", column "+q,4),f.iDrawError=ct),ht;if(Nt!==bt&&null!==Nt||null===ht||Z===F){if("function"==typeof Nt)return Nt.call(bt)}else Nt=ht;return null===Nt&&"display"==Z?"":Nt}function ft(f,P,q,Z){f.aoColumns[q].fnSetData(f.aoData[P]._aData,Z,{settings:f,row:P,col:q})}function Rt(f){return i.map(f.match(/(\\.|[^\.])+/g)||[""],function(P){return P.replace(/\\\./g,".")})}function lt(f){if(i.isPlainObject(f)){var P={};return i.each(f,function(Z,ct){ct&&(P[Z]=lt(ct))}),function(Z,ct,rt,bt){var ht=P[ct]||P._;return ht!==F?ht(Z,ct,rt,bt):Z}}if(null===f)return function(Z){return Z};if("function"==typeof f)return function(Z,ct,rt,bt){return f(Z,ct,rt,bt)};if("string"!=typeof f||-1===f.indexOf(".")&&-1===f.indexOf("[")&&-1===f.indexOf("("))return function(Z){return Z[f]};var q=function(Z,ct,rt){var bt,ht;if(""!==rt)for(var Nt=0,Yt=(ht=Rt(rt)).length;Nt<Yt;Nt++){if(rt=ht[Nt].match(Zn),bt=ht[Nt].match(hn),rt){if(ht[Nt]=ht[Nt].replace(Zn,""),""!==ht[Nt]&&(Z=Z[ht[Nt]]),bt=[],ht.splice(0,Nt+1),ht=ht.join("."),i.isArray(Z))for(Nt=0,Yt=Z.length;Nt<Yt;Nt++)bt.push(q(Z[Nt],ct,ht));Z=""===(Z=rt[0].substring(1,rt[0].length-1))?bt:bt.join(Z);break}if(bt)ht[Nt]=ht[Nt].replace(hn,""),Z=Z[ht[Nt]]();else{if(null===Z||Z[ht[Nt]]===F)return F;Z=Z[ht[Nt]]}}return Z};return function(Z,ct){return q(Z,ct,f)}}function at(f){if(i.isPlainObject(f))return at(f._);if(null===f)return function(){};if("function"==typeof f)return function(q,Z,ct){f(q,"set",Z,ct)};if("string"!=typeof f||-1===f.indexOf(".")&&-1===f.indexOf("[")&&-1===f.indexOf("("))return function(q,Z){q[f]=Z};var P=function(q,Z,ct){var rt;rt=(ct=Rt(ct))[ct.length-1];for(var bt,ht,Nt=0,Yt=ct.length-1;Nt<Yt;Nt++){if(bt=ct[Nt].match(Zn),ht=ct[Nt].match(hn),bt){if(ct[Nt]=ct[Nt].replace(Zn,""),q[ct[Nt]]=[],(rt=ct.slice()).splice(0,Nt+1),bt=rt.join("."),i.isArray(Z))for(ht=0,Yt=Z.length;ht<Yt;ht++)P(rt={},Z[ht],bt),q[ct[Nt]].push(rt);else q[ct[Nt]]=Z;return}ht&&(ct[Nt]=ct[Nt].replace(hn,""),q=q[ct[Nt]](Z)),null!==q[ct[Nt]]&&q[ct[Nt]]!==F||(q[ct[Nt]]={}),q=q[ct[Nt]]}rt.match(hn)?q[rt.replace(hn,"")](Z):q[rt.replace(Zn,"")]=Z};return function(q,Z){return P(q,Z,f)}}function mt(f){return Ai(f.aoData,"_aData")}function wt(f){f.aoData.length=0,f.aiDisplayMaster.length=0,f.aiDisplay.length=0,f.aIds={}}function qt(f,P,q){for(var Z=-1,ct=0,rt=f.length;ct<rt;ct++)f[ct]==P?Z=ct:f[ct]>P&&f[ct]--;-1!=Z&&q===F&&f.splice(Z,1)}function ae(f,P,q,Z){var ct,rt=f.aoData[P],bt=function(Nt,Yt){for(;Nt.childNodes.length;)Nt.removeChild(Nt.firstChild);Nt.innerHTML=tt(f,P,Yt,"display")};if("dom"!==q&&(q&&"auto"!==q||"dom"!==rt.src)){var ht=rt.anCells;if(ht)if(Z!==F)bt(ht[Z],Z);else for(q=0,ct=ht.length;q<ct;q++)bt(ht[q],q)}else rt._aData=ye(f,rt,Z,Z===F?F:rt._aData).data;if(rt._aSortData=null,rt._aFilterData=null,bt=f.aoColumns,Z!==F)bt[Z].sType=null;
1else{for(q=0,ct=bt.length;q<ct;q++)bt[q].sType=null;Te(f,rt)}}function ye(f,P,q,Z){function ct(mi,Oe){if("string"==typeof mi){var Ri=mi.indexOf("@");-1!==Ri&&(Ri=mi.substring(Ri+1),at(mi)(Z,Oe.getAttribute(Ri)))}}function rt(mi){q!==F&&q!==ve||(ht=Pe[ve],Nt=i.trim(mi.innerHTML),ht&&ht._bAttrSrc?(at(ht.mData._)(Z,Nt),ct(ht.mData.sort,mi),ct(ht.mData.type,mi),ct(ht.mData.filter,mi)):li?(ht._setter||(ht._setter=at(ht.mData)),ht._setter(Z,Nt)):Z[ve]=Nt),ve++}var bt,ht,Nt,Yt=[],oe=P.firstChild,ve=0,Pe=f.aoColumns,li=f._rowReadObject;if(Z=Z!==F?Z:li?{}:[],oe)for(;oe;)"TD"!=(bt=oe.nodeName.toUpperCase())&&"TH"!=bt||(rt(oe),Yt.push(oe)),oe=oe.nextSibling;else for(oe=0,bt=(Yt=P.anCells).length;oe<bt;oe++)rt(Yt[oe]);return(P=P.firstChild?P:P.nTr)&&(P=P.getAttribute("id"))&&at(f.rowId)(Z,P),{data:Z,cells:Yt}}function he(f,P,q,Z){var ct,rt,bt,ht,Nt,Yt=f.aoData[P],oe=Yt._aData,ve=[];if(null===Yt.nTr){for(ct=q||K.createElement("tr"),Yt.nTr=ct,Yt.anCells=ve,ct._DT_RowIndex=P,Te(f,Yt),ht=0,Nt=f.aoColumns.length;ht<Nt;ht++)bt=f.aoColumns[ht],(rt=q?Z[ht]:K.createElement(bt.sCellType))._DT_CellIndex={row:P,column:ht},ve.push(rt),q&&!bt.mRender&&bt.mData===ht||i.isPlainObject(bt.mData)&&bt.mData._===ht+".display"||(rt.innerHTML=tt(f,P,ht,"display")),bt.sClass&&(rt.className+=" "+bt.sClass),bt.bVisible&&!q?ct.appendChild(rt):!bt.bVisible&&q&&rt.parentNode.removeChild(rt),bt.fnCreatedCell&&bt.fnCreatedCell.call(f.oInstance,rt,tt(f,P,ht),oe,P,ht);si(f,"aoRowCreatedCallback",null,[ct,oe,P,ve])}Yt.nTr.setAttribute("role","row")}function Te(f,P){var q=P.nTr,Z=P._aData;if(q){var ct=f.rowIdFn(Z);ct&&(q.id=ct),Z.DT_RowClass&&(ct=Z.DT_RowClass.split(" "),P.__rowc=P.__rowc?ln(P.__rowc.concat(ct)):ct,i(q).removeClass(P.__rowc.join(" ")).addClass(Z.DT_RowClass)),Z.DT_RowAttr&&i(q).attr(Z.DT_RowAttr),Z.DT_RowData&&i(q).data(Z.DT_RowData)}}function Ne(f){var P,q,Z,ct,rt,bt=f.nTHead,ht=f.nTFoot,Nt=0===i("th, td",bt).length,Yt=f.oClasses,oe=f.aoColumns;for(Nt&&(ct=i("<tr/>").appendTo(bt)),P=0,q=oe.length;P<q;P++)Z=i((rt=oe[P]).nTh).addClass(rt.sClass),Nt&&Z.appendTo(ct),f.oFeatures.bSort&&(Z.addClass(rt.sSortingClass),!1!==rt.bSortable&&(Z.attr("tabindex",f.iTabIndex).attr("aria-controls",f.sTableId),Se(f,rt.nTh,P))),rt.sTitle!=Z[0].innerHTML&&Z.html(rt.sTitle),an(f,"header")(f,Z,rt,Yt);if(Nt&&it(f.aoHeader,bt),i(bt).find(">tr").attr("role","row"),i(bt).find(">tr>th, >tr>td").addClass(Yt.sHeaderTH),i(ht).find(">tr>th, >tr>td").addClass(Yt.sFooterTH),null!==ht)for(P=0,q=(f=f.aoFooter[0]).length;P<q;P++)(rt=oe[P]).nTf=f[P].cell,rt.sClass&&i(rt.nTf).addClass(rt.sClass)}function Ot(f,P,q){var Z,ct,rt,bt,ht=[],Nt=[],Yt=f.aoColumns.length;if(P){for(q===F&&(q=!1),Z=0,ct=P.length;Z<ct;Z++){for(ht[Z]=P[Z].slice(),ht[Z].nTr=P[Z].nTr,rt=Yt-1;0<=rt;rt--)f.aoColumns[rt].bVisible||q||ht[Z].splice(rt,1);Nt.push([])}for(Z=0,ct=ht.length;Z<ct;Z++){if(f=ht[Z].nTr)for(;rt=f.firstChild;)f.removeChild(rt);for(rt=0,P=ht[Z].length;rt<P;rt++)if(bt=Yt=1,Nt[Z][rt]===F){for(f.appendChild(ht[Z][rt].cell),Nt[Z][rt]=1;ht[Z+Yt]!==F&&ht[Z][rt].cell==ht[Z+Yt][rt].cell;)Nt[Z+Yt][rt]=1,Yt++;for(;ht[Z][rt+bt]!==F&&ht[Z][rt].cell==ht[Z][rt+bt].cell;){for(q=0;q<Yt;q++)Nt[Z+q][rt+bt]=1;bt++}i(ht[Z][rt].cell).attr("rowspan",Yt).attr("colspan",bt)}}}}function w(f){var P=si(f,"aoPreDrawCallback","preDraw",[f]);if(-1!==i.inArray(!1,P))g(f,!1);else{P=[];var q=0,Z=f.asStripeClasses,ct=Z.length,rt=f.oLanguage,bt=f.iInitDisplayStart,ht="ssp"==Ci(f),Nt=f.aiDisplay;f.bDrawing=!0,bt!==F&&-1!==bt&&(f._iDisplayStart=ht?bt:bt>=f.fnRecordsDisplay()?0:bt,f.iInitDisplayStart=-1),bt=f._iDisplayStart;var Yt=f.fnDisplayEnd();if(f.bDeferLoading)f.bDeferLoading=!1,f.iDraw++,g(f,!1);else if(ht){if(!f.bDestroying&&!Lt(f))return}else f.iDraw++;if(0!==Nt.length)for(rt=ht?f.aoData.length:Yt,ht=ht?0:bt;ht<rt;ht++){var oe=Nt[ht],ve=f.aoData[oe];null===ve.nTr&&he(f,oe);var Pe=ve.nTr;if(0!==ct){var li=Z[q%ct];ve._sRowStripe!=li&&(i(Pe).removeClass(ve._sRowStripe).addClass(li),ve._sRowStripe=li)}si(f,"aoRowCallback",null,[Pe,ve._aData,q,ht,oe]),P.push(Pe),q++}else q=rt.sZeroRecords,1==f.iDraw&&"ajax"==Ci(f)?q=rt.sLoadingRecords:rt.sEmptyTable&&0===f.fnRecordsTotal()&&(q=rt.sEmptyTable),P[0]=i("<tr/>",{class:ct?Z[0]:""}).append(i("<td />
1",{valign:"top",colSpan:S(f),class:f.oClasses.sRowEmpty}).html(q))[0];si(f,"aoHeaderCallback","header",[i(f.nTHead).children("tr")[0],mt(f),bt,Yt,Nt]),si(f,"aoFooterCallback","footer",[i(f.nTFoot).children("tr")[0],mt(f),bt,Yt,Nt]),(Z=i(f.nTBody)).children().detach(),Z.append(i(P)),si(f,"aoDrawCallback","draw",[f]),f.bSorted=!1,f.bFiltered=!1,f.bDrawing=!1}}function Y(f,P){var q=f.oFeatures,Z=q.bFilter;q.bSort&&Kt(f),Z?Ht(f,f.oPreviousSearch):f.aiDisplay=f.aiDisplayMaster.slice(),!0!==P&&(f._iDisplayStart=0),f._drawHold=P,w(f),f._drawHold=!1}function V(f){var P=f.oClasses,q=i(f.nTable),Z=(q=i("<div/>").insertBefore(q),f.oFeatures),ct=i("<div/>",{id:f.sTableId+"_wrapper",class:P.sWrapper+(f.nTFoot?"":" "+P.sNoFooter)});f.nHolding=q[0],f.nTableWrapper=ct[0],f.nTableReinsertBefore=f.nTable.nextSibling;for(var rt,bt,ht,Nt,Yt,oe,ve=f.sDom.split(""),Pe=0;Pe<ve.length;Pe++){if(rt=null,"<"==(bt=ve[Pe])){if(ht=i("<div/>")[0],"'"==(Nt=ve[Pe+1])||'"'==Nt){for(Yt="",oe=2;ve[Pe+oe]!=Nt;)Yt+=ve[Pe+oe],oe++;"H"==Yt?Yt=P.sJUIHeader:"F"==Yt&&(Yt=P.sJUIFooter),-1!=Yt.indexOf(".")?(Nt=Yt.split("."),ht.id=Nt[0].substr(1,Nt[0].length-1),ht.className=Nt[1]):"#"==Yt.charAt(0)?ht.id=Yt.substr(1,Yt.length-1):ht.className=Yt,Pe+=oe}ct.append(ht),ct=i(ht)}else if(">"==bt)ct=ct.parent();else if("l"==bt&&Z.bPaginate&&Z.bLengthChange)rt=Le(f);else if("f"==bt&&Z.bFilter)rt=dt(f);else if("r"==bt&&Z.bProcessing)rt=d(f);else if("t"==bt)rt=C(f);else if("i"==bt&&Z.bInfo)rt=$t(f);else if("p"==bt&&Z.bPaginate)rt=e(f);else if(0!==We.ext.feature.length)for(oe=0,Nt=(ht=We.ext.feature).length;oe<Nt;oe++)if(bt==ht[oe].cFeature){rt=ht[oe].fnInit(f);break}rt&&((ht=f.aanFeatures)[bt]||(ht[bt]=[]),ht[bt].push(rt),ct.append(rt))}q.replaceWith(ct),f.nHolding=null}function it(f,P){var q,Z,ct,rt,bt,ht,Nt,Yt,oe,ve,Pe=i(P).children("tr");for(f.splice(0,f.length),ct=0,ht=Pe.length;ct<ht;ct++)f.push([]);for(ct=0,ht=Pe.length;ct<ht;ct++)for(Z=(q=Pe[ct]).firstChild;Z;){if("TD"==Z.nodeName.toUpperCase()||"TH"==Z.nodeName.toUpperCase()){for(Yt=(Yt=1*Z.getAttribute("colspan"))&&0!==Yt&&1!==Yt?Yt:1,oe=(oe=1*Z.getAttribute("rowspan"))&&0!==oe&&1!==oe?oe:1,rt=0,bt=f[ct];bt[rt];)rt++;for(Nt=rt,ve=1===Yt,bt=0;bt<Yt;bt++)for(rt=0;rt<oe;rt++)f[ct+rt][Nt+bt]={cell:Z,unique:ve},f[ct+rt].nTr=q}Z=Z.nextSibling}}function yt(f,P,q){var Z=[];q||(q=f.aoHeader,P&&it(q=[],P)),P=0;for(var ct=q.length;P<ct;P++)for(var rt=0,bt=q[P].length;rt<bt;rt++)!q[P][rt].unique||Z[rt]&&f.bSortCellsTop||(Z[rt]=q[P][rt].cell);return Z}function It(f,P,q){if(si(f,"aoServerParams","serverParams",[P]),P&&i.isArray(P)){var Z={},ct=/(.*?)\[\]$/;i.each(P,function(oe,ve){var Pe=ve.name.match(ct);Pe?(Z[Pe=Pe[0]]||(Z[Pe]=[]),Z[Pe].push(ve.value)):Z[ve.name]=ve.value}),P=Z}function rt(oe){si(f,null,"xhr",[f,oe,f.jqXHR]),q(oe)}var bt,ht=f.ajax,Nt=f.oInstance;if(i.isPlainObject(ht)&&ht.data){var Yt="function"==typeof(bt=ht.data)?bt(P,f):bt;P="function"==typeof bt&&Yt?Yt:i.extend(!0,P,Yt),delete ht.data}Yt={data:P,success:function(oe){var ve=oe.error||oe.sError;ve&&yi(f,0,ve),f.json=oe,rt(oe)},dataType:"json",cache:!1,type:f.sServerMethod,error:function(oe,ve){var Pe=si(f,null,"xhr",[f,null,f.jqXHR]);-1===i.inArray(!0,Pe)&&("parsererror"==ve?yi(f,0,"Invalid JSON response",1):4===oe.readyState&&yi(f,0,"Ajax error",7)),g(f,!1)}},f.oAjaxData=P,si(f,null,"preXhr",[f,P]),f.fnServerData?f.fnServerData.call(Nt,f.sAjaxSource,i.map(P,function(oe,ve){return{name:ve,value:oe}}),rt,f):f.sAjaxSource||"string"==typeof ht?f.jqXHR=i.ajax(i.extend(Yt,{url:ht||f.sAjaxSource})):"function"==typeof ht?f.jqXHR=ht.call(Nt,P,rt,f):(f.jqXHR=i.ajax(i.extend(Yt,ht)),ht.data=bt)}function Lt(f){return!f.bAjaxDataGet||(f.iDraw++,g(f,!0),It(f,Ut(f),function(P){de(f,P)}),!1)}function Ut(f){var P,q,Z,ct,rt=f.aoColumns,bt=rt.length,ht=f.oFeatures,Nt=f.oPreviousSearch,Yt=f.aoPreSearchCols,oe=[],ve=Ft(f);function Pe(mi,Oe){oe.push({name:mi,value:Oe})}P=f._iDisplayStart,q=!1!==ht.bPaginate?f._iDisplayLength:-1,Pe("sEcho",f.iDraw),Pe("iColumns",bt),Pe("sColumns",Ai(rt,"sName").join(",")),Pe("iDisplayStart",P),Pe("iDisplayLength",q);var li={draw:f.iDraw,columns:[],order:[],start:P,length:q,search:{value:Nt.sSearch,regex:Nt.bRegex}};for(P=0;P<bt;P++)li.columns.push({data:q="function"==typeof(Z=rt[P]).mData?"function":Z.mData,name:Z.sName,searchable:Z.bSearchable,orderable:Z.bSortable,search:{value:(ct=Yt[P]).sSearch,regex:ct.bRegex}}),Pe("mDataProp_"+P,q),ht.bFilter&&(Pe("sSearch_"+P,ct.sSearch),Pe("bRegex_"+P,ct.bRegex),Pe("bSearchable_"+P,Z.bSearchable)),ht.bSort&&Pe("bSortable_"+P,Z.bSortable);return ht.bFilter&&(Pe("sSearch",Nt.sSearch),Pe("bRegex",Nt.bRegex)),ht.bSort&&(i.each(ve,function(mi,Oe){li.order.push({column:Oe.col,dir:Oe.dir}),Pe("iSortCol_"+mi,Oe.col),Pe("sSortDir_"+mi,Oe.dir)}),Pe("iSortingCols",ve.length)),null===(rt=We.ext.legacy.ajax)?f.sAjaxSource?oe:li:rt?oe:li}function de(f,P){var q=be(f,P),Z=P.sEcho!==F?P.sEcho:P.draw,ct=P.iTotalRecords!==F?P.iTotalRecords:P.recordsTotal,rt=P.iTotalDisplayRecords!==F?P.iTotalDisplayRecords:P.recordsFiltered;if(Z){if(1*Z<f.iDraw)return;f.iDraw=1*Z}for(wt(f),f._iRecordsTotal=parseInt(ct,10),f._iRecordsDisplay=parseInt(rt,10),Z=0,ct=q.length;Z<ct;Z++)z(f,q[Z]);f.aiDisplay=f.aiDisplayMaster.slice(),f.bAjaxDataGet=!1,w(f),f._bInitComplete||ue(f,P),f.bAjaxDataGet=!0,g(f,!1)}function be(f,P){var q=i.isPlainObject(f.ajax)&&f.ajax.dataSrc!==F?f.ajax.dataSrc:f.sAjaxDataProp;return"data"===q?P.aaData||P[q]:""!==q?lt(q)(P):P}
1function dt(f){var P=f.oClasses,q=f.sTableId,Z=f.oLanguage,ct=f.oPreviousSearch,rt=f.aanFeatures,bt='<input type="search" class="'+P.sFilterInput+'"/>',ht=(ht=Z.sSearch).match(/_INPUT_/)?ht.replace("_INPUT_",bt):ht+bt,Nt=(P=i("<div/>",{id:rt.f?null:q+"_filter",class:P.sFilter}).append(i("<label/>").append(ht)),rt=function(){var Yt=this.value?this.value:"";Yt!=ct.sSearch&&(Ht(f,{sSearch:Yt,bRegex:ct.bRegex,bSmart:ct.bSmart,bCaseInsensitive:ct.bCaseInsensitive}),f._iDisplayStart=0,w(f))},bt=null!==f.searchDelay?f.searchDelay:"ssp"===Ci(f)?400:0,i("input",P).val(ct.sSearch).attr("placeholder",Z.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",bt?ds(rt,bt):rt).on("keypress.DT",function(Yt){if(13==Yt.keyCode)return!1}).attr("aria-controls",q));return i(f.nTable).on("search.dt.DT",function(Yt,oe){if(f===oe)try{Nt[0]!==K.activeElement&&Nt.val(ct.sSearch)}catch(ve){}}),P[0]}function Ht(f,P,q){function Z(bt){ct.sSearch=bt.sSearch,ct.bRegex=bt.bRegex,ct.bSmart=bt.bSmart,ct.bCaseInsensitive=bt.bCaseInsensitive}var ct=f.oPreviousSearch,rt=f.aoPreSearchCols;if(O(f),"ssp"!=Ci(f)){for(zt(f,P.sSearch,q,P.bEscapeRegex!==F?!P.bEscapeRegex:P.bRegex,P.bSmart,P.bCaseInsensitive),Z(P),P=0;P<rt.length;P++)ge(f,rt[P].sSearch,P,rt[P].bEscapeRegex!==F?!rt[P].bEscapeRegex:rt[P].bRegex,rt[P].bSmart,rt[P].bCaseInsensitive);Gt(f)}else Z(P);f.bFiltered=!0,si(f,null,"search",[f])}function Gt(f){for(var P,q,Z=We.ext.search,ct=f.aiDisplay,rt=0,bt=Z.length;rt<bt;rt++){for(var ht=[],Nt=0,Yt=ct.length;Nt<Yt;Nt++)Z[rt](f,(P=f.aoData[q=ct[Nt]])._aFilterData,q,P._aData,Nt)&&ht.push(q);ct.length=0,i.merge(ct,ht)}}function ge(f,P,q,Z,ct,rt){if(""!==P){var bt=[],ht=f.aiDisplay;for(Z=Ee(P,Z,ct,rt),ct=0;ct<ht.length;ct++)Z.test(P=f.aoData[ht[ct]]._aFilterData[q])&&bt.push(ht[ct]);f.aiDisplay=bt}}function zt(f,P,q,Z,ct,rt){Z=Ee(P,Z,ct,rt),rt=f.oPreviousSearch.sSearch;var bt,ht=f.aiDisplayMaster;if(ct=[],0!==We.ext.search.length&&(q=!0),bt=ze(f),P.length<=0)f.aiDisplay=ht.slice();else{for((bt||q||rt.length>P.length||0!==P.indexOf(rt)||f.bSorted)&&(f.aiDisplay=ht.slice()),P=f.aiDisplay,q=0;q<P.length;q++)Z.test(f.aoData[P[q]]._sFilterRow)&&ct.push(P[q]);f.aiDisplay=ct}}function Ee(f,P,q,Z){return f=P?f:Mn(f),q&&(f="^(?=.*?"+i.map(f.match(/"[^"]+"|[^ ]+/g)||[""],function(ct){if('"'===ct.charAt(0)){var rt=ct.match(/^"(.*)"$/);ct=rt?rt[1]:ct}return ct.replace('"',"")}).join(")(?=.*?")+").*$"),RegExp(f,Z?"i":"")}function ze(f){var P,q,Z,ct,rt,bt,ht,Nt,Yt=f.aoColumns,oe=We.ext.type.search;for(P=!1,q=0,ct=f.aoData.length;q<ct;q++)if(!(Nt=f.aoData[q])._aFilterData){for(bt=[],Z=0,rt=Yt.length;Z<rt;Z++)(P=Yt[Z]).bSearchable?(ht=tt(f,q,Z,"filter"),oe[P.sType]&&(ht=oe[P.sType](ht)),null===ht&&(ht=""),"string"!=typeof ht&&ht.toString&&(ht=ht.toString())):ht="",ht.indexOf&&-1!==ht.indexOf("&")&&(ls.innerHTML=ht,ht=ms?ls.textContent:ls.innerText),ht.replace&&(ht=ht.replace(/[\r\n]/g,"")),bt.push(ht);Nt._aFilterData=bt,Nt._sFilterRow=bt.join(" "),P=!0}return P}function Xe(f){return{search:f.sSearch,smart:f.bSmart,regex:f.bRegex,caseInsensitive:f.bCaseInsensitive}}function Tt(f){return{sSearch:f.search,bSmart:f.smart,bRegex:f.regex,bCaseInsensitive:f.caseInsensitive}}function $t(f){var P=f.sTableId,q=f.aanFeatures.i,Z=i("<div/>",{class:f.oClasses.sInfo,id:q?null:P+"_info"});return q||(f.aoDrawCallback.push({fn:ee,sName:"information"}),Z.attr("role","status").attr("aria-live","polite"),i(f.nTable).attr("aria-describedby",P+"_info")),Z[0]}function ee(f){var P=f.aanFeatures.i;if(0!==P.length){var q=f.oLanguage,Z=f._iDisplayStart+1,ct=f.fnDisplayEnd(),rt=f.fnRecordsTotal(),bt=f.fnRecordsDisplay(),ht=bt?q.sInfo:q.sInfoEmpty;bt!==rt&&(ht+=" "+q.sInfoFiltered),ht=ne(f,ht+=q.sInfoPostFix),null!==(q=q.fnInfoCallback)&&(ht=q.call(f.oInstance,f,Z,ct,rt,bt,ht)),i(P).html(ht)}}function ne(f,P){var q=f.fnFormatNumber,Z=f._iDisplayStart+1,ct=f._iDisplayLength,rt=f.fnRecordsDisplay(),bt=-1===ct;return P.replace(/_START_/g,q.call(f,Z)).replace(/_END_/g,q.call(f,f.fnDisplayEnd())).replace(/_MAX_/g,q.call(f,f.fnRecordsTotal())).replace(/_TOTAL_/g,q.call(f,rt)).replace(/_PAGE_/g,q.call(f,bt?1:Math.ceil(Z/ct))).replace(/_PAGES_/g,q.call(f,bt?1:Math.ceil(rt/ct)))}function xe(f){var P,q,Z,ct=f.iInitDisplayStart,rt=f.aoColumns;q=f.oFeatures;var bt=f.bDeferLoading;if(f.bInitialised){for(V(f),Ne(f),Ot(f,f.aoHeader),Ot(f,f.aoFooter),g(f,!0),q.bAutoWidth&&ut(f),P=0,q=rt.length;P<q;P++)(Z=rt[P]).sWidth&&(Z.nTh.style.width=xt(Z.sWidth));
1si(f,null,"preInit",[f]),Y(f),"ssp"==(rt=Ci(f))&&!bt||("ajax"==rt?It(f,[],function(ht){var Nt=be(f,ht);for(P=0;P<Nt.length;P++)z(f,Nt[P]);f.iInitDisplayStart=ct,Y(f),g(f,!1),ue(f,ht)}):(g(f,!1),ue(f)))}else setTimeout(function(){xe(f)},200)}function ue(f,P){f._bInitComplete=!0,(P||f.oInit.aaData)&&N(f),si(f,null,"plugin-init",[f,P]),si(f,"aoInitComplete","init",[f,P])}function fe(f,P){var q=parseInt(P,10);f._iDisplayLength=q,$i(f),si(f,null,"length",[f,q])}function Le(f){for(var P=f.oClasses,q=f.sTableId,Z=f.aLengthMenu,ct=(rt=i.isArray(Z[0]))?Z[0]:Z,rt=(Z=rt?Z[1]:Z,i("<select/>",{name:q+"_length","aria-controls":q,class:P.sLengthSelect})),bt=0,ht=ct.length;bt<ht;bt++)rt[0][bt]=new Option("number"==typeof Z[bt]?f.fnFormatNumber(Z[bt]):Z[bt],ct[bt]);var Nt=i("<div><label/></div>").addClass(P.sLength);return f.aanFeatures.l||(Nt[0].id=q+"_length"),Nt.children().append(f.oLanguage.sLengthMenu.replace("_MENU_",rt[0].outerHTML)),i("select",Nt).val(f._iDisplayLength).on("change.DT",function(){fe(f,i(this).val()),w(f)}),i(f.nTable).on("length.dt.DT",function(Yt,oe,ve){f===oe&&i("select",Nt).val(ve)}),Nt[0]}function e(f){function P(bt){w(bt)}var q=f.sPaginationType,Z=We.ext.pager[q],ct="function"==typeof Z,rt=(q=i("<div/>").addClass(f.oClasses.sPaging+q)[0],f.aanFeatures);return ct||Z.fnInit(f,q,P),rt.p||(q.id=f.sTableId+"_paginate",f.aoDrawCallback.push({fn:function(bt){if(ct){var ht,Nt=bt._iDisplayStart,Yt=bt._iDisplayLength,oe=bt.fnRecordsDisplay(),ve=(Nt=(ve=-1===Yt)?0:Math.ceil(Nt/Yt),Yt=ve?1:Math.ceil(oe/Yt),oe=Z(Nt,Yt),0);for(ht=rt.p.length;ve<ht;ve++)an(bt,"pageButton")(bt,rt.p[ve],ve,oe,Nt,Yt)}else Z.fnUpdate(bt,P)},sName:"pagination"})),q}function s(f,P,q){var Z=f._iDisplayStart,ct=f._iDisplayLength,rt=f.fnRecordsDisplay();return 0===rt||-1===ct?Z=0:"number"==typeof P?rt<(Z=P*ct)&&(Z=0):"first"==P?Z=0:"previous"==P?(Z=0<=ct?Z-ct:0)<0&&(Z=0):"next"==P?Z+ct<rt&&(Z+=ct):"last"==P?Z=Math.floor((rt-1)/ct)*ct:yi(f,0,"Unknown paging action: "+P,5),P=f._iDisplayStart!==Z,f._iDisplayStart=Z,P&&(si(f,null,"page",[f]),q&&w(f)),P}function d(f){return i("<div/>",{id:f.aanFeatures.r?null:f.sTableId+"_processing",class:f.oClasses.sProcessing}).html(f.oLanguage.sProcessing).insertBefore(f.nTable)[0]}function g(f,P){f.oFeatures.bProcessing&&i(f.aanFeatures.r).css("display",P?"block":"none"),si(f,null,"processing",[f,P])}function C(f){(oe=i(f.nTable)).attr("role","grid");var P=f.oScroll;if(""===P.sX&&""===P.sY)return f.nTable;var q=P.sX,Z=P.sY,ct=f.oClasses,rt=oe.children("caption"),bt=rt.length?rt[0]._captionSide:null,ht=i(oe[0].cloneNode(!1)),Nt=i(oe[0].cloneNode(!1)),Yt=oe.children("tfoot");Yt.length||(Yt=null),ht=i("<div/>",{class:ct.sScrollWrapper}).append(i("<div/>",{class:ct.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:q?q?xt(q):null:"100%"}).append(i("<div/>",{class:ct.sScrollHeadInner}).css({"box-sizing":"content-box",width:P.sXInner||"100%"}).append(ht.removeAttr("id").css("margin-left",0).append("top"===bt?rt:null).append(oe.children("thead"))))).append(i("<div/>",{class:ct.sScrollBody}).css({position:"relative",overflow:"auto",width:q?xt(q):null}).append(oe)),Yt&&ht.append(i("<div/>",{class:ct.sScrollFoot}).css({overflow:"hidden",border:0,width:q?q?xt(q):null:"100%"}).append(i("<div/>",{class:ct.sScrollFootInner}).append(Nt.removeAttr("id").css("margin-left",0).append("bottom"===bt?rt:null).append(oe.children("tfoot")))));var oe,ve=(oe=ht.children())[0],Pe=(ct=oe[1],Yt?oe[2]:null);return q&&i(ct).on("scroll.DT",function(){var li=this.scrollLeft;ve.scrollLeft=li,Yt&&(Pe.scrollLeft=li)}),i(ct).css(Z&&P.bCollapse?"max-height":"height",Z),f.nScrollHead=ve,f.nScrollBody=ct,f.nScrollFoot=Pe,f.aoDrawCallback.push({fn:U,sName:"scrolling"}),ht[0]}function U(f){function P(J){(J=J.style).paddingTop="0",J.paddingBottom="0",J.borderTopWidth="0",J.borderBottomWidth="0",J.height=0}var q,Z,ct,rt,bt,ht=(oe=f.oScroll).sX,Nt=oe.sXInner,Yt=oe.sY,oe=oe.iBarWidth,ve=i(f.nScrollHead),Pe=ve[0].style,li=(Oe=ve.children("div"))[0].style,mi=Oe.children("table"),Oe=f.nScrollBody,Ri=i(Oe),nn=Oe.style,un=i(f.nScrollFoot).children("div"),Fn=un.children("table"),dn=i(f.nTHead),Li=i(f.nTable),zi=Li[0],Cn=zi.style,_n=f.nTFoot?i(f.nTFoot):null,Nn=f.oBrowser,tn=Nn.bScrollOversize,Dn=Ai(f.aoColumns,"nTh"),ts=[],On=[],y=[],B=[];f.scrollBarVis!==(Z=Oe.scrollHeight>Oe.clientHeight)&&f.scrollBarVis!==F?(f.scrollBarVis=Z,N(f)):(f.scrollBarVis=Z,Li.children("thead, tfoot").remove(),_n&&(ct=_n.clone().prependTo(Li),q=_n.find("tr"),ct=ct.find("tr")),rt=dn.clone().prependTo(Li),dn=dn.find("tr"),Z=rt.find("tr"),rt.find("th, td").removeAttr("tabindex"),ht||(nn.width="100%",ve[0].style.width="100%"),i.each(yt(f,rt),function(J,Q){bt=I(f,J),Q.style.width=f.aoColumns[bt].sWidth}),_n&&nt(function(J){J.style.width=""},ct),ve=Li.outerWidth(),""===ht?(Cn.width="100%",tn&&(Li.find("tbody").height()>Oe.offsetHeight||"scroll"==Ri.css("overflow-y"))&&(Cn.width=xt(Li.outerWidth()-oe)),ve=Li.outerWidth()):""!==Nt&&(Cn.width=xt(Nt),ve=Li.outerWidth()),nt(P,Z),nt(function(J){
1y.push(J.innerHTML),ts.push(xt(i(J).css("width")))},Z),nt(function(J,Q){-1!==i.inArray(J,Dn)&&(J.style.width=ts[Q])},dn),i(Z).height(0),_n&&(nt(P,ct),nt(function(J){B.push(J.innerHTML),On.push(xt(i(J).css("width")))},ct),nt(function(J,Q){J.style.width=On[Q]},q),i(ct).height(0)),nt(function(J,Q){J.innerHTML='<div class="dataTables_sizing">'+y[Q]+"</div>",J.childNodes[0].style.height="0",J.childNodes[0].style.overflow="hidden",J.style.width=ts[Q]},Z),_n&&nt(function(J,Q){J.innerHTML='<div class="dataTables_sizing">'+B[Q]+"</div>",J.childNodes[0].style.height="0",J.childNodes[0].style.overflow="hidden",J.style.width=On[Q]},ct),Li.outerWidth()<ve?(q=Oe.scrollHeight>Oe.offsetHeight||"scroll"==Ri.css("overflow-y")?ve+oe:ve,tn&&(Oe.scrollHeight>Oe.offsetHeight||"scroll"==Ri.css("overflow-y"))&&(Cn.width=xt(q-oe)),""!==ht&&""===Nt||yi(f,1,"Possible column misalignment",6)):q="100%",nn.width=xt(q),Pe.width=xt(q),_n&&(f.nScrollFoot.style.width=xt(q)),!Yt&&tn&&(nn.height=xt(zi.offsetHeight+oe)),ht=Li.outerWidth(),mi[0].style.width=xt(ht),li.width=xt(ht),Nt=Li.height()>Oe.clientHeight||"scroll"==Ri.css("overflow-y"),li[Yt="padding"+(Nn.bScrollbarLeft?"Left":"Right")]=Nt?oe+"px":"0px",_n&&(Fn[0].style.width=xt(ht),un[0].style.width=xt(ht),un[0].style[Yt]=Nt?oe+"px":"0px"),Li.children("colgroup").insertBefore(Li.children("thead")),Ri.scroll(),!f.bSorted&&!f.bFiltered||f._drawHold||(Oe.scrollTop=0))}function nt(f,P,q){for(var Z,ct,rt=0,bt=0,ht=P.length;bt<ht;){for(Z=P[bt].firstChild,ct=q?q[bt].firstChild:null;Z;
1)1===Z.nodeType&&(q?f(Z,ct,rt):f(Z,rt),rt++),Z=Z.nextSibling,ct=q?ct.nextSibling:null;bt++}}function ut(f){var P,q,Z=f.nTable,ct=f.aoColumns,rt=(Oe=f.oScroll).sY,bt=Oe.sX,ht=Oe.sXInner,Nt=ct.length,Yt=A(f,"bVisible"),oe=i("th",f.nTHead),ve=Z.getAttribute("width"),Pe=Z.parentNode,li=!1,mi=f.oBrowser,Oe=mi.bScrollOversize;for((P=Z.style.width)&&-1!==P.indexOf("%")&&(ve=P),P=0;P<Yt.length;P++)null!==(q=ct[Yt[P]]).sWidth&&(q.sWidth=vt(q.sWidthOrig,Pe),li=!0);if(Oe||!li&&!bt&&!rt&&Nt==S(f)&&Nt==oe.length)for(P=0;P<Nt;P++)null!==(Yt=I(f,P))&&(ct[Yt].sWidth=xt(oe.eq(P).width()));else{(Nt=i(Z).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var Ri=i("<tr/>").appendTo(Nt.find("tbody"));for(Nt.find("thead, tfoot").remove(),Nt.append(i(f.nTHead).clone()).append(i(f.nTFoot).clone()),Nt.find("tfoot th, tfoot td").css("width",""),oe=yt(f,Nt.find("thead")[0]),P=0;P<Yt.length;P++)oe[P].style.width=null!==(q=ct[Yt[P]]).sWidthOrig&&""!==q.sWidthOrig?xt(q.sWidthOrig):"",q.sWidthOrig&&bt&&i(oe[P]).append(i("<div/>").css({width:q.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(f.aoData.length)for(P=0;P<Yt.length;P++)q=ct[li=Yt[P]],i(Wt(f,li)).clone(!1).append(q.sContentPadding).appendTo(Ri);for(i("[name]",Nt).removeAttr("name"),q=i("<div/>").css(bt||rt?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(Nt).appendTo(Pe),bt&&ht?Nt.width(ht):bt?(Nt.css("width","auto"),Nt.removeAttr("width"),Nt.width()<Pe.clientWidth&&ve&&Nt.width(Pe.clientWidth)):rt?Nt.width(Pe.clientWidth):ve&&Nt.width(ve),P=rt=0;P<Yt.length;P++)ht=(Pe=i(oe[P])).outerWidth()-Pe.width(),rt+=Pe=mi.bBounding?Math.ceil(oe[P].getBoundingClientRect().width):Pe.outerWidth(),ct[Yt[P]].sWidth=xt(Pe-ht);Z.style.width=xt(rt),q.remove()}ve&&(Z.style.width=xt(ve)),!ve&&!bt||f._reszEvt||(Z=function(){i(D).on("resize.DT-"+f.sInstance,ds(function(){N(f)}))},Oe?setTimeout(Z,1e3):Z(),f._reszEvt=!0)}function vt(f,P){if(!f)return 0;var q=i("<div/>").css("width",xt(f)).appendTo(P||K.body),Z=q[0].offsetWidth;return q.remove(),Z}function Wt(f,P){var q=Bt(f,P);if(q<0)return null;var Z=f.aoData[q];return Z.nTr?Z.anCells[P]:i("<td/>").html(tt(f,q,P,"display"))[0]}function Bt(f,P){for(var q,Z=-1,ct=-1,rt=0,bt=f.aoData.length;rt<bt;rt++)(q=(q=(q=tt(f,rt,P,"display")+"").replace(Ss,"")).replace(/ /g," ")).length>Z&&(Z=q.length,ct=rt);return ct}function xt(f){return null===f?"0px":"number"==typeof f?f<0?"0px":f+"px":f.match(/\d$/)?f+"px":f}function Ft(f){var P,q,Z,ct,rt,bt,ht=[],Nt=f.aoColumns;q=i.isPlainObject(P=f.aaSortingFixed);var Yt=[];for(Z=function(oe){oe.length&&!i.isArray(oe[0])?Yt.push(oe):i.merge(Yt,oe)},i.isArray(P)&&Z(P),q&&P.pre&&Z(P.pre),Z(f.aaSorting),q&&P.post&&Z(P.post),f=0;f<Yt.length;f++)for(P=0,q=(Z=Nt[bt=Yt[f][0]].aDataSort).length;P<q;P++)rt=Nt[ct=Z[P]].sType||"string",Yt[f]._idx===F&&(Yt[f]._idx=i.inArray(Yt[f][1],Nt[ct].asSorting)),ht.push({src:bt,col:ct,dir:Yt[f][1],index:Yt[f]._idx,type:rt,formatter:We.ext.type.order[rt+"-pre"]});return ht}function Kt(f){var P,q,Z,ct,rt=[],bt=We.ext.type.order,ht=f.aoData,Nt=0,Yt=f.aiDisplayMaster;for(O(f),P=0,q=(ct=Ft(f)).length;P<q;P++)(Z=ct[P]).formatter&&Nt++,Je(f,Z.col);if("ssp"!=Ci(f)&&0!==ct.length){for(P=0,q=Yt.length;P<q;P++)rt[Yt[P]]=P;Yt.sort(Nt===ct.length?function(oe,ve){var Pe,li,mi,Oe,Ri=ct.length,nn=ht[oe]._aSortData,un=ht[ve]._aSortData;for(mi=0;mi<Ri;mi++)if(0!=(Pe=(Pe=nn[(Oe=ct[mi]).col])<(li=un[Oe.col])?-1:li<Pe?1:0))return"asc"===Oe.dir?Pe:-Pe;return(Pe=rt[oe])<(li=rt[ve])?-1:li<Pe?1:0}:function(oe,ve){var Pe,li,mi,Oe,Ri=ct.length,nn=ht[oe]._aSortData,un=ht[ve]._aSortData;for(mi=0;mi<Ri;mi++)if(Pe=nn[(Oe=ct[mi]).col],li=un[Oe.col],0!==(Pe=(Oe=bt[Oe.type+"-"+Oe.dir]||bt["string-"+Oe.dir])(Pe,li)))return Pe;return(Pe=rt[oe])<(li=rt[ve])?-1:li<Pe?1:0})}f.bSorted=!0}function ce(f){for(var P,q,Z=f.aoColumns,ct=Ft(f),rt=(f=f.oLanguage.oAria,0),bt=Z.length;rt<bt;rt++){var ht=(q=Z[rt]).asSorting;P=q.sTitle.replace(/<.*?>/g,"");var Nt=q.nTh;Nt.removeAttribute("aria-sort"),q.bSortable&&(P+="asc"===(q=0<ct.length&&ct[0].col==rt?(Nt.setAttribute("aria-sort","asc"==ct[0].dir?"ascending":"descending"),ht[ct[0].index+1]||ht[0]):ht[0])?f.sSortAscending:f.sSortDescending),Nt.setAttribute("aria-label",P)}}function we(f,P,q,Z){function ct(ht,Nt){var Yt=ht._idx;return Yt===F&&(Yt=i.inArray(ht[1],bt)),Yt+1<bt.length?Yt+1:Nt?null:0}var rt=f.aaSorting,bt=f.aoColumns[P].asSorting;"number"==typeof rt[0]&&(rt=f.aaSorting=[rt]),q&&f.oFeatures.bSortMulti?-1!==(q=i.inArray(P,Ai(rt,"0")))?(null===(P=ct(rt[q],!0))&&1===rt.length&&(P=0),null===P?rt.splice(q,1):(rt[q][1]=bt[P],rt[q]._idx=P)):(rt.push([P,bt[0],0]),rt[rt.length-1]._idx=0):rt.length&&rt[0][0]==P?(P=ct(rt[0]),rt.length=1,rt[0][1]=bt[P],rt[0]._idx=P):(rt.length=0,rt.push([P,bt[0]]),rt[0]._idx=0),Y(f),"function"==typeof Z&&Z(f)}function Se(f,P,q,Z){var ct=f.aoColumns[q];rn(P,{},function(rt){!1!==ct.bSortable&&(f.oFeatures.bProcessing?(g(f,!0),setTimeout(function(){we(f,q,rt.shiftKey,Z),"ssp"!==Ci(f)&&g(f,!1)},0)):we(f,q,rt.shiftKey,Z))})}
1function Ye(f){var P,Z=f.aLastSort,ct=f.oClasses.sSortColumn,rt=Ft(f),bt=f.oFeatures;if(bt.bSort&&bt.bSortClasses){for(bt=0,P=Z.length;bt<P;bt++)i(Ai(f.aoData,"anCells",Z[bt].src)).removeClass(ct+(bt<2?bt+1:3));for(bt=0,P=rt.length;bt<P;bt++)i(Ai(f.aoData,"anCells",rt[bt].src)).addClass(ct+(bt<2?bt+1:3))}f.aLastSort=rt}function Je(f,P){var q,Z=f.aoColumns[P],ct=We.ext.order[Z.sSortDataType];ct&&(q=ct.call(f.oInstance,f,P,x(f,P)));for(var rt,bt=We.ext.type.order[Z.sType+"-pre"],ht=0,Nt=f.aoData.length;ht<Nt;ht++)(Z=f.aoData[ht])._aSortData||(Z._aSortData=[]),Z._aSortData[P]&&!ct||(rt=ct?q[ht]:tt(f,ht,P,"sort"),Z._aSortData[P]=bt?bt(rt):rt)}function ni(f){if(f.oFeatures.bStateSave&&!f.bDestroying){var P={time:+new Date,start:f._iDisplayStart,length:f._iDisplayLength,order:i.extend(!0,[],f.aaSorting),search:Xe(f.oPreviousSearch),columns:i.map(f.aoColumns,function(q,Z){return{visible:q.bVisible,search:Xe(f.aoPreSearchCols[Z])}})};si(f,"aoStateSaveParams","stateSaveParams",[f,P]),f.oSavedState=P,f.fnStateSaveCallback.call(f.oInstance,f,P)}}function ci(f,P,q){var Z,ct,rt=f.aoColumns;if(P=function(ht){if(ht&&ht.time){var Nt=si(f,"aoStateLoadParams","stateLoadParams",[f,ht]);if(-1===i.inArray(!1,Nt)&&!(0<(Nt=f.iStateDuration)&&ht.time<+new Date-1e3*Nt||ht.columns&&rt.length!==ht.columns.length)){if(f.oLoadedState=i.extend(!0,{},ht),ht.start!==F&&(f._iDisplayStart=ht.start,f.iInitDisplayStart=ht.start),ht.length!==F&&(f._iDisplayLength=ht.length),ht.order!==F&&(f.aaSorting=[],i.each(ht.order,function(Yt,oe){f.aaSorting.push(oe[0]>=rt.length?[0,oe[1]]:oe)})),ht.search!==F&&i.extend(f.oPreviousSearch,Tt(ht.search)),ht.columns)for(Z=0,ct=ht.columns.length;Z<ct;Z++)(Nt=ht.columns[Z]).visible!==F&&(rt[Z].bVisible=Nt.visible),Nt.search!==F&&i.extend(f.aoPreSearchCols[Z],Tt(Nt.search));si(f,"aoStateLoaded","stateLoaded",[f,ht])}}q()},f.oFeatures.bStateSave){var bt=f.fnStateLoadCallback.call(f.oInstance,f,P);bt!==F&&P(bt)}else q()}function ri(f){var P=We.settings;return-1!==(f=i.inArray(f,Ai(P,"nTable")))?P[f]:null}function yi(f,P,q,Z){if(q="DataTables warning: "+(f?"table id="+f.sTableId+" - ":"")+q,Z&&(q+=". For more information about this error, please see http://datatables.net/tn/"+Z),P)D.console&&console.log&&console.log(q);else if(P=(P=We.ext).sErrMode||P.errMode,f&&si(f,null,"error",[f,Z,q]),"alert"==P)alert(q);else{if("throw"==P)throw Error(q);"function"==typeof P&&P(f,Z,q)}}function Ii(f,P,q,Z){i.isArray(q)?i.each(q,function(ct,rt){i.isArray(rt)?Ii(f,P,rt[0],rt[1]):Ii(f,P,rt)}):(Z===F&&(Z=q),P[q]!==F&&(f[Z]=P[q]))}function Ti(f,P,q){var Z,ct;for(ct in P)P.hasOwnProperty(ct)&&(i.isPlainObject(Z=P[ct])?(i.isPlainObject(f[ct])||(f[ct]={}),i.extend(!0,f[ct],Z)):f[ct]=q&&"data"!==ct&&"aaData"!==ct&&i.isArray(Z)?Z.slice():Z);return f}function rn(f,P,q){i(f).on("click.DT",P,function(Z){i(f).blur(),q(Z)}).on("keypress.DT",P,function(Z){13===Z.which&&(Z.preventDefault(),q(Z))}).on("selectstart.DT",function(){return!1})}function Ei(f,P,q,Z){q&&f[P].push({fn:q,sName:Z})}function si(f,P,q,Z){var ct=[];return P&&(ct=i.map(f[P].slice().reverse(),function(rt){return rt.fn.apply(f.oInstance,Z)})),null!==q&&(P=i.Event(q+".dt"),i(f.nTable).trigger(P,Z),ct.push(P.result)),ct}function $i(f){var P=f._iDisplayStart,q=f.fnDisplayEnd(),Z=f._iDisplayLength;q<=P&&(P=q-Z),P-=P%Z,(-1===Z||P<0)&&(P=0),f._iDisplayStart=P}function an(f,P){var q=f.renderer,Z=We.ext.renderer[P];return i.isPlainObject(q)&&q[P]?Z[q[P]]||Z._:"string"==typeof q&&Z[q]||Z._}function Ci(f){return f.oFeatures.bServerSide?"ssp":f.ajax||f.sAjaxSource?"ajax":"dom"}function fn(f,P){var q=[],Z=(q=hs.numbers_length,Math.floor(q/2));return P<=q?q=Rn(0,P):f<=Z?((q=Rn(0,q-2)).push("ellipsis"),q.push(P-1)):(P-1-Z<=f?q=Rn(P-(q-2),P):((q=Rn(f-Z+2,f+Z-1)).push("ellipsis"),q.push(P-1)),q.splice(0,0,"ellipsis"),q.splice(0,0,0)),q.DT_el="span",q}function yn(f){i.each({num:function(P){return fs(P,f)},"num-fmt":function(P){return fs(P,f,En)},"html-num":function(P){return fs(P,f,Zi)},"html-num-fmt":function(P){return fs(P,f,Zi,En)}},function(P,q){Fi.type.order[P+f+"-pre"]=q,P.match(/^html\-/)&&(Fi.type.search[P+f]=Fi.type.search.html)})}function bn(f){return function(){var P=[ri(this[We.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return We.ext.internal[f].apply(this,P)}}function Pi(f){return!f||!0===f||"-"===f}function Ln(f){var P=parseInt(f,10);return!isNaN(P)&&isFinite(f)?P:null}function Sn(f,P){return us[P]||(us[P]=RegExp(Mn(P),"g")),"string"==typeof f&&"."!==P?f.replace(/\./g,"").replace(us[P],"."):f}function mn(f,P,q){var Z="string"==typeof f;return!!Pi(f)||(P&&Z&&(f=Sn(f,P)),q&&Z&&(f=f.replace(En,"")),!isNaN(parseFloat(f))&&isFinite(f))}function Xi(f,P,q){return!!Pi(f)||(Pi(f)||"string"==typeof f)&&!!mn(f.replace(Zi,""),P,q)||null}function Qi(f,P,q,Z){var ct=[],rt=0,bt=P.length;if(Z!==F)for(;rt<bt;rt++)f[P[rt]][q]&&ct.push(f[P[rt]][q][Z]);else for(;rt<bt;rt++)ct.push(f[P[rt]][q]);return ct}function Rn(f,P){var q,Z=[];P===F?(P=0,q=f):(q=P,P=f);for(var ct=P;ct<q;ct++)Z.push(ct);return Z}function Un(f){for(var P=[],q=0,Z=f.length;q<Z;
1q++)f[q]&&P.push(f[q]);return P}var Fi,Di,ai,Wi,We=function(f){this.$=function(rt,bt){return this.api(!0).$(rt,bt)},this._=function(rt,bt){return this.api(!0).rows(rt,bt).data()},this.api=function(rt){return new Di(rt?ri(this[Fi.iApiIndex]):this)},this.fnAddData=function(rt,bt){var ht=this.api(!0),Nt=i.isArray(rt)&&(i.isArray(rt[0])||i.isPlainObject(rt[0]))?ht.rows.add(rt):ht.row.add(rt);return bt!==F&&!bt||ht.draw(),Nt.flatten().toArray()},this.fnAdjustColumnSizing=function(rt){var bt=this.api(!0).columns.adjust(),ht=bt.settings()[0],Nt=ht.oScroll;rt===F||rt?bt.draw(!1):""===Nt.sX&&""===Nt.sY||U(ht)},this.fnClearTable=function(rt){var bt=this.api(!0).clear();rt!==F&&!rt||bt.draw()},this.fnClose=function(rt){this.api(!0).row(rt).child.hide()},this.fnDeleteRow=function(rt,bt,ht){var Nt=this.api(!0),Yt=(rt=Nt.rows(rt)).settings()[0],oe=Yt.aoData[rt[0][0]];return rt.remove(),bt&&bt.call(this,Yt,oe),ht!==F&&!ht||Nt.draw(),oe},this.fnDestroy=function(rt){this.api(!0).destroy(rt)},this.fnDraw=function(rt){this.api(!0).draw(rt)},this.fnFilter=function(rt,bt,ht,Nt,Yt,oe){Yt=this.api(!0),null===bt||bt===F?Yt.search(rt,ht,Nt,oe):Yt.column(bt).search(rt,ht,Nt,oe),Yt.draw()},this.fnGetData=function(rt,bt){var ht=this.api(!0);if(rt===F)return ht.data().toArray();var Nt=rt.nodeName?rt.nodeName.toLowerCase():"";return bt!==F||"td"==Nt||"th"==Nt?ht.cell(rt,bt).data():ht.row(rt).data()||null},this.fnGetNodes=function(rt){var bt=this.api(!0);return rt!==F?bt.row(rt).node():bt.rows().nodes().flatten().toArray()},this.fnGetPosition=function(rt){var bt=this.api(!0),ht=rt.nodeName.toUpperCase();return"TR"==ht?bt.row(rt).index():"TD"==ht||"TH"==ht?[(rt=bt.cell(rt).index()).row,rt.columnVisible,rt.column]:null},this.fnIsOpen=function(rt){return this.api(!0).row(rt).child.isShown()},this.fnOpen=function(rt,bt,ht){return this.api(!0).row(rt).child(bt,ht).show().child()[0]},this.fnPageChange=function(rt,bt){var ht=this.api(!0).page(rt);bt!==F&&!bt||ht.draw(!1)},this.fnSetColumnVis=function(rt,bt,ht){rt=this.api(!0).column(rt).visible(bt),ht!==F&&!ht||rt.columns.adjust().draw()},this.fnSettings=function(){return ri(this[Fi.iApiIndex])},this.fnSort=function(rt){this.api(!0).order(rt).draw()},this.fnSortListener=function(rt,bt,ht){this.api(!0).order.listener(rt,bt,ht)},this.fnUpdate=function(rt,bt,ht,Nt,Yt){var oe=this.api(!0);return ht===F||null===ht?oe.row(bt).data(rt):oe.cell(bt,ht).data(rt),Yt!==F&&!Yt||oe.columns.adjust(),Nt!==F&&!Nt||oe.draw(),0},this.fnVersionCheck=Fi.fnVersionCheck;var P=this,q=f===F,Z=this.length;for(var ct in q&&(f={}),this.oApi=this.internal=Fi.internal,We.ext.internal)ct&&(this[ct]=bn(ct));return this.each(function(){var rt,bt={},ht=1<Z?Ti(bt,f,!0):f,Nt=0,Yt=(bt=this.getAttribute("id"),!1),oe=We.defaults,ve=i(this);if("table"!=this.nodeName.toLowerCase())yi(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{u(oe),b(oe.column),r(oe,oe,!0),r(oe.column,oe.column,!0),r(oe,i.extend(ht,ve.data()));var Pe=We.settings;for(Nt=0,rt=Pe.length;Nt<rt;Nt++){var li=Pe[Nt];if(li.nTable==this||li.nTHead&&li.nTHead.parentNode==this||li.nTFoot&&li.nTFoot.parentNode==this){if(q||(ht.bRetrieve!==F?ht.bRetrieve:oe.bRetrieve))return li.oInstance;if(ht.bDestroy!==F?ht.bDestroy:oe.bDestroy){li.oInstance.fnDestroy();break}return void yi(li,0,"Cannot reinitialise DataTable",3)}if(li.sTableId==this.id){Pe.splice(Nt,1);break}}null!==bt&&""!==bt||(this.id=bt="DataTables_Table_"+We.ext._unique++);var Oe=i.extend(!0,{},We.models.oSettings,{sDestroyWidth:ve[0].style.width,sInstance:bt,sTableId:bt});Oe.nTable=this,Oe.oApi=P.internal,Oe.oInit=ht,Pe.push(Oe),Oe.oInstance=1===P.length?P:ve.dataTable(),u(ht),a(ht.oLanguage),ht.aLengthMenu&&!ht.iDisplayLength&&(ht.iDisplayLength=i.isArray(ht.aLengthMenu[0])?ht.aLengthMenu[0][0]:ht.aLengthMenu[0]),ht=Ti(i.extend(!0,{},oe),ht),Ii(Oe.oFeatures,ht,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),Ii(Oe,ht,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Ii(Oe.oScroll,ht,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollC
1ollapse","bCollapse"]]),Ii(Oe.oLanguage,ht,"fnInfoCallback"),Ei(Oe,"aoDrawCallback",ht.fnDrawCallback,"user"),Ei(Oe,"aoServerParams",ht.fnServerParams,"user"),Ei(Oe,"aoStateSaveParams",ht.fnStateSaveParams,"user"),Ei(Oe,"aoStateLoadParams",ht.fnStateLoadParams,"user"),Ei(Oe,"aoStateLoaded",ht.fnStateLoaded,"user"),Ei(Oe,"aoRowCallback",ht.fnRowCallback,"user"),Ei(Oe,"aoRowCreatedCallback",ht.fnCreatedRow,"user"),Ei(Oe,"aoHeaderCallback",ht.fnHeaderCallback,"user"),Ei(Oe,"aoFooterCallback",ht.fnFooterCallback,"user"),Ei(Oe,"aoInitComplete",ht.fnInitComplete,"user"),Ei(Oe,"aoPreDrawCallback",ht.fnPreDrawCallback,"user"),Oe.rowIdFn=lt(ht.rowId),L(Oe);var Ri=Oe.oClasses;i.extend(Ri,We.ext.classes,ht.oClasses),ve.addClass(Ri.sTable),Oe.iInitDisplayStart===F&&(Oe.iInitDisplayStart=ht.iDisplayStart,Oe._iDisplayStart=ht.iDisplayStart),null!==ht.iDeferLoading&&(Oe.bDeferLoading=!0,bt=i.isArray(ht.iDeferLoading),Oe._iRecordsDisplay=bt?ht.iDeferLoading[0]:ht.iDeferLoading,Oe._iRecordsTotal=bt?ht.iDeferLoading[1]:ht.iDeferLoading);var nn=Oe.oLanguage;i.extend(!0,nn,ht.oLanguage),nn.sUrl&&(i.ajax({dataType:"json",url:nn.sUrl,success:function(Li){a(Li),r(oe.oLanguage,Li),i.extend(!0,nn,Li),xe(Oe)},error:function(){xe(Oe)}}),Yt=!0),null===ht.asStripeClasses&&(Oe.asStripeClasses=[Ri.sStripeOdd,Ri.sStripeEven]),bt=Oe.asStripeClasses;var un=ve.children("tbody").find("tr").eq(0);if(-1!==i.inArray(!0,i.map(bt,function(Li){return un.hasClass(Li)}))&&(i("tbody tr",this).removeClass(bt.join(" ")),Oe.asDestroyStripes=bt.slice()),bt=[],0!==(Pe=this.getElementsByTagName("thead")).length&&(it(Oe.aoHeader,Pe[0]),bt=yt(Oe)),null===ht.aoColumns)for(Pe=[],Nt=0,rt=bt.length;Nt<rt;Nt++)Pe.push(null);else Pe=ht.aoColumns;for(Nt=0,rt=Pe.length;Nt<rt;Nt++)R(Oe,bt?bt[Nt]:null);if(H(Oe,ht.aoColumnDefs,Pe,function(Li,zi){k(Oe,Li,zi)}),un.length){let Li=function(zi,Cn){return null!==zi.getAttribute("data-"+Cn)?Cn:null};i(un[0]).children("th, td").each(function(zi,Cn){var _n=Oe.aoColumns[zi];if(_n.mData===zi){var Nn=Li(Cn,"sort")||Li(Cn,"order"),tn=Li(Cn,"filter")||Li(Cn,"search");null===Nn&&null===tn||(_n.mData={_:zi+".display",sort:null!==Nn?zi+".@data-"+Nn:F,type:null!==Nn?zi+".@data-"+Nn:F,filter:null!==tn?zi+".@data-"+tn:F},k(Oe,zi))}})}var Fn=Oe.oFeatures;bt=function(){if(ht.aaSorting===F){var Li=Oe.aaSorting;for(Nt=0,rt=Li.length;Nt<rt;Nt++)Li[Nt][1]=Oe.aoColumns[Nt].asSorting[0]}Ye(Oe),Fn.bSort&&Ei(Oe,"aoDrawCallback",function(){if(Oe.bSorted){var Cn=Ft(Oe),_n={};i.each(Cn,function(Nn,tn){_n[tn.src]=tn.dir}),si(Oe,null,"order",[Oe,Cn,_n]),ce(Oe)}}),Ei(Oe,"aoDrawCallback",function(){(Oe.bSorted||"ssp"===Ci(Oe)||Fn.bDeferRender)&&Ye(Oe)},"sc"),Li=ve.children("caption").each(function(){this._captionSide=i(this).css("caption-side")});var zi=ve.children("thead");if(0===zi.length&&(zi=i("<thead/>").appendTo(ve)),Oe.nTHead=zi[0],0===(zi=ve.children("tbody")).length&&(zi=i("<tbody/>").appendTo(ve)),Oe.nTBody=zi[0],0===(zi=ve.children("tfoot")).length&&0<Li.length&&(""!==Oe.oScroll.sX||""!==Oe.oScroll.sY)&&(zi=i("<tfoot/>").appendTo(ve)),0===zi.length||0===zi.children().length?ve.addClass(Ri.sNoFooter):0<zi.length&&(Oe.nTFoot=zi[0],it(Oe.aoFooter,Oe.nTFoot)),ht.aaData)for(Nt=0;Nt<ht.aaData.length;Nt++)z(Oe,ht.aaData[Nt]);else!Oe.bDeferLoading&&"dom"!=Ci(Oe)||v(Oe,i(Oe.nTBody).children("tr"));Oe.aiDisplay=Oe.aiDisplayMaster.slice(),!(Oe.bInitialised=!0)===Yt&&xe(Oe)},ht.bStateSave?(Fn.bStateSave=!0,Ei(Oe,"aoDrawCallback",ni,"state_save"),ci(Oe,ht,bt)):bt()}}),P=null,this},us={},$n=/[\r\n]/g,Zi=/<.*?>/g,di=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Gn=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),En=/[',$\xa3\u20ac\xa5%\u2009\u202F\u20BD\u20a9\u20BArfk\u0243\u039e]/gi,Ai=function(f,P,q){var Z=[],ct=0,rt=f.length;if(q!==F)for(;ct<rt;ct++)f[ct]&&f[ct][P]&&Z.push(f[ct][P][q]);else for(;ct<rt;ct++)f[ct]&&Z.push(f[ct][P]);return Z},ln=function(f){var P;t:{if(!(f.length<2))for(var q=(P=f.slice().sort())[0],Z=1,ct=P.length;Z<ct;Z++){if(P[Z]===q){P=!1;break t}q=P[Z]}P=!0}if(P)return f.slice();P=[],ct=f.length;var rt,bt=0;Z=0;t:for(;Z<ct;Z++){for(q=f[Z],rt=0;rt<bt;rt++)if(P[rt]===q)continue t;P.push(q),bt++}return P};
1We.util={throttle:function(f,P){var q,Z,ct=P!==F?P:200;return function(){var rt=this,bt=+new Date,ht=arguments;q&&bt<q+ct?(clearTimeout(Z),Z=setTimeout(function(){q=F,f.apply(rt,ht)},ct)):(q=bt,f.apply(rt,ht))}},escapeRegex:function(f){return f.replace(Gn,"\\$1")}};var en=function(f,P,q){f[P]!==F&&(f[q]=f[P])},Zn=/\[.*?\]$/,hn=/\(\)$/,Mn=We.util.escapeRegex,ls=i("<div>")[0],ms=ls.textContent!==F,Ss=/<.*?>/g,ds=We.util.throttle,ss=[],wn=Array.prototype;function ps(f,P,q){if(q){var Z=new Di(f);Z.one("draw",function(){q(Z.ajax.json())})}if("ssp"==Ci(f))Y(f,P);else{g(f,!0);var ct=f.jqXHR;ct&&4!==ct.readyState&&ct.abort(),It(f,[],function(rt){wt(f);for(var bt=0,ht=(rt=be(f,rt)).length;bt<ht;bt++)z(f,rt[bt]);Y(f,P),g(f,!1)})}}function vs(f,P,q,Z,ct){var rt,bt,ht,Nt,Yt,oe,ve=[];for(ht=typeof P,P&&"string"!==ht&&"function"!==ht&&P.length!==F||(P=[P]),ht=0,Nt=P.length;ht<Nt;ht++)for(Yt=0,oe=(bt=P[ht]&&P[ht].split&&!P[ht].match(/[\[\(:]/)?P[ht].split(","):[P[ht]]).length;Yt<oe;Yt++)(rt=q("string"==typeof bt[Yt]?i.trim(bt[Yt]):bt[Yt]))&&rt.length&&(ve=ve.concat(rt));if((f=Fi.selector[f]).length)for(ht=0,Nt=f.length;ht<Nt;ht++)ve=f[ht](Z,ct,ve);return ln(ve)}function Jn(f){return(f=f||{}).filter&&f.search===F&&(f.search=f.filter),i.extend({search:"none",order:"current",page:"all"},f)}function In(f){for(var P=0,q=f.length;P<q;P++)if(0<f[P].length)return f[0]=f[P],f[0].length=1,f.length=1,f.context=[f.context[P]],f;return f.length=0,f}We.Api=Di=function(f,P){if(!(this instanceof Di))return new Di(f,P);function q(bt){var ht,Nt,Yt,oe,ve;ht=bt,ve=i.map(oe=We.settings,function(Pe){return Pe.nTable}),(bt=ht?ht.nTable&&ht.oApi?[ht]:ht.nodeName&&"table"===ht.nodeName.toLowerCase()?-1!==(Nt=i.inArray(ht,ve))?[oe[Nt]]:null:ht&&"function"==typeof ht.settings?ht.settings().toArray():("string"==typeof ht?Yt=i(ht):ht instanceof i&&(Yt=ht),Yt?Yt.map(function(){return-1!==(Nt=i.inArray(this,ve))?oe[Nt]:null}).toArray():void 0):[])&&(Z=Z.concat(bt))}var Z=[];if(i.isArray(f))for(var ct=0,rt=f.length;ct<rt;ct++)q(f[ct]);else q(f);this.context=ln(Z),P&&i.merge(this,P),this.selector={rows:null,cols:null,opts:null},Di.extend(this,this,ss)},i.extend(Di.prototype,{any:function(){return 0!==this.count()},concat:wn.concat,context:[],count:function(){return this.flatten().length},each:function(f){for(var P=0,q=this.length;P<q;P++)f.call(this,this[P],P,this);return this},eq:function(f){var P=this.context;return P.length>f?new Di(P[f],this[f]):null},filter:function(f){var P=[];if(wn.filter)P=wn.filter.call(this,f,this);else for(var q=0,Z=this.length;q<Z;q++)f.call(this,this[q],q,this)&&P.push(this[q]);return new Di(this.context,P)},flatten:function(){var f=[];return new Di(this.context,f.concat.apply(f,this.toArray()))},join:wn.join,indexOf:wn.indexOf||function(f,P){for(var q=P||0,Z=this.length;q<Z;q++)if(this[q]===f)return q;return-1},iterator:function(f,P,q,Z){var ct,rt,bt,ht,Nt,Yt,oe,ve=[],Pe=this.context,li=this.selector;for("string"==typeof f&&(Z=q,q=P,P=f,f=!1),rt=0,bt=Pe.length;rt<bt;rt++){var mi=new Di(Pe[rt]);if("table"===P)(ct=q.call(mi,Pe[rt],rt))!==F&&ve.push(ct);else if("columns"===P||"rows"===P)(ct=q.call(mi,Pe[rt],this[rt],rt))!==F&&ve.push(ct);else if("column"===P||"column-rows"===P||"row"===P||"cell"===P)for(oe=this[rt],"column-rows"===P&&(Yt=Hn(Pe[rt],li.opts)),ht=0,Nt=oe.length;ht<Nt;ht++)ct=oe[ht],(ct="cell"===P?q.call(mi,Pe[rt],ct.row,ct.column,rt,ht):q.call(mi,Pe[rt],ct,rt,ht,Yt))!==F&&ve.push(ct)}return ve.length||Z?((P=(f=new Di(Pe,f?ve.concat.apply([],ve):ve)).selector).rows=li.rows,P.cols=li.cols,P.opts=li.opts,f):this},lastIndexOf:wn.lastIndexOf||function(f,P){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(f){var P=[];if(wn.map)P=wn.map.call(this,f,this);else for(var q=0,Z=this.length;q<Z;q++)P.push(f.call(this,this[q],q));return new Di(this.context,P)},pluck:function(f){return this.map(function(P){return P[f]})},pop:wn.pop,push:wn.push,reduce:wn.reduce||function(f,P){return W(this,f,P,0,this.length,1)},reduceRight:wn.reduceRight||function(f,P){return W(this,f,P,this.length-1,-1,-1)}
1,reverse:wn.reverse,selector:null,shift:wn.shift,slice:function(){return new Di(this.context,this)},sort:wn.sort,splice:wn.splice,toArray:function(){return wn.slice.call(this)},to$:function(){return i(this)},toJQuery:function(){return i(this)},unique:function(){return new Di(this.context,ln(this))},unshift:wn.unshift}),Di.extend=function(f,P,q){if(q.length&&P&&(P instanceof Di||P.__dt_wrapper)){let ht=function(Nt,Yt,oe){return function(){var ve=Yt.apply(Nt,arguments);return Di.extend(ve,ve,oe.methodExt),ve}};var Z,ct,rt;for(Z=0,ct=q.length;Z<ct;Z++)P[(rt=q[Z]).name]="function"==typeof rt.val?ht(f,rt.val,rt):i.isPlainObject(rt.val)?{}:rt.val,P[rt.name].__dt_wrapper=!0,Di.extend(f,P[rt.name],rt.propExt)}},Di.register=ai=function(f,P){if(i.isArray(f))for(var q=0,Z=f.length;q<Z;q++)Di.register(f[q],P);else{var ct,rt,bt=f.split("."),ht=ss;for(q=0,Z=bt.length;q<Z;q++){var Nt;ct=(rt=-1!==bt[q].indexOf("()"))?bt[q].replace("()",""):bt[q];t:{Nt=0;for(var Yt=ht.length;Nt<Yt;Nt++)if(ht[Nt].name===ct){Nt=ht[Nt];break t}Nt=null}Nt||ht.push(Nt={name:ct,val:{},methodExt:[],propExt:[]}),q===Z-1?Nt.val=P:ht=rt?Nt.methodExt:Nt.propExt}}},Di.registerPlural=Wi=function(f,P,q){Di.register(f,q),Di.register(P,function(){var Z=q.apply(this,arguments);return Z===this?this:Z instanceof Di?Z.length?i.isArray(Z[0])?new Di(Z.context,Z[0]):Z[0]:F:Z})},ai("tables()",function(f){var P;if(f){P=Di;var q=this.context;if("number"==typeof f)f=[q[f]];else{var Z=i.map(q,function(ct){return ct.nTable});f=i(Z).filter(f).map(function(){var ct=i.inArray(this,Z);return q[ct]}).toArray()}P=new P(f)}else P=this;return P}),ai("table()",function(f){var P=(f=this.tables(f)).context;return P.length?new Di(P[0]):f}),Wi("tables().nodes()","table().node()",function(){return this.iterator("table",function(f){return f.nTable},1)}),Wi("tables().body()","table().body()",function(){return this.iterator("table",function(f){return f.nTBody},1)}),Wi("tables().header()","table().header()",function(){return this.iterator("table",function(f){return f.nTHead},1)}),Wi("tables().footer()","table().footer()",function(){return this.iterator("table",function(f){return f.nTFoot},1)}),Wi("tables().containers()","table().container()",function(){return this.iterator("table",function(f){return f.nTableWrapper},1)}),ai("draw()",function(f){return this.iterator("table",function(P){"page"===f?w(P):("string"==typeof f&&(f="full-hold"!==f),Y(P,!1===f))})}),ai("page()",function(f){return f===F?this.page.info().page:this.iterator("table",function(P){s(P,f)})}),ai("page.info()",function(){if(0===this.context.length)return F;var f=this.context[0],P=f._iDisplayStart,q=f.oFeatures.bPaginate?f._iDisplayLength:-1,Z=f.fnRecordsDisplay(),ct=-1===q;return{page:ct?0:Math.floor(P/q),pages:ct?1:Math.ceil(Z/q),start:P,end:f.fnDisplayEnd(),length:q,recordsTotal:f.fnRecordsTotal(),recordsDisplay:Z,serverSide:"ssp"===Ci(f)}}),ai("page.len()",function(f){return f===F?0!==this.context.length?this.context[0]._iDisplayLength:F:this.iterator("table",function(P){fe(P,f)})}),ai("ajax.json()",function(){var f=this.context;if(0<f.length)return f[0].json}),ai("ajax.params()",function(){var f=this.context;if(0<f.length)return f[0].oAjaxData}),ai("ajax.reload()",function(f,P){return this.iterator("table",function(q){ps(q,!1===P,f)})}),ai("ajax.url()",function(f){var P=this.context;return f===F?0===P.length?F:(P=P[0]).ajax?i.isPlainObject(P.ajax)?P.ajax.url:P.ajax:P.sAjaxSource:this.iterator("table",function(q){i.isPlainObject(q.ajax)?q.ajax.url=f:q.ajax=f})}),ai("ajax.url().load()",function(f,P){return this.iterator("table",function(q){ps(q,!1===P,f)})});var Hn=function(f,P){var q,Z,ct,rt=[],bt=f.aiDisplay;ct=f.aiDisplayMaster;var ht=P.search;if(q=P.order,Z=P.page,"ssp"==Ci(f))return"removed"===ht?[]:Rn(0,ct.length);if("current"==Z)for(q=f._iDisplayStart,Z=f.fnDisplayEnd();q<Z;q++)rt.push(bt[q]);else if("current"==q||"applied"==q){if("none"==ht)rt=ct.slice();else if("applied"==ht)rt=bt.slice();else if("removed"==ht){var Nt={};for(q=0,Z=bt.length;q<Z;q++)Nt[bt[q]]=null;rt=i.map(ct,function(Yt){return Nt.hasOwnProperty(Yt)?null:Yt})}}else if("index"==q||"original"==q)for(q=0,Z=f.aoData.length;q<Z;q++)("none"==ht||-1===(ct=i.inArray(q,bt))&&"removed"==ht||0<=ct&&"applied"==ht)&&rt.push(q);return rt};function Vn(f,P){var q=f.context;
1q.length&&(q=q[0].aoData[P!==F?P:f[0]])&&q._details&&(q._details.remove(),q._detailsShow=F,q._details=F)}function xn(f,P){var q=f.context;if(q.length&&f.length){var Z=q[0].aoData[f[0]];if(Z._details){(Z._detailsShow=P)?Z._details.insertAfter(Z.nTr):Z._details.detach();var ct=q[0],rt=new Di(ct),bt=ct.aoData;rt.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<Ai(bt,"_details").length&&(rt.on("draw.dt.DT_details",function(ht,Nt){ct===Nt&&rt.rows({page:"current"}).eq(0).each(function(Yt){(Yt=bt[Yt])._detailsShow&&Yt._details.insertAfter(Yt.nTr)})}),rt.on("column-visibility.dt.DT_details",function(ht,Nt){if(ct===Nt)for(var Yt,oe=S(Nt),ve=0,Pe=bt.length;ve<Pe;ve++)(Yt=bt[ve])._details&&Yt._details.children("td[colspan]").attr("colspan",oe)}),rt.on("destroy.dt.DT_details",function(ht,Nt){if(ct===Nt)for(var Yt=0,oe=bt.length;Yt<oe;Yt++)bt[Yt]._details&&Vn(rt,Yt)}))}}}function Ji(f,P,q,Z,ct){q=[],Z=0;for(var rt=ct.length;Z<rt;Z++)q.push(tt(f,ct[Z],P));return q}ai("rows()",function(f,P){f===F?f="":i.isPlainObject(f)&&(P=f,f=""),P=Jn(P);var q=this.iterator("table",function(Z){var ct,rt=P;return vs("row",f,function(bt){var ht=Ln(bt),Nt=Z.aoData;if(null!==ht&&!rt)return[ht];if(ct=ct||Hn(Z,rt),null!==ht&&-1!==i.inArray(ht,ct))return[ht];if(null===bt||bt===F||""===bt)return ct;if("function"==typeof bt)return i.map(ct,function(oe){var ve=Nt[oe];return bt(oe,ve._aData,ve.nTr)?oe:null});if(bt.nodeName){var Yt=bt._DT_CellIndex;return(ht=bt._DT_RowIndex)!==F?Nt[ht]&&Nt[ht].nTr===bt?[ht]:[]:Yt?Nt[Yt.row]&&Nt[Yt.row].nTr===bt?[Yt.row]:[]:(ht=i(bt).closest("*[data-dt-row]")).length?[ht.data("dt-row")]:[]}return"string"==typeof bt&&"#"===bt.charAt(0)&&(ht=Z.aIds[bt.replace(/^#/,"")])!==F?[ht.idx]:(ht=Un(Qi(Z.aoData,ct,"nTr")),i(ht).filter(bt).map(function(){return this._DT_RowIndex}).toArray())},Z,rt)},1);return q.selector.rows=f,q.selector.opts=P,q}),ai("rows().nodes()",function(){return this.iterator("row",function(f,P){return f.aoData[P].nTr||F},1)}),ai("rows().data()",function(){return this.iterator(!0,"rows",function(f,P){return Qi(f.aoData,P,"_aData")},1)}),Wi("rows().cache()","row().cache()",function(f){return this.iterator("row",function(P,q){var Z=P.aoData[q];return"search"===f?Z._aFilterData:Z._aSortData},1)}),Wi("rows().invalidate()","row().invalidate()",function(f){return this.iterator("row",function(P,q){ae(P,q,f)})}),Wi("rows().indexes()","row().index()",function(){return this.iterator("row",function(f,P){return P},1)}),Wi("rows().ids()","row().id()",function(f){for(var P=[],q=this.context,Z=0,ct=q.length;Z<ct;Z++)for(var rt=0,bt=this[Z].length;rt<bt;rt++){var ht=q[Z].rowIdFn(q[Z].aoData[this[Z][rt]]._aData);P.push((!0===f?"#":"")+ht)}return new Di(q,P)}),Wi("rows().remove()","row().remove()",function(){var f=this;return this.iterator("row",function(P,q,Z){var ct,rt,bt,ht,Nt,Yt=P.aoData,oe=Yt[q];for(Yt.splice(q,1),ct=0,rt=Yt.length;ct<rt;ct++)if(Nt=(bt=Yt[ct]).anCells,null!==bt.nTr&&(bt.nTr._DT_RowIndex=ct),null!==Nt)for(bt=0,ht=Nt.length;bt<ht;bt++)Nt[bt]._DT_CellIndex.row=ct;qt(P.aiDisplayMaster,q),qt(P.aiDisplay,q),qt(f[Z],q,!1),0<P._iRecordsDisplay&&P._iRecordsDisplay--,$i(P),(q=P.rowIdFn(oe._aData))!==F&&delete P.aIds[q]}),this.iterator("table",function(P){for(var q=0,Z=P.aoData.length;q<Z;q++)P.aoData[q].idx=q}),this}),ai("rows.add()",function(f){var P=this.iterator("table",function(Z){var ct,rt,bt,ht=[];for(rt=0,bt=f.length;rt<bt;rt++)(ct=f[rt]).nodeName&&"TR"===ct.nodeName.toUpperCase()?ht.push(v(Z,ct)[0]):ht.push(z(Z,ct));return ht},1),q=this.rows(-1);return q.pop(),i.merge(q,P),q}),ai("row()",function(f,P){return In(this.rows(f,P))}),ai("row().data()",function(f){var P=this.context;if(f===F)return P.length&&this.length?P[0].aoData[this[0]]._aData:F;var q=P[0].aoData[this[0]];return q._aData=f,i.isArray(f)&&q.nTr.id&&at(P[0].rowId)(f,q.nTr.id),ae(P[0],this[0],"data"),this}),ai("row().node()",function(){var f=this.context;return f.length&&this.length&&f[0].aoData[this[0]].nTr||null}),ai("row.add()",function(f){f instanceof i&&f.length&&(f=f[0]);var P=this.iterator("table",function(q){return f.nodeName&&"TR"===f.nodeName.toUpperCase()?v(q,f)[0]:z(q,f)});return this.row(P[0])}),ai("row().child()",function(f,P){var q=this.context;if(f===F)return q.length&&this.length?q[0].aoData[this[0]]._details:F;if(!0===f)this.child.show();else if(!1===f)Vn(this);else if(q.length&&this.length){var Z=q[0],ct=(q=q[0].aoData[this[0]],[]),rt=function(bt,ht){if(i.isArray(bt)||bt instanceof i)for(var Nt=0,Yt=bt.length;Nt<Yt;Nt++)rt(bt[Nt],ht);else bt.nodeName&&"tr"===bt.nodeName.toLowerCase()?ct.push(bt):(Nt=i("<tr><td/></tr>").addClass(ht),i("td",Nt).addClass(ht).html(bt)[0].colSpan=S(Z),ct.push(Nt[0]))};rt(f,P),q._details&&q._details.detach(),q._details=i(ct),q._detailsShow&&q._details.insertAfter(q.nTr)}return this}),ai(["row().child.show()","row().child().show()"],function(){return xn(this,!0),this}),ai(["row().child.hide()","row().child().hide()"],function(){return xn(this,!1),this}),ai(["row().child.remove()","row().child().remove()"],function(){return Vn(this),this}),ai("row().child.isShown()",function(){var f=this.context;return f.length&&this.length&&f[0].aoData[this[0]]._detailsShow||!1});var Xn=/^([^:]+):(name|visIdx|visible)$/;ai("columns()",function(f,P){f===F?f="":i.isPlainObject(f)&&(P=f,f=""),P=Jn(P);var q=this.iterator("table",function(Z){var ct=f,rt=P,bt=Z.aoColumns,ht=Ai(bt,"sName"),Nt=Ai(bt,"nTh");return vs("column",ct,function(Yt){var oe=Ln(Yt);if(""===Yt)return Rn(bt.length);if(null!==oe)return[0<=oe?oe:bt.length+oe];if("function"==typeof Yt){var ve=Hn(Z,rt);return i.map(bt,function(mi,Oe){return Yt(Oe,Ji(Z,Oe,0,0,ve),Nt[Oe])?Oe:null})}var Pe="string"==typeof Yt?Yt.match(Xn):"";if(Pe)switch(Pe[2]){case"visIdx":case"visible":if((oe=parseInt(Pe[1],10))<0){var li=i.map(bt,function(mi,Oe){return mi.bVisible?Oe:null});return[li[li.length+oe]]}return[I(Z,oe)];case"name":return i.map(ht,function(mi,Oe){return mi===Pe[1]?Oe:null});default:return[]}return Yt.nodeName&&Yt._DT_CellIndex?[Yt._DT_CellIndex.column]:(oe=i(Nt).filter(Yt).map(function(){return i.inArray(this,Nt)}).toArray()).length||!Yt.nodeName?oe:(oe=i(Yt).closest("*[data-dt-column]")).length?[oe.data("dt-column")]:[]},Z,rt)},1);return q.selector.cols=f,q.selector.opts=P,q}),Wi("columns().header()","column().header()",function(){return this.iterator("column",function(f,P){return f.aoColumns[P].nTh},1)}),Wi("columns().footer()","column().footer()",function(){return this.iterator("column",function(f,P){return f.aoColumns[P].nTf},1)}),Wi("columns().data()","column().data()",function(){return this.iterator("column-rows",Ji,1
1)}),Wi("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(f,P){return f.aoColumns[P].mData},1)}),Wi("columns().cache()","column().cache()",function(f){return this.iterator("column-rows",function(P,q,Z,ct,rt){return Qi(P.aoData,rt,"search"===f?"_aFilterData":"_aSortData",q)},1)}),Wi("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(f,P,q,Z,ct){return Qi(f.aoData,ct,"anCells",P)},1)}),Wi("columns().visible()","column().visible()",function(f,P){var q=this.iterator("column",function(Z,ct){if(f===F)return Z.aoColumns[ct].bVisible;var rt,bt,ht,Nt=Z.aoColumns,Yt=Nt[ct],oe=Z.aoData;if(f!==F&&Yt.bVisible!==f){if(f){var ve=i.inArray(!0,Ai(Nt,"bVisible"),ct+1);for(rt=0,bt=oe.length;rt<bt;rt++)Nt=oe[rt].anCells,(ht=oe[rt].nTr)&&ht.insertBefore(Nt[ct],Nt[ve]||null)}else i(Ai(Z.aoData,"anCells",ct)).detach();Yt.bVisible=f,Ot(Z,Z.aoHeader),Ot(Z,Z.aoFooter),Z.aiDisplay.length||i(Z.nTBody).find("td[colspan]").attr("colspan",S(Z)),ni(Z)}});return f!==F&&(this.iterator("column",function(Z,ct){si(Z,null,"column-visibility",[Z,ct,f,P])}),P!==F&&!P||this.columns.adjust()),q}),Wi("columns().indexes()","column().index()",function(f){return this.iterator("column",function(P,q){return"visible"===f?x(P,q):q},1)}),ai("columns.adjust()",function(){return this.iterator("table",function(f){N(f)},1)}),ai("column.index()",function(f,P){if(0!==this.context.length){var q=this.context[0];if("fromVisible"===f||"toData"===f)return I(q,P);if("fromData"===f||"toVisible"===f)return x(q,P)}}),ai("column()",function(f,P){return In(this.columns(f,P))}),ai("cells()",function(f,P,q){if(i.isPlainObject(f)&&(f.row===F?(q=f,f=null):(q=P,P=null)),i.isPlainObject(P)&&(q=P,P=null),null===P||P===F)return this.iterator("table",function(ve){var Pe,li,mi,Oe,Ri,nn,un,Fn=f,dn=Jn(q),Li=ve.aoData,zi=Hn(ve,dn),Cn=Un(Qi(Li,zi,"anCells")),_n=i([].concat.apply([],Cn)),Nn=ve.aoColumns.length;return vs("cell",Fn,function(tn){var Dn="function"==typeof tn;if(null===tn||tn===F||Dn){for(li=[],mi=0,Oe=zi.length;mi<Oe;mi++)for(Pe=zi[mi],Ri=0;Ri<Nn;Ri++)nn={row:Pe,column:Ri},Dn?(un=Li[Pe],tn(nn,tt(ve,Pe,Ri),un.anCells?un.anCells[Ri]:null)&&li.push(nn)):li.push(nn);return li}return i.isPlainObject(tn)?tn.column!==F&&tn.row!==F&&-1!==i.inArray(tn.row,zi)?[tn]:[]:(Dn=_n.filter(tn).map(function(ts,On){return{row:On._DT_CellIndex.row,column:On._DT_CellIndex.column}}).toArray()).length||!tn.nodeName?Dn:(un=i(tn).closest("*[data-dt-row]")).length?[{row:un.data("dt-row"),column:un.data("dt-column")}]:[]},ve,dn)});var Z,ct,rt,bt,ht,Nt=this.columns(P),Yt=this.rows(f);this.iterator("table",function(ve,Pe){for(Z=[],ct=0,rt=Yt[Pe].length;ct<rt;ct++)for(bt=0,ht=Nt[Pe].length;bt<ht;bt++)Z.push({row:Yt[Pe][ct],column:Nt[Pe][bt]})},1);var oe=this.cells(Z,q);return i.extend(oe.selector,{cols:P,rows:f,opts:q}),oe}),Wi("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(f,P,q){return(f=f.aoData[P])&&f.anCells?f.anCells[q]:F},1)}),ai("cells().data()",function(){return this.iterator("cell",function(f,P,q){return tt(f,P,q)},1)}),Wi("cells().cache()","cell().cache()",function(f){return f="search"===f?"_aFilterData":"_aSortData",this.iterator("cell",function(P,q,Z){return P.aoData[q][f][Z]},1)}),Wi("cells().render()","cell().render()",function(f){return this.iterator("cell",function(P,q,Z){return tt(P,q,Z,f)},1)}),Wi("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(f,P,q){return{row:P,column:q,columnVisible:x(f,q)}},1)}),Wi("cells().invalidate()","cell().invalidate()",function(f){return this.iterator("cell",function(P,q,Z){ae(P,q,f,Z)})}),ai("cell()",function(f,P,q){return In(this.cells(f,P,q))}),ai("cell().data()",function(f){var P=this.context,q=this[0];return f===F?P.length&&q.length?tt(P[0],q[0].row,q[0].column):F:(ft(P[0],q[0].row,q[0].column,f),ae(P[0],q[0].row,"data",q[0].column),this)}),ai("order()",function(f,P){var q=this.context;return f===F?0!==q.length?q[0].aaSorting:F:("number"==typeof f?f=[[f,P]]:f.length&&!i.isArray(f[0])&&(f=Array.prototype.slice.call(arguments)),this.iterator("table",function(Z){Z.aaSorting=f.slice()}))}),ai("order.listener()",function(f,P,q){return this.iterator("table",function(Z){Se(Z,f,P,q)})}),ai("order.fixed()",function(f){if(f)return this.iterator("table",function(q){q.aaSortingFixed=i.extend(!0,{},f)});var P=(P=this.context).length?P[0].aaSortingFixed:F;return i.isArray(P)?{pre:P}:P}),ai(["columns().order()","column().order()"],function(f){var P=this;return this.iterator("table",function(q,Z){var ct=[];i.each(P[Z],function(rt,bt){ct.push([bt,f])}),q.aaSorting=ct})}),ai("search()",function(f,P,q,Z){var ct=this.context;return f===F?0!==ct.length?ct[0].oPreviousSearch.sSearch:F:this.iterator("table",function(rt){rt.oFeatures.bFilter&&Ht(rt,i.extend({},rt.oPreviousSearch,{sSearch:f+"",bRegex:null!==P&&P,bSmart:null===q||q,bCaseInsensitive:null===Z||Z}),1)})}),Wi("columns().search()","column().search()",function(f,P,q,Z){return this.iterator("column",function(ct,rt){var bt=ct.aoPreSearchCols;if(f===F)return bt[rt].sSearch;ct.oFeatures.bFilter&&(i.extend(bt[rt],{sSearch:f+"",bRegex:null!==P&&P,bSmart:null===q||q,bCaseInsensitive:null===Z||Z}),Ht(ct,ct.oPreviousSearch,1))})}),ai("state()",function(){return this.context.length?this.context[0].oSavedState:null}),ai("state.clear()",function(){return this.iterator("table",function(f){f.fnStateSaveCallback.call(f.oInstance,f,{})})}),ai("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),ai("state.save()",function(){return this.iterator("table",function(f){ni(f)})}),We.versionCheck=We.fnVersionCheck=function(f){for(var P,q,Z=We.ver
1sion.split("."),ct=0,rt=(f=f.split(".")).length;ct<rt;ct++)if((P=parseInt(Z[ct],10)||0)!==(q=parseInt(f[ct],10)||0))return q<P;return!0},We.isDataTable=We.fnIsDataTable=function(f){var P=i(f).get(0),q=!1;return f instanceof We.Api||(i.each(We.settings,function(Z,ct){var rt=ct.nScrollHead?i("table",ct.nScrollHead)[0]:null,bt=ct.nScrollFoot?i("table",ct.nScrollFoot)[0]:null;ct.nTable!==P&&rt!==P&&bt!==P||(q=!0)}),q)},We.tables=We.fnTables=function(f){var P=!1;i.isPlainObject(f)&&(P=f.api,f=f.visible);var q=i.map(We.settings,function(Z){if(!f||f&&i(Z.nTable).is(":visible"))return Z.nTable});return P?new Di(q):q},We.camelToHungarian=r,ai("$()",function(f,P){var q=this.rows(P).nodes();return q=i(q),i([].concat(q.filter(f).toArray(),q.find(f).toArray()))}),i.each(["on","one","off"],function(f,P){ai(P+"()",function(){var q=Array.prototype.slice.call(arguments);q[0]=i.map(q[0].split(/\s/),function(ct){return ct.match(/\.dt\b/)?ct:ct+".dt"}).join(" ");var Z=i(this.tables().nodes());return Z[P].apply(Z,q),this})}),ai("clear()",function(){return this.iterator("table",function(f){wt(f)})}),ai("settings()",function(){return new Di(this.context,this.context)}),ai("init()",function(){var f=this.context;return f.length?f[0].oInit:null}),ai("data()",function(){return this.iterator("table",function(f){return Ai(f.aoData,"_aData")}).flatten()}),ai("destroy()",function(f){return f=f||!1,this.iterator("table",function(P){var q,Z=P.nTableWrapper.parentNode,ct=P.oClasses,rt=P.nTable,bt=P.nTBody,ht=P.nTHead,Nt=P.nTFoot,Yt=i(rt),oe=(bt=i(bt),i(P.nTableWrapper)),ve=i.map(P.aoData,function(Pe){return Pe.nTr});P.bDestroying=!0,si(P,"aoDestroyCallback","destroy",[P]),f||new Di(P).columns().visible(!0),oe.off(".DT").find(":not(tbody *)").off(".DT"),i(D).off(".DT-"+P.sInstance),rt!=ht.parentNode&&(Yt.children("thead").detach(),Yt.append(ht)),Nt&&rt!=Nt.parentNode&&(Yt.children("tfoot").detach(),Yt.append(Nt)),P.aaSorting=[],P.aaSortingFixed=[],Ye(P),i(ve).removeClass(P.asStripeClasses.join(" ")),i("th, td",ht).removeClass(ct.sSortable+" "+ct.sSortableAsc+" "+ct.sSortableDesc+" "+ct.sSortableNone),bt.children().detach(),bt.append(ve),Yt[ht=f?"remove":"detach"](),oe[ht](),!f&&Z&&(Z.insertBefore(rt,P.nTableReinsertBefore),Yt.css("width",P.sDestroyWidth).removeClass(ct.sTable),(q=P.asDestroyStripes.length)&&bt.children().each(function(Pe){i(this).addClass(P.asDestroyStripes[Pe%q])})),-1!==(Z=i.inArray(P,We.settings))&&We.settings.splice(Z,1)})}),i.each(["column","row","cell"],function(f,P){ai(P+"s().every()",function(q){var Z=this.selector.opts,ct=this;return this.iterator(P,function(rt,bt,ht,Nt,Yt){q.call(ct[P](bt,"cell"===P?ht:Z,"cell"===P?Z:F),bt,ht,Nt,Yt)})})}),ai("i18n()",function(f,P,q){var Z=this.context[0];return(f=lt(f)(Z.oLanguage))===F&&(f=P),q!==F&&i.isPlainObject(f)&&(f=f[q]!==F?f[q]:f._),f.replace("%d",q)}),We.version="1.10.19",We.settings=[],We.models={},We.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},We.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},We.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},We.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(f){return f.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)}
vendor: 4,157 bytes, line 1
1,fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(f){try{return JSON.parse((-1===f.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+f.sInstance+"_"+location.pathname))}catch(P){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(f,P){try{(-1===f.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+f.sInstance+"_"+location.pathname,JSON.stringify(P))}catch(q){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:i.extend({},We.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},l(We.defaults),We.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},l(We.defaults.column),We.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:F,oAjaxData:F,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Ci(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Ci(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var f=this._iDisplayLength,P=this._iDisplayStart,q=P+f,Z=this.aiDisplay.length,ct=this.oFeatures,rt=ct.bPaginate;return ct.bServerSide?!1===rt||-1===f?P+Z:Math.min(P+f,this._iRecordsDisplay):!rt||Z<q||-1===f?Z:q},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},We.ext=Fi={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:We.fnVersionCheck,iApiIndex:0,oJUIClasses:{}
1,sVersion:We.version},i.extend(Fi,{afnFiltering:Fi.search,aTypes:Fi.type.detect,ofnSearch:Fi.type.search,oSort:Fi.type.order,afnSortData:Fi.order,aoFeatures:Fi.feature,oApi:Fi.internal,oStdClasses:Fi.classes,oPagination:Fi.pager}),i.extend(We.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var hs=We.ext.pager;i.extend(hs,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(f,P){return[fn(f,P)]},simple_numbers:function(f,P){return["previous",fn(f,P),"next"]},full_numbers:function(f,P){return["first","previous",fn(f,P),"next","last"]},first_last_numbers:function(f,P){return["first",fn(f,P),"last"]},_numbers:fn,numbers_length:7}),i.extend(!0,We.ext.renderer,{pageButton:{_:function(f,P,q,Z,ct,rt){var bt,ht,Nt,Yt=f.oClasses,oe=f.oLanguage.oPaginate,ve=f.oLanguage.oAria.paginate||{},Pe=0,li=function(mi,Oe){function Ri(Li){s(f,Li.data.action,!0)}var nn,un,Fn,dn;for(nn=0,un=Oe.length;nn<un;nn++)if(i.isArray(dn=Oe[nn]))Fn=i("<"+(dn.DT_el||"div")+"/>").appendTo(mi),li(Fn,dn);else{switch(bt=null,ht="",dn){case"ellipsis":mi.append('<span class="ellipsis">…</span>');break;case"first":bt=oe.sFirst,ht=dn+(0<ct?"":" "+Yt.sPageButtonDisabled);break;case"previous":bt=oe.sPrevious,ht=dn+(0<ct?"":" "+Yt.sPageButtonDisabled);break;case"next":bt=oe.sNext,ht=dn+(ct<rt-1?"":" "+Yt.sPageButtonDisabled);break;case"last":bt=oe.sLast,ht=dn+(ct<rt-1?"":" "+Yt.sPageButtonDisabled);break;default:bt=dn+1,ht=ct===dn?Yt.sPageButtonActive:""}null!==bt&&(rn(Fn=i("<a>",{class:Yt.sPageButton+" "+ht,"aria-controls":f.sTableId,"aria-label":ve[dn],"data-dt-idx":Pe,tabindex:f.iTabIndex,id:0===q&&"string"==typeof dn?f.sTableId+"_"+dn:null}).html(bt).appendTo(mi),{action:dn},Ri),Pe++)}};try{Nt=i(P).find(K.activeElement).data("dt-idx")}catch(mi){}li(i(P).empty(),Z),Nt!==F&&i(P).find("[data-dt-idx="+Nt+"]").focus()}}}),i.extend(We.ext.type.detect,[function(f,P){var q=P.oLanguage.sDecimal;return mn(f,q)?"num"+q:null},function(f){if(f&&!(f instanceof Date)&&!di.test(f))return null;var P=Date.parse(f);return null!==P&&!isNaN(P)||Pi(f)?"date":null},function(f,P){var q=P.oLanguage.sDecimal;return mn(f,q,!0)?"num-fmt"+q:null},function(f,P){var q=P.oLanguage.sDecimal;return Xi(f,q)?"html-num"+q:null},function(f,P){var q=P.oLanguage.sDecimal;return Xi(f,q,!0)?"html-num-fmt"+q:null},function(f){return Pi(f)||"string"==typeof f&&-1!==f.indexOf("<")?"html":null}]),i.extend(We.ext.type.search,{html:function(f){return Pi(f)?f:"string"==typeof f?f.replace($n," ").replace(Zi,""):""},string:function(f){return Pi(f)?f:"string"==typeof f?f.replace($n," "):f}});var fs=function(f,P,q,Z){return 0===f||f&&"-"!==f?(P&&(f=Sn(f,P)),f.replace&&(q&&(f=f.replace(q,"")),Z&&(f=f.replace(Z,""))),1*f):-1/0};function zn(f){return"string"==typeof f?f.replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):f}return i.extend(Fi.type.order,{"date-pre":function(f){return f=Date.parse(f),isNaN(f)?-1/0:f},"html-pre":function(f){return Pi(f)?"":f.replace?f.replace(/<.*?>/g,"").toLowerCase():f+""},"string-pre":function(f){return Pi(f)?"":"string"==typeof f?f.toLowerCase():f.toString?f.toString():""},"string-asc":function(f,P){return f<P?-1:P<f?1:0},"string-desc":function(f,P){return f<P?1:P<f?-1:0}}),yn(""),i.extend(!0,We.ext.renderer,{header:{_:function(f,P,q,Z){i(f.nTable).on("order.dt.DT",function(ct,rt,bt,ht){f===rt&&(ct=q.idx,P.removeClass(q.sSortingClass+" "+Z.sSortAsc+" "+Z.sSortDesc).addClass("asc"==ht[ct]?Z.sSortAsc:"desc"==ht[ct]?Z.sSortDesc:q.sSortingClass))})},jqueryui:function(f,P,q,Z){i("<div/>").addClass(Z.sSortJUIWrapper).append(P.contents()).append(i("<span/>").addClass(Z.sSortIcon+" "+q.sSortingClassJUI)).appendTo(P),i(f.nTable).on("order.dt.DT",function(ct,rt,bt,ht){f===rt&&(ct=q.idx,P.removeClass(Z.sSortAsc+" "+Z.sSortDesc).addClass("asc"==ht[ct]?Z.sSortAsc:"desc"==ht[ct]?Z.sSortDesc:q.sSortingClass),P.find("span."+Z.sSortIcon).removeClass(Z.sSortJUIAsc+" "+Z.sSortJUIDesc+" "+Z.sSortJUI+" "+Z.sSortJUIAscAllowed+" "+Z.sSortJUIDescAllowed).addClass("asc"==ht[ct]?Z.sSortJUIAsc:"desc"==ht[ct]?Z.sSortJUIDesc:q.sSortingClassJUI))})}}}),We.render={number:function(f,P,q,Z,ct){return{display:function(rt){if("number"!=typeof rt&&"string"!=typeof rt)return rt;var bt=rt<0?"-":"",ht=parseFloat(rt);return isNaN(ht)?zn(rt):(ht=ht.toFixed(q),rt=Math.abs(ht),ht=parseInt(rt,10),rt=q?P+(rt-ht).toFixed(q).substring(2):"",bt+(Z||"")+ht.toString().replace(/\B(?=(\d{3})+(?!\d))/g,f)+rt+(ct||""))}}},text:function(){return{display:zn,filter:zn}}},i.extend(We.ext.internal,{_fnExternApiFunc:bn,_fnBuildAjax:It,_fnAjaxUpdate:Lt,_fnAjaxParameters:Ut,_fnAjaxUpdateDraw:de,_fnAjaxDataSrc:be,_fnAddColumn:R,_fnColumnOptions:k,_fnAdjustColumnSizing:N,_fnVisibleToColumnIndex:I,_fnColumnIndexToVisible:x,_fnVisbleColumns:S,_fnGetColumns:A,_fnColumnTypes:O,_fnApplyColumnDefs:H,_fnHungarianMap:l,_fnCamelToHungarian:r,_fnLanguageCompat:a,_fnBrowserDetect:L,_fnAddData:z,_fnAddTr:v,_fnNodeToDataIndex:function(f,P){return P._DT_RowIndex!==F?P._DT_RowIndex:null},_fnNodeToColumnIndex:function(f,P,q){return i.inArray(q,f.aoData[P].anCells)},_fnGetCellData:tt,_fnSetCellData:ft,_fnSplitObjNotation:Rt,_fnGetObjectDataFn:lt,_fnSetObjectDataFn:at,_fnGetDataMaster:mt,_fnClearTable:wt,_fnDeleteIndex:qt,_fnInvalidate:ae,_fnGetRowElements:ye,_fnCreateTr:he,_fnBuildHead:Ne,_fnDrawHead:Ot,_fnDraw:w,_fnReDraw:Y,_fnAddOptionsHtml:V,_fnDetectHeader:it,_fnGetUniqueThs:yt,_fnFeatureHtmlFilter:dt,_fnFilterComplete:Ht,_fnFilterCustom:Gt,_fnFilterColumn:ge,_fnFilter:zt,_fnFilterCreateSearch:Ee,_fnEscapeRegex:Mn,_fnFilterData:ze,_fnFeatureHtmlInfo:$t,_fnUpdateInfo:ee,_fnInfoMacros:ne,_fnInitialise:xe,_fnInitComplete:ue,_fnLengthChange:fe,_fnFeatureHtmlLength:Le,_fnFeatureHtmlPaginate:e,_fnPageChange:s,_fnFeatureHtmlProcessing:d,_fnProcessingDisplay:g,_fnFeatureHtmlTable:C,_fnScrollDraw:U,_fnApplyToChildren:nt,_fnCalculateColumnWidths:ut,_fnThrottle:ds,_fnConvertToWidth:vt,_fnGetWidestNode:Wt,_fnGetMaxLenString:Bt,_fnStringToCss:xt,_fnSortFlatten:Ft,_fnSort:Kt,_fnSortAria:ce,_fnSortListener:we,_fnSortAttachListener:Se,_fnSortingClasses:Ye,_fnSortData:Je,_fnSaveState:ni,_fnLoadState:ci,_fnSettingsFromNode:ri,_fnLog:yi,_fnMap:Ii,_fnBindAction:rn,_fnCallbackReg:Ei,_fnCallbackFire:si,_fnLengthOverflow:$i,_fnRenderer:an,_fnDataSource:Ci,_fnRowAttributes:Te,_fnExtend:Ti,_fnCalculateEnd:function(){}}),((i.fn.dataTable=We).$=i).fn.dataTableSettings=We.settings,i.fn.dataTableExt=We.ext,i.fn.DataTable=function(f){return i(this).dataTable(f).api()},i.each(We,function(f,P){i.fn.DataTable[f]=P}),i.fn.dataTable}),function(i){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(D){return i(D,window,document)}):"object"==typeof exports?module.exports=function(D,K){return D=D||window,K&&K.fn.dataTable||(K=require("datatables.net")(D,K).$),i(K,0,D.document)}:i(jQuery,window,document)}(function(i,D,K,F){var l=i.fn.dataTable;return i.extend(!0,l.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),i.extend(l.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),l.ext.renderer.pageButton.bootstrap=function(r,a,u,b,L,W){var R,k,N,I=new l.Api(r),x=r.oClasse
1s,S=r.oLanguage.oPaginate,A=r.oLanguage.oAria.paginate||{},O=0,H=function(z,v){function tt(mt){mt.preventDefault(),i(mt.currentTarget).hasClass("disabled")||I.page()==mt.data.action||I.page(mt.data.action).draw("page")}var ft,Rt,lt,at;for(ft=0,Rt=v.length;ft<Rt;ft++)if(i.isArray(at=v[ft]))H(z,at);else{switch(k=R="",at){case"ellipsis":R="…",k="disabled";break;case"first":R=S.sFirst,k=at+(0<L?"":" disabled");break;case"previous":R=S.sPrevious,k=at+(0<L?"":" disabled");break;case"next":R=S.sNext,k=at+(L<W-1?"":" disabled");break;case"last":R=S.sLast,k=at+(L<W-1?"":" disabled");break;default:R=at+1,k=L===at?"active":""}R&&(lt=i("<li>",{class:x.sPageButton+" "+k,id:0===u&&"string"==typeof at?r.sTableId+"_"+at:null}).append(i("<a>",{href:"#","aria-controls":r.sTableId,"aria-label":A[at],"data-dt-idx":O,tabindex:r.iTabIndex,class:"page-link"}).html(R)).appendTo(z),r.oApi._fnBindAction(lt,{action:at},tt),O++)}};try{N=i(a).find(K.activeElement).data("dt-idx")}catch(z){}H(i(a).empty().html('<ul class="pagination"/>').children("ul"),b),N!==F&&i(a).find("[data-dt-idx="+N+"]").focus()},l}),function(i,D){"object"==typeof exports&&"undefined"!=typeof module?module.exports=D():"function"==typeof define&&define.amd?define(D):(i="undefined"!=typeof globalThis?globalThis:i||self).Chart=D()}(this,function(){"use strict";function i(){}const D=function(){let h=0;return function(){return h++}}();function K(h){return null==h}function F(h){if(Array.isArray&&Array.isArray(h))return!0;const n=Object.prototype.toString.call(h);return"[object"===n.slice(0,7)&&"Array]"===n.slice(-6)}function l(h){return null!==h&&"[object Object]"===Object.prototype.toString.call(h)}const r=h=>("number"==typeof h||h instanceof Number)&&isFinite(+h);function a(h,n){return r(h)?h:n}function u(h,n){return void 0===h?n:h}const b=(h,n)=>"string"==typeof h&&h.endsWith("%")?parseFloat(h)/100:h/n,L=(h,n)=>"string"==typeof h&&h.endsWith("%")?parseFloat(h)/100*n:+h;function W(h,n,o){if(h&&"function"==typeof h.call)return h.apply(o,n)}function R(h,n,o,c){let p,m,_;if(F(h))if(m=h.length,c)for(p=m-1;p>=0;p--)n.call(o,h[p],p);else for(p=0;p<m;p++)n.call(o,h[p],p);else if(l(h))for(_=Object.keys(h),m=_.length,p=0;p<m;p++)n.call(o,h[_[p]],_[p])}function k(h,n){let o,c,p,m;if(!h||!n||h.length!==n.length)return!1;for(o=0,c=h.length;o<c;++o)if(p=h[o],m=n[o],p.datasetIndex!==m.datasetIndex||p.index!==m.index)return!1;return!0}function N(h){if(F(h))return h.map(N);if(l(h)){const n=Object.create(null),o=Object.keys(h),c=o.length;let p=0;for(;p<c;++p)n[o[p]]=N(h[o[p]]);return n}return h}function I(h){return-1===["__proto__","prototype","constructor"].indexOf(h)}function x(h,n,o,c){if(!I(h))return;const p=n[h],m=o[h];l(p)&&l(m)?S(p,m,c):n[h]=N(m)}function S(h,n,o){const c=F(n)?n:[n],p=c.length;if(!l(h))return h;const m=(o=o||{}).merger||x;for(let _=0;_<p;++_){if(!l(n=c[_]))continue;const E=Object.keys(n);for(let j=0,G=E.length;j<G;++j)m(E[j],h,n,o)}return h}function A(h,n){return S(h,n,{merger:O})}function O(h,n,o){if(!I(h))return;const c=n[h],p=o[h];l(c)&&l(p)?A(c,p):Object.prototype.hasOwnProperty.call(n,h)||(n[h]=N(p))}const H={"":h=>h,x:h=>h.x,y:h=>h.y};function z(h,n){return(H[n]||(H[n]=function(c){const p=v(c);return m=>{for(const _ of p){if(""===_)break;m=m&&m[_]}return m}}(n)))(h)}function v(h){const n=h.split("."),o=[];let c="";for(const p of n)c+=p,c.endsWith("\\")?c=c.slice(0,-1)+".":(o.push(c),c="");return o}function tt(h){return h.charAt(0).toUpperCase()+h.slice(1)}const ft=h=>void 0!==h,Rt=h=>"function"==typeof h,lt=(h,n)=>{if(h.size!==n.size)return!1;for(const o of h)if(!n.has(o))return!1;return!0};function at(h){return"mouseup"===h.type||"click"===h.type||"contextmenu"===h.type}const mt=Math.PI,wt=2*mt,qt=wt+mt,ae=Number.POSITIVE_INFINITY,ye=mt/180,he=mt/2,Te=mt/4,Ne=2*mt/3,Ot=Math.log10,w=Math.sign;function Y(h){const n=Math.round(h);h=yt(h,n,h/1e3)?n:h;const o=Math.pow(10,Math.floor(Ot(h))),c=h/o;return(c<=1?1:c<=2?2:c<=5?5:10)*o}function V(h){const n=[],o=Math.sqrt(h);let c;for(c=1;c<o;c++)h%c==0&&(n.push(c),n.push(h/c));return o===(0|o)&&n.push(o),n.sort((p,m)=>p-m).pop(),n}function it(h){return!isNaN(parseFloat(h))&&isFinite(h)}function yt(h,n,o){return Math.abs(h-n)<o}function It(h,n){const o=Math.round(h);return o-n<=h&&o+n>=h}function Lt(h,n,o){let c,p,m;for(c=0,p=h.length;c<p;c++)m=h[c][o],isNaN(m)||(n.min=Math.min(n.min,m),n.max=Math.max(n.max,m))}function Ut(h){return h*(mt/180)}function de(h){return h*(180/mt)}function be(h){if(!r(h))return;let n=1,o=0;for(;Math.round(h*n)/n!==h;)n*=10,o++;return o}function dt(h,n){const o=n.x-h.x,c=n.y-h.y,p=Math.sqrt(o*o+c*c);let m=Math.atan2(c,o);return m<-.5*mt&&(m+=wt),{angle:m,distance:p}}function Ht(h,n){return Math.sqrt(Math.pow(n.x-h.x,2)+Math.pow(n.y-h.y,2))}
vendor: 5,396 bytes, line 1
1function Gt(h,n){return(h-n+qt)%wt-mt}function ge(h){return(h%wt+wt)%wt}function zt(h,n,o,c){const p=ge(h),m=ge(n),_=ge(o),E=ge(m-p),j=ge(_-p),G=ge(p-m),st=ge(p-_);return p===m||p===_||c&&m===_||E>j&&G<st}function Ee(h,n,o){return Math.max(n,Math.min(o,h))}function ze(h){return Ee(h,-32768,32767)}function Xe(h,n,o,c=1e-6){return h>=Math.min(n,o)-c&&h<=Math.max(n,o)+c}function Tt(h,n,o){o=o||(_=>h[_]<n);let c,p=h.length-1,m=0;for(;p-m>1;)c=m+p>>1,o(c)?m=c:p=c;return{lo:m,hi:p}}const $t=(h,n,o,c)=>Tt(h,o,c?p=>h[p][n]<=o:p=>h[p][n]<o),ee=(h,n,o)=>Tt(h,o,c=>h[c][n]>=o);function ne(h,n,o){let c=0,p=h.length;for(;c<p&&h[c]<n;)c++;for(;p>c&&h[p-1]>o;)p--;return c>0||p<h.length?h.slice(c,p):h}const xe=["push","pop","shift","splice","unshift"];function ue(h,n){h._chartjs?h._chartjs.listeners.push(n):(Object.defineProperty(h,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),xe.forEach(o=>{const c="_onData"+tt(o),p=h[o];Object.defineProperty(h,o,{configurable:!0,enumerable:!1,value(...m){const _=p.apply(this,m);return h._chartjs.listeners.forEach(E=>{"function"==typeof E[c]&&E[c](...m)}),_}})}))}function fe(h,n){const o=h._chartjs;if(!o)return;const c=o.listeners,p=c.indexOf(n);-1!==p&&c.splice(p,1),c.length>0||(xe.forEach(m=>{delete h[m]}),delete h._chartjs)}function Le(h){const n=new Set;let o,c;for(o=0,c=h.length;o<c;++o)n.add(h[o]);return n.size===c?h:Array.from(n)}const e="undefined"==typeof window?function(h){return h()}:window.requestAnimationFrame;function s(h,n,o){const c=o||(_=>Array.prototype.slice.call(_));let p=!1,m=[];return function(..._){m=c(_),p||(p=!0,e.call(window,()=>{p=!1,h.apply(n,m)}))}}function d(h,n){let o;return function(...c){return n?(clearTimeout(o),o=setTimeout(h,n,c)):h.apply(this,c),n}}const g=h=>"start"===h?"left":"end"===h?"right":"center",C=(h,n,o)=>"start"===h?n:"end"===h?o:(n+o)/2,U=(h,n,o,c)=>h===(c?"left":"right")?o:"center"===h?(n+o)/2:n;function nt(h,n,o){const c=n.length;let p=0,m=c;if(h._sorted){const{iScale:_,_parsed:E}=h,j=_.axis,{min:G,max:st,minDefined:ot,maxDefined:gt}=_.getUserBounds();ot&&(p=Ee(Math.min($t(E,_.axis,G).lo,o?c:$t(n,j,_.getPixelForValue(G)).lo),0,c-1)),m=gt?Ee(Math.max($t(E,_.axis,st,!0).hi+1,o?0:$t(n,j,_.getPixelForValue(st),!0).hi+1),p,c)-p:c-p}return{start:p,count:m}}function ut(h){const{xScale:n,yScale:o,_scaleRanges:c}=h,p={xmin:n.min,xmax:n.max,ymin:o.min,ymax:o.max};if(!c)return h._scaleRanges=p,!0;const m=c.xmin!==n.min||c.xmax!==n.max||c.ymin!==o.min||c.ymax!==o.max;return Object.assign(c,p),m}var vt=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(h,n,o,c){const m=n.duration;n.listeners[c].forEach(_=>_({chart:h,initial:n.initial,numSteps:m,currentStep:Math.min(o-n.start,m)}))}_refresh(){this._request||(this._running=!0,this._request=e.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(h=Date.now()){let n=0;this._charts.forEach((o,c)=>{if(!o.running||!o.items.length)return;const p=o.items;let m,_=p.length-1,E=!1;for(;_>=0;--_)m=p[_],m._active?(m._total>o.duration&&(o.duration=m._total),m.tick(h),E=!0):(p[_]=p[p.length-1],p.pop());E&&(c.draw(),this._notify(c,o,h,"progress")),p.length||(o.running=!1,this._notify(c,o,h,"complete"),o.initial=!1),n+=p.length}),this._lastDate=h,0===n&&(this._running=!1)}_getAnims(h){const n=this._charts;let o=n.get(h);return o||(o={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(h,o)),o}listen(h,n,o){this._getAnims(h).listeners[n].push(o)}add(h,n){n&&n.length&&this._getAnims(h).items.push(...n)}has(h){return this._getAnims(h).items.length>0}start(h){const n=this._charts.get(h);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((o,c)=>Math.max(o,c._duration),0),this._refresh())}running(h){if(!this._running)return!1;const n=this._charts.get(h);return!!(n&&n.running&&n.items.length)}stop(h){const n=this._charts.get(h);if(!n||!n.items.length)return;const o=n.items;let c=o.length-1;for(;c>=0;--c)o[c].cancel();n.items=[],this._notify(h,n,Date.now(),"complete")}remove(h){return this._charts.delete(h)}};function Wt(h){return h+.5|0}const Bt=(h,n,o)=>Math.max(Math.min(h,o),n);function xt(h){return Bt(Wt(2.55*h),0,255)}function Ft(h){return Bt(Wt(255*h),0,255)}function Kt(h){return Bt(Wt(h/2.55)/100,0,1)}function ce(h){return Bt(Wt(100*h),0,100)}const we={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},Se=[..."0123456789ABCDEF"],Ye=h=>Se[15&h],Je=h=>Se[(240&h)>>4]+Se[15&h],ni=h=>(240&h)>>4==(15&h),ri=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function yi(h,n,o){const c=n*Math.min(o,1-o),p=(m,_=(m+h/30)%12)=>o-c*Math.max(Math.min(_-3,9-_,1),-1);return[p(0),p(8),p(4)]}function Ii(h,n,o){const c=(p,m=(p+h/60)%6)=>o-o*n*Math.max(Math.min(m,4-m,1),0);return[c(5),c(3),c(1)]}function Ti(h,n,o){const c=yi(h,1,.5);let p;for(n+o>1&&(p=1/(n+o),n*=p,o*=p),p=0;p<3;p++)c[p]*=1-n-o,c[p]+=n;return c}function rn(h){const n=h.r/255,o=h.g/255,c=h.b/255,p=Math.max(n,o,c),m=Math.min(n,o,c),_=(p+m)/2;let E,j,G;return p!==m&&(G=p-m,j=_>.5?G/(2-p-m):G/(p+m),ot=o,gt=c,Dt=G,E=(st=n)===(kt=p)?(ot-gt)/Dt+(ot<gt?6:0):ot===kt?(gt-st)/Dt+2:(st-ot)/Dt+4,E=60*E+.5),[0|E,j||0,_];var st,ot,gt,Dt,kt}function Ei(h,n,o,c){return(Array.isArray(n)?h(n[0],n[1],n[2]):h(n,o,c)).map(Ft)}
vendor: 4,274 bytes, line 1
1function si(h,n,o){return Ei(yi,h,n,o)}function $i(h){return(h%360+360)%360}const Ci={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"},fn={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 yn;const Pi=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Ln=h=>h<=.0031308?12.92*h:1.055*Math.pow(h,1/2.4)-.055,Sn=h=>h<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4);function mn(h,n,o){if(h){let c=rn(h);c[n]=Math.max(0,Math.min(c[n]+c[n]*o,0===n?360:1)),c=si(c),h.r=c[0],h.g=c[1],h.b=c[2]}}function Xi(h,n){return h&&Object.assign(n||{},h)}function Qi(h){var n={r:0,g:0,b:0,a:255};return Array.isArray(h)?h.length>=3&&(n={r:h[0],g:h[1],b:h[2],a:255},h.length>3&&(n.a=Ft(h[3]))):(n=Xi(h,{r:0,g:0,b:0,a:1})).a=Ft(n.a),n}class Un{constructor(n){if(n instanceof Un)return n;const o=typeof n;let c;var p,m,_;"object"===o?c=Qi(n):"string"===o&&(_=(p=n).length,"#"===p[0]&&(4===_||5===_?m={r:255&17*we[p[1]],g:255&17*we[p[2]],b:255&17*we[p[3]],a:5===_?17*we[p[4]]:255}:7!==_&&9!==_||(m={r:we[p[1]]<<4|we[p[2]],g:we[p[3]]<<4|we[p[4]],b:we[p[5]]<<4|we[p[6]],a:9===_?we[p[7]]<<4|we[p[8]]:255})),c=m||function bn(h){yn||(yn=function(){const o={},c=Object.keys(fn),p=Object.keys(Ci);let m,_,E,j,G;for(m=0;m<c.length;m++){for(j=G=c[m],_=0;_<p.length;_++)E=p[_],G=G.replace(E,Ci[E]);E=parseInt(fn[j],16),o[G]=[E>>16&255,E>>8&255,255&E]}return o}(),yn.transparent=[0,0,0,0]);const n=yn[h.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:4===n.length?n[3]:255}}(n)||function Rn(h){return"r"===h.charAt(0)?function(n){const o=Pi.exec(n);let c,p,m,_=255;if(o){if(o[7]!==c){const E=+o[7];_=o[8]?xt(E):Bt(255*E,0,255)}return c=+o[1],p=+o[3],m=+o[5],c=255&(o[2]?xt(c):Bt(c,0,255)),p=255&(o[4]?xt(p):Bt(p,0,255)),m=255&(o[6]?xt(m):Bt(m,0,255)),{r:c,g:p,b:m,a:_}}}(h):function an(h){const n=ri.exec(h);let o,c=255;if(!n)return;
vendor: 3,287 bytes, line 1
1n[5]!==o&&(c=n[6]?xt(+n[5]):Ft(+n[5]));const p=$i(+n[2]),m=+n[3]/100,_=+n[4]/100;return o="hwb"===n[1]?Ei(Ti,p,m,_):"hsv"===n[1]?Ei(Ii,p,m,_):si(p,m,_),{r:o[0],g:o[1],b:o[2],a:c}}(h)}(n)),this._rgb=c,this._valid=!!c}get valid(){return this._valid}get rgb(){var n=Xi(this._rgb);return n&&(n.a=Kt(n.a)),n}set rgb(n){this._rgb=Qi(n)}rgbString(){return this._valid?(n=this._rgb)&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${Kt(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`):void 0;var n}hexString(){return this._valid?function ci(h){var o,n=ni((o=h).r)&&ni(o.g)&&ni(o.b)&&ni(o.a)?Ye:Je;return h?"#"+n(h.r)+n(h.g)+n(h.b)+((o,c)=>o<255?c(o):"")(h.a,n):void 0}(this._rgb):void 0}hslString(){return this._valid?function(n){if(!n)return;const o=rn(n),c=o[0],p=ce(o[1]),m=ce(o[2]);return n.a<255?`hsla(${c}, ${p}%, ${m}%, ${Kt(n.a)})`:`hsl(${c}, ${p}%, ${m}%)`}(this._rgb):void 0}mix(n,o){if(n){const c=this.rgb,p=n.rgb;let m;const _=o===m?.5:o,E=2*_-1,j=c.a-p.a,G=((E*j==-1?E:(E+j)/(1+E*j))+1)/2;m=1-G,c.r=255&G*c.r+m*p.r+.5,c.g=255&G*c.g+m*p.g+.5,c.b=255&G*c.b+m*p.b+.5,c.a=_*c.a+(1-_)*p.a,this.rgb=c}return this}interpolate(n,o){return n&&(this._rgb=function(c,p,m){const _=Sn(Kt(c.r)),E=Sn(Kt(c.g)),j=Sn(Kt(c.b));return{r:Ft(Ln(_+m*(Sn(Kt(p.r))-_))),g:Ft(Ln(E+m*(Sn(Kt(p.g))-E))),b:Ft(Ln(j+m*(Sn(Kt(p.b))-j))),a:c.a+m*(p.a-c.a)}}(this._rgb,n._rgb,o)),this}clone(){return new Un(this.rgb)}alpha(n){return this._rgb.a=Ft(n),this}clearer(n){return this._rgb.a*=1-n,this}greyscale(){const n=this._rgb,o=Wt(.3*n.r+.59*n.g+.11*n.b);return n.r=n.g=n.b=o,this}opaquer(n){return this._rgb.a*=1+n,this}negate(){const n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return mn(this._rgb,2,n),this}darken(n){return mn(this._rgb,2,-n),this}saturate(n){return mn(this._rgb,1,n),this}desaturate(n){return mn(this._rgb,1,-n),this}rotate(n){return c=n,(p=rn(o=this._rgb))[0]=$i(p[0]+c),p=si(p),o.r=p[0],o.g=p[1],o.b=p[2],this;var o,c,p}}function Fi(h){return new Un(h)}function Di(h){if(h&&"object"==typeof h){const n=h.toString();return"[object CanvasPattern]"===n||"[object CanvasGradient]"===n}return!1}function ai(h){return Di(h)?h:Fi(h)}function Wi(h){return Di(h)?h:Fi(h).saturate(.5).darken(.1).hexString()}const We=Object.create(null),us=Object.create(null);function $n(h,n){if(!n)return h;const o=n.split(".");for(let c=0,p=o.length;c<p;++c){const m=o[c];h=h[m]||(h[m]=Object.create(null))}return h}function Zi(h,n,o){return"string"==typeof n?S($n(h,n),o):S($n(h,""),n)}var di=new class{constructor(h){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=n=>n.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=(n,o)=>Wi(o.backgroundColor),this.hoverBorderColor=(n,o)=>Wi(o.borderColor),this.hoverColor=(n,o)=>Wi(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 8,830 bytes, line 1
1,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(h)}set(h,n){return Zi(this,h,n)}get(h){return $n(this,h)}describe(h,n){return Zi(us,h,n)}override(h,n){return Zi(We,h,n)}route(h,n,o,c){const p=$n(this,h),m=$n(this,o),_="_"+n;Object.defineProperties(p,{[_]:{value:p[n],writable:!0},[n]:{enumerable:!0,get(){const E=this[_],j=m[c];return l(E)?Object.assign({},j,E):u(E,j)},set(E){this[_]=E}}})}}({_scriptable:h=>!h.startsWith("on"),_indexable:h=>"events"!==h,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Gn(){return"undefined"!=typeof window&&"undefined"!=typeof document}function En(h){let n=h.parentNode;return n&&"[object ShadowRoot]"===n.toString()&&(n=n.host),n}function Ai(h,n,o){let c;return"string"==typeof h?(c=parseInt(h,10),-1!==h.indexOf("%")&&(c=c/100*n.parentNode[o])):c=h,c}const ln=h=>window.getComputedStyle(h,null);function en(h,n){return ln(h).getPropertyValue(n)}const Zn=["top","right","bottom","left"];function hn(h,n,o){const c={};o=o?"-"+o:"";for(let p=0;p<4;p++){const m=Zn[p];c[m]=parseFloat(h[n+"-"+m+o])||0}return c.width=c.left+c.right,c.height=c.top+c.bottom,c}function Mn(h,n){if("native"in h)return h;const{canvas:o,currentDevicePixelRatio:c}=n,p=ln(o),m="border-box"===p.boxSizing,_=hn(p,"padding"),E=hn(p,"border","width"),{x:j,y:G,box:st}=function(Pt,jt){const Jt=Pt.touches,le=Jt&&Jt.length?Jt[0]:Pt,{offsetX:me,offsetY:_e}=le;let Fe,qe,Qe=!1;if(ti=Pt.target,!(me>0||_e>0)||ti&&ti.shadowRoot){const fi=jt.getBoundingClientRect();Fe=le.clientX-fi.left,qe=le.clientY-fi.top,Qe=!0}else Fe=me,qe=_e;var ti;return{x:Fe,y:qe,box:Qe}}(h,o),ot=_.left+(st&&E.left),gt=_.top+(st&&E.top);let{width:Dt,height:kt}=n;return m&&(Dt-=_.width+E.width,kt-=_.height+E.height),{x:Math.round((j-ot)/Dt*o.width/c),y:Math.round((G-gt)/kt*o.height/c)}}const ls=h=>Math.round(10*h)/10;function ms(h,n,o,c){const p=ln(h),m=hn(p,"margin"),_=Ai(p.maxWidth,h,"clientWidth")||ae,E=Ai(p.maxHeight,h,"clientHeight")||ae,j=function(ot,gt,Dt){let kt,Pt;if(void 0===gt||void 0===Dt){const jt=En(ot);if(jt){const Jt=jt.getBoundingClientRect(),le=ln(jt),me=hn(le,"border","width"),_e=hn(le,"padding");gt=Jt.width-_e.width-me.width,Dt=Jt.height-_e.height-me.height,kt=Ai(le.maxWidth,jt,"clientWidth"),Pt=Ai(le.maxHeight,jt,"clientHeight")}else gt=ot.clientWidth,Dt=ot.clientHeight}return{width:gt,height:Dt,maxWidth:kt||ae,maxHeight:Pt||ae}}(h,n,o);let{width:G,height:st}=j;if("content-box"===p.boxSizing){const ot=hn(p,"border","width"),gt=hn(p,"padding");G-=gt.width+ot.width,st-=gt.height+ot.height}return G=Math.max(0,G-m.width),st=Math.max(0,c?Math.floor(G/c):st-m.height),G=ls(Math.min(G,_,j.maxWidth)),st=ls(Math.min(st,E,j.maxHeight)),G&&!st&&(st=ls(G/2)),{width:G,height:st}}function Ss(h,n,o){const c=n||1,p=Math.floor(h.height*c),m=Math.floor(h.width*c);h.height=p/c,h.width=m/c;const _=h.canvas;return _.style&&(o||!_.style.height&&!_.style.width)&&(_.style.height=`${h.height}px`,_.style.width=`${h.width}px`),(h.currentDevicePixelRatio!==c||_.height!==p||_.width!==m)&&(h.currentDevicePixelRatio=c,_.height=p,_.width=m,h.ctx.setTransform(c,0,0,c,0,0),!0)}const ds=function(){let h=!1;try{const n={get passive(){return h=!0,!1}};window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}return h}();function ss(h,n){const o=en(h,n),c=o&&o.match(/^(\d+)(\.\d+)?px$/);return c?+c[1]:void 0}function wn(h){return!h||K(h.size)||K(h.family)?null:(h.style?h.style+" ":"")+(h.weight?h.weight+" ":"")+h.size+"px "+h.family}function ps(h,n,o,c,p){let m=n[p];return m||(m=n[p]=h.measureText(p).width,o.push(p)),m>c&&(c=m),c}function vs(h,n,o,c){let p=(c=c||{}).data=c.data||{},m=c.garbageCollect=c.garbageCollect||[];c.font!==n&&(p=c.data={},m=c.garbageCollect=[],c.font=n),h.save(),h.font=n;let _=0;const E=o.length;let j,G,st,ot,gt;for(j=0;j<E;j++)if(ot=o[j],null!=ot&&!0!==F(ot))_=ps(h,p,m,_,ot);else if(F(ot))for(G=0,st=ot.length;G<st;G++)gt=ot[G],null==gt||F(gt)||(_=ps(h,p,m,_,gt));h.restore();const Dt=m.length/2;if(Dt>o.length){for(j=0;j<Dt;j++)delete p[m[j]];m.splice(0,Dt)}return _}function Jn(h,n,o){const c=h.currentDevicePixelRatio,p=0!==o?Math.max(o/2,.5):0;return Math.round((n-p)*c)/c+p}function In(h,n){(n=n||h.getContext("2d")).save(),n.resetTransform(),n.clearRect(0,0,h.width,h.height),n.restore()}function Hn(h,n,o,c){Vn(h,n,o,c,null)}function Vn(h,n,o,c,p){let m,_,E,j,G,st;const ot=n.pointStyle,gt=n.rotation,Dt=n.radius;let kt=(gt||0)*ye;if(ot&&"object"==typeof ot&&(m=ot.toString(),"[object HTMLImageElement]"===m||"[object HTMLCanvasElement]"===m))return h.save(),h.translate(o,c),h.rotate(kt),h.drawImage(ot,-ot.width/2,-ot.height/2,ot.width,ot.height),void h.restore();if(!(isNaN(Dt)||Dt<=0)){switch(h.beginPath(),ot){default:p?h.ellipse(o,c,p/2,Dt,0,0,wt):h.arc(o,c,Dt,0,wt),h.closePath();break;case"triangle":h.moveTo(o+Math.sin(kt)*Dt,c-Math.cos(kt)*Dt),kt+=Ne,h.lineTo(o+Math.sin(kt)*Dt,c-Math.cos(kt)*Dt),kt+=Ne,h.lineTo(o+Math.sin(kt)*Dt,c-Math.cos(kt)*Dt),h.closePath();break;case"rectRounded":G=.516*Dt,j=Dt-G,_=Math.cos(kt+Te)*j,E=Math.sin(kt+Te)*j,h.arc(o-_,c-E,G,kt-mt,kt-he),h.arc(o+E,c-_,G,kt-he,kt),h.arc(o+_,c+E,G,kt,kt+he),h.arc(o-E,c+_,G,kt+he,kt+mt),h.closePath();break;case"rect":if(!gt){j=Math.SQRT1_2*Dt,st=p?p/2:j,h.rect(o-st,c-j,2*st,2*j);break}kt+=Te;case"rectRot":_=Math.cos(kt)*Dt,E=Math.sin(kt)*Dt,h.moveTo(o-_,c-E),h.lineTo(o+E,c-_),h.lineTo(o+_,c+E),h.lineTo(o-E,c+_),h.closePath();break;case"crossRot":kt+=Te;case"cross":_=Math.cos(kt)*Dt,E=Math.sin(kt)*Dt,h.moveTo(o-_,c-E),h.lineTo(o+_,c+E),h.moveTo(o+E,c-_),h.lineTo(o-E,c+_);break;case"star":_=Math.cos(kt)*Dt,E=Math.sin(kt)*Dt,h.moveTo(o-_,c-E),h.lineTo(o+_,c+E),h.moveTo(o+E,c-_),h.lineTo(o-E,c+_),kt+=Te,_=Math.cos(kt)*Dt,E=Math.sin(kt)*Dt,h.moveTo(o-_,c-E),h.lineTo(o+_,c+E),h.moveTo(o+E,c-_),h.lineTo(o-E,c+_);break;case"line":_=p?p/2:Math.cos(kt)*Dt,E=Math.sin(kt)*Dt,h.moveTo(o-_,c-E),h.lineTo(o+_,c+E);break;case"dash":h.moveTo(o,c),h.lineTo(o+Math.cos(kt)*Dt,c+Math.sin(kt)*Dt)}h.fill(),n.borderWidth>0&&h.stroke()}}function xn(h,n,o){return o=o||.5,!n||h&&h.x>n.left-o&&h.x<n.right+o&&h.y>n.top-o&&h.y<n.bottom+o}function Ji(h,n){h.save(),h.beginPath(),h.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),h.clip()}function Xn(h){h.restore()}function hs(h,n,o,c,p){if(!n)return h.lineTo(o.x,o.y);if("middle"===p){const m=(n.x+o.x)/2;h.lineTo(m,n.y),h.lineTo(m,o.y)}else"after"===p!=!!c?h.lineTo(n.x,o.y):h.lineTo(o.x,n.y);h.lineTo(o.x,o.y)}function fs(h,n,o,c){if(!n)return h.lineTo(o.x,o.y);h.bezierCurveTo(c?n.cp1x:n.cp2x,c?n.cp1y:n.cp2y,c?o.cp2x:o.cp1x,c?o.cp2y:o.cp1y,o.x,o.y)}function zn(h,n,o,c,p,m={}){const _=F(n)?n:[n],E=m.strokeWidth>0&&""!==m.strokeColor;let j,G;for(h.save(),h.font=p.string,st=h,(ot=m).translation&&st.translate(ot.translation[0],ot.translation[1]),K(ot.rotation)||st.rotate(ot.rotation),ot.color&&(st.fillStyle=ot.color),ot.textAlign&&(st.textAlign=ot.textAlign),ot.textBaseline&&(st.textBaseline=ot.textBaseline),j=0;j<_.length;++j)G=_[j],E&&(m.strokeColor&&(h.strokeStyle=m.strokeColor),K(m.strokeWidth)||(h.lineWidth=m.strokeWidth),h.strokeText(G,o,c,m.maxWidth)),h.fillText(G,o,c,m.maxWidth),f(h,o,c,G,m),c+=p.lineHeight;var st,ot;h.restore()}function f(h,n,o,c,p){if(p.strikethrough||p.underline){const m=h.measureText(c),_=n-m.actualBoundingBoxLeft,E=n+m.actualBoundingBoxRight,j=o-m.actualBoundingBoxAscent,G=o+m.actualBoundingBoxDescent,st=p.strikethrough?(j+G)/2:G;h.strokeStyle=h.fillStyle,h.beginPath(),h.lineWidth=p.decorationWidth||2,h.moveTo(_,st),h.lineTo(E,st),h.stroke()}}function P(h,n){const{x:o,y:c,w:p,h:m,radius:_}=n;h.arc(o+_.topLeft,c+_.topLeft,_.topLeft,-he,mt,!0),h.lineTo(o,c+m-_.bottomLeft),h.arc(o+_.bottomLeft,c+m-_.bottomLeft,_.bottomLeft,mt,he,!0),h.lineTo(o+p-_.bottomRight,c+m),h.arc(o+p-_.bottomRight,c+m-_.bottomRight,_.bottomRight,he,0,!0),h.lineTo(o+p,c+_.topRight),h.arc(o+p-_.topRight,c+_.topRight,_.topRight,0,-he,!0),h.lineTo(o+_.topLeft,c)}function q(h,n=[""],o=h,c,p=(()=>h[0])){ft(c)||(c=li("_fallback",h));const m={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:h,_rootScopes:o,_fallback:c,_getTarget:p,override:_=>q([_,...h],n,o,c)};return new Proxy(m,{deleteProperty:(_,E)=>(delete _[E],delete _._keys,delete h[0][E],!0),get:(_,E)=>ht(_,E,()=>function(j,G,st,ot){let gt;for(const Dt of G)if(gt=li(rt(Dt,j),st),ft(gt))return bt(j,gt)?ve(st,ot,j,gt):gt}(E,n,h,_)),getOwnPropertyDescriptor:(_,E)=>Reflect.getOwnPropertyDescriptor(_._scopes[0],E),getPrototypeOf:()=>Reflect.getPrototypeOf(h[0]),has:(_,E)=>mi(_).includes(E),ownKeys:_=>mi(_),set(_,E,j){const G=_._storage||(_._storage=p());return _[E]=G[E]=j,delete _._keys,!0}})}function Z(h,n,o,c){const p={_cacheable:!1,_proxy:h,_context:n,_subProxy:o,_stack:new Set,_descriptors:ct(h,c),setContext:m=>Z(h,m,o,c),override:m=>Z(h.override(m),n,o,c)};return new Proxy(p,{deleteProperty:(m,_)=>
1(delete m[_],delete h[_],!0),get:(m,_,E)=>ht(m,_,()=>function(j,G,st){const{_proxy:ot,_context:gt,_subProxy:Dt,_descriptors:kt}=j;let Pt=ot[G];return Rt(Pt)&&kt.isScriptable(G)&&(Pt=function(jt,Jt,le,me){const{_proxy:_e,_context:Fe,_subProxy:qe,_stack:Qe}=le;if(Qe.has(jt))throw new Error("Recursion detected: "+Array.from(Qe).join("->")+"->"+jt);return Qe.add(jt),Jt=Jt(Fe,qe||me),Qe.delete(jt),bt(jt,Jt)&&(Jt=ve(_e._scopes,_e,jt,Jt)),Jt}(G,Pt,j,st)),F(Pt)&&Pt.length&&(Pt=function(jt,Jt,le,me){const{_proxy:_e,_context:Fe,_subProxy:qe,_descriptors:Qe}=le;if(ft(Fe.index)&&me(jt))Jt=Jt[Fe.index%Jt.length];else if(l(Jt[0])){const fi=Jt,ui=_e._scopes.filter(ti=>ti!==fi);Jt=[];for(const ti of fi){const _i=ve(ui,_e,jt,ti);Jt.push(Z(_i,Fe,qe&&qe[jt],Qe))}}return Jt}(G,Pt,j,kt.isIndexable)),bt(G,Pt)&&(Pt=Z(Pt,gt,Dt&&Dt[G],kt)),Pt}(m,_,E)),getOwnPropertyDescriptor:(m,_)=>m._descriptors.allKeys?Reflect.has(h,_)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(h,_),getPrototypeOf:()=>Reflect.getPrototypeOf(h),has:(m,_)=>Reflect.has(h,_),ownKeys:()=>Reflect.ownKeys(h),set:(m,_,E)=>(h[_]=E,delete m[_],!0)})}function ct(h,n={scriptable:!0,indexable:!0}){const{_scriptable:o=n.scriptable,_indexable:c=n.indexable,_allKeys:p=n.allKeys}=h;return{allKeys:p,scriptable:o,indexable:c,isScriptable:Rt(o)?o:()=>o,isIndexable:Rt(c)?c:()=>c}}const rt=(h,n)=>h?h+tt(n):n,bt=(h,n)=>l(n)&&"adapters"!==h&&(null===Object.getPrototypeOf(n)||n.constructor===Object);function ht(h,n,o){if(Object.prototype.hasOwnProperty.call(h,n))return h[n];const c=o();return h[n]=c,c}function Nt(h,n,o){return Rt(h)?h(n,o):h}const Yt=(h,n)=>!0===h?n:"string"==typeof h?z(n,h):void 0;function oe(h,n,o,c,p){for(const m of n){const _=Yt(o,m);if(_){h.add(_);const E=Nt(_._fallback,o,p);if(ft(E)&&E!==o&&E!==c)return E}else if(!1===_&&ft(c)&&o!==c)return null}return!1}function ve(h,n,o,c){const p=n._rootScopes,m=Nt(n._fallback,o,c),_=[...h,...p],E=new Set;E.add(c);let j=Pe(E,_,o,m||o,c);
vendor: 4,337 bytes, line 1
1return null!==j&&(!ft(m)||m===o||(j=Pe(E,_,m,j,c),null!==j))&&q(Array.from(E),[""],p,m,()=>function(G,st,ot){const gt=G._getTarget();st in gt||(gt[st]={});const Dt=gt[st];return F(Dt)&&l(ot)?ot:Dt}(n,o,c))}function Pe(h,n,o,c,p){for(;o;)o=oe(h,n,o,c,p);return o}function li(h,n){for(const o of n){if(!o)continue;const c=o[h];if(ft(c))return c}}function mi(h){let n=h._keys;return n||(n=h._keys=function(o){const c=new Set;for(const p of o)for(const m of Object.keys(p).filter(_=>!_.startsWith("_")))c.add(m);return Array.from(c)}(h._scopes)),n}function Oe(h,n,o,c){const{iScale:p}=h,{key:m="r"}=this._parsing,_=new Array(c);let E,j,G,st;for(E=0,j=c;E<j;++E)G=E+o,st=n[G],_[E]={r:p.parse(z(st,m),G)};return _}const Ri=Number.EPSILON||1e-14,nn=(h,n)=>n<h.length&&!h[n].skip&&h[n],un=h=>"x"===h?"y":"x";function Fn(h,n,o,c){const p=h.skip?n:h,m=n,_=o.skip?n:o,E=Ht(m,p),j=Ht(_,m);let G=E/(E+j),st=j/(E+j);G=isNaN(G)?0:G,st=isNaN(st)?0:st;const ot=c*G,gt=c*st;return{previous:{x:m.x-ot*(_.x-p.x),y:m.y-ot*(_.y-p.y)},next:{x:m.x+gt*(_.x-p.x),y:m.y+gt*(_.y-p.y)}}}function dn(h,n="x"){const o=un(n),c=h.length,p=Array(c).fill(0),m=Array(c);let _,E,j,G=nn(h,0);for(_=0;_<c;++_)if(E=j,j=G,G=nn(h,_+1),j){if(G){const st=G[n]-j[n];p[_]=0!==st?(G[o]-j[o])/st:0}m[_]=E?G?w(p[_-1])!==w(p[_])?0:(p[_-1]+p[_])/2:p[_-1]:p[_]}(function(st,ot,gt){const Dt=st.length;let kt,Pt,jt,Jt,le,me=nn(st,0);for(let _e=0;_e<Dt-1;++_e)le=me,me=nn(st,_e+1),le&&me&&(yt(ot[_e],0,Ri)?gt[_e]=gt[_e+1]=0:(kt=gt[_e]/ot[_e],Pt=gt[_e+1]/ot[_e],Jt=Math.pow(kt,2)+Math.pow(Pt,2),Jt<=9||(jt=3/Math.sqrt(Jt),gt[_e]=kt*jt*ot[_e],gt[_e+1]=Pt*jt*ot[_e])))})(h,p,m),function(st,ot,gt="x"){const Dt=un(gt),kt=st.length;let Pt,jt,Jt,le=nn(st,0);for(let me=0;me<kt;++me){if(jt=Jt,Jt=le,le=nn(st,me+1),!Jt)continue;const _e=Jt[gt],Fe=Jt[Dt];jt&&(Pt=(_e-jt[gt])/3,Jt[`cp1${gt}`]=_e-Pt,Jt[`cp1${Dt}`]=Fe-Pt*ot[me]),le&&(Pt=(le[gt]-_e)/3,Jt[`cp2${gt}`]=_e+Pt,Jt[`cp2${Dt}`]=Fe+Pt*ot[me])}}(h,m,n)}function Li(h,n,o){return Math.max(Math.min(h,o),n)}function zi(h,n,o,c,p){let m,_,E,j;if(n.spanGaps&&(h=h.filter(G=>!G.skip)),"monotone"===n.cubicInterpolationMode)dn(h,p);else{let G=c?h[h.length-1]:h[0];for(m=0,_=h.length;m<_;++m)E=h[m],j=Fn(G,E,h[Math.min(m+1,_-(c?0:1))%_],n.tension),E.cp1x=j.previous.x,E.cp1y=j.previous.y,E.cp2x=j.next.x,E.cp2y=j.next.y,G=E}n.capBezierPoints&&function(G,st){let ot,gt,Dt,kt,Pt,jt=xn(G[0],st);for(ot=0,gt=G.length;ot<gt;++ot)Pt=kt,kt=jt,jt=ot<gt-1&&xn(G[ot+1],st),kt&&(Dt=G[ot],Pt&&(Dt.cp1x=Li(Dt.cp1x,st.left,st.right),Dt.cp1y=Li(Dt.cp1y,st.top,st.bottom)),jt&&(Dt.cp2x=Li(Dt.cp2x,st.left,st.right),Dt.cp2y=Li(Dt.cp2y,st.top,st.bottom)))}(h,o)}const Cn=h=>0===h||1===h,_n=(h,n,o)=>-Math.pow(2,10*(h-=1))*Math.sin((h-n)*wt/o),Nn=(h,n,o)=>Math.pow(2,-10*h)*Math.sin((h-n)*wt/o)+1,tn={linear:h=>h,easeInQuad:h=>h*h,easeOutQuad:h=>-h*(h-2),easeInOutQuad:h=>(h/=.5)<1?.5*h*h:-.5*(--h*(h-2)-1),easeInCubic:h=>h*h*h,easeOutCubic:h=>(h-=1)*h*h+1,easeInOutCubic:h=>(h/=.5)<1?.5*h*h*h:.5*((h-=2)*h*h+2),easeInQuart:h=>h*h*h*h,easeOutQuart:h=>-((h-=1)*h*h*h-1),easeInOutQuart:h=>(h/=.5)<1?.5*h*h*h*h:-.5*((h-=2)*h*h*h-2),easeInQuint:h=>h*h*h*h*h,easeOutQuint:h=>(h-=1)*h*h*h*h+1,easeInOutQuint:h=>(h/=.5)<1?.5*h*h*h*h*h:.5*((h-=2)*h*h*h*h+2),easeInSine:h=>1-Math.cos(h*he),easeOutSine:h=>Math.sin(h*he),easeInOutSine:h=>-.5*(Math.cos(mt*h)-1),easeInExpo:h=>0===h?0:Math.pow(2,10*(h-1)),easeOutExpo:h=>1===h?1:1-Math.pow(2,-10*h),easeInOutExpo:h=>Cn(h)?h:h<.5?.5*Math.pow(2,10*(2*h-1)):.5*(2-Math.pow(2,-10*(2*h-1))),easeInCirc:h=>h>=1?h:-(Math.sqrt(1-h*h)-1),easeOutCirc:h=>Math.sqrt(1-(h-=1)*h),easeInOutCirc:h=>(h/=.5)<1?-.5*(Math.sqrt(1-h*h)-1):.5*(Math.sqrt(1-(h-=2)*h)+1),easeInElastic:h=>Cn(h)?h:_n(h,.075,.3),easeOutElastic:h=>Cn(h)?h:Nn(h,.075,.3),easeInOutElastic:h=>Cn(h)?h:h<.5?.5*_n(2*h,.1125,.45):.5+.5*Nn(2*h-1,.1125,.45),easeInBack:h=>h*h*(2.70158*h-1.70158),easeOutBack:h=>(h-=1)*h*(2.70158*h+1.70158)+1,easeInOutBack(h){let n=1.70158;return(h/=.5)<1?h*h*((1+(n*=1.525))*h-n)*.5:.5*((h-=2)*h*((1+(n*=1.525))*h+n)+2)},easeInBounce:h=>1-tn.easeOutBounce(1-h),easeOutBounce:h=>h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375,easeInOutBounce:h=>h<.5?.5*tn.easeInBounce(2*h):.5*tn.easeOutBounce(2*h-1)+.5};function Dn(h,n,o,c){return{x:h.x+o*(n.x-h.x),y:h.y+o*(n.y-h.y)}}
vendor: 4,181 bytes, line 1
1function ts(h,n,o,c){return{x:h.x+o*(n.x-h.x),y:"middle"===c?o<.5?h.y:n.y:"after"===c?o<1?h.y:n.y:o>0?n.y:h.y}}function On(h,n,o,c){const p={x:h.cp2x,y:h.cp2y},m={x:n.cp1x,y:n.cp1y},_=Dn(h,p,o),E=Dn(p,m,o),j=Dn(m,n,o),G=Dn(_,E,o),st=Dn(E,j,o);return Dn(G,st,o)}const y=new Map;function B(h,n,o){return function(c,p){p=p||{};const m=c+JSON.stringify(p);let _=y.get(m);return _||(_=new Intl.NumberFormat(c,p),y.set(m,_)),_}(n,o).format(h)}const J=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Q=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function _t(h,n){const o=(""+h).match(J);if(!o||"normal"===o[1])return 1.2*n;switch(h=+o[2],o[3]){case"px":return h;case"%":h/=100}return n*h}function Ct(h,n){const o={},c=l(n),p=c?Object.keys(n):n,m=l(h)?c?_=>u(h[_],h[n[_]]):_=>h[_]:()=>h;for(const _ of p)o[_]=+m(_)||0;return o}function Mt(h){return Ct(h,{top:"y",right:"x",bottom:"y",left:"x"})}function te(h){return Ct(h,["topLeft","topRight","bottomLeft","bottomRight"])}function ie(h){const n=Mt(h);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function re(h,n){let o=u((h=h||{}).size,(n=n||di.font).size);"string"==typeof o&&(o=parseInt(o,10));let c=u(h.style,n.style);c&&!(""+c).match(Q)&&(console.warn('Invalid font style specified: "'+c+'"'),c="");const p={family:u(h.family,n.family),lineHeight:_t(u(h.lineHeight,n.lineHeight),o),size:o,style:c,weight:u(h.weight,n.weight),string:""};return p.string=wn(p),p}function Ie(h,n,o,c){let p,m,_,E=!0;for(p=0,m=h.length;p<m;++p)if(_=h[p],void 0!==_&&(void 0!==n&&"function"==typeof _&&(_=_(n),E=!1),void 0!==o&&F(_)&&(_=_[o%_.length],E=!1),void 0!==_))return c&&!E&&(c.cacheable=!1),_}function je(h,n,o){const{min:c,max:p}=h,m=L(n,(p-c)/2),_=(E,j)=>o&&0===E?0:E+j;return{min:_(c,-Math.abs(m)),max:_(p,m)}}function ke(h,n){return Object.assign(Object.create(h),n)}function Be(h,n,o){return h?(c=n,p=o,{x:m=>c+c+p-m,setWidth(m){p=m},textAlign:m=>"center"===m?m:"right"===m?"left":"right",xPlus:(m,_)=>m-_,leftForLtr:(m,_)=>m-_}):{x:c=>c,setWidth(c){},textAlign:c=>c,xPlus:(c,p)=>c+p,leftForLtr:(c,p)=>c};var c,p}function pi(h,n){let o,c;"ltr"!==n&&"rtl"!==n||(o=h.canvas.style,c=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",n,"important"),h.prevTextDirection=c)}function oi(h,n){void 0!==n&&(delete h.prevTextDirection,h.canvas.style.setProperty("direction",n[0],n[1]))}function gi(h){return"angle"===h?{between:zt,compare:Gt,normalize:ge}:{between:Xe,compare:(n,o)=>n-o,normalize:n=>n}}function Ki({start:h,end:n,count:o,loop:c,style:p}){return{start:h%o,end:n%o,loop:c&&(n-h+1)%o==0,style:p}}function Vi(h,n,o){if(!o)return[h];const{property:c,start:p,end:m}=o,_=n.length,{compare:E,between:j,normalize:G}=gi(c),{start:st,end:ot,loop:gt,style:Dt}=function(qe,Qe,fi){const{property:ui,start:ti,end:_i}=fi,{between:bi,normalize:xi}=gi(ui),Ze=Qe.length;let wi,Gi,{start:An,end:jn,loop:ns}=qe;if(ns){for(An+=Ze,jn+=Ze,wi=0,Gi=Ze;wi<Gi&&bi(xi(Qe[An%Ze][ui]),ti,_i);++wi)An--,jn--;An%=Ze,jn%=Ze}return jn<An&&(jn+=Ze),{start:An,end:jn,loop:ns,style:qe.style}}(h,n,o),kt=[];let Pt,jt,Jt,le=!1,me=null;for(let qe=st,Qe=st;qe<=ot;++qe)jt=n[qe%_],jt.skip||(Pt=G(jt[c]),Pt!==Jt&&(le=j(Pt,p,m),null===me&&(le||j(p,Jt,Pt)&&0!==E(p,Jt))&&(me=0===E(Pt,p)?qe:Qe),null!==me&&(!le||0===E(m,Pt)||j(m,Jt,Pt))&&(kt.push(Ki({start:me,end:qe,loop:gt,count:_,style:Dt})),me=null),Qe=qe,Jt=Pt));return null!==me&&kt.push(Ki({start:me,end:ot,loop:gt,count:_,style:Dt})),kt}function kn(h,n){const o=[],c=h.segments;for(let p=0;p<c.length;p++){const m=Vi(c[p],h.points,n);m.length&&o.push(...m)}return o}function bs(h,n){const o=h.points,c=h.options.spanGaps,p=o.length;if(!p)return[];const m=!!h._loop,{start:_,end:E}=function(j,G,st,ot){let gt=0,Dt=G-1;if(st&&!ot)for(;gt<G&&!j[gt].skip;)gt++;for(;gt<G&&j[gt].skip;)gt++;for(gt%=G,st&&(Dt+=gt);Dt>gt&&j[Dt%G].skip;)Dt--;return Dt%=G,{start:gt,end:Dt}}(o,p,m,c);return function Hi(h,n,o,c){return c&&c.setContext&&o?function(p,m,_,E){const j=p._chart.getContext(),G=sn(p.options),{_datasetIndex:st,options:{spanGaps:ot}}=p,gt=_.length,Dt=[];let kt=G,Pt=m[0].start,jt=Pt;function Jt(le,me,_e,Fe){const qe=ot?-1:1;
vendor: 23,743 bytes, line 1
1if(le!==me){for(le+=gt;_[le%gt].skip;)le-=qe;for(;_[me%gt].skip;)me+=qe;le%gt!=me%gt&&(Dt.push({start:le%gt,end:me%gt,loop:_e,style:Fe}),kt=Fe,Pt=me%gt)}}for(const le of m){Pt=ot?Pt:le.start;let me,_e=_[Pt%gt];for(jt=Pt+1;jt<=le.end;jt++){const Fe=_[jt%gt];me=sn(E.setContext(ke(j,{type:"segment",p0:_e,p1:Fe,p0DataIndex:(jt-1)%gt,p1DataIndex:jt%gt,datasetIndex:st}))),Mi(me,kt)&&Jt(Pt,jt-1,le.loop,kt),_e=Fe,kt=me}Pt<jt-1&&Jt(Pt,jt-1,le.loop,kt)}return Dt}(h,n,o,c):n}(h,!0===c?[{start:_,end:E,loop:m}]:function(j,G,st,ot){const gt=j.length,Dt=[];let kt,Pt=G,jt=j[G];for(kt=G+1;kt<=st;++kt){const Jt=j[kt%gt];Jt.skip||Jt.stop?jt.skip||(Dt.push({start:G%gt,end:(kt-1)%gt,loop:ot=!1}),G=Pt=Jt.stop?kt:null):(Pt=kt,jt.skip&&(G=kt)),jt=Jt}return null!==Pt&&Dt.push({start:G%gt,end:Pt%gt,loop:ot}),Dt}(o,_,E<_?E+p:E,!!h._fullLoop&&0===_&&E===p-1),o,n)}function sn(h){return{backgroundColor:h.backgroundColor,borderCapStyle:h.borderCapStyle,borderDash:h.borderDash,borderDashOffset:h.borderDashOffset,borderJoinStyle:h.borderJoinStyle,borderWidth:h.borderWidth,borderColor:h.borderColor}}function Mi(h,n){return n&&JSON.stringify(h)!==JSON.stringify(n)}var Yi=Object.freeze({__proto__:null,easingEffects:tn,isPatternOrGradient:Di,color:ai,getHoverColor:Wi,noop:i,uid:D,isNullOrUndef:K,isArray:F,isObject:l,isFinite:r,finiteOrDefault:a,valueOrDefault:u,toPercentage:b,toDimension:L,callback:W,each:R,_elementsEqual:k,clone:N,_merger:x,merge:S,mergeIf:A,_mergerIf:O,_deprecated:function(h,n,o,c){void 0!==n&&console.warn(h+': "'+o+'" is deprecated. Please use "'+c+'" instead')},resolveObjectKey:z,_splitKey:v,_capitalize:tt,defined:ft,isFunction:Rt,setsEqual:lt,_isClickEvent:at,toFontString:wn,_measureText:ps,_longestText:vs,_alignPixel:Jn,clearCanvas:In,drawPoint:Hn,drawPointLegend:Vn,_isPointInArea:xn,clipArea:Ji,unclipArea:Xn,_steppedLineTo:hs,_bezierCurveTo:fs,renderText:zn,addRoundedRectPath:P,_lookup:Tt,_lookupByKey:$t,_rlookupByKey:ee,_filterBetween:ne,listenArrayEvents:ue,unlistenArrayEvents:fe,_arrayUnique:Le,_createResolver:q,_attachContext:Z,_descriptors:ct,_parseObjectDataRadialScale:Oe,splineCurve:Fn,splineCurveMonotone:dn,_updateBezierControlPoints:zi,_isDomSupported:Gn,_getParentNode:En,getStyle:en,getRelativePosition:Mn,getMaximumSize:ms,retinaScale:Ss,supportsEventListenerOptions:ds,readUsedSize:ss,fontString:function(h,n,o){return n+" "+h+"px "+o},requestAnimFrame:e,throttled:s,debounce:d,_toLeftRightCenter:g,_alignStartEnd:C,_textX:U,_getStartAndCountOfVisiblePoints:nt,_scaleRangesChanged:ut,_pointInLine:Dn,_steppedInterpolation:ts,_bezierInterpolation:On,formatNumber:B,toLineHeight:_t,_readValueToProps:Ct,toTRBL:Mt,toTRBLCorners:te,toPadding:ie,toFont:re,resolve:Ie,_addGrace:je,createContext:ke,PI:mt,TAU:wt,PITAU:qt,INFINITY:ae,RAD_PER_DEG:ye,HALF_PI:he,QUARTER_PI:Te,TWO_THIRDS_PI:Ne,log10:Ot,sign:w,niceNum:Y,_factorize:V,isNumber:it,almostEquals:yt,almostWhole:It,_setMinAndMaxByKey:Lt,toRadians:Ut,toDegrees:de,_decimalPlaces:be,getAngleFromPoint:dt,distanceBetweenPoints:Ht,_angleDiff:Gt,_normalizeAngle:ge,_angleBetween:zt,_limitValue:Ee,_int16Range:ze,_isBetween:Xe,getRtlAdapter:Be,overrideTextDirection:pi,restoreTextDirection:oi,_boundSegment:Vi,_boundSegments:kn,_computeSegments:bs});function Ps(h,n,o,c){const{controller:p,data:m,_sorted:_}=h,E=p._cachedMeta.iScale;if(E&&n===E.axis&&"r"!==n&&_&&m.length){const j=E._reversePixels?ee:$t;if(!c)return j(m,n,o);if(p._sharedOptions){const G=m[0],st="function"==typeof G.getRange&&G.getRange(n);if(st){const ot=j(m,n,o-st),gt=j(m,n,o+st);return{lo:ot.lo,hi:gt.hi}}}}return{lo:0,hi:m.length-1}}function ys(h,n,o,c,p){const m=h.getSortedVisibleDatasetMetas(),_=o[n];for(let E=0,j=m.length;E<j;++E){const{index:G,data:st}=m[E],{lo:ot,hi:gt}=Ps(m[E],n,_,p);for(let Dt=ot;Dt<=gt;++Dt){const kt=st[Dt];kt.skip||c(kt,G,Dt)}}}function os(h,n,o,c,p){const m=[];return!p&&!h.isPointInArea(n)||ys(h,o,n,function(_,E,j){(p||xn(_,h.chartArea,0))&&_.inRange(n.x,n.y,c)&&m.push({element:_,datasetIndex:E,index:j})},!0),m}function rs(h,n,o,c,p,m){return m||h.isPointInArea(n)?"r"!==o||c?function Es(h,n,o,c,p,m){let _=[];const E=function(G){const st=-1!==G.indexOf("x"),ot=-1!==G.indexOf("y");return function(gt,Dt){const kt=st?Math.abs(gt.x-Dt.x):0,Pt=ot?Math.abs(gt.y-Dt.y):0;return Math.sqrt(Math.pow(kt,2)+Math.pow(Pt,2))}}(o);let j=Number.POSITIVE_INFINITY;return ys(h,o,n,function(G,st,ot){const gt=G.inRange(n.x,n.y,p);if(c&&!gt)return;const Dt=G.getCenterPoint(p);if(!m&&!h.isPointInArea(Dt)&&!gt)return;const kt=E(n,Dt);kt<j?(_=[{element:G,datasetIndex:st,index:ot}],j=kt):kt===j&&_.push({element:G,datasetIndex:st,index:ot})}),_}(h,n,o,c,p,m):function(_,E,j,G){let st=[];return ys(_,j,E,function(ot,gt,Dt){const{startAngle:kt,endAngle:Pt}=ot.getProps(["startAngle","endAngle"],G),{angle:jt}=dt(ot,{x:E.x,y:E.y});zt(jt,kt,Pt)&&st.push({element:ot,datasetIndex:gt,index:Dt})}),st}(h,n,o,p):[]}function as(h,n,o,c,p){const m=[],_="x"===o?"inXRange":"inYRange";let E=!1;return ys(h,o,n,(j,G,st)=>{j[_](n[o],p)&&(m.push({element:j,datasetIndex:G,index:st}),E=E||j.inRange(n.x,n.y,p))}),c&&!E?[]:m}var xs={evaluateInteractionItems:ys,modes:{index(h,n,o,c){const p=Mn(n,h),m=o.axis||"x",_=o.includeInvisible||!1,E=o.intersect?os(h,p,m,c,_):rs(h,p,m,!1,c,_),j=[];return E.length?(h.getSortedVisibleDatasetMetas().forEach(G=>{const st=E[0].index,ot=G.data[st];ot&&!ot.skip&&j.push({element:ot,datasetIndex:G.index,index:st})}),j):[]},dataset(h,n,o,c){const p=Mn(n,h),m=o.axis||"xy",_=o.includeInvisible||!1;let E=o.intersect?os(h,p,m,c,_):rs(h,p,m,!1,c,_);if(E.length>0){const j=E[0].datasetIndex,G=h.getDatasetMeta(j).data;E=[];for(let st=0;st<G.length;++st)E.push({element:G[st],datasetIndex:j,index:st})}return E},point:(h,n,o,c)=>os(h,Mn(n,h),o.axis||"xy",c,o.includeInvisible||!1),nearest:(h,n,o,c)=>rs(h,Mn(n,h),o.axis||"xy",o.intersect,c,o.includeInvisible||!1),x:(h,n,o,c)=>as(h,Mn(n,h),"x",o.intersect,c),y:(h,n,o,c)=>as(h,Mn(n,h),"y",o.intersect,c)}};const gn=["left","top","right","bottom"];function cn(h,n){return h.filter(o=>o.pos===n)}function Pn(h,n){return h.filter(o=>-1===gn.indexOf(o.pos)&&o.box.axis===n)}function pn(h,n){return h.sort((o,c)=>{const p=n?c:o,m=n?o:c;return p.weight===m.weight?p.index-m.index:p.weight-m.weight})}function vi(h,n,o,c){return Math.max(h[o],n[o])+Math.max(h[c],n[c])}function T(h,n){h.top=Math.max(h.top,n.top),h.left=Math.max(h.left,n.left),h.bottom=Math.max(h.bottom,n.bottom),h.right=Math.max(h.right,n.right)}function X(h,n,o,c){const{pos:p,box:m}=o,_=h.maxPadding;if(!l(p)){o.size&&(h[p]-=o.size);const ot=c[o.stack]||{size:0,count:1};ot.size=Math.max(ot.size,o.horizontal?m.height:m.width),o.size=ot.size/ot.count,h[p]+=o.size}m.getPadding&&T(_,m.getPadding());const E=Math.max(0,n.outerWidth-vi(_,h,"left","right")),j=Math.max(0,n.outerHeight-vi(_,h,"top","bottom")),G=E!==h.w,st=j!==h.h;return h.w=E,h.h=j,o.horizontal?{same:G,other:st}:{same:st,other:G}}function pt(h,n){const o=n.maxPadding;return function c(p){const m={left:0,top:0,right:0,bottom:0};return p.forEach(_=>{m[_]=Math.max(n[_],o[_])}),m}(h?["left","right"]:["top","bottom"])}function Et(h,n,o,c){const p=[];let m,_,E,j,G,st;for(m=0,_=h.length,G=0;m<_;++m){E=h[m],j=E.box,j.update(E.width||n.w,E.height||n.h,pt(E.horizontal,n));const{same:ot,other:gt}=X(n,o,E,c);G|=ot&&p.length,st=st||gt,j.fullSize||p.push(E)}return G&&Et(p,n,o,c)||st}function se(h,n,o,c,p){h.top=o,h.left=n,h.right=n+c,h.bottom=o+p,h.width=c,h.height=p}function Ae(h,n,o,c){const p=o.padding;let{x:m,y:_}=n;for(const E of h){const j=E.box,G=c[E.stack]||{count:1,placed:0,weight:1},st=E.stackWeight/G.weight||1;if(E.horizontal){const ot=n.w*st,gt=G.size||j.height;ft(G.start)&&(_=G.start),j.fullSize?se(j,p.left,_,o.outerWidth-p.right-p.left,gt):se(j,n.left+G.placed,_,ot,gt),G.start=_,G.placed+=ot,_=j.bottom}else{const ot=n.h*st,gt=G.size||j.width;ft(G.start)&&(m=G.start),j.fullSize?se(j,m,p.top,gt,o.outerHeight-p.bottom-p.top):se(j,m,n.top+G.placed,gt,ot),G.start=m,G.placed+=ot,m=j.right}}n.x=m,n.y=_}di.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Re={addBox(h,n){h.boxes||(h.boxes=[]),n.fullSize=n.fullSize||!1,n.position=n.position||"top",n.weight=n.weight||0,n._layers=n._layers||function(){return[{z:0,draw(o){n.draw(o)}}]},h.boxes.push(n)},removeBox(h,n){const o=h.boxes?h.boxes.indexOf(n):-1;-1!==o&&h.boxes.splice(o,1)},configure(h,n,o){n.fullSize=o.fullSize,n.position=o.position,n.weight=o.weight},update(h,n,o,c){if(!h)return;const p=ie(h.options.layout.padding),m=Math.max(n-p.width,0),_=Math.max(o-p.height,0),E=function(Pt){const jt=function(fi){const ui=[];let ti,_i,bi,xi,Ze,wi;for(ti=0,_i=(fi||[]).length;ti<_i;++ti)bi=fi[ti],({position:xi,options:{stack:Ze,stackWeight:wi=1}}=bi),ui.push({index:ti,box:bi,pos:xi,horizontal:bi.isHorizontal(),weight:bi.weight,stack:Ze&&xi+Ze,stackWeight:wi});return ui}(Pt),Jt=pn(jt.filter(fi=>fi.box.fullSize),!0),le=pn(cn(jt,"left"),!0),me=pn(cn(jt,"right")),_e=pn(cn(jt,"top"),!0),Fe=pn(cn(jt,"bottom")),qe=Pn(jt,"x"),Qe=Pn(jt,"y");return{fullSize:Jt,leftAndTop:le.concat(_e),rightAndBottom:me.concat(Qe).concat(Fe).concat(qe),chartArea:cn(jt,"chartArea"),vertical:le.concat(me).concat(Qe),horizontal:_e.concat(Fe).concat(qe)}}(h.boxes),j=E.vertical,G=E.horizontal;R(h.boxes,Pt=>{"function"==typeof Pt.beforeLayout&&Pt.beforeLayout()});const st=j.reduce((Pt,jt)=>jt.box.options&&!1===jt.box.options.display?Pt:Pt+1,0)||1,ot=Object.freeze({outerWidth:n,outerHeight:o,padding:p,availableWidth:m,availableHeight:_,vBoxMaxWidth:m/2/st,hBoxMaxHeight:_/2}),gt=Object.assign({},p);T(gt,ie(c));const Dt=Object.assign({maxPadding:gt,w:m,h:_,x:p.left,y:p.top},p),kt=function qn(h,n){const o=function(j){const G={};for(const st of j){const{stack:ot,pos:gt,stackWeight:Dt}=st;if(!ot||!gn.includes(gt))continue;const kt=G[ot]||(G[ot]={count:0,placed:0,weight:0,size:0});kt.count++,kt.weight+=Dt}return G}(h),{vBoxMaxWidth:c,hBoxMaxHeight:p}=n;let m,_,E;for(m=0,_=h.length;m<_;++m){E=h[m];const{fullSize:j}=E.box,G=o[E.stack],st=G&&E.stackWeight/G.weight;E.horizontal?(E.width=st?st*c:j&&n.availableWidth,E.height=p):(E.width=c,E.height=st?st*p:j&&n.availableHeight)}return o}(j.concat(G),ot);Et(E.fullSize,Dt,ot,kt),Et(j,Dt,ot,kt),Et(G,Dt,ot,kt)&&Et(j,Dt,ot,kt),function(Pt){const jt=Pt.maxPadding;function Jt(le){const me=Math.max(jt[le]-Pt[le],0);return Pt[le]+=me,me}Pt.y+=Jt("top"),Pt.x+=Jt("left"),Jt("right"),Jt("bottom")}(Dt),Ae(E.leftAndTop,Dt,ot,kt),Dt.x+=Dt.w,Dt.y+=Dt.h,Ae(E.rightAndBottom,Dt,ot,kt),h.chartArea={left:Dt.left,top:Dt.top,right:Dt.left+Dt.w,bottom:Dt.top+Dt.h,height:Dt.h,width:Dt.w},R(E.chartArea,Pt=>{const jt=Pt.box;Object.assign(jt,h.chartArea),jt.update(Dt.w,Dt.h,{left:0,top:0,right:0,bottom:0})})}};class Ue{acquireContext(n,o){}releaseContext(n){return!1}addEventListener(n,o,c){}removeEventListener(n,o,c){}getDevicePixelRatio(){return 1}getMaximumSize(n,o,c,p){return o=Math.max(0,o||n.width),c=c||n.height,{width:o,height:Math.max(0,p?Math.floor(o/p):c)}}isAttached(n){return!0}updateConfig(n){}}class $e extends Ue{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}}const Ge={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Xt=h=>null===h||""===h,Zt=!!ds&&{passive:!0};function et(h,n,o){h.canvas.removeEventListener(n,o,Zt)}function St(h,n){for(const o of h)if(o===n||o.contains(n))return!0}function Vt(h,n,o){const c=h.canvas,p=new MutationObserver(m=>{let _=!1;for(const E of m)_=_||St(E.addedNodes,c),_=_&&!St(E.removedNodes,c);_&&o()});return p.observe(document,{childList:!0,subtree:!0}),p}function Ce(h,n,o){const c=h.canvas,p=new MutationObserver(m=>{let _=!1;for(const E of m)_=_||St(E.removedNodes,c),_=_&&!St(E.addedNodes,c);_&&o()});return p.observe(document,{childList:!0,subtree:!0}),p}const Me=new Map;let ei=0;function Si(){const h=window.devicePixelRatio;h!==ei&&(ei=h,Me.forEach((n,o)=>{o.currentDevicePixelRatio!==h&&n()}))}function Ui(h,n,o){const c=h.canvas,p=c&&En(c);if(!p)return;const m=s((E,j)=>{const G=p.clientWidth;o(E,j),G<p.clientWidth&&o()},window),_=new ResizeObserver(E=>{const j=E[0],G=j.contentRect.width,st=j.contentRect.height;0===G&&0===st||m(G,st)});return _.observe(p),E=h,j=m,Me.size||window.addEventListener("resize",Si),Me.set(E,j),_;var E,j}function on(h,n,o){o&&o.disconnect(),"resize"===n&&(Me.delete(h),Me.size||window.removeEventListener("resize",Si))}function Kn(h,n,o){const c=h.canvas,p=s(m=>{null!==h.ctx&&o(function(_,E){const j=Ge[_.type]||_.type,{x:G,y:st}=Mn(_,E);return{type:j,chart:E,native:_,x:void 0!==G?G:null,y:void 0!==st?st:null}}(m,h))},h,m=>{const _=m[0];return[_,_.offsetX,_.offsetY]});return c.addEventListener(n,p,Zt),p}class _s extends Ue{acquireContext(n,o){const c=n&&n.getContext&&n.getContext("2d");return c&&c.canvas===n?(function(p,m){const _=p.style,E=p.getAttribute("height"),j=p.getAttribute("width");if(p.$chartjs={initial:{height:E,width:j,style:{display:_.display,height:_.height,width:_.width}}},_.display=_.display||"block",_.boxSizing=_.boxSizing||"border-box",Xt(j)){const G=ss(p,"width");void 0!==G&&(p.width=G)}if(Xt(E))if(""===p.style.height)p.height=p.width/(m||2);else{const G=ss(p,"height");void 0!==G&&(p.height=G)}}(n,o),c):null}releaseContext(n){const o=n.canvas;if(!o.$chartjs)return!1;const c=o.$chartjs.initial;["height","width"].forEach(m=>{const _=c[m];K(_)?o.removeAttribute(m):o.setAttribute(m,_)});const p=c.style||{};return Object.keys(p).forEach(m=>{o.style[m]=p[m]}),o.width=o.width,delete o.$chartjs,!0}addEventListener(n,o,c){this.removeEventListener(n,o),(n.$proxies||(n.$proxies={}))[o]=({attach:Vt,detach:Ce,resize:Ui}[o]||Kn)(n,o,c)}removeEventListener(n,o){const c=n.$proxies||(n.$proxies={}),p=c[o];!p||(({attach:on,detach:on,resize:on}[o]||et)(n,o,p),c[o]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,o,c,p){return ms(n,o,c,p)}isAttached(n){const o=En(n);return!(!o||!o.isConnected)}}function qi(h){return!Gn()||"undefined"!=typeof OffscreenCanvas&&h instanceof OffscreenCanvas?$e:_s}var Ms=Object.freeze({__proto__:null,_detectPlatform:qi,BasePlatform:Ue,BasicPlatform:$e,DomPlatform:_s});const es="transparent",gs={boolean:(h,n,o)=>o>.5?n:h,color(h,n,o){const c=ai(h||es),p=c.valid&&ai(n||es);return p&&p.valid?p.mix(c,o).hexString():n},number:(h,n,o)=>h+(n-h)*o};class Rs{constructor(n,o,c,p){const m=o[c];p=Ie([n.to,p,m,n.from]);const _=Ie([n.from,m,p]);this._active=!0,this._fn=n.fn||gs[n.type||typeof _],this._easing=tn[n.easing]||tn.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=o,this._prop=c,this._from=_,this._to=p,this._promises=void 0}active(){return this._active}update(n,o,c){if(this._active){this._notify(!1);const p=this._target[this._prop],m=c-this._start,_=this._duration-m;this._start=c,this._duration=Math.floor(Math.max(_,n.duration)),this._total+=m,this._loop=!!n.loop,this._to=Ie([n.to,o,p,n.from]),this._from=Ie([n.from,p,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){const o=n-this._start,c=this._duration,p=this._prop,m=this._from,_=this._loop,E=this._to;let j;if(this._active=m!==E&&(_||o<c),!this._active)return this._target[p]=E,void this._notify(!0);o<0?this._target[p]=m:(j=o/c%2,j=_&&j>1?2-j:j,j=this._easing(Math.min(1,Math.max(0,j))),this._target[p]=this._fn(m,E,j))}wait(){const n=this._promises||(this._promises=[]);return new Promise((o,c)=>{n.push({res:o,rej:c})})}_notify(n){const o=n?"res":"rej",c=this._promises||[];for(let p=0;p<c.length;p++)c[p][o]()}}di.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 zs=Object.keys(di.animation);di.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:h=>"onProgress"!==h&&"onComplete"!==h&&"fn"!==h}),di.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),di.describe("animations",{_fallback:"animation"}),di.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:h=>0|h}}}});class Ws{constructor(n,o){this._chart=n,this._properties=new Map,this.configure(o)}configure(n){if(!l(n))return;const o=this._properties;Object.getOwnPropertyNames(n).forEach(c=>{const p=n[c];if(!l(p))return;const m={};for(const _ of zs)m[_]=p[_];(F(p.properties)&&p.properties||[c]).forEach(_=>{_!==c&&o.has(_)||o.set(_,m)})})}_animateOptions(n,o){const c=o.options,p=function(_,E){if(!E)return;let j=_.options;return j?(j.$shared&&(_.options=j=Object.assign({},j,{$shared:!1,$animations:{}})),j):void(_.options=E)}(n,c);if(!p)return[];const m=this._createAnimations(p,c);return c.$shared&&function(_,E){const j=[],G=Object.keys(E);for(let st=0;st<G.length;st++){const ot=_[G[st]];ot&&ot.active()&&j.push(ot.wait())}return Promise.all(j)}(n.options.$animations,c).then(()=>{n.options=c},()=>{}),m}_createAnimations(n,o){const c=this._properties,p=[],m=n.$animations||(n.$animations={}),_=Object.keys(o),E=Date.now();let j;for(j=_.length-1;j>=0;--j){const G=_[j];if("$"===G.charAt(0))continue;if("options"===G){p.push(...this._animateOptions(n,o));continue}const st=o[G];let ot=m[G];const gt=c.get(G);if(ot){if(gt&&ot.active()){ot.update(gt,st,E);continue}ot.cancel()}gt&>.duration?(m[G]=ot=new Rs(gt,n,G,st),p.push(ot)):n[G]=st}return p}update(n,o){if(0===this._properties.size)return void Object.assign(n,o);const c=this._createAnimations(n,o);return c.length?(vt.add(this._chart,c),!0):void 0}}function js(h,n){const o=h&&h.options||{},c=o.reverse,p=void 0===o.min?n:0,m=void 0===o.max?n:0;return{start:c?m:p,end:c?p:m}}function Us(h,n){const o=[],c=h._getSortedDatasetMetas(n);let p,m;for(p=0,m=c.length;p<m;++p)o.push(c[p].index);return o}function Is(h,n,o,c={}){const p=h.keys,m="single"===c.mode;let _,E,j,G;if(null!==n){for(_=0,E=p.length;_<E;++_){if(j=+p[_],j===o){if(c.all)continue;break}G=h.values[j],r(G)&&(m||0===n||w(n)===w(G))&&(n+=G)}return n}}function io(h,n){const o=h&&h.options.stacked;return o||void 0===o&&void 0!==n.stack}function ho(h,n,o){const c=h[n]||(h[n]={});return c[o]||(c[o]={})}function Gs(h,n,o,c){for(const p of n.getMatchingVisibleMetas(c).reverse()){const m=h[p.index];if(o&&m>0||!o&&m<0)return p.index}return null}function Xs(h,n){const{chart:o,_cachedMeta:c}=h,p=o._stacks||(o._stacks={}),{iScale:m,vScale:_,index:E}=c,j=m.axis,G=_.axis,st=`${m.id}.${_.id}.${(Pt=c).stack||Pt.type}`,ot=n.length;var Pt;let gt;for(let Dt=0;Dt<ot;++Dt){const kt=n[Dt],{[j]:Pt,[G]:jt}=kt;gt=(kt._stacks||(kt._stacks={}))[G]=ho(p,st,Pt),gt[E]=jt,gt._top=Gs(gt,_,!0,c.type),gt._bottom=Gs(gt,_,!1,c.type)}}function Ks(h,n){const o=h.scales;return Object.keys(o).filter(c=>o[c].axis===n).shift()}function As(h,n){const o=h.controller.index,c=h.vScale&&h.vScale.axis;if(c){n=n||h._parsed;for(const p of n){const m=p._stacks;if(!m||void 0===m[c]||void 0===m[c][o])return;delete m[c][o]}}}const Qs=h=>"reset"===h||"none"===h,no=(h,n)=>n?h:Object.assign({},h);class At{constructor(n,o){this.chart=n,this._ctx=n.ctx,this.index=o,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 n=this._cachedMeta;this.configure(),this.linkScales(),n._stacked=io(n.vScale,n),this.addElements()}updateIndex(n){this.index!==n&&As(this._cachedMeta),this.index=n}linkScales(){const n=this.chart,o=this._cachedMeta,c=this.getDataset(),p=(ot,gt,Dt,kt)=>"x"===ot?gt:"r"===ot?kt:Dt,m=o.xAxisID=u(c.xAxisID,Ks(n,"x")),_=o.yAxisID=u(c.yAxisID,Ks(n,"y")),E=o.rAxisID=u(c.rAxisID,Ks(n,"r")),j=o.indexAxis,G=o.iAxisID=p(j,m,_,E),st=o.vAxisID=p(j,_,m,E);o.xScale=this.getScaleForId(m),o.yScale=this.getScaleForId(_),o.rScale=this.getScaleForId(E),o.iScale=this.getScaleForId(G),o.vScale=this.getScaleForId(st)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(n){return this.chart.scales[n]}_getOtherScale(n){const o=this._cachedMeta;return n===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){const n=this._cachedMeta;this._data&&fe(this._data,this),n._stacked&&As(n)}_dataCheck(){const n=this.getDataset(),o=n.data||(n.data=[]),c=this._data;if(l(o))this._data=function(p){const m=Object.keys(p),_=new Array(m.length);let E,j,G;for(E=0,j=m.length;E<j;++E)G=m[E],_[E]={x:G,y:p[G]};return _}(o);else if(c!==o){if(c){fe(c,this);const p=this._cachedMeta;As(p),p._parsed=[]}o&&Object.isExtensible(o)&&ue(o,this),this._syncList=[],this._data=o}}addElements(){const n=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(n.dataset=new this.datasetElementType)}buildOrUpdateElements(n){const o=this._cachedMeta,c=this.getDataset();let p=!1;this._dataCheck();const m=o._stacked;o._stacked=io(o.vScale,o),o.stack!==c.stack&&(p=!0,As(o),o.stack=c.stack),this._resyncElements(n),(p||m!==o._stacked)&&Xs(this,o._parsed)}configure(){const n=this.chart.config,o=n.datasetScopeKeys(this._type),c=n.getOptionScopes(this.getDataset(),o,!0);this.options=n.createResolver(c,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(n,o){const{_cachedMeta:c,_data:p}=this,{iScale:m,_stacked:_}=c,E=m.axis;let j,G,st,ot=0===n&&o===p.length||c._sorted,gt=n>0&&c._parsed[n-1];if(!1===this._parsing)c._parsed=p,c._sorted=!0,st=p;else{st=F(p[n])?this.parseArrayData(c,p,n,o):l(p[n])?this.parseObjectData(c,p,n,o):this.parsePrimitiveData(c,p,n,o);const Dt=()=>null===G[E]||gt&&G[E]<gt[E];for(j=0;j<o;++j)c._parsed[j+n]=G=st[j],ot&&(Dt()&&(ot=!1),gt=G);c._sorted=ot}_&&Xs(this,st)}parsePrimitiveData(n,o,c,p){const{iScale:m,vScale:_}=n,E=m.axis,j=_.axis,G=m.getLabels(),st=m===_,ot=new Array(p);let gt,Dt,kt;for(gt=0,Dt=p;gt<Dt;++gt)kt=gt+c,ot[gt]={[E]:st||m.parse(G[kt],kt),[j]:_.parse(o[kt],kt)};return ot}parseArrayData(n,o,c,p){const{xScale:m,yScale:_}=n,E=new Array(p);let j,G,st,ot;for(j=0,G=p;j<G;++j)st=j+c,ot=o[st],E[j]={x:m.parse(ot[0],st),y:_.parse(ot[1],st)};return E}parseObjectData(n,o,c,p){const{xScale:m,yScale:_}=n,{xAxisKey:E="x",yAxisKey:j="y"}=this._parsing,G=new Array(p);let st,ot,gt,Dt;for(st=0,ot=p;st<ot;++st)gt=st+c,Dt=o[gt],G[st]={x:m.parse(z(Dt,E),gt),y:_.parse(z(Dt,j),gt)};return G}getParsed(n){return this._cachedMeta._parsed[n]}getDataElement(n){return this._cachedMeta.data[n]}applyStack(n,o,c){const m=this._cachedMeta,_=o[n.axis];return Is({keys:Us(this.chart,!0),values:o._stacks[n.axis]},_,m.index,{mode:c})}updateRangeFromParsed(n,o,c,p){const m=c[o.axis];let _=null===m?NaN:m;const E=p&&c._stacks[o.axis];p&&E&&(p.values=E,_=Is(p,m,this._cachedMeta.index)),n.min=Math.min(n.min,_),n.max=Math.max(n.max,_)}getMinMax(n,o){const c=this._cachedMeta,p=c._parsed,m=c._sorted&&n===c.iScale,_=p.length,E=this._getOtherScale(n),j=((Pt,jt,Jt)=>Pt&&!jt.hidden&&jt._stacked&&{keys:Us(this.chart,!0),values:null})(o,c),G={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:st,max:ot}=function(Pt){const{min:jt,max:Jt,minDefined:le,maxDefined:me}=Pt.getUserBounds();return{min:le?jt:Number.NEGATIVE_INFINITY,max:me?Jt:Number.POSITIVE_INFINITY}}(E);let gt,Dt;function kt(){Dt=p[gt];const Pt=Dt[E.axis];return!r(Dt[n.axis])||st>Pt||ot<Pt}for(gt=0;
vendor: 5,667 bytes, line 1
1gt<_&&(kt()||(this.updateRangeFromParsed(G,n,Dt,j),!m));++gt);if(m)for(gt=_-1;gt>=0;--gt)if(!kt()){this.updateRangeFromParsed(G,n,Dt,j);break}return G}getAllParsedValues(n){const o=this._cachedMeta._parsed,c=[];let p,m,_;for(p=0,m=o.length;p<m;++p)_=o[p][n.axis],r(_)&&c.push(_);return c}getMaxOverflow(){return!1}getLabelAndValue(n){const o=this._cachedMeta,c=o.iScale,p=o.vScale,m=this.getParsed(n);return{label:c?""+c.getLabelForValue(m[c.axis]):"",value:p?""+p.getLabelForValue(m[p.axis]):""}}_update(n){const o=this._cachedMeta;this.update(n||"default"),o._clip=function(c){let p,m,_,E;return l(c)?(p=c.top,m=c.right,_=c.bottom,E=c.left):p=m=_=E=c,{top:p,right:m,bottom:_,left:E,disabled:!1===c}}(u(this.options.clip,function(c,p,m){if(!1===m)return!1;const _=js(c,m),E=js(p,m);return{top:E.end,right:_.end,bottom:E.start,left:_.start}}(o.xScale,o.yScale,this.getMaxOverflow())))}update(n){}draw(){const n=this._ctx,c=this._cachedMeta,p=c.data||[],m=this.chart.chartArea,_=[],E=this._drawStart||0,j=this._drawCount||p.length-E,G=this.options.drawActiveElementsOnTop;let st;for(c.dataset&&c.dataset.draw(n,m,E,j),st=E;st<E+j;++st){const ot=p[st];ot.hidden||(ot.active&&G?_.push(ot):ot.draw(n,m))}for(st=0;st<_.length;++st)_[st].draw(n,m)}getStyle(n,o){const c=o?"active":"default";return void 0===n&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(c):this.resolveDataElementOptions(n||0,c)}getContext(n,o,c){const p=this.getDataset();let m;if(n>=0&&n<this._cachedMeta.data.length){const _=this._cachedMeta.data[n];m=_.$context||(_.$context=ke(this.getContext(),{active:!1,dataIndex:j=n,parsed:void 0,raw:void 0,element:_,index:j,mode:"default",type:"data"})),m.parsed=this.getParsed(n),m.raw=p.data[n],m.index=m.dataIndex=n}else m=this.$context||(this.$context=ke(this.chart.getContext(),{active:!1,dataset:void 0,datasetIndex:E=this.index,index:E,mode:"default",type:"dataset"})),m.dataset=p,m.index=m.datasetIndex=this.index;var E,j;return m.active=!!o,m.mode=c,m}resolveDatasetElementOptions(n){return this._resolveElementOptions(this.datasetElementType.id,n)}resolveDataElementOptions(n,o){return this._resolveElementOptions(this.dataElementType.id,o,n)}_resolveElementOptions(n,o="default",c){const p="active"===o,m=this._cachedDataOpts,_=n+"-"+o,E=m[_],j=this.enableOptionSharing&&ft(c);if(E)return no(E,j);const G=this.chart.config,st=G.datasetElementScopeKeys(this._type,n),ot=p?[`${n}Hover`,"hover",n,""]:[n,""],gt=G.getOptionScopes(this.getDataset(),st),Dt=Object.keys(di.elements[n]),kt=G.resolveNamedOptions(gt,Dt,()=>this.getContext(c,p),ot);return kt.$shared&&(kt.$shared=j,m[_]=Object.freeze(no(kt,j))),kt}_resolveAnimations(n,o,c){const p=this.chart,m=this._cachedDataOpts,_=`animation-${o}`,E=m[_];if(E)return E;let j;if(!1!==p.options.animation){const st=this.chart.config,ot=st.datasetAnimationScopeKeys(this._type,o),gt=st.getOptionScopes(this.getDataset(),ot);j=st.createResolver(gt,this.getContext(n,c,o))}const G=new Ws(p,j&&j.animations);return j&&j._cacheable&&(m[_]=Object.freeze(G)),G}getSharedOptions(n){if(n.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},n))}includeOptions(n,o){return!o||Qs(n)||this.chart._animationsDisabled}_getSharedOptions(n,o){const c=this.resolveDataElementOptions(n,o),p=this._sharedOptions,m=this.getSharedOptions(c),_=this.includeOptions(o,m)||m!==p;return this.updateSharedOptions(m,o,c),{sharedOptions:m,includeOptions:_}}updateElement(n,o,c,p){Qs(p)?Object.assign(n,c):this._resolveAnimations(o,p).update(n,c)}updateSharedOptions(n,o,c){n&&!Qs(o)&&this._resolveAnimations(void 0,o).update(n,c)}_setStyle(n,o,c,p){n.active=p;const m=this.getStyle(o,p);this._resolveAnimations(o,c,p).update(n,{options:!p&&this.getSharedOptions(m)||m})}removeHoverStyle(n,o,c){this._setStyle(n,c,"active",!1)}setHoverStyle(n,o,c){this._setStyle(n,c,"active",!0)}_removeDatasetHoverStyle(){const n=this._cachedMeta.dataset;n&&this._setStyle(n,void 0,"active",!1)}_setDatasetHoverStyle(){const n=this._cachedMeta.dataset;n&&this._setStyle(n,void 0,"active",!0)}_resyncElements(n){const o=this._data,c=this._cachedMeta.data;for(const[E,j,G]of this._syncList)this[E](j,G);this._syncList=[];const p=c.length,m=o.length,_=Math.min(m,p);_&&this.parse(0,_),m>p?this._insertElements(p,m-p,n):m<p&&this._removeElements(m,p-m)}_insertElements(n,o,c=!0){const p=this._cachedMeta,m=p.data,_=n+o;let E;const j=G=>{for(G.length+=o,E=G.length-1;E>=_;E--)G[E]=G[E-o]};for(j(m),E=n;E<_;++E)m[E]=new this.dataElementType;this._parsing&&j(p._parsed),this.parse(n,o),c&&this.updateElements(m,n,o,"reset")}updateElements(n,o,c,p){}_removeElements(n,o){const c=this._cachedMeta;if(this._parsing){const p=c._parsed.splice(n,o);c._stacked&&As(c,p)}c.data.splice(n,o)}_sync(n){if(this._parsing)this._syncList.push(n);else{const[o,c,p]=n;this[o](c,p)}this.chart._dataChanges.push([this.index,...n])}_onDataPush(){const n=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-n,n])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(n,o){o&&this._sync(["_removeElements",n,o]);const c=arguments.length-2;c&&this._sync(["_insertElements",n,c])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}At.defaults={},At.prototype.datasetElementType=null,At.prototype.dataElementType=null;class Qt{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(n){const{x:o,y:c}=this.getProps(["x","y"],n);return{x:o,y:c}}hasValue(){return it(this.x)&&it(this.y)}getProps(n,o){const c=this.$animations;if(!o||!c)return this;const p={};
vendor: 16,924 bytes, line 1
1return n.forEach(m=>{p[m]=c[m]&&c[m].active()?c[m]._to:this[m]}),p}}Qt.defaults={},Qt.defaultRoutes=void 0;const pe={values:h=>F(h)?h:""+h,numeric(h,n,o){if(0===h)return"0";const c=this.chart.options.locale;let p,m=h;if(o.length>1){const G=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(G<1e-4||G>1e15)&&(p="scientific"),m=function(st,ot){let gt=ot.length>3?ot[2].value-ot[1].value:ot[1].value-ot[0].value;return Math.abs(gt)>=1&&st!==Math.floor(st)&&(gt=st-Math.floor(st)),gt}(h,o)}const _=Ot(Math.abs(m)),E=Math.max(Math.min(-1*Math.floor(_),20),0),j={notation:p,minimumFractionDigits:E,maximumFractionDigits:E};return Object.assign(j,this.options.ticks.format),B(h,c,j)},logarithmic(h,n,o){if(0===h)return"0";const c=h/Math.pow(10,Math.floor(Ot(h)));return 1===c||2===c||5===c?pe.numeric.call(this,h,n,o):""}};var He={formatters:pe};function Ve(h,n,o,c,p){const m=u(c,0),_=Math.min(u(p,h.length),h.length);let E,j,G,st=0;for(o=Math.ceil(o),p&&(E=p-c,o=E/Math.floor(E/o)),G=m;G<0;)st++,G=Math.round(m+st*o);for(j=Math.max(m,0);j<_;j++)j===G&&(n.push(h[j]),st++,G=Math.round(m+st*o))}di.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:(h,n)=>n.lineWidth,tickColor:(h,n)=>n.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:He.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),di.route("scale.ticks","color","","color"),di.route("scale.grid","color","","borderColor"),di.route("scale.grid","borderColor","","borderColor"),di.route("scale.title","color","","color"),di.describe("scale",{_fallback:!1,_scriptable:h=>!h.startsWith("before")&&!h.startsWith("after")&&"callback"!==h&&"parser"!==h,_indexable:h=>"borderDash"!==h&&"tickBorderDash"!==h}),di.describe("scales",{_fallback:"scale"}),di.describe("scale.ticks",{_scriptable:h=>"backdropPadding"!==h&&"callback"!==h,_indexable:h=>"backdropPadding"!==h});const Ke=(h,n,o)=>"top"===n||"left"===n?h[n]+o:h[n]-o;function ii(h,n){const o=[],c=h.length/n,p=h.length;let m=0;for(;m<p;m+=c)o.push(h[Math.floor(m)]);return o}function hi(h,n,o){const c=h.ticks.length,p=Math.min(n,c-1),m=h._startPixel,_=h._endPixel,E=1e-6;let j,G=h.getPixelForTick(p);if(!(o&&(j=1===c?Math.max(G-m,_-G):0===n?(h.getPixelForTick(1)-G)/2:(G-h.getPixelForTick(p-1))/2,G+=p<n?j:-j,G<m-E||G>_+E)))return G}function Oi(h){return h.drawTicks?h.tickLength:0}function Bi(h,n){if(!h.display)return 0;const o=re(h.font,n),c=ie(h.padding);return(F(h.text)?h.text.length:1)*o.lineHeight+c.height}function Ni(h,n,o){let c=g(h);return(o&&"right"!==n||!o&&"right"===n)&&(c="left"===(p=c)?"right":"right"===p?"left":p),c;var p}class ji extends Qt{constructor(n){super(),this.id=n.id,this.type=n.type,this.options=void 0,this.ctx=n.ctx,this.chart=n.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(n){this.options=n.setContext(this.getContext()),this.axis=n.axis,this._userMin=this.parse(n.min),this._userMax=this.parse(n.max),this._suggestedMin=this.parse(n.suggestedMin),this._suggestedMax=this.parse(n.suggestedMax)}parse(n,o){return n}getUserBounds(){let{_userMin:n,_userMax:o,_suggestedMin:c,_suggestedMax:p}=this;return n=a(n,Number.POSITIVE_INFINITY),o=a(o,Number.NEGATIVE_INFINITY),c=a(c,Number.POSITIVE_INFINITY),p=a(p,Number.NEGATIVE_INFINITY),{min:a(n,c),max:a(o,p),minDefined:r(n),maxDefined:r(o)}}getMinMax(n){let o,{min:c,max:p,minDefined:m,maxDefined:_}=this.getUserBounds();if(m&&_)return{min:c,max:p};const E=this.getMatchingVisibleMetas();for(let j=0,G=E.length;j<G;++j)o=E[j].controller.getMinMax(this,n),m||(c=Math.min(c,o.min)),_||(p=Math.max(p,o.max));return c=_&&c>p?p:c,p=m&&c>p?c:p,{min:a(c,a(p,c)),max:a(p,a(c,p))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){W(this.options.beforeUpdate,[this])}update(n,o,c){const{beginAtZero:p,grace:m,ticks:_}=this.options,E=_.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=o,this._margins=c=Object.assign({left:0,right:0,top:0,bottom:0},c),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+c.left+c.right:this.height+c.top+c.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=je(this,m,p),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const j=E<this.ticks.length;this._convertTicksToLabels(j?ii(this.ticks,E):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),_.display&&(_.autoSkip||"auto"===_.source)&&(this.ticks=function De(h,n){const o=h.options.ticks,c=o.maxTicksLimit||function(st){const ot=st.options.offset,gt=st._tickSize();return Math.floor(Math.min(st._length/gt+(ot?0:1),st._maxLength/gt))}(h),p=o.major.enabled?function(st){const ot=[];let gt,Dt;for(gt=0,Dt=st.length;gt<Dt;gt++)st[gt].major&&ot.push(gt);return ot}(n):[],m=p.length,_=p[0],E=p[m-1],j=[];if(m>c)return function(st,ot,gt,Dt){let kt,Pt=0,jt=gt[0];for(Dt=Math.ceil(Dt),kt=0;kt<st.length;kt++)kt===jt&&(ot.push(st[kt]),Pt++,jt=gt[Pt*Dt])}(n,j,p,m/c),j;const G=function(st,ot,gt){const Dt=function(jt){const Jt=jt.length;let le,me;if(Jt<2)return!1;for(me=jt[0],le=1;le<Jt;++le)if(jt[le]-jt[le-1]!==me)return!1;return me}(st),kt=ot.length/gt;if(!Dt)return Math.max(kt,1);const Pt=V(Dt);for(let jt=0,Jt=Pt.length-1;jt<Jt;jt++){const le=Pt[jt];if(le>kt)return le}return Math.max(kt,1)}(p,n,c);if(m>0){let st,ot;const gt=m>1?Math.round((E-_)/(m-1)):null;for(Ve(n,j,G,K(gt)?0:_-gt,_),st=0,ot=m-1;st<ot;st++)Ve(n,j,G,p[st],p[st+1]);return Ve(n,j,G,E,K(gt)?n.length:E+gt),j}return Ve(n,j,G),j}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),j&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let n,o,c=this.options.reverse;this.isHorizontal()?(n=this.left,o=this.right):(n=this.top,o=this.bottom,c=!c),this._startPixel=n,this._endPixel=o,this._reversePixels=c,this._length=o-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){W(this.options.afterUpdate,[this])}beforeSetDimensions(){W(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(){W(this.options.afterSetDimensions,[this])}_callHooks(n){this.chart.notifyPlugins(n,this.getContext()),W(this.options[n],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){W(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(n){const o=this.options.ticks;let c,p,m;for(c=0,p=n.length;c<p;c++)m=n[c],m.label=W(o.callback,[m.value,c,n],this)}afterTickToLabelConversion(){W(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){W(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const n=this.options,o=n.ticks,c=this.ticks.length,p=o.minRotation||0,m=o.maxRotation;let _,E,j,G=p;if(!this._isVisible()||!o.display||p>=m||c<=1||!this.isHorizontal())return void(this.labelRotation=p);const st=this._getLabelSizes(),ot=st.widest.width,gt=st.highest.height,Dt=Ee(this.chart.width-ot,0,this.maxWidth);_=n.offset?this.maxWidth/c:Dt/(c-1),ot+6>_&&(_=Dt/(c-(n.offset?.5:1)),E=this.maxHeight-Oi(n.grid)-o.padding-Bi(n.title,this.chart.options.font),j=Math.sqrt(ot*ot+gt*gt),G=de(Math.min(Math.asin(Ee((st.highest.height+6)/_,-1,1)),Math.asin(Ee(E/j,-1,1))-Math.asin(Ee(gt/j,-1,1)))),G=Math.max(p,Math.min(m,G))),this.labelRotation=G}afterCalculateLabelRotation(){W(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){W(this.options.beforeFit,[this])}fit(){const n={width:0,height:0},{chart:o,options:{ticks:c,title:p,grid:m}}=this,_=this._isVisible(),E=this.isHorizontal();if(_){const j=Bi(p,o.options.font);if(E?(n.width=this.maxWidth,n.height=Oi(m)+j):(n.height=this.maxHeight,n.width=Oi(m)+j),c.display&&this.ticks.length){const{first:G,last:st,widest:ot,highest:gt}=this._getLabelSizes(),Dt=2*c.padding,kt=Ut(this.labelRotation),Pt=Math.cos(kt),jt=Math.sin(kt);E?n.height=Math.min(this.maxHeight,n.height+(c.mirror?0:jt*ot.width+Pt*gt.height)+Dt):n.width=Math.min(this.maxWidth,n.width+(c.mirror?0:Pt*ot.width+jt*gt.height)+Dt),this._calculatePadding(G,st,jt,Pt)}}this._handleMargins(),E?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,o,c,p){const{ticks:{align:m,padding:_},position:E}=this.options,j=0!==this.labelRotation,G="top"!==E&&"x"===this.axis;if(this.isHorizontal()){const st=this.getPixelForTick(0)-this.left,ot=this.right-this.getPixelForTick(this.ticks.length-1);let gt=0,Dt=0;j?G?(gt=p*n.width,Dt=c*o.height):(gt=c*n.height,Dt=p*o.width):"start"===m?Dt=o.width:"end"===m?gt=n.width:"inner"!==m&&(gt=n.width/2,Dt=o.width/2),this.paddingLeft=Math.max((gt-st+_)*this.width/(this.width-st),0),this.paddingRight=Math.max((Dt-ot+_)*this.width/(this.width-ot),0)}else{let st=o.height/2,ot=n.height/2;"start"===m?(st=0,ot=n.height):"end"===m&&(st=o.height,ot=0),this.paddingTop=st+_,this.paddingBottom=ot+_}}_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(){W(this.options.afterFit,[this])}isHorizontal(){const{axis:n,position:o}=this.options;return"top"===o||"bottom"===o||"x"===n}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){let o,c;for(this.beforeTickToLabelConversion(),this.generateTickLabels(n),o=0,c=n.length;o<c;o++)K(n[o].label)&&(n.splice(o,1),c--,o--);this.afterTickToLabelConversion()}_getLabelSizes(){let n=this._labelSizes;if(!n){const o=this.options.ticks.sampleSize;let c=this.ticks;o<c.length&&(c=ii(c,o)),this._labelSizes=n=this._computeLabelSizes(c,c.length)}return n}_computeLabelSizes(n,o){const{ctx:c,_longestTextCache:p}=this,m=[],_=[];let E,j,G,st,ot,gt,Dt,kt,Pt,jt,Jt,le=0,me=0;for(E=0;E<o;++E){if(st=n[E].label,ot=this._resolveTickFontOptions(E),c.font=gt=ot.string,Dt=p[gt]=p[gt]||{data:{},gc:[]},kt=ot.lineHeight,Pt=jt=0,K(st)||F(st)){if(F(st))for(j=0,G=st.length;j<G;++j)Jt=st[j],K(Jt)||F(Jt)||(Pt=ps(c,Dt.data,Dt.gc,Pt,Jt),jt+=kt)}else Pt=ps(c,Dt.data,Dt.gc,Pt,st),jt=kt;m.push(Pt),_.push(jt),le=Math.max(Pt,le),me=Math.max(jt,me)}var fi;fi=o,R(p,ui=>{const ti=ui.gc,_i=ti.length/2;let bi;if(_i>fi){for(bi=0;bi<_i;++bi)delete ui.data[ti[bi]];ti.splice(0,_i)}});const _e=m.indexOf(le),Fe=_.indexOf(me),qe=Qe=>({width:m[Qe]||0,height:_[Qe]||0});return{first:qe(0),last:qe(o-1),widest:qe(_e),highest:qe(Fe),widths:m,heights:_}}getLabelForValue(n){return n}getPixelForValue(n,o){return NaN}getValueForPixel(n){}getPixelForTick(n){const o=this.ticks;return n<0||n>o.length-1?null:this.getPixelForValue(o[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);const o=this._startPixel+n*this._length;return ze(this._alignToPixels?Jn(this.chart,o,0):o)}getDecimalForPixel(n){const o=(n-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:n,max:o}=this;return n<0&&o<0?o:n>0&&o>0?n:0}getContext(n){const o=this.ticks||[];if(n>=0&&n<o.length){const c=o[n];return c.$context||(c.$context=ke(this.getContext(),{tick:c,index:n,type:"tick"}))}return this.$context||(this.$context=ke(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const n=this.options.ticks,o=Ut(this.labelRotation),c=Math.abs(Math.cos(o)),p=Math.abs(Math.sin(o)),m=this._getLabelSizes(),_=n.autoSkipPadding||0,E=m?m.widest.width+_:0,j=m?m.highest.height+_:0;return this.isHorizontal()?j*c>E*p?E/c:j/p:j*p<E*c?j/c:E/p}_isVisible(){const n=this.options.display;return"auto"!==n?!!n:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(n){const o=this.axis,c=this.chart,p=this.options,{grid:m,position:_}=p,E=m.offset,j=this.isHorizontal(),G=this.ticks.length+(E?1:0),st=Oi(m),ot=[],gt=m.setContext(this.getContext()),Dt=gt.drawBorder?gt.borderWidth:0,kt=Dt/2,Pt=function(Ze){return Jn(c,Ze,Dt)};let jt,Jt,le,me,_e,Fe,qe,Qe,fi,ui,ti,_i;if("top"===_)jt=Pt(this.bottom),Fe=this.bottom-st,Qe=jt-kt,ui=Pt(n.top)+kt,_i=n.bottom;else if("bottom"===_)jt=Pt(this.top),ui=n.top,_i=Pt(n.bottom)-kt,Fe=jt+kt,Qe=this.top+st;else if("left"===_)jt=Pt(this.right),_e=this.right-st,qe=jt-kt,fi=Pt(n.left)+kt,ti=n.right;else if("right"===_)jt=Pt(this.left),fi=n.left,ti=Pt(n.right)-kt,_e=jt+kt,qe=this.left+st;else if("x"===o){if("center"===_)jt=Pt((n.top+n.bottom)/2+.5);else if(l(_)){const Ze=Object.keys(_)[0];jt=Pt(this.chart.scales[Ze].getPixelForValue(_[Ze]))}ui=n.top,_i=n.bottom,Fe=jt+kt,Qe=Fe+st}else if("y"===o){if("center"===_)jt=Pt((n.left+n.right)/2);else if(l(_)){const Ze=Object.keys(_)[0];jt=Pt(this.chart.scales[Ze].getPixelForValue(_[Ze]))}_e=jt-kt,qe=_e-st,fi=n.left,ti=n.right}const bi=u(p.ticks.maxTicksLimit,G),xi=Math.max(1,Math.ceil(G/bi));for(Jt=0;Jt<G;Jt+=xi){const Ze=m.setContext(this.getContext(Jt)),wi=Ze.lineWidth,Gi=Ze.color,An=Ze.borderDash||[],jn=Ze.borderDashOffset,ns=Ze.tickWidth,ks=Ze.tickColor,Ts=Ze.tickBorderDash||[],Os=Ze.tickBorderDashOffset;le=hi(this,Jt,E),void 0!==le&&(me=Jn(c,le,wi),j?_e=qe=fi=ti=me:Fe=Qe=ui=_i=me,ot.push({tx1:_e,ty1:Fe,tx2:qe,ty2:Qe,x1:fi,y1:ui,x2:ti,y2:_i,width:wi,color:Gi,borderDash:An,borderDashOffset:jn,tickWidth:ns,tickColor:ks,tickBorderDash:Ts,tickBorderDashOffset:Os}))}return this._ticksLength=G,this._borderValue=jt,ot}_computeLabelItems(n){const o=this.axis,c=this.options,{position:p,ticks:m}=c,_=this.isHorizontal(),E=this.ticks,{align:j,crossAlign:G,padding:st,mirror:ot}=m,gt=Oi(c.grid),Dt=gt+st,kt=ot?-st:Dt,Pt=-Ut(this.labelRotation),jt=[];let Jt,le,me,_e,Fe,qe,Qe,fi,ui,ti,_i,bi,xi="middle";if("top"===p)qe=this.bottom-kt,Qe=this._getXAxisLabelAlignment();else if("bottom"===p)qe=this.top+kt,Qe=this._getXAxisLabelAlignment();else if("left"===p){const wi=this._getYAxisLabelAlignment(gt);Qe=wi.textAlign,Fe=wi.x}else if("right"===p){const wi=this._getYAxisLabelAlignment(gt);Qe=wi.textAlign,Fe=wi.x}else if("x"===o){if("center"===p)qe=(n.top+n.bottom)/2+Dt;else if(l(p)){const wi=Object.keys(p)[0];qe=this.chart.scales[wi].getPixelForValue(p[wi])+Dt}Qe=this._getXAxisLabelAlignment()}else if("y"===o){if("center"===p)Fe=(n.left+n.right)/2-Dt;else if(l(p)){const wi=Object.keys(p)[0];Fe=this.chart.scales[wi].getPixelForValue(p[wi])}Qe=this._getYAxisLabelAlignment(gt).textAlign}"y"===o&&("start"===j?xi="top":"end"===j&&(xi="bottom"));const Ze=this._getLabelSizes();for(Jt=0,le=E.length;Jt<le;++Jt){me=E[Jt],_e=me.label;const wi=m.setContext(this.getContext(Jt));fi=this.getPixelForTick(Jt)+m.labelOffset,ui=this._resolveTickFontOptions(Jt),ti=ui.lineHeight,_i=F(_e)?_e.length:1;const Gi=_i/2,An=wi.color,jn=wi.textStrokeColor,ns=wi.textStrokeWidth;let ks,Ts=Qe;if(_?(Fe=fi,"inner"===Qe&&(Ts=Jt===le-1?this.options.reverse?"left"
vendor: 1,766 bytes, line 1
1:"right":0===Jt?this.options.reverse?"right":"left":"center"),bi="top"===p?"near"===G||0!==Pt?-_i*ti+ti/2:"center"===G?-Ze.highest.height/2-Gi*ti+ti:ti/2-Ze.highest.height:"near"===G||0!==Pt?ti/2:"center"===G?Ze.highest.height/2-Gi*ti:Ze.highest.height-_i*ti,ot&&(bi*=-1)):(qe=fi,bi=(1-_i)*ti/2),wi.showLabelBackdrop){const Os=ie(wi.backdropPadding),Ns=Ze.heights[Jt],eo=Ze.widths[Jt];let Fs=qe+bi-Os.top,Bs=Fe-Os.left;switch(xi){case"middle":Fs-=Ns/2;break;case"bottom":Fs-=Ns}switch(Qe){case"center":Bs-=eo/2;break;case"right":Bs-=eo}ks={left:Bs,top:Fs,width:eo+Os.width,height:Ns+Os.height,color:wi.backdropColor}}jt.push({rotation:Pt,label:_e,font:ui,color:An,strokeColor:jn,strokeWidth:ns,textOffset:bi,textAlign:Ts,textBaseline:xi,translation:[Fe,qe],backdrop:ks})}return jt}_getXAxisLabelAlignment(){const{position:n,ticks:o}=this.options;if(-Ut(this.labelRotation))return"top"===n?"left":"right";let c="center";return"start"===o.align?c="left":"end"===o.align?c="right":"inner"===o.align&&(c="inner"),c}_getYAxisLabelAlignment(n){const{position:o,ticks:{crossAlign:c,mirror:p,padding:m}}=this.options,_=n+m,E=this._getLabelSizes().widest.width;let j,G;return"left"===o?p?(G=this.right+m,"near"===c?j="left":"center"===c?(j="center",G+=E/2):(j="right",G+=E)):(G=this.right-_,"near"===c?j="right":"center"===c?(j="center",G-=E/2):(j="left",G=this.left)):"right"===o?p?(G=this.left+m,"near"===c?j="right":"center"===c?(j="center",G-=E/2):(j="left",G-=E)):(G=this.left+_,"near"===c?j="left":"center"===c?(j="center",G+=E/2):(j="right",G=this.right)):j="right",{textAlign:j,x:G}}_computeLabelArea(){if(this.options.ticks.mirror)return;const n=this.chart,o=this.options.position;return"left"===o||"right"===o?{top:0,left:this.left,bottom:n.height,right:this.right}
vendor: 5,140 bytes, line 1
1:"top"===o||"bottom"===o?{top:this.top,left:0,bottom:this.bottom,right:n.width}:void 0}drawBackground(){const{ctx:n,options:{backgroundColor:o},left:c,top:p,width:m,height:_}=this;o&&(n.save(),n.fillStyle=o,n.fillRect(c,p,m,_),n.restore())}getLineWidthForValue(n){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const c=this.ticks.findIndex(p=>p.value===n);return c>=0?o.setContext(this.getContext(c)).lineWidth:0}drawGrid(n){const o=this.options.grid,c=this.ctx,p=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n));let m,_;const E=(j,G,st)=>{st.width&&st.color&&(c.save(),c.lineWidth=st.width,c.strokeStyle=st.color,c.setLineDash(st.borderDash||[]),c.lineDashOffset=st.borderDashOffset,c.beginPath(),c.moveTo(j.x,j.y),c.lineTo(G.x,G.y),c.stroke(),c.restore())};if(o.display)for(m=0,_=p.length;m<_;++m){const j=p[m];o.drawOnChartArea&&E({x:j.x1,y:j.y1},{x:j.x2,y:j.y2},j),o.drawTicks&&E({x:j.tx1,y:j.ty1},{x:j.tx2,y:j.ty2},{color:j.tickColor,width:j.tickWidth,borderDash:j.tickBorderDash,borderDashOffset:j.tickBorderDashOffset})}}drawBorder(){const{chart:n,ctx:o,options:{grid:c}}=this,p=c.setContext(this.getContext()),m=c.drawBorder?p.borderWidth:0;if(!m)return;const _=c.setContext(this.getContext(0)).lineWidth,E=this._borderValue;let j,G,st,ot;this.isHorizontal()?(j=Jn(n,this.left,m)-m/2,G=Jn(n,this.right,_)+_/2,st=ot=E):(st=Jn(n,this.top,m)-m/2,ot=Jn(n,this.bottom,_)+_/2,j=G=E),o.save(),o.lineWidth=p.borderWidth,o.strokeStyle=p.borderColor,o.beginPath(),o.moveTo(j,st),o.lineTo(G,ot),o.stroke(),o.restore()}drawLabels(n){if(!this.options.ticks.display)return;const o=this.ctx,c=this._computeLabelArea();c&&Ji(o,c);const p=this._labelItems||(this._labelItems=this._computeLabelItems(n));let m,_;for(m=0,_=p.length;m<_;++m){const E=p[m],j=E.font,G=E.label;E.backdrop&&(o.fillStyle=E.backdrop.color,o.fillRect(E.backdrop.left,E.backdrop.top,E.backdrop.width,E.backdrop.height)),zn(o,G,0,E.textOffset,j,E)}c&&Xn(o)}drawTitle(){const{ctx:n,options:{position:o,title:c,reverse:p}}=this;if(!c.display)return;const m=re(c.font),_=ie(c.padding),E=c.align;let j=m.lineHeight/2;"bottom"===o||"center"===o||l(o)?(j+=_.bottom,F(c.text)&&(j+=m.lineHeight*(c.text.length-1))):j+=_.top;const{titleX:G,titleY:st,maxWidth:ot,rotation:gt}=function(Dt,kt,Pt,jt){const{top:Jt,left:le,bottom:me,right:_e,chart:Fe}=Dt,{chartArea:qe,scales:Qe}=Fe;let fi,ui,ti,_i=0;const bi=me-Jt,xi=_e-le;if(Dt.isHorizontal()){if(ui=C(jt,le,_e),l(Pt)){const Ze=Object.keys(Pt)[0];ti=Qe[Ze].getPixelForValue(Pt[Ze])+bi-kt}else ti="center"===Pt?(qe.bottom+qe.top)/2+bi-kt:Ke(Dt,Pt,kt);fi=_e-le}else{if(l(Pt)){const Ze=Object.keys(Pt)[0];ui=Qe[Ze].getPixelForValue(Pt[Ze])-xi+kt}else ui="center"===Pt?(qe.left+qe.right)/2-xi+kt:Ke(Dt,Pt,kt);ti=C(jt,me,Jt),_i="left"===Pt?-he:he}return{titleX:ui,titleY:ti,maxWidth:fi,rotation:_i}}(this,j,o,E);zn(n,c.text,0,0,m,{color:c.color,maxWidth:ot,rotation:gt,textAlign:Ni(E,o,p),textBaseline:"middle",translation:[G,st]})}draw(n){this._isVisible()&&(this.drawBackground(),this.drawGrid(n),this.drawBorder(),this.drawTitle(),this.drawLabels(n))}_layers(){const n=this.options,o=n.ticks&&n.ticks.z||0,c=u(n.grid&&n.grid.z,-1);return this._isVisible()&&this.draw===ji.prototype.draw?[{z:c,draw:p=>{this.drawBackground(),this.drawGrid(p),this.drawTitle()}},{z:c+1,draw:()=>{this.drawBorder()}},{z:o,draw:p=>{this.drawLabels(p)}}]:[{z:o,draw:p=>{this.draw(p)}}]}getMatchingVisibleMetas(n){const o=this.chart.getSortedVisibleDatasetMetas(),c=this.axis+"AxisID",p=[];let m,_;for(m=0,_=o.length;m<_;++m){const E=o[m];E[c]!==this.id||n&&E.type!==n||p.push(E)}return p}_resolveTickFontOptions(n){return re(this.options.ticks.setContext(this.getContext(n)).font)}_maxDigits(){const n=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/n}}class Tn{constructor(n,o,c){this.type=n,this.scope=o,this.override=c,this.items=Object.create(null)}isForType(n){return Object.prototype.isPrototypeOf.call(this.type.prototype,n.prototype)}register(n){const o=Object.getPrototypeOf(n);let c;var E;"id"in(E=o)&&"defaults"in E&&(c=this.register(o));const p=this.items,m=n.id,_=this.scope+"."+m;if(!m)throw new Error("class does not have id: "+n);return m in p||(p[m]=n,function(E,j,G){const st=S(Object.create(null),[G?di.get(G):{},di.get(j),E.defaults]);var ot,gt;di.set(j,st),E.defaultRoutes&&(ot=j,gt=E.defaultRoutes,Object.keys(gt).forEach(Dt=>{const kt=Dt.split("."),Pt=kt.pop(),jt=[ot].concat(kt).join("."),Jt=gt[Dt].split("."),le=Jt.pop(),me=Jt.join(".");di.route(jt,Pt,me,le)})),E.descriptors&&di.describe(j,E.descriptors)}(n,_,c),this.override&&di.override(n.id,n.overrides)),_}get(n){return this.items[n]}unregister(n){const o=this.items,c=n.id,p=this.scope;c in o&&delete o[c],p&&c in di[p]&&(delete di[p][c],this.override&&delete We[c])}}var ki=new class{constructor(){this.controllers=new Tn(At,"datasets",!0),this.elements=new Tn(Qt,"elements"),this.plugins=new Tn(Object,"plugins"),this.scales=new Tn(ji,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...h){this._each("register",h)}remove(...h){this._each("unregister",h)}
vendor: 15,670 bytes, line 1
1addControllers(...h){this._each("register",h,this.controllers)}addElements(...h){this._each("register",h,this.elements)}addPlugins(...h){this._each("register",h,this.plugins)}addScales(...h){this._each("register",h,this.scales)}getController(h){return this._get(h,this.controllers,"controller")}getElement(h){return this._get(h,this.elements,"element")}getPlugin(h){return this._get(h,this.plugins,"plugin")}getScale(h){return this._get(h,this.scales,"scale")}removeControllers(...h){this._each("unregister",h,this.controllers)}removeElements(...h){this._each("unregister",h,this.elements)}removePlugins(...h){this._each("unregister",h,this.plugins)}removeScales(...h){this._each("unregister",h,this.scales)}_each(h,n,o){[...n].forEach(c=>{const p=o||this._getRegistryForType(c);o||p.isForType(c)||p===this.plugins&&c.id?this._exec(h,p,c):R(c,m=>{const _=o||this._getRegistryForType(m);this._exec(h,_,m)})})}_exec(h,n,o){const c=tt(h);W(o["before"+c],[],o),n[h](o),W(o["after"+c],[],o)}_getRegistryForType(h){for(let n=0;n<this._typedRegistries.length;n++){const o=this._typedRegistries[n];if(o.isForType(h))return o}return this.plugins}_get(h,n,o){const c=n.get(h);if(void 0===c)throw new Error('"'+h+'" is not a registered '+o+".");return c}};class Yn{constructor(){this._init=[]}notify(n,o,c,p){"beforeInit"===o&&(this._init=this._createDescriptors(n,!0),this._notify(this._init,n,"install"));const m=p?this._descriptors(n).filter(p):this._descriptors(n),_=this._notify(m,n,o,c);return"afterDestroy"===o&&(this._notify(m,n,"stop"),this._notify(this._init,n,"uninstall")),_}_notify(n,o,c,p){p=p||{};for(const m of n){const _=m.plugin;if(!1===W(_[c],[o,p,m.options],_)&&p.cancelable)return!1}return!0}invalidate(){K(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(n){if(this._cache)return this._cache;const o=this._cache=this._createDescriptors(n);return this._notifyStateChanges(n),o}_createDescriptors(n,o){const c=n&&n.config,p=u(c.options&&c.options.plugins,{}),m=function(_){const E={},j=[],G=Object.keys(ki.plugins.items);for(let ot=0;ot<G.length;ot++)j.push(ki.getPlugin(G[ot]));const st=_.plugins||[];for(let ot=0;ot<st.length;ot++){const gt=st[ot];-1===j.indexOf(gt)&&(j.push(gt),E[gt.id]=!0)}return{plugins:j,localIds:E}}(c);return!1!==p||o?function(_,{plugins:E,localIds:j},G,st){const ot=[],gt=_.getContext();for(const Dt of E){const kt=Dt.id,Pt=Qn(G[kt],st);null!==Pt&&ot.push({plugin:Dt,options:cs(_.config,{plugin:Dt,local:j[kt]},Pt,gt)})}return ot}(n,m,p,o):[]}_notifyStateChanges(n){const o=this._oldCache||[],c=this._cache,p=(m,_)=>m.filter(E=>!_.some(j=>E.plugin.id===j.plugin.id));this._notify(p(o,c),n,"stop"),this._notify(p(c,o),n,"start")}}function Qn(h,n){return n||!1!==h?!0===h?{}:h:null}function cs(h,{plugin:n,local:o},c,p){const m=h.pluginScopeKeys(n),_=h.getOptionScopes(c,m);return o&&n.defaults&&_.push(n.defaults),h.createResolver(_,p,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function vn(h,n){return((n.datasets||{})[h]||{}).indexAxis||n.indexAxis||(di.datasets[h]||{}).indexAxis||"x"}function ws(h,n){return"x"===h||"y"===h?h:n.axis||("top"===(o=n.position)||"bottom"===o?"x":"left"===o||"right"===o?"y":void 0)||h.charAt(0).toLowerCase();var o}function is(h){const n=h.options||(h.options={});n.plugins=u(n.plugins,{}),n.scales=function(o,c){const p=We[o.type]||{scales:{}},m=c.scales||{},_=vn(o.type,c),E=Object.create(null),j=Object.create(null);return Object.keys(m).forEach(G=>{const st=m[G];if(!l(st))return console.error(`Invalid scale configuration for scale: ${G}`);if(st._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${G}`);const ot=ws(G,st),gt=ot===_?"_index_":"_value_",Dt=p.scales||{};E[ot]=E[ot]||G,j[G]=A(Object.create(null),[{axis:ot},st,Dt[ot],Dt[gt]])}),o.data.datasets.forEach(G=>{const st=G.type||o.type,ot=G.indexAxis||vn(st,c),gt=(We[st]||{}).scales||{};Object.keys(gt).forEach(Dt=>{const kt=function(jt,Jt){let le=jt;return"_index_"===jt?le=Jt:"_value_"===jt&&(le="x"===Jt?"y":"x"),le}(Dt,ot),Pt=G[kt+"AxisID"]||E[kt]||kt;j[Pt]=j[Pt]||Object.create(null),A(j[Pt],[{axis:kt},m[Pt],gt[Dt]])})}),Object.keys(j).forEach(G=>{const st=j[G];A(st,[di.scales[st.type],di.scale])}),j}(h,n)}function Bn(h){return(h=h||{}).datasets=h.datasets||[],h.labels=h.labels||[],h}const Cs=new Map,Zs=new Set;function Js(h,n){let o=Cs.get(h);return o||(o=n(),Cs.set(h,o),Zs.add(o)),o}const $s=(h,n,o)=>{const c=z(n,o);void 0!==c&&h.add(c)};class Eo{constructor(n){var o;this._config=((o=(o=n)||{}).data=Bn(o.data),is(o),o),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=Bn(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){const n=this._config;this.clearCache(),is(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Js(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,o){return Js(`${n}.transition.${o}`,()=>[[`datasets.${n}.transitions.${o}`,`transitions.${o}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,o){return Js(`${n}-${o}`,()=>[[`datasets.${n}.elements.${o}`,`datasets.${n}`,`elements.${o}`,""]])}pluginScopeKeys(n){const o=n.id;return Js(`${this.type}-plugin-${o}`,()=>[[`plugins.${o}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,o){const c=this._scopeCache;let p=c.get(n);return p&&!o||(p=new Map,c.set(n,p)),p}getOptionScopes(n,o,c){const{options:p,type:m}=this,_=this._cachedScopes(n,c),E=_.get(o);if(E)return E;const j=new Set;o.forEach(st=>{n&&(j.add(n),st.forEach(ot=>$s(j,n,ot))),st.forEach(ot=>$s(j,p,ot)),st.forEach(ot=>$s(j,We[m]||{},ot)),st.forEach(ot=>$s(j,di,ot)),st.forEach(ot=>$s(j,us,ot))});const G=Array.from(j);return 0===G.length&&G.push(Object.create(null)),Zs.has(o)&&_.set(o,G),G}chartOptionScopes(){const{options:n,type:o}=this;return[n,We[o]||{},di.datasets[o]||{},{type:o},di,us]}resolveNamedOptions(n,o,c,p=[""]){const m={$shared:!0},{resolver:_,subPrefixes:E}=Uo(this._resolverCache,n,p);let j=_;(function(G,st){const{isScriptable:ot,isIndexable:gt}=ct(G);for(const Dt of st){const kt=ot(Dt),Pt=gt(Dt),jt=(Pt||kt)&&G[Dt];if(kt&&(Rt(jt)||Br(jt))||Pt&&F(jt))return!0}return!1})(_,o)&&(m.$shared=!1,j=Z(_,c=Rt(c)?c():c,this.createResolver(n,c,E)));for(const G of o)m[G]=j[G];return m}createResolver(n,o,c=[""],p){const{resolver:m}=Uo(this._resolverCache,n,c);return l(o)?Z(m,o,void 0,p):m}}function Uo(h,n,o){let c=h.get(n);c||(c=new Map,h.set(n,c));const p=o.join();let m=c.get(p);return m||(m={resolver:q(n,o),subPrefixes:o.filter(_=>!_.toLowerCase().includes("hover"))},c.set(p,m)),m}const Br=h=>l(h)&&Object.getOwnPropertyNames(h).reduce((n,o)=>n||Rt(h[o]),!1),zr=["top","bottom","left","right","chartArea"];function Go(h,n){return"top"===h||"bottom"===h||-1===zr.indexOf(h)&&"x"===n}function Xo(h,n){return function(o,c){return o[h]===c[h]?o[n]-c[n]:o[h]-c[h]}}function Ko(h){const n=h.chart,o=n.options.animation;n.notifyPlugins("afterRender"),W(o&&o.onComplete,[h],n)}function Wr(h){const n=h.chart,o=n.options.animation;W(o&&o.onProgress,[h],n)}function Qo(h){return Gn()&&"string"==typeof h?h=document.getElementById(h):h&&h.length&&(h=h[0]),h&&h.canvas&&(h=h.canvas),h}const co={},Zo=h=>{const n=Qo(h);return Object.values(co).filter(o=>o.canvas===n).pop()};function jr(h,n,o){const c=Object.keys(h);for(const p of c){const m=+p;if(m>=n){const _=h[p];delete h[p],(o>0||m>n)&&(h[m+o]=_)}}}class Wn{constructor(n,o){const c=this.config=new Eo(o),p=Qo(n),m=Zo(p);if(m)throw new Error("Canvas is already in use. Chart with ID '"+m.id+"' must be destroyed before the canvas with ID '"+m.canvas.id+"' can be reused.");const _=c.createResolver(c.chartOptionScopes(),this.getContext());this.platform=new(c.platform||qi(p)),this.platform.updateConfig(c);const E=this.platform.acquireContext(p,_.aspectRatio),j=E&&E.canvas,G=j&&j.height,st=j&&j.width;this.id=D(),this.ctx=E,this.canvas=j,this.width=st,this.height=G,this._options=_,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 Yn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=d(ot=>this.update(ot),_.resizeDelay||0),this._dataChanges=[],co[this.id]=this,E&&j?(vt.listen(this,"complete",Ko),vt.listen(this,"progress",Wr),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:n,maintainAspectRatio:o},width:c,height:p,_aspectRatio:m}=this;return K(n)?o&&m?m:p?c/p:null:n}get data(){return this.config.data}set data(n){this.config.data=n}get options(){return this._options}set options(n){this.config.options=n}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ss(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return In(this.canvas,this.ctx),this}stop(){return vt.stop(this),this}resize(n,o){vt.running(this)?this._resizeBeforeDraw={width:n,height:o}:this._resize(n,o)}_resize(n,o){const c=this.options,_=this.platform.getMaximumSize(this.canvas,n,o,c.maintainAspectRatio&&this.aspectRatio),E=c.devicePixelRatio||this.platform.getDevicePixelRatio(),j=this.width?"resize":"attach";this.width=_.width,this.height=_.height,this._aspectRatio=this.aspectRatio,Ss(this,E,!0)&&(this.notifyPlugins("resize",{size:_}),W(c.onResize,[this,_],this),this.attached&&this._doResize(j)&&this.render())}ensureScalesHaveIDs(){R(this.options.scales||{},(n,o)=>{n.id=o})}buildOrUpdateScales(){const n=this.options,o=n.scales,c=this.scales,p=Object.keys(c).reduce((_,E)=>(_[E]=!1,_),{});let m=[];o&&(m=m.concat(Object.keys(o).map(_=>{const E=o[_],j=ws(_,E),G="r"===j,st="x"===j;return{options:E,dposition:G?"chartArea":st?"bottom":"left",dtype:G?"radialLinear":st?"category":"linear"}}))),R(m,_=>{const E=_.options,j=E.id,G=ws(j,E),st=u(E.type,_.dtype);void 0!==E.position&&Go(E.position,G)===Go(_.dposition)||(E.position=_.dposition),p[j]=!0;let ot=null;j in c&&c[j].type===st?ot=c[j]:(ot=new(ki.getScale(st))({id:j,type:st,ctx:this.ctx,chart:this}),c[ot.id]=ot),ot.init(E,n)}),R(p,(_,E)=>{_||delete c[E]}),R(c,_=>{Re.configure(this,_,_.options),Re.addBox(this,_)})}_updateMetasets(){const n=this._metasets,o=this.data.datasets.length,c=n.length;if(n.sort((p,m)=>p.index-m.index),c>o){for(let p=o;p<c;++p)this._destroyDatasetMeta(p);n.splice(o,c-o)}this._sortedMetasets=n.slice(0).sort(Xo("order","index"))}_removeUnreferencedMetasets(){const{_metasets:n,data:{datasets:o}}=this;n.length>o.length&&delete this._stacks,n.forEach((c,p)=>{0===o.filter(m=>m===c._dataset).length&&this._destroyDatasetMeta(p)})}buildOrUpdateControllers(){const n=[],o=this.data.datasets;let c,p;for(this._removeUnreferencedMetasets(),c=0,p=o.length;c<p;c++){const m=o[c];let _=this.getDatasetMeta(c);const E=m.type||this.config.type;if(_.type&&_.type!==E&&(this._destroyDatasetMeta(c),_=this.getDatasetMeta(c)),_.type=E,_.indexAxis=m.indexAxis||vn(E,this.options),_.order=m.order||0,_.index=c,_.label=""+m.label,_.visible=this.isDatasetVisible(c),_.controller)_.controller.updateIndex(c),_.controller.linkScales();else{const j=ki.getController(E),{datasetElementType:G,dataElementType:st}=di.datasets[E];Object.assign(j.prototype,{dataElementType:ki.getElement(st),datasetElementType:G&&ki.getElement(G)}),_.controller=new j(this,c),n.push(_.controller)}}return this._updateMetasets(),n}_resetElements(){R(this.data.datasets,(n,o)=>{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(n){const o=this.config;o.update();const c=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),p=this._animationsDisabled=!c.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:n,cancelable:!0}))return;const m=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let _=0;for(let G=0,st=this.data.datasets.length;G<st;G++){const{controller:ot}=this.getDatasetMeta(G),gt=!p&&-1===m.indexOf(ot);ot.buildOrUpdateElements(gt),_=Math.max(+ot.getMaxOverflow(),_)}_=this._minPadding=c.layout.autoPadding?_:0,this._updateLayout(_),p||R(m,G=>{G.reset()}),this._updateDatasets(n),this.notifyPlugins("afterUpdate",{mode:n}),this._layers.sort(Xo("z","_idx"));const{_active:E,_lastEvent:j}=this;j?this._eventHandler(j,!0):E.length&&this._updateHoverStyles(E,E,!0),this.render()}_updateScales(){R(this.scales,n=>{Re.removeBox(this,n)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const n=this.options,o=new Set(Object.keys(this._listeners)),c=new Set(n.events);lt(o,c)&&!!this._responsiveListeners===n.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:n}=this,o=this._getUniformDataChanges()||[];for(const{method:c,start:p,count:m}of o)jr(n,p,"_removeElements"===c?-m:m)}_getUniformDataChanges(){const n=this._dataChanges;if(!n||!n.length)return;this._dataChanges=[];const o=this.data.datasets.length,c=m=>new Set(n.filter(_=>_[0]===m).map((_,E)=>E+","+_.splice(1).join(","))),p=c(0);for(let m=1;m<o;m++)if(!lt(p,c(m)))return;return Array.from(p).map(m=>m.split(",")).map(m=>({method:m[1],start:+m[2],count:+m[3]}))}_updateLayout(n){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Re.update(this,this.width,this.height,n);const o=this.chartArea,c=o.width<=0||o.height<=0;this._layers=[],R(this.boxes,p=>{c&&"chartArea"===p.position||(p.configure&&p.configure(),this._layers.push(...p._layers()))},this),this._layers.forEach((p,m)=>{p._idx=m}),this.notifyPlugins("afterLayout")}_updateDatasets(n){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:n,cancelable:!0})){for(let o=0,c=this.data.datasets.length;o<c;++o)this.getDatasetMeta(o).controller.configure();for(let o=0,c=this.data.datasets.length;o<c;++o)this._updateDataset(o,Rt(n)?n({datasetIndex:o}):n);this.notifyPlugins("afterDatasetsUpdate",{mode:n})}}_updateDataset(n,o){const c=this.getDatasetMeta(n),p={meta:c,index:n,mode:o,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",p)&&(c.controller._update(o),p.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",p))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(vt.has(this)?this.attached&&!vt.running(this)&&vt.start(this):(this.draw(),Ko({chart:this})))}draw(){let n;if(this._resizeBeforeDraw){const{width:c,height:p}=this._resizeBeforeDraw;this._resize(c,p),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const o=this._layers;for(n=0;n<o.length&&o[n].z<=0;++n)o[n].draw(this.chartArea);for(this._drawDatasets();n<o.length;++n)o[n].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(n){const o=this._sortedMetasets,c=[];let p,m;for(p=0,m=o.length;p<m;++p){const _=o[p];n&&!_.visible||c.push(_)}return c}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const n=this.getSortedVisibleDatasetMetas();for(let o=n.length-1;o>=0;--o)this._drawDataset(n[o]);this.notifyPlugins("afterDatasetsDraw")}
vendor: 5,936 bytes, line 1
1_drawDataset(n){const o=this.ctx,c=n._clip,p=!c.disabled,m=this.chartArea,_={meta:n,index:n.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",_)&&(p&&Ji(o,{left:!1===c.left?0:m.left-c.left,right:!1===c.right?this.width:m.right+c.right,top:!1===c.top?0:m.top-c.top,bottom:!1===c.bottom?this.height:m.bottom+c.bottom}),n.controller.draw(),p&&Xn(o),_.cancelable=!1,this.notifyPlugins("afterDatasetDraw",_))}isPointInArea(n){return xn(n,this.chartArea,this._minPadding)}getElementsAtEventForMode(n,o,c,p){const m=xs.modes[o];return"function"==typeof m?m(this,n,c,p):[]}getDatasetMeta(n){const o=this.data.datasets[n],c=this._metasets;let p=c.filter(m=>m&&m._dataset===o).pop();return p||(p={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:n,_dataset:o,_parsed:[],_sorted:!1},c.push(p)),p}getContext(){return this.$context||(this.$context=ke(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(n){const o=this.data.datasets[n];if(!o)return!1;const c=this.getDatasetMeta(n);return"boolean"==typeof c.hidden?!c.hidden:!o.hidden}setDatasetVisibility(n,o){this.getDatasetMeta(n).hidden=!o}toggleDataVisibility(n){this._hiddenIndices[n]=!this._hiddenIndices[n]}getDataVisibility(n){return!this._hiddenIndices[n]}_updateVisibility(n,o,c){const p=c?"show":"hide",m=this.getDatasetMeta(n),_=m.controller._resolveAnimations(void 0,p);ft(o)?(m.data[o].hidden=!c,this.update()):(this.setDatasetVisibility(n,c),_.update(m,{visible:c}),this.update(E=>E.datasetIndex===n?p:void 0))}hide(n,o){this._updateVisibility(n,o,!1)}show(n,o){this._updateVisibility(n,o,!0)}_destroyDatasetMeta(n){const o=this._metasets[n];o&&o.controller&&o.controller._destroy(),delete this._metasets[n]}_stop(){let n,o;for(this.stop(),vt.remove(this),n=0,o=this.data.datasets.length;n<o;++n)this._destroyDatasetMeta(n)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:n,ctx:o}=this;this._stop(),this.config.clearCache(),n&&(this.unbindEvents(),In(n,o),this.platform.releaseContext(o),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete co[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...n){return this.canvas.toDataURL(...n)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const n=this._listeners,o=this.platform,c=(m,_)=>{o.addEventListener(this,m,_),n[m]=_},p=(m,_,E)=>{m.offsetX=_,m.offsetY=E,this._eventHandler(m)};R(this.options.events,m=>c(m,p))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const n=this._responsiveListeners,o=this.platform,c=(j,G)=>{o.addEventListener(this,j,G),n[j]=G},p=(j,G)=>{n[j]&&(o.removeEventListener(this,j,G),delete n[j])},m=(j,G)=>{this.canvas&&this.resize(j,G)};let _;const E=()=>{p("attach",E),this.attached=!0,this.resize(),c("resize",m),c("detach",_)};_=()=>{this.attached=!1,p("resize",m),this._stop(),this._resize(0,0),c("attach",E)},o.isAttached(this.canvas)?E():_()}unbindEvents(){R(this._listeners,(n,o)=>{this.platform.removeEventListener(this,o,n)}),this._listeners={},R(this._responsiveListeners,(n,o)=>{this.platform.removeEventListener(this,o,n)}),this._responsiveListeners=void 0}updateHoverStyle(n,o,c){const p=c?"set":"remove";let m,_,E,j;for("dataset"===o&&(m=this.getDatasetMeta(n[0].datasetIndex),m.controller["_"+p+"DatasetHoverStyle"]()),E=0,j=n.length;E<j;++E){_=n[E];const G=_&&this.getDatasetMeta(_.datasetIndex).controller;G&&G[p+"HoverStyle"](_.element,_.datasetIndex,_.index)}}getActiveElements(){return this._active||[]}setActiveElements(n){const o=this._active||[],c=n.map(({datasetIndex:p,index:m})=>{const _=this.getDatasetMeta(p);if(!_)throw new Error("No dataset found at index "+p);return{datasetIndex:p,element:_.data[m],index:m}});!k(c,o)&&(this._active=c,this._lastEvent=null,this._updateHoverStyles(c,o))}notifyPlugins(n,o,c){return this._plugins.notify(this,n,o,c)}_updateHoverStyles(n,o,c){const p=this.options.hover,m=(j,G)=>j.filter(st=>!G.some(ot=>st.datasetIndex===ot.datasetIndex&&st.index===ot.index)),_=m(o,n),E=c?n:m(n,o);_.length&&this.updateHoverStyle(_,p.mode,!1),E.length&&p.mode&&this.updateHoverStyle(E,p.mode,!0)}_eventHandler(n,o){const c={event:n,replay:o,cancelable:!0,inChartArea:this.isPointInArea(n)},p=_=>(_.options.events||this.options.events).includes(n.native.type);if(!1===this.notifyPlugins("beforeEvent",c,p))return;const m=this._handleEvent(n,o,c.inChartArea);return c.cancelable=!1,this.notifyPlugins("afterEvent",c,p),(m||c.changed)&&this.render(),this}_handleEvent(n,o,c){const{_active:p=[],options:m}=this,E=this._getActiveElements(n,p,c,o),j=at(n),G=(ot=n,c&&"mouseout"!==ot.type?j?this._lastEvent:ot:null);var ot;c&&(this._lastEvent=null,W(m.onHover,[n,E,this],this),j&&W(m.onClick,[n,E,this],this));const st=!k(E,p);return(st||o)&&(this._active=E,this._updateHoverStyles(E,p,o)),this._lastEvent=G,st}_getActiveElements(n,o,c,p){if("mouseout"===n.type)return[];if(!c)return o;const m=this.options.hover;return this.getElementsAtEventForMode(n,m.mode,m,p)}}const Jo=()=>R(Wn.instances,h=>h._plugins.invalidate()),Vs=!0;function to(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Object.defineProperties(Wn,{defaults:{enumerable:Vs,value:di},instances:{enumerable:Vs,value:co},overrides:{enumerable:Vs,value:We},registry:{enumerable:Vs,value:ki},version:{enumerable:Vs,value:"3.9.1"},getChart:{enumerable:Vs,value:Zo},register:{enumerable:Vs,value:(...h)=>{ki.add(...h),Jo()}},unregister:{enumerable:Vs,value:(...h)=>{ki.remove(...h),Jo()}}});class Mo{constructor(n){this.options=n||{}}init(n){}formats(){return to()}parse(n,o){return to()}format(n,o){return to()}add(n,o,c){return to()}diff(n,o,c){return to()}startOf(n,o,c){return to()}endOf(n,o){return to()}}Mo.override=function(h){Object.assign(Mo.prototype,h)};
vendor: 5,446 bytes, line 1
1var tr={_date:Mo};function $r(h){const n=h.iScale,o=function(G,st){if(!G._cache.$bar){const ot=G.getMatchingVisibleMetas(st);let gt=[];for(let Dt=0,kt=ot.length;Dt<kt;Dt++)gt=gt.concat(ot[Dt].controller.getAllParsedValues(G));G._cache.$bar=Le(gt.sort((Dt,kt)=>Dt-kt))}return G._cache.$bar}(n,h.type);let c,p,m,_,E=n._length;const j=()=>{32767!==m&&-32768!==m&&(ft(_)&&(E=Math.min(E,Math.abs(m-_)||E)),_=m)};for(c=0,p=o.length;c<p;++c)m=n.getPixelForValue(o[c]),j();for(_=void 0,c=0,p=n.ticks.length;c<p;++c)m=n.getPixelForTick(c),j();return E}function er(h,n,o,c){return F(h)?function(p,m,_,E){const j=_.parse(p[0],E),G=_.parse(p[1],E),st=Math.min(j,G),ot=Math.max(j,G);let gt=st,Dt=ot;Math.abs(st)>Math.abs(ot)&&(gt=ot,Dt=st),m[_.axis]=Dt,m._custom={barStart:gt,barEnd:Dt,start:j,end:G,min:st,max:ot}}(h,n,o,c):n[o.axis]=o.parse(h,c),n}function ir(h,n,o,c){const p=h.iScale,m=h.vScale,_=p.getLabels(),E=p===m,j=[];let G,st,ot,gt;for(G=o,st=o+c;G<st;++G)gt=n[G],ot={},ot[p.axis]=E||p.parse(_[G],G),j.push(er(gt,ot,m,G));return j}function Io(h){return h&&void 0!==h.barStart&&void 0!==h.barEnd}function Vr(h,n,o,c){let p=n.borderSkipped;const m={};if(!p)return void(h.borderSkipped=m);if(!0===p)return void(h.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:_,end:E,reverse:j,top:G,bottom:st}=function(ot){let gt,Dt,kt,Pt,jt;return ot.horizontal?(gt=ot.base>ot.x,Dt="left",kt="right"):(gt=ot.base<ot.y,Dt="bottom",kt="top"),gt?(Pt="end",jt="start"):(Pt="start",jt="end"),{start:Dt,end:kt,reverse:gt,top:Pt,bottom:jt}}(h);"middle"===p&&o&&(h.enableBorderRadius=!0,(o._top||0)===c?p=G:(o._bottom||0)===c?p=st:(m[nr(st,_,E,j)]=!0,p=G)),m[nr(p,_,E,j)]=!0,h.borderSkipped=m}function nr(h,n,o,c){var p,m,_;return c?(_=o,h=sr(h=(p=h)===(m=n)?_:p===_?m:p,o,n)):h=sr(h,n,o),h}function sr(h,n,o){return"start"===h?n:"end"===h?o:h}function qr(h,{inflateAmount:n},o){h.inflateAmount="auto"===n?1===o?.33:0:n}class uo extends At{parsePrimitiveData(n,o,c,p){return ir(n,o,c,p)}parseArrayData(n,o,c,p){return ir(n,o,c,p)}parseObjectData(n,o,c,p){const{iScale:m,vScale:_}=n,{xAxisKey:E="x",yAxisKey:j="y"}=this._parsing,G="x"===m.axis?E:j,st="x"===_.axis?E:j,ot=[];let gt,Dt,kt,Pt;for(gt=c,Dt=c+p;gt<Dt;++gt)Pt=o[gt],kt={},kt[m.axis]=m.parse(z(Pt,G),gt),ot.push(er(z(Pt,st),kt,_,gt));return ot}updateRangeFromParsed(n,o,c,p){super.updateRangeFromParsed(n,o,c,p);const m=c._custom;m&&o===this._cachedMeta.vScale&&(n.min=Math.min(n.min,m.min),n.max=Math.max(n.max,m.max))}getMaxOverflow(){return 0}getLabelAndValue(n){const o=this._cachedMeta,{iScale:c,vScale:p}=o,m=this.getParsed(n),_=m._custom,E=Io(_)?"["+_.start+", "+_.end+"]":""+p.getLabelForValue(m[p.axis]);return{label:""+c.getLabelForValue(m[c.axis]),value:E}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(n){const o=this._cachedMeta;this.updateElements(o.data,0,o.data.length,n)}updateElements(n,o,c,p){const m="reset"===p,{index:_,_cachedMeta:{vScale:E}}=this,j=E.getBasePixel(),G=E.isHorizontal(),st=this._getRuler(),{sharedOptions:ot,includeOptions:gt}=this._getSharedOptions(o,p);for(let Dt=o;Dt<o+c;Dt++){const kt=this.getParsed(Dt),Pt=m||K(kt[E.axis])?{base:j,head:j}:this._calculateBarValuePixels(Dt),jt=this._calculateBarIndexPixels(Dt,st),Jt=(kt._stacks||{})[E.axis],le={horizontal:G,base:Pt.base,enableBorderRadius:!Jt||Io(kt._custom)||_===Jt._top||_===Jt._bottom,x:G?Pt.head:jt.center,y:G?jt.center:Pt.head,height:G?jt.size:Math.abs(Pt.size),width:G?Math.abs(Pt.size):jt.size};gt&&(le.options=ot||this.resolveDataElementOptions(Dt,n[Dt].active?"active":p));const me=le.options||n[Dt].options;Vr(le,me,Jt,_),qr(le,me,st.ratio),this.updateElement(n[Dt],Dt,le,p)}}_getStacks(n,o){const{iScale:c}=this._cachedMeta,p=c.getMatchingVisibleMetas(this._type).filter(j=>j.controller.options.grouped),m=c.options.stacked,_=[],E=j=>{const G=j.controller.getParsed(o),st=G&&G[j.vScale.axis];if(K(st)||isNaN(st))return!0};for(const j of p)if((void 0===o||!E(j))&&((!1===m||-1===_.indexOf(j.stack)||void 0===m&&void 0===j.stack)&&_.push(j.stack),j.index===n))break;return _.length||_.push(void 0),_}_getStackCount(n){return this._getStacks(void 0,n).length}_getStackIndex(n,o,c){const p=this._getStacks(n,c),m=void 0!==o?p.indexOf(o):-1;return-1===m?p.length-1:m}_getRuler(){const n=this.options,o=this._cachedMeta,c=o.iScale,p=[];let m,_;for(m=0,_=o.data.length;m<_;++m)p.push(c.getPixelForValue(this.getParsed(m)[c.axis],m));const E=n.barThickness;return{min:E||$r(o),pixels:p,start:c._startPixel,end:c._endPixel,stackCount:this._getStackCount(),scale:c,grouped:n.grouped,ratio:E?1:n.categoryPercentage*n.barPercentage}}_calculateBarValuePixels(n){const{_cachedMeta:{vScale:o,_stacked:c},options:{base:p,minBarLength:m}}=this,_=p||0,E=this.getParsed(n),j=E._custom,G=Io(j);let st,ot,gt=E[o.axis],Dt=0,kt=c?this.applyStack(o,E,c):gt;kt!==gt&&(Dt=kt-gt,kt=gt),G&&(gt=j.barStart,kt=j.barEnd-j.barStart,0!==gt&&w(gt)!==w(j.barEnd)&&(Dt=0),Dt+=gt);const Pt=K(p)||G?Dt:p;let jt=o.getPixelForValue(Pt);if(st=this.chart.getDataVisibility(n)?o.getPixelForValue(Dt+kt):jt,ot=st-jt,Math.abs(ot)<m){qe=o,Qe=_,ot=(0!==(Fe=ot)?w(Fe):(qe.isHorizontal()?1:-1)*(qe.min>=Qe?1:-1))*m,gt===_&&(jt-=ot/2);const Jt=o.getPixelForDecimal(0),le=o.getPixelForDecimal(1),me=Math.min(Jt,le),_e=Math.max(Jt,le);jt=Math.max(Math.min(jt,_e),me),st=jt+ot}var Fe,qe,Qe;if(jt===o.getPixelForValue(_)){const Jt=w(ot)*o.getLineWidthForValue(_)/2;jt+=Jt,ot-=Jt}
vendor: 7,921 bytes, line 1
1return{size:ot,base:jt,head:st,center:st+ot/2}}_calculateBarIndexPixels(n,o){const c=o.scale,p=this.options,m=p.skipNull,_=u(p.maxBarThickness,1/0);let E,j;if(o.grouped){const G=m?this._getStackCount(n):o.stackCount,st="flex"===p.barThickness?function(gt,Dt,kt,Pt){const jt=Dt.pixels,Jt=jt[gt];let le=gt>0?jt[gt-1]:null,me=gt<jt.length-1?jt[gt+1]:null;const _e=kt.categoryPercentage;null===le&&(le=Jt-(null===me?Dt.end-Dt.start:me-Jt)),null===me&&(me=Jt+Jt-le);const Fe=Jt-(Jt-Math.min(le,me))/2*_e;return{chunk:Math.abs(me-le)/2*_e/Pt,ratio:kt.barPercentage,start:Fe}}(n,o,p,G):function(gt,Dt,kt,Pt){const jt=kt.barThickness;let Jt,le;return K(jt)?(Jt=Dt.min*kt.categoryPercentage,le=kt.barPercentage):(Jt=jt*Pt,le=1),{chunk:Jt/Pt,ratio:le,start:Dt.pixels[gt]-Jt/2}}(n,o,p,G),ot=this._getStackIndex(this.index,this._cachedMeta.stack,m?n:void 0);E=st.start+st.chunk*ot+st.chunk/2,j=Math.min(_,st.chunk*st.ratio)}else E=c.getPixelForValue(this.getParsed(n)[c.axis],n),j=Math.min(_,o.min*o.ratio);return{base:E-j/2,head:E+j/2,center:E,size:j}}draw(){const n=this._cachedMeta,o=n.vScale,c=n.data,p=c.length;let m=0;for(;m<p;++m)null!==this.getParsed(m)[o.axis]&&c[m].draw(this._ctx)}}uo.id="bar",uo.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},uo.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class po extends At{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(n,o,c,p){const m=super.parsePrimitiveData(n,o,c,p);for(let _=0;_<m.length;_++)m[_]._custom=this.resolveDataElementOptions(_+c).radius;return m}parseArrayData(n,o,c,p){const m=super.parseArrayData(n,o,c,p);for(let _=0;_<m.length;_++)m[_]._custom=u(o[c+_][2],this.resolveDataElementOptions(_+c).radius);return m}parseObjectData(n,o,c,p){const m=super.parseObjectData(n,o,c,p);for(let _=0;_<m.length;_++){const E=o[c+_];m[_]._custom=u(E&&E.r&&+E.r,this.resolveDataElementOptions(_+c).radius)}return m}getMaxOverflow(){const n=this._cachedMeta.data;let o=0;for(let c=n.length-1;c>=0;--c)o=Math.max(o,n[c].size(this.resolveDataElementOptions(c))/2);return o>0&&o}getLabelAndValue(n){const o=this._cachedMeta,{xScale:c,yScale:p}=o,m=this.getParsed(n),_=c.getLabelForValue(m.x),E=p.getLabelForValue(m.y),j=m._custom;return{label:o.label,value:"("+_+", "+E+(j?", "+j:"")+")"}}update(n){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,n)}updateElements(n,o,c,p){const m="reset"===p,{iScale:_,vScale:E}=this._cachedMeta,{sharedOptions:j,includeOptions:G}=this._getSharedOptions(o,p),st=_.axis,ot=E.axis;for(let gt=o;gt<o+c;gt++){const Dt=n[gt],kt=!m&&this.getParsed(gt),Pt={},jt=Pt[st]=m?_.getPixelForDecimal(.5):_.getPixelForValue(kt[st]),Jt=Pt[ot]=m?E.getBasePixel():E.getPixelForValue(kt[ot]);Pt.skip=isNaN(jt)||isNaN(Jt),G&&(Pt.options=j||this.resolveDataElementOptions(gt,Dt.active?"active":p),m&&(Pt.options.radius=0)),this.updateElement(Dt,gt,Pt,p)}}resolveDataElementOptions(n,o){const c=this.getParsed(n);let p=super.resolveDataElementOptions(n,o);p.$shared&&(p=Object.assign({},p,{$shared:!1}));const m=p.radius;return"active"!==o&&(p.radius=0),p.radius+=u(c&&c._custom,m),p}}po.id="bubble",po.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},po.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class so extends At{constructor(n,o){super(n,o),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(n,o){const c=this.getDataset().data,p=this._cachedMeta;if(!1===this._parsing)p._parsed=c;else{let m,_,E=j=>+c[j];if(l(c[n])){const{key:j="value"}=this._parsing;E=G=>+z(c[G],j)}for(m=n,_=n+o;m<_;++m)p._parsed[m]=E(m)}}_getRotation(){return Ut(this.options.rotation-90)}_getCircumference(){return Ut(this.options.circumference)}_getRotationExtents(){let n=wt,o=-wt;for(let c=0;c<this.chart.data.datasets.length;++c)if(this.chart.isDatasetVisible(c)){const p=this.chart.getDatasetMeta(c).controller,m=p._getRotation(),_=p._getCircumference();n=Math.min(n,m),o=Math.max(o,m+_)}return{rotation:n,circumference:o-n}}update(n){const o=this.chart,{chartArea:c}=o,p=this._cachedMeta,m=p.data,_=this.getMaxBorderWidth()+this.getMaxOffset(m)+this.options.spacing,E=Math.max((Math.min(c.width,c.height)-_)/2,0),j=Math.min(b(this.options.cutout,E),1),G=this._getRingWeight(this.index),{circumference:st,rotation:ot}=this._getRotationExtents(),{ratioX:gt,ratioY:Dt,offsetX:kt,offsetY:Pt}=function(Fe,qe,Qe){let fi=1,ui=1,ti=0,_i=0;if(qe<wt){const bi=Fe,xi=bi+qe,Ze=Math.cos(bi),wi=Math.sin(bi),Gi=Math.cos(xi),An=Math.sin(xi),jn=(eo,Fs,Bs)=>zt(eo,bi,xi,!0)?1:Math.max(Fs,Fs*Qe,Bs,Bs*Qe),ns=(eo,Fs,Bs)=>zt(eo,bi,xi,!0)?-1:Math.min(Fs,Fs*Qe,Bs,Bs*Qe),ks=jn(0,Ze,Gi),Ts=jn(he,wi,An),Os=ns(mt,Ze,Gi),Ns=ns(mt+he,wi,An);fi=(ks-Os)/2,ui=(Ts-Ns)/2,ti=-(ks+Os)/2,_i=-(Ts+Ns)/2}return{ratioX:fi,ratioY:ui,offsetX:ti,offsetY:_i}}(ot,st,j),le=Math.max(Math.min((c.width-_)/gt,(c.height-_)/Dt)/2,0),me=L(this.options.radius,le),_e=(me-Math.max(me*j,0))/this._getVisibleDatasetWeightTotal();this.offsetX=kt*me,this.offsetY=Pt*me,p.total=this.calculateTotal(),this.outerRadius=me-_e*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_e*G,0),this.updateElements(m,0,m.length,n)}_circumference(n,o){const c=this.options,p=this._cachedMeta,m=this._getCircumference();return o&&c.animation.animateRotate||!this.chart.getDataVisibility(n)||null===p._parsed[n]||p.data[n].hidden?0:this.calculateCircumference(p._parsed[n]*m/wt)}updateElements(n,o,c,p){const m="reset"===p,_=this.chart,E=_.chartArea,G=(E.left+E.right)/2,st=(E.top+E.bottom)/2,ot=m&&_.options.animation.animateScale,gt=ot?0:this.innerRadius,Dt=ot?0:this.outerRadius,{sharedOptions:kt,includeOptions:Pt}=this._getSharedOptions(o,p);let jt,Jt=this._getRotation();for(jt=0;jt<o;++jt)Jt+=this._circumference(jt,m);for(jt=o;jt<o+c;++jt){const le=this._circumference(jt,m),me=n[jt],_e={x:G+this.offsetX,y:st+this.offsetY,startAngle:Jt,endAngle:Jt+le,circumference:le,outerRadius:Dt,innerRadius:gt};Pt&&(_e.options=kt||this.resolveDataElementOptions(jt,me.active?"active":p)),Jt+=le,this.updateElement(me,jt,_e,p)}}calculateTotal(){const n=this._cachedMeta,o=n.data;let c,p=0;for(c=0;c<o.length;c++){const m=n._parsed[c];null===m||isNaN(m)||!this.chart.getDataVisibility(c)||o[c].hidden||(p+=Math.abs(m))}return p}calculateCircumference(n){const o=this._cachedMeta.total;return o>0&&!isNaN(n)?wt*(Math.abs(n)/o):0}getLabelAndValue(n){const c=this.chart,p=c.data.labels||[],m=B(this._cachedMeta._parsed[n],c.options.locale);return{label:p[n]||"",value:m}}getMaxBorderWidth(n){let o=0;const c=this.chart;let p,m,_,E,j;if(!n)for(p=0,m=c.data.datasets.length;p<m;++p)if(c.isDatasetVisible(p)){_=c.getDatasetMeta(p),n=_.data,E=_.controller;break}if(!n)return 0;for(p=0,m=n.length;p<m;++p)j=E.resolveDataElementOptions(p),"inner"!==j.borderAlign&&(o=Math.max(o,j.borderWidth||0,j.hoverBorderWidth||0));return o}getMaxOffset(n){let o=0;for(let c=0,p=n.length;c<p;++c){const m=this.resolveDataElementOptions(c);o=Math.max(o,m.offset||0,m.hoverOffset||0)}return o}_getRingWeightOffset(n){let o=0;for(let c=0;c<n;++c)this.chart.isDatasetVisible(c)&&(o+=this._getRingWeight(c));return o}_getRingWeight(n){return Math.max(u(this.chart.data.datasets[n].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}so.id="doughnut",so.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"]}}
vendor: 5,246 bytes, line 1
1,cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},so.descriptors={_scriptable:h=>"spacing"!==h,_indexable:h=>"spacing"!==h},so.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(h){const n=h.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:o}}=h.legend.options;return n.labels.map((c,p)=>{const m=h.getDatasetMeta(0).controller.getStyle(p);return{text:c,fillStyle:m.backgroundColor,strokeStyle:m.borderColor,lineWidth:m.borderWidth,pointStyle:o,hidden:!h.getDataVisibility(p),index:p}})}return[]}},onClick(h,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}},tooltip:{callbacks:{title:()=>"",label(h){let n=h.label;const o=": "+h.formattedValue;return F(n)?(n=n.slice(),n[0]+=o):n+=o,n}}}}};class fo extends At{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(n){const o=this._cachedMeta,{dataset:c,data:p=[],_dataset:m}=o,_=this.chart._animationsDisabled;let{start:E,count:j}=nt(o,p,_);this._drawStart=E,this._drawCount=j,ut(o)&&(E=0,j=p.length),c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!m._decimated,c.points=p;const G=this.resolveDatasetElementOptions(n);this.options.showLine||(G.borderWidth=0),G.segment=this.options.segment,this.updateElement(c,void 0,{animated:!_,options:G},n),this.updateElements(p,E,j,n)}updateElements(n,o,c,p){const m="reset"===p,{iScale:_,vScale:E,_stacked:j,_dataset:G}=this._cachedMeta,{sharedOptions:st,includeOptions:ot}=this._getSharedOptions(o,p),gt=_.axis,Dt=E.axis,{spanGaps:kt,segment:Pt}=this.options,jt=it(kt)?kt:Number.POSITIVE_INFINITY,Jt=this.chart._animationsDisabled||m||"none"===p;let le=o>0&&this.getParsed(o-1);for(let me=o;me<o+c;++me){const _e=n[me],Fe=this.getParsed(me),qe=Jt?_e:{},Qe=K(Fe[Dt]),fi=qe[gt]=_.getPixelForValue(Fe[gt],me),ui=qe[Dt]=m||Qe?E.getBasePixel():E.getPixelForValue(j?this.applyStack(E,Fe,j):Fe[Dt],me);qe.skip=isNaN(fi)||isNaN(ui)||Qe,qe.stop=me>0&&Math.abs(Fe[gt]-le[gt])>jt,Pt&&(qe.parsed=Fe,qe.raw=G.data[me]),ot&&(qe.options=st||this.resolveDataElementOptions(me,_e.active?"active":p)),Jt||this.updateElement(_e,me,qe,p),le=Fe}}getMaxOverflow(){const n=this._cachedMeta,o=n.dataset,c=o.options&&o.options.borderWidth||0,p=n.data||[];if(!p.length)return c;const m=p[0].size(this.resolveDataElementOptions(0)),_=p[p.length-1].size(this.resolveDataElementOptions(p.length-1));return Math.max(c,m,_)/2}draw(){const n=this._cachedMeta;n.dataset.updateControlPoints(this.chart.chartArea,n.iScale.axis),super.draw()}}fo.id="line",fo.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},fo.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class go extends At{constructor(n,o){super(n,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(n){const c=this.chart,p=c.data.labels||[],m=B(this._cachedMeta._parsed[n].r,c.options.locale);return{label:p[n]||"",value:m}}parseObjectData(n,o,c,p){return Oe.bind(this)(n,o,c,p)}update(n){const o=this._cachedMeta.data;this._updateRadius(),this.updateElements(o,0,o.length,n)}getMinMax(){const o={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((c,p)=>{const m=this.getParsed(p).r;!isNaN(m)&&this.chart.getDataVisibility(p)&&(m<o.min&&(o.min=m),m>o.max&&(o.max=m))}),o}_updateRadius(){const n=this.chart,o=n.chartArea,c=n.options,p=Math.min(o.right-o.left,o.bottom-o.top),m=Math.max(p/2,0),_=(m-Math.max(c.cutoutPercentage?m/100*c.cutoutPercentage:1,0))/n.getVisibleDatasetCount();this.outerRadius=m-_*this.index,this.innerRadius=this.outerRadius-_}updateElements(n,o,c,p){const m="reset"===p,_=this.chart,E=_.options.animation,j=this._cachedMeta.rScale,G=j.xCenter,st=j.yCenter,ot=j.getIndexAngle(0)-.5*mt;let gt,Dt=ot;const kt=360/this.countVisibleElements();for(gt=0;gt<o;++gt)Dt+=this._computeAngle(gt,p,kt);for(gt=o;gt<o+c;gt++){const Pt=n[gt];let jt=Dt,Jt=Dt+this._computeAngle(gt,p,kt),le=_.getDataVisibility(gt)?j.getDistanceFromCenterForValue(this.getParsed(gt).r):0;Dt=Jt,m&&(E.animateScale&&(le=0),E.animateRotate&&(jt=Jt=ot));const me={x:G,y:st,innerRadius:0,outerRadius:le,startAngle:jt,endAngle:Jt,options:this.resolveDataElementOptions(gt,Pt.active?"active":p)};this.updateElement(Pt,gt,me,p)}}countVisibleElements(){let o=0;return this._cachedMeta.data.forEach((c,p)=>{!isNaN(this.getParsed(p).r)&&this.chart.getDataVisibility(p)&&o++}),o}_computeAngle(n,o,c){return this.chart.getDataVisibility(n)?Ut(this.resolveDataElementOptions(n,o).angle||c):0}}go.id="polarArea",go.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},go.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(h){const n=h.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:o}}=h.legend.options;return n.labels.map((c,p)=>{const m=h.getDatasetMeta(0).controller.getStyle(p);return{text:c,fillStyle:m.backgroundColor,strokeStyle:m.borderColor,lineWidth:m.borderWidth,pointStyle:o,hidden:!h.getDataVisibility(p),index:p}})}return[]}},onClick(h,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update(
vendor: 4,839 bytes, line 1
1)}},tooltip:{callbacks:{title:()=>"",label:h=>h.chart.data.labels[h.dataIndex]+": "+h.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Oo extends so{}Oo.id="pie",Oo.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class mo extends At{getLabelAndValue(n){const o=this._cachedMeta.vScale,c=this.getParsed(n);return{label:o.getLabels()[n],value:""+o.getLabelForValue(c[o.axis])}}parseObjectData(n,o,c,p){return Oe.bind(this)(n,o,c,p)}update(n){const o=this._cachedMeta,c=o.dataset,p=o.data||[],m=o.iScale.getLabels();if(c.points=p,"resize"!==n){const _=this.resolveDatasetElementOptions(n);this.options.showLine||(_.borderWidth=0),this.updateElement(c,void 0,{_loop:!0,_fullLoop:m.length===p.length,options:_},n)}this.updateElements(p,0,p.length,n)}updateElements(n,o,c,p){const m=this._cachedMeta.rScale,_="reset"===p;for(let E=o;E<o+c;E++){const j=n[E],G=this.resolveDataElementOptions(E,j.active?"active":p),st=m.getPointPositionForValue(E,this.getParsed(E).r),ot=_?m.xCenter:st.x,gt=_?m.yCenter:st.y,Dt={x:ot,y:gt,angle:st.angle,skip:isNaN(ot)||isNaN(gt),options:G};this.updateElement(j,E,Dt,p)}}}mo.id="radar",mo.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},mo.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class vo extends At{update(n){const o=this._cachedMeta,{data:c=[]}=o,p=this.chart._animationsDisabled;let{start:m,count:_}=nt(o,c,p);if(this._drawStart=m,this._drawCount=_,ut(o)&&(m=0,_=c.length),this.options.showLine){const{dataset:E,_dataset:j}=o;E._chart=this.chart,E._datasetIndex=this.index,E._decimated=!!j._decimated,E.points=c;const G=this.resolveDatasetElementOptions(n);G.segment=this.options.segment,this.updateElement(E,void 0,{animated:!p,options:G},n)}this.updateElements(c,m,_,n)}addElements(){const{showLine:n}=this.options;!this.datasetElementType&&n&&(this.datasetElementType=ki.getElement("line")),super.addElements()}updateElements(n,o,c,p){const m="reset"===p,{iScale:_,vScale:E,_stacked:j,_dataset:G}=this._cachedMeta,st=this.resolveDataElementOptions(o,p),ot=this.getSharedOptions(st),gt=this.includeOptions(p,ot),Dt=_.axis,kt=E.axis,{spanGaps:Pt,segment:jt}=this.options,Jt=it(Pt)?Pt:Number.POSITIVE_INFINITY,le=this.chart._animationsDisabled||m||"none"===p;let me=o>0&&this.getParsed(o-1);for(let _e=o;_e<o+c;++_e){const Fe=n[_e],qe=this.getParsed(_e),Qe=le?Fe:{},fi=K(qe[kt]),ui=Qe[Dt]=_.getPixelForValue(qe[Dt],_e),ti=Qe[kt]=m||fi?E.getBasePixel():E.getPixelForValue(j?this.applyStack(E,qe,j):qe[kt],_e);Qe.skip=isNaN(ui)||isNaN(ti)||fi,Qe.stop=_e>0&&Math.abs(qe[Dt]-me[Dt])>Jt,jt&&(Qe.parsed=qe,Qe.raw=G.data[_e]),gt&&(Qe.options=ot||this.resolveDataElementOptions(_e,Fe.active?"active":p)),le||this.updateElement(Fe,_e,Qe,p),me=qe}this.updateSharedOptions(ot,p,st)}getMaxOverflow(){const n=this._cachedMeta,o=n.data||[];if(!this.options.showLine){let E=0;for(let j=o.length-1;j>=0;--j)E=Math.max(E,o[j].size(this.resolveDataElementOptions(j))/2);return E>0&&E}const c=n.dataset,p=c.options&&c.options.borderWidth||0;if(!o.length)return p;const m=o[0].size(this.resolveDataElementOptions(0)),_=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(p,m,_)/2}}vo.id="scatter",vo.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},vo.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:h=>"("+h.label+", "+h.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var or=Object.freeze({__proto__:null,BarController:uo,BubbleController:po,DoughnutController:so,LineController:fo,PolarAreaController:go,PieController:Oo,RadarController:mo,ScatterController:vo});function rr(h,n,o){const{startAngle:c,pixelMargin:p,x:m,y:_,outerRadius:E,innerRadius:j}=n;let G=p/E;h.beginPath(),h.arc(m,_,E,c-G,o+G),j>p?(G=p/j,h.arc(m,_,j,o+G,c-G,!0)):h.arc(m,_,p,o+he,c-he),h.closePath(),h.clip()}function oo(h,n,o,c){return{x:o+h*Math.cos(n),y:c+h*Math.sin(n)}}function Po(h,n,o,c,p,m){const{x:_,y:E,startAngle:j,pixelMargin:G,innerRadius:st}=n,ot=Math.max(n.outerRadius+c+o-G,0),gt=st>0?st+c+o+G:0;let Dt=0;const kt=p-j;if(c){const Ze=((st>0?st-c:0)+(ot>0?ot-c:0))/2;Dt=(kt-(0!==Ze?kt*Ze/(Ze+c):kt))/2}const Pt=(kt-Math.max(.001,kt*ot-o/mt)/ot)/2,jt=j+Pt+Dt,Jt=p-Pt-Dt,{outerStart:le,outerEnd:me,innerStart:_e,innerEnd:Fe}=function Yr(h,n,o,c){const p=Ct(h.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),m=(o-n)/2,_=Math.min(m,c*n/2),E=j=>{const G=(o-Math.min(m,j))*c/2;return Ee(j,0,Math.min(m,G))};return{outerStart:E(p.outerStart),outerEnd:E(p.outerEnd),innerStart:Ee(p.innerStart,0,_),innerEnd:Ee(p.innerEnd,0,_)}}(n,gt,ot,Jt-jt),qe=ot-le,Qe=ot-me,fi=jt+le/qe,ui=Jt-me/Qe,ti=gt+_e,_i=gt+Fe,b
vendor: 4,968 bytes, line 1
1i=jt+_e/ti,xi=Jt-Fe/_i;if(h.beginPath(),m){if(h.arc(_,E,ot,fi,ui),me>0){const Gi=oo(Qe,ui,_,E);h.arc(Gi.x,Gi.y,me,ui,Jt+he)}const Ze=oo(_i,Jt,_,E);if(h.lineTo(Ze.x,Ze.y),Fe>0){const Gi=oo(_i,xi,_,E);h.arc(Gi.x,Gi.y,Fe,Jt+he,xi+Math.PI)}if(h.arc(_,E,gt,Jt-Fe/gt,jt+_e/gt,!0),_e>0){const Gi=oo(ti,bi,_,E);h.arc(Gi.x,Gi.y,_e,bi+Math.PI,jt-he)}const wi=oo(qe,jt,_,E);if(h.lineTo(wi.x,wi.y),le>0){const Gi=oo(qe,fi,_,E);h.arc(Gi.x,Gi.y,le,jt-he,fi)}}else{h.moveTo(_,E);const Ze=Math.cos(fi)*ot+_,wi=Math.sin(fi)*ot+E;h.lineTo(Ze,wi);const Gi=Math.cos(ui)*ot+_,An=Math.sin(ui)*ot+E;h.lineTo(Gi,An)}h.closePath()}class yo extends Qt{constructor(n){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,n&&Object.assign(this,n)}inRange(n,o,c){const p=this.getProps(["x","y"],c),{angle:m,distance:_}=dt(p,{x:n,y:o}),{startAngle:E,endAngle:j,innerRadius:G,outerRadius:st,circumference:ot}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],c),gt=this.options.spacing/2,Dt=u(ot,j-E)>=wt||zt(m,E,j),kt=Xe(_,G+gt,st+gt);return Dt&&kt}getCenterPoint(n){const{x:o,y:c,startAngle:p,endAngle:m,innerRadius:_,outerRadius:E}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],n),{offset:j,spacing:G}=this.options,st=(p+m)/2,ot=(_+E+G+j)/2;return{x:o+Math.cos(st)*ot,y:c+Math.sin(st)*ot}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:o,circumference:c}=this,p=(o.offset||0)/2,m=(o.spacing||0)/2,_=o.circular;if(this.pixelMargin="inner"===o.borderAlign?.33:0,this.fullCircles=c>wt?Math.floor(c/wt):0,0===c||this.innerRadius<0||this.outerRadius<0)return;n.save();let E=0;if(p){E=p/2;const G=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(G)*E,Math.sin(G)*E),this.circumference>=mt&&(E=p)}n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,function Ur(h,n,o,c,p,m){const{options:_}=n,{borderWidth:E,borderJoinStyle:j}=_,G="inner"===_.borderAlign;E&&(G?(h.lineWidth=2*E,h.lineJoin=j||"round"):(h.lineWidth=E,h.lineJoin=j||"bevel"),n.fullCircles&&function(st,ot,gt){const{x:Dt,y:kt,startAngle:Pt,pixelMargin:jt,fullCircles:Jt}=ot,le=Math.max(ot.outerRadius-jt,0),me=ot.innerRadius+jt;let _e;for(gt&&rr(st,ot,Pt+wt),st.beginPath(),st.arc(Dt,kt,me,Pt+wt,Pt,!0),_e=0;_e<Jt;++_e)st.stroke();for(st.beginPath(),st.arc(Dt,kt,le,Pt,Pt+wt),_e=0;_e<Jt;++_e)st.stroke()}(h,n,G),G&&rr(h,n,p),Po(h,n,o,c,p,m),h.stroke())}(n,this,E,m,function(G,st,ot,gt,Dt){const{fullCircles:kt,startAngle:Pt,circumference:jt}=st;let Jt=st.endAngle;if(kt){Po(G,st,ot,gt,Pt+wt,Dt);for(let le=0;le<kt;++le)G.fill();isNaN(jt)||(Jt=Pt+jt%wt,jt%wt==0&&(Jt+=wt))}return Po(G,st,ot,gt,Jt,Dt),G.fill(),Jt}(n,this,E,m,_),_),n.restore()}}function ar(h,n,o=n){h.lineCap=u(o.borderCapStyle,n.borderCapStyle),h.setLineDash(u(o.borderDash,n.borderDash)),h.lineDashOffset=u(o.borderDashOffset,n.borderDashOffset),h.lineJoin=u(o.borderJoinStyle,n.borderJoinStyle),h.lineWidth=u(o.borderWidth,n.borderWidth),h.strokeStyle=u(o.borderColor,n.borderColor)}function Gr(h,n,o){h.lineTo(o.x,o.y)}function lr(h,n,o={}){const c=h.length,{start:p=0,end:m=c-1}=o,{start:_,end:E}=n,j=Math.max(p,_),G=Math.min(m,E);return{count:c,start:j,loop:n.loop,ilen:G<j&&!(p<_&&m<_||p>E&&m>E)?c+G-j:G-j}}function Xr(h,n,o,c){const{points:p,options:m}=n,{count:_,start:E,loop:j,ilen:G}=lr(p,o,c),st=(jt=m).stepped?hs:jt.tension||"monotone"===jt.cubicInterpolationMode?fs:Gr;var jt;let ot,gt,Dt,{move:kt=!0,reverse:Pt}=c||{};for(ot=0;ot<=G;++ot)gt=p[(E+(Pt?G-ot:ot))%_],gt.skip||(kt?(h.moveTo(gt.x,gt.y),kt=!1):st(h,Dt,gt,Pt,m.stepped),Dt=gt);return j&&(gt=p[(E+(Pt?G:0))%_],st(h,Dt,gt,Pt,m.stepped)),!!j}function Kr(h,n,o,c){const p=n.points,{count:m,start:_,ilen:E}=lr(p,o,c),{move:j=!0,reverse:G}=c||{};let st,ot,gt,Dt,kt,Pt,jt=0,Jt=0;const le=_e=>(_+(G?E-_e:_e))%m,me=()=>{Dt!==kt&&(h.lineTo(jt,kt),h.lineTo(jt,Dt),h.lineTo(jt,Pt))};for(j&&(ot=p[le(0)],h.moveTo(ot.x,ot.y)),st=0;st<=E;++st){if(ot=p[le(st)],ot.skip)continue;const _e=ot.x,Fe=ot.y,qe=0|_e;qe===gt?(Fe<Dt?Dt=Fe:Fe>kt&&(kt=Fe),jt=(Jt*jt+_e)/++Jt):(me(),h.lineTo(_e,Fe),gt=qe,Jt=0,Dt=kt=Fe),Pt=Fe}me()}function Ao(h){const n=h.options;return h._decimated||h._loop||n.tension||"monotone"===n.cubicInterpolationMode||n.stepped||n.borderDash&&n.borderDash.length?Xr:Kr}yo.id="arc",yo.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},yo.defaultRoutes={backgroundColor:"backgroundColor"};const Qr="function"==typeof Path2D;class qs extends Qt{constructor(n){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,n&&Object.assign(this,n)}updateControlPoints(n,o){const c=this.options;
vendor: 12,183 bytes, line 1
1!c.tension&&"monotone"!==c.cubicInterpolationMode||c.stepped||this._pointsUpdated||(zi(this._points,c,n,c.spanGaps?this._loop:this._fullLoop,o),this._pointsUpdated=!0)}set points(n){this._points=n,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=bs(this,this.options.segment))}first(){const n=this.segments;return n.length&&this.points[n[0].start]}last(){const n=this.segments,c=n.length;return c&&this.points[n[c-1].end]}interpolate(n,o){const c=this.options,p=n[o],m=this.points,_=kn(this,{property:o,start:p,end:p});if(!_.length)return;const E=[],j=(ot=c).stepped?ts:ot.tension||"monotone"===ot.cubicInterpolationMode?On:Dn;var ot;let G,st;for(G=0,st=_.length;G<st;++G){const{start:ot,end:gt}=_[G],Dt=m[ot],kt=m[gt];if(Dt===kt){E.push(Dt);continue}const Pt=j(Dt,kt,Math.abs((p-Dt[o])/(kt[o]-Dt[o])),c.stepped);Pt[o]=n[o],E.push(Pt)}return 1===E.length?E[0]:E}pathSegment(n,o,c){return Ao(this)(n,this,o,c)}path(n,o,c){const p=this.segments,m=Ao(this);let _=this._loop;o=o||0,c=c||this.points.length-o;for(const E of p)_&=m(n,this,E,{start:o,end:o+c-1});return!!_}draw(n,o,c,p){(this.points||[]).length&&(this.options||{}).borderWidth&&(n.save(),function Zr(h,n,o,c){Qr&&!n.options.segment?function(p,m,_,E){let j=m._path;j||(j=m._path=new Path2D,m.path(j,_,E)&&j.closePath()),ar(p,m.options),p.stroke(j)}(h,n,o,c):function(p,m,_,E){const{segments:j,options:G}=m,st=Ao(m);for(const ot of j)ar(p,G,ot.style),p.beginPath(),st(p,m,ot,{start:_,end:_+E-1})&&p.closePath(),p.stroke()}(h,n,o,c)}(n,this,c,p),n.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function hr(h,n,o,c){const p=h.options,{[o]:m}=h.getProps([o],c);return Math.abs(n-m)<p.radius+p.hitRadius}qs.id="line",qs.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},qs.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},qs.descriptors={_scriptable:!0,_indexable:h=>"borderDash"!==h&&"fill"!==h};class _o extends Qt{constructor(n){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,o,c){const p=this.options,{x:m,y:_}=this.getProps(["x","y"],c);return Math.pow(n-m,2)+Math.pow(o-_,2)<Math.pow(p.hitRadius+p.radius,2)}inXRange(n,o){return hr(this,n,"x",o)}inYRange(n,o){return hr(this,n,"y",o)}getCenterPoint(n){const{x:o,y:c}=this.getProps(["x","y"],n);return{x:o,y:c}}size(n){let o=(n=n||this.options||{}).radius||0;return o=Math.max(o,o&&n.hoverRadius||0),2*(o+(o&&n.borderWidth||0))}draw(n,o){const c=this.options;this.skip||c.radius<.1||!xn(this,o,this.size(c)/2)||(n.strokeStyle=c.borderColor,n.lineWidth=c.borderWidth,n.fillStyle=c.backgroundColor,Hn(n,c,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}function cr(h,n){const{x:o,y:c,base:p,width:m,height:_}=h.getProps(["x","y","base","width","height"],n);let E,j,G,st,ot;return h.horizontal?(ot=_/2,E=Math.min(o,p),j=Math.max(o,p),G=c-ot,st=c+ot):(ot=m/2,E=o-ot,j=o+ot,G=Math.min(c,p),st=Math.max(c,p)),{left:E,top:G,right:j,bottom:st}}function Ys(h,n,o,c){return h?0:Ee(n,o,c)}function Lo(h,n,o,c){const p=null===n,m=null===o,_=h&&!(p&&m)&&cr(h,c);return _&&(p||Xe(n,_.left,_.right))&&(m||Xe(o,_.top,_.bottom))}function ta(h,n){h.rect(n.x,n.y,n.w,n.h)}function Ro(h,n,o={}){const c=h.x!==o.x?-n:0,p=h.y!==o.y?-n:0;return{x:h.x+c,y:h.y+p,w:h.w+((h.x+h.w!==o.x+o.w?n:0)-c),h:h.h+((h.y+h.h!==o.y+o.h?n:0)-p),radius:h.radius}}_o.id="point",_o.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},_o.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class bo extends Qt{constructor(n){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,n&&Object.assign(this,n)}draw(n){const{inflateAmount:o,options:{borderColor:c,backgroundColor:p}}=this,{inner:m,outer:_}=function Jr(h){const n=cr(h),o=n.right-n.left,c=n.bottom-n.top,p=function(_,E,j){const st=_.borderSkipped,ot=Mt(_.options.borderWidth);return{t:Ys(st.top,ot.top,0,j),r:Ys(st.right,ot.right,0,E),b:Ys(st.bottom,ot.bottom,0,j),l:Ys(st.left,ot.left,0,E)}}(h,o/2,c/2),m=function(_,E,j){const{enableBorderRadius:G}=_.getProps(["enableBorderRadius"]),st=_.options.borderRadius,ot=te(st),gt=Math.min(E,j),Dt=_.borderSkipped,kt=G||l(st);return{topLeft:Ys(!kt||Dt.top||Dt.left,ot.topLeft,0,gt),topRight:Ys(!kt||Dt.top||Dt.right,ot.topRight,0,gt),bottomLeft:Ys(!kt||Dt.bottom||Dt.left,ot.bottomLeft,0,gt),bottomRight:Ys(!kt||Dt.bottom||Dt.right,ot.bottomRight,0,gt)}}(h,o/2,c/2);return{outer:{x:n.left,y:n.top,w:o,h:c,radius:m},inner:{x:n.left+p.l,y:n.top+p.t,w:o-p.l-p.r,h:c-p.t-p.b,radius:{topLeft:Math.max(0,m.topLeft-Math.max(p.t,p.l)),topRight:Math.max(0,m.topRight-Math.max(p.t,p.r)),bottomLeft:Math.max(0,m.bottomLeft-Math.max(p.b,p.l)),bottomRight:Math.max(0,m.bottomRight-Math.max(p.b,p.r))}}}}(this),E=(j=_.radius).topLeft||j.topRight||j.bottomLeft||j.bottomRight?P:ta;var j;n.save(),_.w===m.w&&_.h===m.h||(n.beginPath(),E(n,Ro(_,o,m)),n.clip(),E(n,Ro(m,-o,_)),n.fillStyle=c,n.fill("evenodd")),n.beginPath(),E(n,Ro(m,o)),n.fillStyle=p,n.fill(),n.restore()}inRange(n,o,c){return Lo(this,n,o,c)}inXRange(n,o){return Lo(this,n,null,o)}inYRange(n,o){return Lo(this,null,n,o)}getCenterPoint(n){const{x:o,y:c,base:p,horizontal:m}=this.getProps(["x","y","base","horizontal"],n);return{x:m?(o+p)/2:o,y:m?c:(c+p)/2}}getRange(n){return"x"===n?this.width/2:this.height/2}}bo.id="bar",bo.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},bo.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Ho=Object.freeze({__proto__:null,ArcElement:yo,LineElement:qs,PointElement:_o,BarElement:bo});function ur(h){if(h._decimated){const n=h._data;delete h._decimated,delete h._data,Object.defineProperty(h,"data",{value:n})}}function dr(h){h.data.datasets.forEach(n=>{ur(n)})}var ea={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(h,n,o)=>{if(!o.enabled)return void dr(h);const c=h.width;h.data.datasets.forEach((p,m)=>{const{_data:_,indexAxis:E}=p,j=h.getDatasetMeta(m),G=_||p.data;if("y"===Ie([E,h.options.indexAxis])||!j.controller.supportsDecimation)return;const st=h.scales[j.xAxisID];if("linear"!==st.type&&"time"!==st.type||h.options.parsing)return;let Dt,{start:ot,count:gt}=function(kt,Pt){const jt=Pt.length;let Jt,le=0;const{iScale:me}=kt,{min:_e,max:Fe,minDefined:qe,maxDefined:Qe}=me.getUserBounds();return qe&&(le=Ee($t(Pt,me.axis,_e).lo,0,jt-1)),Jt=Qe?Ee($t(Pt,me.axis,Fe).hi+1,le,jt)-le:jt-le,{start:le,count:Jt}}(j,G);if(gt<=(o.threshold||4*c))ur(p);else{switch(K(_)&&(p._data=G,delete p.data,Object.defineProperty(p,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(kt){this._data=kt}})),o.algorithm){case"lttb":Dt=function(kt,Pt,jt,Jt,le){const me=le.samples||Jt;if(me>=jt)return kt.slice(Pt,Pt+jt);const _e=[],Fe=(jt-2)/(me-2);let qe=0;const Qe=Pt+jt-1;let fi,ui,ti,_i,bi,xi=Pt;for(_e[qe++]=kt[xi],fi=0;fi<me-2;fi++){let Ze,wi=0,Gi=0;const An=Math.floor((fi+1)*Fe)+1+Pt,jn=Math.min(Math.floor((fi+2)*Fe)+1,jt)+Pt,ns=jn-An;for(Ze=An;Ze<jn;Ze++)wi+=kt[Ze].x,Gi+=kt[Ze].y;wi/=ns,Gi/=ns;const ks=Math.floor(fi*Fe)+1+Pt,Ts=Math.min(Math.floor((fi+1)*Fe)+1,jt)+Pt,{x:Os,y:Ns}=kt[xi];for(ti=_i=-1,Ze=ks;Ze<Ts;Ze++)_i=.5*Math.abs((Os-wi)*(kt[Ze].y-Ns)-(Os-kt[Ze].x)*(Gi-Ns)),_i>ti&&(ti=_i,ui=kt[Ze],bi=Ze);_e[qe++]=ui,xi=bi}return _e[qe++]=kt[Qe],_e}(G,ot,gt,c,o);break;case"min-max":Dt=function(kt,Pt,jt,Jt){let le,me,_e,Fe,qe,Qe,fi,ui,ti,_i,bi=0,xi=0;const Ze=[],Gi=kt[Pt].x,An=kt[Pt+jt-1].x-Gi;for(le=Pt;le<Pt+jt;++le){me=kt[le],_e=(me.x-Gi)/An*Jt,Fe=me.y;const jn=0|_e;if(jn===qe)Fe<ti?(ti=Fe,Qe=le):Fe>_i&&(_i=Fe,fi=le),bi=(xi*bi+me.x)/++xi;else{const ns=le-1;if(!K(Qe)&&!K(fi)){const ks=Math.min(Qe,fi),Ts=Math.max(Qe,fi);ks!==ui&&ks!==ns&&Ze.push(Yo(To({},kt[ks]),{x:bi})),Ts!==ui&&Ts!==ns&&Ze.push(Yo(To({},kt[Ts]),{x:bi}))}le>0&&ns!==ui&&Ze.push(kt[ns]),Ze.push(me),qe=jn,xi=0,ti=_i=Fe,Qe=fi=ui=le}}return Ze}(G,ot,gt,c);break;default:throw new Error(`Unsupported decimation algorithm '${o.algorithm}'`)}p._decimated=Dt}})},destroy(h){dr(h)}};function No(h,n,o,c){if(c)return;let p=n[h],m=o[h];return"angle"===h&&(p=ge(p),m=ge(m)),{property:h,start:p,end:m}}function Fo(h,n,o){for(;n>h;n--){const c=o[n];if(!isNaN(c.x)&&!isNaN(c.y))break}return n}function pr(h,n,o,c){return h&&n?c(h[o],n[o]):h?h[o]:n?n[o]:0}function fr(h,n){let o=[],c=!1;return F(h)?(c=!0,o=h):o=function(p,m){const{x:_=null,y:E=null}=p||{},j=m.points,G=[];return m.segments.forEach(({start:st,end:ot})=>{ot=Fo(st,ot,j);const gt=j[st],Dt=j[ot];null!==E?(G.push({x:gt.x,y:E}),G.push({x:Dt.x,y:E})):null!==_&&(G.push({x:_,y:gt.y}),G.push({x:_,y:Dt.y}))}),G}(h,n),o.length?new qs({points:o,options:{tension:0},_loop:c,_fullLoop:c}):null}function gr(h){return h&&!1!==h.fill}function ia(h,n,o){let c=h[n].fill;const p=[n];let m;if(!o)return c;for(;!1!==c&&-1===p.indexOf(c);){if(!r(c))return c;if(m=h[c],!m)return!1;if(m.visible)return c;p.push(c),c=m.fill}return!1}function na(h,n,o){const c=function(m){const _=m.options,E=_.fill;let j=u(E&&E.target,E);return void 0===j&&(j=!!_.backgroundColor),!1!==j&&null!==j&&(!0===j?"origin":j)}(h);if(l(c))return!isNaN(c.value)&&c;let p=parseFloat(c);return r(p)&&Math.floor(p)===p?(_=n,E=p,"-"!==(m=c[0])&&"+"!==m||(E=_+E),!(E===_||E<0||E>=o)&&E):["origin","start","end","stack","shape"].indexOf(c)>=0&&c;var m,_,E}function sa(h,n,o){const c=[];for(let p=0;p<o.length;p++){const m=o[p],{first:_,last:E,point:j}=oa(m,n,"x");if(!(!j||_&&E))if(_)c.unshift(j);else if(h.push(j),!E)break}h.push(...c)}function oa(h,n,o){const c=h.interpolate(n,o);if(!c)return{};const p=c[o],m=h.segments,_=h.points;let E=!1,j=!1;for(let G=0;G<m.length;G++){const st=m[G],ot=_[st.start][o],gt=_[st.end][o];if(Xe(p,ot,gt)){E=p===ot,j=p===gt;break}}return{first:E,last:j,point:c}}class mr{constructor(n){this.x=n.x,this.y=n.y,this.radius=n.radius}pathSegment(n,o,c){const{x:p,y:m,radius:_}=this;return n.arc(p,m,_,(o=o||{start:0,end:wt}).end,o.start,!0),!c.bounds}interpolate(n){const{x:o,y:c,radius:p}=this,m=n.angle;return{x:o+Math.cos(m)*p,y:c+Math.sin(m)*p,angle:m}}}function Bo(h,n,o){const c=function ra(h){const{chart:n,fill:o,line:c}=h;if(r(o))return function(m,_){const E=m.getDatasetMeta(_);return E&&m.isDatasetVisible(_)?E.dataset:null}(n,o);if("stack"===o)return function(m){const{scale:_,index:E,line:j}=m,G=[],st=j.segments,ot=j.points,gt=function(Dt,kt){const Pt=[],jt=Dt.getMatchingVisibleMetas("line");for(let Jt=0;Jt<jt.length;Jt++){const le=jt[Jt];if(le.index===kt)break;le.hidden||Pt.unshift(le.dataset)}return Pt}(_,E);gt.push(fr({x:null,y:_.bottom},j));for(let Dt=0;Dt<st.length;Dt++){const kt=st[Dt];for(let Pt=kt.start;Pt<=kt.end;Pt++)sa(G,ot[Pt],gt)}return new qs({points:G,options:{}})}(h);if("shape"===o)return!0;const p=((m=h).scale||{}).getPointPositionForValue?function(_){const{scale:E,fill:j}=_,G=E.options,st=E.getLabels().length,ot=G.reverse?E.max:E.min,gt=function(kt,Pt,jt){let Jt;return Jt="start"===kt?jt:"end"===kt?Pt.options.reverse?Pt.min:Pt.max:l(kt)?kt.value:Pt.getBaseValue(),Jt}(j,E,ot),Dt=[];if(G.grid.circular){const kt=E.getPointPositionForValue(0,ot);return new mr({x:kt.x,y:kt.y,radius:E.getDistanceFromCenterForValue(gt)})}for(let kt=0;kt<st;++kt)Dt.push(E.getPointPositionForValue(kt,gt));return Dt}(m):function(_){const{scale:E={},fill:j}=_,G=function(st,ot){let gt=null;return"start"===st?gt=ot.bottom:"end"===st?gt=ot.top:l(st)?gt=ot.getPixelForValue(st.value):ot.getBasePixel&&(gt=ot.getBasePixel()),gt}(j,E);if(r(G)){const st=E.isHorizontal();return{x:st?G:null,y:st?null:G}}return null}(m);var m;return p instanceof mr?p:fr(p,c)}(n),{line:p,scale:m,axis:_}=n,E=p.options,j=E.fill,G=E.backgroundColor,{above:st=G,below:ot=G}=j||{};c&&p.points.length&&(Ji(h,o),function(gt,Dt){const{line:kt,target:Pt,above:jt,below:Jt,area:le,scale:me}=Dt,_e=kt._loop?"angle":Dt.axis;
vendor: 1,486 bytes, line 1
1gt.save(),"x"===_e&&Jt!==jt&&(vr(gt,Pt,le.top),yr(gt,{line:kt,target:Pt,color:jt,scale:me,property:_e}),gt.restore(),gt.save(),vr(gt,Pt,le.bottom)),yr(gt,{line:kt,target:Pt,color:Jt,scale:me,property:_e}),gt.restore()}(h,{line:p,target:c,above:st,below:ot,area:o,scale:m,axis:_}),Xn(h))}function vr(h,n,o){const{segments:c,points:p}=n;let m=!0,_=!1;h.beginPath();for(const E of c){const{start:j,end:G}=E,st=p[j],ot=p[Fo(j,G,p)];m?(h.moveTo(st.x,st.y),m=!1):(h.lineTo(st.x,o),h.lineTo(st.x,st.y)),_=!!n.pathSegment(h,E,{move:_}),_?h.closePath():h.lineTo(ot.x,o)}h.lineTo(n.first().x,o),h.closePath(),h.clip()}function yr(h,n){const{line:o,target:c,property:p,color:m,scale:_}=n,E=function(j,G,st){const ot=j.segments,gt=j.points,Dt=G.points,kt=[];for(const Pt of ot){let{start:jt,end:Jt}=Pt;Jt=Fo(jt,Jt,gt);const le=No(st,gt[jt],gt[Jt],Pt.loop);if(!G.segments){kt.push({source:Pt,target:le,start:gt[jt],end:gt[Jt]});continue}const me=kn(G,le);for(const _e of me){const Fe=No(st,Dt[_e.start],Dt[_e.end],_e.loop),qe=Vi(Pt,gt,Fe);for(const Qe of qe)kt.push({source:Qe,target:_e,start:{[st]:pr(le,Fe,"start",Math.max)},end:{[st]:pr(le,Fe,"end",Math.min)}})}}return kt}(o,c,p);for(const{source:j,target:G,start:st,end:ot}of E){const{style:{backgroundColor:gt=m}={}}=j,Dt=!0!==c;h.save(),h.fillStyle=gt,aa(h,_,Dt&&No(p,st,ot)),h.beginPath();const kt=!!o.pathSegment(h,j);let Pt;if(Dt){kt?h.closePath():_r(h,c,ot,p);const jt=!!c.pathSegment(h,G,{move:kt,reverse:!0});Pt=kt&&jt,Pt||_r(h,c,st,p)}
vendor: 5,222 bytes, line 1
1h.closePath(),h.fill(Pt?"evenodd":"nonzero"),h.restore()}}function aa(h,n,o){const{top:c,bottom:p}=n.chart.chartArea,{property:m,start:_,end:E}=o||{};"x"===m&&(h.beginPath(),h.rect(_,c,E-_,p-c),h.clip())}function _r(h,n,o,c){const p=n.interpolate(o,c);p&&h.lineTo(p.x,p.y)}var la={id:"filler",afterDatasetsUpdate(h,n,o){const c=(h.data.datasets||[]).length,p=[];let m,_,E,j;for(_=0;_<c;++_)m=h.getDatasetMeta(_),E=m.dataset,j=null,E&&E.options&&E instanceof qs&&(j={visible:h.isDatasetVisible(_),index:_,fill:na(E,_,c),chart:h,axis:m.controller.options.indexAxis,scale:m.vScale,line:E}),m.$filler=j,p.push(j);for(_=0;_<c;++_)j=p[_],j&&!1!==j.fill&&(j.fill=ia(p,_,o.propagate))},beforeDraw(h,n,o){const c="beforeDraw"===o.drawTime,p=h.getSortedVisibleDatasetMetas(),m=h.chartArea;for(let _=p.length-1;_>=0;--_){const E=p[_].$filler;E&&(E.line.updateControlPoints(m,E.axis),c&&E.fill&&Bo(h.ctx,E,m))}},beforeDatasetsDraw(h,n,o){if("beforeDatasetsDraw"!==o.drawTime)return;const c=h.getSortedVisibleDatasetMetas();for(let p=c.length-1;p>=0;--p){const m=c[p].$filler;gr(m)&&Bo(h.ctx,m,h.chartArea)}},beforeDatasetDraw(h,n,o){const c=n.meta.$filler;gr(c)&&"beforeDatasetDraw"===o.drawTime&&Bo(h.ctx,c,h.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const br=(h,n)=>{let{boxHeight:o=n,boxWidth:c=n}=h;return h.usePointStyle&&(o=Math.min(o,n),c=h.pointStyleWidth||Math.min(c,n)),{boxWidth:c,boxHeight:o,itemHeight:Math.max(n,o)}};class wr extends Qt{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.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(n,o,c){this.maxWidth=n,this.maxHeight=o,this._margins=c,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 n=this.options.labels||{};let o=W(n.generateLabels,[this.chart],this)||[];n.filter&&(o=o.filter(c=>n.filter(c,this.chart.data))),n.sort&&(o=o.sort((c,p)=>n.sort(c,p,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:n,ctx:o}=this;if(!n.display)return void(this.width=this.height=0);const c=n.labels,p=re(c.font),m=p.size,_=this._computeTitleHeight(),{boxWidth:E,itemHeight:j}=br(c,m);let G,st;o.font=p.string,this.isHorizontal()?(G=this.maxWidth,st=this._fitRows(_,m,E,j)+10):(st=this.maxHeight,G=this._fitCols(_,m,E,j)+10),this.width=Math.min(G,n.maxWidth||this.maxWidth),this.height=Math.min(st,n.maxHeight||this.maxHeight)}_fitRows(n,o,c,p){const{ctx:m,maxWidth:_,options:{labels:{padding:E}}}=this,j=this.legendHitBoxes=[],G=this.lineWidths=[0],st=p+E;let ot=n;m.textAlign="left",m.textBaseline="middle";let gt=-1,Dt=-st;return this.legendItems.forEach((kt,Pt)=>{const jt=c+o/2+m.measureText(kt.text).width;(0===Pt||G[G.length-1]+jt+2*E>_)&&(ot+=st,G[G.length-(Pt>0?0:1)]=0,Dt+=st,gt++),j[Pt]={left:0,top:Dt,row:gt,width:jt,height:p},G[G.length-1]+=jt+E}),ot}_fitCols(n,o,c,p){const{ctx:m,maxHeight:_,options:{labels:{padding:E}}}=this,j=this.legendHitBoxes=[],G=this.columnSizes=[],st=_-n;let ot=E,gt=0,Dt=0,kt=0,Pt=0;return this.legendItems.forEach((jt,Jt)=>{const le=c+o/2+m.measureText(jt.text).width;Jt>0&&Dt+p+2*E>st&&(ot+=gt+E,G.push({width:gt,height:Dt}),kt+=gt+E,Pt++,gt=Dt=0),j[Jt]={left:kt,top:Dt,col:Pt,width:le,height:p},gt=Math.max(gt,le),Dt+=p+E}),ot+=gt,G.push({width:gt,height:Dt}),ot}adjustHitBoxes(){if(!this.options.display)return;const n=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:c,labels:{padding:p},rtl:m}}=this,_=Be(m,this.left,this.width);if(this.isHorizontal()){let E=0,j=C(c,this.left+p,this.right-this.lineWidths[E]);for(const G of o)E!==G.row&&(E=G.row,j=C(c,this.left+p,this.right-this.lineWidths[E])),G.top+=this.top+n+p,G.left=_.leftForLtr(_.x(j),G.width),j+=G.width+p}else{let E=0,j=C(c,this.top+n+p,this.bottom-this.columnSizes[E].height);for(const G of o)G.col!==E&&(E=G.col,j=C(c,this.top+n+p,this.bottom-this.columnSizes[E].height)),G.top=j,G.left+=this.left+p,G.left=_.leftForLtr(_.x(G.left),G.width),j+=G.height+p}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const n=this.ctx;Ji(n,this),this._draw(),Xn(n)}}_draw(){const{options:n,columnSizes:o,lineWidths:c,ctx:p}=this,{align:m,labels:_}=n,E=di.color,j=Be(n.rtl,this.left,this.width),G=re(_.font),{color:st,padding:ot}=_,gt=G.size,Dt=gt/2;let kt;this.drawTitle(),p.textAlign=j.textAlign("left"),p.textBaseline="middle",p.lineWidth=.5,p.font=G.string;const{boxWidth:Pt,boxHeight:jt,itemHeight:Jt}=br(_,gt),le=this.isHorizontal(),me=this._computeTitleHeight();kt=le?{x:C(m,this.left+ot,this.right-c[0]),y:this.top+ot+me,line:0}:{x:this.left+ot,y:C(m,this.top+me+ot,this.bottom-o[0].height),line:0},pi(this.ctx,n.textDirection);const _e=Jt+ot;
vendor: 1,732 bytes, line 1
1this.legendItems.forEach((Fe,qe)=>{p.strokeStyle=Fe.fontColor||st,p.fillStyle=Fe.fontColor||st;const Qe=p.measureText(Fe.text).width,fi=j.textAlign(Fe.textAlign||(Fe.textAlign=_.textAlign)),ui=Pt+Dt+Qe;let ti=kt.x,_i=kt.y;var bi,Ze;j.setWidth(this.width),le?qe>0&&ti+ui+ot>this.right&&(_i=kt.y+=_e,kt.line++,ti=kt.x=C(m,this.left+ot,this.right-c[kt.line])):qe>0&&_i+_e>this.bottom&&(ti=kt.x=ti+o[kt.line].width+ot,kt.line++,_i=kt.y=C(m,this.top+me+ot,this.bottom-o[kt.line].height)),function(bi,xi,Ze){if(isNaN(Pt)||Pt<=0||isNaN(jt)||jt<0)return;p.save();const wi=u(Ze.lineWidth,1);if(p.fillStyle=u(Ze.fillStyle,E),p.lineCap=u(Ze.lineCap,"butt"),p.lineDashOffset=u(Ze.lineDashOffset,0),p.lineJoin=u(Ze.lineJoin,"miter"),p.lineWidth=wi,p.strokeStyle=u(Ze.strokeStyle,E),p.setLineDash(u(Ze.lineDash,[])),_.usePointStyle){const Gi={radius:jt*Math.SQRT2/2,pointStyle:Ze.pointStyle,rotation:Ze.rotation,borderWidth:wi},An=j.xPlus(bi,Pt/2);Vn(p,Gi,An,xi+Dt,_.pointStyleWidth&&Pt)}else{const Gi=xi+Math.max((gt-jt)/2,0),An=j.leftForLtr(bi,Pt),jn=te(Ze.borderRadius);p.beginPath(),Object.values(jn).some(ns=>0!==ns)?P(p,{x:An,y:Gi,w:Pt,h:jt,radius:jn}):p.rect(An,Gi,Pt,jt),p.fill(),0!==wi&&p.stroke()}p.restore()}(j.x(ti),_i,Fe),ti=U(fi,ti+Pt+Dt,le?ti+ui:this.right,n.rtl),bi=j.x(ti),zn(p,(Ze=Fe).text,bi,_i+Jt/2,G,{strikethrough:Ze.hidden,textAlign:j.textAlign(Ze.textAlign)}),le?kt.x+=ui+ot:kt.y+=_e}),oi(this.ctx,n.textDirection)}drawTitle(){const n=this.options,o=n.title,c=re(o.font),p=ie(o.padding);if(!o.display)return;const m=Be(n.rtl,this.left,this.width),_=this.ctx,E=o.position,G=p.top+c.size/2;let st,ot=this.left,gt=this.width;if(this.isHorizontal())gt=Math.max(...this.lineWidths),st=this.top+G,ot=C(n.align,ot,this.right-gt);
vendor: 11,079 bytes, line 1
1else{const kt=this.columnSizes.reduce((Pt,jt)=>Math.max(Pt,jt.height),0);st=G+C(n.align,this.top,this.bottom-kt-n.labels.padding-this._computeTitleHeight())}const Dt=C(E,ot,ot+gt);_.textAlign=m.textAlign(g(E)),_.textBaseline="middle",_.strokeStyle=o.color,_.fillStyle=o.color,_.font=c.string,zn(_,o.text,Dt,st,c)}_computeTitleHeight(){const n=this.options.title,o=re(n.font),c=ie(n.padding);return n.display?o.lineHeight+c.height:0}_getLegendItemAt(n,o){let c,p,m;if(Xe(n,this.left,this.right)&&Xe(o,this.top,this.bottom))for(m=this.legendHitBoxes,c=0;c<m.length;++c)if(p=m[c],Xe(n,p.left,p.left+p.width)&&Xe(o,p.top,p.top+p.height))return this.legendItems[c];return null}handleEvent(n){const o=this.options;if(E=o,("mousemove"!==(_=n.type)&&"mouseout"!==_||!E.onHover&&!E.onLeave)&&(!E.onClick||"click"!==_&&"mouseup"!==_))return;var _,E;const c=this._getLegendItemAt(n.x,n.y);if("mousemove"===n.type||"mouseout"===n.type){const _=this._hoveredItem,E=(m=c,null!==(p=_)&&null!==m&&p.datasetIndex===m.datasetIndex&&p.index===m.index);_&&!E&&W(o.onLeave,[n,_,this],this),this._hoveredItem=c,c&&!E&&W(o.onHover,[n,c,this],this)}else c&&W(o.onClick,[n,c,this],this);var p,m}}var ha={id:"legend",_element:wr,start(h,n,o){const c=h.legend=new wr({ctx:h.ctx,options:o,chart:h});Re.configure(h,c,o),Re.addBox(h,c)},stop(h){Re.removeBox(h,h.legend),delete h.legend},beforeUpdate(h,n,o){const c=h.legend;Re.configure(h,c,o),c.options=o},afterUpdate(h){const n=h.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(h,n){n.replay||h.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(h,n,o){const c=n.datasetIndex,p=o.chart;p.isDatasetVisible(c)?(p.hide(c),n.hidden=!0):(p.show(c),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:h=>h.chart.options.color,boxWidth:40,padding:10,generateLabels(h){const n=h.data.datasets,{labels:{usePointStyle:o,pointStyle:c,textAlign:p,color:m}}=h.legend.options;return h._getSortedDatasetMetas().map(_=>{const E=_.controller.getStyle(o?0:void 0),j=ie(E.borderWidth);return{text:n[_.index].label,fillStyle:E.backgroundColor,fontColor:m,hidden:!_.visible,lineCap:E.borderCapStyle,lineDash:E.borderDash,lineDashOffset:E.borderDashOffset,lineJoin:E.borderJoinStyle,lineWidth:(j.width+j.height)/4,strokeStyle:E.borderColor,pointStyle:c||E.pointStyle,rotation:E.rotation,textAlign:p||E.textAlign,borderRadius:0,datasetIndex:_.index}},this)}},title:{color:h=>h.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:h=>!h.startsWith("on"),labels:{_scriptable:h=>!["generateLabels","filter","sort"].includes(h)}}};class zo extends Qt{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.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(n,o){const c=this.options;if(this.left=0,this.top=0,!c.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=n,this.height=this.bottom=o;const p=F(c.text)?c.text.length:1;this._padding=ie(c.padding);const m=p*re(c.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=m:this.width=m}isHorizontal(){const n=this.options.position;return"top"===n||"bottom"===n}_drawArgs(n){const{top:o,left:c,bottom:p,right:m,options:_}=this,E=_.align;let j,G,st,ot=0;return this.isHorizontal()?(G=C(E,c,m),st=o+n,j=m-c):("left"===_.position?(G=c+n,st=C(E,p,o),ot=-.5*mt):(G=m-n,st=C(E,o,p),ot=.5*mt),j=p-o),{titleX:G,titleY:st,maxWidth:j,rotation:ot}}draw(){const n=this.ctx,o=this.options;if(!o.display)return;const c=re(o.font),p=c.lineHeight/2+this._padding.top,{titleX:m,titleY:_,maxWidth:E,rotation:j}=this._drawArgs(p);zn(n,o.text,0,0,c,{color:o.color,maxWidth:E,rotation:j,textAlign:g(o.align),textBaseline:"middle",translation:[m,_]})}}var ca={id:"title",_element:zo,start(h,n,o){!function(c,p){const m=new zo({ctx:c.ctx,options:p,chart:c});Re.configure(c,m,p),Re.addBox(c,m),c.titleBlock=m}(h,o)},stop(h){Re.removeBox(h,h.titleBlock),delete h.titleBlock},beforeUpdate(h,n,o){const c=h.titleBlock;Re.configure(h,c,o),c.options=o},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 wo=new WeakMap;var ua={id:"subtitle",start(h,n,o){const c=new zo({ctx:h.ctx,options:o,chart:h});Re.configure(h,c,o),Re.addBox(h,c),wo.set(h,c)},stop(h){Re.removeBox(h,wo.get(h)),wo.delete(h)},beforeUpdate(h,n,o){const c=wo.get(h);Re.configure(h,c,o),c.options=o},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 ro={average(h){if(!h.length)return!1;let n,o,c=0,p=0,m=0;for(n=0,o=h.length;n<o;++n){const _=h[n].element;if(_&&_.hasValue()){const E=_.tooltipPosition();c+=E.x,p+=E.y,++m}}return{x:c/m,y:p/m}},nearest(h,n){if(!h.length)return!1;let o,c,p,m=n.x,_=n.y,E=Number.POSITIVE_INFINITY;for(o=0,c=h.length;o<c;++o){const j=h[o].element;if(j&&j.hasValue()){const G=Ht(n,j.getCenterPoint());G<E&&(E=G,p=j)}}if(p){const j=p.tooltipPosition();m=j.x,_=j.y}return{x:m,y:_}}};function Ls(h,n){return n&&(F(n)?Array.prototype.push.apply(h,n):h.push(n)),h}function Hs(h){return("string"==typeof h||h instanceof String)&&h.indexOf("\n")>-1?h.split("\n"):h}function da(h,n){const{element:o,datasetIndex:c,index:p}=n,m=h.getDatasetMeta(c).controller,{label:_,value:E}=m.getLabelAndValue(p);return{chart:h,label:_,parsed:m.getParsed(p),raw:h.data.datasets[c].data[p],formattedValue:E,dataset:m.getDataset(),dataIndex:p,datasetIndex:c,element:o}}function Cr(h,n){const o=h.chart.ctx,{body:c,footer:p,title:m}=h,{boxWidth:_,boxHeight:E}=n,j=re(n.bodyFont),G=re(n.titleFont),st=re(n.footerFont),ot=m.length,gt=p.length,Dt=c.length,kt=ie(n.padding);let Pt=kt.height,jt=0,Jt=c.reduce((_e,Fe)=>_e+Fe.before.length+Fe.lines.length+Fe.after.length,0);Jt+=h.beforeBody.length+h.afterBody.length,ot&&(Pt+=ot*G.lineHeight+(ot-1)*n.titleSpacing+n.titleMarginBottom),Jt&&(Pt+=Dt*(n.displayColors?Math.max(E,j.lineHeight):j.lineHeight)+(Jt-Dt)*j.lineHeight+(Jt-1)*n.bodySpacing),gt&&(Pt+=n.footerMarginTop+gt*st.lineHeight+(gt-1)*n.footerSpacing);let le=0;const me=function(_e){jt=Math.max(jt,o.measureText(_e).width+le)};return o.save(),o.font=G.string,R(h.title,me),o.font=j.string,R(h.beforeBody.concat(h.afterBody),me),le=n.displayColors?_+2+n.boxPadding:0,R(c,_e=>{R(_e.before,me),R(_e.lines,me),R(_e.after,me)}),le=0,o.font=st.string,R(h.footer,me),o.restore(),jt+=kt.width,{width:jt,height:Pt}}function pa(h,n,o,c){const{x:p,width:m}=o,{width:_,chartArea:{left:E,right:j}}=h;let G="center";return"center"===c?G=p<=(E+j)/2?"left":"right":p<=m/2?G="left":p>=_-m/2&&(G="right"),function(st,ot,gt,Dt){const{x:kt,width:Pt}=Dt,jt=gt.caretSize+gt.caretPadding;return"left"===st&&kt+Pt+jt>ot.width||"right"===st&&kt-Pt-jt<0||void 0}(G,h,n,o)&&(G="center"),G}function Dr(h,n,o){const c=o.yAlign||n.yAlign||function(p,m){const{y:_,height:E}=m;return _<E/2?"top":_>p.height-E/2?"bottom":"center"}(h,o);return{xAlign:o.xAlign||n.xAlign||pa(h,n,o,c),yAlign:c}}function Sr(h,n,o,c){const{caretSize:p,caretPadding:m,cornerRadius:_}=h,{xAlign:E,yAlign:j}=o,G=p+m,{topLeft:st,topRight:ot,bottomLeft:gt,bottomRight:Dt}=te(_);let kt=function(jt,Jt){let{x:le,width:me}=jt;return"right"===Jt?le-=me:"center"===Jt&&(le-=me/2),le}(n,E);const Pt=function(jt,Jt,le){let{y:me,height:_e}=jt;return"top"===Jt?me+=le:me-="bottom"===Jt?_e+le:_e/2,me}(n,j,G);return"center"===j?"left"===E?kt+=G:"right"===E&&(kt-=G):"left"===E?kt-=Math.max(st,gt)+p:"right"===E&&(kt+=Math.max(ot,Dt)+p),{x:Ee(kt,0,c.width-n.width),y:Ee(Pt,0,c.height-n.height)}}function Co(h,n,o){const c=ie(o.padding);return"center"===n?h.x+h.width/2:"right"===n?h.x+h.width-c.right:h.x+c.left}function xr(h){return Ls([],Hs(h))}function kr(h,n){const o=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return o?h.override(o):h}class Wo extends Qt{constructor(n){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=n.chart||n._chart,this._chart=this.chart,this.options=n.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(n){this.options=n,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const n=this._cachedAnimations;if(n)return n;const o=this.chart,c=this.options.setContext(this.getContext()),p=c.enabled&&o.options.animation&&c.animations,m=new Ws(this.chart,p);return p._cacheable&&(this._cachedAnimations=Object.freeze(m)),m}getContext(){return this.$context||(this.$context=ke(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"}))}getTitle(n,o){const{callbacks:c}=o,p=c.beforeTitle.apply(this,[n]),m=c.title.apply(this,[n]),_=c.afterTitle.apply(this,[n]);let E=[];return E=Ls(E,Hs(p)),E=Ls(E,Hs(m)),E=Ls(E,Hs(_)),E}getBeforeBody(n,o){return xr(o.callbacks.beforeBody.apply(this,[n]))}getBody(n,o){const{callbacks:c}=o,p=[];return R(n,m=>{const _={before:[],lines:[],after:[]},E=kr(c,m);Ls(_.before,Hs(E.beforeLabel.call(this,m))),Ls(_.lines,E.label.call(this,m)),Ls(_.after,Hs(E.afterLabel.call(this,m))),p.push(_)}),p}getAfterBody(n,o){return xr(o.callbacks.afterBody.apply(this,[n]))}getFooter(n,o){const{callbacks:c}=o,p=c.beforeFooter.apply(this,[n]),m=c.footer.apply(this,[n]),_=c.afterFooter.apply(this,[n]);let E=[];return E=Ls(E,Hs(p)),E=Ls(E,Hs(m)),E=Ls(E,Hs(_)),E}_createItems(n){const o=this._active,c=this.chart.data,p=[],m=[],_=[];let E,j,G=[];for(E=0,j=o.length;E<j;++E)G.push(da(this.chart,o[E]));return n.filter&&(G=G.filter((st,ot,gt)=>n.filter(st,ot,gt,c))),n.itemSort&&(G=G.sort((st,ot)=>n.itemSort(st,ot,c))),R(G,st=>{const ot=kr(n.callbacks,st);p.push(ot.labelColor.call(this,st)),m.push(ot.labelPointStyle.call(this,st)),_.push(ot.labelTextColor.call(this,st))}),this.labelColors=p,this.labelPointStyles=m,this.labelTextColors=_,this.dataPoints=G,G}update(n,o){const c=this.options.setContext(this.getContext()),p=this._active;let m,_=[];if(p.length){const E=ro[c.position].call(this,p,this._eventPosition);_=this._createItems(c),this.title=this.getTitle(_,c),this.beforeBody=this.getBeforeBody(_,c),this.body=this.getBody(_,c),this.afterBody=this.getAfterBody(_,c),this.footer=this.getFooter(_,c);const j=this._size=Cr(this,c),G=Object.assign({},E,j),st=Dr(this.chart,c,G),ot=Sr(c,G,st,this.chart);this.xAlign=st.xAlign,this.yAlign=st.yAlign,m={opacity:1,x:ot.x,y:ot.y,width:j.width,height:j.height,caretX:E.x,caretY:E.y}}else 0!==this.opacity&&(m={opacity:0}
vendor: 5,165 bytes, line 1
1);this._tooltipItems=_,this.$context=void 0,m&&this._resolveAnimations().update(this,m),n&&c.external&&c.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(n,o,c,p){const m=this.getCaretPosition(n,c,p);o.lineTo(m.x1,m.y1),o.lineTo(m.x2,m.y2),o.lineTo(m.x3,m.y3)}getCaretPosition(n,o,c){const{xAlign:p,yAlign:m}=this,{caretSize:_,cornerRadius:E}=c,{topLeft:j,topRight:G,bottomLeft:st,bottomRight:ot}=te(E),{x:gt,y:Dt}=n,{width:kt,height:Pt}=o;let jt,Jt,le,me,_e,Fe;return"center"===m?(_e=Dt+Pt/2,"left"===p?(jt=gt,Jt=jt-_,me=_e+_,Fe=_e-_):(jt=gt+kt,Jt=jt+_,me=_e-_,Fe=_e+_),le=jt):(Jt="left"===p?gt+Math.max(j,st)+_:"right"===p?gt+kt-Math.max(G,ot)-_:this.caretX,"top"===m?(me=Dt,_e=me-_,jt=Jt-_,le=Jt+_):(me=Dt+Pt,_e=me+_,jt=Jt+_,le=Jt-_),Fe=me),{x1:jt,x2:Jt,x3:le,y1:me,y2:_e,y3:Fe}}drawTitle(n,o,c){const p=this.title,m=p.length;let _,E,j;if(m){const G=Be(c.rtl,this.x,this.width);for(n.x=Co(this,c.titleAlign,c),o.textAlign=G.textAlign(c.titleAlign),o.textBaseline="middle",_=re(c.titleFont),E=c.titleSpacing,o.fillStyle=c.titleColor,o.font=_.string,j=0;j<m;++j)o.fillText(p[j],G.x(n.x),n.y+_.lineHeight/2),n.y+=_.lineHeight+E,j+1===m&&(n.y+=c.titleMarginBottom-E)}}_drawColorBox(n,o,c,p,m){const _=this.labelColors[c],E=this.labelPointStyles[c],{boxHeight:j,boxWidth:G,boxPadding:st}=m,ot=re(m.bodyFont),gt=Co(this,"left",m),Dt=p.x(gt),Pt=o.y+(j<ot.lineHeight?(ot.lineHeight-j)/2:0);if(m.usePointStyle){const jt={radius:Math.min(G,j)/2,pointStyle:E.pointStyle,rotation:E.rotation,borderWidth:1},Jt=p.leftForLtr(Dt,G)+G/2,le=Pt+j/2;n.strokeStyle=m.multiKeyBackground,n.fillStyle=m.multiKeyBackground,Hn(n,jt,Jt,le),n.strokeStyle=_.borderColor,n.fillStyle=_.backgroundColor,Hn(n,jt,Jt,le)}else{n.lineWidth=l(_.borderWidth)?Math.max(...Object.values(_.borderWidth)):_.borderWidth||1,n.strokeStyle=_.borderColor,n.setLineDash(_.borderDash||[]),n.lineDashOffset=_.borderDashOffset||0;const jt=p.leftForLtr(Dt,G-st),Jt=p.leftForLtr(p.xPlus(Dt,1),G-st-2),le=te(_.borderRadius);Object.values(le).some(me=>0!==me)?(n.beginPath(),n.fillStyle=m.multiKeyBackground,P(n,{x:jt,y:Pt,w:G,h:j,radius:le}),n.fill(),n.stroke(),n.fillStyle=_.backgroundColor,n.beginPath(),P(n,{x:Jt,y:Pt+1,w:G-2,h:j-2,radius:le}),n.fill()):(n.fillStyle=m.multiKeyBackground,n.fillRect(jt,Pt,G,j),n.strokeRect(jt,Pt,G,j),n.fillStyle=_.backgroundColor,n.fillRect(Jt,Pt+1,G-2,j-2))}n.fillStyle=this.labelTextColors[c]}drawBody(n,o,c){const{body:p}=this,{bodySpacing:m,bodyAlign:_,displayColors:E,boxHeight:j,boxWidth:G,boxPadding:st}=c,ot=re(c.bodyFont);let gt=ot.lineHeight,Dt=0;const kt=Be(c.rtl,this.x,this.width),Pt=function(fi){o.fillText(fi,kt.x(n.x+Dt),n.y+gt/2),n.y+=gt+m},jt=kt.textAlign(_);let Jt,le,me,_e,Fe,qe,Qe;for(o.textAlign=_,o.textBaseline="middle",o.font=ot.string,n.x=Co(this,jt,c),o.fillStyle=c.bodyColor,R(this.beforeBody,Pt),Dt=E&&"right"!==jt?"center"===_?G/2+st:G+2+st:0,_e=0,qe=p.length;_e<qe;++_e){for(Jt=p[_e],le=this.labelTextColors[_e],o.fillStyle=le,R(Jt.before,Pt),me=Jt.lines,E&&me.length&&(this._drawColorBox(o,n,_e,kt,c),gt=Math.max(ot.lineHeight,j)),Fe=0,Qe=me.length;Fe<Qe;++Fe)Pt(me[Fe]),gt=ot.lineHeight;R(Jt.after,Pt)}Dt=0,gt=ot.lineHeight,R(this.afterBody,Pt),n.y-=m}drawFooter(n,o,c){const p=this.footer,m=p.length;let _,E;if(m){const j=Be(c.rtl,this.x,this.width);for(n.x=Co(this,c.footerAlign,c),n.y+=c.footerMarginTop,o.textAlign=j.textAlign(c.footerAlign),o.textBaseline="middle",_=re(c.footerFont),o.fillStyle=c.footerColor,o.font=_.string,E=0;E<m;++E)o.fillText(p[E],j.x(n.x),n.y+_.lineHeight/2),n.y+=_.lineHeight+c.footerSpacing}}drawBackground(n,o,c,p){const{xAlign:m,yAlign:_}=this,{x:E,y:j}=n,{width:G,height:st}=c,{topLeft:ot,topRight:gt,bottomLeft:Dt,bottomRight:kt}=te(p.cornerRadius);o.fillStyle=p.backgroundColor,o.strokeStyle=p.borderColor,o.lineWidth=p.borderWidth,o.beginPath(),o.moveTo(E+ot,j),"top"===_&&this.drawCaret(n,o,c,p),o.lineTo(E+G-gt,j),o.quadraticCurveTo(E+G,j,E+G,j+gt),"center"===_&&"right"===m&&this.drawCaret(n,o,c,p),o.lineTo(E+G,j+st-kt),o.quadraticCurveTo(E+G,j+st,E+G-kt,j+st),"bottom"===_&&this.drawCaret(n,o,c,p),o.lineTo(E+Dt,j+st),o.quadraticCurveTo(E,j+st,E,j+st-Dt),"center"===_&&"left"===m&&this.drawCaret(n,o,c,p),o.lineTo(E,j+ot),o.quadraticCurveTo(E,j,E+ot,j),o.closePath(),o.fill(),p.borderWidth>0&&o.stroke()}_updateAnimationTarget(n){const o=this.chart,c=this.$animations,p=c&&c.x,m=c&&c.y;if(p||m){const _=ro[n.position].call(this,this._active,this._eventPosition);if(!_)return;const E=this._size=Cr(this,n),j=Object.assign({},_,this._size),G=Dr(o,n,j),st=Sr(n,j,G,o);p._to===st.x&&m._to===st.y||(this.xAlign=G.xAlign,this.yAlign=G.yAlign,this.width=E.width,this.height=E.height,this.caretX=_.x,this.caretY=_.y,this._resolveAnimations().update(this,st))}}_willRender(){return!!this.opacity}draw(n){const o=this.options.setContext(this.getContext());let c=this.opacity;if(!c)return;this._updateAnimationTarget(o);const p={width:this.width,height:this.height},m={x:this.x,y:this.y};c=Math.abs(c)<.001?0:c;const _=ie(o.padding);o.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(n.save(),n.globalAlpha=c,this.drawBackgroun
vendor: 10,746 bytes, line 1
1d(m,n,p,o),pi(n,o.textDirection),m.y+=_.top,this.drawTitle(m,n,o),this.drawBody(m,n,o),this.drawFooter(m,n,o),oi(n,o.textDirection),n.restore())}getActiveElements(){return this._active||[]}setActiveElements(n,o){const c=this._active,p=n.map(({datasetIndex:E,index:j})=>{const G=this.chart.getDatasetMeta(E);if(!G)throw new Error("Cannot find a dataset at index "+E);return{datasetIndex:E,element:G.data[j],index:j}}),m=!k(c,p),_=this._positionChanged(p,o);(m||_)&&(this._active=p,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(n,o,c=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const p=this.options,m=this._active||[],_=this._getActiveElements(n,m,o,c),E=this._positionChanged(_,n),j=o||!k(_,m)||E;return j&&(this._active=_,(p.enabled||p.external)&&(this._eventPosition={x:n.x,y:n.y},this.update(!0,o))),j}_getActiveElements(n,o,c,p){const m=this.options;if("mouseout"===n.type)return[];if(!p)return o;const _=this.chart.getElementsAtEventForMode(n,m.mode,m,c);return m.reverse&&_.reverse(),_}_positionChanged(n,o){const{caretX:c,caretY:p,options:m}=this,_=ro[m.position].call(this,n,o);return!1!==_&&(c!==_.x||p!==_.y)}}Wo.positioners=ro;var Tr=Object.freeze({__proto__:null,Decimation:ea,Filler:la,Legend:ha,SubTitle:ua,Title:ca,Tooltip:{id:"tooltip",_element:Wo,positioners:ro,afterInit(h,n,o){o&&(h.tooltip=new Wo({chart:h,options:o}))},beforeUpdate(h,n,o){h.tooltip&&h.tooltip.initialize(o)},reset(h,n,o){h.tooltip&&h.tooltip.initialize(o)},afterDraw(h){const n=h.tooltip;if(n&&n._willRender()){const o={tooltip:n};if(!1===h.notifyPlugins("beforeTooltipDraw",o))return;n.draw(h.ctx),h.notifyPlugins("afterTooltipDraw",o)}},afterEvent(h,n){h.tooltip&&h.tooltip.handleEvent(n.event,n.replay,n.inChartArea)&&(n.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:(h,n)=>n.bodyFont.size,boxWidth:(h,n)=>n.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:i,title(h){if(h.length>0){const n=h[0],o=n.chart.data.labels,c=o?o.length:0;if(this&&this.options&&"dataset"===this.options.mode)return n.dataset.label||"";if(n.label)return n.label;if(c>0&&n.dataIndex<c)return o[n.dataIndex]}return""},afterTitle:i,beforeBody:i,beforeLabel:i,label(h){if(this&&this.options&&"dataset"===this.options.mode)return h.label+": "+h.formattedValue||h.formattedValue;let n=h.dataset.label||"";n&&(n+=": ");const o=h.formattedValue;return K(o)||(n+=o),n},labelColor(h){const n=h.chart.getDatasetMeta(h.datasetIndex).controller.getStyle(h.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(h){const n=h.chart.getDatasetMeta(h.datasetIndex).controller.getStyle(h.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:i,afterBody:i,beforeFooter:i,footer:i,afterFooter:i}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:h=>"filter"!==h&&"itemSort"!==h&&"external"!==h,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class Do extends ji{constructor(n){super(n),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(n){const o=this._addedLabels;if(o.length){const c=this.getLabels();for(const{index:p,label:m}of o)c[p]===m&&c.splice(p,1);this._addedLabels=[]}super.init(n)}parse(n,o){if(K(n))return null;const c=this.getLabels();return p=o=isFinite(o)&&c[o]===n?o:function ga(h,n,o,c){const p=h.indexOf(n);return-1===p?(E=o,j=c,"string"==typeof(_=n)?(E=h.push(_)-1,j.unshift({index:E,label:_})):isNaN(_)&&(E=null),E):p!==h.lastIndexOf(n)?o:p;var _,E,j}(c,n,u(o,n),this._addedLabels),m=c.length-1,null===p?null:Ee(Math.round(p),0,m);var p,m}determineDataLimits(){const{minDefined:n,maxDefined:o}=this.getUserBounds();let{min:c,max:p}=this.getMinMax(!0);"ticks"===this.options.bounds&&(n||(c=0),o||(p=this.getLabels().length-1)),this.min=c,this.max=p}buildTicks(){const n=this.min,o=this.max,c=this.options.offset,p=[];let m=this.getLabels();m=0===n&&o===m.length-1?m:m.slice(n,o+1),this._valueRange=Math.max(m.length-(c?0:1),1),this._startValue=this.min-(c?.5:0);for(let _=n;_<=o;_++)p.push({value:_});return p}getLabelForValue(n){const o=this.getLabels();return n>=0&&n<o.length?o[n]:n}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(n){return"number"!=typeof n&&(n=this.parse(n)),null===n?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getPixelForTick(n){const o=this.ticks;return n<0||n>o.length-1?null:this.getPixelForValue(o[n].value)}getValueForPixel(n){return Math.round(this._startValue+this.getDecimalForPixel(n)*this._valueRange)}getBasePixel(){return this.bottom}}function Er(h,n,{horizontal:o,minRotation:c}){const p=Ut(c),m=(o?Math.sin(p):Math.cos(p))||.001;return Math.min(n/m,.75*n*(""+h).length)}Do.id="category",Do.defaults={ticks:{callback:Do.prototype.getLabelForValue}};class So extends ji{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,o){return K(n)||("number"==typeof n||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){const{beginAtZero:n}=this.options,{minDefined:o,maxDefined:c}=this.getUserBounds();let{min:p,max:m}=this;const _=j=>p=o?p:j,E=j=>m=c?m:j;if(n){const j=w(p),G=w(m);j<0&&G<0?E(0):j>0&&G>0&&_(0)}if(p===m){let j=1;(m>=Number.MAX_SAFE_INTEGER||p<=Number.MIN_SAFE_INTEGER)&&(j=Math.abs(.05*m)),E(m+j),n||_(p-j)}this.min=p,this.max=m}getTickLimit(){const n=this.options.ticks;let o,{maxTicksLimit:c,stepSize:p}=n;return p?(o=Math.ceil(this.max/p)-Math.floor(this.min/p)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${p} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),c=c||11),c&&(o=Math.min(c,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const n=this.options,o=n.ticks;let c=this.getTickLimit();c=Math.max(2,c);const p=function(m,_){const E=[],{bounds:j,step:G,min:st,max:ot,precision:gt,count:Dt,maxTicks:kt,maxDigits:Pt,includeBounds:jt}=m,Jt=G||1,le=kt-1,{min:me,max:_e}=_,Fe=!K(st),qe=!K(ot),Qe=!K(Dt),fi=(_e-me)/(Pt+1);let ui,ti,_i,bi,xi=Y((_e-me)/le/Jt)*Jt;if(xi<1e-14&&!Fe&&!qe)return[{value:me},{value:_e}];bi=Math.ceil(_e/xi)-Math.floor(me/xi),bi>le&&(xi=Y(bi*xi/le/Jt)*Jt),K(gt)||(ui=Math.pow(10,gt),xi=Math.ceil(xi*ui)/ui),"ticks"===j?(ti=Math.floor(me/xi)*xi,_i=Math.ceil(_e/xi)*xi):(ti=me,_i=_e),Fe&&qe&&G&&It((ot-st)/G,xi/1e3)?(bi=Math.round(Math.min((ot-st)/xi,kt)),xi=(ot-st)/bi,ti=st,_i=ot):Qe?(ti=Fe?st:ti,_i=qe?ot:_i,bi=Dt-1,xi=(_i-ti)/bi):(bi=(_i-ti)/xi,bi=yt(bi,Math.round(bi),xi/1e3)?Math.round(bi):Math.ceil(bi));const Ze=Math.max(be(xi),be(ti));ui=Math.pow(10,K(gt)?Ze:gt),ti=Math.round(ti*ui)/ui,_i=Math.round(_i*ui)/ui;let wi=0;for(Fe&&(jt&&ti!==st?(E.push({value:st}),ti<st&&wi++,yt(Math.round((ti+wi*xi)*ui)/ui,st,Er(st,fi,m))&&wi++):ti<st&&wi++);wi<bi;++wi)E.push({value:Math.round((ti+wi*xi)*ui)/ui});return qe&&jt&&_i!==ot?E.length&&yt(E[E.length-1].value,ot,Er(ot,fi,m))?E[E.length-1].value=ot:E.push({value:ot}):qe&&_i!==ot||E.push({value:_i}),E}({maxTicks:c,bounds:n.bounds,min:n.min,max:n.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:!1!==o.includeBounds},this._range||this);return"ticks"===n.bounds&&Lt(p,this,"value"),n.reverse?(p.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),p}configure(){const n=this.ticks;let o=this.min,c=this.max;if(super.configure(),this.options.offset&&n.length){const p=(c-o)/Math.max(n.length-1,1)/2;o-=p,c+=p}this._startValue=o,this._endValue=c,this._valueRange=c-o}getLabelForValue(n){return B(n,this.chart.options.locale,this.options.ticks.format)}}class jo extends So{determineDataLimits(){const{min:n,max:o}=this.getMinMax(!0);this.min=r(n)?n:0,this.max=r(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){const n=this.isHorizontal(),o=n?this.width:this.height,c=Ut(this.options.ticks.minRotation),p=(n?Math.sin(c):Math.cos(c))||.001,m=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,m.lineHeight/p))}getPixelForValue(n){return null===n?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}}function Mr(h){return h/Math.pow(10,Math.floor(Ot(h)))==1}jo.id="linear",jo.defaults={ticks:{callback:He.formatters.numeric}};class $o extends ji{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,o){const c=So.prototype.parse.apply(this,[n,o]);if(0!==c)return r(c)&&c>0?c:null;this._zero=!0}determineDataLimits(){const{min:n,max:o}=this.getMinMax(!0);this.min=r(n)?Math.max(0,n):null,this.max=r(o)?Math.max(0,o):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:n,maxDefined:o}=this.getUserBounds();let c=this.min,p=this.max;const m=j=>c=n?c:j,_=j=>p=o?p:j,E=(j,G)=>Math.pow(10,Math.floor(Ot(j))+G);c===p&&(c<=0?(m(1),_(10)):(m(E(c,-1)),_(E(p,1)))),c<=0&&m(E(p,-1)),p<=0&&_(E(c,1)),this._zero&&this.min!==this._suggestedMin&&c===E(this.min,0)&&m(E(c,-1)),this.min=c,this.max=p}buildTicks(){const n=this.options,o=function(c,p){const m=Math.floor(Ot(p.max)),_=Math.ceil(p.max/Math.pow(10,m)),E=[];let j=a(c.min,Math.pow(10,Math.floor(Ot(p.min)))),G=Math.floor(Ot(j)),st=Math.floor(j/Math.pow(10,G)),ot=G<0?Math.pow(10,Math.abs(G)):1;do{E.push({value:j,major:Mr(j)}),++st,10===st&&(st=1,++G,ot=G>=0?1:ot),j=Math.round(st*Math.pow(10,G)*ot)/ot}while(G<m||G===m&&st<_);const gt=a(c.max,j);return E.push({value:gt,major:Mr(j)}),E}({min:this._userMin,max:this._userMax},this);return"ticks"===n.bounds&&Lt(o,this,"value"),n.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}
vendor: 3,502 bytes, line 1
1getLabelForValue(n){return void 0===n?"0":B(n,this.chart.options.locale,this.options.ticks.format)}configure(){const n=this.min;super.configure(),this._startValue=Ot(n),this._valueRange=Ot(this.max)-Ot(n)}getPixelForValue(n){return void 0!==n&&0!==n||(n=this.min),null===n||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(Ot(n)-this._startValue)/this._valueRange)}getValueForPixel(n){const o=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+o*this._valueRange)}}function Vo(h){const n=h.ticks;if(n.display&&h.display){const o=ie(n.backdropPadding);return u(n.font&&n.font.size,di.font.size)+o.height}return 0}function Ir(h,n,o,c,p){return h===c||h===p?{start:n-o/2,end:n+o/2}:h<c||h>p?{start:n-o,end:n}:{start:n,end:n+o}}function va(h,n,o,c,p){const m=Math.abs(Math.sin(o)),_=Math.abs(Math.cos(o));let E=0,j=0;c.start<n.l?(E=(n.l-c.start)/m,h.l=Math.min(h.l,n.l-E)):c.end>n.r&&(E=(c.end-n.r)/m,h.r=Math.max(h.r,n.r+E)),p.start<n.t?(j=(n.t-p.start)/_,h.t=Math.min(h.t,n.t-j)):p.end>n.b&&(j=(p.end-n.b)/_,h.b=Math.max(h.b,n.b+j))}function ya(h){return 0===h||180===h?"center":h<180?"left":"right"}function _a(h,n,o){return"right"===o?h-=n:"center"===o&&(h-=n/2),h}function ba(h,n,o){return 90===o||270===o?h-=n/2:(o>270||o<90)&&(h-=n),h}function Or(h,n,o,c){const{ctx:p}=h;if(o)p.arc(h.xCenter,h.yCenter,n,0,wt);else{let m=h.getPointPosition(0,n);p.moveTo(m.x,m.y);for(let _=1;_<c;_++)m=h.getPointPosition(_,n),p.lineTo(m.x,m.y)}}$o.id="logarithmic",$o.defaults={ticks:{callback:He.formatters.logarithmic,major:{enabled:!0}}};class ao extends So{constructor(n){super(n),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const n=this._padding=ie(Vo(this.options)/2),o=this.width=this.maxWidth-n.width,c=this.height=this.maxHeight-n.height;this.xCenter=Math.floor(this.left+o/2+n.left),this.yCenter=Math.floor(this.top+c/2+n.top),this.drawingArea=Math.floor(Math.min(o,c)/2)}determineDataLimits(){const{min:n,max:o}=this.getMinMax(!1);this.min=r(n)&&!isNaN(n)?n:0,this.max=r(o)&&!isNaN(o)?o:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Vo(this.options))}generateTickLabels(n){So.prototype.generateTickLabels.call(this,n),this._pointLabels=this.getLabels().map((o,c)=>{const p=W(this.options.pointLabels.callback,[o,c],this);return p||0===p?p:""}).filter((o,c)=>this.chart.getDataVisibility(c))}fit(){const n=this.options;n.display&&n.pointLabels.display?function ma(h){const n={l:h.left+h._padding.left,r:h.right-h._padding.right,t:h.top+h._padding.top,b:h.bottom-h._padding.bottom},o=Object.assign({},n),c=[],p=[],m=h._pointLabels.length,_=h.options.pointLabels,E=_.centerPointLabels?mt/m:0;for(let ot=0;ot<m;ot++){const gt=_.setContext(h.getPointLabelContext(ot));p[ot]=gt.padding;const Dt=h.getPointPosition(ot,h.drawingArea+p[ot],E),kt=re(gt.font),Pt=(j=h.ctx,G=kt,st=F(st=h._pointLabels[ot])?st:[st],{w:vs(j,G.string,st),h:st.length*G.lineHeight});c[ot]=Pt;const jt=ge(h.getIndexAngle(ot)+E),Jt=Math.round(de(jt));va(o,n,jt,Ir(Jt,Dt.x,Pt.w,0,180),Ir(Jt,Dt.y,Pt.h,90,270))}var j,G,st;h.setCenterPoint(n.l-o.l,o.r-n.r,n.t-o.t,o.b-n.b),h._pointLabelItems=function(ot,gt,Dt){const kt=[],Pt=ot._pointLabels.length,jt=ot.options,Jt=Vo(jt)/2,le=ot.drawingArea,me=jt.pointLabels.centerPointLabels?mt/Pt:0;for(let _e=0;_e<Pt;_e++){const Fe=ot.getPointPosition(_e,le+Jt+Dt[_e],me),qe=Math.round(de(ge(Fe.angle+he))),Qe=gt[_e],fi=ba(Fe.y,Qe.h,qe),ui=ya(qe),ti=_a(Fe.x,Qe.w,ui);
vendor: 4,961 bytes, line 1
1kt.push({x:Fe.x,y:fi,textAlign:ui,left:ti,top:fi,right:ti+Qe.w,bottom:fi+Qe.h})}return kt}(h,c,p)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,o,c,p){this.xCenter+=Math.floor((n-o)/2),this.yCenter+=Math.floor((c-p)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,o,c,p))}getIndexAngle(n){return ge(n*(wt/(this._pointLabels.length||1))+Ut(this.options.startAngle||0))}getDistanceFromCenterForValue(n){if(K(n))return NaN;const o=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*o:(n-this.min)*o}getValueForDistanceFromCenter(n){if(K(n))return NaN;const o=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(n){const o=this._pointLabels||[];if(n>=0&&n<o.length){const c=o[n];return ke(this.getContext(),{label:c,index:n,type:"pointLabel"})}}getPointPosition(n,o,c=0){const p=this.getIndexAngle(n)-he+c;return{x:Math.cos(p)*o+this.xCenter,y:Math.sin(p)*o+this.yCenter,angle:p}}getPointPositionForValue(n,o){return this.getPointPosition(n,this.getDistanceFromCenterForValue(o))}getBasePosition(n){return this.getPointPositionForValue(n||0,this.getBaseValue())}getPointLabelPosition(n){const{left:o,top:c,right:p,bottom:m}=this._pointLabelItems[n];return{left:o,top:c,right:p,bottom:m}}drawBackground(){const{backgroundColor:n,grid:{circular:o}}=this.options;if(n){const c=this.ctx;c.save(),c.beginPath(),Or(this,this.getDistanceFromCenterForValue(this._endValue),o,this._pointLabels.length),c.closePath(),c.fillStyle=n,c.fill(),c.restore()}}drawGrid(){const n=this.ctx,o=this.options,{angleLines:c,grid:p}=o,m=this._pointLabels.length;let _,E,j;if(o.pointLabels.display&&function(G,st){const{ctx:ot,options:{pointLabels:gt}}=G;for(let Dt=st-1;Dt>=0;Dt--){const kt=gt.setContext(G.getPointLabelContext(Dt)),Pt=re(kt.font),{x:jt,y:Jt,textAlign:le,left:me,top:_e,right:Fe,bottom:qe}=G._pointLabelItems[Dt],{backdropColor:Qe}=kt;if(!K(Qe)){const fi=te(kt.borderRadius),ui=ie(kt.backdropPadding);ot.fillStyle=Qe;const ti=me-ui.left,_i=_e-ui.top,bi=Fe-me+ui.width,xi=qe-_e+ui.height;Object.values(fi).some(Ze=>0!==Ze)?(ot.beginPath(),P(ot,{x:ti,y:_i,w:bi,h:xi,radius:fi}),ot.fill()):ot.fillRect(ti,_i,bi,xi)}zn(ot,G._pointLabels[Dt],jt,Jt+Pt.lineHeight/2,Pt,{color:kt.color,textAlign:le,textBaseline:"middle"})}}(this,m),p.display&&this.ticks.forEach((G,st)=>{0!==st&&(E=this.getDistanceFromCenterForValue(G.value),function(ot,gt,Dt,kt){const Pt=ot.ctx,jt=gt.circular,{color:Jt,lineWidth:le}=gt;!jt&&!kt||!Jt||!le||Dt<0||(Pt.save(),Pt.strokeStyle=Jt,Pt.lineWidth=le,Pt.setLineDash(gt.borderDash),Pt.lineDashOffset=gt.borderDashOffset,Pt.beginPath(),Or(ot,Dt,jt,kt),Pt.closePath(),Pt.stroke(),Pt.restore())}(this,p.setContext(this.getContext(st-1)),E,m))}),c.display){for(n.save(),_=m-1;_>=0;_--){const G=c.setContext(this.getPointLabelContext(_)),{color:st,lineWidth:ot}=G;ot&&st&&(n.lineWidth=ot,n.strokeStyle=st,n.setLineDash(G.borderDash),n.lineDashOffset=G.borderDashOffset,E=this.getDistanceFromCenterForValue(o.ticks.reverse?this.min:this.max),j=this.getPointPosition(_,E),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(j.x,j.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){const n=this.ctx,o=this.options,c=o.ticks;if(!c.display)return;const p=this.getIndexAngle(0);let m,_;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(p),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((E,j)=>{if(0===j&&!o.reverse)return;const G=c.setContext(this.getContext(j)),st=re(G.font);if(m=this.getDistanceFromCenterForValue(this.ticks[j].value),G.showLabelBackdrop){n.font=st.string,_=n.measureText(E.label).width,n.fillStyle=G.backdropColor;const ot=ie(G.backdropPadding);n.fillRect(-_/2-ot.left,-m-st.size/2-ot.top,_+ot.width,st.size+ot.height)}zn(n,E.label,0,-m,st,{color:G.color})}),n.restore()}drawTitle(){}}ao.id="radialLinear",ao.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:He.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:h=>h,padding:5,centerPointLabels:!1}},ao.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},ao.descriptors={angleLines:{_fallback:"grid"}};const xo={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}},Ds=Object.keys(xo);function wa(h,n){return h-n}function Pr(h,n){if(K(n))return null;const o=h._adapter,{parser:c,round:p,isoWeekday:m}=h._parseOpts;let _=n;return"function"==typeof c&&(_=c(_)),r(_)||(_="string"==typeof c?o.parse(_,c):o.parse(_)),null===_?null:(p&&
vendor: 3,142 bytes, line 1
1(_="week"!==p||!it(m)&&!0!==m?o.startOf(_,p):o.startOf(_,"isoWeek",m)),+_)}function Ar(h,n,o,c){const p=Ds.length;for(let m=Ds.indexOf(h);m<p-1;++m){const _=xo[Ds[m]],E=_.steps?_.steps:Number.MAX_SAFE_INTEGER;if(_.common&&Math.ceil((o-n)/(E*_.size))<=c)return Ds[m]}return Ds[p-1]}function Lr(h,n,o){if(o){if(o.length){const{lo:c,hi:p}=Tt(o,n);h[o[c]>=n?o[c]:o[p]]=!0}}else h[n]=!0}function Rr(h,n,o){const c=[],p={},m=n.length;let _,E;for(_=0;_<m;++_)E=n[_],p[E]=_,c.push({value:E,major:!1});return 0!==m&&o?function(j,G,st,ot){const gt=j._adapter,Dt=+gt.startOf(G[0].value,ot),kt=G[G.length-1].value;let Pt,jt;for(Pt=Dt;Pt<=kt;Pt=+gt.add(Pt,1,ot))jt=st[Pt],jt>=0&&(G[jt].major=!0);return G}(h,c,p,o):c}class lo extends ji{constructor(n){super(n),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(n,o){const c=n.time||(n.time={}),p=this._adapter=new tr._date(n.adapters.date);p.init(o),A(c.displayFormats,p.formats()),this._parseOpts={parser:c.parser,round:c.round,isoWeekday:c.isoWeekday},super.init(n),this._normalized=o.normalized}parse(n,o){return void 0===n?null:Pr(this,n)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const n=this.options,o=this._adapter,c=n.time.unit||"day";let{min:p,max:m,minDefined:_,maxDefined:E}=this.getUserBounds();function j(G){_||isNaN(G.min)||(p=Math.min(p,G.min)),E||isNaN(G.max)||(m=Math.max(m,G.max))}_&&E||(j(this._getLabelBounds()),"ticks"===n.bounds&&"labels"===n.ticks.source||j(this.getMinMax(!1))),p=r(p)&&!isNaN(p)?p:+o.startOf(Date.now(),c),m=r(m)&&!isNaN(m)?m:+o.endOf(Date.now(),c)+1,this.min=Math.min(p,m-1),this.max=Math.max(p+1,m)}_getLabelBounds(){const n=this.getLabelTimestamps();let o=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY;return n.length&&(o=n[0],c=n[n.length-1]),{min:o,max:c}}buildTicks(){const n=this.options,o=n.time,c=n.ticks,p="labels"===c.source?this.getLabelTimestamps():this._generate();"ticks"===n.bounds&&p.length&&(this.min=this._userMin||p[0],this.max=this._userMax||p[p.length-1]);const m=this.min,_=ne(p,m,this.max);return this._unit=o.unit||(c.autoSkip?Ar(o.minUnit,this.min,this.max,this._getLabelCapacity(m)):function(E,j,G,st,ot){for(let gt=Ds.length-1;gt>=Ds.indexOf(G);gt--){const Dt=Ds[gt];if(xo[Dt].common&&E._adapter.diff(ot,st,Dt)>=j-1)return Dt}return Ds[G?Ds.indexOf(G):0]}(this,_.length,o.minUnit,this.min,this.max)),this._majorUnit=c.major.enabled&&"year"!==this._unit?function(E){for(let j=Ds.indexOf(E)+1,G=Ds.length;j<G;++j)if(xo[Ds[j]].common)return Ds[j]}(this._unit):void 0,this.initOffsets(p),n.reverse&&_.reverse(),Rr(this,_,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(n=>+n.value))}initOffsets(n){let o,c,p=0,m=0;this.options.offset&&n.length&&(o=this.getDecimalForValue(n[0]),p=1===n.length?1-o:(this.getDecimalForValue(n[1])-o)/2,c=this.getDecimalForValue(n[n.length-1]),m=1===n.length?c:(c-this.getDecimalForValue(n[n.length-2]))/2);const _=n.length<3?.5:.25;p=Ee(p,0,_),m=Ee(m,0,_),this._offsets={start:p,end:m,factor:1/(p+1+m)}}
vendor: 4,542 bytes, line 1
1_generate(){const n=this._adapter,o=this.min,c=this.max,p=this.options,m=p.time,_=m.unit||Ar(m.minUnit,o,c,this._getLabelCapacity(o)),E=u(m.stepSize,1),j="week"===_&&m.isoWeekday,G=it(j)||!0===j,st={};let ot,gt,Dt=o;if(G&&(Dt=+n.startOf(Dt,"isoWeek",j)),Dt=+n.startOf(Dt,G?"day":_),n.diff(c,o,_)>1e5*E)throw new Error(o+" and "+c+" are too far apart with stepSize of "+E+" "+_);const kt="data"===p.ticks.source&&this.getDataTimestamps();for(ot=Dt,gt=0;ot<c;ot=+n.add(ot,E,_),gt++)Lr(st,ot,kt);return ot!==c&&"ticks"!==p.bounds&&1!==gt||Lr(st,ot,kt),Object.keys(st).sort((Pt,jt)=>Pt-jt).map(Pt=>+Pt)}getLabelForValue(n){const c=this.options.time;return this._adapter.format(n,c.tooltipFormat?c.tooltipFormat:c.displayFormats.datetime)}_tickFormatFunction(n,o,c,p){const m=this.options,_=m.time.displayFormats,E=this._unit,j=this._majorUnit,st=j&&_[j],ot=c[o],Dt=this._adapter.format(n,p||(j&&st&&ot&&ot.major?st:E&&_[E])),kt=m.ticks.callback;return kt?W(kt,[Dt,o,c],this):Dt}generateTickLabels(n){let o,c,p;for(o=0,c=n.length;o<c;++o)p=n[o],p.label=this._tickFormatFunction(p.value,o,n)}getDecimalForValue(n){return null===n?NaN:(n-this.min)/(this.max-this.min)}getPixelForValue(n){const o=this._offsets,c=this.getDecimalForValue(n);return this.getPixelForDecimal((o.start+c)*o.factor)}getValueForPixel(n){const o=this._offsets,c=this.getDecimalForPixel(n)/o.factor-o.end;return this.min+c*(this.max-this.min)}_getLabelSize(n){const o=this.options.ticks,c=this.ctx.measureText(n).width,p=Ut(this.isHorizontal()?o.maxRotation:o.minRotation),m=Math.cos(p),_=Math.sin(p),E=this._resolveTickFontOptions(0).size;return{w:c*m+E*_,h:c*_+E*m}}_getLabelCapacity(n){const o=this.options.time,c=o.displayFormats,p=c[o.unit]||c.millisecond,m=this._tickFormatFunction(n,0,Rr(this,[n],this._majorUnit),p),_=this._getLabelSize(m),E=Math.floor(this.isHorizontal()?this.width/_.w:this.height/_.h)-1;return E>0?E:1}getDataTimestamps(){let n,o,c=this._cache.data||[];if(c.length)return c;const p=this.getMatchingVisibleMetas();if(this._normalized&&p.length)return this._cache.data=p[0].controller.getAllParsedValues(this);for(n=0,o=p.length;n<o;++n)c=c.concat(p[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(c)}getLabelTimestamps(){const n=this._cache.labels||[];let o,c;if(n.length)return n;const p=this.getLabels();for(o=0,c=p.length;o<c;++o)n.push(Pr(this,p[o]));return this._cache.labels=this._normalized?n:this.normalize(n)}normalize(n){return Le(n.sort(wa))}}function ko(h,n,o){let c,p,m,_,E=0,j=h.length-1;o?(n>=h[E].pos&&n<=h[j].pos&&({lo:E,hi:j}=$t(h,"pos",n)),({pos:c,time:m}=h[E]),({pos:p,time:_}=h[j])):(n>=h[E].time&&n<=h[j].time&&({lo:E,hi:j}=$t(h,"time",n)),({time:c,pos:m}=h[E]),({time:p,pos:_}=h[j]));const G=p-c;return G?m+(_-m)*(n-c)/G:m}lo.id="time",lo.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class qo extends lo{constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const n=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(n);this._minPos=ko(o,this.min),this._tableRange=ko(o,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){const{min:o,max:c}=this,p=[],m=[];let _,E,j,G,st;for(_=0,E=n.length;_<E;++_)G=n[_],G>=o&&G<=c&&p.push(G);if(p.length<2)return[{time:o,pos:0},{time:c,pos:1}];for(_=0,E=p.length;_<E;++_)st=p[_+1],j=p[_-1],G=p[_],Math.round((st+j)/2)!==G&&m.push({time:G,pos:_/(E-1)});return m}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;const o=this.getDataTimestamps(),c=this.getLabelTimestamps();return n=o.length&&c.length?this.normalize(o.concat(c)):o.length?o:c,n=this._cache.all=n,n}getDecimalForValue(n){return(ko(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){const o=this._offsets,c=this.getDecimalForPixel(n)/o.factor-o.end;return ko(this._table,c*this._tableRange+this._minPos,!0)}}qo.id="timeseries",qo.defaults=lo.defaults;var Hr=Object.freeze({__proto__:null,CategoryScale:Do,LinearScale:jo,LogarithmicScale:$o,RadialLinearScale:ao,TimeScale:lo,TimeSeriesScale:qo});return Wn.register(or,Hr,Ho,Tr),Wn.helpers=To({},Yi),Wn._adapters=tr,Wn.Animation=Rs,Wn.Animations=Ws,Wn.animator=vt,Wn.controllers=ki.controllers.items,Wn.DatasetController=At,Wn.Element=Qt,Wn.elements=Ho,Wn.Interaction=xs,Wn.layouts=Re,Wn.platforms=Ms,Wn.Scale=ji,Wn.Ticks=He,Object.assign(Wn,or,Hr,Ho,Tr,Ms),Wn.Chart=Wn,"undefined"!=typeof window&&(window.Chart=Wn),Wn});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.