function downloadForm(){function f(n){var t=$(".newsletter-form").data("download-url");t+="?id="+n;$.ajax({url:t,data:{},processData:!1,contentType:!1,type:"GET",success:function(n){n.Url&&i(n.Url,n.Name)}})}function i(n,t){var i=document.createElement("a");i.download=t;i.href=n;document.body.appendChild(i);i.click();document.body.removeChild(i);delete i}var r=$(".js-open-modal"),n=$(".js-open-download-news"),t=$(".js-close-modal"),u=$("body");return{init:function(){if(u.hasClass("logged"))n.removeClass("js-open-download");else n.on("click",function(n){var i,t;if(n.preventDefault(),i=$(this),t=i.data("contentid"),t){if(i.hasClass("downloaded")){f(t);return}var r=$(this).closest(".js-modal-wrap"),u=r.find(".js-modal"),e=r.find("#ContentId");e.val(t);u.addClass("modal--opened")}});r.on("click",function(){if(!$(this).hasClass("downloaded")){var n=$(this).closest(".js-modal-wrap").find(".js-modal");n.addClass("modal--opened")}});t.on("click",function(){var n=$(this).closest(".js-modal");n.removeClass("modal--opened")})},onSuccessDownload:function(r){r.Url&&(i(r.Url,r.Name),n.addClass("downloaded"),t.click())}}}!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function hr(n,t,i){var r,u=(t=t||f).createElement("script");if(u.text=n,i)for(r in df)i[r]&&(u[r]=i[r]);t.head.appendChild(u).parentNode.removeChild(u)}function it(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?bt[or.call(n)]||"object":typeof n}function hi(n){var t=!!n&&"length"in n&&n.length,i=it(n);return!u(n)&&!tt(n)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in n)}function v(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function li(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return wt.call(t,n)>-1!==r}):i.filter(t,n,r)}function wr(n,t){for(;(n=n[t])&&1!==n.nodeType;);return n}function ut(n){return n}function dt(n){throw n;}function br(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function ni(){f.removeEventListener("DOMContentLoaded",ni);n.removeEventListener("load",ni);i.ready()}function ie(n,t){return t.toUpperCase()}function y(n){return n.replace(ne,"ms-").replace(te,ie)}function at(){this.expando=i.expando+at.uid++}function dr(n,t,i){var r;if(void 0===i&&1===n.nodeType)if(r="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(r))){try{i=function(n){return"true"===n||"false"!==n&&("null"===n?null:n===+n+""?+n:re.test(n)?JSON.parse(n):n)}(i)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function tu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==e&&+o)&&vt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function fe(n){var r,f=n.ownerDocument,u=n.nodeName,t=ai[u];return t||(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),"none"===t&&(t="block"),ai[u]=t,t)}function ft(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i]).style&&(e=u.style.display,t?("none"===e&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),""===u.style.display&&ti(u)&&(f[i]=fe(u))):"none"!==e&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)null!=f[i]&&(n[i].style.display=f[i]);return n}function s(n,t){var r;return r=void 0!==n.getElementsByTagName?n.getElementsByTagName(t||"*"):void 0!==n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&v(n,t)?i.merge([n],r):r}function vi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function eu(n,t,r,u,f){for(var e,o,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===it(e))i.merge(y,e.nodeType?[e]:e);else if(fu.test(e)){for(o=o||h.appendChild(t.createElement("div")),p=(ru.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=h.firstChild).textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];)if(u&&i.inArray(e,u)>-1)f&&f.push(e);else if(w=i.contains(e.ownerDocument,e),o=s(h.appendChild(e),"script"),w&&vi(o),r)for(v=0;e=o[v++];)uu.test(e.type||"")&&r.push(e);return h}function ri(){return!0}function et(){return!1}function su(){try{return f.activeElement}catch(n){}}function yi(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)yi(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=et;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function hu(n,t){return v(n,"table")&&v(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function ae(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function ve(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function cu(n,t){var u,c,f,s,h,l,a,e;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),e=s.events))for(f in delete h.handle,h.events={},e)for(u=0,c=e[f].length;u<c;u++)i.event.add(t,f,e[f][u]);o.hasData(n)&&(l=o.access(n),a=i.extend({},l),o.set(t,a))}}function ye(n,t){var i=t.nodeName.toLowerCase();"input"===i&&iu.test(n.type)?t.checked=n.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=n.defaultValue)}function ot(n,t,f,o){t=er.apply([],t);var a,w,l,v,h,b,c=0,y=n.length,d=y-1,p=t[0],k=u(p);if(k||y>1&&"string"==typeof p&&!e.checkClone&&ce.test(p))return n.each(function(i){var r=n.eq(i);k&&(t[0]=p.call(this,i,r.html()));ot(r,t,f,o)});if(y&&(w=(a=eu(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=w),w||o)){for(v=(l=i.map(s(a,"script"),ae)).length;c<y;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(b=l[l.length-1].ownerDocument,i.map(l,ve),c=0;c<v;c++)h=l[c],uu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(b,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&i._evalUrl(h.src):hr(h.textContent.replace(le,""),b,h))}return n}function lu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(s(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&vi(s(u,"script")),u.parentNode.removeChild(u));return n}function yt(n,t,r){var o,s,h,f,u=n.style;return(r=r||ui(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||i.contains(n.ownerDocument,n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&pi.test(f)&&pe.test(t)&&(o=u.width,s=u.minWidth,h=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=s,u.maxWidth=h)),void 0!==f?f+"":f}function au(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function bu(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=function(n){if(n in wu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=pu.length;t--;)if((n=pu[t]+i)in wu)return n}(n)||n),t}function ku(n,t,i){var r=vt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wi(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+w[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+w[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+w[o]+"Width",!0,f))):(s+=i.css(n,"padding"+w[o],!0,f),"padding"!==r?s+=i.css(n,"border"+w[o]+"Width",!0,f):h+=i.css(n,"border"+w[o]+"Width",!0,f));return!u&&e>=0&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))),s}function du(n,t,r){var f=ui(n),u=yt(n,t,f),s="border-box"===i.css(n,"boxSizing",!1,f),o=s;if(pi.test(u)){if(!r)return u;u="auto"}return o=o&&(e.boxSizingReliable()||u===n.style[t]),("auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&(u=n["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),(u=parseFloat(u)||0)+wi(n,t,r||(s?"border":"content"),o,f,u)+"px"}function h(n,t,i,r,u){return new h.prototype.init(n,t,i,r,u)}function bi(){fi&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(bi):n.setTimeout(bi,i.fx.interval),i.fx.tick())}function tf(){return n.setTimeout(function(){st=void 0}),st=Date.now()}function ei(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=w[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function rf(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function a(n,t,r){var o,s,h=0,v=a.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=st||tf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:st||tf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=y(r)],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),(o=i.cssHooks[f])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,f.opts.specialEasing);h<v;h++)if(o=a.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,rf,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function g(n){return(n.match(l)||[]).join(" ")}function nt(n){return n.getAttribute&&n.getAttribute("class")||""}function ki(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(l)||[]}function tr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||ke.test(n)?u(n,i):tr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==it(t))u(n,t);else for(f in t)tr(n+"["+f+"]",t[f],r,u)}function af(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))for(;r=e[f++];)"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function vf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===ir;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ur(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}var k=[],f=n.document,bf=Object.getPrototypeOf,d=k.slice,er=k.concat,si=k.push,wt=k.indexOf,bt={},or=bt.toString,kt=bt.hasOwnProperty,sr=kt.toString,kf=sr.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},tt=function(n){return null!=n&&n===n.window},df={type:!0,src:!0,noModule:!0},i=function(n,t){return new i.fn.init(n,t)},gf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b,ci,ar,vr,yr,pr,l,kr,gt,lt,ai,fu,st,fi,gu,nf,uf,ht,ff,ef,of,di,gi,yf,ct,fr,oi,pf,wf;i.fn=i.prototype={jquery:"3.3.1",constructor:i,length:0,toArray:function(){return d.call(this)},get:function(n){return null==n?d.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:si,sort:k.sort,splice:k.splice};i.extend=i.fn.extend=function(){var o,e,t,r,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for("boolean"==typeof n&&(c=n,n=arguments[f]||{},f++),"object"==typeof n||u(n)||(n={}),f===l&&(n=this,f--);f<l;f++)if(null!=(o=arguments[f]))for(e in o)t=n[e],n!==(r=o[e])&&(c&&r&&(i.isPlainObject(r)||(s=Array.isArray(r)))?(s?(s=!1,h=t&&Array.isArray(t)?t:[]):h=t&&i.isPlainObject(t)?t:{},n[e]=i.extend(c,h,r)):void 0!==r&&(n[e]=r));return n};i.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==or.call(n)||(t=bf(n))&&("function"!=typeof(i=kt.call(t,"constructor")&&t.constructor)||sr.call(i)!==kf))},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},globalEval:function(n){hr(n)},each:function(n,t){var r,i=0;if(hi(n))for(r=n.length;i<r&&!1!==t.call(n[i],i,n[i]);i++);else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},trim:function(n){return null==n?"":(n+"").replace(gf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(hi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):si.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:wt.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(hi(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return er.apply([],f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=k[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){bt["[object "+t+"]"]=t.toLowerCase()});b=function(n){function u(n,t,r,u){var s,p,l,a,w,d,g,y=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(w=cr.exec(n)))if(s=w[1]){if(9===v){if(!(l=t.getElementById(s)))return r;if(l.id===s)return r.push(l),r}else if(y&&(l=y.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(w[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=w[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)y=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),p=(d=ft(n)).length;p--;)d[p]="#"+a+" "+yt(d[p]);g=d.join(",");y=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,y.querySelectorAll(g)),r}catch(n){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&void 0!==n.getElementsByTagName&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&"parentNode"===e,s=di++;return t.first?function(t,i,u){for(;t=t[r];)if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,y,a=[v,s];if(h){for(;t=t[r];)if((1===t.nodeType||o)&&n(t,i,h))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(l=(y=t[f]||(t[f]={}))[t.uniqueID]||(y[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return a[2]=c[2];if(l[e]=a,a[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,e,o){return r&&!r[f]&&(r=fi(r)),e&&!e[f]&&(e=fi(e,o)),l(function(f,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=f||function(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!f&&t?d:wt(d,w,n,s,h),c=i?e||(f?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=wt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(f){if(e||n){if(e){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);e(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&(a=e?nt(f,v):w[l])>-1&&(f[a]=!(o[a]=v))}}else c=wt(c===o?c.splice(b,c.length):c),e?e(null,o,c,h):k.apply(o,c)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[f]){for(r=++i;r<s&&!t.relative[n[r].type];r++);return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function yr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)for(;p--;)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!=r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return!0===n.disabled&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(n){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in e=u.support={},oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return!!t&&"HTML"!==t.nodeName},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(s=(i=l).documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if(void 0!==t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=void 0!==n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if(void 0!==t.getElementById&&h){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){for(;i=u[f++];)1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);for(;f[u]===e[u];)u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i):i},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){}return u(t,i,null,[n]).length>0},u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)},u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):void 0;return void 0!==u?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.escape=function(n){return(n+"").replace(vi,yi)},u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){for(;r=n[i++];)r===n[i]&&(t=u.push(i));for(;t--;)n.splice(u[t],1)}return w=null,n},st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u++];)i+=st(r);return i},(t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||void 0!==n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(k){if(s){for(;b;){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)for(;(c=++a&&c&&c[b]||(l=a=0)||w.pop())&&((e?c.nodeName.toLowerCase()!==nt:1!==c.nodeType)||!++l||(g&&((d=(y=c[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c!==t)););return(l-=u)===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){for(o in e&&!(f=rr.exec(r))||(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length)),t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)(i=ei(t[r]))[f]?u.push(i):e.push(i);(i=lt(n,yr(e,u))).selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if((f=s[0]=s[0].slice(0)).length>2&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0]))return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--&&(e=f[o],!t.relative[l=e.type]);)if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&yt(f)))return k.apply(r,u),r;break}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(dt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=b;i.expr=b.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=b.uniqueSort;i.text=b.getText;i.isXMLDoc=b.isXML;i.contains=b.contains;i.escapeSelector=b.escape;var rt=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},cr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},lr=i.expr.match.needsContext;ci=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(li(this,n||[],!1))},not:function(n){return this.pushStack(li(this,n||[],!0))},is:function(n){return!!li(this,"string"==typeof n&&lr.test(n)?i(n):n||[],!1).length}});vr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||ar,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:vr.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),ci.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;ar=i(f);yr=/^(?:parents|prev(?:Until|All))/;pr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!lr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?wt.call(i(n),this[0]):wt.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return rt(n,"parentNode")},parentsUntil:function(n,t,i){return rt(n,"parentNode",i)},next:function(n){return wr(n,"nextSibling")},prev:function(n){return wr(n,"previousSibling")},nextAll:function(n){return rt(n,"nextSibling")},prevAll:function(n){return rt(n,"previousSibling")},nextUntil:function(n,t,i){return rt(n,"nextSibling",i)},prevUntil:function(n,t,i){return rt(n,"previousSibling",i)},siblings:function(n){return cr((n.parentNode||{}).firstChild,n)},children:function(n){return cr(n.firstChild)},contents:function(n){return v(n,"iframe")?n.contentDocument:(v(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(pr[n]||i.uniqueSort(f),yr.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n="string"==typeof n?function(n){var t={};return i.each(n.match(l)||[],function(n,i){t[i]=!0}),t}(n):i.extend({},n);var f,r,c,e,t=[],s=[],o=-1,a=function(){for(e=e||n.once,c=f=!0;s.length;o=-1)for(r=s.shift();++o<t.length;)!1===t[o].apply(r[0],r[1])&&n.stopOnFalse&&(o=t.length,r=!1);n.memory||(r=!1);f=!1;e&&(t=r?[]:"")},h={add:function(){return t&&(r&&!f&&(o=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&h.has(r)||t.push(r):r&&r.length&&"string"!==it(r)&&f(r)})}(arguments),r&&!f&&a()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=o&&o--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return e=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return e=s=[],r||f||(t=r=""),this},locked:function(){return!!e},fireWith:function(n,t){return e||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),f||a()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,a=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,ut,e),s(o,r,dt,e)):(o++,i.call(n,s(o,r,ut,e),s(o,r,dt,e),s(o,r,ut,r.notifyWith))):(f!==ut&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},l=e?a:function(){try{a()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,l.stackTrace);t+1>=o&&(f!==dt&&(h=void 0,c=[n]),r.rejectWith(h,c))}};t?l():(i.Deferred.getStackHook&&(l.stackTrace=i.Deferred.getStackHook()),n.setTimeout(l))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:ut,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:ut));f[2][3].add(s(0,n,u(r)?r:dt))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=d.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=arguments.length>1?d.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(br(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();for(;t--;)br(f[t],s(t),r.reject);return r.promise()}});kr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&kr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};gt=i.Deferred();i.fn.ready=function(n){return gt.then(n).catch(function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0,!0!==n&&--i.readyWait>0||gt.resolveWith(f,[i]))}});i.ready.then=gt.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",ni),n.addEventListener("load",ni));var p=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===it(r))for(h in e=!0,r)p(n,t,h,r[h],!0,o,s);else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},ne=/^-ms-/,te=/-([a-z])/g;lt=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};at.uid=1;at.prototype={cache:function(n){var t=n[this.expando];return t||(t={},lt(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new at,o=new at,re=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),dr(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):p(this,function(t){var r;if(i&&void 0===t){if(void 0!==(r=o.get(i,n))||void 0!==(r=dr(i,n)))return r}else this.each(function(){o.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)(u=r.get(f[s],n+"queueHooks"))&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var gr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,vt=new RegExp("^(?:([+-])=|)("+gr+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],ti=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&i.contains(n.ownerDocument,n)&&"none"===i.css(n,"display")},nu=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];for(u in f=i.apply(n,r||[]),t)n.style[u]=e[u];return f};ai={};i.fn.extend({show:function(){return ft(this,!0)},hide:function(){return ft(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){ti(this)?i(this).show():i(this).hide()})}});var iu=/^(?:checkbox|radio)$/i,ru=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,uu=/^$|^module$|\/(?:java|ecma)script/i,c={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,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;fu=/<|&#?\w+;/;!function(){var n=f.createDocumentFragment().appendChild(f.createElement("div")),t=f.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);e.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var ii=f.documentElement,ee=/^key/,oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ou=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,v,k,y,w,h,s,c,o,b,d,a=r.get(n);if(a)for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(ii,e),u.guid||(u.guid=i.guid++),(y=a.events)||(y=a.events={}),(v=a.handle)||(v=a.handle=function(t){if(void 0!==i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=ou.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=y[o])||((c=y[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,v)||n.addEventListener&&n.addEventListener(o,v)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,h,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(o=d=(c=ou.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},a=v[o=(f?h.delegateType:h.bindType)||o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,h.remove&&h.remove.call(n,s));k&&!a.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var u,h,c,e,f,l,t=i.event.fix(n),s=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==su()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===su()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&v(this,"input"))return this.click(),!1},_default:function(n){return v(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?ri:et,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ri;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ri;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ri;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.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,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(n){var t=n.button;return null==n.which&&ee.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&oe.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return yi(this,n,t,i,r)},one:function(n,t,i,r){return yi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=et),this.each(function(){i.event.remove(this,n,r,t)})}});var se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,he=/<script|<style|<link/i,ce=/checked\s*(?:[^=]|=\s*.checked.)/i,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(se,"<$1><\/$2>")},clone:function(n,t,r){var u,c,o,f,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)ye(o[u],f[u]);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)cu(o[u],f[u]);else cu(n,h);return(f=s(h,"script")).length>0&&vi(f,!l&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(lt(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return lu(this,n,!0)},remove:function(n){return lu(this,n)},text:function(n){return p(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return ot(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||hu(this,n).appendChild(n)})},prepend:function(){return ot(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=hu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return p(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!he.test(n)&&!c[(ru.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return ot(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),si.apply(f,u.get());return this.pushStack(f)}});var pi=new RegExp("^("+gr+")(?!px)[a-z%]+$","i"),ui=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},pe=new RegExp(w.join("|"),"i");!function(){function r(){if(t){o.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";ii.appendChild(o).appendChild(t);var i=n.getComputedStyle(t);s="1%"!==i.top;a=12===u(i.marginLeft);t.style.right="60%";l=36===u(i.right);h=36===u(i.width);t.style.position="absolute";c=36===t.offsetWidth||"absolute";ii.removeChild(o);t=null}}function u(n){return Math.round(parseFloat(n))}var s,h,c,l,a,o=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),h},pixelBoxStyles:function(){return r(),l},pixelPosition:function(){return r(),s},reliableMarginLeft:function(){return r(),a},scrollboxSize:function(){return r(),c}}))}();var we=/^(none|table(?!-c[ea]).+)/,vu=/^--/,be={position:"absolute",visibility:"hidden",display:"block"},yu={letterSpacing:"0",fontWeight:"400"},pu=["Webkit","Moz","ms"],wu=f.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=yt(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=vu.test(t),s=n.style;if(l||(t=bu(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=vt.exec(r))&&f[1]&&(r=tu(n,t,f),h="number");null!=r&&r==r&&("number"===h&&(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return vu.test(t)||(t=bu(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=yt(n,t,u)),"normal"===f&&t in yu&&(f=yu[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!we.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?du(n,t,u):nu(n,be,function(){return du(n,t,u)})},set:function(n,r,u){var s,f=ui(n),h="border-box"===i.css(n,"boxSizing",!1,f),o=u&&wi(n,t,u,h,f);return h&&e.scrollboxSize()===f.position&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-wi(n,t,"border",!1,f)-.5)),o&&(s=vt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),ku(0,r,o)}}});i.cssHooks.marginLeft=au(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(yt(n,"marginLeft"))||n.getBoundingClientRect().left-nu(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=ku)});i.fn.extend({css:function(n,t){return p(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ui(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=h;h.prototype={constructor:h,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=h.propHooks[this.prop];return n&&n.get?n.get(this):h.propHooks._default.get(this)},run:function(n){var t,r=h.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):h.propHooks._default.set(this),this}};h.prototype.init.prototype=h.prototype;h.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}};h.propHooks.scrollTop=h.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=h.prototype.init;i.fx.step={};gu=/^(?:toggle|show|hide)$/;nf=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return tu(i.elem,n,vt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],a.tweeners[i]=a.tweeners[i]||[],a.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&ti(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})})),t)if(y=t[f],gu.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(ft([n],!0),o=n.style.display||o,l=i.css(n,"display"),ft([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ft([n],!0),v.done(function(){for(f in a||ft([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=rf(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ti).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&!1!==n&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&nf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return!1!==n&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ei(t,!0),n,i,u)}});i.each({slideDown:ei("show"),slideUp:ei("hide"),slideToggle:ei("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(st=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();st=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){fi||(fi=!0,bi())};i.fx.stop=function(){fi=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx&&i.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=f.createElement("input"),t=f.createElement("select").appendChild(f.createElement("option"));n.type="checkbox";e.checkOn=""!==n.value;e.optSelected=t.selected;(n=f.createElement("input")).value="t";n.type="radio";e.radioValue="t"===n.value}();ht=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return p(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return void 0===n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?uf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&v(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&1===n.nodeType)for(;i=r[u++];)n.removeAttribute(i)}});uf={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ht[t]||i.find.attr;ht[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ht[u],ht[u]=f,f=null!=r(n,t,i)?u:null,ht[u]=e),f}});ff=/^(?:input|select|textarea|button)$/i;ef=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return p(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):ff.test(n.nodeName)||ef.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if((o=ki(n)).length)for(;t=this[c++];)if(f=nt(t),r=1===t.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)r.indexOf(" "+e+" ")<0&&(r+=e+" ");f!==(h=g(r))&&t.setAttribute("class",h)}return this},removeClass:function(n){var o,r,t,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if((o=ki(n)).length)for(;r=this[c++];)if(f=nt(r),t=1===r.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)for(;t.indexOf(" "+e+" ")>-1;)t=t.replace(" "+e+" "," ");f!==(h=g(t))&&r.setAttribute("class",h)}return this},toggleClass:function(n,t){var f=typeof n,e="string"===f||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=ki(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==f||((t=nt(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+g(nt(t))+" ").indexOf(i)>-1)return!0;return!1}});of=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(of,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:g(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(((t=o[r]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!v(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=i.inArray(i.valHooks.option.get(u),e)>-1)&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;di=/^(?:focusinfocus|focusoutblur)$/;gi=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,p,w=[o||f],h=kt.call(t,"type")?t.type:t,b=kt.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!di.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!tt(o)){for(d=a.delegateType||h,di.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||f)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=k>1?d:a.bindType||h,(y=(r.get(c,"events")||{})[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&lt(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!lt(o)||v&&u(o[h])&&!tt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,gi),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,gi),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var pt=n.location,sf=Date.now(),nr=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(n){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var ke=/\[\]$/,hf=/\r?\n/g,de=/^(?:submit|button|image|reset|file)$/i,ge=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)tr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&ge.test(this.nodeName)&&!de.test(n)&&(this.checked||!iu.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(hf,"\r\n")}}):{name:t.name,value:r.replace(hf,"\r\n")}}).get()}});var no=/%20/g,to=/#.*$/,io=/([?&])_=[^&]*/,ro=/^(.*?):[ \t]*([^\r\n]*)$/gm,uo=/^(?:GET|HEAD)$/,fo=/^\/\//,cf={},ir={},lf="*/".concat("*"),rr=f.createElement("a");return rr.href=pt.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":lf,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":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ur(ur(n,i.ajaxSettings),t):ur(i.ajaxSettings,n)},ajaxPrefilter:af(cf),ajaxTransport:af(ir),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=t>0?4:0,v=t>=200&&t<300||304===t,f&&(p=function(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}(u,e,f)),p=function(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(!(f=o[e+" "+u]||o["* "+u]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=ro.exec(k);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||pt.href)+"").replace(fo,pt.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=rr.protocol+"//"+rr.host!=c.protocol+"//"+c.host}catch(n){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),vf(cf,u,r,e),s)return e;for(g in(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!uo.test(u.type),o=u.url.replace(to,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(no,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(nr.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(o=o.replace(io,"$1"),p=(nr.test(o)?"&":"?")+"_="+sf+++p),u.url=o+p),u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType),e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+lf+"; q=0.01":""):u.accepts["*"]),u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=vf(ir,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&u.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(n){if(s)throw n;b(-1,n)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(n){}},yf={0:200,1223:204},ct=i.ajaxSettings.xhr(),e.cors=!!ct&&"withCredentials"in ct,e.ajax=ct=!!ct,i.ajaxTransport(function(t){var i,r;if(e.cors||ct&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(yf[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(n){if(i)throw n;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){var r,t;if(n.crossDomain)return{send:function(u,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}),fr=[],oi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=fr.pop()||i.expando+"_"+sf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(oi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&oi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(oi,"$1"+e):!1!==t.jsonp&&(t.url+=(nr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,fr.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=function(){var n=f.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",2===n.childNodes.length}(),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=!r&&[],(o=ci.exec(n))?[t.createElement(o[1])]:(o=eu([n],t,u),u&&u.length&&i(u).remove(),i.merge([],o.childNodes)));var s,o,u},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return o>-1&&(f=g(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),e.length>0&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var v,o,s,h,f,c,l=i.css(n,"position"),a=i(n),e={};"static"===l&&(n.style.position="relative");f=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));null!=t.top&&(e.top=t.top-f.top+h);null!=t.left&&(e.left=t.left-f.left+o);"using"in t?t.using.call(n,e):a.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||ii})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return p(this,function(n,i,u){var f;if(tt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=au(e.pixelPosition,function(n,r){if(r)return r=yt(n,t),pi.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return p(this,function(t,r,f){var e;return tt(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.proxy=function(n,t){var r,f,e;if("string"==typeof t&&(r=n[t],t=n,n=r),u(n))return f=d.call(arguments,2),(e=function(){return n.apply(t||this,f.concat(d.call(arguments)))}).guid=n.guid=n.guid||i.guid++,e},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=v,i.isFunction=u,i.isWindow=tt,i.camelCase=y,i.type=it,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),pf=n.jQuery,wf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=wf),t&&n.jQuery===i&&(n.jQuery=pf),i},t||(n.jQuery=n.$=i),i});var EasyAutocomplete=function(n){return n.main=function(t,i){function d(){return 0===u.length?void a.error("Input field doesn't exist."):r.checkDataUrlProperties()?r.checkRequiredProperties()?(w(),void function(){function n(){u.off("keyup").keyup(function(n){function i(n){var f,i,t;n.length<r.get("minCharNumber")||("list-required"!==r.get("data")&&(f=r.get("data"),i=o.init(f),i=o.updateCategories(i,f),k(i=o.processData(i,n),n),u.parent().find("li").length>0?v():h()),t=function(){var t={},i=r.get("ajaxSettings")||{},n;for(n in i)t[n]=i[n];return t}(),void 0!==t.url&&""!==t.url||(t.url=r.get("url")),void 0!==t.dataType&&""!==t.dataType||(t.dataType=r.get("dataType")),void 0!==t.url&&"list-required"!==t.url&&(t.url=t.url(n),t.data=r.get("preparePostData")(t.data,n),$.ajax(t).done(function(t){var i=o.init(t);i=o.updateCategories(i,t);i=o.convertXml(i),function(n,t){return!1===r.get("matchResponseProperty")||("string"==typeof r.get("matchResponseProperty")?t[r.get("matchResponseProperty")]===n:"function"!=typeof r.get("matchResponseProperty")||r.get("matchResponseProperty")(t)===n)}(n,t)&&k(i=o.processData(i,n),n);o.checkIfDataExists(i)&&u.parent().find("li").length>0?v():h();r.get("ajaxCallback")()}).fail(function(){a.warning("Fail to load response data")}).always(function(){})))}switch(n.keyCode){case 27:h();u.trigger("blur");break;case 38:n.preventDefault();e.length>0&&f>0&&(f-=1,u.val(r.get("getValue")(e[f])),l(f));break;case 40:n.preventDefault();e.length>0&&f<e.length-1&&(f+=1,u.val(r.get("getValue")(e[f])),l(f));break;default:if(n.keyCode>40||8===n.keyCode){var t=u.val();!0!==r.get("list").hideOnEmptyPhrase||8!==n.keyCode||""!==t?r.get("requestDelay")>0?(void 0!==y&&clearTimeout(y),y=setTimeout(function(){i(t)},r.get("requestDelay"))):i(t):h()}}})}g("autocompleteOff",!0)&&u.attr("autocomplete","off");u.focusout(function(){var t,i=u.val(),n,o;for(r.get("list").match.caseSensitive||(i=i.toLowerCase()),n=0,o=e.length;o>n;n+=1)if(t=r.get("getValue")(e[n]),r.get("list").match.caseSensitive||(t=t.toLowerCase()),t===i)return void l(f=n)});n();u.on("keydown",function(n){var t=(n=n||window.event).keyCode;if(38===t)return(suppressKeypress=!0,!1)}).keydown(function(n){13===n.keyCode&&f>-1&&(u.val(r.get("getValue")(e[f])),r.get("list").onKeyEnterEvent(),r.get("list").onChooseEvent(),f=-1,h(),n.preventDefault())});u.off("keypress");u.focus(function(){""!==u.val()&&e.length>0&&(f=-1,v())});u.blur(function(){setTimeout(function(){f=-1;h()},250)})}()):void a.error("Will not work without mentioned properties."):void a.error("One of options variables 'data' or 'url' must be defined.")}function w(){function n(n,t){return r.get("highlightPhrase")&&""!==t?function(n,t){var i=function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}(t);return(n+"").replace(new RegExp("("+i+")","gi"),"<b>$1<\/b>")}(n,t):n}u.parent().hasClass(s.getValue("WRAPPER_CSS_CLASS"))&&(u.next("."+s.getValue("CONTAINER_CLASS")).remove(),u.unwrap()),function(){var t=$("<div>"),n=s.getValue("WRAPPER_CSS_CLASS");r.get("theme")&&""!==r.get("theme")&&(n+=" eac-"+r.get("theme"));r.get("cssClasses")&&""!==r.get("cssClasses")&&(n+=" "+r.get("cssClasses"));""!==p.getTemplateClass()&&(n+=" "+p.getTemplateClass());t.addClass(n);u.wrap(t);!0===r.get("adjustWidth")&&function(){var n=u.outerWidth();u.parent().css("width",n)}()}(),function(){var t=$("<div>").addClass(s.getValue("CONTAINER_CLASS"));t.attr("id",b()).prepend($("<ul>"));t.on("show.eac",function(){switch(r.get("list").showAnimation.type){case"slide":var n=r.get("list").showAnimation.time,i=r.get("list").showAnimation.callback;t.find("ul").slideDown(n,i);break;case"fade":n=r.get("list").showAnimation.time;i=r.get("list").showAnimation.callback;t.find("ul").fadeIn(n);break;default:t.find("ul").show()}r.get("list").onShowListEvent()}).on("hide.eac",function(){switch(r.get("list").hideAnimation.type){case"slide":var n=r.get("list").hideAnimation.time,i=r.get("list").hideAnimation.callback;t.find("ul").slideUp(n,i);break;case"fade":n=r.get("list").hideAnimation.time;i=r.get("list").hideAnimation.callback;t.find("ul").fadeOut(n,i);break;default:t.find("ul").hide()}r.get("list").onHideListEvent()}).on("selectElement.eac",function(){t.find("ul li").removeClass("selected");t.find("ul li").eq(f).addClass("selected");r.get("list").onSelectItemEvent()}).on("loadElements.eac",function(i,o,s){var y="",v=t.find("ul"),c,a,b;v.empty().detach();e=[];for(var w=0,h=0,k=o.length;k>h;h+=1)if(c=o[h].data,0!==c.length)for(void 0!==o[h].header&&o[h].header.length>0&&v.append("<div class='eac-category' >"+o[h].header+"<\/div>"),a=0,b=c.length;b>a&&w<o[h].maxListSize;a+=1)y=$("<li><div class='eac-item'><\/div><\/li>"),function(){var i=a,t=w,e=o[h].getValue(c[i]);y.find(" > div").on("click",function(){u.val(e).trigger("change");f=t;l(t);r.get("list").onClickEvent();r.get("list").onChooseEvent()}).mouseover(function(){f=t;l(t);r.get("list").onMouseOverEvent()}).mouseout(function(){r.get("list").onMouseOutEvent()}).html(p.build(n(e,s),c[i]))}(),v.append(y),e.push(c[a]),w+=1;t.append(v);r.get("list").onLoadEvent()});u.after(t)}();c=$("#"+b());r.get("placeholder")&&u.attr("placeholder",r.get("placeholder"))}function b(){var n=u.attr("id");return s.getValue("CONTAINER_ID")+n}function v(){c.trigger("show.eac")}function h(){c.trigger("hide.eac")}function l(n){c.trigger("selectElement.eac",n)}function k(n,t){c.trigger("loadElements.eac",[n,t])}var y,s=new n.Constans,r=new n.Configuration(i),a=new n.Logger,p=new n.Template(i.template),o=new n.ListBuilderService(r,n.proccess),g=r.equals,u=t,c="",e=[],f=-1;n.consts=s;this.getConstants=function(){return s};this.getConfiguration=function(){return r};this.getContainer=function(){return c};this.getSelectedItemIndex=function(){return f};this.getItems=function(){return e};this.getItemData=function(n){return e.length<n||void 0===e[n]?-1:e[n]};this.getSelectedItemData=function(){return this.getItemData(f)};this.build=function(){w()};this.init=function(){d()}},n.eacHandles=[],n.getHandle=function(t){return n.eacHandles[t]},n.inputHasId=function(n){return void 0!==$(n).attr("id")&&$(n).attr("id").length>0},n.assignRandomId=function(t){var i="";do i="eac-"+Math.floor(1e4*Math.random());while(0!==$("#"+i).length);elementId=n.consts.getValue("CONTAINER_ID")+i;$(t).attr("id",i)},n.setHandle=function(t,i){n.eacHandles[i]=t},n}((EasyAutocomplete=function(n){return n.Template=function(n){var t={basic:{type:"basic",method:function(n){return n},cssClass:""},description:{type:"description",fields:{description:"description"},method:function(n){return n+" - description"},cssClass:"eac-description"},iconLeft:{type:"iconLeft",fields:{icon:""},method:function(n){return n},cssClass:"eac-icon-left"},iconRight:{type:"iconRight",fields:{iconSrc:""},method:function(n){return n},cssClass:"eac-icon-right"},links:{type:"links",fields:{link:""},method:function(n){return n},cssClass:""},custom:{type:"custom",method:function(){},cssClass:""}};this.getTemplateClass=function(n){return n&&n.type&&n.type&&t[n.type]?function(){var i=t[n.type].cssClass;return function(){return i}}():function(){return""}}(n);this.build=function(n){return n&&n.type&&n.type&&t[n.type]?function(n){var r,i=n.fields;return"description"===n.type?(r=t.description.method,"string"==typeof i.description?r=function(n,t){return n+" - <span>"+t[i.description]+"<\/span>"}:"function"==typeof i.description&&(r=function(n,t){return n+" - <span>"+i.description(t)+"<\/span>"}),r):"iconRight"===n.type?("string"==typeof i.iconSrc?r=function(n,t){return n+"<img class='eac-icon' src='"+t[i.iconSrc]+"' />"}:"function"==typeof i.iconSrc&&(r=function(n,t){return n+"<img class='eac-icon' src='"+i.iconSrc(t)+"' />"}),r):"iconLeft"===n.type?("string"==typeof i.iconSrc?r=function(n,t){return"<img class='eac-icon' src='"+t[i.iconSrc]+"' />"+n}:"function"==typeof i.iconSrc&&(r=function(n,t){return"<img class='eac-icon' src='"+i.iconSrc(t)+"' />"+n}),r):"links"===n.type?("string"==typeof i.link?r=function(n,t){return"<a href='"+t[i.link]+"' >"+n+"<\/a>"}:"function"==typeof i.link&&(r=function(n,t){return"<a href='"+i.link(t)+"' >"+n+"<\/a>"}),r):"custom"===n.type?n.method:t.basic.method}(n):t.basic.method}(n)},n}((EasyAutocomplete=function(n){return n.proccess=function(t,i,r){function f(n,i){return t.get("list").match.caseSensitive||("string"==typeof n&&(n=n.toLowerCase()),i=i.toLowerCase()),!!t.get("list").match.method(n,i)}n.proccess.match=f;var u=i.data;return function(n){return t.get("list").sort.enabled&&n.sort(t.get("list").sort.method),n}(u=function(n){return void 0!==i.maxNumberOfElements&&n.length>i.maxNumberOfElements&&(n=n.slice(0,i.maxNumberOfElements)),n}(u=function(n,i){var u=[],r,e;if(t.get("list").match.enabled)for(r=0,e=n.length;e>r;r+=1)f(t.get("getValue")(n[r]),i)&&u.push(n[r]);else u=n;return u}(u,r)))},n}((EasyAutocomplete=function(n){return n.ListBuilderService=function(n,t){function i(t,i){var r={},u;return(r="XML"===n.get("dataType").toUpperCase()?function(){var r,u={};return void 0!==t.xmlElementName&&(u.xmlElementName=t.xmlElementName),void 0!==t.listLocation?r=t.listLocation:void 0!==n.get("listLocation")&&(r=n.get("listLocation")),void 0!==r?"string"==typeof r?u.data=$(i).find(r):"function"==typeof r&&(u.data=r(i)):u.data=i,u}():function(){var n={};return void 0!==t.listLocation?"string"==typeof t.listLocation?n.data=i[t.listLocation]:"function"==typeof t.listLocation&&(n.data=t.listLocation(i)):n.data=i,n}(),void 0!==t.header&&(r.header=t.header),void 0!==t.maxNumberOfElements&&(r.maxNumberOfElements=t.maxNumberOfElements),void 0!==n.get("list").maxNumberOfElements&&(r.maxListSize=n.get("list").maxNumberOfElements),void 0!==t.getValue)?"string"==typeof t.getValue?(u=t.getValue,r.getValue=function(n){return n[u]}):"function"==typeof t.getValue&&(r.getValue=t.getValue):r.getValue=n.get("getValue"),r}function r(t){var i=[];return void 0===t.xmlElementName&&(t.xmlElementName=n.get("xmlElementName")),$(t.data).find(t.xmlElementName).each(function(){i.push(this)}),i}this.init=function(t){var r=[],i={};return i.data=n.get("listLocation")(t),i.getValue=n.get("getValue"),i.maxListSize=n.get("list").maxNumberOfElements,r.push(i),r};this.updateCategories=function(t,r){var u,f;if(n.get("categoriesAssigned"))for(t=[],u=0;u<n.get("categories").length;u+=1)f=i(n.get("categories")[u],r),t.push(f);return t};this.convertXml=function(t){if("XML"===n.get("dataType").toUpperCase())for(var i=0;i<t.length;i+=1)t[i].data=r(t[i]);return t};this.processData=function(i,r){for(var u=0,f=i.length;f>u;u+=1)i[u].data=t(n,i[u],r);return i};this.checkIfDataExists=function(n){for(var t=0,i=n.length;i>t;t+=1)if(void 0!==n[t].data&&n[t].data instanceof Array&&n[t].data.length>0)return!0;return!1}},n}((EasyAutocomplete=function(n){return n.Constans=function(){var n={CONTAINER_CLASS:"easy-autocomplete-container",CONTAINER_ID:"eac-container-",WRAPPER_CSS_CLASS:"easy-autocomplete"};this.getValue=function(t){return n[t]}},n}((EasyAutocomplete=function(n){return n.Logger=function(){this.error=function(n){console.log("ERROR: "+n)};this.warning=function(n){console.log("WARNING: "+n)}},n}((EasyAutocomplete=function(n){return n.Configuration=function(n){function i(n,i){!function i(t,u){for(var f in u)void 0===t[f]&&n.log("Property '"+f+"' does not exist in EasyAutocomplete options API."),"object"==typeof t[f]&&-1===$.inArray(f,r)&&i(t[f],u[f])}(t,i)}var t={data:"list-required",url:"list-required",dataType:"json",listLocation:function(n){return n},xmlElementName:"",getValue:function(n){return n},autocompleteOff:!0,placeholder:!1,ajaxCallback:function(){},matchResponseProperty:!1,list:{sort:{enabled:!1,method:function(n,i){return n=t.getValue(n),(i=t.getValue(i))>n?-1:n>i?1:0}},maxNumberOfElements:6,hideOnEmptyPhrase:!0,match:{enabled:!1,caseSensitive:!1,method:function(n,t){return n.search(t)>-1}},showAnimation:{type:"normal",time:400,callback:function(){}},hideAnimation:{type:"normal",time:400,callback:function(){}},onClickEvent:function(){},onSelectItemEvent:function(){},onLoadEvent:function(){},onChooseEvent:function(){},onKeyEnterEvent:function(){},onMouseOverEvent:function(){},onMouseOutEvent:function(){},onShowListEvent:function(){},onHideListEvent:function(){}},highlightPhrase:!0,theme:"",cssClasses:"",minCharNumber:0,requestDelay:0,adjustWidth:!0,ajaxSettings:{},preparePostData:function(n){return n},loggerEnabled:!0,template:"",categoriesAssigned:!1,categories:[{maxNumberOfElements:4}]},r=["ajaxSettings","template"];this.get=function(n){return t[n]};this.equals=function(n,i){return!(!function(n){return void 0!==t[n]&&null!==t[n]}(n)||t[n]!==i)};this.checkDataUrlProperties=function(){return"list-required"!==t.url||"list-required"!==t.data};this.checkRequiredProperties=function(){for(var n in t)if("required"===t[n])return logger.error("Option "+n+" must be defined"),!1;return!0};this.printPropertiesThatDoesntExist=function(n,t){i(n,t)},function(){var i,r;if("xml"===n.dataType&&(n.getValue||(n.getValue=function(n){return $(n).text()}),n.list||(n.list={}),n.list.sort||(n.list.sort={}),n.list.sort.method=function(t,i){return t=n.getValue(t),(i=n.getValue(i))>t?-1:t>i?1:0},n.list.match||(n.list.match={}),n.list.match.method=function(n,t){return n.search(t)>-1}),void 0!==n.categories&&n.categories instanceof Array){for(var f=[],u=0,e=n.categories.length;e>u;u+=1){i=n.categories[u];for(r in t.categories[0])void 0===i[r]&&(i[r]=t.categories[0][r]);f.push(i)}n.categories=f}}();!0===(t=function n(t,i){var u=t||{},r;for(r in t)void 0!==i[r]&&null!==i[r]&&("object"!=typeof i[r]||i[r]instanceof Array?u[r]=i[r]:n(t[r],i[r]));return void 0!==i.data&&null!==i.data&&"object"==typeof i.data&&(u.data=i.data),u}(t,n)).loggerEnabled&&i(console,n);t.ajaxSettings=void 0!==n.ajaxSettings&&"object"==typeof n.ajaxSettings?n.ajaxSettings:{},function(){var i,r,u;"list-required"!==t.url&&"function"!=typeof t.url&&(i=t.url,t.url=function(){return i});void 0!==t.ajaxSettings.url&&"function"!=typeof t.ajaxSettings.url&&(i=t.ajaxSettings.url,t.ajaxSettings.url=function(){return i});"string"==typeof t.listLocation&&(r=t.listLocation,t.listLocation="XML"===t.dataType.toUpperCase()?function(n){return $(n).find(r)}:function(n){return n[r]});"string"==typeof t.getValue&&(u=t.getValue,t.getValue=function(n){return n[u]});void 0!==n.categories&&(t.categoriesAssigned=!0)}()},n}(EasyAutocomplete||{}))||{}))||{}))||{}))||{}))||{}))||{});!function(n){n.fn.easyAutocomplete=function(t){return this.each(function(){var i=n(this),r=new EasyAutocomplete.main(i,t);EasyAutocomplete.inputHasId(i)||EasyAutocomplete.assignRandomId(i);r.init();EasyAutocomplete.setHandle(r,i.attr("id"))})};n.fn.getSelectedItemIndex=function(){var t=n(this).attr("id");return void 0!==t?EasyAutocomplete.getHandle(t).getSelectedItemIndex():-1};n.fn.getItems=function(){var t=n(this).attr("id");return void 0!==t?EasyAutocomplete.getHandle(t).getItems():-1};n.fn.getItemData=function(t){var i=n(this).attr("id");return void 0!==i&&t>-1?EasyAutocomplete.getHandle(i).getItemData(t):-1};n.fn.getSelectedItemData=function(){var t=n(this).attr("id");return void 0!==t?EasyAutocomplete.getHandle(t).getSelectedItemData():-1}}(jQuery);"object"==typeof navigator&&function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):(n=n||self).Plyr=t()}(this,function(){"use strict";function dr(n,t){return n(t={exports:{}},t.exports),t.exports}function tk(n){return(tk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function gi(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function ik(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function nr(n,t,i){return t&&ik(n.prototype,t),i&&ik(n,i),n}function rk(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function it(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{u||null==i.return||i.return()}finally{if(f)throw e;}}return r}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}()}function ll(n){return function(n){if(Array.isArray(n)){for(var t=0,i=new Array(n.length);t<n.length;t++)i[t]=n[t];return i}}(n)||function(n){if(Symbol.iterator in Object(n)||"[object Arguments]"===Object.prototype.toString.call(n))return Array.from(n)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance");}()}function gg(n,t){setTimeout(function(){try{n.hidden=!0;n.offsetHeight;n.hidden=!1}catch(n){}},t)}function kr(t,i,r){var f=this,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],h=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s,u;t&&"addEventListener"in t&&!n.empty(i)&&n.function(r)&&(s=i.split(" "),u=o,nn&&(u={passive:h,capture:o}),s.forEach(function(n){f&&f.eventListeners&&e&&f.eventListeners.push({element:t,type:n,callback:r,options:u});t[e?"addEventListener":"removeEventListener"](n,r,u)}))}function o(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];kr.call(this,n,t,i,!0,r,u)}function ps(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];kr.call(this,n,t,i,!1,r,u)}function fv(n){var u=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",f=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];kr.call(this,n,t,function e(){ps(n,t,e,i,r);for(var s=arguments.length,h=new Array(s),o=0;o<s;o++)h[o]=arguments[o];f.apply(u,h)},!0,i,r)}function u(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",u=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r;n.element(t)&&!n.empty(i)&&(r=new CustomEvent(i,{bubbles:u,detail:Object.assign({},f,{plyr:this})}),t.dispatchEvent(r))}function tn(n,t){return t.split(".").reduce(function(n,t){return n&&n[t]},n)}function b(){for(var i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=arguments.length,r=new Array(f>1?f-1:0),u=1;u<f;u++)r[u-1]=arguments[u];return r.length?(i=r.shift(),n.object(i)?(Object.keys(i).forEach(function(r){n.object(i[r])?(Object.keys(t).includes(r)||Object.assign(t,rk({},r,{})),b(t[r],i[r])):Object.assign(t,rk({},r,i[r]))}),b.apply(void 0,[t].concat(r))):t):t}function rn(n,t){var i=n.length?n:[n];Array.from(i).reverse().forEach(function(n,i){var r=i>0?t.cloneNode(!0):t,u=n.parentNode,f=n.nextSibling;r.appendChild(n);f?u.insertBefore(r,f):u.appendChild(r)})}function ev(t,i){n.element(t)&&!n.empty(i)&&Object.entries(i).filter(function(t){var i=it(t,2)[1];return!n.nullOrUndefined(i)}).forEach(function(n){var i=it(n,2),r=i[0],u=i[1];return t.setAttribute(r,u)})}function r(t,i,r){var u=document.createElement(t);return n.object(i)&&ev(u,i),n.string(r)&&(u.innerText=r),u}function un(t,i,u,f){n.element(i)&&i.appendChild(r(t,u,f))}function vi(t){n.nodeList(t)||n.array(t)?Array.from(t).forEach(vi):n.element(t)&&n.element(t.parentNode)&&t.parentNode.removeChild(t)}function ws(t){if(n.element(t))for(var i=t.childNodes.length;i>0;)t.removeChild(t.lastChild),i-=1}function ov(t,i){return n.element(i)&&n.element(i.parentNode)&&n.element(t)?(i.parentNode.replaceChild(t,i),t):null}function ui(t,i){if(!n.string(t)||n.empty(t))return{};var r={},u=b({},i);return t.split(",").forEach(function(t){var i=t.trim(),e=i.replace(".",""),f=i.replace(/[[\]]/g,"").split("="),o=it(f,1)[0],s=f.length>1?f[1].replace(/["']/g,""):"";switch(i.charAt(0)){case".":r.class=n.string(u.class)?"".concat(u.class," ").concat(e):e;break;case"#":r.id=i.replace("#","");break;case"[":r[o]=s}}),b(u,r)}function yi(t,i){if(n.element(t)){var r=i;n.boolean(r)||(r=!t.hidden);t.hidden=r}}function s(t,i,r){if(n.nodeList(t))return Array.from(t).map(function(n){return s(n,i,r)});if(n.element(t)){var u="toggle";return void 0!==r&&(u=r?"add":"remove"),t.classList[u](i),t.classList.contains(i)}return!1}function bs(t,i){return n.element(t)&&t.classList.contains(i)}function uf(n,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(n,t)}function ff(n){return this.elements.container.querySelectorAll(n)}function g(n){return this.elements.container.querySelector(n)}function sv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.element(t)&&(t.focus({preventScroll:!0}),i&&s(t,this.config.classNames.tabFocus))}function fn(t){return!!(n.array(t)||n.string(t)&&t.includes(":"))&&(n.array(t)?t:t.split(":")).map(Number).every(n.number)}function en(t){if(!n.array(t)||!t.every(n.number))return null;var i=it(t,2),r=i[0],u=i[1],f=function t(n,i){return 0===i?n:t(i,n%i)}(r,u);return[r/f,u/f]}function lv(t){var u=function(n){return fn(n)?n.split(":").map(Number):null},i=u(t),r;return(null===i&&(i=u(this.config.ratio)),null===i&&!n.empty(this.embed)&&n.array(this.embed.ratio)&&(i=this.embed.ratio),null===i&&this.isHTML5)&&(r=this.media,i=en([r.videoWidth,r.videoHeight])),i}function ir(t){var f;if(!this.isVideo)return{};var i=lv.call(this,t),u=it(n.array(i)?i:[0,0],2),r=100/u[0]*u[1];return(this.elements.wrapper.style.paddingBottom="".concat(r,"%"),this.isVimeo&&this.supported.ui)?(f=(240-r)/4.8,this.media.style.transform="translateY(-".concat(f,"%)")):this.isHTML5&&this.elements.wrapper.classList.toggle(this.config.classNames.videoFixedRatio,null!==i),{padding:r,ratio:i}}function av(t){return n.array(t)?t.filter(function(n,i){return t.indexOf(n)===i}):t}function pv(t){for(var r=arguments.length,u=new Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];return n.empty(t)?t:t.toString().replace(/{(\d+)}/g,function(n,t){return u[t].toString()})}function ce(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),"g"),i.toString())}function cn(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()})}function fst(n){var t=document.createElement("div");return t.appendChild(n),t.innerHTML}function le(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise(function(i,r){try{var u=new XMLHttpRequest;if(!("withCredentials"in u))return;u.addEventListener("load",function(){if("text"===t)try{i(JSON.parse(u.responseText))}catch(n){i(u.responseText)}else i(u.response)});u.addEventListener("error",function(){throw new Error(u.status);});u.open("GET",n,!0);u.responseType=t;u.send()}catch(n){r(n)}})}function vn(t,i){var f,r,e,h;if(n.string(t)){var u=n.string(i),o=function(){return null!==document.getElementById(i)},s=function(n,t){n.innerHTML=t;u&&o()||document.body.insertAdjacentElement("afterbegin",n)};u&&o()||(f=an.supported,r=document.createElement("div"),(r.setAttribute("hidden",""),u&&r.setAttribute("id",i),f)&&(e=window.localStorage.getItem("".concat("cache","-").concat(i)),null!==e&&(h=JSON.parse(e),s(r,h.content))),le(t).then(function(t){n.empty(t)||(f&&window.localStorage.setItem("".concat("cache","-").concat(i),JSON.stringify({content:t})),s(r,t))}).catch(function(){}))}}function ks(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n.number(t))return ks(null,r,u);var f=function(n){return"0".concat(n).slice(-2)},i=wn(t),e=est(t),o=ost(t);return i=r||i>0?"".concat(i,":"):"","".concat(u&&t>0?"-":"").concat(i).concat(f(e),":").concat(f(o))}function bn(n){var t=n,i;arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||(i=document.createElement("a"),i.href=t,t=i.href);try{return new URL(t)}catch(n){return null}}function kn(t){var i=new URLSearchParams;return n.object(t)&&Object.entries(t).forEach(function(n){var t=it(n,2),r=t[0],u=t[1];i.set(r,u)}),i}function ntt(){if(this.enabled){var t=this.player.elements.buttons.fullscreen;n.element(t)&&(t.pressed=this.active);u.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0);rt.isIos||function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,f=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n.element(u)){var t=ff.call(this,"button:not(:disabled), input:not(:disabled), [tabindex]"),i=t[0],r=t[t.length-1];kr.call(this,this.elements.container,"keydown",function(n){if("Tab"===n.key&&9===n.keyCode){var t=document.activeElement;t!==r||n.shiftKey?t===i&&n.shiftKey&&(r.focus(),n.preventDefault()):(i.focus(),n.preventDefault())}},f,!1)}}.call(this.player,this.target,this.active)}}function ttt(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t,r,u;(i?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=i?"hidden":"",s(this.target,this.player.config.classNames.fullscreen.fallback,i),rt.isIos)&&(t=document.head.querySelector('meta[name="viewport"]'),r="viewport-fit=cover",t||(t=document.createElement("meta")).setAttribute("name","viewport"),u=n.string(t.content)&&t.content.includes(r),i?(this.cleanupViewport=!u,u||(t.content+=",".concat(r))):this.cleanupViewport&&(t.content=t.content.split(",").filter(function(n){return n.trim()!==r}).join(",")));ntt.call(this)}function ds(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise(function(i,r){var u=new Image,f=function(){delete u.onload;delete u.onerror;(u.naturalWidth>=t?i:r)(u)};Object.assign(u,{onload:f,onerror:f,src:n})})}function dv(n){return new Promise(function(t,i){ett(n,{success:t,error:i})})}function ae(n){n&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0);this.media.paused===n&&(this.media.paused=!n,u.call(this,this.media,n?"play":"pause"))}function ve(n){n&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0);this.media.paused===n&&(this.media.paused=!n,u.call(this,this.media,n?"play":"pause"))}var ei,iu,cp,dt,yh,eu,co,lo,ao,kh,dh,fc,uw,hc,wf,ko,ac,gt,lr,hl,cl,fk,ek,al,vl,yl,ok,pl,os,sk,hk,ck,yk,na,kk,id,ia,nv,yg,rt,nn,hv,cv,w,rr,yn,pn,t,itt,rtt,utt,ftt,ett,gs;!function(){var n,t;if("undefined"!=typeof window)try{if(n=new window.CustomEvent("test",{cancelable:!0}),n.preventDefault(),!0!==n.defaultPrevented)throw new Error("Could not prevent default");}catch(n){t=function(n,t){var i,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(i=document.createEvent("CustomEvent")).initCustomEvent(n,t.bubbles,t.cancelable,t.detail),r=i.preventDefault,i.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(n){this.defaultPrevented=!0}},i};t.prototype=window.Event.prototype;window.CustomEvent=t}}();ei="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var ye,ef,pe,we="object",be=function(n){return n&&n.Math==Math&&n},i=be(typeof globalThis==we&&globalThis)||be(typeof window==we&&window)||be(typeof self==we&&self)||be(typeof ei==we&&ei)||Function("return this")(),l=function(n){try{return!!n()}catch(n){return!0}},k=!l(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),ny={}.propertyIsEnumerable,ty=Object.getOwnPropertyDescriptor,of={f:ty&&!ny.call({1:2},1)?function(n){var t=ty(this,n);return!!t&&t.enumerable}:ny},fr=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}},ltt={}.toString,ht=function(n){return ltt.call(n).slice(8,-1)},att="".split,ke=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(n){return"String"==ht(n)?att.call(n,""):Object(n)}:Object,lt=function(n){if(null==n)throw TypeError("Can't call method on "+n);return n},at=function(n){return ke(lt(n))},c=function(n){return"object"==typeof n?null!==n:"function"==typeof n},er=function(n,t){if(!c(n))return n;var i,r;if(t&&"function"==typeof(i=n.toString)&&!c(r=i.call(n))||"function"==typeof(i=n.valueOf)&&!c(r=i.call(n))||!t&&"function"==typeof(i=n.toString)&&!c(r=i.call(n)))return r;throw TypeError("Can't convert object to primitive value");},vtt={}.hasOwnProperty,f=function(n,t){return vtt.call(n,t)},th=i.document,ytt=c(th)&&c(th.createElement),de=function(n){return ytt?th.createElement(n):{}},iy=!k&&!l(function(){return 7!=Object.defineProperty(de("div"),"a",{get:function(){return 7}}).a}),ry=Object.getOwnPropertyDescriptor,gr={f:k?ry:function(n,t){if(n=at(n),t=er(t,!0),iy)try{return ry(n,t)}catch(n){}if(f(n,t))return fr(!of.f.call(n,t),n[t])}},y=function(n){if(!c(n))throw TypeError(String(n)+" is not an object");return n},uy=Object.defineProperty,ot={f:k?uy:function(n,t,i){if(y(n),t=er(t,!0),y(i),iy)try{return uy(n,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(n[t]=i.value),n}},et=k?function(n,t,i){return ot.f(n,t,fr(1,i))}:function(n,t,i){return n[t]=i,n},ih=function(n,t){try{et(i,n,t)}catch(r){i[n]=t}return t},oi=dr(function(n){var t=i["__core-js_shared__"]||ih("__core-js_shared__",{});(n.exports=function(n,i){return t[n]||(t[n]=void 0!==i?i:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),ge=oi("native-function-to-string",Function.toString),fy=i.WeakMap,ey="function"==typeof fy&&/native code/.test(ge.call(fy)),ptt=0,wtt=Math.random(),no=function(n){return"Symbol("+String(void 0===n?"":n)+")_"+(++ptt+wtt).toString(36)},oy=oi("keys"),to=function(n){return oy[n]||(oy[n]=no(n))},nu={},btt=i.WeakMap;if(ey){var tu=new btt,ktt=tu.get,dtt=tu.has,gtt=tu.set;ye=function(n,t){return gtt.call(tu,n,t),t};ef=function(n){return ktt.call(tu,n)||{}};pe=function(n){return dtt.call(tu,n)}}else iu=to("state"),nu[iu]=!0,ye=function(n,t){return et(n,iu,t),t},ef=function(n){return f(n,iu)?n[iu]:{}},pe=function(n){return f(n,iu)};var d={set:ye,get:ef,has:pe,enforce:function(n){return pe(n)?ef(n):ye(n,{})},getterFor:function(n){return function(t){var i;if(!c(t)||(i=ef(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return i}}},nt=dr(function(n){var t=d.get,r=d.enforce,u=String(ge).split("toString");oi("inspectSource",function(n){return ge.call(n)});(n.exports=function(n,t,e,o){var h=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof e&&("string"!=typeof t||f(e,"name")||et(e,"name",t),r(e).source=u.join("string"==typeof t?t:""));n!==i?(h?!c&&n[t]&&(s=!0):delete n[t],s?n[t]=e:et(n,t,e)):s?n[t]=e:ih(t,e)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||ge.call(this)})}),ru=i,sy=function(n){if("function"==typeof n)return n},io=function(n,t){return arguments.length<2?sy(ru[n])||sy(i[n]):ru[n]&&ru[n][t]||i[n]&&i[n][t]},nit=Math.ceil,tit=Math.floor,or=function(n){return isNaN(n=+n)?0:(n>0?tit:nit)(n)},iit=Math.min,wt=function(n){return n>0?iit(or(n),9007199254740991):0},rit=Math.max,uit=Math.min,ro=function(n,t){var i=or(n);return i<0?rit(i+t,0):uit(i,t)},hy=function(n){return function(t,i,r){var o,f=at(t),e=wt(f.length),u=ro(r,e);if(n&&i!=i){for(;e>u;)if((o=f[u++])!=o)return!0}else for(;e>u;u++)if((n||u in f)&&f[u]===i)return n||u||0;return!n&&-1}},cy={includes:hy(!0),indexOf:hy(!1)},fit=cy.indexOf,ly=function(n,t){var i,u=at(n),e=0,r=[];for(i in u)!f(nu,i)&&f(u,i)&&r.push(i);for(;t.length>e;)f(u,i=t[e++])&&(~fit(r,i)||r.push(i));return r},uo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eit=uo.concat("length","prototype"),sf={f:Object.getOwnPropertyNames||function(n){return ly(n,eit)}},hf={f:Object.getOwnPropertySymbols},oit=io("Reflect","ownKeys")||function(n){var t=sf.f(y(n)),i=hf.f;return i?t.concat(i(n)):t},ay=function(n,t){for(var i,u=oit(t),e=ot.f,o=gr.f,r=0;r<u.length;r++)i=u[r],f(n,i)||e(n,i,o(t,i))},sit=/#|\.prototype\./,cf=function(n,t){var i=cit[hit(n)];return i==ait||i!=lit&&("function"==typeof t?l(t):!!t)},hit=cf.normalize=function(n){return String(n).replace(sit,".").toLowerCase()},cit=cf.data={},lit=cf.NATIVE="N",ait=cf.POLYFILL="P",uu=cf,vit=gr.f,e=function(n,t){var e,r,u,f,s,o=n.target,h=n.global,c=n.stat;if(e=h?i:c?i[o]||ih(o,{}):(i[o]||{}).prototype)for(r in t){if(f=t[r],u=n.noTargetGet?(s=vit(e,r))&&s.value:e[r],!uu(h?r:o+(c?".":"#")+r,n.forced)&&void 0!==u){if(typeof f==typeof u)continue;ay(f,u)}(n.sham||u&&u.sham)&&et(f,"sham",!0);nt(e,r,f,n)}},kt=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())}),fu=Array.isArray||function(n){return"Array"==ht(n)},si=function(n){return Object(lt(n))},hi=Object.keys||function(n){return ly(n,uo)},vy=k?Object.defineProperties:function(n,t){y(n);for(var i,r=hi(t),f=r.length,u=0;f>u;)ot.f(n,i=r[u++],t[i]);return n},rh=io("document","documentElement"),yy=to("IE_PROTO"),uh=function(){},fo=function(){var n,t=de("iframe"),i=uo.length;for(t.style.display="none",rh.appendChild(t),t.src=String("javascript:"),(n=t.contentWindow.document).open(),n.write("<script>document.F=Object<\/script>"),n.close(),fo=n.F;i--;)delete fo.prototype[uo[i]];return fo()},wi=Object.create||function(n,t){var i;return null!==n?(uh.prototype=y(n),i=new uh,uh.prototype=null,i[yy]=n):i=fo(),void 0===t?i:vy(i,t)};nu[yy]=!0;var py=sf.f,yit={}.toString,wy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],by={f:function(n){return wy&&"[object Window]"==yit.call(n)?function(n){try{return py(n)}catch(n){return wy.slice()}}(n):py(at(n))}},ky=i.Symbol,dy=oi("wks"),a=function(n){return dy[n]||(dy[n]=kt&&ky[n]||(kt?ky:no)("Symbol."+n))},gy={f:a},pit=ot.f,np=function(n){var t=ru.Symbol||(ru.Symbol={});f(t,n)||pit(t,n,{value:gy.f(n)})},wit=ot.f,tp=a("toStringTag"),sr=function(n,t,i){n&&!f(n=i?n:n.prototype,tp)&&wit(n,tp,{configurable:!0,value:t})},hr=function(n){if("function"!=typeof n)throw TypeError(String(n)+" is not a function");return n},lf=function(n,t,i){if(hr(n),void 0===t)return n;switch(i){case 0:return function(){return n.call(t)};case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}},bit=a("species"),fh=function(n,t){var i;return fu(n)&&("function"!=typeof(i=n.constructor)||i!==Array&&!fu(i.prototype)?c(i)&&null===(i=i[bit])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)},kit=[].push,cr=function(n){var i=1==n,u=2==n,f=3==n,t=4==n,r=6==n,e=5==n||r;return function(o,s,h,c){for(var a,v,w=si(o),y=ke(w),d=lf(s,h,3),b=wt(y.length),l=0,k=c||fh,p=i?k(o,b):u?k(o,0):void 0;b>l;l++)if((e||l in y)&&(v=d(a=y[l],l,w),n))if(i)p[l]=v;else if(v)switch(n){case 3:return!0;case 5:return a;case 6:return l;case 2:kit.call(p,a)}else if(t)return!1;return r?-1:f||t?t:p}},bi={forEach:cr(0),map:cr(1),filter:cr(2),some:cr(3),every:cr(4),find:cr(5),findIndex:cr(6)},eo=bi.forEach,st=to("hidden"),ip=a("toPrimitive"),dit=d.set,rp=d.getterFor("Symbol"),vt=Object.prototype,ct=i.Symbol,oo=i.JSON,so=oo&&oo.stringify,up=gr.f,ki=ot.f,fp=by.f,git=of.f,ci=oi("symbols"),af=oi("op-symbols"),eh=oi("string-to-symbol-registry"),oh=oi("symbol-to-string-registry"),nrt=oi("wks"),sh=i.QObject,hh=!sh||!sh.prototype||!sh.prototype.findChild,ch=k&&l(function(){return 7!=wi(ki({},"a",{get:function(){return ki(this,"a",{value:7}).a}})).a})?function(n,t,i){var r=up(vt,t);r&&delete vt[t];ki(n,t,i);r&&n!==vt&&ki(vt,t,r)}:ki,ep=function(n,t){var i=ci[n]=wi(ct.prototype);return dit(i,{type:"Symbol",tag:n,description:t}),k||(i.description=t),i},lh=kt&&"symbol"==typeof ct.iterator?function(n){return"symbol"==typeof n}:function(n){return Object(n)instanceof ct},ho=function(n,t,i){n===vt&&ho(af,t,i);y(n);var r=er(t,!0);return y(i),f(ci,r)?(i.enumerable?(f(n,st)&&n[st][r]&&(n[st][r]=!1),i=wi(i,{enumerable:fr(0,!1)})):(f(n,st)||ki(n,st,fr(1,{})),n[st][r]=!0),ch(n,r,i)):ki(n,r,i)},op=function(n,t){y(n);var i=at(t),r=hi(i).concat(vh(i));return eo(r,function(t){k&&!ah.call(i,t)||ho(n,t,i[t])}),n},ah=function(n){var t=er(n,!0),i=git.call(this,t);return!(this===vt&&f(ci,t)&&!f(af,t))&&(!(i||!f(this,t)||!f(ci,t)||f(this,st)&&this[st][t])||i)},sp=function(n,t){var r=at(n),i=er(t,!0),u;if(r!==vt||!f(ci,i)||f(af,i))return u=up(r,i),!u||!f(ci,i)||f(r,st)&&r[st][i]||(u.enumerable=!0),u},hp=function(n){var i=fp(at(n)),t=[];return eo(i,function(n){f(ci,n)||f(nu,n)||t.push(n)}),t},vh=function(n){var t=n===vt,r=fp(t?af:at(n)),i=[];return eo(r,function(n){f(ci,n)&&(!t||f(vt,n))&&i.push(ci[n])}),i};if(kt||(nt((ct=function(){if(this instanceof ct)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,n=no(t),i=function(t){this===vt&&i.call(af,t);f(this,st)&&f(this[st],n)&&(this[st][n]=!1);ch(this,n,fr(1,t))};return k&&hh&&ch(vt,n,{configurable:!0,set:i}),ep(n,t)}).prototype,"toString",function(){return rp(this).tag}),of.f=ah,ot.f=ho,gr.f=sp,sf.f=by.f=hp,hf.f=vh,k&&(ki(ct.prototype,"description",{configurable:!0,get:function(){return rp(this).description}}),nt(vt,"propertyIsEnumerable",ah,{unsafe:!0})),gy.f=function(n){return ep(a(n),n)}),e({global:!0,wrap:!0,forced:!kt,sham:!kt},{Symbol:ct}),eo(hi(nrt),function(n){np(n)}),e({target:"Symbol",stat:!0,forced:!kt},{"for":function(n){var t=String(n),i;return f(eh,t)?eh[t]:(i=ct(t),eh[t]=i,oh[i]=t,i)},keyFor:function(n){if(!lh(n))throw TypeError(n+" is not a symbol");if(f(oh,n))return oh[n]},useSetter:function(){hh=!0},useSimple:function(){hh=!1}}),e({target:"Object",stat:!0,forced:!kt,sham:!k},{create:function(n,t){return void 0===t?wi(n):op(wi(n),t)},defineProperty:ho,defineProperties:op,getOwnPropertyDescriptor:sp}),e({target:"Object",stat:!0,forced:!kt},{getOwnPropertyNames:hp,getOwnPropertySymbols:vh}),e({target:"Object",stat:!0,forced:l(function(){hf.f(1)})},{getOwnPropertySymbols:function(n){return hf.f(si(n))}}),oo&&e({target:"JSON",stat:!0,forced:!kt||l(function(){var n=ct();return"[null]"!=so([n])||"{}"!=so({a:n})||"{}"!=so(Object(n))})},{stringify:function(n){for(var t,r,i=[n],u=1;arguments.length>u;)i.push(arguments[u++]);if(r=t=i[1],(c(t)||void 0!==n)&&!lh(n))return fu(t)||(t=function(n,t){if("function"==typeof r&&(t=r.call(this,n,t)),!lh(t))return t}),i[1]=t,so.apply(oo,i)}}),ct.prototype[ip]||et(ct.prototype,ip,ct.prototype.valueOf),sr(ct,"Symbol"),nu[st]=!0,cp=ot.f,dt=i.Symbol,k&&"function"==typeof dt&&(!("description"in dt.prototype)||void 0!==dt().description)){yh={};eu=function(){var n=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof eu?new dt(n):void 0===n?dt():dt(n);return""===n&&(yh[t]=!0),t};ay(eu,dt);co=eu.prototype=dt.prototype;co.constructor=eu;var trt=co.toString,irt="Symbol(test)"==String(dt("test")),rrt=/^Symbol\((.*)\)[^)]+$/;cp(co,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,i=trt.call(t),n;return f(yh,t)?"":(n=irt?i.slice(7,-1):i.replace(rrt,"$1"),""===n?void 0:n)}});e({global:!0,forced:!0},{Symbol:eu})}np("iterator");lo=a("unscopables");ao=Array.prototype;null==ao[lo]&&et(ao,lo,wi(null));var ou,lp,ap,su=function(n){ao[lo][n]=!0},hu={},urt=!l(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype}),vp=to("IE_PROTO"),frt=Object.prototype,vo=urt?Object.getPrototypeOf:function(n){return n=si(n),f(n,vp)?n[vp]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?frt:null},yp=a("iterator"),pp=!1;[].keys&&("next"in(ap=[].keys())?(lp=vo(vo(ap)))!==Object.prototype&&(ou=lp):pp=!0);null==ou&&(ou={});f(ou,yp)||et(ou,yp,function(){return this});var ph={IteratorPrototype:ou,BUGGY_SAFARI_ITERATORS:pp},ert=ph.IteratorPrototype,ort=function(){return this},wp=function(n,t,i){var r=t+" Iterator";return n.prototype=wi(ert,{next:fr(1,i)}),sr(n,r,!1),hu[r]=ort,n},yo=Object.setPrototypeOf||("__proto__"in{}?function(){var n,t=!1,i={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]);t=i instanceof Array}catch(n){}return function(i,r){return y(i),function(n){if(!c(n)&&null!==n)throw TypeError("Can't set "+String(n)+" as a prototype");}(r),t?n.call(i,r):i.__proto__=r,i}}():void 0),wh=ph.IteratorPrototype,po=ph.BUGGY_SAFARI_ITERATORS,vf=a("iterator"),srt=function(){return this},bp=function(n,t,i,r,u,f,o){wp(i,t,r);var h,l,v,y=function(n){if(n===u&&c)return c;if(!po&&n in s)return s[n];switch(n){case"keys":case"values":case"entries":return function(){return new i(this,n)}}return function(){return new i(this)}},b=t+" Iterator",p=!1,s=n.prototype,a=s[vf]||s["@@iterator"]||u&&s[u],c=!po&&a||y(u),w="Array"==t&&s.entries||a;if(w&&(h=vo(w.call(new n)),wh!==Object.prototype&&h.next&&(vo(h)!==wh&&(yo?yo(h,wh):"function"!=typeof h[vf]&&et(h,vf,srt)),sr(h,b,!0))),"values"==u&&a&&"values"!==a.name&&(p=!0,c=function(){return a.call(this)}),s[vf]!==c&&et(s,vf,c),hu[t]=c,u)if(l={values:y("values"),keys:f?c:y("keys"),entries:y("entries")},o)for(v in l)!po&&!p&&v in s||nt(s,v,l[v]);else e({target:t,proto:!0,forced:po||p},l);return l},hrt=d.set,crt=d.getterFor("Array Iterator"),yf=bp(Array,"Array",function(n,t){hrt(this,{type:"Array Iterator",target:at(n),index:0,kind:t})},function(){var t=crt(this),i=t.target,r=t.kind,n=t.index++;return!i||n>=i.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:i[n],done:!1}:{value:[n,i[n]],done:!1}},"values");hu.Arguments=hu.Array;su("keys");su("values");su("entries");var kp=function(n,t){var i=[][n];return!i||!l(function(){i.call(null,t||function(){throw 1;},1)})},lrt=[].join,art=ke!=Object,vrt=kp("join",",");e({target:"Array",proto:!0,forced:art||vrt},{join:function(n){return lrt.call(at(this),void 0===n?",":n)}});var cu=function(n,t,i){var r=er(t);r in n?ot.f(n,r,fr(0,i)):n[r]=i},yrt=a("species"),pf=function(n){return!l(function(){var t=[];return(t.constructor={})[yrt]=function(){return{foo:1}},1!==t[n](Boolean).foo})},prt=a("species"),wrt=[].slice,brt=Math.max;e({target:"Array",proto:!0,forced:!pf("slice")},{slice:function(n,t){var i,f,e,r=at(this),o=wt(r.length),u=ro(n,o),s=ro(void 0===t?o:t,o);if(fu(r)&&("function"!=typeof(i=r.constructor)||i!==Array&&!fu(i.prototype)?c(i)&&null===(i=i[prt])&&(i=void 0):i=void 0,i===Array||void 0===i))return wrt.call(r,u,s);for(f=new(void 0===i?Array:i)(brt(s-u,0)),e=0;u<s;u++,e++)u in r&&cu(f,e,r[u]);return f.length=e,f}});var krt=a("toStringTag"),drt="Arguments"==ht(function(){return arguments}()),dp=function(n){var t,i,r;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(i=function(n,t){try{return n[t]}catch(n){}}(t=Object(n),krt))?i:drt?ht(t):"Object"==(r=ht(t))&&"function"==typeof t.callee?"Arguments":r},bh={};bh[a("toStringTag")]="z";kh="[object z]"!==String(bh)?function(){return"[object "+dp(this)+"]"}:bh.toString;dh=Object.prototype;kh!==dh.toString&&nt(dh,"toString",kh,{unsafe:!0});var gh=function(){var t=y(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n},gp=RegExp.prototype,nw=gp.toString,grt=l(function(){return"/a/b"!=nw.call({source:"a",flags:"b"})}),nut="toString"!=nw.name;(grt||nut)&&nt(RegExp.prototype,"toString",function(){var n=y(this),i=String(n.source),t=n.flags;return"/"+i+"/"+String(void 0===t&&n instanceof RegExp&&!("flags"in gp)?gh.call(n):t)},{unsafe:!0});var tw=function(n){return function(t,i){var f,e,u=String(lt(t)),r=or(i),o=u.length;return r<0||r>=o?n?"":void 0:(f=u.charCodeAt(r))<55296||f>56319||r+1===o||(e=u.charCodeAt(r+1))<56320||e>57343?n?u.charAt(r):f:n?u.slice(r,r+2):e-56320+(f-55296<<10)+65536}},nc={codeAt:tw(!1),charAt:tw(!0)},tut=nc.charAt,iut=d.set,rut=d.getterFor("String Iterator");bp(String,"String",function(n){iut(this,{type:"String Iterator",string:String(n),index:0})},function(){var n,t=rut(this),i=t.string,r=t.index;return r>=i.length?{value:void 0,done:!0}:(n=tut(i,r),t.index+=n.length,{value:n,done:!1})});var wo=RegExp.prototype.exec,uut=String.prototype.replace,iw=wo,tc=function(){var n=/a/,t=/b*/g;return wo.call(n,"a"),wo.call(t,"a"),0!==n.lastIndex||0!==t.lastIndex}(),ic=void 0!==/()??/.exec("")[1];(tc||ic)&&(iw=function(n){var u,f,t,r,i=this;return ic&&(f=new RegExp("^"+i.source+"$(?!\\s)",gh.call(i))),tc&&(u=i.lastIndex),t=wo.call(i,n),tc&&t&&(i.lastIndex=i.global?t.index+t[0].length:u),ic&&t&&t.length>1&&uut.call(t[0],f,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(t[r]=void 0)}),t});var rc=iw,fut=a("species"),eut=!l(function(){var n=/./;return n.exec=function(){var n=[];return n.groups={a:"7"},n},"7"!=="".replace(n,"$<a>")}),out=!l(function(){var t=/(?:)/,i=t.exec,n;return t.exec=function(){return i.apply(this,arguments)},n="ab".split(t),2!==n.length||"a"!==n[0]||"b"!==n[1]}),bo=function(n,t,i,r){var u=a(n),f=!l(function(){var t={};return t[u]=function(){return 7},7!=""[n](t)}),s=f&&!l(function(){var i=!1,t=/a/;return t.exec=function(){return i=!0,null},"split"===n&&(t.constructor={},t.constructor[fut]=function(){return t}),t[u](""),!i});if(!f||!s||"replace"===n&&!eut||"split"===n&&!out){var h=/./[u],e=i(u,""[n],function(n,t,i,r,u){return t.exec===rc?f&&!u?{done:!0,value:h.call(t,i,r)}:{done:!0,value:n.call(i,t,r)}:{done:!1}}),c=e[0],o=e[1];nt(String.prototype,n,c);nt(RegExp.prototype,u,2==t?function(n,t){return o.call(n,this,t)}:function(n){return o.call(n,this)});r&&et(RegExp.prototype[u],"sham",!0)}},sut=nc.charAt,uc=function(n,t,i){return t+(i?sut(n,t).length:1)},lu=function(n,t){var r=n.exec,i;if("function"==typeof r){if(i=r.call(n,t),"object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==ht(n))throw TypeError("RegExp#exec called on incompatible receiver");return rc.call(n,t)},hut=Math.max,cut=Math.min,lut=Math.floor,aut=/\$([$&'`]|\d\d?|<[^>]*>)/g,vut=/\$([$&'`]|\d\d?)/g;bo("replace",2,function(n,t,i){function r(n,i,r,u,f,e){var h=r+n.length,o=u.length,s=vut;return void 0!==f&&(f=si(f),s=aut),t.call(e,s,function(t,e){var l,s,c;switch(e.charAt(0)){case"$":return"$";case"&":return n;case"`":return i.slice(0,r);case"'":return i.slice(h);case"<":l=f[e.slice(1,-1)];break;default:if(s=+e,0===s)return t;if(s>o)return c=lut(s/10),0===c?t:c<=o?void 0===u[c-1]?e.charAt(1):u[c-1]+e.charAt(1):t;l=u[s-1]}return void 0===l?"":l})}return[function(i,r){var u=lt(this),f=null==i?void 0:i[n];return void 0!==f?f.call(i,u,r):t.call(String(u),i,r)},function(n,u){var nt=i(t,n,this,u),a,it,h,f,l,d,g;if(nt.done)return nt.value;var o=y(n),e=String(this),tt="function"==typeof u;for(tt||(u=String(u)),a=o.global,a&&(it=o.unicode,o.lastIndex=0),h=[];;){if(f=lu(o,e),null===f)break;if(h.push(f),!a)break;""===String(f[0])&&(o.lastIndex=uc(e,wt(o.lastIndex),it))}for(var v,rt="",c=0,p=0;p<h.length;p++){f=h[p];for(var w=String(f[0]),s=hut(cut(or(f.index),e.length),0),b=[],k=1;k<f.length;k++)b.push(void 0===(v=f[k])?v:String(v));l=f.groups;tt?(d=[w].concat(b,s,e),void 0!==l&&d.push(l),g=String(u.apply(void 0,d))):g=r(w,e,s,b,l,u);s>=c&&(rt+=e.slice(c,s)+g,c=s+w.length)}return rt+e.slice(c)}]});fc=Object.is||function(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t};bo("search",1,function(n,t,i){return[function(t){var i=lt(this),r=null==t?void 0:t[n];return void 0!==r?r.call(t,i):new RegExp(t)[n](String(i))},function(n){var e=i(t,n,this),f;if(e.done)return e.value;var r=y(n),o=String(this),u=r.lastIndex;return fc(u,0)||(r.lastIndex=0),f=lu(r,o),fc(r.lastIndex,u)||(r.lastIndex=u),null===f?-1:f.index}]});var yut=a("match"),ec=function(n){var t;return c(n)&&(void 0!==(t=n[yut])?!!t:"RegExp"==ht(n))},put=a("species"),rw=function(n,t){var i,r=y(n).constructor;return void 0===r||null==(i=y(r)[put])?t:hr(i)},wut=[].push,but=Math.min,au=!l(function(){return!RegExp(4294967295,"y")});bo("split",2,function(n,t,i){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(n,i){var u=String(lt(this)),e=void 0===i?4294967295:i>>>0;if(0===e)return[];if(void 0===n)return[u];if(!ec(n))return t.call(u,n,e);for(var f,h,c,r=[],l=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),o=0,s=new RegExp(n.source,l+"g");(f=rc.call(s,u))&&!((h=s.lastIndex)>o&&(r.push(u.slice(o,f.index)),f.length>1&&f.index<u.length&&wut.apply(r,f.slice(1)),c=f[0].length,o=h,r.length>=e));)s.lastIndex===f.index&&s.lastIndex++;return o===u.length?!c&&s.test("")||r.push(""):r.push(u.slice(o)),r.length>e?r.slice(0,e):r}:"0".split(void 0,0).length?function(n,i){return void 0===n&&0===i?[]:t.call(this,n,i)}:t,[function(t,i){var u=lt(this),f=null==t?void 0:t[n];return void 0!==f?f.call(t,u,i):r.call(String(u),t,i)},function(n,u){var p=i(r,n,this,u,r!==t),w,l,a;if(p.done)return p.value;var s=y(n),f=String(this),b=rw(s,RegExp),k=s.unicode,d=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(au?"y":"g"),h=new b(au?s:"^(?:"+s.source+")",d),v=void 0===u?4294967295:u>>>0;if(0===v)return[];if(0===f.length)return null===lu(h,f)?[f]:[];for(var c=0,e=0,o=[];e<f.length;)if(h.lastIndex=au?e:0,l=lu(h,au?f:f.slice(e)),null===l||(w=but(wt(h.lastIndex+(au?0:e)),f.length))===c)e=uc(f,e,k);else{if(o.push(f.slice(c,e)),o.length===v)return o;for(a=1;a<=l.length-1;a++)if(o.push(l[a]),o.length===v)return o;e=c=w}return o.push(f.slice(c)),o}]},!au);var oc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},kut=bi.forEach,sc=kp("forEach")?function(n){return kut(this,n,arguments.length>1?arguments[1]:void 0)}:[].forEach;for(uw in oc)if(hc=i[uw],wf=hc&&hc.prototype,wf&&wf.forEach!==sc)try{et(wf,"forEach",sc)}catch(ei){wf.forEach=sc}var cc=a("iterator"),fw=a("toStringTag"),lc=yf.values;for(ko in oc)if(ac=i[ko],gt=ac&&ac.prototype,gt){if(gt[cc]!==lc)try{et(gt,cc,lc)}catch(ei){gt[cc]=lc}if(gt[fw]||et(gt,fw,ko),oc[ko])for(lr in yf)if(gt[lr]!==yf[lr])try{et(gt,lr,yf[lr])}catch(ei){gt[lr]=yf[lr]}}var dut=a("iterator"),ew=!l(function(){var n=new URL("b?e=1","http://a"),t=n.searchParams;return n.pathname="c%20d",!t.sort||"http://a/c%20d?e=1"!==n.href||"1"!==t.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[dut]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash}),bf=function(n,t,i){if(!(n instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return n},go=Object.assign,kf=!go||l(function(){var n={},t={},i=Symbol();return n[i]=7,"abcdefghijklmnopqrst".split("").forEach(function(n){t[n]=n}),7!=go({},n)[i]||"abcdefghijklmnopqrst"!=hi(go({},t)).join("")})?function(n){for(var r=si(n),s=arguments.length,u=1,f=hf.f,h=of.f;s>u;)for(var i,t=ke(arguments[u++]),e=f?hi(t).concat(f(t)):hi(t),c=e.length,o=0;c>o;)i=e[o++],k&&!h.call(t,i)||(r[i]=t[i]);return r}:go,ow=function(n,t,i,r){try{return r?t(y(i)[0],i[1]):t(i)}catch(t){var u=n.return;throw void 0!==u&&y(u.call(n)),t;}},gut=a("iterator"),nft=Array.prototype,sw=function(n){return void 0!==n&&(hu.Array===n||nft[gut]===n)},tft=a("iterator"),ns=function(n){if(null!=n)return n[tft]||n["@@iterator"]||hu[dp(n)]},ar=function(n){var c,i,f,e,r=si(n),o="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,s=void 0!==u,t=0,h=ns(r);if(s&&(u=lf(u,l>2?arguments[2]:void 0,2)),null==h||o==Array&&sw(h))for(i=new o(c=wt(r.length));c>t;t++)cu(i,t,s?u(r[t],t):r[t]);else for(e=h.call(r),i=new o;!(f=e.next()).done;t++)cu(i,t,s?ow(e,u,[f.value,t],!0):f.value);return i.length=t,i},ift=/[^\0-\u007E]/,rft=/[.\u3002\uFF0E\uFF61]/g,hw="Overflow: input needs wider integers to process",vu=Math.floor,vc=String.fromCharCode,cw=function(n){return n+22+75*(n<26)},uft=function(n,t,i){var r=0;for(n=i?vu(n/700):n>>1,n+=vu(n/t);n>455;r+=36)n=vu(n/35);return vu(r+36*n/(n+38))},fft=function(n){for(var i,f=[],w=(n=function(n){for(var t,u,r=[],i=0,f=n.length;i<f;)t=n.charCodeAt(i++),t>=55296&&t<=56319&&i<f?(u=n.charCodeAt(i++),56320==(64512&u)?r.push(((1023&t)<<10)+(1023&u)+65536):(r.push(t),i--)):r.push(t);return r}(n)).length,r=128,u=0,l=72,a,o,e,v,s,h,c,y,p,t=0;t<n.length;t++)(i=n[t])<128&&f.push(vc(i));for(a=f.length,o=a,a&&f.push("-");o<w;){for(e=2147483647,t=0;t<n.length;t++)(i=n[t])>=r&&i<e&&(e=i);if(v=o+1,e-r>vu((2147483647-u)/v))throw RangeError(hw);for(u+=(e-r)*v,r=e,t=0;t<n.length;t++){if((i=n[t])<r&&++u>2147483647)throw RangeError(hw);if(i==r){for(s=u,h=36;;h+=36){if(c=h<=l?1:h>=l+26?26:h-l,s<c)break;y=s-c;p=36-c;f.push(vc(cw(c+y%p)));s=vu(y/p)}f.push(vc(cw(s)));l=uft(u,v,o==a);u=0;++o}}++u;++r}return f.join("")},df=function(n,t,i){for(var r in t)nt(n,r,t[r],i);return n},lw=function(n){var t=ns(n);if("function"!=typeof t)throw TypeError(String(n)+" is not iterable");return y(t.call(n))},eft=a("iterator"),aw=d.set,bt=d.getterFor("URLSearchParams"),oft=d.getterFor("URLSearchParamsIterator"),sft=/\+/g,vw=Array(4),hft=function(n){return vw[n-1]||(vw[n-1]=RegExp("((?:%[\\da-f]{2}){"+n+"})","gi"))},cft=function(n){try{return decodeURIComponent(n)}catch(t){return n}},yw=function(n){var t=n.replace(sft," "),i=4;try{return decodeURIComponent(t)}catch(n){for(;i;)t=t.replace(hft(i--),cft);return t}},lft=/[!'()~]|%20/g,aft={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},vft=function(n){return aft[n]},pw=function(n){return encodeURIComponent(n).replace(lft,vft)},ww=function(n,t){if(t)for(var r,i,u=t.split("&"),f=0;f<u.length;)(r=u[f++]).length&&(i=r.split("="),n.push({key:yw(i.shift()),value:yw(i.join("="))}))},yft=function(n){this.entries.length=0;ww(this.entries,n)},yu=function(n,t){if(n<t)throw TypeError("Not enough arguments");},yc=wp(function(n,t){aw(this,{type:"URLSearchParamsIterator",iterator:lw(bt(n).entries),kind:t})},"Iterator",function(){var i=oft(this),r=i.kind,n=i.iterator.next(),t=n.value;return n.done||(n.value="keys"===r?t.key:"values"===r?t.value:[t.key,t.value]),n}),gf=function(){bf(this,gf,"URLSearchParams");var u,e,o,r,s,h,t,n=arguments.length>0?arguments[0]:void 0,i=[];if(aw(this,{type:"URLSearchParams",entries:i,updateURL:function(){},updateSearchParams:yft}),void 0!==n)if(c(n))if("function"==typeof(u=ns(n)))for(e=u.call(n);!(o=e.next()).done;){if((s=(r=lw(y(o.value))).next()).done||(h=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");i.push({key:s.value+"",value:h.value+""})}else for(t in n)f(n,t)&&i.push({key:t,value:n[t]+""});else ww(i,"string"==typeof n?"?"===n.charAt(0)?n.slice(1):n:n+"")},ts=gf.prototype;df(ts,{append:function(n,t){yu(arguments.length,2);var i=bt(this);i.entries.push({key:n+"",value:t+""});i.updateURL()},"delete":function(n){yu(arguments.length,1);for(var r=bt(this),i=r.entries,u=n+"",t=0;t<i.length;)i[t].key===u?i.splice(t,1):t++;r.updateURL()},get:function(n){yu(arguments.length,1);for(var i=bt(this).entries,r=n+"",t=0;t<i.length;t++)if(i[t].key===r)return i[t].value;return null},getAll:function(n){yu(arguments.length,1);for(var i=bt(this).entries,u=n+"",r=[],t=0;t<i.length;t++)i[t].key===u&&r.push(i[t].value);return r},has:function(n){yu(arguments.length,1);for(var t=bt(this).entries,r=n+"",i=0;i<t.length;)if(t[i++].key===r)return!0;return!1},set:function(n,t){yu(arguments.length,1);for(var f,e=bt(this),i=e.entries,u=!1,o=n+"",s=t+"",r=0;r<i.length;r++)(f=i[r]).key===o&&(u?i.splice(r--,1):(u=!0,f.value=s));u||i.push({key:o,value:s});e.updateURL()},sort:function(){var r,n,t,u=bt(this),i=u.entries,f=i.slice();for(i.length=0,t=0;t<f.length;t++){for(r=f[t],n=0;n<t;n++)if(i[n].key>r.key){i.splice(n,0,r);break}n===t&&i.push(r)}u.updateURL()},forEach:function(n){for(var t,i=bt(this).entries,u=lf(n,arguments.length>1?arguments[1]:void 0,3),r=0;r<i.length;)u((t=i[r++]).value,t.key,this)},keys:function(){return new yc(this,"keys")},values:function(){return new yc(this,"values")},entries:function(){return new yc(this,"entries")}},{enumerable:!0});nt(ts,eft,ts.entries);nt(ts,"toString",function(){for(var n,t=bt(this).entries,i=[],r=0;r<t.length;)n=t[r++],i.push(pw(n.key)+"="+pw(n.value));return i.join("&")},{enumerable:!0});sr(gf,"URLSearchParams");e({global:!0,forced:!ew},{URLSearchParams:gf});var yt,bw={URLSearchParams:gf,getState:bt},pft=nc.codeAt,ne=i.URL,wft=bw.URLSearchParams,pc=bw.getState,bft=d.set,p=d.getterFor("URL"),kft=Math.floor,kw=Math.pow,dw=/[A-Za-z]/,dft=/[\d+\-.A-Za-z]/,wc=/\d/,gft=/^(0x|0X)/,net=/^[0-7]+$/,tet=/^\d+$/,gw=/^[\dA-Fa-f]+$/,iet=/[\u0000\u0009\u000A\u000D #%\/:?@[\\]]/,ret=/[\u0000\u0009\u000A\u000D #\/:?@[\\]]/,uet=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,fet=/[\u0009\u000A\u000D]/g,bc=function(n,t){var i,u,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1)||!(i=oet(t.slice(1,-1))))return"Invalid host";n.host=i}else if(tt(n)){if((t=function(n){for(var i,r=[],u=n.toLowerCase().replace(rft,".").split("."),t=0;t<u.length;t++)i=u[t],r.push(ift.test(i)?"xn--"+fft(i):i);return r.join(".")}(t),iet.test(t))||null===(i=eet(t)))return"Invalid host";n.host=i}else{if(ret.test(t))return"Invalid host";for(i="",u=ar(t),r=0;r<u.length;r++)i+=di(u[r],is);n.host=i}},eet=function(n){var o,r,t,i,u,f,s,e=n.split(".");if(e.length&&""==e[e.length-1]&&e.pop(),(o=e.length)>4)return n;for(r=[],t=0;t<o;t++){if(""==(i=e[t]))return n;if(u=10,i.length>1&&"0"==i.charAt(0)&&(u=gft.test(i)?16:8,i=i.slice(8==u?1:2)),""===i)f=0;else{if(!(10==u?tet:8==u?net:gw).test(i))return n;f=parseInt(i,u)}r.push(f)}for(t=0;t<o;t++)if(f=r[t],t==o-1){if(f>=kw(256,5-o))return null}else if(f>255)return null;for(s=r.pop(),t=0;t<r.length;t++)s+=r[t]*kw(256,3-t);return s},oet=function(n){var h,s,o,r,l,c,a,u=[0,0,0,0,0,0,0,0],t=0,e=null,f=0,i=function(){return n.charAt(f)};if(":"==i()){if(":"!=n.charAt(1))return;f+=2;e=++t}for(;i();){if(8==t)return;if(":"!=i()){for(h=s=0;s<4&&gw.test(i());)h=16*h+parseInt(i(),16),f++,s++;if("."==i()){if(0==s)return;if(f-=s,t>6)return;for(o=0;i();){if(r=null,o>0){if(!("."==i()&&o<4))return;f++}if(!wc.test(i()))return;for(;wc.test(i());){if(l=parseInt(i(),10),null===r)r=l;else{if(0==r)return;r=10*r+l}if(r>255)return;f++}u[t]=256*u[t]+r;2!=++o&&4!=o||t++}if(4!=o)return;break}if(":"==i()){if(f++,!i())return}else if(i())return;u[t++]=h}else{if(null!==e)return;f++;e=++t}}if(null!==e)for(c=t-e,t=7;0!=t&&c>0;)a=u[t],u[t--]=u[e+c-1],u[e+--c]=a;else if(8!=t)return;return u},te=function(n){var i,t,u,r;if("number"==typeof n){for(i=[],t=0;t<4;t++)i.unshift(n%256),n=kft(n/256);return i.join(".")}if("object"==typeof n){for(i="",u=function(n){for(var f=null,r=1,i=null,t=0,u=0;u<8;u++)0!==n[u]?(t>r&&(f=i,r=t),i=null,t=0):(null===i&&(i=u),++t);return t>r&&(f=i,r=t),f}(n),t=0;t<8;t++)r&&0===n[t]||(r&&(r=!1),u===t?(i+=t?":":"::",r=!0):(i+=n[t].toString(16),t<7&&(i+=":")));return"["+i+"]"}return n},is={},nb=kf({},is,{" ":1,'"':1,"<":1,">":1,"`":1}),tb=kf({},nb,{"#":1,"?":1,"{":1,"}":1}),kc=kf({},tb,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),di=function(n,t){var i=pft(n,0);return i>32&&i<127&&!f(t,n)?n:encodeURIComponent(n)},rs={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},tt=function(n){return f(rs,n.scheme)},dc=function(n){return""!=n.username||""!=n.password},gc=function(n){return!n.host||n.cannotBeABaseURL||"file"==n.scheme},ie=function(n,t){var i;return 2==n.length&&dw.test(n.charAt(0))&&(":"==(i=n.charAt(1))||!t&&"|"==i)},ib=function(n){var t;return n.length>1&&ie(n.slice(0,2))&&(2==n.length||"/"===(t=n.charAt(2))||"\\"===t||"?"===t||"#"===t)},rb=function(n){var t=n.path,i=t.length;!i||"file"==n.scheme&&1==i&&ie(t[0],!0)||t.pop()},set=function(n){return"."===n||"%2e"===n.toLowerCase()},nl={},ub={},tl={},fb={},eb={},il={},ob={},sb={},us={},fs={},rl={},ul={},fl={},el={},hb={},ol={},pu={},ni={},cb={},vr={},li={},ti=function(n,t,i,r){var h,u,y,c,l,e=i||nl,s=0,o="",p=!1,w=!1,b=!1,a,k,d,v;for(i||(n.scheme="",n.username="",n.password="",n.host=null,n.port=null,n.path=[],n.query=null,n.fragment=null,n.cannotBeABaseURL=!1,t=t.replace(uet,"")),t=t.replace(fet,""),h=ar(t);s<=h.length;){switch(u=h[s],e){case nl:if(!u||!dw.test(u)){if(i)return"Invalid scheme";e=tl;continue}o+=u.toLowerCase();e=ub;break;case ub:if(u&&(dft.test(u)||"+"==u||"-"==u||"."==u))o+=u.toLowerCase();else{if(":"!=u){if(i)return"Invalid scheme";o="";e=tl;s=0;continue}if(i&&(tt(n)!=f(rs,o)||"file"==o&&(dc(n)||null!==n.port)||"file"==n.scheme&&!n.host))return;if(n.scheme=o,i)return void(tt(n)&&rs[n.scheme]==n.port&&(n.port=null));o="";"file"==n.scheme?e=el:tt(n)&&r&&r.scheme==n.scheme?e=fb:tt(n)?e=sb:"/"==h[s+1]?(e=eb,s++):(n.cannotBeABaseURL=!0,n.path.push(""),e=cb)}break;case tl:if(!r||r.cannotBeABaseURL&&"#"!=u)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==u){n.scheme=r.scheme;n.path=r.path.slice();n.query=r.query;n.fragment="";n.cannotBeABaseURL=!0;e=li;break}e="file"==r.scheme?el:il;continue;case fb:if("/"!=u||"/"!=h[s+1]){e=il;continue}e=us;s++;break;case eb:if("/"==u){e=fs;break}e=ni;continue;case il:if(n.scheme=r.scheme,u==yt)n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=r.path.slice(),n.query=r.query;else if("/"==u||"\\"==u&&tt(n))e=ob;else if("?"==u)n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=r.path.slice(),n.query="",e=vr;else{if("#"!=u){n.username=r.username;n.password=r.password;n.host=r.host;n.port=r.port;n.path=r.path.slice();n.path.pop();e=ni;continue}n.username=r.username;n.password=r.password;n.host=r.host;n.port=r.port;n.path=r.path.slice();n.query=r.query;n.fragment="";e=li}break;case ob:if(tt(n)&&("/"==u||"\\"==u))e=us;else{if("/"!=u){n.username=r.username;n.password=r.password;n.host=r.host;n.port=r.port;e=ni;continue}e=fs}break;case sb:if(e=us,"/"!=u||"/"!=o.charAt(s+1))continue;s++;break;case us:if("/"!=u&&"\\"!=u){e=fs;continue}break;case fs:if("@"==u){for(p&&(o="%40"+o),p=!0,y=ar(o),a=0;a<y.length;a++)k=y[a],":"!=k||b?(d=di(k,kc),b?n.password+=d:n.username+=d):b=!0;o=""}else if(u==yt||"/"==u||"?"==u||"#"==u||"\\"==u&&tt(n)){if(p&&""==o)return"Invalid authority";s-=ar(o).length+1;o="";e=rl}else o+=u;break;case rl:case ul:if(i&&"file"==n.scheme){e=ol;continue}if(":"!=u||w){if(u==yt||"/"==u||"?"==u||"#"==u||"\\"==u&&tt(n)){if(tt(n)&&""==o)return"Invalid host";if(i&&""==o&&(dc(n)||null!==n.port))return;if(c=bc(n,o))return c;if(o="",e=pu,i)return;continue}"["==u?w=!0:"]"==u&&(w=!1);o+=u}else{if(""==o)return"Invalid host";if(c=bc(n,o))return c;if(o="",e=fl,i==ul)return}break;case fl:if(!wc.test(u)){if(u==yt||"/"==u||"?"==u||"#"==u||"\\"==u&&tt(n)||i){if(""!=o){if(v=parseInt(o,10),v>65535)return"Invalid port";n.port=tt(n)&&v===rs[n.scheme]?null:v;o=""}if(i)return;e=pu;continue}return"Invalid port"}o+=u;break;case el:if(n.scheme="file","/"==u||"\\"==u)e=hb;else{if(!r||"file"!=r.scheme){e=ni;continue}if(u==yt)n.host=r.host,n.path=r.path.slice(),n.query=r.query;else if("?"==u)n.host=r.host,n.path=r.path.slice(),n.query="",e=vr;else{if("#"!=u){ib(h.slice(s).join(""))||(n.host=r.host,n.path=r.path.slice(),rb(n));e=ni;continue}n.host=r.host;n.path=r.path.slice();n.query=r.query;n.fragment="";e=li}}break;case hb:if("/"==u||"\\"==u){e=ol;break}r&&"file"==r.scheme&&!ib(h.slice(s).join(""))&&(ie(r.path[0],!0)?n.path.push(r.path[0]):n.host=r.host);e=ni;continue;case ol:if(u==yt||"/"==u||"\\"==u||"?"==u||"#"==u){if(!i&&ie(o))e=ni;else if(""==o){if(n.host="",i)return;e=pu}else{if(c=bc(n,o))return c;if("localhost"==n.host&&(n.host=""),i)return;o="";e=pu}continue}o+=u;break;case pu:if(tt(n)){if(e=ni,"/"!=u&&"\\"!=u)continue}else if(i||"?"!=u)if(i||"#"!=u){if(u!=yt&&(e=ni,"/"!=u))continue}else n.fragment="",e=li;else n.query="",e=vr;break;case ni:if(u==yt||"/"==u||"\\"==u&&tt(n)||!i&&("?"==u||"#"==u)){if(".."===(l=(l=o).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(rb(n),"/"==u||"\\"==u&&tt(n)||n.path.push("")):set(o)?"/"==u||"\\"==u&&tt(n)||n.path.push(""):("file"==n.scheme&&!n.path.length&&ie(o)&&(n.host&&(n.host=""),o=o.charAt(0)+":"),n.path.push(o)),o="","file"==n.scheme&&(u==yt||"?"==u||"#"==u))for(;n.path.length>1&&""===n.path[0];)n.path.shift();"?"==u?(n.query="",e=vr):"#"==u&&(n.fragment="",e=li)}else o+=di(u,tb);break;case cb:"?"==u?(n.query="",e=vr):"#"==u?(n.fragment="",e=li):u!=yt&&(n.path[0]+=di(u,is));break;case vr:i||"#"!=u?u!=yt&&(n.query+="'"==u&&tt(n)?"%27":"#"==u?"%23":di(u,is)):(n.fragment="",e=li);break;case li:u!=yt&&(n.fragment+=di(u,nb))}s++}},yr=function(n){var f,i,t=bf(this,yr,"URL"),r=arguments.length>1?arguments[1]:void 0,s=String(n),u=bft(t,{type:"URL"}),e,o;if(void 0!==r)if(r instanceof yr)f=p(r);else if(i=ti(f={},String(r)))throw TypeError(i);if(i=ti(u,s,null,f))throw TypeError(i);e=u.searchParams=new wft;o=pc(e);o.updateSearchParams(u.query);o.updateURL=function(){u.query=String(e)||null};k||(t.href=es.call(t),t.origin=lb.call(t),t.protocol=ab.call(t),t.username=vb.call(t),t.password=yb.call(t),t.host=pb.call(t),t.hostname=wb.call(t),t.port=bb.call(t),t.pathname=kb.call(t),t.search=db.call(t),t.searchParams=gb.call(t),t.hash=nk.call(t))},sl=yr.prototype,es=function(){var n=p(this),r=n.scheme,h=n.username,u=n.password,f=n.host,e=n.port,i=n.path,o=n.query,s=n.fragment,t=r+":";return null!==f?(t+="//",dc(n)&&(t+=h+(u?":"+u:"")+"@"),t+=te(f),null!==e&&(t+=":"+e)):"file"==r&&(t+="//"),t+=n.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==o&&(t+="?"+o),null!==s&&(t+="#"+s),t},lb=function(){var n=p(this),t=n.scheme,i=n.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(n){return"null"}return"file"!=t&&tt(n)?t+"://"+te(n.host)+(null!==i?":"+i:""):"null"},ab=function(){return p(this).scheme+":"},vb=function(){return p(this).username},yb=function(){return p(this).password},pb=function(){var t=p(this),n=t.host,i=t.port;return null===n?"":null===i?te(n):te(n)+":"+i},wb=function(){var n=p(this).host;return null===n?"":te(n)},bb=function(){var n=p(this).port;return null===n?"":String(n)},kb=function(){var t=p(this),n=t.path;return t.cannotBeABaseURL?n[0]:n.length?"/"+n.join("/"):""},db=function(){var n=p(this).query;return n?"?"+n:""},gb=function(){return p(this).searchParams},nk=function(){var n=p(this).fragment;return n?"#"+n:""},pt=function(n,t){return{get:n,set:t,configurable:!0,enumerable:!0}};(k&&vy(sl,{href:pt(es,function(n){var t=p(this),r=String(n),i=ti(t,r);if(i)throw TypeError(i);pc(t.searchParams).updateSearchParams(t.query)}),origin:pt(lb),protocol:pt(ab,function(n){var t=p(this);ti(t,String(n)+":",nl)}),username:pt(vb,function(n){var i=p(this),r=ar(String(n)),t;if(!gc(i))for(i.username="",t=0;t<r.length;t++)i.username+=di(r[t],kc)}),password:pt(yb,function(n){var i=p(this),r=ar(String(n)),t;if(!gc(i))for(i.password="",t=0;t<r.length;t++)i.password+=di(r[t],kc)}),host:pt(pb,function(n){var t=p(this);t.cannotBeABaseURL||ti(t,String(n),rl)}),hostname:pt(wb,function(n){var t=p(this);t.cannotBeABaseURL||ti(t,String(n),ul)}),port:pt(bb,function(n){var t=p(this);gc(t)||(""==(n=String(n))?t.port=null:ti(t,n,fl))}),pathname:pt(kb,function(n){var t=p(this);t.cannotBeABaseURL||(t.path=[],ti(t,n+"",pu))}),search:pt(db,function(n){var t=p(this);""==(n=String(n))?t.query=null:("?"==n.charAt(0)&&(n=n.slice(1)),t.query="",ti(t,n,vr));pc(t.searchParams).updateSearchParams(t.query)}),searchParams:pt(gb),hash:pt(nk,function(n){var t=p(this);""!=(n=String(n))?("#"==n.charAt(0)&&(n=n.slice(1)),t.fragment="",ti(t,n,li)):t.fragment=null})}),nt(sl,"toJSON",function(){return es.call(this)},{enumerable:!0}),nt(sl,"toString",function(){return es.call(this)},{enumerable:!0}),ne)&&(hl=ne.createObjectURL,cl=ne.revokeObjectURL,hl&&nt(yr,"createObjectURL",function(){return hl.apply(ne,arguments)}),cl&&nt(yr,"revokeObjectURL",function(){return cl.apply(ne,arguments)}));sr(yr,"URL");e({global:!0,forced:!ew,sham:!k},{URL:yr}),function(n){var r=function(){try{return!!Symbol.iterator}catch(n){return!1}}(),i=function(n){var t={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t},u=function(n){return encodeURIComponent(n).replace(/%20/g,"+")},f=function(n){return decodeURIComponent(String(n).replace(/\+/g," "))},t;"URLSearchParams"in n&&"a=1"===new n.URLSearchParams("?a=1").toString()||function(){var f=function n(t){var u,e,i,r,f;if(Object.defineProperty(this,"_entries",{writable:!0,value:{}}),u=tk(t),"undefined"!==u)if("string"===u)""!==t&&this._fromString(t);else if(t instanceof n)e=this,t.forEach(function(n,t){e.append(t,n)});else{if(null===t||"object"!==u)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(i=0;i<t.length;i++){if(r=t[i],"[object Array]"!==Object.prototype.toString.call(r)&&2===r.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(r[0],r[1])}else for(f in t)t.hasOwnProperty(f)&&this.append(f,t[f])}},t=f.prototype;t.append=function(n,t){n in this._entries?this._entries[n].push(String(t)):this._entries[n]=[String(t)]};t.delete=function(n){delete this._entries[n]};t.get=function(n){return n in this._entries?this._entries[n][0]:null};t.getAll=function(n){return n in this._entries?this._entries[n].slice(0):[]};t.has=function(n){return n in this._entries};t.set=function(n,t){this._entries[n]=[String(t)]};t.forEach=function(n,t){var u,i,r;for(i in this._entries)if(this._entries.hasOwnProperty(i))for(u=this._entries[i],r=0;r<u.length;r++)n.call(t,u[r],i,this)};t.keys=function(){var n=[];return this.forEach(function(t,i){n.push(i)}),i(n)};t.values=function(){var n=[];return this.forEach(function(t){n.push(t)}),i(n)};t.entries=function(){var n=[];return this.forEach(function(t,i){n.push([i,t])}),i(n)};r&&(t[Symbol.iterator]=t.entries);t.toString=function(){var n=[];return this.forEach(function(t,i){n.push(u(i)+"="+u(t))}),n.join("&")};n.URLSearchParams=f}();t=n.URLSearchParams.prototype;"function"!=typeof t.sort&&(t.sort=function(){var i=this,n=[],t;for(this.forEach(function(t,r){n.push([r,t]);i._entries||i.delete(r)}),n.sort(function(n,t){return n[0]<t[0]?-1:n[0]>t[0]?1:0}),i._entries&&(i._entries={}),t=0;t<n.length;t++)this.append(n[t][0],n[t][1])});"function"!=typeof t._fromString&&Object.defineProperty(t,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(n){var i,t,r,u;if(this._entries)this._entries={};else for(i=[],this.forEach(function(n,t){i.push(t)}),t=0;t<i.length;t++)this.delete(i[t]);for(u=(n=n.replace(/^\?/,"")).split("&"),t=0;t<u.length;t++)r=u[t].split("="),this.append(f(r[0]),r.length>1?f(r[1]):"")}})}(void 0!==ei?ei:"undefined"!=typeof window?window:"undefined"!=typeof self?self:ei),function(n){if(function(){try{var t=new n.URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(n){return!1}}()||function(){var t=n.URL,i=function(t,i){var u,f,r,h;if("string"!=typeof t&&(t=String(t)),f=document,i&&(void 0===n.location||i!==n.location.href)){(u=(f=document.implementation.createHTMLDocument("")).createElement("base")).href=i;f.head.appendChild(u);try{if(0!==u.href.indexOf(i))throw new Error(u.href);}catch(n){throw new Error("URL unable to set base "+i+" due to "+n);}}if(r=f.createElement("a"),r.href=t,u&&(f.body.appendChild(r),r.href=r.href),":"===r.protocol||!/:/.test(r.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:r});var e=new n.URLSearchParams(this.search),o=!0,s=!0,c=this;["append","delete","set"].forEach(function(n){var t=e[n];e[n]=function(){t.apply(e,arguments);o&&(s=!1,c.search=e.toString(),s=!0)}});Object.defineProperty(this,"searchParams",{value:e,enumerable:!0});h=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==h&&(h=this.search,s&&(o=!1,this.searchParams._fromString(this.search),o=!0))}})},r=i.prototype;["hash","host","hostname","port","protocol"].forEach(function(n){!function(n){Object.defineProperty(r,n,{get:function(){return this._anchorElement[n]},set:function(t){this._anchorElement[n]=t},enumerable:!0})}(n)});Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(n){this._anchorElement.search=n;this._updateSearchParams()},enumerable:!0});Object.defineProperties(r,{toString:{get:function(){var n=this;return function(){return n.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(n){this._anchorElement.href=n;this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(n){this._anchorElement.pathname=n},enumerable:!0},origin:{get:function(){var n={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=n&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(){},enumerable:!0},username:{get:function(){return""},set:function(){},enumerable:!0}});i.createObjectURL=function(){return t.createObjectURL.apply(t,arguments)};i.revokeObjectURL=function(){return t.revokeObjectURL.apply(t,arguments)};n.URL=i}(),void 0!==n.location&&!("origin"in n.location)){var t=function(){return n.location.protocol+"//"+n.location.hostname+(n.location.port?":"+n.location.port:"")};try{Object.defineProperty(n.location,"origin",{get:t,enumerable:!0})}catch(i){setInterval(function(){n.location.origin=t()},100)}}}(void 0!==ei?ei:"undefined"!=typeof window?window:"undefined"!=typeof self?self:ei);var uk=a("isConcatSpreadable"),het=!l(function(){var n=[];return n[uk]=!1,n.concat()[0]!==n}),cet=pf("concat"),aet=function(n){if(!c(n))return!1;var t=n[uk];return void 0!==t?!!t:fu(n)};e({target:"Array",proto:!0,forced:!het||!cet},{concat:function(){for(var r,e,n,o=si(this),u=fh(o,0),t=0,i=-1,f=arguments.length;i<f;i++)if(n=-1===i?o:arguments[i],aet(n)){if(t+(e=wt(n.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<e;r++,t++)r in n&&cu(u,t,n[r])}else{if(t>=9007199254740991)throw TypeError("Maximum allowed index exceeded");cu(u,t++,n)}return u.length=t,u}});fk=bi.filter;e({target:"Array",proto:!0,forced:!pf("filter")},{filter:function(n){return fk(this,n,arguments.length>1?arguments[1]:void 0)}});ek=bi.find;al=!0;"find"in[]&&Array(1).find(function(){al=!1});e({target:"Array",proto:!0,forced:al},{find:function(n){return ek(this,n,arguments.length>1?arguments[1]:void 0)}});su("find");vl=a("iterator");yl=!1;try{ok=0;pl={next:function(){return{done:!!ok++}},"return":function(){yl=!0}};pl[vl]=function(){return this};Array.from(pl,function(){throw 2;})}catch(ei){}os=function(n,t){var i,r;if(!t&&!yl)return!1;i=!1;try{r={};r[vl]=function(){return{next:function(){return{done:i=!0}}}};n(r)}catch(n){}return i};sk=!os(function(n){Array.from(n)});e({target:"Array",stat:!0,forced:sk},{from:ar});hk=cy.includes;e({target:"Array",proto:!0},{includes:function(n){return hk(this,n,arguments.length>1?arguments[1]:void 0)}});su("includes");ck=bi.map;e({target:"Array",proto:!0,forced:!pf("map")},{map:function(n){return ck(this,n,arguments.length>1?arguments[1]:void 0)}});var wl=function(n,t,i){var r,u;return yo&&"function"==typeof(r=t.constructor)&&r!==i&&c(u=r.prototype)&&u!==i.prototype&&yo(n,u),n},bl="\t\n\v\f\r                　\u2028\u2029\ufeff",ss="["+bl+"]",vet=RegExp("^"+ss+ss+"*"),yet=RegExp(ss+ss+"*$"),kl=function(n){return function(t){var i=String(lt(t));return 1&n&&(i=i.replace(vet,"")),2&n&&(i=i.replace(yet,"")),i}},lk={start:kl(1),end:kl(2),trim:kl(3)},pet=sf.f,wet=gr.f,bet=ot.f,ket=lk.trim,tr=i.Number,hs=tr.prototype,det="Number"==ht(wi(hs)),ak=function(n){var r,o,u,f,e,s,i,h,t=er(n,!1);if("string"==typeof t&&t.length>2)if(43===(r=(t=ket(t)).charCodeAt(0))||45===r){if(88===(o=t.charCodeAt(2))||120===o)return NaN}else if(48===r){switch(t.charCodeAt(1)){case 66:case 98:u=2;f=49;break;case 79:case 111:u=8;f=55;break;default:return+t}for(s=(e=t.slice(2)).length,i=0;i<s;i++)if((h=e.charCodeAt(i))<48||h>f)return NaN;return parseInt(e,u)}return+t};if(uu("Number",!tr(" 0o1")||!tr("0b1")||tr("+0x1"))){for(var cs,pr=function(n){var i=arguments.length<1?0:n,t=this;return t instanceof pr&&(det?l(function(){hs.valueOf.call(t)}):"Number"!=ht(t))?wl(new tr(ak(i)),t,pr):ak(i)},vk=k?pet(tr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),dl=0;vk.length>dl;dl++)f(tr,cs=vk[dl])&&!f(pr,cs)&&bet(pr,cs,wet(tr,cs));pr.prototype=hs;hs.constructor=pr;nt(i,"Number",pr)}yk=l(function(){hi(1)});e({target:"Object",stat:!0,forced:yk},{keys:function(n){return hi(si(n))}});var pk=function(n){if(ec(n))throw TypeError("The method doesn't accept regular expressions");return n},get=a("match"),wk=function(n){var t=/./;try{"/./"[n](t)}catch(i){try{return t[get]=!1,"/./"[n](t)}catch(n){}}return!1};e({target:"String",proto:!0,forced:!wk("includes")},{includes:function(n){return!!~String(lt(this)).indexOf(pk(n),arguments.length>1?arguments[1]:void 0)}});var not=!l(function(){return Object.isExtensible(Object.preventExtensions({}))}),wr=dr(function(n){var u=ot.f,t=no("meta"),e=0,i=Object.isExtensible||function(){return!0},r=function(n){u(n,t,{value:{objectID:"O"+ ++e,weakData:{}}})},o=n.exports={REQUIRED:!1,fastKey:function(n,u){if(!c(n))return"symbol"==typeof n?n:("string"==typeof n?"S":"P")+n;if(!f(n,t)){if(!i(n))return"F";if(!u)return"E";r(n)}return n[t].objectID},getWeakData:function(n,u){if(!f(n,t)){if(!i(n))return!0;if(!u)return!1;r(n)}return n[t].weakData},onFreeze:function(n){return not&&o.REQUIRED&&i(n)&&!f(n,t)&&r(n),n}};nu[t]=!0}),ls=(wr.REQUIRED,wr.fastKey,wr.getWeakData,wr.onFreeze,dr(function(n){var t=function(n,t){this.stopped=n;this.result=t};(n.exports=function(n,i,r,u,f){var s,c,o,a,e,h,l=lf(i,r,u?2:1);if(f)s=n;else{if("function"!=typeof(c=ns(n)))throw TypeError("Target is not iterable");if(sw(c)){for(o=0,a=wt(n.length);a>o;o++)if((e=u?l(y(h=n[o])[0],h[1]):l(n[o]))&&e instanceof t)return e;return new t(!1)}s=c.call(n)}for(;!(h=s.next()).done;)if((e=ow(s,l,h.value,u))&&e instanceof t)return e;return new t(!1)}).stop=function(n){return new t(!0,n)}})),as=wr.getWeakData,tot=d.set,iot=d.getterFor,rot=bi.find,uot=bi.findIndex,fot=0,vs=function(n){return n.frozen||(n.frozen=new bk)},bk=function(){this.entries=[]},gl=function(n,t){return rot(n.entries,function(n){return n[0]===t})};bk.prototype={get:function(n){var t=gl(this,n);if(t)return t[1]},has:function(n){return!!gl(this,n)},set:function(n,t){var i=gl(this,n);i?i[1]=t:this.entries.push([n,t])},"delete":function(n){var t=uot(this.entries,function(t){return t[0]===n});return~t&&this.entries.splice(t,1),!!~t}};na={getConstructor:function(n,t,i,r){var u=n(function(n,f){bf(n,u,t);tot(n,{type:t,id:fot++,frozen:void 0});null!=f&&ls(f,n[r],n,i)}),e=iot(t),o=function(n,t,i){var r=e(n),u=as(y(t),!0);return!0===u?vs(r).set(t,i):u[r.id]=i,n};return df(u.prototype,{"delete":function(n){var i=e(this),t;return c(n)?(t=as(n),!0===t?vs(i).delete(n):t&&f(t,i.id)&&delete t[i.id]):!1},has:function(n){var i=e(this),t;return c(n)?(t=as(n),!0===t?vs(i).has(n):t&&f(t,i.id)):!1}}),df(u.prototype,i?{get:function(n){var i=e(this),t;if(c(n))return t=as(n),!0===t?vs(i).get(n):t?t[i.id]:void 0},set:function(n,t){return o(this,n,t)}}:{add:function(n){return o(this,n,!0)}}),u}};dr(function(n){var t,u=d.enforce,y=!i.ActiveXObject&&"ActiveXObject"in i,f=Object.isExtensible,s=function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}},p=n.exports=function(n,t,r){var f=i[n],o=f&&f.prototype,u=f,s="set",v={},h=function(n){var t=o[n];nt(o,n,"add"==n?function(n){return t.call(this,0===n?0:n),this}:"delete"==n?function(n){return!!c(n)&&t.call(this,0===n?0:n)}:"get"==n?function(n){if(c(n))return t.call(this,0===n?0:n)}:"has"==n?function(n){return!!c(n)&&t.call(this,0===n?0:n)}:function(n,i){return t.call(this,0===n?0:n,i),this})};if(uu(n,"function"!=typeof f||!1))u=r.getConstructor(t,n,!0,s),wr.REQUIRED=!0;else if(uu(n,!0)){var a=new u,y=a[s]({},1)!=a,p=l(function(){a.has(1)});os(function(n){new f(n)})||((u=t(function(t,i){bf(t,u,n);var r=wl(new f,t,u);return null!=i&&ls(i,r[s],r,!0),r})).prototype=o,o.constructor=u);!!p&&(h("delete"),h("has"),h("get"));y&&h(s);o.clear&&delete o.clear}return v[n]=u,e({global:!0,forced:u!=f},v),sr(u,n),u}("WeakMap",s,na);if(ey&&y){t=na.getConstructor(s,"WeakMap",!0);wr.REQUIRED=!0;var r=p.prototype,h=r.delete,o=r.has,a=r.get,v=r.set;df(r,{"delete":function(n){if(c(n)&&!f(n)){var i=u(this);return i.frozen||(i.frozen=new t),h.call(this,n)||i.frozen.delete(n)}return h.call(this,n)},has:function(n){if(c(n)&&!f(n)){var i=u(this);return i.frozen||(i.frozen=new t),o.call(this,n)||i.frozen.has(n)}return o.call(this,n)},get:function(n){if(c(n)&&!f(n)){var i=u(this);return i.frozen||(i.frozen=new t),o.call(this,n)?a.call(this,n):i.frozen.get(n)}return a.call(this,n)},set:function(n,i){if(c(n)&&!f(n)){var r=u(this);r.frozen||(r.frozen=new t);o.call(this,n)?v.call(this,n,i):r.frozen.set(n,i)}else v.call(this,n,i);return this}})}});e({target:"Object",stat:!0,forced:Object.assign!==kf},{assign:kf});kk=lk.trim;e({target:"String",proto:!0,forced:function(n){return l(function(){return!!bl[n]()||"​᠎"!="​᠎"[n]()||bl[n].name!==n})}("trim")},{trim:function(){return kk(this)}});var ta="".repeat||function(n){var i=String(lt(this)),r="",t=or(n);if(t<0||t==1/0)throw RangeError("Wrong number of repetitions");for(;t>0;(t>>>=1)&&(i+=i))1&t&&(r+=i);return r},dk=1..toFixed,gk=Math.floor,wu=function(n,t,i){return 0===t?i:t%2==1?wu(n,t-1,i*n):wu(n*n,t/2,i)},eot=dk&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0))||!l(function(){dk.call({})});e({target:"Number",proto:!0,forced:eot},{toFixed:function(n){var u,s,r,h,t=function(n){if("number"!=typeof n&&"Number"!=ht(n))throw TypeError("Incorrect invocation");return+n}(this),i=or(n),e=[0,0,0,0,0,0],c="",f="0",o=function(n,t){for(var r=-1,i=t;++r<6;)i+=n*e[r],e[r]=i%1e7,i=gk(i/1e7)},l=function(n){for(var i=6,t=0;--i>=0;)t+=e[i],e[i]=gk(t/n),t=t%n*1e7},a=function(){for(var i,t=6,n="";--t>=0;)(""!==n||0===t||0!==e[t])&&(i=String(e[t]),n=""===n?i:n+ta.call("0",7-i.length)+i);return n};if(i<0||i>20)throw RangeError("Incorrect fraction digits");if(t!=t)return"NaN";if(t<=-1e21||t>=1e21)return String(t);if(t<0&&(c="-",t=-t),t>1e-21)if(s=(u=function(){for(var i=0,n=t*wu(2,69,1);n>=4096;)i+=12,n/=4096;for(;n>=2;)i+=1,n/=2;return i}()-69)<0?t*wu(2,-u,1):t/wu(2,u,1),s*=4503599627370496,(u=52-u)>0){for(o(0,s),r=i;r>=7;)o(1e7,0),r-=7;for(o(wu(10,r,1),0),r=u-1;r>=23;)l(8388608),r-=23;l(1<<r);o(1,1);l(2);f=a()}else o(0,s),o(1<<-u,0),f=a()+ta.call("0",i);return i>0?c+((h=f.length)<=i?"0."+ta.call("0",i-h)+f:f.slice(0,h-i)+"."+f.slice(h-i)):c+f}});var oot=of.f,nd=function(n){return function(t){for(var i,r=at(t),u=hi(r),o=u.length,f=0,e=[];o>f;)i=u[f++],k&&!oot.call(r,i)||e.push(n?[i,r[i]]:r[i]);return e}},td={entries:nd(!0),values:nd(!1)},sot=td.entries;e({target:"Object",stat:!0},{entries:function(n){return sot(n)}});id=td.values;e({target:"Object",stat:!0},{values:function(n){return id(n)}});ia={addCSS:!0,thumbWidth:15,watch:!0};e({target:"Number",stat:!0},{isNaN:function(n){return n!=n}});var re=function(n){return null!=n?n.constructor:null},ra=function(n,t){return Boolean(n&&t&&n instanceof t)},rd=function(n){return null==n},ud=function(n){return re(n)===Object},fd=function(n){return re(n)===String},ed=function(n){return Array.isArray(n)},od=function(n){return ra(n,NodeList)},ft={nullOrUndefined:rd,object:ud,number:function(n){return re(n)===Number&&!Number.isNaN(n)},string:fd,boolean:function(n){return re(n)===Boolean},"function":function(n){return re(n)===Function},array:ed,nodeList:od,element:function(n){return ra(n,Element)},event:function(n){return ra(n,Event)},empty:function(n){return rd(n)||(fd(n)||ed(n)||od(n))&&!n.length||ud(n)&&!Object.keys(n).length}};bo("match",1,function(n,t,i){return[function(t){var i=lt(this),r=null==t?void 0:t[n];return void 0!==r?r.call(t,i):new RegExp(t)[n](String(i))},function(n){var s=i(t,n,this),r,u,h,c,e,f,o;if(s.done)return s.value;if(r=y(n),u=String(this),!r.global)return lu(r,u);for(h=r.unicode,r.lastIndex=0,e=[],f=0;null!==(c=lu(r,u));)o=String(c[0]),e[f]=o,""===o&&(r.lastIndex=uc(u,wt(r.lastIndex),h)),f++;return 0===f?null:e}]});var bu,sd,ua,hot=function(){function n(t,i){gi(this,n);ft.element(t)?this.element=t:ft.string(t)&&(this.element=document.querySelector(t));ft.element(this.element)&&ft.empty(this.element.rangeTouch)&&(this.config=Object.assign({},ia,i),this.init())}return nr(n,[{key:"init",value:function(){n.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){n.enabled&&(this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(n){var t=this,i=n?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(n){t.element[i](n,function(n){return t.set(n)},!1)})}},{key:"get",value:function(t){if(!n.enabled||!ft.event(t))return null;var i,r=t.target,o=t.changedTouches[0],f=parseFloat(r.getAttribute("min"))||0,s=parseFloat(r.getAttribute("max"))||100,h=parseFloat(r.getAttribute("step"))||1,c=s-f,u=r.getBoundingClientRect(),e=100/u.width*(this.config.thumbWidth/2)/100;return(i=100/u.width*(o.clientX-u.left))<0?i=0:i>100&&(i=100),i<50?i-=(100-2*i)*e:i>50&&(i+=2*(i-50)*e),f+function(n,t){var r,i;return t<1?(r=(i="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/))?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0,parseFloat(n.toFixed(r))):Math.round(n/t)*t}(c*(i/100),h)}},{key:"set",value:function(t){n.enabled&&ft.event(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(n,t){if(n&&t){var i=new Event(t);n.dispatchEvent(i)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r;return(ft.empty(t)||ft.string(t)?i=Array.from(document.querySelectorAll(ft.string(t)?t:'input[type="range"]')):ft.element(t)?i=[t]:ft.nodeList(t)?i=Array.from(t):ft.array(t)&&(i=t.filter(ft.element)),ft.empty(i))?null:(r=Object.assign({},ia,u),ft.string(t)&&r.watch&&new MutationObserver(function(i){Array.from(i).forEach(function(i){Array.from(i.addedNodes).forEach(function(i){var u;ft.element(i)&&function(){return Array.from(document.querySelectorAll(u)).includes(this)}.call(i,u=t)&&new n(i,r)})})}).observe(document.body,{childList:!0,subtree:!0}),i.map(function(t){return new n(t,u)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),n}(),hd=a("species"),cd=function(n){var t=io(n),i=ot.f;k&&t&&!t[hd]&&i(t,hd,{configurable:!0,get:function(){return this}})},ld=i.location,fa=i.setImmediate,ea=i.clearImmediate,ad=i.process,vd=i.MessageChannel,oa=i.Dispatch,sa=0,ue={},ha=function(n){if(ue.hasOwnProperty(n)){var t=ue[n];delete ue[n];t()}},ca=function(n){return function(){ha(n)}},yd=function(n){ha(n.data)},pd=function(n){i.postMessage(n+"",ld.protocol+"//"+ld.host)};fa&&ea||(fa=function(n){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return ue[++sa]=function(){("function"==typeof n?n:Function(n)).apply(void 0,t)},bu(sa),sa},ea=function(n){delete ue[n]},"process"==ht(ad)?bu=function(n){ad.nextTick(ca(n))}:oa&&oa.now?bu=function(n){oa.now(ca(n))}:vd?(ua=(sd=new vd).port2,sd.port1.onmessage=yd,bu=lf(ua.postMessage,ua,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||l(pd)?bu="onreadystatechange"in de("script")?function(n){rh.appendChild(de("script")).onreadystatechange=function(){rh.removeChild(this);ha(n)}}:function(n){setTimeout(ca(n),0)}:(bu=pd,i.addEventListener("message",yd,!1)));var fe,br,ee,ku,la,aa,wd,bd={set:fa,clear:ea},kd=io("navigator","userAgent")||"",cot=gr.f,lot=bd.set,dd=i.MutationObserver||i.WebKitMutationObserver,va=i.process,ya=i.Promise,gd="process"==ht(va),ng=cot(i,"queueMicrotask"),tg=ng&&ng.value;tg||(fe=function(){var n,t;for(gd&&(n=va.domain)&&n.exit();br;){t=br.fn;br=br.next;try{t()}catch(n){throw br?ku():ee=void 0,n;}}ee=void 0;n&&n.enter()},gd?ku=function(){va.nextTick(fe)}:dd&&!/(iphone|ipod|ipad).*applewebkit/i.test(kd)?(la=!0,aa=document.createTextNode(""),new dd(fe).observe(aa,{characterData:!0}),ku=function(){aa.data=la=!la}):ya&&ya.resolve?(wd=ya.resolve(void 0),ku=function(){wd.then(fe)}):ku=function(){lot.call(i,fe)});var pa,ig,rg,ug=tg||function(n){var t={fn:n,next:void 0};ee&&(ee.next=t);br||(br=t,ku());ee=t},aot=function(n){var t,i;this.promise=new n(function(n,r){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=n;i=r});this.resolve=hr(t);this.reject=hr(i)},wa={f:function(n){return new aot(n)}},fg=function(n,t){if(y(n),c(t)&&t.constructor===n)return t;var i=wa.f(n);return i.resolve(t),i.promise},ba=function(n){try{return{error:!1,value:n()}}catch(n){return{error:!0,value:n}}},eg=bd.set,vot=a("species"),ai="Promise",og=d.get,yot=d.set,pot=d.getterFor(ai),ii=i.Promise,sg=i.TypeError,ka=i.document,du=i.process,hg=i.fetch,cg=du&&du.versions,wot=cg&&cg.v8||"",gu=wa.f,bot=gu,oe="process"==ht(du),kot=!!(ka&&ka.createEvent&&i.dispatchEvent),se=uu(ai,function(){var t=ii.resolve(1),n=function(){},i=(t.constructor={})[vot]=function(t){t(n,n)};return!((oe||"function"==typeof PromiseRejectionEvent)&&t.then(n)instanceof i&&0!==wot.indexOf("6.6")&&-1===kd.indexOf("Chrome/66"))}),dot=se||!os(function(n){ii.all(n).catch(function(){})}),lg=function(n){var t;return!(!c(n)||"function"!=typeof(t=n.then))&&t},da=function(n,t,i){if(!t.notified){t.notified=!0;var r=t.reactions;ug(function(){for(var s=t.value,c=1==t.state,l=0;r.length>l;){var u,a,v,f=r[l++],h=c?f.ok:f.fail,y=f.resolve,o=f.reject,e=f.domain;try{h?(c||(2===t.rejection&&nst(n,t),t.rejection=1),!0===h?u=s:(e&&e.enter(),u=h(s),e&&(e.exit(),v=!0)),u===f.promise?o(sg("Promise-chain cycle")):(a=lg(u))?a.call(u,y,o):y(u)):o(s)}catch(n){e&&!v&&e.exit();o(n)}}t.reactions=[];t.notified=!1;i&&!t.rejection&&got(n,t)})}},ag=function(n,t,r){var u,f;kot?((u=ka.createEvent("Event")).promise=t,u.reason=r,u.initEvent(n,!1,!0),i.dispatchEvent(u)):u={promise:t,reason:r};(f=i["on"+n])?f(u):"unhandledrejection"===n&&function(n,t){var r=i.console;r&&r.error&&(1===arguments.length?r.error(n):r.error(n,t))}("Unhandled promise rejection",r)},got=function(n,t){eg.call(i,function(){var i,r=t.value;if(vg(t)&&(i=ba(function(){oe?du.emit("unhandledRejection",r,n):ag("unhandledrejection",n,r)}),t.rejection=oe||vg(t)?2:1,i.error))throw i.value;})},vg=function(n){return 1!==n.rejection&&!n.parent},nst=function(n,t){eg.call(i,function(){oe?du.emit("rejectionHandled",n):ag("rejectionhandled",n,t.value)})},nf=function(n,t,i,r){return function(u){n(t,i,u,r)}},tf=function(n,t,i,r){t.done||(t.done=!0,r&&(t=r),t.value=i,t.state=2,da(n,t,!0))},ga=function(n,t,i,r){if(!t.done){t.done=!0;r&&(t=r);try{if(n===i)throw sg("Promise can't be resolved itself");var u=lg(i);u?ug(function(){var r={done:!1};try{u.call(i,nf(ga,n,r,t),nf(tf,n,r,t))}catch(i){tf(n,r,i,t)}}):(t.value=i,t.state=1,da(n,t,!1))}catch(i){tf(n,{done:!1},i,t)}}};se&&(ii=function(n){bf(this,ii,ai);hr(n);pa.call(this);var t=og(this);try{n(nf(ga,this,t),nf(tf,this,t))}catch(n){tf(this,t,n)}},(pa=function(){yot(this,{type:ai,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=df(ii.prototype,{then:function(n,t){var r=pot(this),i=gu(rw(this,ii));return i.ok="function"!=typeof n||n,i.fail="function"==typeof t&&t,i.domain=oe?du.domain:void 0,r.parent=!0,r.reactions.push(i),0!=r.state&&da(this,r,!1),i.promise},"catch":function(n){return this.then(void 0,n)}}),ig=function(){var n=new pa,t=og(n);this.promise=n;this.resolve=nf(ga,n,t);this.reject=nf(tf,n,t)},wa.f=gu=function(n){return n===ii||n===rg?new ig(n):bot(n)},"function"==typeof hg&&e({global:!0,enumerable:!0,forced:!0},{fetch:function(){return fg(ii,hg.apply(i,arguments))}}));e({global:!0,wrap:!0,forced:se},{Promise:ii});sr(ii,ai,!1);cd(ai);rg=ru.Promise;e({target:ai,stat:!0,forced:se},{reject:function(n){var t=gu(this);return t.reject.call(void 0,n),t.promise}});e({target:ai,stat:!0,forced:se},{resolve:function(n){return fg(this,n)}});e({target:ai,stat:!0,forced:dot},{all:function(n){var t=this,i=gu(t),r=i.resolve,u=i.reject,f=ba(function(){var e=hr(t.resolve),i=[],o=0,f=1;ls(n,function(n){var h=o++,s=!1;i.push(void 0);f++;e.call(t,n).then(function(n){s||(s=!0,i[h]=n,--f||r(i))},u)});--f||r(i)});return f.error&&u(f.value),i.promise},race:function(n){var t=this,i=gu(t),r=i.reject,u=ba(function(){var u=hr(t.resolve);ls(n,function(n){u.call(t,n).then(i.resolve,r)})});return u.error&&r(u.value),i.promise}});nv="".startsWith;yg=Math.min;e({target:"String",proto:!0,forced:!wk("startsWith")},{startsWith:function(n){var r=String(lt(this)),t,i;return pk(n),t=wt(yg(arguments.length>1?arguments[1]:void 0,r.length)),i=String(n),nv?nv.call(r,i,t):r.slice(t,t+i.length)===i}});var pg,tv,iv,rf=function(n){return null!=n?n.constructor:null},ri=function(n,t){return Boolean(n&&t&&n instanceof t)},rv=function(n){return null==n},wg=function(n){return rf(n)===Object},ys=function(n){return rf(n)===String},bg=function(n){return Array.isArray(n)},kg=function(n){return ri(n,NodeList)},dg=function(n){return rv(n)||(ys(n)||bg(n)||kg(n))&&!n.length||wg(n)&&!Object.keys(n).length},n={nullOrUndefined:rv,object:wg,number:function(n){return rf(n)===Number&&!Number.isNaN(n)},string:ys,boolean:function(n){return rf(n)===Boolean},"function":function(n){return rf(n)===Function},array:bg,weakMap:function(n){return ri(n,WeakMap)},nodeList:kg,element:function(n){return ri(n,Element)},textNode:function(n){return rf(n)===Text},event:function(n){return ri(n,Event)},keyboardEvent:function(n){return ri(n,KeyboardEvent)},cue:function(n){return ri(n,window.TextTrackCue)||ri(n,window.VTTCue)},track:function(n){return ri(n,TextTrack)||!rv(n)&&ys(n.kind)},promise:function(n){return ri(n,Promise)},url:function(n){if(ri(n,window.URL))return!0;if(!ys(n))return!1;var t=n;n.startsWith("http://")&&n.startsWith("https://")||(t="http://".concat(n));try{return!dg(new URL(t).hostname)}catch(n){return!1}},empty:dg},uv=(pg=document.createElement("span"),tv={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},iv=Object.keys(tv).find(function(n){return void 0!==pg.style[n]}),!!n.string(iv)&&tv[iv]);rt={isIE:!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)};nn=function(){var t=!1,n;try{n=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,n);window.removeEventListener("test",null,n)}catch(t){}return t}();cv={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"};w={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(n,t,i){var u=rt.isIPhone&&i&&w.playsinline,r=w[n]||"html5"!==t;return{api:r,ui:r&&w.rangeInput&&("video"!==n||!rt.isIPhone||u)}},pip:!(rt.isIPhone||!n.function(r("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||r("video").disablePictureInPicture)),airplay:n.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(n.empty(t))return!1;var r=it(t.split("/"),1)[0],i=t;if(!this.isHTML5||r!==this.type)return!1;Object.keys(cv).includes(i)&&(i+='; codecs="'.concat(cv[t],'"'));try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(hv=document.createElement("input"),hv.type="range","range"===hv.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==uv,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches};rr={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(i){var r=i.getAttribute("type");return!!n.empty(r)||w.mime.call(t,r)}):[]},getQualityOptions:function(){return rr.getSources.call(this).map(function(n){return Number(n.getAttribute("size"))}).filter(Boolean)},extend:function(){if(this.isHTML5){var t=this;n.empty(this.config.ratio)||ir.call(t);Object.defineProperty(t.media,"quality",{get:function(){var n=rr.getSources.call(t).find(function(n){return n.getAttribute("src")===t.source});return n&&Number(n.getAttribute("size"))},set:function(n){var r=rr.getSources.call(t).find(function(t){return Number(t.getAttribute("size"))===n});if(r){var i=t.media,f=i.currentTime,e=i.paused,o=i.preload,s=i.readyState;t.media.src=r.getAttribute("src");("none"!==o||s)&&(t.once("loadedmetadata",function(){t.currentTime=f;e||t.play()}),t.media.load());u.call(t,t.media,"qualitychange",!1,{quality:n})}}})}},cancelRequests:function(){this.isHTML5&&(vi(rr.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};var tst=ot.f,ist=sf.f,rst=a("match"),fi=i.RegExp,vv=fi.prototype,he=/a/g,yv=/a/g,on=new fi(he)!==he;if(k&&uu("RegExp",!on||l(function(){return yv[rst]=!1,fi(he)!=he||fi(yv)==yv||"/a/i"!=fi(he,"i")}))){for(var pi=function(n,t){var u=this instanceof pi,i=ec(n),r=void 0===t;return!u&&i&&n.constructor===pi&&r?n:wl(on?new fi(i&&!r?n.source:n,t):fi((i=n instanceof pi)?n.source:n,i&&r?gh.call(n):t),u?this:vv,pi)},ust=function(n){n in pi||tst(pi,n,{configurable:!0,get:function(){return fi[n]},set:function(t){fi[n]=t}})},sn=ist(fi),hn=0;sn.length>hn;)ust(sn[hn++]);vv.constructor=pi;pi.prototype=vv;nt(i,"RegExp",pi)}cd("RegExp");var ln={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},ut=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t,u;return n.empty(i)||n.empty(r)?"":(t=tn(r.i18n,i),n.empty(t))?Object.keys(ln).includes(i)?ln[i]:"":(u={"{seektime}":r.seekTime,"{title}":r.title},Object.entries(u).forEach(function(n){var i=it(n,2),r=i[0],u=i[1];t=ce(t,r,u)}),t)},an=function(){function t(n){gi(this,t);this.enabled=n.config.storage.enabled;this.key=n.config.storage.key}return nr(t,[{key:"get",value:function(i){var r,u;return!t.supported||!this.enabled?null:(r=window.localStorage.getItem(this.key),n.empty(r))?null:(u=JSON.parse(r),n.string(i)&&i.length?u[i]:u)}},{key:"set",value:function(i){if(t.supported&&this.enabled&&n.object(i)){var r=this.get();n.empty(r)&&(r={});b(r,i);window.localStorage.setItem(this.key,JSON.stringify(r))}}}],[{key:"supported",get:function(){try{return"localStorage"in window&&(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0)}catch(n){return!1}}}]),t}();yn=Math.ceil;pn=Math.floor;e({target:"Math",stat:!0},{trunc:function(n){return(n>0?pn:yn)(n)}});var wn=function(n){return Math.trunc(n/3600%60,10)},est=function(n){return Math.trunc(n/60%60,10)},ost=function(n){return Math.trunc(n%60,10)};t={getIconUrl:function(){var n=new URL(this.config.iconUrl,window.location).host!==window.location.host||rt.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements:function(){try{return this.elements.controls=g.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:ff.call(this,this.config.selectors.buttons.play),pause:g.call(this,this.config.selectors.buttons.pause),restart:g.call(this,this.config.selectors.buttons.restart),rewind:g.call(this,this.config.selectors.buttons.rewind),fastForward:g.call(this,this.config.selectors.buttons.fastForward),mute:g.call(this,this.config.selectors.buttons.mute),pip:g.call(this,this.config.selectors.buttons.pip),airplay:g.call(this,this.config.selectors.buttons.airplay),settings:g.call(this,this.config.selectors.buttons.settings),captions:g.call(this,this.config.selectors.buttons.captions),fullscreen:g.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=g.call(this,this.config.selectors.progress),this.elements.inputs={seek:g.call(this,this.config.selectors.inputs.seek),volume:g.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:g.call(this,this.config.selectors.display.buffer),currentTime:g.call(this,this.config.selectors.display.currentTime),duration:g.call(this,this.config.selectors.display.duration)},n.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon:function(n,i){var e=t.getIconUrl.call(this),o="".concat(e.cors?"":e.url,"#").concat(this.config.iconPrefix),u=document.createElementNS("http://www.w3.org/2000/svg","svg"),r,f;return ev(u,b(i,{role:"presentation",focusable:"false"})),r=document.createElementNS("http://www.w3.org/2000/svg","use"),f="".concat(o,"-").concat(n),"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",f),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f),u.appendChild(r),u},createLabel:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=ut(n,this.config);return r("span",Object.assign({},t,{"class":[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(t){if(n.empty(t))return null;var i=r("span",{"class":this.config.classNames.menu.value});return i.appendChild(r("span",{"class":this.config.classNames.menu.badge},t)),i},createButton:function(i,u){var h=this,e=b({},u),s=function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(n=function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return n=ce(n,"-"," "),n=ce(n,"_"," "),ce(n=cn(n)," ","")}(n)).charAt(0).toLowerCase()+n.slice(1)}(i),f={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null},o;switch(["element","icon","label"].forEach(function(n){Object.keys(e).includes(n)&&(f[n]=e[n],delete e[n])}),"button"!==f.element||Object.keys(e).includes("type")||(e.type="button"),Object.keys(e).includes("class")?e.class.split(" ").some(function(n){return n===h.config.classNames.control})||b(e,{"class":"".concat(e.class," ").concat(this.config.classNames.control)}):e.class=this.config.classNames.control,i){case"play":f.toggle=!0;f.label="play";f.labelPressed="pause";f.icon="play";f.iconPressed="pause";break;case"mute":f.toggle=!0;f.label="mute";f.labelPressed="unmute";f.icon="volume";f.iconPressed="muted";break;case"captions":f.toggle=!0;f.label="enableCaptions";f.labelPressed="disableCaptions";f.icon="captions-off";f.iconPressed="captions-on";break;case"fullscreen":f.toggle=!0;f.label="enterFullscreen";f.labelPressed="exitFullscreen";f.icon="enter-fullscreen";f.iconPressed="exit-fullscreen";break;case"play-large":e.class+=" ".concat(this.config.classNames.control,"--overlaid");s="play";f.label="play";f.icon="play";break;default:n.empty(f.label)&&(f.label=s);n.empty(f.icon)&&(f.icon=i)}return o=r(f.element),f.toggle?(o.appendChild(t.createIcon.call(this,f.iconPressed,{"class":"icon--pressed"})),o.appendChild(t.createIcon.call(this,f.icon,{"class":"icon--not-pressed"})),o.appendChild(t.createLabel.call(this,f.labelPressed,{"class":"label--pressed"})),o.appendChild(t.createLabel.call(this,f.label,{"class":"label--not-pressed"}))):(o.appendChild(t.createIcon.call(this,f.icon)),o.appendChild(t.createLabel.call(this,f.label))),b(e,ui(this.config.selectors.buttons[s],e)),ev(o,e),"play"===s?(n.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(o)):this.elements.buttons[s]=o,o},createRange:function(n,i){var u=r("input",b(ui(this.config.selectors.inputs[n]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":ut(n,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[n]=u,t.updateRangeFill.call(this,u),hot.setup(u),u},createProgress:function(n,t){var i=r("progress",b(ui(this.config.selectors.display[n]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t)),u,f;return"volume"!==n&&(i.appendChild(r("span",null,"0")),u={played:"played",buffer:"buffered"}[n],f=u?ut(u,this.config):"",i.innerText="% ".concat(f.toLowerCase())),this.elements.display[n]=i,i},createTime:function(n,t){var i=ui(this.config.selectors.display[n],t),u=r("div",b(i,{"class":"".concat(i.class?i.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":ut(n,this.config)}),"00:00");return this.elements.display[n]=u,u},bindMenuItemShortcuts:function(i,r){var u=this;o(i,"keydown keyup",function(f){if([32,38,39,40].includes(f.which)&&(f.preventDefault(),f.stopPropagation(),"keydown"!==f.type)){var e,o=uf(i,'[role="menuitemradio"]');!o&&[32,39].includes(f.which)?t.showMenuPanel.call(u,r,!0):32!==f.which&&(40===f.which||o&&39===f.which?(e=i.nextElementSibling,n.element(e)||(e=i.parentNode.firstElementChild)):(e=i.previousElementSibling,n.element(e)||(e=i.parentNode.lastElementChild)),sv.call(u,e,!0))}},!1);o(i,"keyup",function(n){13===n.which&&t.focusFirstMenuItem.call(u,null,!0)})},createMenuItem:function(i){var f=this,e=i.value,v=i.list,o=i.type,y=i.title,c=i.badge,l=void 0===c?null:c,a=i.checked,p=void 0!==a&&a,s=ui(this.config.selectors.inputs[o]),u=r("button",b(s,{type:"button",role:"menuitemradio","class":"".concat(this.config.classNames.control," ").concat(s.class?s.class:"").trim(),"aria-checked":p,value:e})),h=r("span");h.innerHTML=y;n.element(l)&&h.appendChild(l);u.appendChild(h);Object.defineProperty(u,"checked",{enumerable:!0,get:function(){return"true"===u.getAttribute("aria-checked")},set:function(n){n&&Array.from(u.parentNode.children).filter(function(n){return uf(n,'[role="menuitemradio"]')}).forEach(function(n){return n.setAttribute("aria-checked","false")});u.setAttribute("aria-checked",n?"true":"false")}});this.listeners.bind(u,"click keyup",function(i){if(!n.keyboardEvent(i)||32===i.which){switch(i.preventDefault(),i.stopPropagation(),u.checked=!0,o){case"language":f.currentTrack=Number(e);break;case"quality":f.quality=e;break;case"speed":f.speed=parseFloat(e)}t.showMenuPanel.call(f,"home",n.keyboardEvent(i))}},o,!1);t.bindMenuItemShortcuts.call(this,u,o);v.appendChild(u)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.number(t)?ks(t,wn(this.duration)>0,i):t},updateTimeDisplay:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n.element(i)&&n.number(r)&&(i.innerText=t.formatTime(r,u))},updateVolume:function(){this.supported.ui&&(n.element(this.elements.inputs.volume)&&t.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),n.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;n.element(i)&&(i.value=r,t.updateRangeFill.call(this,i))},updateProgress:function(i){var u=this,r;if(this.supported.ui&&n.event(i)&&(r=0,i))switch(i.type){case"timeupdate":case"seeking":case"seeked":r=function(n,t){return 0===n||0===t||Number.isNaN(n)||Number.isNaN(t)?0:(n/t*100).toFixed(2)}(this.currentTime,this.duration);"timeupdate"===i.type&&t.setRange.call(this,this.elements.inputs.seek,r);break;case"playing":case"progress":!function(t,i){var e=n.number(i)?i:0,r=n.element(t)?t:u.elements.display.buffer,f;n.element(r)&&(r.value=e,f=r.getElementsByTagName("span")[0],n.element(f)&&(f.childNodes[0].nodeValue=e))}(this.elements.display.buffer,100*this.buffered)}},updateRangeFill:function(i){var r=n.event(i)?i.target:i,u;if(n.element(r)&&"range"===r.getAttribute("type")){if(uf(r,this.config.selectors.inputs.seek)){r.setAttribute("aria-valuenow",this.currentTime);var f=t.formatTime(this.currentTime),e=t.formatTime(this.duration),o=ut("seekLabel",this.config);r.setAttribute("aria-valuetext",o.replace("{currentTime}",f).replace("{duration}",e))}else uf(r,this.config.selectors.inputs.volume)?(u=100*r.value,r.setAttribute("aria-valuenow",u),r.setAttribute("aria-valuetext","".concat(u.toFixed(1),"%"))):r.setAttribute("aria-valuenow",r.value);rt.isWebkit&&r.style.setProperty("--value","".concat(r.value/r.max*100,"%"))}},updateSeekTooltip:function(i){var o=this,u,f,r,e;if(this.config.tooltips.seek&&n.element(this.elements.inputs.seek)&&n.element(this.elements.display.seekTooltip)&&0!==this.duration)if(u="".concat(this.config.classNames.tooltip,"--visible"),f=function(n){return s(o.elements.display.seekTooltip,u,n)},this.touch)f(!1);else{if(r=0,e=this.elements.progress.getBoundingClientRect(),n.event(i))r=100/e.width*(i.pageX-e.left);else{if(!bs(this.elements.display.seekTooltip,u))return;r=parseFloat(this.elements.display.seekTooltip.style.left,10)}r<0?r=0:r>100&&(r=100);t.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*r);this.elements.display.seekTooltip.style.left="".concat(r,"%");n.event(i)&&["mouseenter","mouseleave"].includes(i.type)&&f("mouseenter"===i.type)}},timeUpdate:function(i){var r=!n.element(this.elements.display.duration)&&this.config.invertTime;t.updateTimeDisplay.call(this,this.elements.display.currentTime,r?this.duration-this.currentTime:this.currentTime,r);i&&"timeupdate"===i.type&&this.media.seeking||t.updateProgress.call(this,i)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return yi(this.elements.display.currentTime,!0),void yi(this.elements.progress,!0);n.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var i=n.element(this.elements.display.duration);!i&&this.config.displayDuration&&this.paused&&t.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration);i&&t.updateTimeDisplay.call(this,this.elements.display.duration,this.duration);t.updateSeekTooltip.call(this)}},toggleMenuButton:function(n,t){yi(this.elements.settings.buttons[n],!t)},updateSetting:function(i,r,u){var s=this.elements.settings.panels[i],f=null,e=r,o;if("captions"===i)f=this.currentTrack;else{if(f=n.empty(u)?this[i]:u,n.empty(f)&&(f=this.config[i].default),!n.empty(this.options[i])&&!this.options[i].includes(f))return void this.debug.warn("Unsupported value of '".concat(f,"' for ").concat(i));if(!this.config[i].options.includes(f))return void this.debug.warn("Disabled value of '".concat(f,"' for ").concat(i))}(n.element(e)||(e=s&&s.querySelector('[role="menu"]')),n.element(e))&&(this.elements.settings.buttons[i].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=t.getLabel.call(this,i,f),o=e&&e.querySelector('[value="'.concat(f,'"]')),n.element(o)&&(o.checked=!0))},getLabel:function(t,i){switch(t){case"speed":return 1===i?ut("normal",this.config):"".concat(i,"&times;");case"quality":if(n.number(i)){var r=ut("qualityLabel.".concat(i),this.config);return r.length?r:"".concat(i,"p")}return cn(i);case"captions":return h.getLabel.call(this);default:return null}},setQualityMenu:function(i){var r=this,u,f;n.element(this.elements.settings.panels.quality)&&(u=this.elements.settings.panels.quality.querySelector('[role="menu"]'),n.array(i)&&(this.options.quality=av(i).filter(function(n){return r.config.quality.options.includes(n)})),f=!n.empty(this.options.quality)&&this.options.quality.length>1,(t.toggleMenuButton.call(this,"quality",f),ws(u),t.checkMenu.call(this),f)&&(this.options.quality.sort(function(n,t){var i=r.config.quality.options;return i.indexOf(n)>i.indexOf(t)?1:-1}).forEach(function(n){t.createMenuItem.call(r,{value:n,list:u,type:"quality",title:t.getLabel.call(r,"quality",n),badge:function(n){var i=ut("qualityBadge.".concat(n),r.config);return i.length?t.createBadge.call(r,i):null}(n)})}),t.updateSetting.call(this,"quality",u)))},setCaptionsMenu:function(){var i=this,u;if(n.element(this.elements.settings.panels.captions)){var r=this.elements.settings.panels.captions.querySelector('[role="menu"]'),f=h.getTracks.call(this),e=Boolean(f.length);(t.toggleMenuButton.call(this,"captions",e),ws(r),t.checkMenu.call(this),e)&&(u=f.map(function(n,u){return{value:u,checked:i.captions.toggled&&i.currentTrack===u,title:h.getLabel.call(i,n),badge:n.language&&t.createBadge.call(i,n.language.toUpperCase()),list:r,type:"language"}}),u.unshift({value:-1,checked:!this.captions.toggled,title:ut("disabled",this.config),list:r,type:"language"}),u.forEach(t.createMenuItem.bind(this)),t.updateSetting.call(this,"captions",r))}},setSpeedMenu:function(i){var u=this,r,f;n.element(this.elements.settings.panels.speed)&&(r=this.elements.settings.panels.speed.querySelector('[role="menu"]'),n.array(i)?this.options.speed=i:(this.isHTML5||this.isVimeo)&&(this.options.speed=[.5,.75,1,1.25,1.5,1.75,2]),this.options.speed=this.options.speed.filter(function(n){return u.config.speed.options.includes(n)}),f=!n.empty(this.options.speed)&&this.options.speed.length>1,t.toggleMenuButton.call(this,"speed",f),ws(r),t.checkMenu.call(this),f&&(this.options.speed.forEach(function(n){t.createMenuItem.call(u,{value:n,list:r,type:"speed",title:t.getLabel.call(u,"speed",n)})}),t.updateSetting.call(this,"speed",r)))},checkMenu:function(){var t=this.elements.settings.buttons,i=!n.empty(t)&&Object.values(t).some(function(n){return!n.hidden});yi(this.elements.settings.menu,!i)},focusFirstMenuItem:function(t){var u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i,r;this.elements.settings.popup.hidden||(i=t,n.element(i)||(i=Object.values(this.elements.settings.panels).find(function(n){return!n.hidden})),r=i.querySelector('[role^="menuitem"]'),sv.call(this,r,u))},toggleMenu:function(i){var u=this.elements.settings.popup,f=this.elements.buttons.settings,e,r,h,o;if(n.element(u)&&n.element(f)){if(e=u.hidden,r=e,n.boolean(i))r=i;else if(n.keyboardEvent(i)&&27===i.which)r=!1;else if(n.event(i)&&(h=n.function(i.composedPath)?i.composedPath()[0]:i.target,o=u.contains(h),o||!o&&i.target!==f&&r))return;f.setAttribute("aria-expanded",r);yi(u,!r);s(this.elements.container,this.config.classNames.menu.open,r);r&&n.keyboardEvent(i)?t.focusFirstMenuItem.call(this,null,!0):r||e||sv.call(this,f,n.keyboardEvent(i))}},getMenuSize:function(n){var t=n.cloneNode(!0),i,r;return t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),n.parentNode.appendChild(t),i=t.scrollWidth,r=t.scrollHeight,vi(t),{width:i,height:r}},showMenuPanel:function(){var s=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",h=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(e)),i,u,f;n.element(r)&&(i=r.parentNode,u=Array.from(i.children).find(function(n){return!n.hidden}),w.transitions&&!w.reducedMotion&&(i.style.width="".concat(u.scrollWidth,"px"),i.style.height="".concat(u.scrollHeight,"px"),f=t.getMenuSize.call(this,r),o.call(this,i,uv,function e(n){n.target===i&&["width","height"].includes(n.propertyName)&&(i.style.width="",i.style.height="",ps.call(s,i,uv,e))}),i.style.width="".concat(f.width,"px"),i.style.height="".concat(f.height,"px")),yi(u,!0),yi(r,!1),t.focusFirstMenuItem.call(this,r,h))},setDownloadUrl:function(){var t=this.elements.buttons.download;n.element(t)&&t.setAttribute("href",this.download)},create:function(i){var u=this,a=t.bindMenuItemShortcuts,s=t.createButton,v=t.createProgress,c=t.createRange,l=t.createTime,y=t.setQualityMenu,p=t.setSpeedMenu,h=t.showMenuPanel,f,e;return this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(s.call(this,"play-large")),f=r("div",ui(this.config.selectors.controls.wrapper)),this.elements.controls=f,e={"class":"plyr__controls__item"},av(this.config.controls).forEach(function(t){var d,p,g,y,ft,k,rt,ot;if(("restart"===t&&f.appendChild(s.call(u,"restart",e)),"rewind"===t&&f.appendChild(s.call(u,"rewind",e)),"play"===t&&f.appendChild(s.call(u,"play",e)),"fast-forward"===t&&f.appendChild(s.call(u,"fast-forward",e)),"progress"===t)&&(d=r("div",{"class":"".concat(e.class," plyr__progress__container")}),p=r("div",ui(u.config.selectors.progress)),(p.appendChild(c.call(u,"seek",{id:"plyr-seek-".concat(i.id)})),p.appendChild(v.call(u,"buffer")),u.config.tooltips.seek)&&(g=r("span",{"class":u.config.classNames.tooltip},"00:00"),p.appendChild(g),u.elements.display.seekTooltip=g),u.elements.progress=p,d.appendChild(u.elements.progress),f.appendChild(d)),("current-time"===t&&f.appendChild(l.call(u,"currentTime",e)),"duration"===t&&f.appendChild(l.call(u,"duration",e)),"mute"===t||"volume"===t)&&(y=u.elements.volume,(n.element(y)&&f.contains(y)||(y=r("div",b({},e,{"class":"".concat(e.class," plyr__volume").trim()})),u.elements.volume=y,f.appendChild(y)),"mute"===t&&y.appendChild(s.call(u,"mute")),"volume"===t)&&(ft={max:1,step:.05,value:u.config.volume},y.appendChild(c.call(u,"volume",b(ft,{id:"plyr-volume-".concat(i.id)}))))),"captions"===t&&f.appendChild(s.call(u,"captions",e)),"settings"===t&&!n.empty(u.config.settings)){k=r("div",b({},e,{"class":"".concat(e.class," plyr__menu").trim(),hidden:""}));k.appendChild(s.call(u,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(i.id),"aria-expanded":!1}));var nt=r("div",{"class":"plyr__menu__container",id:"plyr-settings-".concat(i.id),hidden:""}),tt=r("div"),it=r("div",{id:"plyr-settings-".concat(i.id,"-home")}),et=r("div",{role:"menu"});it.appendChild(et);tt.appendChild(it);u.elements.settings.panels.home=it;u.config.settings.forEach(function(n){var f=r("button",b(ui(u.config.selectors.buttons.settings),{type:"button","class":"".concat(u.config.classNames.control," ").concat(u.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""})),s,c,t,e;a.call(u,f,n);o(f,"click",function(){h.call(u,n,!1)});s=r("span",null,ut(n,u.config));c=r("span",{"class":u.config.classNames.menu.value});c.innerHTML=i[n];s.appendChild(c);f.appendChild(s);et.appendChild(f);t=r("div",{id:"plyr-settings-".concat(i.id,"-").concat(n),hidden:""});e=r("button",{type:"button","class":"".concat(u.config.classNames.control," ").concat(u.config.classNames.control,"--back")});e.appendChild(r("span",{"aria-hidden":!0},ut(n,u.config)));e.appendChild(r("span",{"class":u.config.classNames.hidden},ut("menuBack",u.config)));o(t,"keydown",function(n){37===n.which&&(n.preventDefault(),n.stopPropagation(),h.call(u,"home",!0))},!1);o(e,"click",function(){h.call(u,"home",!1)});t.appendChild(e);t.appendChild(r("div",{role:"menu"}));tt.appendChild(t);u.elements.settings.buttons[n]=f;u.elements.settings.panels[n]=t});nt.appendChild(tt);k.appendChild(nt);f.appendChild(k);u.elements.settings.popup=nt;u.elements.settings.menu=k}("pip"===t&&w.pip&&f.appendChild(s.call(u,"pip",e)),"airplay"===t&&w.airplay&&f.appendChild(s.call(u,"airplay",e)),"download"===t)&&(rt=b({},e,{element:"a",href:u.download,target:"_blank"}),ot=u.config.urls.download,!n.url(ot)&&u.isEmbed&&b(rt,{icon:"logo-".concat(u.provider),label:u.provider}),f.appendChild(s.call(u,"download",rt)));"fullscreen"===t&&f.appendChild(s.call(u,"fullscreen",e))}),this.isHTML5&&y.call(this,rr.getQualityOptions.call(this)),p.call(this),f},inject:function(){var u=this,f,i,e,o,r,c,l;if(this.config.loadSprite&&(f=t.getIconUrl.call(this),f.cors&&vn(f.url,"sprite-plyr")),this.id=Math.floor(1e4*Math.random()),i=null,this.elements.controls=null,e={id:this.id,seektime:this.config.seekTime,title:this.config.title},o=!0,n.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,e)),this.config.controls||(this.config.controls=[]),n.element(this.config.controls)||n.string(this.config.controls)?i=this.config.controls:(i=t.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:h.getLabel.call(this)}),o=!1),c=function(n){var t=n;return Object.entries(e).forEach(function(n){var i=it(n,2),r=i[0],u=i[1];t=ce(t,"{".concat(r,"}"),u)}),t},(o&&(n.string(this.config.controls)?i=c(i):n.element(i)&&(i.innerHTML=c(i.innerHTML))),n.string(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),n.element(r)||(r=this.elements.container),r[n.element(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),n.element(this.elements.controls)||t.findElements.call(this),n.empty(this.elements.buttons))||(l=function(n){var t=u.config.classNames.controlPressed;Object.defineProperty(n,"pressed",{enumerable:!0,get:function(){return bs(n,t)},set:function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(n,t,i)}})},Object.values(this.elements.buttons).filter(Boolean).forEach(function(t){n.array(t)||n.nodeList(t)?Array.from(t).filter(Boolean).forEach(l):l(t)})),rt.isEdge&&gg(r),this.config.tooltips.controls){var a=this.config,y=a.classNames,v=a.selectors,p="".concat(v.controls.wrapper," ").concat(v.labels," .").concat(y.hidden),w=ff.call(this,p);Array.from(w).forEach(function(n){s(n,u.config.classNames.hidden,!1);s(n,u.config.classNames.tooltip,!0)})}}};var h={setup:function(){var e,f,i,u,s;this.supported.ui&&(!this.isVideo||this.isYouTube||this.isHTML5&&!w.textTracks?n.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&t.setCaptionsMenu.call(this):((n.element(this.elements.captions)||(this.elements.captions=r("div",ui(this.config.selectors.captions)),function(t,i){n.element(t)&&n.element(i)&&i.parentNode.insertBefore(t,i.nextSibling)}(this.elements.captions,this.elements.wrapper)),rt.isIE&&window.URL)&&(e=this.media.querySelectorAll("track"),Array.from(e).forEach(function(n){var i=n.getAttribute("src"),t=bn(i);null!==t&&t.hostname!==window.location.href.hostname&&["http:","https:"].includes(t.protocol)&&le(i,"blob").then(function(t){n.setAttribute("src",window.URL.createObjectURL(t))}).catch(function(){vi(n)})})),f=av((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(n){return n.split("-")[0]})),i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase(),"auto"===i&&(i=it(f,1)[0]),u=this.storage.get("captions"),(n.boolean(u)||(u=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:u,language:i,languages:f}),this.isHTML5)&&(s=this.config.captions.update?"addtrack removetrack":"removetrack",o.call(this,this.media.textTracks,s,h.update.bind(this))),setTimeout(h.update.bind(this),0)))},update:function(){var u=this,i=h.getTracks.call(this,!0),r=this.captions,l=r.active,f=r.language,e=r.meta,a=r.currentTrackNode,c=Boolean(i.find(function(n){return n.language===f}));this.isHTML5&&this.isVideo&&i.filter(function(n){return!e.get(n)}).forEach(function(n){u.debug.log("Track added",n);e.set(n,{"default":"showing"===n.mode});n.mode="hidden";o.call(u,n,"cuechange",function(){return h.updateCues.call(u)})});(c&&this.language!==f||!i.includes(a))&&(h.setLanguage.call(this,f),h.toggle.call(this,l&&c));s(this.elements.container,this.config.classNames.captions.enabled,!n.empty(i));(this.config.controls||[]).includes("settings")&&this.config.settings.includes("captions")&&t.setCaptionsMenu.call(this)},toggle:function(i){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c,f;if(this.supported.ui){var o=this.captions.toggled,l=this.config.classNames.captions.active,r=n.nullOrUndefined(i)?!o:i;if(r!==o){if(e||(this.captions.active=r,this.storage.set({captions:r})),!this.language&&r&&!e)return c=h.getTracks.call(this),f=h.findTrack.call(this,[this.captions.language].concat(ll(this.captions.languages)),!0),this.captions.language=f.language,void h.set.call(this,c.indexOf(f));this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=r);s(this.elements.container,l,r);this.captions.toggled=r;t.updateSetting.call(this,"captions");u.call(this,this.media,r?"captionsenabled":"captionsdisabled")}}},set:function(i){var f=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=h.getTracks.call(this),e,r;-1!==i?n.number(i)?i in o?(this.captions.currentTrack!==i&&(this.captions.currentTrack=i,e=o[i],r=(e||{}).language,this.captions.currentTrackNode=e,t.updateSetting.call(this,"captions"),f||(this.captions.language=r,this.storage.set({language:r})),this.isVimeo&&this.embed.enableTextTrack(r),u.call(this,this.media,"languagechange")),h.toggle.call(this,!0,f),this.isHTML5&&this.isVideo&&h.updateCues.call(this)):this.debug.warn("Track not found",i):this.debug.warn("Invalid caption argument",i):h.toggle.call(this,!1,f)},setLanguage:function(t){var f=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i,r,u;n.string(t)?(i=t.toLowerCase(),this.captions.language=i,r=h.getTracks.call(this),u=h.findTrack.call(this,[i]),h.set.call(this,r.indexOf(u),f)):this.debug.warn("Invalid language argument",t)},getTracks:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter(function(i){return!n.isHTML5||t||n.captions.meta.has(i)}).filter(function(n){return["captions","subtitles"].includes(n.kind)})},findTrack:function(n){var t,u=this,f=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=h.getTracks.call(this),i=function(n){return Number((u.captions.meta.get(n)||{}).default)},r=Array.from(e).sort(function(n,t){return i(t)-i(n)});return n.every(function(n){return!(t=r.find(function(t){return t.language===n}))}),t||(f?r[0]:void 0)},getCurrentTrack:function(){return h.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var i=t;return!n.track(i)&&w.textTracks&&this.captions.toggled&&(i=h.getCurrentTrack.call(this)),n.track(i)?n.empty(i.label)?n.empty(i.language)?ut("enabled",this.config):t.language.toUpperCase():i.label:ut("disabled",this.config)},updateCues:function(t){var i,o,f,e;this.supported.ui&&(n.element(this.elements.captions)?n.nullOrUndefined(t)||Array.isArray(t)?(i=t,i||(o=h.getCurrentTrack.call(this),i=Array.from((o||{}).activeCues||[]).map(function(n){return n.getCueAsHTML()}).map(fst)),f=i.map(function(n){return n.trim()}).join("\n"),f!==this.elements.captions.innerHTML&&(ws(this.elements.captions),e=r("span",ui(this.config.selectors.caption)),e.innerHTML=f,this.elements.captions.appendChild(e),u.call(this,this.media,"cuechange"))):this.debug.warn("updateCues: Invalid input",t):this.debug.warn("No captions element to render to"))}},dn={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.5.6/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{"default":576,options:[4320,2880,2160,1440,1080,720,576,480,360,240]},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1},youtube:{noCookie:!1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}},gn="picture-in-picture",ur={html5:"html5",youtube:"youtube",vimeo:"vimeo"},wv={audio:"audio",video:"video"},bv=function(){},sst=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];gi(this,n);this.enabled=window.console&&t;this.enabled&&this.log("Debugging enabled")}return nr(n,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):bv}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):bv}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):bv}}]),n}();itt=function(){function t(i){var r=this;gi(this,t);this.player=i;this.prefix=t.prefix;this.property=t.property;this.scrollPosition={x:0,y:0};this.forceFallback="force"===i.config.fullscreen.fallback;o.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){ntt.call(r)});o.call(this.player,this.player.elements.container,"dblclick",function(t){n.element(r.player.elements.controls)&&r.player.elements.controls.contains(t.target)||r.toggle()});this.update()}return nr(t,[{key:"update",value:function(){var n;this.enabled?(n=this.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback",this.player.debug.log("".concat(n," fullscreen enabled"))):this.player.debug.log("Fullscreen not supported and fallback disabled");s(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(rt.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!t.native||this.forceFallback?ttt.call(this,!0):this.prefix?n.empty(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen())}},{key:"exit",value:function(){if(this.enabled)if(rt.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),this.player.play();else if(!t.native||this.forceFallback)ttt.call(this,!1);else if(this.prefix){if(!n.empty(this.prefix)){var i="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(i).concat(this.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"usingNative",get:function(){return t.native&&!this.forceFallback}},{key:"enabled",get:function(){return(t.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){return!!this.enabled&&(!t.native||this.forceFallback?bs(this.target,this.player.config.classNames.fullscreen.fallback):(this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement)===this.target)}},{key:"target",get:function(){return rt.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(n.function(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some(function(i){return!(!n.function(document["".concat(i,"ExitFullscreen")])&&!n.function(document["".concat(i,"CancelFullScreen")])||(t=i,0))}),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}();rtt=Math.sign||function(n){return 0==(n=+n)||n!=n?n:n<0?-1:1};e({target:"Math",stat:!0},{sign:rtt});var v={addStyleHook:function(){s(this.elements.container,this.config.selectors.container.replace(".",""),!0);s(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var i=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void v.toggleNativeControls.call(this,!0);n.element(this.elements.controls)||(t.inject.call(this),this.listeners.controls());v.toggleNativeControls.call(this);this.isHTML5&&h.setup.call(this);this.volume=null;this.muted=null;this.loop=null;this.quality=null;this.speed=null;t.updateVolume.call(this);t.timeUpdate.call(this);v.checkPlaying.call(this);s(this.elements.container,this.config.classNames.pip.supported,w.pip&&this.isHTML5&&this.isVideo);s(this.elements.container,this.config.classNames.airplay.supported,w.airplay&&this.isHTML5);s(this.elements.container,this.config.classNames.isIos,rt.isIos);s(this.elements.container,this.config.classNames.isTouch,this.touch);this.ready=!0;setTimeout(function(){u.call(i,i.media,"ready")},0);v.setTitle.call(this);this.poster&&v.setPoster.call(this,this.poster,!1).catch(function(){});this.config.duration&&t.durationUpdate.call(this)},setTitle:function(){var i=ut("play",this.config),t,r,u;if(n.string(this.config.title)&&!n.empty(this.config.title)&&(i+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach(function(n){n.setAttribute("aria-label",i)}),this.isEmbed){if(t=g.call(this,"iframe"),!n.element(t))return;r=n.empty(this.config.title)?"video":this.config.title;u=ut("frameTitle",this.config);t.setAttribute("title",u.replace("{title}",r))}},togglePoster:function(n){s(this.elements.container,this.config.classNames.posterEnabled,n)},setPoster:function(n){var t=this;return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!this.poster?(this.media.setAttribute("poster",n),function(){var n=this;return new Promise(function(t){return n.ready?setTimeout(t,0):o.call(n,n.elements.container,"ready",t)}).then(function(){})}.call(this).then(function(){return ds(n)}).catch(function(i){throw n===t.poster&&v.togglePoster.call(t,!1),i;}).then(function(){if(n!==t.poster)throw new Error("setPoster cancelled by later call to setPoster");}).then(function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(n,"')"),backgroundSize:""}),v.togglePoster.call(t,!0),n})):Promise.reject(new Error("Poster already set"))},checkPlaying:function(t){var i=this;s(this.elements.container,this.config.classNames.playing,this.playing);s(this.elements.container,this.config.classNames.paused,this.paused);s(this.elements.container,this.config.classNames.stopped,this.stopped);Array.from(this.elements.buttons.play||[]).forEach(function(n){Object.assign(n,{pressed:i.playing})});n.event(t)&&"timeupdate"===t.type||v.toggleControls.call(this)},checkLoading:function(n){var t=this;this.loading=["stalled","waiting"].includes(n.type);clearTimeout(this.timers.loading);this.timers.loading=setTimeout(function(){s(t.elements.container,t.config.classNames.loading,t.loading);v.toggleControls.call(t)},this.loading?250:0)},toggleControls:function(n){var t=this.elements.controls,i;t&&this.config.hideControls&&(i=this.touch&&this.lastSeekTime+2e3>Date.now(),this.toggleControls(Boolean(n||this.loading||this.paused||t.pressed||t.hover||i)))}},hst=function(){function i(n){gi(this,i);this.player=n;this.lastKey=null;this.focusTimer=null;this.lastKeyDown=null;this.handleKey=this.handleKey.bind(this);this.toggleMenu=this.toggleMenu.bind(this);this.setTabFocus=this.setTabFocus.bind(this);this.firstTouch=this.firstTouch.bind(this)}return nr(i,[{key:"handleKey",value:function(t){var i=this.player,s=i.elements,r=t.keyCode?t.keyCode:t.which,e="keydown"===t.type,f=e&&r===this.lastKey,u,o;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&n.number(r))if(e){if(u=document.activeElement,n.element(u)){if(o=i.config.selectors.editable,u!==s.inputs.seek&&uf(u,o))return;if(32===t.which&&uf(u,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(r)&&(t.preventDefault(),t.stopPropagation()),r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:f||(i.currentTime=i.duration/10*(r-48));break;case 32:case 75:f||i.togglePlay();break;case 38:i.increaseVolume(.1);break;case 40:i.decreaseVolume(.1);break;case 77:f||(i.muted=!i.muted);break;case 39:i.forward();break;case 37:i.rewind();break;case 70:i.fullscreen.toggle();break;case 67:f||i.toggleCaptions();break;case 76:i.loop=!i.loop}27===r&&!i.fullscreen.usingNative&&i.fullscreen.active&&i.fullscreen.toggle();this.lastKey=r}else this.lastKey=null}},{key:"toggleMenu",value:function(n){t.toggleMenu.call(this.player,n)}},{key:"firstTouch",value:function(){var n=this.player,t=n.elements;n.touch=!0;s(t.container,n.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(n){var t=this.player,u=t.elements,i,r;(clearTimeout(this.focusTimer),"keydown"!==n.type||9===n.which)&&("keydown"===n.type&&(this.lastKeyDown=n.timeStamp),r=n.timeStamp-this.lastKeyDown<=20,("focus"!==n.type||r)&&(i=t.config.classNames.tabFocus,s(ff.call(t,".".concat(i)),i,!1),this.focusTimer=setTimeout(function(){var n=document.activeElement;u.container.contains(n)&&s(document.activeElement,t.config.classNames.tabFocus,!0)},10)))}},{key:"global",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this.player;n.config.keyboard.global&&kr.call(n,window,"keydown keyup",this.handleKey,t,!1);kr.call(n,document.body,"click",this.toggleMenu,t);fv.call(n,document.body,"touchstart",this.firstTouch);kr.call(n,document.body,"keydown focus blur",this.setTabFocus,t,!1,!0)}},{key:"container",value:function(){var t=this.player,e=t.config,i=t.elements,r=t.timers,u,f;!e.keyboard.global&&e.keyboard.focused&&o.call(t,i.container,"keydown keyup",this.handleKey,!1);o.call(t,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(n){var u=i.controls,f;u&&"enterfullscreen"===n.type&&(u.pressed=!1,u.hover=!1);f=0;["touchstart","touchmove","mousemove"].includes(n.type)&&(v.toggleControls.call(t,!0),f=t.touch?3e3:2e3);clearTimeout(r.controls);r.controls=setTimeout(function(){return v.toggleControls.call(t,!1)},f)});u=function(n){if(!n)return ir.call(t);var r=i.container.getBoundingClientRect(),u=r.width,f=r.height;return ir.call(t,"".concat(u,":").concat(f))};f=function(){clearTimeout(r.resized);r.resized=setTimeout(u,50)};o.call(t,i.container,"enterfullscreen exitfullscreen",function(r){var h=t.fullscreen,c=h.target,l=h.usingNative,e,s;c===i.container&&(t.isEmbed||!n.empty(t.config.ratio))&&(e="enterfullscreen"===r.type,s=u(e),s.padding,!function(n,i,r){if(t.isVimeo){var u=t.elements.wrapper.firstChild,e=it(n,2)[1],f=it(lv.call(t),2),o=f[0],s=f[1];u.style.maxWidth=r?"".concat(e/s*o,"px"):null;u.style.margin=r?"0 auto":null}}(s.ratio,0,e),l||(e?o.call(t,window,"resize",f):ps.call(t,window,"resize",f)))})}},{key:"media",value:function(){var e=this,i=this.player,r=i.elements,f,s;if(o.call(i,i.media,"timeupdate seeking seeked",function(n){return t.timeUpdate.call(i,n)}),o.call(i,i.media,"durationchange loadeddata loadedmetadata",function(n){return t.durationUpdate.call(i,n)}),o.call(i,i.media,"canplay loadeddata",function(){yi(r.volume,!i.hasAudio);yi(r.buttons.mute,!i.hasAudio)}),o.call(i,i.media,"ended",function(){i.isHTML5&&i.isVideo&&i.config.resetOnEnd&&i.restart()}),o.call(i,i.media,"progress playing seeking seeked",function(n){return t.updateProgress.call(i,n)}),o.call(i,i.media,"volumechange",function(n){return t.updateVolume.call(i,n)}),o.call(i,i.media,"playing play pause ended emptied timeupdate",function(n){return v.checkPlaying.call(i,n)}),o.call(i,i.media,"waiting canplay seeked playing",function(n){return v.checkLoading.call(i,n)}),i.supported.ui&&i.config.clickToPlay&&!i.isAudio){if(f=g.call(i,".".concat(i.config.classNames.video)),!n.element(f))return;o.call(i,r.container,"click",function(n){([r.container,f].includes(n.target)||f.contains(n.target))&&(i.touch&&i.config.hideControls||(i.ended?(e.proxy(n,i.restart,"restart"),e.proxy(n,i.play,"play")):e.proxy(n,i.togglePlay,"play")))})}i.supported.ui&&i.config.disableContextMenu&&o.call(i,r.wrapper,"contextmenu",function(n){n.preventDefault()},!1);o.call(i,i.media,"volumechange",function(){i.storage.set({volume:i.volume,muted:i.muted})});o.call(i,i.media,"ratechange",function(){t.updateSetting.call(i,"speed");i.storage.set({speed:i.speed})});o.call(i,i.media,"qualitychange",function(n){t.updateSetting.call(i,"quality",null,n.detail.quality)});o.call(i,i.media,"ready qualitychange",function(){t.setDownloadUrl.call(i)});s=i.config.events.concat(["keyup","keydown"]).join(" ");o.call(i,i.media,s,function(n){var t=n.detail,f=void 0===t?{}:t;"error"===n.type&&(f=i.media.error);u.call(i,r.container,n.type,!0,f)})}},{key:"proxy",value:function(t,i,r){var u=this.player,f=u.config.listeners[r],e=!0;n.function(f)&&(e=f.call(u,t));e&&n.function(i)&&i.call(u,t)}},{key:"bind",value:function(t,i,r,u){var e=this,s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],f=this.player,h=f.config.listeners[u],c=n.function(h);o.call(f,t,i,function(n){return e.proxy(n,r,u)},s&&!c)}},{key:"controls",value:function(){var f=this,i=this.player,r=i.elements,e=rt.isIE?"change":"input",o;(r.buttons.play&&Array.from(r.buttons.play).forEach(function(n){f.bind(n,"click",i.togglePlay,"play")}),this.bind(r.buttons.restart,"click",i.restart,"restart"),this.bind(r.buttons.rewind,"click",i.rewind,"rewind"),this.bind(r.buttons.fastForward,"click",i.forward,"fastForward"),this.bind(r.buttons.mute,"click",function(){i.muted=!i.muted},"mute"),this.bind(r.buttons.captions,"click",function(){return i.toggleCaptions()}),this.bind(r.buttons.download,"click",function(){u.call(i,i.media,"download")},"download"),this.bind(r.buttons.fullscreen,"click",function(){i.fullscreen.toggle()},"fullscreen"),this.bind(r.buttons.pip,"click",function(){i.pip="toggle"},"pip"),this.bind(r.buttons.airplay,"click",i.airplay,"airplay"),this.bind(r.buttons.settings,"click",function(n){n.stopPropagation();t.toggleMenu.call(i,n)}),this.bind(r.buttons.settings,"keyup",function(n){var r=n.which;[13,32].includes(r)&&(13!==r?(n.preventDefault(),n.stopPropagation(),t.toggleMenu.call(i,n)):t.focusFirstMenuItem.call(i,null,!0))},null,!1),this.bind(r.settings.menu,"keydown",function(n){27===n.which&&t.toggleMenu.call(i,n)}),this.bind(r.inputs.seek,"mousedown mousemove",function(n){var t=r.progress.getBoundingClientRect(),i=100/t.width*(n.pageX-t.left);n.currentTarget.setAttribute("seek-value",i)}),this.bind(r.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(t){var r=t.currentTarget,f=t.keyCode?t.keyCode:t.which,e,u;n.keyboardEvent(t)&&39!==f&&37!==f||(i.lastSeekTime=Date.now(),e=r.hasAttribute("play-on-seeked"),u=["mouseup","touchend","keyup"].includes(t.type),e&&u?(r.removeAttribute("play-on-seeked"),i.play()):!u&&i.playing&&(r.setAttribute("play-on-seeked",""),i.pause()))}),rt.isIos)&&(o=ff.call(i,'input[type="range"]'),Array.from(o).forEach(function(n){return f.bind(n,e,function(n){return gg(n.target)})}));this.bind(r.inputs.seek,e,function(t){var r=t.currentTarget,u=r.getAttribute("seek-value");n.empty(u)&&(u=r.value);r.removeAttribute("seek-value");i.currentTime=u/r.max*i.duration},"seek");this.bind(r.progress,"mouseenter mouseleave mousemove",function(n){return t.updateSeekTooltip.call(i,n)});this.bind(r.progress,"mousemove touchmove",function(n){var t=i.previewThumbnails;t&&t.loaded&&t.startMove(n)});this.bind(r.progress,"mouseleave click",function(){var n=i.previewThumbnails;n&&n.loaded&&n.endMove(!1,!0)});this.bind(r.progress,"mousedown touchstart",function(n){var t=i.previewThumbnails;t&&t.loaded&&t.startScrubbing(n)});this.bind(r.progress,"mouseup touchend",function(n){var t=i.previewThumbnails;t&&t.loaded&&t.endScrubbing(n)});rt.isWebkit&&Array.from(ff.call(i,'input[type="range"]')).forEach(function(n){f.bind(n,"input",function(n){return t.updateRangeFill.call(i,n.target)})});i.config.toggleInvert&&!n.element(r.display.duration)&&this.bind(r.display.currentTime,"click",function(){0!==i.currentTime&&(i.config.invertTime=!i.config.invertTime,t.timeUpdate.call(i))});this.bind(r.inputs.volume,e,function(n){i.volume=n.target.value},"volume");this.bind(r.controls,"mouseenter mouseleave",function(n){r.controls.hover=!i.touch&&"mouseenter"===n.type});this.bind(r.controls,"mousedown mouseup touchstart touchend touchcancel",function(n){r.controls.pressed=["mousedown","touchstart"].includes(n.type)});this.bind(r.controls,"focusin",function(){var n=i.config,t=i.timers,u;s(r.controls,n.classNames.noTransition,!0);v.toggleControls.call(i,!0);setTimeout(function(){s(r.controls,n.classNames.noTransition,!1)},0);u=f.touch?3e3:4e3;clearTimeout(t.controls);t.controls=setTimeout(function(){return v.toggleControls.call(i,!1)},u)});this.bind(r.inputs.volume,"wheel",function(n){var o=n.webkitDirectionInvertedFromDevice,u=it([n.deltaX,-n.deltaY].map(function(n){return o?-n:n}),2),f=u[0],e=u[1],t=Math.sign(Math.abs(f)>Math.abs(e)?f:e),r;i.increaseVolume(t/50);r=i.media.volume;(1===t&&r<1||-1===t&&r>0)&&n.preventDefault()},"volume",!1)}}]),i}(),cst=ot.f,kv=Function.prototype,lst=kv.toString,ast=/^\s*function ([^ (]*)/;!k||"name"in kv||cst(kv,"name",{configurable:!0,get:function(){try{return lst.call(this).match(ast)[1]}catch(n){return""}}});utt=Math.max;ftt=Math.min;e({target:"Array",proto:!0,forced:!pf("splice")},{splice:function(n,t){var f,r,c,i,o,s,u=si(this),e=wt(u.length),h=ro(n,e),l=arguments.length;if(0===l?f=r=0:1===l?(f=0,r=e-h):(f=l-2,r=ftt(utt(or(t),0),e-h)),e+f-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(c=fh(u,r),i=0;i<r;i++)(o=h+i)in u&&cu(c,i,u[o]);if(c.length=r,f<r){for(i=h;i<e-r;i++)s=i+f,(o=i+r)in u?u[s]=u[o]:delete u[s];for(i=e;i>e-r+f;i--)delete u[i-1]}else if(f>r)for(i=e-r;i>h;i--)s=i+f-1,(o=i+r-1)in u?u[s]=u[o]:delete u[s];for(i=0;i<f;i++)u[i+h]=arguments[i+2];return u.length=e-r+f,c}});ett=dr(function(n){n.exports=function(){function e(n,t){if(n){var r=i[n];if(u[n]=t,r)for(;r.length;)r[0](n,t),r.splice(0,1)}}function f(n,t){n.call&&(n={success:n});t.length?(n.error||r)(t):(n.success||r)(n)}function o(n,t,i,u){var s,f,e=document,h=i.async,l=(i.numRetries||0)+1,a=i.before||r,c=n.replace(/^(css|img)!/,"");u=u||0;/(^css!|\.css$)/.test(n)?((f=e.createElement("link")).rel="stylesheet",f.href=c,(s="hideFocus"in f)&&f.relList&&(s=0,f.rel="preload",f.as="style")):/(^img!|\.(png|gif|jpg|svg)$)/.test(n)?(f=e.createElement("img")).src=c:((f=e.createElement("script")).src=n,f.async=void 0===h||h);f.onload=f.onerror=f.onbeforeload=function(r){var e=r.type[0];if(s)try{f.sheet.cssText.length||(e="e")}catch(r){18!=r.code&&(e="e")}if("e"==e){if((u+=1)<l)return o(n,t,i,u)}else if("preload"==f.rel&&"style"==f.as)return f.rel="stylesheet";t(n,e,r.defaultPrevented)};!1!==a(n,f)&&e.head.appendChild(f)}function n(n,i,r){function h(t,i){!function(n,t,i){for(var e=(n=n.push?n:[n]).length,s=e,u=[],f=function(n,i,r){if("e"==i&&u.push(n),"b"==i){if(!r)return;u.push(n)}--e||t(u)},r=0;r<s;r++)o(n[r],f,i)}(n,function(n){f(s,n);t&&f({success:t,error:i},n);e(u,n)},s)}var u,s;if(i&&i.trim&&(u=i),s=(u?r:i)||{},u){if(u in t)throw"LoadJS";t[u]=!0}if(s.returnPromise)return new Promise(h);h()}var r=function(){},t={},u={},i={};return n.ready=function(t,r){return function(n,t){n=n.push?n:[n];for(var r,o,s=[],e=n.length,h=e,f=function(n,i){i.length&&s.push(n);--h||t(s)};e--;)r=n[e],(o=u[r])?f(r,o):(i[r]=i[r]||[]).push(f)}(t,function(n){f(r,n)}),n},n.done=function(n){e(n,[])},n.reset=function(){t={};u={};i={}},n.isDefined=function(n){return n in t},n}()});gs={setup:function(){var t=this;s(this.elements.wrapper,this.config.classNames.embed,!0);ir.call(this);n.object(window.Vimeo)?gs.ready.call(this):dv(this.config.urls.vimeo.sdk).then(function(){gs.ready.call(t)}).catch(function(n){t.debug.warn("Vimeo SDK (player.js) failed to load",n)})},ready:function(){var s=this,i=this,g=i.config.vimeo,nt=kn(b({},{loop:i.config.loop.active,autoplay:i.autoplay,muted:i.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},g)),c=i.media.getAttribute("src"),l,o,a,y,p,d,w;n.empty(c)&&(c=i.media.getAttribute(i.config.attributes.embed.id));var f,k=(f=c,n.empty(f)?null:n.number(Number(f))?f:f.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:f),e=r("iframe"),tt=pv(i.config.urls.vimeo.iframe,k,nt);e.setAttribute("src",tt);e.setAttribute("allowfullscreen","");e.setAttribute("allowtransparency","");e.setAttribute("allow","autoplay");l=r("div",{poster:i.poster,"class":i.config.classNames.embedContainer});l.appendChild(e);i.media=ov(l,i.media);le(pv(i.config.urls.vimeo.api,k),"json").then(function(t){if(!n.empty(t)){var r=new URL(t[0].thumbnail_large);r.pathname="".concat(r.pathname.split("_")[0],".jpg");v.setPoster.call(i,r.href).catch(function(){})}});i.embed=new window.Vimeo.Player(e,{autopause:i.config.autopause,muted:i.muted});i.media.paused=!0;i.media.currentTime=0;i.supported.ui&&i.embed.disableTextTrack();i.media.play=function(){return ae.call(i,!0),i.embed.play()};i.media.pause=function(){return ae.call(i,!1),i.embed.pause()};i.media.stop=function(){i.pause();i.currentTime=0};o=i.media.currentTime;Object.defineProperty(i.media,"currentTime",{get:function(){return o},set:function(n){var t=i.embed,f=i.media,e=i.paused,o=i.volume,r=e&&!t.hasPlayed;f.seeking=!0;u.call(i,f,"seeking");Promise.resolve(r&&t.setVolume(0)).then(function(){return t.setCurrentTime(n)}).then(function(){return r&&t.pause()}).then(function(){return r&&t.setVolume(o)}).catch(function(){})}});a=i.config.speed.selected;Object.defineProperty(i.media,"playbackRate",{get:function(){return a},set:function(n){i.embed.setPlaybackRate(n).then(function(){a=n;u.call(i,i.media,"ratechange")}).catch(function(n){"Error"===n.name&&t.setSpeedMenu.call(i,[])})}});y=i.config.volume;Object.defineProperty(i.media,"volume",{get:function(){return y},set:function(n){i.embed.setVolume(n).then(function(){y=n;u.call(i,i.media,"volumechange")})}});p=i.config.muted;Object.defineProperty(i.media,"muted",{get:function(){return p},set:function(t){var r=!!n.boolean(t)&&t;i.embed.setVolume(r?0:i.config.volume).then(function(){p=r;u.call(i,i.media,"volumechange")})}});w=i.config.loop;Object.defineProperty(i.media,"loop",{get:function(){return w},set:function(t){var r=n.boolean(t)?t:i.config.loop.active;i.embed.setLoop(r).then(function(){w=r})}});i.embed.getVideoUrl().then(function(n){d=n;t.setDownloadUrl.call(i)}).catch(function(n){s.debug.warn(n)});Object.defineProperty(i.media,"currentSrc",{get:function(){return d}});Object.defineProperty(i.media,"ended",{get:function(){return i.currentTime===i.duration}});Promise.all([i.embed.getVideoWidth(),i.embed.getVideoHeight()]).then(function(n){var t=it(n,2),r=t[0],u=t[1];i.embed.ratio=[r,u];ir.call(s)});i.embed.setAutopause(i.config.autopause).then(function(n){i.config.autopause=n});i.embed.getVideoTitle().then(function(n){i.config.title=n;v.setTitle.call(s)});i.embed.getCurrentTime().then(function(n){o=n;u.call(i,i.media,"timeupdate")});i.embed.getDuration().then(function(n){i.media.duration=n;u.call(i,i.media,"durationchange")});i.embed.getTextTracks().then(function(n){i.media.textTracks=n;h.setup.call(i)});i.embed.on("cuechange",function(n){var t=n.cues,r=(void 0===t?[]:t).map(function(n){return function(n){var t=document.createDocumentFragment(),i=document.createElement("div");return t.appendChild(i),i.innerHTML=n,t.firstChild.innerText}(n.text)});h.updateCues.call(i,r)});i.embed.on("loaded",function(){i.embed.getPaused().then(function(n){ae.call(i,!n);n||u.call(i,i.media,"playing")});n.element(i.embed.element)&&i.supported.ui&&i.embed.element.setAttribute("tabindex",-1)});i.embed.on("play",function(){ae.call(i,!0);u.call(i,i.media,"playing")});i.embed.on("pause",function(){ae.call(i,!1)});i.embed.on("timeupdate",function(n){i.media.seeking=!1;o=n.seconds;u.call(i,i.media,"timeupdate")});i.embed.on("progress",function(n){i.media.buffered=n.percent;u.call(i,i.media,"progress");1===parseInt(n.percent,10)&&u.call(i,i.media,"canplaythrough");i.embed.getDuration().then(function(n){n!==i.media.duration&&(i.media.duration=n,u.call(i,i.media,"durationchange"))})});i.embed.on("seeked",function(){i.media.seeking=!1;u.call(i,i.media,"seeked")});i.embed.on("ended",function(){i.media.paused=!0;u.call(i,i.media,"ended")});i.embed.on("error",function(n){i.media.error=n;u.call(i,i.media,"error")});setTimeout(function(){return v.build.call(i)},0)}};var nh={setup:function(){var i=this,t;(s(this.elements.wrapper,this.config.classNames.embed,!0),n.object(window.YT)&&n.function(window.YT.Player))?nh.ready.call(this):(t=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=function(){n.function(t)&&t();nh.ready.call(i)},dv(this.config.urls.youtube.sdk).catch(function(n){i.debug.warn("YouTube API failed to load",n)}))},getTitle:function(t){var i=this;le(pv(this.config.urls.youtube.api,t)).then(function(t){if(n.object(t)){var r=t.title,u=t.height,f=t.width;i.config.title=r;v.setTitle.call(i);i.embed.ratio=[f,u]}ir.call(i)}).catch(function(){ir.call(i)})},ready:function(){var t=this,h=t.media&&t.media.getAttribute("id"),i,e,s;if(n.empty(h)||!h.startsWith("youtube-")){i=t.media.getAttribute("src");n.empty(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));var f,c,o=(f=i,n.empty(f)?null:f.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:f),l=(c=t.provider,"".concat(c,"-").concat(Math.floor(1e4*Math.random()))),a=r("div",{id:l,poster:t.poster});t.media=ov(a,t.media);e=function(n){return"https://i.ytimg.com/vi/".concat(o,"/").concat(n,"default.jpg")};ds(e("maxres"),121).catch(function(){return ds(e("sd"),121)}).catch(function(){return ds(e("hq"))}).then(function(n){return v.setPoster.call(t,n.src)}).then(function(n){n.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")}).catch(function(){});s=t.config.youtube;t.embed=new window.YT.Player(l,{videoId:o,host:function(n){return n.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}(s),playerVars:b({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},s),events:{onError:function(n){if(!t.media.error){var i=n.data,r={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[i]||"An unknown error occured";t.media.error={code:i,message:r};u.call(t,t.media,"error")}},onPlaybackRateChange:function(n){var i=n.target;t.media.playbackRate=i.getPlaybackRate();u.call(t,t.media,"ratechange")},onReady:function(i){var r,f,e;n.function(t.media.play)||(r=i.target,nh.getTitle.call(t,o),t.media.play=function(){ve.call(t,!0);r.playVideo()},t.media.pause=function(){ve.call(t,!1);r.pauseVideo()},t.media.stop=function(){r.stopVideo()},t.media.duration=r.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:function(){return Number(r.getCurrentTime())},set:function(n){t.paused&&!t.embed.hasPlayed&&t.embed.mute();t.media.seeking=!0;u.call(t,t.media,"seeking");r.seekTo(n)}}),Object.defineProperty(t.media,"playbackRate",{get:function(){return r.getPlaybackRate()},set:function(n){r.setPlaybackRate(n)}}),f=t.config.volume,Object.defineProperty(t.media,"volume",{get:function(){return f},set:function(n){f=n;r.setVolume(100*f);u.call(t,t.media,"volumechange")}}),e=t.config.muted,Object.defineProperty(t.media,"muted",{get:function(){return e},set:function(i){var f=n.boolean(i)?i:e;e=f;r[f?"mute":"unMute"]();u.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:function(){return r.getVideoUrl()}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),t.options.speed=r.getAvailablePlaybackRates(),t.supported.ui&&t.media.setAttribute("tabindex",-1),u.call(t,t.media,"timeupdate"),u.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval(function(){t.media.buffered=r.getVideoLoadedFraction();(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&u.call(t,t.media,"progress");t.media.lastBuffered=t.media.buffered;1===t.media.buffered&&(clearInterval(t.timers.buffering),u.call(t,t.media,"canplaythrough"))},200),setTimeout(function(){return v.build.call(t)},50))},onStateChange:function(n){var i=n.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(n.data)&&(t.media.seeking=!1,u.call(t,t.media,"seeked")),n.data){case-1:u.call(t,t.media,"timeupdate");t.media.buffered=i.getVideoLoadedFraction();u.call(t,t.media,"progress");break;case 0:ve.call(t,!1);t.media.loop?(i.stopVideo(),i.playVideo()):u.call(t,t.media,"ended");break;case 1:t.config.autoplay||!t.media.paused||t.embed.hasPlayed?(ve.call(t,!0),u.call(t,t.media,"playing"),t.timers.playing=setInterval(function(){u.call(t,t.media,"timeupdate")},50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),u.call(t,t.media,"durationchange"))):t.media.pause();break;case 2:t.muted||t.embed.unMute();ve.call(t,!1)}u.call(t,t.elements.container,"statechange",!1,{code:n.data})}}})}}},ott={setup:function(){this.media?(s(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),s(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&s(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=r("div",{"class":this.config.classNames.video}),rn(this.media,this.elements.wrapper),this.elements.poster=r("div",{"class":this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?rr.extend.call(this):this.isYouTube?nh.setup.call(this):this.isVimeo&&gs.setup.call(this)):this.debug.warn("No media element found!")}},vst=function(){function t(n){var i=this;gi(this,t);this.player=n;this.config=n.config.ads;this.playing=!1;this.initialized=!1;this.elements={container:null,displayContainer:null};this.manager=null;this.loader=null;this.cuePoints=null;this.events={};this.safetyTimer=null;this.countdownTimer=null;this.managerPromise=new Promise(function(n,t){i.on("loaded",n);i.on("error",t)});this.load()}return nr(t,[{key:"load",value:function(){var t=this;this.enabled&&(n.object(window.google)&&n.object(window.google.ima)?this.ready():dv(this.player.config.urls.googleIMA.sdk).then(function(){t.ready()}).catch(function(){t.trigger("error",new Error("Google IMA SDK failed to load"))}))}},{key:"ready",value:function(){var n,t=this;this.enabled||((n=this).manager&&n.manager.destroy(),n.elements.displayContainer&&n.elements.displayContainer.destroy(),n.elements.container.remove());this.startSafetyTimer(12e3,"ready()");this.managerPromise.then(function(){t.clearSafetyTimer("onAdsManagerLoaded()")});this.listeners();this.setupIMA()}},{key:"setupIMA",value:function(){this.elements.container=r("div",{"class":this.player.config.classNames.ads});this.player.elements.container.appendChild(this.elements.container);google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED);google.ima.settings.setLocale(this.player.config.ads.language);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline);this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media);this.requestAds()}},{key:"requestAds",value:function(){var i=this,t=this.player.elements.container,n;try{this.loader=new google.ima.AdsLoader(this.elements.displayContainer);this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(n){return i.onAdsManagerLoaded(n)},!1);this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(n){return i.onAdError(n)},!1);n=new google.ima.AdsRequest;n.adTagUrl=this.tagUrl;n.linearAdSlotWidth=t.offsetWidth;n.linearAdSlotHeight=t.offsetHeight;n.nonLinearAdSlotWidth=t.offsetWidth;n.nonLinearAdSlotHeight=t.offsetHeight;n.forceNonLinearFullSlot=!1;n.setAdWillPlayMuted(!this.player.muted);this.loader.requestAds(n)}catch(i){this.onAdError(i)}}},{key:"pollCountdown",value:function(){var n=this;if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]))return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(function(){var t=ks(Math.max(n.manager.getRemainingTime(),0)),i="".concat(ut("advertisement",n.player.config)," - ").concat(t);n.elements.container.setAttribute("data-badge-text",i)},100)}},{key:"onAdsManagerLoaded",value:function(n){var i=this,t;this.enabled&&(t=new google.ima.AdsRenderingSettings,t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=n.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(n){return i.onAdError(n)}),Object.keys(google.ima.AdEvent.Type).forEach(function(n){i.manager.addEventListener(google.ima.AdEvent.Type[n],function(n){return i.onAdEvent(n)})}),this.trigger("loaded"))}},{key:"addCuePoints",value:function(){var t=this;n.empty(this.cuePoints)||this.cuePoints.forEach(function(i){var u,e,f;0!==i&&-1!==i&&i<t.player.duration&&(u=t.player.elements.progress,n.element(u)&&(e=100/t.player.duration*i,f=r("span",{"class":t.player.config.classNames.cues}),f.style.left="".concat(e.toString(),"%"),u.appendChild(f)))})}},{key:"onAdEvent",value:function(n){var i=this,r=this.player.elements.container,t=n.getAd(),f=n.getAdData();switch(function(n){u.call(i.player,i.player.media,"ads".concat(n.replace(/_/g,"").toLowerCase()))}(n.type),n.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded");this.pollCountdown(!0);t.isLinear()||(t.width=r.offsetWidth,t.height=r.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.loadAds();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown();this.resumeContent();break;case google.ima.AdEvent.Type.LOG:f.adError&&this.player.debug.warn("Non-fatal ad error: ".concat(f.adError.getMessage()))}}},{key:"onAdError",value:function(n){this.cancel();this.player.debug.warn("Ads error",n)}},{key:"listeners",value:function(){var i,t=this,r=this.player.elements.container;this.player.on("canplay",function(){t.addCuePoints()});this.player.on("ended",function(){t.loader.contentComplete()});this.player.on("timeupdate",function(){i=t.player.currentTime});this.player.on("seeked",function(){var r=t.player.currentTime;n.empty(t.cuePoints)||t.cuePoints.forEach(function(n,u){i<n&&n<r&&(t.manager.discardAdBreak(),t.cuePoints.splice(u,1))})});window.addEventListener("resize",function(){t.manager&&t.manager.resize(r.offsetWidth,r.offsetHeight,google.ima.ViewMode.NORMAL)})}},{key:"play",value:function(){var n=this,t=this.player.elements.container;this.managerPromise||this.resumeContent();this.managerPromise.then(function(){n.manager.setVolume(n.player.volume);n.elements.displayContainer.initialize();try{n.initialized||(n.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),n.manager.start());n.initialized=!0}catch(t){n.onAdError(t)}}).catch(function(){})}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="";this.playing=!1;this.player.media.play()}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3;this.playing=!0;this.player.media.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent();this.trigger("error");this.loadAds()}},{key:"loadAds",value:function(){var n=this;this.managerPromise.then(function(){n.manager&&n.manager.destroy();n.managerPromise=new Promise(function(t){n.on("loaded",t);n.player.debug.log(n.manager)});n.requestAds()}).catch(function(){})}},{key:"trigger",value:function(t){for(var u,e=this,r=arguments.length,f=new Array(r>1?r-1:0),i=1;i<r;i++)f[i-1]=arguments[i];u=this.events[t];n.array(u)&&u.forEach(function(t){n.function(t)&&t.apply(e,f)})}},{key:"on",value:function(t,i){return n.array(this.events[t])||(this.events[t]=[]),this.events[t].push(i),this}},{key:"startSafetyTimer",value:function(n,t){var i=this;this.player.debug.log("Safety timer invoked from: ".concat(t));this.safetyTimer=setTimeout(function(){i.cancel();i.clearSafetyTimer("startSafetyTimer()")},n)}},{key:"clearSafetyTimer",value:function(t){n.nullOrUndefined(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!n.empty(t.publisherId)||n.url(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config,i;return n.url(t.tagUrl)?t.tagUrl:(i={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:this.publisherId},"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(kn(i)))}}]),t}(),yst=bi.findIndex,stt=!0;"findIndex"in[]&&Array(1).findIndex(function(){stt=!1});e({target:"Array",proto:!0,forced:stt},{findIndex:function(n){return yst(this,n,arguments.length>1?arguments[1]:void 0)}});su("findIndex");var htt,pst=function(){function t(n){gi(this,t);this.player=n;this.thumbnails=[];this.loaded=!1;this.lastMouseMoveTime=Date.now();this.mouseDown=!1;this.loadedImages=[];this.elements={thumb:{},scrubbing:{}};this.load()}return nr(t,[{key:"load",value:function(){var n=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled);this.enabled&&this.getThumbnails().then(function(){n.enabled&&(n.render(),n.determineContainerAutoSizing(),n.loaded=!0)})}},{key:"getThumbnails",value:function(){var t=this;return new Promise(function(i){var r=t.player.config.previewThumbnails.src,u;if(n.empty(r))throw new Error("Missing previewThumbnails.src config attribute");u=(n.string(r)?[r]:r).map(function(n){return t.getThumbnail(n)});Promise.all(u).then(function(){t.thumbnails.sort(function(n,t){return n.height-t.height});t.player.debug.log("Preview thumbnails",t.thumbnails);i()})})}},{key:"getThumbnail",value:function(t){var i=this;return new Promise(function(r){le(t).then(function(u){var s,o,f={frames:(s=u,o=[],s.split(/\r\n\r\n|\n\n|\r\r/).forEach(function(t){var i={};t.split(/\r\n|\n|\r/).forEach(function(t){var f,e,u,r;n.number(i.startTime)?!n.empty(t.trim())&&n.empty(i.text)&&(f=t.trim().split("#xywh="),e=it(f,1),(i.text=e[0],f[1])&&(u=it(f[1].split(","),4),i.x=u[0],i.y=u[1],i.w=u[2],i.h=u[3])):(r=t.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/),r&&(i.startTime=3600*Number(r[1]||0)+60*Number(r[2])+Number(r[3])+Number("0.".concat(r[4])),i.endTime=3600*Number(r[6]||0)+60*Number(r[7])+Number(r[8])+Number("0.".concat(r[9]))))});i.text&&o.push(i)}),o),height:null,urlPrefix:""},e;f.frames[0].text.startsWith("/")||f.frames[0].text.startsWith("http://")||f.frames[0].text.startsWith("https://")||(f.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));e=new Image;e.onload=function(){f.height=e.naturalHeight;f.width=e.naturalWidth;i.thumbnails.push(f);r()};e.src=f.urlPrefix+f.frames[0].text})})}},{key:"startMove",value:function(t){if(this.loaded&&n.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if("touchmove"===t.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var i=this.player.elements.progress.getBoundingClientRect(),r=100/i.width*(t.pageX-i.left);this.seekTime=this.player.media.duration*(r/100);this.seekTime<0&&(this.seekTime=0);this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1);this.mousePosX=t.pageX;this.elements.thumb.time.innerText=ks(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(n){!1!==n.button&&0!==n.button||(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var n=this;this.mouseDown=!1;Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):fv.call(this.player,this.player.media,"timeupdate",function(){n.mouseDown||n.toggleScrubbingContainer(!1)})}},{key:"listeners",value:function(){var n=this;this.player.on("play",function(){n.toggleThumbContainer(!1,!0)});this.player.on("seeked",function(){n.toggleThumbContainer(!1)});this.player.on("timeupdate",function(){n.lastTime=n.player.media.currentTime})}},{key:"render",value:function(){this.elements.thumb.container=r("div",{"class":this.player.config.classNames.previewThumbnails.thumbContainer});this.elements.thumb.imageContainer=r("div",{"class":this.player.config.classNames.previewThumbnails.imageContainer});this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var t=r("div",{"class":this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=r("span",{},"00:00");t.appendChild(this.elements.thumb.time);this.elements.thumb.container.appendChild(t);n.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container);this.elements.scrubbing.container=r("div",{"class":this.player.config.classNames.previewThumbnails.scrubbingContainer});this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}},{key:"showImageAtCurrentTime",value:function(){var t=this;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();var n=this.thumbnails[0].frames.findIndex(function(n){return t.seekTime>=n.startTime&&t.seekTime<=n.endTime}),i=n>=0,r=0;this.mouseDown||this.toggleThumbContainer(i);i&&(this.thumbnails.forEach(function(i,u){t.loadedImages.includes(i.frames[n].text)&&(r=u)}),n!==this.showingThumb&&(this.showingThumb=n,this.loadImage(r)))}},{key:"loadImage",value:function(){var o=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.showingThumb,u=this.thumbnails[r],s=u.urlPrefix,f=u.frames[t],i=u.frames[t].text,e=s+i,n;this.currentImageElement&&this.currentImageElement.dataset.filename===i?(this.showImage(this.currentImageElement,f,r,t,i,!1),this.currentImageElement.dataset.index=t,this.removeOldImages(this.currentImageElement)):(this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null),n=new Image,n.src=e,n.dataset.index=t,n.dataset.filename=i,this.showingThumbFilename=i,this.player.debug.log("Loading image: ".concat(e)),n.onload=function(){return o.showImage(n,f,r,t,i,!0)},this.loadingImage=n,this.removeOldImages(n))}},{key:"showImage",value:function(n,t,i,r,u){var f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(u,". num: ").concat(r,". qual: ").concat(i,". newimg: ").concat(f));this.setImageSizeAndOffset(n,t);f&&(this.currentImageContainer.appendChild(n),this.currentImageElement=n,this.loadedImages.includes(u)||this.loadedImages.push(u));this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(i,n,t,u))}},{key:"removeOldImages",value:function(n){var t=this;Array.from(this.currentImageContainer.children).forEach(function(i){var r,u;"img"===i.tagName.toLowerCase()&&(r=t.usingSprites?500:1e3,i.dataset.index===n.dataset.index||i.dataset.deleting||(i.dataset.deleting=!0,u=t.currentImageContainer,setTimeout(function(){u.removeChild(i);t.player.debug.log("Removing thumb: ".concat(i.dataset.filename))},r)))})}},{key:"preloadNearby",value:function(n){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise(function(r){setTimeout(function(){var f=t.thumbnails[0].frames[n].text,e,u;t.showingThumbFilename===f&&(e=i?t.thumbnails[0].frames.slice(n):t.thumbnails[0].frames.slice(0,n).reverse(),u=!1,e.forEach(function(n){var i=n.text,o,e;i===f||t.loadedImages.includes(i)||(u=!0,t.player.debug.log("Preloading thumb filename: ".concat(i)),o=t.thumbnails[0].urlPrefix+i,e=new Image,e.src=o,e.onload=function(){t.player.debug.log("Preloaded thumb filename: ".concat(i));t.loadedImages.includes(i)||t.loadedImages.push(i);r()})}),u||r())},300)})}},{key:"getHigherQuality",value:function(n,t,i,r){var u=this,f;n<this.thumbnails.length-1&&(f=t.naturalHeight,this.usingSprites&&(f=i.h),f<this.thumbContainerHeight&&setTimeout(function(){u.showingThumbFilename===r&&(u.player.debug.log("Showing higher quality thumb for: ".concat(r)),u.loadImage(n+1))},300))}},{key:"toggleThumbContainer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(i,n);!n&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,n);n||(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"determineContainerAutoSizing",value:function(){this.elements.thumb.imageContainer.clientHeight>20&&(this.sizeSpecifiedInCSS=!0)}},{key:"setThumbContainerSizeAndPos",value:function(){if(!this.sizeSpecifiedInCSS){var n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px");this.elements.thumb.imageContainer.style.width="".concat(n,"px")}this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var t=this.player.elements.progress.getBoundingClientRect(),r=this.player.elements.container.getBoundingClientRect(),i=this.elements.thumb.container,u=r.left-t.left+10,f=r.right-t.left-i.clientWidth-10,n=this.mousePosX-t.left-i.clientWidth/2;n<u&&(n=u);n>f&&(n=f);i.style.left="".concat(n,"px")}},{key:"setScrubbingContainerSize",value:function(){this.elements.scrubbing.container.style.width="".concat(this.player.media.clientWidth,"px");this.elements.scrubbing.container.style.height="".concat(this.player.media.clientWidth/this.thumbAspectRatio,"px")}},{key:"setImageSizeAndOffset",value:function(n,t){if(this.usingSprites){var i=this.thumbContainerHeight/t.h;n.style.height="".concat(Math.floor(n.naturalHeight*i),"px");n.style.width="".concat(Math.floor(n.naturalWidth*i),"px");n.style.left="-".concat(t.x*i,"px");n.style.top="-".concat(t.y*i,"px")}}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?Math.floor(this.player.media.clientWidth/this.thumbAspectRatio):Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(n){this.mouseDown?this.currentScrubbingImageElement=n:this.currentThumbnailImageElement=n}}]),t}(),gv={insertElements:function(t,i){var r=this;n.string(i)?un(t,this.media,{src:i}):n.array(i)&&i.forEach(function(n){un(t,r.media,n)})},change:function(t){var i=this;tn(t,"sources.length")?(rr.cancelRequests.call(this),this.destroy.call(this,function(){i.options.quality=[];vi(i.media);i.media=null;n.element(i.elements.container)&&i.elements.container.removeAttribute("class");var e=t.sources,f=t.type,o=it(e,1)[0],s=o.provider,u=void 0===s?ur.html5:s,h=o.src,c="html5"===u?f:"div",l="html5"===u?{}:{src:h};Object.assign(i,{provider:u,type:f,supported:w.check(f,u,i.config.playsinline),media:r(c,l)});i.elements.container.appendChild(i.media);n.boolean(t.autoplay)&&(i.config.autoplay=t.autoplay);i.isHTML5&&(i.config.crossorigin&&i.media.setAttribute("crossorigin",""),i.config.autoplay&&i.media.setAttribute("autoplay",""),n.empty(t.poster)||(i.poster=t.poster),i.config.loop.active&&i.media.setAttribute("loop",""),i.config.muted&&i.media.setAttribute("muted",""),i.config.playsinline&&i.media.setAttribute("playsinline",""));v.addStyleHook.call(i);i.isHTML5&&gv.insertElements.call(i,"source",e);i.config.title=t.title;ott.setup.call(i);i.isHTML5&&Object.keys(t).includes("tracks")&&gv.insertElements.call(i,"track",t.tracks);(i.isHTML5||i.isEmbed&&!i.supported.ui)&&v.build.call(i);i.isHTML5&&i.media.load();i.previewThumbnails&&i.previewThumbnails.load();i.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}},ctt=function(){function i(t,u){var h=this,c,s;if(gi(this,i),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=w.touch,this.media=t,n.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||n.nodeList(this.media)||n.array(this.media))&&(this.media=this.media[0]),this.config=b({},dn,i.defaults,u||{},function(){try{return JSON.parse(h.media.getAttribute("data-plyr-config"))}catch(n){return{}}}()),this.elements={container:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new sst(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",w),!n.nullOrUndefined(this.media)&&n.element(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(w.check().api){c=this.media.cloneNode(!0);c.autoplay=!1;this.elements.original=c;var l=this.media.tagName.toLowerCase(),e=null,f=null;switch(l){case"div":if((e=this.media.querySelector("iframe"),n.element(e))?(f=bn(e.getAttribute("src")),this.provider=function(n){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(n)?ur.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(n)?ur.vimeo:null}(f.toString()),this.elements.container=this.media,this.media=e,this.elements.container.className="",f.search.length)&&(s=["1","true"],s.includes(f.searchParams.get("autoplay"))&&(this.config.autoplay=!0),s.includes(f.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=s.includes(f.searchParams.get("playsinline")),this.config.youtube.hl=f.searchParams.get("hl")):this.config.playsinline=!0):(this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider)),n.empty(this.provider)||!Object.keys(ur).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=wv.video;break;case"video":case"audio":this.type=l;this.provider=ur.html5;this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0);this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0);(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0);this.media.hasAttribute("muted")&&(this.config.muted=!0);this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=w.check(this.type,this.provider,this.config.playsinline);this.supported.api?(this.eventListeners=[],this.listeners=new hst(this),this.storage=new an(this),this.media.plyr=this,n.element(this.elements.container)||(this.elements.container=r("div",{tabindex:0}),rn(this.media,this.elements.container)),v.addStyleHook.call(this),ott.setup.call(this),this.config.debug&&o.call(this,this.elements.container,this.config.events.join(" "),function(n){h.debug.log("event: ".concat(n.type))}),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&v.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new itt(this),this.config.ads.enabled&&(this.ads=new vst(this)),this.isHTML5&&this.config.autoplay&&setTimeout(function(){return h.play()},10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new pst(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return nr(i,[{key:"play",value:function(){var t=this;return n.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(function(){return t.ads.play()}).catch(function(){return t.media.play()}),this.media.play()):null}},{key:"pause",value:function(){this.playing&&n.function(this.media.pause)&&this.media.pause()}},{key:"togglePlay",value:function(t){(n.boolean(t)?t:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):n.function(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(t){this.currentTime=this.currentTime-(n.number(t)?t:this.config.seekTime)}},{key:"forward",value:function(t){this.currentTime=this.currentTime+(n.number(t)?t:this.config.seekTime)}},{key:"increaseVolume",value:function(t){var i=this.media.muted?0:this.volume;this.volume=i+(n.number(t)?t:0)}},{key:"decreaseVolume",value:function(n){this.increaseVolume(-n)}},{key:"toggleCaptions",value:function(n){h.toggle.call(this,n,!1)}},{key:"airplay",value:function(){w.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(i){var f;if(this.supported.ui&&!this.isAudio){var e=bs(this.elements.container,this.config.classNames.hideControls),o=void 0===i?void 0:!i,r=s(this.elements.container,this.config.classNames.hideControls,o);return(r&&this.config.controls.includes("settings")&&!n.empty(this.config.settings)&&t.toggleMenu.call(this,!1),r!==e)&&(f=r?"controlshidden":"controlsshown",u.call(this,this.media,f)),!r}return!1}},{key:"on",value:function(n,t){o.call(this,this.elements.container,n,t)}},{key:"once",value:function(n,t){fv.call(this,this.elements.container,n,t)}},{key:"off",value:function(n,t){ps(this.elements.container,n,t)}},{key:"destroy",value:function(t){var i=this,f=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r;this.ready&&(r=function(){document.body.style.overflow="";i.embed=null;f?(Object.keys(i.elements).length&&(vi(i.elements.buttons.play),vi(i.elements.captions),vi(i.elements.controls),vi(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),n.function(t)&&t()):(function(){this&&this.eventListeners&&(this.eventListeners.forEach(function(n){var t=n.element,i=n.type,r=n.callback,u=n.options;t.removeEventListener(i,r,u)}),this.eventListeners=[])}.call(i),ov(i.elements.original,i.elements.container),u.call(i,i.elements.original,"destroyed",!0),n.function(t)&&t.call(i.elements.original),i.ready=!1,setTimeout(function(){i.elements=null;i.media=null},200))},this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(v.toggleNativeControls.call(this,!0),r()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&n.function(this.embed.destroy)&&this.embed.destroy(),r()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(r),setTimeout(r,200)))}},{key:"supports",value:function(n){return w.mime.call(this,n)}},{key:"isHTML5",get:function(){return this.provider===ur.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===ur.youtube}},{key:"isVimeo",get:function(){return this.provider===ur.vimeo}},{key:"isVideo",get:function(){return this.type===wv.video}},{key:"isAudio",get:function(){return this.type===wv.audio}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",set:function(t){if(this.duration){var i=n.number(t)&&t>0;this.media.currentTime=i?Math.min(t,this.duration):0;this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var t=this.media.buffered;return n.number(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var i=parseFloat(this.config.duration),t=(this.media||{}).duration,r=n.number(t)&&t!==1/0?t:0;return i||r}},{key:"volume",set:function(t){var i=t;n.string(i)&&(i=Number(i));n.number(i)||(i=this.storage.get("volume"));n.number(i)||(i=this.config.volume);i>1&&(i=1);i<0&&(i=0);this.config.volume=i;this.media.volume=i;!n.empty(t)&&this.muted&&i>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(t){var i=t;n.boolean(i)||(i=this.storage.get("muted"));n.boolean(i)||(i=this.config.muted);this.config.muted=i;this.media.muted=i},get:function(){return Boolean(this.media.muted)}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",set:function(t){var f=this,i=null,r,u;n.number(t)&&(i=t);n.number(i)||(i=this.storage.get("speed"));n.number(i)||(i=this.config.speed.selected);r=this.minimumSpeed;u=this.maximumSpeed;i=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(n,t),i)}(i,r,u);this.config.speed.selected=i;setTimeout(function(){f.media.playbackRate=i},0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,ll(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,ll(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(t){var r=this.config.quality,u=this.options.quality,i,f,e;u.length&&(i=[!n.empty(t)&&Number(t),this.storage.get("quality"),r.selected,r.default].find(n.number),f=!0,u.includes(i)||(e=function(t,i){return n.array(t)&&t.length?t.reduce(function(n,t){return Math.abs(t-i)<Math.abs(n-i)?t:n}):null}(u,i),this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(e," instead")),i=e,f=!1),r.selected=i,this.media.quality=i,f&&this.storage.set({quality:i}))},get:function(){return this.media.quality}},{key:"loop",set:function(t){var i=n.boolean(t)?t:this.config.loop.active;this.config.loop.active=i;this.media.loop=i},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(n){gv.change.call(this,n)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var t=this.config.urls.download;return n.url(t)?t:this.source},set:function(i){n.url(i)&&(this.config.urls.download=i,t.setDownloadUrl.call(this))}},{key:"poster",set:function(n){this.isVideo?v.setPoster.call(this,n,!1).catch(function(){}):this.debug.warn("Poster can only be set for video")},get:function(){return this.isVideo?this.media.getAttribute("poster"):null}},{key:"ratio",get:function(){if(!this.isVideo)return null;var t=en(lv.call(this));return n.array(t)?t.join(":"):t},set:function(t){this.isVideo?n.string(t)&&fn(t)?(this.config.ratio=t,ir.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(t,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",set:function(t){var i=n.boolean(t)?t:this.config.autoplay;this.config.autoplay=i},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(n){h.set.call(this,n,!1)},get:function(){var n=this.captions,t=n.toggled,i=n.currentTrack;return t?i:-1}},{key:"language",set:function(n){h.setLanguage.call(this,n,!1)},get:function(){return(h.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(t){if(w.pip){var i=n.boolean(t)?t:!this.pip;n.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(i?gn:"inline");n.function(this.media.requestPictureInPicture)&&(!this.pip&&i?this.media.requestPictureInPicture():this.pip&&!i&&document.exitPictureInPicture())}},get:function(){return w.pip?n.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===gn:null}}],[{key:"supported",value:function(n,t,i){return w.check(n,t,i)}},{key:"loadSprite",value:function(n,t){return vn(n,t)}},{key:"setup",value:function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return n.string(t)?r=Array.from(document.querySelectorAll(t)):n.nodeList(t)?r=Array.from(t):n.array(t)&&(r=t.filter(n.element)),n.empty(r)?null:r.map(function(n){return new i(n,u)})}}]),i}();return ctt.defaults=(htt=dn,JSON.parse(JSON.stringify(htt))),ctt}),function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};(t=function(){var t=0;return function(i,r){var f,u=this;u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(i),appendDots:n(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous<\/button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return n('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3};u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1};n.extend(u,u.initials);u.activeBreakpoint=null;u.animType=null;u.animProp=null;u.breakpoints=[];u.breakpointSettings=[];u.cssTransitions=!1;u.focussed=!1;u.interrupted=!1;u.hidden="hidden";u.paused=!0;u.positionProp=null;u.respondTo=null;u.rowCount=1;u.shouldClick=!0;u.$slider=n(i);u.$slidesCache=null;u.transformType=null;u.transitionType=null;u.visibilityChange="visibilitychange";u.windowWidth=0;u.windowTimer=null;f=n(i).data("slick")||{};u.options=n.extend({},u.defaults,r,f);u.currentSlide=u.options.initialSlide;u.originalSettings=u.options;void 0!==document.mozHidden?(u.hidden="mozHidden",u.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(u.hidden="webkitHidden",u.visibilityChange="webkitvisibilitychange");u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.changeSlide=n.proxy(u.changeSlide,u);u.clickHandler=n.proxy(u.clickHandler,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.instanceUid=t++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.registerBreakpoints();u.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})};t.prototype.addSlide=t.prototype.slickAdd=function(t,i,r){var u=this;if("boolean"==typeof i)r=i,i=null;else if(i<0||i>=u.slideCount)return!1;u.unload();"number"==typeof i?0===i&&0===u.$slides.length?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):!0===r?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("data-slick-index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateHeight=function(){var n=this,t;1===n.options.slidesToShow&&!0===n.options.adaptiveHeight&&!1===n.options.vertical&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.animate({height:t},n.options.speed))};t.prototype.animateSlide=function(t,i){var u={},r=this;r.animateHeight();!0===r.options.rtl&&!1===r.options.vertical&&(t=-t);!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){n=Math.ceil(n);!1===r.options.vertical?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}})):(r.applyTransition(),t=Math.ceil(t),u[r.animType]=!1===r.options.vertical?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=n(t).not(this.$slider)),t};t.prototype.asNavFor=function(t){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=n(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=!1===t.options.fade?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayClear();n.slideCount>n.options.slidesToShow&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this,t=n.currentSlide+n.options.slidesToScroll;n.paused||n.interrupted||n.focussed||(!1===n.options.infinite&&(1===n.direction&&n.currentSlide+1===n.slideCount-1?n.direction=0:0===n.direction&&(t=n.currentSlide-n.options.slidesToScroll,n.currentSlide-1==0&&(n.direction=1))),n.slideHandler(t))};t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=n(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=n(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))};t.prototype.buildDots=function(){var i,r,t=this;if(!0===t.options.dots&&t.slideCount>t.options.slidesToShow){for(t.$slider.addClass("slick-dotted"),r=n("<ul />").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)r.append(n("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=r.appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("data-slick-index",t).data("originalStyling",n(i).attr("style")||"")});t.$slider.addClass("slick-slider");t.$slideTrack=0===t.slideCount?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1);n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);!0===t.options.draggable&&t.$list.addClass("draggable")};t.prototype.buildRows=function(){var t,i,r,f,c,u,e,n=this,o,s,h;if(f=document.createDocumentFragment(),u=n.$slider.children(),n.options.rows>0){for(e=n.options.slidesPerRow*n.options.rows,c=Math.ceil(u.length/e),t=0;t<c;t++){for(o=document.createElement("div"),i=0;i<n.options.rows;i++){for(s=document.createElement("div"),r=0;r<n.options.slidesPerRow;r++)h=t*e+(i*n.options.slidesPerRow+r),u.get(h)&&s.appendChild(u.get(h));o.appendChild(s)}f.appendChild(o)}n.$slider.empty().append(f);n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}};t.prototype.checkResponsive=function(t,i){var f,u,e,r=this,o=!1,s=r.$slider.width(),h=window.innerWidth||n(window).width();if("window"===r.respondTo?e=h:"slider"===r.respondTo?e=s:"min"===r.respondTo&&(e=Math.min(h,s)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(f in u=null,r.breakpoints)r.breakpoints.hasOwnProperty(f)&&(!1===r.originalSettings.mobileFirst?e<r.breakpoints[f]&&(u=r.breakpoints[f]):e>r.breakpoints[f]&&(u=r.breakpoints[f]));null!==u?null!==r.activeBreakpoint?(u!==r.activeBreakpoint||i)&&(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t),o=u);t||!1===o||r.$slider.trigger("breakpoint",[r,o])}};t.prototype.changeSlide=function(t,i){var f,e,r=this,u=n(t.currentTarget),o;switch(u.is("a")&&t.preventDefault(),u.is("li")||(u=u.closest("li")),f=r.slideCount%r.options.slidesToScroll!=0?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":e=0===f?r.options.slidesToScroll:r.options.slidesToShow-f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-e,!1,i);break;case"next":e=0===f?r.options.slidesToScroll:f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+e,!1,i);break;case"index":o=0===t.data.index?0:t.data.index||u.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(o),!1,i);u.children().trigger("focus");break;default:return}};t.prototype.checkNavigable=function(n){var t,i,r;if(i=0,n>(t=this.getNavigableIndexes())[t.length-1])n=t[t.length-1];else for(r in t){if(n<t[r]){n=i;break}i=t[r]}return n};t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(n("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",n.proxy(t.interrupt,t,!0)).off("mouseleave.slick",n.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler));t.$slider.off("focus.slick blur.slick");!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler)));t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler);t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler);t.$list.off("touchend.slick mouseup.slick",t.swipeHandler);t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler);t.$list.off("click.slick",t.clickHandler);n(document).off(t.visibilityChange,t.visibility);t.cleanUpSlideEvents();!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler);!0===t.options.focusOnSelect&&n(t.$slideTrack).children().off("click.slick",t.selectHandler);n(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange);n(window).off("resize.slick.slick-"+t.instanceUid,t.resize);n("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault);n(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",n.proxy(t.interrupt,t,!0));t.$list.off("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.cleanUpRows=function(){var t,n=this;n.options.rows>0&&((t=n.$slides.children().children()).removeAttr("style"),n.$slider.empty().append(t))};t.prototype.clickHandler=function(n){!1===this.shouldClick&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())};t.prototype.destroy=function(t){var i=this;i.autoPlayClear();i.touchObject={};i.cleanUpEvents();n(".slick-cloned",i.$slider).detach();i.$dots&&i.$dots.remove();i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove());i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove());i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){n(this).attr("style",n(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides));i.cleanUpRows();i.$slider.removeClass("slick-slider");i.$slider.removeClass("slick-initialized");i.$slider.removeClass("slick-dotted");i.unslicked=!0;t||i.$slider.trigger("destroy",[i])};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(n).css({zIndex:i.options.zIndex}),i.$slides.eq(n).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(n),i.$slides.eq(n).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(n);t.call()},i.options.speed))};t.prototype.fadeSlideOut=function(n){var t=this;!1===t.cssTransitions?t.$slides.eq(n).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(n),t.$slides.eq(n).css({opacity:0,zIndex:t.options.zIndex-2}))};t.prototype.filterSlides=t.prototype.slickFilter=function(n){var t=this;null!==n&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(){var i=n(this);setTimeout(function(){t.options.pauseOnFocus&&i.is(":focus")&&(t.focussed=!0,t.autoPlay())},0)}).on("blur.slick","*",function(){n(this);t.options.pauseOnFocus&&(t.focussed=!1,t.autoPlay())})};t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide};t.prototype.getDotCount=function(){var n=this,i=0,r=0,t=0;if(!0===n.options.infinite)if(n.slideCount<=n.options.slidesToShow)++t;else for(;i<n.slideCount;)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else if(!0===n.options.centerMode)t=n.slideCount;else if(n.options.asNavFor)for(;i<n.slideCount;)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else t=1+Math.ceil((n.slideCount-n.options.slidesToShow)/n.options.slidesToScroll);return t-1};t.prototype.getLeft=function(n){var f,r,i,e,t=this,u=0;return t.slideOffset=0,r=t.$slides.first().outerHeight(!0),!0===t.options.infinite?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,e=-1,!0===t.options.vertical&&!0===t.options.centerMode&&(2===t.options.slidesToShow?e=-1.5:1===t.options.slidesToShow&&(e=-2)),u=r*t.options.slidesToShow*e),t.slideCount%t.options.slidesToScroll!=0&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(n>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(n-t.slideCount))*t.slideWidth*-1,u=(t.options.slidesToShow-(n-t.slideCount))*r*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,u=t.slideCount%t.options.slidesToScroll*r*-1))):n+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(n+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(n+t.options.slidesToShow-t.slideCount)*r),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),!0===t.options.centerMode&&t.slideCount<=t.options.slidesToShow?t.slideOffset=t.slideWidth*Math.floor(t.options.slidesToShow)/2-t.slideWidth*t.slideCount/2:!0===t.options.centerMode&&!0===t.options.infinite?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:!0===t.options.centerMode&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),f=!1===t.options.vertical?n*t.slideWidth*-1+t.slideOffset:n*r*-1+u,!0===t.options.variableWidth&&(i=t.slideCount<=t.options.slidesToShow||!1===t.options.infinite?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow),f=!0===t.options.rtl?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===t.options.centerMode&&(i=t.slideCount<=t.options.slidesToShow||!1===t.options.infinite?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow+1),f=!0===t.options.rtl?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,f+=(t.$list.width()-i.outerWidth())/2)),f};t.prototype.getOption=t.prototype.slickGetOption=function(n){return this.options[n]};t.prototype.getNavigableIndexes=function(){var i,n=this,t=0,r=0,u=[];for(!1===n.options.infinite?i=n.slideCount:(t=-1*n.options.slidesToScroll,r=-1*n.options.slidesToScroll,i=2*n.slideCount);t<i;)u.push(t),t=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return u};t.prototype.getSlick=function(){return this};t.prototype.getSlideCount=function(){var i,r,u,t=this;return u=!0===t.options.centerMode?Math.floor(t.$list.width()/2):0,r=-1*t.swipeLeft+u,!0===t.options.swipeToSlide?(t.$slideTrack.find(".slick-slide").each(function(u,f){var e,o;if(e=n(f).outerWidth(),o=f.offsetLeft,!0!==t.options.centerMode&&(o+=e/2),r<o+e)return i=f,!1}),Math.abs(n(i).attr("data-slick-index")-t.currentSlide)||1):t.options.slidesToScroll};t.prototype.goTo=t.prototype.slickGoTo=function(n,t){this.changeSlide({data:{message:"index",index:parseInt(n)}},t)};t.prototype.init=function(t){var i=this;n(i.$slider).hasClass("slick-initialized")||(n(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler());t&&i.$slider.trigger("init",[i]);!0===i.options.accessibility&&i.initADA();i.options.autoplay&&(i.paused=!1,i.autoPlay())};t.prototype.initADA=function(){var t=this,f=Math.ceil(t.slideCount/t.options.slidesToShow),r=t.getNavigableIndexes().filter(function(n){return n>=0&&n<t.slideCount}),i,u;for(t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){var f=r.indexOf(i),u;(n(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+i,tabindex:-1}),-1!==f)&&(u="slick-slide-control"+t.instanceUid+f,n("#"+u).length&&n(this).attr({"aria-describedby":u}))}),t.$dots.attr("role","tablist").find("li").each(function(i){var u=r[i];n(this).attr({role:"presentation"});n(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+i,"aria-controls":"slick-slide"+t.instanceUid+u,"aria-label":i+1+" of "+f,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end()),i=t.currentSlide,u=i+t.options.slidesToShow;i<u;i++)t.options.focusOnChange?t.$slides.eq(i).attr({tabindex:"0"}):t.$slides.eq(i).removeAttr("tabindex");t.activateADA()};t.prototype.initArrowEvents=function(){var n=this;!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},n.changeSlide),n.$nextArrow.off("click.slick").on("click.slick",{message:"next"},n.changeSlide),!0===n.options.accessibility&&(n.$prevArrow.on("keydown.slick",n.keyHandler),n.$nextArrow.on("keydown.slick",n.keyHandler)))};t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler));!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&n("li",t.$dots).on("mouseenter.slick",n.proxy(t.interrupt,t,!0)).on("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",n.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",n.proxy(t.interrupt,t,!1)))};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.initSlideEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);t.$list.on("click.slick",t.clickHandler);n(document).on(t.visibilityChange,n.proxy(t.visibility,t));!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler);!0===t.options.focusOnSelect&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,n.proxy(t.orientationChange,t));n(window).on("resize.slick.slick-"+t.instanceUid,n.proxy(t.resize,t));n("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault);n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(t.setPosition)};t.prototype.initUI=function(){var n=this;!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());!0===n.options.dots&&n.slideCount>n.options.slidesToShow&&n.$dots.show()};t.prototype.keyHandler=function(n){var t=this;n.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===n.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===n.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))};t.prototype.lazyLoad=function(){function f(i){n("img[data-lazy]",i).each(function(){var i=n(this),r=n(this).attr("data-lazy"),f=n(this).attr("data-srcset"),e=n(this).attr("data-sizes")||t.$slider.attr("data-sizes"),u=document.createElement("img");u.onload=function(){i.animate({opacity:0},100,function(){f&&(i.attr("srcset",f),e&&i.attr("sizes",e));i.attr("src",r).animate({opacity:1},200,function(){i.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")});t.$slider.trigger("lazyLoaded",[t,i,r])})};u.onerror=function(){i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");t.$slider.trigger("lazyLoadError",[t,i,r])};u.src=r})}var u,i,r,t=this;if(!0===t.options.centerMode?!0===t.options.infinite?r=(i=t.currentSlide+(t.options.slidesToShow/2+1))+t.options.slidesToShow+2:(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),r=t.options.slidesToShow/2+1+2+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,r=Math.ceil(i+t.options.slidesToShow),!0===t.options.fade&&(i>0&&i--,r<=t.slideCount&&r++)),u=t.$slider.find(".slick-slide").slice(i,r),"anticipated"===t.options.lazyLoad)for(var e=i-1,o=r,s=t.$slider.find(".slick-slide"),h=0;h<t.options.slidesToScroll;h++)e<0&&(e=t.slideCount-1),u=(u=u.add(s.eq(e))).add(s.eq(o)),e--,o++;f(u);t.slideCount<=t.options.slidesToShow?f(t.$slider.find(".slick-slide")):t.currentSlide>=t.slideCount-t.options.slidesToShow?f(t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow)):0===t.currentSlide&&f(t.$slider.find(".slick-cloned").slice(-1*t.options.slidesToShow))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();"progressive"===n.options.lazyLoad&&n.progressiveLazyLoad()};t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})};t.prototype.orientationChange=function(){this.checkResponsive();this.setPosition()};t.prototype.pause=t.prototype.slickPause=function(){this.autoPlayClear();this.paused=!0};t.prototype.play=t.prototype.slickPlay=function(){var n=this;n.autoPlay();n.options.autoplay=!0;n.paused=!1;n.focussed=!1;n.interrupted=!1};t.prototype.postSlide=function(t){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,t]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&n(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))};t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})};t.prototype.preventDefault=function(n){n.preventDefault()};t.prototype.progressiveLazyLoad=function(t){t=t||1;var r,u,f,e,o,i=this,s=n("img[data-lazy]",i.$slider);s.length?(r=s.first(),u=r.attr("data-lazy"),f=r.attr("data-srcset"),e=r.attr("data-sizes")||i.$slider.attr("data-sizes"),(o=document.createElement("img")).onload=function(){f&&(r.attr("srcset",f),e&&r.attr("sizes",e));r.attr("src",u).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading");!0===i.options.adaptiveHeight&&i.setPosition();i.$slider.trigger("lazyLoaded",[i,r,u]);i.progressiveLazyLoad()},o.onerror=function(){t<3?setTimeout(function(){i.progressiveLazyLoad(t+1)},500):(r.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,r,u]),i.progressiveLazyLoad())},o.src=u):i.$slider.trigger("allImagesLoaded",[i])};t.prototype.refresh=function(t){var r,u,i=this;u=i.slideCount-i.options.slidesToShow;!i.options.infinite&&i.currentSlide>u&&(i.currentSlide=u);i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0);r=i.currentSlide;i.destroy(!0);n.extend(i,i.initials,{currentSlide:r});i.init();t||i.changeSlide({data:{message:"index",index:r}},!1)};t.prototype.registerBreakpoints=function(){var u,f,i,t=this,r=t.options.responsive||null;if("array"===n.type(r)&&r.length){for(u in t.respondTo=t.options.respondTo||"window",r)if(i=t.breakpoints.length-1,r.hasOwnProperty(u)){for(f=r[u].breakpoint;i>=0;)t.breakpoints[i]&&t.breakpoints[i]===f&&t.breakpoints.splice(i,1),i--;t.breakpoints.push(f);t.breakpointSettings[f]=r[u].settings}t.breakpoints.sort(function(n,i){return t.options.mobileFirst?n-i:i-n})}};t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide");t.slideCount=t.$slides.length;t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll);t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0);t.registerBreakpoints();t.setProps();t.setupInfinite();t.buildArrows();t.updateArrows();t.initArrowEvents();t.buildDots();t.updateDots();t.initDotEvents();t.cleanUpSlideEvents();t.initSlideEvents();t.checkResponsive(!1,!0);!0===t.options.focusOnSelect&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);t.setPosition();t.focusHandler();t.paused=!t.options.autoplay;t.autoPlay();t.$slider.trigger("reInit",[t])};t.prototype.resize=function(){var t=this;n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.unslicked||t.setPosition()},50))};t.prototype.removeSlide=t.prototype.slickRemove=function(n,t,i){var r=this;if(n="boolean"==typeof n?!0===(t=n)?0:r.slideCount-1:!0===t?--n:n,r.slideCount<1||n<0||n>r.slideCount-1)return!1;r.unload();!0===i?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(n).remove();r.$slides=r.$slideTrack.children(this.options.slide);r.$slideTrack.children(this.options.slide).detach();r.$slideTrack.append(r.$slides);r.$slidesCache=r.$slides;r.reinit()};t.prototype.setCSS=function(n){var r,u,t=this,i={};!0===t.options.rtl&&(n=-n);r="left"==t.positionProp?Math.ceil(n)+"px":"0px";u="top"==t.positionProp?Math.ceil(n)+"px":"0px";i[t.positionProp]=n;!1===t.transformsEnabled?t.$slideTrack.css(i):(i={},!1===t.cssTransitions?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var n=this,t;!1===n.options.vertical?!0===n.options.centerMode&&n.$list.css({padding:"0px "+n.options.centerPadding}):(n.$list.height(n.$slides.first().outerHeight(!0)*n.options.slidesToShow),!0===n.options.centerMode&&n.$list.css({padding:n.options.centerPadding+" 0px"}));n.listWidth=n.$list.width();n.listHeight=n.$list.height();!1===n.options.vertical&&!1===n.options.variableWidth?(n.slideWidth=Math.ceil(n.listWidth/n.options.slidesToShow),n.$slideTrack.width(Math.ceil(n.slideWidth*n.$slideTrack.children(".slick-slide").length))):!0===n.options.variableWidth?n.$slideTrack.width(5e3*n.slideCount):(n.slideWidth=Math.ceil(n.listWidth),n.$slideTrack.height(Math.ceil(n.$slides.first().outerHeight(!0)*n.$slideTrack.children(".slick-slide").length)));t=n.$slides.first().outerWidth(!0)-n.$slides.first().width();!1===n.options.variableWidth&&n.$slideTrack.children(".slick-slide").width(n.slideWidth-t)};t.prototype.setFade=function(){var i,t=this;t.$slides.each(function(r,u){i=t.slideWidth*r*-1;!0===t.options.rtl?n(u).css({position:"relative",right:i,top:0,zIndex:t.options.zIndex-2,opacity:0}):n(u).css({position:"relative",left:i,top:0,zIndex:t.options.zIndex-2,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})};t.prototype.setHeight=function(){var n=this,t;1===n.options.slidesToShow&&!0===n.options.adaptiveHeight&&!1===n.options.vertical&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.css("height",t))};t.prototype.setOption=t.prototype.slickSetOption=function(){var u,f,e,i,r,t=this,o=!1;if("object"===n.type(arguments[0])?(e=arguments[0],o=arguments[1],r="multiple"):"string"===n.type(arguments[0])&&(e=arguments[0],i=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===n.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)t.options[e]=i;else if("multiple"===r)n.each(e,function(n,i){t.options[n]=i});else if("responsive"===r)for(f in i)if("array"!==n.type(t.options.responsive))t.options.responsive=[i[f]];else{for(u=t.options.responsive.length-1;u>=0;)t.options.responsive[u].breakpoint===i[f].breakpoint&&t.options.responsive.splice(u,1),u--;t.options.responsive.push(i[f])}o&&(t.unload(),t.reinit())};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.setHeight();!1===n.options.fade?n.setCSS(n.getLeft(n.currentSlide)):n.setFade();n.$slider.trigger("setPosition",[n])};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=!0===n.options.vertical?"top":"left";"top"===n.positionProp?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===n.options.useCSS&&(n.cssTransitions=!0);n.options.fade&&("number"==typeof n.options.zIndex?n.options.zIndex<3&&(n.options.zIndex=3):n.options.zIndex=n.defaults.zIndex);void 0!==t.OTransform&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.MozTransform&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(n.animType=!1));void 0!==t.webkitTransform&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.msTransform&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",void 0===t.msTransform&&(n.animType=!1));void 0!==t.transform&&!1!==n.animType&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=n.options.useTransform&&null!==n.animType&&!1!==n.animType};t.prototype.setSlideClasses=function(n){var u,i,r,f,t=this,e;(i=t.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),t.$slides.eq(n).addClass("slick-current"),!0===t.options.centerMode)?(e=t.options.slidesToShow%2==0?1:0,u=Math.floor(t.options.slidesToShow/2),!0===t.options.infinite&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u+e,n+u+1).addClass("slick-active").attr("aria-hidden","false"):(r=t.options.slidesToShow+n,i.slice(r-u+1+e,r+u+2).addClass("slick-active").attr("aria-hidden","false")),0===n?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=t.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(f=t.slideCount%t.options.slidesToShow,r=!0===t.options.infinite?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active").attr("aria-hidden","false"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==t.options.lazyLoad&&"anticipated"!==t.options.lazyLoad||t.lazyLoad()};t.prototype.setupInfinite=function(){var i,r,u,t=this;if(!0===t.options.fade&&(t.options.centerMode=!1),!0===t.options.infinite&&!1===t.options.fade&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=!0===t.options.centerMode?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;i<u+t.slideCount;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.interrupt=function(n){n||this.autoPlay();this.interrupted=n};t.prototype.selectHandler=function(t){var i=this,u=n(t.target).is(".slick-slide")?n(t.target):n(t.target).parents(".slick-slide"),r=parseInt(u.attr("data-slick-index"));r||(r=0);i.slideCount<=i.options.slidesToShow?i.slideHandler(r,!1,!0):i.slideHandler(r)};t.prototype.slideHandler=function(n,t,i){var u,f,s,e,h,o,r=this;if(t=t||!1,!(!0===r.animating&&!0===r.options.waitForAnimate||!0===r.options.fade&&r.currentSlide===n))if(!1===t&&r.asNavFor(n),u=n,h=r.getLeft(u),e=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?e:r.swipeLeft,!1===r.options.infinite&&!1===r.options.centerMode&&(n<0||n>r.getDotCount()*r.options.slidesToScroll))!1===r.options.fade&&(u=r.currentSlide,!0!==i&&r.slideCount>r.options.slidesToShow?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u));else if(!1===r.options.infinite&&!0===r.options.centerMode&&(n<0||n>r.slideCount-r.options.slidesToScroll))!1===r.options.fade&&(u=r.currentSlide,!0!==i&&r.slideCount>r.options.slidesToShow?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u));else{if(r.options.autoplay&&clearInterval(r.autoPlayTimer),f=u<0?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+u:u>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:u-r.slideCount:u,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,f]),s=r.currentSlide,r.currentSlide=f,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(o=(o=r.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(r.currentSlide),r.updateDots(),r.updateArrows(),!0===r.options.fade)return!0!==i?(r.fadeSlideOut(s),r.fadeSlide(f,function(){r.postSlide(f)})):r.postSlide(f),void r.animateHeight();!0!==i&&r.slideCount>r.options.slidesToShow?r.animateSlide(h,function(){r.postSlide(f)}):r.postSlide(f)}};t.prototype.startLoad=function(){var n=this;!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());!0===n.options.dots&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),(n=Math.round(180*u/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0?!1===t.options.rtl?"left":"right":n<=360&&n>=315?!1===t.options.rtl?"left":"right":n>=135&&n<=225?!1===t.options.rtl?"right":"left":!0===t.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"};t.prototype.swipeEnd=function(){var t,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount();n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount();n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==n.type.indexOf("mouse")))switch(t.touchObject.fingerCount=n.originalEvent&&void 0!==n.originalEvent.touches?n.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}};t.prototype.swipeMove=function(n){var f,e,r,u,i,o,t=this;return i=void 0!==n.originalEvent?n.originalEvent.touches:null,!(!t.dragging||t.scrolling||i&&1!==i.length)&&(f=t.getLeft(t.currentSlide),t.touchObject.curX=void 0!==i?i[0].pageX:n.clientX,t.touchObject.curY=void 0!==i?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),o=Math.round(Math.sqrt(Math.pow(t.touchObject.curY-t.touchObject.startY,2))),!t.options.verticalSwiping&&!t.swiping&&o>4?(t.scrolling=!0,!1):(!0===t.options.verticalSwiping&&(t.touchObject.swipeLength=o),e=t.swipeDirection(),void 0!==n.originalEvent&&t.touchObject.swipeLength>4&&(t.swiping=!0,n.preventDefault()),u=(!1===t.options.rtl?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),!0===t.options.verticalSwiping&&(u=t.touchObject.curY>t.touchObject.startY?1:-1),r=t.touchObject.swipeLength,t.touchObject.edgeHit=!1,!1===t.options.infinite&&(0===t.currentSlide&&"right"===e||t.currentSlide>=t.getDotCount()&&"left"===e)&&(r=t.touchObject.swipeLength*t.options.edgeFriction,t.touchObject.edgeHit=!0),t.swipeLeft=!1===t.options.vertical?f+r*u:f+r*(t.$list.height()/t.listWidth)*u,!0===t.options.verticalSwiping&&(t.swipeLeft=f+r*u),!0!==t.options.fade&&!1!==t.options.touchMove&&(!0===t.animating?(t.swipeLeft=null,!1):void t.setCSS(t.swipeLeft))))};t.prototype.swipeStart=function(n){var i,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==n.originalEvent&&void 0!==n.originalEvent.touches&&(i=n.originalEvent.touches[0]);t.touchObject.startX=t.touchObject.curX=void 0!==i?i.pageX:n.clientX;t.touchObject.startY=t.touchObject.curY=void 0!==i?i.pageY:n.clientY;t.dragging=!0};t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var n=this;null!==n.$slidesCache&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove();t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove();t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};t.prototype.unslick=function(n){var t=this;t.$slider.trigger("unslick",[t,n]);t.destroy()};t.prototype.updateArrows=function(){var n=this;Math.floor(n.options.slidesToShow/2);!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&!n.options.infinite&&(n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===n.currentSlide?(n.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&!1===n.options.centerMode?(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-1&&!0===n.options.centerMode&&(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))};t.prototype.updateDots=function(){var n=this;null!==n.$dots&&(n.$dots.find("li").removeClass("slick-active").end(),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active"))};t.prototype.visibility=function(){var n=this;n.options.autoplay&&(n.interrupted=document[n.hidden]?!0:!1)};n.fn.slick=function(){for(var u,i=this,r=arguments[0],f=Array.prototype.slice.call(arguments,1),e=i.length,n=0;n<e;n++)if("object"==typeof r||void 0===r?i[n].slick=new t(i[n],r):u=i[n].slick[r].apply(i[n].slick,f),void 0!==u)return u;return i}}),function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};t.m=n;t.c=i;t.p="";t(0)}([function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}var f=r(i(1)),u=r(i(2)),e=r(i(3)),o=r(i(4)),s=r(i(6)),h=r(i(7)),c=r(i(9)),l=r(i(10)),a=r(i(11)),v=r(i(12)),y=r(i(13)),p=r(i(14)),w=r(i(15)),b=$(window),k=$(document),d=$("html");k.ready(function(){f.default.init();u.default.init();e.default.init();o.default.init();s.default.init();h.default.init();c.default.init();l.default.init();a.default.init();v.default.init();y.default.init();p.default.init();w.default.init()});b.on("load",function(){d.addClass("loaded");u.default.init()})},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={init:function(){("ontouchstart"in window||navigator.msMaxTouchPoints>0)&&window.matchMedia("screen and (max-width: 1024px)").matches?$("html").addClass("touch"):$("html").addClass("no-touch")}};t.default=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={$parentElement:$(".js-equal-heights"),itemsClass:".js-equal-heights-item",init:function(){this.setHeights()},setHeights:function(){var n=this;this.$parentElement.each(function(t,i){var e=$(i),o=$(window).width(),f=0,u,r,h,c,s,l,v,a;switch(!0){case o>1024:f=parseInt(e.attr("data-equal-desk"));break;case o>768&&o<=1024:f=parseInt(e.attr("data-equal-tablet"));break;case o<=768:f=parseInt(e.attr("data-equal-phone"));break;default:f=parseInt(e.attr("data-equal-desk"))}if(u=e.find(n.itemsClass),u.length>0)if(u.height(""),r=0,f){for(h=[];u.length>0;)h.push(u.splice(0,f));for(c=0;c<h.length;c+=1){for(s=h[c],r=0,l=0;l<s.length;l+=1)v=$(s[l]).outerHeight(!0),v>r&&(r=v);for(a=0;a<s.length;a+=1)$(s[a]).css("height",r)}}else u.each(function(){var n=$(this).outerHeight(!0);n>r&&(r=n)}),o>767&&u.css("height",r)})}};t.default=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={selector:$(".js-slider"),init:function(){this.selector.slick()}};t.default=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=(r=i(5))&&r.__esModule?r:{"default":r},f={$navBtn:$(".js-nav-toggle"),$navItems:$(".nav__has-children"),$navhasChildren:$(".nav__item.nav__has-children"),$navLink:$(".nav__has-children .nav__link"),$navSecLink:$(".nav__has-children .nav__secondary-link"),$navSecItem:$(".nav__secondary-item"),$navSecList:$(".nav__secondary-list"),$header:$(".header"),$window:$(window),$body:$("body"),navOpened:"header--opened",navItemOpened:"nav__item--opened",init:function(){this.logoutExpand();(window.innerWidth?window.innerWidth:this.$window.width())<1200?this.bindClickEvents():this.isMegamenu()},bindClickEvents:function(){var n=this;this.$navBtn.on("click",function(){n.navToggle()});this.$navLink.length&&this.$navhasChildren.on("click",function(t){var i=$(t.currentTarget);$(t.target).hasClass("nav__link")||$(t.target).hasClass("nav__secondary-item")||n.navItemToggle(i)});this.$navSecLink.length&&this.$navSecItem.on("click",function(t){var i=$(t.currentTarget);$(t.target).hasClass("nav__secondary-link")||n.navSecItemToggle(i)})},navToggle:function(){this.$header.toggleClass(this.navOpened);this.$header.hasClass(this.navOpened)?u.default.disableScroll():u.default.enableScroll()},navItemToggle:function(n){n.toggleClass(this.navItemOpened);this.$navItems.not(n).removeClass(this.navItemOpened);this.$navSecList.hasClass(this.navItemOpened)||this.$navSecItem.removeClass(this.navItemOpened)},navSecItemToggle:function(n){n.toggleClass(this.navItemOpened);this.$navSecItem.not(n).removeClass(this.navItemOpened)},isMegamenu:function(){$(".nav__secondary-list").length;$(".nav__secondary-list:not(:has(ul))").addClass("nav__secondary-list--dropdown");this.$navSecList.each(function(){var n=$(this);n.children().length<3&&n.addClass("nav__secondary-list--small")})},logoutExpand:function(){$("html").hasClass("no-touch")?($(".header__logout").on("mouseenter",function(){$(this).find(".header__logout-list").addClass("header__logout-list--show")}),$(".header__logout").on("mouseleave",function(){$(this).find(".header__logout-list").removeClass("header__logout-list--show")})):$(".header__logout-btn").on("click",function(){$(this).parent().find(".header__logout-list").toggle()})}};t.default=f},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={$body:$("body"),$window:$(window),scrollDisabled:"scroll-disabled",topScroll:0,isScrollDisabled:!1,disableScroll:function(){this.isScrollDisabled||(this.topScroll=this.$window.scrollTop(),this.$body.css("top",-this.topScroll+"px").addClass(this.scrollDisabled),this.isScrollDisabled=!0)},enableScroll:function(){this.$body.removeAttr("style").removeClass(this.scrollDisabled);this.$window.scrollTop(this.topScroll);this.isScrollDisabled=!1}};t.default=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={$selector:$(".js-scroll-down"),$main:$("main"),init:function(){this.bindClickEvents()},bindClickEvents:function(){var n=this;this.$selector.on("click",function(){n.onScroll()})},onScroll:function(){$("html, body").animate({scrollTop:this.$main.offset().top+10},800)}};t.default=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=(r=i(8))&&r.__esModule?r:{"default":r},f={$video:$(".js-video"),init:function(){this.playVideo();this.$video.length>1&&this.autopauseVideo()},autopauseVideo:function(){var n=this;n.players.forEach(function(t,i){t.on("playing",function(){var t=[].concat(function(n){if(Array.isArray(n)){for(var t=0,i=Array(n.length);t<n.length;t++)i[t]=n[t];return i}return Array.from(n)}(n.players));t.splice(i,1);t.forEach(function(n){return n.pause()})})})},playVideo:function(){this.players=u.default.setup(".js-video",{autoplay:!1,autopause:!0,volume:.5})}};t.default=f},function(n,t,i){var r,u;(function(f){"use strict";var o,e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};"object"==("undefined"==typeof navigator?"undefined":e(navigator))&&(o=function(){function kr(n,t){return n(t={exports:{}},t.exports),t.exports}function ik(n){return(ik="function"==typeof Symbol&&"symbol"==e(Symbol.iterator)?function(n){return void 0===n?"undefined":e(n)}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":void 0===n?"undefined":e(n)})(n)}function nr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function rk(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function tr(n,t,i){return t&&rk(n.prototype,t),i&&rk(n,i),n}function uk(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function ft(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{u||null==i.return||i.return()}finally{if(f)throw e;}}return r}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}()}function vl(n){return function(n){if(Array.isArray(n)){for(var t=0,i=new Array(n.length);t<n.length;t++)i[t]=n[t];return i}}(n)||function(n){if(Symbol.iterator in Object(n)||"[object Arguments]"===Object.prototype.toString.call(n))return Array.from(n)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance");}()}function tn(n,t){setTimeout(function(){try{n.hidden=!0;n.offsetHeight;n.hidden=!1}catch(n){}},t)}function br(t,i,r){var f=this,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],h=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s,u;t&&"addEventListener"in t&&!n.empty(i)&&n.function(r)&&(s=i.split(" "),u=o,rn&&(u={passive:h,capture:o}),s.forEach(function(n){f&&f.eventListeners&&e&&f.eventListeners.push({element:t,type:n,callback:r,options:u});t[e?"addEventListener":"removeEventListener"](n,r,u)}))}function h(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];br.call(this,n,t,i,!0,r,u)}function ws(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];br.call(this,n,t,i,!1,r,u)}function ev(n){var u=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",f=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];br.call(this,n,t,function e(){ws(n,t,e,i,r);for(var s=arguments.length,h=new Array(s),o=0;o<s;o++)h[o]=arguments[o];f.apply(u,h)},!0,i,r)}function u(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",u=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r;n.element(t)&&!n.empty(i)&&(r=new CustomEvent(i,{bubbles:u,detail:Object.assign({},f,{plyr:this})}),t.dispatchEvent(r))}function un(n,t){return t.split(".").reduce(function(n,t){return n&&n[t]},n)}function g(){for(var i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=arguments.length,r=new Array(f>1?f-1:0),u=1;u<f;u++)r[u-1]=arguments[u];return r.length?(i=r.shift(),n.object(i)?(Object.keys(i).forEach(function(r){n.object(i[r])?(Object.keys(t).includes(r)||Object.assign(t,uk({},r,{})),g(t[r],i[r])):Object.assign(t,uk({},r,i[r]))}),g.apply(void 0,[t].concat(r))):t):t}function fn(n,t){var i=n.length?n:[n];Array.from(i).reverse().forEach(function(n,i){var r=i>0?t.cloneNode(!0):t,u=n.parentNode,f=n.nextSibling;r.appendChild(n);f?u.insertBefore(r,f):u.appendChild(r)})}function ov(t,i){n.element(t)&&!n.empty(i)&&Object.entries(i).filter(function(t){var i=ft(t,2)[1];return!n.nullOrUndefined(i)}).forEach(function(n){var i=ft(n,2),r=i[0],u=i[1];return t.setAttribute(r,u)})}function r(t,i,r){var u=document.createElement(t);return n.object(i)&&ov(u,i),n.string(r)&&(u.innerText=r),u}function en(t,i,u,f){n.element(i)&&i.appendChild(r(t,u,f))}function pi(t){n.nodeList(t)||n.array(t)?Array.from(t).forEach(pi):n.element(t)&&n.element(t.parentNode)&&t.parentNode.removeChild(t)}function bs(t){if(n.element(t))for(var i=t.childNodes.length;i>0;)t.removeChild(t.lastChild),i-=1}function sv(t,i){return n.element(i)&&n.element(i.parentNode)&&n.element(t)?(i.parentNode.replaceChild(t,i),t):null}function oi(t,i){if(!n.string(t)||n.empty(t))return{};var r={},u=g({},i);return t.split(",").forEach(function(t){var i=t.trim(),e=i.replace(".",""),f=i.replace(/[[\]]/g,"").split("="),o=ft(f,1)[0],s=f.length>1?f[1].replace(/["']/g,""):"";switch(i.charAt(0)){case".":r.class=n.string(u.class)?"".concat(u.class," ").concat(e):e;break;case"#":r.id=i.replace("#","");break;case"[":r[o]=s}}),g(u,r)}function wi(t,i){if(n.element(t)){var r=i;n.boolean(r)||(r=!t.hidden);t.hidden=r}}function c(t,i,r){if(n.nodeList(t))return Array.from(t).map(function(n){return c(n,i,r)});if(n.element(t)){var u="toggle";return void 0!==r&&(u=r?"add":"remove"),t.classList[u](i),t.classList.contains(i)}return!1}function ks(t,i){return n.element(t)&&t.classList.contains(i)}function nf(n,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(n,t)}function tf(n){return this.elements.container.querySelectorAll(n)}function it(n){return this.elements.container.querySelector(n)}function hv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.element(t)&&(t.focus({preventScroll:!0}),i&&c(t,this.config.classNames.tabFocus))}function on(t){return!!(n.array(t)||n.string(t)&&t.includes(":"))&&(n.array(t)?t:t.split(":")).map(Number).every(n.number)}function sn(t){if(!n.array(t)||!t.every(n.number))return null;var i=ft(t,2),r=i[0],u=i[1],f=function t(n,i){return 0===i?n:t(i,n%i)}(r,u);return[r/f,u/f]}function av(t){var u=function(n){return on(n)?n.split(":").map(Number):null},i=u(t),r;return(null===i&&(i=u(this.config.ratio)),null===i&&!n.empty(this.embed)&&n.array(this.embed.ratio)&&(i=this.embed.ratio),null===i&&this.isHTML5)&&(r=this.media,i=sn([r.videoWidth,r.videoHeight])),i}function rr(t){var f;if(!this.isVideo)return{};var i=av.call(this,t),u=ft(n.array(i)?i:[0,0],2),r=100/u[0]*u[1];return(this.elements.wrapper.style.paddingBottom="".concat(r,"%"),this.isVimeo&&this.supported.ui)?(f=(240-r)/4.8,this.media.style.transform="translateY(-".concat(f,"%)")):this.isHTML5&&this.elements.wrapper.classList.toggle(this.config.classNames.videoFixedRatio,null!==i),{padding:r,ratio:i}}function vv(t){return n.array(t)?t.filter(function(n,i){return t.indexOf(n)===i}):t}function wv(t){for(var r=arguments.length,u=new Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];return n.empty(t)?t:t.toString().replace(/{(\d+)}/g,function(n,t){return u[t].toString()})}function ce(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),"g"),i.toString())}function an(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()})}function ost(n){var t=document.createElement("div");return t.appendChild(n),t.innerHTML}function le(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise(function(i,r){try{var u=new XMLHttpRequest;if(!("withCredentials"in u))return;u.addEventListener("load",function(){if("text"===t)try{i(JSON.parse(u.responseText))}catch(n){i(u.responseText)}else i(u.response)});u.addEventListener("error",function(){throw new Error(u.status);});u.open("GET",n,!0);u.responseType=t;u.send()}catch(n){r(n)}})}function pn(t,i){var f,r,e,h;if(n.string(t)){var u=n.string(i),o=function(){return null!==document.getElementById(i)},s=function(n,t){n.innerHTML=t;u&&o()||document.body.insertAdjacentElement("afterbegin",n)};u&&o()||(f=yn.supported,r=document.createElement("div"),(r.setAttribute("hidden",""),u&&r.setAttribute("id",i),f)&&(e=window.localStorage.getItem("".concat("cache","-").concat(i)),null!==e&&(h=JSON.parse(e),s(r,h.content))),le(t).then(function(t){n.empty(t)||(f&&window.localStorage.setItem("".concat("cache","-").concat(i),JSON.stringify({content:t})),s(r,t))}).catch(function(){}))}}function ds(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n.number(t))return ds(null,r,u);var f=function(n){return"0".concat(n).slice(-2)},i=kn(t),e=sst(t),o=hst(t);return i=r||i>0?"".concat(i,":"):"","".concat(u&&t>0?"-":"").concat(i).concat(f(e),":").concat(f(o))}function dn(n){var t=n,i;arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||(i=document.createElement("a"),i.href=t,t=i.href);try{return new URL(t)}catch(n){return null}}function gn(t){var i=new URLSearchParams;return n.object(t)&&Object.entries(t).forEach(function(n){var t=ft(n,2),r=t[0],u=t[1];i.set(r,u)}),i}function itt(){if(this.enabled){var t=this.player.elements.buttons.fullscreen;n.element(t)&&(t.pressed=this.active);u.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0);et.isIos||function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,f=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n.element(u)){var t=tf.call(this,"button:not(:disabled), input:not(:disabled), [tabindex]"),i=t[0],r=t[t.length-1];br.call(this,this.elements.container,"keydown",function(n){if("Tab"===n.key&&9===n.keyCode){var t=document.activeElement;t!==r||n.shiftKey?t===i&&n.shiftKey&&(r.focus(),n.preventDefault()):(i.focus(),n.preventDefault())}},f,!1)}}.call(this.player,this.target,this.active)}}function rtt(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t,r,u;(i?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=i?"hidden":"",c(this.target,this.player.config.classNames.fullscreen.fallback,i),et.isIos)&&(t=document.head.querySelector('meta[name="viewport"]'),r="viewport-fit=cover",t||(t=document.createElement("meta")).setAttribute("name","viewport"),u=n.string(t.content)&&t.content.includes(r),i?(this.cleanupViewport=!u,u||(t.content+=",".concat(r))):this.cleanupViewport&&(t.content=t.content.split(",").filter(function(n){return n.trim()!==r}).join(",")));itt.call(this)}function gs(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise(function(i,r){var u=new Image,f=function(){delete u.onload;delete u.onerror;(u.naturalWidth>=t?i:r)(u)};Object.assign(u,{onload:f,onerror:f,src:n})})}function gv(n){return new Promise(function(t,i){stt(n,{success:t,error:i})})}function ae(n){n&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0);this.media.paused===n&&(this.media.paused=!n,u.call(this,this.media,n?"play":"pause"))}function ve(n){n&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0);this.media.paused===n&&(this.media.paused=!n,u.call(this,this.media,n?"play":"pause"))}var w,tu,lp,ti,wh,cf,ho,co,lo,gh,nc,oc,fw,lc,yf,bo,yc,ii,ar,ll,al,ek,ok,yl,pl,wl,sk,bl,os,hk,ck,lk,pk,ia,dk,rd,ua,tv,wg,et,rn,cv,lv,d,ur,wn,bn,t,utt,ftt,ett,ott,stt,nh;!function(){var n,t;if("undefined"!=typeof window)try{if(n=new window.CustomEvent("test",{cancelable:!0}),n.preventDefault(),!0!==n.defaultPrevented)throw new Error("Could not prevent default");}catch(n){t=function(n,t){var i,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(i=document.createEvent("CustomEvent")).initCustomEvent(n,t.bubbles,t.cancelable,t.detail),r=i.preventDefault,i.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(n){this.defaultPrevented=!0}},i};t.prototype=window.Event.prototype;window.CustomEvent=t}}();w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==f?f:"undefined"!=typeof self?self:{};var ye,rf,pe,we="object",be=function(n){return n&&n.Math==Math&&n},i=be(("undefined"==typeof globalThis?"undefined":e(globalThis))==we&&globalThis)||be(("undefined"==typeof window?"undefined":e(window))==we&&window)||be(("undefined"==typeof self?"undefined":e(self))==we&&self)||be((void 0===w?"undefined":e(w))==we&&w)||Function("return this")(),v=function(n){try{return!!n()}catch(n){return!0}},nt=!v(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),ty={}.propertyIsEnumerable,iy=Object.getOwnPropertyDescriptor,uf={f:iy&&!ty.call({1:2},1)?function(n){var t=iy(this,n);return!!t&&t.enumerable}:ty},er=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}},vtt={}.toString,at=function(n){return vtt.call(n).slice(8,-1)},ytt="".split,ke=v(function(){return!Object("z").propertyIsEnumerable(0)})?function(n){return"String"==at(n)?ytt.call(n,""):Object(n)}:Object,yt=function(n){if(null==n)throw TypeError("Can't call method on "+n);return n},pt=function(n){return ke(yt(n))},a=function(n){return"object"==(void 0===n?"undefined":e(n))?null!==n:"function"==typeof n},or=function(n,t){if(!a(n))return n;var i,r;if(t&&"function"==typeof(i=n.toString)&&!a(r=i.call(n))||"function"==typeof(i=n.valueOf)&&!a(r=i.call(n))||!t&&"function"==typeof(i=n.toString)&&!a(r=i.call(n)))return r;throw TypeError("Can't convert object to primitive value");},ptt={}.hasOwnProperty,o=function(n,t){return ptt.call(n,t)},ih=i.document,wtt=a(ih)&&a(ih.createElement),de=function(n){return wtt?ih.createElement(n):{}},ry=!nt&&!v(function(){return 7!=Object.defineProperty(de("div"),"a",{get:function(){return 7}}).a}),uy=Object.getOwnPropertyDescriptor,dr={f:nt?uy:function(n,t){if(n=pt(n),t=or(t,!0),ry)try{return uy(n,t)}catch(n){}if(o(n,t))return er(!uf.f.call(n,t),n[t])}},b=function(n){if(!a(n))throw TypeError(String(n)+" is not an object");return n},fy=Object.defineProperty,ct={f:nt?fy:function(n,t,i){if(b(n),t=or(t,!0),b(i),ry)try{return fy(n,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(n[t]=i.value),n}},ht=nt?function(n,t,i){return ct.f(n,t,er(1,i))}:function(n,t,i){return n[t]=i,n},rh=function(n,t){try{ht(i,n,t)}catch(r){i[n]=t}return t},hi=kr(function(n){var t=i["__core-js_shared__"]||rh("__core-js_shared__",{});(n.exports=function(n,i){return t[n]||(t[n]=void 0!==i?i:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),ge=hi("native-function-to-string",Function.toString),ey=i.WeakMap,oy="function"==typeof ey&&/native code/.test(ge.call(ey)),btt=0,ktt=Math.random(),no=function(n){return"Symbol("+String(void 0===n?"":n)+")_"+(++btt+ktt).toString(36)},sy=hi("keys"),to=function(n){return sy[n]||(sy[n]=no(n))},gr={},dtt=i.WeakMap;if(oy){var nu=new dtt,gtt=nu.get,nit=nu.has,tit=nu.set;ye=function(n,t){return tit.call(nu,n,t),t};rf=function(n){return gtt.call(nu,n)||{}};pe=function(n){return nit.call(nu,n)}}else tu=to("state"),gr[tu]=!0,ye=function(n,t){return ht(n,tu,t),t},rf=function(n){return o(n,tu)?n[tu]:{}},pe=function(n){return o(n,tu)};var tt={set:ye,get:rf,has:pe,enforce:function(n){return pe(n)?rf(n):ye(n,{})},getterFor:function(n){return function(t){var i;if(!a(t)||(i=rf(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return i}}},rt=kr(function(n){var t=tt.get,r=tt.enforce,u=String(ge).split("toString");hi("inspectSource",function(n){return ge.call(n)});(n.exports=function(n,t,f,e){var h=!!e&&!!e.unsafe,s=!!e&&!!e.enumerable,c=!!e&&!!e.noTargetGet;"function"==typeof f&&("string"!=typeof t||o(f,"name")||ht(f,"name",t),r(f).source=u.join("string"==typeof t?t:""));n!==i?(h?!c&&n[t]&&(s=!0):delete n[t],s?n[t]=f:ht(n,t,f)):s?n[t]=f:rh(t,f)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||ge.call(this)})}),iu=i,hy=function(n){if("function"==typeof n)return n},io=function(n,t){return arguments.length<2?hy(iu[n])||hy(i[n]):iu[n]&&iu[n][t]||i[n]&&i[n][t]},iit=Math.ceil,rit=Math.floor,sr=function(n){return isNaN(n=+n)?0:(n>0?rit:iit)(n)},uit=Math.min,dt=function(n){return n>0?uit(sr(n),9007199254740991):0},fit=Math.max,eit=Math.min,ro=function(n,t){var i=sr(n);return i<0?fit(i+t,0):eit(i,t)},cy=function(n){return function(t,i,r){var o,f=pt(t),e=dt(f.length),u=ro(r,e);if(n&&i!=i){for(;e>u;)if((o=f[u++])!=o)return!0}else for(;e>u;u++)if((n||u in f)&&f[u]===i)return n||u||0;return!n&&-1}},ly={includes:cy(!0),indexOf:cy(!1)},oit=ly.indexOf,ay=function(n,t){var i,u=pt(n),f=0,r=[];for(i in u)!o(gr,i)&&o(u,i)&&r.push(i);for(;t.length>f;)o(u,i=t[f++])&&(~oit(r,i)||r.push(i));return r},uo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sit=uo.concat("length","prototype"),ff={f:Object.getOwnPropertyNames||function(n){return ay(n,sit)}},ef={f:Object.getOwnPropertySymbols},hit=io("Reflect","ownKeys")||function(n){var t=ff.f(b(n)),i=ef.f;return i?t.concat(i(n)):t},vy=function(n,t){for(var i,u=hit(t),f=ct.f,e=dr.f,r=0;r<u.length;r++)i=u[r],o(n,i)||f(n,i,e(t,i))},cit=/#|\.prototype\./,of=function(n,t){var i=ait[lit(n)];return i==yit||i!=vit&&("function"==typeof t?v(t):!!t)},lit=of.normalize=function(n){return String(n).replace(cit,".").toLowerCase()},ait=of.data={},vit=of.NATIVE="N",yit=of.POLYFILL="P",ru=of,pit=dr.f,s=function(n,t){var o,r,u,f,h,s=n.target,c=n.global,l=n.stat;if(o=c?i:l?i[s]||rh(s,{}):(i[s]||{}).prototype)for(r in t){if(f=t[r],u=n.noTargetGet?(h=pit(o,r))&&h.value:o[r],!ru(c?r:s+(l?".":"#")+r,n.forced)&&void 0!==u){if((void 0===f?"undefined":e(f))==(void 0===u?"undefined":e(u)))continue;vy(f,u)}(n.sham||u&&u.sham)&&ht(f,"sham",!0);rt(o,r,f,n)}},ni=!!Object.getOwnPropertySymbols&&!v(function(){return!String(Symbol())}),uu=Array.isArray||function(n){return"Array"==at(n)},ci=function(n){return Object(yt(n))},li=Object.keys||function(n){return ay(n,uo)},yy=nt?Object.defineProperties:function(n,t){b(n);for(var i,r=li(t),f=r.length,u=0;f>u;)ct.f(n,i=r[u++],t[i]);return n},uh=io("document","documentElement"),py=to("IE_PROTO"),fh=function(){},fo=function(){var n,t=de("iframe"),i=uo.length;for(t.style.display="none",uh.appendChild(t),t.src=String("javascript:"),(n=t.contentWindow.document).open(),n.write("<script>document.F=Object<\/script>"),n.close(),fo=n.F;i--;)delete fo.prototype[uo[i]];return fo()},bi=Object.create||function(n,t){var i;return null!==n?(fh.prototype=b(n),i=new fh,fh.prototype=null,i[py]=n):i=fo(),void 0===t?i:yy(i,t)};gr[py]=!0;var wy=ff.f,wit={}.toString,by="object"==("undefined"==typeof window?"undefined":e(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ky={f:function(n){return by&&"[object Window]"==wit.call(n)?function(n){try{return wy(n)}catch(n){return by.slice()}}(n):wy(pt(n))}},dy=i.Symbol,gy=hi("wks"),y=function(n){return gy[n]||(gy[n]=ni&&dy[n]||(ni?dy:no)("Symbol."+n))},np={f:y},bit=ct.f,tp=function(n){var t=iu.Symbol||(iu.Symbol={});o(t,n)||bit(t,n,{value:np.f(n)})},kit=ct.f,ip=y("toStringTag"),hr=function(n,t,i){n&&!o(n=i?n:n.prototype,ip)&&kit(n,ip,{configurable:!0,value:t})},cr=function(n){if("function"!=typeof n)throw TypeError(String(n)+" is not a function");return n},sf=function(n,t,i){if(cr(n),void 0===t)return n;switch(i){case 0:return function(){return n.call(t)};case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}},dit=y("species"),eh=function(n,t){var i;return uu(n)&&("function"!=typeof(i=n.constructor)||i!==Array&&!uu(i.prototype)?a(i)&&null===(i=i[dit])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)},git=[].push,lr=function(n){var i=1==n,u=2==n,f=3==n,t=4==n,r=6==n,e=5==n||r;return function(o,s,h,c){for(var a,v,w=ci(o),y=ke(w),d=sf(s,h,3),b=dt(y.length),l=0,k=c||eh,p=i?k(o,b):u?k(o,0):void 0;b>l;l++)if((e||l in y)&&(v=d(a=y[l],l,w),n))if(i)p[l]=v;else if(v)switch(n){case 3:return!0;case 5:return a;case 6:return l;case 2:git.call(p,a)}else if(t)return!1;return r?-1:f||t?t:p}},ki={forEach:lr(0),map:lr(1),filter:lr(2),some:lr(3),every:lr(4),find:lr(5),findIndex:lr(6)},eo=ki.forEach,lt=to("hidden"),rp=y("toPrimitive"),nrt=tt.set,up=tt.getterFor("Symbol"),wt=Object.prototype,vt=i.Symbol,oo=i.JSON,so=oo&&oo.stringify,fp=dr.f,di=ct.f,ep=ky.f,trt=uf.f,ai=hi("symbols"),hf=hi("op-symbols"),oh=hi("string-to-symbol-registry"),sh=hi("symbol-to-string-registry"),irt=hi("wks"),hh=i.QObject,ch=!hh||!hh.prototype||!hh.prototype.findChild,lh=nt&&v(function(){return 7!=bi(di({},"a",{get:function(){return di(this,"a",{value:7}).a}})).a})?function(n,t,i){var r=fp(wt,t);r&&delete wt[t];di(n,t,i);r&&n!==wt&&di(wt,t,r)}:di,op=function(n,t){var i=ai[n]=bi(vt.prototype);return nrt(i,{type:"Symbol",tag:n,description:t}),nt||(i.description=t),i},ah=ni&&"symbol"==e(vt.iterator)?function(n){return"symbol"==(void 0===n?"undefined":e(n))}:function(n){return Object(n)instanceof vt},vh=function w(n,t,i){n===wt&&w(hf,t,i);b(n);var r=or(t,!0);return b(i),o(ai,r)?(i.enumerable?(o(n,lt)&&n[lt][r]&&(n[lt][r]=!1),i=bi(i,{enumerable:er(0,!1)})):(o(n,lt)||di(n,lt,er(1,{})),n[lt][r]=!0),lh(n,r,i)):di(n,r,i)},sp=function(n,t){b(n);var i=pt(t),r=li(i).concat(ph(i));return eo(r,function(t){nt&&!yh.call(i,t)||vh(n,t,i[t])}),n},yh=function(n){var t=or(n,!0),i=trt.call(this,t);return!(this===wt&&o(ai,t)&&!o(hf,t))&&(!(i||!o(this,t)||!o(ai,t)||o(this,lt)&&this[lt][t])||i)},hp=function(n,t){var r=pt(n),i=or(t,!0),u;if(r!==wt||!o(ai,i)||o(hf,i))return u=fp(r,i),!u||!o(ai,i)||o(r,lt)&&r[lt][i]||(u.enumerable=!0),u},cp=function(n){var i=ep(pt(n)),t=[];return eo(i,function(n){o(ai,n)||o(gr,n)||t.push(n)}),t},ph=function(n){var t=n===wt,r=ep(t?hf:pt(n)),i=[];return eo(r,function(n){o(ai,n)&&(!t||o(wt,n))&&i.push(ai[n])}),i};if(ni||(rt((vt=function(){if(this instanceof vt)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,n=no(t);return nt&&ch&&lh(wt,n,{configurable:!0,set:function t(i){this===wt&&t.call(hf,i);o(this,lt)&&o(this[lt],n)&&(this[lt][n]=!1);lh(this,n,er(1,i))}}),op(n,t)}).prototype,"toString",function(){return up(this).tag}),uf.f=yh,ct.f=vh,dr.f=hp,ff.f=ky.f=cp,ef.f=ph,nt&&(di(vt.prototype,"description",{configurable:!0,get:function(){return up(this).description}}),rt(wt,"propertyIsEnumerable",yh,{unsafe:!0})),np.f=function(n){return op(y(n),n)}),s({global:!0,wrap:!0,forced:!ni,sham:!ni},{Symbol:vt}),eo(li(irt),function(n){tp(n)}),s({target:"Symbol",stat:!0,forced:!ni},{"for":function(n){var t=String(n),i;return o(oh,t)?oh[t]:(i=vt(t),oh[t]=i,sh[i]=t,i)},keyFor:function(n){if(!ah(n))throw TypeError(n+" is not a symbol");if(o(sh,n))return sh[n]},useSetter:function(){ch=!0},useSimple:function(){ch=!1}}),s({target:"Object",stat:!0,forced:!ni,sham:!nt},{create:function(n,t){return void 0===t?bi(n):sp(bi(n),t)},defineProperty:vh,defineProperties:sp,getOwnPropertyDescriptor:hp}),s({target:"Object",stat:!0,forced:!ni},{getOwnPropertyNames:cp,getOwnPropertySymbols:ph}),s({target:"Object",stat:!0,forced:v(function(){ef.f(1)})},{getOwnPropertySymbols:function(n){return ef.f(ci(n))}}),oo&&s({target:"JSON",stat:!0,forced:!ni||v(function(){var n=vt();return"[null]"!=so([n])||"{}"!=so({a:n})||"{}"!=so(Object(n))})},{stringify:function(n){for(var t,r,i=[n],u=1;arguments.length>u;)i.push(arguments[u++]);if(r=t=i[1],(a(t)||void 0!==n)&&!ah(n))return uu(t)||(t=function(n,t){if("function"==typeof r&&(t=r.call(this,n,t)),!ah(t))return t}),i[1]=t,so.apply(oo,i)}}),vt.prototype[rp]||ht(vt.prototype,rp,vt.prototype.valueOf),hr(vt,"Symbol"),gr[lt]=!0,lp=ct.f,ti=i.Symbol,nt&&"function"==typeof ti&&(!("description"in ti.prototype)||void 0!==ti().description)){wh={};cf=function w(){var n=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof w?new ti(n):void 0===n?ti():ti(n);return""===n&&(wh[t]=!0),t};vy(cf,ti);ho=cf.prototype=ti.prototype;ho.constructor=cf;var rrt=ho.toString,urt="Symbol(test)"==String(ti("test")),frt=/^Symbol\((.*)\)[^)]+$/;lp(ho,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,i=rrt.call(t),n;return o(wh,t)?"":(n=urt?i.slice(7,-1):i.replace(frt,"$1"),""===n?void 0:n)}});s({global:!0,forced:!0},{Symbol:cf})}tp("iterator");co=y("unscopables");lo=Array.prototype;null==lo[co]&&ht(lo,co,bi(null));var fu,ap,vp,eu=function(n){lo[co][n]=!0},ou={},ert=!v(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype}),yp=to("IE_PROTO"),ort=Object.prototype,ao=ert?Object.getPrototypeOf:function(n){return n=ci(n),o(n,yp)?n[yp]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?ort:null},pp=y("iterator"),wp=!1;[].keys&&("next"in(vp=[].keys())?(ap=ao(ao(vp)))!==Object.prototype&&(fu=ap):wp=!0);null==fu&&(fu={});o(fu,pp)||ht(fu,pp,function(){return this});var bh={IteratorPrototype:fu,BUGGY_SAFARI_ITERATORS:wp},srt=bh.IteratorPrototype,hrt=function(){return this},bp=function(n,t,i){var r=t+" Iterator";return n.prototype=bi(srt,{next:er(1,i)}),hr(n,r,!1),ou[r]=hrt,n},vo=Object.setPrototypeOf||("__proto__"in{}?function(){var n,t=!1,i={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]);t=i instanceof Array}catch(n){}return function(i,r){return b(i),function(n){if(!a(n)&&null!==n)throw TypeError("Can't set "+String(n)+" as a prototype");}(r),t?n.call(i,r):i.__proto__=r,i}}():void 0),kh=bh.IteratorPrototype,yo=bh.BUGGY_SAFARI_ITERATORS,lf=y("iterator"),crt=function(){return this},kp=function(n,t,i,r,u,f,e){bp(i,t,r);var h,l,v,y=function(n){if(n===u&&c)return c;if(!yo&&n in o)return o[n];switch(n){case"keys":case"values":case"entries":return function(){return new i(this,n)}}return function(){return new i(this)}},b=t+" Iterator",p=!1,o=n.prototype,a=o[lf]||o["@@iterator"]||u&&o[u],c=!yo&&a||y(u),w="Array"==t&&o.entries||a;if(w&&(h=ao(w.call(new n)),kh!==Object.prototype&&h.next&&(ao(h)!==kh&&(vo?vo(h,kh):"function"!=typeof h[lf]&&ht(h,lf,crt)),hr(h,b,!0))),"values"==u&&a&&"values"!==a.name&&(p=!0,c=function(){return a.call(this)}),o[lf]!==c&&ht(o,lf,c),ou[t]=c,u)if(l={values:y("values"),keys:f?c:y("keys"),entries:y("entries")},e)for(v in l)!yo&&!p&&v in o||rt(o,v,l[v]);else s({target:t,proto:!0,forced:yo||p},l);return l},lrt=tt.set,art=tt.getterFor("Array Iterator"),af=kp(Array,"Array",function(n,t){lrt(this,{type:"Array Iterator",target:pt(n),index:0,kind:t})},function(){var t=art(this),i=t.target,r=t.kind,n=t.index++;return!i||n>=i.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:i[n],done:!1}:{value:[n,i[n]],done:!1}},"values");ou.Arguments=ou.Array;eu("keys");eu("values");eu("entries");var dp=function(n,t){var i=[][n];return!i||!v(function(){i.call(null,t||function(){throw 1;},1)})},vrt=[].join,yrt=ke!=Object,prt=dp("join",",");s({target:"Array",proto:!0,forced:yrt||prt},{join:function(n){return vrt.call(pt(this),void 0===n?",":n)}});var su=function(n,t,i){var r=or(t);r in n?ct.f(n,r,er(0,i)):n[r]=i},wrt=y("species"),vf=function(n){return!v(function(){var t=[];return(t.constructor={})[wrt]=function(){return{foo:1}},1!==t[n](Boolean).foo})},brt=y("species"),krt=[].slice,drt=Math.max;s({target:"Array",proto:!0,forced:!vf("slice")},{slice:function(n,t){var i,f,e,r=pt(this),o=dt(r.length),u=ro(n,o),s=ro(void 0===t?o:t,o);if(uu(r)&&("function"!=typeof(i=r.constructor)||i!==Array&&!uu(i.prototype)?a(i)&&null===(i=i[brt])&&(i=void 0):i=void 0,i===Array||void 0===i))return krt.call(r,u,s);for(f=new(void 0===i?Array:i)(drt(s-u,0)),e=0;u<s;u++,e++)u in r&&su(f,e,r[u]);return f.length=e,f}});var grt=y("toStringTag"),nut="Arguments"==at(function(){return arguments}()),gp=function(n){var t,i,r;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(i=function(n,t){try{return n[t]}catch(n){}}(t=Object(n),grt))?i:nut?at(t):"Object"==(r=at(t))&&"function"==typeof t.callee?"Arguments":r},dh={};dh[y("toStringTag")]="z";gh="[object z]"!==String(dh)?function(){return"[object "+gp(this)+"]"}:dh.toString;nc=Object.prototype;gh!==nc.toString&&rt(nc,"toString",gh,{unsafe:!0});var tc=function(){var t=b(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n},nw=RegExp.prototype,tw=nw.toString,tut=v(function(){return"/a/b"!=tw.call({source:"a",flags:"b"})}),iut="toString"!=tw.name;(tut||iut)&&rt(RegExp.prototype,"toString",function(){var n=b(this),i=String(n.source),t=n.flags;return"/"+i+"/"+String(void 0===t&&n instanceof RegExp&&!("flags"in nw)?tc.call(n):t)},{unsafe:!0});var iw=function(n){return function(t,i){var f,e,u=String(yt(t)),r=sr(i),o=u.length;return r<0||r>=o?n?"":void 0:(f=u.charCodeAt(r))<55296||f>56319||r+1===o||(e=u.charCodeAt(r+1))<56320||e>57343?n?u.charAt(r):f:n?u.slice(r,r+2):e-56320+(f-55296<<10)+65536}},ic={codeAt:iw(!1),charAt:iw(!0)},rut=ic.charAt,uut=tt.set,fut=tt.getterFor("String Iterator");kp(String,"String",function(n){uut(this,{type:"String Iterator",string:String(n),index:0})},function(){var n,t=fut(this),i=t.string,r=t.index;return r>=i.length?{value:void 0,done:!0}:(n=rut(i,r),t.index+=n.length,{value:n,done:!1})});var po=RegExp.prototype.exec,eut=String.prototype.replace,rw=po,rc=function(){var n=/a/,t=/b*/g;return po.call(n,"a"),po.call(t,"a"),0!==n.lastIndex||0!==t.lastIndex}(),uc=void 0!==/()??/.exec("")[1];(rc||uc)&&(rw=function(n){var u,f,t,r,i=this;return uc&&(f=new RegExp("^"+i.source+"$(?!\\s)",tc.call(i))),rc&&(u=i.lastIndex),t=po.call(i,n),rc&&t&&(i.lastIndex=i.global?t.index+t[0].length:u),uc&&t&&t.length>1&&eut.call(t[0],f,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(t[r]=void 0)}),t});var fc=rw,out=y("species"),sut=!v(function(){var n=/./;return n.exec=function(){var n=[];return n.groups={a:"7"},n},"7"!=="".replace(n,"$<a>")}),hut=!v(function(){var t=/(?:)/,i=t.exec,n;return t.exec=function(){return i.apply(this,arguments)},n="ab".split(t),2!==n.length||"a"!==n[0]||"b"!==n[1]}),wo=function(n,t,i,r){var u=y(n),f=!v(function(){var t={};return t[u]=function(){return 7},7!=""[n](t)}),s=f&&!v(function(){var i=!1,t=/a/;return t.exec=function(){return i=!0,null},"split"===n&&(t.constructor={},t.constructor[out]=function(){return t}),t[u](""),!i});if(!f||!s||"replace"===n&&!sut||"split"===n&&!hut){var h=/./[u],e=i(u,""[n],function(n,t,i,r,u){return t.exec===fc?f&&!u?{done:!0,value:h.call(t,i,r)}:{done:!0,value:n.call(i,t,r)}:{done:!1}}),c=e[0],o=e[1];rt(String.prototype,n,c);rt(RegExp.prototype,u,2==t?function(n,t){return o.call(n,this,t)}:function(n){return o.call(n,this)});r&&ht(RegExp.prototype[u],"sham",!0)}},cut=ic.charAt,ec=function(n,t,i){return t+(i?cut(n,t).length:1)},hu=function(n,t){var r=n.exec,i;if("function"==typeof r){if(i=r.call(n,t),"object"!=(void 0===i?"undefined":e(i)))throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==at(n))throw TypeError("RegExp#exec called on incompatible receiver");return fc.call(n,t)},lut=Math.max,aut=Math.min,vut=Math.floor,yut=/\$([$&'`]|\d\d?|<[^>]*>)/g,put=/\$([$&'`]|\d\d?)/g;wo("replace",2,function(n,t,i){function r(n,i,r,u,f,e){var h=r+n.length,o=u.length,s=put;return void 0!==f&&(f=ci(f),s=yut),t.call(e,s,function(t,e){var l,s,c;switch(e.charAt(0)){case"$":return"$";case"&":return n;case"`":return i.slice(0,r);case"'":return i.slice(h);case"<":l=f[e.slice(1,-1)];break;default:if(s=+e,0===s)return t;if(s>o)return c=vut(s/10),0===c?t:c<=o?void 0===u[c-1]?e.charAt(1):u[c-1]+e.charAt(1):t;l=u[s-1]}return void 0===l?"":l})}return[function(i,r){var u=yt(this),f=null==i?void 0:i[n];return void 0!==f?f.call(i,u,r):t.call(String(u),i,r)},function(n,u){var nt=i(t,n,this,u),a,it,h,f,l,d,g;if(nt.done)return nt.value;var o=b(n),e=String(this),tt="function"==typeof u;for(tt||(u=String(u)),a=o.global,a&&(it=o.unicode,o.lastIndex=0),h=[];;){if(f=hu(o,e),null===f)break;if(h.push(f),!a)break;""===String(f[0])&&(o.lastIndex=ec(e,dt(o.lastIndex),it))}for(var v,rt="",c=0,y=0;y<h.length;y++){f=h[y];for(var p=String(f[0]),s=lut(aut(sr(f.index),e.length),0),w=[],k=1;k<f.length;k++)w.push(void 0===(v=f[k])?v:String(v));l=f.groups;tt?(d=[p].concat(w,s,e),void 0!==l&&d.push(l),g=String(u.apply(void 0,d))):g=r(p,e,s,w,l,u);s>=c&&(rt+=e.slice(c,s)+g,c=s+p.length)}return rt+e.slice(c)}]});oc=Object.is||function(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t};wo("search",1,function(n,t,i){return[function(t){var i=yt(this),r=null==t?void 0:t[n];return void 0!==r?r.call(t,i):new RegExp(t)[n](String(i))},function(n){var e=i(t,n,this),f;if(e.done)return e.value;var r=b(n),o=String(this),u=r.lastIndex;return oc(u,0)||(r.lastIndex=0),f=hu(r,o),oc(r.lastIndex,u)||(r.lastIndex=u),null===f?-1:f.index}]});var wut=y("match"),sc=function(n){var t;return a(n)&&(void 0!==(t=n[wut])?!!t:"RegExp"==at(n))},but=y("species"),uw=function(n,t){var i,r=b(n).constructor;return void 0===r||null==(i=b(r)[but])?t:cr(i)},kut=[].push,dut=Math.min,cu=!v(function(){return!RegExp(4294967295,"y")});wo("split",2,function(n,t,i){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(n,i){var u=String(yt(this)),e=void 0===i?4294967295:i>>>0;if(0===e)return[];if(void 0===n)return[u];if(!sc(n))return t.call(u,n,e);for(var f,h,c,r=[],l=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),o=0,s=new RegExp(n.source,l+"g");(f=fc.call(s,u))&&!((h=s.lastIndex)>o&&(r.push(u.slice(o,f.index)),f.length>1&&f.index<u.length&&kut.apply(r,f.slice(1)),c=f[0].length,o=h,r.length>=e));)s.lastIndex===f.index&&s.lastIndex++;return o===u.length?!c&&s.test("")||r.push(""):r.push(u.slice(o)),r.length>e?r.slice(0,e):r}:"0".split(void 0,0).length?function(n,i){return void 0===n&&0===i?[]:t.call(this,n,i)}:t,[function(t,i){var u=yt(this),f=null==t?void 0:t[n];return void 0!==f?f.call(t,u,i):r.call(String(u),t,i)},function(n,u){var y=i(r,n,this,u,r!==t),p,l,a;if(y.done)return y.value;var s=b(n),f=String(this),w=uw(s,RegExp),k=s.unicode,d=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(cu?"y":"g"),h=new w(cu?s:"^(?:"+s.source+")",d),v=void 0===u?4294967295:u>>>0;if(0===v)return[];if(0===f.length)return null===hu(h,f)?[f]:[];for(var c=0,e=0,o=[];e<f.length;)if(h.lastIndex=cu?e:0,l=hu(h,cu?f:f.slice(e)),null===l||(p=dut(dt(h.lastIndex+(cu?0:e)),f.length))===c)e=ec(f,e,k);else{if(o.push(f.slice(c,e)),o.length===v)return o;for(a=1;a<=l.length-1;a++)if(o.push(l[a]),o.length===v)return o;e=c=p}return o.push(f.slice(c)),o}]},!cu);var hc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},gut=ki.forEach,cc=dp("forEach")?function(n){return gut(this,n,arguments.length>1?arguments[1]:void 0)}:[].forEach;for(fw in hc)if(lc=i[fw],yf=lc&&lc.prototype,yf&&yf.forEach!==cc)try{ht(yf,"forEach",cc)}catch(w){yf.forEach=cc}var ac=y("iterator"),ew=y("toStringTag"),vc=af.values;for(bo in hc)if(yc=i[bo],ii=yc&&yc.prototype,ii){if(ii[ac]!==vc)try{ht(ii,ac,vc)}catch(w){ii[ac]=vc}if(ii[ew]||ht(ii,ew,bo),hc[bo])for(ar in af)if(ii[ar]!==af[ar])try{ht(ii,ar,af[ar])}catch(w){ii[ar]=af[ar]}}var nft=y("iterator"),ow=!v(function(){var n=new URL("b?e=1","http://a"),t=n.searchParams;return n.pathname="c%20d",!t.sort||"http://a/c%20d?e=1"!==n.href||"1"!==t.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[nft]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash}),pf=function(n,t,i){if(!(n instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return n},ko=Object.assign,wf=!ko||v(function(){var n={},t={},i=Symbol();return n[i]=7,"abcdefghijklmnopqrst".split("").forEach(function(n){t[n]=n}),7!=ko({},n)[i]||"abcdefghijklmnopqrst"!=li(ko({},t)).join("")})?function(n){for(var r=ci(n),s=arguments.length,u=1,f=ef.f,h=uf.f;s>u;)for(var i,t=ke(arguments[u++]),e=f?li(t).concat(f(t)):li(t),c=e.length,o=0;c>o;)i=e[o++],nt&&!h.call(t,i)||(r[i]=t[i]);return r}:ko,sw=function(n,t,i,r){try{return r?t(b(i)[0],i[1]):t(i)}catch(t){var u=n.return;throw void 0!==u&&b(u.call(n)),t;}},tft=y("iterator"),ift=Array.prototype,hw=function(n){return void 0!==n&&(ou.Array===n||ift[tft]===n)},rft=y("iterator"),go=function(n){if(null!=n)return n[rft]||n["@@iterator"]||ou[gp(n)]},vr=function(n){var c,i,f,e,r=ci(n),o="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,s=void 0!==u,t=0,h=go(r);if(s&&(u=sf(u,l>2?arguments[2]:void 0,2)),null==h||o==Array&&hw(h))for(i=new o(c=dt(r.length));c>t;t++)su(i,t,s?u(r[t],t):r[t]);else for(e=h.call(r),i=new o;!(f=e.next()).done;t++)su(i,t,s?sw(e,u,[f.value,t],!0):f.value);return i.length=t,i},uft=/[^\0-\u007E]/,fft=/[.\u3002\uFF0E\uFF61]/g,cw="Overflow: input needs wider integers to process",lu=Math.floor,pc=String.fromCharCode,lw=function(n){return n+22+75*(n<26)},eft=function(n,t,i){var r=0;for(n=i?lu(n/700):n>>1,n+=lu(n/t);n>455;r+=36)n=lu(n/35);return lu(r+36*n/(n+38))},oft=function(n){for(var i,f=[],w=(n=function(n){for(var t,u,r=[],i=0,f=n.length;i<f;)t=n.charCodeAt(i++),t>=55296&&t<=56319&&i<f?(u=n.charCodeAt(i++),56320==(64512&u)?r.push(((1023&t)<<10)+(1023&u)+65536):(r.push(t),i--)):r.push(t);return r}(n)).length,r=128,u=0,l=72,a,o,e,v,s,h,c,y,p,t=0;t<n.length;t++)(i=n[t])<128&&f.push(pc(i));for(a=f.length,o=a,a&&f.push("-");o<w;){for(e=2147483647,t=0;t<n.length;t++)(i=n[t])>=r&&i<e&&(e=i);if(v=o+1,e-r>lu((2147483647-u)/v))throw RangeError(cw);for(u+=(e-r)*v,r=e,t=0;t<n.length;t++){if((i=n[t])<r&&++u>2147483647)throw RangeError(cw);if(i==r){for(s=u,h=36;;h+=36){if(c=h<=l?1:h>=l+26?26:h-l,s<c)break;y=s-c;p=36-c;f.push(pc(lw(c+y%p)));s=lu(y/p)}f.push(pc(lw(s)));l=eft(u,v,o==a);u=0;++o}}++u;++r}return f.join("")},bf=function(n,t,i){for(var r in t)rt(n,r,t[r],i);return n},aw=function(n){var t=go(n);if("function"!=typeof t)throw TypeError(String(n)+" is not iterable");return b(t.call(n))},sft=y("iterator"),vw=tt.set,gt=tt.getterFor("URLSearchParams"),hft=tt.getterFor("URLSearchParamsIterator"),cft=/\+/g,yw=Array(4),lft=function(n){return yw[n-1]||(yw[n-1]=RegExp("((?:%[\\da-f]{2}){"+n+"})","gi"))},aft=function(n){try{return decodeURIComponent(n)}catch(t){return n}},pw=function(n){var t=n.replace(cft," "),i=4;try{return decodeURIComponent(t)}catch(n){for(;i;)t=t.replace(lft(i--),aft);return t}},vft=/[!'()~]|%20/g,yft={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},pft=function(n){return yft[n]},ww=function(n){return encodeURIComponent(n).replace(vft,pft)},bw=function(n,t){if(t)for(var r,i,u=t.split("&"),f=0;f<u.length;)(r=u[f++]).length&&(i=r.split("="),n.push({key:pw(i.shift()),value:pw(i.join("="))}))},wft=function(n){this.entries.length=0;bw(this.entries,n)},au=function(n,t){if(n<t)throw TypeError("Not enough arguments");},wc=bp(function(n,t){vw(this,{type:"URLSearchParamsIterator",iterator:aw(gt(n).entries),kind:t})},"Iterator",function(){var i=hft(this),r=i.kind,n=i.iterator.next(),t=n.value;return n.done||(n.value="keys"===r?t.key:"values"===r?t.value:[t.key,t.value]),n}),ns=function w(){pf(this,w,"URLSearchParams");var u,f,e,r,s,h,t,n=arguments.length>0?arguments[0]:void 0,i=[];if(vw(this,{type:"URLSearchParams",entries:i,updateURL:function(){},updateSearchParams:wft}),void 0!==n)if(a(n))if("function"==typeof(u=go(n)))for(f=u.call(n);!(e=f.next()).done;){if((s=(r=aw(b(e.value))).next()).done||(h=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");i.push({key:s.value+"",value:h.value+""})}else for(t in n)o(n,t)&&i.push({key:t,value:n[t]+""});else bw(i,"string"==typeof n?"?"===n.charAt(0)?n.slice(1):n:n+"")},ts=ns.prototype;bf(ts,{append:function(n,t){au(arguments.length,2);var i=gt(this);i.entries.push({key:n+"",value:t+""});i.updateURL()},"delete":function(n){au(arguments.length,1);for(var r=gt(this),i=r.entries,u=n+"",t=0;t<i.length;)i[t].key===u?i.splice(t,1):t++;r.updateURL()},get:function(n){au(arguments.length,1);for(var i=gt(this).entries,r=n+"",t=0;t<i.length;t++)if(i[t].key===r)return i[t].value;return null},getAll:function(n){au(arguments.length,1);for(var i=gt(this).entries,u=n+"",r=[],t=0;t<i.length;t++)i[t].key===u&&r.push(i[t].value);return r},has:function(n){au(arguments.length,1);for(var t=gt(this).entries,r=n+"",i=0;i<t.length;)if(t[i++].key===r)return!0;return!1},set:function(n,t){au(arguments.length,1);for(var f,e=gt(this),i=e.entries,u=!1,o=n+"",s=t+"",r=0;r<i.length;r++)(f=i[r]).key===o&&(u?i.splice(r--,1):(u=!0,f.value=s));u||i.push({key:o,value:s});e.updateURL()},sort:function(){var r,n,t,u=gt(this),i=u.entries,f=i.slice();for(i.length=0,t=0;t<f.length;t++){for(r=f[t],n=0;n<t;n++)if(i[n].key>r.key){i.splice(n,0,r);break}n===t&&i.push(r)}u.updateURL()},forEach:function(n){for(var t,i=gt(this).entries,u=sf(n,arguments.length>1?arguments[1]:void 0,3),r=0;r<i.length;)u((t=i[r++]).value,t.key,this)},keys:function(){return new wc(this,"keys")},values:function(){return new wc(this,"values")},entries:function(){return new wc(this,"entries")}},{enumerable:!0});rt(ts,sft,ts.entries);rt(ts,"toString",function(){for(var n,t=gt(this).entries,i=[],r=0;r<t.length;)n=t[r++],i.push(ww(n.key)+"="+ww(n.value));return i.join("&")},{enumerable:!0});hr(ns,"URLSearchParams");s({global:!0,forced:!ow},{URLSearchParams:ns});var bt,kw={URLSearchParams:ns,getState:gt},bft=ic.codeAt,kf=i.URL,kft=kw.URLSearchParams,bc=kw.getState,dft=tt.set,k=tt.getterFor("URL"),gft=Math.floor,dw=Math.pow,gw=/[A-Za-z]/,net=/[\d+\-.A-Za-z]/,kc=/\d/,tet=/^(0x|0X)/,iet=/^[0-7]+$/,ret=/^\d+$/,nb=/^[\dA-Fa-f]+$/,uet=/[\u0000\u0009\u000A\u000D #%\/:?@[\\]]/,fet=/[\u0000\u0009\u000A\u000D #\/:?@[\\]]/,eet=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,oet=/[\u0009\u000A\u000D]/g,dc=function(n,t){var i,u,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1)||!(i=het(t.slice(1,-1))))return"Invalid host";n.host=i}else if(ut(n)){if((t=function(n){for(var i,r=[],u=n.toLowerCase().replace(fft,".").split("."),t=0;t<u.length;t++)i=u[t],r.push(uft.test(i)?"xn--"+oft(i):i);return r.join(".")}(t),uet.test(t))||null===(i=set(t)))return"Invalid host";n.host=i}else{if(fet.test(t))return"Invalid host";for(i="",u=vr(t),r=0;r<u.length;r++)i+=gi(u[r],is);n.host=i}},set=function(n){var o,r,t,i,u,f,s,e=n.split(".");if(e.length&&""==e[e.length-1]&&e.pop(),(o=e.length)>4)return n;for(r=[],t=0;t<o;t++){if(""==(i=e[t]))return n;if(u=10,i.length>1&&"0"==i.charAt(0)&&(u=tet.test(i)?16:8,i=i.slice(8==u?1:2)),""===i)f=0;else{if(!(10==u?ret:8==u?iet:nb).test(i))return n;f=parseInt(i,u)}r.push(f)}for(t=0;t<o;t++)if(f=r[t],t==o-1){if(f>=dw(256,5-o))return null}else if(f>255)return null;for(s=r.pop(),t=0;t<r.length;t++)s+=r[t]*dw(256,3-t);return s},het=function(n){var h,s,o,r,l,c,a,u=[0,0,0,0,0,0,0,0],t=0,e=null,f=0,i=function(){return n.charAt(f)};if(":"==i()){if(":"!=n.charAt(1))return;f+=2;e=++t}for(;i();){if(8==t)return;if(":"!=i()){for(h=s=0;s<4&&nb.test(i());)h=16*h+parseInt(i(),16),f++,s++;if("."==i()){if(0==s)return;if(f-=s,t>6)return;for(o=0;i();){if(r=null,o>0){if(!("."==i()&&o<4))return;f++}if(!kc.test(i()))return;for(;kc.test(i());){if(l=parseInt(i(),10),null===r)r=l;else{if(0==r)return;r=10*r+l}if(r>255)return;f++}u[t]=256*u[t]+r;2!=++o&&4!=o||t++}if(4!=o)return;break}if(":"==i()){if(f++,!i())return}else if(i())return;u[t++]=h}else{if(null!==e)return;f++;e=++t}}if(null!==e)for(c=t-e,t=7;0!=t&&c>0;)a=u[t],u[t--]=u[e+c-1],u[e+--c]=a;else if(8!=t)return;return u},df=function(n){var i,t,u,r;if("number"==typeof n){for(i=[],t=0;t<4;t++)i.unshift(n%256),n=gft(n/256);return i.join(".")}if("object"==(void 0===n?"undefined":e(n))){for(i="",u=function(n){for(var f=null,r=1,i=null,t=0,u=0;u<8;u++)0!==n[u]?(t>r&&(f=i,r=t),i=null,t=0):(null===i&&(i=u),++t);return t>r&&(f=i,r=t),f}(n),t=0;t<8;t++)r&&0===n[t]||(r&&(r=!1),u===t?(i+=t?":":"::",r=!0):(i+=n[t].toString(16),t<7&&(i+=":")));return"["+i+"]"}return n},is={},tb=wf({},is,{" ":1,'"':1,"<":1,">":1,"`":1}),ib=wf({},tb,{"#":1,"?":1,"{":1,"}":1}),gc=wf({},ib,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),gi=function(n,t){var i=bft(n,0);return i>32&&i<127&&!o(t,n)?n:encodeURIComponent(n)},rs={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},ut=function(n){return o(rs,n.scheme)},nl=function(n){return""!=n.username||""!=n.password},tl=function(n){return!n.host||n.cannotBeABaseURL||"file"==n.scheme},gf=function(n,t){var i;return 2==n.length&&gw.test(n.charAt(0))&&(":"==(i=n.charAt(1))||!t&&"|"==i)},rb=function(n){var t;return n.length>1&&gf(n.slice(0,2))&&(2==n.length||"/"===(t=n.charAt(2))||"\\"===t||"?"===t||"#"===t)},ub=function(n){var t=n.path,i=t.length;!i||"file"==n.scheme&&1==i&&gf(t[0],!0)||t.pop()},cet=function(n){return"."===n||"%2e"===n.toLowerCase()},il={},fb={},rl={},eb={},ob={},ul={},sb={},hb={},us={},fs={},fl={},el={},ol={},sl={},cb={},hl={},vu={},ri={},lb={},yr={},vi={},ui=function(n,t,i,r){var h,u,y,c,l,f=i||il,s=0,e="",p=!1,w=!1,b=!1,a,k,d,v;for(i||(n.scheme="",n.username="",n.password="",n.host=null,n.port=null,n.path=[],n.query=null,n.fragment=null,n.cannotBeABaseURL=!1,t=t.replace(eet,"")),t=t.replace(oet,""),h=vr(t);s<=h.length;){switch(u=h[s],f){case il:if(!u||!gw.test(u)){if(i)return"Invalid scheme";f=rl;continue}e+=u.toLowerCase();f=fb;break;case fb:if(u&&(net.test(u)||"+"==u||"-"==u||"."==u))e+=u.toLowerCase();else{if(":"!=u){if(i)return"Invalid scheme";e="";f=rl;s=0;continue}if(i&&(ut(n)!=o(rs,e)||"file"==e&&(nl(n)||null!==n.port)||"file"==n.scheme&&!n.host))return;if(n.scheme=e,i)return void(ut(n)&&rs[n.scheme]==n.port&&(n.port=null));e="";"file"==n.scheme?f=sl:ut(n)&&r&&r.scheme==n.scheme?f=eb:ut(n)?f=hb:"/"==h[s+1]?(f=ob,s++):(n.cannotBeABaseURL=!0,n.path.push(""),f=lb)}break;case rl:if(!r||r.cannotBeABaseURL&&"#"!=u)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==u){n.scheme=r.scheme;n.path=r.path.slice();n.query=r.query;n.fragment="";n.cannotBeABaseURL=!0;f=vi;break}f="file"==r.scheme?sl:ul;continue;case eb:if("/"!=u||"/"!=h[s+1]){f=ul;continue}f=us;s++;break;case ob:if("/"==u){f=fs;break}f=ri;continue;case ul:if(n.scheme=r.scheme,u==bt)n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=r.path.slice(),n.query=r.query;else if("/"==u||"\\"==u&&ut(n))f=sb;else if("?"==u)n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=r.path.slice(),n.query="",f=yr;else{if("#"!=u){n.username=r.username;n.password=r.password;n.host=r.host;n.port=r.port;n.path=r.path.slice();n.path.pop();f=ri;continue}n.username=r.username;n.password=r.password;n.host=r.host;n.port=r.port;n.path=r.path.slice();n.query=r.query;n.fragment="";f=vi}break;case sb:if(ut(n)&&("/"==u||"\\"==u))f=us;else{if("/"!=u){n.username=r.username;n.password=r.password;n.host=r.host;n.port=r.port;f=ri;continue}f=fs}break;case hb:if(f=us,"/"!=u||"/"!=e.charAt(s+1))continue;s++;break;case us:if("/"!=u&&"\\"!=u){f=fs;continue}break;case fs:if("@"==u){for(p&&(e="%40"+e),p=!0,y=vr(e),a=0;a<y.length;a++)k=y[a],":"!=k||b?(d=gi(k,gc),b?n.password+=d:n.username+=d):b=!0;e=""}else if(u==bt||"/"==u||"?"==u||"#"==u||"\\"==u&&ut(n)){if(p&&""==e)return"Invalid authority";s-=vr(e).length+1;e="";f=fl}else e+=u;break;case fl:case el:if(i&&"file"==n.scheme){f=hl;continue}if(":"!=u||w){if(u==bt||"/"==u||"?"==u||"#"==u||"\\"==u&&ut(n)){if(ut(n)&&""==e)return"Invalid host";if(i&&""==e&&(nl(n)||null!==n.port))return;if(c=dc(n,e))return c;if(e="",f=vu,i)return;continue}"["==u?w=!0:"]"==u&&(w=!1);e+=u}else{if(""==e)return"Invalid host";if(c=dc(n,e))return c;if(e="",f=ol,i==el)return}break;case ol:if(!kc.test(u)){if(u==bt||"/"==u||"?"==u||"#"==u||"\\"==u&&ut(n)||i){if(""!=e){if(v=parseInt(e,10),v>65535)return"Invalid port";n.port=ut(n)&&v===rs[n.scheme]?null:v;e=""}if(i)return;f=vu;continue}return"Invalid port"}e+=u;break;case sl:if(n.scheme="file","/"==u||"\\"==u)f=cb;else{if(!r||"file"!=r.scheme){f=ri;continue}if(u==bt)n.host=r.host,n.path=r.path.slice(),n.query=r.query;else if("?"==u)n.host=r.host,n.path=r.path.slice(),n.query="",f=yr;else{if("#"!=u){rb(h.slice(s).join(""))||(n.host=r.host,n.path=r.path.slice(),ub(n));f=ri;continue}n.host=r.host;n.path=r.path.slice();n.query=r.query;n.fragment="";f=vi}}break;case cb:if("/"==u||"\\"==u){f=hl;break}r&&"file"==r.scheme&&!rb(h.slice(s).join(""))&&(gf(r.path[0],!0)?n.path.push(r.path[0]):n.host=r.host);f=ri;continue;case hl:if(u==bt||"/"==u||"\\"==u||"?"==u||"#"==u){if(!i&&gf(e))f=ri;else if(""==e){if(n.host="",i)return;f=vu}else{if(c=dc(n,e))return c;if("localhost"==n.host&&(n.host=""),i)return;e="";f=vu}continue}e+=u;break;case vu:if(ut(n)){if(f=ri,"/"!=u&&"\\"!=u)continue}else if(i||"?"!=u)if(i||"#"!=u){if(u!=bt&&(f=ri,"/"!=u))continue}else n.fragment="",f=vi;else n.query="",f=yr;break;case ri:if(u==bt||"/"==u||"\\"==u&&ut(n)||!i&&("?"==u||"#"==u)){if(".."===(l=(l=e).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(ub(n),"/"==u||"\\"==u&&ut(n)||n.path.push("")):cet(e)?"/"==u||"\\"==u&&ut(n)||n.path.push(""):("file"==n.scheme&&!n.path.length&&gf(e)&&(n.host&&(n.host=""),e=e.charAt(0)+":"),n.path.push(e)),e="","file"==n.scheme&&(u==bt||"?"==u||"#"==u))for(;n.path.length>1&&""===n.path[0];)n.path.shift();"?"==u?(n.query="",f=yr):"#"==u&&(n.fragment="",f=vi)}else e+=gi(u,ib);break;case lb:"?"==u?(n.query="",f=yr):"#"==u?(n.fragment="",f=vi):u!=bt&&(n.path[0]+=gi(u,is));break;case yr:i||"#"!=u?u!=bt&&(n.query+="'"==u&&ut(n)?"%27":"#"==u?"%23":gi(u,is)):(n.fragment="",f=vi);break;case vi:u!=bt&&(n.fragment+=gi(u,tb))}s++}},ne=function w(n){var f,i,t=pf(this,w,"URL"),r=arguments.length>1?arguments[1]:void 0,s=String(n),u=dft(t,{type:"URL"}),e,o;if(void 0!==r)if(r instanceof w)f=k(r);else if(i=ui(f={},String(r)))throw TypeError(i);if(i=ui(u,s,null,f))throw TypeError(i);e=u.searchParams=new kft;o=bc(e);o.updateSearchParams(u.query);o.updateURL=function(){u.query=String(e)||null};nt||(t.href=es.call(t),t.origin=ab.call(t),t.protocol=vb.call(t),t.username=yb.call(t),t.password=pb.call(t),t.host=wb.call(t),t.hostname=bb.call(t),t.port=kb.call(t),t.pathname=db.call(t),t.search=gb.call(t),t.searchParams=nk.call(t),t.hash=tk.call(t))},cl=ne.prototype,es=function(){var n=k(this),r=n.scheme,h=n.username,u=n.password,f=n.host,e=n.port,i=n.path,o=n.query,s=n.fragment,t=r+":";return null!==f?(t+="//",nl(n)&&(t+=h+(u?":"+u:"")+"@"),t+=df(f),null!==e&&(t+=":"+e)):"file"==r&&(t+="//"),t+=n.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==o&&(t+="?"+o),null!==s&&(t+="#"+s),t},ab=function(){var n=k(this),t=n.scheme,i=n.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(n){return"null"}return"file"!=t&&ut(n)?t+"://"+df(n.host)+(null!==i?":"+i:""):"null"},vb=function(){return k(this).scheme+":"},yb=function(){return k(this).username},pb=function(){return k(this).password},wb=function(){var t=k(this),n=t.host,i=t.port;return null===n?"":null===i?df(n):df(n)+":"+i},bb=function(){var n=k(this).host;return null===n?"":df(n)},kb=function(){var n=k(this).port;return null===n?"":String(n)},db=function(){var t=k(this),n=t.path;return t.cannotBeABaseURL?n[0]:n.length?"/"+n.join("/"):""},gb=function(){var n=k(this).query;return n?"?"+n:""},nk=function(){return k(this).searchParams},tk=function(){var n=k(this).fragment;return n?"#"+n:""},kt=function(n,t){return{get:n,set:t,configurable:!0,enumerable:!0}};(nt&&yy(cl,{href:kt(es,function(n){var t=k(this),r=String(n),i=ui(t,r);if(i)throw TypeError(i);bc(t.searchParams).updateSearchParams(t.query)}),origin:kt(ab),protocol:kt(vb,function(n){var t=k(this);ui(t,String(n)+":",il)}),username:kt(yb,function(n){var i=k(this),r=vr(String(n)),t;if(!tl(i))for(i.username="",t=0;t<r.length;t++)i.username+=gi(r[t],gc)}),password:kt(pb,function(n){var i=k(this),r=vr(String(n)),t;if(!tl(i))for(i.password="",t=0;t<r.length;t++)i.password+=gi(r[t],gc)}),host:kt(wb,function(n){var t=k(this);t.cannotBeABaseURL||ui(t,String(n),fl)}),hostname:kt(bb,function(n){var t=k(this);t.cannotBeABaseURL||ui(t,String(n),el)}),port:kt(kb,function(n){var t=k(this);tl(t)||(""==(n=String(n))?t.port=null:ui(t,n,ol))}),pathname:kt(db,function(n){var t=k(this);t.cannotBeABaseURL||(t.path=[],ui(t,n+"",vu))}),search:kt(gb,function(n){var t=k(this);""==(n=String(n))?t.query=null:("?"==n.charAt(0)&&(n=n.slice(1)),t.query="",ui(t,n,yr));bc(t.searchParams).updateSearchParams(t.query)}),searchParams:kt(nk),hash:kt(tk,function(n){var t=k(this);""!=(n=String(n))?("#"==n.charAt(0)&&(n=n.slice(1)),t.fragment="",ui(t,n,vi)):t.fragment=null})}),rt(cl,"toJSON",function(){return es.call(this)},{enumerable:!0}),rt(cl,"toString",function(){return es.call(this)},{enumerable:!0}),kf)&&(ll=kf.createObjectURL,al=kf.revokeObjectURL,ll&&rt(ne,"createObjectURL",function(){return ll.apply(kf,arguments)}),al&&rt(ne,"revokeObjectURL",function(){return al.apply(kf,arguments)}));hr(ne,"URL");s({global:!0,forced:!ow,sham:!nt},{URL:ne}),function(n){var r=function(){try{return!!Symbol.iterator}catch(n){return!1}}(),i=function(n){var t={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t},u=function(n){return encodeURIComponent(n).replace(/%20/g,"+")},f=function(n){return decodeURIComponent(String(n).replace(/\+/g," "))},t;"URLSearchParams"in n&&"a=1"===new n.URLSearchParams("?a=1").toString()||function(){var f=function n(t){var u,e,i,r,f;if(Object.defineProperty(this,"_entries",{writable:!0,value:{}}),u=ik(t),"undefined"!==u)if("string"===u)""!==t&&this._fromString(t);else if(t instanceof n)e=this,t.forEach(function(n,t){e.append(t,n)});else{if(null===t||"object"!==u)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(i=0;i<t.length;i++){if(r=t[i],"[object Array]"!==Object.prototype.toString.call(r)&&2===r.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(r[0],r[1])}else for(f in t)t.hasOwnProperty(f)&&this.append(f,t[f])}},t=f.prototype;t.append=function(n,t){n in this._entries?this._entries[n].push(String(t)):this._entries[n]=[String(t)]};t.delete=function(n){delete this._entries[n]};t.get=function(n){return n in this._entries?this._entries[n][0]:null};t.getAll=function(n){return n in this._entries?this._entries[n].slice(0):[]};t.has=function(n){return n in this._entries};t.set=function(n,t){this._entries[n]=[String(t)]};t.forEach=function(n,t){var u,i,r;for(i in this._entries)if(this._entries.hasOwnProperty(i))for(u=this._entries[i],r=0;r<u.length;r++)n.call(t,u[r],i,this)};t.keys=function(){var n=[];return this.forEach(function(t,i){n.push(i)}),i(n)};t.values=function(){var n=[];return this.forEach(function(t){n.push(t)}),i(n)};t.entries=function(){var n=[];return this.forEach(function(t,i){n.push([i,t])}),i(n)};r&&(t[Symbol.iterator]=t.entries);t.toString=function(){var n=[];return this.forEach(function(t,i){n.push(u(i)+"="+u(t))}),n.join("&")};n.URLSearchParams=f}();t=n.URLSearchParams.prototype;"function"!=typeof t.sort&&(t.sort=function(){var i=this,n=[],t;for(this.forEach(function(t,r){n.push([r,t]);i._entries||i.delete(r)}),n.sort(function(n,t){return n[0]<t[0]?-1:n[0]>t[0]?1:0}),i._entries&&(i._entries={}),t=0;t<n.length;t++)this.append(n[t][0],n[t][1])});"function"!=typeof t._fromString&&Object.defineProperty(t,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(n){var i,t,r,u;if(this._entries)this._entries={};else for(i=[],this.forEach(function(n,t){i.push(t)}),t=0;t<i.length;t++)this.delete(i[t]);for(u=(n=n.replace(/^\?/,"")).split("&"),t=0;t<u.length;t++)r=u[t].split("="),this.append(f(r[0]),r.length>1?f(r[1]):"")}})}(void 0!==w?w:"undefined"!=typeof window?window:"undefined"!=typeof self?self:w),function(n){if(function(){try{var t=new n.URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(n){return!1}}()||function(){var t=n.URL,i=function(t,i){var u,f,r,h;if("string"!=typeof t&&(t=String(t)),f=document,i&&(void 0===n.location||i!==n.location.href)){(u=(f=document.implementation.createHTMLDocument("")).createElement("base")).href=i;f.head.appendChild(u);try{if(0!==u.href.indexOf(i))throw new Error(u.href);}catch(n){throw new Error("URL unable to set base "+i+" due to "+n);}}if(r=f.createElement("a"),r.href=t,u&&(f.body.appendChild(r),r.href=r.href),":"===r.protocol||!/:/.test(r.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:r});var e=new n.URLSearchParams(this.search),o=!0,s=!0,c=this;["append","delete","set"].forEach(function(n){var t=e[n];e[n]=function(){t.apply(e,arguments);o&&(s=!1,c.search=e.toString(),s=!0)}});Object.defineProperty(this,"searchParams",{value:e,enumerable:!0});h=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==h&&(h=this.search,s&&(o=!1,this.searchParams._fromString(this.search),o=!0))}})},r=i.prototype;["hash","host","hostname","port","protocol"].forEach(function(n){!function(n){Object.defineProperty(r,n,{get:function(){return this._anchorElement[n]},set:function(t){this._anchorElement[n]=t},enumerable:!0})}(n)});Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(n){this._anchorElement.search=n;this._updateSearchParams()},enumerable:!0});Object.defineProperties(r,{toString:{get:function(){var n=this;return function(){return n.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(n){this._anchorElement.href=n;this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(n){this._anchorElement.pathname=n},enumerable:!0},origin:{get:function(){var n={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=n&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(){},enumerable:!0},username:{get:function(){return""},set:function(){},enumerable:!0}});i.createObjectURL=function(){return t.createObjectURL.apply(t,arguments)};i.revokeObjectURL=function(){return t.revokeObjectURL.apply(t,arguments)};n.URL=i}(),void 0!==n.location&&!("origin"in n.location)){var t=function(){return n.location.protocol+"//"+n.location.hostname+(n.location.port?":"+n.location.port:"")};try{Object.defineProperty(n.location,"origin",{get:t,enumerable:!0})}catch(i){setInterval(function(){n.location.origin=t()},100)}}}(void 0!==w?w:"undefined"!=typeof window?window:"undefined"!=typeof self?self:w);var fk=y("isConcatSpreadable"),aet=!v(function(){var n=[];return n[fk]=!1,n.concat()[0]!==n}),vet=vf("concat"),yet=function(n){if(!a(n))return!1;var t=n[fk];return void 0!==t?!!t:uu(n)};s({target:"Array",proto:!0,forced:!aet||!vet},{concat:function(){for(var r,e,n,o=ci(this),u=eh(o,0),t=0,i=-1,f=arguments.length;i<f;i++)if(n=-1===i?o:arguments[i],yet(n)){if(t+(e=dt(n.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<e;r++,t++)r in n&&su(u,t,n[r])}else{if(t>=9007199254740991)throw TypeError("Maximum allowed index exceeded");su(u,t++,n)}return u.length=t,u}});ek=ki.filter;s({target:"Array",proto:!0,forced:!vf("filter")},{filter:function(n){return ek(this,n,arguments.length>1?arguments[1]:void 0)}});ok=ki.find;yl=!0;"find"in[]&&Array(1).find(function(){yl=!1});s({target:"Array",proto:!0,forced:yl},{find:function(n){return ok(this,n,arguments.length>1?arguments[1]:void 0)}});eu("find");pl=y("iterator");wl=!1;try{sk=0;bl={next:function(){return{done:!!sk++}},"return":function(){wl=!0}};bl[pl]=function(){return this};Array.from(bl,function(){throw 2;})}catch(w){}os=function(n,t){var i,r;if(!t&&!wl)return!1;i=!1;try{r={};r[pl]=function(){return{next:function(){return{done:i=!0}}}};n(r)}catch(n){}return i};hk=!os(function(n){Array.from(n)});s({target:"Array",stat:!0,forced:hk},{from:vr});ck=ly.includes;s({target:"Array",proto:!0},{includes:function(n){return ck(this,n,arguments.length>1?arguments[1]:void 0)}});eu("includes");lk=ki.map;s({target:"Array",proto:!0,forced:!vf("map")},{map:function(n){return lk(this,n,arguments.length>1?arguments[1]:void 0)}});var kl=function(n,t,i){var r,u;return vo&&"function"==typeof(r=t.constructor)&&r!==i&&a(u=r.prototype)&&u!==i.prototype&&vo(n,u),n},dl="\t\n\v\f\r                　\u2028\u2029\ufeff",ss="["+dl+"]",pet=RegExp("^"+ss+ss+"*"),wet=RegExp(ss+ss+"*$"),gl=function(n){return function(t){var i=String(yt(t));return 1&n&&(i=i.replace(pet,"")),2&n&&(i=i.replace(wet,"")),i}},ak={start:gl(1),end:gl(2),trim:gl(3)},bet=ff.f,ket=dr.f,det=ct.f,get=ak.trim,ir=i.Number,hs=ir.prototype,not="Number"==at(bi(hs)),vk=function(n){var r,o,u,f,e,s,i,h,t=or(n,!1);if("string"==typeof t&&t.length>2)if(43===(r=(t=get(t)).charCodeAt(0))||45===r){if(88===(o=t.charCodeAt(2))||120===o)return NaN}else if(48===r){switch(t.charCodeAt(1)){case 66:case 98:u=2;f=49;break;case 79:case 111:u=8;f=55;break;default:return+t}for(s=(e=t.slice(2)).length,i=0;i<s;i++)if((h=e.charCodeAt(i))<48||h>f)return NaN;return parseInt(e,u)}return+t};if(ru("Number",!ir(" 0o1")||!ir("0b1")||ir("+0x1"))){for(var cs,te=function w(n){var i=arguments.length<1?0:n,t=this;return t instanceof w&&(not?v(function(){hs.valueOf.call(t)}):"Number"!=at(t))?kl(new ir(vk(i)),t,w):vk(i)},yk=nt?bet(ir):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),na=0;yk.length>na;na++)o(ir,cs=yk[na])&&!o(te,cs)&&det(te,cs,ket(ir,cs));te.prototype=hs;hs.constructor=te;rt(i,"Number",te)}pk=v(function(){li(1)});s({target:"Object",stat:!0,forced:pk},{keys:function(n){return li(ci(n))}});var wk=function(n){if(sc(n))throw TypeError("The method doesn't accept regular expressions");return n},tot=y("match"),bk=function(n){var t=/./;try{"/./"[n](t)}catch(i){try{return t[tot]=!1,"/./"[n](t)}catch(n){}}return!1};s({target:"String",proto:!0,forced:!bk("includes")},{includes:function(n){return!!~String(yt(this)).indexOf(wk(n),arguments.length>1?arguments[1]:void 0)}});var iot=!v(function(){return Object.isExtensible(Object.preventExtensions({}))}),pr=kr(function(n){var u=ct.f,t=no("meta"),f=0,i=Object.isExtensible||function(){return!0},r=function(n){u(n,t,{value:{objectID:"O"+ ++f,weakData:{}}})},s=n.exports={REQUIRED:!1,fastKey:function(n,u){if(!a(n))return"symbol"==(void 0===n?"undefined":e(n))?n:("string"==typeof n?"S":"P")+n;if(!o(n,t)){if(!i(n))return"F";if(!u)return"E";r(n)}return n[t].objectID},getWeakData:function(n,u){if(!o(n,t)){if(!i(n))return!0;if(!u)return!1;r(n)}return n[t].weakData},onFreeze:function(n){return iot&&s.REQUIRED&&i(n)&&!o(n,t)&&r(n),n}};gr[t]=!0}),ls=(pr.REQUIRED,pr.fastKey,pr.getWeakData,pr.onFreeze,kr(function(n){var t=function(n,t){this.stopped=n;this.result=t};(n.exports=function(n,i,r,u,f){var s,c,o,a,e,h,l=sf(i,r,u?2:1);if(f)s=n;else{if("function"!=typeof(c=go(n)))throw TypeError("Target is not iterable");if(hw(c)){for(o=0,a=dt(n.length);a>o;o++)if((e=u?l(b(h=n[o])[0],h[1]):l(n[o]))&&e instanceof t)return e;return new t(!1)}s=c.call(n)}for(;!(h=s.next()).done;)if((e=sw(s,l,h.value,u))&&e instanceof t)return e;return new t(!1)}).stop=function(n){return new t(!0,n)}})),as=pr.getWeakData,rot=tt.set,uot=tt.getterFor,fot=ki.find,eot=ki.findIndex,oot=0,vs=function(n){return n.frozen||(n.frozen=new kk)},kk=function(){this.entries=[]},ta=function(n,t){return fot(n.entries,function(n){return n[0]===t})};kk.prototype={get:function(n){var t=ta(this,n);if(t)return t[1]},has:function(n){return!!ta(this,n)},set:function(n,t){var i=ta(this,n);i?i[1]=t:this.entries.push([n,t])},"delete":function(n){var t=eot(this.entries,function(t){return t[0]===n});return~t&&this.entries.splice(t,1),!!~t}};ia={getConstructor:function(n,t,i,r){var u=n(function(n,f){pf(n,u,t);rot(n,{type:t,id:oot++,frozen:void 0});null!=f&&ls(f,n[r],n,i)}),f=uot(t),e=function(n,t,i){var r=f(n),u=as(b(t),!0);return!0===u?vs(r).set(t,i):u[r.id]=i,n};return bf(u.prototype,{"delete":function(n){var i=f(this),t;return a(n)?(t=as(n),!0===t?vs(i).delete(n):t&&o(t,i.id)&&delete t[i.id]):!1},has:function(n){var i=f(this),t;return a(n)?(t=as(n),!0===t?vs(i).has(n):t&&o(t,i.id)):!1}}),bf(u.prototype,i?{get:function(n){var i=f(this),t;if(a(n))return t=as(n),!0===t?vs(i).get(n):t?t[i.id]:void 0},set:function(n,t){return e(this,n,t)}}:{add:function(n){return e(this,n,!0)}}),u}};kr(function(n){var t,u=tt.enforce,y=!i.ActiveXObject&&"ActiveXObject"in i,f=Object.isExtensible,o=function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}},p=n.exports=function(n,t,r){var f=i[n],e=f&&f.prototype,u=f,o="set",l={},h=function(n){var t=e[n];rt(e,n,"add"==n?function(n){return t.call(this,0===n?0:n),this}:"delete"==n?function(n){return!!a(n)&&t.call(this,0===n?0:n)}:"get"==n?function(n){if(a(n))return t.call(this,0===n?0:n)}:"has"==n?function(n){return!!a(n)&&t.call(this,0===n?0:n)}:function(n,i){return t.call(this,0===n?0:n,i),this})};if(ru(n,"function"!=typeof f||!1))u=r.getConstructor(t,n,!0,o),pr.REQUIRED=!0;else if(ru(n,!0)){var c=new u,y=c[o]({},1)!=c,p=v(function(){c.has(1)});os(function(n){new f(n)})||((u=t(function(t,i){pf(t,u,n);var r=kl(new f,t,u);return null!=i&&ls(i,r[o],r,!0),r})).prototype=e,e.constructor=u);!!p&&(h("delete"),h("has"),h("get"));y&&h(o);e.clear&&delete e.clear}return l[n]=u,s({global:!0,forced:u!=f},l),hr(u,n),u}("WeakMap",o,ia);if(oy&&y){t=ia.getConstructor(o,"WeakMap",!0);pr.REQUIRED=!0;var r=p.prototype,h=r.delete,e=r.has,c=r.get,l=r.set;bf(r,{"delete":function(n){if(a(n)&&!f(n)){var i=u(this);return i.frozen||(i.frozen=new t),h.call(this,n)||i.frozen.delete(n)}return h.call(this,n)},has:function(n){if(a(n)&&!f(n)){var i=u(this);return i.frozen||(i.frozen=new t),e.call(this,n)||i.frozen.has(n)}return e.call(this,n)},get:function(n){if(a(n)&&!f(n)){var i=u(this);return i.frozen||(i.frozen=new t),e.call(this,n)?c.call(this,n):i.frozen.get(n)}return c.call(this,n)},set:function(n,i){if(a(n)&&!f(n)){var r=u(this);r.frozen||(r.frozen=new t);e.call(this,n)?l.call(this,n,i):r.frozen.set(n,i)}else l.call(this,n,i);return this}})}});s({target:"Object",stat:!0,forced:Object.assign!==wf},{assign:wf});dk=ak.trim;s({target:"String",proto:!0,forced:function(n){return v(function(){return!!dl[n]()||"​᠎"!="​᠎"[n]()||dl[n].name!==n})}("trim")},{trim:function(){return dk(this)}});var ra="".repeat||function(n){var i=String(yt(this)),r="",t=sr(n);if(t<0||t==1/0)throw RangeError("Wrong number of repetitions");for(;t>0;(t>>>=1)&&(i+=i))1&t&&(r+=i);return r},gk=1..toFixed,nd=Math.floor,ys=function w(n,t,i){return 0===t?i:t%2==1?w(n,t-1,i*n):w(n*n,t/2,i)},sot=gk&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0))||!v(function(){gk.call({})});s({target:"Number",proto:!0,forced:sot},{toFixed:function(n){var u,s,r,h,t=function(n){if("number"!=typeof n&&"Number"!=at(n))throw TypeError("Incorrect invocation");return+n}(this),i=sr(n),e=[0,0,0,0,0,0],c="",f="0",o=function(n,t){for(var r=-1,i=t;++r<6;)i+=n*e[r],e[r]=i%1e7,i=nd(i/1e7)},l=function(n){for(var i=6,t=0;--i>=0;)t+=e[i],e[i]=nd(t/n),t=t%n*1e7},a=function(){for(var i,t=6,n="";--t>=0;)(""!==n||0===t||0!==e[t])&&(i=String(e[t]),n=""===n?i:n+ra.call("0",7-i.length)+i);return n};if(i<0||i>20)throw RangeError("Incorrect fraction digits");if(t!=t)return"NaN";if(t<=-1e21||t>=1e21)return String(t);if(t<0&&(c="-",t=-t),t>1e-21)if(s=(u=function(){for(var i=0,n=t*ys(2,69,1);n>=4096;)i+=12,n/=4096;for(;n>=2;)i+=1,n/=2;return i}()-69)<0?t*ys(2,-u,1):t/ys(2,u,1),s*=4503599627370496,(u=52-u)>0){for(o(0,s),r=i;r>=7;)o(1e7,0),r-=7;for(o(ys(10,r,1),0),r=u-1;r>=23;)l(8388608),r-=23;l(1<<r);o(1,1);l(2);f=a()}else o(0,s),o(1<<-u,0),f=a()+ra.call("0",i);return i>0?c+((h=f.length)<=i?"0."+ra.call("0",i-h)+f:f.slice(0,h-i)+"."+f.slice(h-i)):c+f}});var hot=uf.f,td=function(n){return function(t){for(var i,r=pt(t),u=li(r),o=u.length,f=0,e=[];o>f;)i=u[f++],nt&&!hot.call(r,i)||e.push(n?[i,r[i]]:r[i]);return e}},id={entries:td(!0),values:td(!1)},cot=id.entries;s({target:"Object",stat:!0},{entries:function(n){return cot(n)}});rd=id.values;s({target:"Object",stat:!0},{values:function(n){return rd(n)}});ua={addCSS:!0,thumbWidth:15,watch:!0};s({target:"Number",stat:!0},{isNaN:function(n){return n!=n}});var ie=function(n){return null!=n?n.constructor:null},fa=function(n,t){return Boolean(n&&t&&n instanceof t)},ud=function(n){return null==n},fd=function(n){return ie(n)===Object},ed=function(n){return ie(n)===String},od=function(n){return Array.isArray(n)},sd=function(n){return fa(n,NodeList)},st={nullOrUndefined:ud,object:fd,number:function(n){return ie(n)===Number&&!Number.isNaN(n)},string:ed,boolean:function(n){return ie(n)===Boolean},"function":function(n){return ie(n)===Function},array:od,nodeList:sd,element:function(n){return fa(n,Element)},event:function(n){return fa(n,Event)},empty:function(n){return ud(n)||(ed(n)||od(n)||sd(n))&&!n.length||fd(n)&&!Object.keys(n).length}};wo("match",1,function(n,t,i){return[function(t){var i=yt(this),r=null==t?void 0:t[n];return void 0!==r?r.call(t,i):new RegExp(t)[n](String(i))},function(n){var s=i(t,n,this),r,u,h,c,e,f,o;if(s.done)return s.value;if(r=b(n),u=String(this),!r.global)return hu(r,u);for(h=r.unicode,r.lastIndex=0,e=[],f=0;null!==(c=hu(r,u));)o=String(c[0]),e[f]=o,""===o&&(r.lastIndex=ec(u,dt(r.lastIndex),h)),f++;return 0===f?null:e}]});var yu,hd,ea,lot=function(){function n(t,i){nr(this,n);st.element(t)?this.element=t:st.string(t)&&(this.element=document.querySelector(t));st.element(this.element)&&st.empty(this.element.rangeTouch)&&(this.config=Object.assign({},ua,i),this.init())}return tr(n,[{key:"init",value:function(){n.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){n.enabled&&(this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(n){var t=this,i=n?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(n){t.element[i](n,function(n){return t.set(n)},!1)})}},{key:"get",value:function(t){if(!n.enabled||!st.event(t))return null;var i,r=t.target,o=t.changedTouches[0],f=parseFloat(r.getAttribute("min"))||0,s=parseFloat(r.getAttribute("max"))||100,h=parseFloat(r.getAttribute("step"))||1,c=s-f,u=r.getBoundingClientRect(),e=100/u.width*(this.config.thumbWidth/2)/100;return(i=100/u.width*(o.clientX-u.left))<0?i=0:i>100&&(i=100),i<50?i-=(100-2*i)*e:i>50&&(i+=2*(i-50)*e),f+function(n,t){var r,i;return t<1?(r=(i="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/))?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0,parseFloat(n.toFixed(r))):Math.round(n/t)*t}(c*(i/100),h)}},{key:"set",value:function(t){n.enabled&&st.event(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(n,t){if(n&&t){var i=new Event(t);n.dispatchEvent(i)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r;return(st.empty(t)||st.string(t)?i=Array.from(document.querySelectorAll(st.string(t)?t:'input[type="range"]')):st.element(t)?i=[t]:st.nodeList(t)?i=Array.from(t):st.array(t)&&(i=t.filter(st.element)),st.empty(i))?null:(r=Object.assign({},ua,u),st.string(t)&&r.watch&&new MutationObserver(function(i){Array.from(i).forEach(function(i){Array.from(i.addedNodes).forEach(function(i){var u;st.element(i)&&function(){return Array.from(document.querySelectorAll(u)).includes(this)}.call(i,u=t)&&new n(i,r)})})}).observe(document.body,{childList:!0,subtree:!0}),i.map(function(t){return new n(t,u)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),n}(),cd=y("species"),ld=function(n){var t=io(n),i=ct.f;nt&&t&&!t[cd]&&i(t,cd,{configurable:!0,get:function(){return this}})},ad=i.location,oa=i.setImmediate,sa=i.clearImmediate,vd=i.process,yd=i.MessageChannel,ha=i.Dispatch,ca=0,re={},la=function(n){if(re.hasOwnProperty(n)){var t=re[n];delete re[n];t()}},aa=function(n){return function(){la(n)}},pd=function(n){la(n.data)},wd=function(n){i.postMessage(n+"",ad.protocol+"//"+ad.host)};oa&&sa||(oa=function(n){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return re[++ca]=function(){("function"==typeof n?n:Function(n)).apply(void 0,t)},yu(ca),ca},sa=function(n){delete re[n]},"process"==at(vd)?yu=function(n){vd.nextTick(aa(n))}:ha&&ha.now?yu=function(n){ha.now(aa(n))}:yd?(ea=(hd=new yd).port2,hd.port1.onmessage=pd,yu=sf(ea.postMessage,ea,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||v(wd)?yu="onreadystatechange"in de("script")?function(n){uh.appendChild(de("script")).onreadystatechange=function(){uh.removeChild(this);la(n)}}:function(n){setTimeout(aa(n),0)}:(yu=wd,i.addEventListener("message",pd,!1)));var ue,wr,fe,pu,va,ya,bd,kd={set:oa,clear:sa},dd=io("navigator","userAgent")||"",aot=dr.f,vot=kd.set,gd=i.MutationObserver||i.WebKitMutationObserver,pa=i.process,wa=i.Promise,ng="process"==at(pa),tg=aot(i,"queueMicrotask"),ig=tg&&tg.value;ig||(ue=function(){var n,t;for(ng&&(n=pa.domain)&&n.exit();wr;){t=wr.fn;wr=wr.next;try{t()}catch(n){throw wr?pu():fe=void 0,n;}}fe=void 0;n&&n.enter()},ng?pu=function(){pa.nextTick(ue)}:gd&&!/(iphone|ipod|ipad).*applewebkit/i.test(dd)?(va=!0,ya=document.createTextNode(""),new gd(ue).observe(ya,{characterData:!0}),pu=function(){ya.data=va=!va}):wa&&wa.resolve?(bd=wa.resolve(void 0),pu=function(){bd.then(ue)}):pu=function(){vot.call(i,ue)});var ba,rg,ug,fg=ig||function(n){var t={fn:n,next:void 0};fe&&(fe.next=t);wr||(wr=t,pu());fe=t},yot=function(n){var t,i;this.promise=new n(function(n,r){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=n;i=r});this.resolve=cr(t);this.reject=cr(i)},ka={f:function(n){return new yot(n)}},eg=function(n,t){if(b(n),a(t)&&t.constructor===n)return t;var i=ka.f(n);return i.resolve(t),i.promise},da=function(n){try{return{error:!1,value:n()}}catch(n){return{error:!0,value:n}}},og=kd.set,pot=y("species"),yi="Promise",sg=tt.get,wot=tt.set,bot=tt.getterFor(yi),fi=i.Promise,hg=i.TypeError,ga=i.document,wu=i.process,cg=i.fetch,lg=wu&&wu.versions,kot=lg&&lg.v8||"",bu=ka.f,dot=bu,ee="process"==at(wu),got=!!(ga&&ga.createEvent&&i.dispatchEvent),oe=ru(yi,function(){var t=fi.resolve(1),n=function(){},i=(t.constructor={})[pot]=function(t){t(n,n)};return!((ee||"function"==typeof PromiseRejectionEvent)&&t.then(n)instanceof i&&0!==kot.indexOf("6.6")&&-1===dd.indexOf("Chrome/66"))}),nst=oe||!os(function(n){fi.all(n).catch(function(){})}),ag=function(n){var t;return!(!a(n)||"function"!=typeof(t=n.then))&&t},nv=function(n,t,i){if(!t.notified){t.notified=!0;var r=t.reactions;fg(function(){for(var s=t.value,c=1==t.state,l=0;r.length>l;){var u,a,v,f=r[l++],h=c?f.ok:f.fail,y=f.resolve,o=f.reject,e=f.domain;try{h?(c||(2===t.rejection&&ist(n,t),t.rejection=1),!0===h?u=s:(e&&e.enter(),u=h(s),e&&(e.exit(),v=!0)),u===f.promise?o(hg("Promise-chain cycle")):(a=ag(u))?a.call(u,y,o):y(u)):o(s)}catch(n){e&&!v&&e.exit();o(n)}}t.reactions=[];t.notified=!1;i&&!t.rejection&&tst(n,t)})}},vg=function(n,t,r){var u,f;got?((u=ga.createEvent("Event")).promise=t,u.reason=r,u.initEvent(n,!1,!0),i.dispatchEvent(u)):u={promise:t,reason:r};(f=i["on"+n])?f(u):"unhandledrejection"===n&&function(n,t){var r=i.console;r&&r.error&&(1===arguments.length?r.error(n):r.error(n,t))}("Unhandled promise rejection",r)},tst=function(n,t){og.call(i,function(){var i,r=t.value;if(yg(t)&&(i=da(function(){ee?wu.emit("unhandledRejection",r,n):vg("unhandledrejection",n,r)}),t.rejection=ee||yg(t)?2:1,i.error))throw i.value;})},yg=function(n){return 1!==n.rejection&&!n.parent},ist=function(n,t){og.call(i,function(){ee?wu.emit("rejectionHandled",n):vg("rejectionhandled",n,t.value)})},ku=function(n,t,i,r){return function(u){n(t,i,u,r)}},du=function(n,t,i,r){t.done||(t.done=!0,r&&(t=r),t.value=i,t.state=2,nv(n,t,!0))},pg=function w(n,t,i,r){if(!t.done){t.done=!0;r&&(t=r);try{if(n===i)throw hg("Promise can't be resolved itself");var u=ag(i);u?fg(function(){var r={done:!1};try{u.call(i,ku(w,n,r,t),ku(du,n,r,t))}catch(w){du(n,r,w,t)}}):(t.value=i,t.state=1,nv(n,t,!1))}catch(i){du(n,{done:!1},i,t)}}};oe&&(fi=function(n){pf(this,fi,yi);cr(n);ba.call(this);var t=sg(this);try{n(ku(pg,this,t),ku(du,this,t))}catch(n){du(this,t,n)}},(ba=function(){wot(this,{type:yi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=bf(fi.prototype,{then:function(n,t){var r=bot(this),i=bu(uw(this,fi));return i.ok="function"!=typeof n||n,i.fail="function"==typeof t&&t,i.domain=ee?wu.domain:void 0,r.parent=!0,r.reactions.push(i),0!=r.state&&nv(this,r,!1),i.promise},"catch":function(n){return this.then(void 0,n)}}),rg=function(){var n=new ba,t=sg(n);this.promise=n;this.resolve=ku(pg,n,t);this.reject=ku(du,n,t)},ka.f=bu=function(n){return n===fi||n===ug?new rg(n):dot(n)},"function"==typeof cg&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(){return eg(fi,cg.apply(i,arguments))}}));s({global:!0,wrap:!0,forced:oe},{Promise:fi});hr(fi,yi,!1);ld(yi);ug=iu.Promise;s({target:yi,stat:!0,forced:oe},{reject:function(n){var t=bu(this);return t.reject.call(void 0,n),t.promise}});s({target:yi,stat:!0,forced:oe},{resolve:function(n){return eg(this,n)}});s({target:yi,stat:!0,forced:nst},{all:function(n){var t=this,i=bu(t),r=i.resolve,u=i.reject,f=da(function(){var e=cr(t.resolve),i=[],o=0,f=1;ls(n,function(n){var h=o++,s=!1;i.push(void 0);f++;e.call(t,n).then(function(n){s||(s=!0,i[h]=n,--f||r(i))},u)});--f||r(i)});return f.error&&u(f.value),i.promise},race:function(n){var t=this,i=bu(t),r=i.reject,u=da(function(){var u=cr(t.resolve);ls(n,function(n){u.call(t,n).then(i.resolve,r)})});return u.error&&r(u.value),i.promise}});tv="".startsWith;wg=Math.min;s({target:"String",proto:!0,forced:!bk("startsWith")},{startsWith:function(n){var r=String(yt(this)),t,i;return wk(n),t=dt(wg(arguments.length>1?arguments[1]:void 0,r.length)),i=String(n),tv?tv.call(r,i,t):r.slice(t,t+i.length)===i}});var bg,iv,rv,gu=function(n){return null!=n?n.constructor:null},ei=function(n,t){return Boolean(n&&t&&n instanceof t)},uv=function(n){return null==n},kg=function(n){return gu(n)===Object},ps=function(n){return gu(n)===String},dg=function(n){return Array.isArray(n)},gg=function(n){return ei(n,NodeList)},nn=function(n){return uv(n)||(ps(n)||dg(n)||gg(n))&&!n.length||kg(n)&&!Object.keys(n).length},n={nullOrUndefined:uv,object:kg,number:function(n){return gu(n)===Number&&!Number.isNaN(n)},string:ps,boolean:function(n){return gu(n)===Boolean},"function":function(n){return gu(n)===Function},array:dg,weakMap:function(n){return ei(n,WeakMap)},nodeList:gg,element:function(n){return ei(n,Element)},textNode:function(n){return gu(n)===Text},event:function(n){return ei(n,Event)},keyboardEvent:function(n){return ei(n,KeyboardEvent)},cue:function(n){return ei(n,window.TextTrackCue)||ei(n,window.VTTCue)},track:function(n){return ei(n,TextTrack)||!uv(n)&&ps(n.kind)},promise:function(n){return ei(n,Promise)},url:function(n){if(ei(n,window.URL))return!0;if(!ps(n))return!1;var t=n;n.startsWith("http://")&&n.startsWith("https://")||(t="http://".concat(n));try{return!nn(new URL(t).hostname)}catch(n){return!1}},empty:nn},fv=(bg=document.createElement("span"),iv={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},rv=Object.keys(iv).find(function(n){return void 0!==bg.style[n]}),!!n.string(rv)&&iv[rv]);et={isIE:!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)};rn=function(){var t=!1,n;try{n=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,n);window.removeEventListener("test",null,n)}catch(t){}return t}();lv={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"};d={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(n,t,i){var u=et.isIPhone&&i&&d.playsinline,r=d[n]||"html5"!==t;return{api:r,ui:r&&d.rangeInput&&("video"!==n||!et.isIPhone||u)}},pip:!(et.isIPhone||!n.function(r("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||r("video").disablePictureInPicture)),airplay:n.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(n.empty(t))return!1;var r=ft(t.split("/"),1)[0],i=t;if(!this.isHTML5||r!==this.type)return!1;Object.keys(lv).includes(i)&&(i+='; codecs="'.concat(lv[t],'"'));try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(cv=document.createElement("input"),cv.type="range","range"===cv.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==fv,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches};ur={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(i){var r=i.getAttribute("type");return!!n.empty(r)||d.mime.call(t,r)}):[]},getQualityOptions:function(){return ur.getSources.call(this).map(function(n){return Number(n.getAttribute("size"))}).filter(Boolean)},extend:function(){if(this.isHTML5){var t=this;n.empty(this.config.ratio)||rr.call(t);Object.defineProperty(t.media,"quality",{get:function(){var n=ur.getSources.call(t).find(function(n){return n.getAttribute("src")===t.source});return n&&Number(n.getAttribute("size"))},set:function(n){var r=ur.getSources.call(t).find(function(t){return Number(t.getAttribute("size"))===n});if(r){var i=t.media,f=i.currentTime,e=i.paused,o=i.preload,s=i.readyState;t.media.src=r.getAttribute("src");("none"!==o||s)&&(t.once("loadedmetadata",function(){t.currentTime=f;e||t.play()}),t.media.load());u.call(t,t.media,"qualitychange",!1,{quality:n})}}})}},cancelRequests:function(){this.isHTML5&&(pi(ur.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};var rst=ct.f,ust=ff.f,fst=y("match"),si=i.RegExp,yv=si.prototype,se=/a/g,pv=/a/g,hn=new si(se)!==se;if(nt&&ru("RegExp",!hn||v(function(){return pv[fst]=!1,si(se)!=se||si(pv)==pv||"/a/i"!=si(se,"i")}))){for(var he=function w(n,t){var u=this instanceof w,i=sc(n),r=void 0===t;return!u&&i&&n.constructor===w&&r?n:kl(hn?new si(i&&!r?n.source:n,t):si((i=n instanceof w)?n.source:n,i&&r?tc.call(n):t),u?this:yv,w)},est=function(n){n in he||rst(he,n,{configurable:!0,get:function(){return si[n]},set:function(t){si[n]=t}})},cn=ust(si),ln=0;cn.length>ln;)est(cn[ln++]);yv.constructor=he;he.prototype=yv;rt(i,"RegExp",he)}ld("RegExp");var vn={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},ot=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t,u;return n.empty(i)||n.empty(r)?"":(t=un(r.i18n,i),n.empty(t))?Object.keys(vn).includes(i)?vn[i]:"":(u={"{seektime}":r.seekTime,"{title}":r.title},Object.entries(u).forEach(function(n){var i=ft(n,2),r=i[0],u=i[1];t=ce(t,r,u)}),t)},yn=function(){function t(n){nr(this,t);this.enabled=n.config.storage.enabled;this.key=n.config.storage.key}return tr(t,[{key:"get",value:function(i){var r,u;return!t.supported||!this.enabled?null:(r=window.localStorage.getItem(this.key),n.empty(r))?null:(u=JSON.parse(r),n.string(i)&&i.length?u[i]:u)}},{key:"set",value:function(i){if(t.supported&&this.enabled&&n.object(i)){var r=this.get();n.empty(r)&&(r={});g(r,i);window.localStorage.setItem(this.key,JSON.stringify(r))}}}],[{key:"supported",get:function(){try{return"localStorage"in window&&(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0)}catch(n){return!1}}}]),t}();wn=Math.ceil;bn=Math.floor;s({target:"Math",stat:!0},{trunc:function(n){return(n>0?bn:wn)(n)}});var kn=function(n){return Math.trunc(n/3600%60,10)},sst=function(n){return Math.trunc(n/60%60,10)},hst=function(n){return Math.trunc(n%60,10)};t={getIconUrl:function(){var n=new URL(this.config.iconUrl,window.location).host!==window.location.host||et.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements:function(){try{return this.elements.controls=it.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:tf.call(this,this.config.selectors.buttons.play),pause:it.call(this,this.config.selectors.buttons.pause),restart:it.call(this,this.config.selectors.buttons.restart),rewind:it.call(this,this.config.selectors.buttons.rewind),fastForward:it.call(this,this.config.selectors.buttons.fastForward),mute:it.call(this,this.config.selectors.buttons.mute),pip:it.call(this,this.config.selectors.buttons.pip),airplay:it.call(this,this.config.selectors.buttons.airplay),settings:it.call(this,this.config.selectors.buttons.settings),captions:it.call(this,this.config.selectors.buttons.captions),fullscreen:it.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=it.call(this,this.config.selectors.progress),this.elements.inputs={seek:it.call(this,this.config.selectors.inputs.seek),volume:it.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:it.call(this,this.config.selectors.display.buffer),currentTime:it.call(this,this.config.selectors.display.currentTime),duration:it.call(this,this.config.selectors.display.duration)},n.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon:function(n,i){var e=t.getIconUrl.call(this),o="".concat(e.cors?"":e.url,"#").concat(this.config.iconPrefix),u=document.createElementNS("http://www.w3.org/2000/svg","svg"),r,f;return ov(u,g(i,{role:"presentation",focusable:"false"})),r=document.createElementNS("http://www.w3.org/2000/svg","use"),f="".concat(o,"-").concat(n),"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",f),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f),u.appendChild(r),u},createLabel:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=ot(n,this.config);return r("span",Object.assign({},t,{"class":[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(t){if(n.empty(t))return null;var i=r("span",{"class":this.config.classNames.menu.value});return i.appendChild(r("span",{"class":this.config.classNames.menu.badge},t)),i},createButton:function(i,u){var h=this,e=g({},u),s=function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(n=function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return n=ce(n,"-"," "),n=ce(n,"_"," "),ce(n=an(n)," ","")}(n)).charAt(0).toLowerCase()+n.slice(1)}(i),f={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null},o;switch(["element","icon","label"].forEach(function(n){Object.keys(e).includes(n)&&(f[n]=e[n],delete e[n])}),"button"!==f.element||Object.keys(e).includes("type")||(e.type="button"),Object.keys(e).includes("class")?e.class.split(" ").some(function(n){return n===h.config.classNames.control})||g(e,{"class":"".concat(e.class," ").concat(this.config.classNames.control)}):e.class=this.config.classNames.control,i){case"play":f.toggle=!0;f.label="play";f.labelPressed="pause";f.icon="play";f.iconPressed="pause";break;case"mute":f.toggle=!0;f.label="mute";f.labelPressed="unmute";f.icon="volume";f.iconPressed="muted";break;case"captions":f.toggle=!0;f.label="enableCaptions";f.labelPressed="disableCaptions";f.icon="captions-off";f.iconPressed="captions-on";break;case"fullscreen":f.toggle=!0;f.label="enterFullscreen";f.labelPressed="exitFullscreen";f.icon="enter-fullscreen";f.iconPressed="exit-fullscreen";break;case"play-large":e.class+=" ".concat(this.config.classNames.control,"--overlaid");s="play";f.label="play";f.icon="play";break;default:n.empty(f.label)&&(f.label=s);n.empty(f.icon)&&(f.icon=i)}return o=r(f.element),f.toggle?(o.appendChild(t.createIcon.call(this,f.iconPressed,{"class":"icon--pressed"})),o.appendChild(t.createIcon.call(this,f.icon,{"class":"icon--not-pressed"})),o.appendChild(t.createLabel.call(this,f.labelPressed,{"class":"label--pressed"})),o.appendChild(t.createLabel.call(this,f.label,{"class":"label--not-pressed"}))):(o.appendChild(t.createIcon.call(this,f.icon)),o.appendChild(t.createLabel.call(this,f.label))),g(e,oi(this.config.selectors.buttons[s],e)),ov(o,e),"play"===s?(n.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(o)):this.elements.buttons[s]=o,o},createRange:function(n,i){var u=r("input",g(oi(this.config.selectors.inputs[n]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":ot(n,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[n]=u,t.updateRangeFill.call(this,u),lot.setup(u),u},createProgress:function(n,t){var i=r("progress",g(oi(this.config.selectors.display[n]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t)),u,f;return"volume"!==n&&(i.appendChild(r("span",null,"0")),u={played:"played",buffer:"buffered"}[n],f=u?ot(u,this.config):"",i.innerText="% ".concat(f.toLowerCase())),this.elements.display[n]=i,i},createTime:function(n,t){var i=oi(this.config.selectors.display[n],t),u=r("div",g(i,{"class":"".concat(i.class?i.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":ot(n,this.config)}),"00:00");return this.elements.display[n]=u,u},bindMenuItemShortcuts:function(i,r){var u=this;h(i,"keydown keyup",function(f){if([32,38,39,40].includes(f.which)&&(f.preventDefault(),f.stopPropagation(),"keydown"!==f.type)){var e,o=nf(i,'[role="menuitemradio"]');!o&&[32,39].includes(f.which)?t.showMenuPanel.call(u,r,!0):32!==f.which&&(40===f.which||o&&39===f.which?(e=i.nextElementSibling,n.element(e)||(e=i.parentNode.firstElementChild)):(e=i.previousElementSibling,n.element(e)||(e=i.parentNode.lastElementChild)),hv.call(u,e,!0))}},!1);h(i,"keyup",function(n){13===n.which&&t.focusFirstMenuItem.call(u,null,!0)})},createMenuItem:function(i){var f=this,e=i.value,v=i.list,o=i.type,y=i.title,c=i.badge,l=void 0===c?null:c,a=i.checked,p=void 0!==a&&a,s=oi(this.config.selectors.inputs[o]),u=r("button",g(s,{type:"button",role:"menuitemradio","class":"".concat(this.config.classNames.control," ").concat(s.class?s.class:"").trim(),"aria-checked":p,value:e})),h=r("span");h.innerHTML=y;n.element(l)&&h.appendChild(l);u.appendChild(h);Object.defineProperty(u,"checked",{enumerable:!0,get:function(){return"true"===u.getAttribute("aria-checked")},set:function(n){n&&Array.from(u.parentNode.children).filter(function(n){return nf(n,'[role="menuitemradio"]')}).forEach(function(n){return n.setAttribute("aria-checked","false")});u.setAttribute("aria-checked",n?"true":"false")}});this.listeners.bind(u,"click keyup",function(i){if(!n.keyboardEvent(i)||32===i.which){switch(i.preventDefault(),i.stopPropagation(),u.checked=!0,o){case"language":f.currentTrack=Number(e);break;case"quality":f.quality=e;break;case"speed":f.speed=parseFloat(e)}t.showMenuPanel.call(f,"home",n.keyboardEvent(i))}},o,!1);t.bindMenuItemShortcuts.call(this,u,o);v.appendChild(u)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.number(t)?ds(t,kn(this.duration)>0,i):t},updateTimeDisplay:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n.element(i)&&n.number(r)&&(i.innerText=t.formatTime(r,u))},updateVolume:function(){this.supported.ui&&(n.element(this.elements.inputs.volume)&&t.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),n.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;n.element(i)&&(i.value=r,t.updateRangeFill.call(this,i))},updateProgress:function(i){var u=this,r;if(this.supported.ui&&n.event(i)&&(r=0,i))switch(i.type){case"timeupdate":case"seeking":case"seeked":r=function(n,t){return 0===n||0===t||Number.isNaN(n)||Number.isNaN(t)?0:(n/t*100).toFixed(2)}(this.currentTime,this.duration);"timeupdate"===i.type&&t.setRange.call(this,this.elements.inputs.seek,r);break;case"playing":case"progress":!function(t,i){var e=n.number(i)?i:0,r=n.element(t)?t:u.elements.display.buffer,f;n.element(r)&&(r.value=e,f=r.getElementsByTagName("span")[0],n.element(f)&&(f.childNodes[0].nodeValue=e))}(this.elements.display.buffer,100*this.buffered)}},updateRangeFill:function(i){var r=n.event(i)?i.target:i,u;if(n.element(r)&&"range"===r.getAttribute("type")){if(nf(r,this.config.selectors.inputs.seek)){r.setAttribute("aria-valuenow",this.currentTime);var f=t.formatTime(this.currentTime),e=t.formatTime(this.duration),o=ot("seekLabel",this.config);r.setAttribute("aria-valuetext",o.replace("{currentTime}",f).replace("{duration}",e))}else nf(r,this.config.selectors.inputs.volume)?(u=100*r.value,r.setAttribute("aria-valuenow",u),r.setAttribute("aria-valuetext","".concat(u.toFixed(1),"%"))):r.setAttribute("aria-valuenow",r.value);et.isWebkit&&r.style.setProperty("--value","".concat(r.value/r.max*100,"%"))}},updateSeekTooltip:function(i){var o=this,u,f,r,e;if(this.config.tooltips.seek&&n.element(this.elements.inputs.seek)&&n.element(this.elements.display.seekTooltip)&&0!==this.duration)if(u="".concat(this.config.classNames.tooltip,"--visible"),f=function(n){return c(o.elements.display.seekTooltip,u,n)},this.touch)f(!1);else{if(r=0,e=this.elements.progress.getBoundingClientRect(),n.event(i))r=100/e.width*(i.pageX-e.left);else{if(!ks(this.elements.display.seekTooltip,u))return;r=parseFloat(this.elements.display.seekTooltip.style.left,10)}r<0?r=0:r>100&&(r=100);t.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*r);this.elements.display.seekTooltip.style.left="".concat(r,"%");n.event(i)&&["mouseenter","mouseleave"].includes(i.type)&&f("mouseenter"===i.type)}},timeUpdate:function(i){var r=!n.element(this.elements.display.duration)&&this.config.invertTime;t.updateTimeDisplay.call(this,this.elements.display.currentTime,r?this.duration-this.currentTime:this.currentTime,r);i&&"timeupdate"===i.type&&this.media.seeking||t.updateProgress.call(this,i)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return wi(this.elements.display.currentTime,!0),void wi(this.elements.progress,!0);n.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var i=n.element(this.elements.display.duration);!i&&this.config.displayDuration&&this.paused&&t.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration);i&&t.updateTimeDisplay.call(this,this.elements.display.duration,this.duration);t.updateSeekTooltip.call(this)}},toggleMenuButton:function(n,t){wi(this.elements.settings.buttons[n],!t)},updateSetting:function(i,r,u){var s=this.elements.settings.panels[i],f=null,e=r,o;if("captions"===i)f=this.currentTrack;else{if(f=n.empty(u)?this[i]:u,n.empty(f)&&(f=this.config[i].default),!n.empty(this.options[i])&&!this.options[i].includes(f))return void this.debug.warn("Unsupported value of '".concat(f,"' for ").concat(i));if(!this.config[i].options.includes(f))return void this.debug.warn("Disabled value of '".concat(f,"' for ").concat(i))}(n.element(e)||(e=s&&s.querySelector('[role="menu"]')),n.element(e))&&(this.elements.settings.buttons[i].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=t.getLabel.call(this,i,f),o=e&&e.querySelector('[value="'.concat(f,'"]')),n.element(o)&&(o.checked=!0))},getLabel:function(t,i){switch(t){case"speed":return 1===i?ot("normal",this.config):"".concat(i,"&times;");case"quality":if(n.number(i)){var r=ot("qualityLabel.".concat(i),this.config);return r.length?r:"".concat(i,"p")}return an(i);case"captions":return l.getLabel.call(this);default:return null}},setQualityMenu:function(i){var r=this,u,f;n.element(this.elements.settings.panels.quality)&&(u=this.elements.settings.panels.quality.querySelector('[role="menu"]'),n.array(i)&&(this.options.quality=vv(i).filter(function(n){return r.config.quality.options.includes(n)})),f=!n.empty(this.options.quality)&&this.options.quality.length>1,t.toggleMenuButton.call(this,"quality",f),bs(u),t.checkMenu.call(this),f&&(this.options.quality.sort(function(n,t){var i=r.config.quality.options;return i.indexOf(n)>i.indexOf(t)?1:-1}).forEach(function(n){t.createMenuItem.call(r,{value:n,list:u,type:"quality",title:t.getLabel.call(r,"quality",n),badge:function(n){var i=ot("qualityBadge.".concat(n),r.config);return i.length?t.createBadge.call(r,i):null}(n)})}),t.updateSetting.call(this,"quality",u)))},setCaptionsMenu:function(){var i=this,u;if(n.element(this.elements.settings.panels.captions)){var r=this.elements.settings.panels.captions.querySelector('[role="menu"]'),f=l.getTracks.call(this),e=Boolean(f.length);(t.toggleMenuButton.call(this,"captions",e),bs(r),t.checkMenu.call(this),e)&&(u=f.map(function(n,u){return{value:u,checked:i.captions.toggled&&i.currentTrack===u,title:l.getLabel.call(i,n),badge:n.language&&t.createBadge.call(i,n.language.toUpperCase()),list:r,type:"language"}}),u.unshift({value:-1,checked:!this.captions.toggled,title:ot("disabled",this.config),list:r,type:"language"}),u.forEach(t.createMenuItem.bind(this)),t.updateSetting.call(this,"captions",r))}},setSpeedMenu:function(i){var u=this,r,f;n.element(this.elements.settings.panels.speed)&&(r=this.elements.settings.panels.speed.querySelector('[role="menu"]'),n.array(i)?this.options.speed=i:(this.isHTML5||this.isVimeo)&&(this.options.speed=[.5,.75,1,1.25,1.5,1.75,2]),this.options.speed=this.options.speed.filter(function(n){return u.config.speed.options.includes(n)}),f=!n.empty(this.options.speed)&&this.options.speed.length>1,t.toggleMenuButton.call(this,"speed",f),bs(r),t.checkMenu.call(this),f&&(this.options.speed.forEach(function(n){t.createMenuItem.call(u,{value:n,list:r,type:"speed",title:t.getLabel.call(u,"speed",n)})}),t.updateSetting.call(this,"speed",r)))},checkMenu:function(){var t=this.elements.settings.buttons,i=!n.empty(t)&&Object.values(t).some(function(n){return!n.hidden});wi(this.elements.settings.menu,!i)},focusFirstMenuItem:function(t){var u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i,r;this.elements.settings.popup.hidden||(i=t,n.element(i)||(i=Object.values(this.elements.settings.panels).find(function(n){return!n.hidden})),r=i.querySelector('[role^="menuitem"]'),hv.call(this,r,u))},toggleMenu:function(i){var u=this.elements.settings.popup,f=this.elements.buttons.settings,e,r,s,o;if(n.element(u)&&n.element(f)){if(e=u.hidden,r=e,n.boolean(i))r=i;else if(n.keyboardEvent(i)&&27===i.which)r=!1;else if(n.event(i)&&(s=n.function(i.composedPath)?i.composedPath()[0]:i.target,o=u.contains(s),o||!o&&i.target!==f&&r))return;f.setAttribute("aria-expanded",r);wi(u,!r);c(this.elements.container,this.config.classNames.menu.open,r);r&&n.keyboardEvent(i)?t.focusFirstMenuItem.call(this,null,!0):r||e||hv.call(this,f,n.keyboardEvent(i))}},getMenuSize:function(n){var t=n.cloneNode(!0),i,r;return t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),n.parentNode.appendChild(t),i=t.scrollWidth,r=t.scrollHeight,pi(t),{width:i,height:r}},showMenuPanel:function(){var o=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(e)),i,u,f;n.element(r)&&(i=r.parentNode,u=Array.from(i.children).find(function(n){return!n.hidden}),d.transitions&&!d.reducedMotion&&(i.style.width="".concat(u.scrollWidth,"px"),i.style.height="".concat(u.scrollHeight,"px"),f=t.getMenuSize.call(this,r),h.call(this,i,fv,function e(n){n.target===i&&["width","height"].includes(n.propertyName)&&(i.style.width="",i.style.height="",ws.call(o,i,fv,e))}),i.style.width="".concat(f.width,"px"),i.style.height="".concat(f.height,"px")),wi(u,!0),wi(r,!1),t.focusFirstMenuItem.call(this,r,s))},setDownloadUrl:function(){var t=this.elements.buttons.download;n.element(t)&&t.setAttribute("href",this.download)},create:function(i){var u=this,a=t.bindMenuItemShortcuts,o=t.createButton,v=t.createProgress,c=t.createRange,l=t.createTime,y=t.setQualityMenu,p=t.setSpeedMenu,s=t.showMenuPanel,f,e;return this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(o.call(this,"play-large")),f=r("div",oi(this.config.selectors.controls.wrapper)),this.elements.controls=f,e={"class":"plyr__controls__item"},vv(this.config.controls).forEach(function(t){var b,p,k,y,ut,w,rt,et;if(("restart"===t&&f.appendChild(o.call(u,"restart",e)),"rewind"===t&&f.appendChild(o.call(u,"rewind",e)),"play"===t&&f.appendChild(o.call(u,"play",e)),"fast-forward"===t&&f.appendChild(o.call(u,"fast-forward",e)),"progress"===t)&&(b=r("div",{"class":"".concat(e.class," plyr__progress__container")}),p=r("div",oi(u.config.selectors.progress)),(p.appendChild(c.call(u,"seek",{id:"plyr-seek-".concat(i.id)})),p.appendChild(v.call(u,"buffer")),u.config.tooltips.seek)&&(k=r("span",{"class":u.config.classNames.tooltip},"00:00"),p.appendChild(k),u.elements.display.seekTooltip=k),u.elements.progress=p,b.appendChild(u.elements.progress),f.appendChild(b)),("current-time"===t&&f.appendChild(l.call(u,"currentTime",e)),"duration"===t&&f.appendChild(l.call(u,"duration",e)),"mute"===t||"volume"===t)&&(y=u.elements.volume,(n.element(y)&&f.contains(y)||(y=r("div",g({},e,{"class":"".concat(e.class," plyr__volume").trim()})),u.elements.volume=y,f.appendChild(y)),"mute"===t&&y.appendChild(o.call(u,"mute")),"volume"===t)&&(ut={max:1,step:.05,value:u.config.volume},y.appendChild(c.call(u,"volume",g(ut,{id:"plyr-volume-".concat(i.id)}))))),"captions"===t&&f.appendChild(o.call(u,"captions",e)),"settings"===t&&!n.empty(u.config.settings)){w=r("div",g({},e,{"class":"".concat(e.class," plyr__menu").trim(),hidden:""}));w.appendChild(o.call(u,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(i.id),"aria-expanded":!1}));var nt=r("div",{"class":"plyr__menu__container",id:"plyr-settings-".concat(i.id),hidden:""}),tt=r("div"),it=r("div",{id:"plyr-settings-".concat(i.id,"-home")}),ft=r("div",{role:"menu"});it.appendChild(ft);tt.appendChild(it);u.elements.settings.panels.home=it;u.config.settings.forEach(function(n){var f=r("button",g(oi(u.config.selectors.buttons.settings),{type:"button","class":"".concat(u.config.classNames.control," ").concat(u.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""})),o,c,t,e;a.call(u,f,n);h(f,"click",function(){s.call(u,n,!1)});o=r("span",null,ot(n,u.config));c=r("span",{"class":u.config.classNames.menu.value});c.innerHTML=i[n];o.appendChild(c);f.appendChild(o);ft.appendChild(f);t=r("div",{id:"plyr-settings-".concat(i.id,"-").concat(n),hidden:""});e=r("button",{type:"button","class":"".concat(u.config.classNames.control," ").concat(u.config.classNames.control,"--back")});e.appendChild(r("span",{"aria-hidden":!0},ot(n,u.config)));e.appendChild(r("span",{"class":u.config.classNames.hidden},ot("menuBack",u.config)));h(t,"keydown",function(n){37===n.which&&(n.preventDefault(),n.stopPropagation(),s.call(u,"home",!0))},!1);h(e,"click",function(){s.call(u,"home",!1)});t.appendChild(e);t.appendChild(r("div",{role:"menu"}));tt.appendChild(t);u.elements.settings.buttons[n]=f;u.elements.settings.panels[n]=t});nt.appendChild(tt);w.appendChild(nt);f.appendChild(w);u.elements.settings.popup=nt;u.elements.settings.menu=w}("pip"===t&&d.pip&&f.appendChild(o.call(u,"pip",e)),"airplay"===t&&d.airplay&&f.appendChild(o.call(u,"airplay",e)),"download"===t)&&(rt=g({},e,{element:"a",href:u.download,target:"_blank"}),et=u.config.urls.download,!n.url(et)&&u.isEmbed&&g(rt,{icon:"logo-".concat(u.provider),label:u.provider}),f.appendChild(o.call(u,"download",rt)));"fullscreen"===t&&f.appendChild(o.call(u,"fullscreen",e))}),this.isHTML5&&y.call(this,ur.getQualityOptions.call(this)),p.call(this),f},inject:function(){var u=this,f,i,e,o,r,s,h;if(this.config.loadSprite&&(f=t.getIconUrl.call(this),f.cors&&pn(f.url,"sprite-plyr")),this.id=Math.floor(1e4*Math.random()),i=null,this.elements.controls=null,e={id:this.id,seektime:this.config.seekTime,title:this.config.title},o=!0,n.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,e)),this.config.controls||(this.config.controls=[]),n.element(this.config.controls)||n.string(this.config.controls)?i=this.config.controls:(i=t.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:l.getLabel.call(this)}),o=!1),s=function(n){var t=n;return Object.entries(e).forEach(function(n){var i=ft(n,2),r=i[0],u=i[1];t=ce(t,"{".concat(r,"}"),u)}),t},(o&&(n.string(this.config.controls)?i=s(i):n.element(i)&&(i.innerHTML=s(i.innerHTML))),n.string(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),n.element(r)||(r=this.elements.container),r[n.element(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),n.element(this.elements.controls)||t.findElements.call(this),n.empty(this.elements.buttons))||(h=function(n){var t=u.config.classNames.controlPressed;Object.defineProperty(n,"pressed",{enumerable:!0,get:function(){return ks(n,t)},set:function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c(n,t,i)}})},Object.values(this.elements.buttons).filter(Boolean).forEach(function(t){n.array(t)||n.nodeList(t)?Array.from(t).filter(Boolean).forEach(h):h(t)})),et.isEdge&&tn(r),this.config.tooltips.controls){var a=this.config,y=a.classNames,v=a.selectors,p="".concat(v.controls.wrapper," ").concat(v.labels," .").concat(y.hidden),w=tf.call(this,p);Array.from(w).forEach(function(n){c(n,u.config.classNames.hidden,!1);c(n,u.config.classNames.tooltip,!0)})}}};var l={setup:function(){var e,f,i,u,o;this.supported.ui&&(!this.isVideo||this.isYouTube||this.isHTML5&&!d.textTracks?n.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&t.setCaptionsMenu.call(this):((n.element(this.elements.captions)||(this.elements.captions=r("div",oi(this.config.selectors.captions)),function(t,i){n.element(t)&&n.element(i)&&i.parentNode.insertBefore(t,i.nextSibling)}(this.elements.captions,this.elements.wrapper)),et.isIE&&window.URL)&&(e=this.media.querySelectorAll("track"),Array.from(e).forEach(function(n){var i=n.getAttribute("src"),t=dn(i);null!==t&&t.hostname!==window.location.href.hostname&&["http:","https:"].includes(t.protocol)&&le(i,"blob").then(function(t){n.setAttribute("src",window.URL.createObjectURL(t))}).catch(function(){pi(n)})})),f=vv((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(n){return n.split("-")[0]})),i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase(),"auto"===i&&(i=ft(f,1)[0]),u=this.storage.get("captions"),(n.boolean(u)||(u=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:u,language:i,languages:f}),this.isHTML5)&&(o=this.config.captions.update?"addtrack removetrack":"removetrack",h.call(this,this.media.textTracks,o,l.update.bind(this))),setTimeout(l.update.bind(this),0)))},update:function(){var u=this,i=l.getTracks.call(this,!0),r=this.captions,s=r.active,f=r.language,e=r.meta,a=r.currentTrackNode,o=Boolean(i.find(function(n){return n.language===f}));this.isHTML5&&this.isVideo&&i.filter(function(n){return!e.get(n)}).forEach(function(n){u.debug.log("Track added",n);e.set(n,{"default":"showing"===n.mode});n.mode="hidden";h.call(u,n,"cuechange",function(){return l.updateCues.call(u)})});(o&&this.language!==f||!i.includes(a))&&(l.setLanguage.call(this,f),l.toggle.call(this,s&&o));c(this.elements.container,this.config.classNames.captions.enabled,!n.empty(i));(this.config.controls||[]).includes("settings")&&this.config.settings.includes("captions")&&t.setCaptionsMenu.call(this)},toggle:function(i){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s,f;if(this.supported.ui){var o=this.captions.toggled,h=this.config.classNames.captions.active,r=n.nullOrUndefined(i)?!o:i;if(r!==o){if(e||(this.captions.active=r,this.storage.set({captions:r})),!this.language&&r&&!e)return s=l.getTracks.call(this),f=l.findTrack.call(this,[this.captions.language].concat(vl(this.captions.languages)),!0),this.captions.language=f.language,void l.set.call(this,s.indexOf(f));this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=r);c(this.elements.container,h,r);this.captions.toggled=r;t.updateSetting.call(this,"captions");u.call(this,this.media,r?"captionsenabled":"captionsdisabled")}}},set:function(i){var f=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=l.getTracks.call(this),e,r;-1!==i?n.number(i)?i in o?(this.captions.currentTrack!==i&&(this.captions.currentTrack=i,e=o[i],r=(e||{}).language,this.captions.currentTrackNode=e,t.updateSetting.call(this,"captions"),f||(this.captions.language=r,this.storage.set({language:r})),this.isVimeo&&this.embed.enableTextTrack(r),u.call(this,this.media,"languagechange")),l.toggle.call(this,!0,f),this.isHTML5&&this.isVideo&&l.updateCues.call(this)):this.debug.warn("Track not found",i):this.debug.warn("Invalid caption argument",i):l.toggle.call(this,!1,f)},setLanguage:function(t){var f=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i,r,u;n.string(t)?(i=t.toLowerCase(),this.captions.language=i,r=l.getTracks.call(this),u=l.findTrack.call(this,[i]),l.set.call(this,r.indexOf(u),f)):this.debug.warn("Invalid language argument",t)},getTracks:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter(function(i){return!n.isHTML5||t||n.captions.meta.has(i)}).filter(function(n){return["captions","subtitles"].includes(n.kind)})},findTrack:function(n){var t,u=this,f=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=l.getTracks.call(this),i=function(n){return Number((u.captions.meta.get(n)||{}).default)},r=Array.from(e).sort(function(n,t){return i(t)-i(n)});return n.every(function(n){return!(t=r.find(function(t){return t.language===n}))}),t||(f?r[0]:void 0)},getCurrentTrack:function(){return l.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var i=t;return!n.track(i)&&d.textTracks&&this.captions.toggled&&(i=l.getCurrentTrack.call(this)),n.track(i)?n.empty(i.label)?n.empty(i.language)?ot("enabled",this.config):t.language.toUpperCase():i.label:ot("disabled",this.config)},updateCues:function(t){var i,o,f,e;this.supported.ui&&(n.element(this.elements.captions)?n.nullOrUndefined(t)||Array.isArray(t)?(i=t,i||(o=l.getCurrentTrack.call(this),i=Array.from((o||{}).activeCues||[]).map(function(n){return n.getCueAsHTML()}).map(ost)),f=i.map(function(n){return n.trim()}).join("\n"),f!==this.elements.captions.innerHTML&&(bs(this.elements.captions),e=r("span",oi(this.config.selectors.caption)),e.innerHTML=f,this.elements.captions.appendChild(e),u.call(this,this.media,"cuechange"))):this.debug.warn("updateCues: Invalid input",t):this.debug.warn("No captions element to render to"))}},ntt={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.5.6/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{"default":576,options:[4320,2880,2160,1440,1080,720,576,480,360,240]},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1},youtube:{noCookie:!1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}},ttt="picture-in-picture",fr={html5:"html5",youtube:"youtube",vimeo:"vimeo"},bv={audio:"audio",video:"video"},kv=function(){},cst=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];nr(this,n);this.enabled=window.console&&t;this.enabled&&this.log("Debugging enabled")}return tr(n,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):kv}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):kv}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):kv}}]),n}();utt=function(){function t(i){var r=this;nr(this,t);this.player=i;this.prefix=t.prefix;this.property=t.property;this.scrollPosition={x:0,y:0};this.forceFallback="force"===i.config.fullscreen.fallback;h.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){itt.call(r)});h.call(this.player,this.player.elements.container,"dblclick",function(t){n.element(r.player.elements.controls)&&r.player.elements.controls.contains(t.target)||r.toggle()});this.update()}return tr(t,[{key:"update",value:function(){var n;this.enabled?(n=this.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback",this.player.debug.log("".concat(n," fullscreen enabled"))):this.player.debug.log("Fullscreen not supported and fallback disabled");c(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(et.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!t.native||this.forceFallback?rtt.call(this,!0):this.prefix?n.empty(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen())}},{key:"exit",value:function(){if(this.enabled)if(et.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),this.player.play();else if(!t.native||this.forceFallback)rtt.call(this,!1);else if(this.prefix){if(!n.empty(this.prefix)){var i="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(i).concat(this.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"usingNative",get:function(){return t.native&&!this.forceFallback}},{key:"enabled",get:function(){return(t.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){return!!this.enabled&&(!t.native||this.forceFallback?ks(this.target,this.player.config.classNames.fullscreen.fallback):(this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement)===this.target)}},{key:"target",get:function(){return et.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(n.function(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some(function(i){return!(!n.function(document["".concat(i,"ExitFullscreen")])&&!n.function(document["".concat(i,"CancelFullScreen")])||(t=i,0))}),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}();ftt=Math.sign||function(n){return 0==(n=+n)||n!=n?n:n<0?-1:1};s({target:"Math",stat:!0},{sign:ftt});var p={addStyleHook:function(){c(this.elements.container,this.config.selectors.container.replace(".",""),!0);c(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var i=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void p.toggleNativeControls.call(this,!0);n.element(this.elements.controls)||(t.inject.call(this),this.listeners.controls());p.toggleNativeControls.call(this);this.isHTML5&&l.setup.call(this);this.volume=null;this.muted=null;this.loop=null;this.quality=null;this.speed=null;t.updateVolume.call(this);t.timeUpdate.call(this);p.checkPlaying.call(this);c(this.elements.container,this.config.classNames.pip.supported,d.pip&&this.isHTML5&&this.isVideo);c(this.elements.container,this.config.classNames.airplay.supported,d.airplay&&this.isHTML5);c(this.elements.container,this.config.classNames.isIos,et.isIos);c(this.elements.container,this.config.classNames.isTouch,this.touch);this.ready=!0;setTimeout(function(){u.call(i,i.media,"ready")},0);p.setTitle.call(this);this.poster&&p.setPoster.call(this,this.poster,!1).catch(function(){});this.config.duration&&t.durationUpdate.call(this)},setTitle:function(){var i=ot("play",this.config),t,r,u;if(n.string(this.config.title)&&!n.empty(this.config.title)&&(i+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach(function(n){n.setAttribute("aria-label",i)}),this.isEmbed){if(t=it.call(this,"iframe"),!n.element(t))return;r=n.empty(this.config.title)?"video":this.config.title;u=ot("frameTitle",this.config);t.setAttribute("title",u.replace("{title}",r))}},togglePoster:function(n){c(this.elements.container,this.config.classNames.posterEnabled,n)},setPoster:function(n){var t=this;return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!this.poster?(this.media.setAttribute("poster",n),function(){var n=this;return new Promise(function(t){return n.ready?setTimeout(t,0):h.call(n,n.elements.container,"ready",t)}).then(function(){})}.call(this).then(function(){return gs(n)}).catch(function(i){throw n===t.poster&&p.togglePoster.call(t,!1),i;}).then(function(){if(n!==t.poster)throw new Error("setPoster cancelled by later call to setPoster");}).then(function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(n,"')"),backgroundSize:""}),p.togglePoster.call(t,!0),n})):Promise.reject(new Error("Poster already set"))},checkPlaying:function(t){var i=this;c(this.elements.container,this.config.classNames.playing,this.playing);c(this.elements.container,this.config.classNames.paused,this.paused);c(this.elements.container,this.config.classNames.stopped,this.stopped);Array.from(this.elements.buttons.play||[]).forEach(function(n){Object.assign(n,{pressed:i.playing})});n.event(t)&&"timeupdate"===t.type||p.toggleControls.call(this)},checkLoading:function(n){var t=this;this.loading=["stalled","waiting"].includes(n.type);clearTimeout(this.timers.loading);this.timers.loading=setTimeout(function(){c(t.elements.container,t.config.classNames.loading,t.loading);p.toggleControls.call(t)},this.loading?250:0)},toggleControls:function(n){var t=this.elements.controls,i;t&&this.config.hideControls&&(i=this.touch&&this.lastSeekTime+2e3>Date.now(),this.toggleControls(Boolean(n||this.loading||this.paused||t.pressed||t.hover||i)))}},lst=function(){function i(n){nr(this,i);this.player=n;this.lastKey=null;this.focusTimer=null;this.lastKeyDown=null;this.handleKey=this.handleKey.bind(this);this.toggleMenu=this.toggleMenu.bind(this);this.setTabFocus=this.setTabFocus.bind(this);this.firstTouch=this.firstTouch.bind(this)}return tr(i,[{key:"handleKey",value:function(t){var i=this.player,s=i.elements,r=t.keyCode?t.keyCode:t.which,e="keydown"===t.type,f=e&&r===this.lastKey,u,o;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&n.number(r))if(e){if(u=document.activeElement,n.element(u)){if(o=i.config.selectors.editable,u!==s.inputs.seek&&nf(u,o))return;if(32===t.which&&nf(u,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(r)&&(t.preventDefault(),t.stopPropagation()),r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:f||(i.currentTime=i.duration/10*(r-48));break;case 32:case 75:f||i.togglePlay();break;case 38:i.increaseVolume(.1);break;case 40:i.decreaseVolume(.1);break;case 77:f||(i.muted=!i.muted);break;case 39:i.forward();break;case 37:i.rewind();break;case 70:i.fullscreen.toggle();break;case 67:f||i.toggleCaptions();break;case 76:i.loop=!i.loop}27===r&&!i.fullscreen.usingNative&&i.fullscreen.active&&i.fullscreen.toggle();this.lastKey=r}else this.lastKey=null}},{key:"toggleMenu",value:function(n){t.toggleMenu.call(this.player,n)}},{key:"firstTouch",value:function(){var n=this.player,t=n.elements;n.touch=!0;c(t.container,n.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(n){var t=this.player,u=t.elements,i,r;(clearTimeout(this.focusTimer),"keydown"!==n.type||9===n.which)&&("keydown"===n.type&&(this.lastKeyDown=n.timeStamp),r=n.timeStamp-this.lastKeyDown<=20,("focus"!==n.type||r)&&(i=t.config.classNames.tabFocus,c(tf.call(t,".".concat(i)),i,!1),this.focusTimer=setTimeout(function(){var n=document.activeElement;u.container.contains(n)&&c(document.activeElement,t.config.classNames.tabFocus,!0)},10)))}},{key:"global",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this.player;n.config.keyboard.global&&br.call(n,window,"keydown keyup",this.handleKey,t,!1);br.call(n,document.body,"click",this.toggleMenu,t);ev.call(n,document.body,"touchstart",this.firstTouch);br.call(n,document.body,"keydown focus blur",this.setTabFocus,t,!1,!0)}},{key:"container",value:function(){var t=this.player,e=t.config,i=t.elements,r=t.timers,u,f;!e.keyboard.global&&e.keyboard.focused&&h.call(t,i.container,"keydown keyup",this.handleKey,!1);h.call(t,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(n){var u=i.controls,f;u&&"enterfullscreen"===n.type&&(u.pressed=!1,u.hover=!1);f=0;["touchstart","touchmove","mousemove"].includes(n.type)&&(p.toggleControls.call(t,!0),f=t.touch?3e3:2e3);clearTimeout(r.controls);r.controls=setTimeout(function(){return p.toggleControls.call(t,!1)},f)});u=function(n){if(!n)return rr.call(t);var r=i.container.getBoundingClientRect(),u=r.width,f=r.height;return rr.call(t,"".concat(u,":").concat(f))};f=function(){clearTimeout(r.resized);r.resized=setTimeout(u,50)};h.call(t,i.container,"enterfullscreen exitfullscreen",function(r){var s=t.fullscreen,c=s.target,l=s.usingNative,e,o;c===i.container&&(t.isEmbed||!n.empty(t.config.ratio))&&(e="enterfullscreen"===r.type,o=u(e),o.padding,function(n,i,r){if(t.isVimeo){var u=t.elements.wrapper.firstChild,e=ft(n,2)[1],f=ft(av.call(t),2),o=f[0],s=f[1];u.style.maxWidth=r?"".concat(e/s*o,"px"):null;u.style.margin=r?"0 auto":null}}(o.ratio,0,e),l||(e?h.call(t,window,"resize",f):ws.call(t,window,"resize",f)))})}},{key:"media",value:function(){var e=this,i=this.player,r=i.elements,f,o;if(h.call(i,i.media,"timeupdate seeking seeked",function(n){return t.timeUpdate.call(i,n)}),h.call(i,i.media,"durationchange loadeddata loadedmetadata",function(n){return t.durationUpdate.call(i,n)}),h.call(i,i.media,"canplay loadeddata",function(){wi(r.volume,!i.hasAudio);wi(r.buttons.mute,!i.hasAudio)}),h.call(i,i.media,"ended",function(){i.isHTML5&&i.isVideo&&i.config.resetOnEnd&&i.restart()}),h.call(i,i.media,"progress playing seeking seeked",function(n){return t.updateProgress.call(i,n)}),h.call(i,i.media,"volumechange",function(n){return t.updateVolume.call(i,n)}),h.call(i,i.media,"playing play pause ended emptied timeupdate",function(n){return p.checkPlaying.call(i,n)}),h.call(i,i.media,"waiting canplay seeked playing",function(n){return p.checkLoading.call(i,n)}),i.supported.ui&&i.config.clickToPlay&&!i.isAudio){if(f=it.call(i,".".concat(i.config.classNames.video)),!n.element(f))return;h.call(i,r.container,"click",function(n){([r.container,f].includes(n.target)||f.contains(n.target))&&(i.touch&&i.config.hideControls||(i.ended?(e.proxy(n,i.restart,"restart"),e.proxy(n,i.play,"play")):e.proxy(n,i.togglePlay,"play")))})}i.supported.ui&&i.config.disableContextMenu&&h.call(i,r.wrapper,"contextmenu",function(n){n.preventDefault()},!1);h.call(i,i.media,"volumechange",function(){i.storage.set({volume:i.volume,muted:i.muted})});h.call(i,i.media,"ratechange",function(){t.updateSetting.call(i,"speed");i.storage.set({speed:i.speed})});h.call(i,i.media,"qualitychange",function(n){t.updateSetting.call(i,"quality",null,n.detail.quality)});h.call(i,i.media,"ready qualitychange",function(){t.setDownloadUrl.call(i)});o=i.config.events.concat(["keyup","keydown"]).join(" ");h.call(i,i.media,o,function(n){var t=n.detail,f=void 0===t?{}:t;"error"===n.type&&(f=i.media.error);u.call(i,r.container,n.type,!0,f)})}},{key:"proxy",value:function(t,i,r){var u=this.player,f=u.config.listeners[r],e=!0;n.function(f)&&(e=f.call(u,t));e&&n.function(i)&&i.call(u,t)}},{key:"bind",value:function(t,i,r,u){var e=this,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],f=this.player,s=f.config.listeners[u],c=n.function(s);h.call(f,t,i,function(n){return e.proxy(n,r,u)},o&&!c)}},{key:"controls",value:function(){var f=this,i=this.player,r=i.elements,e=et.isIE?"change":"input",o;(r.buttons.play&&Array.from(r.buttons.play).forEach(function(n){f.bind(n,"click",i.togglePlay,"play")}),this.bind(r.buttons.restart,"click",i.restart,"restart"),this.bind(r.buttons.rewind,"click",i.rewind,"rewind"),this.bind(r.buttons.fastForward,"click",i.forward,"fastForward"),this.bind(r.buttons.mute,"click",function(){i.muted=!i.muted},"mute"),this.bind(r.buttons.captions,"click",function(){return i.toggleCaptions()}),this.bind(r.buttons.download,"click",function(){u.call(i,i.media,"download")},"download"),this.bind(r.buttons.fullscreen,"click",function(){i.fullscreen.toggle()},"fullscreen"),this.bind(r.buttons.pip,"click",function(){i.pip="toggle"},"pip"),this.bind(r.buttons.airplay,"click",i.airplay,"airplay"),this.bind(r.buttons.settings,"click",function(n){n.stopPropagation();t.toggleMenu.call(i,n)}),this.bind(r.buttons.settings,"keyup",function(n){var r=n.which;[13,32].includes(r)&&(13!==r?(n.preventDefault(),n.stopPropagation(),t.toggleMenu.call(i,n)):t.focusFirstMenuItem.call(i,null,!0))},null,!1),this.bind(r.settings.menu,"keydown",function(n){27===n.which&&t.toggleMenu.call(i,n)}),this.bind(r.inputs.seek,"mousedown mousemove",function(n){var t=r.progress.getBoundingClientRect(),i=100/t.width*(n.pageX-t.left);n.currentTarget.setAttribute("seek-value",i)}),this.bind(r.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(t){var r=t.currentTarget,f=t.keyCode?t.keyCode:t.which,e,u;n.keyboardEvent(t)&&39!==f&&37!==f||(i.lastSeekTime=Date.now(),e=r.hasAttribute("play-on-seeked"),u=["mouseup","touchend","keyup"].includes(t.type),e&&u?(r.removeAttribute("play-on-seeked"),i.play()):!u&&i.playing&&(r.setAttribute("play-on-seeked",""),i.pause()))}),et.isIos)&&(o=tf.call(i,'input[type="range"]'),Array.from(o).forEach(function(n){return f.bind(n,e,function(n){return tn(n.target)})}));this.bind(r.inputs.seek,e,function(t){var r=t.currentTarget,u=r.getAttribute("seek-value");n.empty(u)&&(u=r.value);r.removeAttribute("seek-value");i.currentTime=u/r.max*i.duration},"seek");this.bind(r.progress,"mouseenter mouseleave mousemove",function(n){return t.updateSeekTooltip.call(i,n)});this.bind(r.progress,"mousemove touchmove",function(n){var t=i.previewThumbnails;t&&t.loaded&&t.startMove(n)});this.bind(r.progress,"mouseleave click",function(){var n=i.previewThumbnails;n&&n.loaded&&n.endMove(!1,!0)});this.bind(r.progress,"mousedown touchstart",function(n){var t=i.previewThumbnails;t&&t.loaded&&t.startScrubbing(n)});this.bind(r.progress,"mouseup touchend",function(n){var t=i.previewThumbnails;t&&t.loaded&&t.endScrubbing(n)});et.isWebkit&&Array.from(tf.call(i,'input[type="range"]')).forEach(function(n){f.bind(n,"input",function(n){return t.updateRangeFill.call(i,n.target)})});i.config.toggleInvert&&!n.element(r.display.duration)&&this.bind(r.display.currentTime,"click",function(){0!==i.currentTime&&(i.config.invertTime=!i.config.invertTime,t.timeUpdate.call(i))});this.bind(r.inputs.volume,e,function(n){i.volume=n.target.value},"volume");this.bind(r.controls,"mouseenter mouseleave",function(n){r.controls.hover=!i.touch&&"mouseenter"===n.type});this.bind(r.controls,"mousedown mouseup touchstart touchend touchcancel",function(n){r.controls.pressed=["mousedown","touchstart"].includes(n.type)});this.bind(r.controls,"focusin",function(){var n=i.config,t=i.timers,u;c(r.controls,n.classNames.noTransition,!0);p.toggleControls.call(i,!0);setTimeout(function(){c(r.controls,n.classNames.noTransition,!1)},0);u=f.touch?3e3:4e3;clearTimeout(t.controls);t.controls=setTimeout(function(){return p.toggleControls.call(i,!1)},u)});this.bind(r.inputs.volume,"wheel",function(n){var o=n.webkitDirectionInvertedFromDevice,u=ft([n.deltaX,-n.deltaY].map(function(n){return o?-n:n}),2),f=u[0],e=u[1],t=Math.sign(Math.abs(f)>Math.abs(e)?f:e),r;i.increaseVolume(t/50);r=i.media.volume;(1===t&&r<1||-1===t&&r>0)&&n.preventDefault()},"volume",!1)}}]),i}(),ast=ct.f,dv=Function.prototype,vst=dv.toString,yst=/^\s*function ([^ (]*)/;!nt||"name"in dv||ast(dv,"name",{configurable:!0,get:function(){try{return vst.call(this).match(yst)[1]}catch(n){return""}}});ett=Math.max;ott=Math.min;s({target:"Array",proto:!0,forced:!vf("splice")},{splice:function(n,t){var f,r,c,i,o,s,u=ci(this),e=dt(u.length),h=ro(n,e),l=arguments.length;if(0===l?f=r=0:1===l?(f=0,r=e-h):(f=l-2,r=ott(ett(sr(t),0),e-h)),e+f-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(c=eh(u,r),i=0;i<r;i++)(o=h+i)in u&&su(c,i,u[o]);if(c.length=r,f<r){for(i=h;i<e-r;i++)s=i+f,(o=i+r)in u?u[s]=u[o]:delete u[s];for(i=e;i>e-r+f;i--)delete u[i-1]}else if(f>r)for(i=e-r;i>h;i--)s=i+f-1,(o=i+r-1)in u?u[s]=u[o]:delete u[s];for(i=0;i<f;i++)u[i+h]=arguments[i+2];return u.length=e-r+f,c}});stt=kr(function(n){n.exports=function(){function e(n,t){if(n){var r=i[n];if(u[n]=t,r)for(;r.length;)r[0](n,t),r.splice(0,1)}}function f(n,t){n.call&&(n={success:n});t.length?(n.error||r)(t):(n.success||r)(n)}function o(n,t,i,u){var s,f,e=document,h=i.async,l=(i.numRetries||0)+1,a=i.before||r,c=n.replace(/^(css|img)!/,"");u=u||0;/(^css!|\.css$)/.test(n)?((f=e.createElement("link")).rel="stylesheet",f.href=c,(s="hideFocus"in f)&&f.relList&&(s=0,f.rel="preload",f.as="style")):/(^img!|\.(png|gif|jpg|svg)$)/.test(n)?(f=e.createElement("img")).src=c:((f=e.createElement("script")).src=n,f.async=void 0===h||h);f.onload=f.onerror=f.onbeforeload=function(r){var e=r.type[0];if(s)try{f.sheet.cssText.length||(e="e")}catch(r){18!=r.code&&(e="e")}if("e"==e){if((u+=1)<l)return o(n,t,i,u)}else if("preload"==f.rel&&"style"==f.as)return f.rel="stylesheet";t(n,e,r.defaultPrevented)};!1!==a(n,f)&&e.head.appendChild(f)}function n(n,i,r){function h(t,i){!function(n,t,i){for(var e=(n=n.push?n:[n]).length,s=e,u=[],f=function(n,i,r){if("e"==i&&u.push(n),"b"==i){if(!r)return;u.push(n)}--e||t(u)},r=0;r<s;r++)o(n[r],f,i)}(n,function(n){f(s,n);t&&f({success:t,error:i},n);e(u,n)},s)}var u,s;if(i&&i.trim&&(u=i),s=(u?r:i)||{},u){if(u in t)throw"LoadJS";t[u]=!0}if(s.returnPromise)return new Promise(h);h()}var r=function(){},t={},u={},i={};return n.ready=function(t,r){return function(n,t){n=n.push?n:[n];for(var r,o,s=[],e=n.length,h=e,f=function(n,i){i.length&&s.push(n);--h||t(s)};e--;)r=n[e],(o=u[r])?f(r,o):(i[r]=i[r]||[]).push(f)}(t,function(n){f(r,n)}),n},n.done=function(n){e(n,[])},n.reset=function(){t={};u={};i={}},n.isDefined=function(n){return n in t},n}()});nh={setup:function(){var t=this;c(this.elements.wrapper,this.config.classNames.embed,!0);rr.call(this);n.object(window.Vimeo)?nh.ready.call(this):gv(this.config.urls.vimeo.sdk).then(function(){nh.ready.call(t)}).catch(function(n){t.debug.warn("Vimeo SDK (player.js) failed to load",n)})},ready:function(){var s=this,i=this,d=i.config.vimeo,nt=gn(g({},{loop:i.config.loop.active,autoplay:i.autoplay,muted:i.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},d)),h=i.media.getAttribute("src"),c,o,a,v,y,k,w;n.empty(h)&&(h=i.media.getAttribute(i.config.attributes.embed.id));var f,b=(f=h,n.empty(f)?null:n.number(Number(f))?f:f.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:f),e=r("iframe"),tt=wv(i.config.urls.vimeo.iframe,b,nt);e.setAttribute("src",tt);e.setAttribute("allowfullscreen","");e.setAttribute("allowtransparency","");e.setAttribute("allow","autoplay");c=r("div",{poster:i.poster,"class":i.config.classNames.embedContainer});c.appendChild(e);i.media=sv(c,i.media);le(wv(i.config.urls.vimeo.api,b),"json").then(function(t){if(!n.empty(t)){var r=new URL(t[0].thumbnail_large);r.pathname="".concat(r.pathname.split("_")[0],".jpg");p.setPoster.call(i,r.href).catch(function(){})}});i.embed=new window.Vimeo.Player(e,{autopause:i.config.autopause,muted:i.muted});i.media.paused=!0;i.media.currentTime=0;i.supported.ui&&i.embed.disableTextTrack();i.media.play=function(){return ae.call(i,!0),i.embed.play()};i.media.pause=function(){return ae.call(i,!1),i.embed.pause()};i.media.stop=function(){i.pause();i.currentTime=0};o=i.media.currentTime;Object.defineProperty(i.media,"currentTime",{get:function(){return o},set:function(n){var t=i.embed,f=i.media,e=i.paused,o=i.volume,r=e&&!t.hasPlayed;f.seeking=!0;u.call(i,f,"seeking");Promise.resolve(r&&t.setVolume(0)).then(function(){return t.setCurrentTime(n)}).then(function(){return r&&t.pause()}).then(function(){return r&&t.setVolume(o)}).catch(function(){})}});a=i.config.speed.selected;Object.defineProperty(i.media,"playbackRate",{get:function(){return a},set:function(n){i.embed.setPlaybackRate(n).then(function(){a=n;u.call(i,i.media,"ratechange")}).catch(function(n){"Error"===n.name&&t.setSpeedMenu.call(i,[])})}});v=i.config.volume;Object.defineProperty(i.media,"volume",{get:function(){return v},set:function(n){i.embed.setVolume(n).then(function(){v=n;u.call(i,i.media,"volumechange")})}});y=i.config.muted;Object.defineProperty(i.media,"muted",{get:function(){return y},set:function(t){var r=!!n.boolean(t)&&t;i.embed.setVolume(r?0:i.config.volume).then(function(){y=r;u.call(i,i.media,"volumechange")})}});w=i.config.loop;Object.defineProperty(i.media,"loop",{get:function(){return w},set:function(t){var r=n.boolean(t)?t:i.config.loop.active;i.embed.setLoop(r).then(function(){w=r})}});i.embed.getVideoUrl().then(function(n){k=n;t.setDownloadUrl.call(i)}).catch(function(n){s.debug.warn(n)});Object.defineProperty(i.media,"currentSrc",{get:function(){return k}});Object.defineProperty(i.media,"ended",{get:function(){return i.currentTime===i.duration}});Promise.all([i.embed.getVideoWidth(),i.embed.getVideoHeight()]).then(function(n){var t=ft(n,2),r=t[0],u=t[1];i.embed.ratio=[r,u];rr.call(s)});i.embed.setAutopause(i.config.autopause).then(function(n){i.config.autopause=n});i.embed.getVideoTitle().then(function(n){i.config.title=n;p.setTitle.call(s)});i.embed.getCurrentTime().then(function(n){o=n;u.call(i,i.media,"timeupdate")});i.embed.getDuration().then(function(n){i.media.duration=n;u.call(i,i.media,"durationchange")});i.embed.getTextTracks().then(function(n){i.media.textTracks=n;l.setup.call(i)});i.embed.on("cuechange",function(n){var t=n.cues,r=(void 0===t?[]:t).map(function(n){return function(n){var t=document.createDocumentFragment(),i=document.createElement("div");return t.appendChild(i),i.innerHTML=n,t.firstChild.innerText}(n.text)});l.updateCues.call(i,r)});i.embed.on("loaded",function(){i.embed.getPaused().then(function(n){ae.call(i,!n);n||u.call(i,i.media,"playing")});n.element(i.embed.element)&&i.supported.ui&&i.embed.element.setAttribute("tabindex",-1)});i.embed.on("play",function(){ae.call(i,!0);u.call(i,i.media,"playing")});i.embed.on("pause",function(){ae.call(i,!1)});i.embed.on("timeupdate",function(n){i.media.seeking=!1;o=n.seconds;u.call(i,i.media,"timeupdate")});i.embed.on("progress",function(n){i.media.buffered=n.percent;u.call(i,i.media,"progress");1===parseInt(n.percent,10)&&u.call(i,i.media,"canplaythrough");i.embed.getDuration().then(function(n){n!==i.media.duration&&(i.media.duration=n,u.call(i,i.media,"durationchange"))})});i.embed.on("seeked",function(){i.media.seeking=!1;u.call(i,i.media,"seeked")});i.embed.on("ended",function(){i.media.paused=!0;u.call(i,i.media,"ended")});i.embed.on("error",function(n){i.media.error=n;u.call(i,i.media,"error")});setTimeout(function(){return p.build.call(i)},0)}};var th={setup:function(){var i=this,t;(c(this.elements.wrapper,this.config.classNames.embed,!0),n.object(window.YT)&&n.function(window.YT.Player))?th.ready.call(this):(t=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=function(){n.function(t)&&t();th.ready.call(i)},gv(this.config.urls.youtube.sdk).catch(function(n){i.debug.warn("YouTube API failed to load",n)}))},getTitle:function(t){var i=this;le(wv(this.config.urls.youtube.api,t)).then(function(t){if(n.object(t)){var r=t.title,u=t.height,f=t.width;i.config.title=r;p.setTitle.call(i);i.embed.ratio=[f,u]}rr.call(i)}).catch(function(){rr.call(i)})},ready:function(){var t=this,h=t.media&&t.media.getAttribute("id"),i,e,s;if(n.empty(h)||!h.startsWith("youtube-")){i=t.media.getAttribute("src");n.empty(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));var f,c,o=(f=i,n.empty(f)?null:f.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:f),l=(c=t.provider,"".concat(c,"-").concat(Math.floor(1e4*Math.random()))),a=r("div",{id:l,poster:t.poster});t.media=sv(a,t.media);e=function(n){return"https://i.ytimg.com/vi/".concat(o,"/").concat(n,"default.jpg")};gs(e("maxres"),121).catch(function(){return gs(e("sd"),121)}).catch(function(){return gs(e("hq"))}).then(function(n){return p.setPoster.call(t,n.src)}).then(function(n){n.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")}).catch(function(){});s=t.config.youtube;t.embed=new window.YT.Player(l,{videoId:o,host:s.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0,playerVars:g({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},s),events:{onError:function(n){if(!t.media.error){var i=n.data,r={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[i]||"An unknown error occured";t.media.error={code:i,message:r};u.call(t,t.media,"error")}},onPlaybackRateChange:function(n){var i=n.target;t.media.playbackRate=i.getPlaybackRate();u.call(t,t.media,"ratechange")},onReady:function(i){var r,f,e;n.function(t.media.play)||(r=i.target,th.getTitle.call(t,o),t.media.play=function(){ve.call(t,!0);r.playVideo()},t.media.pause=function(){ve.call(t,!1);r.pauseVideo()},t.media.stop=function(){r.stopVideo()},t.media.duration=r.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:function(){return Number(r.getCurrentTime())},set:function(n){t.paused&&!t.embed.hasPlayed&&t.embed.mute();t.media.seeking=!0;u.call(t,t.media,"seeking");r.seekTo(n)}}),Object.defineProperty(t.media,"playbackRate",{get:function(){return r.getPlaybackRate()},set:function(n){r.setPlaybackRate(n)}}),f=t.config.volume,Object.defineProperty(t.media,"volume",{get:function(){return f},set:function(n){f=n;r.setVolume(100*f);u.call(t,t.media,"volumechange")}}),e=t.config.muted,Object.defineProperty(t.media,"muted",{get:function(){return e},set:function(i){var f=n.boolean(i)?i:e;e=f;r[f?"mute":"unMute"]();u.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:function(){return r.getVideoUrl()}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),t.options.speed=r.getAvailablePlaybackRates(),t.supported.ui&&t.media.setAttribute("tabindex",-1),u.call(t,t.media,"timeupdate"),u.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval(function(){t.media.buffered=r.getVideoLoadedFraction();(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&u.call(t,t.media,"progress");t.media.lastBuffered=t.media.buffered;1===t.media.buffered&&(clearInterval(t.timers.buffering),u.call(t,t.media,"canplaythrough"))},200),setTimeout(function(){return p.build.call(t)},50))},onStateChange:function(n){var i=n.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(n.data)&&(t.media.seeking=!1,u.call(t,t.media,"seeked")),n.data){case-1:u.call(t,t.media,"timeupdate");t.media.buffered=i.getVideoLoadedFraction();u.call(t,t.media,"progress");break;case 0:ve.call(t,!1);t.media.loop?(i.stopVideo(),i.playVideo()):u.call(t,t.media,"ended");break;case 1:t.config.autoplay||!t.media.paused||t.embed.hasPlayed?(ve.call(t,!0),u.call(t,t.media,"playing"),t.timers.playing=setInterval(function(){u.call(t,t.media,"timeupdate")},50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),u.call(t,t.media,"durationchange"))):t.media.pause();break;case 2:t.muted||t.embed.unMute();ve.call(t,!1)}u.call(t,t.elements.container,"statechange",!1,{code:n.data})}}})}}},htt={setup:function(){this.media?(c(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),c(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&c(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=r("div",{"class":this.config.classNames.video}),fn(this.media,this.elements.wrapper),this.elements.poster=r("div",{"class":this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?ur.extend.call(this):this.isYouTube?th.setup.call(this):this.isVimeo&&nh.setup.call(this)):this.debug.warn("No media element found!")}},pst=function(){function t(n){var i=this;nr(this,t);this.player=n;this.config=n.config.ads;this.playing=!1;this.initialized=!1;this.elements={container:null,displayContainer:null};this.manager=null;this.loader=null;this.cuePoints=null;this.events={};this.safetyTimer=null;this.countdownTimer=null;this.managerPromise=new Promise(function(n,t){i.on("loaded",n);i.on("error",t)});this.load()}return tr(t,[{key:"load",value:function(){var t=this;this.enabled&&(n.object(window.google)&&n.object(window.google.ima)?this.ready():gv(this.player.config.urls.googleIMA.sdk).then(function(){t.ready()}).catch(function(){t.trigger("error",new Error("Google IMA SDK failed to load"))}))}},{key:"ready",value:function(){var n,t=this;this.enabled||((n=this).manager&&n.manager.destroy(),n.elements.displayContainer&&n.elements.displayContainer.destroy(),n.elements.container.remove());this.startSafetyTimer(12e3,"ready()");this.managerPromise.then(function(){t.clearSafetyTimer("onAdsManagerLoaded()")});this.listeners();this.setupIMA()}},{key:"setupIMA",value:function(){this.elements.container=r("div",{"class":this.player.config.classNames.ads});this.player.elements.container.appendChild(this.elements.container);google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED);google.ima.settings.setLocale(this.player.config.ads.language);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline);this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media);this.requestAds()}},{key:"requestAds",value:function(){var i=this,t=this.player.elements.container,n;try{this.loader=new google.ima.AdsLoader(this.elements.displayContainer);this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(n){return i.onAdsManagerLoaded(n)},!1);this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(n){return i.onAdError(n)},!1);n=new google.ima.AdsRequest;n.adTagUrl=this.tagUrl;n.linearAdSlotWidth=t.offsetWidth;n.linearAdSlotHeight=t.offsetHeight;n.nonLinearAdSlotWidth=t.offsetWidth;n.nonLinearAdSlotHeight=t.offsetHeight;n.forceNonLinearFullSlot=!1;n.setAdWillPlayMuted(!this.player.muted);this.loader.requestAds(n)}catch(i){this.onAdError(i)}}},{key:"pollCountdown",value:function(){var n=this;if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]))return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(function(){var t=ds(Math.max(n.manager.getRemainingTime(),0)),i="".concat(ot("advertisement",n.player.config)," - ").concat(t);n.elements.container.setAttribute("data-badge-text",i)},100)}},{key:"onAdsManagerLoaded",value:function(n){var i=this,t;this.enabled&&(t=new google.ima.AdsRenderingSettings,t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=n.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(n){return i.onAdError(n)}),Object.keys(google.ima.AdEvent.Type).forEach(function(n){i.manager.addEventListener(google.ima.AdEvent.Type[n],function(n){return i.onAdEvent(n)})}),this.trigger("loaded"))}},{key:"addCuePoints",value:function(){var t=this;n.empty(this.cuePoints)||this.cuePoints.forEach(function(i){var u,e,f;0!==i&&-1!==i&&i<t.player.duration&&(u=t.player.elements.progress,n.element(u)&&(e=100/t.player.duration*i,f=r("span",{"class":t.player.config.classNames.cues}),f.style.left="".concat(e.toString(),"%"),u.appendChild(f)))})}},{key:"onAdEvent",value:function(n){var i=this,r=this.player.elements.container,t=n.getAd(),f=n.getAdData();switch(function(n){u.call(i.player,i.player.media,"ads".concat(n.replace(/_/g,"").toLowerCase()))}(n.type),n.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded");this.pollCountdown(!0);t.isLinear()||(t.width=r.offsetWidth,t.height=r.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.loadAds();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown();this.resumeContent();break;case google.ima.AdEvent.Type.LOG:f.adError&&this.player.debug.warn("Non-fatal ad error: ".concat(f.adError.getMessage()))}}},{key:"onAdError",value:function(n){this.cancel();this.player.debug.warn("Ads error",n)}},{key:"listeners",value:function(){var i,t=this,r=this.player.elements.container;this.player.on("canplay",function(){t.addCuePoints()});this.player.on("ended",function(){t.loader.contentComplete()});this.player.on("timeupdate",function(){i=t.player.currentTime});this.player.on("seeked",function(){var r=t.player.currentTime;n.empty(t.cuePoints)||t.cuePoints.forEach(function(n,u){i<n&&n<r&&(t.manager.discardAdBreak(),t.cuePoints.splice(u,1))})});window.addEventListener("resize",function(){t.manager&&t.manager.resize(r.offsetWidth,r.offsetHeight,google.ima.ViewMode.NORMAL)})}},{key:"play",value:function(){var n=this,t=this.player.elements.container;this.managerPromise||this.resumeContent();this.managerPromise.then(function(){n.manager.setVolume(n.player.volume);n.elements.displayContainer.initialize();try{n.initialized||(n.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),n.manager.start());n.initialized=!0}catch(t){n.onAdError(t)}}).catch(function(){})}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="";this.playing=!1;this.player.media.play()}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3;this.playing=!0;this.player.media.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent();this.trigger("error");this.loadAds()}},{key:"loadAds",value:function(){var n=this;this.managerPromise.then(function(){n.manager&&n.manager.destroy();n.managerPromise=new Promise(function(t){n.on("loaded",t);n.player.debug.log(n.manager)});n.requestAds()}).catch(function(){})}},{key:"trigger",value:function(t){for(var u,e=this,r=arguments.length,f=new Array(r>1?r-1:0),i=1;i<r;i++)f[i-1]=arguments[i];u=this.events[t];n.array(u)&&u.forEach(function(t){n.function(t)&&t.apply(e,f)})}},{key:"on",value:function(t,i){return n.array(this.events[t])||(this.events[t]=[]),this.events[t].push(i),this}},{key:"startSafetyTimer",value:function(n,t){var i=this;this.player.debug.log("Safety timer invoked from: ".concat(t));this.safetyTimer=setTimeout(function(){i.cancel();i.clearSafetyTimer("startSafetyTimer()")},n)}},{key:"clearSafetyTimer",value:function(t){n.nullOrUndefined(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!n.empty(t.publisherId)||n.url(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config,i;return n.url(t.tagUrl)?t.tagUrl:(i={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:this.publisherId},"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(gn(i)))}}]),t}(),wst=ki.findIndex,ctt=!0;"findIndex"in[]&&Array(1).findIndex(function(){ctt=!1});s({target:"Array",proto:!0,forced:ctt},{findIndex:function(n){return wst(this,n,arguments.length>1?arguments[1]:void 0)}});eu("findIndex");var ltt,bst=function(){function t(n){nr(this,t);this.player=n;this.thumbnails=[];this.loaded=!1;this.lastMouseMoveTime=Date.now();this.mouseDown=!1;this.loadedImages=[];this.elements={thumb:{},scrubbing:{}};this.load()}return tr(t,[{key:"load",value:function(){var n=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled);this.enabled&&this.getThumbnails().then(function(){n.enabled&&(n.render(),n.determineContainerAutoSizing(),n.loaded=!0)})}},{key:"getThumbnails",value:function(){var t=this;return new Promise(function(i){var r=t.player.config.previewThumbnails.src,u;if(n.empty(r))throw new Error("Missing previewThumbnails.src config attribute");u=(n.string(r)?[r]:r).map(function(n){return t.getThumbnail(n)});Promise.all(u).then(function(){t.thumbnails.sort(function(n,t){return n.height-t.height});t.player.debug.log("Preview thumbnails",t.thumbnails);i()})})}},{key:"getThumbnail",value:function(t){var i=this;return new Promise(function(r){le(t).then(function(u){var s,o,f={frames:(s=u,o=[],s.split(/\r\n\r\n|\n\n|\r\r/).forEach(function(t){var i={};t.split(/\r\n|\n|\r/).forEach(function(t){var f,e,u,r;n.number(i.startTime)?!n.empty(t.trim())&&n.empty(i.text)&&(f=t.trim().split("#xywh="),e=ft(f,1),(i.text=e[0],f[1])&&(u=ft(f[1].split(","),4),i.x=u[0],i.y=u[1],i.w=u[2],i.h=u[3])):(r=t.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/),r&&(i.startTime=3600*Number(r[1]||0)+60*Number(r[2])+Number(r[3])+Number("0.".concat(r[4])),i.endTime=3600*Number(r[6]||0)+60*Number(r[7])+Number(r[8])+Number("0.".concat(r[9]))))});i.text&&o.push(i)}),o),height:null,urlPrefix:""},e;f.frames[0].text.startsWith("/")||f.frames[0].text.startsWith("http://")||f.frames[0].text.startsWith("https://")||(f.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));e=new Image;e.onload=function(){f.height=e.naturalHeight;f.width=e.naturalWidth;i.thumbnails.push(f);r()};e.src=f.urlPrefix+f.frames[0].text})})}},{key:"startMove",value:function(t){if(this.loaded&&n.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if("touchmove"===t.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var i=this.player.elements.progress.getBoundingClientRect(),r=100/i.width*(t.pageX-i.left);this.seekTime=this.player.media.duration*(r/100);this.seekTime<0&&(this.seekTime=0);this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1);this.mousePosX=t.pageX;this.elements.thumb.time.innerText=ds(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(n){!1!==n.button&&0!==n.button||(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var n=this;this.mouseDown=!1;Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):ev.call(this.player,this.player.media,"timeupdate",function(){n.mouseDown||n.toggleScrubbingContainer(!1)})}},{key:"listeners",value:function(){var n=this;this.player.on("play",function(){n.toggleThumbContainer(!1,!0)});this.player.on("seeked",function(){n.toggleThumbContainer(!1)});this.player.on("timeupdate",function(){n.lastTime=n.player.media.currentTime})}},{key:"render",value:function(){this.elements.thumb.container=r("div",{"class":this.player.config.classNames.previewThumbnails.thumbContainer});this.elements.thumb.imageContainer=r("div",{"class":this.player.config.classNames.previewThumbnails.imageContainer});this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var t=r("div",{"class":this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=r("span",{},"00:00");t.appendChild(this.elements.thumb.time);this.elements.thumb.container.appendChild(t);n.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container);this.elements.scrubbing.container=r("div",{"class":this.player.config.classNames.previewThumbnails.scrubbingContainer});this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}},{key:"showImageAtCurrentTime",value:function(){var t=this;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();var n=this.thumbnails[0].frames.findIndex(function(n){return t.seekTime>=n.startTime&&t.seekTime<=n.endTime}),i=n>=0,r=0;this.mouseDown||this.toggleThumbContainer(i);i&&(this.thumbnails.forEach(function(i,u){t.loadedImages.includes(i.frames[n].text)&&(r=u)}),n!==this.showingThumb&&(this.showingThumb=n,this.loadImage(r)))}},{key:"loadImage",value:function(){var o=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.showingThumb,u=this.thumbnails[r],s=u.urlPrefix,f=u.frames[t],i=u.frames[t].text,e=s+i,n;this.currentImageElement&&this.currentImageElement.dataset.filename===i?(this.showImage(this.currentImageElement,f,r,t,i,!1),this.currentImageElement.dataset.index=t,this.removeOldImages(this.currentImageElement)):(this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null),n=new Image,n.src=e,n.dataset.index=t,n.dataset.filename=i,this.showingThumbFilename=i,this.player.debug.log("Loading image: ".concat(e)),n.onload=function(){return o.showImage(n,f,r,t,i,!0)},this.loadingImage=n,this.removeOldImages(n))}},{key:"showImage",value:function(n,t,i,r,u){var f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(u,". num: ").concat(r,". qual: ").concat(i,". newimg: ").concat(f));this.setImageSizeAndOffset(n,t);f&&(this.currentImageContainer.appendChild(n),this.currentImageElement=n,this.loadedImages.includes(u)||this.loadedImages.push(u));this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(i,n,t,u))}},{key:"removeOldImages",value:function(n){var t=this;Array.from(this.currentImageContainer.children).forEach(function(i){var r,u;"img"===i.tagName.toLowerCase()&&(r=t.usingSprites?500:1e3,i.dataset.index===n.dataset.index||i.dataset.deleting||(i.dataset.deleting=!0,u=t.currentImageContainer,setTimeout(function(){u.removeChild(i);t.player.debug.log("Removing thumb: ".concat(i.dataset.filename))},r)))})}},{key:"preloadNearby",value:function(n){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise(function(r){setTimeout(function(){var f=t.thumbnails[0].frames[n].text,e,u;t.showingThumbFilename===f&&(e=i?t.thumbnails[0].frames.slice(n):t.thumbnails[0].frames.slice(0,n).reverse(),u=!1,e.forEach(function(n){var i=n.text,o,e;i===f||t.loadedImages.includes(i)||(u=!0,t.player.debug.log("Preloading thumb filename: ".concat(i)),o=t.thumbnails[0].urlPrefix+i,e=new Image,e.src=o,e.onload=function(){t.player.debug.log("Preloaded thumb filename: ".concat(i));t.loadedImages.includes(i)||t.loadedImages.push(i);r()})}),u||r())},300)})}},{key:"getHigherQuality",value:function(n,t,i,r){var u=this,f;n<this.thumbnails.length-1&&(f=t.naturalHeight,this.usingSprites&&(f=i.h),f<this.thumbContainerHeight&&setTimeout(function(){u.showingThumbFilename===r&&(u.player.debug.log("Showing higher quality thumb for: ".concat(r)),u.loadImage(n+1))},300))}},{key:"toggleThumbContainer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(i,n);!n&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,n);n||(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"determineContainerAutoSizing",value:function(){this.elements.thumb.imageContainer.clientHeight>20&&(this.sizeSpecifiedInCSS=!0)}},{key:"setThumbContainerSizeAndPos",value:function(){if(!this.sizeSpecifiedInCSS){var n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px");this.elements.thumb.imageContainer.style.width="".concat(n,"px")}this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var t=this.player.elements.progress.getBoundingClientRect(),r=this.player.elements.container.getBoundingClientRect(),i=this.elements.thumb.container,u=r.left-t.left+10,f=r.right-t.left-i.clientWidth-10,n=this.mousePosX-t.left-i.clientWidth/2;n<u&&(n=u);n>f&&(n=f);i.style.left="".concat(n,"px")}},{key:"setScrubbingContainerSize",value:function(){this.elements.scrubbing.container.style.width="".concat(this.player.media.clientWidth,"px");this.elements.scrubbing.container.style.height="".concat(this.player.media.clientWidth/this.thumbAspectRatio,"px")}},{key:"setImageSizeAndOffset",value:function(n,t){if(this.usingSprites){var i=this.thumbContainerHeight/t.h;n.style.height="".concat(Math.floor(n.naturalHeight*i),"px");n.style.width="".concat(Math.floor(n.naturalWidth*i),"px");n.style.left="-".concat(t.x*i,"px");n.style.top="-".concat(t.y*i,"px")}}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?Math.floor(this.player.media.clientWidth/this.thumbAspectRatio):Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(n){this.mouseDown?this.currentScrubbingImageElement=n:this.currentThumbnailImageElement=n}}]),t}(),ny={insertElements:function(t,i){var r=this;n.string(i)?en(t,this.media,{src:i}):n.array(i)&&i.forEach(function(n){en(t,r.media,n)})},change:function(t){var i=this;un(t,"sources.length")?(ur.cancelRequests.call(this),this.destroy.call(this,function(){i.options.quality=[];pi(i.media);i.media=null;n.element(i.elements.container)&&i.elements.container.removeAttribute("class");var e=t.sources,f=t.type,o=ft(e,1)[0],s=o.provider,u=void 0===s?fr.html5:s,h=o.src,c="html5"===u?f:"div",l="html5"===u?{}:{src:h};Object.assign(i,{provider:u,type:f,supported:d.check(f,u,i.config.playsinline),media:r(c,l)});i.elements.container.appendChild(i.media);n.boolean(t.autoplay)&&(i.config.autoplay=t.autoplay);i.isHTML5&&(i.config.crossorigin&&i.media.setAttribute("crossorigin",""),i.config.autoplay&&i.media.setAttribute("autoplay",""),n.empty(t.poster)||(i.poster=t.poster),i.config.loop.active&&i.media.setAttribute("loop",""),i.config.muted&&i.media.setAttribute("muted",""),i.config.playsinline&&i.media.setAttribute("playsinline",""));p.addStyleHook.call(i);i.isHTML5&&ny.insertElements.call(i,"source",e);i.config.title=t.title;htt.setup.call(i);i.isHTML5&&Object.keys(t).includes("tracks")&&ny.insertElements.call(i,"track",t.tracks);(i.isHTML5||i.isEmbed&&!i.supported.ui)&&p.build.call(i);i.isHTML5&&i.media.load();i.previewThumbnails&&i.previewThumbnails.load();i.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}},att=function(){function i(t,u){var s=this,c,o;if(nr(this,i),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=d.touch,this.media=t,n.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||n.nodeList(this.media)||n.array(this.media))&&(this.media=this.media[0]),this.config=g({},ntt,i.defaults,u||{},function(){try{return JSON.parse(s.media.getAttribute("data-plyr-config"))}catch(n){return{}}}()),this.elements={container:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new cst(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",d),!n.nullOrUndefined(this.media)&&n.element(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(d.check().api){c=this.media.cloneNode(!0);c.autoplay=!1;this.elements.original=c;var l=this.media.tagName.toLowerCase(),e=null,f=null;switch(l){case"div":if((e=this.media.querySelector("iframe"),n.element(e))?(f=dn(e.getAttribute("src")),this.provider=function(n){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(n)?fr.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(n)?fr.vimeo:null}(f.toString()),this.elements.container=this.media,this.media=e,this.elements.container.className="",f.search.length)&&(o=["1","true"],o.includes(f.searchParams.get("autoplay"))&&(this.config.autoplay=!0),o.includes(f.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=o.includes(f.searchParams.get("playsinline")),this.config.youtube.hl=f.searchParams.get("hl")):this.config.playsinline=!0):(this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider)),n.empty(this.provider)||!Object.keys(fr).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=bv.video;break;case"video":case"audio":this.type=l;this.provider=fr.html5;this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0);this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0);(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0);this.media.hasAttribute("muted")&&(this.config.muted=!0);this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=d.check(this.type,this.provider,this.config.playsinline);this.supported.api?(this.eventListeners=[],this.listeners=new lst(this),this.storage=new yn(this),this.media.plyr=this,n.element(this.elements.container)||(this.elements.container=r("div",{tabindex:0}),fn(this.media,this.elements.container)),p.addStyleHook.call(this),htt.setup.call(this),this.config.debug&&h.call(this,this.elements.container,this.config.events.join(" "),function(n){s.debug.log("event: ".concat(n.type))}),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&p.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new utt(this),this.config.ads.enabled&&(this.ads=new pst(this)),this.isHTML5&&this.config.autoplay&&setTimeout(function(){return s.play()},10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new bst(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return tr(i,[{key:"play",value:function(){var t=this;return n.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(function(){return t.ads.play()}).catch(function(){return t.media.play()}),this.media.play()):null}},{key:"pause",value:function(){this.playing&&n.function(this.media.pause)&&this.media.pause()}},{key:"togglePlay",value:function(t){(n.boolean(t)?t:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):n.function(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(t){this.currentTime=this.currentTime-(n.number(t)?t:this.config.seekTime)}},{key:"forward",value:function(t){this.currentTime=this.currentTime+(n.number(t)?t:this.config.seekTime)}},{key:"increaseVolume",value:function(t){var i=this.media.muted?0:this.volume;this.volume=i+(n.number(t)?t:0)}},{key:"decreaseVolume",value:function(n){this.increaseVolume(-n)}},{key:"toggleCaptions",value:function(n){l.toggle.call(this,n,!1)}},{key:"airplay",value:function(){d.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(i){var f;if(this.supported.ui&&!this.isAudio){var e=ks(this.elements.container,this.config.classNames.hideControls),o=void 0===i?void 0:!i,r=c(this.elements.container,this.config.classNames.hideControls,o);return(r&&this.config.controls.includes("settings")&&!n.empty(this.config.settings)&&t.toggleMenu.call(this,!1),r!==e)&&(f=r?"controlshidden":"controlsshown",u.call(this,this.media,f)),!r}return!1}},{key:"on",value:function(n,t){h.call(this,this.elements.container,n,t)}},{key:"once",value:function(n,t){ev.call(this,this.elements.container,n,t)}},{key:"off",value:function(n,t){ws(this.elements.container,n,t)}},{key:"destroy",value:function(t){var i=this,f=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r;this.ready&&(r=function(){document.body.style.overflow="";i.embed=null;f?(Object.keys(i.elements).length&&(pi(i.elements.buttons.play),pi(i.elements.captions),pi(i.elements.controls),pi(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),n.function(t)&&t()):(function(){this&&this.eventListeners&&(this.eventListeners.forEach(function(n){var t=n.element,i=n.type,r=n.callback,u=n.options;t.removeEventListener(i,r,u)}),this.eventListeners=[])}.call(i),sv(i.elements.original,i.elements.container),u.call(i,i.elements.original,"destroyed",!0),n.function(t)&&t.call(i.elements.original),i.ready=!1,setTimeout(function(){i.elements=null;i.media=null},200))},this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(p.toggleNativeControls.call(this,!0),r()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&n.function(this.embed.destroy)&&this.embed.destroy(),r()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(r),setTimeout(r,200)))}},{key:"supports",value:function(n){return d.mime.call(this,n)}},{key:"isHTML5",get:function(){return this.provider===fr.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===fr.youtube}},{key:"isVimeo",get:function(){return this.provider===fr.vimeo}},{key:"isVideo",get:function(){return this.type===bv.video}},{key:"isAudio",get:function(){return this.type===bv.audio}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",set:function(t){if(this.duration){var i=n.number(t)&&t>0;this.media.currentTime=i?Math.min(t,this.duration):0;this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var t=this.media.buffered;return n.number(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var i=parseFloat(this.config.duration),t=(this.media||{}).duration,r=n.number(t)&&t!==1/0?t:0;return i||r}},{key:"volume",set:function(t){var i=t;n.string(i)&&(i=Number(i));n.number(i)||(i=this.storage.get("volume"));n.number(i)||(i=this.config.volume);i>1&&(i=1);i<0&&(i=0);this.config.volume=i;this.media.volume=i;!n.empty(t)&&this.muted&&i>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(t){var i=t;n.boolean(i)||(i=this.storage.get("muted"));n.boolean(i)||(i=this.config.muted);this.config.muted=i;this.media.muted=i},get:function(){return Boolean(this.media.muted)}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",set:function(t){var f=this,i=null,r,u;n.number(t)&&(i=t);n.number(i)||(i=this.storage.get("speed"));n.number(i)||(i=this.config.speed.selected);r=this.minimumSpeed;u=this.maximumSpeed;i=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(n,t),i)}(i,r,u);this.config.speed.selected=i;setTimeout(function(){f.media.playbackRate=i},0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,vl(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,vl(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(t){var r=this.config.quality,u=this.options.quality,i,f,e;u.length&&(i=[!n.empty(t)&&Number(t),this.storage.get("quality"),r.selected,r.default].find(n.number),f=!0,u.includes(i)||(e=function(t,i){return n.array(t)&&t.length?t.reduce(function(n,t){return Math.abs(t-i)<Math.abs(n-i)?t:n}):null}(u,i),this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(e," instead")),i=e,f=!1),r.selected=i,this.media.quality=i,f&&this.storage.set({quality:i}))},get:function(){return this.media.quality}},{key:"loop",set:function(t){var i=n.boolean(t)?t:this.config.loop.active;this.config.loop.active=i;this.media.loop=i},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(n){ny.change.call(this,n)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var t=this.config.urls.download;return n.url(t)?t:this.source},set:function(i){n.url(i)&&(this.config.urls.download=i,t.setDownloadUrl.call(this))}},{key:"poster",set:function(n){this.isVideo?p.setPoster.call(this,n,!1).catch(function(){}):this.debug.warn("Poster can only be set for video")},get:function(){return this.isVideo?this.media.getAttribute("poster"):null}},{key:"ratio",get:function(){if(!this.isVideo)return null;var t=sn(av.call(this));return n.array(t)?t.join(":"):t},set:function(t){this.isVideo?n.string(t)&&on(t)?(this.config.ratio=t,rr.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(t,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",set:function(t){var i=n.boolean(t)?t:this.config.autoplay;this.config.autoplay=i},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(n){l.set.call(this,n,!1)},get:function(){var n=this.captions,t=n.toggled,i=n.currentTrack;return t?i:-1}},{key:"language",set:function(n){l.setLanguage.call(this,n,!1)},get:function(){return(l.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(t){if(d.pip){var i=n.boolean(t)?t:!this.pip;n.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(i?ttt:"inline");n.function(this.media.requestPictureInPicture)&&(!this.pip&&i?this.media.requestPictureInPicture():this.pip&&!i&&document.exitPictureInPicture())}},get:function(){return d.pip?n.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===ttt:null}}],[{key:"supported",value:function(n,t,i){return d.check(n,t,i)}},{key:"loadSprite",value:function(n,t){return pn(n,t)}},{key:"setup",value:function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return n.string(t)?r=Array.from(document.querySelectorAll(t)):n.nodeList(t)?r=Array.from(t):n.array(t)&&(r=t.filter(n.element)),n.empty(r)?null:r.map(function(n){return new i(n,u)})}}]),i}();return att.defaults=(ltt=ntt,JSON.parse(JSON.stringify(ltt))),att},"object"==e(t)&&void 0!==n?n.exports=o():void 0===(u="function"==typeof(r=o)?r.call(t,i,t,n):r)||(n.exports=u))}).call(t,function(){return this}())},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={$btnOpenModal:$(".js-open-modal"),$btnDownload:$(".js-open-download"),$btnCloseModal:$(".js-close-modal"),$body:$("body"),init:function(){this.toggleModal()},toggleModal:function(){this.$body.hasClass("logged")?this.$btnDownload.removeClass("js-open-download"):this.$btnDownload.on("click",function(n){n.preventDefault();$(this).closest(".js-modal-wrap").find(".js-modal").addClass("modal--opened")});this.$btnOpenModal.on("click",function(){var n=$(this).closest(".js-modal-wrap").find(".js-modal");n.length||(n=$(this).siblings(".js-modal"));n.addClass("modal--opened")});this.$btnCloseModal.on("click",function(){$(this).closest(".js-modal").removeClass("modal--opened")})}};t.default=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={$body:$("body"),$window:$(window),$twitterBtn:$(".twitter-share"),$shareUrl:"",init:function(){var n=this,t=this;this.$twitterBtn.on("click",function(i){i.preventDefault();window.open(n.$twitterBtn.attr("href"),"ShareOnTwitter",t.getWindowOptions()).opener=null})},getWindowOptions:function(){return["resizable,status","height=450","width=550","left="+(window.innerWidth/2-275),"top="+(window.innerHeight/2-225)].join()}};t.default=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={$filterBtn:$(".js-filters"),$filterDropdown:$(".js-filters-dropdown"),activeBtn:"filters__btn--active",dropdownOpened:"filter__dropdown--open",$ctCheckboxes:$(".ct-checkbox"),$webCheckbox:$(".web-checkbox"),$reCheckboxes:$(".re-checkbox"),$vendorCheckboxes:$(".vendor-checkbox"),$prCheckboxes:$(".pr-checkbox"),$rpCheckboxes:$(".rp-checkbox"),$ctHidden:$("#ct-hidden"),$webHidden:$("#web-hidden"),$reHidden:$("#re-hidden"),$vendorHidden:$("#vendor-hidden"),$prHidden:$("#pr-hidden"),$rpHidden:$("#rp-hidden"),$filterRemove:$(".js-remove-filter"),$form:$("#filters-form"),init:function(){this.toggleFiltersDropdown();this.closeDropdown()},toggleFiltersDropdown:function(){if(this.$filterBtn.length){var n=this;this.$filterBtn.on("click",function(){var t=$(this).next();n.$filterBtn.not(this).removeClass(n.activeBtn);$(this).toggleClass(n.activeBtn);n.$filterDropdown.not(t).removeClass(n.dropdownOpened);t.toggleClass(n.dropdownOpened)});n.$ctCheckboxes.on("change",function(){var t=n.$ctHidden.val().split(","),i;if($(this).is(":checked"))t.push($(this).val());else for(i=t.length-1;i>=0;i--)t[i]===$(this).val()&&t.splice(i,1);t=t.filter(function(n){return null!==n&&""!==n});n.$ctHidden.val(t.toString())});n.$webCheckbox.on("change",function(){$(this).is(":checked")?n.$webHidden.val(1):n.$webHidden.val(0)});n.$reCheckboxes.on("change",function(){var t=n.$reHidden.val().split(","),i;if($(this).is(":checked"))t.push($(this).val());else for(i=t.length-1;i>=0;i--)t[i]===$(this).val()&&t.splice(i,1);t=t.filter(function(n){return null!==n&&""!==n});n.$reHidden.val(t.toString())});n.$vendorCheckboxes.on("change",function(){var t=n.$vendorHidden.val().split(","),i;if($(this).is(":checked"))t.push($(this).val());else for(i=t.length-1;i>=0;i--)t[i]===$(this).val()&&t.splice(i,1);t=t.filter(function(n){return null!==n&&""!==n});n.$vendorHidden.val(t.toString())});n.$prCheckboxes.on("change",function(){var t=n.$prHidden.val().split(","),i;if($(this).is(":checked"))t.push($(this).val());else for(i=t.length-1;i>=0;i--)t[i]===$(this).val()&&t.splice(i,1);t=t.filter(function(n){return null!==n&&""!==n});n.$prHidden.val(t.toString())});n.$rpCheckboxes.on("change",function(){var t=n.$rpHidden.val().split(";"),i;if($(this).is(":checked"))t.push($(this).val());else for(i=t.length-1;i>=0;i--)t[i]===$(this).val()&&t.splice(i,1);t=t.filter(function(n){return null!==n&&""!==n});n.$rpHidden.val(t.join(";"))});this.$filterRemove.on("click",function(){!function(t){var i,o,r,s,u,h,f,c,e,l;if(n.$ctHidden.length>0){for(i=n.$ctHidden.val().split(","),o=i.length-1;o>=0;o--)i[o]===t&&i.splice(o,1);i=i.filter(function(n){return null!==n&&""!==n});n.$ctHidden.val(i.toString())}if(n.$webHidden.length>0&&"Website"===t&&n.$webHidden.val(0),n.$reHidden.length>0){for(r=n.$reHidden.val().split(","),s=r.length-1;s>=0;s--)r[s]===t&&r.splice(s,1);r=r.filter(function(n){return null!==n&&""!==n});n.$reHidden.val(r.toString())}if(n.$vendorHidden.length>0){for(u=n.$vendorHidden.val().split(","),h=u.length-1;h>=0;h--)u[h]===t&&u.splice(h,1);u=u.filter(function(n){return null!==n&&""!==n});n.$vendorHidden.val(u.toString())}if(n.$prHidden.length>0){for(f=n.$prHidden.val().split(","),c=f.length-1;c>=0;c--)f[c]===t&&f.splice(c,1);f=f.filter(function(n){return null!==n&&""!==n});n.$prHidden.val(f.toString())}if(n.$rpHidden.length>0){for(e=n.$rpHidden.val().split(";"),l=e.length-1;l>=0;l--)e[l]===t&&e.splice(l,1);e=e.filter(function(n){return null!==n&&""!==n});n.$rpHidden.val(e.join(";"))}n.$form.submit()}($(this).data("filter"))})}},closeDropdown:function(){$(document).on("click",function(n){0===$(n.target).closest(".js-filters, .js-filters-dropdown").length&&($(".filters__btn").removeClass("filters__btn--active"),$(".filter__dropdown").removeClass("filter__dropdown--open"))})}};t.default=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={$body:$("body"),$window:$(window),$currentUrl:$("experts-js").data("currenturl"),init:function(){var n=this;$(".expert__filter-checkbox").on("change",function(){var t=n.getBooleanFromCheckbox("consultant"),i=n.getBooleanFromCheckbox("analyst");window.location.href="?consultant="+t+"&research="+i})},getBooleanFromCheckbox:function(n){return $("#"+n).is(":checked")}};t.default=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={$tabLink:$(".js-tab-link"),$tabContent:$(".tabs"),$tabsLinks:$(".tabs__links"),tab:".tabs__tab",activeTabLink:"tabs__link--active",activeTab:"tabs__tab--active",init:function(){this.bindEvents()},bindEvents:function(){var n=this;n.$tabContent.each(function(){var t=$(this).find(n.$tabLink),i=$(this).find(n.tab);t.on("click",function(){var r=$(this).parent().index();t.removeClass(n.activeTabLink);i.removeClass(n.activeTab);$(this).addClass(n.activeTabLink);i.eq(r).addClass(n.activeTab);n.$tabsToggle.text($(this).text())});t.first().addClass(n.activeTabLink);i.first().addClass(n.activeTab)})}};t.default=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={accordion:$(".js-accordion"),init:function(){this.accordions()},accordions:function(){var t=this.accordion,i=this.accordion.find($(".accordion__button")),n=this.accordion.find($(".accordion__content"));t.each(function(){$(this).find(i).on("click",function(){var t=$(this);t.hasClass("accordion__button--opened")?(t.removeClass("accordion__button--opened"),t.next(n).stop().slideUp(400)):(t.parent().siblings().find(".accordion__button--opened").removeClass("accordion__button--opened"),t.parent().siblings().find(n).stop().slideUp(400),t.addClass("accordion__button--opened"),t.next(n).stop().slideDown(400))})})}};t.default=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={accordionImg:$(".js-accordion-img"),init:function(){this.accordionsImg()},accordionsImg:function(){var t=this.accordionImg,i=this.accordionImg.find($(".accordion-img__button")),n=this.accordionImg.find($(".accordion-img__content"));t.each(function(){$(this).find(i).on("click",function(){var t=$(this);t.hasClass("accordion-img__button--opened")?(t.removeClass("accordion-img__button--opened"),t.next(n).stop().slideUp(400)):(t.parent().siblings().find(".accordion-img__button--opened").removeClass("accordion-img__button--opened"),t.parent().siblings().find(n).stop().slideUp(400),t.addClass("accordion-img__button--opened"),t.next(n).stop().slideDown(400))})})}};t.default=i}]);DownloadForm=new downloadForm;$(document).ready(function(){DownloadForm.init()})