/*!
 * 
 *                                                                       
 *                              ::;;;;                                   
 *    ::,,,,::    ::,,  ,,,,::::::11ii::,,::,,,,::      ::::,,::,,,,::   
 *  ,,111111ii,,::1111::111111ii::111111::111111ii,,    ii11,,ii111111,, 
 *  11ii::;;11;;ii11::iiii::;;11;;11ii::ii11::::11ii    ii11;;11;;::ii11 
 *  11;;  ::11ii11;;::11ii  ::11ii11ii,,iiii..  iiii    ii11;;11::  ;;11 
 *  1111;;ii11;;11;;,,ii11::ii11;;ii11;;;;11;;;;11;;;;;;ii11::11ii;;11ii 
 *  11111111;;::11;;  ::ii1111;;  ::ii11::ii1111ii::11ii;;11,,;;1111ii:: 
 *  11;;,,::  ,,::,,      ::,,        ::::  ::::    ,,,,::::    ::,,     
 *  ;;;;                                                                 
 *                                                                       
 *  Build: 1/10/2024, 10:13:49 AM
 */!function(r){var i={};function n(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}n.m=r,n.c=i,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=459)}([function(t,v,y){"use strict";(function(t,e){y.d(v,"m",function(){return r}),y.d(v,"k",function(){return i}),y.d(v,"o",function(){return n}),y.d(v,"n",function(){return i}),y.d(v,"j",function(){return o}),y.d(v,"a",function(){return s}),y.d(v,"b",function(){return l}),y.d(v,"d",function(){return p}),y.d(v,"e",function(){return c}),y.d(v,"f",function(){return u}),y.d(v,"g",function(){return h}),y.d(v,"h",function(){return d}),y.d(v,"i",function(){return f}),y.d(v,"l",function(){return m}),y.d(v,"c",function(){return g});
/*!
 * VERSION: 2.0.2
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 *
 * @author: Jack Doyle, jack@greensock.com
 */
var r="undefined"!=typeof window?window:t.exports&&void 0!==e?e:{},i=function(u){var h={},i=u.document,d=u.GreenSockGlobals=u.GreenSockGlobals||u;if(d.TweenLite)return d.TweenLite;function f(t){var e,r=t.split("."),i=d;for(e=0;e<r.length;e++)i[r[e]]=i=i[r[e]]||{};return i}function l(t){var e,r=[],i=t.length;for(e=0;e!==i;r.push(t[e++]));return r}function m(){}var t,e,r,g,v,n,a,y=f("com.greensock"),x=1e-10,b=(n=Object.prototype.toString,a=n.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&n.call(t)===a)}),_={},w=function(s,l,p,c){this.sc=_[s]?_[s].sc:[],(_[s]=this).gsClass=null,this.func=p;var u=[];this.check=function(t){for(var e,r,i,n,a=l.length,o=a;-1<--a;)(e=_[l[a]]||new w(l[a],[])).gsClass?(u[a]=e.gsClass,o--):t&&e.sc.push(this);if(0===o&&p)for(i=(r=("com.greensock."+s).split(".")).pop(),n=f(r.join("."))[i]=this.gsClass=p.apply(p,u),c&&(d[i]=h[i]=n),a=0;a<this.sc.length;a++)this.sc[a].check()},this.check(!0)},o=u._gsDefine=function(t,e,r,i){return new w(t,e,r,i)},S=y._class=function(t,e,r){return e=e||function(){},o(t,[],function(){return e},r),e};o.globals=d;var s=[0,0,1,1],T=S("easing.Ease",function(t,e,r,i){this._func=t,this._type=r||0,this._power=i||0,this._params=e?s.concat(e):s},!0),P=T.map={},p=T.register=function(t,e,r,i){for(var n,a,o,s,l=e.split(","),p=l.length,c=(r||"easeIn,easeOut,easeInOut").split(",");-1<--p;)for(a=l[p],n=i?S("easing."+a,null,!0):y.easing[a]||{},o=c.length;-1<--o;)s=c[o],P[a+"."+s]=P[s+a]=n[s]=t.getRatio?t:t[s]||new t};for((r=T.prototype)._calcEnd=!1,r.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,r=this._power,i=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===r?i*=i:2===r?i*=i*i:3===r?i*=i*i*i:4===r&&(i*=i*i*i*i),1===e?1-i:2===e?i:t<.5?i/2:1-i/2},e=(t=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--e;)r=t[e]+",Power"+e,p(new T(null,null,1,e),r,"easeOut",!0),p(new T(null,null,2,e),r,"easeIn"+(0===e?",easeNone":"")),p(new T(null,null,3,e),r,"easeInOut");P.linear=y.easing.Linear.easeIn,P.swing=y.easing.Quad.easeInOut;var k=S("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(r=k.prototype).addEventListener=function(t,e,r,i,n){n=n||0;var a,o,s=this._listeners[t],l=0;for(this!==g||v||g.wake(),null==s&&(this._listeners[t]=s=[]),o=s.length;-1<--o;)(a=s[o]).c===e&&a.s===r?s.splice(o,1):0===l&&a.pr<n&&(l=o+1);s.splice(l,0,{c:e,s:r,up:i,pr:n})},r.removeEventListener=function(t,e){var r,i=this._listeners[t];if(i)for(r=i.length;-1<--r;)if(i[r].c===e)return void i.splice(r,1)},r.dispatchEvent=function(t){var e,r,i,n=this._listeners[t];if(n)for(1<(e=n.length)&&(n=n.slice(0)),r=this._eventTarget;-1<--e;)(i=n[e])&&(i.up?i.c.call(i.s||r,{type:t,target:r}):i.c.call(i.s||r))};var I=u.requestAnimationFrame,A=u.cancelAnimationFrame,E=Date.now||function(){return(new Date).getTime()},C=E();for(e=(t=["ms","moz","webkit","o"]).length;-1<--e&&!I;)I=u[t[e]+"RequestAnimationFrame"],A=u[t[e]+"CancelAnimationFrame"]||u[t[e]+"CancelRequestAnimationFrame"];S("Ticker",function(t,e){var n,a,o,s,l,p=this,c=E(),r=!(!1===e||!I)&&"auto",u=500,h=33,d=function(t){var e,r,i=E()-C;u<i&&(c+=i-h),C+=i,p.time=(C-c)/1e3,e=p.time-l,(!n||0<e||!0===t)&&(p.frame++,l+=e+(s<=e?.004:s-e),r=!0),!0!==t&&(o=a(d)),r&&p.dispatchEvent("tick")};k.call(p),p.time=p.frame=0,p.tick=function(){d(!0)},p.lagSmoothing=function(t,e){if(!arguments.length)return u<1/x;u=t||1/x,h=Math.min(e,u,0)},p.sleep=function(){null!=o&&(r&&A?A(o):clearTimeout(o),a=m,o=null,p===g&&(v=!1))},p.wake=function(t){null!==o?p.sleep():t?c+=-C+(C=E()):10<p.frame&&(C=E()-u+5),a=0===n?m:r&&I?I:function(t){return setTimeout(t,1e3*(l-p.time)+1|0)},p===g&&(v=!0),d(2)},p.fps=function(t){if(!arguments.length)return n;s=1/((n=t)||60),l=this.time+s,p.wake()},p.useRAF=function(t){if(!arguments.length)return r;p.sleep(),r=t,p.fps(n)},p.fps(t),setTimeout(function(){"auto"===r&&p.frame<5&&"hidden"!==(i||{}).visibilityState&&p.useRAF(!1)},1500)}),(r=y.Ticker.prototype=new y.events.EventDispatcher).constructor=y.Ticker;var c=S("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,q){v||g.wake();var r=this.vars.useFrames?U:q;r.add(this,r._time),this.vars.paused&&this.paused(!0)}});g=c.ticker=new y.Ticker,(r=c.prototype)._dirty=r._gc=r._initted=r._paused=!1,r._totalTime=r._time=0,r._rawPrevTime=-1,r._next=r._last=r._onUpdate=r._timeline=r.timeline=null,r._paused=!1;var O=function(){v&&2e3<E()-C&&("hidden"!==(i||{}).visibilityState||!g.lagSmoothing())&&g.wake();var t=setTimeout(O,2e3);t.unref&&t.unref()};O(),r.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},r.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},r.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},r.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},r.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},r.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},r.render=function(t,e,r){},r.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},r.isActive=function(){var t,e=this._timeline,r=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<r+this.totalDuration()/this._timeScale-1e-7},r._enabled=function(t,e){return v||g.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},r._kill=function(t,e){return this._enabled(!1,!1)},r.kill=function(t,e){return this._kill(t,e),this},r._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},r._swapSelfInParams=function(t){for(var e=t.length,r=t.concat();-1<--e;)"{self}"===t[e]&&(r[e]=this);return r},r._callback=function(t){var e=this.vars,r=e[t],i=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this;switch(i?i.length:0){case 0:r.call(n);break;case 1:r.call(n,i[0]);break;case 2:r.call(n,i[0],i[1]);break;default:r.apply(n,i)}},r.eventCallback=function(t,e,r,i){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=b(r)&&-1!==r.join("").indexOf("{self}")?this._swapSelfInParams(r):r,n[t+"Scope"]=i),"onUpdate"===t&&(this._onUpdate=e)}return this},r.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},r.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},r.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},r.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},r.totalTime=function(t,e,r){if(v||g.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!r&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var i=this._totalDuration,n=this._timeline;if(i<t&&!r&&(t=i),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?i-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(B.length&&Q(),this.render(t,e,!1),B.length&&Q())}return this},r.progress=r.totalProgress=function(t,e){var r=this.duration();return arguments.length?this.totalTime(r*t,e):r?this._time/r:this.ratio},r.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},r.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},r.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,r;for(t=t||x,this._timeline&&this._timeline.smoothChildTiming&&(r=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=r-(r-this._startTime)*this._timeScale/t),this._timeScale=t,r=this.timeline;r&&r.timeline;)r._dirty=!0,r.totalDuration(),r=r.timeline;return this},r.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},r.paused=function(t){if(!arguments.length)return this._paused;var e,r,i=this._timeline;return t!=this._paused&&i&&(v||t||g.wake(),r=(e=i.rawTime())-this._pauseTime,!t&&i.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!=r&&this._initted&&this.duration()&&(e=i.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var M=S("core.SimpleTimeline",function(t){c.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(r=M.prototype=new c).constructor=M,r.kill()._gc=!1,r._first=r._last=r._recent=null,r._sortChildren=!1,r.add=r.insert=function(t,e,r,i){var n,a;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(a=t._startTime;n&&n._startTime>a;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},r._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},r.render=function(t,e,r){var i,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)i=n._next,(n._active||t>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,r):n.render((t-n._startTime)*n._timeScale,e,r)),n=i},r.rawTime=function(){return v||g.wake(),this._totalTime};function D(t){return t&&t.length&&t!==u&&t[0]&&(t[0]===u||t[0].nodeType&&t[0].style&&!t.nodeType)}var F=S("TweenLite",function(t,e,r){if(c.call(this,e,r),this.render=F.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:F.selector(t)||t;var i,n,a,o=t.jquery||t.length&&t!==u&&t[0]&&(t[0]===u||t[0].nodeType&&t[0].style&&!t.nodeType),s=this.vars.overwrite;if(this._overwrite=s=null==s?W[F.defaultOverwrite]:"number"==typeof s?s>>0:W[s],(o||t instanceof Array||t.push&&b(t))&&"number"!=typeof t[0])for(this._targets=a=l(t),this._propLookup=[],this._siblings=[],i=0;i<a.length;i++)(n=a[i])?"string"!=typeof n?n.length&&n!==u&&n[0]&&(n[0]===u||n[0].nodeType&&n[0].style&&!n.nodeType)?(a.splice(i--,1),this._targets=a=a.concat(l(n))):(this._siblings[i]=K(n,this,!1),1===s&&1<this._siblings[i].length&&tt(n,this,null,1,this._siblings[i])):"string"==typeof(n=a[i--]=F.selector(n))&&a.splice(i+1,1):a.splice(i--,1);else this._propLookup={},this._siblings=K(t,this,!1),1===s&&1<this._siblings.length&&tt(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-x,this.render(Math.min(0,-this._delay)))},!0);(r=F.prototype=new c).constructor=F,r.kill()._gc=!1,r.ratio=0,r._firstPT=r._targets=r._overwrittenProps=r._startAt=null,r._notifyPluginsOfEnabled=r._lazy=!1,F.version="2.0.2",F.defaultEase=r._ease=new T(null,null,1,1),F.defaultOverwrite="auto",F.ticker=g,F.autoSleep=120,F.lagSmoothing=function(t,e){g.lagSmoothing(t,e)},F.selector=u.$||u.jQuery||function(t){var e=u.$||u.jQuery;return e?(F.selector=e)(t):(i||(i=u.document),i?i.querySelectorAll?i.querySelectorAll(t):i.getElementById("#"===t.charAt(0)?t.substr(1):t):t)};function R(t){for(var e,r=this._firstPT;r;)e=r.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:r.c*t+r.s,r.m?e=r.m.call(this._tween,e,this._target||r.t,this._tween):e<1e-6&&-1e-6<e&&!r.blob&&(e=0),r.f?r.fp?r.t[r.p](r.fp,e):r.t[r.p](e):r.t[r.p]=e,r=r._next}function N(t,e,r,i){var n,a,o,s,l,p,c,u=[],h=0,d="",f=0;for(u.start=t,u.end=e,t=u[0]=t+"",e=u[1]=e+"",r&&(r(u),t=u[0],e=u[1]),u.length=0,n=t.match($)||[],a=e.match($)||[],i&&(i._next=null,i.blob=1,u._firstPT=u._applyPT=i),l=a.length,s=0;s<l;s++)c=a[s],d+=(p=e.substr(h,e.indexOf(c,h)-h))||!s?p:",",h+=p.length,f?f=(f+1)%5:"rgba("===p.substr(-5)&&(f=1),c===n[s]||n.length<=s?d+=c:(d&&(u.push(d),d=""),o=parseFloat(n[s]),u.push(o),u._firstPT={_next:u._firstPT,t:u,p:u.length-1,s:o,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-o)||0,f:0,m:f&&f<4?Math.round:0}),h+=c.length;return(d+=e.substr(h))&&u.push(d),u.setRatio=R,V.test(e)&&(u.end=null),u}function L(t,e,r,i,n,a,o,s,l){"function"==typeof i&&(i=i(l||0,t));var p=typeof t[e],c="function"!=p?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),u="get"!==r?r:c?o?t[c](o):t[c]():t[e],h="string"==typeof i&&"="===i.charAt(1),d={t:t,p:e,s:u,f:"function"==p,pg:0,n:n||e,m:a?"function"==typeof a?a:Math.round:0,pr:0,c:h?parseInt(i.charAt(0)+"1",10)*parseFloat(i.substr(2)):parseFloat(i)-u||0};if("number"==typeof u&&("number"==typeof i||h)||(o||isNaN(u)||!h&&isNaN(i)||"boolean"==typeof u||"boolean"==typeof i?(d.fp=o,d={t:N(u,h?parseFloat(d.s)+d.c+(d.s+"").replace(/[0-9\-\.]/g,""):i,s||F.defaultStringFilter,d),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0,m:0}):(d.s=parseFloat(u),h||(d.c=parseFloat(i)-d.s||0))),d.c)return(d._next=this._firstPT)&&(d._next._prev=d),this._firstPT=d}var B=[],j={},$=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,V=/[\+-]=-?[\.\d]/,H=F._internals={isArray:b,isSelector:D,lazyTweens:B,blobDif:N},z=F._plugins={},G=H.tweenLookup={},Y=0,X=H.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,id:1,yoyoEase:1},W={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},U=c._rootFramesTimeline=new M,q=c._rootTimeline=new M,J=30,Q=H.lazyRender=function(){var t,e=B.length;for(j={};-1<--e;)(t=B[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);B.length=0};q._startTime=g.time,U._startTime=g.frame,q._active=U._active=!0,setTimeout(Q,1),c._updateRoot=F.render=function(){var t,e,r;if(B.length&&Q(),q.render((g.time-q._startTime)*q._timeScale,!1,!1),U.render((g.frame-U._startTime)*U._timeScale,!1,!1),B.length&&Q(),g.frame>=J){for(r in J=g.frame+(parseInt(F.autoSleep,10)||120),G){for(t=(e=G[r].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete G[r]}if((!(r=q._first)||r._paused)&&F.autoSleep&&!U._first&&1===g._listeners.tick.length){for(;r&&r._paused;)r=r._next;r||g.sleep()}}},g.addEventListener("tick",c._updateRoot);function Z(t,e,r,i){var n,a,o=t.vars.onOverwrite;return o&&(n=o(t,e,r,i)),(o=F.onOverwrite)&&(a=o(t,e,r,i)),!1!==n&&!1!==a}var K=function(t,e,r){var i,n,a=t._gsTweenID;if(G[a||(t._gsTweenID=a="t"+Y++)]||(G[a]={target:t,tweens:[]}),e&&((i=G[a].tweens)[n=i.length]=e,r))for(;-1<--n;)i[n]===e&&i.splice(n,1);return G[a].tweens},tt=function(t,e,r,i,n){var a,o,s,l;if(1===i||4<=i){for(l=n.length,a=0;a<l;a++)if((s=n[a])!==e)s._gc||s._kill(null,t,e)&&(o=!0);else if(5===i)break;return o}var p,c=e._startTime+x,u=[],h=0,d=0===e._duration;for(a=n.length;-1<--a;)(s=n[a])===e||s._gc||s._paused||(s._timeline!==e._timeline?(p=p||et(e,0,d),0===et(s,p,d)&&(u[h++]=s)):s._startTime<=c&&s._startTime+s.totalDuration()/s._timeScale>c&&((d||!s._initted)&&c-s._startTime<=2e-10||(u[h++]=s)));for(a=h;-1<--a;)if(l=(s=u[a])._firstPT,2===i&&s._kill(r,t,e)&&(o=!0),2!==i||!s._firstPT&&s._initted&&l){if(2!==i&&!Z(s,e))continue;s._enabled(!1,!1)&&(o=!0)}return o},et=function(t,e,r){for(var i=t._timeline,n=i._timeScale,a=t._startTime;i._timeline;){if(a+=i._startTime,n*=i._timeScale,i._paused)return-100;i=i._timeline}return e<(a/=n)?a-e:r&&a===e||!t._initted&&a-e<2*x?x:(a+=t.totalDuration()/t._timeScale/n)>e+x?0:a-e-x};r._init=function(){var t,e,r,i,n,a,o=this.vars,s=this._overwrittenProps,l=this._duration,p=!!o.immediateRender,c=o.ease;if(o.startAt){for(i in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),n={},o.startAt)n[i]=o.startAt[i];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=p&&!1!==o.lazy,n.startAt=n.delay=null,n.onUpdate=o.onUpdate,n.onUpdateParams=o.onUpdateParams,n.onUpdateScope=o.onUpdateScope||o.callbackScope||this,this._startAt=F.to(this.target||{},0,n),p)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(o.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(i in 0!==this._time&&(p=!1),r={},o)X[i]&&"autoCSS"!==i||(r[i]=o[i]);if(r.overwrite=0,r.data="isFromStart",r.lazy=p&&!1!==o.lazy,r.immediateRender=p,this._startAt=F.to(this.target,0,r),p){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=c=c?c instanceof T?c:"function"==typeof c?new T(c,o.easeParams):P[c]||F.defaultEase:F.defaultEase,o.easeParams instanceof Array&&c.config&&(this._ease=c.config.apply(c,o.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(a=this._targets.length,t=0;t<a;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],s?s[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(e&&F._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),o.runBackwards)for(r=this._firstPT;r;)r.s+=r.c,r.c=-r.c,r=r._next;this._onUpdate=o.onUpdate,this._initted=!0},r._initProps=function(t,e,r,i,n){var a,o,s,l,p,c;if(null==t)return!1;for(a in j[t._gsTweenID]&&Q(),this.vars.css||t.style&&t!==u&&t.nodeType&&z.css&&!1!==this.vars.autoCSS&&function(t,e){var r,i={};for(r in t)X[r]||r in e&&"transform"!==r&&"x"!==r&&"y"!==r&&"width"!==r&&"height"!==r&&"className"!==r&&"border"!==r||!(!z[r]||z[r]&&z[r]._autoCSS)||(i[r]=t[r],delete t[r]);t.css=i}(this.vars,t),this.vars)if(c=this.vars[a],X[a])c&&(c instanceof Array||c.push&&b(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[a]=c=this._swapSelfInParams(c,this));else if(z[a]&&(l=new z[a])._onInitTween(t,this.vars[a],this,n)){for(this._firstPT=p={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:l._priority,m:0},o=l._overwriteProps.length;-1<--o;)e[l._overwriteProps[o]]=this._firstPT;(l._priority||l._onInitAllProps)&&(s=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),p._next&&(p._next._prev=p)}else e[a]=L.call(this,t,a,"get",c,a,0,null,this.vars.stringFilter,n);return i&&this._kill(i,t)?this._initProps(t,e,r,i,n):1<this._overwrite&&this._firstPT&&1<r.length&&tt(t,this,e,this._overwrite,r)?(this._kill(e,t),this._initProps(t,e,r,i,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(j[t._gsTweenID]=!0),s)},r.render=function(t,e,r){var i,n,a,o,s=this._time,l=this._duration,p=this._rawPrevTime;if(l-1e-7<=t&&0<=t)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(i=!0,n="onComplete",r=r||this._timeline.autoRemoveChildren),0===l&&(!this._initted&&this.vars.lazy&&!r||(this._startTime===this._timeline._duration&&(t=0),(p<0||t<=0&&-1e-7<=t||p===x&&"isPause"!==this.data)&&p!==t&&(r=!0,x<p&&(n="onReverseComplete")),this._rawPrevTime=o=!e||t||p===t?t:x));else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==s||0===l&&0<p)&&(n="onReverseComplete",i=this._reversed),t<0&&(this._active=!1,0===l&&(!this._initted&&this.vars.lazy&&!r||(0<=p&&(p!==x||"isPause"!==this.data)&&(r=!0),this._rawPrevTime=o=!e||t||p===t?t:x))),(!this._initted||this._startAt&&this._startAt.progress())&&(r=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/l,u=this._easeType,h=this._easePower;(1===u||3===u&&.5<=c)&&(c=1-c),3===u&&(c*=2),1===h?c*=c:2===h?c*=c*c:3===h?c*=c*c*c:4===h&&(c*=c*c*c*c),this.ratio=1===u?1-c:2===u?c:t/l<.5?c/2:1-c/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==s||r){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!r&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=s,this._rawPrevTime=p,B.push(this),void(this._lazy=[t,e]);this._time&&!i?this.ratio=this._ease.getRatio(this._time/l):i&&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!==s&&0<=t&&(this._active=!0),0===s&&(this._startAt&&(0<=t?this._startAt.render(t,!0,r):n||(n="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),a=this._firstPT;a;)a.f?a.t[a.p](a.c*this.ratio+a.s):a.t[a.p]=a.c*this.ratio+a.s,a=a._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,r),e||(this._time!==s||i||r)&&this._callback("onUpdate")),n&&(this._gc&&!r||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,r),i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===l&&this._rawPrevTime===x&&o!==x&&(this._rawPrevTime=0)))}},r._kill=function(t,e,r){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:F.selector(e)||e;var i,n,a,o,s,l,p,c,u,h=r&&this._time&&r._startTime===this._startTime&&this._timeline===r._timeline,d=this._firstPT;if((b(e)||D(e))&&"number"!=typeof e[0])for(i=e.length;-1<--i;)this._kill(t,e[i],r)&&(l=!0);else{if(this._targets){for(i=this._targets.length;-1<--i;)if(e===this._targets[i]){s=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[i]=t?this._overwrittenProps[i]||{}:"all";break}}else{if(e!==this.target)return!1;s=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(s){if(p=t||s,c=t!==n&&"all"!==n&&t!==s&&("object"!=typeof t||!t._tempKill),r&&(F.onOverwrite||this.vars.onOverwrite)){for(a in p)s[a]&&(u||(u=[]),u.push(a));if((u||!t)&&!Z(this,r,e,u))return!1}for(a in p)(o=s[a])&&(h&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,l=!0),o.pg&&o.t._kill(p)&&(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 s[a]),c&&(n[a]=1);!this._firstPT&&this._initted&&d&&this._enabled(!1,!1)}}return l},r.invalidate=function(){return this._notifyPluginsOfEnabled&&F._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],c.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-x,this.render(Math.min(0,-this._delay))),this},r._enabled=function(t,e){if(v||g.wake(),t&&this._gc){var r,i=this._targets;if(i)for(r=i.length;-1<--r;)this._siblings[r]=K(i[r],this,!0);else this._siblings=K(this.target,this,!0)}return c.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&F._onPluginEvent(t?"_onEnable":"_onDisable",this)},F.to=function(t,e,r){return new F(t,e,r)},F.from=function(t,e,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new F(t,e,r)},F.fromTo=function(t,e,r,i){return i.startAt=r,i.immediateRender=0!=i.immediateRender&&0!=r.immediateRender,new F(t,e,i)},F.delayedCall=function(t,e,r,i,n){return new F(e,0,{delay:t,onComplete:e,onCompleteParams:r,callbackScope:i,onReverseComplete:e,onReverseCompleteParams:r,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},F.set=function(t,e){return new F(t,0,e)},F.getTweensOf=function(t,e){if(null==t)return[];var r,i,n,a;if(t="string"!=typeof t?t:F.selector(t)||t,(b(t)||D(t))&&"number"!=typeof t[0]){for(r=t.length,i=[];-1<--r;)i=i.concat(F.getTweensOf(t[r],e));for(r=i.length;-1<--r;)for(a=i[r],n=r;-1<--n;)a===i[n]&&i.splice(r,1)}else if(t._gsTweenID)for(r=(i=K(t).concat()).length;-1<--r;)(i[r]._gc||e&&!i[r].isActive())&&i.splice(r,1);return i||[]},F.killTweensOf=F.killDelayedCallsTo=function(t,e,r){"object"==typeof e&&(r=e,e=!1);for(var i=F.getTweensOf(t,e),n=i.length;-1<--n;)i[n]._kill(r,t)};var rt=S("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=rt.prototype},!0);if(r=rt.prototype,rt.version="1.19.0",rt.API=2,r._firstPT=null,r._addTween=L,r.setRatio=R,r._kill=function(t){var e,r=this._overwriteProps,i=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=r.length;-1<--e;)null!=t[r[e]]&&r.splice(e,1);for(;i;)null!=t[i.n]&&(i._next&&(i._next._prev=i._prev),i._prev?(i._prev._next=i._next,i._prev=null):this._firstPT===i&&(this._firstPT=i._next)),i=i._next;return!1},r._mod=r._roundProps=function(t){for(var e,r=this._firstPT;r;)(e=t[this._propName]||null!=r.n&&t[r.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===r.f?r.t._applyPT.m=e:r.m=e),r=r._next},F._onPluginEvent=function(t,e){var r,i,n,a,o,s=e._firstPT;if("_onInitAllProps"===t){for(;s;){for(o=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:a)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:a=s,s=o}s=e._firstPT=n}for(;s;)s.pg&&"function"==typeof s.t[t]&&s.t[t]()&&(r=!0),s=s._next;return r},rt.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===rt.API&&(z[(new t[e])._propName]=t[e]);return!0},o.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,r=t.propName,i=t.priority||0,n=t.overwriteProps,a={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},o=S("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){rt.call(this,r,i),this._overwriteProps=n||[]},!0===t.global),s=o.prototype=new rt(r);for(e in(s.constructor=o).API=t.API,a)"function"==typeof t[e]&&(s[a[e]]=t[e]);return o.version=t.version,rt.activate([o]),o},t=u._gsQueue){for(e=0;e<t.length;e++)t[e]();for(r in _)_[r].func||u.console.log("GSAP encountered missing dependency: "+r)}return v=!1,F}(r),n=r.GreenSockGlobals,a=n.com.greensock,o=a.core.SimpleTimeline,s=a.core.Animation,l=n.Ease,p=n.Linear,c=p,u=n.Power1,h=n.Power2,d=n.Power3,f=n.Power4,m=n.TweenPlugin,g=a.events.EventDispatcher}).call(this,y(371)(t),y(81))},function(t,e,r){var c=r(3),u=r(16).f,h=r(14),d=r(17),f=r(83),m=r(107),g=r(55);t.exports=function(t,e){var r,i,n,a,o,s=t.target,l=t.global,p=t.stat;if(r=l?c:p?c[s]||f(s,{}):(c[s]||{}).prototype)for(i in e){if(a=e[i],n=t.noTargetGet?(o=u(r,i))&&o.value:r[i],!g(l?i:s+(p?".":"#")+i,t.forced)&&void 0!==n){if(typeof a==typeof n)continue;m(a,n)}(t.sham||n&&n.sham)&&h(a,"sham",!0),d(r,i,a,t)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(i,t,e){(function(t){function e(t){return t&&t.Math==Math&&t}var r="object";i.exports=e(typeof globalThis==r&&globalThis)||e(typeof window==r&&window)||e(typeof self==r&&self)||e(typeof t==r&&t)||Function("return this")()}).call(this,e(81))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var i=r(4);t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,r){"use strict";function i(t){return s(t)&&l(M,p(t))}var n,a=r(7),o=r(3),s=r(4),l=r(12),p=r(62),c=r(14),u=r(17),h=r(10).f,d=r(28),f=r(45),m=r(8),g=r(52),v=o.DataView,y=v&&v.prototype,x=o.Int8Array,b=x&&x.prototype,_=o.Uint8ClampedArray,w=_&&_.prototype,S=x&&d(x),T=b&&d(b),P=Object.prototype,k=P.isPrototypeOf,I=m("toStringTag"),A=g("TYPED_ARRAY_TAG"),E=!(!o.ArrayBuffer||!v),C=E&&!!f,O=!1,M={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};for(n in M)o[n]||(C=!1);if((!C||"function"!=typeof S||S===Function.prototype)&&(S=function(){throw TypeError("Incorrect invocation")},C))for(n in M)o[n]&&f(o[n],S);if((!C||!T||T===P)&&(T=S.prototype,C))for(n in M)o[n]&&f(o[n].prototype,T);if(C&&d(w)!==T&&f(w,T),a&&!l(T,I))for(n in O=!0,h(T,I,{get:function(){return s(this)?this[A]:void 0}}),M)o[n]&&c(o[n],A,n);E&&f&&d(y)!==P&&f(y,P),t.exports={NATIVE_ARRAY_BUFFER:E,NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_TAG:O&&A,aTypedArray:function(t){if(i(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(f){if(k.call(S,t))return t}else for(var e in M)if(l(M,n)){var r=o[e];if(r&&(t===r||k.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},exportProto:function(t,e,r){if(a){if(r)for(var i in M){var n=o[i];n&&l(n.prototype,t)&&delete n.prototype[t]}T[t]&&!r||u(T,t,r?e:C&&b[t]||e)}},exportStatic:function(t,e,r){var i,n;if(a){if(f){if(r)for(i in M)(n=o[i])&&l(n,t)&&delete n[t];if(S[t]&&!r)return;try{return u(S,t,r?e:C&&x[t]||e)}catch(t){}}for(i in M)!(n=o[i])||n[t]&&!r||u(n,t,e)}},isView:function(t){var e=p(t);return"DataView"===e||l(M,e)},isTypedArray:i,TypedArray:S,TypedArrayPrototype:T}},function(t,e,r){var i=r(2);t.exports=!i(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var i=r(3),n=r(51),a=r(52),o=r(109),s=i.Symbol,l=n("wks");t.exports=function(t){return l[t]||(l[t]=o&&s[t]||(o?s:a)("Symbol."+t))}},function(t,e,r){var i=r(24),n=Math.min;t.exports=function(t){return 0<t?n(i(t),9007199254740991):0}},function(t,e,r){var i=r(7),n=r(104),a=r(5),o=r(26),s=Object.defineProperty;e.f=i?s:function(t,e,r){if(a(t),e=o(e,!0),a(r),n)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var i=r(15);t.exports=function(t){return Object(i(t))}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){function i(d){var f=1==d,m=2==d,g=3==d,v=4==d,y=6==d,x=5==d||y;return function(t,e,r,i){for(var n,a,o=w(t),s=_(o),l=b(e,r,3),p=S(s.length),c=0,u=i||T,h=f?u(t,p):m?u(t,0):void 0;c<p;c++)if((x||c in s)&&(a=l(n=s[c],c,o),d))if(f)h[c]=a;else if(a)switch(d){case 3:return!0;case 5:return n;case 6:return c;case 2:P.call(h,n)}else if(v)return!1;return y?-1:g||v?v:h}}var b=r(36),_=r(50),w=r(11),S=r(9),T=r(57),P=[].push;t.exports={forEach:i(0),map:i(1),filter:i(2),some:i(3),every:i(4),find:i(5),findIndex:i(6)}},function(t,e,r){var i=r(7),n=r(10),a=r(39);t.exports=i?function(t,e,r){return n.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var i=r(7),n=r(65),a=r(39),o=r(19),s=r(26),l=r(12),p=r(104),c=Object.getOwnPropertyDescriptor;e.f=i?c:function(t,e){if(t=o(t),e=s(e,!0),p)try{return c(t,e)}catch(t){}if(l(t,e))return a(!n.f.call(t,e),t[e])}},function(t,e,r){var s=r(3),i=r(51),l=r(14),p=r(12),c=r(83),n=r(105),a=r(20),o=a.get,u=a.enforce,h=String(n).split("toString");i("inspectSource",function(t){return n.call(t)}),(t.exports=function(t,e,r,i){var n=!!i&&!!i.unsafe,a=!!i&&!!i.enumerable,o=!!i&&!!i.noTargetGet;"function"==typeof r&&("string"!=typeof e||p(r,"name")||l(r,"name",e),u(r).source=h.join("string"==typeof e?e:"")),t!==s?(n?!o&&t[e]&&(a=!0):delete t[e],a?t[e]=r:l(t,e,r)):a?t[e]=r:c(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&o(this).source||n.call(this)})},function(t,e,r){var i=r(44),n=r(12),a=r(112),o=r(10).f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});n(e,t)||o(e,t,{value:a.f(t)})}},function(t,e,r){var i=r(50),n=r(15);t.exports=function(t){return i(n(t))}},function(t,e,r){var i,n,a,o=r(106),s=r(3),l=r(4),p=r(14),c=r(12),u=r(66),h=r(53),d=s.WeakMap;if(o){var f=new d,m=f.get,g=f.has,v=f.set;i=function(t,e){return v.call(f,t,e),e},n=function(t){return m.call(f,t)||{}},a=function(t){return g.call(f,t)}}else{var y=u("state");h[y]=!0,i=function(t,e){return p(t,y,e),e},n=function(t){return c(t,y)?t[y]:{}},a=function(t){return c(t,y)}}t.exports={set:i,get:n,has:a,enforce:function(t){return a(t)?n(t):i(t,{})},getterFor:function(r){return function(t){var e;if(!l(t)||(e=n(t)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return e}}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,r){var o=r(15),s=/"/g;t.exports=function(t,e,r,i){var n=String(o(t)),a="<"+e;return""!==r&&(a+=" "+r+'="'+String(i).replace(s,"&quot;")+'"'),a+">"+n+"</"+e+">"}},function(t,e,r){var i=r(2);t.exports=function(e){return i(function(){var t=""[e]('"');return t!==t.toLowerCase()||3<t.split('"').length})}},function(t,e){var r=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?i:r)(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(4);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var i=r(10).f,n=r(12),a=r(8)("toStringTag");t.exports=function(t,e,r){t&&!n(t=r?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,r){var i=r(12),n=r(11),a=r(66),o=r(89),s=a("IE_PROTO"),l=Object.prototype;t.exports=o?Object.getPrototypeOf:function(t){return t=n(t),i(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},function(t,e,r){"use strict";var i=r(2);t.exports=function(t,e){var r=[][t];return!r||!i(function(){r.call(null,e||function(){throw 1},1)})}},function(t,e,r){var n=r(5),a=r(21),o=r(8)("species");t.exports=function(t,e){var r,i=n(t).constructor;return void 0===i||null==(r=n(i)[o])?e:a(r)}},function(t,e,r){"use strict";function f(t,e){for(var r=0,i=e.length,n=new(X(t))(i);r<i;)n[r]=e[r++];return n}function i(t,e){N(t,e,{get:function(){return F(this)[e]}})}function m(t){var e;return t instanceof $||"ArrayBuffer"==(e=S(t))||"SharedArrayBuffer"==e}function n(t,e){return W(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)}function a(t,e){return n(t,e=d(e,!0))?h(2,t[e]):L(t,e)}function o(t,e,r){return!(n(t,e=d(e,!0))&&T(r)&&w(r,"value"))||w(r,"get")||w(r,"set")||r.configurable||w(r,"writable")&&!r.writable||w(r,"enumerable")&&!r.enumerable?N(t,e,r):(t[e]=r.value,t)}var l=r(1),p=r(3),s=r(7),g=r(102),c=r(6),u=r(80),v=r(38),h=r(39),y=r(14),x=r(9),b=r(137),_=r(138),d=r(26),w=r(12),S=r(62),T=r(4),P=r(35),k=r(45),I=r(40).f,A=r(139),E=r(13).forEach,C=r(46),O=r(10),M=r(16),D=r(20),F=D.get,R=D.set,N=O.f,L=M.f,B=Math.round,j=p.RangeError,$=u.ArrayBuffer,V=u.DataView,H=c.NATIVE_ARRAY_BUFFER_VIEWS,z=c.TYPED_ARRAY_TAG,G=c.TypedArray,Y=c.TypedArrayPrototype,X=c.aTypedArrayConstructor,W=c.isTypedArray,U="BYTES_PER_ELEMENT",q="Wrong length";s?(H||(M.f=a,O.f=o,i(Y,"buffer"),i(Y,"byteOffset"),i(Y,"byteLength"),i(Y,"length")),l({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:a,defineProperty:o}),t.exports=function(t,c,e,n){function u(t,e){N(t,e,{get:function(){return function(t,e){var r=F(t);return r.view[i](e*c+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=F(t);n&&(r=(r=B(r))<0?0:255<r?255:255&r),i.view[a](e*c+i.byteOffset,r,!0)}(this,e,t)},enumerable:!0})}var h=t+(n?"Clamped":"")+"Array",i="get"+t,a="set"+t,o=p[h],d=o,r=d&&d.prototype,s={};H?g&&(d=e(function(t,e,r,i){return v(t,d,h),T(e)?m(e)?void 0!==i?new o(e,_(r,c),i):void 0!==r?new o(e,_(r,c)):new o(e):W(e)?f(d,e):A.call(d,e):new o(b(e))}),k&&k(d,G),E(I(o),function(t){t in d||y(d,t,o[t])}),d.prototype=r):(d=e(function(t,e,r,i){v(t,d,h);var n,a,o,s=0,l=0;if(T(e)){if(!m(e))return W(e)?f(d,e):A.call(d,e);n=e,l=_(r,c);var p=e.byteLength;if(void 0===i){if(p%c)throw j(q);if((a=p-l)<0)throw j(q)}else if(p<(a=x(i)*c)+l)throw j(q);o=a/c}else o=b(e),n=new $(a=o*c);for(R(t,{buffer:n,byteOffset:l,byteLength:a,length:o,view:new V(n)});s<o;)u(t,s++)}),k&&k(d,G),r=d.prototype=P(Y)),r.constructor!==d&&y(r,"constructor",d),z&&y(r,z,h),s[h]=d,l({global:!0,forced:d!=o,sham:!H},s),U in d||y(d,U,c),U in r||y(r,U,c),C(h)}):t.exports=function(){}},function(t,e){t.exports=!1},function(t,e,r){function i(t){return"function"==typeof t?t:void 0}var n=r(44),a=r(3);t.exports=function(t,e){return arguments.length<2?i(n[t])||i(a[t]):n[t]&&n[t][e]||a[t]&&a[t][e]}},function(t,e,r){var i=r(24),n=Math.max,a=Math.min;t.exports=function(t,e){var r=i(t);return r<0?n(r+e,0):a(r,e)}},function(t,e,r){function i(){}var n=r(5),a=r(87),o=r(85),s=r(53),l=r(110),p=r(82),c=r(66)("IE_PROTO"),u="prototype",h=function(){var t,e=p("iframe"),r=o.length,i="script";for(e.style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object</"+i+">"),t.close(),h=t.F;r--;)delete h[u][o[r]];return h()};t.exports=Object.create||function(t,e){var r;return null!==t?(i[u]=n(t),r=new i,i[u]=null,r[c]=t):r=h(),void 0===e?r:a(r,e)},s[c]=!0},function(t,e,r){var a=r(21);t.exports=function(i,n,t){if(a(i),void 0===n)return i;switch(t){case 0:return function(){return i.call(n)};case 1:return function(t){return i.call(n,t)};case 2:return function(t,e){return i.call(n,t,e)};case 3:return function(t,e,r){return i.call(n,t,e,r)}}return function(){return i.apply(n,arguments)}}},function(t,e,r){var i=r(8),n=r(35),a=r(14),o=i("unscopables"),s=Array.prototype;null==s[o]&&a(s,o,n(null)),t.exports=function(t){s[o][t]=!0}},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var i=r(108),n=r(85).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,n)}},function(t,e,r){var i=r(25);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,r){function i(t){s(t,c,{value:{objectID:"O"+ ++u,weakData:{}}})}var n=r(53),a=r(4),o=r(12),s=r(10).f,l=r(52),p=r(58),c=l("meta"),u=0,h=Object.isExtensible||function(){return!0},d=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,c)){if(!h(t))return"F";if(!e)return"E";i(t)}return t[c].objectID},getWeakData:function(t,e){if(!o(t,c)){if(!h(t))return!0;if(!e)return!1;i(t)}return t[c].weakData},onFreeze:function(t){return p&&d.REQUIRED&&h(t)&&!o(t,c)&&i(t),t}};n[c]=!0},function(t,e,r){"use strict";var n=r(26),a=r(10),o=r(39);t.exports=function(t,e,r){var i=n(e);i in t?a.f(t,i,o(0,r)):t[i]=r}},function(t,e,r){t.exports=r(3)},function(t,e,r){var n=r(5),a=r(117);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,i=!1,t={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),i=t instanceof Array}catch(t){}return function(t,e){return n(t),a(e),i?r.call(t,e):t.__proto__=e,t}}():void 0)},function(t,e,r){"use strict";var i=r(33),n=r(10),a=r(8),o=r(7),s=a("species");t.exports=function(t){var e=i(t),r=n.f;o&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,r){function i(r){return function(t){var e=String(n(t));return 1&r&&(e=e.replace(o,"")),2&r&&(e=e.replace(s,"")),e}}var n=r(15),a="["+r(77)+"]",o=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$");t.exports={start:i(1),end:i(2),trim:i(3)}},function(t,e,r){var n=r(17);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},function(t,e,r){"use strict";r.d(e,"a",function(){return i});var ee=r(0);
/*!
 * VERSION: 2.0.2
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */ee.m._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(){var f,T,k,m,$=function(){ee.l.call(this,"css"),this._overwriteProps.length=0,this.setRatio=$.prototype.setRatio},p=ee.m._gsDefine.globals,g={},t=$.prototype=new ee.l("css");(t.constructor=$).version="2.0.2",$.API=2,$.defaultTransformPerspective=0,$.defaultSkewType="compensated",$.defaultSmoothOrigin=!0,t="px",$.suffixMap={top:t,right:t,bottom:t,left:t,width:t,height:t,fontSize:t,padding:t,margin:t,perspective:t,lineHeight:""};function o(t,e){return e.toUpperCase()}function s(t,e){return Z.createElementNS?Z.createElementNS(e||"http://www.w3.org/1999/xhtml",t):Z.createElement(t)}function l(t){return B.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1}function v(t){ee.m.console&&console.log(t)}function P(t,e){var r,i,n=(e=e||K).style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),r=["O","Moz","ms","Ms","Webkit"],i=5;-1<--i&&void 0===n[r[i]+t];);return 0<=i?(nt="-"+(at=3===i?"ms":r[i]).toLowerCase()+"-",at+t):null}function y(t,e){var r,i,n,a={};if(e=e||ot(t,null))if(r=e.length)for(;-1<--r;)-1!==(n=e[r]).indexOf("-transform")&&Nt!==n||(a[n.replace(h,o)]=e.getPropertyValue(n));else for(r in e)-1!==r.indexOf("Transform")&&Rt!==r||(a[r]=e[r]);else if(e=t.currentStyle||t.style)for(r in e)"string"==typeof r&&void 0===a[r]&&(a[r.replace(h,o)]=e[r]);return it||(a.opacity=l(t)),i=Wt(t,e,!1),a.rotation=i.rotation,a.skewX=i.skewX,a.scaleX=i.scaleX,a.scaleY=i.scaleY,a.x=i.x,a.y=i.y,Bt&&(a.z=i.z,a.rotationX=i.rotationX,a.rotationY=i.rotationY,a.scaleZ=i.scaleZ),a.filters&&delete a.filters,a}function x(t,e,r,i,n){var a,o,s,l={},p=t.style;for(o in r)"cssText"!==o&&"length"!==o&&isNaN(o)&&(e[o]!==(a=r[o])||n&&n[o])&&-1===o.indexOf("Origin")&&("number"!=typeof a&&"string"!=typeof a||(l[o]="auto"!==a||"left"!==o&&"top"!==o?""!==a&&"auto"!==a&&"none"!==a||"string"!=typeof e[o]||""===e[o].replace(c,"")?a:0:pt(t,o),void 0!==p[o]&&(s=new xt(p,o,p[o],s))));if(i)for(o in i)"className"!==o&&(l[o]=i[o]);return{difs:l,firstMPT:s}}function b(t,e,r){if("svg"===(t.nodeName+"").toLowerCase())return(r||ot(t))[e]||0;if(t.getCTM&&Gt(t))return t.getBBox()[e]||0;var i=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=ct[e],a=n.length;for(r=r||ot(t,null);-1<--a;)i-=parseFloat(st(t,"padding"+n[a],r,!0))||0,i-=parseFloat(st(t,"border"+n[a]+"Width",r,!0))||0;return i}function I(t,e){return"function"==typeof t&&(t=t(D,M)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0}function A(t,e){"function"==typeof t&&(t=t(D,M));var r="string"==typeof t&&"="===t.charAt(1);return"string"==typeof t&&"v"===t.charAt(t.length-2)&&(t=(r?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(r?t.substr(2):t)/100)),null==t?e:r?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0}function E(t,e,r,i){var n,a,o,s,l;return"function"==typeof t&&(t=t(D,M)),(s=null==t?e:"number"==typeof t?t:(n=360,a=t.split("_"),o=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(a[0].substr(2)):parseFloat(a[0]))*(-1===t.indexOf("rad")?1:J)-(l?0:e),a.length&&(i&&(i[r]=e+o),-1!==t.indexOf("short")&&(o%=n)!==o%180&&(o=o<0?o+n:o-n),-1!==t.indexOf("_cw")&&o<0?o=(o+3599999999640)%n-(o/n|0)*n:-1!==t.indexOf("ccw")&&0<o&&(o=(o-3599999999640)%n-(o/n|0)*n)),e+o))<1e-6&&-1e-6<s&&(s=0),s}function d(t,e,r){return 255*(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)+.5|0}function i(t,e){var r,i,n,a=t.match(mt)||[],o=0,s="";if(!a.length)return t;for(r=0;r<a.length;r++)i=a[r],o+=(n=t.substr(o,t.indexOf(i,o)-o)).length+i.length,3===(i=ft(i,e)).length&&i.push(1),s+=n+(e?"hsla("+i[0]+","+i[1]+"%,"+i[2]+"%,"+i[3]:"rgba("+i.join(","))+")";return s+t.substr(o)}var C,_,w,V,S,O,M,D,e,r,F=/(?:\-|\.|\b)(\d|\.|e\-)+/g,R=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,N=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,c=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,L=/(?:\d|\-|\+|=|#|\.)*/g,B=/opacity *= *([^)]*)/i,j=/opacity:([^;]*)/i,a=/alpha\(opacity *=.+?\)/i,H=/^(rgb|hsl)/,u=/([A-Z])/g,h=/-([a-z])/gi,z=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,G=/(?:Left|Right|Width)/i,Y=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,X=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,W=/,(?=[^\)]*(?:\(|$))/gi,U=/[\s,\(]/i,q=Math.PI/180,J=180/Math.PI,Q={},n={style:{}},Z=ee.m.document||{createElement:function(){return n}},K=s("div"),tt=s("img"),et=$._internals={_specialProps:g},rt=(ee.m.navigator||{}).userAgent||"",it=(e=rt.indexOf("Android"),r=s("a"),w=-1!==rt.indexOf("Safari")&&-1===rt.indexOf("Chrome")&&(-1===e||3<parseFloat(rt.substr(e+8,2))),S=w&&parseFloat(rt.substr(rt.indexOf("Version/")+8,2))<6,V=-1!==rt.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(rt)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(rt))&&(O=parseFloat(RegExp.$1)),!!r&&(r.style.cssText="top:1px;opacity:.55;",/^0.55/.test(r.style.opacity))),nt="",at="",ot=("undefined"!=typeof window?window:Z.defaultView||{getComputedStyle:function(){}}).getComputedStyle,st=$.getStyle=function(t,e,r,i,n){var a;return it||"opacity"!==e?(!i&&t.style[e]?a=t.style[e]:(r=r||ot(t))?a=r[e]||r.getPropertyValue(e)||r.getPropertyValue(e.replace(u,"-$1").toLowerCase()):t.currentStyle&&(a=t.currentStyle[e]),null==n||a&&"none"!==a&&"auto"!==a&&"auto auto"!==a?a:n):l(t)},lt=et.convertToPixels=function(t,e,r,i,n){if("px"===i||!i&&"lineHeight"!==e)return r;if("auto"===i||!r)return 0;var a,o,s,l=G.test(e),p=t,c=K.style,u=r<0,h=1===r;if(u&&(r=-r),h&&(r*=100),"lineHeight"!==e||i)if("%"===i&&-1!==e.indexOf("border"))a=r/100*(l?t.clientWidth:t.clientHeight);else{if(c.cssText="border:0 solid red;position:"+st(t,"position")+";line-height:0;","%"!==i&&p.appendChild&&"v"!==i.charAt(0)&&"rem"!==i)c[l?"borderLeftWidth":"borderTopWidth"]=r+i;else{if(p=t.parentNode||Z.body,-1!==st(p,"display").indexOf("flex")&&(c.position="absolute"),o=p._gsCache,s=ee.n.ticker.frame,o&&l&&o.time===s)return o.width*r/100;c[l?"width":"height"]=r+i}p.appendChild(K),a=parseFloat(K[l?"offsetWidth":"offsetHeight"]),p.removeChild(K),l&&"%"===i&&!1!==$.cacheWidths&&((o=p._gsCache=p._gsCache||{}).time=s,o.width=a/r*100),0!==a||n||(a=lt(t,e,r,i,!0))}else o=ot(t).lineHeight,t.style.lineHeight=r,a=parseFloat(ot(t).lineHeight),t.style.lineHeight=o;return h&&(a/=100),u?-a:a},pt=et.calculateOffset=function(t,e,r){if("absolute"!==st(t,"position",r))return 0;var i="left"===e?"Left":"Top",n=st(t,"margin"+i,r);return t["offset"+i]-(lt(t,e,parseFloat(n),n.replace(L,""))||0)},ct={width:["Left","Right"],height:["Top","Bottom"]},ut=["marginLeft","marginRight","marginTop","marginBottom"],ht=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var r,i=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],a=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];if(3<i.length&&!e){for(i=t.split(", ").join(",").split(","),t=[],r=0;r<i.length;r++)t.push(ht(i[r]));return t.join(",")}return null==a?a="center"===n?"50%":"0":"center"===a&&(a="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),t=n+" "+a+(2<i.length?" "+i[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==a.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===a.charAt(1),e.ox=parseFloat(n.replace(c,"")),e.oy=parseFloat(a.replace(c,"")),e.v=t),e||t},dt={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]},ft=$.parseColor=function(t,e){var r,i,n,a,o,s,l,p,c,u,h;if(t)if("number"==typeof t)r=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),dt[t])r=dt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(a=t.charAt(3))+a),r=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(r=h=t.match(F),e){if(-1!==t.indexOf("="))return t.match(R)}else o=Number(r[0])%360/360,s=Number(r[1])/100,i=2*(l=Number(r[2])/100)-(n=l<=.5?l*(s+1):l+s-l*s),3<r.length&&(r[3]=Number(r[3])),r[0]=d(o+1/3,i,n),r[1]=d(o,i,n),r[2]=d(o-1/3,i,n);else r=t.match(F)||dt.transparent;r[0]=Number(r[0]),r[1]=Number(r[1]),r[2]=Number(r[2]),3<r.length&&(r[3]=Number(r[3]))}else r=dt.black;return e&&!h&&(i=r[0]/255,n=r[1]/255,a=r[2]/255,l=((p=Math.max(i,n,a))+(c=Math.min(i,n,a)))/2,p===c?o=s=0:(u=p-c,s=.5<l?u/(2-p-c):u/(p+c),o=p===i?(n-a)/u+(n<a?6:0):p===n?(a-i)/u+2:(i-n)/u+4,o*=60),r[0]=o+.5|0,r[1]=100*s+.5|0,r[2]=100*l+.5|0),r},mt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in dt)mt+="|"+t+"\\b";mt=new RegExp(mt+")","gi"),$.colorStringFilter=function(t){var e,r=t[0]+" "+t[1];mt.test(r)&&(e=-1!==r.indexOf("hsl(")||-1!==r.indexOf("hsla("),t[0]=i(t[0],e),t[1]=i(t[1],e)),mt.lastIndex=0},ee.n.defaultStringFilter||(ee.n.defaultStringFilter=$.colorStringFilter);function gt(t,e,a,o){if(null==t)return function(t){return t};var s,l=e?(t.match(mt)||[""])[0]:"",p=t.split(l).join("").match(N)||[],c=t.substr(0,t.indexOf(p[0])),u=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",d=p.length,f=0<d?p[0].replace(F,""):"";return d?s=e?function(t){var e,r,i,n;if("number"==typeof t)t+=f;else if(o&&W.test(t)){for(n=t.replace(W,"|").split("|"),i=0;i<n.length;i++)n[i]=s(n[i]);return n.join(",")}if(e=(t.match(mt)||[l])[0],i=(r=t.split(e).join("").match(N)||[]).length,d>i--)for(;++i<d;)r[i]=a?r[(i-1)/2|0]:p[i];return c+r.join(h)+h+e+u+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,r,i;if("number"==typeof t)t+=f;else if(o&&W.test(t)){for(r=t.replace(W,"|").split("|"),i=0;i<r.length;i++)r[i]=s(r[i]);return r.join(",")}if(i=(e=t.match(N)||[]).length,d>i--)for(;++i<d;)e[i]=a?e[(i-1)/2|0]:p[i];return c+e.join(h)+u}:function(t){return t}}function vt(p){return p=p.split(","),function(t,e,r,i,n,a,o){var s,l=(e+"").split(" ");for(o={},s=0;s<4;s++)o[p[s]]=l[s]=l[s]||l[(s-1)/2>>0];return i.parse(t,o,n,a)}}et._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,r,i,n,a,o=this.data,s=o.proxy,l=o.firstMPT;l;)e=s[l.v],l.r?e=l.r(e):e<1e-6&&-1e-6<e&&(e=0),l.t[l.p]=e,l=l._next;if(o.autoRotate&&(o.autoRotate.rotation=o.mod?o.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===t||0===t)for(l=o.firstMPT,a=1===t?"e":"b";l;){if((r=l.t).type){if(1===r.type){for(n=r.xs0+r.s+r.xs1,i=1;i<r.l;i++)n+=r["xn"+i]+r["xs"+(i+1)];r[a]=n}}else r[a]=r.s+r.xs0;l=l._next}};function yt(t,e,r,i,n,a){var o=new bt(t,e,r,i-r,n,-1,a);return o.b=r,o.e=o.xs0=i,o}var xt=function(t,e,r,i,n){this.t=t,this.p=e,this.v=r,this.r=n,i&&((i._prev=this)._next=i)},bt=(et._parseToProxy=function(t,e,r,i,n,a){var o,s,l,p,c,u=i,h={},d={},f=r._transform,m=Q;for(r._transform=null,Q=e,i=c=r.parse(t,e,i,n),Q=m,a&&(r._transform=f,u&&(u._prev=null,u._prev&&(u._prev._next=null)));i&&i!==u;){if(i.type<=1&&(d[s=i.p]=i.s+i.c,h[s]=i.s,a||(p=new xt(i,"s",s,p,i.r),i.c=0),1===i.type))for(o=i.l;0<--o;)l="xn"+o,d[s=i.p+"_"+l]=i.data[l],h[s]=i[l],a||(p=new xt(i,l,s,p,i.rxp[l]));i=i._next}return{proxy:h,end:d,firstMPT:p,pt:c}},et.CSSPropTween=function(t,e,r,i,n,a,o,s,l,p,c){this.t=t,this.p=e,this.s=r,this.c=i,this.n=o||e,t instanceof bt||m.push(this.n),this.r=s?"function"==typeof s?s:Math.round:s,this.type=a||0,l&&(this.pr=l,f=!0),this.b=void 0===p?r:p,this.e=void 0===c?r+i:c,n&&((this._next=n)._prev=this)}),_t=$.parseComplex=function(t,e,r,i,n,a,o,s,l,p){r=r||a||"","function"==typeof i&&(i=i(D,M)),o=new bt(t,e,0,0,o,p?2:1,null,!1,s,r,i),i+="",n&&mt.test(i+r)&&(i=[r,i],$.colorStringFilter(i),r=i[0],i=i[1]);var c,u,h,d,f,m,g,v,y,x,b,_,w,S=r.split(", ").join(",").split(" "),T=i.split(", ").join(",").split(" "),P=S.length,k=!1!==C;for(-1===i.indexOf(",")&&-1===r.indexOf(",")||(T=-1!==(i+r).indexOf("rgb")||-1!==(i+r).indexOf("hsl")?(S=S.join(" ").replace(W,", ").split(" "),T.join(" ").replace(W,", ").split(" ")):(S=S.join(" ").split(",").join(", ").split(" "),T.join(" ").split(",").join(", ").split(" ")),P=S.length),P!==T.length&&(P=(S=(a||"").split(" ")).length),o.plugin=l,o.setRatio=p,c=mt.lastIndex=0;c<P;c++)if(d=S[c],f=T[c]+"",(v=parseFloat(d))||0===v)o.appendXtra("",v,I(f,v),f.replace(R,""),k&&-1!==f.indexOf("px")&&Math.round,!0);else if(n&&mt.test(d))_=")"+((_=f.indexOf(")")+1)?f.substr(_):""),w=-1!==f.indexOf("hsl")&&it,x=f,d=ft(d,w),f=ft(f,w),(y=6<d.length+f.length)&&!it&&0===f[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(T[c]).join("transparent")):(it||(y=!1),w?o.appendXtra(x.substr(0,x.indexOf("hsl"))+(y?"hsla(":"hsl("),d[0],I(f[0],d[0]),",",!1,!0).appendXtra("",d[1],I(f[1],d[1]),"%,",!1).appendXtra("",d[2],I(f[2],d[2]),y?"%,":"%"+_,!1):o.appendXtra(x.substr(0,x.indexOf("rgb"))+(y?"rgba(":"rgb("),d[0],f[0]-d[0],",",Math.round,!0).appendXtra("",d[1],f[1]-d[1],",",Math.round).appendXtra("",d[2],f[2]-d[2],y?",":_,Math.round),y&&(d=d.length<4?1:d[3],o.appendXtra("",d,(f.length<4?1:f[3])-d,_,!1))),mt.lastIndex=0;else if(m=d.match(F)){if(!(g=f.match(R))||g.length!==m.length)return o;for(u=h=0;u<m.length;u++)b=m[u],x=d.indexOf(b,h),o.appendXtra(d.substr(h,x-h),Number(b),I(g[u],b),"",k&&"px"===d.substr(x+b.length,2)&&Math.round,0===u),h=x+b.length;o["xs"+o.l]+=d.substr(h)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+f:f;if(-1!==i.indexOf("=")&&o.data){for(_=o.xs0+o.data.s,c=1;c<o.l;c++)_+=o["xs"+c]+o.data["xn"+c];o.e=_+o["xs"+c]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},wt=9;for((t=bt.prototype).l=t.pr=0;0<--wt;)t["xn"+wt]=0,t["xs"+wt]="";t.xs0="",t._next=t._prev=t.xfirst=t.data=t.plugin=t.setRatio=t.rxp=null,t.appendXtra=function(t,e,r,i,n,a){var o=this,s=o.l;return o["xs"+s]+=a&&(s||o["xs"+s])?" "+t:t||"",r||0===s||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=i||"",0<s?(o.data["xn"+s]=e+r,o.rxp["xn"+s]=n,o["xn"+s]=e,o.plugin||(o.xfirst=new bt(o,"xn"+s,e,r,o.xfirst||o,0,o.n,n,o.pr),o.xfirst.xs0=0)):(o.data={s:e+r},o.rxp={},o.s=e,o.c=r,o.r=n),o):(o["xs"+s]+=e+(i||""),o)};function St(t,e){e=e||{},this.p=e.prefix&&P(t)||t,g[t]=g[this.p]=this,this.format=e.formatter||gt(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}var Tt=et._registerComplexSpecialProp=function(t,e,r){"object"!=typeof e&&(e={parser:r});var i,n=t.split(","),a=e.defaultValue;for(r=r||[a],i=0;i<n.length;i++)e.prefix=0===i&&e.prefix,e.defaultValue=r[i]||a,new St(n[i],e)},Pt=et._registerPluginProp=function(t){if(!g[t]){var l=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Tt(t,{parser:function(t,e,r,i,n,a,o){var s=p.com.greensock.plugins[l];return s?(s._cssRegister(),g[r].parse(t,e,r,i,n,a,o)):(v("Error: "+l+" js file not loaded."),n)}})}};(t=St.prototype).parseComplex=function(t,e,r,i,n,a){var o,s,l,p,c,u,h=this.keyword;if(this.multi&&(W.test(r)||W.test(e)?(s=e.replace(W,"|").split("|"),l=r.replace(W,"|").split("|")):h&&(s=[e],l=[r])),l){for(p=l.length>s.length?l.length:s.length,o=0;o<p;o++)e=s[o]=s[o]||this.dflt,r=l[o]=l[o]||this.dflt,h&&(c=e.indexOf(h))!==(u=r.indexOf(h))&&(-1===u?s[o]=s[o].split(h).join(""):-1===c&&(s[o]+=" "+h));e=s.join(", "),r=l.join(", ")}return _t(t,this.p,e,r,this.clrs,this.dflt,i,this.pr,n,a)},t.parse=function(t,e,r,i,n,a,o){return this.parseComplex(t.style,this.format(st(t,this.p,k,!1,this.dflt)),this.format(e),n,a)},$.registerSpecialProp=function(t,l,p){Tt(t,{parser:function(t,e,r,i,n,a,o){var s=new bt(t,r,0,0,n,2,r,!1,p);return s.plugin=a,s.setRatio=l(t,e,i._tween,r),s},priority:p})},$.useSVGTransformAttr=!0;function kt(t,e,r){var i,n=Z.createElementNS("http://www.w3.org/2000/svg",t),a=/([a-z])([A-Z])/g;for(i in r)n.setAttributeNS(null,i.replace(a,"$1-$2").toLowerCase(),r[i]);return e.appendChild(n),n}function It(t,e,r,i,n,a){var o,s,l,p,c,u,h,d,f,m,g,v,y,x,b=t._gsTransform,_=Xt(t,!0);b&&(y=b.xOrigin,x=b.yOrigin),(!i||(o=i.split(" ")).length<2)&&(0===(h=t.getBBox()).x&&0===h.y&&h.width+h.height===0&&(h={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),o=[(-1!==(e=ht(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*h.width:parseFloat(e[0]))+h.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*h.height:parseFloat(e[1]))+h.y]),r.xOrigin=p=parseFloat(o[0]),r.yOrigin=c=parseFloat(o[1]),i&&_!==Yt&&(u=_[0],h=_[1],d=_[2],f=_[3],m=_[4],g=_[5],(v=u*f-h*d)&&(s=p*(f/v)+c*(-d/v)+(d*g-f*m)/v,l=p*(-h/v)+c*(u/v)-(u*g-h*m)/v,p=r.xOrigin=o[0]=s,c=r.yOrigin=o[1]=l)),b&&(a&&(r.xOffset=b.xOffset,r.yOffset=b.yOffset,b=r),n||!1!==n&&!1!==$.defaultSmoothOrigin?(s=p-y,l=c-x,b.xOffset+=s*_[0]+l*_[2]-s,b.yOffset+=s*_[1]+l*_[3]-l):b.xOffset=b.yOffset=0),a||t.setAttribute("data-svg-origin",o.join(" "))}function At(t){var e,r,i=this.data,n=-i.rotation*q,a=n+i.skewX*q,o=1e5,s=(Math.cos(n)*i.scaleX*o|0)/o,l=(Math.sin(n)*i.scaleX*o|0)/o,p=(Math.sin(a)*-i.scaleY*o|0)/o,c=(Math.cos(a)*i.scaleY*o|0)/o,u=this.t.style,h=this.t.currentStyle;if(h){r=l,l=-p,p=-r,e=h.filter,u.filter="";var d,f,m=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==h.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+s+", M12="+l+", M21="+p+", M22="+c,x=i.x+m*i.xPercent/100,b=i.y+g*i.yPercent/100;if(null!=i.ox&&(x+=(d=(i.oxp?m*i.ox*.01:i.ox)-m/2)-(d*s+(f=(i.oyp?g*i.oy*.01:i.oy)-g/2)*l),b+=f-(d*p+f*c)),y+=v?", Dx="+((d=m/2)-(d*s+(f=g/2)*l)+x)+", Dy="+(f-(d*p+f*c)+b)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?u.filter=e.replace(X,y):u.filter=y+" "+e,0!==t&&1!==t||1==s&&0===l&&0===p&&1==c&&(v&&-1===y.indexOf("Dx=0, Dy=0")||B.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&u.removeAttribute("filter")),!v){var _,w,S,T=O<8?1:-1;for(d=i.ieOffsetX||0,f=i.ieOffsetY||0,i.ieOffsetX=Math.round((m-((s<0?-s:s)*m+(l<0?-l:l)*g))/2+x),i.ieOffsetY=Math.round((g-((c<0?-c:c)*g+(p<0?-p:p)*m))/2+b),wt=0;wt<4;wt++)S=(r=-1!==(_=h[w=ut[wt]]).indexOf("px")?parseFloat(_):lt(this.t,w,parseFloat(_),_.replace(L,""))||0)!==i[w]?wt<2?-i.ieOffsetX:-i.ieOffsetY:wt<2?d-i.ieOffsetX:f-i.ieOffsetY,u[w]=(i[w]=Math.round(r-S*(0===wt||2===wt?1:T)))+"px"}}}var Et,Ct,Ot,Mt,Dt,Ft="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Rt=P("transform"),Nt=nt+"transform",Lt=P("transformOrigin"),Bt=null!==P("perspective"),jt=et.Transform=function(){this.perspective=parseFloat($.defaultTransformPerspective)||0,this.force3D=!(!1===$.defaultForce3D||!Bt)&&($.defaultForce3D||"auto")},$t=ee.m.SVGElement,Vt=Z.documentElement||{},Ht=(Dt=O||/Android/i.test(rt)&&!ee.m.chrome,Z.createElementNS&&!Dt&&(Ct=kt("svg",Vt),Mt=(Ot=kt("rect",Ct,{width:100,height:50,x:100})).getBoundingClientRect().width,Ot.style[Lt]="50% 50%",Ot.style[Rt]="scaleX(0.5)",Dt=Mt===Ot.getBoundingClientRect().width&&!(V&&Bt),Vt.removeChild(Ct)),Dt),zt=function(t){var e,r=s("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(Vt.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=zt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return n?i.insertBefore(this,n):i.appendChild(this),Vt.removeChild(r),this.style.cssText=a,e},Gt=function(t){return!(!$t||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(e){try{return e.getBBox()}catch(t){return zt.call(e,!0)}}(t))},Yt=[1,0,0,1,0,0],Xt=function(t,e){var r,i,n,a,o,s,l=t._gsTransform||new jt,p=t.style;if(Rt?i=st(t,Nt,null,!0):t.currentStyle&&(i=(i=t.currentStyle.filter.match(Y))&&4===i.length?[i[0].substr(4),Number(i[2].substr(4)),Number(i[1].substr(4)),i[3].substr(4),l.x||0,l.y||0].join(","):""),r=!i||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,!Rt||!(s=!ot(t)||"none"===ot(t).display)&&t.parentNode||(s&&(a=p.display,p.display="block"),t.parentNode||(o=1,Vt.appendChild(t)),r=!(i=st(t,Nt,null,!0))||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,a?p.display=a:s&&Qt(p,"display"),o&&Vt.removeChild(t)),(l.svg||t.getCTM&&Gt(t))&&(r&&-1!==(p[Rt]+"").indexOf("matrix")&&(i=p[Rt],r=0),n=t.getAttribute("transform"),r&&n&&(i="matrix("+(n=t.transform.baseVal.consolidate().matrix).a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")",r=0)),r)return Yt;for(n=(i||"").match(F)||[],wt=n.length;-1<--wt;)a=Number(n[wt]),n[wt]=(o=a-(a|=0))?(1e5*o+(o<0?-.5:.5)|0)/1e5+a:a;return e&&6<n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},Wt=et.getTransform=function(t,e,r,i){if(t._gsTransform&&r&&!i)return t._gsTransform;var n,a,o,s,l,p,c=r&&t._gsTransform||new jt,u=c.scaleX<0,h=Bt&&(parseFloat(st(t,Lt,e,!1,"0 0 0").split(" ")[2])||c.zOrigin)||0,d=parseFloat($.defaultTransformPerspective)||0;if(c.svg=!(!t.getCTM||!Gt(t)),c.svg&&(It(t,st(t,Lt,e,!1,"50% 50%")+"",c,t.getAttribute("data-svg-origin")),Et=$.useSVGTransformAttr||Ht),(n=Xt(t))!==Yt){if(16===n.length){var f,m,g,v,y,x=n[0],b=n[1],_=n[2],w=n[3],S=n[4],T=n[5],P=n[6],k=n[7],I=n[8],A=n[9],E=n[10],C=n[12],O=n[13],M=n[14],D=n[11],F=Math.atan2(P,E);c.zOrigin&&(C=I*(M=-c.zOrigin)-n[12],O=A*M-n[13],M=E*M+c.zOrigin-n[14]),c.rotationX=F*J,F&&(f=S*(v=Math.cos(-F))+I*(y=Math.sin(-F)),m=T*v+A*y,g=P*v+E*y,I=S*-y+I*v,A=T*-y+A*v,E=P*-y+E*v,D=k*-y+D*v,S=f,T=m,P=g),F=Math.atan2(-_,E),c.rotationY=F*J,F&&(m=b*(v=Math.cos(-F))-A*(y=Math.sin(-F)),g=_*v-E*y,A=b*y+A*v,E=_*y+E*v,D=w*y+D*v,x=f=x*v-I*y,b=m,_=g),F=Math.atan2(b,x),c.rotation=F*J,F&&(f=x*(v=Math.cos(F))+b*(y=Math.sin(F)),m=S*v+T*y,g=I*v+A*y,b=b*v-x*y,T=T*v-S*y,A=A*v-I*y,x=f,S=m,I=g),c.rotationX&&359.9<Math.abs(c.rotationX)+Math.abs(c.rotation)&&(c.rotationX=c.rotation=0,c.rotationY=180-c.rotationY),F=Math.atan2(S,T),c.scaleX=(1e5*Math.sqrt(x*x+b*b+_*_)+.5|0)/1e5,c.scaleY=(1e5*Math.sqrt(T*T+P*P)+.5|0)/1e5,c.scaleZ=(1e5*Math.sqrt(I*I+A*A+E*E)+.5|0)/1e5,x/=c.scaleX,S/=c.scaleY,b/=c.scaleX,T/=c.scaleY,2e-5<Math.abs(F)?(c.skewX=F*J,S=0,"simple"!==c.skewType&&(c.scaleY*=1/Math.cos(F))):c.skewX=0,c.perspective=D?1/(D<0?-D:D):0,c.x=C,c.y=O,c.z=M,c.svg&&(c.x-=c.xOrigin-(c.xOrigin*x-c.yOrigin*S),c.y-=c.yOrigin-(c.yOrigin*b-c.xOrigin*T))}else if(!Bt||i||!n.length||c.x!==n[4]||c.y!==n[5]||!c.rotationX&&!c.rotationY){var R=6<=n.length,N=R?n[0]:1,L=n[1]||0,B=n[2]||0,j=R?n[3]:1;c.x=n[4]||0,c.y=n[5]||0,o=Math.sqrt(N*N+L*L),s=Math.sqrt(j*j+B*B),l=N||L?Math.atan2(L,N)*J:c.rotation||0,p=B||j?Math.atan2(B,j)*J+l:c.skewX||0,c.scaleX=o,c.scaleY=s,c.rotation=l,c.skewX=p,Bt&&(c.rotationX=c.rotationY=c.z=0,c.perspective=d,c.scaleZ=1),c.svg&&(c.x-=c.xOrigin-(c.xOrigin*N+c.yOrigin*B),c.y-=c.yOrigin-(c.xOrigin*L+c.yOrigin*j))}for(a in 90<Math.abs(c.skewX)&&Math.abs(c.skewX)<270&&(u?(c.scaleX*=-1,c.skewX+=c.rotation<=0?180:-180,c.rotation+=c.rotation<=0?180:-180):(c.scaleY*=-1,c.skewX+=c.skewX<=0?180:-180)),c.zOrigin=h,c)c[a]<2e-5&&-2e-5<c[a]&&(c[a]=0)}return r&&(t._gsTransform=c).svg&&(Et&&t.style[Rt]?ee.n.delayedCall(.001,function(){Qt(t.style,Rt)}):!Et&&t.getAttribute("transform")&&ee.n.delayedCall(.001,function(){t.removeAttribute("transform")})),c},Ut=et.set3DTransformRatio=et.setTransformRatio=function(t){var e,r,i,n,a,o,s,l,p,c,u,h,d,f,m,g,v,y,x,b,_,w,S,T=this.data,P=this.t.style,k=T.rotation,I=T.rotationX,A=T.rotationY,E=T.scaleX,C=T.scaleY,O=T.scaleZ,M=T.x,D=T.y,F=T.z,R=T.svg,N=T.perspective,L=T.force3D,B=T.skewY,j=T.skewX;if(B&&(j+=B,k+=B),!((1!==t&&0!==t||"auto"!==L||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&L||F||N||A||I||1!==O)||Et&&R||!Bt)k||j||R?(k*=q,w=j*q,S=1e5,r=Math.cos(k)*E,a=Math.sin(k)*E,i=Math.sin(k-w)*-C,o=Math.cos(k-w)*C,w&&"simple"===T.skewType&&(e=Math.tan(w-B*q),i*=e=Math.sqrt(1+e*e),o*=e,B&&(e=Math.tan(B*q),r*=e=Math.sqrt(1+e*e),a*=e)),R&&(M+=T.xOrigin-(T.xOrigin*r+T.yOrigin*i)+T.xOffset,D+=T.yOrigin-(T.xOrigin*a+T.yOrigin*o)+T.yOffset,Et&&(T.xPercent||T.yPercent)&&(m=this.t.getBBox(),M+=.01*T.xPercent*m.width,D+=.01*T.yPercent*m.height),M<(m=1e-6)&&-m<M&&(M=0),D<m&&-m<D&&(D=0)),x=(r*S|0)/S+","+(a*S|0)/S+","+(i*S|0)/S+","+(o*S|0)/S+","+M+","+D+")",R&&Et?this.t.setAttribute("transform","matrix("+x):P[Rt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix(":"matrix(")+x):P[Rt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+C+","+M+","+D+")";else{if(V&&(E<(m=1e-4)&&-m<E&&(E=O=2e-5),C<m&&-m<C&&(C=O=2e-5),!N||T.z||T.rotationX||T.rotationY||(N=0)),k||j)k*=q,g=r=Math.cos(k),v=a=Math.sin(k),j&&(k-=j*q,g=Math.cos(k),v=Math.sin(k),"simple"===T.skewType&&(e=Math.tan((j-B)*q),g*=e=Math.sqrt(1+e*e),v*=e,T.skewY&&(e=Math.tan(B*q),r*=e=Math.sqrt(1+e*e),a*=e))),i=-v,o=g;else{if(!(A||I||1!==O||N||R))return void(P[Rt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) translate3d(":"translate3d(")+M+"px,"+D+"px,"+F+"px)"+(1!==E||1!==C?" scale("+E+","+C+")":""));r=o=1,i=a=0}c=1,n=s=l=p=u=h=0,d=N?-1/N:0,f=T.zOrigin,m=1e-6,b=",",_="0",(k=A*q)&&(g=Math.cos(k),u=d*(l=-(v=Math.sin(k))),n=r*v,s=a*v,d*=c=g,r*=g,a*=g),(k=I*q)&&(e=i*(g=Math.cos(k))+n*(v=Math.sin(k)),y=o*g+s*v,p=c*v,h=d*v,n=i*-v+n*g,s=o*-v+s*g,c*=g,d*=g,i=e,o=y),1!==O&&(n*=O,s*=O,c*=O,d*=O),1!==C&&(i*=C,o*=C,p*=C,h*=C),1!==E&&(r*=E,a*=E,l*=E,u*=E),(f||R)&&(f&&(M+=n*-f,D+=s*-f,F+=c*-f+f),R&&(M+=T.xOrigin-(T.xOrigin*r+T.yOrigin*i)+T.xOffset,D+=T.yOrigin-(T.xOrigin*a+T.yOrigin*o)+T.yOffset),M<m&&-m<M&&(M=_),D<m&&-m<D&&(D=_),F<m&&-m<F&&(F=0)),x=T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix3d(":"matrix3d(",x+=(r<m&&-m<r?_:r)+b+(a<m&&-m<a?_:a)+b+(l<m&&-m<l?_:l),x+=b+(u<m&&-m<u?_:u)+b+(i<m&&-m<i?_:i)+b+(o<m&&-m<o?_:o),I||A||1!==O?(x+=b+(p<m&&-m<p?_:p)+b+(h<m&&-m<h?_:h)+b+(n<m&&-m<n?_:n),x+=b+(s<m&&-m<s?_:s)+b+(c<m&&-m<c?_:c)+b+(d<m&&-m<d?_:d)+b):x+=",0,0,0,0,1,0,",x+=M+b+D+b+F+b+(N?1+-F/N:1)+")",P[Rt]=x}};(t=jt.prototype).x=t.y=t.z=t.skewX=t.skewY=t.rotation=t.rotationX=t.rotationY=t.zOrigin=t.xPercent=t.yPercent=t.xOffset=t.yOffset=0,t.scaleX=t.scaleY=t.scaleZ=1,Tt("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,r,i,n,a,o){if(i._lastParsedTransform===o)return n;var s,l=(i._lastParsedTransform=o).scale&&"function"==typeof o.scale?o.scale:0;"function"==typeof o[r]&&(s=o[r],o[r]=e),l&&(o.scale=l(D,t));var p,c,u,h,d,f,m,g,v,y=t._gsTransform,x=t.style,b=Ft.length,_=o,w={},S="transformOrigin",T=Wt(t,k,!0,_.parseTransform),P=_.transform&&("function"==typeof _.transform?_.transform(D,M):_.transform);if(T.skewType=_.skewType||T.skewType||$.defaultSkewType,i._transform=T,"rotationZ"in _&&(_.rotation=_.rotationZ),P&&"string"==typeof P&&Rt)(c=K.style)[Rt]=P,c.display="block",c.position="absolute",-1!==P.indexOf("%")&&(c.width=st(t,"width"),c.height=st(t,"height")),Z.body.appendChild(K),p=Wt(K,null,!1),"simple"===T.skewType&&(p.scaleY*=Math.cos(p.skewX*q)),T.svg&&(f=T.xOrigin,m=T.yOrigin,p.x-=T.xOffset,p.y-=T.yOffset,(_.transformOrigin||_.svgOrigin)&&(P={},It(t,ht(_.transformOrigin),P,_.svgOrigin,_.smoothOrigin,!0),f=P.xOrigin,m=P.yOrigin,p.x-=P.xOffset-T.xOffset,p.y-=P.yOffset-T.yOffset),(f||m)&&(g=Xt(K,!0),p.x-=f-(f*g[0]+m*g[2]),p.y-=m-(f*g[1]+m*g[3]))),Z.body.removeChild(K),p.perspective||(p.perspective=T.perspective),null!=_.xPercent&&(p.xPercent=A(_.xPercent,T.xPercent)),null!=_.yPercent&&(p.yPercent=A(_.yPercent,T.yPercent));else if("object"==typeof _){if(p={scaleX:A(null!=_.scaleX?_.scaleX:_.scale,T.scaleX),scaleY:A(null!=_.scaleY?_.scaleY:_.scale,T.scaleY),scaleZ:A(_.scaleZ,T.scaleZ),x:A(_.x,T.x),y:A(_.y,T.y),z:A(_.z,T.z),xPercent:A(_.xPercent,T.xPercent),yPercent:A(_.yPercent,T.yPercent),perspective:A(_.transformPerspective,T.perspective)},null!=(d=_.directionalRotation))if("object"==typeof d)for(c in d)_[c]=d[c];else _.rotation=d;"string"==typeof _.x&&-1!==_.x.indexOf("%")&&(p.x=0,p.xPercent=A(_.x,T.xPercent)),"string"==typeof _.y&&-1!==_.y.indexOf("%")&&(p.y=0,p.yPercent=A(_.y,T.yPercent)),p.rotation=E("rotation"in _?_.rotation:"shortRotation"in _?_.shortRotation+"_short":T.rotation,T.rotation,"rotation",w),Bt&&(p.rotationX=E("rotationX"in _?_.rotationX:"shortRotationX"in _?_.shortRotationX+"_short":T.rotationX||0,T.rotationX,"rotationX",w),p.rotationY=E("rotationY"in _?_.rotationY:"shortRotationY"in _?_.shortRotationY+"_short":T.rotationY||0,T.rotationY,"rotationY",w)),p.skewX=E(_.skewX,T.skewX),p.skewY=E(_.skewY,T.skewY)}for(Bt&&null!=_.force3D&&(T.force3D=_.force3D,h=!0),(u=T.force3D||T.z||T.rotationX||T.rotationY||p.z||p.rotationX||p.rotationY||p.perspective)||null==_.scale||(p.scaleZ=1);-1<--b;)(1e-6<(P=p[v=Ft[b]]-T[v])||P<-1e-6||null!=_[v]||null!=Q[v])&&(h=!0,n=new bt(T,v,T[v],P,n),v in w&&(n.e=w[v]),n.xs0=0,n.plugin=a,i._overwriteProps.push(n.n));return P=_.transformOrigin,T.svg&&(P||_.svgOrigin)&&(f=T.xOffset,m=T.yOffset,It(t,ht(P),p,_.svgOrigin,_.smoothOrigin),n=yt(T,"xOrigin",(y?T:p).xOrigin,p.xOrigin,n,S),n=yt(T,"yOrigin",(y?T:p).yOrigin,p.yOrigin,n,S),f===T.xOffset&&m===T.yOffset||(n=yt(T,"xOffset",y?f:T.xOffset,T.xOffset,n,S),n=yt(T,"yOffset",y?m:T.yOffset,T.yOffset,n,S)),P="0px 0px"),(P||Bt&&u&&T.zOrigin)&&(Rt?(h=!0,v=Lt,P=(P||st(t,v,k,!1,"50% 50%"))+"",(n=new bt(x,v,0,0,n,-1,S)).b=x[v],n.plugin=a,Bt?(c=T.zOrigin,P=P.split(" "),T.zOrigin=(2<P.length&&(0===c||"0px"!==P[2])?parseFloat(P[2]):c)||0,n.xs0=n.e=P[0]+" "+(P[1]||"50%")+" 0px",(n=new bt(T,"zOrigin",0,0,n,-1,n.n)).b=c,n.xs0=n.e=T.zOrigin):n.xs0=n.e=P):ht(P+"",T)),h&&(i._transformType=T.svg&&Et||!u&&3!==this._transformType?2:3),s&&(o[r]=s),l&&(o.scale=l),n},prefix:!0}),Tt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Tt("borderRadius",{defaultValue:"0px",parser:function(t,e,r,i,n,a){e=this.format(e);var o,s,l,p,c,u,h,d,f,m,g,v,y,x,b,_,w=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],S=t.style;for(f=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),o=e.split(" "),s=0;s<w.length;s++)this.p.indexOf("border")&&(w[s]=P(w[s])),-1!==(c=p=st(t,w[s],k,!1,"0px")).indexOf(" ")&&(c=(p=c.split(" "))[0],p=p[1]),u=l=o[s],h=parseFloat(c),v=c.substr((h+"").length),""===(g=(y="="===u.charAt(1))?(d=parseInt(u.charAt(0)+"1",10),u=u.substr(2),d*=parseFloat(u),u.substr((d+"").length-(d<0?1:0))||""):(d=parseFloat(u),u.substr((d+"").length)))&&(g=T[r]||v),g!==v&&(x=lt(t,"borderLeft",h,v),b=lt(t,"borderTop",h,v),p="%"===g?(c=x/f*100+"%",b/m*100+"%"):"em"===g?(c=x/(_=lt(t,"borderLeft",1,"em"))+"em",b/_+"em"):(c=x+"px",b+"px"),y&&(u=parseFloat(c)+d+g,l=parseFloat(p)+d+g)),n=_t(S,w[s],c+" "+p,u+" "+l,!1,"0px",n);return n},prefix:!0,formatter:gt("0px 0px 0px 0px",!1,!0)}),Tt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,r,i,n,a){return _t(t.style,r,this.format(st(t,r,k,!1,"0px 0px")),this.format(e),!1,"0px",n)},prefix:!0,formatter:gt("0px 0px",!1,!0)}),Tt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,r,i,n,a){var o,s,l,p,c,u,h="background-position",d=k||ot(t,null),f=this.format((d?O?d.getPropertyValue(h+"-x")+" "+d.getPropertyValue(h+"-y"):d.getPropertyValue(h):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),m=this.format(e);if(-1!==f.indexOf("%")!=(-1!==m.indexOf("%"))&&m.split(",").length<2&&(u=st(t,"backgroundImage").replace(z,""))&&"none"!==u){for(o=f.split(" "),s=m.split(" "),tt.setAttribute("src",u),l=2;-1<--l;)(p=-1!==(f=o[l]).indexOf("%"))!=(-1!==s[l].indexOf("%"))&&(c=0===l?t.offsetWidth-tt.width:t.offsetHeight-tt.height,o[l]=p?parseFloat(f)/100*c+"px":parseFloat(f)/c*100+"%");f=o.join(" ")}return this.parseComplex(t.style,f,m,n,a)},formatter:ht}),Tt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:ht(-1===t.indexOf(" ")?t+" "+t:t)}}),Tt("perspective",{defaultValue:"0px",prefix:!0}),Tt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Tt("transformStyle",{prefix:!0}),Tt("backfaceVisibility",{prefix:!0}),Tt("userSelect",{prefix:!0}),Tt("margin",{parser:vt("marginTop,marginRight,marginBottom,marginLeft")}),Tt("padding",{parser:vt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Tt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,r,i,n,a){var o,s,l;return e=O<9?(s=t.currentStyle,l=O<8?" ":",",o="rect("+s.clipTop+l+s.clipRight+l+s.clipBottom+l+s.clipLeft+")",this.format(e).split(",").join(l)):(o=this.format(st(t,this.p,k,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,o,e,n,a)}}),Tt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Tt("autoRound,strictUnits",{parser:function(t,e,r,i,n){return n}}),Tt("border",{defaultValue:"0px solid #000",parser:function(t,e,r,i,n,a){var o=st(t,"borderTopWidth",k,!1,"0px"),s=this.format(e).split(" "),l=s[0].replace(L,"");return"px"!==l&&(o=parseFloat(o)/lt(t,"borderTopWidth",1,l)+l),this.parseComplex(t.style,this.format(o+" "+st(t,"borderTopStyle",k,!1,"solid")+" "+st(t,"borderTopColor",k,!1,"#000")),s.join(" "),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(mt)||["#000"])[0]}}),Tt("borderWidth",{parser:vt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Tt("float,cssFloat,styleFloat",{parser:function(t,e,r,i,n,a){var o=t.style,s="cssFloat"in o?"cssFloat":"styleFloat";return new bt(o,s,0,0,n,-1,r,!1,0,o[s],e)}});function qt(t){var e,r=this.t,i=r.filter||st(this.data,"filter")||"",n=this.s+this.c*t|0;100==n&&(e=-1===i.indexOf("atrix(")&&-1===i.indexOf("radient(")&&-1===i.indexOf("oader(")?(r.removeAttribute("filter"),!st(this.data,"filter")):(r.filter=i.replace(a,""),!0)),e||(this.xn1&&(r.filter=i=i||"alpha(opacity="+n+")"),-1===i.indexOf("pacity")?0==n&&this.xn1||(r.filter=i+" alpha(opacity="+n+")"):r.filter=i.replace(B,"opacity="+n))}Tt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,r,i,n,a){var o=parseFloat(st(t,"opacity",k,!1,"1")),s=t.style,l="autoAlpha"===r;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),l&&1===o&&"hidden"===st(t,"visibility",k)&&0!==e&&(o=0),it?n=new bt(s,"opacity",o,e-o,n):((n=new bt(s,"opacity",100*o,100*(e-o),n)).xn1=l?1:0,s.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setRatio=qt),l&&((n=new bt(s,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",i._overwriteProps.push(n.n),i._overwriteProps.push(r)),n}});function Jt(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,r=this.t.style;e;)e.v?r[e.p]=e.v:Qt(r,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)}var Qt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(u,"-$1").toLowerCase())):t.removeAttribute(e))};Tt("className",{parser:function(t,e,r,i,n,a,o){var s,l,p,c,u,h=t.getAttribute("class")||"",d=t.style.cssText;if((n=i._classNamePT=new bt(t,r,0,0,n,2)).setRatio=Jt,n.pr=-11,f=!0,n.b=h,l=y(t,k),p=t._gsClassPT){for(c={},u=p.data;u;)c[u.p]=1,u=u._next;p.setRatio(1)}return(t._gsClassPT=n).e="="!==e.charAt(1)?e:h.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",n.e),s=x(t,l,y(t),o,c),t.setAttribute("class",h),n.data=s.firstMPT,t.style.cssText=d,n=n.xfirst=i.parse(t,s.difs,n,a)}});function Zt(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,r,i,n,a,o=this.t.style,s=g.transform.parse;if("all"===this.e)n=!(o.cssText="");else for(i=(e=this.e.split(" ").join("").split(",")).length;-1<--i;)r=e[i],g[r]&&(g[r].parse===s?n=!0:r="transformOrigin"===r?Lt:g[r].p),Qt(o,r);n&&(Qt(o,Rt),(a=this.t._gsTransform)&&(a.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}}for(Tt("clearProps",{parser:function(t,e,r,i,n){return(n=new bt(t,r,0,0,n,2)).setRatio=Zt,n.e=e,n.pr=-10,n.data=i._tween,f=!0,n}}),t="bezier,throwProps,physicsProps,physics2D".split(","),wt=t.length;wt--;)Pt(t[wt]);(t=$.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,r,i){if(!t.nodeType)return!1;this._target=M=t,this._tween=r,this._vars=e,D=i,C=e.autoRound,f=!1,T=e.suffixMap||$.suffixMap,k=ot(t,""),m=this._overwriteProps;var n,a,o,s,l,p,c,u,h,d=t.style;if(_&&""===d.zIndex&&("auto"!==(n=st(t,"zIndex",k))&&""!==n||this._addLazySet(d,"zIndex",0)),"string"==typeof e&&(s=d.cssText,n=y(t,k),d.cssText=s+";"+e,n=x(t,n,y(t)).difs,!it&&j.test(e)&&(n.opacity=parseFloat(RegExp.$1)),e=n,d.cssText=s),e.className?this._firstPT=a=g.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=a=this.parse(t,e,null),this._transformType){for(h=3===this._transformType,Rt?w&&(_=!0,""===d.zIndex&&("auto"!==(c=st(t,"zIndex",k))&&""!==c||this._addLazySet(d,"zIndex",0)),S&&this._addLazySet(d,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(h?"visible":"hidden"))):d.zoom=1,o=a;o&&o._next;)o=o._next;u=new bt(t,"transform",0,0,null,2),this._linkCSSP(u,null,o),u.setRatio=Rt?Ut:At,u.data=this._transform||Wt(t,k,!0),u.tween=r,u.pr=-1,m.pop()}if(f){for(;a;){for(p=a._next,o=s;o&&o.pr>a.pr;)o=o._next;(a._prev=o?o._prev:l)?a._prev._next=a:s=a,(a._next=o)?o._prev=a:l=a,a=p}this._firstPT=s}return!0},t.parse=function(t,e,r,i){var n,a,o,s,l,p,c,u,h,d,f=t.style;for(n in e){if("function"==typeof(p=e[n])&&(p=p(D,M)),a=g[n])r=a.parse(t,p,n,this,r,i,e);else{if("--"===n.substr(0,2)){this._tween._propLookup[n]=this._addTween.call(this._tween,t.style,"setProperty",ot(t).getPropertyValue(n)+"",p+"",n,!1,n);continue}l=st(t,n,k)+"",h="string"==typeof p,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||h&&H.test(p)?(h||(p=(3<(p=ft(p)).length?"rgba(":"rgb(")+p.join(",")+")"),r=_t(f,n,l,p,!0,"transparent",r,0,i)):h&&U.test(p)?r=_t(f,n,l,p,!0,null,r,0,i):(c=(o=parseFloat(l))||0===o?l.substr((o+"").length):"",""!==l&&"auto"!==l||(c="width"===n||"height"===n?(o=b(t,n,k),"px"):"left"===n||"top"===n?(o=pt(t,n,k),"px"):(o="opacity"!==n?0:1,"")),""===(u=(d=h&&"="===p.charAt(1))?(s=parseInt(p.charAt(0)+"1",10),p=p.substr(2),s*=parseFloat(p),p.replace(L,"")):(s=parseFloat(p),h?p.replace(L,""):""))&&(u=n in T?T[n]:c),p=s||0===s?(d?s+o:s)+u:e[n],c!==u&&(""===u&&"lineHeight"!==n||(s||0===s)&&o&&(o=lt(t,n,o,c),"%"===u?(o/=lt(t,n,100,"%")/100,!0!==e.strictUnits&&(l=o+"%")):"em"===u||"rem"===u||"vw"===u||"vh"===u?o/=lt(t,n,1,u):"px"!==u&&(s=lt(t,n,s,u),u="px"),d&&(!s&&0!==s||(p=s+o+u)))),d&&(s+=o),!o&&0!==o||!s&&0!==s?void 0!==f[n]&&(p||p+""!="NaN"&&null!=p)?(r=new bt(f,n,s||o||0,0,r,-1,n,!1,0,l,p)).xs0="none"!==p||"display"!==n&&-1===n.indexOf("Style")?p:l:v("invalid "+n+" tween value: "+e[n]):(r=new bt(f,n,o,s-o,r,0,n,!1!==C&&("px"===u||"zIndex"===n),0,l,p)).xs0=u)}i&&r&&!r.plugin&&(r.plugin=i)}return r},t.setRatio=function(t){var e,r,i,n=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(;n;){if(e=n.c*t+n.s,n.r?e=n.r(e):e<1e-6&&-1e-6<e&&(e=0),n.type)if(1===n.type)if(2===(i=n.l))n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===i)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===i)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===i)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(r=n.xs0+e+n.xs1,i=1;i<n.l;i++)r+=n["xn"+i]+n["xs"+(i+1)];n.t[n.p]=r}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(e=n.r(n.s+n.c),n.type){if(1===n.type){for(i=n.l,r=n.xs0+e+n.xs1,i=1;i<n.l;i++)r+=n["xn"+i]+n["xs"+(i+1)];n.t[n.p]=r}}else n.t[n.p]=e+n.xs0;else n.t[n.p]=n.e;else n.setRatio(t);n=n._next}},t._enableTransforms=function(t){this._transform=this._transform||Wt(this._target,k,!0),this._transformType=this._transform.svg&&Et||!t&&3!==this._transformType?2:3};function Kt(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}t._addLazySet=function(t,e,r){var i=this._firstPT=new bt(t,e,0,0,this._firstPT,2);i.e=r,i.setRatio=Kt,i.data=this},t._linkCSSP=function(t,e,r,i){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,i=!0),r?r._next=t:i||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=r),t},t._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&(e.r=t[e.p]),e=e._next},t._kill=function(t){var e,r,i,n=t;if(t.autoAlpha||t.alpha){for(r in n={},t)n[r]=t[r];n.opacity=1,n.autoAlpha&&(n.visibility=1)}for(t.className&&(e=this._classNamePT)&&((i=e.xfirst)&&i._prev?this._linkCSSP(i._prev,e._next,i._prev._prev):i===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,i._prev),this._classNamePT=null),e=this._firstPT;e;)e.plugin&&e.plugin!==r&&e.plugin._kill&&(e.plugin._kill(t),r=e.plugin),e=e._next;return ee.l.prototype._kill.call(this,n)};var te=function(t,e,r){var i,n,a,o;if(t.slice)for(n=t.length;-1<--n;)te(t[n],e,r);else for(n=(i=t.childNodes).length;-1<--n;)o=(a=i[n]).type,a.style&&(e.push(y(a)),r&&r.push(a)),1!==o&&9!==o&&11!==o||!a.childNodes.length||te(a,e,r)};return $.cascadeTo=function(t,e,r){var i,n,a,o,s=ee.n.to(t,e,r),l=[s],p=[],c=[],u=[],h=ee.n._internals.reservedProps;for(t=s._targets||s.target,te(t,p,u),s.render(e,!0,!0),te(t,c),s.render(0,!0,!0),s._enabled(!0),i=u.length;-1<--i;)if((n=x(u[i],p[i],c[i])).firstMPT){for(a in n=n.difs,r)h[a]&&(n[a]=r[a]);for(a in o={},n)o[a]=p[i][a];l.push(ee.n.fromTo(u[i],e,o,n))}return l},ee.l.activate([$]),$},!0);var i=ee.o.CSSPlugin},function(t,e,r){var i=r(2),n=r(25),a="".split;t.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==n(t)?a.call(t,""):Object(t)}:Object},function(t,e,r){var i=r(3),n=r(83),a=r(32),o="__core-js_shared__",s=i[o]||n(o,{});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){var r=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+i).toString(36)}},function(t,e){t.exports={}},function(t,e,r){function i(s){return function(t,e,r){var i,n=l(t),a=p(n.length),o=c(r,a);if(s&&e!=e){for(;o<a;)if((i=n[o++])!=i)return!0}else for(;o<a;o++)if((s||o in n)&&n[o]===e)return s||o||0;return!s&&-1}}var l=r(19),p=r(9),c=r(34);t.exports={includes:i(!0),indexOf:i(!1)}},function(t,e,r){function i(t,e){var r=s[o(t)];return r==p||r!=l&&("function"==typeof e?n(e):!!e)}var n=r(2),a=/#|\.prototype\./,o=i.normalize=function(t){return String(t).replace(a,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",p=i.POLYFILL="P";t.exports=i},function(t,e,r){var i=r(108),n=r(85);t.exports=Object.keys||function(t){return i(t,n)}},function(t,e,r){var i=r(4),n=r(41),a=r(8)("species");t.exports=function(t,e){var r;return n(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!n(r.prototype)?i(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var i=r(2);t.exports=!i(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,e,r){function h(t,e){this.stopped=t,this.result=e}var d=r(5),f=r(88),m=r(9),g=r(36),v=r(61),y=r(115);(t.exports=function(t,e,r,i,n){var a,o,s,l,p,c,u=g(e,r,i?2:1);if(n)a=t;else{if("function"!=typeof(o=v(t)))throw TypeError("Target is not iterable");if(f(o)){for(s=0,l=m(t.length);s<l;s++)if((p=i?u(d(c=t[s])[0],c[1]):u(t[s]))&&p instanceof h)return p;return new h(!1)}a=o.call(t)}for(;!(c=a.next()).done;)if((p=y(a,u,c.value,i))&&p instanceof h)return p;return new h(!1)}).stop=function(t){return new h(!0,t)}},function(t,e){t.exports={}},function(t,e,r){var i=r(62),n=r(60),a=r(8)("iterator");t.exports=function(t){if(null!=t)return t[a]||t["@@iterator"]||n[i(t)]}},function(t,e,r){var n=r(25),a=r(8)("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),a))?r:o?n(e):"Object"==(i=n(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,r){var i=r(2),n=r(8)("species");t.exports=function(e){return!i(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(t,e,r){"use strict";var i=r(5);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,r){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!i.call({1:2},1);e.f=a?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},function(t,e,r){var i=r(51),n=r(52),a=i("keys");t.exports=function(t){return a[t]||(a[t]=n(t))}},function(t,e,r){"use strict";var i=r(32),n=r(3),a=r(2);t.exports=i||!a(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n[t]})},function(t,e,r){var n=r(8)("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){a=!0}};o[n]=function(){return this},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!a)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},function(t,e,r){function i(p){return function(t,e,r,i){c(e);var n=u(t),a=h(n),o=d(n.length),s=p?o-1:0,l=p?-1:1;if(r<2)for(;;){if(s in a){i=a[s],s+=l;break}if(s+=l,p?s<0:o<=s)throw TypeError("Reduce of empty array with no initial value")}for(;p?0<=s:s<o;s+=l)s in a&&(i=e(i,a[s],s,n));return i}}var c=r(21),u=r(11),h=r(50),d=r(9);t.exports={left:i(!1),right:i(!0)}},function(t,e,r){"use strict";var i=r(19),n=r(37),a=r(60),o=r(20),s=r(91),l="Array Iterator",p=o.set,c=o.getterFor(l);t.exports=s(Array,"Array",function(t,e){p(this,{type:l,target:i(t),index:0,kind:e})},function(){var t=c(this),e=t.target,r=t.kind,i=t.index++;return!e||i>=e.length?{value:t.target=void 0,done:!0}:"keys"==r?{value:i,done:!1}:"values"==r?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}},"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},function(t,e,r){function i(s){return function(t,e){var r,i,n=String(p(t)),a=l(e),o=n.length;return a<0||o<=a?s?"":void 0:(r=n.charCodeAt(a))<55296||56319<r||a+1===o||(i=n.charCodeAt(a+1))<56320||57343<i?s?n.charAt(a):r:s?n.slice(a,a+2):i-56320+(r-55296<<10)+65536}}var l=r(24),p=r(15);t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,r){"use strict";var u=r(14),h=r(17),d=r(2),f=r(8),m=r(73),g=f("species"),v=!d(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),y=!d(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]});t.exports=function(r,t,e,i){var n=f(r),a=!d(function(){var t={};return t[n]=function(){return 7},7!=""[r](t)}),o=a&&!d(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},"split"===r&&(e.constructor={},e.constructor[g]=function(){return e}),e[n](""),!t});if(!a||!o||"replace"===r&&!v||"split"===r&&!y){var s=/./[n],l=e(n,""[r],function(t,e,r,i,n){return e.exec===m?a&&!n?{done:!0,value:s.call(e,r,i)}:{done:!0,value:t.call(r,e,i)}:{done:!1}}),p=l[0],c=l[1];h(String.prototype,r,p),h(RegExp.prototype,n,2==t?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)}),i&&u(RegExp.prototype[n],"sham",!0)}}},function(t,e,r){"use strict";var i,n,o=r(64),s=RegExp.prototype.exec,l=String.prototype.replace,a=s,p=(i=/a/,n=/b*/g,s.call(i,"a"),s.call(n,"a"),0!==i.lastIndex||0!==n.lastIndex),c=void 0!==/()??/.exec("")[1];(p||c)&&(a=function(t){var e,r,i,n,a=this;return c&&(r=new RegExp("^"+a.source+"$(?!\\s)",o.call(a))),p&&(e=a.lastIndex),i=s.call(a,t),p&&i&&(a.lastIndex=a.global?i.index+i[0].length:e),c&&i&&1<i.length&&l.call(i[0],r,function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(i[n]=void 0)}),i}),t.exports=a},function(t,e,r){"use strict";var i=r(71).charAt;t.exports=function(t,e,r){return e+(r?i(t,e).length:1)}},function(t,e,r){var n=r(25),a=r(73);t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var i=r.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(t,e)}},function(t,e,r){var i=r(33);t.exports=i("navigator","userAgent")||""},function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(t,e){var r=Math.expm1,i=Math.exp;t.exports=!r||22025.465794806718<r(10)||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:-1e-6<t&&t<1e-6?t+t*t/2:i(t)-1}:r},function(t,e,r){"use strict";var g=r(1),v=r(3),y=r(55),x=r(17),b=r(42),_=r(59),w=r(38),S=r(4),T=r(2),P=r(68),k=r(27),I=r(99);t.exports=function(i,t,e,n,a){function r(t){var r=s[t];x(s,t,"add"==t?function(t){return r.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(a&&!S(t))&&r.call(this,0===t?0:t)}:"get"==t?function(t){return a&&!S(t)?void 0:r.call(this,0===t?0:t)}:"has"==t?function(t){return!(a&&!S(t))&&r.call(this,0===t?0:t)}:function(t,e){return r.call(this,0===t?0:t,e),this})}var o=v[i],s=o&&o.prototype,l=o,p=n?"set":"add",c={};if(y(i,"function"!=typeof o||!(a||s.forEach&&!T(function(){(new o).entries().next()}))))l=e.getConstructor(t,i,n,p),b.REQUIRED=!0;else if(y(i,!0)){var u=new l,h=u[p](a?{}:-0,1)!=u,d=T(function(){u.has(1)}),f=P(function(t){new o(t)}),m=!a&&T(function(){for(var t=new o,e=5;e--;)t[p](e,e);return!t.has(-0)});f||(((l=t(function(t,e){w(t,l,i);var r=I(new o,t,l);return null!=e&&_(e,r[p],r,n),r})).prototype=s).constructor=l),(d||m)&&(r("delete"),r("has"),n&&r("get")),(m||h)&&r(p),a&&s.clear&&delete s.clear}return c[i]=l,g({global:!0,forced:l!=o},c),k(l,i),a||e.setStrong(l,i,n),l}},function(t,e,r){"use strict";function i(t,e,r){var i,n,a,o=new Array(r),s=8*r-e-1,l=(1<<s)-1,p=l>>1,c=23===e?V(2,-24)-V(2,-77):0,u=t<0||0===t&&1/t<0?1:0,h=0;for((t=$(t))!=t||t===1/0?(n=t!=t?1:0,i=l):(i=H(z(t)/G),t*(a=V(2,-i))<1&&(i--,a*=2),2<=(t+=1<=i+p?c/a:c*V(2,1-p))*a&&(i++,a/=2),l<=i+p?(n=0,i=l):1<=i+p?(n=(t*a-1)*V(2,e),i+=p):(n=t*V(2,p-1)*V(2,e),i=0));8<=e;o[h++]=255&n,n/=256,e-=8);for(i=i<<e|n,s+=e;0<s;o[h++]=255&i,i/=256,s-=8);return o[--h]|=128*u,o}function n(t,e){var r,i=t.length,n=8*i-e-1,a=(1<<n)-1,o=a>>1,s=n-7,l=i-1,p=t[l--],c=127&p;for(p>>=7;0<s;c=256*c+t[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=e;0<s;r=256*r+t[l],l--,s-=8);if(0===c)c=1-o;else{if(c===a)return r?NaN:p?-1/0:1/0;r+=V(2,e),c-=o}return(p?-1:1)*r*V(2,c-e)}function a(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function o(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function l(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function p(t){return i(t,23,4)}function c(t){return i(t,52,8)}function u(t,e){P(t[D],e,{get:function(){return E(this)[e]}})}function h(t,e,r,i){var n=S(+r),a=E(t);if(n+e>a.byteLength)throw j(F);var o=E(a.buffer).bytes,s=n+a.byteOffset,l=o.slice(s,s+e);return i?l:l.reverse()}function d(t,e,r,i,n,a){var o=S(+r),s=E(t);if(o+e>s.byteLength)throw j(F);for(var l=E(s.buffer).bytes,p=o+s.byteOffset,c=i(+n),u=0;u<e;u++)l[p+u]=c[a?u:e-u-1]}var f=r(3),m=r(7),g=r(6).NATIVE_ARRAY_BUFFER,v=r(14),y=r(48),x=r(2),b=r(38),_=r(24),w=r(9),S=r(137),T=r(40).f,P=r(10).f,k=r(90),I=r(27),A=r(20),E=A.get,C=A.set,O="ArrayBuffer",M="DataView",D="prototype",F="Wrong index",R=f[O],N=R,L=f[M],B=f.Math,j=f.RangeError,$=B.abs,V=B.pow,H=B.floor,z=B.log,G=B.LN2;if(g){if(!x(function(){R(1)})||!x(function(){new R(-1)})||x(function(){return new R,new R(1.5),new R(NaN),R.name!=O})){for(var Y,X=(N=function(t){return b(this,N),new R(S(t))})[D]=R[D],W=T(R),U=0;W.length>U;)(Y=W[U++])in N||v(N,Y,R[Y]);X.constructor=N}var q=new L(new N(2)),J=L[D].setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||y(L[D],{setInt8:function(t,e){J.call(this,t,e<<24>>24)},setUint8:function(t,e){J.call(this,t,e<<24>>24)}},{unsafe:!0})}else N=function(t){b(this,N,O);var e=S(t);C(this,{bytes:k.call(new Array(e),0),byteLength:e}),m||(this.byteLength=e)},L=function(t,e,r){b(this,L,M),b(t,N,M);var i=E(t).byteLength,n=_(e);if(n<0||i<n)throw j("Wrong offset");if(i<n+(r=void 0===r?i-n:w(r)))throw j("Wrong length");C(this,{buffer:t,byteLength:r,byteOffset:n}),m||(this.buffer=t,this.byteLength=r,this.byteOffset=n)},m&&(u(N,"byteLength"),u(L,"buffer"),u(L,"byteLength"),u(L,"byteOffset")),y(L[D],{getInt8:function(t){return h(this,1,t)[0]<<24>>24},getUint8:function(t){return h(this,1,t)[0]},getInt16:function(t,e){var r=h(this,2,t,1<arguments.length?e:void 0);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t,e){var r=h(this,2,t,1<arguments.length?e:void 0);return r[1]<<8|r[0]},getInt32:function(t,e){return a(h(this,4,t,1<arguments.length?e:void 0))},getUint32:function(t,e){return a(h(this,4,t,1<arguments.length?e:void 0))>>>0},getFloat32:function(t,e){return n(h(this,4,t,1<arguments.length?e:void 0),23)},getFloat64:function(t,e){return n(h(this,8,t,1<arguments.length?e:void 0),52)},setInt8:function(t,e){d(this,1,t,o,e)},setUint8:function(t,e){d(this,1,t,o,e)},setInt16:function(t,e,r){d(this,2,t,s,e,2<arguments.length?r:void 0)},setUint16:function(t,e,r){d(this,2,t,s,e,2<arguments.length?r:void 0)},setInt32:function(t,e,r){d(this,4,t,l,e,2<arguments.length?r:void 0)},setUint32:function(t,e,r){d(this,4,t,l,e,2<arguments.length?r:void 0)},setFloat32:function(t,e,r){d(this,4,t,p,e,2<arguments.length?r:void 0)},setFloat64:function(t,e,r){d(this,8,t,c,e,2<arguments.length?r:void 0)}});I(N,O),I(L,M),e[O]=N,e[M]=L},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var i=r(3),n=r(4),a=i.document,o=n(a)&&n(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},function(t,e,r){var i=r(3),n=r(14);t.exports=function(e,r){try{n(i,e,r)}catch(t){i[e]=r}return r}},function(t,e,r){var i=r(33),n=r(40),a=r(86),o=r(5);t.exports=i("Reflect","ownKeys")||function(t){var e=n.f(o(t)),r=a.f;return r?e.concat(r(t)):e}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var i=r(7),o=r(10),s=r(5),l=r(56);t.exports=i?Object.defineProperties:function(t,e){s(t);for(var r,i=l(e),n=i.length,a=0;a<n;)o.f(t,r=i[a++],e[r]);return t}},function(t,e,r){var i=r(8),n=r(60),a=i("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[a]===t)}},function(t,e,r){var i=r(2);t.exports=!i(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,r){"use strict";var p=r(11),c=r(34),u=r(9);t.exports=function(t,e,r){for(var i=p(this),n=u(i.length),a=arguments.length,o=c(1<a?e:void 0,n),s=2<a?r:void 0,l=void 0===s?n:c(s,n);o<l;)i[o++]=t;return i}},function(t,e,r){"use strict";function v(){return this}var y=r(1),x=r(92),b=r(28),_=r(45),w=r(27),S=r(14),T=r(17),i=r(8),P=r(32),k=r(60),n=r(124),I=n.IteratorPrototype,A=n.BUGGY_SAFARI_ITERATORS,E=i("iterator"),C="values",O="entries";t.exports=function(t,e,r,i,n,a,o){x(r,e,i);function s(t){if(t===n&&m)return m;if(!A&&t in d)return d[t];switch(t){case"keys":case C:case O:return function(){return new r(this,t)}}return function(){return new r(this)}}var l,p,c,u=e+" Iterator",h=!1,d=t.prototype,f=d[E]||d["@@iterator"]||n&&d[n],m=!A&&f||s(n),g="Array"==e&&d.entries||f;if(g&&(l=b(g.call(new t)),I!==Object.prototype&&l.next&&(P||b(l)===I||(_?_(l,I):"function"!=typeof l[E]&&S(l,E,v)),w(l,u,!0,!0),P&&(k[u]=v))),n==C&&f&&f.name!==C&&(h=!0,m=function(){return f.call(this)}),P&&!o||d[E]===m||S(d,E,m),k[e]=m,n)if(p={values:s(C),keys:a?m:s("keys"),entries:s(O)},o)for(c in p)!A&&!h&&c in d||T(d,c,p[c]);else y({target:e,proto:!0,forced:A||h},p);return p}},function(t,e,r){"use strict";function n(){return this}var a=r(124).IteratorPrototype,o=r(35),s=r(39),l=r(27),p=r(60);t.exports=function(t,e,r){var i=e+" Iterator";return t.prototype=o(a,{next:s(1,r)}),l(t,i,!1,!0),p[i]=n,t}},function(t,e,r){var i=r(94);t.exports=function(t){if(i(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,r){var i=r(4),n=r(25),a=r(8)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==n(t))}},function(t,e,r){var i=r(8)("match");t.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[i]=!1,"/./"[e](r)}catch(t){}}return!1}},function(t,e,r){function i(p){return function(t,e,r){var i,n,a=String(h(t)),o=a.length,s=void 0===r?" ":String(r),l=c(e);return l<=o||""==s?a:(i=l-o,(n=u.call(s,d(i/s.length))).length>i&&(n=n.slice(0,i)),p?a+n:n+a)}}var c=r(9),u=r(97),h=r(15),d=Math.ceil;t.exports={start:i(!1),end:i(!0)}},function(t,e,r){"use strict";var n=r(24),a=r(15);t.exports="".repeat||function(t){var e=String(a(this)),r="",i=n(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;0<i;(i>>>=1)&&(e+=e))1&i&&(r+=e);return r}},function(t,e,r){var i=r(2),n=r(77);t.exports=function(t){return i(function(){return!!n[t]()||"​᠎"!="​᠎"[t]()||n[t].name!==t})}},function(t,e,r){var a=r(4),o=r(45);t.exports=function(t,e,r){var i,n;return o&&"function"==typeof(i=e.constructor)&&i!==r&&a(n=i.prototype)&&n!==r.prototype&&o(t,n),t}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,r){function i(t){if(S.hasOwnProperty(t)){var e=S[t];delete S[t],e()}}function n(t){return function(){i(t)}}function a(t){i(t.data)}function o(t){c.postMessage(t+"",g.protocol+"//"+g.host)}var s,l,p,c=r(3),u=r(2),h=r(25),d=r(36),f=r(110),m=r(82),g=c.location,v=c.setImmediate,y=c.clearImmediate,x=c.process,b=c.MessageChannel,_=c.Dispatch,w=0,S={},T="onreadystatechange";v&&y||(v=function(t){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);return S[++w]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},s(w),w},y=function(t){delete S[t]},"process"==h(x)?s=function(t){x.nextTick(n(t))}:_&&_.now?s=function(t){_.now(n(t))}:b?(p=(l=new b).port2,l.port1.onmessage=a,s=d(p.postMessage,p,1)):!c.addEventListener||"function"!=typeof postMessage||c.importScripts||u(o)?s=T in m("script")?function(t){f.appendChild(m("script"))[T]=function(){f.removeChild(this),i(t)}}:function(t){setTimeout(n(t),0)}:(s=o,c.addEventListener("message",a,!1))),t.exports={set:v,clear:y}},function(t,e,r){var i=r(3),n=r(2),a=r(68),o=r(6).NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;t.exports=!o||!n(function(){l(1)})||!n(function(){new l(-1)})||!a(function(t){new l,new l(null),new l(1.5),new l(t)},!0)||n(function(){return 1!==new l(new s(2),1,void 0).length})},function(t,e,r){"use strict";var i,n,a,o,s,l;Object.defineProperty(e,"__esModule",{value:!0}),(n=i||(i={})).prx1=prx,n.prxy1=prxy,e.proto=window.proto,e.prx=i.prx1,e.prxy=i.prxy1,o=a||(a={}),"undefined"!=typeof pff&&(o.pff1=pff),e.pff=a.pff1,l=s||(s={}),"undefined"!=typeof plupload&&(l.plupload1=plupload),"undefined"!=typeof mOxie&&(l.moxie1=mOxie),e.plupload=s.plupload1,e.moxie=s.moxie1},function(t,e,r){var i=r(7),n=r(2),a=r(82);t.exports=!i&&!n(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var i=r(51);t.exports=i("native-function-to-string",Function.toString)},function(t,e,r){var i=r(3),n=r(105),a=i.WeakMap;t.exports="function"==typeof a&&/native code/.test(n.call(a))},function(t,e,r){var s=r(12),l=r(84),p=r(16),c=r(10);t.exports=function(t,e){for(var r=l(e),i=c.f,n=p.f,a=0;a<r.length;a++){var o=r[a];s(t,o)||i(t,o,n(e,o))}}},function(t,e,r){var o=r(12),s=r(19),l=r(54).indexOf,p=r(53);t.exports=function(t,e){var r,i=s(t),n=0,a=[];for(r in i)!o(p,r)&&o(i,r)&&a.push(r);for(;e.length>n;)o(i,r=e[n++])&&(~l(a,r)||a.push(r));return a}},function(t,e,r){var i=r(2);t.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())})},function(t,e,r){var i=r(33);t.exports=i("document","documentElement")},function(t,e,r){var i=r(19),n=r(40).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return o&&"[object Window]"==a.call(t)?function(t){try{return n(t)}catch(t){return o.slice()}}(t):n(i(t))}},function(t,e,r){e.f=r(8)},function(t,e,r){"use strict";var h=r(7),i=r(2),d=r(56),f=r(86),m=r(65),g=r(11),v=r(50),n=Object.assign;t.exports=!n||i(function(){var t={},e={},r=Symbol(),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach(function(t){e[t]=t}),7!=n({},t)[r]||d(n({},e)).join("")!=i})?function(t,e){for(var r=g(t),i=arguments.length,n=1,a=f.f,o=m.f;n<i;)for(var s,l=v(arguments[n++]),p=a?d(l).concat(a(l)):d(l),c=p.length,u=0;u<c;)s=p[u++],h&&!o.call(l,s)||(r[s]=l[s]);return r}:n},function(t,e,r){function i(s){return function(t){for(var e,r=c(t),i=p(r),n=i.length,a=0,o=[];a<n;)e=i[a++],l&&!u.call(r,e)||o.push(s?[e,r[e]]:r[e]);return o}}var l=r(7),p=r(56),c=r(19),u=r(65).f;t.exports={entries:i(!0),values:i(!1)}},function(t,e,r){var a=r(5);t.exports=function(e,t,r,i){try{return i?t(a(r)[0],r[1]):t(r)}catch(t){var n=e.return;throw void 0!==n&&a(n.call(e)),t}}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,r){var i=r(4);t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,r){"use strict";var a=r(21),o=r(4),s=[].slice,l={};t.exports=Function.bind||function(e){var r=a(this),i=s.call(arguments,1),n=function(){var t=i.concat(s.call(arguments));return this instanceof n?function(t,e,r){if(!(e in l)){for(var i=[],n=0;n<e;n++)i[n]="a["+n+"]";l[e]=Function("C,a","return new C("+i.join(",")+")")}return l[e](t,r)}(r,t.length,t):r.apply(e,t)};return o(r.prototype)&&(n.prototype=r.prototype),n}},function(t,e,r){"use strict";var f=r(36),m=r(11),g=r(115),v=r(88),y=r(9),x=r(43),b=r(61);t.exports=function(t,e,r){var i,n,a,o,s=m(t),l="function"==typeof this?this:Array,p=arguments.length,c=1<p?e:void 0,u=void 0!==c,h=0,d=b(s);if(u&&(c=f(c,2<p?r:void 0,2)),null==d||l==Array&&v(d))for(n=new l(i=y(s.length));h<i;h++)x(n,h,u?c(s[h],h):s[h]);else for(o=d.call(s),n=new l;!(a=o.next()).done;h++)x(n,h,u?g(o,c,[a.value,h],!0):a.value);return n.length=h,n}},function(t,e,r){"use strict";var c=r(11),u=r(34),h=r(9),d=Math.min;t.exports=[].copyWithin||function(t,e,r){var i=c(this),n=h(i.length),a=u(t,n),o=u(e,n),s=2<arguments.length?r:void 0,l=d((void 0===s?n:u(s,n))-o,n-a),p=1;for(o<a&&a<o+l&&(p=-1,o+=l-1,a+=l-1);0<l--;)o in i?i[a]=i[o]:delete i[a],a+=p,o+=p;return i}},function(t,e,r){"use strict";var h=r(41),d=r(9),f=r(36),m=function(t,e,r,i,n,a,o,s){for(var l,p=n,c=0,u=!!o&&f(o,s,3);c<i;){if(c in r){if(l=u?u(r[c],c,e):r[c],0<a&&h(l))p=m(t,e,l,d(l.length),p,a-1)-1;else{if(9007199254740991<=p)throw TypeError("Exceed the acceptable array length");t[p]=l}p++}c++}return p};t.exports=m},function(t,e,r){"use strict";var i=r(13).forEach,n=r(29);t.exports=n("forEach")?function(t,e){return i(this,t,1<arguments.length?e:void 0)}:[].forEach},function(t,e,r){"use strict";var a=r(19),o=r(24),s=r(9),i=r(29),l=Math.min,p=[].lastIndexOf,c=!!p&&1/[1].lastIndexOf(1,-0)<0,n=i("lastIndexOf");t.exports=c||n?function(t,e){if(c)return p.apply(this,arguments)||0;var r=a(this),i=s(r.length),n=i-1;for(1<arguments.length&&(n=l(n,o(e))),n<0&&(n=i+n);0<=n;n--)if(n in r&&r[n]===t)return n||0;return-1}:p},function(t,e,r){"use strict";var i,n,a,o=r(28),s=r(14),l=r(12),p=r(8),c=r(32),u=p("iterator"),h=!1;[].keys&&("next"in(a=[].keys())?(n=o(o(a)))!==Object.prototype&&(i=n):h=!0),null==i&&(i={}),c||l(i,u)||s(i,u,function(){return this}),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){var i=r(76);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i)},function(t,e,r){"use strict";var n=r(71).charAt,i=r(20),a=r(91),o="String Iterator",s=i.set,l=i.getterFor(o);a(String,"String",function(t){s(this,{type:o,string:String(t),index:0})},function(){var t,e=l(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})})},function(t,e,r){var i=r(3),n=r(47).trim,a=r(77),o=i.parseInt,s=/^[+-]?0[Xx]/,l=8!==o(a+"08")||22!==o(a+"0x16");t.exports=l?function(t,e){var r=n(String(t));return o(r,e>>>0||(s.test(r)?16:10))}:o},function(t,e,r){var i=r(3),n=r(47).trim,a=r(77),o=i.parseFloat,s=1/o(a+"-0")!=-1/0;t.exports=s?function(t){var e=n(String(t)),r=o(e);return 0===r&&"-"==e.charAt(0)?-0:r}:o},function(t,e,r){var i=r(4),n=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&n(t)===t}},function(t,e,r){var i=r(25);t.exports=function(t){if("number"!=typeof t&&"Number"!=i(t))throw TypeError("Incorrect invocation");return+t}},function(t,e){var r=Math.log;t.exports=Math.log1p||function(t){return-1e-8<(t=+t)&&t<1e-8?t-t*t/2:r(1+t)}},function(t,e,r){var i,n,a,o,s,l,p,c=r(3),u=r(16).f,h=r(25),d=r(101).set,f=r(76),m=c.MutationObserver||c.WebKitMutationObserver,g=c.process,v=c.Promise,y="process"==h(g),x=u(c,"queueMicrotask"),b=x&&x.value;b||(i=function(){var t,e;for(y&&(t=g.domain)&&t.exit();n;){e=n.fn,n=n.next;try{e()}catch(t){throw n?o():a=void 0,t}}a=void 0,t&&t.enter()},o=y?function(){g.nextTick(i)}:m&&!/(iphone|ipod|ipad).*applewebkit/i.test(f)?(s=!0,l=document.createTextNode(""),new m(i).observe(l,{characterData:!0}),function(){l.data=s=!s}):v&&v.resolve?(p=v.resolve(void 0),function(){p.then(i)}):function(){d.call(c,i)}),t.exports=b||function(t){var e={fn:t,next:void 0};a&&(a.next=e),n||(n=e,o()),a=e}},function(t,e,r){var i=r(5),n=r(4),a=r(134);t.exports=function(t,e){if(i(t),n(e)&&e.constructor===t)return e;var r=a.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){"use strict";function i(t){var r,i;this.promise=new t(function(t,e){if(void 0!==r||void 0!==i)throw TypeError("Bad Promise constructor");r=t,i=e}),this.resolve=n(r),this.reject=n(i)}var n=r(21);t.exports.f=function(t){return new i(t)}},function(t,e,r){"use strict";var p=r(10).f,c=r(35),u=r(48),h=r(36),d=r(38),f=r(59),o=r(91),s=r(46),m=r(7),g=r(42).fastKey,i=r(20),v=i.set,y=i.getterFor;t.exports={getConstructor:function(t,r,i,n){function a(t,e,r){var i,n,a=s(t),o=l(t,e);return o?o.value=r:(a.last=o={index:n=g(e,!0),key:e,value:r,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=o),i&&(i.next=o),m?a.size++:t.size++,"F"!==n&&(a.index[n]=o)),t}var o=t(function(t,e){d(t,o,r),v(t,{type:r,index:c(null),first:void 0,last:void 0,size:0}),m||(t.size=0),null!=e&&f(e,t[n],t,i)}),s=y(r),l=function(t,e){var r,i=s(t),n=g(e);if("F"!==n)return i.index[n];for(r=i.first;r;r=r.next)if(r.key==e)return r};return u(o.prototype,{clear:function(){for(var t=s(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,m?t.size=0:this.size=0},delete:function(t){var e=s(this),r=l(this,t);if(r){var i=r.next,n=r.previous;delete e.index[r.index],r.removed=!0,n&&(n.next=i),i&&(i.previous=n),e.first==r&&(e.first=i),e.last==r&&(e.last=n),m?e.size--:this.size--}return!!r},forEach:function(t,e){for(var r,i=s(this),n=h(t,1<arguments.length?e:void 0,3);r=r?r.next:i.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!l(this,t)}}),u(o.prototype,i?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),m&&p(o.prototype,"size",{get:function(){return s(this).size}}),o},setStrong:function(t,e,r){var i=e+" Iterator",n=y(e),a=y(i);o(t,e,function(t,e){v(this,{type:i,target:t,state:n(t),kind:e,last:void 0})},function(){for(var t=a(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:t.target=void 0,done:!0}},r?"entries":"values",!r,!0),s(e)}}},function(t,e,r){"use strict";function l(t){return t.frozen||(t.frozen=new x)}function i(t,e){return o(t.entries,function(t){return t[0]===e})}var p=r(48),c=r(42).getWeakData,u=r(5),h=r(4),d=r(38),f=r(59),n=r(13),m=r(12),a=r(20),g=a.set,v=a.getterFor,o=n.find,s=n.findIndex,y=0,x=function(){this.entries=[]};x.prototype={get:function(t){var e=i(this,t);if(e)return e[1]},has:function(t){return!!i(this,t)},set:function(t,e){var r=i(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(e){var t=s(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},t.exports={getConstructor:function(t,r,i,n){function a(t,e,r){var i=s(t),n=c(u(e),!0);return!0===n?l(i).set(e,r):n[i.id]=r,t}var o=t(function(t,e){d(t,o,r),g(t,{type:r,id:y++,frozen:void 0}),null!=e&&f(e,t[n],t,i)}),s=v(r);return p(o.prototype,{delete:function(t){var e=s(this);if(!h(t))return!1;var r=c(t);return!0===r?l(e).delete(t):r&&m(r,e.id)&&delete r[e.id]},has:function(t){var e=s(this);if(!h(t))return!1;var r=c(t);return!0===r?l(e).has(t):r&&m(r,e.id)}}),p(o.prototype,i?{get:function(t){var e=s(this);if(h(t)){var r=c(t);return!0===r?l(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}}},function(t,e,r){var i=r(24),n=r(9);t.exports=function(t){if(void 0===t)return 0;var e=i(t),r=n(e);if(e!==r)throw RangeError("Wrong length or index");return r}},function(t,e,r){var i=r(24);t.exports=function(t,e){var r=i(t);if(r<0||r%e)throw RangeError("Wrong offset");return r}},function(t,e,r){var d=r(11),f=r(9),m=r(61),g=r(88),v=r(36),y=r(6).aTypedArrayConstructor;t.exports=function(t,e,r){var i,n,a,o,s,l=d(t),p=arguments.length,c=1<p?e:void 0,u=void 0!==c,h=m(l);if(null!=h&&!g(h))for(s=h.call(l),l=[];!(o=s.next()).done;)l.push(o.value);for(u&&2<p&&(c=v(c,r,2)),n=f(l.length),a=new(y(this))(n),i=0;i<n;i++)a[i]=u?c(l[i],i):l[i];return a}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){var i=r(2),n=r(8),a=r(32),o=n("iterator");t.exports=!i(function(){var t=new URL("b?e=1","http://a"),e=t.searchParams;return t.pathname="c%20d",a&&!t.toJSON||!e.sort||"http://a/c%20d?e=1"!==t.href||"1"!==e.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash})},function(t,e,r){"use strict";r(70);function n(e){try{return decodeURIComponent(e)}catch(t){return e}}function o(t){var e,r=t.replace(C," "),i=4;try{return decodeURIComponent(r)}catch(t){for(;i;)r=r.replace((e=i--,O[e-1]||(O[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))),n);return r}}function i(t){return D[t]}function a(t){return encodeURIComponent(t).replace(M,i)}function c(t,e){if(e)for(var r,i,n=e.split("&"),a=0;a<n.length;)(r=n[a++]).length&&(i=r.split("="),t.push({key:o(i.shift()),value:o(i.join("="))}))}function u(t){this.entries.length=0,c(this.entries,t)}function p(t,e){if(t<e)throw TypeError("Not enough arguments")}var s=r(1),l=r(141),h=r(17),d=r(48),f=r(27),m=r(92),g=r(20),v=r(38),y=r(12),x=r(36),b=r(5),_=r(4),w=r(364),S=r(61),T=r(8)("iterator"),P="URLSearchParams",k=P+"Iterator",I=g.set,A=g.getterFor(P),E=g.getterFor(k),C=/\+/g,O=Array(4),M=/[!'()~]|%20/g,D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=m(function(t,e){I(this,{type:k,iterator:w(A(t).entries),kind:e})},"Iterator",function(){var t=E(this),e=t.kind,r=t.iterator.next(),i=r.value;return r.done||(r.value="keys"===e?i.key:"values"===e?i.value:[i.key,i.value]),r}),R=function(t){v(this,R,P);var e,r,i,n,a,o,s,l=0<arguments.length?t:void 0,p=[];if(I(this,{type:P,entries:p,updateURL:function(){},updateSearchParams:u}),void 0!==l)if(_(l))if("function"==typeof(e=S(l)))for(r=e.call(l);!(i=r.next()).done;){if((a=(n=w(b(i.value))).next()).done||(o=n.next()).done||!n.next().done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:o.value+""})}else for(s in l)y(l,s)&&p.push({key:s,value:l[s]+""});else c(p,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},N=R.prototype;d(N,{append:function(t,e){p(arguments.length,2);var r=A(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){p(arguments.length,1);for(var e=A(this),r=e.entries,i=t+"",n=0;n<r.length;)r[n].key===i?r.splice(n,1):n++;e.updateURL()},get:function(t){p(arguments.length,1);for(var e=A(this).entries,r=t+"",i=0;i<e.length;i++)if(e[i].key===r)return e[i].value;return null},getAll:function(t){p(arguments.length,1);for(var e=A(this).entries,r=t+"",i=[],n=0;n<e.length;n++)e[n].key===r&&i.push(e[n].value);return i},has:function(t){p(arguments.length,1);for(var e=A(this).entries,r=t+"",i=0;i<e.length;)if(e[i++].key===r)return!0;return!1},set:function(t,e){p(arguments.length,1);for(var r,i=A(this),n=i.entries,a=!1,o=t+"",s=e+"",l=0;l<n.length;l++)(r=n[l]).key===o&&(a?n.splice(l--,1):(a=!0,r.value=s));a||n.push({key:o,value:s}),i.updateURL()},sort:function(){var t,e,r,i=A(this),n=i.entries,a=n.slice();for(r=n.length=0;r<a.length;r++){for(t=a[r],e=0;e<r;e++)if(n[e].key>t.key){n.splice(e,0,t);break}e===r&&n.push(t)}i.updateURL()},forEach:function(t,e){for(var r,i=A(this).entries,n=x(t,1<arguments.length?e:void 0,3),a=0;a<i.length;)n((r=i[a++]).value,r.key,this)},keys:function(){return new F(this,"keys")},values:function(){return new F(this,"values")},entries:function(){return new F(this,"entries")}},{enumerable:!0}),h(N,T,N.entries),h(N,"toString",function(){for(var t,e=A(this).entries,r=[],i=0;i<e.length;)t=e[i++],r.push(a(t.key)+"="+a(t.value));return r.join("&")},{enumerable:!0}),f(R,P),s({global:!0,forced:!l},{URLSearchParams:R}),t.exports={URLSearchParams:R,getState:A}},function(t,e){prx.utils=window.prx.utils||{}},function(t,e,r){"use strict";var i,n;Object.defineProperty(e,"__esModule",{value:!0}),(n=i||(i={})).prx1=prx,n.prxy1=prxy,e.prx=i.prx1,e.prxy=i.prxy1},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=(n.tgIsHTMLElement=function(t){return void 0===t.length},n.tgIsElement=function(t){return void 0===t.length&&void 0===t.children},n.tgIsJQuery=function(t){return void 0!==t.ajaxError},n.getElementsArrayFromElement=function(t){if(null==t)return[];var e=[];if(n.tgIsHTMLElement(t))e.push(t);else if(n.tgIsJQuery(t))e=t.get();else for(var r=0,i=t.length;r<i;++r)e.push(t[r]);return e},n.getScrollbarWH=function(){var t=document.createElement("div");t.style.height="1px",t.style.overflow="scroll";var e=document.createElement("div");e.style.height="2px",t.appendChild(e),document.body.appendChild(t);var r=t.offsetWidth,i=e.offsetWidth;return $(t).remove(),r-i},n);function n(){}e.SuperDomHelper=i},function(t,e,r){"use strict";var i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),r(147),r(366);var a=i(r(367)),o=n(r(369));window.jsondiffpatch=a.create({textDiff:{minLength:99999}}),window.proto=new o.default,r(370),r(372),r(458),window.BezierEasing=r(373),window.IScroll=r(374),r(375),window.Hammer=r(376),window.propagating=r(377),r(378),r(379),r(380),window.lottie=r(381),window.DOMPurify=r(382),r(383),window.WebFont=r(385),r(386),r(387),r(388),r(389),r(390),r(391),r(392),r(393),r(394),r(143),r(395),r(397),r(398),r(399),r(400),r(401),r(402),r(403),r(404),r(405),r(406),r(407),r(408),r(409),r(410),r(411),r(412),r(413),r(414),r(415),r(416),r(417),r(418),r(419),r(420),r(421),r(422),r(423),r(424),r(425),r(426),r(427),r(428),r(429),r(430),r(431),r(432),r(433),r(434),r(435),r(436),r(437),r(143),r(438),r(439),r(440),r(441),r(442),r(443),r(444),r(445),r(448),r(450),r(453),r(454),r(455),r(456),r(457)},function(t,e,r){r(148),r(356),t.exports=r(44)},function(t,e,r){r(149),r(150),r(151),r(152),r(153),r(154),r(155),r(156),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(186),r(187),r(188),r(189),r(190),r(191),r(192),r(193),r(194),r(195),r(196),r(197),r(198),r(199),r(200),r(201),r(202),r(203),r(204),r(205),r(206),r(207),r(208),r(209),r(210),r(211),r(212),r(213),r(214),r(215),r(216),r(217),r(218),r(219),r(220),r(70),r(221),r(222),r(223),r(224),r(225),r(226),r(227),r(228),r(229),r(230),r(231),r(232),r(233),r(234),r(235),r(236),r(237),r(126),r(238),r(239),r(240),r(241),r(242),r(243),r(244),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(253),r(254),r(255),r(256),r(257),r(258),r(259),r(261),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(272),r(273),r(274),r(275),r(276),r(277),r(279),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(293),r(294),r(296),r(297),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(335),r(336),r(337),r(338),r(339),r(340),r(341),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),t.exports=r(44)},function(t,e,r){"use strict";function n(t,e){var r=et[t]=_(U[z]);return Y(r,{type:H,tag:t,description:e}),c||(r.description=e),r}function i(e,t){g(e);var r=y(t),i=w(r).concat(ht(r));return $(i,function(t){c&&!ut.call(r,t)||ct(e,t,r[t])}),e}function a(t,e){var r=y(t),i=x(e,!0);if(r!==W||!d(et,i)||d(rt,i)){var n=Q(r,i);return!n||!d(et,i)||d(r,V)&&r[V][i]||(n.enumerable=!0),n}}function o(t){var e=K(y(t)),r=[];return $(e,function(t){d(et,t)||d(D,t)||r.push(t)}),r}var s=r(1),l=r(3),p=r(32),c=r(7),u=r(109),h=r(2),d=r(12),f=r(41),m=r(4),g=r(5),v=r(11),y=r(19),x=r(26),b=r(39),_=r(35),w=r(56),S=r(40),T=r(111),P=r(86),k=r(16),I=r(10),A=r(65),E=r(14),C=r(17),O=r(51),M=r(66),D=r(53),F=r(52),R=r(8),N=r(112),L=r(18),B=r(27),j=r(20),$=r(13).forEach,V=M("hidden"),H="Symbol",z="prototype",G=R("toPrimitive"),Y=j.set,X=j.getterFor(H),W=Object[z],U=l.Symbol,q=l.JSON,J=q&&q.stringify,Q=k.f,Z=I.f,K=T.f,tt=A.f,et=O("symbols"),rt=O("op-symbols"),it=O("string-to-symbol-registry"),nt=O("symbol-to-string-registry"),at=O("wks"),ot=l.QObject,st=!ot||!ot[z]||!ot[z].findChild,lt=c&&h(function(){return 7!=_(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?function(t,e,r){var i=Q(W,e);i&&delete W[e],Z(t,e,r),i&&t!==W&&Z(W,e,i)}:Z,pt=u&&"symbol"==typeof U.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof U},ct=function(t,e,r){t===W&&ct(rt,e,r),g(t);var i=x(e,!0);return g(r),d(et,i)?(r.enumerable?(d(t,V)&&t[V][i]&&(t[V][i]=!1),r=_(r,{enumerable:b(0,!1)})):(d(t,V)||Z(t,V,b(1,{})),t[V][i]=!0),lt(t,i,r)):Z(t,i,r)},ut=function(t){var e=x(t,!0),r=tt.call(this,e);return!(this===W&&d(et,e)&&!d(rt,e))&&(!(r||!d(this,e)||!d(et,e)||d(this,V)&&this[V][e])||r)},ht=function(t){var e=t===W,r=K(e?rt:y(t)),i=[];return $(r,function(t){!d(et,t)||e&&!d(W,t)||i.push(et[t])}),i};u||(C((U=function(t){if(this instanceof U)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==t?String(t):void 0,r=F(e),i=function(t){this===W&&i.call(rt,t),d(this,V)&&d(this[V],r)&&(this[V][r]=!1),lt(this,r,b(1,t))};return c&&st&&lt(W,r,{configurable:!0,set:i}),n(r,e)})[z],"toString",function(){return X(this).tag}),A.f=ut,I.f=ct,k.f=a,S.f=T.f=o,P.f=ht,c&&(Z(U[z],"description",{configurable:!0,get:function(){return X(this).description}}),p||C(W,"propertyIsEnumerable",ut,{unsafe:!0})),N.f=function(t){return n(R(t),t)}),s({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),$(w(at),function(t){L(t)}),s({target:H,stat:!0,forced:!u},{for:function(t){var e=String(t);if(d(it,e))return it[e];var r=U(e);return it[e]=r,nt[r]=e,r},keyFor:function(t){if(!pt(t))throw TypeError(t+" is not a symbol");if(d(nt,t))return nt[t]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),s({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?_(t):i(_(t),e)},defineProperty:ct,defineProperties:i,getOwnPropertyDescriptor:a}),s({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:o,getOwnPropertySymbols:ht}),s({target:"Object",stat:!0,forced:h(function(){P.f(1)})},{getOwnPropertySymbols:function(t){return P.f(v(t))}}),q&&s({target:"JSON",stat:!0,forced:!u||h(function(){var t=U();return"[null]"!=J([t])||"{}"!=J({a:t})||"{}"!=J(Object(t))})},{stringify:function(t){for(var e,r,i=[t],n=1;n<arguments.length;)i.push(arguments[n++]);if(r=e=i[1],(m(e)||void 0!==t)&&!pt(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!pt(e))return e}),i[1]=e,J.apply(q,i)}}),U[z][G]||E(U[z],G,U[z].valueOf),B(U,H),D[V]=!0},function(t,e,r){r(18)("asyncIterator")},function(t,e,r){"use strict";var i=r(1),n=r(7),a=r(3),o=r(12),s=r(4),l=r(10).f,p=r(107),c=a.Symbol;if(n&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var u={},h=function(t){var e=arguments.length<1||void 0===t?void 0:String(t),r=this instanceof h?new c(e):void 0===e?c():c(e);return""===e&&(u[r]=!0),r};p(h,c);var d=h.prototype=c.prototype;d.constructor=h;var f=d.toString,m="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;l(d,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=f.call(t);if(o(u,t))return"";var r=m?e.slice(7,-1):e.replace(g,"$1");return""===r?void 0:r}}),i({global:!0,forced:!0},{Symbol:h})}},function(t,e,r){r(18)("hasInstance")},function(t,e,r){r(18)("isConcatSpreadable")},function(t,e,r){r(18)("iterator")},function(t,e,r){r(18)("match")},function(t,e,r){r(18)("matchAll")},function(t,e,r){r(18)("replace")},function(t,e,r){r(18)("search")},function(t,e,r){r(18)("species")},function(t,e,r){r(18)("split")},function(t,e,r){r(18)("toPrimitive")},function(t,e,r){r(18)("toStringTag")},function(t,e,r){r(18)("unscopables")},function(t,e,r){var i=r(1),n=r(113);i({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n})},function(t,e,r){r(1)({target:"Object",stat:!0,sham:!r(7)},{create:r(35)})},function(t,e,r){var i=r(1),n=r(7);i({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperty:r(10).f})},function(t,e,r){var i=r(1),n=r(7);i({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperties:r(87)})},function(t,e,r){var i=r(1),n=r(114).entries;i({target:"Object",stat:!0},{entries:function(t){return n(t)}})},function(t,e,r){var i=r(1),n=r(58),a=r(2),o=r(4),s=r(42).onFreeze,l=Object.freeze;i({target:"Object",stat:!0,forced:a(function(){l(1)}),sham:!n},{freeze:function(t){return l&&o(t)?l(s(t)):t}})},function(t,e,r){var i=r(1),n=r(59),a=r(43);i({target:"Object",stat:!0},{fromEntries:function(t){var r={};return n(t,function(t,e){a(r,t,e)},void 0,!0),r}})},function(t,e,r){var i=r(1),n=r(2),a=r(19),o=r(16).f,s=r(7),l=n(function(){o(1)});i({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},function(t,e,r){var i=r(1),n=r(7),l=r(84),p=r(19),c=r(16),u=r(43);i({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(t){for(var e,r,i=p(t),n=c.f,a=l(i),o={},s=0;a.length>s;)void 0!==(r=n(i,e=a[s++]))&&u(o,e,r);return o}})},function(t,e,r){var i=r(1),n=r(2),a=r(111).f;i({target:"Object",stat:!0,forced:n(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:a})},function(t,e,r){var i=r(1),n=r(2),a=r(11),o=r(28),s=r(89);i({target:"Object",stat:!0,forced:n(function(){o(1)}),sham:!s},{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,r){r(1)({target:"Object",stat:!0},{is:r(116)})},function(t,e,r){var i=r(1),n=r(2),a=r(4),o=Object.isExtensible;i({target:"Object",stat:!0,forced:n(function(){o(1)})},{isExtensible:function(t){return!!a(t)&&(!o||o(t))}})},function(t,e,r){var i=r(1),n=r(2),a=r(4),o=Object.isFrozen;i({target:"Object",stat:!0,forced:n(function(){o(1)})},{isFrozen:function(t){return!a(t)||!!o&&o(t)}})},function(t,e,r){var i=r(1),n=r(2),a=r(4),o=Object.isSealed;i({target:"Object",stat:!0,forced:n(function(){o(1)})},{isSealed:function(t){return!a(t)||!!o&&o(t)}})},function(t,e,r){var i=r(1),n=r(11),a=r(56);i({target:"Object",stat:!0,forced:r(2)(function(){a(1)})},{keys:function(t){return a(n(t))}})},function(t,e,r){var i=r(1),n=r(4),a=r(42).onFreeze,o=r(58),s=r(2),l=Object.preventExtensions;i({target:"Object",stat:!0,forced:s(function(){l(1)}),sham:!o},{preventExtensions:function(t){return l&&n(t)?l(a(t)):t}})},function(t,e,r){var i=r(1),n=r(4),a=r(42).onFreeze,o=r(58),s=r(2),l=Object.seal;i({target:"Object",stat:!0,forced:s(function(){l(1)}),sham:!o},{seal:function(t){return l&&n(t)?l(a(t)):t}})},function(t,e,r){r(1)({target:"Object",stat:!0},{setPrototypeOf:r(45)})},function(t,e,r){var i=r(1),n=r(114).values;i({target:"Object",stat:!0},{values:function(t){return n(t)}})},function(t,e,r){var i=r(17),n=r(185),a=Object.prototype;n!==a.toString&&i(a,"toString",n,{unsafe:!0})},function(t,e,r){"use strict";var i=r(62),n={};n[r(8)("toStringTag")]="z",t.exports="[object z]"!==String(n)?function(){return"[object "+i(this)+"]"}:n.toString},function(t,e,r){"use strict";var i=r(1),n=r(7),a=r(67),o=r(11),s=r(21),l=r(10);n&&i({target:"Object",proto:!0,forced:a},{__defineGetter__:function(t,e){l.f(o(this),t,{get:s(e),enumerable:!0,configurable:!0})}})},function(t,e,r){"use strict";var i=r(1),n=r(7),a=r(67),o=r(11),s=r(21),l=r(10);n&&i({target:"Object",proto:!0,forced:a},{__defineSetter__:function(t,e){l.f(o(this),t,{set:s(e),enumerable:!0,configurable:!0})}})},function(t,e,r){"use strict";var i=r(1),n=r(7),a=r(67),o=r(11),s=r(26),l=r(28),p=r(16).f;n&&i({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(t){var e,r=o(this),i=s(t,!0);do{if(e=p(r,i))return e.get}while(r=l(r))}})},function(t,e,r){"use strict";var i=r(1),n=r(7),a=r(67),o=r(11),s=r(26),l=r(28),p=r(16).f;n&&i({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(t){var e,r=o(this),i=s(t,!0);do{if(e=p(r,i))return e.set}while(r=l(r))}})},function(t,e,r){r(1)({target:"Function",proto:!0},{bind:r(118)})},function(t,e,r){var i=r(7),n=r(10).f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/;!i||"name"in a||n(a,"name",{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(t){return""}}})},function(t,e,r){"use strict";var i=r(4),n=r(10),a=r(28),o=r(8)("hasInstance"),s=Function.prototype;o in s||n.f(s,o,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=a(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,r){var i=r(1),n=r(119);i({target:"Array",stat:!0,forced:!r(68)(function(t){Array.from(t)})},{from:n})},function(t,e,r){r(1)({target:"Array",stat:!0},{isArray:r(41)})},function(t,e,r){"use strict";var i=r(1),n=r(2),a=r(43);i({target:"Array",stat:!0,forced:n(function(){function t(){}return!(Array.of.call(t)instanceof t)})},{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);t<e;)a(r,t,arguments[t++]);return r.length=e,r}})},function(t,e,r){"use strict";function p(t){if(!o(t))return!1;var e=t[l];return void 0!==e?!!e:a(t)}var i=r(1),n=r(2),a=r(41),o=r(4),c=r(11),u=r(9),h=r(43),d=r(57),s=r(63),l=r(8)("isConcatSpreadable"),f=9007199254740991,m="Maximum allowed index exceeded",g=!n(function(){var t=[];return t[l]=!1,t.concat()[0]!==t}),v=s("concat");i({target:"Array",proto:!0,forced:!g||!v},{concat:function(t){var e,r,i,n,a,o=c(this),s=d(o,0),l=0;for(e=-1,i=arguments.length;e<i;e++)if(p(a=-1===e?o:arguments[e])){if(n=u(a.length),f<l+n)throw TypeError(m);for(r=0;r<n;r++,l++)r in a&&h(s,l,a[r])}else{if(f<=l)throw TypeError(m);h(s,l++,a)}return s.length=l,s}})},function(t,e,r){var i=r(1),n=r(120),a=r(37);i({target:"Array",proto:!0},{copyWithin:n}),a("copyWithin")},function(t,e,r){"use strict";var i=r(1),n=r(13).every;i({target:"Array",proto:!0,forced:r(29)("every")},{every:function(t,e){return n(this,t,1<arguments.length?e:void 0)}})},function(t,e,r){var i=r(1),n=r(90),a=r(37);i({target:"Array",proto:!0},{fill:n}),a("fill")},function(t,e,r){"use strict";var i=r(1),n=r(13).filter;i({target:"Array",proto:!0,forced:!r(63)("filter")},{filter:function(t,e){return n(this,t,1<arguments.length?e:void 0)}})},function(t,e,r){"use strict";var i=r(1),n=r(13).find,a=r(37),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),i({target:"Array",proto:!0,forced:o},{find:function(t,e){return n(this,t,1<arguments.length?e:void 0)}}),a("find")},function(t,e,r){"use strict";var i=r(1),n=r(13).findIndex,a=r(37),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),i({target:"Array",proto:!0,forced:s},{findIndex:function(t,e){return n(this,t,1<arguments.length?e:void 0)}}),a(o)},function(t,e,r){"use strict";var i=r(1),a=r(121),o=r(11),s=r(9),l=r(24),p=r(57);i({target:"Array",proto:!0},{flat:function(t){var e=arguments.length?t:void 0,r=o(this),i=s(r.length),n=p(r,0);return n.length=a(n,r,r,i,0,void 0===e?1:l(e)),n}})},function(t,e,r){"use strict";var i=r(1),a=r(121),o=r(11),s=r(9),l=r(21),p=r(57);i({target:"Array",proto:!0},{flatMap:function(t,e){var r,i=o(this),n=s(i.length);return l(t),(r=p(i,0)).length=a(r,i,i,n,0,1,t,1<arguments.length?e:void 0),r}})},function(t,e,r){"use strict";var i=r(1),n=r(122);i({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},function(t,e,r){"use strict";var i=r(1),n=r(54).includes,a=r(37);i({target:"Array",proto:!0},{includes:function(t,e){return n(this,t,1<arguments.length?e:void 0)}}),a("includes")},function(t,e,r){"use strict";var i=r(1),n=r(54).indexOf,a=r(29),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0,l=a("indexOf");i({target:"Array",proto:!0,forced:s||l},{indexOf:function(t,e){return s?o.apply(this,arguments)||0:n(this,t,1<arguments.length?e:void 0)}})},function(t,e,r){"use strict";var i=r(1),n=r(50),a=r(19),o=r(29),s=[].join,l=n!=Object,p=o("join",",");i({target:"Array",proto:!0,forced:l||p},{join:function(t){return s.call(a(this),void 0===t?",":t)}})},function(t,e,r){var i=r(1),n=r(123);i({target:"Array",proto:!0,forced:n!==[].lastIndexOf},{lastIndexOf:n})},function(t,e,r){"use strict";var i=r(1),n=r(13).map;i({target:"Array",proto:!0,forced:!r(63)("map")},{map:function(t,e){return n(this,t,1<arguments.length?e:void 0)}})},function(t,e,r){"use strict";var i=r(1),n=r(69).left;i({target:"Array",proto:!0,forced:r(29)("reduce")},{reduce:function(t,e){return n(this,t,arguments.length,1<arguments.length?e:void 0)}})},function(t,e,r){"use strict";var i=r(1),n=r(69).right;i({target:"Array",proto:!0,forced:r(29)("reduceRight")},{reduceRight:function(t,e){return n(this,t,arguments.length,1<arguments.length?e:void 0)}})},function(t,e,r){"use strict";var i=r(1),n=r(41),a=[].reverse,o=[1,2];i({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),a.call(this)}})},function(t,e,r){"use strict";var i=r(1),p=r(4),c=r(41),u=r(34),h=r(9),d=r(19),f=r(43),n=r(63),m=r(8)("species"),g=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!n("slice")},{slice:function(t,e){var r,i,n,a=d(this),o=h(a.length),s=u(t,o),l=u(void 0===e?o:e,o);if(c(a)&&("function"!=typeof(r=a.constructor)||r!==Array&&!c(r.prototype)?p(r)&&null===(r=r[m])&&(r=void 0):r=void 0,r===Array||void 0===r))return g.call(a,s,l);for(i=new(void 0===r?Array:r)(v(l-s,0)),n=0;s<l;s++,n++)s in a&&f(i,n,a[s]);return i.length=n,i}})},function(t,e,r){"use strict";var i=r(1),n=r(13).some;i({target:"Array",proto:!0,forced:r(29)("some")},{some:function(t,e){return n(this,t,1<arguments.length?e:void 0)}})},function(t,e,r){"use strict";var i=r(1),n=r(21),a=r(11),o=r(2),s=r(29),l=[].sort,p=[1,2,3],c=o(function(){p.sort(void 0)}),u=o(function(){p.sort(null)}),h=s("sort");i({target:"Array",proto:!0,forced:c||!u||h},{sort:function(t){return void 0===t?l.call(a(this)):l.call(a(this),n(t))}})},function(t,e,r){"use strict";var i=r(1),h=r(34),d=r(24),f=r(9),m=r(11),g=r(57),v=r(43),n=r(63),y=Math.max,x=Math.min;i({target:"Array",proto:!0,forced:!n("splice")},{splice:function(t,e){var r,i,n,a,o,s,l=m(this),p=f(l.length),c=h(t,p),u=arguments.length;if(0===u?r=i=0:i=1===u?(r=0,p-c):(r=u-2,x(y(d(e),0),p-c)),9007199254740991<p+r-i)throw TypeError("Maximum allowed length exceeded");for(n=g(l,i),a=0;a<i;a++)(o=c+a)in l&&v(n,a,l[o]);if(r<(n.length=i)){for(a=c;a<p-i;a++)s=a+r,(o=a+i)in l?l[s]=l[o]:delete l[s];for(a=p;p-i+r<a;a--)delete l[a-1]}else if(i<r)for(a=p-i;c<a;a--)s=a+r-1,(o=a+i-1)in l?l[s]=l[o]:delete l[s];for(a=0;a<r;a++)l[a+c]=arguments[a+2];return l.length=p-i+r,n}})},function(t,e,r){r(46)("Array")},function(t,e,r){r(37)("flat")},function(t,e,r){r(37)("flatMap")},function(t,e,r){var i=r(1),a=r(34),o=String.fromCharCode,n=String.fromCodePoint;i({target:"String",stat:!0,forced:!!n&&1!=n.length},{fromCodePoint:function(t){for(var e,r=[],i=arguments.length,n=0;n<i;){if(e=+arguments[n++],a(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},function(t,e,r){var i=r(1),o=r(19),s=r(9);i({target:"String",stat:!0},{raw:function(t){for(var e=o(t.raw),r=s(e.length),i=arguments.length,n=[],a=0;a<r;)n.push(String(e[a++])),a<i&&n.push(String(arguments[a]));return n.join("")}})},function(t,e,r){"use strict";var i=r(1),n=r(71).codeAt;i({target:"String",proto:!0},{codePointAt:function(t){return n(this,t)}})},function(t,e,r){"use strict";var i=r(1),s=r(9),l=r(93),p=r(15),n=r(95),c="".endsWith,u=Math.min;i({target:"String",proto:!0,forced:!n("endsWith")},{endsWith:function(t,e){var r=String(p(this));l(t);var i=1<arguments.length?e:void 0,n=s(r.length),a=void 0===i?n:u(s(i),n),o=String(t);return c?c.call(r,o,a):r.slice(a-o.length,a)===o}})},function(t,e,r){"use strict";var i=r(1),n=r(93),a=r(15);i({target:"String",proto:!0,forced:!r(95)("includes")},{includes:function(t,e){return!!~String(a(this)).indexOf(n(t),1<arguments.length?e:void 0)}})},function(t,e,r){"use strict";var i=r(72),u=r(5),h=r(9),n=r(15),d=r(74),f=r(75);i("match",1,function(i,p,c){return[function(t){var e=n(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,e):new RegExp(t)[i](String(e))},function(t){var e=c(p,t,this);if(e.done)return e.value;var r=u(t),i=String(this);if(!r.global)return f(r,i);for(var n,a=r.unicode,o=[],s=r.lastIndex=0;null!==(n=f(r,i));){var l=String(n[0]);""===(o[s]=l)&&(r.lastIndex=d(i,h(r.lastIndex),a)),s++}return 0===s?null:o}]})},function(t,e,r){"use strict";function a(t){var e,r,i,n,a,o,s=c(this),l=String(t);return e=f(s,RegExp),void 0===(r=s.flags)&&s instanceof RegExp&&!("flags"in S)&&(r=u.call(s)),i=void 0===r?"":String(r),n=new e(e===RegExp?s.source:s,i),a=!!~i.indexOf("g"),o=!!~i.indexOf("u"),n.lastIndex=p(s.lastIndex),new P(n,l,a,o)}var i=r(1),n=r(92),o=r(15),p=r(9),s=r(21),c=r(5),l=r(62),u=r(64),h=r(14),d=r(8),f=r(30),m=r(74),g=r(20),v=r(32),y=d("matchAll"),x="RegExp String",b=x+" Iterator",_=g.set,w=g.getterFor(b),S=RegExp.prototype,T=S.exec,P=n(function(t,e,r,i){_(this,{type:b,regexp:t,string:e,global:r,unicode:i,done:!1})},x,function(){var t=w(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,r=t.string,i=function(t,e){var r,i=t.exec;if("function"!=typeof i)return T.call(t,e);if("object"!=typeof(r=i.call(t,e)))throw TypeError("Incorrect exec result");return r}(e,r);return null===i?{value:void 0,done:t.done=!0}:t.global?(""==String(i[0])&&(e.lastIndex=m(r,p(e.lastIndex),t.unicode)),{value:i,done:!1}):{value:i,done:!(t.done=!0)}});i({target:"String",proto:!0},{matchAll:function(t){var e,r,i,n=o(this);return null!=t&&(void 0===(r=t[y])&&v&&"RegExp"==l(t)&&(r=a),null!=r)?s(r).call(t,n):(e=String(n),i=new RegExp(t,"g"),v?a.call(i,e):i[y](e))}}),v||y in S||h(S,y,a)},function(t,e,r){"use strict";var i=r(1),n=r(96).end;i({target:"String",proto:!0,forced:r(125)},{padEnd:function(t,e){return n(this,t,1<arguments.length?e:void 0)}})},function(t,e,r){"use strict";var i=r(1),n=r(96).start;i({target:"String",proto:!0,forced:r(125)},{padStart:function(t,e){return n(this,t,1<arguments.length?e:void 0)}})},function(t,e,r){r(1)({target:"String",proto:!0},{repeat:r(97)})},function(t,e,r){"use strict";var i=r(72),T=r(5),h=r(11),P=r(9),k=r(24),a=r(15),I=r(74),A=r(75),E=Math.max,C=Math.min,d=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;i("replace",2,function(n,_,w){return[function(t,e){var r=a(this),i=null==t?void 0:t[n];return void 0!==i?i.call(t,r,e):_.call(String(r),t,e)},function(t,e){var r=w(_,t,this,e);if(r.done)return r.value;var i=T(t),n=String(this),a="function"==typeof e;a||(e=String(e));var o=i.global;if(o){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=A(i,n);if(null===p)break;if(l.push(p),!o)break;""===String(p[0])&&(i.lastIndex=I(n,P(i.lastIndex),s))}for(var c,u="",h=0,d=0;d<l.length;d++){p=l[d];for(var f=String(p[0]),m=E(C(k(p.index),n.length),0),g=[],v=1;v<p.length;v++)g.push(void 0===(c=p[v])?c:String(c));var y=p.groups;if(a){var x=[f].concat(g,m,n);void 0!==y&&x.push(y);var b=String(e.apply(void 0,x))}else b=S(f,n,m,g,y,e);h<=m&&(u+=n.slice(h,m)+b,h=m+f.length)}return u+n.slice(h)}];function S(a,o,s,l,p,t){var c=s+a.length,u=l.length,e=m;return void 0!==p&&(p=h(p),e=f),_.call(t,e,function(t,e){var r;switch(e.charAt(0)){case"$":return"$";case"&":return a;case"`":return o.slice(0,s);case"'":return o.slice(c);case"<":r=p[e.slice(1,-1)];break;default:var i=+e;if(0==i)return t;if(u<i){var n=d(i/10);return 0===n?t:n<=u?void 0===l[n-1]?e.charAt(1):l[n-1]+e.charAt(1):t}r=l[i-1]}return void 0===r?"":r})}})},function(t,e,r){"use strict";var i=r(72),l=r(5),n=r(15),p=r(116),c=r(75);i("search",1,function(i,o,s){return[function(t){var e=n(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,e):new RegExp(t)[i](String(e))},function(t){var e=s(o,t,this);if(e.done)return e.value;var r=l(t),i=String(this),n=r.lastIndex;p(n,0)||(r.lastIndex=0);var a=c(r,i);return p(r.lastIndex,n)||(r.lastIndex=n),null===a?-1:a.index}]})},function(t,e,r){"use strict";var i=r(72),u=r(94),x=r(5),h=r(15),b=r(30),_=r(74),w=r(9),S=r(75),d=r(73),n=r(2),f=[].push,T=Math.min,P=4294967295,k=!n(function(){return!RegExp(P,"y")});i("split",2,function(n,g,v){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var r=String(h(this)),i=void 0===e?P:e>>>0;if(0==i)return[];if(void 0===t)return[r];if(!u(t))return g.call(r,t,i);for(var n,a,o,s=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,c=new RegExp(t.source,l+"g");(n=d.call(c,r))&&!(p<(a=c.lastIndex)&&(s.push(r.slice(p,n.index)),1<n.length&&n.index<r.length&&f.apply(s,n.slice(1)),o=n[0].length,p=a,s.length>=i));)c.lastIndex===n.index&&c.lastIndex++;return p===r.length?!o&&c.test("")||s.push(""):s.push(r.slice(p)),s.length>i?s.slice(0,i):s}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:g.call(this,t,e)}:g,[function(t,e){var r=h(this),i=null==t?void 0:t[n];return void 0!==i?i.call(t,r,e):y.call(String(r),t,e)},function(t,e){var r=v(y,t,this,e,y!==g);if(r.done)return r.value;var i=x(t),n=String(this),a=b(i,RegExp),o=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(k?"y":"g"),l=new a(k?i:"^(?:"+i.source+")",s),p=void 0===e?P:e>>>0;if(0==p)return[];if(0===n.length)return null===S(l,n)?[n]:[];for(var c=0,u=0,h=[];u<n.length;){l.lastIndex=k?u:0;var d,f=S(l,k?n:n.slice(u));if(null===f||(d=T(w(l.lastIndex+(k?0:u)),n.length))===c)u=_(n,u,o);else{if(h.push(n.slice(c,u)),h.length===p)return h;for(var m=1;m<=f.length-1;m++)if(h.push(f[m]),h.length===p)return h;u=c=d}}return h.push(n.slice(c)),h}]},!k)},function(t,e,r){"use strict";var i=r(1),a=r(9),o=r(93),s=r(15),n=r(95),l="".startsWith,p=Math.min;i({target:"String",proto:!0,forced:!n("startsWith")},{startsWith:function(t,e){var r=String(s(this));o(t);var i=a(p(1<arguments.length?e:void 0,r.length)),n=String(t);return l?l.call(r,n,i):r.slice(i,i+n.length)===n}})},function(t,e,r){"use strict";var i=r(1),n=r(47).trim;i({target:"String",proto:!0,forced:r(98)("trim")},{trim:function(){return n(this)}})},function(t,e,r){"use strict";var i=r(1),n=r(47).start,a=r(98)("trimStart"),o=a?function(){return n(this)}:"".trimStart;i({target:"String",proto:!0,forced:a},{trimStart:o,trimLeft:o})},function(t,e,r){"use strict";var i=r(1),n=r(47).end,a=r(98)("trimEnd"),o=a?function(){return n(this)}:"".trimEnd;i({target:"String",proto:!0,forced:a},{trimEnd:o,trimRight:o})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("anchor")},{anchor:function(t){return n(this,"a","name",t)}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("big")},{big:function(){return n(this,"big","","")}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("blink")},{blink:function(){return n(this,"blink","","")}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("bold")},{bold:function(){return n(this,"b","","")}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("fixed")},{fixed:function(){return n(this,"tt","","")}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("fontcolor")},{fontcolor:function(t){return n(this,"font","color",t)}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("fontsize")},{fontsize:function(t){return n(this,"font","size",t)}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("italics")},{italics:function(){return n(this,"i","","")}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("link")},{link:function(t){return n(this,"a","href",t)}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("small")},{small:function(){return n(this,"small","","")}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("strike")},{strike:function(){return n(this,"strike","","")}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("sub")},{sub:function(){return n(this,"sub","","")}})},function(t,e,r){"use strict";var i=r(1),n=r(22);i({target:"String",proto:!0,forced:r(23)("sup")},{sup:function(){return n(this,"sup","","")}})},function(t,e,r){var i=r(7),n=r(3),a=r(55),o=r(99),s=r(10).f,l=r(40).f,p=r(94),c=r(64),u=r(17),h=r(2),d=r(46),f=r(8)("match"),m=n.RegExp,g=m.prototype,v=/a/g,y=/a/g,x=new m(v)!==v;if(i&&a("RegExp",!x||h(function(){return y[f]=!1,m(v)!=v||m(y)==y||"/a/i"!=m(v,"i")}))){function b(e){e in _||s(_,e,{configurable:!0,get:function(){return m[e]},set:function(t){m[e]=t}})}for(var _=function(t,e){var r=this instanceof _,i=p(t),n=void 0===e;return!r&&i&&t.constructor===_&&n?t:o(x?new m(i&&!n?t.source:t,e):m((i=t instanceof _)?t.source:t,i&&n?c.call(t):e),r?this:g,_)},w=l(m),S=0;w.length>S;)b(w[S++]);(g.constructor=_).prototype=g,u(n,"RegExp",_)}d("RegExp")},function(t,e,r){"use strict";var i=r(1),n=r(73);i({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},function(t,e,r){var i=r(7),n=r(10),a=r(64);i&&"g"!=/./g.flags&&n.f(RegExp.prototype,"flags",{configurable:!0,get:a})},function(t,e,r){"use strict";var i=r(17),n=r(5),a=r(2),o=r(64),s="toString",l=RegExp.prototype,p=l[s],c=a(function(){return"/a/b"!=p.call({source:"a",flags:"b"})}),u=p.name!=s;(c||u)&&i(RegExp.prototype,s,function(){var t=n(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in l)?o.call(t):r)},{unsafe:!0})},function(t,e,r){var i=r(1),n=r(127);i({global:!0,forced:parseInt!=n},{parseInt:n})},function(t,e,r){var i=r(1),n=r(128);i({global:!0,forced:parseFloat!=n},{parseFloat:n})},function(t,e,r){"use strict";function i(t){var e,r,i,n,a,o,s,l,p=u(t,!1);if("string"==typeof p&&2<p.length)if(43===(e=(p=v(p)).charCodeAt(0))||45===e){if(88===(r=p.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(p.charCodeAt(1)){case 66:case 98:i=2,n=49;break;case 79:case 111:i=8,n=55;break;default:return+p}for(o=(a=p.slice(2)).length,s=0;s<o;s++)if((l=a.charCodeAt(s))<48||n<l)return NaN;return parseInt(a,i)}return+p}var n=r(7),a=r(3),o=r(55),s=r(17),l=r(12),p=r(25),c=r(99),u=r(26),h=r(2),d=r(35),f=r(40).f,m=r(16).f,g=r(10).f,v=r(47).trim,y="Number",x=a[y],b=x.prototype,_=p(d(b))==y;if(o(y,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var w,S=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof S&&(_?h(function(){b.valueOf.call(r)}):p(r)!=y)?c(new x(i(e)),r,S):i(e)},T=n?f(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),P=0;T.length>P;P++)l(x,w=T[P])&&!l(S,w)&&g(S,w,m(x,w));(S.prototype=b).constructor=S,s(a,y,S)}},function(t,e,r){r(1)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,r){r(1)({target:"Number",stat:!0},{isFinite:r(260)})},function(t,e,r){var i=r(3).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&i(t)}},function(t,e,r){r(1)({target:"Number",stat:!0},{isInteger:r(129)})},function(t,e,r){r(1)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,r){var i=r(1),n=r(129),a=Math.abs;i({target:"Number",stat:!0},{isSafeInteger:function(t){return n(t)&&a(t)<=9007199254740991}})},function(t,e,r){r(1)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,r){r(1)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,r){var i=r(1),n=r(128);i({target:"Number",stat:!0,forced:Number.parseFloat!=n},{parseFloat:n})},function(t,e,r){var i=r(1),n=r(127);i({target:"Number",stat:!0,forced:Number.parseInt!=n},{parseInt:n})},function(t,e,r){"use strict";var i=r(1),d=r(24),f=r(130),m=r(97),n=r(2),a=1..toFixed,g=Math.floor,v=function(t,e,r){return 0===e?r:e%2==1?v(t,e-1,r*t):v(t*t,e/2,r)};i({target:"Number",proto:!0,forced:a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(function(){a.call({})})},{toFixed:function(t){function e(t,e){for(var r=-1,i=e;++r<6;)i+=t*c[r],c[r]=i%1e7,i=g(i/1e7)}function r(t){for(var e=6,r=0;0<=--e;)r+=c[e],c[e]=g(r/t),r=r%t*1e7}function i(){for(var t=6,e="";0<=--t;)if(""!==e||0===t||0!==c[t]){var r=String(c[t]);e=""===e?r:e+m.call("0",7-r.length)+r}return e}var n,a,o,s,l=f(this),p=d(t),c=[0,0,0,0,0,0],u="",h="0";if(p<0||20<p)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||1e21<=l)return String(l);if(l<0&&(u="-",l=-l),1e-21<l)if(a=(n=function(t){for(var e=0,r=t;4096<=r;)e+=12,r/=4096;for(;2<=r;)e+=1,r/=2;return e}(l*v(2,69,1))-69)<0?l*v(2,-n,1):l/v(2,n,1),a*=4503599627370496,0<(n=52-n)){for(e(0,a),o=p;7<=o;)e(1e7,0),o-=7;for(e(v(10,o,1),0),o=n-1;23<=o;)r(1<<23),o-=23;r(1<<o),e(1,1),r(2),h=i()}else e(0,a),e(1<<-n,0),h=i()+m.call("0",p);return h=0<p?u+((s=h.length)<=p?"0."+m.call("0",p-s)+h:h.slice(0,s-p)+"."+h.slice(s-p)):u+h}})},function(t,e,r){"use strict";var i=r(1),n=r(2),a=r(130),o=1..toPrecision;i({target:"Number",proto:!0,forced:n(function(){return"1"!==o.call(1,void 0)})||!n(function(){o.call({})})},{toPrecision:function(t){return void 0===t?o.call(a(this)):o.call(a(this),t)}})},function(t,e,r){var i=r(1),n=r(131),a=Math.acosh,o=Math.log,s=Math.sqrt,l=Math.LN2;i({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:94906265.62425156<t?o(t)+l:n(t-1+s(t-1)*s(t+1))}})},function(t,e,r){var i=r(1),n=Math.asinh,a=Math.log,o=Math.sqrt;i({target:"Math",stat:!0,forced:!(n&&0<1/n(0))},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):a(e+o(e*e+1)):e}})},function(t,e,r){var i=r(1),n=Math.atanh,a=Math.log;i({target:"Math",stat:!0,forced:!(n&&1/n(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:a((1+t)/(1-t))/2}})},function(t,e,r){var i=r(1),n=r(100),a=Math.abs,o=Math.pow;i({target:"Math",stat:!0},{cbrt:function(t){return n(t=+t)*o(a(t),1/3)}})},function(t,e,r){var i=r(1),n=Math.floor,a=Math.log,o=Math.LOG2E;i({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-n(a(t+.5)*o):32}})},function(t,e,r){var i=r(1),n=r(78),a=Math.cosh,o=Math.abs,s=Math.E;i({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(t){var e=n(o(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},function(t,e,r){var i=r(1),n=r(78);i({target:"Math",stat:!0,forced:n!=Math.expm1},{expm1:n})},function(t,e,r){r(1)({target:"Math",stat:!0},{fround:r(278)})},function(t,e,r){var a=r(100),o=Math.abs,i=Math.pow,s=i(2,-52),l=i(2,-23),p=i(2,127)*(2-l),c=i(2,-126);t.exports=Math.fround||function(t){var e,r,i=o(t),n=a(t);return i<c?n*function(t){return t+1/s-1/s}(i/c/l)*c*l:p<(r=(e=(1+l/s)*i)-(e-i))||r!=r?n*(1/0):n*r}},function(t,e,r){var i=r(1),l=Math.abs,p=Math.sqrt;i({target:"Math",stat:!0},{hypot:function(t,e){for(var r,i,n=0,a=0,o=arguments.length,s=0;a<o;)s<(r=l(arguments[a++]))?(n=n*(i=s/r)*i+1,s=r):n+=0<r?(i=r/s)*i:r;return s===1/0?1/0:s*p(n)}})},function(t,e,r){var i=r(1),n=r(2),a=Math.imul;i({target:"Math",stat:!0,forced:n(function(){return-5!=a(4294967295,5)||2!=a.length})},{imul:function(t,e){var r=+t,i=+e,n=65535&r,a=65535&i;return 0|n*a+((65535&r>>>16)*a+n*(65535&i>>>16)<<16>>>0)}})},function(t,e,r){var i=r(1),n=Math.log,a=Math.LOG10E;i({target:"Math",stat:!0},{log10:function(t){return n(t)*a}})},function(t,e,r){r(1)({target:"Math",stat:!0},{log1p:r(131)})},function(t,e,r){var i=r(1),n=Math.log,a=Math.LN2;i({target:"Math",stat:!0},{log2:function(t){return n(t)/a}})},function(t,e,r){r(1)({target:"Math",stat:!0},{sign:r(100)})},function(t,e,r){var i=r(1),n=r(2),a=r(78),o=Math.abs,s=Math.exp,l=Math.E;i({target:"Math",stat:!0,forced:n(function(){return-2e-17!=Math.sinh(-2e-17)})},{sinh:function(t){return o(t=+t)<1?(a(t)-a(-t))/2:(s(t-1)-s(-t-1))*(l/2)}})},function(t,e,r){var i=r(1),n=r(78),a=Math.exp;i({target:"Math",stat:!0},{tanh:function(t){var e=n(t=+t),r=n(-t);return e==1/0?1:r==1/0?-1:(e-r)/(a(t)+a(-t))}})},function(t,e,r){r(27)(Math,"Math",!0)},function(t,e,r){var i=r(1),n=Math.ceil,a=Math.floor;i({target:"Math",stat:!0},{trunc:function(t){return(0<t?a:n)(t)}})},function(t,e,r){r(1)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(t,e,r){"use strict";var i=r(1),n=r(2),a=r(11),o=r(26);i({target:"Date",proto:!0,forced:n(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(t){var e=a(this),r=o(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},function(t,e,r){var i=r(1),n=r(292);i({target:"Date",proto:!0,forced:Date.prototype.toISOString!==n},{toISOString:n})},function(t,e,r){"use strict";var i=r(2),n=r(96).start,a=Math.abs,o=Date.prototype,s=o.getTime,l=o.toISOString;t.exports=i(function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-5e13-1))})||!i(function(){l.call(new Date(NaN))})?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),r=t<0?"-":9999<t?"+":"";return r+n(a(t),r?6:4,0)+"-"+n(this.getUTCMonth()+1,2,0)+"-"+n(this.getUTCDate(),2,0)+"T"+n(this.getUTCHours(),2,0)+":"+n(this.getUTCMinutes(),2,0)+":"+n(this.getUTCSeconds(),2,0)+"."+n(e,3,0)+"Z"}:l},function(t,e,r){var i=r(17),n=Date.prototype,a="Invalid Date",o=n.toString,s=n.getTime;new Date(NaN)+""!=a&&i(n,"toString",function(){var t=s.call(this);return t==t?o.call(this):a})},function(t,e,r){var i=r(14),n=r(295),a=r(8)("toPrimitive"),o=Date.prototype;a in o||i(o,a,n)},function(t,e,r){"use strict";var i=r(5),n=r(26);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return n(i(this),"number"!==t)}},function(t,e,r){var i=r(3);r(27)(i.JSON,"JSON",!0)},function(t,e,r){"use strict";function m(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e}function a(u,h,d){if(!h.notified){h.notified=!0;var f=h.reactions;k(function(){for(var t=h.value,e=1==h.state,r=0;f.length>r;){var i,n,a,o=f[r++],s=e?o.ok:o.fail,l=o.resolve,p=o.reject,c=o.domain;try{s?(e||(2===h.rejection&&et(u,h),h.rejection=1),!0===s?i=t:(c&&c.enter(),i=s(t),c&&(c.exit(),a=!0)),i===o.promise?p($("Promise-chain cycle")):(n=m(i))?n.call(i,l,p):l(i)):p(t)}catch(t){c&&!a&&c.exit(),p(t)}}h.reactions=[],h.notified=!1,d&&!h.rejection&&K(u,h)})}}function n(t,e,r){var i,n;q?((i=V.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),h.dispatchEvent(i)):i={promise:e,reason:r},(n=h["on"+t])?n(i):t===J&&A("Unhandled promise rejection",r)}function o(e,r,i,n){return function(t){e(r,i,t,n)}}function s(t,e,r,i){e.done||(e.done=!0,i&&(e=i),e.value=r,e.state=2,a(t,e,!0))}var i,l,p,c=r(1),u=r(32),h=r(3),d=r(44),f=r(48),g=r(27),v=r(46),y=r(4),x=r(21),b=r(38),_=r(25),w=r(59),S=r(68),T=r(30),P=r(101).set,k=r(132),I=r(133),A=r(298),E=r(134),C=r(299),O=r(76),M=r(20),D=r(55),F=r(8)("species"),R="Promise",N=M.get,L=M.set,B=M.getterFor(R),j=h[R],$=h.TypeError,V=h.document,H=h.process,z=h.fetch,G=H&&H.versions,Y=G&&G.v8||"",X=E.f,W=X,U="process"==_(H),q=!!(V&&V.createEvent&&h.dispatchEvent),J="unhandledrejection",Q=D(R,function(){function e(){}var t=j.resolve(1),r=(t.constructor={})[F]=function(t){t(e,e)};return!((U||"function"==typeof PromiseRejectionEvent)&&(!u||t.finally)&&t.then(e)instanceof r&&0!==Y.indexOf("6.6")&&-1===O.indexOf("Chrome/66"))}),Z=Q||!S(function(t){j.all(t).catch(function(){})}),K=function(r,i){P.call(h,function(){var t,e=i.value;if(tt(i)&&(t=C(function(){U?H.emit("unhandledRejection",e,r):n(J,r,e)}),i.rejection=U||tt(i)?2:1,t.error))throw t.value})},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){P.call(h,function(){U?H.emit("rejectionHandled",t):n("rejectionhandled",t,e.value)})},rt=function(r,i,t,e){if(!i.done){i.done=!0,e&&(i=e);try{if(r===t)throw $("Promise can't be resolved itself");var n=m(t);n?k(function(){var e={done:!1};try{n.call(t,o(rt,r,e,i),o(s,r,e,i))}catch(t){s(r,e,t,i)}}):(i.value=t,i.state=1,a(r,i,!1))}catch(t){s(r,{done:!1},t,i)}}};Q&&(j=function(t){b(this,j,R),x(t),i.call(this);var e=N(this);try{t(o(rt,this,e),o(s,this,e))}catch(t){s(this,e,t)}},(i=function(t){L(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(j.prototype,{then:function(t,e){var r=B(this),i=X(T(this,j));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=U?H.domain:void 0,r.parent=!0,r.reactions.push(i),0!=r.state&&a(this,r,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),l=function(){var t=new i,e=N(t);this.promise=t,this.resolve=o(rt,t,e),this.reject=o(s,t,e)},E.f=X=function(t){return t===j||t===p?new l(t):W(t)},u||"function"!=typeof z||c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return I(j,z.apply(h,arguments))}})),c({global:!0,wrap:!0,forced:Q},{Promise:j}),g(j,R,!1,!0),v(R),p=d[R],c({target:R,stat:!0,forced:Q},{reject:function(t){var e=X(this);return e.reject.call(void 0,t),e.promise}}),c({target:R,stat:!0,forced:u||Q},{resolve:function(t){return I(u&&this===p?j:this,t)}}),c({target:R,stat:!0,forced:Z},{all:function(t){var s=this,e=X(s),l=e.resolve,p=e.reject,r=C(function(){var i=x(s.resolve),n=[],a=0,o=1;w(t,function(t){var e=a++,r=!1;n.push(void 0),o++,i.call(s,t).then(function(t){r||(r=!0,n[e]=t,--o||l(n))},p)}),--o||l(n)});return r.error&&p(r.value),e.promise},race:function(t){var r=this,i=X(r),n=i.reject,e=C(function(){var e=x(r.resolve);w(t,function(t){e.call(r,t).then(i.resolve,n)})});return e.error&&n(e.value),i.promise}})},function(t,e,r){var i=r(3);t.exports=function(t,e){var r=i.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){"use strict";var i=r(1),n=r(33),a=r(30),o=r(133);i({target:"Promise",proto:!0,real:!0},{finally:function(e){var r=a(this,n("Promise")),t="function"==typeof e;return this.then(t?function(t){return o(r,e()).then(function(){return t})}:e,t?function(t){return o(r,e()).then(function(){throw t})}:e)}})},function(t,e,r){"use strict";var i=r(79),n=r(135);t.exports=i("Map",function(e){return function(t){return e(this,arguments.length?t:void 0)}},n,!0)},function(t,e,r){"use strict";var i=r(79),n=r(135);t.exports=i("Set",function(e){return function(t){return e(this,arguments.length?t:void 0)}},n)},function(t,e,r){"use strict";function i(e){return function(t){return e(this,arguments.length?t:void 0)}}var n,a=r(3),o=r(48),s=r(42),l=r(79),p=r(136),c=r(4),u=r(20).enforce,h=r(106),d=!a.ActiveXObject&&"ActiveXObject"in a,f=Object.isExtensible,m=t.exports=l("WeakMap",i,p,!0,!0);if(h&&d){n=p.getConstructor(i,"WeakMap",!0),s.REQUIRED=!0;var g=m.prototype,v=g.delete,y=g.has,x=g.get,b=g.set;o(g,{delete:function(t){if(!c(t)||f(t))return v.call(this,t);var e=u(this);return e.frozen||(e.frozen=new n),v.call(this,t)||e.frozen.delete(t)},has:function(t){if(!c(t)||f(t))return y.call(this,t);var e=u(this);return e.frozen||(e.frozen=new n),y.call(this,t)||e.frozen.has(t)},get:function(t){if(!c(t)||f(t))return x.call(this,t);var e=u(this);return e.frozen||(e.frozen=new n),y.call(this,t)?x.call(this,t):e.frozen.get(t)},set:function(t,e){if(c(t)&&!f(t)){var r=u(this);r.frozen||(r.frozen=new n),y.call(this,t)?b.call(this,t,e):r.frozen.set(t,e)}else b.call(this,t,e);return this}})}},function(t,e,r){"use strict";r(79)("WeakSet",function(e){return function(t){return e(this,arguments.length?t:void 0)}},r(136),!1,!0)},function(t,e,r){"use strict";var i=r(1),n=r(3),a=r(80),o=r(46),s="ArrayBuffer",l=a[s];i({global:!0,forced:n[s]!==l},{ArrayBuffer:l}),o(s)},function(t,e,r){var i=r(1),n=r(6);i({target:"ArrayBuffer",stat:!0,forced:!n.NATIVE_ARRAY_BUFFER_VIEWS},{isView:n.isView})},function(t,e,r){"use strict";var i=r(1),n=r(2),a=r(80),p=r(5),c=r(34),u=r(9),h=r(30),d=a.ArrayBuffer,f=a.DataView,m=d.prototype.slice;i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:n(function(){return!new d(2).slice(1,void 0).byteLength})},{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(p(this),t);for(var r=p(this).byteLength,i=c(t,r),n=c(void 0===e?r:e,r),a=new(h(this,d))(u(n-i)),o=new f(this),s=new f(a),l=0;i<n;)s.setUint8(l++,o.getUint8(i++));return a}})},function(t,e,r){var i=r(1),n=r(80);i({global:!0,forced:!r(6).NATIVE_ARRAY_BUFFER},{DataView:n.DataView})},function(t,e,r){r(31)("Int8",1,function(i){return function(t,e,r){return i(this,t,e,r)}})},function(t,e,r){r(31)("Uint8",1,function(i){return function(t,e,r){return i(this,t,e,r)}})},function(t,e,r){r(31)("Uint8",1,function(i){return function(t,e,r){return i(this,t,e,r)}},!0)},function(t,e,r){r(31)("Int16",2,function(i){return function(t,e,r){return i(this,t,e,r)}})},function(t,e,r){r(31)("Uint16",2,function(i){return function(t,e,r){return i(this,t,e,r)}})},function(t,e,r){r(31)("Int32",4,function(i){return function(t,e,r){return i(this,t,e,r)}})},function(t,e,r){r(31)("Uint32",4,function(i){return function(t,e,r){return i(this,t,e,r)}})},function(t,e,r){r(31)("Float32",4,function(i){return function(t,e,r){return i(this,t,e,r)}})},function(t,e,r){r(31)("Float64",8,function(i){return function(t,e,r){return i(this,t,e,r)}})},function(t,e,r){"use strict";var i=r(102),n=r(6),a=r(139);n.exportStatic("from",a,i)},function(t,e,r){"use strict";var i=r(6),n=r(102),a=i.aTypedArrayConstructor;i.exportStatic("of",function(){for(var t=0,e=arguments.length,r=new(a(this))(e);t<e;)r[t]=arguments[t++];return r},n)},function(t,e,r){"use strict";var i=r(6),n=r(120),a=i.aTypedArray;i.exportProto("copyWithin",function(t,e,r){return n.call(a(this),t,e,2<arguments.length?r:void 0)})},function(t,e,r){"use strict";var i=r(6),n=r(13).every,a=i.aTypedArray;i.exportProto("every",function(t,e){return n(a(this),t,1<arguments.length?e:void 0)})},function(t,e,r){"use strict";var i=r(6),n=r(90),a=i.aTypedArray;i.exportProto("fill",function(t){return n.apply(a(this),arguments)})},function(t,e,r){"use strict";var i=r(6),s=r(13).filter,l=r(30),p=i.aTypedArray,c=i.aTypedArrayConstructor;i.exportProto("filter",function(t,e){for(var r=s(p(this),t,1<arguments.length?e:void 0),i=l(this,this.constructor),n=0,a=r.length,o=new(c(i))(a);n<a;)o[n]=r[n++];return o})},function(t,e,r){"use strict";var i=r(6),n=r(13).find,a=i.aTypedArray;i.exportProto("find",function(t,e){return n(a(this),t,1<arguments.length?e:void 0)})},function(t,e,r){"use strict";var i=r(6),n=r(13).findIndex,a=i.aTypedArray;i.exportProto("findIndex",function(t,e){return n(a(this),t,1<arguments.length?e:void 0)})},function(t,e,r){"use strict";var i=r(6),n=r(13).forEach,a=i.aTypedArray;i.exportProto("forEach",function(t,e){n(a(this),t,1<arguments.length?e:void 0)})},function(t,e,r){"use strict";var i=r(6),n=r(54).includes,a=i.aTypedArray;i.exportProto("includes",function(t,e){return n(a(this),t,1<arguments.length?e:void 0)})},function(t,e,r){"use strict";var i=r(6),n=r(54).indexOf,a=i.aTypedArray;i.exportProto("indexOf",function(t,e){return n(a(this),t,1<arguments.length?e:void 0)})},function(t,e,r){"use strict";function i(){return p.call(h(this))}var n=r(3),a=r(6),o=r(70),s=r(8)("iterator"),l=n.Uint8Array,p=o.values,c=o.keys,u=o.entries,h=a.aTypedArray,d=a.exportProto,f=l&&l.prototype[s],m=!!f&&("values"==f.name||null==f.name);d("entries",function(){return u.call(h(this))}),d("keys",function(){return c.call(h(this))}),d("values",i,!m),d(s,i,!m)},function(t,e,r){"use strict";var i=r(6),n=i.aTypedArray,a=[].join;i.exportProto("join",function(t){return a.apply(n(this),arguments)})},function(t,e,r){"use strict";var i=r(6),n=r(123),a=i.aTypedArray;i.exportProto("lastIndexOf",function(t){return n.apply(a(this),arguments)})},function(t,e,r){"use strict";var i=r(6),n=r(13).map,a=r(30),o=i.aTypedArray,s=i.aTypedArrayConstructor;i.exportProto("map",function(t,e){return n(o(this),t,1<arguments.length?e:void 0,function(t,e){return new(s(a(t,t.constructor)))(e)})})},function(t,e,r){"use strict";var i=r(6),n=r(69).left,a=i.aTypedArray;i.exportProto("reduce",function(t,e){return n(a(this),t,arguments.length,1<arguments.length?e:void 0)})},function(t,e,r){"use strict";var i=r(6),n=r(69).right,a=i.aTypedArray;i.exportProto("reduceRight",function(t,e){return n(a(this),t,arguments.length,1<arguments.length?e:void 0)})},function(t,e,r){"use strict";var i=r(6),n=i.aTypedArray,a=Math.floor;i.exportProto("reverse",function(){for(var t,e=n(this).length,r=a(e/2),i=0;i<r;)t=this[i],this[i++]=this[--e],this[e]=t;return this})},function(t,e,r){"use strict";var i=r(6),s=r(9),l=r(138),p=r(11),n=r(2),c=i.aTypedArray,a=n(function(){new Int8Array(1).set({})});i.exportProto("set",function(t,e){c(this);var r=l(1<arguments.length?e:void 0,1),i=this.length,n=p(t),a=s(n.length),o=0;if(i<a+r)throw RangeError("Wrong length");for(;o<a;)this[r+o]=n[o++]},a)},function(t,e,r){"use strict";var i=r(6),s=r(30),n=r(2),l=i.aTypedArray,p=i.aTypedArrayConstructor,c=[].slice,a=n(function(){new Int8Array(1).slice()});i.exportProto("slice",function(t,e){for(var r=c.call(l(this),t,e),i=s(this,this.constructor),n=0,a=r.length,o=new(p(i))(a);n<a;)o[n]=r[n++];return o},a)},function(t,e,r){"use strict";var i=r(6),n=r(13).some,a=i.aTypedArray;i.exportProto("some",function(t,e){return n(a(this),t,1<arguments.length?e:void 0)})},function(t,e,r){"use strict";var i=r(6),n=i.aTypedArray,a=[].sort;i.exportProto("sort",function(t){return a.call(n(this),t)})},function(t,e,r){"use strict";var i=r(6),a=r(9),o=r(34),s=r(30),l=i.aTypedArray;i.exportProto("subarray",function(t,e){var r=l(this),i=r.length,n=o(t,i);return new(s(r,r.constructor))(r.buffer,r.byteOffset+n*r.BYTES_PER_ELEMENT,a((void 0===e?i:o(e,i))-n))})},function(t,e,r){"use strict";var i=r(3),n=r(6),a=r(2),o=i.Int8Array,s=n.aTypedArray,l=[].toLocaleString,p=[].slice,c=!!o&&a(function(){l.call(new o(1))}),u=a(function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()})||!a(function(){o.prototype.toLocaleString.call([1,2])});n.exportProto("toLocaleString",function(){return l.apply(c?p.call(s(this)):s(this),arguments)},u)},function(t,e,r){"use strict";var i=r(3),n=r(6),a=r(2),o=i.Uint8Array,s=o&&o.prototype,l=[].toString,p=[].join;a(function(){l.call({})})&&(l=function(){return p.call(this)}),n.exportProto("toString",l,(s||{}).toString!=l)},function(t,e,r){var i=r(1),n=r(33),a=r(21),o=r(5),s=r(2),l=n("Reflect","apply"),p=Function.apply;i({target:"Reflect",stat:!0,forced:!s(function(){l(function(){})})},{apply:function(t,e,r){return a(t),o(r),l?l(t,e,r):p.call(t,e,r)}})},function(t,e,r){var i=r(1),n=r(33),l=r(21),p=r(5),c=r(4),u=r(35),h=r(118),a=r(2),d=n("Reflect","construct"),f=a(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),m=!a(function(){d(function(){})}),o=f||m;i({target:"Reflect",stat:!0,forced:o,sham:o},{construct:function(t,e,r){l(t),p(e);var i=arguments.length<3?t:l(r);if(m&&!f)return d(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(h.apply(t,n))}var a=i.prototype,o=u(c(a)?a:Object.prototype),s=Function.apply.call(t,o,e);return c(s)?s:o}})},function(t,e,r){var i=r(1),n=r(7),a=r(5),o=r(26),s=r(10);i({target:"Reflect",stat:!0,forced:r(2)(function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})}),sham:!n},{defineProperty:function(t,e,r){a(t);var i=o(e,!0);a(r);try{return s.f(t,i,r),!0}catch(t){return!1}}})},function(t,e,r){var i=r(1),n=r(5),a=r(16).f;i({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=a(n(t),e);return!(r&&!r.configurable)&&delete t[e]}})},function(t,e,r){var i=r(1),o=r(4),s=r(5),l=r(12),p=r(16),c=r(28);i({target:"Reflect",stat:!0},{get:function t(e,r){var i,n,a=arguments.length<3?e:arguments[2];return s(e)===a?e[r]:(i=p.f(e,r))?l(i,"value")?i.value:void 0===i.get?void 0:i.get.call(a):o(n=c(e))?t(n,r,a):void 0}})},function(t,e,r){var i=r(1),n=r(7),a=r(5),o=r(16);i({target:"Reflect",stat:!0,sham:!n},{getOwnPropertyDescriptor:function(t,e){return o.f(a(t),e)}})},function(t,e,r){var i=r(1),n=r(5),a=r(28);i({target:"Reflect",stat:!0,sham:!r(89)},{getPrototypeOf:function(t){return a(n(t))}})},function(t,e,r){r(1)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,r){var i=r(1),n=r(5),a=Object.isExtensible;i({target:"Reflect",stat:!0},{isExtensible:function(t){return n(t),!a||a(t)}})},function(t,e,r){r(1)({target:"Reflect",stat:!0},{ownKeys:r(84)})},function(t,e,r){var i=r(1),n=r(33),a=r(5);i({target:"Reflect",stat:!0,sham:!r(58)},{preventExtensions:function(t){a(t);try{var e=n("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,r){var i=r(1),l=r(5),p=r(4),c=r(12),u=r(10),h=r(16),d=r(28),f=r(39);i({target:"Reflect",stat:!0},{set:function t(e,r,i){var n,a,o=arguments.length<4?e:arguments[3],s=h.f(l(e),r);if(!s){if(p(a=d(e)))return t(a,r,i,o);s=f(0)}if(c(s,"value")){if(!1===s.writable||!p(o))return!1;if(n=h.f(o,r)){if(n.get||n.set||!1===n.writable)return!1;n.value=i,u.f(o,r,n)}else u.f(o,r,f(0,i));return!0}return void 0!==s.set&&(s.set.call(o,i),!0)}})},function(t,e,r){var i=r(1),n=r(5),a=r(117),o=r(45);o&&i({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){n(t),a(e);try{return o(t,e),!0}catch(t){return!1}}})},function(t,e,r){r(357),r(358),r(359),r(360),r(361),r(362),r(365),r(142),t.exports=r(44)},function(t,e,r){var i=r(3),n=r(140),a=r(122),o=r(14);for(var s in n){var l=i[s],p=l&&l.prototype;if(p&&p.forEach!==a)try{o(p,"forEach",a)}catch(t){p.forEach=a}}},function(t,e,r){var i=r(3),n=r(140),a=r(70),o=r(14),s=r(8),l=s("iterator"),p=s("toStringTag"),c=a.values;for(var u in n){var h=i[u],d=h&&h.prototype;if(d){if(d[l]!==c)try{o(d,l,c)}catch(t){d[l]=c}if(d[p]||o(d,p,u),n[u])for(var f in a)if(d[f]!==a[f])try{o(d,f,a[f])}catch(t){d[f]=a[f]}}}},function(t,e,r){var i=r(3),n=r(101),a=!i.setImmediate||!i.clearImmediate;r(1)({global:!0,bind:!0,enumerable:!0,forced:a},{setImmediate:n.set,clearImmediate:n.clear})},function(t,e,r){var i=r(1),n=r(3),a=r(132),o=r(25),s=n.process,l="process"==o(s);i({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){var e=l&&s.domain;a(e?e.bind(t):t)}})},function(t,e,r){function i(n){return function(t,e){var r=2<arguments.length,i=r?s.call(arguments,2):void 0;return n(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,e)}}var n=r(1),a=r(3),o=r(76),s=[].slice;n({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:i(a.setTimeout),setInterval:i(a.setInterval)})},function(t,e,r){"use strict";r(126);function b(t,e){var r,i,n;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return N;if(!(r=J(e.slice(1,-1))))return N;t.host=r}else if(it(t)){if(e=g(e),Y.test(e))return N;if(null===(r=q(e)))return N;t.host=r}else{if(X.test(e))return N;for(r="",i=I(e),n=0;n<i.length;n++)r+=et(i[n],Q);t.host=r}}function c(t){var e,r,i,n;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=D(t/256);return e.join(".")}if("object"!=typeof t)return t;for(e="",i=function(t){for(var e=null,r=1,i=null,n=0,a=0;a<8;a++)0!==t[a]?(r<n&&(e=i,r=n),i=null,n=0):(null===i&&(i=a),++n);return r<n&&(e=i,r=n),e}(t),r=0;r<8;r++)n&&0===t[r]||(n&&(n=!1),i===r?(e+=r?":":"::",n=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}function _(t){return""!=t.username||""!=t.password}function n(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme}function w(t,e){var r;return 2==t.length&&B.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)}function S(t){var e;return 1<t.length&&w(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)}function T(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&w(e[0],!0)||e.pop()}function u(t,e,r,i){var n,a,o,s,l,p,c=r||nt,u=0,h="",d=!1,f=!1,m=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(W,"")),e=e.replace(U,""),n=I(e);u<=n.length;){switch(a=n[u],c){case nt:if(!a||!B.test(a)){if(r)return R;c=ot;continue}h+=a.toLowerCase(),c=at;break;case at:if(a&&(j.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(r)return R;h="",c=ot,u=0;continue}if(r&&(it(t)!=k(rt,h)||"file"==h&&(_(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=h,r)return void(it(t)&&rt[t.scheme]==t.port&&(t.port=null));h="","file"==t.scheme?c=vt:it(t)&&i&&i.scheme==t.scheme?c=st:it(t)?c=ut:"/"==n[u+1]?(c=lt,u++):(t.cannotBeABaseURL=!0,t.path.push(""),c=wt)}break;case ot:if(!i||i.cannotBeABaseURL&&"#"!=a)return R;if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,c=Tt;break}c="file"==i.scheme?vt:pt;continue;case st:if("/"!=a||"/"!=n[u+1]){c=pt;continue}c=ht,u++;break;case lt:if("/"==a){c=dt;break}c=_t;continue;case pt:if(t.scheme=i.scheme,a==P)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&it(t))c=ct;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",c=St;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),c=_t;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",c=Tt}break;case ct:if(!it(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,c=_t;continue}c=dt}else c=ht;break;case ut:if(c=ht,"/"!=a||"/"!=h.charAt(u+1))continue;u++;break;case ht:if("/"==a||"\\"==a)break;c=dt;continue;case dt:if("@"==a){d&&(h="%40"+h),d=!0,o=I(h);for(var g=0;g<o.length;g++){var v=o[g];if(":"!=v||m){var y=et(v,tt);m?t.password+=y:t.username+=y}else m=!0}h=""}else if(a==P||"/"==a||"?"==a||"#"==a||"\\"==a&&it(t)){if(d&&""==h)return"Invalid authority";u-=I(h).length+1,h="",c=ft}else h+=a;break;case ft:case mt:if(r&&"file"==t.scheme){c=xt;continue}if(":"!=a||f){if(a==P||"/"==a||"?"==a||"#"==a||"\\"==a&&it(t)){if(it(t)&&""==h)return N;if(r&&""==h&&(_(t)||null!==t.port))return;if(s=b(t,h))return s;if(h="",c=bt,r)return;continue}"["==a?f=!0:"]"==a&&(f=!1),h+=a}else{if(""==h)return N;if(s=b(t,h))return s;if(h="",c=gt,r==mt)return}break;case gt:if(!$.test(a)){if(a==P||"/"==a||"?"==a||"#"==a||"\\"==a&&it(t)||r){if(""!=h){var x=parseInt(h,10);if(65535<x)return L;t.port=it(t)&&x===rt[t.scheme]?null:x,h=""}if(r)return;c=bt;continue}return L}h+=a;break;case vt:if(t.scheme="file","/"==a||"\\"==a)c=yt;else{if(!i||"file"!=i.scheme){c=_t;continue}if(a==P)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",c=St;else{if("#"!=a){S(n.slice(u).join(""))||(t.host=i.host,t.path=i.path.slice(),T(t)),c=_t;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",c=Tt}}break;case yt:if("/"==a||"\\"==a){c=xt;break}i&&"file"==i.scheme&&!S(n.slice(u).join(""))&&(w(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),c=_t;continue;case xt:if(a==P||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&w(h))c=_t;else if(""==h){if(t.host="",r)return;c=bt}else{if(s=b(t,h))return s;if("localhost"==t.host&&(t.host=""),r)return;h="",c=bt}continue}h+=a;break;case bt:if(it(t)){if(c=_t,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=P&&(c=_t,"/"!=a))continue}else t.fragment="",c=Tt;else t.query="",c=St;break;case _t:if(a==P||"/"==a||"\\"==a&&it(t)||!r&&("?"==a||"#"==a)){if(".."===(p=(p=h).toLowerCase())||"%2e."===p||".%2e"===p||"%2e%2e"===p?(T(t),"/"==a||"\\"==a&&it(t)||t.path.push("")):"."===(l=h)||"%2e"===l.toLowerCase()?"/"==a||"\\"==a&&it(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&w(h)&&(t.host&&(t.host=""),h=h.charAt(0)+":"),t.path.push(h)),h="","file"==t.scheme&&(a==P||"?"==a||"#"==a))for(;1<t.path.length&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",c=St):"#"==a&&(t.fragment="",c=Tt)}else h+=et(a,K);break;case wt:"?"==a?(t.query="",c=St):"#"==a?(t.fragment="",c=Tt):a!=P&&(t.path[0]+=et(a,Q));break;case St:r||"#"!=a?a!=P&&("'"==a&&it(t)?t.query+="%27":t.query+="#"==a?"%23":et(a,Q)):(t.fragment="",c=Tt);break;case Tt:a!=P&&(t.fragment+=et(a,Z))}u++}}function i(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}}var P,a=r(1),h=r(7),o=r(141),s=r(3),l=r(87),p=r(17),d=r(38),k=r(12),f=r(113),I=r(119),m=r(71).codeAt,g=r(363),v=r(27),y=r(142),x=r(20),A=s.URL,E=y.URLSearchParams,C=y.getState,O=x.set,M=x.getterFor("URL"),D=Math.floor,F=Math.pow,R="Invalid scheme",N="Invalid host",L="Invalid port",B=/[A-Za-z]/,j=/[\d+\-.A-Za-z]/,$=/\d/,V=/^(0x|0X)/,H=/^[0-7]+$/,z=/^\d+$/,G=/^[\dA-Fa-f]+$/,Y=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,X=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,W=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,U=/[\u0009\u000A\u000D]/g,q=function(t){var e,r,i,n,a,o,s,l=t.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),4<(e=l.length))return t;for(r=[],i=0;i<e;i++){if(""==(n=l[i]))return t;if(a=10,1<n.length&&"0"==n.charAt(0)&&(a=V.test(n)?16:8,n=n.slice(8==a?1:2)),""===n)o=0;else{if(!(10==a?z:8==a?H:G).test(n))return t;o=parseInt(n,a)}r.push(o)}for(i=0;i<e;i++)if(o=r[i],i==e-1){if(o>=F(256,5-e))return null}else if(255<o)return null;for(s=r.pop(),i=0;i<r.length;i++)s+=r[i]*F(256,3-i);return s},J=function(t){function e(){return t.charAt(h)}var r,i,n,a,o,s,l,p=[0,0,0,0,0,0,0,0],c=0,u=null,h=0;if(":"==e()){if(":"!=t.charAt(1))return;h+=2,u=++c}for(;e();){if(8==c)return;if(":"!=e()){for(r=i=0;i<4&&G.test(e());)r=16*r+parseInt(e(),16),h++,i++;if("."==e()){if(0==i)return;if(h-=i,6<c)return;for(n=0;e();){if(a=null,0<n){if(!("."==e()&&n<4))return;h++}if(!$.test(e()))return;for(;$.test(e());){if(o=parseInt(e(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(255<a)return;h++}p[c]=256*p[c]+a,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==e()){if(h++,!e())return}else if(e())return;p[c++]=r}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(s=c-u,c=7;0!=c&&0<s;)l=p[c],p[c--]=p[u+s-1],p[u+--s]=l;else if(8!=c)return;return p},Q={},Z=f({},Q,{" ":1,'"':1,"<":1,">":1,"`":1}),K=f({},Z,{"#":1,"?":1,"{":1,"}":1}),tt=f({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),et=function(t,e){var r=m(t,0);return 32<r&&r<127&&!k(e,t)?t:encodeURIComponent(t)},rt={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},it=function(t){return k(rt,t.scheme)},nt={},at={},ot={},st={},lt={},pt={},ct={},ut={},ht={},dt={},ft={},mt={},gt={},vt={},yt={},xt={},bt={},_t={},wt={},St={},Tt={},Pt=function(t,e){var r,i,n=d(this,Pt,"URL"),a=1<arguments.length?e:void 0,o=String(t),s=O(n,{type:"URL"});if(void 0!==a)if(a instanceof Pt)r=M(a);else if(i=u(r={},String(a)))throw TypeError(i);if(i=u(s,o,null,r))throw TypeError(i);var l=s.searchParams=new E,p=C(l);p.updateSearchParams(s.query),p.updateURL=function(){s.query=String(l)||null},h||(n.href=It.call(n),n.origin=At.call(n),n.protocol=Et.call(n),n.username=Ct.call(n),n.password=Ot.call(n),n.host=Mt.call(n),n.hostname=Dt.call(n),n.port=Ft.call(n),n.pathname=Rt.call(n),n.search=Nt.call(n),n.searchParams=Lt.call(n),n.hash=Bt.call(n))},kt=Pt.prototype,It=function(){var t=M(this),e=t.scheme,r=t.username,i=t.password,n=t.host,a=t.port,o=t.path,s=t.query,l=t.fragment,p=e+":";return null!==n?(p+="//",_(t)&&(p+=r+(i?":"+i:"")+"@"),p+=c(n),null!==a&&(p+=":"+a)):"file"==e&&(p+="//"),p+=t.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(p+="?"+s),null!==l&&(p+="#"+l),p},At=function(){var t=M(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&it(t)?e+"://"+c(t.host)+(null!==r?":"+r:""):"null"},Et=function(){return M(this).scheme+":"},Ct=function(){return M(this).username},Ot=function(){return M(this).password},Mt=function(){var t=M(this),e=t.host,r=t.port;return null===e?"":null===r?c(e):c(e)+":"+r},Dt=function(){var t=M(this).host;return null===t?"":c(t)},Ft=function(){var t=M(this).port;return null===t?"":String(t)},Rt=function(){var t=M(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Nt=function(){var t=M(this).query;return t?"?"+t:""},Lt=function(){return M(this).searchParams},Bt=function(){var t=M(this).fragment;return t?"#"+t:""};if(h&&l(kt,{href:i(It,function(t){var e=M(this),r=String(t),i=u(e,r);if(i)throw TypeError(i);C(e.searchParams).updateSearchParams(e.query)}),origin:i(At),protocol:i(Et,function(t){var e=M(this);u(e,String(t)+":",nt)}),username:i(Ct,function(t){var e=M(this),r=I(String(t));if(!n(e)){e.username="";for(var i=0;i<r.length;i++)e.username+=et(r[i],tt)}}),password:i(Ot,function(t){var e=M(this),r=I(String(t));if(!n(e)){e.password="";for(var i=0;i<r.length;i++)e.password+=et(r[i],tt)}}),host:i(Mt,function(t){var e=M(this);e.cannotBeABaseURL||u(e,String(t),ft)}),hostname:i(Dt,function(t){var e=M(this);e.cannotBeABaseURL||u(e,String(t),mt)}),port:i(Ft,function(t){var e=M(this);n(e)||(""==(t=String(t))?e.port=null:u(e,t,gt))}),pathname:i(Rt,function(t){var e=M(this);e.cannotBeABaseURL||(e.path=[],u(e,t+"",bt))}),search:i(Nt,function(t){var e=M(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",u(e,t,St)),C(e.searchParams).updateSearchParams(e.query)}),searchParams:i(Lt),hash:i(Bt,function(t){var e=M(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",u(e,t,Tt)):e.fragment=null})}),p(kt,"toJSON",function(){return It.call(this)},{enumerable:!0}),p(kt,"toString",function(){return It.call(this)},{enumerable:!0}),A){var jt=A.createObjectURL,$t=A.revokeObjectURL;jt&&p(Pt,"createObjectURL",function(t){return jt.apply(A,arguments)}),$t&&p(Pt,"revokeObjectURL",function(t){return $t.apply(A,arguments)})}v(Pt,"URL"),a({global:!0,forced:!o,sham:!h},{URL:Pt})},function(t,e,r){"use strict";function v(t){return t+22+75*(t<26)}function y(t,e,r){var i=0;for(t=r?_(t/700):t>>1,t+=_(t/e);455<t;i+=36)t=_(t/35);return _(i+36*t/(t+38))}function a(t){var e,r,i=[],n=(t=function(t){for(var e=[],r=0,i=t.length;r<i;){var n=t.charCodeAt(r++);if(55296<=n&&n<=56319&&r<i){var a=t.charCodeAt(r++);56320==(64512&a)?e.push(((1023&n)<<10)+(1023&a)+65536):(e.push(n),r--)}else e.push(n)}return e}(t)).length,a=128,o=0,s=72;for(e=0;e<t.length;e++)(r=t[e])<128&&i.push(w(r));var l=i.length,p=l;for(l&&i.push("-");p<n;){var c=x;for(e=0;e<t.length;e++)a<=(r=t[e])&&r<c&&(c=r);var u=p+1;if(c-a>_((x-o)/u))throw RangeError(b);for(o+=(c-a)*u,a=c,e=0;e<t.length;e++){if((r=t[e])<a&&++o>x)throw RangeError(b);if(r==a){for(var h=o,d=36;;d+=36){var f=d<=s?1:s+26<=d?26:d-s;if(h<f)break;var m=h-f,g=36-f;i.push(w(v(f+m%g))),h=_(m/g)}i.push(w(v(h))),s=y(o,u,p==l),o=0,++p}}++o,++a}return i.join("")}var x=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,b="Overflow: input needs wider integers to process",_=Math.floor,w=String.fromCharCode;t.exports=function(t){var e,r,i=[],n=t.toLowerCase().replace(s,".").split(".");for(e=0;e<n.length;e++)r=n[e],i.push(o.test(r)?"xn--"+a(r):r);return i.join(".")}},function(t,e,r){var i=r(5),n=r(61);t.exports=function(t){var e=n(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return i(e.call(t))}},function(t,e,r){"use strict";r(1)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e,r){var i=function(a){"use strict";var l,t=Object.prototype,p=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,r,i){var n=e&&e.prototype instanceof s?e:s,a=Object.create(n.prototype),o=new I(i||[]);return a._invoke=function(a,o,s){var l=u;return function(t,e){if(l===d)throw new Error("Generator is already running");if(l===f){if("throw"===t)throw e;return E()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r){var i=T(r,s);if(i){if(i===m)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===u)throw l=f,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=d;var n=c(a,o,s);if("normal"===n.type){if(l=s.done?f:h,n.arg===m)continue;return{value:n.arg,done:s.done}}"throw"===n.type&&(l=f,s.method="throw",s.arg=n.arg)}}}(t,r,o),a}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=o;var u="suspendedStart",h="suspendedYield",d="executing",f="completed",m={};function s(){}function g(){}function v(){}var y={};y[n]=function(){return this};var x=Object.getPrototypeOf,b=x&&x(x(A([])));b&&b!==t&&p.call(b,n)&&(y=b);var _=v.prototype=s.prototype=Object.create(y);function w(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function S(l){var e;this._invoke=function(r,i){function t(){return new Promise(function(t,e){!function e(t,r,i,n){var a=c(l[t],l,r);if("throw"!==a.type){var o=a.arg,s=o.value;return s&&"object"==typeof s&&p.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,n)},function(t){e("throw",t,i,n)}):Promise.resolve(s).then(function(t){o.value=t,i(o)},function(t){return e("throw",t,i,n)})}n(a.arg)}(r,i,t,e)})}return e=e?e.then(t,t):t()}}function T(t,e){var r=t.iterator[e.method];if(r===l){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=l,T(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=c(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var n=i.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=l),e.delegate=null,m):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(p.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=l,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:l,done:!0}}return g.prototype=_.constructor=v,v.constructor=g,v[i]=g.displayName="GeneratorFunction",a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,i in t||(t[i]="GeneratorFunction")),t.prototype=Object.create(_),t},a.awrap=function(t){return{__await:t}},w(S.prototype),S.prototype[r]=function(){return this},a.AsyncIterator=S,a.async=function(t,e,r,i){var n=new S(o(t,e,r,i));return a.isGeneratorFunction(e)?n:n.next().then(function(t){return t.done?t.value:n.next()})},w(_),_[i]="Generator",_[n]=function(){return this},_.toString=function(){return"[object Generator]"},a.keys=function(r){var i=[];for(var t in r)i.push(t);return i.reverse(),function t(){for(;i.length;){var e=i.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=A,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&p.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=l)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var i=this;function t(t,e){return a.type="throw",a.arg=r,i.next=t,e&&(i.method="next",i.arg=l),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e],a=n.completion;if("root"===n.tryLoc)return t("end");if(n.tryLoc<=this.prev){var o=p.call(n,"catchLoc"),s=p.call(n,"finallyLoc");if(o&&s){if(this.prev<n.catchLoc)return t(n.catchLoc,!0);if(this.prev<n.finallyLoc)return t(n.finallyLoc)}else if(o){if(this.prev<n.catchLoc)return t(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return t(n.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&p.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var n=i.arg;k(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=l),m}},a}(t.exports);try{regeneratorRuntime=i}catch(t){Function("r","regeneratorRuntime = r")(i)}},function(t,e,r){!function(t,e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var c="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},n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},r=function(){function i(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),t}}(),i=function t(e,r,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,r);if(void 0===n){var a=Object.getPrototypeOf(e);return null===a?void 0:t(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+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)},o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},s=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],i=!0,n=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(t){n=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(n)throw a}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)},p=function(){function e(t){n(this,e),this.selfOptions=t||{},this.pipes={}}return r(e,[{key:"options",value:function(t){return t&&(this.selfOptions=t),this.selfOptions}},{key:"pipe",value:function(t,e){var r=e;if("string"==typeof t){if(void 0===r)return this.pipes[t];this.pipes[t]=r}if(t&&t.name){if(r=t,r.processor===this)return r;this.pipes[r.name]=r}return r.processor=this,r}},{key:"process",value:function(t,e){var r=t;r.options=this.options();for(var i=e||t.pipe||"default",n=void 0,a=void 0;i;)void 0!==r.nextAfterChildren&&(r.next=r.nextAfterChildren,r.nextAfterChildren=null),"string"==typeof i&&(i=this.pipe(i)),i.process(r),n=i,i=null,(a=r)&&r.next&&(r=r.next,i=a.nextPipe||r.pipe||n);return r.hasResult?r.result:void 0}}]),e}(),u=function(){function e(t){n(this,e),this.name=t,this.filters=[]}return r(e,[{key:"process",value:function(t){if(!this.processor)throw new Error("add this pipe to a processor before using it");for(var e=this.debug,r=this.filters.length,i=t,n=0;n<r;n++){var a=this.filters[n];if(e&&this.log("filter: "+a.filterName),a(i),"object"===(void 0===i?"undefined":c(i))&&i.exiting){i.exiting=!1;break}}!i.next&&this.resultCheck&&this.resultCheck(i)}},{key:"log",value:function(t){console.log("[jsondiffpatch] "+this.name+" pipe, "+t)}},{key:"append",value:function(){var t;return(t=this.filters).push.apply(t,arguments),this}},{key:"prepend",value:function(){var t;return(t=this.filters).unshift.apply(t,arguments),this}},{key:"indexOf",value:function(t){if(!t)throw new Error("a filter name is required");for(var e=0;e<this.filters.length;e++){var r=this.filters[e];if(r.filterName===t)return e}throw new Error("filter not found: "+t)}},{key:"list",value:function(){return this.filters.map(function(t){return t.filterName})}},{key:"after",value:function(t){var e=this.indexOf(t),r=Array.prototype.slice.call(arguments,1);if(!r.length)throw new Error("a filter is required");return r.unshift(e+1,0),Array.prototype.splice.apply(this.filters,r),this}},{key:"before",value:function(t){var e=this.indexOf(t),r=Array.prototype.slice.call(arguments,1);if(!r.length)throw new Error("a filter is required");return r.unshift(e,0),Array.prototype.splice.apply(this.filters,r),this}},{key:"replace",value:function(t){var e=this.indexOf(t),r=Array.prototype.slice.call(arguments,1);if(!r.length)throw new Error("a filter is required");return r.unshift(e,1),Array.prototype.splice.apply(this.filters,r),this}},{key:"remove",value:function(t){var e=this.indexOf(t);return this.filters.splice(e,1),this}},{key:"clear",value:function(){return this.filters.length=0,this}},{key:"shouldHaveResult",value:function(t){if(!1!==t){if(!this.resultCheck){var r=this;return this.resultCheck=function(t){if(!t.hasResult){console.log(t);var e=new Error(r.name+" failed");throw e.noResult=!0,e}},this}}else this.resultCheck=null}}]),e}(),h=function(){function t(){n(this,t)}return r(t,[{key:"setResult",value:function(t){return this.result=t,this.hasResult=!0,this}},{key:"exit",value:function(){return this.exiting=!0,this}},{key:"switchTo",value:function(t,e){return"string"==typeof t||t instanceof u?this.nextPipe=t:(this.next=t,e&&(this.nextPipe=e)),this}},{key:"push",value:function(t,e){return t.parent=this,void 0!==e&&(t.childName=e),t.root=this.root||this,t.options=t.options||this.options,this.children?(this.children[this.children.length-1].next=t,this.children.push(t)):(this.children=[t],this.nextAfterChildren=this.next||null,this.next=t),t.next=this}}]),t}(),d="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array};function f(t){if("object"!==(void 0===t?"undefined":c(t)))return t;if(null===t)return null;if(d(t))return t.map(f);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return function(t){var e=/^\/(.*)\/([gimyu]*)$/.exec(t.toString());return new RegExp(e[1],e[2])}(t);var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=f(t[r]));return e}var S=function(t){function i(t,e){n(this,i);var r=o(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return r.left=t,r.right=e,r.pipe="diff",r}return a(i,t),r(i,[{key:"setResult",value:function(t){if(this.options.cloneDiffValues&&"object"===(void 0===t?"undefined":c(t))){var e="function"==typeof this.options.cloneDiffValues?this.options.cloneDiffValues:f;"object"===c(t[0])&&(t[0]=e(t[0])),"object"===c(t[1])&&(t[1]=e(t[1]))}return h.prototype.setResult.apply(this,arguments)}}]),i}(h),m=function(t){function i(t,e){n(this,i);var r=o(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return r.left=t,r.delta=e,r.pipe="patch",r}return a(i,t),i}(h),g=function(t){function r(t){n(this,r);var e=o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return e.delta=t,e.pipe="reverse",e}return a(r,t),r}(h),v="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array},y=function(t){if(t.left!==t.right)if(void 0!==t.left)if(void 0!==t.right){if("function"==typeof t.left||"function"==typeof t.right)throw new Error("functions are not supported");t.leftType=null===t.left?"null":c(t.left),t.rightType=null===t.right?"null":c(t.right),t.leftType===t.rightType&&"boolean"!==t.leftType&&"number"!==t.leftType?("object"===t.leftType&&(t.leftIsArray=v(t.left)),"object"===t.rightType&&(t.rightIsArray=v(t.right)),t.leftIsArray===t.rightIsArray?t.left instanceof RegExp&&(t.right instanceof RegExp?t.setResult([t.left.toString(),t.right.toString()]).exit():t.setResult([t.left,t.right]).exit()):t.setResult([t.left,t.right]).exit()):t.setResult([t.left,t.right]).exit()}else t.setResult([t.left,0,0]).exit();else{if("function"==typeof t.right)throw new Error("functions are not supported");t.setResult([t.right]).exit()}else t.setResult(void 0).exit()},x=function(t){if(void 0!==t.delta){if(t.nested=!v(t.delta),!t.nested)if(1!==t.delta.length)if(2!==t.delta.length)3===t.delta.length&&0===t.delta[2]&&t.setResult(void 0).exit();else{if(t.left instanceof RegExp){var e=/^\/(.*)\/([gimyu]+)$/.exec(t.delta[1]);if(e)return void t.setResult(new RegExp(e[1],e[2])).exit()}t.setResult(t.delta[1]).exit()}else t.setResult(t.delta[0]).exit()}else t.setResult(t.left).exit()},b=function(t){void 0!==t.delta?(t.nested=!v(t.delta),t.nested||(1!==t.delta.length?2!==t.delta.length?3===t.delta.length&&0===t.delta[2]&&t.setResult([t.delta[0]]).exit():t.setResult([t.delta[1],t.delta[0]]).exit():t.setResult([t.delta[0],0,0]).exit())):t.setResult(t.delta).exit()};function _(t){if(t&&t.children){for(var e=t.children.length,r=void 0,i=t.result,n=0;n<e;n++)void 0!==(r=t.children[n]).result&&((i=i||{})[r.childName]=r.result);i&&t.leftIsArray&&(i._t="a"),t.setResult(i).exit()}}function w(t){if(!t.leftIsArray&&"object"===t.leftType){var e=void 0,r=void 0,i=t.options.propertyFilter;for(e in t.left)Object.prototype.hasOwnProperty.call(t.left,e)&&(i&&!i(e,t)||(r=new S(t.left[e],t.right[e]),t.push(r,e)));for(e in t.right)Object.prototype.hasOwnProperty.call(t.right,e)&&(i&&!i(e,t)||void 0===t.left[e]&&(r=new S(void 0,t.right[e]),t.push(r,e)));t.children&&0!==t.children.length?t.exit():t.setResult(void 0).exit()}}b.filterName=x.filterName=y.filterName="trivial",_.filterName="collectChildren";var T=function(t){if(t.nested&&!t.delta._t){var e=void 0,r=void 0;for(e in t.delta)r=new m(t.left[e],t.delta[e]),t.push(r,e);t.exit()}};T.filterName=w.filterName="objects";var P=function(t){if(t&&t.children&&!t.delta._t){for(var e=t.children.length,r=void 0,i=0;i<e;i++)r=t.children[i],Object.prototype.hasOwnProperty.call(t.left,r.childName)&&void 0===r.result?delete t.left[r.childName]:t.left[r.childName]!==r.result&&(t.left[r.childName]=r.result);t.setResult(t.left).exit()}};P.filterName="collectChildren";var k=function(t){if(t.nested&&!t.delta._t){var e=void 0,r=void 0;for(e in t.delta)r=new g(t.delta[e]),t.push(r,e);t.exit()}};function I(t){if(t&&t.children&&!t.delta._t){for(var e=t.children.length,r=void 0,i={},n=0;n<e;n++)r=t.children[n],i[r.childName]!==r.result&&(i[r.childName]=r.result);t.setResult(i).exit()}}k.filterName="objects",I.filterName="collectChildren";var A=function(t,e,r,i){return t[r]===e[i]},E={get:function(t,e,r,i){var n=i||{},a=function(t,e,r,i){var n=t.length,a=e.length,o=void 0,s=void 0,l=[n+1];for(o=0;o<n+1;o++){l[o]=[a+1];for(s=0;s<a+1;s++){l[o][s]=0}}for(l.match=r,o=1;o<n+1;o++){for(s=1;s<a+1;s++){if(r(t,e,o-1,s-1,i)){l[o][s]=l[o-1][s-1]+1}else{l[o][s]=Math.max(l[o-1][s],l[o][s-1])}}}return l}(t,e,r||A,n),o=function t(e,r,i,n,a,o){if(n===0||a===0){return{sequence:[],indices1:[],indices2:[]}}if(e.match(r,i,n-1,a-1,o)){var s=t(e,r,i,n-1,a-1,o);s.sequence.push(r[n-1]);s.indices1.push(n-1);s.indices2.push(a-1);return s}if(e[n][a-1]>e[n-1][a]){return t(e,r,i,n,a-1,o)}else{return t(e,r,i,n-1,a,o)}}(a,t,e,t.length,e.length,n);return"string"==typeof t&&"string"==typeof e&&(o.sequence=o.sequence.join("")),o}},C="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array},O="function"==typeof Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i]===e)return i;return-1};function M(t,e,r,i,n){var a=t[r],o=e[i];if(a===o)return!0;if("object"!==(void 0===a?"undefined":c(a))||"object"!==(void 0===o?"undefined":c(o)))return!1;var s=n.objectHash;if(!s)return n.matchByPosition&&r===i;var l=void 0,p=void 0;return"number"==typeof r?(n.hashCache1=n.hashCache1||[],void 0===(l=n.hashCache1[r])&&(n.hashCache1[r]=l=s(a,r))):l=s(a),void 0!==l&&("number"==typeof i?(n.hashCache2=n.hashCache2||[],void 0===(p=n.hashCache2[i])&&(n.hashCache2[i]=p=s(o,i))):p=s(o),void 0!==p&&l===p)}var D=function(t){if(t.leftIsArray){var e={objectHash:t.options&&t.options.objectHash,matchByPosition:t.options&&t.options.matchByPosition},r=0,i=0,n=void 0,a=void 0,o=void 0,s=t.left,l=t.right,p=s.length,c=l.length,u=void 0;for(0<p&&0<c&&!e.objectHash&&"boolean"!=typeof e.matchByPosition&&(e.matchByPosition=!function(t,e,r,i){for(var n=0;n<r;n++)for(var a=t[n],o=0;o<i;o++){var s=e[o];if(n!==o&&a===s)return!0}}(s,l,p,c));r<p&&r<c&&M(s,l,r,r,e);)n=r,u=new S(t.left[n],t.right[n]),t.push(u,n),r++;for(;i+r<p&&i+r<c&&M(s,l,p-1-i,c-1-i,e);)a=p-1-i,o=c-1-i,u=new S(t.left[a],t.right[o]),t.push(u,o),i++;var h=void 0;if(r+i!==p)if(r+i!==c){delete e.hashCache1,delete e.hashCache2;var d=s.slice(r,p-i),f=l.slice(r,c-i),m=E.get(d,f,M,e),g=[];for(h=h||{_t:"a"},n=r;n<p-i;n++)O(m.indices1,n-r)<0&&(h["_"+n]=[s[n],0,0],g.push(n));var v=!0;t.options&&t.options.arrays&&!1===t.options.arrays.detectMove&&(v=!1);var y=!1;t.options&&t.options.arrays&&t.options.arrays.includeValueOnMove&&(y=!0);var x=g.length;for(n=r;n<c-i;n++){var b=O(m.indices2,n-r);if(b<0){var _=!1;if(v&&0<x)for(var w=0;w<x;w++)if(a=g[w],M(d,f,a-r,n-r,e)){h["_"+a].splice(1,2,n,3),y||(h["_"+a][0]=""),o=n,u=new S(t.left[a],t.right[o]),t.push(u,o),g.splice(w,1),_=!0;break}_||(h[n]=[l[n]])}else a=m.indices1[b]+r,o=m.indices2[b]+r,u=new S(t.left[a],t.right[o]),t.push(u,o)}t.setResult(h).exit()}else{for(h=h||{_t:"a"},n=r;n<p-i;n++)h["_"+n]=[s[n],0,0];t.setResult(h).exit()}else{if(p===c)return void t.setResult(void 0).exit();for(h=h||{_t:"a"},n=r;n<c-i;n++)h[n]=[l[n]];t.setResult(h).exit()}}},F={numerically:function(t,e){return t-e},numericallyBy:function(r){return function(t,e){return t[r]-e[r]}}},R=function(t){if(t.nested&&"a"===t.delta._t){var e=void 0,r=void 0,i=t.delta,n=t.left,a=[],o=[],s=[];for(e in i)if("_t"!==e)if("_"===e[0]){if(0!==i[e][2]&&3!==i[e][2])throw new Error("only removal or move can be applied at original array indices, invalid diff type: "+i[e][2]);a.push(parseInt(e.slice(1),10))}else 1===i[e].length?o.push({index:parseInt(e,10),value:i[e][0]}):s.push({index:parseInt(e,10),delta:i[e]});for(a=a.sort(F.numerically),e=a.length-1;0<=e;e--){r=a[e];var l=i["_"+r],p=n.splice(r,1)[0];3===l[2]&&o.push({index:l[1],value:p})}var c=(o=o.sort(F.numericallyBy("index"))).length;for(e=0;e<c;e++){var u=o[e];n.splice(u.index,0,u.value)}var h=s.length,d=void 0;if(0<h)for(e=0;e<h;e++){var f=s[e];d=new m(t.left[f.index],f.delta),t.push(d,f.index)}t.children?t.exit():t.setResult(t.left).exit()}};R.filterName=D.filterName="arrays";var N=function(t){if(t&&t.children&&"a"===t.delta._t){for(var e=t.children.length,r=void 0,i=0;i<e;i++)r=t.children[i],t.left[r.childName]=r.result;t.setResult(t.left).exit()}};N.filterName="arraysCollectChildren";var L=function(t){if(t.nested){if("a"===t.delta._t){var e=void 0,r=void 0;for(e in t.delta)"_t"!==e&&(r=new g(t.delta[e]),t.push(r,e));t.exit()}}else 3===t.delta[2]&&(t.newName="_"+t.delta[1],t.setResult([t.delta[0],parseInt(t.childName.substr(1),10),3]).exit())};L.filterName="arrays";var B=function(t,e,r){if("string"==typeof e&&"_"===e[0])return parseInt(e.substr(1),10);if(C(r)&&0===r[2])return"_"+e;var i=+e;for(var n in t){var a=t[n];if(C(a))if(3===a[2]){var o=parseInt(n.substr(1),10),s=a[1];if(s===+e)return o;o<=i&&i<s?i++:i<=o&&s<i&&i--}else if(0===a[2]){var l=parseInt(n.substr(1),10);l<=i&&i++}else 1===a.length&&n<=i&&i--}return i};function j(t){if(t&&t.children&&"a"===t.delta._t){for(var e=t.children.length,r=void 0,i={_t:"a"},n=0;n<e;n++){var a=(r=t.children[n]).newName;void 0===a&&(a=B(t.delta,r.childName,r.result)),i[a]!==r.result&&(i[a]=r.result)}t.setResult(i).exit()}}j.filterName="arraysCollectChildren";var $=function(t){t.left instanceof Date?(t.right instanceof Date?t.left.getTime()!==t.right.getTime()?t.setResult([t.left,t.right]):t.setResult(void 0):t.setResult([t.left,t.right]),t.exit()):t.right instanceof Date&&t.setResult([t.left,t.right]).exit()};$.filterName="dates";var V=function(t,e){return t(e={exports:{}},e.exports),e.exports}(function(t){function m(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}m.prototype.diff_main=function(t,e,r,i){void 0===i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var n=i;if(null==t||null==e)throw new Error("Null input. (diff_main)");if(t==e)return t?[[0,t]]:[];void 0===r&&(r=!0);var a=r,o=this.diff_commonPrefix(t,e),s=t.substring(0,o);t=t.substring(o),e=e.substring(o),o=this.diff_commonSuffix(t,e);var l=t.substring(t.length-o);t=t.substring(0,t.length-o),e=e.substring(0,e.length-o);var p=this.diff_compute_(t,e,a,n);return s&&p.unshift([0,s]),l&&p.push([0,l]),this.diff_cleanupMerge(p),p},m.prototype.diff_compute_=function(t,e,r,i){var n;if(!t)return[[1,e]];if(!e)return[[-1,t]];var a=t.length>e.length?t:e,o=t.length>e.length?e:t,s=a.indexOf(o);if(-1!=s)return n=[[1,a.substring(0,s)],[0,o],[1,a.substring(s+o.length)]],t.length>e.length&&(n[0][0]=n[2][0]=-1),n;if(1==o.length)return[[-1,t],[1,e]];var l=this.diff_halfMatch_(t,e);if(l){var p=l[0],c=l[1],u=l[2],h=l[3],d=l[4],f=this.diff_main(p,u,r,i),m=this.diff_main(c,h,r,i);return f.concat([[0,d]],m)}return r&&100<t.length&&100<e.length?this.diff_lineMode_(t,e,i):this.diff_bisect_(t,e,i)},m.prototype.diff_lineMode_=function(t,e,r){var i=this.diff_linesToChars_(t,e);t=i.chars1,e=i.chars2;var n=i.lineArray,a=this.diff_main(t,e,!1,r);this.diff_charsToLines_(a,n),this.diff_cleanupSemantic(a),a.push([0,""]);for(var o=0,s=0,l=0,p="",c="";o<a.length;){switch(a[o][0]){case 1:l++,c+=a[o][1];break;case-1:s++,p+=a[o][1];break;case 0:if(1<=s&&1<=l){a.splice(o-s-l,s+l),o=o-s-l;for(var i=this.diff_main(p,c,!1,r),u=i.length-1;0<=u;u--)a.splice(o,0,i[u]);o+=i.length}s=l=0,c=p=""}o++}return a.pop(),a},m.prototype.diff_bisect_=function(t,e,r){for(var i=t.length,n=e.length,a=Math.ceil((i+n)/2),o=a,s=2*a,l=new Array(s),p=new Array(s),c=0;c<s;c++)l[c]=-1,p[c]=-1;l[o+1]=0,p[o+1]=0;for(var u=i-n,h=u%2!=0,d=0,f=0,m=0,g=0,v=0;v<a&&!((new Date).getTime()>r);v++){for(var y=-v+d;y<=v-f;y+=2){for(var x=o+y,b=(P=y==-v||y!=v&&l[x-1]<l[x+1]?l[x+1]:l[x-1]+1)-y;P<i&&b<n&&t.charAt(P)==e.charAt(b);)P++,b++;if(l[x]=P,i<P)f+=2;else if(n<b)d+=2;else if(h){var _=o+u-y;if(0<=_&&_<s&&-1!=p[_]){var w=i-p[_];if(w<=P)return this.diff_bisectSplit_(t,e,P,b,r)}}}for(var S=-v+m;S<=v-g;S+=2){for(var _=o+S,T=(w=S==-v||S!=v&&p[_-1]<p[_+1]?p[_+1]:p[_-1]+1)-S;w<i&&T<n&&t.charAt(i-w-1)==e.charAt(n-T-1);)w++,T++;if(p[_]=w,i<w)g+=2;else if(n<T)m+=2;else if(!h){var x=o+u-S;if(0<=x&&x<s&&-1!=l[x]){var P=l[x],b=o+P-x;if((w=i-w)<=P)return this.diff_bisectSplit_(t,e,P,b,r)}}}}return[[-1,t],[1,e]]},m.prototype.diff_bisectSplit_=function(t,e,r,i,n){var a=t.substring(0,r),o=e.substring(0,i),s=t.substring(r),l=e.substring(i),p=this.diff_main(a,o,!1,n),c=this.diff_main(s,l,!1,n);return p.concat(c)},m.prototype.diff_linesToChars_=function(t,e){var o=[],s={};function r(t){for(var e="",r=0,i=-1,n=o.length;i<t.length-1;){-1==(i=t.indexOf("\n",r))&&(i=t.length-1);var a=t.substring(r,i+1);r=i+1,(s.hasOwnProperty?s.hasOwnProperty(a):void 0!==s[a])?e+=String.fromCharCode(s[a]):(e+=String.fromCharCode(n),s[a]=n,o[n++]=a)}return e}o[0]="";var i=r(t),n=r(e);return{chars1:i,chars2:n,lineArray:o}},m.prototype.diff_charsToLines_=function(t,e){for(var r=0;r<t.length;r++){for(var i=t[r][1],n=[],a=0;a<i.length;a++)n[a]=e[i.charCodeAt(a)];t[r][1]=n.join("")}},m.prototype.diff_commonPrefix=function(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var r=0,i=Math.min(t.length,e.length),n=i,a=0;r<n;)t.substring(a,n)==e.substring(a,n)?a=r=n:i=n,n=Math.floor((i-r)/2+r);return n},m.prototype.diff_commonSuffix=function(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var r=0,i=Math.min(t.length,e.length),n=i,a=0;r<n;)t.substring(t.length-n,t.length-a)==e.substring(e.length-n,e.length-a)?a=r=n:i=n,n=Math.floor((i-r)/2+r);return n},m.prototype.diff_commonOverlap_=function(t,e){var r=t.length,i=e.length;if(0==r||0==i)return 0;i<r?t=t.substring(r-i):r<i&&(e=e.substring(0,r));var n=Math.min(r,i);if(t==e)return n;for(var a=0,o=1;;){var s=t.substring(n-o),l=e.indexOf(s);if(-1==l)return a;o+=l,0!=l&&t.substring(n-o)!=e.substring(0,o)||(a=o,o++)}},m.prototype.diff_halfMatch_=function(t,e){if(this.Diff_Timeout<=0)return null;var r=t.length>e.length?t:e,i=t.length>e.length?e:t;if(r.length<4||2*i.length<r.length)return null;var h=this;function n(t,e,r){for(var i,n,a,o,s=t.substring(r,r+Math.floor(t.length/4)),l=-1,p="";-1!=(l=e.indexOf(s,l+1));){var c=h.diff_commonPrefix(t.substring(r),e.substring(l)),u=h.diff_commonSuffix(t.substring(0,r),e.substring(0,l));p.length<u+c&&(p=e.substring(l-u,l)+e.substring(l,l+c),i=t.substring(0,r-u),n=t.substring(r+c),a=e.substring(0,l-u),o=e.substring(l+c))}return 2*p.length>=t.length?[i,n,a,o,p]:null}var a,o,s,l,p,c=n(r,i,Math.ceil(r.length/4)),u=n(r,i,Math.ceil(r.length/2));if(!c&&!u)return null;a=u?c&&c[4].length>u[4].length?c:u:c,t.length>e.length?(o=a[0],s=a[1],l=a[2],p=a[3]):(l=a[0],p=a[1],o=a[2],s=a[3]);var d=a[4];return[o,s,l,p,d]},m.prototype.diff_cleanupSemantic=function(t){for(var e=!1,r=[],i=0,n=null,a=0,o=0,s=0,l=0,p=0;a<t.length;)0==t[a][0]?(r[i++]=a,o=l,s=p,p=l=0,n=t[a][1]):(1==t[a][0]?l+=t[a][1].length:p+=t[a][1].length,n&&n.length<=Math.max(o,s)&&n.length<=Math.max(l,p)&&(t.splice(r[i-1],0,[-1,n]),t[r[i-1]+1][0]=1,i--,a=0<--i?r[i-1]:-1,p=l=s=o=0,e=!(n=null))),a++;for(e&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),a=1;a<t.length;){if(-1==t[a-1][0]&&1==t[a][0]){var c=t[a-1][1],u=t[a][1],h=this.diff_commonOverlap_(c,u),d=this.diff_commonOverlap_(u,c);d<=h?(h>=c.length/2||h>=u.length/2)&&(t.splice(a,0,[0,u.substring(0,h)]),t[a-1][1]=c.substring(0,c.length-h),t[a+1][1]=u.substring(h),a++):(d>=c.length/2||d>=u.length/2)&&(t.splice(a,0,[0,c.substring(0,d)]),t[a-1][0]=1,t[a-1][1]=u.substring(0,u.length-d),t[a+1][0]=-1,t[a+1][1]=c.substring(d),a++),a++}a++}},m.prototype.diff_cleanupSemanticLossless=function(t){function e(t,e){if(!t||!e)return 6;var r=t.charAt(t.length-1),i=e.charAt(0),n=r.match(m.nonAlphaNumericRegex_),a=i.match(m.nonAlphaNumericRegex_),o=n&&r.match(m.whitespaceRegex_),s=a&&i.match(m.whitespaceRegex_),l=o&&r.match(m.linebreakRegex_),p=s&&i.match(m.linebreakRegex_),c=l&&t.match(m.blanklineEndRegex_),u=p&&e.match(m.blanklineStartRegex_);return c||u?5:l||p?4:n&&!o&&s?3:o||s?2:n||a?1:0}for(var r=1;r<t.length-1;){if(0==t[r-1][0]&&0==t[r+1][0]){var i=t[r-1][1],n=t[r][1],a=t[r+1][1],o=this.diff_commonSuffix(i,n);if(o){var s=n.substring(n.length-o);i=i.substring(0,i.length-o),n=s+n.substring(0,n.length-o),a=s+a}for(var l=i,p=n,c=a,u=e(i,n)+e(n,a);n.charAt(0)===a.charAt(0);){i+=n.charAt(0),n=n.substring(1)+a.charAt(0),a=a.substring(1);var h=e(i,n)+e(n,a);u<=h&&(u=h,l=i,p=n,c=a)}t[r-1][1]!=l&&(l?t[r-1][1]=l:(t.splice(r-1,1),r--),t[r][1]=p,c?t[r+1][1]=c:(t.splice(r+1,1),r--))}r++}},m.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,m.whitespaceRegex_=/\s/,m.linebreakRegex_=/[\r\n]/,m.blanklineEndRegex_=/\n\r?\n$/,m.blanklineStartRegex_=/^\r?\n\r?\n/,m.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,r=[],i=0,n=null,a=0,o=!1,s=!1,l=!1,p=!1;a<t.length;)0==t[a][0]?(n=t[a][1].length<this.Diff_EditCost&&(l||p)?(r[i++]=a,o=l,s=p,t[a][1]):(i=0,null),l=p=!1):(-1==t[a][0]?p=!0:l=!0,n&&(o&&s&&l&&p||n.length<this.Diff_EditCost/2&&o+s+l+p==3)&&(t.splice(r[i-1],0,[-1,n]),t[r[i-1]+1][0]=1,i--,n=null,o&&s?(l=p=!0,i=0):(a=0<--i?r[i-1]:-1,l=p=!1),e=!0)),a++;e&&this.diff_cleanupMerge(t)},m.prototype.diff_cleanupMerge=function(t){t.push([0,""]);for(var e,r=0,i=0,n=0,a="",o="";r<t.length;)switch(t[r][0]){case 1:n++,o+=t[r][1],r++;break;case-1:i++,a+=t[r][1],r++;break;case 0:1<i+n?(0!==i&&0!==n&&(0!==(e=this.diff_commonPrefix(o,a))&&(0<r-i-n&&0==t[r-i-n-1][0]?t[r-i-n-1][1]+=o.substring(0,e):(t.splice(0,0,[0,o.substring(0,e)]),r++),o=o.substring(e),a=a.substring(e)),0!==(e=this.diff_commonSuffix(o,a))&&(t[r][1]=o.substring(o.length-e)+t[r][1],o=o.substring(0,o.length-e),a=a.substring(0,a.length-e))),0===i?t.splice(r-n,i+n,[1,o]):0===n?t.splice(r-i,i+n,[-1,a]):t.splice(r-i-n,i+n,[-1,a],[1,o]),r=r-i-n+(i?1:0)+(n?1:0)+1):0!==r&&0==t[r-1][0]?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,i=n=0,o=a=""}""===t[t.length-1][1]&&t.pop();var s=!1;for(r=1;r<t.length-1;)0==t[r-1][0]&&0==t[r+1][0]&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)==t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),s=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),s=!0)),r++;s&&this.diff_cleanupMerge(t)},m.prototype.diff_xIndex=function(t,e){var r,i=0,n=0,a=0,o=0;for(r=0;r<t.length&&(1!==t[r][0]&&(i+=t[r][1].length),-1!==t[r][0]&&(n+=t[r][1].length),!(e<i));r++)a=i,o=n;return t.length!=r&&-1===t[r][0]?o:o+(e-a)},m.prototype.diff_prettyHtml=function(t){for(var e=[],r=/&/g,i=/</g,n=/>/g,a=/\n/g,o=0;o<t.length;o++){var s=t[o][0],l=t[o][1],p=l.replace(r,"&amp;").replace(i,"&lt;").replace(n,"&gt;").replace(a,"&para;<br>");switch(s){case 1:e[o]='<ins style="background:#e6ffe6;">'+p+"</ins>";break;case-1:e[o]='<del style="background:#ffe6e6;">'+p+"</del>";break;case 0:e[o]="<span>"+p+"</span>"}}return e.join("")},m.prototype.diff_text1=function(t){for(var e=[],r=0;r<t.length;r++)1!==t[r][0]&&(e[r]=t[r][1]);return e.join("")},m.prototype.diff_text2=function(t){for(var e=[],r=0;r<t.length;r++)-1!==t[r][0]&&(e[r]=t[r][1]);return e.join("")},m.prototype.diff_levenshtein=function(t){for(var e=0,r=0,i=0,n=0;n<t.length;n++){var a=t[n][0],o=t[n][1];switch(a){case 1:r+=o.length;break;case-1:i+=o.length;break;case 0:e+=Math.max(r,i),i=r=0}}return e+=Math.max(r,i)},m.prototype.diff_toDelta=function(t){for(var e=[],r=0;r<t.length;r++)switch(t[r][0]){case 1:e[r]="+"+encodeURI(t[r][1]);break;case-1:e[r]="-"+t[r][1].length;break;case 0:e[r]="="+t[r][1].length}return e.join("\t").replace(/%20/g," ")},m.prototype.diff_fromDelta=function(t,e){for(var r=[],i=0,n=0,a=e.split(/\t/g),o=0;o<a.length;o++){var s=a[o].substring(1);switch(a[o].charAt(0)){case"+":try{r[i++]=[1,decodeURI(s)]}catch(t){throw new Error("Illegal escape in diff_fromDelta: "+s)}break;case"-":case"=":var l=parseInt(s,10);if(isNaN(l)||l<0)throw new Error("Invalid number in diff_fromDelta: "+s);var p=t.substring(n,n+=l);"="==a[o].charAt(0)?r[i++]=[0,p]:r[i++]=[-1,p];break;default:if(a[o])throw new Error("Invalid diff operation in diff_fromDelta: "+a[o])}}if(n!=t.length)throw new Error("Delta length ("+n+") does not equal source text length ("+t.length+").");return r},m.prototype.match_main=function(t,e,r){if(null==t||null==e||null==r)throw new Error("Null input. (match_main)");return r=Math.max(0,Math.min(r,t.length)),t==e?0:t.length?t.substring(r,r+e.length)==e?r:this.match_bitap_(t,e,r):-1},m.prototype.match_bitap_=function(t,n,a){if(n.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var e=this.match_alphabet_(n),o=this;function r(t,e){var r=t/n.length,i=Math.abs(a-e);return o.Match_Distance?r+i/o.Match_Distance:i?1:r}var i=this.Match_Threshold,s=t.indexOf(n,a);-1!=s&&(i=Math.min(r(0,s),i),-1!=(s=t.lastIndexOf(n,a+n.length))&&(i=Math.min(r(0,s),i)));var l,p,c=1<<n.length-1;s=-1;for(var u,h=n.length+t.length,d=0;d<n.length;d++){for(l=0,p=h;l<p;)r(d,a+p)<=i?l=p:h=p,p=Math.floor((h-l)/2+l);h=p;var f=Math.max(1,a-p+1),m=Math.min(a+p,t.length)+n.length,g=Array(m+2);g[m+1]=(1<<d)-1;for(var v=m;f<=v;v--){var y=e[t.charAt(v-1)];if(g[v]=0===d?(g[v+1]<<1|1)&y:(g[v+1]<<1|1)&y|(u[v+1]|u[v])<<1|1|u[v+1],g[v]&c){var x=r(d,v-1);if(x<=i){if(i=x,!(a<(s=v-1)))break;f=Math.max(1,2*a-s)}}}if(r(d+1,a)>i)break;u=g}return s},m.prototype.match_alphabet_=function(t){for(var e={},r=0;r<t.length;r++)e[t.charAt(r)]=0;for(var r=0;r<t.length;r++)e[t.charAt(r)]|=1<<t.length-r-1;return e},m.prototype.patch_addContext_=function(t,e){if(0!=e.length){for(var r=e.substring(t.start2,t.start2+t.length1),i=0;e.indexOf(r)!=e.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,r=e.substring(t.start2-i,t.start2+t.length1+i);i+=this.Patch_Margin;var n=e.substring(t.start2-i,t.start2);n&&t.diffs.unshift([0,n]);var a=e.substring(t.start2+t.length1,t.start2+t.length1+i);a&&t.diffs.push([0,a]),t.start1-=n.length,t.start2-=n.length,t.length1+=n.length+a.length,t.length2+=n.length+a.length}},m.prototype.patch_make=function(t,e,r){var i,n;if("string"==typeof t&&"string"==typeof e&&void 0===r)i=t,2<(n=this.diff_main(i,e,!0)).length&&(this.diff_cleanupSemantic(n),this.diff_cleanupEfficiency(n));else if(t&&"object"==typeof t&&void 0===e&&void 0===r)n=t,i=this.diff_text1(n);else if("string"==typeof t&&e&&"object"==typeof e&&void 0===r)i=t,n=e;else{if("string"!=typeof t||"string"!=typeof e||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");i=t,n=r}if(0===n.length)return[];for(var a=[],o=new m.patch_obj,s=0,l=0,p=0,c=i,u=i,h=0;h<n.length;h++){var d=n[h][0],f=n[h][1];switch(s||0===d||(o.start1=l,o.start2=p),d){case 1:o.diffs[s++]=n[h],o.length2+=f.length,u=u.substring(0,p)+f+u.substring(p);break;case-1:o.length1+=f.length,o.diffs[s++]=n[h],u=u.substring(0,p)+u.substring(p+f.length);break;case 0:f.length<=2*this.Patch_Margin&&s&&n.length!=h+1?(o.diffs[s++]=n[h],o.length1+=f.length,o.length2+=f.length):f.length>=2*this.Patch_Margin&&s&&(this.patch_addContext_(o,c),a.push(o),o=new m.patch_obj,s=0,c=u,l=p)}1!==d&&(l+=f.length),-1!==d&&(p+=f.length)}return s&&(this.patch_addContext_(o,c),a.push(o)),a},m.prototype.patch_deepCopy=function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r],n=new m.patch_obj;n.diffs=[];for(var a=0;a<i.diffs.length;a++)n.diffs[a]=i.diffs[a].slice();n.start1=i.start1,n.start2=i.start2,n.length1=i.length1,n.length2=i.length2,e[r]=n}return e},m.prototype.patch_apply=function(t,e){if(0==t.length)return[e,[]];t=this.patch_deepCopy(t);var r=this.patch_addPadding(t);e=r+e+r,this.patch_splitMax(t);for(var i=0,n=[],a=0;a<t.length;a++){var o,s,l=t[a].start2+i,p=this.diff_text1(t[a].diffs),c=-1;if(p.length>this.Match_MaxBits?-1!=(o=this.match_main(e,p.substring(0,this.Match_MaxBits),l))&&(-1==(c=this.match_main(e,p.substring(p.length-this.Match_MaxBits),l+p.length-this.Match_MaxBits))||c<=o)&&(o=-1):o=this.match_main(e,p,l),-1==o)n[a]=!1,i-=t[a].length2-t[a].length1;else if(n[a]=!0,i=o-l,s=-1==c?e.substring(o,o+p.length):e.substring(o,c+this.Match_MaxBits),p==s)e=e.substring(0,o)+this.diff_text2(t[a].diffs)+e.substring(o+p.length);else{var u=this.diff_main(p,s,!1);if(p.length>this.Match_MaxBits&&this.diff_levenshtein(u)/p.length>this.Patch_DeleteThreshold)n[a]=!1;else{this.diff_cleanupSemanticLossless(u);for(var h,d=0,f=0;f<t[a].diffs.length;f++){var m=t[a].diffs[f];0!==m[0]&&(h=this.diff_xIndex(u,d)),1===m[0]?e=e.substring(0,o+h)+m[1]+e.substring(o+h):-1===m[0]&&(e=e.substring(0,o+h)+e.substring(o+this.diff_xIndex(u,d+m[1].length))),-1!==m[0]&&(d+=m[1].length)}}}}return[e=e.substring(r.length,e.length-r.length),n]},m.prototype.patch_addPadding=function(t){for(var e=this.Patch_Margin,r="",i=1;i<=e;i++)r+=String.fromCharCode(i);for(var i=0;i<t.length;i++)t[i].start1+=e,t[i].start2+=e;var n=t[0],a=n.diffs;if(0==a.length||0!=a[0][0])a.unshift([0,r]),n.start1-=e,n.start2-=e,n.length1+=e,n.length2+=e;else if(e>a[0][1].length){var o=e-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],n.start1-=o,n.start2-=o,n.length1+=o,n.length2+=o}if(n=t[t.length-1],0==(a=n.diffs).length||0!=a[a.length-1][0])a.push([0,r]),n.length1+=e,n.length2+=e;else if(e>a[a.length-1][1].length){var o=e-a[a.length-1][1].length;a[a.length-1][1]+=r.substring(0,o),n.length1+=o,n.length2+=o}return r},m.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,r=0;r<t.length;r++)if(!(t[r].length1<=e)){var i=t[r];t.splice(r--,1);for(var n=i.start1,a=i.start2,o="";0!==i.diffs.length;){var s=new m.patch_obj,l=!0;for(s.start1=n-o.length,s.start2=a-o.length,""!==o&&(s.length1=s.length2=o.length,s.diffs.push([0,o]));0!==i.diffs.length&&s.length1<e-this.Patch_Margin;){var p=i.diffs[0][0],c=i.diffs[0][1];1===p?(s.length2+=c.length,a+=c.length,s.diffs.push(i.diffs.shift()),l=!1):-1===p&&1==s.diffs.length&&0==s.diffs[0][0]&&c.length>2*e?(s.length1+=c.length,n+=c.length,l=!1,s.diffs.push([p,c]),i.diffs.shift()):(c=c.substring(0,e-s.length1-this.Patch_Margin),s.length1+=c.length,n+=c.length,0===p?(s.length2+=c.length,a+=c.length):l=!1,s.diffs.push([p,c]),c==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(c.length))}o=(o=this.diff_text2(s.diffs)).substring(o.length-this.Patch_Margin);var u=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==u&&(s.length1+=u.length,s.length2+=u.length,0!==s.diffs.length&&0===s.diffs[s.diffs.length-1][0]?s.diffs[s.diffs.length-1][1]+=u:s.diffs.push([0,u])),l||t.splice(++r,0,s)}}},m.prototype.patch_toText=function(t){for(var e=[],r=0;r<t.length;r++)e[r]=t[r];return e.join("")},m.prototype.patch_fromText=function(t){var e=[];if(!t)return e;for(var r=t.split("\n"),i=0,n=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<r.length;){var a=r[i].match(n);if(!a)throw new Error("Invalid patch string: "+r[i]);var o=new m.patch_obj;for(e.push(o),o.start1=parseInt(a[1],10),""===a[2]?(o.start1--,o.length1=1):"0"==a[2]?o.length1=0:(o.start1--,o.length1=parseInt(a[2],10)),o.start2=parseInt(a[3],10),""===a[4]?(o.start2--,o.length2=1):"0"==a[4]?o.length2=0:(o.start2--,o.length2=parseInt(a[4],10)),i++;i<r.length;){var s=r[i].charAt(0);try{var l=decodeURI(r[i].substring(1))}catch(t){throw new Error("Illegal escape in patch_fromText: "+l)}if("-"==s)o.diffs.push([-1,l]);else if("+"==s)o.diffs.push([1,l]);else if(" "==s)o.diffs.push([0,l]);else{if("@"==s)break;if(""!==s)throw new Error('Invalid patch mode "'+s+'" in: '+l)}i++}}return e},(m.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){var t,e;t=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1,e=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2;for(var r,i=["@@ -"+t+" +"+e+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" "}i[n+1]=r+encodeURI(this.diffs[n][1])+"\n"}return i.join("").replace(/%20/g," ")},t.exports=m,t.exports.diff_match_patch=m,t.exports.DIFF_DELETE=-1,t.exports.DIFF_INSERT=1,t.exports.DIFF_EQUAL=0}),H=null,z=function(t){if(!H){var a=void 0;if("undefined"!=typeof diff_match_patch)a="function"==typeof diff_match_patch?new diff_match_patch:new diff_match_patch.diff_match_patch;else if(V)try{a=V&&new V}catch(t){a=null}if(!a){if(!t)return null;var e=new Error("text diff_match_patch library not found");throw e.diff_match_patch_not_found=!0,e}H={diff:function(t,e){return a.patch_toText(a.patch_make(t,e))},patch:function(t,e){for(var r=a.patch_apply(a.patch_fromText(e),t),i=0;i<r[1].length;i++)if(!r[1][i]){var n=new Error("text patch failed");n.textPatchFailed=!0}return r[0]}}}return H},G=function(t){if("string"===t.leftType){var e=t.options&&t.options.textDiff&&t.options.textDiff.minLength||60;if(t.left.length<e||t.right.length<e)t.setResult([t.left,t.right]).exit();else{var r=z();if(r){var i=r.diff;t.setResult([i(t.left,t.right),0,2]).exit()}else t.setResult([t.left,t.right]).exit()}}},Y=function(t){if(!t.nested&&2===t.delta[2]){var e=z(!0).patch;t.setResult(e(t.left,t.delta[0])).exit()}},X=function(t){t.nested||2===t.delta[2]&&t.setResult([function(t){var e=void 0,r=void 0,i=void 0,n=void 0,a=void 0,o=null,s=/^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/,l=void 0;for(i=t.split("\n"),e=0,r=i.length;e<r;e++){n=i[e];var p=n.slice(0,1);if(p==="@"){o=s.exec(n);l=e;i[l]="@@ -"+o[3]+","+o[4]+" +"+o[1]+","+o[2]+" @@"}else if(p==="+"){i[e]="-"+i[e].slice(1);if(i[e-1].slice(0,1)==="+"){a=i[e];i[e]=i[e-1];i[e-1]=a}}else if(p==="-"){i[e]="+"+i[e].slice(1)}}return i.join("\n")}(t.delta[0]),0,2]).exit()};X.filterName=Y.filterName=G.filterName="texts";var W=function(){function e(t){n(this,e),this.processor=new p(t),this.processor.pipe(new u("diff").append(_,y,$,G,w,D).shouldHaveResult()),this.processor.pipe(new u("patch").append(P,N,x,Y,T,R).shouldHaveResult()),this.processor.pipe(new u("reverse").append(I,j,b,X,k,L).shouldHaveResult())}return r(e,[{key:"options",value:function(){var t;return(t=this.processor).options.apply(t,arguments)}},{key:"diff",value:function(t,e){return this.processor.process(new S(t,e))}},{key:"patch",value:function(t,e){return this.processor.process(new m(t,e))}},{key:"reverse",value:function(t){return this.processor.process(new g(t))}},{key:"unpatch",value:function(t,e){return this.patch(t,this.reverse(e))}},{key:"clone",value:function(t){return f(t)}}]),e}(),U="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array},q="function"==typeof Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e},J=function(t){return"_"===t.substr(0,1)?t.slice(1):t},Q=function(t){return"_t"===t?-1:"_"===t.substr(0,1)?parseInt(t.slice(1),10):parseInt(t,10)+.1},Z=function(t,e){return Q(t)-Q(e)},K=function(){function t(){n(this,t)}return r(t,[{key:"format",value:function(t,e){var r={};return this.prepareContext(r),this.recurse(r,t,e),this.finalize(r)}},{key:"prepareContext",value:function(t){t.buffer=[],t.out=function(){var t;(t=this.buffer).push.apply(t,arguments)}}},{key:"typeFormattterNotFound",value:function(t,e){throw new Error("cannot format delta type: "+e)}},{key:"typeFormattterErrorFormatter",value:function(t,e){return e.toString()}},{key:"finalize",value:function(t){var e=t.buffer;if(U(e))return e.join("")}},{key:"recurse",value:function(e,r,t,i,n,a,o){var s=r&&a,l=s?a.value:t;if(void 0!==r||void 0!==i){var p=this.getDeltaType(r,a),c="node"===p?"a"===r._t?"array":"object":"";void 0!==i?this.nodeBegin(e,i,n,p,c,o):this.rootBegin(e,p,c);try{(this["format_"+p]||this.typeFormattterNotFound(e,p)).call(this,e,r,l,i,n,a)}catch(t){this.typeFormattterErrorFormatter(e,t,r,l,i,n,a),"undefined"!=typeof console&&console.error&&console.error(t.stack)}void 0!==i?this.nodeEnd(e,i,n,p,c,o):this.rootEnd(e,p,c)}}},{key:"formatDeltaChildren",value:function(n,a,o){var s=this;this.forEachDeltaKey(a,o,function(t,e,r,i){s.recurse(n,a[t],o?o[e]:void 0,t,e,r,i)})}},{key:"forEachDeltaKey",value:function(t,e,r){var i=q(t),n="a"===t._t,a={},o=void 0;if(void 0!==e)for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&(void 0!==t[o]||n&&void 0!==t["_"+o]||i.push(o));for(o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=t[o];U(s)&&3===s[2]&&!(a[s[1].toString()]={key:o,value:e&&e[parseInt(o.substr(1))]})!==this.includeMoveDestinations&&void 0===e&&void 0===t[s[1]]&&i.push(s[1].toString())}n?i.sort(Z):i.sort();for(var l=0,p=i.length;l<p;l++){var c=i[l];if(!n||"_t"!==c){var u=n?"number"==typeof c?c:parseInt(J(c),10):c,h=l===p-1;r(c,u,a[u],h)}}}},{key:"getDeltaType",value:function(t,e){if(void 0===t)return void 0!==e?"movedestination":"unchanged";if(U(t)){if(1===t.length)return"added";if(2===t.length)return"modified";if(3===t.length&&0===t[2])return"deleted";if(3===t.length&&2===t[2])return"textdiff";if(3===t.length&&3===t[2])return"moved"}else if("object"===(void 0===t?"undefined":c(t)))return"node";return"unknown"}},{key:"parseTextDiff",value:function(t){for(var e=[],r=t.split("\n@@ "),i=0,n=r.length;i<n;i++){var a=r[i],o={pieces:[]},s=/^(?:@@ )?[-+]?(\d+),(\d+)/.exec(a).slice(1);o.location={line:s[0],chr:s[1]};for(var l=a.split("\n").slice(1),p=0,c=l.length;p<c;p++){var u=l[p];if(u.length){var h={type:"context"};"+"===u.substr(0,1)?h.type="added":"-"===u.substr(0,1)&&(h.type="deleted"),h.text=u.slice(1),o.pieces.push(h)}}e.push(o)}return e}}]),t}(),tt=Object.freeze({default:K}),et=function(t){function e(){return n(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),r(e,[{key:"typeFormattterErrorFormatter",value:function(t,e){t.out('<pre class="jsondiffpatch-error">'+e+"</pre>")}},{key:"formatValue",value:function(t,e){t.out("<pre>"+rt(JSON.stringify(e,null,2))+"</pre>")}},{key:"formatTextDiffString",value:function(t,e){var r=this.parseTextDiff(e);t.out('<ul class="jsondiffpatch-textdiff">');for(var i=0,n=r.length;i<n;i++){var a=r[i];t.out('<li><div class="jsondiffpatch-textdiff-location"><span class="jsondiffpatch-textdiff-line-number">'+a.location.line+'</span><span class="jsondiffpatch-textdiff-char">'+a.location.chr+'</span></div><div class="jsondiffpatch-textdiff-line">');for(var o=a.pieces,s=0,l=o.length;s<l;s++){var p=o[s];t.out('<span class="jsondiffpatch-textdiff-'+p.type+'">'+rt(decodeURI(p.text))+"</span>")}t.out("</div></li>")}t.out("</ul>")}},{key:"rootBegin",value:function(t,e,r){var i="jsondiffpatch-"+e+(r?" jsondiffpatch-child-node-type-"+r:"");t.out('<div class="jsondiffpatch-delta '+i+'">')}},{key:"rootEnd",value:function(t){t.out("</div>"+(t.hasArrows?'<script type="text/javascript">setTimeout('+it.toString()+",10);<\/script>":""))}},{key:"nodeBegin",value:function(t,e,r,i,n){var a="jsondiffpatch-"+i+(n?" jsondiffpatch-child-node-type-"+n:"");t.out('<li class="'+a+'" data-key="'+r+'"><div class="jsondiffpatch-property-name">'+r+"</div>")}},{key:"nodeEnd",value:function(t){t.out("</li>")}},{key:"format_unchanged",value:function(t,e,r){void 0!==r&&(t.out('<div class="jsondiffpatch-value">'),this.formatValue(t,r),t.out("</div>"))}},{key:"format_movedestination",value:function(t,e,r){void 0!==r&&(t.out('<div class="jsondiffpatch-value">'),this.formatValue(t,r),t.out("</div>"))}},{key:"format_node",value:function(t,e,r){var i="a"===e._t?"array":"object";t.out('<ul class="jsondiffpatch-node jsondiffpatch-node-type-'+i+'">'),this.formatDeltaChildren(t,e,r),t.out("</ul>")}},{key:"format_added",value:function(t,e){t.out('<div class="jsondiffpatch-value">'),this.formatValue(t,e[0]),t.out("</div>")}},{key:"format_modified",value:function(t,e){t.out('<div class="jsondiffpatch-value jsondiffpatch-left-value">'),this.formatValue(t,e[0]),t.out('</div><div class="jsondiffpatch-value jsondiffpatch-right-value">'),this.formatValue(t,e[1]),t.out("</div>")}},{key:"format_deleted",value:function(t,e){t.out('<div class="jsondiffpatch-value">'),this.formatValue(t,e[0]),t.out("</div>")}},{key:"format_moved",value:function(t,e){t.out('<div class="jsondiffpatch-value">'),this.formatValue(t,e[0]),t.out('</div><div class="jsondiffpatch-moved-destination">'+e[1]+"</div>"),t.out('<div class="jsondiffpatch-arrow" style="position: relative; left: -34px;">\n          <svg width="30" height="60" style="position: absolute; display: none;">\n          <defs>\n              <marker id="markerArrow" markerWidth="8" markerHeight="8"\n                 refx="2" refy="4"\n                     orient="auto" markerUnits="userSpaceOnUse">\n                  <path d="M1,1 L1,7 L7,4 L1,1" style="fill: #339;" />\n              </marker>\n          </defs>\n          <path d="M30,0 Q-10,25 26,50"\n            style="stroke: #88f; stroke-width: 2px; fill: none; stroke-opacity: 0.5; marker-end: url(#markerArrow);"\n          ></path>\n          </svg>\n      </div>'),t.hasArrows=!0}},{key:"format_textdiff",value:function(t,e){t.out('<div class="jsondiffpatch-value">'),this.formatTextDiffString(t,e[0]),t.out("</div>")}}]),e}(K);function rt(t){for(var e=t,r=[[/&/g,"&amp;"],[/</g,"&lt;"],[/>/g,"&gt;"],[/'/g,"&apos;"],[/"/g,"&quot;"]],i=0;i<r.length;i++)e=e.replace(r[i][0],r[i][1]);return e}var it=function(t){var e=t||document;!function(t,e,r){for(var i=t.querySelectorAll(e),n=0,a=i.length;n<a;n++){r(i[n])}}(e,".jsondiffpatch-arrow",function(t){var e=t.parentNode,r=t.children,i=t.style,n=e,a=r[0],o=a.children[1];a.style.display="none";var s=function(t){var e=t.textContent,r=t.innerText;return e||r}(n.querySelector(".jsondiffpatch-moved-destination")),l=n.parentNode,p=void 0;if(function(t,e){for(var r=t.children,i=0,n=r.length;i<n;i++){e(r[i],i)}}(l,function(t){t.getAttribute("data-key")===s&&(p=t)}),p)try{var c=p.offsetTop-n.offsetTop;a.setAttribute("height",Math.abs(c)+6),i.top=(0<c?0:c)-8+"px";var u=0<c?"M30,0 Q-10,"+Math.round(c/2)+" 26,"+(c-4):"M30,"+-c+" Q-10,"+Math.round(-c/2)+" 26,4";o.setAttribute("d",u),a.style.display=""}catch(t){}})},nt=function(t,e,r){var i=e||document.body,n="jsondiffpatch-unchanged-",a={showing:n+"showing",hiding:n+"hiding",visible:n+"visible",hidden:n+"hidden"},o=i.classList;if(o){if(!r)return o.remove(a.showing),o.remove(a.hiding),o.remove(a.visible),o.remove(a.hidden),void(!1===t&&o.add(a.hidden));!1===t?(o.remove(a.showing),o.add(a.visible),setTimeout(function(){o.add(a.hiding)},10)):(o.remove(a.hiding),o.add(a.showing),o.remove(a.hidden));var s=setInterval(function(){it(i)},100);setTimeout(function(){o.remove(a.showing),o.remove(a.hiding),!1===t?(o.add(a.hidden),o.remove(a.visible)):(o.add(a.visible),o.remove(a.hidden)),setTimeout(function(){o.remove(a.visible),clearInterval(s)},r+400)},r)}},at=void 0;var ot=Object.freeze({showUnchanged:nt,hideUnchanged:function(t,e){return nt(false,t,e)},default:et,format:function(t,e){at||(at=new et);return at.format(t,e)}}),st=function(t){function e(){n(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.includeMoveDestinations=!1,t}return a(e,t),r(e,[{key:"prepareContext",value:function(r){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"prepareContext",this).call(this,r),r.indent=function(t){this.indentLevel=(this.indentLevel||0)+(void 0===t?1:t),this.indentPad=new Array(this.indentLevel+1).join("&nbsp;&nbsp;")},r.row=function(t,e){r.out('<tr><td style="white-space: nowrap;"><pre class="jsondiffpatch-annotated-indent" style="display: inline-block">'),r.out(r.indentPad),r.out('</pre><pre style="display: inline-block">'),r.out(t),r.out('</pre></td><td class="jsondiffpatch-delta-note"><div>'),r.out(e),r.out("</div></td></tr>")}}},{key:"typeFormattterErrorFormatter",value:function(t,e){t.row("",'<pre class="jsondiffpatch-error">'+e+"</pre>")}},{key:"formatTextDiffString",value:function(t,e){var r=this.parseTextDiff(e);t.out('<ul class="jsondiffpatch-textdiff">');for(var i=0,n=r.length;i<n;i++){var a=r[i];t.out('<li><div class="jsondiffpatch-textdiff-location"><span class="jsondiffpatch-textdiff-line-number">'+a.location.line+'</span><span class="jsondiffpatch-textdiff-char">'+a.location.chr+'</span></div><div class="jsondiffpatch-textdiff-line">');for(var o=a.pieces,s=0,l=o.length;s<l;s++){var p=o[s];t.out('<span class="jsondiffpatch-textdiff-'+p.type+'">'+p.text+"</span>")}t.out("</div></li>")}t.out("</ul>")}},{key:"rootBegin",value:function(t,e,r){t.out('<table class="jsondiffpatch-annotated-delta">'),"node"===e&&(t.row("{"),t.indent()),"array"===r&&t.row('"_t": "a",',"Array delta (member names indicate array indices)")}},{key:"rootEnd",value:function(t,e){"node"===e&&(t.indent(-1),t.row("}")),t.out("</table>")}},{key:"nodeBegin",value:function(t,e,r,i,n){t.row("&quot;"+e+"&quot;: {"),"node"===i&&t.indent(),"array"===n&&t.row('"_t": "a",',"Array delta (member names indicate array indices)")}},{key:"nodeEnd",value:function(t,e,r,i,n,a){"node"===i&&t.indent(-1),t.row("}"+(a?"":","))}},{key:"format_unchanged",value:function(){}},{key:"format_movedestination",value:function(){}},{key:"format_node",value:function(t,e,r){this.formatDeltaChildren(t,e,r)}}]),e}(K),lt=function(t){return'<pre style="display:inline-block">&quot;'+t+"&quot;</pre>"},pt={added:function(t,e,r,i){var n=" <pre>([newValue])</pre>";return void 0===i?"new value"+n:"number"==typeof i?"insert at index "+i+n:"add property "+lt(i)+n},modified:function(t,e,r,i){var n=" <pre>([previousValue, newValue])</pre>";return void 0===i?"modify value"+n:"number"==typeof i?"modify at index "+i+n:"modify property "+lt(i)+n},deleted:function(t,e,r,i){var n=" <pre>([previousValue, 0, 0])</pre>";return void 0===i?"delete value"+n:"number"==typeof i?"remove index "+i+n:"delete property "+lt(i)+n},moved:function(t,e,r,i){return'move from <span title="(position to remove at original state)">index '+i+'</span> to <span title="(position to insert at final state)">index '+t[1]+"</span>"},textdiff:function(t,e,r,i){var n=void 0===i?"":"number"==typeof i?" at index "+i:" at property "+lt(i);return"text diff"+n+', format is <a href="https://code.google.com/p/google-diff-match-patch/wiki/Unidiff">a variation of Unidiff</a>'}},ct=function(t,e){var r=this.getDeltaType(e),i=pt[r],n=i&&i.apply(i,Array.prototype.slice.call(arguments,1)),a=JSON.stringify(e,null,2);"textdiff"===r&&(a=a.split("\\n").join('\\n"+\n   "')),t.indent(),t.row(a,n),t.indent(-1)};st.prototype.format_added=ct,st.prototype.format_modified=ct,st.prototype.format_deleted=ct,st.prototype.format_moved=ct,st.prototype.format_textdiff=ct;var ut=void 0;var ht=Object.freeze({default:st,format:function(t,e){ut||(ut=new st);return ut.format(t,e)}}),dt={add:"add",remove:"remove",replace:"replace",move:"move"},ft=function(t){function e(){n(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.includeMoveDestinations=!0,t}return a(e,t),r(e,[{key:"prepareContext",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"prepareContext",this).call(this,t),t.result=[],t.path=[],t.pushCurrentOp=function(t){var e=t.op,r=t.value,i={op:e,path:this.currentPath()};void 0!==r&&(i.value=r),this.result.push(i)},t.pushMoveOp=function(t){var e=this.currentPath();this.result.push({op:dt.move,from:e,path:this.toPath(t)})},t.currentPath=function(){return"/"+this.path.join("/")},t.toPath=function(t){var e=this.path.slice();return e[e.length-1]=t,"/"+e.join("/")}}},{key:"typeFormattterErrorFormatter",value:function(t,e){t.out("[ERROR] "+e)}},{key:"rootBegin",value:function(){}},{key:"rootEnd",value:function(){}},{key:"nodeBegin",value:function(t,e,r){var i=t.path;i.push(r)}},{key:"nodeEnd",value:function(t){var e=t.path;e.pop()}},{key:"format_unchanged",value:function(){}},{key:"format_movedestination",value:function(){}},{key:"format_node",value:function(t,e,r){this.formatDeltaChildren(t,e,r)}},{key:"format_added",value:function(t,e){t.pushCurrentOp({op:dt.add,value:e[0]})}},{key:"format_modified",value:function(t,e){t.pushCurrentOp({op:dt.replace,value:e[1]})}},{key:"format_deleted",value:function(t){t.pushCurrentOp({op:dt.remove})}},{key:"format_moved",value:function(t,e){var r=e[1];t.pushMoveOp(r)}},{key:"format_textdiff",value:function(){throw new Error("Not implemented")}},{key:"format",value:function(t,e){var r={};return this.prepareContext(r),this.recurse(r,t,e),r.result}}]),e}(K),mt=function(t){return t[t.length-1]},gt=function(t){return function(t,e){return t.sort(e),t}(t,function(t,e){var r=t.path.split("/"),i=e.path.split("/");return r.length!==i.length?r.length-i.length:function(t,e){var r=parseInt(t,10),i=parseInt(e,10);if(!(isNaN(r)||isNaN(i))){return i-r}else{return 0}}(mt(r),mt(i))})},vt=function(t,r){var e=Array(r.length+1).fill().map(function(){return[]});return t.map(function(e){var t=r.map(function(t){return t(e)}).indexOf(!0);return t<0&&(t=r.length),{item:e,position:t}}).reduce(function(t,e){return t[e.position].push(e.item),t},e)},yt=function(t){var e=t.op;return"move"===e},xt=function(t){var e=t.op;return"remove"===e},bt=void 0,_t=function(t,e){return bt||(bt=new ft),function(t){var e=vt(t,[yt,xt]),r=s(e,3),i=r[0],n=r[1],a=r[2],o=gt(n);return[].concat(l(o),l(i),l(a))}(bt.format(t,e))},wt=Object.freeze({default:ft,partitionOps:vt,format:_t,log:function(t,e){console.log(_t(t,e))}});function St(t){return e&&e[t]||function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e}}var Tt={added:St("green"),deleted:St("red"),movedestination:St("gray"),moved:St("yellow"),unchanged:St("gray"),error:St("white.bgRed"),textDiffLine:St("gray")},Pt=function(t){function e(){n(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.includeMoveDestinations=!1,t}return a(e,t),r(e,[{key:"prepareContext",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"prepareContext",this).call(this,t),t.indent=function(t){this.indentLevel=(this.indentLevel||0)+(void 0===t?1:t),this.indentPad=new Array(this.indentLevel+1).join("  "),this.outLine()},t.outLine=function(){this.buffer.push("\n"+(this.indentPad||""))},t.out=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i=0,n=e.length;i<n;i++){var a=e[i].split("\n"),o=a.join("\n"+(this.indentPad||""));this.color&&this.color[0]&&(o=this.color[0](o)),this.buffer.push(o)}},t.pushColor=function(t){this.color=this.color||[],this.color.unshift(t)},t.popColor=function(){this.color=this.color||[],this.color.shift()}}},{key:"typeFormattterErrorFormatter",value:function(t,e){t.pushColor(Tt.error),t.out("[ERROR]"+e),t.popColor()}},{key:"formatValue",value:function(t,e){t.out(JSON.stringify(e,null,2))}},{key:"formatTextDiffString",value:function(t,e){var r=this.parseTextDiff(e);t.indent();for(var i=0,n=r.length;i<n;i++){var a=r[i];t.pushColor(Tt.textDiffLine),t.out(a.location.line+","+a.location.chr+" "),t.popColor();for(var o=a.pieces,s=0,l=o.length;s<l;s++){var p=o[s];t.pushColor(Tt[p.type]),t.out(p.text),t.popColor()}i<n-1&&t.outLine()}t.indent(-1)}},{key:"rootBegin",value:function(t,e,r){t.pushColor(Tt[e]),"node"===e&&(t.out("array"===r?"[":"{"),t.indent())}},{key:"rootEnd",value:function(t,e,r){"node"===e&&(t.indent(-1),t.out("array"===r?"]":"}")),t.popColor()}},{key:"nodeBegin",value:function(t,e,r,i,n){t.pushColor(Tt[i]),t.out(r+": "),"node"===i&&(t.out("array"===n?"[":"{"),t.indent())}},{key:"nodeEnd",value:function(t,e,r,i,n,a){"node"===i&&(t.indent(-1),t.out("array"===n?"]":"}"+(a?"":","))),a||t.outLine(),t.popColor()}},{key:"format_unchanged",value:function(t,e,r){void 0!==r&&this.formatValue(t,r)}},{key:"format_movedestination",value:function(t,e,r){void 0!==r&&this.formatValue(t,r)}},{key:"format_node",value:function(t,e,r){this.formatDeltaChildren(t,e,r)}},{key:"format_added",value:function(t,e){this.formatValue(t,e[0])}},{key:"format_modified",value:function(t,e){t.pushColor(Tt.deleted),this.formatValue(t,e[0]),t.popColor(),t.out(" => "),t.pushColor(Tt.added),this.formatValue(t,e[1]),t.popColor()}},{key:"format_deleted",value:function(t,e){this.formatValue(t,e[0])}},{key:"format_moved",value:function(t,e){t.out("==> "+e[1])}},{key:"format_textdiff",value:function(t,e){this.formatTextDiffString(t,e[0])}}]),e}(K),kt=void 0,It=function(t,e){return kt||(kt=new Pt),kt.format(t,e)};var At=Object.freeze({default:Pt,format:It,log:function(t,e){console.log(It(t,e))}}),Et=Object.freeze({base:tt,html:ot,annotated:ht,jsonpatch:wt,console:At});var Ct=void 0;t.DiffPatcher=W,t.formatters=Et,t.console=At,t.create=function(t){return new W(t)},t.dateReviver=function(t,e){var r=void 0;if("string"==typeof e&&(r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d*))?(Z|([+-])(\d{2}):(\d{2}))$/.exec(e)))return new Date(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4],+r[5],+r[6],+(r[7]||0)));return e},t.diff=function(){Ct||(Ct=new W);return Ct.diff.apply(Ct,arguments)},t.patch=function(){Ct||(Ct=new W);return Ct.patch.apply(Ct,arguments)},t.unpatch=function(){Ct||(Ct=new W);return Ct.unpatch.apply(Ct,arguments)},t.reverse=function(){Ct||(Ct=new W);return Ct.reverse.apply(Ct,arguments)},t.clone=function(){Ct||(Ct=new W);return Ct.clone.apply(Ct,arguments)},Object.defineProperty(t,"__esModule",{value:!0})}(e,r(368))},function(t,e){},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function i(){this.data={}}e.default=i},function(t,e,r){"use strict";r.r(e),r.d(e,"ThrowPropsPlugin",function(){return i}),r.d(e,"default",function(){return i}),r.d(e,"VelocityTracker",function(){return n});var M=r(0);
/*!
 * VERSION: 0.11.1
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * ThrowPropsPlugin is a Club GreenSock membership benefit; You must have a valid membership to use
 * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
 * This work is subject to the software agreement that was issued with your membership.
 *
 * @author: Jack Doyle, jack@greensock.com
 */M.m._gsDefine("plugins.ThrowPropsPlugin",["utils.VelocityTracker","plugins.TweenPlugin","TweenLite","easing.Ease"],function(P){function k(t,e){M.l.call(this,"throwProps"),this._overwriteProps.length=0}function p(t,e,r,i,n){var a,o,s,l,p=e.length,c=0,u=h;if("object"==typeof t){for(;-1<--p;){for(s in a=e[p],o=0,t)o+=(l=a[s]-t[s])*l;o<u&&(c=p,u=o)}if((n||h)<h&&n<Math.sqrt(u))return t}else for(;-1<--p;)(o=(a=e[p])-t)<0&&(o=-o),o<u&&i<=a&&a<=r&&(c=p,u=o);return e[c]}function I(t,e,r,i,n,a){if("auto"===t.end)return t;var o,s,l=t.end;if(r=isNaN(r)?h:r,i=isNaN(i)?-h:i,"object"==typeof e){if(o=e.calculated?e:("function"==typeof l?l(e):p(e,l,r,i,a))||e,!e.calculated){for(s in o)e[s]=o[s];e.calculated=!0}o=o[n]}else o="function"==typeof l?l(e):l instanceof Array?p(e,l,r,i,a):Number(l);return r<o?o=r:o<i&&(o=i),{max:o,min:o,unitFactor:t.unitFactor}}function A(t,e,r){for(var i in e)void 0===t[i]&&i!==r&&(t[i]=e[i]);return t}var x,b,_,w,h=999999999999999,r=M.m._gsDefine.globals,E=!1,S={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},C=k.calculateChange=function(t,e,r,i){return null==i&&(i=.05),r*i*t/(e instanceof M.b?e:e?new M.b(e):M.k.defaultEase).getRatio(i)},O=k.calculateDuration=function(t,e,r,i,n){n=n||.05;var a=i instanceof M.b?i:i?new M.b(i):M.k.defaultEase;return Math.abs((e-t)*a.getRatio(n)/r/n)},o=k.calculateTweenDuration=function(t,e,r,i,n,a){if("string"==typeof t&&(t=M.k.selector(t)),!t)return 0;null==r&&(r=10),null==i&&(i=.2),null==n&&(n=1),t.length&&(t=t[0]||t);var o,s,l,p,c,u,h,d,f,m,g,v,y,x=0,b=9999999999,_=e.throwProps||e,w=e.ease instanceof M.b?e.ease:e.ease?new M.b(e.ease):M.k.defaultEase,S=isNaN(_.checkpoint)?.05:Number(_.checkpoint),T=isNaN(_.resistance)?k.defaultResistance:Number(_.resistance);if(_.linkedProps)for(v=_.linkedProps.split(","),g={},y=0;y<v.length;y++)(s=_[o=v[y]])&&(l=0<(p=void 0!==s.velocity&&"number"==typeof s.velocity?Number(s.velocity)||0:(f=f||P.getByTarget(t))&&f.isTrackingProp(o)?f.getVelocity(o):0)*(c=isNaN(s.resistance)?T:Number(s.resistance))?p/c:p/-c,u="function"==typeof t[o]?t[o.indexOf("set")||"function"!=typeof t["get"+o.substr(3)]?o:"get"+o.substr(3)]():t[o]||0,g[o]=u+C(p,w,l,S));for(o in _)"resistance"!==o&&"checkpoint"!==o&&"preventOvershoot"!==o&&"linkedProps"!==o&&"radius"!==o&&("object"!=typeof(s=_[o])&&((f=f||P.getByTarget(t))&&f.isTrackingProp(o)?s="number"==typeof s?{velocity:s}:{velocity:f.getVelocity(o)}:l=0<(p=Number(s)||0)*T?p/T:p/-T),"object"==typeof s&&(l=0<(p=void 0!==s.velocity&&"number"==typeof s.velocity?Number(s.velocity)||0:(f=f||P.getByTarget(t))&&f.isTrackingProp(o)?f.getVelocity(o):0)*(c=isNaN(s.resistance)?T:Number(s.resistance))?p/c:p/-c,h=(u="function"==typeof t[o]?t[o.indexOf("set")||"function"!=typeof t["get"+o.substr(3)]?o:"get"+o.substr(3)]():t[o]||0)+C(p,w,l,S),void 0!==s.end&&(s=I(s,g&&o in g?g:h,s.max,s.min,o,_.radius),(a||E)&&(_[o]=A(s,_[o],"end"))),void 0!==s.max&&h>Number(s.max)+1e-10?(m=s.unitFactor||k.defaultUnitFactors[o]||1,(d=u>s.max&&s.min!==s.max||-15<p*m&&p*m<45?i+.1*(r-i):O(u,s.max,p,w,S))+n<b&&(b=d+n)):void 0!==s.min&&h<Number(s.min)-1e-10&&(m=s.unitFactor||k.defaultUnitFactors[o]||1,(d=u<s.min&&s.min!==s.max||-45<p*m&&p*m<15?i+.1*(r-i):O(u,s.min,p,w,S))+n<b&&(b=d+n)),x<d&&(x=d)),x<l&&(x=l));return b<x&&(x=b),r<x?r:x<i?i:x},t=k.prototype=new M.l("throwProps");return(t.constructor=k).version="0.11.1",k.API=2,k._autoCSS=!0,k.defaultResistance=100,k.defaultUnitFactors={time:1e3,totalTime:1e3},k.track=function(t,e,r){return P.track(t,e,r)},k.untrack=function(t,e){P.untrack(t,e)},k.isTracking=function(t,e){return P.isTracking(t,e)},k.getVelocity=function(t,e){var r=P.getByTarget(t);return r?r.getVelocity(e):NaN},k._cssRegister=function(){var t=r.com.greensock.plugins.CSSPlugin;if(t){var e=t._internals,g=e._parseToProxy,v=e._setPluginRatio,y=e.CSSPropTween;e._registerComplexSpecialProp("throwProps",{parser:function(t,e,r,i,n,a){a=new k;var o,s,l,p,c={},u={},h={},d={},f={},m={};for(s in b={},e)"resistance"!==s&&"preventOvershoot"!==s&&"linkedProps"!==s&&"radius"!==s&&("object"==typeof(o=e[s])?(void 0!==o.velocity&&"number"==typeof o.velocity?c[s]=Number(o.velocity)||0:(p=p||P.getByTarget(t),c[s]=p&&p.isTrackingProp(s)?p.getVelocity(s):0),void 0!==o.end&&(d[s]=o.end),void 0!==o.min&&(u[s]=o.min),void 0!==o.max&&(h[s]=o.max),o.preventOvershoot&&(m[s]=!0),void 0!==o.resistance&&(!0,f[s]=o.resistance)):"number"==typeof o?c[s]=o:(p=p||P.getByTarget(t))&&p.isTrackingProp(s)?c[s]=p.getVelocity(s):c[s]=o||0,S[s]&&i._enableTransforms(2===S[s]));for(s in l=g(t,c,i,n,a),x=l.proxy,c=l.end,x)b[s]={velocity:c[s],min:u[s],max:h[s],end:d[s],resistance:f[s],preventOvershoot:m[s]};return null!=e.resistance&&(b.resistance=e.resistance),null!=e.linkedProps&&(b.linkedProps=e.linkedProps),null!=e.radius&&(b.radius=e.radius),e.preventOvershoot&&(b.preventOvershoot=!0),n=new y(t,"throwProps",0,0,l.pt,2),i._overwriteProps.pop(),n.plugin=a,n.setRatio=v,n.data=l,a._onInitTween(x,b,i._tween),n}})}},k.to=function(t,e,r,i,n){e.throwProps||(e={throwProps:e}),0===n&&(e.throwProps.preventOvershoot=!0),E=!0;var a=new M.k(t,i||1,e);return a.render(0,!0,!0),E=(a.vars.css?(a.duration(o(x,{throwProps:b,ease:e.ease},r,i,n)),a._delay&&!a.vars.immediateRender?a.invalidate():_._onInitTween(x,w,a)):(a.kill(),a=new M.k(t,o(t,e,r,i,n),e)),!1),a},t._onInitTween=function(t,e,r,i){this.target=t,this._props=[],_=this,w=e;var n,a,o,s,l,p,c,u,h,d,f,m,g=r._ease,v=isNaN(e.checkpoint)?.05:Number(e.checkpoint),y=r._duration,x=e.preventOvershoot,b=0;if(e.linkedProps)for(f=e.linkedProps.split(","),d={},m=0;m<f.length;m++)(a=e[n=f[m]])&&(l=void 0!==a.velocity&&"number"==typeof a.velocity?Number(a.velocity)||0:(h=h||P.getByTarget(t))&&h.isTrackingProp(n)?h.getVelocity(n):0,o="function"==typeof t[n]?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():t[n]||0,d[n]=o+C(l,g,y,v));for(n in e)if("resistance"!==n&&"checkpoint"!==n&&"preventOvershoot"!==n&&"linkedProps"!==n&&"radius"!==n){if("function"==typeof(a=e[n])&&(a=a(i,t)),"number"==typeof a)l=Number(a)||0;else if("object"!=typeof a||isNaN(a.velocity)){if(!(h=h||P.getByTarget(t))||!h.isTrackingProp(n))throw"ERROR: No velocity was defined in the throwProps tween of "+t+" property: "+n;l=h.getVelocity(n)}else l=Number(a.velocity);p=C(l,g,y,v),u=0,o=(s="function"==typeof t[n])?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():t[n],"object"==typeof a&&(c=o+p,void 0!==a.end&&(a=I(a,d&&n in d?d:c,a.max,a.min,n,e.radius),E&&(e[n]=A(a,e[n],"end"))),void 0!==a.max&&Number(a.max)<c?x||a.preventOvershoot?p=a.max-o:u=a.max-o-p:void 0!==a.min&&Number(a.min)>c&&(x||a.preventOvershoot?p=a.min-o:u=a.min-o-p)),this._overwriteProps[b]=n,this._props[b++]={p:n,s:o,c1:p,c2:u,f:s,r:!1}}return!0},t._kill=function(t){for(var e=this._props.length;-1<--e;)null!=t[this._props[e].p]&&this._props.splice(e,1);return M.l.prototype._kill.call(this,t)},t._mod=function(t){for(var e,r=this._props,i=r.length;-1<--i;)"function"==typeof(e=t[r[i].p]||t.throwProps)&&(r[i].m=e)},t.setRatio=function(t){for(var e,r,i=this._props.length;-1<--i;)r=(e=this._props[i]).s+e.c1*t+e.c2*t*t,e.m?r=e.m(r,this.target):1===t&&(r=(1e4*r+(r<0?-.5:.5)|0)/1e4),e.f?this.target[e.p](r):this.target[e.p]=r},M.l.activate([k]),k},!0),M.m._gsDefine("utils.VelocityTracker",["TweenLite"],function(){function o(t,e,r){var i=(t._gsTransform||c)[e];return i||0===i?i:(t.style[e]?i=t.style[e]:(r=r||h(t,null))?i=r[e]||r.getPropertyValue(e)||r.getPropertyValue(e.replace(p,"-$1").toLowerCase()):t.currentStyle&&(i=t.currentStyle[e]),parseFloat(i)||0)}function s(t,e,r){this.p=t,this.f=e,this.v1=this.v2=0,this.t1=this.t2=d.time,this.css=!1,this.type="",this._prev=null,r&&((this._next=r)._prev=this)}function e(){var t,e,r=a,i=d.time;if(.03<=i-n)for(n,n=i;r;){for(e=r._firstVP;e;)((t=e.css?o(r.target,e.p):e.f?r.target[e.p]():r.target[e.p])!==e.v1||.15<i-e.t1)&&(e.v2=e.v1,e.v1=t,e.t2=e.t1,e.t1=i),e=e._next;r=r._next}}function l(t){this._lookup={},this.target=t,this.elem=!(!t.style||!t.nodeType),r||(d.addEventListener("tick",e,null,!1,-100),n=d.time,r=!0),a&&((this._next=a)._prev=this),a=this}var a,r,n,p=/([A-Z])/g,c={},t=M.m.document,u={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},h=t.defaultView?t.defaultView.getComputedStyle:function(){},d=M.k.ticker,f=l.getByTarget=function(t){for(var e=a;e;){if(e.target===t)return e;e=e._next}},i=l.prototype;return i.addProp=function(t,e){if(!this._lookup[t]){var r=this.target,i="function"==typeof r[t],n=i?this._altProp(t):t,a=this._firstVP;this._firstVP=this._lookup[t]=this._lookup[n]=a=new s(n!==t&&0===t.indexOf("set")?n:t,i,a),a.css=this.elem&&(void 0!==this.target.style[a.p]||u[a.p]),a.css&&u[a.p]&&!r._gsTransform&&M.k.set(r,{x:"+=0",overwrite:!1}),a.type=e||a.css&&0===t.indexOf("rotation")?"deg":"",a.v1=a.v2=a.css?o(r,a.p):i?r[a.p]():r[a.p]}},i.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))},i.isTrackingProp=function(t){return this._lookup[t]instanceof s},i.getVelocity=function(t){var e,r,i=this._lookup[t],n=this.target;if(!i)throw"The velocity of "+t+" is not being tracked.";return e=(i.css?o(n,i.p):i.f?n[i.p]():n[i.p])-i.v2,"rad"!==i.type&&"deg"!==i.type||(e%=r="rad"===i.type?2*Math.PI:360)!==e%(r/2)&&(e=e<0?e+r:e-r),e/(d.time-i.t2)},i._altProp=function(t){var e=t.substr(0,3),r=("get"===e?"set":"set"===e?"get":e)+t.substr(3);return"function"==typeof this.target[r]?r:t},l.getByTarget=function(t){var e=a;for("string"==typeof t&&(t=M.k.selector(t)),t.length&&t!==window&&t[0]&&t[0].style&&!t.nodeType&&(t=t[0]);e;){if(e.target===t)return e;e=e._next}},l.track=function(t,e,r){var i=f(t),n=e.split(","),a=n.length;for(r=(r||"").split(","),i||(i=new l(t));-1<--a;)i.addProp(n[a],r[a]||r[0]);return i},l.untrack=function(t,e){var r=f(t),i=(e||"").split(","),n=i.length;if(r){for(;-1<--n;)r.removeProp(i[n]);r._firstVP&&e||(r._prev?r._prev._next=r._next:r===a&&(a=r._next),r._next&&(r._next._prev=r._prev))}},l.isTracking=function(t,e){var r=f(t);return!!r&&(!(e||!r._firstVP)||r.isTrackingProp(e))},l},!0);var i=M.o.ThrowPropsPlugin,n=M.o.com.greensock.utils.VelocityTracker},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,r){"use strict";r.r(e),r.d(e,"Draggable",function(){return i}),r.d(e,"default",function(){return i});var me=r(0),ge=r(49);
/*!
 * VERSION: 0.16.5
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * Requires TweenLite and CSSPlugin version 1.17.0 or later (TweenMax contains both TweenLite and CSSPlugin). ThrowPropsPlugin is required for momentum-based continuation of movement after the mouse/touch is released (ThrowPropsPlugin is a membership benefit of Club GreenSock - http://greensock.com/club/).
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 *
 * @author: Jack Doyle, jack@greensock.com
 */
me.m._gsDefine("utils.Draggable",["events.EventDispatcher","TweenLite","plugins.CSSPlugin"],function(){function n(){return!1}function c(t){return $t.createElementNS?$t.createElementNS("http://www.w3.org/1999/xhtml",t):$t.createElement(t)}function bt(t,e){var r,i={};if(e)for(r in t)i[r]=t[r]*e;else for(r in t)i[r]=t[r];return i}function _t(){for(var t=Ut.length;-1<--t;)Ut[t]()}function wt(t){for(var e=Ut.length;-1<--e;)Ut[e]===t&&Ut.splice(e,1);me.n.to(v,0,{overwrite:"all",delay:15,onComplete:v,data:"_draggable"})}function k(){return null!=window.pageYOffset?window.pageYOffset:null!=$t.scrollTop?$t.scrollTop:Vt.scrollTop||$t.body.scrollTop||0}function I(){return null!=window.pageXOffset?window.pageXOffset:null!=$t.scrollLeft?$t.scrollLeft:Vt.scrollLeft||$t.body.scrollLeft||0}function a(t,e){var r="x"===e?"Width":"Height",i="scroll"+r,n="client"+r,a=$t.body;return Math.max(0,ne(t)?Math.max(Vt[i],a[i])-(window["inner"+r]||Vt[n]||a[n]):t[i]-t[n])}function St(t,e){return t=t||window.event,u.pageX=t.clientX+$t.body.scrollLeft+Vt.scrollLeft,u.pageY=t.clientY+$t.body.scrollTop+Vt.scrollTop,e&&(t.returnValue=!1),u}function Tt(t){return t?("string"==typeof t&&(t=me.n.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}function o(t,e){var r,i,n,a=t.style;if(void 0===a[e]){for(n=["O","Moz","ms","Ms","Webkit"],i=5,r=e.charAt(0).toUpperCase()+e.substr(1);-1<--i&&void 0===a[n[i]+r];);if(i<0)return"";e=(3===i?"ms":n[i])+r}return e}function Pt(t,e,r){var i=t.style;i&&(void 0===i[e]&&(e=o(t,e)),null==r?i.removeProperty?i.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):i.removeAttribute(e):void 0!==i[e]&&(i[e]=r))}function A(t,e){return y(t instanceof Element?t:t.host||(t.parentNode||{}).host||t,e)}function kt(t,e,r){var i=t.vars,n=i[r],a=t._listeners[e];"function"==typeof n&&n.apply(i[r+"Scope"]||i.callbackScope||t,i[r+"Params"]||[t.pointerEvent]),a&&t.dispatchEvent(e)}function It(t,e){var r,i,n,a=Tt(t);return a?z(a,e):void 0!==t.left?(n=se(e),{left:t.left-n.x,top:t.top-n.y,width:t.width,height:t.height}):{left:i=t.min||t.minX||t.minRotation||0,top:r=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-i,height:(t.max||t.maxY||0)-r}}function T(){if(!$t.createElementNS)return P=0,void(f=!1);var t,e,r,i,n=c("div"),a=$t.createElementNS("http://www.w3.org/2000/svg","svg"),o=c("div"),s=n.style,l=$t.body||Vt,p="flex"===oe(l,"display",!0);$t.body&&M&&(s.position="absolute",l.appendChild(o),o.appendChild(n),i=n.offsetParent,o.style[M]="rotate(1deg)",O=n.offsetParent===i,o.style.position="absolute",s.height="10px",i=n.offsetTop,o.style.border="5px solid red",C=i!==n.offsetTop,l.removeChild(o)),s=a.style,a.setAttributeNS(null,"width","400px"),a.setAttributeNS(null,"height","400px"),a.setAttributeNS(null,"viewBox","0 0 400 400"),s.display="block",s.boxSizing="border-box",s.border="0px solid red",s.transform="none",n.style.cssText="width:100px;height:100px;overflow:scroll;-ms-overflow-style:none;",l.appendChild(n),n.appendChild(a),e=(r=a.createSVGPoint().matrixTransform(a.getScreenCTM())).y,n.scrollTop=100,r.x=r.y=0,r=r.matrixTransform(a.getScreenCTM()),m=e-r.y<100.1?0:e-r.y-150,n.removeChild(a),l.removeChild(n),l.appendChild(a),p&&(l.style.display="block"),e=(t=a.getScreenCTM()).e,s.border="50px solid red",t=a.getScreenCTM(),f=0===e&&0===t.e&&0===t.f&&1===t.a?(P=1,!0):(P=e!==t.e?1:0,1!==t.a),p&&(l.style.display="flex"),l.removeChild(a)}function At(t){return!!(N&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))}function Et(t,e){if(!t||t===window||!t.parentNode)return[1,0,0,1,0,0];for(var r,i,n,a,o,s,l,p,c=se(t,F),u=se(t.parentNode,R),h=H(t,c,u,!1,!e);(t=t.parentNode)&&t.parentNode&&t!==Vt;)c=u,u=se(t.parentNode,c===F?R:F),l=H(t,c,u),r=h[0],i=h[1],n=h[2],a=h[3],o=h[4],s=h[5],h[0]=r*l[0]+i*l[2],h[1]=r*l[1]+i*l[3],h[2]=n*l[0]+a*l[2],h[3]=n*l[1]+a*l[3],h[4]=o*l[0]+s*l[2]+l[4],h[5]=o*l[1]+s*l[3]+l[5];return e&&(r=h[0],i=h[1],n=h[2],a=h[3],o=h[4],s=h[5],p=r*a-i*n,h[0]=a/p,h[1]=-i/p,h[2]=-n/p,h[3]=r/p,h[4]=(n*s-a*o)/p,h[5]=-(r*s-i*o)/p),h}function E(t,e,r){var i=t.x*e[0]+t.y*e[2]+e[4],n=t.x*e[1]+t.y*e[3]+e[5];return t.x=i*r[0]+n*r[2]+r[4],t.y=i*r[1]+n*r[3]+r[5],t}function s(t){return!!(t&&t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0]))}function Ct(t){Dt=t.touches&&Qt<t.touches.length,ce(t.target,"touchend",G)}function Ot(n,a,t,e,o,r){var i,s,l,p={};if(a)if(1!==o&&a instanceof Array){if(p.end=i=[],l=a.length,"object"==typeof a[0])for(s=0;s<l;s++)i[s]=bt(a[s],o);else for(s=0;s<l;s++)i[s]=a[s]*o;t+=1.1,e-=1.1}else p.end="function"==typeof a?function(t){var e,r,i=a.call(n,t);if(1!==o)if("object"==typeof i){for(r in e={},i)e[r]=i[r]*o;i=e}else i*=o;return i}:a;return!t&&0!==t||(p.max=t),!e&&0!==e||(p.min=e),r&&(p.velocity=0),p}function Mt(t,e){for(var r,i=t.length;-1<--i;)(r=t[i]).ondragstart=r.onselectstart=e?null:n,Pt(r,"userSelect",e?"text":"none")}function r(n,a){n=Tt(n),a=a||{};var o,s,l,t,p,c,u=$t.createElement("div"),h=u.style,e=n.firstChild,d=0,f=0,m=n.scrollTop,g=n.scrollLeft,v=n.scrollWidth,y=n.scrollHeight,x=0,b=0,_=0;w&&!1!==a.force3D?(p="translate3d(",c="px,0px)"):M&&(p="translate(",c="px)"),this.scrollTop=function(t,e){if(!arguments.length)return-this.top();this.top(-t,e)},this.scrollLeft=function(t,e){if(!arguments.length)return-this.left();this.left(-t,e)},this.left=function(t,e){if(!arguments.length)return-(n.scrollLeft+f);var r=n.scrollLeft-g,i=f;if((2<r||r<-2)&&!e)return g=n.scrollLeft,me.n.killTweensOf(this,!0,{left:1,scrollLeft:1}),this.left(-g),void(a.onKill&&a.onKill());(t=-t)<0?(f=t-.5|0,t=0):b<t?(f=t-b|0,t=b):f=0,(f||i)&&(p?this._suspendTransforms||(h[M]=p+-f+"px,"+-d+c):h.left=-f+"px",0<=f+x&&(h.paddingRight=f+x+"px")),n.scrollLeft=0|t,g=n.scrollLeft},this.top=function(t,e){if(!arguments.length)return-(n.scrollTop+d);var r=n.scrollTop-m,i=d;if((2<r||r<-2)&&!e)return m=n.scrollTop,me.n.killTweensOf(this,!0,{top:1,scrollTop:1}),this.top(-m),void(a.onKill&&a.onKill());(t=-t)<0?(d=t-.5|0,t=0):_<t?(d=t-_|0,t=_):d=0,(d||i)&&(p?this._suspendTransforms||(h[M]=p+-f+"px,"+-d+c):h.top=-d+"px"),n.scrollTop=0|t,m=n.scrollTop},this.maxScrollTop=function(){return _},this.maxScrollLeft=function(){return b},this.disable=function(){for(e=u.firstChild;e;)t=e.nextSibling,n.appendChild(e),e=t;n===u.parentNode&&n.removeChild(u)},this.enable=function(){if((e=n.firstChild)!==u){for(;e;)t=e.nextSibling,u.appendChild(e),e=t;n.appendChild(u),this.calibrate()}},this.calibrate=function(t){var e,r,i=n.clientWidth===o;m=n.scrollTop,g=n.scrollLeft,i&&n.clientHeight===s&&u.offsetHeight===l&&v===n.scrollWidth&&y===n.scrollHeight&&!t||((d||f)&&(e=this.left(),r=this.top(),this.left(-n.scrollLeft),this.top(-n.scrollTop)),i&&!t||(h.display="block",h.width="auto",h.paddingRight="0px",(x=Math.max(0,n.scrollWidth-n.clientWidth))&&(x+=oe(n,"paddingLeft")+(Y?oe(n,"paddingRight"):0))),h.display="inline-block",h.position="relative",h.overflow="visible",h.verticalAlign="top",h.width="100%",h.paddingRight=x+"px",Y&&(h.paddingBottom=oe(n,"paddingBottom",!0)),Xt&&(h.zoom="1"),o=n.clientWidth,s=n.clientHeight,v=n.scrollWidth,y=n.scrollHeight,b=n.scrollWidth-o,_=n.scrollHeight-s,l=u.offsetHeight,h.display="block",(e||r)&&(this.left(e),this.top(r)))},this.content=u,this.element=n,this._suspendTransforms=!1,this.enable()}var Dt,Ft,P,f,m,C,O,t,e,i,l,p,Rt={css:{},data:"_draggable"},Nt={css:{},data:"_draggable"},Lt={css:{},data:"_draggable"},Bt={css:{}},jt=me.m._gsDefine.globals,u={},h={style:{},appendChild:n,removeChild:n},$t=me.m.document||{createElement:function(){return h}},Vt=$t.documentElement||{},d=c("div"),Ht=[],zt=180/Math.PI,Gt=999999999999999,Yt=Date.now||function(){return(new Date).getTime()},Xt=!($t.addEventListener||!$t.all),Wt=$t.createElement("div"),Ut=[],qt={},Jt=0,g=/^(?:a|input|textarea|button|select)$/i,Qt=0,Zt=me.m.navigator&&-1!==me.m.navigator.userAgent.toLowerCase().indexOf("android"),Kt=0,te={},ee={},v=function(){Ut.length||me.n.ticker.removeEventListener("tick",_t)},re=function(t,e){ce(t,"scroll",e),ne(t.parentNode)||re(t.parentNode,e)},ie=function(t,e){ue(t,"scroll",e),ne(t.parentNode)||ie(t.parentNode,e)},ne=function(t){return!(t&&t!==Vt&&t!==$t&&t!==$t.body&&t!==window&&t.nodeType&&t.parentNode)},ae=function(t){var e=ne(t),r=a(t,"x"),i=a(t,"y");e?t=ee:ae(t.parentNode),t._gsMaxScrollX=r,t._gsMaxScrollY=i,t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0},y=("undefined"!=typeof window?window:$t.defaultView||{getComputedStyle:function(){}}).getComputedStyle,x=/(?:Left|Right|Width)/i,b=/(?:\d|\-|\+|=|#|\.)*/g,_=function(t,e,r,i,n){if("px"===i||!i)return r;if("auto"===i||!r)return 0;var a,o=x.test(e),s=t,l=d.style,p=r<0;return p&&(r=-r),"%"===i&&-1!==e.indexOf("border")?a=r/100*(o?t.clientWidth:t.clientHeight):(l.cssText="border:0 solid red;position:"+oe(t,"position",!0)+";line-height:0;","%"!==i&&s.appendChild?l[o?"borderLeftWidth":"borderTopWidth"]=r+i:(s=t.parentNode||$t.body,l[o?"width":"height"]=r+i),s.appendChild(d),a=parseFloat(d[o?"offsetWidth":"offsetHeight"]),s.removeChild(d),0!==a||n||(a=_(t,e,r,i,!0))),p?-a:a},oe=function(t,e,r){var i,n=(t._gsTransform||{})[e];return n||0===n?n:(t.style&&t.style[e]?n=t.style[e]:(i=A(t))?n=(n=i.getPropertyValue(e.replace(/([A-Z])/g,"-$1").toLowerCase()))||i.length?n:i[e]:t.currentStyle&&(n=t.currentStyle[e]),"auto"!==n||"top"!==e&&"left"!==e||(n=function(t,e){if("absolute"!==oe(t,"position",!0))return 0;var r="left"===e?"Left":"Top",i=oe(t,"margin"+r,!0);return t["offset"+r]-(_(t,e,parseFloat(i),(i+"").replace(b,""))||0)}(t,e)),r?n:parseFloat(n)||0)},w=""!==o(d,"perspective"),S=o(d,"transformOrigin").replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),M=o(d,"transform"),D=M.replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),F={},R={},N=me.m.SVGElement,L=me.m.navigator&&(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(me.m.navigator.userAgent)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(me.m.navigator.userAgent))&&parseFloat(RegExp.$1)<11,B=[],j=[],$=function(t){if(!t.getBoundingClientRect||!t.parentNode||!M)return{offsetTop:0,offsetLeft:0,scaleX:1,scaleY:1,offsetParent:Vt};if(!1!==de.cacheSVGData&&t._dCache&&t._dCache.lastUpdate===me.n.ticker.frame)return t._dCache;var e,r,i,n,a,o,s,l,p,c,u,h=t,d=V(t);if(d.lastUpdate=me.n.ticker.frame,t.getBBox&&!d.isSVGRoot){for(h=t.parentNode,e=t.getBBox();h&&"svg"!==(h.nodeName+"").toLowerCase();)h=h.parentNode;return n=$(h),d.offsetTop=e.y*n.scaleY,d.offsetLeft=e.x*n.scaleX,d.scaleX=n.scaleX,d.scaleY=n.scaleY,d.offsetParent=h||Vt,d}for((i=d.offsetParent)===$t.body&&(i=Vt),j.length=B.length=0;h&&("matrix(1, 0, 0, 1, 0, 0)"!==(a=oe(h,M,!0))&&"none"!==a&&"translate3d(0px, 0px, 0px)"!==a&&(j.push(h),B.push(h.style[M]),h.style[M]="none"),h!==i);)h=h.parentNode;for(r=i.getBoundingClientRect(),a=t.getScreenCTM(),s=t.createSVGPoint().matrixTransform(a),d.scaleX=Math.sqrt(a.a*a.a+a.b*a.b),d.scaleY=Math.sqrt(a.d*a.d+a.c*a.c),void 0===P&&T(),d.borderBox&&!f&&t.getAttribute("width")&&(n=A(t)||{},l=parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)||0,p=parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)||0,c=parseFloat(n.width)||0,u=parseFloat(n.height)||0,d.scaleX*=(c-l)/c,d.scaleY*=(u-p)/u),m?(e=t.getBoundingClientRect(),d.offsetLeft=e.left-r.left,d.offsetTop=e.top-r.top):(d.offsetLeft=s.x-r.left,d.offsetTop=s.y-r.top),d.offsetParent=i,o=j.length;-1<--o;)j[o].style[M]=B[o];return d},se=function(t,e){if(e=e||{},!t||t===Vt||!t.parentNode||t===window)return{x:0,y:0};var r=A(t),i=S&&r?r.getPropertyValue(S):"50% 50%",n=i.split(" "),a=-1!==i.indexOf("left")?"0%":-1!==i.indexOf("right")?"100%":n[0],o=-1!==i.indexOf("top")?"0%":-1!==i.indexOf("bottom")?"100%":n[1];return"center"!==o&&null!=o||(o="50%"),"center"!==a&&!isNaN(parseFloat(a))||(a="50%"),t.getBBox&&At(t)?(t._gsTransform||(me.n.set(t,{x:"+=0",overwrite:!1}),void 0===t._gsTransform.xOrigin&&console.log("Draggable requires at least GSAP 1.17.0")),i=t.getBBox(),e.x=t._gsTransform.xOrigin-i.x,e.y=t._gsTransform.yOrigin-i.y):(t.getBBox&&-1!==(a+o).indexOf("%")&&(t={offsetWidth:(t=t.getBBox()).width,offsetHeight:t.height}),e.x=-1!==a.indexOf("%")?t.offsetWidth*parseFloat(a)/100:parseFloat(a),e.y=-1!==o.indexOf("%")?t.offsetHeight*parseFloat(o)/100:parseFloat(o)),e},V=function(t){if(!1!==de.cacheSVGData&&t._dCache&&t._dCache.lastUpdate===me.n.ticker.frame)return t._dCache;var e,r=t._dCache=t._dCache||{},i=A(t),n=t.getBBox&&At(t),a="svg"===(t.nodeName+"").toLowerCase();if(r.isSVG=n,r.isSVGRoot=a,r.borderBox="border-box"===i.boxSizing,r.computedStyle=i,a)(e=t.parentNode||Vt).insertBefore(d,t),r.offsetParent=d.offsetParent||Vt,e.removeChild(d);else if(n){for(e=t.parentNode;e&&"svg"!==(e.nodeName+"").toLowerCase();)e=e.parentNode;r.offsetParent=e}else r.offsetParent=t.offsetParent;return r},H=function(t,e,r,i,n){if(t===window||!t||!t.style||!t.parentNode)return[1,0,0,1,0,0];var a,o,s,l,p,c,u,h,d,f,m,g,v,y,x=t._dCache||V(t),b=t.parentNode,_=b._dCache||V(b),w=x.computedStyle,S=x.isSVG?_.offsetParent:b.offsetParent;return a=x.isSVG&&-1!==(t.style[M]+"").indexOf("matrix")?t.style[M]:w?w.getPropertyValue(D):t.currentStyle?t.currentStyle[M]:"1,0,0,1,0,0",t.getBBox&&-1!==(t.getAttribute("transform")+"").indexOf("matrix")&&(a=t.getAttribute("transform")),6<(a=(a+"").match(/(?:\-|\.|\b)(\d|\.|e\-)+/g)||[1,0,0,1,0,0]).length&&(a=[a[0],a[1],a[4],a[5],a[12],a[13]]),i?a[4]=a[5]=0:x.isSVG&&(p=t._gsTransform)&&(p.xOrigin||p.yOrigin)&&(a[0]=parseFloat(a[0]),a[1]=parseFloat(a[1]),a[2]=parseFloat(a[2]),a[3]=parseFloat(a[3]),a[4]=parseFloat(a[4])-(p.xOrigin-(p.xOrigin*a[0]+p.yOrigin*a[2])),a[5]=parseFloat(a[5])-(p.yOrigin-(p.xOrigin*a[1]+p.yOrigin*a[3]))),e&&(void 0===P&&T(),s=x.isSVG||x.isSVGRoot?$(t):t,x.isSVG?(l=t.getBBox(),f=_.isSVGRoot?{x:0,y:0}:b.getBBox(),s={offsetLeft:l.x-f.x,offsetTop:l.y-f.y,offsetParent:x.offsetParent}):x.isSVGRoot?(m=parseInt(w.borderTopWidth,10)||0,g=parseInt(w.borderLeftWidth,10)||0,v=(a[0]-P)*g+a[2]*m,y=a[1]*g+(a[3]-P)*m,c=e.x,u=e.y,h=c-(c*a[0]+u*a[2]),d=u-(c*a[1]+u*a[3]),a[4]=parseFloat(a[4])+h,a[5]=parseFloat(a[5])+d,e.x-=h,e.y-=d,c=s.scaleX,u=s.scaleY,n||(e.x*=c,e.y*=u),a[0]*=c,a[1]*=u,a[2]*=c,a[3]*=u,L||(e.x+=v,e.y+=y),S===$t.body&&s.offsetParent===Vt&&(S=Vt)):!C&&t.offsetParent&&(e.x+=parseInt(oe(t.offsetParent,"borderLeftWidth"),10)||0,e.y+=parseInt(oe(t.offsetParent,"borderTopWidth"),10)||0),o=b===Vt||b===$t.body,a[4]=Number(a[4])+e.x+(s.offsetLeft||0)-r.x-(o?0:b.scrollLeft||0),a[5]=Number(a[5])+e.y+(s.offsetTop||0)-r.y-(o?0:b.scrollTop||0),b&&"fixed"===oe(t,"position",w)&&(a[4]+=I(),a[5]+=k()),!b||b===Vt||S!==s.offsetParent||_.isSVG||O&&"100100"!==H(b).join("")||(s=_.isSVGRoot?$(b):b,a[4]-=s.offsetLeft||0,a[5]-=s.offsetTop||0,C||!_.offsetParent||x.isSVG||x.isSVGRoot||(a[4]-=parseInt(oe(_.offsetParent,"borderLeftWidth"),10)||0,a[5]-=parseInt(oe(_.offsetParent,"borderTopWidth"),10)||0))),a},z=function(t,e,r){if(!(t=Tt(t)))return null;e=Tt(e);var i,n,a,o,s,l,p,c,u,h,d,f,m,g,v,y,x,b,_,w,S,T,P=t.getBBox&&At(t);if(t===window)o=k(),a=(n=I())+(Vt.clientWidth||t.innerWidth||$t.body.clientWidth||0),s=o+((t.innerHeight||0)-20<Vt.clientHeight?Vt.clientHeight:t.innerHeight||$t.body.clientHeight||0);else{if(void 0===e||e===window)return t.getBoundingClientRect();n=-(i=se(t)).x,o=-i.y,g=P?(m=(f=t.getBBox()).width,f.height):"svg"!==(t.nodeName+"").toLowerCase()&&t.offsetWidth?(m=t.offsetWidth,t.offsetHeight):(S=A(t),m=parseFloat(S.width),parseFloat(S.height)),a=n+m,s=o+g,"svg"!==t.nodeName.toLowerCase()||Xt||(T=(v=$(t)).computedStyle||{},b=(t.getAttribute("viewBox")||"0 0").split(" "),_=parseFloat(b[0]),w=parseFloat(b[1]),y=parseFloat(T.borderLeftWidth)||0,x=parseFloat(T.borderTopWidth)||0,a-=m-(m-y)/v.scaleX-_,s-=g-(g-x)/v.scaleY-w,n-=y/v.scaleX-_,o-=x/v.scaleY-w,S&&(a+=(parseFloat(T.borderRightWidth)+y)/v.scaleX,s+=(x+parseFloat(T.borderBottomWidth))/v.scaleY))}return t===e?{left:n,top:o,width:a-n,height:s-o}:(l=Et(t),p=Et(e,!0),c=E({x:n,y:o},l,p),u=E({x:a,y:o},l,p),h=E({x:a,y:s},l,p),d=E({x:n,y:s},l,p),n=Math.min(c.x,u.x,h.x,d.x),o=Math.min(c.y,u.y,h.y,d.y),te.x=te.y=0,r&&se(e,te),{left:n+te.x,top:o+te.y,width:Math.max(c.x,u.x,h.x,d.x)-n,height:Math.max(c.y,u.y,h.y,d.y)-o})},le="undefined"!=typeof window&&"ontouchstart"in Vt&&"orientation"in window,pe=function(t){for(var e=t.split(","),r=t.split(","),i={},n=4;-1<--n;)i[e[n]]=r[n],i[r[n]]=e[n];return i}("touchstart,touchmove,touchend,touchcancel"),ce=function(t,e,r,i){if(t.addEventListener){var n=pe[e];i=i||{passive:!1},t.addEventListener(n||e,r,i),n&&e!==n&&t.addEventListener(e,r,i)}else t.attachEvent&&t.attachEvent("on"+e,r)},ue=function(t,e,r){if(t.removeEventListener){var i=pe[e];t.removeEventListener(i||e,r),i&&e!==i&&t.removeEventListener(e,r)}else t.detachEvent&&t.detachEvent("on"+e,r)},G=function(t){Dt=t.touches&&Qt<t.touches.length,ue(t.target,"touchend",G)},he=function(t){var e;return!(!t||!t.getAttribute||"BODY"===t.nodeName)&&(!("true"!==(e=t.getAttribute("data-clickable"))&&("false"===e||!t.onclick&&!g.test(t.nodeName+"")&&"true"!==t.getAttribute("contentEditable")))||he(t.parentNode))},Y=(e=$t.createElement("div"),i=$t.createElement("div"),l=i.style,p=$t.body||d,l.display="inline-block",l.position="relative",e.style.cssText=i.innerHTML="width:90px; height:40px; padding:10px; overflow:auto; visibility: hidden",e.appendChild(i),p.appendChild(e),t=i.offsetHeight+18>e.scrollHeight,p.removeChild(e),t),de=function(d,u){me.c.call(this,d),d=Tt(d),Ft||(Ft=jt.com.greensock.plugins.ThrowPropsPlugin),this.vars=u=bt(u||{}),this.target=d,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(u.dragResistance)||0,this.edgeResistance=isNaN(u.edgeResistance)?1:parseFloat(u.edgeResistance)||0,this.lockAxis=u.lockAxis,this.autoScroll=u.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!u.allowEventDefault;function n(t){if(!(nt.isPressed&&t.which<2))return t.preventDefault(),t.stopPropagation(),!1;nt.endDrag()}function h(t){if(nt.autoScroll&&nt.isDragging&&(st||L)){var e,r,i,n,a,o,s,l,p=d,c=15*nt.autoScroll;for(st=!1,ee.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=Vt.scrollTop?Vt.scrollTop:$t.body.scrollTop,ee.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=Vt.scrollLeft?Vt.scrollLeft:$t.body.scrollLeft,n=nt.pointerX-ee.scrollLeft,a=nt.pointerY-ee.scrollTop;p&&!r;)e=(r=ne(p.parentNode))?ee:p.parentNode,i=r?{bottom:Math.max(Vt.clientHeight,window.innerHeight||0),right:Math.max(Vt.clientWidth,window.innerWidth||0),left:0,top:0}:e.getBoundingClientRect(),o=s=0,rt&&((l=e._gsMaxScrollY-e.scrollTop)<0?s=l:a>i.bottom-ct&&l?(st=!0,s=Math.min(l,c*(1-Math.max(0,i.bottom-a)/ct)|0)):a<i.top+lt&&e.scrollTop&&(st=!0,s=-Math.min(e.scrollTop,c*(1-Math.max(0,a-i.top)/lt)|0)),s&&(e.scrollTop+=s)),et&&((l=e._gsMaxScrollX-e.scrollLeft)<0?o=l:n>i.right-pt&&l?(st=!0,o=Math.min(l,c*(1-Math.max(0,i.right-n)/pt)|0)):n<i.left+ut&&e.scrollLeft&&(st=!0,o=-Math.min(e.scrollLeft,c*(1-Math.max(0,n-i.left)/ut)|0)),o&&(e.scrollLeft+=o)),r&&(o||s)&&(window.scrollTo(e.scrollLeft,e.scrollTop),yt(nt.pointerX+o,nt.pointerY+s)),p=e}if(L){var u=nt.x,h=nt.y;u<1e-6&&-1e-6<u&&(u=0),h<1e-6&&-1e-6<h&&(h=0),Z?(nt.deltaX=u-Y.data.rotation,Y.data.rotation=nt.rotation=u,Y.setRatio(1)):_?(rt&&(nt.deltaY=h-_.top(),_.top(h)),et&&(nt.deltaX=u-_.left(),_.left(u))):Q?(rt&&(nt.deltaY=h-Y.data.y,Y.data.y=h),et&&(nt.deltaX=u-Y.data.x,Y.data.x=u),Y.setRatio(1)):(rt&&(nt.deltaY=h-parseFloat(d.style.top||0),d.style.top=h+"px"),et&&(nt.deltaY=u-parseFloat(d.style.left||0),d.style.left=u+"px")),!I||t||U||(U=!0,kt(nt,"drag","onDrag"),U=!1)}L=!1}function s(t,e){var r,i=nt.x,n=nt.y;d._gsTransform||!Q&&!Z||me.n.set(d,{x:"+=0",overwrite:!1,data:"_draggable"}),Q?(nt.y=d._gsTransform.y,nt.x=d._gsTransform.x):Z?nt.x=nt.rotation=d._gsTransform.rotation:_?(nt.y=_.top(),nt.x=_.left()):(nt.y=parseInt(d.style.top,10)||0,nt.x=parseInt(d.style.left,10)||0),(B||j||$)&&!e&&(nt.isDragging||nt.isThrowing)&&($&&(te.x=nt.x,te.y=nt.y,(r=$(te)).x!==nt.x&&(nt.x=r.x,L=!0),r.y!==nt.y&&(nt.y=r.y,L=!0)),B&&(r=B(nt.x))!==nt.x&&(nt.x=r,Z&&(nt.rotation=r),L=!0),j&&((r=j(nt.y))!==nt.y&&(nt.y=r),L=!0)),L&&h(!0),t||(nt.deltaX=nt.x-i,nt.deltaY=nt.y-n,kt(nt,"throwupdate","onThrowUpdate"))}function l(){var t,e,r,i;k=!1,_?(_.calibrate(),nt.minX=E=-_.maxScrollLeft(),nt.minY=O=-_.maxScrollTop(),nt.maxX=A=nt.maxY=C=0,k=!0):u.bounds&&(t=It(u.bounds,d.parentNode),Z?(nt.minX=E=t.left,nt.maxX=A=t.left+t.width,nt.minY=O=nt.maxY=C=0):void 0!==u.bounds.maxX||void 0!==u.bounds.maxY?(t=u.bounds,nt.minX=E=t.minX,nt.minY=O=t.minY,nt.maxX=A=t.maxX,nt.maxY=C=t.maxY):(e=It(d,d.parentNode),nt.minX=E=oe(d,K)+t.left-e.left,nt.minY=O=oe(d,tt)+t.top-e.top,nt.maxX=A=E+(t.width-e.width),nt.maxY=C=O+(t.height-e.height)),A<E&&(nt.minX=A,nt.maxX=A=E,E=nt.minX),C<O&&(nt.minY=C,nt.maxY=C=O,O=nt.minY),Z&&(nt.minRotation=E,nt.maxRotation=A),k=!0),u.liveSnap&&(i=(r=!0===u.liveSnap?u.snap||{}:u.liveSnap)instanceof Array||"function"==typeof r,Z?(B=mt(i?r:r.rotation,E,A,1),j=null):r.points?$=gt(i?r:r.points,E,A,O,C,r.radius,_?-1:1):(et&&(B=mt(i?r:r.x||r.left||r.scrollLeft,E,A,_?-1:1)),rt&&(j=mt(i?r:r.y||r.top||r.scrollTop,O,C,_?-1:1))))}function o(){nt.isThrowing=!1,kt(nt,"throwcomplete","onThrowComplete")}function p(){nt.isThrowing=!1}function f(t,e){var r,i,n,a;t&&Ft?(!0===t&&(i=(r=u.snap||u.liveSnap||{})instanceof Array||"function"==typeof r,t={resistance:(u.throwResistance||u.resistance||1e3)/(Z?10:1)},Z?t.rotation=Ot(nt,i?r:r.rotation,A,E,1,e):(et&&(t[K]=Ot(nt,i?r:r.points||r.x||r.left||r.scrollLeft,A,E,_?-1:1,e||"x"===nt.lockedAxis)),rt&&(t[tt]=Ot(nt,i?r:r.points||r.y||r.top||r.scrollTop,C,O,_?-1:1,e||"y"===nt.lockedAxis)),(r.points||r instanceof Array&&"object"==typeof r[0])&&(t.linkedProps=K+","+tt,t.radius=r.radius))),nt.isThrowing=!0,a=isNaN(u.overshootTolerance)?1===u.edgeResistance?0:1-nt.edgeResistance+.2:u.overshootTolerance,nt.tween=n=Ft.to(_||d,{throwProps:t,data:"_draggable",ease:u.ease||jt.Power3.easeOut,onComplete:o,onOverwrite:p,onUpdate:u.fastMode?kt:s,onUpdateParams:u.fastMode?[nt,"onthrowupdate","onThrowUpdate"]:r&&r.radius?[!1,!0]:Ht},Math.max(u.minDuration||0,u.maxDuration||0)||2,isNaN(u.minDuration)?0===a||"object"==typeof t&&1e3<t.resistance?0:.5:u.minDuration,a),u.fastMode||(_&&(_._suspendTransforms=!0),n.render(n.duration(),!0,!0),s(!0,!0),nt.endX=nt.x,nt.endY=nt.y,Z&&(nt.endRotation=nt.x),n.play(0),s(!0,!0),_&&(_._suspendTransforms=!1))):k&&nt.applyBounds()}function a(t){var e,r,i,n,a,o,s,l,p,c=z||[1,0,0,1,0,0];z=Et(d.parentNode,!0),t&&nt.isPressed&&c.join(",")!==z.join(",")&&(e=c[0],r=c[1],i=c[2],n=c[3],a=c[4],o=c[5],p=w*(-r/(s=e*n-r*i))+S*(e/s)+-(e*o-r*a)/s,S=(l=w*(n/s)+S*(-i/s)+(i*o-n*a)/s)*z[1]+p*z[3]+z[5],w=l*z[0]+p*z[2]+z[4]),z[1]||z[2]||1!=z[0]||1!=z[3]||0!=z[4]||0!=z[5]||(z=null)}function c(){var t=1-nt.edgeResistance;a(!1),z&&(w=nt.pointerX*z[0]+nt.pointerY*z[2]+z[4],S=nt.pointerX*z[1]+nt.pointerY*z[3]+z[5]),L&&(yt(nt.pointerX,nt.pointerY),h(!0)),_?(l(),P=_.top(),T=_.left()):(ft()?(s(!0,!0),l()):nt.applyBounds(),Z?(N=nt.rotationOrigin=function(t,e,r,i){t=Tt(t);var n=Et(t,!1),a=e.x,o=e.y;return r&&(se(t,e),a-=e.x,o-=e.y),(i=!0===i?e:i||{}).x=a*n[0]+o*n[2]+n[4],i.y=a*n[1]+o*n[3]+n[5],i}(d,{x:0,y:0}),s(!0,!0),T=nt.x,P=nt.y=Math.atan2(N.y-nt.pointerY,nt.pointerX-N.x)*zt):(d.parentNode&&d.parentNode.scrollTop,d.parentNode&&d.parentNode.scrollLeft,P=oe(d,tt),T=oe(d,K))),k&&t&&(A<T?T=A+(T-A)/t:T<E&&(T=E-(E-T)/t),Z||(C<P?P=C+(P-C)/t:P<O&&(P=O-(O-P)/t))),nt.startX=T,nt.startY=P}function m(){!Wt.parentNode||ft()||nt.isDragging||Wt.parentNode.removeChild(Wt)}function g(t,e){var r;if(b&&!nt.isPressed&&t&&("mousedown"!==t.type&&"pointerdown"!==t.type||e||!(Yt()-dt<30)||!pe[nt.pointerEvent.type])){if(G=ft(),nt.pointerEvent=t,pe[t.type]?(H=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:$t,ce(H,"touchend",xt),ce(H,"touchmove",vt),ce(H,"touchcancel",xt),ce($t,"touchstart",Ct)):(H=null,ce($t,"mousemove",vt)),W=null,ce($t,"mouseup",xt),t&&t.target&&ce(t.target,"mouseup",xt),V=ht.call(nt,t.target)&&!u.dragClickables&&!e)return ce(t.target,"change",xt),kt(nt,"pressInit","onPressInit"),kt(nt,"press","onPress"),void Mt(at,!0);if(X=!(!H||et==rt||!1===nt.vars.allowNativeTouchScrolling||nt.vars.allowContextMenu&&t&&(t.ctrlKey||2<t.which))&&(et?"y":"x"),Xt?t=St(t,!0):X||nt.allowEventDefault||(t.preventDefault(),t.preventManipulation&&t.preventManipulation()),t.changedTouches?(t=F=t.changedTouches[0],R=t.identifier):t.pointerId?R=t.pointerId:F=R=null,Qt++,function(t){Ut.push(t),1===Ut.length&&me.n.ticker.addEventListener("tick",_t,this,!1,1)}(h),S=nt.pointerY=t.pageY,w=nt.pointerX=t.pageX,kt(nt,"pressInit","onPressInit"),(X||nt.autoScroll)&&ae(d.parentNode),!d.parentNode||!nt.autoScroll||_||Z||!d.parentNode._gsMaxScrollX||Wt.parentNode||d.getBBox||(Wt.style.width=d.parentNode.scrollWidth+"px",d.parentNode.appendChild(Wt)),c(),nt.tween&&nt.tween.kill(),nt.isThrowing=!1,me.n.killTweensOf(_||d,!0,i),_&&me.n.killTweensOf(d,!0,{scrollTo:1}),nt.tween=nt.lockedAxis=null,!u.zIndexBoost&&(Z||_||!1===u.zIndexBoost)||(d.style.zIndex=de.zIndex++),nt.isPressed=!0,I=!(!u.onDrag&&!nt._listeners.drag),!Z)for(r=at.length;-1<--r;)Pt(at[r],"cursor",u.cursor||"move");kt(nt,"press","onPress")}}function v(t){if(t&&nt.isDragging&&!_){var e=t.target||t.srcElement||d.parentNode,r=e.scrollLeft-e._gsScrollX,i=e.scrollTop-e._gsScrollY;(r||i)&&(z?(w-=r*z[0]+i*z[2],S-=i*z[3]+r*z[1]):(w-=r,S-=i),e._gsScrollX+=r,e._gsScrollY+=i,yt(nt.pointerX,nt.pointerY))}}function y(t){var e=Yt(),r=e-dt<40,i=e-ot<40,n=r&&q===dt,a=!!t.preventDefault,o=nt.pointerEvent&&nt.pointerEvent.defaultPrevented,s=r&&J===dt,l=t.isTrusted||null==t.isTrusted&&r&&n;if(a&&(n||i&&!1!==nt.vars.suppressClickOnDrag)&&t.stopImmediatePropagation(),!(!r||nt.pointerEvent&&nt.pointerEvent.defaultPrevented||n&&l===s))return l&&n&&(J=dt),void(q=dt);(nt.isPressed||i||r)&&(a?l&&t.detail&&r&&!o||(t.preventDefault(),t.preventManipulation&&t.preventManipulation()):t.returnValue=!1)}function x(t){return z?{x:t.x*z[0]+t.y*z[2]+z[4],y:t.x*z[1]+t.y*z[3]+z[5]}:{x:t.x,y:t.y}}var b,_,w,S,T,P,k,I,A,E,C,O,M,D,F,R,N,L,t,B,j,$,V,H,z,G,Y,X,W,U,q,J,e=(u.type||(Xt?"top,left":"x,y")).toLowerCase(),Q=-1!==e.indexOf("x")||-1!==e.indexOf("y"),Z=-1!==e.indexOf("rotation"),K=Z?"rotation":Q?"x":"left",tt=Q?"y":"top",et=-1!==e.indexOf("x")||-1!==e.indexOf("left")||"scroll"===e,rt=-1!==e.indexOf("y")||-1!==e.indexOf("top")||"scroll"===e,it=u.minimumMovement||2,nt=this,at=function(t){if("string"==typeof t&&(t=me.n.selector(t)),!t||t.nodeType)return[t];var e,r=[],i=t.length;for(e=0;e!==i;r.push(t[e++]));return r}(u.trigger||u.handle||d),i={},ot=0,st=!1,lt=u.autoScrollMarginTop||40,pt=u.autoScrollMarginRight||40,ct=u.autoScrollMarginBottom||40,ut=u.autoScrollMarginLeft||40,ht=u.clickableTest||he,dt=0,ft=function(){return nt.tween&&nt.tween.isActive()},mt=function(o,s,l,r){return"function"==typeof o?function(t){var e=nt.isPressed?1-nt.edgeResistance:1;return o.call(nt,l<t?l+(t-l)*e:t<s?s+(t-s)*e:t)*r}:o instanceof Array?function(t){for(var e,r,i=o.length,n=0,a=Gt;-1<--i;)(r=(e=o[i])-t)<0&&(r=-r),r<a&&s<=e&&e<=l&&(n=i,a=r);return o[n]}:isNaN(o)?function(t){return t}:function(){return o*r}},gt=function(l,s,p,c,u,h,d){return h=h&&h<Gt?h*h:Gt,"function"==typeof l?function(t){var e,r,i,n=nt.isPressed?1-nt.edgeResistance:1,a=t.x,o=t.y;return t.x=a=p<a?p+(a-p)*n:a<s?s+(a-s)*n:a,t.y=o=u<o?u+(o-u)*n:o<c?c+(o-c)*n:o,(e=l.call(nt,t))!==t&&(t.x=e.x,t.y=e.y),1!==d&&(t.x*=d,t.y*=d),h<Gt&&(r=t.x-a,i=t.y-o,h<r*r+i*i&&(t.x=a,t.y=o)),t}:l instanceof Array?function(t){for(var e,r,i,n,a=l.length,o=0,s=Gt;-1<--a;)(n=(e=(i=l[a]).x-t.x)*e+(r=i.y-t.y)*r)<s&&(o=a,s=n);return s<=h?l[o]:t}:function(t){return t}},vt=function(t){var e,r,i,n,a,o,s=t;if(b&&!Dt&&nt.isPressed&&t){if(e=(nt.pointerEvent=t).changedTouches){if((t=e[0])!==F&&t.identifier!==R){for(n=e.length;-1<--n&&(t=e[n]).identifier!==R;);if(n<0)return}}else if(t.pointerId&&R&&t.pointerId!==R)return;if(Xt)t=St(t,!0);else{if(H&&X&&!W&&(r=t.pageX,i=t.pageY,z&&(n=r*z[0]+i*z[2]+z[4],i=r*z[1]+i*z[3]+z[5],r=n),((a=Math.abs(r-w))!==(o=Math.abs(i-S))&&(it<a||it<o)||Zt&&X===W)&&(W=o<a&&et?"x":"y",!1!==nt.vars.lockAxisOnTouchScroll&&(nt.lockedAxis="x"===W?"y":"x","function"==typeof nt.vars.onLockAxis&&nt.vars.onLockAxis.call(nt,s)),Zt&&X===W)))return void xt(s);nt.allowEventDefault||X&&(!W||X===W)||!1===s.cancelable||(s.preventDefault(),s.preventManipulation&&s.preventManipulation())}nt.autoScroll&&(st=!0),yt(t.pageX,t.pageY)}},yt=function(t,e){var r,i,n,a,o,s,l=1-nt.dragResistance,p=1-nt.edgeResistance;nt.pointerX=t,nt.pointerY=e,Z?(a=Math.atan2(N.y-e,t-N.x)*zt,180<(o=nt.y-a)?(P-=360,nt.y=a):o<-180&&(P+=360,nt.y=a),n=nt.x!==T||Math.abs(P-a)>it?(nt.y=a,T+(P-a)*l):T):(z&&(s=t*z[0]+e*z[2]+z[4],e=t*z[1]+e*z[3]+z[5],t=s),(i=e-S)<it&&-it<i&&(i=0),(r=t-w)<it&&-it<r&&(r=0),(nt.lockAxis||nt.lockedAxis)&&(r||i)&&((s=nt.lockedAxis)||(nt.lockedAxis=s=et&&Math.abs(r)>Math.abs(i)?"y":rt?"x":null,s&&"function"==typeof nt.vars.onLockAxis&&nt.vars.onLockAxis.call(nt,nt.pointerEvent)),"y"===s?i=0:"x"===s&&(r=0)),n=T+r*l,a=P+i*l),(B||j||$)&&(nt.x!==n||nt.y!==a&&!Z)?($&&(te.x=n,te.y=a,n=(s=$(te)).x,a=s.y),B&&(n=B(n)),j&&(a=j(a))):k&&(A<n?n=A+(n-A)*p:n<E&&(n=E+(n-E)*p),Z||(C<a?a=C+(a-C)*p:a<O&&(a=O+(a-O)*p))),Z||z||(n=Math.round(n),a=Math.round(a)),nt.x===n&&(nt.y===a||Z)||(Z?(nt.endRotation=nt.x=nt.endX=n,L=!0):(rt&&(nt.y=nt.endY=a,L=!0),et&&(nt.x=nt.endX=n,L=!0)),!nt.isDragging&&nt.isPressed&&(nt.isDragging=!0,kt(nt,"dragstart","onDragStart")))},xt=function(t,e){if(b&&nt.isPressed&&(!t||null==R||e||!(t.pointerId&&t.pointerId!==R||t.changedTouches&&!function(t,e){for(var r=t.length;-1<--r;)if(t[r].identifier===e)return!0;return!1}(t.changedTouches,R)))){nt.isPressed=!1;var r,i,n,a,o,s=t,l=nt.isDragging,p=nt.vars.allowContextMenu&&t&&(t.ctrlKey||2<t.which),c=me.n.delayedCall(.001,m);if(H?(ue(H,"touchend",xt),ue(H,"touchmove",vt),ue(H,"touchcancel",xt),ue($t,"touchstart",Ct)):ue($t,"mousemove",vt),ue($t,"mouseup",xt),t&&t.target&&ue(t.target,"mouseup",xt),L=!1,V&&!p)return t&&(ue(t.target,"change",xt),nt.pointerEvent=s),Mt(at,!1),kt(nt,"release","onRelease"),kt(nt,"click","onClick"),void(V=!1);if(wt(h),!Z)for(i=at.length;-1<--i;)Pt(at[i],"cursor",u.cursor||"move");if(l&&(ot=Kt=Yt(),nt.isDragging=!1),Qt--,t){if(Xt&&(t=St(t,!1)),(r=t.changedTouches)&&(t=r[0])!==F&&t.identifier!==R){for(i=r.length;-1<--i&&(t=r[i]).identifier!==R;);if(i<0)return}nt.pointerEvent=s,nt.pointerX=t.pageX,nt.pointerY=t.pageY}return p&&s?(s.preventDefault(),s.preventManipulation&&s.preventManipulation(),kt(nt,"release","onRelease")):s&&!l?(G&&(u.snap||u.bounds)&&f(u.throwProps),kt(nt,"release","onRelease"),Zt&&"touchmove"===s.type||-1!==s.type.indexOf("cancel")||(kt(nt,"click","onClick"),Yt()-dt<300&&kt(nt,"doubleclick","onDoubleClick"),a=s.target||s.srcElement||d,dt=Yt(),o=function(){dt!==q&&nt.enabled()&&!nt.isPressed&&(a.click?a.click():$t.createEvent&&((n=$t.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,window,1,nt.pointerEvent.screenX,nt.pointerEvent.screenY,nt.pointerX,nt.pointerY,!1,!1,!1,!1,0,null),a.dispatchEvent(n)))},Zt||s.defaultPrevented||me.n.delayedCall(1e-5,o))):(f(u.throwProps),Xt||nt.allowEventDefault||!s||!u.dragClickables&&ht.call(nt,s.target)||!l||X&&(!W||X!==W)||!1===s.cancelable||(s.preventDefault(),s.preventManipulation&&s.preventManipulation()),kt(nt,"release","onRelease")),ft()&&c.duration(nt.tween.duration()),l&&kt(nt,"dragend","onDragEnd"),!0}};(t=de.get(this.target))&&t.kill(),this.startDrag=function(t,e){var r,i,n,a;g(t||nt.pointerEvent,!0),e&&!nt.hitTest(t||nt.pointerEvent)&&(r=fe(t||nt.pointerEvent),i=fe(d),n=x({x:r.left+r.width/2,y:r.top+r.height/2}),a=x({x:i.left+i.width/2,y:i.top+i.height/2}),w-=n.x-a.x,S-=n.y-a.y),nt.isDragging||(nt.isDragging=!0,kt(nt,"dragstart","onDragStart"))},this.drag=vt,this.endDrag=function(t){xt(t||nt.pointerEvent,!0)},this.timeSinceDrag=function(){return nt.isDragging?0:(Yt()-ot)/1e3},this.timeSinceClick=function(){return(Yt()-dt)/1e3},this.hitTest=function(t,e){return de.hitTest(nt.target,t,e)},this.getDirection=function(t,e){var r,i,n,a,o,s,l="velocity"===t&&Ft?t:"object"!=typeof t||Z?"start":"element";return"element"===l&&(o=fe(nt.target),s=fe(t)),r="start"===l?nt.x-T:"velocity"===l?Ft.getVelocity(this.target,K):o.left+o.width/2-(s.left+s.width/2),Z?r<0?"counter-clockwise":"clockwise":(e=e||2,i="start"===l?nt.y-P:"velocity"===l?Ft.getVelocity(this.target,tt):o.top+o.height/2-(s.top+s.height/2),a=(n=Math.abs(r/i))<1/e?"":r<0?"left":"right",n<e&&(""!==a&&(a+="-"),a+=i<0?"up":"down"),a)},this.applyBounds=function(t){var e,r,i,n,a,o;if(t&&u.bounds!==t)return u.bounds=t,nt.update(!0);if(s(!0),l(),k){if(e=nt.x,r=nt.y,A<e?e=A:e<E&&(e=E),C<r?r=C:r<O&&(r=O),(nt.x!==e||nt.y!==r)&&(i=!0,nt.x=nt.endX=e,Z?nt.endRotation=e:nt.y=nt.endY=r,h(L=!0),nt.autoScroll&&!nt.isDragging))for(ae(d.parentNode),n=d,ee.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=Vt.scrollTop?Vt.scrollTop:$t.body.scrollTop,ee.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=Vt.scrollLeft?Vt.scrollLeft:$t.body.scrollLeft;n&&!o;)a=(o=ne(n.parentNode))?ee:n.parentNode,rt&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),et&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),n=a;nt.isThrowing&&(i||nt.endX>A||nt.endX<E||nt.endY>C||nt.endY<O)&&f(u.throwProps,i)}return nt},this.update=function(t,e,r){var i=nt.x,n=nt.y;return a(!e),t?nt.applyBounds():(L&&r&&h(!0),s(!0)),e&&(yt(nt.pointerX,nt.pointerY),L&&h(!0)),nt.isPressed&&!e&&(et&&.01<Math.abs(i-nt.x)||rt&&.01<Math.abs(n-nt.y)&&!Z)&&c(),nt.autoScroll&&(ae(d.parentNode),st=nt.isDragging,h(!0)),nt.autoScroll&&(ie(d,v),re(d,v)),nt},this.enable=function(t){var e,r,i;if("soft"!==t){for(r=at.length;-1<--r;)i=at[r],ce(i,"mousedown",g),ce(i,"touchstart",g),ce(i,"click",y,!0),Z||Pt(i,"cursor",u.cursor||"move"),Pt(i,"touchCallout","none"),Pt(i,"touchAction",et==rt?"none":et?"pan-y":"pan-x"),At(i)&&Pt(i.ownerSVGElement||i,"touchAction",et==rt?"none":et?"pan-y":"pan-x"),this.vars.allowContextMenu||ce(i,"contextmenu",n);Mt(at,!1)}return re(d,v),b=!0,Ft&&"soft"!==t&&Ft.track(_||d,Q?"x,y":Z?"rotation":"top,left"),_&&_.enable(),d._gsDragID=e="d"+Jt++,qt[e]=this,_&&(_.element._gsDragID=e),me.n.set(d,{x:"+=0",overwrite:!1,data:"_draggable"}),Y={t:d,data:Xt?D:d._gsTransform,tween:{},setRatio:Xt?function(){me.n.set(d,M)}:ge.a._internals.setTransformRatio||ge.a._internals.set3DTransformRatio},c(),nt.update(!0),nt},this.disable=function(t){var e,r,i=nt.isDragging;if(!Z)for(e=at.length;-1<--e;)Pt(at[e],"cursor",null);if("soft"!==t){for(e=at.length;-1<--e;)r=at[e],Pt(r,"touchCallout",null),Pt(r,"touchAction",null),ue(r,"mousedown",g),ue(r,"touchstart",g),ue(r,"click",y),ue(r,"contextmenu",n);Mt(at,!0),H&&(ue(H,"touchcancel",xt),ue(H,"touchend",xt),ue(H,"touchmove",vt)),ue($t,"mouseup",xt),ue($t,"mousemove",vt)}return ie(d,v),b=!1,Ft&&"soft"!==t&&Ft.untrack(_||d,Q?"x,y":Z?"rotation":"top,left"),_&&_.disable(),wt(h),nt.isDragging=nt.isPressed=V=!1,i&&kt(nt,"dragend","onDragEnd"),nt},this.enabled=function(t,e){return arguments.length?t?nt.enable(e):nt.disable(e):b},this.kill=function(){return nt.isThrowing=!1,me.n.killTweensOf(_||d,!0,i),nt.disable(),me.n.set(at,{clearProps:"userSelect"}),delete qt[d._gsDragID],nt},-1!==e.indexOf("scroll")&&(_=this.scrollProxy=new r(d,function(t,e){var r;for(r in e)void 0===t[r]&&(t[r]=e[r]);return t}({onKill:function(){nt.isPressed&&xt(null)}},u)),d.style.overflowY=rt&&!le?"auto":"hidden",d.style.overflowX=et&&!le?"auto":"hidden",d=_.content),!1!==u.force3D&&me.n.set(d,{force3D:!0}),Z?i.rotation=1:(et&&(i[K]=1),rt&&(i[tt]=1)),Z?(D=(M=Bt).css,M.overwrite=!1):Q&&(D=(M=et&&rt?Rt:et?Nt:Lt).css,M.overwrite=!1),this.enable()},X=de.prototype=new me.c;X.constructor=de,X.pointerX=X.pointerY=X.startX=X.startY=X.deltaX=X.deltaY=0,X.isDragging=X.isPressed=!1,de.version="0.16.5",de.zIndex=1e3,ce($t,"touchcancel",function(){}),ce($t,"contextmenu",function(t){var e;for(e in qt)qt[e].isPressed&&qt[e].endDrag()}),de.create=function(t,e){"string"==typeof t&&(t=me.n.selector(t));for(var r=t&&0!==t.length?s(t)?function(t){var e,r,i,n=[],a=t.length;for(e=0;e<a;e++)if(r=t[e],s(r))for(i=r.length,i=0;i<r.length;i++)n.push(r[i]);else r&&0!==r.length&&n.push(r);return n}(t):[t]:[],i=r.length;-1<--i;)r[i]=new de(r[i],e);return r},de.get=function(t){return qt[(Tt(t)||{})._gsDragID]},de.timeSinceDrag=function(){return(Yt()-Kt)/1e3};var W={},fe=function(t,e){if(t===window)return W.left=W.top=0,W.width=W.right=Vt.clientWidth||t.innerWidth||$t.body.clientWidth||0,W.height=W.bottom=(t.innerHeight||0)-20<Vt.clientHeight?Vt.clientHeight:t.innerHeight||$t.body.clientHeight||0,W;var r=t.pageX!==e?{left:t.pageX-I(),top:t.pageY-k(),right:t.pageX-I()+1,bottom:t.pageY-k()+1}:t.nodeType||t.left===e||t.top===e?Xt?function(t){var e,r,i=0,n=0;for(e=(t=Tt(t)).offsetWidth,r=t.offsetHeight;t;)i+=t.offsetTop,n+=t.offsetLeft,t=t.offsetParent;return{top:i,left:n,width:e,height:r}}(t):Tt(t).getBoundingClientRect():t;return r.right===e&&r.width!==e?(r.right=r.left+r.width,r.bottom=r.top+r.height):r.width===e&&(r={width:r.right-r.left,height:r.bottom-r.top,right:r.right,left:r.left,bottom:r.bottom,top:r.top}),r};return de.hitTest=function(t,e,r){if(t===e)return!1;var i,n,a,o=fe(t),s=fe(e),l=s.left>o.right||s.right<o.left||s.top>o.bottom||s.bottom<o.top;return l||!r?!l:(a=-1!==(r+"").indexOf("%"),r=parseFloat(r)||0,(i={left:Math.max(o.left,s.left),top:Math.max(o.top,s.top)}).width=Math.min(o.right,s.right)-i.left,i.height=Math.min(o.bottom,s.bottom)-i.top,!(i.width<0||i.height<0)&&(a?(r*=.01,(n=i.width*i.height)>=o.width*o.height*r||n>=s.width*s.height*r):i.width>r&&i.height>r))},Wt.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;",de},!0);var i=me.o.Draggable},function(t,e,r){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){var f="function"==typeof Float32Array;function t(o,e,s,r){if(4!==arguments.length)throw new Error("BezierEasing requires 4 arguments.");for(var t=0;t<4;++t)if("number"!=typeof arguments[t]||isNaN(arguments[t])||!isFinite(arguments[t]))throw new Error("BezierEasing arguments should be integers.");if(o<0||1<o||s<0||1<s)throw new Error("BezierEasing x values must be in [0, 1] range.");var a=f?new Float32Array(11):new Array(11);function i(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function l(t){return 3*t}function p(t,e,r){return((i(e,r)*t+n(e,r))*t+l(e))*t}function c(t,e,r){return 3*i(e,r)*t*t+2*n(e,r)*t+l(e)}function u(t){for(var e=0,r=1;10!=r&&a[r]<=t;++r)e+=.1;var i=e+.1*((t-a[--r])/(a[r+1]-a[r])),n=c(i,o,s);return.001<=n?function(t,e){for(var r=0;r<4;++r){var i=c(e,o,s);if(0===i)return e;e-=(p(e,o,s)-t)/i}return e}(t,i):0==n?i:function(t,e,r){for(var i,n,a=0;0<(i=p(n=e+(r-e)/2,o,s)-t)?r=n:e=n,1e-7<Math.abs(i)&&++a<10;);return n}(t,e,e+.1)}o==e&&s==r||function(){for(var t=0;t<11;++t)a[t]=p(.1*t,o,s)}();function h(t){return o===e&&s===r?t:0===t?0:1===t?1:p(u(t),e,r)}var d="BezierEasing("+[o,e,s,r]+")";return h.toString=function(){return d},h}return t.css={ease:t(.25,.1,.25,1),linear:t(0,0,1,1),"ease-in":t(.42,0,1,1),"ease-out":t(0,0,.58,1),"ease-in-out":t(.42,0,.58,1)},t},"object"===i(e)?t.exports=n():"function"==typeof window.define&&window.define.amd?window.define([],n):window.BezierEasing=n()},function(t,e,r){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
/*! iScroll v5.1.2 ~ (c) 2008-2014 Matteo Spinelli ~ http://cubiq.org/license */function n(t,e){for(var r in this.wrapper="string"==typeof t?o.querySelector(t):t,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={zoomMin:1,zoomMax:4,startZoom:1,resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|VIDEO)$/},HWCompositing:!0,useTransition:!0,useTransform:!0},e)this.options[r]=e[r];this.translateZ=this.options.HWCompositing&&m.hasPerspective?" translateZ(0)":"",$.browser.safari&&(this.translateZ=""),this.options.useTransition=m.hasTransition&&this.options.useTransition,this.options.useTransform=m.hasTransform&&this.options.useTransform,this.options.eventPassthrough=!0===this.options.eventPassthrough?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY="vertical"!=this.options.eventPassthrough&&this.options.scrollY,this.options.scrollX="horizontal"!=this.options.eventPassthrough&&this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.freeScroll=this.options.twoWayScroll||this.options.freeScroll,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing="string"==typeof this.options.bounceEasing?m.ease[this.options.bounceEasing]||m.ease.circular:this.options.bounceEasing,this.options.resizePolling=void 0===this.options.resizePolling?60:this.options.resizePolling,!0===this.options.tap&&(this.options.tap="tap"),"scale"==this.options.shrinkScrollbars&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,3==this.options.probeType&&(this.options.useTransition=!1),this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this.scale=u.min(u.max(this.options.startZoom,this.options.zoomMin),this.options.zoomMax),this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function s(t,e,r){var i=o.createElement("div"),n=o.createElement("div");return!0===r&&(i.style.cssText="position:absolute;z-index:9999",n.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),n.className="iScrollIndicator","h"==t?(!0===r&&(i.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",n.style.height="100%"),i.className="iScrollHorizontalScrollbar"):(!0===r&&(i.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",n.style.width="100%"),i.className="iScrollVerticalScrollbar"),i.style.cssText+=";overflow:hidden",e||(i.style.pointerEvents="none"),i.appendChild(n),i}function l(t,e){for(var r in this.wrapper="string"==typeof e.el?o.querySelector(e.el):e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0},e)this.options[r]=e[r];this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(m.addEvent(this.indicator,"touchstart",this),m.addEvent(a,"touchend",this)),this.options.disablePointer||(m.addEvent(this.indicator,m.prefixPointerEvent("pointerdown"),this),m.addEvent(a,m.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(m.addEvent(this.indicator,"mousedown",this),m.addEvent(a,"mouseup",this))),this.options.fade&&(this.wrapperStyle[m.style.transform]=this.scroller.translateZ,this.wrapperStyle[m.style.transitionDuration]=m.isBadAndroid?"0.001s":"0ms",this.wrapperStyle.opacity="0")}
/*! iScroll v5.1.2 ~ (c) 2008-2014 Matteo Spinelli ~ http://cubiq.org/license */
var a,o,u,f,m;a=window,o=document,u=Math,f=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(t){a.setTimeout(t,1e3/60)},m=function(){var i={},n=o.createElement("div").style,e=function(){for(var t=["t","webkitT","MozT","msT","OT"],e=0,r=t.length;e<r;e++)if(t[e]+"ransform"in n)return t[e].substr(0,t[e].length-1);return!1}();function t(t){return!1!==e&&(""===e?t:e+t.charAt(0).toUpperCase()+t.substr(1))}i.getTime=Date.now||function(){return(new Date).getTime()},i.extend=function(t,e){for(var r in e)t[r]=e[r]},i.addEvent=function(t,e,r,i){t.addEventListener(e,r,!!i)},i.removeEvent=function(t,e,r,i){t.removeEventListener(e,r,!!i)},i.prefixPointerEvent=function(t){return a.MSPointerEvent?"MSPointer"+t.charAt(9).toUpperCase()+t.substr(10):t},i.momentum=function(t,e,r,i,n,a){var o,s,l=t-e,p=u.abs(l)/r;return s=p/(a=void 0===a?6e-4:a),(o=t+p*p/(2*a)*(l<0?-1:1))<i?(o=n?i-n/2.5*(p/8):i,s=(l=u.abs(o-t))/p):0<o&&(o=n?n/2.5*(p/8):0,s=(l=u.abs(t)+o)/p),{destination:u.round(o),duration:s}};var r=t("transform");return i.extend(i,{hasTransform:!1!==r,hasPerspective:t("perspective")in n,hasTouch:"ontouchstart"in a,hasPointer:a.PointerEvent||a.MSPointerEvent,hasTransition:t("transition")in n}),i.isBadAndroid=/Android /.test(a.navigator.appVersion)&&!/Chrome\/\d/.test(a.navigator.appVersion),i.extend(i.style={},{transform:r,transitionTimingFunction:t("transitionTimingFunction"),transitionDuration:t("transitionDuration"),transitionDelay:t("transitionDelay"),transformOrigin:t("transformOrigin")}),i.hasClass=function(t,e){return new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},i.addClass=function(t,e){if(!i.hasClass(t,e)){var r=t.className.split(" ");r.push(e),t.className=r.join(" ")}},i.removeClass=function(t,e){if(i.hasClass(t,e)){var r=new RegExp("(^|\\s)"+e+"(\\s|$)","g");t.className=t.className.replace(r," ")}},i.offset=function(t){for(var e=-t.offsetLeft,r=-t.offsetTop;t=t.offsetParent;)e-=t.offsetLeft,r-=t.offsetTop;return{left:e,top:r}},i.preventDefaultException=function(t,e){for(var r in e)if(e[r].test(t[r]))return!0;return!1},i.extend(i.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),i.extend(i.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(t){return u.sqrt(1- --t*t)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(t){return(t-=1)*t*(5*t+4)+1}},bounce:{style:"",fn:function(t){return(t/=1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},elastic:{style:"",fn:function(t){return 0===t?0:1==t?1:.4*u.pow(2,-10*t)*u.sin((t-.055)*(2*u.PI)/.22)+1}}}),i.tap=function(t,e){var r=o.createEvent("Event");r.initEvent(e,!0,!0),r.pageX=t.pageX,r.pageY=t.pageY,t.target.dispatchEvent(r)},i.click=function(t){var e,r=t.target;/(SELECT|INPUT|TEXTAREA)/i.test(r.tagName)||((e=o.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,t.view,1,r.screenX,r.screenY,r.clientX,r.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,0,null),e._constructed=!0,r.dispatchEvent(e))},i}(),n.prototype={version:"5.1.2",_init:function(){this._initEvents(),this.options.zoom&&this._initZoom(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),this._execEvent("destroy")},_transitionEnd:function(t){t.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(t){if((1==m.eventType[t.type]||0===t.button)&&this.enabled&&(!this.initiated||m.eventType[t.type]===this.initiated)){!this.options.preventDefault||m.isBadAndroid||m.preventDefaultException(t.target,this.options.preventDefaultException)||t.preventDefault();var e,r=t.touches?t.touches[0]:t;this.initiated=m.eventType[t.type],this.twoWayOnEndCheck=!0,this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=m.getTime(),this.options.useTransition&&this.isInTransition?(this.isInTransition=!1,e=this.getComputedPosition(),this._translate(u.round(e.x),u.round(e.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=r.pageX,this.pointY=r.pageY,this._execEvent("beforeScrollStart")}},_move:function(t){if(this.enabled&&m.eventType[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault();var e,r,i,n,a=t.touches?t.touches[0]:t,o=a.pageX-this.pointX,s=a.pageY-this.pointY,l=m.getTime();if(this.pointX=a.pageX,this.pointY=a.pageY,this.distX+=o,this.distY+=s,i=u.abs(this.distX),n=u.abs(this.distY),!(300<l-this.endTime&&i<10&&n<10)){if(this.options.twoWayScroll&&this.options.scrollX){if(!this.directionLocked&&n<=i&&(this.directionLocked=!0),!this.directionLocked)return void(this.initiated=!1);t.preventDefault(),t.stopPropagation()}else if(this.options.twoWayScroll&&this.options.scrollY){if(!this.directionLocked&&i<n&&(this.directionLocked=!0),!this.directionLocked)return void(this.initiated=!1);t.preventDefault(),t.stopPropagation()}if(this.directionLocked||this.options.freeScroll||(i>n+this.options.directionLockThreshold?this.directionLocked="h":n>=i+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)t.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);s=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)t.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);o=0}o=this.hasHorizontalScroll?o:0,s=this.hasVerticalScroll?s:0,e=this.x+o,r=this.y+s,(0<e||e<this.maxScrollX)&&(e=this.options.bounce?this.x+o/3:0<e?0:this.maxScrollX),(0<r||r<this.maxScrollY)&&(r=this.options.bounce?this.y+s/3:0<r?0:this.maxScrollY),this.directionX=0<o?-1:o<0?1:0,this.directionY=0<s?-1:s<0?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(e,r),300<l-this.startTime&&(this.startTime=l,this.startX=this.x,this.startY=this.y,1==this.options.probeType&&this._execEvent("scroll")),1<this.options.probeType&&this._execEvent("scroll")}}},_end:function(t){if(this.twoWayOnEndCheck||this.enabled&&m.eventType[t.type]===this.initiated){this.twoWayOnEndCheck=!1,this.options.preventDefault&&!m.preventDefaultException(t.target,this.options.preventDefaultException)&&t.preventDefault(),t.changedTouches&&t.changedTouches[0];var e,r,i=m.getTime()-this.startTime,n=u.round(this.x),a=u.round(this.y),o=u.abs(n-this.startX),s=u.abs(a-this.startY),l=0,p="";if(this.isInTransition=0,this.initiated=0,this.endTime=m.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(n,a),!this.moved&&!this.options.snap)return this.options.tap&&m.tap(t,this.options.tap),this.options.click&&m.click(t),void this._execEvent("scrollCancel");if(this.moved&&this._events.flick&&i<200&&o<100&&s<100)return 0==o&&0==s?void this._execEvent("scrollCancel"):void this._execEvent("flick");if(this.options.momentum&&i<300&&(e=this.hasHorizontalScroll?m.momentum(this.x,this.startX,i,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:n,duration:0},r=this.hasVerticalScroll?m.momentum(this.y,this.startY,i,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:a,duration:0},n=e.destination,a=r.destination,l=u.max(e.duration,r.duration),this.isInTransition=1),this.options.snap){var c=this._nearestSnap(n,a);this.currentPage=c,l=this.options.snapSpeed||u.max(u.max(u.min(u.abs(n-c.x),1e3),u.min(u.abs(a-c.y),1e3)),300),n=c.x,a=c.y,this.directionX=0,this.directionY=0,p=this.options.bounceEasing}if(n!=this.x||a!=this.y)return(0<n||n<this.maxScrollX||0<a||a<this.maxScrollY)&&(p=m.ease.quadratic),void this.scrollTo(n,a,l,p);if(!this.moved&&this.options.snap)return this.options.tap&&m.tap(t,this.options.tap),this.options.click&&m.click(t),void this._execEvent("scrollCancel");this.moved=!1,this._execEvent("scrollEnd")}}},_resize:function(){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling)},resetPosition:function(t){var e=this.x,r=this.y;return t=t||0,!this.hasHorizontalScroll||0<this.x?e=0:this.x<this.maxScrollX&&(e=this.maxScrollX),!this.hasVerticalScroll||0<this.y?r=0:this.y<this.maxScrollY&&(r=this.maxScrollY),(e!=this.x||r!=this.y)&&(this.scrollTo(e,r,t,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){this.wrapper.offsetHeight,this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight,this.scrollerWidth=u.round(this.scroller.offsetWidth*this.scale),this.scrollerHeight=u.round(this.scroller.offsetHeight*this.scale),this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=m.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition()},on:function(t,e){this._events[t]||(this._events[t]=[]),this._events[t].push(e)},off:function(t,e){if(this._events[t]){var r=this._events[t].indexOf(e);-1<r&&this._events[t].splice(r,1)}},_execEvent:function(t){if(this._events[t]){var e=0,r=this._events[t].length;if(r)for(;e<r;e++)this._events[t][e].apply(this,[].slice.call(arguments,1))}},scrollBy:function(t,e,r,i){t=this.x+t,e=this.y+e,r=r||0,this.scrollTo(t,e,r,i)},scrollTo:function(t,e,r,i){i=i||m.ease.circular,this.isInTransition=this.options.useTransition&&0<r,void 0===r||this.options.useTransition&&i.style?(this._transitionTimingFunction(i.style),this._transitionTime(r),this._translate(t,e)):this._animate(t,e,r,i.fn)},scrollToElement:function(t,e,r,i,n){if(t=t.nodeType?t:this.scroller.querySelector(t)){var a=m.offset(t);a.left-=this.wrapperOffset.left,a.top-=this.wrapperOffset.top,!0===r&&(r=u.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===i&&(i=u.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),a.left-=r||0,a.top-=i||0,a.left=0<a.left?0:a.left<this.maxScrollX?this.maxScrollX:a.left,a.top=0<a.top?0:a.top<this.maxScrollY?this.maxScrollY:a.top,e=null==e||"auto"===e?u.max(u.abs(this.x-a.left),u.abs(this.y-a.top)):e,this.scrollTo(a.left,a.top,e,n)}},_transitionTime:function(t){if(t=t||0,this.scrollerStyle[m.style.transitionDuration]=t+"ms",!t&&m.isBadAndroid&&(this.scrollerStyle[m.style.transitionDuration]="0.001s"),this.indicators)for(var e=this.indicators.length;e--;)this.indicators[e].transitionTime(t)},_transitionTimingFunction:function(t){if(this.scrollerStyle[m.style.transitionTimingFunction]=t,this.indicators)for(var e=this.indicators.length;e--;)this.indicators[e].transitionTimingFunction(t)},_translate:function(t,e){if(this.options.useTransform?this.scrollerStyle[m.style.transform]="translate("+t+"px,"+e+"px) scale("+this.scale+") "+this.translateZ:(t=u.round(t),e=u.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.x=t,this.y=e,this.indicators)for(var r=this.indicators.length;r--;)this.indicators[r].updatePosition()},_initEvents:function(t){var e=t?m.removeEvent:m.addEvent,r=this.options.bindToWrapper?this.wrapper:a;e(a,"orientationchange",this),e(a,"resize",this),this.options.click&&e(this.wrapper,"click",this,!0),this.options.disableMouse||(e(this.wrapper,"mousedown",this),e(r,"mousemove",this),e(r,"mousecancel",this),e(r,"mouseup",this)),m.hasPointer&&!this.options.disablePointer&&(e(this.wrapper,m.prefixPointerEvent("pointerdown"),this),e(r,m.prefixPointerEvent("pointermove"),this),e(r,m.prefixPointerEvent("pointercancel"),this),e(r,m.prefixPointerEvent("pointerup"),this)),m.hasTouch&&!this.options.disableTouch&&(e(this.wrapper,"touchstart",this),e(r,"touchmove",this),e(r,"touchcancel",this),e(r,"touchend",this)),e(this.scroller,"transitionend",this),e(this.scroller,"webkitTransitionEnd",this),e(this.scroller,"oTransitionEnd",this),e(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var t,e,r=a.getComputedStyle(this.scroller,null);return e=this.options.useTransform?(t=+((r=r[m.style.transform].split(")")[0].split(", "))[12]||r[4]),+(r[13]||r[5])):(t=+r.left.replace(/[^-\d.]/g,""),+r.top.replace(/[^-\d.]/g,"")),{x:t,y:e}},_initIndicators:function(){var t,e=this.options.interactiveScrollbars,r="string"!=typeof this.options.scrollbars,i=[],n=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(t={el:s("v",e,this.options.scrollbars),interactive:e,defaultScrollbars:!0,customStyle:r,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(t.el),i.push(t)),this.options.scrollX&&(t={el:s("h",e,this.options.scrollbars),interactive:e,defaultScrollbars:!0,customStyle:r,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(t.el),i.push(t))),this.options.indicators&&(i=i.concat(this.options.indicators));for(var a=i.length;a--;)this.indicators.push(new l(this,i[a]));function o(t){for(var e=n.indicators.length;e--;)t.call(n.indicators[e])}this.options.fadeScrollbars&&(this.on("scrollEnd",function(){o(function(){this.fade()})}),this.on("scrollCancel",function(){o(function(){this.fade()})}),this.on("scrollStart",function(){o(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){o(function(){this.fade(1,!0)})})),this.on("refresh",function(){o(function(){this.refresh()})}),this.on("destroy",function(){o(function(){this.destroy()}),delete this.indicators})},_initZoom:function(){this.scrollerStyle[m.style.transformOrigin]="0 0"},_zoomStart:function(t){var e=u.abs(t.touches[0].pageX-t.touches[1].pageX),r=u.abs(t.touches[0].pageY-t.touches[1].pageY);this.touchesDistanceStart=u.sqrt(e*e+r*r),this.startScale=this.scale,this.originX=u.abs(t.touches[0].pageX+t.touches[1].pageX)/2+this.wrapperOffset.left-this.x,this.originY=u.abs(t.touches[0].pageY+t.touches[1].pageY)/2+this.wrapperOffset.top-this.y,this._execEvent("zoomStart")},_zoom:function(t){if(this.enabled&&m.eventType[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault();var e,r,i,n=u.abs(t.touches[0].pageX-t.touches[1].pageX),a=u.abs(t.touches[0].pageY-t.touches[1].pageY),o=u.sqrt(n*n+a*a),s=1/this.touchesDistanceStart*o*this.startScale;this.scaled=!0,s<this.options.zoomMin?s=.5*this.options.zoomMin*u.pow(2,s/this.options.zoomMin):s>this.options.zoomMax&&(s=2*this.options.zoomMax*u.pow(.5,this.options.zoomMax/s)),e=s/this.startScale,r=this.originX-this.originX*e+this.startX,i=this.originY-this.originY*e+this.startY,this.scale=s,this.scrollTo(r,i)}},_zoomEnd:function(t){var e,r,i;this.enabled&&m.eventType[t.type]===this.initiated&&(this.options.preventDefault&&t.preventDefault(),this.isInTransition=0,this.initiated=0,this.scale>this.options.zoomMax?this.scale=this.options.zoomMax:this.scale<this.options.zoomMin&&(this.scale=this.options.zoomMin),this.refresh(),i=this.scale/this.startScale,e=this.originX-this.originX*i+this.startX,r=this.originY-this.originY*i+this.startY,0<e?e=0:e<this.maxScrollX&&(e=this.maxScrollX),0<r?r=0:r<this.maxScrollY&&(r=this.maxScrollY),this.x==e&&this.y==r||this.scrollTo(e,r,this.options.bounceTime),this.scaled=!1,this._execEvent("zoomEnd"))},zoom:function(t,e,r,i){if(t<this.options.zoomMin?t=this.options.zoomMin:t>this.options.zoomMax&&(t=this.options.zoomMax),t!=this.scale){var n=t/this.scale;e=void 0===e?this.wrapperWidth/2:e,r=void 0===r?this.wrapperHeight/2:r,i=void 0===i?300:i,e=e+this.wrapperOffset.left-this.x,r=r+this.wrapperOffset.top-this.y,e=e-e*n+this.x,r=r-r*n+this.y,this.scale=t,this.refresh(),0<e?e=0:e<this.maxScrollX&&(e=this.maxScrollX),0<r?r=0:r<this.maxScrollY&&(r=this.maxScrollY),this.scrollTo(e,r,i)}},_wheelZoom:function(t){var e,r,i=this;if(clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){i._execEvent("zoomEnd")},400),"deltaX"in t)e=-t.deltaY/u.abs(t.deltaY);else if("wheelDeltaX"in t)e=t.wheelDeltaY/u.abs(t.wheelDeltaY);else if("wheelDelta"in t)e=t.wheelDelta/u.abs(t.wheelDelta);else{if(!("detail"in t))return;e=-t.detail/u.abs(t.wheelDelta)}r=this.scale+e/5,this.zoom(r,t.pageX,t.pageY,0)},_initWheel:function(){m.addEvent(this.wrapper,"wheel",this),m.addEvent(this.wrapper,"mousewheel",this),m.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){m.removeEvent(this.wrapper,"wheel",this),m.removeEvent(this.wrapper,"mousewheel",this),m.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(t){if(this.enabled){t.preventDefault(),t.stopPropagation();var e,r,i,n,a=this;if(void 0===this.wheelTimeout&&a._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){a._execEvent("scrollEnd"),a.wheelTimeout=void 0},400),"deltaX"in t)e=-t.deltaX,r=-t.deltaY;else if("wheelDeltaX"in t)e=t.wheelDeltaX/120*this.options.mouseWheelSpeed,r=t.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in t)e=r=t.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in t))return;e=r=-t.detail/3*this.options.mouseWheelSpeed}if(e*=this.options.invertWheelDirection,r*=this.options.invertWheelDirection,this.hasVerticalScroll||(e=r,r=0),this.options.snap)return i=this.currentPage.pageX,n=this.currentPage.pageY,0<e?i--:e<0&&i++,0<r?n--:r<0&&n++,void this.goToPage(i,n);i=this.x+u.round(this.hasHorizontalScroll?e:0),n=this.y+u.round(this.hasVerticalScroll?r:0),0<i?i=0:i<this.maxScrollX&&(i=this.maxScrollX),0<n?n=0:n<this.maxScrollY&&(n=this.maxScrollY),this.scrollTo(i,n),1<this.options.probeType&&this._execEvent("scroll")}},_initSnap:function(){this.currentPage={},"string"==typeof this.options.snap&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",function(){var t,e,r,i,n,a,o=0,s=0,l=0,p=this.options.snapStepX||this.wrapperWidth,c=this.options.snapStepY||this.wrapperHeight;if(this.pages=[],this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight){if(!0===this.options.snap)for(r=u.round(p/2),i=u.round(c/2);l>-this.scrollerWidth;){for(this.pages[o]=[],n=t=0;n>-this.scrollerHeight;)this.pages[o][t]={x:u.max(l,this.maxScrollX),y:u.max(n,this.maxScrollY),width:p,height:c,cx:l-r,cy:n-i},n-=c,t++;l-=p,o++}else for(t=(a=this.options.snap).length,e=-1;o<t;o++)(0===o||a[o].offsetLeft<=a[o-1].offsetLeft)&&(s=0,e++),this.pages[s]||(this.pages[s]=[]),l=u.max(-a[o].offsetLeft,this.maxScrollX),n=u.max(-a[o].offsetTop,this.maxScrollY),r=l-u.round(a[o].offsetWidth/2),i=n-u.round(a[o].offsetHeight/2),this.pages[s][e]={x:l,y:n,width:a[o].offsetWidth,height:a[o].offsetHeight,cx:r,cy:i},l>this.maxScrollX&&s++;"{}"===JSON.stringify(this.currentPage)&&(this.currentPage=this._nearestSnap(this.options.startX,this.options.startY)),this.goToPage(this.currentPage.pageX,this.currentPage.pageY,0),this.options.snapThreshold%1==0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=u.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=u.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}}),this.on("flick",function(){var t=this.options.snapSpeed||u.max(u.max(u.min(u.abs(this.x-this.startX),1e3),u.min(u.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,t)})},_nearestSnap:function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var r=0,i=this.pages.length,n=0;if(u.abs(t-this.absStartX)<this.snapThresholdX&&u.abs(e-this.absStartY)<this.snapThresholdY)return this.currentPage;for(0<t?t=0:t<this.maxScrollX&&(t=this.maxScrollX),0<e?e=0:e<this.maxScrollY&&(e=this.maxScrollY);r<i;r++)if(t>=this.pages[r][0].cx){t=this.pages[r][0].x;break}for(i=this.pages[r].length;n<i;n++)if(e>=this.pages[0][n].cy){e=this.pages[0][n].y;break}return r==this.currentPage.pageX&&((r+=this.directionX)<0?r=0:r>=this.pages.length&&(r=this.pages.length-1),t=this.pages[r][0].x),n==this.currentPage.pageY&&((n+=this.directionY)<0?n=0:n>=this.pages[0].length&&(n=this.pages[0].length-1),e=this.pages[0][n].y),{x:t,y:e,pageX:r,pageY:n}},goToPage:function(t,e,r,i){if(i=i||this.options.bounceEasing,void 0===this.pages||void 0!==this.pages&&0==this.pages.length)return!1;t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var n=this.pages[t][e].x,a=this.pages[t][e].y;r=void 0===r?this.options.snapSpeed||u.max(u.max(u.min(u.abs(n-this.x),1e3),u.min(u.abs(a-this.y),1e3)),300):r,this.currentPage={x:n,y:a,pageX:t,pageY:e},this.scrollTo(n,a,r,i)},next:function(t,e){var r=this.currentPage.pageX,i=this.currentPage.pageY;++r>=this.pages.length&&this.hasVerticalScroll&&(r=0,i++),this.goToPage(r,i,t,e)},prev:function(t,e){var r=this.currentPage.pageX,i=this.currentPage.pageY;--r<0&&this.hasVerticalScroll&&(r=0,i--),this.goToPage(r,i,t,e)},_initKeys:function(t){var e,r={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40};if("object"==i(this.options.keyBindings))for(e in this.options.keyBindings)"string"==typeof this.options.keyBindings[e]&&(this.options.keyBindings[e]=this.options.keyBindings[e].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(e in r)this.options.keyBindings[e]=this.options.keyBindings[e]||r[e];m.addEvent(a,"keydown",this),this.on("destroy",function(){m.removeEvent(a,"keydown",this)})},_key:function(t){if(this.enabled){var e,r=this.options.snap,i=r?this.currentPage.pageX:this.x,n=r?this.currentPage.pageY:this.y,a=m.getTime(),o=this.keyTime||0;switch(this.options.useTransition&&this.isInTransition&&(e=this.getComputedPosition(),this._translate(u.round(e.x),u.round(e.y)),this.isInTransition=!1),this.keyAcceleration=a-o<200?u.min(this.keyAcceleration+.25,50):0,t.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?i+=r?1:this.wrapperWidth:n+=r?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?i-=r?1:this.wrapperWidth:n-=r?1:this.wrapperHeight;break;case this.options.keyBindings.end:i=r?this.pages.length-1:this.maxScrollX,n=r?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:n=i=0;break;case this.options.keyBindings.left:i+=r?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:n+=r?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:i-=r?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:n-=r?1:5+this.keyAcceleration>>0;break;default:return}r?this.goToPage(i,n):(0<i?(i=0,this.keyAcceleration=0):i<this.maxScrollX&&(i=this.maxScrollX,this.keyAcceleration=0),0<n?(n=0,this.keyAcceleration=0):n<this.maxScrollY&&(n=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(i,n),this.keyTime=a)}},_animate:function(a,o,s,l){var p=this,c=this.x,u=this.y,h=m.getTime(),d=h+s;this.isAnimating=!0,function t(){var e,r,i,n=m.getTime();if(d<=n)return p.isAnimating=!1,p._translate(a,o),void(p.resetPosition(p.options.bounceTime)||p._execEvent("scrollEnd"));i=l(n=(n-h)/s),e=(a-c)*i+c,r=(o-u)*i+u,p._translate(e,r),p.isAnimating&&f(t),3==p.options.probeType&&p._execEvent("scroll")}()},handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":if(t.touches&&3==t.touches.length)return;this._start(t),this.options.zoom&&t.touches&&1<t.touches.length&&this._zoomStart(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":if(t.touches&&3==t.touches.length)return;if(this.options.zoom&&t.touches&&t.touches[1])return void this._zoom(t);this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":if(t.touches&&3==t.touches.length)return;if(this.scaled)return void this._zoomEnd(t);this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"wheel":case"DOMMouseScroll":case"mousewheel":if("zoom"==this.options.wheelAction)return void this._wheelZoom(t);this._wheel(t);break;case"keydown":this._key(t)}}},l.prototype={handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(t)}},destroy:function(){this.options.interactive&&(m.removeEvent(this.indicator,"touchstart",this),m.removeEvent(this.indicator,m.prefixPointerEvent("pointerdown"),this),m.removeEvent(this.indicator,"mousedown",this),m.removeEvent(a,"touchmove",this),m.removeEvent(a,m.prefixPointerEvent("pointermove"),this),m.removeEvent(a,"mousemove",this),m.removeEvent(a,"touchend",this),m.removeEvent(a,m.prefixPointerEvent("pointerup"),this),m.removeEvent(a,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=m.getTime(),this.options.disableTouch||m.addEvent(a,"touchmove",this),this.options.disablePointer||m.addEvent(a,m.prefixPointerEvent("pointermove"),this),this.options.disableMouse||m.addEvent(a,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(t){var e,r,i,n,a=t.touches?t.touches[0]:t,o=m.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,e=a.pageX-this.lastPointX,this.lastPointX=a.pageX,r=a.pageY-this.lastPointY,this.lastPointY=a.pageY,i=this.x+e,n=this.y+r,this._pos(i,n),1==this.scroller.options.probeType&&300<o-this.startTime?(this.startTime=o,this.scroller._execEvent("scroll")):1<this.scroller.options.probeType&&this.scroller._execEvent("scroll"),t.preventDefault(),t.stopPropagation()},_end:function(t){if(this.initiated){if(this.initiated=!1,t.preventDefault(),t.stopPropagation(),m.removeEvent(a,"touchmove",this),m.removeEvent(a,m.prefixPointerEvent("pointermove"),this),m.removeEvent(a,"mousemove",this),this.scroller.options.snap){var e=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),r=this.options.snapSpeed||u.max(u.max(u.min(u.abs(this.scroller.x-e.x),1e3),u.min(u.abs(this.scroller.y-e.y),1e3)),300);this.scroller.x==e.x&&this.scroller.y==e.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=e,this.scroller.scrollTo(e.x,e.y,r,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(t){t=t||0,this.indicatorStyle[m.style.transitionDuration]=t+"ms",!t&&m.isBadAndroid&&(this.indicatorStyle[m.style.transitionDuration]="0.001s")},transitionTimingFunction:function(t){this.indicatorStyle[m.style.transitionTimingFunction]=t},refresh:function(){if(this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(m.addClass(this.wrapper,"iScrollBothScrollbars"),m.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(m.removeClass(this.wrapper,"iScrollBothScrollbars"),m.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px")),this.wrapper.offsetHeight,this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=u.max(u.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,"clip"==this.options.shrink?(this.minBoundaryX=8-this.indicatorWidth,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY){var t=void 0!==prx.devices[prx.device]&&"crown"==prx.devices[prx.device].scrollType||void 0!==prx.deviceExtraParams&&"crown"==prx.deviceExtraParams.scrollType;this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=u.max(u.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.offsetHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight-(1==t?3:0),"clip"==this.options.shrink?(this.minBoundaryY=8-this.indicatorHeight,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=1==t?3:0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY}this.updatePosition()},updatePosition:function(){var t=this.options.listenX&&u.round(this.sizeRatioX*this.scroller.x)||0,e=this.options.listenY&&u.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(t<this.minBoundaryX?("scale"==this.options.shrink&&(this.width=u.max(this.indicatorWidth+t,8),this.indicatorStyle.width=this.width+"px"),t=this.minBoundaryX):t>this.maxBoundaryX?t="scale"==this.options.shrink?(this.width=u.max(this.indicatorWidth-(t-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",this.maxPosX+this.indicatorWidth-this.width):this.maxBoundaryX:"scale"==this.options.shrink&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),e<this.minBoundaryY?("scale"==this.options.shrink&&(this.height=u.max(this.indicatorHeight+3*e,8),this.indicatorStyle.height=this.height+"px"),e=this.minBoundaryY):e>this.maxBoundaryY?e="scale"==this.options.shrink?(this.height=u.max(this.indicatorHeight-3*(e-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",this.maxPosY+this.indicatorHeight-this.height):this.maxBoundaryY:"scale"==this.options.shrink&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=t,this.y=e,this.scroller.options.useTransform?this.indicatorStyle[m.style.transform]="translate("+t+"px,"+e+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=t+"px",this.indicatorStyle.top=e+"px")},_pos:function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=this.options.listenX?u.round(t/this.sizeRatioX):this.scroller.x,e=this.options.listenY?u.round(e/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(t,e)},fade:function(t,e){if(!e||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var r=t?250:500,i=t?0:300;t=t?"1":"0",this.wrapperStyle[m.style.transitionDuration]=r+"ms",this.fadeTimeout=setTimeout(function(t){this.wrapperStyle.opacity=t,this.visible=+t}.bind(this,t),i)}}},n.utils=m,t.exports?t.exports=n:a.IScroll=n},function(E,t){function F(t){return(F="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})(t)}(function(){function c(t){return!t||"loaded"==t||"complete"==t}function u(){for(var t=1,e=-1;y.length-++e&&(!y[e].s||(t=y[e].r)););t&&h()}function h(){var t=y.shift();x=1,t?t.t?g(function(){"c"==t.t?function(t){var i,e=f.createElement("link");if(e.href=t.s,e.rel="stylesheet",e.type="text/css",t.e||!l&&!a)e.onload=function(){i||(i=1,g(function(){u()},0))},t.e&&e.onload();else{!function e(r){g(function(){if(!i)try{r.sheet.cssRules.length?(i=1,u()):e(r)}catch(t){1e3==t.code||"security"==t.message||"denied"==t.message?(i=1,g(function(){u()},0)):e(r)}},0)}(e)}g(function(){i||(i=1,u())},m.errorTimeout),t.e||v.parentNode.insertBefore(e,v)}(t):function(t){var e,r=f.createElement("script");r.src=t.s,r.onreadystatechange=r.onload=function(){!e&&c(r.readyState)&&(e=1,u(),r.onload=r.onreadystatechange=null)},g(function(){e||(e=1,u())},m.errorTimeout),t.e?r.onload():v.parentNode.insertBefore(r,v)}(t)},0):(t(),u()):x=0}function e(t,e,r){var i="c"==e?T:S;return x=0,e=e||"j",k(t)?function(t,e,r,i,n,a){function o(){!l&&c(s.readyState)&&(p.r=l=1,x||u(),s.onload=s.onreadystatechange=null,g(function(){_.removeChild(s)},0))}var s=f.createElement(t),l=0,p={t:r,s:e,e:a};s.src=s.data=e,b||(s.style.display="none"),s.width=s.height="0","object"!=t&&(s.type=r),s.onload=s.onreadystatechange=o,"img"==t?s.onerror=o:"script"==t&&(s.onerror=function(){p.e=p.r=1,h()}),y.splice(i,0,p),_.insertBefore(s,b?null:v),g(function(){l||(_.removeChild(s),p.r=p.e=l=1,u())},m.errorTimeout)}(i,t,e,this.i++,0,r):(y.splice(this.i++,0,t),1==y.length&&h()),this}function s(){var t=m;return t.loader={load:e,i:0},t}function p(t){return Object(t)===t}function d(t){return"[object Function]"==n.call(t)}var t,f,r,m,i,g,v,n,y,x,a,b,_,o,l,w,S,T,P,k,I,A;window.Modernizr=function(o,p,y){function t(t,e){var r=t.charAt(0).toUpperCase()+t.substr(1);return i((t+" "+_.join(r+" ")+r).split(" "),e)}function i(t,e){for(var r in t)if(m[t[r]]!==y)return"pfx"!=e||t[r];return!1}function e(t,e){return!!~(""+t).indexOf(e)}function n(t,e){return F(t)===e}function r(t){m.cssText=t}function a(t,e,r,i){var n,a,o,s=p.createElement("div");if(parseInt(r,10))for(;r--;)(o=p.createElement("div")).id=i?i[r]:d+(r+1),s.appendChild(o);return n=["&shy;","<style>",t,"</style>"].join(""),s.id=d,s.innerHTML+=n,h.appendChild(s),a=e(s,t),s.parentNode.removeChild(s),!!a}var s,l,c,u={},h=p.documentElement,d=(p.head||p.getElementsByTagName("head")[0],"modernizr"),f=p.createElement(d),m=f.style,g=p.createElement("input"),v=":)",x=Object.prototype.toString,b=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),_="Webkit Moz O ms Khtml".split(" "),w="http://www.w3.org/2000/svg",S={},T={},P={},k=[],I=(c={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t,e){e=e||p.createElement(c[t]||"div");var r=(t="on"+t)in e;return r||(e.setAttribute||(e=p.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(t,""),r=n(e[t],"function"),n(e[t],y)||(e[t]=y),e.removeAttribute(t))),e=null,r}),A={}.hasOwnProperty;l=n(A,y)||n(A.call,y)?function(t,e){return e in t&&n(t.constructor.prototype[e],y)}:function(t,e){return A.call(t,e)};var E,C,O,M;E=["fontface","touch","csstransforms3d","generatedcontent"],C=['@font-face {font-family:"font";src:url("https://")}',["@media (",b.join("touch-enabled),("),d,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",b.join("transform-3d),("),d,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',v,'";visibility:hidden}'].join("")].join(""),a(C,function(t,e){for(var r=p.styleSheets[p.styleSheets.length-1],i=r.cssRules&&r.cssRules[0]?r.cssRules[0].cssText:r.cssText||"",n=t.childNodes,a={};O--;)a[n[O].id]=n[O];u.touch="ontouchstart"in o||9===a.touch.offsetTop,u.csstransforms3d=9===a.csstransforms3d.offsetLeft,u.generatedcontent=1<=a.generatedcontent.offsetHeight,u.fontface=/src/i.test(i)&&0===i.indexOf(e.split(" ")[0])},O=E.length,E);for(var D in S.flexbox=function(){var t,e,r,i,n,a,o=p.createElement("div"),s=p.createElement("div");i="display",n="box",a="width:42px;padding:0;",i+=":",o.style.cssText=(i+b.join(n+";"+i)).slice(0,-i.length)+(a||""),t="box-flex",e="1",r="width:10px;",s.style.cssText=b.join(t+":"+e+";")+(r||""),o.appendChild(s),h.appendChild(o);var l=42===s.offsetWidth;return o.removeChild(s),h.removeChild(o),l},S.canvas=function(){var t=p.createElement("canvas");return!!t.getContext&&!!t.getContext("2d")},S.canvastext=function(){return!!u.canvas&&!!n(p.createElement("canvas").getContext("2d").fillText,"function")},S.webgl=function(){return!!o.WebGLRenderingContext},S.touch=function(){return u.touch},S.geolocation=function(){return!!navigator.geolocation},S.postmessage=function(){return!!o.postMessage},S.websqldatabase=function(){return!!o.openDatabase},S.indexedDB=function(){for(var t=-1,e=_.length;++t<e;)if(o[_[t].toLowerCase()+"IndexedDB"])return!0;return!!o.indexedDB},S.hashchange=function(){return I("hashchange",o)&&(p.documentMode===y||7<p.documentMode)},S.history=function(){return!!o.history&&!!history.pushState},S.draganddrop=function(){return I("dragstart")&&I("drop")},S.websockets=function(){for(var t=-1,e=_.length;++t<e;)if(o[_[t]+"WebSocket"])return!0;return"WebSocket"in o},S.rgba=function(){return r("background-color:rgba(150,255,150,.5)"),e(m.backgroundColor,"rgba")},S.hsla=function(){return r("background-color:hsla(120,40%,100%,.5)"),e(m.backgroundColor,"rgba")||e(m.backgroundColor,"hsla")},S.multiplebgs=function(){return r("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(m.background)},S.backgroundsize=function(){return t("backgroundSize")},S.borderimage=function(){return t("borderImage")},S.borderradius=function(){return t("borderRadius")},S.boxshadow=function(){return t("boxShadow")},S.textshadow=function(){return""===p.createElement("div").style.textShadow},S.opacity=function(){return function(t,e){r(b.join(t+";")+(e||""))}("opacity:.55"),/^0.55$/.test(m.opacity)},S.cssanimations=function(){return t("animationName")},S.csscolumns=function(){return t("columnCount")},S.cssgradients=function(){var t="background-image:";return r((t+b.join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+t)+b.join("linear-gradient(left top,#9f9, white);"+t)).slice(0,-t.length)),e(m.backgroundImage,"gradient")},S.cssreflections=function(){return t("boxReflect")},S.csstransforms=function(){return!!i(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])},S.csstransforms3d=function(){var t=!!i(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);return t&&"webkitPerspective"in h.style&&(t=u.csstransforms3d),t},S.csstransitions=function(){return t("transitionProperty")},S.fontface=function(){return u.fontface},S.generatedcontent=function(){return u.generatedcontent},S.video=function(){var t=p.createElement("video"),e=!1;try{if(e=!!t.canPlayType){(e=new Boolean(e)).ogg=t.canPlayType('video/ogg; codecs="theora"');var r='video/mp4; codecs="avc1.42E01E';e.h264=t.canPlayType(r+'"')||t.canPlayType(r+', mp4a.40.2"'),e.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"')}}catch(t){}return e},S.audio=function(){var t=p.createElement("audio"),e=!1;try{(e=!!t.canPlayType)&&((e=new Boolean(e)).ogg=t.canPlayType('audio/ogg; codecs="vorbis"'),e.mp3=t.canPlayType("audio/mpeg;"),e.wav=t.canPlayType('audio/wav; codecs="1"'),e.m4a=t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;"))}catch(t){}return e},S.localstorage=function(){try{return!!localStorage.getItem}catch(t){return!1}},S.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(t){return!1}},S.webworkers=function(){return!!o.Worker},S.applicationcache=function(){return!!o.applicationCache},S.svg=function(){return!!p.createElementNS&&!!p.createElementNS(w,"svg").createSVGRect},S.inlinesvg=function(){var t=p.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==w},S.smil=function(){return!!p.createElementNS&&/SVG/.test(x.call(p.createElementNS(w,"animate")))},S.svgclippaths=function(){return!!p.createElementNS&&/SVG/.test(x.call(p.createElementNS(w,"clipPath")))},S)l(S,D)&&(s=D.toLowerCase(),u[s]=S[D](),k.push((u[s]?"":"no-")+s));return u.input||(u.input=function(t){for(var e=0,r=t.length;e<r;e++)P[t[e]]=t[e]in g;return P}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),u.inputtypes=function(t){for(var e,r,i,n=0,a=t.length;n<a;n++)g.setAttribute("type",r=t[n]),(e="text"!==g.type)&&(g.value=v,g.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(r)&&g.style.WebkitAppearance!==y?(h.appendChild(g),e=(i=p.defaultView).getComputedStyle&&"textfield"!==i.getComputedStyle(g,null).WebkitAppearance&&0!==g.offsetHeight,h.removeChild(g)):/^(search|tel)$/.test(r)||(/^(url|email)$/.test(r)?e=g.checkValidity&&!1===g.checkValidity():/^color$/.test(r)?(h.appendChild(g),h.offsetWidth,e=g.value!=v,h.removeChild(g)):e=g.value!=v)),T[t[n]]=!!e;return T}("search tel url email datetime date month week time datetime-local number range color".split(" "))),r(""),f=g=null,o.attachEvent&&((M=p.createElement("div")).innerHTML="<elem></elem>",1!==M.childNodes.length)&&function(t,n){function e(t){for(var e=-1;++e<l;)t.createElement(s[e])}t.iepp=t.iepp||{};var a,o=t.iepp,r=o.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",s=r.split("|"),l=s.length,i=new RegExp("(^|\\s)("+r+")","gi"),p=new RegExp("<(/*)("+r+")","gi"),c=/^\s*[\{\}]\s*$/,u=new RegExp("(^|[^\\n]*?\\s)("+r+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),h=n.createDocumentFragment(),d=n.documentElement,f=d.firstChild,m=n.createElement("body"),g=n.createElement("style"),v=/print|all/;o.getCSS=function(t,e){if(t+""===y)return"";for(var r,i=-1,n=t.length,a=[];++i<n;)(r=t[i]).disabled||(e=r.media||e,v.test(e)&&a.push(o.getCSS(r.imports,e),r.cssText),e="all");return a.join("")},o.parseCSS=function(t){for(var e,r=[];null!=(e=u.exec(t));)r.push(((c.exec(e[1])?"\n":e[1])+e[2]+e[3]).replace(i,"$1.iepp_$2")+e[4]);return r.join("\n")},o.writeHTML=function(){var t=-1;for(a=a||n.body;++t<l;)for(var e=n.getElementsByTagName(s[t]),r=e.length,i=-1;++i<r;)e[i].className.indexOf("iepp_")<0&&(e[i].className+=" iepp_"+s[t]);h.appendChild(a),d.appendChild(m),m.className=a.className,m.id=a.id,m.innerHTML=a.innerHTML.replace(p,"<$1font")},o._beforePrint=function(){g.styleSheet.cssText=o.parseCSS(o.getCSS(n.styleSheets,"all")),o.writeHTML()},o.restoreHTML=function(){m.innerHTML="",d.removeChild(m),d.appendChild(a)},o._afterPrint=function(){o.restoreHTML(),g.styleSheet.cssText=""},e(n),e(h),o.disablePP||(f.insertBefore(g,f.firstChild),g.media="print",g.className="iepp-printshim",t.attachEvent("onbeforeprint",o._beforePrint),t.attachEvent("onafterprint",o._afterPrint))}(o,p),u._version="2.0.6",u._prefixes=b,u._domPrefixes=_,u.mq=function(t){return o.matchMedia?matchMedia(t).matches:(a("@media "+t+" { #"+d+" { position: absolute; } }",function(t){e="absolute"==(o.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),e);var e},u.hasEvent=I,u.testProp=function(t){return i([t])},u.testAllProps=t,u.testStyles=a,h.className=h.className.replace(/\bno-js\b/,"")+" js "+k.join(" "),u}(this,this.document),f=(t=this).document,i=f.documentElement,g=t.setTimeout,v=f.getElementsByTagName("script")[0],n={}.toString,y=[],x=0,a="MozAppearance"in i.style,b=a&&!!f.createRange().compareNode,_=b?i:v.parentNode,o=t.opera&&"[object Opera]"==n.call(t.opera),l="webkitAppearance"in i.style,w=l&&"async"in f.createElement("script"),S=a?"object":o||w?"img":"script",T=l?"img":S,P=Array.isArray||function(t){return"[object Array]"==n.call(t)},k=function(t){return"string"==typeof t},I=[],A={},(m=function(t){function l(t,e,r,i,n){var a=function(t){var e,r,i=t.split("!"),n=I.length,a=i.pop(),o=i.length,s={url:a,origUrl:a,prefixes:i};for(r=0;r<o;r++)(e=A[i[r]])&&(s=e(s));for(r=0;r<n;r++)s=I[r](s);return s}(t),o=a.autoCallback;if(!a.bypass){if(e&&(e=d(e)?e:e[t]||e[i]||e[t.split("/").pop().split("?")[0]]),a.instead)return a.instead(t,e,r,i,n);r.load(a.url,a.forceCSS||!a.forceJS&&/css$/.test(a.url)?"c":void 0,a.noexec),(d(e)||d(o))&&r.load(function(){s(),e&&e(a.origUrl,n,i),o&&o(a.origUrl,n,i)})}}function e(t,e){function r(t){if(k(t))l(t,s,e,0,n);else if(p(t))for(i in t)t.hasOwnProperty(i)&&l(t[i],s,e,i,n)}var i,n=!!t.test,a=n?t.yep:t.nope,o=t.load||t.both,s=t.callback;r(a),r(o),t.complete&&e.load(t.complete)}var r,i,n=this.yepnope.loader;if(k(t))l(t,0,n,0);else if(P(t))for(r=0;r<t.length;r++)i=t[r],k(i)?l(i,0,n,0):P(i)?m(i):p(i)&&e(i,n);else p(t)&&e(t,n)}).addPrefix=function(t,e){A[t]=e},m.addFilter=function(t){I.push(t)},m.errorTimeout=1e4,null==f.readyState&&f.addEventListener&&(f.readyState="loading",f.addEventListener("DOMContentLoaded",r=function(){f.removeEventListener("DOMContentLoaded",r,0),f.readyState="complete"},0)),t.yepnope=s(),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},E.exports=window.Modernizr}).call(window)},function(zt,Gt,Yt){var Xt;function Wt(t){return(Wt="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})(t)}!function(a,n,t,u){"use strict";var o,s=["","webkit","Moz","MS","ms","o"],e=n.createElement("div"),r="function",l=Math.round,h=Math.abs,d=Date.now;function p(t,e,r){return setTimeout(y(t,r),e)}function i(t,e,r){return!!Array.isArray(t)&&(c(t,r[e],r),!0)}function c(t,e,r){var i;if(t)if(t.forEach)t.forEach(e,r);else if(t.length!==u)for(i=0;i<t.length;)e.call(r,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function f(i,t,e){var n="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=a.console&&(a.console.warn||a.console.log);return r&&r.call(a.console,n,e),i.apply(this,arguments)}}o="function"!=typeof Object.assign?function(t){if(t===u||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(i!==u&&null!==i)for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])}return e}:Object.assign;var m=f(function(t,e,r){for(var i=Object.keys(e),n=0;n<i.length;)(!r||r&&t[i[n]]===u)&&(t[i[n]]=e[i[n]]),n++;return t},"extend","Use `assign`."),g=f(function(t,e){return m(t,e,!0)},"merge","Use `assign`.");function v(t,e,r){var i,n=e.prototype;(i=t.prototype=Object.create(n)).constructor=t,i._super=n,r&&o(i,r)}function y(t,e){return function(){return t.apply(e,arguments)}}function x(t,e){return Wt(t)==r?t.apply(e&&e[0]||u,e):t}function b(t,e){return t===u?e:t}function _(e,t,r){c(P(t),function(t){e.addEventListener(t,r,!1)})}function w(e,t,r){c(P(t),function(t){e.removeEventListener(t,r,!1)})}function S(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function T(t,e){return-1<t.indexOf(e)}function P(t){return t.trim().split(/\s+/g)}function k(t,e,r){if(t.indexOf&&!r)return t.indexOf(e);for(var i=0;i<t.length;){if(r&&t[i][r]==e||!r&&t[i]===e)return i;i++}return-1}function I(t){return Array.prototype.slice.call(t,0)}function A(t,r,e){for(var i=[],n=[],a=0;a<t.length;){var o=r?t[a][r]:t[a];k(n,o)<0&&i.push(t[a]),n[a]=o,a++}return e&&(i=r?i.sort(function(t,e){return t[r]>e[r]}):i.sort()),i}function E(t,e){for(var r,i,n=e[0].toUpperCase()+e.slice(1),a=0;a<s.length;){if((i=(r=s[a])?r+n:e)in t)return i;a++}return u}var C=1;function O(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||a}var M="ontouchstart"in a,D=!1,F=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),R="touch",N=25,L=1,B=4,j=8,$=1,V=2,H=4,z=8,G=16,Y=V|H,X=z|G,W=Y|X,U=["x","y"],q=["clientX","clientY"];function J(e,t){var r=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){x(e.options.enable,[e])&&r.handler(t)},this.init()}function Q(t,e,r){var i=r.pointers.length,n=r.changedPointers.length,a=e&L&&i-n==0,o=e&(B|j)&&i-n==0;r.isFirst=!!a,r.isFinal=!!o,a&&(t.session={}),r.eventType=e,function(t,e){var r=t.session,i=e.pointers,n=i.length;r.firstInput||(r.firstInput=Z(e));1<n&&!r.firstMultiple?r.firstMultiple=Z(e):1===n&&(r.firstMultiple=!1);var a=r.firstInput,o=r.firstMultiple,s=o?o.center:a.center,l=e.center=K(i);e.timeStamp=d(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=it(s,l),e.distance=rt(s,l),function(t,e){var r=e.center,i=t.offsetDelta||{},n=t.prevDelta||{},a=t.prevInput||{};e.eventType!==L&&a.eventType!==B||(n=t.prevDelta={x:a.deltaX||0,y:a.deltaY||0},i=t.offsetDelta={x:r.x,y:r.y});e.deltaX=n.x+(r.x-i.x),e.deltaY=n.y+(r.y-i.y)}(r,e),e.offsetDirection=et(e.deltaX,e.deltaY);var p=tt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=h(p.x)>h(p.y)?p.x:p.y,e.scale=o?function(t,e){return rt(e[0],e[1],q)/rt(t[0],t[1],q)}(o.pointers,i):1,e.rotation=o?function(t,e){return it(e[1],e[0],q)+it(t[1],t[0],q)}(o.pointers,i):0,e.maxPointers=r.prevInput?e.pointers.length>r.prevInput.maxPointers?e.pointers.length:r.prevInput.maxPointers:e.pointers.length,function(t,e){var r,i,n,a,o=t.lastInterval||e,s=e.timeStamp-o.timeStamp;if(e.eventType!=j&&(N<s||o.velocity===u)){var l=e.deltaX-o.deltaX,p=e.deltaY-o.deltaY,c=tt(s,l,p);i=c.x,n=c.y,r=h(c.x)>h(c.y)?c.x:c.y,a=et(l,p),t.lastInterval=e}else r=o.velocity,i=o.velocityX,n=o.velocityY,a=o.direction;e.velocity=r,e.velocityX=i,e.velocityY=n,e.direction=a}(r,e);var c=t.element;S(e.srcEvent.target,c)&&(c=e.srcEvent.target);e.target=c}(t,r),t.emit("hammer.input",r),t.recognize(r),t.session.prevInput=r}function Z(t){for(var e=[],r=0;r<t.pointers.length;)e[r]={clientX:l(t.pointers[r].clientX),clientY:l(t.pointers[r].clientY)},r++;return{timeStamp:d(),pointers:e,center:K(e),deltaX:t.deltaX,deltaY:t.deltaY}}function K(t){var e=t.length;if(1===e)return{x:l(t[0].clientX),y:l(t[0].clientY)};for(var r=0,i=0,n=0;n<e;)r+=t[n].clientX,i+=t[n].clientY,n++;return{x:l(r/e),y:l(i/e)}}function tt(t,e,r){return{x:e/t||0,y:r/t||0}}function et(t,e){return t===e?$:h(t)>=h(e)?t<0?V:H:e<0?z:G}function rt(t,e,r){r||(r=U);var i=e[r[0]]-t[r[0]],n=e[r[1]]-t[r[1]];return Math.sqrt(i*i+n*n)}function it(t,e,r){r||(r=U);var i=e[r[0]]-t[r[0]],n=e[r[1]]-t[r[1]];return 180*Math.atan2(n,i)/Math.PI}J.prototype={handler:function(){},init:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(O(this.element),this.evWin,this.domHandler)}};var nt={mousedown:L,mousemove:2,mouseup:B},at="mousedown",ot="mousemove mouseup";function st(){this.evEl=at,this.evWin=ot,this.pressed=!1,J.apply(this,arguments)}v(st,J,{handler:function(t){var e=nt[t.type];e&L&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=B),this.pressed&&(e&B&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var lt={pointerdown:L,pointermove:2,pointerup:B,pointercancel:j,pointerout:j},pt={2:R,3:"pen",4:"mouse",5:"kinect"},ct="pointerdown",ut="pointermove pointerup pointercancel";function ht(){this.evEl=ct,this.evWin=ut,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}a.MSPointerEvent&&!a.PointerEvent&&(ct="MSPointerDown",ut="MSPointerMove MSPointerUp MSPointerCancel"),v(ht,J,{handler:function(t){var e=this.store,r=!1,i=t.type.toLowerCase().replace("ms",""),n=lt[i],a=pt[t.pointerType]||t.pointerType,o=a==R,s=k(e,t.pointerId,"pointerId");n&L&&(0===t.button||o)?s<0&&(e.push(t),s=e.length-1):n&(B|j)&&(r=!0),s<0||(e[s]=t,this.callback(this.manager,n,{pointers:e,changedPointers:[t],pointerType:a,srcEvent:t}),r&&e.splice(s,1))}});var dt={touchstart:L,touchmove:2,touchend:B,touchcancel:j};function ft(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,J.apply(this,arguments)}v(ft,J,{handler:function(t){var e=dt[t.type];if(e===L&&(this.started=!0),this.started){var r=function(t,e){var r=I(t.touches),i=I(t.changedTouches);e&(B|j)&&(r=A(r.concat(i),"identifier",!0));return[r,i]}.call(this,t,e);e&(B|j)&&r[0].length-r[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:R,srcEvent:t})}}});var mt={touchstart:L,touchmove:2,touchend:B,touchcancel:j},gt="touchstart touchmove touchend touchcancel";function vt(){this.evTarget=gt,this.targetIds={},J.apply(this,arguments)}v(vt,J,{handler:function(t){var e=mt[t.type],r=function(t,e){var r=I(t.touches),i=this.targetIds;if(e&(2|L)&&1===r.length)return i[r[0].identifier]=!0,[r,r];var n,a,o=I(t.changedTouches),s=[],l=this.target;if(a=r.filter(function(t){return S(t.target,l)}),e===L)for(n=0;n<a.length;)i[a[n].identifier]=!0,n++;n=0;for(;n<o.length;)i[o[n].identifier]&&s.push(o[n]),e&(B|j)&&delete i[o[n].identifier],n++;return s.length?[A(a.concat(s),"identifier",!0),s]:void 0}.call(this,t,e);r&&this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:R,srcEvent:t})}});var yt=2500;function xt(){J.apply(this,arguments);var t=y(this.handler,this);this.touch=new vt(this.manager,t),this.mouse=new st(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function bt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var r={x:e.clientX,y:e.clientY};this.lastTouches.push(r);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(r);-1<t&&i.splice(t,1)},yt)}}v(xt,J,{handler:function(t,e,r){var i=r.pointerType==R,n="mouse"==r.pointerType;if(!(n&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)){if(i)(function(t,e){t&L?(this.primaryTouch=e.changedPointers[0].identifier,bt.call(this,e)):t&(B|j)&&bt.call(this,e)}).call(this,e,r);else if(n&&function(t){for(var e=t.srcEvent.clientX,r=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var n=this.lastTouches[i],a=Math.abs(e-n.x),o=Math.abs(r-n.y);if(a<=25&&o<=25)return!0}return!1}.call(this,r))return;this.callback(t,e,r)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var _t=E(e.style,"touchAction"),wt=_t!==u,St="manipulation",Tt="none",Pt="pan-x",kt="pan-y";function It(t,e){this.manager=t,this.set(e)}It.prototype={set:function(t){"compute"==t&&(t=this.compute()),wt&&this.manager.element.style&&(this.manager.element.style[_t]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return c(this.manager.recognizers,function(t){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(T(t,Tt))return Tt;var e=T(t,Pt),r=T(t,kt);if(e&&r)return Tt;if(e||r)return e?Pt:kt;if(T(t,St))return St;return"auto"}(e.join(" "))},preventDefaults:function(t){if(!wt){var e=t.srcEvent,r=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,n=T(i,Tt),a=T(i,kt),o=T(i,Pt);if(n){var s=1===t.pointers.length,l=t.distance<2,p=t.deltaTime<250;if(s&&l&&p)return}if(!o||!a)return n||a&&r&Y||o&&r&X?this.preventSrc(e):void 0}}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var At=1;function Et(t){this.options=o({},this.defaults,t||{}),this.id=C++,this.manager=null,this.options.enable=b(this.options.enable,!0),this.state=At,this.simultaneous={},this.requireFail=[]}function Ct(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Ot(t){return t==G?"down":t==z?"up":t==V?"left":t==H?"right":""}function Mt(t,e){var r=e.manager;return r?r.get(t):t}function Dt(){Et.apply(this,arguments)}function Ft(){Dt.apply(this,arguments),this.pX=null,this.pY=null}function Rt(){Dt.apply(this,arguments)}function Nt(){Et.apply(this,arguments),this._timer=null,this._input=null}function Lt(){Dt.apply(this,arguments)}function Bt(){Dt.apply(this,arguments)}function jt(){Et.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function $t(t,e){return(e=e||{}).recognizers=b(e.recognizers,$t.defaults.preset),new Vt(t,e)}Et.prototype={defaults:{},set:function(t){return o(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(i(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Mt(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return i(t,"dropRecognizeWith",this)||(t=Mt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(i(t,"requireFailure",this))return this;var e=this.requireFail;return-1===k(e,t=Mt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(i(t,"dropRequireFailure",this))return this;t=Mt(t,this);var e=k(this.requireFail,t);return-1<e&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){var r=this,t=this.state;function i(t){r.manager.emit(t,e)}t<8&&i(r.options.event+Ct(t)),i(r.options.event),e.additionalEvent&&i(e.additionalEvent),8<=t&&i(r.options.event+Ct(t))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|At)))return!1;t++}return!0},recognize:function(t){var e=o({},t);if(!x(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=At),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},v(Dt,Et,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,r=t.eventType,i=6&e,n=this.attrTest(t);return i&&(r&j||!n)?16|e:i||n?r&B?8|e:2&e?4|e:2:32}}),v(Ft,Dt,{defaults:{event:"pan",threshold:10,pointers:1,direction:W},getTouchAction:function(){var t=this.options.direction,e=[];return t&Y&&e.push(kt),t&X&&e.push(Pt),e},directionTest:function(t){var e=this.options,r=!0,i=t.distance,n=t.direction,a=t.deltaX,o=t.deltaY;return n&e.direction||(i=e.direction&Y?(n=0===a?$:a<0?V:H,r=a!=this.pX,Math.abs(t.deltaX)):(n=0===o?$:o<0?z:G,r=o!=this.pY,Math.abs(t.deltaY))),t.direction=n,r&&i>e.threshold&&n&e.direction},attrTest:function(t){return Dt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ot(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),v(Rt,Dt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Tt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),v(Nt,Et,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,r=t.pointers.length===e.pointers,i=t.distance<e.threshold,n=t.deltaTime>e.time;if(this._input=t,!i||!r||t.eventType&(B|j)&&!n)this.reset();else if(t.eventType&L)this.reset(),this._timer=p(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&B)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&B?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),v(Lt,Dt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Tt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),v(Bt,Dt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Y|X,pointers:1},getTouchAction:function(){return Ft.prototype.getTouchAction.call(this)},attrTest:function(t){var e,r=this.options.direction;return r&(Y|X)?e=t.overallVelocity:r&Y?e=t.overallVelocityX:r&X&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&r&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&t.eventType&B},emit:function(t){var e=Ot(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),v(jt,Et,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[St]},process:function(t){var e=this.options,r=t.pointers.length===e.pointers,i=t.distance<e.threshold,n=t.deltaTime<e.time;if(this.reset(),t.eventType&L&&0===this.count)return this.failTimeout();if(i&&n&&r){if(t.eventType!=B)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||rt(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&a?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=p(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=p(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),$t.VERSION="2.0.7",$t.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Lt,{enable:!1}],[Rt,{enable:!1},["rotate"]],[Bt,{direction:Y}],[Ft,{direction:Y},["swipe"]],[jt],[jt,{event:"doubletap",taps:2},["tap"]],[Nt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Vt(t,e){this.options=o({},$t.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(D?ht:F?vt:M?xt:st))(t,Q)}(this),this.touchAction=new It(this,this.options.touchAction),Ht(this,!0),c(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Ht(t,r){var i=t.element;i.style&&c(t.options.cssProps,function(t,e){i.style[E(i.style,e)]=r?t:""})}Vt.prototype={set:function(t){return o(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var r;this.touchAction.preventDefaults(t);var i=this.recognizers,n=e.curRecognizer;(!n||n&&8&n.state)&&(n=e.curRecognizer=null);for(var a=0;a<i.length;)r=i[a],2===e.stopped||n&&r!=n&&!r.canRecognizeWith(n)?r.reset():r.recognize(t),!n&&14&r.state&&(n=e.curRecognizer=r),a++}},get:function(t){if(t instanceof Et)return t;for(var e=this.recognizers,r=0;r<e.length;r++)if(e[r].options.event==t)return e[r];return null},add:function(t){if(i(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){if(i(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,r=k(e,t);-1!==r&&(e.splice(r,1),this.touchAction.update())}return this},on:function(t,e){var r=this.handlers;return c(P(t),function(t){r[t]=r[t]||[],r[t].push(e)}),this},off:function(t,e){var r=this.handlers;return c(P(t),function(t){e?r[t]&&r[t].splice(k(r[t],e),1):delete r[t]}),this},emit:function(t,e){this.options.domEvents&&function(t,e){var r=n.createEvent("Event");r.initEvent(t,!0,!0),(r.gesture=e).target.dispatchEvent(r)}(t,e);var r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<r.length;)r[i](e),i++}},destroy:function(){this.element&&Ht(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o($t,{INPUT_START:L,INPUT_MOVE:2,INPUT_END:B,INPUT_CANCEL:j,STATE_POSSIBLE:At,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:$,DIRECTION_LEFT:V,DIRECTION_RIGHT:H,DIRECTION_UP:z,DIRECTION_DOWN:G,DIRECTION_HORIZONTAL:Y,DIRECTION_VERTICAL:X,DIRECTION_ALL:W,Manager:Vt,Input:J,TouchAction:It,TouchInput:vt,MouseInput:st,PointerEventInput:ht,TouchMouseInput:xt,SingleTouchInput:ft,Recognizer:Et,AttrRecognizer:Dt,Tap:jt,Pan:Ft,Swipe:Bt,Pinch:Rt,Rotate:Lt,Press:Nt,on:_,off:w,each:c,merge:g,extend:m,assign:o,inherit:v,bindFn:y,prefixed:E}),(void 0!==a?a:"undefined"!=typeof self?self:{}).Hammer=$t,(Xt=function(){return $t}.call(Gt,Yt,Gt,zt))===u||(zt.exports=Xt)}(window,document)},function(t,e,r){var i,n,a;n=[],void 0===(a="function"==typeof(i=function(){var c=null;return function i(n,t){var a=t||{preventDefault:!1};if(n.Manager){var o=n,e=function(t,e){var r=Object.create(a);return e&&o.assign(r,e),i(new o(t,r),r)};return o.assign(e,o),e.Manager=function(t,e){var r=Object.create(a);return e&&o.assign(r,e),i(new o.Manager(t,r),r)},e}var s=Object.create(n),r=n.element;function l(t){return t.match(/[^ ]+/g)}function p(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var e=!1;t.stopPropagation=function(){e=!0};var r=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof r&&(t.srcEvent.stopPropagation=function(){r(),t.stopPropagation()});for(var i=t.firstTarget=c;i&&!e;){var n=i.hammer;if(n)for(var a,o=0;o<n.length;o++)if(a=n[o]._handlers[t.type])for(var s=0;s<a.length&&!e;s++)a[s](t);i=i.parentNode}}return r.hammer||(r.hammer=[]),r.hammer.push(s),n.on("hammer.input",function(t){!0!==a.preventDefault&&a.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(c=t.target)}),s._handlers={},s.on=function(t,r){return l(t).forEach(function(t){var e=s._handlers[t];e||(s._handlers[t]=e=[],n.on(t,p)),e.push(r)}),s},s.off=function(t,r){return l(t).forEach(function(t){var e=s._handlers[t];e&&(0<(e=r?e.filter(function(t){return t!==r}):[]).length?s._handlers[t]=e:(n.off(t,p),delete s._handlers[t]))}),s},s.emit=function(t,e){c=e.target,n.emit(t,e)},s.destroy=function(){var t=n.element.hammer,e=t.indexOf(s);-1!==e&&t.splice(e,1),t.length||delete n.element.hammer,s._handlers={},n.destroy()},s}})?i.apply(e,n):i)||(t.exports=a)},function(t,e){var i,n,r;i=jQuery,n=Hammer,i.fn.hammer=function(t){return this.each(function(){!function(t,e){var r=i(t);r.data("hammer")||r.data("hammer",new n(r[0],e))}(this,t)})},n.Manager.prototype.emit=(r=n.Manager.prototype.emit,function(t,e){r.call(this,t,e),jQuery(this.element).triggerHandler({type:t,gesture:e})})},function(t,e,r){function l(t){return(l="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})(t)}
/*!
 * Waves v0.5.5
 * http://fian.my.id/Waves 
 * 
 * Copyright 2014 Alfiana E. Sibuea and other contributors 
 * Released under the MIT license 
 * https://github.com/fians/Waves/blob/master/LICENSE 
 */!function(r){"use strict";var t=t||{};var s={duration:500,show:function(t){if(2===t.button)return!1;var e=$(this).find(".waves-ripple.waves-ripple-ripple").get(0),r=$(this).find(".waves-ripple.waves-ripple-static").get(0),i=function(t){var e,r,i={top:0,left:0},n=t&&t.ownerDocument;return e=n.documentElement,"undefined"!==l(t.getBoundingClientRect)&&(i=t.getBoundingClientRect()),r=function(t){return function(t){return null!==t&&t===t.window}(t)?t:9===t.nodeType&&t.defaultView}(n),{top:i.top+r.pageYOffset-e.clientTop,left:i.left+r.pageXOffset-e.clientLeft}}(this),n=t.pageY-i.top,a=t.pageX-i.left;"touches"in t&&(n=t.touches[0].pageY-i.top,a=t.touches[0].pageX-i.left);var o=Math.max(this.clientWidth,this.clientHeight)/100*3;(new TimelineMax).set(e,{scale:0,top:n,left:a,opacity:0}).to(e,s.duration/1e3,{scale:o,opacity:1,force3D:prx.greensockForce3D}),(new TimelineMax).set(r,{scale:o,opacity:0}).to(r,.2,{opacity:.3,force3D:prx.greensockForce3D})},hide:function(){var t=$(this).find(".waves-ripple.waves-ripple-ripple").get(0),e=$(this).find(".waves-ripple.waves-ripple-static").get(0);if(!t)return!1;(new TimelineMax).to(t,.2,{opacity:0,delay:.2,force3D:prx.greensockForce3D}),(new TimelineMax).to(e,.2,{opacity:0,delay:.2,force3D:prx.greensockForce3D})},wrapInput:function(t){for(var e=0;e<t.length;e++){var r=t[e];if("input"===r.tagName.toLowerCase()){var i=r.parentNode;if("i"===i.tagName.toLowerCase()&&-1!==i.className.indexOf("waves-effect"))return!1;var n=document.createElement("i");n.className=r.className+" waves-input-wrapper";var a=r.getAttribute("style");a||(a=""),n.setAttribute("style",a),r.className="waves-button-input",r.removeAttribute("style"),i.replaceChild(n,r),n.appendChild(r)}}},create:function(t){for(var e=0;e<t.length;e++){var r=$(t[e]).find(".prx-material-ripple-roundoverflow").get(0)||t[e],i=document.createElement("div");i.className="waves-ripple waves-ripple-ripple",r.appendChild(i);var n=document.createElement("div");n.className="waves-ripple waves-ripple-static waves-notransition",r.appendChild(n)}}};t.displayEffect=function(t){"duration"in(t=t||{})&&(s.duration=t.duration);var e=void 0!==t.itemid?t.itemid:".waves-effect";s.wrapInput($(e).get()),s.create($(e).get()),Array.prototype.forEach.call($(e).get(),function(t){"ontouchstart"in r?(t.addEventListener("touchstart",s.show,!1),t.addEventListener("touchend",s.hide,!1),t.addEventListener("touchcancel",s.hide,!1)):(t.addEventListener("mousedown",s.show,!1),t.addEventListener("mouseup",s.hide,!1),t.addEventListener("mouseleave",s.hide,!1))})},r.Waves=t}(window)},function(t,e,s){var l;!function n(a,o,s){function l(r,t){if(!o[r]){if(!a[r]){if(p)return p(r,!0);var e=new Error("Cannot find module '"+r+"'");throw e.code="MODULE_NOT_FOUND",e}var i=o[r]={exports:{}};a[r][0].call(i.exports,function(t){var e=a[r][1][t];return l(e||t)},i,i.exports,n,a,o,s)}return o[r].exports}for(var p=!1,t=0;t<s.length;t++)l(s[t]);return l}({1:[function(t,e,r){var i=t("cssfilter").FilterCSS,c=t("./util"),n=new i;function a(t){return t.replace(o,"&lt;").replace(s,"&gt;")}var o=/</g,s=/>/g,l=/"/g,p=/&quot;/g,u=/&#([a-zA-Z0-9]*);?/gim,h=/&colon;?/gim,d=/&newline;?/gim,f=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,m=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,g=/u\s*r\s*l\s*\(.*/gi;function v(t){return t.replace(l,"&quot;")}function y(t){return t.replace(p,'"')}function x(t){return t.replace(u,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})}function b(t){return t.replace(h,":").replace(d," ")}function _(t){for(var e="",r=0,i=t.length;r<i;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return c.trim(e)}function w(t){return t=_(t=b(t=x(t=y(t))))}function S(t){return t=a(t=v(t))}var T=/<!--[\s\S]*?-->/g;r.whiteList={a:["target","href","title","style"],abbr:["title"],address:["style"],area:["shape","coords","href","alt","style"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite","style"],br:[],caption:["style"],center:[],cite:[],code:[],col:["align","valign","span","width","style"],colgroup:["align","valign","span","width","style"],dd:[],del:["datetime"],details:["open"],div:["style"],dl:[],dt:[],em:[],font:["color","size","face","style","family"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:["style"],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:["style"],mark:[],nav:["style"],ol:[],p:["style"],pre:["style"],s:[],section:["style"],small:[],span:["style"],sub:[],sup:[],strong:[],strike:[],table:["width","border","align","valign","style"],tbody:["align","valign","style"],td:["width","colspan","align","valign","style","style"],tfoot:["align","valign","style"],th:["width","colspan","align","valign","style"],thead:["align","valign","style"],tr:["rowspan","align","valign","style"],tt:[],u:[],ul:["style"],video:["autoplay","controls","loop","preload","src","height","width","style"]},r.onTag=function(t,e,r){},r.onIgnoreTag=function(t,e,r){},r.onTagAttr=function(t,e,r){},r.onIgnoreTagAttr=function(t,e,r){},r.safeAttrValue=function(t,e,r,i){if(i=i||n,r=w(r),"href"===e||"src"===e){if("#"===(r=c.trim(r)))return"#";if("http://"!==r.substr(0,7)&&"https://"!==r.substr(0,8)&&"mailto:"!==r.substr(0,7)&&"/"!==r[0])return""}else if("background"===e){if(f.lastIndex=0,f.test(r))return""}else if("style"===e){if(m.lastIndex=0,m.test(r))return"";if(g.lastIndex=0,g.test(r)&&(f.lastIndex=0,f.test(r)))return"";r=i.process(r)}return r=S(r)},r.escapeHtml=a,r.escapeQuote=v,r.unescapeQuote=y,r.escapeHtmlEntities=x,r.escapeDangerHtml5Entities=b,r.clearNonPrintableCharacter=_,r.friendlyAttrValue=w,r.escapeAttrValue=S,r.onIgnoreTagStripAll=function(){return""},r.StripTagBody=function(a,o){"function"!=typeof o&&(o=function(){});var s=!Array.isArray(a),l=[],p=!1;return{onIgnoreTag:function(t,e,r){if(function(t){return s||-1!==c.indexOf(a,t)}(t)){if(r.isClosing){var i="[/removed]",n=r.position+i.length;return l.push([!1!==p?p:r.position,n]),p=!1,i}return p||(p=r.position),"[removed]"}return o(t,e,r)},remove:function(e){var r="",i=0;return c.forEach(l,function(t){r+=e.slice(i,t[0]),i=t[1]}),r+=e.slice(i)}}},r.stripCommentTag=function(t){return t.replace(T,"")},r.stripBlankChar=function(t){var e=t.split("");return(e=e.filter(function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||(10===e||13===e))})).join("")},r.cssFilter=n},{"./util":4,cssfilter:8}],2:[function(t,e,r){var i=t("./default"),n=t("./parser"),a=t("./xss");for(var o in(r=e.exports=function(t,e){return new a(e).process(t)}).FilterXSS=a,i)r[o]=i[o];for(var o in n)r[o]=n[o];void 0===(l=function(){return e.exports}.call(r,s,r,e))||(e.exports=l),"undefined"!=typeof window&&(window.filterXSS=e.exports)},{"./default":1,"./parser":3,"./xss":5}],3:[function(t,e,r){var c=t("./util");function h(t){var e=t.indexOf(" ");if(-1===e)var r=t.slice(1,-1);else r=t.slice(1,e+1);return"/"===(r=c.trim(r).toLowerCase()).slice(0,1)&&(r=r.slice(1)),"/"===r.slice(-1)&&(r=r.slice(0,-1)),r}var u=/[^a-zA-Z0-9_:\.\-]/gim;function d(t,e){for(;e<t.length;e++){var r=t[e];if(" "!==r)return"="===r?e:-1}}function f(t,e){for(;0<e;e--){var r=t[e];if(" "!==r)return"="===r?e:-1}}function m(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}r.parseTag=function(t,e,r){var i="",n=0,a=!1,o=!1,s=0,l=t.length,p="",c="";for(s=0;s<l;s++){var u=t.charAt(s);if(!1===a){if("<"===u){a=s;continue}}else if(!1===o){if("<"===u){i+=r(t.slice(n,s)),n=a=s;continue}if(">"===u){i+=r(t.slice(n,a)),c=h(p=t.slice(a,s+1)),i+=e(a,i.length,c,p,"</"===p.slice(0,2)),n=s+1,a=!1;continue}if(('"'===u||"'"===u)&&"="===t.charAt(s-1)){o=u;continue}}else if(u===o){o=!1;continue}}return n<t.length&&(i+=r(t.substr(n))),i},r.parseAttr=function(t,i){var e=0,n=[],r=!1,a=t.length;function o(t,e){if(!((t=(t=c.trim(t)).replace(u,"").toLowerCase()).length<1)){var r=i(t,e||"");r&&n.push(r)}}for(var s=0;s<a;s++){var l,p=t.charAt(s);if(!1!==r||"="!==p)if(!1===r||s!==e||'"'!==p&&"'"!==p||"="!==t.charAt(s-1))if(" "!==p);else{if(!1===r){if(-1===(l=d(t,s))){o(c.trim(t.slice(e,s))),r=!1,e=s+1;continue}s=l-1;continue}if(-1!==(l=f(t,s-1)))continue;o(r,m(c.trim(t.slice(e,s)))),r=!1,e=s+1}else{if(-1===(l=t.indexOf(p,s+1)))break;o(r,c.trim(t.slice(e+1,l))),r=!1,e=(s=l)+1}else r=t.slice(e,s),e=s+1}return e<t.length&&(!1===r?o(t.slice(e)):o(r,m(c.trim(t.slice(e))))),c.trim(n.join(" "))}},{"./util":4}],4:[function(t,e,r){e.exports={indexOf:function(t,e){var r,i;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var i,n;if(Array.prototype.forEach)return t.forEach(e,r);for(i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")}}},{}],5:[function(t,e,r){var i=t("cssfilter").FilterCSS,n=t("./default"),a=t("./parser"),o=a.parseTag,y=a.parseAttr,x=t("./util");function b(t){return null==t}function s(t){(t=t||{}).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=n.onIgnoreTagStripAll),t.whiteList=t.whiteList||n.whiteList,t.onTag=t.onTag||n.onTag,t.onTagAttr=t.onTagAttr||n.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||n.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||n.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||n.safeAttrValue,t.escapeHtml=t.escapeHtml||n.escapeHtml,t.css=t.css||{},this.options=t,this.cssFilter=new i(t.css)}s.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,c=e.whiteList,u=e.onTag,h=e.onIgnoreTag,d=e.onTagAttr,f=e.onIgnoreTagAttr,m=e.safeAttrValue,g=e.escapeHtml,v=this.cssFilter;if(e.stripBlankChar&&(t=n.stripBlankChar(t)),e.allowCommentTag||(t=n.stripCommentTag(t)),e.stripIgnoreTagBody){var r=n.StripTagBody(e.stripIgnoreTagBody,h);h=r.onIgnoreTag}else r=!1;var i=o(t,function(t,e,n,r,i){var a,o={sourcePosition:t,position:e,isClosing:i,isWhite:n in c};if(!b(a=u(n,r,o)))return a;if(o.isWhite){if(o.isClosing)return"</"+n+">";var s=function(t){var e=t.indexOf(" ");if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var r="/"===(t=x.trim(t.slice(e+1,-1)))[t.length-1];return r&&(t=x.trim(t.slice(0,-1))),{html:t,closing:r}}(r),l=c[n],p=y(s.html,function(t,e){var r,i=-1!==x.indexOf(l,t);return b(r=d(n,t,e,i))?i?(e=m(n,t,e,v))?t+'="'+e+'"':t:b(r=f(n,t,e,i))?void 0:r:r});r="<"+n;return p&&(r+=" "+p),s.closing&&(r+=" /"),r+=">"}return b(a=h(n,r,o))?g(r):a},g);return r&&(i=r.remove(i)),i},e.exports=s},{"./default":1,"./parser":3,"./util":4,cssfilter:8}],6:[function(t,e,r){var i=t("./default"),n=t("./parser");t("./util");function h(t){return null==t}function a(t){(t=t||{}).whiteList=t.whiteList||i.whiteList,t.onAttr=t.onAttr||i.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||i.onIgnoreAttr,this.options=t}a.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,p=e.whiteList,c=e.onAttr,u=e.onIgnoreAttr;return n(t,function(t,e,r,i,n){var a=p[r],o=!1;!0===a?o=a:"function"==typeof a?o=a(i):a instanceof RegExp&&(o=a.test(i)),!0!==o&&(o=!1);var s,l={position:e,sourcePosition:t,source:n,isWhite:o};return o?h(s=c(r,i,l))?r+":"+i:s:h(s=u(r,i,l))?void 0:s})},e.exports=a},{"./default":7,"./parser":9,"./util":10}],7:[function(t,e,r){var i={};i["align-content"]=!1,i["align-items"]=!1,i["align-self"]=!1,i["alignment-adjust"]=!1,i["alignment-baseline"]=!1,i.all=!1,i["anchor-point"]=!1,i.animation=!1,i["animation-delay"]=!1,i["animation-direction"]=!1,i["animation-duration"]=!1,i["animation-fill-mode"]=!1,i["animation-iteration-count"]=!1,i["animation-name"]=!1,i["animation-play-state"]=!1,i["animation-timing-function"]=!1,i.azimuth=!1,i["backface-visibility"]=!1,i.background=!0,i["background-attachment"]=!0,i["background-clip"]=!0,i["background-color"]=!0,i["background-image"]=!0,i["background-origin"]=!0,i["background-position"]=!0,i["background-repeat"]=!0,i["background-size"]=!0,i["baseline-shift"]=!1,i.binding=!1,i.bleed=!1,i["bookmark-label"]=!1,i["bookmark-level"]=!1,i["bookmark-state"]=!1,i.border=!0,i["border-bottom"]=!0,i["border-bottom-color"]=!0,i["border-bottom-left-radius"]=!0,i["border-bottom-right-radius"]=!0,i["border-bottom-style"]=!0,i["border-bottom-width"]=!0,i["border-collapse"]=!0,i["border-color"]=!0,i["border-image"]=!0,i["border-image-outset"]=!0,i["border-image-repeat"]=!0,i["border-image-slice"]=!0,i["border-image-source"]=!0,i["border-image-width"]=!0,i["border-left"]=!0,i["border-left-color"]=!0,i["border-left-style"]=!0,i["border-left-width"]=!0,i["border-radius"]=!0,i["border-right"]=!0,i["border-right-color"]=!0,i["border-right-style"]=!0,i["border-right-width"]=!0,i["border-spacing"]=!0,i["border-style"]=!0,i["border-top"]=!0,i["border-top-color"]=!0,i["border-top-left-radius"]=!0,i["border-top-right-radius"]=!0,i["border-top-style"]=!0,i["border-top-width"]=!0,i["border-width"]=!0,i.bottom=!1,i["box-decoration-break"]=!0,i["box-shadow"]=!0,i["box-sizing"]=!0,i["box-snap"]=!0,i["box-suppress"]=!0,i["break-after"]=!0,i["break-before"]=!0,i["break-inside"]=!0,i["caption-side"]=!1,i.chains=!1,i.clear=!0,i.clip=!1,i["clip-path"]=!1,i["clip-rule"]=!1,i.color=!0,i["color-interpolation-filters"]=!0,i["column-count"]=!1,i["column-fill"]=!1,i["column-gap"]=!1,i["column-rule"]=!1,i["column-rule-color"]=!1,i["column-rule-style"]=!1,i["column-rule-width"]=!1,i["column-span"]=!1,i["column-width"]=!1,i.columns=!1,i.contain=!1,i.content=!1,i["counter-increment"]=!1,i["counter-reset"]=!1,i["counter-set"]=!1,i.crop=!1,i.cue=!1,i["cue-after"]=!1,i["cue-before"]=!1,i.cursor=!1,i.direction=!1,i.display=!0,i["display-inside"]=!0,i["display-list"]=!0,i["display-outside"]=!0,i["dominant-baseline"]=!1,i.elevation=!1,i["empty-cells"]=!1,i.filter=!1,i.flex=!1,i["flex-basis"]=!1,i["flex-direction"]=!1,i["flex-flow"]=!1,i["flex-grow"]=!1,i["flex-shrink"]=!1,i["flex-wrap"]=!1,i.float=!1,i["float-offset"]=!1,i["flood-color"]=!1,i["flood-opacity"]=!1,i["flow-from"]=!1,i["flow-into"]=!1,i.font=!0,i["font-family"]=!0,i["font-feature-settings"]=!0,i["font-kerning"]=!0,i["font-language-override"]=!0,i["font-size"]=!0,i["font-size-adjust"]=!0,i["font-stretch"]=!0,i["font-style"]=!0,i["font-synthesis"]=!0,i["font-variant"]=!0,i["font-variant-alternates"]=!0,i["font-variant-caps"]=!0,i["font-variant-east-asian"]=!0,i["font-variant-ligatures"]=!0,i["font-variant-numeric"]=!0,i["font-variant-position"]=!0,i["font-weight"]=!0,i.grid=!1,i["grid-area"]=!1,i["grid-auto-columns"]=!1,i["grid-auto-flow"]=!1,i["grid-auto-rows"]=!1,i["grid-column"]=!1,i["grid-column-end"]=!1,i["grid-column-start"]=!1,i["grid-row"]=!1,i["grid-row-end"]=!1,i["grid-row-start"]=!1,i["grid-template"]=!1,i["grid-template-areas"]=!1,i["grid-template-columns"]=!1,i["grid-template-rows"]=!1,i["hanging-punctuation"]=!1,i.height=!0,i.hyphens=!1,i.icon=!1,i["image-orientation"]=!1,i["image-resolution"]=!1,i["ime-mode"]=!1,i["initial-letters"]=!1,i["inline-box-align"]=!1,i["justify-content"]=!1,i["justify-items"]=!1,i["justify-self"]=!1,i.left=!1,i["letter-spacing"]=!0,i["lighting-color"]=!0,i["line-box-contain"]=!1,i["line-break"]=!1,i["line-grid"]=!1,i["line-height"]=!0,i["line-snap"]=!1,i["line-stacking"]=!1,i["line-stacking-ruby"]=!1,i["line-stacking-shift"]=!1,i["line-stacking-strategy"]=!1,i["list-style"]=!0,i["list-style-image"]=!0,i["list-style-position"]=!0,i["list-style-type"]=!0,i.margin=!0,i["margin-bottom"]=!0,i["margin-left"]=!0,i["margin-right"]=!0,i["margin-top"]=!0,i["marker-offset"]=!1,i["marker-side"]=!1,i.marks=!1,i.mask=!1,i["mask-box"]=!1,i["mask-box-outset"]=!1,i["mask-box-repeat"]=!1,i["mask-box-slice"]=!1,i["mask-box-source"]=!1,i["mask-box-width"]=!1,i["mask-clip"]=!1,i["mask-image"]=!1,i["mask-origin"]=!1,i["mask-position"]=!1,i["mask-repeat"]=!1,i["mask-size"]=!1,i["mask-source-type"]=!1,i["mask-type"]=!1,i["max-height"]=!0,i["max-lines"]=!1,i["max-width"]=!0,i["min-height"]=!0,i["min-width"]=!0,i["move-to"]=!1,i["nav-down"]=!1,i["nav-index"]=!1,i["nav-left"]=!1,i["nav-right"]=!1,i["nav-up"]=!1,i["object-fit"]=!1,i["object-position"]=!1,i.opacity=!1,i.order=!1,i.orphans=!1,i.outline=!1,i["outline-color"]=!1,i["outline-offset"]=!1,i["outline-style"]=!1,i["outline-width"]=!1,i.overflow=!1,i["overflow-wrap"]=!1,i["overflow-x"]=!1,i["overflow-y"]=!1,i.padding=!0,i["padding-bottom"]=!0,i["padding-left"]=!0,i["padding-right"]=!0,i["padding-top"]=!0,i.page=!1,i["page-break-after"]=!1,i["page-break-before"]=!1,i["page-break-inside"]=!1,i["page-policy"]=!1,i.pause=!1,i["pause-after"]=!1,i["pause-before"]=!1,i.perspective=!1,i["perspective-origin"]=!1,i.pitch=!1,i["pitch-range"]=!1,i["play-during"]=!1,i.position=!1,i["presentation-level"]=!1,i.quotes=!1,i["region-fragment"]=!1,i.resize=!1,i.rest=!1,i["rest-after"]=!1,i["rest-before"]=!1,i.richness=!1,i.right=!1,i.rotation=!1,i["rotation-point"]=!1,i["ruby-align"]=!1,i["ruby-merge"]=!1,i["ruby-position"]=!1,i["shape-image-threshold"]=!1,i["shape-outside"]=!1,i["shape-margin"]=!1,i.size=!1,i.speak=!1,i["speak-as"]=!1,i["speak-header"]=!1,i["speak-numeral"]=!1,i["speak-punctuation"]=!1,i["speech-rate"]=!1,i.stress=!1,i["string-set"]=!1,i["tab-size"]=!1,i["table-layout"]=!1,i["text-align"]=!0,i["text-align-last"]=!0,i["text-combine-upright"]=!0,i["text-decoration"]=!0,i["text-decoration-color"]=!0,i["text-decoration-line"]=!0,i["text-decoration-skip"]=!0,i["text-decoration-style"]=!0,i["text-emphasis"]=!0,i["text-emphasis-color"]=!0,i["text-emphasis-position"]=!0,i["text-emphasis-style"]=!0,i["text-height"]=!0,i["text-indent"]=!0,i["text-justify"]=!0,i["text-orientation"]=!0,i["text-overflow"]=!0,i["text-shadow"]=!0,i["text-space-collapse"]=!0,i["text-transform"]=!0,i["text-underline-position"]=!0,i["text-wrap"]=!0,i.top=!1,i.transform=!1,i["transform-origin"]=!1,i["transform-style"]=!1,i.transition=!1,i["transition-delay"]=!1,i["transition-duration"]=!1,i["transition-property"]=!1,i["transition-timing-function"]=!1,i["unicode-bidi"]=!1,i["vertical-align"]=!1,i.visibility=!1,i["voice-balance"]=!1,i["voice-duration"]=!1,i["voice-family"]=!1,i["voice-pitch"]=!1,i["voice-range"]=!1,i["voice-rate"]=!1,i["voice-stress"]=!1,i["voice-volume"]=!1,i.volume=!1,i["white-space"]=!1,i.widows=!1,i.width=!0,i["will-change"]=!1,i["word-break"]=!0,i["word-spacing"]=!0,i["word-wrap"]=!0,i["wrap-flow"]=!1,i["wrap-through"]=!1,i["writing-mode"]=!1,i["z-index"]=!1,r.whiteList=i,r.onAttr=function(t,e,r){},r.onIgnoreAttr=function(t,e,r){}},{}],8:[function(t,e,r){var i=t("./default"),n=t("./css");for(var a in(r=e.exports=function(t,e){return new n(e).process(t)}).FilterCSS=n,i)r[a]=i[a];void 0===(l=function(){return e.exports}.call(r,s,r,e))||(e.exports=l),"undefined"!=typeof window&&(window.filterCSS=e.exports)},{"./css":6,"./default":7}],9:[function(t,e,r){var u=t("./util");e.exports=function(a,o){";"!==(a=u.trimRight(a))[a.length-1]&&(a+=";");var t=a.length,s=!1,l=0,p=0,c="";function e(){if(!s){var t=u.trim(a.slice(l,p)),e=t.indexOf(":");if(-1!==e){var r=u.trim(t.slice(0,e)),i=u.trim(t.slice(e+1));if(r){var n=o(l,c.length,r,i,t);n&&(c+=n+"; ")}}}l=p+1}for(;p<t;p++){var r=a[p];if("/"===r&&"*"===a[p+1]){var i=a.indexOf("*/",p+2);if(-1===i)break;l=(p=i+1)+1,s=!1}else"("===r?s=!0:")"===r?s=!1:";"===r?s||e():"\n"===r&&e()}return u.trim(c)}},{"./util":10}],10:[function(t,e,r){e.exports={indexOf:function(t,e){var r,i;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var i,n;if(Array.prototype.forEach)return t.forEach(e,r);for(i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}}},{}]},{},[2])},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__,D5b,E5b;function _typeof(t){return(_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})(t)}"undefined"!=typeof navigator&&(D5b=window||{},E5b=function(window){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof(t)&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){bm_rnd=t?Math.round:function(t){return t}}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin=t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility=t.style.webkitBackfaceVisibility="visible",t.style.transformStyle=t.style.webkitTransformStyle=t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}roundValues(!1);var createElementID=(e6b=0,function(){return"__lottie_element_"+ ++e6b}),e6b;function HSVtoRGB(t,e,r){var i,n,a,o,s,l,p,c;switch(l=r*(1-e),p=r*(1-(s=6*t-(o=Math.floor(6*t)))*e),c=r*(1-(1-s)*e),o%6){case 0:i=r,n=c,a=l;break;case 1:i=p,n=r,a=l;break;case 2:i=l,n=r,a=c;break;case 3:i=l,n=p,a=r;break;case 4:i=c,n=l,a=r;break;case 5:i=r,n=l,a=p}return[i,n,a]}function RGBtoHSV(t,e,r){var i,n=Math.max(t,e,r),a=Math.min(t,e,r),o=n-a,s=0===n?0:o/n,l=n/255;switch(n){case a:i=0;break;case t:i=e-r+o*(e<r?6:0),i/=6*o;break;case e:i=r-t+2*o,i/=6*o;break;case r:i=t-e+4*o,i/=6*o}return[i,s,l]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,1<r[1]?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,1<r[2]?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,1<r[0]?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1==e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+i[t]+i[e]+i[r]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t].length,i=0;i<r;i++)this._cbs[t][i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray="function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}:function(t,e){var r,i=0,n=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<e;i+=1)n.push(r);return n};function createSizedArray(t){return Array.apply(null,{length:t})}function createNS(t){return document.createElementNS(svgNS,t)}function createTag(t){return document.createElement(t)}function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var getBlendMode=(t7b={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return t7b[t]||""}),t7b,Matrix=(v7b=Math.cos,w7b=Math.sin,x7b=Math.tan,y7b=Math.round,function(){this.reset=z7b,this.rotate=A7b,this.rotateX=B7b,this.rotateY=C7b,this.rotateZ=D7b,this.skew=F7b,this.skewFromAxis=G7b,this.shear=E7b,this.scale=H7b,this.setTransform=I7b,this.translate=J7b,this.transform=K7b,this.applyToPoint=P7b,this.applyToX=Q7b,this.applyToY=R7b,this.applyToZ=S7b,this.applyToPointArray=W7b,this.applyToTriplePoints=V7b,this.applyToPointStringified=X7b,this.toCSS=Y7b,this.to2dCSS=$7b,this.clone=N7b,this.cloneFromProps=O7b,this.equals=M7b,this.inversePoints=U7b,this.inversePoint=T7b,this._t=this.transform,this.isIdentity=L7b,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}),v7b,w7b,x7b,y7b;
/*!
   Transformation Matrix v2.0
   (c) Epistemex 2014-2015
   www.epistemex.com
   By Ken Fyrstenberg
   Contributions by leeoniya.
   License: MIT, header required.
   */function z7b(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function A7b(t){if(0===t)return this;var e=v7b(t),r=w7b(t);return this._t(e,-r,0,0,r,e,0,0,0,0,1,0,0,0,0,1)}function B7b(t){if(0===t)return this;var e=v7b(t),r=w7b(t);return this._t(1,0,0,0,0,e,-r,0,0,r,e,0,0,0,0,1)}function C7b(t){if(0===t)return this;var e=v7b(t),r=w7b(t);return this._t(e,0,r,0,0,1,0,0,-r,0,e,0,0,0,0,1)}function D7b(t){if(0===t)return this;var e=v7b(t),r=w7b(t);return this._t(e,-r,0,0,r,e,0,0,0,0,1,0,0,0,0,1)}function E7b(t,e){return this._t(1,e,t,1,0,0)}function F7b(t,e){return this.shear(x7b(t),x7b(e))}function G7b(t,e){var r=v7b(e),i=w7b(e);return this._t(r,i,0,0,-i,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,x7b(t),1,0,0,0,0,1,0,0,0,0,1)._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function H7b(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function I7b(t,e,r,i,n,a,o,s,l,p,c,u,h,d,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=i,this.props[4]=n,this.props[5]=a,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=p,this.props[10]=c,this.props[11]=u,this.props[12]=h,this.props[13]=d,this.props[14]=f,this.props[15]=m,this}function J7b(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function K7b(t,e,r,i,n,a,o,s,l,p,c,u,h,d,f,m){var g=this.props;if(1===t&&0===e&&0===r&&0===i&&0===n&&1===a&&0===o&&0===s&&0===l&&0===p&&1===c&&0===u)return g[12]=g[12]*t+g[15]*h,g[13]=g[13]*a+g[15]*d,g[14]=g[14]*c+g[15]*f,g[15]=g[15]*m,this._identityCalculated=!1,this;var v=g[0],y=g[1],x=g[2],b=g[3],_=g[4],w=g[5],S=g[6],T=g[7],P=g[8],k=g[9],I=g[10],A=g[11],E=g[12],C=g[13],O=g[14],M=g[15];return g[0]=v*t+y*n+x*l+b*h,g[1]=v*e+y*a+x*p+b*d,g[2]=v*r+y*o+x*c+b*f,g[3]=v*i+y*s+x*u+b*m,g[4]=_*t+w*n+S*l+T*h,g[5]=_*e+w*a+S*p+T*d,g[6]=_*r+w*o+S*c+T*f,g[7]=_*i+w*s+S*u+T*m,g[8]=P*t+k*n+I*l+A*h,g[9]=P*e+k*a+I*p+A*d,g[10]=P*r+k*o+I*c+A*f,g[11]=P*i+k*s+I*u+A*m,g[12]=E*t+C*n+O*l+M*h,g[13]=E*e+C*a+O*p+M*d,g[14]=E*r+C*o+O*c+M*f,g[15]=E*i+C*s+O*u+M*m,this._identityCalculated=!1,this}function L7b(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function M7b(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function N7b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function O7b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function P7b(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function Q7b(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function R7b(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function S7b(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function T7b(t){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],r=this.props[5]/e,i=-this.props[1]/e,n=-this.props[4]/e,a=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e;return[t[0]*r+t[1]*n+o,t[0]*i+t[1]*a+s,0]}function U7b(t){var e,r=t.length,i=[];for(e=0;e<r;e+=1)i[e]=T7b(t[e]);return i}function V7b(t,e,r){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=r[0],i[5]=r[1];else{var n=this.props[0],a=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],p=this.props[13];i[0]=t[0]*n+t[1]*o+l,i[1]=t[0]*a+t[1]*s+p,i[2]=e[0]*n+e[1]*o+l,i[3]=e[0]*a+e[1]*s+p,i[4]=r[0]*n+r[1]*o+l,i[5]=r[0]*a+r[1]*s+p}return i}function W7b(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function X7b(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function Y7b(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=y7b(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function Z7b(t){return t<1e-6&&0<t||-1e-6<t&&t<0?y7b(1e4*t)/1e4:t}function $7b(){var t=this.props;return"matrix("+Z7b(t[0])+","+Z7b(t[1])+","+Z7b(t[4])+","+Z7b(t[5])+","+Z7b(t[12])+","+Z7b(t[13])+")"}!function(s,l){var p,c=this,u=256,h=6,d="random",f=l.pow(u,h),m=l.pow(2,52),g=2*m,v=u-1;function y(t){var e,r=t.length,o=this,i=0,n=o.i=o.j=0,a=o.S=[];for(r||(t=[r++]);i<u;)a[i]=i++;for(i=0;i<u;i++)a[i]=a[n=v&n+t[i%r]+(e=a[i])],a[n]=e;o.g=function(t){for(var e,r=0,i=o.i,n=o.j,a=o.S;t--;)e=a[i=v&i+1],r=r*u+a[v&(a[i]=a[n=v&n+e])+(a[n]=e)];return o.i=i,o.j=n,r}}function x(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function b(t,e){for(var r,i=t+"",n=0;n<i.length;)e[v&n]=v&(r^=19*e[v&n])+i.charCodeAt(n++);return _(e)}function _(t){return String.fromCharCode.apply(0,t)}l["seed"+d]=function(t,e,r){function i(){for(var t=o.g(h),e=f,r=0;t<m;)t=(t+r)*u,e*=u,r=o.g(1);for(;g<=t;)t/=2,e/=2,r>>>=1;return(t+r)/e}var n=[],a=b(function t(e,r){var i,n=[],a=_typeof(e);if(r&&"object"==a)for(i in e)try{n.push(t(e[i],r-1))}catch(t){}return n.length?n:"string"==a?e:e+"\0"}((e=!0===e?{entropy:!0}:e||{}).entropy?[t,_(s)]:null===t?function(){try{if(p)return _(p.randomBytes(u));var t=new Uint8Array(u);return(c.crypto||c.msCrypto).getRandomValues(t),_(t)}catch(t){var e=c.navigator,r=e&&e.plugins;return[+new Date,c,r,c.screen,_(s)]}}():t,3),n),o=new y(n);return i.int32=function(){return 0|o.g(4)},i.quick=function(){return o.g(4)/4294967296},i.double=i,b(_(o.S),s),(e.pass||r||function(t,e,r,i){return i&&(i.S&&x(i,o),t.state=function(){return x(o,{})}),r?(l[d]=t,e):t})(i,a,"global"in e?e.global:this==l,e.state)},b(l.random(),s)}([],BMMath);var BezierFactory=(Lbc={getBezierEasing:function(t,e,r,i,n){var a=n||("bez_"+t+"_"+e+"_"+r+"_"+i).replace(/\./g,"p");if(Mbc[a])return Mbc[a];var o=new acc([t,e,r,i]);return Mbc[a]=o}},Mbc={},Sbc=11,Tbc=1/(Sbc-1),Ubc="function"==typeof Float32Array,acc.prototype={get:function(t){var e=this._p[0],r=this._p[1],i=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===r&&i===n?t:0===t?0:1===t?1:Ybc(this._getTForX(t),r,n)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;r<Sbc;++r)this._mSampleValues[r]=Ybc(r*Tbc,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],i=this._mSampleValues,n=0,a=1,o=Sbc-1;a!==o&&i[a]<=t;++a)n+=Tbc;var s=n+(t-i[--a])/(i[a+1]-i[a])*Tbc,l=Zbc(s,e,r);return.001<=l?function(t,e,r,i){for(var n=0;n<4;++n){var a=Zbc(e,r,i);if(0===a)return e;e-=(Ybc(e,r,i)-t)/a}return e}(t,s,e,r):0===l?s:function(t,e,r,i,n){for(var a,o,s=0;0<(a=Ybc(o=e+(r-e)/2,i,n)-t)?r=o:e=o,1e-7<Math.abs(a)&&++s<10;);return o}(t,n,n+Tbc,e,r)}},Lbc),Lbc,Mbc,Sbc,Tbc,Ubc;function Vbc(t,e){return 1-3*e+3*t}function Wbc(t,e){return 3*e-6*t}function Xbc(t){return 3*t}function Ybc(t,e,r){return((Vbc(e,r)*t+Wbc(e,r))*t+Xbc(e))*t}function Zbc(t,e,r){return 3*Vbc(e,r)*t*t+2*Wbc(e,r)*t+Xbc(e)}function acc(t){this._p=t,this._mSampleValues=Ubc?new Float32Array(Sbc):new Array(Sbc),this._precomputed=!1,this.get=this.get.bind(this)}function extendPrototype(t,e){var r,i,n=t.length;for(r=0;r<n;r+=1)for(var a in i=t[r].prototype)i.hasOwnProperty(a)&&(e.prototype[a]=i[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}function bezFunction(){Math;function g(t,e,r,i,n,a){var o=t*i+e*n+r*a-n*i-a*t-r*e;return-.001<o&&o<.001}var c=function(t,e,r,i){var n,a,o,s,l,p,c=defaultCurveSegments,u=0,h=[],d=[],f=bezier_length_pool.newElement();for(o=r.length,n=0;n<c;n+=1){for(l=n/(c-1),a=p=0;a<o;a+=1)s=bm_pow(1-l,3)*t[a]+3*bm_pow(1-l,2)*l*r[a]+3*(1-l)*bm_pow(l,2)*i[a]+bm_pow(l,3)*e[a],h[a]=s,null!==d[a]&&(p+=bm_pow(h[a]-d[a],2)),d[a]=h[a];p&&(u+=p=bm_sqrt(p)),f.percents[n]=l,f.lengths[n]=u}return f.addedLength=u,f};function v(t){this.segmentLength=0,this.points=new Array(t)}function y(t,e){this.partialLength=t,this.point=e}var x,t=(x={},function(t,e,r,i){var n=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+i[0]+"_"+i[1]).replace(/\./g,"p");if(!x[n]){var a,o,s,l,p,c,u,h=defaultCurveSegments,d=0,f=null;2===t.length&&(t[0]!=e[0]||t[1]!=e[1])&&g(t[0],t[1],e[0],e[1],t[0]+r[0],t[1]+r[1])&&g(t[0],t[1],e[0],e[1],e[0]+i[0],e[1]+i[1])&&(h=2);var m=new v(h);for(s=r.length,a=0;a<h;a+=1){for(u=createSizedArray(s),p=a/(h-1),o=c=0;o<s;o+=1)l=bm_pow(1-p,3)*t[o]+3*bm_pow(1-p,2)*p*(t[o]+r[o])+3*(1-p)*bm_pow(p,2)*(e[o]+i[o])+bm_pow(p,3)*e[o],u[o]=l,null!==f&&(c+=bm_pow(u[o]-f[o],2));d+=c=bm_sqrt(c),m.points[a]=new y(c,u),f=u}m.segmentLength=d,x[n]=m}return x[n]});function E(t,e){var r=e.percents,i=e.lengths,n=r.length,a=bm_floor((n-1)*t),o=t*e.addedLength,s=0;if(a===n-1||0===a||o===i[a])return r[a];for(var l=i[a]>o?-1:1,p=!0;p;)if(i[a]<=o&&i[a+1]>o?(s=(o-i[a])/(i[a+1]-i[a]),p=!1):a+=l,a<0||n-1<=a){if(a===n-1)return r[a];p=!1}return r[a]+(r[a+1]-r[a])*s}var C=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segments_length_pool.newElement(),i=t.c,n=t.v,a=t.o,o=t.i,s=t._length,l=r.lengths,p=0;for(e=0;e<s-1;e+=1)l[e]=c(n[e],n[e+1],a[e],o[e+1]),p+=l[e].addedLength;return i&&s&&(l[e]=c(n[e],n[0],a[e],o[0]),p+=l[e].addedLength),r.totalLength=p,r},getNewSegment:function(t,e,r,i,n,a,o){var s,l=E(n=n<0?0:1<n?1:n,o),p=E(a=1<a?1:a,o),c=t.length,u=1-l,h=1-p,d=u*u*u,f=l*u*u*3,m=l*l*u*3,g=l*l*l,v=u*u*h,y=l*u*h+u*l*h+u*u*p,x=l*l*h+u*l*p+l*u*p,b=l*l*p,_=u*h*h,w=l*h*h+u*p*h+u*h*p,S=l*p*h+u*p*p+l*h*p,T=l*p*p,P=h*h*h,k=p*h*h+h*p*h+h*h*p,I=p*p*h+h*p*p+p*h*p,A=p*p*p;for(s=0;s<c;s+=1)C[4*s]=Math.round(1e3*(d*t[s]+f*r[s]+m*i[s]+g*e[s]))/1e3,C[4*s+1]=Math.round(1e3*(v*t[s]+y*r[s]+x*i[s]+b*e[s]))/1e3,C[4*s+2]=Math.round(1e3*(_*t[s]+w*r[s]+S*i[s]+T*e[s]))/1e3,C[4*s+3]=Math.round(1e3*(P*t[s]+k*r[s]+I*i[s]+A*e[s]))/1e3;return C},getPointInSegment:function(t,e,r,i,n,a){var o=E(n,a),s=1-o;return[Math.round(1e3*(s*s*s*t[0]+(o*s*s+s*o*s+s*s*o)*r[0]+(o*o*s+s*o*o+o*s*o)*i[0]+o*o*o*e[0]))/1e3,Math.round(1e3*(s*s*s*t[1]+(o*s*s+s*o*s+s*s*o)*r[1]+(o*o*s+s*o*o+o*s*o)*i[1]+o*o*o*e[1]))/1e3]},buildBezierData:t,pointOnLine2D:g,pointOnLine3D:function(t,e,r,i,n,a,o,s,l){if(0===r&&0===a&&0===l)return g(t,e,i,n,o,s);var p,c=Math.sqrt(Math.pow(i-t,2)+Math.pow(n-e,2)+Math.pow(a-r,2)),u=Math.sqrt(Math.pow(o-t,2)+Math.pow(s-e,2)+Math.pow(l-r,2)),h=Math.sqrt(Math.pow(o-i,2)+Math.pow(s-n,2)+Math.pow(l-a,2));return-1e-4<(p=u<c?h<c?c-u-h:h-u-c:u<h?h-u-c:u-c-h)&&p<1e-4}}}!function(){for(var a=0,t=["ms","moz","webkit","o"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var r=(new Date).getTime(),i=Math.max(0,16-(r-a)),n=setTimeout(function(){t(r+i)},i);return a=r+i,n}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction();function dataFunctionManager(){function h(t,e){for(var r=0,i=e.length;r<i;){if(e[r].id===t)return e[r].layers.__used?JSON.parse(JSON.stringify(e[r].layers)):(e[r].layers.__used=!0,e[r].layers);r+=1}}function d(t){var e,r,i;for(e=t.length-1;0<=e;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)f(t[e].ks.k);else for(i=t[e].ks.k.length,r=0;r<i;r+=1)t[e].ks.k[r].s&&f(t[e].ks.k[r].s[0]),t[e].ks.k[r].e&&f(t[e].ks.k[r].e[0]);!0}else"gr"==t[e].ty&&d(t[e].it)}function f(t){var e,r=t.i.length;for(e=0;e<r;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function s(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&void 0))}var i,r=(i=[4,4,14],function(t){if(s(i,t.v)&&(n(t.layers),t.assets)){var e,r=t.assets.length;for(e=0;e<r;e+=1)t.assets[e].layers&&n(t.assets[e].layers)}});function n(t){var e,r,i,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(r=t[e],void 0,i=r.t.d,r.t.d={k:[{s:i,t:0}]})}var l,a,o=(l=[4,7,99],function(t){if(t.chars&&!s(l,t.v)){var e,r,i,n,a,o=t.chars.length;for(e=0;e<o;e+=1)if(t.chars[e].data&&t.chars[e].data.shapes)for(i=(a=t.chars[e].data.shapes[0].it).length,r=0;r<i;r+=1)(n=a[r].ks.k).__converted||(f(a[r].ks.k),n.__converted=!0)}}),p=(a=[4,1,9],function(t){if(s(a,t.v)&&(u(t.layers),t.assets)){var e,r=t.assets.length;for(e=0;e<r;e+=1)t.assets[e].layers&&u(t.assets[e].layers)}});function c(t){var e,r,i,n=t.length;for(e=0;e<n;e+=1)if("gr"===t[e].ty)c(t[e].it);else if("fl"===t[e].ty||"st"===t[e].ty)if(t[e].c.k&&t[e].c.k[0].i)for(i=t[e].c.k.length,r=0;r<i;r+=1)t[e].c.k[r].s&&(t[e].c.k[r].s[0]/=255,t[e].c.k[r].s[1]/=255,t[e].c.k[r].s[2]/=255,t[e].c.k[r].s[3]/=255),t[e].c.k[r].e&&(t[e].c.k[r].e[0]/=255,t[e].c.k[r].e[1]/=255,t[e].c.k[r].e[2]/=255,t[e].c.k[r].e[3]/=255);else t[e].c.k[0]/=255,t[e].c.k[1]/=255,t[e].c.k[2]/=255,t[e].c.k[3]/=255}function u(t){var e,r=t.length;for(e=0;e<r;e+=1)4===t[e].ty&&c(t[e].shapes)}var m,g=(m=[4,4,18],function(t){if(s(m,t.v)&&(y(t.layers),t.assets)){var e,r=t.assets.length;for(e=0;e<r;e+=1)t.assets[e].layers&&y(t.assets[e].layers)}});function v(t){var e,r,i;for(e=t.length-1;0<=e;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)t[e].ks.k.c=t[e].closed;else for(i=t[e].ks.k.length,r=0;r<i;r+=1)t[e].ks.k[r].s&&(t[e].ks.k[r].s[0].c=t[e].closed),t[e].ks.k[r].e&&(t[e].ks.k[r].e[0].c=t[e].closed);!0}else"gr"==t[e].ty&&v(t[e].it)}function y(t){var e,r,i,n,a,o,s=t.length;for(r=0;r<s;r+=1){if((e=t[r]).hasMask){var l=e.masksProperties;for(n=l.length,i=0;i<n;i+=1)if(l[i].pt.k.i)l[i].pt.k.c=l[i].cl;else for(o=l[i].pt.k.length,a=0;a<o;a+=1)l[i].pt.k[a].s&&(l[i].pt.k[a].s[0].c=l[i].cl),l[i].pt.k[a].e&&(l[i].pt.k[a].e[0].c=l[i].cl)}4===e.ty&&v(e.shapes)}}function x(t){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var t={};return t.completeData=function(t,e){t.__complete||(p(t),r(t),o(t),g(t),function t(e,r,i){var n,a,o,s,l,p,c=e.length;for(a=0;a<c;a+=1)if("ks"in(n=e[a])&&!n.completed){if(n.completed=!0,n.tt&&(e[a-1].td=n.tt),n.hasMask){var u=n.masksProperties;for(s=u.length,o=0;o<s;o+=1)if(u[o].pt.k.i)f(u[o].pt.k);else for(p=u[o].pt.k.length,l=0;l<p;l+=1)u[o].pt.k[l].s&&f(u[o].pt.k[l].s[0]),u[o].pt.k[l].e&&f(u[o].pt.k[l].e[0])}0===n.ty?(n.layers=h(n.refId,r),t(n.layers,r,i)):4===n.ty?d(n.shapes):5==n.ty&&x(n,i)}}(t.layers,t.assets,e),t.__complete=!0)},t}var dataManager=dataFunctionManager(),FontManager=function(){var a={w:0,size:0,shapes:[]},t=[];function m(t,e){var r=createTag("span");r.style.fontFamily=e;var i=createTag("span");i.innerHTML="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(i),document.body.appendChild(r);var n=i.offsetWidth;return i.style.fontFamily=t+", "+e,{node:i,w:n,parent:r}}t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);function e(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this.initTime=Date.now()}return e.getCombinedCharacterCodes=function(){return t},e.prototype.addChars=function(t){if(t){this.chars||(this.chars=[]);var e,r,i,n=t.length,a=this.chars.length;for(e=0;e<n;e+=1){for(r=0,i=!1;r<a;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(i=!0),r+=1;i||(this.chars.push(t[e]),a+=1)}}},e.prototype.addFonts=function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);var r,i,n,a,o=t.list,s=o.length,l=s;for(r=0;r<s;r+=1){var p,c,u=!0;if(o[r].loaded=!1,o[r].monoCase=m(o[r].fFamily,"monospace"),o[r].sansCase=m(o[r].fFamily,"sans-serif"),o[r].fPath){if("p"===o[r].fOrigin||3===o[r].origin){if(0<(p=document.querySelectorAll('style[f-forigin="p"][f-family="'+o[r].fFamily+'"], style[f-origin="3"][f-family="'+o[r].fFamily+'"]')).length&&(u=!1),u){var h=createTag("style");h.setAttribute("f-forigin",o[r].fOrigin),h.setAttribute("f-origin",o[r].origin),h.setAttribute("f-family",o[r].fFamily),h.type="text/css",h.innerHTML="@font-face {font-family: "+o[r].fFamily+"; font-style: normal; src: url('"+o[r].fPath+"');}",e.appendChild(h)}}else if("g"===o[r].fOrigin||1===o[r].origin){for(p=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<p.length;c++)-1!==p[c].href.indexOf(o[r].fPath)&&(u=!1);if(u){var d=createTag("link");d.setAttribute("f-forigin",o[r].fOrigin),d.setAttribute("f-origin",o[r].origin),d.type="text/css",d.rel="stylesheet",d.href=o[r].fPath,document.body.appendChild(d)}}else if("t"===o[r].fOrigin||2===o[r].origin){for(p=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<p.length;c++)o[r].fPath===p[c].src&&(u=!1);if(u){var f=createTag("link");f.setAttribute("f-forigin",o[r].fOrigin),f.setAttribute("f-origin",o[r].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",o[r].fPath),e.appendChild(f)}}}else o[r].loaded=!0,l-=1;o[r].helper=(i=e,n=o[r],a=void 0,(a=createNS("text")).style.fontSize="100px",a.setAttribute("font-family",n.fFamily),a.setAttribute("font-style",n.fStyle),a.setAttribute("font-weight",n.fWeight),a.textContent="1",n.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",n.fClass)):a.style.fontFamily=n.fFamily,i.appendChild(a),createTag("canvas").getContext("2d").font=n.fWeight+" "+n.fStyle+" 100px "+n.fFamily,a),o[r].cache={},this.fonts.push(o[r])}0===l?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},e.prototype.getCharData=function(t,e,r){for(var i=0,n=this.chars.length;i<n;){if(this.chars[i].ch===t&&this.chars[i].style===e&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return console&&console.warn&&console.warn("Missing character from exported characters list: ",t,e,r),a},e.prototype.getFontByName=function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},e.prototype.measureText=function(t,e,r){var i=this.getFontByName(e),n=t.charCodeAt(0);if(!i.cache[n+1]){var a=i.helper;if(" "===t){a.textContent="|"+t+"|";var o=a.getComputedTextLength();a.textContent="||";var s=a.getComputedTextLength();i.cache[n+1]=(o-s)/100}else a.textContent=t,i.cache[n+1]=a.getComputedTextLength()/100}return i.cache[n+1]*r},e.prototype.checkLoadedFonts=function(){var t,e,r,i=this.fonts.length,n=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,e.offsetWidth!==r?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,e.offsetWidth!==r&&(n-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFonts.bind(this),20):setTimeout(function(){this.isLoaded=!0}.bind(this),0)},e.prototype.loaded=function(){return this.isLoaded},e}(),PropertyFactory=(Xic=initialDefaultFrame,Yic=Math.abs,{getProp:function(t,e,r,i,n){var a;if(e.k.length)if("number"==typeof e.k[0])a=new gjc(t,e,i,n);else switch(r){case 0:a=new hjc(t,e,i,n);break;case 1:a=new ijc(t,e,i,n)}else a=new fjc(t,e,i,n);return a.effectsSequence.length&&n.addDynamicProperty(a),a}}),Xic,Yic;function Zic(t,e){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var n,a,o,s,l,p,c,u,h=e.lastIndex,d=h,f=this.keyframes.length-1,m=!0;m;){if(n=this.keyframes[d],a=this.keyframes[d+1],d===f-1&&t>=a.t-i){n.h&&(n=a),h=0;break}if(a.t-i>t){h=d;break}d<f-1?d+=1:(h=0,m=!1)}var g,v=a.t-i,y=n.t-i;if(n.to){n.bezierData||(n.bezierData=bez.buildBezierData(n.s,a.s||n.e,n.to,n.ti));var x=n.bezierData;if(v<=t||t<y){var b=v<=t?x.points.length-1:0;for(s=x.points[b].point.length,o=0;o<s;o+=1)r[o]=x.points[b].point[o]}else{n.__fnct?u=n.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,n.__fnct=u),l=u((t-y)/(v-y));var _,w=x.segmentLength*l,S=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastAddedLength:0;for(c=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastPoint:0,m=!0,p=x.points.length;m;){if(S+=x.points[c].partialLength,0==w||0===l||c===x.points.length-1){for(s=x.points[c].point.length,o=0;o<s;o+=1)r[o]=x.points[c].point[o];break}if(S<=w&&w<S+x.points[c+1].partialLength){for(_=(w-S)/x.points[c+1].partialLength,s=x.points[c].point.length,o=0;o<s;o+=1)r[o]=x.points[c].point[o]+(x.points[c+1].point[o]-x.points[c].point[o])*_;break}c<p-1?c+=1:m=!1}e._lastPoint=c,e._lastAddedLength=S-x.points[c].partialLength,e._lastKeyframeIndex=d}}else{var T,P,k,I,A;if(f=n.s.length,g=a.s||n.e,this.sh&&1!==n.h)if(v<=t)r[0]=g[0],r[1]=g[1],r[2]=g[2];else if(t<=y)r[0]=n.s[0],r[1]=n.s[1],r[2]=n.s[2];else{!function(t,e){var r=e[0],i=e[1],n=e[2],a=e[3],o=Math.atan2(2*i*a-2*r*n,1-2*i*i-2*n*n),s=Math.asin(2*r*i+2*n*a),l=Math.atan2(2*r*a-2*i*n,1-2*r*r-2*n*n);t[0]=o/degToRads,t[1]=s/degToRads,t[2]=l/degToRads}(r,function(t,e,r){var i,n,a,o,s,l=[],p=t[0],c=t[1],u=t[2],h=t[3],d=e[0],f=e[1],m=e[2],g=e[3];(n=p*d+c*f+u*m+h*g)<0&&(n=-n,d=-d,f=-f,m=-m,g=-g);s=1e-6<1-n?(i=Math.acos(n),a=Math.sin(i),o=Math.sin((1-r)*i)/a,Math.sin(r*i)/a):(o=1-r,r);return l[0]=o*p+s*d,l[1]=o*c+s*f,l[2]=o*u+s*m,l[3]=o*h+s*g,l}(ajc(n.s),ajc(g),(t-y)/(v-y)))}else for(d=0;d<f;d+=1)1!==n.h&&(l=v<=t?1:t<y?0:(n.o.x.constructor===Array?(n.__fnct||(n.__fnct=[]),n.__fnct[d]?u=n.__fnct[d]:(T=void 0===n.o.x[d]?n.o.x[0]:n.o.x[d],P=void 0===n.o.y[d]?n.o.y[0]:n.o.y[d],k=void 0===n.i.x[d]?n.i.x[0]:n.i.x[d],I=void 0===n.i.y[d]?n.i.y[0]:n.i.y[d],u=BezierFactory.getBezierEasing(T,P,k,I).get,n.__fnct[d]=u)):n.__fnct?u=n.__fnct:(T=n.o.x,P=n.o.y,k=n.i.x,I=n.i.y,u=BezierFactory.getBezierEasing(T,P,k,I).get,n.__fnct=u),u((t-y)/(v-y)))),g=a.s||n.e,A=1===n.h?n.s[d]:n.s[d]+(g[d]-n.s[d])*l,1===f?r=A:r[d]=A}return e.lastIndex=h,r}function ajc(t){var e=t[0]*degToRads,r=t[1]*degToRads,i=t[2]*degToRads,n=Math.cos(e/2),a=Math.cos(r/2),o=Math.cos(i/2),s=Math.sin(e/2),l=Math.sin(r/2),p=Math.sin(i/2);return[s*l*o+n*a*p,s*a*o+n*l*p,n*l*o-s*a*p,n*a*o-s*l*p]}function bjc(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==Xic&&(this._caching.lastFrame>=r&&r<=t||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function cjc(t){var e;if("unidimensional"===this.propType)e=t*this.mult,1e-5<Yic(this.v-e)&&(this.v=e,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)e=t[r]*this.mult,1e-5<Yic(this.v[r]-e)&&(this.v[r]=e,this._mdf=!0),r+=1}function djc(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ejc(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function fjc(t,e,r,i){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=djc,this.setVValue=cjc,this.addEffect=ejc}function gjc(t,e,r,i){this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n,a=e.k.length;this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a);createTypedArray("float32",a);for(this.vel=createTypedArray("float32",a),n=0;n<a;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=djc,this.setVValue=cjc,this.addEffect=ejc}function hjc(t,e,r,i){this.propType="unidimensional",this.keyframes=e.k,this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:Xic,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=r||1,this.elem=t,this.container=i,this.comp=t.comp,this.v=Xic,this.pv=Xic,this._isFirstFrame=!0,this.getValue=djc,this.setVValue=cjc,this.interpolateValue=Zic,this.effectsSequence=[bjc.bind(this)],this.addEffect=ejc}function ijc(t,e,r,i){this.propType="multidimensional";var n,a,o,s,l,p=e.k.length;for(n=0;n<p-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n].e&&(a=e.k[n].s,o=e.k[n].e,s=e.k[n].to,l=e.k[n].ti,(2===a.length&&(a[0]!==o[0]||a[1]!==o[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],a[0]+s[0],a[1]+s[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===a.length&&(a[0]!==o[0]||a[1]!==o[1]||a[2]!==o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],a[0]+s[0],a[1]+s[1],a[2]+s[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(e.k[n].to=null,e.k[n].ti=null),a[0]===o[0]&&a[1]===o[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===a.length||a[2]===o[2]&&0===s[2]&&0===l[2])&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[bjc.bind(this)],this.keyframes=e.k,this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=t,this.container=i,this.comp=t.comp,this.getValue=djc,this.setVValue=cjc,this.interpolateValue=Zic,this.frameId=-1;var c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),n=0;n<c;n+=1)this.v[n]=Xic,this.pv[n]=Xic;this._caching={lastFrame:Xic,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=ejc}var TransformPropertyFactory=(zlc.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var e,r,i=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime)r=this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.01)/i,0)):(e=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){e=[],r=[];var n=this.px,a=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(e[0]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),e[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[0]=n.getValueAtTime(n.keyframes[0].t/i,0),r[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(e[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),e[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(e=[n.pv,a.pv],r[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime),r[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}this.v.rotate(-Math.atan2(e[1]-r[1],e[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],zlc),zlc.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},zlc.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,r){return new zlc(t,e,r)}});function zlc(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var i,n=e.or.k.length;for(i=0;i<n;i+=1)e.or.k[i].to=e.or.k[i].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=point_pool.newElement(),this.o[r]=point_pool.newElement(),this.i[r]=point_pool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,i,n){var a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o}a[i]&&(!a[i]||n)||(a[i]=point_pool.newElement()),a[i][0]=t,a[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,n,a,o,s){this.setXYAt(t,e,"v",o,s),this.setXYAt(r,i,"o",o,s),this.setXYAt(n,a,"i",o,s)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var a,o=this._length-1,s=this._length;for(a=n;a<s;a+=1)t.setTripleAt(e[o][0],e[o][1],i[o][0],i[o][1],r[o][0],r[o][1],a,!1),o-=1;return t};var ShapePropertyFactory=function(){var n=-999999;function t(t,e,r){var i,n,a,o,s,l,p,c,u,h=r.lastIndex,d=this.keyframes;if(t<d[0].t-this.offsetTime)i=d[0].s[0],a=!0,h=0;else if(t>=d[d.length-1].t-this.offsetTime)i=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],a=!0;else{for(var f,m,g=h,v=d.length-1,y=!0;y&&(f=d[g],!((m=d[g+1]).t-this.offsetTime>t));)g<v-1?g+=1:y=!1;if(h=g,!(a=1===f.h)){if(t>=m.t-this.offsetTime)c=1;else if(t<f.t-this.offsetTime)c=0;else{var x;f.__fnct?x=f.__fnct:(x=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,f.__fnct=x),c=x((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}n=m.s?m.s[0]:f.e[0]}i=f.s[0]}for(l=e._length,p=i.i[0].length,r.lastIndex=h,o=0;o<l;o+=1)for(s=0;s<p;s+=1)u=a?i.i[o][s]:i.i[o][s]+(n.i[o][s]-i.i[o][s])*c,e.i[o][s]=u,u=a?i.o[o][s]:i.o[o][s]+(n.o[o][s]-i.o[o][s])*c,e.o[o][s]=u,u=a?i.v[o][s]:i.v[o][s]+(n.v[o][s]-i.v[o][s])*c,e.v[o][s]=u}function a(){this.paths=this.localShapeCollection}function e(t){!function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,i=t._length;for(r=0;r<i;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0}(this.v,t)&&(this.v=shape_pool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function r(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1;var t,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k,r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t,e,r){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?e.pt.k:e.ks.k;this.v=shape_pool.clone(i),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function i(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function s(t,e,r){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===r?e.pt.k:e.ks.k,this.k=!0,this.kf=!0;var i=this.keyframes[0].s[0].i.length;this.keyframes[0].s[0].i[0].length;this.v=shape_pool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,i),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=n,this.reset=a,this._caching={lastFrame:n,lastIndex:0},this.effectsSequence=[function(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==n&&(i<e&&t<e||r<i&&r<t)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}.bind(this)]}o.prototype.interpolateShape=t,o.prototype.getValue=r,o.prototype.setVValue=e,o.prototype.addEffect=i,s.prototype.getValue=r,s.prototype.interpolateShape=t,s.prototype.setVValue=e,s.prototype.addEffect=i;var l,p=(l=roundCorner,c.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,n=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=e-i,a.v[1][0]=n?t+r:t-r,a.v[1][1]=e,a.v[2][0]=t,a.v[2][1]=e+i,a.v[3][0]=n?t-r:t+r,a.v[3][1]=e,a.i[0][0]=n?t-r*l:t+r*l,a.i[0][1]=e-i,a.i[1][0]=n?t+r:t-r,a.i[1][1]=e-i*l,a.i[2][0]=n?t+r*l:t-r*l,a.i[2][1]=e+i,a.i[3][0]=n?t-r:t+r,a.i[3][1]=e+i*l,a.o[0][0]=n?t+r*l:t-r*l,a.o[0][1]=e-i,a.o[1][0]=n?t+r:t-r,a.o[1][1]=e+i*l,a.o[2][0]=n?t-r*l:t+r*l,a.o[2][1]=e+i,a.o[3][0]=n?t-r:t+r,a.o[3][1]=e-i*l}},extendPrototype([DynamicPropertyContainer],c),c);function c(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}var u=(h.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,i,n=2*Math.floor(this.pt.v),a=2*Math.PI/n,o=!0,s=this.or.v,l=this.ir.v,p=this.os.v,c=this.is.v,u=2*Math.PI*s/(2*n),h=2*Math.PI*l/(2*n),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(t=this.v._length=0;t<n;t+=1){r=o?p:c,i=o?u:h;var m=(e=o?s:l)*Math.cos(d),g=e*Math.sin(d),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*i*r*f,g-y*i*r*f,m+v*i*r*f,g+y*i*r*f,t,!0),o=!o,d+=a*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,i=this.or.v,n=this.os.v,a=2*Math.PI*i/(4*e),o=-Math.PI/2,s=3===this.data.d?-1:1;for(o+=this.r.v,t=this.v._length=0;t<e;t+=1){var l=i*Math.cos(o),p=i*Math.sin(o),c=0===l&&0===p?0:p/Math.sqrt(l*l+p*p),u=0===l&&0===p?0:-l/Math.sqrt(l*l+p*p);l+=+this.p.v[0],p+=+this.p.v[1],this.v.setTripleAt(l,p,l-c*a*n*s,p-u*a*n*s,l+c*a*n*s,p+u*a*n*s,t,!0),o+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],h),h);function h(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}var d=(f.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,n=bm_min(r,i,this.r.v),a=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-i+n,t+r,e-i+n,t+r,e-i+a,0,!0),this.v.setTripleAt(t+r,e+i-n,t+r,e+i-a,t+r,e+i-n,1,!0),0!==n?(this.v.setTripleAt(t+r-n,e+i,t+r-n,e+i,t+r-a,e+i,2,!0),this.v.setTripleAt(t-r+n,e+i,t-r+a,e+i,t-r+n,e+i,3,!0),this.v.setTripleAt(t-r,e+i-n,t-r,e+i-n,t-r,e+i-a,4,!0),this.v.setTripleAt(t-r,e-i+n,t-r,e-i+a,t-r,e-i+n,5,!0),this.v.setTripleAt(t-r+n,e-i,t-r+n,e-i,t-r+a,e-i,6,!0),this.v.setTripleAt(t+r-n,e-i,t+r-a,e-i,t+r-n,e-i,7,!0)):(this.v.setTripleAt(t-r,e+i,t-r+a,e+i,t-r,e+i,2),this.v.setTripleAt(t-r,e-i,t-r,e-i+a,t-r,e-i,3))):(this.v.setTripleAt(t+r,e-i+n,t+r,e-i+a,t+r,e-i+n,0,!0),0!==n?(this.v.setTripleAt(t+r-n,e-i,t+r-n,e-i,t+r-a,e-i,1,!0),this.v.setTripleAt(t-r+n,e-i,t-r+a,e-i,t-r+n,e-i,2,!0),this.v.setTripleAt(t-r,e-i+n,t-r,e-i+n,t-r,e-i+a,3,!0),this.v.setTripleAt(t-r,e+i-n,t-r,e+i-a,t-r,e+i-n,4,!0),this.v.setTripleAt(t-r+n,e+i,t-r+n,e+i,t-r+a,e+i,5,!0),this.v.setTripleAt(t+r-n,e+i,t+r-a,e+i,t+r-n,e+i,6,!0),this.v.setTripleAt(t+r,e+i-n,t+r,e+i-n,t+r,e+i-a,7,!0)):(this.v.setTripleAt(t-r,e-i,t-r+a,e-i,t-r,e-i,1,!0),this.v.setTripleAt(t-r,e+i,t-r,e+i-a,t-r,e+i,2,!0),this.v.setTripleAt(t+r,e+i,t+r-a,e+i,t+r,e+i,3,!0)))},getValue:function(t){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],f),f);function f(t,e){this.v=shape_pool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}var m={getShapeProp:function(t,e,r){var i;return 3===r||4===r?i=(3===r?e.pt:e.ks).k.length?new s(t,e,r):new o(t,e,r):5===r?i=new d(t,e):6===r?i=new p(t,e):7===r&&(i=new u(t,e)),i.k&&t.addDynamicProperty(i),i},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return s}};return m}(),ShapeModifiers=(Joc={},Koc={},Joc.registerModifier=function(t,e){Koc[t]||(Koc[t]=e)},Joc.getModifier=function(t,e,r){return new Koc[t](e,r)},Joc),Joc,Koc;function ShapeModifier(){}function TrimModifier(){}function RoundCornersModifier(){}function RepeaterModifier(){}function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}function DashProperty(t,e,r,i){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var n,a,o=e.length||0;for(n=0;n<o;n+=1)a=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=a.k||this.k,this.dataProps[n]={n:e[n].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){var e={shape:t.sh,data:t,localShapeCollection:shapeCollection_pool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,n){var a=[];e<=1?a.push({s:t,e:e}):1<=t?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var o,s,l=[],p=a.length;for(o=0;o<p;o+=1){var c,u;if((s=a[o]).e*n<i||s.s*n>i+r);else c=s.s*n<=i?0:(s.s*n-i)/r,u=s.e*n>=i+r?1:(s.e*n-i)/r,l.push([c,u])}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segments_length_pool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),e=(1<this.s.v?1:this.s.v<0?0:this.s.v)+n,(r=(1<this.e.v?1:this.e.v<0?0:this.e.v)+n)<e){var a=e;e=r,r=a}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var o,s,l,p,c,u,h=this.shapes.length,d=0;if(r===e)for(o=0;o<h;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection;else if(1===r&&0===e||0===r&&1===e){if(this._mdf)for(o=0;o<h;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var f,m,g=[];for(o=0;o<h;o+=1)if((f=this.shapes[o]).shape._mdf||this._mdf||t||2===this.m){if(l=(i=f.shape.paths)._length,u=0,!f.shape._mdf&&f.pathsData.length)u=f.totalShapeLength;else{for(p=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)c=bez.getSegmentsLength(i.shapes[s]),p.push(c),u+=c.totalLength;f.totalShapeLength=u,f.pathsData=p}d+=u,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=e,x=r,b=0;for(o=h-1;0<=o;o-=1)if((f=this.shapes[o]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&1<h?(v=this.calculateShapeEdges(e,r,f.totalShapeLength,b,d),b+=f.totalShapeLength):v=[[y,x]],l=v.length,s=0;s<l;s+=1){y=v[s][0],x=v[s][1],g.length=0,x<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*x}):1<=y?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(x-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(x-1)}));var _=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(1<g.length)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var w=_.pop();this.addPaths(_,m),_=this.addShapes(f,g[1],w)}else this.addPaths(_,m),_=this.addShapes(f,g[1]);this.addPaths(_,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,i,n,a,o){n.setXYAt(e[0],e[1],"o",a),n.setXYAt(r[0],r[1],"i",a+1),o&&n.setXYAt(t[0],t[1],"v",a),n.setXYAt(i[0],i[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,n,a,o,s,l,p,c,u=t.pathsData,h=t.shape.paths.shapes,d=t.shape.paths._length,f=0,m=[],g=!0;for(c=r?(s=r._length,r._length):(r=shape_pool.newElement(),s=0),m.push(r),i=0;i<d;i+=1){for(l=u[i].lengths,r.c=h[i].c,a=h[i].c?l.length:l.length+1,n=1;n<a;n+=1)if(f+(o=l[n-1]).addedLength<e.s)f+=o.addedLength,r.c=!1;else{if(f>e.e){r.c=!1;break}e.s<=f&&e.e>=f+o.addedLength?(this.addSegment(h[i].v[n-1],h[i].o[n-1],h[i].i[n],h[i].v[n],r,s,g),g=!1):(p=bez.getNewSegment(h[i].v[n-1],h[i].v[n],h[i].o[n-1],h[i].i[n],(e.s-f)/o.addedLength,(e.e-f)/o.addedLength,l[n-1]),this.addSegmentFromArray(p,r,s,g),g=!1,r.c=!1),f+=o.addedLength,s+=1}if(h[i].c&&l.length){if(o=l[n-1],f<=e.e){var v=l[n-1].addedLength;e.s<=f&&e.e>=f+v?(this.addSegment(h[i].v[n-1],h[i].o[n-1],h[i].i[0],h[i].v[0],r,s,g),g=!1):(p=bez.getNewSegment(h[i].v[n-1],h[i].v[0],h[i].o[n-1],h[i].i[0],(e.s-f)/v,(e.e-f)/v,l[n-1]),this.addSegmentFromArray(p,r,s,g),g=!1,r.c=!1)}else r.c=!1;f+=o.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>e.e)break;i<d-1&&(r=shape_pool.newElement(),g=!0,m.push(r),s=0)}return m},ShapeModifiers.registerModifier("tm",TrimModifier),extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r=shape_pool.newElement();r.c=t.c;var i,n,a,o,s,l,p,c,u,h,d,f,m,g=t._length,v=0;for(i=0;i<g;i+=1)n=t.v[i],o=t.o[i],a=t.i[i],n[0]===o[0]&&n[1]===o[1]&&n[0]===a[0]&&n[1]===a[1]?0!==i&&i!==g-1||t.c?(s=0===i?t.v[g-1]:t.v[i-1],p=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=f=n[0]+(s[0]-n[0])*p,u=m=n[1]-(n[1]-s[1])*p,h=c-(c-n[0])*roundCorner,d=u-(u-n[1])*roundCorner,r.setTripleAt(c,u,h,d,f,m,v),v+=1,s=i===g-1?t.v[0]:t.v[i+1],p=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=h=n[0]+(s[0]-n[0])*p,u=d=n[1]+(s[1]-n[1])*p,f=c-(c-n[0])*roundCorner,m=u-(u-n[1])*roundCorner,r.setTripleAt(c,u,h,d,f,m,v)):r.setTripleAt(n[0],n[1],o[0],o[1],a[0],a[1],v):r.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],v),v+=1;return r},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,n,a,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if((a=this.shapes[r]).shape.paths,o=a.localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("rd",RoundCornersModifier),extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,r,i,n,a){var o=a?-1:1,s=i.s.v[0]+(1-i.s.v[0])*(1-n),l=i.s.v[1]+(1-i.s.v[1])*(1-n);t.translate(i.p.v[0]*o*n,i.p.v[1]*o*n,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*o*n),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(a?1/s:s,a?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,i){this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);for(;0<r;)r-=1,this._elements.unshift(e[r]),1;this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){t.length;var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,n,a;if(this._mdf||t){var o,s=Math.ceil(this.c.v);if(this._groups.length<s){for(;this._groups.length<s;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes()}for(i=a=0;i<=this._groups.length-1;i+=1)o=a<s,this._groups[i]._render=o,this.changeGroupRender(this._groups[i].it,o),a+=1;this._currentCopies=s;var p=this.o.v,c=p%1,u=0<p?Math.floor(p):Math.ceil(p),h=(this.tr.v.props,this.pMatrix.props),d=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m,g,v=0;if(0<p){for(;v<u;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),v+=1;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,c,!1),v+=c)}else if(p<0){for(;u<v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-c,!0),v-=c)}for(i=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,a=this._currentCopies;a;){if(g=(r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==v){for((0!==i&&1===n||i!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),m=0;m<g;m+=1)r[m]=this.matrix.props[m];this.matrix.reset()}else for(this.matrix.reset(),m=0;m<g;m+=1)r[m]=this.matrix.props[m];v+=1,a-=1,i+=n}}else for(a=this._currentCopies,i=0,n=1;a;)r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,a-=1,i+=n},RepeaterModifier.prototype.addShape=function(){},ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shape_pool.release(this.shapes[t]);this._length=0},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;e+=1)"o"!=this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,i=this.o.length/2;r<i;){if(.01<Math.abs(t[4*r]-t[4*e+2*r]))return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,i,n=4*this.data.p;for(e=0;e<n;e+=1)r=e%4==0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)r=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);var buildShapeString=function(t,e,r,i){if(0===e)return"";var n,a=t.o,o=t.i,s=t.v,l=" M"+i.applyToPointStringified(s[0][0],s[0][1]);for(n=1;n<e;n+=1)l+=" C"+i.applyToPointStringified(a[n-1][0],a[n-1][1])+" "+i.applyToPointStringified(o[n][0],o[n][1])+" "+i.applyToPointStringified(s[n][0],s[n][1]);return r&&e&&(l+=" C"+i.applyToPointStringified(a[n-1][0],a[n-1][1])+" "+i.applyToPointStringified(o[0][0],o[0][1])+" "+i.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},ImagePreloader=(zsc=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="#FF0000",e.fillRect(0,0,1,1),t}(),function(){this.loadAssets=Dsc,this.setAssetsPath=Fsc,this.setPath=Esc,this.loaded=Isc,this.destroy=Hsc,this.getImage=Gsc,this._createImageData=Csc,this._imageLoaded=Asc,this.assetsPath="",this.path="",this.totalImages=0,this.loadedAssets=0,this.imagesLoadedCb=null,this.images=[]}),zsc;function Asc(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function Csc(t){var e=function(t,e,r){var i="";if(t.e)i=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),i=e+n}else i=r,i+=t.u?t.u:"",i+=t.p;return i}(t,this.assetsPath,this.path),r=createTag("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded.bind(this),!1),r.addEventListener("error",function(){i.img=zsc,this._imageLoaded()}.bind(this),!1),r.src=e;var i={img:r,assetData:t};return i}function Dsc(t,e){this.imagesLoadedCb=e;var r,i=t.length;for(r=0;r<i;r+=1)t[r].layers||(this.totalImages+=1,this.images.push(this._createImageData(t[r])))}function Esc(t){this.path=t||""}function Fsc(t){this.assetsPath=t||""}function Gsc(t){for(var e=0,r=this.images.length;e<r;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}}function Hsc(){this.imagesLoadedCb=null,this.images.length=0}function Isc(){return this.totalImages===this.loadedAssets}var featureSupport=(ctc={maskType:!0},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(ctc.maskType=!1),ctc),ctc,filtersFactory=(dtc={},dtc.createFilter=function(t){var e=createNS("filter");return e.setAttribute("id",t),e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e},dtc.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t},dtc),dtc,assetLoader={load:function(t,e,r){var i,n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="json",n.send(),n.onreadystatechange=function(){if(4==n.readyState)if(200==n.status)i=jtc(n),e(i);else try{i=jtc(n),e(i)}catch(t){r&&r(t)}}}};function jtc(t){return t.response&&"object"===_typeof(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):void 0}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function TextAnimatorDataProperty(t,e,r){var i={propType:!1},n=PropertyFactory.getProp,a=e.a;this.a={r:a.r?n(t,a.r,0,degToRads,r):i,rx:a.rx?n(t,a.rx,0,degToRads,r):i,ry:a.ry?n(t,a.ry,0,degToRads,r):i,sk:a.sk?n(t,a.sk,0,degToRads,r):i,sa:a.sa?n(t,a.sa,0,degToRads,r):i,s:a.s?n(t,a.s,1,.01,r):i,a:a.a?n(t,a.a,1,0,r):i,o:a.o?n(t,a.o,0,.01,r):i,p:a.p?n(t,a.p,1,0,r):i,sw:a.sw?n(t,a.sw,0,0,r):i,sc:a.sc?n(t,a.sc,1,0,r):i,fc:a.fc?n(t,a.fc,1,0,r):i,fh:a.fh?n(t,a.fh,0,0,r):i,fs:a.fs?n(t,a.fs,0,.01,r):i,fb:a.fb?n(t,a.fb,0,.01,r):i,t:a.t?n(t,a.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function LetterProps(t,e,r,i,n,a){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=n,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,n,a,o,s,l,p,c,u,h,d,f,m,g,v,y,x,b,_=this._moreOptions.alignment.v,w=this._animatorsData,S=this._textData,T=this.mHelper,P=this._renderType,k=this.renderedLetters.length,I=(this.data,t.l);if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var A,E=b.v;for(this._pathData.r&&(E=E.reverse()),o={tLength:0,segments:[]},a=E._length-1,n=v=0;n<a;n+=1)A=bez.buildBezierData(E.v[n],E.v[n+1],[E.o[n][0]-E.v[n][0],E.o[n][1]-E.v[n][1]],[E.i[n+1][0]-E.v[n+1][0],E.i[n+1][1]-E.v[n+1][1]]),o.tLength+=A.segmentLength,o.segments.push(A),v+=A.segmentLength;n=a,b.v.c&&(A=bez.buildBezierData(E.v[n],E.v[0],[E.o[n][0]-E.v[n][0],E.o[n][1]-E.v[n][1]],[E.i[0][0]-E.v[0][0],E.i[0][1]-E.v[0][1]]),o.tLength+=A.segmentLength,o.segments.push(A),v+=A.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,u=1,c=!(p=h=0),m=o.segments,s<0&&b.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),u=(f=m[h=m.length-1].points).length-1;s<0;)s+=f[u].partialLength,(u-=1)<0&&(u=(f=m[h-=1].points).length-1);d=(f=m[h].points)[u-1],g=(l=f[u]).partialLength}a=I.length,i=r=0;var C,O,M,D,F=1.2*t.finalSize*.714,R=!0;M=w.length;var N,L,B,j,$,V,H,z,G,Y,X,W,U,q=-1,J=s,Q=h,Z=u,K=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,it=0,nt=2===t.j?-.5:-1,at=0,ot=!0;for(n=0;n<a;n+=1)if(I[n].n){for(rt&&(rt+=it);at<n;)I[at].animatorJustifyOffset=rt,at+=1;ot=!(rt=0)}else{for(O=0;O<M;O+=1)(C=w[O].a).t.propType&&(ot&&2===t.j&&(it+=C.t.v*nt),(N=w[O].s.getMult(I[n].anIndexes[O],S.a[O].s.totalChars)).length?rt+=C.t.v*N[0]*nt:rt+=C.t.v*N*nt);ot=!1}for(rt&&(rt+=it);at<n;)I[at].animatorJustifyOffset=rt,at+=1}for(n=0;n<a;n+=1){if(T.reset(),$=1,I[n].n)r=0,i+=t.yOffset,i+=R?1:0,s=J,R=!1,0,this._hasMaskedPath&&(u=Z,d=(f=m[h=Q].points)[u-1],g=(l=f[u]).partialLength,p=0),U=Y=W=tt="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(K!==I[n].line){switch(t.j){case 1:s+=v-t.lineWidths[I[n].line];break;case 2:s+=(v-t.lineWidths[I[n].line])/2}K=I[n].line}q!==I[n].ind&&(I[q]&&(s+=I[q].extra),s+=I[n].an/2,q=I[n].ind),s+=_[0]*I[n].an/200;var st=0;for(O=0;O<M;O+=1)(C=w[O].a).p.propType&&((N=w[O].s.getMult(I[n].anIndexes[O],S.a[O].s.totalChars)).length?st+=C.p.v[0]*N[0]:st+=C.p.v[0]*N),C.a.propType&&((N=w[O].s.getMult(I[n].anIndexes[O],S.a[O].s.totalChars)).length?st+=C.a.v[0]*N[0]:st+=C.a.v[0]*N);for(c=!0;c;)s+st<=p+g||!f?(y=(s+st-p)/l.partialLength,B=d.point[0]+(l.point[0]-d.point[0])*y,j=d.point[1]+(l.point[1]-d.point[1])*y,T.translate(-_[0]*I[n].an/200,-_[1]*F/100),c=!1):f&&(p+=l.partialLength,(u+=1)>=f.length&&(u=0,f=m[h+=1]?m[h].points:b.v.c?m[h=u=0].points:(p-=l.partialLength,null)),f&&(d=l,g=(l=f[u]).partialLength));L=I[n].an/2-I[n].add,T.translate(-L,0,0)}else L=I[n].an/2-I[n].add,T.translate(-L,0,0),T.translate(-_[0]*I[n].an/200,-_[1]*F/100,0);for(I[n].l/2,O=0;O<M;O+=1)(C=w[O].a).t.propType&&(N=w[O].s.getMult(I[n].anIndexes[O],S.a[O].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?N.length?s+=C.t.v*N[0]:s+=C.t.v*N:N.length?r+=C.t.v*N[0]:r+=C.t.v*N));for(I[n].l/2,t.strokeWidthAnim&&(H=t.sw||0),t.strokeColorAnim&&(V=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(z=[t.fc[0],t.fc[1],t.fc[2]]),O=0;O<M;O+=1)(C=w[O].a).a.propType&&((N=w[O].s.getMult(I[n].anIndexes[O],S.a[O].s.totalChars)).length?T.translate(-C.a.v[0]*N[0],-C.a.v[1]*N[1],C.a.v[2]*N[2]):T.translate(-C.a.v[0]*N,-C.a.v[1]*N,C.a.v[2]*N));for(O=0;O<M;O+=1)(C=w[O].a).s.propType&&((N=w[O].s.getMult(I[n].anIndexes[O],S.a[O].s.totalChars)).length?T.scale(1+(C.s.v[0]-1)*N[0],1+(C.s.v[1]-1)*N[1],1):T.scale(1+(C.s.v[0]-1)*N,1+(C.s.v[1]-1)*N,1));for(O=0;O<M;O+=1){if(C=w[O].a,N=w[O].s.getMult(I[n].anIndexes[O],S.a[O].s.totalChars),C.sk.propType&&(N.length?T.skewFromAxis(-C.sk.v*N[0],C.sa.v*N[1]):T.skewFromAxis(-C.sk.v*N,C.sa.v*N)),C.r.propType&&(N.length?T.rotateZ(-C.r.v*N[2]):T.rotateZ(-C.r.v*N)),C.ry.propType&&(N.length?T.rotateY(C.ry.v*N[1]):T.rotateY(C.ry.v*N)),C.rx.propType&&(N.length?T.rotateX(C.rx.v*N[0]):T.rotateX(C.rx.v*N)),C.o.propType&&(N.length?$+=(C.o.v*N[0]-$)*N[0]:$+=(C.o.v*N-$)*N),t.strokeWidthAnim&&C.sw.propType&&(N.length?H+=C.sw.v*N[0]:H+=C.sw.v*N),t.strokeColorAnim&&C.sc.propType)for(G=0;G<3;G+=1)N.length?V[G]=V[G]+(C.sc.v[G]-V[G])*N[0]:V[G]=V[G]+(C.sc.v[G]-V[G])*N;if(t.fillColorAnim&&t.fc){if(C.fc.propType)for(G=0;G<3;G+=1)N.length?z[G]=z[G]+(C.fc.v[G]-z[G])*N[0]:z[G]=z[G]+(C.fc.v[G]-z[G])*N;C.fh.propType&&(z=N.length?addHueToRGB(z,C.fh.v*N[0]):addHueToRGB(z,C.fh.v*N)),C.fs.propType&&(z=N.length?addSaturationToRGB(z,C.fs.v*N[0]):addSaturationToRGB(z,C.fs.v*N)),C.fb.propType&&(z=N.length?addBrightnessToRGB(z,C.fb.v*N[0]):addBrightnessToRGB(z,C.fb.v*N))}}for(O=0;O<M;O+=1)(C=w[O].a).p.propType&&(N=w[O].s.getMult(I[n].anIndexes[O],S.a[O].s.totalChars),this._hasMaskedPath?N.length?T.translate(0,C.p.v[1]*N[0],-C.p.v[2]*N[1]):T.translate(0,C.p.v[1]*N,-C.p.v[2]*N):N.length?T.translate(C.p.v[0]*N[0],C.p.v[1]*N[1],-C.p.v[2]*N[2]):T.translate(C.p.v[0]*N,C.p.v[1]*N,-C.p.v[2]*N));if(t.strokeWidthAnim&&(Y=H<0?0:H),t.strokeColorAnim&&(X="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),t.fillColorAnim&&t.fc&&(W="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),this._hasMaskedPath){if(T.translate(0,-t.ls),T.translate(0,_[1]*F/100+i,0),S.p.p){x=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var lt=180*Math.atan(x)/Math.PI;l.point[0]<d.point[0]&&(lt+=180),T.rotate(-lt*Math.PI/180)}T.translate(B,j,0),s-=_[0]*I[n].an/200,I[n+1]&&q!==I[n+1].ind&&(s+=I[n].an/2,s+=t.tr/1e3*t.finalSize)}else{switch(T.translate(r,i,0),t.ps&&T.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:T.translate(I[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[I[n].line]),0,0);break;case 2:T.translate(I[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[I[n].line])/2,0,0)}T.translate(0,-t.ls),T.translate(L,0,0),T.translate(_[0]*I[n].an/200,_[1]*F/100,0),r+=I[n].l+t.tr/1e3*t.finalSize}"html"===P?tt=T.toCSS():"svg"===P?tt=T.to2dCSS():et=[T.props[0],T.props[1],T.props[2],T.props[3],T.props[4],T.props[5],T.props[6],T.props[7],T.props[8],T.props[9],T.props[10],T.props[11],T.props[12],T.props[13],T.props[14],T.props[15]],U=$}k<=n?(D=new LetterProps(U,Y,X,W,tt,et),this.renderedLetters.push(D),k+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[n],this.lettersChangedFlag=D.update(U,Y,X,W,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),LetterProps.prototype.update=function(t,e,r,i,n,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1;var o=this._mdf.p=!1;return this.o!==t&&(this.o=t,o=this._mdf.o=!0),this.sw!==e&&(this.sw=e,o=this._mdf.sw=!0),this.sc!==r&&(this.sc=r,o=this._mdf.sc=!0),this.fc!==i&&(this.fc=i,o=this._mdf.fc=!0),this.m!==n&&(this.m=n,o=this._mdf.m=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,o=this._mdf.p=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=1<this.data.d.k.length,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;var i,n=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)a=r!==this.keysIndex?this.effectsSequence[i](a,a.t):this.effectsSequence[i](this.currentData,a.t);e!==a&&this.setCurrentData(a),this.pv=this.v=this.currentData,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,i=t.length;r<=i-1&&(t[r].s,!(r===i-1||t[r+1].t>e));)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=FontManager.getCombinedCharacterCodes(),r=[],i=0,n=t.length;i<n;)-1!==e.indexOf(t.charCodeAt(i))?r[r.length-1]+=t.charAt(i):r.push(t.charAt(i)),i+=1;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,n,a,o,s,l=this.elem.globalData.fontManager,p=this.data,c=[],u=0,h=p.m.g,d=0,f=0,m=0,g=[],v=0,y=0,x=l.getFontByName(t.f),b=0,_=x.fStyle?x.fStyle.split(" "):[],w="normal",S="normal";for(r=_.length,e=0;e<r;e+=1)switch(_[e].toLowerCase()){case"italic":S="italic";break;case"bold":w="700";break;case"black":w="900";break;case"medium":w="500";break;case"regular":case"normal":w="400";break;case"light":case"thin":w="200"}t.fWeight=x.fWeight||w,t.fStyle=S,r=t.t.length,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),t.finalLineHeight=t.lh;var T,P=t.tr/1e3*t.finalSize;if(t.sz)for(var k,I,A=!0,E=t.sz[0],C=t.sz[1];A;){v=k=0,r=(I=this.buildFinalText(t.t)).length,P=t.tr/1e3*t.finalSize;var O=-1;for(e=0;e<r;e+=1)T=I[e].charCodeAt(0),i=!1," "===I[e]?O=e:13!==T&&3!==T||(i=!(v=0),k+=t.finalLineHeight||1.2*t.finalSize),E<v+(b=l.chars?(s=l.getCharData(I[e],x.fStyle,x.fFamily),i?0:s.w*t.finalSize/100):l.measureText(I[e],t.f,t.finalSize))&&" "!==I[e]?(-1===O?r+=1:e=O,k+=t.finalLineHeight||1.2*t.finalSize,I.splice(e,O===e?1:0,"\r"),O=-1,v=0):(v+=b,v+=P);k+=x.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&C<k?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=I,r=t.finalText.length,A=!1)}v=-P;var M,D=b=0;for(e=0;e<r;e+=1)if(i=!1,T=(M=t.finalText[e]).charCodeAt(0)," "===M?n=" ":13===T||3===T?(D=0,g.push(v),y=y<v?v:y,v=-2*P,i=!(n=""),m+=1):n=t.finalText[e],b=l.chars?(s=l.getCharData(M,x.fStyle,l.getFontByName(t.f).fFamily),i?0:s.w*t.finalSize/100):l.measureText(n,t.f,t.finalSize)," "===M?D+=b+P:(v+=b+P+D,D=0),c.push({l:b,an:b,add:d,n:i,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==h){if(d+=b,""===n||" "===n||e===r-1){for(""!==n&&" "!==n||(d-=b);f<=e;)c[f].an=d,c[f].ind=u,c[f].extra=b,f+=1;u+=1,d=0}}else if(3==h){if(d+=b,""===n||e===r-1){for(""===n&&(d-=b);f<=e;)c[f].an=d,c[f].ind=u,c[f].extra=b,f+=1;d=0,u+=1}}else c[u].ind=u,c[u].extra=0,u+=1;if(t.l=c,y=y<v?v:y,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var F,R,N=p.a;o=N.length;var L,B,j=[];for(a=0;a<o;a+=1){for((F=N[a]).a.sc&&(t.strokeColorAnim=!0),F.a.sw&&(t.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(t.fillColorAnim=!0),B=0,L=F.s.b,e=0;e<r;e+=1)(R=c[e]).anIndexes[a]=B,(1==L&&""!==R.val||2==L&&""!==R.val&&" "!==R.val||3==L&&(R.n||" "==R.val||e==r-1)||4==L&&(R.n||e==r-1))&&(1===F.s.rn&&j.push(B),B+=1);p.a[a].s.totalChars=B;var $,V=-1;if(1===F.s.rn)for(e=0;e<r;e+=1)V!=(R=c[e]).anIndexes[a]&&(V=R.anIndexes[a],$=j.splice(Math.floor(Math.random()*j.length),1)[0]),R.anIndexes[a]=$}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=x.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(xwc=Math.max,ywc=Math.min,zwc=Math.floor,Awc.prototype={getMult:function(t){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var e=BezierFactory.getBezierEasing(this.ne.v/100,0,1-this.xe.v/100,1).get,r=0,i=this.finalS,n=this.finalE,a=this.data.sh;if(2==a)r=e(r=n===i?n<=t?1:0:xwc(0,ywc(.5/(n-i)+(t-i)/(n-i),1)));else if(3==a)r=e(r=n===i?n<=t?0:1:1-xwc(0,ywc(.5/(n-i)+(t-i)/(n-i),1)));else if(4==a)n===i?r=0:(r=xwc(0,ywc(.5/(n-i)+(t-i)/(n-i),1)))<.5?r*=2:r=1-2*(r-.5),r=e(r);else if(5==a){if(n===i)r=0;else{var o=n-i,s=-o/2+(t=ywc(xwc(0,t+.5-i),n-i)),l=o/2;r=Math.sqrt(1-s*s/(l*l))}r=e(r)}else r=6==a?e(r=n===i?0:(t=ywc(xwc(0,t+.5-i),n-i),(1+Math.cos(Math.PI+2*Math.PI*t/(n-i)))/2)):(t>=zwc(i)&&(r=t-i<0?1-(i-t):xwc(0,ywc(n-t,1))),e(r));return r*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,i=this.s.v/e+r,n=this.e.v/e+r;if(n<i){var a=i;i=n,n=a}this.finalS=i,this.finalE=n}},extendPrototype([DynamicPropertyContainer],Awc),{getTextSelectorProp:function(t,e,r){return new Awc(t,e,r)}}),xwc,ywc,zwc;function Awc(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}var pool_factory=function(t,e,r,i){var n=0,a=t,o=createSizedArray(a);function s(){return n?o[n-=1]:e()}return{newElement:s,release:function(t){n===a&&(o=pooling.double(o),a*=2),r&&r(t),o[n]=t,n+=1}}},pooling={double:function(t){return t.concat(createSizedArray(t.length))}},point_pool=pool_factory(8,function(){return createTypedArray("float32",2)}),shape_pool=(qxc=pool_factory(4,function(){return new ShapePath},function(t){var e,r=t._length;for(e=0;e<r;e+=1)point_pool.release(t.v[e]),point_pool.release(t.i[e]),point_pool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}),qxc.clone=function(t){var e,r=qxc.newElement(),i=void 0===t._length?t.v.length:t._length;for(r.setLength(i),r.c=t.c,e=0;e<i;e+=1)r.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r},qxc),qxc,shapeCollection_pool=(zxc={newShapeCollection:function(){var t;t=Axc?Cxc[Axc-=1]:new ShapeCollection;return t},release:function(t){var e,r=t._length;for(e=0;e<r;e+=1)shape_pool.release(t.shapes[e]);t._length=0,Axc===Bxc&&(Cxc=pooling.double(Cxc),Bxc*=2);Cxc[Axc]=t,Axc+=1}},Axc=0,Bxc=4,Cxc=createSizedArray(Bxc),zxc),zxc,Axc,Bxc,Cxc,segments_length_pool=pool_factory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezier_length_pool.release(t.lengths[e]);t.lengths.length=0}),bezier_length_pool=pool_factory(8,function(){return{addedLength:0,percents:createTypedArray("float32",defaultCurveSegments),lengths:createTypedArray("float32",defaultCurveSegments)}});function BaseRenderer(){}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=e.title,this.svgElement.appendChild(i),r+=n}if(e&&e.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=e.description,this.svgElement.appendChild(a),r+=" "+o}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||!1!==e.hideOnTransparent,viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||""},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",className:e&&e.className||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!e||!1!==e.hideOnTransparent},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,n=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,s,l,p,c,u,h,d=this.masksProperties,f=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(i=0;i<a;i++)if(("a"!==d[i].mode&&"n"!==d[i].mode||d[i].inv||100!==d[i].o.k)&&(y=v="mask"),"s"!=d[i].mode&&"i"!=d[i].mode||0!==f?p=null:((p=createNS("rect")).setAttribute("fill","#ffffff"),p.setAttribute("width",this.element.comp.data.w||0),p.setAttribute("height",this.element.comp.data.h||0),m.push(p)),o=createNS("path"),"n"!=d[i].mode){var x;if(f+=1,o.setAttribute("fill","s"===d[i].mode?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero"),0!==d[i].x.k?(y=v="mask",h=PropertyFactory.getProp(this.element,d[i].x,0,null,this.element),x=createElementID(),(c=createNS("filter")).setAttribute("id",x),(u=createNS("feMorphology")).setAttribute("operator","dilate"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),c.appendChild(u),n.appendChild(c),o.setAttribute("stroke","s"===d[i].mode?"#000000":"#ffffff")):h=u=null,this.storedData[i]={elem:o,x:h,expan:u,lastPath:"",lastOperator:"",filterId:x,lastRadius:0},"i"==d[i].mode){l=m.length;var b=createNS("g");for(s=0;s<l;s+=1)b.appendChild(m[s]);var _=createNS("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",g+"_"+f),_.appendChild(o),n.appendChild(_),b.setAttribute("mask","url("+locationHref+"#"+g+"_"+f+")"),m.length=0,m.push(b)}else m.push(o);d[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,d[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[i],3),invRect:p},this.viewData[i].prop.k||this.drawPath(d[i],this.viewData[i].prop.v,this.viewData[i])}else this.viewData[i]={op:PropertyFactory.getProp(this.element,d[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[i],3),elem:o,lastPath:""},n.appendChild(o);for(this.maskElement=createNS(v),a=m.length,i=0;i<a;i+=1)this.maskElement.appendChild(m[i]);0<f&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+locationHref+"#"+g+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,n=t.length;i<n;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}BaseRenderer.prototype.checkLayers=function(t){var e,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;0<=e;e--)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t)}return this.createNull(t)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,r,i=t.length,n=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<n;){if(this.layers[r].id==t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var i=this.elements,n=this.layers,a=0,o=n.length;a<o;)n[a].ind==e&&(i[a]&&!0!==i[a]?(r.push(i[a]),i[a].setAsParent(),void 0!==n[a].parent?this.buildElementParenting(t,n[a].parent,r):t.setHierarchy(r)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},extendPrototype([BaseRenderer],SVGRenderer),SVGRenderer.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRenderer.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRenderer.prototype.createText=function(t){return new SVGTextElement(t,this.globalData,this)},SVGRenderer.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},SVGRenderer.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRenderer.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)"),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+n+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);e[t]=r,expressionsPlugin&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?r.setMatte(e[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(r)))}},SVGRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},SVGRenderer.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;0<=e;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRenderer.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRenderer.prototype.hide=function(){this.layerElement.style.display="none"},SVGRenderer.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseRenderer],CanvasRenderer),CanvasRenderer.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRenderer.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRenderer.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},CanvasRenderer.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRenderer.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRenderer.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRenderer.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRenderer.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRenderer.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var r,i=this.contextData.saved[this.contextData.cArrPos];for(r=0;r<16;r+=1)i[r]=e[r];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRenderer.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,r=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props;for(e=0;e<16;e+=1)i[e]=r[e];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRenderer.prototype.configAnimation=function(t){this.animationItem.wrapper?(this.animationItem.container=createTag("canvas"),this.animationItem.container.style.width="100%",this.animationItem.container.style.height="100%",this.animationItem.container.style.transformOrigin=this.animationItem.container.style.mozTransformOrigin=this.animationItem.container.style.webkitTransformOrigin=this.animationItem.container.style["-webkit-transform"]="0px 0px 0px",this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className)):this.canvasContext=this.renderConfig.context,this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,(this.globalData.renderer=this).globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRenderer.prototype.updateContainerSize=function(){var t,e,r,i;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var n=this.renderConfig.preserveAspectRatio.split(" "),a=n[1]||"meet",o=n[0]||"xMidYMid",s=o.substr(0,4),l=o.substr(4);(r=t/e)<(i=this.transformCanvas.w/this.transformCanvas.h)&&"meet"===a||i<r&&"slice"===a?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===s&&(i<r&&"meet"===a||r<i&&"slice"===a)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===s&&(i<r&&"meet"===a||r<i&&"slice"===a)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(r<i&&"meet"===a||i<r&&"slice"===a)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(r<i&&"meet"===a||i<r&&"slice"===a)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"==this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRenderer.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&(this.animationItem.wrapper.innerHTML=""),t=(this.layers?this.layers.length:0)-1;0<=t;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<i;r++)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;0<=r;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);(e[t]=r).initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},HybridRenderer.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var n,a,o=0;o<e;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(a=this.elements[o],n=(this.layers[o].ddd?this.getThreeDContainerByPos(o):a.getBaseElement())||n),o+=1;n?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,n):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRenderer.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRenderer.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextElement(t,this.globalData,this)},HybridRenderer.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRenderer.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},HybridRenderer.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRenderer.prototype.createNull=SVGRenderer.prototype.createNull,HybridRenderer.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t,e){var r=createTag("div");styleDiv(r);var i=createTag("div");styleDiv(i),"3d"===e&&(r.style.width=this.globalData.compSize.w+"px",r.style.height=this.globalData.compSize.h+"px",r.style.transformOrigin=r.style.mozTransformOrigin=r.style.webkitTransformOrigin="50% 50%",i.style.transform=i.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),r.appendChild(i);var n={container:i,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(n),n},HybridRenderer.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t<r;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?"3d"!==i&&(i="3d",e=this.createThreeDContainer(t,"3d")):"2d"!==i&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t);for(t=(r=this.threeDElements.length)-1;0<=t;t--)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;r<i;){if(e<=this.threeDElements[r].endPos){for(var n,a=this.threeDElements[r].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(n=this.elements[a].getBaseElement()),a+=1;n?this.threeDElements[r].container.insertBefore(t,n):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRenderer.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper;e.style.width=t.w+"px",e.style.height=t.h+"px",styleDiv(this.resizerElem=e),e.style.transformStyle=e.style.webkitTransformStyle=e.style.mozTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),e.style.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var n=createNS("defs");i.appendChild(n),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=n,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRenderer.prototype.updateContainerSize=function(){var t,e,r,i,n=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight;i=n/a<this.globalData.compSize.w/this.globalData.compSize.h?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,r=0,(a-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,0),this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)"},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1)this.threeDElements[t].perspectiveElem.style.perspective=this.threeDElements[t].perspectiveElem.style.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px"}},HybridRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length,i=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e],i,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e++)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&(this.viewData[e].invRect.setAttribute("x",-r.props[12]),this.viewData[e].invRect.setAttribute("y",-r.props[13])),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,n,a=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,i=1;i<n;i+=1)a+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&1<n&&(a+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==a){var o="";r.elem&&(e.c&&(o=t.inv?this.solidPath+a:a),r.elem.setAttribute("d",o)),r.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):r=!1;var n,a,o=e.length;for(n=0;n<o;n+=1)a=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,a,o,s=[];for(o=4*e.g.p,a=0;a<o;a+=4)n=createNS("stop"),i.appendChild(n),s.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+locationHref+"#"+r+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,a=createNS("mask"),o=createNS("path");a.appendChild(o);var s=createElementID(),l=createElementID();a.setAttribute("id",l);var p=createNS(1===t.t?"linearGradient":"radialGradient");p.setAttribute("id",s),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(i=4*t.g.p;i<n;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(r),c.push(r);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+locationHref+"#"+s+")"),this.of=p,this.ms=a,this.ost=c,this.maskId=l,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var SVGElementsRenderer=(qDc=new Matrix,rDc=new Matrix,{createRenderFunction:function(t){switch(t.ty,t.ty){case"fl":return wDc;case"gf":return yDc;case"gs":return xDc;case"st":return zDc;case"sh":case"el":case"rc":case"sr":return vDc;case"tr":return uDc}}}),qDc,rDc;function uDc(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function vDc(t,e,r){var i,n,a,o,s,l,p,c,u,h,d,f=e.styles.length,m=e.lvl;for(l=0;l<f;l+=1){if(o=e.sh._mdf||r,e.styles[l].lvl<m){for(c=rDc.reset(),h=m-e.styles[l].lvl,d=e.transformers.length-1;!o&&0<h;)o=e.transformers[d].mProps._mdf||o,h--,d--;if(o)for(h=m-e.styles[l].lvl,d=e.transformers.length-1;0<h;)u=e.transformers[d].mProps.v.props,c.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),h--,d--}else c=qDc;if(n=(p=e.sh.paths)._length,o){for(a="",i=0;i<n;i+=1)(s=p.shapes[i])&&s._length&&(a+=buildShapeString(s,s._length,s.c,c));e.caches[l]=a}else a=e.caches[l];e.styles[l].d+=!0===t.hd?"":a,e.styles[l]._mdf=o||e.styles[l]._mdf}}function wDc(t,e,r){var i=e.style;(e.c._mdf||r)&&i.pElem.setAttribute("fill","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("fill-opacity",e.o.v)}function xDc(t,e,r){yDc(t,e,r),zDc(t,e,r)}function yDc(t,e,r){var i,n,a,o,s,l=e.gf,p=e.g._hasOpacity,c=e.s.v,u=e.e.v;if(e.o._mdf||r){var h="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(h,e.o.v)}if(e.s._mdf||r){var d=1===t.t?"x1":"cx",f="x1"==d?"y1":"cy";l.setAttribute(d,c[0]),l.setAttribute(f,c[1]),p&&!e.g._collapsable&&(e.of.setAttribute(d,c[0]),e.of.setAttribute(f,c[1]))}if(e.g._cmdf||r){i=e.cst;var m=e.g.c;for(a=i.length,n=0;n<a;n+=1)(o=i[n]).setAttribute("offset",m[4*n]+"%"),o.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(p&&(e.g._omdf||r)){var g=e.g.o;for(a=(i=e.g._collapsable?e.cst:e.ost).length,n=0;n<a;n+=1)o=i[n],e.g._collapsable||o.setAttribute("offset",g[2*n]+"%"),o.setAttribute("stop-opacity",g[2*n+1])}if(1===t.t)(e.e._mdf||r)&&(l.setAttribute("x2",u[0]),l.setAttribute("y2",u[1]),p&&!e.g._collapsable&&(e.of.setAttribute("x2",u[0]),e.of.setAttribute("y2",u[1])));else if((e.s._mdf||e.e._mdf||r)&&(s=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)),l.setAttribute("r",s),p&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.e._mdf||e.h._mdf||e.a._mdf||r){s||(s=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)));var v=Math.atan2(u[1]-c[1],u[0]-c[0]),y=s*(1<=e.h.v?.99:e.h.v<=-1?-.99:e.h.v),x=Math.cos(v+e.a.v)*y+c[0],b=Math.sin(v+e.a.v)*y+c[1];l.setAttribute("fx",x),l.setAttribute("fy",b),p&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",b))}}function zDc(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||r)&&n.dashStr&&(i.pElem.setAttribute("stroke-dasharray",n.dashStr),i.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||r)&&i.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n=4;"rc"==e.ty?n=5:"el"==e.ty?n=6:"sr"==e.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,n,t);var a,o,s=r.length;for(a=0;a<s;a+=1)r[a].closed||(o={transforms:i.addTransformSequence(r[a].transforms),trNodes:[]},this.styledShapes.push(o),r[a].elements.push(o))}function BaseElement(){}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ISolidElement(t,e,r){this.initElement(t,e,r)}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGTextElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function SVGTintFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");if(r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),r.setAttribute("result","f1"),t.appendChild(r),(r=createNS("feColorMatrix")).setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result","f2"),t.appendChild(r),this.matrixFilter=r,100!==e.effectElements[2].p.v||e.effectElements[2].p.k){var i,n=createNS("feMerge");t.appendChild(n),(i=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),n.appendChild(i),(i=createNS("feMergeNode")).setAttribute("in","f2"),n.appendChild(i)}}function SVGFillFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(r),this.matrixFilter=r}function SVGStrokeEffect(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function SVGTritoneFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),r.setAttribute("result","f1"),t.appendChild(r);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),this.matrixFilter=i;var n=createNS("feFuncR");n.setAttribute("type","table"),i.appendChild(n),this.feFuncR=n;var a=createNS("feFuncG");a.setAttribute("type","table"),i.appendChild(a),this.feFuncG=a;var o=createNS("feFuncB");o.setAttribute("type","table"),i.appendChild(o),this.feFuncB=o}function SVGProLevelsFilter(t,e){this.filterManager=e;var r=this.filterManager.effectElements,i=createNS("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),i=createNS("feComponentTransfer")),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","400%"),t.setAttribute("height","400%"),this.filterManager=e;var r=createNS("feGaussianBlur");r.setAttribute("in","SourceAlpha"),r.setAttribute("result","drop_shadow_1"),r.setAttribute("stdDeviation","0"),this.feGaussianBlur=r,t.appendChild(r);var i=createNS("feOffset");i.setAttribute("dx","25"),i.setAttribute("dy","0"),i.setAttribute("in","drop_shadow_1"),i.setAttribute("result","drop_shadow_2"),this.feOffset=i,t.appendChild(i);var n=createNS("feFlood");n.setAttribute("flood-color","#00ff00"),n.setAttribute("flood-opacity","1"),n.setAttribute("result","drop_shadow_3"),this.feFlood=n,t.appendChild(n);var a=createNS("feComposite");a.setAttribute("in","drop_shadow_3"),a.setAttribute("in2","drop_shadow_2"),a.setAttribute("operator","in"),a.setAttribute("result","drop_shadow_4"),t.appendChild(a);var o,s=createNS("feMerge");t.appendChild(s),o=createNS("feMergeNode"),s.appendChild(o),(o=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=o,this.feMerge=s,this.originalNodeAdded=!1,s.appendChild(o)}ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,i="_";for(e=0;e<r;e+=1)i+=t[e].transform.key+"_";var n=this.sequences[i];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var r,i=0,n=t.transforms.length,a=e;i<n&&!e;){if(t.transforms[i].transform.mProps._mdf){a=!0;break}i+=1}if(a)for(t.finalTransform.reset(),i=n-1;0<=i;i-=1)r=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=a},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return"_"+this.transform_key_count++}},CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,r,i=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var n=createNS("mask");n.setAttribute("id",this.layerId),n.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),n.appendChild(this.layerElement),i=n,this.globalData.defs.appendChild(n),featureSupport.maskType||1!=this.data.td||(n.setAttribute("mask-type","luminance"),t=createElementID(),e=filtersFactory.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(this.layerElement),i=r,n.appendChild(r),r.setAttribute("filter","url("+locationHref+"#"+t+")"))}else if(2==this.data.td){var a=createNS("mask");a.setAttribute("id",this.layerId),a.setAttribute("mask-type","alpha");var o=createNS("g");a.appendChild(o),t=createElementID(),e=filtersFactory.createFilter(t);var s=createNS("feComponentTransfer");s.setAttribute("in","SourceGraphic"),e.appendChild(s);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),s.appendChild(l),this.globalData.defs.appendChild(e);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),o.setAttribute("filter","url("+locationHref+"#"+t+")"),o.appendChild(p),o.appendChild(this.layerElement),i=o,featureSupport.maskType||(a.setAttribute("mask-type","luminance"),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),o.appendChild(p),r.appendChild(this.layerElement),i=r,o.appendChild(r)),this.globalData.defs.appendChild(a)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var c=createNS("clipPath"),u=createNS("path");u.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var h=createElementID();if(c.setAttribute("id",h),c.appendChild(u),this.globalData.defs.appendChild(c),this.checkMasks()){var d=createNS("g");d.setAttribute("clip-path","url("+locationHref+"#"+h+")"),d.appendChild(this.layerElement),this.transformedElement=d,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+h+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+t+")")}},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;0<=t;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,i,n=e.length,a="";for(r=0;r<n;r+=1)i=e[r].ks.k,a+=buildShapeString(i,i.i.length,!0,t);return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,i,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(i,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;0<=r;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextElement),SVGTextElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,i=[],n="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(n),n=""):n+=t[e],e+=1;return i.push(n),i},SVGTextElement.prototype.buildNewText=function(){var t,e,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var n=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("arial-label",r.t);var o,s=r.l||[],l=!!this.globalData.fontManager.chars;e=s.length;var p,c=this.mHelper,u="",h=this.data.singleShape,d=0,f=0,m=!0,g=r.tr/1e3*r.finalSize;if(!h||l||r.sz){var v,y,x=this.textSpans.length;for(t=0;t<e;t+=1)l&&h&&0!==t||(o=t<x?this.textSpans[t]:createNS(l?"path":"text"),x<=t&&(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=o,this.layerElement.appendChild(o)),o.style.display="inherit"),c.reset(),c.scale(r.finalSize/100,r.finalSize/100),h&&(s[t].n&&(d=-g,f+=r.yOffset,f+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(r,c,s[t].line,d,f),d+=s[t].l||0,d+=g),l?(p=(v=(y=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily))&&y.data||{}).shapes?v.shapes[0].it:[],h?u+=this.createPathShape(c,p):o.setAttribute("d",this.createPathShape(c,p))):(h&&o.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),o.textContent=s[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));h&&o&&o.setAttribute("d",u)}else{var b=this.textContainer,_="start";switch(r.j){case 1:_="end";break;case 2:_="middle"}b.setAttribute("text-anchor",_),b.setAttribute("letter-spacing",g);var w=this.buildTextContents(r.finalText);for(e=w.length,f=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t]||createNS("tspan")).textContent=w[t],o.setAttribute("x",0),o.setAttribute("y",f),o.style.display="inherit",b.appendChild(o),this.textSpans[t]=o,f+=r.finalLineHeight;this.layerElement.appendChild(b)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0},SVGTextElement.prototype.sourceRectAtTime=function(t){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextElement.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,i,n=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(r=n[t],i=this.textSpans[t],r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.fc))}},extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,r,i,n=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(r=0;r<a;r+=1){for(i=this.stylesList[r],s=!1,t=o.length=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(o.push(e),s=e._isAnimated||s);1<o.length&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),n=i.pElem;if("st"===t.ty)r=new SVGStrokeStyleData(this,t,i);else if("fl"===t.ty)r=new SVGFillStyleData(this,t,i);else if("gf"===t.ty||"gs"===t.ty){r=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+locationHref+"#"+r.maskId+")"))}return"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),n.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7);var n=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,n,a,o){var s,l,p,c,u,h,d=[].concat(a),f=t.length-1,m=[],g=[];for(s=f;0<=s;s-=1){if((h=this.searchProcessedElement(t[s]))?e[s]=r[h-1]:t[s]._render=o,"fl"==t[s].ty||"st"==t[s].ty||"gf"==t[s].ty||"gs"==t[s].ty)h?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],n),t[s]._render&&i.appendChild(e[s].style.pElem),m.push(e[s].style);else if("gr"==t[s].ty){if(h)for(p=e[s].it.length,l=0;l<p;l+=1)e[s].prevViewData[l]=e[s].it[l];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,n+1,d,o),t[s]._render&&i.appendChild(e[s].gr)}else"tr"==t[s].ty?(h||(e[s]=this.createTransformElement(t[s],i)),c=e[s].transform,d.push(c)):"sh"==t[s].ty||"rc"==t[s].ty||"el"==t[s].ty||"sr"==t[s].ty?(h||(e[s]=this.createShapeElement(t[s],d,n)),this.setElementStyles(e[s])):"tm"==t[s].ty||"rd"==t[s].ty||"ms"==t[s].ty?(h?(u=e[s]).closed=!1:((u=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=u,this.shapeModifiers.push(u)),g.push(u)):"rp"==t[s].ty&&(h?(u=e[s]).closed=!0:(u=ShapeModifiers.getModifier(t[s].ty),(e[s]=u).init(this,t,s,e),this.shapeModifiers.push(u),o=!1),g.push(u));this.addProcessedElement(t[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,r=0):i=(r=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var s=createNS("g");for(s.setAttribute("mask","url("+locationHref+"#"+o+")");n[0];)s.appendChild(n[0]);this.elem.layerElement.appendChild(s),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,r,i,n=this.paths.length;for(e=0;e<n;e+=1)if(-1!==this.paths[e].m&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,s=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,l=i.getTotalLength();a="0 0 0 "+l*o+" ";var p,c=l*(s-o),u=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,h=Math.floor(c/u);for(p=0;p<h;p+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";a+="0 "+10*l+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;i.setAttribute("stroke-dasharray",a)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bm_floor(255*d[0])+","+bm_floor(255*d[1])+","+bm_floor(255*d[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+e[0],a=i[1]+" "+r[1]+" "+e[1],o=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,n){for(var a,o,s=0,l=Math.min(t,e),p=Math.max(t,e),c=Array.call(null,{length:256}),u=0,h=n-i,d=e-t;s<=256;)o=(a=s/256)<=l?d<0?n:i:p<=a?d<0?i:n:i+h*Math.pow((a-t)/d,1/r),c[u++]=o,s+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,(this.elem=r).matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGEffects(t){var e,r,i=t.data.ef?t.data.ef.length:0,n=createElementID(),a=filtersFactory.createFilter(n),o=0;for(this.filters=[],e=0;e<i;e+=1)r=null,20===t.data.ef[e].ty?(o+=1,r=new SVGTintFilter(a,t.effectsManager.effectElements[e])):21===t.data.ef[e].ty?(o+=1,r=new SVGFillFilter(a,t.effectsManager.effectElements[e])):22===t.data.ef[e].ty?r=new SVGStrokeEffect(t,t.effectsManager.effectElements[e]):23===t.data.ef[e].ty?(o+=1,r=new SVGTritoneFilter(a,t.effectsManager.effectElements[e])):24===t.data.ef[e].ty?(o+=1,r=new SVGProLevelsFilter(a,t.effectsManager.effectElements[e])):25===t.data.ef[e].ty?(o+=1,r=new SVGDropShadowEffect(a,t.effectsManager.effectElements[e])):28===t.data.ef[e].ty&&(r=new SVGMatte3Effect(a,t.effectsManager.effectElements[e],t)),r&&this.filters.push(r);o&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+locationHref+"#"+n+")")),this.filters.length&&t.addRenderableComponent(this)}function CVContextData(){this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;var t;for(this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function CVBaseElement(){}function CVImageElement(t,e,r){this.failed=!1,this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getImage(this.assetData),this.initElement(t,e,r)}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,n=!1;for(r=0;r<i;r++)"n"!==this.masksProperties[r].mode&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);(this.hasMasks=n)&&this.element.addRenderableComponent(this)}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CVTextElement(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,r)}function CVEffects(){}function HBaseElement(t,e,r){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,a=t.ks.or.k.length;for(n=0;n<a;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HEffects(){}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,n=r.children,a=0,o=n.length;a<o&&n[a]!==t.layerElement;)a+=1;a<=o-2&&(i=n[a+1]);var s=createNS("use");s.setAttribute("href","#"+e),i?r.insertBefore(s,i):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(i);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(e,r),a.appendChild(e.layerElement),n.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+r),i.appendChild(o),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){this.hidden||this.data.hd||(this.renderTransform(),this.renderRenderable(),this.setBlendMode(),this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,i=t.getContext("2d"),n=this.img.width,a=this.img.height,o=n/a,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s<o&&"xMidYMid slice"===l||o<s&&"xMidYMid slice"!==l?e=(r=a)*s:r=(e=n)/s,i.drawImage(this.img,(n-e)/2,(a-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(t){this.failed||this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([CanvasRenderer,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t;for(t=this.layers.length-1;0<=t;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;0<=t;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,i,n=this.element.finalTransform.mat,a=this.element.canvasContext,o=this.masksProperties.length;for(a.beginPath(),t=0;t<o;t++)if("n"!==this.masksProperties[t].mode){this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),i=this.viewData[t].v,e=n.applyToPointArray(i.v[0][0],i.v[0][1],0),a.moveTo(e[0],e[1]);var s,l=i._length;for(s=1;s<l;s++)r=n.applyToTriplePoints(i.o[s-1],i.i[s],i.v[s]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=n.applyToTriplePoints(i.o[s-1],i.i[0],i.v[0]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},i={};if("fl"==t.ty||"st"==t.ty?(i.c=PropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(r.co="rgb("+bm_floor(i.c.v[0])+","+bm_floor(i.c.v[1])+","+bm_floor(i.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"==t.ty||"gs"==t.ty){if(r.lc=this.lcEnum[t.lc]||"round",r.lj=this.ljEnum[t.lj]||"round",1==t.lj&&(r.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wi=i.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);i.d=n,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(t){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,i,n){var a,o,s,l,p,c,u=t.length-1,h=[],d=[],f=[].concat(n);for(a=u;0<=a;a-=1){if((l=this.searchProcessedElement(t[a]))?e[a]=r[l-1]:t[a]._shouldRender=i,"fl"==t[a].ty||"st"==t[a].ty||"gf"==t[a].ty||"gs"==t[a].ty)l?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],f),h.push(e[a].style);else if("gr"==t[a].ty){if(l)for(s=e[a].it.length,o=0;o<s;o+=1)e[a].prevViewData[o]=e[a].it[o];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,i,f)}else"tr"==t[a].ty?(l||(c=this.createTransformElement(t[a]),e[a]=c),f.push(e[a]),this.addTransformToStyleList(e[a])):"sh"==t[a].ty||"rc"==t[a].ty||"el"==t[a].ty||"sr"==t[a].ty?l||(e[a]=this.createShapeElement(t[a])):"tm"==t[a].ty||"rd"==t[a].ty?(l?(p=e[a]).closed=!1:((p=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=p,this.shapeModifiers.push(p)),d.push(p)):"rp"==t[a].ty&&(l?(p=e[a]).closed=!0:(p=ShapeModifiers.getModifier(t[a].ty),(e[a]=p).init(this,t,a,e),this.shapeModifiers.push(p),i=!1),d.push(p));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(h),u=d.length,a=0;a<u;a+=1)d[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,i,n,a,o,s,l,p=this.stylesList.length,c=this.globalData.renderer,u=this.globalData.canvasContext;for(t=0;t<p;t+=1)if(("st"!==(s=(l=this.stylesList[t]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),a=l.elements,"st"===s||"gs"===s?(u.strokeStyle="st"===s?l.co:l.grd,u.lineWidth=l.wi,u.lineCap=l.lc,u.lineJoin=l.lj,u.miterLimit=l.ml||0):u.fillStyle="fl"===s?l.co:l.grd,c.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&u.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),r=a.length,e=0;e<r;e+=1){for("st"!==s&&"gs"!==s||(u.beginPath(),l.da&&(u.setLineDash(l.da),u.lineDashOffset=l.do)),n=(o=a[e].trNodes).length,i=0;i<n;i+=1)"m"==o[i].t?u.moveTo(o[i].p[0],o[i].p[1]):"c"==o[i].t?u.bezierCurveTo(o[i].pts[0],o[i].pts[1],o[i].pts[2],o[i].pts[3],o[i].pts[4],o[i].pts[5]):u.closePath();"st"!==s&&"gs"!==s||(u.stroke(),l.da&&u.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&u.fill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,i){var n,a;for(a=t,n=e.length-1;0<=n;n-=1)"tr"==e[n].ty?(a=r[n].transform,this.renderShapeTransform(t,a)):"sh"==e[n].ty||"el"==e[n].ty||"rc"==e[n].ty||"sr"==e[n].ty?this.renderPath(e[n],r[n]):"fl"==e[n].ty?this.renderFill(e[n],r[n],a):"st"==e[n].ty?this.renderStroke(e[n],r[n],a):"gf"==e[n].ty||"gs"==e[n].ty?this.renderGradientFill(e[n],r[n],a):"gr"==e[n].ty?this.renderShape(a,e[n].it,r[n].it):e[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,n,a=t.trNodes,o=e.paths,s=o._length;a.length=0;var l=t.transforms.finalTransform;for(n=0;n<s;n+=1){var p=o.shapes[n];if(p&&p.v){for(i=p._length,r=1;r<i;r+=1)1===r&&a.push({t:"m",p:l.applyToPointArray(p.v[0][0],p.v[0][1],0)}),a.push({t:"c",pts:l.applyToTriplePoints(p.o[r-1],p.i[r],p.v[r])});1===i&&a.push({t:"m",p:l.applyToPointArray(p.v[0][0],p.v[0][1],0)}),p.c&&i&&(a.push({t:"c",pts:l.applyToTriplePoints(p.o[r-1],p.i[0],p.v[0])}),a.push({t:"z"}))}}t.trNodes=a}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var r,i=e.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i=e.style;if(!i.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var n=this.globalData.canvasContext,a=e.s.v,o=e.e.v;if(1===t.t)h=n.createLinearGradient(a[0],a[1],o[0],o[1]);else var s=Math.sqrt(Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)),l=Math.atan2(o[1]-a[1],o[0]-a[0]),p=s*(1<=e.h.v?.99:e.h.v<=-1?-.99:e.h.v),c=Math.cos(l+e.a.v)*p+a[0],u=Math.sin(l+e.a.v)*p+a[1],h=n.createRadialGradient(c,u,0,a[0],a[1],s);var d,f=t.g.p,m=e.g.c,g=1;for(d=0;d<f;d+=1)e.g._hasOpacity&&e.g._collapsable&&(g=e.g.o[2*d+1]),h.addColorStop(m[4*d]/100,"rgba("+m[4*d+1]+","+m[4*d+2]+","+m[4*d+3]+","+g+")");i.grd=h}i.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(i.da=n.dashArray,i.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,n,a=this.globalData.fontManager.getFontByName(t.f),o=t.l,s=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var l,p,c,u,h,d,f,m,g,v,y=this.data.singleShape,x=t.tr/1e3*t.finalSize,b=0,_=0,w=!0,S=0;for(i=0;i<n;i+=1){for(p=(l=this.globalData.fontManager.getCharData(t.finalText[i],a.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&l.data||{},s.reset(),y&&o[i].n&&(b=-x,_+=t.yOffset,_+=w?1:0,w=!1),f=(h=p.shapes?p.shapes[0].it:[]).length,s.scale(t.finalSize/100,t.finalSize/100),y&&this.applyTextPropertiesToMatrix(t,s,o[i].line,b,_),g=createSizedArray(f),d=0;d<f;d+=1){for(u=h[d].ks.k.i.length,m=h[d].ks.k,v=[],c=1;c<u;c+=1)1==c&&v.push(s.applyToX(m.v[0][0],m.v[0][1],0),s.applyToY(m.v[0][0],m.v[0][1],0)),v.push(s.applyToX(m.o[c-1][0],m.o[c-1][1],0),s.applyToY(m.o[c-1][0],m.o[c-1][1],0),s.applyToX(m.i[c][0],m.i[c][1],0),s.applyToY(m.i[c][0],m.i[c][1],0),s.applyToX(m.v[c][0],m.v[c][1],0),s.applyToY(m.v[c][0],m.v[c][1],0));v.push(s.applyToX(m.o[c-1][0],m.o[c-1][1],0),s.applyToY(m.o[c-1][0],m.o[c-1][1],0),s.applyToX(m.i[0][0],m.i[0][1],0),s.applyToY(m.i[0][0],m.i[0][1],0),s.applyToX(m.v[0][0],m.v[0][1],0),s.applyToY(m.v[0][0],m.v[0][1],0)),g[d]=v}y&&(b+=o[i].l,b+=x),this.textSpans[S]?this.textSpans[S].elem=g:this.textSpans[S]={elem:g},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,i,n,a,o=this.canvasContext;this.finalTransform.mat.props;o.font=this.values.fValue,o.lineCap="butt",o.lineJoin="miter",o.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,l=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;e=p.length;var c,u,h=null,d=null,f=null;for(t=0;t<e;t+=1)if(!p[t].n){if((s=l[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(s.p),this.globalData.renderer.ctxOpacity(s.o)),this.fill){for(s&&s.fc?h!==s.fc&&(h=s.fc,o.fillStyle=s.fc):h!==this.values.fill&&(h=this.values.fill,o.fillStyle=this.values.fill),i=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(a=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(u[n],u[n+1],u[n+2],u[n+3],u[n+4],u[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(s&&s.sw?f!==s.sw&&(f=s.sw,o.lineWidth=s.sw):f!==this.values.sWidth&&(f=this.values.sWidth,o.lineWidth=this.values.sWidth),s&&s.sc?d!==s.sc&&(d=s.sc,o.strokeStyle=s.sc):d!==this.values.stroke&&(d=this.values.stroke,o.strokeStyle=this.values.stroke),i=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(a=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(u[n],u[n+1],u[n+2],u[n+3],u[n+4],u[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}s&&this.globalData.renderer.restore()}},CVEffects.prototype.renderFrame=function(){},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&(this.transformedElement.style.transform=this.transformedElement.style.webkitTransform=this.finalTransform.mat.toCSS()),this.finalTransform._opMdf&&(this.transformedElement.style.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=HybridRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([HybridRenderer,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var r,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,i,n,a,o,s=t.sh.v,l=t.transformers,p=s._length;if(!(p<=1)){for(r=0;r<p-1;r+=1)i=this.getTransformedPoint(l,s.v[r]),n=this.getTransformedPoint(l,s.o[r]),a=this.getTransformedPoint(l,s.i[r+1]),o=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(i,n,a,o,e);s.c&&(i=this.getTransformedPoint(l,s.v[r]),n=this.getTransformedPoint(l,s.o[r]),a=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(i,n,a,o,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,i,n){this.getBoundsOfCurve(t,e,r,i);var a=this.shapeBoundingBox;n.x=bm_min(a.left,n.x),n.xMax=bm_max(a.right,n.xMax),n.y=bm_min(a.top,n.y),n.yMax=bm_max(a.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,i){for(var n,a,o,s,l,p,c,u=[[t[0],i[0]],[t[1],i[1]]],h=0;h<2;++h)if(a=6*t[h]-12*e[h]+6*r[h],n=-3*t[h]+9*e[h]-9*r[h]+3*i[h],o=3*e[h]-3*t[h],a|=0,o|=0,0!==(n|=0))(l=a*a-4*o*n)<0||(0<(p=(-a+bm_sqrt(l))/(2*n))&&p<1&&u[h].push(this.calculateF(p,t,e,r,i,h)),0<(c=(-a-bm_sqrt(l))/(2*n))&&c<1&&u[h].push(this.calculateF(c,t,e,r,i,h)));else{if(0===a)continue;0<(s=-o/a)&&s<1&&u[h].push(this.calculateF(s,t,e,r,i,h))}this.shapeBoundingBox.left=bm_min.apply(null,u[0]),this.shapeBoundingBox.top=bm_min.apply(null,u[1]),this.shapeBoundingBox.right=bm_max.apply(null,u[0]),this.shapeBoundingBox.bottom=bm_max.apply(null,u[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,n,a){return bm_pow(1-t,3)*e[a]+3*bm_pow(1-t,2)*t*r[a]+3*(1-t)*bm_pow(t,2)*i[a]+bm_pow(t,3)*n[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it&&this.calculateBoundingBox(t[r].it,e)},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),!r&&this.currentBBox.x===t.x&&this.currentBBox.y===t.y||(this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.shapeCont.style.transform=this.shapeCont.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)")}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style;e.color=e.fill=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)",t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r,i,n=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{e.fontFamily=n.fFamily;var a=t.fWeight,o=t.fStyle;e.fontStyle=o,e.fontWeight=a}var s,l,p,c=t.l;i=c.length;var u,h=this.mHelper,d="",f=0;for(r=0;r<i;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[f]?s=this.textPaths[f]:((s=createNS("path")).setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?p=(l=this.textSpans[f]).children[0]:(l=createTag("div"),(p=createNS("svg")).appendChild(s),styleDiv(l)))):this.isMasked?s=this.textPaths[f]?this.textPaths[f]:createNS("text"):this.textSpans[f]?(l=this.textSpans[f],s=this.textPaths[f]):(styleDiv(l=createTag("span")),styleDiv(s=createTag("span")),l.appendChild(s)),this.globalData.fontManager.chars){var m,g=this.globalData.fontManager.getCharData(t.finalText[r],n.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(m=g?g.data:null,h.reset(),m&&m.shapes&&(u=m.shapes[0].it,h.scale(t.finalSize/100,t.finalSize/100),d=this.createPathShape(h,u),s.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(s);else{if(this.innerElem.appendChild(l),m&&m.shapes){document.body.appendChild(p);var v=p.getBBox();p.setAttribute("width",v.width+2),p.setAttribute("height",v.height+2),p.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2)),p.style.transform=p.style.webkitTransform="translate("+(v.x-1)+"px,"+(v.y-1)+"px)",c[r].yOffset=v.y-1}else p.setAttribute("width",1),p.setAttribute("height",1);l.appendChild(p)}}else s.textContent=c[r].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this.innerElem.appendChild(s):(this.innerElem.appendChild(l),s.style.transform=s.style.webkitTransform="translate3d(0,"+-t.finalSize/1.2+"px,0)");this.isMasked?this.textSpans[f]=s:this.textSpans[f]=l,this.textSpans[f].style.display="block",this.textPaths[f]=s,f+=1}for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=1},HTextElement.prototype.renderInnerContent=function(){if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;this.isMasked&&this.finalTransform._matMdf&&(this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),this.svgElement.style.transform=this.svgElement.style.webkitTransform="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)")}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var t,e,r,i,n,a=0,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(e=s.length,t=0;t<e;t+=1)s[t].n?a+=1:(i=this.textSpans[t],n=this.textPaths[t],r=o[a],a+=1,r._mdf.m&&(this.isMasked?i.setAttribute("transform",r.m):i.style.transform=i.style.webkitTransform=r.m),i.style.opacity=r.o,r.sw&&r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&n.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(n.setAttribute("fill",r.fc),n.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var l=this.innerElem.getBBox();this.currentBBox.w!==l.width&&(this.currentBBox.w=l.width,this.svgElement.setAttribute("width",l.width)),this.currentBBox.h!==l.height&&(this.currentBBox.h=l.height,this.svgElement.setAttribute("height",l.height));this.currentBBox.w===l.width+2&&this.currentBBox.h===l.height+2&&this.currentBBox.x===l.x-1&&this.currentBBox.y===l.y-1||(this.currentBBox.w=l.width+2,this.currentBBox.h=l.height+2,this.currentBBox.x=l.x-1,this.currentBBox.y=l.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.svgElement.style.transform=this.svgElement.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)")}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r=this.comp.threeDElements.length;for(t=0;t<r;t+=1)"3d"===(e=this.comp.threeDElements[t]).type&&(e.perspectiveElem.style.perspective=e.perspectiveElem.style.webkitPerspective=this.pe.v+"px",e.container.style.transformOrigin=e.container.style.mozTransformOrigin=e.container.style.webkitTransformOrigin="0px 0px 0px",e.perspectiveElem.style.transform=e.perspectiveElem.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)")},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;0<=t;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]],a=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),o=[n[0]/a,n[1]/a,n[2]/a],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],s),p=Math.atan2(o[0],-o[2]);this.mat.rotateY(p).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var u;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)"3d"===(u=this.comp.threeDElements[t]).type&&(c&&(u.container.style.transform=u.container.style.webkitTransform=this.mat.toCSS()),this.pe._mdf&&(u.perspectiveElem.style.perspective=u.perspectiveElem.style.webkitPerspective=this.pe.v+"px"));this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},HEffects.prototype.renderFrame=function(){};var animationManager=(LRc={},MRc=[],NRc=0,ORc=0,PRc=0,QRc=!0,RRc=!1,LRc.registerAnimation=TRc,LRc.loadAnimation=function(t){var e=new AnimationItem;return XRc(e,null),e.setParams(t),e},LRc.setSpeed=function(t,e){var r;for(r=0;r<ORc;r+=1)MRc[r].animation.setSpeed(t,e)},LRc.setDirection=function(t,e){var r;for(r=0;r<ORc;r+=1)MRc[r].animation.setDirection(t,e)},LRc.play=function(t){var e;for(e=0;e<ORc;e+=1)MRc[e].animation.play(t)},LRc.pause=function(t){var e;for(e=0;e<ORc;e+=1)MRc[e].animation.pause(t)},LRc.stop=function(t){var e;for(e=0;e<ORc;e+=1)MRc[e].animation.stop(t)},LRc.togglePause=function(t){var e;for(e=0;e<ORc;e+=1)MRc[e].animation.togglePause(t)},LRc.searchAnimations=function(t,e,r){var i,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=n.length;for(i=0;i<a;i+=1)r&&n[i].setAttribute("data-bm-type",r),TRc(n[i],t);if(e&&0===a){r||(r="svg");var o=document.getElementsByTagName("body")[0];o.innerHTML="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),o.appendChild(s),TRc(s,t)}},LRc.resize=function(){var t;for(t=0;t<ORc;t+=1)MRc[t].animation.resize()},LRc.goToAndStop=function(t,e,r){var i;for(i=0;i<ORc;i+=1)MRc[i].animation.goToAndStop(t,e,r)},LRc.destroy=gSc,LRc.freeze=function(){RRc=!0},LRc.unfreeze=function(){RRc=!1,jSc()},LRc.getRegisteredAnimations=function(){var t,e=MRc.length,r=[];for(t=0;t<e;t+=1)r.push(MRc[t].animation);return r},LRc),LRc,MRc,NRc,ORc,PRc,QRc,RRc;function SRc(t){for(var e=0,r=t.target;e<ORc;)MRc[e].animation===r&&(MRc.splice(e,1),e-=1,ORc-=1,r.isPaused||WRc()),e+=1}function TRc(t,e){if(!t)return null;for(var r=0;r<ORc;){if(null!==MRc[r].elem){if(MRc[r].elem==t)return MRc[r].animation;MRc[r].elem.getAttribute("data-name")===t.getAttribute("data-name")&&gSc(t.getAttribute("data-name"))}r+=1}var i=new AnimationItem;return XRc(i,t),i.setData(t,e),i}function VRc(){PRc+=1,jSc()}function WRc(){PRc-=1}function XRc(t,e){t.addEventListener("destroy",SRc),t.addEventListener("_active",VRc),t.addEventListener("_idle",WRc),MRc.push({elem:e,animation:t}),ORc+=1}function aSc(t){var e,r=t-NRc;for(e=0;e<ORc;e+=1)MRc[e].animation.advanceTime(r);NRc=t,PRc&&!RRc?window.requestAnimationFrame(aSc):QRc=!0}function bSc(t){NRc=t,window.requestAnimationFrame(aSc)}function gSc(t){var e;for(e=ORc-1;0<=e;e-=1)MRc[e].animation.destroy(t)}function jSc(){!RRc&&PRc&&QRc&&(window.requestAnimationFrame(bSc),QRc=!1)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.subframeEnabled=subframeEnabled,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){t.context&&(this.context=t.context),(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e=t.animType?t.animType:t.renderer?t.renderer:"svg";switch(e){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||(!1===t.loop?this.loop=!1:!0===t.loop?this.loop=!0:this.loop=parseInt(t.loop)),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,t.animationData?this.configAnimation(t.animationData):t.path&&(-1!=t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),assetLoader.load(t.path,this.configAnimation.bind(this),function(){this.trigger("data_failed")}.bind(this)))},AnimationItem.prototype.setData=function(t,e){var r={wrapper:t,animationData:e?"object"===_typeof(e)?e:JSON.parse(e):null},i=t.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var n=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";""===n||(r.loop="false"!==n&&("true"===n||parseInt(n)));var a=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay="false"!==a,r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,n=i.length,a=t.layers,o=a.length;for(r=0;r<o;r+=1)for(e=0;e<n;){if(i[e].id==a[r].id){i[e]=a[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,assetLoader.load(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){this.renderer&&(t=t||{layers:[]},this.animationData=t,this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.renderer.searchExtraCompositions(t.assets),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.firstFrame=Math.round(this.animationData.ip),this.frameMult=this.animationData.fr/1e3,this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded())},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.loaded()?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){this.isLoaded||!this.renderer.globalData.fontManager.loaded()||!this.imagePreloader.loaded()&&"canvas"===this.renderer.rendererType||(this.isLoaded=!0,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.subframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.subframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){!1!==this.isLoaded&&this.renderer.renderFrame(this.currentFrame+this.firstFrame)},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"))},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,r){r&&this.name!=r||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,r){this.goToAndStop(t,e,r),this.play()},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&0<this.frameModifier?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(0<this.frameModifier&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof(t[0])){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!=t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null,this.renderer=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t==this.assets[e].id)return this.assets[e];e+=1}},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))};var Expressions=(kUc={},kUc.initExpressions=function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}},kUc),kUc;expressionsPlugin=Expressions;var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null;function $bm_isInstanceOfArray(t){return t&&(t.constructor===Array||t.constructor===Float32Array)}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,n=[];for(r=0;r<i;r+=1)n[r]=-t[r];return n}return t.propType?t.v:void 0}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=_typeof(t),i=_typeof(e);if("string"===r||"string"===i)return t+e;if(isNumerable(r,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]=t[0]+e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,a=t.length,o=e.length,s=[];n<a||n<o;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?s[n]=t[n]+e[n]:s[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return s}return 0}var add=sum;function sub(t,e){var r=_typeof(t),i=_typeof(e);if(isNumerable(r,t)&&isNumerable(i,e))return"string"===r&&(t=parseInt(t)),"string"===i&&(e=parseInt(e)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]=t[0]-e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,a=t.length,o=e.length,s=[];n<a||n<o;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?s[n]=t[n]-e[n]:s[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return s}return 0}function mul(t,e){var r,i,n,a=_typeof(t),o=_typeof(e);if(isNumerable(a,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]*e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,n,a=_typeof(t),o=_typeof(e);if(isNumerable(a,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]/e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t)),"string"==typeof e&&(e=parseInt(e)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(r<e){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var r,i=Math.min(t.length,e.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(e[r]-t[r],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],n=t[1],a=t[2],o=Math.max(i,n,a),s=Math.min(i,n,a),l=(o+s)/2;if(o==s)e=r=0;else{var p=o-s;switch(r=.5<l?p/(2-o-s):p/(o+s),o){case i:e=(n-a)/p+(n<a?6:0);break;case n:e=(a-i)/p+2;break;case a:e=(i-n)/p+4}e/=6}return[e,r,l,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),1<r&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,n=t[0],a=t[1],o=t[2];if(0===a)e=r=i=o;else{var s=o<.5?o*(1+a):o+a-o*a,l=2*o-s;e=hue2rgb(l,s,n+1/3),r=hue2rgb(l,s,n),i=hue2rgb(l,s,n-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,n){if(void 0!==i&&void 0!==n||(i=e,n=r,e=0,r=1),r<e){var a=r;r=e,e=a}if(t<=e)return i;if(r<=t)return n;var o=r===e?0:(t-e)/(r-e);if(!i.length)return i+(n-i)*o;var s,l=i.length,p=createTypedArray("float32",l);for(s=0;s<l;s+=1)p[s]=i[s]+(n[s]-i[s])*o;return p}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var n=createTypedArray("float32",i),a=BMMath.random();for(r=0;r<i;r+=1)n[r]=t[r]+a*(e[r]-t[r]);return n}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var n,a=t.length,o=shape_pool.newElement();o.setPathData(!!i,a);var s,l,p=[0,0];for(n=0;n<a;n+=1)s=e&&e[n]?e[n]:p,l=r&&r[n]?r[n]:p,o.setTripleAt(t[n][0],t[n][1],l[0]+t[n][0],l[1]+t[n][1],s[0]+t[n][0],s[1]+t[n][1],n,!0);return o}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,__expression_functions=[],scoped_bm_rt;if(data.xf){var i,len=data.xf.length;for(i=0;i<len;i+=1)__expression_functions[i]=eval("(function(){ return "+data.xf[i]+"}())")}var expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var r,i,n=this.pv.length?this.pv.length:1,a=createTypedArray("float32",n);var o=Math.floor(5*time);for(i=r=0;r<o;){for(i=0;i<n;i+=1)a[i]+=-e+2*e*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),p=createTypedArray("float32",n);if(1<n){for(i=0;i<n;i+=1)p[i]=this.pv[i]+a[i]+(-e+2*e*BMMath.random())*l;return p}return this.pv+a[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(t,e,r,i,n){return applyEase(easeOutBez,t,e,r,i,n)}function easeIn(t,e,r,i,n){return applyEase(easeInBez,t,e,r,i,n)}function ease(t,e,r,i,n){return applyEase(easeInOutBez,t,e,r,i,n)}function applyEase(t,e,r,i,n,a){void 0===n?(n=r,a=i):e=(e-r)/(i-r);var o=t(e=1<e?1:e<0?0:e);if($bm_isInstanceOfArray(n)){var s,l=n.length,p=createTypedArray("float32",l);for(s=0;s<l;s+=1)p[s]=(a[s]-n[s])*o+n[s];return p}return(a-n)*o+n}function nearestKey(t){var e,r,i,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){r=e+1,i=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){i=t-data.k[e].t>data.k[e+1].t-t?(r=e+2,data.k[e+1].t):(r=e+1,data.k[e].t);break}}-1===r&&(r=e+1,i=data.k[e].t)}else i=r=0;var a={};return a.index=r,a.time=i/elem.comp.globalData.frameRate,a}function key(t){var e,r,i,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);for(t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]},i=(n=t!==data.k.length-1||data.k[t].h?data.k[t].s||[]:(data.k[t].s||0===data.k[t].s?data.k[t-1].s:data.k[t].e)||[]).length,r=0;r<i;r+=1)e[r]=n[r],e.value[r]=n[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,_needsRandom&&seedRandom(randSeed),this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),($bm_transform=transform)&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,"shape"===scoped_bm_rt.propType&&(scoped_bm_rt=scoped_bm_rt.v),scoped_bm_rt)}return executeExpression}return ob.initiateExpression=initiateExpression,ob}(),expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var n;for(n=0;n<e.length;n+=1)i+=Math.pow(r[n]-e[n],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,r,i=this.getValueAtTime(t),n=this.getValueAtTime(t+-.001);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(n[r]-i[r])/-.001;else e=(n-i)/-.001;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};!function(){function s(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var i,n,a,o,s,l=this.comp.renderedFrame,p=this.keyframes,c=p[p.length-1].t;if(l<=c)return this.pv;if(r?n=c-(i=e?Math.abs(c-elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>p.length-1)&&(e=p.length-1),i=c-(n=p[p.length-1-e].t)),"pingpong"===t){if(Math.floor((l-n)/i)%2!=0)return this.getValueAtTime((i-(l-n)%i+n)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var u=this.getValueAtTime(n/this.comp.globalData.frameRate,0),h=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-n)%i+n)/this.comp.globalData.frameRate,0),f=Math.floor((l-n)/i);if(this.pv.length){for(o=(s=new Array(u.length)).length,a=0;a<o;a+=1)s[a]=(h[a]-u[a])*f+d[a];return s}return(h-u)*f+d}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-g[a])*((l-c)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-c)/.001*(m-g)}}return this.getValueAtTime(((l-n)%i+n)/this.comp.globalData.frameRate,0)}function l(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var i,n,a,o,s,l=this.comp.renderedFrame,p=this.keyframes,c=p[0].t;if(c<=l)return this.pv;if(r?n=c+(i=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>p.length-1)&&(e=p.length-1),i=(n=p[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/i)%2==0)return this.getValueAtTime(((c-l)%i+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),h=this.getValueAtTime(n/this.comp.globalData.frameRate,0),d=this.getValueAtTime((i-(c-l)%i+c)/this.comp.globalData.frameRate,0),f=Math.floor((c-l)/i)+1;if(this.pv.length){for(o=(s=new Array(u.length)).length,a=0;a<o;a+=1)s[a]=d[a]-(h[a]-u[a])*f;return s}return d-(h-u)*f}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-g[a])*(c-l)/.001;return s}return m+(m-g)*(c-l)/.001}}return this.getValueAtTime((i-(c-l)%i+c)/this.comp.globalData.frameRate,0)}function p(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,i,n=this.comp.renderedFrame/this.comp.globalData.frameRate,a=n-t,o=1<e?(n+t-a)/(e-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<e;){if(i=this.getValueAtTime(a+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=i[l];else r+=i;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=e;else r/=e;return r}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var i=n(t,e,r);return i.dynamicProperties.length?i.getValueAtTime=function(t){console.warn("Transform at time not supported")}.bind(i):i.getValueAtTime=function(t){}.bind(i),i.setGroupProperty=expressionHelpers.setGroupProperty,i};var c=PropertyFactory.getProp;PropertyFactory.getProp=function(t,e,r,i,n){var a=c(t,e,r,i,n);a.kf?a.getValueAtTime=expressionHelpers.getValueAtTime.bind(a):a.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a.loopOut=s,a.loopIn=l,a.smooth=p,a.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(a),a.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(a),a.numKeys=1===e.a?e.k.length:0,a.propertyIndex=e.ix;var o=0;return 0!==r&&(o=createTypedArray("float32",1===e.a?e.k[0].s.length:e.k.length)),a._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:o},expressionHelpers.searchExpressions(t,e,a),a.k&&n.addDynamicProperty(a),a};var t=ShapePropertyFactory.getConstructorFunction(),e=ShapePropertyFactory.getKeyframedConstructorFunction();function r(){}r.prototype={vertices:function(t,e){this.k&&this.getValue();var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var i,n=r._length,a=r[t],o=r.v,s=createSizedArray(n);for(i=0;i<n;i+=1)s[i]="i"===t||"o"===t?[a[i][0]-o[i][0],a[i][1]-o[i][1]]:[a[i][0],a[i][1]];return s},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var i,n=this._segmentsLength,a=n.lengths,o=n.totalLength*t,s=0,l=a.length,p=0;s<l;){if(p+a[s].addedLength>o){var c=s,u=r.c&&s===l-1?0:s+1,h=(o-p)/a[s].addedLength;i=bez.getPointInSegment(r.v[c],r.v[u],r.o[c],r.i[u],h,a[s]);break}p+=a[s].addedLength,s+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(t,e,r){t=1==t?this.v.c?0:.999:t;var i=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),a=n[0]-i[0],o=n[1]-i[1],s=Math.sqrt(Math.pow(a,2)+Math.pow(o,2));return"tangent"===r?[a/s,o/s]:[-o/s,a/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([r],t),extendPrototype([r],e),e.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shape_pool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},e.prototype.initiateExpression=ExpressionManager.initiateExpression;var o=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,i,n){var a=o(t,e,r,i,n);return a.propertyIndex=e.ix,a.lock=!1,3===r?expressionHelpers.searchExpressions(t,e.pt,a):4===r&&expressionHelpers.searchExpressions(t,e.ks,a),a.k&&t.addDynamicProperty(a),a}}(),TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t===r)return t;var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0};var ShapeExpressionInterface=function(t,e,r){var i;function n(t){if("number"==typeof t)return i[t-1];for(var e=0,r=i.length;e<r;){if(i[e]._name===t)return i[e];e+=1}}return n.propertyGroup=r,i=z$c(t,e,n),n.numProperties=i.length,n};function z$c(t,e,r){var i,n=[],a=t?t.length:0;for(i=0;i<a;i+=1)"gr"==t[i].ty?n.push(B$c(t[i],e[i],r)):"fl"==t[i].ty?n.push(C$c(t[i],e[i],r)):"st"==t[i].ty?n.push(D$c(t[i],e[i],r)):"tm"==t[i].ty?n.push(E$c(t[i],e[i],r)):"tr"==t[i].ty||("el"==t[i].ty?n.push(G$c(t[i],e[i],r)):"sr"==t[i].ty?n.push(H$c(t[i],e[i],r)):"sh"==t[i].ty?n.push(L$c(t[i],e[i],r)):"rc"==t[i].ty?n.push(I$c(t[i],e[i],r)):"rd"==t[i].ty?n.push(J$c(t[i],e[i],r)):"rp"==t[i].ty&&n.push(K$c(t[i],e[i],r)));return n}function B$c(t,e,r){var i=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=function(t){return 1===t?i:r(t-1)};var n=function(t,e,r){function i(t){for(var e=0,r=n.length;e<r;){if(n[e]._name===t||n[e].mn===t||n[e].propertyIndex===t||n[e].ix===t||n[e].ind===t)return n[e];e+=1}if("number"==typeof t)return n[t-1]}var n;return i.propertyGroup=function(t){return 1===t?i:r(t-1)},n=z$c(t.it,e.it,i.propertyGroup),i.numProperties=n.length,i.propertyIndex=t.cix,i._name=t.nm,i}(t,e,i.propertyGroup),a=function(e,t,r){function i(t){return 1==t?n:r(--t)}t.transform.mProps.o.setGroupProperty(i),t.transform.mProps.p.setGroupProperty(i),t.transform.mProps.a.setGroupProperty(i),t.transform.mProps.s.setGroupProperty(i),t.transform.mProps.r.setGroupProperty(i),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(i),t.transform.mProps.sa.setGroupProperty(i));function n(t){return e.a.ix===t||"Anchor Point"===t?n.anchorPoint:e.o.ix===t||"Opacity"===t?n.opacity:e.p.ix===t||"Position"===t?n.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?n.rotation:e.s.ix===t||"Scale"===t?n.scale:e.sk&&e.sk.ix===t||"Skew"===t?n.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?n.skewAxis:void 0}return t.transform.op.setGroupProperty(i),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),n.ty="tr",n.mn=e.mn,n.propertyGroup=r,n}(t.it[t.it.length-1],e.it[e.it.length-1],i.propertyGroup);return i.content=n,i.transform=a,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function C$c(t,e,r){function i(t){return"Color"===t||"color"===t?i.color:"Opacity"===t||"opacity"===t?i.opacity:void 0}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(r),e.o.setGroupProperty(r),i}function D$c(t,e,r){function i(t){return 1===t?ob:r(t-1)}function n(t){return 1===t?l:i(t-1)}var a,o,s=t.d?t.d.length:0,l={};for(a=0;a<s;a+=1)o=a,Object.defineProperty(l,t.d[o].nm,{get:ExpressionPropertyInterface(e.d.dataProps[o].p)}),e.d.dataProps[a].p.setGroupProperty(n);function p(t){return"Color"===t||"color"===t?p.color:"Opacity"===t||"opacity"===t?p.opacity:"Stroke Width"===t||"stroke width"===t?p.strokeWidth:void 0}return Object.defineProperties(p,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(i),e.o.setGroupProperty(i),e.w.setGroupProperty(i),p}function E$c(e,t,r){function i(t){return 1==t?n:r(--t)}function n(t){return t===e.e.ix||"End"===t||"end"===t?n.end:t===e.s.ix?n.start:t===e.o.ix?n.offset:void 0}return n.propertyIndex=e.ix,t.s.setGroupProperty(i),t.e.setGroupProperty(i),t.o.setGroupProperty(i),n.propertyIndex=e.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),n.mn=e.mn,n}function G$c(e,t,r){function i(t){return 1==t?a:r(--t)}a.propertyIndex=e.ix;var n="tm"===t.sh.ty?t.sh.prop:t.sh;function a(t){return e.p.ix===t?a.position:e.s.ix===t?a.size:void 0}return n.s.setGroupProperty(i),n.p.setGroupProperty(i),Object.defineProperties(a,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:e.nm}}),a.mn=e.mn,a}function H$c(e,t,r){function i(t){return 1==t?a:r(--t)}var n="tm"===t.sh.ty?t.sh.prop:t.sh;function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.rotation:e.pt.ix===t?a.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?a.outerRadius:e.os.ix===t?a.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?a.innerRoundness:void 0:a.innerRadius}return a.propertyIndex=e.ix,n.or.setGroupProperty(i),n.os.setGroupProperty(i),n.pt.setGroupProperty(i),n.p.setGroupProperty(i),n.r.setGroupProperty(i),e.ir&&(n.ir.setGroupProperty(i),n.is.setGroupProperty(i)),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:e.nm}}),a.mn=e.mn,a}function I$c(e,t,r){function i(t){return 1==t?a:r(--t)}var n="tm"===t.sh.ty?t.sh.prop:t.sh;function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?a.size:void 0}return a.propertyIndex=e.ix,n.p.setGroupProperty(i),n.s.setGroupProperty(i),n.r.setGroupProperty(i),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:e.nm}}),a.mn=e.mn,a}function J$c(e,t,r){var i=t;function n(t){if(e.r.ix===t||"Round Corners 1"===t)return n.radius}return n.propertyIndex=e.ix,i.rd.setGroupProperty(function(t){return 1==t?n:r(--t)}),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(i.rd)},_name:{value:e.nm}}),n.mn=e.mn,n}function K$c(e,t,r){function i(t){return 1==t?a:r(--t)}var n=t;function a(t){return e.c.ix===t||"Copies"===t?a.copies:e.o.ix===t||"Offset"===t?a.offset:void 0}return a.propertyIndex=e.ix,n.c.setGroupProperty(i),n.o.setGroupProperty(i),Object.defineProperties(a,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:e.nm}}),a.mn=e.mn,a}function L$c(t,e,r){var i=e.sh;function n(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return n.path}return i.setGroupProperty(function(t){return 1==t?n:r(--t)}),Object.defineProperties(n,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},mn:{value:t.mn}}),n}var TextExpressionInterface=function(e){var r;function t(){}return Object.defineProperty(t,"sourceText",{get:function(){e.textProperty.getValue();var t=e.textProperty.currentData.t;return void 0!==t&&(e.textProperty.currentData.t=void 0,(r=new String(t)).value=t||new String(t)),r}}),t},LayerExpressionInterface=function(e){var r;function i(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return i.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return r;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return i.effect}}i.toWorld=a1c,i.fromWorld=b1c,i.toComp=a1c,i.fromComp=c1c,i.sampleImage=d1c,i.sourceRectAtTime=e.sourceRectAtTime.bind(e);var t=getDescriptor(r=TransformExpressionInterface((i._elem=e).finalTransform.mProp),"anchorPoint");return Object.defineProperties(i,{hasParent:{get:function(){return e.hierarchy.length}},parent:{get:function(){return e.hierarchy[0].layerInterface}},rotation:getDescriptor(r,"rotation"),scale:getDescriptor(r,"scale"),position:getDescriptor(r,"position"),opacity:getDescriptor(r,"opacity"),anchorPoint:t,anchor_point:t,transform:{get:function(){return r}},active:{get:function(){return e.isInRange}}}),i.startTime=e.data.st,i.index=e.data.ind,i.source=e.data.refId,i.height=0===e.data.ty?e.data.h:100,i.width=0===e.data.ty?e.data.w:100,i.inPoint=e.data.ip/e.comp.globalData.frameRate,i.outPoint=e.data.op/e.comp.globalData.frameRate,i._name=e.data.nm,i.registerMaskInterface=function(t){i.mask=new MaskManagerInterface(t,e)},i.registerEffectsInterface=function(t){i.effect=t},i};function a1c(t,e){var r=new Matrix;if(r.reset(),this._elem.finalTransform.mProp.applyToMatrix(r),this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(r);return r.applyToPointArray(t[0],t[1],t[2]||0)}return r.applyToPointArray(t[0],t[1],t[2]||0)}function b1c(t,e){var r=new Matrix;if(r.reset(),this._elem.finalTransform.mProp.applyToMatrix(r),this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(r);return r.inversePoint(t)}return r.inversePoint(t)}function c1c(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function d1c(){return[1,1,1,1]}var CompExpressionInterface=function(i){function t(t){for(var e=0,r=i.layers.length;e<r;){if(i.layers[e].nm===t||i.layers[e].ind===t)return i.elements[e].layerInterface;e+=1}return null}return Object.defineProperty(t,"_name",{value:i.data.nm}),(t.layer=t).pixelAspect=1,t.height=i.data.h||i.globalData.compSize.h,t.width=i.data.w||i.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/i.globalData.frameRate,t.displayStartTime=0,t.numLayers=i.layers.length,t},TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity}}if(Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p)var r=ExpressionPropertyInterface(t.p);return Object.defineProperty(e,"position",{get:function(){return t.p?r():[t.px.v,t.py.v,t.pz?t.pz.v:0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},ProjectInterface=function(){function t(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}}return t.compositions=[],t.currentFrame=0,t.registerComposition=R1c,t};function R1c(t){this.compositions.push(t)}var EffectsExpressionInterface={createEffectsInterface:function(n,t){if(n.effectsManager){var e,a=[],r=n.data.ef,i=n.effectsManager.effectElements.length;for(e=0;e<i;e+=1)a.push(Z1c(r[e],n.effectsManager.effectElements[e],t,n));return function(t){for(var e=n.data.ef||[],r=0,i=e.length;r<i;){if(t===e[r].nm||t===e[r].mn||t===e[r].ix)return a[r];r+=1}}}}};function Z1c(n,t,e,r){var i,a=[],o=n.ef.length;for(i=0;i<o;i+=1)5===n.ef[i].ty?a.push(Z1c(n.ef[i],t.effectElements[i],t.effectElements[i].propertyGroup,r)):a.push($1c(t.effectElements[i],n.ef[i].ty,r,s));function s(t){return 1===t?l:e(t-1)}var l=function(t){for(var e=n.ef,r=0,i=e.length;r<i;){if(t===e[r].nm||t===e[r].mn||t===e[r].ix)return 5===e[r].ty?a[r]:a[r]();r+=1}return a[0]()};return l.propertyGroup=s,"ADBE Color Control"===n.mn&&Object.defineProperty(l,"color",{get:function(){return a[0]()}}),Object.defineProperty(l,"numProperties",{get:function(){return n.np}}),l.active=l.enabled=0!==n.en,l}function $1c(t,e,r,i){var n=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(i),function(){return 10===e?r.comp.compInterface(t.p.v):n()}}var MaskManagerInterface=function(){function a(t,e){this._mask=t,this._data=e}Object.defineProperty(a.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}});return function(e,t){var r,i=createSizedArray(e.viewData.length),n=e.viewData.length;for(r=0;r<n;r+=1)i[r]=new a(e.viewData[r],e.masksProperties[r]);return function(t){for(r=0;r<n;){if(e.masksProperties[r].nm===t)return i[r];r+=1}}}}(),ExpressionPropertyInterface=(W2c={pv:0,v:0,mult:1},X2c={pv:[0,0,0],v:[0,0,0],mult:1},function(t){return t?"unidimensional"===t.propType?function(t){t&&"pv"in t||(t=W2c);var e=1/t.mult,r=t.pv*e,i=new Number(r);return i.value=r,Y2c(i,t,"unidimensional"),function(){return t.k&&t.getValue(),r=t.v*e,i.value!==r&&((i=new Number(r)).value=r,Y2c(i,t,"unidimensional")),i}}(t):function(e){e&&"pv"in e||(e=X2c);var r=1/e.mult,i=e.pv.length,n=createTypedArray("float32",i),a=createTypedArray("float32",i);return n.value=a,Y2c(n,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)n[t]=a[t]=e.v[t]*r;return n}}(t):_2c}),W2c,X2c,s3c,t3c;function Y2c(i,n,a){Object.defineProperty(i,"velocity",{get:function(){return n.getVelocityAtTime(n.comp.currentFrame)}}),i.numKeys=n.keyframes?n.keyframes.length:0,i.key=function(t){if(i.numKeys){var e="";e="s"in n.keyframes[t-1]?n.keyframes[t-1].s:"e"in n.keyframes[t-2]?n.keyframes[t-2].e:n.keyframes[t-2].s;var r="unidimensional"===a?new Number(e):Object.assign({},e);return r.time=n.keyframes[t-1].t/n.elem.comp.globalData.frameRate,r}return 0},i.valueAtTime=n.getValueAtTime,i.speedAtTime=n.getSpeedAtTime,i.velocityAtTime=n.getVelocityAtTime,i.propertyGroup=n.propertyGroup}function _2c(){return W2c}function u3c(t,e){return this.textIndex=t+1,this.textTotal=e,this.v=this.getValue()*this.mult,this.v}function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(){}function EffectsManager(t,e){var r=t.ef||[];this.effectElements=[];var i,n,a=r.length;for(i=0;i<a;i++)n=new GroupEffect(r[i],e),this.effectElements.push(n)}function GroupEffect(t,e){this.init(t,e)}s3c=function(t,e){this.pv=1,this.comp=t.comp,this.elem=t,this.mult=.01,this.propType="textSelector",this.textTotal=e.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],this.k=!0,this.x=!0,this.getValue=ExpressionManager.initiateExpression.bind(this)(t,e,this),this.getMult=u3c,this.getVelocityAtTime=expressionHelpers.getVelocityAtTime,this.kf?this.getValueAtTime=expressionHelpers.getValueAtTime.bind(this):this.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(this),this.setGroupProperty=expressionHelpers.setGroupProperty},t3c=TextSelectorProp.getTextSelectorProp,TextSelectorProp.getTextSelectorProp=function(t,e,r){return 1===e.t?new s3c(t,e,r):t3c(t,e,r)},extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,i,n=this.data.ef.length,a=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,a[r].ty){case 0:i=new SliderEffect(a[r],e,this);break;case 1:i=new AngleEffect(a[r],e,this);break;case 2:i=new ColorEffect(a[r],e,this);break;case 3:i=new PointEffect(a[r],e,this);break;case 4:case 7:i=new CheckboxEffect(a[r],e,this);break;case 10:i=new LayerIndexEffect(a[r],e,this);break;case 11:i=new MaskIndexEffect(a[r],e,this);break;case 5:i=new EffectsManager(a[r],e,this);break;default:i=new NoValueEffect(a[r],e,this)}i&&this.effectElements.push(i)}};var lottiejs={},_isFrozen=!1;function setLocationHref(t){locationHref=t}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){subframeEnabled=t}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&1<t&&(defaultCurveSegments=t);roundValues(!(50<=defaultCurveSegments))}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r++){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}}lottiejs.play=animationManager.play,lottiejs.pause=animationManager.pause,lottiejs.setLocationHref=setLocationHref,lottiejs.togglePause=animationManager.togglePause,lottiejs.setSpeed=animationManager.setSpeed,lottiejs.setDirection=animationManager.setDirection,lottiejs.stop=animationManager.stop,lottiejs.searchAnimations=searchAnimations,lottiejs.registerAnimation=animationManager.registerAnimation,lottiejs.loadAnimation=loadAnimation,lottiejs.setSubframeRendering=setSubframeRendering,lottiejs.resize=animationManager.resize,lottiejs.goToAndStop=animationManager.goToAndStop,lottiejs.destroy=animationManager.destroy,lottiejs.setQuality=setQuality,lottiejs.inBrowser=inBrowser,lottiejs.installPlugin=installPlugin,lottiejs.freeze=animationManager.freeze,lottiejs.unfreeze=animationManager.unfreeze,lottiejs.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottiejs.__getFactory=getFactory,lottiejs.version="5.5.1";var standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src.replace(/^[^\?]+\??/,"");renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);return lottiejs},void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return E5b(D5b)}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))},function(t,e,r){var i,n,a;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}a=function(){"use strict";function vt(t,e){for(var r=e.length;r--;)"string"==typeof e[r]&&(e[r]=e[r].toLowerCase()),t[e[r]]=!0;return t}function yt(t){var e={},r=void 0;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function xt(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}var bt=["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"],_t=["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"],wt=["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence"],St=["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmuliscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mpspace","msqrt","mystyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"],Tt=["#text"],Pt=["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","coords","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","span","srclang","start","src","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"],kt=["accent-height","accumulate","additivive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"],It=["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"],At=["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"],Et="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(t){return o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)},Ct=function(){return"undefined"==typeof window?null:window};return function e(t){function p(t){return e(t)}var c=0<arguments.length&&void 0!==t?t:Ct();if(p.version="1.0.2",p.removed=[],!c||!c.document||9!==c.document.nodeType)return p.isSupported=!1,p;var l=c.document,n=!1,a=!1,u=c.document,h=c.DocumentFragment,r=c.HTMLTemplateElement,d=c.Node,i=c.NodeFilter,o=c.NamedNodeMap,s=void 0===o?c.NamedNodeMap||c.MozNamedAttrMap:o,f=c.Text,m=c.Comment,g=c.DOMParser,v=c.XMLHttpRequest,y=void 0===v?c.XMLHttpRequest:v,x=c.encodeURI,b=void 0===x?c.encodeURI:x;if("function"==typeof r){var _=u.createElement("template");_.content&&_.content.ownerDocument&&(u=_.content.ownerDocument)}var w=u,S=w.implementation,T=w.createNodeIterator,P=w.getElementsByTagName,k=w.createDocumentFragment,I=l.importNode,A={};p.isSupported=S&&void 0!==S.createHTMLDocument&&9!==u.documentMode;function E(t){"object"!==(void 0===t?"undefined":Et(t))&&(t={}),D="ALLOWED_TAGS"in t?vt({},t.ALLOWED_TAGS):F,R="ALLOWED_ATTR"in t?vt({},t.ALLOWED_ATTR):N,L="FORBID_TAGS"in t?vt({},t.FORBID_TAGS):{},B="FORBID_ATTR"in t?vt({},t.FORBID_ATTR):{},tt="USE_PROFILES"in t&&t.USE_PROFILES,j=!1!==t.ALLOW_ARIA_ATTR,$=!1!==t.ALLOW_DATA_ATTR,V=t.ALLOW_UNKNOWN_PROTOCOLS||!1,H=t.SAFE_FOR_JQUERY||!1,z=t.SAFE_FOR_TEMPLATES||!1,X=t.WHOLE_DOCUMENT||!1,q=t.RETURN_DOM||!1,J=t.RETURN_DOM_FRAGMENT||!1,Q=t.RETURN_DOM_IMPORT||!1,U=t.FORCE_BODY||!1,Z=!1!==t.SANITIZE_DOM,K=!1!==t.KEEP_CONTENT,z&&($=!1),J&&(q=!0),tt&&(D=vt({},[].concat(xt(Tt))),R=[],!0===tt.html&&(vt(D,bt),vt(R,Pt)),!0===tt.svg&&(vt(D,_t),vt(R,kt),vt(R,At)),!0===tt.svgFilters&&(vt(D,wt),vt(R,kt),vt(R,At)),!0===tt.mathMl&&(vt(D,St),vt(R,It),vt(R,At))),t.ADD_TAGS&&(D===F&&(D=yt(D)),vt(D,t.ADD_TAGS)),t.ADD_ATTR&&(R===N&&(R=yt(R)),vt(R,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&vt(it,t.ADD_URI_SAFE_ATTR),K&&(D["#text"]=!0),Object&&"freeze"in Object&&Object.freeze(t),nt=t}function C(e){p.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=""}}function O(t,e){p.removed.push({attribute:e.getAttributeNode(t),from:e}),e.removeAttribute(t)}function M(t){var e=void 0,r=void 0;if(U&&(t="<remove></remove>"+t),a){try{t=b(t)}catch(t){}var i=new y;i.responseType="document",i.open("GET","data:text/html;charset=utf-8,"+t,!1),i.send(null),e=i.response}if(n)try{e=(new g).parseFromString(t,"text/html")}catch(t){}return e&&e.documentElement||((r=(e=S.createHTMLDocument("")).body).parentNode.removeChild(r.parentNode.firstElementChild),r.outerHTML=t),P.call(e,X?"html":"body")[0]}var D=null,F=vt({},[].concat(xt(bt),xt(_t),xt(wt),xt(St),xt(Tt))),R=null,N=vt({},[].concat(xt(Pt),xt(kt),xt(It),xt(At))),L=null,B=null,j=!0,$=!0,V=!1,H=!1,z=!1,G=/\{\{[\s\S]*|[\s\S]*\}\}/gm,Y=/<%[\s\S]*|[\s\S]*%>/gm,X=!1,W=!1,U=!1,q=!1,J=!1,Q=!1,Z=!0,K=!0,tt={},et=vt({},["audio","head","math","script","style","template","svg","video"]),rt=vt({},["audio","video","img","source","image"]),it=vt({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),nt=null,at=u.createElement("form");p.isSupported&&function(){var t=M('<svg><g onload="this.parentNode.remove()"></g></svg>');t.querySelector("svg")||(a=!0);try{(t=M('<svg><p><style><img src="</style><img src=x onerror=alert(1)//">')).querySelector("svg img")&&(n=!0)}catch(t){}}();function ot(t){return T.call(t.ownerDocument||t,t,i.SHOW_ELEMENT|i.SHOW_COMMENT|i.SHOW_TEXT,function(){return i.FILTER_ACCEPT},!1)}function st(t){return"object"===(void 0===d?"undefined":Et(d))?t instanceof d:t&&"object"===(void 0===t?"undefined":Et(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}function lt(t,e,r){A[t]&&A[t].forEach(function(t){t.call(p,e,r,nt)})}function pt(t){var e=void 0;if(lt("beforeSanitizeElements",t,null),function(t){return!(t instanceof f||t instanceof m||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof s&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute)}(t))return C(t),!0;var r=t.nodeName.toLowerCase();if(lt("uponSanitizeElement",t,{tagName:r,allowedTags:D}),D[r]&&!L[r])return!H||t.firstElementChild||t.content&&t.content.firstElementChild||!/</g.test(t.textContent)||(p.removed.push({element:t.cloneNode()}),t.innerHTML=t.textContent.replace(/</g,"&lt;")),z&&3===t.nodeType&&(e=(e=(e=t.textContent).replace(G," ")).replace(Y," "),t.textContent!==e&&(p.removed.push({element:t.cloneNode()}),t.textContent=e)),lt("afterSanitizeElements",t,null),!1;if(K&&!et[r]&&"function"==typeof t.insertAdjacentHTML)try{t.insertAdjacentHTML("AfterEnd",t.innerHTML)}catch(t){}return C(t),!0}function ct(t){var e=void 0,r=void 0,i=void 0,n=void 0,a=void 0,o=void 0,s=void 0;if(lt("beforeSanitizeAttributes",t,null),o=t.attributes){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R};for(s=o.length;s--;){if(r=(e=o[s]).name,i=e.value.trim(),n=r.toLowerCase(),l.attrName=n,l.attrValue=i,l.keepAttr=!0,lt("uponSanitizeAttribute",t,l),i=l.attrValue,"name"===n&&"IMG"===t.nodeName&&o.id)a=o.id,o=Array.prototype.slice.apply(o),O("id",t),O(r,t),o.indexOf(a)>s&&t.setAttribute("id",a.value);else{if("INPUT"===t.nodeName&&"type"===n&&"file"===i&&(R[n]||!B[n]))continue;"id"===r&&t.setAttribute(r,""),O(r,t)}if(l.keepAttr&&(!Z||"id"!==n&&"name"!==n||!(i in c||i in u||i in at))){if(z&&(i=(i=i.replace(G," ")).replace(Y," ")),$&&ht.test(n));else if(j&&dt.test(n));else{if(!R[n]||B[n])continue;if(it[n]);else if(ft.test(i.replace(gt,"")));else if("src"!==n&&"xlink:href"!==n||0!==i.indexOf("data:")||!rt[t.nodeName.toLowerCase()])if(V&&!mt.test(i.replace(gt,"")));else if(i)continue}try{t.setAttribute(r,i),p.removed.pop()}catch(t){}}}lt("afterSanitizeAttributes",t,null)}}function ut(t){var e=void 0,r=ot(t);for(lt("beforeSanitizeShadowDOM",t,null);e=r.nextNode();)lt("uponSanitizeShadowNode",e,null),pt(e)||(e.content instanceof h&&ut(e.content),ct(e));lt("afterSanitizeShadowDOM",t,null)}var ht=/^data-[\-\w.\u00B7-\uFFFF]/,dt=/^aria-[\-\w]+$/,ft=/^(?:(?:(?:f|ht)tps?|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,mt=/^(?:\w+script|data):/i,gt=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g;return p.sanitize=function(t,e){var r=void 0,i=void 0,n=void 0,a=void 0,o=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!st(t)){if("function"!=typeof t.toString)throw new TypeError("toString is not a function");t=t.toString()}if(!p.isSupported){if("object"===Et(c.toStaticHTML)||"function"==typeof c.toStaticHTML){if("string"==typeof t)return c.toStaticHTML(t);if(st(t))return c.toStaticHTML(t.outerHTML)}return t}if(W||E(e),p.removed=[],t instanceof d)1===(i=(r=M("\x3c!--\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName?r=i:r.appendChild(i);else{if(!q&&!X&&-1===t.indexOf("<"))return t;if(!(r=M(t)))return q?null:""}U&&C(r.firstChild);for(var s=ot(r);n=s.nextNode();)3===n.nodeType&&n===a||pt(n)||(n.content instanceof h&&ut(n.content),ct(n),a=n);if(q){if(J)for(o=k.call(r.ownerDocument);r.firstChild;)o.appendChild(r.firstChild);else o=r;return Q&&(o=I.call(l,o,!0)),o}return X?r.outerHTML:r.innerHTML},p.setConfig=function(t){E(t),W=!0},p.clearConfig=function(){nt=null,W=!1},p.addHook=function(t,e){"function"==typeof e&&(A[t]=A[t]||[],A[t].push(e))},p.removeHook=function(t){A[t]&&A[t].pop()},p.removeHooks=function(t){A[t]&&(A[t]=[])},p.removeAllHooks=function(){A={}},p}()},"object"==o(e)&&void 0!==t?t.exports=a():void 0===(n="function"==typeof(i=a)?i.call(e,r,e,t):i)||(t.exports=n)},function(t,Kt,e){(function(Jt,Qt){function Zt(t){return(Zt="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})(t)}!function(t,d){var i="__lodash_hash_undefined__",r=9007199254740991,f="[object Arguments]",m="[object Boolean]",g="[object Date]",v="[object Function]",y="[object GeneratorFunction]",x="[object Map]",b="[object Number]",_="[object Object]",n="[object Promise]",w="[object RegExp]",S="[object Set]",T="[object String]",P="[object Symbol]",a="[object WeakMap]",k="[object ArrayBuffer]",I="[object DataView]",A="[object Float32Array]",E="[object Float64Array]",C="[object Int8Array]",O="[object Int16Array]",M="[object Int32Array]",D="[object Uint8Array]",F="[object Uint8ClampedArray]",R="[object Uint16Array]",N="[object Uint32Array]",L=/\w*$/,e=/^\[object .+?Constructor\]$/,o=/^(?:0|[1-9]\d*)$/,B={};B[f]=B["[object Array]"]=B[k]=B[I]=B[m]=B[g]=B[A]=B[E]=B[C]=B[O]=B[M]=B[x]=B[b]=B[_]=B[w]=B[S]=B[T]=B[P]=B[D]=B[F]=B[R]=B[N]=!0,B["[object Error]"]=B[v]=B[a]=!1;var s="object"==(void 0===Jt?"undefined":Zt(Jt))&&Jt&&Jt.Object===Object&&Jt,l="object"==("undefined"==typeof self?"undefined":Zt(self))&&self&&self.Object===Object&&self,p=s||l||Function("return this")(),c="object"==Zt(Kt)&&Kt&&!Kt.nodeType&&Kt,u=c&&"object"==Zt(Qt)&&Qt&&!Qt.nodeType&&Qt,h=u&&u.exports===c;function j(t,e){return t.set(e[0],e[1]),t}function $(t,e){return t.add(e),t}function V(t,e,r,i){var n=-1,a=t?t.length:0;for(i&&a&&(r=t[++n]);++n<a;)r=e(r,t[n],n,t);return r}function H(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function z(t){var r=-1,i=Array(t.size);return t.forEach(function(t,e){i[++r]=[e,t]}),i}function G(e,r){return function(t){return e(r(t))}}function Y(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var X,W=Array.prototype,U=Function.prototype,q=Object.prototype,J=p["__core-js_shared__"],Q=(X=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+X:"",Z=U.toString,K=q.hasOwnProperty,tt=q.toString,et=RegExp("^"+Z.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=h?p.Buffer:d,it=p.Symbol,nt=p.Uint8Array,at=G(Object.getPrototypeOf,Object),ot=Object.create,st=q.propertyIsEnumerable,lt=W.splice,pt=Object.getOwnPropertySymbols,ct=rt?rt.isBuffer:d,ut=G(Object.keys,Object),ht=Lt(p,"DataView"),dt=Lt(p,"Map"),ft=Lt(p,"Promise"),mt=Lt(p,"Set"),gt=Lt(p,"WeakMap"),vt=Lt(Object,"create"),yt=Ht(ht),xt=Ht(dt),bt=Ht(ft),_t=Ht(mt),wt=Ht(gt),St=it?it.prototype:d,Tt=St?St.valueOf:d;function Pt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function kt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function It(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function At(t){this.__data__=new kt(t)}function Et(t,e){var r=Gt(t)||function(t){return function(t){return function(t){return!!t&&"object"==Zt(t)}(t)&&Yt(t)}(t)&&K.call(t,"callee")&&(!st.call(t,"callee")||tt.call(t)==f)}(t)?function(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}(t.length,String):[],i=r.length,n=!!i;for(var a in t)!e&&!K.call(t,a)||n&&("length"==a||$t(a,i))||r.push(a);return r}function Ct(t,e,r){var i=t[e];K.call(t,e)&&zt(i,r)&&(r!==d||e in t)||(t[e]=r)}function Ot(t,e){for(var r=t.length;r--;)if(zt(t[r][0],e))return r;return-1}function Mt(r,i,n,a,t,e,o){var s;if(a&&(s=e?a(r,t,e,o):a(r)),s!==d)return s;if(!Ut(r))return r;var l=Gt(r);if(l){if(s=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&K.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(r),!i)return function(t,e){var r=-1,i=t.length;e||(e=Array(i));for(;++r<i;)e[r]=t[r];return e}(r,s)}else{var p=jt(r),c=p==v||p==y;if(Xt(r))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(r,i);if(p==_||p==f||c&&!e){if(H(r))return e?r:{};if(s=function(t){return"function"!=typeof t.constructor||Vt(t)?{}:function(t){return Ut(t)?ot(t):{}}(at(t))}(c?{}:r),!i)return function(t,e){return Rt(t,Bt(t),e)}(r,function(t,e){return t&&Rt(e,qt(e),t)}(s,r))}else{if(!B[p])return e?r:{};s=function(t,e,r,i){var n=t.constructor;switch(e){case k:return Ft(t);case m:case g:return new n(+t);case I:return function(t,e){var r=e?Ft(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,i);case A:case E:case C:case O:case M:case D:case F:case R:case N:return function(t,e){var r=e?Ft(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,i);case x:return function(t,e,r){return V(e?r(z(t),!0):z(t),j,new t.constructor)}(t,i,r);case b:case T:return new n(t);case w:return function(t){var e=new t.constructor(t.source,L.exec(t));return e.lastIndex=t.lastIndex,e}(t);case S:return function(t,e,r){return V(e?r(Y(t),!0):Y(t),$,new t.constructor)}(t,i,r);case P:return function(t){return Tt?Object(Tt.call(t)):{}}(t)}}(r,p,Mt,i)}}o||(o=new At);var u=o.get(r);if(u)return u;if(o.set(r,s),!l)var h=n?function(t){return function(t,e,r){var i=e(t);return Gt(t)?i:function(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}(i,r(t))}(t,qt,Bt)}(r):qt(r);return function(t,e){for(var r=-1,i=t?t.length:0;++r<i&&!1!==e(t[r],r,t););}(h||r,function(t,e){h&&(t=r[e=t]),Ct(s,e,Mt(t,i,n,a,e,r,o))}),s}function Dt(t){return!(!Ut(t)||function(t){return!!Q&&Q in t}(t))&&(Wt(t)||H(t)?et:e).test(Ht(t))}function Ft(t){var e=new t.constructor(t.byteLength);return new nt(e).set(new nt(t)),e}function Rt(t,e,r,i){r||(r={});for(var n=-1,a=e.length;++n<a;){var o=e[n],s=i?i(r[o],t[o],o,r,t):d;Ct(r,o,s===d?t[o]:s)}return r}function Nt(t,e){var r=t.__data__;return function(t){var e=Zt(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function Lt(t,e){var r=function(t,e){return null==t?d:t[e]}(t,e);return Dt(r)?r:d}Pt.prototype.clear=function(){this.__data__=vt?vt(null):{}},Pt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Pt.prototype.get=function(t){var e=this.__data__;if(vt){var r=e[t];return r===i?d:r}return K.call(e,t)?e[t]:d},Pt.prototype.has=function(t){var e=this.__data__;return vt?e[t]!==d:K.call(e,t)},Pt.prototype.set=function(t,e){return this.__data__[t]=vt&&e===d?i:e,this},kt.prototype.clear=function(){this.__data__=[]},kt.prototype.delete=function(t){var e=this.__data__,r=Ot(e,t);return!(r<0)&&(r==e.length-1?e.pop():lt.call(e,r,1),!0)},kt.prototype.get=function(t){var e=this.__data__,r=Ot(e,t);return r<0?d:e[r][1]},kt.prototype.has=function(t){return-1<Ot(this.__data__,t)},kt.prototype.set=function(t,e){var r=this.__data__,i=Ot(r,t);return i<0?r.push([t,e]):r[i][1]=e,this},It.prototype.clear=function(){this.__data__={hash:new Pt,map:new(dt||kt),string:new Pt}},It.prototype.delete=function(t){return Nt(this,t).delete(t)},It.prototype.get=function(t){return Nt(this,t).get(t)},It.prototype.has=function(t){return Nt(this,t).has(t)},It.prototype.set=function(t,e){return Nt(this,t).set(t,e),this},At.prototype.clear=function(){this.__data__=new kt},At.prototype.delete=function(t){return this.__data__.delete(t)},At.prototype.get=function(t){return this.__data__.get(t)},At.prototype.has=function(t){return this.__data__.has(t)},At.prototype.set=function(t,e){var r=this.__data__;if(r instanceof kt){var i=r.__data__;if(!dt||i.length<199)return i.push([t,e]),this;r=this.__data__=new It(i)}return r.set(t,e),this};var Bt=pt?G(pt,Object):function(){return[]},jt=function(t){return tt.call(t)};function $t(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||o.test(t))&&-1<t&&t%1==0&&t<e}function Vt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||q)}function Ht(t){if(null!=t){try{return Z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(ht&&jt(new ht(new ArrayBuffer(1)))!=I||dt&&jt(new dt)!=x||ft&&jt(ft.resolve())!=n||mt&&jt(new mt)!=S||gt&&jt(new gt)!=a)&&(jt=function(t){var e=tt.call(t),r=e==_?t.constructor:d,i=r?Ht(r):d;if(i)switch(i){case yt:return I;case xt:return x;case bt:return n;case _t:return S;case wt:return a}return e}),t.cloneDeep=function(t){return Mt(t,!0,!0)};var Gt=Array.isArray;function Yt(t){return null!=t&&function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=r}(t.length)&&!Wt(t)}var Xt=ct||function(){return!1};function Wt(t){var e=Ut(t)?tt.call(t):"";return e==v||e==y}function Ut(t){var e=Zt(t);return!!t&&("object"==e||"function"==e)}function qt(t){return Yt(t)?Et(t):function(t){if(!Vt(t))return ut(t);var e=[];for(var r in Object(t))K.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}}(window.lodash=window.lodash||{})}).call(this,e(81),e(384)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(et,rt,it){var nt;!function(){function i(t,e,r){return t.call.apply(t.bind,arguments)}function n(e,r,t){if(!e)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,i),e.apply(r,t)}}return function(){return e.apply(r,arguments)}}function f(t,e,r){return(f=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function e(t,e){this.a=t,this.o=e||t,this.c=this.o.document}var s=!!window.FontFace;function l(t,e,r,i){if(e=t.c.createElement(e),r)for(var n in r)r.hasOwnProperty(n)&&("style"==n?e.style.cssText=r[n]:e.setAttribute(n,r[n]));return i&&e.appendChild(t.c.createTextNode(i)),e}function p(t,e,r){(t=t.c.getElementsByTagName(e)[0])||(t=document.documentElement),t.insertBefore(r,t.lastChild)}function r(t){t.parentNode&&t.parentNode.removeChild(t)}function m(t,e,r){e=e||[],r=r||[];for(var i=t.className.split(/\s+/),n=0;n<e.length;n+=1){for(var a=!1,o=0;o<i.length;o+=1)if(e[n]===i[o]){a=!0;break}a||i.push(e[n])}for(e=[],n=0;n<i.length;n+=1){for(a=!1,o=0;o<r.length;o+=1)if(i[n]===r[o]){a=!0;break}a||e.push(i[n])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function a(t,e){for(var r=t.className.split(/\s+/),i=0,n=r.length;i<n;i++)if(r[i]==e)return!0;return!1}function c(t,e,r){function i(){o&&n&&(o(a),o=null)}e=l(t,"link",{rel:"stylesheet",href:e,media:"all"});var n=!1,a=null,o=r||null;s?(e.onload=function(){n=!0,i()},e.onerror=function(){n=!0,a=Error("Stylesheet failed to load"),i()}):setTimeout(function(){n=!0,i()},0),p(t,"head",e)}function u(t,e,r,i){var n=t.c.getElementsByTagName("head")[0];if(n){var a=l(t,"script",{src:e}),o=!1;return a.onload=a.onreadystatechange=function(){o||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(o=!0,r&&r(null),a.onload=a.onreadystatechange=null,"HEAD"==a.parentNode.tagName&&n.removeChild(a))},n.appendChild(a),setTimeout(function(){o||(o=!0,r&&r(Error("Script load timeout")))},i||5e3),a}return null}function h(){this.a=0,this.c=null}function d(t){return t.a++,function(){t.a--,v(t)}}function g(t,e){t.c=e,v(t)}function v(t){0==t.a&&t.c&&(t.c(),t.c=null)}function y(t){this.a=t||"-"}function x(t,e){this.c=t,this.f=4,this.a="n";var r=(e||"n4").match(/^([nio])([1-9])$/i);r&&(this.a=r[1],this.f=parseInt(r[2],10))}function b(t){var e=[];t=t.split(/,\s*/);for(var r=0;r<t.length;r++){var i=t[r].replace(/['"]/g,"");-1!=i.indexOf(" ")||/^\d/.test(i)?e.push("'"+i+"'"):e.push(i)}return e.join(",")}function _(t){return t.a+t.f}function w(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&&(e="italic"),e}function S(t,e){this.c=t,this.f=t.o.document.documentElement,this.h=e,this.a=new y("-"),this.j=!1!==e.events,this.g=!1!==e.classes}function T(t){if(t.g){var e=a(t.f,t.a.c("wf","active")),r=[],i=[t.a.c("wf","loading")];e||r.push(t.a.c("wf","inactive")),m(t.f,r,i)}P(t,"inactive")}function P(t,e,r){t.j&&t.h[e]&&(r?t.h[e](r.c,_(r)):t.h[e]())}function k(){this.c={}}function I(t,e){this.c=t,this.f=e,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function A(t){p(t.c,"body",t.a)}function E(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b(t.c)+";font-style:"+w(t)+";font-weight:"+t.f+"00;"}function C(t,e,r,i,n,a){this.g=t,this.j=e,this.a=i,this.c=r,this.f=n||3e3,this.h=a||void 0}function O(t,e,r,i,n,a,o){this.v=t,this.B=e,this.c=r,this.a=i,this.s=o||"BESbswy",this.f={},this.w=n||3e3,this.u=a||null,this.m=this.j=this.h=this.g=null,this.g=new I(this.c,this.s),this.h=new I(this.c,this.s),this.j=new I(this.c,this.s),this.m=new I(this.c,this.s),t=E(t=new x(this.a.c+",serif",_(this.a))),this.g.a.style.cssText=t,t=E(t=new x(this.a.c+",sans-serif",_(this.a))),this.h.a.style.cssText=t,t=E(t=new x("serif",_(this.a))),this.j.a.style.cssText=t,t=E(t=new x("sans-serif",_(this.a))),this.m.a.style.cssText=t,A(this.g),A(this.h),A(this.j),A(this.m)}y.prototype.c=function(t){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},C.prototype.start=function(){var i=this.c.o.document,n=this,a=o(),t=new Promise(function(r,t){!function e(){o()-a>=n.f?t():i.fonts.load(function(t){return w(t)+" "+t.f+"00 300px "+b(t.c)}(n.a),n.h).then(function(t){1<=t.length?r():setTimeout(e,25)},function(){t()})}()}),r=null,e=new Promise(function(t,e){r=setTimeout(e,n.f)});Promise.race([e,t]).then(function(){r&&(clearTimeout(r),r=null),n.g(n.a)},function(){n.j(n.a)})};var M={D:"serif",C:"sans-serif"},D=null;function F(){if(null===D){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);D=!!t&&(parseInt(t[1],10)<536||536===parseInt(t[1],10)&&parseInt(t[2],10)<=11)}return D}function R(t,e,r){for(var i in M)if(M.hasOwnProperty(i)&&e===t.f[M[i]]&&r===t.f[M[i]])return!0;return!1}function N(t){var e,r=t.g.a.offsetWidth,i=t.h.a.offsetWidth;(e=r===t.f.serif&&i===t.f["sans-serif"])||(e=F()&&R(t,r,i)),e?o()-t.A>=t.w?F()&&R(t,r,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?L(t,t.v):L(t,t.B):function(t){setTimeout(f(function(){N(this)},t),50)}(t):L(t,t.v)}function L(t,e){setTimeout(f(function(){r(this.g.a),r(this.h.a),r(this.j.a),r(this.m.a),e(this.a)},t),0)}function B(t,e,r){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=r}O.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var j=null;function $(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&m(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),P(t,"active")):T(t.a))}function t(t){this.j=t,this.a=new k,this.h=0,this.f=this.g=!0}function V(t,e){this.c=t,this.a=e}function H(t,e){this.c=t,this.a=e}function z(t,e){this.c=t||"https://fonts.googleapis.com/css",this.a=[],this.f=[],this.g=e||""}B.prototype.g=function(t){var e=this.a;e.g&&m(e.f,[e.a.c("wf",t.c,_(t).toString(),"active")],[e.a.c("wf",t.c,_(t).toString(),"loading"),e.a.c("wf",t.c,_(t).toString(),"inactive")]),P(e,"fontactive",t),this.m=!0,$(this)},B.prototype.h=function(t){var e=this.a;if(e.g){var r=a(e.f,e.a.c("wf",t.c,_(t).toString(),"active")),i=[],n=[e.a.c("wf",t.c,_(t).toString(),"loading")];r||i.push(e.a.c("wf",t.c,_(t).toString(),"inactive")),m(e.f,i,n)}P(e,"fontinactive",t),$(this)},t.prototype.load=function(t){this.c=new e(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(n,t,e){var r=[],i=e.timeout;!function(t){t.g&&m(t.f,[t.a.c("wf","loading")]),P(t,"loading")}(t);r=function(t,e,r){var i,n=[];for(i in e)if(e.hasOwnProperty(i)){var a=t.c[i];a&&n.push(a(e[i],r))}return n}(n.a,e,n.c);var a=new B(n.c,t,i);for(n.h=r.length,t=0,e=r.length;t<e;t++)r[t].load(function(t,e,r){var i,p,c,u,h,d;p=a,c=t,u=e,h=r,d=0==--(i=n).h,(i.f||i.g)&&setTimeout(function(){var t=h||null,e=u||{};if(0===c.length&&d)T(p.a);else{p.f+=c.length,d&&(p.j=d);var r,i=[];for(r=0;r<c.length;r++){var n=c[r],a=e[n.c],o=p.a,s=n;if(o.g&&m(o.f,[o.a.c("wf",s.c,_(s).toString(),"loading")]),P(o,"fontloading",s),(o=null)===j)if(window.FontFace){var s=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),l=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);j=s?42<parseInt(s[1],10):!l}else j=!1;o=j?new C(f(p.g,p),f(p.h,p),p.c,n,p.s,a):new O(f(p.g,p),f(p.h,p),p.c,n,p.s,t,a),i.push(o)}for(r=0;r<i.length;r++)i[r].start()}},0)})}(this,new S(this.c,t),t)},V.prototype.load=function(o){var e=this,s=e.a.projectId,t=e.a.version;if(s){var l=e.c.o;u(this.c,(e.a.api||"https://fast.fonts.net/jsapi")+"/"+s+".js"+(t?"?v="+t:""),function(t){t?o([]):(l["__MonotypeConfiguration__"+s]=function(){return e.a},function t(){if(l["__mti_fntLst"+s]){var e,r=l["__mti_fntLst"+s](),i=[];if(r)for(var n=0;n<r.length;n++){var a=r[n].fontfamily;null!=r[n].fontStyle&&null!=r[n].fontWeight?(e=r[n].fontStyle+r[n].fontWeight,i.push(new x(a,e))):i.push(new x(a))}o(i)}else setTimeout(function(){t()},50)}())}).id="__MonotypeAPIScript__"+s}else o([])},H.prototype.load=function(t){var e,r,i=this.a.urls||[],n=this.a.families||[],a=this.a.testStrings||{},o=new h;for(e=0,r=i.length;e<r;e++)c(this.c,i[e],d(o));var s=[];for(e=0,r=n.length;e<r;e++)if((i=n[e].split(":"))[1])for(var l=i[1].split(","),p=0;p<l.length;p+=1)s.push(new x(i[0],l[p]));else s.push(new x(i[0]));g(o,function(){t(s,a)})};function G(t){this.f=t,this.a=[],this.c={}}var Y={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},X={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},W={i:"i",italic:"i",n:"n",normal:"n"},U=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function q(t,e){this.c=t,this.a=e}var J={Arimo:!0,Cousine:!0,Tinos:!0};function Q(t,e){this.c=t,this.a=e}function Z(t,e){this.c=t,this.f=e,this.a=[]}q.prototype.load=function(t){var e=new h,r=this.c,i=new z(this.a.api,this.a.text),n=this.a.families;!function(t,e){for(var r=e.length,i=0;i<r;i++){var n=e[i].split(":");3==n.length&&t.f.push(n.pop());var a="";2==n.length&&""!=n[1]&&(a=":"),t.a.push(n.join(a))}}(i,n);var a=new G(n);!function(t){for(var e=t.f.length,r=0;r<e;r++){var i=t.f[r].split(":"),n=i[0].replace(/\+/g," "),a=["n4"];if(2<=i.length){var o;if(o=[],s=i[1])for(var s,l=(s=s.split(",")).length,p=0;p<l;p++){var c;if((c=s[p]).match(/^[\w-]+$/))if(null==(h=U.exec(c.toLowerCase())))c="";else{if(c=null==(c=h[2])||""==c?"n":W[c],null==(h=h[1])||""==h)h="4";else var u=X[h],h=u||(isNaN(h)?"4":h.substr(0,1));c=[c,h].join("")}else c="";c&&o.push(c)}0<o.length&&(a=o),3==i.length&&(o=[],0<(i=(i=i[2])?i.split(","):o).length&&(i=Y[i[0]])&&(t.c[n]=i))}for(t.c[n]||(i=Y[n])&&(t.c[n]=i),i=0;i<a.length;i+=1)t.a.push(new x(n,a[i]))}}(a),c(r,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,r=[],i=0;i<e;i++)r.push(t.a[i].replace(/ /g,"+"));return e=t.c+"?family="+r.join("%7C"),0<t.f.length&&(e+="&subset="+t.f.join(",")),0<t.g.length&&(e+="&text="+encodeURIComponent(t.g)),e}(i),d(e)),g(e,function(){t(a.a,a.c,J)})},Q.prototype.load=function(o){var t=this.a.id,s=this.c.o;t?u(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)o([]);else if(s.Typekit&&s.Typekit.config&&s.Typekit.config.fn){t=s.Typekit.config.fn;for(var e=[],r=0;r<t.length;r+=2)for(var i=t[r],n=t[r+1],a=0;a<n.length;a++)e.push(new x(i,n[a]));try{s.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}o(e)}},2e3):o([])},Z.prototype.load=function(p){var t=this.f.id,e=this.c.o,c=this;t?(e.__webfontfontdeckmodule__||(e.__webfontfontdeckmodule__={}),e.__webfontfontdeckmodule__[t]=function(t,e){for(var r=0,i=e.fonts.length;r<i;++r){var n=e.fonts[r];c.a.push(new x(n.name,(a="font-weight:"+n.weight+";font-style:"+n.style,l=s=o=void 0,o=4,s="n",l=null,a&&((l=a.match(/(normal|oblique|italic)/i))&&l[1]&&(s=l[1].substr(0,1).toLowerCase()),(l=a.match(/([1-9]00|normal|bold)/i))&&l[1]&&(/bold/i.test(l[1])?o=7:/[1-9]00/.test(l[1])&&(o=parseInt(l[1].substr(0,1),10)))),s+o)))}var a,o,s,l;p(c.a)},u(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(t){return t.o.location.hostname||t.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&p([])})):p([])};var K=new t(window);K.a.c.custom=function(t,e){return new H(e,t)},K.a.c.fontdeck=function(t,e){return new Z(e,t)},K.a.c.monotype=function(t,e){return new V(e,t)},K.a.c.typekit=function(t,e){return new Q(e,t)},K.a.c.google=function(t,e){return new q(e,t)};var tt={load:f(K.load,K)};void 0===(nt=function(){return tt}.call(rt,it,rt,et))||(et.exports=nt)}()},function(t,e){function n(t){return(n="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})(t)}function r(t){t=t||{},this.namespace=t.namespace||"kvs",t.seconds&&(this.seconds=t.seconds||2592e3)}window.Kvs=(r.prototype.get=function(t){if(t=this.namespace+"-"+t,!this.isLocalStorageSupported()||void 0===localStorage[t])return null;var e=JSON.parse(localStorage[t]),r=(new Date).getTime();if(void 0!==e.meta.exp&&e.meta.exp<r)return delete localStorage[t],null;switch(e.meta.type){case"string":return e.data;case"undefined":case"null":return e.data;case"object":default:return JSON.parse(e.data)}},r.prototype.set=function(t,e,r){if(this.isLocalStorageSupported()){var i={meta:{type:n(e)}};switch(void 0===r&&void 0===this.seconds||(i.meta.exp=(new Date).getTime()+1e3*parseInt(r||this.seconds)),i.meta.type){case"string":i.data=e;break;case"object":default:i.data=JSON.stringify(e)}localStorage[this.namespace+"-"+t]=JSON.stringify(i)}},r.prototype.delete=function(t){this.isLocalStorageSupported()&&delete localStorage[this.namespace+"-"+t]},r.prototype.remove=function(t){if(this.isLocalStorageSupported()){var e=this.get(t);return this.delete(t),e}},r.prototype.isLocalStorageSupported=function(){try{var t=window.localStorage;return t.setItem("test","1"),t.removeItem("test"),!0}catch(t){return!1}},r)},function(t,e){function r(t){return(r="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})(t)}window.prx=window.prx||{},window.sd=window.sd||{},window.evt=window.evt||{},window.pee=window.pee||{},window.proto&&(window.prxy=window.prxy||window.proto.data),prx.kvs=new Kvs({namespace:"proto"}),prx.utils=window.prx.utils||{},prx.utils.dynamic_properties=["listitems","buttons","options","tabs"],prx.utils.XSSJSWhitelistForFroala={b:["style"],br:[],div:["style"],em:["style"],i:["style"],span:["style","class"],strong:["style"],strike:["style"],s:["style"],u:["style"],font:[]},prx.utils.setCookie=function(t,e,r){var i=new Date;i.setDate(i.getDate()+r);var n=escape(e)+(null==r?"":"; expires="+i.toUTCString());document.cookie=t+"="+n},prx.utils.getCookie=function(t){var e,r,i,n=document.cookie.split(";");for(e=0;e<n.length;e++)if(r=n[e].substr(0,n[e].indexOf("=")),i=n[e].substr(n[e].indexOf("=")+1),(r=r.replace(/^\s+|\s+$/g,""))==t)return unescape(i)},prx.utils.deleteCookie=function(t){document.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"},prx.utils.getGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},prx.utils.isGuid=function(t){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-?[0-9a-fA-F]{12}$/.test(t)},prx.utils.getColor=function(t){if("string"==typeof t){if(!/^[0-9a-f]{3,6}$/i.test(t))try{t=JSON.parse(t)}catch(t){}"number"==typeof t&&(t=""+t)}return"object"==r(t)?t:void 0===t||null==t?"":"none"==(t=t.trim())?"rgba(0,0,0,0)":0==t?"rgba(0,0,0,1)":("rgba"==t.substring(0,4)&&3<(t.match(/,/g)||[]).length&&(t=t.replace(/,([^,]*)$/,".$1")),t==t.replace(/[^A-F0-9]/gi,"")?"#"+t:t)},prx.utils.getBgCss=function(t){return prx.gradients.getBgCss(t)},prx.utils.getBgCssByProperty=function(t,e){return prx.gradients.getBgCssByProperty(t,e)},prx.utils.getBgCssByValue=function(t){return prx.gradients.getBgCssByValue(t)},prx.utils.checkColorPickerInputOnUpdate=function(t){var e=/[#a-f0-9]/i;return!!(e.test(t)||/^rgb\((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\s?,\s?){2}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\)/.test(t)||/rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)/gi.test(t)||/^hsl\(\s*(0|[1-9]\d?|[12]\d\d|3[0-5]\d)\s*,\s*((0|[1-9]\d?|100)%)\s*,\s*((0|[1-9]\d?|100)%)\s*\)$/.test(t))&&(e.test(t)&&"#"!==t.substring(0,1)?"#"+t:t)},prx.utils.getOpacity=function(t){if(void 0===t)return"";return/^[A-Z0-9,.%]+$/.test(t)?t:1},prx.utils.checkURL=function(t){return/^(http|https)/i.test(t)?t:"url"},prx.utils.isURL=function(t){return t===prx.utils.checkURL(t)},prx.utils.getNormalizedFilename=function(t){return void 0===t?"":t=t.replace(/[<,>,:,"",/,\,|,?,*]/gi,"-")},prx.utils.escapeHTML=function(t){return"string"!=typeof t?t:t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/\\/g,"&#92;")},prx.utils.unEscapeHTML=function(t){return"string"!=typeof t?t:t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'").replace(/&#92;/g,"\\")},prx.utils.escapeEditableProperties=function(t){return"string"!=typeof t?t:t.replace(/&/g,"&amp;").replace(/(?!<br>|<br\/>|<br \/>)</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},prx.utils.escapeForRegEx=function(t){return"string"!=typeof t?t:t.replace(/"/g,"\\\\").replace(/\//g,"\\/").replace(/\*/g,"\\*").replace(/\+/g,"\\+").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\-/g,"\\-").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},prx.utils.escapeRichText=function(t,e){return void 0===e&&(e=prx.utils.XSSJSWhitelistForFroala),"string"!=typeof t?t:t=(t=filterXSS(t,{whiteList:e,stripIgnoreTag:!0,stripIgnoreTagBody:["script"]})).replace(/&#8203;/gi,"")},prx.utils.getEventPageXY=function(t){var e={x:0,y:0};if("touchstart"==t.type||"touchmove"==t.type||"touchend"==t.type||"touchcancel"==t.type){var r=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];e.x=r.pageX,e.y=r.pageY}else"click"!=t.type&&"mousedown"!=t.type&&"mouseup"!=t.type&&"mousemove"!=t.type&&"mouseover"!=t.type&&"mouseout"!=t.type&&"mouseenter"!=t.type&&"mouseleave"!=t.type||(e.x=t.pageX,e.y=t.pageY);return e},prx.utils.getAssetsServer=function(t){if(t){for(var e=prx.nodejsassetsserver.maxsubdomains,r=0,i=0;i<t.length;i++)r+=t.charCodeAt(i);return(e<(r=r%(e-1)+2)||r<1)&&(r=2),prx.nodejsassetsserver.subdomainprefix+r+prx.nodejsassetsserver.host}return prx.nodejsassetsserver.subdomainprefix+"1"+prx.nodejsassetsserver.host},prx.utils.forceWebkitRerender=function(t){var e=t.get(0),r=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=r},prx.utils.multilineEllipsis=function(t,e,o,s,l){l||(l=25),!0!==s&&(s=!1);var r=$(t).clone(!0,!0);$(e,r).each(function(t,e){var r="",i=0,n="";if(0!==$(e).outerHeight())for(;$(e).outerHeight()>o;){n=$(e).text(),s&&-1!=n.indexOf(".")&&(r=n.substring(n.lastIndexOf(".")),n=n.substring(0,n.lastIndexOf(".")),i=r.length);var a=n.replace(/\W*\s(\S)*$/,"...");if(n.length==a.length){a=a.substr(0,l-3-i)+"..."+r,$(e).text(a);break}n+=r,$(e).text(a)}else(n=$(e).text()).length>l&&(s&&-1!=n.indexOf(".")&&(r=n.substring(n.lastIndexOf(".")+1),n=n.substring(0,n.lastIndexOf(".")),i=r.length),n=n.substr(0,l-3-i)+"..."+r,$(e).text(n))}),$(t).replaceWith(r)},prx.utils.bindScreenshotsFunctionality=function(t){$(t).find(".thumbnail-img").on("error",function(){$(this).hide(),$(this).siblings(".dummy-img").hide(),$(this).siblings(".loading-placeholder-img").show()}),$(t).find(".thumbnail-img").on("load",function(){$(this).siblings(".loading-placeholder-img").hide(),$(this).show(),$(this).parents(".containerLI, .screenLI").hasClass("has-multiple-states")&&$(this).siblings(".dummy-img").show()})},prx.utils.arraysAreIdentical=function(t,e){if(t.length!==e.length)return!1;for(var r=0,i=t.length;r<i;r++)if(t[r]!==e[r])return!1;return!0},prx.utils.getNewBezierEase=function(t,e,r,i){return new Ease(BezierEasing(t,e,r,i))},prx.utils.debounceFunction=function(i,n,a){var o;return function(){var t=this,e=arguments,r=a&&!o;clearTimeout(o),o=setTimeout(function(){o=null,a||i.apply(t,e)},n),r&&i.apply(t,e)}},prx.utils.raf=function(t){window.requestAnimationFrame(t)},prx.utils.isValidUrl=function(t){return new RegExp(/^(?:(?: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)},prx.utils.isFaceTimeUrl=function(t){return!(!t.startsWith("facetime:")&&!t.startsWith("facetime-audio:"))&&!(-1<(t=t.replace(/^facetime:/,"").replace(/^facetime-audio:/,"")).indexOf(":"))},prx.utils.isValidUserPreset=function(t){return!(!/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-?[0-9a-fA-F]{12}$/.test(t)||void 0===prx.easing._customEasings[t])},prx.utils.isSpringrk4=function(t){return"springrk4("===t.substr(0,10)},prx.utils.getDefaultDefaultTransition=function(){return{duration:250,delay:0,easing:"out"}},prx.utils.isSafariVorGreater=function(t){if("undefined"==typeof navigator||"undefined"!=typeof navigator&&void 0===navigator.userAgent)return!1;if(-1==navigator.userAgent.indexOf("Safari")||-1!==navigator.userAgent.indexOf("Chrome"))return!1;var e=navigator.userAgent.substring(navigator.userAgent.indexOf("Version")).split("/")[1].replace("Safari","").trim();return-1<prx.utils.compareVersions(e,t)},prx.utils.compareVersions=function(t,e){var r=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;return function(t,e){if(!d(t)||!d(e))return-2;for(var r=u(t),i=u(e),n=0;n<Math.max(r.length-1,i.length-1);n++){var a=parseInt(r[n]||0,10),o=parseInt(i[n]||0,10);if(o<a)return 1;if(a<o)return-1}var s=r[r.length-1],l=i[i.length-1];if(s&&l){var p=s.split(".").map(h),c=l.split(".").map(h);for(n=0;n<Math.max(p.length,c.length);n++){if(void 0===p[n]||"string"==typeof c[n]&&"number"==typeof p[n])return-1;if(void 0===c[n]||"string"==typeof p[n]&&"number"==typeof c[n])return 1;if(p[n]>c[n])return 1;if(c[n]>p[n])return-1}}else if(s||l)return s?-1:1;return 0}(t,e);function u(t){var e=t.replace(/^v/,"").replace(/\+.*$/,""),r=function(t,e){return-1===t.indexOf(e)?t.length:t.indexOf(e)}(e,"-"),i=e.substring(0,r).split(".");return i.push(e.substring(r+1)),i}function h(t){return isNaN(Number(t))?t:Number(t)}function d(t){return"string"==typeof t&&!!r.test(t)}},prx.utils.isMac=function(){return-1!=navigator.appVersion.indexOf("Mac")},prx.utils.isWindows=function(){return-1!==window.navigator.userAgent.indexOf("Windows")}},function(t,e){Array.prototype.indexOf||(Array.prototype.indexOf=function(t){for(var e=this.length;-1<--e;)if(this[e]==t)return e;return e}),Array.prototype.unique||(Array.prototype.unique=function(){for(var t=[],e=0;e<this.length;)-1===t.indexOf(this[e++])&&t.push(this[e-1]);return t}),Array.prototype.insertArrayAt||(Array.prototype.insertArrayAt=function(t,e){return this.splice(0,t).concat(e).concat(this)}),Array.prototype.first||(Array.prototype.first=function(){return this[0]}),Array.prototype.last||(Array.prototype.last=function(){return this[this.length-1]}),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i){i=Object(i);for(var n=Object.keys(i),a=0,o=n.length;a<o;a++){var s=n[a],l=Object.getOwnPropertyDescriptor(i,s);void 0!==l&&l.enumerable&&(e[s]=i[s])}}}return e}}),Array.prototype.every||(Array.prototype.every=function(t,e){"use strict";var r,i;if(null==this)throw new TypeError("this is null or not defined");var n=Object(this),a=n.length>>>0;if("function"!=typeof t)throw new TypeError;for(1<arguments.length&&(r=e),i=0;i<a;){var o;if(i in n)if(o=n[i],!t.call(r,o,i,n))return!1;i++}return!0}),Array.prototype.includes||(Array.prototype.includes=function(t){"use strict";if(null==this)throw new TypeError("Array.prototype.includes called on null or undefined");var e=Object(this),r=parseInt(e.length,10)||0;if(0===r)return!1;var i,n,a=parseInt(arguments[1],10)||0;for(0<=a?i=a:(i=r+a)<0&&(i=0);i<r;){if(t===(n=e[i])||t!=t&&n!=n)return!0;i++}return!1}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),i=r.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=e,a=0;a<i;){var o=r[a];if(t.call(n,o,a,r))return o;a++}},configurable:!0,writable:!0}),String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)})},function(t,e){function o(t){return lodash.cloneDeep(t)}function l(t,e,r,i){void 0===t.wtype&&(t.wtype="fixed"),void 0===t.htype&&(t.htype="fixed"),void 0===t.hpos&&(t.hpos="left"),void 0===t.vpos&&(t.vpos="top");var n={},a=prx.orientation.getDims(e,r,i),o=parseFloat(t.width),s=parseFloat(t.height),l=parseFloat(t.left),p=parseFloat(t.top);return"variable"==t.wtype&&(o=a[0]-o),"variable"==t.htype&&(s=a[1]-s),"right"==t.hpos&&(l=a[0]-l-o),"center"==t.hpos&&(l=(a[0]-o)/2),"bottom"==t.vpos&&(p=a[1]-p-s),"middle"==t.vpos&&(p=(a[1]-s)/2),n.width=o,n.height=s,n.left=l,n.top=p,n.rotation=t.rotation||0,n.x=n.left+n.width/2,n.y=n.top+n.height/2,n.x1=n.left,n.x2=n.left+n.width,n.y1=n.top,n.y2=n.top+n.height,c(n)}function c(t){var e=o(t);return e.rad=parseFloat((e.rotation*(Math.PI/180)).toFixed(8)),e.rWidth=Math.abs(e.width*Math.cos(e.rad))+Math.abs(e.height*Math.sin(e.rad)),e.rHeight=Math.abs(e.width*Math.sin(e.rad))+Math.abs(e.height*Math.cos(e.rad)),e.rLeft=e.left-Math.round((e.rWidth-e.width)/2),e.rTop=e.top-Math.round((e.rHeight-e.height)/2),e}function p(t,e){if(void 0===t||0===t.length)return{x:0,y:0};void 0===e&&(e=0),e%=360;var i,n,a,o,s=[],r=parseFloat((e/180*Math.PI).toFixed(8)),l=parseFloat(((e-90)/180*Math.PI).toFixed(8)),p=Math.tan(r),c=Math.tan(l);t.forEach(function(t){var e,r,i,n;e=t.left,r=t.top,i=Math.cos(t.rad)*(e-t.x)-Math.sin(t.rad)*(r-t.y)+t.x,n=Math.sin(t.rad)*(e-t.x)+Math.cos(t.rad)*(r-t.y)+t.y,s.push({x:i,y:n}),e=t.left+t.width,r=t.top,i=Math.cos(t.rad)*(e-t.x)-Math.sin(t.rad)*(r-t.y)+t.x,n=Math.sin(t.rad)*(e-t.x)+Math.cos(t.rad)*(r-t.y)+t.y,s.push({x:i,y:n}),e=t.left,r=t.top+t.height,i=Math.cos(t.rad)*(e-t.x)-Math.sin(t.rad)*(r-t.y)+t.x,n=Math.sin(t.rad)*(e-t.x)+Math.cos(t.rad)*(r-t.y)+t.y,s.push({x:i,y:n}),e=t.left+t.width,r=t.top+t.height,i=Math.cos(t.rad)*(e-t.x)-Math.sin(t.rad)*(r-t.y)+t.x,n=Math.sin(t.rad)*(e-t.x)+Math.cos(t.rad)*(r-t.y)+t.y,s.push({x:i,y:n})});var u=s.first();i=n=u.y-p*u.x,a=o=u.y-c*u.x,s.forEach(function(t){var e=t.y-p*t.x,r=t.y-c*t.x;e<n&&(n=e),i<e&&(i=e),r<o&&(o=r),a<r&&(a=r)});var h=(a-i)/(p-c),d=(o-n)/(p-c),f=(h+d)/2,m=(p*h+i+(p*d+n))/2;return{x:Math.round(100*f)/100,y:Math.round(100*m)/100}}function u(t,e,r){var i={};r<0&&(r%=360,r+=360),i.rotation=t.rotation+r,i.rotation%=360;var n=t.x-e.x,a=t.y-e.y,o=Math.sqrt(Math.pow(n,2)+Math.pow(a,2)),s=parseFloat(Math.atan2(a,n)/(Math.PI/180).toFixed(8));s<0&&(s+=360);var l=(s+r)%360,p=parseFloat(Math.abs(Math.sin(l*Math.PI/180)*o).toFixed(8)),c=parseFloat(Math.abs(Math.cos(l*Math.PI/180)*o).toFixed(8));return 90<l&&l<=180?c=-c:180<l&&l<=270?(c=-c,p=-p):270<l&&l<=360&&(p=-p),i.top=Math.round(e.y+p-t.height/2),i.left=Math.round(e.x+c-t.width/2),i.width=Math.round(t.width),i.height=Math.round(t.height),i.x=i.left+i.width/2,i.y=i.top+i.height/2,i}prx.toolbox={clone:o,indexOf:function(t,e,r){for(var i=0;i<t.length;i++)if(1==r(t[i],e))return i;return-1},itemDimensions:l,rotatedDims:c,center:p,rotate:u,calculateBox:function(t,e,r,i,n){if(0===t.length)return{};if(1===t.length)return l(t[0],r,i,n);var a=p(t,e),o=t.map(function(t){return l(u(t,a,360-e),r,i,n)}),s={x1:999999,y1:999999,x2:-999999,y2:-999999};return o.forEach(function(t){s.x1=t.rLeft<s.x1?t.rLeft:s.x1,s.y1=t.rTop<s.y1?t.rTop:s.y1,s.x2=t.rLeft+t.rWidth>s.x2?t.rLeft+t.rWidth:s.x2,s.y2=t.rTop+t.rHeight>s.y2?t.rTop+t.rHeight:s.y2}),s.x1=Math.round(s.x1),s.x2=Math.round(s.x2),s.y1=Math.round(s.y1),s.y2=Math.round(s.y2),s.rotation=Math.round(e),s.width=s.x2-s.x1,s.height=s.y2-s.y1,s.left=s.x1,s.top=s.y1,l(s,r,i,n)},toArray:function(t,e){var r,i,n,a=[];if(void 0===e)for(i in t)t.hasOwnProperty(i)&&a.push(o(t[i]));else for(i in e=e.split(".").filter(function(t){return 0!==t.length}),t)if(t.hasOwnProperty(i)){for(r=o(t[i]),n=o(e);n.length;)r=void 0===r[n[0]]?void 0:r[n.shift()];void 0!==r&&a.push(r)}return a},getGroupDimensions:function(t){var e=prxy[prx.stc.helper.getType()][prx.stc.helper.getIndex()].states[prxy.iSelectedState].groups[t],r=prx.editingtools.group.getGroup(t).kids.map(function(t){return prx.toolbox.itemDimensions(t.item)});return prx.toolbox.calculateBox(r,e.rotation)}}},function(t,e){prx.css={},prx.css.RGBA=function(t,e,r){void 0===r&&(r=1);var i=parseInt(t.substr(0,2),16),n=parseInt(t.substr(2,2),16),a=parseInt(t.substr(4,2),16);return"rgba("+Math.round(i+e)+","+Math.round(n+e)+","+Math.round(a+e)+", "+r+")"},prx.css.gradient=function(t,e){void 0===e&&(e="to center bottom");var r="",i="-moz-linear-gradient(",n="-webkit-gradient(",a="linear-gradient(";switch(e){case"to center bottom":i+="center top",n+="linear, left top, left bottom",a+="to center bottom";break;case"to center top":i+="center bottom",n+="linear, left bottom, left top",a+="to center top";break;case"to right center":i+="left center",n+="linear, left top, right top",a+="to right center";break;case"to left center":i+="right center",n+="linear, right top, left top",a+="to left center";break;case"45deg":i+="45deg",n+="linear, left bottom, right top",a+=e;break;case"135deg":i+="-45deg",n+="linear, left top, right bottom",a+=e;break;case"-45deg":i+="135deg",n+="linear, right bottom, left top",a+=e;break;case"225deg":i+="-135deg",n+="linear, right top, left bottom",a+=e}for(var o=0;o<t.length;o++)i+=", "+t[o].c+" "+t[o].p+"%",n+=", color-stop("+t[o].p/100+", "+t[o].c+")",a+=", "+t[o].c+" "+t[o].p+"%";return r+="background: "+t[0].c+"; ",r+="background-image: "+i+"); ",r+="background-image: "+n+"); ",r+="background-image: "+a+"); "},prx.css.borderRadius=function(t){return $.isArray(t)&&4==t.length?(cR="",null!=t[0]&&(cR+="border-top-left-radius: "+t[0]+"px; "),null!=t[1]&&(cR+="border-top-right-radius: "+t[1]+"px; "),null!=t[2]&&(cR+="border-bottom-right-radius: "+t[2]+"px; "),null!=t[3]&&(cR+="border-bottom-left-radius: "+t[3]+"px; "),cR):"border-radius: "+t+";"},prx.css.boxShadow=function(t){$.isArray(t)||(t=[t]);var e="-moz-box-shadow: ",r="-webkit-box-shadow: ",i="box-shadow: ";cR="";for(var n=0;n<t.length;n++)0<n&&(e+=", ",r+=", ",i+=", "),e+=t[n],r+=t[n],i+=t[n],cR+=e+"; "+r+"; "+i+"; ";return cR},prx.css.flexJustifyContent=function(t){var e="";switch(t){case"left":t="flex-start",e="start";break;case"right":t="flex-end",e="end";break;default:e="center"}var r="";return r+="-ms-justify-content: "+t+";",r+="-webkit-justify-content: "+t+";",r+="justify-content: "+t+";",r+="-ms-box-pack: "+e+";",r+="-webkit-box-pack: "+e+";",r+="box-pack: "+e+";",r+="-ms-flex-pack: "+e+";",r+="-webkit-flex-pack: "+e+";",r+="flex-pack: "+e+";"},prx.css.flexAlignContent=function(t){var e="";switch(t){case"left":t="flex-start",e="start";break;case"right":t="flex-end",e="end";break;default:e="center"}var r="";return r+="-ms-align-items: "+t+";",r+="-webkit-align-items: "+t+";",r+="align-items: "+t+";",r+=" -ms-box-align: "+e+";",r+="-webkit-box-align: "+e+";",r+="box-align: "+e+";",r+="-ms-flex-align: "+e+";",r+="-webkit-flex-align: "+e+";",r+="flex-align: "+e+";"},prx.css.flexJustifyGrow=function(t){var e="";return e+="-webkit-box-flex: "+t+";",e+="-ms-flex-grow: "+t+";",e+="-webkit-flex-grow: "+t+";",e+="flex-grow: "+t+";"}},function(t,e){$.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},$.browser||(matched=$.uaMatch(navigator.userAgent),browser={},matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),window.$.browser=window.jQuery.browser=browser)},function(t,e){prx.crossmsg={},prx.crossmsg.ini=function(){window.addEventListener("message",function(t){prx.crossmsg.checkrequestdomain(t)&&prx.crossmsg.onmsg(t.data)},!1)},prx.crossmsg.getdomain=function(){return prx.export2html?"*":prx.url.crossmsg},prx.crossmsg.checkrequestdomain=function(t){var e=t.origin||t.originalEvent.origin;return!prx.export2html&&e==prx.url.crossmsg||!!prx.export2html},prx.crossmsg.send=function(t,e){prx.crossmsg.gettargetframe(e).postMessage(t,prx.crossmsg.getdomain())}},function(t,e){var r,i,n;function a(t){return(a="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})(t)}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}prx.easing={},prx.easing._customEasings={},prx.easing._customEasingsColors=["#FF90D4","#FFD02A","#A98BE0","#00E2FF","#A2E555","#A9948C","#5CB4FA","#FE7775","#BD59E4","#46CFB5"],prx.easing._easingMappings=(o(r={linear:"Linear.easeNone","Linear.easeNone":"Linear.easeNone",ease:"Quad.easeInOut","Linear.ease":"Quad.easeInOut","Quad.ease":"Quad.easeInOut",in:"Quad.easeIn","Linear.easeIn":"Quad.easeIn","Quad.easeIn":"Quad.easeIn",out:"Quad.easeOut","Linear.easeOut":"Quad.easeOut","Quad.easeOut":"Quad.easeOut","in-out":"Quad.easeInOut","Linear.easeInOut":"Quad.easeInOut","Quad.easeInOut":"Quad.easeInOut",swing:"Quad.easeInOut"},"Linear.easeInOut","Quad.easeInOut"),o(r,"Quad.easeInOut","Quad.easeInOut"),o(r,"snap","Strong.easeOut"),o(r,"Strong.easeOut","Strong.easeOut"),o(r,"Cubic.easeIn","Cubic.easeIn"),o(r,"Cubic.easeOut","Cubic.easeOut"),o(r,"Cubic.easeInOut","Cubic.easeInOut"),o(r,"Quart.easeIn","Quart.easeIn"),o(r,"Quart.easeOut","Quart.easeOut"),o(r,"Quart.easeInOut","Quart.easeInOut"),o(r,"Quint.easeIn","Quint.easeIn"),o(r,"Quint.easeOut","Quint.easeOut"),o(r,"Quint.easeInOut","Quint.easeInOut"),o(r,"Circ.easeIn","Circ.easeIn"),o(r,"Circ.easeOut","Circ.easeOut"),o(r,"Circ.easeInOut","Circ.easeInOut"),o(r,"Back.easeIn","Back.easeIn"),o(r,"Back.easeOut","Back.easeOut"),o(r,"Back.easeInOut","Back.easeInOut"),o(r,"Bounce.easeIn","Bounce.easeIn"),o(r,"Bounce.easeOut","Bounce.easeOut"),o(r,"Bounce.easeInOut","Bounce.easeInOut"),o(r,"Elastic.easeIn","Elastic.easeIn"),o(r,"Elastic.easeOut","Elastic.easeOut"),o(r,"Elastic.easeInOut","Elastic.easeInOut"),o(r,"Expo.easeIn","Expo.easeIn"),o(r,"Expo.easeOut","Expo.easeOut"),o(r,"Expo.easeInOut","Expo.easeInOut"),o(r,"Sine.easeIn","Sine.easeIn"),o(r,"Sine.easeOut","Sine.easeOut"),o(r,"Sine.easeInOut","Sine.easeInOut"),o(r,"springrk4","springrk4"),r),prx.easing._easingMappingsReverse=(o(i={linear:"Linear.easeNone","Linear.easeNone":"Linear.easeNone",ease:"Quad.easeInOut","Linear.ease":"Quad.easeInOut",in:"Quad.easeOut","Quad.easeIn":"Linear.easeOut",out:"Quad.easeIn","Quad.easeOut":"Linear.easeIn","in-out":"Quad.easeInOut","Linear.easeInOut":"Quad.easeInOut",swing:"Quad.easeInOut"},"Linear.easeInOut","Quad.easeInOut"),o(i,"snap","Strong.easeIn"),o(i,"Strong.easeOut","Strong.easeIn"),o(i,"Quad.easeIn","Quad.easeOut"),o(i,"Quad.easeOut","Quad.easeIn"),o(i,"Quad.easeInOut","Quad.easeInOut"),o(i,"Quad.ease","Quad.easeInOut"),o(i,"Cubic.easeIn","Cubic.easeOut"),o(i,"Cubic.easeOut","Cubic.easeIn"),o(i,"Cubic.easeInOut","Cubic.easeInOut"),o(i,"Quart.easeIn","Quart.easeOut"),o(i,"Quart.easeOut","Quart.easeIn"),o(i,"Quart.easeInOut","Quart.easeInOut"),o(i,"Quint.easeIn","Quint.easeOut"),o(i,"Quint.easeOut","Quint.easeIn"),o(i,"Quint.easeInOut","Quint.easeInOut"),o(i,"Circ.easeIn","Circ.easeOut"),o(i,"Circ.easeOut","Circ.easeIn"),o(i,"Circ.easeInOut","Circ.easeInOut"),o(i,"Back.easeIn","Back.easeOut"),o(i,"Back.easeOut","Back.easeIn"),o(i,"Back.easeInOut","Back.easeInOut"),o(i,"Bounce.easeIn","Bounce.easeOut"),o(i,"Bounce.easeOut","Bounce.easeIn"),o(i,"Bounce.easeInOut","Bounce.easeInOut"),o(i,"Elastic.easeIn","Elastic.easeOut"),o(i,"Elastic.easeOut","Elastic.easeIn"),o(i,"Elastic.easeInOut","Elastic.easeInOut"),o(i,"Expo.easeIn","Expo.easeOut"),o(i,"Expo.easeOut","Expo.easeIn"),o(i,"Expo.easeInOut","Expo.easeInOut"),o(i,"Sine.easeIn","Sine.easeOut"),o(i,"Sine.easeOut","Sine.easeIn"),o(i,"Sine.easeInOut","Sine.easeInOut"),o(i,"springrk4","springrk4"),i),prx.easing._easingDescriptionMappings=(o(n={linear:"Linear","Linear.easeNone":"Linear",ease:"Ease in-out - Quad","Linear.ease":"Ease in-out - Quad","Quad.ease":"Ease in-out - Quad",in:"Ease in - Quad","Linear.easeIn":"Ease in - Quad","Quad.easeIn":"Ease in - Quad",out:"Ease out - Quad","Linear.easeOut":"Ease out - Quad","Quad.easeOut":"Ease out - Quad","in-out":"Ease in-out - Quad","Linear.easeInOut":"Ease in-out - Quad","Quad.easeInOut":"Ease in-out - Quad",swing:"Ease in-out - Quad"},"Linear.easeInOut","Ease in-out - Quad"),o(n,"Quad.easeInOut","Ease in-out - Quad"),o(n,"snap","Ease out - Strong"),o(n,"Strong.easeOut","Ease out - Strong"),o(n,"Cubic.easeIn","Ease in - Cubic"),o(n,"Cubic.easeOut","Ease out - Cubic"),o(n,"Cubic.easeInOut","Ease in-out - Cubic"),o(n,"Quart.easeIn","Ease in - Quart"),o(n,"Quart.easeOut","Ease out - Quart"),o(n,"Quart.easeInOut","Ease in-out - Quart"),o(n,"Quint.easeIn","Ease in - Quint"),o(n,"Quint.easeOut","Ease out - Quint"),o(n,"Quint.easeInOut","Ease in-out - Quint"),o(n,"Circ.easeIn","Ease in - Circ"),o(n,"Circ.easeOut","Ease out - Circ"),o(n,"Circ.easeInOut","Ease in-out - Circ"),o(n,"Back.easeIn","Ease in - Back"),o(n,"Back.easeOut","Ease out - Back"),o(n,"Back.easeInOut","Ease in-out - Back"),o(n,"Bounce.easeIn","Ease in - Bounce"),o(n,"Bounce.easeOut","Ease out - Bounce"),o(n,"Bounce.easeInOut","Ease in-out - Bounce"),o(n,"Elastic.easeIn","Ease in - Elastic"),o(n,"Elastic.easeOut","Ease out - Elastic"),o(n,"Elastic.easeInOut","Ease in-out - Elastic"),o(n,"Expo.easeIn","Ease in - Expo"),o(n,"Expo.easeOut","Ease out - Expo"),o(n,"Expo.easeInOut","Ease in-out - Expo"),o(n,"Sine.easeIn","Ease in - Sine"),o(n,"Sine.easeOut","Ease out - Sine"),o(n,"Sine.easeInOut","Ease in-out - Sine"),o(n,"springrk4","Spring rk4"),o(n,"cubicbezier","Cubic-Bezier"),n),prx.easing.getEasingDescriptionForTimeline=function(t){return void 0===t?"":void 0!==prx.easing._easingDescriptionMappings[t]?prx.easing._easingDescriptionMappings[t]:-1<t.indexOf("springrk4(")?t.replace("springrk4","Spring RK4"):-1<t.indexOf("cubic-bezier(")?t.replace("cubic-bezier","Cubic Bezier"):"broken"===t?"No common easing":t},prx.easing.get=function(t,e){if("object"==a(t))return t;void 0!==t?(prx.utils.isGuid(t)&&void 0!==prx.easing._customEasings[t]&&(t=prx.easing._customEasings[t].easing),"string"==typeof t&&(t="cubic-bezier"==t.substring(0,12)?prx.easing.getFromCubicBezier(t):"springrk4"==t.substring(0,9)?prx.easing.getFromSpringrk4(t):void 0!==prx.easing._easingMappings[t]?prx.easing._easingMappings[t]:prx.easing._easingMappings[prx.utils.getDefaultDefaultTransition().easing])):t=prx.easing._easingMappings[prx.utils.getDefaultDefaultTransition().easing];return t},prx.easing.getReverse=function(t){return"object"==a(t)||(void 0!==t?void 0!==prx.easing._easingMappingsReverse[t]?t=prx.easing._easingMappingsReverse[t]:-1<t.indexOf("cubic-bezier")&&(t=prx.easing.getFromCubicBezierReverse(t)):t=prx.easing._easingMappingsReverse[prx.utils.getDefaultDefaultTransition().easing]),t},prx.easing.getFromCubicBezier=function(t){var e=t.replace("cubic-bezier(","").replace(")","").split(",");if(4!=e.length)return prx.easing._easingMappings[prx.utils.getDefaultDefaultTransition().easing];var r=parseFloat(e[0])+"-"+parseFloat(e[1])+"-"+parseFloat(e[2])+"-"+parseFloat(e[3]);return void 0===prx.easing._easingMappings[r]&&(prx.easing._easingMappings[r]=new Ease(BezierEasing(parseFloat(e[0]),parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3])))),prx.easing._easingMappings[r]},prx.easing.getFromCubicBezierReverse=function(t){var e=t.replace("cubic-bezier(","").replace(")","").split(",");if(4!=e.length)return prx.easing._easingMappingsReverse[prx.utils.getDefaultDefaultTransition().easing];var r=1-parseFloat(e[2])+"-"+(1-parseFloat(e[3]))+"-"+(1-parseFloat(e[0]))+"-"+(1-parseFloat(e[1]));return void 0===prx.easing._easingMappings[r]&&(prx.easing._easingMappings[r]=new Ease(BezierEasing(1-parseFloat(e[2]),1-parseFloat(e[3]),1-parseFloat(e[0]),1-parseFloat(e[1])))),prx.easing._easingMappings[r]},prx.easing.getFromSpringrk4=function(t){return-1<t.indexOf("springrk4(")?(prx.easing._easingMappings[t]=prx.springrk4.init(t),prx.easing._easingMappings[t]):prx.easing._easingMappings[prx.utils.getDefaultDefaultTransition().easing]},prx.easing.checkForFixedDuration=function(t,e){return"object"==a(t)&&void 0!==t.isSpringrk4&&t.isSpringrk4?t.duration:e},prx.easing.getIScrollEasing=function(t){switch(t){case"Quad.easeInOut":case"Quad.ease":case"Quad.easeIn":case"Quad.easeOut":return IScroll.utils.ease.quadratic;case"Back.easeInOut":case"Back.easeIn":case"Back.easeOut":return IScroll.utils.ease.back;case"Bounce.easeInOut":case"Bounce.easeIn":case"Bounce.easeOut":return IScroll.utils.ease.bounce;case"Elastic.easeInOut":case"Elastic.easeIn":case"Elastic.easeOut":return IScroll.utils.ease.elastic;default:return IScroll.utils.ease.circular}}},function(t,e){function n(t){return(n="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})(t)}prx.mask={},prx.mask.isEnabled=function(t){return!(!t||!t.hasOwnProperty("mask"))&&(t.mask.hasOwnProperty("borderRadiusBL")&&(t.mask.borderRadius={},t.mask.borderRadius.br=t.mask.borderRadiusBR,t.mask.borderRadius.bl=t.mask.borderRadiusBL,t.mask.borderRadius.tl=t.mask.borderRadiusTL,t.mask.borderRadius.tr=t.mask.borderRadiusTR,delete t.mask.borderRadiusBR,delete t.mask.borderRadiusBL,delete t.mask.borderRadiusTL,delete t.mask.borderRadiusTR),t.mask.hasOwnProperty("borderColor")||(t.mask.borderColor="#000000",t.mask.borderPos="inside",t.mask.borderStyle="solid",t.mask.borderWidth=0),t.mask.isMasked)},prx.mask.isEditing=function(t){return!!(t&&t.hasOwnProperty("mask")&&t.mask.isMasked)&&!(!t.mask.hasOwnProperty("editing")||!t.mask.editing)},prx.mask.isActive=function(t){return!!(t&&t.hasOwnProperty("mask")&&t.mask.isMasked)&&(!t.mask.hasOwnProperty("editing")||!t.mask.editing)},prx.mask.getInnerDimsObj=function(t){var e={};return prx.mask.isActive(t)?(e.width=t.mask.inner_width,e.height=t.mask.inner_height):(e.width=t.width,e.height=t.height),e},prx.mask.getInnerDims=function(t){var e=prx.mask.getInnerDimsObj(t);return[e.width,e.height]},prx.mask.getInnerAbsolutePositionObj=function(t){var e={};return prx.mask.isActive(t)?(e.left=t.left+t.mask.x,e.top=t.top+t.mask.y):(e.left=t.left,e.top=t.top),e},prx.mask.getInnerAbsolutePosition=function(t){var e=prx.mask.getInnerAbsolutePositionObj(t);return[e.left,e.top]},prx.mask.getInnerDimsAndAbsolutePositionObj=function(t){var e=prx.mask.getInnerDimsObj(t),r=prx.mask.getInnerAbsolutePositionObj(t);return e.top=r.top,e.left=r.left,e},prx.mask.getInnerDimsAndAbsolutePosition=function(t){var e=prx.mask.getInnerDimsAndAbsolutePositionObj(t);return[e.width,e.height,e.left,e.top]},prx.mask.getMaskDimsObj=function(t){var e={};return prx.mask.isActive(t)||!prx.mask.isEnabled(t)?(e.width=t.width,e.height=t.height):(e.width=t.mask.width,e.height=t.mask.height),e},prx.mask.getMaskDims=function(t){var e=prx.mask.getMaskDimsObj(t);return[e.width,e.height]},prx.mask.getMaskAbsolutePositionObj=function(t){var e={};return prx.mask.isActive(t)||!prx.mask.isEnabled(t)?(e.left=t.left,e.top=t.top):prx.mask.isEditing(t)&&(e.top=t.mask.y,e.left=t.mask.x),e},prx.mask.getMaskAbsolutePosition=function(t){var e=prx.mask.getMaskAbsolutePositionObj(t);return[e.left,e.top]},prx.mask.getMaskDimsAndAbsolutPositionObj=function(t){var e=prx.mask.getMaskDimsObj(t),r=prx.mask.getMaskAbsolutePositionObj(t);return e.top=r.top,e.left=r.left,e},prx.mask.getMaskDimsAndAbsolutPosition=function(t){var e=prx.mask.getMaskDimsAndAbsolutPositionObj(t);return[e.width,e.height,e.left,e.top]},prx.mask.getMaskRealDimsAndPosWithRotationObj=function(t){var e=prx.mask.getMaskDimsAndAbsolutPositionObj(t),r=prx.mask.getMaskRotation(t);if(void 0===r||0==r||isNaN(parseFloat(r)))return e;var i=e.width,n=e.height,a=r*(Math.PI/180),o=prx.items.helper.getRotatedWidth(i,n,a),s=prx.items.helper.getRotatedHeight(i,n,a),l=e.left-Math.round((o-i)/2),p=e.top-Math.round((s-n)/2);return{width:parseInt(o),height:parseInt(s),left:parseInt(l),top:parseInt(p)}},prx.mask.getMaskRealDimsAndPosWithRotation=function(t){var e=prx.mask.getMaskRealDimsAndPosWithRotationObj(t);return[e.width,e.height,e.left,e.top]},prx.mask.itemDimensions=function(t,e,r,n){if(!prx.mask.isEditing(t))return prx.toolbox.itemDimensions(t,e,r,n);var a={},o=prx.orientation.getDims(e,r,n),s=parseFloat(t.mask.width),l=parseFloat(t.mask.height),p=parseFloat(t.mask.x),c=parseFloat(t.mask.y);return"variable"==i.wtype&&(s=o[0]-s),"variable"==i.htype&&(l=o[1]-l),"right"==i.hpos&&(p=o[0]-p-s),"center"==i.hpos&&(p=(o[0]-s)/2),"bottom"==i.vpos&&(c=o[1]-c-l),"middle"==i.vpos&&(c=(o[1]-l)/2),a.width=s,a.height=l,a.left=p,a.top=c,a.rotation=i.rotation||0,a.x=a.left+a.width/2,a.y=a.top+a.height/2,a.x1=a.left,a.x2=a.left+a.width,a.y1=a.top,a.y2=a.top+a.height,prx.toolbox.rotatedDims(a)},prx.mask.getMaskBorderRadiousObj=function(t){if(prx.mask.isEnabled(t))return"object"===n(t.mask.borderRadius)?t.mask.borderRadius:{tl:t.mask.borderRadius,tr:t.mask.borderRadius,bl:t.mask.borderRadius,br:t.mask.borderRadius}},prx.mask.getBorderRadiusCss=function(t){if(!prx.mask.isEnabled(t))return"";var e=prx.mask.getMaskBorderRadiousObj(t);return"border-radius: "+parseInt(e.tl)+"px "+parseInt(e.tr)+"px "+parseInt(e.br)+"px "+parseInt(e.bl)+"px; "},prx.mask.getBorderCss=function(t){if(!prx.mask.isEnabled(t))return"";var e="";return e+="border-width:"+prx.componentsHelper.getProp(t.mask.borderWidth,"border-width")+"; ",e+="border-style: "+t.mask.borderStyle+"; border-color: "+prx.gradients.prxToCss(t.mask.borderColor)+";"},prx.mask.marginOnBorderOutside=function(t,e){var r="";return(e?"inside"==t.mask.borderPos:"inside"!=t.mask.borderPos)&&("object"==n(t.mask.borderWidth)?(r+="margin-top:"+-t.mask.borderWidth.t+"px; ",r+="margin-bottom:"+-t.mask.borderWidth.b+"px; ",r+="margin-left:"+-t.mask.borderWidth.l+"px; ",r+="margin-right:"+-t.mask.borderWidth.r+"px; "):(r+="margin-top:"+-t.mask.borderWidth+"px; ",r+="margin-bottom:"+-t.mask.borderWidth+"px; ",r+="margin-left:"+-t.mask.borderWidth+"px; ",r+="margin-right:"+-t.mask.borderWidth+"px; ")),r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(144),n=r(396);void 0===i.prx.gradients&&(i.prx.gradients={}),i.prx.gradients.prxToCss=function(t){return n.GradientsHelper.prxToCss(t)},i.prx.gradients.cssToPrx=function(t){return n.GradientsHelper.cssToPrx(t)},i.prx.gradients.getBgCssByProperty=function(t,e){return n.GradientsHelper.getBgCssByProperty(t,e)},i.prx.gradients.getBgCss=function(t){return n.GradientsHelper.getBgCss(t)},i.prx.gradients.getBgCssByValue=function(t){return n.GradientsHelper.getBgCssByValue(t)},i.prx.gradients.getBgCssPropertyByValue=function(t){return n.GradientsHelper.getBgCssPropertyByValue(t)},i.prx.gradients.stringToPrxData=function(t){return n.GradientsHelper.stringToPrxData(t)},i.prx.gradients.prxSolidToHex=function(t){return n.GradientsHelper.prxSolidToHex(t)},i.prx.gradients.getRgbaValues=function(t){return n.GradientsHelper.getRgbaValues(t)},i.prx.gradients.isColorObject=function(t){return n.GradientsHelper.isColorObject(t)},i.prx.gradients.toRgba=function(t,e){return n.GradientsHelper.toRgba(t,e)}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var n=(p.toHex=function(t){var e=1,r={};if(t&&-1<p.getFirstOriginalColor(t).toLowerCase().indexOf("rgb")){var i=p.getFirstOriginalColor(t),n=i.substring(i.indexOf("(")+1,i.lastIndexOf(")")).split(/,\s*/);e=n[3]&&!isNaN(parseFloat(n[3]))&&0<=parseFloat(n[3])&&parseFloat(n[3])<=1?parseFloat(n[3]):1;var a=p.getFirstOriginalColor(t).match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);t=a&&4===a.length?"#"+("0"+parseInt(a[1],10).toString(16)).slice(-2)+("0"+parseInt(a[2],10).toString(16)).slice(-2)+("0"+parseInt(a[3],10).toString(16)).slice(-2):""}return r.color=t,r.opacity=e,r},p.rgbToHex=function(t,e,r){return(isNaN(parseInt(t))||parseInt(t)<0||255<parseInt(t))&&(t="255"),(isNaN(parseInt(e))||parseInt(e)<0||255<parseInt(e))&&(e="255"),(isNaN(parseInt(r))||parseInt(r)<0||255<parseInt(r))&&(r="255"),("0"+parseInt(t,10).toString(16)).slice(-2)+("0"+parseInt(e,10).toString(16)).slice(-2)+("0"+parseInt(r,10).toString(16)).slice(-2)},p.toRgba=function(t,e){if(-1===t.toLowerCase().indexOf("rgba")){if(0===t.toLowerCase().indexOf("#")){var r=0<=e&&e<=1?e:1;return"rgba("+p.hexToR(t)+","+p.hexToG(t)+","+p.hexToB(t)+","+r+")"}if(0===t.toLowerCase().indexOf("rgb"))return t.toLowerCase().replace("rgb","rgba").replace(")",", 1)")}return t.toLowerCase()},p.toColorValue=function(t,e){return p.toRgba(t,e)},p.getRgbaValues=function(t){var e;if("string"==typeof t){if("undefined"===(t=t.replace(/\s/g,"")))e={r:255,g:255,b:255,a:1};else if(/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t))0===t.indexOf("#")&&(t=t.substr(1)),e=3==t.length?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}:{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:1};else if(/^rgb\((\d+),(\d+),(\d+)\)$/i.test(t))(r=t.match(/^rgb\((\d+),(\d+),(\d+)\)$/i))&&(e={r:parseInt(r[1]),g:parseInt(r[2]),b:parseInt(r[3]),a:1});else if(/^rgba\((\d+),(\d+),(\d+),(\d?(\.\d+)?)\)$/i.test(t)){var r=t.match(/rgba\((\d+),(\d+),(\d+),(\d?(\.\d+)?)\)/i);e={r:parseInt(r[1]),g:parseInt(r[2]),b:parseInt(r[3]),a:r[4]&&0<r[4].trim().length?parseFloat(r[4]):0}}}else void 0===t&&(e={r:255,g:255,b:255,a:1});return e},p.getFirstOriginalColor=function(t){return"string"==typeof t?t:"solid"==t.type?t.color:t.colors[0].color},p.prxToCss=function(t){var e="",r="";switch("string"==typeof t&&(t=p.cssToPrx(t)),t.type){case"solid":e=/^([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.color)?"#"+t.color:t.color;break;case"linear":r="";for(var i=0;i<t.colors.length;i++)r+=t.colors[i].color+" "+t.colors[i].pos+"%, ";r=r.replace(/,\s*$/,""),e="linear-gradient("+(180!=t.angle?t.angle+"deg, ":"180.1deg, ")+r+")";break;case"radial":for(r="",i=0;i<t.colors.length;i++)r+=t.colors[i].color+" "+t.colors[i].pos+"%, ";e="radial-gradient(ellipse at center, "+(r=r.replace(/,\s*$/,""))+")"}return e},p.prxSolidToHex=function(t){if(t.type&&"solid"===t.type){var e=p.getRgbaValues(t.color);return p.rgbToHex(e.r.toString(),e.g.toString(),e.b.toString())}return"000000"},p.cssToPrx=function(t){var e={};if(void 0===t)e.type="solid",e.color="rgba(255,255,255,0)";else if(-1<t.indexOf("gradient")){e.colors=[];var r=t.indexOf("("),i=t.lastIndexOf(")"),n=t.substring(r+1,i).split(/,(?![^(]*\))(?![^"']*["'](?:[^"']*["'][^"']*["'])*[^"']*$)/);if(n[0])if(-1<t.indexOf("linear")){e.type="linear";var a=Number(n[0].trim().replace("deg",""));!isNaN(a)&&180!==a||(a=180.1),e.angle=a}else-1<t.indexOf("radial")&&(e.type="radial");if(1<n.length){for(var o=0;o<n.length;o++)if(l=n[o].trim().match(/(#[0-9a-f]{3,6}|(rgb|rgba) ?\([ 0-9\.,]+?\))(\s+[0-9\.]+%)?/i)){var s=0;l[1].match(/#[0-9a-f]{3,6}/i)&&("#"!==l[1].substr(0,1)&&(l[1]="#"+l[1]),l[1]=p.toRgba(l[1],1)),l[3]&&!isNaN(Number(l[3].replace("%","").trim()))&&(s=Number(l[3].replace("%","").trim())),e.colors.push({color:l[1],pos:s})}}else e.colors.push({color:"rgba(255,255,255,0)",pos:0}),e.colors.push({color:"rgba(255,255,255,0)",pos:100})}else{var l;e.type="solid",/^([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.trim())?e.color=p.toRgba("#"+t,1):(l=t.trim().match(/(#[0-9a-f]{3,6}|(rgb|rgba) ?\([ 0-9\.,]+?\))(\s+[0-9\.]+%)?/i))&&"rgb"===l[2]?e.color=l[1].replace("rgb","rgba").replace(")",",1)"):l&&l[1]?(l[1].match(/#[0-9a-f]{3,6}/i)&&("#"!==l[1].substr(0,1)&&(l[1]="#"+l[1]),l[1]=p.toRgba(l[1],1)),e.color=l[1]):e.color="rgba(255,255,255,0)"}return e},p.getBgCss=function(t){return"string"==typeof t?"background-color: "+prx.componentsHelper.getProp(t,"color-background"):void 0!==t?("solid"===t.type?"background-color: ":"background-image: ")+prx.componentsHelper.getProp(t,"color-background"):""},p.getBgCssByProperty=function(t,e){return"string"==typeof t?"background-color: "+prx.componentsHelper.getProp(t,e):void 0!==t?("solid"===t.type?"background-color: ":"background-image: ")+prx.componentsHelper.getProp(t,e):""},p.getBgCssByValue=function(t){return"string"==typeof t?(-1<t.indexOf("gradient")?"background-image: ":"background-color: ")+t:("solid"===t.type?"background-color: ":"background-image: ")+p.prxToCss(t)},p.getBgCssPropertyByValue=function(t){return-1<t.indexOf("gradient")?"background-image":"background-color"},p.stringToPrxData=function(t){var e;if(/^(#?[0-9a-f]{3,6}|rgb|rgba|linear-gradient|radial-gradient|none|transparent)/i.test(t))e=p.cssToPrx(t);else try{e=JSON.parse(t)}catch(t){return null}return e},p.calculateWeightedColor=function(t,e,r){return{r:Math.round(t.r+r*(e.r-t.r)),g:Math.round(t.g+r*(e.g-t.g)),b:Math.round(t.b+r*(e.b-t.b)),a:t.a+r*(e.a-t.a)}},p.isColorObject=function(t){if(null!==t&&"object"===i(t)&&t.hasOwnProperty("type")){if(-1<["solid"].indexOf(t.type)&&t.hasOwnProperty("color")&&"string"==typeof t.color)return!0;if(-1<["linear","radial"].indexOf(t.type)&&t.hasOwnProperty("colors")&&Array.isArray(t.colors))return!0}return!1},p.cutHex=function(t){var e=t;if(3===t.replace("#","").length){var r=t.substr(-3);e=r.substr(0,1).repeat(2),e+=r.substr(1,1).repeat(2),e+=r.substr(2,1).repeat(2)}return"#"==e.charAt(0)?e.substring(1,7):e},p.hexToR=function(t){return parseInt(p.cutHex(t).substring(0,2),16)},p.hexToG=function(t){return parseInt(p.cutHex(t).substring(2,4),16)},p.hexToB=function(t){return parseInt(p.cutHex(t).substring(4,6),16)},p);function p(){}e.GradientsHelper=n},function(t,e){prx.compatibility={},prx.compatibility.iscrolljs=!1},function(t,e){prx.compatibility.v5={},prx.compatibility.v5.ini=function(){prx.compatibility.v5.convertToStatefulTemplates(),prx.compatibility.v5.convertToStatefulPages(),0<prxy.symbols.length&&void 0!==prxy.symbols[0].states||prx.compatibility.v5.convertToStatefulSymbols(),prx.v5=!0},prx.compatibility.v5.convertToStatefulPages=function(t){for(t=0;t<prxy.pages.length;t++){prxy.pages[t].states=[];var e=JSON.parse(prxy.pages[t].data);if(-1<prx.stc.templates.getIndexFromId(e.templateid))var r={id:e.templateid,stateid:prx.templates[prx.stc.templates.getIndexFromId(e.templateid)].states[0].id};else r={id:""};var i={data:JSON.stringify(e.items),template:r,title:"Default State",history:prxy.pages[t].history,background:prxy.pages[t].background,id:prx.utils.getGuid()};i=JSON.stringify(i),i=JSON.parse(i),delete prxy.pages[t].data,delete prxy.pages[t].history,delete prxy.pages[t].background,prxy.pages[t].states.push(i)}return!0},prx.compatibility.v5.convertToStatefulTemplates=function(){for(var t=0;t<prx.templates.length;t++){prx.templates[t].states=[];var e=JSON.parse(prx.templates[t].data),r={data:JSON.stringify(e.items),template:{id:e.templateid,stateid:""},title:"Default State",history:prx.templates[t].history,background:prx.templates[t].background,id:prx.utils.getGuid()};r=JSON.stringify(r),r=JSON.parse(r),delete prx.templates[t].data,delete prx.templates[t].history,delete prx.templates[t].background,prx.templates[t].states.push(r)}for(t=0;t<prx.templates.length;t++)""!=prx.templates[t].states[0].template.id&&-1<prx.stc.templates.getIndexFromId(prx.templates[t].states[0].template.id)&&(prx.templates[t].states[0].template.stateid=prx.templates[prx.stc.templates.getIndexFromId(prx.templates[t].states[0].template.id)].states[0].id);return!0},prx.compatibility.v5.convertToStatefulSymbols=function(){for(var t=0;t<prxy.symbols.length;t++){prxy.symbols[t].states=[];var e={data:prxy.symbols[t].data,dimensions:prxy.symbols[t].dimensions,title:"Default State",history:prxy.symbols[t].history,background:prxy.symbols[t].background,id:prx.utils.getGuid()};e=JSON.stringify(e),e=JSON.parse(e),delete prxy.symbols[t].data,delete prxy.symbols[t].dimensions,delete prxy.symbols[t].history,delete prxy.symbols[t].background,prxy.symbols[t].states.push(e)}return!0}},function(t,e){prx.compatibility.responsiveComponents={},prx.compatibility.responsiveComponents.compatibleData=function(t){for(var e=0;e<t.length;e++)"iphone_retina"==t[e].lib&&(t[e].lib="iphone",t[e].type=t[e].type.replace("_retina",""),t[e].name=t[e].name.replace("_retina",""),t[e].rscale=2),"ios7"==t[e].lib&&(t[e].rscale=2);return t},prx.compatibility.responsiveComponents.compatibleAllData=function(){for(var t=0;t<prxy.pages.length;t++)for(var e=0;e<prxy.pages[t].states.length;e++){var r=JSON.parse(prxy.pages[t].states[e].data);r=prx.compatibility.responsiveComponents.compatibleData(r),prxy.pages[t].states[e].data=JSON.stringify(r)}for(t=0;t<prx.templates.length;t++)for(e=0;e<prx.templates[t].states.length;e++){r=JSON.parse(prx.templates[t].states[e].data);r=prx.compatibility.responsiveComponents.compatibleData(r),prx.templates[t].states[e].data=JSON.stringify(r)}for(t=0;t<prxy.symbols.length;t++)for(e=0;e<prxy.symbols[t].states.length;e++){r=JSON.parse(prxy.symbols[t].states[e].data);r=prx.compatibility.responsiveComponents.compatibleData(r),prxy.symbols[t].states[e].data=JSON.stringify(r)}},prx.compatibility.responsiveComponents.ini=function(){prx.v5x11=!1,prx.compatibility.responsiveComponents.compatibleAllData()}},function(t,e){function a(t){return(a="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})(t)}prx.compatibility.galleryAssetsToStatic={},prx.compatibility.galleryAssetsToStatic.runCompatibility=function(){prx.hasOwnProperty("sGalleryAssetsToStatic")&&(prx.compatibility.galleryAssetsToStatic.mapping=prx.sGalleryAssetsToStatic,prx.sGalleryAssetsToStatic={},prx.compatibility.galleryAssetsToStatic.updateProject())},prx.compatibility.galleryAssetsToStatic.updateProject=function(){var t,e,r,i,n;for(t=0;t<prxy.pages.length;t++){for(e=0;e<prxy.pages[t].actions.length;e++)prxy.pages[t].actions[e]=prx.compatibility.galleryAssetsToStatic.updateAction(prxy.pages[t].actions[e]);for(e=0;e<prxy.pages[t].states.length;e++){if(void 0!==prxy.pages[t].states[e].groups)for(n in prxy.pages[t].states[e].groups)if(prxy.pages[t].states[e].groups.hasOwnProperty(n)&&void 0!==prxy.pages[t].states[e].groups[n].actions)for(i=0;i<prxy.pages[t].states[e].groups[n].actions.length;i++)prxy.pages[t].states[e].groups[n].actions[i]=prx.compatibility.galleryAssetsToStatic.updateAction(prxy.pages[t].states[e].groups[n].actions[i]);if(void 0!==prxy.pages[t].states[e].actions)for(r=0;r<prxy.pages[t].states[e].actions.length;r++)prxy.pages[t].states[e].actions[r]=prx.compatibility.galleryAssetsToStatic.updateAction(prxy.pages[t].states[e].actions[r]);var a=JSON.parse(prxy.pages[t].states[e].data);for(r=0;r<a.length;r++)a[r]=prx.compatibility.galleryAssetsToStatic.updateItem(a[r]);prxy.pages[t].states[e].data=JSON.stringify(a)}}for(t=0;t<prxy.symbols.length;t++)for(e=0;e<prxy.symbols[t].states.length;e++){if(void 0!==prxy.symbols[t].states[e].groups)for(n in prxy.symbols[t].states[e].groups)if(prxy.symbols[t].states[e].groups.hasOwnProperty(n)&&void 0!==prxy.symbols[t].states[e].groups[n].actions)for(i=0;i<prxy.symbols[t].states[e].groups[n].actions.length;i++)prxy.symbols[t].states[e].groups[n].actions[i]=prx.compatibility.galleryAssetsToStatic.updateAction(prxy.symbols[t].states[e].groups[n].actions[i]);if(void 0!==prxy.symbols[t].states[e].actions)for(r=0;r<prxy.symbols[t].states[e].actions.length;r++)prxy.symbols[t].states[e].actions[r]=prx.compatibility.galleryAssetsToStatic.updateAction(prxy.symbols[t].states[e].actions[r]);a=JSON.parse(prxy.symbols[t].states[e].data);for(r=0;r<a.length;r++)a[r]=prx.compatibility.galleryAssetsToStatic.updateItem(a[r]);prxy.symbols[t].states[e].data=JSON.stringify(a)}prx.compatibility.galleryAssetsToStatic.mapping={}},prx.compatibility.galleryAssetsToStatic.updateItem=function(t){var e,r,i,n;for(e in t)t.hasOwnProperty(e)&&"object"==a(t[e])&&null!==t[e]&&void 0!==t[e].assetType&&"gallery"==t[e].assetType&&t[e].bucketsource&&"main"==t[e].bucketsource&&(t[e]=prx.compatibility.galleryAssetsToStatic.updateAsset(t[e]));for(r=0;r<prx.actions._actionTypes.length;r++)if(void 0!==t[prx.actions._actionTypes[r]])for(i=0;i<t[prx.actions._actionTypes[r]].length;i++)t[prx.actions._actionTypes[r]][i]=prx.compatibility.galleryAssetsToStatic.updateAction(t[prx.actions._actionTypes[r]][i]);for(r=0;r<prx.utils.dynamic_properties.length;r++)if(void 0!==t[prx.utils.dynamic_properties[r]])for(i=0;i<t[prx.utils.dynamic_properties[r]].length;i++){if(void 0!==t[prx.utils.dynamic_properties[r]][i].actions)for(n=0;n<t[prx.utils.dynamic_properties[r]][i].actions.length;n++)t[prx.utils.dynamic_properties[r]][i].actions[n]=prx.compatibility.galleryAssetsToStatic.updateAction(t[prx.utils.dynamic_properties[r]][i].actions[n]);for(e in t[prx.utils.dynamic_properties[r]][i])t[prx.utils.dynamic_properties[r]][i].hasOwnProperty(e)&&"object"===a(t[prx.utils.dynamic_properties[r]][i][e])&&null!==t[prx.utils.dynamic_properties[r]][i][e]&&void 0!==t[prx.utils.dynamic_properties[r]][i][e].assetType&&"gallery"===t[prx.utils.dynamic_properties[r]][i][e].assetType&&t[prx.utils.dynamic_properties[r]][i][e].bucketsource&&"main"===t[prx.utils.dynamic_properties[r]][i][e].bucketsource&&(t[prx.utils.dynamic_properties[r]][i][e]=prx.compatibility.galleryAssetsToStatic.updateAsset(t[prx.utils.dynamic_properties[r]][i][e]))}return t},prx.compatibility.galleryAssetsToStatic.updateAction=function(t){return null===t||("change-property"===t.actionId&&"object"===a(t.newvalue)&&null!==t.newvalue&&void 0!==t.newvalue.assetType&&"gallery"===t.newvalue.assetType&&t.newvalue.bucketsource&&"main"===t.newvalue.bucketsource?t.newvalue=prx.compatibility.galleryAssetsToStatic.updateAsset(t.newvalue):("play-sound-effect"===t.actionId||"play-audio"===t.actionId&&t.hasOwnProperty("sourceId")&&"library"===t.sourceId)&&t.hasOwnProperty("sound")&&(t.sound.hasOwnProperty("aac")&&t.sound.aac.hasOwnProperty("fileId")&&!t.sound.aac.hasOwnProperty("url")&&(t.sound.aac=prx.compatibility.galleryAssetsToStatic.updateAsset(t.sound.aac)),t.sound.hasOwnProperty("mp3")&&t.sound.mp3.hasOwnProperty("fileId")&&!t.sound.mp3.hasOwnProperty("url")&&(t.sound.mp3=prx.compatibility.galleryAssetsToStatic.updateAsset(t.sound.mp3)),t.sound.hasOwnProperty("wav")&&t.sound.wav.hasOwnProperty("fileId")&&!t.sound.wav.hasOwnProperty("url")&&(t.sound.wav=prx.compatibility.galleryAssetsToStatic.updateAsset(t.sound.wav))),void 0!==t.callbackAction&&(t.callbackAction=prx.compatibility.galleryAssetsToStatic.updateAction(t.callbackAction))),t},prx.compatibility.galleryAssetsToStatic.updateAsset=function(t){var e=t.fileId;return prx.hasOwnProperty("dropboxfs")&&prx.dropboxfs||!t.hasOwnProperty("url")||(e=t.url),prx.compatibility.galleryAssetsToStatic.mapping.hasOwnProperty(e)&&(t.bucketsource="static",t.url=prx.compatibility.galleryAssetsToStatic.mapping[e]),t}},function(t,e){prx.compatibility.stateTransitionsToMs={},prx.compatibility.stateTransitionsToMs.ini=function(){prx.compatibility.stateTransitionsToMs.upgrade()},prx.compatibility.stateTransitionsToMs.upgrade=function(){["pages","symbols"].forEach(function(t){prxy[t].forEach(function(t,e){for(var r in t.state_transitions)if(t.state_transitions.hasOwnProperty(r))for(var i in t.state_transitions[r])if(t.state_transitions[r].hasOwnProperty(i))for(var n in t.state_transitions[r][i])t.state_transitions[r][i].hasOwnProperty(n)&&(void 0!==t.state_transitions[r][i][n].duration&&(t.state_transitions[r][i][n].duration=10*Math.floor(1e3*t.state_transitions[r][i][n].duration/10)),void 0!==t.state_transitions[r][i][n].delay&&(t.state_transitions[r][i][n].delay=10*Math.floor(1e3*t.state_transitions[r][i][n].delay/10)))})}),prx.transition.duration*=1e3,prx.stateTransitionToMSUpgraded=!0}},function(t,e){function c(t){return(c="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})(t)}prx.compatibility.fontStyleCompatibility={},prx.compatibility.fontStyleCompatibility.ini=function(){prx.compatibility.fontStyleCompatibility.allItemsCompatibility(),prx.fontStyleCompatibility=!0},prx.compatibility.fontStyleCompatibility.allItemsCompatibility=function(){var r={"sans-serif,Helvetica Neue,Arial":"sans-serif","Roboto Regular, sans-serif":"Roboto, sans-serif","Roboto Medium, sans-serif":"Roboto, sans-serif","HelveticaNeue, Helvetica, Verdana, Arial, sans-serif":"HelveticaNeue, Helvetica, Verdana, Arial, sans-serif","HelveticaNeue-Medium, Helvetica, Verdana, Arial, sans-serif":"HelveticaNeue, Helvetica, Verdana, Arial, sans-serif","HelveticaNeue-Bold, Helvetica, Verdana, Arial, sans-serif":"HelveticaNeue, Helvetica, Verdana, Arial, sans-serif","HelveticaNeue-Light, Helvetica, Verdana, Arial, sans-serif":"HelveticaNeue, Helvetica, Verdana, Arial, sans-serif","San Francisco UI Display Light":"San Francisco UI Display","San Francisco UI Display Regular":"San Francisco UI Display","San Francisco UI Display Semibold":"San Francisco UI Display","San Francisco UI Display Bold":"San Francisco UI Display","San Francisco UI Text Light":"San Francisco UI Text","San Francisco UI Text Regular":"San Francisco UI Text","San Francisco UI Text Semibold":"San Francisco UI Text","San Francisco UI Text Bold":"San Francisco UI Text","San Francisco Compact Display Light":"San Francisco Compact Display","San Francisco Compact Display Regular":"San Francisco Compact Display","San Francisco Compact Display Semibold":"San Francisco Compact Display","San Francisco Compact Display Bold":"San Francisco Compact Display","San Francisco Compact Text Light":"San Francisco Compact Text","San Francisco Compact Text Regular":"San Francisco Compact Text","San Francisco Compact Text Semibold":"San Francisco Compact Text","San Francisco Compact Text Bold":"San Francisco Compact Text"},i={light:"300",regular:"400",medium:"500",semibold:"600",bold:"700"};prx.editor&&(prxy.items=prx.compatibility.fontStyleCompatibility.updateItems(prxy.items,r,i),prx.canvas.refresh());for(var t=0;t<prxy.pages.length;t++){void 0!==prxy.pages[t].actions&&0<prxy.pages[t].actions.length&&$.each(prxy.pages[t].actions,function(t,e){prx.compatibility.fontStyleCompatibility.changeFontFamilyActions(e,r,i),prx.compatibility.fontStyleCompatibility.changeTextPropsActions(e)});for(var e=0;e<prxy.pages[t].states.length;e++){if(void 0!==prxy.pages[t].states[e].actions&&0<prxy.pages[t].states[e].actions.length&&$.each(prxy.pages[t].states[e].actions,function(t,e){prx.compatibility.fontStyleCompatibility.changeFontFamilyActions(e,r,i),prx.compatibility.fontStyleCompatibility.changeTextPropsActions(e)}),void 0!==prxy.pages[t].states[e].groups)for(var n in prxy.pages[t].states[e].groups)if(prxy.pages[t].states[e].groups.hasOwnProperty(n)){if(void 0===prxy.pages[t].states[e].groups[n].actions)continue;$.each(prxy.pages[t].states[e].groups[n].actions,function(t,e){prx.compatibility.fontStyleCompatibility.changeFontFamilyActions(e,r,i),prx.compatibility.fontStyleCompatibility.changeTextPropsActions(e)})}var a=JSON.parse(prxy.pages[t].states[e].data);a=prx.compatibility.fontStyleCompatibility.updateItems(a,r,i),prxy.pages[t].states[e].data=JSON.stringify(a)}}for(t=0;t<prxy.symbols.length;t++){void 0!==prxy.symbols[t].actions&&0<prxy.symbols[t].actions.length&&$.each(prxy.symbols[t].actions,function(t,e){prx.compatibility.fontStyleCompatibility.changeFontFamilyActions(e,r,i),prx.compatibility.fontStyleCompatibility.changeTextPropsActions(e)});for(e=0;e<prxy.symbols[t].states.length;e++){if(void 0!==prxy.symbols[t].states[e].actions&&0<prxy.symbols[t].states[e].actions.length&&$.each(prxy.symbols[t].states[e].actions,function(t,e){prx.compatibility.fontStyleCompatibility.changeFontFamilyActions(e,r,i),prx.compatibility.fontStyleCompatibility.changeTextPropsActions(e)}),void 0!==prxy.symbols[t].states[e].groups)for(var n in prxy.symbols[t].states[e].groups)if(prxy.symbols[t].states[e].groups.hasOwnProperty(n)){if(void 0===prxy.symbols[t].states[e].groups[n].actions)continue;$.each(prxy.symbols[t].states[e].groups[n].actions,function(t,e){prx.compatibility.fontStyleCompatibility.changeFontFamilyActions(e,r,i),prx.compatibility.fontStyleCompatibility.changeTextPropsActions(e)})}a=JSON.parse(prxy.symbols[t].states[e].data);a=prx.compatibility.fontStyleCompatibility.updateItems(a,r,i),prxy.symbols[t].states[e].data=JSON.stringify(a)}}},prx.compatibility.fontStyleCompatibility.updateItems=function(t,l,p){var r=prx.editor?prx.mpactions._actionTypes:prx.actions._actionTypes;return t.forEach(function(o){var e=[],s=[];Object.getOwnPropertyNames(o).forEach(function(t){-1<r.indexOf(t)&&void 0!==o[t]&&0<o[t].length&&$.each(o[t],function(t,e){prx.compatibility.fontStyleCompatibility.changeFontFamilyActions(e,l,p),prx.compatibility.fontStyleCompatibility.changeTextPropsActions(e)}),"Font"===t.slice(-4)&&e.push(t.substr(0,t.length-4)),"Properties"===t.slice(-10)&&s.push(t.substr(0,t.length-10))}),e.forEach(function(t){if(void 0===o[t+"FontStyle"]){var e=o[t+"Font"]||"Arial,sans-serif",r="400",i=!1;for(var n in p)if(e.toLowerCase().includes(n)){r=p[n];break}for(var a in l)e==a&&(e=l[a]);for(var n in e.includes(":")&&(r=e.split(":")[1],e=e.split(":")[0],i=!!r.includes("italic")),p)r.toLowerCase()==n&&(r=p[n]);s.includes(t)&&void 0!==o[t+"Properties"]&&"object"===c(o[t+"Properties"])&&null!=o[t+"Properties"]&&(o[t+"Properties"].forEach(function(t){"bold"===t&&(r=i?"700italic":"700"),"italic"!==t||i||(r+="italic",i=!0)}),o[t+"Properties"]=o[t+"Properties"].includes("underline")?["underline"]:[]),"Roboto, sans-serif"==e&&(e="Roboto"),o[t+"Font"]=e,o[t+"FontStyle"]=r}}),(prx.editor?prx.properties.dynamic.props:prx.dynamicprops).forEach(function(a){void 0!==o[a]&&"object"===c(o[a])&&o[a].forEach(function(r,i){var n=[];Object.getOwnPropertyNames(r).forEach(function(t,e){"actions"==t&&void 0!==o[a][i][t]&&0<o[a][i][t].length&&$.each(o[a][i][t],function(t,e){prx.compatibility.fontStyleCompatibility.changeFontFamilyActions(e,l,p),prx.compatibility.fontStyleCompatibility.changeTextPropsActions(e)}),"Properties"===t.slice(-10)&&n.push(t.substr(0,t.length-10))}),n.forEach(function(t){if("object"===c(r[t+"Properties"])&&null!==r[t+"Properties"]){var e="";r[t+"Properties"].includes("bold")?e+="700":e+="400",r[t+"Properties"].includes("italic")&&(e+="italic"),r[t+"FontStyle"]=e,r[t+"Properties"]=r[t+"Properties"].includes("underline")?["underline"]:[]}})})}),void 0!==o.type&&"io7_alert"==o.type&&void 0!==o.title&&(o.title='<span style="font-weight: 700">'+o.title+"</span>")}),t},prx.compatibility.fontStyleCompatibility.changeFontFamilyActions=function(t,e,r){var i=!1;if("change-property"==t.actionId&&t.propertyId&&"Font"==t.propertyId.slice(-4)&&void 0!==t.newvalue){var n=t.newvalue,a="400";for(var o in r)if(n.toLowerCase().includes(o)){a=r[o];break}for(var s in e)n==s&&(n=e[s]);for(var o in n.includes(":")&&(a=n.split(":")[1],n=n.split(":")[0]),r)a.toLowerCase()==o&&(a=r[o]);t.newvalue=n,i=!0}if(void 0!==t.callbackAction)if(i){var l=prx.componentsHelper.cloneobject(t.callbackAction),p=(c=prx.componentsHelper.cloneobject(t)).propertyId.replace("Font","FontStyle");t.callbackAction={},t.callbackAction=c,t.callbackAction.callbackAction=l,t.callbackAction.propertyId=p,t.callbackAction.newvalue=a,t.callbackAction.delay=0,t.callbackAction.clb_disabled=void 0!==c.clb_disabled&&c.clb_disabled,t.callbackAction.guid=prx.utils.getGuid(),prx.compatibility.fontStyleCompatibility.changeFontFamilyActions(t.callbackAction,e,r)}else prx.compatibility.fontStyleCompatibility.changeFontFamilyActions(t.callbackAction,e,r);else if(i){var c;p=(c=prx.componentsHelper.cloneobject(t)).propertyId.replace("Font","FontStyle");t.callback=!0,t.callbackAction={},t.callbackAction=c,t.callbackAction.propertyId=p,t.callbackAction.delay=0,t.callbackAction.newvalue=a,t.callbackAction.clb_disabled=void 0!==c.clb_disabled&&c.clb_disabled,t.callbackAction.guid=prx.utils.getGuid()}},prx.compatibility.fontStyleCompatibility.changeTextPropsActions=function(t){var e=!1;if("change-property"==t.actionId&&t.propertyId&&"Properties"==t.propertyId.slice(-10)&&void 0!==t.newvalue){var r=t.newvalue,i=1==r.length,n=2==r.length,a=3==r.length,o=-1<r.indexOf("underline"),s=-1<r.indexOf("italic"),l=-1<r.indexOf("bold"),p=0==r.length,c=l&&o&&n,u=s&&i,h=s&&o&&n,d=l&&s&&n,f=a;if(o&&i)e=!1;else{if(p)var m="400";else if(l&&i){t.newvalue=[];m="700"}else if(c){t.newvalue=["underline"];m="700"}else if(u){t.newvalue=[];m="400italic"}else if(h){t.newvalue=["underline"];m="400italic"}else if(d){t.newvalue=[];m="700italic"}else if(f){t.newvalue=["underline"];m="700italic"}e=!0}}if(void 0!==t.callbackAction)if(e){var g=prx.componentsHelper.cloneobject(t.callbackAction),v=(y=prx.componentsHelper.cloneobject(t)).propertyId.replace("Properties","FontStyle");t.callbackAction={},t.callbackAction=y,t.callbackAction.callbackAction=g,t.callbackAction.propertyId=v,t.callbackAction.newvalue=m,t.callbackAction.delay=0,t.callbackAction.clb_disabled=void 0!==y.clb_disabled&&y.clb_disabled,t.callbackAction.guid=prx.utils.getGuid(),prx.compatibility.fontStyleCompatibility.changeTextPropsActions(t.callbackAction)}else prx.compatibility.fontStyleCompatibility.changeTextPropsActions(t.callbackAction);else if(e){var y;v=(y=prx.componentsHelper.cloneobject(t)).propertyId.replace("Properties","FontStyle");t.callback=!0,t.callbackAction={},t.callbackAction=y,t.callbackAction.propertyId=v,t.callbackAction.delay=0,t.callbackAction.newvalue=m,t.callbackAction.clb_disabled=void 0!==y.clb_disabled&&y.clb_disabled,t.callbackAction.guid=prx.utils.getGuid()}}},function(t,e){prx.items={}},function(t,e){prx.items.filters={},prx.items.filters.props=["grayscale","sepia","saturate","hueRotate","invert","brightness","contrast","blur","dropShadowX","dropShadowY","dropShadowColor","dropShadowBlur"],prx.items.getComponentBaseStyle=function(t,e,r){var i=e?e+"-"+t.id:t.id,n=(prx.items.getGroups(t,e,void 0===r?void 0:r.symbolid,void 0===r?void 0:r.id),prx.visibility.get("#"+i,"visible-all",void 0,void 0===r?void 0:r.id));if(-1==e.indexOf("box"))var a=e.match(/p-(\d+)/)[1],o=prx.stc.screens.getIndexFromId(a),s=prx.items.getRealDimsAndPos(t,"pages",o,0);else s=prx.items.getRealDimsAndPos(t,"symbols",void 0,void 0,r);prx.items.getFilter(t,e);var l=prx.items.buildFilter("#"+i);void 0!==t._fromstateid&&(n=0),void 0===t.rotation&&(t.rotation=0);var p="";return p+="#"+i+" {",p+="transform: translate3d("+s[2]+"px, "+s[3]+"px, 0px) rotate("+t.rotation+"deg);",p+="width: "+s[0]+"px; height: "+s[1]+"px; ",p+="opacity: "+(!1===n?0:n)+"; ",p+="-webkit-filter: "+l+"; filter: "+l+";",p+="}"},prx.items.getComponentBaseClasses=function(t,e,r){var i=e?e+"-"+t.id:t.id,n="",a=prx.items.getGroups(t,e,void 0===r?void 0:r.symbolid,void 0===r?void 0:r.id),o=prx.visibility.get("#"+i,"visible-all",void 0,void 0===r?void 0:r.id),s=prx.items.getScale(t);return a.forEach(function(t){n+=" group-"+t}),!1===o&&(n+=" hidden"),n+=" "+s,void 0!==t._fromstateid&&(n+=" ghost-component"),n},prx.items.getComponentPrependDivs=function(t,e,r){var i="";if(prx.mask.isActive(t)){if(delete t.maskImage,void 0!==e)var n=e+"-"+t.id;else n=t.id;var a=prx.mask.getBorderCss(t)+prx.mask.getBorderRadiusCss(t);a+=prx.mask.marginOnBorderOutside(t,!1);var o="mask-wrapper";"inside"==t.mask.borderPos?o+=" borderPos-inside":o+=" borderPos-outside",i+='<div id="'+n+'-mask" class = "'+o+'" style = "'+a+'">',a="width: "+t.mask.inner_width+"px; height: "+t.mask.inner_height+"px;",i+='<div id="'+n+'-mask-inner" class = "mask-inner" style = "'+(a+=prx.mask.marginOnBorderOutside(t,!0))+'" >'}return i},prx.items.getComponentAppendDivs=function(t,e,r){var i="";return prx.mask.isActive(t)&&(i="</div></div>"),i},prx.items.getComponentBaseAttributes=function(t,e,r){return' data-component-type="'+t.type+'" '},prx.items.getFilter=function(e,t){if(void 0!==t)var r="#"+t+"-"+e.id;else r="#"+e.id;delete prx.items.filters[r],prx.items.filters.props.forEach(function(t){void 0!==e[t]&&(void 0===prx.items.filters[r]&&(prx.items.filters[r]={}),prx.items.filters[r][t]=e[t])})},prx.items.updateFilter=function(t,e){if(void 0!==e)var r="#"+e+"-"+t.id;else r="#"+t.id;prx.items.getFilter(t,e),prx.items.applyFilters(r)},prx.items.buildFilter=function(t){if(void 0===prx.items.filters[t])return"none";for(var e=prx.items.filters[t],r="",i=prx.items.filters.props.length-4,n=-1;++n<i;){var a=prx.items.filters.props[n];if(void 0!==e[a]){var o="hueRotate"===a?"hue-rotate":a,s="hueRotate"===a?"deg":"blur"===a?"px":"";"blur"===a&&50<parseInt(e[a])&&(e[a]="50"),r+=(""!==r?" ":"")+o+"("+e[a]+s+")"}}return void 0===e.dropShadowX&&void 0===e.dropShadowY&&void 0===e.dropShadowBlur&&void 0===e.dropShadowColor||(void 0===e.dropShadowX&&(e.dropShadowX="1"),void 0===e.dropShadowY&&(e.dropShadowY="1"),void 0===e.dropShadowBlur&&(e.dropShadowBlur="3"),void 0===e.dropShadowColor&&(e.dropShadowColor="rgba(0,0,0,0.5)"),e.dropShadowBlur=50<parseInt(e.dropShadowBlur)?"50":e.dropShadowBlur,r+=(""!==r?" ":"")+"drop-shadow("+e.dropShadowX+"px "+e.dropShadowY+"px "+e.dropShadowBlur+"px "+prx.gradients.prxToCss(e.dropShadowColor)+")"),r},prx.items.applyFilters=function(t){var e=prx.items.buildFilter(t);$(t).css({"-webkit-filter":e,filter:e})},prx.items.updateMask=function(t,e){if(t&&t.hasOwnProperty("maskImage")&&delete t.maskImage,!prx.mask.isActive(t))return!1;if(void 0!==e)var r=e+"-"+t.id;else r=t.id;var i=$("#"+r),n="width: "+t.mask.inner_width+"px; height: "+t.mask.inner_height+"px;";"inside"==t.mask.borderPos&&(n+="margin:"+-t.mask.borderWidth+"px;"),i.addClass("mask-active").wrapInner('<div id="'+r+'-mask-inner" class = "mask-inner" style = "'+n+'"></div>'),prx.items.updateMaskPosition(t,e);var a="mask-wrapper";"inside"==t.mask.borderPos?a+=" borderPos-inside":a+=" borderPos-outside",n=prx.mask.getBorderCss(t)+prx.mask.getBorderRadiusCss(t),"inside"!=t.mask.borderPos&&(n+="margin:"+-t.mask.borderWidth+"px;"),i.wrapInner('<div id="'+r+'-mask" class = "'+a+'" style = "'+n+'"></div>')},prx.items.updateMaskPosition=function(t,e){if(!prx.mask.isActive(t))return!1;if(void 0!==e)var r=e+"-"+t.id;else r=t.id;(new TimelineMax).to("#"+r+"-mask-inner",0,{x:t.mask.x,y:t.mask.y})},prx.items.updateVisibility=function(t,e){var r="";if(void 0!==e)var i="#"+e+"-"+t.id;else i="#"+t.id;r=$(i);var n=prx.visibility.get(i,"visible-all");!1===n?(r.css("opacity",0),r.addClass("hidden")):(r.removeClass("hidden"),r.css("opacity",n)),r=null},prx.items.updatePosition=function(t,e,r){var i=prx.stc.screens.getIndexFromId(r),n=prx.items.getRealDimsAndPos(t,"pages",i,0),a="";a=void 0!==e?$("#"+e+"-"+t.id):$("#"+t.id),prx.items.updateTransform(a,t,n[2],n[3])},prx.items.updateTransform=function(t,e,r,i,n,a){void 0===n&&(n=e.rotation),void 0===a&&(a=e.scale),(new TimelineMax).to("#"+t.attr("id"),0,Object.assign({},prx.basicGreensockOptions,{immediateRender:!0},{x:r,y:i,rotation:n,scale:a}))},prx.items.getScale=function(t){var e="";return void 0!==t.rscale&&(e="rscale-"+t.rscale),e},prx.items.updateScale=function(t,e){if(!prx.v5x11&&void 0!==t.rscale){if(void 0!==e)var r=$("#"+e+"-"+t.id);else r=$("#"+t.id);r.addClass("rscale-"+t.rscale)}},prx.items.getGroups=function(t,e,r,i){if(void 0===t.parentgroups&&(t.parentgroups=[]),0==t.parentgroups.length)return t.parentgroups;if(void 0!==r&&void 0!==i)var n="symbols",a=r,o=i;var s=$("#"+e).not(".ghost-component");if(s.length)n="page"===s.attr("data-role")?"pages":"symbols",a=s.attr("pages"===n?"data-id":"data-symbol-id"),o=s.attr("data-state-id");for(var l=0;l<prxy[n].length;l++)if(prxy[n][l].id==a)for(var p=0;p<prxy[n][l].states.length;p++)if(prxy[n][l].states[p].id==o){var c=prxy[n][l].states[p].groups;for(var u in c)prx.visibility.set("#"+e+" .group-"+u,"visible",!1!==c[u].visible),prx.visibility.set("#"+e+" .group-"+u,"opacity",void 0===c[u].opacity?1:parseFloat(c[u].opacity))}return t.parentgroups},prx.items.updateGroups=function(t,e){if(void 0!==e)var r=$("#"+e+"-"+t.id);else r=$("#"+t.id);t.parentgroups=prx.items.getGroups(t,e),t.parentgroups.forEach(function(t){r.addClass("group-"+t)})},prx.items.updateComponentType=function(t,e){if(void 0!==e)var r=$("#"+e+"-"+t.id);else r=$("#"+t.id);r.attr("data-component-type",t.type)},prx.items.updateTemplateItemPosition=function(t,e){t.id;var r,i=prxy.pages[prx.stc.screens.getIndexFromId(e)],n=prx.orientation.getPage(i),a=0;r=prx.devices[prx.device][n][0],a=prx.devices[prx.device][n][1],void 0===i.statusbar&&(i.statusbar=prx.projectsettings.statusbar),void 0===i.navigationbar&&(i.navigationbar=prx.projectsettings.navigationbar),"1"==i.statusbar&&(a-=prx.devices[prx.device]["statusbarheight"+n]),"1"==i.navigationbar&&(a-=prx.devices[prx.device]["navigationbarheight"+n]);var o=t.left,s=t.top,l=t.left,p=t.top,c=t.width,u=t.height,h=t.width,d=t.height;if("full"!=t.width){switch(t.wtype){case"fixed":h=c;break;case"variable":h=r-c}t.width=h}if("full"!=t.height){switch(t.htype){case"fixed":d=u;break;case"variable":d=a-u}t.height=d}switch(t.hpos){case"left":o=l;break;case"right":o=r-l-h;break;case"center":o=(r-h)/2}switch(t.left=o,t.vpos){case"top":s=p;break;case"bottom":s=a-p-d;break;case"middle":s=(a-d)/2}return t.top=s,t},prx.items.addAll=function(t,e){for(var r="p-"+t,i="",n=0;n<e.length;n++){var a=e[n];void 0===a.hpos&&(a.hpos="left"),void 0===a.vpos&&(a.vpos="top"),void 0===a.wtype&&(a.wtype="fixed"),void 0===a.htype&&(a.htype="fixed"),void 0===a.opacity&&(a.opacity="1");var o=a;a=[a],void 0===o._fromstateid?(prx.visibility.set("#"+r+"-"+o.id,"visible",!1!==o.visible),prx.visibility.set("#"+r+"-"+o.id,"opacity",void 0===o.opacity?1:parseFloat(o.opacity)),void 0!==prx.types[o.type]&&void 0!==prx.types[o.type].onDisplay&&(i+=prx.types[o.type].onDisplay(o,r))):i+='<div id="'+r+"-"+o.id+'" class="ghost-component" style="opacity: 0;"></div>'}document.getElementById(r).innerHTML=i;for(n=0;n<e.length;n++)void 0===e[n]._fromstateid&&(prx.items.addRippleEffect(e[n],r),prx.items.updateMaskPosition(e[n],r),void 0!==prx.types[e[n].type]&&void 0!==prx.types[e[n].type].afterDisplay&&prx.types[e[n].type].afterDisplay(e[n],r),prx.draggable.ini(e[n],t))},prx.items.rerender=function(e,r,t){var i="#"+r+"-"+e.id;if(0!=$(i).length){var n=prx.currentPlayerStatus.helper.getParentPointerFromDomId("#"+r);if(n&&n.items&&n.items.hasOwnProperty(e.id)&&(n.items[e.id]=prx.toolbox.clone(e),n.items[e.id].greensockInitialized=!1),void 0!==prx.types[e.type]&&void 0!==prx.types[e.type].onDisplay){void 0!==e._fromstateid&&(e.opacity=0);var a=!1;if(-1<r.indexOf("box")){var o=r.split("box-"),s="box-"+o[o.length-1],l=$("#"+r+"-"+e.id).parents("[data-state-id]").eq(1).attr("data-state-id");if(a=!0,void 0!==prx.allItems[s].states&&void 0!==prx.allItems[s].states[l]){var p=JSON.parse(prxy[prx.allItems[s].containertype][prx.allItems[s].containerindex].states[prx.allItems[s].states[l].stateindex].data);if(void 0!==p.items)var c=p.items[prx.allItems[s].itemindex];else c=p[prx.allItems[s].states[l].itemindex];var u=prx.stc.containers.getIndexFromId(c.symbolid);if(void 0!==prxy.symbols[u]){var h=$("#"+r).attr("data-state-id"),d=prx.stc.containers.getStateIndexFromId(h,u);if(-1!==d)var f=prxy.symbols[u].states[d]}}if(void 0===c||void 0===f)return}if(prx.visibility.set("#"+r+"-"+e.id,"visible",!1!==e.visible),prx.visibility.set("#"+r+"-"+e.id,"opacity",void 0===e.opacity?1:parseFloat(e.opacity)),a?$("#"+r+"-"+e.id).replaceWith(prx.types[e.type].onDisplay(e,r,f)):$("#"+r+"-"+e.id).replaceWith(prx.types[e.type].onDisplay(e,r)),"vectoranimation"===e.type||"symbol"===e.type){var m=prx.bodymovinAnimation.getAllRegisteredAnimations(),g=!0;if(m.length)g=!1,m.filter(function(t){return t.name!==r+"-"+e.id}).length&&(g=!0);g&&prx.bodymovinAnimation.loadBodymovinPageAnimations("#"+r+"-"+e.id)}prx.items.addRippleEffect(e,r),prx.items.updateMaskPosition(e,r),-1==t&&(t=r.split("-")[1]),void 0!==prx.types[e.type]&&void 0!==prx.types[e.type].afterDisplay&&(a?prx.types[e.type].afterDisplay(e,r,f):prx.types[e.type].afterDisplay(e,r)),prx.actions.parseItemAction(e,r,t),prx.draggable.ini(e,t,r),prx.draggable.refresh("#"+r+"-"+e.id)}}},prx.items.getRealDimsAndPos=function(t,e,r,i,n){if(n)var a=prx.stc.helper.getDims(e,void 0,void 0,n);else a=prx.stc.helper.getDims(e,r,i);var o=t.width,s=t.height,l=t.left,p=t.top;return"variable"==t.wtype&&(o=a[0]-o),"variable"==t.htype&&(s=a[1]-s),"right"==t.hpos&&(l=a[0]-l-o),"center"==t.hpos&&(l=(a[0]-o)/2),"bottom"==t.vpos&&(p=a[1]-p-s),"middle"==t.vpos&&(p=(a[1]-s)/2),[parseInt(o),parseInt(s),parseInt(l),parseInt(p)]},prx.items.getRealDimsAndPosWithRotation=function(t,e,r,i){var n=prx.items.getRealDimsAndPos(t,e,r,i);if(void 0===t.rotation||0==t.rotation||isNaN(parseFloat(t.rotation)))return n;var a=n[0],o=n[1],s=t.rotation*(Math.PI/180),l=prx.items.getRotatedWidth(a,o,s),p=prx.items.getRotatedHeight(a,o,s),c=n[2]-Math.round((l-a)/2),u=n[3]-Math.round((p-o)/2);return[parseInt(l),parseInt(p),parseInt(c),parseInt(u)]},prx.items.getRotatedWidth=function(t,e,r){return Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r))},prx.items.getRotatedHeight=function(t,e,r){return Math.abs(t*Math.sin(r))+Math.abs(e*Math.cos(r))},prx.items.addToAllItemsStruct=function(t,e,r,i,n,a){void 0===prx.allItems[t.id]&&(prx.allItems[t.id]={containertype:e,containerindex:r,states:{}}),prx.allItems[t.id].states[i]={stateindex:n,itemindex:a}},prx.items.getFromAllItemStruct=function(t,e){if(void 0===prx.allItems[t]||void 0===prxy[prx.allItems[t].containertype][prx.allItems[t].containerindex]||void 0===prx.allItems[t].states[e]||void 0===prxy[prx.allItems[t].containertype][prx.allItems[t].containerindex].states[prx.allItems[t].states[e].stateindex])return!1;var r=JSON.parse(prxy[prx.allItems[t].containertype][prx.allItems[t].containerindex].states[prx.allItems[t].states[e].stateindex].data);return void 0!==r[prx.allItems[t].states[e].itemindex]&&r[prx.allItems[t].states[e].itemindex].id===t&&r[prx.allItems[t].states[e].itemindex]},prx.items.recursivelyFindItemSymbolId=function(t,e,r){for(var i=(t=t.replace(/#p-[0-9]+-/,"")).split("-box-")[0],n=prx.items.helper.getAllItems(e,r),a=0;a<n.length;a++)if(n[a].id==i)return t==i?void 0!==n[a].symbolid&&n[a].symbolid:(t=t.substr((i+"-").length),-1!=prx.stc.containers.getIndexFromId(n[a].symbolid)&&prx.items.recursivelyFindItemSymbolId(t,"symbols",prx.stc.containers.getIndexFromId(n[a].symbolid)));for(a=0;a<n.length;a++)if("symbol"==n[a].type){if(-1==prx.stc.containers.getIndexFromId(n[a].symbolid))return!1;var o=prx.items.recursivelyFindItemSymbolId(t,"symbols",prx.stc.containers.getIndexFromId(n[a].symbolid));if(void 0!==o)return o}},prx.items.addRippleEffect=function(t,e){if(void 0!==t.rippleEffect&&t.rippleEffect){if(void 0!==e)var r="#"+e+"-"+t.id;else r="#"+t.id;0<$(r).find(".prx-material-ripple").length&&(r+=" .prx-material-ripple");var i=$(r).find(".prx-material-ripple-roundoverflow");0<i.length?i.addClass("waves-effect waves-circle"):$(r).addClass("waves-effect waves-circle"),$(r).append("<style>"+r+" .waves-ripple { background-color: "+prx.gradients.prxToCss(t.rippleEffectColor)+"; }</style>"),Waves.displayEffect({itemid:r,duration:1e3})}},prx.items.getRealDimsAndPosFromItem=function(t){var e=t.match(/box-[0-9]+$/);if(!e)return!1;var r,i=e[0],n=$(t).parents("[data-state-id]").first().attr("data-state-id"),a=prx.items.getFromAllItemStruct(i,n);return!1!==a&&{width:(r="pages"===prx.allItems[i].containertype?prx.items.getRealDimsAndPos(a,"pages",prx.allItems[i].containerindex,prx.allItems[i].states[n].stateindex):prx.items.getRealDimsAndPos(a,"symbols",prx.allItems[i].containerindex,prx.allItems[i].states[n].stateindex))[0],height:r[1],left:r[2],top:r[3],rotation:a.rotation}},prx.items.updateTransformIfHidden=function(t,e){var r=prx.currentPlayerStatus.helper.getParentPointerFromDomId(t);if((!r||!r.greensockInitialized)&&!1===prx.visibility.get(t,"visible-in-dom",void 0,e)){var i=t.split("box-"),n="box-"+i[i.length-1],a=t.replace("-"+n,""),o=prx.currentPlayerStatus.helper.getSelfAndAncestorsFromDomId(t);o.splice(-1,1);var s=prx.currentPlayerStatus.helper.getParentPointerFromAncestors(o),l=prx.currentPlayerStatus.helper.getParentType(s),p=prx.currentPlayerStatus.helper.getParentPrxyIndex(s,l),c=prx.currentPlayerStatus.helper.getStatePrxyIndex(s,l,p),u=prx.currentPlayerStatus.helper.getItemCopyFromAllItems(t,n,a,e);if(!u&&prxy[l]&&prxy[l][p]&&prxy[l][p].states[c])u=JSON.parse(prxy[l][p].states[c].data).find(function(t){return t.id===n});if(u&&("top"!==u.vpos||"left"!==u.hpos||"fixed"!==u.htype||"fixed"!==u.wtype)){var h=prx.toolbox.itemDimensions(u,l,p,c);u.top=h.top,u.left=h.left,u.rotation=h.rotation}if(u){var d={top:u.top,left:u.left,rotation:u.rotation};prx.items.updateTransform($(t),{},d.left,d.top,d.rotation,1),r.greensockInitialized=!0}}}},function(t,e){prx.items.helper={},prx.items.helper.getAllItems=function(t,e,r){if(void 0===r&&(r=0),-1==e)return[];var i=JSON.parse(prxy[t][e].states[r].data);if(1==prxy[t][e].states.length)return i;for(var n,a=[],o=0;o<i.length;o++)a.push(i[o].id);for(o=0;o<prxy[t][e].states.length;o++)if(o!=r){n=JSON.parse(prxy[t][e].states[o].data);for(var s=0;s<n.length;s++)-1==a.indexOf(n[s].id)&&(a.push(n[s].id),n[s]._fromstateid=prxy[t][e].states[o].id,i.push(n[s]))}return i},prx.items.helper.getGroups=function(t,e,r){return void 0===r&&(r=0),-1==e?{}:prx.toolbox.clone(prxy[t][e].states[r].groups)},prx.items.helper.refreshHtmlComponent=function(t,e,r){if($("#"+e+"-"+t).hasClass("type-html")){if(void 0!==prx.allItems[t].states&&void 0!==prx.allItems[t].states[r]){var i=JSON.parse(prxy[prx.allItems[t].containertype][prx.allItems[t].containerindex].states[prx.allItems[t].states[r].stateindex].data)[prx.allItems[t].states[r].itemindex];$("#"+e+"-"+i.id+" iframe").remove(),prx.types[i.type].afterDisplay(i,e)}}else $("#"+e+"-"+t+" .box").each(function(){if($(this).hasClass("type-html")){var t=$(this).attr("id").split("box-"),e="box-"+t[t.length-1],r=$(this).attr("id").split("-"+e)[0],i=$(this).parents(".type-symbol").attr("data-state-id");if(void 0!==prx.allItems[e].states&&void 0!==prx.allItems[e].states[i]){var n=JSON.parse(prxy[prx.allItems[e].containertype][prx.allItems[e].containerindex].states[prx.allItems[e].states[i].stateindex].data)[prx.allItems[e].states[i].itemindex];$("iframe",this).remove(),prx.types[n.type].afterDisplay(n,r)}}})},prx.items.helper.getPageIdFromId=function(t){return"#"==t.substring(0,1)?t.substring(3):t.substring(2)},prx.items.helper.getBoxIdFromId=function(t){var e=t.split("-box-");return"box-"+e[e.length-1]}},function(t,e){prx.stc={}},function(t,e){prx.stc.helper={},prx.stc.helper.getStateIndexFromId=function(t,e,r){if(void 0===e||void 0===r||-1==r)return-1;if(void 0===prxy[e][r])return-1;for(var i=0;i<prxy[e][r].states.length;i++)if(prxy[e][r].states[i].id==t)return i;return-1},prx.stc.helper.getDims=function(t,e,r,i){if(-1==r)return!1;switch(t){case"symbols":return void 0!==i?[i.dimensions[0],i.dimensions[1]]:[prxy[t][e].states[r].dimensions[0],prxy[t][e].states[r].dimensions[1]];default:var n=prxy[t][e].orientation,a=0,o=0;prx.projectsettings.statusbarapplies&&"1"==prxy[t][e].statusbar&&(a=1,prx.devices[prx.device]["statusbarheight"+n]),prx.projectsettings.navigationbarapplies&&"1"==prxy[t][e].navigationbar&&(o=1,prx.devices[prx.device]["navigationbarheight"+n]);var s=parseInt(a)*prx.devices[prx.device]["statusbarheight"+n]+parseInt(o)*prx.devices[prx.device]["navigationbarheight"+n];return[prx.devices[prx.device]["normal"+n][0],prx.devices[prx.device]["normal"+n][1]-s]}},prx.stc.helper.getIndexFromId=function(t,e){void 0===e&&(e=prx.stc.helper.getType());for(var r=0;r<prxy[e].length;r++)if(prxy[e][r].id==t)return r;return-1}},function(t,e){function f(t){return(f="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})(t)}prx.stc.screens={},prx.stc.screens.getIndexFromId=function(t){for(var e=-1,r=0;r<prxy.pages.length;r++)prxy.pages[r].id==t&&(e=r);return e},prx.stc.screens.getStructFromId=function(t){var e=prx.items.helper.getPageIdFromId(t);return prxy.pages[prx.stc.screens.getIndexFromId(e)]},prx.stc.screens.getStateIndexFromId=function(t,e){return prx.stc.helper.getStateIndexFromId(t,"pages",e)},prx.stc.screens.getAllItems=function(t,e){return prx.items.helper.getAllItems("pages",t,e)},prx.stc.screens.getGroups=function(t,e){return prx.items.helper.getGroups("pages",t,e)},prx.stc.screens.reloadResponsive=function(t,e){void 0===e&&(e=prx.orientation.get()),t.orientation=e,prx.stc.screens.load(t),prx.draggable.refresh("#p-"+t.id)},prx.stc.screens.load=function(t){var e=prx.stc.screens.getAllItems(prx.stc.screens.getIndexFromId(t.id)),n="p-"+t.id;prx.currentPlayerStatus.data.screens[n]={},prx.currentPlayerStatus.data.screens[n].type="page",prx.currentPlayerStatus.data.screens[n].id=t.id,prx.currentPlayerStatus.data.screens[n].screenstateid=t.states[0].id,prx.currentPlayerStatus.data.screens[n].groups=prx.toolbox.clone(t.states[0].groups),prx.currentPlayerStatus.data.screens[n].items={},e.map(function(e){if(prx.currentPlayerStatus.data.screens[n].items[e.id]=prx.toolbox.clone(e),"symbol"===e.type){var t=prx.stc.containers.getIndexFromId(e.symbolid);if(void 0!==prxy.symbols[t]&&void 0!==prxy.symbols[t].states[0]){var r=prxy.symbols[t].states[0].id;if(e.symbolstateid){var i=prxy.symbols[t].states.findIndex(function(t){return t.id===e.symbolstateid});-1<i&&(r=prxy.symbols[t].states[i].id)}prx.currentPlayerStatus.data.screens[n].items[e.id].symbolstateid=r}}});var r=prx.orientation.getPage(t),i=prx.devices[prx.device][r][0],a=prx.devices[prx.device][r][1],o=a;$("#dragarea").width(i);var s=$("#"+n).attr("data-state-id",t.states[0].id);s.width(i),s.css("height",a+"px"),s.unbind("pageshow").bind("pageshow",function(t,e){return s.height(a),$(".remove-on-pageshow").removeClass("remove-on-pageshow"),prx.scrollable.refresh("#"+n),prx.draggable.refresh("#"+n),prx.vr.refresh("#"+n),$("#overlay").empty().hide(),$("#underlay").empty().hide(),!1}),"undefined"==t.navigationbar&&(t.navigationbar="0"),prx.canvas._statusbars[t.id]={},prx.canvas._statusbars[t.id].statusbar=t.statusbar,prx.canvas._statusbars[t.id].orientation=r;var l=$(window).width()<$(window).height()?"portrait":"landscape";if(void 0===t.navigationbar&&(t.navigationbar="0"),prx.canvas._navigationbars[t.id]={},prx.canvas._navigationbars[t.id].navigationbar=t.navigationbar,prx.canvas._navigationbars[t.id].orientation=r,t.orientation==l){var p="portrait"==l?prx.project.startscreen:prx.project.startscreenlandscape;if("1"==t.statusbar){if(prx.allowstatusbar)try{p==t.id&&("1"!=prx.export2html?$("#statusbar").css({"background-image":prx.statusNavBar.buildStatusbar(r)}):"1"==prx.projectsettings.statusbarapplies?$("#statusbar").css("background-image","url(./images/statusbar_"+r+".png)"):$("#statusbar").css("background-image","none"),$("#statusbar").css("height",prx.devices[prx.device]["statusbarheight"+r]+"px")),s.css("top",prx.devices[prx.device]["statusbarheight"+r]+"px")}catch(t){}o-=prx.devices[prx.device]["statusbarheight"+r]}if("1"==t.navigationbar){if(prx.allownavigationbar)try{p===t.id&&("1"!=prx.export2html?$("#navigationbar").css({"background-image":prx.statusNavBar.buildNavbar(r)}):"1"==prx.projectsettings.navigationbarapplies?$("#navigationbar").css("background-image","url(./images/navigationbar_"+r+".png)"):$("#statusbar").css("background-image","none")),$("#navigationbar").css("height",prx.devices[prx.device]["navigationbarheight"+r]+"px"),$("#navigationbar").css("top",prx.devices[prx.device][r][1]-prx.devices[prx.device]["navigationbarheight"+r]+"px")}catch(t){}o-=prx.devices[prx.device]["navigationbarheight"+r]}}if($("#dragarea").height(o),void 0===t.states[0].background&&(t.states[0].background="none"),"none"!=t.states[0].background){var c=t.states[0].background;"object"===f(c)?c=prx.gradients.prxToCss(c):/^([0-9a-f]{3}|[0-9a-f]{6})$/i.test(c.trim())&&(c=prx.gradients.toRgba("#"+c,1)),s.css(prx.gradients.getBgCssPropertyByValue(c),c)}if(0<(""+t.states[0].template.id).length){var u=prx.stc.templates.getIndexFromId(t.states[0].template.id),h=prx.stc.templates.getStateIndexFromId(t.states[0].template.stateid,u);if(-1<u&&-1<h){var d=prx.stc.templates.render(t.states[0].template.id,"",t.id,t.states[0].template.stateid);s.append('<div id="p-'+t.id+'-template" style="position: absolute; left: 0px; top: 0px; background: none; width: '+i+"px; height: "+o+'px;">'+d+"</div>"),d=null,void 0===prx.templates[u].states[h].background&&(prx.templates[u].states[h].background="none"),"none"==t.background&&"none"!=prx.templates[u].states[h].background&&s.css("background-color",prx.utils.getColor(prx.templates[u].states[h].background));JSON.parse(prx.templates[u].states[h].data),prx.templates[u].states[h].template.id;prx.stc.templates.loadRecursiveAfterDisplay(t.states[0].template,"",t.id),null}else e.templateid=""}prx.items.addAll(t.id,e),prx.actions.loadScreenActions(t.id),prx.stc.templates.loadRecursiveEvents(t.states[0].template,t.id),$("#p-"+t.id).trigger("pagebeforecreate"),$("#p-"+t.id).trigger("pagecreate")}},function(module,exports){prx.stc.templates={},prx.stc.templates.render=function(templateid,containerid,pageid,stateid){var index=prx.stc.templates.getIndexFromId(templateid),stateindex=0;void 0===stateid&&(stateid=prx.templates[index].states[0].id),stateindex=prx.stc.templates.getStateIndexFromId(stateid,index);var _cR="",_containerid="";if(void 0===containerid?containerid="p-"+pageid+"-":(0==containerid.length?containerid="p-"+pageid+"-":containerid+="-",_containerid=containerid+"t"+templateid),_cR='<div id="'+_containerid+'" data-state-id='+stateid+">",-1<index&&-1<stateindex){var _tempdata=prx.stc.templates.getAllItems(index,stateindex),_items=_tempdata,_templateid=prx.templates[index].states[stateindex].template.id;null!=_templateid&&-1<eval(_templateid)&&(_cR+=prx.stc.templates.render(_templateid,_containerid,pageid,prx.templates[index].states[stateindex].template.stateid));for(var n=0;n<_items.length;n++){var tempitem=_items[n];void 0===tempitem._fromstateid?void 0!==prx.types[tempitem.type]&&(void 0!==prx.types[tempitem.type].onDisplayTemplate?_cR+=prx.types[tempitem.type].onDisplayTemplate(tempitem,_containerid):_cR+=prx.types[tempitem.type].onDisplay(tempitem,_containerid)):_cR+='<div id="'+_containerid+"-"+tempitem.id+'" class="ghost-component" style="opacity: 0;" />'}}return _cR+="</div>",_cR},prx.stc.templates.loadRecursiveEvents=function(template,pageid,containerid){void 0===containerid&&(containerid=""),prx.actions.loadTemplateActions(template,pageid,containerid);var index=prx.stc.templates.getIndexFromId(template.id),stateindex=prx.stc.templates.getStateIndexFromId(template.stateid,index);if(-1<index&&-1<stateindex){var _tempdata=JSON.parse(prx.templates[index].states[stateindex].data),_templateid=prx.templates[index].states[stateindex].template.id;null!=_templateid&&-1<eval(_templateid)&&(0==containerid.length?containerid="t"+template.id:containerid+="-t"+template.id,prx.stc.templates.loadRecursiveEvents(prx.templates[index].states[stateindex].template,pageid,containerid)),_tempdata=null}return!0},prx.stc.templates.loadRecursiveAfterDisplay=function(template,containerid,pageid){var index=prx.stc.templates.getIndexFromId(template.id),stateindex=prx.stc.templates.getStateIndexFromId(template.stateid,index),templateid=template.id,_containerid="";if(void 0===containerid?containerid="p-"+pageid+"-":(0==containerid.length?containerid="p-"+pageid+"-":containerid+="-",_containerid=containerid+"t"+templateid),-1<index&&-1<stateindex){for(var _tempdata=prx.stc.templates.getAllItems(index,stateindex),_template=prx.templates[index].states[stateindex].template,_items=_tempdata,n=0;n<_items.length;n++){var tempitem=_items[n];void 0===tempitem._fromstateid&&(prx.visibility.set("#"+_containerid+"-"+tempitem.id,"visible",!1!==tempitem.visible),prx.visibility.set("#"+_containerid+"-"+tempitem.id,"opacity",void 0===tempitem.opacity?1:tempitem.opacity),prx.items.updateGroups(tempitem,_containerid),prx.items.updateVisibility(tempitem,_containerid),prx.items.updateFilter(tempitem,_containerid),prx.items.updateScale(tempitem,_containerid),prx.items.addRippleEffect(tempitem,_containerid),prx.items.updateComponentType(tempitem,_containerid),void 0!==prx.types[tempitem.type]&&void 0!==prx.types[tempitem.type].afterDisplay&&prx.types[tempitem.type].afterDisplay(tempitem,_containerid,pageid),prx.draggable.ini(tempitem,pageid,_containerid))}void 0===prx.templates[index].states[stateindex].background&&(prx.templates[index].states[stateindex].background="none"),"transparent"!=$("#p-"+pageid).css("background-color")&&"rgba(0, 0, 0, 0)"!=$("#p-"+pageid).css("background-color")||"none"==prx.templates[index].states[stateindex].background||$("#p-"+pageid).css("background-color",prx.utils.getColor(prx.templates[index].states[stateindex].background)),null!=_template.id&&-1<eval(_template.id)&&prx.stc.templates.loadRecursiveAfterDisplay(_template,_containerid,pageid),_tempdata=null,_items=null}return!0},prx.stc.templates.getIndexFromId=function(t){for(var e=-1,r=0;r<prx.templates.length;r++)prx.templates[r].id==t&&(e=r);return e},prx.stc.templates.getStateIndexFromId=function(t,e){return prx.stc.helper.getStateIndexFromId(t,"templates",e)},prx.stc.templates.getAllItems=function(t,e){return prx.items.helper.getAllItems("templates",t,e)}},function(t,e){prx.stc.containers={},prx.stc.containers.getIndexFromId=function(t){for(var e=-1,r=0;r<prxy.symbols.length;r++)prxy.symbols[r].id==t&&(e=r);return e},prx.stc.containers.render=function(t,e,r){var i="";void 0===r&&(r=0);var n,a=prx.stc.containers.getIndexFromId(t.symbolid);n=e+"-"+t.id;var o=prx.currentPlayerStatus.helper.getSelfAndAncestorsFromDomId(n);if(""!=t.scroll&&"none"!=t.scroll&&("horizontal"!=t.scroll&&"omni"!=t.scroll||prxy.symbols[a].states[r].dimensions[0]+"px","vertical"!=t.scroll&&"omni"!=t.scroll||prxy.symbols[a].states[r].dimensions[1]+"px"),-1<a){var s=prx.stc.containers.getAllItems(a,r),l=prx.stc.containers.getGroups(a,r),p=prx.currentPlayerStatus.data.screens,c=null;o.map(function(t){p.hasOwnProperty(t.id)&&(c=p[t.id],p[t.id].hasOwnProperty("items")||(p[t.id].items={}),p=p[t.id].items)}),c&&(c.groups=l),p&&s.map(function(t){p[t.id]=prx.toolbox.clone(t)});for(var u=0;u<s.length;u++){var h=s[u];prx.visibility.set("#"+n+"-"+h.id,"visible",!1!==h.visible),prx.visibility.set("#"+n+"-"+h.id,"opacity",void 0===h.opacity?1:parseFloat(h.opacity)),void 0===h._fromstateid?void 0!==prx.types[h.type]&&(i+=prx.types[h.type].onDisplay(h,n,prxy.symbols[a].states[r])):i+='<div id="'+n+"-"+h.id+'" class="ghost-component" style="opacity: 0;"></div>'}}return i},prx.stc.containers.getStateIndexFromId=function(t,e){return prx.stc.helper.getStateIndexFromId(t,"symbols",e)},prx.stc.containers.loadRecursiveAfterDisplay=function(t,e,r){void 0===r&&(r=0);var i=prx.stc.containers.getIndexFromId(t.symbolid),n="";void 0===t.scrollsnap&&(t.scrollsnap=!1);var a=(n=e+"-"+t.id).match(/p-(\d+)-.+/)[1];if(-1<i){for(var o=prx.stc.containers.getAllItems(i,r),s=0;s<o.length;s++){var l=o[s];void 0===l._fromstateid&&(prx.items.addRippleEffect(l,n),prx.items.updateMaskPosition(l,n),void 0!==prx.types[l.type]&&void 0!==prx.types[l.type].afterDisplay&&prx.types[l.type].afterDisplay(l,n,prxy.symbols[i].states[r]),prx.draggable.ini(l,a,n),prx.actions.parseItemAction(l,n,a,"",!0))}for(var p=0;p<prxy.symbols[i].states.length;p++)prx.actions.parseContainerStateAction(i,p,a,n,t.id);prx.actions.loadGroupActions(prxy.symbols[i].states[r],"symbol",a,n),prx.scrollable.iniContainer(t,n)}return!0},prx.stc.containers.getAllItems=function(t,e){return prx.items.helper.getAllItems("symbols",t,e)},prx.stc.containers.getGroups=function(t,e){return prx.items.helper.getGroups("symbols",t,e)}},function(t,e){function l(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);function i(){}var n=0;return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}prx.currentPlayerStatus=prx.currentPlayerStatus||{},prx.currentPlayerStatus.helper={},prx.currentPlayerStatus.helper.initDataStructure=function(){prx.currentPlayerStatus.projectDevice={},prx.currentPlayerStatus.targetDevice={},prx.currentPlayerStatus.liveItems=document.getElementsByClassName("box"),prx.currentPlayerStatus.liveGroupActions=document.getElementsByClassName("group-action-prediv"),prx.currentPlayerStatus.data={},prx.currentPlayerStatus.data.screens={}},prx.currentPlayerStatus.helper.getLiveItem=function(t){if(prx.currentPlayerStatus.liveItems&&0<prx.currentPlayerStatus.liveItems.length)for(var e=0;e<prx.currentPlayerStatus.liveItems.length;e++)if(prx.currentPlayerStatus.liveItems[e].id===t)return prx.currentPlayerStatus.liveItems[e];return!1},prx.currentPlayerStatus.helper.getLiveGroupAction=function(t){if(prx.currentPlayerStatus.liveGroupActions&&0<prx.currentPlayerStatus.liveGroupActions.length)for(var e=0;e<prx.currentPlayerStatus.liveGroupActions.length;e++)if(prx.currentPlayerStatus.liveGroupActions[e]&&prx.currentPlayerStatus.liveGroupActions[e].id===t)return prx.currentPlayerStatus.liveGroupActions[e];return!1},prx.currentPlayerStatus.helper.getSelfAndAncestorsFromDomId=function(t){var e,r=[],i=prx.currentPlayerStatus.helper.getScreenFromDomTarget(t);i&&r.push(i);for(var n=/(-?(box-\d+)(?=\-scroll)?)/g;null!=(e=n.exec(t));)r.push({type:"item",id:e[2]});return r.length?r:[]},prx.currentPlayerStatus.helper.getGroupsFromDomClass=function(t){var e,r=[],i=prx.currentPlayerStatus.helper.getScreenFromDomTarget(t);i&&r.push(i);for(var n=/(\.?(group-[a-fA-F\d\-]+))+/g;null!=(e=n.exec(t));)r.push({type:"group",id:e[2]});return r},prx.currentPlayerStatus.helper.getScreenFromDomTarget=function(t){var e=t.match(/^#?(p-\d+)\.*/);return!!e&&{type:"screen",id:e[1]}},prx.currentPlayerStatus.helper.getGroupPointer=function(t,e){var r=e.replace("group-",""),i=prx.currentPlayerStatus.helper.getParentPointerFromDomId(t);if(i&&i.hasOwnProperty("groups")&&i.groups[r])return i.groups[r]},prx.currentPlayerStatus.helper.getParentPointerFromAncestors=function(t){var e,r=t.reduce(function(t,e){return"group"!==e.type?t+1:t},0),i=0,n=prx.currentPlayerStatus.data.screens,a=null,o=l(t);try{for(o.s();!(e=o.n()).done;){var s=e.value;void 0!==n&&"group"!==s.type&&n.hasOwnProperty(s.id)&&(a=n[s.id],n=n[s.id].items,i++)}}catch(t){o.e(t)}finally{o.f()}if(r===i)return a},prx.currentPlayerStatus.helper.getParentPointerFromDomId=function(t){var e=prx.currentPlayerStatus.helper.getSelfAndAncestorsFromDomId(t);return prx.currentPlayerStatus.helper.getParentPointerFromAncestors(e)},prx.currentPlayerStatus.helper.get=function(t,e){var r=prx.currentPlayerStatus.helper.getParentPointerFromDomId(t);if(r){if(Array.isArray(e)){var i={};return e.map(function(t){i[t]=r[t]}),i}return r[e]}},prx.currentPlayerStatus.helper.set=function(t,e,r){var i=prx.currentPlayerStatus.helper.getParentPointerFromDomId(t);return i&&("string"==typeof e?i[e]=r:Object.assign(i,e)),i},prx.currentPlayerStatus.helper.getDataAttribute=function(t){return prx.currentPlayerStatus.data[t]},prx.currentPlayerStatus.helper.setDataAttribute=function(t,e){return prx.currentPlayerStatus.data[t]=e,prx.currentPlayerStatus.data},prx.currentPlayerStatus.helper.normalizeDimsAndPos=function(t,e){var r=prx.currentPlayerStatus.helper.getSelfAndAncestorsFromDomId(t),i=prx.currentPlayerStatus.helper.getParentPointerFromAncestors(r);if(!e){r.splice(-1,1);var n=prx.currentPlayerStatus.helper.getParentPointerFromAncestors(r),a=prx.currentPlayerStatus.helper.getParentType(n),o=prx.currentPlayerStatus.helper.getParentPrxyIndex(n,a),s=prx.currentPlayerStatus.helper.getStatePrxyIndex(n,a,o);e=prx.toolbox.itemDimensions(i,a,o,s)}i.vpos="top",i.top=e.top,i.hpos="left",i.left=e.left,i.wtype="fixed",i.width=e.width,i.htype="fixed",i.height=e.height},prx.currentPlayerStatus.helper.getStatePrxyIndex=function(t,e,r){var i="pages"===e?t.screenstateid:t.symbolstateid;return prx.stc.helper.getStateIndexFromId(i,e,r)},prx.currentPlayerStatus.helper.getParentPrxyIndex=function(t,e){var r="pages"===e?t.id:t.symbolid;return prx.stc.helper.getIndexFromId(r,e)},prx.currentPlayerStatus.helper.getParentType=function(t){return/^\d+$/.test(t.id)?"pages":"symbols"},prx.currentPlayerStatus.helper.getItemCopyFromAllItems=function(t,e,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;if(null===i){var n=prx.currentPlayerStatus.helper.getParentPointerFromDomId(r);i=n&&"symbol"===n.type?n.symbolstateid:n?n.screenstateid:$(t).parents("[data-state-id]").first().attr("data-state-id")}if(void 0!==prx.allItems[e]&&void 0!==prx.allItems[e].states&&void 0!==prx.allItems[e].states[i]){var a=JSON.parse(prxy[prx.allItems[e].containertype][prx.allItems[e].containerindex].states[prx.allItems[e].states[i].stateindex].data);return void 0!==a.items?a.items[prx.allItems[e].itemindex]:a[prx.allItems[e].states[i].itemindex]}}},function(t,e){function o(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);function i(){}var n=0;return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}prx.actions={},prx.actions._actionTypes=["actions","actionbarUpCaretActions","actionbarActionOverflowActions","flipswitchActionsOnActive","flipswitchActionsOnDeactive","checkboxActionsOnActive","checkboxActionsOnDeactive","ios7NavbarActionsTitle","ios7NavbarActionsLeftBtn","ios7NavbarActionsRightBtn","actions1","actions2","actions3"],prx.actions._actions={},prx.actions._isRunning={},prx.actions._loopCounter={},prx.actions._hammerDirToString=[],prx.actions._hammerDirToString[1]="none",prx.actions._hammerDirToString[2]="left",prx.actions._hammerDirToString[4]="right",prx.actions._hammerDirToString[8]="up",prx.actions._hammerDirToString[16]="down",prx.actions.scrolltos=[],prx.actions.justtapped=!1,prx.actions.ACTION_RUNNING=1,prx.actions.ACTION_NOT_RUNNING=0,prx.actions.ACTION_INTERRUPTED=-1,prx.actions.build=function(n,t,e){if(void 0!==n.enabled&&!n.enabled)return!1;void 0===e&&(e=!0),(void 0===n.live||void 0!==n.clb_disabled&&!0===n.clb_disabled)&&(n.live=!1),void 0===n.delay&&(n.delay=0),"inputkeyup"==n.type&&void 0===n.charCode&&(n.charCode="-1"),void 0!==n.charCode&&"string"==typeof n.charCode&&(n.charCode=n.charCode.split(",")),"containerpageenter"==n.type&&void 0===n.namespace&&(n.namespace=".page"+n.eventItemIndex[0]+"-"+n.eventItemIndex[1]),"containerscrollto"==n.type&&(n.namespace=".scrollto"+n.scrolltodirection+"-"+n.scrolltovalue,0==prx.actions.scrolltos.filter(function(t){return t.dir==n.scrolltodirection&&t.val==n.scrolltovalue&&t.namespace==n.namespace&&t.item==n.bindTo}).length&&prx.actions.scrolltos.push({dir:n.scrolltodirection,val:n.scrolltovalue,namespace:n.namespace,item:n.bindTo}));if(void 0===n.namespace&&(n.namespace=""),void 0===n.guid&&(n.guid=prx.utils.getGuid()),void 0===n.callback&&(n.callback=!1),void 0===n.targetId)if(void 0!==n.pageId)n.targetId="#p-"+n.pageId+"-"+n.itemId;else if(n.targetId=-1==n.itemId?"#"+n.containerid:"#"+n.containerid+"-"+n.itemId,-1==n.itemId){var r=n.containerid.split("-");n.itemId="box-"+r[r.length-1]}if(void 0!==n.pageId)if(-1==n.pageId){if(void 0!==n.itemId&&null!=n.itemId&&void 0!==n.containerid&&null!=n.containerid&&n.itemId.split("-").shift()==n.containerid.split("-").pop())n.targetId="#"+n.containerid+"-"+n.itemId.split("-").slice(1).join("-");else if(n.targetId=-1==n.itemId?"#"+n.containerid:"#"+n.containerid+"-"+n.itemId,-1==n.itemId){r=n.containerid.split("-");n.itemId="box-"+r[r.length-1]}}else if(-2==n.pageId){r=n.targetId.split(/[-\[]/);n.targetId="#p-"+r[1],n.pageId=r[1]}else void 0!==n.allowOverwriteTargetId&&!n.allowOverwriteTargetId||(void 0!==n.itemId?n.targetId="#p-"+n.pageId+"-"+n.itemId:n.targetId="#p-"+n.pageId);var i=n.guid.split("-guid-");n.guid=n.bindTo+"-target-"+n.targetId+"-guid-"+i[i.length-1],""==n.animation&&(n.animation="none"),void 0===t&&(t=!0),t&&"click"==n.type&&(n.type="tap"),"taphold"!=n.type&&"forcetouch"!=n.type||(n.type="press");var a=n.type;if("statekeydown"==n.type&&(a="keydown"),e){function o(t,e){if(prx.actions._isRunning[n.guid]==prx.actions.ACTION_RUNNING)return!1;if(_activePage=prx.navigation._activepage,"click"==n.type||"tap"==n.type)for(var r=t.target;null!=r&&1==r.nodeType;){if(void 0!==prx.scrollable._scrollables[r.id]){if(prx.scrollable._scrollables[r.id].moved)return!1;break}r=r.parentNode}if("statekeydown"==n.type){var i=[];$("#"+_activePage+", #"+_activePage+" [data-state-id]").not(".ghost-component").each(function(){i.push($(this).attr("id")+"-"+$(this).attr("data-state-id"))})}return(!("keydown"!=n.type&&"inputkeyup"!=n.type&&"statekeydown"!=n.type||"keydown"==n.type&&(-1<n.charCode.indexOf(t.which+"")||-1<n.charCode.indexOf(t.which)||-1<n.charCode.indexOf("-1"))&&_activePage==n.bindPageId&&!/textarea|select|input/i.test(t.target.nodeName)||"statekeydown"==n.type&&(-1<n.charCode.indexOf(t.which+"")||-1<n.charCode.indexOf(t.which)||-1<n.charCode.indexOf("-1"))&&_activePage==n.bindPageId&&-1<i.indexOf(n.containerid+"-"+n.bindStateId)&&!/textarea|select|input/i.test(t.target.nodeName)||"inputkeyup"==n.type&&(-1<n.charCode.indexOf(t.which+"")||-1<n.charCode.indexOf(t.which)||-1<n.charCode.indexOf("-1")))||(prx.actions._actions[n.guid].call(this,t,e),"keydown"!=n.type&&"contextmenu"!=n.type&&"statekeydown"!=n.type))&&void 0}if(n.live)$("body").off(a+n.namespace+"."+n.guid.replace(/-/g,"").replace("#",""),n.bindTo),$("body").hammer().on(a+n.namespace+"."+n.guid.replace(/-/g,"").replace("#","")+"."+n.bindTo.replace(/\W/g,""),n.bindTo,o),prx.actions.hammer("body",n.type);else if("gazemouseenter"==a||"gazemouseleave"==a||"gazeclick"==a)a=a.replace("gaze",""),$(n.bindTo).addClass("interaction-"+a)[0].addEventListener(a,o);else $(n.bindTo).hammer().addClass("interaction-"+a).on(a+n.namespace,o),prx.actions.hammer(n.bindTo,n.type,n.namespace)}return prx.actions._isRunning[n.guid]=prx.actions.ACTION_NOT_RUNNING,prx.actions.generate(n),n.callback&&(n.loop&&(n.callbackAction.loop=n.loop,void 0!==n.loopGUID?n.callbackAction.loopGUID=n.loopGUID:n.callbackAction.loopGUID=n.guid),void 0===n.previousActions&&(n.previousActions=[]),void 0!==n.containerid&&(n.callbackAction.containerid=n.containerid),n.targetId,void 0!==n.bindTo&&(n.callbackAction.bindTo=n.bindTo),void 0!==n.type&&(n.callbackAction.type=n.type),n.callbackAction.previousActions=n.previousActions,n.callbackAction.previousActions.push(n.guid),prx.actions.build(n.callbackAction,void 0,!1)),!0},prx.actions.generate=function(o){prx.actions._actions[o.guid]=function(t,e){if(void 0!==t){if(n=t.target,$(n).hasClass("ghost-component")||0<$(n).parents(".ghost-component").length)return!1;if("stateenter"==t.type||"stateleave"==t.type||"statetransitionstart"==t.type||"statetransitionend"==t.type){if(t.target!=t.currentTarget)return!1;if(("statetransitionstart"==t.type||"statetransitionend"==t.type)&&void 0!==o.states&&-1==o.states.indexOf($(t.target).attr("data-previous-state-id")+":"))return!1}if(-1<["containerpageenter","containerpagechange","containerscroll","containerscrollto","containerscrollend"].indexOf(t.type)&&t.target!=t.currentTarget)return!1;if(-1<["mouseover","mouseout"].indexOf(t.type)){var r=t.relatedTarget;if(r==this)return;if(r)for(var i=r.parentNode;i;){if(i==this)return;i=i.parentNode}}}var n;if(prx.actions._isRunning[o.guid]===prx.actions.ACTION_NOT_RUNNING&&o.loop&&void 0!==o.loopIterations&&(prx.actions._loopCounter[o.guid]=o.loopIterations-1),prx.actions._isRunning[o.guid]=prx.actions.ACTION_RUNNING,void 0!==t){if("change"!==o.type&&0<$(t.target).parents().andSelf().filter(".actions-actions1, .actions-actions2").length&&!/\.protoio-actions[1-2]/.test(o.namespace))return prx.actions.setNotRunning(o),!1;"tap"==o.type&&(void 0!==t.gesture&&void 0!==t.gesture.srcEvent&&void 0!==t.gesture.srcEvent.preventDefault&&("input"!=$(t.gesture.srcEvent.target).prop("tagName").toLowerCase()&&"textarea"!=$(t.gesture.srcEvent.target).prop("tagName").toLowerCase()&&(t.gesture.srcEvent.preventDefault(),prx.helper.blurInputs()),"touchend"==t.gesture.srcEvent.type&&($(this).find("input[type=radio]").not(":visible").not(":disabled").prop("checked",!0).trigger("change.custom-change-event"),$(this).find("input[type=checkbox]").not(":visible").not(":disabled").each(function(){$(this).is(":checked")?$(this).prop("checked",!1).trigger("change.custom-change-event"):$(this).prop("checked",!0).trigger("change.custom-change-event")}))),$(this).parents(".type-symbol").children().each(function(){void 0!==prx.scrollable._scrollables[this.id]&&prx.scrollable._scrollables[this.id]._end({type:"touchend",target:this,preventDefault:function(){}})})),-1<["pan","panleft","panright","panup","pandown","panend"].indexOf(t.type)&&void 0!==t.gesture&&(void 0===prx.variables._triggerData[o.bindTo]&&(prx.variables._triggerData[o.bindTo]={}),void 0===prx.variables._triggerData[o.bindTo][t.type]&&(prx.variables._triggerData[o.bindTo][t.type]={}),prx.variables._triggerData[o.bindTo][t.type].distancex=t.gesture.deltaX,prx.variables._triggerData[o.bindTo][t.type].distancey=t.gesture.deltaY,prx.variables._triggerData[o.bindTo][t.type].direction=prx.actions._hammerDirToString[t.gesture.direction]),-1<["pinch","pinchin","pinchout"].indexOf(t.type)&&void 0!==t.gesture&&(void 0===prx.variables._triggerData[o.bindTo]&&(prx.variables._triggerData[o.bindTo]={}),void 0===prx.variables._triggerData[o.bindTo][t.type]&&(prx.variables._triggerData[o.bindTo][t.type]={}),prx.variables._triggerData[o.bindTo][t.type].scale=t.gesture.scale)}switch(o.actionId){case"alert":alert(o.bindTo),prx.actions.callback(o);break;case"alert-variable":alert(prx.variables.read(o.variable)),prx.actions.callback(o);break;case"stoppropagation":prx.actions.callback(o);break;case"go-to-page":prx.actionsLibrary.goToPage(o);break;case"load-page":prx.actionsLibrary.loadPage(o);break;case"unload-page":prx.actionsLibrary.unloadPage(o);break;case"hide-item":prx.actionsLibrary.hideItem(o);break;case"show-item":prx.actionsLibrary.showItem(o);break;case"show-hide-item":prx.actionsLibrary.showHide(o);break;case"toggle-item":prx.actionsLibrary.toggleItem(o);break;case"restart-gif":prx.actionsLibrary.restartGif(o);break;case"bring-front":setTimeout(function(){o.targetId=o.targetId.replace("-group-"," .group-");var t=$(o.targetId).parents("[data-state-id]").first().attr("data-state-id");$(o.targetId).appendTo($(o.targetId).parent()),void 0!==t&&prx.items.helper.refreshHtmlComponent(o.itemId,o.containerid,t),prx.groups.redrawGroupActionDiv(o.targetId),prx.actions.callback(o)},o.delay);break;case"send-back":setTimeout(function(){o.targetId=o.targetId.replace("-group-"," .group-");var t=$(o.targetId).parents("[data-state-id]").first().attr("data-state-id");$(o.targetId).prependTo($(o.targetId).parent()),void 0!==t&&prx.items.helper.refreshHtmlComponent(o.itemId,o.containerid,t),prx.groups.redrawGroupActionDiv(o.targetId),prx.actions.callback(o)},o.delay);break;case"highlight-navbar-item":setTimeout(function(){var t=prx.currentPlayerStatus.data.screens[o.containerid].items[o.itemId];if("-1"==o.itemIndex)$(o.targetId+" input[type=radio]").prop("checked",!1).trigger("change.custom-change-event");else{var e=o.targetId+"-radio-"+o.itemIndex;$("[id="+e.substr(1)+"]").prop("checked",!0).trigger("change.custom-change-event")}void 0!==t.selected?prx.currentPlayerStatus.helper.set(o.targetId,"selected",Array.isArray(t.selected)?[o.itemIndex]:o.itemIndex):void 0!==t.activeTab&&prx.currentPlayerStatus.helper.set(o.targetId,"activeTab",""+o.itemIndex),prx.actions.callback(o)},o.delay);break;case"highlight-list-item":setTimeout(function(){var t=prx.actionsLibrary.getComponentItemTypeFromDom(o.targetId),i=prx.currentPlayerStatus.helper.get(o.targetId,prx.types[t].dynamicProperties.data);"-1"===o.itemIndex.toString()?($(o.targetId+" input[type=radio], "+o.targetId+" input[type=checkbox]").prop("checked",!1).trigger("change.custom-change-event"),i.forEach(function(t){void 0!==t.checked&&(t.checked=!1)})):$(o.targetId+" input[type=radio], "+o.targetId+" input[type=checkbox]").each(function(t,e){var r=Array.isArray(o.itemIndex)&&-1<o.itemIndex.indexOf(t)||o.itemIndex.toString()===t.toString();$(e).prop("checked",r).trigger("change.custom-change-event"),i[t]&&void 0!==i[t].checked&&(i[t].checked=r)}),void 0!==prx.currentPlayerStatus.helper.get(o.targetId,"selected")&&prx.currentPlayerStatus.helper.set(o.targetId,"selected",o.itemIndex),prx.actions.callback(o)},o.delay);break;case"highlight-pagecontroller-item":setTimeout(function(){"-1"==o.itemIndex?$(o.targetId+" input[type=radio]").prop("checked",!1).trigger("change.custom-change-event"):$(o.targetId+" input").eq(parseInt(o.itemIndex)).prop("checked",!0).trigger("change.custom-change-event"),prx.currentPlayerStatus.helper.set(o.targetId,"selected",o.itemIndex),prx.actions.callback(o)},o.delay);break;case"play-sound-effect":case"play-audio":prx.actionsLibrary.playAudio(o);break;case"pause-audio":setTimeout(function(){$(o.targetId+" audio").length&&$(o.targetId+" audio").get(0).pause(),prx.actions.callback(o)},o.delay);break;case"stop-audio":setTimeout(function(){$(o.targetId+" audio").length&&($(o.targetId+" audio").get(0).pause(),0!=$(o.targetId+" audio").get(0).readyState&&($(o.targetId+" audio").get(0).currentTime=0)),prx.actions.callback(o)},o.delay);break;case"volume-audio":prx.actionsLibrary.volumeAudio(o);break;case"play-video":prx.actionsLibrary.playVideo(o);break;case"pause-video":prx.actionsLibrary.pauseVideo(o);break;case"stop-video":prx.actionsLibrary.stopVideo(o);break;case"volume-video":prx.actionsLibrary.volumeVideo(o);break;case"go-to-carousel-page":prx.actionsLibrary.goToCarouselPage(o);break;case"scroll-scrollable-container":prx.actionsLibrary.scrollScrollableContainer(o);break;case"sync-pagecontroller-item":var a=0;void 0!==e&&(a=$(o.bindTo).hasClass("scroll-vertical")?e.currentPage.pageY:e.currentPage.pageX,prx.currentPlayerStatus.helper.set(o.targetId,"syncPage",a)),setTimeout(function(){$(o.targetId+" input:eq("+a+")").prop("checked",!0).trigger("change.custom-change-event"),prx.actions.callback(o)},o.delay);break;case"fire-item-event":prx.actionsLibrary.fireItemsEvent(o);break;case"animate-item":prx.actionsLibrary.animateItem(o);break;case"end-loop":setTimeout(function(){for(var t in prx.actions._loopCounter)if(prx.actions._loopCounter.hasOwnProperty(t)&&-1<t.indexOf(o.actionGuid)){var e=o.pageId;e=-1==e?o.containerid:"p-"+e,0!=t.indexOf("#"+e+"-")&&0!=t.indexOf("#"+e+"[")||(prx.actions._loopCounter[t]=0)}prx.actions.callback(o)},o.delay);break;case"change-property":prx.actionsLibrary.changeProperty(o);break;case"set-variable":setTimeout(function(){prx.actionsLibrary.setVariable(o)},o.delay);break;case"move-screen":prx.actionsLibrary.moveScreen(o);break;case"change-screen-state":setTimeout(function(){prx.actionsLibrary.changeState(o,"pages")},o.delay);break;case"change-template-state":setTimeout(function(){prx.actionsLibrary.changeState(o,"templates")},o.delay);break;case"go-to-container-state":case"change-container-state":setTimeout(function(){prx.actionsLibrary.changeState(o,"symbols")},o.delay);break;case"stop-state-transition":setTimeout(function(){prx.actionsLibrary.stopStateTransition(o)},o.delay);break;case"open-external-url":case"send-email":case"make-phone-call":case"send-sms":setTimeout(function(){prx.actionsLibrary.externalLink(o)},o.delay);break;case"focus-input-field":setTimeout(function(){$(o.targetId+" input, "+o.targetId+" textarea").trigger("click.fakefocus"),prx.interface.triggeriOSAppEvent("forceInputFocus",o.targetId.substr(1)),prx.actions.callback(o)},o.delay);break;case"play-vectoranimation":prx.actionsLibrary.playVectorAnimation(o);break;case"pause-vectoranimation":prx.actionsLibrary.pauseVectorAnimation(o);break;case"stop-vectoranimation":prx.actionsLibrary.stopVectorAnimation(o);break;case"change-cursor":prx.actionsLibrary.changeCursor(o)}}},prx.actions.callback=function(t){if(t.callback)void 0!==t.callbackAction.clb_disabled&&!0===t.callbackAction.clb_disabled?prx.actions.callback(t.callbackAction):prx.actions._actions[t.callbackAction.guid].call(this);else if(void 0!==t.loop&&t.loop){var e=void 0!==t.loopGUID?t.loopGUID:t.guid;0<prx.actions._loopCounter[e]?(prx.actions._loopCounter[e]--,prx.actions._actions[e].call()):prx.actions._isRunning[e]=prx.actions.ACTION_NOT_RUNNING}else prx.actions.setNotRunning(t)},prx.actions.setNotRunning=function(t){if(void 0!==t.guid&&(prx.actions._isRunning[t.guid]=prx.actions.ACTION_NOT_RUNNING,void 0!==t.previousActions))for(var e=0;e<t.previousActions.length;e++)prx.actions._isRunning[t.previousActions[e]]=prx.actions.ACTION_NOT_RUNNING},prx.actions.setInterrupted=function(t){if(void 0!==t.guid&&(prx.actions._isRunning[t.guid]=prx.actions.ACTION_INTERRUPTED,void 0!==t.previousActions))for(var e=0;e<t.previousActions.length;e++)prx.actions._isRunning[t.previousActions[e]]=prx.actions.ACTION_INTERRUPTED},prx.actions.hammer=function(i,n,t){var a=".flashactiontap";void 0!==t&&(a+="-"+t),$(i).each(function(){var t=$(this).data("hammer");if(void 0===t)return!1;if(t.get("swipe").set({direction:Hammer.DIRECTION_ALL,velocity:-1,threshold:20}),t.get("pan").set({direction:Hammer.DIRECTION_ALL}),t.get("tap").set({time:500,threshold:10}),t.get("doubletap").set({posThreshold:60,threshold:2}),t.get("press").set({time:500,threshold:5}),"touch"==n||"release"==n||"delayedtap"==n){function e(){Hammer.AttrRecognizer.apply(this,arguments)}Hammer.inherit(e,Hammer.AttrRecognizer,{defaults:{event:"touch",pointers:1},getTouchAction:function(){return[Hammer.TOUCH_ACTION_AUTO]},attrTest:function(t){return t.isFirst&&this._super.attrTest.call(this,t)},process:function(t){return this.attrTest(t)?Hammer.STATE_RECOGNIZED:Hammer.STATE_FAILED}}),t.add(new e).recognizeWith([t.get("tap"),t.get("press"),t.get("swipe"),t.get("pan")]),prx.actions.disableFlashActionOnItemTouch(i)}if("release"==n||"delayedtap"==n){function r(){Hammer.AttrRecognizer.apply(this,arguments)}Hammer.inherit(r,Hammer.AttrRecognizer,{defaults:{event:"release",pointers:1},getTouchAction:function(){return[Hammer.TOUCH_ACTION_AUTO]},attrTest:function(t){return this._super.attrTest.call(this,t)&&t.isFinal}}),t.add(new r).recognizeWith([t.get("tap"),t.get("press"),t.get("swipe"),t.get("pan"),t.get("touch")])}"delayedtap"==n&&(t.add(new Hammer.Tap({event:"delayedtap",time:500,threshold:10}).recognizeWith(t.get("tap")).requireFailure(t.get("doubletap"))),t.get("release").recognizeWith(t.get("delayedtap")),t.get("touch").recognizeWith(t.get("delayedtap"))),-1<["pinch","pinchin","pinchout"].indexOf(n)&&t.get("pinch").set({enable:!0}),"body"!=i&&"tap"==n&&prx.actions.disableFlashActionOnItemTap(i,a)})},prx.actions.addHighlight=function(t){if(t&&0!==t.length){var e,r=o(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(0!=i.enabled){var n=$(i.highlightTarget).children(".action-highlight"),a=i.namespace?"highlight-"+i.namespace.replace(".",""):"";0==n.length?n=$('<div class="action-highlight '+a+'"></div>').appendTo(i.highlightTarget):a&&!n.hasClass(a)&&n.addClass(a);break}}}catch(t){r.e(t)}finally{r.f()}}},prx.actions.recursivelyAddInfo=function(t,e,r,i,n){var a=5<arguments.length&&void 0!==arguments[5]?arguments[5]:void 0;return void 0===a&&(a=".protoio-actions"),t.namespace=(void 0===t.namespace?"":t.namespace)+a,t.bindTo=e,t.targetId=-1==t.itemId?"#"+i.slice(0,-1):"#"+i+t.itemId,t.containerid=r,t.highlightTarget=n,void 0!==t.delay&&0!=t.delay||(t.delay=10),void 0!==t.callbackAction&&(t.callbackAction=prx.actions.recursivelyAddInfo(t.callbackAction,e,r,i,n,a)),t},prx.actions.loadScreenActions=function(p){$.each(prxy.pages,function(t,n){if(n.id==p){n.id,$("#p-"+p).unbind("pagebeforeshow").bind("pagebeforeshow",function(t,e){if($(this).find(".type-applewatch-notification .notification-container.notificationType-long").each(function(){$(this).removeClass("notificationType-long").addClass("notificationType-short")}),prx.allowstatusbar&&"1"==prx.canvas._statusbars[n.id].statusbar){try{"1"!=prx.export2html?$("#statusbar").css({"background-image":prx.statusNavBar.buildStatusbar(prx.canvas._statusbars[n.id].orientation)}):prx.statusNavBar.buildStatusbarExported(prx.canvas._statusbars[n.id].orientation),$("#statusbar").css("height",prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[n.id].orientation]+"px")}catch(t){}$("#p-"+n.id).css("top",prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[n.id].orientation]+"px")}else $("#statusbar").css("height","0px");if(prx.allownavigationbar&&"1"==prx.canvas._navigationbars[n.id].navigationbar)try{"1"!=prx.export2html?$("#navigationbar").css({"background-image":prx.statusNavBar.buildNavbar(prx.canvas._navigationbars[n.id].orientation)}):prx.statusNavBar.buildNavbarExported(prx.canvas._navigationbars[n.id].orientation),$("#navigationbar").css("height",prx.devices[prx.device]["navigationbarheight"+prx.canvas._navigationbars[n.id].orientation]+"px"),$("#navigationbar").css("top",prx.devices[prx.device][prx.canvas._navigationbars[n.id].orientation][1]-prx.devices[prx.device]["navigationbarheight"+prx.canvas._navigationbars[n.id].orientation]+"px")}catch(t){}else $("#navigationbar").css("height","0px")}),$("#p-"+p).bind("pagebeforehide",function(t,e){if($("#p-"+p).hasClass("prx-page-transitioning"))return!1;prx.overlay.render("#p-"+p);var r=prx.currentPlayerStatus.helper.get("#p-"+p,"left")||0,i=prx.currentPlayerStatus.helper.get("#p-"+p,"top")||0,o=0;if(prx.allowstatusbar&&"1"==prx.canvas._statusbars[n.id].statusbar&&(i-=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[n.id].orientation],o=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[n.id].orientation]),0!=r||0!=i){var s=[],l=prx.currentPlayerStatus.helper.getParentPointerFromDomId("#p-"+p).items;Object.keys(l).map(function(t,e){var r=l[t];if(r.overlay&&!0===r.overlay){var i="p-"+p+"-"+r.id,n=r.left,a=r.top-o;s[i]={x:n,y:a},prx.currentPlayerStatus.helper.normalizeDimsAndPos(i),prx.currentPlayerStatus.helper.set(i,{left:n,top:a})}}),$("#p-"+p).one("pagehide",function(t,e){Object.keys(l).map(function(t,e){var r=l[t];if(r.overlay&&!0===r.overlay){var i="p-"+p+"-"+r.id;(new TimelineMax).to("#"+i,0,s[i])}})})}}),$("#p-"+p).bind("pagehide",function(t,e){$(this).find(".type-list input, .type-list-retina input, .type-android-listbasic input").not(".listitem-type-checkbox input").prop("checked",!1),$("#overlay").empty().hide(),$("#underlay").empty().hide(),prx.vr.disable("#"+$(this).attr("id"))}),$("#p-"+p).bind("pageshow",function(t,e){$("#p-"+n.id+" .type-image .gif img").each(function(){var t=$(this);t.attr("src",t.attr("src"))}),$("#p-"+n.id+' .box [data-linked-screen="'+n.id+'"]').find("input").prop("checked",!0).trigger("change.custom-change-event")}),prx.actions.parseScreenAction(t);for(var e=0;e<n.states.length;e++)prx.actions.parseScreenStateAction(t,e);prx.actions.loadItemActions(n.states[0],"page",p,"")}})},prx.actions.loadTemplateActions=function(t,e,r){var i=prx.stc.templates.getIndexFromId(t.id),n=prx.stc.templates.getStateIndexFromId(t.stateid,i);if(-1==i||-1==n)return!1;for(var a=0;a<prx.templates[i].states.length;a++)prx.actions.parseTemplateStateAction(i,a,e,r);-1<i&&-1<n&&prx.actions.loadItemActions(prx.templates[i].states[n],"template",e,t.id,r)},prx.actions.loadContainerActions=function(r,i,n,a){return $.each(prxy.symbols,function(t,e){e.id==r&&prx.actions.loadItemActions(e.states[0],"symbol",i,n,a)}),!1},prx.actions.loadItemActions=function(t,e,r,i,n){var a="",o="";"page"==e&&(a=JSON.parse(t.data),o="p-"+r),"template"==e&&(a=JSON.parse(t.data),o="p-"+r,void 0!==n&&""!=n&&(o+="-"+n)),"symbol"==e&&(a=JSON.parse(t.data),o="p-"+r+"-"+n+"-"),prx.actions.loadGroupActions(t,e,r,n),$.each(a,function(t,e){prx.actions.parseItemAction(e,o,r,i)})},prx.actions.reloadGroupActions=function(t,e,r,i,n){n=n.replace("#","");for(var a={pages:"page",templates:"template",symbols:"symbol"},o=prxy[t][e],s=0;s<o.states.length;s++)o.states[s].id==r&&prx.actions.loadGroupActions(o.states[s],a[t],i,n)},prx.actions.loadGroupActions=function(t,e,r,i){var n="",a={};for(var o in"page"==e&&(n="p-"+r,a=t.groups),"template"==e&&(n="p-"+r,void 0!==i&&""!=i&&(n+="-"+i),a=t.groups),"symbol"==e&&(n=i,a=t.groups),$("#"+n+" > .group-action-prediv, #"+n+"-scroll > .group-action-prediv").remove(),a)a.hasOwnProperty(o)&&prx.actions.parseGroupAction(a[o],n)},prx.actions.parseGroupAction=function(t,e){if(void 0!==t.actions&&0!=t.actions.length){var r=e+"-group-"+t.id+"-actions",i=void 0===t.parentgroups?"":t.parentgroups.map(function(t){return"group-"+t}).join(" ");!1===prx.visibility.get("#"+r.replace("-group"," .group").replace("-actions",""),"visible")&&(i+=" hidden");var n=$('<div id="'+r+'" class="group-action-prediv group-'+t.id+" "+i+'"></div>'),a="#"+e+" .group-"+t.id,o=prx.groups.getGroupData(a);o&&0<o.targetids.length&&(o.targetids=o.targetids.filter(function(t){return!1!==prx.visibility.get(t,"visible-all")}));var s={top:-1,left:-1,width:0,height:0,rotation:0};if(o&&0<o.targetids.length){var l=prx.groups.getItemDimentions(o);s=prx.toolbox.calculateBox(l,o.group.rotation,o.parenttype,o.parentindex,o.stateindex)}var p=prx.currentPlayerStatus.helper.getGroupPointer("#"+e,"group-"+t.id);p&&(p.currentGroupDimensions=s),(new TimelineMax).to(n,0,{y:s.top,x:s.left,width:s.width,height:s.height,rotation:s.rotation}),$(a).first().before(n),t.actions.sort(function(t,e){return t.sort-e.sort}),t.actions.forEach(function(t){t=JSON.parse(JSON.stringify(t)),t=prx.actions.recursivelyAddInfo(t,"#"+r,e,e,"#"+r,".protoio-group-actions"),prx.actions.build(t)})}},prx.actions.parseItemAction=function(t,s,e,r,l){var p="";if(void 0!==t._fromstateid)return!0;p=void 0!==s?(void 0!==r&&""!=r&&(s=s+"-t"+r),_id=s+"-"+t.id,s+"-"):(_id=t.id,""),void 0!==t.actions&&0<t.actions.length&&t.actions.sort(function(t,e){return t.sort-e.sort});function c(t,e,r,i,n,a,o,s,l,p){var c=7<arguments.length&&void 0!==s&&s,u=8<arguments.length&&void 0!==l&&l,h=9<arguments.length&&void 0!==p&&p;!function(t,e){var r="highlight-"+t,i=$(e+" > .action-highlight"),n=!1;if(i.length){var a=i.attr("class").split(/\s+/);$.each(a,function(t,e){if("action-highlight"!==e&&e!==r)return!(n=!0)})}n?i.removeClass(r):i.remove()}(o,a);var d=".flashactiontap";return o&&(d+="-"+o),$(r).off(d),c?$("body").off("."+r.replace(/\W/g,"")):$(r).off("."+o),0<t.length?(function(t,r,i,n,a,o,s,e,l){var p=7<arguments.length&&void 0!==e&&e,c=8<arguments.length&&void 0!==l&&l;t.sort(function(t,e){return t.sort-e.sort}),$.each(t,function(t,e){p&&("click"!=e.type&&"tap"!=e.type||(e.type="change")),e=prx.actions.recursivelyAddInfo(e,i,n,a,o,"."+s),c&&(e.live=!0),prx.actions.build(e,r)})}(t,e,r,i,n,a,o,u,h),1):0}function u(t){$(t).removeClass(function(t,e){return(e.match(/(^|\s)interaction-\S+/g)||[]).join(" ")})}var i=0,h=0;switch(t.type){case"basic_checkbox_list":case"basic_checkbox_list_horizontal":case"basic_checkbox_list_vertical":case"ios7_listcheckbox":var o="listitems";0===t.type.indexOf("basic_checkbox_list")&&(o="buttons"),void 0===t.listitems&&(t.listitems=[]),$.each(t.listitems,function(t,e){if(void(h=0)===e)return!0;var r="#"+_id+"-"+o+"-"+t;if(void 0!==e.actions){var i="#"+_id+"-checkbox-"+t;h+=c(e.actions,l,i,s,p,r,"protoio-actions",!1,!0,!1),prx.actions.addHighlight(e.actions),0==h&&u(i)}if(void 0!==e.actions1){var n="#"+_id+"-checkbox-"+t+":checked";h+=c(e.actions1,l,n,s,p,r,"protoio-actions-actions1",!0,!0,!0),prx.actions.addHighlight(e.actions1),0==h&&u(n)}if(void 0!==e.actions2){var a="#"+_id+"-checkbox-"+t+":not(:checked)";h+=c(e.actions2,l,a,s,p,r,"protoio-actions-actions2",!0,!0,!0),prx.actions.addHighlight(e.actions2),0==h&&u(a)}});break;case"flipswitch":case"flipswitch_retina":case"flipswitch_ios5":case"flipswitch_ios5_retina":case"android_onoffswitch":case"android_onoffswitch_kitkat":case"metro_onoff":case"ios7_switch":case"material_onoffswitch":case"basic_switch":case"basic_switch2":void 0===t.flipswitchActionsOnActive&&void 0!==t.actionsOnActive&&(t.flipswitchActionsOnActive=t.actionsOnActive),void 0===t.flipswitchActionsOnDeactive&&void 0!==t.actionsOnDeactive&&(t.flipswitchActionsOnDeactive=t.actionsOnDeactive);var n="#"+_id;if(void 0!==t.flipswitchActionsOnActive){var a="#"+_id+"-flipswitch:checked";i+=c(t.flipswitchActionsOnActive,l,a,s,p,n,"protoio-flipswitchActionsOnActive",!0,!0,!0),prx.actions.addHighlight(t.flipswitchActionsOnActive),0==i&&u(a)}if(void 0!==t.flipswitchActionsOnDeactive){var d="#"+_id+"-flipswitch:not(:checked)";i+=c(t.flipswitchActionsOnDeactive,l,d,s,p,n,"protoio-flipswitchActionsOnDeactive",!0,!0,!0),prx.actions.addHighlight(t.flipswitchActionsOnDeactive),0==i&&u(d)}if(void 0!==t.actions){var f="#"+_id;i+=c(t.actions,l,f,s,p,n,"protoio-actions",!1,!0,!1),prx.actions.addHighlight(t.actions),0==i&&u(f)}break;case"checkbox":case"checkbox_retina":case"radiobutton":case"basic_checkbox":case"basic_radiobutton":case"radiobutton_retina":case"android_checkbox":case"android_radiobutton":case"metro_checkbox":case"metro_radiobutton":case"ios7_checkbox":case"material_checkbox":case"material_radiobutton":case"material_morphing_lines":if(void 0!==t.checkboxActionsOnActive){var m="#"+_id+"-checkbox:checked",g="#"+_id;i+=c(t.checkboxActionsOnActive,l,m,s,p,g,"protoio-checkboxActionsOnActive",!0,!0,!0),prx.actions.addHighlight(t.checkboxActionsOnActive),0==i&&u(m)}if(void 0!==t.checkboxActionsOnDeactive){var v="#"+_id+"-checkbox:not(:checked)",y="#"+_id;i+=c(t.checkboxActionsOnDeactive,l,v,s,p,y,"protoio-checkboxActionsOnDeactive",!0,!0,!0),prx.actions.addHighlight(t.checkboxActionsOnDeactive),0==i&&u(v)}if(void 0!==t.actions){var x="#"+_id,b=x;i+=c(t.actions,l,x,s,p,b,"protoio-actions",!1,!0,!1),prx.actions.addHighlight(t.actions),0==i&&u(x)}break;case"android_actionbar":case"android_actionbar_contextual":if(void 0===t.actionbarActionOverflowActions&&void 0!==t.actions&&(t.actionbarActionOverflowActions=t.actions),void 0!==t.actionbarActionOverflowActions){var _="#"+_id+" .actionOverflow",w=_;i+=c(t.actionbarActionOverflowActions,l,_,s,p,w,"protoio-actionbarActionOverflowActions",!1,!1,!1),prx.actions.addHighlight(t.actionbarActionOverflowActions),0==i&&u(_)}if(void 0!==t.actionbarUpCaretActions){var S="#"+_id+" .left-icon",T=S;i+=c(t.actionbarUpCaretActions,l,S,s,p,T,"protoio-actionbarUpCaretActions",!1,!1,!1),prx.actions.addHighlight(t.actionbarUpCaretActions),0==i&&u(S)}break;case"ios7_navbar_buttons":if(void 0!==t.ios7NavbarActionsTitle){var P="#"+_id+" .ios7-navbar-title",k=P;i+=c(t.ios7NavbarActionsTitle,l,P,s,p,k,"protoio-ios7NavbarActionsTitle",!1,!1,!1),prx.actions.addHighlight(t.ios7NavbarActionsTitle),0==i&&u(P)}if(void 0!==t.ios7NavbarActionsLeftBtn){var I="#"+_id+" .ios7-navbar-button-left",A=I;i+=c(t.ios7NavbarActionsLeftBtn,l,I,s,p,A,"protoio-ios7NavbarActionsLeftBtn",!1,!1,!1),prx.actions.addHighlight(t.ios7NavbarActionsLeftBtn),0==i&&u(I)}if(void 0!==t.ios7NavbarActionsRightBtn){var E="#"+_id+" .ios7-navbar-button-right",C=E;i+=c(t.ios7NavbarActionsRightBtn,l,E,s,p,C,"protoio-ios7NavbarActionsRightBtn",!1,!1,!1),prx.actions.addHighlight(t.ios7NavbarActionsRightBtn),0==i&&u(E)}break;case"material_snackbar_action":if(void 0!==t.actions1){var O="#"+_id+" .actions-actions1",M=O;i+=c(t.actions1,l,O,s,p,M,"protoio-actions1",!1,!1,!1),prx.actions.addHighlight(t.actions1),0==i&&u(O)}if(void 0!==t.actions2){var D="#"+_id+" .actions-actions2",F=D;i+=c(t.actions2,l,D,s,p,F,"protoio-actions2",!1,!1,!1),prx.actions.addHighlight(t.actions2),0==i&&u(D)}break;default:for(var R="",N="#"+_id,L=0;L<999&&(0<L&&(R=L),void 0!==t["actions"+R]);L++){0<L&&(N+=" .actions-actions"+L);var B=N,j="protoio-actions"+R;i+=c(t["actions"+R],l,N,s,p,B,j,!1,!1,!1),prx.actions.addHighlight(t["actions"+R])}0==i&&u(N),prx.utils.dynamic_properties.forEach(function(o){Array.isArray(t[o])&&$.each(t[o],function(t,e){h=0,e||(e={}),R="";for(var r="#"+_id+"-"+o+"-"+t,i=0;i<999&&(0<i&&(R=i),void 0!==e["actions"+R]);i++){var n=r,a="protoio-actions"+R;h+=c(e["actions"+R],l,r,s,p,n,a,!1,!1,!1),prx.actions.addHighlight(e["actions"+R])}0==h&&u(r)})})}},prx.actions.parseScreenAction=function(t){var r=prxy.pages[t];void 0!==r.actions&&$.each(r.actions,function(t,e){e.bindTo="#p-"+r.id,e.containerid="p-"+r.id,e.targetId=e.bindTo+"-"+e.itemId,"keydown"==e.type&&(e.bindTo="body",e.bindPageId="p-"+r.id),prx.actions.build(e)})},prx.actions.parseScreenStateAction=function(t,e){if(-1==e)return!1;var r=prxy.pages[t],i=r.states[e];void 0!==i.actions&&(i.actions.sort(function(t,e){return t.sort-e.sort}),$.each(i.actions,function(t,e){e.bindTo="#p-"+r.id+"[data-state-id="+i.id+"]",e.containerid="p-"+r.id,e.targetId=e.bindTo+"-"+e.itemId,"statekeydown"==e.type&&(e.bindTo="",e.bindPageId="p-"+r.id,e.bindStateId=i.id),e.live=!0,prx.actions.build(e)}))},prx.actions.parseTemplateStateAction=function(r,t,e,i){if(-1==t)return!1;var n="p-"+e;void 0!==i&&""!=i&&(n+="-"+i);var a=prx.templates[r].states[t];void 0!==a.actions&&(a.actions.sort(function(t,e){return t.sort-e.sort}),$.each(a.actions,function(t,e){e.bindTo="#"+n+"-t"+prx.templates[r].id+"[data-state-id="+a.id+"]",e.containerid=n,e.targetId=e.bindTo+"-"+e.itemId,"statekeydown"==e.type&&(e.bindTo="body",e.bindPageId="p-"+_pageid,e.bindStateId=a.id),e.live=!0,prx.actions.build(e)}))},prx.actions.parseContainerStateAction=function(t,e,r,i,n){if(-1==e)return!1;var a=prxy.symbols[t].states[e];void 0!==a.actions&&(a.actions.sort(function(t,e){return t.sort-e.sort}),$.each(a.actions,function(t,e){(e=JSON.parse(JSON.stringify(e))).bindTo="#"+i+"[data-state-id="+a.id+"]",e.containerid=i,-1==e.pageId&&(e.pageId=r,e.targetId="#"+i+(-1!=e.itemId?"-"+e.itemId:""),e.allowOverwriteTargetId=!1),"statekeydown"==e.type&&(e.bindTo="",e.bindPageId="p-"+r,e.bindStateId=a.id),e.live=!0,prx.actions.build(e)}))},prx.actions.disableFlashActionOnItemTap=function(t,e){$(t).each(function(){var t=$(this).data("hammer");if(void 0===t)return!1;t.add(new Hammer.Tap({event:"flashactiontap",time:500,threshold:10}).recognizeWith(t.get("tap")).recognizeWith(t.get("doubletap"))),void 0===e&&(e=".flashactiontap"),$(this).off("flashactiontap"+e).on("flashactiontap"+e,function(t){prx.actions.justtapped=!0})})},prx.actions.disableFlashActionOnItemTouch=function(t,e){void 0===e&&(e=".flashactiontap"),$(t).off("touch"+e).on("touch"+e,function(t){prx.actions.justtapped=!0})}},function(t,e){function Pt(t){return(Pt="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})(t)}prx.actionsLibrary={},prx.actionsLibrary.loadPage=function(t){""==t.animation&&(t.animation="none");var e=prx.currentPlayerStatus.helper.getDataAttribute("currentScreenId");prx.currentPlayerStatus.helper.set(t.targetId,"loadedFrom",e);var r=$("#"+e),i=Math.max.apply(this,$(r).map(function(t){var e=/(^|\s)loadedTo-(\d)*/g,r=$(this).attr("class");return null===r.match(e)?0:r.match(e)[0].replace(" loadedTo-","").replace("loadedTo-","")}));$(r).addClass("loadedFrom"),$("#p-"+t.pageId).removeClass(function(t,e){var r=new RegExp("(^|)loadedTo-\\d*","g");return(e.match(r)||[]).join(" ")}).addClass("loadedTo-"+parseInt(i+1));var n=t.animation;$("#p-"+t.pageId).one("pageshow",function(){prx.actions.callback(t)}),prx.navigation.pushToBackStack("#"+prx.navigation._activepage,n,t.duration,t.animationEasing,"loadscreens"),setTimeout(function(){prx.navigation.changePage($("#p-"+t.pageId),{transition:n,duration:t.duration,easing:t.animationEasing,allowSamePageTransition:!1,overlay:"in"})},t.delay)},prx.actionsLibrary.unloadPage=function(i){""==i.animation&&(i.animation="none");var n=prx.navigation._activepage,a=prx.currentPlayerStatus.helper.get("#"+n,"loadedFrom");if(void 0!==a){var t=i.animation;"_reversePrevTransition"===t&&(0<prx.navigation._gobackstack.loadscreens.length?(t=prx.screenTransitions.reverseMapping[prx.navigation._gobackstack.loadscreens[prx.navigation._gobackstack.loadscreens.length-1].transition]||"none",i.duration=prx.navigation._gobackstack.loadscreens[prx.navigation._gobackstack.loadscreens.length-1].duration,i.animationEasing=prx.navigation._gobackstack.loadscreens[prx.navigation._gobackstack.loadscreens.length-1].easing):t="none"),prx.navigation._gobackstack.loadscreens.pop(),$("#"+n).one("pagehide",function(){var r=new RegExp("(^|)loadedTo-\\d*","g");$("#"+n).removeClass(function(t,e){return(e.match(r)||[]).join(" ")}),$("#"+a).removeClass("loadedFrom");var t=$("#"+a).get(0),e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e,a=null,prx.actions.callback(i)}),setTimeout(function(){prx.navigation.changePage($("#"+a),{transition:t,duration:i.duration,easing:i.animationEasing,overlay:"out"})},i.delay)}else prx.actions.callback(i)},prx.actionsLibrary.hideItem=function(r){var i=r.targetId,n=r.duration,a=r.animationEasing;if(a=prx.easing.get(a),void 0===n&&(n=0),-1!=i.indexOf("group")){i=r.targetId.replace("-group-"," .group-");var o=prx.groups.getGroupData(i);if(!o)return void prx.actions.callback(r);o.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t)}),(new TimelineMax).add(function(){prx.visibility.set(i,"visible",!1)},r.delay/1e3);var s={val:!0};o.targetids.forEach(function(t,e){(new TimelineMax).add(function(){$(t).addClass("animating-out")},r.delay/1e3).to(t,n/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:0,ease:a})).call(function(){$(t).addClass("hidden").removeClass("animating-out"),e===o.targetids.length-1&&prx.groups.redrawGroupActionDiv(i),s.val&&(s.val=!1,prx.actions.callback(r))})})}else prx.items.updateTransformIfHidden(i),(new TimelineMax).add(function(){$(i).addClass("animating-out")},r.delay/1e3).to(i,n/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:0,ease:a})).call(function(){prx.visibility.set(i,"visible",!1),$(i).addClass("hidden").removeClass("animating-out"),prx.groups.redrawGroupActionDiv(i),prx.actions.callback(r)})},prx.actionsLibrary.showHide=function(i){var n=i.targetId,a=i.duration,o=i.animationDuration,s=i.animationEasing;if(s=prx.easing.get(s),void 0===a&&(a=200),void 0===o&&(o=0),-1!=n.indexOf("group")){n=i.targetId.replace("-group-"," .group-");var l=prx.groups.getGroupData(n);if(!l)return void prx.actions.callback(i);l.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t)}),(new TimelineMax).add(function(){prx.visibility.set(n,"visible",!1)},i.delay/1e3),$(n+".group-action-prediv").css("display","none");var p={val:!0};l.targetids.forEach(function(t,e){if($(t).hasClass("animating-in")||$(t).hasClass("animating-out"))var r=1;else r=!1===(r=prx.visibility.get(t,"visible-all",[i.targetId.replace("-group-"," .group-")]))?0:r;!1!==prx.visibility.get(t,"visible")&&(p.val="tobecalled",(new TimelineMax).add(function(){$(t).hasClass("hidden")&&$(t).css("opacity",0).removeClass("hidden")},i.delay/1e3).to(t,o/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:r,ease:s})).to(t,o/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:0,delay:a/1e3,ease:s})).call(function(){$(t).addClass("hidden"),$(t).css("opacity",r),e===l.targetids.length-1&&prx.groups.redrawGroupActionDiv(n),p.val&&(p.val=!1,prx.actions.callback(i))}))}),!0===p.val&&prx.actions.callback(i)}else{if($(n).hasClass("animating-in")||$(n).hasClass("animating-out"))var t=1;else t=prx.visibility.get(n);if(prx.items.updateTransformIfHidden(n),!1===prx.visibility.get(n,"visible-rest"))return void prx.actions.callback(i);(new TimelineMax).add(function(){$(n).hasClass("hidden")&&$(n).css("opacity",0).removeClass("hidden")},i.delay/1e3).to(n,o/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:t,ease:s})).to(n,o/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:0,delay:a/1e3,ease:s})).call(function(){prx.visibility.set(n,"visible",!1),$(n).addClass("hidden"),$(n).css("opacity",t),prx.groups.redrawGroupActionDiv(n),prx.actions.callback(i)})}},prx.actionsLibrary.restartGif=function(t){var e=t.targetId;void 0!==t.pageId&&-1!=t.pageId&&(e="#p-"+t.pageId+"-"+t.itemId),setTimeout(function(){$(e+" div .gif img").each(function(){var t=$(this);t.attr("src",t.attr("src")),prx.currentPlayerStatus.helper.set(e,"src",t.attr("src"))})},t.delay),setTimeout(function(){prx.actions.callback(t)},t.delay)},prx.actionsLibrary.showItem=function(i){var r=i.targetId,n=i.duration,a=i.animationEasing;if(void 0===n&&(n=0),a=prx.easing.get(a),-1!=r.indexOf("group")){var o=i.targetId.replace("-group-"," .group-"),s=prx.groups.getGroupData(o);if(!s)return void prx.actions.callback(i);s.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t)});prx.visibility.get(o,"visible");(new TimelineMax).add(function(){prx.visibility.set(o,"visible",!0)},i.delay/1e3-.01);var l={val:!0};s.targetids.forEach(function(r,t){if($(r).hasClass("animating-in")||$(r).hasClass("animating-out"))e=1;else var e=prx.visibility.get(r);!1!==prx.visibility.get(r,"visible")&&(l.val="tobecalled",(new TimelineMax).add(function(){var t=$(r);if(t.hasClass("hidden")){t.removeClass("hidden");var e=i.targetId.replace("-group-"," .group-");prx.vr.refresh(e,!0),t.css("opacity",0)}t.addClass("animating-in")},i.delay/1e3).to(r,n/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:e,ease:a})).call(function(){$(r).removeClass("animating-in"),prx.scrollable.refresh(r),t===s.targetids.length-1&&prx.groups.redrawGroupActionDiv(o),l.val&&(l.val=!1,prx.actions.callback(i))}))}),!0===l.val&&prx.actions.callback(i)}else{if($(r).hasClass("animating-in")||$(r).hasClass("animating-out"))var t=1;else t=prx.visibility.get(r);if(prx.items.updateTransformIfHidden(r),!1===prx.visibility.get(r,"visible-rest"))return prx.visibility.set(r,"visible",!0),void prx.actions.callback(i);(new TimelineMax).add(function(){var t=$(r);if(t.hasClass("hidden")){t.removeClass("hidden"),prx.visibility.set(r,"visible",!0);var e=i.targetId.replace("-group-"," .group-");prx.vr.refresh(e,!0),t.css("opacity",0)}t.addClass("animating-in")},i.delay/1e3).to(r,n/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:t,ease:a})).call(function(){$(r).removeClass("animating-in"),prx.groups.redrawGroupActionDiv(r),prx.scrollable.refresh(r),prx.actions.callback(i)})}},prx.actionsLibrary.toggleItem=function(t){var e=t.targetId.replace("-group-"," .group-");!1===prx.visibility.get(e,"visible")||$(e).hasClass("animating-out")?prx.actionsLibrary.showItem(t):prx.actionsLibrary.hideItem(t)},prx.actionsLibrary.goToPage=function(n){function t(){var t,e="#p-"+n.pageId;if(n.pageId=n.pageId,t="#"+prx.navigation._activepage,void 0===n.delay&&(n.delay=0),""==n.animation&&(n.animation="none"),e!=t){var r=n.animation;if("_back"==n.pageId){if(0===prx.navigation._gobackstack.screens.length)return void prx.actions.callback(n);if(e=prx.navigation._gobackstack.screens[prx.navigation._gobackstack.screens.length-1].pageid,"_reversePrevTransition"===r&&(r=prx.screenTransitions.reverseMapping[prx.navigation._gobackstack.screens[prx.navigation._gobackstack.screens.length-1].transition]||"none",n.duration=prx.navigation._gobackstack.screens[prx.navigation._gobackstack.screens.length-1].duration,n.animationEasing=prx.navigation._gobackstack.screens[prx.navigation._gobackstack.screens.length-1].easing),prx.navigation._gobackstack.screens.pop(),void 0===e)return setTimeout(function(){prx.actions.callback(n)},n.delay),!0}var i=prx.stc.screens.getStructFromId(e);if(void 0===i)return void prx.actions.callback(n);if(prx.orientation.getPage(i)!=prx.orientation.get()&&!prx.embed&&parent!=window)try{prx.crossmsg.send({action:"switch-orientation"})}catch(t){}$(".loadedFrom").removeClass("loadedFrom").addClass("remove-on-pageshow"),"_back"!=n.pageId&&prx.navigation.pushToBackStack(t,r,n.duration,n.animationEasing,"screens"),setTimeout(function(){prx.navigation.changePage($(e),{transition:r,duration:n.duration,easing:n.animationEasing,allowSamePageTransition:!1}),prx.eventTransitionPage="#p-"+n.pageId},n.delay),$(e).one("pageshow",function(){prx.actions.callback(n)})}else setTimeout(function(){prx.actions.callback(n)},n.delay)}$(".prx-page-active").find("a-scene").on("exit-vr",function(){setTimeout(function(){t()},100)}),0<$(".prx-page-active").find("a-scene.fullscreen").length?$(".prx-page-active").find("a-scene").each(function(){this.exitVR()}):t()},prx.actionsLibrary.goToCarouselPage=function(i){if(void 0===prx.scrollable._scrollables[i.targetId.substr(1).replace(/ *\[[^)]*\] */g,"")+"-inner"])return prx.actions.callback(i),!1;if(prx.scrollable._scrollables[i.targetId.substr(1).replace(/ *\[[^)]*\] */g,"")+"-inner"].options.snap){var n=i.itemIndex[0],a=i.itemIndex[1];""==n&&(n="nochange"),""==a&&(a="nochange"),void 0===i.animationDuration&&(i.animationDuration=400);var o=prx.scrollable._scrollables[i.targetId.substr(1).replace(/ *\[[^)]*\] */g,"")+"-inner"];if(void 0!==o&&0==o.pages.length){var t=i.targetId.substr(1).split("-")[1];$("#p-"+t+","+i.targetId).addClass("initialise-hidden-container"),o.refresh(),$("#p-"+t+","+i.targetId).removeClass("initialise-hidden-container")}var s=o.currentPage.pageX,l=o.currentPage.pageY;setTimeout(function(){switch(n){case"previous":--s<0&&(s=0);break;case"next":++s>o.pages.length&&(s=o.pages.length);break;case"nochange":s=o.currentPage.pageX;break;default:s=parseInt(n)}switch(a){case"previous":--l<0&&(l=0);break;case"next":++l>o.pages[0].length&&(l=o.pages[0].length);break;case"nochange":l=o.currentPage.pageY;break;default:l=parseInt(a)}n=parseInt(s),a=parseInt(l);for(var t=!1,e=0;e<prx.scrollable._scrollableTabbars.length;e++)if(i.targetId.replace(/ *\[[^)]*\] */g,"")=="#"+prx.scrollable._scrollableTabbars[e].container+"-"+prx.scrollable._scrollableTabbars[e].linked){t=prx.scrollable._scrollableTabbars[e].container+"-"+prx.scrollable._scrollableTabbars[e].id;break}if(prx.scrollable._scrollables[i.targetId.substr(1).replace(/ *\[[^)]*\] */g,"")+"-inner"].goToPage(n,a,parseInt(i.scrollDuration)),0!=t&&prx.scrollable._scrollables[t+"-inner"].goToPage(n,0,parseInt(i.scrollDuration)),$(i.targetId).is(":hidden")){var r=$.Event("mouseup");r.target=o.scroller,prx.scrollable._scrollables[i.targetId.substr(1).replace(/ *\[[^)]*\] */g,"")+"-inner"]._transitionEnd(r)}},i.delay)}setTimeout(function(){prx.actions.callback(i)},parseInt(i.delay)+parseInt(i.scrollDuration))},prx.actionsLibrary.scrollScrollableContainer=function(i){var t=prx.scrollable._scrollables[i.targetId.substr(1).replace(/ *\[[^)]*\] */g,"")+"-inner"];if(void 0===t)return prx.actions.callback(i),!1;if(void 0===i.horizontalPx&&(i.horizontalPx=0),void 0===i.verticalPx&&(i.verticalPx=0),void 0!==t&&0==t.scrollerHeight&&0==t.scrollerWidth){var e=i.targetId.substr(1).split("-")[1];$("#p-"+e+","+i.targetId).addClass("initialise-hidden-container"),t.refresh(),$("#p-"+e+","+i.targetId).removeClass("initialise-hidden-container")}switch(i.scrollType){case"scroll-to":var n=-parseInt(i.horizontalPx),a=-parseInt(i.verticalPx);"*"==i.horizontalPx&&(n=t.x),"*"==i.verticalPx&&(a=t.y),setTimeout(function(){var t=prx.scrollable._scrollables[i.targetId.substr(1).replace(/ *\[[^)]*\] */g,"")+"-inner"];if(t.scrollTo(n,a,parseInt(i.scrollDuration)),void 0!==t.pages){var e=Math.floor(Math.abs(n)/t.wrapperWidth),r=Math.floor(Math.abs(a)/t.wrapperHeight);t.currentPage.pageX=e,t.currentPage.pageY=r,t.currentPage.x=-e*t.wrapperWidth,t.currentPage.y=-r*t.wrapperHeight}},i.delay);break;case"scroll-by":n=parseInt(i.horizontalPx),a=parseInt(i.verticalPx);"*"==i.horizontalPx&&(n=0),"*"==i.verticalPx&&(a=0),setTimeout(function(){prx.scrollable._scrollables[i.targetId.substr(1).replace(/ *\[[^)]*\] */g,"")+"-inner"].scrollBy(n,a,parseInt(i.scrollDuration))},i.delay)}setTimeout(function(){prx.actions.callback(i)},parseInt(i.delay)+parseInt(i.scrollDuration))},prx.actionsLibrary.fireItemsEvent=function(t){if("click"==t.itemEvent&&(t.itemEvent="tap"),"taphold"!=t.itemEvent&&"forcetouch"!=t.itemEvent||(t.itemEvent="press"),"container"==t.targetType){var e=t.containerid.split("-")[1];if(t.targetId="#p-"+e+" .type-symbol[data-symbol-id="+t.symbolId+"] .box[id$=-"+t.itemId+"]",void 0!==t.targetId&&-1<t.targetId.indexOf("group"))var r=$(t.targetId+"-actions");else r=$(t.targetId);if(0==r.length)return void prx.actions.callback(t);t.targetId="#"+r.attr("id")}else-1==t.pageId?t.targetId="#"+t.containerid+"-"+t.itemId:t.targetId="#p-"+t.pageId+"-"+t.itemId;setTimeout(function(){if(void 0!==t.targetId&&-1<t.targetId.indexOf("group"))$(t.targetId+"-actions").trigger(t.itemEvent);else if(void 0===t.itemIndex)$(t.targetId).trigger(t.itemEvent);else if(parseInt(t.itemIndex)==t.itemIndex)$(t.targetId+"-"+t.itemDynProps+"-"+t.itemIndex).trigger(t.itemEvent);else switch(t.itemIndex){case"actionbarUpCaretActions":$(t.targetId+" .left-icon").trigger(t.itemEvent);break;case"actionbarActionOverflowActions":$(t.targetId+" .actionOverflow").trigger(t.itemEvent);break;case"flipswitchActionsOnActive":$(t.targetId+" input:checked[id="+t.targetId.replace("#","")+"-flipswitch]").trigger(t.itemEvent);break;case"flipswitchActionsOnDeactive":$(t.targetId+" input[id="+t.targetId.replace("#","")+"-flipswitch]:not(:checked)").trigger(t.itemEvent);break;case"checkboxActionsOnActive":"tap"==t.itemEvent&&(t.itemEvent="change"),$(t.targetId+" input[id="+t.targetId.replace("#","")+"-checkbox]:not(:checked)").prop("checked",!0).trigger(t.itemEvent);break;case"checkboxActionsOnDeactive":"tap"==t.itemEvent&&(t.itemEvent="change"),$(t.targetId+" input:checked[id="+t.targetId.replace("#","")+"-checkbox]").prop("checked",!1).trigger(t.itemEvent);break;case"ios7NavbarActionsTitle":$(t.targetId+" .ios7-navbar-title").trigger(t.itemEvent);break;case"ios7NavbarActionsLeftBtn":$(t.targetId+" .ios7-navbar-button-left").trigger(t.itemEvent);break;case"ios7NavbarActionsRightBtn":$(t.targetId+" .ios7-navbar-button-right").trigger(t.itemEvent);break;default:"actions"==t.itemIndex?($(t.targetId).trigger(t.itemEvent),0<$(t.targetId+" input[type=checkbox]:not(:disabled)").length&&$(t.targetId+" input[type=checkbox]").prop("checked",!$(t.targetId+" input[type=checkbox]").is(":checked"))):$(t.targetId+" .actions-"+t.itemIndex).trigger(t.itemEvent)}prx.actions.callback(t)},t.delay)},prx.actionsLibrary.animateItem=function(c){var u={},h=c.targetId.replace("-group-"," .group-"),d={duration:parseInt(c.duration),easing:prx.easing.get(c.animationEasing),queue:!1,complete:function(){prx.groups.redrawGroupActionDiv(h),prx.actions.callback(c)}};u.easing=prx.easing.get(c.animationEasing);var a=[];switch(c.animationType){case"move-item":switch(c.moveType){case"move-by":var o=Object.assign({},prx.basicGreensockOptions,{ease:d.easing,delay:c.delay/1e3});if("*"!=c.moveXBy)P=0<=(P=Number(c.moveXBy))?"+="+P:"-="+-P,o.x=P;if("*"!=c.moveYBy)I=0<=(I=Number(c.moveYBy))?"+="+I:"-="+-I,o.y=I;if(-1<h.indexOf(".group-")){(z=prx.groups.getGroupData(h))&&z.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t),prx.currentPlayerStatus.helper.normalizeDimsAndPos(t);var r=prx.currentPlayerStatus.helper.get(t,["top","left"]);if(void 0!==o.x){var i=r.left+Number(c.moveXBy);a.push(function(){prx.currentPlayerStatus.helper.set(t,"left",i)})}if(void 0!==o.y){var n=r.top+Number(c.moveYBy);a.push(function(){prx.currentPlayerStatus.helper.set(t,"top",n)})}})}else{prx.items.updateTransformIfHidden(h),prx.currentPlayerStatus.helper.normalizeDimsAndPos(h);var t=prx.currentPlayerStatus.helper.get(h,["top","left"]);if(void 0!==o.x){var e=t.left+Number(c.moveXBy);a.push(function(){prx.currentPlayerStatus.helper.set(h,"left",e)})}if(void 0!==o.y){var r=t.top+Number(c.moveYBy);a.push(function(){prx.currentPlayerStatus.helper.set(h,"top",r)})}}(new TimelineMax).to(h,d.duration/1e3,o).add(function(){a.forEach(function(t){return t.call()})},c.delay/1e3).call(d.complete);break;case"move-to":var s=Object.assign({},prx.basicGreensockOptions,{ease:d.easing,delay:c.delay/1e3});if(void 0!==c.itemId&&-1!==c.itemId.indexOf("group")){if(!(z=prx.groups.getGroupData(h)))return void prx.actions.callback(c);z.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t)});var i=prx.groups.getItemDimentions(z),n=prx.toolbox.calculateBox(i,z.group.rotation,z.parenttype,z.parentindex,z.stateindex);if("*"!=c.moveXTo){var l=Number(c.moveXTo)-n.left;s.x=0<=l?"+="+l:"-="+-l}if("*"!=c.moveYTo){var p=Number(c.moveYTo)-n.top;s.y=0<=p?"+="+p:"-="+-p}z.targetids.forEach(function(t,e){prx.currentPlayerStatus.helper.normalizeDimsAndPos(t);var r=prx.currentPlayerStatus.helper.get(t,["top","left"]);if(void 0!==s.x){var i=r.left+l;a.push(function(){prx.currentPlayerStatus.helper.set(t,"left",i)})}if(void 0!==s.y){var n=r.top+p;a.push(function(){prx.currentPlayerStatus.helper.set(t,"top",n)})}})}else{if(prx.items.updateTransformIfHidden(h),prx.currentPlayerStatus.helper.normalizeDimsAndPos(h),"*"!=c.moveXTo){s.x=Number(c.moveXTo);var f=s.x;a.push(function(){prx.currentPlayerStatus.helper.set(h,"left",f)})}if("*"!=c.moveYTo){s.y=Number(c.moveYTo);var m=prx.toolbox.clone(s.y);a.push(function(){prx.currentPlayerStatus.helper.set(h,"top",m)})}}(new TimelineMax).to(h,d.duration/1e3,s).add(function(){a.forEach(function(t){return t.call()})},c.delay/1e3-.01).call(d.complete);break;case"move-to-animation-target":if(-1!=c.pageId)var g="#p-"+c.pageId+"-"+(c.item2Id||c.animationPointId);else g="#"+c.containerid+"-"+(c.item2Id||c.animationPointId);if(0==$(g).length)return void prx.actions.callback(c);if(void 0!==c.itemId&&-1!==c.itemId.indexOf("group")){if(!(z=prx.groups.getGroupData(h)))return void prx.actions.callback(c);z.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t)});var v=prx.groups.getItemDimentions(z),y=prx.toolbox.calculateBox(v,z.group.rotation,z.parenttype,z.parentindex,z.stateindex);P=prx.currentPlayerStatus.helper.get(g,"left")-y.left,I=prx.currentPlayerStatus.helper.get(g,"top")-y.top,z.targetids.forEach(function(t,e){prx.currentPlayerStatus.helper.normalizeDimsAndPos(t);var r=prx.currentPlayerStatus.helper.get(t,["top","left"]),i=r.left+P,n=r.top+I;a.push(function(){prx.currentPlayerStatus.helper.set(t,{left:i,top:n})})}),P=0<=P?"+="+P:"-="+-P,I=0<=I?"+="+I:"-="+-I}else prx.items.updateTransformIfHidden(h),prx.currentPlayerStatus.helper.normalizeDimsAndPos(h),P=prx.currentPlayerStatus.helper.get(g,"left"),I=prx.currentPlayerStatus.helper.get(g,"top"),a.push(function(){prx.currentPlayerStatus.helper.set(h,{left:P,top:I})});(new TimelineMax).to(h,d.duration/1e3,Object.assign({},prx.basicGreensockOptions,{x:P,y:I,ease:d.easing,delay:parseInt(c.delay)/1e3})).add(function(){a.forEach(function(t){return t.call()})},c.delay/1e3-.01).call(d.complete)}break;case"resize-item":switch(u.scale=1,d.complete=function(){prx.groups.redrawGroupActionDiv(h),prx.actions.callback(c),void 0!==prx.scrollable._scrollables[h.substring(1).replace(/ *\[[^)]*\] */g,"")+"-inner"]&&prx.scrollable._scrollables[h.substring(1).replace(/ *\[[^)]*\] */g,"")+"-inner"].refresh()},c.resizeType){case"resize-by":if(void 0!==c.itemId&&-1!==c.itemId.indexOf("group")){if(!(z=prx.groups.getGroupData(h)))return void prx.actions.callback(c);z.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t)});v=prx.groups.getItemDimentions(z);var x=prx.toolbox.calculateBox(v,z.group.rotation,z.parenttype,z.parentindex,z.stateindex),b=(E=v.map(function(t){t=prx.toolbox.rotate(t,{x:x.x,y:x.y},360-x.rotation);return prx.toolbox.itemDimensions(t,z.parenttype,z.parentindex,z.stateindex)})).map(function(t){var e={};return e.width=t.width/x.width,e.height=t.height/x.height,e.top=(t.top-x.top)/x.height,e.left=(t.left-x.left)/x.width,e});"*"!=c.resizeXBy&&(x.width+=Number(c.resizeXBy)),"*"!=c.resizeYBy&&(x.height+=Number(c.resizeYBy));var _=prx.toolbox.itemDimensions(x,z.parenttype,z.parentindex,z.stateindex),w=E.map(function(t,e){return t.width=b[e].width*_.width,t.height=b[e].height*_.height,t.top=_.top+b[e].top*_.height,t.left=_.left+b[e].left*_.width,prx.toolbox.itemDimensions(t,z.parenttype,z.parentindex,z.stateindex)}).map(function(t){return t=prx.toolbox.rotate(t,{x:_.x,y:_.y},_.rotation),prx.toolbox.itemDimensions(t,z.parenttype,z.parentindex,z.stateindex)}),S={val:!0};z.targetids.forEach(function(t,e){var r=[];prx.currentPlayerStatus.helper.normalizeDimsAndPos(t);var i=E[e].left,n=E[e].top;if(r.push(function(){prx.currentPlayerStatus.helper.set(t,{left:i,top:n})}),"*"!=c.resizeXBy){u.width=w[e].width;var a=E[e].width;r.push(function(){prx.currentPlayerStatus.helper.set(t,"width",a)})}if("*"!=c.resizeYBy){u.height=w[e].height;var o=E[e].height;r.push(function(){prx.currentPlayerStatus.helper.set(t,"height",o)})}var s=Object.assign({},u),l="box-"+t.split("box-").last(),p=prx.items.getFromAllItemStruct(l,z.stateid);"function"==typeof prx.types[p.type].onResize&&(s.onUpdate=function(t,e,r){t.htype="fixed",t.vtype="fixed",t.width=$(e).width(),t.height=$(e).height(),prx.types[t.type].onResize(t,r)},s.onUpdateParams=[p,t,t.replace("-"+l,"").replace("#","")]),s.scaleX=prx.scale.get(t,"scalex"),s.scaleY=prx.scale.get(t,"scaley"),s.width=u.width,s.height=u.height,s.x=w[e].left,s.y=w[e].top,s.ease=d.easing,s.delay=c.delay/1e3,delete(s=Object.assign({},prx.basicGreensockOptions,s)).easing,(new TimelineMax).to(t,d.duration/1e3,s).add(function(){r.forEach(function(t){return t.call()})},c.delay/1e3-.01).call(function(){e===z.targetids.length-1&&prx.groups.redrawGroupActionDiv(h),S.val&&(S.val=!1,prx.actions.callback(c))})})}else{prx.currentPlayerStatus.helper.normalizeDimsAndPos(h);var T=prx.currentPlayerStatus.helper.get(h,["width","height"]);if("*"!=c.resizeXBy){var P=Number(c.resizeXBy),k=T.width+P;a.push(function(){prx.currentPlayerStatus.helper.set(h,"width",k)}),P=0<=P?"+="+P:"-="+-P,u.width=P}if("*"!=c.resizeYBy){var I=Number(c.resizeYBy),A=T.height+I;a.push(function(){prx.currentPlayerStatus.helper.set(h,"height",A)}),I=0<=I?"+="+I:"-="+-I,u.height=I}prx.items.updateTransformIfHidden(h),(new TimelineMax).to(h,d.duration/1e3,Object.assign({},prx.basicGreensockOptions,{width:u.width,height:u.height,ease:d.easing,delay:c.delay/1e3})).add(function(){a.forEach(function(t){return t.call()})},c.delay/1e3-.01).call(d.complete)}break;case"resize-to":if(void 0!==c.itemId&&-1!==c.itemId.indexOf("group")){if(!(z=prx.groups.getGroupData(h)))return void prx.actions.callback(c);z.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t)});var E;v=prx.groups.getItemDimentions(z),x=prx.toolbox.calculateBox(v,z.group.rotation,z.parenttype,z.parentindex,z.stateindex),b=(E=v.map(function(t){t=prx.toolbox.rotate(t,{x:x.x,y:x.y},360-x.rotation);return prx.toolbox.itemDimensions(t,z.parenttype,z.parentindex,z.stateindex)})).map(function(t){var e={};return e.width=t.width/x.width,e.height=t.height/x.height,e.top=(t.top-x.top)/x.height,e.left=(t.left-x.left)/x.width,e});"*"!=c.resizeXTo&&(x.width=Number(c.resizeXTo)),"*"!=c.resizeYTo&&(x.height=Number(c.resizeYTo));_=prx.toolbox.itemDimensions(x,z.parenttype,z.parentindex,z.stateindex),w=E.map(function(t,e){return t.width=b[e].width*_.width,t.height=b[e].height*_.height,t.top=_.top+b[e].top*_.height,t.left=_.left+b[e].left*_.width,prx.toolbox.itemDimensions(t,z.parenttype,z.parentindex,z.stateindex)}).map(function(t){return t=prx.toolbox.rotate(t,{x:_.x,y:_.y},_.rotation),prx.toolbox.itemDimensions(t,z.parenttype,z.parentindex,z.stateindex)}),S={val:!0};z.targetids.forEach(function(t,e){var r=[];prx.currentPlayerStatus.helper.normalizeDimsAndPos(t);var i=E[e].left,n=E[e].top;if(r.push(function(){prx.currentPlayerStatus.helper.set(t,{left:i,top:n})}),"*"!=c.resizeXTo){u.width=w[e].width;var a=E[e].width;r.push(function(){prx.currentPlayerStatus.helper.set(t,"width",a)})}if("*"!=c.resizeYTo){u.height=w[e].height;var o=E[e].height;r.push(function(){prx.currentPlayerStatus.helper.set(t,"height",o)})}var s=Object.assign({},u),l="box-"+t.split("box-").last(),p=prx.items.getFromAllItemStruct(l,z.stateid);"function"==typeof prx.types[p.type].onResize&&(s.onUpdate=function(t,e,r){t.htype="fixed",t.vtype="fixed",t.width=$(e).width(),t.height=$(e).height(),prx.types[t.type].onResize(t,r)},s.onUpdateParams=[p,t,t.replace("-"+l,"").replace("#","")]),s.scaleX=prx.scale.get(t,"scalex"),s.scaleY=prx.scale.get(t,"scaley"),s.width=u.width,s.height=u.height,s.x=w[e].left,s.y=w[e].top,s.ease=d.easing,s.delay=c.delay/1e3,delete(s=Object.assign({},prx.basicGreensockOptions,s)).easing,(new TimelineMax).to(t,d.duration/1e3,s).add(function(){r.forEach(function(t){return t.call()})},c.delay/1e3-.01).call(function(){e===z.targetids.length-1&&prx.groups.redrawGroupActionDiv(h),S.val&&(S.val=!1,prx.actions.callback(c))})})}else{if(prx.currentPlayerStatus.helper.normalizeDimsAndPos(h),"*"!=c.resizeXTo){P=Number(c.resizeXTo);u.width=P,a.push(function(){prx.currentPlayerStatus.helper.set(h,"width",P)})}if("*"!=c.resizeYTo){I=Number(c.resizeYTo);u.height=I,a.push(function(){prx.currentPlayerStatus.helper.set(h,"height",I)})}prx.items.updateTransformIfHidden(h),(new TimelineMax).to(h,d.duration/1e3,Object.assign({},prx.basicGreensockOptions,{width:u.width,height:u.height,ease:d.easing,delay:c.delay/1e3})).add(function(){a.forEach(function(t){return t.call()})},c.delay/1e3-.01).call(d.complete)}}break;case"scale-item":var C=Number(c.scaleX),O=Number(c.scaleY);if(void 0!==c.itemId&&-1!==c.itemId.indexOf("group")){if(!(z=prx.groups.getGroupData(h)))return void prx.actions.callback(c);z.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t)});var M=prx.groups.getItemDimentions(z,!0),D=prx.toolbox.calculateBox(M,z.group.rotation,z.parenttype,z.parentindex,z.stateindex),F=M.map(function(t){t=prx.toolbox.rotate(t,{x:D.x,y:D.y},360-D.rotation);return prx.toolbox.itemDimensions(t,z.parenttype,z.parentindex,z.stateindex)}),R=(b=F.map(function(t){var e={};return e.width=t.width/D.width,e.height=t.height/D.height,e.top=(t.top-D.top)/D.height,e.left=(t.left-D.left)/D.width,e}),prx.groups.getItemDimentions(z)),N=C/prx.scale.get(h,"scalex"),L=O/prx.scale.get(h,"scaley");prx.scale.set(h,"scalex",C),prx.scale.set(h,"scaley",O);var B=Object.assign({},D);B.width=D.width*N,B.height=D.height*L;var j=(B=prx.toolbox.itemDimensions(B,z.parenttype,z.parentindex,z.stateindex)).x-D.x,V=B.y-D.y;B.left=Math.ceil(B.left-j),B.top=Math.floor(B.top-V),B=prx.toolbox.itemDimensions(B,z.parenttype,z.parentindex,z.stateindex);var H=b.map(function(t,e){var r=Object.assign({},F[e]);return r.width=t.width*B.width,r.height=t.height*B.height,r.top=B.top+t.top*B.height,r.left=B.left+t.left*B.width,prx.toolbox.itemDimensions(r,z.parenttype,z.parentindex,z.stateindex)}).map(function(t){return t=prx.toolbox.rotate(t,{x:B.x,y:B.y},B.rotation),prx.toolbox.itemDimensions(t,z.parenttype,z.parentindex,z.stateindex)});S={val:!0};z.targetids.forEach(function(t,e){var r=H[e].x-R[e].x,i=H[e].y-R[e].y,n=prx.scale.get(t,"scalex"),a=prx.scale.get(t,"scaley");prx.currentPlayerStatus.helper.normalizeDimsAndPos(t),prx.currentPlayerStatus.helper.set(t,{left:R[e].left+r,top:R[e].top+i}),(new TimelineMax).to(t,c.duration/1e3,Object.assign({},prx.basicGreensockOptions,{scaleX:n,scaleY:a,x:R[e].left+r,y:R[e].top+i,ease:d.easing,delay:c.delay/1e3})).call(function(){e===z.targetids.length-1&&prx.groups.redrawGroupActionDiv(h),S.val&&(S.val=!1,prx.actions.callback(c))})})}else prx.scale.set(h,"scalex",C),prx.scale.set(h,"scaley",O),prx.items.updateTransformIfHidden(h),(new TimelineMax).to(h,d.duration/1e3,Object.assign({},prx.basicGreensockOptions,{scaleX:prx.scale.get(h,"scalex"),scaleY:prx.scale.get(h,"scaley"),ease:d.easing,delay:c.delay/1e3})).call(d.complete);break;case"fade-item":if(-1!==c.itemId.indexOf("group")){var z;if(!(z=prx.groups.getGroupData(h)))return void prx.actions.callback(c);z.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t)}),prx.visibility.set(h,"opacity",Number(c.fadeTo));S={val:!0};z.targetids.forEach(function(t,e){(new TimelineMax).to(t,c.duration/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:prx.visibility.get(t),ease:d.easing,delay:c.delay/1e3})).call(function(){e===z.targetids.length-1&&prx.groups.redrawGroupActionDiv(h),S.val&&(S.val=!1,prx.actions.callback(c))})})}else prx.items.updateTransformIfHidden(h),prx.visibility.set(h,"opacity",Number(c.fadeTo)),(new TimelineMax).to(h,d.duration/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:prx.visibility.get(h),ease:d.easing,delay:c.delay/1e3})).call(d.complete);break;case"rotate-item":switch(c.rotateType){case"rotate-by":var G=Number(c.rotateBy),Y=prx.currentPlayerStatus.helper.get(h,"rotation")+G;a.push(function(){prx.currentPlayerStatus.helper.set(h,"rotation",Y)}),G=0<=G?"+="+G:"-="+-G,prx.items.updateTransformIfHidden(h),(new TimelineMax).to(h,d.duration/1e3,Object.assign({},prx.basicGreensockOptions,{rotation:G,ease:d.easing,delay:c.delay/1e3})).add(function(){a.forEach(function(t){return t.call()})},c.delay/1e3-.01).call(d.complete);break;case"rotate-to":var X=Number(c.rotateTo),W=prx.toolbox.clone(X);a.push(function(){prx.currentPlayerStatus.helper.set(h,"rotation",W)}),void 0!==c.rotationDirection&&(X+="_"+c.rotationDirection),prx.items.updateTransformIfHidden(h),(new TimelineMax).to(h,d.duration/1e3,Object.assign({},prx.basicGreensockOptions,{rotation:X,ease:d.easing,delay:c.delay/1e3})).add(function(){a.forEach(function(t){return t.call()})},c.delay/1e3-.01).call(d.complete)}}},prx.actionsLibrary.moveScreen=function(t){var a=t.targetId;-2==t.pageId&&(a="#p-"+a.split(/[-\[]/)[1]);var e={},r=parseInt(t.duration),i=(t.animationEasing,function(){prx.actions.callback(t)});e.easing=prx.easing.get(t.animationEasing);var n,o,s=prx.currentPlayerStatus.helper.get(a,["top","left"]),l=prx.currentPlayerStatus.helper.getParentPointerFromDomId(a).items,p=[];switch(t.moveType){case"move-by":if(e.top=!0,e.left=!0,e.overlaytop=!0,e.overlayleft=!0,Object.keys(l).map(function(t,e){var r=l[t];if(r.overlay&&!0===r.overlay){var i=a+"-"+r.id;prx.currentPlayerStatus.helper.normalizeDimsAndPos(i);var n=prx.currentPlayerStatus.helper.get(i,["top","left"]);p.push({id:i,left:n.left,top:n.top})}}),"*"!=t.moveXBy){var c=Number(t.moveXBy);p.forEach(function(t){t.left-=c}),n=s.left?s.left+c:c,e.overlayleft=0<=c?"-="+c:"+="+-c,c=0<=c?"+="+c:"-="+-c,e.x=c}if("*"!=t.moveYBy){var u=Number(t.moveYBy),h=a.split(/[-\[]/)[1];prx.allowstatusbar&&1==prx.canvas._statusbars[h].statusbar&&(u+=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[h].orientation]),p.forEach(function(t){t.top-=u}),o=s.top?s.top+u:u,e.overlaytop=u<=0?"-="+u:"+="+-u,u=0<=u?"+="+u:"-="+-u,e.y=u}(new TimelineMax).to(a,r/1e3,Object.assign({},prx.basicGreensockOptions,{x:e.x,y:e.y,ease:e.easing,delay:t.delay/1e3})).call(i).call(function(){"*"!=t.moveXBy&&prx.currentPlayerStatus.helper.set(a,"left",n),"*"!=t.moveYBy&&prx.currentPlayerStatus.helper.set(a,"top",o)}),(new TimelineMax).to(a+' .box[data-mpoverlay="1"]',r/1e3,Object.assign({},prx.basicGreensockOptions,{x:e.overlayleft,y:e.overlaytop,ease:e.easing,delay:t.delay/1e3})).call(function(){p.map(function(t){prx.currentPlayerStatus.helper.set(t.id,{left:t.left,top:t.top})})});break;case"move-to":if(e.top=!0,e.left=!0,e.overlaytop=!0,e.overlayleft=!0,Object.keys(l).map(function(t,e){var r=l[t];if(r.overlay&&!0===r.overlay){var i=a+"-"+r.id;prx.currentPlayerStatus.helper.normalizeDimsAndPos(i);var n=prx.currentPlayerStatus.helper.get(i,["top","left"]);p.push({id:i,left:n.left,top:n.top})}}),"*"!=t.moveXTo){c=Number(t.moveXTo);n=c,e.x=c;var d=Math.abs($(a).offset().left-c);e.overlayleft=($(a).offset().left-c<0?"-=":"+=")+d,p.forEach(function(t){t.left+=d})}if("*"!=t.moveYTo){u=Number(t.moveYTo),h=a.split(/[-\[]/)[1];prx.allowstatusbar&&1==prx.canvas._statusbars[h].statusbar&&(u+=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[h].orientation]),o=u,e.y=u;var f=Math.abs($(a).offset().top-u);e.overlaytop=($(a).offset().top-u<0?"-=":"+=")+f,p.forEach(function(t){t.top+=f})}(new TimelineMax).to(a,r/1e3,Object.assign({},prx.basicGreensockOptions,{x:e.x,y:e.y,ease:e.easing,delay:t.delay/1e3})).call(i).call(function(){"*"!=t.moveXTo&&prx.currentPlayerStatus.helper.set(a,"left",n),"*"!=t.moveYTo&&prx.currentPlayerStatus.helper.set(a,"top",o)}),(new TimelineMax).to(a+' .box[data-mpoverlay="1"]',r/1e3,Object.assign({},prx.basicGreensockOptions,{x:e.overlayleft,y:e.overlaytop,ease:e.easing,delay:t.delay/1e3})).call(function(){p.map(function(t){prx.currentPlayerStatus.helper.set(t.id,{left:t.left,top:t.top})})})}},prx.actionsLibrary.changeProperty=function(g){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,s=1,l=0;void 0!==g.duration&&(s=g.duration/1e3),void 0!==g.delay&&(l=g.delay/1e3);var i,t=prx.easing.get(g.animationEasing);if(void 0!==g._timelineToUse)var p=g._timelineToUse;else p=new TimelineMax;var e=!1,n=prx.currentPlayerStatus.helper.get(g.targetId,"type");switch(void 0!==n&&(n=n.replace("_retina","")),g.valueType){case"customValue":break;case"readFromVariable":Pt("undefined"!=g.variableName)&&void 0!==prx.variables._variables[g.variableName]&&(void 0===prx.variables._variables[g.variableName].parsed&&prx.variables.recursivelyEvaluate(prx.variables._variables[g.variableName].value,g.variableName),g.newvalue=prx.variables._variables[g.variableName].parsed)}var a=g.newvalue,o=g.oldvalue,c=g.propertyType;void 0===c&&(c="component-property");var u,h,d,f,m,v=g.targetId.replace("-group-"," .group-"),y={hasMask:!1,property:g.propertyId};switch(g.propertyId){case"mask_missing":i={selector:"",property:"mask_missing"},y.property="hasMask";break;case"mask_border_radius":i={selector:g.targetId+"-mask",property:"border-radius"},y.hasMask=!0,y.property="borderRadius";break;case"mask_x":e=!0,i={selector:g.targetId+"-mask-inner",property:"x"},y.hasMask=!0,y.property="x";break;case"mask_y":e=!0,i={selector:g.targetId+"-mask-inner",property:"y"},y.hasMask=!0,y.property="y";break;case"mask_border_width":i={rerender:!0},y.hasMask=!0,y.property="borderWidth";break;case"mask_border_style":i={selector:g.targetId+"-mask",property:"border-style"},y.hasMask=!0,y.property="borderStyle";break;case"mask_border_color":e=!0,i={selector:g.targetId+"-mask",property:"border-color"},y.hasMask=!0,y.property="borderColor";break;case"mask_border_pos":i={rerender:!0},y.hasMask=!0,y.property="borderPos";break;case"left":i={selector:"",property:"x"};break;case"top":i={selector:"",property:"y"};break;case"opacity":parseFloat(a)==a&&(a=parseFloat(a),prx.visibility.set(v,"opacity",a),!1===(a=prx.visibility.get(v,"visible-all"))&&(a=0)),i={selector:"",property:g.propertyId};break;case"mask_inner_width":e=!0,i={selector:g.targetId+"-mask-inner",property:"width"},y.hasMask=!0,y.property="inner_width",void 0!==n&&void 0!==prx.types[n].onResize&&(i.onResize=prx.types[n].onResize);break;case"mask_inner_height":e=!0,i={selector:g.targetId+"-mask-inner",property:"height"},y.hasMask=!0,y.property="inner_height",void 0!==n&&void 0!==prx.types[n].onResize&&(i.onResize=prx.types[n].onResize);break;case"width":case"height":i={selector:"",property:g.propertyId},void 0!==n&&void 0!==prx.types[n]&&void 0!==prx.types[n].onResize&&(i.onResize=prx.types[n].onResize);break;case"strokeWidth":i={rerender:!0};break;case"templatestateid":i={property:"template-state"};break;case"background":"current-page"!=g.itemId&&"current-page-template"!=g.itemId&&"current-container"!=g.itemId||(i={type:"colorpicker",selector:"",property:"background-color"});break;case"dynamicProperties":i={rerender:!0};break;case"visible":if(-1!=g.itemId.indexOf("group")){if(!(xt=prx.groups.getGroupData(v)))return void prx.actions.callback(g);xt.targetids.forEach(function(t){prx.items.updateTransformIfHidden(t,r)});var x,b=prx.visibility.get(v,"visible");x="object"===Pt(a)?!(0===a.visible||!1===a.visible):0!==a&&!1!==a,prx.visibility.set(v,"visible",x),"object"===Pt(a)?a=a.opacity:0==a||0==a?a=0:!0===a&&(a=1);var _=prx.visibility.get(v,"visible-all");prx.visibility.set(v,"visible",b),p.add(function(){prx.visibility.set(v,"visible",_)},l-.001),xt.targetids.forEach(function(t,e){p.add(function(){!1===prx.visibility.get(t,"visible-all")?$(t).addClass("hidden"):$(t).removeClass("hidden"),e===xt.targetids.length-1&&prx.groups.redrawGroupActionDiv(v)},l)})}else{prx.items.updateTransformIfHidden(v,r);var w,S=prx.visibility.get(v,"visible-all"),T=prx.visibility.get(v,"visible");w="object"===Pt(a)?!(0===a.visible||!1===a.visible):0!==a&&!1!==a,prx.visibility.set(v,"visible",w),"object"===Pt(a)?a=a.opacity:0==a||0==a?a=0:!0===a&&(a=1);var P=prx.visibility.get(v,"visible-all");prx.visibility.set(v,"visible",T),!1===P?(a=0,h=l-.001,d=s,p.add(function(){prx.visibility.set(v,"visible",w),$(v).addClass("hidden")},parseFloat(h)+parseFloat(d))):(!0!==a&&prx.visibility.set(v,"opacity",a),a=prx.visibility.get(v),u=l-.001,p.add(function(){prx.visibility.set(v,"visible",w),$(v).removeClass("hidden")},u),S!=P&&$(v).css("opacity",0),l=parseFloat(l)+.001)}prx.vr.refresh(v,!0),i={selector:"",property:"opacity"};break;case"rotation":i={selector:"",property:"rotation"},a=parseInt(a),void 0!==g.rotationDirection?a+="_"+g.rotationDirection:a+="_short";break;case"grayscale":case"sepia":case"saturate":case"hueRotate":case"invert":case"brightness":case"contrast":case"blur":case"dropShadowX":case"dropShadowY":case"dropShadowBlur":case"dropShadowColor":i={selector:"",property:"filter"};break;case"parentgroups":i={selector:"",property:"parentgroups"};break;case"draggable":i={changeFunction:function(t,e){if(null!==o&&prx.draggable.reset(t,g.pageId,e),null!==a){void 0!==e&&0!=e.length||(e="p-"+g.pageId);var r=e+"-"+t.id;prx.draggable.ini(t,g.pageId,e,!1),prx.draggable.refresh("#"+r)}}};break;case"playbackSpeed":i={rerender:!0}}if(void 0===i){if(void 0===n)return prx.actions.callback(g),p;switch(c){case"component-property":if(void 0!==prx.types[n].editableProperties)for(var k=0;k<prx.types[n].editableProperties.length;k++)if(prx.types[n].editableProperties[k].name==g.propertyId){(i=prx.types[n].editableProperties[k].changeProperty).type=prx.types[n].editableProperties[k].type;break}if(void 0===i&&void 0!==prx.types[n].interactions)for(k=0;k<prx.types[n].interactions.length;k++)if(prx.types[n].interactions[k].name==g.propertyId){i={property:"action"};break}if(void 0===i&&void 0!==prx.types[n].propertyGroups)for(k=0;k<prx.types[n].propertyGroups.length;k++)for(var I=0;I<prx.types[n].propertyGroups[k].properties.length;I++)for(var A=0;A<prx.types[n].propertyGroups[k].properties[I].length;A++)if(prx.types[n].propertyGroups[k].properties[I][A].name==g.propertyId){(i=prx.types[n].propertyGroups[k].properties[I][A].changeProperty).type=prx.types[n].propertyGroups[k].properties[I][A].type;break}break;case"dynamic-property":if(void 0!==prx.types[n].dynamicProperties){if(void 0!==prx.types[n].dynamicProperties.editableProperties)for(k=0;k<prx.types[n].dynamicProperties.editableProperties.length;k++)if(prx.types[n].dynamicProperties.editableProperties[k].name==g.propertyId){(i=prx.types[n].dynamicProperties.editableProperties[k].changeProperty).type=prx.types[n].dynamicProperties.editableProperties[k].type;break}if(void 0===i&&void 0!==prx.types[n].dynamicProperties.interactions)for(k=0;k<prx.types[n].dynamicProperties.interactions.length;k++)if(prx.types[n].dynamicProperties.interactions[k].name==g.propertyId){i={property:"action"};break}if(void 0===i&&void 0!==prx.types[n].dynamicProperties.propertyGroups)for(k=0;k<prx.types[n].dynamicProperties.propertyGroups.length;k++)for(I=0;I<prx.types[n].dynamicProperties.propertyGroups[k].properties.length;I++)for(A=0;A<prx.types[n].dynamicProperties.propertyGroups[k].properties[I].length;A++)if(prx.types[n].dynamicProperties.propertyGroups[k].properties[I][A].name==g.propertyId){(i=prx.types[n].dynamicProperties.propertyGroups[k].properties[I][A].changeProperty).type=prx.types[n].dynamicProperties.propertyGroups[k].properties[I][A].type;break}}}}if(void 0!==i){if(void 0===i.onResize&&void 0===i.changeFunction&&(i=JSON.parse(JSON.stringify(i))),void 0!==i.property&&void 0===i.changeFunction){var E=void 0!==i.type&&-1<i.type.indexOf("colorpicker"),C="mask_border_color"===g.propertyId;(E||C)&&(a=prx.gradients.isColorObject(a)||"string"==typeof a&&(/^#?([a-f0-9]{3}|[a-f0-9]{6})$/i.test(a)||/^rgb\((\d+),(\d+),(\d+)\)$/i.test(a)||/^rgba\((\d+),(\d+),(\d+),(\d?(\.\d+)?)\)$/i.test(a))?prx.gradients.prxToCss(a):"rgba(0,0,0,0)");var O=prx.toolbox.clone(a);switch(i.property){case"mask_missing":"mask_missing"==g.propertyId&&(1==g.oldvalue?p.add(function(){var t=prx.currentPlayerStatus.helper.get(g.targetId,"height"),e=prx.currentPlayerStatus.helper.get(g.targetId,"width");$(g.targetId).wrapInner('<div id="'+g.containerid+"-"+g.itemId+'-mask" class = "mask-wrapper" style=" border: 0px solid #000; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px;"><div id="'+g.containerid+"-"+g.itemId+'-mask-inner" class = "mask-inner" style=" border: 0px solid #000; width: '+e+"px;height: "+t+'px; top: 0px; left: 0px"></div></div>'),prx.currentPlayerStatus.helper.set(g.targetId,"hasMask",!g.newvalue)},l):p.add(function(){$(g.targetId+"-mask-inner").unwrap(),$(g.targetId+"-mask-inner").children().unwrap(),prx.currentPlayerStatus.helper.set(g.targetId,"hasMask",!g.newvalue)},l));break;case"text":switch(a=(""+a).replace(/\n\r?/g,"<br />"),c){case"component-property":p.add(function(){var t=$(g.targetId+" "+i.selector).html(),e=prx.actionsLibrary.replaceTextValue(t,a);$(g.targetId+" "+i.selector).html(prx.componentsHelper.getProp(e,"text-textarea")),prx.actions.callback(g),prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,a)},l);break;case"dynamic-property":p.add(function(){var t=$(g.targetId+' [data-dynamic-property-index="'+g.itemIndex+'"] '+i.selector+", "+g.targetId+' [data-dynamic-property-index="'+g.itemIndex+'"]'+i.selector).first().html(),e=prx.actionsLibrary.replaceTextValue(t,a);$(g.targetId+' [data-dynamic-property-index="'+g.itemIndex+'"] '+i.selector+", "+g.targetId+' [data-dynamic-property-index="'+g.itemIndex+'"]'+i.selector).first().html(prx.componentsHelper.getProp(e,"text-textarea")),prx.actions.callback(g);var r=prx.currentPlayerStatus.helper.get(g.targetId,prx.types[n].dynamicProperties.data);r[g.itemIndex][g.propertyId]=a,prx.currentPlayerStatus.helper.set(g.targetId,prx.types[n].dynamicProperties.data,r)},l)}break;case"input-value":p.add(function(){$(g.targetId+" "+i.selector).val(a),prx.actions.callback(g),prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,a)},l);break;case"textarea-value":p.add(function(){$(g.targetId+" "+i.selector).val(prx.componentsHelper.getProp(a,"text-textarea").toString().replace(/<br \/>/g,"\n")),prx.actions.callback(g),prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,a)},l);break;case"checkbox-state":p.add(function(){"true"==a&&(a=!0),"false"==a&&(a=!1),$(g.targetId+" "+i.selector).prop("checked",a).trigger("change"),prx.actions.callback(g),prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,a)},l);break;case"action":var M=g.oldvalue,D=a;if(void 0!==D&&null!=D||(D=[]),void 0!==M&&null!=M||(M=[]),f=M,m=D,p.add(function(){var t={type:n,id:g.itemId};if("dynamic-property"==g.propertyType&&void 0!==n){t[prx.types[n].dynamicProperties.data]=[],t[prx.types[n].dynamicProperties.data][g.itemIndex]={};var e=prx.currentPlayerStatus.helper.get(g.targetId,prx.types[n].dynamicProperties.data);this.timeline.data.reversing?(t[prx.types[n].dynamicProperties.data][g.itemIndex][g.propertyId]=f,e[g.itemIndex][g.propertyId]=f):(t[prx.types[n].dynamicProperties.data][g.itemIndex][g.propertyId]=m,e[g.itemIndex][g.propertyId]=m),prx.currentPlayerStatus.helper.set(g.targetId,prx.types[n].dynamicProperties.data,e)}else this.timeline.data.reversing?(t[g.propertyId]=f,prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,f)):(t[g.propertyId]=m,prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,m));prx.actions.parseItemAction(t,g.containerid,g.pageId),prx.actions.callback(g)},l),void 0!==g._timelineToUse)return p;break;case"container-state":var F={pageId:g.pageId,targetId:g.targetId,stateId:a,itemId:g.itemId,guid:g.guid,containerid:g.containerid};"boolean"==typeof g.loop&&(F.loop=g.loop),"string"==typeof g.loopGUID&&(F.loopGUID=g.loopGUID),void 0!==g.previousActions&&(F.previousActions=JSON.parse(JSON.stringify(g.previousActions))),void 0!==g.callbackAction&&(F.callbackAction=JSON.parse(JSON.stringify(g.callbackAction))),void 0!==g.callback&&(F.callback=g.callback),p.add(function(){prx.actionsLibrary.changeState(F,"symbols")},l);break;case"template-state":F={pageId:g.pageId,targetId:g.targetId,stateId:a,itemId:g.itemId};void 0!==g.previousActions&&(F.previousActions=JSON.parse(JSON.stringify(g.previousActions))),void 0!==g.callbackAction&&(F.callbackAction=JSON.parse(JSON.stringify(g.callbackAction))),void 0!==g.callback&&(F.callback=g.callback),setTimeout(function(){return prx.actionsLibrary.changeState(F,"templates")},g.delay);break;case"font-family":var R=(wt=g.containerid+"-"+g.itemId).split("box-");g.itemId="box-"+R[R.length-1],g.containerid=wt.replace("-"+g.itemId,"");var N=prx.currentPlayerStatus.helper.getParentPointerFromDomId(wt),L=prx.componentsHelper.getTextandFontStylePropsName(N.type,g.propertyId,"dynamic-property"==c),B=L.textFontStyleGroup,j=L.relatedTextFontStylePropsName,V="400";"function"==typeof B.value&&j&&(V=B.value(N,j,g.itemIndex));var H=prx.componentsHelper.getProp(a+"|"+V,"font-family").split(";");a={};for(k=0;k<H.length;k++){2==(R=H[k].split(":")).length&&(a[R[0].trim()]=R[1].trim())}p.add(function(){if("dynamic-property"==c){if(0<(r=$(g.targetId+' [data-dynamic-property-index="'+g.itemIndex+'"] '+i.selector+", "+g.targetId+' [data-dynamic-property-index="'+g.itemIndex+'"]'+i.selector+' span[data-editableproperty="'+g.propertyId.replace("Font","")+'"]')).length)for(var t=0;t<r.length;t++)$(r[t]).html(prx.componentsHelper.stripStyle($(r[t]).html(),"font-family"));$(g.targetId+' [data-dynamic-property-index="'+g.itemIndex+'"] '+i.selector+", "+g.targetId+' [data-dynamic-property-index="'+g.itemIndex+'"]'+i.selector).first().css(a);var e=prx.currentPlayerStatus.helper.get(g.targetId,prx.types[n].dynamicProperties.data);e[g.itemIndex][g.propertyId]=a["font-family"],prx.currentPlayerStatus.helper.set(g.targetId,prx.types[n].dynamicProperties.data,e)}else{var r;if(0<(r=$(g.targetId+" "+i.selector+", "+g.targetId+i.selector+' span[data-editableproperty="'+g.propertyId.replace("Font","")+'"]')).length)for(t=0;t<r.length;t++)$(r[t]).html(prx.componentsHelper.stripStyle($(r[t]).html(),"font-family"));$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).css(a),prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,a["font-family"])}prx.actions.callback(g)},l);break;case"background-color":case"fill":case"fill,background-color":var z=!1,G=$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).css("background-image"),Y=G?prx.gradients.cssToPrx(G):prx.gradients.cssToPrx("none");if(!G||"none"===G){var X=$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).css("background-color");-1<i.property.indexOf("fill")&&(X=$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).css("fill")),Y=X?prx.gradients.cssToPrx(X):prx.gradients.cssToPrx("none")}var W=a;"object"!==Pt(W)&&(W=prx.gradients.stringToPrxData(a));var U={};switch(U.ease=t,U=Object.assign({},prx.basicGreensockOptions,U),Y.type){case"radial":if("radial"===W.type){for(var q=Math.max(Y.colors.length,W.colors.length);Y.colors.length<q;)Y.colors.push(Y.colors.slice(-1).pop());for(;W.colors.length<q;)W.colors.push(W.colors.slice(-1).pop());$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).css("background-image",prx.gradients.prxToCss(Y)),U["background-image"]=prx.gradients.prxToCss(W),z=!0}if("solid"===W.type){var J=prx.toolbox.clone(Y);Y.colors.forEach(function(t,e){J.colors[e].color=W.color}),U["background-image"]=prx.gradients.prxToCss(J),U.onComplete=function(){$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).css("background-color",prx.gradients.prxToCss(W)).css("background-image","none")},z=!0}"linear"===W.type&&(U["background-image"]=prx.gradients.prxToCss(W),z=!(s=0));break;case"linear":if("linear"===W.type){for(q=Math.max(Y.colors.length,W.colors.length);Y.colors.length<q;)Y.colors.push(Y.colors.slice(-1).pop());for(;W.colors.length<q;)W.colors.push(W.colors.slice(-1).pop());$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).css("background-image",prx.gradients.prxToCss(Y)),U["background-image"]=prx.gradients.prxToCss(W),z=!0}if("solid"===W.type){J=prx.toolbox.clone(Y);Y.colors.forEach(function(t,e){J.colors[e].color=W.color}),U["background-image"]=prx.gradients.prxToCss(J),U.onComplete=function(){$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).css("background-color",prx.gradients.prxToCss(W)).css("background-image","none")},z=!0}"radial"===W.type&&(U["background-image"]=prx.gradients.prxToCss(W),z=!(s=0));break;case"solid":if("radial"===W.type||"linear"===W.type){var Q=prx.toolbox.clone(W);W.colors.forEach(function(t,e){Q.colors[e].color=Y.color}),$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).css("background-image",prx.gradients.prxToCss(Q)).css("background-color","inherit"),U["background-image"]=prx.gradients.prxToCss(W),z=!0}"solid"===W.type&&(-1<i.property.indexOf("fill")?U.fill=prx.gradients.prxToCss(W):U["background-color"]=prx.gradients.prxToCss(W),z=!0)}z&&(""===i.selector&&prx.items.updateTransformIfHidden(g.targetId,r),p.add(TweenLite.to($(g.targetId+" "+i.selector+", "+g.targetId+i.selector),s,U),l),p.add(function(){g.targetId.split("-").includes("scroll")||prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,W),prx.actions.callback(g)},s+l+.01));break;case"class":p.add(function(){var r=new RegExp("(^|\\s)"+g.propertyId+"-\\S*","g");$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).removeClass(function(t,e){return(e.match(r)||[]).join(" ")}).addClass(g.propertyId+"-"+a),prx.actions.callback(g),prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,a)},l);break;case"parentgroups":var Z=new RegExp("(^|\\s)group-\\S*","g");$(g.targetId+" "+i.selector+", "+g.targetId+i.selector).removeClass(function(t,e){prx.currentPlayerStatus.helper.set(g.targetId,"group","root");return prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,[]),(e.match(Z)||[]).join(" ")}).addClass(a.map(function(t){var e=prx.currentPlayerStatus.helper.get(g.targetId,g.propertyId);return e.push(t),prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,e),prx.currentPlayerStatus.helper.set(g.targetId,"group",e[0]),"group-"+t}).join(" ")),prx.actions.callback(g);break;case"filter":var K=g.targetId,tt=g.propertyId,et=a,rt=void 0!==prx.items.filters[K]&&void 0!==prx.items.filters[K][tt]?prx.items.filters[K][tt]:null;null==et?(et=0,-1!==["brightness","contrast","saturate"].indexOf(tt)&&(et=1),"dropShadowColor"===tt&&(et="rgba(0,0,0,0)")):"dropShadowColor"===tt&&(et=prx.gradients.prxToCss(a)),null==rt?(rt=0,-1!==["brightness","contrast","saturate"].indexOf(tt)&&(rt=1),"dropShadowColor"===tt&&(rt="rgba(0,0,0,0)")):"dropShadowColor"===tt&&(rt=prx.gradients.prxToCss(rt));function it(t){var e=[];if(-1<t.toLowerCase().indexOf("rgb"))3===(e=(e=(e=t.split("(")[1].split(")")[0]).split(",")).map(function(t){return t.trim()})).length&&e.push("1");else{var r=function(t){return"#"==t.charAt(0)?t.substring(1,7):t};e.push(parseInt(r(t).substring(0,2),16)),e.push(parseInt(r(t).substring(2,4),16)),e.push(parseInt(r(t).substring(4,6),16)),e.push("1")}return e.map(function(t){return parseFloat(t)})}var nt=[],at=null;if("dropShadowColor"===tt){at={type:"solid",color:prx.toolbox.clone(et)},rt=it(rt),et=it(et);for(k=0;k<4;k++)nt[k]=rt[k]-et[k]}else at=prx.toolbox.clone(et),nt=rt-et;p.add(TweenLite.to({},s,{onUpdate:function(t){var e=t.progress();e=isNaN(e)?1:e;var r=[],i=[];if("dropShadowColor"===tt){i=nt.map(function(t){return t*e});for(var n=0;n<4;n++)r[n]=rt[n]-i[n];r="rgba("+parseInt(r[0])+","+parseInt(r[1])+","+parseInt(r[2])+","+r[3]+")"}else r=rt-(i=nt*e);void 0===prx.items.filters[K]&&(prx.items.filters[K]={}),prx.items.filters[K][tt]=r,prx.items.applyFilters(K)},onComplete:function(){prx.actions.callback(g),prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,at)},onUpdateParams:["{self}"]}),l);break;case"width":case"height":case"line-height":case"letter-spacing":parseInt(a)==a&&(O=parseInt(O),a+="px");case"border-radius":parseInt(a)==a?(O=parseInt(O),a+="px"):null!==a&&"object"===Pt(a)&&(a=a.tl+"px, "+a.tr+"px, "+a.br+"px, "+a.bl+"px");case"border-width":parseInt(a)==a?(O=parseInt(O),a+="px"):null!==a&&"object"===Pt(a)&&(a=a.t+"px "+a.r+"px "+a.b+"px "+a.l+"px");case"percent-width":parseInt(a)==a&&(i.property="width",O=parseInt(O),a+="%");case"opacity":parseFloat(a)==a&&(a=parseFloat(a),O=parseFloat(O));default:var ot=i.property.split(",");for(k=0;k<ot.length;k++){var st=Object.assign({},prx.basicGreensockOptions);if(("mask_x"==g.propertyId||"mask_y"==g.propertyId)&&$.browser.webkit){var lt=!1;R=(wt=g.containerid+"-"+g.itemId).split("box-");g.itemId="box-"+R[R.length-1],g.containerid=wt.replace("-"+g.itemId,"");var pt=prx.currentPlayerStatus.helper.getParentPointerFromDomId(wt);if(pt.hasOwnProperty("mask")&&pt.mask.hasOwnProperty("borderRadius")&&0!=parseInt(pt.mask.borderRadius)&&(lt=!0),!lt){var ct=prx.currentPlayerStatus.helper.get(g.itemId+"-mask","border-radius");if(void 0!==ct){ct=ct.split();for(k=0;k<ct.length;k++)if(0!=parseInt(ct[k])){lt=!0;break}}}lt&&(st.force3D=!1)}if(st[ot[k].replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})]=a,st.ease=t,st.onComplete=function(){y.hasMask?prx.currentPlayerStatus.helper.get(g.targetId,"mask")[y.property]=O:g.targetId.split("-").includes("scroll")||prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,O)},("width"==ot[k]||"height"==ot[k])&&void 0!==i.onResize){R=(wt=g.containerid+"-"+g.itemId).split("box-");g.itemId="box-"+R[R.length-1],g.containerid=wt.replace("-"+g.itemId,"");var ut=prx.currentPlayerStatus.helper.getItemCopyFromAllItems(g.targetId,g.itemId,g.containerid);void 0!==ut&&(ut.htype="fixed",ut.vtype="fixed",st.onUpdate=function(t,e,r){var i=g.oldvalue+(g.newvalue-g.oldvalue)*this.ratio;if("width"===g.propertyId?t.width=i:"height"===g.propertyId&&(t.height=i),"shape"==t.type||"arrow"==t.type||"arrow1"==t.type||"arrow2"==t.type||"arrow3"==t.type||"bubble"==t.type||"bubble2"==t.type){var n=prx.currentPlayerStatus.helper.get(r,"typeName"),a=prx.currentPlayerStatus.helper.get(r,"borderWidthShape"),o=prx.currentPlayerStatus.helper.get(r,"borderWidth"),s=prx.currentPlayerStatus.helper.get(r,"numOfNodes"),l=prx.currentPlayerStatus.helper.get(r,"spikeDepth"),p=prx.currentPlayerStatus.helper.get(r,"skew"),c=prx.currentPlayerStatus.helper.get(r,"baseWidth"),u=prx.currentPlayerStatus.helper.get(r,"isDashed"),h=prx.currentPlayerStatus.helper.get(r,"filledArrow"),d=prx.currentPlayerStatus.helper.get(r,"arrowDirection"),f=prx.currentPlayerStatus.helper.get(r,"tipDirection");void 0!==n&&(t.typeName=n),void 0!==a&&(t.borderWidthShape=a+"px"),void 0!==s&&(t.numOfNodes=s),void 0!==l&&(t.spikeDepth=l),void 0!==p&&(t.skew=p),void 0!==c&&(t.baseWidth=c),void 0!==o&&(t.borderWidth=o),void 0!==u&&(t.isDashed=u),void 0!==h&&(t.filledArrow=h),void 0!==d&&(t.arrowDirection=d),void 0!==f&&(t.tipDirection=f)}var m=r.substring(0,r.indexOf("-"+t.id));e.onResize(t,m)},st.onUpdateParams=[ut,i,wt])}var ht=g.targetId+" "+i.selector+(1<ot.length?", "+g.targetId+" "+i.selector+"-"+ot[k]:"")+", "+g.targetId+i.selector+(1<ot.length?", "+g.targetId+" "+i.selector+"-"+ot[k]:"");if("dynamic-property"==c&&(ht=g.targetId+' [data-dynamic-property-index="'+g.itemIndex+'"] '+i.selector+(1<ot.length?"-"+ot[k]:"")+", "+g.targetId+' [data-dynamic-property-index="'+g.itemIndex+'"]'+i.selector+(1<ot.length?"-"+ot[k]:"")),void 0!==n&&"image"===n&&(void 0===g.newvalue||null==g.newvalue))switch(g.propertyId){case"borderColor":g.newvalue="#000000",a="#000000",st.borderColor="#000000",st.borderTopColor="#000000",st.borderRightColor="#000000",st.borderBottomColor="#000000",st.borderLeftColor="#000000";break;case"borderWidth":g.newvalue=0,a=0,st.borderWidth=0,st.borderTopWidth=0,st.borderRightWidth=0,st.borderBottomWidth=0,st.borderLeftWidth=0;break;case"borderRadius":g.newvalue=0,a=0,st.borderRadius=0}if(void 0!==g.itemId&&-1!=g.itemId.indexOf("group")){g.targetId=g.targetId.replace("-group-"," .group-");H=Object.assign({},prx.basicGreensockOptions,{ease:t});switch(g.propertyId){case"opacity":case"visible":if(!(xt=prx.groups.getGroupData(v)))return void prx.actions.callback(g);xt.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t,r)}),p.add(function(){prx.visibility.set(v,"opacity",Number(g.newvalue))},l-.001),xt.targetids.forEach(function(t){p.add(function(){return TweenLite.to(t,s,Object.assign({},prx.basicGreensockOptions,{opacity:prx.visibility.get(t),ease:H.easing,delay:g.delay/1e3}))},l)});break;case"width":case"height":if(!(xt=prx.groups.getGroupData(v)))return void prx.actions.callback(g);xt.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t,r)});var dt=prx.groups.getItemDimentions(xt),ft=prx.toolbox.calculateBox(dt,xt.group.rotation,xt.parenttype,xt.parentindex,xt.stateindex),mt=dt.map(function(t){t=prx.toolbox.rotate(t,{x:ft.x,y:ft.y},360-ft.rotation);return prx.toolbox.itemDimensions(t,xt.parenttype,xt.parentindex,xt.stateindex)}),gt=mt.map(function(t){var e={};return e.width=t.width/ft.width,e.height=t.height/ft.height,e.top=(t.top-ft.top)/ft.height,e.left=(t.left-ft.left)/ft.width,e});"width"===g.propertyId?ft.width=Number(g.newvalue):ft.height=Number(g.newvalue);var vt=prx.toolbox.itemDimensions(ft,xt.parenttype,xt.parentindex,xt.stateindex),yt=mt.map(function(t,e){return t.width=gt[e].width*vt.width,t.height=gt[e].height*vt.height,t.top=vt.top+gt[e].top*vt.height,t.left=vt.left+gt[e].left*vt.width,prx.toolbox.itemDimensions(t,xt.parenttype,xt.parentindex,xt.stateindex)}).map(function(t){return t=prx.toolbox.rotate(t,{x:vt.x,y:vt.y},vt.rotation),prx.toolbox.itemDimensions(t,xt.parenttype,xt.parentindex,xt.stateindex)});xt.targetids.forEach(function(t,e){(g=prx.toolbox.clone(g)).targetId=t;var r=yt[e],i=dt[e],n=Object.assign({},prx.basicGreensockOptions,H);i.top!==r.top&&(n.y=r.top),i.left!==r.left&&(n.x=r.left),i.width!==r.width&&(n.width=r.width),i.height!==r.height&&(n.height=r.height);var a="box-"+g.targetId.split("box-").last(),o=prx.items.getFromAllItemStruct(a,xt.stateid);"function"==typeof prx.types[o.type].onResize&&(n.onUpdate=function(t,e,r){t.htype="fixed",t.vtype="fixed",t.width=$(e).width(),t.height=$(e).height(),console.warn(t.width),prx.types[t.type].onResize(t,r)},n.onUpdateParams=[o,g.targetId,g.targetId.replace("-"+a,"").replace("#","")]),p.add(function(){return prx.currentPlayerStatus.helper.set(K,"top",r.top),prx.currentPlayerStatus.helper.set(K,"left",r.left),prx.currentPlayerStatus.helper.set(K,"width",r.width),prx.currentPlayerStatus.helper.set(K,"height",r.height),TweenLite.to(g.targetId,s,n)},l)});break;case"left":case"top":var xt;if(!(xt=prx.groups.getGroupData(v)))return void prx.actions.callback(g);dt=prx.groups.getItemDimentions(xt);var bt=prx.toolbox.calculateBox(dt,xt.group.rotation,xt.parenttype,xt.parentindex,xt.stateindex),_t=dt[0][g.propertyId];dt.forEach(function(t){_t=_t<t[g.propertyId]?_t:t[g.propertyId]}),xt.targetids.forEach(function(t,e){prx.items.updateTransformIfHidden(t,r)});st=Object.assign({},prx.basicGreensockOptions,H);"left"===g.propertyId?(st.x=Number(g.newvalue)-bt.left,st.x=0<st.x?"+="+st.x:"-="+-st.x):(st.y=Number(g.newvalue)-bt.top,st.y=0<st.y?"+="+st.y:"-="+-st.y),p.add(function(){return xt.targetids.forEach(function(t,e){prx.currentPlayerStatus.helper.set(t,g.propertyId,prx.currentPlayerStatus.helper.get(t,g.propertyId)-(_t-g.newvalue))}),TweenLite.to(g.targetId,s,st)},l)}}else e?p.add(function(){p.add(function(){prx.items.updateTransformIfHidden(g.targetId,r)},l-.01),p.add(TweenLite.to(ht,s,st),l)},l):(p.add(function(){prx.items.updateTransformIfHidden(g.targetId,r)},Math.max(l-.01,0)),p.add(TweenLite.to(ht,s,st),l))}return p.add(function(){void 0===g._timelineToUse&&("containerscroll"!=g.type&&prx.scrollable.refresh(g.targetId),-1<["width","height","top","left","x","y","opacity","visible"].indexOf(i.property)&&prx.groups.redrawGroupActionDiv(v)),prx.actions.callback(g)},s+l+.01),void 0!==g._timelineToUse?p:void 0}}if(void 0!==i.rerender&&i.rerender||void 0!==i.changeFunction){var wt;R=(wt=g.containerid+"-"+g.itemId).split("box-");g.itemId="box-"+R[R.length-1],g.containerid=wt.replace("-"+g.itemId,"");var St=prx.currentPlayerStatus.helper.getParentPointerFromDomId(wt);if(void 0===St&&void 0===(St=prx.currentPlayerStatus.helper.getParentPointerFromDomId(g.targetId)))return p.add(function(){prx.actions.callback(g)}),!1;if("dynamic-property"==g.propertyType)prx.currentPlayerStatus.helper.get(g.targetId,prx.types[n].dynamicProperties.data)[g.itemIndex][g.propertyId]=a;else prx.currentPlayerStatus.helper.set(g.targetId,g.propertyId,a);Z=new RegExp("-"+St.id+"$");var Tt=g.targetId.slice(1).replace(Z,"");if(i.rerender&&(p.add(function(){var t=prx.currentPlayerStatus.helper.getItemCopyFromAllItems(g.targetId,g.itemId,g.containerid);if(t){St=t;var e=prx.currentPlayerStatus.helper.getParentPointerFromDomId(g.containerid);e&&(e.items[g.itemId]=t,"dynamic-property"===g.propertyType?e.items[g.itemId][prx.types[n].dynamicProperties.data][g.itemIndex][g.propertyId]=a:e.items[g.itemId][g.propertyId]=a)}prx.items.rerender(St,Tt,g.pageId),prx.actions.callback(g)},l),"vectoranimation"==St.type)){p.add(function(){prx.bodymovinAnimation.loadBodymovinPageAnimations(Tt+"-"+St.id)},s+l+.01)}void 0!==i.changeFunction&&p.add(function(){i.changeFunction(St,Tt,s,t,g.itemIndex),prx.actions.callback(g)},l)}}if(void 0!==g._timelineToUse)return p},prx.actionsLibrary.setVariable=function(t){var e=prx.actionsLibrary.getComponentItemTypeFromDom(t.targetId);void 0!==e&&(e=e.replace("_retina",""));var r;void 0!==t.duration&&t.duration,void 0!==t.delay&&t.delay;var i=t.propertyType;switch(void 0===i&&(i="component-property"),t.valueSource){case"customValue":break;case"callbackvalue":r={selector:"",property:"triggerdata"};break;case"setValueFromItemProperty":switch(t.propertyId){case"left":case"top":case"opacity":r={selector:"",property:t.propertyId};break;case"width":case"height":r={selector:"",property:t.propertyId},void 0!==e&&void 0!==prx.types[e].onResize&&(r.onResize=prx.types[e].onResize);break;default:switch(i){case"component-property":if(void 0!==e&&void 0!==prx.types[e].editableProperties)for(var n=0;n<prx.types[e].editableProperties.length;n++)if(prx.types[e].editableProperties[n].name==t.propertyId){(r=prx.types[e].editableProperties[n].changeProperty).type=prx.types[e].editableProperties[n].type;break}if(void 0===r&&void 0!==e&&void 0!==prx.types[e].interactions)for(n=0;n<prx.types[e].interactions.length;n++)if(prx.types[e].interactions[n].name==t.propertyId){r={property:"action"};break}if(void 0===r&&void 0!==e&&void 0!==prx.types[e].propertyGroups)for(n=0;n<prx.types[e].propertyGroups.length;n++)for(var a=0;a<prx.types[e].propertyGroups[n].properties.length;a++)for(var o=0;o<prx.types[e].propertyGroups[n].properties[a].length;o++)if(prx.types[e].propertyGroups[n].properties[a][o].name==t.propertyId){(r=prx.types[e].propertyGroups[n].properties[a][o].changeProperty).type=prx.types[e].propertyGroups[n].properties[a][o].type;break}break;case"dynamic-property":if(void 0!==e&&void 0!==prx.types[e].dynamicProperties){if(void 0!==prx.types[e].dynamicProperties.editableProperties)for(n=0;n<prx.types[e].dynamicProperties.editableProperties.length;n++)if(prx.types[e].dynamicProperties.editableProperties[n].name==t.propertyId){(r=prx.types[e].dynamicProperties.editableProperties[n].changeProperty).type=prx.types[e].dynamicProperties.editableProperties[n].type;break}if(void 0===r&&void 0!==e&&void 0!==prx.types[e].dynamicProperties.interactions)for(n=0;n<prx.types[e].dynamicProperties.interactions.length;n++)if(prx.types[e].dynamicProperties.interactions[n].name==t.propertyId){r={property:"action"};break}if(void 0===r&&void 0!==e&&void 0!==prx.types[e].dynamicProperties.propertyGroups)for(n=0;n<prx.types[e].dynamicProperties.propertyGroups.length;n++)for(a=0;a<prx.types[e].dynamicProperties.propertyGroups[n].properties.length;a++)for(o=0;o<prx.types[e].dynamicProperties.propertyGroups[n].properties[a].length;o++)if(prx.types[e].dynamicProperties.propertyGroups[n].properties[a][o].name==t.propertyId){(r=prx.types[e].dynamicProperties.propertyGroups[n].properties[a][o].changeProperty).type=prx.types[e].dynamicProperties.propertyGroups[n].properties[a][o].type;break}}}}}var s="";if(void 0!==r&&void 0!==r.property){if("triggerdata"!=r.property)switch(i){case"component-property":if(-1!==t.itemId.indexOf("group")){var l=prx.groups.getGroupData(t.targetId.replace("-group-"," .group-"));if(!l)return void prx.actions.callback(t);var p=prx.groups.getItemDimentions(l),c=prx.toolbox.calculateBox(p,l.group.rotation,l.parenttype,l.parentindex,l.stateindex)}else s=$(t.targetId+" "+r.selector+", "+t.targetId+r.selector);break;case"dynamic-property":s=$(t.targetId+' [data-dynamic-property-index="'+t.itemIndex+'"] '+r.selector+", "+t.targetId+' [data-dynamic-property-index="'+t.itemIndex+'"]'+r.selector)}switch(r.property){case"text":t.newvalue=s.text();break;case"input-value":case"textarea-value":t.newvalue=s.val();break;case"width":void 0!==t.itemId&&-1!==t.itemId.indexOf("group")?t.newvalue=c.width:t.newvalue=Math.round(prx.currentPlayerStatus.helper.get("#"+s.attr("id"),"width"));break;case"height":void 0!==t.itemId&&-1!==t.itemId.indexOf("group")?t.newvalue=c.height:t.newvalue=Math.round(prx.currentPlayerStatus.helper.get("#"+s.attr("id"),"height"));break;case"left":void 0!==t.itemId&&-1!==t.itemId.indexOf("group")?t.newvalue=c.left:t.newvalue=Math.round(prx.currentPlayerStatus.helper.get("#"+s.attr("id"),"left"));break;case"top":void 0!==t.itemId&&-1!==t.itemId.indexOf("group")?t.newvalue=c.top:t.newvalue=Math.round(prx.currentPlayerStatus.helper.get("#"+s.attr("id"),"top"));break;case"triggerdata":void 0!==prx.variables._triggerData[t.bindTo]&&(void 0!==prx.variables._triggerData[t.bindTo][t.type]&&void 0!==prx.variables._triggerData[t.bindTo][t.type][t.callbackvariable]?t.newvalue=prx.variables._triggerData[t.bindTo][t.type][t.callbackvariable]:t.newvalue=null)}}Pt("undefined"!=t.variableName)&&void 0!==prx.variables._variables[t.variableName]&&(prx.variables._variables[t.variableName].value=prx.variables.recursivelyEvaluate(t.newvalue,t.variableName,!0)),prx.actions.callback(t)},prx.actionsLibrary.changeState=function(o,s){if(o.syncToAllContainers){var t=$(o.targetId),e=1===t.length?t.attr("data-symbol-id"):-1,r=-1!==e?$.find(".box.type-symbol[data-symbol-id="+e+"]"):[],l=new TimelineMax(Object.assign({},prx.basicGreensockOptions,{paused:!0}));return r.forEach(function(t){var e=t.id,r=e.split("-")[1],i=e.substring(("p-"+r).length+1),n={type:o.type,actionId:o.actionId,pageId:r,itemId:i,stateId:o.stateId,goToFirst:o.goToFirst,goToLast:o.goToLast,delay:o.delay,callback:!1,guid:o.bindTo+"-target-#"+e+"-guid-"+prx.utils.getGuid(),namespace:".protoio-actions",bindTo:o.bindTo,targetId:"#"+e,containerid:"p-"+r,highlightTarget:o.highlightTarget,live:!1,_timelineToUse:l},a=prx.actionsLibrary.changeState(n,s);void 0!==a&&!1!==a&&(l=a)}),l.eventCallback("onComplete",function(){prx.actions.callback(o)}),void l.play()}var i=o.pageId;-1==i&&(i=o.containerid.split("-")[1]);var n,a=void 0===o.stateId?"":o.stateId,p=o.targetId,c=0,u=void 0,h="screenstateid";switch(prx.actions.setInterrupted(o),s){case"pages":var d=prx.stc.screens.getIndexFromId(i);u="#p-"+i,h="screenstateid";break;case"templates":var f=prx.stc.screens.getIndexFromId(i);if(-1==f)return prx.actions.callback(o),!1;d=prx.stc.templates.getIndexFromId(prxy.pages[f].states[0].template.id);p="#p-"+i+"-t"+ +prxy.pages[f].states[0].template.id,u=p,h="templatestateid";break;case"symbols":var m=-1,g=o.itemId;if(-1==g||1<(g.match(/box/g)||[]).length||-1<g.indexOf("t"))g="box-"+(z=o.targetId.split("box-"))[z.length-1];if(void 0===prx.allItems[g])return prx.actions.callback(o),!1;for(var v in prx.allItems[g].states)if(prx.allItems[g].states.hasOwnProperty(v)){m=JSON.parse(prxy[prx.allItems[g].containertype][prx.allItems[g].containerindex].states[prx.allItems[g].states[v].stateindex].data)[prx.allItems[g].states[v].itemindex].symbolid;break}if(-1==m)return prx.actions.callback(o),!1;d=prx.stc.containers.getIndexFromId(m);u=o.targetId,h="symbolstateid"}if(-1==d||0==$(u).length)return prx.actions.callback(o),!1;if($(u).hasClass("ghost-component"))return prx.actions.callback(o),!1;var y=$(u).attr("data-state-id"),x=a;switch(a){case"previously-visited-state":if(void 0!==prx.navigation._gobackstack.states[u]&&0<prx.navigation._gobackstack.states[u].length){a=prx.navigation._gobackstack.states[u][prx.navigation._gobackstack.states[u].length-1],prx.navigation._gobackstack.states[u].pop();break}return prx.actions.callback(o),!1;case"previous-state":for(var b=0;b<prxy[s][d].states.length;b++)if(prxy[s][d].states[b].id==y){if(0==b){if(void 0===o.goToLast||1!=o.goToLast)return prx.actions.callback(o),!1;a=prxy[s][d].states[prxy[s][d].states.length-1].id}else a=prxy[s][d].states[b-1].id;break}break;case"next-state":for(b=0;b<prxy[s][d].states.length;b++)if(prxy[s][d].states[b].id==y){if(b==prxy[s][d].states.length-1){if(void 0===o.goToFirst||1!=o.goToFirst)return prx.actions.callback(o),!1;a=prxy[s][d].states[0].id}else a=prxy[s][d].states[b+1].id;break}break;case"first-state":a=prxy[s][d].states[0].id;break;case"last-state":a=prxy[s][d].states[prxy[s][d].states.length-1].id;break;default:if(prx.utils.isGuid(a)){if(-1==prx.stc.helper.getStateIndexFromId(a,s,d))return prx.actions.callback(o),!1;break}for(b=0;b<prxy[s][d].states.length;b++)if(prxy[s][d].states[b].title.toLowerCase()==a.toString().toLowerCase()){a=prxy[s][d].states[b].id;break}if(!prx.utils.isGuid(a)&&-1==prx.stc.helper.getStateIndexFromId(a,s,d))return prx.actions.callback(o),!1}if(a==y&&void 0!==$(u).attr("data-previous-state-id")&&(y=$(u).attr("data-previous-state-id")),void 0===prx.navigation._gobackstack.states[u]&&(prx.navigation._gobackstack.states[u]=[]),"previously-visited-state"!=x&&prx.navigation._gobackstack.states[u].push(y),50<=prx.navigation._gobackstack.states[u].length&&prx.navigation._gobackstack.states[u].shift(),$(u).trigger("stateleave"),$(u).attr("data-state-id",a).attr("data-previous-state-id",y),prx.currentPlayerStatus.helper.set(u,h,a),prxy[s][d].vr){var _=prx.states.getChangesBetweenStates(y,a,s,d);prx.vr.changeState(u.substr(1),prxy[s][d].id,a,_)}else{if($(".prx-page-active").find("a-scene").each(function(){this.exitVR()}),(n=prx.states.isReverse(s,d,y,a))&&void 0!==prx.states._timelines[u+"-"+a+":"+y]&&0<prx.states._timelines[u+"-"+a+":"+y].length){var w=prx.states._timelines[u+"-"+a+":"+y][prx.states._timelines[u+"-"+a+":"+y].length-1].time();c=prx.states._timelines[u+"-"+a+":"+y][0].totalDuration()-w}_=prx.states.getChangesBetweenStates(y,a,s,d);if(void 0!==o._timelineToUse)l=o._timelineToUse;else l=new TimelineMax(Object.assign({},prx.basicGreensockOptions,{paused:!0}));if(0!=_){var S=s,T=d,P=prx.states.getChangesTransitionInfo(_,y,a,S,T,n),k=P.common,I=P.allchanges,A=P.minstart/1e3,E=P.maxendtotal/1e3,C={};_=(_=_.map(function(t,e){if(void 0!==t.changes){for(var r={},i=[],n=0;n<t.changes_order.length;n++){var a=t.changes_order[n];t.changes.hasOwnProperty(a)&&(!0===I[t.id+"-"+a].rerender?C.hasOwnProperty(t.id)&&void 0!==C[t.id]||(C[t.id]=I[t.id+"-"+a].delay,r[a]=t.changes[a],i.push(t.changes_order[n])):(r[a]=t.changes[a],i.push(t.changes_order[n])))}t.changes=r,t.changes_order=i}return t})).map(function(t,e){if(void 0!==t.changes){for(var r={},i=[],n=0;n<t.changes_order.length;n++){var a=t.changes_order[n];if(t.changes.hasOwnProperty(a)){if(!1===I[t.id+"-"+a].rerender&&!1===I[t.id+"-"+a].transitionable&&C.hasOwnProperty(t.id)&&!isNaN(parseInt(C[t.id]))&&I[t.id+"-"+a].delay===C[t.id])continue;if(!1===I[t.id+"-"+a].rerender&&!0===I[t.id+"-"+a].transitionable&&0===I[t.id+"-"+a].duration&&C.hasOwnProperty(t.id)&&I[t.id+"-"+a].delay===C[t.id])continue;r[a]=t.changes[a],i.push(t.changes_order[n])}}t.changes=r,t.changes_order=i}return t});for(b=0;b<_.length;b++){switch(_[b].type){case"new-group":case"removed-group":case"changed-group":var O=prx.currentPlayerStatus.helper.get(p,"groups");if(O&&_[b].group&&_[b].group.id)if("new-group"===_[b].type||"changed-group"===_[b].type){var M=prx.toolbox.clone(_[b].group);O[M.id]=M}else"removed-group"===_[b].type&&O.hasOwnProperty(_[b].group.id)&&delete O[_[b].group.id];var D=prx.groups.getGroupData(p+" ."+_[b].id);D&&D.targetids.forEach(function(t){prx.items.updateTransformIfHidden(t,y)}),void 0!==_[b].visible&&prx.visibility.set(p+" ."+_[b].id,"visible",!1!==_[b].visible[1]),void 0!==_[b].opacity&&prx.visibility.set(p+" ."+_[b].id,"opacity",_[b].opacity[1]);break;case"new-component":!function(t){prx.items.rerender(_[t].item,p.slice(1),i),l.add(function(){this.timeline.data.reversing?$(p+"-"+_[t].id).addClass("ghost-component"):$(p+"-"+_[t].id).removeClass("ghost-component")},0)}(b);break;case"removed-component":!function(t,e,r){l.add(function(){this.timeline.data.reversing?$(p+"-"+_[t].id).removeClass("ghost-component"):($(p+"-"+_[t].id).addClass("ghost-component"),prx.vr.disable(p))},e+r)}(b,L=k["changed-"+_[b].id].delay/1e3,B=k["changed-"+_[b].id].duration/1e3);break;case"changed-component":case"container-properties":case"page-properties":case"template-properties":break;case"reordered-components":!function(e){l.add(function(){this.timeline.data.reversing?components=_[e].old_order.split(","):components=_[e].new_order.split(",");for(var t=1;t<components.length;t++)$(p+"-"+components[t]).insertAfter(p+"-"+components[t-1]),prx.items.helper.refreshHtmlComponent(components[t],p.slice(1),a)},E)}(b)}if(void 0!==_[b].changes)for(var F=0;F<_[b].changes_order.length;F++){var R=_[b].changes_order[F];if(_[b].changes.hasOwnProperty(R)){var N=_[b].changes[R];if(void 0!==I[_[b].id+"-"+R]){var L=I[_[b].id+"-"+R].delay,B=I[_[b].id+"-"+R].duration;switch(_[b].id){case"current-page":var j=p;break;case"current-container":var V={top:-parseInt(prx.currentPlayerStatus.helper.get(p,"scrollToY")),left:-parseInt(prx.currentPlayerStatus.helper.get(p,"scrollToX")),rotation:prx.currentPlayerStatus.helper.get(p,"rotation")};prx.items.updateTransform($(p+"-scroll"),{},V.left,V.top,V.rotation,1);j=p+"-scroll";break;default:j=p+"-"+_[b].id}var H={_timelineToUse:l,pageId:i,itemId:_[b].id,targetId:j,containerid:p.slice(1),componentType:_[b].componentType,propertyId:R,newvalue:N[1],oldvalue:N[0],duration:B,delay:L,animationEasing:I[_[b].id+"-"+R].easing};if(!1===Array.isArray(N)&&void 0!==N.opacity&&void 0!==N.visible&&(H.newvalue={opacity:N.opacity[1],visible:N.visible[1]},H.oldvalue={opacity:N.opacity[0],visible:N.visible[0]}),void 0!==I[_[b].id+"-"+R].rotationDirection&&(H.rotationDirection=I[_[b].id+"-"+R].rotationDirection),-1<R.indexOf("dynamicProperties-")){var z=R.split("-");H.propertyType="dynamic-property",H.itemIndex=z[1],H.propertyId=z[z.length-1]}l=prx.actionsLibrary.changeProperty(H,y,a)}}}}}else A=0,E=.0013;if(l.add(function(){this.timeline.data.reversing||$(u).trigger("stateenter")},.001),l.add(function(){void 0!==this.timeline.data.suppressEvents&&this.timeline.data.suppressEvents||(this.timeline.data.reversing?(prx.actions.reloadGroupActions(s,d,a,i,u),$(u).trigger("statetransitionend")):$(u).trigger("statetransitionstart"))},A),0==A&&(A=.0012),l.data={reversing:!1},void 0===prx.states._timelines[u+"-"+y+":"+a])prx.states._timelines[u+"-"+y+":"+a]=[];else if(1<prx.states._timelines[u+"-"+y+":"+a].length)for(b=prx.states._timelines[u+"-"+y+":"+a].length-1;0<b;b--)prx.states._timelines[u+"-"+y+":"+a][b].kill(),prx.states._timelines[u+"-"+y+":"+a].splice(b,1);l.eventCallback("onComplete",function(){void 0!==this.data.suppressEvents&&this.data.suppressEvents||(this.data.reversing?$(u).trigger("statetransitionstart"):(prx.actions.reloadGroupActions(s,d,a,i,u),$(u).trigger("statetransitionend"))),void 0!==this.data.suppressEvents&&this.data.suppressEvents||$(p).attr("data-state-id")==a&&prx.actions.callback(o),prx.scrollable.refresh(p),prx.vr.refresh(p)}),prx.states._timelines[u+"-"+y+":"+a].push(l);H={pageId:i,itemId:"pages"==s?"page-transition":g,targetId:u,stateTransition:"all-transitions",endTransition:!1};if(prx.actionsLibrary.stopStateTransition(H),void 0!==o._timelineToUse)return l;l.play(c)}},prx.actionsLibrary.stopStateTransition=function(t){-1==t.pageId&&(t.pageId=t.containerid.split("-")[1]);var e="pages",r=prx.stc.screens.getIndexFromId(t.pageId);switch(t.itemId){case"page-transition":e="pages",r=prx.stc.screens.getIndexFromId(t.pageId),t.targetId="#p-"+t.pageId;break;default:var i=t.itemId;if(-1==i){var n=t.containerid.split("-");i="box-"+n[n.length-1]}var a=prx.items.recursivelyFindItemSymbolId(i,e,r);if(!a)return prx.actions.callback(t),!1;e="symbols",r=prx.stc.containers.getIndexFromId(a)}var o=[];if("all-transitions"==t.stateTransition)for(var s=0;s<prxy[e][r].states.length;s++)o.push(prxy[e][r].states[s].id);else o.push(t.stateTransition);for(var l in prx.states._timelines)if(prx.states._timelines.hasOwnProperty(l))for(s=0;s<o.length;s++)if(-1<l.indexOf(t.targetId)&&-1<l.indexOf(o[s]))for(var p=0;p<prx.states._timelines[l].length;p++)t.endTransition&&(void 0===prx.states._timelines[l][p].data&&(prx.states._timelines[l][p].data={}),prx.states._timelines[l][p].data.suppressEvents=!0,prx.states._timelines[l][p].seek(prx.states._timelines[l][p].totalDuration(),!1)),prx.states._timelines[l][p].pause();prx.actions.callback(t)},prx.actionsLibrary.externalLink=function(t){var e="";switch(t.actionId){case"open-external-url":prx.inProtoApp&&(e+="targetblank://"),e+=prx.utils.escapeHTML(t.url),prx.utils.isValidUrl(prx.utils.escapeHTML(t.url))||prx.utils.isFaceTimeUrl(prx.utils.escapeHTML(t.url))||(e=prx.inProtoApp?"targetblank://about:blank":"about:blank"),prx.inProtoApp||prx.export2html||(e="redirect/?r="+encodeURIComponent(e)),prx.spaces&&(e="/"+e+"&ehtml=0");break;case"send-email":e+="mailto:"+prx.utils.escapeHTML(t.email)+"?subject="+encodeURIComponent(prx.utils.escapeHTML(t.emailSubject))+"&body="+encodeURIComponent(prx.utils.escapeHTML(t.emailBody));break;case"make-phone-call":e+="tel:"+prx.utils.escapeHTML(t.phone);break;case"send-sms":e+="sms:"+prx.utils.escapeHTML(t.phone)}$('<a href="'+e+'" target="_blank" rel="nofollow noopener" id="temp-for-external-link"></a>').appendTo("body")[0].click(),$("#temp-for-external-link").remove(),prx.actions.callback(t)},prx.actionsLibrary.playVideo=function(e){setTimeout(function(){try{if($(e.targetId).hasClass("html5"))$(e.targetId+" video").get(0).play();else if($(e.targetId).hasClass("youtube")){var t=(e.targetId+"-youtube").substring(1);try{prx.youtube._players[t].playVideo()}catch(t){}}else{t=(e.targetId+"-vimeo").substring(1);try{prx.vimeo._players[t].api("play")}catch(t){console.log("error playing vimeo video")}}}catch(t){}prx.actions.callback(e)},e.delay)},prx.actionsLibrary.pauseVideo=function(e){setTimeout(function(){try{if($(e.targetId).hasClass("html5"))$(e.targetId+" video").get(0).pause();else if($(e.targetId).hasClass("youtube")){var t=(e.targetId+"-youtube").substring(1);try{prx.youtube._players[t].pauseVideo()}catch(t){}}else{t=(e.targetId+"-vimeo").substring(1);try{prx.vimeo._players[t].api("pause")}catch(t){console.log("error pausing vimeo video")}}}catch(t){}prx.actions.callback(e)},e.delay)},prx.actionsLibrary.stopVideo=function(e){setTimeout(function(){try{if($(e.targetId).hasClass("html5"))$(e.targetId+" video").get(0).pause(),$(e.targetId+" video").get(0).currentTime=0;else if($(e.targetId).hasClass("youtube")){var t=(e.targetId+"-youtube").substring(1);try{prx.youtube._players[t].seekTo(0),prx.youtube._players[t].pauseVideo()}catch(t){}}else{t=(e.targetId+"-vimeo").substring(1);try{prx.vimeo._players[t].api("unload")}catch(t){console.log("error stopping vimeo video")}}}catch(t){}prx.actions.callback(e)},e.delay)},prx.actionsLibrary.playAudio=function(e){"play-audio"==e.actionId&&"library"!=e.sourceId&&setTimeout(function(){try{$(e.targetId+" audio").get(0).play(),prx.actions.callback(e)}catch(t){}},e.delay),("play-sound-effect"==e.actionId||"play-audio"==e.actionId&&"library"==e.sourceId)&&setTimeout(function(){try{var t=$("#quick-audios").find("#"+e.sound.name.replace(/\s+/g,"-"));0<t.length&&(t.get(0).pause(),t.get(0).currentTime=0,t.get(0).play()),prx.actions.callback(e)}catch(t){}},e.delay)},prx.actionsLibrary.volumeAudio=function(t){var e=t.newvalue,r=$(t.targetId).find("audio").get(0);e<0?e=0:100<e&&(e=100),setTimeout(function(){void 0!==r&&void 0!==r.volume&&(r.volume=parseFloat(e/100)),prx.actions.callback(t)},t.delay)},prx.actionsLibrary.volumeVideo=function(r){var i=r.newvalue;i<0?i=0:100<i&&(i=100),setTimeout(function(){try{if($(r.targetId).hasClass("html5")){var t=$(r.targetId).find("video").get(0);t.muted=!(0<i),t.volume=parseFloat(i/100)}else if($(r.targetId).hasClass("youtube")){var e=(r.targetId+"-youtube").substring(1);try{0<i?prx.youtube._players[e].unMute():prx.youtube._players[e].mute(),prx.youtube._players[e].setVolume(i)}catch(t){}}else try{$f($(r.targetId).attr("id")+"-vimeo").api("setVolume",parseFloat(i/100))}catch(t){}}catch(t){}prx.actions.callback(r)},r.delay)},prx.actionsLibrary.getComponentItemTypeFromDom=function(t){if(void 0!==t)return $(t).attr("data-component-type")},prx.actionsLibrary.playVectorAnimation=function(a){setTimeout(function(){try{var t=$(a.targetId).find(".bodymovin-player"),e=t.attr("data-name"),r=t.attr("data-anim-autoplay"),i=t.attr("data-anim-loop"),n=t.attr("data-speed");prx.currentPlayerStatus.helper.set(a.targetId,"name",e),prx.currentPlayerStatus.helper.set(a.targetId,"autoplay","true"==r),prx.currentPlayerStatus.helper.set(a.targetId,"loop","true"==i),prx.currentPlayerStatus.helper.set(a.targetId,"playbackSpeed",parseFloat(n)),prx.bodymovinAnimation.playbackConsole({playbackType:"play",target:{search:!1,dataName:e},loop:i,autoplay:r,rewindIfLastFrame:!0,speed:n,onCompleteEvent:function(){$(a.targetId).trigger("vectoranimationend")}})}catch(t){}prx.actions.callback(a)},a.delay)},prx.actionsLibrary.pauseVectorAnimation=function(n){setTimeout(function(){try{var t=$(n.targetId).find(".bodymovin-player"),e=t.attr("data-name"),r=t.attr("data-anim-autoplay"),i=t.attr("data-anim-loop");prx.currentPlayerStatus.helper.set(n.targetId,"name",e),prx.currentPlayerStatus.helper.set(n.targetId,"autoplay","true"==r),prx.currentPlayerStatus.helper.set(n.targetId,"loop","true"==i),prx.bodymovinAnimation.playbackConsole({playbackType:"pause",target:{search:!1,dataName:e},loop:i,autoplay:r})}catch(t){}prx.actions.callback(n)},n.delay)},prx.actionsLibrary.stopVectorAnimation=function(n){setTimeout(function(){try{var t=$(n.targetId).find(".bodymovin-player"),e=t.attr("data-name"),r=t.attr("data-anim-autoplay"),i=t.attr("data-anim-loop");prx.currentPlayerStatus.helper.set(n.targetId,"name",e),prx.currentPlayerStatus.helper.set(n.targetId,"autoplay","true"==r),prx.currentPlayerStatus.helper.set(n.targetId,"loop","true"==i),prx.bodymovinAnimation.playbackConsole({playbackType:"stop",target:{search:!1,dataName:e},loop:i,autoplay:r})}catch(t){}prx.actions.callback(n)},n.delay)},prx.actionsLibrary.changeCursor=function(r){setTimeout(function(){var t;if($("#custom-cursor-css").remove(),"auto"===r.cursor)$("body").removeClass("custom-cursor");else{t="custom-cursor"!==r.cursor?r.cursor:"url(".concat(prx.componentsHelper.getProp(r.customCursor,"asset"),"), default");var e='<style id="custom-cursor-css">body.custom-cursor, body.custom-cursor * { cursor: '.concat(t,"!important; }</style>");$("head").append(e),$("body").addClass("custom-cursor")}prx.actions.callback(r)},r.delay)},prx.actionsLibrary.replaceTextValue=function(t,e){for(var r,i=e,n=t,a=[],o=[],s=[],l=[],p=[];null!==(r=/^(<[^\/>][^>]*>)/g.exec(n));){o.push(r[0]);var c=r[0].match(/^<([a-z]+)/gi);a.push(c[0].slice(1)),n=n.slice(r[0].length)}for(n=t;null!==(r=/(<\/[^>]+>)$/g.exec(n));)s.push(r[0]),n=n.slice(0,-r[0].length);for(var u=0;u<o.length;u++)s[u]&&s[u].toLowerCase()==="</"+a[u].toLowerCase()+">"&&(l.push(o[u]),p.push(s[u]));l=l.reverse();for(u=0;u<l.length;u++)i=l[u]+i+p[u];return i}},function(t,e){prx.analytics={},prx.analytics.hasanalytics=!1,prx.analytics.trackingcode="",prx.analytics.version="",prx.analytics.ini=function(){var t,e,r,i;prx.spaces||(prx.analytics.trackingcode=prx.projectsettings.gatrackingcode,prx.analytics.hasanalytics=0<prx.analytics.trackingcode.length,prx.analytics.version=0!=prx.projectsettings.v&&"0"!=prx.projectsettings.v&&"latest"!=prx.projectsettings.v?"v"+prx.projectsettings.v:"live",prx.analytics.hasanalytics&&(t=window,e=document,t.GoogleAnalyticsObject="ga",t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*new Date,r=e.createElement("script"),i=e.getElementsByTagName("script")[0],r.async=1,r.src="https://www.google-analytics.com/analytics.js",i.parentNode.insertBefore(r,i),ga("create",prx.analytics.trackingcode,prx.url.siteurl),prx.export2html&&(ga("set","checkProtocolTask",null),ga("set","checkStorageTask",null),ga("set","historyImportTask",null)),$(window).bind("hashchange",function(){location.hash.length&&prx.analytics.trackPage(window.location.hash.replace("#",""))})))},prx.analytics.trackPage=function(t){if(prx.analytics.hasanalytics){var e=prxy.pages[prx.stc.screens.getIndexFromId(t)].title;ga("send","pageview",{page:"#p-"+t,title:prx.analytics.version+": "+e})}}},function(t,e){prx.canvas={},prx.canvas._statusbars={},prx.canvas._navigationbars={},prx.canvas.inputFocusStateTimer=null,prx.canvas.loadAll=function(){$.each(prxy.pages,function(t,e){prx.stc.screens.load(e)})},prx.canvas.clear=function(){$("#dragarea").html("")},prx.canvas.ini=function(){if(prx.canvas.loadAll(),prx.orientation._orientation=prx.orientation.get(),prx.orientation.changeBody(prx.orientation._orientation),void 0!==prx.project.background&&("string"==typeof prx.project.background&&(prx.project.background=prx.gradients.stringToPrxData(prx.project.background)),$("body").css("background-color",prx.gradients.prxToCss(prx.project.background))),$(window).bind("pagebeforechange",function(t,e){var r=("#"+prx.navigation._activepage).substr(1);$.each(prx.scrollable._scrollables,function(t,e){0==t.indexOf(r+"-")&&(prx.scrollable._scrollPositions[t]=[e.x,e.y])})}),$(window).bind("pagechange",function(t,e){if(void 0!==prx.scrollable._scrollables){var r=prx.navigation._activepage;$.each(prx.scrollable._scrollables,function(t,e){0==t.indexOf(r+"-")&&void 0!==prx.scrollable._scrollPositions[t]&&e.scrollTo(prx.scrollable._scrollPositions[t][0],prx.scrollable._scrollPositions[t][1],0)})}}),prx.inProtoApp||$(window).bind("orientationchange",function(t){return prx.orientation._orientation=prx.orientation.get(),parent==window&&prx.orientation.change(),!0}),$(window).resize(function(){prx.orientation.check(),$("#dragarea").width($(window).width()),$("#dragarea").height($(window).height())}),$(document).on("focusout",":input",function(){prx.canvas.inputFocusStateTimer=setTimeout(function(){prx.crossmsg.send({action:"set-input-focus-status",data:{value:!1}})},50)}),$(document).on("focusin",":input",function(t){null!==prx.canvas.inputFocusStateTimer&&clearTimeout(prx.canvas.inputFocusStateTimer),prx.crossmsg.send({action:"set-input-focus-status",data:{value:!0}})}),prx.inProtoAndroidApp){var t=$("head meta[name=viewport]"),e=t.attr("content");t.attr("content","width=device-width, "+e)}if(prx.helper.oniphone()){var r="812"==window.screen.height&&"375"==window.screen.width||"375"==window.screen.height&&"812"==window.screen.width,i="828"==window.screen.height&&"1792"==window.screen.width||"1792"==window.screen.height&&"828"==window.screen.width,n="414"==window.screen.height&&"896"==window.screen.width||"896"==window.screen.height&&"414"==window.screen.width;if(r||i||n){var a=$("head meta[name=viewport]"),o=a.attr("content");a.attr("content","viewport-fit=cover, "+o),$(document).on("focusout",":input",function(){setTimeout(function(){$("input, textarea").is(":focus")||window.scrollTo(0,0)},100)})}}$(document).on("blur","input,textarea",function(){prx.iosmobilebrowser&&prx.crossmsg.send({action:"inputblur",data:{}})}),$(window).bind("hashchange",function(){""!=window.location.hash&&window.location.hash!="#"+prx.navigation._activepage.replace("p-","")?prx.navigation.changePage($("#p-"+window.location.hash.replace("#","")),{changeHash:!1,allowSamePageTransition:!1}):""==window.location.hash&&(prx.loading.hideLoader(),prx.loading.iniStartScreen())}),$(document).on("click.fakefocus",":input",function(){$(this).is(":focus")||$(this).focus()}),$(window).on("mouseleave",function(t){null==t.originalEvent.toElement&&null==t.originalEvent.relatedTarget&&prx.scrollable.endTransitions()}),$("body").on("contextmenu",function(){return!1}),$(document).on("click touchstart",function(){prx.iosmobilebrowser&&prx.helper.blurInputs(),prx.helper.closeDropdowns()}),prx.iosmobilebrowser&&$(document).on("click touchstart","input,textarea",function(t){t.stopPropagation()}),$.browser.chrome&&!prx.helper.onmobile()&&$("body").addClass("do-chrome-fix")}},function(t,e){prx.crossmsg=prx.crossmsg||{},prx.crossmsg.gettargetframe=function(){return parent},prx.crossmsg.onmsg=function(t){switch(t.action){case"zoom-level-changed":prx.clickEffect.scale(t.data.zoom);break;case"change-page":prx.interface.goToPage(t.data.pageid);break;case"keydown":prx.interface.triggerKeydownAction(t.data.key);break;case"change-orientation":prx.interface.triggerOrientationChange();break;case"change-body-orientation":prx.interface.triggerBodyOrientationChange();break;case"show-click-effect":prx.interface.clickEffect.show();break;case"hide-click-effect":prx.interface.clickEffect.hide();break;case"show-show-actions":prx.interface.showActions.on();break;case"hide-show-actions":prx.interface.showActions.off();break;case"enable-flash-actions":prx.interface.showActions.flash.enable();break;case"disable-flash-actions":prx.interface.showActions.flash.disable();break;case"show-loader":prx.interface.startShowLoader();break;case"hide-loader":prx.interface.startHideLoader();break;case"go-to-previous-screen":prx.goToPreviousScreen();break;case"go-to-next-screen":prx.goToNextScreen();break;case"toggle-release-channel":prx.releaseChannel=t.data.version}}},function(t,e){prx.clickEffect={},prx.clickEffect.scaleRatio=1,prx.clickEffect.ini=function(){if(!prx.helper.onmobile()){var t=prx.kvs.get("clickEffect_"+prx.projectsettings.id);0==t||null==t?prx.clickEffect.hide():prx.clickEffect.show()}},prx.clickEffect.scale=function(t){"undefined"==t&&(t=1),prx.clickEffect.scaleRatio=parseFloat(1/t).toFixed(2)},prx.clickEffect.show=function(){if(!parent!=window)try{prx.crossmsg.send({action:"show-click-effect"})}catch(t){}$("body").on("mousedown.clickeffect",function(t,e){var r=$("body").find(".prx-page-active");$("body").hasClass("device-cursor-touch")?r.append('<span class="cbutton cbutton--effect-sanja"></span>'):r.append('<span class="cbutton cbutton--effect-jelena"></span>');var i=r.find(".cbutton");i.css({height:"54px",width:"54px"});var n=t.pageX-27-0,a=t.pageY-27-3;i.css({"-moz-transform":"scale("+prx.clickEffect.scaleRatio+")","-webkit-transform":"scale("+prx.clickEffect.scaleRatio+")",transform:"scale("+prx.clickEffect.scaleRatio+")","-webkit-perspective":1e3}),i.css({top:a+"px",left:n+"px",position:"absolute"}).addClass("cbutton--click"),setTimeout(function(){i.remove()},250)})},prx.clickEffect.hide=function(){if(!parent!=window)try{prx.crossmsg.send({action:"hide-click-effect"})}catch(t){}$("body").off("mousedown.clickeffect")}},function(t,e){prx.debug={},prx.debug.fps,prx.debug._time={},prx.debug.ini=function(){prx.debug.performance(),prx.debug.inilog(),prx.debug.iniLogErrors()},prx.debug.performance=function(){return},prx.debug.inilog=function(){$('<div id="log" />').appendTo("body")},prx.debug.log=function(t){$("#log").append(t+"<br>")},prx.debug.clearlog=function(){$("#log").html("")},prx.debug.starttime=function(t){prx.debug._time[t]=Date.now()},prx.debug.endtime=function(t){return void 0===prx.debug._time[t]?0:Date.now()-prx.debug._time[t]},prx.debug.time=function(t){prx.debug.starttime(t)},prx.debug.timeEnd=function(t){prx.debug.log(t+": "+prx.debug.endtime(t)+"ms")},prx.debug.iniLogErrors=function(){window.onerror=function(t,e,r,i,n){prx.debug.log(t+" - Line: "+r)}}},function(t,e){prx.draggable={},prx.draggable._draggables={},prx.draggable.reset=function(t,e,r){void 0!==r&&0!=r.length||(r="p-"+e);var i="#"+r+"-"+t.id;void 0!==prx.draggable._draggables[i.substr(1)]&&($(i).removeClass("draggable"),$(i+".move, "+i+"  .move").removeClass("move"),prx.draggable._draggables[i.substr(1)][0].kill(),delete prx.draggable._draggables[i.substr(1)])},prx.draggable.ini=function(t,e,r,i){if(void 0===i&&(i=!0),void 0!==t.draggable&&null!==t.draggable&&t.draggable.isdraggable&&(_bounds="",t.draggable.isdraggable)){void 0!==r&&0!=r.length||(r="p-"+e);var n="#"+r+"-"+t.id;t.draggable.targetitem=$(n),"auto"==t.draggable.bounds?t.draggable.container=t.draggable.targetitem.parent():t.draggable.container={left:parseInt(t.draggable.boundsprops.left),top:parseInt(t.draggable.boundsprops.top),width:parseInt(t.draggable.boundsprops.width),height:parseInt(t.draggable.boundsprops.height)},t.draggable.container=t.draggable.targetitem.parent(),void 0!==t.draggable.handle&&""!=t.draggable.handle&&0<$(n+"-"+t.draggable.handle).length&&(t.draggable.handleid=n+"-"+t.draggable.handle),$(n).addClass("draggable");var a,o=""==t.draggable.handle?n:n+"-"+t.draggable.handle;if($(o).addClass("move"),void 0===t.draggable.front&&(t.draggable.front=!1),void 0===t.draggable.livesnap&&(t.draggable.livesnap=!1),void 0===t.draggable.lockaxis&&(t.draggable.lockaxis=!1),a=t.draggable.kinetic?2:1e-4,"rotation"==t.draggable.axis&&"none"==t.draggable.rotationbounds?_bounds={minRotation:-99999,maxRotation:99999}:"rotation"==t.draggable.axis&&(_bounds={minRotation:parseInt(t.draggable.boundsprops.mindegrees),maxRotation:parseInt(t.draggable.boundsprops.maxdegrees)}),0==t.draggable.targetitem.length)return!1;i&&prx.items.updatePosition(t,r,e),prx.draggable._draggables[n.substr(1)]=Draggable.create(t.draggable.targetitem,{type:t.draggable.axis,edgeResistance:.95,throwProps:!0,bounds:_bounds,trigger:void 0!==t.draggable.handleid?t.draggable.handleid:"",zIndexBoost:t.draggable.front,dragResistance:0,minDuration:1e-4,maxDuration:a}),prx.draggable._draggables[n.substr(1)][0].vars.onDragStart=function(){$(this.target).parents(".box").each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].disable()})},prx.draggable._draggables[n.substr(1)][0].vars.onDragEnd=function(){$(this.target).parents(".box").each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].enable()})},prx.draggable._draggables[n.substr(1)][0].vars.onThrowComplete=function(){prx.draggable.updateDraggableItem(n,t,this)},prx.draggable._draggables[n.substr(1)][0].vars.onDrag=function(){prx.draggable.updateDraggableItem(n,t,this)}}},prx.draggable.updateDraggableItem=function(t,e,r){"rotation"!==e.draggable.axis?prx.currentPlayerStatus.helper.set(t,{top:void 0!==r.endY?r.endY:r.y,left:void 0!==r.endX?r.endX:r.x}):prx.currentPlayerStatus.helper.set(t,"rotation",void 0!==r.endRotation?r.endRotation:r.rotation)},prx.draggable.refresh=function(t){$(t+".box.draggable, "+t+" .box.draggable").each(function(){if(void 0===prx.draggable._draggables[this.id])return!1;var t=this.id.split("box-"),e="box-"+t[t.length-1],r=$(this).parents("[data-state-id]").first().attr("data-state-id");if(void 0!==prx.allItems[e]&&void 0!==prx.allItems[e].states&&void 0!==prx.allItems[e].states[r]){var i=JSON.parse(prxy[prx.allItems[e].containertype][prx.allItems[e].containerindex].states[prx.allItems[e].states[r].stateindex].data)[prx.allItems[e].states[r].itemindex];if(void 0!==i.draggable&&i.draggable.isdraggable){if(i.draggable.targetitem=$("#"+this.id),"rotation"!=i.draggable.axis)if("auto"!=i.draggable.bounds){var n=0,a=0,o={left:parseInt(i.draggable.boundsprops.left)+n,top:parseInt(i.draggable.boundsprops.top)+a,width:i.draggable.boundsprops.width,height:i.draggable.boundsprops.height};prx.draggable._draggables[this.id][0].vars.bounds=o}else"auto"==i.draggable.bounds&&(prx.draggable._draggables[this.id][0].vars.bounds=$("#"+this.id).parent());var s=0,l=0,p=0,c=0,u={};i.draggable.snap&&(p=i.draggable.snapprops.rows,c=i.draggable.snapprops.columns),"auto"==i.draggable.bounds?(i.draggable.container=i.draggable.targetitem.parent(),i.draggable.snap&&(s=i.draggable.container.width()/c,l=i.draggable.container.height()/p),i.width<s&&(s=(i.draggable.container.width()-i.width)/c),i.height<l&&(l=(i.draggable.container.height()-i.height)/p)):(i.draggable.container={left:parseInt(i.draggable.boundsprops.left),top:parseInt(i.draggable.boundsprops.top),width:parseInt(i.draggable.boundsprops.width),height:parseInt(i.draggable.boundsprops.height)},i.draggable.snap&&(s=i.draggable.boundsprops.width/c,l=i.draggable.boundsprops.height/p)),i.draggable.snap&&(u="rotation"!=i.draggable.axis?{x:function(t){return i.draggable.snap?Math.max(this.minX,Math.min(this.maxX,Math.round((t-i.draggable.boundsprops.left)/s)*s+parseInt(i.draggable.boundsprops.left))):t},y:function(t){return i.draggable.snap?Math.max(this.minY,Math.min(this.maxY,Math.round((t-i.draggable.boundsprops.top)/l)*l+parseInt(i.draggable.boundsprops.top))):t}}:function(t){var e=i.draggable.rotationsnap;return 0!=e&&""!=e||(e=360),Math.round(t/e)*e}),prx.draggable._draggables[this.id][0].vars.snap=u,prx.draggable._draggables[this.id][0].vars.liveSnap=i.draggable.snap&&i.draggable.livesnap,prx.draggable._draggables[this.id][0].vars.lockAxis=i.draggable.lockaxis,prx.draggable._draggables[this.id][0].lockAxis=i.draggable.lockaxis;for(var h=!1,d=!1,f=!1,m=!1,g=!1,v=0;v<prx.actions._actionTypes.length;v++)if(void 0!==i[prx.actions._actionTypes[v]])for(var y=0;y<i[prx.actions._actionTypes[v]].length;y++){switch(i[prx.actions._actionTypes[v]][y].type){case"ondragstart":case"onrotatestart":h=!0;break;case"ondrag":case"onrotate":d=!0;break;case"ondragend":case"onrotateend":f=!0;break;case"onthrowupdate":case"onrotatethrowupdate":m=!0;break;case"onthrowcomplete":case"onrotatethrowcomplete":g=!0}void 0!==i[prx.actions._actionTypes[v]][y].originaltarget&&(g=f=!0)}var x="#"+this.id,b=0;if(h||d||f||m||g||i.draggable.front){var _={top:prx.currentPlayerStatus.helper.get(x,"top"),left:prx.currentPlayerStatus.helper.get(x,"left")};void 0===prx.variables._triggerData[x]&&(prx.variables._triggerData[x]={original:{}}),prx.variables._triggerData[x].original.x=_.left,prx.variables._triggerData[x].original.y=_.top}prx.draggable._draggables[x.substr(1)][0].vars.onRelease=function(){$(this.target).css("z-index","")},h&&(prx.draggable._draggables[x.substr(1)][0].vars.onDragStart=function(){var t={};if($(this.target).parents(".box").each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].disable()}),void 0===prx.variables._triggerData[x]&&(prx.variables._triggerData[x]={}),"rotation"!=i.draggable.axis){if(t.row=0,t.column=0,t.x=0,t.y=0,t.movex=0,t.movey=0,t.left=0,t.top=0,t.position={left:i.left,top:i.top},i.draggable.snap)switch(i.draggable.axis){case"x":t.row=1,t.column=Math.round((this.x-this.minX)/s)+1;break;case"y":t.row=Math.round((this.y-this.minY)/l)+1,t.column=1;break;case"x,y":t.row=Math.round((this.y-this.minY)/l)+1,t.column=Math.round((this.x-this.minX)/s)+1}var e=$(this.target).offset();t.x=Math.round(this.x-this.minX),t.y=Math.round(this.y-this.minY),t.movex=Math.round(this.x-prx.variables._triggerData[x].original.x),t.movey=Math.round(this.y-prx.variables._triggerData[x].original.y),t.left=Math.round(e.left),t.top=Math.round(e.top),prx.variables._triggerData[x].ondragstart=t,$(x).trigger("ondragstart",this)}else{var r=Math.round(this.rotation%360);t.degrees=0<r?r:360+r,t.rotationposition=Math.round(this.rotation),isNaN(t.degrees)&&(t.degrees=0),b=this.rotation,t.rotated=0,prx.variables._triggerData[x].onrotatestart=t,$(x).trigger("onrotatestart",this)}}),d&&(prx.draggable._draggables[x.substr(1)][0].vars.onDrag=function(){prx.draggable.updateDraggableItem(x,i,this);var t={};if(void 0===prx.variables._triggerData[x]&&(prx.variables._triggerData[x]={}),"rotation"!=i.draggable.axis){if(t.row=0,t.column=0,t.x=0,t.y=0,t.movex=0,t.movey=0,t.left=0,t.top=0,i.draggable.snap)switch(i.draggable.axis){case"x":t.row=1,t.column=Math.round((this.x-this.minX)/s)+1;break;case"y":t.row=Math.round((this.y-this.minY)/l)+1,t.column=1;break;case"x,y":t.row=Math.round((this.y-this.minY)/l)+1,t.column=Math.round((this.x-this.minX)/s)+1}var e=$(this.target).offset();t.x=Math.round(this.x-this.minX),t.y=Math.round(this.y-this.minY),t.movex=Math.round(this.x-prx.variables._triggerData[x].original.x),t.movey=Math.round(this.y-prx.variables._triggerData[x].original.y),t.left=Math.round(e.left),t.top=Math.round(e.top),prx.variables._triggerData[x].ondrag=t,$(x).trigger("ondrag",this)}else{var r=Math.round(this.rotation%360);t.degrees=0<r?r:360+r,t.rotationposition=Math.round(this.rotation),t.rotated=this.rotation-b,t.rotated=Math.round(t.rotated),prx.variables._triggerData[x].onrotate=t,$(x).trigger("onrotate",this)}}),(f||i.draggable.front)&&(prx.draggable._draggables[x.substr(1)][0].vars.onDragEnd=function(){prx.draggable.updateDraggableItem(x,i,this);var t={};if(void 0===prx.variables._triggerData[x]&&(prx.variables._triggerData[x]={}),$(this.target).css("z-index",""),$(this.target).parents(".box").each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].enable()}),"rotation"!=i.draggable.axis){if(t.row=0,t.column=0,t.x=0,t.y=0,t.movex=0,t.movey=0,t.left=0,t.top=0,i.draggable.snap)switch(i.draggable.axis){case"x":t.row=1,t.column=Math.round((this.x-this.minX)/s)+1;break;case"y":t.row=Math.round((this.y-this.minY)/l)+1,t.column=1;break;case"x,y":t.row=Math.round((this.y-this.minY)/l)+1,t.column=Math.round((this.x-this.minX)/s)+1}var e=$(this.target).offset();t.x=Math.round(this.x-this.minX),t.y=Math.round(this.y-this.minY),t.movex=Math.round(this.x-prx.variables._triggerData[x].original.x),t.movey=Math.round(this.y-prx.variables._triggerData[x].original.y),t.left=Math.round(e.left),t.top=Math.round(e.top),prx.variables._triggerData[x].ondragend=t,$(x).trigger("ondragend",this)}else{var r=Math.round(this.rotation%360);t.degrees=0<r?r:360+r,t.rotationposition=Math.round(this.rotation),t.rotated=this.rotation-b,t.rotated=Math.round(t.rotated),prx.variables._triggerData[x].onrotateend=t,$(x).trigger("onrotateend",this)}prx.groups.redrawGroupActionDiv(x)}),m&&(prx.draggable._draggables[x.substr(1)][0].vars.onThrowUpdate=function(){prx.draggable.updateDraggableItem(x,i,this);var t={};if(void 0===prx.variables._triggerData[x]&&(prx.variables._triggerData[x]={}),"rotation"!=i.draggable.axis){if(t.row=0,t.column=0,t.x=0,t.y=0,t.movex=0,t.movey=0,i.draggable.snap)switch(i.draggable.axis){case"x":t.row=1,t.column=Math.round((this.x-this.minX)/s)+1;break;case"y":t.row=Math.round((this.y-this.minY)/l)+1,t.column=1;break;case"x,y":t.row=Math.round((this.y-this.minY)/l)+1,t.column=Math.round((this.x-this.minX)/s)+1}var e=$(this.target).offset();t.x=Math.round(this.x-this.minX),t.y=Math.round(this.y-this.minY),t.movex=Math.round(this.x-prx.variables._triggerData[x].original.x),t.movey=Math.round(this.y-prx.variables._triggerData[x].original.y),t.left=Math.round(e.left),t.top=Math.round(e.top),prx.variables._triggerData[x].onthrowupdate=t,$(x).trigger("onthrowupdate",this)}else{var r=Math.round(this.rotation%360);t.degrees=0<r?r:360+r,t.rotationposition=Math.round(this.rotation),t.rotated=this.rotation-b,t.rotated=Math.round(t.rotated),prx.variables._triggerData[x].onrotatethrowupdate=t,$(x).trigger("onrotatethrowupdate",this)}}),prx.draggable._draggables[x.substr(1)][0].vars.onThrowComplete=function(){if(prx.draggable.updateDraggableItem(x,i,this),g){var t={};if(void 0===prx.variables._triggerData[x]&&(prx.variables._triggerData[x]={}),"rotation"!=i.draggable.axis){if(t.row=0,t.column=0,t.x=0,t.y=0,t.movex=0,t.movey=0,i.draggable.snap)switch(i.draggable.axis){case"x":t.row=1,t.column=Math.round((this.x-this.minX)/s)+1;break;case"y":t.row=Math.round((this.y-this.minY)/l)+1,t.column=1;break;case"x,y":t.row=Math.round((this.y-this.minY)/l)+1,t.column=Math.round((this.x-this.minX)/s)+1}var e=$(this.target).offset();t.x=Math.round(this.x-this.minX),t.y=Math.round(this.y-this.minY),t.movex=Math.round(this.x-prx.variables._triggerData[x].original.x),t.movey=Math.round(this.y-prx.variables._triggerData[x].original.y),t.left=Math.round(e.left),t.top=Math.round(e.top),prx.variables._triggerData[x].onthrowcomplete=t,$(x).trigger("onthrowcomplete",this)}else{var r=Math.round(this.rotation%360);t.degrees=0<r?r:360+r,t.rotationposition=Math.round(this.rotation),t.rotated=this.rotation-b,t.rotated=Math.round(t.rotated),prx.variables._triggerData[x].onrotatethrowcomplete=t,$(x).trigger("onrotatethrowcomplete",this)}prx.groups.redrawGroupActionDiv(x)}}}}})}},function(t,e){prx.easing=prx.easing||{},prx.easing.replaceUserPreset=function(t){for(var e=["animationEasing","easing"],r=e.length,i=0;i<r;i++)void 0!==t[e[i]]&&prx.utils.isSpringrk4(t[e[i]])&&(t.duration=1e3*prx.springrk4.getDuration(t[e[i]])),void 0!==t[e[i]]&&prx.utils.isGuid(t[e[i]])&&(void 0!==prx.easing._customEasings[t[e[i]]]?(t.userpresetuuid=t[e[i]],t.duration=prx.easing._customEasings[t[e[i]]].duration,t[e[i]]=prx.easing._customEasings[t[e[i]]].easing):(t.userpresetuuid=t[e[i]],t.duration=0,t[e[i]]="linear"));return void 0!==t.callbackAction&&(t.callbackAction=prx.easing.replaceUserPreset(t.callbackAction)),t},prx.easing.searchItem=function(r){$.each(prx.actions._actionTypes,function(t,e){e in r&&$.each(r[e],function(t,e){prx.easing.replaceUserPreset(e)})}),$.each(prx.dynamicprops,function(t,e){e in r&&"string"!=typeof r[e]&&$.each(r[e],function(t,r){$.each(prx.actions._actionTypes,function(t,e){e in r&&$.each(r[e],function(t,e){prx.easing.replaceUserPreset(e)})})})})},prx.easing.checkToOverwriteCustomEasingDuration=function(t,e){return void 0===t?e:prx.utils.isValidUserPreset(t)?prx.easing._customEasings[t].duration:e}},function(t,e){function s(t,e){var a=JSON.parse(e.data),o=e.groups;return function t(r){var i=[],e=function(t){var e={};for(var r in t)e[r]=t[r].parent;return e}(o);for(var n in a.forEach(function(t,e){t.group===r&&i.push(e)}),e)e[n]===r&&(i=i.concat(t(n)));return i.unique().sort(function(t,e){return t-e})}(t).map(function(t){return a[t]})}function i(t,e){return"root"===t||void 0===e[t]?[]:[e[t]].concat(i(e[t].parent,e))}function n(t,e){return void 0===e[t]||"root"==e[t].parent?[]:[e[e[t].parent]].concat(n(e[t].parent,e))}function c(t){var e=prx.currentPlayerStatus.helper.getSelfAndAncestorsFromDomId(t);if(!e.length)return!1;var r={};r.groupid=t.split("group-").pop(),r.targetid=t;var i=prx.currentPlayerStatus.helper.getParentPointerFromAncestors(e);if("page"!==i.type&&"symbol"!==i.type)return!1;if(!i.groups)return!1;var n=Object.keys(i.groups).find(function(t){return t===r.groupid});if(void 0===n)return!1;r.group=i.groups[n],r.parenttype="page"===i.type?"pages":"symbols",r.parentid="page"===i.type?i.id:i.symbolid,r.stateid="page"===i.type?i.screenstateid:i.symbolstateid,r.parentindex=prx.stc.helper.getIndexFromId(r.parentid,r.parenttype),r.stateindex=0;var a=prxy[r.parenttype][r.parentindex].states.findIndex(function(t){return t.id===r.stateid});for(var o in-1<a?r.stateindex=a:r.stateid=prxy[r.parenttype][r.parentindex].states[0].id,r.targetids=[],i.items)void 0===i.items[o]._fromstateid&&i.items[o].group&&i.items[o].parentgroups.find(function(t){return t===r.groupid})&&r.targetids.push(t.split(" ")[0]+"-"+o);return r}function u(p,c){return p.targetids.map(function(t){var e={width:prx.currentPlayerStatus.helper.get(t,"width"),height:prx.currentPlayerStatus.helper.get(t,"height"),top:prx.currentPlayerStatus.helper.get(t,"top"),left:prx.currentPlayerStatus.helper.get(t,"left"),rotation:prx.currentPlayerStatus.helper.get(t,"rotation")};if(!0===c){var r=prx.scale.get(p.targetid,"scalex"),i=prx.scale.get(p.targetid,"scaley"),n=e.width*r,a=e.height*i,o=n-e.width,s=(a-e.height)/2,l=o/2;e.width=n,e.height=a,e.left-=l,e.top-=s}return prx.toolbox.itemDimensions(e,p.parenttype,p.parentindex,p.stateindex)})}prx.groups={getGroupData:c,getItemDimentions:u,movePropsToChildren:function(a,t){if(void 0===t)return Object.assign(a,{parentgroups:[]});if(function(){if(void 0!==a.group){var n=i(a.group,t);[,"saturate","brightness","contrast"].forEach(function(t){for(var e=0,r=void 0!==a[t]?a[t]:1;e<n.length;){var i=n[e++];r=void 0!==i[t]?r*i[t]:r}1!==r&&(a[t]=r)})}}(),void 0!==a.group){void 0===a.actions&&(a.actions=[]);for(var e=i(a.group,t),r=0;r<e.length;r++)void 0===e[r].actions&&(e[r].actions=[]),e[r].actions.forEach(function(t){t.originaltarget=e[r].id,a.actions.push(JSON.parse(JSON.stringify(t)))});return a.parentgroups=e.map(function(t){return t.id}),a}},redrawGroupActionDiv:function(t){var e=t.replace("#","").replace(" .","-")+"-actions",r=[],i=[];if(t.includes("group")){if(!1===prx.currentPlayerStatus.helper.getLiveGroupAction(e))return;prx.groups.getGroupData(t).targetids.forEach(function(t){(i=prx.currentPlayerStatus.helper.get(t,"parentgroups"))&&0<i.length&&i.forEach(function(t){r.includes(t)||r.push(t)})})}else{if(!1===prx.currentPlayerStatus.helper.getLiveItem(t.replace("#","")))return;(i=prx.currentPlayerStatus.helper.get(t,"parentgroups"))&&0<i.length&&(r=prx.toolbox.clone(i))}var p=t.includes("group")?t.split(" "):t.split("-box-");p.pop(),p=t.includes("group")?p.join(""):p.join("-box-"),r.forEach(function(t){var e=p+" ."+(t="group-"+t),r=e.replace(" .","-")+"-actions",i=c(e),n=prx.currentPlayerStatus.helper.getLiveGroupAction(r.replace("#",""));if(!1!==n){var a=$(n);if(-1!==n.className.split(" ").filter(function(t){return-1!==t.indexOf("group")&&-1===t.indexOf("prediv")}).map(function(t){return prx.visibility.get(p+" ."+t,"visible")}).indexOf(!1)?a.addClass("hidden"):a.removeClass("hidden"),i.targetids=i.targetids.filter(function(t){return!1!==prx.visibility.get(t,"visible-all")}),0!==i.targetids.length){var o=u(i),s=prx.toolbox.calculateBox(o,i.group.rotation,i.parenttype,i.parentindex,i.stateindex),l=prx.currentPlayerStatus.helper.getGroupPointer(p,t);if(l&&l.hasOwnProperty("currentGroupDimensions")){if(l.currentGroupDimensions.top===s.top&&l.currentGroupDimensions.left===s.left&&l.currentGroupDimensions.width===s.width&&l.currentGroupDimensions.height===s.height&&l.currentGroupDimensions.rotation===s.rotation)return;l.currentGroupDimensions=s}else l&&(l.currentGroupDimensions=s);(new TimelineMax).to(a,0,{y:s.top,x:s.left,width:s.width,height:s.height,rotation:s.rotation})}}})},getGroupItems:s,multiplyActionsToNestedGroups:function(r){for(var i in r)r.hasOwnProperty(i)&&(void 0===r[i].actions&&(r[i].actions=[]),n(i,r).forEach(function(e){void 0===r[i].parentgroups&&(r[i].parentgroups=[]),r[i].parentgroups.push(e.id),void 0!==e.actions&&e.actions.forEach(function(t){t.originaltarget=e.id,r[i].actions.push(JSON.parse(JSON.stringify(t)))})}));return r},addDimPosToGroups:function(t,e,r,i){for(var n in t.groups)if(t.groups.hasOwnProperty(n)){var a=s(n,t),o=prx.toolbox.calculateBox(a.map(function(t){return prx.toolbox.itemDimensions(t,e,r,i)}),t.groups[n].rotation||0,e,r,i);t.groups[n].width=o.width,t.groups[n].height=o.height,t.groups[n].top=o.top,t.groups[n].left=o.left,t.groups[n].rotation=o.rotation}return t.groups},getParentGroups:i}},function(t,e){prx.fonts={},prx.fonts._fonts=[],prx.fonts.loadProjectFonts=function(){function e(){e.done||(prx.crossmsg.send({action:"missed-fonts"}),prx.interface.triggerAppEvent("showToaster",["Missing Fonts","Some fonts used in this project are not available. A default font is displayed instead."]),e.done=!0)}var t=[],r={},s=[],i=[],l=[];$("#custom-font-faces").length<1&&$("html > head").append('<style id="custom-font-faces"></style>'),prx.fonts._fonts.forEach(function(o){o.kitId&&(o.project===prx.project.projectid||prx.spaces)?r[o.kitId]=!0:o.kitId&&o.project!==prx.project.projectid?e():"googlefonts"===o.type?t.push("".concat(o.value,":").concat(o.variants.toString())):"uploadedfonts"===o.type&&(o.variants.forEach(function(t,e){if(o.fonts&&o.fonts[e]){var r=o.fonts[e].guid,i=(t.match(/[0-9]{3}/)||400).toString(),n=(t.match(/[^0-9]+/)||"normal").toString(),a=prx.componentsHelper.getAssetUrl({assetType:"project",fileId:r,isFont:!0,extension:o.fonts[e].ext||"woff",familyId:o.familyGuid});s.push('\n                    @font-face {\n                        font-family: "'.concat(o.value,'";\n                        font-weight: ').concat(i,";\n                        font-style: ").concat(n,";\n                        src: url('").concat(a,"') format('woff');\n                    }")),l.push("font-family:".concat(o.value,";font-weight:").concat(i,";font-style:").concat(n))}}),i.push(o.value))}),$("#custom-font-faces").html(s.join("")),$("body").append('\n        <div style="position: absolute; bottom: -1px; right: -1px; width: 1px; height: 1px; opacity: 0">\n            '.concat(l.map(function(t){return'<span style="'.concat(t,'"></span>')}).join(""),"\n        </div>")),0<t.length&&WebFont.load({classes:!1,events:!0,timeout:15e3,google:{families:t},inactive:function(){},fontinactive:function(){}}),Object.keys(r).forEach(function(t){WebFont.load({classes:!1,events:!0,timeout:15e3,typekit:{id:t},inactive:function(){e()},fontinactive:function(){e()}})}),0<i.length&&WebFont.load({classes:!1,events:!0,timeout:15e3,custom:{families:i},inactive:function(){e()},fontinactive:function(){e()}})}},function(t,e){prx.helper={},prx.helper.blurInputs=function(){$("input:focus, textarea:focus").blur()},prx.helper.closeDropdowns=function(){$(document).trigger("dummy.close-dropdowns")},prx.helper.toggleDropdownOptions=function(t,e,r){t?($(e).removeClass("display-on-top"),$(r).hide()):(prx.helper.closeDropdowns(),$(e).addClass("display-on-top"),$(r).show())},prx.helper.rerenderActivePageWebkitIssue=function(t){},prx.helper.onmobile=function(){var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))},prx.helper.onandroid=function(){return/android/i.test(navigator.userAgent.toLowerCase())},prx.helper.oniphone=function(){return/iphone/i.test(navigator.userAgent.toLowerCase())},prx.helper.onipad=function(){return/ipad/i.test(navigator.userAgent.toLowerCase())}},function(t,e){prx.iniPlayer={},prx.iniPlayer.iniPreLoad=function(){1136==prx.devices[prx.device].portrait[1]&&568==screen.height&&(document.querySelector("meta[name=viewport]").content="width=320.1, minimum-scale="+prx.devices[prx.device].initialscale+", maximum-scale="+prx.devices[prx.device].initialscale+", initial-scale="+prx.devices[prx.device].initialscale+", user-scalable=no, target-densitydpi="+prx.devices[prx.device].targetdensitydpi),prx.iosmobilebrowser=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),prx.orientation._orientation=prx.orientation.get(),prx.orientation.changeBody(prx.orientation._orientation),prx.inProtoApp||(prx.inProtoApp=void 0!==prx.utils.getCookie("appbakerIosWrapper")||void 0!==prx.utils.getCookie("protoAppAndroidWrapper")||prx.mobPlayer),prx.inProtoIOsApp||(prx.inProtoIOsApp=void 0!==prx.utils.getCookie("appbakerIosWrapper")),prx.interface.isInProtoAndroidApp(),prx.inProtoAndroidApp||(prx.inProtoAndroidApp=void 0!==prx.utils.getCookie("protoAppAndroidWrapper")),void 0!==prx.xdata&&(prx.xdata=JSON.stringify(prx.xdata)),prx.youtube.ini()},prx.iniPlayer.iniDocumentLoad=function(){$("#dragarea").css("width",$(window).width()+"px"),$("#dragarea").css("height",$(window).height()+"px"),prx.crossmsg.ini(),prx.statusNavBar.ini(),prx.loading.load(prx.projectsettings.id),prx.showActions.iniShift(),prx.clickEffect.ini(),prx.showActions.flash.ini(),prx.analytics.ini(),prx.navigation.iniScreenNavigation(),prx.variables.initSandbox()}},function(t,e){function c(t){return(c="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})(t)}prx.loading={},prx.loading.imagesToPreload=[],prx.loading.imagesToBase64=[],prx.loading.maskImagesToBase64=[],prx.loading.imagesToBodymovinAnimeData={},prx.loading.load=function(t){var e=t,r=(new Date).getTime();prx.loading.handleSpecialDeviceTypes(),prx.loading.showLoader(),void 0===prx.xdata?prx.spaces?$.post("/project/livepreview/loaddata/?x="+r,{filename:prx.projectsettings.s3b},function(t){prx.loading.iniData(t)}):prx.prto?$.post("/prto/livepreview/data/load/?x="+r,{filename:e,short_cd:prx.projectsettings.v,s3b:prx.projectsettings.s3b,jt:prx.jt},function(t){prx.loading.iniData(t)}):$.post("/editor/data/loadpublished/?x="+r,{filename:e,v:prx.projectsettings.v,s3b:prx.projectsettings.s3b},function(t){prx.loading.iniData(t)}):setTimeout(function(){try{var e=JSON.parse(prx.xdata)}catch(t){e=prx.xdata}prx.loading.iniData(e)},50)},prx.loading.loadDone=function(){if(prx.loading.setStartScreen(),!parent!=window)try{var t={pages:JSON.parse(JSON.stringify(prxy.pages)),symbols:JSON.parse(JSON.stringify(prxy.symbols)),startscreen:prx.navigation._activepage.replace("p-",""),device:prx.devices[prx.device],csrf_token:prx.csrf_token};void 0!==prx.sort&&(t.sort=prx.sort.pages),prx.crossmsg.send({action:"player-ready",data:t})}catch(t){}prx.loading.iniStartScreen();for(var e=0;e<prx.scrollable._scrollableTabbars.length;e++)prx.scrollable.iniTabbar(e)},prx.loading.iniData=function(t){if("string"==typeof inputdata)var e=JSON.parse(t);else e=t;prx.project=e.project,prxy.pages=e.pages,prxy.symbols=e.symbols,prx.templates=e.templates,prx.variables._variables=e.variables,prx.variables.prepare(),void 0!==e.fonts&&(prx.fonts._fonts=e.fonts),void 0!==e.customEasings&&(prx.easing._customEasings=e.customEasings),void 0!==e.sort&&(prx.sort=e.sort);for(var r=0;r<prxy.pages.length;r++)void 0===prxy.pages[r].id?prxy.pages.splice(r,1):prxy.pages[r].id=parseInt(prxy.pages[r].id);for(r=0;r<prxy.symbols.length;r++){void 0===prxy.symbols[r].id?prxy.symbols.splice(r,1):prxy.symbols[r].id=parseInt(prxy.symbols[r].id);for(var i=0;i<prxy.symbols[r].states.length;i++)prxy.symbols[r].states[i].symbolid=prxy.symbols[r].id}for(r=0;r<prx.templates.length;r++)void 0===prx.templates[r].id?prx.templates.splice(r,1):prx.templates[r].id=parseInt(prx.templates[r].id);void 0!==e.v5&&e.v5?prx.v5=e.v5:prx.compatibility.v5.ini(),void 0!==e.v5x11&&e.v5x11?prx.v5x11=e.v5x11:prx.compatibility.responsiveComponents.ini(),void 0!==e.dropboxfs&&e.dropboxfs?prx.dropboxfs=e.dropboxfs:prx.dropboxfs=!1,void 0!==e.richtext&&e.richtext&&(prx.richtext=e.richtext),void 0!==e.iscrolljs&&(prx.compatibility.iscrolljs=e.iscrolljs),void 0!==e.scrolltotop&&(prx.scrolltotop=e.scrolltotop),void 0!==e.dpr&&(prx.responsiveComponents.dpr=e.dpr),void 0!==e.fontStyleCompatibility?prx.fontStyleCompatibility=e.fontStyleCompatibility:prx.compatibility.fontStyleCompatibility.ini(),void 0===e.transition?prx.transition={duration:0,delay:0,easing:"out"}:void 0===e.transition&&void 0!==e.stateTransitionUpgraded?prx.transition={duration:.25,delay:0,easing:"out"}:(prx.transition=JSON.parse(e.transition),prx.utils.isValidUserPreset(prx.transition.easing)&&(prx.transition.userpresetuuid=prx.transition.easing,prx.transition.duration=prx.easing._customEasings[prx.transition.easing].duration,prx.transition.easing=prx.easing._customEasings[prx.transition.easing].easing)),void 0!==e.stateTransitionToMSUpgraded&&e.stateTransitionToMSUpgraded?prx.stateTransitionToMSUpgraded=e.stateTransitionToMSUpgraded:prx.compatibility.stateTransitionsToMs.ini(),void 0!==e.galleryAssetsToStaticV2&&e.galleryAssetsToStaticV2?prx.galleryAssetsToStaticV2=e.galleryAssetsToStaticV2:prx.compatibility.galleryAssetsToStatic.runCompatibility(),"portrait"!=prx.orientation.get()&&void 0===prx.project.startscreenlandscape&&(prx.project.startscreenlandscape=1),prx.mpasset={},void(prx.mpasset._imgs_version=0)!==e._imgs_version&&(prx.mpasset._imgs_version=e._imgs_version),prx.fonts.loadProjectFonts(),prx.loading.initialDataManipulation(),e=null,prx.canvas.ini(),prx.loading.runningLoader()},prx.loading.handleSpecialDeviceTypes=function(){var t=$("#iphoneX-notch-player");if(void 0!==prx.devices[prx.device].showiPhoneXNotch&&prx.devices[prx.device].showiPhoneXNotch){if(prx.helper.onmobile())return void(prx.devices[prx.device].showiPhoneXNotch=!1);if(prx.helper.oniphone()){var e="812"==window.screen.height&&"375"==window.screen.width||"375"==window.screen.height&&"812"==window.screen.width,r="828"==window.screen.height&&"1792"==window.screen.width||"1792"==window.screen.height&&"828"==window.screen.width,i="414"==window.screen.height&&"896"==window.screen.width||"896"==window.screen.height&&"414"==window.screen.width;if(r||e||i)return void(prx.devices[prx.device].showiPhoneXNotch=!1)}if(0<t.length){var n=prx.orientation.getWindowOrientationForMobileDevices();t.removeClass().addClass(prx.orientation._orientation+"-p"+(void 0!==n&&-90==n?"-minus90":""))}}},prx.loading.initialDataManipulation=function(){function r(t,n,a,o){for(var e in void 0!==t.actions&&0<t.actions.length&&$.each(t.actions,function(t,e){prx.quickaudio.recursivelySearchActionForPlayAudio(e),prx.easing.replaceUserPreset(e)}),t.state_transitions)if(t.state_transitions.hasOwnProperty(e))for(var r in t.state_transitions[e])if(t.state_transitions[e].hasOwnProperty(r))for(var i in t.state_transitions[e][r])t.state_transitions[e][r].hasOwnProperty(i)&&prx.easing.replaceUserPreset(t.state_transitions[e][r][i]);t.states.forEach(function(r,i){if(void 0!==r.actions&&0<r.actions.length&&$.each(r.actions,function(t,e){prx.quickaudio.recursivelySearchActionForPlayAudio(e),prx.easing.replaceUserPreset(e)}),r.hasOwnProperty("backgroundImg")&&prx.loading.getAllImages({img:r.backgroundImg},o),void 0!==r.groups)for(var t in r.groups)if(r.groups.hasOwnProperty(t)){if(void 0===r.groups[t].actions)continue;$.each(r.groups[t].actions,function(t,e){prx.quickaudio.recursivelySearchActionForPlayAudio(e),prx.easing.replaceUserPreset(e)})}var e=JSON.parse(r.data);void 0!==e&&0<e.length&&$.each(e,function(t,e){prx.loading.getAllImages(e,o),prx.quickaudio.searchItem(e),prx.easing.searchItem(e),prx.items.addToAllItemsStruct(e,n,a,r.id,i,t),e=prx.groups.movePropsToChildren(e,r.groups)}),r.data=JSON.stringify(e),r.groups=prx.groups.multiplyActionsToNestedGroups(r.groups),r.groups=prx.groups.addDimPosToGroups(r,n,a,i)})}prxy.pages.forEach(function(t,e){r(t,"pages",e)}),prx.templates.forEach(function(t,e){r(t,"templates",e)}),prxy.symbols.forEach(function(t,e){t.vr?r(t,"symbols",e,!0):r(t,"symbols",e)}),prx.quickaudio.preload()},prx.loading.convertToBase64Loader=function(){var s=prx.loading.imagesToBase64.length+prx.loading.maskImagesToBase64.length+prx.loading.imagesToPreload.length+Object.keys(prx.loading.imagesToBodymovinAnimeData).length,l=prx.loading.imagesToPreload.length+Object.keys(prx.loading.imagesToBodymovinAnimeData).length;if(s<=l)return prx.loading.loaderprogress(100,$(".progress-bar")),void setTimeout(function(){prx.loading.hideLoader(),prx.loading.loadDone()},1e3);function t(a,o){var t=new Image;t.crossOrigin="Anonymous",t.addEventListener("load",function(t){l++;var e=Math.round(l/s*100);prx.loading.loaderprogress(e,$(".progress-bar"));var r,i=document.createElement("CANVAS"),n=i.getContext("2d");i.height=this.naturalHeight,i.width=this.naturalWidth,n.drawImage(this,0,0),r=i.toDataURL("image/png"),"VR"==o&&(prx.vr.images[a.fileId]=r),"maskImage"==o&&(prx.mask.images[a.fileId]=r),s<=l&&setTimeout(function(){prx.loading.hideLoader(),prx.loading.loadDone()},1e3)}),t.addEventListener("error",function(t){s<=++l&&setTimeout(function(){prx.loading.hideLoader(),prx.loading.loadDone()},1e3)}),t.src=a.assetURL}for(var e=0;e<prx.loading.imagesToBase64.length;e++){t(JSON.parse(prx.loading.imagesToBase64[e]),"VR")}for(e=0;e<prx.loading.maskImagesToBase64.length;e++){t(JSON.parse(prx.loading.maskImagesToBase64[e]),"maskImage")}setTimeout(function(){$("#loader-wrapper").hasClass("loader-visible")&&(prx.loading.hideLoader(),prx.loading.loadDone(),$('[data-role=page] img:not([src=""])').unbind("load error"))},1e4)},prx.loading.runningLoader=function(){var i=prx.loading.imagesToPreload.length,n=0,a=Object.keys(prx.loading.imagesToBodymovinAnimeData).length,o=0,s=prx.loading.imagesToPreload.length+prx.loading.imagesToBase64.length+prx.loading.maskImagesToBase64.length+a;0==i&&0===a&&(prx.loading.loaderprogress(100,$(".progress-bar")),setTimeout(function(){prx.loading.convertToBase64Loader()},1e3));function t(r){$.get(JSON.parse(prx.loading.imagesToBodymovinAnimeData[r]).assetURL,function(t){"object"==c(t)?prx.bodymovinAnimation.assets[r]=JSON.stringify(t):prx.bodymovinAnimation.assets[r]=t,o++;var e=Math.round((n+o)/s*100);prx.loading.loaderprogress(e,$(".progress-bar")),i<=n&&a<=o&&setTimeout(function(){prx.loading.convertToBase64Loader()},1e3)}).fail(function(){o++})}for(var e in prx.loading.imagesToBodymovinAnimeData)t(e);for(var r=0;r<i;r++){var l=JSON.parse(prx.loading.imagesToPreload[r]),p=$("<img>").bind("load error",function(){n++;var t=Math.round((n+o)/s*100);prx.loading.loaderprogress(t,$(".progress-bar")),i<=n&&a<=o&&setTimeout(function(){prx.loading.convertToBase64Loader()},1e3)});""!==l.crossOrigin&&p.attr("crossOrigin",l.crossOrigin),p.attr("src",l.assetURL)}setTimeout(function(){$("#loader-wrapper").hasClass("loader-visible")&&(prx.loading.convertToBase64Loader(),$('[data-role=page] img:not([src=""])').unbind("load error"))},1e4)},prx.loading.startShowLoader=function(){$("body").addClass("reloading")},prx.loading.startHideLoader=function(){$("body").removeClass("reloading")},prx.loading.showLoader=function(t){$("#loader-wrapper").show(),prx.interface.triggerAppEvent("loaderShown")},prx.loading.hideLoader=function(){$("#loader-wrapper").fadeOut(300,function(){prx.iosmobilebrowser&&(document.body.scrollLeft=0,document.body.scrollTop=0),prx.interface.triggerAppEvent("loaderHidden")})},prx.loading.loaderprogress=function(t,e){e.width(t+"%")},prx.loading.setStartScreen=function(){var t;switch(prx.orientation._orientation){case"portrait":t="p-"+prx.project.startscreen,0==$("#"+t).length&&(t="p-"+prx.project.startscreenlandscape);break;case"landscape":t="p-"+prx.project.startscreenlandscape,0==$("#"+t).length&&(t="p-"+prx.project.startscreen)}prx.projectsettings.initialpageid=prx.interface.getAndroidAppStartScreen(),-1!=prx.projectsettings.initialpageid&&0!=$("#p-"+prx.projectsettings.initialpageid).length&&(t="p-"+prx.projectsettings.initialpageid),""!=window.location.hash&&(t="p-"+window.location.hash.replace("#","")),0==$("#"+t).length&&(t="p-"+prxy.pages[0].id),prx.navigation._activepage=t,prx.navigation._initialPage=prx.navigation._activepage},prx.loading.iniStartScreen=function(){var t=void 0!==prx.navigation._initialPage?prx.navigation._initialPage:prx.navigation._activepage,e=prx.stc.screens.getStructFromId(t),r=prx.orientation.getPage(e);if(prx.navigation.changePage($("#"+t),{transition:"none",changeHash:!1}),prx.analytics.trackPage(e.id),prx.orientation._orientation!=r){if(!prx.embed&&parent!=window)try{prx.crossmsg.send({action:"switch-orientation"})}catch(t){}prx.orientation.change(r)}-1!=prx.projectsettings.initialpageid&&$("#"+prx.navigation._activepage).trigger("orientationchange")},prx.loading.getAllImages=function(t,a){function e(t,e){if(void 0!==t){if(-1<["jpg","jpeg","png","svg","gif"].concat(["json"]).indexOf(t.fileId.substr(t.fileId.lastIndexOf(".")+1))){var r=prx.componentsHelper.getAssetUrl(t),i="";a&&(prx.export2html||(i="anonymous",-1===r.indexOf("access_token=")&&(-1===r.indexOf("?")?r+="?access_token="+prx.assetsAccessToken:r+="&access_token="+prx.assetsAccessToken),r+="&VR=1")),-1<t.fileId.toLowerCase().indexOf(".json")&&(prx.export2html||-1===r.indexOf("access_token=")&&(-1===r.indexOf("?")?r+="?access_token="+prx.assetsAccessToken:r+="&access_token="+prx.assetsAccessToken));var n=JSON.stringify({assetURL:r,crossOrigin:i,fileId:t.fileId});-1==prx.loading.imagesToPreload.indexOf(n)&&(prx.vr.crossOriginUnsupported()&&a&&-1===t.fileId.toLowerCase().indexOf(".gif")?-1===prx.loading.imagesToBase64.indexOf(n)&&prx.loading.imagesToBase64.push(n):void 0!==e&&void 0!==e.type&&-1<["basic_tabbar","basic_tabbar_icon","basic_tabbar_texticon","tabbar_retina","tabbar","material_textfield","material_tabbar_fixed","material_tabbar_segmented_button","ios7_tabbar","basic_buttongroup","basic_buttongroup_horizontal_texticon_right","basic_buttongroup_horizontal_texticon_top","basic_buttongroup_horizontal_icon","basic_buttongroup_vertical_texticon","basic_buttongroup_vertical_icon"].indexOf(e.type)&&prx.export2html?-1===prx.loading.maskImagesToBase64.indexOf(n)&&prx.loading.maskImagesToBase64.push(n):-1<t.fileId.toLowerCase().indexOf(".json")?prx.export2html||void 0===prx.loading.imagesToBodymovinAnimeData[t.fileId]&&(prx.loading.imagesToBodymovinAnimeData[t.fileId]=n):-1===prx.loading.imagesToPreload.indexOf(n)&&prx.loading.imagesToPreload.push(n))}}}for(var r in t)if(t.hasOwnProperty(r))if("object"==c(t[r])&&null!==t[r]&&void 0!==t[r].assetType)e(t[r],t);else{for(var i=0;i<prx.dynamicprops.length;i++)if(void 0!==t[prx.dynamicprops[i]])for(var n=0;n<t[prx.dynamicprops[i]].length;n++)for(var r in t[prx.dynamicprops[i]][n])if(t[prx.dynamicprops[i]][n].hasOwnProperty(r)&&"object"==c(t[prx.dynamicprops[i]][n][r])&&null!==t[prx.dynamicprops[i]][n][r]&&void 0!==t[prx.dynamicprops[i]][n][r].assetType&&e(t[prx.dynamicprops[i]][n][r],t),"actions"===r)for(var o=0;o<t[prx.dynamicprops[i]][n].actions.length;o++)for(var s in t[prx.dynamicprops[i]][n].actions[o])t[prx.dynamicprops[i]][n].actions[o].hasOwnProperty(s)&&"object"==c(t[prx.dynamicprops[i]][n].actions[o][s])&&null!==t[prx.dynamicprops[i]][n].actions[o][s]&&void 0!==t[prx.dynamicprops[i]][n].actions[o][s].assetType&&e(t[prx.dynamicprops[i]][n].actions[o][s],t);for(i=0;i<prx.actions._actionTypes.length;i++)if(void 0!==t[prx.actions._actionTypes[i]])for(n=0;n<t[prx.actions._actionTypes[i]].length;n++)for(var r in t[prx.actions._actionTypes[i]][n])t[prx.actions._actionTypes[i]][n].hasOwnProperty(r)&&"object"==c(t[prx.actions._actionTypes[i]][n][r])&&null!==t[prx.actions._actionTypes[i]][n][r]&&void 0!==t[prx.actions._actionTypes[i]][n][r].assetType&&e(t[prx.actions._actionTypes[i]][n][r],t)}}},function(t,e){prx.navigation={},prx.navigation._pagehash=!0,prx.navigation._gobackstack={screens:[],loadscreens:[],states:{}},prx.navigation._activepage="p-1",prx.navigation.changePage=function(t,e){"out"!==e.overlay&&t.css({opacity:0}),void 0===e&&(e=[]);var r={transition:"none",changeHash:prx.navigation._pagehash,allowSamePageTransition:!0,overlay:!1,transitionid:prx.utils.getGuid()};$.extend(r,e);var i=$(".prx-page-active");if(!r.allowSamePageTransition&&void 0!==i.get(0)&&i.get(0).id==t.get(0).id)return i.trigger("pagebeforehide"),t.trigger("pagebeforeshow"),$(window).trigger("pagebeforechange"),t.css({opacity:1}),i.trigger("pagehide"),t.trigger("pageshow"),$(window).trigger("pagechange"),!0;i.find("input:focus").trigger("blur"),prx.navigation._activepage=t.get(0).id;var n=prx.currentPlayerStatus.helper.getSelfAndAncestorsFromDomId(t.get(0).id);switch(prx.currentPlayerStatus.helper.setDataAttribute("currentScreenId",n[0].id),"in"!==r.overlay&&i.trigger("pagebeforehide"),"out"!==r.overlay&&t.trigger("pagebeforeshow"),$(window).trigger("pagebeforechange"),i.addClass("prx-page-transitioning prx-page-transitioning-out prx-page-transitioning-"+r.transitionid),t.addClass("prx-page-transitioning prx-page-transitioning-in prx-page-transitioning-"+r.transitionid),0!=r.overlay&&(i.addClass(function(){return"prx-page-transitioning-overlay-"+r.overlay+"-source"}),t.addClass(function(){return"prx-page-transitioning-overlay-"+r.overlay+"-target"})),r.transition){case"slide":case"slide-overlay":prx.screenTransitions.slide(i,t,r);break;case"slideback":case"slideback-overlay":prx.screenTransitions.slideBack(i,t,r);break;case"slideup":case"slideup-overlay":prx.screenTransitions.slideUp(i,t,r);break;case"slidedown":case"slidedown-overlay":prx.screenTransitions.slideDown(i,t,r);break;case"slide-overlay-apple-watch":prx.screenTransitions.slideAppleWatch(i,t,r);break;case"slideback-overlay-apple-watch":prx.screenTransitions.slideBackAppleWatch(i,t,r);break;case"show-modal-apple-watch":prx.screenTransitions.showModalAppleWatch(i,t,r);break;case"remove-modal-apple-watch":prx.screenTransitions.removeModalAppleWatch(i,t,r);break;case"fade":prx.screenTransitions.fade(i,t,r);break;case"pop":prx.screenTransitions.popIn(i,t,r);break;case"popout":prx.screenTransitions.popOut(i,t,r);break;case"flip":prx.screenTransitions.flip(i,t,r);break;case"turn":prx.screenTransitions.turnOut(i,t,r);break;case"turnin":prx.screenTransitions.turnIn(i,t,r);break;case"flow":prx.screenTransitions.flow(i,t,r);break;case"flowiOS8":prx.screenTransitions.flowiOS8(i,t,r);break;case"apple-watch-menuIn":prx.screenTransitions.menuInWatchOS(i,t,r);break;case"apple-watch-menuOut":prx.screenTransitions.menuOutWatchOS(i,t,r);break;case"apple-watch-notificationIn":prx.screenTransitions.notificationInWatchOS(i,t,r);break;default:t.css({opacity:1}),prx.navigation.pageChanged(i,t,r)}},prx.navigation.pageChanged=function(t,e,r){if(t.removeClass("prx-page-active prx-page-transitioning prx-page-transitioning-out prx-page-transitioning-overlay-in-source prx-page-transitioning-overlay-out-source prx-page-transitioning-"+r.transitionid),e.addClass("prx-page-active").removeClass("prx-page-transitioning prx-page-transitioning-in prx-page-transitioning-overlay-in-target prx-page-transitioning-overlay-out-target prx-page-transitioning-"+r.transitionid),void 0!==t.get(0)&&"in"!=r.overlay){var i=0;prx.allowstatusbar&&"1"==prx.canvas._statusbars[t.get(0).id.replace("p-","")].statusbar&&(i=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[t.get(0).id.replace("p-","")].orientation]),prx.currentPlayerStatus.helper.set(t.attr("id"),{top:i,left:0}),(new TimelineMax).to(t,0,{y:i,x:0})}prx.navigation._activepage=e.get(0).id;var n=prx.currentPlayerStatus.helper.getSelfAndAncestorsFromDomId(e.get(0).id);if(prx.currentPlayerStatus.helper.setDataAttribute("currentScreenId",n[0].id),"in"!==r.overlay&&t.trigger("pagehide"),"out"!==r.overlay&&e.trigger("pageshow"),r.changeHash&&(window.location.hash="#"+prx.navigation._activepage.replace("p-","")),$(window).trigger("pagechange"),!prx.embed&&parent!=window)try{prx.crossmsg.send({action:"highlight-page",data:{pageid:prx.navigation._activepage.replace("p-","")}})}catch(t){}if(prx.interface.triggerAppEvent("pageChanged",[prx.navigation._activepage.replace("p-","")]),prx.scrolltotop)try{prx.crossmsg.send({action:"scroll-to-top"})}catch(t){}prx.bodymovinAnimation.loadBodymovinPageAnimations(e.selector)},prx.navigation.iniScreenNavigation=function(){$(document).keydown(function(t){if(void 0===t.originalEvent||void 0===t.originalEvent.target||void 0===t.originalEvent.target.tagName||"input"!==t.originalEvent.target.tagName.toLowerCase()&&"textarea"!==t.originalEvent.target.tagName.toLowerCase()){switch(t.which){case 37:prx.crossmsg.send({action:"go-to-previous-screen"});break;case 39:prx.crossmsg.send({action:"go-to-next-screen"});break;default:return}t.preventDefault()}})},prx.navigation.pushToBackStack=function(t,e,r,i,n){prx.navigation._gobackstack[n].push({pageid:t,transition:e,duration:r,easing:i}),50<=prx.navigation._gobackstack[n].length&&prx.navigation._gobackstack[n].shift()}},function(t,e){prx.orientation={},prx.orientation._orientation="portrait",prx.orientation.get=function(){if(void 0!==window.orientation&&parent==window)var t=0==window.orientation?"portrait":"landscape";else{var e=document.documentElement;t=e&&e.clientWidth/e.clientHeight<1.001?"portrait":"landscape"}return prx.devices[prx.device][t+"_applies"]||(t="portrait"==t?"landscape":"portrait"),t},prx.orientation.getWindowOrientationForMobileDevices=function(){var t=0;return void 0!==window.orientation&&parent==window&&(t=window.orientation),t},prx.orientation.changeBody=function(t){void 0===t&&(t=prx.orientation.get()),prx.orientation._orientation=t,$("body").width(prx.devices[prx.device][t][0]).height(prx.devices[prx.device][t][1]),prx.loading.handleSpecialDeviceTypes()},prx.orientation.change=function(t){if(prx.vr.VRExists())return!1;if(void 0!==t&&t==prx.orientation._orientation)return prx.loading.handleSpecialDeviceTypes(),!1;prx.orientation.changeBody(t);try{var r=prx.navigation._activepage;if(void 0===$._data($("#"+r).get(0),"events")||void 0!==$._data($("#"+r).get(0),"events")&&void 0===$._data($("#"+r).get(0),"events").changeorientation){var e=prx.items.helper.getPageIdFromId(r),i=prxy.pages[prx.stc.screens.getIndexFromId(e)];$("#"+r).html(""),prx.stc.screens.reloadResponsive(i,t),prx.bodymovinAnimation.loadBodymovinPageAnimations("#p-"+i.id)}else jQuery.each($._data($("#"+r).get(0),"events"),function(t,e){jQuery.each(e,function(t,e){"changeorientation"==e.type&&$("#"+r).trigger("changeorientation")})})}catch(t){}return!0},prx.orientation.getPage=function(t,e){void 0===e&&(e=0);var r=prx.devices[prx.device].defaultOrientation;return void 0!==t.orientation&&""!=t.orientation||(t.orientation=prx.devices[prx.device].defaultOrientation),r=t.orientation,prx.devices[prx.device][r+"_applies"]||(r="portrait"==r?"landscape":"portrait"),r},prx.orientation.check=function(){"onorientationchange"in window||prx.orientation.get()!=prx.orientation._orientation&&$(window).trigger("orientationchange")},prx.orientation.getDims=function(t,e,r){if("symbols"==t)return[prxy[t][e].states[r].dimensions[0],prxy[t][e].states[r].dimensions[1]];var i=prxy[t][e].orientation,n=0,a=0,o=0;prx.projectsettings.statusbarapplies&&"1"==prxy[t][e].statusbar&&(n=1,prx.devices[prx.device]["statusbarheight"+i]),prx.projectsettings.navigationbarapplies&&"1"==prxy[t][e].navigationbar&&(o=1,a=prx.devices[prx.device]["navigationbarheight"+i]);var s=parseInt(n)*prx.devices[prx.device]["statusbarheight"+i]+parseInt(o)*prx.devices[prx.device]["navigationbarheight"+i],l=prx.devices[prx.device]["normal"+i][0],p=prx.devices[prx.device]["normal"+i][1]-s;return[parseInt(l),parseInt(p),parseInt(a)]}},function(t,e){prx.overlay={},prx.overlay.render=function(t){var e=t,r=prx.canvas._statusbars[t.substr(3)],i=0,n=prx.devices[prx.device][r.orientation][1];prx.allowstatusbar&&"1"==r.statusbar&&(n-=i=prx.devices[prx.device]["statusbarheight"+r.orientation]),$overlay=$("#overlay"),$(e).find('[data-mpoverlay="1"]').each(function(){var t=$(this).offset().top-i,e=$(this).offset().left;$(this).clone().find("input").attr("id",function(){return $(this).attr("id")+"-overlay"}).attr("name",function(){return $(this).attr("name")+"-overlay"}).end().find("label").attr("for",function(){return $(this).attr("for")+"-overlay"}).end().appendTo($overlay),(new TimelineMax).to("#overlay  #"+this.id,0,{x:e,y:t})}),$overlay.css("top",i+"px").height(n).show()}},function(t,e){prx.quickaudio={},prx.quickaudio.audios={},prx.quickaudio.preload=function(){$.each(prx.quickaudio.audios,function(t,e){var r='<audio id="'+e.name.replace(/\s+/g,"-")+'" preload="auto">';r+='<source src="'+prx.componentsHelper.getAssetUrl(e.mp3)+'" type="audio/mpeg">',r+='<source src="'+prx.componentsHelper.getAssetUrl(e.wav)+'" type="audio/x-wav">',r+='<source src="'+prx.componentsHelper.getAssetUrl(e.aac)+'" type="audio/x-aac"></audio>',$("#quick-audios").append(r)})},prx.quickaudio.recursivelySearchActionForPlayAudio=function(t){("play-sound-effect"==t.actionId||"play-audio"==t.actionId&&"library"==t.sourceId)&&($.isEmptyObject(t.sound)||(prx.quickaudio.audios[t.sound.name]=t.sound)),void 0!==t.callbackAction&&prx.quickaudio.recursivelySearchActionForPlayAudio(t.callbackAction)},prx.quickaudio.searchItem=function(r){$.each(prx.actions._actionTypes,function(t,e){e in r&&$.each(r[e],function(t,e){prx.quickaudio.recursivelySearchActionForPlayAudio(e)})}),$.each(prx.dynamicprops,function(t,e){e in r&&"string"!=typeof r[e]&&$.each(r[e],function(t,r){$.each(prx.actions._actionTypes,function(t,e){e in r&&$.each(r[e],function(t,e){prx.quickaudio.recursivelySearchActionForPlayAudio(e)})})})})}},function(t,e){prx.responsiveComponents={}},function(t,e){var a;prx.scale=(a={},{get:function e(t,r,i){if(void 0===a[r]&&(a[r]={}),-1!==t.indexOf("group")||i)return void 0===a[r][t]?1:a[r][t];var n=function(t){if(-1!==t.indexOf("group"))return[];var e=t.split("-box-");return e.pop(),e=e.join("-box-"),$(t).attr("class").split(" ").filter(function(t){return-1!==t.indexOf("group")}).map(function(t){return e+" ."+t})}(t).map(function(t){return e(t,r)});return n.push(void 0===a[r][t]?1:a[r][t]),n.reduce(function(t,e){return t*e},1)},set:function(t,e,r){void 0===a[e]&&(a[e]={});var i=a[e][t];return(a[e][t]=r)!==i},same:function(t,e,r){return void 0===a[e]&&(a[e]={}),a[e][t]===r}})},function(t,e){prx.screenTransitions={},prx.screenTransitions.reverseMapping={none:"none",slide:"slideback",slideback:"slide",slideup:"slidedown",slidedown:"slideup","slide-overlay":"slideback-overlay","slideback-overlay":"slide-overlay","slideup-overlay":"slidedown-overlay","slidedown-overlay":"slideup-overlay","slide-overlay-apple-watch":"slideback-overlay-apple-watch","slideback-overlay-apple-watch":"slide-overlay-apple-watch","show-modal-apple-watch":"remove-modal-apple-watch","remove-modal-apple-watch":"show-modal-apple-watch",pop:"popout",popout:"pop",fade:"fade",flip:"flip",turnin:"turn",turn:"turnin",flow:"flow",flowiOS8:"flowiOS8","apple-watch-menuIn":"apple-watch-menuOut","apple-watch-menuOut":"apple-watch-menuIn","apple-watch-notificationIn":"apple-watch-notificationIn"},prx.screenTransitions.slide=function(t,e,r){var i=r.duration,n=r.easing;void 0===i&&(i=600),void 0===n&&(n="Expo.easeOut"),n=prx.easing.get(n),-1<r.transition.indexOf("-overlay")&&0!=r.overlay&&(r.transition=r.transition.replace("-overlay","")),e.addClass("prx-page-active"),-1<r.transition.indexOf("-overlay")&&(e.addClass("prx-page-above prx-page-transition-overlay-top"),t.addClass("prx-page-below")),"in"!=r.overlay&&(new TimelineMax).to("#"+t.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{x:-1*t.width()*(-1<r.transition.indexOf("-overlay")?.5:1),ease:n})).call(function(){e.removeClass("prx-page-above prx-page-transition-overlay-top"),t.removeClass("prx-page-below"),prx.navigation.pageChanged(t,e,r)}).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{x:0,overwrite:0})),"out"!=r.overlay&&(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{x:t.width()})).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1})).to("#"+e.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{x:0,ease:n})).call(function(){r.overlay&&(e.removeClass("prx-page-above prx-page-transition-overlay-top"),t.removeClass("prx-page-below"),prx.navigation.pageChanged(t,e,r))})},prx.screenTransitions.slideBack=function(t,e,r){var i=r.duration,n=r.easing;void 0===i&&(i=600),void 0===n&&(n="Expo.easeOut"),n=prx.easing.get(n),-1<r.transition.indexOf("-overlay")&&0!=r.overlay&&(r.transition=r.transition.replace("-overlay","")),e.addClass("prx-page-active"),-1<r.transition.indexOf("-overlay")&&(t.addClass("prx-page-above prx-page-transition-overlay-top"),e.addClass("prx-page-below")),"in"!=r.overlay&&(new TimelineMax).to("#"+t.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{x:e.width(),ease:n})).call(function(){e.removeClass("prx-page-below"),t.removeClass("prx-page-above prx-page-transition-overlay-top"),prx.navigation.pageChanged(t,e,r)}).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{x:0,overwrite:0})),"out"!=r.overlay&&(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{x:-1*e.width()*(-1<r.transition.indexOf("-overlay")?.5:1)})).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1})).to("#"+e.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{x:0,ease:n})).call(function(){r.overlay&&(e.removeClass("prx-page-below"),t.removeClass("prx-page-above prx-page-transition-overlay-top"),prx.navigation.pageChanged(t,e,r))})},prx.screenTransitions.slideAppleWatch=function(t,e,r){var i=r.duration,n=r.easing;void 0===i&&(i=600),void 0===n&&(n="Expo.easeOut"),n=prx.easing.get(n),e.addClass("prx-page-active prx-page-below"),t.addClass("prx-page-above"),"in"!=r.overlay&&(new TimelineMax).to("#"+t.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{x:-t.width(),ease:n})).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{x:0})),"out"!=r.overlay&&(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:.1,scale:.8})).to("#"+e.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{scale:1,opacity:1,ease:n})).call(function(){prx.navigation.pageChanged(t,e,r),e.removeClass("prx-page-below prx-page-above"),t.removeClass("prx-page-below prx-page-above")})},prx.screenTransitions.slideBackAppleWatch=function(t,e,r){var i=r.duration,n=r.easing;void 0===i&&(i=600),void 0===n&&(n="Expo.easeOut"),n=prx.easing.get(n),e.addClass("prx-page-active prx-page-above"),t.addClass("prx-page-below"),"in"!=r.overlay&&(new TimelineMax).to("#"+t.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:0,scale:.8,ease:n})).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1,scale:1})),"out"!=r.overlay&&(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{x:-1*e.width()})).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1})).to("#"+e.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{x:0,ease:n})).call(function(){prx.navigation.pageChanged(t,e,r),e.removeClass("prx-page-below prx-page-above"),t.removeClass("prx-page-below prx-page-above")})},prx.screenTransitions.slideUp=function(t,e,r){var i=r.duration,n=r.easing;void 0===i&&(i=600),void 0===n&&(n="Expo.easeOut"),n=prx.easing.get(n),-1<r.transition.indexOf("-overlay")&&0!=r.overlay&&(r.transition=r.transition.replace("-overlay",""));var a=0,o=0;prx.allowstatusbar&&1==prx.canvas._statusbars[t.attr("id").replace("p-","")].statusbar&&(a=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[t.attr("id").replace("p-","")].orientation]),prx.allowstatusbar&&1==prx.canvas._statusbars[e.attr("id").replace("p-","")].statusbar&&(o=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[e.attr("id").replace("p-","")].orientation]),e.addClass("prx-page-active"),-1<r.transition.indexOf("-overlay")&&(e.addClass("prx-page-above prx-page-transition-overlay-top"),t.addClass("prx-page-below")),"in"!=r.overlay&&(new TimelineMax).to("#"+t.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{y:-1*t.height()*(-1<r.transition.indexOf("-overlay")?.5:1),ease:n})).call(function(){t.removeClass("prx-page-below"),e.removeClass("prx-page-above prx-page-transition-overlay-top"),prx.navigation.pageChanged(t,e,r)}).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{y:a,overwrite:0})),"out"!=r.overlay&&(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{y:t.height()})).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1})).to("#"+e.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{y:o,ease:n})).call(function(){r.overlay&&(t.removeClass("prx-page-below"),e.removeClass("prx-page-above prx-page-transition-overlay-top"),prx.navigation.pageChanged(t,e,r))})},prx.screenTransitions.slideDown=function(t,e,r){var i=r.duration,n=r.easing;void 0===i&&(i=600),void 0===n&&(n="Expo.easeOut"),n=prx.easing.get(n),-1<r.transition.indexOf("-overlay")&&0!=r.overlay&&(r.transition=r.transition.replace("-overlay",""));var a=0,o=0;prx.allowstatusbar&&1==prx.canvas._statusbars[t.attr("id").replace("p-","")].statusbar&&(a=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[t.attr("id").replace("p-","")].orientation]),prx.allowstatusbar&&1==prx.canvas._statusbars[e.attr("id").replace("p-","")].statusbar&&(o=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[e.attr("id").replace("p-","")].orientation]),e.addClass("prx-page-active"),-1<r.transition.indexOf("-overlay")&&(t.addClass("prx-page-above prx-page-transition-overlay-top"),e.addClass("prx-page-below")),"in"!=r.overlay&&(new TimelineMax).to("#"+t.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{y:e.height(),ease:n})).call(function(){e.removeClass("prx-page-below"),t.removeClass("prx-page-above prx-page-transition-overlay-top"),prx.navigation.pageChanged(t,e,r)}).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{y:a,overwrite:0})),"out"!=r.overlay&&(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{y:-1*e.height()*(-1<r.transition.indexOf("-overlay")?.5:1)})).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1})).to("#"+e.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{y:o,ease:n})).call(function(){r.overlay&&(e.removeClass("prx-page-below"),t.removeClass("prx-page-above prx-page-transition-overlay-top"),prx.navigation.pageChanged(t,e,r))})},prx.screenTransitions.showModalAppleWatch=function(e,r,i){r.css({opacity:1});var t=i.duration,n=i.easing;void 0===t&&(t=600),void 0===n&&(n="Expo.easeOut"),n=prx.easing.get(n);for(var a=0,o=e.find('div[class*="box pos type-applewatch-statusbar"]:not(.hidden)'),s=[],l=0;l<o.length;l++)$("#"+o[l].id).attr("data-opacity",$("#"+o[l].id).css("opacity")),s.push($("#"+o[l].id));prx.allowstatusbar&&1==prx.canvas._statusbars[e.attr("id").replace("p-","")].statusbar&&prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[e.attr("id").replace("p-","")].orientation],prx.allowstatusbar&&1==prx.canvas._statusbars[r.attr("id").replace("p-","")].statusbar&&(a=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[r.attr("id").replace("p-","")].orientation]),r.addClass("prx-page-active"),"in"!=i.overlay&&(r.addClass("prx-page-above prx-page-transition-overlay-top"),e.addClass("prx-page-below"),(new TimelineMax).to(s,t/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:0,ease:n})).call(function(){e.removeClass("prx-page-below"),r.removeClass("prx-page-above prx-page-transition-overlay-top"),prx.navigation.pageChanged(e,r,i);for(var t=0;t<o.length;t++)$("#"+o[t].id).css("opacity",$("#"+o[t].id).attr("data-opacity"))})),"out"!=i.overlay&&(new TimelineMax).to("#"+r.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{y:e.height()})).to("#"+r.get(0).id,t/1e3,Object.assign({},prx.basicGreensockOptions,{y:a,ease:n}))},prx.screenTransitions.removeModalAppleWatch=function(t,e,r){e.css({opacity:1});var i=r.duration,n=r.easing;void 0===i&&(i=600),void 0===n&&(n="Expo.easeOut"),n=prx.easing.get(n);var a=0;prx.allowstatusbar&&1==prx.canvas._statusbars[t.attr("id").replace("p-","")].statusbar&&prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[t.attr("id").replace("p-","")].orientation],prx.allowstatusbar&&1==prx.canvas._statusbars[e.attr("id").replace("p-","")].statusbar&&(a=prx.devices[prx.device]["statusbarheight"+prx.canvas._statusbars[e.attr("id").replace("p-","")].orientation]),e.addClass("prx-page-active"),prx.underlay.render("#"+$("#"+e.get(0).id).attr("id")),"in"!=r.overlay&&(new TimelineMax).to("#"+t.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{y:1*e.height(),ease:n})).call(function(){e.removeClass("prx-page-below"),t.removeClass("prx-page-above prx-page-transition-overlay-top"),prx.navigation.pageChanged(t,e,r)}),"out"!=r.overlay&&(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{y:-.5*e.height(),ease:n,opacity:0})).to("#"+e.get(0).id,i/1e3*.9,Object.assign({},prx.basicGreensockOptions,{y:a,ease:n,opacity:1})).call(function(){prx.underlay.changeVisibility("#"+$("#"+e.get(0).id).attr("id"))})},prx.screenTransitions.popIn=function(t,e,r){if("out"!=r.overlay){var i=r.duration,n=r.easing;void 0===i&&(i=300),void 0===n&&(n="in-out"),n=prx.easing.get(n),e.addClass("prx-page-active prx-page-above"),t.addClass("prx-page-below"),(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{scale:.8,opacity:.8})).to("#"+e.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{scale:1,opacity:1,ease:n})).call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below"),e.removeClass("prx-page-above")})}else prx.screenTransitions.popOut(t,e,r)},prx.screenTransitions.popOut=function(t,e,r,i){if(e.css({opacity:1}),"in"!=r.overlay){var n=r.duration,a=r.easing;void 0===n&&(n=300),void 0===a&&(a="in-out"),void 0===i&&(i=1.8),a=prx.easing.get(a),e.addClass("prx-page-active prx-page-below"),t.addClass("prx-page-above"),(new TimelineMax).to("#"+t.get(0).id,n/1e3,Object.assign({},prx.basicGreensockOptions,{scale:i,opacity:.2,ease:a})).call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-above"),e.removeClass("prx-page-below")}).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{scale:1,opacity:1,overwrite:0}))}else prx.screenTransitions.popIn(t,e,r)},prx.screenTransitions.fade=function(t,e,r){var i=r.duration,n=r.easing;void 0===i&&(i=300),void 0===n&&(n="in-out"),n=prx.easing.get(n),"out"!=r.overlay?(e.addClass("prx-page-active prx-page-above"),t.addClass("prx-page-below"),(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:0})).to("#"+e.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:1,ease:n})).call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below"),e.removeClass("prx-page-above")})):(e.addClass("prx-page-active prx-page-below"),t.addClass("prx-page-above"),(new TimelineMax).to("#"+t.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{opacity:0,ease:n})).call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-above"),e.removeClass("prx-page-below")}).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1,overwrite:0})))},prx.screenTransitions.flip=function(t,e,r){var i=r.duration,n="linear";void 0===i&&(i=500),n=prx.easing.get(n),"out"==r.overlay?(e.addClass("prx-page-active prx-page-below prx-page-transition-flip"),t.addClass("prx-page-above prx-page-transition-flip")):(e.addClass("prx-page-active prx-page-above prx-page-transition-flip"),t.addClass("prx-page-below prx-page-transition-flip")),$("body").addClass("dont-do-chrome-fix"),"in"!=r.overlay&&((new TimelineMax).to("#"+t.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{rotationY:-180,ease:n})).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:0}),i/2e3).call(function(){r.overlay&&(prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below prx-page-above prx-page-transition-flip"),e.removeClass("prx-page-below prx-page-above prx-page-transition-flip"),$("body").removeClass("dont-do-chrome-fix"))}).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{rotationY:0,overwrite:0,opacity:1})),(new TimelineMax).to("#"+t.get(0).id,i/1e3/2,Object.assign({},prx.basicGreensockOptions,{scale:.9,ease:n})).to("#"+t.get(0).id,i/1e3/2,Object.assign({},prx.basicGreensockOptions,{scale:1,ease:n}))),"out"!=r.overlay&&((new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{rotationY:180})).to("#"+e.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{rotationY:0,ease:n})).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1}),i/2e3).call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below prx-page-above prx-page-transition-flip"),e.removeClass("prx-page-below prx-page-above prx-page-transition-flip"),$("body").removeClass("dont-do-chrome-fix")}),(new TimelineMax).to("#"+e.get(0).id,i/1e3/2,Object.assign({},prx.basicGreensockOptions,{scale:.9,ease:n})).to("#"+e.get(0).id,i/1e3/2,Object.assign({},prx.basicGreensockOptions,{scale:1,ease:n})))},prx.screenTransitions.turnOut=function(t,e,r){if("in"!=r.overlay){var i=r.duration,n=r.easing;void 0===i&&(i=400),void 0===n&&(n="in-out"),n=prx.easing.get(n),e.addClass("prx-page-active prx-page-below"),t.addClass("prx-page-above prx-page-transition-turn"),$("body").addClass("dont-do-chrome-fix"),(new TimelineMax).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{transformPerspective:1e3})).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1})).to("#"+t.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{rotationY:-90,ease:n})).call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-above prx-page-transition-turn"),e.removeClass("prx-page-below"),$("body").removeClass("dont-do-chrome-fix")}).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{rotationY:0,overwrite:0}))}else prx.screenTransitions.turnIn(t,e,r)},prx.screenTransitions.turnIn=function(t,e,r){if("out"!=r.overlay){var i=r.duration,n=r.easing;void 0===i&&(i=400),void 0===n&&(n="in-out"),n=prx.easing.get(n),e.addClass("prx-page-active prx-page-above prx-page-transition-turn"),t.addClass("prx-page-below"),$("body").addClass("dont-do-chrome-fix"),(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{transformPerspective:1e3,rotationY:-90})).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1})).to("#"+e.get(0).id,i/1e3,Object.assign({},prx.basicGreensockOptions,{rotationY:0,ease:n})).call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below"),e.removeClass("prx-page-above prx-page-transition-turn"),$("body").removeClass("dont-do-chrome-fix")})}else prx.screenTransitions.turnOut(t,e,r)},prx.screenTransitions.flowiOS8=function(t,e,r){var i=r.duration,n="linear";void 0===i&&(i=500),n=prx.easing.get(n),"in"!=r.overlay?(e.addClass("prx-page-active prx-page-below prx-page-transition-flowiOS8"),t.addClass("prx-page-above prx-page-transition-flowiOS8")):(e.addClass("prx-page-active prx-page-above prx-page-transition-flowiOS8"),t.addClass("prx-page-below prx-page-transition-flowiOS8")),r.overlay&&(e.addClass("prx-page-transition-flowiOS8-overlay"),t.addClass("prx-page-transition-flowiOS8-overlay")),"in"!=r.overlay&&(new TimelineMax).to("#"+t.get(0).id,i/1e3*.15,Object.assign({},prx.basicGreensockOptions,{scale:.98,x:t.width()/20,ease:n})).to("#"+t.get(0).id,i/1e3*.45,Object.assign({},prx.basicGreensockOptions,{scale:.93,x:t.width()/3,ease:n})).to("#"+t.get(0).id,i/1e3*.4,Object.assign({},prx.basicGreensockOptions,{scale:1,x:t.width(),ease:n})).call(function(){r.overlay&&(prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below prx-page-above prx-page-transition-flow"),e.removeClass("prx-page-below prx-page-above prx-page-transition-flow"))}),"out"!=r.overlay&&(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{scale:.98,x:-t.width()})).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1})).to("#"+e.get(0).id,i/1e3*.45,Object.assign({},prx.basicGreensockOptions,{scale:.93,x:-t.width()+t.width()/3,ease:n,delay:i/1e3*.15})).to("#"+e.get(0).id,i/1e3*.42,Object.assign({},prx.basicGreensockOptions,{scale:1,x:0,ease:n})).call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below prx-page-above prx-page-transition-flowiOS8"),e.removeClass("prx-page-below prx-page-above prx-page-transition-flowiOS8")})},prx.screenTransitions.flow=function(t,e,r){var i=r.duration,n="linear";void 0===i&&(i=500),n=prx.easing.get(n),"in"!=r.overlay?(e.addClass("prx-page-active prx-page-below prx-page-transition-flow"),t.addClass("prx-page-above prx-page-transition-flow")):(e.addClass("prx-page-active prx-page-above prx-page-transition-flow"),t.addClass("prx-page-below prx-page-transition-flow")),r.overlay&&(e.addClass("prx-page-transition-flow-overlay"),t.addClass("prx-page-transition-flow-overlay")),"in"!=r.overlay&&(new TimelineMax).to("#"+t.get(0).id,i/1e3*.25,Object.assign({},prx.basicGreensockOptions,{scale:.7,ease:n})).to("#"+t.get(0).id,i/1e3*.2,Object.assign({},prx.basicGreensockOptions,{x:-t.width(),ease:n,delay:i/1e3*.15})).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{delay:i/1e3*.4})).call(function(){r.overlay&&(prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below prx-page-above prx-page-transition-flow"),e.removeClass("prx-page-below prx-page-above prx-page-transition-flow"))}).to("#"+t.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{x:0,scale:1,overwrite:0})),"out"!=r.overlay&&(new TimelineMax).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{x:t.width(),scale:.7})).to("#"+e.get(0).id,0,Object.assign({},prx.basicGreensockOptions,{opacity:1})).to("#"+e.get(0).id,i/1e3*.2,Object.assign({},prx.basicGreensockOptions,{x:0,ease:n,delay:i/1e3*.4})).to("#"+e.get(0).id,i/1e3*.25,Object.assign({},prx.basicGreensockOptions,{x:0,scale:1,ease:n,delay:i/1e3*.15})).call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below prx-page-above prx-page-transition-flow"),e.removeClass("prx-page-below prx-page-above prx-page-transition-flow")})},prx.screenTransitions.menuInWatchOS=function(t,e,r){e.css({opacity:1});var i="ease-out";i=prx.easing.get(i),e.addClass("prx-page-active prx-page-above"),t.addClass("prx-page-below");var n=new TimelineMax,a=(new TimelineMax,new TimelineMax);new TimelineMax;switch(e.find(".menu-container .menu-listitem").length){case 2:e.find(".menu-container .menu-listitem[data-dynamic-property-index=0]").addClass("menu-up"),e.find(".menu-container .menu-listitem[data-dynamic-property-index=1]").addClass("menu-down");break;case 3:e.find(".menu-container .menu-listitem[data-dynamic-property-index=0]").addClass("menu-diag-up-left"),e.find(".menu-container .menu-listitem[data-dynamic-property-index=1]").addClass("menu-diag-up-right"),e.find(".menu-container .menu-listitem[data-dynamic-property-index=2]").addClass("menu-down");break;case 4:e.find(".menu-container .menu-listitem[data-dynamic-property-index=0]").addClass("menu-diag-up-left"),e.find(".menu-container .menu-listitem[data-dynamic-property-index=1]").addClass("menu-diag-up-right"),e.find(".menu-container .menu-listitem[data-dynamic-property-index=2]").addClass("menu-diag-down-left"),e.find(".menu-container .menu-listitem[data-dynamic-property-index=3]").addClass("menu-diag-down-right")}a.to("#"+t.get(0).id,.3,Object.assign({},prx.basicGreensockOptions,{scale:.6,ease:i})),n.set("#"+e.get(0).id,{scale:2,opacity:0}).set("#"+e.get(0).id,{opacity:1,onStart:function(){t.addClass("menu-in"),e.find(".menu-container .menu-listitem").removeClass("menu-up menu-down menu-diag-up-left menu-diag-up-right menu-diag-down-left menu-diag-down-right")}},"+=0.12").to("#"+e.get(0).id,.18,Object.assign({},prx.basicGreensockOptions,{scale:1,ease:i})).call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below prx-page-above"),e.removeClass("prx-page-below prx-page-above")})},prx.screenTransitions.menuOutWatchOS=function(t,e,r){e.css({opacity:1});var i="ease-out";i=prx.easing.get(i),e.removeClass("menu-in"),e.addClass("prx-page-active prx-page-below"),t.addClass("prx-page-above");new TimelineMax;var n=new TimelineMax;new TimelineMax;switch(t.find(".menu-container .menu-listitem").length){case 2:t.find(".menu-container .menu-listitem[data-dynamic-property-index=0]").addClass("menu-up"),t.find(".menu-container .menu-listitem[data-dynamic-property-index=1]").addClass("menu-down");break;case 3:t.find(".menu-container .menu-listitem[data-dynamic-property-index=0]").addClass("menu-diag-up-left"),t.find(".menu-container .menu-listitem[data-dynamic-property-index=1]").addClass("menu-diag-up-right"),t.find(".menu-container .menu-listitem[data-dynamic-property-index=2]").addClass("menu-down");break;case 4:t.find(".menu-container .menu-listitem[data-dynamic-property-index=0]").addClass("menu-diag-up-left"),t.find(".menu-container .menu-listitem[data-dynamic-property-index=1]").addClass("menu-diag-up-right"),t.find(".menu-container .menu-listitem[data-dynamic-property-index=2]").addClass("menu-diag-down-left"),t.find(".menu-container .menu-listitem[data-dynamic-property-index=3]").addClass("menu-diag-down-right")}n.to("#"+e.get(0).id,.2,Object.assign({},prx.basicGreensockOptions,{scale:1,ease:i,onStart:function(){t.addClass("menu-out")}}),"+=0.05").call(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below prx-page-above menu-out"),e.removeClass("prx-page-below prx-page-above"),t.find(".menu-container .menu-listitem").removeClass("menu-up menu-down menu-diag-up-left menu-diag-up-right menu-diag-down-left menu-diag-down-right")})},prx.screenTransitions.notificationInWatchOS=function(t,e,r){e.css({opacity:1});e.addClass("prx-page-active prx-page-above prx-page-transition-notificationInWatchOS prx-page-transition-notificationInWatchOS-notification-in"),t.addClass("prx-page-below prx-page-transition-notificationInWatchOS"),e.find(".notification-container").addClass("notification-in notification-load"),setTimeout(function(){e.removeClass("prx-page-transition-notificationInWatchOS-notification-in").find(".notification-container").removeClass("notification-in"),setTimeout(function(){prx.navigation.pageChanged(t,e,r),t.removeClass("prx-page-below prx-page-above"),e.removeClass("prx-page-below prx-page-above"),e.find(".notification-container").removeClass("notification-load")},450)},50)}},function(module,exports){prx.scrollable={},prx.scrollable._scrollables={},prx.scrollable._scrollableTabbars=[],prx.scrollable._materialScrollableTabbars=[],prx.scrollable._materialScrollableTabbarContainers=[],prx.scrollable._scrollPositions={},prx.scrollable.scrolls={},prx.scrollable.refresh=function(t){$(t+", "+t+" .box").each(function(){if(void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&$("#"+this.id+"-inner").is(":visible")){if(prx.scrollable._scrollables[this.id+"-inner"].refresh(),prx.helper.onmobile()&&(prx.scrollable._scrollables[this.id+"-inner"].options.click=0==prx.scrollable.getNumOfScrollableParents(this.id)),$(this).hasClass("type-material-tabbar-scrollable"))prx.scrollable.materialFocusTab(this.id,$(this).find(".material-tabbar-scrollable-list-item-input:checked").val(),0),prx.scrollable.materialSetActiveTabIndicator(this.id);else if(void 0!==prx.scrollable._materialScrollableTabbarContainers[this.id]){var t=$("#"+prx.scrollable._materialScrollableTabbarContainers[this.id]);0<t.length&&prx.scrollable.materialFocusContainerPage(this.id,t.find(".material-tabbar-scrollable-list-item-input:checked").val(),0)}var e="box-"+this.id.split("box-").last(),r=prx.scrollable._scrollables[this.id+"-inner"].options.probeType,i=!1,n=$("#"+this.id).parents("[data-state-id]").first().attr("data-state-id"),a=prx.items.getFromAllItemStruct(e,n);if(3!==r&&a&&void 0!==a.actions)for(var o=0;o<a.actions.length;o++)if("containerscroll"==a.actions[o].type||"containerscrollto"==a.actions[o].type){i=!0;break}if(3!==r&&!i)for(o=0;o<prx.scrollable._scrollableTabbars.length;o++){prx.scrollable._scrollableTabbars[o].container+"-"+prx.scrollable._scrollableTabbars[o].linked+"-inner"==this.id+"-inner"&&(i=!0)}void 0!==prx.scrollable._materialScrollableTabbarContainers[this.id+"-inner"]&&(3!==r&&(i=!0),prx.scrollable._scrollables[this.id+"-inner"].options.momentum=!1,prx.scrollable._scrollables[this.id+"-inner"].options.bounce=!1),3!==r&&i&&(prx.scrollable._scrollables[this.id+"-inner"].options.probeType=3,prx.scrollable.setOnScrollEventForProbType3(this.id,a))}})},prx.scrollable.enable=function(t){$(t+", "+t+" .box").each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].enable()})},prx.scrollable.disable=function(t){$(t+", "+t+" .box").each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].disable()})},prx.scrollable.checkIfInTransition=function(t){var e=!1;return $(t+", "+t+" .box").each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].isInTransition&&(e=!0)}),e},prx.scrollable.endTransitions=function(t,e){if(void 0===t&&(t="#"+prx.navigation._activepage),prx.helper.onmobile())e=$.Event("touchend");else e=$.Event("mouseup");e.target=$("body").get(0),$(t+", "+t+" .box").each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].initiated&&prx.scrollable._scrollables[this.id+"-inner"]._end(e)})},prx.scrollable.iniContainer=function(item,_containerid){if(0!=$("#"+_containerid+"-inner").length){var isAppleWatchCrown=void 0!==prx.devices[prx.device]&&"crown"==prx.devices[prx.device].scrollType||void 0!==prx.deviceExtraParams&&"crown"==prx.deviceExtraParams.scrollType;if(void 0!==prx.scrollable._scrollables[_containerid+"-inner"]&&(prx.scrollable._scrollables[_containerid+"-inner"].destroy(),prx.scrollable._scrollables[_containerid+"-inner"]=null,delete prx.scrollable._scrollables[_containerid+"-inner"]),void 0!==item.scroll&&""!=item.scroll&&"none"!=item.scroll){var _scrollX=!1,_scrollY=!1,_scrollbars=!1,_snap=eval(item.scrollsnap);switch(item.scrollToX=item.scrollToX||0,item.scrollToY=item.scrollToY||0,item.scroll){case"omni":_scrollX=!0,_scrollY=!0,_scrollbars=void 0===item.scrollbars?eval(item.hscrollbar)||eval(item.vscrollbar):prx.scrollable.getIsScrollbarsVisibleValue(item.scrollbars);break;case"horizontal":_scrollX=!0,_scrollbars=void 0===item.scrollbars?eval(item.hscrollbar):prx.scrollable.getIsScrollbarsVisibleValue(item.scrollbars);break;case"vertical":_scrollY=!0,_scrollbars=void 0===item.scrollbars?eval(item.vscrollbar):prx.scrollable.getIsScrollbarsVisibleValue(item.scrollbars)}var _probeType=0,_deceleration=.001;if(void 0!==item.actions)for(var i=0;i<item.actions.length;i++)"containerscroll"!=item.actions[i].type&&"containerscrollto"!=item.actions[i].type||(_probeType=3);for(var i=0;i<prx.scrollable._scrollableTabbars.length;i++){var _linked=prx.scrollable._scrollableTabbars[i].container+"-"+prx.scrollable._scrollableTabbars[i].linked+"-inner";_linked==_containerid+"-inner"&&(_probeType=3)}if(void 0!==prx.scrollable._materialScrollableTabbarContainers[_containerid]&&(_probeType=3,item.momentum=!1,item.bounce=!1),$.isArray(_snap)&&(_snap=!0),void 0===prx.scrollable._scrollables[_containerid+"-inner"]){if(void 0!==item.lockdirection&&"omni"==item.scroll||(item.lockdirection=!0),void 0===item.bounce&&(item.bounce=!0),1==isAppleWatchCrown&&void 0!==item.watchOSscrollbars&&1==item.watchOSscrollbars&&void 0!==item.scroll&&"vertical"==item.scroll)var resizeScrollbarsVal=!1;else var resizeScrollbarsVal=!0;var fadeScrollbarsVal=prx.scrollable.getShouldScrollbarsFadeValue(item.scrollbars);$("#"+_containerid+"-inner").off("touchmove.debug","input, textarea").on("touchmove.debug","input, textarea",function(t){t.preventDefault()}),prx.scrollable._scrollables[_containerid+"-inner"]=new IScroll("#"+_containerid+"-inner",{startX:"omni"==item.scroll||"horizontal"==item.scroll?0-parseInt(item.scrollToX):0,startY:"omni"==item.scroll||"vertical"==item.scroll?0-parseInt(item.scrollToY):0,scrollX:_scrollX,scrollY:_scrollY,snap:_snap,useTransition:!0,resizeScrollbars:resizeScrollbarsVal,fadeScrollbars:fadeScrollbarsVal,click:!1,zoom:eval(item.pinchzoom),momentum:eval(item.momentum),bounce:item.bounce,bounceLock:!0,freeScroll:!eval(item.lockdirection),directionLockThreshold:0,scrollbars:_scrollbars,mouseWheel:!0,probeType:_probeType,snapThreshold:.25,deceleration:_deceleration,twoWayScroll:"omni"!=item.scroll,interactiveScrollbars:!0,disablePointer:!0}),$("#"+_containerid+"-inner").on("click",function(t){"input"!=$(t.target).prop("tagName").toLowerCase()&&"textarea"!=$(t.target).prop("tagName").toLowerCase()&&prx.helper.blurInputs()}),3==_probeType&&prx.scrollable.setOnScrollEventForProbType3(_containerid,item),prx.scrollable._scrollables[_containerid+"-inner"].on("scrollStart",function(){var t="#"+_containerid;void 0===prx.variables._triggerData[t]&&(prx.variables._triggerData[t]={}),$(t).parents(".box").add($(t).find(".box")).each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].disable()})}),prx.scrollable._scrollables[_containerid+"-inner"].on("scrollEnd",function(){var _targetid=_containerid+"-inner",_triggerId="#"+_containerid,_r={};void 0===prx.variables._triggerData[_triggerId]&&(prx.variables._triggerData[_triggerId]={}),$(_triggerId).parents(".box").add($(_triggerId).find(".box")).each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].enable()}),eval(item.scrollsnap)?(prx.compatibility.iscrolljs?(_r.x=-1*this.x,_r.y=-1*this.y):(_r.x=this.x,_r.y=this.y),_r.currentpagex=this.currentPage.pageX+1,_r.currentpagey=this.currentPage.pageY+1,_r.currentpagexindex=this.currentPage.pageX,_r.currentpageyindex=this.currentPage.pageY,prx.variables._triggerData[_triggerId].containerpagechange=_r,prx.variables._triggerData[_triggerId].containerpageenter=_r,prx.variables._triggerData[_triggerId].containerscrollend=_r,$("#"+_containerid).trigger("containerpagechange",this),$("#"+_containerid).trigger("containerpageenter.page"+this.currentPage.pageX+"-"+this.currentPage.pageY,this)):(prx.compatibility.iscrolljs?(_r.x=-1*this.x,_r.y=-1*this.y):(_r.x=this.x,_r.y=this.y),_r.currentpagex=1,_r.currentpagey=1,_r.currentpagexindex=0,_r.currentpageyindex=0,prx.variables._triggerData[_triggerId].containerscrollend=_r),$("#"+_containerid).trigger("containerscrollend",this),prx.currentPlayerStatus.helper.set("#"+_containerid,"scrollToX",parseInt(_r.x)),prx.currentPlayerStatus.helper.set("#"+_containerid,"scrollToY",parseInt(_r.y)),void 0!==prx.scrollable._materialScrollableTabbarContainers[_containerid]&&prx.scrollable.materialFocusTab(prx.scrollable._materialScrollableTabbarContainers[_containerid],this.currentPage.pageX)}),prx.scrollable._scrollables[_containerid+"-inner"].on("scrollCancel",function(){$("#"+_containerid).parents(".box").each(function(){void 0!==prx.scrollable._scrollables[this.id+"-inner"]&&prx.scrollable._scrollables[this.id+"-inner"].enable()})});for(var i=0;i<prx.scrollable._scrollableTabbars.length;i++){var _linked=prx.scrollable._scrollableTabbars[i].container+"-"+prx.scrollable._scrollableTabbars[i].linked+"-inner";if(_linked==_containerid+"-inner"){var _tabbar=prx.scrollable._scrollableTabbars[i].container+"-"+prx.scrollable._scrollableTabbars[i].id+"-inner";prx.scrollable._scrollables[_linked].options.linkedTabbar=_tabbar,prx.scrollable._scrollables[_linked].goToPage(Number(prx.scrollable._scrollableTabbars[i].start),0,0),void 0!==prx.scrollable._scrollables[_tabbar]&&prx.scrollable._scrollables[_tabbar].goToPage(Number(prx.scrollable._scrollableTabbars[i].start),0,0),prx.scrollable._scrollables[_linked].on("scroll",function(){var t=this.x;prx.scrollable._scrollables[this.options.linkedTabbar].scrollTo(t/2,0,0,!1)}),$(prx.scrollable._scrollables[_linked].wrapper).on("mouseup touchend",function(){prx.scrollable._scrollables[prx.scrollable._scrollables[this.id].options.linkedTabbar].scrollTo(prx.scrollable._scrollables[prx.scrollable._scrollables[this.id].options.linkedTabbar].pages[prx.scrollable._scrollables[this.id].currentPage.pageX][0].x,0,200,!1)});break}}}}}},prx.scrollable.iniTabbar=function(t){var e=prx.scrollable._scrollableTabbars[t].container+"-"+prx.scrollable._scrollableTabbars[t].id+"-inner",r=prx.scrollable._scrollableTabbars[t].container+"-"+prx.scrollable._scrollableTabbars[t].linked+"-inner";void 0!==prx.scrollable._scrollables[e]&&(prx.scrollable._scrollables[e].destroy(),prx.scrollable._scrollables[e]=null),prx.scrollable._scrollables[e]=new IScroll("#"+e,{scrollX:!0,scrollY:!1,probeType:3,scrollbars:!1,useTransition:!0,momentum:!1,snap:"li",linkedContainer:r,twoWayScroll:!0}),$(prx.scrollable._scrollables[e].wrapper).on("mouseup touchend",function(){void 0!==prx.scrollable._scrollables[prx.scrollable._scrollables[e].options.linkedContainer]&&prx.scrollable._scrollables[prx.scrollable._scrollables[this.id].options.linkedContainer].goToPage(prx.scrollable._scrollables[this.id].currentPage.pageX,0,200)}),prx.scrollable._scrollables[e].on("scroll",function(){if(void 0!==prx.scrollable._scrollables[this.options.linkedContainer]){var t=this.x;prx.scrollable._scrollables[this.options.linkedContainer].scrollTo(2*t,0,0,!1)}}),prx.scrollable._scrollables[e].goToPage(Number(prx.scrollable._scrollableTabbars[t].start),0,0),$("#"+e).hammer(),prx.actions.hammer("#"+e,"tap")},prx.scrollable.materialIniTabbar=function(e,r){var i=r?r+"-"+e.id:e.id;if(void 0!==prx.allItems[e.linkedContainer]){prx.scrollable._materialScrollableTabbars[e.id]={container:r,linked:e.linkedContainer,start:e.selected};var n=i+"-inner";prx.scrollable._materialScrollableTabbarContainers[r+"-"+e.linkedContainer]=r+"-"+e.id;var t=$("#"+i).parents("[data-state-id]").first().attr("data-state-id"),a=prx.items.getFromAllItemStruct(e.linkedContainer,t);if(0==a)return!1;$("#"+i).find(".material-tabbar-scrollable-list-item-input:checked").parents("li").width();prx.scrollable.iniContainer(a,r+"-"+a.id),void 0!==prx.scrollable._scrollables[n]&&(prx.scrollable._scrollables[n].destroy(),prx.scrollable._scrollables[n]=null),prx.scrollable._scrollables[n]=new IScroll("#"+n,{scrollX:!0,scrollY:!1,probeType:3,scrollbars:!1,useTransition:!0,momentum:!0,twoWayScroll:!0,bounce:!1,linked:e.linkedContainer}),prx.scrollable._scrollables[n].on("scrollStart",function(t){$(this.scroller).addClass("scrolling")}),prx.scrollable._scrollables[n].on("scrollEnd",function(t){$(this.scroller).removeClass("scrolling"),prx.currentPlayerStatus.helper.set("#"+i,"scrollToX",parseInt(prx.scrollable._scrollables[n].x))}),prx.scrollable._scrollables[n].on("scroll",function(t){prx.scrollable.materialSetActiveTabIndicator(i)}),$("#"+i+" .material-tabbar-scrollable-list-item-label").hammer().on("tap",function(){$("#"+i+" .material-tabbar-scrollable-list-item-input[id="+$(this).attr("for")+"]").prop("checked",!0);var t=$("#"+i).find(".material-tabbar-scrollable-list-item-input:checked").val();prx.scrollable.materialFocusTab(i,t),prx.scrollable.materialFocusContainerPage(r+"-"+e.linkedContainer,t)}),prx.actions.hammer("#"+i+" .material-tabbar-scrollable-list-item-label","tap"),$("#"+i+" .material-tabbar-scrollable-list-item-input").on("change",function(){var t=$(this).val();prx.scrollable.materialFocusTab(i,t),prx.scrollable.materialFocusContainerPage(r+"-"+e.linkedContainer,t)}),prx.scrollable.materialFocusTab(i,e.selected),prx.scrollable.materialFocusContainerPage(r+"-"+e.linkedContainer,e.selected,0)}},prx.scrollable.materialIntermittentMoveTab=function(t,e,r){e=parseInt(e);var i=0<r?e+1:e-1,n=$("#"+t+" li").eq(e),a=$("#"+t+" li").eq(i);if(0!=a.length){var o=n.width(),s=a.width(),l=prx.scrollable.materialGetTabLeft(t,e),p=prx.scrollable.materialGetTabLeft(t,i),c=prx.scrollable.materialGetRealTabLeft(t,e),u=prx.scrollable.materialGetRealTabLeft(t,i),h=-(n.position().left-(l-p*r));h=prx.scrollable.materialCheckBounds(t,h),$("#"+t+" .material-tabbar-scrollable-indicator").css({width:o+(s-o)*Math.abs(r)+"px",left:c+(u-c)*Math.abs(r)+"px"}),prx.scrollable._scrollables[t+"-inner"].scrollBy(h,0,0)}},prx.scrollable.materialGetTabLeft=function(t,e){var r=$("#"+t+" li").eq(e).width();return($("#"+t).width()-r)/2},prx.scrollable.materialGetRealTabLeft=function(t,e){var r=$("#"+t+" li").eq(e),i=r.width(),n=$("#"+t).width(),a=(n-i)/2,o=$("#"+t+" ul").width(),s=r.offset().left-prx.scrollable._scrollables[t+"-inner"].x;return s<a?s:o-s<n-(n-i)/2?r.offset().left:a},prx.scrollable.materialCheckBounds=function(t,e){return void 0!==prx.scrollable._scrollables[t+"-inner"]&&(0<prx.scrollable._scrollables[t+"-inner"].x+e&&(e=-prx.scrollable._scrollables[t+"-inner"].x),prx.scrollable._scrollables[t+"-inner"].x+e<prx.scrollable._scrollables[t+"-inner"].maxScrollX&&(e=prx.scrollable._scrollables[t+"-inner"].maxScrollX-prx.scrollable._scrollables[t+"-inner"].x),e)},prx.scrollable.materialFocusTab=function(t,e,r){if(void 0===r&&(r=400),void 0===prx.scrollable._scrollables[t+"-inner"])return!1;var i=$("#"+t+" li").eq(e);i.find("input").prop("checked",!0);var n=-(i.position().left-prx.scrollable.materialGetTabLeft(t,e));n=prx.scrollable.materialCheckBounds(t,n),prx.scrollable._scrollables[t+"-inner"].scrollBy(n,0,r)},prx.scrollable.materialSetActiveTabIndicator=function(t,e){void 0===e&&(e=$("#"+t).find(".material-tabbar-scrollable-list-item-input:checked").val());var r=$("#"+t+" li").eq(e),i=r.position().left;$("#"+t+" .material-tabbar-scrollable-indicator").css({width:r.width()+"px",left:i+"px"}),prx.currentPlayerStatus.helper.set(t,"selected",e)},prx.scrollable.materialFocusContainerPage=function(t,e,r){void 0===r&&(r=400),void 0!==prx.scrollable._scrollables[t+"-inner"]&&prx.scrollable._scrollables[t+"-inner"].goToPage(e,0,r)},prx.scrollable.getNumOfScrollableParents=function(t){for(var e=t,r=0;0==/^p-\d+$/.test(e);)e=e.substring(0,e.lastIndexOf("box")-1),void 0!==prx.scrollable._scrollables[e+"-inner"]&&r++;return r},prx.scrollable.setOnScrollEventForProbType3=function(_containerid,_item){prx.scrollable._scrollables[_containerid+"-inner"].off("scroll"),prx.scrollable._scrollables[_containerid+"-inner"].on("scroll",function(){var _targetid=_containerid+"-inner",_triggerId="#"+_containerid,_r={};if(0!==prx.actions.scrolltos.length){var x=-1*this.x,y=-1*this.y;if(void 0!==prx.scrollable.scrolls[_containerid]){var _getScrolls=function(e,r,i,n){return prx.actions.scrolltos.filter(function(t){return t.dir===e&&t.val>=r&&t.val<=i&&t.item==n})},_triggerActions=function(t){t.forEach(function(t){$("#"+_containerid).trigger("containerscrollto"+t.namespace,this)})},diffX=x-prx.scrollable.scrolls[_containerid].x,diffY=y-prx.scrollable.scrolls[_containerid].y;if(0<diffX){var max=x,min=x-diffX,scrolls=_getScrolls("horizontali",min,max,"#"+_containerid);_triggerActions(scrolls)}else{var max=x-diffX,min=x,scrolls=_getScrolls("horizontald",min,max,"#"+_containerid);_triggerActions(scrolls)}if(0<diffY){var max=y,min=y-diffY,scrolls=_getScrolls("verticali",min,max,"#"+_containerid);_triggerActions(scrolls)}else{var max=y-diffY,min=y,scrolls=_getScrolls("verticald",min,max,"#"+_containerid);_triggerActions(scrolls)}}else prx.scrollable.scrolls[_containerid]={};prx.scrollable.scrolls[_containerid].x=x,prx.scrollable.scrolls[_containerid].y=y}if(void 0===prx.variables._triggerData[_triggerId]&&(prx.variables._triggerData[_triggerId]={}),eval(_item.scrollsnap)?(prx.compatibility.iscrolljs?(_r.x=-1*this.x,_r.y=-1*this.y):(_r.x=this.x,_r.y=this.y),_r.currentpagex=this.currentPage.pageX+1,_r.currentpagey=this.currentPage.pageY+1,_r.currentpagexindex=this.currentPage.pageX,_r.currentpageyindex=this.currentPage.pageY):(prx.compatibility.iscrolljs?(_r.x=-1*this.x,_r.y=-1*this.y):(_r.x=this.x,_r.y=this.y),_r.currentpagex=1,_r.currentpagey=1,_r.currentpagexindex=0,_r.currentpageyindex=0),prx.variables._triggerData[_triggerId].containerscroll=_r,$("#"+_containerid).trigger("containerscroll",this),eval(_item.scrollsnap)&&void 0!==prx.scrollable._materialScrollableTabbarContainers[_containerid]){var x=this.x;prx.scrollable.materialIntermittentMoveTab(prx.scrollable._materialScrollableTabbarContainers[_containerid],this.currentPage.pageX,(this.currentPage.x-x)/this.wrapperWidth)}})},prx.scrollable.getIsScrollbarsVisibleValue=function(t){switch(t){case!1:case"OFF":return!1;case!0:case"FADE":case"ALWAYS":return!0}},prx.scrollable.getShouldScrollbarsFadeValue=function(t){switch(t){case!1:case"OFF":case"ALWAYS":return!1;case!0:case"FADE":return!0}}},function(module,exports){prx.showActions={},prx.showActions._shiftShowingActions=!1,prx.showActions._flashActions=!0,prx.showActions._shiftKeyDown=!1,prx.showActions.on=function(t){var e=prx.stc.screens.getIndexFromId(prx.navigation._activepage.replace("p-","")),r=prx.states.getActivePageActiveStates(),i=(prxy.pages[e].actions||[]).filter(function(t){return"keydown"===t.type&&($.isArray(t.charCode)&&16==t.charCode[0]||!$.isArray(t.charCode)&&16==t.charCode)}).length,n=(prxy.pages[e].states[prx.stc.helper.getStateIndexFromId(r.pages,"pages",e)].actions||[]).filter(function(t){return"statekeydown"===t.type&&($.isArray(t.charCode)&&16==t.charCode[0]||!$.isArray(t.charCode)&&16==t.charCode)}).length,a=prxy.symbols.filter(function(t){return r.symbols.hasOwnProperty(t.id)}).map(function(e){return e.states.filter(function(t){return-1<r.symbols[e.id].indexOf(t.id)}).map(function(t){return(t.actions||[]).filter(function(t){return"statekeydown"===t.type&&($.isArray(t.charCode)&&16==t.charCode[0]||!$.isArray(t.charCode)&&16==t.charCode)}).length}).reduce(function(t,e){return t+e},0)}).reduce(function(t,e){return t+e},0);i||n||a||(prx.showActions.show(t),prx.showActions._shiftShowingActions=!0,prx.crossmsg.send({action:"show-actions",data:{activeStateIds:prx.states.getActivePageActiveStates()}}))},prx.showActions.off=function(t){prx.showActions.hide(),prx.showActions._shiftShowingActions=!1,prx.crossmsg.send({action:"hide-actions"})},prx.showActions.show=function(t){void 0===t&&(t=!1);var e=t?"action-highlight-simple-visible":"action-highlight-visible";$(".action-highlight").addClass(e)},prx.showActions.hide=function(){$(".action-highlight").removeClass("action-highlight-visible action-highlight-simple-visible")},prx.showActions.iniShift=function(){if(!prx.export2html&&!prx.embed&&!prx.helper.onmobile()&&parent!=window){var e={};$(document).keydown(function(t){if(16==t.which||t.metaKey)if(e[t.which]=!0,e[16]&&-1!=navigator.appVersion.indexOf("Mac")&&t.metaKey&&!$("input,textarea").is(":focus"))try{prx.showActions.off()}catch(t){}else if(e[16]&&!$("input,textarea").is(":focus"))try{prx.showActions.on()}catch(t){}}).keyup(function(t){if(16==t.which){e={};try{prx.showActions.off()}catch(t){}}})}},prx.showActions.flash={},prx.showActions.flash.ini=function(){if(prx.showActions._flashActions=prx.projectsettings.flashactions,"1"!=prx.export2html&&!prx.embed){var flashactions=prx.kvs.get(prx.showActions.flash.getKVSName());null!==flashactions&&(prx.showActions._flashActions=eval(flashactions))}prx.showActions._flashActions&&prx.showActions.flash.enable(!1)},prx.showActions.flash.enable=function(t){void 0===t&&(t=!0),prx.showActions._flashActions=!0,t&&"1"!=prx.export2html&&!prx.embed&&prx.prto&&prx.kvs.set(prx.showActions.flash.getKVSName(),prx.showActions._flashActions),$("body").hammer().on("tap.flashactions",function(t){"mbd"===$(t.target).attr("id")&&setTimeout(prx.showActions.flash.flash,20)})},prx.showActions.flash.disable=function(){prx.showActions._flashActions=!1,"1"!=prx.export2html&&!prx.embed&&prx.prto&&prx.kvs.set(prx.showActions.flash.getKVSName(),prx.showActions._flashActions),$("body").off("tap.flashactions")},prx.showActions.flash.flash=function(){!prx.showActions._flashActions||prx.actions.justtapped||prx.showActions._shiftShowingActions||(prx.showActions.show(!0),setTimeout(function(){prx.showActions.hide()},350)),prx.actions.justtapped=!1},prx.showActions.flash.getKVSName=function(){return prx.spaces?"flashactions_spaces":prx.prto?"flashactions_"+prx.projectsettings.v:"flashactions_"+prx.projectsettings.id},prx.showActions.addRemoveJustTapped=function(){prx.actions.justtapped=!0,setTimeout(function(){prx.actions.justtapped=!1},50)}},function(t,e){prx.states={},prx.states._timelines={},prx.states._changes={},prx.states.getChangesBetweenStates=function(t,e,r,i){if(void 0===r&&(r=prx.getPageTemplateSymbolType()),void 0===i&&(i=prx.getPageTemplateSymbolIndex()),void 0!==prx.states._changes[t+":"+e])return JSON.parse(JSON.stringify(prx.states._changes[t+":"+e]));var n=[],a=prx.stc.helper.getStateIndexFromId(t,r,i),o=prx.stc.helper.getStateIndexFromId(e,r,i);if(-1==a||-1==o)return!1;switch(r){case"pages":case"templates":if(prx.gradients.prxToCss(prxy[r][i].states[a].background)!==prx.gradients.prxToCss(prxy[r][i].states[o].background)||prxy[r][i].states[a].template.stateid!=prxy[r][i].states[o].template.stateid){var s="pages"==r?{type:"page-properties",id:"current-page",changes:{}}:{type:"template-properties",id:"current-page-template",changes:{}};prx.gradients.prxToCss(prxy[r][i].states[a].background)!==prx.gradients.prxToCss(prxy[r][i].states[o].background)&&(s.changes.background=[prxy[r][i].states[a].background,prxy[r][i].states[o].background]),prxy[r][i].states[a].template.stateid!=prxy[r][i].states[o].template.stateid&&(s.changes.templatestateid=[prxy[r][i].states[a].template.stateid,prxy[r][i].states[o].template.stateid]),s.changes_order=Object.keys(s.changes).sort(prx.states.sortChanges),n.push(s)}break;case"symbols":if(prxy[r][i].states[a].dimensions[0]!=prxy[r][i].states[o].dimensions[0]||prxy[r][i].states[a].dimensions[1]!=prxy[r][i].states[o].dimensions[1]||prx.gradients.prxToCss(prxy[r][i].states[a].background)!==prx.gradients.prxToCss(prxy[r][i].states[o].background)){s={type:"container-properties",id:"current-container",changes:{}};prxy[r][i].states[a].dimensions[0]!=prxy[r][i].states[o].dimensions[0]&&(s.changes.width=[prxy[r][i].states[a].dimensions[0],prxy[r][i].states[o].dimensions[0]]),prxy[r][i].states[a].dimensions[1]!=prxy[r][i].states[o].dimensions[1]&&(s.changes.height=[prxy[r][i].states[a].dimensions[1],prxy[r][i].states[o].dimensions[1]]),prx.gradients.prxToCss(prxy[r][i].states[a].background)!==prx.gradients.prxToCss(prxy[r][i].states[o].background)&&(s.changes.background=[prxy[r][i].states[a].background,prxy[r][i].states[o].background]),s.changes_order=Object.keys(s.changes).sort(prx.states.sortChanges),n.push(s)}}var l={opacity:[],visible:[]};if(JSON.stringify(prxy[r][i].states[a].groups)!=JSON.stringify(prxy[r][i].states[o].groups)){for(var p in prxy[r][i].states[o].groups)if(void 0===prxy[r][i].states[a].groups[p])n.push({type:"new-group",id:"group-"+p,group:prxy[r][i].states[o].groups[p],opacity:[0,prxy[r][i].states[o].groups[p].opacity],visible:[0,prxy[r][i].states[o].groups[p].visible]}),l.opacity.push(p),l.visible.push(p);else if(prxy[r][i].states[a].groups[p].opacity!=prxy[r][i].states[o].groups[p].opacity||prxy[r][i].states[a].groups[p].visible!=prxy[r][i].states[o].groups[p].visible){var c={};prxy[r][i].states[a].groups[p].opacity!=prxy[r][i].states[o].groups[p].opacity&&(c.opacity=[prxy[r][i].states[a].groups[p].opacity,prxy[r][i].states[o].groups[p].opacity],l.opacity.push(p)),prxy[r][i].states[a].groups[p].visible!=prxy[r][i].states[o].groups[p].visible&&(c.visible=[prxy[r][i].states[a].groups[p].opacity,prxy[r][i].states[o].groups[p].visible],l.visible.push(p)),n.push(Object.assign({type:"changed-group",id:"group-"+p,group:prxy[r][i].states[o].groups[p]},c))}for(var p in prxy[r][i].states[a].groups)void 0===prxy[r][i].states[o].groups[p]&&(n.push({type:"removed-group",id:"group-"+p,group:prxy[r][i].states[a].groups[p],opacity:[prxy[r][i].states[a].groups[p].opacity,0],visible:[prxy[r][i].states[a].groups[p].visible,0]}),l.opacity.push(p),l.visible.push(p))}var u=prxy[r][i].states[a].data,h=prxy[r][i].states[o].data;u=JSON.parse(u),h=JSON.parse(h);for(var d=[],f=[],m=0;m<u.length;m++)d.push(u[m].id);for(m=0;m<h.length;m++)f.push(h[m].id);if(d.toString()!=f.toString()){if(n.push({type:"reordered-components",new_order:f.toString(),old_order:d.toString()}),d.slice(0).sort().toString()!=f.slice(0).sort().toString()){for(m=0;m<d.length;m++)if(-1==f.indexOf(d[m])){(c={}).opacity=[d[m].opacity,0];var g=Object.keys(c).sort(prx.states.sortChanges);n.push({type:"removed-component",id:d[m],item:u[m],componentType:u[m].type,changes:c,changes_order:g}),d.splice(m,1),m--}for(m=0;m<f.length;m++)if(-1==d.indexOf(f[m]))for(y=0;y<h.length;y++)if(h[y].id==f[m]){(c={}).opacity=[0,h[y].opacity];g=Object.keys(c).sort(prx.states.sortChanges);var v=h[y];v.opacity=0,n.push({type:"new-component",id:f[m],componentType:h[y].type,item:v,changes:c,changes_order:g}),f.splice(m,1),m--;break}}for(m=0;m<u.length;m++)void 0!==u[m].zindex&&delete u[m].zindex;for(m=0;m<h.length;m++)void 0!==h[m].zindex&&delete h[m].zindex}for(m=0;m<n.length;m++)!0===Array.isArray(n[m].opacity)&&void 0===n[m].opacity[1]&&(n[m].opacity[1]=1),!0===Array.isArray(n[m].visible)&&void 0===n[m].visible[1]&&(n[m].visible[1]=!0);for(m=0;m<u.length;m++)for(var y=0;y<h.length;y++)if(h[y].id==u[m].id){function x(t,e){for(var r=0;r<e.parentgroups.length;r++)if(-1!==t.indexOf(e.parentgroups[r]))return!0;return!1}var b=jsondiffpatch.diff(u[m],h[y]);if(void 0!==b||"symbols"==r&&JSON.stringify(prxy[r][i].states[a].dimensions)!=JSON.stringify(prxy[r][i].states[o].dimensions)||x(l.opacity,h[y])||x(l.visible,h[y])){for(var _ in null==b&&(b={}),$.each(b,function(t,e){b[t]=[u[m][t],h[y][t]]}),b)b.hasOwnProperty(_)&&$.isArray(b[_])&&("string"==typeof b[_][0]&&"number"==typeof b[_][1]&&parseFloat(b[_][0])==b[_][1]||"string"==typeof b[_][1]&&"number"==typeof b[_][0]&&parseFloat(b[_][1])==b[_][0])&&delete b[_];var w=prx.items.getRealDimsAndPos(u[m],r,i,a),S=prx.items.getRealDimsAndPos(h[y],r,i,o);if(void 0!==b.wtype&&delete b.wtype,w[0]!=S[0]?b.width=[w[0],S[0]]:void 0!==b.width&&delete b.width,void 0!==b.htype&&delete b.htype,w[1]!=S[1]?b.height=[w[1],S[1]]:void 0!==b.height&&delete b.height,void 0!==b.hpos&&delete b.hpos,w[2]!=S[2]?b.left=[w[2],S[2]]:void 0!==b.left&&delete b.left,void 0!==b.vpos&&delete b.vpos,w[3]!=S[3]?b.top=[w[3],S[3]]:void 0!==b.top&&delete b.top,void 0!==b.visible&&(0==b.visible[1]?b.visible=[u[m].opacity,0]:b.visible=[0,h[y].opacity]),(u[m].group!=h[y].group||x(l.opacity,h[y])||x(l.visible,h[y]))&&(u[m].group==h[y].group&&!x(l.visible,h[y])||(0==h[y].visible?b.visible=[u[m].opacity,0]:b.visible=[0,h[y].opacity]),x(l.opacity,h[y])&&(b.opacity=[u[m].opacity,h[y].opacity])),void 0!==prx.types[u[m].type]&&void 0!==prx.types[u[m].type].dynamicProperties){var T=prx.types[u[m].type].dynamicProperties.data;if(void 0!==b[T])if(delete b[T],u[m][T].length!=h[y][T].length)b.dynamicProperties={type:""};else for(var P=0;P<u[m][T].length;P++){var k=jsondiffpatch.diff(u[m][T][P],h[y][T][P]);if(void 0!==k)for(var I in k)k.hasOwnProperty(I)&&($.isArray(k[I])?(3==k[I].length&&0==k[I][1]&&0==k[I][2]&&(k[I][1]=void 0,delete k[I][2]),b["dynamicProperties-"+P+"-"+I]=k[I]):b["dynamicProperties-"+P+"-"+I]=[u[m][T][P][I],h[y][T][P][I]])}}if(void 0===b.opacity&&void 0===b.visible||(b.visible={opacity:[u[m].opacity,void 0===h[y].opacity?1:h[y].opacity],visible:[!1!==u[m].visible,!1!==h[y].visible]},delete b.opacity),0<Object.keys(b).length){var A={type:"changed-component",id:u[m].id,componentType:u[m].type,changes:b};if(void 0===b.width&&void 0===b.height||(A.item=h[y]),void 0!==b.symbolstateid&&(A.symbolid=u[m].symbolid),A.hasOwnProperty("changes")&&A.changes.hasOwnProperty("actions")&&void 0!==A.changes.actions[0]&&"undefined"!==A.changes.actions[1]){for(var E=prx.componentsHelper.cloneobject(A.changes.actions[0]),C=prx.componentsHelper.cloneobject(A.changes.actions[1]),O=0,M=0;M<E.length;M++)void 0!==E[M]&&void 0!==C[M]&&void 0!==E[M].guid&&void 0!==C[M].guid&&(delete E[M].guid,delete C[M].guid,JSON.stringify(E[M])==JSON.stringify(C[M])&&O++);O==A.changes.actions[0].length&&O==A.changes.actions[1].length&&(delete A.changes.actions,A.changes_order=Object.keys(b).sort(prx.states.sortChanges))}if(A.hasOwnProperty("changes")&&A.changes.hasOwnProperty("mask")){var D=!1,F=!1;void 0!==A.changes.mask[0]&&0!=A.changes.mask[0].isMasked||(D=!0,A.changes.mask[0]={inner_height:u[0].height,inner_width:u[0].width,x:0,y:0,borderWidth:0,borderColor:"#000000",borderRadius:0,borderStyle:"solid",borderPos:"inside"}),void 0!==A.changes.mask[1]&&0!=A.changes.mask[1].isMasked||(F=!0,D||(A.changes.mask[1]={inner_height:h[0].height,inner_width:h[0].width,x:0,y:0,borderWidth:0,borderColor:"#000000",borderRadius:0,borderStyle:"solid",borderPos:"inside"})),D&&F||(D?A.changes.mask_missing=[!0,!1]:F&&(A.changes.mask_missing=[!1,!0]),A.changes.mask[0].inner_height!=A.changes.mask[1].inner_height&&(A.changes.mask_inner_height=[A.changes.mask[0].inner_height,A.changes.mask[1].inner_height]),A.changes.mask[0].inner_width!=A.changes.mask[1].inner_width&&(A.changes.mask_inner_width=[A.changes.mask[0].inner_width,A.changes.mask[1].inner_width]),A.changes.mask[0].x!=A.changes.mask[1].x&&(A.changes.mask_x=[A.changes.mask[0].x,A.changes.mask[1].x]),A.changes.mask[0].y!=A.changes.mask[1].y&&(A.changes.mask_y=[A.changes.mask[0].y,A.changes.mask[1].y]),A.changes.mask[0].borderWidth!=A.changes.mask[1].borderWidth&&(A.changes.mask_border_width=[A.changes.mask[0].borderWidth,A.changes.mask[1].borderWidth]),A.changes.mask[0].borderPos!=A.changes.mask[1].borderPos&&(A.changes.mask_border_pos=[A.changes.mask[0].borderPos,A.changes.mask[1].borderPos]),A.changes.mask[0].borderStyle!=A.changes.mask[1].borderStyle&&(A.changes.mask_border_style=[A.changes.mask[0].borderStyle,A.changes.mask[1].borderStyle]),A.changes.mask[0].borderColor!=A.changes.mask[1].borderColor&&(A.changes.mask_border_color=[A.changes.mask[0].borderColor,A.changes.mask[1].borderColor]),JSON.stringify(A.changes.mask[0].borderRadius)!=JSON.stringify(A.changes.mask[1].borderRadius)&&(A.changes.mask_border_radius=[A.changes.mask[0].borderRadius,A.changes.mask[1].borderRadius])),delete A.changes.mask}A.changes_order=Object.keys(b).sort(prx.states.sortChanges),n.push(A)}}}return prx.states._changes[t+":"+e]=n,JSON.parse(JSON.stringify(n))},prx.states.sortChanges=function(t,e){return"parentgroups"==t&&"symbolstateid"==e?-1:"symbolstateid"==t&&"parentgroups"==e?1:"visible"==t||"opacity"==t||"symbolstateid"==e||"parentgroups"==e||"mask_missing"==e?1:"visible"==e||"opacity"==e||"symbolstateid"==t||"parentgroups"==t||"mask_missing"==t?-1:0},prx.states.getActivePageActiveStates=function(){var t="#"+prx.navigation._activepage,e={symbols:{},pages:{}};return $(t+", "+t+" [data-state-id]:not(.ghost-component)").each(function(){$(this).hasClass("prx-page")?e.pages=$(this).attr("data-state-id"):$(this).hasClass("type-symbol")&&(void 0===e.symbols[$(this).attr("data-symbol-id")]?e.symbols[$(this).attr("data-symbol-id")]=[$(this).attr("data-state-id")]:-1===e.symbols[$(this).attr("data-symbol-id")].indexOf($(this).attr("data-state-id"))&&e.symbols[$(this).attr("data-symbol-id")].push($(this).attr("data-state-id")))}),e},prx.states.preCacheChanges=function(){console.time("precaching");for(var t=0;t<prxy.pages.length;t++)for(var e=0;e<prxy.pages[t].states.length;e++)for(var r=0;r<prxy.pages[t].states.length;r++)e!=r&&prx.states.getChangesBetweenStates(prxy.pages[t].states[e].id,prxy.pages[t].states[r].id,"pages",t);for(t=0;t<prxy.symbols.length;t++)for(e=0;e<prxy.symbols[t].states.length;e++)for(r=0;r<prxy.symbols[t].states.length;r++)e!=r&&prx.states.getChangesBetweenStates(prxy.symbols[t].states[e].id,prxy.symbols[t].states[r].id,"symbols",t);console.timeEnd("precaching")},prx.states.isReverse=function(t,e,r,i){return void 0!==prxy[t][e].state_transitions_reverse&&void 0!==prxy[t][e].state_transitions_reverse[r+":"+i]&&1==prxy[t][e].state_transitions_reverse[r+":"+i]},prx.states.getChangesTransitionInfo=function(t,e,r,i,n){if(-1==n)return{allchanges:[],common:[],maxendtotal:0,minstart:0};var a,o,s,l,p,c,u,h={},d={},f=0,m=prx.states.isReverse(i,n,e,r);if(m){if(void 0!==prxy[i][n].state_transitions&&void 0!==prxy[i][n].state_transitions[r+":"+e])var g=prxy[i][n].state_transitions[r+":"+e]}else if(void 0!==prxy[i][n].state_transitions&&void 0!==prxy[i][n].state_transitions[e+":"+r])g=prxy[i][n].state_transitions[e+":"+r];for(var v=0;v<t.length;v++){void 0!==g?(l=prx.transition.duration,p=prx.transition.delay,c=prx.transition.easing,u=void 0!==prx.transition.userpresetuuid?prx.transition.userpresetuuid:void 0):(p=l=0,c=prx.utils.getDefaultDefaultTransition().easing);var y=9999999,x=0;if(void 0!==g&&void 0!==g[t[v].id]&&void 0!==g[t[v].id].common&&(void 0!==g[t[v].id].common.delay&&(p=g[t[v].id].common.delay),void 0!==g[t[v].id].common.duration&&(l=g[t[v].id].common.duration),void 0!==g[t[v].id].common.easing&&(c=g[t[v].id].common.easing,u=void 0!==g[t[v].id].common.userpresetuuid?g[t[v].id].common.userpresetuuid:void 0),x=(y=p)+(l=prx.easing.checkToOverwriteCustomEasingDuration(u,l))),void 0!==t[v].changes)for(var b in t[v].changes)if(t[v].changes.hasOwnProperty(b)){t[v].changes[b];var _,w=t[v].componentType,S=!0,T=!1,P=!1;if(o=p,a=l,s=c,void 0!==g&&void 0!==g[t[v].id]&&void 0!==g[t[v].id][b]&&(void 0!==g[t[v].id][b].delay&&(o=g[t[v].id][b].delay),void 0!==g[t[v].id][b].duration&&(a=g[t[v].id][b].duration),void 0!==g[t[v].id][b].easing&&(s=g[t[v].id][b].easing,u=void 0!==g[t[v].id][b].userpresetuuid?g[t[v].id][b].userpresetuuid:void 0),a=prx.easing.checkToOverwriteCustomEasingDuration(u,a),void 0!==g[t[v].id][b].rotationDirection&&(_=g[t[v].id][b].rotationDirection)),"new-component"==t[v].type||"removed-component"==t[v].type){"opacity"==b&&(d[t[v].id+"-"+b]={duration:a,delay:parseFloat(o)+1,easing:s,transitionable:!0,rerender:!1});continue}if("current-page"==t[v].id||"current-page-template"==t[v].id||"current-container"==t[v].id){d[t[v].id+"-"+b]={duration:a,delay:o,easing:s,transitionable:!0,rerender:!1};continue}if("dynamicProperties"==b||"mask_border_pos"==b||"mask_border_width"==b){d[t[v].id+"-"+b]={duration:0,delay:!1,easing:s,transitionable:!1,rerender:!0};continue}if("draggable"==b){d[t[v].id+"-"+b]={duration:0,delay:o,easing:s,transitionable:!1};continue}if("visible"==b){void 0!==g&&void 0!==g[t[v].id]&&void 0===g[t[v].id][b]&&void 0!==g[t[v].id].opacity&&(void 0!==g[t[v].id].opacity.delay&&(o=g[t[v].id].opacity.delay),void 0!==g[t[v].id].opacity.duration&&(a=g[t[v].id].opacity.duration),void 0!==g[t[v].id].opacity.easing&&(s=g[t[v].id].opacity.easing,u=void 0!==g[t[v].id].opacity.userpresetuuid?g[t[v].id].opacity.userpresetuuid:void 0),a=prx.easing.checkToOverwriteCustomEasingDuration(u,a)),d[t[v].id+"-"+b]={duration:a,delay:o,easing:s,transitionable:!0,rerender:!1};continue}if("parentgroups"==b&&(d[t[v].id+"-"+b]={duration:0,delay:0,easing:s,transitionable:!1,rerender:!1}),-1<b.indexOf("dynamicProperties-"))var k=prx.types[w].dynamicProperties,I=b.split("-"),A=I[I.length-1];else k=prx.types[w],A=b;if(void 0!==k.editableProperties)for(var E=0;E<k.editableProperties.length;E++)if(k.editableProperties[E].name==A&&void 0!==k.editableProperties[E].changeProperty){void 0!==k.editableProperties[E].changeProperty.transitionable&&(S=k.editableProperties[E].changeProperty.transitionable),void 0!==k.editableProperties[E].changeProperty.rerender&&(T=k.editableProperties[E].changeProperty.rerender),P=!0;break}if(!P&&void 0!==k.interactions)for(E=0;E<k.interactions.length;E++)if(k.interactions[E].name==A&&void 0!==k.interactions[E].changeProperty){void 0!==k.interactions[E].changeProperty.transitionable&&(S=k.interactions[E].changeProperty.transitionable),void 0!==k.interactions[E].changeProperty.rerender&&(T=k.interactions[E].changeProperty.rerender),P=!0;break}if(!P&&void 0!==k.propertyGroups)for(E=0;E<k.propertyGroups.length;E++)for(var C=0;C<k.propertyGroups[E].properties.length;C++)for(var O=0;O<k.propertyGroups[E].properties[C].length;O++)if(k.propertyGroups[E].properties[C][O].name==A&&void 0!==k.propertyGroups[E].properties[C][O].changeProperty){void 0!==k.propertyGroups[E].properties[C][O].changeProperty.transitionable&&(S=k.propertyGroups[E].properties[C][O].changeProperty.transitionable),void 0!==k.propertyGroups[E].properties[C][O].changeProperty.rerender&&(T=k.propertyGroups[E].properties[C][O].changeProperty.rerender),P=!0;break}S||(a=0),"symbolstateid"===A&&(a=prx.states.getChangesTransitionInfo(prx.states.getChangesBetweenStates(t[v].changes.symbolstateid[0],t[v].changes.symbolstateid[1],"symbols",prx.stc.containers.getIndexFromId(t[v].symbolid)),t[v].changes.symbolstateid[0],t[v].changes.symbolstateid[1],"symbols",prx.stc.containers.getIndexFromId(t[v].symbolid)).maxendtotal),T&&(a=0,o=!1),"mask_missing"==b&&1==t[v].changes[b][1]&&(o=!1),d[t[v].id+"-"+b]={duration:a,delay:o,easing:s,transitionable:S,rerender:T},void 0!==_&&(m&&("cw"==_?_="ccw":"ccw"==_&&(_="cw")),d[t[v].id+"-"+b].rotationDirection=_),y=o<y&&!1!==o?o:y,x=x<o+a?o+a:x}p=9999999===y&&0===x&&void 0!==prxy[i][n].state_transitions&&void 0!==prxy[i][n].state_transitions[e+":"+r]?(y=0,l=prx.transition.duration,prx.transition.delay):(l=x-(y=9999999===y?0:y),y),h["changed-"+t[v].id]={duration:l,delay:p,easing:c},f<l+p&&(f=l+p)}if(m){for(var b in d)d.hasOwnProperty(b)&&!1!==d[b].delay&&(d[b].delay=f-(d[b].delay+d[b].duration));for(var b in h)h.hasOwnProperty(b)&&(h[b].delay=f-(h[b].delay+h[b].duration))}for(var b in d)if(d.hasOwnProperty(b)&&!1===d[b].delay){var M="changed-"+b.split("-")[0]+"-"+b.split("-")[1];d[b].delay=h[M].duration+h[M].delay}return{allchanges:d,common:h,maxendtotal:f,minstart:y}}},function(t,e){prx.statusNavBar={},prx.statusNavBar.ini=function(){if(prx.allowstatusbar=1==prx.projectsettings.statusbarapplies,prx.allownavigationbar=1==prx.projectsettings.navigationbarapplies,prx.helper.onmobile()){if(!prx.inProtoApp&&prx.allowstatusbar){if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/g))!!window.navigator.standalone?prx.allowstatusbar=!0:$(window).width()==prx.devices[prx.device][prx.orientation._orientation][0]&&$(window).height()==prx.devices[prx.device][prx.orientation._orientation][1]||(prx.allowstatusbar=!1);try{navigator.userAgent.toLowerCase().match(/(android)/g)&&($(window).width()==prx.devices[prx.device][prx.orientation._orientation][0]&&$(window).height()==prx.devices[prx.device][prx.orientation._orientation][1]||(prx.allowstatusbar=!1))}catch(t){alert(t)}}if(navigator.userAgent.toLowerCase().match(/(android)/g)){try{$(window).width()==prx.devices[prx.device][prx.orientation._orientation][0]&&$(window).height()==prx.devices[prx.device][prx.orientation._orientation][1]||(prx.allownavigationbar=!1)}catch(t){alert(t)}$("body").prepend("<style>.prx-page { position: absolute!important; }</style>")}}},prx.statusNavBar.buildStatusbarExported=function(t){"1"==prx.projectsettings.statusbarapplies?"default"==prx.devices[prx.device].statusbar_skin?$("#statusbar").css({"background-image":"none","background-color":"black"}):$("#statusbar").css({"background-image":"url(./images/statusbar_"+t+".png)","background-color":"transparent"}):$("#statusbar").css({"background-image":"none","background-color":"transparent"})},prx.statusNavBar.buildStatusbar=function(t){return"1"==prx.projectsettings.statusbarapplies?"default"==prx.devices[prx.device].statusbar_skin?"url("+prx.utils.getAssetsServer()+"/device/default/statusbar_"+t+".png?ac="+prx.projectsettings.account+")":"shared"==prx.devices[prx.device].statusbar_skin?"url("+prx.utils.getAssetsServer()+"/device/shared/"+prx.devices[prx.device].device_s3bucket+"/statusbar_"+t+".png?ac="+prx.projectsettings.account+")":"url("+prx.utils.getAssetsServer()+"/device/"+prx.devices[prx.device].device_s3bucket+"/statusbar_"+t+".png?ac="+prx.projectsettings.account+")":"none"},prx.statusNavBar.buildNavbar=function(t){return"1"==prx.projectsettings.navigationbarapplies?"default"==prx.devices[prx.device].navigationbar_skin?"url("+prx.utils.getAssetsServer()+"/device/default/navigationbar_"+t+".png?ac="+prx.projectsettings.account+")":"shared"==prx.devices[prx.device].navigationbar_skin?"url("+prx.utils.getAssetsServer()+"/device/shared/"+prx.devices[prx.device].device_s3bucket+"/navigationbar_"+t+".png?ac="+prx.projectsettings.account+")":"url("+prx.utils.getAssetsServer()+"/device/"+prx.devices[prx.device].device_s3bucket+"/navigationbar_"+t+".png?ac="+prx.projectsettings.account+")":"none"},prx.statusNavBar.buildNavbarExported=function(t){"1"==prx.projectsettings.navigationbarapplies?$("#navigationbar").css("background-image","url(./images/navigationbar_"+t+".png)"):$("#navigationbar").css("background-image","none")}},function(t,e){prx.underlay={},prx.underlay.render=function(t){var e=t,r=prx.canvas._statusbars[t.substr(3)],i=0,n=prx.devices[prx.device][r.orientation][1];prx.allowstatusbar&&"1"==r.statusbar&&(n-=i=prx.devices[prx.device]["statusbarheight"+r.orientation]);var a=$("#underlay");$(e).find('div[class*="box pos type-applewatch-statusbar"]:not(.hidden)').each(function(){var t=$(this).offset().top-i,e=$(this).offset().left;$(this).clone().appendTo(a),(new TimelineMax).to("#underlay  #"+this.id,0,{x:e,y:t}),$(this).attr("data-opacity",$(this).css("opacity")).css({opacity:"0"})}),a.css("top",i+"px").height(n).show()},prx.underlay.changeVisibility=function(t){$(t).find('div[class*="box pos type-applewatch-statusbar"]:not(.hidden)').each(function(){$(this).css({opacity:""+$(this).attr("data-opacity")})})}},function(module,exports){prx.variables={},prx.variables._regEx=new RegExp("{[a-z][-a-z0-9._]*}","gi"),prx.variables._triggerData={},prx.variables.initSandbox=function(){prx.export2html||(prx.variables.evalIframe=document.createElement("iframe"),prx.spaces?prx.variables.evalIframe.src="/project/livepreview/evaluation/":prx.variables.evalIframe.src="evaluation/",prx.variables.evalIframe.id="eval-iframe",document.body.appendChild(prx.variables.evalIframe))},prx.variables.eValSandBox=function(value){if(prx.export2html){var result;try{result=eval("'use strict'; var document={}; var prx = {}; var window = {}; var localStorage = {}; var $ = {}; var jQuery = {}; ''; "+value)}catch(t){result=value}return result}return prx.variables.evalIframe.contentWindow.evaluate(value)},prx.variables.prepare=function(){for(var t in prx.variables._variables)prx.variables._variables.hasOwnProperty(t)&&(void 0===prx.variables._variables[t].type&&(prx.variables._variables[t].type="text"),void 0===prx.variables._variables[t].value&&(prx.variables._variables[t].value=""),void 0===prx.variables._variables[t].evaluate&&(prx.variables._variables[t].evaluate=!0))},prx.variables.paramsExist=function(t){try{return-1<t.search(prx.variables._regEx)}catch(t){return!1}},prx.variables.removeFirstLast=function(t){return t.substring(1,t.length-1)},prx.variables.read=function(t){return void 0!==prx.variables._variables[t]&&(void 0===prx.variables._variables[t].parsed&&prx.variables.recursivelyEvaluate(prx.variables._variables[t].value,t),prx.variables._variables[t].parsed)},prx.variables.recursivelyEvaluate=function(e,t,r){if(r)0<t.length&&void 0!==prx.variables._variables[t]&&void 0!==prx.variables._variables[t].parsed&&delete prx.variables._variables[t].parsed;else if(r=!1,0<t.length&&void 0!==prx.variables._variables[t]&&void 0!==prx.variables._variables[t].parsed)return prx.variables._variables[t].parsed;if(prx.variables.paramsExist(e)){var i=e.match(prx.variables._regEx);if(null!=i)for(var n=0;n<i.length;n++){var a=i[n],o=prx.variables.removeFirstLast(i[n]).toLowerCase();if(t!=o||prx.variables._variables[t].value!=t)try{e=e.replace(a,prx.variables.recursivelyEvaluate(prx.variables._variables[o].value,o,r))}catch(t){e=e.replace(a,"")}else e=e.replace(a,"")}}else if(void 0!==t&&void 0!==prx.variables._variables[t]&&prx.variables._variables[t].evaluate)try{e=prx.variables.eValSandBox(e)}catch(t){}if(void 0!==o&&void 0!==prx.variables._variables[t]&&prx.variables._variables[t].evaluate)try{e=prx.variables.eValSandBox(e)}catch(t){}if(0<t.length&&void 0!==prx.variables._variables[t]&&(prx.variables._variables[t].parsed=e),0<t.length&&void 0!==prx.variables._variables[t])switch(prx.variables._variables[t].type){case"text":break;case"numeric":e=parseFloat(e);break;case"boolean":e=!!e}return e}},function(t,e){prx.vimeo={},prx.vimeo._players={},prx.vimeo.createVideo=function(e){function t(t){$("#"+e).trigger("videoplay")}function r(t){$("#"+e).trigger("videopause")}function i(t){$("#"+e).trigger("videoend")}prx.vimeo._players[e+"-vimeo"]=$f(e+"-vimeo"),prx.vimeo._players[e+"-vimeo"].addEvent("ready",function(){prx.vimeo._players[e+"-vimeo"].addEvent("play",t),prx.vimeo._players[e+"-vimeo"].addEvent("pause",r),prx.vimeo._players[e+"-vimeo"].addEvent("finish",i)})}},function(t,e){var c;prx.visibility=(c={},{get:function e(t,r,i,n){if(void 0===c.opacity&&(c.opacity={}),void 0===c.visible&&(c.visible={}),-1!==t.indexOf("group"))return"visible"===r?!1!==c.visible[t]&&(void 0===c.opacity[t]?1:c.opacity[t]):void 0===c.opacity[t]?1:c.opacity[t];var a=function(t,e){if(-1!==t.indexOf("group"))return[];var r=t.split("-box-"),i="box-"+r.pop();if(r=r.join("-box-"),void 0===prx.allItems[i])return[];e=e||($(t).length?$(t).parents("[data-state-id]").first().attr("data-state-id"):Object.keys(prx.allItems[i].states)[0]);var n=prx.items.getFromAllItemStruct(i,e);return!1===n&&(n=prx.items.getFromAllItemStruct(i,Object.keys(prx.allItems[i].states)[0])),n.parentgroups.map(function(t){return r+" .group-"+t})}(t,n).filter(function(t){return"string"==typeof i?i!==t:!Array.isArray(i)||-1===i.indexOf(t)}).map(function(t){return e(t,"visible")});if(a.push(void 0===c.opacity[t]?1:c.opacity[t]),"visible-all"===r){for(var o=0;o<a.length;o++)if(!1===a[o])return!1;return!1!==c.visible[t]&&a.filter(function(t){return!1!==t}).reduce(function(t,e){return t*e},1)}if("visible-rest"===r){for(o=0;o<a.length;o++)if(!1===a[o])return!1;return a.filter(function(t){return!1!==t}).reduce(function(t,e){return t*e},1)}if("visible"===r)return!1!==c.visible[t]&&(void 0===c.opacity[t]?1:c.opacity[t]);if("visible-in-dom"!==r)return a.filter(function(t){return!1!==t}).reduce(function(t,e){return t*e},1);for(o=0;o<a.length;o++)if(!1===a[o])return!1;if(!1===c.visible[t])return!1;var s=t.match(/(.+)(-box-[\d]+|-group-[a-fA-F0-9\-]+)$/),l=t.match(/#(p-[\d]+)(.+)$/);if(null===s||null===l)return!0;if(l[1]!==prx.navigation._activepage)return!1;var p=s[1];return-1===p.indexOf("box-")||!1!==e(p,"visible-in-dom",i,n)},set:function(t,e,r){void 0===c[e]&&(c[e]={});var i=c[e][t],n=prx.currentPlayerStatus.helper.getGroupsFromDomClass(t);if(n.find(function(t){return"group"===t.type})){var a=prx.currentPlayerStatus.helper.getGroupPointer(t,n[1].id);a&&(a[e]=r)}else{var o=prx.currentPlayerStatus.helper.getParentPointerFromDomId(t);o&&(o[e]=r)}return(c[e][t]=r)!==i},setd:function(t,e,r){if(void 0===c[e]&&(c[e]={}),void 0===c[e][t]){var i=c[e][t];return(c[e][t]=r)!==i}},debug:function(){console.log(c)}})},function(t,e){prx.youtube={},prx.youtube._players={},prx.youtube._playersPending=[],prx.youtube.createVideo=function(e,r){try{prx.youtube._players[e+"-youtube"]=new YT.Player(e+"-youtube",{events:{onStateChange:function(t){t.data==YT.PlayerState.PLAYING?$("#"+e).trigger("videoplay"):t.data==YT.PlayerState.PAUSED?$("#"+e).trigger("videopause"):t.data==YT.PlayerState.ENDED&&$("#"+e).trigger("videoend")},onReady:function(t){!0===r?prx.youtube._players[e+"-youtube"].mute():prx.youtube._players[e+"-youtube"].unMute()}}})}catch(t){prx.youtube._playersPending.push({id:e+"-youtube",mute:r})}},prx.youtube.createPendingVideos=function(){for(var t=0;t<prx.youtube._playersPending.length;t++)prx.youtube.createVideo(prx.youtube._playersPending[t].id,prx.youtube._playersPending[t].mute)},prx.youtube.ini=function(){onYouTubeIframeAPIReady=function(){prx.youtube.createPendingVideos()}}},function(t,e){prx.interface={},prx.interface.goToPage=function(t){_currentpage="#"+prx.navigation._activepage,prx.navigation.pushToBackStack(_currentpage,"none",0,"linear","screens"),prx.actionsLibrary.goToPage({pageId:t,animation:"none",delay:"0"})},prx.interface.getActivePageId=function(){return prx.navigation._activepage.substring(2)},prx.interface.triggerKeydownAction=function(t){var e=$.Event("keydown");e.which=t,$("body").trigger(e)},prx.interface.triggerOrientationChange=function(){prx.orientation.change()},prx.interface.triggerBodyOrientationChange=function(){prx.orientation.changeBody()},prx.interface.changeInitialScale=function(t){var e=document.querySelector("meta[name=viewport]");if(null!=e){for(var r=["minimum-scale","maximum-scale","initial-scale"],i=e.content.split(","),n=0;n<r.length;n++)for(var a=0;a<i.length;a++)if(0==i[a].trim().indexOf(r[n]+"=")){i[a]=r[n]+"="+t;break}e.content=i.join(",")}},prx.interface.changeTargetDensityDPI=function(t){var e=document.querySelector("meta[name=viewport]");if(null!=e){for(var r=["target-densitydpi"],i=e.content.split(","),n=0;n<r.length;n++)for(var a=0;a<i.length;a++)if(0==i[a].trim().indexOf(r[n]+"=")){i[a]=r[n]+"="+t;break}e.content=i.join(",")}},prx.interface.changeViewport=function(t){var e=document.querySelector("meta[name=viewport]");null!=e&&(e.content=t)},prx.interface.previewFrameLeave=function(){prx.scrollable.endTransitions()},prx.interface.previewPanEnd=function(){prx.scrollable.endTransitions()},prx.interface.devices={},prx.interface.devices.getDeviceInfo=function(){return prx.devices[prx.device]},prx.interface.inProtoIOsApp=function(t){prx.inProtoApp=!0,prx.inProtoIOsApp=!0,$("body").addClass("on-iphone-app")},prx.interface.inProtoAndroidApp=function(){prx.inProtoApp=!0,prx.inProtoAndroidApp=!0},prx.interface.isInProtoAndroidApp=function(){try{var t=oProtoAndroidApi.inProtoAndroidApp();prx.inProtoAndroidApp=t,prx.inProtoApp=!0}catch(t){}},prx.interface.triggerAppEvent=function(t,e){prx.interface.triggeriOSAppEvent(t,e),prx.interface.triggerAndroidAppEvent(t,e)},prx.interface.triggeriOSAppEvent=function(t,e){prx.inProtoIOsApp&&(void 0===e&&(e=[]),t=encodeURIComponent(t),e=e.map(function(t){return encodeURIComponent(t)}),window.location="protojs://"+t+(e.length?"/"+e.join("/"):""))},prx.interface.triggerAndroidAppEvent=function(t,e){if(prx.inProtoAndroidApp||prx.helper.onandroid())try{switch(t){case"pageChanged":oProtoAndroidApi.pageChanged(e[0]);break;case"loaderShown":oProtoAndroidApi.loaderShown();break;case"loaderHidden":oProtoAndroidApi.loaderHidden();break;case"showToaster":oProtoAndroidApi.showToast(e[0],e[1])}}catch(t){}},prx.interface.getAndroidAppStartScreen=function(){if(!prx.inProtoAndroidApp&&!prx.helper.onandroid())return prx.projectsettings.initialpageid;try{return oProtoAndroidApi.getStartScreen()}catch(t){return prx.projectsettings.initialpageid}},prx.interface.forceInputFocus=function(t){$("#"+t+" input, #"+t+" textarea").trigger("click.fakefocus")},prx.interface.showLoader=prx.loading.showLoader,prx.interface.startShowLoader=prx.loading.startShowLoader,prx.interface.startHideLoader=prx.loading.startHideLoader,prx.interface.showActions={},prx.interface.showActions.on=prx.showActions.on,prx.interface.showActions.off=prx.showActions.off,prx.interface.showActions.flash={},prx.interface.showActions.flash.enable=prx.showActions.flash.enable,prx.interface.showActions.flash.disable=prx.showActions.flash.disable,prx.interface.stc={},prx.interface.stc.screens={},prx.interface.stc.screens.getIndexFromId=prx.stc.screens.getIndexFromId,prx.interface.getActivePageActiveStates=prx.states.getActivePageActiveStates,prx.interface.clickEffect={},prx.interface.clickEffect.scale=prx.clickEffect.scale,prx.interface.clickEffect.show=prx.clickEffect.show,prx.interface.clickEffect.hide=prx.clickEffect.hide,prx.goToPage=prx.interface.goToPage,prx.triggerKeydownAction=prx.interface.triggerKeydownAction,prx.changeInitialScale=prx.interface.changeInitialScale,prx.changeTargetDensityDPI=prx.interface.changeTargetDensityDPI,prx.changeViewport=prx.interface.changeViewport,prx.changeOrientation=prx.orientation.change},function(t,e){prx.vr={},prx.vr.allowedTypes=["vrimage","vractionarea","vrrectangle"],prx.vr.RADIUS_MIN=10,prx.vr.RADIUS_STEP=1,prx.vr.images||(prx.vr.images={}),prx.vr.ini=function(t,e){var r=e?e+"-"+t.id:t.id;$("a-scene#"+r+"-scene").on("enter-vr",function(){$("body").addClass("fullscreen-vr"),$(this).parents(".type-vrsymbol, .type-symbol").addClass("fullscreen"),prx.crossmsg.send({action:"player-engine-enter-fullscreen"})}),$("a-scene#"+r+"-scene").on("before-exit-vr",function(){$("body").removeClass("fullscreen-vr"),$(this).parents(".type-vrsymbol, .type-symbol").removeClass("fullscreen"),prx.crossmsg.send({action:"player-engine-exit-fullscreen"})}),$("a-scene#"+r+"-scene").find("a-assets").on("loaded",function(){})},prx.vr.VRExists=function(t){t=!!t;var e=prx.navigation._activepage,r=$("#"+e+" .type-vrsymbol");return 0<r.length&&(!t||!!r.hasClass("fullscreen"))},prx.vr.render=function(t,e,r,i){var n=e?e+"-"+t.id:t.id,a=prxy.symbols[i],o=(JSON.parse(a.states[r].data),"#FFF"),s=prx.vr.getImages(a),l=s.skies[r],p="",c="";"none"===l?o=prx.utils.getColor(a.states[r].background):p="#"+l;var u="";return"iphonex"===prx.devices[prx.device].deviceType&&(u+="round-corners-device"),0<$("#"+n).parents(".prx-page-active").length&&(c+='<a-scene id="'+n+'-scene"  class="'+u+'" canvas="" keyboard-shortcuts="" vr-mode-ui="enabled: true;" embedded>',c+='<a-assets timeout="1000">',c+=s.cR,c+="</a-assets>",c+='<a-sky src="'+p+'" rotation="0 90 0" material="color:'+o+';"></a-sky>',c+='<a-entity id="light" position="0 0 0" light="intensity: 0.95; type: ambient"></a-entity>',c+='<a-entity id="camera" position="0 0 0" camera="active:true;userHeight:0;near:0.01" rotation="0 180 0" look-controls="" aframe-injected="" data-aframe-inspector="default-camera">',c+='<a-entity id="indicator"                position="0 0 -1"                geometry="primitive: ring; radiusInner: 0.00001; radiusOuter: 0.0055; thetaLength: 360; thetaStart: 0"                cursor="fuse: true; fuseTimeout: 1000"\n                raycaster="far: 20; interval: 250; objects: .vr-interactive"                material="color: black; shader: flat">            <a-animation begin="vrtimeranimation" easing="linear" attribute="geometry.radiusInner"                         from="0.00001" to="0.02" dur="1000" fill="none" end="mouseleave"></a-animation>            <a-animation begin="vrtimeranimation" easing="linear" attribute="geometry.radiusOuter"                         from="0.0055" to="0.025" dur="1000" fill="none" end="mouseleave"></a-animation>            <a-animation begin="vrclickanimation" easing="ease-in-out" attribute="scale" direction="alternate"                         from="1 1 1" to="1.5 1.5 1.5" dur="125" delay="0" repeat="1"></a-animation>            <a-animation begin="vrclickanimation" easing="linear" attribute="geometry.radiusInner"                         to="0.00001" dur="0" delay="250"></a-animation>            <a-animation begin="vrclickanimation" easing="linear" attribute="geometry.radiusOuter"                         to="0.0055" dur="0" delay="250"></a-animation>            <a-animation begin="mouseleave" easing="linear" attribute="geometry.radiusInner"                         to="0.00001" dur="0" delay="0"></a-animation>            <a-animation begin="mouseleave" easing="linear" attribute="geometry.radiusOuter"                         to="0.0055" dur="0" delay="0"></a-animation>        </a-entity>        <a-entity                  position="0 0 -1"                  rotation="0 0 0"                  geometry="primitive: ring; radiusOuter: 0.025; radiusInner: 0.02; thetaStart: 0; thetaLength: 360"                  material="side: double;color: black; shader: flat; opacity: 0.25">        </a-entity>',c+="</a-entity>",c+='<a-entity id="spheres">',c+=prx.vr.interactionAreas(a,n,r),c+="</a-entity>",c+="</a-scene>"),c},prx.vr.interactionAreas=function(t,e,r){for(var i=t.states[r].dimensions[0],n=t.states[r].dimensions[1],a=JSON.parse(t.states[r].data),o="",s=t.states[r].groups||{},l=prx.vr.RADIUS_MIN+(a.length+Object.keys(s).length)*prx.vr.RADIUS_STEP,p=0;p<a.length;p++){for(var c=a[p],u=c.parentgroups.length-1;0<=u;u--)void 0===s[c.parentgroups[u]].radius&&(s[c.parentgroups[u]].radius=l,l-=prx.vr.RADIUS_STEP);o+=prx.vr.getComponent(c,l,e,i,n),l-=prx.vr.RADIUS_STEP}for(var h in s){var d=s[h];0<d.actions.length&&(o+=prx.vr.getGroup(d,e,i,n)),delete d.radius}return o},prx.vr.debugGroupsAndInteractionAreas=!1,prx.vr.getGroup=function(t,e,r,i){var n="group-"+t.id,a=e?e+"-"+n:n,o=prx.vr.getPhi(t,r),s=prx.vr.getTheta(t,i);return prx.vr.debugGroupsAndInteractionAreas?'<a-sphere item-type="vrgroup" id="'+a+'" class="vr-interactive '+n+'" rotation="0 270 0" material="side:double;visible:true;transparent:true;color:'+function(){for(var t="#",e=0;e<6;e++)t+="0123456789ABCDEF"[Math.floor(16*Math.random())];return t}()+'" src="" geometry="mergeTo:null;primitive:sphere;radius:'+t.radius+";phiLength:"+o.length+";phiStart:"+o.start+";thetaLength:"+s.length+";thetaStart:"+s.start+'"></a-sphere>':'<a-sphere item-type="vrgroup" id="'+a+'" class="vr-interactive '+n+'" rotation="0 270 0" material="side:double;visible:false;transparent:true;color:#FFF" src="" geometry="mergeTo:null;primitive:sphere;radius:'+t.radius+";phiLength:"+o.length+";phiStart:"+o.start+";thetaLength:"+s.length+";thetaStart:"+s.start+'"></a-sphere>'},prx.vr.getComponent=function(t,e,r,i,n){var a,o=r?r+"-"+t.id:t.id,s=prx.vr.getPhi(t,i),l=prx.vr.getTheta(t,n),p="true",c="",u="";if(e||(e=0),"vrrectangle"===t.type&&(c=prx.utils.getColor(t.backgroundColor)),"vractionarea"===t.type&&(p=prx.vr.debugGroupsAndInteractionAreas?"true":"false"),void 0!==t.actions&&(a=0<t.actions.length?"vr-interactive":""),-1<prx.vr.allowedTypes.indexOf(t.type))if("vrimage"===t.type){var h=t.imgSrc.fileId.split(".")[0],d="";(-1<t.imgSrc.fileId.toLowerCase().indexOf(".png")||-1<t.imgSrc.fileId.toLowerCase().indexOf(".gif"))&&(d="shader:gif;"),u+='<a-sphere item-type="'+t.type+'" id="'+o+'" class="'+a+'" rotation="0 270 0" material= "'+d+"side:double;transparent:true;color:"+c+'" src="#vr-'+h+'" geometry="mergeTo:null;primitive:sphere;radius:'+e+" ;phiLength:"+s.length+";phiStart:"+s.start+";thetaLength:"+l.length+";thetaStart:"+l.start+'"></a-sphere>'}else u+='<a-sphere item-type="'+t.type+'" id="'+o+'" class="'+a+'" rotation="0 270 0" material="side:double;visible:'+p+";transparent:true;color:"+c+'" src="" geometry="mergeTo:null;primitive:sphere;radius:'+e+";phiLength:"+s.length+";phiStart:"+s.start+";thetaLength:"+l.length+";thetaStart:"+l.start+'"></a-sphere>';return u},prx.vr.changeState=function(t,e,r,i){var n=prx.stc.helper.getIndexFromId(e,"symbols"),a=prx.stc.helper.getStateIndexFromId(r,"symbols",n),o=prxy.symbols[n],s=o.states[a],l=JSON.parse(s.data),p=s.groups,c=t.split("-")[1],u=$("#"+t+" a-sky"),h=s.dimensions[0],d=s.dimensions[1],f="#FFF",m="";void 0!==s.backgroundImg&&""!==s.backgroundImg.fileId?m="#sky-"+s.backgroundImg.fileId.split(".")[0]:f=prx.utils.getColor(o.states[a].background),u[0].setAttribute("src",m),u[0].setAttribute("material","color",f);for(var g=prx.vr.RADIUS_MIN+(l.length+Object.keys(p).length)*prx.vr.RADIUS_STEP,v=!1,y={},x=0;x<l.length;x++){for(var b=l[x].parentgroups.length-1;0<=b;b--)void 0===p[l[x].parentgroups[b]].update_radius&&(p[l[x].parentgroups[b]].update_radius=g,g-=prx.vr.RADIUS_STEP);l[x].update_radius=g,y[l[x].id]=l[x],g-=prx.vr.RADIUS_STEP}for(x=0;x<i.length;x++){var _=i[x];switch(_.type){case"changed-component":if(!y.hasOwnProperty(_.id))continue;_.item=y[_.id],_.changes.hasOwnProperty("actions")?(prx.vr.removeComponent(_,t),prx.vr.addComponent(_.item,c,t,h,d)):(_.changes.hasOwnProperty("left")||_.changes.hasOwnProperty("top"))&&prx.vr.updateComponent(_.item,_.changes,t,h,d);break;case"new-component":v=!0,y.hasOwnProperty(_.id)&&prx.vr.addComponent(y[_.id],c,t,h,d);break;case"removed-component":prx.vr.removeComponent(_,t),v=!0;break;case"new-group":v=!0;break;case"removed-group":prx.vr.removeGroup(_.group,t),v=!0;break;case"reordered-components":v=!0}}if(v)for(x=0;x<l.length;x++)l[x].hasOwnProperty("update_radius")&&prx.vr.updateComponent(l[x],{},t);for(var w in p)if(p.hasOwnProperty(w)){var S=p[w];prx.vr.removeGroup(S,t),0<S.actions.length&&prx.vr.addGroup(S,t,h,d)}document.getElementById("indicator").components.raycaster.refreshObjects(),$("#"+t).attr("data-state-id",r),prx.vr.setEventListenersForFusingAnimations()},prx.vr.addComponent=function(t,e,r,i,n){var a=prx.vr.getComponent(t,t.update_radius,r,i,n);delete t.update_radius,$("#"+r).find("#spheres").append(a),prx.actions.parseItemAction(t,r,e,void 0,!1)},prx.vr.addGroup=function(t,e,r,i){t.hasOwnProperty("update_radius")&&(t.radius=t.update_radius,delete t.update_radius);var n=prx.vr.getGroup(t,e,r,i);$("#"+e).find("#spheres").append(n),prx.vr.parseGroupAction(t,e)},prx.vr.removeComponent=function(t,e){var r="#"+(e?e+"-"+t.id:t.id);$(r).remove()},prx.vr.removeGroup=function(t,e){var r="#"+(e?e+"-group-"+t.id:t.id);$(r).remove()},prx.vr.updateComponent=function(t,e,r,i,n){var a=r?r+"-"+t.id:t.id,o=document.getElementById(a);if(o){if(e.hasOwnProperty("left")||e.hasOwnProperty("top")||e.hasOwnProperty("height")||e.hasOwnProperty("width")){var s=prx.vr.getPhi(t,i),l=prx.vr.getTheta(t,n),p={phiLength:s.length,phiStart:s.start,thetaLength:l.length,thetaStart:l.start};t.hasOwnProperty("update_radius")&&(p.radius=t.radius,delete t.update_radius),o.setAttribute("geometry",p)}else t.hasOwnProperty("update_radius")&&(o.setAttribute("geometry",{radius:t.update_radius}),delete t.update_radius);if(e.hasOwnProperty("backgroundColor")||e.hasOwnProperty("imgSrc")){var c="flat",u="#FFFFFF";"vrimage"==t.type&&-1<t.imgSrc.fileId.toLowerCase().indexOf(".gif")&&(c="gif"),"vrrectangle"==t.type&&(u=prx.utils.getColor(t.backgroundColor)),o.setAttribute("material",{color:prx.utils.getColor(u),transparent:!0,side:"double",shader:c})}if(e.hasOwnProperty("imgSrc")){var h="";"vrimage"==t.type&&(h=t.imgSrc.fileId.split(".")[0]),o.setAttribute("src","#vr-"+h)}}},prx.vr.getPhi=function(t,e){var r=t.left+t.width,i=t.left,n={};return n.start=360*(e-i)/e,n.end=360*(e-r)/e,n.length=n.end-n.start,n},prx.vr.getTheta=function(t,e){var r=t.top,i=t.top+t.height,n={};return n.start=180*r/e,n.end=180*i/e,n.length=n.end-n.start,n},prx.vr.refresh=function(t,h){var e=$(t+".type-vrsymbol,"+t+" .type-vrsymbol").length,d=0;e&&!function u(){e<=d||$(t+".type-vrsymbol,"+t+" .type-vrsymbol").eq(d).each(function(t){d++;var e=this.id,r=e.split("box-"),i="box-".concat(r[r.length-1]),n=$(this).parents(".prx-page").attr("data-id"),a=(n=$(this).parents(".prx-page").attr("data-id"),$(this).parents("[data-state-id]").first().attr("data-state-id")),o=prx.items.getFromAllItemStruct(i,a);h&&($(this).hasClass("hidden")?o.visible=!1:o.visible=!0);var s=e.substring(0,e.length-(i.length+1)),l=$(this).attr("data-symbol-id"),p=$(this).attr("data-state-id");o.symbolstateid=p,prx.items.rerender(o,s,n),prx.vr.bindItemActions(l,p,e,n);var c=$("#"+e+" a-scene")[0];c.hasLoaded?u():c.addEventListener("loaded",u),prx.vr.setEventListenersForFusingAnimations(),setTimeout(function(){prx.vr.setUpScroll(e)},100)})}()},prx.vr.disable=function(t){$(".prx-page-active").find("a-scene").each(function(){this.exitVR()}),$(t+" .type-vrsymbol,"+t+".type-vrsymbol").each(function(){$(this).empty()})},prx.vr.setInitialPosition=function(t,e){var r=e.width,i=e.height,n=parseFloat(t.scrollToY)+t.height/2,a=parseFloat(t.scrollToX)+t.width/2,o={};o.vAngle=180*(i/2-n)/i,o.hAngle=0-360*a/r,$("a-camera").setAttribute("rotation",{x:o.vAngle,y:o.hAngle,z:0})},prx.vr.bindItemActions=function(t,e,r,i){for(var n=prx.stc.helper.getIndexFromId(t,"symbols"),a=prxy.symbols[n],o=prx.stc.containers.getStateIndexFromId(e,n),s=JSON.parse(a.states[o].data),l=0;l<s.length;l++){var p=s[l];prx.actions.parseItemAction(p,r,i,void 0,!1)}for(var c in a.states[o].groups){var u=a.states[o].groups[c];prx.vr.parseGroupAction(u,r)}},prx.vr.parseGroupAction=function(t,e){if(void 0!==t.actions&&0!=t.actions.length){var r=e+"-group-"+t.id;t.actions.sort(function(t,e){return t.sort-e.sort}),t.actions.forEach(function(t){t=JSON.parse(JSON.stringify(t)),t=prx.actions.recursivelyAddInfo(t,"#"+r,e,e,"#"+r,".protoio-group-actions"),prx.actions.build(t)})}},prx.vr.setUpScroll=function(t){var e=$("#"+t).parents(".type-symbol").attr("id"),r=$("#"+t).find("canvas")[0];void 0!==e&&void 0!==r&&(prx.helper.onmobile()?(r.addEventListener("touchstart",function(){prx.scrollable.disable("#"+e)}),r.addEventListener("touchend",function(){prx.scrollable.enable("#"+e)})):(r.addEventListener("mousedown",function(){prx.scrollable.disable("#"+e)}),r.addEventListener("mouseup",function(){prx.scrollable.enable("#"+e)})))},prx.vr.getImages=function(t){for(var e="",r=[],i=[],n=0;n<t.states.length;n++){var a=t.states[n].backgroundImg;if(void 0!==a&&""!=a.fileId){var o=a.fileId.split(".")[0],s=c(prx.componentsHelper.getProp(a,"asset"),a.fileId);-1===i.indexOf("sky-"+o)?(i.push("sky-"+o),e+='<img id="sky-'+o+'" src="'+s+'" crossorigin="anonymous">'):i.push("sky-"+o)}else i.push("none");for(var l=JSON.parse(t.states[n].data),p=0;p<l.length;p++)"vrimage"===l[p].type&&void 0!==l[p].imgSrc&&(o=l[p].imgSrc.fileId,s=c(prx.componentsHelper.getProp(l[p].imgSrc,"asset"),o),o=o.split(".")[0],-1===r.indexOf(l[p].imgSrc.fileId)&&(r.push(l[p].imgSrc.fileId),e+='<img id="vr-'+o+'" src="'+s+'" crossorigin="anonymous">'))}function c(t,e){return prx.export2html||prx.vr.crossOriginUnsupported()&&!(-1<e.toLowerCase().indexOf(".gif"))?t=prx.vr.images.hasOwnProperty(e)?prx.vr.images[e]:"":(-1===t.indexOf("access_token=")&&(-1===t.indexOf("?")?t+="?access_token="+prx.assetsAccessToken:t+="&access_token="+prx.assetsAccessToken),t+="&VR=1"),t}return{cR:e,skies:i}},prx.vr.crossOriginUnsupported=function(){return!prx.export2html&&$.browser.safari},prx.vr.setEventListenersForFusingAnimations=function(){$(".vr-interactive.interaction-click").on("fusing",function(t){document.getElementById("indicator").dispatchEvent(new Event("vrtimeranimation"))}).on("click",function(t){document.getElementById("indicator").dispatchEvent(new Event("vrclickanimation"))})}},function(t,e){prx.htmlTextEditor={},prx.htmlTextEditor.enableShowStyle=!0,prx.htmlTextEditor.selection=!1,prx.htmlTextEditor.currentEditorInstance=void 0,prx.htmlTextEditor.mappingsOfRichTextEditorAndRelatedCSSprops={"font-weight":"commands.","font-style":"commands.","text-decoration":"commands.",color:"format.applyStyle","letter-spacing":"format.applyStyle","line-height":"format.applyStyle","font-size":"fontSize.apply","font-family":"fontFamily.apply","text-align":"align.apply"},prx.htmlTextEditor.XSSJSWhitelistForFroala={b:["style"],br:[],div:["style"],em:["style"],i:["style"],span:["style","class"],strong:["style"],strike:["style"],s:["style"],u:["style"]},prx.htmlTextEditor.fr=function(){return"uAJb1Nd1ZWPXDa1FQd1E=="},prx.htmlTextEditor.class=function(){return"froala-instance"},prx.htmlTextEditor.iframeEl=function(){return".fr-iframe"},prx.htmlTextEditor.initFullScale=function(r,t,e,i,n){if(void 0===r||0<$(".fr-wrapper iframe").length)return!1;e=void 0!==t&&e,i=void 0!==i?i:"",n=void 0!==n?n:[],t=1==t?$.FroalaEditor.ENTER_P:$.FroalaEditor.ENTER_BR;$(r).on("froalaEditor.initialized",function(t,e){prx.htmlTextEditor.currentEditorInstance=$(r)}),$(r).on("froalaEditor.destroy",function(t,e){prx.htmlTextEditor.currentEditorInstance=void 0}),$(r).froalaEditor({fontFamily:prx.comps.fontForRichTextEditor(),placeholderText:"",pluginsEnabled:["align","fontFamily","fontSize","colors","inlineStyle"],toolbarButtons:["fontFamily","|","fontSize","|","align","|","bold","italic","underline","colors"],shortcutsEnabled:["bold","italic","underline","undo","redo","strikeThrough"],fontSizeSelection:!0,fontFamilySelection:!0,multiLine:e,enter:t,iframe:!0,iframeStyle:i,iframeStyleFiles:n,key:prx.htmlTextEditor.fr(),spellcheck:!1}).addClass(prx.htmlTextEditor.class())},prx.htmlTextEditor.destroy=function(t){prx.htmlTextEditor.currentEditorInstance=void 0,$(t).froalaEditor("destroy")},prx.htmlTextEditor.getValue=function(t){return $(t).froalaEditor("html.get",!0)},prx.htmlTextEditor.getCurrentValue=function(t,e,r){var i=prx.htmlTextEditor.normaliseTextEditorID("#"+t+" #editable-properties-"+e);return $(i).froalaEditor("html.get",!0)},prx.htmlTextEditor.normaliseTextEditorID=function(t){return t.replace(".","-")},prx.htmlTextEditor.unNormaliseTextEditorID=function(t){return t.replace("-",".")},prx.htmlTextEditor.isActive=function(t,e,r){(!1===r&&(r=void 0),void 0!==e)?1<(e=$.isArray(e)?e:[e])[0].split(/[.]+/).length&&void 0!==e[0].split(/[.]+/)[1]&&(e=e[0].split(/[.]+/)[1]):e=[""];var i=prx.htmlTextEditor.normaliseTextEditorID("#"+t+" #editable-properties-"+e[0]);return void 0!==$(i).data("froala.editor")&&$(i).data("dynPropI")==r},prx.htmlTextEditor.checkInstanceActiveFromClass=function(){return 0<$("."+prx.htmlTextEditor.class()).length},prx.htmlTextEditor.selectAll=function(t,e,r){var i=prx.htmlTextEditor.normaliseTextEditorID("#"+t+" #editable-properties-"+e);$(i).froalaEditor("events.focus"),$(i).froalaEditor("commands.selectAll"),$(i).froalaEditor("events.trigger","buttons.refresh",[],!1)},prx.htmlTextEditor.selectAllTemp=function(t){$(t).froalaEditor("events.focus"),$(t).froalaEditor("commands.selectAll")},prx.htmlTextEditor.isSelectedAll=function(t){var e=$(t).froalaEditor("selection.text").replace(/\s/g,"");return""!=e&&0==e.localeCompare($(".fr-iframe").contents().find(".fr-view").text().replace(/\s/g,""))||1==$(t).froalaEditor("selection.isFull")},prx.htmlTextEditor.focus=function(t){$(t).froalaEditor("events.focus")},prx.htmlTextEditor.getSelectedText=function(t,e,r){var i=prx.htmlTextEditor.normaliseTextEditorID("#"+t+" #editable-properties-"+e);return $(i).froalaEditor("selection.text")},prx.htmlTextEditor.getSelection=function(t,e,r){var i=prx.htmlTextEditor.normaliseTextEditorID("#"+t+" #editable-properties-"+e);return $(i).froalaEditor("selection.get")},prx.htmlTextEditor.setHTML=function(t,e,r,i){var n=prx.htmlTextEditor.normaliseTextEditorID("#"+e+" #editable-properties-"+r);$(n).froalaEditor("html.set",t)},prx.htmlTextEditor.createWYSIWYGeditorForEditableProperty=function(t,e,r,i,n){prx.htmlTextEditor.initFullScale(t,e,r,i,n)},prx.htmlTextEditor.applyStyleToWYSIWYGeditorTextFromPropertiesPanel=function(t,e,r,i,n){var a=-1<r.toLowerCase().indexOf("properties"),o=-1<r.toLowerCase().indexOf("fontstyle");delete $(t).froalaEditor().data("froala.editor").prtofontValue;i="letter-spacing"==e||"line-height"==e||"font-size"==e?i+"px":i;if($.isArray(e)){if(a)$(t).froalaEditor("commands."+i);else if(o){var s=prx.componentsHelper.getProp(i,"font-style-value"),l=prx.componentsHelper.getProp(i,"font-weight-value");$(t).froalaEditor("format.applyStyle","font-weight",l),$(t).froalaEditor("format.applyStyle","font-style",s)}}else if(void 0!==prx.htmlTextEditor.mappingsOfRichTextEditorAndRelatedCSSprops[e])if("font-size"==e||"text-align"==e)$(t).froalaEditor(prx.htmlTextEditor.mappingsOfRichTextEditorAndRelatedCSSprops[e],i);else if("font-family"==e)i=prx.componentsHelper.getFontCssFromFontFamily(i.trim()).replace("font-family:","").replace(/;/g,""),$(t).froalaEditor().data("froala.editor").prtofontValue=i,$(t).froalaEditor(prx.htmlTextEditor.mappingsOfRichTextEditorAndRelatedCSSprops["font-family"],i);else if("font-weight"===e){if(i&&""!==i){var p=(i.match(/[^0-9]+/)||"normal").toString(),c=(i.match(/[0-9]{3}/)||400).toString();$(t).froalaEditor("format.applyStyle","font-weight",c),$(t).froalaEditor("format.applyStyle","font-style",p)}}else $(t).froalaEditor(prx.htmlTextEditor.mappingsOfRichTextEditorAndRelatedCSSprops[e],e,i);$(t).froalaEditor("events.trigger","input",[],!1),$(t).froalaEditor("events.trigger","buttons.afterRefresh.protoio",!1)},prx.htmlTextEditor.createTempWYSIWYGeditor=function(t){$("body").append($('<textarea id="tempWYSIWYGeditor" style="display:block">'+t+"</textarea>").data("original-value",t)),prx.htmlTextEditor.initTempiFrame("#tempWYSIWYGeditor",!1,!0)},prx.htmlTextEditor.initTempiFrame=function(t,e,r){var i=e?"":"hidden",n=!!r;if($(t).froalaEditor({fontFamily:prx.comps.fontForRichTextEditor(),placeholderText:"",pluginsEnabled:["align","fontFamily","fontSize","colors","inlineStyle"],toolbarButtons:["fontFamily","|","fontSize","|","align","|","bold","italic","underline","colors"],fontFamilySelection:!0,fontSizeSelection:!0,iframe:n,editorClass:i,enter:$.FroalaEditor.ENTER_BR,key:prx.htmlTextEditor.fr(),spellcheck:!1}),void 0===t)return!1;var a=void 0!==l&&a,o=void 0!==o?o:"",s=void 0!==s?s:[],l=1==l?$.FroalaEditor.ENTER_P:$.FroalaEditor.ENTER_BR;$(t).froalaEditor({fontFamily:prx.comps.fontForRichTextEditor(),placeholderText:"",pluginsEnabled:["align","fontFamily","fontSize","colors","inlineStyle"],toolbarButtons:["fontFamily","|","fontSize","|","align","|","bold","italic","underline","colors"],shortcutsEnabled:["bold","italic","underline","undo","redo"],fontSizeSelection:!0,fontFamilySelection:!0,multiLine:a,enter:l,iframe:!0,iframeStyle:o,iframeStyleFiles:s,key:prx.htmlTextEditor.fr(),spellcheck:!1})},prx.htmlTextEditor.getValFromTempWYSIWYGeditor=function(){return $("#tempWYSIWYGeditor").froalaEditor("html.get",!0)},prx.htmlTextEditor.destroyTempWYSIWYGeditor=function(t){if(void 0===t)t="#tempWYSIWYGeditor";$(t).froalaEditor("destroy"),$(t).remove()},prx.htmlTextEditor.getSelectedNodes=function(t,e){function n(t){if(t.hasChildNodes())return t.firstChild;for(;t&&!t.nextSibling;)t=t.parentNode;return t?t.nextSibling:null}if(t.getSelection){var r=t.getSelection();if(!e)return function(t){var e=t.startContainer,r=t.endContainer;if(e==r)return[e];for(var i=[];e&&e!=r&&"fr-view"!==e.className;)i.push(e=n(e));for(e=t.startContainer;e&&e!=t.commonAncestorContainer&&"fr-view"!==e.className;)i.unshift(e),e=e.parentNode;return i}(r.getRangeAt(0));if(r.rangeCount){var i=r.getRangeAt(0).commonAncestorContainer;if(3==i.nodeType)return[i.parentNode]}else if((r=t.selection)&&"Control"!=r.type)return[r.createRange().parentElement()]}return[]},prx.htmlTextEditor.checkParentsForUndeline=function(t){if(null!=t)for(;t&&"fr-view"!==t.className;)if(null!==(t=t.parentNode)&&null!==t.textContent&&""!==t.textContent.trim()&&"fr-marker"!==t.className&&("underline"==getComputedStyle(t,null).getPropertyValue("text-decoration")||"U"==t.nodeName))return!0;return!1},prx.htmlTextEditor.showStyle=function(t,e,r,i){if(delete e.prtofontValue,0==prx.htmlTextEditor.enableShowStyle)return!1;prx.properties.editable.froalaEditorKeydownInitiated=!1;var k=prxy.items[prxy.iSelectedIndex];if(void 0===k)return!1;var n=k.id,I=k.type,a=$(prx.htmlTextEditor.iframeEl()).get(0).contentDocument||$(prx.htmlTextEditor.iframeEl()).get(0).contentWindow.document,o=1==a.getSelection().isCollapsed,s=prx.htmlTextEditor.getSelectedNodes(a,o),A=0;if(0!=s.length)if(void 0!==r){if(void 0!==prx.types[I].dynamicProperties.propertyGroups)for(var l=0;l<prx.types[I].dynamicProperties.propertyGroups.length;l++)for(var p=0;p<prx.types[I].dynamicProperties.propertyGroups[l].properties.length;p++)for(var c=prx.types[I].dynamicProperties.propertyGroups[l].properties[p],u=0;u<c.length;u++)if(void 0!==c[u].relatedEditableProperties){var h=$.isArray(c[u].relatedEditableProperties)?c[u].relatedEditableProperties:[c[u].relatedEditableProperties];A=h.length;for(var d=0;d<h.length;d++){var f=1<h[d].split(/[.]+/).length&&void 0!==h[d].split(/[.]+/)[1]?h[d].split(/[.]+/)[1]:h[d];if(void 0!==c[u].relatedCSSProperties&&f==t){var m=n+"-"+c[u].name+"-"+r,g=c[u].type,v=c[u].name;if(i&&1==h.length){if(void 0!==c[u].value)if("function"==typeof c[u].value)var y=c[u].value(k,v,r);else y=$("#"+m).html();else y=$("#"+m).html();if(y=void 0===y?"":y,y=$.isArray(y)&&1==y.length?y.join(""):y,void 0!==c[u].values)if("function"==typeof c[u].values)var x=c[u].value(k,v,r);else x=c[u].values;var b={props:c[u],value:y,values:x,_index:r,_dynamicProp:!0,_html:e.html.get()};if(-1!=(_=prx.properties.popup.helper.getInspectorPropsForRichText(b)))y=void 0!==_&&"multiplestyles"!=_?_:"",(0==$.isArray(c[u].relatedCSSProperties)?[c[u].relatedCSSProperties]:c[u].relatedCSSProperties).forEach(function(t){w(m,g,t,y,void 0,i,v,r)})}else{(0==$.isArray(c[u].relatedCSSProperties)?[c[u].relatedCSSProperties]:c[u].relatedCSSProperties).forEach(function(t){w(m,g,t,prx.htmlTextEditor._getCSSValue(t),e,i,v,r)})}}}}}else if(void 0!==prx.types[I].propertyGroups)for(l=0;l<prx.types[I].propertyGroups.length;l++)for(p=0;p<prx.types[I].propertyGroups[l].properties.length;p++)for(c=prx.types[I].propertyGroups[l].properties[p],u=0;u<c.length;u++)if(void 0!==c[u].relatedEditableProperties){h=$.isArray(c[u].relatedEditableProperties)?c[u].relatedEditableProperties:[c[u].relatedEditableProperties];A=h.length;for(d=0;d<h.length;d++)if(void 0!==c[u].relatedCSSProperties&&h[d]==t){m=n+"-"+c[u].name,g=c[u].type,v=c[u].name,x="";if(i&&1==h.length){if(void 0!==c[u].value)if("function"==typeof c[u].value)y=c[u].value(k,v);else y=$("#"+m).html();if(y=void 0===y?"":y,y=$.isArray(y)&&1==y.length?y.join(""):y,void 0!==c[u].values)if("function"==typeof c[u].values)x=c[u].values(k,v);else x=c[u].values;var _;b={props:c[u],value:y,values:x,_html:e.html.get()};if(-1!=(_=prx.properties.popup.helper.getInspectorPropsForRichText(b)))y=void 0!==_&&"multiplestyles"!=_?_:"",(0==$.isArray(c[u].relatedCSSProperties)?[c[u].relatedCSSProperties]:c[u].relatedCSSProperties).forEach(function(t){w(m,g,t,y,void 0,i,v,r)})}else{(0==$.isArray(c[u].relatedCSSProperties)?[c[u].relatedCSSProperties]:c[u].relatedCSSProperties).forEach(function(t){w(m,g,t,prx.htmlTextEditor._getCSSValue(t),e,i,v,r)})}}}function w(t,e,r,i,n,a,o,s){if(void 0!==i)switch(0==$("#p-"+t).parents(".property-group:first").hasClass("active")&&$("#p-"+t).parents(".property-group:first").addClass("active"),e){case"select":if(1==$("#p-"+t).length)if("font-weight"==r||"font-style"==r){$("#p-".concat(t)).find("option:selected").each(function(){$(this).prop("selected","false")});var l=i;if(void 0!==i.value&&(l=i.value.replace(/['";]+/g,"")),l=l.toString(),-1==[""," ","N/A","multiplestyles"].indexOf(l)){var p=prx.componentsHelper.getProp(l,"font-weight-value"),c=prx.componentsHelper.getProp(l,"font-style-value");l=p+(c="normal"==c?"":c)}""==l&&(l="multiplestyles"),"disabled"==$("#p-"+t).attr("disabled")?$("#p-"+t+" option").filter(function(){return"N/A"==this.value}).prop("selected",!0):$("#p-"+t+" option").filter(function(){return this.value==l}).prop("selected",!0),$("#p-"+t).trigger("change.select2")}else if("font-family"==r){var u=$("#p-".concat(t)),h=u.find("option:selected"),d=null;d=[],void 0!==h[0]&&void 0!==h[0].value&&d.push(h[0].text,h[0].value),u.find("option:selected").each(function(){$(this).prop("selected","false")});l=i;void 0!==i.name&&(l=i.name.replace(/['";]+/g,"")),void 0!==i.value&&(i.value=i.value.replace(/['";]+/g,"")),l=l.toString();var f,m,g=-1==prxy.iSelectedIndex,v=void 0!==i.name?i.name:i,y=void 0!==i.value?i.value:i,x=!1;"multiple-fonts"==v&&(v="Multiple"),void 0!==s?(s="-"+s,x=!0):s="",g?(f="all-selected",m=$("#p-all-selected-".concat(o,"Style").concat(s)),$("#p-all-selected-".concat(o).concat(s))):(f=k.id,m=$("#p-".concat(k.id,"-").concat(o,"Style").concat(s)),$("#p-".concat(k.id,"-").concat(o).concat(s)));var b=0<$("#p-"+t+" option").filter(function(){return this.text.toLowerCase()==v.toLowerCase()}).length,_=0<$("#p-"+t+" option").filter(function(){return this.value.toLowerCase()==v.toLowerCase()}).length;b||_||(v="");var w=prx.componentsHelper.getTextandFontStylePropsName(I,o+"Style",x).relatedTextPropsName;w&&prx.fontManager.showCorrectTextStyleOptions(v,m,f,w,s),b||""==v?$("#p-"+t+" option").filter(function(){return this.text.toLowerCase()==v.toLowerCase()}).prop("selected",!0):_&&$("#p-"+t+" option").filter(function(){return this.value.toLowerCase()==v.toLowerCase()}).prop("selected",!0),$("#p-"+t).trigger("change.select2");var S=prx.fontManager.getVariantsFromFamilyName(v,y);prx.fontManager.updateStyleSelector(m,S,y,"")}break;case"combo-select":1==$("#p-"+t+"-select").length&&(function(t,e,r){if("select"==e){0==$("#p-"+t+" option").filter(function(){return this.text==r}).length&&$("#p-"+t).prepend($("<option>",{value:r,text:r}))}else if("combo-select"==e){0==$("select[id=p-"+t+"-select] option").filter(function(){return this.text==r}).length&&$("#p-"+t+"-select").prepend($("<option>",{value:r,text:r}))}}(t,e,i),$("#p-"+t).prop("selected","false").val(i),$("#p-"+t+"-select option:selected").prop("selected","false"),$("#p-"+t+'-select [value="'+i+'"]').prop("selected",!0));break;case"colorpicker":case"combo-colorpicker":1==$("#p-"+t).length&&$("#p-"+t).attr("value",i),$("#p-"+t+" ~ .colorpicker-wrapper .loadColorpickerBtn").each(function(){$(this).css("background-color",i).attr("data-color",i)});break;case"input-numeric":1==$("#p-"+t).length&&(isNaN(i)?$("#p-"+t).val("0"):$("#p-"+t).val(i));break;case"checkbox":"text-decoration"==r&&1==$("#p-"+t+"-0").length&&(a&&1==A?i=-1<i.indexOf("underline"):"boolean"!=typeof i&&(i=-1<i.indexOf("underline")),$("#p-"+t+"-0").prop("checked",i));break;case"radio":if("text-align"==r){n&&(n.textAlign=i);for(var T=0;T<4;T++)if(1==$("#p-"+t+"-"+T).length){var P=$("#p-"+t+"-"+T).val()==i;$("#p-"+t+"-"+T).prop("checked",P)}}}}},prx.htmlTextEditor._getCSSValue=function(t){var e=$(prx.htmlTextEditor.iframeEl()).get(0).contentDocument||$(prx.htmlTextEditor.iframeEl()).get(0).contentWindow.document,r=1==e.getSelection().isCollapsed,i=prx.htmlTextEditor.getSelectedNodes(e,r);if(r){var n=getComputedStyle(i[0],null),a=n.getPropertyValue(t);switch(t){case"font-style":case"font-weight":return"".concat(n.getPropertyValue("font-weight")).concat(n.getPropertyValue("font-style"));case"text-decoration":return-1<a.indexOf("underline")||!!prx.htmlTextEditor.checkParentsForUndeline(i[0]);case"font-family":return prx.componentsHelper.getFontFamilyFromCSS(a);case"font-size":case"letter-spacing":case"line-height":case"text-align":case"color":return a.replace("px","");default:return a}}else var o=[],s={"font-weight":"bold","font-style":"italic","text-decoration":"underline"};for(var l=0;l<i.length;l++)null!==i[l]&&void 0!==i[l+1]&&null!==i[l+1]&&""!==i[l+1].textContent.trim()&&"fr-marker"!==i[l+1].className&&3==i[l+1].nodeType?i[l].getStyle=!0:null!==i[l]&&void 0!==i[l-1]&&null!==i[l-1]&&""!==i[l-1].textContent.trim()&&"fr-marker"!==i[l-1].className&&3==i[l-1].nodeType?i[l].getStyle=!0:null!==i[l]&&""!==i[l].textContent.trim()&&"fr-marker"!==i[l].className&&3==i[l].nodeType?i[l].getStyle=!0:null!==i[l]&&(i[l].getStyle=!1);for(l=0;l<i.length;l++)if(null!=i[l]&&i[l].getStyle)if("font-style"===t||"font-weight"===t){var p=i[l];p.nodeType&&p.style||(p=p.parentNode);var c=getComputedStyle(p,null).getPropertyValue("font-style"),u=getComputedStyle(p,null).getPropertyValue("font-weight");"italic"!==c&&(c=""),"bold"===u&&(u="700"),"normal"===u&&(u="400"),o.push("".concat(u).concat(c))}else{var h=i[l];h.nodeType&&h.style||(h=h.parentNode),o.push(window.getComputedStyle(h,null).getPropertyValue(t))}switch(t){case"font-weight":case"font-style":return 0<o.length&&prx.htmlTextEditor.arrayHasTheSameValues(o)?o[0]:"multiplestyles";case"text-decoration":if(0<o.length&&prx.htmlTextEditor.arrayHasTheSameValues(o))return o[0]==s[t]||!!prx.htmlTextEditor.checkParentsForUndeline(i[0]);break;case"font-size":case"letter-spacing":case"line-height":case"text-align":case"color":return 0<o.length&&prx.htmlTextEditor.arrayHasTheSameValues(o)?o[0].replace("px",""):"";case"font-family":return 0<o.length&&prx.htmlTextEditor.arrayHasTheSameValues(o)?prx.componentsHelper.getFontFamilyFromCSS(o[0]):{name:"Multiple",value:"multiple-fonts"};default:return""}},prx.htmlTextEditor.getStyleSheetsFromParentForIframe=function(r){var i=[];return Array.prototype.forEach.call(window.document.querySelectorAll("link[rel=stylesheet]"),function(t){var e=document.createElement("link");e.rel=t.rel,e.href=t.href,void 0!==r?-1<e.href.indexOf(r)&&i.push(t.href):i.push(t.href)}),i},prx.htmlTextEditor.arrayHasTheSameValues=function(t){for(var e=0;e<t.length-1;e++)if(t[e]!==t[e+1])return!1;return!0},prx.htmlTextEditor.checkForRelatedEditableProperties=function(t,e,r){if(void 0===t||void 0===e)return!1;if(void 0!==r){if(void 0!==prx.types[t].dynamicProperties.propertyGroups)for(var i=0;i<prx.types[t].dynamicProperties.propertyGroups.length;i++)for(var n=0;n<prx.types[t].dynamicProperties.propertyGroups[i].properties.length;n++)for(var a=prx.types[t].dynamicProperties.propertyGroups[i].properties[n],o=0;o<a.length;o++)if(void 0!==a[o].relatedEditableProperties)for(var s=$.isArray(a[o].relatedEditableProperties)?a[o].relatedEditableProperties:[a[o].relatedEditableProperties],l=0;l<s.length;l++){if(1<s[l].split(/[.]+/).length){if(void 0!==(p=s[l].split(/[.]+/))[1]&&p[1]==e)return!0}else if(void 0!==a[o].relatedCSSProperties&&s[l]==e)return!0}if(void 0!==prx.types[t].propertyGroups)for(i=0;i<prx.types[t].propertyGroups.length;i++)for(n=0;n<prx.types[t].propertyGroups[i].properties.length;n++)for(a=prx.types[t].propertyGroups[i].properties[n],o=0;o<a.length;o++)if(void 0!==a[o].relatedEditableProperties)for(s=$.isArray(a[o].relatedEditableProperties)?a[o].relatedEditableProperties:[a[o].relatedEditableProperties],l=0;l<s.length;l++){var p;if(1<s[l].split(/[.]+/).length)if(void 0!==(p=s[l].split(/[.]+/))[1]&&p[1]==e)return!0}}else if(void 0!==prx.types[t].propertyGroups)for(i=0;i<prx.types[t].propertyGroups.length;i++)for(n=0;n<prx.types[t].propertyGroups[i].properties.length;n++)for(a=prx.types[t].propertyGroups[i].properties[n],o=0;o<a.length;o++)if(void 0!==a[o].relatedEditableProperties)for(s=$.isArray(a[o].relatedEditableProperties)?a[o].relatedEditableProperties:[a[o].relatedEditableProperties],l=0;l<s.length;l++)if(void 0!==a[o].relatedCSSProperties&&s[l]==e)return!0;return!1},prx.htmlTextEditor.keyboardShortCutsBIU=function(t){var d="b"==t.key?"bold":"i"==t.key?"italic":"underline",e="b"==t.key?"font-weight":"i"==t.key?"font-style":"underline",r=-1==prxy.iSelectedIndex&&0<prxy.iSelectedIndexes.length?prxy.iSelectedIndexes:[prxy.iSelectedIndex],i=[],n=[],a=[],o=["text","rectangle","shape","circle"],f={};if(r.forEach(function(t){void 0!==prxy.items[t]&&void 0!==prxy.items[t].type&&(-1===o.indexOf(prxy.items[t].type)?n.push(t):(i.push(prxy.items[t].id),a.push(t)))}),a.forEach(function(t){var e,r=prxy.items[t],i=prxy.items[t].type,n=[];void 0!==prx.types[i].propertyGroups&&prx.types[i].propertyGroups.forEach(function(t){e=t.properties.reduce(function(t,e){return t.concat(e)}),n=n.concat(e)});for(var a=0;a<n.length;a++){if("underline"!=d&&prx.componentsHelper.isFontFamilyProp(n[a])){void 0===f[t]&&(f[t]={});var o=void 0===prx.properties.popup.helper.getInspectorPropsForRichText({props:n[a],value:prxy.items[t].textFont},t,!0)["font-family"]||""==prx.properties.popup.helper.getInspectorPropsForRichText({props:n[a],value:prxy.items[t].textFont},t,!0)["font-family"]||" "==prx.properties.popup.helper.getInspectorPropsForRichText({props:n[a],value:prxy.items[t].textFont},t,!0)["font-family"];f[t].fontFamilyPropsGroup=n[a],f[t].currentFontFamily=prxy.items[t].textFont,f[t].currentFontFamilyIsOverwritten=o}if(prx.componentsHelper.isTextPropertiesProp(n[a])){var s=$.isArray(n[a].relatedEditableProperties)?n[a].relatedEditableProperties[0]:n[a].relatedEditableProperties;if(void 0!==n[a].value&&"function"==typeof n[a].value){void 0===f[t]&&(f[t]={});var l=prx.properties.popup.helper.getInspectorPropsForRichText({props:n[a],value:n[a].value(r,n[a],!1)},t,!0),p=prx.componentsHelper.getTextandFontStylePropsName(prxy.items[t].type,n[a].name),c=prx.fontManager.getVariantsFromFamilyName(prxy.items[t][p.relatedFontFamilyPropsName]);if(f[t].itemIndex=t,f[t].item=prxy.items[t],f[t].textPropsGroup=n[a],f[t].relatedTextPropName=n[a].name,f[t].relatedFontStylePropName=p.relatedTextFontStylePropsName,f[t].relatedFontStylePropsGroup=p.textFontStyleGroup,f[t].relatedFontFamilyPropName=p.relatedFontFamilyPropsName,f[t].availableFontStyles=c,l[d]?(f[t].fontStyleIsOverwritten=!0,f[t].action=d,f[t].relatedEditableProperties=s,f[t].html=r[s],n[a].value(r,n[a],!1).indexOf(d),f[t].status="disabled"):(f[t].fontStyleIsOverwritten=!1,f[t].action=d,f[t].relatedEditableProperties=s,f[t].html=r[s],-1<n[a].value(r,n[a],!1).indexOf(d)?f[t].status="enabled":f[t].status="disabled"),"underline"!=d){var u={_iprop:prx.toolbox.clone(n[a]),_action:"enabled"==f[t].status?"disabled":"enabled",_value:d,_item:prxy.items[t]};u._iprop.name=p.relatedTextFontStylePropsName,u._iprop.relatedCSSProperties=["font-weight","font-style"];var h=prx.properties.popup.helper.convertBIValueToFontStyleValues(u);f[t].desiredFontStyle=h,f[t].desiredFontStyleIsAvailable=-1<c.indexOf(h)}}}}}),"underline"!=d)for(var s in f)f[s].desiredFontStyleIsAvailable&&!f[s].currentFontFamilyIsOverwritten||delete f[s];if(0==Object.keys(f).length)return!1;var l=[];for(var s in f)l.push(f[s].status);var p=!!l.reduce(function(t,e){return t===e?t:NaN});if(p){if(p){if("disabled"==l[0])for(var s in f){var c=f[s].itemIndex,u=f[s].relatedEditableProperties,h=f[s].relatedTextPropName,m=f[s].relatedFontStylePropName,g=f[s].html;if("underline"==d){var v=prx.componentsHelper.stripStyle(g,e,!1);prxy.items[c][h]=["underline"],prxy.items[c][u]="<u>"+v+"</u>"}else{(M={_iprop:prx.toolbox.clone(f[s].textPropsGroup)})._iprop.name=f[s].relatedFontStylePropName,M._iprop.relatedCSSProperties=["font-weight","font-style"],M._action="enable",M._value=d,M._item=f[s].item;D=prx.properties.popup.helper.convertBIValueToFontStyleValues(M);if(-1<f[s].availableFontStyles.indexOf(D)){var y=prx.componentsHelper.stripStyle(f[s].html,e,!1);prxy.items[c][m]=f[c].desiredFontStyle,prxy.items[c][u]=y;var x="";x="bold"==d?'<span style="font-weight:'+prx.componentsHelper.getProp(D,"font-weight-value")+';">'+y+"</span>":'<span style="font-style:'+prx.componentsHelper.getProp(D,"font-style-value")+'">'+y+"</span>",prxy.items[c][u]=x,prxy.items[c][m]=D}"function"==typeof f[c].relatedFontStylePropsGroup.onChange&&f[c].relatedFontStylePropsGroup.onChange(f[s].item)}prx.items.update(f[s].item,1==a.length)}if("enabled"==l[0])for(var s in f){var b=f[s].itemIndex,_=f[s].relatedEditableProperties,w=f[s].relatedTextPropName,S=f[s].relatedFontStylePropName,T=f[s].html;if("underline"==d){var P=prx.componentsHelper.stripStyle(T,e,!1);prxy.items[b][w]=[],prxy.items[b][_]=P}else{var k=prx.componentsHelper.stripStyle(T,e,!1);(M={_iprop:prx.toolbox.clone(f[s].textPropsGroup)})._iprop.name=S,M._iprop.relatedCSSProperties=["font-weight","font-style"],M._action="disable",M._value=d,M._item=f[s].item;D=prx.properties.popup.helper.convertBIValueToFontStyleValues(M);if(-1<f[s].availableFontStyles.indexOf(D)){k=prx.componentsHelper.stripStyle(T,e,!1);prxy.items[b][S]=D,prxy.items[b][_]=k}"function"==typeof f[b].relatedFontStylePropsGroup.onChange&&f[b].relatedFontStylePropsGroup.onChange(f[s].item)}prx.items.update(f[s].item,1==a.length)}}}else for(var s in f){var I=f[s].itemIndex,A=f[s].relatedEditableProperties,E=f[s].relatedTextPropName,C=f[s].relatedFontStylePropName,O=f[s].html;if("underline"==d)prxy.items[I][E]=[],prxy.items[I][A]=prx.componentsHelper.stripStyle(O,e,!1);else{var M;(M={_iprop:prx.toolbox.clone(f[s].textPropsGroup)})._iprop.name=C,M._iprop.relatedCSSProperties=["font-weight","font-style"],M._action="disable",M._value=d,M._item=f[s].item;var D=prx.properties.popup.helper.convertBIValueToFontStyleValues(M);-1<f[s].availableFontStyles.indexOf(D)&&(prxy.items[I][C]=D,prxy.items[I][A]=prx.componentsHelper.stripStyle(O,e,!1)),"function"==typeof f[I].relatedFontStylePropsGroup.onChange&&f[I].relatedFontStylePropsGroup.onChange(f[s].item)}prx.items.update(f[s].item,1==a.length)}prx.properties.popup.show(),prx.states.checkBuildTimeline(i,["textFontstyle"]),prx.screenshots.addIconToOutdated(),prx.history.reset(),prx.history.append()}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(446),n=r(447);window.sd=i.SuperDom,window.evt=n.Events},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var c=r(145),i=(l.init=function(){l.scrollbarWH=c.SuperDomHelper.getScrollbarWH()},l.getById=function(t){return-1!==t.indexOf("#")&&t.replace("#",""),document.getElementById(t)},l.getByClass=function(t){return-1!==t.indexOf(".")&&t.replace(".",""),document.getElementsByClassName(t)},l.getByName=function(t){return document.getElementsByName(t)},l.getByTagName=function(t){return document.getElementsByTagName(t)},l.findFirst=function(t,e){return(void 0===e?document:"string"==typeof e?l.getById(e):e).querySelector(t)},l.find=function(t,e){return(void 0===e?document:"string"==typeof e?l.getById(e):e).querySelectorAll(t)},l.addClass=function(t,e){for(var r=e.split(" "),i=c.SuperDomHelper.getElementsArrayFromElement(t),n=0,a=i.length;n<a;++n)if(null!==i[n])for(var o=0,s=r.length;o<s&&!new RegExp("(^|\\s)"+r[o]+"(\\s|$)","g").test(i[n].className);++o)i[n].className=(i[n].className+" "+r[o]).replace(/\s+/g," ").replace(/(^ | $)/g,"")},l.removeClass=function(t,e){for(var r=e.split(" "),i=c.SuperDomHelper.getElementsArrayFromElement(t),n=0,a=i.length;n<a;++n)if(null!==i[n])for(var o=0,s=r.length;o<s;++o){var l=new RegExp("(^|\\s)"+r[o]+"(\\s|$)","g");if(!l.test(i[n].className))break;i[n].className=i[n].className.replace(l,"$1").replace(/\s+/g," ").replace(/(^ | $)/g,"")}},l.toggleClass=function(t,e,r){for(var i=e.split(" "),n=c.SuperDomHelper.getElementsArrayFromElement(t),a=0,o=n.length;a<o;++a)if(null!==n[a])for(var s=0,l=i.length;s<l;++s){var p=new RegExp("(^|\\s)"+i[s]+"(\\s|$)","g");p.test(n[a].className)?!0!==r&&(n[a].className=n[a].className.replace(p,"$1").replace(/\s+/g," ").replace(/(^ | $)/g,"")):!1!==r&&(n[a].className=(n[a].className+" "+i[s]).replace(/\s+/g," ").replace(/(^ | $)/g,""))}},l.hasClass=function(t,e){for(var r=e.split(" "),i=c.SuperDomHelper.getElementsArrayFromElement(t),n=0,a=0,o=r.length;a<o;++a)for(var s=new RegExp("(^|\\s)"+r[a]+"(\\s|$)","g"),l=0,p=i.length;l<p;++l)if(null!==i[a]&&s.test(i[l].className)){n+=1;break}return n===r.length},l.getStyle=function(t,e,r){return t?window.getComputedStyle(t,r).getPropertyValue(e):""},l.css=function(t,e,r){var i=l.getStyle(t,e,r);return isNaN(parseFloat(i))||(i=parseFloat(i)),i},l.setStyle=function(t,e,r){"number"==typeof r&&(r=String(r));for(var i=c.SuperDomHelper.getElementsArrayFromElement(t),n=0,a=i.length;n<a;++n)null!==i[n]&&(i[n].style[e]=r)},l.getOffset=function(t,e){var r=t.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return e?"top"===e?r.top+n:r.left+i:{top:r.top+n,left:r.left+i}},l.getPosition=function(t,e){return e?"top"===e?t.offsetTop:t.offsetLeft:{top:t.offsetTop,left:t.offsetLeft}},l.append=function(t,e){var r,i=new DOMParser;if(r=void 0===e?document.body:"string"==typeof e?l.getById(e):e,"string"==typeof t)for(var n=i.parseFromString(t,"text/html"),a=0,o=n.body.children.length;a<o;++a){var s=n.body.children[a].cloneNode(!0);r.appendChild(s)}else r.appendChild(t)},l.prepend=function(t,e){var r,i=new DOMParser;if(r=void 0===e?document.body:"string"==typeof e?l.getById(e):e,"string"==typeof t)for(var n=i.parseFromString(t,"text/html"),a=n.body.children.length-1;0<=a;--a){var o=n.body.children[a].cloneNode(!0);r.insertBefore(o,r.children[0])}else r.insertBefore(t,r.children[0])},l.scrollbarWH=null,l);function l(){}e.SuperDom=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var v=r(145),c=r(144),i=(y.triggerEvent=function(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!1,!0),t.dispatchEvent(r)},y.addListener=function(t,e,r){for(var i=e.split("."),n=i[0],a=i[1]?i[1]:"",o=v.SuperDomHelper.getElementsArrayFromElement(t),s=0,l=o.length;s<l;++s)if(null!==o[s]){var p=void 0;o[s].id.length?p=o[s].id:(p="listener-"+c.prx.utils.getGuid(),o[s].id=p),y.listenerMap[p]||(y.listenerMap[p]=[]),y.listenerMap[p].push({event:n,namespace:a,helper:r}),o[s].addEventListener(n,r)}},y.removeListener=function(t,e){var r=e.split("."),i=r[0],n=r[1]?r[1]:"",a=0===i.length&&n&&n.length,o=v.SuperDomHelper.getElementsArrayFromElement(t),s=[],l=!1;if(a)for(var p=0,c=o.length;p<c;++p){if(!(f=o[p].id).length){l=!0;break}for(var u=0,h=y.listenerMap[f].length;u<h;++u)y.listenerMap[f][u].namespace===n&&(s.push({UID:f,event:y.listenerMap[f][u].event,helper:y.listenerMap[f][u].helper}),y.listenerMap[f].splice(u,1),0===y.listenerMap[f].length&&delete y.listenerMap[f])}else if(0===n.length)for(p=0,c=o.length;p<c;++p){if(!(f=o[p].id).length){l=!0;break}u=0;for(var d=y.listenerMap[f].length;u<d;++u)y.listenerMap[f][u].event===i&&(s.push({UID:f,event:y.listenerMap[f][u].event,helper:y.listenerMap[f][u].helper}),y.listenerMap[f].splice(u,1),u--,d--,0===y.listenerMap[f].length&&delete y.listenerMap[f])}else for(p=0,c=o.length;p<c;++p){var f;if(!(f=o[p].id).length){l=!0;break}u=0;for(var m=y.listenerMap[f].length;u<m;++u)y.listenerMap[f][u].event===i&&y.listenerMap[f][u].namespace===n&&(s.push({UID:f,event:y.listenerMap[f][u].event,helper:y.listenerMap[f][u].helper}),y.listenerMap[f].splice(u,1),u--,m--,0===y.listenerMap[f].length&&delete y.listenerMap[f])}if(!l)for(p=0,c=o.length;p<c;++p)if(null!==o[p]){u=0;for(var g=s.length;u<g;++u)o[p].id.length&&s[u].UID===o[p].id&&o[p].removeEventListener(s[u].event,s[u].helper)}},y.listenerMap={},y);function y(){}e.Events=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(103),n=r(449);void 0===i.prx.springrk4&&(i.prx.springrk4={}),i.prx.springrk4.init=function(t){var e=t.replace("springrk4(","").replace(")","").split(",").map(Number);return new n.Springrk4({tension:Number(e[0]),friction:Number(e[1]),velocity:Number(e[2])})},i.prx.springrk4.getDuration=function(t){var e=t.replace("springrk4(","").replace(")","").split(",").map(Number);return new n.Springrk4({tension:Number(e[0]),friction:Number(e[1]),velocity:Number(e[2])}).time},i.prx.springrk4.isValidValue=function(t,e){return n.Springrk4.isValidInput(t,e)}},function(t,e,r){"use strict";var i,n=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var a,o=(a=Ease,n(s,a),s.getDefaultValues=function(){return{tension:400,friction:15,velocity:100}},s.prototype.reset=function(){this.moving=!0,this.velocity=this.velocity*this.velocityMultiplier,this.current=0},s.prototype.getRatio=function(t){var e=(t*this.all().length).toFixed();return this.all()[e]},s.prototype.normaliseInputs=function(t,e){return"tension"===e?isNaN(t)?0<(t=t.toString())&&t<=1e3?t:200:isNaN(t)?200:0<t&&t<=1e3?t:200:"friction"===e?isNaN(t)?5<=(t=t.toString())&&t<=100?t:5:isNaN(t)?5:5<=t&&t<=100?t:5:"velocity"===e?isNaN(t)?0<=(t=t.toString())&&t<=100?t:100:isNaN(t)?100:0<=t&&t<=100?t:100:50},s.prototype.getduration=function(){var t=this.all().length*this.speed;return this.current=0,t},s.prototype.all=function(){this.reset();for(var t=0,e=[];this.moving;)1e4<t&&this.stop(),t++,e.push(this.step());return e},s.prototype.stop=function(){this.velocity=0},s.prototype.step=function(){var t={x:this.current-1,v:this.velocity*this.velocityMultiplier,tension:this.tension,friction:this.friction},e=this.integrate(t,this.speed);this.current=1+e.x;var r=e.v,i=e.x,n=e.v,a=Math.abs(i)<this.tolerance,o=Math.abs(n)<this.tolerance,s=a&&o;return this.velocity=r,this.moving=!s,s&&(this.current=1),this.current},s.prototype.integrate=function(t,e){var r=this.evaluate(t),i=this.evaluateWithDerivative(t,.5*e,r),n=this.evaluateWithDerivative(t,.5*e,i),a=this.evaluateWithDerivative(t,e,n),o=1/6*(r.dx+2*(i.dx+n.dx)+a.dx),s=1/6*(r.dv+2*(i.dv+n.dv)+a.dv);return t.x=t.x+o*e,t.v=t.v+s*e,t},s.prototype.evaluate=function(t){var e={};return e.dx=t.v,e.dv=this.acceleration(t),e},s.prototype.evaluateWithDerivative=function(t,e,r){var i={},n={};return n.x=t.x+r.dx*e,n.v=t.v+r.dv*e,n.tension=t.tension,n.friction=t.friction,i.dx=n.v,i.dv=this.acceleration(n),i},s.prototype.acceleration=function(t){return-t.tension*t.x-t.friction*t.v},s.isValidInput=function(t,e){switch(e){case"spring-tension":return 0<t&&t<=1e3;case"spring-friction":return 5<=t&&t<=100;case"spring-velocity":return 0<=t&&t<=100;default:return!1}},s);function s(t){var e=a.call(this)||this;return e.inputData=t,e.tension=e.normaliseInputs(e.inputData.tension,"tension"),e.friction=e.normaliseInputs(e.inputData.friction,"friction"),e.velocity=e.normaliseInputs(e.inputData.velocity,"velocity"),e.velocityMultiplier=1+5e-4*e.velocity,e.speed=1/60,e.tolerance=.002,e.current=0,e.progress=0,e.moving=!1,e.time=parseFloat(e.getduration().toFixed(3)),e.duration=1e3*e.time,e.isSpringrk4=!0,e.reset(),e}e.Springrk4=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(103),n=r(451),a=r(452);void 0===i.prx.bodymovinAnimation&&(i.prx.bodymovinAnimation={}),void 0===i.prx.vectoranimation&&(i.prx.vectoranimation={}),void 0===i.prx.vectorAnimationUtils&&(i.prx.vectorAnimationUtils={}),i.prx.bodymovinAnimation.assets={},i.prx.vectorAnimationUtils.isValidBodyMovin=function(t){return n.BodymovinAnimationUtils.isValidBodyMovin(t)},i.prx.bodymovinAnimation.resetDimensions=function(t,e,r,i){return a.BodymovinAnimation.resetDimensions(t,e,r,i)},i.prx.bodymovinAnimation.registerAnimation=function(t){return a.BodymovinAnimation.registerAnimation(t)},i.prx.bodymovinAnimation.registerAnimationOnItem=function(t){return a.BodymovinAnimation.registerAnimationOnItem(t)},i.prx.bodymovinAnimation.destroyAnimation=function(t){return a.BodymovinAnimation.destroyAnimation(t)},i.prx.bodymovinAnimation.searchAndRegisterAnimations=function(t){return a.BodymovinAnimation.searchAndRegisterAnimations(t)},i.prx.bodymovinAnimation.loadAnimation=function(t){return a.BodymovinAnimation.loadAnimation(t)},i.prx.bodymovinAnimation.getAllRegisteredAnimations=function(){return a.BodymovinAnimation.getAllRegisteredAnimations()},i.prx.bodymovinAnimation.getAnimationInstanceByName=function(t){return a.BodymovinAnimation.getAnimationInstanceByName(t)},i.prx.bodymovinAnimation.getBodymovinAssetInfoFromIAMData=function(t){return a.BodymovinAnimation.getBodymovinAssetInfoFromIAMData(t)},i.prx.bodymovinAnimation.loadBodymovinPageAnimations=function(t){return a.BodymovinAnimation.loadBodymovinPageAnimations(t)},i.prx.bodymovinAnimation.loadBodymovinAnimationsContainedInElement=function(t,e,r){return a.BodymovinAnimation.loadBodymovinAnimationsContainedInElement(t,e,r)},i.prx.bodymovinAnimation.destroyBodymovinAnimationsContainedInElement=function(t){return a.BodymovinAnimation.destroyBodymovinAnimationsContainedInElement(t)},i.prx.bodymovinAnimation.handleBodymovinAnimationsInRightPanel=function(t,e,r,i,n){return"enable"===e?a.BodymovinAnimation.loadBodymovinAnimationsContainedInElement(t,!0,!0,r,i,n):a.BodymovinAnimation.destroyBodymovinAnimationsContainedInElement(t)},i.prx.bodymovinAnimation.getCrossDomainURLforBodymovinAsset=function(t){return a.BodymovinAnimation.getCrossDomainURLforBodymovinAsset(t)},i.prx.vectoranimation.addPlayButtonProperty=function(t){return a.Vectoranimation.addPlayButtonProperty(t)},i.prx.bodymovinAnimation.playbackConsole=function(t){return a.BodymovinAnimation.playbackConsole(t)}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});function o(){}e.VectorAnimationsUtils=o;var s,l=(a(p,s=o),p.isValidBodyMovin=function(t){var e;return void 0!==i(t.op)&&void 0!==i(t.ip)&&(e=Math.floor(t.op-t.ip),!isNaN(e))},p);function p(){return null!==s&&s.apply(this,arguments)||this}e.BodymovinAnimationUtils=l},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var c=r(103),o=(s.addPlayButtonProperty=function(r){if("vectoranimation"!==r.type||0<$("#"+r.id+" #playVectorAnimationprop").length||1!=$("#"+r.id+" .bodymovin").length||void 0===$("#"+r.id+" .bodymovin").attr("data-name"))return!1;var t=c.prx.canvas.calculateScaleBasedOnZoom(),e=(6-6*t)/t,i=(6-6*t)/t,n=p.getAnimationInstanceByName(r.id),a=Boolean(n);return n&&(a=!n._idle),$('<div id="playVectorAnimationprop" class="'+(a?"pause":"")+'" style="-moz-transform:scale('+t+") translate("+e+"px,"+i+"px);-webkit-transform: scale("+t+") translate("+e+"px,"+i+"px);transform: scale("+t+") translate("+e+"px,"+i+'px);"></div>').appendTo("#"+r.id).mousedown(function(t){t.stopPropagation()}).click(function(t){t.stopPropagation();var e=$(this);e.addClass("disabled"),p.playbackConsole({playbackType:"play",rewindIfLastFrame:!0,target:{search:!0,searchElement:"#"+r.id},onCompleteEvent:function(){e.removeClass("disabled"),this.goToAndStop(1,!0)}})}),!0},s);function s(t){this.animationData=t}e.Vectoranimation=o;var l,p=(a(u,l=o),u.playbackConsole=function(r){switch(r.playbackType){case"play":if(r.target.search){var t=r.target.searchElement;$(t).find(".bodymovin").each(function(){var t=$(this).attr("data-name"),e=Number($(this).attr("data-speed"))||1;u.play(t,e,r.rewind,r.rewindIfLastFrame),void 0!==r.onCompleteEvent&&u.setOnCompleteEvent(u.getAnimationInstanceByName(t),r.onCompleteEvent),void 0!==r.onDomLoadedEvent&&u.setOnDomLoadedEvent(u.getAnimationInstanceByName(t),r.onDomLoadedEvent),void 0!==r.onDomLoadedFailedEvent&&u.setOnDomLoadedFailedEvent(u.getAnimationInstanceByName(t),r.onDomLoadedFailedEvent)})}else{var e=r.speed||1;this.play(r.target.dataName,e,r.rewind,r.rewindIfLastFrame),void 0!==r.onCompleteEvent&&u.setOnCompleteEvent(u.getAnimationInstanceByName(r.target.dataName),r.onCompleteEvent),void 0!==r.onDomLoadedEvent&&u.setOnDomLoadedEvent(u.getAnimationInstanceByName(r.target.dataName),r.onDomLoadedEvent),void 0!==r.onDomLoadedFailedEvent&&u.setOnDomLoadedFailedEvent(u.getAnimationInstanceByName(r.target.dataName),r.onDomLoadedFailedEvent)}break;case"pause":r.target.search?(t=r.target.searchElement,$(t).find(".bodymovin").each(function(){var t=$(this).attr("data-name");u.pause(t),void 0!==r.onCompleteEvent&&u.setOnCompleteEvent(u.getAnimationInstanceByName(t),r.onCompleteEvent),void 0!==r.onDomLoadedEvent&&u.setOnDomLoadedEvent(u.getAnimationInstanceByName(t),r.onDomLoadedEvent),void 0!==r.onDomLoadedFailedEvent&&u.setOnDomLoadedFailedEvent(u.getAnimationInstanceByName(t),r.onDomLoadedFailedEvent)})):(this.pause(r.target.dataName),void 0!==r.onCompleteEvent&&u.setOnCompleteEvent(u.getAnimationInstanceByName(r.target.dataName),r.onCompleteEvent),void 0!==r.onDomLoadedEvent&&u.setOnDomLoadedEvent(u.getAnimationInstanceByName(r.target.dataName),r.onDomLoadedEvent),void 0!==r.onDomLoadedFailedEvent&&u.setOnDomLoadedFailedEvent(u.getAnimationInstanceByName(r.target.dataName),r.onDomLoadedFailedEvent));break;case"stop":r.target.search?(t=r.target.searchElement,$(t).find(".bodymovin").each(function(){var t=$(this).attr("data-name");u.stop(t),void 0!==r.onCompleteEvent&&u.setOnCompleteEvent(u.getAnimationInstanceByName(t),r.onCompleteEvent),void 0!==r.onDomLoadedEvent&&u.setOnDomLoadedEvent(u.getAnimationInstanceByName(t),r.onDomLoadedEvent),void 0!==r.onDomLoadedFailedEvent&&u.setOnDomLoadedFailedEvent(u.getAnimationInstanceByName(t),r.onDomLoadedFailedEvent)})):(this.stop(r.target.dataName),void 0!==r.onCompleteEvent&&u.setOnCompleteEvent(u.getAnimationInstanceByName(r.target.dataName),r.onCompleteEvent),void 0!==r.onDomLoadedEvent&&u.setOnDomLoadedEvent(u.getAnimationInstanceByName(r.target.dataName),r.onDomLoadedEvent),void 0!==r.onDomLoadedFailedEvent&&u.setOnDomLoadedFailedEvent(u.getAnimationInstanceByName(r.target.dataName),r.onDomLoadedFailedEvent));break;case"togglePause":r.target.search?(t=r.target.searchElement,$(t).find(".bodymovin").each(function(){var t=$(this).attr("data-name"),e=Number($(this).attr("data-speed"))||1;u.togglePause(t,e),void 0!==r.onCompleteEvent&&u.setOnCompleteEvent(u.getAnimationInstanceByName(t),r.onCompleteEvent),void 0!==r.onDomLoadedEvent&&u.setOnDomLoadedEvent(u.getAnimationInstanceByName(t),r.onDomLoadedEvent),void 0!==r.onDomLoadedFailedEvent&&u.setOnDomLoadedFailedEvent(u.getAnimationInstanceByName(t),r.onDomLoadedFailedEvent)})):(e=r.speed||1,this.togglePause(r.target.dataName,e),void 0!==r.onCompleteEvent&&u.setOnCompleteEvent(u.getAnimationInstanceByName(r.target.dataName),r.onCompleteEvent),void 0!==r.onDomLoadedEvent&&u.setOnDomLoadedEvent(u.getAnimationInstanceByName(r.target.dataName),r.onDomLoadedEvent),void 0!==r.onDomLoadedFailedEvent&&u.setOnDomLoadedFailedEvent(u.getAnimationInstanceByName(r.target.dataName),r.onDomLoadedFailedEvent))}},u.togglePause=function(t,e){if(void 0===t||""==t)return!1;if(null!=e){var r=u.getAnimationInstanceByName(t);r&&r.setSpeed(e)}return lottie.togglePause(t)},u.play=function(t,e,r,i){if(void 0===t||""==t)return!1;var n=u.getAnimationInstanceByName(t);return void 0!==i&&i||void 0!==r&&r?n&&(n.setSpeed(e),(this.isLastFrame(n)||void 0!==r&&r)&&lottie.stop(t)):n.setSpeed(e),lottie.play(t)},u.pause=function(t){return void 0!==t&&""!=t&&lottie.pause(t)},u.stop=function(t){return void 0!==t&&""!=t&&lottie.stop(t)},u.goToFrameAndPlay=function(t,e){if(void 0===e||""==e)return!1;var r=u.getAnimationInstanceByName(e);return!(null==r||!r)&&(r=r).goToAndPlay(t)},u.isLastFrame=function(t){return Math.round(t.totalFrames)-t.currentFrame<1.5},u.setOnCompleteEvent=function(t,e){"object"===i(t)&&t.addEventListener("complete",e.bind(t))},u.setOnDomLoadedEvent=function(t,e){"object"===i(t)&&t.addEventListener("DOMLoaded",e.bind(t))},u.setOnDomLoadedFailedEvent=function(t,e){"object"===i(t)&&t.addEventListener("data_failed",e.bind(t))},u.getBodymovinAssetInfoFromIAMData=function(e){var t=c.prx.iam.currentData().filter(function(t){return t["file-id"]===e});return 0<t.length&&t[0]},u.resetDimensions=function(t,e,r,i){void 0===e&&(e=1),void 0===r&&(r=!1),void 0===i&&(i=null),t.autoResize=!0;var n=t.imgSrc.fileId,a=u.getBodymovinAssetInfoFromIAMData(n);a?(t.width=a.width,t.height=a.height):(t.width=200*c.prx.devices[c.prx.device].dpr,t.height=200*c.prx.devices[c.prx.device].dpr),void 0!==t.aspectratio&&!1!==t.aspectratio&&(t.aspectratio=!0),c.prx.items.update(t,!1),c.prx.editingtools.select.refreshSelection(),c.prx.itemBrowser.refresh(),c.prx.states.checkBuildTimeline(t.id,["width","height"]),c.prx.screenshots.addIconToOutdated(),r||(c.prx.history.reset(),c.prx.history.append());try{i&&i()}catch(t){}return t},u.registerAnimationOnItem=function(t){"vectoranimation"===t.type&&"d310bece0e91b91b485ed62166d1fc2e.svg"!==c.prx.componentsHelper.getProp(t.imgSrc.fileId,"other")&&""!==c.prx.componentsHelper.getProp(t.imgSrc.fileId,"other")&&u.registerAnimation($("#"+t.id+"-bodymovin")[0])},u.registerAnimation=function(t){lottie.registerAnimation(t)},u.destroyAnimation=function(t){lottie.destroy(t)},u.searchAndRegisterAnimations=function(t){$(t).each(function(){u.registerAnimation($(this)[0])})},u.loadAnimation=function(t){return lottie.loadAnimation(t)},u.getAllRegisteredAnimations=function(){return lottie.getRegisteredAnimations()},u.getAnimationInstanceByName=function(e){return lottie.getRegisteredAnimations().find(function(t){return t.name===e})},u.loadBodymovinPageAnimations=function(t){-1===t.indexOf("#")&&(t="#"+t),$(t).find(".bodymovin-player").each(function(){var t=$(this);if(void 0!==t.attr("data-name")&&""!=t.attr("data-name")){var e={container:t[0],renderer:"svg",loop:"true"==t.attr("data-anim-loop"),autoplay:"true"==t.attr("data-anim-autoplay"),name:t.attr("data-name"),speed:Number(t.attr("data-speed"))},r=t.attr("data-fileid"),i=t.attr("data-bm-path");if(!(void 0!==r&&0<r.length&&void 0!==c.prx.bodymovinAnimation.assets[r]&&""!=c.prx.bodymovinAnimation.assets[r]||void 0!==i&&0<i.length))return;void 0!==r&&0<r.length&&void 0!==c.prx.bodymovinAnimation.assets[r]?e.animationData=JSON.parse(c.prx.bodymovinAnimation.assets[r]):e.path=t.attr("data-bm-path"),lottie.destroy(e.name);var n=c.prx.bodymovinAnimation.loadAnimation(e);n.setSpeed(Number(t.attr("data-speed"))),u.setOnCompleteEvent(n,function(){$("#"+t.attr("data-name")).trigger("vectoranimationend")})}})},u.loadBodymovinAnimationsContainedInElement=function(t,a,o,s,l,p){$(t).find(".bodymovin").each(function(){var t=$(this),e=t.attr("data-name");if(void 0!==e&&""!=e){lottie.destroy(e);var r={container:t[0],renderer:"svg",loop:o&&s||o,autoplay:a,name:e,speed:l||1,quality:p||"high"},i=t.attr("data-fileid");void 0!==i&&0<i.length&&void 0!==c.prx.bodymovinAnimation.assets[i]?r.animationData=JSON.parse(c.prx.bodymovinAnimation.assets[i]):r.path=t.attr("data-bm-path");var n=c.prx.bodymovinAnimation.loadAnimation(r);void 0!==s&&u.setOnCompleteEvent(n,function(){u.goToFrameAndPlay(1,e)})}})},u.destroyBodymovinAnimationsContainedInElement=function(t){$(t).find(".bodymovin").each(function(){void 0===$(this).attr("data-name")&&""==$(this).attr("data-name")||lottie.destroy($(this).attr("data-name"))})},u.getCrossDomainURLforBodymovinAsset=function(t){var e=c.prx.editor?c.prx.prgss:"";return c.prx.editor?-1===t.indexOf("?")?t+"?prgss="+e:t+"&prgss="+e:t},u);function u(t){return l.call(this,t)||this}e.BodymovinAnimation=p},function(t,e){prx.expandableProperties={},prx.expandableProperties.getPffType=function(t){var e;switch(t){case"input":case"select":e=t;break;case"multiple-select":e="selectMultiple";break;case"input-numeric":e="inputNumeric";break;case"colorpicker":case"combo-colorpicker":case"solid-colorpicker":case"gradients-colorpicker":e="colorpicker";break;case"combo-select":e="selectInput";break;case"asset":case"combo-asset":case"link":case"wysiwyg":case"textarea":case"html-textarea":case"radio":case"checkbox":case"switcher":case"onoff":case"slider-input":default:e="not-allowed"}return e},prx.expandableProperties.checkIfExpandableAllowed=function(t){return"not-allowed"!==prx.expandableProperties.getPffType(t)},prx.expandableProperties.checkForExpandedProp=function(t,e){if(null!=t){if("string"!=typeof t&&"number"!=typeof t){var r,i=!0;return $.each(t,function(t,e){null==r?r=e:r!=e&&(i=!1)}),i?r:void 0!==e?t[e]:""}if(-1==(""+t).trim().indexOf(" "))return t;var n=t.split(" ");t={tl:n[0],tr:n[1]};switch(n.length){case 2:t.br=n[0],t.bl=n[1];break;case 3:t.br=n[2],t.bl=n[1];break;case 4:t.br=n[2],t.bl=n[3]}return void 0!==e?t[e]:""}},prx.expandableProperties.getInteractionPropExpandedValue=function(t,e){return""==$("#"+t).val()?JSON.parse($("#"+t).attr("data-expanded-obj"))[e]:$("#"+t).val()},prx.expandableProperties.getOrderedProps=function(t,e){var r=prx.expandableProperties.getLayoutType(t);return"diagonal"==r?"display"==e?["tl","tr","br","bl"]:["tl","tr","bl","br"]:"tabular"==r?"display"==e?["t","r","b","l"]:["t","b","l","r"]:void 0},prx.expandableProperties.getExpandedValuesFromComponent=function(t,e){for(var r=0;r<prx.types[t].propertyGroups.length;r++)for(var i=0;i<prx.types[t].propertyGroups[r].properties.length;i++)for(var n=prx.types[t].propertyGroups[r].properties[i].slice(0),a=0;a<n.length;a++)if(n[a].name==e)return"function"==typeof n[a].expandedValues?n[a].expandedValues(n[a]):n[a].expandedValues},prx.expandableProperties.getDropdownValuesFromComponent=function(t,e){for(var r=0;r<prx.types[t].propertyGroups.length;r++)for(var i=0;i<prx.types[t].propertyGroups[r].properties.length;i++)for(var n=prx.types[t].propertyGroups[r].properties[i].slice(0),a=0;a<n.length;a++)if(n[a].name==e)return n[a].values},prx.expandableProperties.getDropdownList=function(t){var e=[];if("function"==typeof t)return!1;if($.isArray(t))e=t.map(function(t){return Object.assign({},{value:t.value,label:t.displayValue})});else for(var r=t.min;r<=t.max;r+=t.step)e.push({label:r,value:r});return e},prx.expandableProperties.getLayoutType=function(t){return t.hasOwnProperty("tl")||Array.isArray(t)&&-1!==t.indexOf("tl")&&(t.hasOwnProperty("tr")||Array.isArray(t)&&-1!==t.indexOf("tr"))&&(t.hasOwnProperty("bl")||Array.isArray(t)&&-1!==t.indexOf("bl"))&&(t.hasOwnProperty("br")||Array.isArray(t)&&-1!==t.indexOf("br"))?"diagonal":(t.hasOwnProperty("t")||Array.isArray(t)&&-1!==t.indexOf("t"))&&(t.hasOwnProperty("l")||Array.isArray(t)&&-1!==t.indexOf("l"))&&(t.hasOwnProperty("r")||Array.isArray(t)&&-1!==t.indexOf("r"))&&(t.hasOwnProperty("b")||Array.isArray(t)&&-1!==t.indexOf("b"))?"tabular":void 0},prx.expandableProperties.createExpandableModal=function(n,a,e,o,t,r,s,l){var p=prx.expandableProperties.getPffType(e);if("not-allowed"!==p&&void 0!==n&&""!==n){null==l&&null==s&&(s="p-"+a.id+"-"+o);var i={},c={},u=prx.expandableProperties.getLayoutType(n),h=prx.expandableProperties.getOrderedProps(n);p.includes("select")&&(i.list=prx.expandableProperties.getDropdownList(r));var d="";p.includes("input")&&(c.maxLength=6,d+=" small-input");var f="",m="",g=Object.assign({},i,c);if(p.includes("select"))var v={};"diagonal"==u?$.each(h,function(t,e){var r="interactions"==l?prx.expandableProperties.getInteractionPropExpandedValue(s,e):prx.expandableProperties.checkForExpandedProp(a[o],e);p.includes("select")?v.selected=prx.utils.escapeHTML(r):v={};var i={id:s+"-"+e,value:prx.utils.escapeHTML(r),icon:o+"-"+e,inputClass:d+(-1!==e.indexOf("r")?" force-icon-right":""),inputAttr:'data-expanded="true" data-expanded-values="'+n+'"',innerGroup:!0};void 0!==v.selected&&(g=Object.assign({},g,v)),m+=pff[p](Object.assign({},g,i)),1!=t&&3!=t||(f+=pff.wrapGroups({innerHtml:m}),m="")}):"tabular"==u&&$.each(h,function(t,e){var r="interactions"==l?prx.expandableProperties.getInteractionPropExpandedValue(s,e):prx.expandableProperties.checkForExpandedProp(a[o],e);p.includes("select")?v.selected=prx.utils.escapeHTML(r):v={};var i={id:s+"-"+e,value:prx.utils.escapeHTML(r),icon:o+"-"+e,inputClass:d+(-1!==e.indexOf("t")?" force-icon-top":-1!==e.indexOf("b")?" force-icon-bottom":""),inputAttr:'data-expanded="true" data-expanded-values="'+n+'"',innerGroup:!0};void 0!==v.selected&&(g=Object.assign({},g,v)),m+=pff[p](Object.assign({},g,i)),1!=t&&3!=t||(f+=pff.wrapGroups({innerHtml:m}),m="")});var y={id:"modal-properties-"+o,class:"modal-"+o+"-dropdown modal-expanded-properties property-popup",contentId:o+"-dropdown-wrapper",content:f,closeX:!1,size:"auto",arrow:!1,modalAttrs:"interactions"==l?"":'relative-to="#property-'+o+'-dropdown"'};if($("body").append(prx.mpmodal.helper.modalTemplateHtml(y)),"interactions"==l)var x={position:"relativeTo",relativeToDom:"#"+s+"-dropdown",hidden:!1,manualDestroyOnly:!1};else x={position:{x:0,y:0},hidden:!0,manualDestroyOnly:!0};$(".modal-"+o+"-dropdown.modal-expanded-properties").mpmodal(Object.assign({},x,{invisibleModal:!0,animationOut:"",onLoad:function(){$('[id^="'+s+'-"]').focus(function(){$(this).parent().addClass("focused")}).blur(function(){$(this).parent().removeClass("focused")});var t=$(this).find(".form-group-select-input > .form-field-select-wrapper > select");$.each(t,function(t,e){$(e).val($(e).siblings("input").val())}),prx.deltaDrag($('label[for^="'+s+'"]:not(label[for="'+s+'"])'),{initialized:function(t,e){$target=$("#"+$(".deltadrag-active").attr("for")),initialValue=parseFloat($target.focusin().val()||0)},delta:function(t,e){var r=initialValue+t.deltaX;r=r<0?0:r,0==$target.prop("disabled")&&$target.val(parseInt(r)).trigger("changeWithOutSave")},done:function(t,e){$target=$("#"+$(".deltadrag-active").attr("for")),0==$target.prop("disabled")&&$target.change()}}),"interactions"==l&&prx.expandableProperties.bindExpandableFields(n,s,a,o,e)}}))}},prx.expandableProperties.bindExpandableFields=function(t,r,e,i,n){var a="",o=prx.expandableProperties.getPffType(n);$.each(t,function(t,e){0!==t&&(a+=", "),a+="#"+r+"-"+e,o.includes("select")&&(a+=", #"+r+"-"+e+"-select")}),$(a).on("changeWithOutSave",function(t){prx.expandableProperties.onExpandedPropChange($(this),$(this).val(),e,i,n,r,"interactions")}).on("change",function(t){prx.expandableProperties.onExpandedPropChange($(this),$(this).val(),e,i,n,r,"interactions")})},prx.expandableProperties.onExpandedPropChange=function(t,e,r,i,n,a,o){if(!prx.expandableProperties.checkIfExpandableAllowed(n))return!1;null==o&&null==a&&(a="p-"+r.id+"-"+i);var s=t.data("expanded-values").split(",");"interactions"==o&&(i=i+"-"+t.attr("id").replace("-select","").split("-").last());var l=i.split("-").last(),p=i.replace("-"+l,"");if(null==o||"properties"==o){if("string"==typeof r[p]||"number"==typeof r[p]){var c=r[p];r[p]={};for(var u=0;u<s.length;u++)r[p][s[u]]=c}r[p][l]=e,$("#"+a.replace("-"+l,"")+", #"+a.replace("-"+l,"")+"-select").val(prx.expandableProperties.checkForExpandedProp(r[p]))}else if("interactions"==o){var h={};if(null==$("#"+a).attr("data-expanded-obj")){var d=$("#"+a).val();for(u=0;u<s.length;u++)h[s[u]]=d}else h=JSON.parse($("#"+a).attr("data-expanded-obj"));h[l]=e,$("#"+a).attr("data-expanded-obj",JSON.stringify(h)),$("#"+a+", #"+a+"-select").val(prx.expandableProperties.checkForExpandedProp(h))}$("#"+("interactions"==o?"form-interactions":"form-item-properties")).change()},prx.expandableProperties.updateExpandedValues=function(t,e,r,i){if(!prx.expandableProperties.checkIfExpandableAllowed(t))return!1;var n;if(null==i||"properties"==i)if(0==(n=!!/borderRadius/gi.test(r)&&prx.expandableProperties.normalizeBorderRadiusString(e)))$('[id^="'+r+'"]').val(e);else for(var a=prx.expandableProperties.getOrderedProps(n,"display"),o=0;o<a.length;o++)$("#"+r+"-"+a[o]).val(prx.expandableProperties.checkForExpandedProp(n,a[o])).change();else if("interactions"==i){var s={},l=$("#"+r).attr("data-expanded-values").split(",");void 0!==$("#"+r).attr("data-expanded-obj")&&(s=JSON.parse($("#"+r).attr("data-expanded-obj")));for(o=0;o<l.length;o++)s[l[o]]=e;$("#"+r).attr("data-expanded-obj",JSON.stringify(s))}},prx.expandableProperties.normalizeBorderRadiusString=function(t){if(void 0===t)return!1;if("string"!=typeof t||!t.includes(" ")&&!t.includes("/"))return!1;if(t.includes("/")){var e=t.split("/").first(),r=t.split("/").last(),i=e.split(" "),n=r.split(" ");return i=prx.expandableProperties.normalizeEllipticalRadiusValues(i),n=prx.expandableProperties.normalizeEllipticalRadiusValues(n),{tl:i[0]+" "+n[0],tr:i[1]+" "+n[1],br:i[2]+" "+n[2],bl:i[3]+" "+n[3]}}var a=t.split(" ");return{tl:(a=prx.expandableProperties.normalizeEllipticalRadiusValues(a))[0],tr:a[1],br:a[2],bl:a[3]}},prx.expandableProperties.normalizeEllipticalRadiusValues=function(t){switch((t=t.filter(function(t){return""!==t})).length){case 1:t.push(t[0]),t.push(t[0]),t.push(t[0]);break;case 2:t.push(t[0]),t.push(t[1]);break;case 3:t.push(t[1])}return t}},function(t,e){function h(t){return(h="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})(t)}prx.componentsHelper={},prx.componentlibraries=["common","iphone","android","ios7","material","metro","adrealestate","arrows_callouts","applewatch","generic2"],prx.componentlibrariesicon=["generic","material","swifticons-outlined","font-awesome-icons"],prx.comps={},prx.comps.radioButtonsSupportingGrouping=["material_radiobutton","material_onoffswitch","metro_radiobutton","metro_onoff","ios7_switch","ios10_switch","ios7_checkbox","basic_switch","basic_switch2","basic_radiobutton","basic_checkbox"],prx.comps.onetoten=[{value:"1",displayValue:"1"},{value:"2",displayValue:"2"},{value:"3",displayValue:"3"},{value:"4",displayValue:"4"},{value:"5",displayValue:"5"},{value:"6",displayValue:"6"},{value:"7",displayValue:"7"},{value:"8",displayValue:"8"},{value:"9",displayValue:"9"},{value:"10",displayValue:"10"}],prx.comps.fallbackFont="Arial",prx.comps.defaultcolor="555555",prx.comps.textPropertiesMappings={underline:["<u>","</u>"]},prx.comps.textFontStylePropertiesMappings={"font-weight":"","font-style":""},prx.comps.fontForRichTextEditor=function(t){for(var e={},r=[],i=prx.fonts._fonts.concat(prx.comps.fontsFullList),n=0;n<i.length;n++){var a=prx.componentsHelper.getFontCssFromFontFamily(i[n].value).replace("font-family: ","").replace(/font-weight:(\s*\w+);/g,"");void 0!==t&&(a=a.replace(/(?:font-style[^;]*;|font-weight[^;]*;)/gi,"").replace(";","").trim()),$.inArray(a.trim(),r)<0&&(r.push(a),e[a]=i[n].displayValue)}return e},prx.comps.getFontFamilyValue=function(e){return void 0===e?"":0<prx.comps.fontsFullList.filter(function(t){return t.value.replace(/\|\d+/gm,"")==e}).length?e:0<prx.comps.fontsFullList.filter(function(t){return t.displayValue==e}).length?prx.comps.fontsFullList.filter(function(t){return t.displayValue==e})[0].value.replace(/\|\d+/gm,""):e.replace(/\|\d+/gm,"")},prx.comps.fontsFullList=[{value:"Arial,sans-serif",displayValue:"Arial"},{value:"Arial Black,sans-serif",displayValue:"Arial Black"},{value:"Comic Sans MS,cursive",displayValue:"Comic Sans MS"},{value:"Courier New,monospace",displayValue:"Courier New"},{value:"Helvetica,sans-serif",displayValue:"Helvetica"},{value:"Impact,sans-serif",displayValue:"Impact"},{value:"Georgia,serif",displayValue:"Georgia"},{value:"Tahoma,sans-serif",displayValue:"Tahoma"},{value:"Times New Roman,serif",displayValue:"Times New Roman"},{value:"Trebuchet MS,sans-serif",displayValue:"Trebuchet MS"},{value:"Verdana,sans-serif",displayValue:"Verdana"},{value:"Roboto, sans-serif",displayValue:"Roboto"},{value:"Segoe UI, sans-serif",displayValue:"Segoe UI"},{value:"HelveticaNeue, Helvetica, Verdana, Arial, sans-serif|300",displayValue:"Helvetica Neue"},{value:"HelveticaNeue, Helvetica, Verdana, Arial, sans-serif|500",displayValue:"Helvetica Neue"},{value:"HelveticaNeue, Helvetica, Verdana, Arial, sans-serif|700",displayValue:"Helvetica Neue"},{value:"HelveticaNeue, Helvetica, Verdana, Arial, sans-serif|400",displayValue:"Helvetica Neue"},{value:"San Francisco Pro Display|100",displayValue:"San Francisco Pro Display"},{value:"San Francisco Pro Display|200",displayValue:"San Francisco Pro Display"},{value:"San Francisco Pro Display|300",displayValue:"San Francisco Pro Display"},{value:"San Francisco Pro Display|400",displayValue:"San Francisco Pro Display"},{value:"San Francisco Pro Display|500",displayValue:"San Francisco Pro Display"},{value:"San Francisco Pro Display|600",displayValue:"San Francisco Pro Display"},{value:"San Francisco Pro Display|700",displayValue:"San Francisco Pro Display"},{value:"San Francisco Pro Display|800",displayValue:"San Francisco Pro Display"},{value:"San Francisco Pro Display|900",displayValue:"San Francisco Pro Display"},{value:"San Francisco Pro Text|100",displayValue:"San Francisco Pro Text"},{value:"San Francisco Pro Text|200",displayValue:"San Francisco Pro Text"},{value:"San Francisco Pro Text|300",displayValue:"San Francisco Pro Text"},{value:"San Francisco Pro Text|400",displayValue:"San Francisco Pro Text"},{value:"San Francisco Pro Text|500",displayValue:"San Francisco Pro Text"},{value:"San Francisco Pro Text|600",displayValue:"San Francisco Pro Text"},{value:"San Francisco Pro Text|700",displayValue:"San Francisco Pro Text"},{value:"San Francisco Pro Text|800",displayValue:"San Francisco Pro Text"},{value:"San Francisco Pro Text|900",displayValue:"San Francisco Pro Text"},{value:"San Francisco Compact Display|100",displayValue:"San Francisco Compact Display"},{value:"San Francisco Compact Display|200",displayValue:"San Francisco Compact Display"},{value:"San Francisco Compact Display|300",displayValue:"San Francisco Compact Display"},{value:"San Francisco Compact Display|400",displayValue:"San Francisco Compact Display"},{value:"San Francisco Compact Display|500",displayValue:"San Francisco Compact Display"},{value:"San Francisco Compact Display|600",displayValue:"San Francisco Compact Display"},{value:"San Francisco Compact Display|700",displayValue:"San Francisco Compact Display"},{value:"San Francisco Compact Display|800",displayValue:"San Francisco Compact Display"},{value:"San Francisco Compact Display|900",displayValue:"San Francisco Compact Display"},{value:"San Francisco Compact Text|100",displayValue:"San Francisco Compact Text"},{value:"San Francisco Compact Text|200",displayValue:"San Francisco Compact Text"},{value:"San Francisco Compact Text|300",displayValue:"San Francisco Compact Text"},{value:"San Francisco Compact Text|400",displayValue:"San Francisco Compact Text"},{value:"San Francisco Compact Text|500",displayValue:"San Francisco Compact Text"},{value:"San Francisco Compact Text|600",displayValue:"San Francisco Compact Text"},{value:"San Francisco Compact Text|700",displayValue:"San Francisco Compact Text"},{value:"San Francisco Compact Text|800",displayValue:"San Francisco Compact Text"},{value:"San Francisco Compact Text|900",displayValue:"San Francisco Compact Text"},{value:"cursive",displayValue:"cursive"},{value:"monospace",displayValue:"monospace"},{value:"sans-serif",displayValue:"sans-serif"},{value:"serif",displayValue:"serif"}],prx.comps.fonts=[{optgroup:!0,displayValue:"hide-group-header",options:prx.fonts._fonts.concat([{value:"multiple-fonts",displayValue:"Multiple"},{value:"",displayValue:""},{value:"Arial,sans-serif",displayValue:"Arial"},{value:"Courier New,monospace",displayValue:"Courier New"},{value:"Georgia,serif",displayValue:"Georgia"},{value:"Times New Roman,serif",displayValue:"Times New Roman"},{value:"Trebuchet MS,sans-serif",displayValue:"Trebuchet MS"},{value:"Verdana,sans-serif",displayValue:"Verdana"},{value:"Roboto, sans-serif",displayValue:"Roboto"},{value:"Segoe UI, sans-serif",displayValue:"Segoe UI"},{value:"San Francisco Pro Display",displayValue:"San Francisco Pro Display"},{value:"San Francisco Pro Text",displayValue:"San Francisco Pro Text"},{value:"San Francisco Compact Display",displayValue:"San Francisco Compact Display"},{value:"San Francisco Compact Text",displayValue:"San Francisco Compact Text"}])}],prx.comps.fontSorting=function(t,e){return t.displayValue.toLowerCase()<e.displayValue.toLowerCase()?-1:t.displayValue.toLowerCase()>e.displayValue.toLowerCase()?1:0},prx.comps.fontStyles=prx.fontManager?prx.fontManager.getAllVariantsOptions():[],prx.comps.textsize=[{value:"9",displayValue:"9"},{value:"10",displayValue:"10"},{value:"11",displayValue:"11"},{value:"12",displayValue:"12"},{value:"13",displayValue:"13"},{value:"14",displayValue:"14"},{value:"15",displayValue:"15"},{value:"16",displayValue:"16"},{value:"17",displayValue:"17"},{value:"18",displayValue:"18"},{value:"20",displayValue:"20"},{value:"21",displayValue:"21"},{value:"24",displayValue:"24"},{value:"28",displayValue:"28"},{value:"32",displayValue:"32"},{value:"36",displayValue:"36"},{value:"48",displayValue:"48"},{value:"64",displayValue:"64"},{value:"72",displayValue:"72"},{value:"144",displayValue:"144"}],prx.comps.textspacing=[{value:"auto",displayValue:"auto"},{value:"1",displayValue:"1"},{value:"2",displayValue:"2"},{value:"3",displayValue:"3"},{value:"4",displayValue:"4"},{value:"5",displayValue:"5"},{value:"6",displayValue:"6"},{value:"7",displayValue:"7"},{value:"8",displayValue:"8"},{value:"9",displayValue:"9"},{value:"10",displayValue:"10"}],prx.comps.lineheight=[{value:"auto",displayValue:"auto"},{value:"1",displayValue:"1"},{value:"2",displayValue:"2"},{value:"3",displayValue:"3"},{value:"4",displayValue:"4"},{value:"5",displayValue:"5"},{value:"6",displayValue:"6"},{value:"7",displayValue:"7"},{value:"8",displayValue:"8"},{value:"9",displayValue:"9"},{value:"10",displayValue:"10"}],window.datetime=new Date,window.weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],window.shortWeekdays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],window.shortMonths=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],window.months=["January","February","March","April","May","June","July","August","September","October","November","December"],prx.comps.dateGeneralFormat=[{value:"date",displayValue:"Date Only"},{value:"time",displayValue:"Time Only"},{value:"datetime",displayValue:"Date First"},{value:"timedate",displayValue:"Time First"}],prx.comps.dateFormat=[{value:"daymonthyear",displayValue:"Day Month Year"},{value:"monthdayyear",displayValue:"Month Day Year"},{value:"yearmonthday",displayValue:"Year Month Day"}],prx.comps.dayNameFormat=[{value:"none",displayValue:"None"},{value:"short",displayValue:"Day as abbreviation ("+shortWeekdays[datetime.getDay()]+")"},{value:"long",displayValue:"Day as full name ("+weekdays[datetime.getDay()]+")"}],prx.comps.dayFormat=[{value:"none",displayValue:"None"},{value:"single",displayValue:"Day without leading zero ("+datetime.getDate()+")"},{value:"double",displayValue:"Day with leading zero ("+("0"+datetime.getDate()).slice(-2)+")"},{value:"superscript",displayValue:"Day with superscript ("+function(){var t=datetime.getDate().toString().slice(-2),e="";if(10<datetime.getDate()&&datetime.getDate()<20)e="th";else switch(t){case"1":e="st";break;case"2":e="nd";break;case"3":e="rd";break;default:e="th"}return datetime.getDate()+e.sup()}()+")"}],prx.comps.monthFormat=[{value:"none",displayValue:"None"},{value:"single",displayValue:"Month without leading zero ("+(datetime.getMonth()+1)+")"},{value:"double",displayValue:"Month with leading zero ("+("0"+(datetime.getMonth()+1)).slice(-2)+")"},{value:"short",displayValue:"Month as abbreviation ("+shortMonths[datetime.getMonth()]+")"},{value:"long",displayValue:"Month as full name ("+months[datetime.getMonth()]+")"}],prx.comps.yearFormat=[{value:"none",displayValue:"None"},{value:"short",displayValue:"Two digit year ("+datetime.getFullYear().toString().slice(-2)+")"},{value:"long",displayValue:"Four digit year ("+datetime.getFullYear()+")"}],prx.comps.timeFormat=[{value:"24",displayValue:"24H format ("+datetime.getHours()+":"+("0"+datetime.getMinutes()).slice(-2)+")"},{value:"12a",displayValue:"12H without AM/PM ("+(12<datetime.getHours()?datetime.getHours()-12:datetime.getHours())+":"+("0"+datetime.getMinutes()).slice(-2)+")"},{value:"12b",displayValue:"12H with AM/PM ("+function(){var t=0;if(12<datetime.getHours()){t=datetime.getHours()-12;var e="PM"}else{t=datetime.getHours();e="AM"}return t+":"+("0"+datetime.getMinutes()).slice(-2)+" "+e}()+")"}],prx.comps.dateSeparator=[{value:"/",displayValue:"Slash (/)"},{value:".",displayValue:"Dot (.)"},{value:"-",displayValue:"Dash (-)"},{value:" ",displayValue:"Space ( )"}],prx.commonproperties={},prx.commonproperties.backgroundColor={caption:"Background",name:"backgroundColor",proptype:"background-color",type:"gradients-colorpicker",value:function(t,e){return void 0===t.backgroundColor?"":t.backgroundColor},liveUpdate:"background-color",changeProperty:{caption:"Background color",selector:".changeProperty-backgroundColor",property:"background-color",transitionable:!0}},prx.commonproperties.backgroundColorSolid={caption:"Background",name:"backgroundColor",proptype:"background-color",type:"solid-colorpicker",value:function(t,e){return void 0===t.backgroundColor?"":t.backgroundColor},liveUpdate:"background-color",changeProperty:{caption:"Background color",selector:".changeProperty-backgroundColor",property:"background-color",transitionable:!0}},prx.commonproperties.backgroundColorActive={caption:"Active",name:"backgroundColorActive",proptype:"background-color-2-active",type:"colorpicker",value:function(t,e){return t.backgroundColorActive},liveUpdate:"background-color",changeProperty:{caption:"Active Background color",selector:".changeProperty-backgroundColorActive",property:"background-color",transitionable:!0}},prx.commonproperties.actions={caption:"Item",name:"actions",type:"action",value:function(t,e){return void 0===t.actions&&(t.actions=[]),t.actions.length},changeProperty:{caption:"Interactions",selector:"",property:"action",transitionable:!1,changeable:!1}},prx.commonproperties.actions_hiddenByDefault=function(t){return{caption:"Item",name:"actions",type:"action",value:function(t,e){return void 0===t.actions&&(t.actions=[]),t.actions.length},changeProperty:{caption:"Interactions",selector:"",property:"action",transitionable:!1,changeable:!1},hiddenByDefault:t}},prx.commonproperties.actions_listitems={caption:"List item",name:"actions",type:"action",value:function(t,e,r){return void 0===t.listitems[r].actions&&(t.listitems[r].actions=[]),t.listitems[r].actions.length}},prx.commonproperties.actions_listitems_hiddenByDefault=function(t){return{caption:"List item",name:"actions",type:"action",value:function(t,e,r){return void 0===t.listitems[r].actions&&(t.listitems[r].actions=[]),t.listitems[r].actions.length},hiddenByDefault:t}},prx.commonproperties.actions_buttons={caption:"Button",name:"actions",type:"action",value:function(t,e,r){return void 0===t.buttons[r].actions&&(t.buttons[r].actions=[]),t.buttons[r].actions.length}},prx.commonproperties.actions_buttons_hiddenByDefault=function(t){return{caption:"Button",name:"actions",type:"action",value:function(t,e,r){return void 0===t.buttons[r].actions&&(t.buttons[r].actions=[]),t.buttons[r].actions.length},hiddenByDefault:t}},prx.commonproperties.actions_tabs={caption:"Tab",name:"actions",type:"action",value:function(t,e,r){return void 0===t.tabs[r].actions&&(t.tabs[r].actions=[]),t.tabs[r].actions.length}},prx.commonproperties.actions_tabs_hiddenByDefault=function(t){return{caption:"Tab",name:"actions",type:"action",value:function(t,e,r){return void 0===t.tabs[r].actions&&(t.tabs[r].actions=[]),t.tabs[r].actions.length},hiddenByDefault:t}},prx.commonproperties.borderWidth={caption:"Border",name:"borderWidth",proptype:"border-width",type:"combo-select",value:function(t,e){return t.borderWidth},values:{min:0,max:20,step:1},changeProperty:{caption:"Border width",selector:".changeProperty-borderWidth",property:"border-width",transitionable:!0}},prx.commonproperties.borderWidthExpandable={caption:"Border",name:"borderWidth",proptype:"border-width",type:"combo-select",value:function(t,e){return t.borderWidth},values:{min:0,max:20,step:1},expandableType:"borderWidth",expandedValues:["t","r","l","b"],changeProperty:{caption:"Border width",selector:".changeProperty-borderWidth",property:"border-width",transitionable:!0}},prx.commonproperties.borderColor={caption:!1,name:"borderColor",proptype:"border-color",type:"solid-colorpicker",value:function(t,e){return void 0===t.borderColor?"":t.borderColor},liveUpdate:"border-color",changeProperty:{caption:"Border color",selector:".changeProperty-borderColor",property:"border-top-color,border-bottom-color,border-left-color,border-right-color",transitionable:!0},hiddenByDefault:function(t){return"image"==t.type&&!(!prx.mask.isActive(t)&&!prx.mask.editModeIsMaskSelected(t))}},prx.commonproperties.borderColorActive={caption:"Active",name:"borderColorActive",proptype:"border-color-2-active",type:"colorpicker",value:function(t,e){return t.borderColorActive},liveUpdate:"border-color",changeProperty:{caption:"Active Border color",selector:".changeProperty-borderColorActive",property:"border-top-color,border-bottom-color,border-left-color,border-right-color",transitionable:!0}},prx.commonproperties.borderStyle={caption:!1,name:"borderStyle",proptype:"border-style",type:"select",value:function(t,e){return void 0===t.borderStyle&&(t.borderStyle="solid"),t.borderStyle},values:[{value:"solid",displayValue:"Solid"},{value:"dotted",displayValue:"Dotted"},{value:"dashed",displayValue:"Dashed"},{value:"double",displayValue:"Double"},{value:"none",displayValue:"None"}],changeProperty:{caption:"Border Style",selector:".changeProperty-borderStyle",property:"border-style",transitionable:!1}},prx.commonproperties.shadowColor={caption:"Shadow",name:"shadowColor",proptype:"shadow-color",type:"colorpicker",value:function(t,e){return void 0===t.shadowColor?"":t.shadowColor},changeProperty:{caption:"Shadow",rerender:!0,changeable:!1}},prx.commonproperties.pffSettingsTextProperties={labelBelow:!0,groupClass:"add-text-prop-left-margin icon-only-bordered-checkbox"},prx.commonproperties.pffSettingsLineHeight={labelBelow:!0,groupClass:"add-text-prop-left-margin add-spacing-extra-label center-input"},prx.commonproperties.pffSettingsCharacterSpacing={groupClass:"align-label-center-to-left center-input",labelBelow:!0},prx.commonproperties.pffSettingsColor={labelBelow:!0,groupClass:"colorpicker-reverse-row text-properties"},prx.commonproperties.pffSettingsTextFontStyle={groupClass:"margin-fourteen"},prx.commonproperties.pffSettingsTextAlignment={groupClass:"alignment-div"},prx.commonproperties.borderRadius={caption:'<span class="icon icon-border-radius" title="Border radius"></span>',name:"borderRadius",proptype:"border-radius",type:"combo-select",value:function(t,e){return void 0===t.borderRadius?"":t.borderRadius},values:{min:0,max:20,step:1},changeProperty:{caption:"Border radius",selector:".changeProperty-borderRadius",property:"border-radius",transitionable:!0}},prx.commonproperties.borderRadiusExpandable={caption:'<span class="icon icon-border-radius" title="Border radius"></span>',name:"borderRadius",proptype:"border-radius",type:"combo-select",value:function(t,e){return void 0===t.borderRadius?"":t.borderRadius},values:{min:0,max:20,step:1},expandableType:"borderRadius",expandedValues:["tl","tr","bl","br"],changeProperty:{caption:"Border radius",selector:".changeProperty-borderRadius",property:"border-radius",transitionable:!0}},prx.commonproperties.text={caption:"Text",name:"text",type:"input",value:function(t,e){return void 0===t.text?"":t.text},changeProperty:{caption:"Text",selector:".changeProperty-text",property:"text",transitionable:!1}},prx.commonproperties.text_textarea={caption:"Text",name:"text",type:"textarea",value:function(t,e){return void 0===t.text?"":t.text},changeProperty:{caption:"Text",selector:".changeProperty-text",property:"text",transitionable:!1}},prx.commonproperties.body_textarea={caption:"Body",name:"text",type:"textarea",value:function(t,e){return void 0===t.text?"":t.text},changeProperty:{caption:"Body",selector:".changeProperty-body",property:"text",transitionable:!1}},prx.commonproperties.textSubtitle={caption:"Subtitle",name:"subtitle",proptype:"text-2-subtitle",type:"input",value:function(t,e){return void 0===t.subtitle?"":t.subtitle},changeProperty:{caption:"Subtitle",selector:".changeProperty-subtitle",property:"text",transitionable:!1}},prx.commonproperties.textSubtitle_textarea={caption:"Subtitle",name:"subtitle",proptype:"text-2-subtitle",type:"textarea",value:function(t,e){return void 0===t.subtitle?"":t.subtitle},changeProperty:{caption:"Subtitle",selector:".changeProperty-subtitle",property:"text",transitionable:!1}},prx.commonproperties.footnote_textarea={caption:"Footnote",name:"subtitle",proptype:"text-2-subtitle",type:"textarea",value:function(t,e){return void 0===t.subtitle?"":t.subtitle},changeProperty:{caption:"Footnote",selector:".changeProperty-footnote",property:"text",transitionable:!1}},prx.commonproperties.textFont={caption:{label:"Font family",class:"text-properties-label text-fontfamily-label"},name:"textFont",proptype:"font-family",type:"select",value:function(t,e){return void 0===t.textFont?"":t.textFont},values:function(){return prx.comps.fonts},changeProperty:{caption:"Text font",selector:".changeProperty-textFont",property:"font-family",transitionable:!1}},prx.commonproperties.textFontStyle={caption:{label:"Font style",class:"text-properties-label text-fontstyle-label"},name:"textFontStyle",proptype:"font-style",type:"select",pffSettings:prx.commonproperties.pffSettingsTextFontStyle,value:function(t,e){return void 0===t.textFontStyle?"":t.textFontStyle},values:function(){return prx.comps.fontStyles},hiddenByDefault:function(t){return!1},changeProperty:{caption:"Text font style",rerender:!0}},prx.commonproperties.textFontRichText=function(t,e,r){var i=prx.componentsHelper.cloneobject(prx.commonproperties.textFont);return i.relatedEditableProperties=e,i.relatedCSSProperties=t,void 0!==r&&void 0!==r.eq&&void 0!==r.condition&&(i.hiddenByDefault=function(t){return"eq"==r.eq?t.name==r.condition:t.name!==r.condition}),i},prx.commonproperties.textFontButtonRichText=function(t,e,r,i){var n=prx.componentsHelper.cloneobject(prx.commonproperties.textFontButton);return n.relatedEditableProperties=e,n.relatedCSSProperties=t,void 0!==r&&void 0!==r.eq&&void 0!==r.condition&&(n.hiddenByDefault=function(t){return"eq"==r.eq?t.name==r.condition:t.name!==r.condition}),n},prx.commonproperties.textSizeRichText=function(t,e,r){var i=prx.componentsHelper.cloneobject(prx.commonproperties.textSize);return i.relatedEditableProperties=e,i.relatedCSSProperties=t,void 0!==r&&void 0!==r.eq&&void 0!==r.condition&&(i.hiddenByDefault=function(t){return"eq"==r.eq?t.name==r.condition:t.name!==r.condition}),i},prx.commonproperties.textSizeButtonRichText=function(t,e,r){var i=prx.componentsHelper.cloneobject(prx.commonproperties.textSizeButton);return i.relatedEditableProperties=e,i.relatedCSSProperties=t,void 0!==r&&void 0!==r.eq&&void 0!==r.condition&&(i.hiddenByDefault=function(t){return"eq"==r.eq?t.name==r.condition:t.name!==r.condition}),i},prx.commonproperties.ios7TextColorRichText=function(t,e,r,i){var n=prx.commonproperties.ios7TextColor(i);return n.relatedEditableProperties=e,n.relatedCSSProperties=t,void 0!==r&&void 0!==r.eq&&void 0!==r.condition&&(n.hiddenByDefault=function(t){return"eq"==r.eq?t.name==r.condition:t.name!==r.condition}),n},prx.commonproperties.ios7TextColorButtonRichText=function(t,e,r){var i=prx.componentsHelper.cloneobject(prx.commonproperties.ios7ButtonsTextColor);return i.relatedEditableProperties=e,i.relatedCSSProperties=t,void 0!==r&&void 0!==r.eq&&void 0!==r.condition&&(i.hiddenByDefault=function(t){return"eq"==r.eq?t.name==r.condition:t.name!==r.condition}),i},prx.commonproperties.ios7TextColorListItemRichText=function(t,e,r){var i=prx.componentsHelper.cloneobject(prx.commonproperties.ios7ListItemsTextColor);return i.relatedEditableProperties=e,i.relatedCSSProperties=t,void 0!==r&&void 0!==r.eq&&void 0!==r.condition&&(i.hiddenByDefault=function(t){return"eq"==r.eq?t.name==r.condition:t.name!==r.condition}),i},prx.commonproperties.textPropertiesRichText=function(t,s,e,l){if(void 0===l)return!1;var r={caption:{label:"Underline",class:"colorpicker-wrapper text-underline-label"},pffSettings:prx.commonproperties.pffSettingsTextProperties,name:l.propName,proptype:"text-properties",type:"checkbox",relatedEditableProperties:s,relatedCSSProperties:t,value:function(t,e,r){var i=l.propName,n=l.useAsDynProp;s=$.isArray(s)?s:[s];for(var a=0;a<s.length;a++){if(n){var o=s[a].split(/[.]+/);return void 0===t[o[0]][r][i]?prx.components[t.type][o[0]][0][i]:t[o[0]][r][i]}return void 0===t[i]?prx.components[t.type][i]:t[i]}},values:[{value:"underline",displayValue:"",icon:"text-underline"}],changeProperty:{caption:l.caption,transitionable:!1}};return r.changeProperty.changeFunction=function(t,e,r,i,n){prx.componentsHelper.changeFunctionForTextProperties(t,e,n,l.propName)},void 0!==e&&void 0!==e.eq&&void 0!==e.condition?r.hiddenByDefault=function(t){return"eq"==e.eq?t.name==e.condition:t.name!==e.condition}:"function"==typeof e&&(r.hiddenByDefault=e),void 0!==l.onChange&&(r.data=l.onChange),r},prx.commonproperties.textFontStyleRichText=function(t,s,e,l){if(void 0===l)return!1;var r={caption:{label:"Font style",class:"text-properties-label text-fontstyle-label"},name:l.propName,proptype:"font-style",type:"select",relatedEditableProperties:s,relatedCSSProperties:t,pffSettings:prx.commonproperties.pffSettingsTextFontStyle,value:function(t,e,r){var i=l.propName,n=l.useAsDynProp;s=$.isArray(s)?s:[s];for(var a=0;a<s.length;a++){if(!n)return void 0===t[i]?prx.components[t.type][i]:t[i];if(void 0!==r){var o=s[a].split(/[.]+/);return void 0===t[o[0]][r][i]?prx.components[t.type][o[0]][0][i]:t[o[0]][r][i]}}},values:function(){return prx.comps.fontStyles},hiddenByDefault:function(t,e,r){return!1},changeProperty:{caption:l.caption,selector:".changeProperty-"+l.caption,property:"font-style",transitionable:!1,changeFunction:function(t,e,r,i,n){prx.componentsHelper.changeFunctionForTextFontStyleProperties(t,e,n,l.propName)}}};return void 0!==l.onChange&&(r.onChange=l.onChange),void 0!==e&&void 0!==e.eq&&void 0!==e.condition?r.hiddenByDefault=function(t){return"eq"==e.eq?t.name==e.condition:t.name!==e.condition}:"function"==typeof e&&(r.hiddenByDefault=e),r},prx.commonproperties.textAlignRichText=function(t,e,r){var i=prx.componentsHelper.cloneobject(prx.commonproperties.textAlign);return i.relatedEditableProperties=e,i.relatedCSSProperties=t,void 0!==r&&void 0!==r.eq&&void 0!==r.condition&&(i.hiddenByDefault=function(t){return"eq"==r.eq?t.name==r.condition:t.name!==r.condition}),i},prx.commonproperties.textColorRichText=function(t,e,r){var i=prx.commonproperties.textColor(r);return i.relatedEditableProperties=e,i.relatedCSSProperties=t,i},prx.commonproperties.materialTextColorRichText=function(t,e,r,i){var n=prx.commonproperties.materialTextColor(r);return n.relatedEditableProperties=e,n.relatedCSSProperties=t,void 0!==i&&void 0!==i.eq&&void 0!==i.condition&&(n.hiddenByDefault=function(t){return"eq"==i.eq?t.name==i.condition:t.name!==i.condition}),n},prx.commonproperties.textSizeSubtitleRichText=function(t,e){var r=prx.componentsHelper.cloneobject(prx.commonproperties.textSizeSubtitle);return r.relatedEditableProperties=e,r.relatedCSSProperties=t,r},prx.commonproperties.textFontSubtitleRichText=function(t,e){var r=prx.componentsHelper.cloneobject(prx.commonproperties.textFontSubtitle);return r.relatedEditableProperties=e,r.relatedCSSProperties=t,r},prx.commonproperties.textColorSubtitleRichText=function(t,e){var r=prx.componentsHelper.cloneobject(prx.commonproperties.textColorSubtitle);return r.relatedEditableProperties=e,r.relatedCSSProperties=t,r},prx.commonproperties.textAlignSubtitleRichText=function(t,e){var r=prx.componentsHelper.cloneobject(prx.commonproperties.textAlignSubtitle);return r.relatedEditableProperties=e,r.relatedCSSProperties=t,r},prx.commonproperties.metroTextColorRichText=function(t,e){var r=prx.componentsHelper.cloneobject(prx.commonproperties.metroTextColor);return r.relatedEditableProperties=e,r.relatedCSSProperties=t,r},prx.commonproperties.textFontSubtitle={caption:{label:"Font family",class:"text-properties-label text-fontfamily-label"},name:"subtitleFont",proptype:"font-family-2-subtitle",type:"select",value:function(t,e){return void 0===t.subtitleFont?"":t.subtitleFont},values:function(){return prx.comps.fonts},changeProperty:{caption:"Subtitle font",selector:".changeProperty-subtitleFont",property:"font-family",transitionable:!1}},prx.commonproperties.textFontStyleSubtitle={caption:{label:"Font style",class:"text-properties-label text-fontstyle-label"},name:"subtitleFontStyle",proptype:"font-style-subtitle",type:"select",pffSettings:prx.commonproperties.pffSettingsTextFontStyle,value:function(t,e){return void 0===t.textFontStyle?"":t.subtitleFontStyle},values:function(){return prx.comps.fontStyles},hiddenByDefault:function(t){return!1},changeProperty:{caption:"Subtitle Style",selector:".changeProperty-subtitleFontStyle",property:"font-weight",transitionable:!1}},prx.commonproperties.textFontButton={caption:{label:"Font family",class:"text-properties-label text-fontfamily-label"},name:"textFont",proptype:"font-family-button",type:"select",value:function(t,e,r){return void 0===t.buttons[r].textFont?"":t.buttons[r].textFont},values:function(){return prx.comps.fonts},changeProperty:{caption:"Text font",selector:".changeProperty-textFontButton",property:"font-family",transitionable:!1}},prx.commonproperties.textFontLabel={caption:{label:"Font family",class:"text-properties-label text-fontfamily-label"},name:"labelFont",proptype:"font-family-3-label",type:"select",value:function(t,e){return void 0===t.labelFont?"":t.labelFont},values:function(){return prx.comps.fonts},changeProperty:{caption:"Label font",selector:".changeProperty-labelFont",property:"font-family",transitionable:!1}},prx.commonproperties.textFontStyleLabel={caption:{label:"Font style",class:"text-properties-label text-fontstyle-label"},name:"labelFontStyle",proptype:"font-style-3-label",type:"select",value:function(t,e){return void 0===t.labelFontStyle?"":t.labelFontStyle},values:function(){return prx.comps.fontStyles},changeProperty:{caption:"Label font style",selector:".changeProperty-labelFontStyle",property:"font-style",transitionable:!1}},prx.commonproperties.textPropertiesLabel={caption:{label:"Underline",class:"colorpicker-wrapper text-underline-label"},name:"labelProperties",proptype:"properties-3-label",type:"checkbox",pffSettings:prx.commonproperties.pffSettingsTextProperties,value:function(t,e){return void 0===t.labelProperties&&(t.labelProperties=[]),t.labelProperties},values:[{value:"underline",displayValue:"",icon:"text-underline"}],changeProperty:{caption:"Label underline",selector:".changeProperty-labelProperties",property:"label-properties",transitionable:!1}},prx.commonproperties.textSize={caption:!1,name:"textSize",proptype:"font-size",type:"combo-select",value:function(t,e){return void 0===t.textSize?"":t.textSize},values:prx.comps.textsize,changeProperty:{caption:"Text size",selector:".changeProperty-textSize",property:"font-size",transitionable:!0}},prx.commonproperties.textSizeButton={caption:!1,name:"textSize",proptype:"font-size",type:"combo-select",value:function(t,e,r){return void 0===t.buttons[r].textSize?"":t.buttons[r].textSize},values:prx.comps.textsize,changeProperty:{caption:"Text size",selector:".changeProperty-textSize",property:"font-size",transitionable:!0}},prx.commonproperties.textSizeActive={caption:!1,name:"textSizeActive",proptype:"font-size-2-active",type:"combo-select",value:function(t,e){return void 0===t.textSizeActive?"":t.textSizeActive},values:prx.comps.textsize,changeProperty:{caption:"Active Text size",selector:".changeProperty-textSizeActive",property:"font-size",transitionable:!0}},prx.commonproperties.textSizeSubtitle={caption:!1,name:"subtitleSize",proptype:"font-size-3-subtitle",type:"combo-select",value:function(t,e){return void 0===t.subtitleSize?"":t.subtitleSize},values:prx.comps.textsize,changeProperty:{caption:"Subtitle size",selector:".changeProperty-subtitleSize",property:"font-size",transitionable:!0}},prx.commonproperties.textSizeLabel={caption:!1,name:"labelSize",proptype:"font-size-4-label",type:"combo-select",value:function(t,e){return void 0===t.labelSize?"":t.labelSize},values:prx.comps.textsize,changeProperty:{caption:"Label size",selector:".changeProperty-labelSize",property:"font-size",transitionable:!0}},prx.commonproperties.textColor=function(t){return void 0===t&&(t="Color"),{caption:{label:t,class:"text-properties-label text-color-label"},name:"textColor",proptype:"font-color",type:"solid-colorpicker",pffSettings:prx.commonproperties.pffSettingsColor,value:function(t,e){return void 0===t.textColor?"":t.textColor},liveUpdate:"color",changeProperty:{caption:"Text color",selector:".changeProperty-textColor",property:"color",transitionable:!0}}},prx.commonproperties.textColorActive={caption:"Active",name:"textColorActive",proptype:"font-color-2-active",type:"solid-colorpicker",pffSettings:prx.commonproperties.pffSettingsColor,value:function(t,e){return void 0===t.textColorActive?"":t.textColorActive},liveUpdate:"color",changeProperty:{caption:"Active Text color",selector:".changeProperty-textColorActive",property:"color",transitionable:!0}},prx.commonproperties.textColorSubtitle={caption:{label:"Color",class:"text-properties-label text-color-label"},name:"subtitleColor",proptype:"font-color-3-subtitle",type:"solid-colorpicker",pffSettings:prx.commonproperties.pffSettingsColor,value:function(t,e){return void 0===t.subtitleColor?"":t.subtitleColor},liveUpdate:"color",changeProperty:{caption:"Subtitle color",selector:".changeProperty-subtitleColor",property:"color",transitionable:!0}},prx.commonproperties.textColorLabel={caption:{label:"Color",class:"text-properties-label text-color-label"},name:"labelColor",proptype:"font-color-4-label",type:"solid-colorpicker",pffSettings:prx.commonproperties.pffSettingsColor,value:function(t,e){return void 0===t.labelColor?"":t.labelColor},liveUpdate:"color",changeProperty:{caption:"Label color",selector:".changeProperty-labelColor",property:"color",transitionable:!0}},prx.commonproperties.placeholderColor={caption:"Placeholder Color",name:"placeholderColor",proptype:"placeholder-color",type:"solid-colorpicker",value:function(t,e){return void 0===t.placeholderColor?"999999":t.placeholderColor},liveUpdate:"color",changeProperty:{caption:"Placeholder color",selector:".changeProperty-placeholderColor",property:"color",transitionable:!0}},prx.commonproperties.textProperties={caption:{label:"Underline",class:"colorpicker-wrapper text-underline-label"},name:"textProperties",proptype:"text-properties",type:"checkbox",pffSettings:prx.commonproperties.pffSettingsTextProperties,value:function(t,e){return void 0===t.textProperties&&(t.textProperties=[]),t.textProperties},values:[{value:"underline",displayValue:"",icon:"text-underline"}],changeProperty:{caption:"Underline",rerender:!0}},prx.commonproperties.getFontStyleValueCombined=function(t,e){var r,i,n=[];e=$.isArray(e)?e:[e];for(var a=0;a<e.length;a++)""!==e[a]?(e[a]=e[a].toString(),null!==e[a].match(/[a-zA-Z]+/g)&&(i=e[a].match(/[a-zA-Z]+/g)[0]),null!==e[a].match(/\d+/g)&&(r=e[a].match(/\d+/g)[0])):r=i="";return void 0!==r&&700<=r&&n.push("bold"),void 0!==i&&-1<i.indexOf("italic")&&n.push("italic"),n.concat(t)},prx.commonproperties.textAlign={caption:{label:"Alignment",class:"text-properties-label text-alignment-label"},proptype:"text-align",name:"textAlign",type:"radio",pffSettings:prx.commonproperties.pffSettingsTextAlignment,value:function(t,e){return void 0===t.textAlign?"":t.textAlign},values:[{value:"left",displayValue:"",icon:"align-left"},{value:"center",displayValue:"",icon:"align-center"},{value:"right",displayValue:"",icon:"align-right"},{value:"justify",displayValue:"",icon:"align-justify"}],changeProperty:{caption:"Text align",selector:".changeProperty-textAlign",property:"text-align",transitionable:!1}},prx.commonproperties.textAlignSubtitle={caption:{label:"Alignment",class:"text-properties-label text-alignment-label"},name:"subtitleAlign",proptype:"text-align-2-subtitle",type:"radio",pffSettings:prx.commonproperties.pffSettingsTextAlignment,value:function(t,e){return void 0===t.subtitleAlign?"":t.subtitleAlign},values:[{value:"left",displayValue:"",icon:"align-left"},{value:"center",displayValue:"",icon:"align-center"},{value:"right",displayValue:"",icon:"align-right"}],changeProperty:{caption:"Subtitle Text align",selector:".changeProperty-subtitleAlign",property:"text-align",transitionable:!1}},prx.commonproperties.textAlignLabel={caption:{label:"Alignment",class:"text-properties-label text-alignment-label"},name:"labelAlign",proptype:"text-align-3-label",type:"radio",pffSettings:prx.commonproperties.pffSettingsTextAlignment,value:function(t,e){return void 0===t.labelAlign?"":t.labelAlign},values:[{value:"left",displayValue:"",icon:"align-left"},{value:"center",displayValue:"",icon:"align-center"},{value:"right",displayValue:"",icon:"align-right"}],changeProperty:{caption:"Label Text align",selector:".changeProperty-labelAlign",property:"text-align",transitionable:!1}},prx.commonproperties.labelInput={caption:!1,name:"label",type:"input",value:function(t,e){return t.label},changeProperty:{caption:"Label text",rerender:!0}},prx.commonproperties.placeholderInput={caption:"Placeholder text",name:"placeholder",proptype:"placeholder-input",type:"input",value:function(t,e){return void 0===t.placeholder?"":t.placeholder},changeProperty:{caption:"Placeholder text",rerender:!0}},prx.commonproperties.radioButtonsGroupNameInput={caption:"Belongs to group",help:"Add radio buttons or On/off switches to the same group within the same screen/container, to have only one of them active at a time.",name:"radioButtonsGroupName",proptype:"radio-group-name",type:"custom-select",pffSettings:{groupClass:"combo-select-input",inputAttr:'getproptype="radio-group-name"'},customDefault:function(){return prx.stc.helper.getNextAvailableNameForRadioButtonGroups()},onChange:function(t){if(void 0===t.radioButtonsGroupName&&(t.radioButtonsGroupName=""),prx.editor){var r=0<$("input#p-"+t.id+"-radioButtonsGroupName").length?$("input#p-"+t.id+"-radioButtonsGroupName").val():$("input#p-all-selected-radioButtonsGroupName").val();if("custom-select-custom"==(r=prx.componentsHelper.getProp(r,"radio-group-name")))return;""==r?(t.radioButtonsGroupName="",e(r,t)):e(t.radioButtonsGroupName=r,t)}return t;function e(t,e){e.active&&prxy.items.filter(function(t){return t.id!=e.id&&-1<prx.comps.radioButtonsSupportingGrouping.indexOf(t.type)&&void 0!==t.radioButtonsGroupName&&void 0!==r&&r==t.radioButtonsGroupName}).map(function(t){return t.active=!1,prx.items.rerender(t),prx.items.bindItemEvents(t),prx.items.helper.refreshHtmlComponent(t),t})}},value:function(t,e){return void 0===t.radioButtonsGroupName?"":t.radioButtonsGroupName},values:function(){return[{value:"",displayValue:"No group"}].concat(prx.stc.helper.getAvailableRadioButtonGroupsOnCanvasList()).concat([{value:"custom-select-custom",displayValue:"New group..."}])},changeProperty:{caption:"Belongs to group",rerender:!0}},prx.commonproperties.radioButtonsActiveStatusOnChange=function(e,t){if(void 0!==e.radioButtonsGroupName&&(void 0===e.radioButtonsGroupName||0!=e.radioButtonsGroupName.length)){var r=e.radioButtonsGroupName;if(0==r.trim().length)return e;prx.editor&&e.active&&prxy.items.filter(function(t){return t.id!=e.id&&-1<prx.comps.radioButtonsSupportingGrouping.indexOf(t.type)&&void 0!==t.radioButtonsGroupName&&void 0!==r&&r==t.radioButtonsGroupName}).map(function(t){return t.active=!1,prx.items.rerender(t),prx.items.bindItemEvents(t),prx.items.helper.refreshHtmlComponent(t),t})}},prx.commonproperties.iconSize={caption:"Size",name:"iconSize",proptype:"icon-size",type:"select",value:function(t,e){return void 0===t.iconSize?"":t.iconSize},values:[{value:"1",displayValue:"Very small"},{value:"2",displayValue:"Small"},{value:"3",displayValue:"Normal"},{value:"4",displayValue:"Large"},{value:"5",displayValue:"Full"}],changeProperty:{caption:"Icon size",rerender:!0,changeable:!1}},prx.commonproperties.thumbSize={caption:"Size",name:"thumbSize",proptype:"thumb-size",type:"select",value:function(t,e){return void 0===t.thumbSize?"":t.thumbSize},values:[{value:"1",displayValue:"Very small"},{value:"2",displayValue:"Small"},{value:"3",displayValue:"Normal"},{value:"4",displayValue:"Large"},{value:"5",displayValue:"Full"}],changeProperty:{caption:"Thumbnail size",rerender:!0,changeable:!1}},prx.commonproperties.iconActiveMask={caption:"Active",name:"iconColorActive",proptype:"icon-color-active",type:"solid-colorpicker",value:function(t,e){return void 0===t.iconColorActive?"":t.iconColorActive},liveUpdate:"background-color",changeProperty:{caption:"Active icon color",rerender:!0}},prx.commonproperties.iconSource={caption:!1,name:"imgSrc",proptype:"icon-source",type:"combo-asset",displayValue:function(t,e){return""==t.imgSrc.fileId?"No asset selected.":t.imgSrc.name},value:function(t,e){return JSON.stringify({allow:"image",asset:t.imgSrc})},changeProperty:{caption:"Icon",rerender:!0}},prx.commonproperties.iconSourceSecondary={caption:!1,name:"imgSrc2",proptype:"icon-source-2-secondary",type:"combo-asset",displayValue:function(t,e){return""==t.imgSrc2.fileId?"No asset selected.":t.imgSrc2.name},value:function(t,e){return JSON.stringify({allow:"image",asset:t.imgSrc2})},changeProperty:{caption:"Secondary Icon",rerender:!0}},prx.commonproperties.iconSourceTabs={caption:!1,name:"imgSrc",proptype:"icon-source",type:"combo-asset",displayValue:function(t,e,r){return""==t.tabs[r].imgSrc.fileId?"No icon selected":t.tabs[r].imgSrc.name},value:function(t,e,r){return JSON.stringify({allow:"image",asset:t.tabs[r].imgSrc})},changeProperty:{caption:"Icon",rerender:!0}},prx.commonproperties.iconSourceSecondaryTabs={caption:!1,name:"imgSrc2",proptype:"icon-source-2-secondary",type:"combo-asset",displayValue:function(t,e){return""==t.tabs[index].imgSrc2.fileId?"No asset selected.":t.tabs[index].imgSrc2.name},value:function(t,e){return JSON.stringify({allow:"image",asset:t.tabs[index].imgSrc2})},changeProperty:{caption:"Secondary Icon",rerender:!0}},prx.commonproperties.iconSourceList={caption:!1,name:"imgSrc",proptype:"icon-source",type:"combo-asset",displayValue:function(t,e,r){return""==t.listitems[r].imgSrc.fileId?"No icon selected":t.listitems[r].imgSrc.name},value:function(t,e,r){return JSON.stringify({allow:"image",asset:t.listitems[r].imgSrc})},changeProperty:{caption:"Icon",rerender:!0}},prx.commonproperties.iconSourceSecondaryList={caption:!1,name:"imgSrc2",proptype:"icon-source-2-secondary",type:"combo-asset",displayValue:function(t,e){return""==t.listitems[index].imgSrc2.fileId?"No asset selected.":t.listitems[index].imgSrc2.name},value:function(t,e){return JSON.stringify({allow:"image",asset:t.listitems[index].imgSrc2})},changeProperty:{caption:"Secondary Icon",rerender:!0}},prx.commonproperties.thumbnailSource={caption:!1,name:"thumbnail",proptype:"thumbnail-source",type:"combo-asset",displayValue:function(t,e,r){return void 0===t.thumbnail||""==t.thumbnail.fileId?"No thumbnail selected":t.thumbnail.name},value:function(t,e,r){return JSON.stringify({allow:"image",asset:t.thumbnail})},changeProperty:{caption:"Thumbnail",rerender:!0}},prx.commonproperties.thumbnailSourceList={caption:!1,name:"thumbnail",proptype:"thumbnail-source-list",type:"combo-asset",displayValue:function(t,e,r){return void 0===t.listitems[r].thumbnail||""==t.listitems[r].thumbnail.fileId?"No thumbnail selected":t.listitems[r].thumbnail.name},value:function(t,e,r){return JSON.stringify({allow:"image",asset:t.listitems[r].thumbnail})},changeProperty:{caption:"Thumbnail",rerender:!0}},prx.tabbargradient="-webkit-gradient(linear, 38% 0%, 60% 70%, from(#dde9f0), to(#3fc5f8), color-stop(.6,#79b2ec),color-stop(.7,#2e91e5))",prx.componentsHelper.removeObjMembers=function(t,e){for(var r=e.length,i=0;i<r;i++)delete t[e[i]];return t},prx.componentsHelper.editProperty=function(t,e,r,i){if(void 0===t[0].properties){for(var n=t.length,a=0;a<n;a++)if(t[a].name==e)return t[a][r]=i,t}else{var o=t.length;for(a=0;a<o;a++)for(var s=t[a].properties.length,l=0;l<s;l++){n=t[a].properties[l].length;for(var p=0;p<n;p++)if(t[a].properties[l][p].name==e)return t[a].properties[l][p][r]=i,t}}return t},prx.componentsHelper.removeProperties=function(t,e){if(void 0===t[0].properties)for(var r=t.length,i=0;i<r;i++)-1!=e.indexOf(t[i].name)&&(t.splice(i,1),i--,r--);else{var n=t.length;for(i=0;i<n;i++)for(var a=t[i].properties.length,o=0;o<a;o++){r=t[i].properties[o].length;for(var s=0;s<r;s++)-1!=e.indexOf(t[i].properties[o][s].name)&&(t[i].properties[o].splice(s,1),s--,r--)}}return t},prx.componentsHelper.removePropertySetting=function(t,e,r){for(var i=t.length,n=0;n<i;n++)for(var a=t[n].properties.length,o=0;o<a;o++)for(var s=t[n].properties[o].length,l=0;l<s;l++)t[n].properties[o][l].name===e&&delete t[n].properties[o][l][r];return t},prx.componentsHelper.cloneobject=function(t){var e=t instanceof Array?[]:{};for(i in t)"clone"!=i&&(t[i]&&"object"==h(t[i])?e[i]=prx.componentsHelper.cloneobject(t[i]):e[i]=t[i]);return e},prx.componentsHelper.getRealDims=function(t,e){var r={};if(r.width=t.width,r.height=t.height,prx.mask.isActive(t)&&(r=prx.mask.getInnerDimsObj(t)),void 0===e)"full"==r.width&&(r.width=$("#dragarea").width()),"variable"==t.wtype&&(r.width=$("#dragarea").width()-r.width),"full"==r.height&&(r.height=$("#dragarea").height()),"variable"==t.htype&&(r.height=$("#dragarea").height()-r.height);else{var i=e.dimensions;"full"==r.width&&(r.width=i[0]),"variable"==t.wtype&&(r.width=i[0]-r.width),"full"==r.height&&(r.height=i[1]),"variable"==t.htype&&(r.height=i[1]-r.height)}return r},prx.componentsHelper.getRealPos=function(t,e){var r={};return r.left=t.left,r.top=t.top,prx.mask.isActive(t)&&(r=prx.mask.getInnerAbsolutePositionObj(t)),void 0===e&&("right"==t.hpos?r.left=$("#dragarea").width()-t.width-t.left:"center"==t.hpos&&(r.left=($("#dragarea").width()-t.width)/2),"bottom"==t.vpos?r.top=$("#dragarea").height()-t.height-t.top:"middle"==t.vpos&&(r.top=($("#dragarea").height()-t.height)/2)),r},prx.componentsHelper.getAssetUrl=function(t,e,r){if(e||(e=!1),!0!==e&&(e=!1),void 0===t)return"";if(prx.projectid=prx.projectid||(prx.spaces?prx.projectsettings.s3b:prx.projectsettings.id),prx.account=prx.account||prx.projectsettings.account,void 0!==prx.urlCache&&void 0!==prx.urlCache.urls&&prx.urlCache.urls[t.fileId])return prx.urlCache.urls[t.fileId];var i,n=t.assetType,a=t.color;if(void 0!==prx.dropboxfs&&prx.dropboxfs){i=t.fileId}else{i=t.url}if("local"==n)return i;if("static"==t.bucketsource)return void 0!==t.targetSrc?prx.url.staticassets+"/"+t.targetSrc:prx.url.staticassets+"/assets/"+t.url;if(void 0===prx.spaces&&(prx.spaces=!1),1==prx.spaces&&(n="spaces/"+n),i="project"==n||"spaces/project"==n?prx.utils.getAssetsServer(t.fileId)+"/"+n+"/"+prx.projectid+"/"+i:prx.utils.getAssetsServer(t.fileId)+"/"+n+"/"+i,void 0!==a&&(i+="/"+a.toLowerCase()),void 0!==prx.s3Links)if(void 0!==prx.dropboxfs&&prx.dropboxfs){if(void 0!==prx.s3Links[t.fileId])return-1<prx.s3Links[t.fileId].indexOf("?")?prx.s3Links[t.fileId]+"&v="+prx.mpasset._imgs_version:prx.s3Links[t.fileId]+"?v="+prx.mpasset._imgs_version}else if(void 0!==prx.s3Links[t.assetType+"_"+t.url])return-1<prx.s3Links[t.assetType+"_"+t.url].indexOf("?")?prx.s3Links[t.assetType+"_"+t.url]+"&v="+prx.mpasset._imgs_version:prx.s3Links[t.assetType+"_"+t.url]+"?v="+prx.mpasset._imgs_version;if(void 0!==prx.dropboxfs&&prx.dropboxfs?i+="?db=1":i+="?db=0",i+="&ac="+prx.account,!0===t.isFont){i+="&isfont=true&family=".concat(t.familyId);var o=document.cookie.split("; ").reduce(function(t,e){var r=e.split("=");return"access_token"===r[0]?decodeURIComponent(r[1]):t},"");prx.prgss&&0<prx.prgss.length?i+="&prgss=".concat(prx.prgss):o&&0<o.length&&(i+="&access_token=".concat(o))}var s=!(void 0===prx.urlCache||void 0===prx.urlCache.timestamp||!prx.urlCache.timestamp[t.fileId])&&prx.urlCache.timestamp[t.fileId];return!0===t.isFont?i+="&v="+prx.fonts.custom_fonts_version:i+=s?"&ts="+s:"&v="+prx.mpasset._imgs_version,e&&(i+="&p=2"),r&&(i+="&prgss="+prx.prgss),t.vectorAnimationType&&"bodymovin"===t.vectorAnimationType&&(i+=prx.accesstoken?"&access_token="+prx.accesstoken:""),i},prx.componentsHelper.getFontFamilyFromCSS=function(t){if(void 0===t)return"";if(0==(t=t.replace(/"/gi,"").replace(/'/gi,"")).indexOf("HelveticaNeue")||0==t.indexOf("Helvetica Neue"))return"Helvetica Neue";if(0==t.indexOf("Comic Sans")||0==t.indexOf("'Comic Sans'"))return"Comic Sans MS";if(0==t.indexOf("SFProDisplay-")||0==t.indexOf("SFUIDisplay-"))return"San Francisco Pro Display";if(0==t.indexOf("SFProText")||0==t.indexOf("SFUIText"))return"San Francisco Pro Text";if(0==t.indexOf("SFCompactDisplay-")||0==t.indexOf("SFCompactDisplay"))return"San Francisco Compact Display";if(0==t.indexOf("SFCompactText-")||0==t.indexOf("SFCompactText-"))return"San Francisco Compact Text";if(0==t.indexOf("Arial,"))return"Arial";if(0==t.indexOf("Courier New"))return"Courier New";if(0==t.indexOf("Helvetica,"))return"Helvetica";if(0==t.indexOf("Impact"))return"Impact";if(0==t.indexOf("Courier New"))return"Courier New";if(0==t.indexOf("Roboto"))return"Roboto";if(0==t.indexOf("Georgia"))return"Georgia";if(0==t.indexOf("Tahoma"))return"Tahoma";if(0==t.indexOf("Times New Roman"))return"Times New Roman";if(0==t.indexOf("Trebuchet MS"))return"Trebuchet MS";if(0==t.indexOf("Verdana"))return"Verdana";if(0==t.indexOf("Segoe UI"))return"Segoe UI";if(0==t.indexOf("Arial Black"))return"Arial Black";var e=t.match(/(\s*,)\s*(\w+)$/gi);return null!=e&&$.isArray(e)&&0<e.length&&e[0].replace(/\s+/g,"").replace(",","")==prx.comps.fallbackFont?t.replace(/(\s*,)\s*(\w+)$/gi,""):t},prx.componentsHelper.getFontCssFromFontFamily=function(t){if(void 0===t)return"";if(1<t.split(/[|]+/).length){var e=t.split(/[|]+/)[1];if(null!=e.match(/^([0-9]+)(.*)$/i)&&0<e.match(/^([0-9]+)(.*)$/i).length)var r=e.match(/^([0-9]+)(.*)$/i)[1];else r="400";t=t.split(/[|]+/)[0]}else r="400";if("HelveticaNeue, Helvetica, Verdana, Arial, sans-serif"==t){switch(r){case"300":return"font-family: HelveticaNeue-Light, HelveticaNeue, Helvetica Neue, Helvetica Neue LT Std, Helvetica, Verdana, Arial, sans-serif;";case"400":return"font-family: Helvetica Neue, Helvetica Neue LT Std, Helvetica, Verdana, Arial, sans-serif;";case"500":return"font-family: HelveticaNeue-Medium, HelveticaNeue, Helvetica Neue, Helvetica Neue LT Std, Helvetica, Verdana, Arial, sans-serif;";case"700":return"font-family: HelveticaNeue-Bold, HelveticaNeue, Helvetica Neue, Helvetica Neue LT Std, Helvetica, Verdana, Arial, sans-serif;";default:return"font-family: Helvetica Neue, Helvetica Neue LT Std, Helvetica, Verdana, Arial, sans-serif;"}return"font-family: Helvetica Neue, Helvetica Neue LT Std, Helvetica, Verdana, Arial, sans-serif;"}if("Comic Sans MS,cursive"==t)return"font-family: 'Comic Sans', 'Comic Sans MS', 'Chalkboard', 'ChalkboardSE-Regular', 'Marker Felt', 'Purisa', 'URW Chancery L', cursive;";if("San Francisco Pro Display"==t||"San Francisco UI Display"==t)switch(r){case"100":return"font-family: SFProDisplay-Thin, SFUIDisplay-Thin, SanFranciscoDisplay-Thin, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"200":return"font-family: SFProDisplay-Ultralight, SFUIDisplay-Ultralight, SanFranciscoDisplay-Ultralight, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"300":return"font-family: SFProDisplay-Light, SFUIDisplay-Light, SanFranciscoDisplay-Light, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"400":return"font-family: SFProDisplay-Regular, SFUIDisplay-Regular, SanFranciscoDisplay-Regular, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"500":return"font-family: SFProDisplay-Medium, SFUIDisplay-Medium, SanFranciscoDisplay-Medium, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"600":return"font-family: SFProDisplay-SemiBold, SFUIDisplay-SemiBold, SanFranciscoDisplay-SemiBold, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"700":return"font-family: SFProDisplay-Bold, SFUIDisplay-Bold, SanFranciscoDisplay-Bold, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"800":return"font-family: SFProDisplay-Heavy, SFUIDisplay-Heavy, SanFranciscoDisplay-Heavy, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"900":return"font-family: SFProDisplay-Black, SFUIDisplay-Black, SanFranciscoDisplay-Black, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";default:return"font-family: SFProDisplay-Regular, SFUIDisplay-Regular, SanFranciscoDisplay-Regular, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;"}else if("San Francisco Pro Text"==t||"San Francisco UI Text"==t)switch(r){case"100":return"font-family: SFProText-Thin, SFUIText-Thin, SanFranciscoText-Thin, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"200":return"font-family: SFProText-Ultralight, SFUIText-Ultralight, SanFranciscoText-Ultralight, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"300":return"font-family: SFProText-Light, SFUIText-Light, SanFranciscoText-Light, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"400":return"font-family: SFProText-Regular, SFUIText-Regular, SanFranciscoText-Regular, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"500":return"font-family: SFProText-Medium, SFUIText-Medium, SanFranciscoText-Medium, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"600":return"font-family: SFProText-SemiBold, SFUIText-SemiBold, SanFranciscoText-SemiBold, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"700":return"font-family: SFProText-Bold, SFUIText-Bold, SanFranciscoText-Bold, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"800":return"font-family: SFProText-Heavy, SFUIText-Heavy, SanFranciscoText-Heavy, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"900":return"font-family: SFProText-Black, SFUIText-Black, SanFranciscoText-Black, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";default:return"font-family: SFProText-Regular, SFUIText-Regular, SanFranciscoText-Regular, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;"}else if("San Francisco Compact Display"==t)switch(r){case"100":return"font-family: SFCompactDisplay-Thin, SFProDisplay-Thin, SFUIDisplay-Thin, SanFranciscoDisplay-Thin, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"200":return"font-family: SFCompactDisplay-Ultralight, SFProDisplay-Ultralight, SFUIDisplay-Ultralight, SanFranciscoDisplay-Ultralight, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"300":return"font-family: SFCompactDisplay-Light, SFProDisplay-Light, SFUIDisplay-Light, SanFranciscoDisplay-Light, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"400":return"font-family: SFCompactDisplay-Regular, SFProDisplay-Regular, SFUIDisplay-Regular, SanFranciscoDisplay-Regular, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"500":return"font-family: SFCompactDisplay-Medium, SFProDisplay-Medium, SFUIDisplay-Medium, SanFranciscoDisplay-Medium, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"600":return"font-family: SFCompactDisplay-SemiBold, SFProDisplay-SemiBold, SFUIDisplay-SemiBold, SanFranciscoDisplay-SemiBold, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"700":return"font-family: SFCompactDisplay-Bold, SFProDisplay-Bold, SFUIDisplay-Bold, SanFranciscoDisplay-Bold, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"800":return"font-family: SFCompactDisplay-Heavy, SFProDisplay-Heavy, SFUIDisplay-Heavy, SanFranciscoDisplay-Heavy, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"900":return"font-family: SFCompactDisplay-Black, SFProDisplay-Black, SFUIDisplay-Black, SanFranciscoDisplay-Black, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";default:return"font-family:SFCompactDisplay-Regular, SFProDisplay-Regular, SFUIDisplay-Regular, SanFranciscoDisplay-Regular, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;"}else if("San Francisco Compact Text"==t)switch(r){case"100":return"font-family: SFCompactText-Thin, SFProText-Thin, SFUIText-Thin, SanFranciscoText-Thin, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"200":return"font-family: SFCompactText-Ultralight, SFProText-Ultralight, SFUIText-Ultralight, SanFranciscoText-Ultralight, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"300":return"font-family: SFCompactText-Light, SFProText-Light, SFUIText-Light, SanFranciscoText-Light, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"400":return"font-family: SFCompactText-Regular, SFProText-Regular, SFUIText-Regular, SanFranciscoText-Regular, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"500":return"font-family: SFCompactText-Medium, SFProText-Medium, SFUIText-Medium, SanFranciscoText-Medium, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"600":return"font-family: SFCompactText-SemiBold, SFProText-SemiBold, SFUIText-SemiBold, SanFranciscoText-SemiBold, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"700":return"font-family: SFCompactText-Bold, SFProText-Bold, SFUIText-Bold, SanFranciscoText-Bold, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"800":return"font-family: SFCompactText-Heavy, SFProText-Heavy, SFUIText-Heavy, SanFranciscoText-Heavy, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";case"900":return"font-family: SFCompactText-Black, SFProText-Black, SFUIText-Black, SanFranciscoText-Black, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";default:return"font-family: SFCompactText-Regular, SFProText-Regular, SFUIText-Regular, SanFranciscoText-Regular, -apple-system, system-ui, HelveticaNeue-Light, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;"}var i=t;-1==i.indexOf(",")&&-1==["serif","sans-serif","cursive","monospace"].indexOf(t)&&(i="'"+t+"'");var n=i.match(/(\s*,)\s*(\w+)$/gi);if(null!=n&&$.isArray(n)&&0<n.length&&n[0].replace(/\s+/g,"").replace(",","")==prx.comps.fallbackFont)var a="font-family: "+i+";";else a="font-family: "+i+","+prx.comps.fallbackFont+";";return a},prx.componentsHelper.IFrame=function(t){var e=document.createElement("iframe");if(null==t&&(t=document.body),t.appendChild(e),e.doc=null,e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),null==e.doc)throw"We apologize, an error occured.";return e.doc.open(),e.doc.close(),e},prx.componentsHelper.getScale=function(t){if(prx.v5x11)return prx.devices[prx.device].dpr;if("string"!=typeof t){if(void 0!==t.rscale)return t.rscale;t=t.lib}if("iphone"==t&&prx.compatibility.responsiveComponents.iphone_retina)return 2;var e={iphone_retina:2,ios7:2};return void 0!==e[t]?e[t]:1},prx.componentsHelper.missingComponent=function(t,e){var r=e?e+"-"+t.id:t.id,i='Component "'+t.type+'" is missing.';"symbol"==t.type?i=prx.lang.get("editor.hint.brokenContainerRefComponent",{itemCaption:t.caption}):"vrsymbol"==t.type&&(i=prx.lang.get("editor.hint.brokenVRContainerRefComponent",{itemCaption:t.caption}),t.lib=void 0);var n=void 0!==prx.libraries[t.lib]&&prx.libraries[t.lib];n&&(i="Loading component...");var a='<div id="'+r+'" class="box pos type-missingComponent '+(n?"type-missingComponent-loading":"")+'">';return a+="<style>",a+=prx.items.getComponentBaseStyle(t,e),a+="</style>",a+='<div class="xborder"></div>',a+='<div class="error-msg">'+i+"</div>",a+="</div>"},prx.commonproperties.metroBackgroundColor={caption:{label:"Background"},name:"backgroundColor",type:"solid-colorpicker",proptype:"background-color",value:function(t,e){return t.backgroundColor},values:prx.comps.metroColorsLight,liveUpdate:"background-color",changeProperty:{caption:"Background color",selector:".changeProperty-backgroundColor",property:"background-color",transitionable:!0}},prx.commonproperties.metroBackgroundColorSolid={caption:"Background",name:"backgroundColor",type:"solid-colorpicker",proptype:"background-color",value:function(t,e){return t.backgroundColor},values:prx.comps.metroColorsLight,liveUpdate:"background-color",changeProperty:{caption:"Background color",selector:".changeProperty-backgroundColor",property:"background-color",transitionable:!0}},prx.commonproperties.metroBackgroundColorGradients={caption:"Background",name:"backgroundColor",type:"gradients-colorpicker",proptype:"background-color",value:function(t,e){return t.backgroundColor},values:prx.comps.metroColorsLight,liveUpdate:"background-color",changeProperty:{caption:"Background color",selector:".changeProperty-backgroundColor",property:"background-color",transitionable:!0}},prx.commonproperties.metroTextColor={caption:{label:"Color",class:"text-properties-label text-color-label"},name:"textColor",type:"solid-colorpicker",proptype:"font-color",pffSettings:prx.commonproperties.pffSettingsColor,value:function(t,e){return t.textColor},values:prx.comps.metroColorsLight,liveUpdate:"color",changeProperty:{caption:"Text color",selector:".changeProperty-textColor",property:"color",transitionable:!0}},prx.commonproperties.metroBorderColor={caption:!1,name:"borderColor",type:"solid-colorpicker",proptype:"border-color",value:function(t,e){return t.borderColor},values:prx.comps.metroColorsLight,liveUpdate:"border-color",changeProperty:{caption:"Border color",selector:".changeProperty-borderColor",property:"border-color",transitionable:!0}},prx.componentsHelper.drawShape=function(t,e,r,i,n){var a=t.skew/100,o=t.baseWidth/2/100;if("rhombus"==e||"triangle"==e)var s="M "+r/2+" "+n/2;if("rhombus"==e)s+=" L "+(r-n/2)+" "+i/2,s+=" L "+r/2+" "+(i-n/2),s+=" L "+n/2+" "+i/2;else if("triangle"==e)s+=" L "+(r-n/2)+" "+(i-n/2),s+=" L "+n/2+" "+(i-n/2);else if("trapezoid"==e){var l=r*(.5-o)+parseInt(n/2);if(r*(1-(.5-o))-parseInt(n/2)<=l){s="M "+(r/2-.1)+" "+n/2;s+=" L "+(r/2+.1)+" "+n/2}else{s="M "+(r*(.5-o)+parseInt(n/2))+" "+n/2;s+=" L "+(r*(1-(.5-o))-n/2)+" "+n/2}s+=" L "+(r-n/2)+" "+(i-n/2),s+=" L "+n/2+" "+(i-n/2)}else if("parallelogram"==e){s="M "+(r*a+parseInt(n/2))+" "+n/2;s+=" L "+(r-n/2)+" "+n/2,s+=" L "+(r*(1-a)-n/2)+" "+(i-n/2),s+=" L "+n/2+" "+(i-n/2)}return s+=" Z"},prx.componentsHelper.drawComplexShape=function(t,e,r,i,n){var a=r/2,o=i/2,s=r/i,l=1,p=1;s<1?p=1/s:1<s&&(l=s);var c,u,h=(Math.min(r,i)-n)/2,d=[],f=!0===isNaN(parseInt(t.spikeDepth))?"2":parseInt(t.spikeDepth),m=!0===isNaN(parseInt(t.numOfNodes))?"5":parseInt(t.numOfNodes),g=Math.PI/2*3,v=Math.PI/m,y=0;for(b=0;b<m;b++)radians=g,c=a+Math.cos(radians)*h*l,u=o+Math.sin(radians)*h*p,d.push({x:c,y:u}),g=radians+v,radians=g,"star"==e&&(c=a+Math.cos(radians)*h*l/f,u=o+Math.sin(radians)*h*p/f,d.push({x:c,y:u}),y+=1),b<m-1&&(g=radians+v),y+=1;for(var x="M "+parseInt(d[0].x)+" "+parseInt(d[0].y),b=1;b<y;b++)x+=" L "+parseInt(d[b].x)+" "+parseInt(d[b].y);return x+=" Z"},prx.componentsHelper.drawBubble=function(t,e,r,i,n){var a,o,s,l,p=.1*Math.min(r,i),c=t.tipDirection;if("rounded-corners"==t.bubbleType||"rounded"==t.bubbleType){var u,h,d,f;"left"==c?(u=parseInt(p)+parseInt(n),h=parseInt(n),d=r-parseInt(p)-parseInt(2*n),f=i-parseInt(2*n)):"right"==c?(u=parseInt(n),h=parseInt(n),d=r-parseInt(p)-parseInt(2*n),f=i-parseInt(2*n)):"top"==c?(u=parseInt(n),h=parseInt(p)+parseInt(n),d=r-parseInt(2*n),f=i-parseInt(p)-parseInt(2*n)):"bottom"==c&&(u=parseInt(n),h=parseInt(n),d=r-parseInt(2*n),f=i-parseInt(p)-parseInt(2*n));var m=t.borderRadius;if("left"==c?(s=a=u,o=(h+f-m+(h+m))/2-p/2,l=(h+f-m+(h+m))/2+p/2):"right"==c?(s=a=u+d,o=(h+m+(h+f-m))/2-p/2,l=(h+m+(h+f-m))/2+p/2):"top"==c?(a=(u+m+(u+d-m))/2-p/2,s=(u+m+(u+d-m))/2+p/2,l=o=h):"bottom"==c&&(a=(u+d-m+(u+m))/2-p/2,s=(u+d-m+(u+m))/2+p/2,l=o=h+f),"rounded-corners"==t.bubbleType){var g="M "+(u+m)+" "+h;"top"==c&&(g+=" L "+a+" "+o,g+=" L "+s+" "+n,g+=" L "+s+" "+l),g+=" L "+(u+d-m)+" "+h,g+=" Q "+(u+d)+" "+h+" "+(u+d)+" "+(h+m),"right"==c&&(g+=" L "+a+" "+o,g+=" L "+(r-n)+" "+o,g+=" L "+s+" "+l),g+=" L "+(u+d)+" "+(h+f-m),g+=" Q "+(u+d)+" "+(h+f)+" "+(u+d-m)+" "+(h+f),"bottom"==c&&(g+=" L "+s+" "+l,g+=" L "+s+" "+(i-n),g+=" L "+a+" "+o),g+=" L "+(u+m)+" "+(h+f),g+=" Q "+u+" "+(h+f)+" "+u+" "+(h+f-m),"left"==c&&(g+=" L "+s+" "+l,g+=" L "+n+" "+o,g+=" L "+a+" "+o),g+=" L "+u+" "+(h+m),g+=" Q "+u+" "+h+" "+(u+m)+" "+h}else if("rounded"==t.bubbleType){if("top"==c){g="M "+s+" "+n;g+=" L "+s+" "+l,g+=" A "+(r/2-n)+" "+((i-p)/2-n)+" 0 1 1 "+a+" "+o,g+=" L "+s+" "+n}if("right"==c){g="M "+(r-n)+" "+i/2;g+=" L "+s+" "+l,g+=" A "+((r-p)/2-n)+" "+(i/2-n)+" 0 1 1 "+a+" "+o,g+=" L "+(r-n)+" "+i/2}if("bottom"==c){g="M "+r/2+" "+(i-n);g+=" L "+s+" "+l,g+=" A "+(r/2-n)+" "+((i-p)/2-n)+" 0 1 0 "+a+" "+o,g+=" L "+r/2+" "+(i-n)}if("left"==c){g="M "+n+" "+i/2;g+=" L "+s+" "+l,g+=" A "+((r-p)/2-n)+" "+(i/2-n)+" 0 1 0 "+a+" "+o,g+=" L "+n+" "+i/2}}}else if("cloud"==t.bubbleType){g="M "+.2*r+" "+.77*i;g+=" C "+.05*r+" "+.85*i+" "+.04*r+" "+.62*i+" "+(.08*r+parseInt(n))+" "+.57*i,g+=" C 0 "+.55*i+" 0 "+.32*i+" "+.1*r+" "+.35*i,"left"==c?(g+=" L "+n+" "+.2*i,g+=" L "+(.21*r+parseInt(n))+" "+(.13*i+parseInt(n))):g+=" C "+.05*r+" "+.25*i+" "+.1*r+" "+.05*i+" "+(.21*r+parseInt(n))+" "+(.13*i+parseInt(n)),g+=" C "+.22*r+" "+.01*i+" "+.4*r+" 0 "+.435*r+" "+(.08*i+parseInt(n)),g+=" C "+.48*r+" 0 "+.62*r+" "+.01*i+" "+.625*r+" "+(.1*i+parseInt(n)),"top"==c?(g+=" L "+.8*r+" "+n,g+=" L "+(.83*r-parseInt(n))+" "+(.18*i+parseInt(n))):g+=" C "+.68*r+" "+.03*i+" "+.84*r+" "+.035*i+" "+(.83*r-parseInt(n))+" "+(.18*i+parseInt(n)),g+=" C "+.95*r+" "+.12*i+" "+r+" "+.36*i+" "+(.935*r-parseInt(n))+" "+.433*i,g+=" C "+r+" "+.45*i+" "+r+" "+.65*i+" "+(.925*r-parseInt(n))+" "+.655*i,"right"==c?(g+=" L "+(r-n)+" "+.8*i,g+=" L "+.79*r+" "+.85*i):g+=" C "+.98*r+" "+.78*i+" "+.89*r+" "+.95*i+" "+.79*r+" "+.85*i,g+=" C "+.75*r+" "+i+" "+.6*r+" "+i+" "+.58*r+" "+(.91*i-parseInt(n)),g+=" C "+.53*r+" "+i+" "+.39*r+" "+i+" "+(.342*r+parseInt(n))+" "+(.9*i-parseInt(n)),"bottom"==c?(g+=" L "+.2*r+" "+(i-n),g+=" L "+.2*r+" "+.77*i):g+=" C "+.3*r+" "+.98*i+" "+.15*r+" "+.96*i+" "+.2*r+" "+.77*i}else if("think-cloud"==t.bubbleType){g="M "+(.145*r+parseInt(n))+" "+.423*i;g+=" C 0 "+.42*i+" 0 "+.24*i+" "+(.145*r+parseInt(n))+" "+.24*i,g+=" C "+.08*r+" "+.15*i+" "+.19*r+" "+.04*i+" "+.375*r+" "+(.08*i+parseInt(n)),g+=" C "+.4*r+" 0 "+.6*r+" 0 "+.625*r+" "+(.08*i+parseInt(n)),g+=" C "+.81*r+" "+.04*i+" "+.92*r+" "+.15*i+" "+(.855*r-parseInt(n))+" "+.24*i,g+=" C "+r+" "+.24*i+" "+r+" "+.42*i+" "+(.855*r-parseInt(n))+" "+.423*i,g+=" C "+.92*r+" "+.5*i+" "+.81*r+" "+.61*i+" "+.625*r+" "+(.556*i-parseInt(n)),g+=" C "+.6*r+" "+.65*i+" "+.4*r+" "+.65*i+" "+.375*r+" "+(.556*i-parseInt(n)),g+=" C "+.19*r+" "+.61*i+" "+.08*r+" "+.5*i+" "+(.145*r+parseInt(n))+" "+.423*i}return g+=" Z"},prx.componentsHelper.drawArrow=function(t,e,r,i){var n,a,o,s=10*prx.componentsHelper.getScale(t.lib)*(t.borderWidth/(2*prx.componentsHelper.getScale(t.lib)));a=e-(n=i),v=e/2,y=o=r/2;var l=Math.atan2(v-a,y-o)+Math.PI,p=Math.atan2(v-n,y-o)+Math.PI,c=t.arrowDirection;if("arrow3"==t.arrowName&&"front"==c)var u="M "+(1*n+parseInt(s/2))+" "+o;else if("arrow4"==t.arrowName){u="M "+1*n+" "+o;"end"!=c&&"both"!=c||(u+=" L "+(1*n+parseInt(s)-parseInt(t.borderWidth))+" "+o)}else u="M "+n+" "+o;if("arrow4"==t.arrowName){if("front"==c)var h=parseInt(2*t.borderWidth)+(1*a-parseInt(s))-n,d=1*n-parseInt(t.borderWidth);else if("end"==c)h=parseInt(2*t.borderWidth)+parseInt(a)-(1*n+parseInt(s)),d=1*n+parseInt(s)-parseInt(t.borderWidth);else if("both"==c)h=parseInt(2*t.borderWidth)+(1*a-parseInt(s))-(1*n+parseInt(s)),d=1*n+parseInt(s)-parseInt(t.borderWidth);for(var f=h/5,m=[],g=0;g<6;g++)m.push({x:d+f*g});var v,y;u+=" Q "+(v=d+f/2)+" "+(y=o+s/4)+" "+m[1].x+" "+o,u+=" T "+m[2].x+" "+o,u+=" T "+m[3].x+" "+o,u+=" T "+m[4].x+" "+o,u+=" T "+m[5].x+" "+o}return"arrow3"==t.arrowName&&"end"==c?u+=" L "+(a-parseInt(s/2))+" "+o:"arrow4"==t.arrowName?"front"!=c&&"both"!=c||(u+=" M "+(a-parseInt(s)+parseInt(t.borderWidth))+" "+o,u+=" L "+a+" "+o):u+=" L "+a+" "+o,u+=";"+prx.componentsHelper.arrowHeads(c,s,n,a,o,o,l,p,t),"arrow2"!=t.arrowName&&"arrow3"!=t.arrowName||(u+=";"+prx.componentsHelper.arrowDetails(c,s,n,a,o,o,l,p,t)),u},prx.componentsHelper.drawArrowCurved=function(t,e,r,i,n){var a,o,s,l,p,c,u,h,d,f,m=10*prx.componentsHelper.getScale(t.lib)*(t.borderWidth/(2*prx.componentsHelper.getScale(t.lib)));if("curved"==e?(a=parseInt(n)+m/2/(t.borderWidth/(2*prx.componentsHelper.getScale(t.lib))),s=i-parseInt(n)-m/2/(t.borderWidth/(2*prx.componentsHelper.getScale(t.lib))),o=r-parseInt(n)-m/2/(t.borderWidth/(2*prx.componentsHelper.getScale(t.lib))),l=m/2+parseInt(n),p=2*(p=(a+o)/2-.2*Math.min(r,i))-(a+o)/2,c=2*(c=(s+l)/2-.2*Math.min(r,i))-(s+l)/2):"arced"==e?(a=r-parseInt(n),s=i-parseInt(n)-m/2,o=r-parseInt(n),l=parseInt(n)+m/2,d=.8*i,h=u=n-.3*r,f=.2*i):"right-angle"==e&&(a=parseInt(n)+m/2,s=i-parseInt(n),o=r-parseInt(n),l=parseInt(n)+m/2,p=parseInt(n)+m/2,c=parseInt(n)+m/2),"arced"==e)var g=Math.atan2(h-o,f-l)+Math.PI,v=Math.atan2(u-a,d-s)+Math.PI;else g=Math.atan2(p-o,c-l)+Math.PI,v=Math.atan2(p-a,c-s)+Math.PI;var y=t.arrowDirection;if("arrow3"==t.arrowName&&"front"==y&&"right-angle"==e)var x="M "+a+" "+(s-parseInt(m/2));else x="M "+a+" "+s;return"curved"==e?x+=" Q "+p+" "+c+" "+o+" "+l:"arced"==e?x+=" C "+u+" "+d+" "+h+" "+f+" "+o+" "+l:"right-angle"==e&&(x+=" L "+(parseInt(n)+m/2)+" "+(parseInt(n)+m/2),"arrow3"==t.arrowName&&"end"==y?x+=" L "+(o-parseInt(m/2))+" "+l:x+=" L "+o+" "+l),x+=";"+prx.componentsHelper.arrowHeads(y,m,a,o,s,l,g,v,t),"right-angle"!=e||"arrow2"!=t.arrowName&&"arrow3"!=t.arrowName||(x+=";"+prx.componentsHelper.arrowDetails(y,m,a,o,s,l,g,v,t)),x},prx.componentsHelper.drawArrowCustom=function(t,e,r,i){var n=t.arrowDirection,a="";return"arrow5"==t.arrowName?"front"==n?(a+="M "+i+" "+.2*r,a+=" L "+i+" "+.8*r,a+=" L "+.6*e+" "+.8*r,a+=" L "+.6*e+" "+(r-i),a+=" L "+(e-i)+" "+r/2,a+=" L "+.6*e+" "+i,a+=" L "+.6*e+" "+.2*r,a+=" L "+i+" "+.2*r):"end"==n&&(a+="M "+(e-i)+" "+.2*r,a+=" L "+(e-i)+" "+.8*r,a+=" L "+.4*e+" "+.8*r,a+=" L "+.4*e+" "+(r-i),a+=" L "+i+" "+r/2,a+=" L "+.4*e+" "+i,a+=" L "+.4*e+" "+.2*r,a+=" L "+(e-i)+" "+.2*r):"arrow6"==t.arrowName?"front"==n?(a+="M "+i+" "+i,a+=" L "+.6*e+" "+r/2,a+=" L "+i+" "+(r-i),a+=" L "+.4*e+" "+(r-i),a+=" L "+(e-i)+" "+r/2,a+=" L "+.4*e+" "+i,a+=" L "+i+" "+i):"end"==n&&(a+="M "+(e-i)+" "+i,a+=" L "+.4*e+" "+r/2,a+=" L "+(e-i)+" "+(r-i),a+=" L "+.6*e+" "+(r-i),a+=" L "+i+" "+r/2,a+=" L "+.6*e+" "+i,a+=" L "+(e-i)+" "+i):"arrow7"==t.arrowName?"front"==n?(a+="M "+i+" "+i,a+=" L "+.3*e+" "+r/2,a+=" L "+i+" "+(r-i),a+=" L "+(e-i)+" "+r/2,a+=" L "+i+" "+i):"end"==n&&(a+="M "+(e-i)+" "+i,a+=" L "+.7*e+" "+r/2,a+=" L "+(e-i)+" "+(r-i),a+=" L "+i+" "+r/2,a+=" L "+(e-i)+" "+i):"arrow8"==t.arrowName&&("front"==n?(a+="M "+.6*e+" "+.15*r,a+=" L "+.55*e+" "+i,a+=" Q "+(.6*e+(e-i))/2+" "+(.15*r+(.25*r-i))/2+" "+(e-i)+" "+(.25*r-i),a+=" Q "+(.6*e+(e-i))/2+" "+(.25*r-i+.35*r)/2+" "+.55*e+" "+(.5*r-i),a+=" L "+.6*e+" "+.35*r,a+=" Q "+i+" "+.4*r+" "+.75*e+" "+(r-i),a+=" Q -"+e/2+" "+.3*r+" "+.6*e+" "+.15*r):"end"==n&&(a+="M "+.4*e+" "+.15*r,a+=" L "+.45*e+" "+i,a+=" Q "+(.4*e+i)/2+" "+(.15*r+(.25*r-i))/2+" "+i+" "+(.25*r-i),a+=" Q "+(.4*e+i)/2+" "+(.25*r-i+.35*r)/2+" "+.45*e+" "+(.5*r-i),a+=" L "+.4*e+" "+.35*r,a+=" Q "+(e-i)+" "+.4*r+" "+.25*e+" "+(r-i),a+=" Q "+(e+e/2)+" "+.3*r+" "+.4*e+" "+.15*r)),a},prx.componentsHelper.arrowHeads=function(t,e,r,i,n,a,o,s,l){var p="";return"front"!=t&&"both"!=t||(p+=" M "+(i-e*Math.sin(o-Math.PI/6))+" "+(a-e*Math.cos(o-Math.PI/6)),p+=" L "+i+" "+a,p+=" L "+(i-e*Math.sin(o+Math.PI/6))+" "+(a-e*Math.cos(o+Math.PI/6)),l.filledArrow&&(p+=" Z")),"end"!=t&&"both"!=t||(p+=" M "+(r-e*Math.sin(s-Math.PI/6))+" "+(n-e*Math.cos(s-Math.PI/6)),p+=" L "+r+" "+n,p+=" L "+(r-e*Math.sin(s+Math.PI/6))+" "+(n-e*Math.cos(s+Math.PI/6)),l.filledArrow&&(p+=" Z")),p},prx.componentsHelper.arrowDetails=function(t,e,r,i,n,a,o,s,l){var p="";return"front"!=t&&"both"!=t||("arrow2"==l.arrowName&&"straight"==l.arrowType?(p+=" M "+(1*r+parseInt(e/2)+e/2*Math.sin(s-Math.PI/6))+" "+(n-e/2*Math.cos(s-Math.PI/6)),p+=" L "+(1*r+parseInt(e/2))+" "+n,p+=" L "+(1*r+parseInt(e/2)+e/2*Math.sin(s+Math.PI/6))+" "+(n-e/2*Math.cos(s+Math.PI/6)),p+=" M "+(1*r+parseInt(e)+e/2*Math.sin(s-Math.PI/6))+" "+(n-e/2*Math.cos(s-Math.PI/6)),p+=" L "+(1*r+parseInt(e))+" "+n,p+=" L "+(1*r+parseInt(e)+e/2*Math.sin(s+Math.PI/6))+" "+(n-e/2*Math.cos(s+Math.PI/6))):"arrow2"==l.arrowName&&"right-angle"==l.arrowType?(p+=" M "+(r-e/2*Math.sin(s-Math.PI/6))+" "+(n-parseInt(e/2)+e/2*Math.cos(s-Math.PI/6)),p+=" L "+r+" "+(n-parseInt(e/2)),p+=" L "+(r-e/2*Math.sin(s+Math.PI/6))+" "+(n-parseInt(e/2)+e/2*Math.cos(s+Math.PI/6)),p+=" M "+(r-e/2*Math.sin(s-Math.PI/6))+" "+(n-parseInt(e)+e/2*Math.cos(s-Math.PI/6)),p+=" L "+r+" "+(n-parseInt(e)),p+=" L "+(r-e/2*Math.sin(s+Math.PI/6))+" "+(n-parseInt(e)+e/2*Math.cos(s+Math.PI/6))):"arrow3"==l.arrowName&&"straight"==l.arrowType?(p+=" M "+(1*r+parseInt(e/2)+e/2*Math.sin(s-Math.PI/6))+" "+(n-e/2*Math.cos(s-Math.PI/6)),p+=" L "+(1*r+parseInt(e/2))+" "+n,p+=" L "+(1*r+parseInt(e/2)+e/2*Math.sin(s+Math.PI/6))+" "+(n-e/2*Math.cos(s+Math.PI/6)),p+=" L "+(1*r+parseInt(1.2*e)+e/2*Math.sin(s+Math.PI/6))+" "+(n-e/2*Math.cos(s+Math.PI/6)),p+=" L "+(1*r+parseInt(1.2*e))+" "+n,p+=" L "+(1*r+parseInt(1.2*e)+e/2*Math.sin(s-Math.PI/6))+" "+(n-e/2*Math.cos(s-Math.PI/6)),p+=" L "+(1*r+parseInt(e/2)+e/2*Math.sin(s-Math.PI/6))+" "+(n-e/2*Math.cos(s-Math.PI/6))):"arrow3"==l.arrowName&&"right-angle"==l.arrowType&&(p+=" M "+(r-e/2*Math.sin(s-Math.PI/6))+" "+(n-parseInt(e/2)+e/2*Math.cos(s-Math.PI/6)),p+=" L "+r+" "+(n-parseInt(e/2)),p+=" L "+(r-e/2*Math.sin(s+Math.PI/6))+" "+(n-parseInt(e/2)+e/2*Math.cos(s+Math.PI/6)),p+=" L "+(r-e/2*Math.sin(s+Math.PI/6))+" "+(n-parseInt(1.2*e)+e/2*Math.cos(s+Math.PI/6)),p+=" L "+r+" "+(n-parseInt(1.2*e)),p+=" L "+(r-e/2*Math.sin(s-Math.PI/6))+" "+(n-parseInt(1.2*e)+e/2*Math.cos(s-Math.PI/6)),p+=" L "+(r-e/2*Math.sin(s-Math.PI/6))+" "+(n-parseInt(e/2)+e/2*Math.cos(s-Math.PI/6)))),"end"!=t&&"both"!=t||("arrow2"==l.arrowName&&"straight"==l.arrowType?(p+=" M "+(i-parseInt(e/2)-e/2*Math.sin(s-Math.PI/6))+" "+(a-e/2*Math.cos(s-Math.PI/6)),p+=" L "+(i-parseInt(e/2))+" "+a,p+=" L "+(i-parseInt(e/2)-e/2*Math.sin(s+Math.PI/6))+" "+(a-e/2*Math.cos(s+Math.PI/6)),p+=" M "+(i-parseInt(e)-e/2*Math.sin(s-Math.PI/6))+" "+(a-e/2*Math.cos(s-Math.PI/6)),p+=" L "+(i-parseInt(e))+" "+a,p+=" L "+(i-parseInt(e)-e/2*Math.sin(s+Math.PI/6))+" "+(a-e/2*Math.cos(s+Math.PI/6))):"arrow2"==l.arrowName&&"right-angle"==l.arrowType?(p+=" M "+(i-parseInt(e/2)+e/2*Math.cos(s-Math.PI/6))+" "+(a-e/2*Math.sin(s-Math.PI/6)),p+=" L "+(i-parseInt(e/2))+" "+a,p+=" L "+(i-parseInt(e/2)+e/2*Math.cos(s+Math.PI/6))+" "+(a-e/2*Math.sin(s+Math.PI/6)),p+=" M "+(i-parseInt(e)+e/2*Math.cos(s-Math.PI/6))+" "+(a-e/2*Math.sin(s-Math.PI/6)),p+=" L "+(i-parseInt(e))+" "+a,p+=" L "+(i-parseInt(e)+e/2*Math.cos(s+Math.PI/6))+" "+(a-e/2*Math.sin(s+Math.PI/6))):"arrow3"==l.arrowName&&"straight"==l.arrowType?(p+=" M "+(i-parseInt(e/2)-e/2*Math.sin(s-Math.PI/6))+" "+(a-e/2*Math.cos(s-Math.PI/6)),p+=" L "+(i-parseInt(e/2))+" "+a,p+=" L "+(i-parseInt(e/2)-e/2*Math.sin(s+Math.PI/6))+" "+(a-e/2*Math.cos(s+Math.PI/6)),p+=" L "+(i-parseInt(1.2*e)-e/2*Math.sin(s+Math.PI/6))+" "+(a-e/2*Math.cos(s+Math.PI/6)),p+=" L "+(i-parseInt(1.2*e))+" "+a,p+=" L "+(i-parseInt(1.2*e)-e/2*Math.sin(s-Math.PI/6))+" "+(a-e/2*Math.cos(s-Math.PI/6)),p+=" L "+(i-parseInt(e/2)-e/2*Math.sin(s-Math.PI/6))+" "+(a-e/2*Math.cos(s-Math.PI/6))):"arrow3"==l.arrowName&&"right-angle"==l.arrowType&&(p+=" M "+(i-parseInt(e/2)+e/2*Math.cos(s-Math.PI/6))+" "+(a-e/2*Math.sin(s-Math.PI/6)),p+=" L "+(i-parseInt(e/2))+" "+a,p+=" L "+(i-parseInt(e/2)+e/2*Math.cos(s+Math.PI/6))+" "+(a-e/2*Math.sin(s+Math.PI/6)),p+=" L "+(i-parseInt(1.2*e)+e/2*Math.cos(s+Math.PI/6))+" "+(a-e/2*Math.sin(s+Math.PI/6)),p+=" L "+(i-parseInt(1.2*e))+" "+a,p+=" L "+(i-parseInt(1.2*e)+e/2*Math.cos(s-Math.PI/6))+" "+(a-e/2*Math.sin(s-Math.PI/6)),p+=" L "+(i-parseInt(e/2)+e/2*Math.cos(s-Math.PI/6))+" "+(a-e/2*Math.sin(s-Math.PI/6)))),p},prx.componentsHelper.getExpandedProp=function(t,e,r){if("object"!==h(t))return!1;if(null!=e)return void 0!==t[e]&&t[e]+(n?"":"px");var i=prx.expandableProperties.getOrderedProps(t,"display"),n=prx.componentsHelper.checkIfExpandedRadiusElliptical(t,i,r);if(void 0===i)return!1;var a="";if(n){for(var o=[],s=[],l=0;l<i.length;l++)o.push(t[i[l]].split(" ").first()),s.push(t[i[l]].split(" ").last());a+=o[0]+" "+o[1]+" "+o[2]+" "+o[3],a+=" / ",a+=s[0]+" "+s[1]+" "+s[2]+" "+s[3]}else for(l=0;l<i.length;l++)a+=t[i[l]],parseFloat(t[i[l]])==t[i[l]]&&(a+="px"),a+=" ";return a},prx.componentsHelper.checkIfExpandedRadiusElliptical=function(t,e,r){if(r.includes("border-radius")){for(var i=0,n=0;n<e.length;n++)t[e[n]].toString().includes(" ")&&i++;return i==e.length}return!1},prx.componentsHelper.getAudioFilesTotal=function(e){var r=0;return["audioFile","audioFileAAC","audioFileMP3","audioFileWAV","audioFileOGG"].forEach(function(t){void 0!==e[t]&&""!=e[t].name&&r++}),r},prx.componentsHelper.isAudioFile=function(t){return!!["mp3","wav","oga","ogg","aac"].includes(t.split(".").pop())},prx.componentsHelper.getAudioFileSourceType=function(t){var e="";switch(t){case"mp3":e="mpeg";break;case"oga":case"ogg":e="ogg";break;case"wav":e="x-wav";break;case"aac":e="x-m4a";break;default:e=""}return e},prx.componentsHelper.getVideoFilesTotal=function(e){var r=0;return["videoFileMP4","videoFileWEBM","videoFileOGG","videoFile"].forEach(function(t){void 0!==e[t]&&""!=e[t].name&&r++}),r},prx.componentsHelper.isVideoFile=function(t){return!!["mp4","ogg","ogv","webm"].includes(t.split(".").pop())},prx.componentsHelper.getVideoFileSourceType=function(t){var e="";switch(t){case"ogg":case"ogv":e="ogg";break;default:e=t}return e},prx.componentsHelper.getProp=function(t,e){if(void 0===t||void 0===e||void 0!==t&&"undefined|undefined"==t)return"";switch(e){case"url":return/^(http|https)/i.test(t)?t:"about:blank";case"text":case"spikeDepth":case"numOfNodes":case"skew":case"baseWidth":case"border-type":case"num-other":case"align":case"button-type":case"icon-position":case"icon-size":case"boolean":case"other":return prx.utils.escapeHTML(t);case"border-radius":case"num-border-radius":case"border-radius-tl":case"border-radius-tr":case"border-radius-bl":case"border-radius-br":if(e.match(/-(tl|tr|bl|br)$/))var r=e.substr(-2,2);return(i=prx.componentsHelper.getExpandedProp(t,void 0!==r?r:void 0,e))?t=i:parseFloat(t)==t&&(t+="px"),prx.utils.escapeHTML(t);case"border-width":case"border-width-t":case"border-width-r":case"border-width-b":case"border-width-l":if(e.match(/-(t|r|b|l)$/))r=e.substr(-2,2);var i;return(i=prx.componentsHelper.getExpandedProp(t,void 0!==r?r:void 0,e))?t=i:parseFloat(t)==t&&(t+="px"),prx.utils.escapeHTML(t);case"border-width-all":if(void 0===t.l&&parseFloat(t)==t)return t+="px ",prx.utils.escapeHTML(t);if(parseFloat(t.l)!=t.l||parseFloat(t.b)!=t.b||parseFloat(t.t)!=t.t||parseFloat(t.r)!=t.r)break;return t=t.t+"px "+t.r+"px "+t.b+"px "+t.l+"px",prx.utils.escapeHTML(t);case"text-list":case"text-textarea":case"text-wysiwyg":case"text-html":return prx.utils.escapeRichText(t);case"color-background":return"object"===h(t)?prx.utils.escapeHTML(prx.gradients.prxToCss(prx.utils.getColor(t))):prx.utils.escapeHTML(prx.utils.getColor(t));case"border-width-all-active":case"border-width-all":var n="border-width-all-active"==e?1.5:1;if(void 0===t.l&&parseFloat(t)==t)return t*=n,t+="px ",prx.utils.escapeHTML(t);if(parseFloat(t.l)!=t.l||parseFloat(t.b)!=t.b||parseFloat(t.t)!=t.t||parseFloat(t.r)!=t.r)break;return t=t.t*n+"px "+t.r*n+"px "+t.b*n+"px "+t.l*n+"px",prx.utils.escapeHTML(t);case"color-border":case"color-fill":case"color-ripple":case"color-shadow":case"color-switch":case"color-text":case"color-other":return prx.utils.escapeHTML(prx.gradients.prxToCss(prx.utils.getColor(t)));case"num-border-width":case"num-percentage":case"num-text-size":return t=prx.utils.escapeHTML(t),!0===isNaN(t)?0:t;case"slide-input":return t=parseInt(t),!0===isNaN(t)?0:t;case"asset":return prx.componentsHelper.getAssetUrl(t);case"font-family":return prx.componentsHelper.getFontCssFromFontFamily(t);case"font-style":var a=parseInt(t,10);!isNaN(a)&&null!=a||(a=400);var o=-1<t.toString().indexOf("italic")?"italic":"normal";return"font-weight:".concat(a,"; font-style:").concat(o,";");case"font-weight-value":if("bold"==t)return"700";var s=parseInt(t,10);return!isNaN(s)&&null!=s||(s=400),s;case"font-style-value":return-1<t.toString().indexOf("italic")?"italic":"normal";case"props-text":return l=-1<jQuery.inArray("underline",t)?" text-decoration: underline;":"";case"props-text-style":var l=" font-weight: "+prx.componentsHelper.getProp(t,"font-weight-value")+" ;";return l+=" font-style: "+prx.componentsHelper.getProp(t,"font-style-value")+" ;";case"select-property-interactions":return prx.utils.escapeHTML(t.replace(/&nbsp;/g,"\\space")).replace(/\\space/g,"&nbsp;");case"video-url":return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");case"color-colorpicker":case"opacity-colorpicker":return prx.utils.escapeHTML(t);case"esc-dbl-quotes":return t.replace(/"/g,"&quot;");case"caption":return prx.utils.escapeHTML(t);case"zoom-level-txtBox":return t=parseInt(prx.utils.escapeHTML(t)),!1===isNaN(t)&&(t<prx.zoom._minZoom?prx.zoom._minZoom:t>prx.zoom._maxZoom?prx.zoom._maxZoom:t);case"radio-group-name":return t.replace(/[^a-zA-Z0-9 :-]/g,"").replace(/\s/g,"-");default:return prx.utils.escapeHTML(t)}},prx.componentsHelper.removeStyleForChangeFunction=function(t){var e=$("style#"+t);e&&e.remove()},prx.componentsHelper.addStyleForChangeFunction=function(t,e,r,i,n,a,o){var s=$("#"+t),l=prx.componentsHelper.getProp(n,a);if(o&&(l+=" !important"),void 0!==s){prx.componentsHelper.removeStyleForChangeFunction(e);var p='<style id="'+e+'">';p+=r,0<i.length?p+="{ "+i+": "+l+"; }":p+="{ "+l+"; }",p+="</style>",s.append(p)}},prx.componentsHelper.changeImageForChangeFunction=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=3<arguments.length&&void 0!==arguments[3]&&arguments[3],n=prx.componentsHelper.getProp(e,"asset"),a=$(t);void 0!==a&&(r?a.css("background-image","url("+(i?e:n)+")"):i?a.css({"mask-image":"url("+e+")","-webkit-mask-image":"url("+e+")"}):1<a.length?$.each(a,function(t,e){e.src=n}):a[0].src=n)},prx.componentsHelper.changeFunctionForTextProperties=function(o,s,l,p){if(void 0!==o&&void 0!==p){var t=o.type,e=prx.componentsHelper.getSelectorForTextProperties(t,p,l),r=void 0!==e.selectors&&e.selectors,c=void 0!==e.textPropsKey&&void 0!==e.textPropsKey[0]&&e.textPropsKey[0];0!=r&&0!=r.length&&r.forEach(function(t){var e=$("#"+s+"-"+o.id+" "+t+" span[data-editableproperty], #"+s+"-"+o.id+t+" span[data-editableproperty]");if(0!=(e=$("#"+s+"-"+o.id+" "+t+", #"+s+"-"+o.id+t).length>e.length?$("#"+s+"-"+o.id+" "+t+", #"+s+"-"+o.id+t):e).length)for(var r=0;r<e.length;r++)if(void 0===l||void 0===$(e[r]).data("dynamicPropertyIndex")||$(e[r]).data("dynamicPropertyIndex").toString()===l.toString()){var i=$(e[r]).html();if(void 0===i||0==i.length)return;for(var n in prx.comps.textPropertiesMappings)i=prx.componentsHelper.stripStyle(i,n,!1);var a=void 0!==l&&!1!==c?o[c][l][p]:o[p];if(void 0===a)return;a.forEach(function(t){i=prx.comps.textPropertiesMappings[t][0]+i+prx.comps.textPropertiesMappings[t][1]}),$(e[r]).html(i)}})}},prx.componentsHelper.changeFunctionForTextFontStyleProperties=function(l,p,c,u){if(void 0!==l&&void 0!==u){var t=l.type,e=prx.componentsHelper.getSelectorForTextProperties(t,u,c),r=void 0!==e.selectors&&e.selectors,h=void 0!==e.textPropsKey&&void 0!==e.textPropsKey[0]&&e.textPropsKey[0],i=prx.componentsHelper.getTextandFontStylePropsName(l.type,u,h),n=i.fontFamilyGroup,a=i.relatedFontFamilyPropsName;if("function"==typeof n.value)var d=n.value(l,a,c);0!=r&&0!=r.length&&r.forEach(function(t){var e=$("#"+p+"-"+l.id+" "+t+" span[data-editableproperty], "+p+"-"+l.id+t+" span[data-editableproperty]");if(0!=(e=$("#"+p+"-"+l.id+" "+t+", "+p+"-"+l.id+t).length>e.length?$("#"+p+"-"+l.id+" "+t+", "+p+"-"+l.id+t):e).length)for(var r=0;r<e.length;r++)if(void 0===c||void 0===$(e[r]).data("dynamicPropertyIndex")||$(e[r]).data("dynamicPropertyIndex").toString()===c.toString()){var i=$(e[r]).html();if(void 0===i||0==i.length)return;for(var n in prx.comps.textFontStylePropertiesMappings)i=prx.componentsHelper.stripStyle(i,n,!0);if(void 0!==d){var a=[d];i=prx.componentsHelper.stripStyle(i,"font-family",!1,a)}var o=void 0!==c&&!1!==h?l[h][c][u]:l[u];if(void 0===o)return;var s=prx.componentsHelper.getProp(o,"font-style-value");i='<span style="font-weight:'+prx.componentsHelper.getProp(o,"font-weight-value")+";font-style:"+s+';">'+i+"</span>",$(e[r]).html(i)}})}},prx.componentsHelper.getSelectorForTextProperties=function(t,e,r){var i={selectors:[],textPropsKey:[],property:[]};if(void 0===t||void 0===e)return i;if(void 0===r){if(void 0!==prx.types[t]&&void 0!==prx.types[t].propertyGroups)for(var n=0;n<prx.types[t].propertyGroups.length;n++)for(var a=0;a<prx.types[t].propertyGroups[n].properties.length;a++)for(var o=prx.types[t].propertyGroups[n].properties[a],s=0;s<o.length;s++)if(void 0!==o[s].relatedEditableProperties&&void 0!==o[s].name&&o[s].name==e)for(var l=$.isArray(o[s].relatedEditableProperties)?o[s].relatedEditableProperties:[o[s].relatedEditableProperties],p=0;p<l.length;p++){if(1<l[p].split(/[.]+/).length){if(void 0!==(u=l[p].split(/[.]+/))[1]&&void 0!==prx.types[t].dynamicProperties&&void 0!==prx.types[t].dynamicProperties.editableProperties)for(var c=0;c<prx.types[t].dynamicProperties.editableProperties.length;c++)void 0!==prx.types[t].dynamicProperties.editableProperties[c].name&&prx.types[t].dynamicProperties.editableProperties[c].name==u[1]&&h("undefined"!==prx.types[t].dynamicProperties.editableProperties[c].changeProperty&&"undefined"!==prx.types[t].dynamicProperties.editableProperties[c].changeProperty.selector)&&(i.selectors.push(prx.types[t].dynamicProperties.editableProperties[c].changeProperty.selector),void 0!==prx.types[t].dynamicProperties.editableProperties[c].changeProperty.property&&i.property.push(prx.types[t].dynamicProperties.editableProperties[c].changeProperty.property))}else if(void 0!==prx.types[t].editableProperties)for(c=0;c<prx.types[t].editableProperties.length;c++)void 0!==prx.types[t].editableProperties[c].name&&prx.types[t].editableProperties[c].name==l[p]&&h("undefined"!==prx.types[t].editableProperties[c].changeProperty&&"undefined"!==prx.types[t].editableProperties[c].changeProperty.selector)&&(i.selectors.push(prx.types[t].editableProperties[c].changeProperty.selector),void 0!==prx.types[t].editableProperties[c].changeProperty.property&&i.property.push(prx.types[t].editableProperties[c].changeProperty.property))}}else if(void 0!==prx.types[t].dynamicProperties.propertyGroups){i.textPropsKey.push(prx.types[t].dynamicProperties.data);for(n=0;n<prx.types[t].dynamicProperties.propertyGroups.length;n++)for(a=0;a<prx.types[t].dynamicProperties.propertyGroups[n].properties.length;a++)for(o=prx.types[t].dynamicProperties.propertyGroups[n].properties[a],s=0;s<o.length;s++)if(void 0!==o[s].relatedEditableProperties&&void 0!==o[s].name&&o[s].name==e)for(l=$.isArray(o[s].relatedEditableProperties)?o[s].relatedEditableProperties:[o[s].relatedEditableProperties],p=0;p<l.length;p++){var u;if(1<l[p].split(/[.]+/).length){if(void 0!==(u=l[p].split(/[.]+/))[1]&&void 0!==prx.types[t].dynamicProperties&&void 0!==prx.types[t].dynamicProperties.editableProperties)for(c=0;c<prx.types[t].dynamicProperties.editableProperties.length;c++)void 0!==prx.types[t].dynamicProperties.editableProperties[c].name&&prx.types[t].dynamicProperties.editableProperties[c].name==u[1]&&h("undefined"!==prx.types[t].dynamicProperties.editableProperties[c].changeProperty&&"undefined"!==prx.types[t].dynamicProperties.editableProperties[c].changeProperty.selector)&&(i.selectors.push(prx.types[t].dynamicProperties.editableProperties[c].changeProperty.selector),void 0!==prx.types[t].dynamicProperties.editableProperties[c].changeProperty.property&&i.property.push(prx.types[t].dynamicProperties.editableProperties[c].changeProperty.property))}else if(void 0!==prx.types[t].dynamicProperties&&void 0!==prx.types[t].dynamicProperties.editableProperties)for(c=0;c<prx.types[t].dynamicProperties.editableProperties.length;c++)void 0!==prx.types[t].dynamicProperties.editableProperties[c].name&&prx.types[t].dynamicProperties.editableProperties[c].name==l[p]&&h("undefined"!==prx.types[t].dynamicProperties.editableProperties[c].changeProperty&&"undefined"!==prx.types[t].dynamicProperties.editableProperties[c].changeProperty.selector)&&(i.selectors.push(prx.types[t].dynamicProperties.editableProperties[c].changeProperty.selector),void 0!==prx.types[t].dynamicProperties.editableProperties[c].changeProperty.property&&i.property.push(prx.types[t].dynamicProperties.editableProperties[c].changeProperty.property))}}return i},prx.componentsHelper.isComponentSupportedProperty=function(t,e){if(void 0===e||void 0===t)return!1;if(void 0===prx.components[t]||void 0===prx.components[t].properties)return!0;if("all"==typeof prx.components[t].properties)return!0;switch(e){case"visibility":e="v";break;case"height":e="h";break;case"width":e="w";break;case"xPosition":e="hpos";break;case"yPosition":e="ypos";break;case"opacity":e="o";break;case"lock":e="l";break;case"rotation":e="r"}return void 0!==prx.components[t]&&void 0!==prx.components[t].properties?0<prx.components[t].properties.length&&-1!==prx.components[t].properties.split(",").indexOf(e):void 0},prx.componentsHelper.resetDimensions=function(t,e,r,i){switch(!0!==r&&(r=!1),!0!==e&&(e=!1),t.type){case"image":case"vrimage":if(e)if(!1!==(n=prx.imageFunctions.checkImageMultiplier(t)))return prx.imageFunctions.resetdimensions(t,n,r,i);return prx.imageFunctions.resetdimensions(t,1,r,i);case"vectoranimation":var n;if(e)if(!1!==(n=prx.imageFunctions.checkImageMultiplier(t)))return prx.bodymovinAnimation.resetDimensions(t,n,r,i);return prx.bodymovinAnimation.resetDimensions(t,n,r,i);default:try{i&&i()}catch(t){}}},prx.componentsHelper.getTextandFontStylePropsName=function(t,e,r){var i,n=[],a={relatedTextPropsName:!1,relatedTextFontStylePropsName:!1,relatedFontFamilyPropsName:!1,textPropGroup:{},textFontStyleGroup:{},fontFamilyGroup:{}};return void 0!==prx.types[t].propertyGroups&&(r?void 0!==prx.types[[t]].dynamicProperties&&prx.types[t].dynamicProperties.propertyGroups.forEach(function(t){i=t.properties.reduce(function(t,e){return t.concat(e)}),n=n.concat(i)}):prx.types[t].propertyGroups.forEach(function(t){i=t.properties.reduce(function(t,e){return t.concat(e)}),n=n.concat(i)}),"ios7_navbar_buttons"!=t&&"ios7_navbar"!=t||"title"!=e||(e="text"),n.forEach(function(t){void 0!==t.name&&(prx.componentsHelper.fontStylePropExists(t,e)?(a.textFontStyleGroup=t,a.relatedTextFontStylePropsName=t.name):prx.componentsHelper.textPropertiesPropExists(t,e)?(a.textPropGroup=t,a.relatedTextPropsName=t.name):prx.componentsHelper.fontFamilyPropExists(t,e)&&(a.fontFamilyGroup=t,a.relatedFontFamilyPropsName=t.name))})),a},prx.componentsHelper.fontStylePropExists=function(t,e){var r=e.toLowerCase();e=e.replace("Properties","").replace("FontStyle","").toLowerCase();return void 0===t.relatedCSSProperties||void 0===t.relatedEditableProperties?t.name.toLowerCase()==e+"fontstyle":JSON.stringify(t.relatedCSSProperties)==JSON.stringify(["font-weight","font-style"])&&"select"==t.type&&(t.name.toLowerCase()==e+"fontstyle"||t.name.toLowerCase()==r+"style")},prx.componentsHelper.textPropertiesPropExists=function(t,e){e=e.replace("FontStyle","").replace("Properties","").toLowerCase();return void 0===t.relatedCSSProperties||void 0===t.relatedEditableProperties?t.name.toLowerCase()==e+"properties":(JSON.stringify(t.relatedCSSProperties)==JSON.stringify(["font-weight","font-style","text-decoration"])||JSON.stringify(t.relatedCSSProperties)==JSON.stringify(["text-decoration"]))&&"checkbox"==t.type&&t.name.toLowerCase()==e+"properties"},prx.componentsHelper.fontFamilyPropExists=function(t,e){e=e.replace("Properties","").replace("FontStyle","").toLowerCase();return void 0===t.relatedCSSProperties||void 0===t.relatedEditableProperties?t.name.toLowerCase()==e+"font":JSON.stringify(t.relatedCSSProperties)==JSON.stringify("font-family")&&"select"==t.type&&t.name.toLowerCase()==e+"font"},prx.componentsHelper.isFontStyleProp=function(t){return"FontStyle"==t.name.substr(-9)||JSON.stringify(t.relatedCSSProperties)==JSON.stringify(["font-weight","font-style"])&&"select"==t.type},prx.componentsHelper.isTextPropertiesProp=function(t){return"Properties"==t.name.substr(-10)||JSON.stringify(t.relatedCSSProperties)==JSON.stringify(["font-weight","font-style","text-decoration"])&&"checkbox"==t.type},prx.componentsHelper.isFontFamilyProp=function(t){return-1<t.name.toLowerCase().indexOf("font-family")||JSON.stringify(t.relatedCSSProperties)==JSON.stringify("font-family")&&"select"==t.type},prx.componentsHelper.hasThumbnails=function(t){var e=!1;return t.listitems&&t.listitems.forEach(function(t){t.thumbnail&&""!=t.thumbnail.fileId&&(e=!0)}),e},prx.componentsHelper.hasIcons=function(t){var e=!1;return t.listitems&&t.listitems.forEach(function(t){t.imgSrc&&""!=t.imgSrc.fileId&&(e=!0)}),e},prx.componentsHelper.getFontStyleValueFromTextProperties=function(t){var e="";return void 0!==t&&$.isArray(t)?(-1<t.indexOf("bold")?e+="700":e+="400",-1<t.indexOf("italic")&&(e+="italic"),e):""},prx.componentsHelper.getFontFamilyType=function(t){var e=[];return prx.fonts._fonts.forEach(function(t){e.push(t.displayValue)}),-1<["Roboto, sans-serif","HelveticaNeue, Helvetica, Verdana, Arial, sans-serif","Impact,sans-serif","Arial Black,sans-serif"].indexOf(t)?{type:"default",fontstylesupport:!0}:-1<["San Francisco Pro Display","San Francisco Pro Text","San Francisco Compact Display","San Francisco Compact Text"].indexOf(t)?{type:"apple",fontstylesupport:!0}:-1<e.indexOf(t)?{type:"custom",fontstylesupport:!0}:{type:"default",fontstylesupport:!1}},prx.componentsHelper.isValidFontWeightValue=function(t){return"bold"==t||(t=parseInt(t,10),!isNaN(t)&&null!=t)},prx.componentsHelper.setAutoresizeValue=function(t,e,r,i){prx.editor&&(i?(t.autoResize=Boolean(i),$("#"+t.id).find("[data-editableproperty=text]").addClass("autoresize").addClass("autoResize-true"),$("#radioSwitcher_p-"+t.id+"-autoResize_false").val(!1).prop("checked",!1),$("#radioSwitcher_p-"+t.id+"-autoResize_true").val(!0).prop("checked",!0)):(t.autoResize=Boolean(i),$("#"+t.id).find("[data-editableproperty=text]").removeClass("autoresize").removeClass("autoResize-true"),$("#radioSwitcher_p-"+t.id+"-autoResize_true").val(!1).prop("checked",!1),$("#radioSwitcher_p-"+t.id+"-autoResize_false").val(!0).prop("checked",!0)))},prx.componentsHelper.maskImageFixForSafari11=function(t){if(prx.export2html&&void 0!==t.fileId&&void 0!==prx.mask.images&&void 0!==prx.mask.images[t.fileId])return prx.mask.images[t.fileId];var e=prx.componentsHelper.getProp(t,"asset");return(void 0!==prx.export2html&&0==prx.export2html||void 0===prx.export2html)&&(-1===e.indexOf("?")?e+="?v="+Math.floor(1e9*Math.random()+1):e+="&v="+Math.floor(1e9*Math.random()+1)),e},prx.componentsHelper.stripStyle=function(t,e,r,i){var f={bold:{regex:/(<strong>)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?(font-weight(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/strong>)|(<strong)/gi,startingTag:"<strong"},italic:{regex:/(<em>)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?(font-style(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/em>)|(<em)/gi,startingTag:"<em"},underline:{regex:/(<u>)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?(text-decoration(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/u>)|(<u)/gi,startingTag:"<u"},color:{regex:/(<span\s+[^>]*?\s*style\s*=\s*(?:\'|")(?:\S+\s+)?color(?:\s+\S+)?\1[^>]*>)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?(color(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/span>)|(<span)/gi,startingTag:"<span"},"letter-spacing":{regex:/(<span\s+[^>]*?\s*style\s*=\s*(?:\'|")(?:\S+\s+)?letter-spacing(?:\s+\S+)?\1[^>]*>)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?(letter-spacing(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/span>)|(<span)/gi,startingTag:"<span"},"line-height":{regex:/(<span\s+[^>]*?\s*style\s*=\s*(?:\'|")(?:\S+\s+)?line-height(?:\s+\S+)?\1[^>]*>)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?(line-height(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/span>)|(<span)/gi,startingTag:"<span"},"font-size":{regex:/(<span\s+[^>]*?\s*style\s*=\s*(?:\'|")(?:\S+\s+)?font-size(?:\s+\S+)?\1[^>]*>)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?(font-size(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/span>)|(<span)/gi,startingTag:"<span"},"font-family":{regex:/(<span\s+[^>]*?\s*style\s*=\s*(?:\'|")(?:\S+\s+)?font-family(?:\s+\S+)?\1[^>]*>)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?(font-family(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/span>)|(<span)/gi,startingTag:"<span"},"font-weight":{regex:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?((font-weight)(?:\s+\S+)?\1[^;"]*;?)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?((font-weight)(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/span>)|(<span)/gi,startingTag:"<span"},"font-style":{regex:/(<span\s+[^>]*?\s*style\s*=\s*(?:\'|")(?:\S+\s+)?font-style(?:\s+\S+)?\1[^>]*>)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?(font-style(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/span>)|(<span)/gi,startingTag:"<span"},"text-align":{regex:/(<div\s+[^>]*?\s*style\s*=\s*(?:\'|")(?:\S+\s+)?text-align(?:\s+\S+)?\1[^>]*>)/gi,regexB:/[<span|<u|<em|<div|<p]\s+[^>]*?\s*style="[\s\S+]*?(text-align(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/div>)|(<div)/gi,startingTag:"<div"},"custom-selection":{regex:/(<em\s+[^>]*?\s*class\s*=\s*(?:\'|")(?:\S+\s+)?custom-selection(?:\s+\S+)?\1[^>]*>)/gi,regexB:/[<span|<u|<em|<div|<p|<em]\s+[^>]*?\s*class="[\s\S+]*?(custom-selection(?:\s+\S+)?\1[^;"]*;?)/gi,tags:/(<\/em>)|(<em)/gi,startingTag:"<em"}},h={span:{regex:/((?:<span)(?:\s+[^>]*?\s*style\s*=[\s*;"]*>)|(<span>))/gi,tags:/(<\/span>)|(<span)/gi,startingTag:"<span"},div:{regex:/((?:<div)(?:\s+[^>]*?\s*style\s*=[\s*;"]*>)|(<div>))/gi,tags:/(<\/div>)|(<div)/gi,startingTag:"<div"},p:{regex:/((?:<p)(?:\s+[^>]*?\s*style\s*=[\s*;"]*>)|(<p>))/gi,tags:/(<\/p>)|(<p)/gi,startingTag:"<p"},em:{regex:/((?:<em)(?:\s+[^>]*?\s*style\s*=[\s*;"]*>)|(<em>))/gi,tags:/(<\/em>)|(<em)/gi,startingTag:"<em"}};if(void 0!==r&&r){e=["font-weight","font-style"];for(var n=0;n<e.length;n++)t=a(t,e[n],i)}else t=a(t,e,i);return t;function a(t,e,r){for(var i,n=t;null!==(i=f[e].regexB.exec(t));)if(i.index===f[e].regexB.lastIndex&&f[e].regexB.lastIndex++,void 0!==r)for(var a=0;a<r.length;a++)prx.componentsHelper.getFontFamilyFromCSS(i[1].replace("font-family:",""))==r[a]&&(n=n.replace(i[1],""));else n=n.replace(i[1],"");if("bold"==e){var o=/(<strong)/gi,s=/<\/strong>/gi;n=(n=n.replace(o,"<span")).replace(s,"</span>")}if("italic"==e){n=(n=n.replace(/(<em)/gi,"<span")).replace(/<\/em>/gi,"</span>")}if("font-weight"===e){o=/(<strong)/gi,s=/<\/strong>/gi;n=(n=n.replace(o,"<span")).replace(s,"</span>")}if("font-style"===e){o=/(<em)/gi,s=/<\/em>/gi;n=(n=n.replace(o,"<span")).replace(s,"</span>")}if("underline"==e){o=/(<u)/gi,s=/<\/u>/gi;n=(n=n.replace(o,"<span")).replace(s,"</span>")}for(var l,p=/((<em|<u|<strong|<span|<div|<p)(?:\s+[^>]*?\s*[style|class]\s*=[\s*;"]*)>)/gi,c=n;null!==(l=p.exec(n));){l.index===p.lastIndex&&p.lastIndex++;var u=l[2]+">";c=c.replace(l[1],u)}for(var h=["span","div","p"],d=0;d<h.length;d++)c=m(c,h[d],!0);return c}function m(t,e,r){if(r)var i=h[e].regex,n=h[e].tags,a=h[e].startingTag;else i=f[e].regex,n=f[e].tags,a=f[e].startingTag;for(var o,s,l,p=[],c=[];o=n.exec(t);)p.push({text:o[0],index:o.index});for(;l=i.exec(t);){c.push({index:l.index,length:l[0].length});for(var u=s=0;u<p.length&&(p[u].index<=l.index||(p[u].text===a?s++:s--,!(s<0)));u++);void 0!==p[u]?p[u].text!==a?c.push({index:p[u].index,length:p[u].text.length}):c.pop():c.pop()}c.sort(function(t,e){return t.index<e.index?1:-1});for(u=0;u<c.length;u++)t=t.substring(0,c[u].index)+t.substring(c[u].index+c[u].length);return t}},prx.componentsHelper.memorisedTextStyle={style:{textFont:"Arial,sans-serif",textFontStyle:"400",textSize:17,textColor:"000000",lineHeight:parseInt(1.231*17),textAlign:"left",textSpacing:0},ini:function(){prx.componentsHelper.memorisedTextStyle.style.textSize=17*prx.componentsHelper.getScale("common"),prx.componentsHelper.memorisedTextStyle.style.lineHeight=parseInt(1.231*17*prx.componentsHelper.getScale("common"))},update:function(t){for(var e in prx.componentsHelper.memorisedTextStyle.style)"undefined"!==t[e]&&(prx.componentsHelper.memorisedTextStyle.style[e]=t[e])}}},function(t,e){var r=window.prx||{};r.editor=!1,r.project={},prxy.pages=[],prxy.symbols=[],r.templates=[],r.allItems={},r.types={},r.devices={},r.components={},r.url={},r.greensockForce3D=!0,r.basicGreensockOptions={force3D:r.greensockForce3D,immediateRender:!1},r._imgs_version=0,r.dynamicprops=["listitems","buttons","options","tabs"],r.spaces=!1,r.embed=!1,r.export2html=!1,r.prto=!1,r.device="default",r.user={},r.user.loggedin=!1,r.user.editor_access=!1,r.projectsettings={},r.projectsettings.v=0,r.projectsettings.initialpageid=-1,r.projectsettings.flashactions=1,r.currentPlayerStatus.helper.initDataStructure(),r.currentPlayerStatus=r.currentPlayerStatus||{},r.currentPlayerStatus.helper=r.currentPlayerStatus.helper||{},r.currentPlayerStatus.helper.set=r.currentPlayerStatus.helper.set||function(){},$(document).ready(function(){r.iniPlayer.iniDocumentLoad(),r.debug.ini()})},function(t,e){prx.debug.ini=function(){}},function(t,e,r){},function(t,e,r){"use strict";r.r(e);var T=r(0);
/*!
 * VERSION: 2.0.2
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 **/T.m._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(){function g(t){var e,r=[],i=t.length;for(e=0;e!==i;r.push(t[e++]));return r}function v(t,e,r){var i,n,a=t.cycle;for(i in a)n=a[i],t[i]="function"==typeof n?n(r,e[r]):n[r%n.length];delete t.cycle}var y=function(t,e,r){T.n.call(this,t,e,r),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=y.prototype.render},x=1e-10,b=T.n._internals,_=b.isSelector,w=b.isArray,t=y.prototype=T.n.to({},.1,{}),S=[];y.version="2.0.2",t.constructor=y,t.kill()._gc=!1,y.killTweensOf=y.killDelayedCallsTo=T.n.killTweensOf,y.getTweensOf=T.n.getTweensOf,y.lagSmoothing=T.n.lagSmoothing,y.ticker=T.n.ticker,y.render=T.n.render,t.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),T.n.prototype.invalidate.call(this)},t.updateTo=function(t,e){var r,i=this.ratio,n=this.vars.immediateRender||t.immediateRender;for(r 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[r]=t[r];if(this._initted||n)if(e)this._initted=!1,n&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&T.n._onPluginEvent("_onDisable",this),.998<this._time/this._duration){var a=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1)}else if(this._initted=!1,this._init(),0<this._time||n)for(var o,s=1/(1-i),l=this._firstPT;l;)o=l.s+l.c,l.c*=s,l.s=o-l.c,l=l._next;return this},t.render=function(t,e,r){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var i,n,a,o,s,l,p,c,u,h=this._dirty?this.totalDuration():this._totalDuration,d=this._time,f=this._totalTime,m=this._cycle,g=this._duration,v=this._rawPrevTime;if(h-1e-7<=t&&0<=t?(this._totalTime=h,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=g,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(i=!0,n="onComplete",r=r||this._timeline.autoRemoveChildren),0===g&&(!this._initted&&this.vars.lazy&&!r||(this._startTime===this._timeline._duration&&(t=0),(v<0||t<=0&&-1e-7<=t||v===x&&"isPause"!==this.data)&&v!==t&&(r=!0,x<v&&(n="onReverseComplete")),this._rawPrevTime=c=!e||t||v===t?t:x))):t<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==f||0===g&&0<v)&&(n="onReverseComplete",i=this._reversed),t<0&&(this._active=!1,0===g&&(!this._initted&&this.vars.lazy&&!r||(0<=v&&(r=!0),this._rawPrevTime=c=!e||t||v===t?t:x))),this._initted||(r=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(o=g+this._repeatDelay,this._cycle=this._totalTime/o>>0,0!==this._cycle&&this._cycle===this._totalTime/o&&f<=t&&this._cycle--,this._time=this._totalTime-this._cycle*o,this._yoyo&&0!=(1&this._cycle)&&(this._time=g-this._time,(u=this._yoyoEase||this.vars.yoyoEase)&&(this._yoyoEase||(!0!==u||this._initted?this._yoyoEase=u=!0===u?this._ease:u instanceof T.b?u:T.b.map[u]:(u=this.vars.ease,this._yoyoEase=u=u?u instanceof T.b?u:"function"==typeof u?new T.b(u,this.vars.easeParams):T.b.map[u]||T.n.defaultEase:T.n.defaultEase)),this.ratio=u?1-u.getRatio((g-this._time)/g):0)),this._time>g?this._time=g:this._time<0&&(this._time=0)),this._easeType&&!u?(s=this._time/g,(1===(l=this._easeType)||3===l&&.5<=s)&&(s=1-s),3===l&&(s*=2),1===(p=this._easePower)?s*=s:2===p?s*=s*s:3===p?s*=s*s*s:4===p&&(s*=s*s*s*s),1===l?this.ratio=1-s:2===l?this.ratio=s:this._time/g<.5?this.ratio=s/2:this.ratio=1-s/2):u||(this.ratio=this._ease.getRatio(this._time/g))),d!==this._time||r||m!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!r&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=d,this._totalTime=f,this._rawPrevTime=v,this._cycle=m,b.lazyTweens.push(this),void(this._lazy=[t,e]);!this._time||i||u?i&&this._ease._calcEnd&&!u&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/g)}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==d&&0<=t&&(this._active=!0),0===f&&(2===this._initted&&0<t&&this._init(),this._startAt&&(0<=t?this._startAt.render(t,!0,r):n||(n="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==g||e||this._callback("onStart"))),a=this._firstPT;a;)a.f?a.t[a.p](a.c*this.ratio+a.s):a.t[a.p]=a.c*this.ratio+a.s,a=a._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,!0,r),e||this._totalTime===f&&!n||this._callback("onUpdate")),this._cycle!==m&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),n&&(this._gc&&!r||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,!0,r),i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===g&&this._rawPrevTime===x&&c!==x&&(this._rawPrevTime=0)))}else f!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},y.to=function(t,e,r){return new y(t,e,r)},y.from=function(t,e,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new y(t,e,r)},y.fromTo=function(t,e,r,i){return i.startAt=r,i.immediateRender=0!=i.immediateRender&&0!=r.immediateRender,new y(t,e,i)},y.staggerTo=y.allTo=function(t,e,r,i,n,a,o){i=i||0;function s(){r.onComplete&&r.onComplete.apply(r.onCompleteScope||this,arguments),n.apply(o||r.callbackScope||this,a||S)}var l,p,c,u,h=0,d=[],f=r.cycle,m=r.startAt&&r.startAt.cycle;for(w(t)||("string"==typeof t&&(t=T.n.selector(t)||t),_(t)&&(t=g(t))),t=t||[],i<0&&((t=g(t)).reverse(),i*=-1),l=t.length-1,c=0;c<=l;c++){for(u in p={},r)p[u]=r[u];if(f&&(v(p,t,c),null!=p.duration&&(e=p.duration,delete p.duration)),m){for(u in m=p.startAt={},r.startAt)m[u]=r.startAt[u];v(p.startAt,t,c)}p.delay=h+(p.delay||0),c===l&&n&&(p.onComplete=s),d[c]=new y(t[c],e,p),h+=i}return d},y.staggerFrom=y.allFrom=function(t,e,r,i,n,a,o){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,y.staggerTo(t,e,r,i,n,a,o)},y.staggerFromTo=y.allFromTo=function(t,e,r,i,n,a,o,s){return i.startAt=r,i.immediateRender=0!=i.immediateRender&&0!=r.immediateRender,y.staggerTo(t,e,i,n,a,o,s)},y.delayedCall=function(t,e,r,i,n){return new y(e,0,{delay:t,onComplete:e,onCompleteParams:r,callbackScope:i,onReverseComplete:e,onReverseCompleteParams:r,immediateRender:!1,useFrames:n,overwrite:0})},y.set=function(t,e){return new y(t,0,e)},y.isTweening=function(t){return 0<T.n.getTweensOf(t,!0).length};var a=function(t,e){for(var r=[],i=0,n=t._first;n;)n instanceof T.n?r[i++]=n:(e&&(r[i++]=n),i=(r=r.concat(a(n,e))).length),n=n._next;return r},c=y.getAllTweens=function(t){return a(T.a._rootTimeline,t).concat(a(T.a._rootFramesTimeline,t))};y.killAll=function(t,e,r,i){null==e&&(e=!0),null==r&&(r=!0);var n,a,o,s=c(0!=i),l=s.length,p=e&&r&&i;for(o=0;o<l;o++)a=s[o],(p||a instanceof T.j||(n=a.target===a.vars.onComplete)&&r||e&&!n)&&(t?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},y.killChildTweensOf=function(t,e){if(null!=t){var r,i,n,a,o,s=b.tweenLookup;if("string"==typeof t&&(t=T.n.selector(t)||t),_(t)&&(t=g(t)),w(t))for(a=t.length;-1<--a;)y.killChildTweensOf(t[a],e);else{for(n in r=[],s)for(i=s[n].target.parentNode;i;)i===t&&(r=r.concat(s[n].tweens)),i=i.parentNode;for(o=r.length,a=0;a<o;a++)e&&r[a].totalTime(r[a].totalDuration()),r[a]._enabled(!1,!1)}}};function i(t,e,r,i){e=!1!==e,r=!1!==r;for(var n,a,o=c(i=!1!==i),s=e&&r&&i,l=o.length;-1<--l;)a=o[l],(s||a instanceof T.j||(n=a.target===a.vars.onComplete)&&r||e&&!n)&&a.paused(t)}return y.pauseAll=function(t,e,r){i(!0,t,e,r)},y.resumeAll=function(t,e,r){i(!1,t,e,r)},y.globalTimeScale=function(t){var e=T.a._rootTimeline,r=T.n.ticker.time;return arguments.length?(t=t||x,e._startTime=r-(r-e._startTime)*e._timeScale/t,e=T.a._rootFramesTimeline,r=T.n.ticker.frame,e._startTime=r-(r-e._startTime)*e._timeScale/t,e._timeScale=T.a._rootTimeline._timeScale=t,t):e._timeScale},t.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()},t.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},t.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},t.duration=function(t){return arguments.length?T.a.prototype.duration.call(this,t):this._duration},t.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)},t.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},t.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},t.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},y},!0);function l(e){var r=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return(Math.round(t/e)*e*r|0)/r}}function p(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next}var i=T.o.TweenMax,n=r(49),a=T.m._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,r,i){var n,a;if("function"!=typeof t.setAttribute)return!1;for(n in e)"function"==typeof(a=e[n])&&(a=a(i,t)),this._addTween(t,"setAttribute",t.getAttribute(n)+"",a+"",n,!1,n),this._overwriteProps.push(n);return!0}}),o=T.m._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,r){return this._tween=r,!0}}),s=o.prototype;s._onInitAllProps=function(){var t,e,r,i,n=this._tween,a=n.vars.roundProps,o={},s=n._propLookup.roundProps;if("object"!=typeof a||a.push)for("string"==typeof a&&(a=a.split(",")),r=a.length;-1<--r;)o[a[r]]=Math.round;else for(i in a)o[i]=l(a[i]);for(i in o)for(t=n._firstPT;t;)e=t._next,t.pg?t.t._mod(o):t.n===i&&(2===t.f&&t.t?p(t.t._firstPT,o[i]):(this._add(t.t,i,t.s,t.c,o[i]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:n._firstPT===t&&(n._firstPT=e),t._next=t._prev=null,n._propLookup[i]=s)),t=e;return!1},s._add=function(t,e,r,i,n){this._addTween(t,e,r,r+i,e,n||Math.round),this._overwriteProps.push(e)};
/*!
 * VERSION: 0.3.1
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 **/
var c=T.m._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,r,i){"object"!=typeof e&&(e={rotation:e}),this.finals={};var n,a,o,s,l,p,c=!0===e.useRadians?2*Math.PI:360;for(n in e)"useRadians"!==n&&("function"==typeof(s=e[n])&&(s=s(i,t)),a=(p=(s+"").split("_"))[0],o=parseFloat("function"!=typeof t[n]?t[n]:t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]()),l=(s=this.finals[n]="string"==typeof a&&"="===a.charAt(1)?o+parseInt(a.charAt(0)+"1",10)*Number(a.substr(2)):Number(a)||0)-o,p.length&&(-1!==(a=p.join("_")).indexOf("short")&&(l%=c)!==l%(c/2)&&(l=l<0?l+c:l-c),-1!==a.indexOf("_cw")&&l<0?l=(l+9999999999*c)%c-(l/c|0)*c:-1!==a.indexOf("ccw")&&0<l&&(l=(l-9999999999*c)%c-(l/c|0)*c)),(1e-6<l||l<-1e-6)&&(this._addTween(t,n,o,o+l,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}});c._autoCSS=!0,
/*!
 * VERSION: 2.0.2
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */
T.m._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(){function h(t){T.j.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 e,r,i=this.vars;for(r in i)e=i[r],c(e)&&-1!==e.join("").indexOf("{self}")&&(i[r]=this._swapSelfInParams(e));c(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)}function d(t){var e,r={};for(e in t)r[e]=t[e];return r}function f(t,e,r){var i,n,a=t.cycle;for(i in a)n=a[i],t[i]="function"==typeof n?n(r,e[r]):n[r%n.length];delete t.cycle}function m(t){var e,r=[],i=t.length;for(e=0;e!==i;r.push(t[e++]));return r}var t=T.n._internals,e=h._internals={},g=t.isSelector,c=t.isArray,v=t.lazyTweens,y=t.lazyRender,o=T.m._gsDefine.globals,a=e.pauseCallback=function(){},r=h.prototype=new T.j;return h.version="2.0.2",r.constructor=h,r.kill()._gc=r._forcingPlayhead=r._hasPause=!1,r.to=function(t,e,r,i){var n=r.repeat&&o.TweenMax||T.n;return e?this.add(new n(t,e,r),i):this.set(t,r,i)},r.from=function(t,e,r,i){return this.add((r.repeat&&o.TweenMax||T.n).from(t,e,r),i)},r.fromTo=function(t,e,r,i,n){var a=i.repeat&&o.TweenMax||T.n;return e?this.add(a.fromTo(t,e,r,i),n):this.set(t,i,n)},r.staggerTo=function(t,e,r,i,n,a,o,s){var l,p,c=new h({onComplete:a,onCompleteParams:o,callbackScope:s,smoothChildTiming:this.smoothChildTiming}),u=r.cycle;for("string"==typeof t&&(t=T.n.selector(t)||t),g(t=t||[])&&(t=m(t)),(i=i||0)<0&&((t=m(t)).reverse(),i*=-1),p=0;p<t.length;p++)(l=d(r)).startAt&&(l.startAt=d(l.startAt),l.startAt.cycle&&f(l.startAt,t,p)),u&&(f(l,t,p),null!=l.duration&&(e=l.duration,delete l.duration)),c.to(t[p],e,l,p*i);return this.add(c,n)},r.staggerFrom=function(t,e,r,i,n,a,o,s){return r.immediateRender=0!=r.immediateRender,r.runBackwards=!0,this.staggerTo(t,e,r,i,n,a,o,s)},r.staggerFromTo=function(t,e,r,i,n,a,o,s,l){return i.startAt=r,i.immediateRender=0!=i.immediateRender&&0!=r.immediateRender,this.staggerTo(t,e,i,n,a,o,s,l)},r.call=function(t,e,r,i){return this.add(T.n.delayedCall(0,t,e,r),i)},r.set=function(t,e,r){return r=this._parseTimeOrLabel(r,0,!0),null==e.immediateRender&&(e.immediateRender=r===this._time&&!this._paused),this.add(new T.n(t,0,e),r)},h.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var r,i,n,a,o=new h(t),s=o._timeline;for(null==e&&(e=!0),s._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=s._time,n=s._first;n;)a=n._next,e&&n instanceof T.n&&n.target===n.vars.onComplete||((i=n._startTime-n._delay)<0&&(r=1),o.add(n,i)),n=a;return s.add(o,0),r&&o.totalDuration(),o},r.add=function(t,e,r,i){var n,a,o,s,l,p;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,t)),!(t instanceof T.a)){if(t instanceof Array||t&&t.push&&c(t)){for(r=r||"normal",i=i||0,n=e,a=t.length,o=0;o<a;o++)c(s=t[o])&&(s=new h({tweens:s})),this.add(s,n),"string"!=typeof s&&"function"!=typeof s&&("sequence"===r?n=s._startTime+s.totalDuration()/s._timeScale:"start"===r&&(s._startTime-=s.delay())),n+=i;return this._uncache(!0)}if("string"==typeof t)return this.addLabel(t,e);if("function"!=typeof t)throw"Cannot add "+t+" into the timeline; it is not a tween, timeline, function, or string.";t=T.n.delayedCall(0,t)}if(T.j.prototype.add.call(this,t,e),t._time&&(n=Math.max(0,Math.min(t.totalDuration(),(this.rawTime()-t._startTime)*t._timeScale)),1e-5<Math.abs(n-t._totalTime)&&t.render(n,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(p=(l=this).rawTime()>t._startTime;l._timeline;)p&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return this},r.remove=function(t){if(t instanceof T.a){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?T.a._rootFramesTimeline:T.a._rootTimeline;return t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&c(t)){for(var r=t.length;-1<--r;)this.remove(t[r]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},r._remove=function(t,e){return T.j.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},r.insert=r.insertMultiple=function(t,e,r,i){return this.add(t,e||0,r,i)},r.appendMultiple=function(t,e,r,i){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),r,i)},r.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},r.addPause=function(t,e,r,i){var n=T.n.delayedCall(0,a,r,i||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data="isPause",this._hasPause=!0,this.add(n,t)},r.removeLabel=function(t){return delete this._labels[t],this},r.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},r._parseTimeOrLabel=function(t,e,r,i){var n,a;if(i instanceof T.a&&i.timeline===this)this.remove(i);else if(i&&(i instanceof Array||i.push&&c(i)))for(a=i.length;-1<--a;)i[a]instanceof T.a&&i[a].timeline===this&&this.remove(i[a]);if(n="number"!=typeof t||e?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,r&&"number"==typeof t&&null==this._labels[e]?t-n:0,r);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=n);else{if(-1===(a=t.indexOf("=")))return null==this._labels[t]?r?this._labels[t]=n+e:e:this._labels[t]+e;e=parseInt(t.charAt(a-1)+"1",10)*Number(t.substr(a+1)),t=1<a?this._parseTimeOrLabel(t.substr(0,a-1),0,r):n}return Number(t)+e},r.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(t,e){return this.play(t,e)},r.gotoAndStop=function(t,e){return this.pause(t,e)},r.render=function(t,e,r){this._gc&&this._enabled(!0,!1);var i,n,a,o,s,l,p,c=this._time,u=this._dirty?this.totalDuration():this._totalDuration,h=this._startTime,d=this._timeScale,f=this._paused;if(c!==this._time&&(t+=this._time-c),u-1e-7<=t&&0<=t)this._totalTime=this._time=u,this._reversed||this._hasPausedChild()||(n=!0,o="onComplete",s=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&-1e-7<=t||this._rawPrevTime<0||1e-10===this._rawPrevTime)&&this._rawPrevTime!==t&&this._first&&(s=!0,1e-10<this._rawPrevTime&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,t=u+1e-4;else if(t<1e-7)if(this._totalTime=this._time=0,(0!==c||0===this._duration&&1e-10!==this._rawPrevTime&&(0<this._rawPrevTime||t<0&&0<=this._rawPrevTime))&&(o="onReverseComplete",n=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(s=n=!0,o="onReverseComplete"):0<=this._rawPrevTime&&this._first&&(s=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,0===t&&n)for(i=this._first;i&&0===i._startTime;)i._duration||(n=!1),i=i._next;t=0,this._initted||(s=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(c<=t)for(i=this._first;i&&i._startTime<=t&&!l;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===this._rawPrevTime||(l=i),i=i._next;else for(i=this._last;i&&i._startTime>=t&&!l;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(l=i),i=i._prev;l&&(this._time=t=l._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==c&&this._first||r||s||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==c&&0<t&&(this._active=!0),0===c&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),c<=(p=this._time))for(i=this._first;i&&(a=i._next,p===this._time&&(!this._paused||f));)(i._active||i._startTime<=p&&!i._paused&&!i._gc)&&(l===i&&this.pause(),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,r):i.render((t-i._startTime)*i._timeScale,e,r)),i=a;else for(i=this._last;i&&(a=i._prev,p===this._time&&(!this._paused||f));){if(i._active||i._startTime<=c&&!i._paused&&!i._gc){if(l===i){for(l=i._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,r),l=l._prev;l=null,this.pause()}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,r):i.render((t-i._startTime)*i._timeScale,e,r)}i=a}this._onUpdate&&(e||(v.length&&y(),this._callback("onUpdate"))),o&&(this._gc||h!==this._startTime&&d===this._timeScale||(0===this._time||u>=this.totalDuration())&&(n&&(v.length&&y(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},r._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof h&&t._hasPausedChild())return!0;t=t._next}return!1},r.getChildren=function(t,e,r,i){i=i||-9999999999;for(var n=[],a=this._first,o=0;a;)a._startTime<i||(a instanceof T.n?!1!==e&&(n[o++]=a):(!1!==r&&(n[o++]=a),!1!==t&&(o=(n=n.concat(a.getChildren(!0,e,r))).length))),a=a._next;return n},r.getTweensOf=function(t,e){var r,i,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),i=(r=T.n.getTweensOf(t)).length;-1<--i;)(r[i].timeline===this||e&&this._contains(r[i]))&&(a[o++]=r[i]);return n&&this._enabled(!1,!0),a},r.recent=function(){return this._recent},r._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},r.shiftChildren=function(t,e,r){r=r||0;for(var i,n=this._first,a=this._labels;n;)n._startTime>=r&&(n._startTime+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return this._uncache(!0)},r._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var r=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),i=r.length,n=!1;-1<--i;)r[i]._kill(t,e)&&(n=!0);return n},r.clear=function(t){var e=this.getChildren(!1,!0,!0),r=e.length;for(this._time=this._totalTime=0;-1<--r;)e[r]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return T.a.prototype.invalidate.call(this)},r._enabled=function(t,e){if(t===this._gc)for(var r=this._first;r;)r._enabled(t,!0),r=r._next;return T.j.prototype._enabled.call(this,t,e)},r.totalTime=function(t,e,r){this._forcingPlayhead=!0;var i=T.a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,i},r.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,r,i=0,n=this._last,a=999999999999;n;)e=n._prev,n._dirty&&n.totalDuration(),n._startTime>a&&this._sortChildren&&!n._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(n,n._startTime-n._delay),this._calculatingDuration=0):a=n._startTime,n._startTime<0&&!n._paused&&(i-=n._startTime,this._timeline.smoothChildTiming&&(this._startTime+=n._startTime/this._timeScale,this._time-=n._startTime,this._totalTime-=n._startTime,this._rawPrevTime-=n._startTime),this.shiftChildren(-n._startTime,!1,-9999999999),a=0),i<(r=n._startTime+n._totalDuration/n._timeScale)&&(i=r),n=e;this._duration=this._totalDuration=i,this._dirty=!1}return this._totalDuration},r.paused=function(t){if(!t)for(var e=this._first,r=this._time;e;)e._startTime===r&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return T.a.prototype.paused.apply(this,arguments)},r.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===T.a._rootFramesTimeline},r.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},h},!0);var u=T.o.TimelineLite;
/*!
 * VERSION: 2.0.2
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */T.m._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(){function t(t){u.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0}var e=T.n._internals,k=e.lazyTweens,I=e.lazyRender,s=T.m._gsDefine.globals,l=new T.b(null,null,1,0),r=t.prototype=new u;return r.constructor=t,r.kill()._gc=!1,t.version="2.0.2",r.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),u.prototype.invalidate.call(this)},r.addCallback=function(t,e,r,i){return this.add(T.n.delayedCall(0,t,r,i),e)},r.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var r=this.getTweensOf(t,!1),i=r.length,n=this._parseTimeOrLabel(e);-1<--i;)r[i]._startTime===n&&r[i]._enabled(!1,!1);return this},r.removePause=function(t){return this.removeCallback(u._internals.pauseCallback,t)},r.tweenTo=function(t,e){e=e||{};var r,i,n,a={ease:l,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},o=e.repeat&&s.TweenMax||T.n;for(i in e)a[i]=e[i];return a.time=this._parseTimeOrLabel(t),r=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,n=new o(this,r,a),a.onStart=function(){n.target.paused(!0),n.vars.time===n.target.time()||r!==n.duration()||n.isFromTo||n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale).render(n.time(),!0,!0),e.onStart&&e.onStart.apply(e.onStartScope||e.callbackScope||n,e.onStartParams||[])},n},r.tweenFromTo=function(t,e,r){r=r||{},t=this._parseTimeOrLabel(t),r.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},r.immediateRender=!1!==r.immediateRender;var i=this.tweenTo(e,r);return i.isFromTo=1,i.duration(Math.abs(i.vars.time-t)/this._timeScale||.001)},r.render=function(t,e,r){this._gc&&this._enabled(!0,!1);var i,n,a,o,s,l,p,c,u=this._time,h=this._dirty?this.totalDuration():this._totalDuration,d=this._duration,f=this._totalTime,m=this._startTime,g=this._timeScale,v=this._rawPrevTime,y=this._paused,x=this._cycle;if(u!==this._time&&(t+=this._time-u),h-1e-7<=t&&0<=t)this._locked||(this._totalTime=h,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(n=!0,o="onComplete",s=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&-1e-7<=t||v<0||1e-10===v)&&v!==t&&this._first&&(s=!0,1e-10<v&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,this._yoyo&&0!=(1&this._cycle)?this._time=t=0:t=(this._time=d)+1e-4;else if(t<1e-7)if(this._locked||(this._totalTime=this._cycle=0),((this._time=0)!==u||0===d&&1e-10!==v&&(0<v||t<0&&0<=v)&&!this._locked)&&(o="onReverseComplete",n=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(s=n=!0,o="onReverseComplete"):0<=v&&this._first&&(s=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=d||!e||t||this._rawPrevTime===t?t:1e-10,0===t&&n)for(i=this._first;i&&0===i._startTime;)i._duration||(n=!1),i=i._next;t=0,this._initted||(s=!0)}else if(0===d&&v<0&&(s=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(l=d+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&f<=t&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!=(1&this._cycle)&&(this._time=d-this._time),this._time>d?t=(this._time=d)+1e-4:this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if(u<=(t=this._time)||this._repeat&&x!==this._cycle)for(i=this._first;i&&i._startTime<=t&&!p;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===this._rawPrevTime||(p=i),i=i._next;else for(i=this._last;i&&i._startTime>=t&&!p;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(p=i),i=i._prev;p&&p._startTime<d&&(this._time=t=p._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==x&&!this._locked){var b=this._yoyo&&0!=(1&x),_=b===(this._yoyo&&0!=(1&this._cycle)),w=this._totalTime,S=this._cycle,T=this._rawPrevTime,P=this._time;if(this._totalTime=x*d,this._cycle<x?b=!b:this._totalTime+=d,this._time=u,this._rawPrevTime=0===d?v-1e-4:v,this._cycle=x,this._locked=!0,u=b?0:d,this.render(u,e,0===d),e||this._gc||this.vars.onRepeat&&(this._cycle=S,this._locked=!1,this._callback("onRepeat")),u!==this._time)return;if(_&&(this._cycle=x,this._locked=!0,u=b?d+1e-4:-1e-4,this.render(u,!0,!1)),this._locked=!1,this._paused&&!y)return;this._time=P,this._totalTime=w,this._cycle=S,this._rawPrevTime=T}if(this._time!==u&&this._first||r||s||p){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==f&&0<t&&(this._active=!0),0===f&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),u<=(c=this._time))for(i=this._first;i&&(a=i._next,c===this._time&&(!this._paused||y));)(i._active||i._startTime<=this._time&&!i._paused&&!i._gc)&&(p===i&&this.pause(),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,r):i.render((t-i._startTime)*i._timeScale,e,r)),i=a;else for(i=this._last;i&&(a=i._prev,c===this._time&&(!this._paused||y));){if(i._active||i._startTime<=u&&!i._paused&&!i._gc){if(p===i){for(p=i._prev;p&&p.endTime()>this._time;)p.render(p._reversed?p.totalDuration()-(t-p._startTime)*p._timeScale:(t-p._startTime)*p._timeScale,e,r),p=p._prev;p=null,this.pause()}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,r):i.render((t-i._startTime)*i._timeScale,e,r)}i=a}this._onUpdate&&(e||(k.length&&I(),this._callback("onUpdate"))),o&&(this._locked||this._gc||m!==this._startTime&&g===this._timeScale||(0===this._time||h>=this.totalDuration())&&(n&&(k.length&&I(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}else f!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},r.getActive=function(t,e,r){null==t&&(t=!0),null==e&&(e=!0),null==r&&(r=!1);var i,n,a=[],o=this.getChildren(t,e,r),s=0,l=o.length;for(i=0;i<l;i++)(n=o[i]).isActive()&&(a[s++]=n);return a},r.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,r=this.getLabelsArray(),i=r.length;for(e=0;e<i;e++)if(r[e].time>t)return r[e].name;return null},r.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),r=e.length;-1<--r;)if(e[r].time<t)return e[r].name;return null},r.getLabelsArray=function(){var t,e=[],r=0;for(t in this._labels)e[r++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},r.invalidate=function(){return this._locked=!1,u.prototype.invalidate.call(this)},r.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()||0},r.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},r.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(u.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},r.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},r.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},r.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},r.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},t},!0);function y(t,e,r,i){r===i&&(r=i-(i-e)/1e6),t===e&&(e=t+(r-t)/1e6),this.a=t,this.b=e,this.c=r,this.d=i,this.da=i-t,this.ca=r-t,this.ba=e-t}function _(t,e,r,i){var n={a:t},a={},o={},s={c:i},l=(t+e)/2,p=(e+r)/2,c=(r+i)/2,u=(l+p)/2,h=(p+c)/2,d=(h-u)/8;return n.b=l+(t-l)/4,a.b=u+d,n.c=a.a=(n.b+a.b)/2,a.c=o.a=(u+h)/2,o.b=h-d,s.b=c+(i-c)/4,o.c=s.a=(o.b+s.b)/2,[n,a,o,s]}function v(t,e,r,i,n){var a,o,s,l,p,c,u,h,d,f,m,g,v,y=t.length-1,x=0,b=t[0].a;for(a=0;a<y;a++)o=(p=t[x]).a,s=p.d,l=t[x+1].d,h=n?(m=w[a],v=((g=P[a])+m)*e*.25/(i?.5:k[a]||.5),s-((c=s-(s-o)*(i?.5*e:0!==m?v/m:0))+(((u=s+(l-s)*(i?.5*e:0!==g?v/g:0))-c)*(3*m/(m+g)+.5)/4||0))):s-((c=s-(s-o)*e*.5)+(u=s+(l-s)*e*.5))/2,c+=h,u+=h,p.c=d=c,p.b=0!==a?b:b=p.a+.6*(p.c-p.a),p.da=s-o,p.ca=d-o,p.ba=b-o,r?(f=_(o,b,d,s),t.splice(x,1,f[0],f[1],f[2],f[3]),x+=4):x++,b=u;(p=t[x]).b=b,p.c=b+.4*(p.d-b),p.da=p.d-p.a,p.ca=p.c-p.a,p.ba=b-p.a,r&&(f=_(p.a,b,p.c,p.d),t.splice(x,1,f[0],f[1],f[2],f[3]))}function x(t,e,r,i){var n,a,o,s,l,p,c=[];if(i)for(a=(t=[i].concat(t)).length;-1<--a;)"string"==typeof(p=t[a][e])&&"="===p.charAt(1)&&(t[a][e]=i[e]+Number(p.charAt(0)+p.substr(2)));if((n=t.length-2)<0)return c[0]=new y(t[0][e],0,0,t[0][e]),c;for(a=0;a<n;a++)o=t[a][e],s=t[a+1][e],c[a]=new y(o,0,0,s),r&&(l=t[a+2][e],w[a]=(w[a]||0)+(s-o)*(s-o),P[a]=(P[a]||0)+(l-s)*(l-s));return c[a]=new y(t[a][e],0,0,t[a+1][e]),c}function d(t,e,r,i,n,a){var o,s,l,p,c,u,h,d,f={},m=[],g=a||t[0];for(s in n="string"==typeof n?","+n+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==e&&(e=1),t[0])m.push(s);if(1<t.length){for(d=t[t.length-1],h=!0,o=m.length;-1<--o;)if(s=m[o],.05<Math.abs(g[s]-d[s])){h=!1;break}h&&(t=t.concat(),a&&t.unshift(a),t.push(t[1]),a=t[t.length-3])}for(w.length=P.length=k.length=0,o=m.length;-1<--o;)s=m[o],b[s]=-1!==n.indexOf(","+s+","),f[s]=x(t,s,b[s],a);for(o=w.length;-1<--o;)w[o]=Math.sqrt(w[o]),P[o]=Math.sqrt(P[o]);if(!i){for(o=m.length;-1<--o;)if(b[s])for(u=(l=f[m[o]]).length-1,p=0;p<u;p++)c=l[p+1].da/P[p]+l[p].da/w[p]||0,k[p]=(k[p]||0)+c*c;for(o=k.length;-1<--o;)k[o]=Math.sqrt(k[o])}for(o=m.length,p=r?4:1;-1<--o;)l=f[s=m[o]],v(l,e,r,i,b[s]),h&&(l.splice(0,p),l.splice(l.length-p,p));return f}function f(t,e,r){for(var i,n,a,o,s,l,p,c,u,h,d,f=1/r,m=t.length;-1<--m;)for(a=(h=t[m]).a,o=h.d-a,s=h.c-a,l=h.b-a,i=n=0,c=1;c<=r;c++)i=n-(n=((p=f*c)*p*o+3*(u=1-p)*(p*s+u*l))*p),e[d=m*r+c-1]=(e[d]||0)+i*i}var h=T.o.TimelineMax,S=180/Math.PI,w=[],P=[],k=[],b={},g=T.m._gsDefine.globals,I=T.m._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(t,e,r){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var i,n,a,o,s,l=e.values||[],p={},c=l[0],u=e.autoRotate||r.vars.orientToBezier;for(i in this._autoRotate=u?u instanceof Array?u:[["x","y","rotation",!0===u?0:Number(u)||0]]:null,c)this._props.push(i);for(a=this._props.length;-1<--a;)i=this._props[a],this._overwriteProps.push(i),n=this._func[i]="function"==typeof t[i],p[i]=n?t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)]():parseFloat(t[i]),s||p[i]!==l[0][i]&&(s=p);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?d(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,s):function(t,e,r){var i,n,a,o,s,l,p,c,u,h,d,f={},m="cubic"===(e=e||"soft")?3:2,g="soft"===e,v=[];if(g&&r&&(t=[r].concat(t)),null==t||t.length<1+m)throw"invalid Bezier data";for(u in t[0])v.push(u);for(l=v.length;-1<--l;){for(f[u=v[l]]=s=[],h=0,c=t.length,p=0;p<c;p++)i=null==r?t[p][u]:"string"==typeof(d=t[p][u])&&"="===d.charAt(1)?r[u]+Number(d.charAt(0)+d.substr(2)):Number(d),g&&1<p&&p<c-1&&(s[h++]=(i+s[h-2])/2),s[h++]=i;for(c=h-m+1,p=h=0;p<c;p+=m)i=s[p],n=s[p+1],a=s[p+2],o=2==m?0:s[p+3],s[h++]=d=3==m?new y(i,n,a,o):new y(i,(2*n+i)/3,(2*n+a)/3,a);s.length=h}return f}(l,e.type,p),this._segCount=this._beziers[i].length,this._timeRes){var h=function(t,e){var r,i,n,a,o=[],s=[],l=0,p=0,c=(e=e>>0||6)-1,u=[],h=[];for(r in t)f(t[r],o,e);for(n=o.length,i=0;i<n;i++)l+=Math.sqrt(o[i]),h[a=i%e]=l,a===c&&(p+=l,u[a=i/e>>0]=h,s[a]=p,l=0,h=[]);return{length:p,lengths:s,segments:u}}(this._beziers,this._timeRes);this._length=h.length,this._lengths=h.lengths,this._segments=h.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(u=this._autoRotate)for(this._initialRotations=[],u[0]instanceof Array||(this._autoRotate=u=[u]),a=u.length;-1<--a;){for(o=0;o<3;o++)i=u[a][o],this._func[i]="function"==typeof t[i]&&t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)];i=u[a][2],this._initialRotations[a]=(this._func[i]?this._func[i].call(this._target):this._target[i])||0,this._overwriteProps.push(i)}return this._startRatio=r.vars.runBackwards?1:0,!0},set:function(t){var e,r,i,n,a,o,s,l,p,c,u=this._segCount,h=this._func,d=this._target,f=t!==this._startRatio;if(this._timeRes){if(p=this._lengths,c=this._curSeg,t*=this._length,i=this._li,t>this._l2&&i<u-1){for(l=u-1;i<l&&(this._l2=p[++i])<=t;);this._l1=p[i-1],this._li=i,this._curSeg=c=this._segments[i],this._s2=c[this._s1=this._si=0]}else if(t<this._l1&&0<i){for(;0<i&&(this._l1=p[--i])>=t;);0===i&&t<this._l1?this._l1=0:i++,this._l2=p[i],this._li=i,this._curSeg=c=this._segments[i],this._s1=c[(this._si=c.length-1)-1]||0,this._s2=c[this._si]}if(e=i,t-=this._l1,i=this._si,t>this._s2&&i<c.length-1){for(l=c.length-1;i<l&&(this._s2=c[++i])<=t;);this._s1=c[i-1],this._si=i}else if(t<this._s1&&0<i){for(;0<i&&(this._s1=c[--i])>=t;);0===i&&t<this._s1?this._s1=0:i++,this._s2=c[i],this._si=i}o=(i+(t-this._s1)/(this._s2-this._s1))*this._prec||0}else o=(t-(e=t<0?0:1<=t?u-1:u*t>>0)*(1/u))*u;for(r=1-o,i=this._props.length;-1<--i;)n=this._props[i],s=(o*o*(a=this._beziers[n][e]).da+3*r*(o*a.ca+r*a.ba))*o+a.a,this._mod[n]&&(s=this._mod[n](s,d)),h[n]?d[n](s):d[n]=s;if(this._autoRotate){var m,g,v,y,x,b,_,w=this._autoRotate;for(i=w.length;-1<--i;)n=w[i][2],b=w[i][3]||0,_=!0===w[i][4]?1:S,a=this._beziers[w[i][0]],m=this._beziers[w[i][1]],a&&m&&(a=a[e],m=m[e],g=a.a+(a.b-a.a)*o,g+=((y=a.b+(a.c-a.b)*o)-g)*o,y+=(a.c+(a.d-a.c)*o-y)*o,v=m.a+(m.b-m.a)*o,v+=((x=m.b+(m.c-m.b)*o)-v)*o,x+=(m.c+(m.d-m.c)*o-x)*o,s=f?Math.atan2(x-v,y-g)*_+b:this._initialRotations[i],this._mod[n]&&(s=this._mod[n](s,d)),h[n]?d[n](s):d[n]=s)}}}),m=I.prototype;
/*!
 * VERSION: 1.3.8
 * DATE: 2018-05-30
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 **/I.bezierThrough=d,I.cubicToQuadratic=_,I._autoCSS=!0,I.quadraticToCubic=function(t,e,r){return new y(t,(2*e+t)/3,(2*e+r)/3,r)},I._cssRegister=function(){var t=g.CSSPlugin;if(t){var e=t._internals,d=e._parseToProxy,f=e._setPluginRatio,m=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,r,i,n,a){e instanceof Array&&(e={values:e}),a=new I;var o,s,l,p=e.values,c=p.length-1,u=[],h={};if(c<0)return n;for(o=0;o<=c;o++)l=d(t,p[o],i,n,a,c!==o),u[o]=l.end;for(s in e)h[s]=e[s];return h.values=u,(n=new m(t,"bezier",0,0,l.pt,2)).data=l,n.plugin=a,n.setRatio=f,0===h.autoRotate&&(h.autoRotate=!0),!h.autoRotate||h.autoRotate instanceof Array||(o=!0===h.autoRotate?0:Number(h.autoRotate),h.autoRotate=null!=l.end.left?[["left","top","rotation",o,!1]]:null!=l.end.x&&[["x","y","rotation",o,!1]]),h.autoRotate&&(i._transform||i._enableTransforms(!1),l.autoRotate=i._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,i._overwriteProps.push("rotation")),a._onInitTween(l.proxy,h,i._tween),n}})}},m._mod=function(t){for(var e,r=this._overwriteProps,i=r.length;-1<--i;)(e=t[r[i]])&&"function"==typeof e&&(this._mod[r[i]]=e)},m._kill=function(t){var e,r,i=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],r=i.length;-1<--r;)i[r]===e&&i.splice(r,1);if(i=this._autoRotate)for(r=i.length;-1<--r;)t[i[r][2]]&&i.splice(r,1);return this._super._kill.call(this,t)},
/*!
 * VERSION: 1.16.1
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 **/
T.m._gsDefine("easing.Back",["easing.Ease"],function(){function t(t,e){var r=u("easing."+t,function(){},!0),i=r.prototype=new T.b;return i.constructor=r,i.getRatio=e,r}function e(t,e,r,i,n){var a=u("easing."+t,{easeOut:new e,easeIn:new r,easeInOut:new i},!0);return h(a,t),a}function g(t,e,r){this.t=t,this.v=e,r&&(((this.next=r).prev=this).c=r.v-e,this.gap=r.t-t)}function r(t,e){var r=u("easing."+t,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),i=r.prototype=new T.b;return i.constructor=r,i.getRatio=e,i.config=function(t){return new r(t)},r}var i,n,a,o,s=T.m.GreenSockGlobals||T.m,l=s.com.greensock,p=2*Math.PI,c=Math.PI/2,u=l._class,h=T.b.register||function(){},d=e("Back",r("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),r("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),r("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)})),f=u("easing.SlowMo",function(t,e,r){e=e||0===e?e:.7,null==t?t=.7:1<t&&(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===r},!0),m=f.prototype=new T.b;return m.constructor=f,m.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?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},f.ease=new f(.7,.7),m.config=f.config=function(t,e,r){return new f(t,e,r)},(m=(i=u("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new T.b).constructor=i,m.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},m.config=i.config=function(t,e){return new i(t,e)},(m=(n=u("easing.ExpoScaleEase",function(t,e,r){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=r},!0)).prototype=new T.b).constructor=n,m.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},m.config=n.config=function(t,e,r){return new n(t,e,r)},(m=(a=u("easing.RoughEase",function(t){for(var e,r,i,n,a,o,s=(t=t||{}).taper||"none",l=[],p=0,c=0|(t.points||20),u=c,h=!1!==t.randomize,d=!0===t.clamp,f=t.template instanceof T.b?t.template:null,m="number"==typeof t.strength?.4*t.strength:.4;-1<--u;)e=h?Math.random():1/c*u,r=f?f.getRatio(e):e,i="none"===s?m:"out"===s?(n=1-e)*n*m:"in"===s?e*e*m:e<.5?(n=2*e)*n*.5*m:(n=2*(1-e))*n*.5*m,h?r+=Math.random()*i-.5*i:u%2?r+=.5*i:r-=.5*i,d&&(1<r?r=1:r<0&&(r=0)),l[p++]={x:e,y:r};for(l.sort(function(t,e){return t.x-e.x}),o=new g(1,1,null),u=c;-1<--u;)a=l[u],o=new g(a.x,a.y,o);this._prev=new g(0,0,0!==o.t?o:o.next)},!0)).prototype=new T.b).constructor=a,m.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).v+(t-e.t)/e.gap*e.c},m.config=function(t){return new a(t)},a.ease=new a,e("Bounce",t("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),t("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),t("BounceInOut",function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),e("Circ",t("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),t("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),t("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),e("Elastic",(o=function(t,e,r){var i=u("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||r)/(t<1?t:1),this._p3=this._p2/p*(Math.asin(1/this._p1)||0),this._p2=p/this._p2},!0),n=i.prototype=new T.b;return n.constructor=i,n.getRatio=e,n.config=function(t,e){return new i(t,e)},i})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),o("ElasticIn",function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)},.3),o("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)),e("Expo",t("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),t("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),t("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),e("Sine",t("SineOut",function(t){return Math.sin(t*c)}),t("SineIn",function(t){return 1-Math.cos(t*c)}),t("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),u("easing.EaseLookup",{find:function(t){return T.b.map[t]}},!0),h(s.SlowMo,"SlowMo","ease,"),h(a,"RoughEase","ease,"),h(i,"SteppedEase","ease,"),d},!0);var A=T.o.Back,E=T.o.Elastic,C=T.o.Bounce,O=T.o.RoughEase,M=T.o.SlowMo,D=T.o.SteppedEase,F=T.o.Circ,R=T.o.Expo,N=T.o.Sine,L=T.o.ExpoScaleEase;r.d(e,"TweenMax",function(){return B}),r.d(e,"default",function(){return B}),r.d(e,"TweenLite",function(){return T.n}),r.d(e,"TimelineLite",function(){return u}),r.d(e,"TimelineMax",function(){return h}),r.d(e,"CSSPlugin",function(){return n.a}),r.d(e,"AttrPlugin",function(){return a}),r.d(e,"BezierPlugin",function(){return I}),r.d(e,"DirectionalRotationPlugin",function(){return c}),r.d(e,"RoundPropsPlugin",function(){return o}),r.d(e,"TweenPlugin",function(){return T.l}),r.d(e,"Ease",function(){return T.b}),r.d(e,"Power0",function(){return T.e}),r.d(e,"Power1",function(){return T.f}),r.d(e,"Power2",function(){return T.g}),r.d(e,"Power3",function(){return T.h}),r.d(e,"Power4",function(){return T.i}),r.d(e,"Linear",function(){return T.d}),r.d(e,"Back",function(){return A}),r.d(e,"Elastic",function(){return E}),r.d(e,"Bounce",function(){return C}),r.d(e,"RoughEase",function(){return O}),r.d(e,"SlowMo",function(){return M}),r.d(e,"SteppedEase",function(){return D}),r.d(e,"Circ",function(){return F}),r.d(e,"Expo",function(){return R}),r.d(e,"Sine",function(){return N}),r.d(e,"ExpoScaleEase",function(){return L});
/*!
 * VERSION: 2.0.2
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 **/
var B=i;B._autoActivated=[u,h,n.a,a,I,o,c,A,E,C,O,M,D,F,R,N,L]},function(t,e,r){r(146),r(460),r(461)},function(t,e){prx.componentsHelper.getAssetUrl=function(t){var e;return e=void 0!==t.targetSrc?"./assets/"+t.targetSrc:!0===t.isFont?"./assets/fonts/custom-font-".concat(t.fileId,".").concat(t.extension):void 0===t.targetSrc&&"svg"==t.fileId.substring(t.fileId.lastIndexOf(".")+1)&&void 0!==t.color?"./assets/generated/"+t.fileId.slice(0,-4)+"_"+t.color.toLowerCase()+".svg":prx.dropboxfs&&"static"!=t.bucketsource?"./assets/"+t.fileId:"./assets/"+t.url,"project"==t.assetType&&(prx.spaces?void 0!==sLinkedAssets[t.fileId]&&(e=sLinkedAssets[t.fileId]):void 0!==sLinkedAssets["p"+prx.projectsettings.id+"_"+t.fileId]&&(e=sLinkedAssets["p"+prx.projectsettings.id+"_"+t.fileId])),"account"==t.assetType&&void 0!==sLinkedAssets["p_"+t.fileId]&&(e=sLinkedAssets["p_"+t.fileId]),e}},function(t,e,r){}]);