1var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};window.Modernizr=function(t,e,i){var n,r,s={},o=e.documentElement,a="modernizr",l=e.createElement(a),u=l.style,c=e.createElement("input"),h=":)",d={}.toString,f=" -webkit- -moz- -o- -ms- ".split(" "),p="Webkit Moz O ms".split(" "),m="Webkit Moz O ms".toLowerCase().split(" "),g="http://www.w3.org/2000/svg",v={},_={},y={},b=[],w=b.slice,x=function(t,i,n,r){var s,l,u,c,h=e.createElement("div"),d=e.body,f=d||e.createElement("body");if(parseInt(n,10))for(;n--;)(u=e.createElement("div")).id=r?r[n]:a+(n+1),h.appendChild(u);return s=["­",'<style id="s',a,'">',t,"</style>"].join(""),h.id=a,(d?h:f).innerHTML+=s,f.appendChild(h),d||(f.style.background="",f.style.overflow="hidden",c=o.style.overflow,o.style.overflow="hidden",o.appendChild(f)),l=i(h,t),d?h.parentNode.removeChild(h):(f.parentNode.removeChild(f),o.style.overflow=c),!!l},C=function(){var t={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(n,r){r=r||e.createElement(t[n]||"div");var s=(n="on"+n)in r;return s||(r.setAttribute||(r=e.createElement("div")),r.setAttribute&&r.removeAttribute&&(r.setAttribute(n,""),s=S(r[n],"function"),S(r[n],"undefined")||(r[n]=i),r.removeAttribute(n))),r=null,s}}(),T={}.hasOwnProperty;function $(t){u.cssText=t}function S(t,e){return(void 0===t?"undefined":_typeof(t))===e}function k(t,e){return!!~(""+t).indexOf(e)}function E(t,e){for(var n in t){var r=t[n];if(!k(r,"-")&&u[r]!==i)return"pfx"!=e||r}return!1}function P(t,e,n){var r=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+p.join(r+" ")+r).split(" ");return S(e,"string")||S(e,"undefined")?E(s,e):function(t,e,n){for(var r in t){var s=e[t[r]];if(s!==i)return!1===n?t[r]:S(s,"function")?s.bind(n||e):s}return!1}(s=(t+" "+m.join(r+" ")+r).split(" "),e,n)}for(var O in r=S(T,"undefined")||S(T.call,"undefined")?function(t,e){return e in t&&S(t.constructor.prototype[e],"undefined")}:function(t,e){return T.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var i=w.call(arguments,1);return function n(){if(this instanceof n){var r=function(){};r.prototype=e.prototype;var s=new r,o=e.apply(s,i.concat(w.call(arguments)));return Object(o)===o?o:s}return e.apply(t,i.concat(w.call(arguments)))}}),v.flexbox=function(){return P("flexWrap")},v.flexboxlegacy=function(){return P("boxDirection")},v.canvas=function(){var t=e.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},v.canvastext=function(){return!(!s.canvas||!S(e.createElement("canvas").getContext("2d").fillText,"function"))},v.webgl=function(){return!!t.WebGLRenderingContext},v.touch=function(){var i;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?i=!0:x(["@media (",f.join("touch-enabled),("),a,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(t){i=9===t.offsetTop}),i},v.geolocation=function(){return"geolocation"in navigator},v.postmessage=function(){return!!t.postMessage},v.websqldatabase=function(){return!!t.openDatabase},v.indexedDB=function(){return!!P("indexedDB",t)},v.hashchange=function(){return C("hashchange",t)&&(e.documentMode===i||e.documentMode>7)},v.history=function(){return!(!t.history||!history.pushState)},v.draganddrop=function(){var t=e.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},v.websockets=function(){return"WebSocket"in t||"MozWebSocket"in t},v.rgba=function(){return $("background-color:rgba(150,255,150,.5)"),k(u.backgroundColor,"rgba")},v.hsla=function(){return $("background-color:hsla(120,40%,100%,.5)"),k(u.backgroundColor,"rgba")||k(u.backgroundColor,"hsla")},v.multiplebgs=function(){return $("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(u.background)},v.backgroundsize=function(){return P("backgroundSize")},v.borderimage=function(){return P("borderImage")}
1,v.borderradius=function(){return P("borderRadius")},v.boxshadow=function(){return P("boxShadow")},v.textshadow=function(){return""===e.createElement("div").style.textShadow},v.opacity=function(){var t,e;return t="opacity:.55",$(f.join(t+";")+(e||"")),/^0.55$/.test(u.opacity)},v.cssanimations=function(){return P("animationName")},v.csscolumns=function(){return P("columnCount")},v.cssgradients=function(){var t="background-image:";return $((t+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+t)+f.join("linear-gradient(left top,#9f9, white);"+t)).slice(0,-t.length)),k(u.backgroundImage,"gradient")},v.cssreflections=function(){return P("boxReflect")},v.csstransforms=function(){return!!P("transform")},v.csstransforms3d=function(){var t=!!P("perspective");return t&&"webkitPerspective"in o.style&&x("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(e,i){t=9===e.offsetLeft&&3===e.offsetHeight}),t},v.csstransitions=function(){return P("transition")},v.fontface=function(){var t;return x('@font-face {font-family:"font";src:url("https://")}',function(i,n){var r=e.getElementById("smodernizr"),s=r.sheet||r.styleSheet,o=s?s.cssRules&&s.cssRules[0]?s.cssRules[0].cssText:s.cssText||"":"";t=/src/i.test(o)&&0===o.indexOf(n.split(" ")[0])}),t},v.generatedcontent=function(){var t;return x(["#",a,"{font:0/0 a}#",a,':after{content:"',h,'";visibility:hidden;font:3px/1 a}'].join(""),function(e){t=e.offsetHeight>=3}),t},v.video=function(){var t=e.createElement("video"),i=!1;try{(i=!!t.canPlayType)&&((i=new Boolean(i)).ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),i.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),i.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(t){}return i},v.audio=function(){var t=e.createElement("audio"),i=!1;try{(i=!!t.canPlayType)&&((i=new Boolean(i)).ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),i.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),i.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(t){}return i},v.localstorage=function(){try{return localStorage.setItem(a,a),localStorage.removeItem(a),!0}catch(t){return!1}},v.sessionstorage=function(){try{return sessionStorage.setItem(a,a),sessionStorage.removeItem(a),!0}catch(t){return!1}},v.webworkers=function(){return!!t.Worker},v.applicationcache=function(){return!!t.applicationCache},v.svg=function(){return!!e.createElementNS&&!!e.createElementNS(g,"svg").createSVGRect},v.inlinesvg=function(){var t=e.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==g},v.smil=function(){return!!e.createElementNS&&/SVGAnimate/.test(d.call(e.createElementNS(g,"animate")))},v.svgclippaths=function(){return!!e.createElementNS&&/SVGClipPath/.test(d.call(e.createElementNS(g,"clipPath")))},v)r(v,O)&&(n=O.toLowerCase(),s[n]=v[O](),b.push((s[n]?"":"no-")+n));return s.input||(s.input=function(i){for(var n=0,r=i.length;n<r;n++)y[i[n]]=!!(i[n]in c);return y.list&&(y.list=!(!e.createElement("datalist")||!t.HTMLDataListElement)),y}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),s.inputtypes=function(t){for(var n,r,s,a=0,l=t.length;a<l;a++)c.setAttribute("type",r=t[a]),(n="text"!==c.type)&&(c.value=h,c.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(r)&&c.style.WebkitAppearance!==i?(o.appendChild(c),n=(s=e.defaultView).getComputedStyle&&"textfield"!==s.getComputedStyle(c,null).WebkitAppearance&&0!==c.offsetHeight,o.removeChild(c)):/^(search|tel)$/.test(r)||(n=/^(url|email)$/.test(r)?c.checkValidity&&!1===c.checkValidity():c.value!=h)),_[t[a]]=!!n;return _}("search tel url email datetime date month week time datetime-local number range color".split(" "))),s.addTest=function(t,e){if("object"==(void 0===t?"undefined":_typeof(t)))for(var n in t)r(t,n)&&s.addTest(n,t[n]);else{if(t=t.toLowerCase(),s[t]!==i)return s;e="function"==typeof e?e():e,o.className+=" "+(e?"":"no-")+t,s[t]=e}return s},$(""),l=c=null,function(t,e){var i,n,r=t.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,o=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,a="_html5shiv",l=0,u={};function c(){var t=p.elements;return"string"==typeof t?t.split(" "):t}function h(t){var e=u[t[a]];return e||(e={},l++,t[a]=l,u[l]=e),e}
1function d(t,i,r){return i||(i=e),n?i.createElement(t):(r||(r=h(i)),!(a=r.cache[t]?r.cache[t].cloneNode():o.test(t)?(r.cache[t]=r.createElem(t)).cloneNode():r.createElem(t)).canHaveChildren||s.test(t)||a.tagUrn?a:r.frag.appendChild(a));var a}function f(t){t||(t=e);var r=h(t);return!p.shivCSS||i||r.hasCSS||(r.hasCSS=!!function(t,e){var i=t.createElement("p"),n=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x<style>"+e+"</style>",n.insertBefore(i.lastChild,n.firstChild)}(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),n||function(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return p.shivMethods?d(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/[\w\-]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(p,e.frag)}(t,r),t}!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",i="hidden"in t,n=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){i=!0,n=!0}}();var p={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==r.shivCSS,supportsUnknownElements:n,shivMethods:!1!==r.shivMethods,type:"default",shivDocument:f,createElement:d,createDocumentFragment:function(t,i){if(t||(t=e),n)return t.createDocumentFragment();for(var r=(i=i||h(t)).frag.cloneNode(),s=0,o=c(),a=o.length;s<a;s++)r.createElement(o[s]);return r}};t.html5=p,f(e)}(this,e),s._version="2.8.3",s._prefixes=f,s._domPrefixes=m,s._cssomPrefixes=p,s.mq=function(e){var i,n=t.matchMedia||t.msMatchMedia;return n?n(e)&&n(e).matches||!1:(x("@media "+e+" { #"+a+" { position: absolute; } }",function(e){i="absolute"==(t.getComputedStyle?getComputedStyle(e,null):e.currentStyle).position}),i)},s.hasEvent=C,s.testProp=function(t){return E([t])},s.testAllProps=P,s.testStyles=x,s.prefixed=function(t,e,i){return e?P(t,e,i):P(t,"pfx")},o.className=o.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+b.join(" "),s}(this,this.document);_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"object"===("undefined"==typeof module?"undefined":_typeof(module))?module.exports=e():"function"==typeof define&&define.amd?define("whatInput",[],e):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?exports.whatInput=e():t.whatInput=e()}(this,function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}return i.m=t,i.c=e,i.p="",i(0)}([function(t,e){"use strict";t.exports=function(){var t="initial",e=null,i=document.documentElement,n=["input","select","textarea"],r=[],s=[16,17,18,91,93],o=[9],a={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch"},l=[],u=!1,c=!1,h={x:null,y:null},d={2:"touch",3:"touch",4:"mouse"},f=!1;try{var p=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,p)}catch(t){}var m=function(){var t=!!f&&{passive:!0};window.PointerEvent?(i.addEventListener("pointerdown",g),i.addEventListener("pointermove",_)):window.MSPointerEvent?(i.addEventListener("MSPointerDown",g),i.addEventListener("MSPointerMove",_)):(i.addEventListener("mousedown",g),i.addEventListener("mousemove",_),"ontouchstart"in window&&(i.addEventListener("touchstart",y,t),i.addEventListener("touchend",y))),i.addEventListener(x(),_,t),i.addEventListener("keydown",g),i.addEventListener("keyup",g)},g=function(i){if(!u){var r=i.which,l=a[i.type];if("pointer"===l&&(l=w(i)),t!==l||e!==l){var c=document.activeElement,h=!1;(c&&c.nodeName&&-1===n.indexOf(c.nodeName.toLowerCase())||-1!==o.indexOf(r))&&(h=!0),("touch"===l||"mouse"===l||"keyboard"===l&&r&&h&&-1===s.indexOf(r))&&(t=e=l,v())}}},v=function(){i.setAttribute("data-whatinput",t),i.setAttribute("data-whatintent",t),-1===l.indexOf(t)&&(l.push(t),i.className+=" whatinput-types-"+t),b("input")},_=function(t){if(h.x!==t.screenX||h.y!==t.screenY?(c=!1,h.x=t.screenX,h.y=t.screenY):c=!0,!u&&!c){var n=a[t.type];"pointer"===n&&(n=w(t)),e!==n&&(e=n,i.setAttribute("data-whatintent",e),b("intent"))}},y=function(t){"touchstart"===t.type?(u=!1,g(t)):u=!0},b=function(t){for(var i=0,n=r.length;i<n;i++)r[i].type===t&&r[i].fn.call(void 0,e)},w=function(t){return"number"==typeof t.pointerType?d[t.pointerType]:"pen"===t.pointerType?"touch":t.pointerType},x=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"};return"addEventListener"in window&&Array.prototype.indexOf&&(a[x()]="mouse",m(),v()),{ask:function(i){return"loose"===i?e:t},types:function(){return l},ignoreKeys:function(t){s=t},registerOnChange:function(t,e){r.push({fn:t,type:e||"input"})},unRegisterOnChange:function(t){var e=function(t){for(var e=0,i=r.length;e<i;e++)if(r[e].fn===t)return e}(t);e&&r.splice(e,1)}}}()}])}),function(){"use strict";function t(t,e){if(t){if(e.element_.classList.contains(e.CssClasse
1s_.MDL_JS_RIPPLE_EFFECT)){var i=document.createElement("span");i.classList.add(e.CssClasses_.MDL_RIPPLE_CONTAINER),i.classList.add(e.CssClasses_.MDL_JS_RIPPLE_EFFECT);var n=document.createElement("span");n.classList.add(e.CssClasses_.MDL_RIPPLE),i.appendChild(n),t.appendChild(i)}t.addEventListener("click",function(i){if("#"===t.getAttribute("href").charAt(0)){i.preventDefault();var n=t.href.split("#")[1],r=e.element_.querySelector("#"+n);e.resetTabState_(),e.resetPanelState_(),t.classList.add(e.CssClasses_.ACTIVE_CLASS),r.classList.add(e.CssClasses_.ACTIVE_CLASS)}})}}function e(t,e,i,n){function r(){var r=t.href.split("#")[1],s=n.content_.querySelector("#"+r);n.resetTabState_(e),n.resetPanelState_(i),t.classList.add(n.CssClasses_.IS_ACTIVE),s.classList.add(n.CssClasses_.IS_ACTIVE)}if(n.tabBar_.classList.contains(n.CssClasses_.JS_RIPPLE_EFFECT)){var s=document.createElement("span");s.classList.add(n.CssClasses_.RIPPLE_CONTAINER),s.classList.add(n.CssClasses_.JS_RIPPLE_EFFECT);var o=document.createElement("span");o.classList.add(n.CssClasses_.RIPPLE),s.appendChild(o),t.appendChild(s)}n.tabBar_.classList.contains(n.CssClasses_.TAB_MANUAL_SWITCH)||t.addEventListener("click",function(e){"#"===t.getAttribute("href").charAt(0)&&(e.preventDefault(),r())}),t.show=r}var i={upgradeDom:function(t,e){},upgradeElement:function(t,e){},upgradeElements:function(t){},upgradeAllRegistered:function(){},registerUpgradedCallback:function(t,e){},register:function(t){},downgradeElements:function(t){}};(i=function(){function t(t,e){for(var i=0;i<a.length;i++)if(a[i].className===t)return void 0!==e&&(a[i]=e),a[i];return!1}function e(t){var e=t.getAttribute("data-upgraded");return null===e?[""]:e.split(",")}function i(t,i){return-1!==e(t).indexOf(i)}function n(t,e,i){if("CustomEvent"in window&&"function"==typeof window.CustomEvent)return new CustomEvent(t,{bubbles:e,cancelable:i});var n=document.createEvent("Events");return n.initEvent(t,e,i),n}function r(e,i){if(void 0===e&&void 0===i)for(var n=0;n<a.length;n++)r(a[n].className,a[n].cssClass);else{var o=e;if(void 0===i){var l=t(o);l&&(i=l.cssClass)}for(var u=document.querySelectorAll("."+i),c=0;c<u.length;c++)s(u[c],o)}}function s(r,s){if(!("object"==typeof r&&r instanceof Element))throw new Error("Invalid argument provided to upgrade MDL element.");var o=n("mdl-componentupgrading",!0,!0);if(r.dispatchEvent(o),!o.defaultPrevented){var c=e(r),h=[];if(s)i(r,s)||h.push(t(s));else{var d=r.classList;a.forEach(function(t){d.contains(t.cssClass)&&-1===h.indexOf(t)&&!i(r,t.className)&&h.push(t)})}for(var f,p=0,m=h.length;p<m;p++){if(!(f=h[p]))throw new Error("Unable to find a registered component for the given class.");c.push(f.className),r.setAttribute("data-upgraded",c.join(","));var g=new f.classConstructor(r);g[u]=f,l.push(g);for(var v=0,_=f.callbacks.length;v<_;v++)f.callbacks[v](r);f.widget&&(r[f.className]=g);var y=n("mdl-componentupgraded",!0,!1);r.dispatchEvent(y)}}}function o(t){if(t){var e=l.indexOf(t);l.splice(e,1);var i=t.element_.getAttribute("data-upgraded").split(","),r=i.indexOf(t[u].classAsString);i.splice(r,1),t.element_.setAttribute("data-upgraded",i.join(","));var s=n("mdl-componentdowngraded",!0,!1);t.element_.dispatchEvent(s)}}var a=[],l=[],u="mdlComponentConfigInternal_";return{upgradeDom:r,upgradeElement:s,upgradeElements:function t(e){Array.isArray(e)||(e=e instanceof Element?[e]:Array.prototype.slice.call(e));for(var i,n=0,r=e.length;n<r;n++)(i=e[n])instanceof HTMLElement&&(s(i),i.children.length>0&&t(i.children))},upgradeAllRegistered:function(){for(var t=0;t<a.length;t++)r(a[t].className)},registerUpgradedCallback:function(e,i){var n=t(e);n&&n.callbacks.push(i)},register:function(e){var i=!0;void 0===e.widget&&void 0===e.widget||(i=e.widget||e.widget);var n={classConstructor:e.constructor||e.constructor,className:e.classAsString||e.classAsString,cssClass:e.cssClass||e.cssClass,widget:i,callbacks:[]};if(a.forEach(function(t){if(t.cssClass===n.cssClass)throw new Error("The provided cssClass has already been registered: "+t.cssClass);if(t.className===n.className)throw new Error("The provided className has already been registered")}),e.constructor.prototype.hasOwnProperty(u))throw new Error("MDL component classes must not have "+u+" defined as a property.");t(e.classAsString,n)||a.push(n)},downgradeElements:function(t){var e=function(t){l.filter(function(e){return e.element_===t}
vendor: 17,251 bytes, line 1
1).forEach(o)};if(t instanceof Array||t instanceof NodeList)for(var i=0;i<t.length;i++)e(t[i]);else{if(!(t instanceof Node))throw new Error("Invalid argument provided to downgrade MDL nodes.");e(t)}}}}()).ComponentConfigPublic,i.ComponentConfig,i.Component,i.upgradeDom=i.upgradeDom,i.upgradeElement=i.upgradeElement,i.upgradeElements=i.upgradeElements,i.upgradeAllRegistered=i.upgradeAllRegistered,i.registerUpgradedCallback=i.registerUpgradedCallback,i.register=i.register,i.downgradeElements=i.downgradeElements,window.componentHandler=i,window.componentHandler=i,window.addEventListener("load",function(){"classList"in document.createElement("div")&&"querySelector"in document&&"addEventListener"in window&&Array.prototype.forEach?(document.documentElement.classList.add("mdl-js"),i.upgradeAllRegistered()):(i.upgradeElement=function(){},i.register=function(){})}),Date.now||(Date.now=function(){return(new Date).getTime()},Date.now=Date.now);for(var n=["webkit","moz"],r=0;r<n.length&&!window.requestAnimationFrame;++r){var s=n[r];window.requestAnimationFrame=window[s+"RequestAnimationFrame"],window.cancelAnimationFrame=window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"],window.requestAnimationFrame=window.requestAnimationFrame,window.cancelAnimationFrame=window.cancelAnimationFrame}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var o=0;window.requestAnimationFrame=function(t){var e=Date.now(),i=Math.max(o+16,e);return setTimeout(function(){t(o=i)},i-e)},window.cancelAnimationFrame=clearTimeout,window.requestAnimationFrame=window.requestAnimationFrame,window.cancelAnimationFrame=window.cancelAnimationFrame}var a=function(t){this.element_=t,this.init()};window.MaterialButton=a,a.prototype.Constant_={},a.prototype.CssClasses_={RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-button__ripple-container",RIPPLE:"mdl-ripple"},a.prototype.blurHandler_=function(t){t&&this.element_.blur()},a.prototype.disable=function(){this.element_.disabled=!0},a.prototype.disable=a.prototype.disable,a.prototype.enable=function(){this.element_.disabled=!1},a.prototype.enable=a.prototype.enable,a.prototype.init=function(){if(this.element_){if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){var t=document.createElement("span");t.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleElement_=document.createElement("span"),this.rippleElement_.classList.add(this.CssClasses_.RIPPLE),t.appendChild(this.rippleElement_),this.boundRippleBlurHandler=this.blurHandler_.bind(this),this.rippleElement_.addEventListener("mouseup",this.boundRippleBlurHandler),this.element_.appendChild(t)}this.boundButtonBlurHandler=this.blurHandler_.bind(this),this.element_.addEventListener("mouseup",this.boundButtonBlurHandler),this.element_.addEventListener("mouseleave",this.boundButtonBlurHandler)}},i.register({constructor:a,classAsString:"MaterialButton",cssClass:"mdl-js-button",widget:!0});var l=function(t){this.element_=t,this.init()};window.MaterialCheckbox=l,l.prototype.Constant_={TINY_TIMEOUT:.001},l.prototype.CssClasses_={INPUT:"mdl-checkbox__input",BOX_OUTLINE:"mdl-checkbox__box-outline",FOCUS_HELPER:"mdl-checkbox__focus-helper",TICK_OUTLINE:"mdl-checkbox__tick-outline",RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE_CONTAINER:"mdl-checkbox__ripple-container",RIPPLE_CENTER:"mdl-ripple--center",RIPPLE:"mdl-ripple",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_CHECKED:"is-checked",IS_UPGRADED:"is-upgraded"},l.prototype.onChange_=function(t){this.updateClasses_()},l.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},l.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},l.prototype.onMouseUp_=function(t){this.blur_()},l.prototype.updateClasses_=function(){this.checkDisabled(),this.checkToggleState()},l.prototype.blur_=function(){window.setTimeout(function(){this.inputElement_.blur()}.bind(this),this.Constant_.TINY_TIMEOUT)},l.prototype.checkToggleState=function(){this.inputElement_.checked?this.element_.classList.add(this.CssClasses_.IS_CHECKED):this.element_.classList.remove(this.CssClasses_.IS_CHECKED)},l.prototype.checkToggleState=l.prototype.checkToggleState,l.prototype.checkDisabled=function(){this.inputElement_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},l.prototype.checkDisabled=l.prototype.checkDisabled,l.prototype.disable=function(){this.inputElement_.disabled=!0,this.updateClasses_()},l.prototype.disable=l.prototype.disable,l.prototype.enable=function(){this.inputElement_.disabled=!1,this.updateClasses_()},l.prototype.enable=l.prototype.enable,l.prototype.check=function(){this.inputElement_.checked=!0,this.updateClasses_()},l.prototype.check=l.prototype.check,l.prototype.uncheck=function(){this.inputElement_.checked=!1,this.updateClasses_()},l.prototype.uncheck=l.prototype.uncheck,l.prototype.init=function(){if(this.element_){this.inputElement_=this.element_.querySelector("."+this.CssClasses_.INPUT);var t=document.createElement("span");t.classList.add(this.CssClasses_.BOX_OUTLINE);var e=document.createElement("span");e.classList.add(this.CssClasses_.FOCUS_HELPER);var i=document.createElement("span");if(i.classList.add(this.CssClasses_.TICK_OUTLINE),t.appendChild(i),this.element_.appendChild(e),this.element_.appendChild(t),this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){this.element_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS),this.rippleContainerElement_=document.createElement("span"),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_EFFECT),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CENTER),this.boundRippleMouseUp=this.onMouseUp_.bind(this),this.rippleContainerElement_.addEventListener("mouseup",this.boundRippleMouseUp);var n=document.createElement("span");n.classList.add(this.CssClasses_.RIPPLE),this.rippleContainerElement_.appendChild(n),this.element_.appendChild(this.rippleContainerElement_)}this.boundInputOnChange=this.onChange_.bind(this),this.boundInputOnFocus=this.onFocus_.bind(this),this.boundInputOnBlur=this.onBlur_.bind(this),this.boundElementMouseUp=this.onMouseUp_.bind(this),this.inputElement_.addEventListener("change",this.boundInputOnChange),this.inputElement_.addEventListener("focus",this.boundInputOnFocus),this.inputElement_.addEventListener("blur",this.boundInputOnBlur),this.element_.addEventListener("mouseup",this.boundElementMouseUp),this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED)}},i.register({constructor:l,classAsString:"MaterialCheckbox",cssClass:"mdl-js-checkbox",widget:!0});var u=function(t){this.element_=t,this.init()};window.MaterialIconToggle=u,u.prototype.Constant_={TINY_TIMEOUT:.001},u.prototype.CssClasses_={INPUT:"mdl-icon-toggle__input",JS_RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE_CONTAINER:"mdl-icon-toggle__ripple-container",RIPPLE_CENTER:"mdl-ripple--center",RIPPLE:"mdl-ripple",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_CHECKED:"is-checked"},u.prototype.onChange_=function(t){this.updateClasses_()},u.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},u.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},u.prototype.onMouseUp_=function(t){this.blur_()},u.prototype.updateClasses_=function(){this.checkDisabled(),this.checkToggleState()},u.prototype.blur_=function(){window.setTimeout(function(){this.inputElement_.blur()}.bind(this),this.Constant_.TINY_TIMEOUT)},u.prototype.checkToggleState=function(){this.inputElement_.checked?this.element_.classList.add(this.CssClasses_.IS_CHECKED):this.element_.classList.remove(this.CssClasses_.IS_CHECKED)},u.prototype.checkToggleState=u.prototype.checkToggleState,u.prototype.checkDisabled=function(){this.inputElement_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},u.prototype.checkDisabled=u.prototype.checkDisabled,u.prototype.disable=function(){this.inputElement_.disabled=!0,this.updateClasses_()},u.prototype.disable=u.prototype.disable,u.prototype.enable=function(){this.inputElement_.disabled=!1,this.updateClasses_()},u.prototype.enable=u.prototype.enable,u.prototype.check=function(){this.inputElement_.checked=!0,this.updateClasses_()},u.prototype.check=u.prototype.check,u.prototype.uncheck=function(){this.inputElement_.checked=!1,this.updateClasses_()},u.prototype.uncheck=u.prototype.uncheck,u.prototype.init=function(){if(this.element_){if(this.inputElement_=this.element_.querySelector("."+this.CssClasses_.INPUT),this.element_.classList.contains(this.CssClasses_.JS_RIPPLE_EFFECT)){this.element_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS),this.rippleContainerElement_=document.createElement("span"),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleContainerElement_.classList.add(this.CssClasses_.JS_RIPPLE_EFFECT),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CENTER),this.boundRippleMouseUp=this.onMouseUp_.bind(this),this.rippleContainerElement_.addEventListener("mouseup",this.boundRippleMouseUp);var t=document.createElement("span");t.classList.add(this.CssClasses_.RIPPLE),this.rippleContainerElement_.appendChild(t),this.element_.appendChild(this.rippleContainerElement_)}this.boundInputOnChange=this.onChange_.bind(this),this.boundInputOnFocus=this.onFocus_.bind(this),this.boundInputOnBlur=this.onBlur_.bind(this),this.boundElementOnMouseUp=this.onMouseUp_.bind(this),this.inputElement_.addEventListener("change",this.boundInputOnChange),this.inputElement_.addEventListener("focus",this.boundInputOnFocus),this.inputElement_.addEventListener("blur",this.boundInputOnBlur),this.element_.addEventListener("mouseup",this.boundElementOnMouseUp),this.updateClasses_(),this.element_.classList.add("is-upgraded")}},i.register({constructor:u,classAsString:"MaterialIconToggle",cssClass:"mdl-js-icon-toggle",widget:!0});var c=function(t){this.element_=t,this.init()};window.MaterialMenu=c,c.prototype.Constant_={TRANSITION_DURATION_SECONDS:.3,TRANSITION_DURATION_FRACTION:.8,CLOSE_TIMEOUT:150},c.prototype.Keycodes_={ENTER:13,ESCAPE:27,SPACE:32,UP_ARROW:38,DOWN_ARROW:40},c.prototype.CssClasses_={CONTAINER:"mdl-menu__container",OUTLINE:"mdl-menu__outline",ITEM:"mdl-menu__item",ITEM_RIPPLE_CONTAINER:"mdl-menu__item-ripple-container",RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE:"mdl-ripple",IS_UPGRADED:"is-upgraded",IS_VISIBLE:"is-visible",IS_ANIMATING:"is-animating",BOTTOM_LEFT:"mdl-menu--bottom-left",BOTTOM_RIGHT:"mdl-menu--bottom-right",TOP_LEFT:"mdl-menu--top-left",TOP_RIGHT:"mdl-menu--top-right",UNALIGNED:"mdl-menu--unaligned"},c.prototype.init=function(){if(this.element_){var t=document.createElement("div");t.classList.add(this.CssClasses_.CONTAINER),this.element_.parentElement.insertBefore(t,this.element_),this.element_.parentElement.removeChild(this.element_),t.appendChild(this.element_),this.container_=t;var e=document.createElement("div");e.classList.add(this.CssClasses_.OUTLINE),this.outline_=e,t.insertBefore(e,this.element_);var i=this.element_.getAttribute("for")||this.element_.getAttribute("data-mdl-for"),n=null;i&&((n=document.getElementById(i))&&(this.forElement_=n,n.addEventListener("click",this.handleForClick_.bind(this)),n.addEventListener("keydown",this.handleForKeyboardEvent_.bind(this))));var r=this.element_.querySelectorAll("."+this.CssClasses_.ITEM);this.boundItemKeydown_=this.handleItemKeyboardEvent_.bind(this),this.boundItemClick_=this.handleItemClick_.bind(this);for(var s=0;s<r.length;s++)r[s].addEventListener("click",this.boundItemClick_),r[s].tabIndex="-1",r[s].addEventListener("keydown",this.boundItemKeydown_);if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT))for(this.element_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS),s=0;s<r.length;s++){var o=r[s],a=document.createElement("span");a.classList.add(this.CssClasses_.ITEM_RIPPLE_CONTAINER);var l=document.createElement("span");l.classList.add(this.CssClasses_.RIPPLE),a.appendChild(l),o.appendChild(a),o.classList.add(this.CssClasses_.RIPPLE_EFFECT)}this.element_.classList.contains(this.CssClasses_.BOTTOM_LEFT)&&this.outline_.classList.add(this.CssClasses_.BOTTOM_LEFT),this.element_.classList.contains(this.CssClasses_.BOTTOM_RIGHT)&&this.outline_.classList.add(this.CssClasses_.BOTTOM_RIGHT),this.element_.classList.contains(this.CssClasses_.TOP_LEFT)&&this.outline_.classList.add(this.CssClasses_.TOP_LEFT),this.element_.classList.contains(this.CssClasses_.TOP_RIGHT)&&this.outline_.classList.add(this.CssClasses_.TOP_RIGHT),this.element_.classList.contains(this.CssClasses_.UNALIGNED)&&this.outline_.classList.add(this.CssClasses_.UNALIGNED),t.classList.add(this.CssClasses_.IS_UPGRADED)}},c.prototype.handleForClick_=function(t){if(this.element_&&this.forElement_){var e=this.forElement_.getBoundingClientRect(),i=this.forElement_.parentElement.getBoundingClientRect();this.element_.classList.contains(this.CssClasses_.UNALIGNED)||(this.element_.classList.contains(this.CssClasses_.BOTTOM_RIGHT)?(this.container_.style.right=i.right-e.right+"px",this.container_.style.top=this.forElement_.offsetTop+this.forElement_.offsetHeight+"px"):this.element_.classList.contains(this.CssClasses_.TOP_LEFT)?(this.container_.style.left=this.forElement_.offsetLeft+"px",this.container_.style.bottom=i.bottom-e.top+"px"):this.element_.classList.contains(this.CssClasses_.TOP_RIGHT)?(this.container_.style.right=i.right-e.right+"px",this.container_.style.bottom=i.bottom-e.top+"px"):(this.container_.style.left=this.forElement_.offsetLeft+"px",this.container_.style.top=this.forElement_.offsetTop+this.forElement_.offsetHeight+"px"))}this.toggle(t)},c.prototype.handleForKeyboardEvent_=function(t){if(this.element_&&this.container_&&this.forElement_){var e=this.element_.querySelectorAll("."+this.CssClasses_.ITEM+":not([disabled])");e&&e.length>0&&this.container_.classList.contains(this.CssClasses_.IS_VISIBLE)&&(t.keyCode===this.Keycodes_.UP_ARROW?(t.preventDefault(),e[e.length-1].focus()):t.keyCode===this.Keycodes_.DOWN_ARROW&&(t.preventDefault(),e[0].focus()))}},c.prototype.handleItemKeyboardEvent_=function(t){if(this.element_&&this.container_){var e=this.element_.querySelectorAll("."+this.CssClasses_.ITEM+":not([disabled])");if(e&&e.length>0&&this.container_.classList.contains(this.CssClasses_.IS_VISIBLE)){var i=Array.prototype.slice.call(e).indexOf(t.target);if(t.keyCode===this.Keycodes_.UP_ARROW)t.preventDefault(),i>0?e[i-1].focus():e[e.length-1].focus();else if(t.keyCode===this.Keycodes_.DOWN_ARROW)t.preventDefault(),e.length>i+1?e[i+1].focus():e[0].focus();else if(t.keyCode===this.Keycodes_.SPACE||t.keyCode===this.Keycodes_.ENTER){t.preventDefault();var n=new MouseEvent("mousedown");t.target.dispatchEvent(n),n=new MouseEvent("mouseup"),t.target.dispatchEvent(n),t.target.click()}else t.keyCode===this.Keycodes_.ESCAPE&&(t.preventDefault(),this.hide())}}},c.prototype.handleItemClick_=function(t){t.target.hasAttribute("disabled")?t.stopPropagation():(this.closing_=!0,window.setTimeout(function(t){this.hide(),this.closing_=!1}.bind(this),this.Constant_.CLOSE_TIMEOUT))},c.prototype.applyClip_=function(t,e){this.element_.classList.contains(this.CssClasses_.UNALIGNED)?this.element_.style.clip="":this.element_.classList.contains(this.CssClasses_.BOTTOM_RIGHT)?this.element_.style.clip="rect(0 "+e+"px 0 "+e+"px)":this.element_.classList.contains(this.CssClasses_.TOP_LEFT)?this.element_.style.clip="rect("+t+"px 0 "+t+"px 0)":this.element_.classList.contains(this.CssClasses_.TOP_RIGHT)?this.element_.style.clip="rect("+t+"px "+e+"px "+t+"px "+e+"px)":this.element_.style.clip=""},c.prototype.removeAnimationEndListener_=function(t){t.target.classList.remove(c.prototype.CssClasses_.IS_ANIMATING)},c.prototype.addAnimationEndListener_=function(){this.element_.addEventListener("transitionend",this.removeAnimationEndListener_),this.element_.addEventListener("webkitTransitionEnd",this.removeAnimationEndListener_)},c.prototype.show=function(t){if(this.element_&&this.container_&&this.outline_){var e=this.element_.getBoundingClientRect().height,i=this.element_.getBoundingClientRect().width;this.container_.style.width=i+"px",this.container_.style.height=e+"px",this.outline_.style.width=i+"px",this.outline_.style.height=e+"px";for(var n=this.Constant_.TRANSITION_DURATION_SECONDS*this.Constant_.TRANSITION_DURATION_FRACTION,r=this.element_.querySelectorAll("."+this.CssClasses_.ITEM),s=0;s<r.length;s++){var o;o=this.element_.classList.contains(this.CssClasses_.TOP_LEFT)||this.element_.classList.contains(this.CssClasses_.TOP_RIGHT)?(e-r[s].offsetTop-r[s].offsetHeight)/e*n+"s":r[s].offsetTop/e*n+"s",r[s].style.transitionDelay=o}this.applyClip_(e,i),window.requestAnimationFrame(function(){this.element_.classList.add(this.CssClasse
vendor: 9,174 bytes, line 1
1s_.IS_ANIMATING),this.element_.style.clip="rect(0 "+i+"px "+e+"px 0)",this.container_.classList.add(this.CssClasses_.IS_VISIBLE)}.bind(this)),this.addAnimationEndListener_();var a=function(e){e===t||this.closing_||e.target.parentNode===this.element_||(document.removeEventListener("click",a),this.hide())}.bind(this);document.addEventListener("click",a)}},c.prototype.show=c.prototype.show,c.prototype.hide=function(){if(this.element_&&this.container_&&this.outline_){for(var t=this.element_.querySelectorAll("."+this.CssClasses_.ITEM),e=0;e<t.length;e++)t[e].style.removeProperty("transition-delay");var i=this.element_.getBoundingClientRect(),n=i.height,r=i.width;this.element_.classList.add(this.CssClasses_.IS_ANIMATING),this.applyClip_(n,r),this.container_.classList.remove(this.CssClasses_.IS_VISIBLE),this.addAnimationEndListener_()}},c.prototype.hide=c.prototype.hide,c.prototype.toggle=function(t){this.container_.classList.contains(this.CssClasses_.IS_VISIBLE)?this.hide():this.show(t)},c.prototype.toggle=c.prototype.toggle,i.register({constructor:c,classAsString:"MaterialMenu",cssClass:"mdl-js-menu",widget:!0});var h=function(t){this.element_=t,this.init()};window.MaterialProgress=h,h.prototype.Constant_={},h.prototype.CssClasses_={INDETERMINATE_CLASS:"mdl-progress__indeterminate"},h.prototype.setProgress=function(t){this.element_.classList.contains(this.CssClasses_.INDETERMINATE_CLASS)||(this.progressbar_.style.width=t+"%")},h.prototype.setProgress=h.prototype.setProgress,h.prototype.setBuffer=function(t){this.bufferbar_.style.width=t+"%",this.auxbar_.style.width=100-t+"%"},h.prototype.setBuffer=h.prototype.setBuffer,h.prototype.init=function(){if(this.element_){var t=document.createElement("div");t.className="progressbar bar bar1",this.element_.appendChild(t),this.progressbar_=t,(t=document.createElement("div")).className="bufferbar bar bar2",this.element_.appendChild(t),this.bufferbar_=t,(t=document.createElement("div")).className="auxbar bar bar3",this.element_.appendChild(t),this.auxbar_=t,this.progressbar_.style.width="0%",this.bufferbar_.style.width="100%",this.auxbar_.style.width="0%",this.element_.classList.add("is-upgraded")}},i.register({constructor:h,classAsString:"MaterialProgress",cssClass:"mdl-js-progress",widget:!0});var d=function(t){this.element_=t,this.init()};window.MaterialRadio=d,d.prototype.Constant_={TINY_TIMEOUT:.001},d.prototype.CssClasses_={IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_CHECKED:"is-checked",IS_UPGRADED:"is-upgraded",JS_RADIO:"mdl-js-radio",RADIO_BTN:"mdl-radio__button",RADIO_OUTER_CIRCLE:"mdl-radio__outer-circle",RADIO_INNER_CIRCLE:"mdl-radio__inner-circle",RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE_CONTAINER:"mdl-radio__ripple-container",RIPPLE_CENTER:"mdl-ripple--center",RIPPLE:"mdl-ripple"},d.prototype.onChange_=function(t){for(var e=document.getElementsByClassName(this.CssClasses_.JS_RADIO),i=0;i<e.length;i++){e[i].querySelector("."+this.CssClasses_.RADIO_BTN).getAttribute("name")===this.btnElement_.getAttribute("name")&&void 0!==e[i].MaterialRadio&&e[i].MaterialRadio.updateClasses_()}},d.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},d.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},d.prototype.onMouseup_=function(t){this.blur_()},d.prototype.updateClasses_=function(){this.checkDisabled(),this.checkToggleState()},d.prototype.blur_=function(){window.setTimeout(function(){this.btnElement_.blur()}.bind(this),this.Constant_.TINY_TIMEOUT)},d.prototype.checkDisabled=function(){this.btnElement_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},d.prototype.checkDisabled=d.prototype.checkDisabled,d.prototype.checkToggleState=function(){this.btnElement_.checked?this.element_.classList.add(this.CssClasses_.IS_CHECKED):this.element_.classList.remove(this.CssClasses_.IS_CHECKED)},d.prototype.checkToggleState=d.prototype.checkToggleState,d.prototype.disable=function(){this.btnElement_.disabled=!0,this.updateClasses_()},d.prototype.disable=d.prototype.disable,d.prototype.enable=function(){this.btnElement_.disabled=!1,this.updateClasses_()},d.prototype.enable=d.prototype.enable,d.prototype.check=function(){this.btnElement_.checked=!0,this.onChange_(null)},d.prototype.check=d.prototype.check,d.prototype.uncheck=function(){this.btnElement_.checked=!1,this.onChange_(null)},d.prototype.uncheck=d.prototype.uncheck,d.prototype.init=function(){if(this.element_){this.btnElement_=this.element_.querySelector("."+this.CssClasses_.RADIO_BTN),this.boundChangeHandler_=this.onChange_.bind(this),this.boundFocusHandler_=this.onChange_.bind(this),this.boundBlurHandler_=this.onBlur_.bind(this),this.boundMouseUpHandler_=this.onMouseup_.bind(this);var t=document.createElement("span");t.classList.add(this.CssClasses_.RADIO_OUTER_CIRCLE);var e,i=document.createElement("span");if(i.classList.add(this.CssClasses_.RADIO_INNER_CIRCLE),this.element_.appendChild(t),this.element_.appendChild(i),this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){this.element_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS),(e=document.createElement("span")).classList.add(this.CssClasses_.RIPPLE_CONTAINER),e.classList.add(this.CssClasses_.RIPPLE_EFFECT),e.classList.add(this.CssClasses_.RIPPLE_CENTER),e.addEventListener("mouseup",this.boundMouseUpHandler_);var n=document.createElement("span");n.classList.add(this.CssClasses_.RIPPLE),e.appendChild(n),this.element_.appendChild(e)}this.btnElement_.addEventListener("change",this.boundChangeHandler_),this.btnElement_.addEventListener("focus",this.boundFocusHandler_),this.btnElement_.addEventListener("blur",this.boundBlurHandler_),this.element_.addEventListener("mouseup",this.boundMouseUpHandler_),this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED)}},i.register({constructor:d,classAsString:"MaterialRadio",cssClass:"mdl-js-radio",widget:!0});var f=function(t){this.element_=t,this.isIE_=window.navigator.msPointerEnabled,this.init()};window.MaterialSlider=f,f.prototype.Constant_={},f.prototype.CssClasses_={IE_CONTAINER:"mdl-slider__ie-container",SLIDER_CONTAINER:"mdl-slider__container",BACKGROUND_FLEX:"mdl-slider__background-flex",BACKGROUND_LOWER:"mdl-slider__background-lower",BACKGROUND_UPPER:"mdl-slider__background-upper",IS_LOWEST_VALUE:"is-lowest-value",IS_UPGRADED:"is-upgraded"},f.prototype.onInput_=function(t){this.updateValueStyles_()},f.prototype.onChange_=function(t){this.updateValueStyles_()},f.prototype.onMouseUp_=function(t){t.target.blur()},f.prototype.onContainerMouseDown_=function(t){if(t.target===this.element_.parentElement){t.preventDefault();var e=new MouseEvent("mousedown",{target:t.target,buttons:t.buttons,clientX:t.clientX,clientY:this.element_.getBoundingClientRect().y});this.element_.dispatchEvent(e)}},f.prototype.updateValueStyles_=function(){var t=(this.element_.value-this.element_.min)/(this.element_.max-this.element_.min);0===t?this.element_.classList.add(this.CssClasses_.IS_LOWEST_VALUE):this.element_.classList.remove(this.CssClasses_.IS_LOWEST_VALUE),this.isIE_||(this.backgroundLower_.style.flex=t,this.backgroundLower_.style.webkitFlex=t,this.backgroundUpper_.style.flex=1-t,this.backgroundUpper_.style.webkitFlex=1-t)},f.prototype.disable=function(){this.element_.disabled=!0},f.prototype.disable=f.prototype.disable,f.prototype.enable=function(){this.element_.disabled=!1},f.prototype.enable=f.prototype.enable,f.prototype.change=function(t){void 0!==t&&(this.element_.value=t),this.updateValueStyles_()},f.prototype.change=f.prototype.change,f.prototype.init=function(){if(this.element_){if(this.isIE_){var t=document.createElement("div");t.classList.add(this.CssClasses_.IE_CONTAINER),this.element_.parentElement.insertBefore(t,this.element_),this.element_.parentElement.removeChild(this.element_),t.appendChild(this.element_)}else{var e=document.createElement("div");e.classList.add(this.CssClasses_.SLIDER_CONTAINER),this.element_.parentElement.insertBefore(e,this.element_),this.element_.parentElement.removeChild(this.element_),e.appendChild(this.element_);var i=document.createElement("div");i.classList.add(this.CssClasses_.BACKGROUND_FLEX),e.appendChild(i),this.backgroundLower_=document.createElement("div"),this.backgroundLower_.classList.add(this.CssClasses_.BACKGROUND_LOWER),i.appendChild(this.backgroundLower_),this.backgroundUpper_=document.createElement("div"),this.backgroundUpper_.classList.add(this.CssClasses_.BACKGROUND_UPPER),i.appendChild(this.backgroundUpper_)}this.boundInputHandler=this.onInput_.bind(this),this.boundChangeHandler=this.onChange_.bind(this),this.boundMouseUpHandler=this.onMouseUp_.bind(this),this.boundContainerMouseDownHandler=this.onContainerMouseDown_.bind(this),this.element_.addEventListener("input",this.boundInputHandler),this.element_.addEventListener("change",this.boundChangeHandler),this.element_.addEventListener("mouseup",this.boundMouseUpHandler),this.element_.parentElement.addEventListener("mousedown",this.boundContainerMouseDownHandler),this.updateV
vendor: 12,995 bytes, line 1
1alueStyles_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED)}},i.register({constructor:f,classAsString:"MaterialSlider",cssClass:"mdl-js-slider",widget:!0});var p=function(t){if(this.element_=t,this.textElement_=this.element_.querySelector("."+this.cssClasses_.MESSAGE),this.actionElement_=this.element_.querySelector("."+this.cssClasses_.ACTION),!this.textElement_)throw new Error("There must be a message element for a snackbar.");if(!this.actionElement_)throw new Error("There must be an action element for a snackbar.");this.active=!1,this.actionHandler_=void 0,this.message_=void 0,this.actionText_=void 0,this.queuedNotifications_=[],this.setActionHidden_(!0)};window.MaterialSnackbar=p,p.prototype.Constant_={ANIMATION_LENGTH:250},p.prototype.cssClasses_={SNACKBAR:"mdl-snackbar",MESSAGE:"mdl-snackbar__text",ACTION:"mdl-snackbar__action",ACTIVE:"mdl-snackbar--active"},p.prototype.displaySnackbar_=function(){this.element_.setAttribute("aria-hidden","true"),this.actionHandler_&&(this.actionElement_.textContent=this.actionText_,this.actionElement_.addEventListener("click",this.actionHandler_),this.setActionHidden_(!1)),this.textElement_.textContent=this.message_,this.element_.classList.add(this.cssClasses_.ACTIVE),this.element_.setAttribute("aria-hidden","false"),setTimeout(this.cleanup_.bind(this),this.timeout_)},p.prototype.showSnackbar=function(t){if(void 0===t)throw new Error("Please provide a data object with at least a message to display.");if(void 0===t.message)throw new Error("Please provide a message to be displayed.");if(t.actionHandler&&!t.actionText)throw new Error("Please provide action text with the handler.");this.active?this.queuedNotifications_.push(t):(this.active=!0,this.message_=t.message,t.timeout?this.timeout_=t.timeout:this.timeout_=2750,t.actionHandler&&(this.actionHandler_=t.actionHandler),t.actionText&&(this.actionText_=t.actionText),this.displaySnackbar_())},p.prototype.showSnackbar=p.prototype.showSnackbar,p.prototype.checkQueue_=function(){this.queuedNotifications_.length>0&&this.showSnackbar(this.queuedNotifications_.shift())},p.prototype.cleanup_=function(){this.element_.classList.remove(this.cssClasses_.ACTIVE),setTimeout(function(){this.element_.setAttribute("aria-hidden","true"),this.textElement_.textContent="",Boolean(this.actionElement_.getAttribute("aria-hidden"))||(this.setActionHidden_(!0),this.actionElement_.textContent="",this.actionElement_.removeEventListener("click",this.actionHandler_)),this.actionHandler_=void 0,this.message_=void 0,this.actionText_=void 0,this.active=!1,this.checkQueue_()}.bind(this),this.Constant_.ANIMATION_LENGTH)},p.prototype.setActionHidden_=function(t){t?this.actionElement_.setAttribute("aria-hidden","true"):this.actionElement_.removeAttribute("aria-hidden")},i.register({constructor:p,classAsString:"MaterialSnackbar",cssClass:"mdl-js-snackbar",widget:!0});var m=function(t){this.element_=t,this.init()};window.MaterialSpinner=m,m.prototype.Constant_={MDL_SPINNER_LAYER_COUNT:4},m.prototype.CssClasses_={MDL_SPINNER_LAYER:"mdl-spinner__layer",MDL_SPINNER_CIRCLE_CLIPPER:"mdl-spinner__circle-clipper",MDL_SPINNER_CIRCLE:"mdl-spinner__circle",MDL_SPINNER_GAP_PATCH:"mdl-spinner__gap-patch",MDL_SPINNER_LEFT:"mdl-spinner__left",MDL_SPINNER_RIGHT:"mdl-spinner__right"},m.prototype.createLayer=function(t){var e=document.createElement("div");e.classList.add(this.CssClasses_.MDL_SPINNER_LAYER),e.classList.add(this.CssClasses_.MDL_SPINNER_LAYER+"-"+t);var i=document.createElement("div");i.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),i.classList.add(this.CssClasses_.MDL_SPINNER_LEFT);var n=document.createElement("div");n.classList.add(this.CssClasses_.MDL_SPINNER_GAP_PATCH);var r=document.createElement("div");r.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),r.classList.add(this.CssClasses_.MDL_SPINNER_RIGHT);for(var s=[i,n,r],o=0;o<s.length;o++){var a=document.createElement("div");a.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE),s[o].appendChild(a)}e.appendChild(i),e.appendChild(n),e.appendChild(r),this.element_.appendChild(e)},m.prototype.createLayer=m.prototype.createLayer,m.prototype.stop=function(){this.element_.classList.remove("is-active")},m.prototype.stop=m.prototype.stop,m.prototype.start=function(){this.element_.classList.add("is-active")},m.prototype.start=m.prototype.start,m.prototype.init=function(){if(this.element_){for(var t=1;t<=this.Constant_.MDL_SPINNER_LAYER_COUNT;t++)this.createLayer(t);this.element_.classList.add("is-upgraded")}},i.register({constructor:m,classAsString:"MaterialSpinner",cssClass:"mdl-js-spinner",widget:!0});var g=function(t){this.element_=t,this.init()};window.MaterialSwitch=g,g.prototype.Constant_={TINY_TIMEOUT:.001},g.prototype.CssClasses_={INPUT:"mdl-switch__input",TRACK:"mdl-switch__track",THUMB:"mdl-switch__thumb",FOCUS_HELPER:"mdl-switch__focus-helper",RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE_CONTAINER:"mdl-switch__ripple-container",RIPPLE_CENTER:"mdl-ripple--center",RIPPLE:"mdl-ripple",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_CHECKED:"is-checked"},g.prototype.onChange_=function(t){this.updateClasses_()},g.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},g.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},g.prototype.onMouseUp_=function(t){this.blur_()},g.prototype.updateClasses_=function(){this.checkDisabled(),this.checkToggleState()},g.prototype.blur_=function(){window.setTimeout(function(){this.inputElement_.blur()}.bind(this),this.Constant_.TINY_TIMEOUT)},g.prototype.checkDisabled=function(){this.inputElement_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},g.prototype.checkDisabled=g.prototype.checkDisabled,g.prototype.checkToggleState=function(){this.inputElement_.checked?this.element_.classList.add(this.CssClasses_.IS_CHECKED):this.element_.classList.remove(this.CssClasses_.IS_CHECKED)},g.prototype.checkToggleState=g.prototype.checkToggleState,g.prototype.disable=function(){this.inputElement_.disabled=!0,this.updateClasses_()},g.prototype.disable=g.prototype.disable,g.prototype.enable=function(){this.inputElement_.disabled=!1,this.updateClasses_()},g.prototype.enable=g.prototype.enable,g.prototype.on=function(){this.inputElement_.checked=!0,this.updateClasses_()},g.prototype.on=g.prototype.on,g.prototype.off=function(){this.inputElement_.checked=!1,this.updateClasses_()},g.prototype.off=g.prototype.off,g.prototype.init=function(){if(this.element_){this.inputElement_=this.element_.querySelector("."+this.CssClasses_.INPUT);var t=document.createElement("div");t.classList.add(this.CssClasses_.TRACK);var e=document.createElement("div");e.classList.add(this.CssClasses_.THUMB);var i=document.createElement("span");if(i.classList.add(this.CssClasses_.FOCUS_HELPER),e.appendChild(i),this.element_.appendChild(t),this.element_.appendChild(e),this.boundMouseUpHandler=this.onMouseUp_.bind(this),this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){this.element_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS),this.rippleContainerElement_=document.createElement("span"),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_EFFECT),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CENTER),this.rippleContainerElement_.addEventListener("mouseup",this.boundMouseUpHandler);var n=document.createElement("span");n.classList.add(this.CssClasses_.RIPPLE),this.rippleContainerElement_.appendChild(n),this.element_.appendChild(this.rippleContainerElement_)}this.boundChangeHandler=this.onChange_.bind(this),this.boundFocusHandler=this.onFocus_.bind(this),this.boundBlurHandler=this.onBlur_.bind(this),this.inputElement_.addEventListener("change",this.boundChangeHandler),this.inputElement_.addEventListener("focus",this.boundFocusHandler),this.inputElement_.addEventListener("blur",this.boundBlurHandler),this.element_.addEventListener("mouseup",this.boundMouseUpHandler),this.updateClasses_(),this.element_.classList.add("is-upgraded")}},i.register({constructor:g,classAsString:"MaterialSwitch",cssClass:"mdl-js-switch",widget:!0});var v=function(t){this.element_=t,this.init()};window.MaterialTabs=v,v.prototype.Constant_={},v.prototype.CssClasses_={TAB_CLASS:"mdl-tabs__tab",PANEL_CLASS:"mdl-tabs__panel",ACTIVE_CLASS:"is-active",UPGRADED_CLASS:"is-upgraded",MDL_JS_RIPPLE_EFFECT:"mdl-js-ripple-effect",MDL_RIPPLE_CONTAINER:"mdl-tabs__ripple-container",MDL_RIPPLE:"mdl-ripple",MDL_JS_RIPPLE_EFFECT_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events"},v.prototype.initTabs_=function(){this.element_.classList.contains(this.CssClasses_.MDL_JS_RIPPLE_EFFECT)&&this.element_.classList.add(this.CssClasses_.MDL_JS_RIPPLE_EFFECT_IGNORE_EVENTS),this.tabs_=this.element_.querySelectorAll("."+this.CssClasses_.TAB_CLASS),this.panels_=this.element_.querySelectorAll("."+this.CssClasses_.PANEL_CLASS);for(var e=0;e<this.tabs_.length;e++)new t(this.tabs_[e],this);this.element_.classList.add(this.CssClasses_.UPGRADED_CLASS)},v.prototype.resetTabState_=function(){for(var t=0;t<this.tabs_.length;t++)this.tabs_[t].classList.remove(this.CssClasses_.ACTIVE_CLASS)},v.prototype.resetPanelState_=function(){for(var t=0;t<this.panels_.length;t++)this.panels_[t].classList.remove(this.CssClasses_.ACTIVE_CLASS)},v.prototype.init=function(){this.element_&&this.initTabs_()},i.register({constructor:v,classAsString:"MaterialTabs",cssClass:"mdl-js-tabs"});var _=function(t){this.element_=t,this.maxRows=this.Constant_.NO_MAX_ROWS,this.init()};window.MaterialTextfield=_,_.prototype.Constant_={NO_MAX_ROWS:-1,MAX_ROWS_ATTRIBUTE:"maxrows"},_.prototype.CssClasses_={LABEL:"mdl-textfield__label",INPUT:"mdl-textfield__input",IS_DIRTY:"is-dirty",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_INVALID:"is-invalid",IS_UPGRADED:"is-upgraded",HAS_PLACEHOLDER:"has-placeholder"},_.prototype.onKeyDown_=function(t){var e=t.target.value.split("\n").length;13===t.keyCode&&e>=this.maxRows&&t.preventDefault()},_.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},_.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},_.prototype.onReset_=function(t){this.updateClasses_()},_.prototype.updateClasses_=function(){this.checkDisabled(),this.checkValidity(),this.checkDirty(),this.checkFocus()},_.prototype.checkDisabled=function(){this.input_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},_.prototype.checkDisabled=_.prototype.checkDisabled,_.prototype.checkFocus=function(){Boolean(this.element_.querySelector(":focus"))?this.element_.classList.add(this.CssClasses_.IS_FOCUSED):this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},_.prototype.checkFocus=_.prototype.checkFocus,_.prototype.checkValidity=function(){this.input_.validity&&(this.input_.validity.valid?this.element_.classList.remove(this.CssClasses_.IS_INVALID):this.element_.classList.add(this.CssClasses_.IS_INVALID))},_.prototype.checkValidity=_.prototype.checkValidity,_.prototype.checkDirty=function(){this.input_.value&&this.input_.value.length>0?this.element_.classList.add(this.CssClasses_.IS_DIRTY):this.element_.classList.remove(this.CssClasses_.IS_DIRTY)},_.prototype.checkDirty=_.prototype.checkDirty,_.prototype.disable=function(){this.input_.disabled=!0,this.updateClasses_()},_.prototype.disable=_.prototype.disable,_.prototype.enable=function(){this.input_.disabled=!1,this.updateClasses_()},_.prototype.enable=_.prototype.enable,_.prototype.change=function(t){this.input_.value=t||"",this.updateClasses_()},_.prototype.change=_.prototype.change,_.prototype.init=function(){if(this.element_&&(this.label_=this.element_.querySelector("."+this.CssClasses_.LABEL),this.input_=this.element_.querySelector("."+this.CssClasses_.INPUT),this.input_)){this.input_.hasAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE)&&(this.maxRows=parseInt(this.input_.getAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE),10),isNaN(this.maxRows)&&(this.maxRows=this.Constant_.NO_MAX_ROWS)),this.input_.hasAttribute("placeholder")&&this.element_.classList.add(this.CssClasses_.HAS_PLACEHOLDER),this.boundUpdateClassesHandler=this.updateClasses_.bind(this),this.boundFocusHandler=this.onFocus_.bind(this),this.boundBlurHandler=this.onBlur_.bind(this),this.boundResetHandler=this.onReset_.bind(this),this.input_.addEventListener("input",this.boundUpdateClassesHandler),this.input_.addEventListener("focus",this.boundFocusHandler),this.input_.addEventListener("blur",this.boundBlurHandler),this.input_.addEventListener("reset",this.boundResetHandler),this.maxRows!==this.Constant_.NO_MAX_ROWS&&(this.boundKeyDownHandler=this.onKeyDown_.bind(this),this.input_.addEventListener("keydown",this.boundKeyDownHandler));
vendor: 4,221 bytes, line 1
1var t=this.element_.classList.contains(this.CssClasses_.IS_INVALID);this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED),t&&this.element_.classList.add(this.CssClasses_.IS_INVALID),this.input_.hasAttribute("autofocus")&&(this.element_.focus(),this.checkFocus())}},i.register({constructor:_,classAsString:"MaterialTextfield",cssClass:"mdl-js-textfield",widget:!0});var y=function(t){this.element_=t,this.init()};window.MaterialTooltip=y,y.prototype.Constant_={},y.prototype.CssClasses_={IS_ACTIVE:"is-active",BOTTOM:"mdl-tooltip--bottom",LEFT:"mdl-tooltip--left",RIGHT:"mdl-tooltip--right",TOP:"mdl-tooltip--top"},y.prototype.handleMouseEnter_=function(t){var e=t.target.getBoundingClientRect(),i=e.left+e.width/2,n=e.top+e.height/2,r=this.element_.offsetWidth/2*-1,s=this.element_.offsetHeight/2*-1;this.element_.classList.contains(this.CssClasses_.LEFT)||this.element_.classList.contains(this.CssClasses_.RIGHT)?(i=e.width/2,n+s<0?(this.element_.style.top="0",this.element_.style.marginTop="0"):(this.element_.style.top=n+"px",this.element_.style.marginTop=s+"px")):i+r<0?(this.element_.style.left="0",this.element_.style.marginLeft="0"):(this.element_.style.left=i+"px",this.element_.style.marginLeft=r+"px"),this.element_.classList.contains(this.CssClasses_.TOP)?this.element_.style.top=e.top-this.element_.offsetHeight-10+"px":this.element_.classList.contains(this.CssClasses_.RIGHT)?this.element_.style.left=e.left+e.width+10+"px":this.element_.classList.contains(this.CssClasses_.LEFT)?this.element_.style.left=e.left-this.element_.offsetWidth-10+"px":this.element_.style.top=e.top+e.height+10+"px",this.element_.classList.add(this.CssClasses_.IS_ACTIVE)},y.prototype.hideTooltip_=function(){this.element_.classList.remove(this.CssClasses_.IS_ACTIVE)},y.prototype.init=function(){if(this.element_){var t=this.element_.getAttribute("for")||this.element_.getAttribute("data-mdl-for");t&&(this.forElement_=document.getElementById(t)),this.forElement_&&(this.forElement_.hasAttribute("tabindex")||this.forElement_.setAttribute("tabindex","0"),this.boundMouseEnterHandler=this.handleMouseEnter_.bind(this),this.boundMouseLeaveAndScrollHandler=this.hideTooltip_.bind(this),this.forElement_.addEventListener("mouseenter",this.boundMouseEnterHandler,!1),this.forElement_.addEventListener("touchend",this.boundMouseEnterHandler,!1),this.forElement_.addEventListener("mouseleave",this.boundMouseLeaveAndScrollHandler,!1),window.addEventListener("scroll",this.boundMouseLeaveAndScrollHandler,!0),window.addEventListener("touchstart",this.boundMouseLeaveAndScrollHandler))}},i.register({constructor:y,classAsString:"MaterialTooltip",cssClass:"mdl-tooltip"});var b=function(t){this.element_=t,this.init()};window.MaterialLayout=b,b.prototype.Constant_={MAX_WIDTH:"(max-width: 1024px)",TAB_SCROLL_PIXELS:100,RESIZE_TIMEOUT:100,MENU_ICON:"",CHEVRON_LEFT:"chevron_left",CHEVRON_RIGHT:"chevron_right"},b.prototype.Keycodes_={ENTER:13,ESCAPE:27,SPACE:32},b.prototype.Mode_={STANDARD:0,SEAMED:1,WATERFALL:2,SCROLL:3},b.prototype.CssClasses_={CONTAINER:"mdl-layout__container",HEADER:"mdl-layout__header",DRAWER:"mdl-layout__drawer",CONTENT:"mdl-layout__content",DRAWER_BTN:"mdl-layout__drawer-button",ICON:"material-icons",JS_RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-layout__tab-ripple-container",RIPPLE:"mdl-ripple",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",HEADER_SEAMED:"mdl-layout__header--seamed",HEADER_WATERFALL:"mdl-layout__header--waterfall",HEADER_SCROLL:"mdl-layout__header--scroll",FIXED_HEADER:"mdl-layout--fixed-header",OBFUSCATOR:"mdl-layout__obfuscator",TAB_BAR:"mdl-layout__tab-bar",TAB_CONTAINER:"mdl-layout__tab-bar-container",TAB:"mdl-layout__tab",TAB_BAR_BUTTON:"mdl-layout__tab-bar-button",TAB_BAR_LEFT_BUTTON:"mdl-layout__tab-bar-left-button",TAB_BAR_RIGHT_BUTTON:"mdl-layout__tab-bar-right-button",TAB_MANUAL_SWITCH:"mdl-layout__tab-manual-switch",PANEL:"mdl-layout__tab-panel",HAS_DRAWER:"has-drawer",HAS_TABS:"has-tabs",HAS_SCROLLING_HEADER:"has-scrolling-header",CASTING_SHADOW:"is-casting-shadow",IS_COMPACT:"is-compact",IS_SMALL_SCREEN:"is-small-screen",IS_DRAWER_OPEN:"is-visible",IS_ACTIVE:"is-active",IS_UPGRADED:"is-upgraded",IS_AN
vendor: 8,366 bytes, line 1
1IMATING:"is-animating",ON_LARGE_SCREEN:"mdl-layout--large-screen-only",ON_SMALL_SCREEN:"mdl-layout--small-screen-only"},b.prototype.contentScrollHandler_=function(){if(!this.header_.classList.contains(this.CssClasses_.IS_ANIMATING)){var t=!this.element_.classList.contains(this.CssClasses_.IS_SMALL_SCREEN)||this.element_.classList.contains(this.CssClasses_.FIXED_HEADER);this.content_.scrollTop>0&&!this.header_.classList.contains(this.CssClasses_.IS_COMPACT)?(this.header_.classList.add(this.CssClasses_.CASTING_SHADOW),this.header_.classList.add(this.CssClasses_.IS_COMPACT),t&&this.header_.classList.add(this.CssClasses_.IS_ANIMATING)):this.content_.scrollTop<=0&&this.header_.classList.contains(this.CssClasses_.IS_COMPACT)&&(this.header_.classList.remove(this.CssClasses_.CASTING_SHADOW),this.header_.classList.remove(this.CssClasses_.IS_COMPACT),t&&this.header_.classList.add(this.CssClasses_.IS_ANIMATING))}},b.prototype.keyboardEventHandler_=function(t){t.keyCode===this.Keycodes_.ESCAPE&&this.drawer_.classList.contains(this.CssClasses_.IS_DRAWER_OPEN)&&this.toggleDrawer()},b.prototype.screenSizeHandler_=function(){this.screenSizeMediaQuery_.matches?this.element_.classList.add(this.CssClasses_.IS_SMALL_SCREEN):(this.element_.classList.remove(this.CssClasses_.IS_SMALL_SCREEN),this.drawer_&&(this.drawer_.classList.remove(this.CssClasses_.IS_DRAWER_OPEN),this.obfuscator_.classList.remove(this.CssClasses_.IS_DRAWER_OPEN)))},b.prototype.drawerToggleHandler_=function(t){if(t&&"keydown"===t.type){if(t.keyCode!==this.Keycodes_.SPACE&&t.keyCode!==this.Keycodes_.ENTER)return;t.preventDefault()}this.toggleDrawer()},b.prototype.headerTransitionEndHandler_=function(){this.header_.classList.remove(this.CssClasses_.IS_ANIMATING)},b.prototype.headerClickHandler_=function(){this.header_.classList.contains(this.CssClasses_.IS_COMPACT)&&(this.header_.classList.remove(this.CssClasses_.IS_COMPACT),this.header_.classList.add(this.CssClasses_.IS_ANIMATING))},b.prototype.resetTabState_=function(t){for(var e=0;e<t.length;e++)t[e].classList.remove(this.CssClasses_.IS_ACTIVE)},b.prototype.resetPanelState_=function(t){for(var e=0;e<t.length;e++)t[e].classList.remove(this.CssClasses_.IS_ACTIVE)},b.prototype.toggleDrawer=function(){var t=this.element_.querySelector("."+this.CssClasses_.DRAWER_BTN);this.drawer_.classList.toggle(this.CssClasses_.IS_DRAWER_OPEN),this.obfuscator_.classList.toggle(this.CssClasses_.IS_DRAWER_OPEN),this.drawer_.classList.contains(this.CssClasses_.IS_DRAWER_OPEN)?(this.drawer_.setAttribute("aria-hidden","false"),t.setAttribute("aria-expanded","true")):(this.drawer_.setAttribute("aria-hidden","true"),t.setAttribute("aria-expanded","false"))},b.prototype.toggleDrawer=b.prototype.toggleDrawer,b.prototype.init=function(){if(this.element_){var t=document.createElement("div");t.classList.add(this.CssClasses_.CONTAINER);var i=this.element_.querySelector(":focus");this.element_.parentElement.insertBefore(t,this.element_),this.element_.parentElement.removeChild(this.element_),t.appendChild(this.element_),i&&i.focus();for(var n=this.element_.childNodes,r=n.length,s=0;s<r;s++){var o=n[s];o.classList&&o.classList.contains(this.CssClasses_.HEADER)&&(this.header_=o),o.classList&&o.classList.contains(this.CssClasses_.DRAWER)&&(this.drawer_=o),o.classList&&o.classList.contains(this.CssClasses_.CONTENT)&&(this.content_=o)}window.addEventListener("pageshow",function(t){t.persisted&&(this.element_.style.overflowY="hidden",requestAnimationFrame(function(){this.element_.style.overflowY=""}.bind(this)))}.bind(this),!1),this.header_&&(this.tabBar_=this.header_.querySelector("."+this.CssClasses_.TAB_BAR));var a=this.Mode_.STANDARD;if(this.header_&&(this.header_.classList.contains(this.CssClasses_.HEADER_SEAMED)?a=this.Mode_.SEAMED:this.header_.classList.contains(this.CssClasses_.HEADER_WATERFALL)?(a=this.Mode_.WATERFALL,this.header_.addEventListener("transitionend",this.headerTransitionEndHandler_.bind(this)),this.header_.addEventListener("click",this.headerClickHandler_.bind(this))):this.header_.classList.contains(this.CssClasses_.HEADER_SCROLL)&&(a=this.Mode_.SCROLL,t.classList.add(this.CssClasses_.HAS_SCROLLING_HEADER)),a===this.Mode_.STANDARD?(this.header_.classList.add(this.CssClasses_.CASTING_SHADOW),this.tabBar_&&this.tabBar_.classList.add(this.CssClasses_.CASTING_SHADOW)):a===this.Mode_.SEAMED||a===this.Mode_.SCROLL?(this.header_.classList.remove(this.CssClasses_.CASTING_SHADOW),this.tabBar_&&this.tabBar_.classList.remove(this.CssClasses_.CASTING_SHADOW)):a===this.Mode_.WATERFALL&&(this.content_.addEventListener("scroll",this.contentScrollHandler_.bind(this)),this.contentScrollHandler_())),this.drawer_){var l=this.element_.querySelector("."+this.CssClasses_.DRAWER_BTN);if(!l){(l=document.createElement("div")).setAttribute("aria-expanded","false"),l.setAttribute("role","button"),l.setAttribute("tabindex","0"),l.classList.add(this.CssClasses_.DRAWER_BTN);var u=document.createElement("i");u.classList.add(this.CssClasses_.ICON),u.innerHTML=this.Constant_.MENU_ICON,l.appendChild(u)}this.drawer_.classList.contains(this.CssClasses_.ON_LARGE_SCREEN)?l.classList.add(this.CssClasses_.ON_LARGE_SCREEN):this.drawer_.classList.contains(this.CssClasses_.ON_SMALL_SCREEN)&&l.classList.add(this.CssClasses_.ON_SMALL_SCREEN),l.addEventListener("click",this.drawerToggleHandler_.bind(this)),l.addEventListener("keydown",this.drawerToggleHandler_.bind(this)),this.element_.classList.add(this.CssClasses_.HAS_DRAWER),this.element_.classList.contains(this.CssClasses_.FIXED_HEADER)?this.header_.insertBefore(l,this.header_.firstChild):this.element_.insertBefore(l,this.content_);var c=document.createElement("div");c.classList.add(this.CssClasses_.OBFUSCATOR),this.element_.appendChild(c),c.addEventListener("click",this.drawerToggleHandler_.bind(this)),this.obfuscator_=c,this.drawer_.addEventListener("keydown",this.keyboardEventHandler_.bind(this)),this.drawer_.setAttribute("aria-hidden","true")}if(this.screenSizeMediaQuery_=window.matchMedia(this.Constant_.MAX_WIDTH),this.screenSizeMediaQuery_.addListener(this.screenSizeHandler_.bind(this)),this.screenSizeHandler_(),this.header_&&this.tabBar_){this.element_.classList.add(this.CssClasses_.HAS_TABS);var h=document.createElement("div");h.classList.add(this.CssClasses_.TAB_CONTAINER),this.header_.insertBefore(h,this.tabBar_),this.header_.removeChild(this.tabBar_);var d=document.createElement("div");d.classList.add(this.CssClasses_.TAB_BAR_BUTTON),d.classList.add(this.CssClasses_.TAB_BAR_LEFT_BUTTON);var f=document.createElement("i");f.classList.add(this.CssClasses_.ICON),f.textContent=this.Constant_.CHEVRON_LEFT,d.appendChild(f),d.addEventListener("click",function(){this.tabBar_.scrollLeft-=this.Constant_.TAB_SCROLL_PIXELS}.bind(this));var p=document.createElement("div");p.classList.add(this.CssClasses_.TAB_BAR_BUTTON),p.classList.add(this.CssClasses_.TAB_BAR_RIGHT_BUTTON);var m=document.createElement("i");m.classList.add(this.CssClasses_.ICON),m.textContent=this.Constant_.CHEVRON_RIGHT,p.appendChild(m),p.addEventListener("click",function(){this.tabBar_.scrollLeft+=this.Constant_.TAB_SCROLL_PIXELS}.bind(this)),h.appendChild(d),h.appendChild(this.tabBar_),h.appendChild(p);var g=function(){this.tabBar_.scrollLeft>0?d.classList.add(this.CssClasses_.IS_ACTIVE):d.classList.remove(this.CssClasses_.IS_ACTIVE),this.tabBar_.scrollLeft<this.tabBar_.scrollWidth-this.tabBar_.offsetWidth?p.classList.add(this.CssClasses_.IS_ACTIVE):p.classList.remove(this.CssClasses_.IS_ACTIVE)}.bind(this);this.tabBar_.addEventListener("scroll",g),g();var v=function(){this.resizeTimeoutId_&&clearTimeout(this.resizeTimeoutId_),this.resizeTimeoutId_=setTimeout(function(){g(),this.resizeTimeoutId_=null}.bind(this),this.Constant_.RESIZE_TIMEOUT)}.bind(this);window.addEventListener("resize",v),this.tabBar_.classList.contains(this.CssClasses_.JS_RIPPLE_EFFECT)&&this.tabBar_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS);for(var _=this.tabBar_.querySelectorAll("."+this.CssClasses_.TAB),y=this.content_.querySelectorAll("."+this.CssClasses_.PANEL),b=0;b<_.length;b++)new e(_[b],_,y,this)}this.element_.classList.add(this.CssClasses_.IS_UPGRADED)}},window.MaterialLayoutTab=e,i.register({constructor:b,classAsString:"MaterialLayout",cssClass:"mdl-js-layout"});var w=function(t){this.element_=t,this.init()};window.MaterialDataTable=w,w.prototype.Constant_={}
vendor: 5,235 bytes, line 1
1,w.prototype.CssClasses_={DATA_TABLE:"mdl-data-table",SELECTABLE:"mdl-data-table--selectable",SELECT_ELEMENT:"mdl-data-table__select",IS_SELECTED:"is-selected",IS_UPGRADED:"is-upgraded"},w.prototype.selectRow_=function(t,e,i){return e?function(){t.checked?e.classList.add(this.CssClasses_.IS_SELECTED):e.classList.remove(this.CssClasses_.IS_SELECTED)}.bind(this):i?function(){var e;if(t.checked)for(e=0;e<i.length;e++)i[e].querySelector("td").querySelector(".mdl-checkbox").MaterialCheckbox.check(),i[e].classList.add(this.CssClasses_.IS_SELECTED);else for(e=0;e<i.length;e++)i[e].querySelector("td").querySelector(".mdl-checkbox").MaterialCheckbox.uncheck(),i[e].classList.remove(this.CssClasses_.IS_SELECTED)}.bind(this):void 0},w.prototype.createCheckbox_=function(t,e){var n=document.createElement("label"),r=["mdl-checkbox","mdl-js-checkbox","mdl-js-ripple-effect",this.CssClasses_.SELECT_ELEMENT];n.className=r.join(" ");var s=document.createElement("input");return s.type="checkbox",s.classList.add("mdl-checkbox__input"),t?(s.checked=t.classList.contains(this.CssClasses_.IS_SELECTED),s.addEventListener("change",this.selectRow_(s,t))):e&&s.addEventListener("change",this.selectRow_(s,null,e)),n.appendChild(s),i.upgradeElement(n,"MaterialCheckbox"),n},w.prototype.init=function(){if(this.element_){var t=this.element_.querySelector("th"),e=Array.prototype.slice.call(this.element_.querySelectorAll("tbody tr")),i=Array.prototype.slice.call(this.element_.querySelectorAll("tfoot tr")),n=e.concat(i);if(this.element_.classList.contains(this.CssClasses_.SELECTABLE)){var r=document.createElement("th"),s=this.createCheckbox_(null,n);r.appendChild(s),t.parentElement.insertBefore(r,t);for(var o=0;o<n.length;o++){var a=n[o].querySelector("td");if(a){var l=document.createElement("td");if("TBODY"===n[o].parentNode.nodeName.toUpperCase()){var u=this.createCheckbox_(n[o]);l.appendChild(u)}n[o].insertBefore(l,a)}}this.element_.classList.add(this.CssClasses_.IS_UPGRADED)}}},i.register({constructor:w,classAsString:"MaterialDataTable",cssClass:"mdl-js-data-table"});var x=function(t){this.element_=t,this.init()};window.MaterialRipple=x,x.prototype.Constant_={INITIAL_SCALE:"scale(0.0001, 0.0001)",INITIAL_SIZE:"1px",INITIAL_OPACITY:"0.4",FINAL_OPACITY:"0",FINAL_SCALE:""},x.prototype.CssClasses_={RIPPLE_CENTER:"mdl-ripple--center",RIPPLE_EFFECT_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE:"mdl-ripple",IS_ANIMATING:"is-animating",IS_VISIBLE:"is-visible"},x.prototype.downHandler_=function(t){if(!this.rippleElement_.style.width&&!this.rippleElement_.style.height){var e=this.element_.getBoundingClientRect();this.boundHeight=e.height,this.boundWidth=e.width,this.rippleSize_=2*Math.sqrt(e.width*e.width+e.height*e.height)+2,this.rippleElement_.style.width=this.rippleSize_+"px",this.rippleElement_.style.height=this.rippleSize_+"px"}if(this.rippleElement_.classList.add(this.CssClasses_.IS_VISIBLE),"mousedown"===t.type&&this.ignoringMouseDown_)this.ignoringMouseDown_=!1;else{if("touchstart"===t.type&&(this.ignoringMouseDown_=!0),this.getFrameCount()>0)return;this.setFrameCount(1);var i,n,r=t.currentTarget.getBoundingClientRect();if(0===t.clientX&&0===t.clientY)i=Math.round(r.width/2),n=Math.round(r.height/2);else{var s=void 0!==t.clientX?t.clientX:t.touches[0].clientX,o=void 0!==t.clientY?t.clientY:t.touches[0].clientY;i=Math.round(s-r.left),n=Math.round(o-r.top)}this.setRippleXY(i,n),this.setRippleStyles(!0),window.requestAnimationFrame(this.animFrameHandler.bind(this))}},x.prototype.upHandler_=function(t){t&&2!==t.detail&&window.setTimeout(function(){this.rippleElement_.classList.remove(this.CssClasses_.IS_VISIBLE)}.bind(this),0)},x.prototype.init=function(){if(this.element_){var t=this.element_.classList.contains(this.CssClasses_.RIPPLE_CENTER);this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT_IGNORE_EVENTS)||(this.rippleElement_=this.element_.querySelector("."+this.CssClasses_.RIPPLE),this.frameCount_=0,this.rippleSize_=0,this.x_=0,this.y_=0,this.ignoringMouseDown_=!1,this.boundDownHandler=this.downHandler_.bind(this),this.element_.addEventListener("mousedown",this.boundDownHandler),this.element_.addEventListener("touchstart",this.boundDownHandler),this.boundUpHandler=this.upHandler_.bind(this),this.element_.addEventListener("mouseup",this.boundUpHandler),this.element_.addEventListener("mouseleave",this.boundUpHandler),this.element_.addEventListener("touchend",this.boundUpHandler),this.element_.addEventListener("blur",this.boundUpHandler),this.getFrameCount=function(){return this.frameCount_},this.setFrameCount=function(t){this.frameCount_=t},this.getRippleElement=function(){return this.rippleElement_},this.setRippleXY=function(t,e){this.x_=t,this.y_=e},this.setRippleStyles=function(e){if(null!==this.rippleElement_){var i,n,r="translate("+this.x_+"px, "+this.y_+"px)";e?(n=this.Constant_.INITIAL_SCALE,this.Constant_.INITIAL_SIZE):(n=this.Constant_.FINAL_SCALE,this.rippleSize_+"px",t&&(r="translate("+this.boundWidth/2+"px, "+this.boundHeight/2+"px)")),i="translate(-50%, -50%) "+r+n,this.rippleElement_.style.webkitTransform=i,this.rippleElement_.style.msTransform=i,this.rippleElement_.style.transform=i,e?this.rippleElement_.classList.remove(this.CssClasse
1s_.IS_ANIMATING):this.rippleElement_.classList.add(this.CssClasses_.IS_ANIMATING)}},this.animFrameHandler=function(){this.frameCount_-- >0?window.requestAnimationFrame(this.animFrameHandler.bind(this)):this.setRippleStyles(!1)})}},i.register({constructor:x,classAsString:"MaterialRipple",cssClass:"mdl-js-ripple-effect",widget:!1})}(),function(){var t,e,i,n,r,s=function(t,e){return function(){return t.apply(e,arguments)}},o=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};e=function(){function t(){}return t.prototype.extend=function(t,e){var i,n;for(i in e)n=e[i],null==t[i]&&(t[i]=n);return t},t.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},t.prototype.createEvent=function(t,e,i,n){var r;return null==e&&(e=!1),null==i&&(i=!1),null==n&&(n=null),null!=document.createEvent?(r=document.createEvent("CustomEvent")).initCustomEvent(t,e,i,n):null!=document.createEventObject?(r=document.createEventObject()).eventType=t:r.eventName=t,r},t.prototype.emitEvent=function(t,e){return null!=t.dispatchEvent?t.dispatchEvent(e):e in(null!=t)?t[e]():"on"+e in(null!=t)?t["on"+e]():void 0},t.prototype.addEvent=function(t,e,i){return null!=t.addEventListener?t.addEventListener(e,i,!1):null!=t.attachEvent?t.attachEvent("on"+e,i):t[e]=i},t.prototype.removeEvent=function(t,e,i){return null!=t.removeEventListener?t.removeEventListener(e,i,!1):null!=t.detachEvent?t.detachEvent("on"+e,i):delete t[e]},t.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},t}(),i=this.WeakMap||this.MozWeakMap||(i=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,i,n,r;for(e=i=0,n=(r=this.keys).length;n>i;e=++i)if(r[e]===t)return this.values[e]},t.prototype.set=function(t,e){var i,n,r,s;for(i=n=0,r=(s=this.keys).length;r>n;i=++n)if(s[i]===t)return void(this.values[i]=e);return this.keys.push(t),this.values.push(e)},t}()),t=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(t=function(){function t(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notSupported=!0,t.prototype.observe=function(){},t}()),n=this.getComputedStyle||function(t,e){return this.getPropertyValue=function(e){var i;return"float"===e&&(e="styleFloat"),r.test(e)&&e.replace(r,function(t,e){return e.toUpperCase()}),(null!=(i=t.currentStyle)?i[e]:void 0)||null},this},r=/(\-([a-z]){1})/g,this.WOW=function(){function r(t){null==t&&(t={}),this.scrollCallback=s(this.scrollCallback,this),this.scrollHandler=s(this.scrollHandler,this),this.resetAnimation=s(this.resetAnimation,this),this.start=s(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new i,this.wowEvent=this.util().createEvent(this.config.boxClass)}return r.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},r.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},r.prototype.start=function(){var e,i,n,r;if(this.stopped=!1,this.boxes=function(){var t,i,n,r;for(r=[],t=0,i=(n=this.element.querySelectorAll("."+this.config.boxClass)).length;i>t;t++)e=n[t],r.push(e);return r}.call(this),this.all=function(){var t,i,n,r;for(r=[],t=0,i=(n=this.boxes).length;i>t;t++)e=n[t],r.push(e);return r}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(i=0,n=(r=this.boxes).length;n>i;i++)e=r[i],this.applyStyle(e,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new t(function(t){return function(e){var i,n,r,s,o;for(o=[],i=0,n=e.length;n>i;i++)s=e[i],o.push(function(){var t,e,i,n;for(n=[],t=0,e=(i=s.addedNodes||[]).length;e>t;t++)r=i[t],n.push(this.doSync(r));return n}.call(t));return o}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},r.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollC
1ontainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},r.prototype.sync=function(e){return t.notSupported?this.doSync(this.element):void 0},r.prototype.doSync=function(t){var e,i,n,r,s;if(null==t&&(t=this.element),1===t.nodeType){for(s=[],i=0,n=(r=(t=t.parentNode||t).querySelectorAll("."+this.config.boxClass)).length;n>i;i++)e=r[i],o.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),s.push(this.scrolled=!0)):s.push(void 0);return s}},r.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(t),this.util().emitEvent(t,this.wowEvent),this.util().addEvent(t,"animationend",this.resetAnimation),this.util().addEvent(t,"oanimationend",this.resetAnimation),this.util().addEvent(t,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(t,"MSAnimationEnd",this.resetAnimation),t},r.prototype.applyStyle=function(t,e){var i,n,r,s;return n=t.getAttribute("data-wow-duration"),i=t.getAttribute("data-wow-delay"),r=t.getAttribute("data-wow-iteration"),this.animate((s=this,function(){return s.customStyle(t,e,n,i,r)}))},r.prototype.animate="requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()},r.prototype.resetStyle=function(){var t,e,i,n,r;for(r=[],e=0,i=(n=this.boxes).length;i>e;e++)t=n[e],r.push(t.style.visibility="visible");return r},r.prototype.resetAnimation=function(t){var e;return t.type.toLowerCase().indexOf("animationend")>=0?(e=t.target||t.srcElement).className=e.className.replace(this.config.animateClass,"").trim():void 0},r.prototype.customStyle=function(t,e,i,n,r){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",i&&this.vendorSet(t.style,{animationDuration:i}),n&&this.vendorSet(t.style,{animationDelay:n}),r&&this.vendorSet(t.style,{animationIterationCount:r}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},r.prototype.vendors=["moz","webkit"],r.prototype.vendorSet=function(t,e){var i,n,r,s;for(i in n=[],e)r=e[i],t[""+i]=r,n.push(function(){var e,n,o,a;for(a=[],e=0,n=(o=this.vendors).length;n>e;e++)s=o[e],a.push(t[""+s+i.charAt(0).toUpperCase()+i.substr(1)]=r);return a}.call(this));return n},r.prototype.vendorCSS=function(t,e){var i,r,s,o,a,l;for(o=(a=n(t)).getPropertyCSSValue(e),i=0,r=(s=this.vendors).length;r>i;i++)l=s[i],o=o||a.getPropertyCSSValue("-"+l+"-"+e);return o},r.prototype.animationName=function(t){var e;try{e=this.vendorCSS(t,"animation-name").cssText}catch(i){e=n(t).getPropertyValue("animation-name")}return"none"===e?"":e},r.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},r.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},r.prototype.scrollHandler=function(){return this.scrolled=!0},r.prototype.scrollCallback=function(){var t;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var e,i,n,r;for(r=[],e=0,i=(n=this.boxes).length;i>e;e++)(t=n[e])&&(this.isVisible(t)?this.show(t):r.push(t));return r}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},r.prototype.offsetTop=function(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e},r.prototype.isVisible=function(t){var e,i,n,r,s;return i=t.getAttribute("data-wow-offset")||this.config.offset,r=(s=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset)+Math.min(this.element.clientHeight,this.util().innerHeight())-i,e=(n=this.offsetTop(t))+t.clientHeight,r>=n&&e>=s},r.prototype.util=function(){return null!=this._util?this._util:this._util=new e},r.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},r}()}.call(this);_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.extend(t.fn,{validate:function(e){if(this.length){var i=t.data(this[0],"validator");
1return i||(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(e){function n(){var n,r;return!i.settings.submitHandler||(i.submitButton&&(n=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),r=i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&n.remove(),void 0!==r&&r)}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,n()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):n():(i.focusInvalid(),!1)})),i)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,i,n;return t(this[0]).is("form")?e=this.validate().form():(n=[],e=!0,i=t(this[0].form).validate(),this.each(function(){e=i.element(this)&&e,e||(n=n.concat(i.errorList))}),i.errorList=n),e},rules:function(e,i){var n,r,s,o,a,l,u=this[0];if(null!=u&&null!=u.form){if(e)switch(r=(n=t.data(u.form,"validator").settings).rules,s=t.validator.staticRules(u),e){case"add":t.extend(s,t.validator.normalizeRule(i)),delete s.messages,r[u.name]=s,i.messages&&(n.messages[u.name]=t.extend(n.messages[u.name],i.messages));break;case"remove":return i?(l={},t.each(i.split(/\s/),function(e,i){l[i]=s[i],delete s[i],"required"===i&&t(u).removeAttr("aria-required")}),l):(delete r[u.name],s)}return(o=t.validator.normalizeRules(t.extend({},t.validator.classRules(u),t.validator.attributeRules(u),t.validator.dataRules(u),t.validator.staticRules(u)),u)).required&&(a=o.required,delete o.required,o=t.extend({required:a},o),t(u).attr("aria-required","true")),o.remote&&(a=o.remote,delete o.remote,o=t.extend(o,{remote:a})),o}}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){var i=t(e).val();return null!==i&&!!t.trim(""+i)},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:void 0===i?e:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(new RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(e,i){9===i.which&&""===this.elementValue(e)||-1!==t.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,n){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(n):t(e).addClass(i).removeClass(n)},unhighlight:function(e,i,n){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(n):t(e).removeClass(i).addClass(n)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}."),step:t.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var e,i=this.groups={};function n(e){!this.form&&this.hasAttribute("contenteditable")&&(this.form=t(this).closest("form")[0]);var i=t.data(this.form,"validator"),n="on"+e.type.replace(/^validate/,""),r=i.settings;r[n]&&!t(this).is(r.ignore)&&r[n].call(i,this,e)}t.each(this.settings.groups,function(e,n){"string"==typeof n&&(n=n.split(/\s/)),t.each(n,function(t,n){i[n]=e})}),e=this.settings.rules,t.each(e,function(i,n){e[i]=t.validator.normalizeRule(n)}),t(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable]",n).on("click.validate","select, option, [type='radio'], [type='checkbox']",n),this.settings.invalidHandler&&t(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),t(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var i,n,r=this.clean(e),s=this.validationTargetFor(r),o=this,a=!0;return void 0===s?delete this.invalid[r.name]:(this.prepareElement(s),this.currentElements=t(s),(n=this.groups[s.name])&&t.each(this.groups,function(t,e){e===n&&t!==s.name&&(r=o.validationTargetFor(o.clean(o.findByName(t))))&&r.name in o.invalid&&(o.currentElements.push(r),a=o.check(r)&&a)}),i=!1!==this.check(s),a=a&&i,this.invalid[s.name]=!i,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers
1)),this.showErrors(),t(e).attr("aria-invalid",!i)),a},showErrors:function(e){if(e){var i=this;t.extend(this.errorMap,e),this.errorList=t.map(this.errorMap,function(t,e){return{message:t,element:i.findByName(e)[0]}}),this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)t[e]&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var n=this.name||t(this).attr("name");return!n&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=t(this).closest("form")[0]),!(n in i||!e.objectLength(t(this).rules()))&&(i[n]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([])},reset:function(){this.resetInternals(),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i,n,r=t(e),s=e.type;return"radio"===s||"checkbox"===s?this.findByName(e.name).filter(":checked").val():"number"===s&&void 0!==e.validity?e.validity.badInput?"NaN":r.val():(i=e.hasAttribute("contenteditable")?r.text():r.val(),"file"===s?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(n=i.lastIndexOf("/"))>=0?i.substr(n+1):(n=i.lastIndexOf("\\"))>=0?i.substr(n+1):i:"string"==typeof i?i.replace(/\r/g,""):i)},check:function(e){e=this.validationTargetFor(this.clean(e));var i,n,r,s=t(e).rules(),o=t.map(s,function(t,e){return e}).length,a=!1,l=this.elementValue(e);if("function"==typeof s.normalizer){if("string"!=typeof(l=s.normalizer.call(e,l)))throw new TypeError("The normalizer should return a string value.");delete s.normalizer}for(n in s){r={method:n,parameters:s[n]};try{if("dependency-mismatch"===(i=t.validator.methods[n].call(this,l,e,r.parameters))&&1===o){a=!0;continue}if(a=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)return this.formatAndAdd(e,r),!1}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+r.method+"' method.",t),t instanceof TypeError&&(t.message+=". Exception occurred when checking element "+e.id+", check the '"+r.method+"' method."),t}}if(!a)return this.objectLength(s)&&this.successList.push(e),!0},customDataMessage:function(e,i){return t(e).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,i){"string"==typeof i&&(i={method:i});var n=this.findDefined(this.customMessage(e.name,i.method),this.customDataMessage(e,i.method),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),r=/\$?\{(\d+)\}/g;return"function"==typeof n?n=n.call(this,i.parameters,e):r.test(n)&&(n=t.validator.format(n.replace(r,"{$1}"),i.parameters)),n},formatAndAdd:function(t,e){var i=this.defaultMessage(t,e);this.errorList.push({message:i,element:t,method:e.method}
1),this.errorMap[t.name]=i,this.submitted[t.name]=i},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var n,r,s,o,a=this.errorsFor(e),l=this.idOrName(e),u=t(e).attr("aria-describedby");a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),a.html(i)):(n=a=t("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(n=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement.call(this,n,t(e)):n.insertAfter(e),a.is("label")?a.attr("for",l):0===a.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(s=a.attr("id"),u?u.match(new RegExp("\\b"+this.escapeCssMeta(s)+"\\b"))||(u+=" "+s):u=s,t(e).attr("aria-describedby",u),(r=this.groups[e.name])&&(o=this,t.each(o.groups,function(e,i){i===r&&t("[name='"+o.escapeCssMeta(e)+"']",o.currentForm).attr("aria-describedby",a.attr("id"))})))),!i&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,e)),this.toShow=this.toShow.add(a)},errorsFor:function(e){var i=this.escapeCssMeta(this.idOrName(e)),n=t(e).attr("aria-describedby"),r="label[for='"+i+"'], label[for='"+i+"'] *";return n&&(r=r+", #"+this.escapeCssMeta(n).replace(/\s+/g,", #")),this.errors().filter(r)},escapeCssMeta:function(t){return t.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),t(e).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[void 0===t?"undefined":_typeof(t)]||this.dependTypes[void 0===t?"undefined":_typeof(t)](t,e)},dependTypes:{boolean:function(t){return t},string:function(e,i){return!!t(e,i.form).length},function:function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,t(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass),i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e,i){return i="string"==typeof i&&i||"remote",t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:i})})},destroy:function(){this.resetForm(),t(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("val
1idate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},n=t(e).attr("class");return n&&t.each(n.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(t,e,i,n){/min|max|step/.test(i)&&(null===e||/number|range|text/.test(e))&&(n=Number(n),isNaN(n)&&(n=void 0)),n||0===n?t[i]=n:e===i&&"range"!==e&&(t[i]=!0)},attributeRules:function(e){var i,n,r={},s=t(e),o=e.getAttribute("type");for(i in t.validator.methods)"required"===i?(""===(n=e.getAttribute(i))&&(n=!0),n=!!n):n=s.attr(i),this.normalizeAttributeRule(r,o,i,n);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(e){var i,n,r={},s=t(e),o=e.getAttribute("type");for(i in t.validator.methods)n=s.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(r,o,i,n);return r},staticRules:function(e){var i={},n=t.data(e.form,"validator");return n.settings.rules&&(i=t.validator.normalizeRule(n.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(n,r){if(!1!==r){if(r.param||r.depends){var s=!0;switch(_typeof(r.depends)){case"string":s=!!t(r.depends,i.form).length;break;case"function":s=r.depends.call(i,i)}s?e[n]=void 0===r.param||r.param:(t.data(i.form,"validator").resetElements(t(i)),delete e[n])}}else delete e[n]}),t.each(e,function(n,r){e[n]=t.isFunction(r)&&"normalizer"!==n?r(i):r}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,n){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==n?n:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,n){if(!this.depend(n,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var r=t(i).val();return r&&r.length>0}return this.checkable(i)?this.getLength(e,i)>0:e.length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(e,i,n){var r=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||r>=n},maxlength:function(e,i,n){var r=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||r<=n},rangelength:function(e,i,n){var r=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||r>=n[0]&&r<=n[1]}
1,min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},step:function(e,i,n){var r,s=t(i).attr("type"),o="Step attribute on input type "+s+" is not supported.",a=new RegExp("\\b"+s+"\\b"),l=function(t){var e=(""+t).match(/(?:\.(\d+))?$/);return e&&e[1]?e[1].length:0},u=function(t){return Math.round(t*Math.pow(10,r))},c=!0;if(s&&!a.test(["text","number","range"].join()))throw new Error(o);return r=l(n),(l(e)>r||u(e)%u(n)!=0)&&(c=!1),this.optional(i)||c},equalTo:function(e,i,n){var r=t(n);return this.settings.onfocusout&&r.not(".validate-equalTo-blur").length&&r.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){t(i).valid()}),e===r.val()},remote:function(e,i,n,r){if(this.optional(i))return"dependency-mismatch";r="string"==typeof r&&r||"remote";var s,o,a,l=this.previousValue(i,r);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[i.name][r],this.settings.messages[i.name][r]=l.message,n="string"==typeof n&&{url:n}||n,a=t.param(t.extend({data:e},n.data)),l.old===a?l.valid:(l.old=a,s=this,this.startRequest(i),(o={})[i.name]=e,t.ajax(t.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:o,context:s.currentForm,success:function(t){var n,o,a,u=!0===t||"true"===t;s.settings.messages[i.name][r]=l.originalMessage,u?(a=s.formSubmitted,s.resetInternals(),s.toHide=s.errorsFor(i),s.formSubmitted=a,s.successList.push(i),s.invalid[i.name]=!1,s.showErrors()):(n={},o=t||s.defaultMessage(i,{method:r,parameters:e}),n[i.name]=l.message=o,s.invalid[i.name]=!0,s.showErrors(n)),l.valid=u,s.stopRequest(i,u)}},n)),"pending")}}});var e,i={};t.ajaxPrefilter?t.ajaxPrefilter(function(t,e,n){var r=t.port;"abort"===t.mode&&(i[r]&&i[r].abort(),i[r]=n)}):(e=t.ajax,t.ajax=function(n){var r=("mode"in n?n:t.ajaxSettings).mode,s=("port"in n?n:t.ajaxSettings).port;return"abort"===r?(i[s]&&i[s].abort(),i[s]=e.apply(this,arguments),i[s]):e.apply(this,arguments)})}),function(t){var e,i=t.validator,n="unobtrusiveValidation";function r(t,e,i){t.rules[e]=i,t.message&&(t.messages[e]=t.message)}function s(t){return t.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function o(t){return t.substr(0,t.lastIndexOf(".")+1)}function a(t,e){return 0===t.indexOf("*.")&&(t=t.replace("*.",e)),t}function l(e){var i=t(this),n="__jquery_unobtrusive_validation_form_reset";if(!i.data(n)){i.data(n,!0);try{i.data("validator").resetForm()}finally{i.removeData(n)}i.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),i.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var r=t(e),o=r.data(n),a=t.proxy(l,e),u=i.unobtrusive.options||{},c=function(i,n){var r=u[i];r&&t.isFunction(r)&&r.apply(e,n)};return o||(o={options:{errorClass:u.errorClass||"input-validation-error",errorElement:u.errorElement||"span",errorPlacement:function(){(function(e,i){var n=t(this).find("[data-valmsg-for='"+s(i[0].name)+"']"),r=n.attr("data-valmsg-replace"),o=r?!1!==t.parseJSON(r):null;n.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",n),o?(n.empty(),e.removeClass("input-validation-error").appendTo(n)):e.hide()}).apply(e,arguments),c("errorPlacement",arguments)},invalidHandler:function(){(function(e,i){var n=t(this).find("[data-valmsg-summary=true]"),r=n.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),n.addClass("validation-summary-errors").removeClass("validation-summary-valid"),t.each(i.errorList,function(){t("<li />").html(this.message).appendTo(r)}))}).apply(e,arguments),c("invalidHandler",arguments)},messages:{},rules:{},success:function(){(function(e){var i=e.data("unobtrusiveContainer");if(i){var n=i.attr("data-valmsg-replace"),r=n?t.parseJSON(n):null;i.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&i.empty()}}).apply(e,arguments),c("success",arguments)}},attachValidation:function(){r.off("reset."+n,a).on("reset."+n,a).validate(this.options)},validate:function(){return r.validate(),r.valid()}},r.data(n,o)),o}i.unobtrusive={adapters:[],parseElement:function(e,i){var n,r,s,o=t(e),a=o.parents("form")[0];a&&((n=u(a)).options.rules[e.name]=r={},n.options.messages[e.name]=s={},t.each(this.adapters,function(){var i="data-val-"+this.name,n=o.attr(i),l={};void 0!==n&&(i+="-",t.each(this.params,function(){l[this]=o.attr(i+this)}),this.adapt({element:e,form:a,message:n,params:l,rules:r,messages:s}))}),t.extend(r,{__dummy__:!0}),i||n.attachValidation())},parse:function(e){var n=t(e),r=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){i.unobtrusive.parseElement(this,!0)}),r.each(function(){var t=u(this);t&&t.attachValidation()})}}
1,(e=i.unobtrusive.adapters).add=function(t,e,i){return i||(i=e,e=[]),this.push({name:t,params:e,adapt:i}),this},e.addBool=function(t,e){return this.add(t,function(i){r(i,e||t,!0)})},e.addMinMax=function(t,e,i,n,s,o){return this.add(t,[s||"min",o||"max"],function(t){var s=t.params.min,o=t.params.max;s&&o?r(t,n,[s,o]):s?r(t,e,s):o&&r(t,i,o)})},e.addSingleVal=function(t,e,i){return this.add(t,[e||"val"],function(n){r(n,i||t,n.params[e])})},i.addMethod("__dummy__",function(t,e,i){return!0}),i.addMethod("regex",function(t,e,i){var n;return!!this.optional(e)||(n=new RegExp(i).exec(t))&&0===n.index&&n[0].length===t.length}),i.addMethod("nonalphamin",function(t,e,i){var n;return i&&(n=(n=t.match(/\W/g))&&n.length>=i),n}),i.methods.extension?(e.addSingleVal("accept","mimtype"),e.addSingleVal("extension","extension")):e.addSingleVal("extension","extension","accept"),e.addSingleVal("regex","pattern"),e.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),e.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),e.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),e.add("equalto",["other"],function(e){var i=o(e.element.name),n=a(e.params.other,i);r(e,"equalTo",t(e.form).find(":input").filter("[name='"+s(n)+"']")[0])}),e.add("required",function(t){"INPUT"===t.element.tagName.toUpperCase()&&"CHECKBOX"===t.element.type.toUpperCase()||r(t,"required",!0)}),e.add("remote",["url","type","additionalfields"],function(e){var i={url:e.params.url,type:e.params.type||"GET",data:{}},n=o(e.element.name);t.each(function(t){return t.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}(e.params.additionalfields||e.element.name),function(r,o){var l=a(o,n);i.data[l]=function(){var i=t(e.form).find(":input").filter("[name='"+s(l)+"']");return i.is(":checkbox")?i.filter(":checked").val()||i.filter(":hidden").val()||"":i.is(":radio")?i.filter(":checked").val()||"":i.val()}}),r(e,"remote",i)}),e.add("password",["min","nonalphamin","regex"],function(t){t.params.min&&r(t,"minlength",t.params.min),t.params.nonalphamin&&r(t,"nonalphamin",t.params.nonalphamin),t.params.regex&&r(t,"regex",t.params.regex)}),t(function(){i.unobtrusive.parse(document)})}(jQuery);var umbracoForms;_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(t,e,i){var n=function(i){"undefined"==typeof YT&&void 0===e.loadingPlayer?(e.loadingPlayer=!0,e.dfd=t.Deferred(),e.onYouTubeIframeAPIReady=function(){e.onYouTubeIframeAPIReady=null,e.dfd.resolve("done"),i()}):"object"===("undefined"==typeof YT?"undefined":_typeof(YT))?i():e.dfd.done(function(t){i()})};YTPlayer={player:null,defaults:{ratio:16/9,videoId:"LSmgKRx5pBo",mute:!0,repeat:!0,width:t(e).width(),playButtonClass:"YTPlayer-play",pauseButtonClass:"YTPlayer-pause",muteButtonClass:"YTPlayer-mute",volumeUpClass:"YTPlayer-volume-up",volumeDownClass:"YTPlayer-volume-down",start:0,pauseOnScroll:!1,fitToBackground:!0,playerVars:{iv_load_policy:3,modestbranding:1,autoplay:1,controls:0,showinfo:0,wmode:"opaque",branding:0,autohide:0},events:null},init:function(r,s){var o,a,l,u=this;return u.userOptions=s,u.$body=t("body"),u.$node=t(r),u.$window=t(e),u.defaults.events={onReady:function(t){u.onPlayerReady(t),u.options.pauseOnScroll&&u.pauseOnScroll(),"function"==typeof u.options.callback&&u.options.callback.call(this)},onStateChange:function(t){1===t.data?(u.$node.find("img").fadeOut(400),u.$node.addClass("loaded")):0===t.data&&u.options.repeat&&u.player.seekTo(u.options.start)}},u.options=t.extend(!0,{},u.defaults,u.userOptions),u.options.height=Math.ceil(u.options.width/u.options.ratio),u.ID=(new Date).getTime(),u.holderID="YTPlayer-ID-"+u.ID,u.options.fitToBackground?u.createBackgroundVideo():u.createContainerVideo(),u.$window.on("resize.YTplayer"+u.ID,function(){u.resize(u)}),o=u.onYouTubeIframeAPIReady.bind(u),a=i.createElement("script"),l=i.getElementsByTagName("head")[0],"file://"==e.location.origin?a.src="http://www.youtube.com/iframe_api":a.src="//www.youtube.com/iframe_api",l.appendChild(a),l=null,a=null,n(o),u.resize(u),u},pauseOnScroll:function(){var t=this;t.$window.on("scroll.YTplayer"+t.ID,function(){1===t.player.getPlayerState()&&t.player.pauseVideo()}),t.$window.scrollStopped(function(){2===t.player.getPlayerState()&&t.player.playVideo()})},createContainerVideo:function(){var e=t('<div id="ytplayer-container'+this.ID+'" > <div id="'+this.holderID+'" class="ytplayer-player-inline"></div> </div> <div id="ytplayer-shield" class="ytplayer-shield"></div>');
1this.$node.append(e),this.$YTPlayerString=e,e=null},createBackgroundVideo:function(){var e=t('<div id="ytplayer-container'+this.ID+'" class="ytplayer-container background"> <div id="'+this.holderID+'" class="ytplayer-player"></div> </div> <div id="ytplayer-shield" class="ytplayer-shield"></div>');this.$node.append(e),this.$YTPlayerString=e,e=null},resize:function(i){var n=t(e);i.options.fitToBackground||(n=i.$node);var r,s,o=n.width(),a=n.height(),l=t("#"+i.holderID);o/i.options.ratio<a?(r=Math.ceil(a*i.options.ratio),l.width(r).height(a).css({left:(o-r)/2,top:0})):(s=Math.ceil(o/i.options.ratio),l.width(o).height(s).css({left:0,top:(a-s)/2})),l=null,n=null},onYouTubeIframeAPIReady:function(){this.player=new e.YT.Player(this.holderID,this.options)},onPlayerReady:function(t){this.options.mute&&t.target.mute(),t.target.playVideo()},getPlayer:function(){return this.player},destroy:function(){this.$node.removeData("yt-init").removeData("ytPlayer").removeClass("loaded"),this.$YTPlayerString.remove(),t(e).off("resize.YTplayer"+this.ID),t(e).off("scroll.YTplayer"+this.ID),this.$body=null,this.$node=null,this.$YTPlayerString=null,this.player.destroy(),this.player=null}},t.fn.scrollStopped=function(e){var i=t(this),n=this;i.scroll(function(){i.data("scrollTimeout")&&clearTimeout(i.data("scrollTimeout")),i.data("scrollTimeout",setTimeout(e,250,n))})},t.fn.YTPlayer=function(e){return this.each(function(){t(this).data("yt-init",!0);var i=Object.create(YTPlayer);i.init(this,e),t.data(this,"ytPlayer",i)})}}(jQuery,window,document),(umbracoForms=umbracoForms||{}).dependencyCheck=function(t){if("undefined"==typeof Umbraco||void 0===Umbraco.Sys){var e=document.getElementById("umbraco_form_"+t),i=document.createElement("div");i.className="umbraco-forms missing-library",i.style.color="#fff",i.style.backgroundColor="#9d261d",i.style.padding="15px",i.style.margin="10px 0";var n="";if(e){if(e.getElementsByClassName("umbraco-forms missing-library").length>0)return;"undefined"==typeof jQuery?n+="jQuery has not been loaded & is required for Umbraco Forms.":($.validator||(n+="<br />jQuery Validate has not been loaded & is required for Umbraco Forms."),$.validator&&!$.validator.unobtrusive&&(n+="<br />jQuery Validate Unobtrusive has not been loaded & is required for Umbraco Forms.")),""!==n&&(i.innerHTML=n+'<br/> <a href="https://our.umbraco.org/documentation/products/umbracoforms/developer/Prepping-Frontend/" target="_blank" style="text-decoration:underline; color:#fff;">See Umbraco Forms Documentation</a>',e.insertBefore(i,e.childNodes[0]))}}},function(t){void 0!=t.validator&&(t.validator.setDefaults({ignore:":hidden"}),t.validator.unobtrusive.adapters.addBool("requiredcb","required"),t.validator.addMethod("umbracoforms_selectonefromlist",function(e,i){var n=!1;return t("input",t(i).closest(".checkboxlist, .radiobuttonlist")).each(function(e){t(this).is(":checked")&&(n=!0)}),n}),t.validator.unobtrusive.adapters.addBool("requiredlist","umbracoforms_selectonefromlist"),t.validator.addMethod("umbracoforms_regex",function(e,i){var n=t(i).attr("data-regex"),r=t(i).val();return 0==r.length||r.match(n)}),t.validator.unobtrusive.adapters.addBool("regex","umbracoforms_regex"),t(".umbraco-forms-form").on("click",'[type="submit"]:not(.cancel)',function(e){e.preventDefault();var i=t(this),n=i.closest("form");
1if(n.validate(),n.valid()&&"disabled"!==i.attr("disabled")){if(n.is("[nonajax]"))n.submit();else{var r={};n.serializeArray().forEach(function(t,e){void 0===r[t.name]?r[t.name]=t.value||"":(r[t.name].push||(r[t.name]=[r[t.name]]),r[t.name].push(t.value||""))}),n.addClass("posting"),t.post({method:"POST",url:location.pathname,data:r}).done(function(){t("#"+n.parent().attr("id").replace("umbraco_form","form_popup")).foundation("open"),n[0].reset(),i.removeAttr("disabled"),n.removeClass("posting")}).fail(function(e){var i=t("#error");i.find(".message").html(e.responseText),i.foundation("open")})}i.attr("disabled","disabled")}}))}(jQuery),(umbracoForms=umbracoForms||{}).conditions=function(t,e,i,n){var r={};function s(t,e){$("select",t).each(function(){e[$(this).attr("id")]=$("option[value='"+$(this).val()+"']",$(this)).text()}),$("textarea",t).each(function(){e[$(this).attr("id")]=$(this).val()}),$("input[type=checkbox]",t).each(function(){e[$(this).attr("name")]=null}),$("input",t).each(function(){"text"!=$(this).attr("type")&&"hidden"!=$(this).attr("type")||(e[$(this).attr("id")]=$(this).val()),"radio"==$(this).attr("type")&&$(this).is(":checked")&&(e[$(this).attr("name")]=$(this).val()),"checkbox"==$(this).attr("type")&&($(this).attr("id")!=$(this).attr("name")?$(this).is(":checked")&&(null==e[$(this).attr("name")]?e[$(this).attr("name")]=$(this).val():e[$(this).attr("name")]+=","+$(this).val()):e[$(this).attr("name")]=$(this).is(":checked").toString())})}return r.form=t,r.fieldsetConditions=e,r.fieldConditions=i,r.values=n,r.operators={Is:function(t,e){if((t||"")===e)return!0;var i=t.split(",");return $.grep(i,function(t){return t===e}).length>0},IsNot:function(t,e){var i=t.split(","),n=$.grep(i,function(t){return t===e});return(t||"")!==e&&0===n.length},GreaterThen:function(t,e){return parseInt(t)>parseInt(e)},LessThen:function(t,e){return parseInt(t)<parseInt(e)},StartsWith:function(t,e){return t&&0===t.indexOf(e)},EndsWith:function(t,e){return t&&t.indexOf(e)===t.length-e.length},Contains:function(t,e){return t&&t.indexOf(e)>-1}},r.watch=function(){$("input, textarea, select",r.form).change(function(){s(r.form,r.values),r.run()}),s(r.form,this.values),r.run()},r.run=function(){var t,e,i={};function n(t){var e=!0;return r.fieldConditions[t.field]&&(e=o(t.field,r.fieldConditions[t.field])),!!e&&function(t){var e=r.values[t.field],i=r.operators[t.operator];return null!==e&&i(e,t.value)}(t)}function s(t,e){var s="Show"===e.actionType,a=i[t];return!((void 0===a?i[t]=function(t,e){var i,s,a="Any"===e.logicType,l="All"===e.logicType,u={},c=!1,h=!0;for(s=0;s<e.rules.length;s++){if(t===(i=e.rules[s]).field||t===i.fieldsetId)throw new Error("Field or fieldset "+t+" has a condition on itself.");void 0===u[i.fieldsetId]&&(r.fieldsetConditions[i.fieldsetId]?(u[i.fieldsetId]=o(i.fieldsetId,r.fieldsetConditions[i.fieldsetId]),u[i.fieldsetId]||(c=!0)):u[i.fieldsetId]=!0)}if(l&&c)return!1;for(s=0;s<e.rules.length&&(h=!!u[(i=e.rules[s]).fieldsetId]&&n(e.rules[s]),!a||!h)&&(!l||h);s++);return h}(t,e):a)^s)}function o(t,e){return!e||s(t,e)}function a(t,e,i,n){o(e,i)?t.show():t.hide()}for(t in r.fieldsetConditions)a($("#"+t),t,r.fieldsetConditions[t]);for(e in r.fieldConditions)a($("#"+e).closest(".umbraco-forms-field"),e,r.fieldConditions[e])},r};_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"use strict";var i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!i.TweenLite){var n,r,s,o,a,l=function(t){var e,n=t.split("."),r=i;for(e=0;e<n.length;e++)r[n[e]]=r=r[n[e]]||{};return r},u=l("com.greensock"),c=1e-10,h=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},d=function(){},f=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==(void 0===i?"undefined":_typeof(i))&&!!i.push&&t.call(i)===e)}}(),p={},m=function e(n,r,s,o){this.sc=p[n]?p[n].sc:[],p[n]=this,this.gsClass=null,this.func=s;var a=[];this.check=function(u){for(var c,h,d,f,m,g=r.length,v=g;--g>-1;)(c=p[r[g]]||new e(r[g],[])).gsClass?(a[g]=c.gsClass,v--):u&&c.sc.push(this);
1if(0===v&&s)for(d=(h=("com.greensock."+n).split(".")).pop(),f=l(h.join("."))[d]=this.gsClass=s.apply(s,a),o&&(i[d]=f,!(m="undefined"!=typeof module&&module.exports)&&"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+n.split(".").pop(),[],function(){return f}):"TweenLite"===n&&m&&(module.exports=f)),g=0;g<this.sc.length;g++)this.sc[g].check()},this.check(!0)},g=t._gsDefine=function(t,e,i,n){return new m(t,e,i,n)},v=u._class=function(t,e,i){return e=e||function(){},g(t,[],function(){return e},i),e};g.globals=i;var _=[0,0,1,1],y=[],b=v("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?_.concat(e):_},!0),w=b.map={},x=b.register=function(t,e,i,n){for(var r,s,o,a,l=e.split(","),c=l.length,h=(i||"easeIn,easeOut,easeInOut").split(",");--c>-1;)for(s=l[c],r=n?v("easing."+s,null,!0):u.easing[s]||{},o=h.length;--o>-1;)a=h[o],w[s+"."+a]=w[a+s]=r[a]=t.getRatio?t:t[a]||new t};for((s=b.prototype)._calcEnd=!1,s.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:.5>t?n/2:1-n/2},r=(n=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--r>-1;)s=n[r]+",Power"+r,x(new b(null,null,1,r),s,"easeOut",!0),x(new b(null,null,2,r),s,"easeIn"+(0===r?",easeNone":"")),x(new b(null,null,3,r),s,"easeInOut");w.linear=u.easing.Linear.easeIn,w.swing=u.easing.Quad.easeInOut;var C=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(s=C.prototype).addEventListener=function(t,e,i,n,r){r=r||0;var s,l,u=this._listeners[t],c=0;for(null==u&&(this._listeners[t]=u=[]),l=u.length;--l>-1;)(s=u[l]).c===e&&s.s===i?u.splice(l,1):0===c&&s.pr<r&&(c=l+1);u.splice(c,0,{c:e,s:i,up:n,pr:r}),this!==o||a||o.wake()},s.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},s.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;--e>-1;)(n=r[e])&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var T=t.requestAnimationFrame,$=t.cancelAnimationFrame,S=Date.now||function(){return(new Date).getTime()},k=S();for(r=(n=["ms","moz","webkit","o"]).length;--r>-1&&!T;)T=t[n[r]+"RequestAnimationFrame"],$=t[n[r]+"CancelAnimationFrame"]||t[n[r]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,n,r,s,l,u=this,h=S(),f=!(!1===e||!T)&&"auto",p=500,m=33,g=function t(e){var o,a,c=S()-k;c>p&&(h+=c-m),k+=c,u.time=(k-h)/1e3,o=u.time-l,(!i||o>0||!0===e)&&(u.frame++,l+=o+(o>=s?.004:s-o),a=!0),!0!==e&&(r=n(t)),a&&u.dispatchEvent("tick")};C.call(u),u.time=u.frame=0,u.tick=function(){g(!0)},u.lagSmoothing=function(t,e){p=t||1/c,m=Math.min(e,p,0)},u.sleep=function(){null!=r&&(f&&$?$(r):clearTimeout(r),n=d,r=null,u===o&&(a=!1))},u.wake=function(t){null!==r?u.sleep():t?h+=-k+(k=S()):u.frame>10&&(k=S()-p+5),n=0===i?d:f&&T?T:function(t){return setTimeout(t,1e3*(l-u.time)+1|0)},u===o&&(a=!0),g(2)},u.fps=function(t){return arguments.length?(s=1/((i=t)||60),l=this.time+s,void u.wake()):i},u.useRAF=function(t){return arguments.length?(u.sleep(),f=t,void u.fps(i)):f},u.fps(t),setTimeout(function(){"auto"===f&&u.frame<5&&"hidden"!==document.visibilityState&&u.useRAF(!1)},1500)}),(s=u.Ticker.prototype=new u.events.EventDispatcher).constructor=u.Ticker;var E=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,U){a||o.wake();var i=this.vars.useFrames?V:U;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});o=E.ticker=new u.Ticker,(s=E.prototype)._dirty=s._gc=s._initted=s._paused=!1,s._totalTime=s._time=0,s._rawPrevTime=-1,s._next=s._last=s._onUpdate=s._timeline=s.timeline=null,s._paused=!1;(function t(){a&&S()-k>2e3&&o.wake(),setTimeout(t,2e3)})(),s.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},s.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},s.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},s.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},s.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},s.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)}
vendor: 4,332 bytes, line 1
1,s.render=function(t,e,i){},s.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},s.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&t<i+this.totalDuration()/this._timeScale},s._enabled=function(t,e){return a||o.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},s._kill=function(t,e){return this._enabled(!1,!1)},s.kill=function(t,e){return this._kill(t,e),this},s._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},s._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},s._callback=function(t){var e=this.vars;e[t].apply(e[t+"Scope"]||e.callbackScope||this,e[t+"Params"]||y)},s.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=f(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},s.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},s.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},s.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},s.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},s.totalTime=function(t,e,i){if(a||o.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(R.length&&X(),this.render(t,e,!1),R.length&&X())}return this},s.progress=s.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},s.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},s.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},s.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||c,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},s.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},s.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(a||t||o.wake(),i=(e=n.rawTime())-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var P=v("core.SimpleTimeline",function(t){E.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(s=P.prototype=new E).constructor=P,s.kill()._gc=!1,s._first=s._last=s._recent=null,s._sortChildren=!1,s.add=s.insert=function(t,e,
1i,n){var r,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(s=t._startTime;r&&r._startTime>s;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},s._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},s.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=n},s.rawTime=function(){return a||o.wake(),this._totalTime};var O=v("TweenLite",function(e,i,n){if(E.call(this,i,n),this.render=O.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:O.selector(e)||e;var r,s,o,a=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?q[O.defaultOverwrite]:"number"==typeof l?l>>0:q[l],(a||e instanceof Array||e.push&&f(e))&&"number"!=typeof e[0])for(this._targets=o=h(e),this._propLookup=[],this._siblings=[],r=0;r<o.length;r++)(s=o[r])?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(o.splice(r--,1),this._targets=o=o.concat(h(s))):(this._siblings[r]=W(s,this,!1),1===l&&this._siblings[r].length>1&&Q(s,this,null,1,this._siblings[r])):"string"==typeof(s=o[r--]=O.selector(s))&&o.splice(r+1,1):o.splice(r--,1);else this._propLookup={},this._siblings=W(e,this,!1),1===l&&this._siblings.length>1&&Q(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-c,this.render(-this._delay))},!0),A=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(s=O.prototype=new E).constructor=O,s.kill()._gc=!1,s.ratio=0,s._firstPT=s._targets=s._overwrittenProps=s._startAt=null,s._notifyPluginsOfEnabled=s._lazy=!1,O.version="1.18.2",O.defaultEase=s._ease=new b(null,null,1,1),O.defaultOverwrite="auto",O.ticker=o,O.autoSleep=120,O.lagSmoothing=function(t,e){o.lagSmoothing(t,e)},O.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(O.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var R=[],I={},L=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,D=function(t){for(var e,i=this._firstPT;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,i.r?e=Math.round(e):1e-6>e&&e>-1e-6&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},M=function(t,e,i,n){var r,s,o,a,l,u,c,h=[t,e],d=0,f="",p=0;for(h.start=t,i&&(i(h),t=h[0],e=h[1]),h.length=0,r=t.match(L)||[],s=e.match(L)||[],n&&(n._next=null,n.blob=1,h._firstPT=n),l=s.length,a=0;l>a;a++)c=s[a],f+=(u=e.substr(d,e.indexOf(c,d)-d))||!a?u:",",d+=u.length,p?p=(p+1)%5:"rgba("===u.substr(-5)&&(p=1),c===r[a]||r.length<=a?f+=c:(f&&(h.push(f),f=""),o=parseFloat(r[a]),h.push(o),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:o,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-o)||0,f:0,r:p&&4>p}),d+=c.length;return(f+=e.substr(d))&&h.push(f),h.setRatio=D,h},F=function(t,e,i,n,r,s,o,a){var l,u="get"===i?t[e]:i,c=_typeof(t[e]),h="string"==typeof n&&"="===n.charAt(1),d={t:t,p:e,s:u,f:"function"===c,pg:0,n:r||e,r:s,pr:0,c:h?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-u||0};return"number"!==c&&("function"===c&&"get"===i&&(l=e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),d.s=u=o?t[l](o):t[l]()),"string"==typeof u&&(o||isNaN(u))?(d.fp=o,d={t:M(u,n,a||O.defaultStringFilter,d),p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0}):h||(d.s=parseFloat(u),d.c=parseFloat(n)-d.s||0)),d.c?((d._next=this._firstPT)&&(d._next._prev=d),this._firstPT=d,d):void 0},N=O._internals={isArray:f,isSelector:A,lazyTweens:R,blobDif:M},z=O._plugins={},j=N.tweenLookup={},B=0,H=N.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1},q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},V=E._rootFramesTimeline=new P,U=E._rootTimeline=new P,Y=30,X=N.lazyRender=function(){var t,e=R.length;for(I={};--e>-1;)(t=R[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);R.length=0};U._startTime=o.time,V._startTime=o.frame,U._active=V._active=!0,setTimeout(X,1),E._updateRoot=O.render=function(){var t,e,i;if(R.length&&X(),U.render((o.time-U._startTime)*U._timeScale,!1,!1),V.render((o.frame-V._startTime)*V._timeScale,!1,!1),R.length&&X(),o.frame>=Y){for(i in Y=o.frame+(parseInt(O.autoSleep,10)||120),j){for(t=(e=j[i].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete j[i]}if((!(i=U._first)||i._paused)&&O.autoSleep&&!V._first&&1===o._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||o.sleep()}}},o.addEventListener("tick",E._updateRoot);
1var W=function(t,e,i){var n,r,s=t._gsTweenID;if(j[s||(t._gsTweenID=s="t"+B++)]||(j[s]={target:t,tweens:[]}),e&&((n=j[s].tweens)[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return j[s].tweens},G=function(t,e,i,n){var r,s,o=t.vars.onOverwrite;return o&&(r=o(t,e,i,n)),(o=O.onOverwrite)&&(s=o(t,e,i,n)),!1!==r&&!1!==s},Q=function(t,e,i,n,r){var s,o,a,l;if(1===n||n>=4){for(l=r.length,s=0;l>s;s++)if((a=r[s])!==e)a._gc||a._kill(null,t,e)&&(o=!0);else if(5===n)break;return o}var u,h=e._startTime+c,d=[],f=0,p=0===e._duration;for(s=r.length;--s>-1;)(a=r[s])===e||a._gc||a._paused||(a._timeline!==e._timeline?(u=u||K(e,0,p),0===K(a,u,p)&&(d[f++]=a)):a._startTime<=h&&a._startTime+a.totalDuration()/a._timeScale>h&&((p||!a._initted)&&h-a._startTime<=2e-10||(d[f++]=a)));for(s=f;--s>-1;)if(a=d[s],2===n&&a._kill(i,t,e)&&(o=!0),2!==n||!a._firstPT&&a._initted){if(2!==n&&!G(a,e))continue;a._enabled(!1,!1)&&(o=!0)}return o},K=function(t,e,i){for(var n=t._timeline,r=n._timeScale,s=t._startTime;n._timeline;){if(s+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return(s/=r)>e?s-e:i&&s===e||!t._initted&&2*c>s-e?c:(s+=t.totalDuration()/t._timeScale/r)>e+c?0:s-e-c};s._init=function(){var t,e,i,n,r,s=this.vars,o=this._overwrittenProps,a=this._duration,l=!!s.immediateRender,u=s.ease;if(s.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={},s.startAt)r[n]=s.startAt[n];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=l&&!1!==s.lazy,r.startAt=r.delay=null,this._startAt=O.to(this.target,0,r),l)if(this._time>0)this._startAt=null;else if(0!==a)return}else if(s.runBackwards&&0!==a)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(n in 0!==this._time&&(l=!1),i={},s)H[n]&&"autoCSS"!==n||(i[n]=s[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&!1!==s.lazy,i.immediateRender=l,this._startAt=O.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof b?u:"function"==typeof u?new b(u,s.easeParams):w[u]||O.defaultEase:O.defaultEase,s.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,s.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o);if(e&&O._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),s.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=s.onUpdate,this._initted=!0},s._initProps=function(e,i,n,r){var s,o,a,l,u,c;if(null==e)return!1;for(s in I[e._gsTweenID]&&X(),this.vars.css||e.style&&e!==t&&e.nodeType&&z.css&&!1!==this.vars.autoCSS&&function(t,e){var i,n={};for(i in t)H[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!z[i]||z[i]&&z[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n}(this.vars,e),this.vars)if(c=this.vars[s],H[s])c&&(c instanceof Array||c.push&&f(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[s]=c=this._swapSelfInParams(c,this));else if(z[s]&&(l=new z[s])._onInitTween(e,this.vars[s],this)){for(this._firstPT=u={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:l._priority},o=l._overwriteProps.length;--o>-1;)i[l._overwriteProps[o]]=this._firstPT;(l._priority||l._onInitAllProps)&&(a=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else i[s]=F.call(this,e,s,"get",c,s,0,null,this.vars.stringFilter);return r&&this._kill(r,e)?this._initProps(e,i,n,r):this._overwrite>1&&this._firstPT&&n.length>1&&Q(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(I[e._gsTweenID]=!0),a)},s.render=function(t,e,i){var n,r,s,o,a=this._time,l=this._duration,u=this._rawPrevTime;if(t>=l-1e-7)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>u||0>=t&&t>=-1e-7||u===c&&"isPause"!==this.data)&&u!==t&&(i=!0,u>c&&(r="onReverseComplete")),this._rawPrevTime=o=!e||t||u===t?t:c);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&u>0)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(u>=0&&(u!==c||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=o=!e||t||u===t?t:c)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var h=t/l,d=this._easeType,f=this._easePower;(1===d||3===d&&h>
1=.5)&&(h=1-h),3===d&&(h*=2),1===f?h*=h:2===f?h*=h*h:3===f?h*=h*h*h:4===f&&(h*=h*h*h*h),this.ratio=1===d?1-h:2===d?h:.5>t/l?h/2:1-h/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==a||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=a,this._rawPrevTime=u,R.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&t>=0&&(this._active=!0),0===a&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&-1e-4!==t&&this._startAt.render(t,e,i),e||(this._time!==a||n)&&this._callback("onUpdate")),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&this._rawPrevTime===c&&o!==c&&(this._rawPrevTime=0))}},s._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:O.selector(e)||e;var n,r,s,o,a,l,u,c,h,d=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((f(e)||A(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){a=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(u=t||a,c=t!==r&&"all"!==r&&t!==a&&("object"!=(void 0===t?"undefined":_typeof(t))||!t._tempKill),i&&(O.onOverwrite||this.vars.onOverwrite)){for(s in u)a[s]&&(h||(h=[]),h.push(s));if((h||!t)&&!G(this,i,e,h))return!1}for(s in u)(o=a[s])&&(d&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,l=!0),o.pg&&o.t._kill(u)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[s]),c&&(r[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},s.invalidate=function(){return this._notifyPluginsOfEnabled&&O._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],E.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-c,this.render(-this._delay)),this},s._enabled=function(t,e){if(a||o.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=W(n[i],this,!0);else this._siblings=W(this.target,this,!0)}return E.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&O._onPluginEvent(t?"_onEnable":"_onDisable",this)},O.to=function(t,e,i){return new O(t,e,i)},O.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new O(t,e,i)},O.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new O(t,e,n)},O.delayedCall=function(t,e,i,n,r){return new O(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},O.set=function(t,e){return new O(t,0,e)},O.getTweensOf=function(t,e){if(null==t)return[];var i,n,r,s;if(t="string"!=typeof t?t:O.selector(t)||t,(f(t)||A(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(O.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(s=n[i],r=i;--r>-1;)s===n[r]&&n.splice(i,1)}else for(i=(n=W(t).concat()).length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n}
1,O.killTweensOf=O.killDelayedCallsTo=function(t,e,i){"object"==(void 0===e?"undefined":_typeof(e))&&(i=e,e=!1);for(var n=O.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var Z=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=Z.prototype},!0);if(s=Z.prototype,Z.version="1.18.0",Z.API=2,s._firstPT=null,s._addTween=F,s.setRatio=D,s._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},s._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},O._onPluginEvent=function(t,e){var i,n,r,s,o,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(o=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:s)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:s=a,a=o}a=e._firstPT=r}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},Z.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===Z.API&&(z[(new t[e])._propName]=t[e]);return!0},g.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},o=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){Z.call(this,i,n),this._overwriteProps=r||[]},!0===t.global),a=o.prototype=new Z(i);for(e in a.constructor=o,o.API=t.API,s)"function"==typeof t[e]&&(a[s[e]]=t[e]);return o.version=t.version,Z.activate([o]),o},n=t._gsQueue){for(r=0;r<n.length;r++)n[r]();for(s in p)p[s].func||t.console.log("GSAP encountered missing dependency: com.greensock."+s)}a=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window),((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,n,r=this.vars;for(n in r)i=r[n],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,s=i._internals,o=n._internals={},a=s.isSelector,l=s.isArray,u=s.lazyTweens,c=s.lazyRender,h=_gsScope._gsDefine.globals,d=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r.call(e[i],i):r[i%r.length];delete t.cycle},p=o.pauseCallback=function(){},m=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},g=n.prototype=new e;return n.version="1.18.2",g.constructor=n,g.kill()._gc=g._forcingPlayhead=g._hasPause=!1,g.to=function(t,e,n,r){var s=n.repeat&&h.TweenMax||i;return e?this.add(new s(t,e,n),r):this.set(t,n,r)},g.from=function(t,e,n,r){return this.add((n.repeat&&h.TweenMax||i).from(t,e,n),r)},g.fromTo=function(t,e,n,r,s){var o=r.repeat&&h.TweenMax||i;return e?this.add(o.fromTo(t,e,n,r),s):this.set(t,r,s)},g.staggerTo=function(t,e,r,s,o,l,u,c){var h,p,g=new n({onComplete:l,onCompleteParams:u,callbackScope:c,smoothChildTiming:this.smoothChildTiming}),v=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),a(t=t||[])&&(t=m(t)),0>(s=s||0)&&((t=m(t)).reverse(),s*=-1),p=0;p<t.length;p++)(h=d(r)).startAt&&(h.startAt=d(h.startAt),h.startAt.cycle&&f(h.startAt,t,p)),v&&f(h,t,p),g.to(t[p],e,h,p*s);return this.add(g,o)},g.staggerFrom=function(t,e,i,n,r,s,o,a){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,
1i,n,r,s,o,a)},g.staggerFromTo=function(t,e,i,n,r,s,o,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,s,o,a,l)},g.call=function(t,e,n,r){return this.add(i.delayedCall(0,t,e,n),r)},g.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new i(t,0,e),n)},n.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var r,s,o=new n(t),a=o._timeline;for(null==e&&(e=!0),a._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=a._time,r=a._first;r;)s=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||o.add(r,r._startTime-r._delay),r=s;return a.add(o,0),o},g.add=function(r,s,o,a){var u,c,h,d,f,p;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&l(r)){for(o=o||"normal",a=a||0,u=s,c=r.length,h=0;c>h;h++)l(d=r[h])&&(d=new n({tweens:d})),this.add(d,u),"string"!=typeof d&&"function"!=typeof d&&("sequence"===o?u=d._startTime+d.totalDuration()/d._timeScale:"start"===o&&(d._startTime-=d.delay())),u+=a;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,s);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(p=(f=this).rawTime()>r._startTime;f._timeline;)p&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},g.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var n=e.length;--n>-1;)this.remove(e[n]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},g._remove=function(t,i){e.prototype._remove.call(this,t,i);var n=this._last;return n?this._time>n._startTime+n._totalDuration/n._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},g.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},g.insert=g.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},g.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},g.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},g.addPause=function(t,e,n,r){var s=i.delayedCall(0,p,n,r||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},g.removeLabel=function(t){return delete this._labels[t],this},g.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},g._parseTimeOrLabel=function(e,i,n,r){var s;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&l(r)))for(s=r.length;--s>-1;)r[s]instanceof t&&r[s].timeline===this&&this.remove(r[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(-1===(s=e.indexOf("=")))return null==this._labels[e]?n?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,n):this.duration()}return Number(e)+i},g.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},g.stop=function(){return this.paused(!0)}
vendor: 4,150 bytes, line 1
1,g.gotoAndPlay=function(t,e){return this.play(t,e)},g.gotoAndStop=function(t,e){return this.pause(t,e)},g.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,o,a,l,h,d,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,m=this._startTime,g=this._timeScale,v=this._paused;if(t>=f-1e-7)this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(s=!0,a="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>r&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=f+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(a="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,a="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=p)for(n=this._first;n&&n._startTime<=t&&!h;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(h=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!h;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(h=n),n=n._prev;h&&(this._time=t=h._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||l||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&0!==this._time&&(e||this._callback("onStart")),(d=this._time)>=p)for(n=this._first;n&&(o=n._next,d===this._time&&(!this._paused||v));)(n._active||n._startTime<=d&&!n._paused&&!n._gc)&&(h===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=o;else for(n=this._last;n&&(o=n._prev,d===this._time&&(!this._paused||v));){if(n._active||n._startTime<=p&&!n._paused&&!n._gc){if(h===n){for(h=n._prev;h&&h.endTime()>this._time;)h.render(h._reversed?h.totalDuration()-(t-h._startTime)*h._timeScale:(t-h._startTime)*h._timeScale,e,i),h=h._prev;h=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=o}this._onUpdate&&(e||(u.length&&c(),this._callback("onUpdate"))),a&&(this._gc||(m===this._startTime||g!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(s&&(u.length&&c(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},g._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},g.getChildren=function(t,e,n,r){r=r||-9999999999;for(var s=[],o=this._first,a=0;o;)o._startTime<r||(o instanceof i?!1!==e&&(s[a++]=o):(!1!==n&&(s[a++]=o),!1!==t&&(a=(s=s.concat(o.getChildren(!0,e,n))).length))),o=o._next;return s},g.getTweensOf=function(t,e){var n,r,s=this._gc,o=[],a=0;for(s&&this._enabled(!0,!0),r=(n=i.getTweensOf(t)).length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(o[a++]=n[r]);return s&&this._enabled(!1,!0),o},g.recent=function(){return this._recent},g._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},g.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,s=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return this._uncache(!0)},g._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},g.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;
1)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},g.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},g._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},g.totalTime=function(e,i,n){this._forcingPlayhead=!0;var r=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},g.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},g.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):s=r._startTime,r._startTime<0&&!r._paused&&(n-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),(i=r._startTime+r._totalDuration/r._timeScale)>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},g.paused=function(e){if(!e)for(var i=this._first,n=this._time;i;)i._startTime===n&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},g.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},g.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},n},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope).TimelineLite};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=e())}();_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,n,r,s,o=function e(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=e.prototype.setRatio},a=_gsScope._gsDefine.globals,l={},u=o.prototype=new t("css");u.constructor=o,o.version="1.18.2",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",o.defaultSmoothOrigin=!0,o.suffixMap={top:u="px",right:u,bottom:u,left:u,width:u,height:u,fontSize:u,padding:u,margin:u,perspective:u,lineHeight:""};var c,h,d,f,p,m,g=/(?:\d|\-\d|\.\d|\-\.\d)+/g,v=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,_=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,y=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,b=/(?:\d|\-|\+|=|#|\.)*/g,w=/opacity *= *([^)]*)/i,x=/opacity:([^;]*)/i,C=/alpha\(opacity *=.+?\)/i,T=/^(rgb|hsl)/,$=/([A-Z])/g,S=/-([a-z])/gi,k=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(t,e){return e.toUpperCase()},P=/(?:Left|Right|Width)/i,O=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,R=/,(?=[^\)]*(?:\(|$))/gi,I=Math.PI/180,L=180/Math.PI,D={},M=document,F=function(t){return M.createElementNS?M.createElementNS("http://www.w3.org/1999/xhtml",t):M.createElement(t)},N=F("div"),z=F("img"),j=o._internals={_specialProps:l},B=navigator.userAgent,H=function(){var t=B.indexOf("Android"),e=F("a");return d=-1!==B.indexOf("Safari")&&-1===B.indexOf("Chrome")&&(-1===t||Number(B.substr(t+8,1))>3),p=d&&Number(B.substr(B.indexOf("Version/")+8,1))<6,f=-1!==B.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(B)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(B))&&(m=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),q=function(t){return w.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},V=function(t){window.console&&console.log(t)},U="",Y="",X=function(t,e){var i,n,r=(e=e||N).style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===r[i[n]+t];);return n>=0?(U="-"+(Y=3===n?"ms":i[n]).toLowerCase()+"-",Y+t):null},W=M.defaultView?M.defaultView.getComputedStyle:function(){}
1,G=o.getStyle=function(t,e,i,n,r){var s;return H||"opacity"!==e?(!n&&t.style[e]?s=t.style[e]:(i=i||W(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace($,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==r||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:r):q(t)},Q=j.convertToPixels=function(t,i,n,r,s){if("px"===r||!r)return n;if("auto"===r||!n)return 0;var a,l,u,c=P.test(i),h=t,d=N.style,f=0>n;if(f&&(n=-n),"%"===r&&-1!==i.indexOf("border"))a=n/100*(c?t.clientWidth:t.clientHeight);else{if(d.cssText="border:0 solid red;position:"+G(t,"position")+";line-height:0;","%"!==r&&h.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)d[c?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(l=(h=t.parentNode||M.body)._gsCache,u=e.ticker.frame,l&&c&&l.time===u)return l.width*n/100;d[c?"width":"height"]=n+r}h.appendChild(N),a=parseFloat(N[c?"offsetWidth":"offsetHeight"]),h.removeChild(N),c&&"%"===r&&!1!==o.cacheWidths&&((l=h._gsCache=h._gsCache||{}).time=u,l.width=a/n*100),0!==a||s||(a=Q(t,i,n,r,!0))}return f?-a:a},K=j.calculateOffset=function(t,e,i){if("absolute"!==G(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=G(t,"margin"+n,i);return t["offset"+n]-(Q(t,e,parseFloat(r),r.replace(b,""))||0)},Z=function(t,e){var i,n,r,s={};if(e=e||W(t,null))if(i=e.length)for(;--i>-1;)(-1===(r=e[i]).indexOf("-transform")||$t===r)&&(s[r.replace(S,E)]=e.getPropertyValue(r));else for(i in e)(-1===i.indexOf("Transform")||Tt===i)&&(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(S,E)]=e[i]);return H||(s.opacity=q(t)),n=Ft(t,e,!1),s.rotation=n.rotation,s.skewX=n.skewX,s.scaleX=n.scaleX,s.scaleY=n.scaleY,s.x=n.x,s.y=n.y,kt&&(s.z=n.z,s.rotationX=n.rotationX,s.rotationY=n.rotationY,s.scaleZ=n.scaleZ),s.filters&&delete s.filters,s},J=function(t,e,i,n,r){var s,o,a,l={},u=t.style;for(o in i)"cssText"!==o&&"length"!==o&&isNaN(o)&&(e[o]!==(s=i[o])||r&&r[o])&&-1===o.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[o]="auto"!==s||"left"!==o&&"top"!==o?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[o]||""===e[o].replace(y,"")?s:0:K(t,o),void 0!==u[o]&&(a=new pt(u,o,u[o],a)));if(n)for(o in n)"className"!==o&&(l[o]=n[o]);return{difs:l,firstMPT:a}},tt={width:["Left","Right"],height:["Top","Bottom"]},et=["marginLeft","marginRight","marginTop","marginBottom"],it=function(t,e,i){var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=tt[e],s=r.length;for(i=i||W(t,null);--s>-1;)n-=parseFloat(G(t,"padding"+r[s],i,!0))||0,n-=parseFloat(G(t,"border"+r[s]+"Width",i,!0))||0;return n},nt=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],r=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==r?r="center"===n?"50%":"0":"center"===r&&(r="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),t=n+" "+r+(i.length>2?" "+i[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==r.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===r.charAt(1),e.ox=parseFloat(n.replace(y,"")),e.oy=parseFloat(r.replace(y,"")),e.v=t),e||t},rt=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},st=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)},ot=function(t,e,i,n){var r,s,o,a,l;return null==t?a=e:"number"==typeof t?a=t:(r=360,s=t.split("_"),o=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:L)-(l?0:e),s.length&&(n&&(n[i]=e+o),-1!==t.indexOf("short")&&((o%=r)!==o%(r/2)&&(o=0>o?o+r:o-r)),-1!==t.indexOf("_cw")&&0>o?o=(o+9999999999*r)%r-(o/r|0)*r:-1!==t.indexOf("ccw")&&o>0&&(o=(o-9999999999*r)%r-(o/r|0)*r)),a=e+o),1e-6>a&&a>-1e-6&&(a=0),a},at={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]}
1,lt=function(t,e,i){return 255*(1>6*(t=0>t?t+1:t>1?t-1:t)?e+(i-e)*t*6:.5>t?i:2>3*t?e+(i-e)*(2/3-t)*6:e)+.5|0},ut=o.parseColor=function(t,e){var i,n,r,s,o,a,l,u,c,h,d;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),at[t])i=at[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(n=t.charAt(1))+n+(r=t.charAt(2))+r+(s=t.charAt(3))+s),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=d=t.match(g),e){if(-1!==t.indexOf("="))return t.match(v)}else o=Number(i[0])%360/360,a=Number(i[1])/100,n=2*(l=Number(i[2])/100)-(r=.5>=l?l*(a+1):l+a-l*a),i.length>3&&(i[3]=Number(t[3])),i[0]=lt(o+1/3,n,r),i[1]=lt(o,n,r),i[2]=lt(o-1/3,n,r);else i=t.match(g)||at.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=at.black;return e&&!d&&(n=i[0]/255,r=i[1]/255,s=i[2]/255,l=((u=Math.max(n,r,s))+(c=Math.min(n,r,s)))/2,u===c?o=a=0:(h=u-c,a=l>.5?h/(2-u-c):h/(u+c),o=u===n?(r-s)/h+(s>r?6:0):u===r?(s-n)/h+2:(n-r)/h+4,o*=60),i[0]=o+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},ct=function(t,e){var i,n,r,s=t.match(ht)||[],o=0,a=s.length?"":t;for(i=0;i<s.length;i++)n=s[i],o+=(r=t.substr(o,t.indexOf(n,o)-o)).length+n.length,3===(n=ut(n,e)).length&&n.push(1),a+=r+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return a},ht="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(u in at)ht+="|"+u+"\\b";ht=new RegExp(ht+")","gi"),o.colorStringFilter=function(t){var e,i=t[0]+t[1];ht.lastIndex=0,ht.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=ct(t[0],e),t[1]=ct(t[1],e))},e.defaultStringFilter||(e.defaultStringFilter=o.colorStringFilter);var dt=function(t,e,i,n){if(null==t)return function(t){return t};var r,s=e?(t.match(ht)||[""])[0]:"",o=t.split(s).join("").match(_)||[],a=t.substr(0,t.indexOf(o[0])),l=")"===t.charAt(t.length-1)?")":"",u=-1!==t.indexOf(" ")?" ":",",c=o.length,h=c>0?o[0].replace(g,""):"";return c?r=e?function(t){var e,d,f,p;if("number"==typeof t)t+=h;else if(n&&R.test(t)){for(p=t.replace(R,"|").split("|"),f=0;f<p.length;f++)p[f]=r(p[f]);return p.join(",")}if(e=(t.match(ht)||[s])[0],f=(d=t.split(e).join("").match(_)||[]).length,c>f--)for(;++f<c;)d[f]=i?d[(f-1)/2|0]:o[f];return a+d.join(u)+u+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,d;
1if("number"==typeof t)t+=h;else if(n&&R.test(t)){for(s=t.replace(R,"|").split("|"),d=0;d<s.length;d++)s[d]=r(s[d]);return s.join(",")}if(d=(e=t.match(_)||[]).length,c>d--)for(;++d<c;)e[d]=i?e[(d-1)/2|0]:o[d];return a+e.join(u)+l}:function(t){return t}},ft=function(t){return t=t.split(","),function(e,i,n,r,s,o,a){var l,u=(i+"").split(" ");for(a={},l=0;4>l;l++)a[t[l]]=u[l]=u[l]||u[(l-1)/2>>0];return r.parse(e,a,s,o)}},pt=(j._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,r,s,o=this.data,a=o.proxy,l=o.firstMPT;l;)e=a[l.v],l.r?e=Math.round(e):1e-6>e&&e>-1e-6&&(e=0),l.t[l.p]=e,l=l._next;if(o.autoRotate&&(o.autoRotate.rotation=a.rotation),1===t||0===t)for(l=o.firstMPT,s=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i[s]=r}}else i[s]=i.s+i.xs0;l=l._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),mt=(j._parseToProxy=function(t,e,i,n,r,s){var o,a,l,u,c,h=n,d={},f={},p=i._transform,m=D;for(i._transform=null,D=e,n=c=i.parse(t,e,n,r),D=m,s&&(i._transform=p,h&&(h._prev=null,h._prev&&(h._prev._next=null)));n&&n!==h;){if(n.type<=1&&(f[a=n.p]=n.s+n.c,d[a]=n.s,s||(u=new pt(n,"s",a,u,n.r),n.c=0),1===n.type))for(o=n.l;--o>0;)l="xn"+o,f[a=n.p+"_"+l]=n.data[l],d[a]=n[l],s||(u=new pt(n,l,a,u,n.rxp[l]));n=n._next}return{proxy:d,end:f,firstMPT:u,pt:c}},j.CSSPropTween=function(t,e,n,r,o,a,l,u,c,h,d){this.t=t,this.p=e,this.s=n,this.c=r,this.n=l||e,t instanceof mt||s.push(this.n),this.r=u,this.type=a||0,c&&(this.pr=c,i=!0),this.b=void 0===h?n:h,this.e=void 0===d?n+r:d,o&&(this._next=o,o._prev=this)}),gt=function(t,e,i,n,r,s){var o=new mt(t,e,i,n-i,r,-1,s);return o.b=i,o.e=o.xs0=n,o},vt=o.parseComplex=function(t,e,i,n,r,s,o,a,l,u){i=i||s||"",o=new mt(t,e,0,0,o,u?2:1,null,!1,a,i,n),n+="";var h,d,f,p,m,_,y,b,w,x,C,T,$,S=i.split(", ").join(",").split(" "),k=n.split(", ").join(",").split(" "),E=S.length,P=!1!==c;for((-1!==n.indexOf(",")||-1!==i.indexOf(","))&&(S=S.join(" ").replace(R,", ").split(" "),k=k.join(" ").replace(R,", ").split(" "),E=S.length),E!==k.length&&(E=(S=(s||"").split(" ")).length),o.plugin=l,o.setRatio=u,ht.lastIndex=0,h=0;E>h;h++)if(p=S[h],m=k[h],(b=parseFloat(p))||0===b)o.appendXtra("",b,rt(m,b),m.replace(v,""),P&&-1!==m.indexOf("px"),!0);else if(r&&ht.test(p))T=","===m.charAt(m.length-1)?"),":")",$=-1!==m.indexOf("hsl")&&H,p=ut(p,$),m=ut(m,$),(w=p.length+m.length>6)&&!H&&0===m[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(k[h]).join("transparent")):(H||(w=!1),$?o.appendXtra(w?"hsla(":"hsl(",p[0],rt(m[0],p[0]),",",!1,!0).appendXtra("",p[1],rt(m[1],p[1]),"%,",!1).appendXtra("",p[2],rt(m[2],p[2]),w?"%,":"%"+T,!1):o.appendXtra(w?"rgba(":"rgb(",p[0],m[0]-p[0],",",!0,!0).appendXtra("",p[1],m[1]-p[1],",",!0).appendXtra("",p[2],m[2]-p[2],w?",":T,!0),w&&(p=p.length<4?1:p[3],o.appendXtra("",p,(m.length<4?1:m[3])-p,T,!1))),ht.lastIndex=0;else if(_=p.match(g)){if(!(y=m.match(v))||y.length!==_.length)return o;for(f=0,d=0;d<_.length;d++)C=_[d],x=p.indexOf(C,f),o.appendXtra(p.substr(f,x-f),Number(C),rt(y[d],C),"",P&&"px"===p.substr(x+C.length,2),0===d),f=x+C.length;o["xs"+o.l]+=p.substr(f)}else o["xs"+o.l]+=o.l?" "+m:m;if(-1!==n.indexOf("=")&&o.data){for(T=o.xs0+o.data.s,h=1;h<o.l;h++)T+=o["xs"+h]+o.data["xn"+h];o.e=T+o["xs"+h]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},_t=9;for((u=mt.prototype).l=u.pr=0;--_t>0;)u["xn"+_t]=0,u["xs"+_t]="";u.xs0="",u._next=u._prev=u.xfirst=u.data=u.plugin=u.setRatio=u.rxp=null,u.appendXtra=function(t,e,i,n,r,s){var o=this,a=o.l;return o["xs"+a]+=s&&a?" "+t:t||"",i||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=n||"",a>0?(o.data["xn"+a]=e+i,o.rxp["xn"+a]=r,o["xn"+a]=e,o.plugin||(o.xfirst=new mt(o,"xn"+a,e,i,o.xfirst||o,0,o.n,r,o.pr),o.xfirst.xs0=0),o):(o.data={s:e+i},o.rxp={},o.s=e,o.c=i,o.r=r,o)):(o["xs"+a]+=e+(n||""),o)};var yt=function(t,e){e=e||{},this.p=e.prefix&&X(t)||t,l[t]=l[this.p]=this,this.format=e.formatter||dt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0}
1,bt=j._registerComplexSpecialProp=function(t,e,i){"object"!=(void 0===e?"undefined":_typeof(e))&&(e={parser:i});var n,r=t.split(","),s=e.defaultValue;for(i=i||[s],n=0;n<r.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||s,new yt(r[n],e)},wt=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";bt(t,{parser:function(t,i,n,r,s,o,u){var c=a.com.greensock.plugins[e];return c?(c._cssRegister(),l[n].parse(t,i,n,r,s,o,u)):(V("Error: "+e+" js file not loaded."),s)}})}};(u=yt.prototype).parseComplex=function(t,e,i,n,r,s){var o,a,l,u,c,h,d=this.keyword;if(this.multi&&(R.test(i)||R.test(e)?(a=e.replace(R,"|").split("|"),l=i.replace(R,"|").split("|")):d&&(a=[e],l=[i])),l){for(u=l.length>a.length?l.length:a.length,o=0;u>o;o++)e=a[o]=a[o]||this.dflt,i=l[o]=l[o]||this.dflt,d&&((c=e.indexOf(d))!==(h=i.indexOf(d))&&(-1===h?a[o]=a[o].split(d).join(""):-1===c&&(a[o]+=" "+d)));e=a.join(", "),i=l.join(", ")}return vt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,r,s)},u.parse=function(t,e,i,n,s,o,a){return this.parseComplex(t.style,this.format(G(t,this.p,r,!1,this.dflt)),this.format(e),s,o)},o.registerSpecialProp=function(t,e,i){bt(t,{parser:function(t,n,r,s,o,a,l){var u=new mt(t,r,0,0,o,2,r,!1,i);return u.plugin=a,u.setRatio=e(t,n,s._tween,r),u},priority:i})},o.useSVGTransformAttr=d||f;var xt,Ct="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Tt=X("transform"),$t=U+"transform",St=X("transformOrigin"),kt=null!==X("perspective"),Et=j.Transform=function(){this.perspective=parseFloat(o.defaultTransformPerspective)||0,this.force3D=!(!1===o.defaultForce3D||!kt)&&(o.defaultForce3D||"auto")},Pt=window.SVGElement,Ot=function(t,e,i){var n,r=M.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(n in i)r.setAttributeNS(null,n.replace(s,"$1-$2").toLowerCase(),i[n]);return e.appendChild(r),r},At=M.documentElement,Rt=function(){var t,e,i,n=m||/Android/i.test(B)&&!window.chrome;return M.createElementNS&&!n&&(t=Ot("svg",At),i=(e=Ot("rect",t,{width:100,height:50,x:100})).getBoundingClientRect().width,e.style[St]="50% 50%",e.style[Tt]="scaleX(0.5)",n=i===e.getBoundingClientRect().width&&!(f&&kt),At.removeChild(t)),n}(),It=function(t,e,i,n,r){var s,a,l,u,c,h,d,f,p,m,g,v,_,y,b=t._gsTransform,w=Mt(t,!0);b&&(_=b.xOrigin,y=b.yOrigin),(!n||(s=n.split(" ")).length<2)&&(d=t.getBBox(),s=[(-1!==(e=nt(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*d.width:parseFloat(e[0]))+d.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*d.height:parseFloat(e[1]))+d.y]),i.xOrigin=u=parseFloat(s[0]),i.yOrigin=c=parseFloat(s[1]),n&&w!==Dt&&(h=w[0],d=w[1],f=w[2],p=w[3],m=w[4],g=w[5],a=u*(p/(v=h*p-d*f))+c*(-f/v)+(f*g-p*m)/v,l=u*(-d/v)+c*(h/v)-(h*g-d*m)/v,u=i.xOrigin=s[0]=a,c=i.yOrigin=s[1]=l),b&&(r||!1!==r&&!1!==o.defaultSmoothOrigin?(a=u-_,l=c-y,b.xOffset+=a*w[0]+l*w[2]-a,b.yOffset+=a*w[1]+l*w[3]-l):b.xOffset=b.yOffset=0),t.setAttribute("data-svg-origin",s.join(" "))},Lt=function(t){return!!(Pt&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},Dt=[1,0,0,1,0,0],Mt=function(t,e){var i,n,r,s,o,a=t._gsTransform||new Et;if(Tt?n=G(t,$t,null,!0):t.currentStyle&&(n=(n=t.currentStyle.filter.match(O))&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),a.x||0,a.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,(a.svg||t.getBBox&&Lt(t))&&(i&&-1!==(t.style[Tt]+"").indexOf("matrix")&&(n=t.style[Tt],i=0),r=t.getAttribute("transform"),i&&r&&(-1!==r.indexOf("matrix")?(n=r,i=0):-1!==r.indexOf("translate")&&(n="matrix(1,0,0,1,"+r.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Dt;for(r=(n||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],_t=r.length;--_t>-1;)s=Number(r[_t]),r[_t]=(o=s-(s|=0))?(1e5*o+(0>o?-.5:.5)|0)/1e5+s:s;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},Ft=j.getTransform=function(t,i,n,s){if(t._gsTransform&&n&&!s)return t._gsTransform;var a,l,u,c,h,d,f=n&&t._gsTransform||new Et,p=f.scaleX<0,m=1e5,g=kt&&(parseFloat(G(t,St,i,!1,"0 0 0").split(" ")[2])||f.zOrigin)||0,v=parseFloat(o.defaultTransformPerspective)||0;if(f.svg=!(!t.getBBox||!Lt(t)),f.svg&&(It(t,G(t,St,r,!1,"50% 50%")+"",f,t.getAttribute("data-svg-origin")),xt=o.useSVGTransformAttr||Rt),(a=Mt(t))!==Dt){if(16===a.length){var _,y,b,w,x,C=a[0],T=a[1],$=a[2],S=a[3],k=a[4],E=a[5],P=a[6],O=a[7],A=a[8],R=a[9],I=a[10],D=a[12],M=a[13],F=a[14],N=a[11],z=Math.atan2(P,I);f.zOrigin&&(D=A*(F=-f.zOrigin)-a[12],M=R*F-a[13],F=I*F+f.zOrigin-a[14]),f.rotationX=z*L,z&&(_=k*(w=Math.cos(-z))+A*(x=Math.sin(-z)),y=E*w+R*x,b=P*w+I*x,A=k*-x+A*w,R=E*-x+R*w,I=P*-x+I*w,N=O*-x+N*w,k=_,E=y,P=b),z=Math.atan2(-$,I),f.rotationY=z*L,z&&(y=T*(w=Math.cos(-z))-R*(x=Math.sin(-z)),b=$*w-I*x,R=T*x+R*w,I=$*x+I*w,N=S*x+N*w,C=_=C*w-A*x,T=y,$=b),z=Math.atan2(T,C),f.rotation=z*L,z&&(C=C*(w=Math.cos(-z))+k*(x=Math.sin(-z)),y=T*w+E*x,E=T*-x+E*w,P=$*-x+P*w,T=y),f.rotationX&&Math.abs(f.rotationX)+Math.abs(f.rotation)>359.9&&(f.rotationX=f.rotation=0,f.rotationY=180-f.rotationY),f.scaleX=(Math.sqrt(C*C+T*T)*m+.5|0)/m,f.scaleY=(Math.sqrt(E*E+R*R)*m+.5|0)/m,f.scaleZ=(Math.sqrt(P*P+I*I)*m+.5|0)/m,f.skewX=0,f.perspective=N?1/(0>N?-N:N):0,f.x=D,f.y=M,f.z=F,f.svg&&(f.x-=f.xOrigin-(f.xOrigin*C-f.yOrigin*k),f.y-=f.yOrigin-(f.yOrigin*T-f.xOrigin*E))}else if((!kt||s||!a.length||f.x!==a[4]||f.y!==a[5]||!f.rotationX&&!f.rotationY)&&(void 0===f.x||"none"!==G(t,"display",i))){var j=a.length>=6,B=j?a[0]:1,H=a[1]||0,q=a[2]||0,V=j?a[3]:1;f.x=a[4]||0,f.y=a[5]||0,u=Math.sqrt(B*B+H*H),c=Math.sqrt(V*V+q*q),h=B||H?Math.atan2(H,B)*L:f.rotation||0,d=q||V?Math.atan2(q,V)*L+h:f.skewX||0,Math.abs(d)>90&&Math.abs(d)<270&&(p?(u*=-1,d+=0>=h?180:-180,h+=0>=h?180:-180):(c*=-1,d+=0>=d?180:-180)),f.scaleX=u,f.scaleY=c,f.rotation=h,f.skewX=d,kt&&(f.rotationX=f.rotationY=f.z=0,f.perspective=v,f.scaleZ=1),f.svg&&(f.x-=f.xOrigin-(f.xOrigin*B+f.yOrigin*q),f.y-=f.yOrigin-(f.xOrigin*H+f.yOrigin*V))}for(l in f.zOrigin=g,f)f[l]<2e-5&&f[l]>-2e-5&&(f[l]=0)}return n&&(t._gsTransform=f,f.svg&&(xt&&t.style[Tt]?e.delayedCall(.001,function(){Bt(t.style,Tt)}):!xt&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),f},Nt=function(t){var e,i,n=this.data,r=-n.rotation*I,s=r+n.skewX*I,o=1e5,a=(Math.cos(r)*n.scaleX*o|0)/o,l=(Math.sin(r)*n.scaleX*o|0)/o,u=(Math.sin(s)*-n.scaleY*o|0)/o,c=(Math.cos(s)*n.scaleY*o|0)/o,h=this.t.style,d=this.t.currentStyle;if(d){i=l,l=-u,u=-i,e=d.filter,h.filter="";var f,p,g=this.t.offsetWidth,v=this.t.offsetHeight,_="absolute"!==d.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+u+", M22="+c,x=n.x+g*n.xPercent/100,C=n.y+v*n.yPercent/100;if(null!=n.ox&&(x+=(f=(n.oxp?g*n.ox*.01:n.ox)-g/2)-(f*a+(p=(n.oyp?v*n.oy*.01:n.oy)-v/2)*l),C+=p-(f*u+p*c)),_?y+=", Dx="+((f=g/2)-(f*a+(p=v/2)*l)+x)+", Dy="+(p-(f*u+p*c)+C)+")":y+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?h.filter=e.replace(A,y):h.filter=y+" "+e,(0===t||1===t)&&1===a&&0===l&&0===u&&1===c&&(_&&-1===y.indexOf("Dx=0, Dy=0")||w.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&h.removeAttribute("filter")),!_){var T,$,S,k=8>m?1:-1;for(f=n.ieOffsetX||0,p=n.ieOffsetY||0,n.ieOffsetX=Math.round((g-((0>a?-a:a)*g+(0>l?-l:l)*v))/2+x),n.ieOffsetY=Math.round((v-((0>c?-c:c)*v+(0>u?-u:u)*g))/2+C),_t=0;4>_t;_t++)S=(i=-1!==(T=d[$=et[_t]]).indexOf("px")?parseFloat(T):Q(this.t,$,parseFloat(T),T.replace(b,""))||0)!==n[$]?2>_t?-n.ieOffsetX:-n.ieOffsetY:2>_t?f-n.ieOffsetX:p-n.ieOffsetY,h[$]=(n[$]=Math.round(i-S*(0===_t||2===_t?1:k)))+"px"}}}
1,zt=j.set3DTransformRatio=j.setTransformRatio=function(t){var e,i,n,r,s,o,a,l,u,c,h,d,p,m,g,v,_,y,b,w,x,C,T,$=this.data,S=this.t.style,k=$.rotation,E=$.rotationX,P=$.rotationY,O=$.scaleX,A=$.scaleY,R=$.scaleZ,L=$.x,D=$.y,M=$.z,F=$.svg,N=$.perspective,z=$.force3D;if(!((1!==t&&0!==t||"auto"!==z||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&z||M||N||P||E||1!==R)||xt&&F||!kt)k||$.skewX||F?(k*=I,C=$.skewX*I,T=1e5,e=Math.cos(k)*O,r=Math.sin(k)*O,i=Math.sin(k-C)*-A,s=Math.cos(k-C)*A,C&&"simple"===$.skewType&&(_=Math.tan(C),i*=_=Math.sqrt(1+_*_),s*=_,$.skewY&&(e*=_,r*=_)),F&&(L+=$.xOrigin-($.xOrigin*e+$.yOrigin*i)+$.xOffset,D+=$.yOrigin-($.xOrigin*r+$.yOrigin*s)+$.yOffset,xt&&($.xPercent||$.yPercent)&&(m=this.t.getBBox(),L+=.01*$.xPercent*m.width,D+=.01*$.yPercent*m.height),(m=1e-6)>L&&L>-m&&(L=0),m>D&&D>-m&&(D=0)),b=(e*T|0)/T+","+(r*T|0)/T+","+(i*T|0)/T+","+(s*T|0)/T+","+L+","+D+")",F&&xt?this.t.setAttribute("transform","matrix("+b):S[Tt]=($.xPercent||$.yPercent?"translate("+$.xPercent+"%,"+$.yPercent+"%) matrix(":"matrix(")+b):S[Tt]=($.xPercent||$.yPercent?"translate("+$.xPercent+"%,"+$.yPercent+"%) matrix(":"matrix(")+O+",0,0,"+A+","+L+","+D+")";else{if(f&&((m=1e-4)>O&&O>-m&&(O=R=2e-5),m>A&&A>-m&&(A=R=2e-5),!N||$.z||$.rotationX||$.rotationY||(N=0)),k||$.skewX)k*=I,g=e=Math.cos(k),v=r=Math.sin(k),$.skewX&&(k-=$.skewX*I,g=Math.cos(k),v=Math.sin(k),"simple"===$.skewType&&(_=Math.tan($.skewX*I),g*=_=Math.sqrt(1+_*_),v*=_,$.skewY&&(e*=_,r*=_))),i=-v,s=g;else{if(!(P||E||1!==R||N||F))return void(S[Tt]=($.xPercent||$.yPercent?"translate("+$.xPercent+"%,"+$.yPercent+"%) translate3d(":"translate3d(")+L+"px,"+D+"px,"+M+"px)"+(1!==O||1!==A?" scale("+O+","+A+")":""));e=s=1,i=r=0}u=1,n=o=a=l=c=h=0,d=N?-1/N:0,p=$.zOrigin,m=1e-6,w=",",x="0",(k=P*I)&&(g=Math.cos(k),a=-(v=Math.sin(k)),c=d*-v,n=e*v,o=r*v,u=g,d*=g,e*=g,r*=g),(k=E*I)&&(_=i*(g=Math.cos(k))+n*(v=Math.sin(k)),y=s*g+o*v,l=u*v,h=d*v,n=i*-v+n*g,o=s*-v+o*g,u*=g,d*=g,i=_,s=y),1!==R&&(n*=R,o*=R,u*=R,d*=R),1!==A&&(i*=A,s*=A,l*=A,h*=A),1!==O&&(e*=O,r*=O,a*=O,c*=O),(p||F)&&(p&&(L+=n*-p,D+=o*-p,M+=u*-p+p),F&&(L+=$.xOrigin-($.xOrigin*e+$.yOrigin*i)+$.xOffset,D+=$.yOrigin-($.xOrigin*r+$.yOrigin*s)+$.yOffset),m>L&&L>-m&&(L=x),m>D&&D>-m&&(D=x),m>M&&M>-m&&(M=0)),b=$.xPercent||$.yPercent?"translate("+$.xPercent+"%,"+$.yPercent+"%) matrix3d(":"matrix3d(",b+=(m>e&&e>-m?x:e)+w+(m>r&&r>-m?x:r)+w+(m>a&&a>-m?x:a),b+=w+(m>c&&c>-m?x:c)+w+(m>i&&i>-m?x:i)+w+(m>s&&s>-m?x:s),E||P||1!==R?(b+=w+(m>l&&l>-m?x:l)+w+(m>h&&h>-m?x:h)+w+(m>n&&n>-m?x:n),b+=w+(m>o&&o>-m?x:o)+w+(m>u&&u>-m?x:u)+w+(m>d&&d>-m?x:d)+w):b+=",0,0,0,0,1,0,",b+=L+w+D+w+M+w+(N?1+-M/N:1)+")",S[Tt]=b}};(u=Et.prototype).x=u.y=u.z=u.skewX=u.skewY=u.rotation=u.rotationX=u.rotationY=u.zOrigin=u.xPercent=u.yPercent=u.xOffset=u.yOffset=0,u.scaleX=u.scaleY=u.scaleZ=1,bt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,n,s,a,l){if(n._lastParsedTransform===l)return s;n._lastParsedTransform=l;var u,c,h,d,f,p,m,g,v,_,y=t._gsTransform,b=t.style,w=Ct.length,x=l,C={},T="transformOrigin";if(l.display?(d=G(t,"display"),b.display="block",u=Ft(t,r,!0,l.parseTransform),b.display=d):u=Ft(t,r,!0,l.parseTransform),n._transform=u,"string"==typeof x.transform&&Tt)(d=N.style)[Tt]=x.transform,d.display="block",d.position="absolute",M.body.appendChild(N),c=Ft(N,null,!1),M.body.removeChild(N),c.perspective||(c.perspective=u.perspective),null!=x.xPercent&&(c.xPercent=st(x.xPercent,u.xPercent)),null!=x.yPercent&&(c.yPercent=st(x.yPercent,u.yPercent));else if("object"==(void 0===x?"undefined":_typeof(x))){if(c={scaleX:st(null!=x.scaleX?x.scaleX:x.scale,u.scaleX),scaleY:st(null!=x.scaleY?x.scaleY:x.scale,u.scaleY),scaleZ:st(x.scaleZ,u.scaleZ),x:st(x.x,u.x),y:st(x.y,u.y),z:st(x.z,u.z),xPercent:st(x.xPercent,u.xPercent),yPercent:st(x.yPercent,u.yPercent),perspective:st(x.transformPerspective,u.perspective)},null!=(g=x.directionalRotation))if("object"==(void 0===g?"undefined":_typeof(g)))for(d in g)x[d]=g[d];else x.rotation=g;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(c.x=0,c.xPercent=st(x.x,u.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(c.y=0,c.yPercent=st(x.y,u.yPercent)),c.rotation=ot("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":"rotationZ"in x?x.rotationZ:u.rotation,u.rotation,"rotation",C),kt&&(c.rotationX=ot("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":u.rotationX||0,u.rotationX,"rotationX",C),c.rotationY=ot("rotationY"
1in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":u.rotationY||0,u.rotationY,"rotationY",C)),c.skewX=null==x.skewX?u.skewX:ot(x.skewX,u.skewX),c.skewY=null==x.skewY?u.skewY:ot(x.skewY,u.skewY),(h=c.skewY-u.skewY)&&(c.skewX+=h,c.rotation+=h)}for(kt&&null!=x.force3D&&(u.force3D=x.force3D,m=!0),u.skewType=x.skewType||u.skewType||o.defaultSkewType,(p=u.force3D||u.z||u.rotationX||u.rotationY||c.z||c.rotationX||c.rotationY||c.perspective)||null==x.scale||(c.scaleZ=1);--w>-1;)((f=c[i=Ct[w]]-u[i])>1e-6||-1e-6>f||null!=x[i]||null!=D[i])&&(m=!0,s=new mt(u,i,u[i],f,s),i in C&&(s.e=C[i]),s.xs0=0,s.plugin=a,n._overwriteProps.push(s.n));return f=x.transformOrigin,u.svg&&(f||x.svgOrigin)&&(v=u.xOffset,_=u.yOffset,It(t,nt(f),c,x.svgOrigin,x.smoothOrigin),s=gt(u,"xOrigin",(y?u:c).xOrigin,c.xOrigin,s,T),s=gt(u,"yOrigin",(y?u:c).yOrigin,c.yOrigin,s,T),(v!==u.xOffset||_!==u.yOffset)&&(s=gt(u,"xOffset",y?v:u.xOffset,u.xOffset,s,T),s=gt(u,"yOffset",y?_:u.yOffset,u.yOffset,s,T)),f=xt?null:"0px 0px"),(f||kt&&p&&u.zOrigin)&&(Tt?(m=!0,i=St,f=(f||G(t,i,r,!1,"50% 50%"))+"",(s=new mt(b,i,0,0,s,-1,T)).b=b[i],s.plugin=a,kt?(d=u.zOrigin,f=f.split(" "),u.zOrigin=(f.length>2&&(0===d||"0px"!==f[2])?parseFloat(f[2]):d)||0,s.xs0=s.e=f[0]+" "+(f[1]||"50%")+" 0px",(s=new mt(u,"zOrigin",0,0,s,-1,s.n)).b=d,s.xs0=s.e=u.zOrigin):s.xs0=s.e=f):nt(f+"",u)),m&&(n._transformType=u.svg&&xt||!p&&3!==this._transformType?2:3),s},prefix:!0}),bt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),bt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,o,a){e=this.format(e);var l,u,c,h,d,f,p,m,g,v,_,y,b,w,x,C,T=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],$=t.style;for(g=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),l=e.split(" "),u=0;u<T.length;u++)this.p.indexOf("border")&&(T[u]=X(T[u])),-1!==(d=h=G(t,T[u],r,!1,"0px")).indexOf(" ")&&(d=(h=d.split(" "))[0],h=h[1]),f=c=l[u],p=parseFloat(d),y=d.substr((p+"").length),(b="="===f.charAt(1))?(m=parseInt(f.charAt(0)+"1",10),f=f.substr(2),m*=parseFloat(f),_=f.substr((m+"").length-(0>m?1:0))||""):(m=parseFloat(f),_=f.substr((m+"").length)),""===_&&(_=n[i]||y),_!==y&&(w=Q(t,"borderLeft",p,y),x=Q(t,"borderTop",p,y),"%"===_?(d=w/g*100+"%",h=x/v*100+"%"):"em"===_?(d=w/(C=Q(t,"borderLeft",1,"em"))+"em",h=x/C+"em"):(d=w+"px",h=x+"px"),b&&(f=parseFloat(d)+m+_,c=parseFloat(h)+m+_)),o=vt($,T[u],d+" "+h,f+" "+c,!1,"0px",o);return o},prefix:!0,formatter:dt("0px 0px 0px 0px",!1,!0)}),bt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,s,o){var a,l,u,c,h,d,f="background-position",p=r||W(t,null),g=this.format((p?m?p.getPropertyValue(f+"-x")+" "+p.getPropertyValue(f+"-y"):p.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),v=this.format(e);if(-1!==g.indexOf("%")!=(-1!==v.indexOf("%"))&&((d=G(t,"backgroundImage").replace(k,""))&&"none"!==d)){for(a=g.split(" "),l=v.split(" "),z.setAttribute("src",d),u=2;--u>-1;)(c=-1!==(g=a[u]).indexOf("%"))!==(-1!==l[u].indexOf("%"))&&(h=0===u?t.offsetWidth-z.width:t.offsetHeight-z.height,a[u]=c?parseFloat(g)/100*h+"px":parseFloat(g)/h*100+"%");g=a.join(" ")}return this.parseComplex(t.style,g,v,s,o)},formatter:nt}),bt("backgroundSize",{defaultValue:"0 0",formatter:nt}),bt("perspective",{defaultValue:"0px",prefix:!0}),bt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),bt("transformStyle",{prefix:!0}),bt("backfaceVisibility",{prefix:!0}),bt("userSelect",{prefix:!0}),bt("margin",{parser:ft("marginTop,marginRight,marginBottom,marginLeft")}),bt("padding",{parser:ft("paddingTop,paddingRight,paddingBottom,paddingLeft")}),bt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,s,o){var a,l,u;return 9>m?(l=t.currentStyle,u=8>m?" ":",",a="rect("+l.clipTop+u+l.clipRight+u+l.clipBottom+u+l.clipLeft+")",e=this.format(e).split(",").join(u)):(a=this.format(G(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,a,e,s,o)}}),bt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}
1),bt("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),bt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,o){return this.parseComplex(t.style,this.format(G(t,"borderTopWidth",r,!1,"0px")+" "+G(t,"borderTopStyle",r,!1,"solid")+" "+G(t,"borderTopColor",r,!1,"#000")),this.format(e),s,o)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(ht)||["#000"])[0]}}),bt("borderWidth",{parser:ft("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),bt("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r,s){var o=t.style,a="cssFloat"in o?"cssFloat":"styleFloat";return new mt(o,a,0,0,r,-1,i,!1,0,o[a],e)}});var jt=function(t){var e,i=this.t,n=i.filter||G(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),e=!G(this.data,"filter")):(i.filter=n.replace(C,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+r+")"),-1===n.indexOf("pacity")?0===r&&this.xn1||(i.filter=n+" alpha(opacity="+r+")"):i.filter=n.replace(w,"opacity="+r))};bt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,s,o){var a=parseFloat(G(t,"opacity",r,!1,"1")),l=t.style,u="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),u&&1===a&&"hidden"===G(t,"visibility",r)&&0!==e&&(a=0),H?s=new mt(l,"opacity",a,e-a,s):((s=new mt(l,"opacity",100*a,100*(e-a),s)).xn1=u?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=o,s.setRatio=jt),u&&((s=new mt(l,"visibility",0,0,s,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(i)),s}});var Bt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace($,"-$1").toLowerCase())):t.removeAttribute(e))},Ht=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Bt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};bt("className",{parser:function(t,e,n,s,o,a,l){var u,c,h,d,f,p=t.getAttribute("class")||"",m=t.style.cssText;if((o=s._classNamePT=new mt(t,n,0,0,o,2)).setRatio=Ht,o.pr=-11,i=!0,o.b=p,c=Z(t,r),h=t._gsClassPT){for(d={},f=h.data;f;)d[f.p]=1,f=f._next;h.setRatio(1)}return t._gsClassPT=o,o.e="="!==e.charAt(1)?e:p.replace(new RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",o.e),u=J(t,c,Z(t),l,d),t.setAttribute("class",p),o.data=u.firstMPT,t.style.cssText=m,o.xfirst=s.parse(t,u.difs,o,a)}});var qt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,r,s,o=this.t.style,a=l.transform.parse;if("all"===this.e)o.cssText="",r=!0;else for(n=(e=this.e.split(" ").join("").split(",")).length;--n>-1;)i=e[n],l[i]&&(l[i].parse===a?r=!0:i="transformOrigin"===i?St:l[i].p),Bt(o,i);r&&(Bt(o,Tt),(s=this.t._gsTransform)&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(bt("clearProps",{parser:function(t,e,n,r,s){return(s=new mt(t,n,0,0,s,2)).setRatio=qt,s.e=e,s.pr=-10,s.data=r._tween,i=!0,s}}),u="bezier,throwProps,physicsProps,physics2D".split(","),_t=u.length;_t--;)wt(u[_t]);(u=o.prototype)._firstPT=u._lastParsedTransform=u._transform=null,u._onInitTween=function(t,e,a){if(!t.nodeType)return!1;this._target=t,this._tween=a,this._vars=e,c=e.autoRound,i=!1,n=e.suffixMap||o.suffixMap,r=W(t,""),s=this._overwriteProps;var u,f,m,g,v,_,y,b,w,C=t.style;if(h&&""===C.zIndex&&(("auto"===(u=G(t,"zIndex",r))||""===u)&&this._addLazySet(C,"zIndex",0)),"string"==typeof e&&(g=C.cssText,u=Z(t,r),C.cssText=g+";"+e,u=J(t,u,Z(t)).difs,!H&&x.test(e)&&(u.opacity=parseFloat(RegExp.$1)),e=u,C.cssText=g),e.className?this._firstPT=f=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=f=this.parse(t,e,null),this._transformType){for(w=3===this._transformType,Tt?d&&(h=!0,""===C.zIndex&&(("auto"===(y=G(t,"zIndex",r))||""===y)&&this._addLazySet(C,"zIndex",0)),p&&this._addLazySet(C,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(w?"visible":"hidden"))):C.zoom=1,m=f;m&&m._next;)m=m._next;b=new mt(t,"transform",0,0,null,2),this._linkCSSP(b,null,m),b.setRatio=Tt?zt:Nt,b.data=this._transform||Ft(t,r,!0),b.tween=a,b.pr=-1,s.pop()}if(i){for(;f;){for(_=f._next,m=g;m&&m.pr>f.pr;)m=m._next;(f._prev=m?m._prev:v)?f._prev._next=f:g=f,(f._next=m)?m._prev=f:v=f,f=_}this._firstPT=g}return!0}
1,u.parse=function(t,e,i,s){var o,a,u,h,d,f,p,m,g,v,_=t.style;for(o in e)f=e[o],(a=l[o])?i=a.parse(t,f,o,this,i,s,e):(d=G(t,o,r)+"",g="string"==typeof f,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||g&&T.test(f)?(g||(f=((f=ut(f)).length>3?"rgba(":"rgb(")+f.join(",")+")"),i=vt(_,o,d,f,!0,"transparent",i,0,s)):!g||-1===f.indexOf(" ")&&-1===f.indexOf(",")?(p=(u=parseFloat(d))||0===u?d.substr((u+"").length):"",(""===d||"auto"===d)&&("width"===o||"height"===o?(u=it(t,o,r),p="px"):"left"===o||"top"===o?(u=K(t,o,r),p="px"):(u="opacity"!==o?0:1,p="")),(v=g&&"="===f.charAt(1))?(h=parseInt(f.charAt(0)+"1",10),f=f.substr(2),h*=parseFloat(f),m=f.replace(b,"")):(h=parseFloat(f),m=g?f.replace(b,""):""),""===m&&(m=o in n?n[o]:p),f=h||0===h?(v?h+u:h)+m:e[o],p!==m&&""!==m&&(h||0===h)&&u&&(u=Q(t,o,u,p),"%"===m?(u/=Q(t,o,100,"%")/100,!0!==e.strictUnits&&(d=u+"%")):"em"===m||"rem"===m||"vw"===m||"vh"===m?u/=Q(t,o,1,m):"px"!==m&&(h=Q(t,o,h,m),m="px"),v&&(h||0===h)&&(f=h+u+m)),v&&(h+=u),!u&&0!==u||!h&&0!==h?void 0!==_[o]&&(f||f+""!="NaN"&&null!=f)?(i=new mt(_,o,h||u||0,0,i,-1,o,!1,0,d,f)).xs0="none"!==f||"display"!==o&&-1===o.indexOf("Style")?f:d:V("invalid "+o+" tween value: "+e[o]):(i=new mt(_,o,u,h-u,i,0,o,!1!==c&&("px"===m||"zIndex"===o),0,d,f)).xs0=m):i=vt(_,o,d,f,!0,null,i,0,s)),s&&i&&!i.plugin&&(i.plugin=s);return i},u.setRatio=function(t){var e,i,n,r=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):1e-6>e&&e>-1e-6&&(e=0),r.type)if(1===r.type)if(2===(n=r.l))r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;){if(2!==r.type)if(r.r&&-1!==r.type)if(e=Math.round(r.s+r.c),r.type){if(1===r.type){for(n=r.l,i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}}else r.t[r.p]=e+r.xs0;else r.t[r.p]=r.e;else r.setRatio(t);r=r._next}},u._enableTransforms=function(t){this._transform=this._transform||Ft(this._target,r,!0),this._transformType=this._transform.svg&&xt||!t&&3!==this._transformType?2:3};var Vt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};u._addLazySet=function(t,e,i){var n=this._firstPT=new mt(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=Vt,n.data=this},u._linkCSSP=function(t,e,i,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},u._kill=function(e){var i,n,r,s=e;if(e.autoAlpha||e.alpha){for(n in s={},e)s[n]=e[n];s.opacity=1,s.autoAlpha&&(s.visibility=1)}return e.className&&(i=this._classNamePT)&&((r=i.xfirst)&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),t.prototype._kill.call(this,s)};var Ut=function t(e,i,n){var r,s,o,a;if(e.slice)for(s=e.length;--s>-1;)t(e[s],i,n);else for(s=(r=e.childNodes).length;--s>-1;)a=(o=r[s]).type,o.style&&(i.push(Z(o)),n&&n.push(o)),1!==a&&9!==a&&11!==a||!o.childNodes.length||t(o,i,n)};return o.cascadeTo=function(t,i,n){var r,s,o,a,l=e.to(t,i,n),u=[l],c=[],h=[],d=[],f=e._internals.reservedProps;for(t=l._targets||l.target,Ut(t,c,d),l.render(i,!0,!0),Ut(t,h),l.render(0,!0,!0),l._enabled(!0),r=d.length;--r>-1;)if((s=J(d[r],c[r],h[r])).firstMPT){for(o in s=s.difs,n)f[o]&&(s[o]=n[o]);for(o in a={},s)a[o]=c[r][o];u.push(e.fromTo(d[r],i,a,s))}return u},t.activate([o]),o},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope).CSSPlugin};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}();_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.ThrowPropsPlugin",["plugins.TweenPlugin","TweenLite","easing.Ease","utils.VelocityTracker"],function(t,e,
1i,n){var r,s,o,a,l=function(e,i){t.call(this,"throwProps"),this._overwriteProps.length=0},u=999999999999999,c=_gsScope._gsDefine.globals,h=!1,d={x:1,y:1,z:2,scale:1,scaleX:1,scaleY:1,rotation:1,rotationZ:1,rotationX:2,rotationY:2,skewX:1,skewY:1,xPercent:1,yPercent:1},f=function(t,e,i,n){if("auto"===t.end)return t;i=isNaN(i)?u:i,n=isNaN(n)?-u:n;var r="function"==typeof t.end?t.end(e):t.end instanceof Array?function(t,e,i,n){for(var r,s,o=e.length,a=0,l=u;--o>-1;)0>(s=(r=e[o])-t)&&(s=-s),l>s&&r>=n&&i>=r&&(a=o,l=s);return e[a]}(e,t.end,i,n):Number(t.end);return r>i?r=i:n>r&&(r=n),{max:r,min:r,unitFactor:t.unitFactor}},p=function(t,e,i){for(var n in e)void 0===t[n]&&n!==i&&(t[n]=e[n]);return t},m=l.calculateChange=function(t,n,r,s){return null==s&&(s=.05),r*s*t/(n instanceof i?n:n?new i(n):e.defaultEase).getRatio(s)},g=l.calculateDuration=function(t,n,r,s,o){o=o||.05;var a=s instanceof i?s:s?new i(s):e.defaultEase;return Math.abs((n-t)*a.getRatio(o)/r/o)},v=l.calculateTweenDuration=function(t,r,s,o,a,u){if("string"==typeof t&&(t=e.selector(t)),!t)return 0;null==s&&(s=10),null==o&&(o=.2),null==a&&(a=1),t.length&&(t=t[0]||t);var c,d,v,_,y,b,w,x,C,T,$=0,S=9999999999,k=r.throwProps||r,E=r.ease instanceof i?r.ease:r.ease?new i(r.ease):e.defaultEase,P=isNaN(k.checkpoint)?.05:Number(k.checkpoint),O=isNaN(k.resistance)?l.defaultResistance:Number(k.resistance);for(c in k)"resistance"!==c&&"checkpoint"!==c&&"preventOvershoot"!==c&&("object"!=(void 0===(d=k[c])?"undefined":_typeof(d))&&((C=C||n.getByTarget(t))&&C.isTrackingProp(c)?d="number"==typeof d?{velocity:d}:{velocity:C.getVelocity(c)}:v=(_=Number(d)||0)*O>0?_/O:_/-O),"object"==(void 0===d?"undefined":_typeof(d))&&(void 0!==d.velocity&&"number"==typeof d.velocity?_=Number(d.velocity)||0:_=(C=C||n.getByTarget(t))&&C.isTrackingProp(c)?C.getVelocity(c):0,v=_*(y=isNaN(d.resistance)?O:Number(d.resistance))>0?_/y:_/-y,w=(b="function"==typeof t[c]?t[c.indexOf("set")||"function"!=typeof t["get"+c.substr(3)]?c:"get"+c.substr(3)]():t[c]||0)+m(_,E,v,P),void 0!==d.end&&(d=f(d,w,d.max,d.min),(u||h)&&(k[c]=p(d,k[c],"end"))),void 0!==d.max&&w>Number(d.max)+1e-10?(T=d.unitFactor||l.defaultUnitFactors[c]||1,S>(x=b>d.max&&d.min!==d.max||_*T>-15&&45>_*T?o+.1*(s-o):g(b,d.max,_,E,P))+a&&(S=x+a)):void 0!==d.min&&w<Number(d.min)-1e-10&&(T=d.unitFactor||l.defaultUnitFactors[c]||1,S>(x=b<d.min&&d.min!==d.max||_*T>-45&&15>_*T?o+.1*(s-o):g(b,d.min,_,E,P))+a&&(S=x+a)),x>$&&($=x)),v>$&&($=v));return $>S&&($=S),$>s?s:o>$?o:$},_=l.prototype=new t("throwProps");return _.constructor=l,l.version="0.9.10",l.API=2,l._autoCSS=!0,l.defaultResistance=100,l.defaultUnitFactors={time:1e3,totalTime:1e3},l.track=function(t,e,i){return n.track(t,e,i)},l.untrack=function(t,e){n.untrack(t,e)},l.isTracking=function(t,e){return n.isTracking(t,e)},l.getVelocity=function(t,e){var i=n.getByTarget(t);return i?i.getVelocity(e):NaN},l._cssRegister=function(){var t=c.com.greensock.plugins.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,o=e._setPluginRatio,a=e.CSSPropTween;e._registerComplexSpecialProp("throwProps",{parser:function(t,e,u,c,h,f){f=new l;var p,m,g,v,_={},y={},b={},w={},x={},C={};for(m in s={},e)"resistance"!==m&&"preventOvershoot"!==m&&("object"==(void 0===(p=e[m])?"undefined":_typeof(p))?(void 0!==p.velocity&&"number"==typeof p.velocity?_[m]=Number(p.velocity)||0:(v=v||n.getByTarget(t),_[m]=v&&v.isTrackingProp(m)?v.getVelocity(m):0),void 0!==p.end&&(w[m]=p.end),void 0!==p.min&&(y[m]=p.min),void 0!==p.max&&(b[m]=p.max),p.preventOvershoot&&(C[m]=!0),void 0!==p.resistance&&(!0,x[m]=p.resistance)):"number"==typeof p?_[m]=p:(v=v||n.getByTarget(t))&&v.isTrackingProp(m)?_[m]=v.getVelocity(m):_[m]=p||0,d[m]&&c._enableTransforms(2===d[m]));for(m in g=i(t,_,c,h,f),r=g.proxy,_=g.end,r)s[m]={velocity:_[m],min:y[m],max:b[m],end:w[m],resistance:x[m],preventOvershoot:C[m]};return null!=e.resistance&&(s.resistance=e.resistance),e.preventOvershoot&&(s.preventOvershoot=!0),h=new a(t,"throwProps",0,0,g.pt,2),c._overwriteProps.pop(),h.plugin=f,h.setRatio=o,h.data=g,f._onInitTween(r,s,c._tween),h}})}},l.to=function(t,i,n,l,u){i.throwProps||(i={throwProps:i}),0===u&&(i.throwProps.preventOvershoot=!0),h=!0;var c=new e(t,l||1,i);return c.render(0,!0,!0),c.vars.css?(c.duration(v(r,{throwProps:s,ease:i.ease},n,l,u)),c._delay&&!c.vars.immediateRender?c.invalidate():o._onInitTween(r,a,c),h=!1,c):(c.kill(),c=new e(t,v(t,i,n,l,u),i),h=!1,c)}
1,_._onInitTween=function(t,e,i){this.target=t,this._props=[],o=this,a=e;var r,s,l,u,c,d,g,v,_,y=i._ease,b=isNaN(e.checkpoint)?.05:Number(e.checkpoint),w=i._duration,x=e.preventOvershoot,C=0;for(r in e)if("resistance"!==r&&"checkpoint"!==r&&"preventOvershoot"!==r){if("number"==typeof(s=e[r]))c=Number(s)||0;else if("object"!=(void 0===s?"undefined":_typeof(s))||isNaN(s.velocity)){if(!(_=_||n.getByTarget(t))||!_.isTrackingProp(r))throw"ERROR: No velocity was defined in the throwProps tween of "+t+" property: "+r;c=_.getVelocity(r)}else c=Number(s.velocity);d=m(c,y,w,b),v=0,l=(u="function"==typeof t[r])?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():t[r],"object"==(void 0===s?"undefined":_typeof(s))&&(g=l+d,void 0!==s.end&&(s=f(s,g,s.max,s.min),h&&(e[r]=p(s,e[r],"end"))),void 0!==s.max&&Number(s.max)<g?x||s.preventOvershoot?d=s.max-l:v=s.max-l-d:void 0!==s.min&&Number(s.min)>g&&(x||s.preventOvershoot?d=s.min-l:v=s.min-l-d)),this._overwriteProps[C]=r,this._props[C++]={p:r,s:l,c1:d,c2:v,f:u,r:!1}}return!0},_._kill=function(e){for(var i=this._props.length;--i>-1;)null!=e[this._props[i].p]&&this._props.splice(i,1);return t.prototype._kill.call(this,e)},_._roundProps=function(t,e){for(var i=this._props,n=i.length;--n>-1;)(t[i[n].p]||t.throwProps)&&(i[n].r=e)},_.setRatio=function(t){for(var e,i,n=this._props.length;--n>-1;)i=(e=this._props[n]).s+e.c1*t+e.c2*t*t,e.r?i=Math.round(i):1===t&&(i=(1e4*i+(0>i?-.5:.5)|0)/1e4),e.f?this.target[e.p](i):this.target[e.p]=i},t.activate([l]),l},!0),_gsScope._gsDefine("utils.VelocityTracker",["TweenLite"],function(t){var e,i,n,r=/([A-Z])/g,s={},o={x:1,y:1,z:2,scale:1,scaleX:1,scaleY:1,rotation:1,rotationZ:1,rotationX:2,rotationY:2,skewX:1,skewY:1,xPercent:1,yPercent:1},a=document.defaultView?document.defaultView.getComputedStyle:function(){},l=function(t,e,i){var n=(t._gsTransform||s)[e];return n||0===n?n:(t.style[e]?n=t.style[e]:(i=i||a(t,null))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(r,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),parseFloat(n)||0)},u=t.ticker,c=function(t,e,i){this.p=t,this.f=e,this.v1=this.v2=0,this.t1=this.t2=u.time,this.css=!1,this.type="",this._prev=null,i&&(this._next=i,i._prev=this)},h=function(){var t,i,r=e,s=u.time;if(s-n>=.03)for(n,n=s;r;){for(i=r._firstVP;i;)((t=i.css?l(r.target,i.p):i.f?r.target[i.p]():r.target[i.p])!==i.v1||s-i.t1>.15)&&(i.v2=i.v1,i.v1=t,i.t2=i.t1,i.t1=s),i=i._next;r=r._next}},d=function(t){this._lookup={},this.target=t,this.elem=!(!t.style||!t.nodeType),i||(u.addEventListener("tick",h,null,!1,-100),n=u.time,i=!0),e&&(this._next=e,e._prev=this),e=this},f=d.getByTarget=function(t){for(var i=e;i;){if(i.target===t)return i;i=i._next}},p=d.prototype;return p.addProp=function(e,i){if(!this._lookup[e]){var n=this.target,r="function"==typeof n[e],s=r?this._altProp(e):e,a=this._firstVP;this._firstVP=this._lookup[e]=this._lookup[s]=a=new c(s!==e&&0===e.indexOf("set")?s:e,r,a),a.css=this.elem&&(void 0!==this.target.style[a.p]||o[a.p]),a.css&&o[a.p]&&!n._gsTransform&&t.set(n,{x:"+=0",overwrite:!1}),a.type=i||a.css&&0===e.indexOf("rotation")?"deg":"",a.v1=a.v2=a.css?l(n,a.p):r?n[a.p]():n[a.p]}},p.removeProp=function(t){var e=this._lookup[t];e&&(e._prev?e._prev._next=e._next:e===this._firstVP&&(this._firstVP=e._next),e._next&&(e._next._prev=e._prev),this._lookup[t]=0,e.f&&(this._lookup[this._altProp(t)]=0))},p.isTrackingProp=function(t){return this._lookup[t]instanceof c},p.getVelocity=function(t){var e,i,n=this._lookup[t],r=this.target;if(!n)throw"The velocity of "+t+" is not being tracked.";return e=(n.css?l(r,n.p):n.f?r[n.p]():r[n.p])-n.v2,("rad"===n.type||"deg"===n.type)&&((e%=i="rad"===n.type?2*Math.PI:360)!==e%(i/2)&&(e=0>e?e+i:e-i)),e/(u.time-n.t2)},p._altProp=function(t){var e=t.substr(0,3),i=("get"===e?"set":"set"===e?"get":e)+t.substr(3);return"function"==typeof this.target[i]?i:t},d.getByTarget=function(i){var n=e;for("string"==typeof i&&(i=t.selector(i)),i.length&&i!==window&&i[0]&&i[0].style&&!i.nodeType&&(i=i[0]);n;){if(n.target===i)return n;n=n._next}},d.track=function(t,e,i){var n=f(t),r=e.split(","),s=r.length;for(i=(i||"").split(","),n||(n=new d(t));--s>-1;)n.addProp(r[s],i[s]||i[0]);return n},d.untrack=function(t,i){var n=f(t),r=(i||"").split(","),s=r.length;if(n){for(;--s>-1;)n.removeProp(r[s]);n._firstVP&&i||(n._prev?n._prev._next=n._next:n===e&&(e=n._next),n._next&&(n._next._prev=n._prev))}},d.isTracking=function(t,e){var i=f(t);return!!i&&(!(e||!i._firstVP)||i.isTrackingProp(e))},d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope).ThrowPropsPlugin};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}(),((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function t(t,e,i,n){return i=parseFloat(i)-parseFloat(t),n=parseFloat(n)-parseFloat(e),Math.sqrt(i*i+n*n)}function e(t){return"string"!=typeof t&&t.nodeType||(t=_gsScope.TweenLite.selector(t)).length&&(t=t[0]),t}function i(i){if(!i)return 0;var n,r,s,o,a,l,u,c=(i=e(i)).tagName.toLowerCase();if("path"===c){o=i.style.strokeDasharray,i.style.strokeDasharray="none",n=i.getTotalLength()||0;try{i.getBBox()}catch(t){}i.style.strokeDasharray=o}else if("rect"===c)n=2*i.getAttribute("width")+2*i.getAttribute("height");else if("circle"===c)n=2*Math.PI*parseFloat(i.getAttribute("r"));else if("line"===c)n=t(i.getAttribute("x1"),i.getAttribute("y1"),i.getAttribute("x2"),i.getAttribute("y2"));else if("polyline"===c||"polygon"===c)for(n=0,o=(r=i.getAttribute("points").split(", ").join(",").split(" "))[0].split(","),""===r[r.length-1]&&r.pop(),"polygon"===c&&(r.push(r[0]),-1===r[0].indexOf(",")&&r.push(r[1])),a=1;a<r.length;a++)1===(s=r[a].split(",")).length&&(s[1]=r[a++]),2===s.length&&(n+=t(o[0],o[1],s[0],s[1])||0,o=s);else"ellipse"===c&&(l=parseFloat(i.getAttribute("rx")),u=parseFloat(i.getAttribute("ry")),n=Math.PI*(3*(l+u)-Math.sqrt((3*l+u)*(l+3*u))));return n||0}function n(t,n){if(!t)return[0,0];t=e(t),n=n||i(t)+1;var r=s(t),o=r.strokeDasharray||"",a=parseFloat(r.strokeDashoffset),l=o.indexOf(",");return 0>l&&(l=o.indexOf(" ")),(o=0>l?n:parseFloat(o.substr(0,l))||1e-5)>n&&(o=n),[Math.max(0,-a),Math.max(0,o-a)]}var r,s=document.defaultView?document.defaultView.getComputedStyle:function(){};(r=_gsScope._gsDefine.plugin({propName:"drawSVG",API:2,version:"0.0.9",global:!0,overwriteProps:["drawSVG"],init:function(t,e,r){if(!t.getBBox)return!1;var s,o,a,l=i(t)+1;return this._style=t.style,!0===e||"true"===e?e="0 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",o=function(t,e,
1i){var n,r,s=t.indexOf(" ");return-1===s?(n=void 0!==i?i+"":t,r=t):(n=t.substr(0,s),r=t.substr(s+1)),(n=-1!==n.indexOf("%")?parseFloat(n)/100*e:parseFloat(n))>(r=-1!==r.indexOf("%")?parseFloat(r)/100*e:parseFloat(r))?[r,n]:[n,r]}(e,l,(s=n(t,l))[0]),this._length=l+10,0===s[0]&&0===o[0]?(a=Math.max(1e-5,o[1]-l),this._dash=l+a,this._offset=l-s[1]+a,this._addTween(this,"_offset",this._offset,l-o[1]+a,"drawSVG")):(this._dash=s[1]-s[0]||1e-6,this._offset=-s[0],this._addTween(this,"_dash",this._dash,o[1]-o[0]||1e-5,"drawSVG"),this._addTween(this,"_offset",this._offset,-o[0],"drawSVG")),!0},set:function(t){this._firstPT&&(this._super.setRatio.call(this,t),this._style.strokeDashoffset=this._offset,this._style.strokeDasharray=1===t||0===t?this._offset<.001&&this._length-this._dash<=10?"none":this._offset===this._dash?"0px, 999999px":this._dash+"px,"+this._length+"px":this._dash+"px,"+this._length+"px")}})).getLength=i,r.getPosition=n}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("utils.Draggable",["events.EventDispatcher","TweenLite","plugins.CSSPlugin"],function(t,e,i){var n,r,s,o,a,l,u,c,h={css:{}},d={css:{}},f={css:{}},p={css:{}},m=_gsScope._gsDefine.globals,g={},v={style:{}},_=_gsScope.document||{createElement:function(){return v}},y=_.documentElement||{},b=function(t){return _.createElementNS?_.createElementNS("http://www.w3.org/1999/xhtml",t):_.createElement(t)},w=b("div"),x=[],C=function(){return!1},T=180/Math.PI,$=999999999999999,S=Date.now||function(){return(new Date).getTime()},k=!(_.addEventListener||!_.all),E=_.createElement("div"),P=[],O={},A=0,R=/^(?:a|input|textarea|button|select)$/i,I=0,L=-1!==navigator.userAgent.toLowerCase().indexOf("android"),D=0,M={},F={},N=function(t,e){var i,n={};if(e)for(i in t)n[i]=t[i]*e;else for(i in t)n[i]=t[i];return n},z=function(){for(var t=P.length;--t>-1;)P[t]()},j=function(t){P.push(t),1===P.length&&e.ticker.addEventListener("tick",z,this,!1,1)},B=function(t){for(var i=P.length;--i>-1;)P[i]===t&&P.splice(i,1);e.to(H,0,{overwrite:"all",delay:15,onComplete:H})},H=function(){P.length||e.ticker.removeEventListener("tick",z)},q=function(){return null!=window.pageYOffset?window.pageYOffset:null!=_.scrollTop?_.scrollTop:y.scrollTop||_.body.scrollTop||0},V=function(){return null!=window.pageXOffset?window.pageXOffset:null!=_.scrollLeft?_.scrollLeft:y.scrollLeft||_.body.scrollLeft||0},U=function t(e,i){Ot(e,"scroll",i),X(e.parentNode)||t(e.parentNode,i)},Y=function t(e,i){At(e,"scroll",i),X(e.parentNode)||t(e.parentNode,i)},X=function(t){return!(t&&t!==y&&t!==_&&t!==_.body&&t!==window&&t.nodeType&&t.parentNode)},W=function(t,e){var i="x"===e?"Width":"Height",n="scroll"+i,r="client"+i,s=_.body;return Math.max(0,X(t)?Math.max(y[n],s[n])-(window["inner"+i]||y[r]||s[r]):t[n]-t[r])},G=function t(e){var i=X(e),n=W(e,"x"),r=W(e,"y");i?e=F:t(e.parentNode),e._gsMaxScrollX=n,e._gsMaxScrollY=r,e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0},Q=function(t,e){return t=t||window.event,g.pageX=t.clientX+_.body.scrollLeft+y.scrollLeft,g.pageY=t.clientY+_.body.scrollTop+y.scrollTop,e&&(t.returnValue=!1),g},K=function(t){return t?("string"==typeof t&&(t=e.selector(t)),t.length&&t!==window&&t[0]&&t[0].style&&!t.nodeType&&(t=t[0]),t===window||t.nodeType&&t.style?t:null):t},Z=function(t,e){var i,n,r,s=t.style;if(void 0===s[e]){for(r=["O","Moz","ms","Ms","Webkit"],n=5,i=e.charAt(0).toUpperCase()+e.substr(1);--n>-1&&void 0===s[r[n]+i];);if(0>n)return"";e=(3===n?"ms":r[n])+i}return e},J=function(t,e,i){var n=t.style;n&&(void 0===n[e]&&(e=Z(t,e)),null==i?n.removeProperty?n.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):n.removeAttribute(e):void 0!==n[e]&&(n[e]=i))},tt=_.defaultView?_.defaultView.getComputedStyle:C,et=/(?:Left|Right|Width)/i,it=/(?:\d|\-|\+|=|#|\.)*/g,nt=function(t,e){if("absolute"!==rt(t,"position",!0))return 0;var i="left"===e?"Left":"Top",n=rt(t,"margin"+i,!0);return t["offset"+i]-(function t(e,i,n,r,s){if("px"===r||!r)return n;if("auto"===r||!n)return 0;var o,a=et.test(i),l=e,u=w.style,c=0>n;return c&&(n=-n),"%"===r&&-1!==i.indexOf("border")?o=n/100*(a?e.clientWidth:e.clientHeight):(u.cssText="border:0 solid red;position:"+rt(e,"position",!0)+";line-height:0;","%"!==r&&l.appendChild?u[a?"borderLeftWidth":"borderTopWidth"]=n+r:(l=e.parentNode||_.body,u[a?"width":"height"]=n+r),l.appendChild(w),o=parseFloat(w[a?"offsetWidth":"offsetHeight"]),l.removeChild(w),0!==o||s||(o=t(e,i,n,r,!0))
1),c?-o:o}(t,e,parseFloat(n),(n+"").replace(it,""))||0)},rt=function(t,e,i){var n,r=(t._gsTransform||{})[e];return r||0===r?r:(t.style[e]?r=t.style[e]:(n=tt(t))?r=(r=n.getPropertyValue(e.replace(/([A-Z])/g,"-$1").toLowerCase()))||n.length?r:n[e]:t.currentStyle&&(r=t.currentStyle[e]),"auto"!==r||"top"!==e&&"left"!==e||(r=nt(t,e)),i?r:parseFloat(r)||0)},st=function(t,e,i){var n=t.vars,r=n[i],s=t._listeners[e];"function"==typeof r&&r.apply(n[i+"Scope"]||n.callbackScope||t,n[i+"Params"]||[t.pointerEvent]),s&&t.dispatchEvent(e)},ot=function(t,e){var i,n,r,s=K(t);return s?St(s,e):void 0!==t.left?(r=bt(e),{left:t.left-r.x,top:t.top-r.y,width:t.width,height:t.height}):{left:n=t.min||t.minX||t.minRotation||0,top:i=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-n,height:(t.max||t.maxY||0)-i}},at=function(){if(!_.createElementNS)return s=0,void(o=!1);var t,e,i,n,r=b("div"),c=_.createElementNS("http://www.w3.org/2000/svg","svg"),h=b("div"),d=r.style,f=_.body||y;_.body&&ct&&(d.position="absolute",f.appendChild(h),h.appendChild(r),n=r.offsetParent,h.style[ct]="rotate(1deg)",u=r.offsetParent===n,h.style.position="absolute",d.height="10px",n=r.offsetTop,h.style.border="5px solid red",l=n!==r.offsetTop,f.removeChild(h)),d=c.style,c.setAttributeNS(null,"width","400px"),c.setAttributeNS(null,"height","400px"),c.setAttributeNS(null,"viewBox","0 0 400 400"),d.display="block",d.boxSizing="border-box",d.border="0px solid red",d.transform="none",r.style.cssText="width:100px;height:100px;overflow:scroll;-ms-overflow-style:none;",f.appendChild(r),r.appendChild(c),e=(i=c.createSVGPoint().matrixTransform(c.getScreenCTM())).y,r.scrollTop=100,i.x=i.y=0,i=i.matrixTransform(c.getScreenCTM()),a=e-i.y<100.1?0:e-i.y-150,r.removeChild(c),f.removeChild(r),f.appendChild(c),e=(t=c.getScreenCTM()).e,d.border="50px solid red",t=c.getScreenCTM(),0===e&&0===t.e&&0===t.f&&1===t.a?(s=1,o=!0):(s=e!==t.e?1:0,o=1!==t.a),f.removeChild(c)},lt=""!==Z(w,"perspective"),ut=Z(w,"transformOrigin").replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),ct=Z(w,"transform"),ht=ct.replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),dt={},ft={},pt=window.SVGElement,mt=function(t){return!!(pt&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},gt=(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent))&&parseFloat(RegExp.$1)<11,vt=[],_t=[],yt=function t(i){if(!i.getBoundingClientRect||!i.parentNode||!ct)return{offsetTop:0,offsetLeft:0,scaleX:1,scaleY:1,offsetParent:y};
1if(!1!==zt.cacheSVGData&&i._dCache&&i._dCache.lastUpdate===e.ticker.frame)return i._dCache;var n,r,l,u,c,h,d,f,p,m,g,v,b=i,w=wt(i);if(w.lastUpdate=e.ticker.frame,i.getBBox&&!w.isSVGRoot){for(b=i.parentNode,n=i.getBBox();b&&"svg"!==(b.nodeName+"").toLowerCase();)b=b.parentNode;return u=t(b),w.offsetTop=n.y*u.scaleY,w.offsetLeft=n.x*u.scaleX,w.scaleX=u.scaleX,w.scaleY=u.scaleY,w.offsetParent=b||y,w}for((l=w.offsetParent)===_.body&&(l=y),_t.length=vt.length=0;b&&("matrix(1, 0, 0, 1, 0, 0)"!==(c=rt(b,ct,!0))&&"none"!==c&&"translate3d(0px, 0px, 0px)"!==c&&(_t.push(b),vt.push(b.style[ct]),b.style[ct]="none"),b!==l);)b=b.parentNode;for(r=l.getBoundingClientRect(),c=i.getScreenCTM(),d=(f=i.createSVGPoint()).matrixTransform(c),f.x=f.y=10,f=f.matrixTransform(c),w.scaleX=(f.x-d.x)/10,w.scaleY=(f.y-d.y)/10,void 0===s&&at(),w.borderBox&&!o&&i.getAttribute("width")&&(u=tt(i)||{},p=parseFloat(u.borderLeftWidth)+parseFloat(u.borderRightWidth)||0,m=parseFloat(u.borderTopWidth)+parseFloat(u.borderBottomWidth)||0,g=parseFloat(u.width)||0,v=parseFloat(u.height)||0,w.scaleX*=(g-p)/g,w.scaleY*=(v-m)/v),a?(n=i.getBoundingClientRect(),w.offsetLeft=n.left-r.left,w.offsetTop=n.top-r.top):(w.offsetLeft=d.x-r.left,w.offsetTop=d.y-r.top),w.offsetParent=l,h=_t.length;--h>-1;)_t[h].style[ct]=vt[h];return w},bt=function(t,i){if(i=i||{},!t||t===y||!t.parentNode||t===window)return{x:0,y:0};var n=tt(t),r=ut&&n?n.getPropertyValue(ut):"50% 50%",s=r.split(" "),o=-1!==r.indexOf("left")?"0%":-1!==r.indexOf("right")?"100%":s[0],a=-1!==r.indexOf("top")?"0%":-1!==r.indexOf("bottom")?"100%":s[1];return("center"===a||null==a)&&(a="50%"),("center"===o||isNaN(parseFloat(o)))&&(o="50%"),t.getBBox&&mt(t)?(t._gsTransform||(e.set(t,{x:"+=0",overwrite:!1}),void 0===t._gsTransform.xOrigin&&console.log("Draggable requires at least GSAP 1.17.0")),r=t.getBBox(),i.x=t._gsTransform.xOrigin-r.x,i.y=t._gsTransform.yOrigin-r.y):(t.getBBox&&-1!==(o+a).indexOf("%")&&(t={offsetWidth:(t=t.getBBox()).width,offsetHeight:t.height}),i.x=-1!==o.indexOf("%")?t.offsetWidth*parseFloat(o)/100:parseFloat(o),i.y=-1!==a.indexOf("%")?t.offsetHeight*parseFloat(a)/100:parseFloat(a)),i}
1,wt=function(t){if(!1!==zt.cacheSVGData&&t._dCache&&t._dCache.lastUpdate===e.ticker.frame)return t._dCache;var i,n=t._dCache=t._dCache||{},r=tt(t),s=t.getBBox&&mt(t),o="svg"===(t.nodeName+"").toLowerCase();if(n.isSVG=s,n.isSVGRoot=o,n.borderBox="border-box"===r.boxSizing,n.computedStyle=r,o)(i=t.parentNode||y).insertBefore(w,t),n.offsetParent=w.offsetParent||y,i.removeChild(w);else if(s){for(i=t.parentNode;i&&"svg"!==(i.nodeName+"").toLowerCase();)i=i.parentNode;n.offsetParent=i}else n.offsetParent=t.offsetParent;return n},xt=function t(e,i,n,r){if(e===window||!e||!e.style||!e.parentNode)return[1,0,0,1,0,0];var o,a,c,h,d,f,p,m,g,v,b,w,x,C,T=e._dCache||wt(e),$=e.parentNode,S=$._dCache||wt($),k=T.computedStyle,E=T.isSVG?S.offsetParent:$.offsetParent;return o=T.isSVG&&-1!==(e.style[ct]+"").indexOf("matrix")?e.style[ct]:k?k.getPropertyValue(ht):e.currentStyle?e.currentStyle[ct]:"1,0,0,1,0,0",e.getBBox&&-1!==(e.getAttribute("transform")+"").indexOf("matrix")&&(o=e.getAttribute("transform")),(o=(o+"").match(/(?:\-|\.|\b)(\d|\.|e\-)+/g)||[1,0,0,1,0,0]).length>6&&(o=[o[0],o[1],o[4],o[5],o[12],o[13]]),r?o[4]=o[5]=0:T.isSVG&&(d=e._gsTransform)&&(d.xOrigin||d.yOrigin)&&(o[0]=parseFloat(o[0]),o[1]=parseFloat(o[1]),o[2]=parseFloat(o[2]),o[3]=parseFloat(o[3]),o[4]=parseFloat(o[4])-(d.xOrigin-(d.xOrigin*o[0]+d.yOrigin*o[2])),o[5]=parseFloat(o[5])-(d.yOrigin-(d.xOrigin*o[1]+d.yOrigin*o[3]))),i&&(void 0===s&&at(),c=T.isSVG||T.isSVGRoot?yt(e):e,T.isSVG?(h=e.getBBox(),v=S.isSVGRoot?{x:0,y:0}:$.getBBox(),c={offsetLeft:h.x-v.x,offsetTop:h.y-v.y,offsetParent:T.offsetParent}):T.isSVGRoot?(b=parseInt(k.borderTopWidth,10)||0,w=parseInt(k.borderLeftWidth,10)||0,x=(o[0]-s)*w+o[2]*b,C=o[1]*w+(o[3]-s)*b,f=i.x,p=i.y,m=f-(f*o[0]+p*o[2]),g=p-(f*o[1]+p*o[3]),o[4]=parseFloat(o[4])+m,o[5]=parseFloat(o[5])+g,i.x-=m,i.y-=g,f=c.scaleX,p=c.scaleY,i.x*=f,i.y*=p,o[0]*=f,o[1]*=p,o[2]*=f,o[3]*=p,gt||(i.x+=x,i.y+=C)):!l&&e.offsetParent&&(i.x+=parseInt(rt(e.offsetParent,"borderLeftWidth"),10)||0,i.y+=parseInt(rt(e.offsetParent,"borderTopWidth"),10)||0),a=$===y||$===_.body,o[4]=Number(o[4])+i.x+(c.offsetLeft||0)-n.x-(a?0:$.scrollLeft||0),o[5]=Number(o[5])+i.y+(c.offsetTop||0)-n.y-(a?0:$.scrollTop||0),$&&"fixed"===rt(e,"position",k)&&(o[4]+=V(),o[5]+=q()),!$||$===y||E!==c.offsetParent||S.isSVG||u&&"100100"!==t($).join("")||(c=S.isSVGRoot?yt($):$,o[4]-=c.offsetLeft||0,o[5]-=c.offsetTop||0,l||!S.offsetParent||T.isSVG||T.isSVGRoot||(o[4]-=parseInt(rt(S.offsetParent,"borderLeftWidth"),10)||0,o[5]-=parseInt(rt(S.offsetParent,"borderTopWidth"),10)||0))),o},Ct=function(t,e){if(!t||t===window||!t.parentNode)return[1,0,0,1,0,0];for(var i,n,r,s,o,a,l,u,c=bt(t,dt),h=bt(t.parentNode,ft),d=xt(t,c,h);(t=t.parentNode)&&t.parentNode&&t!==y;)c=h,h=bt(t.parentNode,c===dt?ft:dt),l=xt(t,c,h),i=d[0],n=d[1],r=d[2],s=d[3],o=d[4],a=d[5],d[0]=i*l[0]+n*l[2],d[1]=i*l[1]+n*l[3],d[2]=r*l[0]+s*l[2],d[3]=r*l[1]+s*l[3],d[4]=o*l[0]+a*l[2]+l[4],d[5]=o*l[1]+a*l[3]+l[5];return e&&(i=d[0],n=d[1],r=d[2],s=d[3],o=d[4],a=d[5],u=i*s-n*r,d[0]=s/u,d[1]=-n/u,d[2]=-r/u,d[3]=i/u,d[4]=(r*a-s*o)/u,d[5]=-(i*a-n*o)/u),d},Tt=function(t,e,i,n,r){t=K(t);var s=Ct(t,!1),o=e.x,a=e.y;return i&&(bt(t,e),o-=e.x,a-=e.y),(n=!0===n?e:n||{}).x=o*s[0]+a*s[2]+s[4],n.y=o*s[1]+a*s[3]+s[5],n},$t=function(t,e,i){var n=t.x*e[0]+t.y*e[2]+e[4],r=t.x*e[1]+t.y*e[3]+e[5];return t.x=n*i[0]+r*i[2]+i[4],t.y=n*i[1]+r*i[3]+i[5],t},St=function(t,e,i){if(!(t=K(t)))return null;e=K(e);var n,r,s,o,a,l,u,c,h,d,f,p,m,g,v,b,w,x,C,T,$,S,E=t.getBBox&&mt(t);if(t===window)o=q(),s=(r=V())+(y.clientWidth||t.innerWidth||_.body.clientWidth||0),a=o+((t.innerHeight||0)-20<y.clientHeight?y.clientHeight:t.innerHeight||_.body.clientHeight||0);else{if(void 0===e||e===window)return t.getBoundingClientRect();r=-(n=bt(t)).x,o=-n.y,E?(m=(p=t.getBBox()).width,g=p.height):"svg"!==(t.nodeName+"").toLowerCase()&&t.offsetWidth?(m=t.offsetWidth,g=t.offsetHeight):($=tt(t),m=parseFloat($.width),g=parseFloat($.height)),s=r+m,a=o+g,"svg"!==t.nodeName.toLowerCase()||k||(S=(v=yt(t)).computedStyle||{},x=(t.getAttribute("viewBox")||"0 0").split(" "),C=parseFloat(x[0]),T=parseFloat(x[1]),b=parseFloat(S.borderLeftWidth)||0,w=parseFloat(S.borderTopWidth)||0,s-=m-(m-b)/v.scaleX-C,a-=g-(g-w)/v.scaleY-T,r-=b/v.scaleX-C,o-=w/v.scaleY-T,$&&(s+=(parseFloat(S.borderRightWidth)+b)/v.scaleX,a+=(w+parseFloat(S.borderBottomWidth))/v.scaleY))}return t===e?{left:r,top:o,width:s-r,height:a-o}:(l=Ct(t),u=Ct(e,!0),c=$t({x:r,y:o},l,u),h=$t({x:s,y:o},l,u),d=$t({x:s,y:a},l,u),f=$t({x:r,y:a},l,u),r=Math.min(c.x,h.x,d.x,f.x),o=Math.min(c.y,h.y,d.y,f.y),M.x=M.y=0,i&&bt(e,M),{left:r+M.x,top:o+M.y,width:Math.max(c.x,h.x,d.x,f.x)-r,height:Math.max(c.y,h.y,d.y,f.y)-o})},kt=function(t){return!!(t&&t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0]))},Et="ontouchstart"in y&&"orientation"in window,Pt=function(t){for(var e=t.split(","),i=(void 0!==w.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==w.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),n={},r=8;--r>-1;)n[e[r]]=i[r],n[i[r]]=e[r];return n}
1("touchstart,touchmove,touchend,touchcancel"),Ot=function(t,e,i,n){t.addEventListener?t.addEventListener(Pt[e]||e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},At=function(t,e,i){t.removeEventListener?t.removeEventListener(Pt[e]||e,i):t.detachEvent&&t.detachEvent("on"+e,i)},Rt=function t(e){n=e.touches&&I<e.touches.length,At(e.target,"touchend",t)},It=function(t){n=t.touches&&I<t.touches.length,Ot(t.target,"touchend",Rt)},Lt=function(t,e,i,n,r,s){var o,a,l,u={};if(e)if(1!==r&&e instanceof Array){if(u.end=o=[],l=e.length,"object"==_typeof(e[0]))for(a=0;l>a;a++)o[a]=N(e[a],r);else for(a=0;l>a;a++)o[a]=e[a]*r;i+=1.1,n-=1.1}else u.end="function"==typeof e?function(i){var n,s,o=e.call(t,i);if(1!==r&&"object"==(void 0===o?"undefined":_typeof(o))){for(s in n={},o)n[s]=o[s]*r;o=n}return o}:e;return(i||0===i)&&(u.max=i),(n||0===n)&&(u.min=n),s&&(u.velocity=0),u},Dt=function t(e){var i;return!(!e||!e.getAttribute||"BODY"===e.nodeName)&&(!("true"!==(i=e.getAttribute("data-clickable"))&&("false"===i||!e.onclick&&!R.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||t(e.parentNode))},Mt=function(t,e){for(var i,n=t.length;--n>-1;)(i=t[n]).ondragstart=i.onselectstart=e?null:C,J(i,"userSelect",e?"text":"none")},Ft=function(){var t,e=_.createElement("div"),i=_.createElement("div"),n=i.style,r=_.body||w;return n.display="inline-block",n.position="relative",e.style.cssText=i.innerHTML="width:90px; height:40px; padding:10px; overflow:auto; visibility: hidden",e.appendChild(i),r.appendChild(e),c=i.offsetHeight+18>e.scrollHeight,n.width="100%",ct||(n.paddingRight="500px",t=e.scrollLeft=e.scrollWidth-e.clientWidth,n.left="-90px",t=t!==e.scrollLeft),r.removeChild(e),t}(),Nt=function(t,i){t=K(t),i=i||{};var n,r,s,o,a,l,u=_.createElement("div"),h=u.style,d=t.firstChild,f=0,p=0,m=t.scrollTop,g=t.scrollLeft,v=t.scrollWidth,y=t.scrollHeight,b=0,w=0,x=0;lt&&!1!==i.force3D?(a="translate3d(",l="px,0px)"):ct&&(a="translate(",l="px)"),this.scrollTop=function(t,e){return arguments.length?void this.top(-t,e):-this.top()},this.scrollLeft=function(t,e){return arguments.length?void this.left(-t,e):-this.left()},this.left=function(n,r){if(!arguments.length)return-(t.scrollLeft+p);var s=t.scrollLeft-g,o=p;return(s>2||-2>s)&&!r?(g=t.scrollLeft,e.killTweensOf(this,!0,{left:1,scrollLeft:1}),this.left(-g),void(i.onKill&&i.onKill())):(0>(n=-n)?(p=n-.5|0,n=0):n>w?(p=n-w|0,n=w):p=0,(p||o)&&(a?this._suspendTransforms||(h[ct]=a+-p+"px,"+-f+l):h.left=-p+"px",Ft&&p+b>=0&&(h.paddingRight=p+b+"px")),t.scrollLeft=0|n,void(g=t.scrollLeft))},this.top=function(n,r){if(!arguments.length)return-(t.scrollTop+f);var s=t.scrollTop-m,o=f;return(s>2||-2>s)&&!r?(m=t.scrollTop,e.killTweensOf(this,!0,{top:1,scrollTop:1}),this.top(-m),void(i.onKill&&i.onKill())):(0>(n=-n)?(f=n-.5|0,n=0):n>x?(f=n-x|0,n=x):f=0,(f||o)&&(a?this._suspendTransforms||(h[ct]=a+-p+"px,"+-f+l):h.top=-f+"px"),t.scrollTop=0|n,void(m=t.scrollTop))},this.maxScrollTop=function(){return x},this.maxScrollLeft=function(){return w},this.disable=function(){for(d=u.firstChild;d;)o=d.nextSibling,t.appendChild(d),d=o;t===u.parentNode&&t.removeChild(u)},this.enable=function(){if((d=t.firstChild)!==u){for(;d;)o=d.nextSibling,u.appendChild(d),d=o;t.appendChild(u),this.calibrate()}},this.calibrate=function(e){var i,o,a=t.clientWidth===n;m=t.scrollTop,g=t.scrollLeft,(!a||t.clientHeight!==r||u.offsetHeight!==s||v!==t.scrollWidth||y!==t.scrollHeight||e)&&((f||p)&&(i=this.left(),o=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),(!a||e)&&(h.display="block",h.width="auto",h.paddingRight="0px",(b=Math.max(0,t.scrollWidth-t.clientWidth))&&(b+=rt(t,"paddingLeft")+(c?rt(t,"paddingRight"):0))),h.display="inline-block",h.position="relative",h.overflow="visible",h.verticalAlign="top",h.width="100%",h.paddingRight=b+"px",c&&(h.paddingBottom=rt(t,"paddingBottom",!0)),k&&(h.zoom="1"),n=t.clientWidth,r=t.clientHeight,v=t.scrollWidth,y=t.scrollHeight,w=t.scrollWidth-n,x=t.scrollHeight-r,s=u.offsetHeight,h.display="block",(i||o)&&(this.left(i),this.top(o)))},this.content=u,this.element=t,this._suspendTransforms=!1,this.enable()},zt=function s(o,a){t.call(this,o),o=K(o),r||(r=m.com.greensock.plugins.ThrowPropsPlugin),this.vars=a=N(a||{}),this.target=o,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(a.dragResistance)||0,this.edgeResistance=isNaN(a.edgeResistance)?1:parseFloat(a.edgeResistance)||0,this.lockAxis=a.lockAxis,this.autoScroll=a.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!a.allowEventDefault;var l,u,c,g,v,b,w,C,P,R,z,H,q,V,W,Z,tt,et,it,nt,at,lt,ut,ct,ht,dt,ft,pt,mt,gt,vt,_t,yt=(a.type||(k?"top,left":"x,y")).toLowerCase(),bt=-1!==yt.indexOf("x")||-1!==yt.indexOf("y"),wt=-1!==yt.indexOf("rotation"),xt=wt?"rotation":bt?"x":"left",$t=bt?"y":"top",St=-1!==yt.indexOf("x")||-1!==yt.indexOf("left")||"scroll"===yt,kt=-1!==yt.indexOf("y")||-1!==yt.indexOf("top")||"scroll"===yt,Rt=a.minimumMovement||2,Ft=this,zt=function(t){if("string"==typeof t&&(t=e.selector(t)),!t||t.nodeType)return[t];var i,n=[],r=t.length;for(i=0;i!==r;n.push(t[i++]));return n}(a.trigger||a.handle||o),jt={},Bt=0,qt=!1,Vt=a.clickableTest||Dt,Ut=0,Yt=function(t){if(Ft.autoScroll&&Ft.isDragging&&(qt||et)){var e,i,n,r,s,a,l,c,h=o,d=15*Ft.autoScroll;for(qt=!1,F.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=y.scrollTop?y.scrollTop:_.body.scrollTop,F.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=y.scrollLeft?y.scrollLeft:_.body.scrollLeft,r=Ft.pointerX-F.scrollLeft,s=Ft.pointerY-F.scrollTop;h&&!i;)e=(i=X(h.parentNode))?F:h.parentNode,n=i?{bottom:Math.max(y.clientHeight,window.innerHeight||0),right:Math.max(y.clientWidth,window.innerWidth||0),left
1:0,top:0}:e.getBoundingClientRect(),a=l=0,kt&&(0>(c=e._gsMaxScrollY-e.scrollTop)?l=c:s>n.bottom-40&&c?(qt=!0,l=Math.min(c,d*(1-Math.max(0,n.bottom-s)/40)|0)):s<n.top+40&&e.scrollTop&&(qt=!0,l=-Math.min(e.scrollTop,d*(1-Math.max(0,s-n.top)/40)|0)),l&&(e.scrollTop+=l)),St&&(0>(c=e._gsMaxScrollX-e.scrollLeft)?a=c:r>n.right-40&&c?(qt=!0,a=Math.min(c,d*(1-Math.max(0,n.right-r)/40)|0)):r<n.left+40&&e.scrollLeft&&(qt=!0,a=-Math.min(e.scrollLeft,d*(1-Math.max(0,r-n.left)/40)|0)),a&&(e.scrollLeft+=a)),i&&(a||l)&&(window.scrollTo(e.scrollLeft,e.scrollTop),oe(Ft.pointerX+a,Ft.pointerY+l)),h=e}if(et){var f=Ft.x,p=Ft.y,m=1e-6;m>f&&f>-m&&(f=0),m>p&&p>-m&&(p=0),wt?(Ft.deltaX=f-ft.data.rotation,ft.data.rotation=Ft.rotation=f,ft.setRatio(1)):u?(kt&&(Ft.deltaY=p-u.top(),u.top(p)),St&&(Ft.deltaX=f-u.left(),u.left(f))):bt?(kt&&(Ft.deltaY=p-ft.data.y,ft.data.y=p),St&&(Ft.deltaX=f-ft.data.x,ft.data.x=f),ft.setRatio(1)):(kt&&(Ft.deltaY=p-parseFloat(o.style.top||0),o.style.top=p+"px"),St&&(Ft.deltaY=f-parseFloat(o.style.left||0),o.style.left=f+"px")),!C||t||gt||(gt=!0,st(Ft,"drag","onDrag"),gt=!1)}et=!1},Xt=function(t,i){var n,r=Ft.x,s=Ft.y;o._gsTransform||!bt&&!wt||e.set(o,{x:"+=0",overwrite:!1}),bt?(Ft.y=o._gsTransform.y,Ft.x=o._gsTransform.x):wt?Ft.x=Ft.rotation=o._gsTransform.rotation:u?(Ft.y=u.top(),Ft.x=u.left()):(Ft.y=parseInt(o.style.top,10)||0,Ft.x=parseInt(o.style.left,10)||0),(nt||at||lt)&&!i&&(Ft.isDragging||Ft.isThrowing)&&(lt&&(M.x=Ft.x,M.y=Ft.y,(n=lt(M)).x!==Ft.x&&(Ft.x=n.x,et=!0),n.y!==Ft.y&&(Ft.y=n.y,et=!0)),nt&&((n=nt(Ft.x))!==Ft.x&&(Ft.x=n,wt&&(Ft.rotation=n),et=!0)),at&&((n=at(Ft.y))!==Ft.y&&(Ft.y=n),et=!0)),et&&Yt(!0),t||(Ft.deltaX=Ft.x-r,Ft.deltaY=Ft.y-s,st(Ft,"throwupdate","onThrowUpdate"))},Wt=function(){var t,e,i,n;w=!1,u?(u.calibrate(),Ft.minX=R=-u.maxScrollLeft(),Ft.minY=H=-u.maxScrollTop(),Ft.maxX=P=Ft.maxY=z=0,w=!0):a.bounds&&(t=ot(a.bounds,o.parentNode),wt?(Ft.minX=R=t.left,Ft.maxX=P=t.left+t.width,Ft.minY=H=Ft.maxY=z=0):void 0!==a.bounds.maxX||void 0!==a.bounds.maxY?(t=a.bounds,Ft.minX=R=t.minX,Ft.minY=H=t.minY,Ft.maxX=P=t.maxX,Ft.maxY=z=t.maxY):(e=ot(o,o.parentNode),Ft.minX=R=rt(o,xt)+t.left-e.left,Ft.minY=H=rt(o,$t)+t.top-e.top,Ft.maxX=P=R+(t.width-e.width),Ft.maxY=z=H+(t.height-e.height)),R>P&&(Ft.minX=P,Ft.maxX=P=R,R=Ft.minX),H>z&&(Ft.minY=z,Ft.maxY=z=H,H=Ft.minY),wt&&(Ft.minRotation=R,Ft.maxRotation=P),w=!0),a.liveSnap&&(n=(i=!0===a.liveSnap?a.snap||{}:a.liveSnap)instanceof Array||"function"==typeof i,wt?(nt=ie(n?i:i.rotation,R,P,1),at=null):i.points?lt=ne(n?i:i.points,R,P,H,z,i.radius,u?-1:1):(St&&(nt=ie(n?i:i.x||i.left||i.scrollLeft,R,P,u?-1:1)),kt&&(at=ie(n?i:i.y||i.top||i.scrollTop,H,z,u?-1:1))))},Gt=function(){Ft.isThrowing=!1,st(Ft,"throwcomplete","onThrowComplete")},Qt=function(){Ft.isThrowing=!1},Kt=function(t,e){var i,n,s,l;t&&r?(!0===t&&(n=(i=a.snap||a.liveSnap||{})instanceof Array||"function"==typeof i,t={resistance:(a.throwResistance||a.resistance||1e3)/(wt?10:1)},wt?t.rotation=Lt(Ft,n?i:i.rotation,P,R,1,e):(St&&(t[xt]=Lt(Ft,n?i:i.points||i.x||i.left||i.scrollLeft,P,R,u?-1:1,e||"x"===Ft.lockedAxis)),kt&&(t[$t]=Lt(Ft,n?i:i.points||i.y||i.top||i.scrollTop,z,H,u?-1:1,e||"y"===Ft.lockedAxis)),(i.points||i instanceof Array&&"object"==_typeof(i[0]))&&(t.linkedProps=xt+","+$t,t.radius=i.radius))),Ft.isThrowing=!0,l=isNaN(a.overshootTolerance)?1===a.edgeResistance?0:1-Ft.edgeResistance+.2:a.overshootTolerance,Ft.tween=s=r.to(u||o,{throwProps:t,ease:a.ease||m.Power3.easeOut,onComplete:Gt,onOverwrite:Qt,onUpdate:a.fastMode?st:Xt,onUpdateParams:a.fastMode?[Ft,"onthrowupdate","onThrowUpdate"]:i&&i.radius?[!1,!0]:x},isNaN(a.maxDuration)?2:a.maxDuration,isNaN(a.minDuration)?0===l?0:.5:a.minDuration,l),a.fastMode||(u&&(u._suspendTransforms=!0),s.render(s.duration(),!0,!0),Xt(!0,!0),Ft.endX=Ft.x,Ft.endY=Ft.y,wt&&(Ft.endRotation=Ft.x),s.play(0),Xt(!0,!0),u&&(u._suspendTransforms=!1))):w&&Ft.applyBounds()},Zt=function(t){var e,i,n,r,s,a,l,u,h,d=ht||[1,0,0,1,0,0];ht=Ct(o.parentNode,!0),t&&Ft.isPressed&&d.join(",")!==ht.join(",")&&(e=d[0],i=d[1],n=d[2],r=d[3],s=d[4],a=d[5],h=c*(-i/(l=e*r-i*n))+g*(e/l)+-(e*a-i*s)/l,g=(u=c*(r/l)+g*(-n/l)+(n*a-r*s)/l)*ht[1]+h*ht[3]+ht[5],c=u*ht[0]+h*ht[2]+ht[4]),ht[1]||ht[2]||1!=ht[0]||1!=ht[3]||0!=ht[4]||0!=ht[5]||(ht=null)},Jt=function(){var t=1-Ft.edgeResistance;Zt(!1),ht&&(c=Ft.pointerX*ht[0]+Ft.pointerY*ht[2]+ht[4],g=Ft.pointerX*ht[1]+Ft.pointerY*ht[3]+ht[5]),et&&(oe(Ft.pointerX,Ft.pointerY),Yt(!0)),u?(Wt(),b=u.top(),v=u.left()):(te()?(Xt(!0,!0),Wt()):Ft.applyBounds(),wt?(tt=Tt(o,{x:0,y:0}),Xt(!0,!0),v=Ft.x,b=Ft.y=Math.atan2(tt.y-Ft.pointerY,Ft.pointerX-tt.x)*T):(o.parentNode&&o.parentNode.scrollTop||0,o.parentNode&&o.parentNode.scrollLeft||0,b=rt(o,$t),v=rt(o,xt))),w&&t&&(v>P?v=P+(v-P)/t:R>v&&(v=R-(R-v)/t),wt||(b>z?b=z+(b-z)/t:H>b&&(b=H-(H-b)/t))),Ft.startX=v,Ft.startY=b},te=function(){return Ft.tween&&Ft.tween.isActive()},ee=function(){!E.parentNode||te()||Ft.isDragging||E.parentNode.removeChild(E)}
1,ie=function(t,e,i,n){return"function"==typeof t?function(r){var s=Ft.isPressed?1-Ft.edgeResistance:1;return t.call(Ft,r>i?i+(r-i)*s:e>r?e+(r-e)*s:r)*n}:t instanceof Array?function(n){for(var r,s,o=t.length,a=0,l=$;--o>-1;)0>(s=(r=t[o])-n)&&(s=-s),l>s&&r>=e&&i>=r&&(a=o,l=s);return t[a]}:isNaN(t)?function(t){return t}:function(){return t*n}},ne=function(t,e,i,n,r,s,o){return s=s||$,"function"==typeof t?function(a){var l,u,c,h=Ft.isPressed?1-Ft.edgeResistance:1,d=a.x,f=a.y;return a.x=d=d>i?i+(d-i)*h:e>d?e+(d-e)*h:d,a.y=f=f>r?r+(f-r)*h:n>f?n+(f-n)*h:f,(l=t.call(Ft,a))!==a&&(a.x=l.x,a.y=l.y),1!==o&&(a.x*=o,a.y*=o),$>s&&(u=a.x-d,c=a.y-f,Math.sqrt(u*u+c*c)>s&&(a.x=d,a.y=f)),a}:t instanceof Array?function(e){for(var i,n,r,o,a=t.length,l=0,u=$;--a>-1;)i=(r=t[a]).x-e.x,n=r.y-e.y,u>(o=Math.sqrt(i*i+n*n))&&(l=a,u=o);return s>=u?t[l]:e}:function(t){return t}},re=function(t){var i;if(!(!l||Ft.isPressed||!t||("mousedown"===t.type||"pointerdown"===t.type)&&S()-Ut<30&&Pt[Ft.pointerEvent.type])){if(dt=te(),Ft.pointerEvent=t,Pt[t.type]?(ct=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:_,Ot(ct,"touchend",ae),Ot(ct,"touchmove",se),Ot(ct,"touchcancel",ae),Ot(_,"touchstart",It)):(ct=null,Ot(_,"mousemove",se)),mt=null,Ot(_,"mouseup",ae),t&&t.target&&Ot(t.target,"mouseup",ae),ut=Vt.call(Ft,t.target)&&!a.dragClickables)return Ot(t.target,"change",ae),st(Ft,"press","onPress"),void Mt(zt,!0);if(pt=!(!ct||St===kt||!1===Ft.vars.allowNativeTouchScrolling)&&(St?"y":"x"),k?t=Q(t,!0):pt||Ft.allowEventDefault||(t.preventDefault(),t.preventManipulation&&t.preventManipulation()),t.changedTouches?(t=W=t.changedTouches[0],Z=t.identifier):t.pointerId?Z=t.pointerId:W=Z=null,I++,j(Yt),g=Ft.pointerY=t.pageY,c=Ft.pointerX=t.pageX,(pt||Ft.autoScroll)&&G(o.parentNode),o.parentNode&&(u||Ft.autoScroll&&!wt&&o.parentNode._gsMaxScrollX&&!E.parentNode)&&!o.getBBox&&(E.style.width=o.parentNode.scrollWidth+"px",o.parentNode.appendChild(E)),Jt(),Ft.tween&&Ft.tween.kill(),Ft.isThrowing=!1,e.killTweensOf(u||o,!0,jt),u&&e.killTweensOf(o,!0,{scrollTo:1}),Ft.tween=Ft.lockedAxis=null,(a.zIndexBoost||!wt&&!u&&!1!==a.zIndexBoost)&&(o.style.zIndex=s.zIndex++),Ft.isPressed=!0,C=!(!a.onDrag&&!Ft._listeners.drag),!wt)for(i=zt.length;--i>-1;)J(zt[i],"cursor",a.cursor||"move");st(Ft,"press","onPress")}},se=function(t){var e,i,r,s,o,a,u=t;if(l&&!n&&Ft.isPressed&&t){if(Ft.pointerEvent=t,e=t.changedTouches){if((t=e[0])!==W&&t.identifier!==Z){for(s=e.length;--s>-1&&(t=e[s]).identifier!==Z;);if(0>s)return}}else if(t.pointerId&&Z&&t.pointerId!==Z)return;if(k)t=Q(t,!0);else{if(ct&&pt&&!mt&&(i=t.pageX,r=t.pageY,ht&&(s=i*ht[0]+r*ht[2]+ht[4],r=i*ht[1]+r*ht[3]+ht[5],i=s),((o=Math.abs(i-c))!==(a=Math.abs(r-g))&&(o>Rt||a>Rt)||L&&pt===mt)&&(mt=o>a&&St?"x":"y",!1!==Ft.vars.lockAxisOnTouchScroll&&(Ft.lockedAxis="x"===mt?"y":"x","function"==typeof Ft.vars.onLockAxis&&Ft.vars.onLockAxis.call(Ft,u)),L&&pt===mt)))return void ae(u);Ft.allowEventDefault||pt&&(!mt||pt===mt)||!1===u.cancelable||(u.preventDefault(),u.preventManipulation&&u.preventManipulation())}Ft.autoScroll&&(qt=!0),oe(t.pageX,t.pageY)}},oe=function(t,e){var i,n,r,s,o,a,l=1-Ft.dragResistance,u=1-Ft.edgeResistance;Ft.pointerX=t,Ft.pointerY=e,wt?(s=Math.atan2(tt.y-e,t-tt.x)*T,o=Ft.y-s,Ft.y=s,o>180?b-=360:-180>o&&(b+=360),r=v+(b-s)*l):(ht&&(a=t*ht[0]+e*ht[2]+ht[4],e=t*ht[1]+e*ht[3]+ht[5],t=a),i=t-c,Rt>(n=e-g)&&n>-Rt&&(n=0),Rt>i&&i>-Rt&&(i=0),(Ft.lockAxis||Ft.lockedAxis)&&(i||n)&&((a=Ft.lockedAxis)||(Ft.lockedAxis=a=St&&Math.abs(i)>Math.abs(n)?"y":kt?"x":null,a&&"function"==typeof Ft.vars.onLockAxis&&Ft.vars.onLockAxis.call(Ft,Ft.pointerEvent)),"y"===a?n=0:"x"===a&&(i=0)),r=v+i*l,s=b+n*l),(nt||at||lt)&&(Ft.x!==r||Ft.y!==s&&!wt)?(lt&&(M.x=r,M.y=s,r=(a=lt(M)).x,s=a.y),nt&&(r=nt(r)),at&&(s=at(s))):w&&(r>P?r=P+(r-P)*u:R>r&&(r=R+(r-R)*u),wt||(s>z?s=z+(s-z)*u:H>s&&(s=H+(s-H)*u))),wt||(r=Math.round(r),s=Math.round(s)),(Ft.x!==r||Ft.y!==s&&!wt)&&(wt?(Ft.endRotation=Ft.x=Ft.endX=r,et=!0):(kt&&(Ft.y=Ft.endY=s,et=!0),St&&(Ft.x=Ft.endX=r,et=!0)),!Ft.isDragging&&Ft.isPressed&&(Ft.isDragging=!0,st(Ft,"dragstart","onDragStart")))}
1,ae=function t(i,n){if(l&&Ft.isPressed&&(!i||null==Z||n||!(i.pointerId&&i.pointerId!==Z||i.changedTouches&&!function(t,e){for(var i=t.length;--i>-1;)if(t[i].identifier===e)return!0;return!1}(i.changedTouches,Z)))){Ft.isPressed=!1;var r,s,u,c,h,d=i,f=Ft.isDragging,p=e.delayedCall(.001,ee);if(ct?(At(ct,"touchend",t),At(ct,"touchmove",se),At(ct,"touchcancel",t),At(_,"touchstart",It)):At(_,"mousemove",se),At(_,"mouseup",t),i&&i.target&&At(i.target,"mouseup",t),et=!1,ut)return i&&At(i.target,"change",t),Mt(zt,!1),st(Ft,"release","onRelease"),st(Ft,"click","onClick"),void(ut=!1);if(B(Yt),!wt)for(s=zt.length;--s>-1;)J(zt[s],"cursor",a.cursor||"move");if(f&&(Bt=D=S(),Ft.isDragging=!1),I--,i){if(k&&(i=Q(i,!1)),(r=i.changedTouches)&&((i=r[0])!==W&&i.identifier!==Z)){for(s=r.length;--s>-1&&(i=r[s]).identifier!==Z;);if(0>s)return}Ft.pointerEvent=d,Ft.pointerX=i.pageX,Ft.pointerY=i.pageY}return d&&!f?(dt&&(a.snap||a.bounds)&&Kt(a.throwProps),st(Ft,"release","onRelease"),L&&"touchmove"===d.type||(st(Ft,"click","onClick"),c=d.target||d.srcElement||o,Ut=S(),h=function(){Ut!==vt&&Ft.enabled()&&!Ft.isPressed&&(c.click?c.click():_.createEvent&&((u=_.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,window,1,Ft.pointerEvent.screenX,Ft.pointerEvent.screenY,Ft.pointerX,Ft.pointerY,!1,!1,!1,!1,0,null),c.dispatchEvent(u)))},L||d.defaultPrevented||e.delayedCall(1e-5,h))):(Kt(a.throwProps),k||Ft.allowEventDefault||!d||!a.dragClickables&&Vt.call(Ft,d.target)||!f||pt&&(!mt||pt!==mt)||!1===d.cancelable||(d.preventDefault(),d.preventManipulation&&d.preventManipulation()),st(Ft,"release","onRelease")),te()&&p.duration(Ft.tween.duration()),f&&st(Ft,"dragend","onDragEnd"),!0}},le=function(t){if(t&&Ft.isDragging&&!u){var e=t.target||t.srcElement||o.parentNode,i=e.scrollLeft-e._gsScrollX,n=e.scrollTop-e._gsScrollY;(i||n)&&(ht?(c-=i*ht[0]+n*ht[2],g-=n*ht[3]+i*ht[1]):(c-=i,g-=n),e._gsScrollX+=i,e._gsScrollY+=n,oe(Ft.pointerX,Ft.pointerY))}},ue=function(t){var e=S(),i=40>e-Ut,n=40>e-Bt,r=i&&vt===Ut,s=!!t.preventDefault,o=Ft.pointerEvent&&Ft.pointerEvent.defaultPrevented,a=i&&_t===Ut,l=t.isTrusted||null==t.isTrusted&&i&&r;return s&&(r||n&&!1!==Ft.vars.suppressClickOnDrag)&&t.stopImmediatePropagation(),!i||Ft.pointerEvent&&Ft.pointerEvent.defaultPrevented||r&&l===a?void((Ft.isPressed||n||i)&&(s?l&&t.detail&&i&&!o||(t.preventDefault(),t.preventManipulation&&t.preventManipulation()):t.returnValue=!1)):(l&&r&&(_t=Ut),void(vt=Ut))};(it=s.get(this.target))&&it.kill(),this.startDrag=function(t){re(t),Ft.isDragging||(Ft.isDragging=!0,st(Ft,"dragstart","onDragStart"))},this.drag=se,this.endDrag=function(t){ae(t,!0)},this.timeSinceDrag=function(){return Ft.isDragging?0:(S()-Bt)/1e3},this.hitTest=function(t,e){return s.hitTest(Ft.target,t,e)},this.getDirection=function(t,e){var i,n,s,o,a,l,u="velocity"===t&&r?t:"object"!=(void 0===t?"undefined":_typeof(t))||wt?"start":"element";return"element"===u&&(a=Ht(Ft.target),l=Ht(t)),i="start"===u?Ft.x-v:"velocity"===u?r.getVelocity(this.target,xt):a.left+a.width/2-(l.left+l.width/2),wt?0>i?"counter-clockwise":"clockwise":(e=e||2,n="start"===u?Ft.y-b:"velocity"===u?r.getVelocity(this.target,$t):a.top+a.height/2-(l.top+l.height/2),o=1/e>(s=Math.abs(i/n))?"":0>i?"left":"right",e>s&&(""!==o&&(o+="-"),o+=0>n?"up":"down"),o)},this.applyBounds=function(t){var e,i,n,r,s,l;if(t&&a.bounds!==t)return a.bounds=t,Ft.update(!0);if(Xt(!0),Wt(),w){if(e=Ft.x,i=Ft.y,e>P?e=P:R>e&&(e=R),i>z?i=z:H>i&&(i=H),(Ft.x!==e||Ft.y!==i)&&(n=!0,Ft.x=Ft.endX=e,wt?Ft.endRotation=e:Ft.y=Ft.endY=i,et=!0,Yt(!0),Ft.autoScroll&&!Ft.isDragging))for(G(o.parentNode),r=o,F.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=y.scrollTop?y.scrollTop:_.body.scrollTop,F.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=y.scrollLeft?y.scrollLeft:_.body.scrollLeft;r&&!l;)s=(l=X(r.parentNode))?F:r.parentNode,kt&&s.scrollTop>s._gsMaxScrollY&&(s.scrollTop=s._gsMaxScrollY),St&&s.scrollLeft>s._gsMaxScrollX&&(s.scrollLeft=s._gsMaxScrollX),r=s;Ft.isThrowing&&(n||Ft.endX>P||Ft.endX<R||Ft.endY>z||Ft.endY<H)&&Kt(a.throwProps,n)}return Ft}
1,this.update=function(t,e,i){var n=Ft.x,r=Ft.y;return Zt(!e),t?Ft.applyBounds():(et&&i&&Yt(!0),Xt(!0)),e&&(oe(Ft.pointerX,Ft.pointerY),et&&Yt(!0)),Ft.isPressed&&!e&&(St&&Math.abs(n-Ft.x)>.01||kt&&Math.abs(r-Ft.y)>.01&&!wt)&&Jt(),Ft.autoScroll&&(G(o.parentNode),qt=Ft.isDragging,Yt(!0)),Ft.autoScroll&&(Y(o,le),U(o,le)),Ft},this.enable=function(t){var n,s,c;if("soft"!==t){for(s=zt.length;--s>-1;)c=zt[s],Ot(c,"mousedown",re),Ot(c,"touchstart",re),Ot(c,"click",ue,!0),wt||J(c,"cursor",a.cursor||"move"),J(c,"touchCallout","none"),J(c,"touchAction",St===kt?"none":St?"pan-y":"pan-x");Mt(zt,!1)}return U(o,le),l=!0,r&&"soft"!==t&&r.track(u||o,bt?"x,y":wt?"rotation":"top,left"),u&&u.enable(),o._gsDragID=n="d"+A++,O[n]=this,u&&(u.element._gsDragID=n),e.set(o,{x:"+=0",overwrite:!1}),ft={t:o,data:k?V:o._gsTransform,tween:{},setRatio:k?function(){e.set(o,q)}:i._internals.setTransformRatio||i._internals.set3DTransformRatio},Jt(),Ft.update(!0),Ft},this.disable=function(t){var e,i,n=Ft.isDragging;if(!wt)for(e=zt.length;--e>-1;)J(zt[e],"cursor",null);if("soft"!==t){for(e=zt.length;--e>-1;)i=zt[e],J(i,"touchCallout",null),J(i,"touchAction",null),At(i,"mousedown",re),At(i,"touchstart",re),At(i,"click",ue);Mt(zt,!0),ct&&(At(ct,"touchcancel",ae),At(ct,"touchend",ae),At(ct,"touchmove",se)),At(_,"mouseup",ae),At(_,"mousemove",se)}return Y(o,le),l=!1,r&&"soft"!==t&&r.untrack(u||o,bt?"x,y":wt?"rotation":"top,left"),u&&u.disable(),B(Yt),Ft.isDragging=Ft.isPressed=ut=!1,n&&st(Ft,"dragend","onDragEnd"),Ft},this.enabled=function(t,e){return arguments.length?t?Ft.enable(e):Ft.disable(e):l},this.kill=function(){return Ft.isThrowing=!1,e.killTweensOf(u||o,!0,jt),Ft.disable(),delete O[o._gsDragID],Ft},-1!==yt.indexOf("scroll")&&(u=this.scrollProxy=new Nt(o,function(t,e){var i;for(i in e)void 0===t[i]&&(t[i]=e[i]);return t}({onKill:function(){Ft.isPressed&&ae(null)}},a)),o.style.overflowY=kt&&!Et?"auto":"hidden",o.style.overflowX=St&&!Et?"auto":"hidden",o=u.content),!1!==a.force3D&&e.set(o,{force3D:!0}),wt?jt.rotation=1:(St&&(jt[xt]=1),kt&&(jt[$t]=1)),wt?(V=(q=p).css,q.overwrite=!1):bt&&(V=(q=St&&kt?h:St?d:f).css,q.overwrite=!1),this.enable()},jt=zt.prototype=new t;jt.constructor=zt,jt.pointerX=jt.pointerY=jt.startX=jt.startY=jt.deltaX=jt.deltaY=0,jt.isDragging=jt.isPressed=!1,zt.version="0.15.0",zt.zIndex=1e3,Ot(_,"touchcancel",function(){}),Ot(_,"contextmenu",function(t){var e;for(e in O)O[e].isPressed&&O[e].endDrag()}),zt.create=function(t,i){"string"==typeof t&&(t=e.selector(t));for(var n=t&&0!==t.length?kt(t)?function(t){var e,i,n,r=[],s=t.length;for(e=0;s>e;e++)if(i=t[e],kt(i))for(n=i.length,n=0;n<i.length;n++)r.push(i[n]);else i&&0!==i.length&&r.push(i);return r}(t):[t]:[],r=n.length;--r>-1;)n[r]=new zt(n[r],i);return n},zt.get=function(t){return O[(K(t)||{})._gsDragID]},zt.timeSinceDrag=function(){return(S()-D)/1e3};var Bt={},Ht=function(t,e){if(t===window)return Bt.left=Bt.top=0,Bt.width=Bt.right=y.clientWidth||t.innerWidth||_.body.clientWidth||0,Bt.height=Bt.bottom=(t.innerHeight||0)-20<y.clientHeight?y.clientHeight:t.innerHeight||_.body.clientHeight||0,Bt;var i=t.pageX!==e?{left:t.pageX-V(),top:t.pageY-q(),right:t.pageX-V()+1,bottom:t.pageY-q()+1}:t.nodeType||t.left===e||t.top===e?k?function(t){var e,i,n=0,r=0;for(e=(t=K(t)).offsetWidth,i=t.offsetHeight;t;)n+=t.offsetTop,r+=t.offsetLeft,t=t.offsetParent;return{top:n,left:r,width:e,height:i}}(t):K(t).getBoundingClientRect():t;return i.right===e&&i.width!==e?(i.right=i.left+i.width,i.bottom=i.top+i.height):i.width===e&&(i={width:i.right-i.left,height:i.bottom-i.top,right:i.right,left:i.left,bottom:i.bottom,top:i.top}),i};return zt.hitTest=function(t,e,i){if(t===e)return!1;var n,r,s,o=Ht(t),a=Ht(e),l=a.left>o.right||a.right<o.left||a.top>o.bottom||a.bottom<o.top;return l||!i?!l:(s=-1!==(i+"").indexOf("%"),i=parseFloat(i)||0,(n={left:Math.max(o.left,a.left),top:Math.max(o.top,a.top)}).width=Math.min(o.right,a.right)-n.left,n.height=Math.min(o.bottom,a.bottom)-n.top,!(n.width<0||n.height<0)&&(s?(i*=.01,(r=n.width*n.height)>=o.width*o.height*i||r>=a.width*a.height*i):n.width>i&&n.height>i))},E.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;",zt},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope).Draggable};"function"==typeof define&&define.amd?define(["TweenLite","CSSPlugin"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),require("../plugins/CSSPlugin.js"),module.exports=e())}();var _gsScope;_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t,e,i,n,r,s,o,a,l,u,c,h,d,f,p,m;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,
1i){var n=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},r=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r.call(e[i],i):r[i%r.length];delete t.cycle},s=function t(e,n,r){i.call(this,e,n,r),this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=t.prototype.render},o=1e-10,a=i._internals,l=a.isSelector,u=a.isArray,c=s.prototype=i.to({},.1,{}),h=[];s.version="1.18.2",c.constructor=s,c.kill()._gc=!1,s.killTweensOf=s.killDelayedCallsTo=i.killTweensOf,s.getTweensOf=i.getTweensOf,s.lagSmoothing=i.lagSmoothing,s.ticker=i.ticker,s.render=i.render,c.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},c.updateTo=function(t,e){var n,r=this.ratio,s=this.vars.immediateRender||t.immediateRender;for(n in e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),t)this.vars[n]=t[n];if(this._initted||s)if(e)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var o=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(o,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||s)for(var a,l=1/(1-r),u=this._firstPT;u;)a=u.s+u.c,u.c*=l,u.s=a-u.c,u=u._next;return this},c.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,r,s,l,u,c,h,d,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,m=this._totalTime,g=this._cycle,v=this._duration,_=this._rawPrevTime;if(t>=f-1e-7?(this._totalTime=f,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=v,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===v&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>_||0>=t&&t>=-1e-7||_===o&&"isPause"!==this.data)&&_!==t&&(i=!0,_>o&&(r="onReverseComplete")),this._rawPrevTime=d=!e||t||_===t?t:o)):1e-7>t?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==m||0===v&&_>0)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===v&&(this._initted||!this.vars.lazy||i)&&(_>=0&&(i=!0),this._rawPrevTime=d=!e||t||_===t?t:o)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=v+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!=(1&this._cycle)&&(this._time=v-this._time),this._time>v?this._time=v:this._time<0&&(this._time=0)),this._easeType?(u=this._time/v,c=this._easeType,h=this._easePower,(1===c||3===c&&u>=.5)&&(u=1-u),3===c&&(u*=2),1===h?u*=u:2===h?u*=u*u:3===h?u*=u*u*u:4===h&&(u*=u*u*u*u),1===c?this.ratio=1-u:2===c?this.ratio=u:this._time/v<.5?this.ratio=u/2:this.ratio=1-u/2):this.ratio=this._ease.getRatio(this._time/v)),p!==this._time||i||g!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=p,this._totalTime=m,this._rawPrevTime=_,this._cycle=g,a.lazyTweens.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/v):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&t>=0&&(this._active=!0),0===m&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===v)&&(e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==m||n)&&this._callback("onUp
1date")),this._cycle!==g&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===v&&this._rawPrevTime===o&&d!==o&&(this._rawPrevTime=0))}else m!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},s.to=function(t,e,i){return new s(t,e,i)},s.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new s(t,e,i)},s.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new s(t,e,n)},s.staggerTo=s.allTo=function(t,e,o,a,c,d,f){a=a||0;var p,m,g,v,_=0,y=[],b=function(){o.onComplete&&o.onComplete.apply(o.onCompleteScope||this,arguments),c.apply(f||o.callbackScope||this,d||h)},w=o.cycle,x=o.startAt&&o.startAt.cycle;for(u(t)||("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=n(t))),t=t||[],0>a&&((t=n(t)).reverse(),a*=-1),p=t.length-1,g=0;p>=g;g++){for(v in m={},o)m[v]=o[v];if(w&&r(m,t,g),x){for(v in x=m.startAt={},o.startAt)x[v]=o.startAt[v];r(m.startAt,t,g)}m.delay=_+(m.delay||0),g===p&&c&&(m.onComplete=b),y[g]=new s(t[g],e,m),_+=a}return y},s.staggerFrom=s.allFrom=function(t,e,i,n,r,o,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,s.staggerTo(t,e,i,n,r,o,a)},s.staggerFromTo=s.allFromTo=function(t,e,i,n,r,o,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,s.staggerTo(t,e,n,r,o,a,l)},s.delayedCall=function(t,e,i,n,r){return new s(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:r,overwrite:0})},s.set=function(t,e){return new s(t,0,e)},s.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var d=function t(e,n){for(var r=[],s=0,o=e._first;o;)o instanceof i?r[s++]=o:(n&&(r[s++]=o),s=(r=r.concat(t(o,n))).length),o=o._next;return r},f=s.getAllTweens=function(e){return d(t._rootTimeline,e).concat(d(t._rootFramesTimeline,e))};s.killAll=function(t,i,n,r){null==i&&(i=!0),null==n&&(n=!0);var s,o,a,l=f(0!=r),u=l.length,c=i&&n&&r;for(a=0;u>a;a++)o=l[a],(c||o instanceof e||(s=o.target===o.vars.onComplete)&&n||i&&!s)&&(t?o.totalTime(o._reversed?0:o.totalDuration()):o._enabled(!1,!1))},s.killChildTweensOf=function(t,e){if(null!=t){var r,o,c,h,d,f=a.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=n(t)),u(t))for(h=t.length;--h>-1;)s.killChildTweensOf(t[h],e);else{for(c in r=[],f)for(o=f[c].target.parentNode;o;)o===t&&(r=r.concat(f[c].tweens)),o=o.parentNode;for(d=r.length,h=0;d>h;h++)e&&r[h].totalTime(r[h].totalDuration()),r[h]._enabled(!1,!1)}}};var p=function(t,i,n,r){i=!1!==i,n=!1!==n;for(var s,o,a=f(r=!1!==r),l=i&&n&&r,u=a.length;--u>-1;)o=a[u],(l||o instanceof e||(s=o.target===o.vars.onComplete)&&n||i&&!s)&&o.paused(t)};return s.pauseAll=function(t,e,i){p(!0,t,e,i)},s.resumeAll=function(t,e,i){p(!1,t,e,i)},s.globalTimeScale=function(e){var n=t._rootTimeline,r=i.ticker.time;return arguments.length?(e=e||o,n._startTime=r-(r-n._startTime)*n._timeScale/e,n=t._rootFramesTimeline,r=i.ticker.frame,n._startTime=r-(r-n._startTime)*n._timeScale/e,n._timeScale=t._rootTimeline._timeScale=e,e):n._timeScale},c.progress=function(t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},c.totalProgress=function(t){return arguments.length?this.totalTime(this.totalDuration()*t,!1):this._totalTime/this.totalDuration()},c.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},c.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},c.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},c.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},c.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},c.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,
1i){var n=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,n,r=this.vars;for(n in r)i=r[n],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,s=i._internals,o=n._internals={},a=s.isSelector,l=s.isArray,u=s.lazyTweens,c=s.lazyRender,h=_gsScope._gsDefine.globals,d=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r.call(e[i],i):r[i%r.length];delete t.cycle},p=o.pauseCallback=function(){},m=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},g=n.prototype=new e;return n.version="1.18.2",g.constructor=n,g.kill()._gc=g._forcingPlayhead=g._hasPause=!1,g.to=function(t,e,n,r){var s=n.repeat&&h.TweenMax||i;return e?this.add(new s(t,e,n),r):this.set(t,n,r)},g.from=function(t,e,n,r){return this.add((n.repeat&&h.TweenMax||i).from(t,e,n),r)},g.fromTo=function(t,e,n,r,s){var o=r.repeat&&h.TweenMax||i;return e?this.add(o.fromTo(t,e,n,r),s):this.set(t,r,s)},g.staggerTo=function(t,e,r,s,o,l,u,c){var h,p,g=new n({onComplete:l,onCompleteParams:u,callbackScope:c,smoothChildTiming:this.smoothChildTiming}),v=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),a(t=t||[])&&(t=m(t)),0>(s=s||0)&&((t=m(t)).reverse(),s*=-1),p=0;p<t.length;p++)(h=d(r)).startAt&&(h.startAt=d(h.startAt),h.startAt.cycle&&f(h.startAt,t,p)),v&&f(h,t,p),g.to(t[p],e,h,p*s);return this.add(g,o)},g.staggerFrom=function(t,e,i,n,r,s,o,a){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,s,o,a)},g.staggerFromTo=function(t,e,i,n,r,s,o,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,s,o,a,l)},g.call=function(t,e,n,r){return this.add(i.delayedCall(0,t,e,n),r)},g.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new i(t,0,e),n)},n.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var r,s,o=new n(t),a=o._timeline;for(null==e&&(e=!0),a._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=a._time,r=a._first;r;)s=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||o.add(r,r._startTime-r._delay),r=s;return a.add(o,0),o},g.add=function(r,s,o,a){var u,c,h,d,f,p;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&l(r)){for(o=o||"normal",a=a||0,u=s,c=r.length,h=0;c>h;h++)l(d=r[h])&&(d=new n({tweens:d})),this.add(d,u),"string"!=typeof d&&"function"!=typeof d&&("sequence"===o?u=d._startTime+d.totalDuration()/d._timeScale:"start"===o&&(d._startTime-=d.delay())),u+=a;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,s);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(p=(f=this).rawTime()>r._startTime;f._timeline;)p&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},g.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var n=e.length;--n>-1;)this.remove(e[n]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},g._remove=function(t,i){e.prototype._remove.call(this,t,i);var n=this._last;return n?this._time>n._startTime+n._totalDuration/n._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},g.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))}
1,g.insert=g.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},g.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},g.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},g.addPause=function(t,e,n,r){var s=i.delayedCall(0,p,n,r||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},g.removeLabel=function(t){return delete this._labels[t],this},g.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},g._parseTimeOrLabel=function(e,i,n,r){var s;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&l(r)))for(s=r.length;--s>-1;)r[s]instanceof t&&r[s].timeline===this&&this.remove(r[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(-1===(s=e.indexOf("=")))return null==this._labels[e]?n?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,n):this.duration()}return Number(e)+i},g.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},g.stop=function(){return this.paused(!0)}
vendor: 13,493 bytes, line 1
1,g.gotoAndPlay=function(t,e){return this.play(t,e)},g.gotoAndStop=function(t,e){return this.pause(t,e)},g.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,o,a,l,h,d,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,m=this._startTime,g=this._timeScale,v=this._paused;if(t>=f-1e-7)this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(s=!0,a="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>r&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=f+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(a="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,a="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=p)for(n=this._first;n&&n._startTime<=t&&!h;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(h=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!h;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(h=n),n=n._prev;h&&(this._time=t=h._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||l||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&0!==this._time&&(e||this._callback("onStart")),(d=this._time)>=p)for(n=this._first;n&&(o=n._next,d===this._time&&(!this._paused||v));)(n._active||n._startTime<=d&&!n._paused&&!n._gc)&&(h===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=o;else for(n=this._last;n&&(o=n._prev,d===this._time&&(!this._paused||v));){if(n._active||n._startTime<=p&&!n._paused&&!n._gc){if(h===n){for(h=n._prev;h&&h.endTime()>this._time;)h.render(h._reversed?h.totalDuration()-(t-h._startTime)*h._timeScale:(t-h._startTime)*h._timeScale,e,i),h=h._prev;h=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=o}this._onUpdate&&(e||(u.length&&c(),this._callback("onUpdate"))),a&&(this._gc||(m===this._startTime||g!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(s&&(u.length&&c(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},g._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},g.getChildren=function(t,e,n,r){r=r||-9999999999;for(var s=[],o=this._first,a=0;o;)o._startTime<r||(o instanceof i?!1!==e&&(s[a++]=o):(!1!==n&&(s[a++]=o),!1!==t&&(a=(s=s.concat(o.getChildren(!0,e,n))).length))),o=o._next;return s},g.getTweensOf=function(t,e){var n,r,s=this._gc,o=[],a=0;for(s&&this._enabled(!0,!0),r=(n=i.getTweensOf(t)).length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(o[a++]=n[r]);return s&&this._enabled(!1,!0),o},g.recent=function(){return this._recent},g._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},g.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,s=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return this._uncache(!0)},g._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},g.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},g.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},g._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},g.totalTime=function(e,i,n){this._forcingPlayhead=!0;var r=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},g.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},g.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):s=r._startTime,r._startTime<0&&!r._paused&&(n-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),(i=r._startTime+r._totalDuration/r._timeScale)>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},g.paused=function(e){if(!e)for(var i=this._first,n=this._time;i;)i._startTime===n&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},g.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},g.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},n},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var n=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0},r=1e-10,s=e._internals,o=s.lazyTweens,a=s.lazyRender,l=new i(null,null,1,0),u=n.prototype=new t;return u.constructor=n,u.kill()._gc=!1,n.version="1.18.2",u.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},u.addCallback=function(t,i,n,r){return this.add(e.delayedCall(0,t,n,r),i)},u.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,r=this._parseTimeOrLabel(e);--n>-1;)i[n]._startTime===r&&i[n]._enabled(!1,!1);return this},u.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},u.tweenTo=function(t,i){i=i||{};var n,r,s,o={ease:l,useFrames:this.usesFrames(),immediateRender:!1};for(r in i)o[r]=i[r];return o.time=this._parseTimeOrLabel(t),n=Math.abs(Number(o.time)-this._time)/this._timeScale||.001,s=new e(this,n,o),o.onStart=function(){s.target.paused(!0),s.vars.time!==s.target.time()&&n===s.duration()&&s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale),i.onStart&&s._callback("onStart")},s},u.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;var n=this.tweenTo(e,i);return n.duration(Math.abs(n.vars.time-t)/this._timeScale||.001)},u.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,l,u,c,h,d,f,p=this._dirty?this.totalDuration():this._totalDuration,m=this._duration,g=this._time,v=this._totalTime,_=this._startTime,y=this._timeScale,b=this._rawPrevTime,w=this._paused,x=this._cycle;if(t>=p-1e-7)this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,u="onComplete",c=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||0>b||b===r)&&b!==t&&this._first&&(c=!0,b>r&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,this._yoyo&&0!=(1&this._cycle)?this._time=t=0:(this._time=m,t=m+1e-4);else if(1e-7>t)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==g||0===m&&b!==r&&(b>0||0>t&&b>=0)&&!this._locked)&&(u="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(c=s=!0,u="onReverseComplete"):b>=0&&this._first&&(c=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=m||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(c=!0)}else if(0===m&&0>b&&(c=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(h=m+this._repeatDelay,this._cycle=this._totalTime/h>>0,0!==this._cycle&&this._cycle===this._totalTime/h&&this._cycle--,this._time=this._totalTime-this._cycle*h,this._yoyo&&0!=(1&this._cycle)&&(this._time=m-this._time),this._time>m?(this._time=m,t=m+1e-4):this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if((t=this._time)>=g)for(n=this._first;n&&n._startTime<=t&&!d;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(d=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!d;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(d=n),n=n._prev;d&&(this._time=t=d._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==x&&!this._locked){var C=this._yoyo&&0!=(1&x),T=C===(this._yoyo&&0!=(1&this._cycle)),$=this._totalTime,S=this._cycle,k=this._rawPrevTime,E=this._time;if(this._totalTime=x*m,this._cycle<x?C=!C:this._totalTime+=m,this._time=g,this._rawPrevTime=0===m?b-1e-4:b,this._cycle=x,this._locked=!0,g=C?0:m,this.render(g,e,0===m),e||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),g!==this._time)return;if(T&&(g=C?m+1e-4:-1e-4,this.render(g,!0,!1)),this._locked=!1,this._paused&&!w)return;this._time=E,this._totalTime=$,this._cycle=S,this._rawPrevTime=k}if(this._time!==g&&this._first||i||c||d){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==v&&t>0&&(this._active=!0),0===v&&this.vars.onStart&&0!==this._totalTime&&(e||this._callback("onStart")),(f=this._time)>=g)for(n=this._first;n&&(l=n._next,f===this._time&&(!this._paused||w));)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(d===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=l;else for(n=this._last;n&&(l=n._prev,f===this._time&&(!this._paused||w));){if(n._active||n._startTime<=g&&!n._paused&&!n._gc){if(d===n){for(d=n._prev;d&&d.endTime()>this._time;)d.render(d._reversed?d.totalDuration()-(t-d._startTime)*d._timeScale:(t-d._startTime)*d._timeScale,e,i),d=d._prev;d=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=l}this._onUpdate&&(e||(o.length&&a(),this._callback("onUpdate"))),u&&(this._locked||this._gc||(_===this._startTime||y!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(s&&(o.length&&a(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[u]&&this._callback(u)))}else v!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},u.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var n,r,s=[],o=this.getChildren(t,e,i),a=0,l=o.length;for(n=0;l>n;n++)(r=o[n]).isActive()&&(s[a++]=r);return s},u.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),n=i.length;for(e=0;n>e;e++)if(i[e].time>t)return i[e].name;return null},u.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].time<t)return e[i].name;return null},u.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},u.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},u.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},n},!0),t=180/Math.PI,e=[],i=[],n=[],r={}
1,s=_gsScope._gsDefine.globals,o=function(t,e,i,n){this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},a=function(t,e,i,n){var r={a:t},s={},o={},a={c:n},l=(t+e)/2,u=(e+i)/2,c=(i+n)/2,h=(l+u)/2,d=(u+c)/2,f=(d-h)/8;return r.b=l+(t-l)/4,s.b=h+f,r.c=s.a=(r.b+s.b)/2,s.c=o.a=(h+d)/2,o.b=d-f,a.b=c+(n-c)/4,o.c=a.a=(o.b+a.b)/2,[r,s,o,a]},l=function(t,r,s,o,l){var u,c,h,d,f,p,m,g,v,_,y,b,w,x=t.length-1,C=0,T=t[0].a;for(u=0;x>u;u++)c=(f=t[C]).a,h=f.d,d=t[C+1].d,l?(y=e[u],w=((b=i[u])+y)*r*.25/(o?.5:n[u]||.5),g=h-((p=h-(h-c)*(o?.5*r:0!==y?w/y:0))+(((m=h+(d-h)*(o?.5*r:0!==b?w/b:0))-p)*(3*y/(y+b)+.5)/4||0))):g=h-((p=h-(h-c)*r*.5)+(m=h+(d-h)*r*.5))/2,p+=g,m+=g,f.c=v=p,f.b=0!==u?T:T=f.a+.6*(f.c-f.a),f.da=h-c,f.ca=v-c,f.ba=T-c,s?(_=a(c,T,v,h),t.splice(C,1,_[0],_[1],_[2],_[3]),C+=4):C++,T=m;(f=t[C]).b=T,f.c=T+.4*(f.d-T),f.da=f.d-f.a,f.ca=f.c-f.a,f.ba=T-f.a,s&&(_=a(f.a,T,f.c,f.d),t.splice(C,1,_[0],_[1],_[2],_[3]))},u=function(t,n,r,s){var a,l,u,c,h,d,f=[];if(s)for(l=(t=[s].concat(t)).length;--l>-1;)"string"==typeof(d=t[l][n])&&"="===d.charAt(1)&&(t[l][n]=s[n]+Number(d.charAt(0)+d.substr(2)));if(0>(a=t.length-2))return f[0]=new o(t[0][n],0,0,t[-1>a?0:1][n]),f;for(l=0;a>l;l++)u=t[l][n],c=t[l+1][n],f[l]=new o(u,0,0,c),r&&(h=t[l+2][n],e[l]=(e[l]||0)+(c-u)*(c-u),i[l]=(i[l]||0)+(h-c)*(h-c));return f[l]=new o(t[l][n],0,0,t[l+1][n]),f},c=function(t,s,o,a,c,h){var d,f,p,m,g,v,_,y,b={},w=[],x=h||t[0];for(f in c="string"==typeof c?","+c+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==s&&(s=1),t[0])w.push(f);if(t.length>1){for(y=t[t.length-1],_=!0,d=w.length;--d>-1;)if(f=w[d],Math.abs(x[f]-y[f])>.05){_=!1;break}_&&(t=t.concat(),h&&t.unshift(h),t.push(t[1]),h=t[t.length-3])}for(e.length=i.length=n.length=0,d=w.length;--d>-1;)f=w[d],r[f]=-1!==c.indexOf(","+f+","),b[f]=u(t,f,r[f],h);for(d=e.length;--d>-1;)e[d]=Math.sqrt(e[d]),i[d]=Math.sqrt(i[d]);if(!a){for(d=w.length;--d>-1;)if(r[f])for(v=(p=b[w[d]]).length-1,m=0;v>m;m++)g=p[m+1].da/i[m]+p[m].da/e[m],n[m]=(n[m]||0)+g*g;for(d=n.length;--d>-1;)n[d]=Math.sqrt(n[d])}for(d=w.length,m=o?4:1;--d>-1;)p=b[f=w[d]],l(p,s,o,a,r[f]),_&&(p.splice(0,m),p.splice(p.length-m,m));return b},h=function(t,e,i){var n,r,s,a,l,u,c,h,d,f,p,m={},g="cubic"===(e=e||"soft")?3:2,v="soft"===e,_=[];if(v&&i&&(t=[i].concat(t)),null==t||t.length<g+1)throw"invalid Bezier data";for(d in t[0])_.push(d);for(u=_.length;--u>-1;){for(d=_[u],m[d]=l=[],f=0,h=t.length,c=0;h>c;c++)n=null==i?t[c][d]:"string"==typeof(p=t[c][d])&&"="===p.charAt(1)?i[d]+Number(p.charAt(0)+p.substr(2)):Number(p),v&&c>1&&h-1>c&&(l[f++]=(n+l[f-2])/2),l[f++]=n;for(h=f-g+1,f=0,c=0;h>c;c+=g)n=l[c],r=l[c+1],s=l[c+2],a=2===g?0:l[c+3],l[f++]=p=3===g?new o(n,r,s,a):new o(n,(2*r+n)/3,(2*r+s)/3,s);l.length=f}return m},d=function(t,e,i){for(var n,r,s,o,a,l,u,c,h,d,f,p=1/i,m=t.length;--m>-1;)for(s=(d=t[m]).a,o=d.d-s,a=d.c-s,l=d.b-s,n=r=0,c=1;i>=c;c++)n=r-(r=((u=p*c)*u*o+3*(h=1-u)*(u*a+h*l))*u),f=m*i+c-1,e[f]=(e[f]||0)+n*n},f=function(t,e){var i,n,r,s,o=[],a=[],l=0,u=0,c=(e=e>>0||6)-1,h=[],f=[];for(i in t)d(t[i],o,e);for(r=o.length,n=0;r>n;n++)l+=Math.sqrt(o[n]),f[s=n%e]=l,s===c&&(u+=l,h[s=n/e>>0]=f,a[s]=u,l=0,f=[]);return{length:u,lengths:a,segments:h}},p=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.4",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._round={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,r,s,o,a,l=e.values||[],u={},d=l[0],p=e.autoRotate||i.vars.orientToBezier;for(n in this._autoRotate=p?p instanceof Array?p:[["x","y","rotation",!0===p?0:Number(p)||0]]:null,d)this._props.push(n);for(s=this._props.length;--s>-1;)n=this._props[s],this._overwriteProps.push(n),r=this._func[n]="function"==typeof t[n],u[n]=r?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),a||u[n]!==l[0][n]&&(a=u);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,a):h(l,e.type,u),this._segCount=this._beziers[n].length,this._timeRes){var m=f(this._beziers,this._timeRes);this._length=m.length,this._lengths=m.lengths,this._segments=m.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(p=this._autoRotate)for(this._initialRotations=[],p[0]instanceof Array||(this._autoRotate=p=[p]),s=p.length;--s>-1;){for(o=0;3>o;o++)n=p[s][o],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=p[s][2],this._initialRotations[s]=this._func[n]?this._func[n].call(this._target):this._target[n]}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,n,r,s,o,a,l,u,c,h,d=this._segCount,f=this._func,p=this._target,m=e!==this._startRatio;if(this._timeRes){if(c=this._lengths,h=this._curSeg,e*=this._length,r=this._li,e>this._l2&&d-1>r){for(u=d-1;u>r&&(this._l2=c[++r])<=e;);this._l1=c[r-1],this._li=r,this._curSeg=h=this._segments[r],this._s2=h[this._s1=this._si=0]}else if(e<this._l1&&r>0){for(;r>0&&(this._l1=c[--r])>=e;);0===r&&e<this._l1?this._l1=0:r++,this._l2=c[r],this._li=r,this._curSeg=h=this._segments[r],this._s1=h[(this._si=h.length-1)-1]||0,this._s2=h[this._si]}if(i=r,e-=this._l1,r=this._si,e>this._s2&&r<h.length-1){for(u=h.length-1;u>r&&(this._s2=h[++r])<=e;);this._s1=h[r-1],this._si=r}else if(e<this._s1&&r>0){for(;r>0&&(this._s1=h[--r])>=e;);0===r&&e<this._s1?this._s1=0:r++,this._s2=h[r],this._si=r}a=(r+(e-this._s1)/(this._s2-this._s1))*this._prec}else a=(e-(i=0>e?0:e>=1?d-1:d*e>>0)*(1/d))*d;for(n=1-a,r=this._props.length;--r>-1;)s=this._props[r],l=(a*a*(o=this._beziers[s][i]).da+3*n*(a*o.ca+n*o.ba))*a+o.a,this._round[s]&&(l=Math.round(l)),f[s]?p[s](l):p[s]=l;if(this._autoRotate){var g,v,_,y,b,w,x,C=this._autoRotate;for(r=C.length;--r>-1;)s=C[r][2],w=C[r][3]||0,x=!0===C[r][4]?1:t,o=this._beziers[C[r][0]],g=this._beziers[C[r][1]],o&&g&&(o=o[i],g=g[i],v=o.a+(o.b-o.a)*a,v+=((y=o.b+(o.c-o.b)*a)-v)*a,y+=(o.c+(o.d-o.c)*a-y)*a,_=g.a+(g.b-g.a)*a,_+=((b=g.b+(g.c-g.b)*a)-_)*a,b+=(g.c+(g.d-g.c)*a-b)*a,l=m?Math.atan2(b-_,y-v)*x+w:this._initialRotations[r],f[s]?p[s](l):p[s]=l)}}}),m=p.prototype,p.bezierThrough=c,p.cubicToQuadratic=a,p._autoCSS=!0,p.quadraticToCubic=function(t,e,
1i){return new o(t,(2*e+t)/3,(2*e+i)/3,i)},p._cssRegister=function(){var t=s.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,n=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,s,o,a,l){e instanceof Array&&(e={values:e}),l=new p;var u,c,h,d=e.values,f=d.length-1,m=[],g={};if(0>f)return a;for(u=0;f>=u;u++)h=i(t,d[u],o,a,l,f!==u),m[u]=h.end;for(c in e)g[c]=e[c];return g.values=m,(a=new r(t,"bezier",0,0,h.pt,2)).data=h,a.plugin=l,a.setRatio=n,0===g.autoRotate&&(g.autoRotate=!0),!g.autoRotate||g.autoRotate instanceof Array||(u=!0===g.autoRotate?0:Number(g.autoRotate),g.autoRotate=null!=h.end.left?[["left","top","rotation",u,!1]]:null!=h.end.x&&[["x","y","rotation",u,!1]]),g.autoRotate&&(o._transform||o._enableTransforms(!1),h.autoRotate=o._target._gsTransform),l._onInitTween(h.proxy,g,o._tween),a}})}},m._roundProps=function(t,e){for(var i=this._overwriteProps,n=i.length;--n>-1;)(t[i[n]]||t.bezier||t.bezierThrough)&&(this._round[i[n]]=e)},m._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;--i>-1;)n[i]===e&&n.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,n,r,s,o=function e(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=e.prototype.setRatio},a=_gsScope._gsDefine.globals,l={},u=o.prototype=new t("css");u.constructor=o,o.version="1.18.2",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",o.defaultSmoothOrigin=!0,o.suffixMap={top:u="px",right:u,bottom:u,left:u,width:u,height:u,fontSize:u,padding:u,margin:u,perspective:u,lineHeight:""};var c,h,d,f,p,m,g=/(?:\d|\-\d|\.\d|\-\.\d)+/g,v=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,_=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,y=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,b=/(?:\d|\-|\+|=|#|\.)*/g,w=/opacity *= *([^)]*)/i,x=/opacity:([^;]*)/i,C=/alpha\(opacity *=.+?\)/i,T=/^(rgb|hsl)/,$=/([A-Z])/g,S=/-([a-z])/gi,k=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(t,e){return e.toUpperCase()},P=/(?:Left|Right|Width)/i,O=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,R=/,(?=[^\)]*(?:\(|$))/gi,I=Math.PI/180,L=180/Math.PI,D={},M=document,F=function(t){return M.createElementNS?M.createElementNS("http://www.w3.org/1999/xhtml",t):M.createElement(t)},N=F("div"),z=F("img"),j=o._internals={_specialProps:l},B=navigator.userAgent,H=function(){var t=B.indexOf("Android"),e=F("a");return d=-1!==B.indexOf("Safari")&&-1===B.indexOf("Chrome")&&(-1===t||Number(B.substr(t+8,1))>3),p=d&&Number(B.substr(B.indexOf("Version/")+8,1))<6,f=-1!==B.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(B)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(B))&&(m=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),q=function(t){return w.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},V=function(t){window.console&&console.log(t)},U="",Y="",X=function(t,e){var i,n,r=(e=e||N).style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===r[i[n]+t];);return n>=0?(U="-"+(Y=3===n?"ms":i[n]).toLowerCase()+"-",Y+t):null},W=M.defaultView?M.defaultView.getComputedStyle:function(){},G=o.getStyle=function(t,e,i,n,r){var s;return H||"opacity"!==e?(!n&&t.style[e]?s=t.style[e]:(i=i||W(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace($,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==r||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:r):q(t)},Q=j.convertToPixels=function(t,i,n,r,s){if("px"===r||!r)return n;if("auto"===r||!n)return 0;var a,l,u,c=P.test(i),h=t,d=N.style,f=0>n;if(f&&(n=-n),"%"===r&&-1!==i.indexOf("border"))a=n/100*(c?t.clientWidth:t.clientHeight);else{if(d.cssText="border:0 solid red;position:"+G(t,"position")+";line-height:0;","%"!==r&&h.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)d[c?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(l=(h=t.parentNode||M.body)._gsCache,u=e.ticker.frame,l&&c&&l.time===u)return l.width*n/100;d[c?"width":"height"]=n+r}h.appendChild(N),a=parseFloat(N[c?"offsetWidth":"offsetHeight"]),h.removeChild(N),c&&"%"===r&&!1!==o.cacheWidths&&((l=h._gsCache=h._gsCache||{}).time=u,l.width=a/n*100),0!==a||s||(a=Q(t,i,n,r,!0))}return f?-a:a}
1,K=j.calculateOffset=function(t,e,i){if("absolute"!==G(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=G(t,"margin"+n,i);return t["offset"+n]-(Q(t,e,parseFloat(r),r.replace(b,""))||0)},Z=function(t,e){var i,n,r,s={};if(e=e||W(t,null))if(i=e.length)for(;--i>-1;)(-1===(r=e[i]).indexOf("-transform")||$t===r)&&(s[r.replace(S,E)]=e.getPropertyValue(r));else for(i in e)(-1===i.indexOf("Transform")||Tt===i)&&(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(S,E)]=e[i]);return H||(s.opacity=q(t)),n=Ft(t,e,!1),s.rotation=n.rotation,s.skewX=n.skewX,s.scaleX=n.scaleX,s.scaleY=n.scaleY,s.x=n.x,s.y=n.y,kt&&(s.z=n.z,s.rotationX=n.rotationX,s.rotationY=n.rotationY,s.scaleZ=n.scaleZ),s.filters&&delete s.filters,s},J=function(t,e,i,n,r){var s,o,a,l={},u=t.style;for(o in i)"cssText"!==o&&"length"!==o&&isNaN(o)&&(e[o]!==(s=i[o])||r&&r[o])&&-1===o.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[o]="auto"!==s||"left"!==o&&"top"!==o?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[o]||""===e[o].replace(y,"")?s:0:K(t,o),void 0!==u[o]&&(a=new pt(u,o,u[o],a)));if(n)for(o in n)"className"!==o&&(l[o]=n[o]);return{difs:l,firstMPT:a}},tt={width:["Left","Right"],height:["Top","Bottom"]},et=["marginLeft","marginRight","marginTop","marginBottom"],it=function(t,e,i){var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=tt[e],s=r.length;for(i=i||W(t,null);--s>-1;)n-=parseFloat(G(t,"padding"+r[s],i,!0))||0,n-=parseFloat(G(t,"border"+r[s]+"Width",i,!0))||0;return n},nt=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],r=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==r?r="center"===n?"50%":"0":"center"===r&&(r="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),t=n+" "+r+(i.length>2?" "+i[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==r.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===r.charAt(1),e.ox=parseFloat(n.replace(y,"")),e.oy=parseFloat(r.replace(y,"")),e.v=t),e||t},rt=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},st=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)},ot=function(t,e,i,n){var r,s,o,a,l;return null==t?a=e:"number"==typeof t?a=t:(r=360,s=t.split("_"),o=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:L)-(l?0:e),s.length&&(n&&(n[i]=e+o),-1!==t.indexOf("short")&&((o%=r)!==o%(r/2)&&(o=0>o?o+r:o-r)),-1!==t.indexOf("_cw")&&0>o?o=(o+9999999999*r)%r-(o/r|0)*r:-1!==t.indexOf("ccw")&&o>0&&(o=(o-9999999999*r)%r-(o/r|0)*r)),a=e+o),1e-6>a&&a>-1e-6&&(a=0),a},at={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},lt=function(t,e,i){return 255*(1>6*(t=0>t?t+1:t>1?t-1:t)?e+(i-e)*t*6:.5>t?i:2>3*t?e+(i-e)*(2/3-t)*6:e)+.5|0},ut=o.parseColor=function(t,e){var i,n,r,s,o,a,l,u,c,h,d;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),at[t])i=at[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(n=t.charAt(1))+n+(r=t.charAt(2))+r+(s=t.charAt(3))+s),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=d=t.match(g),e){if(-1!==t.indexOf("="))return t.match(v)}else o=Number(i[0])%360/360,a=Number(i[1])/100,n=2*(l=Number(i[2])/100)-(r=.5>=l?l*(a+1):l+a-l*a),i.length>3&&(i[3]=Number(t[3])),i[0]=lt(o+1/3,n,r),i[1]=lt(o,n,r),i[2]=lt(o-1/3,n,r);else i=t.match(g)||at.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=at.black;
1return e&&!d&&(n=i[0]/255,r=i[1]/255,s=i[2]/255,l=((u=Math.max(n,r,s))+(c=Math.min(n,r,s)))/2,u===c?o=a=0:(h=u-c,a=l>.5?h/(2-u-c):h/(u+c),o=u===n?(r-s)/h+(s>r?6:0):u===r?(s-n)/h+2:(n-r)/h+4,o*=60),i[0]=o+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},ct=function(t,e){var i,n,r,s=t.match(ht)||[],o=0,a=s.length?"":t;for(i=0;i<s.length;i++)n=s[i],o+=(r=t.substr(o,t.indexOf(n,o)-o)).length+n.length,3===(n=ut(n,e)).length&&n.push(1),a+=r+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return a},ht="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(u in at)ht+="|"+u+"\\b";ht=new RegExp(ht+")","gi"),o.colorStringFilter=function(t){var e,i=t[0]+t[1];ht.lastIndex=0,ht.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=ct(t[0],e),t[1]=ct(t[1],e))},e.defaultStringFilter||(e.defaultStringFilter=o.colorStringFilter);var dt=function(t,e,i,n){if(null==t)return function(t){return t};var r,s=e?(t.match(ht)||[""])[0]:"",o=t.split(s).join("").match(_)||[],a=t.substr(0,t.indexOf(o[0])),l=")"===t.charAt(t.length-1)?")":"",u=-1!==t.indexOf(" ")?" ":",",c=o.length,h=c>0?o[0].replace(g,""):"";return c?r=e?function(t){var e,d,f,p;if("number"==typeof t)t+=h;else if(n&&R.test(t)){for(p=t.replace(R,"|").split("|"),f=0;f<p.length;f++)p[f]=r(p[f]);return p.join(",")}if(e=(t.match(ht)||[s])[0],f=(d=t.split(e).join("").match(_)||[]).length,c>f--)for(;++f<c;)d[f]=i?d[(f-1)/2|0]:o[f];return a+d.join(u)+u+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,d;
1if("number"==typeof t)t+=h;else if(n&&R.test(t)){for(s=t.replace(R,"|").split("|"),d=0;d<s.length;d++)s[d]=r(s[d]);return s.join(",")}if(d=(e=t.match(_)||[]).length,c>d--)for(;++d<c;)e[d]=i?e[(d-1)/2|0]:o[d];return a+e.join(u)+l}:function(t){return t}},ft=function(t){return t=t.split(","),function(e,i,n,r,s,o,a){var l,u=(i+"").split(" ");for(a={},l=0;4>l;l++)a[t[l]]=u[l]=u[l]||u[(l-1)/2>>0];return r.parse(e,a,s,o)}},pt=(j._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,r,s,o=this.data,a=o.proxy,l=o.firstMPT;l;)e=a[l.v],l.r?e=Math.round(e):1e-6>e&&e>-1e-6&&(e=0),l.t[l.p]=e,l=l._next;if(o.autoRotate&&(o.autoRotate.rotation=a.rotation),1===t||0===t)for(l=o.firstMPT,s=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i[s]=r}}else i[s]=i.s+i.xs0;l=l._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),mt=(j._parseToProxy=function(t,e,i,n,r,s){var o,a,l,u,c,h=n,d={},f={},p=i._transform,m=D;for(i._transform=null,D=e,n=c=i.parse(t,e,n,r),D=m,s&&(i._transform=p,h&&(h._prev=null,h._prev&&(h._prev._next=null)));n&&n!==h;){if(n.type<=1&&(f[a=n.p]=n.s+n.c,d[a]=n.s,s||(u=new pt(n,"s",a,u,n.r),n.c=0),1===n.type))for(o=n.l;--o>0;)l="xn"+o,f[a=n.p+"_"+l]=n.data[l],d[a]=n[l],s||(u=new pt(n,l,a,u,n.rxp[l]));n=n._next}return{proxy:d,end:f,firstMPT:u,pt:c}},j.CSSPropTween=function(t,e,n,r,o,a,l,u,c,h,d){this.t=t,this.p=e,this.s=n,this.c=r,this.n=l||e,t instanceof mt||s.push(this.n),this.r=u,this.type=a||0,c&&(this.pr=c,i=!0),this.b=void 0===h?n:h,this.e=void 0===d?n+r:d,o&&(this._next=o,o._prev=this)}),gt=function(t,e,i,n,r,s){var o=new mt(t,e,i,n-i,r,-1,s);return o.b=i,o.e=o.xs0=n,o},vt=o.parseComplex=function(t,e,i,n,r,s,o,a,l,u){i=i||s||"",o=new mt(t,e,0,0,o,u?2:1,null,!1,a,i,n),n+="";var h,d,f,p,m,_,y,b,w,x,C,T,$,S=i.split(", ").join(",").split(" "),k=n.split(", ").join(",").split(" "),E=S.length,P=!1!==c;for((-1!==n.indexOf(",")||-1!==i.indexOf(","))&&(S=S.join(" ").replace(R,", ").split(" "),k=k.join(" ").replace(R,", ").split(" "),E=S.length),E!==k.length&&(E=(S=(s||"").split(" ")).length),o.plugin=l,o.setRatio=u,ht.lastIndex=0,h=0;E>h;h++)if(p=S[h],m=k[h],(b=parseFloat(p))||0===b)o.appendXtra("",b,rt(m,b),m.replace(v,""),P&&-1!==m.indexOf("px"),!0);else if(r&&ht.test(p))T=","===m.charAt(m.length-1)?"),":")",$=-1!==m.indexOf("hsl")&&H,p=ut(p,$),m=ut(m,$),(w=p.length+m.length>6)&&!H&&0===m[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(k[h]).join("transparent")):(H||(w=!1),$?o.appendXtra(w?"hsla(":"hsl(",p[0],rt(m[0],p[0]),",",!1,!0).appendXtra("",p[1],rt(m[1],p[1]),"%,",!1).appendXtra("",p[2],rt(m[2],p[2]),w?"%,":"%"+T,!1):o.appendXtra(w?"rgba(":"rgb(",p[0],m[0]-p[0],",",!0,!0).appendXtra("",p[1],m[1]-p[1],",",!0).appendXtra("",p[2],m[2]-p[2],w?",":T,!0),w&&(p=p.length<4?1:p[3],o.appendXtra("",p,(m.length<4?1:m[3])-p,T,!1))),ht.lastIndex=0;else if(_=p.match(g)){if(!(y=m.match(v))||y.length!==_.length)return o;for(f=0,d=0;d<_.length;d++)C=_[d],x=p.indexOf(C,f),o.appendXtra(p.substr(f,x-f),Number(C),rt(y[d],C),"",P&&"px"===p.substr(x+C.length,2),0===d),f=x+C.length;o["xs"+o.l]+=p.substr(f)}else o["xs"+o.l]+=o.l?" "+m:m;if(-1!==n.indexOf("=")&&o.data){for(T=o.xs0+o.data.s,h=1;h<o.l;h++)T+=o["xs"+h]+o.data["xn"+h];o.e=T+o["xs"+h]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},_t=9;for((u=mt.prototype).l=u.pr=0;--_t>0;)u["xn"+_t]=0,u["xs"+_t]="";u.xs0="",u._next=u._prev=u.xfirst=u.data=u.plugin=u.setRatio=u.rxp=null,u.appendXtra=function(t,e,i,n,r,s){var o=this,a=o.l;return o["xs"+a]+=s&&a?" "+t:t||"",i||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=n||"",a>0?(o.data["xn"+a]=e+i,o.rxp["xn"+a]=r,o["xn"+a]=e,o.plugin||(o.xfirst=new mt(o,"xn"+a,e,i,o.xfirst||o,0,o.n,r,o.pr),o.xfirst.xs0=0),o):(o.data={s:e+i},o.rxp={},o.s=e,o.c=i,o.r=r,o)):(o["xs"+a]+=e+(n||""),o)};var yt=function(t,e){e=e||{},this.p=e.prefix&&X(t)||t,l[t]=l[this.p]=this,this.format=e.formatter||dt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0}
1,bt=j._registerComplexSpecialProp=function(t,e,i){"object"!=(void 0===e?"undefined":_typeof(e))&&(e={parser:i});var n,r=t.split(","),s=e.defaultValue;for(i=i||[s],n=0;n<r.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||s,new yt(r[n],e)},wt=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";bt(t,{parser:function(t,i,n,r,s,o,u){var c=a.com.greensock.plugins[e];return c?(c._cssRegister(),l[n].parse(t,i,n,r,s,o,u)):(V("Error: "+e+" js file not loaded."),s)}})}};(u=yt.prototype).parseComplex=function(t,e,i,n,r,s){var o,a,l,u,c,h,d=this.keyword;if(this.multi&&(R.test(i)||R.test(e)?(a=e.replace(R,"|").split("|"),l=i.replace(R,"|").split("|")):d&&(a=[e],l=[i])),l){for(u=l.length>a.length?l.length:a.length,o=0;u>o;o++)e=a[o]=a[o]||this.dflt,i=l[o]=l[o]||this.dflt,d&&((c=e.indexOf(d))!==(h=i.indexOf(d))&&(-1===h?a[o]=a[o].split(d).join(""):-1===c&&(a[o]+=" "+d)));e=a.join(", "),i=l.join(", ")}return vt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,r,s)},u.parse=function(t,e,i,n,s,o,a){return this.parseComplex(t.style,this.format(G(t,this.p,r,!1,this.dflt)),this.format(e),s,o)},o.registerSpecialProp=function(t,e,i){bt(t,{parser:function(t,n,r,s,o,a,l){var u=new mt(t,r,0,0,o,2,r,!1,i);return u.plugin=a,u.setRatio=e(t,n,s._tween,r),u},priority:i})},o.useSVGTransformAttr=d||f;var xt,Ct="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Tt=X("transform"),$t=U+"transform",St=X("transformOrigin"),kt=null!==X("perspective"),Et=j.Transform=function(){this.perspective=parseFloat(o.defaultTransformPerspective)||0,this.force3D=!(!1===o.defaultForce3D||!kt)&&(o.defaultForce3D||"auto")},Pt=window.SVGElement,Ot=function(t,e,i){var n,r=M.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(n in i)r.setAttributeNS(null,n.replace(s,"$1-$2").toLowerCase(),i[n]);return e.appendChild(r),r},At=M.documentElement,Rt=function(){var t,e,i,n=m||/Android/i.test(B)&&!window.chrome;return M.createElementNS&&!n&&(t=Ot("svg",At),i=(e=Ot("rect",t,{width:100,height:50,x:100})).getBoundingClientRect().width,e.style[St]="50% 50%",e.style[Tt]="scaleX(0.5)",n=i===e.getBoundingClientRect().width&&!(f&&kt),At.removeChild(t)),n}(),It=function(t,e,i,n,r){var s,a,l,u,c,h,d,f,p,m,g,v,_,y,b=t._gsTransform,w=Mt(t,!0);b&&(_=b.xOrigin,y=b.yOrigin),(!n||(s=n.split(" ")).length<2)&&(d=t.getBBox(),s=[(-1!==(e=nt(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*d.width:parseFloat(e[0]))+d.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*d.height:parseFloat(e[1]))+d.y]),i.xOrigin=u=parseFloat(s[0]),i.yOrigin=c=parseFloat(s[1]),n&&w!==Dt&&(h=w[0],d=w[1],f=w[2],p=w[3],m=w[4],g=w[5],a=u*(p/(v=h*p-d*f))+c*(-f/v)+(f*g-p*m)/v,l=u*(-d/v)+c*(h/v)-(h*g-d*m)/v,u=i.xOrigin=s[0]=a,c=i.yOrigin=s[1]=l),b&&(r||!1!==r&&!1!==o.defaultSmoothOrigin?(a=u-_,l=c-y,b.xOffset+=a*w[0]+l*w[2]-a,b.yOffset+=a*w[1]+l*w[3]-l):b.xOffset=b.yOffset=0),t.setAttribute("data-svg-origin",s.join(" "))},Lt=function(t){return!!(Pt&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},Dt=[1,0,0,1,0,0],Mt=function(t,e){var i,n,r,s,o,a=t._gsTransform||new Et;if(Tt?n=G(t,$t,null,!0):t.currentStyle&&(n=(n=t.currentStyle.filter.match(O))&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),a.x||0,a.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,(a.svg||t.getBBox&&Lt(t))&&(i&&-1!==(t.style[Tt]+"").indexOf("matrix")&&(n=t.style[Tt],i=0),r=t.getAttribute("transform"),i&&r&&(-1!==r.indexOf("matrix")?(n=r,i=0):-1!==r.indexOf("translate")&&(n="matrix(1,0,0,1,"+r.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Dt;for(r=(n||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],_t=r.length;--_t>-1;)s=Number(r[_t]),r[_t]=(o=s-(s|=0))?(1e5*o+(0>o?-.5:.5)|0)/1e5+s:s;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},Ft=j.getTransform=function(t,i,n,s){if(t._gsTransform&&n&&!s)return t._gsTransform;var a,l,u,c,h,d,f=n&&t._gsTransform||new Et,p=f.scaleX<0,m=1e5,g=kt&&(parseFloat(G(t,St,i,!1,"0 0 0").split(" ")[2])||f.zOrigin)||0,v=parseFloat(o.defaultTransformPerspective)||0;if(f.svg=!(!t.getBBox||!Lt(t)),f.svg&&(It(t,G(t,St,r,!1,"50% 50%")+"",f,t.getAttribute("data-svg-origin")),xt=o.useSVGTransformAttr||Rt),(a=Mt(t))!==Dt){if(16===a.length){var _,y,b,w,x,C=a[0],T=a[1],$=a[2],S=a[3],k=a[4],E=a[5],P=a[6],O=a[7],A=a[8],R=a[9],I=a[10],D=a[12],M=a[13],F=a[14],N=a[11],z=Math.atan2(P,I);f.zOrigin&&(D=A*(F=-f.zOrigin)-a[12],M=R*F-a[13],F=I*F+f.zOrigin-a[14]),f.rotationX=z*L,z&&(_=k*(w=Math.cos(-z))+A*(x=Math.sin(-z)),y=E*w+R*x,b=P*w+I*x,A=k*-x+A*w,R=E*-x+R*w,I=P*-x+I*w,N=O*-x+N*w,k=_,E=y,P=b),z=Math.atan2(-$,I),f.rotationY=z*L,z&&(y=T*(w=Math.cos(-z))-R*(x=Math.sin(-z)),b=$*w-I*x,R=T*x+R*w,I=$*x+I*w,N=S*x+N*w,C=_=C*w-A*x,T=y,$=b),z=Math.atan2(T,C),f.rotation=z*L,z&&(C=C*(w=Math.cos(-z))+k*(x=Math.sin(-z)),y=T*w+E*x,E=T*-x+E*w,P=$*-x+P*w,T=y),f.rotationX&&Math.abs(f.rotationX)+Math.abs(f.rotation)>359.9&&(f.rotationX=f.rotation=0,f.rotationY=180-f.rotationY),f.scaleX=(Math.sqrt(C*C+T*T)*m+.5|0)/m,f.scaleY=(Math.sqrt(E*E+R*R)*m+.5|0)/m,f.scaleZ=(Math.sqrt(P*P+I*I)*m+.5|0)/m,f.skewX=0,f.perspective=N?1/(0>N?-N:N):0,f.x=D,f.y=M,f.z=F,f.svg&&(f.x-=f.xOrigin-(f.xOrigin*C-f.yOrigin*k),f.y-=f.yOrigin-(f.yOrigin*T-f.xOrigin*E))}else if((!kt||s||!a.length||f.x!==a[4]||f.y!==a[5]||!f.rotationX&&!f.rotationY)&&(void 0===f.x||"none"!==G(t,"display",i))){var j=a.length>=6,B=j?a[0]:1,H=a[1]||0,q=a[2]||0,V=j?a[3]:1;f.x=a[4]||0,f.y=a[5]||0,u=Math.sqrt(B*B+H*H),c=Math.sqrt(V*V+q*q),h=B||H?Math.atan2(H,B)*L:f.rotation||0,d=q||V?Math.atan2(q,V)*L+h:f.skewX||0,Math.abs(d)>90&&Math.abs(d)<270&&(p?(u*=-1,d+=0>=h?180:-180,h+=0>=h?180:-180):(c*=-1,d+=0>=d?180:-180)),f.scaleX=u,f.scaleY=c,f.rotation=h,f.skewX=d,kt&&(f.rotationX=f.rotationY=f.z=0,f.perspective=v,f.scaleZ=1),f.svg&&(f.x-=f.xOrigin-(f.xOrigin*B+f.yOrigin*q),f.y-=f.yOrigin-(f.xOrigin*H+f.yOrigin*V))}for(l in f.zOrigin=g,f)f[l]<2e-5&&f[l]>-2e-5&&(f[l]=0)}return n&&(t._gsTransform=f,f.svg&&(xt&&t.style[Tt]?e.delayedCall(.001,function(){Bt(t.style,Tt)}):!xt&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),f},Nt=function(t){var e,i,n=this.data,r=-n.rotation*I,s=r+n.skewX*I,o=1e5,a=(Math.cos(r)*n.scaleX*o|0)/o,l=(Math.sin(r)*n.scaleX*o|0)/o,u=(Math.sin(s)*-n.scaleY*o|0)/o,c=(Math.cos(s)*n.scaleY*o|0)/o,h=this.t.style,d=this.t.currentStyle;if(d){i=l,l=-u,u=-i,e=d.filter,h.filter="";var f,p,g=this.t.offsetWidth,v=this.t.offsetHeight,_="absolute"!==d.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+u+", M22="+c,x=n.x+g*n.xPercent/100,C=n.y+v*n.yPercent/100;if(null!=n.ox&&(x+=(f=(n.oxp?g*n.ox*.01:n.ox)-g/2)-(f*a+(p=(n.oyp?v*n.oy*.01:n.oy)-v/2)*l),C+=p-(f*u+p*c)),_?y+=", Dx="+((f=g/2)-(f*a+(p=v/2)*l)+x)+", Dy="+(p-(f*u+p*c)+C)+")":y+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?h.filter=e.replace(A,y):h.filter=y+" "+e,(0===t||1===t)&&1===a&&0===l&&0===u&&1===c&&(_&&-1===y.indexOf("Dx=0, Dy=0")||w.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&h.removeAttribute("filter")),!_){var T,$,S,k=8>m?1:-1;for(f=n.ieOffsetX||0,p=n.ieOffsetY||0,n.ieOffsetX=Math.round((g-((0>a?-a:a)*g+(0>l?-l:l)*v))/2+x),n.ieOffsetY=Math.round((v-((0>c?-c:c)*v+(0>u?-u:u)*g))/2+C),_t=0;4>_t;_t++)S=(i=-1!==(T=d[$=et[_t]]).indexOf("px")?parseFloat(T):Q(this.t,$,parseFloat(T),T.replace(b,""))||0)!==n[$]?2>_t?-n.ieOffsetX:-n.ieOffsetY:2>_t?f-n.ieOffsetX:p-n.ieOffsetY,h[$]=(n[$]=Math.round(i-S*(0===_t||2===_t?1:k)))+"px"}}}
1,zt=j.set3DTransformRatio=j.setTransformRatio=function(t){var e,i,n,r,s,o,a,l,u,c,h,d,p,m,g,v,_,y,b,w,x,C,T,$=this.data,S=this.t.style,k=$.rotation,E=$.rotationX,P=$.rotationY,O=$.scaleX,A=$.scaleY,R=$.scaleZ,L=$.x,D=$.y,M=$.z,F=$.svg,N=$.perspective,z=$.force3D;if(!((1!==t&&0!==t||"auto"!==z||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&z||M||N||P||E||1!==R)||xt&&F||!kt)k||$.skewX||F?(k*=I,C=$.skewX*I,T=1e5,e=Math.cos(k)*O,r=Math.sin(k)*O,i=Math.sin(k-C)*-A,s=Math.cos(k-C)*A,C&&"simple"===$.skewType&&(_=Math.tan(C),i*=_=Math.sqrt(1+_*_),s*=_,$.skewY&&(e*=_,r*=_)),F&&(L+=$.xOrigin-($.xOrigin*e+$.yOrigin*i)+$.xOffset,D+=$.yOrigin-($.xOrigin*r+$.yOrigin*s)+$.yOffset,xt&&($.xPercent||$.yPercent)&&(m=this.t.getBBox(),L+=.01*$.xPercent*m.width,D+=.01*$.yPercent*m.height),(m=1e-6)>L&&L>-m&&(L=0),m>D&&D>-m&&(D=0)),b=(e*T|0)/T+","+(r*T|0)/T+","+(i*T|0)/T+","+(s*T|0)/T+","+L+","+D+")",F&&xt?this.t.setAttribute("transform","matrix("+b):S[Tt]=($.xPercent||$.yPercent?"translate("+$.xPercent+"%,"+$.yPercent+"%) matrix(":"matrix(")+b):S[Tt]=($.xPercent||$.yPercent?"translate("+$.xPercent+"%,"+$.yPercent+"%) matrix(":"matrix(")+O+",0,0,"+A+","+L+","+D+")";else{if(f&&((m=1e-4)>O&&O>-m&&(O=R=2e-5),m>A&&A>-m&&(A=R=2e-5),!N||$.z||$.rotationX||$.rotationY||(N=0)),k||$.skewX)k*=I,g=e=Math.cos(k),v=r=Math.sin(k),$.skewX&&(k-=$.skewX*I,g=Math.cos(k),v=Math.sin(k),"simple"===$.skewType&&(_=Math.tan($.skewX*I),g*=_=Math.sqrt(1+_*_),v*=_,$.skewY&&(e*=_,r*=_))),i=-v,s=g;else{if(!(P||E||1!==R||N||F))return void(S[Tt]=($.xPercent||$.yPercent?"translate("+$.xPercent+"%,"+$.yPercent+"%) translate3d(":"translate3d(")+L+"px,"+D+"px,"+M+"px)"+(1!==O||1!==A?" scale("+O+","+A+")":""));e=s=1,i=r=0}u=1,n=o=a=l=c=h=0,d=N?-1/N:0,p=$.zOrigin,m=1e-6,w=",",x="0",(k=P*I)&&(g=Math.cos(k),a=-(v=Math.sin(k)),c=d*-v,n=e*v,o=r*v,u=g,d*=g,e*=g,r*=g),(k=E*I)&&(_=i*(g=Math.cos(k))+n*(v=Math.sin(k)),y=s*g+o*v,l=u*v,h=d*v,n=i*-v+n*g,o=s*-v+o*g,u*=g,d*=g,i=_,s=y),1!==R&&(n*=R,o*=R,u*=R,d*=R),1!==A&&(i*=A,s*=A,l*=A,h*=A),1!==O&&(e*=O,r*=O,a*=O,c*=O),(p||F)&&(p&&(L+=n*-p,D+=o*-p,M+=u*-p+p),F&&(L+=$.xOrigin-($.xOrigin*e+$.yOrigin*i)+$.xOffset,D+=$.yOrigin-($.xOrigin*r+$.yOrigin*s)+$.yOffset),m>L&&L>-m&&(L=x),m>D&&D>-m&&(D=x),m>M&&M>-m&&(M=0)),b=$.xPercent||$.yPercent?"translate("+$.xPercent+"%,"+$.yPercent+"%) matrix3d(":"matrix3d(",b+=(m>e&&e>-m?x:e)+w+(m>r&&r>-m?x:r)+w+(m>a&&a>-m?x:a),b+=w+(m>c&&c>-m?x:c)+w+(m>i&&i>-m?x:i)+w+(m>s&&s>-m?x:s),E||P||1!==R?(b+=w+(m>l&&l>-m?x:l)+w+(m>h&&h>-m?x:h)+w+(m>n&&n>-m?x:n),b+=w+(m>o&&o>-m?x:o)+w+(m>u&&u>-m?x:u)+w+(m>d&&d>-m?x:d)+w):b+=",0,0,0,0,1,0,",b+=L+w+D+w+M+w+(N?1+-M/N:1)+")",S[Tt]=b}};(u=Et.prototype).x=u.y=u.z=u.skewX=u.skewY=u.rotation=u.rotationX=u.rotationY=u.zOrigin=u.xPercent=u.yPercent=u.xOffset=u.yOffset=0,u.scaleX=u.scaleY=u.scaleZ=1,bt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,n,s,a,l){if(n._lastParsedTransform===l)return s;n._lastParsedTransform=l;var u,c,h,d,f,p,m,g,v,_,y=t._gsTransform,b=t.style,w=Ct.length,x=l,C={},T="transformOrigin";if(l.display?(d=G(t,"display"),b.display="block",u=Ft(t,r,!0,l.parseTransform),b.display=d):u=Ft(t,r,!0,l.parseTransform),n._transform=u,"string"==typeof x.transform&&Tt)(d=N.style)[Tt]=x.transform,d.display="block",d.position="absolute",M.body.appendChild(N),c=Ft(N,null,!1),M.body.removeChild(N),c.perspective||(c.perspective=u.perspective),null!=x.xPercent&&(c.xPercent=st(x.xPercent,u.xPercent)),null!=x.yPercent&&(c.yPercent=st(x.yPercent,u.yPercent));else if("object"==(void 0===x?"undefined":_typeof(x))){if(c={scaleX:st(null!=x.scaleX?x.scaleX:x.scale,u.scaleX),scaleY:st(null!=x.scaleY?x.scaleY:x.scale,u.scaleY),scaleZ:st(x.scaleZ,u.scaleZ),x:st(x.x,u.x),y:st(x.y,u.y),z:st(x.z,u.z),xPercent:st(x.xPercent,u.xPercent),yPercent:st(x.yPercent,u.yPercent),perspective:st(x.transformPerspective,u.perspective)},null!=(g=x.directionalRotation))if("object"==(void 0===g?"undefined":_typeof(g)))for(d in g)x[d]=g[d];else x.rotation=g;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(c.x=0,c.xPercent=st(x.x,u.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(c.y=0,c.yPercent=st(x.y,u.yPercent)),c.rotation=ot("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":"rotationZ"in x?x.rotationZ:u.rotation,u.rotation,"rotation",C),kt&&(c.rotationX=ot("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":u.rotationX||0,u.rotationX,"rotationX",C),c.rotationY=ot("rotationY"
1in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":u.rotationY||0,u.rotationY,"rotationY",C)),c.skewX=null==x.skewX?u.skewX:ot(x.skewX,u.skewX),c.skewY=null==x.skewY?u.skewY:ot(x.skewY,u.skewY),(h=c.skewY-u.skewY)&&(c.skewX+=h,c.rotation+=h)}for(kt&&null!=x.force3D&&(u.force3D=x.force3D,m=!0),u.skewType=x.skewType||u.skewType||o.defaultSkewType,(p=u.force3D||u.z||u.rotationX||u.rotationY||c.z||c.rotationX||c.rotationY||c.perspective)||null==x.scale||(c.scaleZ=1);--w>-1;)((f=c[i=Ct[w]]-u[i])>1e-6||-1e-6>f||null!=x[i]||null!=D[i])&&(m=!0,s=new mt(u,i,u[i],f,s),i in C&&(s.e=C[i]),s.xs0=0,s.plugin=a,n._overwriteProps.push(s.n));return f=x.transformOrigin,u.svg&&(f||x.svgOrigin)&&(v=u.xOffset,_=u.yOffset,It(t,nt(f),c,x.svgOrigin,x.smoothOrigin),s=gt(u,"xOrigin",(y?u:c).xOrigin,c.xOrigin,s,T),s=gt(u,"yOrigin",(y?u:c).yOrigin,c.yOrigin,s,T),(v!==u.xOffset||_!==u.yOffset)&&(s=gt(u,"xOffset",y?v:u.xOffset,u.xOffset,s,T),s=gt(u,"yOffset",y?_:u.yOffset,u.yOffset,s,T)),f=xt?null:"0px 0px"),(f||kt&&p&&u.zOrigin)&&(Tt?(m=!0,i=St,f=(f||G(t,i,r,!1,"50% 50%"))+"",(s=new mt(b,i,0,0,s,-1,T)).b=b[i],s.plugin=a,kt?(d=u.zOrigin,f=f.split(" "),u.zOrigin=(f.length>2&&(0===d||"0px"!==f[2])?parseFloat(f[2]):d)||0,s.xs0=s.e=f[0]+" "+(f[1]||"50%")+" 0px",(s=new mt(u,"zOrigin",0,0,s,-1,s.n)).b=d,s.xs0=s.e=u.zOrigin):s.xs0=s.e=f):nt(f+"",u)),m&&(n._transformType=u.svg&&xt||!p&&3!==this._transformType?2:3),s},prefix:!0}),bt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),bt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,o,a){e=this.format(e);var l,u,c,h,d,f,p,m,g,v,_,y,b,w,x,C,T=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],$=t.style;for(g=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),l=e.split(" "),u=0;u<T.length;u++)this.p.indexOf("border")&&(T[u]=X(T[u])),-1!==(d=h=G(t,T[u],r,!1,"0px")).indexOf(" ")&&(d=(h=d.split(" "))[0],h=h[1]),f=c=l[u],p=parseFloat(d),y=d.substr((p+"").length),(b="="===f.charAt(1))?(m=parseInt(f.charAt(0)+"1",10),f=f.substr(2),m*=parseFloat(f),_=f.substr((m+"").length-(0>m?1:0))||""):(m=parseFloat(f),_=f.substr((m+"").length)),""===_&&(_=n[i]||y),_!==y&&(w=Q(t,"borderLeft",p,y),x=Q(t,"borderTop",p,y),"%"===_?(d=w/g*100+"%",h=x/v*100+"%"):"em"===_?(d=w/(C=Q(t,"borderLeft",1,"em"))+"em",h=x/C+"em"):(d=w+"px",h=x+"px"),b&&(f=parseFloat(d)+m+_,c=parseFloat(h)+m+_)),o=vt($,T[u],d+" "+h,f+" "+c,!1,"0px",o);return o},prefix:!0,formatter:dt("0px 0px 0px 0px",!1,!0)}),bt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,s,o){var a,l,u,c,h,d,f="background-position",p=r||W(t,null),g=this.format((p?m?p.getPropertyValue(f+"-x")+" "+p.getPropertyValue(f+"-y"):p.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),v=this.format(e);if(-1!==g.indexOf("%")!=(-1!==v.indexOf("%"))&&((d=G(t,"backgroundImage").replace(k,""))&&"none"!==d)){for(a=g.split(" "),l=v.split(" "),z.setAttribute("src",d),u=2;--u>-1;)(c=-1!==(g=a[u]).indexOf("%"))!==(-1!==l[u].indexOf("%"))&&(h=0===u?t.offsetWidth-z.width:t.offsetHeight-z.height,a[u]=c?parseFloat(g)/100*h+"px":parseFloat(g)/h*100+"%");g=a.join(" ")}return this.parseComplex(t.style,g,v,s,o)},formatter:nt}),bt("backgroundSize",{defaultValue:"0 0",formatter:nt}),bt("perspective",{defaultValue:"0px",prefix:!0}),bt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),bt("transformStyle",{prefix:!0}),bt("backfaceVisibility",{prefix:!0}),bt("userSelect",{prefix:!0}),bt("margin",{parser:ft("marginTop,marginRight,marginBottom,marginLeft")}),bt("padding",{parser:ft("paddingTop,paddingRight,paddingBottom,paddingLeft")}),bt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,s,o){var a,l,u;return 9>m?(l=t.currentStyle,u=8>m?" ":",",a="rect("+l.clipTop+u+l.clipRight+u+l.clipBottom+u+l.clipLeft+")",e=this.format(e).split(",").join(u)):(a=this.format(G(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,a,e,s,o)}}),bt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}
1),bt("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),bt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,o){return this.parseComplex(t.style,this.format(G(t,"borderTopWidth",r,!1,"0px")+" "+G(t,"borderTopStyle",r,!1,"solid")+" "+G(t,"borderTopColor",r,!1,"#000")),this.format(e),s,o)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(ht)||["#000"])[0]}}),bt("borderWidth",{parser:ft("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),bt("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r,s){var o=t.style,a="cssFloat"in o?"cssFloat":"styleFloat";return new mt(o,a,0,0,r,-1,i,!1,0,o[a],e)}});var jt=function(t){var e,i=this.t,n=i.filter||G(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),e=!G(this.data,"filter")):(i.filter=n.replace(C,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+r+")"),-1===n.indexOf("pacity")?0===r&&this.xn1||(i.filter=n+" alpha(opacity="+r+")"):i.filter=n.replace(w,"opacity="+r))};bt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,s,o){var a=parseFloat(G(t,"opacity",r,!1,"1")),l=t.style,u="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),u&&1===a&&"hidden"===G(t,"visibility",r)&&0!==e&&(a=0),H?s=new mt(l,"opacity",a,e-a,s):((s=new mt(l,"opacity",100*a,100*(e-a),s)).xn1=u?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=o,s.setRatio=jt),u&&((s=new mt(l,"visibility",0,0,s,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(i)),s}});var Bt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace($,"-$1").toLowerCase())):t.removeAttribute(e))},Ht=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Bt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};bt("className",{parser:function(t,e,n,s,o,a,l){var u,c,h,d,f,p=t.getAttribute("class")||"",m=t.style.cssText;if((o=s._classNamePT=new mt(t,n,0,0,o,2)).setRatio=Ht,o.pr=-11,i=!0,o.b=p,c=Z(t,r),h=t._gsClassPT){for(d={},f=h.data;f;)d[f.p]=1,f=f._next;h.setRatio(1)}return t._gsClassPT=o,o.e="="!==e.charAt(1)?e:p.replace(new RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",o.e),u=J(t,c,Z(t),l,d),t.setAttribute("class",p),o.data=u.firstMPT,t.style.cssText=m,o.xfirst=s.parse(t,u.difs,o,a)}});var qt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,r,s,o=this.t.style,a=l.transform.parse;if("all"===this.e)o.cssText="",r=!0;else for(n=(e=this.e.split(" ").join("").split(",")).length;--n>-1;)i=e[n],l[i]&&(l[i].parse===a?r=!0:i="transformOrigin"===i?St:l[i].p),Bt(o,i);r&&(Bt(o,Tt),(s=this.t._gsTransform)&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(bt("clearProps",{parser:function(t,e,n,r,s){return(s=new mt(t,n,0,0,s,2)).setRatio=qt,s.e=e,s.pr=-10,s.data=r._tween,i=!0,s}}),u="bezier,throwProps,physicsProps,physics2D".split(","),_t=u.length;_t--;)wt(u[_t]);(u=o.prototype)._firstPT=u._lastParsedTransform=u._transform=null,u._onInitTween=function(t,e,a){if(!t.nodeType)return!1;this._target=t,this._tween=a,this._vars=e,c=e.autoRound,i=!1,n=e.suffixMap||o.suffixMap,r=W(t,""),s=this._overwriteProps;var u,f,m,g,v,_,y,b,w,C=t.style;if(h&&""===C.zIndex&&(("auto"===(u=G(t,"zIndex",r))||""===u)&&this._addLazySet(C,"zIndex",0)),"string"==typeof e&&(g=C.cssText,u=Z(t,r),C.cssText=g+";"+e,u=J(t,u,Z(t)).difs,!H&&x.test(e)&&(u.opacity=parseFloat(RegExp.$1)),e=u,C.cssText=g),e.className?this._firstPT=f=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=f=this.parse(t,e,null),this._transformType){for(w=3===this._transformType,Tt?d&&(h=!0,""===C.zIndex&&(("auto"===(y=G(t,"zIndex",r))||""===y)&&this._addLazySet(C,"zIndex",0)),p&&this._addLazySet(C,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(w?"visible":"hidden"))):C.zoom=1,m=f;m&&m._next;)m=m._next;b=new mt(t,"transform",0,0,null,2),this._linkCSSP(b,null,m),b.setRatio=Tt?zt:Nt,b.data=this._transform||Ft(t,r,!0),b.tween=a,b.pr=-1,s.pop()}if(i){for(;f;){for(_=f._next,m=g;m&&m.pr>f.pr;)m=m._next;(f._prev=m?m._prev:v)?f._prev._next=f:g=f,(f._next=m)?m._prev=f:v=f,f=_}this._firstPT=g}return!0}
1,u.parse=function(t,e,i,s){var o,a,u,h,d,f,p,m,g,v,_=t.style;for(o in e)f=e[o],(a=l[o])?i=a.parse(t,f,o,this,i,s,e):(d=G(t,o,r)+"",g="string"==typeof f,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||g&&T.test(f)?(g||(f=((f=ut(f)).length>3?"rgba(":"rgb(")+f.join(",")+")"),i=vt(_,o,d,f,!0,"transparent",i,0,s)):!g||-1===f.indexOf(" ")&&-1===f.indexOf(",")?(p=(u=parseFloat(d))||0===u?d.substr((u+"").length):"",(""===d||"auto"===d)&&("width"===o||"height"===o?(u=it(t,o,r),p="px"):"left"===o||"top"===o?(u=K(t,o,r),p="px"):(u="opacity"!==o?0:1,p="")),(v=g&&"="===f.charAt(1))?(h=parseInt(f.charAt(0)+"1",10),f=f.substr(2),h*=parseFloat(f),m=f.replace(b,"")):(h=parseFloat(f),m=g?f.replace(b,""):""),""===m&&(m=o in n?n[o]:p),f=h||0===h?(v?h+u:h)+m:e[o],p!==m&&""!==m&&(h||0===h)&&u&&(u=Q(t,o,u,p),"%"===m?(u/=Q(t,o,100,"%")/100,!0!==e.strictUnits&&(d=u+"%")):"em"===m||"rem"===m||"vw"===m||"vh"===m?u/=Q(t,o,1,m):"px"!==m&&(h=Q(t,o,h,m),m="px"),v&&(h||0===h)&&(f=h+u+m)),v&&(h+=u),!u&&0!==u||!h&&0!==h?void 0!==_[o]&&(f||f+""!="NaN"&&null!=f)?(i=new mt(_,o,h||u||0,0,i,-1,o,!1,0,d,f)).xs0="none"!==f||"display"!==o&&-1===o.indexOf("Style")?f:d:V("invalid "+o+" tween value: "+e[o]):(i=new mt(_,o,u,h-u,i,0,o,!1!==c&&("px"===m||"zIndex"===o),0,d,f)).xs0=m):i=vt(_,o,d,f,!0,null,i,0,s)),s&&i&&!i.plugin&&(i.plugin=s);return i},u.setRatio=function(t){var e,i,n,r=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):1e-6>e&&e>-1e-6&&(e=0),r.type)if(1===r.type)if(2===(n=r.l))r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;){if(2!==r.type)if(r.r&&-1!==r.type)if(e=Math.round(r.s+r.c),r.type){if(1===r.type){for(n=r.l,i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}}else r.t[r.p]=e+r.xs0;else r.t[r.p]=r.e;else r.setRatio(t);r=r._next}},u._enableTransforms=function(t){this._transform=this._transform||Ft(this._target,r,!0),this._transformType=this._transform.svg&&xt||!t&&3!==this._transformType?2:3};var Vt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};u._addLazySet=function(t,e,i){var n=this._firstPT=new mt(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=Vt,n.data=this},u._linkCSSP=function(t,e,i,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},u._kill=function(e){var i,n,r,s=e;if(e.autoAlpha||e.alpha){for(n in s={},e)s[n]=e[n];s.opacity=1,s.autoAlpha&&(s.visibility=1)}return e.className&&(i=this._classNamePT)&&((r=i.xfirst)&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),t.prototype._kill.call(this,s)};var Ut=function t(e,i,n){var r,s,o,a;if(e.slice)for(s=e.length;--s>-1;)t(e[s],i,n);else for(s=(r=e.childNodes).length;--s>-1;)a=(o=r[s]).type,o.style&&(i.push(Z(o)),n&&n.push(o)),1!==a&&9!==a&&11!==a||!o.childNodes.length||t(o,i,n)};return o.cascadeTo=function(t,i,n){var r,s,o,a,l=e.to(t,i,n),u=[l],c=[],h=[],d=[],f=e._internals.reservedProps;for(t=l._targets||l.target,Ut(t,c,d),l.render(i,!0,!0),Ut(t,h),l.render(0,!0,!0),l._enabled(!0),r=d.length;--r>-1;)if((s=J(d[r],c[r],h[r])).firstMPT){for(o in s=s.difs,n)f[o]&&(s[o]=n[o]);for(o in a={},s)a[o]=c[r][o];u.push(e.fromTo(d[r],i,a,s))}return u},t.activate([o]),o},!0),function(){var t=function(t){for(;t;)t.f||t.blob||(t.r=1),t=t._next},e=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.5",priority:-1,API:2,init:function(t,e,
1i){return this._tween=i,!0}}).prototype;e._onInitAllProps=function(){for(var e,i,n,r=this._tween,s=r.vars.roundProps.join?r.vars.roundProps:r.vars.roundProps.split(","),o=s.length,a={},l=r._propLookup.roundProps;--o>-1;)a[s[o]]=1;for(o=s.length;--o>-1;)for(e=s[o],i=r._firstPT;i;)n=i._next,i.pg?i.t._roundProps(a,!0):i.n===e&&(2===i.f&&i.t?t(i.t._firstPT):(this._add(i.t,e,i.s,i.c),n&&(n._prev=i._prev),i._prev?i._prev._next=n:r._firstPT===i&&(r._firstPT=n),i._next=i._prev=null,r._propLookup[e]=l)),i=n;return!1},e._add=function(t,e,i,n){this._addTween(t,e,i,i+n,e,!0),this._overwriteProps.push(e)}}(),_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.5.0",init:function(t,e,i){var n;if("function"!=typeof t.setAttribute)return!1;for(n in e)this._addTween(t,"setAttribute",t.getAttribute(n)+"",e[n]+"",n,!1,n),this._overwriteProps.push(n);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.2.1",API:2,init:function(t,e,i){"object"!=(void 0===e?"undefined":_typeof(e))&&(e={rotation:e}),this.finals={};var n,r,s,o,a,l=!0===e.useRadians?2*Math.PI:360;for(n in e)"useRadians"!==n&&(r=(a=(e[n]+"").split("_"))[0],s=parseFloat("function"!=typeof t[n]?t[n]:t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]()),o=(this.finals[n]="string"==typeof r&&"="===r.charAt(1)?s+parseInt(r.charAt(0)+"1",10)*Number(r.substr(2)):Number(r)||0)-s,a.length&&(-1!==(r=a.join("_")).indexOf("short")&&((o%=l)!==o%(l/2)&&(o=0>o?o+l:o-l)),-1!==r.indexOf("_cw")&&0>o?o=(o+9999999999*l)%l-(o/l|0)*l:-1!==r.indexOf("ccw")&&o>0&&(o=(o-9999999999*l)%l-(o/l|0)*l)),(o>1e-6||-1e-6>o)&&(this._addTween(t,n,s,s+o,n),this._overwriteProps.push(n)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,n,r=_gsScope.GreenSockGlobals||_gsScope,s=r.com.greensock,o=2*Math.PI,a=Math.PI/2,l=s._class,u=function(e,i){var n=l("easing."+e,function(){},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,n},c=t.register||function(){},h=function(t,e,i,n,r){var s=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return c(s,t),s},d=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},f=function(e,i){var n=l("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,r.config=function(t){return new n(t)},n},p=h("Back",f("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),f("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),f("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=l("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),g=m.prototype=new t;return g.constructor=m,g.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),g.config=m.config=function(t,e,i){return new m(t,e,i)},(g=(e=l("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0)).prototype=new t).constructor=e,g.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},g.config=e.config=function(t){return new e(t)},(g=(i=l("easing.RoughEase",function(e){for(var i,n,r,s,o,a,l=(e=e||{}).taper||"none",u=[],c=0,h=0|(e.points||20),f=h,p=!1!==e.randomize,m=!0===e.clamp,g=e.template instanceof t?e.template:null,v="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=p?Math.random():1/h*f,n=g?g.getRatio(i):i,"none"===l?r=v:"out"===l?r=(s=1-i)*s*v:"in"===l?r=i*i*v:.5>i?r=(s=2*i)*s*.5*v:r=(s=2*(1-i))*s*.5*v,p?n+=Math.random()*r-.5*r:f%2?n+=.5*r:n-=.5*r,m&&(n>1?n=1:0>n&&(n=0)),u[c++]={x:i,y:n};for(u.sort(function(t,e){return t.x-e.x}),a=new d(1,1,null),f=h;--f>-1;)o=u[f],a=new d(o.x,o.y,a);this._prev=new d(0,0,0!==a.t?a:a.next)},!0)).prototype=new t).constructor=i,g.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},g.config=function(t){return new i(t)},i.ease=new i,h("Bounce",u("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),u("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),u("BounceInOut",function(t){var e=.5>t;return t=1/2.75>(t=e?1-2*t:2*t-1)?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),h("Circ",u("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),u("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),u("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),h("Elastic",(n=function(e,i,n){var r=l("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(1>t?t:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),s=r.prototype=new t;return s.constructor=r,s.getRatio=i,s.config=function(t,e){return new r(t,e)},r})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),n("ElasticIn",function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)},.3),n("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),h("Expo",u("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),u("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),u("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),h("Sine",u("SineOut",function(t){return Math.sin(t*a)}),u("SineIn",function(t){return 1-Math.cos(t*a)}),u("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),c(r.SlowMo,"SlowMo","ease,"),c(i,"RoughEase","ease,"),c(e,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!i.TweenLite){var n,r,s,o,a,l=function(t){var e,n=t.split("."),r=i;for(e=0;e<n.length;e++)r[n[e]]=r=r[n[e]]||{};return r},u=l("com.greensock"),c=1e-10,h=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},d=function(){},f=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==(void 0===i?"undefined":_typeof(i))&&!!i.push&&t.call(i)===e)}}(),p={},m=function e(n,r,s,o){this.sc=p[n]?p[n].sc:[],p[n]=this,this.gsClass=null,this.func=s;var a=[];this.check=function(u){for(var c,h,d,f,m,g=r.length,v=g;--g>-1;)(c=p[r[g]]||new e(r[g],[])).gsClass?(a[g]=c.gsClass,v--):u&&c.sc.push(this);
1if(0===v&&s)for(d=(h=("com.greensock."+n).split(".")).pop(),f=l(h.join("."))[d]=this.gsClass=s.apply(s,a),o&&(i[d]=f,!(m="undefined"!=typeof module&&module.exports)&&"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+n.split(".").pop(),[],function(){return f}):"TweenMax"===n&&m&&(module.exports=f)),g=0;g<this.sc.length;g++)this.sc[g].check()},this.check(!0)},g=t._gsDefine=function(t,e,i,n){return new m(t,e,i,n)},v=u._class=function(t,e,i){return e=e||function(){},g(t,[],function(){return e},i),e};g.globals=i;var _=[0,0,1,1],y=[],b=v("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?_.concat(e):_},!0),w=b.map={},x=b.register=function(t,e,i,n){for(var r,s,o,a,l=e.split(","),c=l.length,h=(i||"easeIn,easeOut,easeInOut").split(",");--c>-1;)for(s=l[c],r=n?v("easing."+s,null,!0):u.easing[s]||{},o=h.length;--o>-1;)a=h[o],w[s+"."+a]=w[a+s]=r[a]=t.getRatio?t:t[a]||new t};for((s=b.prototype)._calcEnd=!1,s.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:.5>t?n/2:1-n/2},r=(n=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--r>-1;)s=n[r]+",Power"+r,x(new b(null,null,1,r),s,"easeOut",!0),x(new b(null,null,2,r),s,"easeIn"+(0===r?",easeNone":"")),x(new b(null,null,3,r),s,"easeInOut");w.linear=u.easing.Linear.easeIn,w.swing=u.easing.Quad.easeInOut;var C=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(s=C.prototype).addEventListener=function(t,e,i,n,r){r=r||0;var s,l,u=this._listeners[t],c=0;for(null==u&&(this._listeners[t]=u=[]),l=u.length;--l>-1;)(s=u[l]).c===e&&s.s===i?u.splice(l,1):0===c&&s.pr<r&&(c=l+1);u.splice(c,0,{c:e,s:i,up:n,pr:r}),this!==o||a||o.wake()},s.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},s.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;--e>-1;)(n=r[e])&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var T=t.requestAnimationFrame,$=t.cancelAnimationFrame,S=Date.now||function(){return(new Date).getTime()},k=S();for(r=(n=["ms","moz","webkit","o"]).length;--r>-1&&!T;)T=t[n[r]+"RequestAnimationFrame"],$=t[n[r]+"CancelAnimationFrame"]||t[n[r]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,n,r,s,l,u=this,h=S(),f=!(!1===e||!T)&&"auto",p=500,m=33,g=function t(e){var o,a,c=S()-k;c>p&&(h+=c-m),k+=c,u.time=(k-h)/1e3,o=u.time-l,(!i||o>0||!0===e)&&(u.frame++,l+=o+(o>=s?.004:s-o),a=!0),!0!==e&&(r=n(t)),a&&u.dispatchEvent("tick")};C.call(u),u.time=u.frame=0,u.tick=function(){g(!0)},u.lagSmoothing=function(t,e){p=t||1/c,m=Math.min(e,p,0)},u.sleep=function(){null!=r&&(f&&$?$(r):clearTimeout(r),n=d,r=null,u===o&&(a=!1))},u.wake=function(t){null!==r?u.sleep():t?h+=-k+(k=S()):u.frame>10&&(k=S()-p+5),n=0===i?d:f&&T?T:function(t){return setTimeout(t,1e3*(l-u.time)+1|0)},u===o&&(a=!0),g(2)},u.fps=function(t){return arguments.length?(s=1/((i=t)||60),l=this.time+s,void u.wake()):i},u.useRAF=function(t){return arguments.length?(u.sleep(),f=t,void u.fps(i)):f},u.fps(t),setTimeout(function(){"auto"===f&&u.frame<5&&"hidden"!==document.visibilityState&&u.useRAF(!1)},1500)}),(s=u.Ticker.prototype=new u.events.EventDispatcher).constructor=u.Ticker;var E=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,U){a||o.wake();var i=this.vars.useFrames?V:U;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});o=E.ticker=new u.Ticker,(s=E.prototype)._dirty=s._gc=s._initted=s._paused=!1,s._totalTime=s._time=0,s._rawPrevTime=-1,s._next=s._last=s._onUpdate=s._timeline=s.timeline=null,s._paused=!1;(function t(){a&&S()-k>2e3&&o.wake(),setTimeout(t,2e3)})(),s.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},s.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},s.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},s.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},s.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},s.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)}
vendor: 4,332 bytes, line 1
1,s.render=function(t,e,i){},s.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},s.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&t<i+this.totalDuration()/this._timeScale},s._enabled=function(t,e){return a||o.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},s._kill=function(t,e){return this._enabled(!1,!1)},s.kill=function(t,e){return this._kill(t,e),this},s._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},s._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},s._callback=function(t){var e=this.vars;e[t].apply(e[t+"Scope"]||e.callbackScope||this,e[t+"Params"]||y)},s.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=f(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},s.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},s.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},s.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},s.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},s.totalTime=function(t,e,i){if(a||o.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(R.length&&X(),this.render(t,e,!1),R.length&&X())}return this},s.progress=s.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},s.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},s.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},s.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||c,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},s.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},s.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(a||t||o.wake(),i=(e=n.rawTime())-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var P=v("core.SimpleTimeline",function(t){E.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(s=P.prototype=new E).constructor=P,s.kill()._gc=!1,s._first=s._last=s._recent=null,s._sortChildren=!1,s.add=s.insert=function(t,e,
1i,n){var r,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(s=t._startTime;r&&r._startTime>s;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},s._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},s.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=n},s.rawTime=function(){return a||o.wake(),this._totalTime};var O=v("TweenLite",function(e,i,n){if(E.call(this,i,n),this.render=O.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:O.selector(e)||e;var r,s,o,a=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?q[O.defaultOverwrite]:"number"==typeof l?l>>0:q[l],(a||e instanceof Array||e.push&&f(e))&&"number"!=typeof e[0])for(this._targets=o=h(e),this._propLookup=[],this._siblings=[],r=0;r<o.length;r++)(s=o[r])?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(o.splice(r--,1),this._targets=o=o.concat(h(s))):(this._siblings[r]=W(s,this,!1),1===l&&this._siblings[r].length>1&&Q(s,this,null,1,this._siblings[r])):"string"==typeof(s=o[r--]=O.selector(s))&&o.splice(r+1,1):o.splice(r--,1);else this._propLookup={},this._siblings=W(e,this,!1),1===l&&this._siblings.length>1&&Q(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-c,this.render(-this._delay))},!0),A=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(s=O.prototype=new E).constructor=O,s.kill()._gc=!1,s.ratio=0,s._firstPT=s._targets=s._overwrittenProps=s._startAt=null,s._notifyPluginsOfEnabled=s._lazy=!1,O.version="1.18.2",O.defaultEase=s._ease=new b(null,null,1,1),O.defaultOverwrite="auto",O.ticker=o,O.autoSleep=120,O.lagSmoothing=function(t,e){o.lagSmoothing(t,e)},O.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(O.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var R=[],I={},L=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,D=function(t){for(var e,i=this._firstPT;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,i.r?e=Math.round(e):1e-6>e&&e>-1e-6&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},M=function(t,e,i,n){var r,s,o,a,l,u,c,h=[t,e],d=0,f="",p=0;for(h.start=t,i&&(i(h),t=h[0],e=h[1]),h.length=0,r=t.match(L)||[],s=e.match(L)||[],n&&(n._next=null,n.blob=1,h._firstPT=n),l=s.length,a=0;l>a;a++)c=s[a],f+=(u=e.substr(d,e.indexOf(c,d)-d))||!a?u:",",d+=u.length,p?p=(p+1)%5:"rgba("===u.substr(-5)&&(p=1),c===r[a]||r.length<=a?f+=c:(f&&(h.push(f),f=""),o=parseFloat(r[a]),h.push(o),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:o,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-o)||0,f:0,r:p&&4>p}),d+=c.length;return(f+=e.substr(d))&&h.push(f),h.setRatio=D,h},F=function(t,e,i,n,r,s,o,a){var l,u="get"===i?t[e]:i,c=_typeof(t[e]),h="string"==typeof n&&"="===n.charAt(1),d={t:t,p:e,s:u,f:"function"===c,pg:0,n:r||e,r:s,pr:0,c:h?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-u||0};return"number"!==c&&("function"===c&&"get"===i&&(l=e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),d.s=u=o?t[l](o):t[l]()),"string"==typeof u&&(o||isNaN(u))?(d.fp=o,d={t:M(u,n,a||O.defaultStringFilter,d),p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0}):h||(d.s=parseFloat(u),d.c=parseFloat(n)-d.s||0)),d.c?((d._next=this._firstPT)&&(d._next._prev=d),this._firstPT=d,d):void 0},N=O._internals={isArray:f,isSelector:A,lazyTweens:R,blobDif:M},z=O._plugins={},j=N.tweenLookup={},B=0,H=N.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1},q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},V=E._rootFramesTimeline=new P,U=E._rootTimeline=new P,Y=30,X=N.lazyRender=function(){var t,e=R.length;for(I={};--e>-1;)(t=R[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);R.length=0};U._startTime=o.time,V._startTime=o.frame,U._active=V._active=!0,setTimeout(X,1),E._updateRoot=O.render=function(){var t,e,i;if(R.length&&X(),U.render((o.time-U._startTime)*U._timeScale,!1,!1),V.render((o.frame-V._startTime)*V._timeScale,!1,!1),R.length&&X(),o.frame>=Y){for(i in Y=o.frame+(parseInt(O.autoSleep,10)||120),j){for(t=(e=j[i].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete j[i]}if((!(i=U._first)||i._paused)&&O.autoSleep&&!V._first&&1===o._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||o.sleep()}}},o.addEventListener("tick",E._updateRoot);
1var W=function(t,e,i){var n,r,s=t._gsTweenID;if(j[s||(t._gsTweenID=s="t"+B++)]||(j[s]={target:t,tweens:[]}),e&&((n=j[s].tweens)[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return j[s].tweens},G=function(t,e,i,n){var r,s,o=t.vars.onOverwrite;return o&&(r=o(t,e,i,n)),(o=O.onOverwrite)&&(s=o(t,e,i,n)),!1!==r&&!1!==s},Q=function(t,e,i,n,r){var s,o,a,l;if(1===n||n>=4){for(l=r.length,s=0;l>s;s++)if((a=r[s])!==e)a._gc||a._kill(null,t,e)&&(o=!0);else if(5===n)break;return o}var u,h=e._startTime+c,d=[],f=0,p=0===e._duration;for(s=r.length;--s>-1;)(a=r[s])===e||a._gc||a._paused||(a._timeline!==e._timeline?(u=u||K(e,0,p),0===K(a,u,p)&&(d[f++]=a)):a._startTime<=h&&a._startTime+a.totalDuration()/a._timeScale>h&&((p||!a._initted)&&h-a._startTime<=2e-10||(d[f++]=a)));for(s=f;--s>-1;)if(a=d[s],2===n&&a._kill(i,t,e)&&(o=!0),2!==n||!a._firstPT&&a._initted){if(2!==n&&!G(a,e))continue;a._enabled(!1,!1)&&(o=!0)}return o},K=function(t,e,i){for(var n=t._timeline,r=n._timeScale,s=t._startTime;n._timeline;){if(s+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return(s/=r)>e?s-e:i&&s===e||!t._initted&&2*c>s-e?c:(s+=t.totalDuration()/t._timeScale/r)>e+c?0:s-e-c};s._init=function(){var t,e,i,n,r,s=this.vars,o=this._overwrittenProps,a=this._duration,l=!!s.immediateRender,u=s.ease;if(s.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={},s.startAt)r[n]=s.startAt[n];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=l&&!1!==s.lazy,r.startAt=r.delay=null,this._startAt=O.to(this.target,0,r),l)if(this._time>0)this._startAt=null;else if(0!==a)return}else if(s.runBackwards&&0!==a)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(n in 0!==this._time&&(l=!1),i={},s)H[n]&&"autoCSS"!==n||(i[n]=s[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&!1!==s.lazy,i.immediateRender=l,this._startAt=O.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof b?u:"function"==typeof u?new b(u,s.easeParams):w[u]||O.defaultEase:O.defaultEase,s.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,s.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o);if(e&&O._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),s.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=s.onUpdate,this._initted=!0},s._initProps=function(e,i,n,r){var s,o,a,l,u,c;if(null==e)return!1;for(s in I[e._gsTweenID]&&X(),this.vars.css||e.style&&e!==t&&e.nodeType&&z.css&&!1!==this.vars.autoCSS&&function(t,e){var i,n={};for(i in t)H[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!z[i]||z[i]&&z[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n}(this.vars,e),this.vars)if(c=this.vars[s],H[s])c&&(c instanceof Array||c.push&&f(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[s]=c=this._swapSelfInParams(c,this));else if(z[s]&&(l=new z[s])._onInitTween(e,this.vars[s],this)){for(this._firstPT=u={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:l._priority},o=l._overwriteProps.length;--o>-1;)i[l._overwriteProps[o]]=this._firstPT;(l._priority||l._onInitAllProps)&&(a=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else i[s]=F.call(this,e,s,"get",c,s,0,null,this.vars.stringFilter);return r&&this._kill(r,e)?this._initProps(e,i,n,r):this._overwrite>1&&this._firstPT&&n.length>1&&Q(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(I[e._gsTweenID]=!0),a)},s.render=function(t,e,i){var n,r,s,o,a=this._time,l=this._duration,u=this._rawPrevTime;if(t>=l-1e-7)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>u||0>=t&&t>=-1e-7||u===c&&"isPause"!==this.data)&&u!==t&&(i=!0,u>c&&(r="onReverseComplete")),this._rawPrevTime=o=!e||t||u===t?t:c);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&u>0)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(u>=0&&(u!==c||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=o=!e||t||u===t?t:c)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var h=t/l,d=this._easeType,f=this._easePower;(1===d||3===d&&h>
1=.5)&&(h=1-h),3===d&&(h*=2),1===f?h*=h:2===f?h*=h*h:3===f?h*=h*h*h:4===f&&(h*=h*h*h*h),this.ratio=1===d?1-h:2===d?h:.5>t/l?h/2:1-h/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==a||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=a,this._rawPrevTime=u,R.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&t>=0&&(this._active=!0),0===a&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&-1e-4!==t&&this._startAt.render(t,e,i),e||(this._time!==a||n)&&this._callback("onUpdate")),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&this._rawPrevTime===c&&o!==c&&(this._rawPrevTime=0))}},s._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:O.selector(e)||e;var n,r,s,o,a,l,u,c,h,d=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((f(e)||A(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){a=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(u=t||a,c=t!==r&&"all"!==r&&t!==a&&("object"!=(void 0===t?"undefined":_typeof(t))||!t._tempKill),i&&(O.onOverwrite||this.vars.onOverwrite)){for(s in u)a[s]&&(h||(h=[]),h.push(s));if((h||!t)&&!G(this,i,e,h))return!1}for(s in u)(o=a[s])&&(d&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,l=!0),o.pg&&o.t._kill(u)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[s]),c&&(r[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},s.invalidate=function(){return this._notifyPluginsOfEnabled&&O._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],E.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-c,this.render(-this._delay)),this},s._enabled=function(t,e){if(a||o.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=W(n[i],this,!0);else this._siblings=W(this.target,this,!0)}return E.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&O._onPluginEvent(t?"_onEnable":"_onDisable",this)},O.to=function(t,e,i){return new O(t,e,i)},O.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new O(t,e,i)},O.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new O(t,e,n)},O.delayedCall=function(t,e,i,n,r){return new O(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},O.set=function(t,e){return new O(t,0,e)},O.getTweensOf=function(t,e){if(null==t)return[];var i,n,r,s;if(t="string"!=typeof t?t:O.selector(t)||t,(f(t)||A(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(O.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(s=n[i],r=i;--r>-1;)s===n[r]&&n.splice(i,1)}else for(i=(n=W(t).concat()).length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n}
1,O.killTweensOf=O.killDelayedCallsTo=function(t,e,i){"object"==(void 0===e?"undefined":_typeof(e))&&(i=e,e=!1);for(var n=O.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var Z=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=Z.prototype},!0);if(s=Z.prototype,Z.version="1.18.0",Z.API=2,s._firstPT=null,s._addTween=F,s.setRatio=D,s._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},s._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},O._onPluginEvent=function(t,e){var i,n,r,s,o,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(o=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:s)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:s=a,a=o}a=e._firstPT=r}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},Z.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===Z.API&&(z[(new t[e])._propName]=t[e]);return!0},g.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},o=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){Z.call(this,i,n),this._overwriteProps=r||[]},!0===t.global),a=o.prototype=new Z(i);for(e in a.constructor=o,o.API=t.API,s)"function"==typeof t[e]&&(a[s[e]]=t[e]);return o.version=t.version,Z.activate([o]),o},n=t._gsQueue){for(r=0;r<n.length;r++)n[r]();for(s in p)p[s].func||t.console.log("GSAP encountered missing dependency: com.greensock."+s)}a=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window);_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){var e,i,n="0.4.2",r="hasOwnProperty",s=/[\.\/]/,o=function(){},a=function(t,e){return t-e},l={n:{}},u=function t(n,r){n=String(n);var s,o=i,l=Array.prototype.slice.call(arguments,2),u=t.listeners(n),c=0,h=[],d={},f=[],p=e;e=n,i=0;for(var m=0,g=u.length;g>m;m++)"zIndex"in u[m]&&(h.push(u[m].zIndex),u[m].zIndex<0&&(d[u[m].zIndex]=u[m]));for(h.sort(a);h[c]<0;)if(s=d[h[c++]],f.push(s.apply(r,l)),i)return i=o,f;for(m=0;g>m;m++)if("zIndex"in(s=u[m]))if(s.zIndex==h[c]){if(f.push(s.apply(r,l)),i)break;do{if((s=d[h[++c]])&&f.push(s.apply(r,l)),i)break}while(s)}else d[s.zIndex]=s;else if(f.push(s.apply(r,l)),i)break;return i=o,e=p,f.length?f:null};u._events=l,u.listeners=function(t){var e,i,n,r,o,a,u,c,h=t.split(s),d=l,f=[d],p=[];for(r=0,o=h.length;o>r;r++){for(c=[],a=0,u=f.length;u>a;a++)for(i=[(d=f[a].n)[h[r]],d["*"]],n=2;n--;)(e=i[n])&&(c.push(e),p=p.concat(e.f||[]));f=c}return p},u.on=function(t,e){if(t=String(t),"function"!=typeof e)return function(){};for(var i=t.split(s),n=l,r=0,a=i.length;a>r;r++)n=(n=n.n).hasOwnProperty(i[r])&&n[i[r]]||(n[i[r]]={n:{}});for(n.f=n.f||[],r=0,a=n.f.length;a>r;r++)if(n.f[r]==e)return o;return n.f.push(e),function(t){+t==+t&&(e.zIndex=+t)}},u.f=function(t){var e=[].slice.call(arguments,1);return function(){u.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},u.stop=function(){i=1},u.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},u.nts=function(){return e.split(s)},u.off=u.unbind=function(t,e){if(t){var i,n,o,a,c,h,d,f=t.split(s),p=[l];for(a=0,c=f.length;c>a;a++)for(h=0;h<p.length;h+=o.length-2){if(o=[h,1],i=p[h].n,"*"!=f[a])i[f[a]]&&o.push(i[f[a]]);else for(n in i)i[r](n)&&o.push(i[n]);p.splice.apply(p,o)}for(a=0,c=p.length;c>a;a++)for(i=p[a];i.n;){if(e){if(i.f){for(h=0,d=i.f.length;d>h;h++)if(i.f[h]==e){i.f.splice(h,1);break}!i.f.length&&delete i.f}for(n in i.n)if(i.n[r](n)&&i.n[n].f){var m=i.n[n].f;for(h=0,d=m.length;d>h;h++)if(m[h]==e){m.splice(h,1);break}!m.length&&delete i.n[n].f}}else for(n in delete i.f,i.n)i.n[r](n)&&i.n[n].f&&delete i.n[n].f;i=i.n}}else u._events=l={n:{}}},u.once=function(t,e){return u.on(t,function i(){return u.unbind(t,i),e.apply(this,arguments)})},u.version=n,u.toString=function(){return"You are running Eve "+n},"undefined"!=typeof module&&module.exports?module.exports=u:"undefined"!=typeof define?define("eve",[],function(){return u}):t.eve=u}(this),function(t,e){"function"==typeof define&&define.amd?define(["eve"],function(i){return e(t,i)}):e(t,t.eve)}(this,function(t,e){var i=function(e){var i={},n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(t){setTimeout(t,16)},r=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},s=0,o="M"+(+new Date).toString(36),a=function(){return o+(s++).toString(36)},l=function(t){var e=this;if(null==t)return e.s;var i=e.s-t;e.b+=e.dur*i,e.B+=e.dur*i,e.s=t},u=function(t){return null==t?this.spd:void(this.spd=t)},c=function(t){var e=this;return null==t?e.dur:(e.s=e.s*t/e.dur,void(e.dur=t))},h=function(){var t=this;delete i[t.id],e("mina.stop."+t.id,t)},d=function(){var t=this;t.pdif||(delete i[t.id],t.pdif=t.get()-t.b)},f=function(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,i[t.id]=t)},p=function t(){var s=0;for(var o in i)if(i.hasOwnProperty(o)){var a,l=i[o],u=l.get();if(s++,l.s=(u-l.b)/(l.dur/l.spd),l.s>=1&&(delete i[o],l.s=1,s--),r(l.start)){a=[];for(var c=0,h=l.start.length;h>c;c++)a[c]=l.start[c]+(l.end[c]-l.start[c])*l.easing(l.s)}else a=l.start+(l.end-l.start)*l.easing(l.s);l.set(a),1==l.s&&e("mina.finish."+l.id,l)}s&&n(t)},m=function t(e,r,s,o,m,g,v){var _={id:a(),start:e,end:r,b:s,s:0,dur:o-s,spd:1,get:m,set:g,easing:v||t.linear,status:l,speed:u,duration:c,stop:h,pause:d,resume:f};i[_.id]=_;var y,b=0;for(y in i)if(i.hasOwnProperty(y)&&2==++b)break;return 1==b&&n(p),_};return m.time=function(){return+new Date},m.getById=function(t){return i[t]||null},m.linear=function(t){return t},m.easeout=function(t){return Math.pow(t,1.7)},m.easein=function(t){return Math.pow(t,.48)},m.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,i=Math.sqrt(.1734+e*e),n=i-e,r=-i-e,s=Math.pow(Math.abs(n),1/3)*(0>n?-1:1)+Math.pow(Math.abs(r),1/3)*(0>r?-1:1)+.5;return 3*(1-s)*s*s+s*s*s},m.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},m.backout=function(t){if(0==t)return 0;var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},m.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin(2*(t-.075)*Math.PI/.3)+1},m.bounce=function(t){var e,i=7.5625,n=2.75;return 1/n>t?e=i*t*t:2/n>t?e=i*(t-=1.5/n)*t+.75:2.5/n>t?e=i*(t-=2.25/n)*t+.9375:e=i*(t-=2.625/n)*t+.984375,e},t.mina=m,m}(void 0===e?function(){}:e);!function(){function t(t){for(var e,n,r=1,s=(t=t||Object(t)).length+1,a=i(t,0);s>r;r++)e=n,n=a,a=i(t,r),this.raw+=n,o.call(this,n,a,e);return this._beforeEnd=function(){o.call(this,"","",n)},this}function i(t,e){return t&&(t.charAt?t.charAt(e):t[e])}function n(t,e){this.events=this.events||{},this.events[t]=this.events[t]||[],this.events[t].push(e)}function r(t,i,n){"function"==typeof e&&e("elemental."+t+(i?"."+i:""),null,i,n||"",this.raw);for(var r=this.events&&this.events[t],s=r&&r.length;s--;)try{this.events[t][s](i,n||"",this.raw)}catch(t){}this.raw=""}function s(){o.call(this,"eof"),this.event("eof")}function o(t,e,i){"\n"==t&&this.event("newline"),d[this.mode].call(this,t,e,i)}function a(e,i){var o=function t(e){t.parse(e)};return o.mode="text",o.type=String(e||"html").toLowerCase(),o.textchunk="",o.raw="",o.parse=t,o.on=n,o.event=r,o.end=s,i&&(l=i),o}var l={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176},u=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/,c=function(t){var e;return"#"==t.charAt()&&(e="x"==t.charAt(1).toLowerCase()?parseInt(t.substring(2),16):parseInt(t.substring(1),10)),(e=l[t])?String.fromCharCode(e):"&"+t},h=function(){for(var t in this.attr)this.attr.hasOwnProperty(t)&&this.event("attr",t,{value:this.attr[t],tagname:this.tagname,attr:this.attr})},d={text:function(t){switch(t){case"<":case"eof":this.nodename="",this.attr={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.event("text",this.textchunk),this.raw+=t,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=t}},entity:function(t){u.test(t)?(this.textchunk+=c(this.entity),this.mode="text"):";"==t?(this.textchunk+=c(this.entity+t),this.mode="text"):this.entity+=t}
1,special:function(t,e,i){return"!"==i&&"-"==t&&"-"==e?void(this.mode="comment start"):"[CDATA"==this.textchunk&&"["==t?(this.mode="cdata",void(this.textchunk="")):">"==t||"eof"==t?(this.event("special",this.textchunk),this.mode="text",void(this.textchunk="")):void(this.textchunk+=t)},cdata:function(t,e,i){return"]"==i&&"]"==t&&">"==e?(this.mode="cdata end",void(this.textchunk=this.textchunk.slice(0,-1))):("eof"==t&&d["cdata end"].call(this),void(this.textchunk+=t))},"cdata end":function(){this.event("cdata",this.textchunk),this.textchunk="",this.mode="text"},"comment start":function(t,e){">"==e||"eof"==t?(this.event("comment",""),this.mode="skip"):this.mode="comment"},skip:function(){this.mode="text"},comment:function(t,e,i){"-"==t&&"-"==i&&">"==e?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):"eof"==t?this.event("comment",this.textchunk):this.textchunk+=t},"comment end":function(){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},declaration:function(t,e){return"?"==t&&">"==e?void(this.mode="declaration end"):("eof"==t&&this.event("comment",this.textchunk),void(this.textchunk+=t))},"declaration end":function(){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},"tag name start":function(t,e,i){if("eof"!=t){if(!u.test(t)){if(this.mode="tag name","/"==t)return void(this.mode="close tag name start");if("!"==t)return this.mode="special",void(this.textchunk="");if("?"==t)return void(this.mode="declaration");d[this.mode].call(this,t,e,i)}}else this.event("text","<")},"close tag name start":function(t,e,i){u.test(t)||(this.mode="close tag name",this.tagname="",this.nodename="",d[this.mode].call(this,t,e,i))},"close tag name":function(t){if(u.test(t))this.tagname=this.nodename;else switch(t){case">":this.event("/tag",this.tagname||this.nodename),this.mode="text";break;default:!this.tagname&&(this.nodename+=t)}},"tag name":function(t,e){if(u.test(t))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(t){case">":this.event("tag",this.nodename),this.mode="text";break;case"/":this.raw+=e,this.event("tag",this.nodename),this.event("/tag",this.nodename),this.mode="skip";break;default:this.nodename+=t}},"attr start":function(t,e,i){u.test(t)||(this.mode="attr",this.nodename="",d[this.mode].call(this,t,e,i))},attr:function(t){if(u.test(t)||"="==t)this.attr[this.nodename]="",this.mode="attr value start";else switch(t){case">":"/"==this.nodename?(delete this.attr["/"],this.event("tag",this.tagname,this.attr),h.call(this),this.event("/tag",this.tagname,!0)):(this.nodename&&(this.attr[this.nodename]=""),this.event("tag",this.tagname,this.attr),h.call(this)),this.mode="text";break;default:this.nodename+=t}},"attr value start":function(t,e,i){if(!u.test(t)){if(this.mode="attr value",this.quote=!1,"'"==t||'"'==t)return void(this.quote=t);d[this.mode].call(this,t,e,i)}},"attr value":function(t,e,i){if(u.test(t)&&!this.quote)this.mode="attr start";else if(">"!=t||this.quote)switch(t){case'"':case"'":this.quote==t&&"\\"!=i&&(this.mode="attr start");break;default:this.attr[this.nodename]+=t}else this.event("tag",this.tagname,this.attr),this.mode="text"}};a.version="0.2.4",("undefined"==typeof exports?this:exports).elemental=a}();var n=function(){function n(t,e){if(t){if(t.tagName)return x(t);if(t instanceof v)return t;if(null==e)return x(t=O.doc.querySelector(t))}return new w(t=null==t?"100%":t,e=null==e?"100%":e)}function r(t,e){if(e){if("string"==typeof t&&(t=r(t)),"string"==typeof e)return"xlink:"==e.substring(0,6)?t.getAttributeNS(it,e.substring(6)):t.getAttribute(e);for(var i in e)if(e[A](i)){var n=R(e[i]);n?"xlink:"==i.substring(0,6)?t.setAttributeNS(it,i.substring(6),n):t.setAttribute(i,n):t.removeAttribute(i)}}else t=O.doc.createElementNS("http://www.w3.org/2000/svg",t);return t}function s(t,e){return"finite"==(e=R.prototype.toLowerCase.call(e))?!V[A](+t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==(void 0===t?"undefined":_typeof(t))&&null!==t||"object"==e&&t===Object(t)||H.call(t).slice(8,-1).toLowerCase()==e)}function o(t,e,i){return function n(){var r=Array.prototype.slice.call(arguments,0),s=r.join("â"),o=n.cache=n.cache||{},a=n.count=n.count||[];return o[A](s)?(function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return t.push(t.splice(i,1)[0])}(a,s),i?i(o[s]):o[s]):(a.length>=1e3&&delete o[a.shift()],a.push(s),o[s]=t.apply(e,r),i?i(o[s]):o[s])}}function a(t){return t%360*z/180}function l(t){return 180*t/z%360}function u(){return this.x+B+this.y+B+this.width+" Ã "+this.height}function c(t,e,i,n,r,s){return null==e&&"[object SVGMatrix]"==H.call(t)?(this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f)):void(null!=t?(this.a=+t,this.b=+e,this.c=+i,this.d=+n,this.e=+r,this.f=+s):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}function h(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(t,i,n){return n=n.split(/\s*,\s*/),"rotate"==i&&1==n.length&&n.push(0,0),"scale"==i&&(2==n.length&&n.push(0,0),1==n.length&&n.push(n[0],0,0)),"skewX"==i?e.push(["m",1,0,D.tan(a(n[0])),1,0,0]):"skewY"==i?e.push(["m",1,D.tan(a(n[0])),0,1,0,0]):e.push([i.charAt(0)].concat(n)),t}),e}function d(t,e){var i=ht(t),n=new c;if(i)for(var r=0,s=i.length;s>r;r++){var o,a,l,u,h,d=i[r],f=d.length,p=R(d[0]).toLowerCase(),m=d[0]!=p,g=m?n.invert():0;"t"==p&&3==f?m?(o=g.x(0,0),a=g.y(0,0),l=g.x(d[1],d[2]),u=g.y(d[1],d[2]),n.translate(l-o,u-a)):n.translate(d[1],d[2]):"r"==p?2==f?(h=h||e,n.rotate(d[1],h.x+h.width/2,h.y+h.height/2)):4==f&&(m?(l=g.x(d[2],d[3]),u=g.y(d[2],d[3]),n.rotate(d[1],l,u)):n.rotate(d[1],d[2],d[3])):"s"==p?2==f||3==f?(h=h||e,n.scale(d[1],d[f-1],h.x+h.width/2,h.y+h.height/2)):4==f?m?(l=g.x(d[2],d[3]),u=g.y(d[2],d[3]),n.scale(d[1],d[1],l,u)):n.scale(d[1],d[1],d[2],d[3]):5==f&&(m?(l=g.x(d[3],d[4]),u=g.y(d[3],d[4]),n.scale(d[1],d[2],l,u)):n.scale(d[1],d[2],d[3],d[4])):"m"==p&&7==f&&n.add(d[1],d[2],d[3],d[4],d[5],d[6])}return n}function f(t,e){if(null==e){var i=!0;if(!(e="linearGradient"==t.type||"radialGradient"==t.type?t.node.getAttribute("gradientTransform"):"pattern"==t.type?t.node.getAttribute("patternTransform"):t.node.getAttribute("transform")))return new c;e=h(e)}else s(e=dt.test(e)?R(e).replace(/\.{3}|\u2026/g,t._.transform||j):h(e),"array")&&(e=n.path?n.path.toString.call(e):R(e)),t._.transform=e;var r=d(e,t.getBBox(1));return i?r:void(t.matrix=r)}function p(t){if(n._.someDefs)return n._.someDefs;var e=t.paper||t.node.parentNode&&n(t.node.parentNode)||n.select("svg")||n(0,0),i=e.select("defs").node;
1return i||(i=b("defs",e.node).node),n._.someDefs=i,i}function m(t,e,i){function n(t){return null==t?j:t==+t?t:(r(u,{width:t}),u.getBBox().width)}function s(t){return null==t?j:t==+t?t:(r(u,{height:t}),u.getBBox().height)}function o(n,r){null==e?l[n]=r(t.attr(n)):n==e&&(l=r(null==i?t.attr(n):i))}var a=p(t),l={},u=a.querySelector(".svg---mgr");switch(u||(r(u=r("rect"),{width:10,height:10,class:"svg---mgr"}),a.appendChild(u)),t.type){case"rect":o("rx",n),o("ry",s);case"image":o("width",n),o("height",s);case"text":o("x",n),o("y",s);break;case"circle":o("cx",n),o("cy",s),o("r",n);break;case"ellipse":o("cx",n),o("cy",s),o("rx",n),o("ry",s);break;case"line":o("x1",n),o("x2",n),o("y1",s),o("y2",s);break;case"marker":o("refX",n),o("markerWidth",n),o("refY",s),o("markerHeight",s);break;case"radialGradient":o("fx",n),o("fy",s);break;case"tspan":o("dx",n),o("dy",s);break;default:o(e,n)}return l}function g(t){s(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,i=0,n=this.node;this[e];)delete this[e++];for(e=0;e<t.length;e++)"set"==t[e].type?t[e].forEach(function(t){n.appendChild(t.node)}):n.appendChild(t[e].node);var r=n.childNodes;for(e=0;e<r.length;e++)r[e].snap&&(this[i++]=nt[r[e].snap])}function v(t){if(t.snap in nt)return nt[t.snap];var e,i=this.id=et();try{e=t.ownerSVGElement}catch(t){}if(this.node=t,e&&(this.paper=new w(e)),this.type=t.tagName,this.anims={},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},t.snap=i,nt[i]=this,"g"==this.type)for(var n in this.add=g,w.prototype)w.prototype[A](n)&&(this[n]=w.prototype[n])}function _(t){for(var e,i=0,n=t.length;n>i;i++)if(e=e||t[i])return e}function y(t){this.node=t}function b(t,e){var i=r(t);e.appendChild(i);var n=x(i);return n.type=t,n}function w(t,e){var i,n,s,o=w.prototype;if(t&&"svg"==t.tagName){if(t.snap in nt)return nt[t.snap];for(var a in i=new v(t),n=t.getElementsByTagName("desc")[0],s=t.getElementsByTagName("defs")[0],n||((n=r("desc")).appendChild(O.doc.createTextNode("Created with Snap")),i.node.appendChild(n)),s||(s=r("defs"),i.node.appendChild(s)),i.defs=s,o)o[A](a)&&(i[a]=o[a]);i.paper=i.root=i}else r((i=b("svg",O.doc.body)).node,{height:e,version:1.1,width:t,xmlns:"http://www.w3.org/2000/svg"});return i}function x(t){return t?t instanceof v||t instanceof y?t:"svg"==t.tagName?new w(t):new v(t):t}function C(){return this.selectAll("stop")}function T(t,e){var i=r("stop"),s={offset:+e+"%"};return t=n.color(t),s["stop-color"]=t.hex,t.opacity<1&&(s["stop-opacity"]=t.opacity),r(i,s),this.node.appendChild(i),this}function $(){if("linearGradient"==this.type){var t=r(this.node,"x1")||0,e=r(this.node,"x2")||1,i=r(this.node,"y1")||0,s=r(this.node,"y2")||0;return n._.box(t,i,D.abs(e-t),D.abs(s-i))}var o=this.node.cx||.5,a=this.node.cy||.5,l=this.node.r||0;return n._.box(o-l,a-l,2*l,2*l)}function S(t,i){function n(t,e){for(var i=(e-u)/(t-c),n=c;t>n;n++)a[n].offset=+(+u+i*(n-c)).toFixed(2);c=t,u=e}var s,o=_(e("snap.util.grad.parse",null,i));if(!o)return null;o.params.unshift(t),s="l"==o.type.toLowerCase()?k.apply(0,o.params):E.apply(0,o.params),o.type!=o.type.toLowerCase()&&r(s.node,{gradientUnits:"userSpaceOnUse"});var a=o.stops,l=a.length,u=0,c=0;l--;for(var h=0;l>h;h++)"offset"in a[h]&&n(h,a[h].offset);for(a[l].offset=a[l].offset||100,n(l,a[l].offset),h=0;l>=h;h++){var d=a[h];s.addStop(d.color,d.offset)}return s}function k(t,e,i,n,s){var o=b("linearGradient",t);return o.stops=C,o.addStop=T,o.getBBox=$,null!=e&&r(o.node,{x1:e,y1:i,x2:n,y2:s}),o}function E(t,e,i,n,s,o){var a=b("radialGradient",t);return a.stops=C,a.addStop=T,a.getBBox=$,null!=e&&r(a.node,{cx:e,cy:i,r:n}),null!=s&&null!=o&&r(a.node,{fx:s,fy:o}),a}function P(t){return function(i){if(e.stop(),i instanceof y&&1==i.node.childNodes.length&&("radialGradient"==i.node.firstChild.tagName||"linearGradient"==i.node.firstChild.tagName||"pattern"==i.node.firstChild.tagName)&&(i=i.node.firstChild,p(this).appendChild(i),i=x(i)),i instanceof v)if("radialGradient"==i.type||"linearGradient"==i.type||"pattern"==i.type){i.node.id||r(i.node,{id:i.id});var s="url(#"+i.node.id+")"}else s=i.attr(t);else if((s=n.color(i)).error){var o=S(p(this),i);o?(o.node.id||r(o.node,{id:o.id}),s="url(#"+o.node.id+")"):s=i}else s=R(s);var a={};a[t]=s,r(this.node,a),this.node.style[t]=j}}n.version="0.1.0",n.toString=function(){return"Snap v"+this.version},n._={};var O={win:t,doc:t.document};n._.glob=O;var A="hasOwnProperty",R=String,I=parseFloat,L=parseInt,D=Math,M=D.max,F=D.min,N=D.abs,z=(D.pow,D.PI),j=(D.round,""),B=" ",H=Object.prototype.toString,q=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,V={NaN:1,Infinity:1,"-Infinity":1},U=/^url\(#?([^)]+)\)$/,Y="\t\n\v\f\r  áá ââââââ
ââââââ¯âã\u2028\u2029",X=new RegExp("[,"+Y+"]+"),W=(new RegExp("["+Y+"]","g"),new RegExp("["+Y+"]*,["+Y+"]*")),G={hs:1,rg:1},Q=new RegExp("([a-z])["+Y+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Y+"]*,?["+Y+"]*)+)","ig"),K=new RegExp("([rstm])["+Y+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Y+"]*,?["+Y+"]*)+)","ig"),Z=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Y+"]*,?["+Y+"]*","ig"),J=0,tt="S"+(+new Date).toString(36),et=function(){return tt+(J++).toString(36)},it="http://www.w3.org/1999/xlink",nt={};n._.$=r,n._.id=et,n.format=function(){var t=/\{([^\}]+)\}
1/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(t,i,n){var r=n;return i.replace(e,function(t,e,i,n,s){e=e||n,r&&(e in r&&(r=r[e]),"function"==typeof r&&s&&(r=r()))}),r=(null==r||r==n?t:r)+""};return function(e,n){return R(e).replace(t,function(t,e){return i(t,e,n)})}}();var rt=function(){function t(){this.parentNode.removeChild(this)}return function(e,i){var n=O.doc.createElement("img"),r=O.doc.body;n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){i.call(n),n.onload=n.onerror=null,r.removeChild(n)},n.onerror=t,r.appendChild(n),n.src=e}}();n._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var i=new e.constructor;for(var n in e)e[A](n)&&(i[n]=t(e[n]));return i},n._.cacher=o,n.rad=a,n.deg=l,n.angle=function t(e,i,n,r,s,o){if(null==s){var a=e-n,l=i-r;return a||l?(180+180*D.atan2(-l,-a)/z+360)%360:0}return t(e,i,s,o)-t(n,r,s,o)},n.is=s,n.snapTo=function(t,e,i){if(i=s(i,"finite")?i:10,s(t,"array")){for(var n=t.length;n--;)if(N(t[n]-e)<=i)return t[n]}else{var r=e%(t=+t);if(i>r)return e-r;if(r>t-i)return e-r+t}return e},function(t){function e(t){return t[0]*t[0]+t[1]*t[1]}function i(t){var i=D.sqrt(e(t));t[0]&&(t[0]/=i),t[1]&&(t[1]/=i)}t.add=function(t,e,i,n,r,s){var o,a,l,u,h=[[],[],[]],d=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],f=[[t,i,r],[e,n,s],[0,0,1]];for(t&&t instanceof c&&(f=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),o=0;3>o;o++)for(a=0;3>a;a++){for(u=0,l=0;3>l;l++)u+=d[o][l]*f[l][a];h[o][a]=u}return this.a=h[0][0],this.b=h[1][0],this.c=h[0][1],this.d=h[1][1],this.e=h[0][2],this.f=h[1][2],this},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new c(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new c(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){return this.add(1,0,0,1,t,e)},t.scale=function(t,e,i,n){return null==e&&(e=t),(i||n)&&this.add(1,0,0,1,i,n),this.add(t,0,0,e,0,0),(i||n)&&this.add(1,0,0,1,-i,-n),this},t.rotate=function(t,e,i){t=a(t),e=e||0,i=i||0;var n=+D.cos(t).toFixed(9),r=+D.sin(t).toFixed(9);return this.add(n,r,-r,n,e,i),this.add(1,0,0,1,-e,-i)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[R.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var n=[[this.a,this.c],[this.b,this.d]];t.scalex=D.sqrt(e(n[0])),i(n[0]),t.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*t.shear,n[1][1]-n[0][1]*t.shear],t.scaley=D.sqrt(e(n[1])),i(n[1]),t.shear/=t.scaley;var r=-n[0][1],s=n[1][1];return 0>s?(t.rotate=l(D.acos(s)),0>r&&(t.rotate=360-t.rotate)):t.rotate=l(D.asin(r)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){var e=t||this.split();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:j)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:j)+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:j)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(c.prototype),n.Matrix=c,n.getRGB=o(function(t){if(!t||(t=R(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:lt};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:lt};if(!(G[A](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=st(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:lt};var e,i,r,o,a,l,u=t.match(q);return u?(u[2]&&(r=L(u[2].substring(5),16),i=L(u[2].substring(3,5),16),e=L(u[2].substring(1,3),16)),u[3]&&(r=L((a=u[3].charAt(3))+a,16),i=L((a=u[3].charAt(2))+a,16),e=L((a=u[3].charAt(1))+a,16)),u[4]&&(l=u[4].split(W),e=I(l[0]),"%"==l[0].slice(-1)&&(e*=2.55),i=I(l[1]),"%"==l[1].slice(-1)&&(i*=2.55),r=I(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),"rgba"==u[1].toLowerCase().slice(0,4)&&(o=I(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100)),u[5]?(l=u[5].split(W),e=I(l[0]),"%"==l[0].slice(-1)&&(e/=100),i=I(l[1]),"%"==l[1].slice(-1)&&(i/=100),r=I(l[2]),"%"==l[2].slice(-1)&&(r/=100),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(e/=360),"hsba"==u[1].toLowerCase().slice(0,4)&&(o=I(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100),n.hsb2rgb(e,i,r,o)):u[6]?(l=u[6].split(W),e=I(l[0]),"%"==l[0].slice(-1)&&(e/=100),i=I(l[1]),"%"==l[1].slice(-1)&&(i/=100),r=I(l[2]),"%"==l[2].slice(-1)&&(r/=100),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(e/=360),"hsla"==u[1].toLowerCase().slice(0,4)&&(o=I(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100),n.hsl2rgb(e,i,r,o)):(e=F(D.roun
1d(e),255),i=F(D.round(i),255),r=F(D.round(r),255),o=F(M(o,0),1),(u={r:e,g:i,b:r,toString:lt}).hex="#"+(16777216|r|i<<8|e<<16).toString(16).slice(1),u.opacity=s(o,"finite")?o:1,u)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:lt}},n),n.hsb=o(function(t,e,i){return n.hsb2rgb(t,e,i).hex}),n.hsl=o(function(t,e,i){return n.hsl2rgb(t,e,i).hex}),n.rgb=o(function(t,e,i,n){if(s(n,"finite")){var r=D.round;return"rgba("+[r(t),r(e),r(i),+n.toFixed(2)]+")"}return"#"+(16777216|i|e<<8|t<<16).toString(16).slice(1)});var st=function(t){var e=O.doc.getElementsByTagName("head")[0],i="rgb(255, 0, 0)";return(st=o(function(t){if("red"==t.toLowerCase())return i;e.style.color=i,e.style.color=t;var n=O.doc.defaultView.getComputedStyle(e,j).getPropertyValue("color");return n==i?null:n}))(t)},ot=function(){return"hsb("+[this.h,this.s,this.b]+")"},at=function(){return"hsl("+[this.h,this.s,this.l]+")"},lt=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},ut=function(t,e,i){if(null==e&&s(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,e=t.g,t=t.r),null==e&&s(t,string)){var r=n.getRGB(t);t=r.r,e=r.g,i=r.b}return(t>1||e>1||i>1)&&(t/=255,e/=255,i/=255),[t,e,i]},ct=function(t,e,i,r){var o={r:t=D.round(255*t),g:e=D.round(255*e),b:i=D.round(255*i),opacity:s(r,"finite")?r:1,hex:n.rgb(t,e,i),toString:lt};return s(r,"finite")&&(o.opacity=r),o};n.color=function(t){var e;return s(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=n.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):s(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=n.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(s(t,"string")&&(t=n.getRGB(t)),s(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=n.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=n.rgb2hsb(t),t.v=e.b):((t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=lt,t},n.hsb2rgb=function(t,e,i,n){var r,o,a,l,u;return s(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=(t=t.h).o),l=(u=i*e)*(1-N((t=(t*=360)%360/60)%2-1)),r=o=a=i-u,ct(r+=[u,l,0,0,l,u][t=~~t],o+=[l,u,u,l,0,0][t],a+=[0,0,l,u,u,l][t],n)},n.hsl2rgb=function(t,e,i,n){var r,o,a,l,u;return s(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),t=(t*=360)%360/60,l=(u=2*e*(.5>i?i:1-i))*(1-N(t%2-1)),r=o=a=i-u/2,ct(r+=[u,l,0,0,l,u][t=~~t],o+=[l,u,u,l,0,0][t],a+=[0,0,l,u,u,l][t],n)},n.rgb2hsb=function(t,e,i){var n,r;return t=(i=ut(t,e,i))[0],e=i[1],i=i[2],{h:((0==(r=(n=M(t,e,i))-F(t,e,i))?null:n==t?(e-i)/r:n==e?(i-t)/r+2:(t-e)/r+4)+360)%6*60/360,s:0==r?0:r/n,b:n,toString:ot}},n.rgb2hsl=function(t,e,i){var n,r,s,o;return t=(i=ut(t,e,i))[0],e=i[1],i=i[2],n=((r=M(t,e,i))+(s=F(t,e,i)))/2,{h:((0==(o=r-s)?null:r==t?(e-i)/o:r==e?(i-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:0==o?0:.5>n?o/(2*n):o/(2-2*n),l:n,toString:at}},n.parsePathString=function(t){if(!t)return null;var e=n.path(t);if(e.arr)return n.path.clone(e.arr);var i={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return s(t,"array")&&s(t[0],"array")&&(r=n.path.clone(t)),r.length||R(t).replace(Q,function(t,e,n){var s=[],o=e.toLowerCase();if(n.replace(Z,function(t,e){e&&s.push(+e)}),"m"==o&&s.length>2&&(r.push([e].concat(s.splice(0,2))),o="l",e="m"==e?"l":"L"),"o"==o&&1==s.length&&r.push([e,s[0]]),"r"==o)r.push([e].concat(s));else for(;s.length>=i[o]&&(r.push([e].concat(s.splice(0,i[o]))),i[o]););}),r.toString=n.path.toString,e.arr=n.path.clone(r),r};var ht=n.parseTransformString=function(t){if(!t)return null;var e=[];return s(t,"array")&&s(t[0],"array")&&(e=n.path.clone(t)),e.length||R(t).replace(K,function(t,i,n){var r=[];i.toLowerCase(),n.replace(Z,function(t,e){e&&r.push(+e)}),e.push([i].concat(r))}),e.toString=n.path.toString,e},dt=new RegExp("^[a-z]["+Y+"]*-?\\.?\\d");n._.transform2matrix=d,n._unit2px=m,n._.getSomeDefs=p,n.select=function(t){return x(O.doc.querySelector(t))},n.selectAll=function(t){for(var e=O.doc.querySelectorAll(t),i=(n.set||Array)(),r=0;r<e.length;r++)i.push(x(e[r]));return i},function(t){function o(t,e,i){return function(n){var r=n.slice(t,e);return 1==r.length&&(r=r[0]),i?i(r):r}}
1function a(t){return function(){var e=t?"<"+this.type:"",i=this.node.attributes,n=this.node.childNodes;if(t)for(var r=0,s=i.length;s>r;r++)e+=" "+i[r].name+'="'+i[r].value.replace(/"/g,'\\"')+'"';if(n.length){for(t&&(e+=">"),r=0,s=n.length;s>r;r++)3==n[r].nodeType?e+=n[r].nodeValue:1==n[r].nodeType&&(e+=x(n[r]).toString());t&&(e+="</"+this.type+">")}else t&&(e+="/>");return e}}t.attr=function(t,i){var n=this;if(n.node,!t)return n;if(s(t,"string")){if(!(arguments.length>1))return _(e("snap.util.getattr."+t,n));var r={};r[t]=i,t=r}for(var o in t)t[A](o)&&e("snap.util.attr."+o,n,t[o]);return n},t.getBBox=function(t){var e=this;if("use"==e.type&&(e=e.original),e.removed)return{};var i=e._;return t?((i.dirty||!i.bboxwt)&&(e.realPath=n.path.get[e.type](e),i.bboxwt=n.path.getBBox(e.realPath),i.bboxwt.toString=u,i.dirty=0),n._.box(i.bboxwt)):((i.dirty||i.dirtyT||!i.bbox)&&((i.dirty||!e.realPath)&&(i.bboxwt=0,e.realPath=n.path.get[e.type](e)),i.bbox=n.path.getBBox(n.path.map(e.realPath,e.matrix)),i.bbox.toString=u,i.dirty=i.dirtyT=0),n._.box(i.bbox))};var l=function(){return this.string};t.transform=function(t){var e=this._;if(null==t){var i=new c(this.node.getCTM()),n=f(this),s=n.toTransformString();return{string:R(n)==R(this.matrix)?e.transform:s,globalMatrix:i,localMatrix:n,diffMatrix:i.clone().add(n.invert()),global:i.toTransformString(),local:s,toString:l}}return t instanceof c&&(t=t.toTransformString()),f(this,t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?r(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?r(this.node,{patternTransform:this.matrix}):r(this.node,{transform:this.matrix})),this},t.parent=function(){return x(this.node.parentNode)},t.append=t.add=function(t){if("set"==t.type){var e=this;return t.forEach(function(t){e.append(t)}),this}return t=x(t),this.node.appendChild(t.node),t.paper=this.paper,this},t.prepend=function(t){return t=x(t),this.node.insertBefore(t.node,this.node.firstChild),t.paper=this.paper,this},t.before=function(t){return t=x(t),this.node.parentNode.insertBefore(t.node,this.node),t.paper=this.paper,this},t.after=function(t){return t=x(t),this.node.parentNode.insertBefore(t.node,this.node.nextSibling),t.paper=this.paper,this},t.insertBefore=function(t){return(t=x(t)).node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,this},t.insertAfter=function(t){return(t=x(t)).node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,this},t.remove=function(){return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,this},t.select=function(t){return x(this.node.querySelector(t))},t.selectAll=function(t){for(var e=this.node.querySelectorAll(t),i=(n.set||Array)(),r=0;r<e.length;r++)i.push(x(e[r]));return i},t.asPX=function(t,e){return null==e&&(e=this.attr(t)),m(this,t,e)},t.use=function(){var t,e=this.node.id;return e||(e=this.id,r(this.node,{id:e})),r((t="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?b(this.type,this.node.parentNode):b("use",this.node.parentNode)).node,{"xlink:href":"#"+e}),t.original=this,t},t.clone=function(){var t=x(this.node.cloneNode(!0));return r(t.node,"id")&&r(t.node,{id:t.id}),function(t){function e(t,e){var i=r(t.node,e);(i=(i=i&&i.match(o))&&i[2])&&"#"==i.charAt()&&(i=i.substring(1))&&(l[i]=(l[i]||[]).concat(function(i){var n={};n[e]="url(#"+i+")",r(t.node,n)}))}function i(t){var e=r(t.node,"xlink:href");e&&"#"==e.charAt()&&(e=e.substring(1))&&(l[e]=(l[e]||[]).concat(function(e){t.attr("xlink:href","#"+e)}))}for(var n,s=t.selectAll("*"),o=/^\s*url\(("|'|)(.*)\1\)\s*$/,a=[],l={},u=0,c=s.length;c>u;u++){e(n=s[u],"fill"),e(n,"stroke"),e(n,"filter"),e(n,"mask"),e(n,"clip-path"),i(n);var h=r(n.node,"id");h&&(r(n.node,{id:n.id}),a.push({old:h,id:n.id}))}for(u=0,c=a.length;c>u;u++){var d=l[a[u].old];if(d)for(var f=0,p=d.length;p>f;f++)d[f](a[u].id)}}(t),t.insertAfter(this),t},t.toDefs=function(){return p(this).appendChild(this.node),this},t.pattern=function(t,e,i,n){var s=b("pattern",p(this));return null==t&&(t=this.getBBox()),t&&"x"in t&&(e=t.y,i=t.width,n=t.height,t=t.x),r(s.node,{x:t,y:e,width:i,height:n,patternUnits:"userSpaceOnUse",id:s.id,viewBox:[t,e,i,n].join(" ")}),s.node.appendChild(this.node),s}
1,t.marker=function(t,e,i,n,s,o){var a=b("marker",p(this));return null==t&&(t=this.getBBox()),t&&"x"in t&&(e=t.y,i=t.width,n=t.height,s=t.refX||t.cx,o=t.refY||t.cy,t=t.x),r(a.node,{viewBox:[t,e,i,n].join(B),markerWidth:i,markerHeight:n,orient:"auto",refX:s||0,refY:o||0,id:a.id}),a.node.appendChild(this.node),a};var h=function(t,e,n,r){"function"!=typeof n||n.length||(r=n,n=i.linear),this.attr=t,this.dur=e,n&&(this.easing=n),r&&(this.callback=r)};n.animation=function(t,e,i,n){return new h(t,e,i,n)},t.inAnim=function(){var t=this,e=[];for(var i in t.anims)t.anims[A](i)&&function(t){e.push({anim:new h(t._attrs,t.dur,t.easing,t._callback),curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(t.anims[i]);return e},n.animate=function(t,n,r,s,o,a){"function"!=typeof o||o.length||(a=o,o=i.linear);var l=i.time(),u=i(t,n,l,l+s,i.time,r,o);return a&&e.once("mina.finish."+u.id,a),u},t.stop=function(){for(var t=this.inAnim(),e=0,i=t.length;i>e;e++)t[e].stop();return this},t.animate=function(t,n,r,a){"function"!=typeof r||r.length||(a=r,r=i.linear),t instanceof h&&(a=t.callback,n=(r=t.easing).dur,t=t.attr);var l,u,c,d,f=[],p=[],m={},g=this;for(var v in t)if(t[A](v)){g.equal?(l=(d=g.equal(v,R(t[v]))).from,u=d.to,c=d.f):(l=+g.attr(v),u=+t[v]);var _=s(l,"array")?l.length:1;m[v]=o(f.length,f.length+_,c),f=f.concat(l),p=p.concat(u)}var y=i.time(),b=i(f,p,y,y+n,i.time,function(t){var e={};for(var i in m)m[A](i)&&(e[i]=m[i](t));g.attr(e)},r);return g.anims[b.id]=b,b._attrs=t,b._callback=a,e.once("mina.finish."+b.id,function(){delete g.anims[b.id],a&&a.call(g)}),e.once("mina.stop."+b.id,function(){delete g.anims[b.id]}),g};var d={};t.data=function(t,i){var r=d[this.id]=d[this.id]||{};if(1==arguments.length){if(n.is(t,"object")){for(var s in t)t[A](s)&&this.data(s,t[s]);return this}return e("snap.data.get."+this.id,this,r[t],t),r[t]}return r[t]=i,e("snap.data.set."+this.id,this,i,t),this},t.removeData=function(t){return null==t?d[this.id]={}:d[this.id]&&delete d[this.id][t],this},t.toString=a(1),t.innerSVG=a()}(v.prototype),n.parse=function(t){var i=O.doc.createDocumentFragment(),n=i;return e.on("elemental.tag",function(t,e){var i=r(t);e&&r(i,e),n.appendChild(i),n=i}),e.on("elemental.text",function(t){n.appendChild(O.doc.createTextNode(t))}),e.on("elemental./tag",function(){n=n.parentNode}),e.on("elemental.eof",function(){e.off("elemental.*"),e("snap.parsed",i)}),elemental().parse(t).end(),new y(i)},y.prototype.select=v.prototype.select,y.prototype.selectAll=v.prototype.selectAll,n.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=O.doc.createDocumentFragment(),i=0,r=t.length;r>i;i++){var s=t[i];s.node&&s.node.nodeType&&e.appendChild(s.node),s.nodeType&&e.appendChild(s),"string"==typeof s&&e.appendChild(n.parse(s).node)}return new y(e)},function(t){t.el=function(t,e){return b(t,this.node).attr(e)},t.rect=function(t,e,i,n,r,o){var a=b("rect",this.node);return null==o&&(o=r),s(t,"object")&&"x"in t?a.attr(t):null!=t&&(a.attr({x:t,y:e,width:i,height:n}),null!=r&&a.attr({rx:r,ry:o})),a},t.circle=function(t,e,i){var n=b("circle",this.node);return s(t,"object")&&"cx"in t?n.attr(t):null!=t&&n.attr({cx:t,cy:e,r:i}),n},t.image=function(t,e,i,n,o){var a=b("image",this.node);if(s(t,"object")&&"src"in t)a.attr(t);else if(null!=t){var l={"xlink:href":t,preserveAspectRatio:"none"};null!=e&&null!=i&&(l.x=e,l.y=i),null!=n&&null!=o?(l.width=n,l.height=o):rt(t,function(){r(a.node,{width:this.offsetWidth,height:this.offsetHeight})}),r(a.node,l)}return a},t.ellipse=function(t,e,i,n){var r=b("ellipse",this.node);return s(t,"object")&&"cx"in t?r.attr(t):null!=t&&r.attr({cx:t,cy:e,rx:i,ry:n}),r},t.path=function(t){var e=b("path",this.node);return s(t,"object")&&!s(t,"array")?e.attr(t):t&&e.attr({d:t}),e},t.group=t.g=function(e){var i=b("g",this.node);for(var n in i.add=g,t)t[A](n)&&(i[n]=t[n]);return 1==arguments.length&&e&&!e.type?i.attr(e):arguments.length&&i.add(Array.prototype.slice.call(arguments,0)),i},t.text=function(t,e,i){var n=b("text",this.node);return s(t,"object")?n.attr(t):null!=t&&n.attr({x:t,y:e,text:i||""}),n}
1,t.line=function(t,e,i,n){var r=b("line",this.node);return s(t,"object")?r.attr(t):null!=t&&r.attr({x1:t,x2:i,y1:e,y2:n}),r},t.polyline=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e=b("polyline",this.node);return s(t,"object")&&!s(t,"array")?e.attr(t):null!=t&&e.attr({points:t}),e},t.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e=b("polygon",this.node);return s(t,"object")&&!s(t,"array")?e.attr(t):null!=t&&e.attr({points:t}),e},t.gradient=function(t){return S(this.defs,t)},t.gradientLinear=function(t,e,i,n){return k(this.defs,t,e,i,n)},t.gradientRadial=function(t,e,i,n,r){return E(this.defs,t,e,i,n,r)},t.toString=function(){var t,e=O.doc.createDocumentFragment(),i=O.doc.createElement("div"),n=this.node.cloneNode(!0);return e.appendChild(i),i.appendChild(n),r(n,{xmlns:"http://www.w3.org/2000/svg"}),t=i.innerHTML,e.removeChild(e.firstChild),t},t.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName&&e.parentNode.removeChild(e),e=t}}(w.prototype),n.ajax=function(t,i,n,r){var o=new XMLHttpRequest,a=et();if(o){if(s(i,"function"))r=n,n=i,i=null;else if(s(i,"object")){var l=[];for(var u in i)i.hasOwnProperty(u)&&l.push(encodeURIComponent(u)+"="+encodeURIComponent(i[u]));i=l.join("&")}return o.open(i?"POST":"GET",t,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),i&&o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n&&(e.once("snap.ajax."+a+".0",n),e.once("snap.ajax."+a+".200",n),e.once("snap.ajax."+a+".304",n)),o.onreadystatechange=function(){4==o.readyState&&e("snap.ajax."+a+"."+o.status,r,o)},4==o.readyState?o:(o.send(i),o)}},n.load=function(t,e,i){n.ajax(t,function(t){var r=n.parse(t.responseText);i?e.call(i,r):e(r)})},e.on("snap.util.attr.mask",function(t){if(t instanceof v||t instanceof y){if(e.stop(),t instanceof y&&1==t.node.childNodes.length&&(t=t.node.firstChild,p(this).appendChild(t),t=x(t)),"mask"==t.type)var i=t;else(i=b("mask",p(this))).node.appendChild(t.node),!i.node.id&&r(i.node,{id:i.id});r(this.node,{mask:"url(#"+i.id+")"})}}),function(t){e.on("snap.util.attr.clip",t),e.on("snap.util.attr.clip-path",t),e.on("snap.util.attr.clipPath",t)}(function(t){if(t instanceof v||t instanceof y){if(e.stop(),"clipPath"==t.type)var i=t;else(i=b("clipPath",p(this))).node.appendChild(t.node),!i.node.id&&r(i.node,{id:i.id});r(this.node,{"clip-path":"url(#"+i.id+")"})}}),e.on("snap.util.attr.fill",P("fill")),e.on("snap.util.attr.stroke",P("stroke"));var ft=/^([lr])(?:\(([^)]*)\))?(.*)$/i;e.on("snap.util.grad.parse",function(t){var e=(t=R(t)).match(ft);if(!e)return null;var i=e[1],n=e[2],r=e[3];return 1==(n=n.split(/\s*,\s*/).map(function(t){return+t==t?+t:t})).length&&0==n[0]&&(n=[]),{type:i,params:n,stops:r=(r=r.split("-")).map(function(t){var e={color:(t=t.split(":"))[0]};return t[1]&&(e.offset=t[1]),e})}}),e.on("snap.util.attr.d",function(t){e.stop(),s(t,"array")&&s(t[0],"array")&&(t=n.path.toString.call(t)),(t=R(t)).match(/[ruo]/i)&&(t=n.path.toAbsolute(t)),r(this.node,{d:t})})(-1),e.on("snap.util.attr.#text",function(t){e.stop(),t=R(t);for(var i=O.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(i)})(-1),e.on("snap.util.attr.path",function(t){e.stop(),this.attr({d:t})})(-1),e.on("snap.util.attr.viewBox",function(t){var i;i=s(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):s(t,"array")?t.join(" "):t,r(this.node,{viewBox:i}),e.stop()})(-1),e.on("snap.util.attr.transform",function(t){this.transform(t),e.stop()})(-1),e.on("snap.util.attr.r",function(t){"rect"==this.type&&(e.stop(),r(this.node,{rx:t,ry:t}))})(-1),e.on("snap.util.attr.text",function(t){if("text"==this.type){for(var i=this.node;i.firstChild;)i.removeChild(i.firstChild);for(var n=function t(e){var i=r("tspan");if(s(e,"array"))for(var n=0;n<e.length;n++)i.appendChild(t(e[n]));else i.appendChild(O.doc.createTextNode(e));return i.normalize&&i.normalize(),i}(t);n.firstChild;)i.appendChild(n.firstChild)}e.stop()})(-1);var pt={rect:{x:0,y:0,width:0,height:0,rx:0,ry:0,class:0},circle:{cx:0,cy:0,r:0,class:0},ellipse:{cx:0,cy:0,rx:0,ry:0,class:0},line:{x1:0,y1:0,x2:0,y2:0,class:0},polyline:{points:"",class:0},polygon:{points:"",class:0},text:{x:0,y:0,dx:0,dy:0,rotate:0,textLength:0,lengthAdjust:0,class:0},tspan:{x:0,y:0,dx:0,dy:0,rotate:0,textLength:0,lengthAdjust:0,class:0},textPath:{"xlink:href":0,startOffset:0,method:0,spacing:0,class:0},marker:{viewBox:0,preserveAspectRatio:0,refX:0,refY:0,markerUnits:0,markerWidth:0,markerHeight:0,orient:0,class:0},use:{class:0,externalResourcesRequired:0,x:0,y:0,width:0,height:0,"xlink:href":0},linearGradient:{x1:0,y1:0,x2:0,y2:0,gradientUnits:0,gradientTransform:0,spreadMethod:0,"xlink:href":0,class:0},radialGradient:{cx:0,cy:0,r:0,fx:0,fy:0,gradientUnits:0,gradientTransform:0,spreadMethod:0,"xlink:href":0,class:0},stop:{offset:0,class:0},pattern:{viewBox:0,preserveAspectRatio:0,x:0,y:0,width:0,height:0,patternUnits:0,patternContentUnits:0,patternTransform:0,"xlink:href":0,class:0},clipPath:{transform:0,clipPathUnits:0,class:0},mask:{x:0,y:0,width:0,height:0,maskUnits:0,maskContentUnits:0,class:0},image:{preserveAspectRatio:0,transform:0,x:0,y:0,width:0,height:0,"xlink:href":0,class:0},path:{d:"",class:0},g:{class:0},feDistantLight:{azimuth:0,elevation:0},fePointLight:{x:0,y:0,z:0},feSpotLight:{x:0,y:0,z:0,pointsAtX:0,pointsAtY:0,pointsAtZ:0,specularExponent:0,limitingConeAngle:0},feBlend:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0,in2:0,mode:0},feColorMatrix:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0,type:0,values:0},feComponentTransfer:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0},feComposite:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0,in2:0,operator:0,k1:0,k2:0,k3:0,k4:0},feConvolveMatrix:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0,order:0,kernelMatrix:0,divisor:0,bias:0,targetX:0,targetY:0,edgeMode:0,kernelUnitLength:0,preserveAlpha:0},feDiffuseLighting:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0,surfaceScale:0,diffuseConstant:0,kernelUnitLength:0},feDisplacementMap:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0,in2:0,scale:0,xChannelSelector:0,yChannelSelector:0},feFlood:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,"flood-color":0,"flood-opacity":0},feGaussianBlur:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0,stdDeviation:0},feImage:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,externalResourcesRequired:0,preserveAspectRatio:0,"xlink:href":0},feMerge:{height:0,result:0,width:0,x:0,y:0,class:0,style:0},feMergeNode:{in:0},feMorphology:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0,operator:0,radius:0},feOffset:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0,dx:0,dy:0},feSpecularLighting:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0,surfaceScale:0,specularConstant:0,specularExponent:0,kernelUnitLength:0},feTile:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,in:0},feTurbulence:{height:0,result:0,width:0,x:0,y:0,class:0,style:0,baseFrequency:0,numOctaves:0,seed:0,stitchTiles:0,type:0}};return pt.feFuncR=pt.feFuncG=pt.feFuncB=pt.feFuncA={type:0,tableValues:0,slope:0,intercept:0,amplitude:0,exponent:0,offset:0},e.on("snap.util.attr",function(t){var i=e.nt(),n=(i=i.substring(i.lastIndexOf(".")+1)).replace(/-(\w)/gi,function(t,e){return e.toUpperCase()});pt[A](this.type)&&pt[this.type][A](i)?null==t?this.node.removeAttribute(i):this.node.setAttribute(i,t):this.node.style[n]=null==t?j:t}),e.on("snap.util.getattr.transform",function(){return e.stop(),this.transform()})(-1),function(){function t(t){return function(){e.stop();var i=O.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+t);return"none"==i?i:n(O.doc.getElementById(i.match(U)[1]))}}function i(t){return function(i){e.stop();var n="marker"+t.charAt(0).toUpperCase()+t.substring(1);if(""!=i&&i){if("marker"==i.type){var s=i.node.id;return s||r(i.node,{id:i.id}),void(this.node.style[n]="url(#"+s+")")}}else this.node.style[n]="none"}}e.on("snap.util.getattr.marker-end",t("end"))(-1),e.on("snap.util.getattr.markerEnd",t("end"))(-1),e.on("snap.util.getattr.marker-start",t("start"))(-1),e.on("snap.util.getattr.markerStart",t("start"))(-1),e.on("snap.util.getattr.marker-mid",t("mid"))(-1),e.on("snap.util.getattr.markerMid",t("mid"))(-1),e.on("snap.util.attr.marker-end",i("end"))(-1),e.on("snap.util.attr.markerEnd",i("end"))(-1),e.on("snap.util.attr.marker-start",i("start"))(-1),e.on("snap.util.attr.markerStart",i("start"))(-1),e.on("snap.util.attr.marker-mid",i("mid"))(-1),e.on("snap.util.attr.markerMid",i("mid"))(-1)}(),e.on("snap.util.getattr.r",function(){return"rect"==this.type&&r(this.node,"rx")==r(this.node,"ry")?(e.stop(),r(this.node,"rx")):void 0})(-1),e.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){e.stop();var t=function t(e){for(var i=[],n=e.childNodes,r=0,s=n.length;s>r;r++){var o=n[r];3==o.nodeType&&i.push(o.nodeValue),"tspan"==o.tagName&&(1==o.childNodes.length&&3==o.firstChild.nodeType?i.push(o.firstChild.nodeValue):i.push(t(o)))}return i}(this.node);return 1==t.length?t[0]:t}})(-1),e.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),e.on("snap.util.getattr.viewBox",function(){e.stop();var t=r(this.node,"viewBox").split(X);return n._.box(+t[0],+t[1],+t[2],+t[3])})(-1),e.on("snap.util.getattr.points",function(){var t=r(this.node,"points");return e.stop(),t.split(X)}),e.on("snap.util.getattr.path",function(){var t=r(this.node,"d");return e.stop(),t}),e.on("snap.util.getattr",function(){var t=e.nt();return t=t.substring(t.lastIndexOf(".")+1),pt[A](this.type)&&pt[this.type][A](t)?this.node.getAttribute(t):O.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue(t)}),n.plugin=function(t){t(n,v,w,O)},O.win.Snap=n,n}();return n.plugin(function(t,e){function i(t){var e=i.ps=i.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var i in e)e[A](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])}),e[t]}function n(t,e,i,n){return null==t&&(t=e=i=n=0),null==e&&(e=t.y,i=t.width,n=t.height,t=t.x),{x:t,y:e,width:i,w:i,height:n,h:n,x2:t+i,y2:e+n,cx:t+i/2,cy:e+n/2,r1:L.min(i,n)/2,r2:L.max(i,n)/2,r0:L.sqrt(i*i+n*n)/2,path:_(t,e,i,n),vb:[t,e,i,n].join(" ")}}function r(){return this.join(",").replace(R,"$1")}function s(t){var e=O(t);return e.toString=r,e}function o(t,e,i,n,r,s,o,a,u){return null==u?f(t,e,i,n,r,s,o,a):l(t,e,i,n,r,s,o,a,function(t,e,
1i,n,r,s,o,a,l){if(!(0>l||f(t,e,i,n,r,s,o,a)<l)){var u,c=.5,h=1-c;for(u=f(t,e,i,n,r,s,o,a,h);z(u-l)>.01;)c/=2,u=f(t,e,i,n,r,s,o,a,h+=(l>u?1:-1)*c);return h}}(t,e,i,n,r,s,o,a,u))}function a(i,n){function r(t){return+(+t).toFixed(3)}return t._.cacher(function(t,s,a){t instanceof e&&(t=t.attr("d"));for(var u,c,h,d,f,p="",m={},g=0,v=0,_=(t=S(t)).length;_>v;v++){if("M"==(h=t[v])[0])u=+h[1],c=+h[2];else{if(g+(d=o(u,c,h[1],h[2],h[3],h[4],h[5],h[6]))>s){if(n&&!m.start){if(p+=["C"+r((f=o(u,c,h[1],h[2],h[3],h[4],h[5],h[6],s-g)).start.x),r(f.start.y),r(f.m.x),r(f.m.y),r(f.x),r(f.y)],a)return p;m.start=p,p=["M"+r(f.x),r(f.y)+"C"+r(f.n.x),r(f.n.y),r(f.end.x),r(f.end.y),r(h[5]),r(h[6])].join(),g+=d,u=+h[5],c=+h[6];continue}if(!i&&!n)return o(u,c,h[1],h[2],h[3],h[4],h[5],h[6],s-g)}g+=d,u=+h[5],c=+h[6]}p+=h.shift()+h}return m.end=p,i?g:n?m:l(u,c,h[0],h[1],h[2],h[3],h[4],h[5],1)},null,t._.clone)}function l(t,e,i,n,r,s,o,a,l){var u=1-l,c=N(u,3),h=N(u,2),d=l*l,f=d*l,p=t+2*l*(i-t)+d*(r-2*i+t),m=e+2*l*(n-e)+d*(s-2*n+e),g=i+2*l*(r-i)+d*(o-2*r+i),v=n+2*l*(s-n)+d*(a-2*s+n);return{x:c*t+3*h*l*i+3*u*l*l*r+f*o,y:c*e+3*h*l*n+3*u*l*l*s+f*a,m:{x:p,y:m},n:{x:g,y:v},start:{x:u*t+l*i,y:u*e+l*n},end:{x:u*r+l*o,y:u*s+l*a},alpha:90-180*L.atan2(p-g,m-v)/D}}function u(e,i,r,s,o,a,l,u){t.is(e,"array")||(e=[e,i,r,s,o,a,l,u]);var c=$.apply(null,e);return n(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)}function c(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height}function h(t,e){return t=n(t),c(e=n(e),t.x,t.y)||c(e,t.x2,t.y)||c(e,t.x,t.y2)||c(e,t.x2,t.y2)||c(t,e.x,e.y)||c(t,e.x2,e.y)||c(t,e.x,e.y2)||c(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function d(t,e,i,n,r){return t*(t*(-3*e+9*i-9*n+3*r)+6*e-12*i+6*n)-3*e+3*i}function f(t,e,i,n,r,s,o,a,l){null==l&&(l=1);for(var u=(l=l>1?1:0>l?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;12>p;p++){var m=u*c[p]+u,g=d(m,t,i,r,o),v=d(m,e,n,s,a),_=g*g+v*v;f+=h[p]*L.sqrt(_)}return u*f}function p(t,e,i,n,r,s,o,a){if(!(F(t,i)<M(r,o)||M(t,i)>F(r,o)||F(e,n)<M(s,a)||M(e,n)>F(s,a))){var l=(t-i)*(s-a)-(e-n)*(r-o);if(l){var u=((t*n-e*i)*(r-o)-(t-i)*(r*a-s*o))/l,c=((t*n-e*i)*(s-a)-(e-n)*(r*a-s*o))/l,h=+u.toFixed(2),d=+c.toFixed(2);if(!(h<+M(t,i).toFixed(2)||h>+F(t,i).toFixed(2)||h<+M(r,o).toFixed(2)||h>+F(r,o).toFixed(2)||d<+M(e,n).toFixed(2)||d>+F(e,n).toFixed(2)||d<+M(s,a).toFixed(2)||d>+F(s,a).toFixed(2)))return{x:u,y:c}}}}function m(t,e,i){if(!h(u(t),u(e)))return i?0:[];for(var n=~~(f.apply(0,t)/5),r=~~(f.apply(0,e)/5),s=[],o=[],a={},c=i?0:[],d=0;n+1>d;d++){var m=l.apply(0,t.concat(d/n));s.push({x:m.x,y:m.y,t:d/n})}for(d=0;r+1>d;d++)m=l.apply(0,e.concat(d/r)),o.push({x:m.x,y:m.y,t:d/r});for(d=0;n>d;d++)for(var g=0;r>g;g++){var v=s[d],_=s[d+1],y=o[g],b=o[g+1],w=z(_.x-v.x)<.001?"y":"x",x=z(b.x-y.x)<.001?"y":"x",C=p(v.x,v.y,_.x,_.y,y.x,y.y,b.x,b.y);if(C){if(a[C.x.toFixed(4)]==C.y.toFixed(4))continue;a[C.x.toFixed(4)]=C.y.toFixed(4);var T=v.t+z((C[w]-v[w])/(_[w]-v[w]))*(_.t-v.t),$=y.t+z((C[x]-y[x])/(b[x]-y[x]))*(b.t-y.t);T>=0&&1>=T&&$>=0&&1>=$&&(i?c++:c.push({x:C.x,y:C.y,t1:T,t2:$}))}}return c}function g(t,e,i){t=S(t),e=S(e);for(var n,r,s,o,a,l,u,c,h,d,f=i?0:[],p=0,g=t.length;g>p;p++){var v=t[p];if("M"==v[0])n=a=v[1],r=l=v[2];else{"C"==v[0]?(n=(h=[n,r].concat(v.slice(1)))[6],r=h[7]):(h=[n,r,n,r,a,l,a,l],n=a,r=l);for(var _=0,y=e.length;y>_;_++){var b=e[_];if("M"==b[0])s=u=b[1],o=c=b[2];else{"C"==b[0]?(s=(d=[s,o].concat(b.slice(1)))[6],o=d[7]):(d=[s,o,s,o,u,c,u,c],s=u,o=c);var w=m(h,d,i);if(i)f+=w;else{for(var x=0,C=w.length;C>x;x++)w[x].segment1=p,w[x].segment2=_,w[x].bez1=h,w[x].bez2=d;f=f.concat(w)}}}}}return f}function v(t){var e=i(t);if(e.bbox)return O(e.bbox);if(!t)return n();for(var r,s=0,o=0,a=[],l=[],u=0,c=(t=S(t)).length;c>u;u++)if("M"==(r=t[u])[0])s=r[1],o=r[2],a.push(s),l.push(o);else{var h=$(s,o,r[1],r[2],r[3],r[4],r[5],r[6]);a=a.concat(h.min.x,h.max.x),l=l.concat(h.min.y,h.max.y),s=r[5],o=r[6]}var d=M.apply(0,a),f=M.apply(0,l),p=n(d,f,F.apply(0,a)-d,F.apply(0,l)-f);return e.bbox=O(p),p}function _(t,e,i,n,s){if(s)return[["M",t+s,e],["l",i-2*s,0],["a",s,s,0,0,1,s,s],["l",0,n-2*s],["a",s,s,0,0,1,-s,s],["l",2*s-i,0],["a",s,s,0,0,1,-s,-s],["l",0,2*s-n],["a",s,s,0,0,1,s,-s],["z"]];var o=[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]];return o.toString=r,o}function y(t,e,i,n,s){if(null==s&&null==n&&(n=i),null!=s)var o=Math.PI/180,a=t+i*Math.cos(-n*o),l=t+i*Math.cos(-s*o),u=[["M",a,e+i*Math.sin(-n*o)],["A",i,i,0,+(s-n>180),0,l,e+i*Math.sin(-s*o)]];else u=[["M",t,e],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]];return u.toString=r,u}function b(e){var n=i(e);if(n.abs)return s(n.abs);if(P(e,"array")&&P(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var o,a=[],l=0,u=0,c=0,h=0,d=0;"M"==e[0][0]&&(c=l=+e[0][1],h=u=+e[0][2],d++,a[0]=["M",l,u]);for(var f,p,m=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),g=d,v=e.length;v>g;g++){if(a.push(f=[]),(o=(p=e[g])[0])!=o.toUpperCase())switch(f[0]=o.toUpperCase(),f[0]){case"A":f[1]=p[1],f[2]=p[2],f[3]=p[3],f[4]=p[4],f[5]=p[5],f[6]=+(p[6]+l),f[7]=+(p[7]+u);break;case"V":f[1]=+p[1]+u;break;case"H":f[1]=+p[1]+l;break;case"R":for(var _=[l,u].concat(p.slice(1)),b=2,w=_.length;w>b;b++)_[b]=+_[b]+l,_[++b]=+_[b]+u;a.pop(),a=a.concat(k(_,m));break;case"O":a.pop(),(_=y(l,u,p[1],p[2])).push(_[0]),a=a.concat(_);break;case"U":a.pop(),a=a.concat(y(l,u,p[1],p[2],p[3])),f=["U"].concat(a[a.length-1].slice(-2));break;case"M":c=+p[1]+l,h=+p[2]+u;default:for(b=1,w=p.length;w>b;b++)f[b]=+p[b]+(b%2?l:u)}else if("R"==o)_=[l,u].concat(p.slice(1)),a.pop(),a=a.concat(k(_,m)),f=["R"].concat(p.slice(-2));else if("O"==o)a.pop(),(_=y(l,u,p[1],p[2])).push(_[0]),a=a.concat(_);else if("U"==o)a.pop(),a=a.concat(y(l,u,p[1],p[2],p[3])),f=["U"].concat(a[a.length-1].slice(-2));else for(var x=0,C=p.length;C>x;x++)f[x]=p[x];if("O"!=(o=o.toUpperCase()))switch(f[0]){case"Z":l=c,u=h;break;case"H":l=f[1];break;case"V":u=f[1];break;case"M":c=f[f.length-2],h=f[f.length-1];default:l=f[f.length-2],u=f[f.length-1]}}return a.toString=r,n.abs=s(a),a}function w(t,e,i,n){return[t,e,i,n,i,n]}function x(t,e,i,n,r,s){var o=1/3,a=2/3;return[o*t+a*i,o*e+a*n,o*r+a*i,o*s+a*n,r,s]}function C(e,i,n,r,s,o,a,l,u,c){var h,d=120*D/180,f=D/180*(+s||0),p=[],m=t._.cacher(function(t,e,
1i){return{x:t*L.cos(i)-e*L.sin(i),y:t*L.sin(i)+e*L.cos(i)}});if(c)$=c[0],S=c[1],x=c[2],T=c[3];else{e=(h=m(e,i,-f)).x,i=h.y,l=(h=m(l,u,-f)).x,u=h.y;var g=(L.cos(D/180*s),L.sin(D/180*s),(e-l)/2),v=(i-u)/2,_=g*g/(n*n)+v*v/(r*r);_>1&&(n*=_=L.sqrt(_),r*=_);var y=n*n,b=r*r,w=(o==a?-1:1)*L.sqrt(z((y*b-y*v*v-b*g*g)/(y*v*v+b*g*g))),x=w*n*v/r+(e+l)/2,T=w*-r*g/n+(i+u)/2,$=L.asin(((i-T)/r).toFixed(9)),S=L.asin(((u-T)/r).toFixed(9));$=x>e?D-$:$,S=x>l?D-S:S,0>$&&($=2*D+$),0>S&&(S=2*D+S),a&&$>S&&($-=2*D),!a&&S>$&&(S-=2*D)}var k=S-$;if(z(k)>d){var E=S,P=l,O=u;S=$+d*(a&&S>$?1:-1),p=C(l=x+n*L.cos(S),u=T+r*L.sin(S),n,r,s,0,a,P,O,[S,E,x,T])}k=S-$;var A=L.cos($),R=L.sin($),I=L.cos(S),M=L.sin(S),F=L.tan(k/4),N=4/3*n*F,j=4/3*r*F,B=[e,i],H=[e+N*R,i-j*A],q=[l+N*M,u-j*I],V=[l,u];if(H[0]=2*B[0]-H[0],H[1]=2*B[1]-H[1],c)return[H,q,V].concat(p);for(var U=[],Y=0,X=(p=[H,q,V].concat(p).join().split(",")).length;X>Y;Y++)U[Y]=Y%2?m(p[Y-1],p[Y],f).y:m(p[Y],p[Y+1],f).x;return U}function T(t,e,i,n,r,s,o,a,l){var u=1-l;return{x:N(u,3)*t+3*N(u,2)*l*i+3*u*l*l*r+N(l,3)*o,y:N(u,3)*e+3*N(u,2)*l*n+3*u*l*l*s+N(l,3)*a}}function $(t,e,i,n,r,s,o,a){var l,u=r-2*i+t-(o-2*r+i),c=2*(i-t)-2*(r-i),h=t-i,d=(-c+L.sqrt(c*c-4*u*h))/2/u,f=(-c-L.sqrt(c*c-4*u*h))/2/u,p=[e,a],m=[t,o];return z(d)>"1e12"&&(d=.5),z(f)>"1e12"&&(f=.5),d>0&&1>d&&(l=T(t,e,i,n,r,s,o,a,d),m.push(l.x),p.push(l.y)),f>0&&1>f&&(l=T(t,e,i,n,r,s,o,a,f),m.push(l.x),p.push(l.y)),u=s-2*n+e-(a-2*s+n),h=e-n,d=(-(c=2*(n-e)-2*(s-n))+L.sqrt(c*c-4*u*h))/2/u,f=(-c-L.sqrt(c*c-4*u*h))/2/u,z(d)>"1e12"&&(d=.5),z(f)>"1e12"&&(f=.5),d>0&&1>d&&(l=T(t,e,i,n,r,s,o,a,d),m.push(l.x),p.push(l.y)),f>0&&1>f&&(l=T(t,e,i,n,r,s,o,a,f),m.push(l.x),p.push(l.y)),{min:{x:M.apply(0,m),y:M.apply(0,p)},max:{x:F.apply(0,m),y:F.apply(0,p)}}}function S(t,e){var n=!e&&i(t);if(!e&&n.curve)return s(n.curve);for(var r=b(t),o=e&&b(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u=function(t,e){if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(C.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":t=["C",e.x+(e.x-(e.bx||e.x)),e.y+(e.y-(e.by||e.y))].concat(t.slice(1));break;case"T":e.qx=e.x+(e.x-(e.qx||e.x)),e.qy=e.y+(e.y-(e.qy||e.y)),t=["C"].concat(x(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(x(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(w(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(w(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(w(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(w(e.x,e.y,e.X,e.Y))}return t},c=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),f=F(r.length,o&&o.length||0)}},h=function(t,e,i,n,s){t&&e&&"M"==t[s][0]&&"M"!=e[s][0]&&(e.splice(s,0,["M",n.x,n.y]),i.bx=0,i.by=0,i.x=t[s][1],i.y=t[s][2],f=F(r.length,o&&o.length||0))},d=0,f=F(r.length,o&&o.length||0);f>d;d++){r[d]=u(r[d],a),c(r,d),o&&(o[d]=u(o[d],l)),o&&c(o,d),h(r,o,a,l,d),h(o,r,l,a,d);var p=r[d],m=o&&o[d],g=p.length,v=o&&m.length;a.x=p[g-2],a.y=p[g-1],a.bx=I(p[g-4])||a.x,a.by=I(p[g-3])||a.y,l.bx=o&&(I(m[v-4])||l.x),l.by=o&&(I(m[v-3])||l.y),l.x=o&&m[v-2],l.y=o&&m[v-1]}return o||(n.curve=s(r)),o?[r,o]:r}function k(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var s=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4==n?s[3]={x:+t[0],y:+t[1]}:r-2==n&&(s[2]={x:+t[0],y:+t[1]},s[3]={x:+t[2],y:+t[3]}):s[0]={x:+t[r-2],y:+t[r-1]}:r-4==n?s[3]=s[2]:n||(s[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-s[0].x+6*s[1].x+s[2].x)/6,(-s[0].y+6*s[1].y+s[2].y)/6,(s[1].x+6*s[2].x-s[3].x)/6,(s[1].y+6*s[2].y-s[3].y)/6,s[2].x,s[2].y])}return i}var E=e.prototype,P=t.is,O=t._.clone,A="hasOwnProperty",R=/,?([a-z]),?/gi,I=parseFloat,L=Math,D=L.PI,M=L.min,F=L.max,N=L.pow,z=L.abs,j=a(1),B=a(),H=a(0,1),q=t._unit2px,V={path:function(t){return t.attr("path")},circle:function(t){var e=q(t);return y(e.cx,e.cy,e.r)},ellipse:function(t){var e=q(t);return y(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=q(t);return _(e.x,e.y,e.width,e.height,e.rx,e.ry)},image:function(t){var e=q(t);return _(e.x,e.y,e.width,e.height)},text:function(t){var e=t.node.getBBox();return _(e.x,e.y,e.width,e.height)},g:function(t){var e=t.node.getBBox();return _(e.x,e.y,e.width,e.height)},symbol:function(t){var e=t.getBBox();return _(e.x,e.y,e.width,e.height)},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"}};t.path=i,t.path.getTotalLength=j,t.path.getPointAtLength=B,t.path.getSubpath=function(t,e,
1i){if(this.getTotalLength(t)-i<1e-6)return H(t,e).end;var n=H(t,i,1);return e?H(n,e).end:n},E.getTotalLength=function(){return this.node.getTotalLength?this.node.getTotalLength():void 0},E.getPointAtLength=function(t){return B(this.attr("d"),t)},E.getSubpath=function(e,i){return t.path.getSubpath(this.attr("d"),e,i)},t._.box=n,t.path.findDotsAtSegment=l,t.path.bezierBBox=u,t.path.isPointInsideBBox=c,t.path.isBBoxIntersect=h,t.path.intersection=function(t,e){return g(t,e)},t.path.intersectionNumber=function(t,e){return g(t,e,1)},t.path.isPointInside=function(t,e,i){var n=v(t);return c(n,e,i)&&1==g(t,[["M",e,i],["H",n.x2+10]],1)%2},t.path.getBBox=v,t.path.get=V,t.path.toRelative=function(e){var n=i(e),o=String.prototype.toLowerCase;if(n.rel)return s(n.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var a=[],l=0,u=0,c=0,h=0,d=0;"M"==e[0][0]&&(c=l=e[0][1],h=u=e[0][2],d++,a.push(["M",l,u]));for(var f=d,p=e.length;p>f;f++){var m=a[f]=[],g=e[f];if(g[0]!=o.call(g[0]))switch(m[0]=o.call(g[0]),m[0]){case"a":m[1]=g[1],m[2]=g[2],m[3]=g[3],m[4]=g[4],m[5]=g[5],m[6]=+(g[6]-l).toFixed(3),m[7]=+(g[7]-u).toFixed(3);break;case"v":m[1]=+(g[1]-u).toFixed(3);break;case"m":c=g[1],h=g[2];default:for(var v=1,_=g.length;_>v;v++)m[v]=+(g[v]-(v%2?l:u)).toFixed(3)}else{m=a[f]=[],"m"==g[0]&&(c=g[1]+l,h=g[2]+u);for(var y=0,b=g.length;b>y;y++)a[f][y]=g[y]}var w=a[f].length;switch(a[f][0]){case"z":l=c,u=h;break;case"h":l+=+a[f][w-1];break;case"v":u+=+a[f][w-1];break;default:l+=+a[f][w-2],u+=+a[f][w-1]}}return a.toString=r,n.rel=s(a),a},t.path.toAbsolute=b,t.path.toCubic=S,t.path.map=function(t,e){if(!e)return t;var i,n,r,s,o,a,l;for(r=0,o=(t=S(t)).length;o>r;r++)for(s=1,a=(l=t[r]).length;a>s;s+=2)i=e.x(l[s],l[s+1]),n=e.y(l[s],l[s+1]),l[s]=i,l[s+1]=n;return t},t.path.toString=r,t.path.clone=s}),n.plugin(function(t){var e=Math.max,i=Math.min,n=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,i=t.length;i>e;e++)t[e]&&(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},r=n.prototype;r.push=function(){for(var t,e,i=0,n=arguments.length;n>i;i++)(t=arguments[i])&&(this[e=this.items.length]=this.items[e]=t,this.length++);return this},r.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},r.forEach=function(t,e){for(var i=0,n=this.items.length;n>i;i++)if(!1===t.call(e,this.items[i],i))return this;return this},r.attr=function(t){for(var e=0,i=this.items.length;i>e;e++)this.items[e].attr(t);return this},r.clear=function(){for(;this.length;)this.pop()},r.splice=function(t,r){t=0>t?e(this.length+t,0):t,r=e(0,i(this.length-t,r));var s,o=[],a=[],l=[];for(s=2;s<arguments.length;s++)l.push(arguments[s]);for(s=0;r>s;s++)a.push(this[t+s]);for(;s<this.length-t;s++)o.push(this[t+s]);var u=l.length;for(s=0;s<u+o.length;s++)this.items[t+s]=this[t+s]=u>s?l[s]:o[s-u];for(s=this.items.length=this.length-=r-u;this[s];)delete this[s++];return new n(a)},r.exclude=function(t){for(var e=0,i=this.length;i>e;e++)if(this[e]==t)return this.splice(e,1),!0;return!1},r.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},r.getBBox=function(){for(var t=[],n=[],r=[],s=[],o=this.items.length;o--;)if(!this.items[o].removed){var a=this.items[o].getBBox();t.push(a.x),n.push(a.y),r.push(a.x+a.width),s.push(a.y+a.height)}return{x:t=i.apply(0,t),y:n=i.apply(0,n),x2:r=e.apply(0,r),y2:s=e.apply(0,s),width:r-t,height:s-n,cx:t+(r-t)/2,cy:n+(s-n)/2}},r.clone=function(t){t=new n;for(var e=0,i=this.items.length;i>e;e++)t.push(this.items[e].clone());return t},r.toString=function(){return"Snapâs set"},r.type="set",t.set=function(){var t=new n;return arguments.length&&t.push.apply(t,Array.prototype.slice.call(arguments,0)),t}}),n.plugin(function(t,e){function i(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}}function n(e,n,r){n=c(n).replace(/\.{3}|\u2026/g,e),e=t.parseTransformString(e)||[],n=t.parseTransformString(n)||[];for(var s,l,u,h,d=Math.max(e.length,n.length),f=[],p=[],m=0;d>m;m++){if(u=e[m]||i(n[m]),h=n[m]||i(u),u[0]!=h[0]||"r"==u[0].toLowerCase()&&(u[2]!=h[2]||u[3]!=h[3])||"s"==u[0].toLowerCase()&&(u[3]!=h[3]||u[4]!=h[4])){e=t._.transform2matrix(e,r()),n=t._.transform2matrix(n,r()),f=[["m",e.a,e.b,e.c,e.d,e.e,e.f]],p=[["m",n.a,n.b,n.c,n.d,n.e,n.f]];break}for(f[m]=[],p[m]=[],s=0,l=Math.max(u.length,h.length);l>s;s++)s in u&&(f[m][s]=u[s]),s in h&&(p[m][s]=h[s])}return{from:a(f),to:a(p),f:o(f)}}function r(t){return t}function s(e){return t.rgb(e[0],e[1],e[2])}function o(t){var e,i,n,r,s,o,a=0,l=[];for(e=0,i=t.length;i>e;e++){for(s="[",o=['"'+t[e][0]+'"'],n=1,r=t[e].length;r>n;n++)o[n]="val["+a+++"]";s+=o+"]",l[e]=s}return Function("val","return Snap.path.toString.call(["+l+"])")}function a(t){for(var e=[],i=0,n=t.length;n>i;i++)for(var r=1,s=t[i].length;s>r;r++)e.push(t[i][r]);return e}var l={},u=/[a-z]+$/i,c=String;l.stroke=l.fill="colour",e.prototype.equal=function(e,i){var h,d,f=c(this.attr(e)||""),p=this;if(f==+f&&i==+i)return{from:+f,to:+i,f:r};if("colour"==l[e])return h=t.color(f),d=t.color(i),{from:[h.r,h.g,h.b,h.opacity],to:[d.r,d.g,d.b,d.opacity],f:s};if("transform"==e||"gradientTransform"==e||"patternTransform"==e)return n(f,i,function(){return p.getBBox(1)});if("d"==e||"path"==e)return{from:a((h=t.path.toCubic(f,i))[0]),to:a(h[1]),f:o(h[0])};var m=f.match(u),g=i.match(u);return m&&m==g?{from:parseFloat(f),to:parseFloat(i),f:function(t){return function(e){return+e.toFixed(3)+t}}(m)}:{from:this.asPX(e),to:this.asPX(e,i),f:r}}}),n.plugin(function(t,i,n,r){for(var s=i.prototype,o=("createTouch"in r.doc),a=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],l={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},u=function(t){var e="y"==t?"scrollTop":"scrollLeft";return r.doc.documentElement[e]||r.doc.body[e]},c=function(){this.returnValue=!1},h=function(){return this.originalEvent.preventDefault()},d=function(){this.cancelBubble=!0},f=function(){return this.originalEvent.stopPropagation()}
1,p=r.doc.addEventListener?function(t,e,i,n){var r=o&&l[e]?l[e]:e,s=function(r){var s=u("y"),a=u("x"),c=r.clientX+a,d=r.clientY+s;if(o&&l.hasOwnProperty(e))for(var p=0,m=r.targetTouches&&r.targetTouches.length;m>p;p++)if(r.targetTouches[p].target==t){var g=r;(r=r.targetTouches[p]).originalEvent=g,r.preventDefault=h,r.stopPropagation=f;break}return i.call(n,r,c,d)};return t.addEventListener(r,s,!1),function(){return t.removeEventListener(r,s,!1),!0}}:r.doc.attachEvent?function(t,e,i,n){var s=function(t){t=t||r.win.event;var e=u("y"),s=u("x"),o=t.clientX+s,a=t.clientY+e;return t.preventDefault=t.preventDefault||c,t.stopPropagation=t.stopPropagation||d,i.call(n,t,o,a)};return t.attachEvent("on"+e,s),function(){return t.detachEvent("on"+e,s),!0}}:void 0,m=[],g=function(i){for(var n,r=i.clientX,s=i.clientY,a=u("y"),l=u("x"),c=m.length;c--;){if(n=m[c],o){for(var h,d=i.touches.length;d--;)if((h=i.touches[d]).identifier==n.el._drag.id){r=h.clientX,s=h.clientY,(i.originalEvent?i.originalEvent:i).preventDefault();break}}else i.preventDefault();var f=n.el.node;t._.glob,f.nextSibling,f.parentNode,f.style.display,r+=l,s+=a,e("snap.drag.move."+n.el.id,n.move_scope||n.el,r-n.el._drag.x,s-n.el._drag.y,r,s,i)}},v=function i(n){t.unmousemove(g).unmouseup(i);for(var r,s=m.length;s--;)(r=m[s]).el._drag={},e("snap.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,n);m=[]},_=a.length;_--;)!function(e){t[e]=s[e]=function(i,n){return t.is(i,"function")&&(this.events=this.events||[],this.events.push({name:e,f:i,unbind:p(this.shape||this.node||r.doc,e,i,n||this)})),this},t["un"+e]=s["un"+e]=function(t){for(var i=this.events||[],n=i.length;n--;)if(i[n].name==e&&(i[n].f==t||!t))return i[n].unbind(),i.splice(n,1),!i.length&&delete this.events,this;return this}}(a[_]);s.hover=function(t,e,i,n){return this.mouseover(t,i).mouseout(e,n||i)},s.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var y=[];s.drag=function(i,n,r,s,o,a){function l(l){(l.originalEvent||l).preventDefault();var c=u("y"),h=u("x");this._drag.x=l.clientX+h,this._drag.y=l.clientY+c,this._drag.id=l.identifier,!m.length&&t.mousemove(g).mouseup(v),m.push({el:this,move_scope:s,start_scope:o,end_scope:a}),n&&e.on("snap.drag.start."+this.id,n),i&&e.on("snap.drag.move."+this.id,i),r&&e.on("snap.drag.end."+this.id,r),e("snap.drag.start."+this.id,o||s||this,l.clientX+h,l.clientY+c,l)}var c;return arguments.length?(this._drag={},y.push({el:this,start:l}),this.mousedown(l),this):this.drag(function(t,e){this.attr({transform:c+(c?"T":"t")+[t,e]})},function(){c=this.transform().local})},s.undrag=function(){for(var i=y.length;i--;)y[i].el==this&&(this.unmousedown(y[i].start),y.splice(i,1),e.unbind("snap.drag.*."+this.id));return!y.length&&t.unmousemove(g).unmouseup(v),this}}),n.plugin(function(t,i,n){var r=(i.prototype,n.prototype),s=/^\s*url\((.+)\)/,o=String,a=t._.$;t.filter={},r.filter=function(e){var n=this;"svg"!=n.type&&(n=n.paper);var r=t.parse(o(e)),s=t._.id(),l=n.node.offsetWidth,u=n.node.offsetHeight,c=a("filter");return a(c,{id:s,filterUnits:"userSpaceOnUse",x:0,y:0,width:l,height:u}),c.appendChild(r.node),n.defs.appendChild(c),new i(c)},e.on("snap.util.getattr.filter",function(){e.stop();var i=a(this.node,"filter");if(i){var n=o(i).match(s);return n&&t.select(n[1])}}),e.on("snap.util.attr.filter",function(t){if(t instanceof i&&"filter"==t.type){e.stop();var n=t.node.id;n||(a(t.node,{id:t.id}),n=t.id),a(this.node,{filter:"url(#"+n+")"})}t&&"none"!=t||(e.stop(),this.node.removeAttribute("filter"))}),t.filter.blur=function(e,i){null==e&&(e=2);var n=null==i?e:[e,i];return t.format('<feGaussianBlur stdDeviation="{def}"/>',{def:n})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,i,n,r){return r=r||"#000",null==n&&(n=4),"string"==typeof n&&(r=n,n=4),null==e&&(e=0,i=2),null==i&&(i=e),r=t.color(r),t.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:r,dx:e,dy:i,blur:n})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}}),n});_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"object"===("undefined"==typeof module?"undefined":_typeof(module))?module.exports=e():"function"==typeof define&&define.amd?define("angular-ui-router",[],e):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?exports["angular-ui-router"]=e():t["angular-ui-router"]=e()}(this,function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={exports:{},id:n,loaded:!1};
1return t[n].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}return i.m=t,i.c=e,i.p="",i(0)}([function(t,e,i){"use strict";function n(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}n(i(1)),n(i(53)),n(i(55)),i(58),i(59),i(60),i(61),Object.defineProperty(e,"__esModule",{value:!0}),e.default="ui.router"},function(t,e,i){"use strict";function n(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}n(i(2)),n(i(46)),n(i(47)),n(i(48)),n(i(49)),n(i(50)),n(i(51)),n(i(52)),n(i(44));var r=i(26);e.UIRouter=r.UIRouter},function(t,e,i){"use strict";function n(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}n(i(3)),n(i(6)),n(i(7)),n(i(5)),n(i(4)),n(i(8)),n(i(9)),n(i(12))},function(t,e,i){"use strict";var n=i(4),r=i(5),s=i(6),o=("undefined"==typeof window?{}:window).angular||{};e.fromJson=o.fromJson||JSON.parse.bind(JSON),e.toJson=o.toJson||JSON.stringify.bind(JSON),e.copy=o.copy||function(t,i){i&&Object.keys(i).forEach(function(t){return delete i[t]});i||(i={});return e.extend(i,t)},e.forEach=o.forEach||function(t,e,i){if(n.isArray(t))return t.forEach(e,i);Object.keys(t).forEach(function(i){return e(t[i],i)})},e.extend=o.extend||function(t,i){return a(arguments,1).filter(e.identity).reduce(p,t)},e.equals=o.equals||m,e.identity=function(t){return t},e.noop=function(){},e.abstractKey="abstract",e.bindFunctions=function(t,e,i,n){return void 0===n&&(n=Object.keys(t)),n.filter(function(e){return"function"==typeof t[e]}).forEach(function(n){return e[n]=t[n].bind(i)})},e.inherit=function(t,i){return e.extend(new(e.extend(function(){},{prototype:t})),i)};var a=function(t,e){return void 0===e&&(e=0),Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(t,e))};function l(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return e.forEach(i,function(i){e.forEach(i,function(e,i){t.hasOwnProperty(i)||(t[i]=e)})}),t}function u(t,e){var i={},n=a(arguments,2);for(var r in e)t(n,r)&&(i[r]=e[r]);return i}function c(t){return u.apply(null,[e.inArray].concat(a(arguments)))}function h(t,i){var r=n.isArray(t)?[]:{};return e.forEach(t,function(t,e){return r[e]=i(t,e)}),r}function d(t,e){return t.push(e),t}function f(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(0===t.length)return[];var i=t.reduce(function(t,e){return Math.min(e.length,t)},9007199254740991);return Array.apply(null,Array(i)).map(function(e,i){return t.map(function(t){return t[i]})})}function p(t,e){return Object.keys(e).forEach(function(i){return t[i]=e[i]}),t}function m(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var i=void 0===t?"undefined":_typeof(t);if(i!==(void 0===e?"undefined":_typeof(e))||"object"!==i)return!1;var s,o,a=[t,e];if(r.all(n.isArray)(a))return o=e,(s=t).length===o.length&&f(s,o).reduce(function(t,e){return t&&m(e[0],e[1])},!0);if(r.all(n.isDate)(a))return t.getTime()===e.getTime();if(r.all(n.isRegExp)(a))return t.toString()===e.toString();if(r.all(n.isFunction)(a))return!0;if([n.isFunction,n.isArray,n.isDate,n.isRegExp].map(r.any).reduce(function(t,e){return t||!!e(a)},!1))return!1;var l,u={};for(l in t){if(!m(t[l],e[l]))return!1;u[l]=!0}for(l in e)if(!u[l])return!1;return!0}e.inArray=function(t,e){return-1!==t.indexOf(e)},e.removeFrom=r.curry(function(t,e){var i=t.indexOf(e);return i>=0&&t.splice(i,1),t}),e.defaults=function(t){void 0===t&&(t={});for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=l.apply(null,[{}].concat(i));return e.extend({},r,c(t||{},Object.keys(r)))},e.merge=l,e.mergeR=function(t,i){return e.extend(t,i)},e.ancestors=function(t,e){var i=[];for(var n in t.path){if(t.path[n]!==e.path[n])break;i.push(t.path[n])}return i},e.equalForKeys=function(t,e,i){void 0===i&&(i=Object.keys(t));for(var n=0;n<i.length;n++){var r=i[n];if(t[r]!=e[r])return!1}return!0},e.pick=c,e.omit=function(t){return u.apply(null,[r.not(e.inArray)].concat(a(arguments)))},e.pluck=function(t,e){return h(t,r.prop(e))},e.filter=function(t,i){var r=n.isArray(t),s=r?[]:{},o=r?function(t){return s.push(t)}:function(t,e){return s[e]=t};return e.forEach(t,function(t,e){i(t,e)&&o(t,e)}),s},e.find=function(t,i){var n;return e.forEach(t,function(t,e){n||i(t,e)&&(n=t)}),n},e.mapObj=h,e.map=h,e.values=function(t){return Object.keys(t).map(function(e){return t[e]})},e.allTrueR=function(t,e){return t&&e},e.anyTrueR=function(t,e){return t||e},e.unnestR=function(t,e){return t.concat(e)},e.flattenR=function(t,i){return n.isArray(i)?t.concat(i.reduce(e.flattenR,[])):d(t,i)},e.pushR=d,e.uniqR=function(t,i){return e.inArray(t,i)?t:d(t,i)},e.unnest=function(t){return t.reduce(e.unnestR,[])},e.flatten=function(t){return t.reduce(e.flattenR,[])},e.assertPredicate=function(t,e){return void 0===e&&(e="assert failure"),function(i){if(!t(i))throw new Error(n.isFunction(e)?e(i):e);return!0}},e.pairs=function(t){return Object.keys(t).map(function(e){return[e,t[e]
1]})},e.arrayTuples=f,e.applyPairs=function(t,e){var i,r;if(n.isArray(e)&&(i=e[0],r=e[1]),!n.isString(i))throw new Error("invalid parameters to applyPairs");return t[i]=r,t},e.tail=function(t){return t.length&&t[t.length-1]||void 0},e.silenceUncaughtInPromise=function(t){return t.catch(function(t){return 0})&&t},e.silentRejection=function(t){return e.silenceUncaughtInPromise(s.services.$q.reject(t))}},function(t,e,i){"use strict";var n=i(5),r=Object.prototype.toString,s=function(t){return function(e){return(void 0===e?"undefined":_typeof(e))===t}};e.isUndefined=s("undefined"),e.isDefined=n.not(e.isUndefined),e.isNull=function(t){return null===t},e.isFunction=s("function"),e.isNumber=s("number"),e.isString=s("string"),e.isObject=function(t){return null!==t&&"object"===(void 0===t?"undefined":_typeof(t))},e.isArray=Array.isArray,e.isDate=function(t){return"[object Date]"===r.call(t)},e.isRegExp=function(t){return"[object RegExp]"===r.call(t)},e.isInjectable=function(t){if(e.isArray(t)&&t.length){var i=t.slice(0,-1),r=t.slice(-1);return!(i.filter(n.not(e.isString)).length||r.filter(n.not(e.isFunction)).length)}return e.isFunction(t)},e.isPromise=n.and(e.isObject,n.pipe(n.prop("then"),e.isFunction))},function(t,e){"use strict";function i(t){var e=[].slice.apply(arguments,[1]),i=t.length;return function e(n){return n.length>=i?t.apply(null,n):function(){return e(n.concat([].slice.apply(arguments)))}}(e)}function n(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return n.apply(null,[].slice.call(arguments).reverse())}e.curry=i,e.compose=n,e.pipe=r,e.prop=function(t){return function(e){return e&&e[t]}},e.propEq=i(function(t,e,i){return i&&i[t]===e}),e.parse=function(t){return r.apply(null,t.split(".").map(e.prop))},e.not=function(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i-0]=arguments[i];return!t.apply(null,e)}},e.and=function(t,e){return function(){for(var i=[],n=0;n<arguments.length;n++)i[n-0]=arguments[n];return t.apply(null,i)&&e.apply(null,i)}},e.or=function(t,e){return function(){for(var i=[],n=0;n<arguments.length;n++)i[n-0]=arguments[n];return t.apply(null,i)||e.apply(null,i)}},e.all=function(t){return function(e){return e.reduce(function(e,i){return e&&!!t(i)},!0)}},e.any=function(t){return function(e){return e.reduce(function(e,i){return e||!!t(i)},!1)}},e.none=e.not(e.any),e.is=function(t){return function(e){return null!=e&&e.constructor===t||e instanceof t}},e.eq=function(t){return function(e){return t===e}},e.val=function(t){return function(){return t}},e.invoke=function(t,e){return function(i){return i[t].apply(i,e)}},e.pattern=function(t){return function(e){for(var i=0;i<t.length;i++)if(t[i][0](e))return t[i][1](e)}}},function(t,e){"use strict";var i=function(t){return function(){throw new Error(t+"(): No coreservices implementation for UI-Router is loaded. You should include one of: ['angular1.js']")}},n={$q:void 0,$injector:void 0,location:{},locationConfig:{},template:{}};e.services=n,["replace","url","path","search","hash","onChange"].forEach(function(t){return n.location[t]=i(t)}),["port","protocol","host","baseHref","html5Mode","hashPrefix"].forEach(function(t){return n.locationConfig[t]=i(t)})},function(t,e){"use strict";var i=function(){function t(t){this.text=t,this.glob=t.split(".")}return t.prototype.matches=function(t){for(var e=t.split("."),i=0,n=this.glob.length;i<n;i++)"*"===this.glob[i]&&(e[i]="*");return"**"===this.glob[0]&&(e=e.slice(e.indexOf(this.glob[1]))).unshift("**"),"**"===this.glob[this.glob.length-1]&&(e.splice(e.indexOf(this.glob[this.glob.length-2])+1,Number.MAX_VALUE),e.push("**")),this.glob.length==e.length&&e.join("")===this.glob.join("")},t.is=function(t){return t.indexOf("*")>-1},t.fromString=function(e){return this.is(e)?new t(e):null},t}();e.Glob=i},function(t,e){"use strict";var i=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e=null),this._items=t,this._limit=e}return t.prototype.enqueue=function(t){var e=this._items;return e.push(t),this._limit&&e.length>this._limit&&e.shift(),t},t.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},t.prototype.clear=function(){var t=this._items;return this._items=[],t},t.prototype.size=function(){return this._items.length},t.prototype.remove=function(t){var e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]},t.prototype.peekTail=function(){return this._items[this._items.length-1]},t.prototype.peekHead=function(){if(this.size())return this._items[0]},t}();e.Queue=i}
1,function(t,e,i){"use strict";var n=i(4),r=i(10),s=i(3),o=i(5),a=i(11),l=i(19);function u(t){var e=c(t),i=e.match(/^(function [^ ]+\([^)]*\))/);return i?i[1]:e}function c(t){var e=n.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}e.maxLength=function(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."},e.padString=function(t,e){for(;e.length<t;)e+=" ";return e},e.kebobString=function(t){return t.replace(/^([A-Z])/,function(t){return t.toLowerCase()}).replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})},e.functionToString=u,e.fnToString=c;var h=null,d=function(t){var e=r.Rejection.isTransitionRejectionPromise;return(h=h||o.pattern([[o.not(n.isDefined),o.val("undefined")],[n.isNull,o.val("null")],[n.isPromise,o.val("[Promise]")],[e,function(t){return t._transitionRejection.toString()}],[o.is(r.Rejection),o.invoke("toString")],[o.is(a.Transition),o.invoke("toString")],[o.is(l.Resolvable),o.invoke("toString")],[n.isInjectable,u],[o.val(!0),s.identity]]))(t)};e.stringify=function(t){var e=[];return JSON.stringify(t,function(t,i){return function(t){if(n.isObject(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return d(t)}(i)}).replace(/\\"/g,'"')},e.beforeAfterSubstr=function(t){return function(e){if(!e)return["",""];var i=e.indexOf(t);return-1===i?[e,""]:[e.substr(0,i),e.substr(i+1)]}}},function(t,e,i){"use strict";var n=i(3),r=i(9);!function(t){t[t.SUPERSEDED=2]="SUPERSEDED",t[t.ABORTED=3]="ABORTED",t[t.INVALID=4]="INVALID",t[t.IGNORED=5]="IGNORED",t[t.ERROR=6]="ERROR"}(e.RejectType||(e.RejectType={}));var s=e.RejectType,o=function(){function t(t,e,i){this.type=t,this.message=e,this.detail=i}return t.prototype.toString=function(){var t;return"TransitionRejection(type: "+this.type+", message: "+this.message+", detail: "+((t=this.detail)&&t.toString!==Object.prototype.toString?t.toString():r.stringify(t))+")"},t.prototype.toPromise=function(){return n.extend(n.silentRejection(this),{_transitionRejection:this})},t.isTransitionRejectionPromise=function(e){return e&&"function"==typeof e.then&&e._transitionRejection instanceof t},t.superseded=function(e,i){var n=new t(s.SUPERSEDED,"The transition has been superseded by a different transition (see detail).",e);return i&&i.redirected&&(n.redirected=!0),n},t.redirected=function(e){return t.superseded(e,{redirected:!0})},t.invalid=function(e){return new t(s.INVALID,"This transition is invalid (see detail)",e)},t.ignored=function(e){return new t(s.IGNORED,"The transition was ignored.",e)},t.aborted=function(e){return new t(s.ABORTED,"The transition has been aborted.",e)},t.errored=function(e){return new t(s.ERROR,"The transition errored.",e)},t}();e.Rejection=o},function(t,e,i){"use strict";var n=i(12),r=i(6),s=i(3),o=i(4),a=i(5),l=i(13),u=i(15),c=i(16),h=i(21),d=i(20),f=i(14),p=i(22),m=i(19),g=i(10),v=i(17),_=i(26),y=0,b=a.prop("self"),w=function(){function t(e,i,n){var o=this;if(this._deferred=r.services.$q.defer(),this.promise=this._deferred.promise,this.treeChanges=function(){return o._treeChanges},this.isActive=function(){return o===o._options.current()},this.router=n,!i.valid())throw new Error(i.error());u.HookRegistry.mixin(new u.HookRegistry,this),this._options=s.extend({current:a.val(this)},i.options()),this.$id=y++;var l=d.PathFactory.buildToPath(e,i);this._treeChanges=d.PathFactory.treeChanges(e,l,this._options.reloadState);var c=this._treeChanges.entering.map(function(t){return t.state});d.PathFactory.applyViewConfigs(n.transitionService.$view,this._treeChanges.to,c);var h=[new m.Resolvable(_.UIRouter,function(){return n},[],void 0,n),new m.Resolvable(t,function(){return o},[],void 0,this),new m.Resolvable("$transition$",function(){return o},[],void 0,this),new m.Resolvable("$stateParams",function(){return o.params()},[],void 0,this.params())],f=this._treeChanges.to[0];new v.ResolveContext(this._treeChanges.to).addResolvables(h,f.state)}return t.prototype.onBefore=function(t,e,i){throw""},t.prototype.onStart=function(t,e,i){throw""},t.prototype.onExit=function(t,e,i){throw""},t.prototype.onRetain=function(t,e,i){throw""}
1,t.prototype.onEnter=function(t,e,i){throw""},t.prototype.onFinish=function(t,e,i){throw""},t.prototype.onSuccess=function(t,e,i){throw""},t.prototype.onError=function(t,e,i){throw""},t.prototype.$from=function(){return s.tail(this._treeChanges.from).state},t.prototype.$to=function(){return s.tail(this._treeChanges.to).state},t.prototype.from=function(){return this.$from().self},t.prototype.to=function(){return this.$to().self},t.prototype.is=function(e){return e instanceof t?this.is({to:e.$to().name,from:e.$from().name}):!(e.to&&!u.matchState(this.$to(),e.to)||e.from&&!u.matchState(this.$from(),e.from))},t.prototype.params=function(t){return void 0===t&&(t="to"),this._treeChanges[t].map(a.prop("paramValues")).reduce(s.mergeR,{})},t.prototype.injector=function(t){var e=this.treeChanges().to;return t&&(e=d.PathFactory.subPath(e,function(e){return e.state===t||e.state.name===t})),new v.ResolveContext(e).injector()},t.prototype.getResolveTokens=function(){return new v.ResolveContext(this._treeChanges.to).getTokens()},t.prototype.getResolveValue=function(t){var e=new v.ResolveContext(this._treeChanges.to),i=function(t){var i=e.getResolvable(t);if(void 0===i)throw new Error("Dependency Injection token not found: ${stringify(token)}");return i.data};return o.isArray(t)?t.map(i):i(t)},t.prototype.addResolvable=function(t,e){void 0===e&&(e="");var i="string"==typeof e?e:e.name,n=this._treeChanges.to,r=s.find(n,function(t){return t.state.name===i});new v.ResolveContext(n).addResolvables([t],r.state)},t.prototype.previous=function(){return this._options.previous||null},t.prototype.options=function(){return this._options},t.prototype.entering=function(){return s.map(this._treeChanges.entering,a.prop("state")).map(b)},t.prototype.exiting=function(){return s.map(this._treeChanges.exiting,a.prop("state")).map(b).reverse()},t.prototype.retained=function(){return s.map(this._treeChanges.retained,a.prop("state")).map(b)},t.prototype.views=function(t,e){void 0===t&&(t="entering");var i=this._treeChanges[t];return(i=e?i.filter(a.propEq("state",e)):i).map(a.prop("views")).filter(s.identity).reduce(s.unnestR,[])},t.prototype.redirect=function(t){var e=s.extend({},this.options(),t.options(),{previous:this});t=new f.TargetState(t.identifier(),t.$state(),t.params(),e);var i,n=this.router.transitionService.create(this._treeChanges.from,t),r=this.treeChanges().entering,o=n.treeChanges().entering;return h.PathNode.matching(o,r).filter(a.not((i=t.options().reloadState,function(t){return i&&t.state.includes[i.name]}))).forEach(function(t,e){t.resolvables=r[e].resolvables}),n},t.prototype._changedParams=function(){var t=this._treeChanges,e=t.to,i=t.from;if(!this._options.reload&&s.tail(e).state===s.tail(i).state){var n=e.map(function(t){return t.paramSchema}),r=[e,i].map(function(t){return t.map(function(t){return t.paramValues})}),o=r[0],a=r[1];return s.arrayTuples(n,o,a).map(function(t){var e=t[0],i=t[1],n=t[2];return p.Param.changed(e,i,n)}).reduce(s.unnestR,[])}},t.prototype.dynamic=function(){var t=this._changedParams();return!!t&&t.map(function(t){return t.dynamic}).reduce(s.anyTrueR,!1)},t.prototype.ignored=function(){var t=this._changedParams();return!!t&&0===t.length},t.prototype.hookBuilder=function(){return new c.HookBuilder(this.router.transitionService,this,{transition:this,current:this._options.current})},t.prototype.run=function(){var t=this,e=l.TransitionHook.runSynchronousHooks,i=this.hookBuilder();this.router.globals.transitionHistory.enqueue(this);var r=e(i.getOnBeforeHooks());if(g.Rejection.isTransitionRejectionPromise(r)){r.catch(function(){return 0});var s=r._transitionRejection;return this._deferred.reject(s),this.promise}if(!this.valid()){var o=new Error(this.error());return this._deferred.reject(o),this.promise}if(this.ignored())return n.trace.traceTransitionIgnored(this),this._deferred.reject(g.Rejection.ignored()),this.promise;n.trace.traceTransitionStart(this);return i.asyncHooks().reduce(function(t,e){return t.then(function(){return e.invokeHook()})},r).then(function(){n.trace.traceSuccess(t.$to(),t),t.success=!0,t._deferred.resolve(t.to()),e(i.getOnSuccessHooks(),!0)},function(r){n.trace.traceError(r,t),t.success=!1,t._deferred.reject(r),e(i.getOnErrorHooks(),!0)}),this.promise},t.prototype.valid=function(){return!this.error()},t.prototype.error=function(){var t=this.$to();return t.self[s.abstractKey]?"Cannot transition to abstract state '"+t.name+"'":p.Param.validates(t.parameters(),this.params())?void 0:"Param values n
1ot valid for state '"+t.name+"'"},t.prototype.toString=function(){var t=this.from(),e=this.to(),i=function(t){return null!==t["#"]&&void 0!==t["#"]?t:s.omit(t,"#")};return"Transition#"+this.$id+"( '"+(o.isObject(t)?t.name:t)+"'"+s.toJson(i(this._treeChanges.from.map(a.prop("paramValues")).reduce(s.mergeR,{})))+" -> "+(this.valid()?"":"(X) ")+"'"+(o.isObject(e)?e.name:e)+"'"+s.toJson(i(this.params()))+" )"},t.diToken=t,t}();e.Transition=w},function(t,e,i){"use strict";var n=i(5),r=i(4),s=i(9);function o(t){return t?"[ui-view#"+t.id+" tag in template from '"+(t.creationContext&&t.creationContext.name||"(root)")+"' state]: fqn: '"+t.fqn+"', name: '"+t.name+"@"+t.creationContext+"')":"ui-view (defunct)"}function a(t){return r.isNumber(t)?l[t]:l[l[t]]}!function(t){t[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.INVOKE=3]="INVOKE",t[t.UIVIEW=4]="UIVIEW",t[t.VIEWCONFIG=5]="VIEWCONFIG"}(e.Category||(e.Category={}));var l=e.Category,u=function(){function t(){this._enabled={},this.approximateDigests=0}return t.prototype._set=function(t,e){var i=this;e.length||(e=Object.keys(l).filter(function(t){return isNaN(parseInt(t,10))}).map(function(t){return l[t]})),e.map(a).forEach(function(e){return i._enabled[e]=t})},t.prototype.enable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];this._set(!0,t)},t.prototype.disable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];this._set(!1,t)},t.prototype.enabled=function(t){return!!this._enabled[a(t)]},t.prototype.traceTransitionStart=function(t){if(this.enabled(l.TRANSITION)){var e=t.$id,i=this.approximateDigests,n=s.stringify(t);console.log("Transition #"+e+" Digest #"+i+": Started -> "+n)}},t.prototype.traceTransitionIgnored=function(t){if(this.enabled(l.TRANSITION)){var e=t&&t.$id,i=this.approximateDigests,n=s.stringify(t);console.log("Transition #"+e+" Digest #"+i+": Ignored <> "+n)}},t.prototype.traceHookInvocation=function(t,e){if(this.enabled(l.HOOK)){var i=n.parse("transition.$id")(e),r=this.approximateDigests,o=n.parse("traceData.hookType")(e)||"internal",a=n.parse("traceData.context.state.name")(e)||n.parse("traceData.context")(e)||"unknown",u=s.functionToString(t.fn);console.log("Transition #"+i+" Digest #"+r+": Hook -> "+o+" context: "+a+", "+s.maxLength(200,u))}},t.prototype.traceHookResult=function(t,e,i){if(this.enabled(l.HOOK)){var r=n.parse("transition.$id")(i),o=this.approximateDigests,a=s.stringify(t),u=s.stringify(e);console.log("Transition #"+r+" Digest #"+o+": <- Hook returned: "+s.maxLength(200,a)+", transition result: "+s.maxLength(200,u))}},t.prototype.traceResolvePath=function(t,e,i){if(this.enabled(l.RESOLVE)){var n=i&&i.$id,r=this.approximateDigests,s=t&&t.toString();console.log("Transition #"+n+" Digest #"+r+": Resolving "+s+" ("+e+")")}},t.prototype.traceResolvableResolved=function(t,e){if(this.enabled(l.RESOLVE)){var i=e&&e.$id,n=this.approximateDigests,r=t&&t.toString(),o=s.stringify(t.data);console.log("Transition #"+i+" Digest #"+n+": <- Resolved "+r+" to: "+s.maxLength(200,o))}},t.prototype.traceError=function(t,e){if(this.enabled(l.TRANSITION)){var i=e&&e.$id,n=this.approximateDigests,r=s.stringify(e);console.log("Transition #"+i+" Digest #"+n+": <- Rejected "+r+", reason: "+t)}},t.prototype.traceSuccess=function(t,e){if(this.enabled(l.TRANSITION)){var i=e&&e.$id,n=this.approximateDigests,r=t.name,o=s.stringify(e);console.log("Transition #"+i+" Digest #"+n+": <- Success "+o+", final state: "+r)}},t.prototype.traceUIViewEvent=function(t,e,i){void 0===i&&(i=""),this.enabled(l.UIVIEW)&&console.log("ui-view: "+s.padString(30,t)+" "+o(e)+i)},t.prototype.traceUIViewConfigUpdated=function(t,e){this.enabled(l.UIVIEW)&&this.traceUIViewEvent("Updating",t," with ViewConfig from context='"+e+"'")},t.prototype.traceUIViewScopeCreated=function(t,e){this.enabled(l.UIVIEW)&&this.traceUIViewEvent("Created scope for",t,", scope #"+e.$id)},t.prototype.traceUIViewFill=function(t,e){this.enabled(l.UIVIEW)&&this.traceUIViewEvent("Fill",t," with: "+s.maxLength(200,e))},t.prototype.traceViewServiceEvent=function(t,e){this.enabled(l.VIEWCONFIG)&&console.log("VIEWCONFIG: "+t+" "+function(t){return"[ViewConfig#"+t.$id+" from '"+(t.viewDecl.$context.name||"(root)")+"' state]: target ui-view: '"+t.viewDecl.$uiViewName+"@"+t.viewDecl.$uiViewContextAnchor+"'"}(e))},t.prototype.traceViewServiceUIViewEvent=function(t,e){this.enabled(l.VIEWCONFIG)&&console.log("VIEWCONFIG: "+t+" "+o(e))},t}();e.Trace=u;var c=new u;e.trace=c}
1,function(t,e,i){"use strict";var n=i(3),r=i(9),s=i(4),o=i(5),a=i(12),l=i(6),u=i(10),c=i(14),h={async:!0,rejectIfSuperseded:!0,current:n.noop,transition:null,traceData:{},bind:null},d=function(){function t(t,e,i,r,s){var o=this;this.transition=t,this.stateContext=e,this.hookFn=i,this.resolveContext=r,this.options=s,this.isSuperseded=function(){return o.options.current()!==o.options.transition},this.options=n.defaults(s,h)}return t.prototype.invokeHook=function(){var t=this.options,e=this.hookFn;this.resolveContext;if(a.trace.traceHookInvocation(this,t),t.rejectIfSuperseded&&this.isSuperseded())return u.Rejection.superseded(t.current()).toPromise();var i=e.call(t.bind,this.transition,this.stateContext);return this.handleHookResult(i)},t.prototype.handleHookResult=function(t){var e=this;if(s.isDefined(t)){var i=o.pattern([[this.isSuperseded,function(){return u.Rejection.superseded(e.options.current()).toPromise()}],[o.eq(!1),function(){return u.Rejection.aborted("Hook aborted transition").toPromise()}],[o.is(c.TargetState),function(t){return u.Rejection.redirected(t).toPromise()}],[s.isPromise,function(t){return t.then(e.handleHookResult.bind(e))}]])(t);return i&&a.trace.traceHookResult(t,i,this.options),i}},t.prototype.toString=function(){var t=this.options,e=this.hookFn,i=o.parse("traceData.hookType")(t)||"internal",n=o.parse("traceData.context.state.name")(t)||o.parse("traceData.context")(t)||"unknown",s=r.fnToString(e);return i+" context: "+n+", "+r.maxLength(200,s)},t.runSynchronousHooks=function(t,e){void 0===e&&(e=!1);for(var i=[],n=0;n<t.length;n++)try{i.push(t[n].invokeHook())}catch(t){if(!e)return u.Rejection.errored(t).toPromise();console.error("Swallowed exception during synchronous hook handler: "+t)}var r=i.filter(u.Rejection.isTransitionRejectionPromise);return r.length?r[0]:i.filter(s.isPromise).reduce(function(t,e){return t.then(o.val(e))},l.services.$q.when())},t}();e.TransitionHook=d},function(t,e){"use strict";var i=function(){function t(t,e,i,n){void 0===i&&(i={}),void 0===n&&(n={}),this._identifier=t,this._definition=e,this._options=n,this._params=i||{}}return t.prototype.name=function(){return this._definition&&this._definition.name||this._identifier},t.prototype.identifier=function(){return this._identifier},t.prototype.params=function(){return this._params},t.prototype.$state=function(){return this._definition},t.prototype.state=function(){return this._definition&&this._definition.self},t.prototype.options=function(){return this._options},t.prototype.exists=function(){return!(!this._definition||!this._definition.self)},t.prototype.valid=function(){return!this.error()},t.prototype.error=function(){var t=this.options().relative;if(!this._definition&&t){var e=t.name?t.name:t;return"Could not resolve '"+this.name()+"' from state '"+e+"'"}return this._definition?this._definition.self?void 0:"State '"+this.name()+"' has an invalid definition":"No such state '"+this.name()+"'"},t}();e.TargetState=i},function(t,e,i){"use strict";var n=i(3),r=i(4),s=i(7);function o(t,e){var i=r.isString(e)?[e]:e;return!!(r.isFunction(i)?i:function(t){for(var e=i,n=0;n<e.length;n++){var r=s.Glob.fromString(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t)}e.matchState=o;var a=function(){function t(t,e,i){void 0===i&&(i={}),this.callback=e,this.matchCriteria=n.extend({to:!0,from:!0,exiting:!0,retained:!0,entering:!0},t),this.priority=i.priority||0,this.bind=i.bind||null}return t._matchingNodes=function(t,e){if(!0===e)return t;var i=t.filter(function(t){return o(t.state,e)});return i.length?i:null},t.prototype.matches=function(e){var i=this.matchCriteria,r=t._matchingNodes,s={to:r([n.tail(e.to)],i.to),from:r([n.tail(e.from)],i.from),exiting:r(e.exiting,i.exiting),retained:r(e.retained,i.retained),entering:r(e.entering,i.entering)};return["to","from","exiting","retained","entering"].map(function(t){return s[t]}).reduce(n.allTrueR,!0)?s:null},t}();function l(t,e){return function(i,r,s){void 0===s&&(s={});var o=new a(i,r,s);return t[e].push(o),function(){n.removeFrom(t[e])(o)}}}e.EventHook=a;var u=function(){function t(){var t=this;this._transitionEvents={onBefore:[],onStart:[],onEnter:[],onRetain:[],onExit:[],onFinish:[],onSuccess:[],onError:[]},this.getHooks=function(e){return t._transitionEvents[e]},this.onBefore=l(this._transitionEvents,"onBefore"),this.onStart=l(this._transitionEvents,"onStart"),this.onEnter=l(this._transitionEvents,"onEnter"),this.onRetain=l(this._transitionEvents,"onRetain"),this.onExit=l(this._transitionEvents,"onExit"),this.onFinish=l(this._transitionEvents,"onFinish"),this.onSuccess=l(this._transitionEvents,"onSuccess"),this.onError=l(this._transitionEvents,"onError")}return t.mixin=function(t,e){Object.keys(t._transitionEvents).concat(["getHooks"]).forEac
1h(function(i){return e[i]=t[i]})},t}();e.HookRegistry=u},function(t,e,i){"use strict";var n=i(3),r=i(4),s=i(13),o=i(17),a=function(){function t(t,e,i){var r=this;this.$transitions=t,this.transition=e,this.baseHookOptions=i,this.getOnBeforeHooks=function(){return r._buildNodeHooks("onBefore","to",l(),{async:!1})},this.getOnStartHooks=function(){return r._buildNodeHooks("onStart","to",l())},this.getOnExitHooks=function(){return r._buildNodeHooks("onExit","exiting",l(!0),{stateHook:!0})},this.getOnRetainHooks=function(){return r._buildNodeHooks("onRetain","retained",l(!1),{stateHook:!0})},this.getOnEnterHooks=function(){return r._buildNodeHooks("onEnter","entering",l(!1),{stateHook:!0})},this.getOnFinishHooks=function(){return r._buildNodeHooks("onFinish","to",l())},this.getOnSuccessHooks=function(){return r._buildNodeHooks("onSuccess","to",l(),{async:!1,rejectIfSuperseded:!1})},this.getOnErrorHooks=function(){return r._buildNodeHooks("onError","to",l(),{async:!1,rejectIfSuperseded:!1})},this.treeChanges=e.treeChanges(),this.toState=n.tail(this.treeChanges.to).state,this.fromState=n.tail(this.treeChanges.from).state,this.transitionOptions=e.options()}return t.prototype.asyncHooks=function(){return[this.getOnStartHooks(),this.getOnExitHooks(),this.getOnRetainHooks(),this.getOnEnterHooks(),this.getOnFinishHooks()].reduce(n.unnestR,[]).filter(n.identity)},t.prototype._buildNodeHooks=function(t,e,i,r){var a=this,l=this._matchingHooks(t,this.treeChanges);if(!l)return[];return l.map(function(i){var l=i.matches(a.treeChanges)[e],u="exiting"===e?a.treeChanges.from:a.treeChanges.to,c=new o.ResolveContext(u);return l.map(function(e){var o=n.extend({bind:i.bind,traceData:{hookType:t,context:e}},a.baseHookOptions,r),l=o.stateHook?e.state:null,u=c.subContext(e.state),h=new s.TransitionHook(a.transition,l,i.callback,u,o);return{hook:i,node:e,transitionHook:h}})}).reduce(n.unnestR,[]).sort(i).map(function(t){return t.transitionHook})},t.prototype._matchingHooks=function(t,e){return[this.transition,this.$transitions].map(function(e){return e.getHooks(t)}).filter(n.assertPredicate(r.isArray,"broken event named: "+t)).reduce(n.unnestR,[]).filter(function(t){return t.matches(e)})},t}();function l(t){return void 0===t&&(t=!1),function(e,i){var n=t?-1:1,r=(e.node.state.path.length-i.node.state.path.length)*n;return 0!==r?r:i.hook.priority-e.hook.priority}}e.HookBuilder=a},function(t,e,i){"use strict";var n=i(3),r=i(5),s=i(12),o=i(6),a=i(18),l=i(19),u=i(20),c=i(9),h=a.resolvePolicies.when,d=[h.EAGER,h.LAZY],f=[h.EAGER],p=function(){function t(t){this._path=t}return t.prototype.getTokens=function(){return this._path.reduce(function(t,e){return t.concat(e.resolvables.map(function(t){return t.token}))},[]).reduce(n.uniqR,[])},t.prototype.getResolvable=function(t){var e=this._path.map(function(t){return t.resolvables}).reduce(n.unnestR,[]).filter(function(e){return e.token===t});return n.tail(e)},t.prototype.subContext=function(e){return new t(u.PathFactory.subPath(this._path,function(t){return t.state===e}))},t.prototype.addResolvables=function(t,e){var i=n.find(this._path,r.propEq("state",e)),s=t.map(function(t){return t.token});i.resolvables=i.resolvables.filter(function(t){return-1===s.indexOf(t.token)}).concat(t)},t.prototype.resolvePath=function(t,e){var i=this;void 0===t&&(t="LAZY");var r=(n.inArray(d,t)?t:"LAZY")===a.resolvePolicies.when.EAGER?f:d;s.trace.traceResolvePath(this._path,t,e);var l=this._path.reduce(function(t,s){var o=s.resolvables.filter(function(t){return n.inArray(r,t.getPolicy(s.state).when)}),a=i.subContext(s.state);return t.concat(o.map(function(t){return t.get(a,e).then(function(e){return{token:t.token,value:e}})}))},[]);return o.services.$q.all(l)},t.prototype.injector=function(){return new m(this)},t.prototype.findNode=function(t){return n.find(this._path,function(e){return n.inArray(e.resolvables,t)})},t.prototype.getDependencies=function(t){var e=this.findNode(t),i=(u.PathFactory.subPath(this._path,function(t){return t===e})||this._path).reduce(function(t,e){return t.concat(e.resolvables)},[]).filter(function(e){return e!==t});return t.deps.map(function(t){var e=i.filter(function(e){return e.token===t});if(e.length)return n.tail(e);var r=o.services.$injector.get(t);if(!r)throw new Error("Could not find Dependency Injection token: "+c.stringify(t));return new l.Resolvable(t,function(){return r},[],r)})},t}();e.ResolveContext=p;var m=function(){function t(t){this.context=t,this.native=o.services.$injector}return t.prototype.get=function(t){var e=this.context.getResolvable(t);if(e){if(!e.resolved)throw new Error("Resolvable async .get() not complete:"+c.stringify(e.token));return e.data}return o.services.$injector.get(t)},t.prototype.getAsync=function(t){var e=this.context.getResolvable(t);return e?e.get(this.context):o.services.$q.when(o.services.$injector.get(t))},t}()},function(t,e){"use strict";e.resolvePolicies={when:{LAZY:"LAZY",EAGER:"EAGER"},async:{WAIT:"WAIT",NOWAIT:"NOWAIT",RXWAIT:"RXWAIT"}}}
1,function(t,e,i){"use strict";var n=i(3),r=i(6),s=i(12),o=i(9),a=i(4);e.defaultResolvePolicy={when:"LAZY",async:"WAIT"};var l=function(){function t(e,i,s,o,l){if(this.resolved=!1,this.promise=void 0,e instanceof t)n.extend(this,e);else if(a.isFunction(i)){if(null==e||void 0==e)throw new Error("new Resolvable(): token argument is required");if(!a.isFunction(i))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=e,this.policy=o,this.resolveFn=i,this.deps=s||[],this.data=l,this.resolved=void 0!==l,this.promise=this.resolved?r.services.$q.when(this.data):void 0}else if(a.isObject(e)&&e.token&&a.isFunction(e.resolveFn)){var u=e;return new t(u.token,u.resolveFn,u.deps,u.policy,u.data)}}return t.prototype.getPolicy=function(t){var i=this.policy||{},n=t&&t.resolvePolicy||{};return{when:i.when||n.when||e.defaultResolvePolicy.when,async:i.async||n.async||e.defaultResolvePolicy.async}},t.prototype.resolve=function(t,e){var i=this,n=r.services.$q,o=t.findNode(this),a=o&&o.state,l="RXWAIT"===this.getPolicy(a).async?function(t){var e=t.cache();return e.toPromise().then(function(){return e})}:function(t){return t};return this.promise=n.when().then(function(){return n.all(t.getDependencies(i).map(function(i){return i.get(t,e)}))}).then(function(t){return i.resolveFn.apply(null,t)}).then(l).then(function(t){return i.data=t,i.resolved=!0,s.trace.traceResolvableResolved(i,e),i.data})},t.prototype.get=function(t,e){return this.promise||this.resolve(t,e)},t.prototype.toString=function(){return"Resolvable(token: "+o.stringify(this.token)+", requires: ["+this.deps.map(o.stringify)+"])"},t.prototype.clone=function(){return new t(this)},t}();e.Resolvable=l},function(t,e,i){"use strict";var n=i(3),r=i(5),s=i(14),o=i(21),a=function(){function t(){}return t.makeTargetState=function(t){var e=n.tail(t).state;return new s.TargetState(e,e,t.map(r.prop("paramValues")).reduce(n.mergeR,{}))},t.buildPath=function(t){var e=t.params();return t.$state().path.map(function(t){return new o.PathNode(t).applyRawParams(e)})},t.buildToPath=function(e,i){var n=t.buildPath(i);return i.options().inherit?t.inheritParams(e,n,Object.keys(i.params())):n},t.applyViewConfigs=function(e,i,r){i.filter(function(t){return n.inArray(r,t.state)}).forEach(function(r){var s=n.values(r.state.views||{}),o=t.subPath(i,function(t){return t===r}),a=s.map(function(t){return e.createViewConfig(o,t)});r.views=a.reduce(n.unnestR,[])})},t.inheritParams=function(t,e,i){return void 0===i&&(i=[]),e.map(function(e){var s=n.extend({},e&&e.paramValues),a=n.pick(s,i);s=n.omit(s,i);var l,u,c,h=(l=t,u=e.state,c=n.find(l,r.propEq("state",u)),n.extend({},c&&c.paramValues)||{}),d=n.extend(s,h,a);return new o.PathNode(e.state).applyRawParams(d)})},t.treeChanges=function(t,e,i){for(var n,s,a,l,u=0,c=Math.min(t.length,e.length),h=function(t,e){return t.equals(e,t.state.parameters({inherit:!1}).filter(r.not(r.prop("dynamic"))).map(r.prop("id")))};u<c&&t[u].state!==i&&h(t[u],e[u]);)u++;s=(n=t).slice(0,u),a=n.slice(u);var d=s.map(function(t,i){var n=o.PathNode.clone(t);return n.paramValues=e[i].paramValues,n});return l=e.slice(u),{from:n,to:d.concat(l),retained:s,exiting:a,entering:l}},t.subPath=function(t,e){var i=n.find(t,e),r=t.indexOf(i);return-1===r?void 0:t.slice(0,r+1)},t.paramValues=function(t){return t.reduce(function(t,e){return n.extend(t,e.paramValues)},{})},t}();e.PathFactory=a},function(t,e,i){"use strict";var n=i(3),r=i(5),s=i(22),o=function(){function t(e){if(e instanceof t){var i=e;this.state=i.state,this.paramSchema=i.paramSchema.slice(),this.paramValues=n.extend({},i.paramValues),this.resolvables=i.resolvables.slice(),this.views=i.views&&i.views.slice()}else this.state=e,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map(function(t){return t.clone()})}return t.prototype.applyRawParams=function(t){return this.paramValues=this.paramSchema.reduce(function(e,i){return n.applyPairs(e,[(r=i).id,r.value(t[r.id])]);var r},{}),this},t.prototype.parameter=function(t){return n.find(this.paramSchema,r.propEq("id",t))},t.prototype.equals=function(t,e){var i=this;void 0===e&&(e=this.paramSchema.map(r.prop("id")));return this.state===t.state&&e.map(function(e){return i.parameter(e).type.equals(i.paramValues[e],t.paramValues[e])}).reduce(n.allTrueR,!0)},t.clone=function(e){return new t(e)},t.matching=function(t,e){for(var i=[],n=0;n<t.length&&n<e.length;n++){var r=t[n],o=e[n];if(r.state!==o.state)break;
1if(!s.Param.equals(r.paramSchema,r.paramValues,o.paramValues))break;i.push(r)}return i},t}();e.PathNode=o},function(t,e,i){"use strict";var n=i(3),r=i(5),s=i(4),o=i(6),a=i(23),l=i(24),u=i(25),c=Object.prototype.hasOwnProperty,h=function(t){return 0===["value","type","squash","array","dynamic"].filter(c.bind(t||{})).length};!function(t){t[t.PATH=0]="PATH",t[t.SEARCH=1]="SEARCH",t[t.CONFIG=2]="CONFIG"}(e.DefType||(e.DefType={}));var d=e.DefType;var f=function(){function t(t,e,i,o){var c;c=h(c=i)&&{value:c}||c,e=function(t,e,i,n){if(t.type&&e&&"string"!==e.name)throw new Error("Param '"+n+"' has two type configurations.");return t.type&&e&&"string"===e.name&&u.paramTypes.type(t.type)?u.paramTypes.type(t.type):e||(t.type?t.type instanceof l.ParamType?t.type:u.paramTypes.type(t.type):i===d.CONFIG?u.paramTypes.type("any"):u.paramTypes.type("string"))}(i=n.extend(c,{$$fn:s.isInjectable(c.value)?c.value:function(){return c.value}}),e,o,t);var f,p,m=(f={array:o===d.SEARCH&&"auto"},p=t.match(/\[\]$/)?{array:!0}:{},n.extend(f,p,i).array);e=m?e.$asArray(m,o===d.SEARCH):e;var g=void 0!==i.value,v=s.isDefined(i.dynamic)?!!i.dynamic:!!e.dynamic,_=function(t,e){var i=t.squash;if(!e||!1===i)return!1;if(!s.isDefined(i)||null==i)return a.matcherConfig.defaultSquashPolicy();if(!0===i||s.isString(i))return i;throw new Error("Invalid squash policy: '"+i+"'. Valid policies: false, true, or arbitrary string")}(i,g),y=function(t,e,i,o){var a,l,u=[{from:"",to:i||e?void 0:""},{from:null,to:i||e?void 0:""}];return a=s.isArray(t.replace)?t.replace:[],s.isString(o)&&a.push({from:o,to:void 0}),l=n.map(a,r.prop("from")),n.filter(u,function(t){return-1===l.indexOf(t.from)}).concat(a)}(i,m,g,_);n.extend(this,{id:t,type:e,location:o,squash:_,replace:y,isOptional:g,dynamic:v,config:i,array:m})}return t.prototype.isDefaultValue=function(t){return this.isOptional&&this.type.equals(this.value(),t)},t.prototype.value=function(t){var e,i,a=this;return e=t,t=(i=n.map(n.filter(a.replace,r.propEq("from",e)),r.prop("to"))).length?i[0]:e,s.isDefined(t)?this.type.$normalize(t):function(){if(!o.services.$injector)throw new Error("Injectable functions cannot be called at configuration time");var t=o.services.$injector.invoke(a.config.$$fn);if(null!==t&&void 0!==t&&!a.type.is(t))throw new Error("Default value ("+t+") for parameter '"+a.id+"' is not an instance of ParamType ("+a.type.name+")");return t}()},t.prototype.isSearch=function(){return this.location===d.SEARCH},t.prototype.validates=function(t){if((!s.isDefined(t)||null===t)&&this.isOptional)return!0;var e=this.type.$normalize(t);if(!this.type.is(e))return!1;var i=this.type.encode(e);return!(s.isString(i)&&!this.type.pattern.exec(i))},t.prototype.toString=function(){return"{Param:"+this.id+" "+this.type+" squash: '"+this.squash+"' optional: "+this.isOptional+"}"},t.fromConfig=function(e,i,n){return new t(e,i,n,d.CONFIG)},t.fromPath=function(e,i,n){return new t(e,i,n,d.PATH)},t.fromSearch=function(e,i,n){return new t(e,i,n,d.SEARCH)},t.values=function(t,e){return void 0===e&&(e={}),t.map(function(t){return[t.id,t.value(e[t.id])]}).reduce(n.applyPairs,{})},t.changed=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),t.filter(function(t){return!t.type.equals(e[t.id],i[t.id])})},t.equals=function(e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),0===t.changed(e,i,n).length},t.validates=function(t,e){return void 0===e&&(e={}),t.map(function(t){return t.validates(e[t.id])}).reduce(n.allTrueR,!0)},t}();e.Param=f},function(t,e,i){"use strict";var n=i(4),r=function(){function t(){this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1}return t.prototype.caseInsensitive=function(t){return this._isCaseInsensitive=n.isDefined(t)?t:this._isCaseInsensitive},t.prototype.strictMode=function(t){return this._isStrictMode=n.isDefined(t)?t:this._isStrictMode},t.prototype.defaultSquashPolicy=function(t){if(n.isDefined(t)&&!0!==t&&!1!==t&&!n.isString(t))throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");return this._defaultSquashPolicy=n.isDefined(t)?t:this._defaultSquashPolicy},t}();e.MatcherConfig=r,e.matcherConfig=new r}
1,function(t,e,i){"use strict";var n=i(3),r=i(4);function s(t,e){var i=this;function s(t){return r.isArray(t)?t:r.isDefined(t)?[t]:[]}function o(t,i){return function(o){if(r.isArray(o)&&0===o.length)return o;var a=s(o),l=n.map(a,t);return!0===i?0===n.filter(l,function(t){return!t}).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(l)}}["encode","decode","equals","$normalize"].map(function(e){i[e]=("equals"===e?function(t){return function(e,i){var n=s(e),r=s(i);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!t(n[o],r[o]))return!1;return!0}}:o)(t[e].bind(t))}),n.extend(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,is:o(t.is.bind(t),!0),$arrayMode:e})}var o=function(){function t(t){this.pattern=/.*/,n.extend(this,t)}return t.prototype.is=function(t,e){return!0},t.prototype.encode=function(t,e){return t},t.prototype.decode=function(t,e){return t},t.prototype.equals=function(t,e){return t==e},t.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},t.prototype.toString=function(){return"{ParamType:"+this.name+"}"},t.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},t.prototype.$asArray=function(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new s(this,t)},t}();e.ParamType=o},function(t,e,i){"use strict";var n=i(3),r=i(4),s=i(5),o=i(6),a=i(24);function l(t){return null!=t?t.toString().replace(/~/g,"~~").replace(/\//g,"~2F"):t}function u(t){return null!=t?t.toString().replace(/~2F/g,"/").replace(/~~/g,"~"):t}var c=function(){function t(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes={hash:{encode:l,decode:u,is:s.is(String),pattern:/.*/,equals:function(t,e){return t==e}},string:{encode:l,decode:u,is:s.is(String),pattern:/[^/]*/},int:{encode:l,decode:function(t){return parseInt(t,10)},is:function(t){return r.isDefined(t)&&this.decode(t.toString())===t},pattern:/-?\d+/},bool:{encode:function(t){return t?1:0},decode:function(t){return 0!==parseInt(t,10)},is:s.is(Boolean),pattern:/0|1/},date:{encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;var e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return["getFullYear","getMonth","getDate"].reduce(function(i,n){return i&&t[n]()===e[n]()},!0)},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:n.toJson,decode:n.fromJson,is:s.is(Object),equals:n.equals,pattern:/[^/]*/},any:{encode:n.identity,decode:n.identity,equals:n.equals,pattern:/.*/}};this.types=n.inherit(n.map(this.defaultTypes,function(t,e){return new a.ParamType(n.extend({name:e},t))}),{})}return t.prototype.type=function(t,e,i){if(!r.isDefined(e))return this.types[t];if(this.types.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return this.types[t]=new a.ParamType(n.extend({name:t},e)),i&&(this.typeQueue.push({name:t,def:i}),this.enqueue||this._flushTypeQueue()),this},t.prototype._flushTypeQueue=function(){for(;this.typeQueue.length;){var t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");n.extend(this.types[t.name],o.services.$injector.invoke(t.def))}},t}();e.ParamTypes=c,e.paramTypes=new c},function(t,e,i){"use strict";var n=i(27),r=i(29),s=i(30),o=i(29),a=i(31),l=i(37),u=i(38),c=i(43),h=i(44),d=function(){return function(){this.viewService=new l.ViewService,this.transitionService=new a.TransitionService(this),this.globals=new h.Globals(this.transitionService),this.urlMatcherFactory=new n.UrlMatcherFactory,this.urlRouterProvider=new r.UrlRouterProvider(this.urlMatcherFactory,this.globals.params),this.urlRouter=new o.UrlRouter(this.urlRouterProvider),this.stateRegistry=new u.StateRegistry(this.urlMatcherFactory,this.urlRouterProvider),this.stateProvider=new s.StateProvider(this.stateRegistry),this.stateService=new c.StateService(this),this.viewService.rootContext(this.stateRegistry.root()),this.globals.$current=this.stateRegistry.root(),this.globals.current=this.globals.$current.self}}();e.UIRouter=d}
1,function(t,e,i){"use strict";var n=i(3),r=i(4),s=i(28),o=i(23),a=i(22),l=i(25);var u=function(){function t(){n.extend(this,{UrlMatcher:s.UrlMatcher,Param:a.Param})}return t.prototype.caseInsensitive=function(t){return o.matcherConfig.caseInsensitive(t)},t.prototype.strictMode=function(t){return o.matcherConfig.strictMode(t)},t.prototype.defaultSquashPolicy=function(t){return o.matcherConfig.defaultSquashPolicy(t)},t.prototype.compile=function(t,e){return new s.UrlMatcher(t,n.extend({strict:o.matcherConfig.strictMode(),caseInsensitive:o.matcherConfig.caseInsensitive()},e))},t.prototype.isMatcher=function(t){if(!r.isObject(t))return!1;var e=!0;return n.forEach(s.UrlMatcher.prototype,function(i,n){r.isFunction(i)&&(e=e&&r.isDefined(t[n])&&r.isFunction(t[n]))}),e},t.prototype.type=function(t,e,i){var n=l.paramTypes.type(t,e,i);return r.isDefined(e)?this:n},t.prototype.$get=function(){return l.paramTypes.enqueue=!1,l.paramTypes._flushTypeQueue(),this},t}();e.UrlMatcherFactory=u},function(t,e,i){"use strict";var n=i(3),r=i(5),s=i(4),o=i(22),a=i(25),l=i(4),u=i(22),c=i(3),h=i(3);function d(t,e){var i=["",""],n=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return n;switch(e.squash){case!1:i=["(",")"+(e.isOptional?"?":"")];break;case!0:n=n.replace(/\/$/,""),i=["(?:/(",")|/)?"];break;default:i=["("+e.squash+"|",")?"]}return n+i[0]+e.type.pattern.source+i[1]}var f=function(){function t(e,i){var s=this;this.config=i,this._cache={path:[],pattern:null},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.pattern=e,this.config=n.defaults(this.config,{params:{},strict:!0,caseInsensitive:!1,paramMap:n.identity});for(var l,u,c,h=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,f=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,p=0,m=[],g=function(i){if(!t.nameValidator.test(i))throw new Error("Invalid parameter name '"+i+"' in pattern '"+e+"'");if(n.find(s._params,r.propEq("id",i)))throw new Error("Duplicate parameter name '"+i+"' in pattern '"+e+"'")},v=function(t,i){var r=t[2]||t[3],o=i?t[4]:t[4]||("*"===t[1]?".*":null);return{id:r,regexp:o,cfg:s.config.params[r],segment:e.substring(p,t.index),type:o?a.paramTypes.type(o||"string")||n.inherit(a.paramTypes.type("string"),{pattern:new RegExp(o,s.config.caseInsensitive?"i":void 0)}):null}};(l=h.exec(e))&&!((u=v(l,!1)).segment.indexOf("?")>=0);)g(u.id),this._params.push(o.Param.fromPath(u.id,u.type,this.config.paramMap(u.cfg,!1))),this._segments.push(u.segment),m.push([u.segment,n.tail(this._params)]),p=h.lastIndex;var _=(c=e.substring(p)).indexOf("?");if(_>=0){var y=c.substring(_);if(c=c.substring(0,_),y.length>0)for(p=0;l=f.exec(y);)g((u=v(l,!0)).id),this._params.push(o.Param.fromSearch(u.id,u.type,this.config.paramMap(u.cfg,!0))),p=h.lastIndex}this._segments.push(c),n.extend(this,{_compiled:m.map(function(t){return d.apply(null,t)}).concat(d(c)),prefix:this._segments[0]}),Object.freeze(this)}return t.prototype.append=function(t){return this._children.push(t),n.forEach(t._cache,function(e,i){return t._cache[i]=s.isArray(e)?[]:null}),t._cache.path=this._cache.path.concat(this),t},t.prototype.isRoot=function(){return 0===this._cache.path.length},t.prototype.toString=function(){return this.pattern},t.prototype.exec=function(t,e,i,s){var o=this;void 0===e&&(e={}),void 0===s&&(s={});var a,u,c,h=(a=this._cache,u="pattern",c=function(){return new RegExp(["^",n.unnest(o._cache.path.concat(o).map(r.prop("_compiled"))).join(""),!1===o.config.strict?"/?":"","$"].join(""),o.config.caseInsensitive?"i":void 0)},a[u]=a[u]||c()).exec(t);if(!h)return null;var d,f,p,m=this.parameters(),g=m.filter(function(t){return!t.isSearch()}),v=m.filter(function(t){return t.isSearch()}),_=this._cache.path.concat(this).map(function(t){return t._segments.length-1}).reduce(function(t,e){return t+e}),y={};if(_!==h.length-1)throw new Error("Unbalanced capture group in route '"+this.pattern+"'");for(var b=0;b<_;b++){for(var w=g[b],x=h[b+1],C=0;C<w.replace.length;C++)w.replace[C].from===x&&(x=w.replace[C].to);x&&!0===w.array&&(void 0,void 0,void 0,f=(d=function(t){return t.split("").reverse().join("")})(x).split(/-(?!\\)/),p=n.map(f,d),x=n.map(p,function(t){return t.replace(/\\-/g,"-")}
1).reverse()),l.isDefined(x)&&(x=w.type.decode(x)),y[w.id]=w.value(x)}return n.forEach(v,function(t){for(var i=e[t.id],n=0;n<t.replace.length;n++)t.replace[n].from===i&&(i=t.replace[n].to);l.isDefined(i)&&(i=t.type.decode(i)),y[t.id]=t.value(i)}),i&&(y["#"]=i),y},t.prototype.parameters=function(t){return void 0===t&&(t={}),!1===t.inherit?this._params:n.unnest(this._cache.path.concat(this).map(r.prop("_params")))},t.prototype.parameter=function(t,e){void 0===e&&(e={});var i=n.tail(this._cache.path);return n.find(this._params,r.propEq("id",t))||!1!==e.inherit&&i&&i.parameter(t)||null},t.prototype.validates=function(t){var e=this;return n.pairs(t||{}).map(function(t){var i=t[0],n=t[1];return function(t,e){return!t||t.validates(e)}(e.parameter(i),n)}).reduce(n.allTrueR,!0)},t.prototype.format=function(e){if(void 0===e&&(e={}),!this.validates(e))return null;var i=this._cache.path.slice().concat(this),r=i.map(t.pathSegmentsAndParams).reduce(c.unnestR,[]),o=i.map(t.queryParams).reduce(c.unnestR,[]);function a(t){var i=t.value(e[t.id]),n=t.isDefaultValue(i);return{param:t,value:i,isDefaultValue:n,squash:!!n&&t.squash,encoded:t.type.encode(i)}}var l=r.reduce(function(e,i){if(s.isString(i))return e+i;var r=a(i),o=r.squash,l=r.encoded,u=r.param;return!0===o?e.match(/\/$/)?e.slice(0,-1):e:s.isString(o)?e+o:!1!==o?e:null==l?e:s.isArray(l)?e+n.map(l,t.encodeDashes).join("-"):u.type.raw?e+l:e+encodeURIComponent(l)},""),u=o.map(function(t){var e=a(t),i=e.squash,r=e.encoded,o=e.isDefaultValue;if(!(null==r||o&&!1!==i)&&(s.isArray(r)||(r=[r]),0!==r.length))return t.type.raw||(r=n.map(r,encodeURIComponent)),r.map(function(e){return t.id+"="+e})}).filter(n.identity).reduce(c.unnestR,[]).join("&");return l+(u?"?"+u:"")+(e["#"]?"#"+e["#"]:"")},t.encodeDashes=function(t){return encodeURIComponent(t).replace(/-/g,function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()})},t.pathSegmentsAndParams=function(t){var e=t._segments,i=t._params.filter(function(t){return t.location===u.DefType.PATH});return h.arrayTuples(e,i.concat(void 0)).reduce(c.unnestR,[]).filter(function(t){return""!==t&&l.isDefined(t)})},t.queryParams=function(t){return t._params.filter(function(t){return t.location===u.DefType.SEARCH})},t.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/,t}();e.UrlMatcher=f},function(t,e,i){"use strict";var n=i(3),r=i(4),s=i(6),o=s.services.location;function a(t,e,i,n){if(!n)return!1;var s=t.invoke(i,i,{$match:n,$stateParams:e});return!r.isDefined(s)||s}function l(t,e,i){if(!i||!i.defaultPrevented){var n,a=t.length;for(n=0;n<a;n++)if(l(t[n]))return;e&&l(e)}function l(t){var e=t(s.services.$injector,o);return!!e&&(r.isString(e)&&(o.replace(),o.url(e)),!0)}}var u=function(){function t(t,e){this.rules=[],this.interceptDeferred=!1,this.$urlMatcherFactory=t,this.$stateParams=e}return t.prototype.rule=function(t){if(!r.isFunction(t))throw new Error("'rule' must be a function");return this.rules.push(t),this},t.prototype.otherwise=function(t){if(!r.isFunction(t)&&!r.isString(t))throw new Error("'rule' must be a string or function");return this.otherwiseFn=r.isString(t)?function(){return t}:t,this},t.prototype.when=function(t,e){var i,l=this.$urlMatcherFactory,u=this.$stateParams,c=r.isString(e);if(r.isString(t)&&(t=l.compile(t)),!c&&!r.isFunction(e)&&!r.isArray(e))throw new Error("invalid 'handler' in when()");var h={matcher:function(t,e){return c&&(i=l.compile(e),e=["$match",i.format.bind(i)]),n.extend(function(){return a(s.services.$injector,u,e,t.exec(o.path(),o.search(),o.hash()))},{prefix:r.isString(t.prefix)?t.prefix:""})},regex:function(t,e){if(t.global||t.sticky)throw new Error("when() RegExp must not be global or sticky");return c&&(i=e,e=["$match",function(t){return e=t,i.replace(/\$(\$|\d{1,2})/,function(t,i){return e["$"===i?0:Number(i)]});var e}]),n.extend(function(){return a(s.services.$injector,u,e,t.exec(o.path()))},{prefix:(r=t,l=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(r.source),null!=l?l[1].replace(/\\(.)/g,"$1"):"")});var r,l}},d={matcher:l.isMatcher(t),regex:t instanceof RegExp};for(var f in d)if(d[f])return this.rule(h[f](t,e));throw new Error("invalid 'what' in when()")},t.prototype.deferIntercept=function(t){void 0===t&&(t=!0),this.interceptDeferred=t},t}();e.UrlRouterProvider=u;var c=function(){function t(e){this.urlRouterProvider=e,n.bindFunctions(t.prototype,this,this)}return t.prototype.sync=function(){l(this.urlRouterProvider.rules,this.urlRouterProvider.otherwiseFn)},t.prototype.listen=function(){var t=this;return this.listener=this.listener||o.onChange(function(e){return l(t.urlRouterProvider.rules,t.urlRouterProvider.otherwiseFn,e)})},t.prototype.update=function(t){t?this.location=o.url():o.url()!==this.location&&(o.url(this.location),o.replace())}
1,t.prototype.push=function(t,e,i){o.url(t.format(e||{})),i&&i.replace&&o.replace()},t.prototype.href=function(t,e,i){if(!t.validates(e))return null;var n=t.format(e);i=i||{absolute:!1};var r=s.services.locationConfig,o=r.html5Mode();if(o||null===n||(n="#"+r.hashPrefix()+n),n=function(t,e,i){var n=s.services.locationConfig.baseHref();return"/"===n?t:e?n.slice(0,-1)+t:i?n.slice(1)+t:t}(n,o,i.absolute),!i.absolute||!n)return n;var a=!o&&n?"/":"",l=r.port();return l=80===l||443===l?"":":"+l,[r.protocol(),"://",r.host(),l,a,n].join("")},t}();e.UrlRouter=c},function(t,e,i){"use strict";var n=i(4),r=i(3),s=function(){function t(e){this.stateRegistry=e,this.invalidCallbacks=[],r.bindFunctions(t.prototype,this,this)}return t.prototype.decorator=function(t,e){return this.stateRegistry.decorator(t,e)||this},t.prototype.state=function(t,e){return n.isObject(t)?e=t:e.name=t,this.stateRegistry.register(e),this},t.prototype.onInvalid=function(t){this.invalidCallbacks.push(t)},t}();e.StateProvider=s},function(t,e,i){"use strict";var n=i(11),r=i(15),s=i(32),o=i(33),a=i(34),l=i(35),u=i(36),c=i(5);e.defaultTransOpts={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,custom:{},current:function(){return null}};var h=function(){function t(t){this._router=t,this.$view=t.viewService,r.HookRegistry.mixin(new r.HookRegistry,this),this._deregisterHookFns={},this.registerTransitionHooks()}return t.prototype.registerTransitionHooks=function(){var t=this._deregisterHookFns;t.redirectTo=this.onStart({to:function(t){return!!t.redirectTo}},l.redirectToHook),t.onExit=this.onExit({exiting:function(t){return!!t.onExit}},u.onExitHook),t.onRetain=this.onRetain({retained:function(t){return!!t.onRetain}},u.onRetainHook),t.onEnter=this.onEnter({entering:function(t){return!!t.onEnter}},u.onEnterHook),t.eagerResolve=this.onStart({},s.eagerResolvePath,{priority:1e3}),t.lazyResolve=this.onEnter({entering:c.val(!0)},s.lazyResolveState,{priority:1e3}),t.loadViews=this.onStart({},o.loadEnteringViews),t.activateViews=this.onSuccess({},o.activateViews),t.updateUrl=this.onSuccess({},a.updateUrl,{priority:9999})},t.prototype.onBefore=function(t,e,i){throw""},t.prototype.onStart=function(t,e,i){throw""},t.prototype.onExit=function(t,e,i){throw""},t.prototype.onRetain=function(t,e,i){throw""},t.prototype.onEnter=function(t,e,i){throw""},t.prototype.onFinish=function(t,e,i){throw""},t.prototype.onSuccess=function(t,e,i){throw""},t.prototype.onError=function(t,e,i){throw""},t.prototype.create=function(t,e){return new n.Transition(t,e,this._router)},t}();e.TransitionService=h},function(t,e,i){"use strict";var n=i(3),r=i(17);e.eagerResolvePath=function(t){return new r.ResolveContext(t.treeChanges().to).resolvePath("EAGER",t).then(n.noop)},e.lazyResolveState=function(t,e){return new r.ResolveContext(t.treeChanges().to).subContext(e).resolvePath("LAZY",t).then(n.noop)}},function(t,e,i){"use strict";var n=i(3),r=i(6);e.loadEnteringViews=function(t){var e=t.views("entering");if(e.length)return r.services.$q.all(e.map(function(t){return t.load()})).then(n.noop)},e.activateViews=function(t){var e=t.views("entering"),i=t.views("exiting");if(e.length||i.length){var n=t.router.viewService;i.forEach(function(t){return n.deactivateViewConfig(t)}),e.forEach(function(t){return n.activateViewConfig(t)}),n.sync()}}},function(t,e){"use strict";e.updateUrl=function(t){var e=t.options(),i=t.router.stateService,n=t.router.urlRouter;if(e.location&&i.$current.navigable){var r={replace:"replace"===e.location};n.push(i.$current.navigable.url,i.params,r)}n.update(!0)}},function(t,e,i){"use strict";var n=i(4),r=i(6),s=i(14);e.redirectToHook=function(t){var e=t.to().redirectTo;if(e)return n.isFunction(e)?r.services.$q.when(e(t)).then(i):i(e);function i(e){var i=t.router.stateService;return e instanceof s.TargetState?e:n.isString(e)?i.target(e,t.params(),t.options()):e.state||e.params?i.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}}},function(t,e){"use strict";function i(t){return function(e,i){return i[t](e,i)}}e.onExitHook=i("onExit"),e.onRetainHook=i("onRetain"),e.onEnterHook=i("onEnter")}
1,function(t,e,i){"use strict";var n=i(3),r=i(5),s=i(4),o=i(12),a=function(){function t(){var t=this;this.uiViews=[],this.viewConfigs=[],this._viewConfigFactories={},this.sync=function(){var e=t.uiViews.map(function(t){return[t.fqn,t]}).reduce(n.applyPairs,{});function i(t){for(var e=t.viewDecl.$context,i=0;++i&&e.parent;)e=e.parent;return i}var s=r.curry(function(t,e,i,n){return e*(t(i)-t(n))});t.uiViews.sort(s(function(t){return t.fqn.split(".").length},1)).map(function(r){var o=t.viewConfigs.filter(function(t){return function(i){if(t.$type!==i.viewDecl.$type)return!1;var r=i.viewDecl,s=r.$uiViewName.split("."),o=t.fqn.split(".");if(!n.equals(s,o.slice(0-s.length)))return!1;var a=1-s.length||void 0,l=o.slice(0,a).join("."),u=e[l].creationContext;return r.$uiViewContextAnchor===(u&&u.name)}}(r));return o.length>1&&o.sort(s(i,-1)),[r,o[0]]}).forEach(function(e){var i=e[0],n=e[1];-1!==t.uiViews.indexOf(i)&&i.configUpdated(n)})}}return t.prototype.rootContext=function(t){return this._rootContext=t||this._rootContext},t.prototype.viewConfigFactory=function(t,e){this._viewConfigFactories[t]=e},t.prototype.createViewConfig=function(t,e){var i=this._viewConfigFactories[e.$type];if(!i)throw new Error("ViewService: No view config factory registered for type "+e.$type);var n=i(t,e);return s.isArray(n)?n:[n]},t.prototype.deactivateViewConfig=function(t){o.trace.traceViewServiceEvent("<- Removing",t),n.removeFrom(this.viewConfigs,t)},t.prototype.activateViewConfig=function(t){o.trace.traceViewServiceEvent("-> Registering",t),this.viewConfigs.push(t)},t.prototype.registerUIView=function(t){o.trace.traceViewServiceUIViewEvent("-> Registering",t);var e=this.uiViews;return e.filter(function(e){return e.fqn===t.fqn}).length&&o.trace.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",t),e.push(t),this.sync(),function(){e.indexOf(t)<=0?o.trace.traceViewServiceUIViewEvent("Tried removing non-registered uiView",t):(o.trace.traceViewServiceUIViewEvent("<- Deregistering",t),n.removeFrom(e)(t))}},t.prototype.available=function(){return this.uiViews.map(r.prop("fqn"))},t.prototype.active=function(){return this.uiViews.filter(r.prop("$config")).map(r.prop("name"))},t.normalizeUIViewTarget=function(t,e){void 0===e&&(e="");var i=e.split("@"),n=i[0]||"$default",r=s.isString(i[1])?i[1]:"^",o=/^(\^(?:\.\^)*)\.(.*$)/.exec(n);o&&(r=o[1],n=o[2]),"!"===n.charAt(0)&&(n=n.substr(1),r="");/^(\^(?:\.\^)*)$/.exec(r)&&(r=r.split(".").reduce(function(t,e){return t.parent},t).name);return{uiViewName:n,uiViewContextAnchor:r}},t}();e.ViewService=a},function(t,e,i){"use strict";var n=i(39),r=i(40),s=i(41),o=function(){function t(t,e){this.states={},this.matcher=new n.StateMatcher(this.states),this.builder=new r.StateBuilder(this.matcher,t),this.stateQueue=new s.StateQueueManager(this.states,this.builder,e);(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null}return t.prototype.root=function(){return this._root},t.prototype.register=function(t){return this.stateQueue.register(t)},t.prototype.get=function(t,e){var i=this;if(0===arguments.length)return Object.keys(this.states).map(function(t){return i.states[t].self});var n=this.matcher.find(t,e);return n&&n.self||null},t.prototype.decorator=function(t,e){return this.builder.builder(t,e)},t}();e.StateRegistry=o},function(t,e,i){"use strict";var n=i(4),r=function(){function t(t){this._states=t}return t.prototype.isRelative=function(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")},t.prototype.find=function(t,e){if(t||""===t){var i=n.isString(t),r=i?t:t.name;this.isRelative(r)&&(r=this.resolvePath(r,e));var s=this._states[r];return!s||!i&&(i||s!==t&&s.self!==t)?void 0:s}},t.prototype.resolvePath=function(t,e){if(!e)throw new Error("No reference point given for path '"+t+"'");for(var i=this.find(e),n=t.split("."),r=0,s=n.length,o=i;r<s;r++)if(""!==n[r]||0!==r){if("^"!==n[r])break;if(!o.parent)throw new Error("Path '"+t+"' not valid for state '"+i.name+"'");o=o.parent}else o=i;var a=n.slice(r).join(".");return o.name+(o.name&&a?".":"")+a},t}();e.StateMatcher=r}
1,function(t,e,i){"use strict";var n=i(3),r=i(4),s=i(9),o=i(5),a=i(22),l=i(19),u=i(6);function c(t){return t.self.$$state=function(){return t},t.self}function h(t){return t.parent&&t.parent.data&&(t.data=t.self.data=n.inherit(t.parent.data,t.data)),t.data}var d=function(t,e){return function(i){var s=i,o=function(t){if(!r.isString(t))return!1;var e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(s.url),a=i.parent,l=o?t.compile(o.val,{params:i.params||{},paramMap:function(t,e){return!1===s.reloadOnSearch&&e&&(t=n.extend(t||{},{dynamic:!0})),t}}):s.url;if(!l)return null;if(!t.isMatcher(l))throw new Error("Invalid url '"+l+"' in state '"+i+"'");return o&&o.root?l:(a&&a.navigable||e()).url.append(l)}},f=function(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}};function p(t){var e=t.url&&t.url.parameters({inherit:!1})||[],i=n.values(n.map(n.omit(t.params||{},e.map(o.prop("id"))),function(t,e){return a.Param.fromConfig(e,null,t)}));return e.concat(i).map(function(t){return[t.id,t]}).reduce(n.applyPairs,{})}function m(t){return t.parent?t.parent.path.concat(t):[t]}function g(t){var e=t.parent?n.extend({},t.parent.includes):{};return e[t.name]=!0,e}function v(t){var e,i=function(t){return t.provide||t.token},a=o.pattern([[o.prop("resolveFn"),function(t){return new l.Resolvable(i(t),t.resolveFn,t.deps,t.policy)}],[o.prop("useFactory"),function(t){return new l.Resolvable(i(t),t.useFactory,t.deps||t.dependencies,t.policy)}],[o.prop("useClass"),function(t){return new l.Resolvable(i(t),function(){return new t.useClass},[],t.policy)}],[o.prop("useValue"),function(t){return new l.Resolvable(i(t),function(){return t.useValue},[],t.policy,t.useValue)}],[o.prop("useExisting"),function(t){return new l.Resolvable(i(t),function(t){return t},[t.useExisting],t.policy)}]]),c=o.pattern([[o.pipe(o.prop("val"),r.isString),function(t){return new l.Resolvable(t.token,function(t){return t},[t.val],t.policy)}],[o.pipe(o.prop("val"),r.isArray),function(t){return new l.Resolvable(t.token,n.tail(t.val),t.val.slice(0,-1),t.policy)}],[o.pipe(o.prop("val"),r.isFunction),function(t){return new l.Resolvable(t.token,t.val,(e=t.val).$inject||u.services.$injector.annotate(e,u.services.$injector.strictDi),t.policy);var e}]]),h=o.pattern([[o.is(l.Resolvable),function(t){return t}],[function(t){return!(!t.token||!t.resolveFn)},a],[function(t){return!(!t.provide&&!t.token||!(t.useValue||t.useFactory||t.useExisting||t.useClass))},a],[function(t){return!!(t&&t.val&&(r.isString(t.val)||r.isArray(t.val)||r.isFunction(t.val)))},c],[o.val(!0),function(t){throw new Error("Invalid resolve value: "+s.stringify(t))}]]),d=t.resolve;return(r.isArray(d)?d:(e=d,Object.keys(e||{}).map(function(t){return{token:t,val:e[t],deps:void 0}}))).map(h)}e.resolvablesBuilder=v;var _=function(){function t(t,e){this.matcher=t;var i=this,n=function(){return t.find("")},r=function(t){return""===t.name};this.builders={self:[c],parent:[function(e){return r(e)?null:t.find(i.parentName(e))||n()}],data:[h],url:[d(e,n)],navigable:[f(r)],params:[p],views:[],path:[m],includes:[g],resolvables:[v]}}return t.prototype.builder=function(t,e){var i=this.builders,n=i[t]||[];return r.isString(t)&&!r.isDefined(e)?n.length>1?n:n[0]:r.isString(t)&&r.isFunction(e)?(i[t]=n,i[t].push(e),function(){return i[t].splice(i[t].indexOf(e,1))&&null}):void 0},t.prototype.build=function(t){var e=this.matcher,i=this.builders,r=this.parentName(t);if(r&&!e.find(r))return null;for(var s in i)if(i.hasOwnProperty(s)){var o=i[s].reduce(function(t,e){return function(i){return e(i,t)}},n.noop);t[s]=o(t)}return t},t.prototype.parentName=function(t){var e=t.name||"";return-1!==e.indexOf(".")?e.substring(0,e.lastIndexOf(".")):t.parent?r.isString(t.parent)?t.parent:t.parent.name:""},t.prototype.name=function(t){var e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;var i=r.isString(t.parent)?t.parent:t.parent.name;return i?i+"."+e:e},t}();e.StateBuilder=_},function(t,e,i){"use strict";var n=i(3),r=i(4),s=i(42),o=function(){function t(t,e,i){this.states=t,this.builder=e,this.$urlRouterProvider=i,this.queue=[]}return t.prototype.register=function(t){var e=this.states,i=this.queue,o=this.$state,a=n.inherit(new s.State,n.extend({},t,{self:t,resolve:t.resolve||[],toString:function(){return t.name}}));if(!r.isString(a.name))throw new Error("State must have a valid name");if(e.hasOwnProperty(a.name)||-1!==n.pluck(i,"name").indexOf(a.name))throw new Error("State '"+a.name+"' is already defined");return i.push(a),this.$state&&this.flush(o),a},t.prototype.flush=function(t){for(var e,i,n,r=this.queue,s=this.states,o=this.builder,a=[],l={};r.length>0;)if(i=r.shift(),e=o.build(i),n=a.indexOf(i),e){if(s.hasOwnProperty(i.name))throw new Error("State '"+name+"' is already defined");s[i.name]=i,this.attachRoute(t,i),n>=0&&a.splice(n,1)}else{var u=l[i.name];if(l[i.name]=r.length,n>=0&&u===r.length)return s;n<0&&a.push(i),r.push(i)}return s},t.prototype.autoFlush=function(t){this.$state=t,this.flush(t)},t.prototype.attachRoute=function(t,e){var i=this.$urlRouterProvider;!e[n.abstractKey]&&e.url&&i.when(e.url,["$match","$stateParams",function(i,r){t.$current.navigable===e&&n.equalForKeys(i,r)||t.transitionTo(e,i,{inherit:!0,location:!1})}])},t}();e.StateQueueManager=o}
1,function(t,e,i){"use strict";var n=i(3),r=i(5),s=function(){function t(t){n.extend(this,t)}return t.prototype.is=function(t){return this===t||this.self===t||this.fqn()===t},t.prototype.fqn=function(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;var t=this.parent.fqn();return t?t+"."+this.name:this.name},t.prototype.root=function(){return this.parent&&this.parent.root()||this},t.prototype.parameters=function(t){return((t=n.defaults(t,{inherit:!0})).inherit&&this.parent&&this.parent.parameters()||[]).concat(n.values(this.params))},t.prototype.parameter=function(t,e){return void 0===e&&(e={}),this.url&&this.url.parameter(t,e)||n.find(n.values(this.params),r.propEq("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)},t.prototype.toString=function(){return this.fqn()},t}();e.State=s},function(t,e,i){"use strict";var n=i(3),r=i(4),s=i(8),o=i(6),a=i(20),l=i(21),u=i(31),c=i(10),h=i(14),d=i(22),f=i(7),p=i(3),m=i(3),g=function(){function t(e){this.router=e,this._defaultErrorHandler=function(t){t instanceof Error&&t.stack?console.error(t.stack):t instanceof c.Rejection?(console.error(t),t.detail&&t.detail.stack&&console.error(t.detail.stack)):console.error(t)};var i=["current","$current","params","transition"],n=Object.keys(t.prototype).filter(function(t){return-1===i.indexOf(t)});m.bindFunctions(t.prototype,this,this,n)}return Object.defineProperty(t.prototype,"transition",{get:function(){return this.router.globals.transition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"params",{get:function(){return this.router.globals.params},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this.router.globals.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"$current",{get:function(){return this.router.globals.$current},enumerable:!0,configurable:!0}),t.prototype._handleInvalidTargetState=function(t,e){var i=this,n=this.router.globals,r=function(){return n.transitionHistory.peekTail()},l=r(),u=a.PathFactory.makeTargetState(t),d=new s.Queue([].concat(this.router.stateProvider.invalidCallbacks)),f=o.services.$q,p=o.services.$injector,m=function(t){return f.when(p.invoke(t,null,{$to$:e,$from$:u}))},g=function(t){if(t instanceof h.TargetState){var e=t;return(e=i.target(e.identifier(),e.params(),e.options())).valid()?r()!==l?c.Rejection.superseded().toPromise():i.transitionTo(e.identifier(),e.params(),e.options()):c.Rejection.invalid(e.error()).toPromise()}};return function t(){var i=d.dequeue();return void 0===i?c.Rejection.invalid(e.error()).toPromise():m(i).then(g).then(function(e){return e||t()})}()},t.prototype.reload=function(t){return this.transitionTo(this.current,this.params,{reload:!r.isDefined(t)||t,inherit:!1,notify:!1})},t.prototype.go=function(t,e,i){var r={relative:this.$current,inherit:!0},s=n.defaults(i,r,u.defaultTransOpts);return this.transitionTo(t,e,s)},t.prototype.target=function(t,e,i){if(void 0===i&&(i={}),r.isObject(i.reload)&&!i.reload.name)throw new Error("Invalid reload state object");var n=this.router.stateRegistry;if(i.reloadState=!0===i.reload?n.root():n.matcher.find(i.reload,i.relative),i.reload&&!i.reloadState)throw new Error("No such reload state '"+(r.isString(i.reload)?i.reload:i.reload.name)+"'");var s=n.matcher.find(t,i.relative);return new h.TargetState(t,s,e,i)},t.prototype.transitionTo=function(t,e,i){var r=this;void 0===e&&(e={}),void 0===i&&(i={});var s=this.router,a=s.globals,d=a.transitionHistory;i=n.defaults(i,u.defaultTransOpts),i=n.extend(i,{current:d.peekTail.bind(d)});var f=this.target(t,e,i),p=a.successfulTransitions.peekTail(),m=p?p.treeChanges().to:[new l.PathNode(r.router.stateRegistry.root())];if(!f.exists())return this._handleInvalidTargetState(m,f);if(!f.valid())return n.silentRejection(f.error());var g=this.router.transitionService.create(m,f),v=g.run().catch(function t(e){return function(i){if(i instanceof c.Rejection){if(i.type===c.RejectType.IGNORED)return s.urlRouter.update(),a.current;if(i.type===c.RejectType.SUPERSEDED&&i.redirected&&i.detail instanceof h.TargetState){var n=e.redirect(i.detail);return n.run().catch(t(n))}
1if(i.type===c.RejectType.ABORTED)return s.urlRouter.update(),o.services.$q.reject(i)}return r.defaultErrorHandler()(i),o.services.$q.reject(i)}}(g));return n.silenceUncaughtInPromise(v),n.extend(v,{transition:g})},t.prototype.is=function(t,e,i){i=n.defaults(i,{relative:this.$current});var s=this.router.stateRegistry.matcher.find(t,i.relative);if(r.isDefined(s))return this.$current===s&&(!r.isDefined(e)||null===e||d.Param.equals(s.parameters(),this.params,e))},t.prototype.includes=function(t,e,i){i=n.defaults(i,{relative:this.$current});var s=r.isString(t)&&f.Glob.fromString(t);if(s){if(!s.matches(this.$current.name))return!1;t=this.$current.name}var o=this.router.stateRegistry.matcher.find(t,i.relative),a=this.$current.includes;if(r.isDefined(o))return!!r.isDefined(a[o.name])&&(!e||p.equalForKeys(d.Param.values(o.parameters(),e),this.params,Object.keys(e)))},t.prototype.href=function(t,e,i){var s={lossy:!0,inherit:!0,absolute:!1,relative:this.$current};i=n.defaults(i,s);var o=this.router.stateRegistry.matcher.find(t,i.relative);if(!r.isDefined(o))return null;i.inherit&&(e=this.params.$inherit(e||{},this.$current,o));var a=o&&i.lossy?o.navigable:o;return a&&void 0!==a.url&&null!==a.url?this.router.urlRouter.href(a.url,d.Param.values(o.parameters(),e),{absolute:i.absolute}):null},t.prototype.defaultErrorHandler=function(t){return this._defaultErrorHandler=t||this._defaultErrorHandler},t.prototype.get=function(t,e){var i=this.router.stateRegistry;return 0===arguments.length?i.get():i.get(t,e||this.$current)},t}();e.StateService=g},function(t,e,i){"use strict";var n=i(45),r=i(8),s=i(3),o=function(){return function(t){var e=this;this.params=new n.StateParams,this.transitionHistory=new r.Queue([],1),this.successfulTransitions=new r.Queue([],1),t.onBefore({},function(t){e.transition=t,e.transitionHistory.enqueue(t),t.onSuccess({},function(){e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,s.copy(t.params(),e.params)},{priority:1e4});var i=function(){e.transition===t&&(e.transition=null)};t.promise.then(i,i)})}}();e.Globals=o},function(t,e,i){"use strict";var n=i(3),r=function(){function t(t){void 0===t&&(t={}),n.extend(this,t)}return t.prototype.$inherit=function(t,e,i){var r,s=n.ancestors(e,i),o={},a=[];for(var l in s)if(s[l]&&s[l].params&&(r=Object.keys(s[l].params)).length)for(var u in r)a.indexOf(r[u])>=0||(a.push(r[u]),o[r[u]]=this[r[u]]);return n.extend({},o,t)},t}();e.StateParams=r},function(t,e,i){"use strict";function n(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}n(i(22)),n(i(25)),n(i(45)),n(i(24))},function(t,e,i){"use strict";function n(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}n(i(21)),n(i(20))},function(t,e,i){"use strict";function n(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}n(i(18)),n(i(19)),n(i(17))},function(t,e,i){"use strict";function n(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}n(i(30)),n(i(40)),n(i(42)),n(i(39)),n(i(41)),n(i(38)),n(i(43)),n(i(14))},function(t,e,i){"use strict";function n(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}n(i(16)),n(i(15)),n(i(10)),n(i(11)),n(i(13)),n(i(31))},function(t,e,i){"use strict";function n(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}n(i(28)),n(i(23)),n(i(27)),n(i(29))},function(t,e,i){"use strict";!function(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}(i(37))},function(t,e,i){"use strict";var n=i(26),r=i(6),s=i(3),o=i(5),a=i(4),l=i(54),u=i(12),c=i(55),h=i(56),d=i(57),f=angular.module("ui.router.angular1",[]);function p(t,e){r.services.$injector=t,r.services.$q=e}angular.module("ui.router.util",["ng","ui.router.init"]),angular.module("ui.router.router",["ui.router.util"]),angular.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),angular.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),angular.module("ui.router.compat",["ui.router"]),e.annotateController=function(t){var e=r.services.$injector,i=e.get("$controller"),n=e.instantiate;try{var s;return e.instantiate=function(t){e.instantiate=n,s=e.annotate(t)},i(t,{$scope:{}}),s}finally{e.instantiate=n}},p.$inject=["$injector","$q"],f.run(p);var m=null;function g(t){(m=new n.UIRouter).stateRegistry.decorator("views",c.ng1ViewsBuilder),m.stateRegistry.decorator("onExit",d.getStateHookBuilder("onExit")),m.stateRegistry.decorator("onRetain",d.getStateHookBuilder("onRetain")),m.stateRegistry.decorator("onEnter",d.getStateHookBuilder("onEnter")),m.viewService.viewConfigFactory("ng1",c.ng1ViewConfigFactory),s.bindFunctions(t,r.services.locationConfig,t,["hashPrefix"]);var e=[];function i(i,n,l,u,c,h){return u.$on("$locationChangeSuccess",function(t){return e.forEach(function(e){return e(t)})}),r.services.locationConfig.html5Mode=function(){var e=t.html5Mode();return(e=a.isObject(e)?e.enabled:e)&&l.history},r.services.template.get=function(t){return c.get(t,{cache:h,headers:{Accept:"text/html"}}).then(o.prop("data"))},s.bindFunctions(i,r.services.location,i,["replace","url","path","search","hash"]),s.bindFunctions(i,r.services.locationConfig,i,["port","protocol","host"]),s.bindFunctions(n,r.services.locationConfig,n,["baseHref"]),m}r.services.location.onChange=function(t){return e.push(t),function(){return s.removeFrom(e)(t)}},this.$get=i,i.$inject=["$location","$browser","$sniffer","$rootScope","$http","$templateCache"]}
1function v(t){t.$watch(function(){u.trace.approximateDigests++})}g.$inject=["$locationProvider"],angular.module("ui.router.init",[]).provider("ng1UIRouter",g),angular.module("ui.router.init").run(["ng1UIRouter",function(t){}]),angular.module("ui.router.util").provider("$urlMatcherFactory",["ng1UIRouterProvider",function(){return m.urlMatcherFactory}]),angular.module("ui.router.util").run(["$urlMatcherFactory",function(t){}]),angular.module("ui.router.router").provider("$urlRouter",["ng1UIRouterProvider",function(){return m.urlRouterProvider.$get=function(){return m.urlRouter.update(!0),this.interceptDeferred||m.urlRouter.listen(),m.urlRouter},m.urlRouterProvider}]),angular.module("ui.router.router").run(["$urlRouter",function(t){}]),angular.module("ui.router.state").provider("$state",["ng1UIRouterProvider",function(){return m.stateProvider.$get=function(){return m.stateRegistry.stateQueue.autoFlush(m.stateService),m.stateService},m.stateProvider}]),angular.module("ui.router.state").run(["$state",function(t){}]),angular.module("ui.router.state").factory("$stateParams",["ng1UIRouter",function(t){return t.globals.params}]),angular.module("ui.router.state").provider("$transitions",["ng1UIRouterProvider",function(){return m.transitionService.$get=function(){return m.transitionService},m.transitionService}]),angular.module("ui.router.util").factory("$templateFactory",["ng1UIRouter",function(){return new h.TemplateFactory}]),angular.module("ui.router").factory("$view",function(){return m.viewService}),angular.module("ui.router").factory("$resolve",l.resolveFactory),angular.module("ui.router").service("$trace",function(){return u.trace}),v.$inject=["$rootScope"],e.watchDigests=v,angular.module("ui.router").run(v),e.getLocals=function(t){return t.getTokens().filter(a.isString).map(function(e){return[e,t.getResolvable(e).data]}).reduce(s.applyPairs,{})}},function(t,e,i){"use strict";var n=i(42),r=i(21),s=i(17),o=i(3),a=i(40),l={resolve:function(t,e,i){void 0===e&&(e={});
1var l=new r.PathNode(new n.State({params:{},resolvables:[]})),u=new r.PathNode(new n.State({params:{},resolvables:[]})),c=new s.ResolveContext([l,u]);c.addResolvables(a.resolvablesBuilder({resolve:t}),u.state);var h=function(t){var i=function(t){return a.resolvablesBuilder({resolve:o.map(t,function(t){return function(){return t}})})};c.addResolvables(i(t),l.state),c.addResolvables(i(e),u.state);var n=function(t,e){return t[e.token]=e.value,t};return c.resolvePath().then(function(t){return t.reduce(n,{})})};return i?i.then(h):h({})}};e.resolveFactory=function(){return l}},function(t,e,i){"use strict";var n=i(3),r=i(9),s=i(37),o=i(4),a=i(6),l=i(12),u=i(56),c=i(17),h=i(19);e.ng1ViewConfigFactory=function(t,e){return new m(t,e)},e.ng1ViewsBuilder=function(t){var e=["component","bindings"],i=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),a=e.concat(i),l={},u=t.views||{$default:n.pick(t,a)};return n.forEach(u,function(a,u){if(u=u||"$default",o.isString(a)&&(a={component:a}),Object.keys(a).length){if(a.component){if(i.map(function(t){return o.isDefined(a[t])}).reduce(n.anyTrueR,!1))throw new Error("Cannot combine: "+e.join("|")+" with: "+i.join("|")+" in stateview: 'name@"+t.name+"'");a.templateProvider=["$injector",function(t){var e=angular.version.minor>=3?"::":"",i=function(t,e){var i=t.get(e+"Directive");if(!i||!i.length)throw new Error("Unable to find component named '"+e+"'");return i.map(f).reduce(n.unnestR,[])}(t,a.component).map(function(t){var i,n=r.kebobString(t.name),s=(i=t.name,a.bindings&&a.bindings[i]||i);return"@"===t.type?n+"='{{"+e+"$resolve."+s+"}}'":n+"='"+e+"$resolve."+s+"'"}).join(" "),s=r.kebobString(a.component);return"<"+s+" "+i+"></"+s+">"}]}a.resolveAs=a.resolveAs||"$resolve",a.$type="ng1",a.$context=t,a.$name=u;var c=s.ViewService.normalizeUIViewTarget(a.$context,a.$name);a.$uiViewName=c.uiViewName,a.$uiViewContextAnchor=c.uiViewContextAnchor,l[u]=a}}),l};var d=function(t){return Object.keys(t||{}).map(function(e){return[e,/^([=<@])[?]?(.*)/.exec(t[e])]}).filter(function(t){return o.isDefined(t)&&o.isDefined(t[1])}).map(function(t){return{name:t[1][2]||t[0],type:t[1][1]}})},f=function(t){return o.isObject(t.bindToController)?d(t.bindToController):d(t.scope)};var p=0,m=function(){function t(t,e){this.path=t,this.viewDecl=e,this.$id=p++,this.loaded=!1}return t.prototype.load=function(){var t=this,e=a.services.$q;if(!this.hasTemplate())throw new Error("No template configuration specified for '"+this.viewDecl.$uiViewName+"@"+this.viewDecl.$uiViewContextAnchor+"'");var i=new c.ResolveContext(this.path),r=this.path.reduce(function(t,e){return n.extend(t,e.paramValues)},{}),s={template:e.when(this.getTemplate(r,new u.TemplateFactory,i)),controller:e.when(this.getController(i))};return e.all(s).then(function(e){l.trace.traceViewServiceEvent("Loaded",t),t.controller=e.controller,t.template=e.template})},t.prototype.hasTemplate=function(){return!!(this.viewDecl.template||this.viewDecl.templateUrl||this.viewDecl.templateProvider)},t.prototype.getTemplate=function(t,e,i){return e.fromConfig(this.viewDecl,t,i)},t.prototype.getController=function(t){var e=this.viewDecl.controllerProvider;if(!o.isInjectable(e))return this.viewDecl.controller;var i=a.services.$injector.annotate(e),r=o.isArray(e)?n.tail(e):e;return new h.Resolvable("",r,i).get(t)},t}();e.Ng1ViewConfig=m},function(t,e,i){"use strict";var n=i(4),r=i(6),s=i(3),o=i(19),a=function(){function t(){}return t.prototype.fromConfig=function(t,e,i){return n.isDefined(t.template)?this.fromString(t.template,e):n.isDefined(t.templateUrl)?this.fromUrl(t.templateUrl,e):n.isDefined(t.templateProvider)?this.fromProvider(t.templateProvider,e,i):null},t.prototype.fromString=function(t,e){return n.isFunction(t)?t(e):t},t.prototype.fromUrl=function(t,e){return n.isFunction(t)&&(t=t(e)),null==t?null:r.services.template.get(t)},t.prototype.fromProvider=function(t,e,i){var a=r.services.$injector.annotate(t),l=n.isArray(t)?s.tail(t):t;return new o.Resolvable("",l,a).get(i)},t}();e.TemplateFactory=a}
1,function(t,e,i){"use strict";var n=i(6),r=i(53),s=i(17),o=i(3);e.getStateHookBuilder=function(t){return function(e,i){var a=e[t];return a?function(t,e){var i=new s.ResolveContext(t.treeChanges().to);return n.services.$injector.invoke(a,this,o.extend({$state$:e},r.getLocals(i)))}:void 0}}},function(t,e,i){"use strict";var n=i(3),r=i(4),s=i(5);function o(t,e){var i,n=t.match(/^\s*({[^}]*})\s*$/);if(n&&(t=e+"("+n[1]+")"),!(i=t.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))||4!==i.length)throw new Error("Invalid state ref '"+t+"'");return{state:i[1],paramExpr:i[3]||null}}function a(t){var e=t.parent().inheritedData("$uiView"),i=s.parse("$cfg.path")(e);return i?n.tail(i).state.name:void 0}function l(t){var e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.prop("href")),i="FORM"===t[0].nodeName;return{attr:i?"action":e?"xlink:href":"href",isAnchor:"A"===t.prop("tagName").toUpperCase(),clickable:!i}}function u(t,e,i,n,r){return function(s){var o=s.which||s.button,a=r();if(!(o>1||s.ctrlKey||s.metaKey||s.shiftKey||t.attr("target"))){var l=i(function(){e.go(a.state,a.params,a.options)});s.preventDefault();var u=n.isAnchor&&!a.href?1:0;s.preventDefault=function(){u--<=0&&i.cancel(l)}}}}var c=["$state","$timeout",function(t,e){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(i,r,s,c){var h=o(s.uiSref,t.current.name),d={state:h.state,href:null,params:null,options:null},f=l(r),p=c[1]||c[0],m=null;d.options=n.extend(function(t,e){return{relative:a(t)||e.$current,inherit:!0}}(r,t),s.uiSrefOpts?i.$eval(s.uiSrefOpts):{});var g=function(e){e&&(d.params=angular.copy(e)),d.href=t.href(h.state,d.params,d.options),m&&m(),p&&(m=p.$$addStateInfo(h.state,d.params)),null!==d.href&&s.$set(f.attr,d.href)};h.paramExpr&&(i.$watch(h.paramExpr,function(t){t!==d.params&&g(t)},!0),d.params=angular.copy(i.$eval(h.paramExpr))),g(),f.clickable&&r.bind("click",u(r,t,e,f,function(){return d}))}}}],h=["$state","$timeout",function(t,e){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(i,n,r,s){var o=l(n),a=s[1]||s[0],c="["+[r.uiState,r.uiStateParams||null,r.uiStateOpts||null].map(function(t){return t||"null"}).join(", ")+"]",h={state:null,params:null,options:null,href:null},d=null;function f(e){h.state=e[0],h.params=e[1],h.options=e[2],h.href=t.href(h.state,h.params,h.options),d&&d(),a&&(d=a.$$addStateInfo(h.state,h.params)),h.href&&r.$set(o.attr,h.href)}i.$watch(c,f,!0),f(i.$eval(c)),o.clickable&&n.bind("click",u(n,t,e,o,function(){return h}))}}}],d=["$state","$stateParams","$interpolate","$transitions",function(t,e,i,s){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(e,l,u,c){var h,d,f=[],p={};h=i(u.uiSrefActiveEq||"",!1)(e);try{d=e.$eval(u.uiSrefActive)}catch(t){}function m(i,s,o){var u=t.get(i,a(l)),c=function(t,i){if(!r.isString(t))throw new Error("state should be a string");if(r.isObject(i))return t+n.toJson(i);if(i=e.$eval(i),r.isObject(i))return t+n.toJson(i);return t}(i,s),h={state:u||{name:i},params:s,hash:c};return f.push(h),p[c]=o,function(){var t=f.indexOf(h);-1!==t&&f.splice(t,1)}}function g(){for(var e=0;e<f.length;e++)i=f[e].state,n=f[e].params,t.includes(i.name,n)?v(l,p[f[e].hash]):_(l,p[f[e].hash]),y(f[e].state,f[e].params)?v(l,h):_(l,h);var i,n}function v(t,e){c(function(){t.addClass(e)})}function _(t,e){t.removeClass(e)}function y(e,i){return t.is(e.name,i)}d=d||i(u.uiSrefActive||"",!1)(e),r.isObject(d)&&n.forEach(d,function(i,n){if(r.isString(i)){var s=o(i,t.current.name);m(s.state,e.$eval(s.paramExpr),n)}}),this.$$addStateInfo=function(t,e){if(!(r.isObject(d)&&f.length>0)){var i=m(t,e,d);return g(),i}},e.$on("$stateChangeSuccess",g),e.$on("$destroy",s.onStart({},function(t){return t.promise.then(g)&&null})),g()}]}}];angular.module("ui.router.state").directive("uiSref",c).directive("uiSrefActive",d).directive("uiSrefActiveEq",d).directive("uiState",h)},function(t,e){"use strict";function i(t){var e=function(e,i,n){return t.is(e,i,n)};return e.$stateful=!0,e}function n(t){var e=function(e,i,n){return t.includes(e,i,n)};return e.$stateful=!0,e}i.$inject=["$state"],e.$IsStateFilter=i,n.$inject=["$state"],e.$IncludedByStateFilter=n,angular.module("ui.router.state").filter("isState",i).filter("includedByState",n)}
1,function(t,e,i){"use strict";var n=i(3),r=i(4),s=i(12),o=i(55),a=i(5),l=i(17),u=i(9),c=i(53),h=["$view","$animate","$uiViewScroll","$interpolate","$q",function(t,e,i,n,l){var u={$cfg:{viewDecl:{$context:t.rootContext()}},$uiView:{}},c={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(h,d,f){return function(h,d,p){var m,g,v,_,y=p.onload||"",b=p.autoscroll,w={enter:function(t,i,n){angular.version.minor>2?e.enter(t,null,i).then(n):e.enter(t,null,i,n)},leave:function(t,i){angular.version.minor>2?e.leave(t).then(i):e.leave(t,i)}},x=void 0,C=d.inheritedData("$uiView")||u,T=n(p.uiView||p.name||"")(h)||"$default",$={$type:"ng1",id:c.count++,name:T,fqn:C.$uiView.fqn?C.$uiView.fqn+"."+T:T,config:null,configUpdated:function(t){if(t&&!(t instanceof o.Ng1ViewConfig))return;if(e=x,i=t,e===i)return;var e,i;s.trace.traceUIViewConfigUpdated($,t&&t.viewDecl&&t.viewDecl.$context),x=t,S(t)},get creationContext(){return a.parse("$cfg.viewDecl.$context")(C)}};function S(t){var e=h.$new();s.trace.traceUIViewScopeCreated($,e);var n=l.defer(),o=l.defer(),a={$cfg:t,$uiView:$,$animEnter:n.promise,$animLeave:o.promise,$$animLeave:o},u=f(e,function(t){w.enter(t.data("$uiView",a),d,function(){n.resolve(),v&&v.$emit("$viewContentAnimationEnded"),(r.isDefined(b)&&!b||h.$eval(b))&&i(t)}),function(){if(m&&(s.trace.traceUIViewEvent("Removing (previous) el",m.data("$uiView")),m.remove(),m=null),v&&(s.trace.traceUIViewEvent("Destroying scope",$),v.$destroy(),v=null),g){var t=g.data("$uiView");s.trace.traceUIViewEvent("Animate out",t),w.leave(g,function(){t.$$animLeave.resolve(),m=null}),m=g,g=null}}()});g=u,(v=e).$emit("$viewContentLoaded",t||x),v.$eval(y)}s.trace.traceUIViewEvent("Linking",$),d.data("$uiView",{$uiView:$}),S(),_=t.registerUIView($),h.$on("$destroy",function(){s.trace.traceUIViewEvent("Destroying/Unregistering",$),_()})}}};return c}];function d(t,e,i,o,h){var d=a.parse("viewDecl.controllerAs"),f=a.parse("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(o){var a=o.html();return function(o,h){var m=h.data("$uiView");if(m){var g=m.$cfg||{viewDecl:{}};h.html(g.template||a),s.trace.traceUIViewFill(m.$uiView,h.html());var v=t(h.contents()),_=g.controller,y=d(g),b=f(g),w=g.path&&new l.ResolveContext(g.path),x=w&&c.getLocals(w);if(o[b]=x,_){var C=e(_,n.extend({},x,{$scope:o,$element:h}));y&&(o[y]=C,o[y][b]=x),h.data("$ngControllerController",C),h.children().data("$ngControllerController",C),p(i,C,o,g)}if(r.isString(g.viewDecl.component))var T=g.viewDecl.component,$=u.kebobString(T),S=o.$watch(function(){var t=[].slice.call(h[0].children).filter(function(t){return t&&t.tagName&&t.tagName.toLowerCase()===$});return t&&angular.element(t).data("$"+T+"Controller")},function(t){t&&(p(i,t,o,g),S())});v(o)}}}}}d.$inject=["$compile","$controller","$transitions","$view","$timeout"];var f="function"==typeof angular.module("ui.router").component;function p(t,e,i,s){!r.isFunction(e.$onInit)||s.viewDecl.component&&f||e.$onInit();var o=n.tail(s.path).state.self,a={bind:e};if(r.isFunction(e.uiOnParamsChanged)){var u=new l.ResolveContext(s.path).getResolvable("$transition$").data;i.$on("$destroy",t.onSuccess({},function(t){if(t!==u&&-1===t.exiting().indexOf(o)){var i=t.params("to"),r=t.params("from"),s=t.treeChanges().to.map(function(t){return t.paramSchema}
1).reduce(n.unnestR,[]),a=t.treeChanges().from.map(function(t){return t.paramSchema}).reduce(n.unnestR,[]),l=s.filter(function(t){var e=a.indexOf(t);return-1===e||!a[e].type.equals(i[t.id],r[t.id])});if(l.length){var c=l.map(function(t){return t.id});e.uiOnParamsChanged(n.filter(i,function(t,e){return-1!==c.indexOf(e)}),t)}}},a))}if(r.isFunction(e.uiCanExit)){var c={exiting:o.name};i.$on("$destroy",t.onBefore(c,e.uiCanExit,a))}}angular.module("ui.router.state").directive("uiView",h),angular.module("ui.router.state").directive("uiView",d)},function(t,e){"use strict";angular.module("ui.router.state").provider("$uiViewScroll",function(){var t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,i){return t?e:function(t){return i(function(){t[0].scrollIntoView()},0,!1)}}]})}])}),angular.module("app",[]);_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=36)}([function(t,e){t.exports=jQuery},function(t,e,i){"use strict";function n(){return"rtl"===a()("html").attr("dir")}function r(t,e){return t=t||6,Math.round(Math.pow(36,t+1)-Math.random()*Math.pow(36,t)).toString(36).slice(1)+(e?"-"+e:"")}function s(t){var e,i={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend"},n=document.createElement("div");for(var r in i)void 0!==n.style[r]&&(e=i[r]);return e||(e=setTimeout(function(){t.triggerHandler("transitionend",[t])},1),"transitionend")}i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return s});var o=i(0),a=i.n(o)},function(t,e,i){"use strict";function n(t){return function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}(void 0!==t.constructor.name?t.constructor.name:t.className)}i.d(e,"a",function(){return a});var r=i(0),s=(i.n(r),i(1)),o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function(){function t(e,r){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._setup(e,r);var o=n(this);this.uuid=i.i(s.b)(6,o),this.$element.attr("data-"+o)||this.$element.attr("data-"+o,this.uuid),this.$element.data("zfPlugin")||this.$element.data("zfPlugin",this),this.$element.trigger("init.zf."+o)}return o(t,[{key:"destroy",value:function(){this._destroy();var t=n(this);for(var e in this.$element.removeAttr("data-"+t).removeData("zfPlugin").trigger("destroyed.zf."+t),this)this[e]=null}}]),t}()},function(t,e,i){"use strict";function n(t){return!!t&&t.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(function(){return!(!o()(this).is(":visible")||o()(this).attr("tabindex")<0)})}function r(t){var e=l[t.which||t.keyCode]||String.fromCharCode(t.which).toUpperCase();return e=e.replace(/\W+/,""),t.shiftKey&&(e="SHIFT_"+e),t.ctrlKey&&(e="CTRL_"+e),t.altKey&&(e="ALT_"+e),e.replace(/_$/,"")}i.d(e,"a",function(){return c});var s=i(0),o=i.n(s),a=i(1),l={9:"TAB",13:"ENTER",27:"ESCAPE",32:"SPACE",35:"END",36:"HOME",37:"ARROW_LEFT",38:"ARROW_UP",39:"ARROW_RIGHT",40:"ARROW_DOWN"},u={},c={keys:function(t){var e={};for(var i in t)e[t[i]]=t[i];return e}(l),parseKey:r,handleKey:function(t,e,n){var r,s=u[e],l=this.parseKey(t);if(!s)return console.warn("Component not defined!");if((r=n[(void 0===s.ltr?s:i.i(a.a)()?o.a.extend({},s.ltr,s.rtl):o.a.extend({},s.rtl,s.ltr))[l]])&&"function"==typeof r){var c=r.apply();(n.handled||"function"==typeof n.handled)&&n.handled(c)}else(n.unhandled||"function"==typeof n.unhandled)&&n.unhandled()},findFocusable:n,register:function(t,e){u[t]=e},trapFocus:function(t){var e=n(t),i=e.eq(0),s=e.eq(-1);
1t.on("keydown.zf.trapfocus",function(t){t.target===s[0]&&"TAB"===r(t)?(t.preventDefault(),i.focus()):t.target===i[0]&&"SHIFT_TAB"===r(t)&&(t.preventDefault(),s.focus())})},releaseFocus:function(t){t.off("keydown.zf.trapfocus")}}},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(0),r=i.n(n),s=window.matchMedia||function(){var t=window.styleMedia||window.media;if(!t){var e,i=document.createElement("style"),n=document.getElementsByTagName("script")[0];i.type="text/css",i.id="matchmediajs-test",n&&n.parentNode&&n.parentNode.insertBefore(i,n),e="getComputedStyle"in window&&window.getComputedStyle(i,null)||i.currentStyle,t={matchMedium:function(t){var n="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return i.styleSheet?i.styleSheet.cssText=n:i.textContent=n,"1px"===e.width}}}return function(e){return{matches:t.matchMedium(e||"all"),media:e||"all"}}}(),o={queries:[],current:"",_init:function(){r()("meta.foundation-mq").length||r()('<meta class="foundation-mq">').appendTo(document.head);var t,e=r()(".foundation-mq").css("font-family");for(var i in t=function(t){var e={};return"string"!=typeof t?e:(t=t.trim().slice(1,-1))?e=t.split("&").reduce(function(t,e){var i=e.replace(/\+/g," ").split("="),n=i[0],r=i[1];return n=decodeURIComponent(n),r=void 0===r?null:decodeURIComponent(r),t.hasOwnProperty(n)?Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]:t[n]=r,t},{}):e}(e))t.hasOwnProperty(i)&&this.queries.push({name:i,value:"only screen and (min-width: "+t[i]+")"});this.current=this._getCurrentSize(),this._watcher()},atLeast:function(t){var e=this.get(t);return!!e&&s(e).matches},is:function(t){return(t=t.trim().split(" ")).length>1&&"only"===t[1]?t[0]===this._getCurrentSize():this.atLeast(t[0])},get:function(t){for(var e in this.queries)if(this.queries.hasOwnProperty(e)){var i=this.queries[e];if(t===i.name)return i.value}return null},_getCurrentSize:function(){for(var t,e=0;e<this.queries.length;e++){var i=this.queries[e];s(i.value).matches&&(t=i)}return"object"==(void 0===t?"undefined":_typeof(t))?t.name:t},_watcher:function(){var t=this;r()(window).off("resize.zf.mediaquery").on("resize.zf.mediaquery",function(){var e=t._getCurrentSize(),i=t.current;e!==i&&(t.current=e,r()(window).trigger("changed.zf.mediaquery",[e,i]))})}}},function(t,e,i){"use strict";function n(t,e,i){var n=void 0,r=Array.prototype.slice.call(arguments,3);s()(window).off(e).on(e,function(e){n&&clearTimeout(n),n=setTimeout(function(){i.apply(null,r)},t||10)})}i.d(e,"a",function(){return u});var r=i(0),s=i.n(r),o=i(6),a=function(){for(var t=["WebKit","Moz","O","Ms",""],e=0;e<t.length;e++)if(t[e]+"MutationObserver"in window)return window[t[e]+"MutationObserver"];return!1}(),l=function(t,e){t.data(e).split(" ").forEach(function(i){s()("#"+i)["close"===e?"trigger":"triggerHandler"](e+".zf.trigger",[t])})},u={Listeners:{Basic:{},Global:{}},Initializers:{}};u.Listeners.Basic={openListener:function(){l(s()(this),"open")},closeListener:function(){s()(this).data("close")?l(s()(this),"close"):s()(this).trigger("close.zf.trigger")},toggleListener:function(){s()(this).data("toggle")?l(s()(this),"toggle"):s()(this).trigger("toggle.zf.trigger")},closeableListener:function(t){t.stopPropagation();var e=s()(this).data("closable");""!==e?o.a.animateOut(s()(this),e,function(){s()(this).trigger("closed.zf")}):s()(this).fadeOut().trigger("closed.zf")},toggleFocusListener:function(){var t=s()(this).data("toggle-focus");s()("#"+t).triggerHandler("toggle.zf.trigger",[s()(this)])}},u.Initializers.addOpenListener=function(t){t.off("click.zf.trigger",u.Listeners.Basic.openListener),t.on("click.zf.trigger","[data-open]",u.Listeners.Basic.openListener)},u.Initializers.addCloseListener=function(t){t.off("click.zf.trigger",u.Listeners.Basic.closeListener),t.on("click.zf.trigger","[data-close]",u.Listeners.Basic.closeListener)},u.Initializers.addToggleListener=function(t){t.off("click.zf.trigger",u.Listeners.Basic.toggleListener),t.on("click.zf.trigger","[data-toggle]",u.Listeners.Basic.toggleListener)},u.Initializers.addCloseableListener=function(t){t.off("close.zf.trigger",u.Listeners.Basic.closeableListener),t.on("close.zf.trigger","[data-closeable], [data-closable]",u.Listeners.Basic.closeableListener)}
1,u.Initializers.addToggleFocusListener=function(t){t.off("focus.zf.trigger blur.zf.trigger",u.Listeners.Basic.toggleFocusListener),t.on("focus.zf.trigger blur.zf.trigger","[data-toggle-focus]",u.Listeners.Basic.toggleFocusListener)},u.Listeners.Global={resizeListener:function(t){a||t.each(function(){s()(this).triggerHandler("resizeme.zf.trigger")}),t.attr("data-events","resize")},scrollListener:function(t){a||t.each(function(){s()(this).triggerHandler("scrollme.zf.trigger")}),t.attr("data-events","scroll")},closeMeListener:function(t,e){var i=t.namespace.split(".")[0];s()("[data-"+i+"]").not('[data-yeti-box="'+e+'"]').each(function(){var t=s()(this);t.triggerHandler("close.zf.trigger",[t])})}},u.Initializers.addClosemeListener=function(t){var e=s()("[data-yeti-box]"),i=["dropdown","tooltip","reveal"];if(t&&("string"==typeof t?i.push(t):"object"==(void 0===t?"undefined":_typeof(t))&&"string"==typeof t[0]?i.concat(t):console.error("Plugin names must be strings")),e.length){var n=i.map(function(t){return"closeme.zf."+t}).join(" ");s()(window).off(n).on(n,u.Listeners.Global.closeMeListener)}},u.Initializers.addResizeListener=function(t){var e=s()("[data-resize]");e.length&&n(t,"resize.zf.trigger",u.Listeners.Global.resizeListener,e)},u.Initializers.addScrollListener=function(t){var e=s()("[data-scroll]");e.length&&n(t,"scroll.zf.trigger",u.Listeners.Global.scrollListener,e)},u.Initializers.addMutationEventsListener=function(t){if(!a)return!1;var e=t.find("[data-resize], [data-scroll], [data-mutate]"),i=function(t){var e=s()(t[0].target);switch(t[0].type){case"attributes":"scroll"===e.attr("data-events")&&"data-events"===t[0].attributeName&&e.triggerHandler("scrollme.zf.trigger",[e,window.pageYOffset]),"resize"===e.attr("data-events")&&"data-events"===t[0].attributeName&&e.triggerHandler("resizeme.zf.trigger",[e]),"style"===t[0].attributeName&&(e.closest("[data-mutate]").attr("data-events","mutate"),e.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[e.closest("[data-mutate]")]));break;case"childList":e.closest("[data-mutate]").attr("data-events","mutate"),e.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[e.closest("[data-mutate]")]);break;default:return!1}};if(e.length)for(var n=0;n<=e.length-1;n++){new a(i).observe(e[n],{attributes:!0,childList:!0,characterData:!1,subtree:!0,attributeFilter:["data-events","style"]})}},u.Initializers.addSimpleListeners=function(){var t=s()(document);u.Initializers.addOpenListener(t),u.Initializers.addCloseListener(t),u.Initializers.addToggleListener(t),u.Initializers.addCloseableListener(t),u.Initializers.addToggleFocusListener(t)},u.Initializers.addGlobalListeners=function(){var t=s()(document);u.Initializers.addMutationEventsListener(t),u.Initializers.addResizeListener(),u.Initializers.addScrollListener(),u.Initializers.addClosemeListener()},u.init=function(t,e){void 0===t.triggersInitialized&&(t(document),"complete"===document.readyState?(u.Initializers.addSimpleListeners(),u.Initializers.addGlobalListeners()):t(window).on("load",function(){u.Initializers.addSimpleListeners(),u.Initializers.addGlobalListeners()}),t.triggersInitialized=!0),e&&(e.Triggers=u,e.IHearYou=u.Initializers.addGlobalListeners)}},function(t,e,i){"use strict";function n(t,e,i){var n,r,s=null;if(0===t)return i.apply(e),void e.trigger("finished.zf.animate",[e]).triggerHandler("finished.zf.animate",[e]);n=window.requestAnimationFrame(function o(a){s||(s=a),r=a-s,i.apply(e),r<t?n=window.requestAnimationFrame(o,e):(window.cancelAnimationFrame(n),e.trigger("finished.zf.animate",[e]).triggerHandler("finished.zf.animate",[e]))})}function r(t,e,n,r){function s(){e[0].style.transitionDuration=0,e.removeClass(c+" "+h+" "+n)}if((e=o()(e).eq(0)).length){var c=t?l[0]:l[1],h=t?u[0]:u[1];s(),e.addClass(n).css("transition","none"),requestAnimationFrame(function(){e.addClass(c),t&&e.show()}),requestAnimationFrame(function(){e[0].offsetWidth,e.css("transition","").addClass(h)}),e.one(i.i(a.c)(e),function(){t||e.hide(),s(),r&&r.apply(e)})}}i.d(e,"b",function(){return n}),i.d(e,"a",function(){return c});var s=i(0),o=i.n(s),a=i(1),l=["mui-enter","mui-leave"],u=["mui-enter-active","mui-leave-active"],c={animateIn:function(t,e,
1i){r(!0,t,e,i)},animateOut:function(t,e,i){r(!1,t,e,i)}}},function(t,e,i){"use strict";function n(t,e,i,n,s){var o,a,l,u,c=r(t);if(e){var h=r(e);a=h.height+h.offset.top-(c.offset.top+c.height),o=c.offset.top-h.offset.top,l=c.offset.left-h.offset.left,u=h.width+h.offset.left-(c.offset.left+c.width)}else a=c.windowDims.height+c.windowDims.offset.top-(c.offset.top+c.height),o=c.offset.top-c.windowDims.offset.top,l=c.offset.left-c.windowDims.offset.left,u=c.windowDims.width-(c.offset.left+c.width);return a=s?0:Math.min(a,0),o=Math.min(o,0),l=Math.min(l,0),u=Math.min(u,0),i?l+u:n?o+a:Math.sqrt(o*o+a*a+l*l+u*u)}function r(t){if((t=t.length?t[0]:t)===window||t===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var e=t.getBoundingClientRect(),i=t.parentNode.getBoundingClientRect(),n=document.body.getBoundingClientRect(),r=window.pageYOffset,s=window.pageXOffset;return{width:e.width,height:e.height,offset:{top:e.top+r,left:e.left+s},parentDims:{width:i.width,height:i.height,offset:{top:i.top+r,left:i.left+s}},windowDims:{width:n.width,height:n.height,offset:{top:r,left:s}}}}function s(t,e,i,n,s,o,a){var l,u,c=r(t),h=e?r(e):null;switch(i){case"top":l=h.offset.top-(c.height+s);break;case"bottom":l=h.offset.top+h.height+s;break;case"left":u=h.offset.left-(c.width+o);break;case"right":u=h.offset.left+h.width+o}switch(i){case"top":case"bottom":switch(n){case"left":u=h.offset.left+o;break;case"right":u=h.offset.left-c.width+h.width-o;break;case"center":u=a?o:h.offset.left+h.width/2-c.width/2+o}break;case"right":case"left":switch(n){case"bottom":l=h.offset.top-s+h.height-c.height;break;case"top":l=h.offset.top+s;break;case"center":l=h.offset.top+s+h.height/2-c.height/2}}return{top:l,left:u}}i.d(e,"a",function(){return a});var o=i(1),a={ImNotTouchingYou:function(t,e,i,r,s){return 0===n(t,e,i,r,s)},OverlapArea:n,GetDimensions:r,GetOffsets:function(t,e,n,r,a,l){switch(console.log("NOTE: GetOffsets is deprecated in favor of GetExplicitOffsets and will be removed in 6.5"),n){case"top":return i.i(o.a)()?s(t,e,"top","left",r,a,l):s(t,e,"top","right",r,a,l);case"bottom":return i.i(o.a)()?s(t,e,"bottom","left",r,a,l):s(t,e,"bottom","right",r,a,l);case"center top":return s(t,e,"top","center",r,a,l);case"center bottom":return s(t,e,"bottom","center",r,a,l);case"center left":return s(t,e,"left","center",r,a,l);case"center right":return s(t,e,"right","center",r,a,l);case"left bottom":return s(t,e,"bottom","left",r,a,l);case"right bottom":return s(t,e,"bottom","right",r,a,l);case"center":return{left:$eleDims.windowDims.offset.left+$eleDims.windowDims.width/2-$eleDims.width/2+a,top:$eleDims.windowDims.offset.top+$eleDims.windowDims.height/2-($eleDims.height/2+r)};case"reveal":return{left:($eleDims.windowDims.width-$eleDims.width)/2+a,top:$eleDims.windowDims.offset.top+r};case"reveal full":return{left:$eleDims.windowDims.offset.left,top:$eleDims.windowDims.offset.top};default:return{left:i.i(o.a)()?$anchorDims.offset.left-$eleDims.width+$anchorDims.width-a:$anchorDims.offset.left+a,top:$anchorDims.offset.top+$anchorDims.height+r}}},GetExplicitOffsets:s}},function(t,e,i){"use strict";function n(t,e){function i(){0==--n&&e()}var n=t.length;0===n&&e(),t.each(function(){if(this.complete&&void 0!==this.naturalWidth)i();else{var t=new Image,e="load.zf.images error.zf.images";s()(t).one(e,function t(n){s()(this).off(e,t),i()}),t.src=s()(this).attr("src")}})}i.d(e,"a",function(){return n});var r=i(0),s=i.n(r)},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i(0),r=i.n(n),s={Feather:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zf";t.attr("role","menubar");var i=t.find("li").attr({role:"menuitem"}),n="is-"+e+"-submenu",s=n+"-item",o="is-"+e+"-submenu-parent",a="accordion"!==e;i.each(function(){var t=r()(this),i=t.children("ul");i.length&&(t.addClass(o),i.addClass("submenu "+n).attr({"data-submenu":""}),a&&(t.attr({"aria-haspopup":!0,"aria-label":t.children("a:first").text()}),"drilldown"===e&&t.attr({"aria-expanded":!1})),i.addClass("submenu "+n).attr({"data-submenu":"",role:"menu"}),"drilldown"===e&&i.attr({"aria-hidden":!0})),t.parent("[data-submenu]").length&&t.addClass("is-submenu-item "+s)})},Burn:function(t,e){var i="is-"+e+"-submenu",n=i+"-item",r="is-"+e+"-submenu-parent";t.find(">li, .menu, .menu > li").removeClass(i+" "+n+" "+r+" is-submenu-item submenu is-active").removeAttr("data-submenu").css("display","")}}}
1,function(t,e,i){"use strict";function n(){this.removeEventListener("touchmove",r),this.removeEventListener("touchend",n),p=!1}function r(t){if(h.a.spotSwipe.preventDefault&&t.preventDefault(),p){var e,i=t.touches[0].pageX,r=(t.touches[0].pageY,a-i);u=(new Date).getTime()-l,Math.abs(r)>=h.a.spotSwipe.moveThreshold&&u<=h.a.spotSwipe.timeThreshold&&(e=r>0?"left":"right"),e&&(t.preventDefault(),n.call(this),h()(this).trigger("swipe",e).trigger("swipe"+e))}}function s(t){1==t.touches.length&&(a=t.touches[0].pageX,t.touches[0].pageY,p=!0,l=(new Date).getTime(),this.addEventListener("touchmove",r,!1),this.addEventListener("touchend",n,!1))}function o(){this.addEventListener&&this.addEventListener("touchstart",s,!1)}i.d(e,"a",function(){return f});var a,l,u,c=i(0),h=i.n(c),d=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),f={},p=!1,m=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.version="1.0.0",this.enabled="ontouchstart"in document.documentElement,this.preventDefault=!1,this.moveThreshold=75,this.timeThreshold=200,this.$=e,this._init()}return d(t,[{key:"_init",value:function(){var t=this.$;t.event.special.swipe={setup:o},t.each(["left","up","down","right"],function(){t.event.special["swipe"+this]={setup:function(){t(this).on("swipe",t.noop)}}})}}]),t}();f.setupSpotSwipe=function(t){t.spotSwipe=new m(t)},f.setupTouchHandler=function(t){t.fn.addTouch=function(){this.each(function(i,n){t(n).bind("touchstart touchmove touchend touchcancel",function(){e(event)})});var e=function(t){var e,i=t.changedTouches[0],n={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"}[t.type];"MouseEvent"in window&&"function"==typeof window.MouseEvent?e=new window.MouseEvent(n,{bubbles:!0,cancelable:!0,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY}):(e=document.createEvent("MouseEvent"),e.initMouseEvent(n,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null)),i.target.dispatchEvent(e)}}},f.init=function(t){void 0===t.spotSwipe&&(f.setupSpotSwipe(t),f.setupTouchHandler(t))}},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var n=i(0),r=i.n(n),s=i(3),o=i(1),a=i(2),l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.a),l(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Accordion",this._init(),s.a.register("Accordion",{ENTER:"toggle",SPACE:"toggle",ARROW_DOWN:"next",ARROW_UP:"previous"})}},{key:"_init",value:function(){var t=this;this.$element.attr("role","tablist"),this.$tabs=this.$element.children("[data-accordion-item]"),this.$tabs.each(function(t,e){var n=r()(e),s=n.children("[data-tab-content]"),a=s[0].id||i.i(o.b)(6,"accordion"),l=e.id||a+"-label";n.find("a:first").attr({"aria-controls":a,role:"tab",id:l,"aria-expanded":!1,"aria-selected":!1}),s.attr({role:"tabpanel","aria-labelledby":l,"aria-hidden":!0,id:a})});
1var e=this.$element.find(".is-active").children("[data-tab-content]");this.firstTimeInit=!0,e.length&&(this.down(e,this.firstTimeInit),this.firstTimeInit=!1),this._checkDeepLink=function(){var e=window.location.hash;if(e.length){var i=t.$element.find('[href$="'+e+'"]'),n=r()(e);if(i.length&&n){if(i.parent("[data-accordion-item]").hasClass("is-active")||(t.down(n,t.firstTimeInit),t.firstTimeInit=!1),t.options.deepLinkSmudge){var s=t;r()(window).load(function(){var t=s.$element.offset();r()("html, body").animate({scrollTop:t.top},s.options.deepLinkSmudgeDelay)})}t.$element.trigger("deeplink.zf.accordion",[i,n])}}},this.options.deepLink&&this._checkDeepLink(),this._events()}},{key:"_events",value:function(){var t=this;this.$tabs.each(function(){var e=r()(this),i=e.children("[data-tab-content]");i.length&&e.children("a").off("click.zf.accordion keydown.zf.accordion").on("click.zf.accordion",function(e){e.preventDefault(),t.toggle(i)}).on("keydown.zf.accordion",function(n){s.a.handleKey(n,"Accordion",{toggle:function(){t.toggle(i)},next:function(){var i=e.next().find("a").focus();t.options.multiExpand||i.trigger("click.zf.accordion")},previous:function(){var i=e.prev().find("a").focus();t.options.multiExpand||i.trigger("click.zf.accordion")},handled:function(){n.preventDefault(),n.stopPropagation()}})})}),this.options.deepLink&&r()(window).on("popstate",this._checkDeepLink)}},{key:"toggle",value:function(t){if(t.closest("[data-accordion]").is("[disabled]"))console.info("Cannot toggle an accordion that is disabled.");else if(t.parent().hasClass("is-active")?this.up(t):this.down(t),this.options.deepLink){var e=t.prev("a").attr("href");this.options.updateHistory?history.pushState({},"",e):history.replaceState({},"",e)}}},{key:"down",value:function(t,e){var i=this;if(!t.closest("[data-accordion]").is("[disabled]")||e){if(t.attr("aria-hidden",!1).parent("[data-tab-content]").addBack().parent().addClass("is-active"),!this.options.multiExpand&&!e){var n=this.$element.children(".is-active").children("[data-tab-content]");n.length&&this.up(n.not(t))}t.slideDown(this.options.slideSpeed,function(){i.$element.trigger("down.zf.accordion",[t])}),r()("#"+t.attr("aria-labelledby")).attr({"aria-expanded":!0,"aria-selected":!0})}else console.info("Cannot call down on an accordion that is disabled.")}},{key:"up",value:function(t){if(t.closest("[data-accordion]").is("[disabled]"))console.info("Cannot call up on an accordion that is disabled.");else{var e=t.parent().siblings(),i=this;(this.options.allowAllClosed||e.hasClass("is-active"))&&t.parent().hasClass("is-active")&&(t.slideUp(i.options.slideSpeed,function(){i.$element.trigger("up.zf.accordion",[t])}),t.attr("aria-hidden",!0).parent().removeClass("is-active"),r()("#"+t.attr("aria-labelledby")).attr({"aria-expanded":!1,"aria-selected":!1}))}}},{key:"_destroy",value:function(){this.$element.find("[data-tab-content]").stop(!0).slideUp(0).css("display",""),this.$element.find("a").off(".zf.accordion"),this.options.deepLink&&r()(window).off("popstate",this._checkDeepLink)}}]),e}();u.defaults={slideSpeed:250,multiExpand:!1,allowAllClosed:!1,deepLink:!1,deepLinkSmudge:!1,deepLinkSmudgeDelay:300,updateHistory:!1}},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var n=i(0),r=i.n(n),s=i(3),o=i(9),a=i(1),l=i(2),u=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,l.a),u(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="AccordionMenu",this._init(),s.a.register("AccordionMenu",{ENTER:"toggle",SPACE:"toggle",ARROW_RIGHT:"open",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"close",ESCAPE:"closeAll"})}},{key:"_init",value:function(){o.a.Feather(this.$element,"accordion");var t=this;this.$element.find("[data-submenu]").not(".is-active").slideUp(0),this.$element.attr({role:"tree","aria-multiselectable":this.options.multiOpe
1n}),this.$menuLinks=this.$element.find(".is-accordion-submenu-parent"),this.$menuLinks.each(function(){var e=this.id||i.i(a.b)(6,"acc-menu-link"),n=r()(this),s=n.children("[data-submenu]"),o=s[0].id||i.i(a.b)(6,"acc-menu"),l=s.hasClass("is-active");t.options.submenuToggle?(n.addClass("has-submenu-toggle"),n.children("a").after('<button id="'+e+'" class="submenu-toggle" aria-controls="'+o+'" aria-expanded="'+l+'" title="'+t.options.submenuToggleText+'"><span class="submenu-toggle-text">'+t.options.submenuToggleText+"</span></button>")):n.attr({"aria-controls":o,"aria-expanded":l,id:e}),s.attr({"aria-labelledby":e,"aria-hidden":!l,role:"group",id:o})}),this.$element.find("li").attr({role:"treeitem"});var e=this.$element.find(".is-active");if(e.length){t=this;e.each(function(){t.down(r()(this))})}this._events()}},{key:"_events",value:function(){var t=this;this.$element.find("li").each(function(){var e=r()(this).children("[data-submenu]");e.length&&(t.options.submenuToggle?r()(this).children(".submenu-toggle").off("click.zf.accordionMenu").on("click.zf.accordionMenu",function(i){t.toggle(e)}):r()(this).children("a").off("click.zf.accordionMenu").on("click.zf.accordionMenu",function(i){i.preventDefault(),t.toggle(e)}))}).on("keydown.zf.accordionmenu",function(e){var i,n,o=r()(this),a=o.parent("ul").children("li"),l=o.children("[data-submenu]");a.each(function(t){if(r()(this).is(o))return i=a.eq(Math.max(0,t-1)).find("a").first(),n=a.eq(Math.min(t+1,a.length-1)).find("a").first(),r()(this).children("[data-submenu]:visible").length&&(n=o.find("li:first-child").find("a").first()),r()(this).is(":first-child")?i=o.parents("li").first().find("a").first():i.parents("li").first().children("[data-submenu]:visible").length&&(i=i.parents("li").find("li:last-child").find("a").first()),void(r()(this).is(":last-child")&&(n=o.parents("li").first().next("li").find("a").first()))}),s.a.handleKey(e,"AccordionMenu",{open:function(){l.is(":hidden")&&(t.down(l),l.find("li").first().find("a").first().focus())},close:function(){l.length&&!l.is(":hidden")?t.up(l):o.parent("[data-submenu]").length&&(t.up(o.parent("[data-submenu]")),o.parents("li").first().find("a").first().focus())},up:function(){return i.focus(),!0},down:function(){return n.focus(),!0},toggle:function(){return!t.options.submenuToggle&&(o.children("[data-submenu]").length?(t.toggle(o.children("[data-submenu]")),!0):void 0)},closeAll:function(){t.hideAll()},handled:function(t){t&&e.preventDefault(),e.stopImmediatePropagation()}})})}},{key:"hideAll",value:function(){this.up(this.$element.find("[data-submenu]"))}},{key:"showAll",value:function(){this.down(this.$element.find("[data-submenu]"))}},{key:"toggle",value:function(t){t.is(":animated")||(t.is(":hidden")?this.down(t):this.up(t))}},{key:"down",value:function(t){var e=this;this.options.multiOpen||this.up(this.$element.find(".is-active").not(t.parentsUntil(this.$element).add(t))),t.addClass("is-active").attr({"aria-hidden":!1}),this.options.submenuToggle?t.prev(".submenu-toggle").attr({"aria-expanded":!0}):t.parent(".is-accordion-submenu-parent").attr({"aria-expanded":!0}),t.slideDown(e.options.slideSpeed,function(){e.$element.trigger("down.zf.accordionMenu",[t])})}},{key:"up",value:function(t){var e=this;t.slideUp(e.options.slideSpeed,function(){e.$element.trigger("up.zf.accordionMenu",[t])});var i=t.find("[data-submenu]").slideUp(0).addBack().attr("aria-hidden",!0);this.options.submenuToggle?i.prev(".submenu-toggle").attr("aria-expanded",!1):i.parent(".is-accordion-submenu-parent").attr("aria-expanded",!1)}},{key:"_destroy",value:function(){this.$element.find("[data-submenu]").slideDown(0).css("display",""),this.$element.find("a").off("click.zf.accordionMenu"),this.options.submenuToggle&&(this.$element.find(".has-submenu-toggle").removeClass("has-submenu-toggle"),this.$element.find(".submenu-toggle").remove()),o.a.Burn(this.$element,"accordion")}}]),e}();c.defaults={slideSpeed:250,submenuToggle:!1,submenuToggleText:"Toggle menu",multiOpen:!0}},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var n=i(0),r=i.n(n),s=i(3),o=i(9),a=i(1),l=i(7),u=i(2),c=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}
1return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,u.a),c(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Drilldown",this._init(),s.a.register("Drilldown",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close",TAB:"down",SHIFT_TAB:"up"})}},{key:"_init",value:function(){o.a.Feather(this.$element,"drilldown"),this.options.autoApplyClass&&this.$element.addClass("drilldown"),this.$element.attr({role:"tree","aria-multiselectable":!1}),this.$submenuAnchors=this.$element.find("li.is-drilldown-submenu-parent").children("a"),this.$submenus=this.$submenuAnchors.parent("li").children("[data-submenu]").attr("role","group"),this.$menuItems=this.$element.find("li").not(".js-drilldown-back").attr("role","treeitem").find("a"),this.$element.attr("data-mutate",this.$element.attr("data-drilldown")||i.i(a.b)(6,"drilldown")),this._prepareMenu(),this._registerEvents(),this._keyboardEvents()}},{key:"_prepareMenu",value:function(){var t=this;this.$submenuAnchors.each(function(){var e=r()(this),i=e.parent();t.options.parentLink&&e.clone().prependTo(i.children("[data-submenu]")).wrap('<li class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="menuitem"></li>'),e.data("savedHref",e.attr("href")).removeAttr("href").attr("tabindex",0),e.children("[data-submenu]").attr({"aria-hidden":!0,tabindex:0,role:"group"}),t._events(e)}),this.$submenus.each(function(){var e=r()(this);if(!e.find(".js-drilldown-back").length)switch(t.options.backButtonPosition){case"bottom":e.append(t.options.backButton);break;case"top":e.prepend(t.options.backButton);break;default:console.error("Unsupported backButtonPosition value '"+t.options.backButtonPosition+"'")}t._back(e)}),this.$submenus.addClass("invisible"),this.options.autoHeight||this.$submenus.addClass("drilldown-submenu-cover-previous"),this.$element.parent().hasClass("is-drilldown")||(this.$wrapper=r()(this.options.wrapper).addClass("is-drilldown"),this.options.animateHeight&&this.$wrapper.addClass("animate-height"),this.$element.wrap(this.$wrapper)),this.$wrapper=this.$element.parent(),this.$wrapper.css(this._getMaxDims())}},{key:"_resize",value:function(){this.$wrapper.css({"max-width":"none","min-height":"none"}),this.$wrapper.css(this._getMaxDims())}},{key:"_events",value:function(t){var e=this;t.off("click.zf.drilldown").on("click.zf.drilldown",function(i){if(r()(i.target).parentsUntil("ul","li").hasClass("is-drilldown-submenu-parent")&&(i.stopImmediatePropagation(),i.preventDefault()),e._show(t.parent("li")),e.options.closeOnClick){var n=r()("body");n.off(".zf.drilldown").on("click.zf.drilldown",function(t){t.target===e.$element[0]||r.a.contains(e.$element[0],t.target)||(t.preventDefault(),e._hideAll(),n.off(".zf.drilldown"))})}})}},{key:"_registerEvents",value:function(){this.options.scrollTop&&(this._bindHandler=this._scrollTop.bind(this),this.$element.on("open.zf.drilldown hide.zf.drilldown closed.zf.drilldown",this._bindHandler)),this.$element.on("mutateme.zf.trigger",this._resize.bind(this))}},{key:"_scrollTop",value:function(){var t=this,e=""!=t.options.scrollTopElement?r()(t.options.scrollTopElement):t.$element,i=parseInt(e.offset().top+t.options.scrollTopOffset,10);r()("html, body").stop(!0).animate({scrollTop:i},t.options.animationDuration,t.options.animationEasing,function(){this===r()("html")[0]&&t.$element.trigger("scrollme.zf.drilldown")})}},{key:"_keyboardEvents",value:function(){var t=this;this.$menuItems.add(this.$element.find(".js-drilldown-back > a, .is-submenu-parent-item > a")).on("keydown.zf.drilldown",function(e){var n,o,l=r()(this),u=l.parent("li").parent("ul").children("li").children("a");
1u.each(function(t){if(r()(this).is(l))return n=u.eq(Math.max(0,t-1)),void(o=u.eq(Math.min(t+1,u.length-1)))}),s.a.handleKey(e,"Drilldown",{next:function(){if(l.is(t.$submenuAnchors))return t._show(l.parent("li")),l.parent("li").one(i.i(a.c)(l),function(){l.parent("li").find("ul li a").filter(t.$menuItems).first().focus()}),!0},previous:function(){return t._hide(l.parent("li").parent("ul")),l.parent("li").parent("ul").one(i.i(a.c)(l),function(){setTimeout(function(){l.parent("li").parent("ul").parent("li").children("a").first().focus()},1)}),!0},up:function(){return n.focus(),!l.is(t.$element.find("> li:first-child > a"))},down:function(){return o.focus(),!l.is(t.$element.find("> li:last-child > a"))},close:function(){l.is(t.$element.find("> li > a"))||(t._hide(l.parent().parent()),l.parent().parent().siblings("a").focus())},open:function(){return l.is(t.$menuItems)?l.is(t.$submenuAnchors)?(t._show(l.parent("li")),l.parent("li").one(i.i(a.c)(l),function(){l.parent("li").find("ul li a").filter(t.$menuItems).first().focus()}),!0):void 0:(t._hide(l.parent("li").parent("ul")),l.parent("li").parent("ul").one(i.i(a.c)(l),function(){setTimeout(function(){l.parent("li").parent("ul").parent("li").children("a").first().focus()},1)}),!0)},handled:function(t){t&&e.preventDefault(),e.stopImmediatePropagation()}})})}},{key:"_hideAll",value:function(){var t=this.$element.find(".is-drilldown-submenu.is-active").addClass("is-closing");this.options.autoHeight&&this.$wrapper.css({height:t.parent().closest("ul").data("calcHeight")}),t.one(i.i(a.c)(t),function(e){t.removeClass("is-active is-closing")}),this.$element.trigger("closed.zf.drilldown")}},{key:"_back",value:function(t){var e=this;t.off("click.zf.drilldown"),t.children(".js-drilldown-back").on("click.zf.drilldown",function(i){i.stopImmediatePropagation(),e._hide(t);var n=t.parent("li").parent("ul").parent("li");n.length&&e._show(n)})}},{key:"_menuLinkEvents",value:function(){var t=this;this.$menuItems.not(".is-drilldown-submenu-parent").off("click.zf.drilldown").on("click.zf.drilldown",function(e){setTimeout(function(){t._hideAll()},0)})}},{key:"_show",value:function(t){this.options.autoHeight&&this.$wrapper.css({height:t.children("[data-submenu]").data("calcHeight")}),t.attr("aria-expanded",!0),t.children("[data-submenu]").addClass("is-active").removeClass("invisible").attr("aria-hidden",!1),this.$element.trigger("open.zf.drilldown",[t])}},{key:"_hide",value:function(t){this.options.autoHeight&&this.$wrapper.css({height:t.parent().closest("ul").data("calcHeight")}),t.parent("li").attr("aria-expanded",!1),t.attr("aria-hidden",!0).addClass("is-closing"),t.addClass("is-closing").one(i.i(a.c)(t),function(){t.removeClass("is-active is-closing"),t.blur().addClass("invisible")}),t.trigger("hide.zf.drilldown",[t])}},{key:"_getMaxDims",value:function(){var t=0,e={},i=this;return this.$submenus.add(this.$element).each(function(){var n=(r()(this).children("li").length,l.a.GetDimensions(this).height);t=n>t?n:t,i.options.autoHeight&&(r()(this).data("calcHeight",n),r()(this).hasClass("is-drilldown-submenu")||(e.height=n))}),this.options.autoHeight||(e["min-height"]=t+"px"),e["max-width"]=this.$element[0].getBoundingClientRect().width+"px",e}},{key:"_destroy",value:function(){this.options.scrollTop&&this.$element.off(".zf.drilldown",this._bindHandler),this._hideAll(),this.$element.off("mutateme.zf.trigger"),o.a.Burn(this.$element,"drilldown"),this.$element.unwrap().find(".js-drilldown-back, .is-submenu-parent-item").remove().end().find(".is-active, .is-closing, .is-drilldown-submenu").removeClass("is-active is-closing is-drilldown-submenu").end().find("[data-submenu]").removeAttr("aria-hidden tabindex role"),this.$submenuAnchors.each(function(){r()(this).off(".zf.drilldown")}),this.$submenus.removeClass("drilldown-submenu-cover-previous invisible"),this.$element.find("a").each(function(){var t=r()(this);t.removeAttr("tabindex"),t.data("savedHref")&&t.attr("href",t.data("savedHref")).removeData("savedHref")})}}]),e}();h.defaults={autoApplyClass:!0,backButton:'<li class="js-drilldown-back"><a tabindex="0">Back</a></li>',backButtonPosition:"top",wrapper:"<div></div>",parentLink:!1,closeOnClick:!1,autoHeight:!1,animateHeight:!1,scrollTop:!1,scrollTopElement:"",scrollTopOffset:0,animationDuration:500,animationEasing:"swing"}}
1,function(t,e,i){"use strict";i.d(e,"a",function(){return h});var n=i(0),r=i.n(n),s=i(3),o=i(9),a=i(7),l=i(1),u=i(2),c=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,u.a),c(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="DropdownMenu",this._init(),s.a.register("DropdownMenu",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close"})}},{key:"_init",value:function(){o.a.Feather(this.$element,"dropdown");var t=this.$element.find("li.is-dropdown-submenu-parent");this.$element.children(".is-dropdown-submenu-parent").children(".is-dropdown-submenu").addClass("first-sub"),this.$menuItems=this.$element.find('[role="menuitem"]'),this.$tabs=this.$element.children('[role="menuitem"]'),this.$tabs.find("ul.is-dropdown-submenu").addClass(this.options.verticalClass),"auto"===this.options.alignment?this.$element.hasClass(this.options.rightClass)||i.i(l.a)()||this.$element.parents(".top-bar-right").is("*")?(this.options.alignment="right",t.addClass("opens-left")):(this.options.alignment="left",t.addClass("opens-right")):"right"===this.options.alignment?t.addClass("opens-left"):t.addClass("opens-right"),this.changed=!1,this._events()}},{key:"_isVertical",value:function(){return"block"===this.$tabs.css("display")||"column"===this.$element.css("flex-direction")}},{key:"_isRtl",value:function(){return this.$element.hasClass("align-right")||i.i(l.a)()&&!this.$element.hasClass("align-left")}},{key:"_events",value:function(){var t=this,e="ontouchstart"in window||void 0!==window.ontouchstart,i="is-dropdown-submenu-parent";(this.options.clickOpen||e)&&this.$menuItems.on("click.zf.dropdownmenu touchstart.zf.dropdownmenu",function(n){var s=r()(n.target).parentsUntil("ul","."+i),o=s.hasClass(i),a="true"===s.attr("data-is-click"),l=s.children(".is-dropdown-submenu");if(o)if(a){if(!t.options.closeOnClick||!t.options.clickOpen&&!e||t.options.forceFollow&&e)return;n.stopImmediatePropagation(),n.preventDefault(),t._hide(s)}else n.preventDefault(),n.stopImmediatePropagation(),t._show(l),s.add(s.parentsUntil(t.$element,"."+i)).attr("data-is-click",!0)}),t.options.closeOnClickInside&&this.$menuItems.on("click.zf.dropdownmenu",function(e){r()(this).hasClass(i)||t._hide()}),this.options.disableHover||this.$menuItems.on("mouseenter.zf.dropdownmenu",function(e){var n=r()(this);n.hasClass(i)&&(clearTimeout(n.data("_delay")),n.data("_delay",setTimeout(function(){t._show(n.children(".is-dropdown-submenu"))},t.options.hoverDelay)))}).on("mouseleave.zf.dropdownmenu",function(e){var n=r()(this);if(n.hasClass(i)&&t.options.autoclose){if("true"===n.attr("data-is-click")&&t.options.clickOpen)return!1;clearTimeout(n.data("_delay")),n.data("_delay",setTimeout(function(){t._hide(n)},t.options.closingTime))}}),this.$menuItems.on("keydown.zf.dropdownmenu",function(e){var i,n,o=r()(e.target).parentsUntil("ul",'[role="menuitem"]'),a=t.$tabs.index(o)>-1,l=a?t.$tabs:o.siblings("li").add(o);l.each(function(t){if(r()(this).is(o))return i=l.eq(t-1),void(n=l.eq(t+1))});var u=function(){n.children("a:first").focus(),e.preventDefault()},c=function(){i.children("a:first").focus(),e.preventDefault()},h=function(){var i=o.children("ul.is-dropdown-submenu");i.length&&(t._show(i),o.find("li > a:first").focus(),e.preventDefault())},d=function(){var i=o.parent("ul").parent("li");i.children("a:first").focus(),t._hide(i),e.preventDefault()},f={open:h,close:function(){t._hide(t.$element),t.$menuItems.eq(0).children("a").focus(),e.preventDefault()},handled:function(){e.stopImmediatePropagation()}};a?t._isVertical()?t._isRtl()?r.a.extend(f,{down:u,up:c,next:d,previous:h}):r.a.extend(f,{down:u,up:c,next:h,previous:d}):t._isRtl()?r.a.extend(f,{next:c,previous:u,down:h,up:d}):r.a.extend(f,{next:u,previous:c,down:h,up:d}):t._isRtl()?r.a.extend(f,{next:d,previous:h,down:u,up:c}):r.a.extend(f,{next:h,previous:d,down:u,up:c}),s.a.handleKey(e,"DropdownMenu",f)})}},{key:"_addBodyHandler",value:function(){var t=r()(document.body),e=this;t.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu").on("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu",function(i){e.$element.find(i.target).length||(e._hide(),t.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu"))})}},{key:"_show",value:function(t){var e=this.$tabs.index(this.$tabs.filter(function(e,i){return r()(i).find(t).length>0})),i=t.parent("li.is-dropdown-submenu-parent").siblings("li.is-dropdown-submenu-parent");this._hide(i,e),t.css("visibility","hidden").addClass("js-dropdown-active").parent("li.is-dropdown-submenu-parent").addClass("is-active");var n=a.a.ImNotTouchingYou(t,null,!0);if(!n){var s="left"===this.options.alignment?"-right":"-left",o=t.parent(".is-dropdown-submenu-parent");o.removeClass("opens"+s).addClass("opens-"+this.options.alignment),(n=a.a.ImNotTouchingYou(t,null,!0))||o.removeClass("opens-"+this.options.alignment).addClass("opens-inner"),this.changed=!0}t.css("visibility",""),this.options.closeOnClick&&this._addBodyHandler(),this.$element.trigger("show.zf.dropdownmenu",[t])}},{key:"_hide",value:function(t,e){var i;if((i=t&&t.length?t:void 0!==e?this.$tabs.not(function(t,i){return t===e}):this.$element).hasClass("is-active")||i.find(".is-active").length>0){if(i.find("li.is-active").add(i).attr({"data-is-click":!1}).removeClass("is-active"),i.find("ul.js-dropdown-active").removeClass("js-dropdown-active"),this.changed||i.find("opens-inner").length){var n="left"===this.options.alignment?"right":"left";i.find("li.is-dropdown-submenu-parent").add(i).removeClass("opens-inner opens-"+this.options.alignment).addClass("opens-"+n),this.changed=!1}this.$element.trigger("hide.zf.dropdownmenu",[i])}}},{key:"_destroy",value:function(){this.$menuItems.off(".zf.dropdownmenu").removeAttr("data-is-click").removeClass("is-right-arrow is-left-arrow is-down-arrow opens-right opens-left opens-inner"),r()(document.body).off(".zf.dropdownmenu"),o.a.Burn(this.$element,"dropdown")}}]),e}();h.defaults={disableHover:!1,autoclose:!0,hoverDelay:50,clickOpen:!1,closingTime:500,alignment:"auto",closeOnClick:!0,closeOnClickInside:!0,verticalClass:"vertical",rightClass:"align-right",forceFollow:!0}}
1,function(t,e,i){"use strict";function n(t,e){var i=e.indexOf(t);return i===e.length-1?e[0]:e[i+1]}i.d(e,"a",function(){return d});var r=i(7),s=i(2),o=i(1),a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=["left","right","top","bottom"],u=["top","bottom","center"],c=["left","right","center"],h={left:u,right:u,top:c,bottom:c},d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s.a),a(e,[{key:"_init",value:function(){this.triedPositions={},this.position="auto"===this.options.position?this._getDefaultPosition():this.options.position,this.alignment="auto"===this.options.alignment?this._getDefaultAlignment():this.options.alignment}},{key:"_getDefaultPosition",value:function(){return"bottom"}},{key:"_getDefaultAlignment",value:function(){switch(this.position){case"bottom":case"top":return i.i(o.a)()?"right":"left";case"left":case"right":return"bottom"}}},{key:"_reposition",value:function(){this._alignmentsExhausted(this.position)?(this.position=n(this.position,l),this.alignment=h[this.position][0]):this._realign()}},{key:"_realign",value:function(){this._addTriedPosition(this.position,this.alignment),this.alignment=n(this.alignment,h[this.position])}},{key:"_addTriedPosition",value:function(t,e){this.triedPositions[t]=this.triedPositions[t]||[],this.triedPositions[t].push(e)}},{key:"_positionsExhausted",value:function(){for(var t=!0,e=0;e<l.length;e++)t=t&&this._alignmentsExhausted(l[e]);return t}},{key:"_alignmentsExhausted",value:function(t){return this.triedPositions[t]&&this.triedPositions[t].length==h[t].length}},{key:"_getVOffset",value:function(){return this.options.vOffset}},{key:"_getHOffset",value:function(){return this.options.hOffset}},{key:"_setPosition",value:function(t,e,i){if("false"===t.attr("aria-expanded"))return!1;if(r.a.GetDimensions(e),r.a.GetDimensions(t),e.offset(r.a.GetExplicitOffsets(e,t,this.position,this.alignment,this._getVOffset(),this._getHOffset())),!this.options.allowOverlap){for(var n=1e8,s={position:this.position,alignment:this.alignment};!this._positionsExhausted();){var o=r.a.OverlapArea(e,i,!1,!1,this.options.allowBottomOverlap);if(0===o)return;o<n&&(n=o,s={position:this.position,alignment:this.alignment}),this._reposition(),e.offset(r.a.GetExplicitOffsets(e,t,this.position,this.alignment,this._getVOffset(),this._getHOffset()))}this.position=s.position,this.alignment=s.alignment,e.offset(r.a.GetExplicitOffsets(e,t,this.position,this.alignment,this._getVOffset(),this._getHOffset()))}}}]),e}();d.defaults={position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!0,vOffset:0,hOffset:0}},function(t,e,i){"use strict";i.d(e,"a",function(){return l});var n=i(0),r=i.n(n),s=i(1),o=i(2),a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.a),a(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="SmoothScroll",this._init()}},{key:"_init",value:function(){var t=this.$element[0].id||i.i(s.b)(6,"smooth-scroll");this.$element.attr({id:t}),this._events()}},{key:"_events",value:function(){var t=this,i=function(i){if(!r()(this).is('a[href^="#"]'))return!1;var n=this.getAttribute("href");t._inTransition=!0,e.scrollToLoc(n,t.options,function(){t._inTransition=!1}),i.preventDefault()};this.$element.on("click.zf.smoothScroll",i),this.$element.on("click.zf.smoothScroll",'a[href^="#"]',i)}}],[{key:"scrollToLoc",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaults,n=arguments[2];if(!r()(t).length)return!1;var s=Math.round(r()(t).offset().top-i.threshold/2-i.offset);r()("html, body").stop(!0).animate({scrollTop:s},i.animationDuration,i.animationEasing,function(){n&&"function"==typeof n&&n()})}}]),e}();l.defaults={animationDuration:500,animationEasing:"linear",threshold:50,offset:0}}
1,function(t,e,i){"use strict";i.d(e,"a",function(){return u});var n=i(0),r=i.n(n),s=i(3),o=i(8),a=i(2),l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.a),l(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Tabs",this._init(),s.a.register("Tabs",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"previous",ARROW_DOWN:"next",ARROW_LEFT:"previous"})}},{key:"_init",value:function(){var t=this,e=this;if(this.$element.attr({role:"tablist"}),this.$tabTitles=this.$element.find("."+this.options.linkClass),this.$tabContent=r()('[data-tabs-content="'+this.$element[0].id+'"]'),this.$tabTitles.each(function(){var t=r()(this),i=t.find("a"),n=t.hasClass(""+e.options.linkActiveClass),s=i.attr("data-tabs-target")||i[0].hash.slice(1),o=i[0].id?i[0].id:s+"-label",a=r()("#"+s);t.attr({role:"presentation"}),i.attr({role:"tab","aria-controls":s,"aria-selected":n,id:o,tabindex:n?"0":"-1"}),a.attr({role:"tabpanel","aria-labelledby":o}),n||a.attr("aria-hidden","true"),n&&e.options.autoFocus&&r()(window).load(function(){r()("html, body").animate({scrollTop:t.offset().top},e.options.deepLinkSmudgeDelay,function(){i.focus()})})}),this.options.matchHeight){var n=this.$tabContent.find("img");n.length?i.i(o.a)(n,this._setHeight.bind(this)):this._setHeight()}this._checkDeepLink=function(){var e=window.location.hash;if(e.length){var i=t.$element.find('[href$="'+e+'"]');if(i.length){if(t.selectTab(r()(e),!0),t.options.deepLinkSmudge){var n=t.$element.offset();r()("html, body").animate({scrollTop:n.top},t.options.deepLinkSmudgeDelay)}t.$element.trigger("deeplink.zf.tabs",[i,r()(e)])}}},this.options.deepLink&&this._checkDeepLink(),this._events()}},{key:"_events",value:function(){this._addKeyHandler(),this._addClickHandler(),this._setHeightMqHandler=null,this.options.matchHeight&&(this._setHeightMqHandler=this._setHeight.bind(this),r()(window).on("changed.zf.mediaquery",this._setHeightMqHandler)),this.options.deepLink&&r()(window).on("popstate",this._checkDeepLink)}},{key:"_addClickHandler",value:function(){var t=this;this.$element.off("click.zf.tabs").on("click.zf.tabs","."+this.options.linkClass,function(e){e.preventDefault(),e.stopPropagation(),t._handleTabChange(r()(this))})}},{key:"_addKeyHandler",value:function(){var t=this;this.$tabTitles.off("keydown.zf.tabs").on("keydown.zf.tabs",function(e){if(9!==e.which){var i,n,o=r()(this),a=o.parent("ul").children("li");a.each(function(e){r()(this).is(o)&&(t.options.wrapOnKeys?(i=0===e?a.last():a.eq(e-1),n=e===a.length-1?a.first():a.eq(e+1)):(i=a.eq(Math.max(0,e-1)),n=a.eq(Math.min(e+1,a.length-1))))}),s.a.handleKey(e,"Tabs",{open:function(){o.find('[role="tab"]').focus(),t._handleTabChange(o)},previous:function(){i.find('[role="tab"]').focus(),t._handleTabChange(i)},next:function(){n.find('[role="tab"]').focus(),t._handleTabChange(n)},handled:function(){e.stopPropagation(),e.preventDefault()}})}})}},{key:"_handleTabChange",value:function(t,e){if(t.hasClass(""+this.options.linkActiveClass))this.options.activeCollapse&&(this._collapseTab(t),this.$element.trigger("collapse.zf.tabs",[t]));else{var i=this.$element.find("."+this.options.linkClass+"."+this.options.linkActiveClass),n=t.find('[role="tab"]'),r=n.attr("data-tabs-target")||n[0].hash.slice(1),s=this.$tabContent.find("#"+r);if(this._collapseTab(i),this._openTab(t),this.options.deepLink&&!e){var o=t.find("a").attr("href");this.options.updateHistory?history.pushState({},"",o):history.replaceState({},"",o)}this.$element.trigger("change.zf.tabs",[t,s]),s.find("[data-mutate]").trigger("mutateme.zf.trigger")}}},{key:"_openTab",value:function(t){var e=t.find('[role="tab"]'),i=e.attr("data-tabs-target")||e[0].hash.slice(1),n=this.$tabContent.find("#"+i);t.addClass(""+this.options.linkActiveClass),e.attr({"aria-selected":"true",tabindex:"0"}),n.addClass(""+this.options.panelActiveClass).removeAttr("aria-hidden")}},{key:"_collapseTab",value:function(t){var e=t.removeClass(""+this.options.linkActiveClass).find('[role="tab"]').attr({"aria-selected":"false",tabindex:-1});r()("#"+e.attr("aria-controls")).removeClass(""+this.options.panelActiveClass).attr({"aria-hidden":"true"})}},{key:"selectTab",value:function(t,e){var i;(i="object"==(void 0===t?"undefined":_typeof(t))?t[0].id:t).indexOf("#")<0&&(i="#"+i);var n=this.$tabTitles.find('[href$="'+i+'"]').parent("."+this.options.linkClass);this._handleTabChange(n,e)}},{key:"_setHeight",value:function(){var t=0,e=this;this.$tabContent.find("."+this.options.panelClass).css("height","").each(function(){var i=r()(this),n=i.hasClass(""+e.options.panelActiveClass);n||i.css({visibility:"hidden",display:"block"});var s=this.getBoundingClientRect().height;n||i.css({visibility:"",display:""}),t=s>t?s:t}).css("height",t+"px")}},{key:"_destroy",value:function(){this.$element.find("."+this.options.linkClass).off(".zf.tabs").hide().end().find("."+this.options.panelClass).hide(),this.options.matchHeight&&null!=this._setHeightMqHandler&&r()(window).off("changed.zf.mediaquery",this._setHeightMqHandler),this.options.deepLink&&r()(window).off("popstate",this._checkDeepLink)}}]),e}();u.defaults={deepLink:!1,deepLinkSmudge:!1,deepLinkSmudgeDelay:300,updateHistory:!1,autoFocus:!1,wrapOnKeys:!0,matchHeight:!1,activeCollapse:!1,linkClass:"tabs-title",linkActiveClass:"is-active",panelClass:"tabs-panel",panelActiveClass:"is-active"}}
1,function(t,e,i){"use strict";function n(t,e,i){var n,r,s=this,o=e.duration,a=Object.keys(t.data())[0]||"timer",l=-1;this.isPaused=!1,this.restart=function(){l=-1,clearTimeout(r),this.start()},this.start=function(){this.isPaused=!1,clearTimeout(r),l=l<=0?o:l,t.data("paused",!1),n=Date.now(),r=setTimeout(function(){e.infinite&&s.restart(),i&&"function"==typeof i&&i()},l),t.trigger("timerstart.zf."+a)},this.pause=function(){this.isPaused=!0,clearTimeout(r),t.data("paused",!0);var e=Date.now();l-=e-n,t.trigger("timerpaused.zf."+a)}}i.d(e,"a",function(){return n});var r=i(0);i.n(r)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i.n(n),s=i(21),o=i(1),a=i(7),l=i(8),u=i(3),c=i(4),h=i(6),d=i(9),f=i(18),p=i(10),m=i(5),g=i(20),v=i(11),_=i(12),y=i(13),b=i(22),w=i(14),x=i(23),C=i(24),T=i(25),$=i(26),S=i(27),k=i(29),E=i(30),P=i(31),O=i(32),A=i(16),R=i(33),I=i(17),L=i(34),D=i(35),M=i(28);s.a.addToJquery(r.a),s.a.rtl=o.a,s.a.GetYoDigits=o.b,s.a.transitionend=o.c,s.a.Box=a.a,s.a.onImagesLoaded=l.a,s.a.Keyboard=u.a,s.a.MediaQuery=c.a,s.a.Motion=h.a,s.a.Move=h.b,s.a.Nest=d.a,s.a.Timer=f.a,p.a.init(r.a),m.a.init(r.a,s.a),s.a.plugin(g.a,"Abide"),s.a.plugin(v.a,"Accordion"),s.a.plugin(_.a,"AccordionMenu"),s.a.plugin(y.a,"Drilldown"),s.a.plugin(b.a,"Dropdown"),s.a.plugin(w.a,"DropdownMenu"),s.a.plugin(x.a,"Equalizer"),s.a.plugin(C.a,"Interchange"),s.a.plugin(T.a,"Magellan"),s.a.plugin($.a,"OffCanvas"),s.a.plugin(S.a,"Orbit"),s.a.plugin(k.a,"ResponsiveMenu"),s.a.plugin(E.a,"ResponsiveToggle"),s.a.plugin(P.a,"Reveal"),s.a.plugin(O.a,"Slider"),s.a.plugin(A.a,"SmoothScroll"),s.a.plugin(R.a,"Sticky"),s.a.plugin(I.a,"Tabs"),s.a.plugin(L.a,"Toggler"),s.a.plugin(D.a,"Tooltip"),s.a.plugin(M.a,"ResponsiveAccordionTabs")},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i(0),r=i.n(n),s=i(2),o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s.a),o(e,[{key:"_setup",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$element=t,this.options=r.a.extend(!0,{},e.defaults,this.$element.data(),i),this.className="Abide",this._init()}},{key:"_init",value:function(){this.$inputs=this.$element.find("input, textarea, select"),this._events()}},{key:"_events",value:function(){var t=this;this.$element.off(".abide").on("reset.zf.abide",function(){t.resetForm()}).on("submit.zf.abide",function(){return t.validateForm()}),"fieldChange"===this.options.validateOn&&this.$inputs.off("change.zf.abide").on("change.zf.abide",function(e){t.validateInput(r()(e.target))}),this.options.liveValidate&&this.$inputs.off("input.zf.abide").on("input.zf.abide",function(e){t.validateInput(r()(e.target))}),this.options.validateOnBlur&&this.$inputs.off("blur.zf.abide").on("blur.zf.abide",function(e){t.validateInput(r()(e.target))})}},{key:"_reflow",value:function(){this._init()}},{key:"requiredCheck",value:function(t){if(!t.attr("required"))return!0;var e=!0;switch(t[0].type){case"checkbox":e=t[0].checked;break;case"select":case"select-one":case"select-multiple":var i=t.find("option:selected");i.length&&i.val()||(e=!1);break;default:t.val()&&t.val().length||(e=!1)}return e}},{key:"findFormError",value:function(t){var e=t[0].id,i=t.siblings(this.options.formErrorSelector);return i.length||(i=t.parent().find(this.options.formErrorSelector)),i.add(this.$element.find('[data-form-error-for="'+e+'"]'))}},{key:"findLabel",value:function(t){var e=t[0].id,i=this.$element.find('label[for="'+e+'"]');return i.length?i:t.closest("label")}},{key:"findRadioLabels",value:function(t){var e=this,i=t.map(function(t,i){var n=i.id,s=e.$element.find('label[for="'+n+'"]');
1return s.length||(s=r()(i).closest("label")),s[0]});return r()(i)}},{key:"addErrorClasses",value:function(t){var e=this.findLabel(t),i=this.findFormError(t);e.length&&e.addClass(this.options.labelErrorClass),i.length&&i.addClass(this.options.formErrorClass),t.addClass(this.options.inputErrorClass).attr("data-invalid","")}},{key:"removeRadioErrorClasses",value:function(t){var e=this.$element.find(':radio[name="'+t+'"]'),i=this.findRadioLabels(e),n=this.findFormError(e);i.length&&i.removeClass(this.options.labelErrorClass),n.length&&n.removeClass(this.options.formErrorClass),e.removeClass(this.options.inputErrorClass).removeAttr("data-invalid")}},{key:"removeErrorClasses",value:function(t){if("radio"==t[0].type)return this.removeRadioErrorClasses(t.attr("name"));var e=this.findLabel(t),i=this.findFormError(t);e.length&&e.removeClass(this.options.labelErrorClass),i.length&&i.removeClass(this.options.formErrorClass),t.removeClass(this.options.inputErrorClass).removeAttr("data-invalid")}},{key:"validateInput",value:function(t){var e=this.requiredCheck(t),i=!1,n=!0,s=t.attr("data-validator"),o=!0;if(t.is("[data-abide-ignore]")||t.is('[type="hidden"]')||t.is("[disabled]"))return!0;switch(t[0].type){case"radio":i=this.validateRadio(t.attr("name"));break;case"checkbox":i=e;break;case"select":case"select-one":case"select-multiple":i=e;break;default:i=this.validateText(t)}s&&(n=this.matchValidation(t,s,t.attr("required"))),t.attr("data-equalto")&&(o=this.options.validators.equalTo(t));var a=-1===[e,i,n,o].indexOf(!1),l=(a?"valid":"invalid")+".zf.abide";if(a){var u=this.$element.find('[data-equalto="'+t.attr("id")+'"]');if(u.length){var c=this;u.each(function(){r()(this).val()&&c.validateInput(r()(this))})}}return this[a?"removeErrorClasses":"addErrorClasses"](t),t.trigger(l,[t]),a}},{key:"validateForm",value:function(){var t=[],e=this;this.$inputs.each(function(){t.push(e.validateInput(r()(this)))});var i=-1===t.indexOf(!1);return this.$element.find("[data-abide-error]").css("display",i?"none":"block"),this.$element.trigger((i?"formvalid":"forminvalid")+".zf.abide",[this.$element]),i}},{key:"validateText",value:function(t,e){e=e||t.attr("pattern")||t.attr("type");var i=t.val(),n=!1;return i.length?n=this.options.patterns.hasOwnProperty(e)?this.options.patterns[e].test(i):e===t.attr("type")||new RegExp(e).test(i):t.prop("required")||(n=!0),n}},{key:"validateRadio",value:function(t){var e=this.$element.find(':radio[name="'+t+'"]'),i=!1,n=!1;return e.each(function(t,e){r()(e).attr("required")&&(n=!0)}),n||(i=!0),i||e.each(function(t,e){r()(e).prop("checked")&&(i=!0)}),i}},{key:"matchValidation",value:function(t,e,i){var n=this;return i=!!i,-1===e.split(" ").map(function(e){return n.options.validators[e](t,i,t.parent())}).indexOf(!1)}},{key:"resetForm",value:function(){var t=this.$element,e=this.options;r()("."+e.labelErrorClass,t).not("small").removeClass(e.labelErrorClass),r()("."+e.inputErrorClass,t).not("small").removeClass(e.inputErrorClass),r()(e.formErrorSelector+"."+e.formErrorClass).removeClass(e.formErrorClass),t.find("[data-abide-error]").css("display","none"),r()(":input",t).not(":button, :submit, :reset, :hidden, :radio, :checkbox, [data-abide-ignore]").val("").removeAttr("data-invalid"),r()(":input:radio",t).not("[data-abide-ignore]").prop("checked",!1).removeAttr("data-invalid"),r()(":input:checkbox",t).not("[data-abide-ignore]").prop("checked",!1).removeAttr("data-invalid"),t.trigger("formreset.zf.abide",[t])}},{key:"_destroy",value:function(){var t=this;this.$element.off(".abide").find("[data-abide-error]").css("display","none"),this.$inputs.off(".abide").each(function(){t.removeErrorClasses(r()(this))})}}]),e}();a.defaults={validateOn:"fieldChange",labelErrorClass:"is-invalid-label",inputErrorClass:"is-invalid-input",formErrorSelector:".form-error",formErrorClass:"is-visible",liveValidate:!1,validateOnBlur:!1,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:[\.\,]\d+)?$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(?:222[1-9]|2[3-6][0-9]{2}|27[0-1][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,url:/^(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,day_month_year:/^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,website:{test:function(t){return a.defaults.patterns.domain.test(t)||a.defaults.patterns.url.test(t)}}}
1,validators:{equalTo:function(t,e,i){return r()("#"+t.attr("data-equalto")).val()===t.val()}}}},function(t,e,i){"use strict";function n(t){if(void 0===Function.prototype.name){var e=/function\s([^(]{1,})\(/.exec(t.toString());return e&&e.length>1?e[1].trim():""}return void 0===t.prototype?t.constructor.name:t.prototype.constructor.name}function r(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}i.d(e,"a",function(){return u});var s=i(0),o=i.n(s),a=i(1),l=i(4),u={version:"6.4.3",_plugins:{},_uuids:[],plugin:function(t,e){var i=e||n(t),s=r(i);this._plugins[s]=this[i]=t},registerPlugin:function(t,e){var s=e?r(e):n(t.constructor).toLowerCase();t.uuid=i.i(a.b)(6,s),t.$element.attr("data-"+s)||t.$element.attr("data-"+s,t.uuid),t.$element.data("zfPlugin")||t.$element.data("zfPlugin",t),t.$element.trigger("init.zf."+s),this._uuids.push(t.uuid)},unregisterPlugin:function(t){var e=r(n(t.$element.data("zfPlugin").constructor));for(var i in this._uuids.splice(this._uuids.indexOf(t.uuid),1),t.$element.removeAttr("data-"+e).removeData("zfPlugin").trigger("destroyed.zf."+e),t)t[i]=null},reInit:function(t){var e=t instanceof o.a;try{if(e)t.each(function(){o()(this).data("zfPlugin")._init()});else{var i=this;({object:function(t){t.forEach(function(t){t=r(t),o()("[data-"+t+"]").foundation("_init")})},string:function(){t=r(t),o()("[data-"+t+"]").foundation("_init")},undefined:function(){this.object(Object.keys(i._plugins))}})[void 0===t?"undefined":_typeof(t)](t)}}catch(t){console.error(t)}finally{return t}},reflow:function(t,e){void 0===e?e=Object.keys(this._plugins):"string"==typeof e&&(e=[e]);var i=this;o.a.each(e,function(e,n){var r=i._plugins[n];o()(t).find("[data-"+n+"]").addBack("[data-"+n+"]").each(function(){var t=o()(this),e={};if(t.data("zfPlugin"))console.warn("Tried to initialize "+n+" on an element that already has a Foundation plugin.");else{t.attr("data-options")&&t.attr("data-options").split(";").forEach(function(t,i){var n=t.split(":").map(function(t){return t.trim()});n[0]&&(e[n[0]]=function(t){return"true"===t||"false"!==t&&(isNaN(1*t)?t:parseFloat(t))}(n[1]))});try{t.data("zfPlugin",new r(o()(this),e))}catch(t){console.error(t)}finally{return}}})})},getFnName:n,addToJquery:function(t){return t.fn.foundation=function(e){var i=void 0===e?"undefined":_typeof(e),r=t(".no-js");if(r.length&&r.removeClass("no-js"),"undefined"===i)l.a._init(),u.reflow(this);else{if("string"!==i)throw new TypeError("We're sorry, "+i+" is not a valid parameter. You must use a string representing the method you wish to invoke.");var s=Array.prototype.slice.call(arguments,1),o=this.data("zfPlugin");if(void 0===o||void 0===o[e])throw new ReferenceError("We're sorry, '"+e+"' is not an available method for "+(o?n(o):"this element")+".");1===this.length?o[e].apply(o,s):this.each(function(i,n){o[e].apply(t(n).data("zfPlugin"),s)})}return this},t}};u.util={throttle:function(t,e){var i=null;return function(){var n=this,r=arguments;null===i&&(i=setTimeout(function(){t.apply(n,r),i=null},e))}}},window.Foundation=u,function(){Date.now&&window.Date.now||(window.Date.now=Date.now=function(){return(new Date).getTime()});for(var t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e){var i=t[e];window.requestAnimationFrame=window[i+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var n=0;window.requestAnimationFrame=function(t){var e=Date.now(),i=Math.max(n+16,e);return setTimeout(function(){t(n=i)},i-e)},window.cancelAnimationFrame=clearTimeout}window.performance&&window.performance.now||(window.performance={start:Date.now(),now:function(){return Date.now()-this.start}})}(),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),i=this,n=function(){},r=function(){return i.apply(this instanceof n?this:t,e.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(n.prototype=this.prototype),r.prototype=new n,r})}
1,function(t,e,i){"use strict";i.d(e,"a",function(){return h});var n=i(0),r=i.n(n),s=i(3),o=i(1),a=i(15),l=i(5),u=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0},h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.a),u(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Dropdown",l.a.init(r.a),this._init(),s.a.register("Dropdown",{ENTER:"open",SPACE:"open",ESCAPE:"close"})}},{key:"_init",value:function(){var t=this.$element.attr("id");this.$anchors=r()('[data-toggle="'+t+'"]').length?r()('[data-toggle="'+t+'"]'):r()('[data-open="'+t+'"]'),this.$anchors.attr({"aria-controls":t,"data-is-focus":!1,"data-yeti-box":t,"aria-haspopup":!0,"aria-expanded":!1}),this._setCurrentAnchor(this.$anchors.first()),this.options.parentClass?this.$parent=this.$element.parents("."+this.options.parentClass):this.$parent=null,this.$element.attr({"aria-hidden":"true","data-yeti-box":t,"data-resize":t,"aria-labelledby":this.$currentAnchor.id||i.i(o.b)(6,"dd-anchor")}),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_init",this).call(this),this._events()}},{key:"_getDefaultPosition",value:function(){var t=this.$element[0].className.match(/(top|left|right|bottom)/g);return t?t[0]:"bottom"}},{key:"_getDefaultAlignment",value:function(){var t=/float-(\S+)/.exec(this.$currentAnchor.className);return t?t[1]:c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_getDefaultAlignment",this).call(this)}},{key:"_setPosition",value:function(){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_setPosition",this).call(this,this.$currentAnchor,this.$element,this.$parent)}},{key:"_setCurrentAnchor",value:function(t){this.$currentAnchor=r()(t)}},{key:"_events",value:function(){var t=this;this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"resizeme.zf.trigger":this._setPosition.bind(this)}),this.$anchors.off("click.zf.trigger").on("click.zf.trigger",function(){t._setCurrentAnchor(this)}),this.options.hover&&(this.$anchors.off("mouseenter.zf.dropdown mouseleave.zf.dropdown").on("mouseenter.zf.dropdown",function(){t._setCurrentAnchor(this);var e=r()("body").data();void 0!==e.whatinput&&"mouse"!==e.whatinput||(clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.open(),t.$anchors.data("hover",!0)},t.options.hoverDelay))}).on("mouseleave.zf.dropdown",function(){clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.close(),t.$anchors.data("hover",!1)},t.options.hoverDelay)}),this.options.hoverPane&&this.$element.off("mouseenter.zf.dropdown mouseleave.zf.dropdown").on("mouseenter.zf.dropdown",function(){clearTimeout(t.timeout)}).on("mouseleave.zf.dropdown",function(){clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.close(),t.$anchors.data("hover",!1)},t.options.hoverDelay)})),this.$anchors.add(this.$element).on("keydown.zf.dropdown",function(e){var i=r()(this);s.a.findFocusable(t.$element),s.a.handleKey(e,"Dropdown",{open:function(){i.is(t.$anchors)&&(t.open(),t.$element.attr("tabindex",-1).focus(),e.preventDefault())},close:function(){t.close(),t.$anchors.focus()}})})}},{key:"_addBodyHandler",value:function(){var t=r()(document.body).not(this.$element),e=this;t.off("click.zf.dropdown").on("click.zf.dropdown",function(i){e.$anchors.is(i.target)||e.$anchors.find(i.target).length||e.$element.find(i.target).length||(e.close(),t.off("click.zf.dropdown"))})}},{key:"open",value:function(){if(this.$element.trigger("closeme.zf.dropdown",this.$element.attr("id")),this.$anchors.addClass("hover").attr({"aria-expanded":!0}),this.$element.addClass("is-opening"),this._setPosition(),this.$element.removeClass("is-opening").addClass("is-open").attr({"aria-hidden":!1}),this.options.autoFocus){var t=s.a.findFocusable(this.$element);t.length&&t.eq(0).focus()}this.options.closeOnClick&&this._addBodyHandler(),this.options.trapFocus&&s.a.trapFocus(this.$element),this.$element.trigger("show.zf.dropdown",[this.$element])}},{key:"close",value:function(){if(!this.$element.hasClass("is-open"))return!1;this.$element.removeClass("is-open").attr({"aria-hidden":!0}),this.$anchors.removeClass("hover").attr("aria-expanded",!1),this.$element.trigger("hide.zf.dropdown",[this.$element]),this.options.trapFocus&&s.a.releaseFocus(this.$element)}},{key:"toggle",value:function(){if(this.$element.hasClass("is-open")){if(this.$anchors.data("hover"))return;this.close()}else this.open()}},{key:"_destroy",value:function(){this.$element.off(".zf.trigger").hide(),this.$anchors.off(".zf.dropdown"),r()(document.body).off("click.zf.dropdown")}}]),e}();h.defaults={parentClass:null,hoverDelay:250,hover:!1,hoverPane:!1,vOffset:0,hOffset:0,positionClass:"",position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!0,trapFocus:!1,autoFocus:!1,closeOnClick:!1}}
1,function(t,e,i){"use strict";i.d(e,"a",function(){return c});var n=i(0),r=i.n(n),s=i(4),o=i(8),a=i(1),l=i(2),u=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,l.a),u(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Equalizer",this._init()}},{key:"_init",value:function(){var t=this.$element.attr("data-equalizer")||"",e=this.$element.find('[data-equalizer-watch="'+t+'"]');s.a._init(),this.$watched=e.length?e:this.$element.find("[data-equalizer-watch]"),this.$element.attr("data-resize",t||i.i(a.b)(6,"eq")),this.$element.attr("data-mutate",t||i.i(a.b)(6,"eq")),this.hasNested=this.$element.find("[data-equalizer]").length>0,this.isNested=this.$element.parentsUntil(document.body,"[data-equalizer]").length>0,this.isOn=!1,this._bindHandler={onResizeMeBound:this._onResizeMe.bind(this),onPostEqualizedBound:this._onPostEqualized.bind(this)};var n,l=this.$element.find("img");this.options.equalizeOn?(n=this._checkMQ(),r()(window).on("changed.zf.mediaquery",this._checkMQ.bind(this))):this._events(),(void 0!==n&&!1===n||void 0===n)&&(l.length?i.i(o.a)(l,this._reflow.bind(this)):this._reflow())}},{key:"_pauseEvents",value:function(){this.isOn=!1,this.$element.off({".zf.equalizer":this._bindHandler.onPostEqualizedBound,"resizeme.zf.trigger":this._bindHandler.onResizeMeBound,"mutateme.zf.trigger":this._bindHandler.onResizeMeBound})}},{key:"_onResizeMe",value:function(t){this._reflow()}},{key:"_onPostEqualized",value:function(t){t.target!==this.$element[0]&&this._reflow()}},{key:"_events",value:function(){this._pauseEvents(),this.hasNested?this.$element.on("postequalized.zf.equalizer",this._bindHandler.onPostEqualizedBound):(this.$element.on("resizeme.zf.trigger",this._bindHandler.onResizeMeBound),this.$element.on("mutateme.zf.trigger",this._bindHandler.onResizeMeBound)),this.isOn=!0}},{key:"_checkMQ",value:function(){var t=!s.a.is(this.options.equalizeOn);return t?this.isOn&&(this._pauseEvents(),this.$watched.css("height","auto")):this.isOn||this._events(),t}},{key:"_killswitch",value:function(){}},{key:"_reflow",value:function(){if(!this.options.equalizeOnStack&&this._isStacked())return this.$watched.css("height","auto"),!1;this.options.equalizeByRow?this.getHeightsByRow(this.applyHeightByRow.bind(this)):this.getHeights(this.applyHeight.bind(this))}},{key:"_isStacked",value:function(){return!this.$watched[0]||!this.$watched[1]||this.$watched[0].getBoundingClientRect().top!==this.$watched[1].getBoundingClientRect().top}},{key:"getHeights",value:function(t){for(var e=[],i=0,n=this.$watched.length;i<n;i++)this.$watched[i].style.height="auto",e.push(this.$watched[i].offsetHeight);t(e)}},{key:"getHeightsByRow",value:function(t){var e=this.$watched.length?this.$watched.first().offset().top:0,i=[],n=0;i[n]=[];for(var s=0,o=this.$watched.length;s<o;s++){this.$watched[s].style.height="auto";var a=r()(this.$watched[s]).offset().top;a!=e&&(i[++n]=[],e=a),i[n].push([this.$watched[s],this.$watched[s].offsetHeight])}for(var l=0,u=i.length;l<u;l++){var c=r()(i[l]).map(function(){return this[1]}).get(),h=Math.max.apply(null,c);i[l].push(h)}t(i)}},{key:"applyHeight",value:function(t){var e=Math.max.apply(null,t);
1this.$element.trigger("preequalized.zf.equalizer"),this.$watched.css("height",e),this.$element.trigger("postequalized.zf.equalizer")}},{key:"applyHeightByRow",value:function(t){this.$element.trigger("preequalized.zf.equalizer");for(var e=0,i=t.length;e<i;e++){var n=t[e].length,s=t[e][n-1];if(n<=2)r()(t[e][0][0]).css({height:"auto"});else{this.$element.trigger("preequalizedrow.zf.equalizer");for(var o=0,a=n-1;o<a;o++)r()(t[e][o][0]).css({height:s});this.$element.trigger("postequalizedrow.zf.equalizer")}}this.$element.trigger("postequalized.zf.equalizer")}},{key:"_destroy",value:function(){this._pauseEvents(),this.$watched.css("height","auto")}}]),e}();c.defaults={equalizeOnStack:!1,equalizeByRow:!1,equalizeOn:""}},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var n=i(0),r=i.n(n),s=i(4),o=i(2),a=i(1),l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.a),l(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,i),this.rules=[],this.currentPath="",this.className="Interchange",this._init(),this._events()}},{key:"_init",value:function(){s.a._init();var t=this.$element[0].id||i.i(a.b)(6,"interchange");this.$element.attr({"data-resize":t,id:t}),this._addBreakpoints(),this._generateRules(),this._reflow()}},{key:"_events",value:function(){var t=this;this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger",function(){return t._reflow()})}},{key:"_reflow",value:function(){var t;for(var e in this.rules)if(this.rules.hasOwnProperty(e)){var i=this.rules[e];window.matchMedia(i.query).matches&&(t=i)}t&&this.replace(t.path)}},{key:"_addBreakpoints",value:function(){for(var t in s.a.queries)if(s.a.queries.hasOwnProperty(t)){var i=s.a.queries[t];e.SPECIAL_QUERIES[i.name]=i.value}}},{key:"_generateRules",value:function(t){var i,n=[];for(var r in i="string"==typeof(i=this.options.rules?this.options.rules:this.$element.data("interchange"))?i.match(/\[.*?\]/g):i)if(i.hasOwnProperty(r)){var s=i[r].slice(1,-1).split(", "),o=s.slice(0,-1).join(""),a=s[s.length-1];e.SPECIAL_QUERIES[a]&&(a=e.SPECIAL_QUERIES[a]),n.push({path:o,query:a})}this.rules=n}},{key:"replace",value:function(t){if(this.currentPath!==t){var e=this,i="replaced.zf.interchange";"IMG"===this.$element[0].nodeName?this.$element.attr("src",t).on("load",function(){e.currentPath=t}).trigger(i):t.match(/\.(gif|jpg|jpeg|png|svg|tiff)([?#].*)?/i)?(t=t.replace(/\(/g,"%28").replace(/\)/g,"%29"),this.$element.css({"background-image":"url("+t+")"}).trigger(i)):r.a.get(t,function(n){e.$element.html(n).trigger(i),r()(n).foundation(),e.currentPath=t})}}},{key:"_destroy",value:function(){this.$element.off("resizeme.zf.trigger")}}]),e}();u.defaults={rules:null},u.SPECIAL_QUERIES={landscape:"screen and (orientation: landscape)",portrait:"screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)"}},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var n=i(0),r=i.n(n),s=i(1),o=i(2),a=i(16),l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}
1return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.a),l(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Magellan",this._init(),this.calcPoints()}},{key:"_init",value:function(){var t=this.$element[0].id||i.i(s.b)(6,"magellan");this.$targets=r()("[data-magellan-target]"),this.$links=this.$element.find("a"),this.$element.attr({"data-resize":t,"data-scroll":t,id:t}),this.$active=r()(),this.scrollPos=parseInt(window.pageYOffset,10),this._events()}},{key:"calcPoints",value:function(){var t=this,e=document.body,i=document.documentElement;this.points=[],this.winHeight=Math.round(Math.max(window.innerHeight,i.clientHeight)),this.docHeight=Math.round(Math.max(e.scrollHeight,e.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)),this.$targets.each(function(){var e=r()(this),i=Math.round(e.offset().top-t.options.threshold);e.targetPoint=i,t.points.push(i)})}},{key:"_events",value:function(){var t=this;r()("html, body"),t.options.animationDuration,t.options.animationEasing,r()(window).one("load",function(){t.options.deepLinking&&location.hash&&t.scrollToLoc(location.hash),t.calcPoints(),t._updateActive()}),this.$element.on({"resizeme.zf.trigger":this.reflow.bind(this),"scrollme.zf.trigger":this._updateActive.bind(this)}).on("click.zf.magellan",'a[href^="#"]',function(e){e.preventDefault();var i=this.getAttribute("href");t.scrollToLoc(i)}),this._deepLinkScroll=function(e){t.options.deepLinking&&t.scrollToLoc(window.location.hash)},r()(window).on("popstate",this._deepLinkScroll)}},{key:"scrollToLoc",value:function(t){this._inTransition=!0;var e=this,i={animationEasing:this.options.animationEasing,animationDuration:this.options.animationDuration,threshold:this.options.threshold,offset:this.options.offset};a.a.scrollToLoc(t,i,function(){e._inTransition=!1,e._updateActive()})}},{key:"reflow",value:function(){this.calcPoints(),this._updateActive()}},{key:"_updateActive",value:function(){if(!this._inTransition){var t,e=parseInt(window.pageYOffset,10);if(e+this.winHeight===this.docHeight)t=this.points.length-1;else if(e<this.points[0])t=void 0;else{var i=this.scrollPos<e,n=this,r=this.points.filter(function(t,r){return i?t-n.options.offset<=e:t-n.options.offset-n.options.threshold<=e});t=r.length?r.length-1:0}if(this.$active.removeClass(this.options.activeClass),this.$active=this.$links.filter('[href="#'+this.$targets.eq(t).data("magellan-target")+'"]').addClass(this.options.activeClass),this.options.deepLinking){var s="";void 0!=t&&(s=this.$active[0].getAttribute("href")),s!==window.location.hash&&(window.history.pushState?window.history.pushState(null,null,s):window.location.hash=s)}this.scrollPos=e,this.$element.trigger("update.zf.magellan",[this.$active])}}},{key:"_destroy",value:function(){if(this.$element.off(".zf.trigger .zf.magellan").find("."+this.options.activeClass).removeClass(this.options.activeClass),this.options.deepLinking){var t=this.$active[0].getAttribute("href");window.location.hash.replace(t,"")}r()(window).off("popstate",this._deepLinkScroll)}}]),e}();u.defaults={animationDuration:500,animationEasing:"linear",threshold:50,activeClass:"is-active",deepLinking:!1,offset:0}},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var n=i(0),r=i.n(n),s=i(3),o=i(4),a=i(1),l=i(2),u=i(5),c=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}
1return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,l.a),c(e,[{key:"_setup",value:function(t,i){var n=this;this.className="OffCanvas",this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.contentClasses={base:[],reveal:[]},this.$lastTrigger=r()(),this.$triggers=r()(),this.position="left",this.$content=r()(),this.nested=!!this.options.nested,r()(["push","overlap"]).each(function(t,e){n.contentClasses.base.push("has-transition-"+e)}),r()(["left","right","top","bottom"]).each(function(t,e){n.contentClasses.base.push("has-position-"+e),n.contentClasses.reveal.push("has-reveal-"+e)}),u.a.init(r.a),o.a._init(),this._init(),this._events(),s.a.register("OffCanvas",{ESCAPE:"close"})}},{key:"_init",value:function(){var t=this.$element.attr("id");if(this.$element.attr("aria-hidden","true"),this.options.contentId?this.$content=r()("#"+this.options.contentId):this.$element.siblings("[data-off-canvas-content]").length?this.$content=this.$element.siblings("[data-off-canvas-content]").first():this.$content=this.$element.closest("[data-off-canvas-content]").first(),this.options.contentId?this.options.contentId&&null===this.options.nested&&console.warn("Remember to use the nested option if using the content ID option!"):this.nested=0===this.$element.siblings("[data-off-canvas-content]").length,!0===this.nested&&(this.options.transition="overlap",this.$element.removeClass("is-transition-push")),this.$element.addClass("is-transition-"+this.options.transition+" is-closed"),this.$triggers=r()(document).find('[data-open="'+t+'"], [data-close="'+t+'"], [data-toggle="'+t+'"]').attr("aria-expanded","false").attr("aria-controls",t),this.position=this.$element.is(".position-left, .position-top, .position-right, .position-bottom")?this.$element.attr("class").match(/position\-(left|top|right|bottom)/)[1]:this.position,!0===this.options.contentOverlay){var e=document.createElement("div"),i="fixed"===r()(this.$element).css("position")?"is-overlay-fixed":"is-overlay-absolute";e.setAttribute("class","js-off-canvas-overlay "+i),this.$overlay=r()(e),"is-overlay-fixed"===i?r()(this.$overlay).insertAfter(this.$element):this.$content.append(this.$overlay)}this.options.isRevealed=this.options.isRevealed||new RegExp(this.options.revealClass,"g").test(this.$element[0].className),!0===this.options.isRevealed&&(this.options.revealOn=this.options.revealOn||this.$element[0].className.match(/(reveal-for-medium|reveal-for-large)/g)[0].split("-")[2],this._setMQChecker()),this.options.transitionTime&&this.$element.css("transition-duration",this.options.transitionTime),this._removeContentClasses()}},{key:"_events",value:function(){this.$element.off(".zf.trigger .zf.offcanvas").on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"keydown.zf.offcanvas":this._handleKeyboard.bind(this)}),!0===this.options.closeOnClick&&(this.options.contentOverlay?this.$overlay:this.$content).on({"click.zf.offcanvas":this.close.bind(this)})}},{key:"_setMQChecker",value:function(){var t=this;r()(window).on("changed.zf.mediaquery",function(){o.a.atLeast(t.options.revealOn)?t.reveal(!0):t.reveal(!1)}).one("load.zf.offcanvas",function(){o.a.atLeast(t.options.revealOn)&&t.reveal(!0)})}},{key:"_removeContentClasses",value:function(t){"boolean"!=typeof t?this.$content.removeClass(this.contentClasses.base.join(" ")):!1===t&&this.$content.removeClass("has-reveal-"+this.position)}},{key:"_addContentClasses",value:function(t){this._removeContentClasses(t),"boolean"!=typeof t?this.$content.addClass("has-transition-"+this.options.transition+" has-position-"+this.position):!0===t&&this.$content.addClass("has-reveal-"+this.position)}},{key:"reveal",value:function(t){t?(this.close(),this.isRevealed=!0,this.$element.attr("aria-hidden","false"),this.$element.off("open.zf.trigger toggle.zf.trigger"),this.$element.removeClass("is-closed")):(this.isRevealed=!1,this.$element.attr("aria-hidden","true"),this.$element.off("open.zf.trigger toggle.zf.trigger").on({"open.zf.trigger":this.open.bind(this),"toggle.zf.trigger":this.toggle.bind(this)}),this.$element.addClass("is-closed")),this._addContentClasses(t)}},{key:"_stopScrolling",value:function(t){return!1}},{key:"_recordScrollable",value:function(t){var e=this;e.scrollHeight!==e.clientHeight&&(0===e.scrollTop&&(e.scrollTop=1),e.scrollTop===e.scrollHeight-e.clientHeight&&(e.scrollTop=e.scrollHeight-e.clientHeight-1)),e.allowUp=e.scrollTop>0,e.allowDown=e.scrollTop<e.scrollHeight-e.clientHeight,e.lastY=t.originalEvent.pageY}},{key:"_stopScrollPropagation",value:function(t){var e=this,i=t.pageY<e.lastY,n=!i;e.lastY=t.pageY,i&&e.allowUp||n&&e.allowDown?t.stopPropagation():t.preventDefault()}},{key:"open",value:function(t,e){if(!this.$element.hasClass("is-open")&&!this.isRevealed){var n=this;e&&(this.$lastTrigger=e),"top"===this.options.forceTo?window.scrollTo(0,0):"bottom"===this.options.forceTo&&window.scrollTo(0,document.body.scrollHeight),this.options.transitionTime&&"overlap"
1!==this.options.transition?this.$element.siblings("[data-off-canvas-content]").css("transition-duration",this.options.transitionTime):this.$element.siblings("[data-off-canvas-content]").css("transition-duration",""),this.$element.addClass("is-open").removeClass("is-closed"),this.$triggers.attr("aria-expanded","true"),this.$element.attr("aria-hidden","false").trigger("opened.zf.offcanvas"),this.$content.addClass("is-open-"+this.position),!1===this.options.contentScroll&&(r()("body").addClass("is-off-canvas-open").on("touchmove",this._stopScrolling),this.$element.on("touchstart",this._recordScrollable),this.$element.on("touchmove",this._stopScrollPropagation)),!0===this.options.contentOverlay&&this.$overlay.addClass("is-visible"),!0===this.options.closeOnClick&&!0===this.options.contentOverlay&&this.$overlay.addClass("is-closable"),!0===this.options.autoFocus&&this.$element.one(i.i(a.c)(this.$element),function(){if(n.$element.hasClass("is-open")){var t=n.$element.find("[data-autofocus]");t.length?t.eq(0).focus():n.$element.find("a, button").eq(0).focus()}}),!0===this.options.trapFocus&&(this.$content.attr("tabindex","-1"),s.a.trapFocus(this.$element)),this._addContentClasses()}}},{key:"close",value:function(t){if(this.$element.hasClass("is-open")&&!this.isRevealed){var e=this;this.$element.removeClass("is-open"),this.$element.attr("aria-hidden","true").trigger("closed.zf.offcanvas"),this.$content.removeClass("is-open-left is-open-top is-open-right is-open-bottom"),!1===this.options.contentScroll&&(r()("body").removeClass("is-off-canvas-open").off("touchmove",this._stopScrolling),this.$element.off("touchstart",this._recordScrollable),this.$element.off("touchmove",this._stopScrollPropagation)),!0===this.options.contentOverlay&&this.$overlay.removeClass("is-visible"),!0===this.options.closeOnClick&&!0===this.options.contentOverlay&&this.$overlay.removeClass("is-closable"),this.$triggers.attr("aria-expanded","false"),!0===this.options.trapFocus&&(this.$content.removeAttr("tabindex"),s.a.releaseFocus(this.$element)),this.$element.one(i.i(a.c)(this.$element),function(t){e.$element.addClass("is-closed"),e._removeContentClasses()})}}},{key:"toggle",value:function(t,e){this.$element.hasClass("is-open")?this.close(t,e):this.open(t,e)}},{key:"_handleKeyboard",value:function(t){var e=this;s.a.handleKey(t,"OffCanvas",{close:function(){return e.close(),e.$lastTrigger.focus(),!0},handled:function(){t.stopPropagation(),t.preventDefault()}})}},{key:"_destroy",value:function(){this.close(),this.$element.off(".zf.trigger .zf.offcanvas"),this.$overlay.off(".zf.offcanvas")}}]),e}();h.defaults={closeOnClick:!0,contentOverlay:!0,contentId:null,nested:null,contentScroll:!0,transitionTime:null,transition:"push",forceTo:null,isRevealed:!1,revealOn:null,autoFocus:!0,revealClass:"reveal-for-",trapFocus:!1}},function(t,e,i){"use strict";i.d(e,"a",function(){return f});var n=i(0),r=i.n(n),s=i(3),o=i(6),a=i(18),l=i(8),u=i(1),c=i(2),h=i(10),d=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,c.a),d(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Orbit",h.a.init(r.a),this._init(),s.a.register("Orbit",{ltr:{ARROW_RIGHT:"next",ARROW_LEFT:"previous"},rtl:{ARROW_LEFT:"next",ARROW_RIGHT:"previous"}})}},{key:"_init",value:function(){this._reset(),this.$wrapper=this.$element.find("."+this.options.containerClass),this.$slides=this.$element.find("."+this.options.slideClass);var t=this.$element.find("img"),e=this.$slides.filter(".is-active"),n=this.$element[0].id||i.i(u.b)(6,"orbit");this.$element.attr({"data-resize":n,id:n}),e.length||this.$slides.eq(0).addClass("is-active"),this.options.useMUI||this.$slides.addClass("no-motionui"),t.length?
1i.i(l.a)(t,this._prepareForOrbit.bind(this)):this._prepareForOrbit(),this.options.bullets&&this._loadBullets(),this._events(),this.options.autoPlay&&this.$slides.length>1&&this.geoSync(),this.options.accessible&&this.$wrapper.attr("tabindex",0)}},{key:"_loadBullets",value:function(){this.$bullets=this.$element.find("."+this.options.boxOfBullets).find("button")}},{key:"geoSync",value:function(){var t=this;this.timer=new a.a(this.$element,{duration:this.options.timerDelay,infinite:!1},function(){t.changeSlide(!0)}),this.timer.start()}},{key:"_prepareForOrbit",value:function(){this._setWrapperHeight()}},{key:"_setWrapperHeight",value:function(t){var e,i=0,n=0,s=this;this.$slides.each(function(){e=this.getBoundingClientRect().height,r()(this).attr("data-slide",n),/mui/g.test(r()(this)[0].className)||s.$slides.filter(".is-active")[0]===s.$slides.eq(n)[0]||r()(this).css({position:"relative",display:"none"}),i=e>i?e:i,n++}),n===this.$slides.length&&(this.$wrapper.css({height:i}),t&&t(i))}},{key:"_setSlideHeight",value:function(t){this.$slides.each(function(){r()(this).css("max-height",t)})}},{key:"_events",value:function(){var t=this;this.$element.off(".resizeme.zf.trigger").on({"resizeme.zf.trigger":this._prepareForOrbit.bind(this)}),this.$slides.length>1&&(this.options.swipe&&this.$slides.off("swipeleft.zf.orbit swiperight.zf.orbit").on("swipeleft.zf.orbit",function(e){e.preventDefault(),t.changeSlide(!0)}).on("swiperight.zf.orbit",function(e){e.preventDefault(),t.changeSlide(!1)}),this.options.autoPlay&&(this.$slides.on("click.zf.orbit",function(){t.$element.data("clickedOn",!t.$element.data("clickedOn")),t.timer[t.$element.data("clickedOn")?"pause":"start"]()}),this.options.pauseOnHover&&this.$element.on("mouseenter.zf.orbit",function(){t.timer.pause()}).on("mouseleave.zf.orbit",function(){t.$element.data("clickedOn")||t.timer.start()})),this.options.navButtons&&this.$element.find("."+this.options.nextClass+", ."+this.options.prevClass).attr("tabindex",0).on("click.zf.orbit touchend.zf.orbit",function(e){e.preventDefault(),t.changeSlide(r()(this).hasClass(t.options.nextClass))}),this.options.bullets&&this.$bullets.on("click.zf.orbit touchend.zf.orbit",function(){if(/is-active/g.test(this.className))return!1;var e=r()(this).data("slide"),i=e>t.$slides.filter(".is-active").data("slide"),n=t.$slides.eq(e);t.changeSlide(i,n,e)}),this.options.accessible&&this.$wrapper.add(this.$bullets).on("keydown.zf.orbit",function(e){s.a.handleKey(e,"Orbit",{next:function(){t.changeSlide(!0)},previous:function(){t.changeSlide(!1)},handled:function(){r()(e.target).is(t.$bullets)&&t.$bullets.filter(".is-active").focus()}})}))}},{key:"_reset",value:function(){void 0!==this.$slides&&this.$slides.length>1&&(this.$element.off(".zf.orbit").find("*").off(".zf.orbit"),this.options.autoPlay&&this.timer.restart(),this.$slides.each(function(t){r()(t).removeClass("is-active is-active is-in").removeAttr("aria-live").hide()}),this.$slides.first().addClass("is-active").show(),this.$element.trigger("slidechange.zf.orbit",[this.$slides.first()]),this.options.bullets&&this._updateBullets(0))}},{key:"changeSlide",value:function(t,e,i){if(this.$slides){var n=this.$slides.filter(".is-active").eq(0);if(/mui/g.test(n[0].className))return!1;var r,s=this.$slides.first(),a=this.$slides.last(),l=t?"Right":"Left",u=t?"Left":"Right",c=this;(r=e||(t?this.options.infiniteWrap?n.next("."+this.options.slideClass).length?n.next("."+this.options.slideClass):s:n.next("."+this.options.slideClass):this.options.infiniteWrap?n.prev("."+this.options.slideClass).length?n.prev("."+this.options.slideClass):a:n.prev("."+this.options.slideClass))).length&&(this.$element.trigger("beforeslidechange.zf.orbit",[n,r]),this.options.bullets&&(i=i||this.$slides.index(r),this._updateBullets(i)),this.options.useMUI&&!this.$element.is(":hidden")?(o.a.animateIn(r.addClass("is-active").css({position:"absolute",top:0}),this.options["animInFrom"+l],function(){r.css({position:"relative",display:"block"}).attr("aria-live","polite")}),o.a.animateOut(n.removeClass("is-active"),this.options["animOutTo"+u],function(){n.removeAttr("aria-live"),c.options.autoPlay&&!c.timer.isPaused&&c.timer.restart()})):(n.removeClass("is-active is-in").removeAttr("aria-live").hide(),r.addClass("is-active is-in").attr("aria-live","polite").show(),this.options.autoPlay&&!this.timer.isPaused&&this.timer.restart()),this.$element.trigger("slidechange.zf.orbit",[r]))}}},{key:"_updateBullets",value:function(t){var e=this.$element.find("."+this.options.boxOfBullets).find(".is-active").removeClass("is-active").blur().find("span:last").detach();this.$bullets.eq(t).addClass("is-active").append(e)}},{key:"_destroy",value:function(){this.$element.off(".zf.orbit").find("*").off(".zf.orbit").end().hide()}}]),e}();f.defaults={bullets:!0,navButtons:!0,animInFromRight:"slide-in-right",animOutToRight:"slide-out-right",animInFromLeft:"slide-in-left",animOutToLeft:"slide-out-left",autoPlay:!0,timerDelay:5e3,infiniteWrap:!0,swipe:!0,pauseOnHover:!0,accessible:!0,containerClass:"orbit-container",slideClass:"orbit-slide",boxOfBullets:"orbit-bullets",nextClass:"orbit-next",prevClass:"orbit-previous",useMUI:!0}}
1,function(t,e,i){"use strict";i.d(e,"a",function(){return d});var n=i(0),r=i.n(n),s=i(4),o=i(1),a=i(2),l=i(11),u=i(17),c=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),h={tabs:{cssClass:"tabs",plugin:u.a},accordion:{cssClass:"accordion",plugin:l.a}},d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.a),c(e,[{key:"_setup",value:function(t,e){this.$element=r()(t),this.options=r.a.extend({},this.$element.data(),e),this.rules=this.$element.data("responsive-accordion-tabs"),this.currentMq=null,this.currentPlugin=null,this.className="ResponsiveAccordionTabs",this.$element.attr("id")||this.$element.attr("id",i.i(o.b)(6,"responsiveaccordiontabs")),this._init(),this._events()}},{key:"_init",value:function(){if(s.a._init(),"string"==typeof this.rules){for(var t={},e=this.rules.split(" "),i=0;i<e.length;i++){var n=e[i].split("-"),o=n.length>1?n[0]:"small",a=n.length>1?n[1]:n[0];null!==h[a]&&(t[o]=h[a])}this.rules=t}this._getAllOptions(),r.a.isEmptyObject(this.rules)||this._checkMediaQueries()}},{key:"_getAllOptions",value:function(){var t=this;for(var e in t.allOptions={},h)if(h.hasOwnProperty(e)){var i=h[e];try{var n=r()("<ul></ul>"),s=new i.plugin(n,t.options);for(var o in s.options)if(s.options.hasOwnProperty(o)&&"zfPlugin"!==o){var a=s.options[o];t.allOptions[o]=a}s.destroy()}catch(t){}}}},{key:"_events",value:function(){var t=this;r()(window).on("changed.zf.mediaquery",function(){t._checkMediaQueries()})}},{key:"_checkMediaQueries",value:function(){var t,e=this;r.a.each(this.rules,function(e){s.a.atLeast(e)&&(t=e)}),t&&(this.currentPlugin instanceof this.rules[t].plugin||(r.a.each(h,function(t,i){e.$element.removeClass(i.cssClass)}),this.$element.addClass(this.rules[t].cssClass),this.currentPlugin&&(!this.currentPlugin.$element.data("zfPlugin")&&this.storezfData&&this.currentPlugin.$element.data("zfPlugin",this.storezfData),this.currentPlugin.destroy()),this._handleMarkup(this.rules[t].cssClass),this.currentPlugin=new this.rules[t].plugin(this.$element,{}),this.storezfData=this.currentPlugin.$element.data("zfPlugin")))}},{key:"_handleMarkup",value:function(t){var e=this,n="accordion",s=r()("[data-tabs-content="+this.$element.attr("id")+"]");if(s.length&&(n="tabs"),n!==t){var a=e.allOptions.linkClass?e.allOptions.linkClass:"tabs-title",l=e.allOptions.panelClass?e.allOptions.panelClass:"tabs-panel";this.$element.removeAttr("role");var u=this.$element.children("."+a+",[data-accordion-item]").removeClass(a).removeClass("accordion-item").removeAttr("data-accordion-item"),c=u.children("a").removeClass("accordion-title");if("tabs"===n?(s=s.children("."+l).removeClass(l).removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby")).children("a").removeAttr("role").removeAttr("aria-controls").removeAttr("aria-selected"):s=u.children("[data-tab-content]").removeClass("accordion-content"),s.css({display:"",visibility:""}),u.css({display:"",visibility:""}),"accordion"===t)s.each(function(t,i){r()(i).appendTo(u.get(t)).addClass("accordion-content").attr("data-tab-content","").removeClass("is-active").css({height:""}),r()("[data-tabs-content="+e.$element.attr("id")+"]").after('<div id="tabs-placeholder-'+e.$element.attr("id")+'"></div>').detach(),u.addClass("accordion-item").attr("data-accordion-item",""),c.addClass("accordion-title")});else if("tabs"===t){var h=r()("[data-tabs-content="+e.$element.attr("id")+"]"),d=r()("#tabs-placeholder-"+e.$element.attr("id"));d.length?(h=r()('<div class="tabs-content"></div>').insertAfter(d).attr("data-tabs-content",e.$element.attr("id")),d.remove()):h=r()('<div class="tabs-content"></div>').insertAfter(e.$element).attr("data-tabs-content",e.$element.attr("id")),s.each(function(t,e){var n=r()(e).appendTo(h).addClass(l),s=c.get(t).hash.slice(1),a=r()(e).attr("id")||i.i(o.b)(6,"accordion");s!==a&&(""!==s?r()(e).attr("id",s):(s=a,r()(e).attr("id",s),r()(c.get(t)).attr("href",r()(c.get(t)).attr("href").replace("#","")+"#"+s))),r()(u.get(t)).hasClass("is-active")&&n.addClass("is-active")}),u.addClass(a)}}}},{key:"_destroy",value:function(){this.currentPlugin&&this.currentPlugin.destroy(),r()(window).off(".zf.ResponsiveAccordionTabs")}}]),e}();d.defaults={}}
1,function(t,e,i){"use strict";i.d(e,"a",function(){return f});var n=i(0),r=i.n(n),s=i(4),o=i(1),a=i(2),l=i(14),u=i(13),c=i(12),h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),d={dropdown:{cssClass:"dropdown",plugin:l.a},drilldown:{cssClass:"drilldown",plugin:u.a},accordion:{cssClass:"accordion-menu",plugin:c.a}},f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.a),h(e,[{key:"_setup",value:function(t,e){this.$element=r()(t),this.rules=this.$element.data("responsive-menu"),this.currentMq=null,this.currentPlugin=null,this.className="ResponsiveMenu",this._init(),this._events()}},{key:"_init",value:function(){if(s.a._init(),"string"==typeof this.rules){for(var t={},e=this.rules.split(" "),n=0;n<e.length;n++){var a=e[n].split("-"),l=a.length>1?a[0]:"small",u=a.length>1?a[1]:a[0];null!==d[u]&&(t[l]=d[u])}this.rules=t}r.a.isEmptyObject(this.rules)||this._checkMediaQueries(),this.$element.attr("data-mutate",this.$element.attr("data-mutate")||i.i(o.b)(6,"responsive-menu"))}},{key:"_events",value:function(){var t=this;r()(window).on("changed.zf.mediaquery",function(){t._checkMediaQueries()})}},{key:"_checkMediaQueries",value:function(){var t,e=this;r.a.each(this.rules,function(e){s.a.atLeast(e)&&(t=e)}),t&&(this.currentPlugin instanceof this.rules[t].plugin||(r.a.each(d,function(t,i){e.$element.removeClass(i.cssClass)}),this.$element.addClass(this.rules[t].cssClass),this.currentPlugin&&this.currentPlugin.destroy(),this.currentPlugin=new this.rules[t].plugin(this.$element,{})))}},{key:"_destroy",value:function(){this.currentPlugin.destroy(),r()(window).off(".zf.ResponsiveMenu")}}]),e}();f.defaults={}},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var n=i(0),r=i.n(n),s=i(4),o=i(6),a=i(2),l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.a),l(e,[{key:"_setup",value:function(t,i){this.$element=r()(t),this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="ResponsiveToggle",this._init(),this._events()}},{key:"_init",value:function(){s.a._init();var t=this.$element.data("responsive-toggle");if(t||console.error("Your tab bar needs an ID of a Menu as the value of data-tab-bar."),this.$targetMenu=r()("#"+t),this.$toggler=this.$element.find("[data-toggle]").filter(function(){var e=r()(this).data("toggle");return e===t||""===e}),this.options=r.a.extend({},this.options,this.$targetMenu.data()),this.options.animate){var e=this.options.animate.split(" ");this.animationIn=e[0],this.animationOut=e[1]||null}this._update()}},{key:"_events",value:function(){this._updateMqHandler=this._update.bind(this),r()(window).on("changed.zf.mediaquery",this._updateMqHandler),this.$toggler.on("click.zf.responsiveToggle",this.toggleMenu.bind(this))}},{key:"_update",value:function(){s.a.atLeast(this.options.hideFor)?(this.$element.hide(),this.$targetMenu.show()):(this.$element.show(),this.$targetMenu.hide())}},{key:"toggleMenu",value:function(){var t=this;s.a.atLeast(this.options.hideFor)||(this.options.animate?this.$targetMenu.is(":hidden")?o.a.animateIn(this.$targetMenu,this.animationIn,function(){t.$element.trigger("toggled.zf.responsiveToggle"),t.$targetMenu.find("[data-mutate]").triggerHandler("mutateme.zf.trigger")}):o.a.animateOut(this.$targetMenu,this.animationOut,function(){t.$element.trigger("toggled.zf.responsiveToggle")}):(this.$targetMenu.toggle(0),this.$targetMenu.find("[data-mutate]").trigger("mutateme.zf.trigger"),this.$element.trigger("toggled.zf.responsiveToggle")))}},{key:"_destroy",value:function(){this.$element.off(".zf.responsiveToggle"),this.$toggler.off(".zf.responsiveToggle"),r()(window).off("changed.zf.mediaquery",this._updateMqHandler)}}]),e}();u.defaults={hideFor:"medium",animate:!1}}
1,function(t,e,i){"use strict";function n(){return/iP(ad|hone|od).*OS/.test(window.navigator.userAgent)||/Android/.test(window.navigator.userAgent)}i.d(e,"a",function(){return d});var r=i(0),s=i.n(r),o=i(3),a=i(4),l=i(6),u=i(2),c=i(5),h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,u.a),h(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=s.a.extend({},e.defaults,this.$element.data(),i),this.className="Reveal",this._init(),c.a.init(s.a),o.a.register("Reveal",{ESCAPE:"close"})}},{key:"_init",value:function(){a.a._init(),this.id=this.$element.attr("id"),this.isActive=!1,this.cached={mq:a.a.current},this.isMobile=n(),this.$anchor=s()('[data-open="'+this.id+'"]').length?s()('[data-open="'+this.id+'"]'):s()('[data-toggle="'+this.id+'"]'),this.$anchor.attr({"aria-controls":this.id,"aria-haspopup":!0,tabindex:0}),(this.options.fullScreen||this.$element.hasClass("full"))&&(this.options.fullScreen=!0,this.options.overlay=!1),this.options.overlay&&!this.$overlay&&(this.$overlay=this._makeOverlay(this.id)),this.$element.attr({role:"dialog","aria-hidden":!0,"data-yeti-box":this.id,"data-resize":this.id}),this.$overlay?this.$element.detach().appendTo(this.$overlay):(this.$element.detach().appendTo(s()(this.options.appendTo)),this.$element.addClass("without-overlay")),this._events(),this.options.deepLink&&window.location.hash==="#"+this.id&&s()(window).one("load.zf.reveal",this.open.bind(this))}},{key:"_makeOverlay",value:function(){var t="";return this.options.additionalOverlayClasses&&(t=" "+this.options.additionalOverlayClasses),s()("<div></div>").addClass("reveal-overlay"+t).appendTo(this.options.appendTo)}},{key:"_updatePosition",value:function(){var t,e,i=this.$element.outerWidth(),n=s()(window).width(),r=this.$element.outerHeight(),o=s()(window).height();t="auto"===this.options.hOffset?parseInt((n-i)/2,10):parseInt(this.options.hOffset,10),e="auto"===this.options.vOffset?r>o?parseInt(Math.min(100,o/10),10):parseInt((o-r)/4,10):parseInt(this.options.vOffset,10),this.$element.css({top:e+"px"}),this.$overlay&&"auto"===this.options.hOffset||(this.$element.css({left:t+"px"}),this.$element.css({margin:"0px"}))}},{key:"_events",value:function(){var t=this,e=this;this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":function(i,n){if(i.target===e.$element[0]||s()(i.target).parents("[data-closable]")[0]===n)return t.close.apply(t)},"toggle.zf.trigger":this.toggle.bind(this),"resizeme.zf.trigger":function(){e._updatePosition()}}),this.options.closeOnClick&&this.options.overlay&&this.$overlay.off(".zf.reveal").on("click.zf.reveal",function(t){t.target!==e.$element[0]&&!s.a.contains(e.$element[0],t.target)&&s.a.contains(document,t.target)&&e.close()}),this.options.deepLink&&s()(window).on("popstate.zf.reveal:"+this.id,this._handleState.bind(this))}},{key:"_handleState",value:function(t){window.location.hash!=="#"+this.id||this.isActive?this.close():this.open()}},{key:"open",value:function(){function t(){n.isMobile?(n.originalScrollPos||(n.originalScrollPos=window.pageYOffset),s()("html, body").addClass("is-reveal-open")):s()("body").addClass("is-reveal-open")}var e=this;if(this.options.deepLink){var i="#"+this.id;window.history.pushState?this.options.updateHistory?window.history.pushState({},"",i):window.history.replaceState({},"",i):window.location.hash=i}this.isActive=!0,this.$element.css({visibility:"hidden"}).show().scrollTop(0),this.options.overlay&&this.$overlay.css({visibility:"hidden"}).show(),this._updatePosition(),this.$element.hide().css({visibility:""}),this.$overlay&&(this.$overlay.css({visibility:""}).hide(),this.$element.hasClass("fast")?this.$overlay.addClass("fast"):this.$element.hasClass("slow")&&this.$overlay.addClass("slow")),this.options.multipleOpened||this.$element.trigger("closeme.zf.reveal",this.id);var n=this;if(this.options.animationIn){this.options.overlay&&l.a.animateIn(this.$overlay,"fade-in"),l.a.animateIn(this.$element,this.options.animationIn,function(){e.$element&&(e.focusableElements=o.a.findFocusable(e.$element),n.$element.attr({"aria-hidden":!1,tabindex:-1}).focus(),t(),o.a.trapFocus(n.$element))})}else this.options.overlay&&this.$overlay.show(0),this.$element.show(this.options.showDelay);this.$element.attr({"aria-hidden":!1,tabindex:-1}).focus(),o.a.trapFocus(this.$element),t(),this._extraHandlers(),this.$element.trigger("open.zf.reveal")}},{key:"_extraHandlers",value:function(){var t=this;this.$element&&(this.focusableElements=o.a.findFocusable(this.$element),this.options.overlay||!this.options.closeOnClick||this.options.fullScreen||s()("body").on("click.zf.reveal",function(e){e.target!==t.$element[0]&&!s.a.contains(t.$element[0],e.target)&&s.a.contains(document,e.target)&&t.close()}),this.options.closeOnEsc&&s()(window).on("keydown.zf.reveal",function(e){o.a.handleKey(e,"Reveal",{close:function(){t.options.closeOnEsc&&t.close()}})}))}},{key:"close",value:function(){function t(){e.isMobile?(0===s()(".reveal:visible").length&&s()("html, body").removeClass("is-reveal-open"),e.originalScrollPos&&(s()("body").scrollTop(e.originalScrollPos),e.originalScrollPos=null)):0===s()(".reveal:visible").length&&s()("body").removeClass("is-reveal-open"),o.a.releaseFocus(e.$element),e.$element.attr("aria-hidden",!0),e.$element.trigger("closed.zf.reveal")}if(!this.isActive||!this.$element.is(":visible"))return!1;var e=this;this.options.animationOut?(this.options.overlay&&l.a.animateOut(this.$overlay,"fade-out"),l.a.animateOut(this.$element,this.options.animationOut,t)):(this.$element.hide(this.options.hideDelay),this.options.overlay?this.$overlay.hide(0,t):t()),this.options.closeOnEsc&&s()(window).off("keydown.zf.reveal"),!this.options.overlay&&this.options.closeOnClick&&s()("body").off("
1click.zf.reveal"),this.$element.off("keydown.zf.reveal"),this.options.resetOnClose&&this.$element.html(this.$element.html()),this.isActive=!1,e.options.deepLink&&(window.history.replaceState?window.history.replaceState("",document.title,window.location.href.replace("#"+this.id,"")):window.location.hash=""),this.$anchor.focus()}},{key:"toggle",value:function(){this.isActive?this.close():this.open()}},{key:"_destroy",value:function(){this.options.overlay&&(this.$element.appendTo(s()(this.options.appendTo)),this.$overlay.hide().off().remove()),this.$element.hide().off(),this.$anchor.off(".zf"),s()(window).off(".zf.reveal:"+this.id)}}]),e}();d.defaults={animationIn:"",animationOut:"",showDelay:0,hideDelay:0,closeOnClick:!0,closeOnEsc:!0,multipleOpened:!1,vOffset:"auto",hOffset:"auto",fullScreen:!1,btmOffsetPct:10,overlay:!0,resetOnClose:!1,deepLink:!1,updateHistory:!1,appendTo:"body",additionalOverlayClasses:""}},function(t,e,i){"use strict";function n(t,e){return t/e}function r(t,e,i,n){return Math.abs(t.position()[e]+t[n]()/2-i)}i.d(e,"a",function(){return p});var s=i(0),o=i.n(s),a=i(3),l=i(6),u=i(1),c=i(2),h=i(10),d=i(5),f=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,c.a),f(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=o.a.extend({},e.defaults,this.$element.data(),i),this.className="Slider",h.a.init(o.a),d.a.init(o.a),this._init(),a.a.register("Slider",{ltr:{ARROW_RIGHT:"increase",ARROW_UP:"increase",ARROW_DOWN:"decrease",ARROW_LEFT:"decrease",SHIFT_ARROW_RIGHT:"increase_fast",SHIFT_ARROW_UP:"increase_fast",SHIFT_ARROW_DOWN:"decrease_fast",SHIFT_ARROW_LEFT:"decrease_fast",HOME:"min",END:"max"},rtl:{ARROW_LEFT:"increase",ARROW_RIGHT:"decrease",SHIFT_ARROW_LEFT:"increase_fast",SHIFT_ARROW_RIGHT:"decrease_fast"}})}},{key:"_init",value:function(){this.inputs=this.$element.find("input"),this.handles=this.$element.find("[data-slider-handle]"),this.$handle=this.handles.eq(0),this.$input=this.inputs.length?this.inputs.eq(0):o()("#"+this.$handle.attr("aria-controls")),this.$fill=this.$element.find("[data-slider-fill]").css(this.options.vertical?"height":"width",0),(this.options.disabled||this.$element.hasClass(this.options.disabledClass))&&(this.options.disabled=!0,this.$element.addClass(this.options.disabledClass)),this.inputs.length||(this.inputs=o()().add(this.$input),this.options.binding=!0),this._setInitAttr(0),this.handles[1]&&(this.options.doubleSided=!0,this.$handle2=this.handles.eq(1),this.$input2=this.inputs.length>1?this.inputs.eq(1):o()("#"+this.$handle2.attr("aria-controls")),this.inputs[1]||(this.inputs=this.inputs.add(this.$input2)),this._setInitAttr(1)),this.setHandles(),this._events()}},{key:"setHandles",value:function(){var t=this;this.handles[1]?this._setHandlePos(this.$handle,this.inputs.eq(0).val(),!0,function(){t._setHandlePos(t.$handle2,t.inputs.eq(1).val(),!0)}):this._setHandlePos(this.$handle,this.inputs.eq(0).val(),!0)}},{key:"_reflow",value:function(){this.setHandles()}},{key:"_pctOfBar",value:function(t){var e=n(t-this.options.start,this.options.end-this.options.start);switch(this.options.positionValueFunction){case"pow":e=this._logTransform(e);break;case"log":e=this._powTransform(e)}return e.toFixed(2)}},{key:"_value",value:function(t){switch(this.options.positionValueFunction){case"pow":t=this._powTransform(t);break;case"log":t=this._logTransform(t)}return(this.options.end-this.options.start)*t+this.options.start}},{key:"_logTransform",value:function(t){return function(t,e){return Math.log(e)/Math.log(t)}(this.options.nonLinearBase,t*(this.options.nonLinearBase-1)+1)}},{key:"_powTransform",value:function(t){return(Math.pow(this.options.nonLinearBase,t)-1)/(this.options.nonLinearBase-1)}},{key:"_setHandlePos",value:function(t,e,r,s){if(!this.$element.hasClass(this.options.disabledClass)){(e=parseFloat(e))<this.options.start?e=this.options.start:e>this.options.end&&(e=this.options.end);var o=this.options.doubleSided;
1if(this.options.vertical&&!r&&(e=this.options.end-e),o)if(0===this.handles.index(t)){var a=parseFloat(this.$handle2.attr("aria-valuenow"));e=e>=a?a-this.options.step:e}else{var u=parseFloat(this.$handle.attr("aria-valuenow"));e=e<=u?u+this.options.step:e}var c=this,h=this.options.vertical,d=h?"height":"width",f=h?"top":"left",p=t[0].getBoundingClientRect()[d],m=this.$element[0].getBoundingClientRect()[d],g=this._pctOfBar(e),v=(100*n((m-p)*g,m)).toFixed(this.options.decimal);e=parseFloat(e.toFixed(this.options.decimal));var _={};if(this._setValues(t,e),o){var y,b=0===this.handles.index(t),w=~~(100*n(p,m));if(b)_[f]=v+"%",y=parseFloat(this.$handle2[0].style[f])-v+w,s&&"function"==typeof s&&s();else{var x=parseFloat(this.$handle[0].style[f]);y=v-(isNaN(x)?(this.options.initialStart-this.options.start)/((this.options.end-this.options.start)/100):x)+w}_["min-"+d]=y+"%"}this.$element.one("finished.zf.animate",function(){c.$element.trigger("moved.zf.slider",[t])});var C=this.$element.data("dragging")?1e3/60:this.options.moveTime;i.i(l.b)(C,t,function(){isNaN(v)?t.css(f,100*g+"%"):t.css(f,v+"%"),c.options.doubleSided?c.$fill.css(_):c.$fill.css(d,100*g+"%")}),clearTimeout(c.timeout),c.timeout=setTimeout(function(){c.$element.trigger("changed.zf.slider",[t])},c.options.changedDelay)}}},{key:"_setInitAttr",value:function(t){var e=0===t?this.options.initialStart:this.options.initialEnd,n=this.inputs.eq(t).attr("id")||i.i(u.b)(6,"slider");this.inputs.eq(t).attr({id:n,max:this.options.end,min:this.options.start,step:this.options.step}),this.inputs.eq(t).val(e),this.handles.eq(t).attr({role:"slider","aria-controls":n,"aria-valuemax":this.options.end,"aria-valuemin":this.options.start,"aria-valuenow":e,"aria-orientation":this.options.vertical?"vertical":"horizontal",tabindex:0})}},{key:"_setValues",value:function(t,e){var i=this.options.doubleSided?this.handles.index(t):0;this.inputs.eq(i).val(e),t.attr("aria-valuenow",e)}},{key:"_handleEvent",value:function(t,e,s){var a,l;if(s)a=this._adjustValue(null,s),l=!0;else{t.preventDefault();var c=this.options.vertical,h=c?"height":"width",d=c?"top":"left",f=c?t.pageY:t.pageX,p=(this.$handle[0].getBoundingClientRect()[h],this.$element[0].getBoundingClientRect()[h]),m=c?o()(window).scrollTop():o()(window).scrollLeft(),g=this.$element.offset()[d];t.clientY===t.pageY&&(f+=m);var v,_=f-g,y=n(v=_<0?0:_>p?p:_,p);a=this._value(y),i.i(u.a)()&&!this.options.vertical&&(a=this.options.end-a),a=this._adjustValue(null,a),l=!1,e||(e=r(this.$handle,d,v,h)<=r(this.$handle2,d,v,h)?this.$handle:this.$handle2)}this._setHandlePos(e,a,l)}},{key:"_adjustValue",value:function(t,e){var i,n,r,s=this.options.step,o=parseFloat(s/2);return r=(i=t?parseFloat(t.attr("aria-valuenow")):e)-(n=i%s),0===n?i:i=i>=r+o?r+s:r}},{key:"_events",value:function(){this._eventsForHandle(this.$handle),this.handles[1]&&this._eventsForHandle(this.$handle2)}},{key:"_eventsForHandle",value:function(t){var e,i=this;if(this.inputs.off("change.zf.slider").on("change.zf.slider",function(t){var e=i.inputs.index(o()(this));i._handleEvent(t,i.handles.eq(e),o()(this).val())}),this.options.clickSelect&&this.$element.off("click.zf.slider").on("click.zf.slider",function(t){if(i.$element.data("dragging"))return!1;o()(t.target).is("[data-slider-handle]")||(i.options.doubleSided?i._handleEvent(t):i._handleEvent(t,i.$handle))}),this.options.draggable){this.handles.addTouch();var n=o()("body");t.off("mousedown.zf.slider").on("mousedown.zf.slider",function(r){t.addClass("is-dragging"),i.$fill.addClass("is-dragging"),i.$element.data("dragging",!0),e=o()(r.currentTarget),n.on("mousemove.zf.slider",function(t){t.preventDefault(),i._handleEvent(t,e)}).on("mouseup.zf.slider",function(r){i._handleEvent(r,e),t.removeClass("is-dragging"),i.$fill.removeClass("is-dragging"),i.$element.data("dragging",!1),n.off("mousemove.zf.slider mouseup.zf.slider")})}).on("selectstart.zf.slider touchmove.zf.slider",function(t){t.preventDefault()})}t.off("keydown.zf.slider").on("keydown.zf.slider",function(t){var e,n=o()(this),r=i.options.doubleSided?i.handles.index(n):0,s=parseFloat(i.inputs.eq(r).val());a.a.handleKey(t,"Slider",{decrease:function(){e=s-i.options.step},increase:function(){e=s+i.options.step},decrease_fast:function(){e=s-10*i.options.step},increase_fast:function(){e=s+10*i.options.step},min:function(){e=i.options.start},max:function(){e=i.options.end},handled:function(){t.preventDefault(),i._setHandlePos(n,e,!0)}})})}},{key:"_destroy",value:function(){this.handles.off(".zf.slider"),this.inputs.off(".zf.slider"),this.$element.off(".zf.slider"),clearTimeout(this.timeout)}}]),e}();p.defaults={start:0,end:100,step:1,initialStart:0,initialEnd:100,binding:!1,clickSelect:!0,vertical:!1,draggable:!0,disabled:!1,doubleSided:!1,decimal
1:2,moveTime:200,disabledClass:"disabled",invertVertical:!1,changedDelay:500,nonLinearBase:5,positionValueFunction:"linear"}},function(t,e,i){"use strict";function n(t){return parseInt(window.getComputedStyle(document.body,null).fontSize,10)*t}i.d(e,"a",function(){return h});var r=i(0),s=i.n(r),o=i(1),a=i(4),l=i(2),u=i(5),c=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,l.a),c(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=s.a.extend({},e.defaults,this.$element.data(),i),this.className="Sticky",u.a.init(s.a),this._init()}},{key:"_init",value:function(){a.a._init();var t=this.$element.parent("[data-sticky-container]"),e=this.$element[0].id||i.i(o.b)(6,"sticky"),n=this;t.length?this.$container=t:(this.wasWrapped=!0,this.$element.wrap(this.options.container),this.$container=this.$element.parent()),this.$container.addClass(this.options.containerClass),this.$element.addClass(this.options.stickyClass).attr({"data-resize":e,"data-mutate":e}),""!==this.options.anchor&&s()("#"+n.options.anchor).attr({"data-mutate":e}),this.scrollCount=this.options.checkEvery,this.isStuck=!1,s()(window).one("load.zf.sticky",function(){n.containerHeight="none"==n.$element.css("display")?0:n.$element[0].getBoundingClientRect().height,n.$container.css("height",n.containerHeight),n.elemHeight=n.containerHeight,""!==n.options.anchor?n.$anchor=s()("#"+n.options.anchor):n._parsePoints(),n._setSizes(function(){var t=window.pageYOffset;n._calc(!1,t),n.isStuck||n._removeSticky(!(t>=n.topPoint))}),n._events(e.split("-").reverse().join("-"))})}},{key:"_parsePoints",value:function(){for(var t=[""==this.options.topAnchor?1:this.options.topAnchor,""==this.options.btmAnchor?document.documentElement.scrollHeight:this.options.btmAnchor],e={},i=0,n=t.length;i<n&&t[i];i++){var r;if("number"==typeof t[i])r=t[i];else{var o=t[i].split(":"),a=s()("#"+o[0]);r=a.offset().top,o[1]&&"bottom"===o[1].toLowerCase()&&(r+=a[0].getBoundingClientRect().height)}e[i]=r}this.points=e}},{key:"_events",value:function(t){var e=this,i=this.scrollListener="scroll.zf."+t;this.isOn||(this.canStick&&(this.isOn=!0,s()(window).off(i).on(i,function(t){0===e.scrollCount?(e.scrollCount=e.options.checkEvery,e._setSizes(function(){e._calc(!1,window.pageYOffset)})):(e.scrollCount--,e._calc(!1,window.pageYOffset))})),this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger",function(i,n){e._eventsHandler(t)}),this.$element.on("mutateme.zf.trigger",function(i,n){e._eventsHandler(t)}),this.$anchor&&this.$anchor.on("mutateme.zf.trigger",function(i,n){e._eventsHandler(t)}))}},{key:"_eventsHandler",value:function(t){var e=this,i=this.scrollListener="scroll.zf."+t;e._setSizes(function(){e._calc(!1),e.canStick?e.isOn||e._events(t):e.isOn&&e._pauseListeners(i)})}},{key:"_pauseListeners",value:function(t){this.isOn=!1,s()(window).off(t),this.$element.trigger("pause.zf.sticky")}},{key:"_calc",value:function(t,e){if(t&&this._setSizes(),!this.canStick)return this.isStuck&&this._removeSticky(!0),!1;e||(e=window.pageYOffset),e>=this.topPoint?e<=this.bottomPoint?this.isStuck||this._setSticky():this.isStuck&&this._removeSticky(!1):this.isStuck&&this._removeSticky(!0)}},{key:"_setSticky",value:function(){var t=this,e=this.options.stickTo,i="top"===e?"marginTop":"marginBottom",n="top"===e?"bottom":"top",r={};r[i]=this.options[i]+"em",r[e]=0,r[n]="auto",this.isStuck=!0,this.$element.removeClass("is-anchored is-at-"+n).addClass("is-stuck is-at-"+e).css(r).trigger("sticky.zf.stuckto:"+e),this.$element.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",function(){t._setSizes()})}},{key:"_removeSticky",value:function(t){var e=this.options.stickTo,i="top"===e,n={},r=(this.points?this.points[1]-this.points[0]:this.anchorHeight)-this.elemHeight,s=t?"top":"bottom";n[i?"marginTop":"marginBottom"]=0,n.bottom="auto",n.top=t?0:r,this.isStuck=!1,this.$element.removeClass("is-stuck is-at-"+e).addClass("is-anchored is-at-"+s).css(n).trigger("sticky.zf.unstuckfrom:"+s)}},{key:"_setSizes",value:function(t){this.canStick=a.a.is(this.options.stickyOn),this.canStick||t&&"function"==typeof t&&t();var e=this.$container[0].getBoundingClientRect().width,i=window.getComputedStyle(this.$container[0]),n=parseInt(i["padding-left"],10),r=parseInt(i["padding-right"],10);this.$anchor&&this.$anchor.length?this.anchorHeight=this.$anchor[0].getBoundingClientRect().height:this._parsePoints(),this.$element.css({"max-width":e-n-r+"px"});var s=this.$element[0].getBoundingClientRect().height||this.containerHeight;if("none"==this.$element.css("display")&&(s=0),this.containerHeight=s,this.$container.css({height:s}),this.elemHeight=s,!this.isStuck&&this.$element.hasClass("is-at-bottom")){var o=(this.points?this.points[1]-this.$container.offset().top:this.anchorHeight)-this.elemHeight;this.$element.css("top",o)}this._setBreakPoints(s,function(){t&&"function"==typeof t&&t()})}},{key:"_setBreakPoints",value:function(t,e){if(!this.canStick){if(!e||"function"!=typeof e)return!1;e()}var i=n(this.options.marginTop),r=n(this.options.marginBottom),s=this.points?this.points[0]:this.$anchor.offset().top,o=this.points?this.points[1]:s+this.anchorHeight,a=window.innerHeight;"top"===this.options.stickTo?(s-=i,o-=t+i):"bottom"===this.options.stickTo&&(s-=a-(t+r),o-=a-r),this.topPoint=s,this.bottomPoint=o,e&&"function"==typeof e&&e()}},{key:"_destroy",value:function(){this._removeSticky(!0),this.$element.removeClass(this.options.stickyClass+" is-anchored is-at-top").css({height:"",top:"",bottom:"","max-width":""}).off("resizeme.zf.trigger").off("mutateme.zf.trigger"),this.$anchor&&this.$anchor.length&&this.$anchor.off("change.zf.sticky"),s()(window).off(this.scrollListener),this.wasWrapped?this.$element.unwrap():this.$container.removeClass(this.options.containerClass).css({height:""})}}]),e}();
1h.defaults={container:"<div data-sticky-container></div>",stickTo:"top",anchor:"",topAnchor:"",btmAnchor:"",marginTop:1,marginBottom:1,stickyOn:"medium",stickyClass:"sticky",containerClass:"sticky-container",checkEvery:-1}},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var n=i(0),r=i.n(n),s=i(6),o=i(2),a=i(5),l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.a),l(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,t.data(),i),this.className="",this.className="Toggler",a.a.init(r.a),this._init(),this._events()}},{key:"_init",value:function(){var t;this.options.animate?(t=this.options.animate.split(" "),this.animationIn=t[0],this.animationOut=t[1]||null):(t=this.$element.data("toggler"),this.className="."===t[0]?t.slice(1):t);var e=this.$element[0].id;r()('[data-open="'+e+'"], [data-close="'+e+'"], [data-toggle="'+e+'"]').attr("aria-controls",e),this.$element.attr("aria-expanded",!this.$element.is(":hidden"))}},{key:"_events",value:function(){this.$element.off("toggle.zf.trigger").on("toggle.zf.trigger",this.toggle.bind(this))}},{key:"toggle",value:function(){this[this.options.animate?"_toggleAnimate":"_toggleClass"]()}},{key:"_toggleClass",value:function(){this.$element.toggleClass(this.className);var t=this.$element.hasClass(this.className);t?this.$element.trigger("on.zf.toggler"):this.$element.trigger("off.zf.toggler"),this._updateARIA(t),this.$element.find("[data-mutate]").trigger("mutateme.zf.trigger")}},{key:"_toggleAnimate",value:function(){var t=this;this.$element.is(":hidden")?s.a.animateIn(this.$element,this.animationIn,function(){t._updateARIA(!0),this.trigger("on.zf.toggler"),this.find("[data-mutate]").trigger("mutateme.zf.trigger")}):s.a.animateOut(this.$element,this.animationOut,function(){t._updateARIA(!1),this.trigger("off.zf.toggler"),this.find("[data-mutate]").trigger("mutateme.zf.trigger")})}},{key:"_updateARIA",value:function(t){this.$element.attr("aria-expanded",!!t)}},{key:"_destroy",value:function(){this.$element.off(".zf.toggler")}}]),e}();u.defaults={animate:!1}},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var n=i(0),r=i.n(n),s=i(1),o=i(4),a=i(5),l=i(15),u=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0},h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":_typeof(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,l.a),u(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Tooltip",this.isActive=!1,this.isClick=!1,a.a.init(r.a),this._init()}},{key:"_init",value:function(){o.a._init();var t=this.$element.attr("aria-describedby")||i.i(s.b)(6,"tooltip");this.options.tipText=this.options.tipText||this.$element.attr("title"),this.template=this.options.template?r()(this.options.template):this._buildTemplate(t),this.options.allowHtml?this.template.appendTo(document.body).html(this.options.tipText).hide():this.template.appendTo(document.body).text(this.options.tipText).hide(),this.$element.attr({title:"","aria-describedby":t,"data-yeti-box":t,"data-toggle":t,"data-resize":t}).addClass(this.options.triggerClass),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_init",this).call(this),this._events()}},{key:"_getDefaultPosition",value:function(){var t=this.$element[0].className.match(/\b(top|left|right|bottom)\b/g);return t?t[0]:"top"}},{key:"_getDefaultAlignment",value:function(){return"center"}},{key:"_getHOffset",value:function(){return"left"===this.position||"right"===this.position?this.options.hOffset+this.options.tooltipWidth:this.options.hOffset}},{key:"_getVOffset",value:function(){return"top"===this.position||"bottom"===this.position?this.options.vOffset+this.options.tooltipHeight:this.options.vOffset}},{key:"_buildTemplate",value:function(t){var e=(this.options.tooltipClass+" "+this.options.positionClass+" "+this.options.templateClasses).trim();return r()("<div></div>").addClass(e).attr({role:"tooltip","aria-hidden":!0,"data-is-active":!1,"data-is-focus":!1,id:t})}},{key:"_setPosition",value:function(){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_setPosition",this).call(this,this.$element,this.template)}},{key:"show",value:function(){if("all"!==this.options.showOn&&!o.a.is(this.options.showOn))return!1;this.template.css("visibility","hidden").show(),this._setPosition(),this.template.removeClass("top bottom left right").addClass(this.position),this.template.removeClass("align-top align-bottom align-left align-right al
1ign-center").addClass("align-"+this.alignment),this.$element.trigger("closeme.zf.tooltip",this.template.attr("id")),this.template.attr({"data-is-active":!0,"aria-hidden":!1}),this.isActive=!0,this.template.stop().hide().css("visibility","").fadeIn(this.options.fadeInDuration,function(){}),this.$element.trigger("show.zf.tooltip")}},{key:"hide",value:function(){var t=this;this.template.stop().attr({"aria-hidden":!0,"data-is-active":!1}).fadeOut(this.options.fadeOutDuration,function(){t.isActive=!1,t.isClick=!1}),this.$element.trigger("hide.zf.tooltip")}},{key:"_events",value:function(){var t=this,e=(this.template,!1);this.options.disableHover||this.$element.on("mouseenter.zf.tooltip",function(e){t.isActive||(t.timeout=setTimeout(function(){t.show()},t.options.hoverDelay))}).on("mouseleave.zf.tooltip",function(i){clearTimeout(t.timeout),(!e||t.isClick&&!t.options.clickOpen)&&t.hide()}),this.options.clickOpen?this.$element.on("mousedown.zf.tooltip",function(e){e.stopImmediatePropagation(),t.isClick||(t.isClick=!0,!t.options.disableHover&&t.$element.attr("tabindex")||t.isActive||t.show())}):this.$element.on("mousedown.zf.tooltip",function(e){e.stopImmediatePropagation(),t.isClick=!0}),this.options.disableForTouch||this.$element.on("tap.zf.tooltip touchend.zf.tooltip",function(e){t.isActive?t.hide():t.show()}),this.$element.on({"close.zf.trigger":this.hide.bind(this)}),this.$element.on("focus.zf.tooltip",function(i){if(e=!0,t.isClick)return t.options.clickOpen||(e=!1),!1;t.show()}).on("focusout.zf.tooltip",function(i){e=!1,t.isClick=!1,t.hide()}).on("resizeme.zf.trigger",function(){t.isActive&&t._setPosition()})}},{key:"toggle",value:function(){this.isActive?this.hide():this.show()}},{key:"_destroy",value:function(){this.$element.attr("title",this.template.text()).off(".zf.trigger .zf.tooltip").removeClass("has-tip top right left").removeAttr("aria-describedby aria-haspopup data-disable-hover data-resize data-toggle data-tooltip data-yeti-box"),this.template.remove()}}]),e}();h.defaults={disableForTouch:!1,hoverDelay:200,fadeInDuration:150,fadeOutDuration:150,disableHover:!1,templateClasses:"",tooltipClass:"tooltip",triggerClass:"has-tip",showOn:"small",template:"",tipText:"",touchCloseText:"Tap to close.",clickOpen:!0,positionClass:"",position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!1,vOffset:0,hOffset:0,tooltipHeight:14,tooltipWidth:12,allowHtml:!1}},function(t,e,i){t.exports=i(19)}]);_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(){function t(t){return function(e){return t.trustAsResourceUrl(e)}}function e(t){return function(e){return e&&(e=(e=(e=(e=e.replace(/style="float\: left;"/g,'class="left rte"')).replace(/style="float\: right;"/g,'class="right rte"')).replace(/<iframe/g,'<div class="flex-vi
1deo widescreen"><iframe')).replace(/<\/iframe>/g,"</iframe></div>")),t.trustAs("html",e)}}function i(t){var e=["th","st","nd","rd"],i=/(\d+)\+/g;return function(n,r){if(!n)return"";var s=t("date")(n,r);return s=s.replace(i,function(t,i){var n=i<30?i%20:i%30;return i+(n<=3?e[n]:e[0])})}}function n(t){return{restrict:"A",link:function(t,e,i){i.$observe("bmgSrc",function(t){void 0!==t&&i.$set("src",t)}),e.on("load.bmgSrc",function(){t.$evalAsync(function(){t.$emit("imageLoaded",{element:e,success:!0,src:i.onLoad})})}).on("error.bmgSrc",function(){t.$evalAsync(function(){t.$emit("imageLoaded",{element:e,success:!1,src:i.onLoad})})}),t.$on("$destroy",function(){e.off("load.imgCheck error.imgCheck")})}}}function r(t){return{compile:function(e,i){var n=t(i.onError,null,!0);return function(t,e,i,r){e.on("error",function(e){n(t,{$event:e}),t.$$phase||t.$apply()}),t.$on("$destroy",function(){e.off("error")})}}}}angular.module("utility",["ngSanitize"]).factory("bmgLogger",function(){return{info:function(t){console.info(t)}}}).filter("trustAsResourceUrl",t).filter("trustAsMarkup",e).filter("toBackground",function(){return function(t){return t?{backgroundImage:'url("'+t+'")'}:{}}}).filter("checkboxSet",function(){return function(t){for(var e=[],i=t.length,n=0;n<t.length;n++){var r=t[n];r.active&&e.push(r.label)}return 0===e.length||e.length===i?["All"]:e}}).filter("dateSuffix",i).filter("getCropUrl",function(){return function(t,e){if(!t)return null;if(!e)return t.url;if("object"===(void 0===e?"undefined":_typeof(e))){var i=t.url;e.mode&&(i=i.replace("&mode=crop",""));for(var n=Object.keys(e),r=0;r<n.length;r++){var s=n[r];i+="&"+s+"="+e[s]}return i}if(!t.crops)return t.url?t.url:t;for(var r=0;r<t.crops.length;r++){var o=t.crops[r];if(o.name===e)return o.url}return t.url}}).filter("trimNumber",function(){return function(t){return t>1e6?(t/1e6).toPrecision(3)+"m":t>=1e3?(t/1e3).toPrecision(3)+"k":t}}).filter("hasActive",function(){return function(t){if(void 0!==t)for(var e=0;e<t.length;e++)if(t[e].active)return!0;return!1}}).filter("wrapMatches",function(){return function(t,e){if(t){var i=new RegExp(e,"gi");t=t.replace(i,'<span class="matched">$&</span>')}return t}}).filter("groupBy",function(){return function(t,e){return t.filter(function(t,i,n){return t.groupName==e})}}).directive("bmgSrc",n).directive("onError",r).directive("onEnter",function(){return function(t,e,i){e.bind("keydown keypress",function(e){13===e.which&&(t.$apply(function(){t.$eval(i.onEnter)}),e.preventDefault())})}}).directive("capHeight",s).filter("toMonth",o),t.$inject=["$sce"],i.$inject=["$filter"],e.$inject=["$sce"],n.$inject=["$parse"],r.$inject=["$parse"];function s(t,e){return{restrict:"A",link:function(e,i){var n=n++;function r(){i.removeClass("cap-height");var t=0;i.children().each(function(){var e=angular.element(this),i=e.css("position");"absolute"!==i&&"fixed"!==i&&(t+=e.outerHeight())}),t>i.height()&&i.addClass("cap-height")}r();var s=angular.element(t).on("resize.capHeight"+n,r);e.$on("$destroy",function(){s.off("resize.capHeight"+n)})}}}s.$inject=["$window","$timeout"];function o(t){return function(e,i){if(!e||isNaN(e))return e;var n=new Date(1,e-1);return t("date")(n,i)}}o.$inject=["$filter"]}(),function(){function t(t,e,i){function n(t,e){var i=Math.floor(e/t.slideData.length),n=(e+Math.abs(t.slideData.length*i))%t.slideData.length;return i*t.totalWidth+t.offsets[n]}this.slideAnimation=function(t,e,i){var r=angular.element(i.elements[e]).find("img");if(!(s=i.slideWidth)){r.css("display","none");var s=angular.element(i.elements[e]).outerWidth();r.css("display",""),!s&&i.slideData[e].image&&(s=i.slideData[e].image.width)}return{x:n(i,e+-Math.floor((n(i,e)+t+(i.slideData.length>1?s:0)+i.spacing)/i.totalWidth)*i.slideData.length)+t,y:0,width:s}},this.slideAnimationPrep=function(t){if(t.slideData){var e=0,i=[],n=[],r=[],s=0;t.slideWidth&&t.slideElements.width(t.slideWidth);for(var o=0;o<t.slideData.length;o++){i.push(e);var a=angular.element(t.slideElements[o]).find(">div,>a"),l=a.find("img"),u=t.slideWidth;r.push(a);var c=l.hasClass("loaded");c||l.css("display","none");var h=a.outerHeight();c||l.css("display","");var d=t.spacing;if(l.length){var f=t.slideData[o];if(t.slideWidth){if(!c){var p=l.attr("image-source"),m=/width\=(\d+)/.exec(p),g=m[1]?parseInt(m[1]):f.image.width,v=/height\=(\d+)/.exec(p),_=v[1]?parseInt(v[1]):f.image.height;(y=g/t.slideWidth)>1&&(_/=y),h+=_}}else{if(u=f.image?f.image.width:0,f.image){var y=f.image.height/l.height();f.image.width/=y,f.image.height/=y,u=f.image.width}else d=0;h||(h=l.height())}}s=Math.max(h,s),n.push(e+d+u/2),e+=u+d}t.elements=r,t.totalWidth=e,t.offsets=i,t.breakpoints=n,t.carousel.find(".slides").height(s)}return t},this.slideSnap=function(t,e){var i=0,r=Math.abs(t%e.totalWidth);t>0&&(r=e.totalWidth-r);for(var s=0;s<e.offsets.length;s++)if(r<=e.breakpoints[s]){i=s;break}var o=-(Math.ceil(t/e.totalWidth)*e.slideData.length-i);return{index:o,position:-n(e,o)}}}angular.module("app").controller("GridCarouselController",t),t.$inject=["$scope","$element","$window"]}(),function(){function t(t,e){var i=null,n=e.search();n.categories&&(t.params.categories=parseInt(n.categories)),this.clearCheck=function(e,n){i===e?(t.params[n]=null,i=null):i=e}}angular.module("app").controller("CategoriesController",t),t.$inject=["$scope","$location"]}(),function(){function t(t,e,i,n,r){var s=this;t.$watch("params",function(t){t?(s.params=angular.copy(t),s.params.id=i.source,s.params.featured=i.featured,s.params.includeBodyText=i.hasModal,s.params.sortType=i.sortType,void 0===s.params.sortAscending&&(s.params.sortAscending=i.ascending)):s.params={id:i.source,featured:i.featured,sortAscending:i.ascending,includeBodyText:i.hasModal,sortType:i.sortType}}),s.openModal=function(e,i){e.preventDefault(),s.carousel&&s.carousel.goToSlide(i,!1),this.modalOpen=!0,t.$root.lockScroll=!0},s.closeModal=function(){this.modalOpen=!1,t.$root.lockScroll=!1},s.blockClose=function(t){t.stopPropagation()},s.registerCarousel=function(t){s.carousel=t},s.updateSlides=function(t){s.modalSlides=angular.copy(t),s.syncAnimations()},s.updateHash=function(t){t&&(n.location.hash=t.urlName)};function o(t,e){var i=Math.floor(e/t.slideData.length),n=(e+Math.abs(t.slideData.length*i))%t.slideData.length;return i*(t.slideData.length*t.carousel.width())+t.carousel.width()*n}
1s.slideAnimation=function(t,e,i){var n=i.carousel.width(),r=i.slideData.length*n;if(n>0)return{x:o(i,e+-Math.floor((o(i,e)+t+n)/r)*i.slideData.length)+t,y:0}},s.slideSnap=function(t,e){var i=e.carousel.width(),n=-Math.round(t/i);return{index:n,position:-o(e,n)}},s.syncAnimations=function(){n.wow&&r(function(){n.wow.sync()})}}angular.module("app").controller("FeedGridController",t),t.$inject=["$scope","$element","$attrs","$window","$timeout"]}(),function(){function t(t){return{list:t("/api/feed/:id",{id:"@id"})}}angular.module("feedResource",["ngResource"]).factory("feedResource",t),t.$inject=["$resource"]}(),function(){function t(t,e){this.cta=e.cta}angular.module("app").controller("RelatedContentController",t),t.$inject=["$scope","$attrs"]}(),function(){function t(t){return{list:t("/api/related-content/")}}angular.module("relatedContentResource",["ngResource"]).factory("relatedContentResource",t),t.$inject=["$resource"]}(),function(){function t(t,e,i){var n=i.search(),r=!1;if(n.y&&n.m)r=!0,t.params.month=parseInt(n.m),t.params.year=parseInt(n.y);else if("true"===e.filterByDefault){var s=new Date;t.params.month=s.getMonth()+1,t.params.year=s.getFullYear()}"true"===e.onlyPassedDates&&(t.params.onlyPassedDates=r),this.setDate=function(i){var n=new Date(i),r=n.getMonth()+1,s=n.getFullYear();t.params.month===r&&t.params.year===s?(t.params.month=void 0,t.params.year=void 0,"true"===e.onlyPassedDates&&(t.params.onlyPassedDates=!1)):(t.params.month=r,t.params.year=s,"true"===e.onlyPassedDates&&(t.params.onlyPassedDates=!0))}}angular.module("app").controller("DateFilterController",t),t.$inject=["$scope","$attrs","$location"]}(),function(){function t(t){return{careers:t("/api/careers",{}),caseStudies:t("/api/caseStudies"),featuredCaseStudies:t("/api/caseStudies/featured"),caseStudyFilters:t("/api/caseStudies/filters"),caseStudyRelatedContent:t("/api/caseStudies/relatedContent/:id",{id:"@id"}),clients:t("/api/main/clients"),events:t("/api/events"),filters:t("/api/main/filters/:group",{group:"@group"}),footerNavs:t("/api/main/footerNavs",{}),pageviews:t("/api/main/pageviews",{}),featuredBlogs:t("/api/blog/featured",{}),mostSharedBlogs:t("/api/blog/most-shared",{}),recentBlogs:t("/api/blog/recent",{}),relatedBlogs:t("/api/blog/related",{}),blogArchive:t("/api/blog/archive",{}),blogPosts:t("/api/blog",{}),blogFilters:t("/api/blog/filters"),productCategories:t("/api/products/categories",{pageSize:10}),productFilters:t("/api/products/filters"),products:t("/api/products/:id",{id:"@id"}),resources:t("/api/resources"),search:t("/api/main/search",{}),services:t("/api/services/:id",{id:"@id"}),serviceCategories:t("/api/services/categories",{}),sliderImages:t("/api/main/sliderImages/:id",{id:"@id"}),relatedContent:t("/api/main/relatedContent/:id",{id:"@id"}),test:t("/api/resources")}}angular.module("services.global",["ngResource","feedResource","relatedContentResource"]).factory("global",t),t.$inject=["$resource"]}(),function(){function t(t,e){return{token:t("/api/main/token/"),users:t("https://secure3.convio.net/ugm/site/CRSurveyAPI",{},{get:{method:"POST",transformRequest:function(t,e){var i="",n=!0;for(var r in t)n||(i+="&"),i+=r+"="+t[r],n=!1;return i},transformResponse:function(t){return JSON.parse(t)},headers:{"Content-Type":"application/x-www-form-urlencoded"}}}),surveys:t("https://secure3.convio.net/ugm/site/CRSurveyAPI",{},{get:{method:"POST",transformRequest:function(t,e){var i="",n=!0;for(var r in t)n||(i+="&"),i+=r+"="+t[r],n=!1;return i},transformResponse:function(t){return JSON.parse(t)},headers:{"Content-Type":"application/x-www-form-urlencoded"}},post:{method:"POST",transformRequest:function(t,e){var i="",n=!0;for(var r in t){if(n||(i+="&"),Array.isArray(t[r]))for(var s=0;s<t[r].length;s++)s>0&&(i+="&"),i+=r+"="+t[r][s];else i+=r+"="+t[r];n=!1}return i},transformResponse:function(t){return JSON.parse(t)},headers:{"Content-Type":"application/x-www-form-urlencoded"}}}),luminateSurveys:t("/api/luminate/survey/:id",{id:"@id"})}}angular.module("app").factory("api",t),t.$inject=["$resource","bmgLogger"]}(),function(){function t(t){return{getMediaQueries:e,getMediaQuery:function(t){return e()[t]},getLoadingIndicator:function(){return angular.element('<span class="fa fa-spin fa-spinner loader"></span>')},getCurrentMediaQuery:function(){if(Foundation.MediaQuery.current)return Foundation.MediaQuery.current;for(var t,i=e(),n=Object.keys(i),r=0;r<n.length;r++){var s=n[r];if(!i[s].matches)break;t=s}return t}};function e(){for(var e=angular.element("meta.foundation-mq").css("fontFamily").replace('"',"").replace("'","").split("&"),i={},n=0;n<e.length;n++){var r=e[n].split("="),s=r[0],o=parseFloat(r[1]);if(i[s]=t.matchMedia("only screen and (min-width: "+o+"em)"),i[s+" down"]=t.matchMedia("only screen and (max-width: "+o+"em)"),n<e.length-1){var a=e[n+1].split("="),l="only screen and ";o&&(l+="(min-width: "+o+"em) and "),l+="(max-width: "+parseFloat(a[1])+"em",i[s+" only"]=t.matchMedia(l)}}return i}}angular.module("app").factory("helper",t),t.$inject=["$window"]}(),function(){function t(t){var e=this;e.$onInit=function(){t.addClass("grid-content"),e.$element=t,e.verticalTitle=e.title;var i=e.title.split(" ");i.length>1&&(e.verticalTitle="<span>"+i.join("</span><span>")+"</span>"),e.accordionColumns.registerColumn(e)},e.clear=function(){e.currentLink&&(e.currentLink.active=!1,e.currentLink.loading=!1)},e.activate=function(t){e.accordionColumns.clear(),e.clear(),t.active=!0,t.loading=!0,e.currentLink=t,e.accordionColumns.activateColumn(e)}}angular.module("components.accordionColumns",[]).component("accordionColumn",{require:{accordionColumns:"^accordionColumns"},bindings:{title:"@",links:"<"},template:'<h3>{{$ctrl.title}}</h3><ul class="no-bullet" ng-class="{active: $ctrl.active === true}"><li ng-repeat="link in $ctrl.links"><a ng-class="{active: link.active, loading: link.loading}" ng-click="$ctrl.activate(link)">{{link.name}}</a></li></ul>',controller:t}),t.$inject=["$element"]}(),function(){function t(t){var e=this;e.$onInit=function(){t.addClass("grid-block"),void 0===e.allOpen&&(e.allOpen=!0),e.columns=[]},e.registerColumn=function(t){e.allOpen&&t.$element.addClass("open"),e.columns.push(t)},e.registerContent=function(t){e.content=t},e.activateColumn=function(t){if(e.content.updateContent(t.currentLink),e.currentColumn)e.currentColumn.$element.removeClass("open");else for(var i=0;i<e.columns.length;i++)e.columns[i].$element.removeClass("open");t.$element.addClass("open"),e.currentColumn=t},e.clear=function(){for(var t=0;t<e.columns.length;t++)e.columns[t].clear()}}angular.module("components.accordionColumns").component("accordionColumns",{bindings:{animation:"&?",allOpen:"<?"},controller:t}),t.$inject=["$element"]}(),function(){function t(t,e,i){var n=this;n.$onInit=function(){e.addClass("grid-content"),n.accordionColumns.registerContent(n)},n.$postLink=function(){i(t,function(t){t.length&&e.find(".default-content").html(t)},null,"default"),i(t,function(t){t.length&&e.find(".content").html(t)},null,"content")},n.updateContent=function(t){n.currentLink=t},n.backToDefault=function(){n.currentLink=null}}angular.module("components.accordionColumns").component("accordionColumnsContent",{require:{accordionColumns:"^accordionColumns"},transclude:{default:"default",content:"content"},template:'<div class="default-content" ng-hide="!!$ctrl.currentLink"></div><div class="content" ng-hide="!$ctrl.currentLink"><div ng-bind-html="$ctrl.content"></div></div>',controller:t}),t.$inject=["$scope","$element","$transclude"]}(),function(){function t(t,e){var i=this;i.$postLink=function(){e(function(){i.$target=angular.element('[anchor-target="'+i.target+'"]'),i.container.register(i)}),t.on("click.anchor",function(){i.$$scrollToTarget(!1)})},i.isPassed=function(){var t=(i.container.scrollTarget?i.container.$scrollTarget.offset().top:0)+(i.stickyManager?i.stickyManager.getStickPoint():0);return i.$target[0].getBoundingClientRect().top-t<=0},i.$$scrollToTarget=function(t){(i.container.scrollTarget?i.container.$scrollTarget.offset().top:angular.element("body,html")).stop().animate({scrollTop:(i.container.scrollTarget?"+=":"")+(i.$target.offset().top-(i.container.scrollTarget?i.container.$scrollTarget.offset().top:0)-(i.stickyManager?i.stickyManager.getStickPoint():0)+1)},t?10:600)},i.setActive=function(e){e?t.addClass(i.container.activeClass||"active"):t.removeClass(i.
1container.activeClass||"active")},i.$onDestroy=function(){t.off("click.anchor")}}angular.module("components.anchor",[]).component("anchor",{require:{container:"^anchorContainer",stickyManager:"^?stickyManager"},bindings:{target:"@"},controller:t}),t.$inject=["$element","$timeout"]}(),function(){function t(t,e){var i=this;i.$onInit=function(){i.anchors=[],i.$scrollTarget=angular.element(i.scrollTarget||t),i.$scrollTarget.on("scroll.anchor-"+i.target,i.$$updateAnchors)},i.register=function(t){i.anchors.push(t),i.onRegister&&i.onRegister({anchor:t})},i.$$updateAnchors=function(t){var n;e(function(){for(var t=0;t<i.anchors.length;t++){if(!i.anchors[t].isPassed())break;n=t}for(t=0;t<i.anchors.length;t++)i.anchors[t].setActive(t===n);i.onChange&&(void 0===n?i.onChange({anchor:null}):i.onChange({anchor:i.anchors[n]}))})},i.$onDestroy=function(){i.$scrollTarget.off("scroll.anchor-"+i.target)}}angular.module("components.anchor").component("anchorContainer",{bindings:{scrollTarget:"@?",activeClass:"@?",onRegister:"&?",onChange:"&?"},controller:t}),t.$inject=["$window","$timeout"]}(),function(){angular.module("components.calendar",[]).component("calendar",{bindings:{month:"<?",year:"<?",events:"<?",onInit:"&?",onMonthChange:"&?",onEventClick:"&?"},templateUrl:"/angular/components/calendar/calendar.html",controller:function(){var t=this;t.$onInit=function(){t.today=new Date,t.today.setHours(0,0,0,0),t.month||(t.month=t.today.getMonth()),t.year||(t.year=t.today.getFullYear()),t.date=t.month?new Date(t.year,t.month):new Date(t.today.getFullYear(),t.today.getMonth()),t.calendar={week:["S","M","T","W","Th","F","Su"],outerStart:[],outerEnd:[],days:[]},t.$$generateCalendar(),t.onInit&&t.onInit({ctrl:t})},t.$onChanges=function(e){if((e.month||e.year)&&t.goToMonth(e.year?e.year.currentValue:t.year,e.month?e.month.currentValue:t.month),e.events&&t.calendar)for(var i=0;i<t.calendar.days.length;i++)t.calendar.days[i].event=t.events&&t.events.indexOf(i+1)>-1},t.$$daysInMonth=function(t,e){return new Date(t,e+1,0).getDate()},t.$$generateCalendar=function(){t.inCurrentMonth=t.today.getMonth()===t.month&&t.today.getFullYear()===t.year;var e=t.date.getDay();t.calendar.outerStart=[];for(var i=t.$$daysInMonth(t.year,t.month-1),n=0;n<e;n++)t.calendar.outerStart[n]=i-e+n+1;var r=t.$$daysInMonth(t.year,t.month);t.calendar.days.splice(Math.min(r,t.calendar.days.length)-1,t.calendar.days.length-r);for(var n=0;n<r;n++){var s=n+1;t.calendar.days[n];t.calendar.days[n]={today:t.inCurrentMonth&&t.today.getDate()===s,event:t.events&&t.events.indexOf(s)>-1}}var o=7-new Date(t.year,t.month,r+1).getDay();if(t.calendar.outerEnd=[],o<7)for(var n=0;n<o;n++)t.calendar.outerEnd[n]=n+1},t.goToMonth=function(e,i){if((t.year!=e||t.month!=i)&&void 0!==e&&void 0!==i)if(i>-1&&i<12){for(var n=0;n<t.calendar.days.length;n++)t.calendar.days[n].event=t.events&&t.events.indexOf(n+1)>-1;t.year=e,t.month=i,t.date=new Date(t.year,t.month),t.$$generateCalendar(),t.onMonthChange&&t.onMonthChange({year:t.year,month:t.month+1})}else console.log("Month out of range")},t.prevMonth=function(){var e=t.month,i=t.year;--e<0&&(i--,e=11),t.goToMonth(i,e)},t.nextMonth=function(){var e=t.month,i=t.year;++e>11&&(i++,e=0),t.goToMonth(i,e)},t.handleEventClick=function(e){t.calendar.days[e].event&&t.onEventClick&&t.onEventClick({day:e+1,month:t.month+1,year:t.year})}}})}(),function(){angular.module("components.carousel",["ui.router"]).component("carousel",{require:{carouselSync:"?^carouselSync",paginator:"?^bmgPagination"},bindings:{slides:"<",slideCount:"<?",auto:"<?",autoInterval:"<?",startSlide:"<?",route:"@?",routeTarget:"@?",onInit:"&?",onSlideChange:"&?",onEdge:"&?"},controller:i});var t,e=1;function i(i,n,r,s,o,a,l,u,c,h,d){var f,p=this,m="";p.id=e++,p.$onInit=function(){p.autoInterval||(p.autoInterval=8e3),p.slideCount||(p.slideCount=1),p.index=p.startSlide||p.index||0,(m=angular.element("<div>")).html(n.html()),p.$$dragDisabled=m.find("carousel").length>0||p.slideCount&&p.slides&&p.slides.length<=p.slideCount,null!==p.carouselSync&&p.carouselSync.registerCarousel(p),t?p.$$dragDisabled||(p.parentCarousel=t):t=p},p.$onChanges=function(t){t.startSlide&&p.slides&&p.slides.length>0&&p.goToSlide(t.startSlide.currentValue,!1)},p.$postLink=function(){h("/angular/components/carousel/carousel.html",!0).then(function(t){if(!i.$destroyed){var e,r=angular.element(t);p.$$slider=r.find(".slides").find(">div"),r.find(".slide").html(m.find(">slide").html()),r.find(".controls").html(m.find(">
1controls").html()),n.html(r),d(n.contents())(i),p.$$dragDisabled||(p.$$draggable=Draggable.create(p.$$slider,{type:"x",lockAxis:!0,edgeResistance:.65,dragResistance:.1,throwResistance:.1,maxDuration:3,throwProps:!0,zIndexBoost:!1,snap:function(t){return p.$$updateIndex(-Math.round(t/p.width)),-Math.max(0,Math.min(p.slides.length-p.slideCount,p.index-Math.floor(p.slideCount/2)))*p.width},onDragStart:function(){p.auto&&u.cancel(p.$$autoRunner)},onDragEnd:function(){p.auto&&p.$$nextAutoStep()}})),f=$(l).on("resize.carousel",s),s(),p.onInit&&p.onInit({ctrl:p}),p.auto&&p.$$nextAutoStep()}function s(){u.cancel(p.$$autoRunner),u.cancel(e),e=u(function(){p.width=n.width()/p.slideCount,p.slides&&p.positionDraggable(!1),p.auto&&p.$$nextAutoStep()})}})},p.$$nextAutoStep=function(){u.cancel(p.$$autoRunner),p.$$autoRunner=u(function(){var t=p.index+p.slideCount,e=Math.floor(p.slideCount/2);0==p.index&&(t+=Math.floor(p.slideCount/2));var i=p.slides.length-p.slideCount+e;t>i&&(t=p.index<i?i:0),p.goToSlide(t,!0).then(p.$$nextAutoStep)},p.autoInterval)},p.handleChildEdgeHit=function(t){t?p.nextSlide():p.prevSlide()},p.$onDestroy=function(){f.off("resize.carousel")},p.$$registerTransitions=function(){if(s.onStart({to:p.route,from:function(t){return t.name!==p.route}},function(t){if(p.targetParams=t.params("to"),!p.blockTransition){var e=c.defer(),i=p.targetParams[p.routeTarget];isNaN(i)?p.$$findIndexByKey(i,0,e):p.parentCarousel?angular.equals(p.parentCarousel.slides[p.parentCarousel.index].images,p.slides)?e.resolve(parseInt(i)):e.reject("Not active sub slide"):e.resolve(parseInt(i)),e.promise.then(function(e){t.from().name!==p.route&&p.onSlideChange&&p.onSlideChange({index:e,slide:p.slides[e]}),p.goToSlide(e,t.from().name===p.route&&!p.parentCarousel)})}p.blockTransition=!1}),a.current.name===p.route){p.targetParams=angular.copy(o);var t=c.defer();p.indexResolved=t.promise;var e=o[p.routeTarget];isNaN(e)?p.$$findIndexByKey(e,0,t):p.parentCarousel?p.parentCarousel.indexResolved.then(function(i){angular.equals(p.parentCarousel.slides[i].images,p.slides)?t.resolve(parseInt(e)):t.reject("Not active sub slide")}).catch(function(e){t.reject("Parent carousel failed to determine index")}):t.resolve(parseInt(e)),t.promise.then(function(t){p.onSlideChange&&p.onSlideChange({index:t,slide:p.slides[t]}),u(function(){p.goToSlide(t,!1)})})}},p.$$findIndexByKey=function(t,e,i){for(var n=e;n<p.slides.length;n++)if(p.slides[n].urlName===t)return void i.resolve(n);p.paginator?p.paginator.paginationPromise.$resolved?p.paginator.nextPage(function(){p.$$findIndexByKey(t,n,i)}):p.paginator.paginationPromise.$promise.then(function(){p.$$findIndexByKey(t,0,i)}):i.reject("Key not found")},p.$$updateIndex=function(t,e){if(p.onEdge&&(t>=p.slides.length?p.onEdge({direction:1}):t<0&&p.onEdge({direction:0})),t=Math.min(p.slides.length-1,Math.max(0,t)),p.index!==t){p.index;if(p.index=t,p.route){var i=angular.copy(p.targetParams);void 0!==p.slides[t].urlName?p.slides[t].urlName!==i[p.routeTarget]&&(i[p.routeTarget]=p.slides[t].urlName):i[p.routeTarget]=p.index,p.blockTransition=void 0===e||e}p.carouselSync&&p.carouselSync.updateCarousels(t),p.onSlideChange&&p.onSlideChange({index:t,slide:p.slides[t],ctrl:p})}},p.updateSlides=function(t){p.nextDisabled=t.rows-1>p.index},p.goToSlide=function(t,e){p.$$updateIndex(t);var i=p.positionDraggable(e);return p.index>=0&&p.index<p.slides.length&&(p.prevDisabled=0===p.index,p.nextDisabled=p.index>=p.slides.rows-1),i},p.prevSlide=function(){0===p.index&&p.onEdge?p.onEdge({direction:0}):p.goToSlide(p.index-1,!0)},p.nextSlide=function(){p.index===p.slides.length-1&&p.onEdge?p.onEdge({direction:1}):p.goToSlide(p.index+1,!0)},p.positionDraggable=function(t){if(null!==p.slides&&void 0!==p.slides.length){var e=c.defer();return p.$$slider?t?(p.$$dragDisabled||p.$$draggable[0].disable(),TweenLite.to(p.$$slider,.8,{throwProps:{x:{velocity:"auto",end:-Math.max(0,Math.min(p.slides.length-p.slideCount,p.index-Math.floor(p.slideCount/2)))*p.width}},onComplete:function(){p.$$dragDisabled||(p.$$draggable[0].update(),p.$$draggable[0].enable()),i.$broadcast("carouselV2.updated"),e.resolve()}})):(TweenLite.set(p.$$slider,{x:-Math.max(0,Math.min(p.slides.length-p.slideCount,p.index-Math.floor(p.slideCount/2)))*p.width}),p.$$dragDisabled||p.$$draggable[0].update(),e.resolve()):e.resolve(),e.promise}}}i.$inject=["$scope","$element","$attrs","$transitions","$stateParams","$state","$window","$timeout","$q","$templateRequest","$compile"]}(),function(){function t(t){var e=this;e.$onInit=function(){e.index=0,e.carouselIndex=e.carouselSync.registerCarousel(e)},e.goToSlide=function(i){t.$evalAsync(function(){e.index=i})}}angular.module("components.carousel").component("carouselNav",{bindings:{slides:"<"},require:{carouselSync:"^carouselSync"},template:'<a ng-click="$ctrl.carouselSync.updateCarousels($index, $ctrl.carouselSync)" ng-repeat="item in $ctrl.slides" ng-class="{active: $index === $ctrl.index}"></a>',controller:t}),t.$inject=["$scope"]}(),function(){function t(t,e,i,n,r,s){var o=this,a=angular.copy(e.contents());o.$onInit=function(){o.$currentIndex=0,o.medium||(o.medium=o.small),o.large||(o.large=o.medium||o.small),o.interval||(o.interval=6e3),o.animationDuration||(o.animationDuration=1),o.animation||(o.animation=function(t){tl=new TimelineLite;var i=o.animationDuration/2;tl.staggerFromTo(e.find("> .current > li"),i,{transform:"rotateX(0)"},{transform:"rotateX(90deg)"},.1,0,function(){n(function(){o.$currentIndex=(o.$currentIndex+o.$setSize)%o.items.length,o.$$buildSets(),tl.staggerFromTo(e.find("> .current > li"),i,{transform:"rotateX(270deg)"},{transform:"rotateX(360deg)"},.1,"+=0",t)})})}),o.$mediaQueries=s.getMediaQueries(),angular.element(r).on("resize.carouselSet",o.$$setSizing),o.$$setSizing(),o.$$buildSets(o.items)}
1,o.$onChanges=function(t){t.items.currentValue&&(o.$$buildSets(t.items.currentValue),n.cancel(o.$timer),o.items.length>o.$setSize&&(o.$timer=n(o.$$switchSets,o.interval))),t.maxHeight.currentValue&&(o.heightSetting={height:o.maxHeight})},o.$postLink=function(){o.$template=angular.element('<ul class="set current" ng-style="$ctrl.heightSetting"><li ng-repeat="item in $ctrl.currentSet track by $index"></li></ul>'),o.$template.find("li").append(a),e.html(o.$template),i(e.contents())(t),o.items&&o.items.length>o.$setSize&&(n.cancel(o.$timer),o.$timer=n(o.$$switchSets,o.interval))},o.$$setSizing=function(){for(var t=o.$setSize,e=Object.keys(o.$mediaQueries),i=0;i<e.length;i++){var r=e[i];if(-1===r.indexOf("down")&&-1===r.indexOf("up")&&-1===r.indexOf("only")){if(!o.$mediaQueries[r].matches)break;o[r]&&(o.$setSize=o[r])}}t!==o.$setSize&&o.items&&o.items.length>o.$setSize&&(n.cancel(o.$timer),o.$timer=n(o.$$switchSets,o.interval))},o.$$switchSets=function(){n(function(){o.animation(function(){n.cancel(o.$timer),o.items.length>o.$setSize&&(o.$timer=n(o.$$switchSets,o.interval))})})},o.$$buildSets=function(){if(void 0!==o.items)if(o.items.length<=o.$setSize)o.currentSet=o.items;else{var t=(o.$currentIndex+o.$setSize)%o.items.length,e=t<o.$currentIndex;o.currentSet=o.items.slice(o.$currentIndex,e?o.items.length:t),e&&(o.currentSet=o.currentSet.concat(o.items.slice(0,o.$setSize-o.currentSet.length)))}else o.currentSet=[],o.nextSet=[]}}angular.module("components.carousel").component("carouselSet",{bindings:{small:"<",medium:"<?",large:"<?",items:"<",animation:"&?",animationDuration:"<?",interval:"<?",maxHeight:"<?"},controller:t}),t.$inject=["$scope","$element","$compile","$timeout","$window","helper"]}(),function(){angular.module("components.carousel").component("carouselSync",{controller:function(){var t=this;t.$onInit=function(){t.$carousels=[]},t.registerCarousel=function(e){return t.$carousels.push(e),t.$carousels.length-1},t.updateCarousels=function(e,i){for(var n=0;n<t.$carousels.length;n++)n!==i&&t.$carousels[n].goToSlide(e,!0,!0)}}})}(),function(){angular.module("components.carousel").component("carouselV2",{require:{parentCarousel:"?^^carouselV2",carouselSync:"?^carouselSync",paginator:"?^bmgPagination"},bindings:{slides:"<",slideCount:"<?",spacing:"<?",auto:"<?",autoInterval:"<?",startSlide:"<?",route:"@?",routeTarget:"@?",animationPrep:"&?",animation:"&?",preAnimation:"&?",animationSnap:"&?",onInit:"&?",onSlideChange:"&?",onEdge:"&?"},controller:e});var t=1;function e(e,i,n,r,s,o,a,l,u,c,h){var d,f=this,p="";f.id=t++,f.$onInit=function(){f.autoInterval||(f.autoInterval=8e3),f.animationPrep||(f.animationPrep=function(t){return t.data}),f.animation||(f.animation=function(t){return{x:t.carousel.width()*index}}),f.spacing||(f.spacing=0),f.animationSnap||(f.animationSnap=function(t){var e=-Math.round(t.offset/f.width);return{index:e,position:-Math.max(0,Math.min(f.slides.length-f.slideCount,e-Math.floor(f.slideCount/2)))*f.width}}),f.index=f.startSlide||0,f.renderIndex=f.index,(p=angular.element("<div>")).html(i.html()),f.$$dragDisabled=p.find("carousel").length>0||void 0!==f.slideCount&&f.slides&&f.slides.length<=f.slideCount,null!==f.carouselSync&&(f.carouselIndex=f.carouselSync.registerCarousel(f)),void 0===f.slideCount&&(f.slideCount=1),void 0!==f.slides&&f.$$registerTransitions(),f.onInit&&f.onInit({ctrl:f})},f.$onChanges=function(t){void 0===f.targetParams&&(f.targetParams=s,f.$$registerTransitions()),isNaN(f.targetParams[f.routeTarget])||(f.$$updateIndex(parseInt(f.targetParams[f.routeTarget]),!1),f.positionDraggable(!1)),t.startSlide&&f.goToSlide(t.startSlide.currentValue,!1),l(function(){f.$$updateSlideReferences(!0)}),t.slides&&!t.slides.previousValue&&f.auto&&f.$$nextAutoStep()},f.$postLink=function(){c("/angular/components/carousel/carouselV2.html",!0).then(function(t){if(!e.$destroyed){var n,r=angular.element(t);f.$$dragger=r.find(".drag-tracker")[0],f.$$slider=r.find(".slides").find(">div"),r.find(".slide").html(p.find(">slide").html()),r.find(".controls").html(p.find(">controls").html()),i.html(r),h(i.contents())(e),f.$$dragDisabled||(TweenLite.set(f.$$dragger,{position:"absolute",x:0}),f.$$draggable=Draggable.create(f.$$dragger,{type:"x",trigger:i,lockAxis:!0,edgeResistance:.65,dragResistance:.1,dragClickables:!0,throwResistance:.1,maxDuration:3,throwProps:!0,zIndexBoost:!0,snap:function(t){var e=f.animationSnap({offset:t,data:f.animationData});return f.$$updateIndex(e.index),e.position},onDragStart:function(){f.parentCarousel&&f.parentCarousel.$$draggable[0].disable(),f.auto&&l.cancel(f.$$autoRunner)},onDragEnd:function(){f.parentCarousel&&f.parentCarousel.$$draggable[0].enable()},onThrowComplete:function(){f.auto&&f.$$nextAutoStep()},onThrowUpdate:f.$$updateSlidePositions,onDrag:f.$$updateSlidePositions})),l(function(){f.$$slideElements=i.find("> .loader-wrap > .slides > div > .slide"),f.$$updateSlideReferences(!1)}),d=$(a).on("resize.carousel",s),f.slides&&(s(),f.auto&&f.$$nextAutoStep())}function s(){l.cancel(f.$$autoRunner),l.cancel(n),n=l(function(){f.$$updateSlideReferences(),f.$$updateSlidePositions(),f.positionDraggable(!1),f.auto&&f.$$nextAutoStep()},100)}})},f.$$updateSlideReferences=function(t){t&&(f.$$slideElements=i.find("> .loader-wrap > .slides > div > .slide")),f.maxHeight=0;for(var e=0;e<f.$$slideElements.length;e++){var n=angular.element(f.$$slideElements[e]);f.maxHeight<n.outerHeight()&&(f.maxHeight=n.outerHeight())}i.find(".slides").width();if(f.animationData=f.animationPrep({data:{slideElements:f.$$slideElements,slideData:f.slides,carousel:i,slideContainerWidth:i.find("> .loader-wrap > .slides").width(),spacing:f.spacing,slideWidth:f.slideCount&&f.slides?(i.width()-f.spacing*(f.slideCount-1))/f.slideCount:0}}),f.preAnimation&&f.preAnimation({offset:0,data:f.animationData}),f.animationData)for(e=0;e<f.$$slideElements.length;e++)TweenLite.set(f.animationData.slideElements[e],f.animation({offset:0,direction:0,index:e,data:f.animationData}))},f.$$nextAutoStep=function(){l.cancel(f.$$autoRunner),f.$$autoRunner=l(function(){f.scrollWidthRight().then(f.$$nextAutoStep)},f.autoInterval)},f.handleChildEdgeHit=function(t){t?f.nextSlide():f.prevSlide()},f.$onDestroy=function(){d.off("resize.carousel")},f.$$registerTransitions=function(){if(r.onStart({to:f.route}
1,function(t,e,i){if(f.targetParams=t.params(),!f.blockTransition){var n=i.defer(),r=t.params()[f.routeTarget];isNaN(r)?f.$$findIndexByKey(r,0,n):f.parentCarousel?angular.equals(f.parentCarousel.slides[f.parentCarousel.index].images,f.slides)?n.resolve(parseInt(r)):n.reject("Not active sub slide"):n.resolve(parseInt(r)),n.promise.then(function(e){t.from().name!==f.route&&f.onSlideChange&&f.onSlideChange({index:e,slide:f.slides[e]}),f.goToSlide(e,t.from().name===f.route&&(!f.parentCarousel||t.params("from").caseStudy===f.targetParams.caseStudy))})}f.blockTransition=!1}),o.current.name===f.route){f.targetParams=angular.copy(s);var t=u.defer();f.indexResolved=t.promise;var e=s[f.routeTarget];isNaN(e)?f.$$findIndexByKey(e,0,t):f.parentCarousel?f.parentCarousel.indexResolved.then(function(i){angular.equals(f.parentCarousel.slides[i].images,f.slides)?t.resolve(parseInt(e)):t.reject("Not active sub slide")}).catch(function(e){t.reject("Parent carousel failed to determine index")}):t.resolve(parseInt(e)),t.promise.then(function(t){f.onSlideChange&&f.onSlideChange({index:t,slide:f.slides[t]}),l(function(){f.goToSlide(t,!1)})})}},f.$$findIndexByKey=function(t,e,i){for(var n=e;n<f.slides.length;n++)if(f.slides[n].urlName===t)return void i.resolve(n);f.paginator?f.paginator.paginationPromise.$resolved?f.paginator.nextPage(function(){f.$$findIndexByKey(t,n,i)}):f.paginator.paginationPromise.$promise.then(function(){f.$$findIndexByKey(t,0,i)}):i.reject("Key not found")},f.$$updateSlidePositions=function(){var t=f.$$dragger._gsTransform.x;void 0===f.$previousOffset&&(f.$previousOffset=t);var i=t-f.$previousOffset;if(i&&(i/=Math.abs(i)),f.preAnimation&&f.preAnimation({offset:t,data:f.animationData}),f.slides&&f.animationData)for(var n=0;n<f.slides.length;n++)TweenLite.set(f.animationData.slideElements[n],f.animation({offset:t,direction:i,index:n,data:f.animationData}));f.$previousOffset=t,e.$broadcast("carouselV2.updated",{offset:t,direction:i})},f.$$updateIndex=function(t,e){var i,n;(f.onEdge&&(t>=f.slides.length?f.onEdge({direction:1}):t<0&&f.onEdge({direction:0})),newIndex=t>=0?t%f.slides.length:f.slides.length-1+(t+1)%f.slides.length,f.index!==newIndex)&&(newIndex>f.index?(i=newIndex-f.index,n=f.index+(f.slides.length-newIndex)):(i=newIndex+(f.slides.length-f.index),n=f.index-newIndex),i<=n?f.renderIndex+=i:f.renderIndex-=n,f.index=newIndex,e||(f.carouselSync&&f.carouselSync.updateCarousels(newIndex,f.carouselIndex),f.onSlideChange&&f.onSlideChange({index:newIndex,slide:f.slides[t],ctrl:f})))},f.updateSlides=function(t){f.nextDisabled=t.rows-1>f.index},f.scrollWidthLeft=function(){return f.$$scrollWidth(1)},f.scrollWidthRight=function(){return f.$$scrollWidth(-1)},f.$$scrollWidth=function(t){var e=u.defer();f.$$dragDisabled||f.$$draggable[0].disable();var i=f.animationSnap({offset:f.$$dragger._gsTransform.x+t*f.animationData.slideContainerWidth,data:f.animationData});return f.$$updateIndex(i.index),TweenLite.to(f.$$dragger,.8,{throwProps:{x:{velocity:"auto",end:i.position}},onUpdate:f.$$updateSlidePositions,onComplete:function(){f.$$dragDisabled||(f.$$draggable[0].update(),f.$$draggable[0].enable()),e.resolve()}}),e.promise},f.goToSlide=function(t,e,i){f.$$updateIndex(t,i);var n=f.positionDraggable(e);return f.index>=0&&f.index<f.slides.length&&(f.prevDisabled=0===f.index,f.nextDisabled=f.index>=f.slides.rows-1),n},f.prevSlide=function(){0===f.index&&f.onEdge?f.onEdge({direction:0}):f.goToSlide(f.index-1,!0)},f.nextSlide=function(){f.index===f.slides.length-1&&f.onEdge?f.onEdge({direction:1}):f.goToSlide(f.index+1,!0)},f.positionDraggable=function(t){var e=u.defer(),i=f.animation({offset:f.$$dragger._gsTransform.x,index:f.index,data:f.animationData});return t?(f.$$dragDisabled||f.$$draggable[0].disable(),TweenLite.to(f.$$dragger,.8,{throwProps:{x:{velocity:"auto",end:f.$$dragger._gsTransform.x-i.x}},onComplete:function(){f.$$dragDisabled||(f.$$draggable[0].update(),f.$$draggable[0].enable()),e.resolve()},onUpdate:f.$$updateSlidePositions})):i&&(TweenLite.set(f.$$dragger,{x:f.$$dragger._gsTransform.x-i.x}),f.$$dragDisabled||f.$$draggable[0].update(),f.$$updateSlidePositions(),e.resolve()),e.promise}}e.$inject=["$scope","$element","$attrs","$transitions","$stateParams","$state","$window","$timeout","$q","$templateRequest","$compile"]}(),function(){function t(t,e,i,n){var r=this;r.$onInit=function(){n.ready&&!r.ready||(e.html(r.content),t(e.contents())(i.$parent))}}angular.module("app").component("compile",{bindings:{content:"<",ready:"<?"},controller:t}),t.$inject=["$compile","$element","$scope","$attrs"]}(),function(){angular.module("app").directive("equalizer",function(){return{restrict:"A",require:"^?equalizerManager",link:function(t,e,
1i,n){n&&n.registerEqualizer(i.equalizer,e)}}})}(),function(){function t(t,e,i,n,r,s,o){var a=this;if(a.$mediaQueries=r.getMediaQueries(),a.counts={},i.class)for(var l=Object.keys(a.$mediaQueries),u=0;u<l.length;u++){var c=l[u],h=new RegExp("("+c+"\\-up\\-)(\\d+)","g").exec(i.class);null!==h&&(a.counts[c]=parseInt(h[2]))}a.mediaQuery=i.equalizerManager?a.$mediaQueries[i.equalizerManager]:n.matchMedia("(min-width: 0px)"),a.$items=[],a.registerEqualizer=function(t,e){a.$items.push(e),a.$updateHeights()},angular.element(n).on("resize.equalizerManager",function(){a.$updateSize(),a.$updateHeights()}),a.$updateSize=function(){var t=0;a.$gridSize=9999;for(var e=Object.keys(a.$mediaQueries),i=0;i<e.length;i++){var n=e[i];(t=a.counts[n])&&a.$mediaQueries[n].matches&&(a.$gridSize=t)}},a.$updateHeights=function(){s(function(){for(var t=[],e=0;e<a.$items.length;e++)a.$items[e]&&(t.length>1&&e%a.$gridSize==0&&(a.$calcHeights(t),t=[]),t.push(angular.element(a.$items[e])));t.length>0&&a.$calcHeights(t)})},a.$calcHeights=function(t){for(var e=0,n=0;n<t.length;n++){(r=t[n]).css({height:"",flex:""}),e=Math.max(r.outerHeight(),e)}if(console.log(e),a.mediaQuery.matches&&a.$gridSize>1&&t.length>1)for(n=0;n<t.length;n++){var r=t[n];"flex"==i.equalizerManager?r.css("flex","0 0 "+e+"px"):r.css("height",e)}},a.$updateSize()}angular.module("app").directive("equalizerManager",function(){return{restrict:"A",controller:t,link:function(){},priority:99}}),t.$inject=["$scope","$element","$attrs","$window","helper","$timeout","bmgLogger"]}(),function(){angular.module("app").directive("imageSource",e);var t=0;function e(e,i,n,r,s){return{priority:99,restrict:"A",link:function(o,a,l,u){var c=t;t++;var h,d=n(l.imageSource)(o),f=e.getMediaQueries(),p=angular.element(i),m=r.defer(),g=o.$on("carouselV2.updated",w);m.promise.then(g);var v=angular.element('<div class="image-placeholder"><div class="lds-ripple"><div></div><div></div></div></div>'),_=v.find("img"),y=!1;a.height()>30&&(y=!0,_.css({top:-a.outerHeight()/2-17}));a.on("transitionend.imageSource",function(){v.remove(),a.off("transitionend.imageSource")}),a.is("img")?a.after(v):a.append(v);function b(){m.promise.then(function(){if(h){a.removeClass("loaded");var t=new Image;t.onload=t.onerror=function(){a.addClass("loaded"),y||(y=!0,_.css({position:"absolute",top:-a.outerHeight()/2-17})),v.remove()},t.src=h,a.is("img")?a.attr("src",h):a.css("backgroundImage","url('"+h+"')")}else a.addClass("loaded no-image"),v.remove();C.off("scroll.imageSource"+c)})}function w(){var t=a[0].getBoundingClientRect();t.top<=p.height()&&t.left<=p.width()&&t.bottom<=p.height()+t.height&&t.right>=0&&m.resolve()}var x,C=p.on("scroll.imageSource"+c,w);if(d&&"string"!=typeof d){var T=function(){for(var t,e=Object.keys(f),i=0;i<e.length;i++){var n=e[i];if(-1===n.indexOf("down")&&-1===n.indexOf("up")&&-1===n.indexOf("only")){if(!f[n].matches)break;d[n]&&(t=n)}}t&&($.matches&&d[t+"retina"]&&(t+="retina"),h=d[t]),x!==t&&b(),x=t},$=i.matchMedia("only screen and (min-resolution: 124dpi), only screen and (min-resolution: 1.3dppx), only screen and (min-resolution: 48.8dpcm)");p.on("resize.imageSource"+c,T),T()}else h=d,b();s(function(){w()})}}}e.$inject=["helper","$window","$parse","$q","$timeout"]}(),function(){function t(t,e,i){var n=this;n.$onInit=function(){n.currentPadding=0,n.items=[],n.$addedIds=[]},n.updatePadding=function(t,e){if(-1===n.$addedIds.indexOf(t.id))n.items.push(t),n.$addedIds.push(t.id);else{for(var i=-1,r=0;r<n.items.length;r++)if(t.id===n.items[r].id){i=r;break}if(e){i>-1&&n.addedIds.slice(s,1);var s=n.$addedIds.indexOf(t.id);s>-1&&n.addedIds.slice(s,1)}else i>-1&&(n.items[i]=t)}if(t.width>n.currentPadding)n.currentPadding=t.width;else if(t.width<n.currentPadding){var o=0;for(r=0;r<n.items.length;r++){var a=n.items[r];o<a.width&&(o=a.width)}n.currentPadding=o}for(r=0;r<n.items.length;r++)n.items[r].element.css("padding-left",n.currentPadding+(n.space||16))}}angular.module("app").component("labeledList",{bindings:{space:"<?"},controller:t}),t.$inject=["$scope","$element","$filter"]}(),function(){angular.module("app").component("labeledListItem",{bindings:{label:"@?",labelClass:"@?"}
1,template:'\n <span ng-class="$ctrl.labelClass">{{$ctrl.label}}</span>\n <ng-transclude></ng-transclude>\n ',transclude:!0,require:{labeledList:"^labeledList"},controller:e}),e.$inject=["$scope","$element","$window","$timeout","$interval"];var t=0;function e(e,i,n,r,s){t++;var o=this;o.id=t,o.$postLink=function(){if(o.$labelElement=i.find("> span"),o.previousWidth=o.$labelElement.width(),o.labelClass)var a=s(function(){angular.element("html").is(".fa-events-icons-ready,.fa-events-icons-failed")&&(o.$updatePadding(),s.cancel(a))},100);else r(o.$updatePadding,15);o.$window=angular.element(n).on("resize.labeledListItem"+t,function(){e.$evalAsync(o.$updatePadding)}),i.on("mutateme.zf.trigger click.zf.accordion keydown.zf.accordion",function(){e.$evalAsync(o.$updatePadding)});i.closest(".accordion").on("down.zf.accordion",function(){e.$evalAsync(o.$updatePadding)})},o.$onDestroy=function(){o.labeledList.updatePadding({element:i,id:o.id,width:0},!0),o.$window.off("resize.labeledListItem"+t)},o.$updatePadding=function(){var t=o.$labelElement.width();t&&t!==o.previousWidth&&(o.labeledList.updatePadding({element:i,id:o.id,width:t}),o.previousWidth=t)}}}(),function(){function t(t,e,i,n,r){var s=this;s.$onInit=function(){s.ready=!1,n.isSlotFilled("content")?(n(function(e){e.length&&t.find(".loading-indicator").html(e)},null,"indicator"),n(function(e){e.length&&t.find(".content").html(e)},null,"content")):n(function(e){e.length&&t.find(".content").html(e)}
1)},s.$postLink=function(){s.initialized=!0;var e=i.defer();if(void 0!==s.onContentReady)s.onContentReady({deferred:e});else{var n=0,r=t.find(".content img").filter(function(){return!$(this).prop("complete")}).on("load.loader",function(){++n===r.length&&e.resolve()}).on("error.loader",function(t){r.off("load.loader"),e.reject(t)});r.length||e.resolve()}e.promise.then(function(){s.ready=!0}).catch(function(t){void 0!==s.onError&&s.onError({error:t}),s.ready=!0})}}angular.module("components.loader",["ngAnimate"]).component("loader",{bindings:{onContentReady:"&?",onError:"&?"},template:'<div ng-class="{loaded: $ctrl.ready, initialized: $ctrl.initialized}"><div class="loading-indicator"><span class="fa fa-spin fa-spinner"></span></div><div class="content"></div></div>',transclude:{indicator:"?indicator",content:"?content"},controller:t}),t.$inject=["$element","$attrs","$q","$transclude","$timeout"]}(),function(){function t(t){return{open:function(){t.$broadcast("toggleModalSlider",!0)},close:function(){t.$broadcast("toggleModalSlider",!1)}}}function e(t,e,i){}function i(t){return{replace:!0,restrict:"E",transclude:!0,templateUrl:"/angular/components/modalSlider/modalContainer.html",link:function(t,e,i,n){},controller:"modalSliderController"}}function n(t,e,i,n,r,s,o){return{restrict:"E",replace:!0,link:function(t,i,a,l,u){var c,h=l[0],d=(l[1],angular.element("body")),f=angular.element("html");t.thumbnails=[],t.updateNav=function(e){n.go("modalSet.item",{item:t.$ctrl.items[e].urlName})},t.accessCarousel=function(t){c=t,n.current.name==a.state&&(x(),m=!0)};var p=o.matchMedia("only screen and (min-width: 40em)");p.addListener(function(e){t.$evalAsync(function(){t.isMedium=e.matches})}),t.isMedium=p.matches;var m,g,v,_=$(window).on("resize.portfolio",function(){e(function(){t.width=i.width()})});s.onEnter({to:a.state,from:function(t){return t.name!=a.state}},function(t){m||(x(t.params("to").item),m=!0)}),s.onExit({to:function(t){return t.name!=a.state},from:a.state},function(){m=!1,y.reverse(),h.index=void 0,h.prevIndex=void 0,d.css("top","").removeClass("no-scroll"),d.scrollTop(w),f.scrollTop(w)}),e(function(){g=i.find(".background"),v=i.find(".container")});var y,_=$(window).on("keydown.portfolio",function(t){27===t.which&&n.go(a.landing)}),b=.6,w=0;function x(t){for(var t=t||r.item,n=0,s=0;s<c.slides.length;s++)if(c.slides[s].urlName===t){n=s;break}e(function(){c.goToSlide(n,!1)}),void 0===y?((y=new TimelineMax).add(TweenLite.fromTo(i,.001,{visibility:"hidden"},{visibility:"visible"})),y.add(TweenLite.fromTo(v,b,{opacity:0},{opacity:1})),y.add(TweenLite.fromTo(g,b,{opacity:0},{opacity:1,delay:-b}))):y.play(),h.openTrigger=void 0,w=d.scrollTop()||f.scrollTop(),d.css("top",-w).addClass("no-scroll")}t.$on("$destroy",function(){_.off("keydown.portfolio")})},templateUrl:"/angular/components/modalSlider/modalSlider.html",require:["^modalContainer","^pagination"]}}angular.module("components.modalSlider",["components.pagination","ui.router"]).factory("modalSliderService",t).controller("modalSliderController",e).directive("modalContainer",i).directive("modalSlider",n),t.$inject=["$rootScope"],e.$inject=["$scope","$location","$stateParams"],i.$inject=["$stateParams"],n.$inject=["$rootScope","$timeout","$location","$state","$stateParams","$transitions","$window"]}(),function(){function t(t,e,i){return{api:{primary:i("/api/main/primary-nav",{},{query:{cache:!0,isArray:!0}})}}}function e(t){return{replace:!0,restrict:"E",templateUrl:"/angular/components/navigation/topBar.html"}}function i(t){return{replace:!0,templateUrl:"/angular/components/navigation/accordionNav.html",scope:{links:"=?"},link:function(e,i,n){e.links||(e.links=t.api.primary.query())}}}function n(t,e,i){return{replace:!0,restrict:"E",scope:{links:"=?",rootId:"=",autoSize:"=?",maxLevel:"=?",onReady:"&?"},template:'\n <ul class="multi-nav grid-x small-up-1" ng-class="{\'auto-size\': autoSize}">\n <li class="cell level-1 level" ng-style="shift">\n <ul>\n <li ng-repeat="link in links|filter:{styles: \'!extra-link\'}" ng-class="link.styles">\n <a ng-if="link.children.length > 0" ng-click="handleClick($event, link)" ng-class="{active: link.id === levels[0].id}"><span>{{link.name}}</span><span class="fa fa-angle-right"></span></a>\n <a ng-if="!link.children.length" ng-href="{{link.url}}" ng-click="handleClick($event, link, 0)" ng-class="{active: link.id === levels[0].id}">{{link.name}}</a>\n </li>\n </ul>\n <br ng-if="(links|filter:{styles: \'extra-link\'}).length" />\n <ul class="top-links">\n <li ng-repeat="link in links|filter:{styles: \'extra-link\'}" ng-class="link.styles">\n <a ng-if="link.children.length > 0" ng-click="handleClick($event, link, 0)" ng-class="{active: link.id === levels[0].id}"><span>{{link.name}}</span><span class="fa fa-angle-right"></span></a>\n <a ng-if="!link.children.length" ng-href="{{link.url}}" ng-click="handleClick($event, link, 0)" ng-class="{active: link.id === levels[0].id}">{{link.name}}</a>\n </li>\n </ul>\n </li>\n <li class="cell level-{{$index + 2}} level" ng-repeat="level in levels">\n <ul>\n <li class="standard"><a class="back" ng-click="back()"><span class="fa fa-arrow-left"></span> Back</a></li>\n <li class="standard"><a class="current" ng-href="{{level.url}}" ng-click="handleClick($event, level, $index + 1)">{{level.name}}</a></li>\n <li ng-repeat="link in level.children">\n <a ng-if="link.children.length > 0 && link.id !== level.id" ng-click="handleClick($event, link, $index + 1)" ng-class="{active: link.id === levels[$index + 1].id}"><span>{{link.name}}</span><span class="fa fa-angle-right"></span></a>\n <a ng-if="!link.children.length || link.id === level.id" ng-href="{{link.url}}" ng-click="handleClick($event, link, $index + 1)" ng-class="{active: link.id === levels[$index + 1].id}">{{link.name}}</a>\n </li>\n </ul>\n </li>\n </ul>\n ',link:function(n,r,s){var o;n.service||(n.links=t.api.primary.query({rootId:n.rootId,maxLevel:n.maxLevel||3},function(t){e(function(){a(),n.onReady&&n.onReady({data:t})})}));function a(){n.levels=[],o=0,l()}function l(){var t="-"+o+"00%";if(n.autoSize&&"small"!==Foundation.MediaQuery.current){for(var e=angular.element(".level"),i=0,s=0;s<=o;s++)i+=angular.element(e[s]).width();t=r.width()-i+"px"}n.shift={"margin-left":t}}n.handleClick=function(t,i,r){void 0!==i.children&&i.children.length>0&&(0===n.levels.length||i.id!==n.levels[o-1].id)?(t.preventDefault(),n.levels.length>r&&(console.log(n.levels.length,r),n.levels=n.levels.slice(0,r),o=r),n.levels.push(i),o++,e(l)):a()},n.$root.$watch("dropdownOpen",function(t){t||a()});var u=angular.element(i).on("resize.multiNav",l);n.$on("$destroy",function(){u.off("resize.multiNav")}),n.back=function(){n.levels.pop(),o--,l()}}}}angular.module("components.navigation",["ngResource","utility"]).factory("navigationService",t).directive("topBar",e).directive("accordionNav",i).directive("multiNav",n).directive("activeClass",function(){return{restrict:"A",link:function(t,e,
1i){i.activeClass;var n=i.ngHref||i.href;0===location.pathname.indexOf(n)?e.addClass("active"):e.removeClass("active")}}}),t.$inject=["$q","$timeout","$resource"],e.$inject=["navigationService"],i.$inject=["navigationService"],n.$inject=["navigationService","$timeout","$window"]}(),function(){function t(t,e,i,n,r,s,o){var a=this;a.loading=!1,a.$onInit=function(){a.$scroller=angular.element(a.scrollContainer?a.scrollContainer:s),o(function(){a.$container=a.container?angular.element(a.container):e}),a.take||(a.take=15),a.page||(a.page=1),!a.$service&&a.data?(a.rows=a.data.length,a.pageLimit=Math.ceil(a.rows/a.take)):a.onError&&a.onError({message:"No content has been connected."}),i(t,function(t){t.length&&e.append(t)}),a.$$initialized=!0,a.onInit&&a.onInit({ctrl:a})},a.$onChanges=function(t){if(t.service)if(t.service.currentValue){var e=t.service.currentValue.split("."),i=n.get(e[0]);a.$resource=i[e[1]]}else a.$resource=null;t.params&&(a.$$paramsValid()?a.$$toPage(1,!0):a.onError&&a.onError({message:"Required parameter is missing."}))},a.$postLink=function(){a.$isInfinite=0===e.find("pagination-page-links, pagination-load-more").length&&!a.disableScroll,a.scrollTarget=angular.element("[pagination-scroll]"),a.scrollTarget.length||(a.scrollTarget=angular.element("body,html")),a.$isInfinite&&a.scrollTarget.on("scroll.pagination",function(){a.scrollTarget.scrollTop()+a.scrollTarget.height()>=a.scrollTarget[0].scrollHeight&&a.nextPage()})},a.$onDestroy=function(){a.scrollTarget&&a.scrollTarget.off("scroll.pagination")},a.updateParam=function(t,e){a.params||(a.params={}),a.params[t]=e,a.$$toPage(1,!0)},a.$$paramsValid=function(){if(!a.required)return!0;if(!a.params)return!1;for(var t=a.required.replace(" ","").split(","),e=0;e<t.length;e++){var i=a.params[t[e]];if(void 0===i||null===i)return!1}return!0},a.getParam=function(t){if(a.params)return a.params[t]},a.prevPage=function(t){a.page>1&&a.loading&&a.$$toPage(a.page-1,t)},a.nextPage=function(t){a.finished||a.loading||a.$$toPage(a.page+1,t)},a.clearParam=function(t){a.params[t]=null,a.$$toPage(1,!0)},a.$$toPage=function(t,i){var n=(t-1)*a.take,s=r.defer();if(a.$promise=s.promise,a.loading=!0,a.empty=!1,a.$resource){if(i&&a.initialized){var l=e.offset().top-(a.stickyManager?a.stickyManager.getStickPoint():0);l<0&&a.$scroller.stop().animate({scrollTop:"+="+l},300)}var u=angular.copy(a.params);u.pageSize=a.take,u.offset=n,a.$resource.get(u).$promise.then(function(t){s.resolve(t)}).catch(function(t){s.reject(t)})}else a.data&&(n>a.data.length-1?s.reject({message:"No content found for this page."}):s.resolve({items:a.data.slice(n,n+a.take),rows:a.data.length}));return s.promise.then(function(e){if(i)a.items=e.items,a.$lastCheck=0;else for(var n=0;n<e.items.length;n++)a.items.push(e.items[n]);a.page=t,a.rows=e.rows,a.pageLimit=Math.ceil(e.rows/a.take),a.finished=a.page*a.take>=a.rows,a.initialized=!0,a.empty=0===a.items.length,a.loading=!1,o(function(){a.$isInfinite&&a.scrollTarget&&a.scrollTarget.height()>=a.scrollTarget[0].scrollHeight&&!a.finished&&a.nextPage(),a.onChange&&a.onChange({page:a.page,newItems:e.items,items:a.items,rows:a.rows,finished:a.finished,empty:a.empty,controller:a})})}).catch(function(t){a.onError&&a.onError({message:t.message})}),s.promise},a.findItem=function(t,i){function n(t,i){for(var r,s,l=a.$lastCheck;l<a.items.length;l++)i(t,a.items[l])&&(r=a.items[l],s=l);r?a.onFound&&o(function(){var t=e.find('[ng-repeat$="$ctrl.items"]')[s].getBoundingClientRect(),i=0;a.scrollTarget.length>1&&(i=parseInt(angular.element(a.scrollTarget[1]).css("padding-top"))),a.scrollTarget.animate({scrollTop:"+="+(t.top-i)},500,function(){a.onFound({match:r})})}):a.finished?a.onError&&a.onError({message:"Item not found."}):(a.$lastCheck=a.items.length,a.nextPage(!0),a.$promise.then(function(){n(t,i)}))}a.$lastCheck=0,a.page>1?(a.$$toPage(1,!0),a.$promise.then(function(){n(t,i)})):n(t,i)}}angular.module("components.pagination",["ngResource"]).component("pagination",{bindings:{service:"@?",take:"<?",data:"<?",page:"<?",params:"<?",required:"@?",scrollContainer:"@?",disableScroll:"<?",container:"@?",onChange:"&?",onInit:"&?",onError:"&?",onFound:"&?"},require:{stickyManager:"^?stickyManager"},transclude:!0,controller:t}),t.$inject=["$scope","$element","$transclude","$injector","$q","$window","$timeout"]}(),function(){function t(t,e,i,n,r){var s=this;s.$$initalizeContent=function(){s.value=s.pagination.getParam(s.param),s.$$initialLoad=!0,s.delay||(s.delay=0),i(function(i,o){t.empty().html(i),r(function(){var i=t.find("input, select");if(i.is('[type="checkbox"]')){s.value||(s.value=[]);for(var o=[],a=0;a<i.length;a++){var l=(u=angular.element(i[a])).attr("ng-true-value").replace(/'/g,"");o[a]=s.value.indexOf(l)>-1&&l,u.attr("ng-model","$ctrl.value["+a+"]")}s.value=o}else if(i.is('[type="radio"]'))for(a=0;a<i.length;a++){var u;(u=angular.element(i[a])).attr("ng-model","$ctrl.value")}else i.attr("ng-model","$ctrl.value");
1t.find("[ng-submit]").length||e.$watch("$ctrl.value",function(t){s.$$initialLoad||(r.cancel(s.$updateTimer),s.$updateTimer=r(s.updateFilterParam,s.delay)),s.$$initialLoad=!1},!0);var c=t.find("[ng-repeat]");c.length&&c.removeAttr("ng-repeat"),n(t.contents())(e)})})},s.$onInit=function(){s.promise?s.promise.then(s.$$initalizeContent):s.$$initalizeContent()},s.updateFilterParam=function(t){var e=angular.copy(s.value);if(Array.isArray(e)){for(var i=[],n=0;n<e.length;n++){var r=e[n];(0===r||r)&&i.push(r)}e=i}s.pagination.updateParam(s.param,e),s.onUpdate&&s.onUpdate({key:s.param,value:e}),t&&(s.value=void 0)},s.clearFilter=function(){s.value=void 0}}angular.module("components.pagination").component("paginationFilter",{require:{pagination:"^pagination"},bindings:{param:"@",promise:"<?",delay:"<?",onUpdate:"&"},transclude:!0,controller:t}),t.$inject=["$element","$scope","$transclude","$compile","$timeout"]}(),function(){function t(t,e){var i=this;i.$onInit=function(){e(function(e){e.length&&t.find("div").html(e)})},i.loadMore=function(){i.pagination.nextPage()}}angular.module("components.pagination").component("paginationLoadMore",{require:{pagination:"^pagination"},transclude:!0,controller:t,template:'<div ng-click="$ctrl.loadMore()" ng-hide="$ctrl.pagination.finished"></div>'}),t.$inject=["$element","$transclude"]}(),function(){function t(t,e){var i=this;i.$onInit=function(){e.addClass("ng-hide"),t.$watch("$ctrl.pagination.$promise",function(t){void 0!==t&&t.then(function(t){t.rows>t.items.length?(e.removeClass("ng-hide"),i.$$calculateSpacing()):e.addClass("ng-hide")})})},i.$$calculateSpacing=function(){for(var t=0,e=0;e<i.spacing.length;e++)t+=i.spacing[e];var n=[];for(e=1;e<=i.pagination.pageLimit;e++)n.push(e);if(t>=i.pagination.pageLimit)i.blocks=[n];else{var r=(i.pagination.pageLimit-t)/(i.spacing.length-1);i.blocks=[];var s=0;for(e=0;e<i.spacing.length;e++)i.blocks.push(n.slice(Math.round(s),i.spacing[e]+s)),s+=i.spacing[e]+r}},i.toPage=function(t){i.pagination.$$toPage(t,!0)},i.prevPage=function(){i.pagination.prevPage(!0)},i.nextPage=function(){i.pagination.nextPage(!0)}}angular.module("components.pagination").component("paginationPageLinks",{require:{pagination:"^pagination"},bindings:{spacing:"<"},template:'<a class="shifter" ng-click="$ctrl.prevPage()" ng-class="{disabled: $ctrl.pagination.page === 1}"><span class="fa fa-chevron-left"></span></a><ul><li ng-repeat="block in $ctrl.blocks"><span class="divider" ng-hide="$ctrl.blocks[$index - 1][$ctrl.blocks[$index - 1].length - 1] + 1 === block[0] || block[0] - 1 === $ctrl.pagination.page"></span><a class="page" ng-repeat="link in block" ng-click="$ctrl.toPage(link)" ng-class="{active: $ctrl.pagination.page == link}"><span>{{link}}<span></a><span ng-hide="$ctrl.pagination.page <= block[block.length - 1] || $ctrl.blocks[$index + 1][0] <= $ctrl.pagination.page"><span class="divider" ng-hide="block[block.length - 1] + 1 === $ctrl.pagination.page"></span><a class="page active"><span>{{$ctrl.pagination.page}}</span></a></span></li></ul><a class="shifter" ng-click="$ctrl.nextPage()" ng-class="{disabled: $ctrl.pagination.page === $ctrl.pagination.pageLimit}"><span class="fa fa-chevron-right"></span></a>',controller:t}),t.$inject=["$scope","$element"]}(),function(){function t(t,e,i,n,r,s){var o,a,l,u,c=this,h=t.infinite=c.infinite="false"!==t.infinite,d=c.currentPage=t.currentPage=t.page||0,f=d,p=c.take=t.take=t.take||15,m=c.items=t.items=[],g=(c.container=angular.element(t.container||"#content > .grid-content:first-child"),{}),v=!0;c.empty=t.empty=!1,c.toPage=function(e,n,r){function s(e){if(!h||_||n)m=c.items=t.items=e.items;else for(var i=0;i<e.items.length;i++)m.push(e.items[i]);c.rows=t.rows=e.totalCount||e.rows,c.pageLimit=t.pageLimit=Math.ceil(e.rows/p),t.finished=m.length===e.totalCount||m.length===e.rows,c.empty=t.empty=0===m.length,_=!1,void 0!==r&&r(e)}var f=d;switch(e){case"prev":f--;break;case"next":f++;break;default:f=e}if(f>-1)if(o)i.cancel(u),u=i(function(){var i={pageSize:p,offset:(d=f)*p},r=!1;for(var u in t.additionalParams){if(null===t.additionalParams[u]){r=!0;break}i[u]=t.additionalParams[u]}for(var u in g)g[u]?i[u]=g[u]:delete i[u];(!r&&!angular.equals(i,l)||n)&&(t.currentPage=e,v=!1,l=i,c.paginationPromise=t.paginationPromise=o[a].get(i,s))});else if(void 0!==t.data){var y=d*p;s({ctrl:c,items:angular.copy(t.data.slice(y,y+p)),rows:t.data.length})}},c.nextPage=function(t){c.toPage(d+1,!1,t)},c.prevPage=function(t){c.toPage(d-1,!1,t)},c.hasMore=function(){return!t.finished},c.refresh=function(){c.toPage(0,!0)},c.updateFilter=function(t,e){g[t]=e,_=!0,c.toPage(0)},c.reset=function(){g={},m=c.items=t.items=[],c.toPage(0)},c.registerTrigger=function(){t.hasControls=!0},c.switchService=function(t){if(t!==o)if(t){var i=t.split(".");2!==i.length?console.log('"'+o+'" is not a valid service'):(o=c.service=e.get(i[0]),a=c.method=i[1],c.toPage(f))}else console.log("Service is not defined")},c.pushToFront=function(e){t.items.unshift(e)},c.switchService(t.service);var _=!1;t.$watch("additionalParams",function(t){_=!0,c.toPage(v&&void 0!==r.page?r.page-1:0)},!0),t.getItemTypeString=function(t){switch(t.Item.Type){case 0:return"Idea";case 1:return"Researach";case 2:return"Innovation";case 3:return"Feedback"}},t.getActionTypeString=function(t){switch(t.ActionType){case 0:return"Added";case 1:return"Submitted";case 2:return"Created";case 3:return"Updated"}},t.getHeader=function(e){return t.getItemTypeString(e)+" "+t.getActionTypeString(e)},t.$root.$on("refreshPagination",c.refresh)}function e(t,e,i){var n=0;return{scope:{take:"@?",service:"@?",page:"@?",container:"@?",infinite:"@?",additionalParams:"=?",data:"=?",onChange:"&?"},restrict:"EA",transclude:!0,replace:!0,templateUrl:"/angular/components/pagination/pagination.html",controller:"BmgPaginationController",link:function(r,s,o,a,l){void 0!==o.state&&(a.state=r.state=o.state,i.onEnter({to:o.state},function(t){a.toPage(t.params().page-1,!0)}));var u,c,h=n++,d=angular.element(e);function f(){c=1.5*d.height()}function p(t){if((void 0!==r.paginationPromise&&r.paginationPromise.$resolved||void 0!==r.data)&&u){var e=u.getBoundingClientRect().bottom;e<c&&a.nextPage()}}d.off("resize.pagination").on("resize.pagination",f),f(),l(r,function(t,e){t.length&&s.append(t)}),r.$emit("paginationReady");r.$watch("hasControls",function(e){e?a.container.off("scroll.paginate"+h):(a.container.on("scroll.paginate"+h,p),!0,r.$on("$destroy",function(){a.container.off("scroll.paginate"+h)}
1),r.$watch("items",function(e){void 0!==e&&e.length>0&&void 0===u&&t(function(){u=s.find('[ng-repeat*="in items"]:eq(0)').parent()[0]},0),void 0!==r.onChange&&r.onChange({items:e,rows:a.rows}),r.itemsBinding=e}),r.$watch("finished",function(t){t?a.container.off("scroll.paginate"+h):a.container.on("scroll.paginate"+h,p)}))})}}}function i(){return{restrict:"E",replace:!0,templateUrl:"/angular/components/pagination/pagination-page-links.html",require:"^bmgPagination",link:function(t,e,i,n){n.registerTrigger()}}}function n(t,e,i){var n=0;return{scope:{initialLimit:"=?",take:"@?",service:"@?",page:"@?",params:"=?"},restrict:"EA",transclude:{emptyMessage:"?emptyMessage",finishedMessage:"?finishedMessage",banner:"?banner",entry:"?entry"},replace:!0,template:'<div class="pagination-modal"></div>',link:function(r,s,o,a,l){var u=n++;angular.element(t);void 0===r.initialLimit&&(r.initialLimit=5);e("/angular/components/pagination/pagination-modal.html",!0).then(function(t){if(!r.$$destroyed){var e=angular.element(t);l(r,function(t){t.length&&e.find("[ng-repeat]").html(t)},null,"entry"),l(r,function(t){t.length&&e.find(".banner").html(t)},null,"banner"),l(function(t){t.length&&e.find(".empty").html(t)},null,"emptyMessage"),l(function(t){t.length&&e.find(".finished").html(t)},null,"finishedMessage"),void 0!==o.take&&e.attr("take",o.take);var n="pagination-modal-"+u;e.attr({service:o.service,container:"#"+n+" .pagination-container"}),e.find("[zf-open]").attr("zf-open",n),e.find("zf-modal").attr("id",n),s.append(e),i(s.contents())(r)}})}}}function r(t){return{restrict:"A",scope:{page:"@",trigger:"@?"},require:"^bmgPagination",controller:function(){},link:function(e,i,n,r){r.registerTrigger(),void 0===e.trigger&&(e.trigger="click");i.on(e.trigger,function(){return r.toPage(e.page),!1}),e.$parent.$watch("finished",function(e){e?t.addClass(i,"ng-hide"):t.removeClass(i,"ng-hide")})}}}function s(t){return{restrict:"E",scope:{page:"@",trigger:"@?"},transclude:!0,replace:!0,template:'<div class="empty" ng-transclude></div>',require:"^bmgPagination",link:function(e,i,n,r){e.$parent.$watch("items",function(e){e&&r.empty?t.removeClass(i,"ng-hide"):t.addClass(i,"ng-hide")})}}}function o(t){return{restrict:"E",transclude:!0,replace:!0,template:'<div class="finished" ng-transclude></div>',require:"^bmgPagination",link:function(e,i,n,r){e.$watch("finished",function(e){e&&!r.empty?t.removeClass(i,"ng-hide"):t.addClass(i,"ng-hide")})}}}angular.module("components.paginationOld",["services.global","components.sort"]).controller("BmgPaginationController",t).directive("bmgPagination",e).directive("bmgPaginationModal",n).directive("bmgPaginationPageLinks",i).directive("bmgPaginationTrigger",r).directive("bmgPaginationFilter",function(){return{restrict:"E",scope:{data:"=",name:"@",property:"@?",disableDataChanges:"=?"},transclude:!0,replace:!0,template:'<div class="filter"></div>',require:"^bmgPagination",link:function(t,e,i,n,r){void 0===t.property&&(t.property="value");t.disableDataChanges||t.$watch("data",function(e){if(void 0!==e){var i=[];for(var r in e)e[r].active&&i.push(e[r][t.property]);0===i.length&&(i=void 0),n.updateFilter(t.name,i)}},!0);
1t.$watch(t.name,function(e,i){e!==i&&n.updateFilter(t.name,e)}),r(t,function(t,i){e.append(t)})}}}).directive("bmgPaginationParam",function(){return{restrict:"A",require:["^bmgPagination","ngModel"],link:function(t,e,i,n){var r=n[0],s=n[1],o=i.ngModel.split("."),a=o[o.length-1];t.$watch("data",function(e){if(void 0!==e){var i=[];for(var n in e)e[n].active&&i.push(e[n].value);0===i.length&&(i=void 0),r.updateFilter(t.name,i)}},!0),s.$viewChangeListeners.push(function(){r.updateFilter(a,s.$modelValue)})}}}).directive("bmgPaginationEmpty",s).directive("bmgPaginationFinished",o),r.$inject=["$animate"],s.$inject=["$animate"],o.$inject=["$animate"],t.$inject=["$scope","$injector","$timeout","$q","$stateParams","FoundationApi"],e.$inject=["$timeout","$window","$transitions"],i.$inject=[],n.$inject=["$window","$templateRequest","$compile"]}(),function(){function t(t,e,i,n,r){var s=this;s.$onInit=function(){i(t,function(t){t.length&&n.append(t)})},s.$onChanges=function(t){if(t.method&&!t.method.currentValue&&(s.method="get"),t.params&&!t.params.currentValue&&(s.params={}),void 0!==s.take&&(s.params.pageSize=s.take),t.service){var i=s.service.split("."),n=e.get(i[0]);s.$resource=n[i[1]]}console.log(s.$$paramsValid()),t.params&&s.$$paramsValid()&&(s.loading=!0,s.results=s.$resource[s.method](s.params),s.results.$promise.then(function(t){r(function(){s.loading=!1,s.onChange&&s.onChange({data:t})})}))},s.$$paramsValid=function(){if(!s.required)return!0;if(!s.params)return!1;for(var t=s.required.replace(" ","").split(","),e=0;e<t.length;e++){var i=s.params[t[e]];if(void 0===i||null===i)return!1}return!0}}angular.module("components.query",[]).component("query",{bindings:{service:"@",take:"<?",method:"@?",params:"<?",trigger:"<?",required:"@?",onChange:"&?"},transclude:!0,template:'<div class="loading-indicator" ng-hide="!$ctrl.loading"><div class="lds-ripple"><div></div><div></div></div></div><div class="content"></div>',controller:t}),t.$inject=["$scope","$injector","$transclude","$element","$timeout"]}(),function(){function t(t,e){t.content=e.relatedContent.get({id:t.id},function(e){t.maxCharacters=e.maxCharacters,t.emptySectionText=e.emptySectionText,t.news=e.news,t.projects=e.projects,t.resources=e.resources,t.services=e.services,t.technologies=e.technologies,t.isEmployeeView=e.isEmployeeView,t.hideSection=(void 0===e.news||e.news.length<1)&&(void 0===e.projects||e.projects.length<1)&&(void 0===e.services||e.services.length<1)&&(void 0===e.resources||e.resources.length<1)})}function e(t,e,i,n){return{scope:{id:"="},templateUrl:"/angular/components/relatedContent/relatedContent.html",replace:!0,restrict:"E",link:function(t,e,i){},controller:"relatedContentController"}}angular.module("components.relatedContent",["utility","ngAnimate"]).directive("relatedContent",e).controller("relatedContentController",t),t.$inject=["$scope","global"],e.$inject=["$window","$filter","$timeout","global"]}(),function(){angular.module("components.sort",[]).directive("sort",function(){return{scope:{sorters:"=?",ascending:"=?"},replace:!0,restrict:"E",require:"ngModel",templateUrl:"/angular/components/sort/sort.html",link:function(t,e,i,n){void 0===t.order&&(t.order=!1);t.sorters||(t.sorters=[{label:"Popular",value:"popular",active:!0},{label:"Recent",value:"recent"}]);for(var r=0;r<t.sorters.length;r++)t.sorters[r].ascending=t.order;var s=0;function o(e){var i=t.sorters[e];e!==s&&(t.sorters[s].active=!1,s=e,i.active=!0)}t.toggle=function(e){var i=t.sorters[e],r=e===s;o(e),r&&(i.ascending=!i.ascending),n.$setViewValue(i.value+":"+(i.ascending?"asc":"desc"))},t.ascend=function(e){var i=t.sorters[e];o(e),i.ascending=!0,n.$setViewValue(i.value+":asc")},t.descend=function(e){var i=t.sorters[e];o(e),i.ascending=!1,n.$setViewValue(i.value+":desc")};var a=t.sorters[0];n.$setViewValue(a.value+":"+(a.ascending?"asc":"desc"))}}})}(),function(){angular.module("components.sticky",[]).component("sticky",{bindings:{scrollTarget:"@",restrict:"@?",onInit:"&?",onStick:"&?",onRelease:"&?"},require:{stickyManager:"?^^stickyManager"},template:'<div class="sticker" ng-class="{sticking: $ctrl.sticking}"><div class="content" ng-transclude></div></div><div class="spacer"></div>',transclude:!0,controller:e}),e.$inject=["$element","$window","$scope"];var t=0;function e(e,i,n){var r=this;r.$id=t++,r.$onInit=function(){r.sticking=!1,r.stickyManager.registerSticky(r.$id,e)},r.$postLink=function(){r.$sticker=e.find(">.sticker"),r.$content=r.$sticker.find("> .content"),r.$spacer=e.find(">.spacer"),r.$spacer.height(r.$content.height()),r.$scrollTarget=r.scrollTarget?angular.element(r.scrollTarget):angular.element(i),r.$scrollTarget.on("scroll.
1sticky",r.$$asyncUpdateSticky),r.$window=angular.element(i).on("resize.sticky",function(){r.$$updateSticky(!0)}),r.$$updateSticky(),r.onInit&&r.onInit({sticking:r.sticking,element:e})},r.$$asyncUpdateSticky=function(){n.$evalAsync(r.$$updateSticky)},r.$$updateSticky=function(t){var e=r.$$isSticky();(e!==r.sticking||t)&&(r.sticking=e,r.$$updateStyling())},r.$$isSticky=function(){return!(r.restrict&&!Foundation.MediaQuery.atLeast(r.restrict))&&e[0].getBoundingClientRect().top<=(r.scrollTarget?r.$scrollTarget.offset().top:0)+(r.stickyManager?r.stickyManager.getStickPoint(r.$id):0)},r.$$updateStyling=function(){var t=e[0].getBoundingClientRect();r.$sticker.css({left:r.sticking?t.left:"",width:r.sticking?t.width:"",top:r.sticking?(r.scrollTarget?r.$scrollTarget.offset().top:0)+(r.stickyManager?r.stickyManager.getStickPoint(r.$id):0):""});var i=r.$content.height();r.$spacer.height(i)},r.$onDestroy=function(){r.$scrollTarget.off("scroll.sticky"),r.$window.off("resize.sticky")}}}(),function(){function t(){return{restrict:"A",controller:function(){var t=this;t.$onInit=function(){t.stickies=[]},t.stickPoint=0,t.getStickPoint=function(e){for(var i=0,n=0;n<t.stickies.length;n++){var r=t.stickies[n];if(r.id===e)return i;i+=r.element.height()}return i},t.registerSticky=function(e,i){t.stickies.push({id:e,element:i})}}}}angular.module("app").directive("stickyManager",t),t.$inject=[]}(),function(){function t(t,e,i){return{scope:{backgroundImage:"@?"},transclude:{aboveFold:"aboveFold",belowFold:"belowFold"},templateUrl:"/angular/components/tiles/genericTile.html",replace:!0,restrict:"E",link:function(e,n,r){void 0===e.crop&&(e.crop="tile");var s=n.find(".title");function o(){var t=s.height();e.titleHeight!==t&&e.$evalAsync(function(){e.titleHeight=t,e.flexStyle={flex:"0 1 "+(t+30)/n.height()*100+"%"}})}if(e.titleHeight=0,i(function(){o()},300),$(t).on("resize",o),e.backgroundImage){var a=new Image;a.onload=function(){e.background={backgroundImage:'url("'+e.backgroundImage+'")'},e.loaded=!0,e.$evalAsync()},a.onerror=function(){e.$evalAsync(function(){e.loaded=!0})},a.src=e.backgroundImage}else e.loaded=!0;var l=n.find(".vc"),u=matchMedia("(max-width: 40em)");n.on("mouseenter",function(){u.matches||e.$evalAsync(function(){e.offset=Math.max(0,(n.height()-l.he
1ight()-30)/2)})}).on("mouseleave",function(){u.matches||e.$evalAsync(function(){e.offset=0})}),e.$on("$destroy",function(){n.off("mouseenter").off("mouseleave")})}}}function e(t,e,i){return{scope:{data:"="},templateUrl:function(t,e){return void 0!==e.type&&""!=e.type||(e.type="generic"),"/angular/components/tiles/"+e.type+"Tile.html"},replace:!0,restrict:"E",link:function(t,e,i){}}}function i(t,e,i,n){var r=this;r.$onInit=function(){r.$content=angular.element('<div class="background"><div class="content"><span class="plus fa fa-plus"></span></div></div>'),r.$content.find(".content").append(e.html())},r.$postLink=function(){e.html(r.$content),i(e.contents())(n.$parent);var t=new TimelineLite({paused:!0}),s=e.find(".background"),o=e.find(".content"),a=e.find(".plus");t.add(TweenLite.to(s,.4,{right:0})),t.add(TweenLite.to(o,.6,{opacity:1,rotationX:0})),t.add(TweenLite.to(a,.6,{rotationZ:270,right:"8px",opacity:1})),r.$timeline=t,e.on("mouseenter.assemblyTile",function(){r.$timeline.play()}),e.on("mouseleave.assemblyTile",function(){r.$timeline.reverse()})}}angular.module("components.tiles",["utility","ngAnimate"]).directive("genericTile",t).directive("customTile",e).directive("windowTile",function(){return{scope:!0,transclude:!0,templateUrl:"/angular/components/tiles/windowTile.html",replace:!0,restrict:"E",link:function(t,e,i,n,r){var s;t.loading=!0,r(function(t){t.length&&(e.find(".content").append(t),s=t.filter("img").length+t.find("img").length)}),s?t.$on("imageLoaded",function(e,i){0===--s&&(t.loading=!1)}):t.loading=!1}}}).component("assemblyTile",{controller:i}),t.$inject=["$window","$filter","$timeout"],e.$inject=["$window","$filter","$timeout"],i.$inject=["$transclude","$element","$compile","$scope"]}(),function(){function t(t,e,i){return{replace:!0,require:"ngModel",transclude:"element",template:'<label class="validator"></label>',restrict:"A",priority:1,link:function(t,n,r,s,o){var a;e("/angular/components/validation/validator.html",!0).then(function(e){message=angular.element(e),n.addClass("blurred");var l,u=n.closest("form, [ng-form]"),c=u.is("form")?u.attr("name"):u.attr("ng-form");if(message.attr("ng-messages",c+"."+r.name+".$error"),message.attr("ng-class","{ validating: "+c+"."+r.name+".$pending }"),void 0!==r.ngMinlength){var h=message.find('[ng-message="minlength"]');h.html(h.html().replace("{{minlength}}",r.ngMinlength))}o(t,function(e){e.length&&(n.prepend(e),e[0].className="",(a=e.on("blur keyup change",function(t){s.$setViewValue(a.val())}).on("focus",function(){n.removeClass("blurred")}).on("blur",function(){n.addClass("blurred"),s.$touched||(t.$$phase?t.$evalAsync(s.$setTouched):t.$apply(s.$setTouched))})).removeAttr("ng-model"))}),n.append(message),i(message)(t),s.$viewChangeListeners.push(function(){l=!0}),t.$watch(r.ngModel,function(t){l||(a.val(t),void 0===t&&s.$setPristine(!0)),l=!1}),s.$setPristine()}),t.toggleMessage=function(){},t.$on("$destroy",function(){a&&a.off("blur keyup change")})}}}angular.module("components.validation",["ngMessages"]).directive("validator",t).directive("valMatches",function(){return{require:"ngModel",restrict:"A",scope:{other:"=valMatches"},link:function(t,e,i,n){n.$validators.matches=function(e){return e===t.other||e===t.other.$modelValue},t.$watch("other",function(){n.$validate()})}}}),t.$inject=["$timeout","$templateRequest","$compile"]}(),function(){angular.module("app").component("wistiaEmbed",{bindings:{videoId:"@",fullScreen:"<?",loop:"<?",autoPlay:"<?",mute:"<?",timeout:"<?",onReady:"&?",onError:"&?"},template:'\n <div ng-style="$ctrl.wrapperDimensions">\n <div class="wrapper" ng-style="$ctrl.wrapperOffset">\n <div class="wistia_embed wistia_async_{{$ctrl.videoId}}"></div>\n </div>\n </div>\n <div class="overlay" ng-hide="!$ctrl.fullScreen" ng-click="$ctrl.togglePlay()">\n <div class="controls">\n <div class="volume" ng-if="!$ctrl.mute" ng-click="$ctrl.toggleMute($event)">\n <img ng-hide="!$ctrl.muted" src="/images/volumeMuted.svg" />\n <img ng-hide="$ctrl.muted" src="/images/volumeUnMuted.svg" />\n </div>\n\n <div class="fast-forward" ng-class="{active: $ctrl.rewinding}" ng-click="$ctrl.toggleRewind($event)">\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 23 14.3" enable-background="new 0 0 23 14.3" xml:space="preserve" class="wistia_vulcan_svg_icon
1wistia_vulcan_svg_icon_play wistia_vulcan_svg_icon_play_small">\n <polygon points="10,0 10,14.3 0,7.5 "></polygon>\n <polygon points="23,0 23,14.3 13,7.5 "></polygon>\n </svg>\n </div>\n <div class="state">\n <img ng-hide="$ctrl.$playing" src="/images/play.svg" />\n <img ng-hide="!$ctrl.$playing" src="/images/pause.svg" />\n </div>\n <div class="fast-forward" ng-class="{active: $ctrl.fastForwarding}" ng-click="$ctrl.toggleFastForward($event)">\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 23 14.3" enable-background="new 0 0 23 14.3" xml:space="preserve" class="wistia_vulcan_svg_icon wistia_vulcan_svg_icon_play wistia_vulcan_svg_icon_play_small">\n <polygon points="0,0 0,14.3 10,7.5 "></polygon>\n <polygon points="13,0 13,14.3 23,7.5 "></polygon>\n </svg>\n </div>\n </div>\n </div>\n ',controller:e});var t=1;function e(e,i,n,r){var s=this;s.$onInit=function(){s.$embedId=t,t++,s.$options={wmode:"transparent",controlsVisibleOnLoad:!!s.fullscreen},s.timeout||(s.timeout=30),void 0===s.mute&&(s.mute=!0)},s.$onChanges=function(t){t.videoId.currentValue?s.$video?(s.ready=!1,s.$video.replaceWith(t.videoId.currentValue,s.$options)):s.$initVideo():s.$video&&s.$video.pause()},s.$postLink=function(){n(function(){s.fullScreen&&e.addClass("full-screen"),s.$window=angular.element(i),s.$playing=s.autoPlay,s.autoPlay&&(s.$options.autoPlay=!0,s.$window.on("focus.wistiaEmbed"+s.$embedId,function(){s.$video&&s.$playing&&n(function(){s.$video.play()})})),e.hasClass("full-screen")&&(s.$window.on("resize.wistiaEmbed"+s.$embedId,function(){n.cancel(s.$resizeDelay),s.$resizeDelay=n(s.$$sizeVideo,300)}),s.$wrapper=e.find(".wrapper"),s.$$sizeVideo()),s.videoId&&(s.$timeoutTimer=n(function(){s.onError&&s.onError({message:"Video timed out."})},1e3*s.timeout))})},s.$onDestroy=function(){s.$window.off("resize.wistiaEmbed"+s.$embedId).off("focus.wistiaEmbed"+s.$embedId)},s.$initVideo=function(){s.ready=!1,i._wq=i._wq||[],_wq.push({id:s.videoId,options:s.$options,onReady:function(t){n.cancel(s.$timeoutTimer),s.$video=t,s.$video.volume(s.mute?0:1),s.loop&&s.$video.bind("end",function(){s.$video.time(0),s.$video.play()}).bind("play",function(){n(function(){s.$playing=!0})}).bind("pause",function(){n(function(){s.$playing=!1})}),s.autoPlay&&s.$video.play(),n(function(){s.ready=!0,s.onReady&&s.onReady({video:t})})}})},s.togglePlay=function(){s.ready&&(r.cancel(s.$rewinder),s.$video.playbackRate(1),s.$playing?(s.$video.pause(),s.fastForwarding=!1,s.rewinding=!1):s.$video.play())},s.toggleMute=function(t){s.ready&&(s.muted=!s.muted,s.$video.volume(s.muted?0:1)),t.stopPropagation()},s.toggleRewind=function(t){s.ready&&(s.fastForwarding=!1,s.rewinding=!s.rewinding,s.$video.playbackRate(1),s.rewinding?(s.$video.pause(),s.$lastTime=(new Date).getTime(),s.$rewinder=r(function(){var t=(new Date).getTime(),e=(t-s.$lastTime)/500,i=Math.max(s.$video.time()-e,0);0===i?(r.cancel(s.$rewinder),s.$video.play()):(s.$video.time(i),s.$lastTime=t,s.rewinding=!1)},100)):(r.cancel(s.$rewinder),s.$video.play())),t.stopPropagation()},s.toggleFastForward=function(t){s.ready&&(r.cancel(s.$rewinder),s.rewinding=!1,s.fastForwarding=!s.fastForwarding,s.$video.playbackRate(s.fastForwarding?2:1),s.$video.play()),t.stopPropagation()},s.$$sizeVideo=function(){var t=e.width()/16*9,i=s.$wrapper.innerHeight();if(t<e.height()){var r=e.height()/i*e.width();s.wrapperDimensions={width:r,left:-(r-e.width())/2},s.$video&&n(function(){s.$video.videoWidth(r,{constrain:!0})})}else s.wrapperDimensions=void 0;e.height()<i?s.wrapperOffset={top:(e.height()-i)/2}:s.wrapperOffset=void 0}}e.$inject=["$element","$window","$timeout","$interval"]}(),angular.module("ng-youtube-upload",["ngAnimate","angularFileUpload"]).run(["$window","$rootScope",function(t,e){angular.element("link#youtubeVideoCSS").length||angular.element("head").append('<style id="youtubeVideoCSS">#channel-image{width:2em;height:2em;vertical-align:middle}#channel-name{margin-left:.2em;margin-right:.2em}#disclaimer{font-size:.75em;color:#aeaeae;max-width:350px}body{font-family:"Open Sans",sans-serif;font-size:1.5em}.post-sign-in{display:none}.during-upload{display:none}.post-upload{display:none}label{display:block}progress{font-size:.75em;width:15em;margin-bottom:1em;padding:.5em;font-family:"Open Sans",sans-serif}textarea{height:7em}.btn-file{position:relative;overflow:hidden}.btn-file input[type=file]{position:absolute;top:0;right:0;min-width:100%;min-height:100%;font-size:100px;text-align:right;filter:alpha(opacity=0);opacity:0;outline:none;background:#fff;cursor:inherit;display:block}</style>'),t.signinCallback=function(t){t&&t.access_token?e.$broadcast("event:google-plus-signin-success",t):e.$broadcast("event:google-plus-signin-failure",t)}}]).directive("youtubeUploader",["$window","bmgHelper",function(t,e){"use strict";return{restrict:"AE",templateUrl:"/app/components/youtube/ng-youtube-upload.html",scope:{videoTitle:"@",videoDesc:"@"},link:function(i,n,r){r.clientid+=/\.apps\.googleusercontent\.com$/.test(r.clientid)?"":".apps.googleusercontent.com",r.$set("data-clientid",r.clientid),r.$set("theme",r.theme);var s=10,o=20,a=30,l=40,u=50,c=function(t,e){switch(i.status=t,i.status){case s:break;case o:i.$emit("event:youtube-video-uploading"),$("#uploadButton").attr("disabled",!0);break;case a:i.$emit("event:youtube-video-uploaded",e[0]);break;case l:i.$emit("event:youtube-video-processed",e[0]),$("#uploadButton").attr("disabled",!1);break;case u:i.$emit("event:youtube-video-failed",e[0]),$("#uploadButton").attr("disabled",!1)}};c(s);var h={callback:"signinCallback",cookiepolicy:"single_host_origin",requestvisibleactions:"http://schemas.google.com/AddActivity",scope:"https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/youtube.upload https://www.googleapis.com/auth/youtube",height:"standard",width:"wide",state:"",showprivacy:!1,videoTitle:"Upload a Video",clientid:"408412744546-d3unfrbr9i436ib36f890g9jioia8a4q.apps.googleusercontent.com"};h.clientid=r.clientid,h.theme=r.theme,angular.forEach(Object.getOwnPropertyNames(h),function(t){r.hasOwnProperty(t)&&(h[t]=r[t])}),i.displayUploader=!1,i.videoFile=null,i.videoName="",i.$watch("videoFiles",function(){i.videoFiles&&i.videoFiles.length>0&&(i.videoFile=i.videoFiles[0],i.videoName=i.videoFiles[0].name)}),i.fileNameChanged=function(t){i.videoFile=t.files[0],i.videoName=t.files[0].name,i.$apply()},r.$observe("language",function(e){t.___gcfg={lang:e||"en"}});var d=document.createElement("script");
1d.type="text/javascript",d.async=!0,d.src="https://apis.google.com/js/client:plusone.js";var f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(d,f),d.onload=function(){var t=document.createElement("span");t.id="signInButton",n.prepend(t),gapi.signin.render(t,h)},i.$on("event:google-plus-signin-success",function(t,e){($("#signInButton").hide(),i.displayUploader=!0,i.$apply(),e.access_token)&&(new p).ready(e.access_token)});var p=function(){this.tags=["youtube-cors-upload"],this.categoryId=22,this.videoId="",this.uploadStartTime=0};p.prototype.ready=function(e){this.accessToken=e,this.gapi=t.gapi,this.authenticated=!0,this.gapi.client.request({path:"/youtube/v3/channels",params:{part:"snippet",mine:!0},callback:function(t){t.error&&console.log(t.error.message)}.bind(this)}),$("#uploadButton").on("click",this.handleUploadClicked.bind(this))},p.prototype.uploadFile=function(t){var e={snippet:{title:i.videoTitle,description:i.videoDesc,tags:this.tags,categoryId:this.categoryId},status:{privacyStatus:"public",embeddable:!0}},n=new MediaUploader({baseUrl:"https://www.googleapis.com/upload/youtube/v3/videos",file:t,token:this.accessToken,metadata:e,params:{part:Object.keys(e).join(",")},onError:function(t){var e=t;try{e=JSON.parse(t).error.message}finally{alert(e)}}.bind(this),onProgress:function(t){var e=Date.now(),i=t.loaded,n=t.total,r=(this.uploadStartTime,100*i/n);$("#upload-progress").attr({value:i,max:n}),$("#transferred").css("width",r.toFixed(2)+"%").attr("aria-valuenow",r.toFixed(2)).text(i+" / "+n+" ("+r.toFixed(2)+"%)"),$(".during-upload").show()}.bind(this),onComplete:function(t){var e=JSON.parse(t);this.videoId=e.id,$("#video-id").text(this.videoId),$(".post-upload").show(),this.pollForVideoStatus()}.bind(this)});this.uploadStartTime=Date.now(),n.upload()},p.prototype.handleUploadClicked=function(){""==i.videoTitle?e.alert("Please enter a title for your video."):""==i.videoDesc?e.alert("Please enter a description for your video."):i.status==o?e.alert("Please wait until your video has finished uploading before uploading another one."):i.status==a?e.alert("Please wait until your video has finished processing before uploading another one."):(c(o),this.uploadFile(i.videoFile))},p.prototype.pollForVideoStatus=function(){this.gapi.client.request({path:"/youtube/v3/videos",params:{part:"status,player",id:this.videoId},callback:function(t){if(t.error)console.log(t.error.message),setTimeout(this.pollForVideoStatus.bind(this),1e4);else switch(t.items[0].status.uploadStatus){case"uploaded":c(a,[{id:t.items[0].id,type:t.items[0].kind}]),setTimeout(this.pollForVideoStatus.bind(this),1e4);break;case"processed":c(l,[{id:t.items[0].id,type:t.items[0].kind}]);break;default:c(u,[{message:t.items[0].status.uploadStatus+": "+t.items[0].status.rejectionReason}])}}.bind(this)})}}}}]),function(){function t(t,e,i,n,r){var s,o=this,a={callback:"signedInWithGooglePlus",cookiepolicy:"single_host_origin",requestvisibleactions:"https://schemas.google.com/AddActivity",scope:"https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/youtube.upload https://www.googleapis.com/auth/youtube",height:"standard",width:"wide",state:"",showprivacy:!1,videoTitle:"Upload a Video",clientid:"408412744546-d3unfrbr9i436ib36f890g9jioia8a4q.apps.googleusercontent.com"},l={api:{uploadVideo:t("/api/youtube/{id}",{id:"@id"})},loadJavascriptApi:function(){var t=r.defer();if(o.apiLoaded)t.resolve(!0);else{e.___gcfg={lang:"en"};var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://apis.google.com/js/client:plusone.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(i,n),e.signedInWithGooglePlus=function(){},i.onload=function(){var e=document.createElement("span");e.id="signInButton",document.getElementsByTagName("body")[0].appendChild(e),t.resolve(!0),o.apiLoaded=!0};setTimeout(function(){t.reject({message:"Request for api has timed out."})},3e4)}return t.promise},login:function(){var t=r.defer();return e.signedInWithGooglePlus=function(e){e&&e.access_token?(o.accessToken=e.access_token,t.resolve(e.access_token)):t.reject(e)},void 0!==o.accessToken?(t.resolve(o.accessToken),t.promise):(l.loadJavascriptApi().then(function(){e.gapi.auth.signIn(a)}).catch(function(e){t.reject(e)}),t.promise)},getChannels:function(){var t=r.defer();return l.login().then(function(){e.gapi.client.request({path:"/youtube/v3/ch
1annels",params:{part:"snippet",mine:!0},callback:function(t){t.error&&console.log(t.error.message)}.bind(this)})}),t.promise},uploadVideo:function(t,e){var i={},n=r.defer();l.login().then(function(r){var s=new MediaUploader({baseUrl:"https://www.googleapis.com/upload/youtube/v3/videos",file:t,token:r,metadata:e,params:{part:Object.keys(e).join(",")},onError:function(t){n.reject(t)},onProgress:function(t){var e=Date.now(),n=t.loaded,r=t.total,s=n/(e/o/1e3),a=(r-n)/s,l=100*n/r;i.bytesUploaded=n,i.totalBytes=r,i.bytesPerSecond=s,i.secondsRemaining=a,i.completionPercentage=l},onComplete:function(t){console.log(JSON.parse(t)),n.resolve(JSON.parse(t))}}),o=Date.now();s.upload()});var s=n.promise;return s.progress=i,s},loadIframeApi:function(){var t=document.createElement("script");t.src="https://www.youtube.com/iframe_api";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n),e.onYouTubeIframeAPIReady=function(){i.$evalAsync(function(){i.videoApiReady=!0})}},registerId:function(t){s=t},closeVideo:function(){void 0!==s&&n.publish(s,"close")},getPlaceholderCrops:function(t){var e="https://i.ytimg.com/vi_webp/";return{url:e+t+"/maxresdefault.webp",width:1280,height:720,crops:[{name:"small",url:e+t+"/mqdefault.webp",width:480,height:360},{name:"medium",url:e+t+"/maxresdefault.webp",width:1280,height:720}]}}};return l}function e(t,e){return function(i){if(void 0===i)return"";var n="https://www.youtube.com/embed/"+i;if(arguments.length>1){for(var r=1;r<arguments.length;r++)n+=1===r?"?":"&",n+=arguments[r];var s=e.absUrl(),o=s.substr(0,s.indexOf(e.path()));n+="&origin="+encodeURIComponent(o)}return t.trustAsResourceUrl(n)}}function i(t,e,i,n,r,s){return{restrict:"E",replace:!0,templateUrl:"/app/components/youtube/youtube.html",scope:{youtubeId:"@",placeholder:"=?",inline:"=?",correctPosition:"=?"},link:function(o,a,l){var u,c;function h(){void 0!==u&&u.css("transform","translateX("+o.$parent.$index*c.width()+"px)")}void 0!==l.correctPosition&&r(function(){u=a.find(".modal-overlay"),c=angular.element(s).on("resize.youtube"+o.$parent.index,h),o.$on("$destroy",function(){c.off("resize.youtube"+o.$parent.index)})});o.loading=!0,void 0===o.inline&&(o.inline=!1);var d,f=i.getMediaQueries(),p=matchMedia(f.medium),m=p.matches?"medium":"small";function g(){var t=n("getCropUrl")(o.placeholder,m),e=new Image;e.src=t,o.loading=!0,e.onload=function(){o.$evalAsync(function(){o.loading=!1,o.background={backgroundImage:'url("'+t+'")'}})},e.onerror=function(){o.$evalAsync(function(){o.loading=!1,o.background={backgroundColor:"#200"}})}}function v(){var i="video-"+o.youtubeId;t.registerId(i),h(),e.publish(i,"open"),d.playVideo()}p.addListener(function(t){m=t.matches?"medium":"small",o.$evalAsync(g)}),o.$watch("youtubeId",function(e){void 0!==e&&(void 0===o.placeholder&&(o.placeholder=t.getPlaceholderCrops(e)),g())}),o.openVideo=function(){void 0==d?(o.loadVideo=!0,o.loading=!0,r(function(){new YT.Player("player-"+o.youtubeId,{events:{onReady:function(t){d=t.target,v(),o.$evalAsync(function(){o.loading=!1})}}})})):v()},e.subscribe("video-"+o.youtubeId,function(t){"close"===t&&void 0!==d&&d.pauseVideo()})}}}angular.module("components.youtube",["ngResource","ngSanitize","foundation.core","foundation.mediaquery"]).factory("youtubeService",t).filter("youtubeIdToEmbedUrl",e).directive("youtubeVideo",i),t.$inject=["$resource","$window","$rootScope","FoundationApi","$q"],e.$inject=["$sce","$location"],i.$inject=["youtubeService","FoundationApi","FoundationMQ","$filter","$timeout","$window"]}(),function(){function t(t,e){var i=this,n=angular.element(".banner").find(".video-background");n.length&&n.YTPlayer({fitToBackground:!0,videoId:n.attr("video-id")}),i.$onInit=function(){i.$win=angular.element(e).on("resize.home",i.sizeBanner)},i.$onDestroy=function(){i.$win.off("resize.home")};var r=angular.element('[data-tabs-content="home-sections"] > div');if(r.filter(".is-active").length>1)angular.element(r[0]).removeClass("is-active");else var s=angular.element("#home-sections").on("change.zf.tabs",function(){angular.element(r[0]).removeClass("is-active"),s.off("change.zf.tabs")});var o=angular.element(".reveal.is-alert");o.length&&o.foundation("open")}angular.module("pages.home",["components.loader","components.pagination","components.calendar","services.global"]).controller("homeController",t),t.$inject=["$scope","$
1window"]}(),function(){function t(t,e,i,n,r,s,o,a,l){t.ready=!0,t.toggleSearch=function(){t.searchOpen=!t.searchOpen};var u=angular.element("body");angular.element("#mobile-toggle"),angular.element("button.menu-icon");u.css("border-right-width",r.outerWidth-angular.element("body").width()),t.toggleDropdown=function(){t.dropdownOpen=!t.dropdownOpen;var e=angular.element(".header"),i=e.find(".dropdown");if(t.dropdownOpen)(new TimelineLite).set(i,{height:"auto","max-height":"calc(100vh - "+e.height()+"px)"}).from(i,.3,{height:0});else(new TimelineLite).to(i,.3,{height:0}).set(i,{clearProps:"all"})},s(function(){var t=$(".datepickerfield");t.datepicker&&t.datepicker({dateFormat:"mm/dd/y",onClose:function(t,e){e.input.valid()}})}),t.params={},t.$watch("params",function(e){e&&(t.params=angular.copy(t.params))},!0),t.revealIfSticking=function(t,e){r.wow&&(r.wow.sync(),t&&s(function(){for(var t=e.find(".wow").get(),i=0;i<t.length;i++)r.wow.show(t[i])}))}}function e(t,e,i){t.html5Mode({enabled:!0,requireBase:!1,rewriteLinks:!1})}angular.module("pages.master",["app","components.anchor","components.sticky","components.carousel","components.loader","components.modalSlider","components.navigation","components.pagination","components.query","components.relatedContent","components.tiles","pages.home","pages.scrolledContent","pages.tabbedContent","services.global","utility","ui.router"]).config(e).run(t).controller("modalSetController",function(){}),t.$inject=["$rootScope","global","$location","$http","$window","$timeout","$state","$transitions","modalSliderService"],e.$inject=["$locationProvider","$stateProvider","$transitionsProvider"]}(),function(){function t(t,e,i){t.checkHash=function(t){!1,t.target===e.hash()&&t.$$scrollToTarget(!0)};t.updateHash=function(t){!0,t?e.hash(t.target).replace():window.history&&history.replaceState("",document.title,i.location.pathname)};angular.element('a[href*="'+e.path()+'#"]').on("click.scrolledContent",function(t){var e=angular.element(t.currentTarget).attr("href").split("#")[1];angular.element('anchor[target="'+e+'"]').click()})}angular.module("pages.scrolledContent",[]).controller("scrolledContentController",t),t.$inject=["$scope","$location","$window"]}(),function(){function t(t,e){var i;t.reinitializeTabs=function(){i=angular.element("#section-tabs"),new Foundation.Tabs(i)};var n=angular.element('[data-tabs-content="section-tabs"]'),r=angular.element(".header");t.backToTop=function(t){console.log(n.offset().top,r.height(),i.height());var e=n.offset().top-r.height()-i.height();e<0&&angular.element("#content").animate({scrollTop:"+="+e},300)}}angular.module("pages.tabbedContent",[]).controller("tabbedContentController",t),t.$inject=["$scope","$location"]}(),$(document).foundation(),window.matchMedia&&Modernizr.flexbox||$("#"+$("html").attr("not-supported-modal")).foundation("open"),window.wow=new WOW({mobile:!1}),wow.init(),$(function(){var t,e,i=$(".sheet-links a"),n=!1;function r(){i.on("mouseenter.sheetLink",function(){t=this,n||a(this)}).on("mouseleave.sheetLink",function(){t=null,this.timeline&&this===e&&this.timeline.reverse()})}function s(){n=!0}function o(){n=!1,t&&a(t)}function a(t){if(e=t,t.timeline)t.timeline.play();else{t.timeline=new TimelineLite;var n=$(t),r=n.find("circle"),a=n.find(".arrow"),l=n.find(".line");t.timeline.set(r,{stroke:"#FFF",strokeWidth:2}).set(a,{x:-8}).from(r,.2,{drawSVG:0}).set(n,{flexShrink:0,flexGrow:0,onReverseComplete:o,onComplete:s}).to(l,.15,{width:"50%"}).to(a,.1,{delay:-.1,opacity:1,x:0}).fromTo(n,.15,{flexBasis:100/i.length+"%"},{delay:-.2,flexBasis:"30%"}),t.timeline.progress(1),t.timeline.progress(0),t.timeline.play()}}$(window).on("changed.zf.mediaquery",function(t,e){"small"===e?i.off("mouseenter.sheetLink mouseleave.
1sheetLink"):r()}),"small"!==Foundation.MediaQuery.current&&r()}),angular.bootstrap(document,["pages.master"]); 2//# sourceMappingURL=core.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.