!function(e,c){"use strict";function t(e,a,t){var o=t.baseHref(),s=e[0];return function(e,t,n){var r,i;i=(n=n||{}).expires,r=c.isDefined(n.path)?n.path:o,c.isUndefined(t)&&(i="Thu, 01 Jan 1970 00:00:00 GMT",t=""),c.isString(i)&&(i=new Date(i)),t=(t=encodeURIComponent(e)+"="+encodeURIComponent(t))+(r?";path="+r:"")+(n.domain?";domain="+n.domain:""),t+=i?";expires="+i.toUTCString():"",4096<(n=(t+=n.secure?";secure":"").length+1)&&a.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+n+" > 4096 bytes)!"),s.cookie=t}}c.module("ngCookies",["ng"]).provider("$cookies",[function(){var i=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(t,r){return{get:function(e){return t()[e]},getObject:function(e){return(e=this.get(e))?c.fromJson(e):e},getAll:function(){return t()},put:function(e,t,n){r(e,t,n?c.extend({},i,n):i)},putObject:function(e,t,n){this.put(e,c.toJson(t),n)},remove:function(e,t){r(e,void 0,t?c.extend({},i,t):i)}}}]}]),c.module("ngCookies").factory("$cookieStore",["$cookies",function(n){return{get:function(e){return n.getObject(e)},put:function(e,t){n.putObject(e,t)},remove:function(e){n.remove(e)}}}]),t.$inject=["$document","$log","$browser"],c.module("ngCookies").provider("$$cookieWriter",function(){this.$get=t})}(window,window.angular),function(M,w){"use strict";var A,_,S,k,C,x,T,O,D,L,z=w.$$minErr("$sanitize");w.module("ngSanitize",[]).provider("$sanitize",function(){function e(e,t){return n(e.split(","),t)}function n(e,t){var n,r={};for(n=0;n/g,">")}function c(e,t){var n=t[e];if(n&&O.call(t,n))throw z("elclob",t.outerHTML||t.outerText);return n}var r=!1,i=!1;this.$get=["$$sanitizeUri",function(n){return r=!0,i&&_(m,p),function(e){var t=[];return D(e,L(t,function(e,t){return!/^unsafe:/.test(n(e,t))})),t.join("")}}],this.enableSvg=function(e){return C(e)?(i=e,this):i},this.addValidElements=function(e){return r||(k(e)&&(e={htmlElements:e}),t(p,e.svgElements),t(u,e.htmlVoidElements),t(m,e.htmlVoidElements),t(m,e.htmlElements)),this},this.addValidAttrs=function(e){return r||_(b,n(e,!0)),this},A=w.bind,_=w.extend,S=w.forEach,k=w.isArray,C=w.isDefined,x=w.$$lowercase,T=w.noop,D=function(e,t){null==e?e="":"string"!=typeof e&&(e=""+e);var n=y(e);if(!n)return"";var r=5;do{if(0===r)throw z("uinput");r--,e=n.innerHTML,n=y(e)}while(e!==n.innerHTML);for(r=n.firstChild;r;){switch(r.nodeType){case 1:t.start(r.nodeName.toLowerCase(),a(r.attributes));break;case 3:t.chars(r.textContent)}var i;if(!(i=r.firstChild)&&(1===r.nodeType&&t.end(r.nodeName.toLowerCase()),!(i=c("nextSibling",r))))for(;null==i&&(r=c("parentNode",r))!==n;)i=c("nextSibling",r),1===r.nodeType&&t.end(r.nodeName.toLowerCase());r=i}for(;r=n.firstChild;)n.removeChild(r)},L=function(e,a){var t=!1,o=A(e,e.push);return{start:function(i,e){i=x(i),!t&&g[i]&&(t=i),t||!0!==m[i]||(o("<"),o(i),S(e,function(e,t){var n=x(t),r="img"===i&&"src"===n||"background"===n;!0!==b[n]||!0===v[n]&&!a(e,r)||(o(" "),o(t),o('="'),o(s(e)),o('"'))}),o(">"))},end:function(e){e=x(e),t||!0!==m[e]||!0===u[e]||(o("")),e==t&&(t=!1)},chars:function(e){t||o(s(e))}}},O=M.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=/([^#-~ |!])/g,u=e("area,br,col,hr,img,wbr"),h=e("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),d=e("rp,rt"),f=_({},d,h),p=(h=_({},h,e("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),d=_({},d,e("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),e("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan")),g=e("script,style"),m=_({},u,h,d,f),v=e("background,cite,href,longdesc,src,xlink:href,xml:base"),b=(f=e("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),d=e("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),_({},v,d,f)),y=function(n,t){function e(e){e=""+e;try{var t=(new n.DOMParser).parseFromString(e,"text/html").body;return t.firstChild.remove(),t}catch(e){}}var r;try{r=!!e("")}catch(e){r=!1}if(r)return e;if(!t||!t.implementation)throw z("noinert");var i=((r=t.implementation.createHTMLDocument("inert")).documentElement||r.getDocumentElement()).querySelector("body");return function(e){return i.innerHTML=e,t.documentMode&&function e(t){for(;t;){if(t.nodeType===M.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r"\u201d\u2019]/i,d=/^mailto:/i,f=w.$$minErr("linky"),p=w.isDefined,g=w.isFunction,m=w.isObject,v=w.isString;return function(e,i,t){function a(e){var t,n;e&&l.push((t=e,L(n=[],T).chars(t),n.join("")))}function n(e,t){var n,r=s(e);for(n in l.push("'),a(t),l.push("")}if(null==e||""===e)return e;if(!v(e))throw f("notstring",e);for(var r,o,s=g(t)?t:m(t)?function(){return t}:function(){return{}},c=e,l=[];e=c.match(h);)r=e[0],e[2]||e[4]||(r=(e[3]?"http://":"mailto:")+r),o=e.index,a(c.substr(0,o)),n(r,e[0].replace(d,"")),c=c.substring(o+e[0].length);return a(c),u(l.join(""))}}])}(window,window.angular),function(l,e){"use strict";function u(e,t,n){if(!e)throw r("areq",t||"?",n||"required");return e}function M(e,t){return e||t?e?t?(Ae(e)&&(e=e.join(" ")),Ae(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function ie(e,n,r){var i="";return e=Ae(e)?e:e&&Y(e)&&e.length?e.split(/\s+/):[],we(e,function(e,t){e&&0=b&&y<=t&&(g=!0,s()))}function i(){function e(){if(!f){if(c(!1),we(S,function(e){d.style[e[0]]=e[1]}),re(o,u),Y.addClass(o,V),X.recalculateTimingStyles){if(E=d.getAttribute("class")+" "+z,W=Q.cacheKey(d,T,u.addClass,u.removeClass),U=ne(d,E,W,!1),$=U.maxDelay,v=Math.max($,0),0===(y=U.maxDuration))return void s();X.hasTransitions=0i.expectedEndTime)?J.cancel(i.timer):t.push(s)}r&&(n=J(a,n,!1),t[0]={timer:n,expectedEndTime:e},t.push(s),o.data("$$animateCss",t)),x.length&&o.on(x.join(" "),l),u.to&&(u.cleanupStyles&&ge(h,d,Object.keys(u.to)),ce(o,u))}}function a(){var e=o.data("$$animateCss");if(e){for(var t=1;t
',this.loadingBarTemplate='
',this.$get=["$injector","$document","$timeout","$rootScope",function(i,a,o,s){var c,n,l,u=this.parentSelector,h=angular.element(this.loadingBarTemplate),r=h.find("div").eq(0),d=angular.element(this.spinnerTemplate),f=!1,p=0,g=this.autoIncrement,m=this.includeSpinner,v=this.includeBar,b=this.startSize;function y(e){if(f){var t=100*e+"%";r.css("width",t),p=e,g&&(o.cancel(n),n=o(function(){M()},250))}}function M(){if(!(1<=w())){var e=0,t=w();e=0<=t&&t<.25?(3*Math.random()+3)/100:.25<=t&&t<.65?3*Math.random()/100:.65<=t&&t<.9?2*Math.random()/100:.9<=t&&t<.99?.005:0,y(w()+e)}}function w(){return p}function t(){p=0,f=!1}return{start:function(){if(c||(c=i.get("$animate")),o.cancel(l),!f){var e=a[0],t=e.querySelector?e.querySelector(u):a.find(u)[0];t||(t=e.getElementsByTagName("body")[0]);var n=angular.element(t),r=t.lastChild&&angular.element(t.lastChild);s.$broadcast("cfpLoadingBar:started"),f=!0,v&&c.enter(h,n,r),m&&c.enter(d,n,h),y(b)}},set:y,status:w,inc:M,complete:function(){c||(c=i.get("$animate")),s.$broadcast("cfpLoadingBar:completed"),y(1),o.cancel(l),l=o(function(){var e=c.leave(h,t);e&&e.then&&e.then(t),c.leave(d)},500)},autoIncrement:this.autoIncrement,includeSpinner:this.includeSpinner,latencyThreshold:this.latencyThreshold,parentSelector:this.parentSelector,startSize:this.startSize}}]})}(),function(e,f,a){"use strict";function p(e){var t=e.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/);if(!t||4!==t.length)throw new Error("Invalid state ref '"+e+"'");return{state:t[1],paramExpr:t[3]||null}}function g(e,t,n,r){var i=o[e];i!==a&&i(),i=t.$on(n,r),o[e]=i}function t(i,a,n){return{restrict:"AE",replace:!0,scope:{},template:a.getTemplate({bootstrap2:'',bootstrap3:''}),templateUrl:a.getTemplateUrl(),link:{post:function(e){var r=[],t=function(){h(r),r=[];var n=a.$getLastViewScope();e.steps=a.getStatesChain(),f.forEach(e.steps,function(e){if(e.ncyBreadcrumb&&e.ncyBreadcrumb.label){var t=i(e.ncyBreadcrumb.label);e.ncyBreadcrumbLabel=t(n),c(r,t,n,e)}else e.ncyBreadcrumbLabel=e.name})};g("BreadcrumbDirective.$viewContentLoaded",n,"$viewContentLoaded",function(e){e.targetScope.ncyBreadcrumbIgnore||t()}),t()}}}}function n(a,o,s){return{restrict:"A",scope:{},template:o.getTemplateLast({default:"{{ncyBreadcrumbLabel}}"}),templateUrl:o.getTemplateLastUrl(),compile:function(e,t){var n=e.attr(t.$attr.ncyBreadcrumbLast);return n&&e.html(n),{post:function(r){var i=[],t=function(){h(i),i=[];var e=o.$getLastViewScope(),t=o.getLastStep();if(t)if(r.ncyBreadcrumbLink=t.ncyBreadcrumbLink,t.ncyBreadcrumb&&t.ncyBreadcrumb.label){var n=a(t.ncyBreadcrumb.label);r.ncyBreadcrumbLabel=n(e),c(i,n,e,r)}else r.ncyBreadcrumbLabel=t.name};g("BreadcrumbLastDirective.$viewContentLoaded",s,"$viewContentLoaded",function(e){e.targetScope.ncyBreadcrumbIgnore||t()}),t()}}}}}function r(l,i,a){return{restrict:"A",scope:{},template:"{{ncyBreadcrumbChain}}",compile:function(e,t){var n=e.attr(t.$attr.ncyBreadcrumbText);n&&e.html(n);var r=e.attr(t.$attr.ncyBreadcrumbTextSeparator)||" / ";return{post:function(t){var s=[],c=function(){h(s),s=[];var a=i.$getLastViewScope(),e=i.getStatesChain(),o=[];f.forEach(e,function(e){if(e.ncyBreadcrumb&&e.ncyBreadcrumb.label){var t=l(e.ncyBreadcrumb.label);o.push(t(a)),n=s,r=t,i=a,f.forEach(u(r),function(e){var t=i.$watch(e,function(e,t){e!==t&&c()});n.push(t)})}else o.push(e.name);var n,r,i}),t.ncyBreadcrumbChain=o.join(r)};g("BreadcrumbTextDirective.$viewContentLoaded",a,"$viewContentLoaded",function(e){e.targetScope.ncyBreadcrumbIgnore||c()}),c()}}}}}var o={},u=function(e){if(e.expressions)return e.expressions;var t=[];return f.forEach(e.parts,function(e){f.isFunction(e)&&t.push(e.exp)}),t},c=function(n,r,i,a){f.forEach(u(r),function(e){var t=i.$watch(e,function(){a.ncyBreadcrumbLabel=r(i)});n.push(t)})},h=function(e){f.forEach(e,function(e){e()})};t.$inject=["$interpolate","$breadcrumb","$rootScope"],n.$inject=["$interpolate","$breadcrumb","$rootScope"],r.$inject=["$interpolate","$breadcrumb","$rootScope"],f.module("ncy-angular-breadcrumb",["ui.router.state"]).provider("$breadcrumb",function(){var d={prefixStateName:null,template:"bootstrap3",templateUrl:null,templateLast:"default",templateLastUrl:null,includeAbstract:!1};this.setOptions=function(e){f.extend(d,e)},this.$get=["$state","$stateParams","$rootScope",function(l,u,e){var h=e;g("$Breadcrumb.$viewContentLoaded",e,"$viewContentLoaded",function(e){var t,n;!e.targetScope.ncyBreadcrumbIgnore&&(t=e.targetScope.$id,n=h.$id,f.equals(t.length,n.length)?nn.length)&&(h=e.targetScope)});var r=function(e,t){for(var n,r,i=p(t),a=!1,o=!1,s=0,c=e.length;s=r?n.apply(null,t):function(){return e(t.concat([].slice.apply(arguments)))}}(e)}function r(){var n=arguments,r=n.length-1;return function(){for(var e=r,t=n[r].apply(this,arguments);e--;)t=n[e].call(this,t);return t}}function i(){for(var e=[],t=0;tthis._limit&&t.shift(),e},e.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},e.prototype.clear=function(){var e=this._items;return this._items=[],e},e.prototype.size=function(){return this._items.length},e.prototype.remove=function(e){var t=this._items.indexOf(e);return-1 "+(this.valid()?"":"(X) ")+"'"+(i.isObject(t)?t.name:t)+"'"+u.toJson(n(this.params()))+" )"},c.diToken=c}();t.Transition=c},function(e,t,n){"use strict";function r(e){return e?"[ui-view#"+e.id+" tag in template from '"+(e.creationContext&&e.creationContext.name||"(root)")+"' state]: fqn: '"+e.fqn+"', name: '"+e.name+"@"+e.creationContext+"')":"ui-view (defunct)"}function i(e){return o.isNumber(e)?l[e]:l[l[e]]}var a,s=n(5),o=n(4),c=n(9);(a=t.Category||(t.Category={}))[a.RESOLVE=0]="RESOLVE",a[a.TRANSITION=1]="TRANSITION",a[a.HOOK=2]="HOOK",a[a.UIVIEW=3]="UIVIEW",a[a.VIEWCONFIG=4]="VIEWCONFIG";var l=t.Category,u=function(){function e(){this._enabled={},this.approximateDigests=0}return e.prototype._set=function(t,e){var n=this;e.length||(e=Object.keys(l).map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)}).map(function(e){return l[e]})),e.map(i).forEach(function(e){return n._enabled[e]=t})},e.prototype.enable=function(){for(var e=[],t=0;t "+r)}},e.prototype.traceTransitionIgnored=function(e){if(this.enabled(l.TRANSITION)){var t=e&&e.$id,n=this.approximateDigests,r=c.stringify(e);console.log("Transition #"+t+" Digest #"+n+": Ignored <> "+r)}},e.prototype.traceHookInvocation=function(e,t){if(this.enabled(l.HOOK)){var n=s.parse("transition.$id")(t),r=this.approximateDigests,i=s.parse("traceData.hookType")(t)||"internal",a=s.parse("traceData.context.state.name")(t)||s.parse("traceData.context")(t)||"unknown",o=c.functionToString(e.eventHook.callback);console.log("Transition #"+n+" Digest #"+r+": Hook -> "+i+" context: "+a+", "+c.maxLength(200,o))}},e.prototype.traceHookResult=function(e,t){if(this.enabled(l.HOOK)){var n=s.parse("transition.$id")(t),r=this.approximateDigests,i=c.stringify(e);console.log("Transition #"+n+" Digest #"+r+": <- Hook returned: "+c.maxLength(200,i))}},e.prototype.traceResolvePath=function(e,t,n){if(this.enabled(l.RESOLVE)){var r=n&&n.$id,i=this.approximateDigests,a=e&&e.toString();console.log("Transition #"+r+" Digest #"+i+": Resolving "+a+" ("+t+")")}},e.prototype.traceResolvableResolved=function(e,t){if(this.enabled(l.RESOLVE)){var n=t&&t.$id,r=this.approximateDigests,i=e&&e.toString(),a=c.stringify(e.data);console.log("Transition #"+n+" Digest #"+r+": <- Resolved "+i+" to: "+c.maxLength(200,a))}},e.prototype.traceError=function(e,t){if(this.enabled(l.TRANSITION)){var n=t&&t.$id,r=this.approximateDigests,i=c.stringify(t);console.log("Transition #"+n+" Digest #"+r+": <- Rejected "+i+", reason: "+e)}},e.prototype.traceSuccess=function(e,t){if(this.enabled(l.TRANSITION)){var n=t&&t.$id,r=this.approximateDigests,i=e.name,a=c.stringify(t);console.log("Transition #"+n+" Digest #"+r+": <- Success "+a+", final state: "+i)}},e.prototype.traceUIViewEvent=function(e,t,n){void 0===n&&(n=""),this.enabled(l.UIVIEW)&&console.log("ui-view: "+c.padString(30,e)+" "+r(t)+n)},e.prototype.traceUIViewConfigUpdated=function(e,t){this.enabled(l.UIVIEW)&&this.traceUIViewEvent("Updating",e," with ViewConfig from context='"+t+"'")},e.prototype.traceUIViewFill=function(e,t){this.enabled(l.UIVIEW)&&this.traceUIViewEvent("Fill",e," with: "+c.maxLength(200,t))},e.prototype.traceViewServiceEvent=function(e,t){var n;this.enabled(l.VIEWCONFIG)&&console.log("VIEWCONFIG: "+e+" "+("[ViewConfig#"+(n=t).$id+" from '"+(n.viewDecl.$context.name||"(root)")+"' state]: target ui-view: '"+n.viewDecl.$uiViewName+"@"+n.viewDecl.$uiViewContextAnchor+"'"))},e.prototype.traceViewServiceUIViewEvent=function(e,t){this.enabled(l.VIEWCONFIG)&&console.log("VIEWCONFIG: "+e+" "+r(t))},e}(),h=new(t.Trace=u);t.trace=h},function(e,t,n){"use strict";var a=n(3),o=n(9),s=n(4),c=n(5),r=n(12),l=n(6),u=n(10),i=n(14),h={async:!0,rejectIfSuperseded:!0,current:a.noop,transition:null,traceData:{},bind:null},d=function(){function e(e,t,n,r){var i=this;this.transition=e,this.stateContext=t,this.eventHook=n,this.options=r,this.isSuperseded=function(){return i.options.current()!==i.options.transition},this.options=a.defaults(r,h)}return e.prototype.invokeHook=function(){var e=this.options,t=this.eventHook;if(r.trace.traceHookInvocation(this,e),e.rejectIfSuperseded&&this.isSuperseded())return u.Rejection.superseded(e.current()).toPromise();var n=t._deregistered?void 0:t.callback.call(e.bind,this.transition,this.stateContext);return this.handleHookResult(n)},e.prototype.handleHookResult=function(e){return this.isSuperseded()?u.Rejection.superseded(this.options.current()).toPromise():s.isPromise(e)?e.then(this.handleHookResult.bind(this)):(r.trace.traceHookResult(e,this.options),!1===e?u.Rejection.aborted("Hook aborted transition").toPromise():c.is(i.TargetState)(e)?u.Rejection.redirected(e).toPromise():void 0)},e.prototype.toString=function(){var e=this.options,t=this.eventHook,n=c.parse("traceData.hookType")(e)||"internal",r=c.parse("traceData.context.state.name")(e)||c.parse("traceData.context")(e)||"unknown",i=o.fnToString(t.callback);return n+" context: "+r+", "+o.maxLength(200,i)},e.runSynchronousHooks=function(e,t){void 0===t&&(t=!1);for(var n=[],r=0;r Registering",e),this.viewConfigs.push(e)},e.prototype.registerUIView=function(t){r.trace.traceViewServiceUIViewEvent("-> Registering",t);var e=this.uiViews;return e.filter(function(e){return e.fqn===t.fqn}).length&&r.trace.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",t),e.push(t),this.sync(),function(){return-1===e.indexOf(t)?void r.trace.traceViewServiceUIViewEvent("Tried removing non-registered uiView",t):(r.trace.traceViewServiceUIViewEvent("<- Deregistering",t),void l.removeFrom(e)(t))}},e.prototype.available=function(){return this.uiViews.map(a.prop("fqn"))},e.prototype.active=function(){return this.uiViews.filter(a.prop("$config")).map(a.prop("name"))},e.normalizeUIViewTarget=function(e,t){void 0===t&&(t="");var n=t.split("@"),r=n[0]||"$default",i=o.isString(n[1])?n[1]:"^",a=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);a&&(i=a[1],r=a[2]),"!"===r.charAt(0)&&(r=r.substr(1),i="");/^(\^(?:\.\^)*)$/.exec(i)&&(i=i.split(".").reduce(function(e,t){return e.parent},e).name);return{uiViewName:r,uiViewContextAnchor:i}},e}();t.ViewService=i},function(e,t,n){"use strict";var r=n(39),i=n(40),a=n(41),o=n(3),s=function(){function e(e,t){this.urlRouterProvider=t,this.states={},this.listeners=[],this.matcher=new r.StateMatcher(this.states),this.builder=new i.StateBuilder(this.matcher,e),this.stateQueue=new a.StateQueueManager(this.states,this.builder,t,this.listeners);(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null}return e.prototype.onStatesChanged=function(e){return this.listeners.push(e),function(){o.removeFrom(this.listeners)(e)}.bind(this)},e.prototype.root=function(){return this._root},e.prototype.register=function(e){return this.stateQueue.register(e)},e.prototype._deregisterTree=function(e){var t=this,n=this.get().map(function(e){return e.$$state()}),r=function(t){var e=n.filter(function(e){return-1!==t.indexOf(e.parent)});return 0===e.length?e:e.concat(r(e))},i=r([e]),a=[e].concat(i).reverse();return a.forEach(function(e){t.urlRouterProvider.removeRule(e._urlRule),delete t.states[e.name]}),a},e.prototype.deregister=function(e){var t=this.get(e);if(!t)throw new Error("Can't deregister state; not found: "+e);var n=this._deregisterTree(t.$$state());return this.listeners.forEach(function(e){return e("deregistered",n.map(function(e){return e.self}))}),n},e.prototype.get=function(e,t){var n=this;if(0===arguments.length)return Object.keys(this.states).map(function(e){return n.states[e].self});var r=this.matcher.find(e,t);return r&&r.self||null},e.prototype.decorator=function(e,t){return this.builder.builder(e,t)},e}();t.StateRegistry=s},function(e,t,n){"use strict";var o=n(4),s=n(7),c=n(3),r=function(){function e(e){this._states=e}return e.prototype.isRelative=function(e){return 0===(e=e||"").indexOf(".")||0===e.indexOf("^")},e.prototype.find=function(e,t){if(e||""===e){var n=o.isString(e),r=n?e:e.name;this.isRelative(r)&&(r=this.resolvePath(r,t));var i=this._states[r];if(i&&(n||!(n||i!==e&&i.self!==e)))return i;if(n){var a=c.values(this._states).filter(function(e){return new s.Glob(e.name).matches(r)});return 1"}]}a.resolveAs=a.resolveAs||"$resolve",a.$type="ng1",a.$context=n,a.$name=e;var t=l.ViewService.normalizeUIViewTarget(a.$context,a.$name);a.$uiViewName=t.uiViewName,a.$uiViewContextAnchor=t.uiViewContextAnchor,o[e]=a}}),o};var p=function(e){return t=u.isObject(e.bindToController)?e.bindToController:e.scope,Object.keys(t||{}).map(function(e){return[e,/^([=<@])[?]?(.*)/.exec(t[e])]}).filter(function(e){return u.isDefined(e)&&u.isDefined(e[1])}).map(function(e){return{name:e[1][2]||e[0],type:e[1][1]}});var t},r=0,g=function(){function e(e,t){this.path=e,this.viewDecl=t,this.$id=r++,this.loaded=!1}return e.prototype.load=function(){var t=this,e=a.services.$q;if(!this.hasTemplate())throw new Error("No template configuration specified for '"+this.viewDecl.$uiViewName+"@"+this.viewDecl.$uiViewContextAnchor+"'");var n=new d.ResolveContext(this.path),r=this.path.reduce(function(e,t){return s.extend(e,t.paramValues)},{}),i={template:e.when(this.getTemplate(r,new h.TemplateFactory,n)),controller:e.when(this.getController(n))};return e.all(i).then(function(e){return o.trace.traceViewServiceEvent("Loaded",t),t.controller=e.controller,t.template=e.template,t})},e.prototype.hasTemplate=function(){return!!(this.viewDecl.template||this.viewDecl.templateUrl||this.viewDecl.templateProvider)},e.prototype.getTemplate=function(e,t,n){return t.fromConfig(this.viewDecl,e,n)},e.prototype.getController=function(e){var t=this.viewDecl.controllerProvider;if(!u.isInjectable(t))return this.viewDecl.controller;var n=a.services.$injector.annotate(t),r=u.isArray(t)?s.tail(t):t;return new i.Resolvable("",r,n).get(e)},e}();t.Ng1ViewConfig=g},function(e,t,n){"use strict";var a=n(4),o=n(6),s=n(3),c=n(19),r=function(){function e(){}return e.prototype.fromConfig=function(e,t,n){return a.isDefined(e.template)?this.fromString(e.template,t):a.isDefined(e.templateUrl)?this.fromUrl(e.templateUrl,t):a.isDefined(e.templateProvider)?this.fromProvider(e.templateProvider,t,n):null},e.prototype.fromString=function(e,t){return a.isFunction(e)?e(t):e},e.prototype.fromUrl=function(e,t){return a.isFunction(e)&&(e=e(t)),null==e?null:o.services.template.get(e)},e.prototype.fromProvider=function(e,t,n){var r=o.services.$injector.annotate(e),i=a.isArray(e)?s.tail(e):e;return new c.Resolvable("",i,r).get(n)},e}();t.TemplateFactory=r},function(e,t){e.exports=n},function(e,t,n){"use strict";var r=n(4),i=n(3),a=function(){function n(e,t){this.stateRegistry=e,this.stateService=t,i.bindFunctions(n.prototype,this,this)}return n.prototype.decorator=function(e,t){return this.stateRegistry.decorator(e,t)||this},n.prototype.state=function(e,t){return r.isObject(e)?t=e:t.name=e,this.stateRegistry.register(t),this},n.prototype.onInvalid=function(e){return this.stateService.onInvalid(e)},n}();t.StateProvider=a},function(e,t,n){"use strict";var i=n(6),a=n(53),o=n(17),s=n(3);t.getStateHookBuilder=function(n){return function(e,t){var r=e[n];return r?function(e,t){var n=new o.ResolveContext(e.treeChanges().to);return i.services.$injector.invoke(r,this,s.extend({$state$:t},a.getLocals(n)))}:void 0}}},function(e,t,n){"use strict";function v(e,t){var n,r=e.match(/^\s*({[^}]*})\s*$/);if(r&&(e=t+"("+r[1]+")"),!(n=e.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1],paramExpr:n[3]||null}}function b(e){var t=e.parent().inheritedData("$uiView"),n=r.parse("$cfg.path")(t);return n?y.tail(n).state.name:void 0}function p(e){var t="[object SVGAnimatedString]"===Object.prototype.toString.call(e.prop("href")),n="FORM"===e[0].nodeName;return{attr:n?"action":t?"xlink:href":"href",isAnchor:"A"===e.prop("tagName").toUpperCase(),clickable:!n}}function g(a,o,s,c,l){return function(e){var t=e.which||e.button,n=l();if(!(1",s)||this.op(t,"<",o)&&this.op(t,">",s))&&c.push(n);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+c.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],l.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=c("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(c("
",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},l.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map(function(e){return c(e)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},l.prototype.initialize=function(){var e,t,n;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,n=this.$element.children(t).width(),e.length&&n<=0&&this.preloadAutoWidthImages(e));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},l.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},l.prototype.setup=function(){var t=this.viewport(),e=this.options.responsive,n=-1,r=null;e?(c.each(e,function(e){e<=t&&n").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:t.data}),t.data},l.prototype.update=function(){for(var e=0,t=this._pipe.length,n=c.proxy(function(e){return this[e]},this._invalidated),r={};e",o[e+1]!==s?o[e+1]:t-a)&&(i="left"===r?e+1:e),-1===i},this)),this.settings.loop||(this.op(n,">",o[this.minimum()])?i=n=this.minimum():this.op(n,"<",o[this.maximum()])&&(i=n=this.maximum())),i},l.prototype.animate=function(e){var t=0r););a=t+1}else a=i.center?this._items.length-1:this._items.length-i.items;return e&&(a-=this._clones.length/2),Math.max(a,0)},l.prototype.minimum=function(e){return e?0:this._clones.length/2},l.prototype.items=function(e){return e===s?this._items.slice():(e=this.normalize(e,!0),this._items[e])},l.prototype.mergers=function(e){return e===s?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},l.prototype.clones=function(n){var t=this._clones.length/2,r=t+this._items.length,i=function(e){return e%2==0?r+e/2:t-(e+1)/2};return n===s?c.map(this._clones,function(e,t){return i(t)}):c.map(this._clones,function(e,t){return e===n?i(t):null})},l.prototype.speed=function(e){return e!==s&&(this._speed=e),this._speed},l.prototype.coordinates=function(e){var t,n=1,r=e-1;return e===s?c.map(this._coordinates,c.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(n=-1,r=e+1),t=this._coordinates[e],t+=(this.width()-t+(this._coordinates[r]||0))/2*n):t=this._coordinates[r]||0,t=Math.ceil(t))},l.prototype.duration=function(e,t,n){return 0===n?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)},l.prototype.to=function(e,t){var n=this.current(),r=null,i=e-this.relative(n),a=(0o/2&&(i+=-1*a*o),(r=(((e=n+i)-s)%o+o)%o+s)!==e&&r-i<=c&&0":return r?e=":return r?e<=n:n<=e;case"<=":return r?n<=e:e<=n}},l.prototype.on=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,n)},l.prototype.off=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on"+t,n)},l.prototype.trigger=function(e,t,n,r,i){var a={item:{count:this._items.length,index:this.current()}},o=c.camelCase(c.grep(["on",e,n],function(e){return e}).join("-").toLowerCase()),s=c.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),c.extend({relatedTarget:this},a,t));return this._supress[e]||(c.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(s)}),this.register({type:l.Type.Event,name:e}),this.$element.trigger(s),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].call(this,s)),s},l.prototype.enter=function(e){c.each([e].concat(this._states.tags[e]||[]),c.proxy(function(e,t){this._states.current[t]===s&&(this._states.current[t]=0),this._states.current[t]++},this))},l.prototype.leave=function(e){c.each([e].concat(this._states.tags[e]||[]),c.proxy(function(e,t){this._states.current[t]--},this))},l.prototype.register=function(n){if(n.type===l.Type.Event){if(c.event.special[n.name]||(c.event.special[n.name]={}),!c.event.special[n.name].owl){var t=c.event.special[n.name]._default;c.event.special[n.name]._default=function(e){return!t||!t.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&-1
',n=c.lazyLoad?u("
",{class:"owl-video-tn "+s,srcType:e}):u("
",{class:"owl-video-tn",style:"opacity:1;background-image:url("+e+")"}),t.after(n),t.after('
')};if(t.wrap(u("
",{class:"owl-video-wrapper",style:i})),this._core.settings.lazyLoad&&(o="data-src",s="owl-lazy"),a.length)return l(a.attr(o)),a.remove(),!1;"youtube"===e.type?(r="//img.youtube.com/vi/"+e.id+"/hqdefault.jpg",l(r)):"vimeo"===e.type?u.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e[0].thumbnail_large,l(r)}}):"vzaar"===e.type&&u.ajax({type:"GET",url:"//vzaar.com/api/videos/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e.framegrab_url,l(r)}})},r.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},r.prototype.play=function(e){var t,n=u(e.target).closest("."+this._core.settings.itemClass),r=this._videos[n.attr("data-video")],i=r.width||"100%",a=r.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),(t=u('')).attr("height",a),t.attr("width",i),"youtube"===r.type?t.attr("src","//www.youtube.com/embed/"+r.id+"?autoplay=1&rel=0&v="+r.id):"vimeo"===r.type?t.attr("src","//player.vimeo.com/video/"+r.id+"?autoplay=1"):"vzaar"===r.type&&t.attr("src","//view.vzaar.com/"+r.id+"/player?autoplay=true"),u(t).wrap('
').insertAfter(n.find(".owl-video")),this._playing=n.addClass("owl-video-playing"))},r.prototype.isInFullScreen=function(){var e=t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement;return e&&u(e).parent().hasClass("owl-video-frame")},r.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},u.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||window.jQuery,window,document),function(o,e,t,n){var r=function(e){this.core=e,this.core.options=o.extend({},r.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":o.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":o.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":o.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};r.Defaults={animateOut:!1,animateIn:!1},r.prototype.swap=function(){if(1===this.core.settings.items&&o.support.animation&&o.support.transition){this.core.speed(0);var e,t=o.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),i=this.core.settings.animateIn,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(o.support.animation.end,t).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(a)),i&&r.one(o.support.animation.end,t).addClass("animated owl-animated-in").addClass(i))}},r.prototype.clear=function(e){o(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},r.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},o.fn.owlCarousel.Constructor.Plugins.Animate=r}(window.Zepto||window.jQuery,window,document),function(r,i,t,e){var n=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":r.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":r.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":r.proxy(function(e,t,n){e.namespace&&this.play(t,n)},this),"stop.owl.autoplay":r.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":r.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":r.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":r.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":r.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=r.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(e){this._call=i.setTimeout(r.proxy(this._next,this,e),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||t.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(e,t){var n;this._core.is("rotating")||this._core.enter("rotating"),e=e||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||e),e),this._paused?(this._time=this.read(),this._paused=!1):i.clearTimeout(this._call),this._time+=this.read()%e-n,this._timeout=e,this._call=i.setTimeout(r.proxy(this._next,this,t),e-n)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,i.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,i.clearTimeout(this._call))},n.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},r.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(a,e,t,n){"use strict";var r=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('
'+a(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
")},this),"added.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":a.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers)};r.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},r.prototype.initialize=function(){var e,n=this._core.settings;for(e in this._controls.$relative=(n.navContainer?a(n.navContainer):a("
").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(e){this.prev(n.navSpeed)},this)),this._controls.$next=a("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(e){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[a('\n \n
\n \n
\n').replace(/(^|\n)\s*/g,""),$=function(){return document.body.querySelector("."+F.container)},X=function(){return $()?$().querySelector("."+F.modal):null},n=function(e){return $()?$().querySelector("."+e):null},H=function(){return n(F.title)},V=function(){return n(F.content)},G=function(){return n(F.image)},Y=function(){return n(F.progresssteps)},K=function(){return n(F.validationerror)},J=function(){return n(F.confirm)},Q=function(){return n(F.cancel)},Z=function(){return n(F.buttonswrapper)},ee=function(){return n(F.close)},te=function(){var e=Array.from(X().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return e=parseInt(e.getAttribute("tabindex")),(t=parseInt(t.getAttribute("tabindex")))"),i.text||i.html){if("object"===he(i.html))if(l.innerHTML="",0 in i.html)for(var p=0;p in i.html;p++)l.appendChild(i.html[p].cloneNode(!0));else l.appendChild(i.html.cloneNode(!0));else i.html?l.innerHTML=i.html:i.text&&(l.textContent=i.text);se(l)}else ce(l);if(i.position in F&&ie(s,F[i.position]),i.grow&&"string"==typeof i.grow){var g="grow-"+i.grow;g in F&&ie(s,F[g])}i.showCloseButton?(f.setAttribute("aria-label",i.closeButtonAriaLabel),se(f)):ce(f),e.className=F.modal,i.customClass&&ie(e,i.customClass);var m=Y(),v=parseInt(null===i.currentProgressStep?T.getQueueStep():i.currentProgressStep,10);i.progressSteps.length?(se(m),function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(m),v>=i.progressSteps.length&&C("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.progressSteps.forEach(function(e,t){var n=document.createElement("li");if(ie(n,F.progresscircle),n.innerHTML=e,t===v&&ie(n,F.activeprogressstep),m.appendChild(n),t!==i.progressSteps.length-1){var r=document.createElement("li");ie(r,F.progressline),r.style.width=i.progressStepsDistance,m.appendChild(r)}})):ce(m);for(var b=X().querySelectorAll("."+F.icon),y=0;ywindow.innerHeight&&(U.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()+"px"),function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!ne(document.body,F.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+"px",ie(document.body,F.iosfix)}}(),U.previousActiveElement=document.activeElement,null!==A&&"function"==typeof A&&setTimeout(function(){A(S)}),q.allowEnterKey?q.focusCancel&&le(s)?s.focus():q.focusConfirm&&le(o)?o.focus():d(-1,1):document.activeElement&&document.activeElement.blur(),$().scrollTop=0})};return T.isVisible=function(){return!!X()},T.queue=function(e){s=e;var a=function(){s=[],document.body.removeAttribute("data-swal2-queue-step")},o=[];return new Promise(function(e,i){!function t(n,r){n]/g)||[]).length<=0||0this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),t?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&t&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,t="";for(this.o.calendarWeeks&&(t+=' ');e";t+="",this.picker.find(".datepicker-days thead").append(t)}},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",n=0;n<12;n++)t+=''+z[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(t)},setRange:function(e){e&&e.length?this.range=T.map(e,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var t=[],n=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),i=L();return e.getUTCFullYear()n||e.getUTCFullYear()===n&&e.getUTCMonth()>r)&&t.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&t.push("focused"),this.o.todayHighlight&&a(e,i)&&t.push("today"),-1!==this.dates.contains(e)&&t.push("active"),this.dateWithinRange(e)||t.push("disabled"),this.dateIsDisabled(e)&&t.push("disabled","disabled-date"),-1!==T.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&t.push("highlighted"),this.range&&(e>this.range[0]&&e"+v+"";d.find(".datepicker-switch").text(f+"-"+p),d.find("td").html(u)},fill:function(){var e,t,n=new Date(this.viewDate),i=n.getUTCFullYear(),r=n.getUTCMonth(),a=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=z[this.o.language].today||z.en.today||"",u=z[this.o.language].clear||z.en.clear||"",h=z[this.o.language].titleFormat||z.en.titleFormat,d=L(),f=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&d>=this.o.startDate&&d<=this.o.endDate&&!this.weekOfDateIsDisabled(d);if(!isNaN(i)&&!isNaN(r)){this.picker.find(".datepicker-days .datepicker-switch").text(E.formatDate(n,h,this.o.language)),this.picker.find("tfoot .today").text(l).css("display",f?"table-cell":"none"),this.picker.find("tfoot .clear").text(u).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var p=D(i,r,0),g=p.getUTCDate();p.setUTCDate(g-(p.getUTCDay()-this.o.weekStart+7)%7);var m=new Date(p);p.getUTCFullYear()<100&&m.setUTCFullYear(p.getUTCFullYear()),m.setUTCDate(m.getUTCDate()+42),m=m.valueOf();for(var v,b,y=[];p.valueOf()"),this.o.calendarWeeks)){var M=new Date(+p+(this.o.weekStart-v-7)%7*864e5),w=new Date(Number(M)+(11-M.getUTCDay())%7*864e5),A=new Date(Number(A=D(w.getUTCFullYear(),0,1))+(11-A.getUTCDay())%7*864e5),_=(w-A)/864e5/7+1;y.push(''+_+"")}(b=this.getClassNames(p)).push("day");var S=p.getUTCDate();this.o.beforeShowDay!==T.noop&&((t=this.o.beforeShowDay(this._utc_to_local(p)))===O?t={}:"boolean"==typeof t?t={enabled:t}:"string"==typeof t&&(t={classes:t}),!1===t.enabled&&b.push("disabled"),t.classes&&(b=b.concat(t.classes.split(/\s+/))),t.tooltip&&(e=t.tooltip),t.content&&(S=t.content)),b=T.isFunction(T.uniqueSort)?T.uniqueSort(b):T.unique(b),y.push(''+S+""),e=null,v===this.o.weekEnd&&y.push(""),p.setUTCDate(p.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(y.join(""));var k=z[this.o.language].monthsTitle||z.en.monthsTitle||"Months",C=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?k:i).end().find("tbody span").removeClass("active");if(T.each(this.dates,function(e,t){t.getUTCFullYear()===i&&C.eq(t.getUTCMonth()).addClass("active")}),(is;break;case 0:e=r<=a&&i<=o,t=s<=r&&c<=i}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(e){var t,n,r;e.preventDefault(),e.stopPropagation(),(t=T(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),t.hasClass("today")&&!t.hasClass("day")&&(this.setViewMode(0),this._setDate(L(),"linked"===this.o.todayBtn?null:"view")),t.hasClass("clear")&&this.clearDates(),t.hasClass("disabled")||(t.hasClass("month")||t.hasClass("year")||t.hasClass("decade")||t.hasClass("century"))&&(this.viewDate.setUTCDate(1),1===this.viewMode?(r=t.parent().find("span").index(t),n=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(r)):(r=0,n=Number(t.text()),this.viewDate.setUTCFullYear(n)),this._trigger(E.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(D(n,r,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var t=T(e.currentTarget).data("date"),n=new Date(t);this.o.updateViewDate&&(n.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),n.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(n)},navArrowsClick:function(e){var t=T(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(t*=12*E.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,t),this._trigger(E.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(!0===this.o.multidate||1this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var n=new Date(e);return n.setUTCDate(e.getUTCDate()+t),n},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!(n=e)||isNaN(n.getTime()))return this.o.defaultViewDate;var n;if(!t)return e;var r,i,a=new Date(e.valueOf()),o=a.getUTCDate(),s=a.getUTCMonth(),c=Math.abs(t);if(t=0=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var t,n,r=!1,i=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(n=this.moveAvailableDate(i,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(n=this.moveAvailableDate(i,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?n=this.moveAvailableDate(i,t,"moveDay"):this.weekOfDateIsDisabled(i)||(n=this.moveAvailableDate(i,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(i,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(i,t,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;i=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(i),r=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}r&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation())},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+E.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var l=function(e,t){T.data(e,"datepicker",this),this.element=T(e),this.inputs=T.map(t.inputs,function(e){return e.jquery?e[0]:e}),delete t.inputs,this.keepEmptyValues=t.keepEmptyValues,delete t.keepEmptyValues,i.call(T(this.inputs),t).on("changeDate",T.proxy(this.dateUpdated,this)),this.pickers=T.map(this.inputs,function(e){return T.data(e,"datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=T.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var n=T.map(this.dates,function(e){return e.valueOf()});T.each(this.pickers,function(e,t){t.setRange(n)})},clearDates:function(){T.each(this.pickers,function(e,t){t.clearDates()})},dateUpdated:function(e){if(!this.updating){this.updating=!0;var n=T.data(e.target,"datepicker");if(n!==O){var r=n.getUTCDate(),i=this.keepEmptyValues,t=T.inArray(e.target,this.inputs),a=t-1,o=t+1,s=this.inputs.length;if(-1!==t){if(T.each(this.pickers,function(e,t){t.getUTCDate()||t!==n&&i||t.setUTCDate(r)}),rthis.dates[o])for(;othis.dates[o];)this.pickers[o++].setUTCDate(r);this.updateDates(),delete this.updating}}}},destroy:function(){T.map(this.pickers,function(e){e.destroy()}),T(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:e("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var r=T.fn.datepicker,i=function(o){var s,c=Array.apply(null,arguments);if(c.shift(),this.each(function(){var e=T(this),t=e.data("datepicker"),n="object"==typeof o&&o;if(!t){var r=function(e,t){function n(e,t){return t.toLowerCase()}var r=T(e).data(),i={},a=new RegExp("^"+t.toLowerCase()+"([A-Z])");for(var o in t=new RegExp("^"+t.toLowerCase()),r)t.test(o)&&(i[o.replace(a,n)]=r[o]);return i}(this,"date"),i=function(e){var n={};if(z[e]||(e=e.split("-")[0],z[e])){var r=z[e];return T.each(h,function(e,t){t in r&&(n[t]=r[t])}),n}}(T.extend({},u,r,n).language),a=T.extend({},u,i,r,n);t=e.hasClass("input-daterange")||a.inputs?(T.extend(a,{inputs:a.inputs||e.find("input").toArray()}),new l(this,a)):new w(this,a),e.data("datepicker",t)}"string"==typeof o&&"function"==typeof t[o]&&(s=t[o].apply(t,c))}),s===O||s instanceof w||s instanceof l)return this;if(1(new Date).getFullYear()+r&&(n-=100),n):t);var n,r},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};m.yy=m.yyyy,m.M=m.MM=m.mm=m.m,m.dd=m.d,e=L();var v=t.parts.slice();if(a.length!==v.length&&(v=T(v).filter(function(e,t){return-1!==T.inArray(t,g)}).toArray()),a.length===v.length){var b,y,M;for(c=0,b=v.length;c'+u.templates.leftArrow+''+u.templates.rightArrow+"",contTemplate:'',footTemplate:''};E.template='
'+E.headTemplate+""+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+"
",T.fn.datepicker.DPGlobal=E,T.fn.datepicker.noConflict=function(){return T.fn.datepicker=r,this},T.fn.datepicker.version="1.9.0",T.fn.datepicker.deprecated=function(e){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+e)},T(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var t=T(this);t.data("datepicker")||(e.preventDefault(),i.call(t,"show"))}),T(function(){i.call(T('[data-provide="datepicker-inline"]'))})}),jQuery.fn.datepicker.dates["pt-BR"]={days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sa"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],today:"Hoje",monthsTitle:"Meses",clear:"Limpar",format:"dd/mm/yyyy"},angular.module("videosharing-embed",[]),angular.module("videosharing-embed").service("PlayerConfig",function(){"use strict";this.createInstance=function(e){return new function(e){this.type=e.type,this.playerRegExp=e.playerRegExp,this.timeRegExp=e.timeRegExp,this.whitelist=e.whitelist,this.playerID=e.playerID,this.settings=e.settings,this.transformAttrMap=e.transformAttrMap,this.processSettings=e.processSettings,this.isPlayerFromURL=function(e){return null!=e.match(this.playerRegExp)},this.buildSrcURL=e.buildSrcURL,this.isAdditionaResRequired=e.isAdditionaResRequired,this.additionalRes=e.additionalRes}(e)}}),angular.module("videosharing-embed").factory("RegisteredPlayers",["PlayerConfig","$filter","$window",function(t,r,e){"use strict";var n={youtube:{type:"youtube",settings:{autoplay:0,controls:1,loop:0},whitelist:["autohide","cc_load_policy","color","disablekb","enablejsapi","autoplay","controls","loop","playlist","rel","wmode","start","showinfo","end","fs","hl","iv_load_policy","list","listType","modestbranding","origin","playerapiid","playsinline","theme"],transformAttrMap:{},processSettings:function(e,t){return 1==e.loop&&null==e.playlist&&(e.playlist=t),e},buildSrcURL:function(e,t){return e+this.playerID+t+r("videoSettings")(this.processSettings(this.settings))},playerID:"www.youtube.com/embed/",playerRegExp:/([a-z\:\/]*\/\/)(?:www\.)?(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/,timeRegExp:/t=(([0-9]+)h)?(([0-9]{1,2})m)?(([0-9]+)s?)?/,isAdditionaResRequired:function(){return!1},additionalRes:[]},vimeo:{type:"vimeo",settings:{autoplay:0,loop:0,api:0,player_id:""},whitelist:["autoplay","autopause","badge","byline","color","portrait","loop","api","playerId","title"],transformAttrMap:{playerId:"player_id"},processSettings:function(e,t){return e},buildSrcURL:function(e,t){return e+this.playerID+t+r("videoSettings")(this.processSettings(this.settings))},playerID:"player.vimeo.com/video/",playerRegExp:/([a-z\:\/]*\/\/)(?:www\.)?vimeo\.com\/(?:channels\/[A-Za-z0-9]+\/)?([A-Za-z0-9]+)/,timeRegExp:"",isAdditionaResRequired:function(){return!1},additionalRes:[]},dailymotion:{type:"dailymotion",settings:{autoPlay:0,logo:0},whitelist:["api","autoplay","background","chromeless","controls","foreground","highlight","html","id","info","logo","network","quality","related","startscreen","webkit-playsinline","syndication"],transformAttrMap:{},processSettings:function(e,t){return e},buildSrcURL:function(e,t){return e+this.playerID+t+r("videoSettings")(this.processSettings(this.settings))},playerID:"www.dailymotion.com/embed/video/",playerRegExp:/([a-z\:\/]*\/\/)(?:www\.)?www\.dailymotion\.com\/video\/([A-Za-z0-9]+)/,timeRegExp:/start=([0-9]+)/,isAdditionaResRequired:function(){return!1},additionalRes:[]},youku:{type:"youku",settings:{},whitelist:[],transformAttrMap:{},processSettings:function(e,t){return e},buildSrcURL:function(e,t){return e+this.playerID+t+r("videoSettings")(this.processSettings(this.settings))},playerID:"player.youku.com/embed/",playerRegExp:/([a-z\:\/]*\/\/)(?:www\.)?youku\.com\/v_show\/id_([A-Za-z0-9]+).html/,timeRegExp:"",isAdditionaResRequired:function(){return!1},additionalRes:[]},vine:{type:"vine",settings:{audio:0,start:0,type:"simple"},whitelist:["audio","start","type"],transformAttrMap:{},processSettings:function(e,t){return e},buildSrcURL:function(e,t){var n=this.settings.type;return e+this.playerID+t+/embed/+n+r("videoSettings")(this.processSettings(this.settings))},playerID:"vine.co/v/",playerRegExp:/([a-z\:\/]*\/\/)(?:www\.)?vine\.co\/v\/([A-Za-z0-9]+)/,timeRegExp:"",isAdditionaResRequired:function(){return!e.VINE_EMBEDS},additionalRes:[{id:"ng-video-embed-vine-res-1",element:'